message
stringlengths
6
474
diff
stringlengths
8
5.22k
shell: add missing UIP_CONF_IPV6_RPL guard
@@ -337,6 +337,7 @@ PT_THREAD(cmd_help(struct pt *pt, shell_output_func output, char *args)) PT_END(pt); } +#if UIP_CONF_IPV6_RPL /*---------------------------------------------------------------------------*/ static PT_THREAD(cmd_rpl_set_root(struct pt *pt, shell_output_func output, char *args)) @@ -415,6 +416,7 @@ PT...
build: add missing header to Makefile.am PR:
@@ -4,5 +4,5 @@ SUBDIRS=widget pkginclude_HEADERS = widget_base.h widget_task.h widget_prototype.h \ widget_style.h widget_event.h widget_paint.h widget.h css_library.h \ widget_helper.h css_parser.h css_rule_font_face.h css_fontstyle.h \ -builder.h metrics.h +builder.h metrics.h widget_layout.h pkgincludedir=$(prefix)...
Fix no-tls1_2, no-tls1_2-method, no-chacha and no-poly1305
@@ -4460,6 +4460,11 @@ static struct { const char *srvrtls13ciphers; const char *shared; } shared_ciphers_data[] = { +/* + * We can't establish a connection (even in TLSv1.1) with these ciphersuites if + * TLSv1.3 is enabled but TLSv1.2 is disabled. + */ +#if defined(OPENSSL_NO_TLS1_3) || !defined(OPENSSL_NO_TLS1_2) { ...
Inherit variables also for windows
@@ -217,6 +217,14 @@ installer: stage: build needs: - build-windows-64 + inherit: + variables: + - PREREL_BRANCH_NAME + - JUST_A_TEST + - RESOLVE_DEPENDENCIES_REPO + - ANYBRANCH_RESOLVE_DEPENDENCIES_REPO + - PREREL_RESOLVE_DEPENDENCIES_REPO + - PREPROD_RESOLVE_DEPENDENCIES_REPO variables: PLUGIN_REF: main AGENT_REF: $C...
tests: add test for 'elseif' generation
@@ -305,6 +305,28 @@ describe("Titan code generator ", function() assert.truthy(ok, err) end) + it("generates code for 'elseif'", function() + local code = [[ + function getval(a: integer): integer + if a == 1 then + return 10 + elseif a == 2 then + return 20 + else + return 30 + end + end + ]] + local ast, err = parse...
Re-enable TLS 1.3 integration tests
@@ -29,7 +29,7 @@ ifeq ($(S2N_CORKED_IO),true) endif .PHONY : all -all: client_endpoints dynamic_record s_client s_server gnutls_cli gnutls_serv sslyze +all: tls13 client_endpoints dynamic_record s_client s_server gnutls_cli gnutls_serv sslyze tls13: ( \
Fix printf compile warning regarding time_t
@@ -709,7 +709,7 @@ int main(int argc, char **argv) /* log CAN frame with absolute timestamp & device */ sprint_canframe(buf, &frame, 0, maxdlen); - fprintf(logfile, "(%010ld.%06ld) %*s %s\n", + fprintf(logfile, "(%010u.%06ld) %*s %s\n", tv.tv_sec, tv.tv_usec, max_devname_len, devname[idx], buf); } @@ -738,7 +738,7 @@ ...
test/recipes/25-test_verify.t: Add a couple of tests of mixed PEM files Fixes
@@ -11,6 +11,7 @@ use strict; use warnings; use File::Spec::Functions qw/canonpath/; +use File::Copy; use OpenSSL::Test qw/:DEFAULT srctop_file ok_nofips with/; use OpenSSL::Test::Utils; @@ -28,7 +29,7 @@ sub verify { run(app([@args])); } -plan tests => 157; +plan tests => 159; # Canonical success ok(verify("ee-cert", ...
KXTJ3 sensor driver: add missing sd_set_config Implement KXTJ3 sensor_driver sd_set_config function.
@@ -45,6 +45,7 @@ static int kxtj3_sensor_read(struct sensor *, sensor_type_t, sensor_data_func_t, void *, uint32_t); static int kxtj3_sensor_get_config(struct sensor *, sensor_type_t, struct sensor_cfg *); +static int kxtj3_sensor_set_config(struct sensor *, void *); static int kxtj3_sensor_set_notification(struct sen...
Accept %vent updates.
:: ++ hear-vent |= upd=update + ^+ +> ?- -.upd %full (assume +.upd) %diff (accept +.upd) :: ++ assume |= [s=fleet d=dnses h=events] + ^+ +> ?: &(=(s ships) =(d dns) =(h heard)) +> ~& [%assume ~(wyt by s) ~(wyt in h)] + %- put-moves (update-to-all(ships s, dns d, heard h) %full s d h) :: ++ accept |= [cause=[@ud @ud] di...
show dimm: fix InterfaceFormatCode=0 in os For some reason, the multiple strings with L cause the print in OS to display 0. Print seperately, CatSPrint isn't needed anyways.
@@ -197,7 +197,6 @@ ShowDimms( DISPLAY_PREFERENCES DisplayPreferences; CHAR16 *pFormat = NULL; CHAR16 DimmStr[MAX_DIMM_UID_LENGTH]; - CHAR16 *pInterfaceFormatCodeStr = NULL; BOOLEAN ByteAddressable = FALSE; BOOLEAN BlockAddressable = FALSE; #ifdef OS_BUILD @@ -651,10 +650,8 @@ ShowDimms( } if (ByteAddressable) { - pInt...
dhcp: fix typo error
@@ -148,6 +148,7 @@ return L.view.extend({ s.tab('tftp', _('TFTP Settings')); s.tab('advanced', _('Advanced Settings')); s.tab('leases', _('Static Leases')); + s.tab('domain', _('Custom Redirect Domain')); s.taboption('general', form.Flag, 'domainneeded', _('Domain required'), @@ -241,10 +242,6 @@ return L.view.extend(...
use rtl8192cu-fixes driver
@@ -50,8 +50,8 @@ LINUX_CFLAGS = "-O2 -march=armv7-a -mcpu=cortex-a9 -mtune=cortex-a9 -mfpu=neon - UBOOT_CFLAGS = "-O2 -march=armv7-a -mcpu=cortex-a9 -mtune=cortex-a9 -mfpu=neon -mfloat-abi=hard" ARMHF_CFLAGS = "-O2 -march=armv7-a -mcpu=cortex-a9 -mtune=cortex-a9 -mfpu=neon -mfloat-abi=hard" -RTL_TAR = tmp/rtl8192cu.tg...
Bootstrap.mak: Add macosx alias for osx to match Premake os.host()
@@ -61,6 +61,8 @@ mingw: $(SRC) ./build/bootstrap/premake_bootstrap --os=windows --to=build/bootstrap gmake $(MAKE) -C build/bootstrap config=$(CONFIG)_$(PLATFORM) +macosx: osx + osx: $(SRC) $(SILENT) rm -rf ./bin $(SILENT) rm -rf ./build
Yet another doc-nits fix
@@ -401,8 +401,7 @@ The options available are described in detail below. =over 4 -=item B<input_password> -=item B<output_password> +=item B<input_password>, B<output_password> The passwords for the input private key file (if present) and the output private key file (if one will be created). The
improve text and add example for OIDCCookieDomain
# Specify the domain for which the "state" and "session" cookies will be set. # This must match the OIDCRedirectURI and the URL on which you host your protected -# application. When using a relative OIDCRedirectURI this setting should most probably empty. +# application. Use the literal value of the domain name that wi...
zephyr: kingler test: delete unused labels The I2C bus label properties are not required by the tests. Delete the label for compatibility with Zephyr upstream. BRANCH=none TEST=./twister --clobber
}; &i2c0_0 { - label = "I2C_SENSOR"; status = "okay"; clock-frequency = <I2C_BITRATE_FAST>; pinctrl-0 = <&i2c0_0_sda_scl_gpb4_b5>; }; i2c_pwr_cbi: &i2c3_0 { - label = "I2C_PWR_CBI"; status = "okay"; clock-frequency = <I2C_BITRATE_FAST>; pinctrl-0 = <&i2c3_0_sda_scl_gpd0_d1>;
skeleton/sgxsign: support to save SIGTRUCT for to-be-signed The to-be-signed SIGSTRUCT can be used to run a remote signing.
@@ -537,6 +537,22 @@ static bool save_sigstruct(const struct sgx_sigstruct *sigstruct, return true; } +static bool save_tbs_sigstruct(const struct sgx_sigstruct *sigstruct, + const char *path) +{ + FILE *f = fopen(path, "wb"); + + if (!f) { + fprintf(stderr, "Unable to open %s\n", path); + return false; + } + + fwrite(...
kernel/binary_manager.h : Add prototype of binary_manager_update_bootparam
@@ -279,6 +279,7 @@ int binary_manager_get_index_with_name(char *bin_name); int binary_manager_scan_bootparam(binmgr_bpinfo_t *bp_info); binmgr_bpdata_t *binary_manager_get_bpdata(void); int binary_manager_get_inactive_path(int requester_pid, char *bin_name); +void binary_manager_update_bootparam(int requester_pid, uin...
framework/wifi_manager: Set SoftAP IP address Default SoftAP IP addr setting in WiFi Manager API
@@ -104,11 +104,20 @@ static void _dhcps_remove_list(void) wifi_manager_result_e wm_dhcps_start(dhcp_sta_joined cb) { - //Default IP addr for SoftAP; 192.168.47.1. - //Please refer to LWIP_DHCPS_SERVER_IP defined in external/dhcpd/Kconfig +#ifdef CONFIG_NET_LWIP_DHCP + struct in_addr ip = {.s_addr = inet_addr(CONFIG_LW...
TinyEXR: Fix leak in SaveEXRImageToFile()
@@ -12552,6 +12552,7 @@ int SaveEXRImageToFile(const EXRImage *exr_image, const EXRHeader *exr_header, unsigned char *mem = NULL; size_t mem_size = SaveEXRImageToMemory(exr_image, exr_header, &mem, err); if (mem_size == 0) { + fclose(fp); return TINYEXR_ERROR_SERIALZATION_FAILED; }
build: assert mostly-static on macos
@@ -111,6 +111,29 @@ jobs: echo "urbit_static=$(nix-build -A urbit --arg enableStatic true)" >> $GITHUB_ENV + - name: confirm binary is mostly static + if: matrix.os == 'macos-latest' + run: | + bin="${{ env.urbit_static }}/bin/urbit" + + if [ ! -f "$bin" ]; then + echo "no binary at $bin" + exit 1; + fi + + libs="$(ot...
tests MAINTENANCE fix copy-pasted doxygen file header
/* - * @file set.c + * @file test_tree_schema.c * @author: Radek Krejci <rkrejci@cesnet.cz> - * @brief unit tests for functions from common.c + * @brief unit tests for functions from tress_schema.c * - * Copyright (c) 2018 CESNET, z.s.p.o. + * Copyright (c) 2018-2019 CESNET, z.s.p.o. * * This source code is licensed un...
[hardware] Remove delayed assignment in `axi_uart` module
@@ -99,20 +99,26 @@ module axi_uart #( string str; + `ifdef VCS + `define UARTASSIGNOPERATOR = + `else + `define UARTASSIGNOPERATOR <= + `endif + always @(posedge clk_i or negedge rst_ni) begin if (!rst_ni) begin - str <= ""; + str `UARTASSIGNOPERATOR ""; end else begin if (reg_req.valid) begin if (reg_req.write) begin...
Fix run_asan description
@@ -321,7 +321,7 @@ To enable sanitize checks use `ENABLE_ASAN` via cmake. Then, to use ASAN, run `run_asan` in the build directory, which simply does: ```sh -ASAN_OPTIONS=symbolize=1 ASAN_SYMBOLIZER_PATH=$(shell which llvm-symbolizer) make run_all +ASAN_OPTIONS=symbolize=1 ASAN_SYMBOLIZER_PATH=$(which llvm-symbolizer)...
build: mount git mirror in buildAndTest helper
@@ -494,9 +494,10 @@ def buildAndTest(testName, image, extraCmakeFlags = [:], def testNokdb = tests.contains(TEST.NOKDB) def testAll = tests.contains(TEST.ALL) def install = tests.contains(TEST.INSTALL) + def dockerOpts = [DOCKER_OPTS.MOUNT_MIRROR] return [(testName): { stage(testName) { - withDockerEnv(image) { + with...
[Kernel] Boot an AP by sending INIT-SIPI-SIPI
extern crate alloc; extern crate ffi_bindings; -use crate::apic::{apic_disable_pic, apic_enable, IoApic, ProcessorLocalApic, RemapIrqDescription}; +use crate::apic::{ + apic_disable_pic, apic_enable, InterProcessorInterruptDeliveryMode, + InterProcessorInterruptDescription, InterProcessorInterruptDestination, IoApic, +...
out_splunk: set 2 workers by default
@@ -814,6 +814,7 @@ struct flb_output_plugin out_splunk_plugin = { .cb_flush = cb_splunk_flush, .cb_exit = cb_splunk_exit, .config_map = config_map, + .workers = 2, /* for testing */ .test_formatter.callback = cb_splunk_format_test,
Improvements to the param cookie documentation, after discussing with Paul
@@ -173,27 +173,16 @@ typedef struct clap_param_info { // where findParameter() is a function the plugin implements // to map parameter ids to internal objects. // - // The host will either provide the cookie as issued or nullptr - // in events addressing parameters. - // - // The plugin must gracefully handle the case...
out_gelf: register upstream with instance
@@ -446,6 +446,7 @@ static int cb_gelf_init(struct flb_output_instance *ins, struct flb_config *conf flb_free(ctx); return -1; } + flb_output_upstream_set(ctx->u, ins); } /* Set the plugin context */
ble mesh:example:correct repl config prompt
@@ -62,7 +62,17 @@ void app_main(void) initialize_filesystem(); repl_config.history_save_path = HISTORY_PATH; #endif + +#if CONFIG_IDF_TARGET_ESP32C3 + repl_config.prompt = "esp32c3>"; +#elif CONFIG_IDF_TARGET_ESP32S3 + repl_config.prompt = "esp32s3>"; +#elif CONFIG_IDF_TARGET_ESP32H2 + repl_config.prompt = "esp32h2>";...
gall: fix routes in +ap-yoke
~/ %ap-abed |= [dap=term =routes] ^+ ap-core - (ap-yoke dap (~(got by yokes.state) dap)) + (ap-yoke dap routes (~(got by yokes.state) dap)) :: +ap-hatch: initialize agent state from $egg, after upgrade :: ++ ap-abut ?: ?=(%| -.res) (mean p.res) =/ =yoke egg(old-state `agent`p.res) - (ap-yoke dap yoke) + =/ =routes [dis...
Replace mono-mdk with mono.
@@ -30,9 +30,8 @@ pushd "$DEPS_DIR" brew upgrade \ python brew install \ - lua - brew cask install \ - mono-mdk + lua \ + mono fi if [ "$CIRCLECI" == "true" ]; then sudo apt-get -qq update
context BUGFIX in lysc_node_clear_all_priv func
@@ -575,10 +575,12 @@ lysc_node_clear_all_priv(struct lys_module *mod) { LY_ARRAY_COUNT_TYPE u, v; - if (mod->compiled) { + if (!mod->compiled) { + return; + } + /* set NULL for all ::lysc_node.priv pointers in module */ lysc_module_dfs_full(mod, lysc_node_clear_priv_dfs_cb, NULL); - } /* only lys_compile_extension_ins...
fix for llvm module name change
@@ -29,7 +29,7 @@ elif test "x$LMOD_FAMILY_COMPILER" = "xgnu7"; then CXX=g++ FC=gfortran AC_MSG_RESULT([gnu7]) -elif test "x$LMOD_FAMILY_COMPILER" = "xllvm"; then +elif test "x$LMOD_FAMILY_COMPILER" = "xllvm4"; then CC=clang CXX=clang++ FC=flang
docs/conf: Version 2.11.0.10.
@@ -74,7 +74,7 @@ copyright = '2014-2019, Damien P. George, Paul Sokolovsky, and contributors' # # We don't follow "The short X.Y version" vs "The full version, including alpha/beta/rc tags" # breakdown, so use the same version identifier for both to avoid confusion. -version = release = '2.11.0.9' +version = release =...
apps/graphics/pdcurses: Fix type used in last commit.
@@ -495,7 +495,7 @@ int PDC_color_content(short color, short *red, short *green, short *blue) FAR struct pdc_fbscreen_s *fbscreen = (FAR struct pdc_fbscreen_s *)SP; FAR struct pdc_fbstate_s *fbstate; #ifdef PDCURSES_MONOCHROME - uint8_t greylevel; + short greylevel; #endif PDC_LOG(("PDC_init_color(). color=%d\n", color...
CMSIS-DSP: Temporary fix for the spline function. The spline function was preventing the Python wrapper from being built on windows. It is a temporary fix. The spline function will have to be reworked.
* @param[in] blockSize number of samples of output data. */ +/* + +Temporary fix because some arrays are defined on the stack. +They should be passed as additional arguments to the function. + +*/ +#define MAX_DATA_POINTS 40 + void arm_spline_f32( arm_spline_instance_f32 * S, const float32_t * x, @@ -157,6 +165,7 @@ vo...
scripts: small rephrase
@@ -4,11 +4,11 @@ git diff origin/master -- doc/news/_preparation_next_release.md | egrep "^\+.+\* if [ $? != "0" ] then echo "The release notes were not extended correctly." - echo "Please make sure you added at least one line which says *(your name)*" - echo "to make sure that your contribution is correctly attribute...
test/v3nametest.c: Add check for OPENSSL_malloc As the potential failure of the OPENSSL_malloc(), it should be better to add the check and return error if fails.
@@ -288,6 +288,8 @@ static int run_cert(X509 *crt, const char *nameincert, char *name = OPENSSL_malloc(namelen + 1); int match, ret; + if (!TEST_ptr(name)) + return 0; memcpy(name, *pname, namelen + 1); match = -1;
fix crash on monitor size change
@@ -767,15 +767,13 @@ configurenotify(XEvent *e) drw_resize(drw, sw, bh); updatebars(); for (m = mons; m; m = m->next) { - if (c->isfakefullscreen){ + for (c = m->clients; c; c = c->next) { + if (c->isfakefullscreen) XMoveResizeWindow(dpy, m->barwin, m->wx, m->by, m->ww, bh); - }else{ - for (c = m->clients; c; c = c->n...
Add dependency on zlib when building with libmagic This fixes linking against static libmagic.
@@ -119,12 +119,14 @@ AC_ARG_ENABLE([magic], [AS_HELP_STRING([--enable-magic], [enable magic module])], [if test x$enableval = xyes; then build_magic_module=true + AC_CHECK_LIB(z, zlibVersion,, + AC_MSG_ERROR([please install zlib library])) AC_CHECK_HEADERS([magic.h],, AC_MSG_ERROR([please install libmagic library])) A...
ocspapitest: use TEST_true to report the exact failure
@@ -81,10 +81,11 @@ static OCSP_BASICRESP *make_dummy_resp(void) if (!TEST_ptr(name) || !TEST_ptr(key) || !TEST_ptr(serial) - || !X509_NAME_add_entry_by_NID(name, NID_commonName, MBSTRING_ASC, - namestr, -1, -1, 1) - || !ASN1_BIT_STRING_set(key, keybytes, sizeof(keybytes)) - || !ASN1_INTEGER_set_uint64(serial, (uint64_...
fixed typos in mpstatus test
@@ -21,10 +21,9 @@ def test_mpstatus(): #runs vspace sub.run(['python','../../vspace/vspace/vspace.py','mp_status'],cwd=cwd) #runs mp checkpoint - sub.run([sub.run(['python', '../../multi-planet/multi-planet.py','mp_status',cores],cwd=cwd) - + sub.run(['python', '../../multi-planet/multi-planet.py','mp_status',cores],c...
add __uninstall__ for get.sh
# usage: bash <(curl -s <my location>) [[mirror:]branch] [commit/__install_only__] set -o pipefail + +if [ 0 -ne "$(id -u)" ] +then + sudoprefix=sudo +else + sudoprefix= +fi + +remote_get_content(){ + if curl --version >/dev/null 2>&1 + then + curl -fsSL "$1" + elif wget --version >/dev/null 2>&1 + then + wget -q "$1" ...
system/uorb: always let orb_advertise, orb_advertise_queue for instance 0 1.orb_advertise, orb_advertise_queue for instance 0 2.orb_advertise_multi, orb_advertise__multi_queue for specified instance 3.If orb_advertise_multi_queue with instance is NULL, auto increase instance from existing base.
@@ -235,14 +235,18 @@ int orb_advertise_multi_queue(FAR const struct orb_metadata *meta, static inline int orb_advertise(FAR const struct orb_metadata *meta, FAR const void *data) { - return orb_advertise_multi_queue(meta, data, NULL, 1); + int instance = 0; + + return orb_advertise_multi_queue(meta, data, &instance, 1...
add check for decompressed deepscanline datasize
@@ -802,6 +802,12 @@ LineBufferTask::execute () _lineBuffer->packedDataSize = _lineBuffer->compressor->uncompress (_lineBuffer->buffer, static_cast<int>(_lineBuffer->packedDataSize), _lineBuffer->minY, _lineBuffer->uncompressedData); + + if(_lineBuffer->unpackedDataSize != _lineBuffer->packedDataSize) + { + THROW (IEX_...
process: fix invoke bug when trying to invoke a non-exported function
@@ -19,28 +19,6 @@ struct _ElektraInvokeHandle KeySet * exports; }; -/** - * Structure for deferred calls - * @internal - */ -typedef struct _ElektraDeferredCall -{ - char * name; - KeySet * parameters; - struct _ElektraDeferredCall * next; -} _ElektraDeferredCall; - -/** - * Structure for internal plugin state - * @in...
Added some thanks to changelog
@@ -7,11 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [3.0.0] -- Moved to new [GBVM](https://github.com/chrismaltby/gbvm) based game engine +- Moved to new [GBVM](https://github.com/chrismaltby/gbvm) based game engine (big thanks to [untoxa](https://github.com/untoxa)) - ...
dds: running proper input validation with create() method
@@ -71,8 +71,14 @@ DDS() DDS(_create)(unsigned int _num_stages, float _As) { // error checking + if (_num_stages > 20) + return liquid_error_config("dds_%s_create(), number of stages %u exceeds reasonable maximum (20)", EXTENSION_FULL, _num_stages); if (_fc > 0.5f || _fc < -0.5f) - return liquid_error_config("dds_xxxf_...
arch/xtensa/esp32s2: Fix touch function typo
@@ -965,7 +965,7 @@ static inline enum touch_conn_type_e * ****************************************************************************/ -static inline enum touch_pad_e touch_ll_get_current_meas_channel(void) +static inline enum touch_pad_e touch_lh_get_current_meas_channel(void) { return (enum touch_pad_e) REG_GET_FIE...
Array: Format documentation for `elektraArrayGet`
@@ -196,22 +196,23 @@ static int arrayFilter (const Key * key, void * argument) /** - * Return all the array keys below the given array parent + * @brief Return all the array keys below the given array parent + * * The array parent itself is not returned. - * For example, if user/config/# is an array, - * user/config i...
add build support for riscv32 aes zkn
@@ -49,6 +49,7 @@ IF[{- !$disabled{asm} -}] $AESASM_riscv64=aes_cbc.c aes-riscv64.s aes-riscv64-zkn.s $AESDEF_riscv64=AES_ASM + $AESASM_riscv32=aes_core.c aes_cbc.c aes-riscv32-zkn.s # Now that we have defined all the arch specific variables, use the # appropriate one, and define the appropriate macros @@ -119,6 +120,7...
groups: truncate long recent group entries
@@ -57,9 +57,10 @@ function RecentGroups(props: { recent: string[]; associations: Associations }) { bg={color} mr={2} display="block" + flexShrink='0' /> - <Link to={`/~groups${g}`}> - <Text>{assoc?.metadata?.title}</Text> + <Link style={{ minWidth: 0 }} to={`/~groups${g}`}> + <Text verticalAlign='top' maxWidth='100%' ...
mac shortcuts
@@ -10,11 +10,11 @@ Then open the cloned repository with "Open folder...". ## Intellisense -Open the command palette (`Ctrl` + `Shift` + `P`) run "C/C++: Change Configuration Provider..." and select "CMake Tools". +Open the command palette (`Ctrl`/`Cmd` + `Shift` + `P`) run "C/C++: Change Configuration Provider..." and...
Replace 32-bit incompatible instrinsics
@@ -360,10 +360,10 @@ static void kvz_four_tap_filter_ver_16bit_4x4_no_round_avx2(int8_t *filter, int1 __m128i filtered01 = _mm_packs_epi32(sum0123, sum1234); __m128i filtered23 = _mm_packs_epi32(sum2345, sum3456); - *(int64_t*)&out[0 * out_stride] = _mm_cvtsi128_si64(filtered01); - *(int64_t*)&out[1 * out_stride] = _m...
Mercator: take a packet only when its CRC is correct
@@ -443,12 +443,14 @@ void cb_endFrame(PORT_TIMER_WIDTH timestamp) { is_expected = FALSE; } - if (is_expected == TRUE){ + if (is_expected == TRUE && mercator_vars.rxpk_crc == TRUE){ resp = (IND_RX_ht*)mercator_vars.uartbuftx; resp->type = TYPE_IND_RX; resp->length = mercator_vars.rxpk_len; resp->rssi = mercator_vars.rx...
notification: fix typo & wording
@@ -280,7 +280,7 @@ keyDel (elektraKey); Since our application needs to repeatedly initialize KDB on configuration changes we need to create a function which cleans -up and reinitializates KDB. +up and reinitializes KDB. ```C void initKdb (void) @@ -296,7 +296,7 @@ void initKdb (void) elektraIoSetBinding (kdb, binding)...
Fixed cs_loader in linux when CSLoad.dll and binary is not in same path
@@ -35,9 +35,12 @@ bool netcore_linux::ConfigAssemblyName() { std::cout << "absoluteRuntime: " << this->runtimePath << std::endl; - cout << "absoluteAppPath: " << this->appPath << endl; + string::size_type pos = string(this->dotnet_loader_assembly_path).find_last_of( "\\/" ); + string dotnet_loader_assembly_directory =...
[mod_webdav] disable elftc_copyfile() on FreeBSD disable elftc_copyfile() on FreeBSD until libelftc added to SCons static build
@@ -2050,6 +2050,7 @@ webdav_fcopyfile_sz (int ifd, int ofd, off_t isz) lseek(ofd, 0, SEEK_SET); #endif + #if 0 #ifdef __FreeBSD__ if (0 == elftc_copyfile(ifd, ofd)) return 0; @@ -2057,6 +2058,7 @@ webdav_fcopyfile_sz (int ifd, int ofd, off_t isz) lseek(ifd, 0, SEEK_SET); lseek(ofd, 0, SEEK_SET); #endif + #endif #ifdef...
cooja: remove -I/usr/local/include Cooja does not depend on any libraries, so remove /usr/local/include from its include directories.
@@ -112,7 +112,7 @@ CONTIKI_SOURCEFILES += $(CONTIKI_TARGET_SOURCEFILES) CLEAN += COOJA.log ### Compiler arguments -CFLAGSNO = $(JAVA_CFLAGS) $(EXTRA_CC_ARGS) -Wall -g -I/usr/local/include -DCLASSNAME=$(CLASSNAME) +CFLAGSNO = $(JAVA_CFLAGS) $(EXTRA_CC_ARGS) -Wall -g -DCLASSNAME=$(CLASSNAME) ifeq ($(WERROR),1) CFLAGSNO ...
Disable auto update for ConBee II In some environments this doesn't work and needs more testing.
@@ -523,11 +523,11 @@ void DeRestPluginPrivate::queryFirmwareVersion() autoUpdate = true; } - if (autoUpdate && fwVersion <= GW_AUTO_UPDATE_R21_FW_VERSION) - { - DBG_Printf(DBG_INFO, "GW firmware start auto update\n"); - startUpdateFirmware(); - } +// if (autoUpdate && fwVersion <= GW_AUTO_UPDATE_R21_FW_VERSION) +// { ...
Canonize pytest/canondata/result.json
], "test.test_custom_loss_for_classification[Ordered]": [ { - "checksum": "eb1496c0b378872c7166652e4a851b85", + "checksum": "f85e3aa9d6356275769d08e1520e09fc", "uri": "file://test.test_custom_loss_for_classification_Ordered_/learn_error.tsv" }, { - "checksum": "d9b301dc784774d26b9b2829edfe4693", + "checksum": "1c2f2da7...
Add opt-testcases into check list
@@ -133,6 +133,9 @@ state may override this method. ssl_opt_sh = os.path.join(directory, 'ssl-opt.sh') if os.path.exists(ssl_opt_sh): self.walk_ssl_opt_sh(ssl_opt_sh) + for ssl_opt_file_name in glob.glob(os.path.join(directory, 'opt-testcases', + '*.sh')): + self.walk_ssl_opt_sh(ssl_opt_file_name) class DescriptionChec...
ossl_kdf_ctx_create(): Check for NULL KDF being fetched
@@ -393,6 +393,10 @@ EVP_KDF_CTX *ossl_kdf_ctx_create(const char *kdfname, const char *mdname, EVP_KDF_CTX *kctx = NULL; kdf = EVP_KDF_fetch(libctx, kdfname, propq); + if (kdf == NULL) { + ERR_raise(ERR_LIB_CRYPTO, ERR_R_FETCH_FAILED); + return NULL; + } kctx = EVP_KDF_CTX_new(kdf); EVP_KDF_free(kdf); if (kctx != NULL ...
reorder some attributes to avoid a maya 2018.5 crash with objectTransform connections
@@ -1211,9 +1211,9 @@ AssetNode::initialize() #if MAYA_API_VERSION >= 201400 cAttr.addChild(AssetNode::outputObjectFluidFromAsset); #endif + cAttr.addChild(AssetNode::outputObjectTransform); cAttr.addChild(AssetNode::outputGeos); cAttr.addChild(AssetNode::outputObjectName); - cAttr.addChild(AssetNode::outputObjectTrans...
Fix mov syntax
@@ -129,7 +129,7 @@ static __inline void cpuid(int op, int *eax, int *ebx, int *ecx, int *edx){ *ecx=cpuinfo[2]; *edx=cpuinfo[3]; #else - __asm__ __volatile__("mov %%ecx, 0;" + __asm__ __volatile__("mov $0, %%ecx;" "cpuid" : "=a" (*eax), "=b" (*ebx),
fix timer script was halted for show overlay after script Script_ptr is enough for all dialouge ui.
@@ -725,12 +725,6 @@ void SceneUpdateTimer_b() return; } - // Don't update timer when UI is open - if (!UIIsClosed()) - { - return; - } - // Check if timer is enabled if (timer_script_duration != 0) {
refactors u3v_wish for clarity
@@ -89,34 +89,23 @@ u3v_start(u3_noun now) u3_noun u3v_wish(const c3_c* str_c) { - u3_noun exp; - - if ( u3R == &u3H->rod_u ) { u3_noun txt = u3i_string(str_c); - - exp = u3kdb_get(u3k(u3A->yot), u3k(txt)); + u3_weak exp = u3kdb_get(u3k(u3A->yot), u3k(txt)); if ( u3_none == exp ) { exp = _cv_nock_wish(u3k(txt)); + + //...
add rebuild to cab script
rmdir /q /s %~dp0\output\cab -call %~dp0\build_zdriver.cmd release +call %~dp0\build_zdriver.cmd release rebuild if %ERRORLEVEL% neq 0 ( echo [-] Build failed, CAB was not generated. goto end
global variables rename
@@ -1042,8 +1042,8 @@ static void *work_thread(void *arg) pthread_t th; #if USE_ORPHAN_HASHTABLE == 1 - orphan_hashtable = (struct orphan_block **)calloc(sizeof(struct orphan_block *), ORPHAN_HASH_SIZE); - if(orphan_hashtable != NULL) + g_orphan_hashtable = (struct orphan_block **)calloc(sizeof(struct orphan_block *), ...
More descriptive log message
@@ -800,7 +800,7 @@ public class Program : BackgroundService var cf = services.GetService<IConnectionFactory>(); - bool enableLegacyTimestampBehavior; + bool enableLegacyTimestampBehavior = false; if(!clusterConfig.Persistence.Postgres.EnableLegacyTimestamps.HasValue) { @@ -810,10 +810,7 @@ public class Program : Backg...
Rename to OpenGatherableByItemId
@@ -12,5 +12,5 @@ public unsafe partial struct AgentGatheringNote [FieldOffset(0x0)] public AgentInterface AgentInterface; [MemberFunction("E8 ?? ?? ?? ?? EB 63 48 83 F8")] - public partial void OpenRecipeByItemId(ushort itemID); + public partial void OpenGatherableByItemId(ushort itemID); }
GcpClient: remove unused BASE_URL
@@ -10,7 +10,6 @@ import { const ENDPOINT = 'storage.googleapis.com'; -const BASE_URL = 'https://storage.googleapis.com/upload/storage/v1/b'; export default class GcpClient implements StorageClient { #accessKey: string;
programs.c: added conversion error check
@@ -83,7 +83,15 @@ int programs_decode(vm_map_t *kmap, vm_object_t *kernel) hal_strncpy(pr->cmdline, (char *)cpio->name + k, sizeof(pr->cmdline) - 1); fs = programs_a2i(cpio->c_filesize); + if (fs == -EINVAL) { + lib_printf("programs: invalid filesize"); + continue; + } ns = programs_a2i(cpio->c_namesize); + if (ns == ...
do not include files you won't need
// #include "core/nng_impl.h" + +#ifdef NNG_TRANSPORT_INPROC #include "transport/inproc/inproc.h" +#endif +#ifdef NNG_TRANSPORT_IPC #include "transport/ipc/ipc.h" +#endif +#ifdef NNG_TRANSPORT_TCP #include "transport/tcp/tcp.h" +#endif +#ifdef NNG_TRANSPORT_TLS #include "transport/tls/tls.h" +#endif +#ifdef NNG_TRANSPO...
Drop an unnecessary conditional Drop a conditional for depth > MAX_DEPTH in search_cu. The depth cannot be greater than MAX_DEPTH (== 3) since an earlier if-clause checks that it is less than MAX_PU_DEPTH (== 4).
@@ -733,7 +733,7 @@ static double search_cu(encoder_state_t * const state, int x, int y, int depth, cur_cu->intra = cu_d1->intra; cur_cu->type = CU_INTRA; - cur_cu->part_size = depth > MAX_DEPTH ? SIZE_NxN : SIZE_2Nx2N; + cur_cu->part_size = SIZE_2Nx2N; kvz_lcu_set_trdepth(&work_tree[depth], x, y, depth, cur_cu->tr_dep...
Troubleshooting the windows build git push
@@ -44,7 +44,8 @@ phases: - chmod +x build-windows/bin/raven* - cd RavenBinaries - git add . - - git commit -m "Releasing build $BUILD_ID" --author "Code Build <ops@mediciventures.com>" + - git commit -m "Releasing build $BUILD_ID" + - git status - git push origin "code_build_$BUILD_ID" artifacts: files:
BigIntOrderedMap: fix caching, again
@@ -16,7 +16,7 @@ function sortBigInt(a: BigInteger, b: BigInteger) { } export default class BigIntOrderedMap<V> implements Iterable<[BigInteger, V]> { root: Record<string, V> = {} - cachedIter: [BigInteger, V][] = []; + cachedIter: [BigInteger, V][] = null; [immerable] = true; constructor(items: [BigInteger, V][] = []...
py/objdict: make_new: Support separate __new__ vs __init__ phases.
@@ -102,6 +102,7 @@ STATIC void dict_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_ } mp_obj_t mp_obj_dict_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *args) { + MP_MAKE_NEW_GET_ONLY_FLAGS(); mp_obj_t dict_out = mp_obj_new_dict(0); mp_obj_dict_t *dict = MP_OBJ_TO_PTR(...
Fix bug description per_float_feature_binarization
@@ -2955,10 +2955,11 @@ class CatBoostClassifier(CatBoost): - 'GreedyLogSum' - 'MaxLogSum' - 'MinEntropy' - per_float_feature_binarization : list of strings, [default=['0:32:Forbidden:GreedyLogSum', '1:32:Forbidden:GreedyLogSum', ...]] + per_float_feature_binarization : list of strings, [default='0:nan_mode=Forbidden,b...
common/i2c: Fix reading 32bit big endian register Byte swapping was incorrect. Fixes: ("common: Add i2c 32bit read/write") TEST=compile BRANCH=none
@@ -475,7 +475,7 @@ int i2c_read32(const int port, if (I2C_IS_BIG_ENDIAN(addr_flags)) *data = ((int)buf[0] << 24) | ((int)buf[1] << 16) | - ((int)buf[0] << 8) | buf[1]; + ((int)buf[2] << 8) | buf[3]; else *data = ((int)buf[3] << 24) | ((int)buf[2] << 16) | ((int)buf[1] << 8) | buf[0];
ulp: add driver dependecy for ULP riscv gpio interrupt example
# Set usual component variables set(COMPONENT_SRCS "ulp_riscv_gpio_intr_example_main.c") set(COMPONENT_ADD_INCLUDEDIRS "") -set(COMPONENT_REQUIRES ulp) +set(COMPONENT_REQUIRES ulp driver) register_component()
Fix undefined reference to `tmp' in function `load_kernel.constprop.0':
@@ -109,7 +109,6 @@ static struct ****************************************************************************/ static char copybuf[512]; -static void *tmp; /**************************************************************************** * Private Functions @@ -265,8 +264,7 @@ err: static void load_kernel(const char *name...
Improved NaCl test
@@ -61,33 +61,33 @@ int main() { errno_assert(sz >= 0); assert(sz == 3); assert(buf[0] == 'H' && buf[1] == 'I' && buf[2] == 'J'); + s1 = nacl_detach(s1); + errno_assert(s1 >= 0); + s0 = nacl_detach(s0); + errno_assert(s0 >= 0); rc = hclose(s1); errno_assert(rc == 0); rc = hclose(s0); errno_assert(rc == 0); -#if 0 - /* ...
Flush binary log file on connection close
@@ -619,6 +619,8 @@ void binlog_close_connection(picoquic_cnx_t * cnx) (void)fwrite(bytestream_data(head), bytestream_length(head), 1, f); (void)fwrite(bytestream_data(msg), bytestream_length(msg), 1, f); + + fflush(f); } int binlog_open(picoquic_quic_t * quic, char const * binlog_file)
Change some comments for alpn
@@ -8310,9 +8310,9 @@ int mbedtls_ssl_parse_alpn_ext( mbedtls_ssl_context *ssl, */ /* - * protocal_name_list_len 2 bytes - * protocal_name_len 1 bytes - * protocal_name >=1 byte + * protocol_name_list_len 2 bytes + * protocol_name_len 1 bytes + * protocol_name >=1 byte */ MBEDTLS_SSL_CHK_BUF_READ_PTR( p, end, 4 ); @@ -...
Completions: Add suggestions for option `help`
@@ -80,7 +80,7 @@ function __fish_kdb_subcommand_supports_option_verbose -d 'Check if the current not __fish_kdb_subcommand_includes export file getmeta global-mount gmount info mount qt-gui remount rm sget shell test vset help qt-gui end -function __fish_kdb_subcommand_supports_option_version -d 'Check if the current ...
2to3 should have caught this.
import random import string -def string_generator(size=6, chars=string.letters + string.digits): +def string_generator(size=6, chars=string.ascii_letters + string.digits): return ''.join(random.choice(chars) for _ in range(size)) def number_generator(size=4, chars=string.digits):
vlib: fix the last error Type: fix
@@ -109,7 +109,8 @@ vlib_physmem_get_pa (vlib_main_t * vm, void *mem) always_inline clib_error_t * vlib_physmem_last_error (struct vlib_main_t * vm) { - return clib_error_return (0, "unknown error"); + clib_pmalloc_main_t *pm = vm->physmem_main.pmalloc_main; + return pm->error; } #endif /* included_vlib_physmem_funcs_h...
hssi: fix help message for `send` command The help message was using `-p` for packet count when it should be `-c`
@@ -72,7 +72,7 @@ loopback_app::loopback_app() console_.register_handler("send", std::bind(&loopback_app::do_loopback, this, _1), 2, - "<source port> [<destination port>] [-p|--packet-count <packet count>] " + "<source port> [<destination port>] [-c|--packet-count <packet count>] " "[-l|--packet-length <packet length>]...
Adjust expected answer file for segwalrep/pg_basebackup.out.
@@ -13,7 +13,7 @@ ERROR: replication slot "some_replication_slot" does not exist -- When pg_basebackup runs with --slot and stream as xlog-method select pg_basebackup(address, port, 'some_replication_slot', '/tmp/some_isolation2_pg_basebackup') from gp_segment_configuration where content = 0 and role = 'p'; pg_baseback...
fixed small bug in filehandle
@@ -583,6 +583,7 @@ if(showinfo2 == TRUE) } } output(fhshowinfo2, hcxrecord, hash); + fclose(fhshowinfo2); } return; } @@ -2218,6 +2219,7 @@ printf("%s %s (C) %s ZeroBeat\n" " : default: disabled - you will get more wpa handshakes, but some of them are uncrackable\n" "-i : enable id check (default: disabled)\n" " : def...
ssl_server2: refactor opaque code
@@ -2607,6 +2607,16 @@ int main( int argc, char *argv[] ) (unsigned int) -ret ); goto exit; } + + if( ( ret = mbedtls_pk_wrap_as_opaque( &pkey, &key_slot, + psa_alg, + psa_usage, + psa_alg2 ) ) != 0 ) + { + mbedtls_printf( " failed\n ! " + "mbedtls_pk_wrap_as_opaque returned -0x%x\n\n", (unsigned int) -ret ); + goto ex...
tests: add new tests for exceptions for the cpp Key-class
#include <string> #include <vector> +/* check if exceptions are thrown if the underlying c-functions return error codes (-1 or NULL) */ +TEST (key, cErrors) +{ + Key k ("user:/key", KEY_VALUE, "testkey", KEY_END); + Key x = nullptr; + + EXPECT_THROW (x.addName (""), KeyInvalidName); + EXPECT_THROW (x.setName(""), KeyIn...
touchscreen.h: move the #ifdef CONFIG_INPUT position the application can access the remote cpu touch driver by rpmsgdev, so the defines and struct will be used even if not enable the CONFIG_INPUT/CONFIG_INPUT_TOUCHSCREEN.
#include <nuttx/semaphore.h> #include <time.h> -#ifdef CONFIG_INPUT - /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ @@ -150,6 +148,8 @@ struct touch_sample_s #define SIZEOF_TOUCH_SAM...
added stripe count to be set with number of ranks
@@ -864,8 +864,12 @@ static void write_cache_readdir_variable( //int amode = MPI_MODE_WRONLY | MPI_MODE_CREATE | MPI_MODE_SEQUENTIAL; int amode = MPI_MODE_WRONLY | MPI_MODE_CREATE; - /* no. of I/O devices for lustre striping */ - MPI_Info_set(info, "striping_factor", "10"); + /* change number of ranks to string to pass...
Fix switching appearance while editing
@@ -411,6 +411,14 @@ class EditorSplitViewController: SplitViewController { } } + override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) { + super.traitCollectionDidChange(previousTraitCollection) + + view.backgroundColor = ConsoleViewController.choosenTheme.sourceCodeTheme.backgroundColo...
secure_boot_v2: Adds support SB_V2 for ESP32-C3 ECO3
@@ -471,7 +471,7 @@ menu "Security features" config SECURE_BOOT bool "Enable hardware Secure Boot in bootloader (READ DOCS FIRST)" default n - depends on !IDF_TARGET_ESP32C3 # IDF-2647 + depends on IDF_TARGET_ESP32 || IDF_TARGET_ESP32S2 || ESP32C3_REV_MIN_3 help Build a bootloader which enables Secure Boot on first boo...
dummy buffer only on EP0 OUT ZLPs
@@ -178,7 +178,7 @@ typedef struct // For example: LPC55s69 port1 Highspeed must be USB_RAM (0x40100000) // Use CFG_TUSB_MEM_SECTION to place it accordingly. CFG_TUSB_MEM_SECTION TU_ATTR_ALIGNED(256) static dcd_data_t _dcd; -CFG_TUSB_MEM_SECTION TU_ATTR_ALIGNED(256) static volatile uint8_t dummy[64]; // TODO temp fix t...