message
stringlengths
6
474
diff
stringlengths
8
5.22k
CDRIVER 3903 fix doc to ENABLE_AUTOMATIC_INIT_AND_CLEANUP setting homogeneous
@@ -26,4 +26,4 @@ For portable, future-proof code, always call :symbol:`mongoc_init` and :symbol:` .. code-block:: none - cmake -DENABLE_AUTOMATIC_INIT_AND_CLEANUP=NO + cmake -DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF
Update yfm for ya tool to 2.13.5
}, "yfm": { "formula": { - "sandbox_id": 649354690, + "sandbox_id": 652174899, "match": "yfm" }, "executable": {
io CHANGE more efficient way of finding endtag in nc_read_until
@@ -197,7 +197,7 @@ nc_read_until(struct nc_session *session, const char *endtag, size_t limit, uint struct timespec *ts_act_timeout, char **result) { char *chunk = NULL; - size_t size, count = 0, r, len; + size_t size, count = 0, r, len, i, matched = 0; assert(session); assert(endtag); @@ -215,7 +215,7 @@ nc_read_until(struct nc_session *session, const char *endtag, size_t limit, uint len = strlen(endtag); while (1) { - if (limit && count == limit) { + if (limit && count >= limit) { free(chunk); WRN("Session %u: reading limit (%d) reached.", session->id, limit); ERR("Session %u: invalid input data (missing \"%s\" sequence).", session->id, endtag); @@ -223,7 +223,7 @@ nc_read_until(struct nc_session *session, const char *endtag, size_t limit, uint } /* resize buffer if needed */ - if (count == size) { + if ((count + (len - matched)) >= size) { /* get more memory */ size = size + BUFFERSIZE; chunk = realloc(chunk, (size + 1) * sizeof *chunk); @@ -234,21 +234,28 @@ nc_read_until(struct nc_session *session, const char *endtag, size_t limit, uint } /* get another character */ - r = nc_read(session, &(chunk[count]), 1, inact_timeout, ts_act_timeout); - if (r != 1) { + r = nc_read(session, &(chunk[count]), len - matched, inact_timeout, ts_act_timeout); + if (r != len - matched) { free(chunk); return -1; } - count++; + count += len - matched; - /* check endtag */ - if (count >= len) { - if (!strncmp(endtag, &(chunk[count - len]), len)) { - /* endtag found */ + for (i = len - matched; i > 0; i--) { + if (!strncmp(&endtag[matched], &(chunk[count - i]), i)) { + /*part of endtag found */ + matched += i; break; + } else { + matched = 0; } } + + /* whole endtag found */ + if (matched == len) { + break; + } } /* terminating null byte */ @@ -1264,3 +1271,4 @@ nc_realloc(void *ptr, size_t size) return ret; } +
board/nucleo-dartmonkey/board.c: Format with clang-format BRANCH=none TEST=none
@@ -38,8 +38,8 @@ static void ap_deferred(void) * in S0: SLP_ALT_L is 1 and SLP_L is 1. * in S5/G3, the FP MCU should not be running. */ - int running = gpio_get_level(GPIO_SLP_ALT_L) - && gpio_get_level(GPIO_SLP_L); + int running = gpio_get_level(GPIO_SLP_ALT_L) && + gpio_get_level(GPIO_SLP_L); if (running) { /* S0 */ disable_sleep(SLEEP_MASK_AP_RUN);
demonstrate that multiple probes do actually work
@@ -38,6 +38,13 @@ int trace_quicly__accept(struct pt_regs *ctx) { events.perf_submit(ctx, &event, sizeof(event)); return 0; } + +int trace_quicly__crypto_handshake(struct pt_regs *ctx) { + struct event_t event = {}; + bpf_usdt_readarg(2, ctx, &event.at); + events.perf_submit(ctx, &event, sizeof(event)); + return 0; +} )"; #define VERSION "0.1.0" @@ -95,6 +102,7 @@ int main(int argc, char **argv) { std::vector<ebpf::USDT> probes; ebpf::BPF *bpf = new ebpf::BPF(); probes.push_back(ebpf::USDT("", h2o_pid, "quicly", "accept", "trace_quicly__accept")); + probes.push_back(ebpf::USDT("", h2o_pid, "quicly", "crypto_handshake", "trace_quicly__crypto_handshake")); ebpf::StatusTuple ret = bpf->init(QUIC_BPF, {}, probes); if (ret.code() != 0) {
fix: add BOAT_TEST_USE_ETHEREUM BOAT_TEST_USE_FABRIC in makefile
@@ -13,10 +13,14 @@ ifeq ($(BOAT_TEST_USE_CHAINMAKER), 1) endif tests_BoAT_ethereum_linuxDefault: +ifeq ($(BOAT_TEST_USE_ETHEREUM), 1) make -C BoAT_ethereum_linuxDefault all +endif tests_BoAT_fabric_linuxDefault: +ifeq ($(BOAT_TEST_USE_FABRIC), 1) make -C BoAT_fabric_linuxDefault all +endif tests_BoAT_platon_linuxDefault: make -C BoAT_platon_linuxDefault all
add cache definition
@@ -48,15 +48,29 @@ extern "C" { #define HWREG8(x) (*((volatile rt_uint8_t *)(x))) #endif +#ifndef RT_CPU_CACHE_LINE_SZ +#define RT_CPU_CACHE_LINE_SZ 32 +#endif + +enum RT_HW_CACHE_OPS +{ + RT_HW_CACHE_FLUSH = 0x01, + RT_HW_CACHE_INVALIDATE = 0x02, +}; + /* * CPU interfaces */ void rt_hw_cpu_icache_enable(void); void rt_hw_cpu_icache_disable(void); rt_base_t rt_hw_cpu_icache_status(void); +void rt_hw_cpu_icache_ops(int ops, void* addr, int size); + void rt_hw_cpu_dcache_enable(void); void rt_hw_cpu_dcache_disable(void); rt_base_t rt_hw_cpu_dcache_status(void); +void rt_hw_cpu_dcache_ops(int ops, void* addr, int size); + void rt_hw_cpu_reset(void); void rt_hw_cpu_shutdown(void);
Update coding documentation Add conventions for shell shebangs.
@@ -485,6 +485,15 @@ To reformat a Markdown document in [TextMate][] every time you save it, please f - Please only use [POSIX](https://en.wikipedia.org/wiki/POSIX) functionality. +#### Shebang + +Every shell script must start with either of two shebangs: + +* `#!/bin/sh` +* `#!/usr/bin/env <shell>`, where `<shell>` is an appropriate shell, e.g. `#!/usr/bin/env bash` + +Note that even if a shebang is added by a preprocessor macro or similar code generation tools, it must also be present in the templated file. + #### shfmt We use [`shfmt`][] to format Shell files in the repository.
ebisp/std: Validate arglist to defun in the same way as for lambda * One one level, this is simply for parallelism, but on another it covers one particular failure mode (a malformed arglist for a named function) in a slightly cleaner manner.
@@ -247,6 +247,10 @@ defun(void *param, Gc *gc, struct Scope *scope, struct Expr args) return result; } + if (!list_of_symbols_p(args_list)) { + return wrong_argument_type(gc, "list-of-symbolsp", args_list); + } + return eval(gc, scope, list(gc, "qee", "set", name, lambda(gc, args_list, body)));
tests/sigaltstack: line wrap inline assembly
@@ -34,11 +34,14 @@ int main() { // This is used to trash the stack to ensure sigaltstack actually switched stacks. #if defined(__x86_64__) - asm volatile ("mov $0, %rsp\n\tpush $0"); + asm volatile ("mov $0, %rsp\n" + "\t" "push $0"); #elif defined(__aarch64__) - asm volatile ("mov sp, %0\n\tstp x0, x1, [sp, #-16]!" :: "r"(uint64_t{0})); + asm volatile ("mov sp, %0\n" + "\t" "stp x0, x1, [sp, #-16]!" :: "r"(uint64_t{0})); #elif defined(__riscv) && __riscv_xlen == 64 - asm volatile ("li sp, 0\n\tsd zero, 0(sp)"); + asm volatile ("li sp, 0\n" + "\t" "sd zero, 0(sp)"); #else # error Unknown architecture #endif
Tweak module/expand-path docs
@@ -699,16 +699,16 @@ static const JanetReg corelib_cfuns[] = { { "module/expand-path", janet_core_expand_path, JDOC("(module/expand-path path template)\n\n" - "Expands a path template as found in module/paths for module/find. " - "This takes in a path (the argument to require) and a template string, template, " + "Expands a path template as found in `module/paths` for `module/find`. " + "This takes in a path (the argument to require) and a template string, " "to expand the path to a path that can be " "used for importing files. The replacements are as follows:\n\n" - "\t:all:\tthe value of path verbatim\n" - "\t:cur:\tthe current file, or (dyn :current-file)\n" - "\t:dir:\tthe directory containing the current file\n" - "\t:name:\tthe name component of path, with extension if given\n" - "\t:native:\tthe extension used to load natives, .so or .dll\n" - "\t:sys:\tthe system path, or (dyn :syspath)") + "* :all: -- the value of path verbatim\n\n" + "* :cur: -- the current file, or (dyn :current-file)\n\n" + "* :dir: -- the directory containing the current file\n\n" + "* :name: -- the name component of path, with extension if given\n\n" + "* :native: -- the extension used to load natives, .so or .dll\n\n" + "* :sys: -- the system path, or (dyn :syspath)") }, { "int?", janet_core_check_int,
s5j/Kconfig: remove knobs for the debug UART Now that the debug UART is configured using CONFIG_UART4_XXX, we do not need to have these Kconfig entries.
@@ -170,35 +170,6 @@ config S5J_UARTDBG select ARCH_HAVE_UART4 select ARCH_HAVE_SERIAL_TERMIOS -menu "Debug UART Configuration" - depends on S5J_UARTDBG - -config UARTDBG_RXBUFSIZE - int "uartdbg rx buffer size" - default 256 - -config UARTDBG_TXBUFSIZE - int "uartdbg tx buffer size" - default 256 - -config UARTDBG_BAUD - int "baudrate" - default 115200 - -config UARTDBG_BITS - int "uart bits" - default 8 - -config UARTDBG_PARITY - int "party bit" - default 0 - -config UARTDBG_2STOP - int "stop bit" - default 0 - -endmenu - config S5J_PWM bool "PWM" depends on S5J_HAVE_PWM
don't pass const string where a modifyable string is expected
@@ -93,13 +93,14 @@ static int write_string(BIO *b, const char *buf, size_t n) */ static int tap_write_ex(BIO *b, const char *buf, size_t size, size_t *in_size) { + static char empty[] = ""; BIO *next = BIO_next(b); size_t i; int j; for (i = 0; i < size; i++) { if (BIO_get_data(b) == NULL) { - BIO_set_data(b, ""); + BIO_set_data(b, empty); for (j = 0; j < subtest_level(); j++) if (!write_string(next, " ", 1)) goto err;
AutoSyncThin Fix
@@ -387,7 +387,7 @@ namespace Checkpoints { const CBlockThinIndex *pindex = pindexBestHeader; // Search backward for a block within max span and maturity window - while (pindex->pprev && pindex->nHeight + nCheckpointSpan > pindexBest->nHeight) + while (pindex->pprev && (pindex->GetBlockTime() + nCheckpointSpan * nTargetSpacing > pindexBestHeader->GetBlockTime() || pindex->nHeight + nCheckpointSpan > pindexBestHeader->nHeight)) pindex = pindex->pprev; return pindex; }
fix flag reference
@@ -130,7 +130,7 @@ There are several flags you may set in the `redisOptions` struct to change defau | REDIS\_OPT\_REUSEADDR | Tells hiredis to set the [SO_REUSEADDR](https://man7.org/linux/man-pages/man7/socket.7.html) socket option | | REDIS\_OPT\_PREFER\_IPV4<br>REDIS\_OPT\_PREFER_IPV6<br>REDIS\_OPT\_PREFER\_IP\_UNSPEC | Informs hiredis to either prefer IPv4 or IPv6 when invoking [getaddrinfo](https://man7.org/linux/man-pages/man3/gai_strerror.3.html). `REDIS_OPT_PREFER_IP_UNSPEC` will cause hiredis to specify `AF_UNSPEC` in the getaddrinfo call, which means both IPv4 and IPv6 addresses will be searched simultaneously.<br>Hiredis prefers IPv4 by default. | | REDIS\_OPT\_NO\_PUSH\_AUTOFREE | Tells hiredis to not install the default RESP3 PUSH handler (which just intercepts and frees the replies). This is useful in situations where you want to process these messages in-band. | -| REDIS\_OPT\_NOAUOTFREEREPLIES | **ASYNC**: tells hiredis not to automatically invoke `freeReplyObject` after executing the reply callback. | +| REDIS\_OPT\_NOAUTOFREEREPLIES | **ASYNC**: tells hiredis not to automatically invoke `freeReplyObject` after executing the reply callback. | | REDIS\_OPT\_NOAUTOFREE | **ASYNC**: Tells hiredis not to automatically free the `redisAsyncContext` on connection/communication failure, but only if the user makes an explicit call to `redisAsyncDisconnect` or `redisAsyncFree` | *Note: A `redisContext` is not thread-safe.*
[mruby] Delegate ENV passing to rake invocation CMake's env helper is broken on Windows OS :/
@@ -14,12 +14,6 @@ if(CMAKE_BUILD_TYPE) string(TOUPPER ${CMAKE_BUILD_TYPE} BUILD_TYPE_UC) endif() -if(WIN32) - set(CMAKE_EXE "cmake") -else() - set(CMAKE_EXE "${CMAKE_COMMAND}") -endif() - find_package(Git) if(Git_FOUND) execute_process( @@ -257,7 +251,7 @@ ExternalProject_Add(mruby_vendor CONFIGURE_COMMAND "" BUILD_IN_SOURCE TRUE BUILD_COMMAND - ${CMAKE_EXE} -E env + ${RAKE} "MRUBY_CONFIG=${MRUBY_CONFIG}" "TARGET_CC=${CMAKE_C_COMPILER}" "TARGET_CXX=${CMAKE_CXX_COMPILER}" "TARGET_LD=${CMAKE_C_LINK_EXECUTABLE}" @@ -267,7 +261,6 @@ ExternalProject_Add(mruby_vendor "TARGET_LDFLAGS=${CMAKE_EXE_LINKER_FLAGS} ${CMAKE_LINKER_FLAGS_${BUILD_TYPE_UC}}" "BUILD_TYPE=${BUILD_TYPE_UC}" "MRUBY_TOOLCHAIN=${MRUBY_TOOLCHAIN}" - ${RAKE} "MRUBY_CONFIG=${MRUBY_CONFIG}" INSTALL_COMMAND "" BUILD_BYPRODUCTS ${MRUBY_LIB} )
framework/arastorage: fix logic issue and lock release for bptree indexing 1. get_next, unset lock for abnormal case 2. get_next, update cache range update get new bucket 3. modify_cache, unlock mutex before return for exceptional case
@@ -900,11 +900,6 @@ static tuple_id_t get_next(index_iterator_t *iterator, uint8_t matched_condition DB_LOG_D("BUCKET ALREADY LOCKED IN GET NEXT SPINNING\n"); pthread_mutex_lock(&(tree->bucket_lock)); } - tree->lock_buckets[cache.bucket_id] = 1; - pthread_mutex_unlock(&(tree->bucket_lock)); - - cache.start = 0; - cache.end = cache.bucket->next_free_slot; /* TODO * Absent of non-cast return handling, should be taken care in the definition @@ -922,6 +917,13 @@ static tuple_id_t get_next(index_iterator_t *iterator, uint8_t matched_condition return INVALID_TUPLE; } + + tree->lock_buckets[cache.bucket_id] = 1; + pthread_mutex_unlock(&(tree->bucket_lock)); + + cache.start = 0; + cache.end = cache.bucket->next_free_slot; + iterator->next_item_no = 1; return get_next(iterator, matched_condition); } @@ -1051,15 +1053,18 @@ static cache_result_t modify_cache(tree_t *tree, int id, cache_type_t cache, op_ } temp = temp->prev; } - if (temp == end) { - DB_LOG_E("PANIC CACHE OPERATION FOR A NON EXISTENT ENTRY\n"); - return CACHE_NOT_EXIST; - } + if (cache == NODE) { pthread_mutex_unlock(&(tree->node_cache_lock)); } else { pthread_mutex_unlock(&(tree->buck_cache_lock)); } + + if (temp == end) { + DB_LOG_E("PANIC CACHE OPERATION FOR A NON EXISTENT ENTRY\n"); + return CACHE_NOT_EXIST; + } + return CACHE_OK; } @@ -1467,11 +1472,13 @@ void tree_print(tree_t *tree, int id) modify_cache(tree, node->id[i], BUCKET, UNLOCK); } bucket = bucket_read(tree, node->id[node->val[BRANCH_FACTOR - 1]]); + if (bucket != NULL) { DB_LOG_D("Bucket id:%d\n", node->id[node->val[BRANCH_FACTOR - 1]]); for (j = 0; j < bucket->next_free_slot; j++) { DB_LOG_V("Key %d, Value %d\n", bucket->pairs[j].key, bucket->pairs[j].value); } modify_cache(tree, node->id[node->val[BRANCH_FACTOR - 1]], BUCKET, UNLOCK); + } } else { for (i = 0; i < node->val[BRANCH_FACTOR - 1]; i++) {
docs: update module example for latest families
proc ModulesHelp { } { puts stderr " " -puts stderr "This module loads the example library built with the gnu compiler" -puts stderr "toolchain and the openmpi MPI stack." +puts stderr "This module loads the example library built with the gnu7 compiler" +puts stderr "toolchain and the openmpi3 MPI stack." puts stderr "\nVersion 1.0\n" } @@ -16,13 +16,13 @@ module-whatis "URL http://www.google.com" set version 1.0 -prepend-path PATH /opt/ohpc/pub/libs/gnu/openmpi/example/1.0/bin -prepend-path MANPATH /opt/ohpc/pub/libs/gnu/openmpi/example/1.0/share/man -prepend-path INCLUDE /opt/ohpc/pub/libs/gnu/openmpi/example/1.0/include -prepend-path LD_LIBRARY_PATH /opt/ohpc/pub/libs/gnu/openmpi/example/1.0/lib +prepend-path PATH /opt/ohpc/pub/libs/gnu7/openmpi3/example/1.0/bin +prepend-path MANPATH /opt/ohpc/pub/libs/gnu7/openmpi3/example/1.0/share/man +prepend-path INCLUDE /opt/ohpc/pub/libs/gnu7/openmpi3/example/1.0/include +prepend-path LD_LIBRARY_PATH /opt/ohpc/pub/libs/gnu7/openmpi3/example/1.0/lib -setenv EXAMPLE_DIR /opt/ohpc/pub/libs/gnu/openmpi/example/1.0 -setenv EXAMPLE_BIN /opt/ohpc/pub/libs/gnu/openmpi/example/1.0/bin -setenv EXAMPLE_LIB /opt/ohpc/pub/libs/gnu/openmpi/example/1.0/lib -setenv EXAMPLE_INC /opt/ohpc/pub/libs/gnu/openmpi/example/1.0/include +setenv EXAMPLE_DIR /opt/ohpc/pub/libs/gnu7/openmpi3/example/1.0 +setenv EXAMPLE_BIN /opt/ohpc/pub/libs/gnu7/openmpi3/example/1.0/bin +setenv EXAMPLE_LIB /opt/ohpc/pub/libs/gnu7/openmpi3/example/1.0/lib +setenv EXAMPLE_INC /opt/ohpc/pub/libs/gnu7/openmpi3/example/1.0/include
[cmake] fix build without documentation
@@ -100,8 +100,6 @@ macro(finalize_doc) add_dependencies(doxyrest doxygen) add_dependencies(html doxyrest) endif() - endif() - # --- Generates conf.py, to describe sphinx setup --- # !! Should be call after doxygen setup # to have a propre DOXYGEN_INPUT value. @@ -111,6 +109,8 @@ macro(finalize_doc) configure_file( "${DOXY_CONFIG}" "${CMAKE_BINARY_DIR}/docs/sphinx/Doxyfile" @ONLY) + endif() + endmacro()
u3: arvo interface
#include <stdio.h> #include "all.h" -#define _CVX_WISH 22 -#define _CVX_POKE 47 -#define _CVX_PEEK 46 +#define _CVX_LOAD 4 +#define _CVX_PEEK 22 +#define _CVX_POKE 23 +#define _CVX_WISH 10 /* u3v_life(): execute initial lifecycle, producing Arvo core. */
README.md: Use version 2.05.28
@@ -34,11 +34,11 @@ https://github.com/dresden-elektronik/deconz-rest-plugin/wiki/Supported-Devices ### Install deCONZ 1. Download deCONZ package - wget http://www.dresden-elektronik.de/rpi/deconz/beta/deconz-2.05.26-qt5.deb + wget http://www.dresden-elektronik.de/rpi/deconz/beta/deconz-2.05.28-qt5.deb 2. Install deCONZ package - sudo dpkg -i deconz-2.05.26-qt5.deb + sudo dpkg -i deconz-2.05.28-qt5.deb **Important** this step might print some errors *that's ok* and will be fixed in the next step. @@ -53,11 +53,11 @@ The deCONZ package already contains the REST API plugin, the development package 1. Download deCONZ development package - wget http://www.dresden-elektronik.de/rpi/deconz-dev/deconz-dev-2.05.26.deb + wget http://www.dresden-elektronik.de/rpi/deconz-dev/deconz-dev-2.05.28.deb 2. Install deCONZ development package - sudo dpkg -i deconz-dev-2.05.26.deb + sudo dpkg -i deconz-dev-2.05.28.deb 3. Install missing dependencies @@ -72,7 +72,7 @@ The deCONZ package already contains the REST API plugin, the development package 2. Checkout related version tag cd deconz-rest-plugin - git checkout -b mybranch V2_05_26 + git checkout -b mybranch V2_05_28 3. Compile the plugin
Fix overwrite-only under Zephyr As reported by issue some #ifdefery was wrongly done, which broke overwrite-only mode under Zephyr.
@@ -1523,7 +1523,7 @@ boot_swap_if_needed(int *out_swap_type) /* If a partial swap was detected, complete it. */ if (bs.idx != BOOT_STATUS_IDX_0 || bs.state != BOOT_STATUS_STATE_0) { -#if MCUBOOT_OVERWRITE_ONLY +#ifdef MCUBOOT_OVERWRITE_ONLY /* Should never arrive here, overwrite-only mode has no swap state. */ assert(0); #else @@ -1547,7 +1547,7 @@ boot_swap_if_needed(int *out_swap_type) case BOOT_SWAP_TYPE_TEST: case BOOT_SWAP_TYPE_PERM: case BOOT_SWAP_TYPE_REVERT: -#if MCUBOOT_OVERWRITE_ONLY +#ifdef MCUBOOT_OVERWRITE_ONLY rc = boot_copy_image(&bs); #else rc = boot_swap_image(&bs);
Recognise clang -fsanitize options and translate them Because we depend on knowing if clang's address, memory or undefinedbehavior sanitizers are enabled, we make an extra effort to detect them among the C flags, and adjust the %disabled values accordingly.
@@ -1340,6 +1340,27 @@ unless ($disabled{threads}) { } } +# Find out if clang's sanitizers have been enabled with -fsanitize +# flags and ensure that the corresponding %disabled elements area +# removed to reflect that the sanitizers are indeed enabled. +my %detected_sanitizers = (); +foreach (grep /^-fsanitize=/, @{$config{CFLAGS} || []}) { + (my $checks = $_) =~ s/^-fsanitize=//; + foreach (split /,/, $checks) { + my $d = { address => 'asan', + undefined => 'ubsan', + memory => 'msan' } -> {$_}; + next unless defined $d; + + $detected_sanitizers{$d} = 1; + if (defined $disabled{$d}) { + die "***** Conflict between disabling $d and enabling $_ sanitizer" + if $disabled{$d} ne "default"; + delete $disabled{$d}; + } + } +} + # If threads still aren't disabled, add a C macro to ensure the source # code knows about it. Any other flag is taken care of by the configs. unless($disabled{threads}) { @@ -1367,12 +1388,12 @@ if ($disabled{"dynamic-engine"}) { $config{dynamic_engines} = 1; } -unless ($disabled{asan}) { +unless ($disabled{asan} || defined $detected_sanitizers{asan}) { push @{$config{cflags}}, "-fsanitize=address"; push @{$config{cxxflags}}, "-fsanitize=address" if $config{CXX}; } -unless ($disabled{ubsan}) { +unless ($disabled{ubsan} || defined $detected_sanitizers{ubsan}) { # -DPEDANTIC or -fnosanitize=alignment may also be required on some # platforms. push @{$config{cflags}}, "-fsanitize=undefined", "-fno-sanitize-recover=all"; @@ -1380,7 +1401,7 @@ unless ($disabled{ubsan}) { if $config{CXX}; } -unless ($disabled{msan}) { +unless ($disabled{msan} || defined $detected_sanitizers{msan}) { push @{$config{cflags}}, "-fsanitize=memory"; push @{$config{cxxflags}}, "-fsanitize=memory" if $config{CXX}; }
[core] disable Nagle if streaming to backend disable Nagle algorithm if streaming to backend and content-length is unknown at the point where lighttpd is about to begin sending data to backend
@@ -1796,6 +1796,16 @@ static handler_t gw_write_request(server *srv, gw_handler_ctx *hctx) { if (HANDLER_GO_ON != rc) return rc; } + /*(disable Nagle algorithm if streaming and content-length unknown)*/ + if (AF_UNIX != hctx->host->family) { + connection *con = hctx->remote_conn; + if (-1 == con->request.content_length) { + if (-1 == fdevent_set_tcp_nodelay(hctx->fd, 1)) { + /*(error, but not critical)*/ + } + } + } + fdevent_event_add(srv->ev, &(hctx->fde_ndx), hctx->fd, FDEVENT_IN); gw_set_state(srv, hctx, GW_STATE_WRITE); /* fall through */
Use KERNEL_DEFINITIONS rather than COMMON_OPTS to pass -march=skylake-avx512
@@ -43,8 +43,7 @@ endif () if (DEFINED TARGET) if (${TARGET} STREQUAL "SKYLAKEX" AND NOT NO_AVX512) - set (CCOMMON_OPT "${CCOMMON_OPT} -march=skylake-avx512") - set (FCOMMON_OPT "${FCOMMON_OPT} -march=skylake-avx512") + set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -march=skylake-avx512") endif() endif()
dpdk: update Cisco VIC port type Recent VIC models can support 25, 50, and 100Gbps links. Use the helper (port_type_from_link_speed) to set the port type as it supports all possible link speeds.
@@ -441,10 +441,7 @@ dpdk_lib_init (dpdk_main_t * dm) /* Cisco VIC */ case VNET_DPDK_PMD_ENIC: - if (l.link_speed == 40000) - xd->port_type = VNET_DPDK_PORT_TYPE_ETH_40G; - else - xd->port_type = VNET_DPDK_PORT_TYPE_ETH_10G; + xd->port_type = port_type_from_link_speed (l.link_speed); break; /* Intel Red Rock Canyon */
arch/arm/stm32_ccm.h : Replace mm_xalloc to xalloc_user_at It is not good to use mm_xalloc directly from user side. So replace them to xalloc_user_at().
* allocators can be used just like the standard memory allocators. */ -#define ccm_malloc(s) mm_malloc(&g_ccm_heap, s) -#define ccm_zalloc(s) mm_zalloc(&g_ccm_heap, s) -#define ccm_calloc(n, s) mm_calloc(&g_ccm_heap, n, s) -#define ccm_free(p) mm_free(&g_ccm_heap, p) -#define ccm_realloc(p, s) mm_realloc(&g_ccm_heap, p, s) -#define ccm_memalign(a, s) mm_memalign(&g_ccm_heap, a, s) +#define ccm_malloc(s) malloc_user_at(&g_ccm_heap, s) +#define ccm_zalloc(s) zalloc_user_at(&g_ccm_heap, s) +#define ccm_calloc(n, s) calloc_user_at(&g_ccm_heap, n, s) +#define ccm_free(p) free_user_at(&g_ccm_heap, p) +#define ccm_realloc(p, s) realloc_user_at(&g_ccm_heap, p, s) +#define ccm_memalign(a, s) memalign_user_at(&g_ccm_heap, a, s) /**************************************************************************** * Public Types
Remove trailing \.
@@ -47,7 +47,7 @@ static char *config_property_sctp_tcp = "{\ \"precedence\": 1\ }\ ]\ -}";\ +}"; static char *config_property_tcp = "{\ \"transport\": [\ {\ @@ -55,7 +55,7 @@ static char *config_property_tcp = "{\ \"precedence\": 1\ }\ ]\ -}";\ +}"; static char *config_property_sctp = "{\ \"transport\": [\ {\
Roller: do not draw rectangle highlight on borders
@@ -328,8 +328,12 @@ static bool lv_roller_design(lv_obj_t * roller, const lv_area_t * mask, lv_desig if((font_h & 0x1) && (style->text.line_space & 0x1)) rect_area.y1--; /*Compensate the two rounding error*/ rect_area.y2 = rect_area.y1 + font_h + style->text.line_space - 1; - rect_area.x1 = roller->coords.x1; - rect_area.x2 = roller->coords.x2; + lv_area_t roller_coords; + lv_obj_get_coords(roller, &roller_coords); + lv_obj_adjust_coords(roller, &roller_coords); + + rect_area.x1 = roller_coords.x1; + rect_area.x2 = roller_coords.x2; lv_draw_rect(&rect_area, mask, ext->ddlist.sel_style, opa_scale); }
add bsp stm32/stm32l412-st-nucleo
@@ -109,6 +109,7 @@ env: - RTT_BSP='stm32/stm32l4r9-st-eval' RTT_TOOL_CHAIN='sourcery-arm' - RTT_BSP='stm32/stm32l010-st-nucleo' RTT_TOOL_CHAIN='sourcery-arm' - RTT_BSP='stm32/stm32l053-st-nucleo' RTT_TOOL_CHAIN='sourcery-arm' + - RTT_BSP='stm32/stm32l412-st-nucleo' RTT_TOOL_CHAIN='sourcery-arm' - RTT_BSP='stm32/stm32l432-st-nucleo' RTT_TOOL_CHAIN='sourcery-arm' - RTT_BSP='stm32/stm32l475-atk-pandora' RTT_TOOL_CHAIN='sourcery-arm' - RTT_BSP='stm32/stm32l475-st-discovery' RTT_TOOL_CHAIN='sourcery-arm'
The need for MANGOHUD_DLSYM
@@ -84,7 +84,11 @@ For Steam games, you can add this as a launch option: Or alternatively, add `MANGOHUD=1` to your shell profile (Vulkan only). -Some linux native games overrides LD_PRELOAD and stopping MangoHud from working. You can sometimes fix this by editing LD_PRELOAD in the start script +## OpenGL + +OpenGL games may also need `dlsym` hooking. Add `MANGOHUD_DLSYM=1` your command like `MANGOHUD_DLSYM=1 mangohud %command%` for Steam. + +Some Linux native OpenGL games overrides LD_PRELOAD and stops MangoHud from working. You can sometimes fix this by editing LD_PRELOAD in the start script `LD_PRELOAD=/path/to/mangohud/lib/` ## Hud configuration
tup: prettier clang error colors;
@@ -83,6 +83,7 @@ cflags = { '-Wextra', config.strict and '-Werror' or '', '-Wno-unused-parameter', + '-fdiagnostics-color=always', '-fvisibility=hidden', config.optimize and '-fdata-sections -ffunction-sections' or '', '-Isrc',
BugID:18684361: remove upper components dependencies of ssc1667
@@ -10,7 +10,7 @@ SUPPORT_MBINS := no HOST_MCU_NAME := SSCP131 ENABLE_VFP := 0 -$(NAME)_COMPONENTS += $(HOST_MCU_FAMILY) osal_aos newlib_stub +$(NAME)_COMPONENTS += $(HOST_MCU_FAMILY) newlib_stub $(NAME)_SOURCES += config/k_config.c \ startup/board.c \
fixed cyclic import bug
@@ -7,7 +7,6 @@ import numpy as np import yaml from inspect import getmembers, isfunction, signature -import pyccl from . import ccllib as lib from .errors import CCLError, CCLWarning from ._types import error_types @@ -198,13 +197,19 @@ class Cosmology(object): # Go through all functions in the main package and the subpackages # and make every function that takes `cosmo` as its first argument # an attribute of this class. - subs = [pyccl, pyccl.halos, pyccl.nl_pt] + from . import background, bcm, \ + cls, correlations, covariances, \ + pk2d, power, tracers, halos, nl_pt + subs = [background, bcm, cls, correlations, covariances, + pk2d, power, tracers, halos, nl_pt] funcs = [getmembers(sub, isfunction) for sub in subs] funcs = [func for sub in funcs for func in sub] for name, func in funcs: pars = signature(func).parameters if list(pars)[0] == "cosmo": vars()[name] = func + del background, bcm, cls, correlations, covariances, \ + pk2d, power, tracers, halos, nl_pt def __init__( self, Omega_c=None, Omega_b=None, h=None, n_s=None,
btc: added tile
:: Scrys :: x/scanned: (list xpub) of all scanned wallets :: x/balance/xpub: balance (in sats) of wallet -/- *btc-wallet, bp=btc-provider +/- *btc-wallet, bp=btc-provider, file-server, launch-store /+ dbug, default-agent, bl=btc, bc=bitcoin, bip32 |% ++ defaults ++ on-init ^- (quip card _this) ~& > '%btc-wallet initialized' - :- ~ + =/ file + [%file-server-action !>([%serve-dir /'~btc' /app/btc-wallet %.n %.n])] + =/ tile + :- %launch-action + !> :+ %add + %btc-wallet + [[%basic 'Wallet' '/~btc/img/tile.png' '/~btc'] %.y] + :- :~ [%pass /btc-wallet-server %agent [our.bowl %file-server] %poke file] + [%pass /btc-wallet-tile %agent [our.bowl %launch] %poke tile] + == %_ this state :* %0
exec_always: Search for executables in /usr/lib/sway
@@ -51,7 +51,41 @@ struct cmd_results *cmd_exec_always(int argc, char **argv) { if ((pid = fork()) == 0) { // Fork child process again setsid(); + if ((*child = fork()) == 0) { + // Acquire the current PATH + char *path = getenv("PATH"); + const char *extra_path = ":/usr/lib/sway"; + const size_t extra_size = sizeof("/usr/lib/sway") + 1; + + if (!path) { + size_t n = confstr(_CS_PATH, NULL, 0); + path = malloc(n + extra_size); + if (!path) { + return cmd_results_new(CMD_FAILURE, "exec_always", "Unable to allocate PATH"); + } + confstr(_CS_PATH, path, n); + + } else { + size_t n = strlen(path) + 1; + char *tmp = malloc(n + extra_size); + if (!tmp) { + return cmd_results_new(CMD_FAILURE, "exec_always", "Unable to allocate PATH"); + } + + strncpy(tmp, path, n); + path = tmp; + } + + // Append /usr/lib/sway to PATH + strcat(path, extra_path); + if (!setenv("PATH", path, 1)) { + free(path); + return cmd_results_new(CMD_FAILURE, "exec_always", "Unable to set PATH"); + } + free(path); + + // Execute the command execl("/bin/sh", "/bin/sh", "-c", cmd, (void *)NULL); // Not reached }
stream reuse, move drop in tcp_reuse test to timeout section of test.
@@ -61,30 +61,6 @@ else exit 1 fi -echo "> query drop.net." -$PRE/streamtcp -f 127.0.0.1@$UNBOUND_PORT drop.net. A IN >outfile 2>&1 -cat outfile -if test "$?" -ne 0; then - echo "exit status not OK" - echo "> cat logfiles" - cat outfile - cat unbound2.log - cat unbound.log - echo "Not OK" - exit 1 -fi -if grep "rcode: SERVFAIL" outfile; then - echo "content OK" -else - echo "result contents not OK, for drop.net" - echo "> cat logfiles" - cat outfile - cat unbound2.log - cat unbound.log - echo "result contents not OK, for drop.net" - exit 1 -fi - echo "> query refuse.net." $PRE/streamtcp -f 127.0.0.1@$UNBOUND_PORT refuse.net. A IN >outfile 2>&1 cat outfile @@ -260,6 +236,30 @@ cat outfile # on how fast the other server responds or the drop happens, but there are # a bunch of connection drops, whilst resolving the other queries. +echo "> query drop.net." +$PRE/streamtcp -f 127.0.0.1@$UNBOUND_PORT drop.net. A IN >outfile 2>&1 +cat outfile +if test "$?" -ne 0; then + echo "exit status not OK" + echo "> cat logfiles" + cat outfile + cat unbound2.log + cat unbound.log + echo "Not OK" + exit 1 +fi +if grep "rcode: SERVFAIL" outfile; then + echo "content OK" +else + echo "result contents not OK, for drop.net" + echo "> cat logfiles" + cat outfile + cat unbound2.log + cat unbound.log + echo "result contents not OK, for drop.net" + exit 1 +fi + # timeouts at the end. (so that the server is not marked as failed for # the other tests).
OpenXR: Fix right actions not being marked as active in xrSyncActions call
@@ -881,7 +881,7 @@ static void openxr_update(float dt) { XrActionsSyncInfo syncInfo = { .type = XR_TYPE_ACTIONS_SYNC_INFO, - .countActiveActionSets = 1, + .countActiveActionSets = 2, .activeActionSets = (XrActiveActionSet[]) { { state.actionSet, state.actionFilters[0] }, { state.actionSet, state.actionFilters[1] }
nrf/Makefile: Use C11 instead of Gnu99. Some constructs require C11 which GCC silently allows.
@@ -100,7 +100,7 @@ endif CFLAGS += $(CFLAGS_MCU_$(MCU_SERIES)) -CFLAGS += $(INC) -Wall -Werror -g -ansi -std=gnu99 -nostdlib $(COPT) $(NRF_DEFINES) $(CFLAGS_MOD) +CFLAGS += $(INC) -Wall -Werror -g -ansi -std=c11 -nostdlib $(COPT) $(NRF_DEFINES) $(CFLAGS_MOD) CFLAGS += -fno-strict-aliasing CFLAGS += -Iboards/$(BOARD) CFLAGS += -DNRF5_HAL_H='<$(MCU_VARIANT)_hal.h>'
[kernel][mem.c] tighten size before check with mem_size_aligned
@@ -299,6 +299,10 @@ void *rt_smem_alloc(rt_smem_t m, rt_size_t size) /* alignment size */ size = RT_ALIGN(size, RT_ALIGN_SIZE); + /* every data block must be at least MIN_SIZE_ALIGNED long */ + if (size < MIN_SIZE_ALIGNED) + size = MIN_SIZE_ALIGNED; + if (size > small_mem->mem_size_aligned) { RT_DEBUG_LOG(RT_DEBUG_MEM, ("no memory\n")); @@ -306,10 +310,6 @@ void *rt_smem_alloc(rt_smem_t m, rt_size_t size) return RT_NULL; } - /* every data block must be at least MIN_SIZE_ALIGNED long */ - if (size < MIN_SIZE_ALIGNED) - size = MIN_SIZE_ALIGNED; - for (ptr = (rt_uint8_t *)small_mem->lfree - small_mem->heap_ptr; ptr <= small_mem->mem_size_aligned - size; ptr = ((struct rt_small_mem_item *)&small_mem->heap_ptr[ptr])->next)
net/lwip: na message handler handling na messages with exception control according to RFC 4861
@@ -309,23 +309,36 @@ void nd6_input(struct pbuf *p, struct netif *inp) nd6_send_q(i); } } else { + s32_t nd6_oflag = ND6H_NA_FLAG(na_hdr) & ND6_FLAG_OVERRIDE; + s32_t nd6_sflag = ND6H_NA_FLAG(na_hdr) & ND6_FLAG_SOLICITED; + s32_t nd6_rflag = ND6H_NA_FLAG(na_hdr) & ND6_FLAG_ROUTER; + s32_t lladdr_diff = 0; + if (lladdr_opt) { - if (memcmp(neighbor_cache[i].lladdr, ND6H_LLADDR_OPT_ADDR(lladdr_opt), inp->hwaddr_len) != 0) { - /* update the neighbor cache lladdr */ - MEMCPY(neighbor_cache[i].lladdr, ND6H_LLADDR_OPT_ADDR(lladdr_opt), inp->hwaddr_len); + lladdr_diff = memcmp(neighbor_cache[i].lladdr, ND6H_LLADDR_OPT_ADDR(lladdr_opt), inp->hwaddr_len); + } - if ((ND6H_NA_FLAG(na_hdr) & ND6_FLAG_SOLICITED) == 0) { + if (nd6_oflag == 0 && lladdr_diff != 0) { + /* O flag is clear and lladdr is different between TLLA and cache entry */ + if (neighbor_cache[i].state == ND6_REACHABLE) { + /* State is REACHABLE */ neighbor_cache[i].state = ND6_STALE; } + } else { + if (lladdr_diff != 0) { + MEMCPY(neighbor_cache[i].lladdr, ND6H_LLADDR_OPT_ADDR(lladdr_opt), inp->hwaddr_len); + + if (nd6_sflag == 0) { + neighbor_cache[i].state = ND6_STALE; } } - if ((ND6H_NA_FLAG(na_hdr) & ND6_FLAG_SOLICITED)) { + if (nd6_sflag) { neighbor_cache[i].state = ND6_REACHABLE; neighbor_cache[i].counter.reachable_time = reachable_time; } - if ((ND6H_NA_FLAG(na_hdr) & ND6_FLAG_ROUTER)) { + if (nd6_rflag) { neighbor_cache[i].isrouter = 1; } else { /* RFC 7.2.5 @@ -360,6 +373,7 @@ void nd6_input(struct pbuf *p, struct netif *inp) } } } + } break; /* ICMP6_TYPE_NA */ }
Update EthereumConstants.cs Start of integration of ETHOne And PinkChain
@@ -46,12 +46,24 @@ public class CallistoConstants public const decimal TreasuryPercent = 50m; } +public class EthOneConstants +{ + public const decimal BaseRewardInitial = 2.0m; +} + +public class PinkConstants +{ + public const decimal BaseRewardInitial = 1.0m; +} + public enum EthereumNetworkType { Main = 1, Ropsten = 3, Callisto = 820, MainPow = 10001, + EtherOne = 4949, + Pink = 10100, Unknown = -1, } @@ -62,6 +74,8 @@ public enum GethChainType Ropsten, Callisto, MainPow = 10001, + EtherOne = 4949, + Pink = 10100, Unknown = -1, }
Allow CMake build to work with git submodules If a parent repo adds s2n as a submodule, then CMAKE_SOURCE_DIR contains the directory of the parent repo, not the s2n directory. We instead want the directory that contains the current CMAKELists.txt file, which will be present in the CMAKE_CURRENT_LIST_DIR env variable.
@@ -115,8 +115,8 @@ else() enable_language(ASM) try_compile(PQ_ASM_COMPILES ${CMAKE_BINARY_DIR} SOURCES - "${CMAKE_SOURCE_DIR}/tests/unit/s2n_pq_asm_noop_test.c" - "${CMAKE_SOURCE_DIR}/pq-crypto/sike_r2/fp_x64_asm.S") + "${CMAKE_CURRENT_LIST_DIR}/tests/unit/s2n_pq_asm_noop_test.c" + "${CMAKE_CURRENT_LIST_DIR}/pq-crypto/sike_r2/fp_x64_asm.S") if(PQ_ASM_COMPILES) message(STATUS "PQ ASM try_compile succeeded - using optimized x86_64 assembly for PQ crypto") file(GLOB PQ_X86_64_ASM "pq-crypto/sike_r2/fp_x64_asm.S")
updates %eyre to get domains from jael so that galaxies automatically get ACME certificates
== == $: $g :: to %gall $% {$deal p/sock q/cush:gall} :: full transmission + == == :: + $: %j :: to %jael + $% [%turf ~] :: view domains == == == :: ++ sign :: in result $<- $% $: $a :: by %ames $: $f $% [%made date=@da result=made-result:ford] :: == == + $: %j :: from %jael + $% [%turf turf=(list turf)] :: bind to domains + == == :: $: @tas :: by any $% {$crud p/@tas q/(list tank)} :: == == == :: ?- -.kyz $born :: XX capture IPs too - =/ mod/(set (list @t)) - %- ~(gas in *(set (list @t))) + :: XX continue to support turf in %born? (currently unused) + :: + =/ mod/(set turf) + %- ~(gas in *(set turf)) %+ turn (skim p.kyz |=(a=host ?=(%& -.a))) |=(a=host ?>(?=(%& -.a) p.a)) =? mow ?=(^ dif) =/ cmd [%acme %poke `cage`[%acme-order !>(dom)]] :_(mow [hen %pass /acme/order %g %deal [our our] cmd]) + =? mow ?=(%czar (clan:title our)) + :_(mow [hen %pass / %j %turf ~]) %= +>.$ ged hen :: register external mow :_(mow [hen [%give %form fig]]) +>.$(mow :_(mow [ged [%give %form fig]])) :: $turf - =/ mod/(set (list @t)) + =/ mod/(set turf) ?: ?=(%put p.p.kyz) (~(put in dom) q.p.kyz) (~(del in dom) q.p.kyz) :: $init :: register ownership =. our ?~(hov p.kyz (min u.hov p.kyz)) - =. fig [~ ?=(%king (clan:title our)) & &] - +>.$(hov [~ our], top [[our %home ud+0] /web]) + %= +>.$ + fig [~ ?=(%king (clan:title our)) & &] + hov [~ our] + top [[our %home ud+0] /web] + == :: ?($chis $this) :: inbound request %- emule |. ^+ ..apex $hi (cast-thou q.tee httr+!>(p.sih)) $se (get-thou:(dom-vi q.tee) p.tee p.sih) == + :: + $turf + ?. ?=(%czar (clan:title our)) + ~& %strange-turf + +>.$ + =/ mod/(set turf) + %- ~(gas in dom) + %+ turn turf.sih + |=(a=turf (weld a /(crip +:(scow %p our)))) + ?: =(dom mod) + +>.$ + =/ cmd [%acme %poke `cage`[%acme-order !>(mod)]] + %= +>.$ + dom mod + mow :_(mow [hen %pass /acme/order %g %deal [our our] cmd]) + == :: $unto :: app response ?> ?=({$of @ ^} tee)
drivers/telnet: Return the partial sent bytes in telnet_write
@@ -926,7 +926,7 @@ static ssize_t telnet_write(FAR struct file *filep, FAR const char *buffer, { nerr("ERROR: psock_send failed '%s': %zd\n", priv->td_txbuffer, ret); - return ret; + goto out; } /* Reset the index to the beginning of the TX buffer. */ @@ -944,7 +944,7 @@ static ssize_t telnet_write(FAR struct file *filep, FAR const char *buffer, { nerr("ERROR: psock_send failed '%s': %zd\n", priv->td_txbuffer, ret); - return ret; + goto out; } } @@ -954,7 +954,8 @@ static ssize_t telnet_write(FAR struct file *filep, FAR const char *buffer, * some logic if you report that you sent more than you were requested to. */ - return len; +out: + return nsent ? nsent : ret; } /****************************************************************************
android: update emulator startup
@@ -437,7 +437,7 @@ def run_emulator(options = {}) puts cmd start_emulator(cmd) - cmd_start_emu = "#{$adb} -e wait-for-device shell getprop sys.boot_completed" + cmd_start_emu = "#{$adb} -e wait-for-device" puts cmd_start_emu raise "Android emulator failed to start." unless system(cmd_start_emu) @@ -447,16 +447,11 @@ def run_emulator(options = {}) while (Time.now - startedWaiting < 600 ) sleep 5 now = Time.now - started = false - booted = true - Jake.run2 $adb, ["-e", "shell", "ps"], :system => false, :hideerrors => false do |line| - #puts line - booted = false if line =~ /bootanimation/ - started = true if line =~ /android\.process\.acore/ - true - end - #puts "started: #{started}, booted: #{booted}" - unless started and booted + booted = false + + booted = `#{$adb} -e shell getprop sys.boot_completed` =~ /1/ + + unless booted printf("%.2fs: ",(now - startedWaiting)) if (now - startedWaiting) > (180 * adbRestarts) # Restart the adb server every 60 seconds to prevent eternal waiting
decisions: clarify relations
@@ -81,10 +81,12 @@ This can be: ## Related Decisions This section has links to other decisions with description what the relation is. +One-side relations are allowed, not every decision must link back. Decisions that give constraints must be listed in "Constraints" above. > Note: > Sometimes the best solution is only understood if the relation between decisions becomes clear. +> Make sure that everything that requires updates to a decision, is listed as "Constraints" or "Assumptions". ## Notes
Work around POWER8BE bugs on FreeBSD (ELFv2) for
@@ -232,3 +232,11 @@ QCABS_KERNEL = ../generic/cabs.c #Dump kernel CGEMM3MKERNEL = ../generic/zgemm3mkernel_dump.c ZGEMM3MKERNEL = ../generic/zgemm3mkernel_dump.c + +ifeq ($(__BYTE_ORDER__),__ORDER_BIG_ENDIAN__) +IDAMAXKERNEL = ../arm/iamax.c +IDAMINKERNEL = ../arm/iamin.c +IZAMAXKERNEL = ../arm/izamax.c +IZAMINKERNEL = ../arm/izamin.c +endif +
prevent closing console right after process error in windows
@@ -319,5 +319,11 @@ int main(int argc, char *argv[]) { avformat_network_deinit(); // ignore failure +#if defined (__WINDOWS__) && ! defined (WINDOWS_NOCONSOLE) + if (res != 0) { + fprintf(stderr, "Press any key to continue...\n"); + getchar(); + } +#endif return res; }
correct usage message in dfilemaker Give the user correct guidance about the relationship between ntotal and nlevels.
@@ -585,7 +585,8 @@ int main(int narg, char** arg) *----------------------------------------------*/ if (narg < 4) { if (rank == 0) { - printf("Usage: dfilemaker <nitems> <nlevels> <maxflen> [-i seed]\n"); + printf("Usage: dfilemaker <ntotal> <nlevels> <maxflen> [-i seed]\n"); + printf(" where ntotal > (levels * (nlevels + 1) /2)\n"); } MPI_Finalize(); exit(0); @@ -609,7 +610,7 @@ int main(int narg, char** arg) nfiles[0] = ntotal / nsum; if (nfiles[0] < 1) { if (rank == 0) { - printf("nfiles must be greater than nlevels\n"); + printf("ntotal must be greater than (levels * (nlevels + 1) /2)\n"); } MPI_Finalize(); exit(0);
collapse unused "nex"
pig [~(uni ry ryt n.pig) l.pig r.pig] ?: (gor -.ryt -.n.pig) - =+ nex=$(pig l.pig) - =. l.pig nex + =. l.pig $(pig l.pig) ?> ?=(^ l.pig) ?: (vor -.n.pig -.n.l.pig) [n.pig l.pig r.pig] [n.l.pig l.l.pig [n.pig r.l.pig r.pig]] - =+ nex=$(pig r.pig) - =. r.pig nex + =. r.pig $(pig r.pig) ?> ?=(^ r.pig) ?: (vor -.n.pig -.n.r.pig) [n.pig l.pig r.pig]
chat: cap maximum backlog size at 1000 Caps maximum unread backlog that chat will fetch at 1000 messages.
@@ -22,6 +22,7 @@ function getNumPending(props) { const ACTIVITY_TIMEOUT = 60000; // a minute const DEFAULT_BACKLOG_SIZE = 300; +const MAX_BACKLOG_SIZE = 1000; function scrollIsAtTop(container) { if ((navigator.userAgent.includes("Safari") && @@ -136,14 +137,15 @@ export class ChatScreen extends Component { const unread = props.length - props.read; const unreadUnloaded = unread - props.envelopes.length; + const excessUnread = unreadUnloaded > MAX_BACKLOG_SIZE; - if(unreadUnloaded + 20 > DEFAULT_BACKLOG_SIZE) { + if(!excessUnread && unreadUnloaded + 20 > DEFAULT_BACKLOG_SIZE) { this.askForMessages(unreadUnloaded + 20); } else { this.askForMessages(DEFAULT_BACKLOG_SIZE); } - if(props.read === props.length){ + if(excessUnread || props.read === props.length){ this.scrolledToMarker = true; this.setState( {
set default oversampling to 1.
@@ -101,7 +101,7 @@ int main_moba(int argc, char* argv[argc]) }; float restrict_fov = -1.; - float oversampling = 1.25f; + float oversampling = 1.f; float scale_fB0[2] = { 222., 1. }; // { spatial smoothness, scaling }
Brief documentation added in USERS-GUIDE for No MSD builds support.
@@ -39,3 +39,7 @@ You can debug with any IDE that supports the CMSIS-DAP protocol. Some tools capa ## Firmware update To update the firmware on a device, hold the reset button while attaching USB. The device boots into bootloader mode. From there, copy the appropriate firmware onto the drive. If successful, the device leaves bootloader mode and starts running the new firmware. Otherwise, the bootloader displays `FAIL.TXT` with an explanation of what went wrong. + +## No MSD builds + +MSD or drag-and-drop support is automatically detected and enabled when the target flash algorithm is in the DAPLink build. But there are builds that does not have a particular target and can retarget any families which have DAPLink support by using a debugger or pyocd without the MSD DAPLink drive. The script `tools/post_build_script.py` can take a board id, family id, flm elf or axf file as flash algo bin and bind it to a DAPLink binary build. The ram boundaries also needed to be specified as parameters. This is useful in all-family builds which has no board target originally but can target all existing families and retarget a particular target. The DAPLink MSD drive will be automatically enabled when there is a flash algoritm embedded in the binary file. The reverse use case of disabling the MSD even with a target support can also be done, please see `docs/MSD_COMMANDS.md` for details.
toml: mark unused variable
@@ -54,7 +54,7 @@ static bool isLeapYear (int year); TypeChecker * createTypeChecker (void) { - int result = 0; + int result ELEKTRA_UNUSED = 0; TypeChecker * typeChecker = (TypeChecker *) elektraCalloc (sizeof (TypeChecker)); if (typeChecker == NULL) {
Added comment block indicating where code can be added to get OE info on other platforms
@@ -439,6 +439,10 @@ static void acvp_http_user_agent_handler(ACVP_CTX *ctx, char *agent_string) { acvp_http_user_agent_check_compiler_ver(ctx, comp); #else + /******************************************************* + * Code for getting OE information on platforms that * + * are not Windows, Linux, or Mac OS can be added here * + *******************************************************/ acvp_http_user_agent_check_env_for_var(ctx, osname, ACVP_USER_AGENT_OSNAME); acvp_http_user_agent_check_env_for_var(ctx, osver, ACVP_USER_AGENT_OSVER); acvp_http_user_agent_check_env_for_var(ctx, arch, ACVP_USER_AGENT_ARCH);
free fix for test_query.c
@@ -104,7 +104,7 @@ query_test(const char * raw_query, int exp_error, struct expected exp[], int fla return -1; } - evhtp_safe_free(evhtp_query_free, query); + evhtp_safe_free(query, evhtp_query_free); return num_errors; } /* query_test */
CMake: rename list
# nor does it submit to any jurisdiction. # -list( APPEND grib_tools_sources +list( APPEND ecc_tools_sources grib_tools.c grib_options.c grib_tools.h ) if( EC_OS_NAME MATCHES "windows" ) - list( APPEND grib_tools_sources wingetopt.c ) + list( APPEND ecc_tools_sources wingetopt.c ) endif() # tools library -ecbuild_add_library( TARGET grib_tools +ecbuild_add_library( TARGET ecc_tools TYPE STATIC NOINSTALL - SOURCES ${grib_tools_sources} + SOURCES ${ecc_tools_sources} PRIVATE_LIBS eccodes ) # tools binaries @@ -50,7 +50,7 @@ foreach( tool ${ecc_tools_binaries} ) # here we use the fact that each tool has only one C file that matches its name ecbuild_add_executable( TARGET ${tool} SOURCES ${tool}.c - LIBS grib_tools ) + LIBS ecc_tools ) endforeach() # Install extra tools @@ -59,35 +59,35 @@ foreach( tool ${ecc_tools_binaries_extra} ) ecbuild_add_executable( TARGET ${tool} SOURCES ${tool}.c CONDITION ECCODES_INSTALL_EXTRA_TOOLS - LIBS grib_tools ) + LIBS ecc_tools ) endforeach() # grib_count/bufr_count etc. Same source code, different executable names ecbuild_add_executable( TARGET grib_count SOURCES codes_count.c - LIBS grib_tools ) + LIBS ecc_tools ) ecbuild_add_executable( TARGET bufr_count SOURCES codes_count.c - LIBS grib_tools ) + LIBS ecc_tools ) ecbuild_add_executable( TARGET gts_count SOURCES codes_count.c - LIBS grib_tools ) + LIBS ecc_tools ) # grib to netcdf is optional ecbuild_add_executable( TARGET grib_to_netcdf SOURCES grib_to_netcdf.c CONDITION HAVE_NETCDF - LIBS grib_tools NetCDF::NetCDF_C ) + LIBS ecc_tools NetCDF::NetCDF_C ) ecbuild_add_executable( TARGET grib_list_keys SOURCES list_keys.c CONDITION ECCODES_INSTALL_EXTRA_TOOLS - LIBS grib_tools ) + LIBS ecc_tools ) ecbuild_add_executable( TARGET codes_bufr_filter SOURCES bufr_filter.c - LIBS grib_tools ) + LIBS ecc_tools ) # grib1to2 script needs to be generated before installation
SOVERSION bump to version 2.19.3
@@ -66,7 +66,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 19) -set(LIBYANG_MICRO_SOVERSION 2) +set(LIBYANG_MICRO_SOVERSION 3) set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG_MINOR_SOVERSION}.${LIBYANG_MICRO_SOVERSION}) set(LIBYANG_SOVERSION ${LIBYANG_MAJOR_SOVERSION})
sleep_ms should have some surplus as it must not sleep less than the argument
@@ -570,7 +570,8 @@ void mrbc_sleep_ms(mrbc_tcb *tcb, uint32_t ms) tcb->timeslice = 0; tcb->state = TASKSTATE_WAITING; tcb->reason = TASKREASON_SLEEP; - tcb->wakeup_tick = tick_ + (ms / MRBC_TICK_UNIT); + tcb->wakeup_tick = tick_ + (ms / MRBC_TICK_UNIT) + 1; + if( ms % MRBC_TICK_UNIT ) tcb->wakeup_tick++; q_insert_task(tcb); hal_enable_irq();
f_ka can also be None
@@ -535,9 +535,9 @@ def halomod_power_spectrum(cosmo, hmc, k, a, prof, elif not isinstance(prof_2pt, Profile2pt): raise TypeError("prof_2pt must be of type " "`Profile2pt` or `None`") - if not hasattr(f_ka, "__call__"): + if f_ka is not None and not hasattr(f_ka, "__call__"): raise TypeError("f_ka must be a function with " - "signature `k`, `a`, `cosmo`") + "signature `k, a, cosmo` or `None`") # Power spectrum if isinstance(p_of_k_a, Pk2D): def pkf(sf):
Stylecheck for plgo/pkg/balancer/
@@ -523,8 +523,6 @@ migrations: - a.yandex-team.ru/strm/gorshok/pkg/server - a.yandex-team.ru/strm/plgo/pkg/algorithm - a.yandex-team.ru/strm/plgo/pkg/algorithm_test - - a.yandex-team.ru/strm/plgo/pkg/balancer - - a.yandex-team.ru/strm/plgo/pkg/balancer_test - a.yandex-team.ru/strm/plgo/pkg/channel - a.yandex-team.ru/strm/plgo/pkg/channel_test - a.yandex-team.ru/strm/plgo/pkg/common
Fixed the order in which lowdowns get sent: %tales should always go first.
::x brings reader new up to date. :: |= new/bone - =. +> %- ra-emit + =. +> %- ra-emil :~ :* new %diff %talk-lowdown %tales %- ~(gas in *(map knot (unit config))) %+ turn (~(tap by stories)) |=({a/knot b/story} [a `shape.b]) == - =. +> %- ra-emil :~ [new %diff %talk-lowdown %glyph nak] [new %diff %talk-lowdown %names (~(run by folks) some)] == ::x partners we gained/lost, and send out an updated cabal report. :: |= cof/config + =. +>.$ (pa-inform %tales (strap man `cof)) =+ ^= dif ^- (pair (list partner) (list partner)) =+ old=`(list partner)`(~(tap in sources.shape) ~) =+ new=`(list partner)`(~(tap in sources.cof) ~) =. +>.$ (pa-acquire p.dif) =. +>.$ (pa-abjure q.dif) =. shape cof - =. +>.$ (pa-inform %tales (strap man `cof)) (pa-report-cabal pa-followers) :: ++ pa-cancel :: unsubscribe from
doc: limit search engines scan on older content Update robots.txt to exclude older documentation versions: 0.? 1.? and 2.0 through 2.4
User-agent: * Allow: / -Disallow: /0.1/ -Disallow: /0.2/ -Disallow: /0.3/ -Disallow: /0.4/ -Disallow: /0.5/ -Disallow: /0.6/ -Disallow: /0.7/ -Disallow: /0.8/ -Disallow: /1.0/ -Disallow: /1.1/ -Disallow: /1.2/ -Disallow: /1.3/ -Disallow: /1.4/ -Disallow: /1.5/ +Disallow: /0.?/ +Disallow: /1.?/ +Disallow: /2.0/ +Disallow: /2.1/ +Disallow: /2.2/ +Disallow: /2.3/ +Disallow: /2.4/
Add loop termination to TZ grid search Terminates the grid search if no better motion vector was found in the last three iterations.
@@ -634,8 +634,13 @@ static void tz_search(inter_search_info_t *info, vector2d_t extra_mv) vector2d_t start = { info->best_mv.x >> 2, info->best_mv.y >> 2 }; //step 2, grid search + int rounds_without_improvement = 0; for (int iDist = 1; iDist <= iSearchRange; iDist *= 2) { kvz_tz_pattern_search(info, step2_type, iDist, start, &best_dist); + + // Break the loop if the last three rounds didn't produce a better MV. + if (best_dist != iDist) rounds_without_improvement++; + if (rounds_without_improvement >= 3) break; } //step 3, raster scan
YIN parser BUGFIX yang-version is not a mandatory statement
@@ -3329,7 +3329,7 @@ yin_parse_mod(struct yin_parser_ctx *ctx, struct yin_arg_record *mod_attrs, cons LY_STMT_RPC, &mod->rpcs, 0, LY_STMT_TYPEDEF, &mod->typedefs, 0, LY_STMT_USES, &mod->data, 0, - LY_STMT_YANG_VERSION, &mod->mod->version, YIN_SUBELEM_MANDATORY | YIN_SUBELEM_UNIQUE, + LY_STMT_YANG_VERSION, &mod->mod->version, YIN_SUBELEM_UNIQUE, LY_STMT_EXTENSION_INSTANCE, NULL, 0 )); @@ -3372,7 +3372,7 @@ yin_parse_submod(struct yin_parser_ctx *ctx, struct yin_arg_record *mod_attrs, c LY_STMT_RPC, &submod->rpcs, 0, LY_STMT_TYPEDEF, &submod->typedefs, 0, LY_STMT_USES, &submod->data, 0, - LY_STMT_YANG_VERSION, &submod->version, YIN_SUBELEM_MANDATORY | YIN_SUBELEM_UNIQUE, + LY_STMT_YANG_VERSION, &submod->version, YIN_SUBELEM_UNIQUE, LY_STMT_EXTENSION_INSTANCE, NULL, 0 ));
stm32/adc: Use IS_CHANNEL_INTERNAL macro to check for internal channels.
@@ -329,9 +329,7 @@ STATIC void adc_config_channel(ADC_HandleTypeDef *adc_handle, uint32_t channel) #elif defined(STM32F4) || defined(STM32F7) sConfig.SamplingTime = ADC_SAMPLETIME_15CYCLES; #elif defined(STM32H7) - if (channel == ADC_CHANNEL_VREFINT - || channel == ADC_CHANNEL_TEMPSENSOR - || channel == ADC_CHANNEL_VBAT) { + if (__HAL_ADC_IS_CHANNEL_INTERNAL(channel)) { sConfig.SamplingTime = ADC_SAMPLETIME_387CYCLES_5; } else { sConfig.SamplingTime = ADC_SAMPLETIME_8CYCLES_5; @@ -341,9 +339,7 @@ STATIC void adc_config_channel(ADC_HandleTypeDef *adc_handle, uint32_t channel) sConfig.OffsetRightShift = DISABLE; sConfig.OffsetSignedSaturation = DISABLE; #elif defined(STM32L4) - if (channel == ADC_CHANNEL_VREFINT - || channel == ADC_CHANNEL_TEMPSENSOR - || channel == ADC_CHANNEL_VBAT) { + if (__HAL_ADC_IS_CHANNEL_INTERNAL(channel)) { sConfig.SamplingTime = ADC_SAMPLETIME_247CYCLES_5; } else { sConfig.SamplingTime = ADC_SAMPLETIME_12CYCLES_5;
show a 'verified' status in my-node tab so people know their daemon start worked.
@@ -345,7 +345,11 @@ void FortunastakeManager::updateNodeList() if (mn.IsActive(pindexBest)) { nstatus = QString::fromStdString("Active for payment"); } else if (mn.status == "OK") { + if (mn.lastDseep > 0) { + nstatus = QString::fromStdString("Verified"); + } else { nstatus = QString::fromStdString("Registered"); + } } else { nstatus = QString::fromStdString(mn.status); }
mm/shm: Fix ARCH_SHM_VEND The last address is base+size-1
# define ARCH_SHM_MAXPAGES (CONFIG_ARCH_SHM_NPAGES * CONFIG_ARCH_SHM_MAXREGIONS) # define ARCH_SHM_REGIONSIZE (CONFIG_ARCH_SHM_NPAGES * CONFIG_MM_PGSIZE) # define ARCH_SHM_SIZE (CONFIG_ARCH_SHM_MAXREGIONS * ARCH_SHM_REGIONSIZE) -# define ARCH_SHM_VEND (CONFIG_ARCH_SHM_VBASE + ARCH_SHM_SIZE) +# define ARCH_SHM_VEND (CONFIG_ARCH_SHM_VBASE + ARCH_SHM_SIZE - 1) # define ARCH_SCRATCH_VBASE ARCH_SHM_VEND #else
VERSION bump to version 0.8.44
@@ -28,7 +28,7 @@ set(CMAKE_C_FLAGS_DEBUG "-g -O0") # set version set(LIBNETCONF2_MAJOR_VERSION 0) set(LIBNETCONF2_MINOR_VERSION 8) -set(LIBNETCONF2_MICRO_VERSION 43) +set(LIBNETCONF2_MICRO_VERSION 44) set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION}.${LIBNETCONF2_MICRO_VERSION}) set(LIBNETCONF2_SOVERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION})
Add doxygen docs for x and y parameters
@@ -72,7 +72,7 @@ extern "C" { * \brief Get minimal value between `x` and `y` inputs * \param[in] x: First input to test * \param[in] y: Second input to test - * \return Minimal value between x and y parameters + * \return Minimal value between `x` and `y` parameters * \hideinitializer */ #define ESP_MIN(x, y) ((x) < (y) ? (x) : (y))
Fix perf_submit() calls with array data crashing libbcc A perf_submit() call like: unsigned char buf[16] = ...; output.perf_submit(ctx, buf, sizeof(buf)); Passes a non-pointer arg1, so getPointeeType().getTypePtr() is invalid, and crashes libbcc. Use getTypePtrOrNull() instead to avoid it.
@@ -925,8 +925,8 @@ bool BTypeVisitor::VisitCallExpr(CallExpr *Call) { // events.perf_submit(ctx, &data, sizeof(data)); // ... // &data -> data -> typeof(data) -> data_t - auto type_arg1 = Call->getArg(1)->IgnoreCasts()->getType().getTypePtr()->getPointeeType().getTypePtr(); - if (type_arg1->isStructureType()) { + auto type_arg1 = Call->getArg(1)->IgnoreCasts()->getType().getTypePtr()->getPointeeType().getTypePtrOrNull(); + if (type_arg1 && type_arg1->isStructureType()) { auto event_type = type_arg1->getAsTagDecl(); const auto *r = dyn_cast<RecordDecl>(event_type); std::vector<std::string> perf_event;
nat: fix byte order of vrf_id in logging Type: fix
@@ -658,6 +658,7 @@ nat_ipfix_logging_nat44_ses (u32 thread_index, u8 nat_event, u32 src_ip, clib_memcpy_fast (b0->data + offset, &nat_src_port, sizeof (nat_src_port)); offset += sizeof (nat_src_port); + vrf_id = clib_host_to_net_u32 (vrf_id); clib_memcpy_fast (b0->data + offset, &vrf_id, sizeof (vrf_id)); offset += sizeof (vrf_id); @@ -1111,6 +1112,7 @@ nat_ipfix_logging_nat64_bibe (u32 thread_index, u8 nat_event, clib_memcpy_fast (b0->data + offset, &nat_src_port, sizeof (nat_src_port)); offset += sizeof (nat_src_port); + vrf_id = clib_host_to_net_u32 (vrf_id); clib_memcpy_fast (b0->data + offset, &vrf_id, sizeof (vrf_id)); offset += sizeof (vrf_id); @@ -1226,6 +1228,7 @@ nat_ipfix_logging_nat64_ses (u32 thread_index, u8 nat_event, clib_memcpy_fast (b0->data + offset, &nat_dst_port, sizeof (nat_dst_port)); offset += sizeof (nat_dst_port); + vrf_id = clib_host_to_net_u32 (vrf_id); clib_memcpy_fast (b0->data + offset, &vrf_id, sizeof (vrf_id)); offset += sizeof (vrf_id);
Update building-with-vcpkg.md Fix usage instructions
@@ -21,7 +21,7 @@ See instructions below to build the SDK with additional Microsoft-proprietary mo ``` cit clone --recurse-submodules https://github.com/microsoft/cpp_client_telemetry cd cpp_client_telemetry -vcpkg install --head --overlay-ports=%CD%\tools\ports +vcpkg install --head --overlay-ports=%CD%\tools\ports mstelemetry ``` ## POSIX (Linux and Mac) build with submodules @@ -31,7 +31,7 @@ Shell commands: ``` cit clone --recurse-submodules https://github.com/microsoft/cpp_client_telemetry cd cpp_client_telemetry -vcpkg install --head --overlay-ports=`pwd`/tools/ports +vcpkg install --head --overlay-ports=`pwd`/tools/ports mstelemetry ``` ## Using response files to specify dependencies
doc: document ignored gcc errors
+## Ignored compiler errors + +### GCC +- Ignoring some "maybe-uninitialized" upstream errors from libstdc++ 12.x.x in commit bd1543a1b98fb988f01bedcc266b35b5c4d6240f + ## disabled tests src/plugins/lua/CMakeLists.txt for APPLE
naive: working spawn tests
|= cur-event=event ^- ? ?+ tx-type.cur-event %.n %transfer-point %.y - %set-transfer-proxy %.y :: TODO: double check this + %set-transfer-proxy %.n == -- :: +star-check ++ planet-check %detach %.n %set-management-proxy %.y %set-spawn-proxy %.n - %set-transfer-proxy %.n + %set-transfer-proxy %.y == ++ managep-check |= cur-event=event ^- ? (cury filter-owner %.y) (cury filter-proxy %own) (cury filter-nonce %.y) - :: (cury filter-dominion %l1) + ::(cury filter-rank %star) + ::(cury filter-dominion %l2) %- cury :- filter-tx-type - :* :: %spawn :: currently crashes + :* %spawn :: currently crashes ::%transfer-point ::%configure-keys %set-management-proxy - %set-spawn-proxy - ::%set-transfer-proxy + ::%set-spawn-proxy + %set-transfer-proxy ~ == == :: =/ state initial-state =/ expect-state initial-state + |^ %+ expect-eq !> |^ ?. (~(got by suc-map) cur-event) - =/ new-nonce cur-point(nonce.owner.own +(cur-nonce)) - %= expect-state - points (~(put by points.expect-state) cur-ship new-nonce) - == + (alter-state cur-point(nonce.owner.own +(cur-nonce))) ?+ tx-type.cur-event !! %transfer-point set-xfer %configure-keys set-keys %set-management-proxy set-mgmt-proxy %set-spawn-proxy set-spwn-proxy %set-transfer-proxy set-xfer-proxy + %spawn (new-point which-spawn) == :: ++ set-keys ^- ^state:naive == (alter-state new-xfer) :: + ++ new-point + :: TODO clean up this horrifying gate + |= =ship ^- ^state:naive + =| new-point=point:naive + =/ spawned + %= new-point + dominion %l2 + address.owner.own (addr (~(got by default-own-keys) cur-ship)) + address.transfer-proxy.own (addr %spawn-test) + sponsor.net [has=%.y who=cur-ship] + == + =/ new-nonce + %= cur-point + nonce.owner.own +(cur-nonce) + == + =/ new-spawn=^state:naive + %= expect-state + points (~(put by points.expect-state) ship spawned) + == + %= new-spawn + points (~(put by points.new-spawn) cur-ship new-nonce) + == + :: ++ alter-state - |= new-point=point:naive + |= new-point=point:naive ^- ^state:naive %= expect-state points (~(put by points.expect-state) cur-ship new-point) == :: -- :: +def-args :: + -- :: end of actual state + :: ++ which-spawn ^- ship ?+ cur-ship !! %~rut ~hasrut %~disryt-nolpet ~tapfur-fitsep == :: - -- :: end of actual state + -- :: end of +expect-eq :: ++ test-marbud-l2-change-keys-new ^- tang =/ new-keys [%configure-keys encr auth suit |]
[dpos] fix index out of range
@@ -340,6 +340,9 @@ func (bs *bootLoader) load() { if err := bs.loadPLIB(&bs.plib); err == nil { logger.Debug().Int("len", len(bs.plib)).Msg("pre-LIB loaded from DB") for id, p := range bs.plib { + if len(p) == 0 { + continue + } logger.Debug(). Str("BPID", id).Str("block hash", p[len(p)-1].BlockHash). Msg("pre-LIB entry")
Verify that the Record Layer Protocol Major Version is between 2 and 3
@@ -72,6 +72,15 @@ int s2n_record_header_parse(struct s2n_connection *conn, uint8_t * content_type, uint8_t version = (protocol_version[0] * 10) + protocol_version[1]; + uint8_t tls_major_version = protocol_version[0]; + /* TLS servers compliant with this specification MUST accept any value {03,XX} as the record layer version number + * for ClientHello. + * + * https://tools.ietf.org/html/rfc5246#appendix-E.1 */ + if(tls_major_version < 2 || 3 < tls_major_version) { + S2N_ERROR(S2N_ERR_BAD_MESSAGE); + } + if (conn->actual_protocol_version_established && conn->actual_protocol_version != version) { S2N_ERROR(S2N_ERR_BAD_MESSAGE); }
Convert our own check of OPENSSL_NO_DEPRECATED ... to the check OPENSSL_API_COMPAT < 0x10100000L, to correspond with how it's declared.
@@ -18,7 +18,7 @@ void ENGINE_load_builtin_engines(void) OPENSSL_init_crypto(OPENSSL_INIT_ENGINE_ALL_BUILTIN, NULL); } -#if (defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)) && !defined(OPENSSL_NO_DEPRECATED) +#if (defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)) && OPENSSL_API_COMPAT < 0x10100000L void ENGINE_setup_bsd_cryptodev(void) { }
Fixed case issue
@@ -12,7 +12,7 @@ namespace Demo { static void Main(string[] args) { - LibSurViveAPI api = LibSurViveAPI.instance; + LibSurViveAPI api = LibSurViveAPI.Instance; var so = api.GetSurviveObjectByName("HMD");
[catboost] Add test for r5029047 Note: mandatory check (NEED_CHECK) was skipped
@@ -4296,6 +4296,17 @@ def test_eval_features(task_type, eval_type, problem): return canonical_files +def test_metric_period_with_vertbose_true(): + pool = Pool(TRAIN_FILE, column_description=CD_FILE) + model = CatBoost(dict(iterations=16, metric_period=4)) + + tmpfile = test_output_path('tmpfile') + with LogStdout(open(tmpfile, 'w')): + model.fit(pool, verbose=True) + + assert(_count_lines(tmpfile) == 5) + + def test_eval_features_with_file_header(): learn_params = { 'iterations': 20,
[Fix] shiftmask calculation
@@ -491,7 +491,7 @@ void Robus_ShiftMaskCalculation(uint16_t ID, uint16_t ServiceNumber) // Shift byte byte Mask of bit address uint16_t tempo = 0; - ctx.ShiftMask = ID / 8; // aligned to byte + ctx.ShiftMask = (ID - 1) / 8; // aligned to byte // create a mask of bit corresponding to ID number in the node for (uint16_t i = 0; i < ServiceNumber; i++)
Update CMakeLists.txt Fix definitions for rk3326
@@ -51,8 +51,8 @@ endif() if(RK3326) add_definitions(-DRK3326) - add_definitions(-marm -mcpu=cortex-a35 -mfpu=neon-vfpv3 -march=armv8-a+crc+simd+crypto -mfloat-abi=hard) - set(CMAKE_ASM_FLAGS "-marm -mcpu=cortex-a35 -mfpu=neon-vfpv3 -march=armv8-a+crc+simd+crypto -mfloat-abi=hard") + add_definitions(-pipe -march=armv8-a+crc+simd+crypto -mcpu=cortex-a35+crypto) + set(CMAKE_ASM_FLAGS "-pipe -march=armv8-a+crc+simd+crypto -mcpu=cortex-a35+crypto") endif() if(RK3399)
tests: replace orphaned variable subs.
@@ -35,25 +35,25 @@ if(OPAE_ENABLE_MOCK) add_custom_command(TARGET fpga_db POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy - ${OPAE_TEST_ROOT}/framework/mock_sys_tmp-1socket-nlb0.tar.gz + ${CMAKE_CURRENT_SOURCE_DIR}/mock_sys_tmp-1socket-nlb0.tar.gz ${CMAKE_BINARY_DIR} COMMAND ${CMAKE_COMMAND} -E copy - ${OPAE_TEST_ROOT}/framework/mock_sys_tmp-1socket-nlb0-vf.tar.gz + ${CMAKE_CURRENT_SOURCE_DIR}/mock_sys_tmp-1socket-nlb0-vf.tar.gz ${CMAKE_BINARY_DIR} COMMAND ${CMAKE_COMMAND} -E copy - ${OPAE_TEST_ROOT}/framework/mock_sys_tmp-dcp-rc-nlb3.tar.gz + ${CMAKE_CURRENT_SOURCE_DIR}/mock_sys_tmp-dcp-rc-nlb3.tar.gz ${CMAKE_BINARY_DIR} COMMAND ${CMAKE_COMMAND} -E copy - ${OPAE_TEST_ROOT}/framework/mock_sys_tmp-dfl0-nlb0.tar.gz + ${CMAKE_CURRENT_SOURCE_DIR}/mock_sys_tmp-dfl0-nlb0.tar.gz ${CMAKE_BINARY_DIR} COMMAND ${CMAKE_COMMAND} -E copy - ${OPAE_TEST_ROOT}/framework/mock_sys_tmp-dcp-vc.tar.gz + ${CMAKE_CURRENT_SOURCE_DIR}/mock_sys_tmp-dcp-vc.tar.gz ${CMAKE_BINARY_DIR} COMMAND ${CMAKE_COMMAND} -E copy - ${OPAE_TEST_ROOT}/framework/mock_sys_tmp-dfl0_patchset2-nlb0.tar.gz + ${CMAKE_CURRENT_SOURCE_DIR}/mock_sys_tmp-dfl0_patchset2-nlb0.tar.gz ${CMAKE_BINARY_DIR} COMMAND ${CMAKE_COMMAND} -E copy - ${OPAE_TEST_ROOT}/framework/mock_sys_tmp-dcp-rc-dfl0_patchset2-nlb0.tar.gz + ${CMAKE_CURRENT_SOURCE_DIR}/mock_sys_tmp-dcp-rc-dfl0_patchset2-nlb0.tar.gz ${CMAKE_BINARY_DIR} ) endif(OPAE_ENABLE_MOCK)
sse: _mm_extract_epi64 and _mm_insert_epi64 require amd64
@@ -627,7 +627,7 @@ int64_t simde_mm_extract_epi64 (simde__m128i a, const int imm8) { return a.i64[imm8&1]; } -#if defined(SIMDE_SSE4_1_NATIVE) +#if defined(SIMDE_SSE4_1_NATIVE) && defined(SIMDE_ARCH_AMD64) # define simde_mm_extract_epi64(a, imm8) _mm_extract_epi64(a.n, imm8) #elif defined(SIMDE_SSE4_1_NEON) # define simde_mm_extract_epi64(a, imm8) vgetq_lane_s64(a.neon_i64, imm8) @@ -738,7 +738,7 @@ simde_mm_insert_epi64 (simde__m128i a, int64_t i, const int imm8) { a.i64[imm8] = i; return a; } -#if defined(SIMDE_SSE4_1_NATIVE) +#if defined(SIMDE_SSE4_1_NATIVE) && defined(SIMDE_ARCH_AMD64) # define simde_mm_insert_epi64(a, i, imm8) SIMDE__M128I_FROM_NATIVE(_mm_insert_epi64(a.n, i, imm8)); #endif #if defined(SIMDE_SSE4_1_ENABLE_NATIVE_ALIASES)
English fixes for Options.md
@@ -80,16 +80,16 @@ dynamically modifying classes or reloading classes then don't use this. ### :create_additions -A flag indicating the :create_id key when encountered during parsing should -creating an Object mactching the class name specified in the value associated -with the key. +A flag indicating that the :create_id key, when encountered during parsing, +should create an Object matching the class name specified in the value +associated with the key. ### :create_id [String] The :create_id option specifies that key is used for dumping and loading when specifying the class for an encoded object. The default is `json_create`. -In the `:custom` mode setting the `:create_id` to nil will cause Complex, +In the `:custom` mode, setting the `:create_id` to nil will cause Complex, Rational, Range, and Regexp to be output as strings instead of as JSON objects. @@ -179,7 +179,7 @@ customization. ### :nan [Symbol] How to dump Infinity, -Infinity, and NaN in :null, :strict, and :compat -mode. Default is :auto but is ignored in the :compat and :rails mode. +mode. Default is :auto but is ignored in the :compat and :rails modes. - `:null` places a null @@ -252,7 +252,7 @@ The :time_format when dumping. - `:unix` time is output as a decimal number in seconds since epoch including fractions of a second. - - `:unix_zone` similar to the `:unix` format but with the timezone encoded in + - `:unix_zone` is similar to the `:unix` format but with the timezone encoded in the exponent of the decimal number of seconds since epoch. - `:xmlschema` time is output as a string that follows the XML schema definition. @@ -262,16 +262,16 @@ The :time_format when dumping. ### :use_as_json [Boolean] Call `as_json()` methods on dump, default is false. The option is ignored in -the :compat and :rails mode. +the :compat and :rails modes. ### :use_raw_json [Boolean] Call `raw_json()` methods on dump, default is false. The option is -accepted in the :compat and :rails mode even though it is not +accepted in the :compat and :rails modes even though it is not supported by other JSON gems. It provides a means to optimize dump or generate performance. The `raw_json(depth, indent)` method should be -called only by Oj. It is not intended for any other use. This is mean +called only by Oj. It is not intended for any other use. This is meant to replace the abused `to_json` methods. Calling `Oj.dump` inside the `raw_json` with the object itself when `:use_raw_json` is true will result in an infinite loop. @@ -279,9 +279,9 @@ result in an infinite loop. ### :use_to_hash [Boolean] Call `to_hash()` methods on dump, default is false. The option is ignored in -the :compat and :rails mode. +the :compat and :rails modes. ### :use_to_json [Boolean] Call `to_json()` methods on dump, default is false. The option is ignored in -the :compat and :rails mode. +the :compat and :rails modes.
when we removed InitConfig globally forgot to add back to run
@@ -24,6 +24,7 @@ scope run --payloads -- nc -lp 10001 scope run -- curl https://wttr.in/94105`, Args: cobra.MinimumNArgs(1), Run: func(cmd *cobra.Command, args []string) { + internal.InitConfig() rc.Run(args) }, }
Ensure NEON dot3() returns clear lane 3
@@ -942,8 +942,12 @@ ASTCENC_SIMD_INLINE float dot_s(vfloat4 a, vfloat4 b) */ ASTCENC_SIMD_INLINE vfloat4 dot3(vfloat4 a, vfloat4 b) { + // Clear lane to zero to ensure it's not in the dot() a.set_lane<3>(0.0f); - return vfloat4(vaddvq_f32(vmulq_f32(a.m, b.m))); + a = vfloat4(vaddvq_f32(vmulq_f32(a.m, b.m))); + // Clear lane so we return only a vec3 + a.set_lane<3>(0.0f); + return a; } /**
kdf: use the app's libctx and property query when searching for algorithms
@@ -138,7 +138,8 @@ opthelp: if (argc != 1) goto opthelp; - if ((kdf = EVP_KDF_fetch(NULL, argv[0], NULL)) == NULL) { + if ((kdf = EVP_KDF_fetch(app_get0_libctx(), argv[0], + app_get0_propq())) == NULL) { BIO_printf(bio_err, "Invalid KDF name %s\n", argv[0]); goto opthelp; }
[chainmaker][#981]Modify Txtype comment
@@ -39,7 +39,10 @@ boatchainamaker.h is header file for RAW transaction construction and performing * chainmaker contract_name * * @param tx_type - * chainmaker user system invoke and query + * chainmaker + * TXTYPE_INVOKE_USER_CONTRACT invoke user contract + * TXTYPE_QUERY_USER_CONTRACT query user contarct + * TxType_QUERY_SYSTEM_CONTRACT query system contarct * * @param tx_id * chainmaker 64 bit random
make _is_indexed() more obvious and less cute
@@ -1736,16 +1736,16 @@ _is_indexed(c3_w op) // NOTE: this logic is copied from ___ // and must be changed here if that changes. switch (op) { - case FIBK: case FIBK+1: - case FIBL: case FIBL+1: - case LIBK: case LIBK+1: - case LIBL: case LIBL+1: - case BUSH: case BUSH+1: - case SANB: case SANB+1: - case KITB: case KITB+1: - case MITB: case MITB+1: - case HILB: case HILB+1: - case HINB: case HINB+1: + case FIBK: case FISK: + case FIBL: case FISL: + case LIBK: case LISK: + case LIBL: case LISL: + case BUSH: case SUSH: + case SANB: case SANS: + case KITB: case KITS: + case MITB: case MITS: + case HILB: case HILS: + case HINB: case HINS: return 1; default: return 0;
Compile: Fix list syntax Before this update some Markdown tools such as [Marked][] would not display the list of recommended plugins correctly. [Marked]:
@@ -165,6 +165,7 @@ the configuration files are named) and also do many other tasks related to configuration. The minimal set of plugins you should add: + - [dump](/src/plugins/dump) is the default storage. If you remove it, make sure you add another one and set `KDB_DEFAULT_STORAGE` to it.
Rename main_loop_async debug messages
@@ -468,11 +468,14 @@ void main_loop_fake_crypto(LCPARAMS){ } } -uint64_t timer1 = 0; +uint64_t main_loop_async_work_timer = 0; +uint64_t main_loop_async_tick_timer = 0; void main_loop_async(LCPARAMS) { - //debug("---------------- main loop async cotext_buffer:%d async_size:%d, pending: %d\n",rte_ring_count(context_buffer), rte_ring_count(lcdata->conf->async_queue),lcdata->conf->pending_crypto); + ONE_PER_SEC(main_loop_async_tick_timer){ + debug("---------------- main loop async cotext_buffer:%d async_size:%d, pending: %d\n",rte_ring_count(context_buffer), rte_ring_count(lcdata->conf->async_queue),lcdata->conf->pending_crypto); + } //wait_for_cycles(FAKE_CRYPTO_SLEEP_MULTIPLIER*1000); unsigned lcore_id = rte_lcore_id(); unsigned n, i; @@ -516,7 +519,7 @@ void main_loop_async(LCPARAMS) /*if(n > 0){ debug("---------------- data arrived from crypto %d\n",n); }*/ - ONE_PER_SEC(timer1){ + ONE_PER_SEC(main_loop_async_work_timer){ debug("ASYNC WORK FUNCTION %d\n",lcdata->conf->pending_crypto); } if(n > 0){
Do not use packed SIMD instructions for only one argument
.globl math$_trunc32 math$trunc32: math$_trunc32: - roundps $0x03, %xmm0, %xmm0 + roundss $0x03, %xmm0, %xmm0 ret .globl math$floor32 .globl math$_floor32 math$floor32: math$_floor32: - roundps $0x01, %xmm0, %xmm0 + roundss $0x01, %xmm0, %xmm0 ret .globl math$ceil32 .globl math$_ceil32 math$ceil32: math$_ceil32: - roundps $0x02, %xmm0, %xmm0 + roundss $0x02, %xmm0, %xmm0 ret .globl math$trunc64 .globl math$_trunc64 math$trunc64: math$_trunc64: - roundpd $0x03, %xmm0, %xmm0 + roundsd $0x03, %xmm0, %xmm0 ret .globl math$floor64 .globl math$_floor64 math$floor64: math$_floor64: - roundpd $0x01, %xmm0, %xmm0 + roundsd $0x01, %xmm0, %xmm0 ret .globl math$ceil64 .globl math$_ceil64 math$ceil64: math$_ceil64: - roundpd $0x02, %xmm0, %xmm0 + roundsd $0x02, %xmm0, %xmm0 ret
Order the file names
* * Module: library/bignum.c * library/bignum_core.c - * library/bignum_mod_raw.c * library/bignum_mod.c + * library/bignum_mod_raw.c * Caller: library/dhm.c * library/ecp.c * library/ecdsa.c
porting: Fix typos in controller makefile
@@ -25,8 +25,8 @@ NIMBLE_INCLUDE += \ $(NULL) NIMBLE_SRC += \ - $(filter-out $(NIMBLE_IGNORE), $(wildcard $(NIMBLE_ROOT/nimble/transport/ram/src/*.c)) \ - $(filter-out $(NIMBLE_IGNORE), $(wildcard $(NIMBLE_ROOT/nimble/controller/src/*.c)) \ - $(filter-out $(NIMBLE_IGNORE), $(wildcard $(NIMBLE_ROOT/nimble/drivers/nrf52/src/*.c)) \ + $(filter-out $(NIMBLE_IGNORE), $(wildcard $(NIMBLE_ROOT)/nimble/transport/ram/src/*.c)) \ + $(filter-out $(NIMBLE_IGNORE), $(wildcard $(NIMBLE_ROOT)/nimble/controller/src/*.c)) \ + $(filter-out $(NIMBLE_IGNORE), $(wildcard $(NIMBLE_ROOT)/nimble/drivers/nrf52/src/*.c)) \ $(filter-out $(NIMBLE_IGNORE), $(wildcard $(NIMBLE_ROOT)/porting/nimble/controller/src/*.c)) \ $(NULL)
64 bit nightly builds;
@@ -16,7 +16,7 @@ before_build: - git submodule update --init - md build - cd build - - cmake -DCMAKE_BUILD_TYPE=%configuration% .. + - cmake -DCMAKE_BUILD_TYPE=%configuration% -A x64 .. configuration: Release
testing/irtest: Fix issue of failure to open multiple IR devices
@@ -189,12 +189,14 @@ CMD1(open_device, const char *, file_name) } int index = 0; - for (; index < CONFIG_TESTING_IRTEST_MAX_NIRDEV && - g_irdevs[index] == -1; index++) + for (; index < CONFIG_TESTING_IRTEST_MAX_NIRDEV; index++) + { + if (g_irdevs[index] == -1) { g_irdevs[index] = irdev; break; } + } if (index == CONFIG_TESTING_IRTEST_MAX_NIRDEV) {
capabilities: fix static asserts after merge
@@ -519,7 +519,6 @@ static size_t caps_max_numobjs(enum objtype type, gensize_t srcsize, gensize_t o * For the meaning of the parameters, see the 'caps_create' function. */ STATIC_ASSERT(68 == ObjType_Num, "Knowledge of all cap types"); - static errval_t caps_zero_objects(enum objtype type, lpaddr_t lpaddr, gensize_t objsize, size_t count) {
separates effects and persistence and always apply effects, even if the state didn't change
@@ -1456,6 +1456,9 @@ _raft_sure(u3_noun ovo, u3_noun vir, u3_noun cor) u3r_mug(cor); u3r_mug(u3A->roc); + // XX review this, and confirm it's actually an optimization + // Seems like it could be very expensive in some cases + // if ( c3n == u3r_sing(cor, u3A->roc) ) { ret = u3nc(vir, ovo); @@ -1465,7 +1468,8 @@ _raft_sure(u3_noun ovo, u3_noun vir, u3_noun cor) else { u3z(ovo); - // push a new event into queue + // we return ~ in place of the event ovum to skip persistence + // ret = u3nc(vir, u3_nul); u3z(cor); @@ -1669,10 +1673,10 @@ _raft_push(u3_raft* raf_u, c3_w* bob_w, c3_w len_w) } -/* _raft_kick_all(): kick a list of events, transferring. +/* _raft_kick(): kick a list of effects, transferring. */ static void -_raft_kick_all(u3_noun vir) +_raft_kick(u3_noun vir) { while ( u3_nul != vir ) { u3_noun ovo = u3k(u3h(vir)); @@ -2001,10 +2005,10 @@ _raft_poke(void) return rus; } -/* _raft_pump(): Cartify, jam, and save an ovum, then perform its effects. +/* _raft_pump(): Cartify, jam, and save an ovum. */ static void -_raft_pump(u3_noun ovo, u3_noun vir) +_raft_pump(u3_noun ovo) { u3v_cart* egg_u = u3a_malloc(sizeof(*egg_u)); u3p(u3v_cart) egg_p = u3of(u3v_cart, egg_u); @@ -2016,7 +2020,7 @@ _raft_pump(u3_noun ovo, u3_noun vir) egg_u->nex_p = 0; egg_u->cit = c3n; egg_u->did = c3n; - egg_u->vir = vir; + egg_u->vir = 0; ron = u3ke_jam(u3nc(u3k(u3A->now), ovo)); c3_assert(u3A->key); @@ -2040,9 +2044,8 @@ _raft_pump(u3_noun ovo, u3_noun vir) u3to(u3v_cart, u3A->ova.geg_p)->nex_p = egg_p; u3A->ova.geg_p = egg_p; } - _raft_kick_all(vir); + egg_u->did = c3y; - egg_u->vir = 0; } /* u3_raft_chip(): chip one event off for processing. @@ -2059,13 +2062,12 @@ u3_raft_chip(void) u3x_cell(rus, &vir, &ovo); if ( u3_nul != ovo ) { - _raft_pump(u3k(ovo), u3k(vir)); - - // XX should be vir - // - _raft_grab(u3A->roe); + _raft_pump(u3k(ovo)); } + _raft_kick(u3k(vir)); + _raft_grab(vir); + u3z(rus); } }