message
stringlengths
6
474
diff
stringlengths
8
5.22k
Updated Changelog for v1.4.3.
+Changes to GoAccess 1.4.3 - Friday, December 04, 2020 + + - Added the ability to set how often goaccess will parse data and output to + the HTML report via '--html-refresh=<secs>'. + - Changed how TLS is parsed so the Cypher uses a separate specifier than the + TLS version. It now uses '%K' for the TLS version and '%k...
session CHANGE remove vrb message Was printed too many times.
@@ -933,7 +933,6 @@ nc_server_get_cpblts_version(struct ly_ctx *ctx, LYS_VERSION version) /* models */ u = module_set_id = 0; while ((mod = ly_ctx_get_module_iter(ctx, &u))) { - VRB("HELLO module %s", mod->name); if (!strcmp(mod->name, "ietf-yang-library")) { /* ietf-yang-library is always part of the list, but it is s...
CHANGELOG: add bootloader v1.0.5
@@ -71,5 +71,8 @@ customers cannot upgrade their bootloader, its changes are recorded separately. ## Bootloader +### v1.0.5 +- Add SSD1312 driver for new OLED screens + ### v1.0.4 - Make bootloader mode more user-friendly and prompt for action on empty firmware
wingchi perf add hash table to save pid
@@ -73,7 +73,6 @@ bpf_text = """ value = forked.lookup(&pid) ; if( value!= NULL) { value->type=EVENT_EXIT; - //bpf_trace_printk("yes! value=%d",value->type); events.perf_submit(ctx,value,sizeof(data)) ; forked.delete(&pid); return 0 ; @@ -121,7 +120,6 @@ bpf_text = """ data.pid = pid ; data.tgid = bpf_get_current_pid_t...
RISCV64: Correcting pmap resolve
@@ -129,7 +129,7 @@ int pmap_enter(pmap_t *pmap, addr_t pa, void *va, int attr, page_t *alloc) /* Map next level pdir */ addr = ((pmap->pdir2[pdi2] >> 10) << 12); - pmap_common.pdir0[((u64)pmap_common.ptable >> 12) & 0x1ff] = (((addr >> 12) << 10) | 0xcf); + pmap_common.pdir0[((u64)pmap_common.ptable >> 12) & 0x1ff] = ...
fix(fatfs) add missing cast f_tell requires a FIL type pointer causing compiling to fail.
@@ -184,10 +184,10 @@ static lv_fs_res_t fs_seek(lv_fs_drv_t * drv, void * file_p, uint32_t pos, lv_fs f_lseek(file_p, pos); break; case LV_FS_SEEK_CUR: - f_lseek(file_p, f_tell(file_p) + pos); + f_lseek(file_p, f_tell((FIL *)file_p) + pos); break; case LV_FS_SEEK_END: - f_lseek(file_p, f_size(file_p) + pos); + f_lseek...
fix links to new iotivity.org website
@@ -153,7 +153,7 @@ Other information sources - `Wiki <https://github.com/iotivity/iotivity-lite/wiki>`_ - `OCF GitHub <https://github.com/openconnectivityfoundation>`_ - `OCF Specifications <https://openconnectivity.org/developer/specifications/>`_ -- `oneIOTa data models <https://openconnectivity.org/developer/oneiot...
Default RBF to off
@@ -149,7 +149,7 @@ static const unsigned int DEFAULT_BANSCORE_THRESHOLD = 100; /** Default for -persistmempool */ static const bool DEFAULT_PERSIST_MEMPOOL = true; /** Default for -mempoolreplacement */ -static const bool DEFAULT_ENABLE_REPLACEMENT = true; +static const bool DEFAULT_ENABLE_REPLACEMENT = false; /** Def...
Fixed issue with hidapi/usbmon pairing
@@ -2024,7 +2024,7 @@ void survive_data_cb_locked(SurviveUSBInterface *si) { } else { #ifdef HIDAPI // TODO: This seems hacky.... - for (int i = 0; i < si->sv->udev_cnt; i++) { + for (int i = 0; si->sv && i < si->sv->udev_cnt; i++) { struct SurviveUSBInfo *usbInfo = &si->sv->udev[i]; int r = update_feature_report(usbIn...
Completions: Fix suggestion of option `version` Fish will now suggest the option `--version` (`-V`), even if the current `kdb` command contains no subcommand.
@@ -127,7 +127,8 @@ complete -c kdb -n '__fish_kdb_needs_namespace' -x -a '(__fish_kdb_print_namespa __fish_kdb_add_option '__fish_kdb_subcommand_supports_common_options' 'help' 'H' 'Show the man page' __fish_kdb_add_option '__fish_kdb_subcommand_supports_option_null' 'null' '0' 'Use binary 0 termination.' __fish_kdb_a...
[bsp][stm32] add ci for stm32f411-st-nucleo bsp
@@ -86,6 +86,7 @@ env: - RTT_BSP='stm32/stm32f103-fire-arbitrary' RTT_TOOL_CHAIN='sourcery-arm' - RTT_BSP='stm32/stm32f407-atk-explorer' RTT_TOOL_CHAIN='sourcery-arm' - RTT_BSP='stm32/stm32f407-st-discovery' RTT_TOOL_CHAIN='sourcery-arm' + - RTT_BSP='stm32/stm32f411-st-nucleo' RTT_TOOL_CHAIN='sourcery-arm' - RTT_BSP='s...
OpenCanopy: Fix typo in the method names
@@ -38,7 +38,7 @@ STATIC EFI_CONSOLE_CONTROL_SCREEN_MODE mPreviousMode; STATIC EFI_STATUS -OcShowMenyByOcEnter ( +OcShowMenuByOcEnter ( IN OC_BOOT_CONTEXT *BootContext ) { @@ -64,7 +64,7 @@ OcShowMenyByOcEnter ( STATIC VOID -OcShowMenyByOcLeave ( +OcShowMenuByOcLeave ( VOID ) { @@ -95,7 +95,7 @@ OcShowMenuByOc ( mGuiCo...
VERSION bump to version 1.4.121
@@ -46,7 +46,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 120) +set(SYSREPO_MICRO_VERSION 121) set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_...
fix: update xst.info
-st| simpleterm, +xst| simpleterm, acsc=+C\,D-A.B0E``aaffgghFiGjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, am, bce, @@ -192,24 +192,24 @@ st| simpleterm, Tc, Ms=\E]52;%p1%s;%p2%s\007, -st-256color| simpleterm with 256 colors, - use=st, +xst-256color| simpleterm with 256 colors, + use=xst, colors#256, pairs#32767, # Nic...
vlib: use pthread_attr_setstack() to set thread stack Type: improvement
@@ -404,23 +404,28 @@ vlib_worker_thread_init (vlib_worker_thread_t * w) void * vlib_worker_thread_bootstrap_fn (void *arg) { - void *rv; vlib_worker_thread_t *w = arg; - vlib_main_t *vm = 0; w->lwp = syscall (SYS_gettid); w->thread_id = pthread_self (); __os_thread_index = w - vlib_worker_threads; - vm = vlib_global_m...
Test Entity declaration marked PUBLIC with no ID
@@ -6730,6 +6730,18 @@ START_TEST(test_long_doctype) } END_TEST +START_TEST(test_bad_entity) +{ + const char *text = + "<!DOCTYPE doc [\n" + " <!ENTITY foo PUBLIC>\n" + "]>\n" + "<doc/>"; + expect_failure(text, XML_ERROR_SYNTAX, + "ENTITY without Public ID is not rejected"); +} +END_TEST + /* * Namespaces tests. */ @@ ...
Changed a FIXME note to a TODO, as per the new standard.
@@ -161,7 +161,7 @@ class Parameters(object): # Set value of parameter setattr(self.parameters, key, val) - # FIXME: Should update/replace CCL objects appropriately + # TODO: Should update/replace CCL objects appropriately def __str__(self): """Output the parameters that were set, and their values.
Stubs for getuid() and geteuid()
@@ -1315,6 +1315,18 @@ sysreturn sched_setaffinity(int pid, u64 cpusetsize, const cpu_set_t *mast) return 0; /* stub */ } +/* uid_t getuid(void); */ +sysreturn getuid(void) +{ + return set_syscall_return(current, 0); +} + +/* uid_t geteuid(void); */ +sysreturn geteuid(void) +{ + return set_syscall_return(current, 0); +...
* Set correct CMAKE_C_FLAGS_RELEASEWITHDEBINFO cmake flags
@@ -135,6 +135,7 @@ set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_ASAN} -O0 -g -ggdb -Werror -DDEBUG -D_DEBUG - set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_ASAN} -O3 -DNDEBUG") set(CMAKE_EXE_LINKER_FLAGS_RELEASE "-Wl,-s") set(CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELEASE} -g") +set(CMAKE_C_FLAGS_RELEASEWITHDEBINFO "${CMAKE_C_FLA...
removed unnecesarry restarting of iterations and recaching of buckets in split, now just recaching the single record which was changed and decrementing the loop counter
@@ -352,11 +352,11 @@ split( } /* refresh cached data and restart iteration */ - i = -1; - record_offset = -1 * record_total_size; - fseek(linear_hash->database, bucket_loc + sizeof(linear_hash_bucket_t), SEEK_SET); - fread(records, record_total_size, linear_hash->records_per_bucket, linear_hash->database); + fseek(lin...
nimble/ll: Fix not validating no-param HCI commands sizes If command has no input parameters its size should be verified before passing it to handler function.
@@ -1152,10 +1152,14 @@ ble_ll_hci_le_cmd_proc(const uint8_t *cmdbuf, uint8_t len, uint16_t ocf, #endif #endif case BLE_HCI_OCF_LE_RD_TRANSMIT_POWER: + if (len == 0) { rc = ble_ll_read_tx_power(rspbuf, rsplen); + } break; case BLE_HCI_OCF_LE_RD_RF_PATH_COMPENSATION: + if (len == 0) { rc = ble_ll_read_rf_path_compensati...
Compile with axis properties exposed.
@@ -321,6 +321,7 @@ SCRIPT = source/scriptlib/StackedSymbolTable.o source/preprocessorlib/pp_parser.o \ source/preprocessorlib/pp_expr.o SCRIPT_BUILTINS = source/openborscript/animation.o \ + source/openborscript/axis.o \ source/openborscript/binding.o \ source/openborscript/collision_attack.o \ source/openborscript/co...
temporary disable https
@@ -23,7 +23,7 @@ tests_general.append([0, 0, workdir + 'client_http_get -n 2 -u /files/4M bsd10.n #tests_general.append([0, 0, workdir + 'tneat -L -n 1024 -P ' + workdir + 'prop_tcp.json']) if (platform.system() == "FreeBSD") or (platform.system() == "Linux"): - tests_general.append([0, 0, workdir + 'client_http_get -...
build/configs/rtl8721csm: No support binary signing when making binary Binary signing is not supported on public repo. So call the function to make binary without binary signing even if CONFIG_BINARY_SIGNING is enabled.
@@ -168,19 +168,11 @@ function concatenate_binary_with_signing() #signing echo "========== Binary SIGNING ==========" bash $BUILDDIR/configs/rtl8721csm/rtl8721csm_signing.sh kernel - - if [ "${CONFIG_AMEBAD_TRUSTZONE}" != "y" ];then - echo "========== Concatenate_binary for TZ disabled ==========" - cat $BINDIR/xip_ima...
Add AL / CG acknowledgments
@@ -120,4 +120,4 @@ The current lead of the LSST DESC CCL Topical Team is Danielle Leonard (c-d-leon The DESC acknowledges ongoing support from the Institut National de Physique Nucleaire et de Physique des Particules in France; the Science \& Technology Facilities Council in the United Kingdom; and the Department of E...
Fix a crash or unbounded allocation in RSA_padding_add_PKCS1_PSS_mgf1 and RSA_verify_PKCS1_PSS_mgf1 with 512-bit RSA vs. sha-512.
@@ -54,6 +54,7 @@ int RSA_verify_PKCS1_PSS_mgf1(RSA *rsa, const unsigned char *mHash, * Negative sLen has special meanings: * -1 sLen == hLen * -2 salt length is autorecovered from signature + * -3 salt length is maximized * -N reserved */ if (sLen == RSA_PSS_SALTLEN_DIGEST) @@ -73,9 +74,13 @@ int RSA_verify_PKCS1_PSS_...
[Bsp][tina]fix linux env error
@@ -18,8 +18,8 @@ config $PKGS_DIR option env="PKGS_ROOT" default "packages" -source "$RTT_DIR/KConfig" -source "$PKGS_DIR/KConfig" +source "$RTT_DIR/Kconfig" +source "$PKGS_DIR/Kconfig" config SOC_TINA bool
Fix windows ifdef.
@@ -541,7 +541,7 @@ static JanetStream *get_stdio_for_handle(JanetHandle handle, void *orig, int isw /* duplicate handle when converting file to stream */ #ifdef JANET_WINDOWS HANDLE prochandle = GetCurrentProcess(); - HANDLE newHandle; + HANDLE newHandle = INVALID_HANDLE_VALUE; if (!DuplicateHandle(prochandle, handle,...
Tests: "language_deps" option checked more carefully.
import pytest from unit.applications.lang.python import TestApplicationPython from unit.option import option +from unit.utils import findmnt +from unit.utils import waitformount +from unit.utils import waitforunmount class TestPythonIsolation(TestApplicationPython): @@ -60,39 +63,28 @@ class TestPythonIsolation(TestApp...
Remove SetLengths() requirement for GCM Also return NOT_SUPPORTED, rather than BAD_STATE for our current workarounds for GCM/CCM
@@ -509,15 +509,12 @@ psa_status_t mbedtls_psa_aead_update_ad( mbedtls_psa_aead_operation_t #if defined(MBEDTLS_PSA_BUILTIN_ALG_GCM) if( operation->alg == PSA_ALG_GCM ) { - if( !operation->lengths_set || operation->ad_started ) - return( PSA_ERROR_BAD_STATE ); - /* GCM currently requires all the additional data to be p...
Calculate reserved tiles counts even when using custom events
@@ -13,6 +13,7 @@ type WalkDenormalizedOptions = | { customEventsLookup: Dictionary<CustomEventDenormalized>; maxDepth: number; + customEventArgs: Record<string, unknown>; }; export const patchEventArgs = ( @@ -57,6 +58,25 @@ export const patchEventArgs = ( }; }; +export const replaceCustomEventArgs = ( + scriptEvent: ...
add uoregon student garrett morrison to nersc email
# Jim Eliot, Mon 15 Dec 15:50:16 GMT 2014 # Added case for userid "jimeliot". # +# Garrett Morrison, Mon Jan 2 11:51:16 PST 2017 +# Added case for usedid "gmorriso". Also switch Hank's email to UOregon. +# # ***************************************************************************** @@ -94,9 +97,9 @@ case $1 in "js9"...
graph-store: drop archives and backup
[%3 network:one:store] [%4 network:store] [%5 network:store] - state-6 + [%6 network:store] == ::- -+$ state-6 [%6 network:store] ++$ state-7 [%7 network:store] ++ orm orm:store ++ orm-log orm-log:store ++ mar %graph-update-3 (scag 2 (tap:orm-log update-log)) == :: - %6 [cards this(state old)] + %6 + %_ $ + -.old %7 + ...
corrected error message to make it better readable
@@ -42,7 +42,7 @@ static int validateKey (Key * key, Key * parentKey) if (!rc) { ELEKTRA_SET_VALIDATION_SEMANTIC_ERRORF ( - parentKey, "Length check of key %s with value %s failed. Maximum length is %d but the given string is %d", + parentKey, "Length check of key '%s' with value '%s' failed. Maximum length is %d but t...
drbg_bytes: remove check for DRBG_UNINITIALIZED state This check not only prevented the automatic reinstantiation of the DRBG, which is implemented in RAND_DRBG_generate(), but also prevented an error message from being generated in the case of failure.
@@ -772,9 +772,6 @@ static int drbg_bytes(unsigned char *out, int count) return 0; CRYPTO_THREAD_write_lock(drbg->lock); - if (drbg->state == DRBG_UNINITIALISED) - goto err; - for ( ; count > 0; count -= chunk, out += chunk) { chunk = count; if (chunk > drbg->max_request)
Add global transaction info in one phase commit xlog. commit tends to add that but the code is not right.
@@ -1291,6 +1291,7 @@ RecordTransactionCommit(void) bool RelcacheInitFileInval = false; bool wrote_xlog; bool isDtxPrepared = 0; + bool isOnePhaseQE = (Gp_role == GP_ROLE_EXECUTE && MyTmGxact->isOnePhaseCommit); TMGXACT_LOG gxact_log; XLogRecPtr recptr = InvalidXLogRecPtr; DistributedTransactionTimeStamp distribTimeSta...
Optional code for iOS to ignore invalid SSL certs
@@ -39,6 +39,14 @@ namespace carto { CFUniquePtr<CFReadStreamRef> requestStream(CFReadStreamCreateForHTTPRequest(kCFAllocatorDefault, cfRequest)); CFReadStreamSetProperty(requestStream, kCFStreamPropertyHTTPShouldAutoredirect, kCFBooleanTrue); CFReadStreamSetProperty(requestStream, kCFStreamPropertyHTTPAttemptPersisten...
mmapstorage: fix shelltest cleanup and docs
This file contains important shell tests for mmapstorage which do not fit well into the plugin README. -# Test kdb export & import (pipe size known) +# Test kdb export & import (stat: pipe size known) ```sh # Make temp file @@ -62,9 +62,10 @@ sudo kdb umount user/tests/mmapstorage # Remove temp file rm $(kdb get system...
os_win32: add virtual memory functions;
@@ -104,6 +104,22 @@ void os_request_permission(os_permission permission) { // } +void* os_vm_init(size_t size) { + return VirtualAlloc(NULL, size, MEM_RESERVE, PAGE_NOACCESS); +} + +bool os_vm_free(void* p, size_t size) { + return VirtualFree(p, 0, MEM_RELEASE); +} + +bool os_vm_commit(void* p, size_t size) { + return...
Compile damage recursive script exposure.
@@ -332,6 +332,7 @@ SCRIPT_BUILTINS = source/openborscript/commands.o source/openborscript/layer.o \ source/openborscript/level.o \ source/openborscript/math.o \ + source/openborscript/recursive_damage.o \ source/openborscript/string.o RAM = source/ramlib/ram.o RAND = source/randlib/rand32.o
rockspec: call luke with the Lua binary probed by luarocks. Closes * luaposix-git-1.rockspec (build.build_command): Prefix with luarocks expanded $(LUA), otherwise the `#! /usr/bin/env lua` shell magic in build-aux/luke, which may not match the binary installed by the user. Reported-by: Gregory Johnson
@@ -27,7 +27,7 @@ dependencies = { build = { type = 'command', - build_command = 'build-aux/luke' + build_command = '$(LUA) build-aux/luke' .. ' package="' .. package .. '"' .. ' version="' .. version .. '"' .. ' PREFIX="$(PREFIX)"'
updated comments for api docs. Added necessary comments to create api documentation for erlang:system_info/1 esp_largest_free_block and esp_get_minimum_free_size atoms.
@@ -142,6 +142,8 @@ process_info(_Pid, _Key) -> %% The following keys are supported on the ESP32 platform: %% <ul> %% <li><b>esp32_free_heap_size</b> the number of (noncontiguous) free bytes in the ESP32 heap (integer)</li> +%% <li><b>esp_largest_free_block</b> the number of the largest contiguous free bytes in the ESP...
sdl/pixels: add RGB444Model
@@ -339,3 +339,26 @@ func BytesPerPixel(format uint32) int { func BitsPerPixel(format uint32) int { return int(C.bitsPerPixel(C.Uint32(format))) } + +type RGB444 struct { + R, G, B byte +} + +func (c RGB444) RGBA() (r, g, b, a uint32) { + r = uint32(c.R) << 12 + g = uint32(c.G) << 12 + b = uint32(c.B) << 12 + return +}...
firfilt/autotest: extending to test recreate() with different input size
@@ -172,6 +172,19 @@ void autotest_firfilt_recreate() for (i=0; i<n; i++) CONTEND_EQUALITY(h[n-i-1], h0[i]*7.1f); + // re-create with longer coefficients array and test impulse response + float h2[2*n+1]; // new random-ish coefficients + for (i=0; i<2*n+1; i++) + h2[i] = cosf(0.2*i+1) + sinf(logf(2.0f)*i); + q = firfil...
Safier VDP_drawText(..) / VDP_clearText() methods (bounds checking)
@@ -230,15 +230,22 @@ void VDP_drawTextBG(VDPPlane plane, const char *str, u16 x, u16 y) u16 data[128]; const u8 *s; u16 *d; - u16 i, w, len; + u16 i, pw, ph, len; // get the horizontal plane size (in cell) - w = (plane == WINDOW)?windowWidth:planeWidth; + pw = (plane == WINDOW)?windowWidth:planeWidth; + ph = (plane ==...
Rust: Correct a typo
@@ -74,7 +74,7 @@ fn main() -> Result<(), KeyError> { ## Generation -Bindings are generated when buildling the `elektra-sys` crate using `rust-bindgen`. The `build.rs` script in the `elektra-sys` crate calls and configures bindgen. It also emits additional configuration for `rustc` to tell it what library to link again...
Fix issue where empty sprites would slow down project load
@@ -79,7 +79,7 @@ const loadProject = async (projectPath) => { const oldData = oldSprite || {}; const id = oldData.id || sprite.id; - if (!oldSprite || !oldSprite.states || !oldSprite.numTiles) { + if (!oldSprite || !oldSprite.states || oldSprite.numTiles === undefined) { modifiedSpriteIds.push(id); }
Update the kubelet volume mount of non-root enabler container on the real object not on a copy of it
@@ -526,8 +526,8 @@ func (r *ReconcileSPOd) getConfiguredSPOd( volume, mount := bindata.CustomHostKubeletVolume(config.KubeletDir()) templateSpec.Volumes = append(templateSpec.Volumes, volume) - nonRootEnabler := templateSpec.InitContainers[bindata.InitContainerIDNonRootenabler] - nonRootEnabler.VolumeMounts = append(n...
Documentation: Add empty lines before lists
@@ -21,6 +21,7 @@ For instance the key **/b/c** has the path **/** -> **b** -> **c**. Note how the name of the key determines the path to its value. You can use the file system analogy as a mnemonic to remember these commands (like the file system commands in your favorite operating system): + - `kdb ls <path>` lists k...
libhfnetdriver: move binding to a random loopback address to a separate function
@@ -93,24 +93,16 @@ static void netDriver_initNsIfNeeded(void) { (int)getpid()); } -static int netDriver_sockConnAddr(const struct sockaddr *addr, socklen_t socklen) { - int sock = socket(addr->sa_family, SOCK_STREAM, IPPROTO_TCP); - if (sock == -1) { - PLOG_D("socket(type=%d, SOCK_STREAM, IPPROTO_TCP)", addr->sa_famil...
Remove code that was added for checkpointing and not removed...
@@ -2093,10 +2093,6 @@ void picoquic_update_path_rtt(picoquic_cnx_t* cnx, picoquic_path_t* old_path, pi else if (path_x->one_way_return_var != 0) { one_way_delay_sample = rtt_estimate - path_x->one_way_return_avg; is_path_x_valid = 0; - - if (one_way_delay_sample < 0) { - is_path_x_valid = is_path_x_valid; - } } else i...
external/mambo: Do not enable TM on P9 in ibm, pa-features Bytes 22-23 Bit 0 in ibm,pa-features indicate TM support. None of the pa_features_p9*[] in hdata/cpu-common.c set this bit so do not set it in the ibm,pa-features made for mambo either.
@@ -481,7 +481,7 @@ for { set c 0 } { $c < $mconf(cpus) } { incr c } { # bytes 14-21 lappend reg 0x0000800080008000 # bytes 22-29 22/23=TM - lappend reg 0x8000800080008000 + lappend reg 0x0000800080008000 # bytes 30-37 lappend reg 0x80008000C0008000 # bytes 38-45 40/41=radix
h2olog: no need to define placeholder values for typeof
@@ -329,12 +329,10 @@ def build_typedef_for_cplusplus(): typedef = st_quicly_conn_t_def # CAUTION: it depends on a GCC/Clang compiler extension: typeof() - i = 0 for st_name, st_fields in struct_map.items(): for st_field_access, st_field_name_alias in st_fields: - i += 1 - typedef += """static struct %s s%d; // placeho...
Remote redundant line Causes compilation error when LV_COLOR_DEPTH == 16
@@ -473,7 +473,6 @@ static inline uint8_t lv_color_brightness(lv_color_t color) #else #define LV_COLOR_MAKE(r8, g8, b8) ((lv_color_t){{g8 >> 5, r8 >> 3, b8 >> 3, (g8 >> 2) & 0x7}}) #endif -static inline lv_color_t lv_color_make(uint8_t r8, uint8_t g8, uint8_t b8) #elif LV_COLOR_DEPTH == 32 #define LV_COLOR_MAKE(r8, g8,...
test via resource manager
#!./common/bats/bin/bats export BATS_JUNIT_CLASS=Singularity -source ./common/TEST_ENV || exit 1 load ./common/test_helper_functions || exit 1 source ./common/functions || exit 1 +if [ -s ./common/TEST_ENV ];then + source ./common/TEST_ENV +fi + +check_rms +rm=$RESOURCE_MANAGER + echo " " echo " " echo "---------------...
skip empty channels
@@ -3301,6 +3301,15 @@ while(1) else if(FD_ISSET(fd_socket, &readfds)) process_packet(); else { + cpa++; + if(channelscanlist[cpa] == 0) cpa = 0; + if(set_channel() == false) + { + errorcount++; + continue; + } + if(beaconactiveflag == true) send_beacon_aplist(); + if((attackstatus &DISABLE_AP_ATTACKS) != DISABLE_AP_AT...
distro-packages/python-rpm-macros: even more robust macro for distro test
+ local mpi_family = rpm.expand("%mpi_family") + local ohpc_suffix = rpm.expand("%PROJ_DELIM") + local function is_centos() -+ local s = rpm.expand("%centos") -+ return s ~= '' ++ local s = rpm.expand("%_host_vendor") ++ return s == 'redhat' + end + + if string.match(rpm.expand("%name"), mpi_family) then
Raise informative error if resource is a directory
@@ -57,6 +57,10 @@ class ResourceUnpackingError(Exception): pass +class ResourceIsDirectoryError(Exception): + pass + + class OutputIsDirectoryError(Exception): pass @@ -239,6 +243,9 @@ def ensure_outputs_not_directories(outputs, directory): def process(fetched_file, file_name, opts, outputs, remove=True): + if not os....
opensuse: revert java path
@@ -96,7 +96,7 @@ RUN useradd \ RUN cd /tmp && wget https://services.gradle.org/distributions/gradle-7.4-bin.zip && unzip gradle-7.4-bin.zip && rm gradle-7.4-bin.zip && mv gradle-7.4 /opt/gradle RUN alternatives --auto java && alternatives --auto javac ENV PATH="${PATH}:/opt/gradle/bin" \ - JAVA_HOME="/usr/lib/jvm/java...
Fix a document description in apps/req
@@ -347,8 +347,8 @@ string is required by the SM2 signature algorithm for signing and verification. =item B<-sm2-hex-id> -Specify a binary ID string to use when signing or verifying using an SM2 -certificate. The argument for this option is string of hexadecimal digits. +Specify a binary ID string to use when verifying...
CMake hides symbols by default; This is more consistent with tup.
@@ -345,7 +345,7 @@ else() return() endif() -set_target_properties(lovr PROPERTIES C_VISIBILITY_PRESET default) +set_target_properties(lovr PROPERTIES C_VISIBILITY_PRESET hidden) set_target_properties(lovr PROPERTIES C_STANDARD 99) target_include_directories(lovr PRIVATE src src/modules) target_link_libraries(lovr
is it a repeat thing?
@@ -2,9 +2,9 @@ language: c script: - make vars - DEBUG=1 make vars - - make test/optimized + - # make test/optimized - make clean - - LSAN_OPTIONS=verbosity=1:log_threads=1 make test/ci + - make test/ci os: - linux - osx
Update doc/note/auto-formatting.md for dumbindent
# Auto-Formatting Within this repository: -- `C` code is formatted by `clang-format-5.0 -style=Chromium`. +- Hand-written `C` code is formatted by `clang-format-5.0 -style=Chromium`. +- Auto-generated `C` code is formatted by [`dumbindent`](/cmd/dumbindent), + which isn't as 'pretty' in some sense, but is [substantiall...
Fix the s_server psk_server_cb for use in DTLS Commit added a protocol version check to psk_server_cb but failed to take account of DTLS causing DTLS based psk connections to fail. Fixes
@@ -131,12 +131,12 @@ static unsigned int psk_server_cb(SSL *ssl, const char *identity, if (s_debug) BIO_printf(bio_s_out, "psk_server_cb\n"); - if (SSL_version(ssl) >= TLS1_3_VERSION) { + if (!SSL_is_dtls(ssl) && SSL_version(ssl) >= TLS1_3_VERSION) { /* - * This callback is designed for use in TLSv1.2. It is possible ...
Extend test coverage of external entity handler parameters
@@ -2750,16 +2750,34 @@ END_TEST /* Test that an explicit external entity handler argument replaces * the parser as the first argument. + * + * We do not call the first parameter to the external entity handler + * 'parser' for once, since the first time the handler is called it + * will actually be a text string. We ne...
Fix duplicate enum
@@ -629,7 +629,6 @@ int app_kas_ffc_handler(ACVP_TEST_CASE *test_case) { goto error; break; #endif - case ACVP_KAS_FFC_FFDHE8192: case ACVP_KAS_FFC_FUNCTION: case ACVP_KAS_FFC_CURVE: case ACVP_KAS_FFC_ROLE:
common/vec3.c: Format with clang-format BRANCH=none TEST=none
#include "vec3.h" #include "util.h" -static fpv3_t zero_initialized_vector = { - FLOAT_TO_FP(0.0f), FLOAT_TO_FP(0.0f), FLOAT_TO_FP(0.0f) -}; +static fpv3_t zero_initialized_vector = { FLOAT_TO_FP(0.0f), FLOAT_TO_FP(0.0f), + FLOAT_TO_FP(0.0f) }; void fpv3_zero(fpv3_t v) {
common/pwm.c: Format with clang-format BRANCH=none TEST=none
#ifdef CONFIG_PWM -#define PWM_RAW_TO_PERCENT(v) \ - DIV_ROUND_NEAREST((uint32_t)(v) * 100, UINT16_MAX) +#define PWM_RAW_TO_PERCENT(v) DIV_ROUND_NEAREST((uint32_t)(v)*100, UINT16_MAX) #define PWM_PERCENT_TO_RAW(v) ((uint32_t)(v)*UINT16_MAX / 100) /* @@ -71,8 +70,7 @@ host_command_pwm_set_duty(struct host_cmd_handler_ar...
Fix cURL artifacts config names
<dependency org="NetBackup" name="SDK-7.7" rev="7.7" conf="rhel7_x86_64->rhel5_x86_64;rhel6_x86_64->rhel5_x86_64" /> <dependency org="R-Project" name="R" rev="3.1.0" conf="rhel7_x86_64->rhel6_x86_64;rhel6_x86_64->rhel6_x86_64;suse11_x86_64->suse10_x86_64;sles11_x86_64->suse10_x86_64" /> <dependency org="Python" name="p...
sys/socket: remove AF_PACKET which is not supported to TizenRT remove AF_PACKET which is not supported to TizenRT
@@ -131,9 +131,6 @@ extern "C" { #ifndef AF_INET6 #define AF_INET6 PF_INET6 #endif -#ifndef AF_PACKET -#define AF_PACKET PF_PACKET -#endif /**************************************************************************** * Public Structure
[add] a macro to be isolated while using signals in rt_mutex_take function.
@@ -685,7 +685,9 @@ rt_err_t rt_mutex_take(rt_mutex_t mutex, rt_int32_t time) } else { +#ifdef RT_USING_SIGNALS __again: +#endif /* end of RT_USING_SIGNALS */ /* The value of mutex is 1 in initial status. Therefore, if the * value is great than 0, it indicates the mutex is avaible. */ @@ -754,8 +756,10 @@ __again: if (...
Drop TODO 3.0 as we cannot get rid of legacy nids in 3.0 Fixes
@@ -1415,7 +1415,7 @@ EVP_CIPHER *evp_cipher_new(void) * NIDs or any functionality that use them. */ #ifndef FIPS_MODULE -/* TODO(3.x) get rid of the need for legacy NIDs */ +/* After removal of legacy support get rid of the need for legacy NIDs */ static void set_legacy_nid(const char *name, void *vlegacy_nid) { int n...
project_include.cmake: Make esptool_py_custom_target callable from other directories
@@ -140,13 +140,14 @@ endif() # function(esptool_py_custom_target target_name flasher_filename dependencies) idf_build_get_property(idf_path IDF_PATH) + idf_component_get_property(esptool_py_dir esptool_py COMPONENT_DIR) add_custom_target(${target_name} DEPENDS ${dependencies} COMMAND ${CMAKE_COMMAND} -D IDF_PATH="${id...
Ensure unique visitor key variables are initialized to NULL.
@@ -1875,7 +1875,7 @@ insert_agent (int data_nkey, int agent_nkey, GModule module) static char * get_uniq_visitor_key (GLogItem * logitem) { - char *ua, *key; + char *ua = NULL, *key = NULL; size_t s1, s2, s3; ua = deblank (xstrdup (logitem->agent));
vcl: EPOLLOUT should be generated when epoll_ctl called with EPOLLOUT event Type: fix When we call epoll_ctl to add or mod fd with EPOLLOUT event, mostly to check if we can write. So we expect a EPOLLOUT event should be generated immediately unless tx queue is full.
@@ -2518,6 +2518,15 @@ vppcom_epoll_ctl (uint32_t vep_handle, int op, uint32_t session_handle, svm_fifo_add_want_deq_ntf (session->tx_fifo, SVM_FIFO_WANT_DEQ_NOTIF_IF_FULL); + /* Generate EPOLLOUT when tx_fifo/ct_tx_fifo not full */ + if ((event->events & EPOLLOUT) && + (vcl_session_write_ready (session) > 0)) + { + se...
parser: Use enum_method_check to check for incomplete enums.
@@ -4525,15 +4525,12 @@ static void parse_enum_header(lily_parse_state *parser, lily_class *enum_cls) else variant_cls->build_type = empty_type; - if (lex->token == tk_right_curly) - break; - else if (lex->token == tk_word && lex->label[0] == 'd' && - keyword_by_name(lex->label) == KEY_DEFINE) - break; - else { - NEED_...
fixes an oob read
@@ -257,10 +257,12 @@ apply(char *str, jsmntok_t *tok, size_t n_toks, struct extractor_specifier *es) break; // we are done // find the next toplevel key - for (ik = iv + 1; tok[ik].end < tok[iv].end; ik++) + for (ik = iv + 1; ik < n_toks && tok[ik].end < tok[iv].end; ik++) continue; iv = ik + 1; + if (ik >= n_toks || ...
add comment about the effects of motortest_override
@@ -26,7 +26,7 @@ typedef struct { uint8_t controls_override : 1; // will activate rx_override below & will write directly to the motors (motor_test) uint8_t acro_override : 1; - uint8_t motortest_override : 1; + uint8_t motortest_override : 1; // tuns off digital idle in the dshot driver & will write either sticks or ...
tls: enable host verification by hostname Type: improvement
#include <tlsopenssl/tls_openssl.h> #include <tlsopenssl/tls_bios.h> #include <openssl/x509_vfy.h> +#include <openssl/x509v3.h> #define MAX_CRYPTO_LEN 64 @@ -670,7 +671,42 @@ openssl_set_ckpair (SSL *ssl_connection, u32 ckpair_index) SSL_use_PrivateKey (ssl_connection, pkey); BIO_free (cert_bio); TLS_DBG (1, "TLS clien...
Reduce API logging verbosity
@@ -423,6 +423,17 @@ namespace Miningcore var layout = "[${longdate}] [${level:format=FirstCharacter:uppercase=true}] [${logger:shortName=true}] ${message} ${exception:format=ToString,StackTrace}"; + var nullTarget = new NullTarget("null") + { + }; + + loggingConfig.AddTarget(nullTarget); + + // Suppress some Aspnet st...
BugID:22724304: Rework the log message so as to be used in auto test.
@@ -140,7 +140,7 @@ static int32_t translate_addr(char *str) static void netmgr_ip_got_event(hal_wifi_module_t *m, hal_wifi_ip_stat_t *pnet, void *arg) { - LOGI(TAG, "Got ip : %s, gw : %s, mask : %s", pnet->ip, pnet->gate, + LOG("Got ip : %s, gw : %s, mask : %s", pnet->ip, pnet->gate, pnet->mask); #if defined(WITH_LWIP...
add -Werror=format to easily detect such errors in development
@@ -262,7 +262,7 @@ IF (PKG_CONFIG_FOUND) ENDIF (LIBCAP_FOUND) ENDIF (PKG_CONFIG_FOUND) -SET(CC_WARNING_FLAGS "-Wall -Wno-unused-value -Wno-unused-function -Wno-nullability-completeness -Wno-expansion-to-defined -Werror=implicit-function-declaration -Werror=incompatible-pointer-types") +SET(CC_WARNING_FLAGS "-Wall -Wno...
tree schema BUGFIX hash table ht params are pointers to values
@@ -444,7 +444,12 @@ lysp_check_dup_typedef(struct lys_parser_ctx *ctx, struct lysp_node *node, const static ly_bool lysp_id_cmp(void *val1, void *val2, ly_bool UNUSED(mod), void *UNUSED(cb_data)) { - return strcmp(val1, val2) == 0 ? 1 : 0; + char *id1, *id2; + + id1 = *(char **)val1; + id2 = *(char **)val2; + + return...
Fix oculus backend;
#include "graphics/canvas.h" #include "graphics/texture.h" #include "core/maf.h" +#include "core/ref.h" #include <stdbool.h> #include <OVR_CAPI.h> @@ -176,7 +177,7 @@ static bool oculus_getPose(Device device, vec3 position, quat orientation) { ovrPoseStatef* poseState = getPose(device); if (!poseState) return false; - ...
plugins: fix broken link in yanlr README
@@ -36,7 +36,7 @@ Please note that we only tested the plugin with ANTLR `4.7.1` (and later version ### Arch Linux -In [Arch Linux](https://www.archlinux.org/) the required packages are called [`antlr4`](https://www.archlinux.org/packages/extra/any/antlr4/) and [`antlr4-runtime`](https://www.archlinux.org/packages/commu...
balloon: synchronize ReleaseHardware with EvtFileClose Fix synchronization of EvtFileClose and ReleaseHardware. Access memory allocated by WDF Virtio DMA API only when it is safe.
@@ -319,12 +319,16 @@ BalloonEvtDeviceReleaseHardware ( PAGED_CODE(); + WdfObjectAcquireLock(Device); + devCtx = GetDeviceContext(Device); VirtIOWdfDeviceFreeDmaMemoryByTag(&devCtx->VDevice.VIODevice, BALLOON_MGMT_POOL_TAG); devCtx->MemStats = NULL; devCtx->pfns_table = NULL; + WdfObjectReleaseLock(Device); + VirtIOWdf...
psql: tab-complete ALTER ... DETACH CONCURRENTLY / FINALIZE New keywords per Discussion:
@@ -2209,6 +2209,8 @@ psql_completion(const char *text, int start, int end) completion_info_charp = prev3_wd; COMPLETE_WITH_QUERY(Query_for_partition_of_table); } + else if (Matches("ALTER", "TABLE", MatchAny, "DETACH", "PARTITION", MatchAny)) + COMPLETE_WITH("CONCURRENTLY", "FINALIZE"); /* ALTER TABLESPACE <foo> with ...
clean ftrace files regardless of value of TRACE
@@ -131,7 +131,7 @@ endif AFLAGS+= -felf64 -I$(OBJDIR)/ LDFLAGS+= $(KERNLDFLAGS) -T linker_script -CLEANFILES+= $(foreach f,gitversion.c frame.inc stage3.dis stage3.img,$(OBJDIR)/$f) +CLEANFILES+= $(foreach f,gitversion.c frame.inc stage3.dis stage3.img src/unix/ftrace.* src/x86_64/ftrace.*,$(OBJDIR)/$f) CLEANDIRS+= $(...
py/mpconfig.h: Add note that uio.resource_stream() is deprecated.
@@ -1187,6 +1187,12 @@ typedef double mp_float_t; // Python" by prepocessing binary resources into Python source // and bytecode-freezing it (with a simple helper module available // e.g. in micropython-lib). +// DEPRECATED: This function was added as an experiment, and remains +// in the codebase only for further expe...
esp32/main: Allocate the uPy heap via malloc instead of on the bss. This allows to get slightly more memory for the heap (currently around 110k vs previous 92k) because the ESP IDF frees up some RAM after booting up.
#define MP_TASK_PRIORITY (ESP_TASK_PRIO_MIN + 1) #define MP_TASK_STACK_SIZE (16 * 1024) #define MP_TASK_STACK_LEN (MP_TASK_STACK_SIZE / sizeof(StackType_t)) -#define MP_TASK_HEAP_SIZE (92 * 1024) STATIC StaticTask_t mp_task_tcb; STATIC StackType_t mp_task_stack[MP_TASK_STACK_LEN] __attribute__((aligned (8))); -STATIC u...
serial: remove unused variable Counter variable (int cnt) is now unused and should be deleted
@@ -26,7 +26,7 @@ VIOSerialSendCtrlMsg( UINT len; PPORTS_DEVICE pContext = GetPortsDevice(Device); VIRTIO_CONSOLE_CONTROL cpkt; - int cnt = 0; + if (!pContext->isHostMultiport) { return;
Fix overly replacement in the documentation
@@ -810,7 +810,7 @@ void mpi_core_cond_assign( data_t * input_X, TEST_CF_PUBLIC( Y, bytes ); /* Check if the given length is copied even it is smaller - than the bytesgth of the given MPIs. */ + than the length of the given MPIs. */ if( copy_limbs < limbs ) { ASSERT_COMPARE( X, copy_bytes, Y, copy_bytes );
schema BUGFIX enable forgotten support for searching YIN schemas When loading schema or searching for import modules.
@@ -1401,10 +1401,8 @@ lys_search_localfile(const char * const *searchpaths, ly_bool cwd, const char *n flen = strlen(file->d_name); if (!strcmp(&file->d_name[flen - 5], ".yang")) { format_aux = LYS_IN_YANG; - /* TODO YIN parser } else if (!strcmp(&file->d_name[flen - 4], ".yin")) { format_aux = LYS_IN_YIN; - */ } else...
webp-lossless-bitstream-spec,cosmetics: normalize range syntax [N-M], [N, M] -> [N..M] these were missed in: webp-lossless-bitstream-spec,cosmetics: normalize range syntax
@@ -436,7 +436,7 @@ int8 ColorTransformDelta(int8 t, int8 c) { A conversion from the 8-bit unsigned representation (uint8) to the 8-bit signed one (int8) is required before calling `ColorTransformDelta()`. It should be performed using 8-bit two's complement (that is: uint8 range -\[128-255\] is mapped to the \[-128, -1...
dm: acpi: refine CPU Definition Blocks name For all Definition Blocks in ACPI Namespace, their name are a fixed 32 bits. This patch refine CPU Definition Blocks name to support more than 10 CPUs for a guest.
@@ -323,10 +323,10 @@ void pm_write_dsdt(struct vmctx *ctx, int ncpu) /* Scope (_PR) */ dsdt_line(""); - dsdt_line(" Scope (_PR)"); + dsdt_line(" Scope (_SB)"); dsdt_line(" {"); for (i = 0; i < ncpu; i++) { - dsdt_line(" Device (CPU%d)", i); + dsdt_line(" Device (PR%02d)", i); dsdt_line(" {"); dsdt_line(" Name (_HID, \...
zephyr: herobrine: Configure unused pins Configure the unused pins, which are NC in hardware. BRANCH=None TEST=Built the herobrine_npcx9 image successfully.
&gpio_rtc_ec_wake_odl >; }; + + unused-pins { + compatible = "unused-gpios"; + unused-gpios = + <&gpio5 2 0>, + <&gpio5 4 0>, + <&gpio7 6 0>, + <&gpioc 5 0>, + <&gpiod 1 0>, + <&gpiod 0 0>, + <&gpioe 3 0>, + <&gpioc 1 0>, + <&gpio0 4 0>, + <&gpiod 6 0>, + <&gpio3 2 0>, + <&gpio3 5 0>, + <&gpiod 7 0>, + <&gpio8 6 0>, + ...
[numerics] comment full fclib tests
@@ -306,11 +306,11 @@ if(WITH_TESTING) HDF5 ON ) - new_tests_collection( - DRIVER gfc3d_test_collection.c.in FORMULATION gfc3d COLLECTION TEST_IPM_COLLECTION_FCLIB_FULL - EXTRA_SOURCES data_collection_gfc3d_fclib_full.c test_ipm_gfc3d_1.c DEPS FCLIB::fclib - HDF5 ON - ) + # new_tests_collection( + # DRIVER gfc3d_test_c...
Fix ToggleableCheckBoxField to remove issue where if checked on load requires two clicks to uncheck, restyle to match other checkboxes in app
@@ -117,41 +117,34 @@ ToggleableFormField.defaultProps = { }; export class ToggleableCheckBoxField extends Component { - constructor() { - super(); - this.state = { - open: false - }; - } - - toggleOpen = () => { - const { onToggle } = this.props; - onToggle(!this.state.open); - - this.setState({ open: !this.state.open...
Tighten valid const/func/struct names
@@ -28,8 +28,29 @@ type Options struct { AllowDoubleUnderscoreNames bool } -func isDoubleUnderscore(s string) bool { - return len(s) >= 2 && s[0] == '_' && s[1] == '_' +func validConstName(s string) bool { + if (len(s) >= 2) && (s[0] == '_') && (s[1] == '_') { + return false + } + for i := 0; i < len(s); i++ { + switch...
Avoid holding a lock when calling OPENSSL_init_crypto We move an OPENSSL_init_crypto call slightly earlier in the process to avoid calling it while holding the store lock. This can lead to deadlocks. Fixes the no-engine build.
@@ -566,14 +566,6 @@ static int provider_forall_loaded(struct provider_store_st *store, int ret = 1; int num_provs; -#ifndef FIPS_MODE - /* - * Make sure any providers are loaded from config before we try to use - * them. - */ - OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CONFIG, NULL); -#endif - num_provs = sk_OSSL_PROVIDER...