message
stringlengths
6
474
diff
stringlengths
8
5.22k
util/add-depends.pl: Rebuild the build file after reconfiguration Reconfiguration is assumed if any dependency (.d) file is older than configdata.pm. Fixes
@@ -23,6 +23,7 @@ ${^WIN32_SLOPPY_STAT} = 1; my $debug = $ENV{ADD_DEPENDS_DEBUG}; my $buildfile = $config{build_file}; my $build_mtime = (stat($buildfile))[9]; +my $configdata_mtime = (stat('configdata.pm'))[9]; my $rebuild = 0; my $depext = $target{dep_extension} || ".d"; my @depfiles = @@ -30,9 +31,11 @@ my @depfiles...
Add note about required prepare-machine invocation to TEST.md
## Running the Tests -To run the all the tests, (after [building](./BUILD.md)) simply run: +First [build](./BUILD.md). Then prepare the machine: + +```PowerShell +.\scripts\prepare-machine.ps1 -Configuration Test -TestCertificates +``` + +If not testing on Windows, omit `-TestCertificates`: + +```PowerShell +.\scripts\...
bugfix:remove duplicate files in src list before DefineGroup
@@ -626,6 +626,8 @@ def DefineGroup(name, src, depend, **parameters): group['name'] = name group['path'] = group_path if type(src) == type([]): + # remove duplicate elements from list + src = list(set(src)) group['src'] = File(src) else: group['src'] = src
swaps -K (now kernel stage) and -k (now key-file)
@@ -141,15 +141,15 @@ _main_getopt(c3_i argc, c3_c** argv) break; } case 'K': { - u3_Host.ops_u.key_c = strdup(optarg); - break; - } - case 'k': { if ( c3n == _main_readw(optarg, 256, &u3_Host.ops_u.kno_w) ) { return c3n; } break; } + case 'k': { + u3_Host.ops_u.key_c = strdup(optarg); + break; + } case 'l': { if ( c3n...
WIP Fix keyboard navigation when list if focused but no item is selected
@@ -83,14 +83,10 @@ export const FlatList = <T extends FlatListItem>({ } if (e.key === "ArrowDown") { e.preventDefault(); - if (selectedId) { - throttledNext.current(items, selectedId); - } + throttledNext.current(items, selectedId || ""); } else if (e.key === "ArrowUp") { e.preventDefault(); - if (selectedId) { - thro...
chunk-trace: callo flb_errno when unable to allocate memory.
@@ -169,11 +169,13 @@ struct flb_chunk_trace_context *flb_chunk_trace_context_new(void *trace_input, ctx = flb_calloc(1, sizeof(struct flb_chunk_trace_context)); if (ctx == NULL) { pthread_mutex_unlock(&in->chunk_trace_lock); + flb_errno(); return NULL; } ctx->flb = flb_create(); if (ctx->flb == NULL) { + flb_errno(); ...
Check in heap changes
@@ -151,10 +151,13 @@ void* liballoc_alloc(size_t page_count) { */ int liballoc_free(void* ptr,size_t page_count) { printf("liballoc_free 0x%08x %d\n", ptr, page_count); + /* vmm_page_directory_t* vmm = boot_info_get()->vmm_kernel; for (uint32_t i = (uint32_t)ptr; i < ((uint32_t)ptr + (page_count * 0x1000)); i += 0x100...
py/emitnative: Fix typo, REG_PARENT_ARG_RET should be REG_PARENT_RET.
@@ -2696,7 +2696,7 @@ STATIC void emit_native_return_value(emit_t *emit) { } if (return_vtype != VTYPE_PYOBJ) { emit_call_with_imm_arg(emit, MP_F_CONVERT_NATIVE_TO_OBJ, return_vtype, REG_ARG_2); - #if REG_RET != REG_PARENT_ARG_RET + #if REG_RET != REG_PARENT_RET ASM_MOV_REG_REG(emit->as, REG_PARENT_RET, REG_RET); #endi...
dispatcher: fix broken gzip compressed stream reading inflateInit2() was missing, causing inflate() always fail with Z_STREAM_ERROR.
@@ -276,7 +276,6 @@ gzipreadbuf(z_strm *strm, void *buf, size_t sze, int rval, int err) zstrm->next_out = (Bytef *)buf; zstrm->avail_out = (uInt)sze; - zstrm->total_out = 0; iret = inflate(zstrm, strm->hdl.gz.inflatemode); switch (iret) { @@ -837,6 +836,22 @@ dispatch_addconnection(int sock, listener *lsnr) C_SETUP, C_...
linux/perf: use files_readFromFd() instead of read()
@@ -348,7 +348,8 @@ void arch_perfAnalyze(honggfuzz_t * hfuzz, fuzzer_t * fuzzer) uint64_t instrCount = 0; if (hfuzz->dynFileMethod & _HF_DYNFILE_INSTR_COUNT) { ioctl(fuzzer->linux.cpuInstrFd, PERF_EVENT_IOC_DISABLE, 0); - if (read(fuzzer->linux.cpuInstrFd, &instrCount, sizeof(instrCount)) != sizeof(instrCount)) { + if...
Better context check for EIP712 sign It was possible to define empty structs without any fields and right after, trigger the EIP712 sign UI flow for blank domain & message hashes. Added checks if there is actually anything relevant to sign.
#include "schema_hash.h" #include "filtering.h" #include "common_712.h" +#include "ethUtils.h" // allzeroes /** * Send the response to the previous APDU command @@ -185,6 +186,14 @@ bool handle_eip712_sign(const uint8_t *const apdu_buf) { if (eip712_context == NULL) { apdu_response_code = APDU_RESPONSE_CONDITION_NOT_SA...
Fix timer init in platformer
@@ -249,7 +249,7 @@ void animation_timer_callback(timer &timer) { slime1.update(); } -timer *t; +timer t; @@ -263,7 +263,8 @@ void init() { bat1.pos = vec2(200, 22); slime1.pos = vec2(50, 112); - t = new timer(animation_timer_callback, 50, -1); + t.init(animation_timer_callback, 50, -1); + t.start(); screen_size.w = 16...
Fixup that it does not set prefetch_ttl twice, but sets the new serve_expired_ttl member of the reply ttls.
@@ -341,7 +341,7 @@ ipsecmod_handle_query(struct module_qstate* qstate, qstate->env->cfg->ipsecmod_max_ttl; qstate->return_msg->rep->prefetch_ttl = PREFETCH_TTL_CALC( qstate->return_msg->rep->ttl); - qstate->return_msg->rep->prefetch_ttl = qstate->return_msg->rep->ttl + + qstate->return_msg->rep->serve_expired_ttl = qs...
also zero pad DHE public key in ClientKeyExchange message for interop
@@ -3069,9 +3069,9 @@ static int tls_construct_cke_dhe(SSL *s, WPACKET *pkt) { #ifndef OPENSSL_NO_DH DH *dh_clnt = NULL; - const BIGNUM *pub_key; EVP_PKEY *ckey = NULL, *skey = NULL; unsigned char *keybytes = NULL; + int prime_len; skey = s->s3.peer_tmp; if (skey == NULL) { @@ -3101,15 +3101,19 @@ static int tls_constr...
Update link in libyara
@@ -5,7 +5,7 @@ libdir=@libdir@ Name: yara Description: YARA library -URL: http://plusvic.github.io/yara/ +URL: https://virustotal.github.io/yara/ Version: @PACKAGE_VERSION@ Cflags: -I${includedir} Libs: -L${libdir} -lyara
don't build app/twit, gen/twit
:: :- /app/gh "hangs for some reason" :- /mar/gh "hangs for some reason" + :- /app/twit "slow and/or crash" + :- /gen/twit "slow and/or crash" :- /mar/twit "slow and/or crash" == ::
BugID: modify tasks.json, monitor will take an new terminal
"helloworld@developerkit" ], "presentation": { - "focus": "true" + "focus": true } }, { "helloworld@developerkit" ], "presentation": { - "focus": "true" + "focus": true } }, { "" ], "presentation": { - "focus": "true" + "focus": true, + "panel": "dedicated" } }, { "clean" ], "presentation": { - "focus": "true" + "focus...
esp32/mpconfigport.h: Enable maximum speed software SPI.
#include <stdint.h> #include <alloca.h> +#include "rom/ets_sys.h" // object representation and NLR handling #define MICROPY_OBJ_REPR (MICROPY_OBJ_REPR_A) #define MICROPY_PY_MACHINE_PULSE (1) #define MICROPY_PY_MACHINE_I2C (1) #define MICROPY_PY_MACHINE_SPI (1) +#define MICROPY_PY_MACHINE_SPI_MIN_DELAY (0) +#define MICR...
plugin types BUGFIX ignore value if value_len is 0
@@ -1350,7 +1350,7 @@ ly_type_store_empty(const struct ly_ctx *ctx, const struct lysc_type *type, cons if (options & LY_TYPE_STORE_DYNAMIC) { LY_CHECK_RET(lydict_insert_zc(ctx, (char *)value, &storage->canonical)); } else { - LY_CHECK_RET(lydict_insert(ctx, value, value_len, &storage->canonical)); + LY_CHECK_RET(lydict...
consolidate windows 10 and windows 2019 configs
@@ -382,7 +382,6 @@ function Install-7Zip { function Install-PSW { - $OS_VERSION = "WinServer2019" $tempInstallDir = "$PACKAGES_DIRECTORY\Intel_SGX_PSW" if(Test-Path $tempInstallDir) { Remove-Item -Recurse -Force $tempInstallDir @@ -499,28 +498,18 @@ function Install-DCAP-Dependencies { Install-Tool -InstallerPath $PAC...
Added optrace tool to ya.conf.json
"lkvm": { "description": "kvmtool is a userland tool for creating and controlling KVM guests" }, + "optrace": { + "description": "optrace records output files written by each process", + "visible": false + }, "yoimports": { "description": "Go imports formatting tool" }, } ] }, + "optrace": { + "tools": { + "optrace": {...
Tools: shim-to-sig.tool better outfile name when quoted CN
@@ -100,7 +100,7 @@ if [ $? -ne 0 ]; then fi # outfile name from cert CN -certname=$(openssl x509 -noout -subject -inform der -in "$certfile" | sed 's/^subject=.*CN *= *//' | sed 's/[,\/].*//' | sed 's/ *//g') || { rm "$certfile"; exit 1; } +certname=$(openssl x509 -noout -subject -inform der -in "$certfile" | sed 's/^...
Dockerfile: add gradle
@@ -8,7 +8,11 @@ USER root # Tools RUN apt-get -qq update && \ apt-get -qq -y --no-install-recommends install \ - ca-certificates > /dev/null && \ + ca-certificates \ + gnupg \ + software-properties-common > /dev/null && \ + add-apt-repository -y -n ppa:cwchien/gradle && \ + apt-get update && \ apt-get -qq -y --no-inst...
mdns: Fixed the ip header TTL to be correctly set to 255 Defined in All Multicast DNS responses (including responses sent via unicast) SHOULD be sent with IP TTL set to 255
@@ -38,7 +38,7 @@ static esp_err_t _udp_pcb_main_init(void) _pcb_main = NULL; return ESP_ERR_INVALID_STATE; } - _pcb_main->mcast_ttl = 1; + _pcb_main->mcast_ttl = 255; _pcb_main->remote_port = MDNS_SERVICE_PORT; ip_addr_copy(_pcb_main->remote_ip, *(IP_ANY_TYPE)); udp_recv(_pcb_main, &_udp_recv, _mdns_server);
util: correct unpack_ftb unpack_ftb is used as a build tool to convert ST toucpad .ftb file to .bin TEST=verify that unpack_ftb is present and executable Commit-Ready: Bob Moragues Tested-by: Bob Moragues
@@ -81,8 +81,8 @@ setup( package_dir={"" : "util"}, py_modules=["unpack_ftb"], entry_points = { - "build_scripts": ["unpack_ftb=unpack_ftb:main"], + "console_scripts": ["unpack_ftb=unpack_ftb:main"], }, - description="Tool to convert .ftb files to .bin", + description="Tool to convert ST touchpad .ftb file to .bin", )
stm32/powerctrl: Enable EIWUP to ensure RTC wakes device from standby.
@@ -390,6 +390,12 @@ void powerctrl_enter_standby_mode(void) { // enable previously-enabled RTC interrupts RTC->CR |= save_irq_bits; + #if defined(STM32F7) + // Enable the internal (eg RTC) wakeup sources + // See Errata 2.2.2 "Wakeup from Standby mode when the back-up SRAM regulator is enabled" + PWR->CSR1 |= PWR_CSR1...
Fix no-cms
@@ -51,7 +51,7 @@ INCLUDE_MAIN___test_libtestutil_OLB = /INCLUDE=MAIN recordlentest drbgtest drbg_cavs_test sslbuffertest \ time_offset_test pemtest ssl_cert_table_internal_test ciphername_test \ servername_test ocspapitest rsa_mp_test fatalerrtest tls13ccstest \ - sysdefaulttest cmsapitest + sysdefaulttest SOURCE[vers...
[arch][riscv] add timer hack back For one of the riscv embedded targets, the clock ticks at such a slow rate that the compiler will warn of a div by zero. Add a compile time hack for this.
@@ -48,7 +48,11 @@ status_t platform_set_oneshot_timer (platform_timer_callback callback, void *arg lk_bigtime_t current_time_hires(void) { +#if ARCH_RISCV_MTIME_RATE < 10000000 + return current_time() * 1000llu; // hack to deal with slow clocks +#else return riscv_get_time() / (ARCH_RISCV_MTIME_RATE / 1000000u); +#end...
galtic: Update EC thermal table Update EC thermal table for throttle and shutdown point. BRANCH=firmware-dedede-13606.B TEST=make BOARD=galtic 1. Verified pass by thermal team.
@@ -594,6 +594,40 @@ const struct temp_sensor_t temp_sensors[] = { }; BUILD_ASSERT(ARRAY_SIZE(temp_sensors) == TEMP_SENSOR_COUNT); +const static struct ec_thermal_config thermal_charger = { + .temp_host = { + [EC_TEMP_THRESH_HIGH] = C_TO_K(85), + [EC_TEMP_THRESH_HALT] = C_TO_K(98), + }, + .temp_host_release = { + [EC_T...
Fix IAR error on memcpy and warnings.
#include "osal/osal.h" #include "tusb_fifo.h" +// Supress IAR warning +// Warning[Pa082]: undefined behavior: the order of volatile accesses is undefined in this statement +#if defined(__ICCARM__) +#pragma diag_suppress = Pa082 +#endif + // implement mutex lock and unlock #if CFG_FIFO_MUTEX @@ -106,7 +112,7 @@ static v...
dbug fe: coax searchable list key into string includes() only works on strings, but we might pass in other types as keys.
@@ -33,7 +33,7 @@ export class SearchableList extends Component { let items = props.items.filter(item => { return state.query.split(' ').reduce((match, query) => { - return match && item.key.includes(query); + return match && ('' + item.key).includes(query); }, true); }) items = items.map(item =>
removed redundant notifications on deletions
$(items t.items) :: %both - =. ta-this - (ta-hall-json parent 'deleted collection' (collection-notify pax meta.col.old)) - =. ta-this - (ta-hall-json parent 'deleted item' (item-notify pax raw.old)) +:: =. ta-this +:: (ta-hall-json parent 'deleted collection' (collection-notify pax meta.col.old)) +:: =. ta-this +:: (ta...
Remove blocking SSL_read while closing the TLS session
@@ -293,29 +293,11 @@ shutdownTlsSession(transport_t *trans) // protocol error occurred int ssl_err = SSL_get_error(trans->net.tls.ssl, ret); scopeLogInfo("Client SSL_shutdown failed: ssl_err=%d\n", ssl_err); - } else if (ret == 0) { - // shutdown not complete, call again - char buf[4096]; - while(1) { - ret = SCOPE_SS...
sway/input: fix bad position of wlr_drag
@@ -380,8 +380,8 @@ void drag_icon_update_position(struct sway_drag_icon *icon) { case WLR_DRAG_GRAB_KEYBOARD: return; case WLR_DRAG_GRAB_KEYBOARD_POINTER: - icon->x = cursor->x; - icon->y = cursor->y; + icon->x = cursor->x + wlr_icon->surface->sx; + icon->y = cursor->y + wlr_icon->surface->sy; break; case WLR_DRAG_GRA...
build: fix cmake set() parameters order
@@ -340,7 +340,7 @@ endif() # MK Core macro(MK_SET_OPTION option value) - set(${option} ${value} CACHE "" INTERNAL FORCE) + set(${option} ${value} CACHE INTERNAL "" FORCE) endmacro() MK_SET_OPTION(MK_SYSTEM_MALLOC ON) MK_SET_OPTION(MK_DEBUG ON)
doc: fix duplicate entry warning
@@ -374,7 +374,7 @@ Functions documentation | *[in]* **q** quaternion | *[in]* **pivot** pivot -.. c:function:: void glm_quat_rotate(mat4 m, versor q, mat4 dest) +.. c:function:: void glm_quat_rotate_atm(mat4 m, versor q, vec3 pivot) | rotate NEW transform matrix using quaternion at pivot point | this creates rotation ...
Pass:cone supports 2-endpoint variant;
@@ -645,7 +645,7 @@ static int l_lovrPassSphere(lua_State* L) { return 0; } -static bool luax_checkendpoints(lua_State* L, int index, float transform[16]) { +static bool luax_checkendpoints(lua_State* L, int index, float transform[16], bool center) { float *v, *u; VectorType t1, t2; if ((v = luax_tovector(L, index + 0,...
ci: Use ${{ github.ref_name }} instead of ${GITHUB_REF_NAME}. The former can be used in YAML too while the latter can only be used in bash.
@@ -705,9 +705,9 @@ jobs: export IMAGE="${{ env.REGISTRY }}/${{ env.CONTAINER_REPO }}:${IMAGE_TAG}" # Use echo of cat to avoid printing a new line between files. - echo "$(cat pkg/resources/manifests/deploy.yaml) $(cat pkg/resources/crd/bases/gadget.kinvolk.io_traces.yaml)" > inspektor-gadget-${GITHUB_REF_NAME}.yaml + ...
netutils/ftpc: Fix warning about free() being implicitly defined
#include "ftpc_config.h" +#include <stdlib.h> + #include "netutils/ftpc.h" #include "ftpc_internal.h" -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -/*************************...
Introduce PY_PROTO_PLUGIN macro and use it
@@ -360,6 +360,29 @@ macro _ADD_PY_PROTO_OUT(Suf) { SET(PY_PROTO_SUFFIXES $PY_PROTO_SUFFIXES $Suf) } +### @usage: PY_PROTO_PLUGIN(Name Ext Tool DEPS <Dependencies>) +### +### Define protoc plugin for python with given Name that emits extra output with provided Extension +### using Tool. Extra dependencies are passed vi...
esp_event: extend register/unregister test case to cover overwriting existing handler works as expected
@@ -130,6 +130,9 @@ static esp_event_loop_args_t test_event_get_default_loop_args() static void test_event_simple_handler(void* event_handler_arg, esp_event_base_t event_base, int32_t event_id, void* event_data) { + if (!event_handler_arg) { + return; + } simple_arg_t* arg = (simple_arg_t*) event_handler_arg; xSemaphor...
npu2: Add a function to detect POWER9 DD1 Provide a convenience we'll use quite a bit to preserve backwards compatibility with DD1. Acked-by: Alistair Popple Cc: Frederic Barrat
#define VENDOR_CAP_PCI_DEV_OFFSET 0x0d +static bool is_p9dd1(void) +{ + struct proc_chip *chip = next_chip(NULL); + + return chip && + (chip->type == PROC_CHIP_P9_NIMBUS || + chip->type == PROC_CHIP_P9_CUMULUS) && + (chip->ec_level & 0xf0) == 0x10; +} + /* * We use the indirect method because it uses the same addresses...
Libraries should link on the SO
@@ -2,12 +2,12 @@ all : lib data_recorder test calibrate calibrate_client simple_pose_test CC?=gcc -CFLAGS:=-Iinclude/libsurvive -fPIC -g -O3 -Iredist -flto -DUSE_DOUBLE -std=gnu99 -rdynamic -llapacke -lcblas -lm #-fsanitize=address -fsanitize=undefined -Wall -Wno-unused-variable -Wno-switch -Wno-unused-but-set-variabl...
fixed embedded cart loading on Windows
@@ -2943,7 +2943,11 @@ void initConsole(Console* console, tic_mem* tic, FileSystem* fs, Config* config, char appPath[TICNAME_MAX]; #if defined(__TIC_WINDOWS__) - GetModuleFileNameA(NULL, appPath, sizeof appPath); + { + wchar_t wideAppPath[TICNAME_MAX]; + GetModuleFileNameW(NULL, wideAppPath, sizeof wideAppPath); + Wide...
OcAppleBootCompatLib: Fix Status overwrite with GetExecArea call
@@ -358,6 +358,7 @@ OcGetMemoryMap ( ) { EFI_STATUS Status; + EFI_STATUS Status2; BOOT_COMPAT_CONTEXT *BootCompat; EFI_PHYSICAL_ADDRESS Address; UINTN Pages; @@ -377,9 +378,9 @@ OcGetMemoryMap ( } if (BootCompat->Settings.SyncRuntimePermissions && BootCompat->ServiceState.FwRuntime != NULL) { - Status = BootCompat->Ser...
esp_adc: defined an example macro for attenuation
@@ -37,6 +37,8 @@ const static char *TAG = "EXAMPLE"; #endif #endif +#define EXAMPLE_ADC_ATTEN ADC_ATTEN_DB_11 + static int adc_raw[2][10]; static int voltage[2][10]; static bool example_adc_calibration_init(adc_unit_t unit, adc_atten_t atten, adc_cali_handle_t *out_handle); @@ -55,14 +57,14 @@ void app_main(void) //--...
decisions: improve ensure API
@@ -42,24 +42,36 @@ Integrate `kdbEnsure` in `kdbOpen(Key *errorKey, KeySet *contract)` but only all ## Implications -`elektraNotificationOpen` needs to be removed and instead we need a new API: +`elektraNotificationOpen` will only return a contract KeySet: ```c KeySet * contract = ksNew (0, KS_END); -elektraNotificati...
ETH:optimized double is_tagged check a double version of is_tagged, uses "free lanes" in _mm_cmpeq_epi16 to check a second tag this code was not yet tested for performance
@@ -285,6 +285,29 @@ determine_next_node (ethernet_main_t * em, } } +static_always_inline int +ethernet_frame_is_any_tagged (u16 type0, u16 type1) +{ +#if __SSE4_2__ + const __m128i ethertype_mask = _mm_set_epi16 (ETHERNET_TYPE_VLAN, + ETHERNET_TYPE_DOT1AD, + ETHERNET_TYPE_VLAN_9100, + ETHERNET_TYPE_VLAN_9200, + /* dup...
Construct non-fast array in ecma_op_array_species_create Fixes JerryScript-DCO-1.0-Signed-off-by: Peter Marki
@@ -704,7 +704,11 @@ ecma_op_array_species_create (ecma_object_t *original_array_p, /**< The object f if (ecma_is_value_undefined (constructor)) { - return ecma_make_object_value (ecma_op_new_fast_array_object (length)); + ecma_value_t length_val = ecma_make_uint32_value (length); + ecma_value_t new_array = ecma_op_cre...
crota: remove the bring-up feature Disable the debug command powerindebug. BRANCH=none TEST=make -j BOARD=crota
#define PD_MAX_CURRENT_MA 3000 #define PD_MAX_VOLTAGE_MV 20000 +#undef CONFIG_CMD_POWERINDEBUG + /* * Macros for GPIO signals used in common code that don't match the * schematic names. Signal names in gpio.inc match the schematic and are
fix: Delete unnecessary header references issue
@@ -15,9 +15,9 @@ BOAT_COPY := cp EXTERNAL_INC := -I'$(CURDIR)/../inc/os' -I'$(CURDIR)/../inc/apb' -I'$(CURDIR)/../inc/lwip' \ -I'$(CURDIR)/../inc' -I'$(CURDIR)/../inc/cm' \ - -I'$(CURDIR)/../inc/mbedtls' -I'$(CURDIR)/../inc/os/include' -I'$(CURDIR)/../inc/cJSON' -I'$(CURDIR)/../inc/bluetooth' \ + -I'$(CURDIR)/../inc/o...
Teak interop
@@ -22,7 +22,7 @@ LOG=/logs/log.txt if [ "$ROLE" == "client" ]; then # Wait for the simulator to start up. /wait-for-it.sh sim:57832 -s -t 30 - CLIENT_ARGS="server 443 --download /downloads -s --no-quic-dump --no-http-dump" + CLIENT_ARGS="server 443 --download /downloads -s --no-quic-dump --no-http-dump --timeout=5s" i...
Change var name to test AppVeyor build failure notification
@@ -32,7 +32,7 @@ namespace NF.TestApplication_NEW //////////////////////////////////////////////////////////////////////////////////// // ToString() test int thisIsAnInteger = 64; - var testString = thisIsAnInteger.ToString(); + var testString = thisIsAnInteger_WRONG_NAME.ToString(); //////////////////////////////////...
Keep deb file on Dockerfile
@@ -46,7 +46,7 @@ RUN apt-get update && apt-get install -y \ procps \ && rm -rf /var/lib/apt/lists/* COPY --from=BUILD /tmp/datafari/debian7/installer/dist/datafari.deb . -RUN DEBIAN_FRONTEND=noninteractive dpkg -i datafari.deb && rm -rf datafari.deb +RUN DEBIAN_FRONTEND=noninteractive dpkg -i datafari.deb EXPOSE 8080 ...
Fix openssl 3 cmake build issues
@@ -18,9 +18,11 @@ option(QUIC_USE_SYSTEM_LIBCRYPTO "Use system libcrypto if openssl TLS" OFF) # the openssl version cloned if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/openssl/CHANGES") message(STATUS "Configuring for OpenSSL 1.1") + set(EXPECTED_OPENSSL_VERSION 1.1.1) else() set(QUIC_USE_OPENSSL3 ON) message(STATUS "Confi...
MARS: Amend type 'sfo'
70 or Ocean reanalysis 71 fx Flux forcing 72 fu Fill-up -73 sfo Simulation forced with observations +73 sfo Simulations with forcing 80 fcmean Forecast mean 81 fcmax Forecast maximum 82 fcmin Forecast minimum
Ikea Styrbar improve top/side buttons detection If a long press a side button is aborted too early, this could have locked up top/bottom buttons ON/OFF commands until pressing a second time. The PR checks the timestamp to verify that previous command id 0x09 is part of a long press sequence.
@@ -5038,6 +5038,11 @@ void DeRestPluginPrivate::checkSensorButtonEvent(Sensor *sensor, const deCONZ::A if (zclFrame.payload().at(0) == 0x00 && zclFrame.payload().at(1) == 0x00) { sensor->previousCommandId = 0x09; + ResourceItem *item = sensor->item(RStateButtonEvent); + if (item) + { + item->setLastZclReport(deCONZ::s...
fix copypasted message
@@ -392,7 +392,7 @@ void TFullModel::Calc(TConstArrayRef<TConstArrayRef<float>> floatFeatures, } const size_t docCount = Max(catFeatures.size(), floatFeatures.size()); CB_ENSURE(ObliviousTrees.GetNumFloatFeatures() == 0 || !floatFeatures.Empty(), "Model has float features but no float features provided"); - CB_ENSURE(O...
Added error checking for OBJ_create fixes segmentation fault in case of not enough memory for object creation CLA: trivial
@@ -691,6 +691,8 @@ int OBJ_create(const char *oid, const char *sn, const char *ln) /* Convert numerical OID string to an ASN1_OBJECT structure */ tmpoid = OBJ_txt2obj(oid, 1); + if (tmpoid == NULL) + return 0; /* If NID is not NID_undef then object already exists */ if (OBJ_obj2nid(tmpoid) != NID_undef) {
PG command timeout
@@ -505,7 +505,7 @@ namespace MiningCore logger.ThrowLogPoolStartupException("Postgres configuration: invalid or missing 'user'"); // build connection string - var connectionString = $"Server={pgConfig.Host};Port={pgConfig.Port};Database={pgConfig.Database};User Id={pgConfig.User};Password={pgConfig.Password};CommandTi...
router: fix Coverity time of check time of use CID 149530
/* - * Copyright 2013-2021 Fabian Groffen + * Copyright 2013-2022 Fabian Groffen * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -1155,6 +1155,7 @@ router_readconfig(router *orig, { FILE *cnf; char *buf; + int fd; size_t len = 0; ...
Fix iOS compilation flags
@@ -36,10 +36,10 @@ set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /WINMD /NODEFAULTLIB endif(WIN32) if(IOS) -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS_RELEASE} -fvisibility=hidden") -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS_RELEASE} -std=c++11 -ftemplate-depth=1024 -fexceptions -frtti -fvisibility=hidden -fvisibil...
sync comments with schema
@@ -15,9 +15,8 @@ enum EBitsPerDocumentFeature : ubyte { BPDF_32 = 32 } -// Represents chunk of feature values. Depending on whether feature is numeric or categorical one -// of `Quants` or `HashIndices` will not be null. Chunk itself doesn't store information on feature -// index or range of documents, it's expected t...
libhfcommon/util: correct declaration of util_getProgAddr for macos
@@ -824,7 +824,7 @@ lhfc_addr_t util_getProgAddr(const void* addr) { return (lhfc_addr_t)dl_iterate_phdr(addrStatic_cb, (void*)addr); } #else /* !defined(_HF_ARCH_DARWIN) */ -bool util_getProgAddr(const void* addr HF_ADDR_UNUSED) { +lhfc_addr_t util_getProgAddr(const void* addr) { return LHFC_ADDR_NOTFOUND; } #endif /*...
doc: fix formatting of up2 doc Update doc to remove trailing spaces on lines, wrap long lines, add formatting missed during regular review.
@@ -21,7 +21,8 @@ Prerequisites In this tutorial two Linux privileged VMs are started by the ACRN hypervisor. To set up the Linux root filesystems for each VM, follow the Clear Linux OS -`bare metal installation guide <https://clearlinux.org/documentation/clear-linux/get-started/bare-metal-install#bare-metal-install>`_...
profile snapshot saving
@@ -228,6 +228,12 @@ static void Train( profile.StartNextIteration(); + if (timer.Passed() > ctx->OutputOptions.GetSnapshotSaveInterval()) { + profile.AddOperation("Save snapshot"); + ctx->SaveProgress(); + timer.Reset(); + } + trainOneIterationFunc(learnData, testDataPtrs, ctx); bool calcAllMetrics = DivisibleOrLastIt...
remove duplicated Detection reinit and manage reinit message transmitted by detector module
@@ -373,9 +373,8 @@ unsigned char RouteTB_ResetNetworkDetection(vm_t *vm) return 1; if (Robus_SendMsg(vm, &msg)) return 1; - - // reinit detection - Detec_InitDetection(); + // run luos_loop() to manage the 2 previous broadcast msgs. + Luos_Loop(); return 0; }
Tidy config file
-# Welcome to Jekyll! -# -# This config file is meant for settings that affect your whole blog, values -# which you are expected to set up once and rarely edit after that. If you find -# yourself editing this file very often, consider using Jekyll's data files -# feature for the data you need to update frequently. -# -...
log: add a null check and fix indentation
@@ -171,6 +171,9 @@ int log_get_level(const char *module) { int i = 0; + if(module == NULL) { + return -1; + } while(all_modules[i].name != NULL) { if(!strcmp(module, all_modules[i].name)) { return *all_modules[i].curr_log_level;
Scripts: fix the Code Table unit parentheses
@@ -69,11 +69,13 @@ sub WriteFile { print MYFILE "# $title\n"; } my $unit_text = ($unit eq "" ? "" : "($unit)"); + $unit_text =~ s/\(\(Code /(Code /; + $unit_text =~ s/\)\)/)/; if ($codeFlag =~ /\-/) { print MYFILE "# $codeFlag $meaning $unit_text\n"; } else { - my $codeFlag1 = $codeFlag; - my $codeFlag2 = $codeFlag; +...
Align code styles of indent and so on
@@ -915,6 +915,8 @@ static int ssl_tls13_parse_finished_message( mbedtls_ssl_context *ssl, return( 0 ); } + +#if defined(MBEDTLS_SSL_CLI_C) static int ssl_tls13_postprocess_server_finished_message( mbedtls_ssl_context *ssl ) { int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; @@ -971,14 +973,19 @@ cleanup: } return( ret...
Replace Ninja with Make as default build instruction on Linux
@@ -98,7 +98,14 @@ With this one function call: On Windows it is recommended to use [CMake UI](https://cmake.org/runningcmake/). Alternatively you can generate a Visual Studio project map using CMake in command line: `cmake -B./build/ -DCMAKE_BUILD_TYPE=Debug -G "Visual Studio 16 2019" -A x64 ./` -On Linux, use CMake w...
Make sure that all template calls to log controller features are done via GetLogController
@@ -287,7 +287,7 @@ namespace ARIASDK_NS_BEGIN static status_t SetTransmitProfile(TransmitProfile profile) { if (isHost()) - LM_SAFE_CALL(SetTransmitProfile, profile); + LM_SAFE_CALL(GetLogController()->SetTransmitProfile, profile); return STATUS_EPERM; // Permission denied } @@ -301,7 +301,7 @@ namespace ARIASDK_NS_BE...
feat: can specify subreddits for searching; ex: Type in a Discord Channel reddit.search#c_programming+cs_50 Segmentation Fault ; to search Segmentation Fault keyword at c_programming and cs_50 subreddits
+#define _GNU_SOURCE /* asprintf() */ #include <stdio.h> #include <stdlib.h> +#include <string.h> /* strchr() */ +#include <ctype.h> /* isalpha() */ #include <assert.h> #include "reddit.h" @@ -36,15 +39,46 @@ void on_search( const struct discord_user *bot, const struct discord_message *msg) { + char *subreddits = NULL;...
Add schwaaa's plugins to the readme
@@ -103,3 +103,4 @@ and use to get a basic plugin experience: - [MIP2](https://github.com/skei/MIP2), host and plugins - [clap-sys](https://github.com/glowcoil/clap-sys), rust binding +- [schwaaa's plugins](https://github.com/schwaaa/clap-plugin), basic framework for prototyping CLAP audio plugins using Dear ImGui as t...
Shrink facil CPU core limit to 7 cores (8 processes) Testing provided generously by Michael from TechEmpower show that after 6 workers or so, performance starts to degrade rather than improve (perhaps a system wide memory allocation lock contention?).
@@ -15,19 +15,25 @@ Feel free to copy, use and enjoy according to the license provided. #ifndef FACIL_PRINT_STATE /** -When FACIL_PRINT_STATE is set to 1, facil.io will print out common messages -regarding the server state (start / finish / listen messages). + * When FACIL_PRINT_STATE is set to 1, facil.io will print o...
[httpclient] implement --initial-udp-payload-size
@@ -469,11 +469,14 @@ static void usage(const char *progname) " -x <host:port>\n" " specifies the destination of the CONNECT request; implies\n" " `-m CONNECT`\n" + " --initial-udp-payload-size <bytes>\n" + " specifies the udp payload size of the initial message (default: %" PRIu16 ")\n" " --max-udp-payload-size <bytes...
HSL Sponge: Fix polling results
@@ -413,10 +413,6 @@ static int dnut_poll_results(struct dnut_card *card) uint32_t action_addr; uint32_t job_data[112/sizeof(uint32_t)]; - if (!poll_trace_enabled()) - return 1; - - poll_trace("POLLING Result Registers\n"); for (i = 0, action_addr = ACTION_JOB_OUT; i < ARRAY_SIZE(job_data); i++, action_addr += sizeof(u...
util/stm32mon: Fix resource leak Found-by: Coverity Scan Commit-Ready: Patrick Georgi Tested-by: Patrick Georgi
@@ -871,6 +871,7 @@ int write_flash(int fd, struct stm32_def *chip, const char *filename, if (res <= 0) { fprintf(stderr, "Cannot read %s\n", filename); free(buffer); + fclose(hnd); return -EIO; } fclose(hnd);
doc: add link to Elektra's package in Alpine Linux
@@ -13,6 +13,7 @@ For the following Linux distributions and package managers 0.8 packages are avai - [Gentoo](http://packages.gentoo.org/package/app-admin/elektra) - [Linux Mint](https://community.linuxmint.com/software/view/elektra-bin) - [LinuxBrew](https://github.com/Linuxbrew/homebrew-core/blob/master/Formula/elekt...
clap_output_events now has try_push() instead
@@ -227,10 +227,11 @@ typedef struct clap_event_midi2 { typedef struct clap_input_events { void *ctx; // reserved pointer for the list - uint32_t (*size)(const struct clap_input_events *list); + CLAP_NODISCARD uint32_t (*size)(const struct clap_input_events *list); // Don't free the return event, it belongs to the list...
Fix counting logical processors
@@ -1078,7 +1078,7 @@ VOID PhSipUpdateCpuPanel( { case RelationProcessorCore: processorCoreCount++; - processorLogicalCount += PhCountBits((ULONG)processorInfo->ProcessorMask); // RtlNumberOfSetBitsUlongPtr + processorLogicalCount += PhCountBitsUlongPtr(processorInfo->ProcessorMask); // RtlNumberOfSetBitsUlongPtr break...
build: removing obsolete m4 macro AC_CONFIG_HEADER
@@ -41,7 +41,7 @@ AH_TEMPLATE([LIQUID_FFTOVERRIDE], [Force internal FFT even if libfftw is availa AH_TEMPLATE([LIQUID_SIMDOVERRIDE], [Force overriding of SIMD (use portable C code)]) AH_TEMPLATE([LIQUID_STRICT_EXIT], [Enable strict program exit on error]) -AC_CONFIG_HEADER(config.h) +AC_CONFIG_HEADERS([config.h]) AH_TO...
Improve Output Format of Merged WAN Perf Data
@@ -122,6 +122,7 @@ $PSDefaultParameterValues['*:ErrorAction'] = 'Stop' class FormattedResult { [double]$Usage; + [double]$DiffPrev; [int]$NetMbps; [int]$RttMs; [int]$QueuePkts; @@ -145,8 +146,7 @@ class FormattedResult { [int]$DurationMs, [bool]$Pacing, [int]$RateKbps, - [int]$RemoteKbps, - [double]$BottleneckPercenta...
Legacy: Fix double ready-to-boot signaling
@@ -197,11 +197,6 @@ BdsBootDeviceSelect ( EFI_DEVICE_PATH_PROTOCOL *DevicePath; EFI_HANDLE ImageHandle; - // - // Signal the EVT_SIGNAL_READY_TO_BOOT event - // - EfiSignalEventReadyToBoot (); - // // If there is simple file protocol which does not consume block Io protocol, create a boot option for it here. // @@ -46...
readme: update the example quic trace
@@ -39,9 +39,9 @@ $ sudo h2olog quic -p $(pgrep -o h2o) Here's an example trace. ``` -{"type": "accept", "at": 1580154303455, "master_conn_id": 1, "dcid": "4070a82916f79d71"} -{"type": "packet_prepare", "at": 1580154303457, "master_conn_id": 1, "first_octet": 192, "dcid": "9e4605bc54ec8b9d"} -{"type": "packet_commit", ...
fix for doxygen error on oc_stop_multicast
@@ -1983,9 +1983,6 @@ bool oc_do_site_local_ipv6_multicast(const char *uri, const char *query, * stop the multicast update (e.g. do not handle the responses) * * @param[in] response the response that should not be handled. - * - * @return True if the client successfully dispatched the multicast discovery - * request */...
in_tcp: on invalid JSON message, reset buffer length
@@ -92,7 +92,7 @@ int tcp_conn_event(void *data) size = conn->buf_size + ctx->chunk_size; tmp = flb_realloc(conn->buf_data, size); if (!tmp) { - perror("realloc"); + flb_errno(); return -1; } flb_trace("[in_tcp] fd=%i buffer realloc %i -> %i", @@ -136,11 +136,11 @@ int tcp_conn_event(void *data) return 0; } else if (re...
[scripts] cert-staple.sh enhancements support validation from list of multiple signers attempt to handle older (end-of-life) versions of OpenSSL (thx avij)
@@ -21,9 +21,17 @@ function errexit { OCSP_URI=$(openssl x509 -in "$CERT_PEM" -ocsp_uri -noout) [[ $? = 0 ]] && [[ -n "$OCSP_URI" ]] || exit 1 +# exception for (unsupported, end-of-life) older versions of OpenSSL +OCSP_HOST= +OPENSSL_VERSION=$(openssl version) +if [[ "${OPENSSL_VERSION}" != "${OPENSSL_VERSION#OpenSSL 1...
[mod_webdav] surround Lock-Token with "<...>" (thx yangfl) github: x-ref:
@@ -5040,20 +5040,21 @@ mod_webdav_lock (connection * const con, const plugin_config * const pconf) /* create locktoken * (uuid_unparse() output is 36 chars + '\0') */ uuid_t id; - char lockstr[sizeof("urn:uuid:") + 36] = "urn:uuid:"; - lockdata.locktoken.ptr = lockstr; - lockdata.locktoken.used = sizeof(lockstr); + ch...
Install all the internal header files, including the pallene_core.h
@@ -40,7 +40,11 @@ PLATS= guess aix bsd c89 freebsd generic linux linux-readline macosx mingw posix # What to install. TO_BIN= lua luac -TO_INC= lua.h luaconf.h lualib.h lauxlib.h lua.hpp +TO_INC= lua.hpp \ + lapi.h lauxlib.h lcode.h lctype.h ldebug.h ldo.h lfunc.h lgc.h ljumptab.h \ + llex.h llimits.h lmem.h lobject.h...
Fixed typo for http admin tests
@@ -44,14 +44,14 @@ struct activator { }; //Local function prototypes -int alias_test_post(void *handle, struct mg_connection *connection, const char *path, const char *data, size_t length); +int alias_test_put(void *handle, struct mg_connection *connection, const char *path, const char *data, size_t length); int webso...
doc: fix duplicate line due to rebase
@@ -292,8 +292,6 @@ you up to date with the multi-language support provided by Elektra. - Finalize 1.0 decisions. _(Markus Raab)_ - Update [API design document](/doc/DESIGN.md) _(Markus Raab and Stefan Hanreich)_ -- <<TODO>> -- Changed api documentation terms [current, latest] to [latest, master]. The api documentation...
Matrix22 template constructor and make identity no longer use memset.
@@ -1181,8 +1181,9 @@ template <class T> inline Matrix22<T>::Matrix22 () { - memset (x, 0, sizeof (x)); x[0][0] = 1; + x[0][1] = 0; + x[1][0] = 0; x[1][1] = 1; } @@ -1326,8 +1327,9 @@ template <class T> inline void Matrix22<T>::makeIdentity() { - memset (x, 0, sizeof (x)); x[0][0] = 1; + x[0][1] = 0; + x[1][0] = 0; x[1...
Add QUIC protocol extensions section
@@ -203,6 +203,14 @@ if their corresponding crypto helper library is built: - bsslclient: BoringSSL client - bsslserver: BoringSSL server +QUIC protocol extensions +------------------------- + +The library implements the following QUIC protocol extensions: + +- `An Unreliable Datagram Extension to QUIC + <https://quicw...
PIC32-FPU: fix compile for non-fpu hardware
@@ -132,14 +132,11 @@ os_bytes_to_stack_aligned_words(int byts) { os_stack_t * os_arch_task_stack_init(struct os_task *t, os_stack_t *stack_top, int size) { - int lazy_space = 0; + int ctx_space = os_bytes_to_stack_aligned_words(sizeof(struct ctx)); #if MYNEWT_VAL(HARDFLOAT) - lazy_space += os_bytes_to_stack_aligned_wo...
doc: add section describing build server configuration
@@ -163,3 +163,43 @@ If you have issues that are related to the build system you can open a normal issue and tag it with `build` and `question`. If you feel like your inquiry does not warrent a issue on its own, please use [our buildserver issue](https://issues.libelektra.org/160). + +## Jenkins + +### Jenkins libelekt...
peview: Fix 32bit build warning from previous commit
@@ -265,14 +265,14 @@ VOID PvDestroyExportNode( #define END_SORT_FUNCTION \ if (sortResult == 0) \ - sortResult = uintptrcmp(node1->UniqueId, node2->UniqueId); \ + sortResult = uintptrcmp((ULONG_PTR)node1->UniqueId, (ULONG_PTR)node2->UniqueId); \ \ return PhModifySort(sortResult, ((PPV_EXPORT_CONTEXT)_context)->TreeNew...
a little more in usage()
@@ -70,9 +70,9 @@ static void usage(const char *prog) " -n, --num <int> How many elements in the table for random generated array.\n" " -l, --len <int> length of the random string.\n" " -s, --software Use software approach.\n" - " -m, --method <0/1> 0: compare one by one (Only in SW).\n" - " 1: Use hash table\n" - " 2:...
Use py2/py3 compatible version of Iterable
@@ -3,7 +3,10 @@ from .core import check from .background import comoving_radial_distance, growth_rate, growth_factor from .pyutils import _check_array_params, NoneArr import numpy as np -import collections +try: + from collections.abc import Iterable +except ImportError: # for py2.7 + from collections import Iterable ...