message
stringlengths
6
474
diff
stringlengths
8
5.22k
py/parse: In strict mode, leave "const(expr)" node in tree. The const "call" node will be processed by compiler, to create a const namespace slot based on it. (An alternative way would be to use variable annotations, e.g. "var: const = 1". Support both ways for now.)
@@ -803,8 +803,10 @@ STATIC bool fold_constants(parser_t *parser, uint8_t rule_id, size_t num_args) { } // is_int // replace const(value) with value + if (!mp_strict_mode) { pop_result(parser); push_result_node(parser, pn_value); + } // finished folding this assignment, but we still want it to be part of the tree retur...
Quick fix for zephyr port: net_nbuf API has changed net_nbuf_append and net_nbuf_get_tx needs a timeout parameter now Tested-by: Kishen Maloor
@@ -134,10 +134,13 @@ oc_send_buffer(oc_message_t *message) /* Network buffer to hold data to be sent */ struct net_buf *send_buf; - send_buf = net_nbuf_get_tx(udp_recv6); - NET_ASSERT(send_buf); + send_buf = net_nbuf_get_tx(udp_recv6, K_NO_WAIT); + if (!send_buf) { + LOG("oc_send_buffer: cannot acquire send_buf\n"); +...
add lo interface to alpine/etc/dhcpcd.conf
@@ -29,6 +29,10 @@ noarp # Only configure IPv4. ipv4only +# Configure loopback adapter. +interface lo +static ip_address=127.0.0.1/8 + # Define static profile. profile static_eth0 static ip_address=192.168.1.100/24
Don't output CUPS debug log on error.
@@ -26,7 +26,7 @@ jobs: - name: Make run: make - name: Test - run: make test || cat test/test*.log + run: make test || cat test/test-ippserver.log build-macos: @@ -43,7 +43,7 @@ jobs: - name: Make run: make - name: Test - run: make test || cat test/test*.log + run: make test || cat test/test-ippserver.log build-windows...
Intercept: Fix minor spelling mistake
@@ -20,7 +20,7 @@ Syntax: ## INTERNALS -After the library is loaded it parses its configuration into its internal data structure, canonicalizes the both the real path and the new path and looks for the `open/mode` metakey. +After the library is loaded it parses its configuration into its internal data structure, canoni...
py/mpz: Fix pow3 function so it handles the case when 3rd arg is 1. In this case the result should always be 0, even if 2nd arg is 0.
@@ -1390,7 +1390,7 @@ void mpz_pow_inpl(mpz_t *dest, const mpz_t *lhs, const mpz_t *rhs) { can have dest, lhs, rhs the same; mod can't be the same as dest */ void mpz_pow3_inpl(mpz_t *dest, const mpz_t *lhs, const mpz_t *rhs, const mpz_t *mod) { - if (lhs->len == 0 || rhs->neg != 0) { + if (lhs->len == 0 || rhs->neg !=...
Cleaned up data_recorder
-// Data recorder mod with GUI showing light positions. - -#ifdef __linux__ -#include <unistd.h> -#endif - -#include <os_generic.h> -#include <stdarg.h> -#include <stdint.h> +/** + * Most of the data recorder functionality lives in the library now; this just enables + * stdout by default if no record file is specified....
Try to fix compiler warnings. Per report from Peter Geoghegan. Discussion:
@@ -1643,6 +1643,8 @@ compile_database_list(PGconn *conn, SimplePtrList *databases, } else { + DatabaseInfo *dat; + /* Current record pertains to a database */ Assert(datname != NULL); @@ -1650,12 +1652,11 @@ compile_database_list(PGconn *conn, SimplePtrList *databases, if (initial_dbname != NULL && strcmp(initial_dbna...
Configure: sort the disablables alphabetically
@@ -414,9 +414,9 @@ my @disablables = ( "dynamic-engine", "ec", "ec2m", + "ec_nistp_64_gcc_128", "ecdh", "ecdsa", - "ec_nistp_64_gcc_128", "egd", "engine", "err", @@ -424,8 +424,8 @@ my @disablables = ( "filenames", "fips", "fips-securitychecks", - "fuzz-libfuzzer", "fuzz-afl", + "fuzz-libfuzzer", "gost", "idea", "ktls...
add lm35 in esp8266
@@ -4,6 +4,12 @@ goog.provide('Blockly.Arduino.storage'); goog.require('Blockly.Arduino'); +//LM35 Temperature +Blockly.Arduino.LM35 = function() { + var dropdown_pin = Blockly.Arduino.valueToCode(this, 'PIN', Blockly.Arduino.ORDER_ATOMIC); + var code = 'analogRead(' + dropdown_pin + ')*0.322'; + return [code, Blockly....
Minor update to CLI help section.
@@ -286,8 +286,7 @@ cmd_help (void) "Other Options\n\n" " -h --help - This help.\n" " -V --version - Display version information and exit.\n" - " -s --storage - Display current storage method. e.g., B+\n" - " Tree, Hash.\n" + " -s --storage - Display current storage method. e.g., Hash.\n" " --dcf - Display the path of ...
more reorganizing of train's code
@@ -47,18 +47,14 @@ static t_int *train_perform(t_int *w) while (nblock--) { period = *in1++; - phase_step = period > 0 ? rcpksr / period : 0.5; - if (phase_step > 0.5) phase_step = 0.5; // smallest period corresponds to nyquist - width = *in2++; if (width < 0.) width = 0.; if (width > 1.) width = 1.; - phase_offset = ...
Remove VLAs because MSVC does not support them
@@ -256,21 +256,24 @@ static Value gcdNative(DictuVM *vm, int argCount, Value *args) { return EMPTY_VAL; } - double as_doubles[argCount]; + double* as_doubles = (double*)malloc(argCount * sizeof(double)); for (int i = 0; i < argCount; ++i) { as_doubles[i] = AS_NUMBER(args[i]); if (fabs(round(as_doubles[i]) - as_doubles...
Print error messages if the wrong arguments are passed to papplMainloop.
@@ -101,8 +101,17 @@ papplMainloop( // Range check input... - if (argc < 1 || !argv || !version) + if (argc < 1 || !argv) + { + fputs("ERROR: No command-line arguments were passed to papplMainloop.\n", stderr); + return (1); + } + + if (!version) + { + fputs("ERROR: No version number string was passed to papplMainloop....
Mark "%rcx" as clobbered by "rdtscp". This fixes GCE boot for kernel built by clang 11 which uses registers more aggressively than gcc or clang 10.
@@ -32,7 +32,7 @@ static inline u64 _rdtscp(void) { u32 a, d; - asm volatile("rdtscp" : "=a" (a), "=d" (d)); + asm volatile("rdtscp" : "=a" (a), "=d" (d) :: "%rcx"); return (((u64)a) | (((u64)d) << 32)); }
refactor: remove unused condition from Makefile
@@ -55,8 +55,8 @@ BOTX_EXES := $(patsubst %.c, %.bx, $(BOTX_SRC)) BOTZ_SRC := $(wildcard add-ons/bot-*.c) BOTZ_EXES := $(patsubst %.c, %.bz, $(BOTZ_SRC)) -TEST_SRC := $(wildcard test/test-*.cpp test/test-*.c) -TEST_EXES := $(filter %.exe, $(TEST_SRC:.cpp=.exe) $(TEST_SRC:.c=.exe)) +TEST_SRC := $(wildcard test/test-*.c)...
Python: removed wrong PyErr_Print() call. PyCallable_Check() doesn't produce errors. The needless call was introduced in
@@ -322,7 +322,6 @@ nxt_python_init(nxt_task_t *task, nxt_common_app_conf_t *conf) if (nxt_slow_path(PyCallable_Check(obj) == 0)) { nxt_alert(task, "\"application\" in module \"%s\" " "is not a callable object", nxt_py_module); - PyErr_Print(); goto fail; }
Add MAP_ANON instead of MAP_ANONYMOUS for mac
@@ -1292,8 +1292,11 @@ JANET_CORE_FN(cfun_ffi_jitfn, fn->size = 0; #ifdef JANET_WINDOWS void *ptr = VirtualAlloc(NULL, bytes.len, MEM_COMMIT | MEM_RESERVE, PAGE_READWRITE); -#else +#elif defined(MAP_ANONYMOUS) void *ptr = mmap(0, bytes.len, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); +#else + /* macos ...
msp: add vtx settings magic if != vtx_device
@@ -303,6 +303,9 @@ static void msp_process_serial_cmd(msp_t *msp, msp_magic_t magic, uint16_t cmd, case MSP_SET_VTX_CONFIG: { vtx_settings_t *settings = msp->device == MSP_DEVICE_VTX ? &msp_vtx_settings : &vtx_settings; + if (msp->device != MSP_DEVICE_VTX) { + settings->magic = VTX_SETTINGS_MAGIC; + } uint16_t remaini...
Use short notation (%e) for yandex-specific core dump file mask issue:https://st.yandex-team.ru/DEVTOOLS-4408
@@ -41,13 +41,12 @@ def recover_core_dump_file(binary_path, cwd, pid): else: default_pattern = CoreFilePattern(cwd, '*') - # don't interpret a program for piping core dumps as a pattern - if core_pattern and not core_pattern.startswith("|"): + def resolve_core_mask(core_mask): def resolve(text): if text == "%p": return...
readme: shorten the quic intro sentence
# h2olog [BPF](https://www.kernel.org/doc/html/latest/bpf/index.html) ([kernel doc](https://www.kernel.org/doc/Documentation/networking/filter.txt)) backed request logging client for the [H2O](https://github.com/h2o/h2o) server. -h2olog is also capable of logging [QUIC](https://en.wikipedia.org/wiki/QUIC) events for [t...
fix mk_wheel bugs
@@ -180,7 +180,7 @@ def make_record(dir_path, dist_info_dir): tmp_dir_length = len(dir_path) + 1 for item in wheel_items: if item != record_filename: - record.write(item[tmp_dir_length:] + ',sha256=' + urlsafe_b64encode(calc_sha256_digest(item))[:-1] + ',' + str(os.path.getsize(item)) + '\n') + record.write(item[tmp_di...
Update: NAL.h: Induction cases for RFT-related rules fixed
@@ -230,7 +230,7 @@ R2VarIntro( (<$1 --> B> ==> <$1 --> C>), A, |-, (A && (<$1 --> B> ==> <$1 --> C> R2VarIntro( (<#1 --> B> && <#1 --> C>), A, |-, (A ==> (<#1 --> B> && <#1 --> C>)), Truth_Induction ) R2VarIntro( (B ==> C), A, |-, ((A && B) ==> C), Truth_Induction ) //!Relation symmetry, asymmetry, and transitivity: -...
fix(gui): segmentation fault on resize empty window check for default prototype handler in widget renderer
@@ -107,6 +107,7 @@ typedef struct LCUI_WidgetRendererRec_ { static struct LCUI_WidgetRenderModule { LCUI_BOOL active; + LCUI_WidgetPrototype default_proto; RBTree groups; LinkedList rects; } self = { 0 }; @@ -122,7 +123,7 @@ static LCUI_BOOL Widget_IsPaintable(LCUI_Widget w) s->shadow.spread > 0) { return TRUE; } - re...
bin: add configuration file support for filter plugin
@@ -263,6 +263,7 @@ static int flb_service_conf(struct flb_config *config, char *file) struct mk_rconf_section *section; struct flb_input_instance *in; struct flb_output_instance *out; + struct flb_filter_instance *filter; fconf = mk_rconf_open(file); if (!fconf) { @@ -349,6 +350,39 @@ static int flb_service_conf(struc...
haskell-cabal-sandboxing: cleanup the realworld test traces to fix kdb run_all
@@ -26,6 +26,10 @@ main = hspec $ ksAfter <- ksNew 1 kdbOpen parent $ \kdbAfter -> do _ <- kdbGet kdbAfter ksAfter parent - ksLookupByName ksAfter haskellPersisted >>= keyName >>= (`shouldBe` haskellPersisted) + keyAfter <- ksLookupByNameO ksAfter haskellPersisted KdbOPop + keyName keyAfter >>= (`shouldBe` haskellPersi...
sysdeps/managarm: convert sys_getsockopt to helix_ng
@@ -203,9 +203,8 @@ int sys_getsockopt(int fd, int layer, int number, SignalGuard sguard; if(layer == SOL_SOCKET && number == SO_PEERCRED) { - __ensure(*size == sizeof(struct ucred)); - HelAction actions[3]; - globalQueue.trim(); + if(*size != sizeof(struct ucred)) + return EINVAL; auto handle = getHandleForFd(fd); if ...
doc: binding-documentation fix review comments
@@ -56,26 +56,31 @@ direct mapping, significantly simplifies the generated code (and maybe also the ### Bindings for the `lowlevel` Library -If you decide on mapping the functionality of kdb.h 1:1 it is pretty straight-forward. +Your programming language of choice must provide a way to call into C code (like [cgo](http...
tests: runtime: out_tcp: remove unused variables
@@ -900,7 +900,6 @@ static void cb_check_basic(void *ctx, int ffd, void flb_test_tcp_exit_workers(void) { int ret; - int bytes; flb_ctx_t *ctx; int in_ffd; int out_ffd; @@ -945,7 +944,6 @@ void flb_test_tcp_exit_workers(void) void flb_test_tcp_exit_no_workers(void) { int ret; - int bytes; flb_ctx_t *ctx; int in_ffd; in...
Blinka: Add generic_micropython
@@ -64,6 +64,7 @@ jobs: cp -r pimoroni-pico-${GITHUB_SHA}/micropython/modules_py/* micropython/ports/rp2/modules/ mkdir -p micropython/ports/rp2/modules/adafruit_blinka/microcontroller/ cp -r Adafruit_Blinka/src/adafruit_blinka/microcontroller/rp2040 micropython/ports/rp2/modules/adafruit_blinka/microcontroller/ + cp -...
Increase # of teams, and check if omp_get_num_teams on target retunr same number
#include <stdio.h> #include <omp.h> -#define HOST_MAX_TEAMS 128 +#define HOST_MAX_TEAMS 70000 #define TRIALS (1) -#define N (992) +#define N (HOST_MAX_TEAMS+92) +int A[N], B[N], C[N], D[N], E[N]; int main(void) { - int A[N], B[N], C[N], D[N], E[N]; int fail = 0; // @@ -17,18 +17,20 @@ int main(void) { // for (int i = 0...
Per changes requested round 2 In main workflow chipyard-run-tests.yml - Remove debug output in `make-keys` - remove export intializers in `build-extra-tests` - Add prepare-chipyard-fpga to `needs` in `all_tests_passed`
@@ -75,11 +75,6 @@ jobs: echo "::set-output name=riscvtools-cache-key::riscv-tools-installed-${{ env.tools-cache-version }}-$(shasum riscv-tools.hash | cut -d' ' -f1)" echo "::set-output name=esptools-cache-key::esp-tools-installed-${{ env.tools-cache-version }}-$(shasum esp-tools.hash | cut -d' ' -f1)" echo "::set-out...
Testing: values_to_ascii
int main(int argc, char** argv) { - int err = 0; + int err = 0, is_missing = 0; double* values = NULL; - char format[1024]; - size_t values_len = 0; - - size_t i = 0; - - long ni; - double a; - long d; + char format[1024] = {0,}; + size_t values_len = 0, i = 0; + long Ni = 0; FILE* in = NULL; - grib_handle* h = NULL; -...
Check for valid core_id value
@@ -22,10 +22,11 @@ static void __set_cache_line_invalid(struct ocf_cache *cache, uint8_t start_bit, uint8_t end_bit, ocf_cache_line_t line, ocf_core_id_t core_id, ocf_part_id_t part_id) { - ocf_core_t core = ocf_cache_get_core(cache, core_id); + ocf_core_t core; bool is_valid; ENV_BUG_ON(core_id >= OCF_CORE_MAX); + co...
Move static reference
@@ -320,6 +320,7 @@ PPH_STRING PhGetProcessPackageFullName( _In_ HANDLE ProcessHandle ) { + static UNICODE_STRING attributeNameUs = RTL_CONSTANT_STRING(L"WIN://SYSAPPID"); HANDLE tokenHandle; PTOKEN_SECURITY_ATTRIBUTES_INFORMATION info; PPH_STRING packageName = NULL; @@ -335,7 +336,6 @@ PPH_STRING PhGetProcessPackageFu...
cleaner: Retrieve core object properly Cleaner doesn't set core object in req as it works in domain of cache lines, which may belong to various cores. It this case should retrieve core object not from the req, but from the map instead.
@@ -467,11 +467,12 @@ static void _ocf_cleaner_core_io_cmpl(struct ocf_io *io, int error) { struct ocf_map_info *map = io->priv1; struct ocf_request *req = io->priv2; + ocf_core_t core = ocf_cache_get_core(req->cache, map->core_id); if (error) { map->invalid |= 1; _ocf_cleaner_set_error(req); - ocf_core_stats_core_erro...
Added note to the examples section under README.md about log format.
@@ -295,6 +295,10 @@ specified in the configuration file. If specified in the configuration file, lon options need to be used without prepending `--`. ## Examples ## +Please *note* that piping data into GoAccess won't prompt a log/date/time +configuration dialog, you will need to previously define it in your +configura...
porting: Improve linux sample Allow to specify HCI device at start.
@@ -37,6 +37,7 @@ static struct ble_npl_task s_task_hci; void nimble_host_task(void *param); void ble_hci_sock_ack_handler(void *param); void ble_hci_sock_init(void); +void ble_hci_sock_set_device(int dev); #define TASK_DEFAULT_PRIORITY 1 #define TASK_DEFAULT_STACK NULL @@ -54,10 +55,15 @@ void *ble_host_task(void *par...
unistd: Fix argument handling in truncate
@@ -1227,8 +1227,8 @@ Truncate a file to a specified length. static int Ptruncate(lua_State *L) { - int fd = checkint(L, 1); - const char *path = luaL_checkstring(L, 2); + const char *path = luaL_checkstring(L, 1); + off_t length = checkint(L, 2); checknargs(L, 2); return pushresult(L, truncate(path, length), NULL); }
hw/drivers/rtt: Remove deprecated syscfg Those were deprecated long enough...
@@ -41,19 +41,8 @@ syscfg.defs: RTT_TERMINAL_BUFFER_SIZE_UP: description: > Size of terminal output buffer (up-buffer). - value: 'MYNEWT_VAL_RTT_BUFFER_SIZE_UP' + value: 1024 RTT_TERMINAL_BUFFER_SIZE_DOWN: description: > Size of terminal input buffer (down-buffer). - value: 'MYNEWT_VAL_RTT_BUFFER_SIZE_DOWN' - -# Values...
u3: fix lore jet to allow non-trailing null bytes
while ( 1 ) { c3_w meg_w = 0; - c3_y end_y; + c3_o end_y; c3_y byt_y; while ( 1 ) { - if ( pos_w >= len_w ) { + if ( (pos_w + meg_w) >= len_w ) { byt_y = 0; end_y = c3y; break; } byt_y = u3r_byte(pos_w + meg_w, lub); - if ( (10 == byt_y) || (0 == byt_y) ) { - end_y = __(byt_y == 0); + if ( 10 == byt_y ) { + end_y = c3n...
asn1: properly clean up on failed BIO creation Fixes coverity through and
@@ -27,6 +27,7 @@ static int asn1_print_info(BIO *bp, long offset, int depth, int hl, long len, int pop_f_prefix = 0; long saved_indent = -1; int i = 0; + BIO *bio = NULL; if (constructed & V_ASN1_CONSTRUCTED) p = "cons: "; @@ -43,7 +44,8 @@ static int asn1_print_info(BIO *bp, long offset, int depth, int hl, long len, ...
sqlite: some debug defines. commented-out.
#define SQLITE_TEMP_STORE 2 #define SQLITE_HAS_CODEC 1 #include "tcmalloc/rhomem.h" + +/* +#include "logging/RhoLog.h" + +#define SQLITE_LOCK_TRACE 1 +//#define SQLITE_PERFORMANCE_TRACE 1 +#define SQLITE_USE_FCNTL_TRACE 1 +#define SQLITE_ENABLE_IOTRACE 1 +#define SQLITE_ENABLE_SELECTTRACE 1 +#define SQLITE_ENABLE_VFSTR...
feat: Added extra gdbinit file loading for reproducible build
# SPDX-License-Identifier: Apache-2.0 # +import json import logging import os.path +from typing import Any try: from esp_coredump import CoreDump @@ -16,6 +18,18 @@ except ImportError: from esp_coredump.cli_ext import parser +def get_prefix_map_gdbinit_path(prog_path): # type: (str) -> Any + build_dir = os.path.abspath...
added TP-LINK Archer T2UH after driver issue fix:
@@ -77,10 +77,11 @@ Manufacturers do change chipsets without changing model numbers. Sometimes they This list is for information purposes only and should not be regarded as a binding presentation of the products: | VENDOR MODEL | ID | -| -------------------- | -----------------------------------------------------------...
Remove extraneous quotes that caused a cmake policy warning
@@ -96,7 +96,7 @@ if (${CMAKE_C_COMPILER_ID} STREQUAL "SUN") endif () endif () -if (${CORE} STREQUAL "SKYLAKEX") +if (${CORE} STREQUAL SKYLAKEX) if (NOT DYNAMIC_ARCH) if (NOT NO_AVX512) set (CCOMMON_OPT "${CCOMMON_OPT} -march=skylake-avx512") @@ -104,7 +104,7 @@ if (${CORE} STREQUAL "SKYLAKEX") endif () endif () -if ($...
lpc4322 (SWO): make SWO_UART configurable This way, one can set SWO_UART from the target's yaml.
@@ -101,7 +101,9 @@ typedef unsigned int BOOL; /// Indicate that UART Serial Wire Output (SWO) trace is available. /// This information is returned by the command \ref DAP_Info as part of <b>Capabilities</b>. +#if !defined(SWO_UART) #define SWO_UART 0 ///< SWO UART: 1 = available, 0 = not available +#endif /// USART Dr...
replaced use of macro IONIZE in hash_to_bucket calls inside test with an int key instantiated in the same way as it is in linear_hash.c in response to compiler warnings
@@ -292,11 +292,19 @@ test_linear_hash_correct_hash_function( /* assuming initial size of 5 so that key 5 hashes to bucket 0 using h0 */ int expected_hash_bucket = 0; + int *k; + + *k = 5; + + ion_byte_t *hash_key = alloca(linear_hash->super.record.key_size); + + memcpy(hash_key, k, sizeof(linear_hash->super.record.key...
Remove dpkg-query filename lookup
@@ -33,8 +33,9 @@ BOOLEAN NTAPI PhpWslDistributionNamesCallback( return TRUE; } -PPH_STRING PhGetWslDistributionFromPath( +BOOLEAN PhGetWslDistributionFromPath( _In_ PPH_STRING FileName, + _Out_opt_ PPH_STRING *LxssDistroName, _Out_opt_ PPH_STRING *LxssDistroPath, _Out_opt_ PPH_STRING *LxssFileName ) @@ -126,7 +127,16 ...
boards/esp32s3: Improve documentation on the IRAM upper limit definition
#define SRAM_IRAM_START 0x40370000 #define SRAM_DIRAM_I_START 0x40378000 + +/* The memory region starting from SRAM_IRAM_END up to 0x403dffff is + * reserved to the 2nd stage bootloader for actually loading the NuttX + * Application Image code and data into IRAM and DRAM. Otherwise the + * Bootloader could end up overw...
prevents nest-fail in ;; / :fry
:+ %pin [%name %b [%per [%limb %v] q.gen]] :: =+ b==>(v {q.gen}) :+ %pin :: =+ c=(a b) [%name %c [%call [%limb %a] [%limb %b] ~]] :: - [%sure [%same [%limb %c] [%limb %b]] [%limb %c]] :: ?>(=(c b) c) + :+ %sure :: ?>(=(`*`c `*`b) c) + :+ %same :: + [%cast [%base %noun] [%limb %c]] :: + [%cast [%base %noun] [%limb %b]] ...
tests: limit build parallelism to $(CPUS)
<description>Cooja Mote Type #mtype11</description> <source EXPORT="discard">[CONTIKI_DIR]/examples/6tisch/simple-node/node.c</source> <commands EXPORT="discard">make TARGET=cooja clean -make -j node.cooja TARGET=cooja MAKE_WITH_ORCHESTRA=1 MAKE_WITH_SECURITY=0 MAKE_WITH_PERIODIC_ROUTES_PRINT=1 MAKE_WITH_ORCHESTRA_ROOT...
BugID:21117064: Fix config warnings Fix warning like: warning: (HAL_CRYPTO) selects MBEDTLS_CONFIG_CRYPTO_MODE_CFB which has \ unmet direct dependencies (AOS_COMP_MBEDTLS && MBEDTLS_CONFIG_CRYPTO)
@@ -47,7 +47,7 @@ config COAP_DTLS_SUPPORT config HAL_CRYPTO bool default y if USE_MBEDTLS || COAP_DTLS_SUPPORT - select MBEDTLS_CONFIG_CRYPTO_MODE_CFB + select MBEDTLS_CONFIG_CRYPTO_MODE_CFB if USE_MBEDTLS help HAL CRYPTO for AliOS Things
task_assert() is exposed as a syscall
#include <gfx/lib/surface.h> #include <kernel/util/amc/amc.h> #include <kernel/drivers/pit/pit.h> +#include <kernel/assert.h> void yield(task_state_t reason) { if (!tasking_is_active()) { @@ -62,6 +63,10 @@ int aipc_send(char* data, uint32_t size, uint32_t dest_pid, char** destination) return ipc_send(data, size, dest_...
Need PAM libs for ippeveprinter now.
@@ -113,7 +113,7 @@ ippdoclint: ippdoclint.o ../cups/libcups.a ippeveprinter: ippeveprinter.o ../cups/libcups.a echo Linking $@... - $(CC) $(LDFLAGS) -o $@ ippeveprinter.o $(LIBS) + $(CC) $(LDFLAGS) -o $@ ippeveprinter.o $(PAMLIBS) $(LIBS) #
Bump to 0.6.7
project('MangoHud', ['c', 'cpp'], - version : 'v0.6.6', + version : 'v0.6.7', license : 'MIT', meson_version: '>=0.54.0', default_options : ['buildtype=release', 'c_std=c99', 'cpp_std=c++14', 'warning_level=2']
Use gnu_printf format attribute to minimise MinGW warnings
@@ -735,7 +735,7 @@ void BIO_copy_next_retry(BIO *b); * long BIO_ghbn_ctrl(int cmd,int iarg,char *parg); */ -# define __bio_h__attr__(x) +# define ossl_bio__attr__(x) # if defined(__GNUC__) && defined(__STDC_VERSION__) \ && !defined(__APPLE__) /* @@ -743,19 +743,25 @@ void BIO_copy_next_retry(BIO *b); * we can't use __...
Plugin Process: Fix minor spelling mistake
* 9) Child sends the commandKeySet over the childCommandPipe * 10) For operations requiring a keyset, Child sends the keyset * over the childPayloadPipe - * 11) Parent receives the commandKeySet and interpretes /pluginprocess/result + * 11) Parent receives the commandKeySet and interprets /pluginprocess/result * 12) Fo...
more correct binarization for simple-ctrs Note: mandatory check (NEED_CHECK) was skipped
@@ -67,11 +67,11 @@ void NCatboostCuda::TBatchedBinarizedCtrsCalcer::ComputeBinarizedCtrs(const TVec if (!hasBorders) { NCB::TOnCpuGridBuilderFactory gridBuilderFactory; - TSingleBuffer<float> sortedFeature = TSingleBuffer<float>::CopyMapping(floatCtr); - sortedFeature.Copy(floatCtr, stream); + TSingleBuffer<float> sor...
Add description of ethereum part before compiling demo code.
@@ -34,3 +34,17 @@ The Demo C code that calls the smart contract is placed in: |\<SDKRoot\>/demo/demo_platone/demo_platone_mycontract.c |PLATONE demo use case | |\<SDKRoot\>/demo/demo_fiscobcos/demo_fiscobcos_helloworld.c |FISCO-BCOS demo use case | +Before compiling the Demo, you need to modify the following parts of ...
wip: need to rework struct orka_debug for test-git2.cpp
@@ -48,8 +48,8 @@ int main (int argc, char ** argv) exit(EXIT_FAILURE); } - struct orka_settings settings; - orka_settings_init (&settings, config_file); + struct orka_debug debug; + orka_debug_init(&debug, "GIT HTTP", config_file); git::file ** files = NULL; files = (git::file **) ntl_calloc(argc - optind, sizeof(git:...
ci: update to FreeBSD 13.0
@@ -42,7 +42,7 @@ MacOS_task: FreeBSD_task: freebsd_instance: - image_family: freebsd-12-0 + image_family: freebsd-13-0 setup_script: |- pkg install -y gettext-tools pkgconf cmake meson git libffi libgit2 nanomsg python3 -m ensurepip @@ -61,4 +61,3 @@ Windows (mingw-gcc)_task: choco install -y --no-progress ninja cmake...
dns: clear request from state on %coup error
:: XX details ~& %dns-ip-request-failed %- (slog u.error.sign) - (pure:m state) + (pure:m state(requested ~)) :: re-subscribe if (involuntarily) unsubscribed :: %quit
[core] update comment
@@ -695,7 +695,7 @@ static int http_request_parse_pseudohdrs(request_st * const restrict r, const ch /* check uri for invalid characters */ if (http_header_strict) { if ((http_parseopts & HTTP_PARSEOPT_URL_NORMALIZE_CTRLS_REJECT)) { - /* URI will be checked in http_response_prepare() */ + /* URI will be checked in http...
kernel/task/task_prctl : Add va_end after using va_start WID:1413369 Function 'va_end' was not called before task_prctl.c:220 inside function 'prctl'. (Function 'va_start' was called at task_prctl.c:115.)
@@ -198,10 +198,12 @@ int prctl(int option, ...) int ret; ret = messaging_read_list(port_name, recv_arr, &total_cnt); if (ret == ERROR) { + va_end(ap); return ret; } curr_cnt += ret; *recv_cnt = curr_cnt; + va_end(ap); if (curr_cnt == total_cnt) { /* Read whole receivers information. */ curr_cnt = 0; @@ -216,6 +218,7 @...
Support build dependencies for YDL files Pull-request for branch users/ngc224/ydl_yamake
@@ -2622,7 +2622,8 @@ macro _SRC("supp", SRC, SRCFLAGS...) { } macro _SRC("ydl", SRC, SRCFLAGS...) { - .CMD=${tool:"statbox/ydl/compiler/tooling/ydlc/bin"} --tty-colors -I ${ARCADIA_ROOT} --cpp-output-header ${output;suf=.h:SRC} --cpp-output-source ${output;suf=.cpp:SRC} ${input:SRC} ${kv;hide:"p YDL"} ${kv;hide:"pc ye...
apps.c: Fix diagnostics and return value of load_key_certs_crls() on error
@@ -702,7 +702,7 @@ int load_key_certs_crls(const char *uri, int maybe_stdin, const char *propq = app_get0_propq(); int ncerts = 0; int ncrls = 0; - const char *failed = NULL; + const char *failed = "any"; /* TODO make use of the engine reference 'eng' when loading pkeys */ if (ppkey != NULL) @@ -714,14 +714,14 @@ int ...
Fix token LPAC checks
@@ -3415,11 +3415,11 @@ INT_PTR CALLBACK PhpTokenContainerPageProc( { PTOKEN_SECURITY_ATTRIBUTE_V1 attribute = &info->Attribute.pAttributeV1[i]; - if (attribute->ValueType == TOKEN_SECURITY_ATTRIBUTE_TYPE_STRING) - { if (RtlEqualUnicodeString(&attribute->Name, &attributeNameUs, FALSE)) { - isLessPrivilegedAppContainer ...
Remove problematic bindings from Index controller The "system" button on Valve Index controller may not be exposed to applications through OpenXR. Oculus runtime throws error when binding for that button is attempted.
@@ -687,10 +687,6 @@ static bool openxr_init(HeadsetConfig* config) { { ACTION_THUMBSTICK_X, "/user/hand/right/input/thumbstick/x" }, { ACTION_THUMBSTICK_Y, "/user/hand/left/input/thumbstick/y" }, { ACTION_THUMBSTICK_Y, "/user/hand/right/input/thumbstick/y" }, - { ACTION_MENU_DOWN, "/user/hand/left/input/system/click" ...
HV: restore correct gpa for guest normal world We should specify gpa for uos or sos when restore memory, otherwise it would cause resume failure issue.
@@ -151,7 +151,8 @@ void destroy_secure_world(struct vm *vm, bool need_clr_mem) void *pdpt_addr; struct vm *vm0 = get_vm_from_vmid(0U); uint64_t hpa = vm->sworld_control.sworld_memory.base_hpa; - uint64_t gpa = vm->sworld_control.sworld_memory.base_gpa_in_sos; + uint64_t gpa_sos = vm->sworld_control.sworld_memory.base_...
docs/builtins: str: Mention that strings are stored with utf-8 encoding.
@@ -193,6 +193,10 @@ Functions and types .. class:: str() + In MicroPython, strings are backed by Unicode UTF-8 encoding. While this + fact doesn't have to be known by normal users, advanced users may use it + to optimize applications/libraries. + .. function:: sum() .. function:: super()
fix issue number: 212 to
@@ -20,7 +20,7 @@ static void msleep(unsigned long msecs) { Sleep(msecs); } static void msleep(unsigned long msecs) { usleep(msecs * 1000UL); } #endif -void heap_thread_free_large(); // issue #212 +void heap_thread_free_large(); // issue #221 void heap_no_delete(); // issue #202 void heap_late_free(); // issue #204 voi...
Make the page header's overlay color white
@@ -72,7 +72,7 @@ topbar_transparency : 0.1 topbar_title_color : "#ffffff" cover_image : # Replace with alternative image path or image URL. -cover_overlay_color : "#363b3d" +cover_overlay_color : "#ffffff" cover_overlay_transparency : 0.8 device_color : black # Set to: blue, black, yellow, coral or white.
in_mem: add missing memory allocation validation
static char *human_readable_size(long size) { long u = 1024, i, len = 128; - char *buf = flb_malloc(len); + char *buf; static const char *__units[] = { "b", "K", "M", "G", "T", "P", "E", "Z", "Y", NULL }; + buf = flb_malloc(len); + if (!buf) { + flb_errno(); + return NULL; + } + for (i = 0; __units[i] != NULL; i++) { i...
fix: initializes on_idle function pointer
@@ -404,6 +404,7 @@ Discord_ws_init(struct discord_ws_s *ws, char token[]) ws->payload.seq_number = 0; + ws->cbs.on_idle = NULL; ws->cbs.on_ready = NULL; ws->cbs.on_message.create = NULL; ws->cbs.on_message.update = NULL;
test/run-test: try to silence detection of decompression tools
@@ -35,8 +35,8 @@ buftest_generate() { echo "foo.bar.${i} 1 349830001" >> buftest.payloadout i=$(($i+1)) done - gzip -c < buftest.payloadout > buftest.payload.gz - lz4 -c < buftest.payloadout > buftest.payload.lz4 + type gzip > /dev/null && gzip -c < buftest.payloadout > buftest.payload.gz + type lz4 > /dev/null && lz4...
[chore] Remove debug flags
package contract /* -#cgo CFLAGS: -I${SRCDIR}/../libtool/include/luajit-2.0 -g -O0 +#cgo CFLAGS: -I${SRCDIR}/../libtool/include/luajit-2.0 #cgo LDFLAGS: ${SRCDIR}/../libtool/lib/libluajit-5.1.a -lm #include <stdlib.h>
Driver Wrappers code gen migration guide updated.
@@ -13,20 +13,28 @@ During the process of implementation there might be minor variations wrt version ## Prerequisites -Python3 and Jinja2 rev 2.10.1 +Python3, Jinja2 rev 2.10.1 and jsonschema rev 3.2.0 ## Feature Version -1.0 +1.1 ### What's critical for a migrating user The Driver Wrapper auto generation project is de...
input: fix debug log
@@ -192,8 +192,8 @@ bool input_init(honggfuzz_t* hfuzz) { return false; } if ((hfuzz->io.inputDirPtr = fdopendir(dir_fd)) == NULL) { + PLOG_W("fdopendir(dir='%s', fd=%d)", hfuzz->io.inputDir, dir_fd); close(dir_fd); - PLOG_W("opendir('%s')", hfuzz->io.inputDir); return false; } if (input_getDirStatsAndRewind(hfuzz) == ...
CMSIS-DSP: Added more details to diff.sql to explain the script.
@@ -26,6 +26,21 @@ and max degree regression coefficient. Change name of columns for result +USING(ID,categoryid,NAME) : would have to be extended with any parameter defining the regression +formula. +For instamce, for FFT, if ifft is an external parameter then ifft flag should be +here. + +Here we assume ref and other...
Print proper integers as integers.
static void number_to_string_b(JanetBuffer *buffer, double x) { janet_buffer_ensure(buffer, buffer->count + BUFSIZE, 2); - int count = snprintf((char *) buffer->data + buffer->count, BUFSIZE, "%g", x); + const char *fmt = (x == floor(x) && x <= 2.0e53 && x >= -2.0e53) ? "%.0f" : "%g"; + int count = snprintf((char *) bu...
drivers/loop: destroy nxmutex properly
@@ -408,6 +408,7 @@ errout_with_file: file_close(&dev->devfile); errout_with_dev: + nxmutex_destroy(&dev->lock); kmm_free(dev); return ret; } @@ -471,6 +472,7 @@ int loteardown(FAR const char *devname) file_close(&dev->devfile); } + nxmutex_destroy(&dev->lock); kmm_free(dev); return ret; }
[state] fix overlapped lock
@@ -172,8 +172,6 @@ func (states *StateDB) GetState(id types.AccountID) (*types.State, error) { // getState gets state of account id from trie. // nil value is returned when there is no state corresponding to account id. func (states *StateDB) getState(id types.AccountID) (*types.State, error) { - states.lock.RLock() -...
relay: undo SA_RESTART changes, they hang shutdown
@@ -381,8 +381,6 @@ main(int argc, char * const argv[]) { char id; int ch; - struct sigaction sigact; - sigset_t sigmask; size_t numaggregators; char *allowed_chars = NULL; char *pidfile = NULL; @@ -794,29 +792,21 @@ main(int argc, char * const argv[]) exit(0); } - sigemptyset(&sigmask); - sigaddset(&sigmask, SIGINT); ...
Fix comment in instrument.h local_blks_dirtied tracks the number of local blocks dirtied, not shared ones. Author: Kirk Jamison Discussion:
@@ -24,7 +24,7 @@ typedef struct BufferUsage long shared_blks_written; /* # of shared disk blocks written */ long local_blks_hit; /* # of local buffer hits */ long local_blks_read; /* # of local disk blocks read */ - long local_blks_dirtied; /* # of shared blocks dirtied */ + long local_blks_dirtied; /* # of local bloc...
Adding convenience bool for BLM's Paradox
@@ -59,6 +59,7 @@ namespace FFXIVClientStructs.FFXIV.Client.Game.Gauge { public int UmbralStacks => ElementStance >= 0 ? 0 : ElementStance * -1; public int AstralStacks => ElementStance <= 0 ? 0 : ElementStance; public bool EnochianActive => Enochian != 0; + public bool ParadoxActive => Enochian == 3; } [StructLayout(L...
Define helpers to extract P9 node/chip ids VAS needs the node and chip ids to compute the "paste address" of a window.
#define P9_PIR2THREADID(pir) ((pir) & 0x3) +#define P9_GCID2NODEID(gcid) (((gcid) >> 3) & 0xf) + +#define P9_GCID2CHIPID(gcid) ((gcid) & 0x7) + /* P9 specific ones mostly used by XIVE */ #define P9_PIR2LOCALCPU(pir) ((pir) & 0xff) #define P9_PIRFROMLOCALCPU(chip, cpu) (((chip) << 8) | (cpu))
[lib][fs] error code for null from malloc
@@ -134,7 +134,16 @@ static status_t mount(const char *path, const char *device, const struct fs_api /* create the mount structure and add it to the list */ mount = malloc(sizeof(struct fs_mount)); + if (!mount) { + if (dev) bio_close(dev); + return ERR_NO_MEMORY; + } mount->path = strdup(temppath); + if (!mount->path)...
Spaces -> tabs.
@@ -17,8 +17,7 @@ dependencies = { build = { type = "command", build_command = "@CMAKE_COMMAND@ --build . --target tinysplinelua;", - modules = { - }, + modules = {}, platforms = { unix = { install = {
CI/Documentation: livereload hash missmatch due to new wheel package upload.
}, "livereload": { "hashes": [ - "sha256:776f2f865e59fde56490a56bcc6773b6917366bce0c267c60ee8aaf1a0959869" + "sha256:776f2f865e59fde56490a56bcc6773b6917366bce0c267c60ee8aaf1a0959869", + "sha256:ad4ac6f53b2d62bb6ce1a5e6e96f1f00976a32348afedcb4b6d68df2a1d346e4" ], "version": "==2.6.3" },
[Meta] Copy image to connected USB, if available
@@ -178,6 +178,26 @@ def main(): # Build disk image image_name = build_iso() + # Copy kernel to USB + # USB available? + usb_root = Path("/Volumes/NO NAME") + if usb_root.exists(): + kernel_path = usb_root / "EFI" / "AXLE" / "KERNEL.ELF" + fs_server_path = usb_root / "EFI" / "AXLE" / "FS_SERVER.ELF" + initrd_path = usb...
Added paragraph to constants section along with table showing relative differences.
@@ -418,8 +418,11 @@ where $h_{\rm P}$ is Planck's constant and $h$ is $H_0/100$ with $H_0$ in units Including/excluding radiation in the computation of the comoving distances and the growth function can easily make a difference of $10^{-4}$ at the redshifts required in this comparison. -The value of the gravitational ...
Fix missing console validation.
@@ -1291,10 +1291,13 @@ void TCOD_console_printf(TCOD_Console* con, int x, int y, const char *fmt, ...) * .. versionadded:: 1.8 * \endrst */ -int TCOD_console_printf_rect_ex(struct TCOD_Console *con, +int TCOD_console_printf_rect_ex( + struct TCOD_Console* con, int x, int y, int w, int h, TCOD_bkgnd_flag_t flag, TCOD_a...
fix timeout on huge page reservation if set to 0
@@ -325,7 +325,7 @@ int mi_reserve_huge_os_pages_interleave(size_t pages, size_t numa_nodes, size_t if (numa_count <= 0) numa_count = 1; const size_t pages_per = pages / numa_count; const size_t pages_mod = pages % numa_count; - const size_t timeout_per = (timeout_msecs / numa_count) + 50; + const size_t timeout_per = ...
tcpm_header: add missing RESET_FAKE calls Each mock should be reset before each test to guarantee its state. That was missing from some of these fakes. BRANCH=none TEST=twister Code-Coverage: Zoss
@@ -137,6 +137,9 @@ static void tcpm_header_before(void *state) RESET_FAKE(set_vconn); RESET_FAKE(reset_bist_type_2); + RESET_FAKE(debug_accessory); + RESET_FAKE(debug_detach); + RESET_FAKE(hard_reset_reinit); fixture->mock_driver = (struct tcpm_drv){ 0 }; fixture->saved_driver_ptr = tcpc_config[TCPM_TEST_PORT].drv;
out_loki: use flb_time_to_nanosec to prevent time convertion error(#3350)
@@ -706,7 +706,7 @@ static void pack_timestamp(msgpack_packer *mp_pck, struct flb_time *tms) uint64_t nanosecs; /* convert to nanoseconds */ - nanosecs = ((tms->tm.tv_sec * 1000000000L) + tms->tm.tv_nsec); + nanosecs = flb_time_to_nanosec(tms); /* format as a string */ len = snprintf(buf, sizeof(buf) - 1, "%" PRIu64, n...
VERSION bump to version 0.12.53
@@ -34,7 +34,7 @@ set(CMAKE_C_FLAGS_DEBUG "-g -O0") # set version set(LIBNETCONF2_MAJOR_VERSION 0) set(LIBNETCONF2_MINOR_VERSION 12) -set(LIBNETCONF2_MICRO_VERSION 52) +set(LIBNETCONF2_MICRO_VERSION 53) set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION}.${LIBNETCONF2_MICRO_VERSION}) set(L...
Fix problem with use of std::min and std::max
@@ -21,7 +21,7 @@ target("RED4ext.SDK") add_includedirs("vendor/RED4ext.SDK/include/", { public = true }) target("cyber_engine_tweaks") - add_defines("KIERO_USE_MINHOOK=1", "KIERO_INCLUDE_D3D12=1", "IMGUI_IMPL_WIN32_DISABLE_GAMEPAD", "WIN32_LEAN_AND_MEAN") + add_defines("KIERO_USE_MINHOOK=1", "KIERO_INCLUDE_D3D12=1", "...
luaopen doesn't need to reserve stack space Now that arbitrary initializer code runs elsewhere, it only needs <= 3 stack slots, and the default of 20 should be more than enough.
@@ -41,8 +41,6 @@ int init_${MODNAME}(lua_State *L) int luaopen_${MODNAME}(lua_State *L) { - lua_checkstack(L, 3); // TODO - Table *titan_globals = luaH_new(L); luaH_resizearray(L, titan_globals, ${N_TOPLEVEL});
fixed typo in donut_seetings
@@ -117,7 +117,7 @@ while [ -z "$SETUP_DONE" ]; do fi if [ ! -d "$HDK_ROOT" ]; then - if [ $FPGACARD = "KU3" ] + if [ $FPGACARD = "KU3" ]; then export HDK_ROOT=$FRAMEWORK_ROOT/cards/adku060_capi_1_1_release else export HDK_ROOT=$FRAMEWORK_ROOT/cards/flashgt_2016_3 @@ -129,7 +129,7 @@ while [ -z "$SETUP_DONE" ]; do fi i...