message
stringlengths
6
474
diff
stringlengths
8
5.22k
Test general entity substitution in standalone internal param entity
@@ -4791,6 +4791,28 @@ START_TEST(test_trailing_cr_in_att_value) } END_TEST +/* Try parsing a general entity within a parameter entity in a + * standalone internal DTD. Covers a corner case in the parser. + */ +START_TEST(test_standalone_internal_entity) +{ + const char *text = + "<?xml version='1.0' standalone='yes' ?...
added some mac variants
@@ -359,6 +359,29 @@ keywritemacwps(mac +3); keywritemacwps(mac -4); keywritemacwps(mac +4); +return; +} +/*===========================================================================*/ +void keywritemacvariants(unsigned long long int mac) +{ +snprintf(pskstring, 64, "2%012llX\n", mac); +writepsk(pskstring); + +snprint...
Increase live dump window size
@@ -264,6 +264,7 @@ NTSTATUS PhpLiveDumpTaskDialogThread( config.pszWindowTitle = PhApplicationName; config.pszMainInstruction = L"Processing live kernel dump..."; config.pszContent = L" "; + config.cxWidth = 200; TaskDialogIndirect(&config, NULL, NULL, NULL);
in_forward: use input_chunk interface to append records
@@ -37,12 +37,27 @@ static int fw_process_array(struct flb_input_instance *in, { int i; msgpack_object entry; + msgpack_sbuffer mp_sbuf; + msgpack_packer mp_pck; + + /* + * This process is not quite optimal from a performance perspective, + * we need to fix it later, likely using the offset of the original + * msgpack ...
Tests: fixed operator in http.py.
@@ -63,7 +63,7 @@ class TestHTTP(TestUnit): if 'raw' not in kwargs: req = ' '.join([start_str, url, http]) + crlf - if body is not b'': + if body != b'': if isinstance(body, str): body = body.encode()
Fix OPENXR_PACKAGE_NAME
@@ -17,8 +17,8 @@ set(tmp) set(OPENEXR_NAMESPACE_CUSTOM "0" CACHE STRING "Whether the namespace has been customized (so external users know)") set(OPENEXR_INTERNAL_IMF_NAMESPACE "Imf_${OPENEXR_VERSION_API}" CACHE STRING "Real namespace for Imath that will end up in compiled symbols") -set(OPENEXR_IMF_NAMESPACE "Imf" CA...
Get the version from clap header
cmake_minimum_required(VERSION 3.17) enable_testing() -project(CLAP LANGUAGES C CXX VERSION 1.1.2) + +# Extract the version from header file +file(READ "include/clap/version.h" clap_version_header) +string(REGEX MATCH "CLAP_VERSION_MAJOR \\(\\(uint32_t\\)([0-9]+)\\)" CLAP_VERSION_MAJOR ${clap_version_header}) +set(CLAP...
Remove debugggin printf
@@ -57,7 +57,6 @@ customStatus_e customProcessor(txContext_t *context) { context->currentFieldLength); dataContext.tokenContext.pluginAvailable = eth_plugin_perform_init(tmpContent.txContent.destination, &pluginInit); - PRINTF("a\n"); } PRINTF("pluginAvailable %d\n", dataContext.tokenContext.pluginAvailable); if (dataC...
Fix warning C4018: '<=': signed/unsigned mismatch [CC] {default-win-x86_64} $(S)/library/json/json_reader.cpp arc/library/json/json_reader.cpp:409: warning C4018: '<=': signed/unsigned mismatch arc/library/json/json_reader.cpp:429: note: see reference to function template instantiation 'bool NJson::`anonymous-namespace...
@@ -406,7 +406,7 @@ namespace { template <class U> bool ProcessUint(U u) { - if (Y_LIKELY(u <= Max<int64_t>())) { + if (Y_LIKELY(u <= uint64_t(Max<int64_t>()))) { return Impl.OnInteger(int64_t(u)); } else { return Impl.OnUInteger(u);
Add RuuviTag polling LIS2DH12 3-axis moving sysinit up as per review
#include <errno.h> #include <string.h> +#include "sysinit/sysinit.h" #include "defs/error.h" #include "os/os.h" -#include "sysinit/sysinit.h" #include "hal/hal_spi.h" #include "sensor/sensor.h" #include "sensor/accel.h"
Added some guards in ta_view unmarshalling to protect against bad marshalled data.
@@ -165,6 +165,9 @@ static void ta_view_unmarshal(void *p, JanetMarshalContext *ctx) { janet_unmarshal_size(ctx, &offset); janet_unmarshal_janet(ctx, &buffer); view->buffer = (JanetTArrayBuffer *)janet_unwrap_abstract(buffer); + size_t buf_need_size = offset + (janet_tarray_type_size(view->type)) * ((view->size - 1) * ...
Fix for building against libreSSL Changed to use the check we use elsewhere.
@@ -638,7 +638,8 @@ static EVP_CIPHER * aes_256_ctr_cipher = NULL; void _libssh2_openssl_crypto_init(void) { -#if (OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBSSH2_LIBRESSL)) +#if OPENSSL_VERSION_NUMBER >= 0x10100000L && \ + !defined(LIBRESSL_VERSION_NUMBER) #ifndef OPENSSL_NO_ENGINE ENGINE_load_builtin_engine...
Add warning about "fp" format
@@ -119,6 +119,9 @@ formaters = { } formatValue = formaters[args.format] +if args.format == "fp": + warning("When using fp display format, values are compared loosely (some tests may produce false positives)") + # # Spec tests preparation #
libhfcommon: Do not close twice the same file in files_readPidFromFile
@@ -450,7 +450,6 @@ bool files_readPidFromFile(const char* fileName, pid_t* pidPtr) { if (ret == -1) { if (lineSz == 0) { LOG_W("Empty PID file (%s)", fileName); - fclose(fPID); free(lineptr); return false; }
Add include dir for cs.h when calling build_from_doxygen.py.
@@ -63,6 +63,9 @@ if(WITH_SERIALIZATION) list(APPEND GENERATED_DEPENDENCIES ${CMAKE_SOURCE_DIR}/control/src/SiconosControl.hpp) endif() list(APPEND GENERATED_INCLUDES -I${CMAKE_BINARY_DIR}) # For SiconosConfig.h + if(SuiteSparse_CXSparse_INCLUDE_DIR) + list(APPEND GENERATED_INCLUDES -I${SuiteSparse_CXSparse_INCLUDE_DIR...
[core] move headers to help isolate fdevent layer move headers to help isolate fdevent layer from layers above
#include "first.h" #include "fdevent.h" -#include "buffer.h" -#include "log.h" #include <sys/types.h> #include "sys-socket.h" #include <winsock2.h> #endif +#include "ck.h" +#define force_assert(x) ck_assert(x) + #ifdef SOCK_CLOEXEC static int use_sock_cloexec; #endif @@ -600,6 +601,7 @@ int fdevent_set_so_reuseaddr (co...
Removed unnecessary code from time specificity.
@@ -1314,37 +1314,15 @@ parse_time_specificity_string (char *hmark, char *ftime) { static int gen_visit_time_key (GKeyData * kdata, GLogItem * logitem) { char *hmark = NULL; - char hour[HRMI_LEN] = ""; /* %H:%M */ if (!logitem->time) return 1; - /* if not a timestamp, then it must be a string containing the hour. - * t...
bfd_demangle returns allocated buf
@@ -121,9 +121,10 @@ void arch_bfdDemangle(pid_t pid, funcs_t* funcs, size_t funcCnt) { for (size_t i = 0; i < funcCnt; i++) { if (funcs[i].func && strncmp(funcs[i].func, "_Z", 2) == 0) { - const char* new_name = bfd_demangle(bfdParams.bfdh, funcs[i].func, 0); + char* new_name = bfd_demangle(bfdParams.bfdh, funcs[i].fu...
config_map: upon multiple values, count them and validate
#include <fluent-bit/flb_macros.h> #include <fluent-bit/flb_config_map.h> +static int expect_n_values(int type) +{ + if (type > FLB_CONFIG_MAP_CLIST && type < FLB_CONFIG_MAP_SLIST) { + return type - FLB_CONFIG_MAP_CLIST; + } + if (type > FLB_CONFIG_MAP_SLIST && type <= FLB_CONFIG_MAP_SLIST_4) { + return type - FLB_CONF...
Fix facet date more than 31 days
@@ -163,7 +163,7 @@ $(function($) { name : window.i18n.msgStore['facetcreation_date'], pagination : true, selectionType : 'ONE', - queries : [ '[NOW/DAY TO NOW]', '[NOW/DAY-7DAY TO NOW/DAY]', '[NOW/DAY-30DAY TO NOW/DAY-8DAY]','[1970-09-01T00:01:00Z TO NOW/DAY-31DAY]', '[1970-09-01T00:00:00Z TO 1970-09-01T00:00:00Z]' ],...
Native CoAP CI test: fix cleanup
@@ -41,7 +41,7 @@ done echo "Closing native node" sleep 2 -pgrep hello-world | sudo xargs kill -9 +pgrep coap-example | sudo xargs kill -9 if [ $TESTCOUNT -eq $OKCOUNT ] ; then printf "%-32s TEST OK %3d/%d\n" "$BASENAME" "$OKCOUNT" "$TESTCOUNT" > $BASENAME.testlog;
delete json-scanf2.c which will be merged to json-scanf.c
@@ -19,7 +19,7 @@ set(JSON_SCANF jsmn.h ntl.c ntl.h - json-scanf2.c + json-scanf.c json-printf.c json-string.c json-scanf.h)
[build_duet.tool] Allow to override default toolchain via env var TARGETCHAIN
@@ -124,12 +124,16 @@ if [ "${TARGET}" = "" ]; then TARGET="RELEASE" fi +if [ "${TARGETCHAIN}" = "" ]; then + TARGETCHAIN="XCODE5" +fi + if [ "${INTREE}" != "" ]; then # In-tree compilation is merely for packing. cd .. || exit 1 - build -a "${TARGETARCH}" -b "${TARGET}" -t XCODE5 -p OpenCorePkg/OpenDuetPkg.dsc || exit ...
CC26xx RF core: don't bail out from restarting the radio timer if just stopping it failed
@@ -419,8 +419,7 @@ rf_core_restart_rat(void) { if(rf_core_stop_rat() != RF_CORE_CMD_OK) { PRINTF("rf_core_restart_rat: rf_core_stop_rat() failed\n"); - - return RF_CORE_CMD_ERROR; + /* Don't bail out here, still try to start it */ } if(rf_core_start_rat() != RF_CORE_CMD_OK) {
[travis-ci] add sifive-unleashed board to the build matrix
@@ -21,6 +21,7 @@ env: - PROJECT=qemu-virt-riscv64-test TOOLCHAIN=riscv64-elf-7.4.0-Linux-x86_64 - PROJECT=qemu-virt-riscv64-supervisor-test TOOLCHAIN=riscv64-elf-7.4.0-Linux-x86_64 - PROJECT=sifive-e-test TOOLCHAIN=riscv32-elf-7.3.0-Linux-x86_64 + - PROJECT=sifive-unleashed-test TOOLCHAIN=riscv64-elf-7.4.0-Linux-x86_6...
LinkItem: safely access size Fixes urbit/landscape#542
@@ -167,7 +167,7 @@ export const LinkItem = (props: LinkItemProps): ReactElement => { style={{ cursor: node.post.pending ? 'default' : 'pointer' }}> <Box display='flex'> <Icon color={commColor} icon='Chat' /> - <Text color={commColor} ml={1}>{node.children.size}</Text> + <Text color={commColor} ml={1}>{size}</Text> </B...
Add stm32g431-st-nucleo bsp in .travis.yml
@@ -98,6 +98,7 @@ env: - RTT_BSP='stm32/stm32f767-fire-challenger' RTT_TOOL_CHAIN='sourcery-arm' - RTT_BSP='stm32/stm32f767-st-nucleo' RTT_TOOL_CHAIN='sourcery-arm' - RTT_BSP='stm32/stm32g071-st-nucleo' RTT_TOOL_CHAIN='sourcery-arm' + - RTT_BSP='stm32/stm32g431-st-nucleo' RTT_TOOL_CHAIN='sourcery-arm' - RTT_BSP='stm32/...
Use map_files instead of lsof for wined3d detection
@@ -78,14 +78,25 @@ void imgui_init() } if (sw_stats.engine != EngineTypes::ZINK){ + sw_stats.engine = OPENGL; + + stringstream ss; + string line; auto pid = getpid(); - string find_wined3d = "lsof -w -lnPX -L -p " + to_string(pid) + " | grep -oh wined3d"; - string ret_wined3d = exec(find_wined3d); - if (ret_wined3d ==...
Fix inconsistent assert in gettimeofday test Closes
@@ -109,7 +109,6 @@ return require('lib/tap')(function (test) local sec, usec = assert(uv.gettimeofday()) print(' os.time', now) print('uv.gettimeofday',string.format("%f",sec+usec/10^9)) - assert(sec >= now) assert(type(sec)=='number') assert(type(usec)=='number') else
Compiler flags changes
@@ -261,11 +261,11 @@ ENDIF() # COMPILER FLAGS ################################################# -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -pedantic -Wall -Wextra -Werror -Wfloat-equal -Wshadow -Wpointer-arith -Wunreachable-code -Wno-unused-function -Wno-unused-parameter -Wno-overlength-strings") +SET(CMAKE_C_FLAGS...
Do not overwrite LibCrypto_LIBRARY if it's already specified
@@ -59,12 +59,13 @@ else() ${CMAKE_INSTALL_PREFIX}/lib ) + if (NOT LibCrypto_LIBRARY) if (BUILD_SHARED_LIBS) set(LibCrypto_LIBRARY ${LibCrypto_SHARED_LIBRARY}) else() set(LibCrypto_LIBRARY ${LibCrypto_STATIC_LIBRARY}) endif() - + endif() include(FindPackageHandleStandardArgs) find_package_handle_standard_args(LibCrypto...
Fix image convert of black and white images
@@ -24,8 +24,11 @@ options = parser.parse_args() def convert_image(img): if options.resize: img = img.resize((296, 128)) # resize + try: enhancer = ImageEnhance.Contrast(img) img = enhancer.enhance(2.0) + except ValueError: + pass img = img.convert("1") # convert to black and white return img
Show SHA commit if SVN info is not available
@@ -105,7 +105,7 @@ const char* GetProgramShortVersionData() { #if defined(SVN_REVISION) && defined(SVN_TIME) return STR2(SVN_REVISION) " (" SVN_TIME ")"; #else - return ""; + return GetProgramHash(); #endif }
Remove Resync eof sanity check from smgr_ao.c as well.
@@ -386,87 +386,6 @@ smgrDoAppendOnlyResyncEofs(bool forCommit) appendOnlyMirrorResyncEofsCount++; } - - /* - * If we collected Append-Only mirror resync EOFs and bumped the intent - * count, we need to decrement the counts as part of our end transaction - * work here. - */ - if (pendingAppendOnlyMirrorResyncIntentCoun...
CmdTool: Update solution to VS2022
<ConfigurationType>Application</ConfigurationType> <CharacterSet>Unicode</CharacterSet> <WholeProgramOptimization>true</WholeProgramOptimization> - <PlatformToolset>v142</PlatformToolset> + <PlatformToolset>v143</PlatformToolset> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" ...
[chainmaker][#436]modify log file name
@@ -91,7 +91,7 @@ int main(int argc, char *argv[]) here set suite_wallet as first adding suite. */ sr = srunner_create(suite_wallet); /* set generate test log in running path */ - srunner_set_log(sr, "check_log.txt"); + srunner_set_log(sr, "test_statistics_report.txt"); /* add other suite to srunner, more test suite sh...
BugID:24381709:Adjust the logical name of the watchdog
#if (AOS_HAL_WDG_ENABLED > 0) -#define WDG_PORT_NUM 0 - /* task parameters */ #define TASK_FEEDWDG_NAME "feedwdg" #define TASK_FEEDWDG_STACKSIZE 512 @@ -42,7 +40,7 @@ void hal_watchdog_app_enable(void) int ret; /* wdg port set */ - watchdog.port = WDG_PORT_NUM; + watchdog.port = PORT_WDG_0; /* set reload time to 1500ms...
Don't use unsetenv in `exec` Hopefully fixes
@@ -19,8 +19,7 @@ std::unique_ptr<Logger> logger; string exec(string command) { #ifndef _WIN32 - if (getenv("LD_PRELOAD")) - unsetenv("LD_PRELOAD"); + command = "env -u LD_PRELOAD " + command; #endif std::array<char, 128> buffer; std::string result;
refacrored template to make it slightly simpler corrected some spelling added monitor reset configs
"name": "name the launch configuration 1 (booter) here", "type": "cppdbg", "request": "launch", - "miDebuggerPath": "<path-to-gdb-insie-the-gcc-toolchain-mind-the-forward-slash>", + "miDebuggerPath": "<path-to-gdb-inside-the-gcc-toolchain-mind-the-forward-slash>", "targetArchitecture": "ARM", - "program": "<path-to-nan...
fixed citation mistake in validation section
@@ -496,7 +496,7 @@ In this second step, only 2 codes have been compared so far. More outputs are ne {\bf TODO: Describe additional comparisons I know of, but which were not part of the code comparison:} David compared the HMF of one of the cases to his own outputs. Elisabeth was planning on producing outputs for corre...
contacts: federate contacts through group chats
[%add rid] ;< ~ bind:m (poke-our %metadata-push-hook push-hook-act) + ;< ~ bind:m + (poke-our %contact-push-hook push-hook-act) ;< ~ bind:m %+ poke-our %group-store :- %group-update-0
Cleanup fancy ruler drawing
@@ -513,6 +513,24 @@ void draw_glyphs_grid(WINDOW* win, int draw_y, int draw_x, int draw_h, return; bool use_rulers = ruler_spacing_y != 0 && ruler_spacing_x != 0; chtype bullet = ACS_BULLET; + enum { T = 1 << 0, B = 1 << 1, L = 1 << 2, R = 1 << 3 }; + chtype rs[T | B | L | R]; + if (use_rulers) { + bool use_fancy_rule...
acrn-config: add attributes for scenario and launch setting There are no board/scenario/uos_launcher attributes for created scenario and launch settings, which causes xml mismatch error when generating configuration files or launch scripts. This patch is to add the attributes for scearnio and launch settings. Acked-by:...
@@ -204,7 +204,7 @@ def save_scenario(): break for vm in generic_scenario_config_root.getchildren(): if vm.tag == 'vm': - for i in range(0, 7): + for i in range(0, 8): if str(i) not in vm_list: break vm.attrib['id'] = str(i) @@ -216,6 +216,9 @@ def save_scenario(): remove_vm_id = generator.split(':')[1] scenario_config...
api: Do not assert of short message lengths Type: improvement Short message lengths are correctly handled by the code, asserting makes unit tests that verify this behaviour (e.g. test_ip_punt_api_validation) fail/crash with a debug image.
@@ -551,7 +551,6 @@ msg_handler_internal (api_main_t *am, void *the_msg, uword msg_len, if (calc_size_fp) { calc_size = (*calc_size_fp) (the_msg); - ASSERT (calc_size <= msg_len); if (calc_size > msg_len) { clib_warning (
fix FIFO read data width in axis_ram_writer
@@ -56,7 +56,7 @@ module axis_ram_writer # wire int_full_wire, int_empty_wire, int_rden_wire; wire int_wlast_wire, int_tready_wire; wire [COUNT_SIZE-1:0] int_count_wire; - wire [63:0] int_wdata_wire; + wire [AXI_DATA_WIDTH-1:0] int_wdata_wire; assign int_tready_wire = ~int_full_wire; assign int_wlast_wire = &int_addr_r...
Dump Results on Error
@@ -123,9 +123,14 @@ function Run-Foreground-Executable($File, $Arguments) { } function Parse-Loopback-Results($Results) { + try { # Unused variable on purpose $m = $Results -match "Closed.*\(TX.*bytes @ (.*) kbps \|" return $Matches[1] + } catch { + Write-Host "Error Processing Results:`n`n$Results" + throw + } } func...
Use HTTPS for submodules
url = https://github.com/firesim/FireMarshal.git [submodule "generators/cva6"] path = generators/cva6 - url = git@github.com:ucb-bar/cva6-wrapper.git + url = https://github.com/ucb-bar/cva6-wrapper.git [submodule "tools/DRAMSim2"] path = tools/DRAMSim2 url = https://github.com/firesim/DRAMSim2.git
docs - fix log_min_error_statement description. Wrong default.
<body> <p>Controls whether or not the SQL statement that causes an error condition will also be recorded in the server log. All SQL statements that cause an error of the specified level or - higher are logged. The default is PANIC (effectively turning this feature off for normal - use). Enabling this option can be help...
proc: fix process state race when spawning syspage program
@@ -706,7 +706,7 @@ int proc_spawn(vm_object_t *object, offs_t offset, size_t size, const char *path spawn.offset = offset; spawn.size = size; spawn.wq = NULL; - spawn.state = PREFORK; + spawn.state = FORKING; spawn.argv = argv; spawn.envp = envp; spawn.parent = proc_current(); @@ -715,7 +715,6 @@ int proc_spawn(vm_obj...
add better tip for "Dependencies Installation Fail"
@@ -58,7 +58,7 @@ install_tools() { zypper --version >/dev/null 2>&1 && $sudoprefix zypper --non-interactive install git readline-devel && $sudoprefix zypper --non-interactive install -t pattern devel_C_C++; } || { pacman -V >/dev/null 2>&1 && $sudoprefix pacman -S --noconfirm --needed git base-devel; } } -test_tools |...
[trace] Write to CSV
@@ -12,6 +12,8 @@ import sys import re import math import argparse +import csv +from csv import DictWriter from ctypes import c_int32, c_uint32 from collections import deque, defaultdict @@ -450,6 +452,12 @@ def fmt_perf_metrics(perf_metrics: list, idx: int, omit_keys: bool = True): ret.append('{:<40}{:>10}'.format(key...
Fix GetTokenAppContainerFolderPath for desktop bridge packages
@@ -2526,6 +2526,7 @@ VOID PhpRemoveAttributeNode( PhpDestroyAttributeNode(Node); } +_Success_(return) BOOLEAN PhpGetSelectedAttributeTreeNodes( _Inout_ PATTRIBUTE_TREE_CONTEXT Context, _Out_ PATTRIBUTE_NODE **Nodes, @@ -3453,11 +3454,22 @@ PPH_STRING PhpGetTokenRegistryPath( PPH_STRING PhpGetTokenAppContainerFolderPat...
Workaround for MSVC compiler bug error
#include <atomic> #include <memory> #include <thread> +#include <array> #ifndef __unix__ #include "windows.h" @@ -64,8 +65,8 @@ private: std::string name; std::string ctrlRead; std::string ctrlWrite; - std::string streamRead[MAX_EP_CNT]; - std::string streamWrite[MAX_EP_CNT]; + std::array<std::string, MAX_EP_CNT> strea...
build: remove lto flags in dpdk build Ubuntu 22.04 enables LTO by default and dpdk adds lto flags to CFLAGS. This CI jobs to fail with OOM-Kill (especially on ARM64) due to lto consuming large amounts of memory. Type: make
#!/usr/bin/make -f DH_VERBOSE = 1 DEB_BUILD_OPTIONS = noddebs +DEB_CFLAGS_MAINT_STRIP = -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -O2 +DEB_LDFLAGS_MAINT_STRIP = -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects +DEB_CFLAGS_MAINT_APPEND = -O3 PKG=vpp-ext-deps VERSION = $(shell dpkg-parsechangelog...
[io] disable output hdf5 when output_frequency = 0. Thanks
@@ -1790,7 +1790,7 @@ class MechanicsHdf5Runner(siconos.io.mechanics_hdf5.MechanicsHdf5): tolerance : friction contact solver tolerance (default 1e-8) exit_tolerance : if not None, the simulation will stop if precision >= exit_tolerance (default None) numerics_verbose : set verbose mode in numerics - output_frequency :...
Properly hide private functions in boot.janet
fyx (f y x)] (- fyx)) (compare-primitive x y))) -(defn compare-reduce- [op xs] +(defn- compare-reduce [op xs] (var r true) (loop [i :range [0 (- (length xs) 1)] :let [c (compare (xs i) (xs (+ i 1))) (defn compare= "Equivalent of '=' but using compare function instead of primitive comparator" [& xs] - (compare-reduce- =...
Now be RFC 2553 compliant
@@ -629,7 +629,7 @@ int bytestream_test_addr() struct sockaddr_in6 addr_in6 = { 0 }; addr_in6.sin6_family = AF_INET6; - addr_in6.sin6_addr.s6_words[0] = 12; + addr_in6.sin6_addr.s6_addr[0] = 12; addr_in6.sin6_port = 1234; struct sockaddr_in6 addr_in6_res = { 0 };
Make tests less rigid on timing
@@ -140,7 +140,7 @@ TEST(TaskDispatcherCAPITests, Schedule) bool wasQueued = false; testHelper->SetQueueValidation([&wasQueued](task_t* task) { wasQueued = true; - EXPECT_EQ(task->delayMs, 100); + EXPECT_NE(task->delayMs, 0); EXPECT_TRUE(std::string(task->typeName).find("TestHelper") != string::npos); }); @@ -171,7 +17...
bump the version to 1.1.5
@@ -22,7 +22,7 @@ typedef struct clap_version { #define CLAP_VERSION_MAJOR ((uint32_t)1) #define CLAP_VERSION_MINOR ((uint32_t)1) -#define CLAP_VERSION_REVISION ((uint32_t)4) +#define CLAP_VERSION_REVISION ((uint32_t)5) #define CLAP_VERSION_INIT \ { CLAP_VERSION_MAJOR, CLAP_VERSION_MINOR, CLAP_VERSION_REVISION }
[chainmaker]add chaninamker macro
#include <sys/time.h> -#if (PROTOCOL_USE_HLFABRIC == 1) +#if ((PROTOCOL_USE_HLFABRIC == 1) || (PROTOCOL_USE_CHAINMAKER == 1)) // for TTLSContext structure #include "http2intf.h" #endif @@ -548,7 +548,7 @@ BOAT_RESULT BoatRemoveFile(const BCHAR *fileName, void *rsvd) } } -#if (PROTOCOL_USE_HLFABRIC == 1) +#if ((PROTOCOL...
esp32/modsocket: Add error checking for creating and closing sockets.
@@ -58,18 +58,24 @@ typedef struct _socket_obj_t { uint8_t proto; } socket_obj_t; +NORETURN static void exception_from_errno(int _errno) { + // XXX add more specific exceptions + mp_raise_OSError(_errno); +} + STATIC mp_obj_t socket_close(const mp_obj_t arg0) { socket_obj_t *self = MP_OBJ_TO_PTR(arg0); - lwip_close_r(s...
hw/bus/i2c_nrf52_twim: Fix minor code issues
@@ -108,7 +108,7 @@ twim_irq_handler(struct bus_i2c_dev *dev) dd->errorsrc = nrf_twim->ERRORSRC; nrf_twim->ERRORSRC = dd->errorsrc; - os_sem_release(&twim_devs_data[dev->cfg.i2c_num].sem); + os_sem_release(&dd->sem); } static void @@ -293,7 +293,7 @@ static void nrf_twim_start_task(NRF_TWIM_Type *nrf_twim, struct twim_...
release: fix stats, mention all authors
echo -n "Number commits: " git log $1..master | grep "^commit" | wc -l -git log 0.8.19..master | grep "^Author: " | sort | uniq -c +git log $1..master | grep "^Author: " | sort | uniq -c git diff $1..master --stat | tail -1
sse4.1: add WASM implementation of mm_mullo_epi32
@@ -1760,6 +1760,8 @@ simde_mm_mullo_epi32 (simde__m128i a, simde__m128i b) { (void) a_; (void) b_; r_.altivec_i32 = vec_mul(a_.altivec_i32, b_.altivec_i32); + #elif defined(SIMDE_WASM_SIMD128_NATIVE) + r_.wasm_v128 = wasm_i32x4_min(a_.wasm_v128, b_.wasm_v128); #else SIMDE_VECTORIZE for (size_t i = 0 ; i < (sizeof(r_.i...
dshot: double idle time
#define DSHOT_MAX_PORT_COUNT 3 #define DSHOT_DMA_BUFFER_SIZE (3 * (16 + 2)) -#define DSHOT_DIR_CHANGE_IDLE_TIME_US 250000 +#define DSHOT_DIR_CHANGE_IDLE_TIME_US 500000 #define DSHOT_DIR_CHANGE_CMD_TIME_US 1000 typedef enum {
Reorder --tcpip option in cli To keep options in alphabetic order.
@@ -422,6 +422,20 @@ static const struct sc_option options[] = { "on exit.\n" "It only shows physical touches (not clicks from scrcpy).", }, + { + .longopt_id = OPT_TCPIP, + .longopt = "tcpip", + .argdesc = "ip[:port]", + .optional_arg = true, + .text = "Configure and reconnect the device over TCP/IP.\n" + "If a destin...
config: Add missing include guard.
+#ifndef LILY_CONFIG_H +# define LILY_CONFIG_H + # ifdef _WIN32 # define LILY_PATH_CHAR '\\' # define LILY_PATH_SLASH "\\" # define LILY_PATH_SLASH "/" # define LILY_LIB_SUFFIX "so" # endif +#endif
cmd/kubectl-gadget: Add --timeout to deploy. This option permits users to give a duration after which the deployment should timeout. Default value is 120 seconds.
@@ -62,6 +62,7 @@ var ( hookMode string livenessProbe bool livenessProbeInitialDelay int32 + deployTimeout time.Duration fallbackPodInformer bool printOnly bool wait bool @@ -108,6 +109,11 @@ func init() { "wait", "", true, "wait for gadget pod to be ready") + deployCmd.PersistentFlags().DurationVarP( + &deployTimeout,...
Testing: offset as a string
@@ -95,4 +95,8 @@ ${tools_dir}/grib_ls -n data $ECCODES_SAMPLES_PATH/GRIB1.tmpl grib_check_key_equals $ECCODES_SAMPLES_PATH/GRIB1.tmpl angleSubdivisions 1000 grib_check_key_equals $ECCODES_SAMPLES_PATH/GRIB2.tmpl angleSubdivisions 1000000 +# Print 'offset' key as string +${tools_dir}/grib_ls -p offset:s tigge_cf_ecmwf....
fix null ptr issue in pool.c
@@ -531,7 +531,8 @@ static void calculate_nopaid_shares(struct connection_pool_data *conn_data, stru conn_data->maxdiff[i] = diff; } - if(conn_data->miner && conn_data->miner->task_time < task_time) { + if(conn_data->miner) { + if(conn_data->miner->task_time < task_time) { conn_data->miner->task_time = task_time; if(co...
Fix shift operations
@@ -142,11 +142,10 @@ d_m3CommutativeOp_i (i32, Multiply, *) d_m3CommutativeOp_i (i64, Mu d_m3Op_i (i32, Subtract, -) d_m3Op_i (i64, Subtract, -) -// Note: For some reason modulo is needed for Clang -#define OP_SHL_32(X,N) ((X) << ((N) % 32)) -#define OP_SHL_64(X,N) ((X) << ((N) % 64)) -#define OP_SHR_32(X,N) ((X) >> (...
Quote python version. See:
@@ -91,7 +91,7 @@ jobs: runs-on: windows-latest strategy: matrix: - python: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10] + python: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10"] steps: - uses: actions/checkout@v2
pbio/control: fix actuation not set before hold Because actuation is no longer called after starting a new control step, we have to make sure we keep actuating.
@@ -95,6 +95,10 @@ void control_update(pbio_control_t *ctl, int32_t time_now, int32_t count_now, in // If we are going to hold and we are already doing angle control, there is nothing we need to do. // But if we are going to hold when we are doing speed control right now, we must trigger a hold first. pbio_control_star...
docs: add OHPC_CFLAGS to leap rebuild appendix
Users of \OHPC{} may find it desirable to rebuild one of the supplied packages to apply build customizations or satisfy local requirements. One way to accomplish this is to install the appropriate source RPM, modify the spec file -as needed, and rebuild to obtain an updated binary RPM. A brief example using +as needed,...
config_format: yaml: support windows backslash
@@ -862,7 +862,12 @@ static char *get_real_path(char *file, char *path, size_t size) } /* lookup path ending and truncate */ +#ifdef _MSC_VER + end = strrchr(path, '\\'); +#else end = strrchr(path, '/'); +#endif + if (end) { end++; *end = '\0';
Make sure we free and cleanse the pms value in all code paths Otherwise we get a memory leak.
@@ -4118,10 +4118,8 @@ int ssl_derive(SSL *s, EVP_PKEY *privkey, EVP_PKEY *pubkey, int gensecret) rv = rv && tls13_generate_handshake_secret(s, pms, pmslen); } else { - /* Generate master secret and discard premaster */ - rv = ssl_generate_master_secret(s, pms, pmslen, 1); + rv = ssl_generate_master_secret(s, pms, pmsl...
for %S, we just copy over whatever value as the original string to the recipient
@@ -130,6 +130,13 @@ match_path (char *buffer, jsmntok_t *t, size_t n_toks, int start_tok, goto type_error; } } + else if (STREQ(es->type_specifier, "copy")) { + if (es->size) + strscpy((char *) es->recipient, buffer + t[i].start, es->size); + else + strscpy((char *) es->recipient, buffer + t[i].start, + t[i].end - t[i...
dm: use getopt_long instead of getopt to parse dm cmdline It will be easier if we want to add more command line options with long options.
#include <pthread.h> #include <sysexits.h> #include <stdbool.h> +#include <getopt.h> #include "types.h" #include "vmm.h" @@ -546,6 +547,37 @@ sig_handler_term(int signo) mevent_notify(); } +static struct option long_options[] = { + {"no_x2apic_mode", no_argument, 0, 'a' }, + {"acpi", no_argument, 0, 'A' }, + {"bvmcons"...
sysdeps/managarm: convert sys_msg_send to helix_ng
@@ -831,8 +831,6 @@ int sys_msg_send(int sockfd, const struct msghdr *hdr, int flags, ssize_t *lengt } SignalGuard sguard; - HelAction actions[6]; - globalQueue.trim(); managarm::fs::CntRequest<MemoryAllocator> req(getSysdepsAllocator()); req.set_req_type(managarm::fs::CntReqType::PT_SENDMSG); @@ -853,53 +851,25 @@ int...
session: fix connect corner case crash.
@@ -168,14 +168,20 @@ send_session_connected_callback (u32 app_index, u32 api_context, if (!q) return -1; - tc = session_get_transport (s); - if (!tc) - is_fail = 1; mp = vl_msg_api_alloc (sizeof (*mp)); mp->_vl_msg_id = clib_host_to_net_u16 (VL_API_CONNECT_SESSION_REPLY); mp->context = api_context; - if (!is_fail) + +...
dojo: %home->%base
$?(%eny %now %our) !! %lib .(lib ~) %sur .(sur ~) - %dir .(dir [[our.hid %home ud+0] /]) + %dir .(dir [[our.hid %base ud+0] /]) == =+ cay=(~(got by rez) p.q.mad) ?- -.p.mad :: %dir =+ ^= pax ^- path =+ pax=((dy-cast path !>(*path)) q.cay) - ?: ?=(~ pax) ~[(scot %p our.hid) %home '0'] - ?: ?=([@ ~] pax) ~[i.pax %home '0...
driver/accel_lis2ds.h: Format with clang-format BRANCH=none TEST=none
#define LIS2DS_TAP_X_EN 0x20 #define LIS2DS_TAP_Y_EN 0x10 #define LIS2DS_TAP_Z_EN 0x08 -#define LIS2DS_TAP_EN_MASK (LIS2DS_TAP_X_EN | \ - LIS2DS_TAP_Y_EN | \ - LIS2DS_TAP_Z_EN) +#define LIS2DS_TAP_EN_MASK (LIS2DS_TAP_X_EN | LIS2DS_TAP_Y_EN | LIS2DS_TAP_Z_EN) #define LIS2DS_TAP_EN_ALL 0x07 #define LIS2DS_CTRL4_ADDR 0x23...
add non-blocking space
@@ -83,7 +83,7 @@ available which provided GCC 5.x versions. %compiled with that toolchain. In the case where an admin would like to enable the newer {gnu7} toolchain, installation of these additions is simplified -with the use of \OHPC{}'s meta-packages (see Table \ref{table:groups} in Appendix +with the use of \OHPC{...
Require firmware version 0x26240500 Fixes sleeping and rxOnWhenIdle = 1 end-device issues Support up to 32 direct connected end-devices (formerly 10)
@@ -71,7 +71,7 @@ DEFINES += GIT_COMMMIT=\\\"$$GIT_COMMIT\\\" \ # Minimum version of the RaspBee firmware # which shall be used in order to support all features for this software release (case sensitive) DEFINES += GW_AUTO_UPDATE_FW_VERSION=0x260b0500 -DEFINES += GW_MIN_RPI_FW_VERSION=0x26230500 +DEFINES += GW_MIN_RPI_...
fixed bug in usage error function
@@ -4872,8 +4872,8 @@ printf("%s %s (GPIO version) (C) %s by ZeroBeat\n" #else printf("%s %s (C) %s by ZeroBeat\n" "usage: %s -h for help\n", eigenname, VERSION, VERSION_JAHR, eigenname); -exit(EXIT_FAILURE); #endif +exit(EXIT_FAILURE); } /*===========================================================================*/ i...
messages: always mono for DM recipients, show description fixes urbit/landscape#623
@@ -144,7 +144,7 @@ export function ResourceSkeleton(props: ResourceSkeletonProps): ReactElement { const Description = () => ( <TruncatedText display={['none','inline']} - mono={workspace === '/messages' && !urbitOb.isValidPatp(title)} + mono={workspace === '/messages' && !association?.metadata?.description} color='gra...
ToolStatus: Add missing check for valid SystemStatistics
* statusbar main * * Copyright (C) 2010-2013 wj32 - * Copyright (C) 2011-2020 dmex + * Copyright (C) 2011-2021 dmex * * This file is part of Process Hacker. * @@ -294,10 +294,16 @@ VOID StatusBarUpdate( break; case ID_STATUS_COMMITCHARGE: { - ULONG commitUsage = SystemStatistics.Performance->CommittedPages; - FLOAT com...
Small wording change in website index / Github readme.
<section id="introduction"> <title>Introduction</title> - <p><backrest/> aims to be a simple, reliable backup and restore solution that can seamlessly scale up to the largest databases and workloads by utilizing algorithms that are optimized for database-specific requirements.</p> + <p><backrest/> aims to be a reliable...
Computational MRI
-BART: Image Reconstruction Toolbox for Magnetic Resonance Imaging -================================================================= +BART: Toolbox for Computational Magnetic Resonance Imaging +========================================================== The Berkeley Advanced Reconstruction Toolbox (BART) is a free and ...
phb4: Minimise wait when moving through FRESET states We want to get through this as fast as possible so minimise by removing msecs_to_tb() call. Changes number passed from 512 -> 1.
@@ -2839,7 +2839,7 @@ static int64_t phb4_freset(struct pci_slot *slot) phb4_training_trace(p); /* Move on to link poll right away */ - return pci_slot_set_sm_timeout(slot, msecs_to_tb(1)); + return pci_slot_set_sm_timeout(slot, 1); case PHB4_SLOT_FRESET_DEASSERT_DELAY: pci_slot_set_state(slot, PHB4_SLOT_LINK_START); r...
tools: Add UF2 identificator for ESP32-C2 and ESP32-H2 The IDs were submitted in
@@ -11,9 +11,9 @@ function(__add_uf2_targets) elseif("${target}" STREQUAL "esp32s3") set(uf2_family_id "0xc47e5767") elseif("${target}" STREQUAL "esp32h2") - set(uf2_family_id "0xd42ba06c") # ESP32H2-TODO: IDF-3487 + set(uf2_family_id "0x332726f6") elseif("${target}" STREQUAL "esp8684") - set(uf2_family_id "0xd42ba06c"...
Increase allowed commands per frame when running on main script context
@@ -227,8 +227,11 @@ void ScriptRestoreCtx(UBYTE i) { return; } LOG("- UPDATE CTX=%u script_ctxs[i].owner=%u script_main_ctx_actor=%u\n", i, script_ctxs[i].owner, script_main_ctx_actor); - + if(i == 0) { + ctx_cmd_remaining = 255; + } else { ctx_cmd_remaining = 2; + } current_script_ctx = i; actor_move_dest_x = script_...
drum: start eth-watcher on boot Alongside the azimuth-tracker that depends on it.
^- (list term) ?: lit :~ %dojo + %eth-watcher %azimuth-tracker == %+ welp ?: ?=(%pawn (clan:title our)) ~ :~ %acme %dns + %eth-watcher %azimuth-tracker == :~ %lens
VMS: Clean away stray debugging prints from descrip.mms.tmpl
return "$target : build_generated\n\t\pipe \$(MMS) \$(MMSQUALIFIERS) depend && \$(MMS) \$(MMSQUALIFIERS) _$target\n_$target"; } - #use Data::Dumper; - #print STDERR "DEBUG: before:\n", Dumper($unified_info{before}); - #print STDERR "DEBUG: after:\n", Dumper($unified_info{after}); ""; -} PLATFORM={- $config{target} -} @...
common: Format firmware_image linker script This is a cleanup/reformat of the linker script. This brings no functional change. BRANCH=none TEST=make buildall
#include "rwsig.h" #ifdef NPCX_RO_HEADER -/* Replace *_MEM_OFF with *_STORAGE_OFF to indicate flat file contains header - * or some struture which doesn't belong to FW */ +/* + * Replace *_MEM_OFF with *_STORAGE_OFF to indicate flat file contains header + * or some struture which doesn't belong to FW + */ #define IMAGE...
frsky: use min/max based rx tuning
@@ -154,15 +154,24 @@ static void init_tune_rx(void) { cc2500_strobe(CC2500_SRX); } -static uint8_t tune_rx(uint8_t iteration) { +static void tune_rx_offset(int8_t offset) { + frsky_bind.offset = offset; if (frsky_bind.offset >= 126) { frsky_bind.offset = -126; } - if ((timer_millis() - time_tuned_ms) > 50) { + + cc250...
data tree BUGFIX lists with opaque children
@@ -50,7 +50,7 @@ lyd_hash(struct lyd_node *node) struct lyd_node_inner *list = (struct lyd_node_inner *)node; /* list hash is made up from its keys */ - for (iter = list->child; iter && (iter->schema->flags & LYS_KEY); iter = iter->next) { + for (iter = list->child; iter && iter->schema && (iter->schema->flags & LYS_K...
Added heartbeat to echo test
#!/usr/bin/env python3 - import os import sys +import time +import _thread sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), "..")) from panda import Panda @@ -9,10 +10,21 @@ from panda import Panda # This script is intended to be used in conjunction with the echo_loopback_test.py test script fr...
build NEW install target
@@ -143,6 +143,11 @@ target_link_libraries(sysrepoctl sysrepo ${LIBYANG_LIBRARIES}) add_executable(sysrepocfg ${SYSREPOCFG_SRC}) target_link_libraries(sysrepocfg sysrepo ${LIBYANG_LIBRARIES}) +# installation +install(TARGETS sysrepo DESTINATION ${CMAKE_INSTALL_LIBDIR}) +install(FILES ${PROJECT_SOURCE_DIR}/src/sysrepo.h...
build/dotprod: extending line width for more compact header with comment apis
@@ -691,23 +691,45 @@ LIQUID_TVMPCH_DEFINE_API(LIQUID_TVMPCH_MANGLE_CCCF, // TI : input data type #define LIQUID_DOTPROD_DEFINE_API(DOTPROD,TO,TC,TI) \ \ +/* Vector dot product operation */ \ typedef struct DOTPROD(_s) * DOTPROD(); \ \ -/* run dot product without creating object [unrolled loop] */ \ +/* Run dot product...