message
stringlengths
6
474
diff
stringlengths
8
5.22k
Handle INVALID_SIGNATURE instead of INVALID_PADDING in rsa_verify_wrap()
@@ -215,9 +215,9 @@ static int rsa_verify_wrap( void *ctx, mbedtls_md_type_t md_alg, sig, sig_len ); if( status != PSA_SUCCESS ) { - if ( status == PSA_ERROR_INVALID_PADDING ) + if ( status == PSA_ERROR_INVALID_SIGNATURE ) { - ret = MBEDTLS_ERR_RSA_INVALID_PADDING; + ret = MBEDTLS_ERR_RSA_VERIFY_FAILED; } else {
hw/mcu/nrf5340: Fix build with 6pf lfxo trim
@@ -92,7 +92,7 @@ hal_system_clock_start(void) #if MYNEWT_VAL_CHOICE(MCU_LFCLK_XO_INTCAP, external) NRF_OSCILLATORS->XOSC32KI.INTCAP = OSCILLATORS_XOSC32KI_INTCAP_INTCAP_External; #elif MYNEWT_VAL_CHOICE(MCU_LFCLK_XO_INTCAP, c6pf) - NRF_OSCILLATORS->XOSC32KI.INTCAP = OSCILLATORS_XOSC32KI_INTCAP_INTCAP_C6PF + NRF_OSCILL...
ci: only build gcc once
@@ -42,6 +42,7 @@ jobs: run: 'C=gcc-10 CXX=g++-10 meson test -v -C pkg-builds/${{matrix.builds}}' working-directory: build/ - name: Build GCC + if: ${{matrix.builds == 'mlibc'}} run: 'xbstrap install-tool gcc' working-directory: build/
Travis: Install specific version of cmake format
@@ -205,7 +205,7 @@ before_install: sudo apt-get install libev-dev sudo apt-get install libxerces-c-dev sudo apt-get install moreutils # contains `sponge` required by `reformat-cmake` - sudo pip install --upgrade cmake_format + sudo pip install --upgrade cmake_format==0.3.6 fi #
Allow table.insert to work with hash part too
@@ -1019,6 +1019,7 @@ local function generate_lvalue_write(lvalue, exp_cvalue, ctx) }) elseif tag == coder.Lvalue.ArraySlot then + -- TODO: GC local typ = lvalue.var._type local ui = ctx:new_cvar("lua_Unsigned", "ui") local arrslot = ctx:new_cvar("TValue *", "arrslot") @@ -1411,27 +1412,22 @@ local function generate_ex...
[chainmaker]add sdk Deinit
@@ -171,6 +171,7 @@ result = BoatHlchainmakerContractQuery(&tx_ptr, "find_by_file_hash","fact", &que /* step-6: chainmaker transaction structure Deinitialization */ BoatHlchainmakerTxDeInit(&tx_ptr); - +/* step-7: Boat SDK Deinitialization */ + BoatIotSdkDeInit(); return 0; }
Updates zlib download for Android build.
@@ -87,7 +87,7 @@ RUN curl -L -O http://downloads.sourceforge.net/libuuid/libuuid-1.0.3.tar.gz && # zlib -RUN curl -L -O http://zlib.net/zlib-1.2.10.tar.gz && \ +RUN curl -L -O http://zlib.net/zlib-1.2.11.tar.gz && \ tar -xvzf zlib-*.tar.gz && \ cd zlib-* && \ ./configure --prefix=/build/output/zlib && make && make ins...
crypto-native: fix ARM compilatiion flags Type: fix
@@ -25,7 +25,7 @@ if(CMAKE_SYSTEM_PROCESSOR MATCHES "amd64.*|x86_64.*|AMD64.*") endif() if(CMAKE_SYSTEM_PROCESSOR MATCHES "^(aarch64.*|AARCH64.*)") - list(APPEND VARIANTS "armv8\;-march=native") + list(APPEND VARIANTS "armv8\;-march=armv8.1-a+crc+crypto") set (COMPILE_FILES aes_cbc.c) set (COMPILE_OPTS -Wall -fno-commo...
[io] fix siconos_filter use of dataset.chunk
@@ -98,9 +98,11 @@ class CopyVisitor(object): # Determine chunks argument if obj.__class__ == h5py.Dataset: - chunks = obj.chunks - if np.any(np.array(chunks) > np.array(obj.shape)): chunks = None + if (hasattr(obj, 'chunks') + and obj.chunks is not None + and np.all(np.array(obj.chunks) <= np.array(obj.shape))): + chu...
[Libc] Add some errno to dlib.
#define EPERM 1 /* Not super-user */ #define ESRCH 3 /* No such process */ #define EINTR 4 /* Interrupted system call */ +#define EACCES 13 /* Permission denied */ #define EFAULT 14 /* Bad address */ #define ENFILE 23 /* Too many open files in system */ #define ERANGE 34 /* Math result not representable */ #define EOPN...
[OpenGL] Always use QueryDrawable
@@ -110,20 +110,10 @@ static void do_imgui_swap(void *dpy, void *drawable) unsigned int width = -1, height = -1; - // glXQueryDrawable is buggy, use XGetGeometry instead Window unused_window; int unused; - static bool xgetgeom_failed = true; // FIXME XGetGeometry may not like the drawable so disable for now - if (xgetg...
Compact 2 format functions to 1 In translate_ciphers.py there were 2 format functions that were virtually identical and a check was made beforehand to decide which one to call. Now the check is made inside a single function to reduce duplicate code
@@ -97,33 +97,23 @@ def translate_ossl(m_cipher): return m_cipher -def format_g(m_ciphers): - #ciphers = (re.findall(r"TLS-.+\s*\\", m_ciphers)) - m_ciphers = m_ciphers.split() - g_ciphers = [] - for i in m_ciphers: - g_ciphers.append(translate_gnu(i)) - return " ".join(g_ciphers) - -def format_o(m_ciphers): - m_cipher...
doccords: dprint improve default arm core docs the logic for getting the docs on the default arm of a core is now more similar to how other arm docs are gotten, rather than having its own system. there is still more room for improvement
:> arm-doc: docs written above the the arm :> product-doc: docs for the product of the arm :> core-doc: docs for the default arm of the core produced by the arm +:> this will be the first of the arm-doc or product-doc on the default +:> arm. maybe this should be recursive and/or give both but its a decision +:> ill lea...
Fix no-des Disable a recently added CMS test in the case of no-des.
@@ -640,8 +640,8 @@ subtest "CMS Decrypt message encrypted with OpenSSL 1.1.1\n" => sub { plan tests => 1; SKIP: { - skip "EC isn't supported in this build", 1 - if disabled("ec"); + skip "EC or DES isn't supported in this build", 1 + if disabled("ec") || disabled("des"); my $out = "smtst.txt";
[core] parse conf cmds with SHELL or /bin/sh (thx ryandesign) Use $SHELL -c to execute commands if SHELL is set and is not set to /usr/bin/false or /bin/false, else use /bin/sh -c x-ref:
@@ -2299,6 +2299,9 @@ int config_parse_cmd(server *srv, config_t *context, const char *cmd) { char *shell = getenv("SHELL"); char *args[4]; pid_t pid; + if (shell && (0 == strcmp(shell, "/usr/bin/false") + || 0 == strcmp(shell, "/bin/false"))) + shell = NULL; *(const char **)&args[0] = shell ? shell : "/bin/sh"; *(cons...
Use fixedarray instead of spans
@@ -31,7 +31,10 @@ public unsafe partial struct MobHunt { [FieldOffset(0x8)] public fixed byte unkArray[18]; [FieldOffset(0x1A)] public fixed byte MarkID[18]; + + [FixedArray(typeof(KillCounts), 18)] [FieldOffset(0x2C)] public fixed int CurrentKills[18 * 5]; + [FieldOffset(0x194)] public int ObtainedFlags; [StaticAddre...
SOVERSION bump to version 2.8.12
@@ -63,7 +63,7 @@ set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_ # set version of the library set(LIBYANG_MAJOR_SOVERSION 2) set(LIBYANG_MINOR_SOVERSION 8) -set(LIBYANG_MICRO_SOVERSION 11) +set(LIBYANG_MICRO_SOVERSION 12) set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG_...
SR: Use multiple commands instead of single one
Mountpoint: user/test/ls < kdb set user/test/ls/level1 'one' + < kdb ls user/test/ls + < kdb set user/test/ls/level1/level2 'two' + < kdb set user/test/ls/the 'roots' + < kdb ls user/test/ls + < kdb set user/test/ls/the/next/level
Added test code for zero jitting
@@ -90,6 +90,9 @@ int main(int argc, char* argv[]) for (i=0; i < desc.m; i++ ) { for (j=0; j < desc.n; j++) { a[j+desc.lda*i] = 1.0 * rand(); + if (desc.zero_source) { + b[j+desc.ldb*i] = 1.0 * rand(); + } } } @@ -111,7 +114,13 @@ int main(int argc, char* argv[]) for (i=0; i < desc.m; i++ ) { for (j=0; j < desc.n; j++)...
esp_timer: fix the bug that when timeout of timer happens try to run callback, and high priority task delete the timer and break the callback
@@ -300,8 +300,10 @@ static void timer_process_alarm(esp_timer_dispatch_t dispatch_method) #if WITH_PROFILING uint64_t callback_start = now; #endif + esp_timer_cb_t callback = it->callback; + void* arg = it->arg; timer_list_unlock(); - (*it->callback)(it->arg); + (*callback)(arg); timer_list_lock(); now = esp_timer_imp...
Fixed seg-fault. Compiles and runs for full dataset.
@@ -51,10 +51,8 @@ void SoloReadFeature::record(SoloReadBarcode &soloBar, uint nTr, set<uint32> &re vector<array<uint64,2>> readSJs; - set<uint32> *readGe; - if (featureType==0) { - readGe = &readGene; - } else if (featureType==2) { + set<uint32> *readGe=&readGene; //for featureType==0 + if (featureType==2) { readGe = ...
Use stored TCP address for callback.
@@ -2712,6 +2712,11 @@ serviced_tcp_callback(struct comm_point* c, void* arg, int error, { struct serviced_query* sq = (struct serviced_query*)arg; struct comm_reply r2; +#ifdef USE_DNSTAP + struct waiting_tcp* w = (struct waiting_tcp*)sq->pending; + struct pending_tcp* pend_tcp = (struct pending_tcp*)w->next_waiting; ...
fix accounting of abandoned pages
@@ -1104,6 +1104,7 @@ static bool mi_segment_check_free(mi_segment_t* segment, size_t slices_needed, s if (mi_page_all_free(page)) { // if this page is all free now, free it without adding to any queues (yet) mi_assert_internal(page->next == NULL && page->prev==NULL); + _mi_stat_decrease(&tld->stats->pages_abandoned, 1...
Include "tools" into source tarball The Makefile now includes AFL support files which require the "tools" directory to be present in the distribution tarball. Well, we should put integration testing tools there anyway for all make targets to work. So just add this directory to tarball. This fixes distribution packaging...
@@ -467,6 +467,7 @@ dist: rsync -avz gradle $(VERSION) rsync -avz jni $(VERSION) rsync -avz --exclude 'tests/soter/nist-sts/assess' tests $(VERSION) + rsync -avz tools $(VERSION) rsync -avz CHANGELOG.md $(VERSION) rsync -avz LICENSE $(VERSION) rsync -avz Makefile $(VERSION)
docs/library/usocket: Make xref to uerrno explicitly a module reference.
@@ -99,7 +99,7 @@ Functions of error in this function. MicroPython doesn't have ``socket.gaierror`` and raises OSError directly. Note that error numbers of `getaddrinfo()` form a separate namespace and may not match error numbers from - `uerrno` module. To distinguish `getaddrinfo()` errors, they are + the :mod:`uerrno...
Add Size != operator
@@ -33,5 +33,6 @@ namespace blit { inline Size operator* (Size lhs, const float a) { lhs *= a; return lhs; } inline Size operator* (Size lhs, const int a) { lhs *= a; return lhs; } inline bool operator== (Size lhs, Size rhs) { return lhs.w == rhs.w && lhs.h == rhs.h; } + inline bool operator!= (Size lhs, Size rhs) { re...
esp32/test: Reduces a unit test execution time
@@ -343,19 +343,21 @@ TEST_CASE("disable source trigger behavior", "[deepsleep]") static RTC_DATA_ATTR struct timeval start; static void trigger_deepsleep(void) { - printf("Trigger deep sleep. Waiting 30 sec ...\n"); + printf("Trigger deep sleep. Waiting for 10 sec ...\n"); // Simulate the dispersion of the calibration...
docs: lyd_validate_*(): clarify the extent of possible data modification
@@ -400,7 +400,10 @@ LY_ERR lyd_parse_ext_op(const struct lysc_ext_instance *ext, struct lyd_node *pa /** * @brief Fully validate a data tree. * - * @param[in,out] tree Data tree to recursively validate. May be changed by validation. + * The data tree is modified in-place. As a result of the validation, some data might...
router_add_listener: fix address check to be only for IP sockets
@@ -947,7 +947,7 @@ router_add_listener( struct addrinfo *lswalk; int addrcnt; - if (saddrs == NULL) { + if (saddrs == NULL && (ctype == CON_UDP || ctype == CON_TCP)) { char msg[256]; snprintf(msg, sizeof(msg), "invalid listener %s for port %d", ip, port); return ra_strdup(rtr->a, msg);
added new tool wlanhashhcx
@@ -36,6 +36,7 @@ Detailed description | wlanhcx2john | Converts hccapx to format expected by John the Ripper | | wlanhcxinfo | Shows detailed info from contents of hccapxfile | | wlanhcxmnc | Manually do nonce correction on byte number xx of a nonce | +| wlanhashhcx | Generate hashlist from hccapx hashfile (md5_64 has...
VMS: Correct faulty source directory specification $(SRCDIR)/doc doesn't work right on VMS.
@@ -886,9 +886,10 @@ EOF my $title = basename($args{src}, ".html"); my $pod = $gen0; my $mkpod2html = sourcefile('util', 'mkpod2html.pl'); + my $srcdoc = sourcedir('doc'); return <<"EOF"; $args{src} : $pod - \$(PERL) $mkpod2html -i $pod -o \$\@ -t "$title" -r "\$(SRCDIR)/doc" + \$(PERL) $mkpod2html -i $pod -o \$\@ -t "...
mimxrt: Enable built-in help.
#define MICROPY_PY_BUILTINS_FILTER (0) #define MICROPY_PY_BUILTINS_REVERSED (1) #define MICROPY_PY_BUILTINS_MIN_MAX (0) +#define MICROPY_PY_BUILTINS_HELP (1) #define MICROPY_PY___FILE__ (0) #define MICROPY_PY_MICROPYTHON_MEM_INFO (1) #define MICROPY_PY_ARRAY_SLICE_ASSIGN (1)
tools/Config:Fix some error call DELFILE/DELDIR/CATFILE/CLEAN in Windows native build tools/Config:Fix some error call DELFILE/DELDIR/CATFILE in Windows native build
@@ -450,8 +450,12 @@ endef # DELFILE - Delete one file ifeq ($(CONFIG_WINDOWS_NATIVE),y) +define NEWLINE + + +endef define DELFILE - $(Q) if exist $1 (del /f /q $1) + $(foreach FILE, $(1), $(NEWLINE) $(Q) if exist $(FILE) (del /f /q $(FILE))) endef else define DELFILE @@ -463,7 +467,7 @@ endif ifeq ($(CONFIG_WINDOWS_NA...
board/meep/board.h: Format with clang-format BRANCH=none TEST=none Tricium: disable
@@ -80,18 +80,10 @@ enum temp_sensor_id { TEMP_SENSOR_COUNT }; -enum pwm_channel { - PWM_CH_KBLIGHT, - PWM_CH_COUNT -}; +enum pwm_channel { PWM_CH_KBLIGHT, PWM_CH_COUNT }; /* Motion sensors */ -enum sensor_id { - LID_ACCEL, - BASE_ACCEL, - BASE_GYRO, - SENSOR_COUNT -}; +enum sensor_id { LID_ACCEL, BASE_ACCEL, BASE_GYRO...
imxrt: Don't leave FPSCR uninitialized
@@ -76,6 +76,9 @@ int hal_cpuCreateContext(cpu_context_t **nctx, void *start, void *kstack, size_t ((u32 *)ctx->psp)[5] = 0xeeeeeeee; /* lr */ ((u32 *)ctx->psp)[6] = (u32)start; /* pc */ ((u32 *)ctx->psp)[7] = 0x01000000; /* psr */ +#ifdef CPU_IMXRT + ((u32 *)ctx->psp)[24] = 0; /* fpscr */ +#endif ctx->irq_ret = RET_TH...
ps8743 : add definition to tune usb mux add register and value definition to tune usb and dp. BRANCH=None TEST=make -j BOARD=bugzzy
/* To reset the state machine to default */ #define PS8743_MODE_POWER_DOWN (PS8743_MODE_USB_REG_CONTROL | \ PS8743_MODE_DP_REG_CONTROL) +/* DP output setting */ +#define PS8743_REG_DP_SETTING 0x07 +#define PS8743_DP_SWG_ADJ_DFLT 0x00 +#define PS8743_DP_SWG_ADJ_N20P 0x40 +#define PS8743_DP_SWG_ADJ_N15P 0x80 +#define PS8...
allow 5Ghz channel 1..6
@@ -7376,7 +7376,7 @@ for(c = 0; c < 256; c++) if(frequency <= 1000) testchannel = frequency; else if((frequency >= 2407) && (frequency <= 2474)) testchannel = (frequency -2407)/5; else if((frequency >= 2481) && (frequency <= 2487)) testchannel = (frequency -2412)/5; - else if((frequency >= 5035) && (frequency <= 5980)...
patch loadpath init
@@ -440,8 +440,9 @@ ruby_init_loadpath_safe(int safe_level, const char* szRoot) VALUE load_path; ID id_initial_load_path_mark; const char *paths = ruby_initial_load_paths; + #if defined LOAD_RELATIVE -# if defined HAVE_DLADDR || defined __CYGWIN__ || defined _WIN32 +# if defined HAVE_DLADDR || defined __CYGWIN__//RHO: ...
test build without thunderx patch
@@ -46,13 +46,12 @@ AMD64/MacOSX. %prep %setup -q -n %{pname}-%{version} %ifarch aarch64 -%global _default_patch_fuzz 3 # karl.w.schulz@intel.com (9/2/17) - disabling revVEX3352.patch; looks to have landed in 3.13.0 release #%patch1 -p0 %patch2 -p0 # karl.w.schulz@intel.com (9/2/17) - disabling rev16309.patch; looks to...
typo in a maya plugin ui script
global proc AEhoudiniInputGeometryTemplate(string $nodeName) { - editorTemplate -beginScrollLayour; + editorTemplate -beginScrollLayout; editorTemplate -beginLayout "Inputs" -collapse false; editorTemplate
Testing: add tests for grib1 2nd order pack/unpack
@@ -93,12 +93,29 @@ nums=`${tools_dir}/grib_get -p numberOfDataPoints,numberOfCodedValues,numberOfMi res=`${tools_dir}/grib_get -l 33,88.5 $sec_ord_bmp` [ "$res" = "9999 5.51552 9999 9999 " ] -res=`${tools_dir}//grib_get -l 28.5,90 $sec_ord_bmp` +res=`${tools_dir}/grib_get -l 28.5,90 $sec_ord_bmp` [ "$res" = "3.51552 9...
Update Zephyr BT project configuration * Enables console output from IoTivity-Constrained, disables logging from the network stack to lower code size and clutter.
+CONFIG_NEWLIB_LIBC=y +CONFIG_CONSOLE_HANDLER=y +CONFIG_EARLY_CONSOLE=y +CONFIG_STDOUT_CONSOLE=y + CONFIG_NETWORKING=y CONFIG_NET_IPV6=y CONFIG_NET_UDP=y @@ -16,18 +21,13 @@ CONFIG_NET_MAX_CONTEXTS=3 CONFIG_MAIN_STACK_SIZE=2048 -CONFIG_BLUETOOTH_DEVICE_NAME="Sample OCF Node" +CONFIG_BLUETOOTH_DEVICE_NAME="OCF_BLE_NODE"...
board/katsu/board.h: Format with clang-format BRANCH=none TEST=none
#define CONFIG_CHARGER_MT6370_BACKLIGHT - /* Motion Sensors */ #ifdef SECTION_IS_RW #define CONFIG_ACCELGYRO_ICM426XX /* Camera VSYNC */ #define CONFIG_SYNC #define CONFIG_SYNC_COMMAND -#define CONFIG_SYNC_INT_EVENT \ - TASK_EVENT_MOTION_SENSOR_INTERRUPT(VSYNC) +#define CONFIG_SYNC_INT_EVENT TASK_EVENT_MOTION_SENSOR_IN...
Bugfix op_super, call super->super pattern
@@ -779,6 +779,9 @@ inline static int op_super( mrbc_vm *vm, uint32_t code, mrbc_value *regs ) return 0; } + // Change class + regs[ra].instance->cls = cls; + // m is C func if( m->c_func ) { m->func(vm, regs + ra, rc);
specload: bugfixes
@@ -83,6 +83,8 @@ int elektraSpecloadClose (Plugin * handle, Key * errorKey) { Specload * specload = elektraPluginGetData (handle); + if (specload != NULL) + { elektraInvokeClose (specload->quickDump, errorKey); ksDel (specload->quickDumpConfig); @@ -91,6 +93,7 @@ int elektraSpecloadClose (Plugin * handle, Key * errorK...
Fix mipmaps with nearest filtering;
@@ -1932,8 +1932,13 @@ void lovrTextureSetFilter(Texture* texture, TextureFilter filter) { switch (filter.mode) { case FILTER_NEAREST: + if (texture->mipmaps) { + glTexParameteri(texture->target, GL_TEXTURE_MIN_FILTER, GL_NEAREST_MIPMAP_NEAREST); + glTexParameteri(texture->target, GL_TEXTURE_MAG_FILTER, GL_NEAREST); + ...
Tests: exclude shellrecorder test for spec-tutorial from ASAN builds and specify required plugins
@@ -32,12 +32,14 @@ add_msr_test ( ENVIRONMENT KDB_EXEC_PATH=${CMAKE_SOURCE_DIR}/scripts/kdb) add_msr_test (tutorial_storage_plugins "${CMAKE_SOURCE_DIR}/doc/tutorials/storage-plugins.md" REQUIRED_PLUGINS type yamlcpp) add_msr_test (cmerge "${CMAKE_SOURCE_DIR}/doc/tutorials/cmerge.md" REQUIRED_PLUGINS hosts line PROPER...
Fix altcoins compilation issue
#include "shared_context.h" // TODO : rewrite as independant code #include "eth_plugin_internal.h" // TODO : rewrite as independant code +#ifdef HAVE_STARKWARE + typedef enum { STARKWARE_REGISTER = 0, @@ -448,3 +450,5 @@ void starkware_plugin_call(int message, void *parameters) { PRINTF("Unhandled message %d\n", messag...
support flash w/o dfu mode entry
@@ -27,6 +27,11 @@ all: obj/bootstub.$(PROJ_NAME).bin obj/$(PROJ_NAME).bin ./tools/dfu-util-$(MACHINE) -a 0 -s 0x08004000 -D obj/$(PROJ_NAME).bin ./tools/dfu-util-$(MACHINE) --reset-stm32 -a 0 -s 0x08000000 +dfu: obj/bootstub.$(PROJ_NAME).bin obj/$(PROJ_NAME).bin + ./tools/dfu-util-$(MACHINE) -a 0 -s 0x08000000 -D obj/...
Version is detected with AT+GMR at the beginning of command instead
@@ -1462,20 +1462,6 @@ lwespi_get_reset_sub_cmd(lwesp_msg_t* msg, uint8_t* is_ok, uint8_t* is_error, ui SET_NEW_CMD(LWESP_CMD_SYSLOG); break; case LWESP_CMD_SYSLOG: -#if LWESP_CFG_ESP32 && LWESP_CFG_ESP8266 - SET_NEW_CMD(LWESP_CMD_BLEINIT_GET); - break; - case LWESP_CMD_BLEINIT_GET: - if (esp.m.device == LWESP_DEVICE_U...
add uthash to xcode project
385827B120737CC6009C83CB /* rpc_service.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = rpc_service.h; sourceTree = "<group>"; }; 385827B220737CC6009C83CB /* rpc_wrapper.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = rpc_wrapper....
tree data BUGFIX error for opaque node without module
@@ -536,8 +536,10 @@ lyd_parse_opaq_error(const struct lyd_node *node) opaq = (struct lyd_node_opaq *)node; parent = lyd_parent(node); - /* is always filled by parsers */ - LY_CHECK_ARG_RET(ctx, opaq->name.module_ns, LY_EINVAL); + if (!opaq->name.module_ns) { + LOGVAL(ctx, LYVE_REFERENCE, "Unknown module of node \"%s\"...
ixfr-out, fix to log error on header write failure and whitespace and comment text cleanup.
@@ -1358,6 +1358,8 @@ static int ixfr_write_file(struct zone* zone, struct ixfr_data* data, } if(!ixfr_write_file_header(zone, data, out)) { + log_msg(LOG_ERR, "could not write file header for zone %s IXFR file %s: %s", + zone->opts->name, ixfrfile, strerror(errno)); fclose(out); return 0; } @@ -1386,7 +1388,7 @@ stati...
run make doc if doxygen and remove verbose makefile
@@ -81,7 +81,6 @@ if [ "$1" != "nocmake" ] && [ "$1" != "install" ] ; then echo rm -rf $BUILD_AOMP/build/rocdbgapi rm -rf $BUILD_AOMP/build/rocdbgapi MYCMAKEOPTS="-DCMAKE_BUILD_TYPE=$BUILD_TYPE \ - -DCMAKE_VERBOSE_MAKEFILE=1 \ -DCMAKE_INSTALL_PREFIX=$INSTALL_ROCDBGAPI \ -DCMAKE_PREFIX_PATH=$AOMP_INSTALL_DIR;$INSTALL_RO...
doc: fix function name typo
@@ -104,10 +104,10 @@ typedef TickType_t EventBits_t; * * Internally, within the FreeRTOS implementation, event groups use a [small] * block of memory, in which the event group's structure is stored. If an event - * groups is created using xEventGropuCreate() then the required memory is + * groups is created using xEve...
Disable PKCS7 for some TLS 1.3 tests
@@ -3242,6 +3242,7 @@ component_test_tls13_only_psk () { scripts/config.py unset MBEDTLS_SSL_SERVER_NAME_INDICATION scripts/config.py unset MBEDTLS_ECDSA_C scripts/config.py unset MBEDTLS_PKCS1_V21 + scripts/config.py unset MBEDTLS_PKCS7_C make CFLAGS="'-DMBEDTLS_USER_CONFIG_FILE=\"../tests/configs/tls13-only.h\"'" msg...
doc: Add description for PGSSLCRLDIR This was missing in the section dedicated to the supported environment variables of libpq. Oversight in Discussion:
@@ -7836,6 +7836,16 @@ myEventProc(PGEventId evtId, void *evtInfo, void *passThrough) </para> </listitem> + <listitem> + <para> + <indexterm> + <primary><envar>PGSSLCRLDIR</envar></primary> + </indexterm> + <envar>PGSSLCRLDIR</envar> behaves the same as the <xref + linkend="libpq-connect-sslcrldir"/> connection paramet...
update stm32f20x linker script: ensure last block HEAP.
@@ -28,8 +28,8 @@ do not initialize { section .noinit }; keep { section FSymTab }; keep { section VSymTab }; +keep { section .rti_fn* }; place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec }; place in ROM_region { readonly, block RTT_INIT_FUNC }; -place in RAM_region { readwrite, - block CSTACK, bl...
meta: adjust .gitignore file
-build - -# the menson vsocde extension auto generates another build directory -# called `builddir` -builddir - -subprojects/cxxshim -subprojects/frigg -.vscode -.clang-format +subprojects +!subprojects/*.wrap +*.xbstrap
Docs - remove initialization step/link from pxf upgrade
@@ -64,8 +64,6 @@ After you upgrade to the new version of Greenplum Database, perform the followin 1. Starting in Greenplum Database version 6.19.0, PXF is removed from the Greenplum Server distribution. You must download and install the standalone PXF `rpm` or `deb` package as described in [Installing PXF](https://doc...
secvar: Free md context on hash error There were a few instances in `get_hash_to_verify` where NULL is returned before unallocating the md context. This commit ensures that this memory is properly freed before returning.
@@ -643,7 +643,7 @@ static char *get_hash_to_verify(const char *key, const char *new_data, || key_equals(key, "dbx")) guid = EFI_IMAGE_SECURITY_DATABASE_GUID; else - return NULL; + goto out; /* Expand char name to wide character width */ varlen = strlen(key) * 2; @@ -672,7 +672,7 @@ static char *get_hash_to_verify(cons...
x509v3/v3_purp.c: resolve Thread Sanitizer nit.
@@ -351,12 +351,8 @@ static void x509v3_cache_extensions(X509 *x) ASN1_BIT_STRING *ns; EXTENDED_KEY_USAGE *extusage; X509_EXTENSION *ex; - int i; - if (x->ex_flags & EXFLAG_SET) - return; - CRYPTO_THREAD_write_lock(x->lock); if (x->ex_flags & EXFLAG_SET) { CRYPTO_THREAD_unlock(x->lock);
Added additional check to scrollbar drawing.
@@ -83,7 +83,7 @@ int level_picker_render(const LevelPicker *level_picker, const float number_of_items_in_scrolling_area = scrolling_area_height / ITEM_HEIGHT; const float percent_of_visible_items = number_of_items_in_scrolling_area / ((float) level_picker->items.count - 1); - if(percent_of_visible_items < 1) { + if(le...
Fix timer scripts which were breaking onscreen actor had a movement script
@@ -135,6 +135,7 @@ void ScriptRunnerUpdate() { if (!script_ptr_bank || script_update_fn) { // LOG("STOPPED SCRIPT FOR NOW\n"); ScriptSaveCtx(); + script_ptr = 0; return; } @@ -147,6 +148,7 @@ void ScriptRunnerUpdate() { Script_StackPop_b(); POP_BANK; ScriptSaveCtx(); + script_ptr = 0; return; } LOG("SCRIPT FINISHED\n"...
requires less-recent libcurl release
@@ -296,7 +296,7 @@ configure_file(input : 'include/config.h.in', configuration : conf_data) # We expect these libs to supplied with the distribution -curl_dep = dependency('libcurl', version: '>=7.35.0') +curl_dep = dependency('libcurl', version: '>=7.19.0') if osdet == 'darwin' and not get_option('nix') libcrypto = m...
1.feat: can go to previous search pages; 2.refactor: use static allocation when possible and improve clarity of code by having more specific variable naming
{ + "enable":false, "discord_bind_channel_ids": [834781038571552798, 834781058586902558], "keywords":[ "C Discord library",
note the removal of the list plugin in release notes
@@ -61,11 +61,9 @@ docker run -it elektra/elektra The following text lists news about the [plugins](https://www.libelektra.org/plugins/readme) we updated in this release. -### <<Plugin>> +### list -- <<TODO>> -- <<TODO>> -- <<TODO>> +- Removed the `list` plugin. _(Maximilian Irlinger @atmaxinger)_ ### <<Plugin>>
Don't enable 'read_cfg' too when 'full' is set in MANGOHUD_CONFIG Could use OVERLAY_PARAM_INTERNAL or something similar but currently less code to just save the boolean and reset.
@@ -219,6 +219,7 @@ parse_overlay_env(struct overlay_params *params, while ((num = parse_string(env, key, value)) != 0) { env += num; if (!strcmp("full", key)) { + bool read_cfg = params->enabled[OVERLAY_PARAM_ENABLED_read_cfg]; #define OVERLAY_PARAM_BOOL(name) \ params->enabled[OVERLAY_PARAM_ENABLED_##name] = 1; #defi...
tests/run-tests: Add --list-tests switch. Lists tests to be executed, subject to all other filters requested. This options would be useful e.g. for scripts like tools/tinytest-codegen.py, which currently contains hardcoded filters for particular a particular target and can't work for multiple targets.
@@ -380,6 +380,10 @@ def run_tests(pyb, tests, args, base_path="."): skipped_tests.append(test_name) continue + if args.list_tests: + print(test_file) + continue + # get expected output test_file_expected = test_file + '.exp' if os.path.isfile(test_file_expected): @@ -430,6 +434,9 @@ def run_tests(pyb, tests, args, bas...
Removed uncontext.h. This removal was missed the changeset
#if (NXT_MACOSX) -#define _XOPEN_SOURCE /* ucontext(3). */ #ifndef _DARWIN_C_SOURCE #define _DARWIN_C_SOURCE /* pthread_threadid_np(), mach_port_t. */ #endif #endif #include <sys/wait.h> #include <time.h> -#include <ucontext.h> #include <unistd.h> #include <pthread.h>
Comment why default case in storeEntityValue is never executed Also add comment tags so lcov can ignore unreachable code
@@ -5817,10 +5817,18 @@ storeEntityValue(XML_Parser parser, result = XML_ERROR_INVALID_TOKEN; goto endEntityValue; default: + /* This default case should be unnecessary -- all the tokens + * that XmlEntityValueTok() can return have their own explicit + * cases -- but should be retained for safety. We do however + * exc...
hdata/i2c: update the list of known i2c devs This updates the list of known i2c devices - as of HDAT spec v10.5e - so that they can be properly identified during the hdat parsing.
@@ -91,8 +91,26 @@ struct hdat_i2c_type { }; static struct hdat_i2c_type hdat_i2c_devs[] = { + { 0x1, "gpio", "nxp,pca9551" }, /* XXX: Please verify that all VPD EEPROMs are of this type */ - { 0x2, "eeprom", "atmel,24c128" } + { 0x2, "eeprom", "atmel,24c128" }, + { 0x3, "tpm", "nuvoton,npct650" }, + { 0x4, "i2c", NULL...
jenkins: add debug info
@@ -1427,6 +1427,9 @@ def detectInterruption(Closure c) { c() } catch (org.jenkinsci.plugins.workflow.steps.FlowInterruptedException fie) { // this ambiguous condition means a user probably aborted + println "causes size: ${fie.causes.size()}" + println "causes message: ${fie.message}" + println "causes message size: $...
launch: minor on-peek update
++ on-peek |= =path ^- (unit (unit cage)) - ?+ path (on-peek:def path) + ?. (team:title our.bowl src.bowl) ~ + ?+ path [~ ~] [%x %tiles ~] ``noun+!>([tiles tile-ordering]) [%x %first-time ~] ``noun+!>(first-time) [%x %keys ~] ``noun+!>(~(key by tiles))
Update sgemv_t_4.c
@@ -605,9 +605,9 @@ int CNAME(BLASLONG m, BLASLONG n, BLASLONG dummy1, FLOAT alpha, FLOAT *a, BLASLO { sgemv_kernel_4x1(NB,a_ptr,xbuffer,ybuffer); - a_ptr += lda; + // a_ptr += lda; *y_ptr += ybuffer[0] * alpha; - y_ptr += inc_y; + // y_ptr += inc_y; } a += NB;
correct conversion uint32_t -> array of uint8_t
@@ -257,7 +257,7 @@ owerror_t openserial_printSniffedPacket(uint8_t* buffer, uint8_t length, uint8_t owerror_t openserial_print_uint32_t(uint32_t value) { #ifdef OPENSERIAL_PRINTF uint8_t i; - uint8_t pvalue[5]; + uint8_t pvalue[4]; INTERRUPT_DECLARATION(); DISABLE_INTERRUPTS(); @@ -265,7 +265,7 @@ owerror_t openserial...
Fixed incorrect recursion logic for finding permissions.
=+ rul=(~(get by pes) pax) ?^ rul [pax u.rul] ?~ pax [/ %white ~] - $(pax t.pax) + $(pax (scag (dec (lent pax)) `path`pax)) :: ++ may-read |= {who/ship car/care yon/aeon pax/path}
mmu: refine function map_mem_region function map_mem_region should return mapped_size, if something wrong, it return 0. the change is valid for release version, as at that time ASSERT() in map_mem_region is empty. Acked-by: Eddie Dong
@@ -173,6 +173,7 @@ static uint32_t map_mem_region(void *vaddr, void *paddr, || request_type >= PAGING_REQUEST_TYPE_UNKNOWN) { /* Shouldn't go here */ ASSERT(false, "Incorrect Arguments. Failed to map region"); + return 0; } /* switch based on of table */ @@ -280,8 +281,8 @@ static uint32_t map_mem_region(void *vaddr, ...
OpenCanopy: Detect click-ability by opacity
@@ -107,9 +107,6 @@ GuiClickableIsHit ( IN INT64 OffsetY ) { - UINT32 RowOffset; - UINT32 IndexX; - ASSERT (Image != NULL); ASSERT (Image->Buffer != NULL); @@ -118,33 +115,7 @@ GuiClickableIsHit ( return FALSE; } - RowOffset = (UINT32)OffsetY * Image->Width; - - if (Image->Buffer[RowOffset + OffsetX].Reserved != 0) { -...
Fix message text formatting from previous commit
@@ -614,12 +614,19 @@ BOOLEAN PhUiRestartComputer( break; case PH_POWERACTION_TYPE_NATIVE: { + PPH_STRING messageText; + + messageText = PhaFormatString( + L"This option %s %s in an disorderly manner and may cause corrupted files or instability in the system.", + L"preforms a hard", + L"restart"); + // Ignore the Enabl...
ip: remove dead code in ip6-svr Type: fix Fixes:
@@ -979,7 +979,6 @@ ip6_sv_reass_walk_expired (vlib_main_t * vm, uword thread_index = 0; int index; const uword nthreads = vlib_num_workers () + 1; - u32 *vec_icmp_bi = NULL; for (thread_index = 0; thread_index < nthreads; ++thread_index) { ip6_sv_reass_per_thread_t *rt = &rm->per_thread_data[thread_index]; @@ -1007,33...
Abort if BIO_new fails CID
@@ -216,6 +216,8 @@ static void setup_bio(h2o_socket_t *sock) } BIO *bio = BIO_new(bio_methods); + if (bio == NULL) + h2o_fatal("no memory"); BIO_set_data(bio, sock); BIO_set_init(bio, 1); SSL_set_bio(sock->ssl->ssl, bio, bio);
arvo: moves formal interface gate to the end
-:::::: :::::::::::::::::::::::::::::::::::::::::::::::::::::: -:::::: :::::: Postface :::::: -:::::: :::::::::::::::::::::::::::::::::::::::::::::::::::::: -~> %slog.[0 leaf+"arvo: assembly"] -~< %slog.[0 leaf+"arvo: assembled"] -=< :: - :: Arvo formal interface - :: - :: this lifecycle wrapper makes the arvo door (mu...
ossl_cmp_error_new(): Fix Coverity issue and consequently also issues and The issues are due to an integer overflow that may happen on '(ERR_SYSTEM_FLAG << 1)'.
@@ -748,7 +748,8 @@ OSSL_CMP_MSG *ossl_cmp_error_new(OSSL_CMP_CTX *ctx, const OSSL_CMP_PKISI *si, goto err; if (!ASN1_INTEGER_set_int64(msg->body->value.error->errorCode, errorCode)) goto err; - if (errorCode > 0 && errorCode < (ERR_SYSTEM_FLAG << 1)) { + if (errorCode > 0 + && (uint64_t)errorCode < ((uint64_t)ERR_SYST...
rpz-triggers, fix memory allocation trouble on allocation error path.
@@ -387,11 +387,15 @@ rpz_clear(struct rpz* r) { /* must hold write lock on auth_zone */ local_zones_delete(r->local_zones); + r->local_zones = NULL; local_zones_delete(r->nsdname_zones); + r->nsdname_zones = NULL; respip_set_delete(r->respip_set); + r->respip_set = NULL; rpz_clientip_synthesized_set_delete(r->client_s...
feat: Add wolfssl head files reference
@@ -18,7 +18,8 @@ EXTERNAL_INC := -I'$(CURDIR)/../inc/os' -I'$(CURDIR)/../inc/apb' -I'$(CURDIR)/. -I'$(CURDIR)/../inc' -I'$(CURDIR)/../inc/cm' \ -I'$(CURDIR)/../inc/os/include' -I'$(CURDIR)/../inc/cJSON' \ -I'$(CURDIR)/../prebuilt/ML302/LTE/components/newlib/include' \ - -I'$(CURDIR)/../prebuilt/ML302/LTE/components/ne...
vere: u3_nul in place of c3__null We want ~, not %null.
@@ -1015,7 +1015,7 @@ _pier_on_lord_live(void* vod_p) || c3n == u3a_is_cat(car) ) { u3m_p("pier: invalid scry", pex); - _pier_on_scry_done(pir_u, c3__null); + _pier_on_scry_done(pir_u, u3_nul); } else { // run the requested scry, jam to disk, then exit //
one more item for changelog
@@ -10,6 +10,7 @@ Version 1.2.1 (23 January 2017) * updated Requires stanza for mpiP packaging (https://github.com/openhpc/ohpc/issues/344) * added 'make_repo.sh' utility for inclusion with stand-alone tarballs (https://github.com/openhpc/ohpc/issues/363) * updated patches for mpiP to enable usage on aarch64 (https://g...
hv:clean io_request.c misra violations Clean the io_request.c's violations reported by the misra tools. V1->V2: remove violations which checked with NULL. Acked-by: Eddie Dong
@@ -73,7 +73,7 @@ void reset_vm_ioreqs(struct acrn_vm *vm) } } -static inline bool has_complete_ioreq(struct acrn_vcpu *vcpu) +static inline bool has_complete_ioreq(const struct acrn_vcpu *vcpu) { return (get_vhm_req_state(vcpu->vm, vcpu->vcpu_id) == REQ_STATE_COMPLETE); } @@ -169,13 +169,13 @@ uint32_t get_vhm_req_sta...
Adding support for I2C LIS2DH12 driver
@@ -1089,8 +1089,6 @@ lis2dh12_config(struct lis2dh12 *lis2dh12, struct lis2dh12_cfg *cfg) lis2dh12->cfg.lc_s_mask = cfg->lc_s_mask; - os_time_delay((OS_TICKS_PER_SEC * 110)/1000); - return 0; err: return rc;
MIPS: ls1bdev: default instruction set MIPSr2 mips32 will break the compilation if FPU enabled.
@@ -36,7 +36,7 @@ OBJDUMP = PREFIX + 'objdump' OBJCPY = PREFIX + 'objcopy' READELF = PREFIX + 'readelf' -DEVICE = ' -mips32' +DEVICE = ' -mips32r2' CFLAGS = DEVICE + ' -EL -G0 -mno-abicalls -fno-pic -fno-builtin -fno-exceptions -ffunction-sections -fomit-frame-pointer' AFLAGS = ' -c' + DEVICE + ' -EL -fno-pic -fno-buil...
Updated json file for 1.4.6 released.
"version": "1.0.0" } ] + }, + { + "name": "OpenCR", + "architecture": "OpenCR", + "version": "1.4.6", + "category": "Arduino", + "help": { + "online": "https://github.com/ROBOTIS-GIT/OpenCR" + }, + "url": "https://github.com/ROBOTIS-GIT/OpenCR/releases/download/1.4.6/opencr_core_1.4.6.tar.bz2", + "archiveFileName": "op...
Solve minor bug in yaml for github workflow.
@@ -26,10 +26,11 @@ jobs: username: ${{ secrets.DOCKER_HUB_USERNAME }} password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} + - name: Pull MetaCall Docker Images + run: sh ./docker-compose.sh pull + - name: Build MetaCall Docker Images - run: - - sh ./docker-compose.sh pull - - sh ./docker-compose.sh build + run: sh ./dock...
Work CD-CI Update condition to skip build on ***NO_CI*** message. (hack to implement the expected behaviour from Azure Pipelines)
@@ -34,7 +34,7 @@ jobs: { $commit = Invoke-RestMethod -Uri "https://api.github.com/repos/nanoframework/nf-interpreter/commits/$(Build.SourceVersion)" -ContentType "application/json" -Method GET - if( ($commit.commit.author.name -eq "nfbot") -and ($commit.commit.message -like "*[version update]*") ) + if( ($commit.commi...
jni: refer to segfault issue
@@ -36,6 +36,7 @@ The Java plugin itself needs to have the following methods: See [installation](/doc/INSTALL.md). The package is called `libelektra5-java`. To actually mount plugins, you will additionally need `java-elektra`. +Furthermore, at least JNA version 5.5 is required. ## Plugin Config @@ -51,17 +52,21 @@ Addi...
Use a spinlock to synchronize tseqno and ikdb_seqno in ctxn commit...
@@ -58,6 +58,7 @@ struct kvdb_ctxn_set_impl { atomic64_t ktn_tseqno_head __aligned(SMP_CACHE_BYTES * 2); atomic64_t ktn_tseqno_tail __aligned(SMP_CACHE_BYTES * 2); sem_t ktn_tseqno_sema __aligned(SMP_CACHE_BYTES * 2); + spinlock_t ktn_tseqno_sync __aligned(SMP_CACHE_BYTES * 2); struct mutex ktn_list_mutex __aligned(SMP...
Generics get specialized. No capture.
@@ -171,7 +171,7 @@ Node *getdcl(Stab *st, Node *n) s = htget(st->dcl, n); if (s) { /* record that this is in the closure of this scope */ - if (fn && !s->decl.isglobl) + if (fn && !s->decl.isglobl && !s->decl.isgeneric) htput(fn->env, s->decl.name, s); return s; }
Proper permissions for actions.
++ poke-collections-action |= act/action ^- (quip move _+>) - ?. (team:title our.bol src.bol) [~ +>] + ?. ?- -.act + ?($create $delete) + (team:title src.bol our.bol) + :: + ?($submit $comment) + =+ col=(~(get by cols) nom.act) + ?~ col | + ?! .= publ.conf.u.col + (~(has in mems.conf.u.col) src.bol) + == + [~ +>] =< ta...
Added refresh interval and set it to one hour
"name": "config/battery", "awake": true, "parse": {"fn": "zcl", "ep": 0, "cl": "0x0001", "at": "0x0021", "eval": "Item.val = Attr.val / 2"}, - "read": {"fn": "zcl", "ep": 0, "cl": "0x0001", "at": "0x0021"} + "read": {"fn": "zcl", "ep": 0, "cl": "0x0001", "at": "0x0021"}, + "refresh.interval": 3600 }, { "name": "config/...
make the implementation resilient to interruptions
@@ -606,12 +606,16 @@ int picoquic_select(SOCKET_TYPE* sockets, } } +select_retry: ret_select = select(sockmax + 1, &readfds, NULL, NULL, &tv); if (ret_select < 0) { bytes_recv = -1; if (bytes_recv <= 0) { - DBG_PRINTF("Error: select returns %d\n", ret_select); + DBG_PRINTF("Error: select returns %d, error: %s\n", ret_...