message
stringlengths
6
474
diff
stringlengths
8
5.22k
Add user config as board/dts roots as needed.
@@ -43,6 +43,15 @@ endif() # Store the selected user_config in the cache set(CACHED_ZMK_CONFIG ${ZMK_CONFIG} CACHE STRING "Selected user ZMK config") +if (ZMK_CONFIG) + if(EXISTS "${ZMK_CONFIG}/boards") + list(APPEND BOARD_ROOT "${ZMK_CONFIG}") + endif() + if(EXISTS "${ZMK_CONFIG}/dts") + list(APPEND DTS_ROOT "${ZMK_CO...
driver/temp_sensor/tmp411.c: Format with clang-format BRANCH=none TEST=none
@@ -181,14 +181,11 @@ static void tmp411_temp_sensor_poll(void) if (get_temp(TMP411_REMOTE1, &temp_c) == EC_SUCCESS) temp_val_remote1 = C_TO_K(temp_c); - } DECLARE_HOOK(HOOK_SECOND, tmp411_temp_sensor_poll, HOOK_PRIO_TEMP_SENSOR); #ifdef CONFIG_CMD_TEMP_SENSOR -static void print_temps( - const char *name, - const int t...
Remove old async pd store
@@ -57,11 +57,6 @@ void do_blocking_sync_op(packet_descriptor_t* pd, enum async_op_type op); longjmp(asyncLoopJumpPoint[rte_lcore_id()],1); } } - - //TODO: just an experimental solution (we should encapsulate it) - #define ASYNC_PDS_SIZE 10000 - packet_descriptor_t async_pds[RTE_MAX_LCORE][ASYNC_PDS_SIZE]; - uint32_t a...
Tests: handle ConnectionRefusedError in TestUnitHTTP.http().
@@ -154,10 +154,12 @@ class TestUnitHTTP(TestUnit): if 'sock' not in kwargs: sock = socket.socket(sock_types[sock_type], socket.SOCK_STREAM) - if sock_type == 'unix': - sock.connect(addr) - else: - sock.connect((addr, port)) + connect_args = addr if sock_type == 'unix' else (addr, port) + try: + sock.connect(connect_ar...
CI: Fix idf_tools.py tests with the updated openocd version
@@ -58,7 +58,7 @@ XTENSA_ESP32S3_ELF = 'xtensa-esp32s3-elf' ESP32ULP_VERSION = '2.28.51-esp-20191205' ESP32S2ULP_VERSION = '2.28.51-esp-20191205' -OPENOCD_VERSION = 'v0.10.0-esp32-20210721' +OPENOCD_VERSION = 'v0.10.0-esp32-20210902' RISCV_ELF_VERSION = 'esp-2021r1-8.4.0' XTENSA_ESP32_ELF_VERSION = 'esp-2021r1-8.4.0' X...
ssl_client2: move memory leak check before rng_free()
@@ -3049,6 +3049,10 @@ exit: #endif /* MBEDTLS_KEY_EXCHANGE_SOME_PSK_ENABLED && MBEDTLS_USE_PSA_CRYPTO */ + mbedtls_ssl_session_free( &saved_session ); + mbedtls_ssl_free( &ssl ); + mbedtls_ssl_config_free( &conf ); + #if defined(MBEDTLS_USE_PSA_CRYPTO) const char* message = mbedtls_test_helper_is_psa_leaking(); if( me...
Deactivate testmod until testshell is successful
static void test_basics (void) { - printf ("test basics\n"); + /*printf ("test basics\n"); Key * parentKey = keyNew ("user/tests/macaddr", KEY_END); KeySet * conf = ksNew (0, KS_END); @@ -30,7 +30,7 @@ static void test_basics (void) keyDel (parentKey); ksDel (ks); - PLUGIN_CLOSE (); + PLUGIN_CLOSE ();*/ }
loadable_apps: Add missing dependencies for each test Each test has a dependency on some configurations, messaging IPC or binary manager recovery.
@@ -17,6 +17,7 @@ menu "Enable Test Scenarios" config EXAMPLES_MESSAGING_TEST bool "Messaging Framework Test" default y + depends on MESSAGING_IPC ---help--- Enable the Messaging Framework Test" @@ -33,6 +34,7 @@ endif config EXAMPLES_RECOVERY_TEST bool "Binary Manager Recovery example" default y + depends on BINMGR_RE...
VERSION bump to version 1.4.51
@@ -37,7 +37,7 @@ endif() # micro version is changed with a set of small changes or bugfixes anywhere in the project. set(SYSREPO_MAJOR_VERSION 1) set(SYSREPO_MINOR_VERSION 4) -set(SYSREPO_MICRO_VERSION 50) +set(SYSREPO_MICRO_VERSION 51) set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI...
Combine all lengths to single line
@@ -898,12 +898,7 @@ espi_process(const void* data, size_t data_len) { /* * Try to read more data directly from buffer */ - if (d_len) { - len = ESP_MIN(esp.ipd.rem_len, esp.ipd.buff != NULL ? (esp.ipd.buff->len - esp.ipd.buff_ptr) : esp.ipd.rem_len); - len = ESP_MIN(len, d_len); /* Get number of bytes we can read/skip...
Fix compile error in Vs plugin with gcc 8.2.
@@ -149,7 +149,7 @@ VsStaggeredField<TYPE>::getOriCellIndexSet(size_t bigIndex) const { template <class TYPE> std::valarray<int> VsStaggeredField<TYPE>::getOriDisplacements(size_t subBigIndex) const { - return (subBigIndex / this->twoPowSubRes) % 2; + return (subBigIndex / static_cast<TYPE>(this->twoPowSubRes)) % 2; } ...
Fix type equality check
@@ -301,7 +301,7 @@ VOID PhSearchMemoryString( // ExtendedUnicode option then we'll use iswprint (GetStringTypeW) which does check // every available character by default. if (detectUnicode && extendedUnicode && !iswascii(byte)) - printable = iswprint(byte); + printable = !!iswprint(byte); else printable = PhCharIsPrin...
Travis: Improve build time of GCC build on macOS
@@ -64,9 +64,6 @@ before_install: brew link --overwrite gcc export CC=gcc-7 export CXX=g++-7 - # Install yaml-cpp from source, since otherwise linking fails - # We upgrade CMake and Boost first, since otherwise the last Homebrew command would install them from source too - brew upgrade cmake; brew upgrade boost; brew i...
relay: add notice in help about trace mode
@@ -362,6 +362,9 @@ do_usage(char *name, int exitcode) printf(" -c characters to allow next to [A-Za-z0-9], defaults to -_:#\n"); printf(" -d debug mode: currently writes statistics to log, prints hash\n" " ring contents and matching position in test mode (-t)\n"); +#ifdef ENABLE_TRACE + printf(" add another -d to enab...
added pkg-config to apt
@@ -38,8 +38,7 @@ Solve dependencies (Debian based distributions: KALI, UBUNTU, ...) You need to install missing dependencies before running `make`: ``` -sudo apt-get install libcurl4-openssl-dev -sudo apt-get install libssl-dev +sudo apt-get install libcurl4-openssl-dev libssl-dev pkg-config ``` Compile
fixed raspberry gpio compiler error
@@ -33,7 +33,7 @@ endif $(CC) $(CFLAGS) -o wlancap2hcx wlancap2hcx.c -lpcap $(CC) $(CFLAGS) -o wlanhcx2cap wlanhcx2cap.c -lpcap $(CC) $(CFLAGS) -o wlanrcascan wlanrcascan.c -lpcap - $(CC) $(CFLAGS) -o wlandumpfix wlandumpfix.c -lpcap -lrt + $(CC) $(CFLAGS) -o wlandumpfix wlandumpfix.c -lpcap -lrt $(LFLAGS) $(CC) $(CFLA...
webterm: send simple keystrokes simply %txt should be reserved for chunks of pasted text and other non-keystroke text inputs. Perhaps at a later point in time we'll handle paste events explicitly, letting this be more accurate.
@@ -50,7 +50,7 @@ const readInput = (term: Terminal, e: string): Belt[] => { // if (c >= 32 && c !== 127) { strap += e[0]; - e = e.slice(1); + e = e.slice(1); //TODO revisit wrt (list @c) & unicode characters continue; } else if ('' !== strap) { belts.push({ txt: strap.split('') }); @@ -115,7 +115,11 @@ const readInput...
Utiltites:Reduced legacy boot install interaction effort
@@ -30,7 +30,7 @@ then fi # Write MBR -sudo fdisk -f boot0 -u /dev/rdisk"${N}" +sudo fdisk -f boot0 -u /dev/rdisk"${N}" -y diskutil umount disk"${N}"s1 sudo dd if=/dev/rdisk"${N}"s1 count=1 of=origbs
all: Remove spaces between nested paren and inside function arg paren. Using new options enabled in the uncrustify configuration.
@@ -164,7 +164,7 @@ sp_compare = force # ignore/add/remove/force sp_inside_paren = ignore # ignore/add/remove/force # Add or remove space between nested parentheses, i.e. '((' vs. ') )'. -sp_paren_paren = ignore # ignore/add/remove/force +sp_paren_paren = remove # ignore/add/remove/force # Add or remove space between b...
Makefile Fix use USE_LEVELDB=1
# Distributed under the MIT/X11 software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. +USE_LEVELDB:=0 USE_UPNP:=1 LINK:=$(CXX) @@ -145,14 +146,21 @@ OBJS= \ all: denariusd +# +# LevelDB support +# +ifeq (${USE_LEVELDB}, 1) LIBS += $(CURDIR)/leveldb/libleveldb.a $(C...
artik053/openocd: copy libusb.dll to the output directory In Windows, executable file of openocd needs to refer the LIBUSB DLL file. This commit fixes to include the LIBUSB DLL FILE in the output.
@@ -392,8 +392,15 @@ EOF } packaging() { + if [ ! -e $copyDir/$HOST ]; then + mkdir -p $copyDir/$HOST + fi + if [ $OSTYPE == "msys" ]; then + cp $INSTALL_DIR/bin/libusb-1.0.dll $copyDir/$HOST/ + EXT=".exe" + fi cp -r $buildDir/openocd-install/share/openocd/scripts $copyDir - cp $buildDir/openocd-install/bin/openocd $co...
fix links in docs changed markdown formatting to rst formatting
@@ -25,7 +25,7 @@ Supports multiple device configurations by dynamically changing usb descriptors. - Vendor-specific class support with generic In & Out endpoints. Can be used with MS OS 2.0 compatible descriptor to load winUSB driver without INF file. - `WebUSB <https://github.com/WICG/webusb>`__ with vendor-specific ...
removed sqrt comments
@@ -808,7 +808,7 @@ static double transfer_nc(int l,double k, if(clt->has_magnification) f_all+=-2*clt->prefac_lensing*l*(l+1)*f_mag(a,chi,cosmo,clt,status)*jl/(k*k); - ret+=f_all*sqrt(pk); //TODO: is it worth splining this sqrt? + ret+=f_all*sqrt(pk); } } ret*=w->dchi; @@ -879,7 +879,7 @@ static double transfer_wl(int...
NVMe: Setting some previously uninitialized signals to 0 following Thomas recommendation Did not help so far
@@ -179,14 +179,18 @@ module nvme_top ( reg [2:0] DDR_arsize; reg [33:0] DDR_araddr; reg [0:0] DDR_rready; + reg [0:0] DDR_arlock; reg [0:0] DDR_wlast; reg [0:0] DDR_bready; reg [0:0] DDR_arburst; reg [0:0] DDR_awlock; reg [2:0] DDR_awprot; reg [3:0] DDR_awqos; + reg [3:0] DDR_arqos; reg [3:0] DDR_awcache; reg [15:0] D...
Add ARIA as an alias for all ARIA based modes.
@@ -273,6 +273,7 @@ static const SSL_CIPHER cipher_aliases[] = { {0, SSL_TXT_CAMELLIA, NULL, 0, 0, 0, SSL_CAMELLIA}, {0, SSL_TXT_CHACHA20, NULL, 0, 0, 0, SSL_CHACHA20}, + {0, SSL_TXT_ARIA, NULL, 0, 0, 0, SSL_ARIA}, {0, SSL_TXT_ARIA_GCM, NULL, 0, 0, 0, SSL_ARIA128GCM | SSL_ARIA256GCM}, {0, SSL_TXT_ARIA128, NULL, 0, 0, 0...
Add cygwin support for compiling spiffsimg
@@ -9,6 +9,8 @@ typedef int16_t s16_t; typedef uint16_t u16_t; typedef int8_t s8_t; typedef uint8_t u8_t; -typedef long long ptrdiff_t; +#ifndef __CYGWIN__ +typedef long long ptrdiff_t; #define offsetof(type, member) __builtin_offsetof (type, member) +#endif
Tab-complete CREATE COLLATION. Discussion:
@@ -609,6 +609,14 @@ static const SchemaQuery Query_for_list_of_statistics = { .result = "pg_catalog.quote_ident(s.stxname)", }; +static const SchemaQuery Query_for_list_of_collations = { + .catname = "pg_catalog.pg_collation c", + .selcondition = "c.collencoding IN (-1, pg_catalog.pg_char_to_encoding(pg_catalog.getdat...
Fix list size calculation. When the list continues, it needs two extra characters for ", ".
@@ -3725,7 +3725,11 @@ public: if (__left_ == NULL) const_cast<long&>(__cached_size_) = 0; else if (__right_ == NULL) + { const_cast<long&>(__cached_size_) = __left_->size(); + if (__cached_size_ > 0 && __size_) + const_cast<long&>(__cached_size_) += 2; + } else { size_t off = __right_->size();
Update mem.c rt_realloc may cause <lfree> change, if we don't change <lfree> timely, it may cause memory leakage
@@ -490,6 +490,12 @@ void *rt_realloc(void *rmem, rt_size_t newsize) ((struct heap_mem *)&heap_ptr[mem2->next])->prev = ptr2; } + if (mem2 < lfree) + { + /* the splited struct is now the lowest */ + lfree = mem2; + } + plug_holes(mem2); rt_sem_release(&heap_sem);
Set PREOPEN_CNT to 3
@@ -38,16 +38,17 @@ typedef struct Preopen { unsigned path_len; } Preopen; -#define PREOPEN_CNT 7 +//TODO +#define PREOPEN_CNT 3 Preopen preopen[PREOPEN_CNT] = { { .path = "<stdin>", .path_len = 7, }, { .path = "<stdout>", .path_len = 8, }, { .path = "<stderr>", .path_len = 8, }, - { .path = "./", .path_len = 2, }, - {...
more README info
@@ -24,7 +24,14 @@ make clean && make To enable debugging, build with `make DEBUG=1`. -3) Install Rust and build a synthetic client-server application. +3) Setup hugepages. We require at least 64 2MB hugepages. Run the script below +and follow the instructions for NUMA or non-NUMA systems, as appropriate. + +``` +./dpd...
Update build-android.yml Take 2
@@ -19,7 +19,7 @@ jobs: uses: actions/checkout@v2 - name: Chocolatey run: | - choco install --no-progress -y android-ndk --version=21.2 /InstallationPath:$Env:SystemDrive\Android\ + choco install --no-progress -y android-ndk --version=20.0 /InstallationPath:$Env:SystemDrive\Android\ choco install --no-progress -y andro...
esp_flash: fix the cleanup when add device fails
@@ -121,25 +121,35 @@ esp_err_t spi_bus_add_flash_device(esp_flash_t **out_chip, const esp_flash_spi_d if (config->host_id == SPI_HOST) caps = MALLOC_CAP_INTERNAL | MALLOC_CAP_8BIT; chip = (esp_flash_t*)heap_caps_malloc(sizeof(esp_flash_t), caps); - host = (spi_flash_host_driver_t*)heap_caps_malloc(sizeof(spi_flash_hos...
ci: Allow testing IDF Python tools in the CI context
@@ -86,6 +86,15 @@ variables: # Update the filename for a specific ESP-IDF release. It is used only with CI_PYTHON_CONSTRAINT_BRANCH. CI_PYTHON_CONSTRAINT_FILE: "espidf.constraints.v5.0.txt" + # Set this variable to repository name of a Python tool you wish to install and test in the context of ESP-IDF CI. + # Keep the...
validation BUGFIX do not move first pointer
@@ -1306,7 +1306,7 @@ lyd_validate(struct lyd_node **tree, const struct lys_module *module, const stru struct lyd_node **diff) { LY_ERR ret = LY_SUCCESS; - struct lyd_node *first, *next, **first2; + struct lyd_node *first, *next, **first2, *iter; const struct lys_module *mod; struct ly_set node_types = {0}, meta_types ...
[DFS] cleanup the log in dfs.
@@ -369,8 +369,7 @@ int dfs_file_stat(const char *path, struct stat *buf) if ((fs = dfs_filesystem_lookup(fullpath)) == NULL) { - LOG_E( - "can't find mounted filesystem on this path:%s", fullpath); + LOG_E("can't find mounted filesystem on this path:%s", fullpath); rt_free(fullpath); return -ENOENT; @@ -399,8 +398,7 @...
build: enforce for Flex 2 and Bison 3 as a minimum
@@ -317,8 +317,8 @@ endif() # Optional features like Stream Processor and Record Accessor needs Flex # and Bison to generate it parsers. -find_package(FLEX) -find_package(BISON) +find_package(FLEX 2) +find_package(BISON 3) if(FLEX_FOUND AND BISON_FOUND) set(FLB_FLEX_BISON 1)
Add coeralls
@@ -6,7 +6,7 @@ machine: ## Customize dependencies dependencies: pre: - - sudo apt-get update && sudo DEBIAN_FRONTEND=noninteractive apt-get -y install php5 cmake libssl-dev python3 python3-setuptools ruby ninja-build lcov + - sudo apt-get update && sudo DEBIAN_FRONTEND=noninteractive apt-get -y install php5 cmake libs...
Set fls-nb/resetdelay default to 0 (disabled)
@@ -7568,7 +7568,7 @@ bool DeRestPluginPrivate::flsNbMaintenance(LightNode *lightNode) QDateTime now = QDateTime::currentDateTime(); QSettings config(deCONZ::getStorageLocation(deCONZ::ConfigLocation), QSettings::IniFormat); - int resetDelay = config.value("fls-nb/resetdelay", 86400 / 2).toInt(); // 12h + int resetDela...
tests/nmk: fix compilation for armv8
@@ -42,4 +42,15 @@ struct pmap_aarch64 { genvaddr_t max_mappable_va; ///< Maximum mappable virtual address }; +struct pmap_dump_info { + size_t l0_index, l1_index, l2_index, l3_index; + vregion_flags_t flags; + struct capref cap; + genvaddr_t offset; +}; + +#define PRIfmtPTIDX "%zd.%zd.%zd.%zd" +#define GET_PTIDX(dump_...
virtIO: fix VIRTIO_CONFIG_STATUS_DRIVER status bit definition This definition was wrongly including also the ACK status bit. This fix will allow to check for unclaimed virtIO devices by AND-ing a device status byte with VIRTIO_CONFIG_STATUS_DRIVER.
@@ -24,7 +24,7 @@ typedef closure_type(vqfinish, void, u64); /* Status byte for guest to report progress. */ #define VIRTIO_CONFIG_STATUS_RESET 0x00 #define VIRTIO_CONFIG_STATUS_ACK 0x01 -#define VIRTIO_CONFIG_STATUS_DRIVER 0x03 +#define VIRTIO_CONFIG_STATUS_DRIVER 0x02 #define VIRTIO_CONFIG_STATUS_DRIVER_OK 0x04 #defi...
Add Android specific code for the random number generator.
@@ -138,6 +138,71 @@ finish_random(void) { return; } +#elif defined(__ANDROID__) +#if (__ANDROID_API__ < 28) +#include <fcntl.h> + +static int fd = -1; + +void +init_random(void) +{ + fd = open("/dev/urandom", O_RDONLY); + return; +} + +void +read_random(void *buf, size_t size) +{ + size_t position; + ssize_t n; + + po...
Generate YAML: Specify scalar number as argument
from uuid import uuid4 from random import choice, randint, random +from sys import argv, stderr -def generate_yaml(chance_key=0.7, number_scalars=10000): +def usage(name=argv[0]): + print("Usage: {} [count]".format(name), file=stderr) + + +def generate_yaml(number_scalars=100000, chance_key=0.7): indentation = 0 last_w...
acrn-config: add 'logger_setting' into launch script Add missed definition of 'logger_setting' into launch script. Acked-by: Victor Sun
@@ -236,8 +236,6 @@ def gvt_arg_set(dm, vmid, uos_type, config): def log_level_set(uos_type, config): - if uos_type not in ('CLEARLINUX', 'ANDROID', 'ALIOS'): - return print("#logger_setting, format: logger_name,level; like following", file=config) print('logger_setting="--logger_setting console,level=4;kmsg,level=3;di...
DEV fix item change detection to store in database
@@ -1105,7 +1105,7 @@ void DeRestPluginPrivate::apsdeDataIndicationDevice(const deCONZ::ApsDataIndicat if (idItem && push) { enqueueEvent(Event(r->prefix(), item->descriptor().suffix, idItem->toString(), device->key())); - if (item->lastChanged() != item->lastSet()) + if (item->lastChanged() == item->lastSet()) { DB_St...
perfmon: skipping bundle message Change the skipping bundle message to debug Type: refactor
@@ -374,7 +374,7 @@ perfmon_init (vlib_main_t *vm) if (!is_bundle_supported (b)) { - log_warn ("skipping bundle '%s' - not supported", b->name); + log_debug ("skipping bundle '%s' - not supported", b->name); b = b->next; continue; }
ngtcp2_conn_early_data_rejected: Do nothing if flag is already set
@@ -11509,6 +11509,10 @@ static void conn_discard_early_data_state(ngtcp2_conn *conn) { } int ngtcp2_conn_early_data_rejected(ngtcp2_conn *conn) { + if (conn->flags & NGTCP2_CONN_FLAG_EARLY_DATA_REJECTED) { + return 0; + } + conn->flags |= NGTCP2_CONN_FLAG_EARLY_DATA_REJECTED; conn_discard_early_data_state(conn);
admin/mrsh: clean post install
@@ -67,7 +67,7 @@ rsh compatability package for mrcp/mrlogin/mrsh make %install -DESTDIR="$RPM_BUILD_ROOT" make install +DESTDIR="$%{buildroot}" make install ln -sf in.mrlogind %{buildroot}%{_sbindir}/in.rlogind ln -sf in.mrshd %{buildroot}%{_sbindir}/in.rshd @@ -77,10 +77,9 @@ do sed -i 's#\(account\s\+include\s\+\)sy...
USB quirks (Issue Issue Issue
# Canon, Inc. MP560 Printer (Issue #4155) 0x04a9 0x173e unidir +# Canon, Inc. PIXMA G1501 Printer (Issue #5831) +0x04a9 0x1796 unidir + # Canon, Inc. MF4150 Printer (https://bugs.launchpad.net/bugs/1160638) 0x04a9 0x26a3 no-reattach # All Intermec devices (Issue #4553) 0x067e no-reattach +# HP LaserJet 1010 (Issue #578...
Deprecate TCOD_console_set_fade.
@@ -416,12 +416,17 @@ TCOD_PUBLIC TCOD_NODISCARD TCOD_color_t TCOD_console_get_char_foreground(const T */ TCOD_PUBLIC TCOD_NODISCARD int TCOD_console_get_char(const TCOD_Console* con, int x, int y); /** - * Fade the color of the display. - * - * \param val Where at 255 colors are normal and at 0 colors are completely -...
Retire DCID when path validation succeeds
@@ -3876,6 +3876,13 @@ static int conn_recv_path_response(ngtcp2_conn *conn, const ngtcp2_path *path, /* TODO Retire all DCIDs in conn->bound_dcid */ if (!(pv->flags & NGTCP2_PV_FLAG_DONT_CARE)) { + if (!(pv->flags & NGTCP2_PV_FLAG_VERIFY_OLD_PATH_ON_SUCCESS)) { + rv = conn_retire_dcid(conn, &conn->dcid.current); + if ...
sysdeps/managarm: Pass O_NONBLOCK in openat()
@@ -3032,10 +3032,8 @@ int sys_openat(int dirfd, const char *path, int flags, int *fd) { proto_flags |= managarm::posix::OpenFlags::OF_CREATE; if(flags & __MLIBC_O_EXCL) proto_flags |= managarm::posix::OpenFlags::OF_EXCLUSIVE; - if(flags & __MLIBC_O_NONBLOCK) { - mlibc::infoLogger() << "mlibc: openat() has O_NONBLOCK s...
Add constants for TLS 1.3 SignatureScheme values Put them into the TLSProxy::Message namespace along with the extension type constants.
@@ -91,6 +91,33 @@ use constant { EXT_FORCE_LAST => 0xffff }; +# SignatureScheme of TLS 1.3, from +# https://tools.ietf.org/html/draft-ietf-tls-tls13-20#appendix-B.3.1.3 +# TODO(TLS1.3) update link to IANA registry after publication +# We have to manually grab the SHA224 equivalents from the old registry +use constant ...
evp: fix Coverity improper use of negative value
@@ -1704,6 +1704,10 @@ static int get_ec_decoded_from_explicit_params(enum state state, #ifndef OPENSSL_NO_EC case EVP_PKEY_EC: val = EC_KEY_decoded_from_explicit_params(EVP_PKEY_get0_EC_KEY(pkey)); + if (val < 0) { + ERR_raise(ERR_LIB_EVP, EVP_R_INVALID_KEY); + return 0; + } break; #endif default:
BugID:17023366:fix white scan issue
@@ -1036,10 +1036,6 @@ static int _dm_shw_array_bool_set(_IN_ dm_shw_data_value_t *data_value, _IN_ voi dm_shw_data_value_complex_t *complex_array = data_value->value; int int_set = (value == NULL) ? (0) : (*(int *)value); - if (((int *)(complex_array->value) + index) == NULL) { - return DM_INVALID_PARAMETER; - } - *((...
Check all alternate alleles for symbolic and report idx
@@ -1185,13 +1185,15 @@ cdef inline bcf_sync_end(VariantRecord record): bcf_info_set_value(record, b'END', record.ptr.pos + record.ptr.rlen) -cdef inline bint has_symbolic_allele(VariantRecord record): - # Check if alternate allele is symbolic - if record.ptr.n_allele >= 2: - alt = record.ptr.d.allele[1] - return (alt[...
Fix IKEA remote setup to support more variants, raise ct speed
@@ -1890,7 +1890,9 @@ void DeRestPluginPrivate::handleIndicationFindSensors(const deCONZ::ApsDataIndic } } } - else if (ind.srcEndpoint() == 0x01 && ind.clusterId() == SCENE_CLUSTER_ID && zclFrame.commandId() == 0x09 && zclFrame.manufacturerCode() == VENDOR_IKEA) + //else if (ind.srcEndpoint() == 0x01 && ind.clusterId(...
fixed csma-security debug output
#define LOG_MODULE "CSMA" #define LOG_LEVEL LOG_LEVEL_MAC +#if LOG_LEVEL == LOG_LEVEL_DBG static const char * HEX = "0123456789ABCDEF"; +#endif #if LLSEC802154_USES_AUX_HEADER && LLSEC802154_USES_FRAME_COUNTER @@ -174,6 +176,7 @@ csma_security_create_frame(void) } if(packetbuf_attr(PACKETBUF_ATTR_SECURITY_LEVEL) > 0) {...
VERSION bump to version 0.12.19
@@ -32,7 +32,7 @@ set(CMAKE_C_FLAGS_DEBUG "-g -O0") # set version set(LIBNETCONF2_MAJOR_VERSION 0) set(LIBNETCONF2_MINOR_VERSION 12) -set(LIBNETCONF2_MICRO_VERSION 18) +set(LIBNETCONF2_MICRO_VERSION 19) set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION}.${LIBNETCONF2_MICRO_VERSION}) set(L...
Restore transport parameter id
@@ -473,14 +473,14 @@ typedef union { } ngtcp2_frame; typedef enum { - NGTCP2_TRANSPORT_PARAM_INITIAL_MAX_STREAM_DATA, - NGTCP2_TRANSPORT_PARAM_INITIAL_MAX_DATA, - NGTCP2_TRANSPORT_PARAM_INITIAL_MAX_STREAM_ID_BIDI, - NGTCP2_TRANSPORT_PARAM_IDLE_TIMEOUT, - NGTCP2_TRANSPORT_PARAM_MAX_PACKET_SIZE, - NGTCP2_TRANSPORT_PARAM...
lwip/docs: Removed unsupported CONFIG_LWIP_TCP_KEEP_CONNECTION_WHEN_IP_CHANGES
@@ -368,11 +368,6 @@ The following API functions are supported. For full details see :component_file: - ``sys_timeouts_init()`` - ``sys_timeouts_deinit()`` -Abort TCP connections when IP changes -+++++++++++++++++++++++++++++++++++++ - -:ref:`CONFIG_LWIP_TCP_KEEP_CONNECTION_WHEN_IP_CHANGES` is disabled by default. This...
Add cross-compilation support to configure script If the environment variable TARGET_CC is set, configure uses the value as target compiler for cross-compiling. For example: TARGET_CC=x86_64-w64-mingw32-gcc ./configure
@@ -38,12 +38,17 @@ if [ -z "$CC" ]; then fi fi +if [ -z "$TARGET_CC" ]; then echo "Using C compiler '$CC'" + TARGET_CC="$CC" +else + echo "Using target compiler '$TARGET_CC' and host compiler '$CC'" +fi command="$CC ../common/charmonizer.c -o charmonizer" echo $command $command || exit echo Running charmonizer -./char...
Fix comment typo TEST=make buildall BRANCH=none
@@ -82,7 +82,7 @@ test_mockable __keep int main(void) board_config_post_gpio_init(); #endif /* - * Initialize interrupts, but don't enable any of them. Note that + * Initialize tasks, but don't enable any of them. Note that * task scheduling is not enabled until task_start() below. */ task_pre_init();
build-tester: properly reset frsky & redpine
@@ -13,7 +13,9 @@ DEFINES=( "RX_NRF24_BAYANG_TELEMETRY" "RX_BAYANG_PROTOCOL_BLE_BEACON" "RX_BAYANG_PROTOCOL_TELEMETRY_AUTOBIND" - "RX_FRSKY" + "RX_FRSKY_D8" + "RX_FRSKY_D16" + "RX_REDPINE" "DSHOT" ) OUTPUT_FOLDER="output"
TestsUser/Base.h: Introduce NDEBUG macro
@@ -496,7 +496,6 @@ typedef struct { #define SIGNATURE_16(A, B) ((A) | ((B) << 8)) #define SIGNATURE_32(A, B, C, D) (SIGNATURE_16 (A, B) | (SIGNATURE_16 (C, D) << 16)) -#define DEBUG(X) do { ppprintf X ; } while (0) #define ARRAY_SIZE(x) (sizeof(x)/sizeof((x)[0])) #define EFI_ERROR(x) ((x) != 0) #define OFFSET_OF(Base,...
Changed linked libs
@@ -25,7 +25,7 @@ target_include_directories(celix_cxx_pswp_tests PRIVATE ${CMAKE_CURRENT_SOURCE_D target_include_directories(celix_cxx_pswp_tests PRIVATE ${CMAKE_SOURCE_DIR}/bundles/pubsub/pubsub_spi/include) target_link_libraries(celix_cxx_pswp_tests PRIVATE GTest::GTest) -target_link_libraries(celix_cxx_pswp_tests P...
Fix Invalid argument after redisAsyncConnectUnix
@@ -500,6 +500,7 @@ int redisContextConnectUnix(redisContext *c, const char *path, const struct time return REDIS_ERR; sa = (struct sockaddr_un*)(c->saddr = malloc(sizeof(struct sockaddr_un))); + c->addrlen = sizeof(struct sockaddr_un); sa->sun_family = AF_UNIX; strncpy(sa->sun_path,path,sizeof(sa->sun_path)-1); if (co...
Hide all hud elements on no_display
@@ -1296,7 +1296,6 @@ void render_imgui(swapchain_stats& data, struct overlay_params& params, ImVec2& window_size = ImVec2(window_size.x, ImGui::GetCursorPosY() + 10.0f); ImGui::End(); - } if(loggingOn){ ImGui::SetNextWindowBgAlpha(0.0); ImGui::SetNextWindowSize(ImVec2(params.font_size * 13, params.font_size * 13), ImG...
stm32/modmachine: Add ability to pass through user data to mboot.
#include "modmachine.h" #include "py/gc.h" #include "py/runtime.h" +#include "py/objstr.h" #include "py/mperrno.h" #include "py/mphal.h" #include "extmod/machine_mem.h" @@ -273,6 +274,20 @@ STATIC NORETURN mp_obj_t machine_bootloader(size_t n_args, const mp_obj_t *args) __set_MSP(*(volatile uint32_t*)0x08000000); ((voi...
Cirrus: Use LLVM to translate Elektra on macOS
@@ -57,6 +57,7 @@ mac_task: graphviz libgcrypt libgit2 + llvm lua moreutils ninja @@ -87,6 +88,8 @@ mac_task: - | export PATH="/usr/local/opt/ruby@2.5/bin:$PATH" export PATH="$HOME/.gem/ruby/$(ruby -e 'puts RUBY_VERSION' | sed 's/\.[0-9]$/.0/')/bin:$PATH" + - > # Use latest version of LLVM to translate Elektra + export...
crypto/sha/asm/sha512-ia64.pl: When checking assembler file names, ignore case The use case is that uppercase .ASM extension may be used on some platforms, and we were only testing for the lowercase extension.
# $output is the last argument if it looks like a file (it has an extension) $output = $#ARGV >= 0 && $ARGV[$#ARGV] =~ m|\.\w+$| ? pop : undef; -if ($output =~ /512.*\.[s|asm]/) { +if ($output =~ /512.*\.[s|asm]/i) { $SZ=8; $BITS=8*$SZ; $LDW="ld8"; @@ -92,7 +92,7 @@ if ($output =~ /512.*\.[s|asm]/) { @sigma0=(1, 8, 7);...
CMSIS-Driver: update SAI documentation (fix typo)
@@ -751,12 +751,10 @@ The table lists the operation values for \em control. Values from different cate <table class="cmtable" summary=""> <tr><th> Parameter \em control </th><th> Bit </th><th> Category </th> <th> Description </th></tr> -<tr><td> \ref ARM_SAI_CONFIGURE_TX </td><td rowspan="9" style="text-align:right"> 0...
Tweaks to sourcing the `zephyr-env.sh` script.
@@ -142,10 +142,10 @@ We suggest two main [options](https://docs.zephyrproject.org/latest/guides/env_v #### Per Shell -To load the Zephyr environment properly for just one transient shell, run: +To load the Zephyr environment properly for just one transient shell, run the following from your ZMK checkout directory: ```...
remove compiler check on *nix
@@ -115,10 +115,7 @@ function nf_warning(self, level) host_warning = cl_maps[level] -- for gcc/clang, or any gnu compatible compiler on *nix else - local gcc_clang_warning = gcc_clang_maps[level] - if gcc_clang_warning and self:has_flags(' -Xcompiler "' .. gcc_clang_warning .. '"', "cxflags") then - host_warning = gcc_...
Make MIC_LEN_VALID safe
* only the case of 0 < l(a) < (2^16 - 2^8) */ #define MAX_A_LEN 0xfeff /* Valid values are 4, 6, 8, 10, 12, 14, and 16 octets */ -#define MIC_LEN_VALID(x) (x >= 4 && x <= 16 && x % 2 == 0) +#define MIC_LEN_VALID(x) ((x) >= 4 && (x) <= 16 && (x) % 2 == 0) /*---------------------------------------------------------------...
aded detection of WDS and/or Mesh systems
@@ -1074,6 +1074,9 @@ int udpportd = 0; int c, c1; int llctype; + +uint8_t meshflag = false; + uint8_t eap3flag = false; uint8_t eap4flag = false; uint8_t eap5flag = false; @@ -1426,7 +1429,10 @@ while((pcapstatus = pcap_next_ex(pcapin, &pkh, &packet)) != -2) continue; macf = (mac_t*)(h80211); if((macf->to_ds == 1) && ...
check number of decodes before uploading them to pskreporter
@@ -193,6 +193,8 @@ int main(int argc, char *argv[]) if(counter < 13) continue; } + if(counter > 0) + { size = dst - start; padding = (4 - size % 4) % 4; size += padding; @@ -210,12 +212,13 @@ int main(int argc, char *argv[]) sendto(sock, buffer, size, 0, (struct sockaddr *)&addr, sizeof(addr)); - if(src == NULL) break...
add test case for compilation with internal lapacke
@@ -85,6 +85,20 @@ matrix: - sudo apt-get update -qq - sudo apt-get install -qq liblapacke-dev + - env: NOLAPACKE=1 + os: linux + compiler: gcc + sudo: required + dist: trusty + addons: + apt: + packages: + - *default_packages + - gfortran + before_install: + - sudo apt-get update -qq + - sudo apt-get install -qq libla...
better bug reporting
#include <avtParallel.h> #include <avtIdentifierSelection.h> +#include <avtCallback.h> +#include <ImproperUseException.h> +#include <NonCompliantFileException.h> #include <DebugStream.h> #include <map> @@ -419,8 +422,17 @@ avtPersistentParticlesFilter::IterateMergeData(int ts, avtDataTree_p tree) // Free the memory fro...
restores perror() calls in terminal hijack/lojack to avoid possible reentrance
@@ -1213,19 +1213,19 @@ u3_term_io_hija(void) else { if ( c3n == u3_Host.ops_u.dem ) { if ( 0 != tcsetattr(1, TCSADRAIN, &uty_u->bak_u) ) { - u3l_log("term: hija tcsetattr-1: %s\r\n", strerror(errno)); + perror("hija-tcsetattr-1"); c3_assert(!"hija-tcsetattr"); } if ( -1 == fcntl(1, F_SETFL, uty_u->cug_i) ) { - u3l_log...
firfilt: using window object to circumvent issue identified by valgrind
/* - * Copyright (c) 2007 - 2020 Joseph Gaeddert + * Copyright (c) 2007 - 2021 Joseph Gaeddert * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal // DOTPROD() dotprod macro // PRINTVAL() print macro -#define LI...
doc: add the K8s use case based on off-cloud signing scheme Fixes:
@@ -127,6 +127,8 @@ Note that the version of Linux SGX software stack must be same with the one [ins ``` The content of the `image` directory is initialized by the `occlum init` command. The structure of the `image` directory mimics that of an ordinary UNIX FS, containing directories like `/bin`, `/lib`, `/root`, `/tmp...
Build on osx too
@@ -4,19 +4,34 @@ compiler: - gcc - clang +os: + - linux + - osx + +before_install: + - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi + - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install mongodb; fi + - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew services start mongodb; fi + services: mongodb env: ...
Updated config note about underglow.
-# TODO: Add lines about underglow! +# Uncomment the following line to enable the Corne RGB Underglow +# ZMK_RGB_UNDERGLOW=y # Uncomment the following line to enable the Corne OLED Display # CONFIG_ZMK_DISPLAY=y
Don't create extra softlink in libdir on musl libc
@@ -242,6 +242,9 @@ do_musl(char *exld, char *ldscope) // if so, we assume the symlink exists as well. if ((ldso = get_loader(ldscope)) == NULL) return; + // Avoid creating ld-musl-x86_64.so.1 -> /lib/ld-musl-x86_64.so.1 + if (strstr(ldso, "musl")) return; + if (asprintf(&lpath, "%s/%s", path, basename(ldso)) == -1) { ...
[Rust] initrd_fs orders directories before files
@@ -32,18 +32,20 @@ impl FromDirectoryImage for FileManagerDirectoryContents { let files = &dir.files; printf!("Found {:?} files\n", files.len()); let mut count = 0; - for entry in files + + let subdirectories = &dir.subdirectories; + for entry in subdirectories .into_iter() - .map(|kv| FileManagerDirectoryEntry::new(&...
honggfuzz: move thread pinging routine to a separate function
@@ -269,6 +269,7 @@ void arch_reapChild(run_t* run) { if (sig == -1 && (errno != EAGAIN && errno != EINTR)) { PLOG_F("sigwaitinfo(SIGIO|SIGCHLD|SIGUSR1)"); } + if (arch_checkWait(run)) { run->pid = 0; break; @@ -278,7 +279,6 @@ void arch_reapChild(run_t* run) { break; } } - if (run->global->sanitizer.enable) { char cra...
fix for sync clobbering the unconnected elements of a tuple if there is a connected element present.
@@ -640,9 +640,6 @@ SyncAttribute::doIt() } } - // Restore the values - assetNode->getParmValues(); - // Restore the connections unsigned int connectAttrCmdsLength = connectAttrCmds.length(); for(unsigned int i = 0; i < connectAttrCmdsLength; ++i) @@ -651,7 +648,15 @@ SyncAttribute::doIt() CHECK_MSTATUS_AND_RETURN_IT(s...
Add __declspec;
#include "luax.h" +#ifdef _WIN32 +#define LOVR_API __declspec(dllexport) +#else +#define LOVR_API +#endif + // Module loaders -int luaopen_lovr(lua_State* L); -int luaopen_lovr_audio(lua_State* L); -int luaopen_lovr_data(lua_State* L); -int luaopen_lovr_event(lua_State* L); -int luaopen_lovr_filesystem(lua_State* L); -...
rpmsg_socket: rpmsg_send_nocpy() should lock with rpmsg_destroy_ept
@@ -375,6 +375,7 @@ static inline void rpmsg_socket_destroy_ept( } nxmutex_lock(&conn->recvlock); + nxmutex_lock(&conn->sendlock); if (conn->ept.rdev) { @@ -391,6 +392,7 @@ static inline void rpmsg_socket_destroy_ept( rpmsg_socket_poll_notify(conn, POLLIN | POLLOUT); } + nxmutex_unlock(&conn->sendlock); nxmutex_unlock(...
Klibs: syslog: use IMAGE_NAME environment variable as APP-NAME With this change, if the IMAGE_NAME environment variable is present it is used to populate the APP_NAME field in syslog messages, while the program name is used as a fallback.
@@ -439,6 +439,9 @@ int init(status_handler complete) } if (syslog.server) { syslog_server_resolve(); + tuple env = get_environment(); + syslog.program = get(env, sym(IMAGE_NAME)); + if (!syslog.program) syslog.program = get(root, sym(program)); syslog.max_hdr_len = 1 + sizeof(__XSTRING(SYSLOG_PRIORITY)) + sizeof(SYSLO...
[core] report Y2038 support in lighttpd -V (report unsafe 32-bit signed time_t) 64-bit time_t (default with 64-bit builds) is safe beyond Y2038
@@ -703,7 +703,13 @@ static void show_features (void) { #endif ; show_version(); - printf("%s%s%s\n", fdevent_show_event_handlers(), network_write_show_handlers(), features); + printf("%s%s%s%s\n", + fdevent_show_event_handlers(), + network_write_show_handlers(), + features, + sizeof(time_t) > 4 || (sizeof(time_t) == 4...
Remove -j1 option from nmake in Jekinsfile
@@ -82,7 +82,7 @@ pipeline { mkdir build_rel cd build_rel cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DISA_AVX2=ON -DISA_SSE41=ON -DISA_SSE2=ON .. - nmake package -j1 + nmake package ''' } } @@ -93,7 +93,7 @@ pipeline { mkdir build_dbg cd build_dbg cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_...
Enhance demo.
@@ -105,11 +105,12 @@ eval->redraw();} code0 {sampleOpened->value(sample->knotVector() == TS_OPENED);} } } - Fl_Light_Button {} { + Fl_Light_Button sampleShowPoints { label {Show sampled points} callback {sample->drawPoints(((Fl_Button *)o)->value()); sample->redraw();} xywh {580 143 300 25} + code0 {sampleShowPoints->...
Small fix to examples/BinaryTides.
Evolution of Tight Stellar Binaries ===================== -.. todo:: - -**@dflemin3**: This example is broken as it does not match ZB89. +.. todo:: **@dflemin3**: This example is broken as it does not match ZB89. Overview
[arch][arm64][mmu] use slightly more efficient pmm_alloc_page routine Only used when allocating page size aligned page tables, which is the common case.
@@ -193,7 +193,13 @@ static int alloc_page_table(paddr_t *paddrp, uint page_size_shift) { LTRACEF("page_size_shift %u\n", page_size_shift); - if (size >= PAGE_SIZE) { + if (size == PAGE_SIZE) { + vm_page_t *p = pmm_alloc_page(); + if (!p) { + return ERR_NO_MEMORY; + } + *paddrp = vm_page_to_paddr(p); + } else if (size ...
Base 666: Move logic into decoding function
@@ -21,7 +21,7 @@ int decode (Key * key, Key * parent) { const char * strVal = keyString (key); - if (!keyGetMeta (key, "type") || strcmp (keyValue (keyGetMeta (key, "type")), "binary")) return 1; + if (keyIsString (key) == 0 || !keyGetMeta (key, "type") || strcmp (keyValue (keyGetMeta (key, "type")), "binary")) return...
Address A very minimal code change made partition take strings.
(var i 0) (var nextn n) (def len (length ind)) (def ret (array/new (math/ceil (/ len n)))) + (def slicer (if (bytes? ind) string/slice tuple/slice)) (while (<= nextn len) - (array/push ret (tuple/slice ind i nextn)) + (array/push ret (slicer ind i nextn)) (set i nextn) (+= nextn n)) - (if (not= i len) (array/push ret (...
framework/st_things : fix implicit memory leak. It doesn't free the memory which has allocated device and resource type information.
@@ -392,12 +392,17 @@ static struct st_resource_type_s *create_resource_type() } memset(type->rt, 0, (size_t) MAX_ATTRIBUTE_LENGTH); - memset(type->prop, 0, (size_t) MAX_PROPERTY_CNT); + memset(type->prop, 0, (size_t)(sizeof(things_attribute_info_s*) * MAX_PROPERTY_CNT)); type->prop_cnt = 0; return type; } +static void...
[kernel] add assert to mempool object
@@ -150,6 +150,8 @@ rt_err_t rt_mp_detach(struct rt_mempool *mp) /* parameter check */ RT_ASSERT(mp != RT_NULL); + RT_ASSERT(rt_object_get_type(&mp->parent) == RT_Object_Class_MemPool); + RT_ASSERT(rt_object_is_systemobject(&mp->parent)); /* wake up all suspended threads */ while (!rt_list_isempty(&(mp->suspend_thread)...