message
stringlengths
6
474
diff
stringlengths
8
5.22k
fix server ticks atomic modify
@@ -608,7 +608,8 @@ server_queuereader(void *d) __sync_add_and_fetch(&(self->dropped), 1); } gettimeofday(&stop, NULL); - self->ticks += timediff(start, stop); + __sync_add_and_fetch(&(self->ticks), + timediff(start, stop)); if (squeue == NULL) { /* we couldn't do anything, take it easy for a bit */ if (__sync_add_and_...
apps/system/composite: Remove configuration settings that are no longer used.
@@ -15,72 +15,8 @@ menuconfig SYSTEM_COMPOSITE disconn: Disconnect the mass storage device to the host if SYSTEM_COMPOSITE -if USBMSC_COMPOSITE - -config SYSTEM_COMPOSITE_NLUNS - int "Number of LUNs" - default 1 - ---help--- - Defines the number of logical units (LUNs) exported by the USB - storage driver. Each LUN cor...
linux/ptrace: define PTRACE_O_EXITKILL for older headers
@@ -1338,6 +1338,13 @@ bool arch_ptraceWaitForPidStop(pid_t pid) #define MAX_THREAD_IN_TASK 4096 bool arch_ptraceAttach(honggfuzz_t * hfuzz, pid_t pid) { +/* + * It should be present since, at least, Linux kernel 3.8, but + * not always defined in kernel-headers + */ +#if !defined(PTRACE_O_EXITKILL) +#define PTRACE_O_E...
Add optional path for when loader library path is not defined in node port.
const Path = require('path'); const addon = (() => { + const LIBRARY_PATH = process.env.LOADER_LIBRARY_PATH || ''; + const paths = [ __dirname, Path.join(__dirname, 'build'), process.cwd(), - process.env.LOADER_LIBRARY_PATH, - Path.join(process.env.LOADER_LIBRARY_PATH, 'build'), - Path.join(process.env.LOADER_LIBRARY_P...
perf(non-null judgment): add non-null judgment of "output_ptr->field_ptr" in "boathlfabric_discovery.c"
@@ -178,6 +178,10 @@ __BOATSTATIC BOAT_RESULT hlfabricDiscoverySignatureHeaderPacked(const BoatHlfabr // { packedLength = common__signature_header__get_packed_size(&signatureHeader); output_ptr->field_ptr = BoatMalloc(packedLength + 3); + if(output_ptr->field_ptr == NULL){ + BoatLog(BOAT_LOG_CRITICAL, "Fail to allocate...
Enhanced CMSIS-SVD documentation regarding white-space handling in description tags.
@@ -417,6 +417,10 @@ On each level, the tag \tagem{description} provides verbose information about th The description field plays an important part in improving software development productivity as it gives instant access to information that otherwise would need to be looked up in the device documentation. +All multipl...
doc: describe changed symbols
// To ignore a function just add the function definition as regex here. // For example, to ignore the function `int elektraArrayDecName(Key * key)` you can use // the following entry: elektraArrayDecName -elektraIsReferenceRedundant -elektraResolveReference -elektraPluginFindGlobal -kdbEnsure
Fixed JS jshint warning 'unreachable ';' after 'return'.
@@ -953,7 +953,7 @@ GoAccess.Charts = { .x(function (d) { if ((((plotUI || {}).d3 || {}).x || {}).key) return this.getXKey(d, plotUI['d3']['x']['key']); - return d.data;; + return d.data; }.bind(this)) .y0(function (d) { return +d[plotUI['d3']['y0']['key']];
sim: Remove padding from ecdsa signatures With support for unpadded ecdsa signatures in place, always generate unpadded signatures within the sim.
@@ -412,12 +412,7 @@ impl ManifestGen for TlvGen { result.write_u16::<LittleEndian>(TlvKinds::ECDSA256 as u16).unwrap(); - - // signature must be padded... - let mut signature = signature.as_ref().to_vec(); - while signature.len() < 72 { - signature.push(0); - } + let signature = signature.as_ref().to_vec(); result.wri...
Project lists on help separator change to , than \n
@@ -71,7 +71,7 @@ def main(): print("Found yaml parse error", ex) #parse the arguments - projects = "List of supported projects\n\n" + "\n".join(project_list) # + projects = "List of supported projects\n\n" + ", ".join(project_list) # parser = argparse.ArgumentParser(description='mbedcli compile support for DAPLink', e...
Exclude CMSIS in patterns
@@ -815,7 +815,8 @@ EXCLUDE_PATTERNS = */cpu/cc26x0-cc13x0/lib/* \ */cpu/simplelink-cc13xx-cc26xx/cc13x0-cc26x0/rf_patches/* \ */cpu/nrf52840/lib/* \ */platform/stm32nucleo-spirit1/stm32cube-lib/* \ - */os/net/security/tinydtls/* + */os/net/security/tinydtls/* \ + */cpu/arm/CMSIS/* \ # The EXCLUDE_SYMBOLS tag can be us...
nimble/ll: Fix HCI events order on slave connection If a connection is created and the Controller supports the LE Channel Selection Algorithm feature, this event shall be immediately followed by an LE Channel Selection Algorithm Event.
@@ -3270,16 +3270,16 @@ ble_ll_adv_send_conn_comp_ev(struct ble_ll_conn_sm *connsm, ble_ll_conn_comp_event_send(connsm, BLE_ERR_SUCCESS, evbuf, advsm); +#if (MYNEWT_VAL(BLE_LL_CFG_FEAT_LE_CSA2) == 1) + ble_ll_hci_ev_le_csa(connsm); +#endif + #if MYNEWT_VAL(BLE_LL_CFG_FEAT_LL_EXT_ADV) if (advsm->flags & BLE_LL_ADV_SM_FL...
v2.0.25 landed
-ejdb2 (2.0.25) UNRELEASED; urgency=medium +ejdb2 (2.0.25) testing; urgency=medium * ejdb2_dart: Fixed memory leak in dart binding * Upgraded to iowow 1.3.23 - -- Anton Adamansky <adamansky@gmail.com> Fri, 16 Aug 2019 17:57:07 +0700 + -- Anton Adamansky <adamansky@gmail.com> Sat, 17 Aug 2019 21:27:29 +0700 + ejdb2 (2.0...
change lock duration in grpc stream function
@@ -339,29 +339,34 @@ func (rpc *AergoRPCService) getBlocks(ctx context.Context, in *types.ListParams) func (rpc *AergoRPCService) BroadcastToListBlockStream(block *types.Block) { var err error rpc.blockStreamLock.RLock() + defer rpc.blockStreamLock.RUnlock() for _, stream := range rpc.blockStream { if stream != nil { ...
testcase/media: add utc for setDuration add utc for setDuration
@@ -378,6 +378,32 @@ static long get_file_size() } static void utc_media_MediaRecorder_setDuration_p(void) +{ + { + long size; + MediaRecorder mr; + unique_ptr<FileOutputDataSource> dataSource = unique_ptr<FileOutputDataSource>(new FileOutputDataSource(channels, sampleRate, pcmFormat, filePath)); + + auto observer = st...
options/linux: Stub memalign
@@ -5,3 +5,8 @@ size_t malloc_usable_size(void *) { __ensure(!"Not implemented"); __builtin_unreachable(); } + +void *memalign(size_t, size_t) { + __ensure(!"Not implemented"); + __builtin_unreachable(); +}
Don't build the C/C++ interface twice.
@@ -30,7 +30,7 @@ docker run \ -DCMAKE_BUILD_TYPE=Release \ -DBUILD_SHARED_LIBS=On \ -DCMAKE_INSTALL_PREFIX=/usr \ - -DTINYSPLINE_INSTALL_LIBRARY_DIR=lib \ + -DTINYSPLINE_INSTALL_LIBRARY_DIR=lib && \ cmake --build . --target tinyspline && \ cmake --build . --target tinysplinecxx && \ cpack -G DEB && \ @@ -46,11 +46,6 @...
Simplify documentation links; add DDF/Device docs link
@@ -7,8 +7,11 @@ A list of supported Zigbee devices can be found on the [Supported Devices](https To communicate with Zigbee devices the [RaspBee](https://phoscon.de/raspbee?ref=gh) / [RaspBee&nbsp;II](https://phoscon.de/raspbee2?ref=gh) Zigbee shield for Raspberry Pi, or a [ConBee](https://phoscon.de/conbee?ref=gh) / ...
Add nocache script for docker compose.
@@ -50,6 +50,21 @@ sub_build() { docker-compose -f docker-compose.yml build --force-rm runtime } +# Build MetaCall Docker Compose without cache (link manually dockerignore files) +sub_build_nocache() { + ln -sf tools/node/.dockerignore .dockerignore + docker-compose -f docker-compose.yml build --force-rm --no-cache dep...
doc: update checkout branch in GSG
@@ -165,7 +165,7 @@ To set up the ACRN build environment on the development computer: cd ~/acrn-work git clone https://github.com/projectacrn/acrn-hypervisor cd acrn-hypervisor - git checkout a7c273996 + git checkout v2.6 cd .. git clone https://github.com/projectacrn/acrn-kernel
FIX: [bsp][stm32] pulse_encoder driver did not handle TIM overflow
@@ -157,10 +157,12 @@ rt_err_t pulse_encoder_control(struct rt_pulse_encoder_device *pulse_encoder, rt switch (cmd) { case PULSE_ENCODER_CMD_ENABLE: + __HAL_TIM_ENABLE_IT(&stm32_device->tim_handler, TIM_IT_UPDATE); HAL_TIM_Encoder_Start(&stm32_device->tim_handler, TIM_CHANNEL_ALL); HAL_TIM_Encoder_Start_IT(&stm32_devic...
fix find/replace miss
|^ ?- -.loc %http (fetch-http url.loc) - %ship (fetch-ames ship.loc base) + %ames (fetch-ames ship.loc base) == :: ++ fetch-http ^- form:m ;< =bowl:spider bind:m get-bowl:strandio ;< =cage bind:m - (watch-one:strandio /glob/(scot %da now:bowl) [ship %docket] /glob/[base]) + (watch-one:strandio /glob/(scot %da now.bowl)...
fix documentation typos/grammar
@@ -64,7 +64,7 @@ static struct log _log; /** * Writes a single byte to the specified register * - * @param The Sesnsor interface + * @param The Sensor interface * @param The register address to write to * @param The value to write * @@ -95,9 +95,9 @@ drv2605_write8(struct sensor_itf *itf, uint8_t reg, uint8_t value) }...
restrict logic for array index re-mapping
#include <avtArrayDecomposeExpression.h> -#include <math.h> +#include <cmath> #include <cstring> #include <cstdlib> +#include <cerrno> #include <vtkCellData.h> #include <vtkDataArray.h> @@ -157,14 +158,19 @@ avtArrayDecomposeExpression::DeriveVariable(vtkDataSet *in_ds, int currentDomain // through indices embedded in ...
Fix tinc can not load test case
@@ -19,7 +19,7 @@ limitations under the License. # The plan is to deprecate walrepl.lib.dbconn import gppylib.db.dbconn from gppylib.commands.base import * -from gppylib.gparray import GpArray, SYSTEM_FILESPACE +from gppylib.gparray import GpArray import os import re
graph-store: style fix and fixed mark validation
|= nodes=(map index:store node:store) ^- (list [index:store node:store]) %+ sort ~(tap by nodes) - |= [p=[=index:store =node:store] q=[=index:store =node:store]] + |= [p=[=index:store *] q=[=index:store *]] ^- ? (lth (lent p.index) (lent q.index)) :: %+ roll (tap:orm graph) |= [[=atom:store =node:store] out=?] ?& out -...
avoid compiler warning in oidc_util_html_escape
@@ -338,12 +338,12 @@ char *oidc_util_html_escape(apr_pool_t *pool, const char *s) { const char * const replace[] = { "&amp;", "&apos;", "&quot;", "&gt;", "&lt;", }; unsigned int i, j = 0, k, n = 0, len = strlen(chars); - int m = 0; + unsigned int m = 0; char *r = apr_pcalloc(pool, strlen(s) * 6); for (i = 0; i < strle...
feat(specs): add default_value field for setting default field values when calling xxx_init()
{ "name": "name", "type":{ "base":"char", "dec":"*" }, "comment":"1-32 lowercase character name"}, { "name": "description", "type":{ "base":"char", "dec":"*" }, "comment":"1-100 character description"}, { "name": "options", "type":{"base":"int", "int_alias":"enum discord_application_command_option_types", "dec":"ntl"},...
Add a copyright in curl_config.h This file needs a copyright.
+/**************************************************************************** + * + * Copyright 2019 Samsung Electronics All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the Lic...
device_test: fix `undefined reference to screen_process` No idea what causes it and why only in test_smarteeprom.c, which is simliar to for example test_usb_composed_ep_in.c, which also does not use any screen stuff and still compiles.
#include "memory/smarteeprom.h" #include "qtouch.h" #include "screen.h" +#include "ui/screen_process.h" #include <stdarg.h> #include <stdlib.h> @@ -87,5 +88,12 @@ int main(void) _screen_print_debug("SmartEEPROM enabled.\nRebooting.", 2000); _reset_mcu(); } + for (;;) { + // without this, there is a undefined reference ...
doc: todo keyname \ thanks to
@@ -14,6 +14,10 @@ no "binary" metadata hack within API: just provide keyGetValue and keyGetValueSize no fixed strings when GetString on binary +backslash: + allow \ at end of keynames? + Autoescape on addBaseName? + remove old metadata get/set remove null ptr checks? (see decision)
Implementation of kCGGradientDrawsAfterEndLocation & kCGGradientDrawsBeforeStartLocation for Radial Gradient
@@ -3187,15 +3187,16 @@ static inline void __CGGradientInsertTransparentColor(std::vector<D2D1_GRADIENT_ */ static std::vector<D2D1_GRADIENT_STOP> __CGGradientToD2D1GradientStop(CGContextRef context, CGGradientRef gradient, - CGGradientDrawingOptions options) { - size_t gradientCount = _CGGradientGetCount(gradient); + ...
boot: zephyr: add MCUBOOT config Add a hidden MCUBOOT config entry to mark a project as MCUBOOT. It is useful when other parts of the system need to be aware that they are, in fact, the bootloader.
@@ -7,6 +7,11 @@ mainmenu "MCUboot configuration" comment "MCUboot-specific configuration options" +# Hidden option to mark a project as MCUboot +config MCUBOOT + default y + bool + config BOOT_USE_MBEDTLS bool # Hidden option
Fix flash decoder assert An assert is triggered if you attempt load a DAPLink interface image while in interface mode or a DAPLink bootloader image while in bootloader mode due to unhandled cases in the flash decoder. This patch adds logic to handle these cases so an assert does not occur.
@@ -112,8 +112,6 @@ error_t flash_decoder_get_flash(flash_decoder_type_t type, uint32_t addr, bool a if (addr_valid && (DAPLINK_ROM_IF_START != addr)) { // Address is wrong so display error message status = ERROR_FD_INTF_UPDT_ADDR_WRONG; - flash_start_local = 0; - flash_intf_local = 0; } else { // Setup for update flas...
capabilities: make capability selection case insensitive. Everything else to do with algorithm selection and properties is case insensitive.
#include "internal/nelem.h" #include "internal/tlsgroups.h" #include "prov/providercommon.h" +#include "e_os.h" typedef struct tls_group_constants_st { unsigned int group_id; /* Group ID */ @@ -177,7 +178,7 @@ static int tls_group_capability(OSSL_CALLBACK *cb, void *arg) int provider_get_capabilities(void *provctx, con...
Detect correct Python include and lib path on OSX.
@@ -121,7 +121,7 @@ jobs: if [ "$RUNNER_OS" == "Windows" ]; then cmake $GITHUB_WORKSPACE -A x64 -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DTINYSPLINE_ENABLE_PYTHON=True -DPYTHON_INCLUDE_DIR="$(python -c "from sysconfig import get_paths; print(get_paths()['include'])")" -DPYTHON_LIBRARY="$(python -c "from sysconfig import get_pat...
oops, this method can't use assert... because then mic capture can't use the failure to trigger a permissions check
@@ -218,7 +218,7 @@ bool lovrAudioInitDevice(AudioType type) { int err = ma_device_init(&state.context, &config, &state.devices[type]); if (err != MA_SUCCESS) { - lovrAssert(false, "Failed to enable audio device %d: %d\n", type, err); + lovrLog(LOG_WARN, "audio", "Failed to enable audio device %d: %d\n", type, err); re...
Fix store, read and add scene order
@@ -5458,7 +5458,7 @@ void DeRestPluginPrivate::foundScene(LightNode *lightNode, Group *group, uint8_t scene.name.sprintf("Scene %u", sceneId); } group->scenes.push_back(scene); - updateEtag(group->etag); + updateGroupEtag(group); updateEtag(gwConfigEtag); queSaveDb(DB_SCENES, DB_SHORT_SAVE_DELAY); } @@ -6524,6 +6524,1...
create bridge-domain update default flags add missing flag learn
@@ -1138,7 +1138,7 @@ bd_add_del (l2_bridge_domain_add_del_args_t * a) /** Create or delete bridge-domain. - The CLI format is: + The CLI format: create bridge-domain <bd_index> [learn <0|1>] [forward <0|1>] [uu-flood <0|1>] [flood <0|1>] [arp-term <0|1>] [mac-age <nn>] [del] */ @@ -1151,7 +1151,7 @@ bd_add_del_command...
Fix typo flie
(print "#define JANET_BUILD \"" janet/build "\"") (print ```#define JANET_AMALG```) - (defn do-one-flie + (defn do-one-file [fname] (print "\n/* " fname " */") (print "#line 0 \"" fname "\"\n") (def source (slurp fname)) (print (string/replace-all "\r" "" source))) - (do-one-flie feature-header) + (do-one-file feature-...
Improved style of splash open button on macOS
border-radius: 4px; background: linear-gradient( to bottom, - var(--toolbar-button-top-color) 0%, - var(--toolbar-button-bottom-color) 100% + var(--button-top-color) 0%, + var(--button-bottom-color) 100% ); - border: 1px solid var(--toolbar-button-border-color); - border-top: 1px solid var(--toolbar-button-border-top-c...
Voema: set SYV682X HV_ILIM to 5.5A Set CONFIG_SYV682X_HV_ILIM to 5.5A on voema. BRANCH=volteer TEST=Use i2cxfer check syv682x setting.
#define CONFIG_USB_PORT_POWER_DUMB /* USBC PPC*/ +#undef CONFIG_SYV682X_HV_ILIM +#define CONFIG_SYV682X_HV_ILIM SYV682X_HV_ILIM_5_50 #define CONFIG_USBC_PPC_SYV682X /* USBC port C0/C1 */ #define CONFIG_USB_PD_FRS_PPC #undef CONFIG_USB_PD_TCPC_RUNTIME_CONFIG
BugID:16846667: Added rhino.uspace into mbin compilation path modified: aos_target_config_mbins.mk
@@ -289,10 +289,12 @@ endif ifeq ($(MBINS),app) COMPONENTS += mbins.umbins rhino.syscall.usyscall COMPONENTS += rhino.mm +COMPONENTS += rhino.uspace AOS_SDK_DEFINES += BUILD_APP AOS_SDK_LDFLAGS += -Wl,-wrap,vprintf -Wl,-wrap,fflush -nostartfiles else ifeq ($(MBINS),kernel) COMPONENTS += mbins.kmbins rhino.syscall.ksysc...
work around unnecessary re-registrations
=/ try=@ud ?~(rod 1 try.u.rod) :: backoff faster than usual :: - =/ lul=@dr (max ~h1 (backoff (add 4 try))) + =/ lul=@dr (min ~h1 (backoff (add 4 try))) =/ msg=cord (cat 3 'retrying certificate request in ' (scot %dr lul)) =. ..this (emit (notify msg ~))
Add peripherals to Makefile
@@ -56,9 +56,12 @@ Src/debug.c \ Src/dma.c \ Src/hrtim.c \ Src/i2c.c \ +Src/i2c-msa301.c \ +Src/i2c-bq24295.c \ Src/ltdc.c \ Src/quadspi.c \ Src/spi.c \ +Src/spi-st7272a.c \ Src/sys.c \ Src/tim.c \ Src/usb_otg.c \
We have a mess with many now() functions and sys_now() function, we should use the timer.h module for the same, sys_now is commented out here, not used along the project
@@ -101,14 +101,14 @@ static inline void sys_arch_unprotect(sys_prot_t x) extern void console(char *); typedef unsigned long long time; -extern timestamp now(); +//extern timestamp now(); extern void lwip_debug(char * format, ...); -static inline u32_t sys_now(void) -{ - timestamp t = now(); - return (t * 1000) >> 32; ...
Temporary commit. Will be destroyed by next merge.
@@ -710,6 +710,7 @@ void VerifyModuleMultiAtmescEqtideThermint(BODY *body,CONTROL *control,FILES *fi // If you're using alllll of these, include the force behavior! // Also, you MUST have surface water information set if you're using bOceanTides // Note: VerifyEqtideThermint handles all things oceans + if(body[iBody].b...
build: Bundle fluent-bit-win32.conf for Windows platforms This patch is a minor follow-up for applying suggestions by Jorge Niedbalski. Since this file is intended for Windows platforms, we don't have to include it in Unix packages
@@ -468,17 +468,19 @@ if(FLB_BINARY) # FIXME: should we support Sysv init script ? endif() + if(FLB_SYSTEM_WINDOWS) install(FILES - "${PROJECT_SOURCE_DIR}/conf/fluent-bit.conf" + "${PROJECT_SOURCE_DIR}/conf/fluent-bit-win32.conf" DESTINATION ${FLB_INSTALL_CONFDIR} COMPONENT binary RENAME "${FLB_OUT_NAME}.conf") - + els...
fix missing void pointer explicit type cast
@@ -203,7 +203,7 @@ vlib_get_buffer_indices_with_offset (vlib_main_t * vm, void **b, u32 * bi, } while (count) { - bi[0] = vlib_get_buffer_index (vm, b[0] + offset); + bi[0] = vlib_get_buffer_index (vm, ((u8 *) b[0]) + offset); bi += 1; b += 1; count -= 1;
Testing: BUFR expanded keys
@@ -66,5 +66,10 @@ cat > $fRules <<EOF EOF ${tools_dir}/codes_bufr_filter $fRules $f +# Other expanded stuff +# --------------------- +f="$ECCODES_SAMPLES_PATH/BUFR4.tmpl" +echo 'print "[expandedOriginalReferences:i]";' | ${tools_dir}/codes_bufr_filter - $f +# Clean up rm -f $fRules $fLog $temp
scripts: fail on error (build-homepage) keep a backup (rotate a single backup) source it (on build server), so that it will fail on error do not run failing external test see
#!/bin/sh +# This script is sourced on build server, shebang is for convenience # remember the build directory ROOT_DIR=$PWD @@ -9,8 +10,13 @@ cd build cmake -DENABLE_ASAN=ON -DBUILD_FULL=OFF -DBUILD_SHARED=ON -DBUILD_STATIC=OFF -DBUILD_DOCUMENTATION=OFF -DPLUGINS='ALL;-fstab;-semlock' -DTOOLS='kdb;rest-backend;rest-fr...
prepare for release v0.14.0 added changelog for release v0.14.0
+bcc (0.14.0-1) unstable; urgency=low + + * Support for kernel up to 5.6 + * new tools: biolatpcts.py + * libbpf-tools: tools based on CORE and libbpf library directly + * add --cgroupmap to various tools, filtering based cgroup + * support kfunc (faster kprobe) for vfsstat, klockstat and opensnoop + * lots of bug fixe...
Just to avoid issues with people not using the C pre-processor
@@ -234,23 +234,23 @@ _HINT: _VINT: movem.l %d0-%d1/%a0-%a1,-(%sp) - ori.w #0x0001, intTrace // in V-Int - addq.l #1, vtimer // increment frame counter (more a vint counter) - btst #3, VBlankProcess+1 // PROCESS_XGM_TASK ? (use VBlankProcess+1 as btst is a byte operation) + ori.w #0x0001, intTrace /* in V-Int */ + addq...
nvbios: correctly parse the PCIe speed for 0x40 PM_Mode
@@ -1563,18 +1563,12 @@ int main(int argc, char **argv) { id = bios->data[start+0]; voltage = bios->data[start+2]; - switch (bios->data[start+11] & 0x3) { - case 0: - pcie_gt = 50; - break; - case 3: - case 1: + if (bios->data[start+11] & 0x1) pcie_gt = 25; - break; - case 2: + else if (bios->data[start+11] & 0x20) + p...
Workaround for a gcc bug
@@ -209,19 +209,24 @@ DILL_EXPORT __attribute__((noinline)) void dill_epilogue(void); Given that there's no other way to do this, screw other compilers for now. See https://gcc.gnu.org/onlinedocs/gcc-3.2/gcc/Statement-Exprs.html */ +/* A bug in gcc have been observed where name clash between variable in the + outer sco...
webpdec,cosmetics: match error text to function call WebPINewDecoder -> WebPIDecode
@@ -95,7 +95,7 @@ VP8StatusCode DecodeWebPIncremental( { WebPIDecoder* const idec = WebPIDecode(data, data_size, config); if (idec == NULL) { - fprintf(stderr, "Failed during WebPINewDecoder().\n"); + fprintf(stderr, "Failed during WebPIDecode().\n"); return VP8_STATUS_OUT_OF_MEMORY; } else { status = WebPIUpdate(idec,...
Improvements of code review
@@ -89,17 +89,17 @@ local function benchmark(test_dir) end -- run luajit against *.lua if there is no luajit.lua - local luajit_run = false + local luajit_executed = false local lua_files = {} for _, file_name in ipairs(file_names) do local name, ext = util.split_ext(file_name) if name == "luajit" then - luajit_run = t...
replace libretro-common 23
@@ -147,12 +147,7 @@ static char *strdup_range_escape(const char *begin, const char *end) static struct rxml_attrib_node *rxml_parse_attrs(const char *str) { char *copy = strdup(str); - if (!copy) - return NULL; - char *last_char = copy + strlen(copy) - 1; - if (*last_char == '/') - *last_char = '\0'; struct rxml_attri...
Handle Scc's that have already been coloured completely
@@ -1284,7 +1284,47 @@ bool colour_scc_from_lp_solution_with_parallelism (int scc_id, int *colour, Plut } +void cut_around_scc (int scc_id, PlutoProg *prog) +{ + int j; + Graph *ddg; + ddg = prog->ddg; + for (j=0;j<ddg->num_sccs; j++) { + if (scc_id!=j) { + if((j < scc_id) && ddg_sccs_direct_connected(ddg,prog,j,scc_id...
spec: fix return value for ignored conflicts
@@ -210,7 +210,7 @@ static void handleConflict (Key * parentKey, const char * msg, OnConflict onConf * @param specKey The spec Key causing the conflict (for additional information, e.g. max array size) * @param ch How conflicts should be handled * - * @retval 0 if no conflicts where found + * @retval 0 if no conflicts ...
ec/ecdsa_ossl.c: switch to fixed-length Montgomery multiplication.
#include <string.h> #include <openssl/err.h> #include <openssl/obj_mac.h> -#include <openssl/bn.h> #include <openssl/rand.h> -#include <openssl/ec.h> +#include "internal/bn_int.h" #include "ec_lcl.h" int ossl_ecdsa_sign(int type, const unsigned char *dgst, int dlen, @@ -164,7 +163,7 @@ ECDSA_SIG *ossl_ecdsa_sign_sig(co...
Fix wrong binding size for overlay toggle due to missing unbind key
@@ -299,6 +299,7 @@ void Bindings::UpdateAndDrawBinding(const VKModBind& acModBind, VKBindInfo& aVKB } bool bound = aVKBindInfo.CodeBind != 0; + const bool unbindable = bound && acModBind != s_overlayToggleModBind; const bool modified = aVKBindInfo.CodeBind != aVKBindInfo.SavedCodeBind; ImVec4 curTextColor { ImGui::Get...
Fix issue with I2C driver in devices with PSRAM Driver install is not forcing use of IRAM anymore. Add checks to API calls in key operations. Improve check on I2C command execution.
@@ -53,13 +53,8 @@ HRESULT Library_sys_dev_i2c_native_System_Device_I2c_I2cDevice::NativeInit___VOI // If this is first device on Bus then init driver if (Esp_I2C_Initialised_Flag[bus] == 0) { - // install driver in RAM to prevent issues with PSRAM cache - esp_err_t res = i2c_driver_install( - bus, - I2C_MODE_MASTER, -...
delete allocated array properly In bcc_btf.cc, new_btf_sec is allocated with something like new_btf_sec = new uint8_t[tmp_sec_size] Since the allocation is an array, the deletion should be delete[] new_btf_sec instead of delete new_btf_sec This patch fixed the problem.
@@ -179,7 +179,7 @@ int BTF::load(uint8_t *btf_sec, uintptr_t btf_sec_size, if (new_btf_sec) { btf = btf__new(new_btf_sec, new_btf_sec_size); - delete new_btf_sec; + delete[] new_btf_sec; } else { btf = btf__new(btf_sec, btf_sec_size); }
Update build.sh to throw same warnings as the build loops.
@@ -66,10 +66,10 @@ set -e if [ "$2" == "release" ]; then # TODO: pass custom build flags? - cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_PACKAGE_TYPE=$CMAKE_PACKAGE_TYPE .. + cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_PACKAGE_TYPE=$CMAKE_PACKAGE_TYPE -DCMAKE_CXX_FLAGS="-Wignor...
fix key comments
@@ -312,13 +312,13 @@ struct search_t* searches_start(const char query[]) #ifdef BOB if (EXIT_SUCCESS == bob_get_id(id, sizeof(id), query)) { // Use Bob authentication - // For e.g. ecdsa_<hex>.p2p + // For e.g. <32BytePublicKey>.p2p callback = &bob_trigger_auth; } else #endif if (EXIT_SUCCESS == hex_get_id(id, sizeof(...
ivshmem: Use AutoVSToolset in test project Fixes for
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Win10 Release|Win32'" Label="Configuration"> <ConfigurationType>Application</ConfigurationType> <UseDebugLibraries>false</UseDebugLibraries> - <PlatformToolset>v142</PlatformToolset> + <PlatformToolset>AutoVSToolset</PlatformToolset> <WholeProgramOptimization>t...
doc: roter Faden
@@ -100,7 +100,7 @@ Nevertheless, there are a few must-haves: ## Links -Generously use links but be very careful to create a coherent documentation: +Generously use links but be very careful to create a coherent documentation (German: "roter Faden"): - Clearly separate between prerequisites and further readings. - Prer...
tcmur/unmap_split: reduce the unmap split logs output When the target device is large enough, there will be too many noisy split logs output.
@@ -327,8 +327,17 @@ static int align_and_split_unmap(struct tcmu_device *dev, desc->length = lbas * block_size; ucmd->cmdstate = desc; - tcmu_dev_dbg(dev, "Split %d: start lba: %llu, end lba: %llu, lbas: %u\n", - j++, lba, lba + lbas - 1, lbas); + /* The first one */ + if (j++ == 0) + tcmu_dev_dbg(dev, "The first spli...
don't install experimental man pagse
@@ -11,9 +11,6 @@ LIST(APPEND man_pages dstripe.1 dsync.1 dwalk.1 - experimental/dbz2.1 - experimental/dgrep.1 - experimental/dparallel.1 - experimental/dtar.1 ) + INSTALL(FILES ${man_pages} DESTINATION ${X_DATADIR}/man/man1)
nimble/ll/dtm: Try to restart RX if failed due to radio error
STATS_SECT_START(ble_ll_dtm_stats) STATS_SECT_ENTRY(tx_failed) + STATS_SECT_ENTRY(rx_failed) STATS_SECT_END STATS_SECT_DECL(ble_ll_dtm_stats) ble_ll_dtm_stats; STATS_NAME_START(ble_ll_dtm_stats) STATS_NAME(ble_ll_dtm_stats, tx_failed) + STATS_NAME(ble_ll_dtm_stats, rx_failed) STATS_NAME_END(ble_phy_stats) struct dtm_ct...
fix definition of host resources for protoc-gen-javalite
+ + RESOURCES_LIBRARY() # protoc-gen-javalite-3.0.0 binaries # downloaded from https://repo1.maven.org/maven2/com/google/protobuf/protoc-gen-javalite/3.0.0/ -IF(HOST_OS_DARWIN) - # protoc-gen-javalite-3.0.0-osx-x86_64.exe - DECLARE_EXTERNAL_RESOURCE(PROTOC_GEN_JAVALITE sbr:1325737526) -ELSEIF(HOST_OS_LINUX) - # protoc-...
Fix compile flag accidentally removed in
@@ -416,7 +416,7 @@ sub run # Flags used to buid test.c my $strTestFlags = - '-O0' . ($self->{oTest}->{&TEST_VM} ne VM_U12 ? ' -ftree-coalesce-vars' : '') . + '-DDEBUG_TEST_TRACE -O0' . ($self->{oTest}->{&TEST_VM} ne VM_U12 ? ' -ftree-coalesce-vars' : '') . (vmCoverageC($self->{oTest}->{&TEST_VM}) && $self->{bCoverageU...
Correction: set_property PULLUP
@@ -55,9 +55,9 @@ set_property IOSTANDARD LVCMOS33 [get_ports {m2_susclk[*]}] set_property IOSTANDARD LVCMOS33 [get_ports {m2_perst_n[*]}] set_property IOSTANDARD LVCMOS33 [get_ports {m2_clkreq_n[*]}] -set_set_property PULLUP true [get_ports {m2_clkreq_n[*]}] +set_property PULLUP true [get_ports {m2_clkreq_n[*]}] set_p...
Do not minimize on focus loss The default behavior seems annoying. Fixes <https://github.com/Genymobile/scrcpy/issues/554>
@@ -76,6 +76,11 @@ sdl_init_and_configure(bool display) { } #endif + // Do not minimize on focus loss + if (!SDL_SetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS, "0")) { + LOGW("Could not disable minimize on focus loss"); + } + // Do not disable the screensaver when scrcpy is running SDL_EnableScreenSaver();
Relax upper bound for hslua, allow hslua-1.2.*
@@ -36,7 +36,7 @@ library , containers >= 0.5 && < 0.7 , directory >= 1.3 && < 1.4 , exceptions >= 0.8 && < 0.11 - , hslua >= 1.0.3 && < 1.2 + , hslua >= 1.0.3 && < 1.3 , temporary >= 1.2 && < 1.4 default-extensions: LambdaCase default-language: Haskell2010
Whoops, demos got turned off in CMake.
@@ -30,7 +30,7 @@ if(ANDROID) option(BUILD_STATIC "Build as static library" ON) option(INSTALL_STATIC "Install the static library" OFF) else() - option(BUILD_DEMOS "Build the demo applications" OFF) + option(BUILD_DEMOS "Build the demo applications" ON) option(INSTALL_DEMOS "Install the demo applications" OFF) option(B...
added a setting for RX63X
#elif CFG_TUSB_MCU == OPT_MCU_EFM32GG || CFG_TUSB_MCU == OPT_MCU_EFM32GG11 || CFG_TUSB_MCU == OPT_MCU_EFM32GG12 #include "em_device.h" +#elif CFG_TUSB_MCU == OPT_MCU_RX63X + // no header needed + #else #error "Missing MCU header" #endif
Fix definition of AOMPROCM to be proper for .sh
@@ -63,7 +63,7 @@ for directory in ./*/; do echo "" continue fi - AOMPROCM ?= /opt/rocm + AOMPROCM=${AOMPROCM:-/opt/rocm} if [ $base == 'hip_rocblas' ] ; then ls $AOMPROCM/rocblas > /dev/null 2>&1 if [ $? -ne 0 ]; then
Make nonce length check return error where it can
@@ -195,12 +195,10 @@ psa_status_t mbedtls_psa_aead_encrypt( } tag = ciphertext + plaintext_length; - if( mbedtls_aead_check_nonce_length( &operation, nonce_length ) - != PSA_SUCCESS ) - { - status = PSA_ERROR_NOT_SUPPORTED; + status = mbedtls_aead_check_nonce_length( &operation, nonce_length ); + + if( status != PSA_S...
fix typo in inDEfiniteSoilDepth
'iceTopUnderSnowOnWater' = {typeOfFirstFixedSurface=175; typeOfSecondFixedSurface=255;} 'iceLayerUnderSnowOnWater' = {typeOfFirstFixedSurface=175; typeOfSecondFixedSurface=176;} 'iceBottomOnWater' = {typeOfFirstFixedSurface=176; typeOfSecondFixedSurface=255;} -'infiniteSoilDepth' = {typeOfFirstFixedSurface=177; typeOfS...
vim hotkeys on desktop
@@ -126,10 +126,15 @@ static Key dkeys[] = { {0, XK_minus, spawn, {.v = downvol} }, {0, XK_Tab, spawn, {.v = caretinstantswitchcmd} }, + {0, XK_h, viewtoleft, {0}}, + {0, XK_l, viewtoright, {0}}, + {0, XK_k, shiftview, {.i = +1 } }, + {0, XK_j, shiftview, {.i = -1 } }, + {0, XK_Left, viewtoleft, {0}}, {0, XK_Right, vie...
Fix text for PR
PyIlmBase cmake is able to find Boost but not boost::python * https://github.com/AcademySoftwareFoundation/openexr/pull/750 - https://github.com/AcademySoftwareFoundation/openexr/pull/750 + Zero allocated memory to guarantee always identical output in DWAA compression * https://github.com/AcademySoftwareFoundation/open...
improve the ntl drawing
* the list can be allocated as * p = ntl_calloc(n, size); * - * - * +-----------------+ - * | | + * /-indices[n+1]\ /--------- e[n]-----------\ * p -> [ | | | | | | |0][e_0]...............[e_(n-1)] - * \--indices[n+1]-/ \--------- e[n]-----------/ + * | ^ + * | | + * +---------->------+ * * p points to the begin of the...
gitlab/ci: setting LD_LIBRARY_PATH in environment variables
@@ -5,6 +5,9 @@ before_script: - apt-get -qq update - apt-get -qq install -y --no-install-recommends automake autoconf gcc g++ gcovr make valgrind time curl +variables: + LD_LIBRARY_PATH: /usr/local/lib${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} + # build and install from scratch install: stage: build
Update docs/docs/behaviors/bluetooth.md
@@ -14,7 +14,7 @@ Please note there are only five available Bluetooth profiles by default. If you ::: :::note Connection Management -As an implementation detail, a ZMK device may show as "connected" on multiple hosts at the same time. This is working as intended, and only the host associated with the active profile wil...
Fix test-bit3 expected output
fake_cmd_t t4p4s_testcase_test[][RTE_MAX_LCORE] = { { - {FAKE_PKT, 0, 1, FDATA("00"), NO_CTL_REPLY, 0, FDATA("12345678")}, + {FAKE_PKT, 0, 1, FDATA("00"), NO_CTL_REPLY, 0, FDATA("79563412")}, FEND, }, {
redrix: Raise C1 port i2c speed to 1Mhz BRANCH=none TEST=On Redrix, Make sure C1 port is charging.
@@ -46,7 +46,7 @@ const struct i2c_port_t i2c_ports[] = { /* I2C4 C1 TCPC */ .name = "tcpc1", .port = I2C_PORT_USB_C1_TCPC, - .kbps = 400, + .kbps = 1000, .scl = GPIO_EC_I2C_USB_C1_TCPC_SCL, .sda = GPIO_EC_I2C_USB_C1_TCPC_SDA, }, @@ -62,7 +62,7 @@ const struct i2c_port_t i2c_ports[] = { /* I2C6 */ .name = "ppc1,retimer...
input: added missing mandatory TLS parameter detection and reporting.
@@ -883,6 +883,7 @@ int flb_input_instance_init(struct flb_input_instance *ins, struct flb_config *ctx = ins->config; struct mk_list *config_map; struct flb_input_plugin *p = ins->p; + const char *tls_error_message; if (ins->log_level == -1 && config->log != NULL) { ins->log_level = config->log->level; @@ -1057,6 +1058...
Analyze resumption output after communicate
@@ -139,20 +139,8 @@ def try_handshake(endpoint, port, cipher, ssl_version, server_cert=None, server_ # Fire up s_client s_client = subprocess.Popen(s_client_cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.DEVNULL) - # Validate that s_client resumes successfully against s2nd - if resume is True: -...
lua: use 5.4 when available, fixes errors on fedora 33
@@ -56,7 +56,7 @@ unset (_lua_library_names) # this is a function only to have all the variables inside go away automatically function (set_lua_version_vars) - set (LUA_VERSIONS5 5.3 5.2 5.1 5.0) + set (LUA_VERSIONS5 5.4 5.3 5.2 5.1 5.0) if (Lua_FIND_VERSION_EXACT) if (Lua_FIND_VERSION_COUNT GREATER 1)
Point to my openssl fork for now
@@ -86,7 +86,8 @@ Otherwise, you choose OpenSSL, build it like so: .. code-block:: text - $ git clone --depth 1 https://github.com/openssl/openssl + $ # Before the exporter fix gets merged, use my branch. + $ git clone --depth 1 -b fix-exporter-secret https://github.com/tatsuhiro-t/openssl $ cd openssl $ # For Linux $ ...
doc: OPAL_RESERVED[12], reserved but never used
@@ -139,9 +139,11 @@ The OPAL API is the interface between an Operating System and OPAL. | :ref:`OPAL_SET_SYSTEM_ATTENTION_LED` | 57 | Never | | Never | | | | | | implemented | +---------------------------------------------+--------------+------------------------+----------+-----------------+ -| :ref:`OPAL_RESERVED1` |...
Component/bt: fix get bond list error when connection with no bond
@@ -182,6 +182,10 @@ static void btc_dm_remove_ble_bonding_keys(void) static void btc_dm_save_ble_bonding_keys(void) { + if(!(pairing_cb.ble.is_penc_key_rcvd || pairing_cb.ble.is_pid_key_rcvd || pairing_cb.ble.is_pcsrk_key_rcvd || + pairing_cb.ble.is_lenc_key_rcvd || pairing_cb.ble.is_lcsrk_key_rcvd || pairing_cb.ble.i...
dotprod_rrrf/autotest: running explicit test for struct, run, run4
/* - * Copyright (c) 2007 - 2015 Joseph Gaeddert + * Copyright (c) 2007 - 2021 Joseph Gaeddert * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -347,18 +347,32 @@ void runtest_dotprod_rrrf(unsigned int _n)...
[CLI] Fix display message in getstate command
@@ -59,7 +59,7 @@ func execGetState(cmd *cobra.Command, args []string) { return } cmd.Printf("{account:%s, staked:%s, when:%d}\n", - addr, amount, msg.GetWhen()) + address, amount, msg.GetWhen()) return }
on ESSID change use all ESSIDs on raw output (-O, -X, J)
@@ -973,7 +973,7 @@ if(hccapxrawoutname != NULL) memset(&essidold, 0,32); for(d = 0; d < apstaessidcount; d++) { - if((memcmp(zeiger->mac_ap, zeigeressid->mac_ap, 6) == 0) && (memcmp(zeiger->mac_sta, zeigeressid->mac_sta, 6) == 0)) + if(memcmp(zeiger->mac_ap, zeigeressid->mac_ap, 6) == 0) { if(memcmp(&essidold, zeigere...
Error case frees added to clEnqueueNDRangeKernel
@@ -404,7 +404,12 @@ DETERMINE_LOCAL_SIZE: pocl_command_enqueue (command_queue, command_node); error = CL_SUCCESS; + return error; ERROR: + if (mem_list) + POCL_MEM_FREE(mem_list); + if (new_event_wait_list) + POCL_MEM_FREE(new_event_wait_list); return error; }
Add options window theme support
#include <phapp.h> #include <commdlg.h> -#include <uxtheme.h> #include <vssym32.h> #include <colorbox.h> @@ -292,6 +291,8 @@ INT_PTR CALLBACK PhOptionsDialogProc( //PhAddLayoutItem(&WindowLayoutManager, GetDlgItem(hwndDlg, IDC_APPLY), NULL, PH_ANCHOR_RIGHT | PH_ANCHOR_BOTTOM); PhAddLayoutItem(&WindowLayoutManager, GetD...
[BSP] fix the compiling issue in AT91SAM9260
@@ -876,7 +876,7 @@ int rt_hw_macb_init(void) if (ret != RT_EOK) { rt_kprintf("AT91 EMAC initialized failed\n"); - return; + return -1; } rt_sem_init(&macb_device.tx_ack, "tx_ack", 0, RT_IPC_FLAG_FIFO); rt_sem_init(&macb_device.tx_lock, "tx_lock", 1, RT_IPC_FLAG_FIFO);