message
stringlengths
6
474
diff
stringlengths
8
5.22k
yin parser CHANGE add validation of elements with text content
@@ -1197,7 +1197,7 @@ yin_parse_content(struct yin_parser_ctx *ctx, struct yin_subelement *subelem_inf } else { /* elements with text or none content */ /* save text content, if text_content isn't set, it's just ignored */ - /* TODO add text validation */ + LY_CHECK_RET(yin_validate_value(ctx, Y_STR_ARG, out, out_len))...
Build: Verify Sample[Custom].plist on build
#!/bin/bash +abort() { + echo "ERROR: $1!" + exit 1 +} + buildutil() { UTILS=( "AppleEfiSignTool" @@ -281,5 +286,19 @@ export NO_ARCHIVES src=$(curl -Lfs https://raw.githubusercontent.com/acidanthera/ocbuild/master/efibuild.sh) && eval "$src" || exit 1 +cd Utilities/ocvalidate || exit 1 +ocv_tool="" +if [ -x ./ocvalida...
Bump windows version in actions
@@ -58,7 +58,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [windows-2019, windows-2016] + os: [windows-2022, windows-2019] steps: - uses: actions/checkout@v2
Fixed display of market values
@@ -90,7 +90,7 @@ if (what == kBaseUrl) // Denarius Price // QNetworkReply is a QIODevice. So we read from it just like it was a file QString denarius = finished->readAll(); denarius2 = (denarius.toDouble()); - denarius = QString::number(denarius2); + denarius = QString::number(denarius2, 'f', 2); if(denarius > denariu...
Add validation of PP for cache start config
@@ -1593,6 +1593,11 @@ static int _ocf_mngt_cache_validate_cfg(struct ocf_mngt_cache_config *cfg) return -OCF_ERR_INVAL; } + if (cfg->promotion_policy >= ocf_promotion_max || + cfg->promotion_policy < 0 ) { + return -OCF_ERR_INVAL; + } + if (!ocf_cache_line_size_is_valid(cfg->cache_line_size)) return -OCF_ERR_INVALID_C...
Documenting creating integer build
@@ -55,6 +55,22 @@ editing `BIT_RATE_DEFAULT` in `app/include/user_config.h`: Note that, by default, the firmware runs an auto-baudrate detection algorithm so that typing a few characters at boot time will cause the firmware to lock onto that baud rate (between 1200 and 230400). +### Integer build +By default a build w...
dsp/lossless_enc.c: clear int sanitizer warnings add explicit casts in calls to ColorTransformDelta() clears warnings of the form: implicit conversion from type 'uint8_t' (aka 'unsigned char') of value 254 (8-bit, unsigned) to type 'int8_t' (aka 'signed char') changed the value to -2 (8-bit, signed)
@@ -547,10 +547,10 @@ void VP8LTransformColor_C(const VP8LMultipliers* const m, uint32_t* data, const int8_t red = U32ToS8(argb >> 16); int new_red = red & 0xff; int new_blue = argb & 0xff; - new_red -= ColorTransformDelta(m->green_to_red_, green); + new_red -= ColorTransformDelta((int8_t)m->green_to_red_, green); new_...
The test now must check that the response header is preserved
@@ -51,7 +51,7 @@ EOT my $curl = 'curl --silent --dump-header /dev/stderr'; my ($headers, $body) = run_prog("$curl http://127.0.0.1:@{[$server->{port}]}/fixed-date-header"); - unlike $headers, qr/Thu, 01 Jan 1970 00:00:00 GMT/, "date response header from upstream should be dropped and replaced"; + like $headers, qr/Thu...
bletiny - Fix "disc full". It looks like this broke when a certification compliance issue was fixed. The app was specifying a chr_val handle that is one too small.
@@ -702,7 +702,7 @@ bletiny_disc_full_dscs(uint16_t conn_handle) bletiny_full_disc_prev_chr_val <= chr->chr.def_handle) { rc = bletiny_disc_all_dscs(conn_handle, - chr->chr.val_handle, + chr->chr.val_handle + 1, chr_end_handle(svc, chr)); if (rc != 0) { bletiny_full_disc_complete(rc);
Update README.md add test coverage badge
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT) [![Travis_ci](https://travis-ci.org/aergoio/aergo.svg?branch=master)](https://travis-ci.org/aergoio/aergo) [![Maintainability](https://api.codeclimate.com/v1/badges/8ae0a363155bd9e8bccb/maintainability)](https://cod...
srp: leverage vlib_buffer_get_current
@@ -167,8 +167,8 @@ srp_input (vlib_main_t * vm, b0 = vlib_get_buffer (vm, bi0); b1 = vlib_get_buffer (vm, bi1); - s0 = (void *) (b0->data + b0->current_data); - s1 = (void *) (b1->data + b1->current_data); + s0 = vlib_buffer_get_current (b0); + s1 = vlib_buffer_get_current (b1); /* Data packets are always assigned to ...
Added CI test for benchmarks/rpl-req-resp
@@ -39,6 +39,7 @@ libs/data-structures/zoul \ libs/ipv6-uipbuf/zoul \ nullnet/zoul \ slip-radio/zoul \ +benchmarks/rpl-req-resp/zoul \ dev/gpio-hal/zoul:BOARD=remote-reva \ dev/gpio-hal/zoul:BOARD=remote-revb \ dev/gpio-hal/zoul:BOARD=firefly-reva \
external/libopus : Use variable arrays instead of shared pointers
@@ -79,7 +79,7 @@ CFLAGS := -DNULL=0 -DSOCKLEN_T=socklen_t -DLOCALE_NOT_USED \ -Drestrict='' -D__EMX__ -DOPUS_BUILD \ -DHAVE_LRINT -DHAVE_LRINTF -O1 -fno-math-errno CFLAGS += -DFIXED_POINT -DDISABLE_FLOAT_API -CFLAGS += -DUSE_SHAREDPTR +CFLAGS += -DVAR_ARRAYS CFLAGS += -I$(TOPDIR)/$(EXTDIR)/libopus CFLAGS += -I$(TOPDIR...
allocate fixed map status alongside request struct It is wastefull to allocate a full 1B to store 1 bit of alock status per cacheline. Fixed allocation of 128 bits seems more reasonable.
@@ -59,8 +59,13 @@ static inline size_t ocf_req_sizeof_alock_status(uint32_t lines) int ocf_req_allocator_init(struct ocf_ctx *ocf_ctx) { - ocf_ctx->resources.req = env_mpool_create(sizeof(struct ocf_request), - sizeof(struct ocf_map_info) + sizeof(uint8_t), ENV_MEM_NORMAL, ocf_req_size_128, + enum ocf_req_size max_req...
Disallow ordering (to be revisited)
@@ -89,11 +89,17 @@ int grib_tool_init(grib_runtime_options* options) json_latlon=1; } + /* TODO: sort when JSON is on */ + if (grib_options_on("j") && grib_options_on("B:")) { + fprintf(stderr, "Error: -j and -B options are incompatible\n"); + exit(1); + } + if (options->latlon) { lat = strtod(options->latlon,&theEnd)...
Fix bug that reordered Initial is treated as protocol error
@@ -4630,22 +4630,11 @@ static ssize_t conn_recv_handshake_pkt(ngtcp2_conn *conn, ngtcp2_qlog_write_frame(&conn->qlog, fr); } - if (conn->server) { - switch (hd.type) { - case NGTCP2_PKT_INITIAL: - if (ngtcp2_rob_first_gap_offset(&crypto->rx.rob) == 0) { - return NGTCP2_ERR_PROTO; - } - break; - case NGTCP2_PKT_HANDSHA...
Comment to explain sway_shortcut_state lists
#define SWAY_KEYBOARD_PRESSED_KEYS_CAP 32 struct sway_shortcut_state { + /** + * A list of pressed key ids (either keysyms or keycodes), + * including duplicates when different keycodes produce the same key id. + * + * Each key id is associated with the keycode (in `pressed_keycodes`) + * whose press generated it, so t...
Update README.md Minor typographical fix.
@@ -48,7 +48,7 @@ take a look at [yextend](https://github.com/BayshoreNetworks/yextend), a very helpful extension to YARA developed and open-sourced by Bayshore Networks. Additionally, they guys from [InQuest](https://inquest.net/) have curated an -aweseome list of [YARA-related stuff](https://github.com/InQuest/awesom...
Fix thinlto build: seems like a bug in clang cuda support Note: mandatory check (NEED_CHECK) was skipped
@@ -24,8 +24,9 @@ SRCS( IF (HAVE_CUDA AND NOT GCC) INCLUDE(${ARCADIA_ROOT}/catboost/libs/cuda_wrappers/default_nvcc_flags.make.inc) + SRC(cuda/evaluator.cu -fno-lto) + SRCS( - cuda/evaluator.cu cuda/evaluator.cpp ) PEERDIR(
s5j/rtc: initialize BCDYEAR at boot On power-on-reset, BCDYEAR in RTC is set to zero which means year 1900. Since the date and time conversion functions can handle date only after 1970. We need to set BCDYEAR to something greater than that. Year 2010 seems reasonable.
@@ -433,6 +433,11 @@ int up_rtc_initialize(void) putreg32(1, S5J_RTC_BCDMON); } + /* OS supports to convert epoch only after 1970. Set year to 2010. */ + if (getreg32(S5J_RTC_BCDYEAR) == 0) { + putreg32(0x110, S5J_RTC_BCDYEAR); + } + rtc_wprlock(); g_rtc_enabled = true;
.github: can't use shell ||
@@ -61,10 +61,10 @@ jobs: touch conffile.yy.c conffile.tab.c conffile.tab.h touch configure.ac Makefile.am aclocal.m4 configure touch Makefile.in config.h.in - - name: build variant - run: | - ./configure --disable-maintainer-mode ${{ matrix.features }} || exit 1 - make CFLAGS="-O3 -Wall -Werror -Wshadow -pipe" clean c...
release: fix path expansion
# # @brief Inserts hashsums of source archive and git statistics into release notes # and sets final name of release notes. -set -ex +set -ex +f KDB_VERSION=$1 ARCHIVE_DIR=$2 @@ -48,7 +48,7 @@ generate_hashsums() { update_alpine_release_image() { # update Alpine Linux image to new Elektra release - sed -i "s/ELEKTRA_RE...
add experimental tests
@@ -270,6 +270,7 @@ try{ "Host verification 1804 Release": { ACCHostVerificationTest('18.04', 'Release') }, "ACC1804 GNU gcc SGX1FLC": { ACCGNUTest() }, + "ACC1804 clang-7 Release Experimental LVI FULL Tests": { ACCTest(AGENTS_LABELS["acc-ubuntu-18.04"], 'clang-7', 'Release', ['-DLVI_MITIGATION=ControlFlow', '-DLVI_MIT...
hv: instr_emul: remove goto in get_gva_di_check remove goto statement in get_gva_di_check() routine Acked-by: Eddie Dong
@@ -999,14 +999,12 @@ static int32_t get_gva_di_check(struct acrn_vcpu *vcpu, struct instr_emul_vie *v static int32_t emulate_movs(struct acrn_vcpu *vcpu, const struct instr_emul_vie *vie) { uint64_t src_gva, gpa, val = 0UL; - uint64_t rcx, rdi, rsi, rflags; + uint64_t rcx = 0U, rdi, rsi, rflags; uint32_t err_code; enu...
Update `npm run missing-translations` script to insert missing keys and remove unused keys
/* eslint-disable global-require */ /* eslint-disable import/no-dynamic-require */ /* eslint-disable no-console */ +const fs = require("fs"); const locale = process.argv[2]; if (!locale) { @@ -13,6 +14,12 @@ if (!locale) { process.exit(); } +if (locale === "en") { + console.log("Can't run script on English language fil...
mm: fix memory overhead when realloc fallbacks to malloc When realloc() has to fall back to calling malloc(), size including overhead was being provided to malloc(), causing a slightly larger allocation than needed. Noted by [Song: back-ported from the NuttX upstream]
@@ -109,7 +109,7 @@ FAR void *mm_realloc(FAR struct mm_heap_s *heap, FAR void *oldmem, size_t size) FAR struct mm_allocnode_s *oldnode; FAR struct mm_freenode_s *prev; FAR struct mm_freenode_s *next; - size_t origsize; + size_t newsize; size_t oldsize; size_t prevsize = 0; size_t nextsize = 0; @@ -132,12 +132,11 @@ FAR...
Fix build script regression
@@ -170,7 +170,7 @@ def readUncommentedLines(fileName): return lines_out def readLicense(): - with open('%s/LICENSE', getBaseDir()) as f: + with open('%s/LICENSE' % getBaseDir(), 'r') as f: licenseText = f.read() return licenseText
propagate cache properly when erroring inside /_
|= {cof/cafe dir/knot} =+ nod=(chap(s.how [dir s.how]) cof bax hon) ?: ?=($2 -.q.nod) - (flue cof) + (flue p.nod) (cope nod (flux some)) %- flux |= doy/(map @ cage) ^- vase
Updates to CHANGES and NEWS for the new release.
o Add support for SipHash o Grand redesign of the OpenSSL random generator + Major changes between OpenSSL 1.1.0h and OpenSSL 1.1.0i [under development] + + o Client DoS due to large DH parameter (CVE-2018-0732) + o Cache timing vulnerability in RSA Key Generation (CVE-2018-0737) + Major changes between OpenSSL 1.1.0g ...
Fix camera instant movement bug in Dragonborne credits
@@ -282,8 +282,6 @@ UBYTE ScriptUpdate_Emote() { } UBYTE ScriptUpdate_MoveCamera() { - // If camera is animating move towards location - if ((camera_settings & CAMERA_TRANSITION_FLAG) == CAMERA_TRANSITION_FLAG) { if ((game_time & camera_speed) == 0) { if (camera_pos.x > camera_dest.x) { camera_pos.x--; @@ -302,16 +300,...
build BUGFIX support for older cmake versions
@@ -4,7 +4,9 @@ include(GNUInstallDirs) include(CheckFunctionExists) include(CheckCSourceCompiles) include(CheckIncludeFile) +if(POLICY CMP0075) cmake_policy(SET CMP0075 NEW) +endif() # include custom Modules set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/CMakeModules/")
examples/testcase/kernel: enable kernel tc defaultly Even if CONFIG_EXAMPLES_TESTCASE is enabled, noTC can be enabled. It causes compilation error like "pid is declared but not used in tc_main.c" Only kernel is a mandatory so that let's enable kernel tc defaultly with CONFIG_EXAMPLES_TESTCASE.
menuconfig EXAMPLES_TESTCASE_KERNEL bool "Kernel TestCase Example" - default n + default y ---help--- Enable the Kernel TestCase Example @@ -17,7 +17,7 @@ config DEBUG_TC_KN config TC_KN_ALL bool "All" - default n + default y select TC_KERNEL_CLOCK select TC_KERNEL_ENVIRON select TC_KERNEL_ERRNO
Removed DKEYMAP and added split build directories
@@ -43,7 +43,7 @@ Given the following: You can build ZMK with the following: ```sh -west build -b proton_c -- -DSHIELD=kyria_left -DKEYMAP=default +west build -b proton_c -- -DSHIELD=kyria_left ``` ### Keyboard With Onboard MCU @@ -58,14 +58,29 @@ Given the following: you can build ZMK with the following: ```sh -west b...
hw/ipc_nrf5340: Remove unused includes
#include <os/os.h> #include <ipc_nrf5340/ipc_nrf5340.h> #include <nrfx.h> -#include <hal/hal_gpio.h> -#include <bsp.h> -#include <nrf_mutex.h> #include "ipc_nrf5340_priv.h" #if MYNEWT_VAL(IPC_NRF5340_NET_GPIO)
[lighttpd-angel] waitpid after HUP before restart When lighttpd-angel gets SIGHUP, lighttpd-angel sends SIGINT to the lighttpd process, which triggers lighttpd graceful shutdown. Wait for lighttpd process to exit before starting a new process. Avoid theoretical race condition between kill() and waitpid() by removing ca...
@@ -32,8 +32,6 @@ static volatile pid_t pid = -1; #define UNUSED(x) ( (void)(x) ) static void sigaction_handler(int sig, siginfo_t *si, void *context) { - int exitcode; - UNUSED(context); switch (sig) { case SIGINT: @@ -51,14 +49,10 @@ static void sigaction_handler(int sig, siginfo_t *si, void *context) { /** do a grac...
extmod/modwebrepl: Make prompt/ver static arrays const to not use RAM. The esp8266 lwip_open library is compiled with -mforce-l32 so these arrays do not need to be in RAM.
@@ -67,10 +67,9 @@ typedef struct _mp_obj_webrepl_t { mp_obj_t cur_file; } mp_obj_webrepl_t; -// These get passed to functions which aren't force-l32, so can't be const -STATIC char passwd_prompt[] = "Password: "; -STATIC char connected_prompt[] = "\r\nWebREPL connected\r\n>>> "; -STATIC char denied_prompt[] = "\r\nAcc...
Detect arm and arm64.
@@ -238,7 +238,8 @@ set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES # 'macosx', 'windows', and 'uwp' (Universal Windows Platform). # # TINYSPLINE_PLATFORM_ARCH -# Architecture of target platform. Supported values are: 'x86' and 'x86_64'. +# Architecture of target platform. Supported values are: 'arm', '...
Post-release: Set PREMAKE_VERSION to dev
#include <stdlib.h> -#define PREMAKE_VERSION "5.0.0-alpha13" +#define PREMAKE_VERSION "5.0.0-dev" #define PREMAKE_COPYRIGHT "Copyright (C) 2002-2018 Jason Perkins and the Premake Project" #define PREMAKE_PROJECT_URL "https://github.com/premake/premake-core/wiki"
docs: updata BoAT_User_Guide_en.md change "that be used to generate C language contract" to "which are used to generate C language contract".
@@ -72,7 +72,7 @@ The blockchain client interface protocol mainly implements transaction interface The remote procedure call(RPC) interface implements a warpper for different communication protocols. This component needs to be ported according to the specific communication method supported by the IoT device. Public com...
dev-tools/scipy: update python3 binary name for centos
@@ -44,6 +44,7 @@ Requires: openblas-%{compiler_family}%{PROJ_DELIM} %if 0%{?sles_version} || 0%{?suse_version} %define python_module() python-%{**} python3-%{**} %else +%define __python3 /usr/bin/python3.4 %define python_module() python-%{**} python34-%{**} %endif
network: fixed a typo
@@ -58,8 +58,9 @@ FLB_TLS_DEFINE(struct flb_net_dns, flb_net_dns_ctx); void flb_net_dns_ctx_init() { - FLB_TLS_INIT(flb_sched_ctx); + FLB_TLS_INIT(flb_net_dns_ctx); } + struct flb_net_dns *flb_net_dns_ctx_get() { return FLB_TLS_GET(flb_net_dns_ctx);
mmapstorage: fix ksResize for mmapped keysets
#include "kdbinternal.h" #include <kdbassert.h> -<<<<<<< HEAD #include <kdbrand.h> -======= + #include <kdblogger.h> ->>>>>>> mmapstorage: backup + #define ELEKTRA_MAX_PREFIX_SIZE sizeof ("namespace/") @@ -2507,7 +2506,7 @@ Key * ksLookupByBinary (KeySet * ks, const void * value, size_t size, option_t o * * Resize keys...
Add missing idle process check to PhWalkThreadStack
@@ -1535,7 +1535,7 @@ NTSTATUS PhWalkThreadStack( { if (ClientId->UniqueThread == NtCurrentTeb()->ClientId.UniqueThread) isCurrentThread = TRUE; - if (ClientId->UniqueProcess == SYSTEM_PROCESS_ID) + if (ClientId->UniqueProcess == SYSTEM_IDLE_PROCESS_ID || ClientId->UniqueProcess == SYSTEM_PROCESS_ID) isSystemThread = T...
docs(arduino) update some outdated information This fixes some broken links and updates the steps to match the new repository layout.
# Arduino -The [core LVGL library](https://github.com/lvgl/lvgl) and the [examples](https://github.com/lvgl/lv_examples) are directly available as Arduino libraries. +The [core LVGL library](https://github.com/lvgl/lvgl) and the [demos](https://github.com/lvgl/lv_demos) are directly available as Arduino libraries. Note...
Switch OpenVR back to non-imported library; Building it from source results in a 7-8x smaller binary.
@@ -167,17 +167,21 @@ endif() # OpenVR if(LOVR_ENABLE_HEADSET AND LOVR_USE_OPENVR) - add_library(openvr SHARED IMPORTED) + set(BUILD_SHARED ON CACHE BOOL "") + set(BUILD_UNIVERSAL OFF CACHE BOOL "") include_directories(deps/openvr/headers) - if(WIN32) - set_target_properties(openvr PROPERTIES IMPORTED_LOCATION "${CMAKE...
fs/shm: update pointer arithmetic logic
@@ -45,7 +45,7 @@ FAR struct shmfs_object_s *shmfs_alloc_object(size_t length) object = kmm_zalloc(sizeof(struct shmfs_object_s) + length); if (object) { - object->paddr = (FAR char *)object + sizeof(struct shmfs_object_s); + object->paddr = (FAR char *)(object + 1); allocated = true; }
webterm: v1.1.0 Compatibility with dill changes. Sessions support.
:~ title+'Terminal' info+'A web interface to your Urbit\'s command line.' color+0x2e.4347 - glob-http+['https://bootstrap.urbit.org/glob-0v7.1hgb7.euged.6oj3e.cdhdg.rah02.glob' 0v7.1hgb7.euged.6oj3e.cdhdg.rah02] + glob-http+['https://bootstrap.urbit.org/glob-0v5.hvjci.n7c4h.1onl6.34g14.fut7c.glob' 0v5.hvjci.n7c4h.1onl6...
Trying TRAVIS_PULL_REQUEST_BRANCH.
@@ -36,10 +36,10 @@ git: lfs_skip_smudge: true script: - - if [ "$TRAVIS_PULL_REQUEST" = "true" ]; then make coverage; fi - - if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then py.test; fi + - if [ "$TRAVIS_PULL_REQUEST_BRANCH" = "master" ]; then make coverage; fi + - if [ "$TRAVIS_PULL_REQUEST_BRANCH" = "" ]; then py.test;...
update launcher for TAAC
@@ -20,6 +20,32 @@ class JobSubmitter_ibrun_TACC(JobSubmitter_ibrun): def Executable(self): return ["ibrun", "tacc_xrun", "tacc_affinity"] +############################################################################### +# Class: JobSubmitter_sbatch_TACC +# +# Purpose: Custom "sbatch" job submitter for TACC. +# +# Prog...
[arch][x86][cpuid] clamp number of cpuid entries to read at boot Make sure we only read up to the max amount of cpuid values we have preallocated in our static array.
@@ -107,7 +107,7 @@ static void x86_cpu_detect(void) { // read the max basic cpuid leaf cpuid(X86_CPUID_BASE, &a, &b, &c, &d); - max_cpuid_leaf = a; + max_cpuid_leaf = MIN(a, __X86_MAX_SUPPORTED_CPUID);; // read the vendor string union { @@ -125,13 +125,15 @@ static void x86_cpu_detect(void) { // read max extended cpui...
Add assert to luv_error to make sure it never gets called with a non-error
@@ -40,6 +40,7 @@ void luv_stack_dump(lua_State* L, const char* name) { } static int luv_error(lua_State* L, int status) { + assert(status < 0); lua_pushnil(L); lua_pushfstring(L, "%s: %s", uv_err_name(status), uv_strerror(status)); lua_pushstring(L, uv_err_name(status));
Fix sm3ss1 translation issue in sm3-armv8.pl
@@ -109,7 +109,7 @@ ___ $code=<<___; #include "arm_arch.h" -.arch armv8.2-a+sm4 +.arch armv8.2-a .text ___ @@ -222,8 +222,8 @@ my %sm3partopcode = ( "sm3partw1" => 0xce60C000, "sm3partw2" => 0xce60C400); -my %sm3sslopcode = ( - "sm3ssl" => 0xce400000); +my %sm3ss1opcode = ( + "sm3ss1" => 0xce400000); my %sm3ttopcode = ...
Update: also don't conceptualize (cond,op) pairs
@@ -104,7 +104,7 @@ Concept *Memory_FindConceptByTerm(Term *term) Concept* Memory_Conceptualize(Term *term, long currentTime) { - if(Narsese_isOperation(term)) //don't conceptualize operations + if(Narsese_getOperationID(term)) //don't conceptualize operations { return NULL; }
Tests: fixed port number in test_basic.t.
@@ -110,14 +110,14 @@ class TestUnitBasic(unit.TestUnitControl): self.assertEqual(self.get('/listeners'), {"*:8081": {"application":"app"}}, 'put listeners prefix') - self.put('/listeners/*:8080', '{"application":"app"}') + self.put('/listeners/*:8082', '{"application":"app"}') self.assertEqual(self.get('/listeners'), ...
Fix bug that error is swallowed
@@ -5046,7 +5046,7 @@ static int conn_recv_path_response(ngtcp2_conn *conn, ngtcp2_path_response *fr, rv = conn_retire_dcid(conn, &conn->dcid.current, ts); if (rv != 0) { - goto fail; + return rv; } ngtcp2_dcid_copy(&conn->dcid.current, &pv->dcid); } @@ -5061,7 +5061,7 @@ static int conn_recv_path_response(ngtcp2_conn ...
Modify build warning options in qemu/tc_16m_grpc Modify C++ warning options of grpc which issue a lot of build warnings as grpc doesn't check them strictly 1. removed : -Wshadow, -Wundef, -pedantic 2. added : -Wno-sign-compare
@@ -105,7 +105,7 @@ endif ARCHCFLAGS = -fno-builtin ARCHCXXFLAGS = -fno-builtin -fexceptions -mcpu=cortex-r4 -mfpu=vfpv3 -fpermissive -std=c++11 -fno-rtti ARCHWARNINGS = -Wall -Werror -Wstrict-prototypes -Wshadow -Wundef -Wno-implicit-function-declaration -Wno-unused-function -Wno-unused-but-set-variable -ARCHWARNINGSX...
no such friend exists now
@@ -192,8 +192,6 @@ namespace NCatboostCuda { friend class TDataProviderBuilder; friend class TCpuPoolBasedDataProviderBuilder; - - friend class TCatBoostProtoPoolReader; }; //TODO(noxoomo): move to proper place
AddFeedBanner: show only to owner
@@ -10,6 +10,7 @@ import { Route } from 'react-router-dom'; import useGroupState from '~/logic/state/group'; import useMetadataState from '~/logic/state/metadata'; +import {resourceFromPath} from '@urbit/api'; function GroupHome(props) { @@ -19,12 +20,15 @@ function GroupHome(props) { baseUrl } = props; + const { ship ...
do not resolve to localhost
@@ -100,6 +100,7 @@ void dht_callback_func(void *closure, int event, const uint8_t *info_hash, const } } +#if 0 /* * Lookup in values we announce ourselves. * Useful for networks of only one node, also faster. @@ -129,6 +130,7 @@ void kad_lookup_own_announcements(struct search_t *search) } } } +#endif // Handle incomin...
lwip: Update default MEMP_NUM_SYS_TIMEOUT if timers on-demand
@@ -1367,6 +1367,8 @@ static inline uint32_t timeout_from_offered(uint32_t lease, uint32_t min) #ifdef CONFIG_LWIP_TIMERS_ONDEMAND #define ESP_LWIP_IGMP_TIMERS_ONDEMAND 1 #define ESP_LWIP_MLD6_TIMERS_ONDEMAND 1 +#define LWIP_NUM_SYS_TIMEOUT_INTERNAL_WOUT_IGMP_MLD6 (LWIP_TCP + IP_REASSEMBLY + LWIP_ARP + (2*LWIP_DHCP) + ...
Simplify MANGOHUD_LOG_LEVEL TO SPDLOG_LEVEL
@@ -78,26 +78,16 @@ void init_spdlog() #endif spdlog::cfg::load_env_levels(); - const char* log_level = getenv("MANGOHUD_LOG_LEVEL"); - if (log_level) { - std::string level = log_level; - if( level == "off" || level == "OFF" ) { - spdlog::set_level(spdlog::level::level_enum::off); + // Use MANGOHUD_LOG_LEVEL to corresp...
avx512/permutex2var: work around incorrect definition on old clang We already worked around this in the _mm256_blend_epi16 implementation, but with -fno-lax-vector-conversions we also need to work around it in other places where we call _mm256_blend_epi16.
@@ -703,8 +703,8 @@ simde_mm256_permutex2var_epi16 (simde__m256i a, simde__m256i idx, simde__m256i b _mm256_castsi256_ps(tb), _mm256_castsi256_ps(select))); - lo = _mm256_blend_epi16(_mm256_slli_epi32(hilo2, 16), hilo, 0x55); - hi = _mm256_blend_epi16(hilo2, _mm256_srli_epi32(hilo, 16), 0x55); + lo = HEDLEY_REINTERPRET...
using MFU_FLIST_NULL check instead
@@ -1054,8 +1054,8 @@ static void dcmp_strmap_compare(mfu_flist src_list, mfu_flist dst_compare_list = mfu_flist_subset(dst_list); /* remove and copy lists for sync option */ - mfu_flist dst_remove_list = NULL; - mfu_flist src_cp_list = NULL; + mfu_flist dst_remove_list = MFU_FLIST_NULL; + mfu_flist src_cp_list = MFU_F...
rust: Move kdb oneliner into module
+//! General methods to access the Key database. +//! +//! For example usage see the [Readme](https://github.com/ElektraInitiative/libelektra/tree/master/src/bindings/rust). + use crate::ReadableKey; use crate::{KeySet, StringKey, WriteableKey}; use std::error::Error; use std::fmt::{self, Display, Formatter}; use std::...
BP: fix gps enable pin
@@ -81,16 +81,16 @@ void black_set_gps_mode(uint8_t mode) { switch (mode) { case GPS_DISABLED: // GPS OFF - set_gpio_output(GPIOC, 14, 0); + set_gpio_output(GPIOC, 12, 0); set_gpio_output(GPIOC, 5, 0); break; case GPS_ENABLED: // GPS ON - set_gpio_output(GPIOC, 14, 1); + set_gpio_output(GPIOC, 12, 1); set_gpio_output(G...
License: Fix minor spelling mistake
# BSD 3-Clause License -Copyright (c) 2018 [Elektra Initiative](/doc/AUTHORS.md), All rights reserved. +Copyright (c) 2018 [Elektra Initiative](/doc/AUTHORS.md). All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are...
OpenSSL::Test::__fixup_prg: don't check program existence The program will fail to run if it doesn't exist anyway, no need to check its existence here. Fixes
@@ -1084,11 +1084,6 @@ sub __fixup_prg { $prefix = ($prog =~ /^(?:[\$a-z0-9_]+:)?[<\[]/i ? "mcr " : "mcr []"); } - # We test if the program to use exists. - if ( ! -x $prog ) { - $prog = undef; - } - if (defined($prog)) { # Make sure to quotify the program file on platforms that may # have spaces or similar in their pa...
esp8266/README: Emphasize the need to change default WiFi password.
@@ -92,12 +92,16 @@ of FlashROM. First start ----------- +Be sure to change ESP8266's WiFi access point password ASAP, see below. + __Serial prompt__ You can access the REPL (Python prompt) over UART (the same as used for programming). - Baudrate: 115200 +Run `help()` for some basic information. + __WiFi__ Initially, t...
Allocate EVP_PBE_CTL with OPENSSL_zalloc. Fixes openssl#18598.
@@ -204,7 +204,7 @@ int EVP_PBE_alg_add_type(int pbe_type, int pbe_nid, int cipher_nid, goto err; } - if ((pbe_tmp = OPENSSL_malloc(sizeof(*pbe_tmp))) == NULL) + if ((pbe_tmp = OPENSSL_zalloc(sizeof(*pbe_tmp))) == NULL) goto err; pbe_tmp->pbe_type = pbe_type;
fs/littlefs: set `LFS_NAME_MAX` to `CONFIG_NAME_MAX`
@@ -37,6 +37,7 @@ CFLAGS += -DLFS_WARN=fwarn CFLAGS += -DLFS_ERROR=ferr CFLAGS += -DLFS_ASSERT=DEBUGASSERT CFLAGS += -DLFS_CONFIG=../lfs_vfs.h +CFLAGS += -DLFS_NAME_MAX=$(CONFIG_NAME_MAX) LITTLEFS_VERSION ?= 2.4.0 LITTLEFS_TARBALL = v$(LITTLEFS_VERSION).tar.gz
change dataContext.tokenContext.fieldIndex to uint16_t to avoid plugin's 'context->parameterOffset' overflow on large tx
@@ -53,7 +53,7 @@ typedef struct tokenContext_t { uint8_t pluginStatus; uint8_t data[INT256_LENGTH]; - uint8_t fieldIndex; + uint16_t fieldIndex; uint8_t fieldOffset; uint8_t pluginUiMaxItems;
README.md: more formatting
@@ -35,12 +35,16 @@ On __Windows__, - Exception: seh - Build revision: 1 - Destination Folder: Select a folder that your Windows user owns + 2. Install SDL2 http://libsdl.org/download-2.0.php - Extract the SDL2 folder from the archive using a tool like [7zip](http://7-zip.org) - Inside the folder, copy the `i686-w64-mi...
Add struct name according to coding standard
#define HTTP_HEADER_CONNECTION_VALUE_MAX_LEN ( sizeof( "keep-alive" ) ) /* Struct for HTTP callback data. */ -typedef struct +typedef struct _httpCallbackData { char pRangeValueStr[ HTTP_HEADER_RANGE_VALUE_MAX_LEN ]; /* Buffer to write the HTTP "range" header value string. */ } _httpCallbackData_t; /* Struct for HTTP c...
setup_psa_key_derivation(): change salt parameter to other_secret
@@ -4715,7 +4715,8 @@ static psa_status_t setup_psa_key_derivation( psa_key_derivation_operation_t* de psa_algorithm_t alg, const unsigned char* seed, size_t seed_length, const unsigned char* label, size_t label_length, - const unsigned char* salt, size_t salt_length, + const unsigned char* other_secret, + size_t other...
Fix contrib/fastrpz.patch to apply cleanly. Fix for serve-stale fixes, but it does not compile, conflicts with new rpz code.
12 February 2020: Wouter - Fix with libnettle make test with dsa disabled. - - Fix contrib/fastrpz.patch to apply cleanly. + - Fix contrib/fastrpz.patch to apply cleanly. Fix for serve-stale + fixes, but it does not compile, conflicts with new rpz code. 10 February 2020: George - Document 'ub_result.was_ratelimited' in...
update timing for openmote-b-24ghz
#define PORT_PIN_RADIO_RESET_HIGH() // nothing #define PORT_PIN_RADIO_RESET_LOW() // nothing -#define SLOTDURATION 15 // in miliseconds +#define SLOTDURATION 20 // in miliseconds //===== IEEE802154E timing // radio watchdog #endif -#if SLOTDURATION==15 - // time-slot related - #define PORT_TsSlotDuration 492 // counter...
set txn->client in nni_http_transact Otherwise connections are not closed in reaper.
@@ -465,7 +465,7 @@ nni_http_transact(nni_http_client *client, nni_http_req *req, } nni_aio_list_init(&txn->aios); - txn->client = NULL; + txn->client = client; txn->conn = NULL; txn->req = req; txn->res = res;
Update versioning.md Fixing typo
@@ -30,7 +30,7 @@ SDK maintainer preparing the release must: - check-in the `Version.hpp` and send a PR to merge it in the `master` branch - use [GitHub Release Management Tab](https://github.com/microsoft/cpp_client_telemetry/releases/new) to create a corresponding `v3.x.x` release tag -- individual products may refre...
Fix handle scan error checking
@@ -941,29 +941,30 @@ NTSTATUS PhpEnumHiddenProcessHandles( if (!NT_SUCCESS(status = PhEnumProcesses(&processes))) return status; - if (NT_SUCCESS(NtGetNextProcess( + if (!NT_SUCCESS(status = NtGetNextProcess( NULL, - PROCESS_QUERY_LIMITED_INFORMATION, + ProcessQueryAccess, 0, 0, &processHandle ))) - { + goto CleanupEx...
Add -march=haswell to HASWELL part of DYNAMIC_ARCH build
@@ -16,6 +16,8 @@ ifeq ($(TARGET_CORE), SKYLAKEX) override CFLAGS += -fno-asynchronous-unwind-tables endif endif +elseifeq($(TARGET_CORE), HASWELL) + override CFLAGS += -DBUILD_KERNEL -DTABLE_NAME=gotoblas_$(TARGET_CORE) -march=haswell else override CFLAGS += -DBUILD_KERNEL -DTABLE_NAME=gotoblas_$(TARGET_CORE) endif
X509_add_certs(): Add to doc some warning notes on memory management
@@ -19,6 +19,9 @@ X509_add_cert() adds a certificate I<cert> to the given list I<sk>. X509_add_certs() adds a list of certificate I<certs> to the given list I<sk>. The I<certs> argument may be NULL, which implies no effect. +It does not modify the list I<certs> but +in case the B<X509_ADD_FLAG_UP_REF> flag (described b...
fsplib.c: detect dirent struct members
@@ -639,9 +639,8 @@ int fsp_readdir_r(FSP_DIR *dir,struct dirent *entry, struct dirent **result) if (rc != 0) return rc; -#ifdef HAVE_DIRENT_TYPE +#if defined(_DIRENT_HAVE_D_TYPE) || defined(DTTOIF) // glibc || generic /* convert FSP dirent to OS dirent */ - if (fentry.type == FSP_RDTYPE_DIR ) entry->d_type=DT_DIR; els...
Explicitly check for EPSG3857 projection in datasources
#include "renderers/MapRenderer.h" #include "renderers/TileRenderer.h" #include "projections/Projection.h" +#include "projections/EPSG3857.h" #include "ui/UTFGridClickInfo.h" #include "utils/Const.h" #include "utils/TileUtils.h" @@ -201,6 +202,10 @@ namespace carto { if (!dataSource) { throw NullArgumentException("Null...
[PATCH] BugID:20688421:Set all wifi task to be with same priority
@@ -33,7 +33,7 @@ r_u32 rda_hut_dump = 0; #define RECONN_TIMES 3 #define DAEMON_MAILQ_SIZE 10 -#define AOS_MACLIB_APP_PRI 16 +#define RDA_WIFI_TASK_PRI 16 static bool rda_lwip_tcpip_init_flag = false; static sys_sem_t rda_lwip_tcpip_inited; @@ -646,9 +646,9 @@ r_s32 rda59xx_wifi_init() //tcpip_init(NULL, NULL); //macli...
Suppress warnings about loss of precision in win32;
@@ -309,6 +309,9 @@ target_link_libraries(lovr ) if(WIN32) + # Disable warnings about loss of precision for lua_Number + set_target_properties(lovr PROPERTIES COMPILE_FLAGS "/wd4244") + function(move_dll ARG_TARGET) add_custom_command(TARGET lovr POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy
x86 TLB shootdown: remove cpu_mask field from struct flush_entry This 64-bit field was being used only in an assert() check. It is now removed in order to be able to support more than 64 vCPUs.
@@ -26,7 +26,6 @@ declare_closure_struct(1, 0, void, flush_complete, struct flush_entry { struct list l; u64 gen; - u64 cpu_mask; struct refcount ref; boolean flush; u64 pages[FLUSH_THRESHOLD]; @@ -42,8 +41,6 @@ static void invalidate (u64 page) define_closure_function(1, 0, void, flush_complete, flush_entry, f) { - fl...
binding/kotlin: fixed spelling errors
@@ -184,7 +184,7 @@ val complexKeySet = keySetOf { ## KeySet serialization KeySets can be serialized for all KotlinX Serialization formats. -e.g. Json: +e.g. JSON: ```kotlin val ks = keySetOf( @@ -192,7 +192,7 @@ val ks = keySetOf( keyOf("/my/age", 18) ) -val json = Json.encodeAsString(KeySetSerializer(), ks) +val json...
arch/arm/src/stm32l4: Update arm conditional flag for stm32l4 board. This patch updates the stm32l4 board interrupt conditional with appropriate arm cortex flag for unification across different chipsets.
@@ -373,7 +373,7 @@ void up_irqinitialize(void) * Fault handler. */ -#ifdef CONFIG_ARM_MPU +#ifdef CONFIG_ARMV7M_MPU irq_attach(STM32L4_IRQ_MEMFAULT, up_memfault, NULL); up_enable_irq(STM32L4_IRQ_MEMFAULT); #endif @@ -382,7 +382,7 @@ void up_irqinitialize(void) #ifdef CONFIG_DEBUG irq_attach(STM32L4_IRQ_NMI, stm32l4_nm...
invite-store: change /all scry to return %invite-update
^- (unit (unit cage)) ?+ path (on-peek:def path) [%x %all ~] - ``noun+!>(invites) + ``invite-update+!>([%initial invites]) :: [%x %invitatory @ ~] :^ ~ ~ %noun
inform user which tool is trying to get access to the device during runtime of hcxdumptool
@@ -5124,6 +5124,37 @@ qsort(aplist, zeiger -aplist +1, MACESSIDLIST_SIZE, sort_macessidlist_by_time); return; } /*===========================================================================*/ +static inline void checkunwanted(const char *unwantedname) +{ +static FILE *fp; +static char pidline[1024]; +static char *pidp...
server session BUGFIX bind chaos refactored
@@ -217,7 +217,7 @@ fail: int nc_sock_accept_binds(struct nc_bind *binds, uint16_t bind_count, int timeout, char **host, uint16_t *port, uint16_t *idx) { - uint16_t i; + uint16_t i, j, pfd_count; struct pollfd *pfd; struct sockaddr_storage saddr; socklen_t saddr_len = sizeof(saddr); @@ -229,10 +229,9 @@ nc_sock_accept_...
drivers/video: Remove memset from cleanup_streamresources since initialize_streamresources will do it
@@ -940,8 +940,6 @@ static void cleanup_streamresources(FAR video_type_inf_t *type_inf) video_framebuff_uninit(&type_inf->bufinf); nxsem_destroy(&type_inf->wait_capture.dqbuf_wait_flg); nxmutex_destroy(&type_inf->lock_state); - memset(type_inf, 0, sizeof(video_type_inf_t)); - type_inf->remaining_capnum = VIDEO_REMAININ...
[bsp][bluetrum] Adding RT_USING_CONSOLE judgment
@@ -30,6 +30,7 @@ static struct rt_mutex mutex_cache = {0}; extern volatile rt_uint8_t rt_interrupt_nest; extern uint32_t __heap_start, __heap_end; +#ifdef RT_USING_CONSOLE void hal_printf(const char *fmt, ...) { rt_device_t console = rt_console_get_device(); @@ -65,6 +66,7 @@ void hal_printf(const char *fmt, ...) #end...
Remove unused stepsize entry Using it improves quality by about 0.005dB but incurs a significant performance penalty, so assume it has been disabled for performance reasons (there are similar optimizations for similar quality losses in other places in the reference codec).
@@ -1141,7 +1141,7 @@ void compute_ideal_weights_for_decimation_table(const endpoints_and_weights * ea infilled_weights[i] = compute_value_of_texel_flt(i, it, weight_set); } - const float stepsizes[3] = { 0.25f, 0.125f, 0.0625f }; + const float stepsizes[2] = { 0.25f, 0.125f }; for (j = 0; j < 2; j++) {
Specify a number of targets as .PHONY
@@ -294,6 +294,8 @@ endef ### to create one CONTIKI_NG_PROJECT_MAP = $(addsuffix -$(TARGET).map, $(basename $@)) +.PHONY: clean distclean usage help targets boards savetarget savedefines viewconf + clean: -rm -f *.d *.e *.o $(CONTIKI_NG_TARGET_LIB) $(CLEAN) -rm -rf $(OBJECTDIR)
Remove unused fields in method store structure. The random bit caching was a residue of earlier code and isn't used any more.
@@ -53,8 +53,6 @@ struct ossl_method_store_st { SPARSE_ARRAY_OF(ALGORITHM) *algs; OSSL_PROPERTY_LIST *global_properties; int need_flush; - unsigned int nbits; - unsigned char rand_bits[(IMPL_CACHE_FLUSH_THRESHOLD + 7) / 8]; CRYPTO_RWLOCK *lock; };
Fixed CBMC_ENSURE_REF calls where NULL return type expected
*/ #include <cbmc_proof/make_common_datastructures.h> +#include <utils/s2n_safety_macros.h> bool s2n_blob_is_bounded(const struct s2n_blob *blob, const size_t max_size) { return (blob->size <= max_size); } @@ -359,7 +360,7 @@ struct s2n_ecc_preferences *cbmc_allocate_s2n_ecc_preferences() struct s2n_security_policy *cb...
coap/engine: fix code block
@@ -219,8 +219,9 @@ coap_receive(oc_message_t *msg) #endif /* OC_TCP */ { transaction = coap_get_transaction_by_mid(message->mid); - if (transaction) + if (transaction) { coap_clear_transaction(transaction); + } transaction = NULL; } @@ -813,6 +814,7 @@ send_message: } } #endif /* OC_CLIENT && OC_BLOCK_WISE */ + } tran...
interface: replace baseurl + feed
@@ -15,7 +15,7 @@ export function GroupFeedHeader(props) { historyLocation === `${baseUrl}/feed`; const locationUrl = - history.location.pathname.replace(`${baseUrl}`, ''); + history.location.pathname.replace(`${baseUrl}/feed`, ''); let nodeIndex = locationUrl.split('/').slice(1).map((ind) => { return bigInt(ind); });
Docker: Test YAwn plugin on Alpine Linux
@@ -20,6 +20,13 @@ RUN mkdir -p ${GTEST_ROOT} \ && tar -zxvf gtest.tar.gz --strip-components=1 -C ${GTEST_ROOT} \ && rm gtest.tar.gz +# YAEP +RUN cd /tmp \ + && git clone https://github.com/vnmakarov/yaep.git \ + && cd yaep \ + && env CXXFLAGS='-fPIC' ./configure \ + && make -C src install + # Create User:Group # The i...