message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
graphics/littlevgl: Update theme config symbol name in Kconfig | @@ -228,35 +228,35 @@ config LV_THEME_LIVE_UPDATE
bool "Allow theme switching at run time. Uses 8..10 kB of RAM"
default n
-config USE_LV_THEME_TEMPL
+config LV_USE_THEME_TEMPL
bool "Use Template theme: just for test"
default n
-config USE_LV_THEME_DEFAULT
+config LV_USE_THEME_DEFAULT
bool "Use Default theme: uses the ... |
Remove unused if to fix compile error. | @@ -867,7 +867,6 @@ static void cblk_req_dump(struct cblk_dev *c)
switch (req->status) {
case CBLK_IDLE:
usecs = 0;
- if (req->lba == 0)
break;
case CBLK_READY:
usecs = timediff_usec(&req->etime, &req->stime);
@@ -895,7 +894,6 @@ static void stat_req_dump(struct cblk_dev *c)
switch (req->status) {
case CBLK_IDLE:
usecs... |
Reporting wrong variable. | @@ -445,14 +445,12 @@ static PyObject *wsgi_request_metrics(void)
cpu_system_time = cpu_system_time / total_cpu_time;
}
- object = PyFloat_FromDouble(
- (stop_cpu_user_time-start_cpu_user_time)/time_interval);
+ object = PyFloat_FromDouble(cpu_user_time);
PyDict_SetItem(result,
WSGI_INTERNED_STRING(cpu_user_time), obje... |
SOVERSION bump to version 6.4.10 | @@ -68,7 +68,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_
# with backward compatible change and micro version is connected with any internal change of the library.
set(SYSREPO_MAJOR_SOVERSION 6)
set(SYSREPO_MINOR_SOVERSION 4)
-set(SYSREPO_MICRO_SOVERSION 9)
+set(SYSREPO_MICRO_SO... |
Update examples/elf/tests/helloxx/Makefile
Check for the right config variable | @@ -114,7 +114,7 @@ $(BIN3): $(OBJS3)
# NOTE: libstdc++ is not available for NuttX as of this writing
#
ifeq ($(CONFIG_EXAMPLES_ELF_CXX),y)
-ifeq ($(CXX_EXCEPTION),y)
+ifeq ($(CONFIG_CXX_EXCEPTION),y)
$(BIN4): $(OBJS4)
@echo "LD: $<"
$(Q) $(LD) $(LDELFFLAGS) $(LDLIBPATH) -o $@ $(ARCHCRT0OBJ) $^ $(LDLIBS)
|
Support OBP environment | @@ -216,7 +216,7 @@ if (WIN32)
# OpenSSL relies on Perl to generate files (e.g., headers, assembly files, and test cases).
find_program(
OE_PERL perl
- PATHS "C:/Program Files/Git/bin" "${GIT_DIR}/../usr/bin"
+ PATHS "C:/Program Files/Git/bin" "C:/Program Files/Git/usr/bin" "${GIT_DIR}/../usr/bin"
NO_DEFAULT_PATH)
if (... |
Add test for openssl ecparam with fips and base providers | @@ -13,7 +13,7 @@ use warnings;
use File::Spec;
use File::Compare qw/compare_text/;
use OpenSSL::Glob;
-use OpenSSL::Test qw/:DEFAULT data_file/;
+use OpenSSL::Test qw/:DEFAULT data_file srctop_file bldtop_dir/;
use OpenSSL::Test::Utils;
setup("test_ecparam");
@@ -25,7 +25,7 @@ my @valid = glob(data_file("valid", "*.pe... |
Fixed DCAP path typo | @@ -545,7 +545,7 @@ function Install-DCAP-Dependencies {
'description' = 'Intel(R) Software Guard Extensions Launch Configuration Service'
}
'sgx_dcap' = @{
- 'path' = "$PACKAGES_DIRECTORY\Intel_SGX_DCAP\Intel*SGX*DCAP*\dcap\WindowsServer2019_Windows10""
+ 'path' = "$PACKAGES_DIRECTORY\Intel_SGX_DCAP\Intel*SGX*DCAP*\dc... |
codeowners: update in_docker owner | /appveyor.yml @niedbalski @patrick-stephens
/dockerfiles/ @niedbalski @patrick-stephens
/packaging/ @niedbalski @patrick-stephens
+/codebase-structure.svg @niedbalski @patrick-stephens
# Core: Signv4
# ------------
# Input Plugins
# -------------
/plugins/in_collectd @fujimotos
-/plugins/in_docker @ashutoshdhundhara
+/... |
centred text | @@ -25,7 +25,7 @@ def launcher():
graphics.set_pen(5)
graphics.rectangle(0, 0, WIDTH, 50)
graphics.set_pen(0)
- graphics.text("Launcher", 225, 10, WIDTH, 4)
+ graphics.text("Launcher", 245, 10, WIDTH, 4)
graphics.set_pen(4)
graphics.rectangle(30, 60, WIDTH - 100, 50)
|
improve abi include directory for ndk | @@ -172,6 +172,8 @@ function main(platform)
platform:add("cxxflags", format("-I%s/libs/%s/include", cxxstl_sdkdir, toolchains_archs[arch]))
platform:add("ldflags", format("-L%s/libs/%s", cxxstl_sdkdir, toolchains_archs[arch]))
platform:add("shflags", format("-L%s/libs/%s", cxxstl_sdkdir, toolchains_archs[arch]))
+
+ --... |
further improve precision of malloc/free tracking in valgrind | @@ -364,7 +364,6 @@ static mi_decl_noinline void _mi_free_block_mt(mi_page_t* page, mi_block_t* bloc
// The padding check may access the non-thread-owned page for the key values.
// that is safe as these are constant and the page won't be freed (as the block is not freed yet).
mi_check_padding(page, block);
- mi_track_... |
interface: place priority in understanding state of channel in graphKeys | @@ -46,16 +46,17 @@ export function useGraphModule(
): SidebarAppConfig {
const getStatus = useCallback(
(s: string) => {
- const unreads = graphUnreads?.[s]?.['/']?.unreads;
- if(typeof unreads === 'number' ? unreads > 0 : unreads?.size ?? 0 > 0) {
- return 'unread';
- }
const [, , host, name] = s.split("/");
const gr... |
schema DOC fix LYS_SET_CONFIG description | @@ -733,7 +733,7 @@ struct lysp_deviation {
* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
* 11 LYS_SET_UNITS | | |x|x| | | | | | | | | | | |
* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- * 12 LYS_SET_CONFIG |x|x|x|x|x|x|x| | |x|x| | | | |
+ * 12 LYS_SET_CONFIG |x|x|x|x|x|x| | | | | | | | | |
* ---------------------+-+-+-+-+-+-+-+-+-+-+-+-+-... |
Log unknown input escape codes in xterm. | #endif
#include "error.h"
+#include "logging.h"
#define DOUBLE_CLICK_TIME 500
@@ -278,6 +279,8 @@ static void xterm_handle_mouse_click(int cb, int x, int y) {
state = SDL_RELEASED;
button = g_mouse_state.button_down;
break;
+ default:
+ TCOD_log_debug_f("unknown mouse button %i\n", cb_button);
}
if (type == SDL_MOUSEBU... |
Turn off demos in cmake when we're not at top level | @@ -54,8 +54,12 @@ if(NOT DEFINED CACHE{AFR_TOOLCHAIN})
set(AFR_TOOLCHAIN ${__toolchain} CACHE INTERNAL "Toolchain to build Amazon FreeRTOS.")
endif()
-# Provide an option to enable demos.
+# Provide an option to enable demos. If we're not at top level, turn off demos build by default.
+if("${CMAKE_SOURCE_DIR}" STREQUA... |
Excluded the optional tinyDTLS module from Doxygen | @@ -809,7 +809,8 @@ EXCLUDE_SYMLINKS = NO
EXCLUDE_PATTERNS = */cpu/cc26xx-cc13xx/lib/* \
*/cpu/cc26xx-cc13xx/rf-core/api/* \
- */platform/stm32nucleo-spirit1/stm32cube-lib/*
+ */platform/stm32nucleo-spirit1/stm32cube-lib/* \
+ */os/net/security/tinydtls/*
# The EXCLUDE_SYMBOLS tag can be used to specify one or more sym... |
build: also add certificate support to .wgetrc for cov script | @@ -34,6 +34,8 @@ matrix:
- cat ~/entrust_l1k.crt >> ~/cacert.pem
- if [ -f ~/.curlrc ]; then echo "Dropping old ~/.curlrc:" ; cat ~/.curlrc ; fi
- echo "cacert=\"$HOME/cacert.pem\"" > ~/.curlrc
+ - if [ -f ~/.wgetrc ]; then echo "Dropping old ~/.wgetrc:" ; cat ~/.wgetrc ; fi
+ - echo "ca_certificate=\"$HOME/cacert.pem... |
Fix error message in memory_read_privatekey
file: userauth.c
note: fix error message
credit:
volund | @@ -687,7 +687,7 @@ memory_read_privatekey(LIBSSH2_SESSION * session,
(unsigned char *) passphrase,
hostkey_abstract)) {
return _libssh2_error(session, LIBSSH2_ERROR_FILE,
- "Unable to initialize private key from file");
+ "Unable to initialize private key from memory");
}
return 0;
|
Correct direction | @@ -1889,7 +1889,7 @@ int DeRestPluginPrivate::setWindowCoveringState(const ApiRequest &req, ApiRespon
if (R_GetProductId(taskRef.lightNode) == QLatin1String("Tuya_COVD AM43-0.45/40-ES-EZ(TY)"))
{
//This device use bad command
- ok = sendTuyaRequest(task, TaskTuyaRequest, DP_TYPE_ENUM, DP_IDENTIFIER_CONTROL, QByteArray... |
Disable AVX2 | @@ -2,8 +2,8 @@ CC = gcc
INC_DIRS = -Ixmrig-override -Ixmrig -Ixmrig/3rdparty/argon2/include -Ixmrig/3rdparty/argon2/lib
# Temporarily disable optimizations to debug crashes
-CFLAGS = -g -Wall -c -fPIC -maes -O2 -fno-fast-math -fpermissive -Wno-fpermissive -Wno-strict-aliasing -Wno-sign-compare -DCPU_INTEL -DHAVE_SSE2 ... |
Fix update x,y colors when setting hue saturation | @@ -603,17 +603,35 @@ int DeRestPluginPrivate::setLightState(const ApiRequest &req, ApiResponse &rsp)
if (!hasXy && !hasSat)
{
+ ResourceItem *item = task.lightNode->item(RStateSat);
double r, g, b;
double x, y;
double h = ((360.0f / 65535.0f) * hue);
- double s = task.lightNode->saturation() / 255.0f;
+ double s = (it... |
Change mbedtls_set_err_add_hook to use doxygen style comment | @@ -114,19 +114,17 @@ extern "C" {
#define MBEDTLS_ERR_ERROR_GENERIC_ERROR -0x0001 /**< Generic error */
#define MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED -0x006E /**< This is a bug in the library */
-/** Helper macro and function to combine a high and low level error code.
+
+#if defined(MBEDTLS_TEST_HOOKS)
+/**
+ * \brie... |
Stop at non-option argparse | @@ -221,7 +221,7 @@ int main(int argc, char *argv[]) {
};
struct argparse argparse;
- argparse_init(&argparse, options, usage, 0);
+ argparse_init(&argparse, options, usage, ARGPARSE_STOP_AT_NON_OPTION);
argc = argparse_parse(&argparse, argc, (const char **)argv);
if (version) {
|
Fix missing isgraph() from baselibc | @@ -77,6 +77,11 @@ __extern_inline int isprint(int __c)
return (__c >= 0x20 && __c <= 0x7e);
}
+__extern_inline int isgraph(int __c)
+{
+ return (__c > 0x20 && __c < 0x7f);
+}
+
__extern_inline int toupper(int __c)
{
return islower(__c) ? (__c & ~32) : __c;
|
Enable internal for all languages with some exceptions | @@ -92,6 +92,18 @@ PEERDIRS_RULES_PATH=\
build/rules/std_filesystem.policy \
build/rules/yp.policy
+CHECK_INTERNAL=yes
+INTERNAL_EXCEPTIONS=\
+ contrib \
+ search/begemot/rules/internal \
+ mssngr/router/lib/protos/internal \
+ cv/imageproc/ocr/api/mobile_c/internal \
+ kernel/ugc/security/lib/internal \
+ maps/automot... |
Srvdot has announcement strings now. | use std
use http
-const main = {
- var srv //, router
+const main = {args
+ var srv, ann, cmd
- match http.announce("tcp!localhost!8080")
+ cmd = std.optparse(args, &[
+ .maxargs=0,
+ .opts = [[.opt='a', .arg="ann", .desc="announce on `ann`"]][:]
+ ])
+ ann = "tcp!localhost!8080"
+ for opt in cmd.opts
+ match opt
+ | (... |
More strict section order check | @@ -591,30 +591,29 @@ _ (Read_u32 (& version, & pos, end));
_throwif (m3Err_wasmMalformed, magic != 0x6d736100);
_throwif (m3Err_incompatibleWasmVersion, version != 1);
- m3log (parse, "found magic + version");
- u8 previousSection = 0;
+
+ static const u8 sectionsOrder[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 10, 11, 0 };... |
OpenCoreMisc: Fix compilation and add version for logging | @@ -265,11 +265,11 @@ OcMiscEarlyInit (
DEBUG ((
DEBUG_INFO,
- "OC: OpenCore is now loading (Vault: %d/%d, Sign %d/%d)...\n",
+ "OC: OpenCore %a is loading in %a mode (%d/%d)...\n",
+ OcMiscGetVersionString (),
+ Config->Misc.Security.Vault,
Storage->HasVault,
- Config->Misc.Security.RequireVault,
- VaultKey != NULL,
-... |
TestBmf: Convert to EDK-II codestyle | @@ -53,19 +53,23 @@ GuiBmpToImage (
return EFI_SUCCESS;
}
-int main (int argc, char** argv)
+int main (int argc, const char *argv[])
{
BOOLEAN Result;
GUI_FONT_CONTEXT Context;
- uint8_t *FontImage;
- uint32_t FontImageSize;
- uint8_t *FontMetrics;
- uint32_t FontMetricsSize;
+ UINT8 *FontImage;
+ UINT32 FontImageSize;... |
refactor(warning):
Warning(boatplatform_internal.c.c) : passing 'BUINT8 *const' (aka 'unsigned char *const') to parameter of type 'BCHAR *' | @@ -549,7 +549,7 @@ static BOAT_RESULT sBoatPort_keyCreate_external_injection_pkcs(const BoatWalletP
return BOAT_ERROR_COMMON_OUT_OF_MEMORY;
}
- result = UtilityPKCS2Native(config->prikey_content.field_ptr,&keypair);
+ result = UtilityPKCS2Native((BCHAR*)(config->prikey_content.field_ptr),&keypair);
if(result != BOAT_S... |
Use yaml safe_load in gppkg
Commit added in PR
updated yaml and changed yaml.load to yaml.safe_load in gpload.
gppkg uses yaml as well, but references were not updated - this commit
resolves that discrepancy. | @@ -240,7 +240,7 @@ class Gppkg:
for cur_file in archive_list:
if cur_file.endswith(SPECFILE_NAME):
specfile = tarinfo.extractfile(cur_file)
- yamlfile = yaml.load(specfile)
+ yamlfile = yaml.safe_load(specfile)
keys = yamlfile.keys()
break
@@ -1345,7 +1345,7 @@ class BuildGppkg(Operation):
cur_file = None
with open(sp... |
bletiny: Add support to modify privacy mode | @@ -2463,6 +2463,46 @@ static struct kv_pair cmd_set_addr_types[] = {
{ NULL }
};
+static void
+bletiny_set_priv_mode_help(void)
+{
+ console_printf("Available set priv_mode params: \n");
+ help_cmd_kv_dflt("addr_type", cmd_set_addr_types, BLE_ADDR_PUBLIC);
+ help_cmd_byte_stream_exact_length("addr", 6);
+ help_cmd_uin... |
Update: Implications working again!! | @@ -339,6 +339,7 @@ void Cycle_Perform(long currentTime)
for(int j=0; j<concepts.itemsAmount; j++)
{
Concept *c = concepts.items[j].address;
+ //first filter based on common term (semantic relationship)
bool has_common_term = false;
for(int k=0; k<5; k++)
{
@@ -355,7 +356,22 @@ void Cycle_Perform(long currentTime)
}
}
... |
Redefine IP structure. Temporary broken compatibility and won't compile | @@ -119,12 +119,32 @@ typedef enum {
LWESP_IPTYPE_V6 /*!< IP type is V6 */
} lwesp_iptype_t;
+/**
+ * \ingroup LWESP_TYPEDEFS
+ * \brief IPv4 address structure
+ */
+typedef struct {
+ uint8_t addr[4];
+} lwesp_ip4_addr_t;
+
+/**
+ * \ingroup LWESP_TYPEDEFS
+ * \brief IPv6 address structure
+ */
+typedef struct {
+ uin... |
BugID:18679699: otaapp support diff test | #endif
#include "ota/ota_service.h"
+#include "ota_hal_plat.h"
+#include "ota_hal_os.h"
static ota_service_t ctx = {0};
@@ -72,16 +74,6 @@ static void handle_ota_cmd(char *buf, int blen, int argc, char **argv)
aos_task_new("ota_example", ota_work, &ctx, 1024 * 6);
}
-typedef struct
-{
- uint32_t ota_len;
- uint32_t ota... |
Remove a pointless "#if 0" block from BN_mul. | @@ -587,46 +587,6 @@ int BN_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
rr->top = top;
goto end;
}
-# if 0
- if (i == 1 && !BN_get_flags(b, BN_FLG_STATIC_DATA)) {
- BIGNUM *tmp_bn = (BIGNUM *)b;
- if (bn_wexpand(tmp_bn, al) == NULL)
- goto err;
- tmp_bn->d[bl] = 0;
- bl++;
- i--;
- } else if (i == -1 ... |
Make isSetup return false if the app is locked | @@ -460,6 +460,13 @@ func Py_DecodeLocale(_: UnsafePointer<Int8>!, _: UnsafeMutablePointer<Int>!) ->
/// Set to `true` when the REPL is ready to run scripts.
@objc var isSetup: Bool {
+
+ #if MAIN
+ if !isUnlocked {
+ return false
+ }
+ #endif
+
return ProcessInfo.processInfo.environment.keys.contains("IS_PYTHON_RUNNIN... |
SLW: fix running in mambo
Fixes: | @@ -1729,8 +1729,10 @@ void slw_init(void)
{
struct proc_chip *chip;
- if (proc_chip_quirks & QUIRK_MAMBO_CALLOUTS)
+ if (proc_chip_quirks & QUIRK_MAMBO_CALLOUTS) {
wakeup_engine_state = WAKEUP_ENGINE_NOT_PRESENT;
+ return;
+ }
if (proc_gen == proc_gen_p8) {
for_each_chip(chip) {
slw_init_chip_p8(chip);
|
fix other (potential) problems related | @@ -835,6 +835,10 @@ htparser_run(htparser * p, htparse_hooks * hooks, const char * data, size_t len)
HTP_SET_BUF(ch);
}
+ if (evhtp_unlikely(i + 1 >= len)) {
+ break;
+ }
+
ch = data[++i];
} while (i < len);
@@ -1319,6 +1323,10 @@ htparser_run(htparser * p, htparse_hooks * hooks, const char * data, size_t len)
break;
... |
rust/bitbox02/ui: sync label size with the C label component | @@ -81,7 +81,7 @@ where
let component = unsafe {
bitbox02_sys::trinary_input_string_create_password(
- crate::str_to_cstr_force!(title, 100).as_ptr(),
+ crate::str_to_cstr_force!(title, 199).as_ptr(), // same as label.c max size
special_chars,
Some(c_confirm_callback::<F>),
// TODO: from_raw
@@ -148,8 +148,8 @@ where
F... |
core: moved formerly static fields to mk_server | @@ -172,6 +172,16 @@ struct mk_server
/* FIXME: temporal map of Network Layer plugin */
struct mk_plugin_network *network;
+ /* Thread initializator helpers (sched_launch_thread) */
+ int pth_init;
+ pthread_cond_t pth_cond;
+ pthread_mutex_t pth_mutex;
+
+ /* worker_id as used by mk_sched_register_thread, it was moved... |
Remove sensor setting from deep sleep example | @@ -15,15 +15,6 @@ print(rtc.datetime())
sensor.reset()
-# Enable sensor softsleep
-sensor.sleep(True)
-
-# Optionally bypass the regulator on OV7725
-# for the lowest possible power consumption.
-if (sensor.get_id() == sensor.OV7725):
- # Bypass internal regulator
- sensor.__write_reg(0x4F, 0x18)
-
# Shutdown the sens... |
The inline cache pointer can be a restrict pointer
In the tests I ran on GCC it didn't have a measurable difference. But it
shouldn't hurt to make this a restrict pointer. | @@ -227,11 +227,13 @@ void pallene_renormalize_array(
}
}
+/* This function is a version of luaH_getshortstr that uses an inline cache for
+ * the hash function */
+
static const TValue PALLENE_ABSENTKEY = {ABSTKEYCONSTANT};
-/* This function is a speciallization of luaH_getshortstr from ltable.c */
static inline
-TVal... |
Don't try to bind power configuration cluster for Ikea Tradfri remote with old firmware
The attribute isn't supported in old firmware, and binding would be done
in an infinite loop. | @@ -1537,6 +1537,11 @@ bool DeRestPluginPrivate::checkSensorBindingsForAttributeReporting(Sensor *senso
val = sensor->getZclValue(*i, 0x0021); // battery percentage remaining
}
+ if (sensor->modelId() == QLatin1String("TRADFRI remote control") && sensor->swVersion() == QLatin1String("0.9.8.1-5.7.0.0"))
+ {
+ continue; ... |
Added some rudimentary error checking in mateltwise kernel | @@ -275,6 +275,16 @@ void libxsmm_generator_cvtfp32bf16_avx512_microkernel( libxsmm_generated_code*
unsigned int i = 0, im, m, n, m_trips, use_m_masking, mask_in_count, mask_out_count, reg_0, reg_1;
+ /* Some rudimentary checking of M, N and LDs*/
+ if ( (i_mateltwise_desc->m > i_mateltwise_desc->ldi) || (i_mateltwise_... |
jenkins: do not build date and fcrypt | @@ -443,11 +443,15 @@ def generateFullBuildStages() {
tasks << buildAndTestMingwW64()
// Build Elektra on alpine
+ // TODO: Remove bash after #2077 is resolved
+ // TODO: Add more deps to test them with musl
+ // TODO: add date + fcrypt when their issues are resolved
tasks << buildAndTest(
"alpine",
DOCKER_IMAGES.alpin... |
Default data viewer implementation is very strict and breaks common functionality, i.e. events without a level are getting blocked by default.
Temporarily disable it in common shared codebase. Office guys should enable in their build. | #if defined(HAVE_PRIVATE_MODULES)
#define HAVE_MAT_EXP
#define HAVE_MAT_FIFOSTORAGE
-#define HAVE_MAT_DEFAULTDATAVIEWER
+//#define HAVE_MAT_DEFAULTDATAVIEWER
#endif
#define HAVE_MAT_JSONHPP
#define HAVE_MAT_ZLIB
|
include/debug.h: change a format of vaargs to ...
"x..." makes a warning with some toolchain version.
Let's use "...". | #ifdef CONFIG_DEBUG_BINFMT_ERROR
# define berr(format, ...) dbg(format, ##__VA_ARGS__)
#else
-# define berr(x...)
+# define berr(...)
#endif
#ifdef CONFIG_DEBUG_BINFMT_WARN
# define bwarn(format, ...) wdbg(format, ##__VA_ARGS__)
#else
-# define bwarn(x...)
+# define bwarn(...)
#endif
#ifdef CONFIG_DEBUG_BINFMT_INFO
# d... |
BugID:18542485: optimize CLI/KV/VFS component macro | @@ -50,7 +50,7 @@ else
$(NAME)_SOURCES += rhino.c
endif
-ifeq ($(AOS_COMP_KV), 1)
+ifeq ($(AOS_COMP_KV),y)
$(NAME)_SOURCES += kv.c
endif
@@ -58,11 +58,11 @@ ifeq ($(AOS_COMP_MBMASTER),y)
$(NAME)_SOURCES += mbmaster.c
endif
-ifeq ($(AOS_COMP_CLI),1)
+ifeq ($(AOS_COMP_CLI),y)
$(NAME)_SOURCES += cli.c
endif
-ifeq ($(AOS_C... |
CONTRIBUTING: swith documentation from CMake to Meson. | @@ -30,14 +30,13 @@ SIMDe contains an extensive test suite used for development. Most
users will never need to build the suite, but if you're contributing
code to SIMDe you'll need to build them.
-Here is the basic procedure for compiling the tests:
+Here is the basic procedure for compiling and running the tests:
```b... |
Ignore errors on unloading UEFI driver | @@ -1813,19 +1813,16 @@ NvmDimmDriverDriverBindingStop(
TempReturnCode = gBS->UninstallMultipleProtocolInterfaces(gNvmDimmData->DriverHandle,
&gNvmDimmConfigProtocolGuid, &gNvmDimmDriverNvmDimmConfig, NULL);
if (EFI_ERROR(TempReturnCode)) {
- FIRST_ERR(ReturnCode, TempReturnCode);
NVDIMM_WARN("Failed to uninstall the N... |
Format and mark exposed/documented members. | @@ -2473,10 +2473,10 @@ typedef struct entity
unsigned pathblocked;
s_axis_principal_float *waypoints;
int numwaypoints;
- unsigned int animpos; // Current animation frame.
- unsigned int animnum; // animation id.
+ unsigned int animpos; // Current animation frame. ~~ animation_frame
+ unsigned int animnum; // Current ... |
flash_ec: leverage new ftdii2c_cmd interface for ite flash
This adopts the change to the ftdii2c controls
CQ-DEPEND=CL:1156425
BRANCH=None
TEST=None
Tested-by: Matthew Blecker | @@ -487,9 +487,9 @@ cleanup() {
if [ "${CHIP}" == "it83xx" ] ; then
info "Reinitialize ftdi_i2c interface"
- dut_control --ftdii2c init
- dut_control --ftdii2c open
- dut_control --ftdii2c setclock
+ dut_control ftdii2c_cmd:init
+ dut_control ftdii2c_cmd:open
+ dut_control ftdii2c_cmd:setclock
# Reset the dut mux if it... |
Makefile: add publish target | @@ -29,3 +29,9 @@ release-date:
-exec sed -i'' \
-e "s/^Release pending/Released $$(date '+%d-%m-%Y')/" \
'{}' ';'
+
+.PHONY: publish
+publish:
+ for archive in $$(cabal sdist all | grep -v '^Wrote tarball sdist to'); do \
+ cabal upload "$$archive" --publish; \
+ done
|
[mod_openssl] inherit cipherlist from global scope
inherit cipherlist from global scope if not set in $SERVER["socket"] | @@ -1236,8 +1236,18 @@ SETDEFAULTS_FUNC(mod_openssl_set_defaults)
s->ssl_read_ahead = (0 == i)
? 0
: p->config_storage[0]->ssl_read_ahead;
- if (0 != i) buffer_copy_buffer(s->ssl_ca_crl_file, p->config_storage[0]->ssl_ca_crl_file);
- if (0 != i) buffer_copy_buffer(s->ssl_ca_dn_file, p->config_storage[0]->ssl_ca_dn_file... |
common CHANGE move enumerations of YANG_POSITION and YANG_VALUE closer to each other | @@ -285,7 +285,6 @@ enum yang_keyword {
YANG_OUTPUT,
YANG_PATH,
YANG_PATTERN,
- YANG_POSITION,
YANG_PREFIX,
YANG_PRESENCE,
YANG_RANGE,
@@ -302,6 +301,7 @@ enum yang_keyword {
YANG_UNIQUE,
YANG_UNITS,
YANG_USES,
+ YANG_POSITION,
YANG_VALUE,
YANG_WHEN,
YANG_YANG_VERSION,
|
add family for openmpi3 | @@ -32,6 +32,8 @@ fi
if [ "$OHPC_MPI_FAMILY" = "openmpi" ]; then
module load openmpi
+elif [ "$OHPC_MPI_FAMILY" = "openmpi3" ]; then
+ module load openmpi
elif [ "$OHPC_MPI_FAMILY" = "impi" ]; then
module load impi
elif [ "$OHPC_MPI_FAMILY" = "mvapich2" ]; then
|
fixed error in tinker 2008 hmf and removed bugtesting printf statement | @@ -217,6 +217,7 @@ static double massfunc_f(ccl_cosmology *cosmo, double halomass, double a, double
fit_c = gsl_spline_eval(cosmo->data.phihmf, log10(odelta), cosmo->data.accelerator_d);
fit_d = pow(10, -1.0*pow(0.75 / log10(odelta / 75.0), 1.2));
+ fit_A = fit_A*pow(a, 0.14);
fit_a = fit_a*pow(a, 0.06);
fit_b = fit_b... |
[cmake] append utf-8 coding indicator only if unix commands exist | @@ -182,9 +182,15 @@ macro(add_siconos_swig_sub_module fullname)
ENDIF()
# Add a post-build step that prepends utf-8 coding indicator to .py files
+ find_program(SH_COMMAND sh)
+ find_program(TAR_COMMAND tar)
+ find_program(MV_COMMAND mv)
+ if(SH_COMMAND AND TAR_COMMAND)
+ if(MV_COMMAND)
add_custom_command(TARGET ${SWI... |
Change conduit version used to 0.8.3. | @@ -159,8 +159,8 @@ VISIT_OPTION_DEFAULT(VISIT_HDF5_LIBDEP
##
## CONDUIT
##
-SETUP_APP_VERSION(CONDUIT 0.8.2)
-VISIT_OPTION_DEFAULT(VISIT_CONDUIT_DIR ${VISITHOME}/conduit/0.8.2)
+SETUP_APP_VERSION(CONDUIT 0.8.3)
+VISIT_OPTION_DEFAULT(VISIT_CONDUIT_DIR ${VISITHOME}/conduit/0.8.3)
VISIT_OPTION_DEFAULT(VISIT_CONDUIT_LIBDE... |
stm32h7\stm32_fdcan_sock: reserve space for timeval struct in the intermediate storage of tx and rx CAN frames when timestamp is enabled | #include <nuttx/net/can.h>
#include <netpacket/can.h>
-#ifdef CONFIG_NET_CAN_RAW_TX_DEADLINE
+#if defined(CONFIG_NET_CAN_RAW_TX_DEADLINE) || defined(CONFIG_NET_TIMESTAMP)
#include <sys/time.h>
#endif
#define POOL_SIZE 1
-#ifdef CONFIG_NET_CAN_RAW_TX_DEADLINE
+#if defined(CONFIG_NET_CAN_RAW_TX_DEADLINE) || defined(CONFI... |
Update face detection script. | @@ -40,7 +40,7 @@ while (True):
# Find objects.
# Note: Lower scale factor scales-down the image more and detects smaller objects.
# Higher threshold results in a higher detection rate, with more false positives.
- objects = img.find_features(face_cascade, threshold=0.75, scale_factor=1.35)
+ objects = img.find_feature... |
mbedtls: use SOC capability macros instead of target names | @@ -347,7 +347,7 @@ menu "mbedTLS"
config MBEDTLS_HARDWARE_AES
bool "Enable hardware AES acceleration"
default y
- depends on !SPIRAM_CACHE_WORKAROUND_STRATEGY_DUPLDST && !IDF_TARGET_ESP32C2
+ depends on !SPIRAM_CACHE_WORKAROUND_STRATEGY_DUPLDST && SOC_AES_SUPPORTED
help
Enable hardware accelerated AES encryption & dec... |
Try different commit ID | #build last picotls master (for Travis)
# Build at a known-good commit
-COMMIT_ID=4e6080b6a1ede0d3b23c72a8be73b46ecaf1a084
+COMMIT_ID=03674790ae42c0d3675c5b462c52988f67454e11
cd ..
git clone --branch master --single-branch --shallow-submodules --recurse-submodules --no-tags https://github.com/h2o/picotls
cd picotls
git... |
VERSION bump to version 1.3.60 | @@ -31,7 +31,7 @@ endif()
# micro version is changed with a set of small changes or bugfixes anywhere in the project.
set(SYSREPO_MAJOR_VERSION 1)
set(SYSREPO_MINOR_VERSION 3)
-set(SYSREPO_MICRO_VERSION 59)
+set(SYSREPO_MICRO_VERSION 60)
set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI... |
hw/fake-nvram: Remove init of static variable to null | #include <mem_region.h>
#include <lock.h>
-static struct mem_region *nvram_region = NULL;
+static struct mem_region *nvram_region;
static struct lock fake_nvram_lock = LOCK_UNLOCKED;
int fake_nvram_info(uint32_t *total_size)
|
[stm32F4] adapt 168M frequency of 1M can baud, remember to add the define of BSP_USING_CAN168M in kconfig while using 168M frequency | @@ -54,7 +54,11 @@ static const struct stm32_baud_rate_tab can_baud_rate_tab[] =
#else /* APB1 45MHz(max) */
static const struct stm32_baud_rate_tab can_baud_rate_tab[] =
{
+#ifdef BSP_USING_CAN168M
+ {CAN1MBaud, (CAN_SJW_1TQ | CAN_BS1_3TQ | CAN_BS2_3TQ | 6)},
+#else
{CAN1MBaud, (CAN_SJW_2TQ | CAN_BS1_9TQ | CAN_BS2_5TQ... |
server: plugin: disable context for now | @@ -251,7 +251,7 @@ void mk_plugin_api_init(struct mk_server *server)
__builtin_prefetch(api);
/* Setup and connections list */
- api->config = server;
+ /* FIXME: api->config = server; */
/* API plugins funcions */
|
Add more clojure functions in the examples | (++ n))
reversed)
-
-(defn reverse [t]
+'(arrays are more efficient so reverse-tuple will not be used)
+(defn reverse
+ "Reverses order of give array or tuple"
+ [t]
(def the-type (type t))
- (cond (= the-type :tuple) (reverse-tuple t)
+ (cond (= the-type :tuple) (->> t iter2array reverse-array (apply tuple) )
(= the-t... |
fixes http zombies | #include "../oidc_error.h"
#include <fcntl.h>
+#include <signal.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/select.h>
@@ -71,6 +72,7 @@ char* httpsGET(const char* url, struct curl_slist* headers,
handleChild(res, fd[1]);
return NULL;
} else { // parent
+ signal(SIGCHLD, SIG_IGN);
return _handleParent(fd... |
Set sig_algs map to NULL after freeing the connection | @@ -373,18 +373,6 @@ static int s2n_connection_wipe_io(struct s2n_connection *conn)
return 0;
}
-static int s2n_connection_wipe_handshake_params(struct s2n_connection *conn)
-{
- if (conn->handshake_params.client_sig_hash_algs != NULL) {
- GUARD(s2n_map_free(conn->handshake_params.client_sig_hash_algs));
- }
- if (conn... |
[core] fix chunkqueue_compact_mem w/ partial chunk
(bug on master branch; never released) | @@ -779,7 +779,11 @@ void chunkqueue_compact_mem(chunkqueue *cq, size_t clen) {
}
for (chunk *fc = c; ((clen -= len) && (c = fc->next)); ) {
len = buffer_string_length(c->mem) - c->offset;
- if (len > clen) len = clen;
+ if (len > clen) {
+ buffer_append_string_len(b, c->mem->ptr + c->offset, clen);
+ c->offset += clen... |
Small formatting cleanup and remove an unnecessary space and cast. | @@ -690,7 +690,7 @@ ScanIntelProcessor (
DEBUG ((DEBUG_INFO, "OCCPU: TSC Adjust %Lu\n", TscAdjust));
ASSERT (Cpu->ARTFrequency > 0ULL);
- Cpu->CPUFrequencyFromART = MultThenDivU64x64x32 (Cpu->ARTFrequency, CpuidEbx, (UINT32) CpuidEax, NULL);
+ Cpu->CPUFrequencyFromART = MultThenDivU64x64x32 (Cpu->ARTFrequency, CpuidEbx... |
iokernel: don't let PMC hurt lat-critical apps. | @@ -395,8 +395,26 @@ static void mis_sample_pmc(uint64_t sel)
if (!sd1 && !sd2)
continue;
- if (sd1 && (!sd2 ||
- sd1->threads_monitored <= sd2->threads_monitored)) {
+ bool sd1_no_kick_out = sd1 &&
+ (sd1->threads_limit <= sd1->threads_guaranteed);
+ bool sd2_no_kick_out = sd2 &&
+ (sd2->threads_limit <= sd2->threads_... |
PHP: rearranged feature checks in ./configure.
Now it prints version even if PHP was built without embed SAPI. | @@ -110,6 +110,30 @@ if /bin/sh -c "${NXT_PHP_CONFIG} --version" >> $NXT_AUTOCONF_ERR 2>&1; then
fi
fi
+else
+ $echo
+ $echo $0: error: no PHP found.
+ $echo
+ exit 1;
+fi
+
+
+nxt_feature="PHP version"
+nxt_feature_name=""
+nxt_feature_run=value
+nxt_feature_incs="${NXT_PHP_INCLUDE}"
+nxt_feature_libs="${NXT_PHP_LIB} ... |
test
just for test | * distributed under the License is distributed on an AS IS BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
+
+
+
+
* limitations under the License.
*/
|
Update preprocessor macro names indicating CCI-P encodings available. | // after the initial release, allowing RTL to work with multiple versions.
//
-// Speculative loads: eREQ_RDLSPEC and the error flag in t_ccip_c0_RspMemHdr
+// The fields required to encode speculative loads are available when
+// CCIP_ENCODING_HAS_RDLSPEC is defined.
+//
+// Speculative loads may be useful for emittin... |
Removes unittest2 from shipped gpdb
We only want to copy the file if it exists | @@ -75,13 +75,27 @@ install: generate_greenplum_path_file
# Setup /lib/python contents
cp -rp bin/gppylib $(DESTDIR)$(prefix)/lib/python
- cp -rp bin/ext/Crypto $(DESTDIR)$(prefix)/lib/python
- cp -rp bin/ext/__init__.py $(DESTDIR)$(prefix)/lib/python
- cp -rp bin/ext/lockfile $(DESTDIR)$(prefix)/lib/python
- cp -rp bi... |
zz: platform_ocapi can be static
Acked-by: Andrew Donnellan | #include "lxvpd.h"
/* We don't yet create NPU device nodes on ZZ, but these values are correct */
-const struct platform_ocapi zz_ocapi = {
+static const struct platform_ocapi zz_ocapi = {
.i2c_engine = 1,
.i2c_port = 4,
.i2c_reset_addr = 0x20,
|
Coverity certs are fixed. | @@ -12,11 +12,9 @@ jobs:
run: sudo apt-get update --fix-missing -y
- name: install prerequisites
run: sudo apt-get install -y avahi-daemon cppcheck libavahi-client-dev libcups2-dev libcupsimage2-dev libgnutls28-dev libjpeg-dev libpam-dev libpng-dev libusb-1.0-0-dev zlib1g-dev
- - name: Download current Entrust root cer... |
api,misc: remove redundant cri_asserts_passed_incr declaration | #include "designated-initializer-compat.h"
#include "common.h"
+#include "assert.h"
#ifdef __OBJC__
# import <Foundation/Foundation.h>
@@ -68,7 +69,6 @@ CR_BEGIN_C_API
CR_API void criterion_internal_test_setup(void);
CR_API void criterion_internal_test_main(void (*fn)(void));
CR_API void criterion_internal_test_teardow... |
Update section header on Verilog support in chipyard tools | @@ -158,8 +158,8 @@ write.
:start-after: DOC include start: GCD test
:end-before: DOC include end: GCD test
-Support for Verilog in Downstream Berkeley Tools
-------------------------------------------------
+Support for Verilog Within Chipyard Tool Flows
+----------------------------------------------
There are import... |
options/ansi: Implement wcrtomb() | @@ -85,8 +85,27 @@ size_t mbrtowc(wchar_t *wcp, const char *mbs, size_t mb_limit, mbstate_t *stp) {
}
}
-size_t wcrtomb(char *__restrict, wchar_t, mbstate_t *__restrict)
- MLIBC_STUB_BODY
+size_t wcrtomb(char *mbs, wchar_t wc, mbstate_t *stp) {
+ auto cc = mlibc::current_charcode();
+
+ // wcrtomb() always takes a mbst... |
Tweak the pip PATH callouts. | @@ -188,7 +188,7 @@ West can be installed by using the `pip` python package manager.
pip3 install --user -U west
```
-:::tip pip user packages
+:::danger pip user packages
If you haven't done so yet, you may need to add the Python Pip user package directory to your `PATH`, e.g.:
```
@@ -306,7 +306,7 @@ cd zmk
west init... |
Updated masternode list full command | @@ -217,9 +217,9 @@ Value masternode(const Array& params, bool fHelp)
strCommand = params[1].get_str().c_str();
}
- if (strCommand != "active" && strCommand != "vin" && strCommand != "pubkey" && strCommand != "lastseen" && strCommand != "activeseconds" && strCommand != "rank" && strCommand != "protocol"){
+ if (strComm... |
unix: cane before root removal | @@ -280,13 +280,13 @@ u3_unix_save(c3_c* pax_c, u3_atom pad)
c3_y* pad_y;
c3_c* ful_c;
- if ( '/' == *pax_c) {
- pax_c++;
- }
if ( !u3_unix_cane(pax_c) ) {
u3l_log("%s: non-canonical path\n", pax_c);
u3z(pad); u3m_bail(c3__fail);
}
+ if ( '/' == *pax_c) {
+ pax_c++;
+ }
lod_w = strlen(u3_Host.dir_c);
len_w = lod_w + si... |
Simplify the RFC-derived handshake specification: remove the
keyExchangeEphemeral predicate and adjust the connectionParameters relation. | @@ -118,24 +118,18 @@ type Parameters = {keyExchange : KeyExchange
connectionParameters : connection -> Parameters -> Bit
connectionParameters conn params =
conn.server_can_send_ocsp == params.sendCertificateStatus
- /\ ((conn.key_exchange_eph /\ keyExchangeEphemeral params) \/
+ /\ ((conn.key_exchange_eph /\ ~keyExcha... |
[test] test some important ladder corner cases
and catch corner cases better and earlier | @@ -31,6 +31,7 @@ static int group_order_tests(EC_GROUP *group)
{
BIGNUM *n1 = NULL, *n2 = NULL, *order = NULL;
EC_POINT *P = NULL, *Q = NULL, *R = NULL, *S = NULL;
+ const EC_POINT *G = NULL;
BN_CTX *ctx = NULL;
int i = 0, r = 0;
@@ -38,6 +39,7 @@ static int group_order_tests(EC_GROUP *group)
|| !TEST_ptr(n2 = BN_new(... |
parallel-libs/mumps: bump version to v5.2.1 | %define pname mumps
Name: %{pname}-%{compiler_family}-%{mpi_family}%{PROJ_DELIM}
-Version: 5.2.0
+Version: 5.2.1
Release: 1%{?dist}
Summary: A MUltifrontal Massively Parallel Sparse direct Solver
License: CeCILL-C
|
hw/bsp/da1469x: Fix help text in serial load script
Match the script help with the serial load functionality
provided. | @@ -24,7 +24,7 @@ import os
@click.argument('infile')
@click.option('-u', '--uart', required=True, help='uart port')
-@click.command(help='Close out OTP configuration script')
+@click.command(help='Load the provided file using serial load protocol')
def load(infile, uart):
try:
ser = serial.Serial(port=uart, baudrate=1... |
hw/sensor: Make sure evt pool is properly initialized | @@ -648,6 +648,7 @@ sensor_mgr_init(void)
{
struct os_timeval ostv;
struct os_timezone ostz;
+ int rc;
#ifdef MYNEWT_VAL_SENSOR_MGR_EVQ
sensor_mgr_evq_set(MYNEWT_VAL(SENSOR_MGR_EVQ));
@@ -655,10 +656,11 @@ sensor_mgr_init(void)
sensor_mgr_evq_set(os_eventq_dflt_get());
#endif
- os_mempool_init(&sensor_notify_evt_pool,
... |
framework/wifi_manager: unlock before return fail | @@ -1404,6 +1404,7 @@ wifi_manager_result_e wifi_manager_get_info(wifi_manager_info_s *info)
wret = dhcpc_fetch_ipaddr(&ip_ref);
if (wret != WIFI_MANAGER_SUCCESS) {
ndbg("[WM] T%d Failed to fetch ip4 address\n", getpid());
+ UNLOCK_WIFIMGR;
return WIFI_MANAGER_FAIL;
}
|
Fix for rescheduling a timer that is currently in progress.
Also fix a typo which uses the wrong mutex for a condition wait. | @@ -113,6 +113,21 @@ sctp_os_timer_start(sctp_os_timer_t *c, int to_ticks, void (*ftn) (void *),
SCTP_TIMERQ_LOCK();
/* check to see if we're rescheduling a timer */
+ if (c == sctp_os_timer_current) {
+ /*
+ * We're being asked to reschedule a callout which is
+ * currently in progress.
+ */
+ if (sctp_os_timer_waitin... |
Fix buffer overflow in FTP client
Function ftpc_dequote that converts quoted hexadecimal constants to binary values goes outside input data buffer -str pointer is checked, while str[1] and str[2] are read.
while parsing the server response end of string should be checked | @@ -173,7 +173,7 @@ void ftpc_stripcrlf(FAR char *str)
len = strlen(str);
if (len > 0) {
ptr = str + len - 1;
- while (*ptr == '\r' || *ptr == '\n') {
+ while ((ptr >= str) && (*ptr == '\r' || *ptr == '\n')) {
*ptr = '\0';
ptr--;
}
@@ -237,6 +237,9 @@ FAR char *ftpc_dequote(FAR const char *str)
if (str[0] == '%') {
/* ... |
win, simd: make sure that CGLM_ALL_UNALIGNED is defined for older visual studios | # define __SSE__
# endif
# endif
+/* do not use alignment for older visual studio versions */
+# if _MSC_VER < 1913 /* Visual Studio 2017 version 15.6 */
+# define CGLM_ALL_UNALIGNED
+# endif
#endif
#if defined( __SSE__ ) || defined( __SSE2__ )
|
Fixed loopback test for new GMLAN 'can4' behavior. | @@ -28,6 +28,8 @@ def run_test(can_speeds, gmlan_speeds, sleep_duration=0):
pandas.append("WIFI")
run_test_w_pandas(pandas, can_speeds, gmlan_speeds, sleep_duration)
+GMLAN_BUS = 3 # Virtual 'CAN 4'
+
def run_test_w_pandas(pandas, can_speeds, gmlan_speeds, sleep_duration=0):
h = list(map(lambda x: Panda(x), pandas))
pr... |
wasm: Link against jemalloc if enabled | @@ -88,8 +88,15 @@ set(src
${UNCOMMON_SHARED_SOURCE}) # link wasm-micro-runtime's uncommon object symbols (for bh_read_file_to_buffer)
add_library(flb-wasm-static STATIC ${src})
+
+if (FLB_JEMALLOC AND ${CMAKE_SYSTEM_NAME} MATCHES "Linux")
+ set(${JEMALLOC_LIBS} libjemalloc)
+ add_dependencies(flb-wasm-static libjemall... |
add a test for [tree]%A | @@ -72,12 +72,22 @@ int main () {
}
*/
+ printf ("test []%%A\n");
struct json_token * tokens = NULL;
json_scanf(array_tok.start, array_tok.length, "[]%A", &tokens);
for (i = 0; tokens[i].start; i++) {
printf ("token [%p, %d]\n", tokens[i].start, tokens[i].length);
printf ("token %.*s\n", tokens[i].length, tokens[i].sta... |
Fixes issue with when running code multiple times
This fixes issue with James disappearing. See: elishacloud/Silent-Hill-2-Enhancements@#455 | @@ -568,8 +568,8 @@ void Init()
if (bLightingFix)
{
static auto pattern_1 = hook::pattern("8B 10 75 ? 8B 0D");
- auto dword_1F81298 = *pattern_1.count(2).get(0).get<uintptr_t>(6) - 0x10;
- auto dword_1F8129C = *pattern_1.count(2).get(1).get<uintptr_t>(6) - 0x10;
+ static auto dword_1F81298 = *pattern_1.count(2).get(0).... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.