message
stringlengths
6
474
diff
stringlengths
8
5.22k
fix Move-Item
@@ -73,7 +73,7 @@ try{ if($branch -eq $null){ $branch='master' } Invoke-Webrequest "https://github.com/tboox/xmake/archive/$branch.zip" -OutFile "$installdir\temp.zip" Expand-Archive "$installdir\temp.zip" "$installdir\temp" -Force - Move-Item "$installdir\temp\xmake-$branch\xmake\*" $installdir -Recurse + Move-Item "$...
Restore state of the GCC diagnostics
@@ -3593,7 +3593,7 @@ USRSCTP_SYSCTL_SET_DEF(sctp_initial_cwnd, SCTPCTL_INITIAL_CWND) USRSCTP_SYSCTL_SET_DEF(sctp_debug_on, SCTPCTL_DEBUG) #endif #if !defined(__Userspace_os_Windows) -#pragma GCC diagnostic push +#pragma GCC diagnostic pop #endif #define USRSCTP_SYSCTL_GET_DEF(__field) \
Improve FileVersionInfo lookup performance
@@ -1530,37 +1530,49 @@ PVOID PhGetFileVersionInfo( _In_ PWSTR FileName ) { - ULONG versionInfoSize; - ULONG dummy; + HMODULE resourceInstance; + HRSRC resourceInfo; + ULONG resourceSize; + HGLOBAL resourceHandle; PVOID versionInfo; + PVOID versionInfoCopy = NULL; - versionInfoSize = GetFileVersionInfoSize( - FileName,...
Updated multiple status codes example in README.md.
@@ -470,7 +470,7 @@ Or to parse a specific status code, e.g., 500 (Internal Server Error): # awk '$9~/500/' access.log | goaccess - -Or multiple status codes: +Or multiple status codes, e.g., all 3xx and 5xx: # tail -f -n +0 access.log | awk '$9~/3[0-9]{2}|5[0-9]{2}/' | goaccess -o out.html -
OcGuardLib: Fix case in ubsan warning
@@ -512,7 +512,7 @@ HandleImplicitConversion(bool isFatal, struct CImplicitConversionData *pData, un DeserializeNumber(szLocation, szFrom, NUMBER_MAXLEN, pData->mFromType, ulFrom); DeserializeNumber(szLocation, szTo, NUMBER_MAXLEN, pData->mToType, ulTo); - Report(isFatal, "UBSAN: Undefined Behavior in %s, %s from %s to...
SOVERSION bump to version 2.3.12
@@ -63,7 +63,7 @@ set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_ # set version of the library set(LIBYANG_MAJOR_SOVERSION 2) set(LIBYANG_MINOR_SOVERSION 3) -set(LIBYANG_MICRO_SOVERSION 11) +set(LIBYANG_MICRO_SOVERSION 12) set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG_...
cppcheck-fixes: reformat
@@ -207,8 +207,8 @@ const map<Key, pair<int, int>> CompleteCommand::analyze (KeySet const & ks, Cmdl return hierarchy; } -void CompleteCommand::printResults (Key const & root, const int minDepth, const int maxDepth, Cmdline const & cl, - map<Key, pair<int, int>> const & result, +void CompleteCommand::printResults ( + K...
Bump ORCA version to 2.43.1
@@ -121,7 +121,7 @@ sync_tools: opt_write_test /opt/releng/apache-ant @echo "Resolve finished"; ifeq "$(findstring aix,$(BLD_ARCH))" "" - LD_LIBRARY_PATH='' wget -O - https://github.com/greenplum-db/gporca/releases/download/v2.43.0/bin_orca_centos5_release.tar.gz | tar zxf - -C $(BLD_TOP)/ext/$(BLD_ARCH) + LD_LIBRARY_P...
Enforce nesting limit at 32 bits
@@ -20,9 +20,10 @@ extern "C" { JSON API ***************************************************************************** */ -/** Limit JSON nesting, we can handle more, but this is mostly for security. */ -#ifndef JSON_MAX_DEPTH -#define JSON_MAX_DEPTH 24 +/** Limit JSON nesting, 32 is the limit to accomodate a 32 bit ty...
Build and SDL2.dll step for mingw build
@@ -104,8 +104,14 @@ Finally, from the root directory of your project: mkdir build.mingw cd build.mingw cmake .. -DCMAKE_TOOLCHAIN_FILE=../../../mingw.toolchain -DSDL2_DIR=/usr/local/cross-tools/x86_64-w64-mingw32/lib/cmake/SDL2 +make +cp /usr/local/cross-tools/x86_64-w64-mingw32/bin/SDL2.dll . ``` +#### Troubleshootin...
VERSION bump to version 1.3.46
@@ -31,7 +31,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 3) -set(SYSREPO_MICRO_VERSION 45) +set(SYSREPO_MICRO_VERSION 46) set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI...
[Components][Drivers][USB][Core]fix io request
@@ -840,6 +840,10 @@ static rt_err_t _data_notify(udevice_t device, struct ep_msg* ep_msg) { EP_HANDLER(ep, func, ep->request.size); } + else + { + dcd_ep_read_prepare(device->dcd, EP_ADDRESS(ep), ep->request.buffer, ep->request.remain_size > EP_MAXPACKET(ep) ? EP_MAXPACKET(ep) : ep->request.remain_size); + } } return ...
dockerfile: update base image to debian-base-amd64:0.3.1
-FROM gcr.io/google-containers/debian-base-amd64:0.3 as builder +FROM gcr.io/google-containers/debian-base-amd64:0.3.1 as builder # Fluent Bit version ENV FLB_MAJOR 0 @@ -38,7 +38,7 @@ COPY conf/fluent-bit.conf \ conf/parsers_cinder.conf \ /fluent-bit/etc/ -FROM gcr.io/google-containers/debian-base-amd64:0.3 +FROM gcr....
Rust: Implement Equality for Key
@@ -36,6 +36,19 @@ impl Drop for Key { } } +impl PartialEq for Key { + fn eq(&self, other: &Self) -> bool { + unsafe { + elektra_sys::keyCmp( + self.ptr.as_ptr() as *const elektra_sys::Key, + other.ptr.as_ptr() as *const elektra_sys::Key, + ) == 0 + } + } +} + +impl Eq for Key {} + impl Key { /// Construct a new empty ...
filter_kubernetes: remove unused variable
@@ -43,7 +43,6 @@ struct flb_kube *flb_kube_conf_create(struct flb_filter_instance *i, char *tmp; char *p; struct flb_kube *ctx; - struct flb_parser *parser; ctx = flb_calloc(1, sizeof(struct flb_kube)); if (!ctx) {
resolver: fix memleak
@@ -465,9 +465,12 @@ int ELEKTRA_PLUGIN_FUNCTION (resolver, open) (Plugin * handle, Key * errorKey) int ret = mapFilesForNamespaces (p, errorKey); + if (ret != -1) + { elektraPluginSetData (handle, p); + } - return ret; /* success */ + return ret; } int ELEKTRA_PLUGIN_FUNCTION (resolver, close) (Plugin * handle, Key * ...
board/common/partitions.c : Include header for mount() and mksmartfs() 1) mount() is used not only AUTOMOUNT_ROMFS but also LIBC_ZONEINFO_ROMFS. So change ifdef condition for including sys/mount.h 2) For mksmartfs(), include mksmartfs.h
#include <stdio.h> #include <stdbool.h> -#ifdef CONFIG_LIBC_ZONEINFO_ROMFS +#if defined(CONFIG_AUTOMOUNT_USERFS) || defined(CONFIG_AUTOMOUNT_ROMFS) || defined(CONFIG_LIBC_ZONEINFO_ROMFS) #include <sys/mount.h> +#include <tinyara/fs/mksmartfs.h> #endif #include <tinyara/fs/mtd.h> @@ -276,7 +277,7 @@ int configure_mtd_pa...
RTX5: Fix GCC lib project As a workaround one needs to manually set -mcpu=cortex-m4 to successfully build the lib with GCC 10 in MDK 5.33.
<wLevel>2</wLevel> <uThumb>1</uThumb> <VariousControls> - <MiscControls>-mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections</MiscControls> + <MiscControls>-mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections</MiscControls> <Define>EVR_RTX_DISABLE</Define> <Undefine></Undefine> <IncludePath>..\..\.....
keep flang-classic on MacOS from trying to create an executable instead of a library
@@ -142,10 +142,14 @@ ifneq (,$(filter 1 2,$(NOFORTRAN))) else ifeq ($(F_COMPILER), INTEL) $(FC) $(FFLAGS) $(LDFLAGS) -all-load -headerpad_max_install_names -install_name "$(CURDIR)/../$(INTERNALNAME)" -dynamiclib -o ../$(LIBDYNNAME) $< -Wl,-exported_symbols_list,osx.def +else +ifeq ($(F_COMPILER), FLANG) + $(FC) $(FFL...
changes for cmake 3.20
@@ -22,7 +22,7 @@ jobs: run: | cd build cmake -G "Visual Studio 16 2019" -A Win32 -T v141_xp -DCMAKE_BUILD_TYPE=%BUILD_TYPE% .. - cmake --build . --parallel --config %BUILD_TYPE% + cmake --build . --config %BUILD_TYPE% --parallel - name: Deploy uses: actions/upload-artifact@v2 @@ -45,7 +45,7 @@ jobs: run: | cd build cm...
Fix: Calling wlc_xdg_positioner_protocol_set_gravity actually sets anchor
@@ -88,10 +88,10 @@ wlc_xdg_positioner_protocol_set_gravity(struct wl_client *client, struct wl_reso } positioner->gravity = WLC_BIT_GRAVITY_NONE; - if (gravity & ZXDG_POSITIONER_V6_GRAVITY_TOP) positioner->anchor |= WLC_BIT_GRAVITY_TOP; - if (gravity & ZXDG_POSITIONER_V6_GRAVITY_BOTTOM) positioner->anchor |= WLC_BIT_G...
Travis: Use more compact syntax for env variables
@@ -9,19 +9,16 @@ matrix: - os: osx osx_image: xcode8.3 compiler: clang - env: - - FAST=ON + env: [ FAST=ON ] - os: osx osx_image: xcode8.3 compiler: clang - env: - - ASAN=ON + env: [ ASAN=ON ] - os: linux compiler: clang - env: - - ASAN=ON + env: [ ASAN=ON ] - os: osx osx_image: xcode8.3
mesh: Fix tx seg buffer with NULL pointer reference Bluetooth: Mesh: Fix tx seg buffer with NULL pointer reference Fix tx seg buffer with NULL pointer reference if enable mesh friendly this is port of
@@ -530,6 +530,8 @@ static int send_seg(struct bt_mesh_net_tx *net_tx, struct os_mbuf *sdu, memcpy(buf, net_buf_simple_pull_mem(sdu, len), len); BT_DBG("seg %u: %s", seg_o, bt_hex(buf, len)); + tx->seg[seg_o] = buf; + if (IS_ENABLED(CONFIG_BT_MESH_FRIEND)) { enum bt_mesh_friend_pdu_type type; @@ -550,11 +552,10 @@ stat...
Initialize & free PSA in test_multiple_psks()
@@ -5310,6 +5310,7 @@ void test_multiple_psks() mbedtls_ssl_config conf; + USE_PSA_INIT( ); mbedtls_ssl_config_init( &conf ); TEST_ASSERT( mbedtls_ssl_conf_psk( &conf, @@ -5323,6 +5324,8 @@ void test_multiple_psks() exit: mbedtls_ssl_config_free( &conf ); + + USE_PSA_DONE( ); } /* END_CASE */
canardv0 nxstyle fix
@@ -99,7 +99,8 @@ static CanardInstance canard; /* Arena for memory allocation, used by the library */ -static uint8_t canard_memory_pool[CONFIG_EXAMPLES_LIBCANARDV0_NODE_MEM_POOL_SIZE]; +static uint8_t canard_memory_pool + [CONFIG_EXAMPLES_LIBCANARDV0_NODE_MEM_POOL_SIZE]; static uint8_t unique_id[UNIQUE_ID_LENGTH_BYTE...
[kernel] remove bug following the introduction of absolute_position in the graph
#include "NumericsSparseMatrix.h" // #define DEBUG_NOCOLOR // #define DEBUG_STDOUT -// #define DEBUG_MESSAGES 1 +// #define DEBUG_MESSAGES #include "debug.h" // Default constructor: empty matrix, default storage @@ -154,6 +154,7 @@ unsigned OSNSMatrix::updateSizeAndPositions(InteractionsGraph& indexSet) assert(indexSet...
hslua-aeson: bump version to hslua-aeson-2.2.1
cabal-version: 2.2 name: hslua-aeson -version: 2.2.0.1 +version: 2.2.1 synopsis: Allow aeson data types to be used with Lua. description: This package provides instances to push and receive any datatype encodable as JSON to and from the Lua stack.
[PATCH] BugID:20800973:[sv6266]update hal_reboot [PATCH] BugID:20800973:[sv6266]update hal_reboot
@@ -46,14 +46,21 @@ int hal_reboot_bank(void) #if defined(CONFIG_ENABLE_WDT) drv_wdt_kick(SYS_WDT); #endif + drv_wdt_init(); + drv_wdt_enable(1, 100); + while(1); OS_ExitCritical(); - REG32(0xC0000000) = (1<<21); return 0; } void hal_reboot(void) { - REG32(0xC0000000) = (1<<21); + OS_DeclareCritical(); + OS_EnterCritic...
Remove high/low_bound limiter
@@ -1080,15 +1080,7 @@ void compute_quantized_weights_for_decimation_table( // Quantize the weight set using both the specified low/high bounds // and the standard 0..1 weight bounds. - /* - TODO: WTF issue that we need to examine some time - */ - if (!((high_bound - low_bound) > 0.5f)) - { - low_bound = 0.0f; - high_b...
Update yo Note: mandatory check (NEED_CHECK) was skipped
}, "yo": { "formula": { - "sandbox_id": [482223694, 482223763], + "sandbox_id": [496866925, 496866953], "match": "yo" }, "executable": {
Add an explicit cast to silence a warning for
@@ -96,7 +96,7 @@ int NAME(blasint *N, FLOAT *a, blasint *LDA, blasint *K1, blasint *K2, blasint * mode = BLAS_SINGLE | BLAS_COMPLEX; #endif - blas_level1_thread(mode, n, k1, k2, dummyalpha, a, lda, NULL, 0, ipiv, incx, laswp[flag], nthreads); + blas_level1_thread(mode, n, k1, k2, dummyalpha, a, lda, NULL, 0, ipiv, inc...
Additional documentation about onMapMoved callbacks
@@ -32,6 +32,9 @@ namespace carto { /** * Listener method that gets called when the map is panned, rotated, tilted or zoomed. * The callback is used for both UI events and map changes resulting from API calls. + * It is recommended to use onMapInteraction callback instead of onMapMoved, if possible. + * Doing any calls...
BugID:18683049:[alcs]fix task halt when aes dec failed
@@ -317,26 +317,51 @@ int alcs_decrypt(const char *src, int len, const char *key, void *out) char* iv = "a1b1c1d1e1f1g1h1"; p_HAL_Aes128_t aes_d_h; + int ret = 0; int n = len >> 4; - if (n > 0) { + + do { + if (n > 1) { aes_d_h = HAL_Aes128_Init ((uint8_t*)key, (uint8_t*)iv, HAL_AES_DECRYPTION); - HAL_Aes128_Cbc_Decryp...
[core] enhance config parsing debugging enhance config parsing debugging to add condition string x-ref: "mismatched nested config conditions in lighttpd 1.4.56"
@@ -349,8 +349,8 @@ static void config_cond_result_trace(request_st * const r, const data_config * c case COND_RESULT_TRUE: msg = "true"; break; default: msg = "invalid cond_result_t"; break; } - log_error(r->conf.errh, __FILE__, __LINE__, "%d (%s) result: %s", - dc->context_ndx, &"uncached"[cached ? 2 : 0], msg); + lo...
extmod/nimble: When getting BLE MAC try public address if random fails. This is needed for BLE.config('mac') to work on esp32.
@@ -339,7 +339,14 @@ bool mp_bluetooth_is_active(void) { void mp_bluetooth_get_device_addr(uint8_t *addr) { #if MICROPY_PY_BLUETOOTH_RANDOM_ADDR - ble_hs_id_copy_addr(BLE_ADDR_RANDOM, addr, NULL); + uint8_t addr_le[6]; + int rc = ble_hs_id_copy_addr(BLE_ADDR_RANDOM, addr_le, NULL); + if (rc != 0) { + // Even with MICRO...
[kernel] make newtonSolve protected
@@ -125,6 +125,14 @@ protected: _computeResiduR(false), _isNewtonConverge(false) {}; + + /** newton algorithm + * \param criterion convergence criterion + * \param maxStep maximum number of Newton steps + */ + virtual void newtonSolve(double criterion, unsigned int maxStep); + + public: /** initialisation specific to T...
Option -mavx2 requires at least gcc 4.7
@@ -31,14 +31,24 @@ ifeq ($(CORE), HASWELL) ifndef DYNAMIC_ARCH ifndef NO_AVX2 ifeq ($(C_COMPILER), GCC) +# AVX2 support was added in 4.7.0 +GCCVERSIONGTEQ4 := $(shell expr `$(CC) -dumpversion | cut -f1 -d.` \>= 4) +GCCMINORVERSIONGTEQ7 := $(shell expr `$(CC) -dumpversion | cut -f2 -d.` \>= 7) +ifeq ($(GCCVERSIONGTEQ4)...
external/iotivity/Kconfig : Remove TIME_EXTENDED selection CONFIG_TIME_EXTENDED is deprecated. So we cannot selete that config.
@@ -7,7 +7,6 @@ menuconfig ENABLE_IOTIVITY bool "enable / disable iotivity stack" default n select NET_LWIP_NETDB - select TIME_EXTENDED select ARCH_STDARG_H ---help--- select to enable the iotivity stack in tinyara
fix two more silly bugs
:~ timers+[%& timers] == == + :: reverse moves, since they were constructed backward, and return :: - [moves ..^^$] + [(flop moves) ..^^$] :: +set-timer: set a timer, maintaining the sort order of the :timers list :: ++ set-timer :: ?~ timers ?~ next-wake - [~ state] + [moves state] :_ state(next-wake ~) [[unix-duct %g...
HV: remove ifndef on vpci_set_ptdev_intr_info The function vpci_set_ptdev_intr_info() is not compiled for CONFIG_SHARING_MODE only any more so the #ifndef here is useless. Acked-by: Eddie Dong
@@ -969,9 +969,7 @@ int32_t hcall_set_ptdev_intr_info(struct acrn_vm *vm, uint16_t vmid, uint64_t pa ret = -1; } else { /* Inform vPCI about the interupt info changes */ -#ifndef CONFIG_PARTITION_MODE vpci_set_ptdev_intr_info(target_vm, irq.virt_bdf, irq.phys_bdf); -#endif if (irq.type == IRQ_INTX) { ret = ptirq_add_in...
Fix error introduced in last ESP32 I2C change
@@ -170,7 +170,7 @@ HRESULT Library_win_dev_i2c_native_Windows_Devices_I2c_I2cDevice::NativeTransmit writeSize = writeBuffer->m_numOfElements; } - CLR_RT_HeapBlock_Array* readBuffer = stack.Arg3().DereferenceArray(); + CLR_RT_HeapBlock_Array* readBuffer = stack.Arg2().DereferenceArray(); if (readBuffer != NULL) { // gr...
License all # comment files.
# # MetaCall Ports by Parra Studios +# A complete infraestructure for supporting multiple langauge bindings in MetaCall. +# # Copyright (C) 2016 - 2019 Vicente Eduardo Ferrer Garcia <vic798@gmail.com> # -# A complete infraestructure for supporting multiple langauge bindings in MetaCall. +# Licensed under the Apache Lic...
register embed (saves in file, doesn't load)
@@ -298,7 +298,8 @@ static void tablecommon_writehook(t_pd *z, t_symbol *fn, int ac, t_atom *av){ static void table_embedhook(t_pd *z, t_binbuf *bb, t_symbol *bindsym){ t_table *x = (t_table *)z; t_tablecommon *cc = x->x_common; - if(cc->c_embedflag){ + int toembed = cc->c_embedflag != 0 && cc->c_dontsaveflag == 0; + i...
Add openSluaLib() call in coroutine method: LuaState.bindUnity().
@@ -583,7 +583,6 @@ namespace SLua public void bindUnity() { - if (!openedSluaLib) openSluaLib(); @@ -593,6 +592,9 @@ namespace SLua public IEnumerator bindUnity(Action<int> _tick, Action complete) { + if (!openedSluaLib) + openSluaLib(); + yield return LuaSvr.doBind(L, _tick, complete); LuaValueType.reg(L); }
Fix GetBlockIterator return type.
@@ -266,7 +266,9 @@ namespace NCB { } IDynamicBlockIteratorPtr<T> GetBlockIterator(ui32 offset = 0) const override { - return Data.GetBlockIterator(offset); + return MakeHolder<typename TConstSparseArray<T, ui32>::TBlockIterator>( + Data.GetBlockIterator(offset) + ); } private:
Better error reporting for Carto SQL API, including error logging and error parsing
@@ -76,13 +76,25 @@ namespace carto { std::shared_ptr<BinaryData> responseData; std::map<std::string, std::string> responseHeaders; if (client.get(url, std::map<std::string, std::string>(), responseHeaders, responseData) != 0) { - std::string result; + std::string error = "Invalid HTTP response code"; if (responseData)...
[software] Support "GOMP_sections_next"
#include "encoding.h" #include "synchronization.h" + + +void +gomp_sections_init(int count) +{ + works.end = count + 1; + works.next = 1; + works.chunk_size = 1; + works.incr = 1; +} + +/*********************** APIs *****************************/ + void GOMP_sections_end_nowait() { - // printf("e%d\n",omp_get_thread_nu...
Badger2040: Add WIDTH/HEIGHT constants
@@ -72,6 +72,9 @@ STATIC const mp_map_elem_t badger2040_globals_table[] = { { MP_ROM_QSTR(MP_QSTR_UPDATE_FAST), MP_ROM_INT(1) }, { MP_ROM_QSTR(MP_QSTR_UPDATE_TURBO), MP_ROM_INT(2) }, + { MP_ROM_QSTR(MP_QSTR_WIDTH), MP_ROM_INT(296) }, + { MP_ROM_QSTR(MP_QSTR_HEIGHT), MP_ROM_INT(128) }, + { MP_ROM_QSTR(MP_QSTR_BUTTON_A),...
Tweaks to when we do docker job.
@@ -22,11 +22,16 @@ build:dockerimage: image: docker:stable + rules: + - if: '$CI_COMMIT_REF_SLUG =~ /^docker/' + when: always before_script: - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY script: - docker pull $CI_BUILD_IMAGE:latest || true - - docker build --cache-from $CI_BUILD_IMAGE:lates...
Fix to free ctx and check null of values on gc_dispose_channel
@@ -53,8 +53,17 @@ static mrb_value detach_receiver(struct st_h2o_mruby_channel_context_t *ctx) static void on_gc_dispose_channel(mrb_state *mrb, void *_ctx) { struct st_h2o_mruby_channel_context_t *ctx = _ctx; - if (ctx != NULL) + if (ctx != NULL) { ctx->channel = mrb_nil_value(); + ctx->receiver = mrb_nil_value(); + ...
run plgd-hub test against cloud-server-discovery-resource-observable-debug
@@ -9,13 +9,20 @@ on: push: env: - TAG_NAME: cloud-server-debug:debug - CONTAINER_NAME: cloud-server TEST_CLOUD_SERVER_IMAGE: ghcr.io/plgd-dev/hub/test-cloud-server:latest jobs: plgd-hub-test: runs-on: ubuntu-latest + strategy: + matrix: + include: + - name: cloud-server-debug + file: docker/apps/Dockerfile.cloud-serve...
hv: fix debug message format in 'init_pci_pdev_list' To fix below err format: "%s" is used to output 'secondary_bus' with type of 'uint8_t'
@@ -177,7 +177,7 @@ void init_pci_pdev_list(void) secondary_bus = (uint8_t)pci_pdev_read_cfg(pbdf, PCIR_SECBUS_1, 1U); if (bus_to_scan[secondary_bus] != BUS_SCAN_SKIP) { pr_err("%s, bus %d may be downstream of different PCI bridges", - secondary_bus); + __func__, secondary_bus); } else { bus_to_scan[secondary_bus] = BU...
sse2: added NEON impl for mm_mul_su32
@@ -4134,7 +4134,11 @@ simde_mm_mul_su32 (simde__m64 a, simde__m64 b) { a_ = simde__m64_to_private(a), b_ = simde__m64_to_private(b); + #if defined(SIMDE_ARM_NEON_A32V7_NATIVE) + r_.u64[0] = vreinterpret_s64_u64(vget_low_u64(vmull_u32(vreinterpret_u32_s64(a), vreinterpret_u32_s64(b)))); + #else r_.u64[0] = HEDLEY_STATI...
add quicly:receive#first-octet
@@ -30,7 +30,6 @@ from pprint import pprint block_fields = { "quicly:crypto_decrypt": set(["decrypted"]), - "quicly:receive": set(["bytes"]), "quicly:crypto_update_secret": set(["secret"]), "quicly:crypto_send_key_update": set(["secret"]), "quicly:crypto_receive_key_update": set(["secret"]), @@ -276,7 +275,9 @@ struct ...
lib: updated TLS usage and made mk_server_fifo_key instance safe
#include <monkey/mk_scheduler.h> #include <monkey/mk_fifo.h> #include <monkey/mk_utils.h> +#include <monkey/mk_tls.h> #define config_eq(a, b) strcasecmp(a, b) @@ -66,7 +67,8 @@ mk_ctx_t *mk_create() * for further communication between the caller (user) and HTTP end-point * callbacks. */ - ctx->fifo = mk_fifo_create(&mk...
Cirrus: Use Arch Linux instead of Alpine Linux
-FROM alpine:edge +FROM archlinux/base -RUN apk update \ - && apk add --no-cache \ - build-base \ +RUN pacman -Sy --noconfirm \ + awk \ cmake \ + diffutils \ doxygen \ + gcc \ git \ graphviz \ ninja \ - ronn \ - texlive-full \ + ruby-ronn \ + texlive-most \ wget
merge typo
@@ -201,7 +201,8 @@ namespace NCatboostCuda { } TVector<T> cpuData; ::Load(in, cpuData); - CB_ENSURE(cpuData.size() == size, "Inconsistent data: expected " << size * data->GetColumnCount() << ", got " << cpuData.size()); + const auto expectedBufferSize = size * data->GetColumnCount(); + CB_ENSURE(cpuData.size() == expe...
Update test helper to be even les noisy.
(defn start-suite [x] (set suite-num x) (set start-time (os/clock)) - (eprint "Running test suite " x " tests...")) + (eprint "Starting suite " x "...")) (defn end-suite [] (def delta (- (os/clock) start-time)) - (eprintf "Test suite %d finished in %.3f seconds" suite-num delta) + (eprinf "Finished suite %d in %.3f sec...
jelboz/jelboz360: The type-C PDO "PD_MAX_POWER_MW" change to 45W The type-C PDO "PD_MAX_POWER_MW" change to 45W from 65W. BRANCH=zork TEST=manual Check PDO using command "ectool usbpdpower"
#define CONFIG_USB_PD_PORT_MAX_COUNT 2 #define CONFIG_USB_PORT_ENABLE_DYNAMIC +#undef PD_MAX_POWER_MW +#define PD_MAX_POWER_MW 45000 #undef PD_MAX_CURRENT_MA #define PD_MAX_CURRENT_MA 3000 #undef CONFIG_CHARGER_MIN_POWER_MW_FOR_POWER_ON
framework/arastorage: fix tuple file overwrite issue 1. storage_put_relation ,when create new tuple file, file may exist because of the first random_rand value maybe the same(typically 'tup0') after reboot device, need to check file exist before call storage_generate_file to create new file directly 2. correct the log ...
@@ -232,6 +232,11 @@ db_result_t storage_put_relation(relation_t *rel) if (rel->tuple_filename[0] == '\0') { snprintf(tuple_path, TUPLE_NAME_LENGTH, "%s.%x\0", TUPLE_FILE_NAME, (unsigned)(random_rand() & 0xffff)); + while (storage_open(tuple_path, O_RDWR) > 0) { + DB_LOG_D("DB: tuplefile = %s already exist, try another...
YAML Smith: Save test data below `/tests`
```sh # Add some key-value pairs to the database -kdb set user/examples/yamlsmith/key value -kdb set user/examples/yamlsmith/time 'will die and love will burrow it' +kdb set user/tests/yamlsmith/key value +kdb set user/tests/yamlsmith/time 'will die and love will burrow it' # Export data using YAML Smith -kdb export us...
http_client: on HTTP/1.1 lookup Content Length header
* - Get return Status, Headers and Body content if found. */ +#define _GNU_SOURCE +#include <string.h> + #include <fluent-bit/flb_info.h> #include <fluent-bit/flb_mem.h> #include <fluent-bit/flb_http_client.h> @@ -46,6 +49,43 @@ static int header_available(struct flb_http_client *c, int bytes) return 0; } +/* Under HTT...
fix updateHoudiniToolsShelf - script was pointing at wrong location
@@ -332,14 +332,14 @@ houdiniEngine_updateToolsShelf() if(`shelfLayout -exists "HoudiniTools"`) deleteShelfTab "HoudiniTools"; - // shared tools are installed under engine - i.e. $MODULE_PATH/../../Tools/ + // shared tools are installed under engine - i.e. $MODULE_PATH/../../tools/ string $MODULE_PATH=`getModulePath -m...
schema tree BUGFIX input buffer must be initialized
@@ -562,6 +562,7 @@ lysc_path_until(const struct lysc_node *node, const struct lysc_node *parent, LY LY_CHECK_ARG_RET(NULL, node, NULL); if (buffer) { LY_CHECK_ARG_RET(node->module->ctx, buflen > 1, NULL); + buffer[0] = '\0'; } switch (pathtype) {
doc: small fixes in COMPILE.md closes
@@ -427,16 +427,17 @@ one would use: cmake -DBUILD_SHARED=ON -DBUILD_FULL=ON -DBUILD_STATIC=OFF .. ``` -#### `ELEKTRA_DEBUG_BUILD` and `ELEKTRA_VERBOSE_BUILD` - -Only needed by Elektra developers. -Make the library to output logging information. -It is not recommended to use these options. - #### BUILD_DOCUMENTATION Bu...
TestsUser/Base.h: Import MIN_INT* macros
#define EFI_PAGE_MASK 0xFFF #define EFI_PAGE_SHIFT 12 +#define MIN_INT8 (((INT8) -127) - 1) +#define MIN_INT16 (((INT16) -32767) - 1) +#define MIN_INT32 (((INT32) -2147483647) - 1) +#define MIN_INT64 (((INT64) -9223372036854775807LL) - 1) + #define MDE_CPU_X64 #define VOID void #define CONST const
Add both .bin and .hex file to release
@@ -146,6 +146,12 @@ def package_release_files(source, dest, version, toolchain, release_info, suppor dest_name = build_number + "_" + host_mcu + "_" + base_name + dest_offset_str + "." + extension dest_path = os.path.join(output_dir, dest_name) shutil.copyfile(source_path, dest_path) + if extension == 'bin': + shutil....
ia32: work around QEMU multiboot bug
@@ -12,8 +12,8 @@ CROSS ?= i386-pc-phoenix- SUBDIRS = hal/ia32 $(SUBSYSTEMS) # Should be greater or equal than 0xc0020000 because of plo code and data - descriptor tables, page tables, syspage, stack, plo stack and disk cache -# Should be greate than 0xa000 in case of multiboot qemu loader - on 0x9000 multiboot info is...
fix fast init
@@ -66,6 +66,7 @@ do shift done + if [ "$EC2FASTINSTALL" = "true" ]; then if [ "$TOOLCHAIN" = "riscv-tools" ]; then cd $RDIR @@ -73,6 +74,7 @@ if [ "$EC2FASTINSTALL" = "true" ]; then cd firesim-riscv-tools-prebuilt git checkout 56a40961c98db5e8f904f15dc6efd0870bfefd9e PREBUILTHASH="$(cat HASH)" + git -C $CHIPYARD_DIR s...
Added -D_WINDOWS_ which expands the timing margin on the Linux port full demo, and turned optimization off for better debugging
@@ -74,8 +74,8 @@ SOURCE_FILES += ${FREERTOS_PLUS_DIR}/Source/FreeRTOS-Plus-Trace/trcStreamingReco SOURCE_FILES += ${FREERTOS_PLUS_DIR}/Source/FreeRTOS-Plus-Trace/streamports/File/trcStreamingPort.c -CFLAGS := -ggdb3 -Og -DprojCOVERAGE_TEST=0 -LDFLAGS := -ggdb3 -Og -pthread -lpcap +CFLAGS := -ggdb3 -O0 -DprojCOVERAGE_T...
crypto: add fcrypt plugin to benchmark
@@ -26,10 +26,11 @@ enum PluginVariant NO_CRYPTO = 0, CRYPTO_OPENSSL = 1, CRYPTO_GCRYPT = 2, - CRYPTO_BOTAN = 3 + CRYPTO_BOTAN = 3, + FCRYPT = 4 }; -static const std::string plugin_variant_names[] = { "no_crypto_plugin", "crypto_openssl", "crypto_gcrypt", "crypto_botan" }; +static const std::string plugin_variant_names...
eth-watcher: allow peers to unconfigured watchdogs We simply respond with an empty history. This allows applications to safely subscribe prior to a watchdog's creation.
:+ %diff %eth-watcher-diff :- %history ^- loglist - ~| [%no-such-watchdog t.path] - (zing history:(~(got by dogs.state) t.path)) + (zing history:(~(gut by dogs.state) t.path *watchdog)) (pure:m state) :: :: +handle-peek: get diagnostics data
Add missing options to docs
@@ -10,6 +10,7 @@ When any of the settings shall be modified, it shall be done in dedicated applic Check :ref:`getting_started` for guidelines on how to create and use configuration file. .. doxygengroup:: LWESP_OPT +.. doxygengroup:: LWESP_OPT_CONN .. doxygengroup:: LWESP_OPT_DBG .. doxygengroup:: LWESP_OPT_OS .. doxy...
Update imgtool documentation
@@ -50,23 +50,25 @@ into the key file. Image signing takes an image in binary or Intel Hex format intended for Slot 0 and adds a header and trailer that the bootloader is expecting: - usage: imgtool.py sign [-h] -k filename --align ALIGN -v VERSION -H - HEADER_SIZE [--pad PAD] [--rsa-pkcs1-15] - infile outfile - - posi...
avoid bool typedef for c++ builds
@@ -109,7 +109,9 @@ typedef unsigned long u32; * boolean type, to be used with TRUE and FALSE constant. * (internally set as unsigned char) */ +#ifndef __cplusplus typedef u8 bool; +#endif /** * \typedef vs8
OcAppleBootCompatLib: Reduce attribute update frequency to RT memory
STATIC VOID FixRuntimeAttributes ( - IN BOOT_COMPAT_CONTEXT *BootCompat + IN BOOT_COMPAT_CONTEXT *BootCompat, + IN UINT32 Type ) { EFI_STATUS Status; EFI_PHYSICAL_ADDRESS Address; UINTN Pages; + if (Type != EfiRuntimeServicesCode && Type != EfiRuntimeServicesData) { + return; + } + if (BootCompat->Settings.SyncRuntimeP...
[mod_cgi] reset reused buffer on internal redir
@@ -425,6 +425,7 @@ static int cgi_recv_response(server *srv, handler_ctx *hctx) { return HANDLER_FINISHED; case HANDLER_COMEBACK: /* hctx->conf.local_redir */ + buffer_string_set_length(hctx->response, 0); connection_response_reset(srv, hctx->remote_conn); /*(includes con->http_status = 0)*/ plugins_call_connection_re...
HotKeys: Restore CTRL-held logic
@@ -234,6 +234,18 @@ GetPickerKeyInfo ( ValidBootModifiers |= APPLE_MODIFIERS_SHIFT; } + // + // Default update is desired for Ctrl+Index and Ctrl+Enter. + // Strictly apply only on CTRL or CTRL+SHIFT (when SHIFT allowed), + // but no other modifiers. + // Needs to be set/unset even if filtered for typing (otherwise ca...
Unreachable code when in "__Userspace__"
@@ -4146,12 +4146,15 @@ sctp_inpcb_free(struct sctp_inpcb *inp, int immediate, int from) SCTP_INP_INFO_WUNLOCK(); return; } + +#if !defined(__Userspace__) if (SCTP_INP_LOCK_CONTENDED(inp)) being_refed++; if (SCTP_INP_READ_CONTENDED(inp)) being_refed++; if (SCTP_ASOC_CREATE_LOCK_CONTENDED(inp)) being_refed++; +#endif if...
Allow `./getversion` and `./getversion --short` commands to function as expected when source directory is not a git repo and a VERSION file exists. ``` ./getversion TAG build commit:SHA ./getversion --short TAG ``` Authored-by: Brent Doil Use ' build ' as the delimiter. Authored-by: Brent Doil
@@ -28,13 +28,17 @@ if type git >/dev/null 2>&1 && [ -d '.git' ] ; then VERSION+=+ VERSION+=$(git rev-parse --short HEAD) fi +# If not a git repository and VERSION file exists, use version string from file. +elif [[ -s ./VERSION ]]; then + VERSION=$(awk -F' build ' '{print $1}' ./VERSION) + BUILDNUMBER=$(awk -F' build ...
Only set TCP_NODELAY if the protocol is TCP This doesn't apply if we're doing DTLS, or using UNIX domain sockets.
@@ -147,7 +147,7 @@ int init_client(int *sock, const char *host, const char *port, #endif if (!BIO_connect(*sock, BIO_ADDRINFO_address(ai), - type == SOCK_STREAM ? BIO_SOCK_NODELAY : 0)) { + protocol == IPPROTO_TCP ? BIO_SOCK_NODELAY : 0)) { BIO_closesocket(*sock); *sock = INVALID_SOCKET; continue;
Added toString(double value, int numDecimal) function
@@ -555,6 +555,15 @@ public class StringUtil return Double.toString(value); } + /** + * Returns a string representation of the <code>double</code> argument + * with specified number of decimal. + */ + public static String toString(double value, int numDecimal) + { + return Double.toString(TypeUtil.round(value, numDecim...
test/build: only define SIMDE_ENABLE_OPENMP if the cc supports it
@@ -59,8 +59,16 @@ set(TEST_SOURCES set_compiler_specific_flags( VARIABLE extra_cflags - INTEL -wd3179 -qopenmp-simd -DSIMDE_ENABLE_OPENMP - GCCISH -march=native -fopenmp-simd -DSIMDE_ENABLE_OPENMP) + INTEL -wd3179 + GCCISH -march=native) + +check_c_compiler_flag("-fopenmp-simd" CFLAG__fopenmp_simd) +check_c_compiler_f...
network/tls: fix ecdsa HW acceleration there're two location to set key index in ecp_keypair. this should be fixed later.
@@ -863,7 +863,7 @@ int eckey_sign_wrap(void *ctx, mbedtls_md_type_t md_alg, const unsigned char *ha mbedtls_ecdsa_init(&ecdsa); if ((ret = mbedtls_ecdsa_from_keypair(&ecdsa, ctx)) == 0) { - unsigned int key_idx = (((mbedtls_ecp_keypair *) ctx)->grp).key_index; + unsigned int key_idx = (((mbedtls_ecp_keypair *) ctx)->g...
gmake2: Remove pch from FORCE_INCLUDE to allow NoPCH per-file
fileExtension { ".cc", ".cpp", ".cxx", ".mm" } buildoutputs { "$(OBJDIR)/%{premake.modules.gmake2.cpp.makeUnique(cfg, file.objname)}.o" } buildmessage '$(notdir $<)' - buildcommands {'$(CXX) $(%{premake.modules.gmake2.cpp.fileFlags(cfg, file)}) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"'} + buildcommands {'$(C...
Disabled built-in feature for wifi_test application
@@ -92,17 +92,6 @@ install: endif -ifeq ($(CONFIG_BUILTIN_APPS)$(CONFIG_EXAMPLES_WIFI_TEST),yy) -$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile - $(call REGISTER,$(APPNAME),$(APPNAME)_main,$(THREADEXEC)) - -context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat - -else -context: - -endif - .de...
fixed ESSID handling in case of a broken AF_PACKET socket
@@ -639,6 +639,10 @@ static inline void printessid(int essidlen, uint8_t *essid) { static int p; +if(essidlen > 32) + { + return; + } if(essidlen == 0) { fprintf(stdout, " <hidden ssid>"); @@ -2005,7 +2009,7 @@ if(fd_pcapng != 0) if((statusout & STATUS_ASSOC) == STATUS_ASSOC) { printtimenet(macfrx->addr1, macfrx->addr2...
link to petsc for intel tests as well
@@ -31,10 +31,10 @@ AC_PROG_FC AC_C_CONST if test "x$LMOD_FAMILY_COMPILER" = "xintel"; then - CFLAGS="-I ${SLEPC_INC} -I ${MKLROOT}/include ${CFLAGS}" - FFLAGS="-I ${SLEPC_INC} -I ${MKLROOT}/include ${FFLAGS}" - FCFLAGS="-I ${SLEPC_INC} -I ${MKLROOT}/include ${FFLAGS}" - LDFLAGS="-L${SLEPC_LIB} -lslepc ${LDFLAGS}" + CF...
Install setuptools in Travis CI.
@@ -16,6 +16,7 @@ pushd "$DEPS_DIR" doxygen \ graphviz \ python-dev \ + python-setuptools \ ruby-dev \ php-dev \ liblua5.3-dev \
xfconf: use gvalue instead of gchar
@@ -82,14 +82,16 @@ int elektraXfconfGet (Plugin * handle ELEKTRA_UNUSED, KeySet * returned, Key * p while (channelKeys != NULL) { char * keyName = elektraStrDup (channelKeys->data); - gchar * keyValue = xfconf_channel_get_string (channel, keyName, NULL); - ELEKTRA_LOG_DEBUG ("found %s -> %s\n", keyName, keyValue); + G...
validation MAINTENANCE cast problems
@@ -945,7 +945,7 @@ lyd_val_uniq_list_equal(void *val1_p, void *val2_p, ly_bool UNUSED(mod), void *c first = *((struct lyd_node **)val1_p); second = *((struct lyd_node **)val2_p); - action = (LY_ARRAY_COUNT_TYPE)cb_data; + action = (uintptr_t)cb_data; assert(first && (first->schema->nodetype == LYS_LIST)); assert(secon...
ames: retry sending a %cork if publisher is behind
:: if it's %cork plea passed to ames from its sink, :: give %done and process flow closing after +on-take-done call :: - ?: &(=(vane.plea %a) =(path.plea `path`/flow) ?=([%cork *] payload.plea)) + ?: &(=(vane.plea %a) =(path.plea `path`/close) ?=(~ payload.plea)) (emit duct %give %done ~) abet:(on-memo:(make-peer-core ...
ExtendedTools: Fix showing error message when opening wswatch window
@@ -57,6 +57,10 @@ typedef struct _SYMBOL_LOOKUP_RESULT PPH_STRING FileName; } SYMBOL_LOOKUP_RESULT, *PSYMBOL_LOOKUP_RESULT; +VOID EtpDereferenceWsWatchContext( + _In_ PWS_WATCH_CONTEXT Context + ); + INT_PTR CALLBACK EtpWsWatchDlgProc( _In_ HWND hwndDlg, _In_ UINT uMsg, @@ -69,12 +73,38 @@ VOID EtShowWsWatchDialog( _I...
Fix missing declarration
#include "bignum_mod.h" #include "constant_time_internal.h" +#include "bignum_mod_raw_invasive.h" + void mbedtls_mpi_mod_raw_cond_assign(mbedtls_mpi_uint *X, const mbedtls_mpi_uint *A, const mbedtls_mpi_mod_modulus *N,
roller: only add tx to pending if verifies
=* ship ship.from.tx.raw-tx.pend-tx =/ [exceeded=? next-quota=@] (quota-exceeded ship) ?: exceeded [~ state] - =: pending (snoc pending pend-tx) - ship-quota (~(put by ship-quota) ship next-quota) - == =^ [gud=? cards-1=(list update)] state (try-apply pre [force raw-tx]:pend-tx) + =^ cards-2 history + (update-history [...
[doc] create-mime.conf.pl improve case handling make create-mime.conf.pl more resilient to questionable edits to /etc/mime.types x-ref: "lighttpd: does not start with media-types 1.1.0"
@@ -71,12 +71,21 @@ my %manual_conflicts_resolve = ( open MIMETYPES, "/etc/mime.types" or die "Can't open /etc/mime.types: $!"; my %extensions; +my %lcext; sub set { my ($extension, $mimetype) = @_; $extensions{$extension} = $mimetype; + $lcext{lc($extension)} = $extension; } sub add { my ($extension, $mimetype) = @_; ...
Basic key press/consumer press behavior docs.
title: Key Presses --- -TODO: Docs on key press behavior +## Summary + +The most basic of behaiors, is the ability to send certain keycode presses and releases in response to activating +a certain key. + +For reference on keycode values, see the [USB HID Usage Tables](https://www.usb.org/document-library/hid-usage-tabl...
MEMFS: Logging
@@ -24,8 +24,9 @@ except: ascii = lambda x: str(x) # Python 2 -# The last argument is the generated C file -g = open(sys.argv[-1], "w") +# The last argument is the path of the generated C file +output_file_path = sys.argv[-1] +g = open(output_file_path, "w") for directory in dirs: @@ -203,3 +204,4 @@ FILE* codes_memfs_...
set dimm: always print out status Updated to print out the status no matter what happens after the set call takes place
@@ -517,11 +517,9 @@ SetDimm( pDimmIds, DimmIdsCount, SecurityOperation, pPassphrase, pNewPassphrase, pCommandStatus); - if (EFI_ERROR(ReturnCode)) { + goto FinishCommandStatusSet; } - goto Finish; - } /** Set FirstFastRefresh
arvo: restore original %xeno wires
=/ =type [%cell [%atom %tas `%soft] %noun] [%& type [%soft card.ovum]] =/ =move - [duct=~ %pass wire.ovum vane mill] + ~| [%poke %bad-wire wire.ovum] + ?> ?=([%$ *] wire.ovum) + [duct=~ %pass t.wire.ovum vane mill] (emit %$ move ~) :: +spam: prepare a worklist for all targets :: =/ wire i.duct.move =/ duct t.duct.move ...