message
stringlengths
6
474
diff
stringlengths
8
5.22k
BugID:18314846: Add armlibc/sys to include path
@@ -14,7 +14,7 @@ endif else $(NAME)_SOURCES := compilers/armlibc/armcc_libc.c endif -GLOBAL_INCLUDES += compilers/armlibc +GLOBAL_INCLUDES += compilers/armlibc compilers/armlibc/sys else ifeq ($(COMPILER),rvct) $(NAME)_SOURCES := compilers/armlibc/armcc_libc.c GLOBAL_INCLUDES += compilers/armlibc \
nimble/host: Fix checking dst_len in adv_set_fields This function assumes that dst_len is always a valid pointer.
@@ -237,9 +237,8 @@ adv_set_fields(const struct ble_hs_adv_fields *adv_fields, int8_t tx_pwr_lvl; int rc; - if (dst_len) { + BLE_HS_DBG_ASSERT(dst_len); *dst_len = 0; - } /*** 0x01 - Flags. */ /* The application has two options concerning the flags field:
filter_grep: adjust record accessor api usage
@@ -149,7 +149,7 @@ static inline int grep_filter_data(msgpack_object map, struct grep_ctx *ctx) mk_list_foreach(head, &ctx->rules) { rule = mk_list_entry(head, struct grep_rule, _head); - ret = flb_ra_regex_match(rule->ra, map, rule->regex); + ret = flb_ra_regex_match(rule->ra, map, rule->regex, NULL); if (ret <= 0) {...
Prototyping for select model support functions.
@@ -2818,10 +2818,16 @@ int check_blocking_pain(entity *ent, s_collision_attack *attack); void set_blocking_action(entity *ent, entity *other, s_collision_attack *attack); void set_blocking_animation(entity *ent, s_collision_attack *attack); -// Select player model & colors +// Select player models. int find_selectable...
Forget to drop input_data
@@ -289,6 +289,7 @@ def _fix_user_data(orig_cmd, shell, user_input, user_output, strategy): dst.update(srcs) # Drop data marked by user with None destination + input_data = {k: v for k, v in input_data.iteritems() if v} output_data = {k: v for k, v in output_data.iteritems() if v} return subprocess.list2cmdline(cmd) if...
Do not use the new TLS code for non-threaded builds even if USE_TLS is set Workaround for as that exposed a problem in the new code (which was intended to speed up multithreaded code only anyway).
@@ -73,7 +73,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include "common.h" -#if defined(USE_TLS) +#if defined(USE_TLS) && defined(SMP) #define COMPILE_TLS #if defined(__GLIBC_PREREQ) #if !__GLIBC_PREREQ(2,20)
fix error code on mprotect failure
@@ -651,6 +651,7 @@ static bool mi_os_commitx(void* addr, size_t size, bool commit, bool conservativ // WebAssembly guests can't control memory protection #else err = mprotect(start, csize, (commit ? (PROT_READ | PROT_WRITE) : PROT_NONE)); + if (err != 0) { err = errno; } #endif if (err != 0) { _mi_warning_message("com...
Added server side port block in accept().
@@ -569,7 +569,7 @@ getProtocol(int type, char *proto, size_t len) } static int -doBlockConnection(int fd, const struct sockaddr *addr, socklen_t addrlen) +doBlockConnection(int fd, const struct sockaddr *addr) { in_port_t port; @@ -4478,6 +4478,13 @@ accept(int sockfd, struct sockaddr *addr, socklen_t *addrlen) WRAP_C...
Add check on zero returned by EVP_CIPHER_CTX_ctrl.
@@ -150,7 +150,7 @@ static int s2n_composite_cipher_aes_sha_initial_hmac(struct s2n_session_key *key */ int ctrl_ret = EVP_CIPHER_CTX_ctrl(key->evp_cipher_ctx, EVP_CTRL_AEAD_TLS1_AAD, S2N_TLS12_AAD_LEN, ctrl_buf); - S2N_ERROR_IF(ctrl_ret < 0, S2N_ERR_INITIAL_HMAC); + S2N_ERROR_IF(ctrl_ret <= 0, S2N_ERR_INITIAL_HMAC); *...
integration: Add test for profile.
@@ -258,6 +258,25 @@ func TestProcessCollector(t *testing.T) { runCommands(commands, t) } +func TestProfile(t *testing.T) { + commands := []*command{ + { + name: "Run test pod", + cmd: busyboxPodCommand("while true; do echo foo > /dev/null; done"), + expectedRegexp: "pod/test-pod created", + }, + waitUntilTestPodReady,...
update ya tool arc restore algorithm
}, "arc": { "formula": { - "sandbox_id": [357846697], + "sandbox_id": [358313625], "match": "arc" }, "executable": {
Add missing prototype wsmc_set_selectors_from_uri
@@ -752,6 +752,8 @@ typedef enum { void wsmc_clear_action_option(client_opt_t * options, unsigned long); + void wsmc_set_selectors_from_uri(const char *resource_uri, + client_opt_t * options); void wsmc_set_options_from_uri(const char *resource_uri, client_opt_t * options);
Added center() function to blit::Rect
@@ -118,8 +118,13 @@ namespace blit { return Point(x + w, y + h); } + Point center() const { + return Point(x + w/2, y + h/2); + } + }; inline Rect operator* (Rect lhs, const float a) { lhs *= a; return lhs; } } +
VERSION bump to version 1.3.13
@@ -27,7 +27,7 @@ endif() # micro version is changed with a set of small changes or bugfixes anywhere in the project. set(SYSREPO_MAJOR_VERSION 1) set(SYSREPO_MINOR_VERSION 3) -set(SYSREPO_MICRO_VERSION 12) +set(SYSREPO_MICRO_VERSION 13) set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI...
Make test dependent on num devices
@@ -16,6 +16,11 @@ int check_res(double * v, int n) { } int main() { + int max_devs = omp_get_num_devices(); + + // not enough devices for testing? + if (max_devs < 2) return 0; + int devnums = 3; int devids[] = {0,1, omp_get_initial_device()}; int n = N;
build: adapt build.bat to work in EWDK environment EWDK environment works with msbuild.
@@ -37,10 +37,6 @@ set BUILD_SPEC= set BUILD_ARCH= set BUILD_FAILED= -set VSFLAVOR=Professional -if exist "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\devenv.com" set VSFLAVOR=Community -echo USING !VSFLAVOR! Visual Studio - rem Parse arguments :argloop shift /2 @@ -166,14 +162,13 @@ if %B...
client session BUGFIX missing config header
* * This source is compiled only with libssh. * - * Copyright (c) 2015 CESNET, z.s.p.o. + * Copyright (c) 2015 - 2021 CESNET, z.s.p.o. * * This source code is licensed under BSD 3-Clause License (the "License"). * You may not use this file except in compliance with the License. #ifdef ENABLE_DNSSEC # include <validator...
Add Copyright notice to run_kwstyle.sh
#! /bin/bash +# Copyright 2016 Amazon.com, Inc. or its affiliates. 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. +# A copy of the License is located at +# +# http://aws.amazon.com/apache2.0 +# +# or in the "...
oc_pstat: fix bug in oc_pstat_handle_state()
@@ -124,7 +124,7 @@ oc_pstat_handle_state(oc_sec_pstat_t *ps, int device) ps->tm = 2; pstat->om = 3; ps->sm = 4; - memset(pstat[device].rowneruuid.id, 0, 16); + memset(ps->rowneruuid.id, 0, 16); oc_core_regen_unique_ids(device); oc_sec_doxm_default(device); oc_sec_cred_default(device);
pbio/int_math: Fix assert for large product. Now it matches the limits in the docstring.
@@ -266,7 +266,7 @@ int32_t pbio_int_math_mult_then_div(int32_t a, int32_t b, int32_t c) { // Get long product. uint64_t x = (uint64_t)(a < 0 ? -a : a) * (uint64_t)(b < 0 ? -b : b); - assert(x < ((int64_t)1) << 48); + assert(x < ((int64_t)1) << 47); assert(c != 0); uint32_t div = (c < 0 ? -c : c);
OcTimerLib: TimerResolution was undefined for AMD CPU case Is '10' the right value for AMD case?
@@ -49,13 +49,12 @@ RecalculateTSC ( EFI_TPL PrevTpl; TimerAddr = 0; + TimerResolution = 10; // // Intel timer support. // if (PciRead16 (PCI_ICH_LPC_ADDRESS (0)) == CPUID_VENDOR_INTEL) { - TimerResolution = 10; - // // Check if ACPI I/O Space Is Enabled On LPC device. //
Add missing ConnectIcon
@@ -403,6 +403,25 @@ export const VariableIcon = () => ( </svg> ); +interface ConnectIconProps { + connected: boolean; +} + +export const ConnectIcon = ({ connected }: ConnectIconProps) => ( + <svg width="24" height="24" viewBox="0 0 24 24"> + <ellipse + ry="10" + id="svg_1" + cy="12" + cx="12" + strokeWidth="3" + stro...
tests/basics/class_super.py: Add tests for store/delete of super attr.
@@ -34,3 +34,14 @@ class B(A): print(super().bar) # accessing attribute after super() return super().foo().count(2) # calling a subsequent method print(B().foo()) + +# store/delete of super attribute not allowed +assert hasattr(super(B, B()), 'foo') +try: + super(B, B()).foo = 1 +except AttributeError: + print('Attribu...
Makefile.include: added support for Makefile in MODULES
@@ -152,6 +152,8 @@ ifdef MODULES UNIQUEMODULES = $(call uniq,$(MODULES)) MODULEDIRS = ${wildcard ${addprefix $(CONTIKI)/, $(UNIQUEMODULES)}} MODULES_SOURCES = ${foreach d, $(MODULEDIRS), ${subst ${d}/,,${wildcard $(d)/*.c}}} + MODULES_INCLUDES = ${wildcard ${foreach d, $(MODULEDIRS), $(d)/Makefile.${notdir $(d)}}} + -...
Rust: Rename get_size and get_cursor
@@ -125,7 +125,7 @@ impl KeySet { } /// Return the number of keys that ks contains. - pub fn get_size(&self) -> usize { + pub fn size(&self) -> usize { unsafe { elektra_sys::ksGetSize(self.as_ref()).try_into().unwrap() } } @@ -172,7 +172,7 @@ impl KeySet { } /// Get the KeySet internal cursor. - pub fn get_cursor(&self...
v2.0.41 landed
-ejdb2 (2.0.41) UNRELEASED; urgency=medium +ejdb2 (2.0.41) testing; urgency=medium * Fixed race condition on database open on slow devices - -- Anton Adamansky <adamansky@gmail.com> Tue, 18 Feb 2020 18:30:56 +0700 + -- Anton Adamansky <adamansky@gmail.com> Tue, 18 Feb 2020 18:55:57 +0700 ejdb2 (2.0.40) testing; urgency...
Parser: Don't try to print frame 0 (whoops).
@@ -4528,7 +4528,7 @@ static void build_error(lily_parse_state *parser) if (parser->vm->include_last_frame_in_trace == 0) frame = frame->prev; - while (frame->function) { + while (frame->prev) { lily_function_val *func = frame->function; const char *class_name = func->class_name; const char *func_name = func->trace_nam...
fixed bug in john skipped hashes counter
@@ -1068,12 +1068,12 @@ while(1) eapa = (eapauth_t*)hcptr->eapol; if(eapa->type != EAPOL_KEY) { - hccapcapskipped++; + johnskipped++; continue; } if(hcptr->eapol_size != ntohs(eapa->len) +4) { - hccapcapskipped++; + johnskipped++; continue; } @@ -1081,18 +1081,18 @@ while(1) keyver = ntohs(wpak->keyinfo) & WPA_KEY_INFO...
remove NvmDimmDriverBindingStart error checking WA
@@ -106,11 +106,7 @@ NVM_API int nvm_init() if(!g_fast_path) { - if (EFI_SUCCESS != NvmDimmDriverDriverBindingStart(&gNvmDimmDriverDriverBinding, FakeBindHandle, NULL)) - { - NVDIMM_ERR("Nvm Dimm driver binding start failed.\n"); - return NVM_ERR_UNKNOWN; - } + NvmDimmDriverDriverBindingStart(&gNvmDimmDriverDriverBindi...
neon/cvt: fix a couple of s390x implementations' NaN handling The s390x functions return *_MAX not 0 on NaN. Luckily the fix is easy and should perform well.
@@ -353,8 +353,10 @@ simde_int64x2_t simde_vcvtq_s64_f64(simde_float64x2_t a) { #if defined(SIMDE_ARM_NEON_A64V8_NATIVE) return vcvtq_s64_f64(a); - #elif defined(SIMDE_ZARCH_ZVECTOR_13_NATIVE) + #elif defined(SIMDE_ZARCH_ZVECTOR_13_NATIVE) && defined(SIMDE_FAST_NANS) return vec_signed(a); + #elif defined(SIMDE_ZARCH_ZV...
pnmdec,PAM: validate depth before calculating bytes_per_px fixes potential integer overflow with corrupt files.
@@ -117,8 +117,13 @@ static size_t ReadPAMFields(PNMInfo* const info, size_t off) { } } if (!(info->seen_flags & TUPLE_FLAG)) { + if (info->depth > 0 && info->depth <= 4) { info->seen_flags |= TUPLE_FLAG; info->bytes_per_px = info->depth * (info->max_value > 255 ? 2 : 1); + } else { + fprintf(stderr, "PAM: invalid bitd...
Load cached sensor state buttonevent from db
@@ -526,11 +526,6 @@ void Sensor::jsonToState(const QString &json) ResourceItem *item = itemForIndex(i); const ResourceItemDescriptor &rid = item->descriptor(); - if (item->descriptor().suffix == RStateButtonEvent) - { // set only from live data - continue; - } - if (strncmp(rid.suffix, "state/", 6) == 0) { const char ...
Added Nextron Systems to the list we use YARA a lot ... created a rule base of over 9000 rules in 6 years
@@ -89,6 +89,7 @@ awesome list of [YARA-related stuff](https://github.com/InQuest/awesome-yara). * [McAfee Advanced Threat Defense](http://mcafee.com/atd) * [Metaflows](http://www.metaflows.com) * [NBS System](https://www.nbs-system.com/) +* [Nextron Systems](https://www.nextron-systems.com) * [Nozomi Networks](http://...
Dockerfile: update some Python deps Protobuf linting somehow broken (run `./scripts/lint-python`). We take the opportunity to update mypy and all Python linting tools.
@@ -84,11 +84,11 @@ RUN rm /tmp/requirements.txt # Python modules for CI RUN python3 -m pip install --upgrade \ - pylint==2.11.1 \ + pylint==2.13.9 \ pylint-protobuf==0.20.2 \ - black==21.11b1 \ - mypy==0.910 \ - mypy-protobuf==3.0.0 + black==22.3.0 \ + mypy==0.960 \ + mypy-protobuf==3.2.0 # Python modules for packagin...
out_logdna: register upstream with instance
@@ -324,6 +324,7 @@ static struct flb_logdna *logdna_config_create(struct flb_output_instance *ins, return NULL; } ctx->u = upstream; + flb_output_upstream_set(ctx->u, ins); /* Set networking defaults */ flb_output_net_default(FLB_LOGDNA_HOST, atoi(FLB_LOGDNA_PORT), ins);
Python 3.5 was updated
@@ -37,10 +37,10 @@ if [ "${CB_BUILD_AGENT}" == 'python34-linux-x86_64-release' ]; then fi if [ "${CB_BUILD_AGENT}" == 'python35-linux-x86_64-release' ]; then - ln -s /home/travis/virtualenv/python3.5.4/bin/python-config /home/travis/virtualenv/python3.5.4/bin/python3-config; + ln -s /home/travis/virtualenv/python3.5.5...
Fix device reset after build updates when using custom services
@@ -1110,6 +1110,18 @@ VOID PhInitializeKph( PPH_STRING kphSigFileName = NULL; PPH_STRING kphServiceName = NULL; + if (!(kphDirectory = PhGetApplicationDirectory())) + return; + + kphServiceName = PhGetStringSetting(L"KphServiceName"); + + if (kphServiceName && PhIsNullOrEmptyString(kphServiceName)) + PhClearReference(...
fec/autotest: removing exit() call from golay2412 autotest
/* - * Copyright (c) 2007 - 2015 Joseph Gaeddert + * Copyright (c) 2007 - 2020 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 unsigned int golay2412_generate_error_vector(unsigned int _n) { ...
remove undesirable parenthesis from output
@@ -271,17 +271,17 @@ ShowErrorCommand( if (pCommandStatus->GeneralStatus != NVM_SUCCESS) { ReturnCode = MatchCliReturnCode(pCommandStatus->GeneralStatus); } - Print(L"Failed to get error logs from DIMM (" FORMAT_STR L")\n", DimmStr); + Print(L"Failed to get error logs from DIMM " FORMAT_STR L"\n", DimmStr); continue; ...
Comment node loader parts to allow it to compile.
@@ -359,14 +359,18 @@ void node_loader_impl_async_discover(uv_async_t * async) assert(status == napi_ok); /* Create node function */ + /* loader_impl_node_function node_func = malloc(sizeof(struct loader_impl_py_function_type)); + */ /* TODO: Check if function_ptr has to be persistent */ + /* node_func->func = function...
Fixed for loop range in eptest code
TEST(OCEndpoints, StringToEndpoint) { - const char *spu[10] = { "coaps://10.211.55.3:56789/a/light", + const char *spu[4] = { "coaps://10.211.55.3:56789/a/light", "coap://openconnectivity.org", "coap://openconnectivity.org/alpha", "coaps://openconnectivity.org:3456/alpha" }; - for (int i = 0; i < 10; i++) { + for (int ...
examples/chrono: fix typo in log message
@@ -157,7 +157,7 @@ static int chrono_daemon(int argc, char *argv[]) if (ret < 0) { int errcode = errno; - printf("chrono_daemon: ERROR: ioctl(BTNIOC_SUPPORTED) failed: %d\n", + printf("chrono_daemon: ERROR: ioctl(BTNIOC_REGISTER) failed: %d\n", errcode); goto errout_with_fd; }
[control] use simulation to access timestep
@@ -44,7 +44,7 @@ void PID::initialize(const Model& m) _u.reset(new SiconosVector(1, 0)); Actuator::initialize(m); - _curDeltaT = m.simulation()->eventsManager()->timeDiscretisation()->currentTimeStep(0); + _curDeltaT = m.simulation()->currentTimeStep(); // initialize _err _err.reset(new boost::circular_buffer<double> ...
cleanup tabs and spaces
@@ -296,7 +296,6 @@ int config_parse_conf(struct config *cfg, const struct conf *conf) if (!conf_get(conf, "sip_trans_def", &tr)) cfg->sip.transp = sip_transp_decode(&tr); - /* Call */ (void)conf_get_u32(conf, "call_local_timeout", &cfg->call.local_timeout); @@ -577,7 +576,6 @@ static const char *default_avcodec_hwacce...
[core] config_vars_init() separate func to init config var.CWD and var.PID using stack for getcwd() result
@@ -2167,10 +2167,18 @@ static void context_free(config_t *context) { buffer_free(context->basedir); } +__attribute_noinline__ +static void config_vars_init (array *a) { + char dcwd[PATH_MAX]; + if (NULL != getcwd(dcwd, sizeof(dcwd))) + array_set_key_value(a, CONST_STR_LEN("var.CWD"), dcwd, strlen(dcwd)); + + *array_ge...
Fix Integration CI Task
@@ -116,6 +116,7 @@ stages: runCodesignValidationInjection: false steps: - checkout: self + persistCredentials: true - task: PowerShell@2 displayName: Integrate Branch inputs:
Yan LR: Add example showing error output to ReadMe
@@ -100,6 +100,35 @@ kdb rm -r user/tests/yanlr sudo kdb umount user/tests/yanlr ``` +### Error Messages + +```sh +# Mount plugin +sudo kdb mount config.yaml user/tests/yanlr yanlr + +# Manually add syntactically incorrect data +printf -- 'key: - element 1\n' > `kdb file user/tests/yanlr` +printf -- '- element 2 # Inco...
esp32/modnetwork: Allow to get ESSID of AP that STA is connected to. Following the same addition to esp8266 port.
@@ -509,8 +509,11 @@ STATIC mp_obj_t esp_config(size_t n_args, const mp_obj_t *args, mp_map_t *kwargs return mp_obj_new_bytes(mac, sizeof(mac)); } case QS(MP_QSTR_essid): - req_if = WIFI_IF_AP; + if (self->if_id == WIFI_IF_STA) { + val = mp_obj_new_str((char*)cfg.sta.ssid, strlen((char*)cfg.sta.ssid)); + } else { val =...
Remove session from cache before clearing it.
@@ -398,8 +398,12 @@ apr_byte_t oidc_session_free(request_rec *r, oidc_session_t *z) { * terminate a session */ apr_byte_t oidc_session_kill(request_rec *r, oidc_session_t *z) { - oidc_session_free(r, z); - return oidc_session_save(r, z, FALSE); + if (z->state) { + json_decref(z->state); + z->state = NULL; + } + oidc_s...
Set default USDT argument parser This sets the default USDT argument parser for all the architectures that currently do not implement one to the parser for x86_64. This is to avoid a compilation error about the architecture being not supported yet.
@@ -34,10 +34,8 @@ namespace USDT { Location::Location(uint64_t addr, const char *arg_fmt) : address_(addr) { #ifdef __powerpc64__ ArgumentParser_powerpc64 parser(arg_fmt); -#elif defined(__x86_64__) - ArgumentParser_x64 parser(arg_fmt); #else -#error "bcc does not support this platform yet" + ArgumentParser_x64 parser...
Silly allignment tweaks in lexer_spec.lua
@@ -196,7 +196,7 @@ describe("Titan lexer", function() assert_lex('"A\\u{64}B"', {"STRING"}, {"AdB"}) end) - it("errors out on invalid excape sequences (instead of backtracking)", function() + it("errors out on invalid escape sequences (instead of backtracking)", function() assert_error([["\o"]], "InvalidEscape") asser...
Change to use CMSIS_DAP for flash driver
<Cpu>IROM(0x10000000,0x00200000) IRAM(0x20000000,0x00040000) IRAM2(0x00100000,0x00010000) CPUTYPE(&quot;Cortex-M4&quot;) FPU2 CLOCK(12000000) ELITTLE</Cpu> <FlashUtilSpec/> <StartupFile/> - <FlashDriverDll>UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF07687_32M_MXIC -FS010000000 -FL0200000 -FP0($$Device:MT7687F$tools\...
minor changes to the new Nodes doc
@@ -255,7 +255,7 @@ That brings us to the output attributes. All of the output attributes are parent <tr> <td>.........outputPartExtraAttributes(Multi)</td> <td></td> - <td></td> + <td>includes attributes with information about how to reconstruct\n maya mesh material assignment and other mesh properties\n as well as pu...
docs: edits for nagios section
-\Nagios{} is an open source infrastructure monitoring package that monitors -servers, switches, applications, and services and offers user-defined +\Nagios{} is an open source infrastructure network monitoring package designed +to watch servers, switches, and various services and offers user-defined alerting facilitie...
solisten: fix address endianness
@@ -108,7 +108,6 @@ int kprobe__inet_listen(struct pt_regs *ctx, struct socket *sock, int backlog) // Get IP if (family == AF_INET) { evt.laddr[0] = inet->inet_rcv_saddr; - evt.laddr[0] = be32_to_cpu(evt.laddr[0]); } else if (family == AF_INET6) { bpf_probe_read(evt.laddr, sizeof(evt.laddr), sk->__sk_common.skc_v6_rcv_...
Skip tests using KTLS RX if KTLS RX is not supported. This skips tests using KTLS RX when run on systems that only support KTLS TX.
@@ -1203,6 +1203,11 @@ static int test_ktls(int test) sis_ktls_tx = (test & 4) != 0; sis_ktls_rx = (test & 8) != 0; +#if defined(OPENSSL_NO_KTLS_RX) + if (cis_ktls_rx || sis_ktls_rx) + return 1; +#endif + testresult = 1; #ifdef OPENSSL_KTLS_AES_GCM_128 testresult &= execute_test_ktls(cis_ktls_tx, cis_ktls_rx, sis_ktls_...
Removed glew fix
@@ -172,11 +172,6 @@ jobs: CXX: ${{ matrix.cxx-compiler }} CC: ${{ matrix.cc-compiler }} steps: - # TODO: Remove this workaround following resolution of: - # https://github.com/AcademySoftwareFoundation/aswf-docker/issues/43 - - name: Setup container - run: sudo rm -rf /usr/local/lib64/cmake/glew - if: matrix.vfx-cy ==...
SR: Add info about multiline command support
@@ -127,7 +127,32 @@ The Shell Recorder provides the following checks ## Commands -A command starts with `<` followed by kdb or shell commands. +A command starts with `<` followed by `kdb` or shell commands. + +### Multiline Commands + +The Shell Recorder supports multiline commands. Just add an additional line, a `<` ...
initialize spi at beginning of radio_init function.
@@ -81,6 +81,8 @@ void radio_init(void) { //power it on and configure pins radio_powerOn(); + spi_init(); + // clear variables memset(&radio_vars,0,sizeof(radio_vars_t)); @@ -180,7 +182,7 @@ void radio_rfOff(void) { at86rf215_spiStrobe(CMD_RF_TRXOFF); // wiggle debug pin debugpins_radio_clr(); - leds_debug_off(); + led...
test: update beegfs test names for rm_commands
@@ -20,17 +20,17 @@ fi check_rms -@test "[BeeGFS] beegfs-df - $BEEGFS_TEST_PATH ($RESOURCE_MANAGER)" { +@test "[BeeGFS] beegfs-df - $BEEGFS_TEST_PATH (compute node)" { run ssh c1 /usr/bin/beegfs-df $BEEGFS_TEST_PATH assert_success } -@test "[BeeGFS] beegfs-ctl --getentryinfo - $BEEGFS_TEST_PATH ($RESOURCE_MANAGER)" { +...
GLib: Disable binding if `BUILD_SHARED` is off
@@ -14,6 +14,11 @@ if (ENABLE_ASAN) return () endif (ENABLE_ASAN) +if (NOT ENABLE_SHARED) + exclude_binding (glib "it can only be built if `BUILD_SHARED` is enabled") + return () +endif (NOT ENABLE_SHARED) + # Add binding add_binding (glib)
tools/dual-boot: back up original boot vector Simply swapping reset vectors breaks the online update procedure, since the value it needs jumps around. This keeps it at a fixed location.
@@ -20,6 +20,9 @@ FLASH_SIZE = 1024 * 1024 # 1MiB BIN1_BASE_OFFSET = 0x8000 BIN2_BASE_OFFSET = 0xC0000 +# Size of data inserted into empty space just before second binary. +EXTRA_SIZE = 4 + def build_blob(bin1: FileIO, bin2: FileIO, out: FileIO) -> None: """Combines two firmware binary blobs ``bin1`` and ``bin2`` into ...
Check Meta: Properly match plugin name Before this change `check_meta.sh` would only use the postfix of a plugin name to check if a plugin supports certain metadata. For example, the command wrongly assumed that `ni` supported the metadata `order`, since `ni` is a postfix of the text `ini`. This fixes
- infos/needs = - infos/placements = getstorage setstorage - infos/status = maintained unittest libc nodep -- infos/metadata = order +- infos/metadata = - infos/description = Reads and writes the nickel ini format ## Introduction
hv: memory order: use mfence to strengthen the fast string operations order Use MFENCE to strengthen the fast string operations execute order to ensure all trampoline code was updated before flush it into the memory.
@@ -119,6 +119,7 @@ uint64_t prepare_trampoline(void) (size_t)size); update_trampoline_code_refs(dest_pa); + cpu_memory_barrier(); for (i = 0UL; i < size; i = i + CACHE_LINE_SIZE) { clflush(hpa2hva(dest_pa + i)); }
fixed pointer exception on disconnect
@@ -112,7 +112,7 @@ DWORD PandaJ2534Device::can_recv_thread() { } } else { for (auto& conn : this->connections) - if (conn->isProtoCan() && conn->getPort() == msg_in.bus) + if (conn != nullptr && conn->isProtoCan() && conn->getPort() == msg_in.bus) conn->processMessage(msg_out); } }
tools: add esp32c6, esp32h2 to roms.json
"build_date_str_addr": "0x3ff1a374", "build_date_str": "Feb 7 2021" } + ], + "esp32c6": [ + { + "rev": 0, + "build_date_str_addr": "0x4004a798", + "build_date_str": "Sep 19 2022" + } + ], + "esp32h2": [ + { + "rev": 0, + "build_date_str_addr": "0x4001c7dc", + "build_date_str": "Nov 1 2022" + } ] }
fix http1 integ test
@@ -604,10 +604,9 @@ endtest # # tlsClientDynamicHTTP1 # -GODEBUG=http2client=0,http2server=0 starttest tlsClientDynamicHTTP1 cd /go/net -ldscope ./tlsClientDynamic +GODEBUG=http2client=0,http2server=0 ldscope ./tlsClientDynamic ERR+=$? # this sleep gives tlsClientDynamic a chance to report its events on exit @@ -641,1...
feat: add NTL_FOREACH, a utility ntl.h macro
@@ -62,6 +62,13 @@ typedef void** ntl_t; */ #define NTL_T(t) t** +/* + * a conventional foreach loop that can be used with NTLs + */ +#define NTL_FOREACH(element, ntl) \ + for (int __i=0,__=1;__;__=0) \ + for (element = *ntl; ntl[__i]; element = ntl[++__i]) + /* * this is the preferred method to allocate a ntl
README: document 64 bit r-pi3 variant for MACHINE
@@ -81,6 +81,7 @@ c. Set MACHINE in local.conf to one of the supported boards: - raspberrypi0-wifi - raspberrypi2 - raspberrypi3 + - raspberrypi3-64 (64 bit kernel & userspace) - raspberrypi-cm (dummy alias for raspberrypi) - raspberrypi-cm3 (dummy alias for raspberrypi2) d. bitbake rpi-hwup-image
zero division checking
@@ -43,12 +43,12 @@ STATIC_ASSERT(tic_sound_state_size, sizeof(tic_music_state) == 4); static s32 tick2row(const tic_music_params* params, s32 tick) { // BPM = tempo * 6 / speed - return tick * params->tempo * DEFAULT_SPEED / params->speed / NOTES_PER_MUNUTE; + return params->speed > 0 ? tick * params->tempo * DEFAULT_...
[awm2] Fetch remote framebuffers all at once
@@ -364,6 +364,7 @@ pub struct Desktop { pub background_gradient_inner_color: Color, pub background_gradient_outer_color: Color, next_desktop_element_id: usize, + windows_to_render_remote_layers_this_cycle: Vec<Rc<Window>>, } impl Desktop { @@ -394,6 +395,7 @@ impl Desktop { background_gradient_inner_color, background_...
BugID:19721288: Fix bk7231s board compile issue
-config AOS_MCU_BK7231U +config AOS_MCU_BK7231S bool select AOS_COMP_LWIP select AOS_COMP_NEWLIB_STUB @@ -9,8 +9,8 @@ config AOS_MCU_BK7231U select AOS_COMP_LIBPROV select AOS_ARCH_ARMV5 help - driver & sdk for platform/mcu bk7231u + driver & sdk for platform/mcu bk7231s -if AOS_MCU_BK7231U -# Configurations for mcu bk...
Fix generating tileset for blank sprites
@@ -606,7 +606,7 @@ export const compileTileset = (tileset: Uint8Array, tilesetIndex: number) => `// Tileset: ${tilesetIndex}`, { n_tiles: Math.ceil(tileset.length / 16), - tiles: Array.from(tileset).map(toHex), + tiles: Array.from(tileset.length > 0 ? tileset : [0]).map(toHex), } );
[Rust] LayerSlice tracks damaged rects
@@ -22,6 +22,7 @@ pub struct LayerSlice { parent_framebuffer_size: Size, bytes_per_pixel: isize, pub frame: Rect, + pub damaged_rects: RefCell<Vec<Rect>>, } impl LayerSlice { @@ -36,11 +37,21 @@ impl LayerSlice { parent_framebuffer_size: framebuffer_size, bytes_per_pixel, frame, + damaged_rects: RefCell::new(Vec::new()...
doc: remove TODOs about redesigning the AEAD API The changes would be significant and the benefits not likely to be too great. Fixes
@@ -292,10 +292,6 @@ The length of the "taglen" parameter should not exceed that of a B<size_t>. =item "tlsaad" (B<OSSL_CIPHER_PARAM_AEAD_TLS1_AAD>) <octet string> -=for comment TODO(3.0): Consider changing this interface so that all ciphers -use the standard AEAD interface - rather than having this special purpose -in...
AH encrypt; don't double enqueue nor emit clib_warnings when seq-num max exceeded
@@ -125,13 +125,8 @@ ah_encrypt_inline (vlib_main_t * vm, if (PREDICT_FALSE (esp_seq_advance (sa0))) { - clib_warning ("sequence number counter has cycled SPI %u", - sa0->spi); vlib_node_increment_counter (vm, node->node_index, AH_ENCRYPT_ERROR_SEQ_CYCLED, 1); - //TODO need to confirm if below is needed - to_next[0] = ...
Add more outputto hip_host_register test
@@ -22,6 +22,7 @@ int main() { fprintf(stderr, "hipHostMalloc: %d\n", *ipt); return 1; } + fprintf(stderr, "hipHostMalloc: success %d\n", *ipt); } if (use_hip_register) { @@ -32,14 +33,16 @@ int main() { fprintf(stderr, "hipHostRegister ret %u\n", err); return 1; } + fprintf(stderr, "hipHostRegister success\n"); int *i...
Log ssl errors after processing handshake.
@@ -1534,6 +1534,21 @@ int picoquic_add_proposed_alpn(void* tls_context, const char* alpn) return ret; } +/* Log OPENSSL errors */ +void picoquic_log_openssl_errors(picoquic_cnx_t* cnx, int ret) +{ + unsigned long openssl_err; + char const* err_file = NULL; + int err_line = 0; + + while ((openssl_err = ERR_get_error_li...
hatch/baseboard: Enable the Search key button in mask Enable the search key located at TEST=Check search key while debugging BRANCH=firmware-hatch-12672.B
@@ -64,7 +64,7 @@ struct keyboard_scan_config keyscan_config = { .min_post_scan_delay_us = 1000, .poll_timeout_us = 100 * MSEC, .actual_key_mask = { - 0x14, 0xff, 0xff, 0xff, 0xff, 0xf5, 0xff, + 0x1c, 0xff, 0xff, 0xff, 0xff, 0xf5, 0xff, 0xa4, 0xff, 0xfe, 0x55, 0xfa, 0xca /* full set */ }, };
doc: explain H2O_ROOT for H2O developers
@@ -46,6 +46,15 @@ Start the installed server using the example configuration to confirm that it ac EOT ?> +<p> +Or if you'd like to start H2O without installing it, you can use the <code>H2O_ROOT</code> environment variable. +</p> + +<?= $ctx->{code}->(<< 'EOT') +% H2O_ROOT=$PWD build/h2o -c examples/h2o/h2o.conf +EOT...
Add OP_SSENDB
@@ -1039,6 +1039,30 @@ static inline int op_ssend( mrbc_vm *vm, mrbc_value *regs ) +//================================================================ +/*! OP_SSENDB + + R[a] = self.send(Syms[b],R[a+1]..,R[a+n+1]:R[a+n+2]..,&R[a+n+2k+1]) + + @param vm pointer of VM. + @param regs pointer to regs + @retval 0 No error. +...
Improve error handling in ocf_volume_init()
/* - * Copyright(c) 2012-2021 Intel Corporation + * Copyright(c) 2012-2022 Intel Corporation * SPDX-License-Identifier: BSD-3-Clause */ @@ -94,38 +94,39 @@ int ocf_volume_init(ocf_volume_t volume, ocf_volume_type_t type, return -OCF_ERR_INVAL; priv_size = type->properties->volume_priv_size; - - volume->opened = false; ...
parser yin FIX remove xmlns definitions after parsing text fields
@@ -138,11 +138,12 @@ parse_xmlns(struct lyxml_context *xml_ctx, const char **data, const char *prefix * @brief Parse content of whole element as text. * * @param[in] xml_ctx Xml context. + * @param[in] element_name Name of element, name is necesary to remove xmlns definitions at the end of element * @param[in] data Da...
Slightly better perf, but make sure it works under cross traffic
@@ -379,10 +379,10 @@ void ngtcp2_cc_cubic_cc_on_pkt_acked(ngtcp2_cc *ccx, ngtcp2_conn_stat *cstat, cc->pending_add = m % (100 * cstat->cwnd); } - m = cc->pending_w_add + cstat->max_udp_payload_size * pkt->pktlen * 9; + m = cc->pending_w_add + cstat->max_udp_payload_size * pkt->pktlen; - cc->w_tcp += m / (17 * cstat->c...
Split help string.
@@ -195,7 +195,10 @@ COMPRESSION Run a preprocess over the image that scales RGB components in the image by the alpha value. Preprocessing applies before any codec encoding swizzle, so color data must be in the RGB - channels in the source image. + channels in the source image.)" +// This split in the literals is neede...
tools: acrntrace: fix a variable uninitialized issue 'err' may be used uninitialized and be dereferenced NULL. This commit fix the reported issue via initializing 'err' to 0, and return 'err' at the end of the func.
@@ -154,7 +154,7 @@ static int get_cpu_num(void) static int create_trace_file_dir(char *dir) { - int err; + int err = 0; char cmd[CMD_MAX_LEN]; char time_str[TIME_STR_LEN]; time_t timep; @@ -193,7 +193,7 @@ static int create_trace_file_dir(char *dir) pr_dbg("dir %s creted\n", dir); - return WIFEXITED(err) ? WEXITSTATUS...
wpa_supplicant: Fix formatting of file esp_wpa3.c Replace tabs with spaces in esp_wpa3.c.
@@ -192,8 +192,7 @@ static int wpa3_parse_sae_msg(u8 *buf, u32 len, u32 sae_msg_type, u16 status) ret = wpa3_parse_sae_confirm(buf, len); break; default: - wpa_printf(MSG_ERROR, "wpa3: Invalid SAE msg type(%d)!", - sae_msg_type); + wpa_printf(MSG_ERROR, "wpa3: Invalid SAE msg type(%d)!", sae_msg_type); ret = ESP_FAIL; ...
ignore post-build-checks for sles
@@ -40,6 +40,7 @@ Source4: OHPC_macros BuildRoot: %{_tmppath}/%{pname}-%{version}-%{release}-root DocDir: %{OHPC_PUB}/doc/contrib +#!BuildIgnore: post-build-checks rpmlint-Factory # Disable debug packages %define debug_package %{nil} # Default library install path
Ruby: add environment debugging output
@@ -277,6 +277,13 @@ int main (int argc, char ** argv) init (argc, argv); + // some debugging + char * ld_library_path = getenv ("LD_LIBRARY_PATH"); + char * rubylib = getenv ("RUBYLIB"); + + printf ("env LD_LIBRARY_PATH: %s\n", ld_library_path); + printf ("env RUBYLIB: %s\n", rubylib); + // Plugin open // test_plugin_...
adds lmdb to library version report
@@ -456,6 +456,10 @@ report(void) H2O_LIBRARY_VERSION_MAJOR, H2O_LIBRARY_VERSION_MINOR, H2O_LIBRARY_VERSION_PATCH); + printf("lmdb: %d.%d.%d\n", + MDB_VERSION_MAJOR, + MDB_VERSION_MINOR, + MDB_VERSION_PATCH); printf("curl: %d.%d.%d\n", LIBCURL_VERSION_MAJOR, LIBCURL_VERSION_MINOR,
CMake: stats clients depend on the .api header generation
@@ -78,6 +78,8 @@ install(TARGETS vpp_get_metrics DESTINATION bin) ############################################################################## add_executable(summary_stats_client api/summary_stats_client.c) add_executable(stat_client app/stat_client.c) +add_dependencies(summary_stats_client api_headers) +add_depende...
quic: add a note on crypto timestamps
@@ -640,8 +640,8 @@ def handle_resp_line(cpu, data, size): def load_common_fields(hsh, line): for k in ['at', 'type', 'master_conn_id']: v = getattr(line, k) + # FIXME: This hack is no longer needed as of: https://github.com/h2o/quicly/pull/279 if v == 0 and k == 'at': - # TODO: This is a synthetic hack v = int(time.ti...
added future definition
@@ -305,7 +305,7 @@ The module that holds the representation of types, values and functions is calle | Map | List of elements formed by a key (String) value (Any) pair (Array) | | Pointer | Low level representation of a memory reference | | Null | Representation of NULL value type | -| Future | | +| Future | Promise in...
Fix ambiguous if-statement causing a crash. Resolves and fixes regression failure.
@@ -279,6 +279,10 @@ ColorsAreDifferent(double a[3], double b[3]) // Programmer: Kathleen Biagas // Creation: June 30, 2016 // +// Modifications: +// Kathleen Biagas, Thu Jun 18 09:12:22 PDT 2020 +// Fix ambiguous if statement. +// // **************************************************************************** void @@ ...
fix *&foo to actually be invokable
== ++ dp-value :: ++dojo-source ;~ pose + (stag %sa ;~(pfix tar pam sym)) (stag %ex dp-twig) (stag %tu (ifix [sel ser] (most ace dp-source))) - (stag %sa ;~(pfix tar pam sym)) == :: ++ dp-config :: ++dojo-config
filter_kubernetes: Tweak FLB_KUBE_TAG_PREFIX for Windows A typical setup on Windows pods includes something like this: [INPUT] Name Tail Path c:\var\log\containers\* Tag kube.* In this case, in_tail emits events with a tag prefixed with "kube.c.var.log.containers". Let's make it the default value on Windows build.
* Default expected Kubernetes tag prefix, this is used mostly when source * data comes from in_tail with custom tags like: kube.service.* */ +#ifdef FLB_SYSTEM_WINDOWS +#define FLB_KUBE_TAG_PREFIX "kube.c.var.log.containers." +#else #define FLB_KUBE_TAG_PREFIX "kube.var.log.containers." +#endif struct kube_meta;
Add named pipe ClientSessionId/ServerSessionId
@@ -9058,6 +9058,47 @@ NTSTATUS PhGetNamedPipeClientProcessId( return status; } +NTSTATUS PhGetNamedPipeClientSessionId( + _In_ HANDLE PipeHandle, + _Out_ PHANDLE ClientSessionId + ) +{ + NTSTATUS status; + IO_STATUS_BLOCK isb; + ULONG processId = 0; + + status = NtFsControlFile( + PipeHandle, + NULL, + NULL, + NULL, +...
2nd order: make the optimised routines the same as original contrib
@@ -1278,12 +1278,36 @@ static int pack_double_optimised(grib_accessor* a, const double* val, size_t *le != GRIB_SUCCESS) return ret; - Assert(optimize_scaling_factor); + if (optimize_scaling_factor) + { if((ret=grib_optimize_decimal_factor (a, self->reference_value, max, min, bits_per_value, compat_gribex, 1, &decimal...
Add TpSetPoolThreadBasePriority
@@ -459,6 +459,35 @@ Exit: PhReleaseRundownProtection(&KphpCommsRundown); } +static VOID KphpTpSetPoolThreadBasePriority( + _Inout_ PTP_POOL Pool, + _In_ ULONG BasePriority + ) +{ + static PH_INITONCE initOnce = PH_INITONCE_INIT; + static NTSTATUS (NTAPI* TpSetPoolThreadBasePriority_I)( + _Inout_ PTP_POOL Pool, + _In_ ...
cups-browsed: Do not update the network interface information on every call of the is_local_hostname() function.
@@ -8736,7 +8736,6 @@ int is_local_hostname(const char *host_name) { char *host; - update_netifs(NULL); for (host = (char *)cupsArrayFirst (local_hostnames); host != NULL; host = (char *)cupsArrayNext (local_hostnames)) @@ -8959,6 +8958,14 @@ examine_discovered_printer_record(const char *host, goto fail; } + + /* Updat...