message
stringlengths
6
474
diff
stringlengths
8
5.22k
rename hashs in hmac digest
@@ -110,8 +110,8 @@ static int s2n_sslv3_mac_init(struct s2n_hmac_state *state, s2n_hmac_algorithm a state->xor_pad[i] = 0x5c; } - GUARD(s2n_hash_update(&state->outer, key, klen)); - GUARD(s2n_hash_update(&state->outer, state->xor_pad, state->xor_pad_size)); + GUARD(s2n_hash_update(&state->outer_just_key, key, klen)); ...
fix(menu): use LV_ASSERT_MALLOC check for new_node
@@ -204,6 +204,7 @@ void lv_menu_set_page(lv_obj_t * obj, lv_obj_t * page) /* Add a new node */ lv_ll_t * history_ll = &(menu->history_ll); lv_menu_history_t * new_node = _lv_ll_ins_head(history_ll); + LV_ASSERT_MALLOC(new_node); new_node->page = page; menu->cur_depth++;
disallow copy constructors
@@ -539,6 +539,9 @@ That's all there is to it! with or without zlib * Other notes: * consider mode char options for zlib's internal buffer sizes + +Mark C. Miller, Tue Feb 13 09:40:04 PST 2018 + * explicitly disallow copy constructors on visit_ofstream and visit_ifstream */ #endif @@ -682,6 +685,7 @@ public: }; ~visit_...
Add changelog entry for PR#148.
27 January 2020: Ralph - Merge PR#154; Allow use of libbsd functions with configure option --with-libbsd. By Robert Edmonds and Steven Chamberlain. + - Merge PR#148; Add some TLS stats to unbound_munin_. By Fredrik Pettai. 27 January 2020: Wouter - Merge PR#155 from Robert Edmonds: contrib/libunbound.pc.in: Fixes
Add various socket option names.
@@ -549,6 +549,14 @@ struct sctp_event_subscribe { #define SCTP_DEFAULT_SNDINFO 0x00000021 #define SCTP_DEFAULT_PRINFO 0x00000022 #define SCTP_REMOTE_UDP_ENCAPS_PORT 0x00000024 +#define SCTP_ECN_SUPPORTED 0x00000025 +#define SCTP_PR_SUPPORTED 0x00000026 +#define SCTP_AUTH_SUPPORTED 0x00000027 +#define SCTP_ASCONF_SUPPO...
tests/run-tests: Treat tests in bytecode/ as special.
@@ -72,6 +72,8 @@ def run_micropython(pyb, args, test_file, is_special=False): if test_file.startswith(('cmdline/', base_path('feature_check/'))) or test_file in special_tests: # special handling for tests of the unix cmdline program is_special = True + elif test_file.startswith('bytecode/'): + is_special = True if is_...
corsola: Remove extraneous GPIO define Remove the extraneous GPIO define from gpio_map.h TEST=zmake configure -b {krabby,kingler} BRANCH=none
#include <devicetree.h> #include <gpio_signal.h> -#define GPIO_BATT_PRES_ODL NAMED_GPIO(ec_batt_pres_odl) - #define GPIO_ENTERING_RW GPIO_UNIMPLEMENTED /* daughterboard GPIO remap */
cleanup: removing \n in CPRINTS CPRINTS already appends a \n, so we currently have 2 BRANCH=none TEST=none
@@ -489,7 +489,7 @@ static int anx7447_mux_set(int port, mux_state_t mux_state) cc_direction = mux_state & MUX_POLARITY_INVERTED; mux_type = mux_state & TYPEC_MUX_DOCK; - CPRINTS("mux_state = 0x%x, mux_type = 0x%x\n", mux_state, mux_type); + CPRINTS("mux_state = 0x%x, mux_type = 0x%x", mux_state, mux_type); if (cc_dire...
hw/imc: don't access homer memory if it was not initialised This can happen under mambo, at least.
@@ -154,6 +154,9 @@ static struct imc_chip_cb *get_imc_cb(uint32_t chip_id) struct proc_chip *chip = get_chip(chip_id); struct imc_chip_cb *cb; + if (!chip->homer_base) + return NULL; /* The No Homers Club */ + cb = (struct imc_chip_cb *)(chip->homer_base + P9_CB_STRUCT_OFFSET); if (!is_nest_mem_initialized(cb)) return...
YAwn: Specify deallocation function for parser
@@ -226,7 +226,8 @@ int addToKeySet (CppKeySet & keySet, CppKey & parent, string const & filename) #ifdef ENABLE_ASAN __lsan_disable (); #endif - parser.parse (nextToken, syntaxError, alloc, nullptr, &root, &ambiguousOutput); + // TODO: Free parse tree after YAEP provides a function to do that + parser.parse (nextToken...
workflow/restore_from_mnemonic: split assembling phrase Before, querying the words and assembling the phrase was done in the same loop. Put it into two loops so we can implement the 'edit previous word' functionality more easily.
@@ -113,18 +113,22 @@ static bool _get_mnemonic(char* mnemonic_out) snprintf(num_words_success_msg, sizeof(num_words_success_msg), "Enter %d words", num_words); workflow_status_blocking(num_words_success_msg, true); + char words[WORKFLOW_RESTORE_FROM_MNEMONIC_MAX_WORDS] + [WORKFLOW_TRINARY_INPUT_MAX_WORD_LENGTH + 1] = ...
build: mount git mirror for icheck
@@ -372,7 +372,7 @@ def buildIcheck() { def stage_name = "icheck" return [(stage_name): { stage(stage_name) { - withDockerEnv(DOCKER_IMAGES.stretch) { + withDockerEnv(DOCKER_IMAGES.stretch, [DOCKER_OPTS.MOUNT_MIRROR]) { sh "scripts/run_icheck" deleteDir() }
YANG printer CHANGE avoid empty lines between nodes in compiled output
@@ -1294,7 +1294,7 @@ yprc_node_common1(struct ypr_ctx *ctx, const struct lysc_node *node, int *flag) { unsigned int u; - ly_print(ctx->out, "\n%*s%s %s%s", INDENT, lys_nodetype2str(node->nodetype), node->name, flag ? "" : " {\n"); + ly_print(ctx->out, "%*s%s %s%s", INDENT, lys_nodetype2str(node->nodetype), node->name,...
Fix ScratchPadOnly config
@@ -135,9 +135,9 @@ class LoopbackNICRocketConfig extends Config( // DOC include start: l1scratchpadrocket class ScratchpadOnlyRocketConfig extends Config( new testchipip.WithSerialPBusMem ++ - new freechips.rocketchip.subsystem.WithNMemoryChannels(0) ++ // remove offchip mem port + new chipyard.config.WithL2TLBs(0) ++...
[software] Initialize performance counters in systolic matmul
@@ -53,6 +53,11 @@ void systolic_init(uint32_t const *grid_mapping) { queue_domain_create(alloc, &queues_horz[y][x], QUEUE_SIZE); } ++grid_pos; + // Initialize counters + bm_h_pop_cnt[y][x] = 0; + bm_h_push_cnt[y][x] = 0; + bm_v_pop_cnt[y][x] = 0; + bm_v_push_cnt[y][x] = 0; } } }
Remove msaa check for framebuffer resolve; Since resolve now does MSAA and mips.
@@ -277,7 +277,7 @@ void lovrGraphicsSetCanvas(Canvas** canvas, int count) { lovrAssert(count <= MAX_CANVASES, "Attempt to simultaneously render to %d canvases (the maximum is %d)", count, MAX_CANVASES); - if (state.canvasCount > 0 && state.canvas[0]->flags.msaa > 0) { + if (state.canvasCount > 0) { lovrCanvasResolve(s...
debian/changelog: Fix data format Reported-at: Submitted-at:
-OVN (20.09.90-1) unstable; urgency=low +ovn (20.09.90-1) unstable; urgency=low * New upstream version - -- OVN team <dev@openvswitch.org> Wed 16 Sep 2020 16:48:32 +0530 + -- OVN team <dev@openvswitch.org> Wed, 16 Sep 2020 16:48:32 +0530 -OVN (20.09.0-1) unstable; urgency=low +ovn (20.09.0-1) unstable; urgency=low * Ne...
ctest: include only compiled plugins in storage tests
#include <tests_internal.h> #include <tests_plugin.h> +#include <kdbconfig.h> + /* -- Macros & Test Configuration ------------------------------------------------------------------------------------------------------- */ #define TEST_ROOT_KEY "user/tests/storage" -#define NUM_PLUGINS 2 -KeySet * modules[NUM_PLUGINS]; -...
doc, testing: replace `kdb export` command with `kdb ls` and `kdb get` so that to buildserver accepts the test
@@ -171,18 +171,23 @@ kdb merge -s ours user:/tests/ours user:/tests/theirs user:/tests/base user:/tes The result KeySet, `user:/tests/result` will be: ```sh -kdb export user:/tests/result -#> kdbOpen 2 -#> $key string 4 5 -#> key1 +kdb ls user:/tests/result +#> user:/tests/result/key1 +#> user:/tests/result/key2 +#> u...
aqua: stub out azimuth snapshot in pills It would interfere with aqua's simulation of azimuth.
:: :aqua [%file ~[~bud ~dev] %/sys/vane] :: :aqua [%pause-events ~[~bud ~dev]] :: +::TODO niceties: +:: - %init-ship that lets you overwrite any existing ones, +:: for starting out clean with a new test flow +:: - or maybe just a %full-reset poke? +:: - if ph can't be fast, it should be totally non-interactive +:: - fo...
board/vilboz/board.h: Format with clang-format BRANCH=none TEST=none
/* This I2C moved. Temporarily detect and support the V0 HW. */ extern int I2C_PORT_BATTERY; -enum adc_channel { - ADC_TEMP_SENSOR_CHARGER, - ADC_TEMP_SENSOR_SOC, - ADC_CH_COUNT -}; +enum adc_channel { ADC_TEMP_SENSOR_CHARGER, ADC_TEMP_SENSOR_SOC, ADC_CH_COUNT }; enum battery_type { BATTERY_SMP, @@ -91,19 +87,11 @@ enu...
Limit workspace numbers within 0..INT32_MAX See
@@ -384,8 +384,19 @@ static json_object *ipc_json_describe_scratchpad_output(void) { static void ipc_json_describe_workspace(struct sway_workspace *workspace, json_object *object) { - int num = isdigit(workspace->name[0]) ? atoi(workspace->name) : -1; - + int num; + if (isdigit(workspace->name[0])) { + errno = 0; + cha...
nimble/ll: Fix rx in advertising state This typo caused advertising to break on 1st received req PDU...
@@ -1136,7 +1136,7 @@ ble_ll_rx_start(uint8_t *rxbuf, uint8_t chan, struct ble_mbuf_hdr *rxhdr) rc = ble_ll_conn_rx_isr_start(rxhdr, ble_phy_access_addr_get()); break; #endif -#if MYNEWT_VAL(BLE_LL_ROLE_BROADCASTERL) +#if MYNEWT_VAL(BLE_LL_ROLE_BROADCASTER) case BLE_LL_STATE_ADV: rc = ble_ll_adv_rx_isr_start(pdu_type);...
runtimes/singularity: add libarchive build dependency
@@ -58,6 +58,7 @@ Patch1: singularity-suse-timezone.patch ExclusiveOS: linux BuildRequires: autoconf BuildRequires: automake +BuildRequires: libarchive-devel BuildRequires: libtool BuildRequires: python Requires: file
Fixed global constant declaration (appeared in 9af10e099d09). This fixes building with GCC 10, which is default to -fno-common. See:
@@ -180,7 +180,7 @@ NXT_EXPORT uintptr_t nxt_encode_complex_uri(u_char *dst, u_char *src, size_t length); NXT_EXPORT nxt_bool_t nxt_is_complex_uri_encoded(u_char *s, size_t length); -NXT_EXPORT const uint8_t nxt_hex2int[256]; +extern const uint8_t nxt_hex2int[256]; #endif /* _NXT_STRING_H_INCLUDED_ */
RAND_POOL: Add missing implementations for djgpp Calling the functions rand_pool_add_{additional,nonce}_data() in crypto/rand/rand_lib.c with no implementation for djgpp/MSDOS causees unresolved symbols when linking with djgpp. Reported and fixed by Gisle Vanem
#if defined(__OpenBSD__) || defined(__NetBSD__) # include <sys/param.h> #endif -#ifdef OPENSSL_SYS_UNIX + +#if defined(OPENSSL_SYS_UNIX) || defined(__DJGPP__) # include <sys/types.h> # include <unistd.h> # include <sys/time.h> @@ -70,7 +71,7 @@ static uint64_t get_timer_bits(void); # define OSSL_POSIX_TIMER_OKAY # endi...
cr50: use SYSTEM_IMAGE_RW instead of SYSTEM_IMAGE_RW_A Cr50 branches did not cherry pick the patch which introduced the SYSTEM_IMAGE_RW_A enum, let's use SYSTEM_IMAGE_RW instead as the rest of Cr50 code does. BRANCH=none TEST=make buildall
@@ -38,10 +38,10 @@ static int inactive_image_is_guc_image(void) enum system_image_copy_t inactive_copy; const struct SignedHeader *other; - if (system_get_image_copy() == SYSTEM_IMAGE_RW_A) + if (system_get_image_copy() == SYSTEM_IMAGE_RW) inactive_copy = SYSTEM_IMAGE_RW_B; else - inactive_copy = SYSTEM_IMAGE_RW_A; + ...
crypto/e_aes.c: use S390X_AES_FC macro ... to compute s390x aes function code from keylength.
@@ -1734,8 +1734,7 @@ static int s390x_aes_gcm_init_key(EVP_CIPHER_CTX *ctx, keylen = EVP_CIPHER_CTX_key_length(ctx); memcpy(&gctx->kma.param.k, key, keylen); - /* Convert key size to function code. */ - gctx->fc = S390X_AES_128 + (((keylen << 3) - 128) >> 6); + gctx->fc = S390X_AES_FC(keylen); if (!enc) gctx->fc |= S3...
Plugin Process: Update man page
.\" generated with Ronn/v0.7.3 .\" http://github.com/rtomayko/ronn/tree/0.7.3 . -.TH "ELEKTRA\-LIBS" "7" "October 2017" "" "" +.TH "ELEKTRA\-LIBS" "7" "January 2018" "" "" . .SH "NAME" \fBelektra\-libs\fR \- libs overview @@ -36,6 +36,20 @@ libelektra\-plugin\.so .P \fBlibplugin \fIplugin/\fR\fR contains \fBelektraPlug...
tools: fix cmake url
"linux-amd64": { "sha256": "97bf730372f9900b2dfb9206fccbcf92f5c7f3b502148b832e77451aa0f9e0e6", "size": 43877847, - "url": "https://github.com/Kitware/CMake/releases/download/v3.20.3/cmake-3.20.3-Linux-x86_64.tar.gz" + "url": "https://github.com/Kitware/CMake/releases/download/v3.20.3/cmake-3.20.3-linux-x86_64.tar.gz" }...
input: support alias name for metrics
@@ -164,14 +164,6 @@ struct flb_input_instance *flb_input_new(struct flb_config *config, instance->mem_buf_limit = 0; instance->mem_chunks_size = 0; - /* Metrics */ -#ifdef FLB_HAVE_METRICS - instance->metrics = flb_metrics_create(instance->name); - if (instance->metrics) { - flb_metrics_add(FLB_METRIC_N_RECORDS, "reco...
WinPhone build script update
@@ -5,7 +5,7 @@ from build.sdk_build_utils import * WINPHONE10_ARCHS = ['x86', 'x64', 'ARM'] -DEFAULT_MSBUILD = "C:/Program Files (x86)/MSBuild/14.0/Bin/msbuild.exe" +DEFAULT_MSBUILD = "C:/Program Files (x86)/MSBuild/15.0/Bin/msbuild.exe" def msbuild(args, dir, *cmdArgs): return execute(args.msbuild, dir, *cmdArgs)
[core] attempt to quiet compiler warning in LEDE
@@ -113,7 +113,8 @@ static int li_rand_device_bytes (unsigned char *buf, int num) ssize_t rd = 0; #ifdef RNDGETENTCNT int entropy; - if (0 == ioctl(fd, RNDGETENTCNT, &entropy) && entropy >= num*8) + if (0 == ioctl(fd, (unsigned long)(RNDGETENTCNT), &entropy) + && entropy >= num*8) #endif rd = read(fd, buf, (size_t)num)...
Checking the result of shared memory buffer allocation. This closes issue on GitHub.
@@ -328,6 +328,9 @@ nxt_controller_conf_send(nxt_task_t *task, nxt_conf_value_t *conf, size = nxt_conf_json_length(conf, NULL); b = nxt_port_mmap_get_buf(task, router_port, size); + if (nxt_slow_path(b == NULL)) { + return NXT_ERROR; + } b->mem.free = nxt_conf_json_print(b->mem.free, conf, NULL);
esp_flash: increase the timeout for block erase
static const char TAG[] = "chip_generic"; #define SPI_FLASH_GENERIC_CHIP_ERASE_TIMEOUT 4000 -#define SPI_FLASH_GENERIC_SECTOR_ERASE_TIMEOUT 500 -#define SPI_FLASH_GENERIC_BLOCK_ERASE_TIMEOUT 1000 +#define SPI_FLASH_GENERIC_SECTOR_ERASE_TIMEOUT 500 //according to GD25Q127 + 100ms +#define SPI_FLASH_GENERIC_BLOCK_ERASE_T...
Don't dereference a NULL pointer. This was found by Coverity in CID 203808.
#ifdef __FreeBSD__ #include <sys/cdefs.h> -__FBSDID("$FreeBSD: head/sys/netinet/sctp_indata.c 328066 2018-01-16 21:58:38Z tuexen $"); +__FBSDID("$FreeBSD: head/sys/netinet/sctp_indata.c 333304 2018-05-06 14:19:50Z tuexen $"); #endif #include <netinet/sctp_os.h> @@ -3599,7 +3599,9 @@ sctp_strike_gap_ack_chunks(struct sc...
Add more test coverage to parsing entry points.
@@ -487,6 +487,46 @@ void lily_covlib__cover_misc_api(lily_state *s) if (lily_mb_pos(msgbuf) != 8) lily_RuntimeError(s, "Msgbuf pos failed."); } + { + lily_config config2; + lily_config_init(&config2); + + lily_state *subinterp = lily_new_state(&config2); + int failed = 0; + + /* Running without content should return 0...
zephyr/projects/nissa/src/nereid/keyboard.c: Format with clang-format BRANCH=none TEST=none
@@ -22,8 +22,8 @@ static const struct ec_response_keybd_config nereid_kb_legacy = { .capabilities = KEYBD_CAP_SCRNLOCK_KEY, }; -__override const struct ec_response_keybd_config -*board_vivaldi_keybd_config(void) +__override const struct ec_response_keybd_config * +board_vivaldi_keybd_config(void) { return &nereid_kb_le...
build: document use of ares.cachix.org in the top-level README
@@ -36,7 +36,10 @@ If you're interested in Urbit development, keep reading. ## Development -[![Build Status](https://travis-ci.org/urbit/urbit.svg?branch=master)][trav] +[![License][license-badge]][license] +[![Build][build-badge]][build] +[![Nix][nix-badge]][nix] +[![Cachix][cachix-badge]][cachix] Urbit uses [Nix][nix...
Remove dead link pointing to blocked webpage
* along with Process Hacker. If not, see <http://www.gnu.org/licenses/>. */ -/* - * This file contains functions to load and retrieve information for image files (exe, dll). The - * file format for image files is explained in the PE/COFF specification located at: - * - * http://www.microsoft.com/whdc/system/platform/fi...
add job name to suplerlu tests
@@ -23,7 +23,7 @@ ARGS=null flunk "$EXE binary does not exit" fi - run_serial_binary $EXE + run_serial_binary -j "superlu-c $LMOD_FAMILY_COMPILER" $EXE assert_success } @@ -33,6 +33,6 @@ ARGS=null flunk "$EXE binary does not exit" fi - run_serial_binary "$EXE < g20.rua" + run_serial_binary -j "superlu-f77 $LMOD_FAMILY_...
See if that makes a difference
@@ -84,6 +84,42 @@ project(ccl) include(UseSWIG) find_package(PythonInterp) + # Introspect the python to get the correct environment + execute_process(COMMAND "${PYTHON_EXECUTABLE}" "-c" +"from distutils import sysconfig as s;import sys;import struct; +print('.'.join(str(v) for v in sys.version_info)); +print(s.PREFIX)...
Only create filtered event lists in Add Command Buttons when open
@@ -230,7 +230,7 @@ class AddCommandButton extends Component { render() { const { query, open, selectedIndex, pasteMode } = this.state; const { onPaste } = this.props; - const actionsList = this.filteredList(); + const actionsList = open && this.filteredList(); return ( <div ref={this.button} className="AddCommandButto...
update README with info regarding building toolchain
This repository contains the source for the Phoenix-RTOS microkernel. IA32, ARM, ARMv7, RISCV64 architectures are supported. +## Building toolchain +To build cross-compile toolchain use `toolchain/build-toolchain.sh` script. +Targets supported currently by the script: +- i386-pc-phoenix +- arm-phoenix + +Sample invocat...
test-suite: update default gnu family to gnu8
@@ -58,12 +58,12 @@ AC_ARG_ENABLE([psxe], # Default MPI families to test if test x$enable_psxe = xyes ;then AC_MSG_RESULT([yes]) - AC_SUBST(COMPILER_FAMILIES,["gnu7 intel"]) + AC_SUBST(COMPILER_FAMILIES,["gnu8 intel"]) AC_SUBST(MPI_FAMILIES,["mpich mvapich2 openmpi3 impi"]) AC_SUBST(PYTHON_FAMILIES,["python2 python3"])...
sse2: add WASM implementation of _mm_unpackhi_pd Fixes
@@ -6807,6 +6807,8 @@ simde_mm_unpackhi_pd (simde__m128d a, simde__m128d b) { float64x1_t a_l = vget_high_f64(a_.f64); float64x1_t b_l = vget_high_f64(b_.f64); r_.neon_f64 = vcombine_f64(a_l, b_l); + #elif defined(SIMDE_WASM_SIMD128_NATIVE) + r_.wasm_v128 = wasm_v64x2_shuffle(a_.wasm_v128, b_.wasm_v128, 1, 3); #elif de...
cli: Validate cli_file_index on quit command VPP crash happens with 'vppctl quit quit' command. The 2nd quit command tries to access the file index which is already freed by the first quit. This can be avoided to validate cli_file_index.
@@ -2489,6 +2489,10 @@ unix_cli_kill (unix_cli_main_t * cm, uword cli_file_index) clib_file_t *uf; int i; + /* Validate cli_file_index */ + if (pool_is_free_index (cm->cli_file_pool, cli_file_index)) + return; + cf = pool_elt_at_index (cm->cli_file_pool, cli_file_index); uf = pool_elt_at_index (fm->file_pool, cf->clib_...
Add support for non-transforming Stroke. The line width should not subject to transformation (but should respect DPI). Fixing the Stroke so that it does not apply the transformation to the stroke, but respect the DPI values (e.g thicker/thinner).
@@ -82,7 +82,7 @@ struct __CGContextDrawingState { // Strokes ComPtr<ID2D1Brush> strokeBrush{ nullptr }; - D2D1_STROKE_STYLE_PROPERTIES strokeProperties{ + D2D1_STROKE_STYLE_PROPERTIES1 strokeProperties{ D2D1_CAP_STYLE_FLAT, D2D1_CAP_STYLE_FLAT, D2D1_CAP_STYLE_FLAT, @@ -90,12 +90,13 @@ struct __CGContextDrawingState { ...
JSON parser: fix String initialization with nullptr
@@ -315,7 +315,7 @@ String CJSONEntry::getStringObject( const char* name, const char* szDefValue ) } else { const char* str = json_object_get_string(obj); - return String(str); + return String((0==str)?szDefValue:str); } } else if (szDefValue != 0 ) @@ -336,7 +336,7 @@ String CJSONEntry::getStringObject() } else { cons...
Fix flake8 E111: indentation is not a multiple of 4
@@ -10,10 +10,9 @@ testpaths = pysam tests [flake8] max-line-length = 100 max-complexity = 23 -extend-ignore = E111, E117, E124, E125, E201, E202, E211, E225, E231, E265, E266, E302, E303, E305, E402, E501, E713, E722, E741, F403, F405, F811, F821, F841, W291, W293, W391, W605 +extend-ignore = E117, E124, E125, E201, E...
network: verbose message for failed host
@@ -247,7 +247,7 @@ int flb_net_tcp_fd_connect(flb_sockfd_t fd, char *host, unsigned long port) snprintf(_port, sizeof(_port), "%lu", port); ret = getaddrinfo(host, _port, &hints, &res); if (ret != 0) { - flb_error("net_tcp_connect: Can't get addr info"); + flb_error("net_tcp_connect: Can't get addr info %s", host); re...
doc: update SKL NUC patch download instructions Include a line of script that download and untars the patch files
@@ -60,7 +60,7 @@ Please follow the :ref:`getting-started-apl-nuc`, with the following changes: $ git clone https://github.com/projectacrn/acrn-hypervisor $ cd acrn-hypervisor $ git checkout acrn-2018w39.6-140000p - $ tar xf ~/Downloads/skl-patches-for-acrn.tar + $ curl https://projectacrn.github.io/latest/_static/down...
frsky: switch antenna less frequently
@@ -485,7 +485,7 @@ static uint8_t frsky_d_handle_packet() { frames_lost++; frame_index++; } - if (frames_lost >= 1) { + if (frames_lost >= 2) { cc2500_switch_antenna(); } if (frames_lost >= MAX_MISSING_FRAMES) {
DEV: Poll improve backoff
@@ -50,11 +50,13 @@ void DEV_DeadStateHandler(Device *device, const Event &event); using namespace deCONZ::literals; constexpr int MinMacPollRxOn = 8000; // 7680 ms + some space for timeout +constexpr int MaxPollItemRetries = 3; struct PollItem { explicit PollItem(const Resource *r, const ResourceItem *i) : resource(r)...
system: Allow sysjump command to jump to RW_B This patch also removes an extra newline character from the printf in system_can_boot_ap. BRANCH=none TEST=make buildall
@@ -989,6 +989,12 @@ static int command_sysjump(int argc, char **argv) * updated to use "RW". */ return system_run_image_copy(SYSTEM_IMAGE_RW); + } else if (!strcasecmp(argv[1], "B")) { +#ifdef CONFIG_RW_B + return system_run_image_copy(SYSTEM_IMAGE_RW_B); +#else + return EC_ERROR_PARAM1; +#endif } else if (!strcasecmp...
chip/npcx/lpc.c: Format with clang-format BRANCH=none TEST=none
@@ -260,15 +260,13 @@ static void lpc_send_response(struct host_cmd_handler_args *args) } /* New-style response */ - lpc_host_args->flags = - (host_cmd_flags & ~EC_HOST_ARGS_FLAG_FROM_HOST) | + lpc_host_args->flags = (host_cmd_flags & ~EC_HOST_ARGS_FLAG_FROM_HOST) | EC_HOST_ARGS_FLAG_TO_HOST; lpc_host_args->data_size =...
Fixed minor optimization issue
@@ -406,7 +406,7 @@ namespace carto { bool found = false; for (std::size_t i = 0; i < localPackages.size(); i++) { if (localPackages[i]->getTileMask()->getTileStatus(MapTile(x, y, zoom, 0)) == PackageTileStatus::PACKAGE_TILE_STATUS_FULL) { - std::rotate(localPackages.begin(), localPackages.begin() + 1, localPackages.be...
GRIB2: concept 'units' should be read-only
@@ -11,9 +11,9 @@ concept shortNameLegacyECMF(defaultShortName,"shortName.legacy.def",conceptsMast concept shortNameECMF (shortNameLegacyECMF,"shortName.def",conceptsMasterDir,conceptsLocalDirECMF): no_copy,dump; concept ls.shortName (shortNameECMF,"shortName.def",conceptsDir2,conceptsDir1): no_copy,dump; -concept unit...
CI: update to ccache 4.6.2
@@ -115,9 +115,9 @@ jobs: # Install in /usr/bin so the ccache action gets the expected environment. - name: install ccache run: | - wget -nv https://github.com/ccache/ccache/releases/download/v4.6.1/ccache-4.6.1-linux-x86_64.tar.xz - sudo tar xf ccache-4.6.1-linux-x86_64.tar.xz -C /usr/bin --strip-components=1 --no-sam...
[kernel] add level arm notation
@@ -60,13 +60,18 @@ void Lagrangian2d2DR::computeJachq(SiconosVector& q, SiconosVector& z) double Ty = - Nx; + double lever_arm_x = G1x-Px ; + double lever_arm_y = G1y-Py ; + DEBUG_PRINTF("lever_arm_x = %4.2e,\t lever_arm_ y = %4.2e\n", lever_arm_x, lever_arm_y); + _jachq->setValue(0,0,Nx); _jachq->setValue(0,1,Ny); - ...
display: number of lines
@@ -151,8 +151,8 @@ static void display_displayLocked(honggfuzz_t * hfuzz) MX_SCOPED_LOCK(logMutexGet()); display_put(ESC_NAV(13, 1) ESC_CLEAR_ABOVE ESC_NAV(1, 1)); - display_put("----------------------------[ " ESC_BOLD "%s v%s" ESC_RESET - " ]---------------------------\n", PROG_NAME, PROG_VERSION); + display_put("--...
zephyr/projects/corsola/src/variant_db_detection.c: Format with clang-format BRANCH=none TEST=none
@@ -42,8 +42,7 @@ static void corsola_db_config(enum corsola_db_type type) gpio_enable_dt_interrupt( GPIO_INT_FROM_NODELABEL(int_x_ec_gpio2)); /* EC_X_GPIO3 */ - gpio_pin_configure_dt( - GPIO_DT_FROM_ALIAS(gpio_usb_c1_dp_in_hpd), + gpio_pin_configure_dt(GPIO_DT_FROM_ALIAS(gpio_usb_c1_dp_in_hpd), GPIO_OUTPUT_LOW); retur...
Fix AddonRepair
@@ -13,8 +13,8 @@ public unsafe struct AddonRepair [FieldOffset(0x228)] public AtkTextNode* UnusedText1; // Top right corner [FieldOffset(0x230)] public AtkTextNode* JobLevel; [FieldOffset(0x238)] public AtkImageNode* JobIcon; - [FieldOffset(0x240)] public AtkTextNode JobName; - [FieldOffset(0x248)] public AtkTextNode ...
increase default timegap value
@@ -742,7 +742,7 @@ if((rawhandshakeliste != NULL) && (hccapxrawoutname != NULL)) zeiger = rawhandshakeliste; for(c = 0; c < rawhandshakecount; c++) { - if((zeiger->tv_diff <= maxtvdiff *10000) && (zeiger->rc_diff <= maxrcdiff)) + if((zeiger->tv_diff <= maxtvdiff *1000000) && (zeiger->rc_diff <= maxrcdiff)) { writehcca...
try to fix openocd path
@@ -150,6 +150,7 @@ if [ "$FASTINSTALL" = "false" ]; then echo "Skipping RISC-V OpenOCD" else echo "Building RISC-V OpenOCD" + cd "$CHIPYARD_DIR/toolchains/$TOOLCHAIN" check_version automake 1.14 "OpenOCD build" check_version autoconf 2.64 "OpenOCD build" build_project riscv-openocd --prefix=$RISCV --enable-remote-bitb...
sys/console: Decouple line buffers from console history entries Console history will just keep pointers to "external" buffers. This will make easier to move history elements.
@@ -261,23 +261,30 @@ del_char(char *pos, uint16_t end) } #if MYNEWT_VAL(CONSOLE_HISTORY) -struct console_hist { - struct console_input buffer[MYNEWT_VAL(CONSOLE_HISTORY_SIZE)]; +static char console_hist_lines[ MYNEWT_VAL(CONSOLE_HISTORY_SIZE) ][ MYNEWT_VAL(CONSOLE_MAX_INPUT_LEN) ]; + +static struct console_hist { uint...
targer_opset check
@@ -670,8 +670,10 @@ def convert_to_onnx_object(model, export_parameters=None, **kwargs): "There is no trained model to use save_model(). Use fit() to train model. Then use this method.") for kwarg in kwargs: - if kwarg == 'target_opset' and (kwargs[kwarg] != 2 or kwargs[kwarg] is not None): + if kwarg == 'target_opset...
sysdeps/managarm: handle all poll events
@@ -1112,13 +1112,17 @@ int sys_poll(struct pollfd *fds, nfds_t count, int timeout, int *num_events) { for(nfds_t i = 0; i < count; i++) { int mask = 0; - if(fds[i].events & ~(POLLIN | POLLOUT)) + if(fds[i].events & ~(POLLIN | POLLPRI | POLLOUT | POLLRDHUP | POLLERR | POLLHUP | POLLNVAL)) mlibc::infoLogger() << "\e[31m...
Set default program mode to flash
@@ -74,15 +74,9 @@ LMS_Programing_wxgui::LMS_Programing_wxgui(wxWindow* parent, wxWindowID id, cons cmbDevice->SetSelection(cmbDevice->Append(_T("Altera FPGA"))); FlexGridSizer7->Add(cmbDevice, 1, wxEXPAND | wxALIGN_LEFT | wxALIGN_TOP, 5); cmbProgMode = new wxChoice(this, ID_CHOICE1, wxDefaultPosition, wxSize(176, -1),...
only consider ohpc/meta-packages in listpatterns
@@ -6,7 +6,7 @@ rm -f ${logfile}.* echo ++++ search and log OpenHPC patterns if [ -e /etc/redhat-release ];then - repoquery ohpc* --queryformat='%{Name} %{Group} %{Summary}' | grep ohpc/meta-package | cut -d' ' -f1,3- | sort >> ${logfile}.all + repoquery ohpc* --queryformat='%{Name} %{Group} %{Summary}' | grep ohpc/met...
fixed apple strdupa
#include <time.h> #include <unistd.h> #include <sys/types.h> +#ifdef __APPLE__ +#define strdupa strdup +#include <libgen.h> +#else +#include <stdio_ext.h> +#endif #include "include/version.h" #include "include/byteops.c"
Downgrade to CMake 3.11.0.
@@ -12,7 +12,6 @@ pushd "$DEPS_DIR" if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get -qq update sudo apt-get install --no-install-recommends \ - cmake \ doxygen \ graphviz \ python-dev \ @@ -29,13 +28,17 @@ pushd "$DEPS_DIR" if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update brew install \ - swig \ lua fi - # In...
doc: fix link + move text block
@@ -15,10 +15,6 @@ The API supports all CORBA Basic Data Types, except for `wchar`, as well as the First you have to add `elektra-highlevel`, `elektra-kdb` and `elektra-ease` to the linked libraries of your application. To be able to use it in your source file, just include the main header with `#include <elektra.h>` a...
honggfuzz: check and set RLIMIT_NOFILE
#include <stdlib.h> #include <string.h> #include <sys/mman.h> +#include <sys/resource.h> +#include <sys/time.h> #include <time.h> #include <unistd.h> @@ -72,6 +74,25 @@ void sigHandler(int sig) { ATOMIC_SET(sigReceived, sig); } +static void setupRLimits(void) { + struct rlimit rlim; + if (getrlimit(RLIMIT_NOFILE, &rlim...
Leaf: Remove useless comment from macro
@@ -26,7 +26,7 @@ using CppKey = kdb::Key; elektraModulesInit (modules.getKeySet (), 0); \ CppKey parent{ parentName, KEY_VALUE, filepath, KEY_END }; \ Plugin * plugin = elektraPluginOpen ("leaf", modules.getKeySet (), config.getKeySet (), *parent); \ - exit_if_fail (plugin != NULL, "Could not open leaf plugin"); //! O...
sensors/lis2dh12: Minor change to also support lis2dk10 Change CTRL_REG0 register access to read-modify-write so that reserved bits are not modified. This allows the driver to be used with lis2dk10.
@@ -640,13 +640,20 @@ int lis2dh12_pull_up_disc(struct sensor_itf *itf, uint8_t disconnect) { uint8_t reg; + int rc; - reg = 0; + rc = lis2dh12_readlen(itf, LIS2DH12_REG_CTRL_REG0, &reg, 1); + if (rc) { + goto err; + } + + reg &= ~LIS2DH12_CTRL_REG0_SPD; + reg |= (disconnect ? LIS2DH12_CTRL_REG0_SPD : 0); - reg |= ((di...
more some weak candidate improvements
@@ -30,6 +30,7 @@ static int thisyear; static bool netgearflag; static bool askeyarrisflag; static bool digit10flag; +static bool hb5flag; static bool podaflag; static bool phomeflag; static bool tendaflag; @@ -1267,7 +1268,8 @@ static char essidtmp[PSKSTRING_LEN_MAX] = {}; if(essidlen < 7) return; if(memcmp(essid, hot...
OcAppleSecureBootLib: Fix policy data types
@@ -34,15 +34,15 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. STATIC BOOLEAN mSbAvailable = TRUE; -STATIC UINT32 mSbPolicy = AppleImg4SbModeMedium; -STATIC UINT32 mSbWindowsPolicy = 1; +STATIC UINT8 mSbPolicy = AppleImg4SbModeMedium; +STATIC UINT8 mSbWindowsPolicy = 1; STATIC BOOLEAN...
cttp: do not add ampersand before first url query var
@@ -362,7 +362,7 @@ _cttp_mcut_pork(c3_c* buf_c, c3_w len_w, u3_noun pok) /* _cttp_mcut_quay(): measure/cut query. */ static c3_w -_cttp_mcut_quay(c3_c* buf_c, c3_w len_w, u3_noun quy) +_cttp_mcut_quay(c3_c* buf_c, c3_w len_w, u3_noun quy, int amp) { if ( u3_nul == quy ) { return len_w; @@ -373,12 +373,17 @@ _cttp_mcut...
Add missing parameter to the documented interface. cr_(assert/expect)_mem_(n)eq are implemented by calls to cr_assert_mem_op_va_. But while the documentation of cr_(assert/expect)_mem_neq contains the third parameter Size, the documentation for cr_(assert/expect)_mem_eq does not. This fix only touches the "declaration"...
* * @param[in] Actual Array to test * @param[in] Expected Expected array + * @param[in] Size Number of bytes to check * @param[in] FormatString (optional) printf-like format string * @param[in] ... (optional) format string parameters * *****************************************************************************/ -#def...
Use early return when type checking function calls This is a purely stylistic change.
@@ -794,7 +794,12 @@ function Checker:check_exp_synthesize(exp) exp.exp = self:check_exp_synthesize(exp.exp) local f_type = exp.exp._type - if f_type._tag == "types.T.Function" then + if f_type._tag ~= "types.T.Function" then + type_error(exp.loc, + "attempting to call a %s value", + types.tostring(exp.exp._type)) + en...
config-tools: allocate the first unused bar for vmsix A vmsix supported passthrough device expects the first unused bar region for vmsix. Pop the first unused_bar_index in gpa.py instead. Reference code: init_vmsix_on_msi of hypervisor\dm\vpci\vmsix_on_msi.c
@@ -137,6 +137,12 @@ def insert_pt_devs_to_dev_dict(board_etree, vm_node_etree, devdict_32bits, devdi devdict_64bits[(f"{dev_name}", f"{bar_region}")] = int(bar_len, 16) def insert_vmsix_to_dev_dict(pt_dev_node, devdict): + """ + Allocate an unused mmio window for the first free bar region of a vmsix supported passthro...
Fix path to oauth atoms.
+12.q =+ ^= ato %- sky - [[151 %noun] %cx (en-beam root-beak [%atom [%hoon (flop %_(dom . sec+dom))]])] + [[151 %noun] %cx (en-beam root-beak [%atom (flop %_(dom . sec+dom))])] =+ key=?~(ato '' ;;(@t u.ato)) :: XX jael =. key ?~ key ''
Add spec plugin to elektraDefaultGlobalConfig for MINGW32 builds
@@ -337,13 +337,11 @@ KeySet * elektraDefaultGlobalConfig (KeySet * keys) "pregetstorage procgetstorage postgetstorage", KEY_END), keyNew ("system:/elektra/globalplugins/postcommit/user/placements/set", KEY_VALUE, "presetstorage precommit postcommit", KEY_END), -#ifndef __MINGW32__ keyNew ("system:/elektra/globalplugin...
remove scrollbars from launch
import React from 'react'; import Helmet from 'react-helmet'; +import styled from 'styled-components'; import { Box, Row, Icon, Text, Center } from '@tlon/indigo-react'; import { uxToHex, adjustHex } from '~/logic/lib/util'; @@ -12,6 +13,14 @@ import Tile from './components/tiles/tile'; import Welcome from './component...
st-flash: respect --connect-under-reset option when opening USB connection
@@ -61,7 +61,9 @@ int main(int ac, char** av) { printf("st-flash %s\n", STLINK_VERSION); - sl = stlink_open_usb(o.log_level, 1, (char *)o.serial, o.freq); + sl = stlink_open_usb(o.log_level, + o.connect_under_reset ? 2 : 1, + (char *)o.serial, o.freq); if (sl == NULL) { return(-1); }
Correctly include psa/crypto.h in query_config.fmt
/* * Include all the headers with public APIs in case they define a macro to its - * default value when that configuration is not set in the mbedtls_config.h. + * default value when that configuration is not set in mbedtls_config.h, or + * for PSA_WANT macros, in case they're auto-defined based on mbedtls_config.h + * ...
Component/bt: fix get PID key error
@@ -784,7 +784,10 @@ bt_status_t btc_storage_get_bonded_ble_devices_list(esp_ble_bond_dev_t *bond_dev //resolve the peer device irk if (_btc_storage_get_ble_bonding_key(&bd_addr, BTM_LE_KEY_PID, buffer, sizeof(tBTM_LE_PID_KEYS)) == BT_STATUS_SUCCESS) { bond_dev->bond_key.key_mask |= ESP_BLE_ID_KEY_MASK; - memcpy(&bond_...
Fix wrong statement in documentation about the write function in YR_STREAM.
@@ -184,7 +184,7 @@ that needs to be written to the stream. In both cases ``size`` is the size of each element being read or written and ``count`` the number of elements. The total size of the data being read or written is ``size`` * ``count``. The ``read`` function must return the number of elements read, the ``write`...
Don't explicitly initialize to NULL if assignment follows right after
*/ static const BIGNUM *s2n_get_Ys_dh_param(struct s2n_dh_params *dh_params) { - const BIGNUM *Ys = NULL; + const BIGNUM *Ys; /* DH made opaque in Openssl 1.1.0 */ #if S2N_OPENSSL_VERSION_AT_LEAST(1,1,0) && !defined(LIBRESSL_VERSION_NUMBER) @@ -50,7 +50,7 @@ static const BIGNUM *s2n_get_Ys_dh_param(struct s2n_dh_params...
Fix double-free in _yr_ac_state_destroy
@@ -234,10 +234,10 @@ static int _yr_ac_state_destroy( YR_AC_MATCH_LIST_ENTRY* next = match->next; if (match->xref > 0) - match->xref--; - - if (match->xref == 0) + { + if (match->xref-- == 0) yr_free(match); + } match = next; } @@ -888,7 +888,8 @@ int yr_ac_add_string( state = next_state; } - YR_AC_MATCH_LIST_ENTRY* n...
Fix bug introduced with last commit
@@ -13757,7 +13757,7 @@ sctp_lower_sosend(struct socket *so, /* Use a local copy to have a consistent view. */ sndrcvninfo_buf = asoc->def_send; sndrcvninfo = &sndrcvninfo_buf; - sinfo_flags = srcv->sinfo_flags; + sinfo_flags = sndrcvninfo->sinfo_flags; #if defined(__FreeBSD__) && !defined(__Userspace__) if (flags & MS...
use 768 instead of 512 for DAGMAXRANKINCREASE.
#define MAXDAGRANK 0xffff #define DEFAULTDAGRANK MAXDAGRANK #define MINHOPRANKINCREASE 256 // default value in RPL and Minimal 6TiSCH draft -#define DAGMAXRANKINCREASE 512 // per RFC6550 https://tools.ietf.org/html/rfc6550#section-8.2.2.4 point 3 +#define DAGMAXRANKINCREASE 768 // per RFC6550 https://tools.ietf.org/htm...
naive: listen to %resend timer
++ on-arvo |= [=wire =sign-arvo] ^- (quip card _this) + ?+ wire (on-arvo:def wire sign-arvo) + [%timer ~] ?+ +<.sign-arvo (on-arvo:def wire sign-arvo) %wake =^(cards state on-timer:do [cards this]) == + :: + [%resend @ @ ~] + =/ [address=@ux nonce=@ud] + [(slav %ux i.t.wire) (rash i.t.t.wire dem)] + ?+ +<.sign-arvo (on...
fix click targets of openers on both chrome and firefox esr
.ExplorerView ul li.category.folded > span.item {} /* Unfolded */ .ExplorerView ul li.category:not(.folded) > span.item > .opener { - width: 1em; - height: 25px; - margin-top: -7px; - padding-right: 15px; - transform: rotate(90deg); - transform-origin: left center; + margin-top: 5px; + mask-position: bottom left; + bac...
BugiD:17646749:[coap] modify report mid topic
@@ -329,6 +329,8 @@ static void iotx_coap_mid_rsphdl(void *arg, void *p_response) static int coap_report_func(void *handle, const char *topic_name,int req_ack,void *data, int len) { iotx_message_t message; + char coap_topic[100] = {0}; + memset(&message ,0 , sizeof(iotx_message_t)); message.p_payload = (unsigned char *...
[Cita][#1193]update Maekfile
-# Source and Objects - SOURCES = $(wildcard *.c) OBJECTS_DIR = $(BOAT_BUILD_DIR)/sdk/protocol/boatcita OBJECTS = $(patsubst %.c,$(OBJECTS_DIR)/%.o,$(SOURCES)) - -all: $(OBJECTS_DIR) $(OBJECTS) - +all: $(OBJECTS_DIR) $(OBJECTS) protos-objects $(OBJECTS_DIR): $(BOAT_MKDIR) -p $(OBJECTS_DIR) @@ -15,6 +11,9 @@ $(OBJECTS_D...
HW: Adding check for git executable to hardware/Makefile
@@ -81,9 +81,15 @@ check_donut_settings: echo "Please source donut_settings before calling make!"; \ exit 1; \ fi - @cd $(DONUT_HARDWARE_ROOT); if [ -z `git describe HEAD` ]; then \ - echo "DONUT_HARDWARE_ROOT ($(DONUT_HARDWARE_ROOT)) does not belong to a git repository."; \ - echo "Please check out the SNAP framework ...
Update DLL version for libcups2.
:: Script to copy dependent DLLs to the named build directory -copy packages\libcups2_native.redist.2.4.0-b4\build\native\bin\x64\Debug\*.dll %1 +copy packages\libcups2_native.redist.2.4.0-b5\build\native\bin\x64\Debug\*.dll %1 copy packages\libjpeg-turbo-v142.2.0.4.3\build\native\bin\x64\v142\Debug\*.dll %1 copy packa...
Adding VS project filter with OTA agent
<ClCompile Include="..\..\..\common\mqtt\iot_demo_mqtt.c"> <Filter>application_code\common_demos\source</Filter> </ClCompile> + <ClCompile Include="..\..\..\..\lib\ota\aws_iot_ota_agent.c" /> <ClCompile Include="..\..\..\..\lib\ota\aws_iot_ota_agent.c"> <Filter>lib\aws\ota</Filter> </ClCompile> - <ClCompile Include=".....