message
stringlengths
6
474
diff
stringlengths
8
5.22k
perf-tools/extrae: remove quoting
@@ -61,7 +61,7 @@ module load papi %if "%{compiler_family}" == "intel" %if "%{mpi_family}" == "impi" -%global compiler_vars "CC=icc CXX=icpc MPICC=mpicc MPIF90=mpiifort" +%global compiler_vars CC=icc CXX=icpc MPICC=mpicc MPIF90=mpiifort %endif %endif
sgx-tools/README.md: provide a way to get report file of your enclave To get the quote of your enclave, you must have a report file. And you can use `rune attest` command to get your local report and save it in the report file.
`sgx-tools` is a command line tool for inclavare-containers. - Given the signature file of an Enclave, `sgx-tools gen-token` command can generate the corresponding token file from aesmd service. - `sgx-tools gen-qe-target-info` command can generate Quoting Enclave's target information file from aesm service. -- Given t...
Trying to build coverage only during pull requests.
@@ -36,8 +36,10 @@ git: lfs_skip_smudge: true script: - - if [ "$TRAVIS_BRANCH" = "master" ]; then make coverage; fi + - if [ "$TRAVIS_PULL_REQUEST" = "true" ]; then make coverage; fi + - if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then py.test; fi + after_success: - - if [ "$TRAVIS_BRANCH" = "master" ]; then coveralls --...
gitmodules: Update tinycbor URL to intel source 01org is deprecated Tested-by: IoTivity Jenkins
[submodule "deps/tinycbor"] path = deps/tinycbor - url = https://github.com/01org/tinycbor.git + url = https://github.com/intel/tinycbor.git [submodule "deps/mbedtls"] path = deps/mbedtls url = https://github.com/ARMmbed/mbedtls.git
use multiple buffer files and delete them after parsing
*/ const { exec } = require('child_process') -const { readFileSync } = require('fs') +const { readFileSync, unlink } = require('fs') // constants const ERR_KEY_NOT_FOUND = 'Did not find key' @@ -200,12 +200,20 @@ const getAllMeta = (path) => resolvedMetaValues && Object.assign.apply(Object, resolvedMetaValues) ) -const...
Suppress log output
@@ -315,6 +315,11 @@ public class StatsRecorder : BackgroundService await UpdatePoolHashratesAsync(ct); } + catch(OperationCanceledException) + { + // ignored + } + catch(Exception ex) { logger.Error(ex); @@ -333,6 +338,11 @@ public class StatsRecorder : BackgroundService await StatsGcAsync(ct); } + catch(OperationCanc...
Fix tutorial patch
diff --git a/build.sbt b/build.sbt -index e80b2a5..b1989d9 100644 +index 3123c4b8..487fc428 100644 --- a/build.sbt +++ b/build.sbt @@ -184,7 +184,7 @@ lazy val testchipipLib = "edu.berkeley.cs" %% "testchipip" % "1.0-020719-SNAPSHO lazy val chipyard = (project in file("generators/chipyard")) .sourceDependency(testchipi...
pvscsi_action_io_queued: hold dev->queue_lock during call to pvscsi_action_io and enqueue to hcb_queue
@@ -135,11 +135,11 @@ static void pvscsi_action_io_queued(pvscsi dev, struct pvscsi_hcb *hcb, u16 targ spin_unlock(&dev->queue_lock); return; } - spin_unlock(&dev->queue_lock); if (!pvscsi_action_io(dev, hcb)) { list_push_back(&dev->hcb_queue, &hcb->links); } + spin_unlock(&dev->queue_lock); } static inline void pvscsi...
sse4.1: added NEON implementation of mm_mullo_epu32
@@ -1673,7 +1673,9 @@ simde_x_mm_mullo_epu32 (simde__m128i a, simde__m128i b) { a_ = simde__m128i_to_private(a), b_ = simde__m128i_to_private(b); - #if defined(SIMDE_VECTOR_SUBSCRIPT_OPS) + #if defined(SIMDE_ARM_NEON_A32V7_NATIVE) + r_.neon_u32 = vmulq_u32(a_.neon_u32, b_.neon_u32); + #elif defined(SIMDE_VECTOR_SUBSCRI...
add logic to test absence of slurm on pbspro
@@ -20,16 +20,20 @@ check_rms assert_success } -if [ x$RESOURCE_MANAGER = "xslurm" ];then @test "[pdsh] check for pdsh-mod-slurm RPM" { - run check_if_rpm_installed "pdsh${DELIM}" + run check_if_rpm_installed "pdsh-mod-slurm${DELIM}" + if [ x$RESOURCE_MANAGER = "xslurm" ];then assert_success + else + assert_failure + f...
avoid StringIndexOutOfBoundsException when value length is less than 5
@@ -3110,6 +3110,7 @@ public class EMDK3ScannerSettings if(values[0].endsWith("/")) value = "/" + values[1]; else value = values[1]; } + if(value.length() >= 5) value = value.substring(5); if(!value.equalsIgnoreCase(Environment.getExternalStorageDirectory().getAbsolutePath() + "/" + "decode.wav")) config.scanParams.dec...
skip non cap/pcap/pcapng files
@@ -2230,7 +2230,7 @@ if(pcapr_fd == -1) } magicnumber = getmagicnumber(pcapr_fd); -if(magicnumber == 0) +if((magicnumber != PCAPMAGICNUMBER) && (magicnumber != PCAPMAGICNUMBERBE) && (magicnumber != PCAPNGBLOCKTYPE)) { printf("failed to get magicnumber from %s\n", basename(pcapinname)); close(pcapr_fd);
fpsensor: Tidy up fp_match_success Simplify logic and replace #ifdef with the compiler hint that the function might not be used in certain builds (e.g. tests). BRANCH=none TEST=make buildall -j
@@ -80,19 +80,13 @@ static inline int is_raw_capture(uint32_t mode) || capture_type == FP_CAPTURE_QUALITY_TEST); } -#if defined(HAVE_FP_PRIVATE_DRIVER) || defined(CONFIG_CMD_FPSENSOR_DEBUG) -static bool fp_match_success(int match_result) +__maybe_unused static bool fp_match_success(int match_result) { - if (match_resul...
When calling EC_POINT_point2buf we must use a libctx In a similar way to commit we must ensure that we use a libctx whenever we call EC_POINT_point2buf because it can end up using crypto algorithms.
@@ -116,6 +116,7 @@ int key_to_params(const EC_KEY *eckey, OSSL_PARAM_BLD *tmpl, const EC_GROUP *ecg = NULL; size_t pub_key_len = 0; int ret = 0; + BN_CTX *bnctx = NULL; if (eckey == NULL || (ecg = EC_KEY_get0_group(eckey)) == NULL) @@ -125,10 +126,18 @@ int key_to_params(const EC_KEY *eckey, OSSL_PARAM_BLD *tmpl, pub_...
jenkins: simplify kill command
@@ -971,11 +971,7 @@ export LUA_CPATH="${WORKSPACE}/system/lib/lua/5.2/?.so;" env kdb run_all - -dbus_pid=`pidof dbus-daemon` -if [ -z "$dbus_pid" ]; then - kill $dbus_pid -fi +kill `pidof dbus-daemon` || echo "No dbus-daemon to kill." ''' } } catch(e) {
feat(venachian):Revalidate the sol demo
# Auto generate C/H source files from contract ABI JSON files all: -# make -C ./Solidity all - make -C ./WASM all + make -C ./Solidity all +# make -C ./WASM all clean: -$(BOAT_RM) $(OUTPUT_H_SOURCES)
Initialize output buffer length to 0
@@ -3495,6 +3495,8 @@ psa_status_t psa_cipher_encrypt( mbedtls_svc_key_id_t key, psa_key_type_t key_type; size_t iv_length; + *output_length = 0; + if( ! PSA_ALG_IS_CIPHER( alg ) ) return( PSA_ERROR_INVALID_ARGUMENT ); @@ -3547,6 +3549,8 @@ psa_status_t psa_cipher_decrypt( mbedtls_svc_key_id_t key, psa_status_t unlock_...
Fix internal jmem_heap_finalize assertion in debugger. In case of received client source the client_source_data_p was not freed. JerryScript-DCO-1.0-Signed-off-by: Imre Kiss
@@ -134,6 +134,7 @@ jerry_debugger_wait_and_run_client_source (jerry_value_t *return_value) /**< [ou { JERRY_CONTEXT (debugger_flags) = (uint8_t) (JERRY_CONTEXT (debugger_flags) | JERRY_DEBUGGER_CLIENT_SOURCE_MODE); jerry_debugger_uint8_data_t *client_source_data_p = NULL; + jerry_debugger_wait_and_run_type_t ret_type ...
Fix Ethereum ABI encoding for the %bytes data type Don't encode it like you do %bytes-n, which limits length to 32 bytes.
:: enc(X) is the sequence of bytes in X padded with zero-bytes to a :: length of 32. :: Note that for any X, len(enc(X)) is a multiple of 32. + ~| [%bytes-n-too-long max=32 actual=p.p.dat] ?> (lte p.p.dat 32) (pad-to-multiple (render-hex-bytes p.dat) 64 %right) :: :: by the minimum number of zero-bytes such that len(en...
Unset conda update conda in travis
@@ -9,5 +9,5 @@ fi echo $TRAVIS_PYTHON_VERSION bash miniconda.sh -b -p $HOME/miniconda export PATH="$HOME/miniconda/bin:$PATH" -conda update --yes conda +# conda update --yes conda conda install --yes python="$TRAVIS_PYTHON_VERSION" pip numpy
"public key" instead of "atom".
|% ++ hull $: owner=address - encryption-key=@ - authentication-key=@ + encryption-key=pass + authentication-key=pass key-revision=@ud continuity-number=@ud spawn-count=@ud :* owner :: ?> =(32 p.encryption-key) - `@`q.encryption-key + `pass`q.encryption-key :: ?> =(32 p.authentication-key) - `@`q.authentication-key + `...
[ZARCH] fix data prefetch type in ddot
@@ -37,7 +37,7 @@ static FLOAT ddot_kernel_16(BLASLONG n, FLOAT *x, FLOAT *y) "xgr %%r1,%%r1 \n\t" "0: \n\t" "pfd 1,1024(%%r1,%2) \n\t" - "pfd 2,1024(%%r1,%3) \n\t" + "pfd 1,1024(%%r1,%3) \n\t" "vl %%v16,0(%%r1,%2) \n\t" "vl %%v17,16(%%r1,%2) \n\t"
local-gadget: Remove workaround for pinned maps The workaround that ensures that maps can be pinned is not needed anymore because after local-gadget will not use any pinned map anymore (as it should have been).
@@ -28,8 +28,6 @@ import ( containersmap "github.com/kinvolk/inspektor-gadget/pkg/gadgettracermanager/containers-map" "github.com/kinvolk/inspektor-gadget/pkg/gadgettracermanager/pubsub" tracercollection "github.com/kinvolk/inspektor-gadget/pkg/tracer-collection" - log "github.com/sirupsen/logrus" - "golang.org/x/sys/u...
Fix C11_ATOMIC detection on GNU Make 4.3 Older version of GNU Make (<4.3) required quoting of number signs (#) to avoid them being treated as a comment. Newer versions will treat this quote as a literal. This issue and a proposed solution is discussed here:
@@ -34,8 +34,10 @@ endif WARN=-Wall -W -Wno-missing-field-initializers OPT=$(OPTIMIZATION) -# Detect if the compiler supports C11 _Atomic -C11_ATOMIC := $(shell sh -c 'echo "\#include <stdatomic.h>" > foo.c; \ +# Detect if the compiler supports C11 _Atomic. +# NUMBER_SIGN_CHAR is a workaround to support both GNU Make 4...
[chainamker]modify error deal logic
@@ -358,7 +358,6 @@ BOAT_RESULT BoatHlchainmakerAddTxParam(BoatHlchainmakerTx *tx_ptr, const BCHAR * tx_ptr->trans_para.parameters[tx_ptr->trans_para.n_parameters].key = (BCHAR *)arg; while (NULL != (args = va_arg(ap, BCHAR *))) { - index++; if (index & 0x01) { @@ -381,44 +380,36 @@ BOAT_RESULT BoatHlchainmakerAddTxPar...
Make interface generator more robust
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by # virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction. # +set -e same=`./same_int_long` if [ $same -eq 1 ]
Fix segmentation fault in soft_tfidf.c Initialize local arrays suffixes1 and suffixes2 in function soft_tfidf_similarity_with_phrases_and_acronyms explicitly with NULL in order to prevent segmentation faults due to undefined initial values if ordinal_suffixes1 and ordinal_suffixes2 are NULL.
@@ -157,8 +157,8 @@ double soft_tfidf_similarity_with_phrases_and_acronyms(size_t num_tokens1, char uint32_array **t1_tokens_unicode = NULL; uint32_array **t2_tokens_unicode = NULL; - uint32_array *t1_unicode; - uint32_array *t2_unicode; + uint32_array *t1_unicode = NULL; + uint32_array *t2_unicode = NULL; int64_array ...
app_host_launcher as ya tool app_host
"crypta": { "description": "Run Crypta client" }, + "app_host": { + "description": "Run local app_host instance" + }, "go_1.13.5": { "description": "Run go tool (1.13.5)" }, } ] }, + "app_host": { + "tools": { + "app_host": { + "bottle": "app_host", + "executable": "app_host_launcher" + } + }, + "platforms": [ + { + "h...
Escape unspecified (but required) control characters
@@ -25,6 +25,9 @@ fiobj_s *fiobj_obj2json(fiobj_s *); JSON UTF-8 safe string formatting ***************************************************************************** */ +static char hex_notation[] = {'0', '1', '2', '3', '4', '5', '6', '7', + '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'}; + static uint8_t is_hex[] = { 0, 0, 0...
Add note about ".com" in clone path to INSTALL I confirmed that this is no longer a bug with camke 3.9.1. Fixes
@@ -99,6 +99,8 @@ except during early development. Release builds should be built with `-DENABLE_L - Manpages (and their HTML representations) are generated from the `.ronn` source files in the repository, using the [ronn](https://github.com/rtomayko/ronn) tool. This does not happen automatically as part of the build p...
VERSION bump to version 2.0.229
@@ -61,7 +61,7 @@ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) # set version of the project set(LIBYANG_MAJOR_VERSION 2) set(LIBYANG_MINOR_VERSION 0) -set(LIBYANG_MICRO_VERSION 228) +set(LIBYANG_MICRO_VERSION 229) set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION}...
zephyr/shim/include/usbc/ppc_syv682x.h: Format with clang-format BRANCH=none TEST=none
.i2c_port = I2C_PORT(DT_PHANDLE(id, port)), \ .i2c_addr_flags = DT_STRING_UPPER_TOKEN(id, i2c_addr_flags), \ .drv = &syv682x_drv, \ - .frs_en = COND_CODE_1(DT_NODE_HAS_PROP(id, frs_en_gpio), \ - (GPIO_SIGNAL(DT_PHANDLE(id, frs_en_gpio))), \ - (0)), \ + .frs_en = COND_CODE_1( \ + DT_NODE_HAS_PROP(id, frs_en_gpio), \ + (...
Add c++ multilib
@@ -4,7 +4,7 @@ commands: linux-setup: steps: - run: sudo apt-get update - - run: sudo apt-get install -y cmake "${TOOLCHAIN_PACKAGE}" + - run: sudo apt-get install -y cmake ${TOOLCHAIN_PACKAGES} - run: sudo apt install libcmocka-dev build: steps: @@ -42,7 +42,7 @@ jobs: machine: image: ubuntu-2204:2022.10.2 environmen...
dispatch_connection: allow tracing the buffer rotation
@@ -409,6 +409,9 @@ dispatch_connection(connection *conn, dispatcher *self, struct timeval start) conn->buflen += len; tracef("dispatcher %d, connfd %d, read %d bytes from socket\n", self->id, conn->sock, len); +#ifdef ENABLE_TRACE + conn->buf[conn->buflen] = '\0'; +#endif } /* metrics look like this: metric_path value...
Fix saving files in third party storages
@@ -805,16 +805,9 @@ fileprivate func parseArgs(_ args: inout [String]) { return } - let text = textView.text + document?.text = textView.text - DispatchQueue.global().async { - do { - try text.write(to: self.document!.fileURL, atomically: true, encoding: .utf8) - completion?(true) - } catch { - completion?(false) - } ...
[esp32]compile fix: use esptool.exe instead of esptool.py in windows
@@ -24,6 +24,12 @@ endif # Win32 CRC_BIN_OUTPUT_FILE :=$(LINK_OUTPUT_FILE:$(LINK_OUTPUT_SUFFIX)=_crc$(BIN_OUTPUT_SUFFIX)) OTA_BIN_OUTPUT_FILE := $(LINK_OUTPUT_FILE:$(LINK_OUTPUT_SUFFIX)=.ota$(BIN_OUTPUT_SUFFIX)) +ifeq ($(HOST_OS),Win32) + ESPTOOL = esptool.exe +else + ESPTOOL = esptool.py +endif + EXTRA_POST_BUILD_TARG...
[core] adjust http_request_headers_process() adjust for code reuse, and moving routine to lower-level file
@@ -831,18 +831,12 @@ static uint32_t connection_read_header_hoff(const char *n, const uint32_t clen, static void -http_request_headers_process (request_st * const r, char * const hdrs, unsigned short * const hoff) +http_request_headers_process (request_st * const r, char * const hdrs, unsigned short * const hoff, cons...
ebuild: fix the distclean target Type: fix
@@ -1151,7 +1151,4 @@ distclean: rm -rf $(MU_BUILD_ROOT_DIR)/*.deb rm -rf $(MU_BUILD_ROOT_DIR)/*.rpm rm -rf $(MU_BUILD_ROOT_DIR)/*.changes - rm -rf $(MU_BUILD_ROOT_DIR)/python - if [ -e /usr/bin/dh ];then (cd $(MU_BUILD_ROOT_DIR)/deb/;debian/rules clean); fi - rm -f $(MU_BUILD_ROOT_DIR)/deb/debian/*.install - rm -f $(M...
hfuzz-cc: don't put libhfuzz/libhfnetdriver inside shared libs (-shared)
@@ -95,7 +95,7 @@ static bool isLDMode(int argc, char** argv) { if (strcmp(argv[i], "-S") == 0) { return false; } - if (strcmp(argv[i], "--shared") == 0) { + if (strcmp(argv[i], "-shared") == 0) { return false; } }
run_javac 8/10 options compatibility
@@ -42,6 +42,29 @@ def remove_notes(err): return '\n'.join([line for line in err.split('\n') if not line.startswith('Note:')]) +# temporary, for jdk8/jdk9+ compatibility +def fix_cmd(cmd): + if not cmd: + return cmd + javac = cmd[0] + if not javac.endswith('javac') and not javac.endswith('javac.exe'): + return cmd + p ...
Add cell copy menu to memory search results dialog
* memory search results * * Copyright (C) 2010-2016 wj32 - * Copyright (C) 2017-2019 dmex + * Copyright (C) 2017-2021 dmex * * This file is part of Process Hacker. * @@ -631,12 +631,12 @@ INT_PTR CALLBACK PhpMemoryResultsDlgProc( POINT point; PPH_EMENU menu; PPH_EMENU_ITEM selectedItem; - ULONG filterType = 0; menu = P...
net/ipfwd: Support ICMPv6 error reply when forwarding IPv6
#include "netdev/netdev.h" #include "sixlowpan/sixlowpan.h" #include "devif/devif.h" +#include "icmpv6/icmpv6.h" #include "ipforward/ipforward.h" #if defined(CONFIG_NET_IPFORWARD) && defined(CONFIG_NET_IPv6) @@ -142,12 +143,6 @@ static int ipv6_decr_ttl(FAR struct ipv6_hdr_s *ipv6) if (ttl <= 0) { -#ifdef CONFIG_NET_IC...
filter: nightfall: updated the code to use the new base stream type
@@ -112,7 +112,8 @@ static int cb_nightfall_init(struct flb_filter_instance *f_ins, return -1; } - ctx->upstream->flags &= ~(FLB_IO_ASYNC); + flb_stream_disable_async_mode(&ctx->upstream->base); + flb_filter_set_context(f_ins, ctx); srand((unsigned int)time(NULL));
[app] make APP_START work with C++ Needs a __USED tag or the compiler will GC it apparently. Should do the same thing for other section based trickery.
@@ -40,7 +40,7 @@ struct app_descriptor { size_t stack_size; }; -#define APP_START(appname) const struct app_descriptor _app_##appname __ALIGNED(sizeof(void *)) __SECTION("apps") = { .name = #appname, +#define APP_START(appname) const struct app_descriptor _app_##appname __USED __ALIGNED(sizeof(void *)) __SECTION("apps...
[ML302v003][#821]add pcks key
@@ -526,6 +526,55 @@ static BOAT_RESULT sBoatPort_keyCreate_external_injection_native(const BoatWalle return result; } +static BOAT_RESULT sBoatPort_keyCreate_external_injection_pkcs(const BoatWalletPriKeyCtx_config *config, + BoatWalletPriKeyCtx *pkCtx) +{ + BUINT8 pubKey65[65] = {0}; + BOAT_RESULT result = BOAT_SUCCE...
fix: discord_send_message() should no longer break on receiving empty string as parameters
@@ -66,6 +66,15 @@ discord_message_cleanup(discord_message_t *message) void discord_send_message(discord_t *client, const char channel_id[], const char content[]) { + if (IS_EMPTY_STRING(channel_id)) { + D_PUTS("Can't send message to Discord: missing 'channel_id'"); + return; + } + if (IS_EMPTY_STRING(content)) { + D_P...
Fix background warnings return type error in unit tests
@@ -18,7 +18,7 @@ const MAX_IMAGE_HEIGHT = 2040; const MAX_PIXELS = 16380 * 64; const MAX_TILESET_TILES = 16 * 12; -export const getBackgroundWarnings = async (background: IBackground, projectPath: string, precalculatedTilesetLength?: number): string[] => { +export const getBackgroundWarnings = async (background: IBack...
Update oss-fuzz test to new API.
// SPDX-License-Identifier: Apache-2.0 // ---------------------------------------------------------------------------- -// Copyright 2020 Arm Limited +// Copyright 2020-2021 Arm Limited // // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the Licen...
Use correct lambda # Conflicts: # src/search_inter.c
@@ -2031,7 +2031,7 @@ static void search_pu_inter(encoder_state_t * const state, if(amvp[i].size > 0) { const uint8_t best_key = amvp[i].keys[0]; amvp[i].bits[best_key] += no_skip_flag + part_mode_bits; - amvp[i].cost[best_key] += (no_skip_flag + part_mode_bits)* state->lambda; + amvp[i].cost[best_key] += (no_skip_flag...
VERSION bump to version 2.0.100
@@ -62,7 +62,7 @@ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) # set version of the project set(LIBYANG_MAJOR_VERSION 2) set(LIBYANG_MINOR_VERSION 0) -set(LIBYANG_MICRO_VERSION 99) +set(LIBYANG_MICRO_VERSION 100) set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION})...
remove buggy logic in blit_layer_filled
@@ -119,19 +119,15 @@ void blit_layer_filled(ca_layer* dest, ca_layer* src, Rect dest_frame, Rect src_ //figure out how many px we can actually transfer over, //in case src_frame exceeds dest - int transferabble_px = src_frame.size.width * gfx_bpp(); - int overhang = (uint32_t)dest_row_start + (uint32_t)row_start + tra...
h2olog/quic: handle common fields
@@ -232,26 +232,29 @@ def handle_resp_line(cpu, data, size): line = b["txbuf"].event(data) print("%u %u TxStatus %d" % (line.conn_id, line.req_id, line.http_status)) +def load_common_fields(hsh, line): + for k in ['at', 'type', 'master_conn_id']: + hsh[k] = getattr(line, k) + def handle_quic_line(cpu, data, size): line...
feat(cmake-build): build all libraries either SHARED or STATIC
@@ -18,16 +18,11 @@ file(GLOB_RECURSE SOURCES ${LVGL_ROOT_DIR}/src/*.c) file(GLOB_RECURSE EXAMPLE_SOURCES ${LVGL_ROOT_DIR}/examples/*.c) file(GLOB_RECURSE DEMO_SOURCES ${LVGL_ROOT_DIR}/demos/*.c) -if (BUILD_SHARED_LIBS) - add_library(lvgl SHARED ${SOURCES}) -else() - add_library(lvgl STATIC ${SOURCES}) -endif() - +add_...
[components][serial] fix do RT_DEVICE_CTRL_CLOSE cmd when close serial device regardless of DMA config
@@ -816,11 +816,11 @@ static rt_err_t rt_serial_close(struct rt_device *dev) /* configure low level device */ serial->ops->control(serial, RT_DEVICE_CTRL_CLR_INT, (void *) RT_DEVICE_FLAG_DMA_TX); } +#endif /* RT_SERIAL_USING_DMA */ serial->ops->control(serial, RT_DEVICE_CTRL_CLOSE, RT_NULL); dev->flag &= ~RT_DEVICE_FLA...
linux-raspberrypi: Update 4.19 kernel to 4.19.56
FILESEXTRAPATHS_prepend := "${THISDIR}/linux-raspberrypi:" -LINUX_VERSION ?= "4.19.44" +LINUX_VERSION ?= "4.19.56" LINUX_RPI_BRANCH ?= "rpi-4.19.y" -SRCREV = "b45a32b47b76cb64225d19841c20ee85ea97874d" +SRCREV = "e8a66b4f610b3a20bae8f706256d230135916c26" SRC_URI = " \ git://github.com/raspberrypi/linux.git;protocol=git;...
cortex-m/vecttable: -Wattribute-alias is supported starting GCC8 BRANCH=none TEST=no more build error with gcc6 Commit-Ready: Patrick Georgi Tested-by: Patrick Georgi
@@ -42,7 +42,7 @@ extern void stack_end(void); /* not technically correct, it's just a pointer */ extern void reset(void); #pragma GCC diagnostic push -#if __GNUC__ >= 6 +#if __GNUC__ >= 8 #pragma GCC diagnostic ignored "-Wattribute-alias" #endif /* Call default_handler if svc_handler is not found (task.c is not built)...
build: No longer allow partial builds
@@ -106,15 +106,6 @@ TEST_INSTALL = 'install' NOW = new Date() -/* Determine what needs to be build - * - * Execution of this script is triggered by SCM changes or manually by - * commenting 'jenkins build Jenkinsfile[REGEX] please. The [REGEX] is - * optional but when it exists it allows for specification of which - *...
Fix syscall numbers.
@@ -1030,8 +1030,8 @@ pkg sys = const Sysreadv : scno = 19 const Syswrite : scno = 1 const Syswritev : scno = 20 - const Syspread : scno = 0 - const Syspwrite : scno = 0 + const Syspread : scno = 17 + const Syspwrite : scno = 18 const Syspreadv : scno = 295 const Syspreadv2 : scno = 327 const Syspwritev : scno = 296
Fix fax numbers supplied via GTK print dialog, removing a "Custom." prefix; do not choke if the GTK dialog sends "None" as phone number or pre-dial prefix
@@ -2825,7 +2825,21 @@ new_request( */ _httpDecodeURI(phone, keyword, sizeof(phone)); - for (ptr = phone; *ptr;) + ptr = phone; + + /* + * Weed out "Custom." in the beginning, this allows to put the + * "phone" option as custom string option into the PPD so that + * print dialogs not supporting fax display the option a...
Another fix for listtransactions
@@ -1210,13 +1210,13 @@ void ListTransactions(const CWalletTx& wtx, const string& strAccount, int nMinDe } // PoS Reward and Amount - if (wtx.IsCoinStake()) + if (wtx.IsCoinStake() && nFee !=0) { entry.push_back(Pair("amount", ValueFromAmount(r.amount))); entry.push_back(Pair("reward", ValueFromAmount(-nFee))); stop = ...
machinarium: add readahead test
*/ #include <machinarium.h> -#include <uv.h> +#include <machinarium_private.h> #include <string.h> #include <assert.h> @@ -19,36 +19,43 @@ server(void *arg) machine_io_t server = machine_create_io(machine); struct sockaddr_in sa; - uv_ip4_addr("127.0.0.1", 7778, &sa); + sa.sin_family = AF_INET; + sa.sin_addr.s_addr = i...
Fix thread stack string reference
@@ -1501,9 +1501,6 @@ static NTSTATUS PhpRefreshThreadStack( stackNode = AddThreadStackNode(Context, item->Index); stackNode->StackFrame = item->StackFrame; - if (!PhIsNullOrEmptyString(item->Symbol)) - stackNode->SymbolString = PhReferenceObject(item->Symbol); - if (item->StackFrame.StackAddress) PhPrintPointer(stackN...
[cmake] Fix problem concering linking against DRAWEXE
@@ -161,8 +161,14 @@ IF(WITH_OCC) if(NOT WITH_MECHANISMS) COMPILE_WITH(OCE 0.15 REQUIRED ONLY mechanics) SET(SICONOS_HAVE_OCC TRUE) - LIST(REMOVE_ITEM SICONOS_LINK_LIBRARIES DRAWEXE) - LIST(REMOVE_ITEM mechanics_LINK_LIBRARIES DRAWEXE) + endif() + if(OCE_VERSION VERSION_LESS 0.18) + # DRAWEXE link fails on some systems...
chat-cli: add scry helper
=; perm=(unit permission) ?~(perm ~ `?=(%white kind.u.perm)) ::TODO +permission-of-target? - .^ (unit permission) - %gx - (scot %p our-self) + %^ scry-for (unit permission) %permission-store - (scot %da now.bowl) - %permission - (snoc path %noun) - == + [%permission path] ?~ whitelist ~& [%weird-no-permission path] ~ :...
perf-tools/dimemas: dimemas does not provide libraries, update modulefile accordingly
@@ -43,7 +43,15 @@ BuildRequires: libtool%{PROJ_DELIM} %define install_path %{OHPC_LIBS}/%{compiler_family}/%{mpi_family}/%{pname}/%version %description -Dimemas is a performance analysis tool for message-passing programs. It enables the user to develop and tune parallel applications on a workstation, while providing a...
apps/netutils/netlib: Add default route in netlib_set_dripv4addr()
#include <netinet/in.h> #include <net/if.h> +#ifdef CONFIG_NET_ROUTE +# include <net/route.h> +#endif + #include "netutils/netlib.h" /**************************************************************************** @@ -76,6 +80,21 @@ int netlib_set_dripv4addr(FAR const char *ifname, { int ret = ERROR; +#ifdef CONFIG_NET_RO...
[numerics] add creation of a directory in fclib output
#ifdef WITH_FCLIB static int fccounter =-1; + +#include <sys/types.h> +#include <sys/stat.h> +#include <unistd.h> + + + + #endif static double * alloc_memory_double(unsigned int size, double *p) { @@ -190,11 +198,18 @@ int gfc3d_LmgcDriver(double *reaction, { #ifdef WITH_FCLIB fccounter++; + struct stat st = {}; + + if...
Fix compression test by fixing the OS field in compression stream.
@@ -205,6 +205,13 @@ public: ythrow TZLibCompressorError() << "can not init inflate engine"; } + // Create exactly the same files on all platforms by fixing OS field in the header. + if (p.Type == ZLib::GZip) { + GZHeader_ = new gz_header{}; + GZHeader_->os = 3; // UNIX + deflateSetHeader(Z(), GZHeader_.Get()); + } + i...
stm32/accel: Fix Accel.read() method so it does read a byte. This bug was introduced in
@@ -255,7 +255,7 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_1(pyb_accel_filtered_xyz_obj, pyb_accel_filtered_ STATIC mp_obj_t pyb_accel_read(mp_obj_t self_in, mp_obj_t reg) { uint8_t data[1] = { mp_obj_get_int(reg) }; i2c_writeto(I2C1, ACCEL_ADDR, data, 1, false); - i2c_writeto(I2C1, ACCEL_ADDR, data, 1, true); + i2c_readfrom(I...
filter_kubernetes: avoid extra escaping on structured 'log' field
@@ -104,7 +104,7 @@ static int pack_map_content(msgpack_packer *pck, msgpack_sbuffer *sbuf, int new_map_size = 0; int log_index = -1; int log_size = 0; - int json_size; + int json_size = 0; int log_buf_entries = 0; size_t off = 0; char *tmp; @@ -207,9 +207,22 @@ static int pack_map_content(msgpack_packer *pck, msgpack_...
added resource file to win build
@@ -334,9 +334,18 @@ if(APPLE) endif() if(WIN32) - add_executable(tic80 WIN32 ${TIC80_SRC}) + + set(TIC80_RES ${CMAKE_CURRENT_BINARY_DIR}/tic80res.obj) + + add_custom_command(OUTPUT ${TIC80_RES} + COMMAND windres ${CMAKE_CURRENT_SOURCE_DIR}/build/mingw/res.rc ${TIC80_RES}) + + add_executable(tic80 WIN32 ${TIC80_SRC} ${...
BugID:16838693: Add timer change sequence description comments for aos_timer_change function
@@ -364,6 +364,9 @@ extern "C" * @param[in] timer pointer to the timer. * @param[in] ms ms of the timer triger. * + * @note change the timer attributes should follow + * the sequence as timer_stop->timer_change->timer_start + * * @return 0: success. */ int aos_timer_change(aos_timer_t *timer, int ms);
Utilities: Sync README
@@ -90,7 +90,7 @@ Utility to validate whether a `config.plist` matches requirements and convention - When `OpenUsbKbDxe.efi` is in use, `KeySupport` in `UEFI->Input` should never be enabled altogether. - When `Ps2KeyboardDxe.efi` is in use, `KeySupport` in `UEFI->Input` should always be enabled altogether. - `OpenUsbKb...
Protect TRUE/FALSE defines in rtx_core_cm.h.
#include <stdbool.h> typedef bool bool_t; + +#ifndef FALSE #define FALSE ((bool_t)0) +#endif + +#ifndef TRUE #define TRUE ((bool_t)1) +#endif #ifdef RTE_CMSIS_RTOS2_RTX5_ARMV8M_NS #define DOMAIN_NS 1
dm: vpci: restrict SOS access assigned PCI device SOS should not access the physical PCI device which is assigned to other guest. Acked-by: Eddie Dong
@@ -395,6 +395,7 @@ passthru_init(struct vmctx *ctx, struct pci_vdev *dev, char *opts) bool keep_gsi = false; bool need_reset = true; struct acrn_assign_pcidev pcidev = {}; + uint16_t vendor = 0, device = 0; ptdev = NULL; error = -EINVAL; @@ -467,12 +468,20 @@ passthru_init(struct vmctx *ctx, struct pci_vdev *dev, char...
Fix 'attempt to flush unmapped buffer' when creating empty Mesh;
@@ -1413,10 +1413,11 @@ static int l_lovrGraphicsNewMesh(lua_State* L) { lua_pop(L, 1); } } - } lovrBufferFlush(vertexBuffer, 0, count * stride); lovrBufferUnmap(vertexBuffer); + } + lovrRelease(vertexBuffer, lovrBufferDestroy); luax_pushtype(L, Mesh, mesh);
rbd: set unmap limits based on object size rbd prefers unmaps that are aligned with the object size.
@@ -932,6 +932,10 @@ static int tcmu_rbd_open(struct tcmu_device *dev, bool reopen) goto stop_image; } + tcmu_set_dev_max_unmap_len(dev, (image_info.obj_size * 4) / + tcmu_get_dev_block_size(dev)); + tcmu_set_dev_opt_unmap_gran(dev, image_info.obj_size / + tcmu_get_dev_block_size(dev)); tcmu_set_dev_write_cache_enabled...
fix release notes (again)
@@ -309,7 +309,7 @@ you up to date with the multi-language support provided by Elektra. - The plugin name is now provided as compiler definition `ELEKTRA_PLUGIN_NAME` via CMake. See [#1042](https://issues.libelektra.org/1042). *(Peter Nirschl)* -- `ELEKTRA_PLUGIN_FUNCTION` does not require the module name parameter any...
sse2: workaround missing vcvtnq_s32_f32 on GCC
@@ -2627,7 +2627,7 @@ simde_mm_cvtps_epi32 (simde__m128 a) { #if defined(SIMDE_ARM_NEON_A64V8_NATIVE) && defined(SIMDE_FAST_CONVERSION_RANGE) r_.neon_i32 = vcvtnq_s32_f32(a_.neon_f32); - #elif defined(SIMDE_ARM_NEON_A32V7_NATIVE) && defined(SIMDE_FAST_CONVERSION_RANGE) && defined(SIMDE_FAST_ROUND_TIES) + #elif defined(...
Make SELECT_BUCKET the default behavior (if supported in HELLO) Tested-by: Build Bot
#define LCB_DEFAULT_RETRY_NMV_INTERVAL LCB_MS2US(100) #define LCB_DEFAULT_VB_NOGUESS 1 #define LCB_DEFAULT_TCP_NODELAY 1 -#define LCB_DEFAULT_SELECT_BUCKET 0 +#define LCB_DEFAULT_SELECT_BUCKET 1 #include "config.h" #include <libcouchbase/couchbase.h>
[smoke] - Fix teams_notarget_get_team_num. team_id needs to be private to prevent data race.
@@ -13,7 +13,7 @@ int main() { for (int i = 0; i < TOTAL_TEAMS; i++) team_counts[i] = 0; - #pragma omp teams distribute num_teams(TOTAL_TEAMS) + #pragma omp teams distribute num_teams(TOTAL_TEAMS) private(team_id) for(int i = 0; i < n; i++) { team_id = omp_get_team_num(); a[i] = i;
[doc] STM32F103 fake chips (Closes
@@ -78,6 +78,28 @@ to ensure that the rules actually take effect. Using the trigger command means t If the VID:PID of your device doesn't match those in any of the 3 files, then you may need to create a custom rule file to match your VID:PID. +### b) NOTE: Chinese Fake-Chips CKS32F103C8T6 or CS32F103C8T6 being marked a...
Include openxr loader dll when enabled
@@ -642,6 +642,9 @@ if(WIN32) move_dll(${LOVR_MSDF}) move_dll(${LOVR_OCULUS_AUDIO}) move_dll(${LOVR_PHONON}) + if(LOVR_USE_OPENXR AND NOT LOVR_SYSTEM_OPENXR) + move_dll(${LOVR_OPENXR}) + endif() foreach(target ${ALL_PLUGIN_TARGETS}) move_dll(${target}) endforeach()
Made linmath sane for C++ inclusion
#ifndef _LINMATH_H #define _LINMATH_H +#ifdef __cplusplus +extern "C" { +#endif + // Yes, I know it's kind of arbitrary. #define DEFAULT_EPSILON 0.001 @@ -140,4 +144,8 @@ Matrix3x3 inverseM33(const Matrix3x3 mat); void matrix44copy(FLT *mout, const FLT *minm); void matrix44transpose(FLT *mout, const FLT *minm); +#ifdef...
revert unecessary changes by clang-format
@@ -1657,8 +1657,8 @@ static int on_config_listen(h2o_configurator_command_t *cmd, h2o_configurator_co yoml_t **retry_node, **sndbuf, **rcvbuf, **amp_limit, **qpack_encoder_table_capacity, **max_streams_bidi; if (h2o_configurator_parse_mapping( cmd, *quic_node, NULL, - "retry:s,sndbuf:s,rcvbuf:s,amp-limit:s,qpack-encod...
info.c: Fix typos in seed macro name and description string Fixes: CLA: trivial
@@ -131,8 +131,8 @@ DEFINE_RUN_ONCE_STATIC(init_info_strings) #ifdef OPENSSL_RAND_SEED_NONE add_seeds_string("none"); #endif -#ifdef OPENSSL_RAND_SEED_RTDSC - add_seeds_string("stdsc"); +#ifdef OPENSSL_RAND_SEED_RDTSC + add_seeds_string("rdtsc"); #endif #ifdef OPENSSL_RAND_SEED_RDCPU # ifdef __aarch64__
Remove redundant 'RESUME' flag from state machine From tls/s2n_handshake.h, NEGOTIATED and RESUME are equivalent. All of the other entries in the state machine with session resumption do not use this flag. There is nothing functionally wrong with this, but it hurts readability.
@@ -87,7 +87,7 @@ static message_type_t handshakes[64][16] = { [INITIAL] = {CLIENT_HELLO, SERVER_HELLO}, - [NEGOTIATED | RESUME ] = + [NEGOTIATED] = {CLIENT_HELLO, SERVER_HELLO, SERVER_CHANGE_CIPHER_SPEC, SERVER_FINISHED, CLIENT_CHANGE_CIPHER_SPEC, CLIENT_FINISHED, APPLICATION_DATA},
Simplify ruby install from environment.
@@ -67,8 +67,7 @@ sub_python(){ sub_ruby(){ echo "configure ruby" $SUDO_CMD apt-get update - $SUDO_CMD apt-get -y --no-install-recommends install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev software-properties-commo...
Fix issue with drive letter under windows The get_filename_component gets stuck under windows when finding the parent directory for a drive letter. This basically reverts to using the full path, which is more likely to be ok under windows
@@ -63,7 +63,9 @@ function(PYILMBASE_EXTRACT_REL_SITEARCH varname pyver pyexe pysitearch) get_filename_component(_nexedir ${_exedir} DIRECTORY) string(FIND ${pysitearch} ${_nexedir} _findloc) if (_nexedir STREQUAL _exedir) - message(FATAL_ERROR "Unable to get parent directory for ${_exedir}") + message(WARNING "Unable ...
[CUDA] Update README.CUDA with additional information
@@ -3,17 +3,28 @@ features may be missing or incomplete. # Compiling pocl with CUDA support -Add -DENABLE_CUDA=ON to the CMake command-line. +Add `-DENABLE_CUDA=ON` to the CMake command-line. -Assumes libcuda.so is on library search path. (TODO: Get CMake to sort +Assumes `libcuda.so` is on library search path. (TODO: ...
h2olog: check if -t <arg> exists
#include <memory> #include <vector> +#include <unordered_set> #include <algorithm> #include <bcc/BPF.h> extern "C" { @@ -198,6 +199,11 @@ int main(int argc, char **argv) tracer.reset(create_http_tracer()); } + std::unordered_set<std::string> available_usdt_names; + for (const auto &usdt : tracer->usdt_probes()) { + ava...
Fix an incoherent test. Pointer 'o' is set inside a local buffer, so it can't be NULL. Also fix coding style and add comments
@@ -632,6 +632,10 @@ const void *OBJ_bsearch_ex_(const void *key, const void *base_, int num, return p; } +/* + * Parse a BIO sink to create some extra oid's objects. + * Line format:<OID:isdigit or '.']><isspace><SN><isspace><LN> + */ int OBJ_create_objects(BIO *in) { char buf[512]; @@ -653,9 +657,9 @@ int OBJ_create_...
fixup! netutils/webserver : Fix problems from static analysis tool. Add return value check for pthread_attr_init.
@@ -275,7 +275,10 @@ int http_server_start(struct http_server_t *server) return HTTP_ERROR; } - pthread_attr_init(&attr); + if (pthread_attr_init(&attr) != 0) { + HTTP_LOGE("Error: Cannot initialize ptread attribute\n"); + return HTTP_ERROR; + } pthread_attr_setschedpolicy(&attr, SCHED_RR); pthread_attr_setstacksize(&a...
examples/apache: fix for patch
@@ -46,6 +46,7 @@ index bda60827c..a62df4cbf 100644 + saddr.sin_port = htons(8080); + saddr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); + if (connect(myfd, &saddr, sizeof(saddr)) == -1) { ++ close(myfd); + perror("connect"); + continue; + }
[Rust] GUI toolkit respects close request
@@ -288,6 +288,7 @@ impl AwmWindow { fn window_close_requested(&self, event: &WindowCloseRequested) { printf!("Window close requested: {:?}\n", event); + unsafe { axle_rt::libc::exit(0) } } unsafe fn body_as_type_unchecked<T: AwmWindowEvent>(body: &[u8]) -> &T {
Update partial-zero-initialization doc link
@@ -123,7 +123,7 @@ The `1k`, `10k`, etc. numbers are approximately how many bytes there in the decoded output. The `full_init` vs `part_init` suffixes are whether -[`WUFFS_INITIALIZE__LEAVE_INTERNAL_BUFFERS_UNINITIALIZED`](https://github.com/google/wuffs/blob/4080840928c0b05a80cda0d14ac2e2615f679f1a/internal/cgen/base...
Remove old namespace functions from stl.
@@ -676,40 +676,6 @@ int gst_stl_deserialize(Gst *vm) { gst_c_return(vm, ret); } -/****/ -/* Registry */ -/****/ - -/* Get everything in the current namespace */ -int gst_stl_namespace(Gst *vm) { - gst_c_return(vm, gst_wrap_table(vm->registry)); -} - -/* Switch to a new namespace */ -int gst_stl_namespace_set(Gst *vm) ...
another unintended change in snap_red, reverting
@@ -12,8 +12,7 @@ int main (void) int nxyz = 5000; // fails for 149 and above: nxyz=149; // for testing: nxyz = 10; - #pragma omp target teams distribute num_teams(nxyz) thread_limit(5) map(tofrom:aa) - //#pragma omp target teams distribute num_teams(nxyz) thread_limit(ng*(cmom-1)) map(tofrom:aa) + #pragma omp target t...
[hg] release a new version of mercurial This PR releases a new version of mercurial for users. The new version is already released on server few days ago and everything is fine there.
}, "hg": { "formula": { - "sandbox_id": [352339541, 352339637, 350713820], + "sandbox_id": [384697982, 384698485, 350713820], "match": "Hg" }, "executable": {
Use the new OCSP functions in sslapitest.c At the moment we just use the default libctx - but a future PR will add support for running sslapitest with a non-default libctx.
@@ -1278,7 +1278,7 @@ static int ocsp_server_cb(SSL *s, void *arg) return SSL_TLSEXT_ERR_ALERT_FATAL; id = sk_OCSP_RESPID_value(ids, 0); - if (id == NULL || !OCSP_RESPID_match(id, ocspcert)) + if (id == NULL || !OCSP_RESPID_match_ex(id, ocspcert, NULL, NULL)) return SSL_TLSEXT_ERR_ALERT_FATAL; } else if (*argi != 1) { ...