message
stringlengths
6
474
diff
stringlengths
8
5.22k
options/ansi: Fix uninitialized var in FILE I/O
@@ -501,7 +501,7 @@ int fileno(FILE *file_base) { FILE *fopen(const char *path, const char *mode) { // Consume the first char; this must be 'r', 'w' or 'a'. - int flags; + int flags = 0; bool has_plus = strchr(mode, '+'); if(*mode == 'r') { if(has_plus) {
Add Lido contracts
@@ -27,7 +27,7 @@ typedef struct contract_t { uint8_t address[ADDRESS_LENGTH]; } contract_t; -#define NUM_CONTRACTS 11 +#define NUM_CONTRACTS 13 const contract_t CONTRACTS[NUM_CONTRACTS] = { // Compound {"Compound DAI", {0x5d, 0x3a, 0x53, 0x6e, 0x4d, 0x6d, 0xbd, 0x61, 0x14, 0xcc, @@ -52,7 +52,15 @@ const contract_t CON...
component/bt: fix unpack hci enhance connection complete event error
@@ -1932,9 +1932,7 @@ void btm_ble_conn_complete(UINT8 *p, UINT16 evt_len, BOOLEAN enhanced) UINT8 role, status, bda_type; UINT16 handle; BD_ADDR bda; -#if (BLE_PRIVACY_SPT == TRUE) BD_ADDR local_rpa, peer_rpa; -#endif ///BLE_PRIVACY_SPT == TRUE UINT16 conn_interval, conn_latency, conn_timeout; BOOLEAN match = FALSE; U...
Cirrus: Remove newline at start of error message
@@ -258,7 +258,7 @@ docu_task: - | git_diff_output="$(git diff -p 2>&1)" if [ -n "$git_diff_output" ]; then - printf >&2 -- '\nIt looks like you modified a source file of a man page, but did not commit the updated man page.\n' + printf >&2 -- 'It looks like you modified a source file of a man page, but did not commit t...
Use bios settings for bar configuration on QEMU Recent QEMU versions, such as 2.11.1 shipped with Ubuntu 18.04, use BAR addreses above the 32 bit boundary, hence we need to use the BIOS provided PCI configuration.
@@ -13,13 +13,6 @@ from machines import Machine, ARMMachineBase, MachineFactory, MachineOperations import efiimage QEMU_SCRIPT_PATH = 'tools/qemu-wrapper.sh' # relative to source tree -GRUB_IMAGE_PATH = 'tools/grub-qemu.img' # relative to source tree -QEMU_CMD_X64 = 'qemu-system-x86_64' -QEMU_CMD_X32 = 'qemu-system-i38...
update docs to add force flag
@@ -542,7 +542,7 @@ scope service cribl -c tls://in.my-instance.cribl.cloud:10090 ### start --- -Start scoping a filtered selection of processes and services. +Start scoping a filtered selection of processes and services on the host and in all relevant containers.. The following actions will be performed on the host an...
Doc: remove obsolete entries in table of BRIN strategy numbers. See commit Noted by Justin Pryzby Discussion:
@@ -703,12 +703,12 @@ typedef struct BrinOpcInfo <entry>Operator Strategy 7</entry> </row> <row> - <entry>Operator Strategy 7, 13, 16, 24, 25</entry> + <entry>Operator Strategy 7, 16, 24, 25</entry> <entry>operator contains-or-equal-to</entry> <entry></entry> </row> <row> - <entry>Operator Strategy 8, 14, 26, 27</entry...
BugID:25059227: fix websocket app wifi auto connection
@@ -239,7 +239,7 @@ static int websoc_client_task(void) /* instance setup */ instance = create_websoc_instance(); if (!instance) { - LOGE(TAG, "Failed to create websocket instance."); + LOGE(TAG, "Failed to create new instance."); return -1; } @@ -275,6 +275,7 @@ reconnect: /* wait until websocket connection is ready *...
comment F4 not needed anymore This was already undocumented, as it became pointless when we're now able to set all parameters from messages.
#include "g_canvas.h" /* our proxy of the text_class, LATER do not cheat */ -static t_class *makeshift_class; +// static t_class *makeshift_class; // not needed anymore (porres 2019, for cyclone 0.3.1) /* #ifdef KRZYSZCZ #define COMMENT_DEBUG @@ -546,7 +546,8 @@ static void comment_list(t_comment *x, t_symbol *s, int a...
Added Sentence For Link to Zephyr Docs
@@ -89,4 +89,4 @@ Some users may experience a poor connection between the keyboard and the host. T CONFIG_BT_CTLR_TX_PWR_PLUS_8=y ``` -For the `nRF52840`, the value `PLUS_8` can be set to any multiple of four between `MINUS_20` and `PLUS_8`. The default value for this config is `0`, but if you are having connection iss...
Turn nl_before_case to false for uncrustify
@@ -1207,7 +1207,7 @@ nl_multi_line_cond = false # false/true nl_multi_line_define = false # false/true # Whether to put a newline before 'case' statement, not after the first 'case'. -nl_before_case = true # false/true +nl_before_case = false # false/true # Add or remove newline between ')' and 'throw'. nl_before_thro...
CustomStartTool: Update to latest sdk
@@ -107,19 +107,28 @@ INT WINAPI wWinMain( PPH_STRING fileName; PPH_STRING currentDirectory; - if (!NT_SUCCESS(PhInitializePhLibEx(0, 0, 0))) + if (!NT_SUCCESS(PhInitializePhLib())) return 1; if (!InitializeProcThreadAttributeList(NULL, 1, 0, &attributeListLength) && GetLastError() != ERROR_INSUFFICIENT_BUFFER) + { + P...
Raise a flag for changing the triad attributes.
# Alister Maguire, Mon Mar 5 14:10:23 PST 2018 # Added a test for manipulating the triad attributes. # +# Alister Maguire, Fri Mar 9 10:21:50 PST 2018 +# Now using a 'set manually' flag for the triad attribtues. +# # ---------------------------------------------------------------------------- TurnOnAllAnnotations() @@ ...
docs: Fix CentOS 8 build Type: fix
@@ -11,6 +11,7 @@ fi # Get the OS OS_ID=$(grep '^ID=' /etc/os-release | cut -f2- -d= | sed -e 's/\"//g') +OS_VERSION=$(grep '^VERSION_ID=' /etc/os-release | cut -f2- -d= | sed -e 's/\"//g') if [ "$1" == "venv" ] then @@ -21,8 +22,13 @@ then fi if [ "$OS_ID" == "centos" ] then + if [ "$OS_VERSION" == "8" ] + then + sudo...
remove github.com/pkg/errors exceptions for security
@@ -374,9 +374,6 @@ ALLOW market/sre/tools/ya-gde/src/pkg/util -> vendor/github.com/pkg/errors ALLOW orgvisits/witness -> vendor/github.com/pkg/errors ALLOW quasar/go/blackbox -> vendor/github.com/pkg/errors ALLOW quasar/go/tvm -> vendor/github.com/pkg/errors -ALLOW security/impulse/api/scan-api/internal/controllers/wo...
Remove bash specific code Use case pattern matching instead of multiline split, given there is only the well formatted PIDs to match on this should be safe.
@@ -626,6 +626,8 @@ has_mem_err() { # Wait for process $2 named $3 to be listening on port $1. Print error to $4. if type lsof >/dev/null 2>/dev/null; then wait_app_start() { + newline=' +' START_TIME=$(date +%s) if [ "$DTLS" -eq 1 ]; then proto=UDP @@ -634,20 +636,14 @@ if type lsof >/dev/null 2>/dev/null; then fi # M...
Fix error on signal
@@ -145,6 +145,11 @@ os.waitpid = waitpid old_signal = _signal.signal def signal(signal, handler): + try: + threading + except NameError: + import threading + if threading.main_thread() == threading.current_thread(): return old_signal(signal, handler) else:
Removed keyboard tracking from ICS
@@ -465,7 +465,7 @@ QvisIntegralCurveWindow::CreateIntegrationTab(QWidget *pageIntegration) numberOfRandomSamplesLabel = new QLabel(tr("Number of random samples"), samplingGroup); samplingLayout->addWidget(numberOfRandomSamplesLabel, sRow, 0, 1, 2); numberOfRandomSamples = new QSpinBox(samplingGroup); - numberOfRandomS...
Remove some perl 5.14 use from rsaz-avx512.pl The non-destructive substitution syntax (s///r), was introduced in perl 5.14. We need to support 5.10 and above. Fixes
@@ -128,7 +128,8 @@ sub amm52x20_x1() { # of data for corresponding AMM operation; # _b_offset - offset in the |b| array pointing to the next qword digit; my ($_data_offset,$_b_offset,$_acc,$_R0,$_R0h,$_R1,$_R1h,$_R2,$_k0) = @_; -my $_R0_xmm = $_R0 =~ s/%y/%x/r; +my $_R0_xmm = $_R0; +$_R0_xmm =~ s/%y/%x/; $code.=<<___;...
apps/btshell: Print key size with connection description
@@ -114,9 +114,10 @@ print_conn_desc(const struct ble_gap_conn_desc *desc) desc->peer_id_addr.type); print_addr(desc->peer_id_addr.val); console_printf(" conn_itvl=%d conn_latency=%d supervision_timeout=%d" - "encrypted=%d authenticated=%d bonded=%d\n", + " key_size=%d encrypted=%d authenticated=%d bonded=%d\n", desc->...
Add basic mpi4py test. Note: mandatory check (NEED_CHECK) was skipped
from __future__ import print_function +import os import re import sys import traceback @@ -294,6 +295,7 @@ def main(): skip_names = sys.argv[1:] print("Skip patterns:", skip_names) + os.environ['Y_PYTHON_IMPORT_TEST'] = '' try: check_imports(no_check=skip_names) except:
Logging: Switch to a different sleep function This fixes a freeze with zink when automatic logging is enabled I didn't test this on Windows, so please report any issues there
@@ -254,7 +254,8 @@ void Logger::upload_last_logs() { } void autostart_log(int sleep) { - os_time_sleep(sleep * 1000000); + // os_time_sleep() causes freezes with zink + autologging :frog_donut: + this_thread::sleep_for(chrono::seconds(sleep)); logger->start_logging(); }
Remove unreachable code in entityValueInitProcessor
@@ -4122,15 +4122,14 @@ entityValueInitProcessor(XML_Parser parser, result = processXmlDecl(parser, 0, start, next); if (result != XML_ERROR_NONE) return result; - switch (ps_parsing) { - case XML_SUSPENDED: - *nextPtr = next; - return XML_ERROR_NONE; - case XML_FINISHED: + /* At this point, ps_parsing cannot be XML_SU...
Update sedem image r6491584 by Sedem: fix text truncation
}, "sedem": { "formula": { - "sandbox_id": 631057103, + "sandbox_id": 631647613, "match": "SEDEM archive" }, "executable": {
mesh: Remove redundant stack variable The msg->prev_addr is already stored in frnd->clear.frnd, so there's no need to have an extra stack variable for this (in the form of prev_addr).
@@ -812,7 +812,6 @@ int bt_mesh_friend_req(struct bt_mesh_net_rx *rx, struct os_mbuf *buf) { struct bt_mesh_ctl_friend_req *msg = (void *)buf->om_data; struct bt_mesh_friend *frnd = NULL; - u16_t old_friend; u32_t poll_to; int i; @@ -857,9 +856,7 @@ int bt_mesh_friend_req(struct bt_mesh_net_rx *rx, struct os_mbuf *buf)...
dpdk: clean interface link information on admin down / stop
@@ -194,6 +194,7 @@ dpdk_device_stop (dpdk_device_t * xd) rte_eth_allmulticast_disable (xd->port_id); rte_eth_dev_stop (xd->port_id); + memset (&xd->link, 0, sizeof (struct rte_eth_link)); /* For bonded interface, stop slave links */ if (xd->pmd == VNET_DPDK_PMD_BOND)
Implement omitframepointer for clang
vectorextensions = gcc.shared.vectorextensions, isaextensions = gcc.shared.isaextensions, warnings = gcc.shared.warnings, - symbols = gcc.shared.symbols + symbols = gcc.shared.symbols, + omitframepointer = gcc.shared.omitframepointer } clang.cflags = table.merge(gcc.cflags, {
Tesla safety: reduced scope of vars
@@ -150,17 +150,13 @@ static void tesla_rx_hook(CAN_FIFOMailBox_TypeDef *to_push) { static int tesla_tx_hook(CAN_FIFOMailBox_TypeDef *to_send) { int tx = 1; - uint32_t addr; - float angle_raw; - float desired_angle; - - addr = to_send->RIR >> 21; + uint32_t addr = to_send->RIR >> 21; // do not transmit CAN message if s...
Update hook after updating GPIO bits Fixes
@@ -307,6 +307,10 @@ int platform_gpio_register_intr_hook(uint32_t bits, platform_hook_function hook) uint32_t old_bits = oh.entry[i].bits; *(volatile uint32_t *) &oh.entry[i].bits = bits; *(volatile uint32_t *) &oh.all_bits = (oh.all_bits & ~old_bits) | bits; + ETS_GPIO_INTR_DISABLE(); + // This is a structure copy, s...
stm32/lwip_inc: Enable raw socket type.
#define LWIP_ARP 1 #define LWIP_ETHERNET 1 +#define LWIP_RAW 1 #define LWIP_NETCONN 0 #define LWIP_SOCKET 0 #define LWIP_STATS 0
os/tools: Enhance build configuration tool Execute build configuration tool from top directory. If build configuration is already done, then report the same to user. Add informational echo statements. This patch is back-ported from Nuttx.
# POSSIBILITY OF SUCH DAMAGE. # -WD=`pwd` +WD=`test -d ${0%/*} && cd ${0%/*}; pwd` TOPDIR="${WD}/.." USAGE=" @@ -58,7 +58,7 @@ USAGE: ${0} [-d] [-a <app-dir>] <board-name>/<config-name> Where: <board-name> is the name of the board in the configs directory <config-name> is the name of the board configuration sub-directo...
Fix memory leak in test.
@@ -136,8 +136,7 @@ void derive_single_line_with_custom_knots(CuTest *tc) { tsBSpline spline = ts_bspline_init(); tsDeBoorNet net = ts_deboornet_init(); - tsReal *result = NULL; - tsReal *ctrlp = NULL, *knots = NULL; + tsReal *ctrlp = NULL, *knots = NULL, *result = NULL; tsStatus status; TS_TRY(try, status.code, &statu...
Whitelist Xiaomi smart plugs with Xiaomi MAC address
@@ -191,6 +191,7 @@ static const SupportedDevice supportedDevices[] = { { VENDOR_XIAOMI, "lumi.remote.b486opcn01", xiaomiMacPrefix }, // Xiaomi Aqara Opple WXCJKG12LM { VENDOR_XIAOMI, "lumi.remote.b686opcn01", xiaomiMacPrefix }, // Xiaomi Aqara Opple WXCJKG13LM { VENDOR_XIAOMI, "lumi.sen_ill.mgl01", xiaomiMacPrefix }, ...
Cleanup stale code and style
@@ -148,20 +148,6 @@ void websocket_xmask(void *msg, uint64_t len, uint32_t mask) { if (len > 7) { { /* XOR any unaligned memory (4 byte alignment) */ const uintptr_t offset = 4 - ((uintptr_t)msg & 3); - // switch (offset) { - // case 3: - // ((uint8_t *)msg)[2] ^= ((uint8_t *)(&mask))[2]; - // /* fallthrough */ - // c...
Minor code beautification in regexp.c. Remove duplicated code (apparently introduced by commit c8ea87e4b). Also get rid of some PG_USED_FOR_ASSERTS_ONLY variables we don't really need to have. Li Japin, Tom Lane Discussion:
@@ -63,7 +63,7 @@ typedef struct regexp_matches_ctx Datum *elems; /* has npatterns elements */ bool *nulls; /* has npatterns elements */ pg_wchar *wide_str; /* wide-char version of original string */ - char *conv_buf; /* conversion buffer */ + char *conv_buf; /* conversion buffer, if needed */ int conv_bufsiz; /* size ...
nimble/ll: Fix LE Coded scan parameters handling Make sure we only try to setup LE Coded in scanner if both ext adv (i.e. also ext scan) and LE Coded PHY are enabled.
@@ -2069,7 +2069,9 @@ ble_ll_scan_hci_set_ext_params(const uint8_t *cmdbuf, uint8_t len) struct ble_ll_scan_phy new_params[BLE_LL_SCAN_PHY_NUMBER] = { }; struct ble_ll_scan_phy *uncoded = &new_params[PHY_UNCODED]; +#if MYNEWT_VAL(BLE_LL_CFG_FEAT_LE_CODED_PHY) struct ble_ll_scan_phy *coded = &new_params[PHY_CODED]; +#en...
fix device flow for iam
@@ -16,9 +16,13 @@ char* generateDeviceCodePostData(const struct oidc_account* a) { char* generateDeviceCodeLookupPostData(const struct oidc_account* a, const char* device_code) { - return generatePostData(OIDC_KEY_CLIENTID, account_getClientId(a), - OIDC_KEY_GRANTTYPE, OIDC_GRANTTYPE_DEVICE, - OIDC_KEY_DEVICECODE, dev...
apps/bttester: do not distribute CSRK BLE_SM_OUR_KEY_DIST and BLE_SM_THEIR_KEY_DIST should be set to 3, as we do not support security mode 2 - CSRK shall not be distributed.
@@ -103,8 +103,8 @@ syscfg.vals: BLE_SM_BONDING: 1 BLE_SM_MITM: 0 BLE_SM_SC: 1 - BLE_SM_OUR_KEY_DIST: 7 - BLE_SM_THEIR_KEY_DIST: 7 + BLE_SM_OUR_KEY_DIST: 3 + BLE_SM_THEIR_KEY_DIST: 3 BLE_SVC_GAP_CENTRAL_ADDRESS_RESOLUTION: 1 BLE_SVC_GAP_PPCP_MIN_CONN_INTERVAL: 9 BLE_SVC_GAP_PPCP_MAX_CONN_INTERVAL: 30
fix: Makefile should compile curl-websockets.c separately to maintain its specific directives
@@ -69,12 +69,15 @@ discord: mkdir $(DISCORD_OBJS) $(LIBDISCORD) github: mkdir $(GITHUB_OBJS) bot: $(BOT_EXES) #@todo should we split by categories (bot_discord, bot_github, etc)? -test: all $(TEST_EXES) +test: all $(TEST_EXES) #@todo should we split by categories too ? mkdir : mkdir -p $(OBJDIR) $(LIBDIR) +$(OBJDIR)/c...
[trie] fix : node unavailable in db error not handled when node moving up, if moveUpShortcut is called then maybeMoveUpshortcut always returns true
@@ -306,23 +306,25 @@ func (s *Trie) maybeMoveUpShortcut(left, right, root []byte, batch [][]byte, iBa } else if len(left) == 0 { // If right is a shortcut move it up if right[HashLength] == 1 { - return s.moveUpShortcut(right, root, batch, iBatch, 2*iBatch+2, height, ch) + s.moveUpShortcut(right, root, batch, iBatch, ...
spi_master: fix the error log when use tx/rx_data with larger data
@@ -683,8 +683,8 @@ static SPI_MASTER_ISR_ATTR esp_err_t check_trans_valid(spi_device_handle_t handl bool is_half_duplex = ((handle->cfg.flags & SPI_DEVICE_HALFDUPLEX) != 0); //check transmission length - SPI_CHECK((trans_desc->flags & SPI_TRANS_USE_RXDATA)==0 ||trans_desc->rxlength <= 32, "rxdata transfer > 32 bits wi...
Dockerfile: let apt-get install deps Most of these packages seem to have been installed with the addition of renode to the docker image. Remove the packages from the list and let apt-get install the required dependencies. Also document what most of the remaining packages are used by.
@@ -6,6 +6,24 @@ ENV DEBIAN_FRONTEND noninteractive USER root # Tools +# build-essential: development tools. +# gdb: development tools. +# git: development tools. +# iputils-ping: used by regression tests. +# less: convenience tool. +# lib32z1: 32-bit libz, probably used by some old 32-bit binary. +# libcanberra-gtk-mo...
window: return 1 for trivial dimensions
@@ -189,6 +189,12 @@ void klaplace(unsigned int N, const long dims[N], unsigned int flags, complex fl static void nary_zwindow(const long N, const float alpha, const float beta, complex float* ptr) { + if (1 == N) { + + ptr[0] = 1.; + return; + } + #pragma omp parallel for for (long i = 0; i < N; i++) ptr[i] = alpha - ...
Always get CGEN freq from chip
@@ -1028,9 +1028,9 @@ float_type LMS7002M::GetReferenceClk_SX(bool tx) */ float_type LMS7002M::GetFrequencyCGEN() { - float_type dMul = (GetReferenceClk_SX(Rx)/2.0)/(Get_SPI_Reg_bits(LMS7param(DIV_OUTCH_CGEN))+1); //DIV_OUTCH_CGEN - uint16_t gINT = Get_SPI_Reg_bits(0x0088, 13, 0); //read whole register to reduce SPI tr...
roll back commit and start region search from last idx per thread
@@ -315,7 +315,7 @@ void* _mi_mem_alloc_aligned(size_t size, size_t alignment, bool commit, size_t* // find a range of free blocks void* p = NULL; size_t count = mi_atomic_read(&regions_count); - size_t idx = 0; // tld->region_idx; // start index is per-thread to reduce contention + size_t idx = tld->region_idx; // sta...
hw/drivers/adp5061: Fix shell reg access by name
@@ -750,7 +750,7 @@ adp5061_shell_read_reg(int argc, char **argv) for (i = 0; i < NUM_DEVICE_REGS; ++i) { if ((status == 0 && adp5061_device_regs[i].addr == reg_ix) || - (strcmp(adp5061_device_regs[i].name, argv[3]) == 0)) { + (strcmp(adp5061_device_regs[i].name, argv[2]) == 0)) { if (adp5061_get_reg(adp5061_dev, adp50...
Bugfixes, cleanup
@@ -2326,7 +2326,7 @@ static ACVP_RESULT acvp_get_result_test_session(ACVP_CTX *ctx, char *session_url ACVP_STRING_LIST *failedVsList = NULL; while (1) { - int allTestsCompleted = 1; + int testsCompleted = 0; /* * Get the KAT vector set @@ -2344,6 +2344,11 @@ static ACVP_RESULT acvp_get_result_test_session(ACVP_CTX *ct...
vere: adds/improves error messages for term syscall retry loops
@@ -27,9 +27,16 @@ _write(c3_i fid_i, const void* buf_v, size_t len_i) ssize_t ret_i; while ( len_i > 0 ) { + c3_w lop_w = 0; // retry interrupt/async errors // do { + // abort pathological retry loop + // + if ( 100 == ++lop_w ) { + fprintf(stderr, "term: write loop: %s\r\n", strerror(errno)); + return; + } ret_i = wr...
Tweak changelog bullet for C formatting
- Added single-quoted strings. - Added tokens. - Changed `gif.decoder_workbuf_len_max_incl_worst_case` from 1 to 0. -- Changed the default C-formatter. +- Changed the C formatting style; removed the `-cformatter` flag. - Changed what the `std/gif` benchmarks actually measure. - Made `wuffs_base__pixel_format` a struct....
add test case for geopos and geohash This PR add test case for PR with only key as argument for GEOHASH and GEOPOS
@@ -366,6 +366,13 @@ start_server {tags {"geo"}} { lindex [r geohash points test] 0 } {ezs42e44yx0} + test {GEOHASH with only key as argument} { + r del points + r geoadd points 10 20 a 30 40 b + set result [r geohash points] + assert {$result eq {}} + } + test {GEOPOS simple} { r del points r geoadd points 10 20 a 30 ...
env: validate missing requested keys
@@ -107,7 +107,12 @@ char *flb_env_get(struct flb_env *env, char *key) } /* If it was not found, try to get it from the real environment */ - return getenv(key); + out_buf = getenv(key); + if (!out_buf) { + flb_warn("[env] variable ${%s} is used but not set", key); + } + + return out_buf; } /*
vrrp: fix coverity warning/NULL dereference Add error handling for unlikely case where getting IP address of an interface fails. Type: fix
@@ -115,6 +115,10 @@ vrrp_adv_l3_build (vrrp_vr_t * vr, vlib_buffer_t * b, * this is the first address on the interface. */ src4 = ip_interface_get_first_ip (vr->config.sw_if_index, 1); + if (!src4) + { + return -1; + } ip4->src_address.as_u32 = src4->as_u32; ip4->length = clib_host_to_net_u16 (sizeof (*ip4) + vrrp_adv...
sysrepoctl CHANGE update search dirs parameter Because it now supports multiple directories.
@@ -87,8 +87,8 @@ help_print(void) " -R, --recover Check current connections state and clean any non-existing ones.\n" "\n" "Available other-options:\n" - " -s, --search-dir <dir-path>\n" - " Directory to search for include/import modules. Directory with already-installed\n" + " -s, --search-dirs <dir-path>[:<dir-path>...
Configure: Allow 'DEFINE[]=def' DEFINE[] definitions end up pushed in instead of being added to the output file list of defines. This allows for the unusual case where we need something to be defined globally, so it gets picked up by anything using $(CPPFLAGS).
@@ -1908,7 +1908,7 @@ if ($builder eq "unified") { qr/^\s*INCLUDE\[((?:\\.|[^\\\]])+)\]\s*=\s*(.*)\s*$/ => sub { push @{$includes{$1}}, tokenize($expand_variables->($2)) if !@skip || $skip[$#skip] > 0 }, - qr/^\s*DEFINE\[((?:\\.|[^\\\]])+)\]\s*=\s*(.*)\s*$/ + qr/^\s*DEFINE\[((?:\\.|[^\\\]])*)\]\s*=\s*(.*)\s*$/ => sub {...
Switch to using only cmake for ctest
@@ -9,7 +9,7 @@ on: branches: [develop] jobs: - build-linux: + pytest-linux: runs-on: ubuntu-latest strategy: max-parallel: 5 @@ -44,7 +44,7 @@ jobs: with: verbose: true - c-test-linux: + ctest-linux: runs-on: ubuntu-latest strategy: matrix: @@ -53,24 +53,15 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Set up ...
Fix bug that active DCID is retired
@@ -7482,6 +7482,9 @@ static int conn_recv_non_probing_pkt_on_new_path(ngtcp2_conn *conn, if (conn->pv && (conn->pv->flags & NGTCP2_PV_FLAG_FALLBACK_ON_FAILURE)) { ngtcp2_dcid_copy(&pv->fallback_dcid, &conn->pv->fallback_dcid); pv->fallback_pto = conn->pv->fallback_pto; + /* Unset the flag bit so that conn_stop_pv does...
sysview: Add API to trace non-OS modules This allows to register non-OS module with its own events for tracing. For example, NimBLE will (optionally) register own modules for LL and PHY.
#else +#include <stdio.h> +#include <string.h> #include "syscfg/syscfg.h" #if MYNEWT_VAL(OS_SYSVIEW) #include "sysview/vendor/SEGGER_SYSVIEW.h" #if MYNEWT_VAL(OS_SYSVIEW) +typedef struct SEGGER_SYSVIEW_MODULE_STRUCT os_trace_module_t; + +static inline uint32_t +os_trace_module_register(os_trace_module_t *m, const char ...
always build with CATBOOST_OPENSOURCE
@@ -94,7 +94,11 @@ def _main(): sys.stderr.flush() with _tempdir(prefix='catboost_build-') as build_output_dir: - ya_make = [sys.executable, ya_path, 'make'] + sys.argv[1:] + [native_lib_dir, '--output', build_output_dir] + ya_make = ([sys.executable, ya_path, 'make', native_lib_dir] + + ['--output', build_output_dir] ...
Remove jpm.bat from windows dist. It is still present in the MSI.
@@ -118,7 +118,6 @@ copy build\janet.h dist\janet.h copy build\libjanet.lib dist\libjanet.lib copy .\jpm dist\jpm -copy tools\jpm.bat dist\jpm.bat @rem Create installer janet.exe -e "(->> janet/version (peg/match ''(* :d+ `.` :d+ `.` :d+)) first print)" > build\version.txt
add %{OHPC_MODULEDEPS} back into %files
@@ -47,6 +47,9 @@ suite. %build %install +%{__mkdir} -p %{buildroot}/%{OHPC_MODULEDEPS}/intel/impi +%{__mkdir} -p %{buildroot}/%{OHPC_MODULEDEPS}/gnu/impi +%{__mkdir} -p %{buildroot}/%{OHPC_MODULEDEPS}/gnu7/impi %post @@ -225,6 +228,7 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) +%{OHPC_MODULEDEPS} %changel...
doc: update visibility closes
@@ -765,7 +765,7 @@ description= who is allowed to edit this configuration setting? [visibility] -status= idea +status= implemented usedby/tool = web type= enum critical @@ -773,20 +773,18 @@ type= enum user advanced developer - debug - disabled + internal description= who should see this configuration setting? This is...
extmod/moducryptolib: Add AES-CTR support for axTLS builds.
@@ -139,6 +139,33 @@ STATIC void aes_process_cbc_impl(AES_CTX_IMPL *ctx, const uint8_t *in, uint8_t * AES_cbc_decrypt(ctx, in, out, in_len); } } + +#if MICROPY_PY_UCRYPTOLIB_CTR +// axTLS doesn't have CTR support out of the box. This implements the counter part using the ECB primitive. +STATIC void aes_process_ctr_impl...
Jenkinsfile: add Fedora 34, push down 33, remove 32
@@ -329,13 +329,6 @@ def dockerInit() { "./scripts/docker/ubuntu/focal/Dockerfile" ) - /* Fedora 32 image*/ - DOCKER_IMAGES.fedora_32 = dockerUtils.createDockerImageDesc( - "fedora-32", dockerUtils.&idTesting, - "./scripts/docker/fedora/32", - "./scripts/docker/fedora/32/Dockerfile" - ) - /* Fedora 33 image*/ DOCKER_IM...
Update to remove files after archive-get test completes. This cleans up the spool path for the next test. Currently there isn't one but there will be.
@@ -1105,7 +1105,8 @@ testRun(void) TEST_RESULT_STR_Z(strNewBuf(serverWrite), "{\"out\":[0,[]]}\n", "check result"); TEST_STORAGE_LIST( - storageSpool(), STORAGE_SPOOL_ARCHIVE_IN, "000000010000000100000002\n01ABCDEF01ABCDEF01ABCDEF.pgbackrest.tmp\n"); + storageSpoolWrite(), STORAGE_SPOOL_ARCHIVE_IN, "000000010000000100...
Close connection on APPLICATION_CLOSE
@@ -2897,10 +2897,7 @@ static int conn_recv_stop_sending(ngtcp2_conn *conn, return ngtcp2_conn_close_stream_if_shut_rdwr(conn, strm, fr->app_error_code); } -static void conn_recv_connection_close(ngtcp2_conn *conn, - const ngtcp2_connection_close *fr) { - (void)fr; - +static void conn_recv_connection_close(ngtcp2_conn ...
Change QUIC_API to __cdecl on Windows User Mode
@@ -41,7 +41,7 @@ Environment: #define ERROR_QUIC_USER_CANCELED _HRESULT_TYPEDEF_(0x80410002L) #endif -#define QUIC_API WINAPI +#define QUIC_API __cdecl #define QUIC_MAIN_EXPORT __cdecl #define QUIC_STATUS HRESULT #define QUIC_FAILED(X) FAILED(X)
apps/blemesh_shell: Enable provisioning and model extensions
@@ -37,6 +37,7 @@ syscfg.vals: BLE_MESH: 1 BLE_MESH_SHELL: 1 BLE_MESH_PROV: 1 + BLE_MESH_PROVISIONER: 1 BLE_MESH_RELAY: 1 BLE_MESH_PB_ADV: 1 BLE_MESH_PB_GATT: 1 @@ -46,6 +47,7 @@ syscfg.vals: BLE_MESH_LABEL_COUNT: 2 BLE_MESH_SUBNET_COUNT: 2 BLE_MESH_MODEL_GROUP_COUNT: 2 + BLE_MESH_MODEL_EXTENSIONS: 1 BLE_MESH_APP_KEY_C...
Add some forgotten LSN_FORMAT_ARGS() in xlogreader.c has introduced a specific macro to make printf()-ing of LSNs easier. This takes care of what looks like the remaining code paths that did not get the call. Author: Michael Paquier Discussion:
@@ -754,8 +754,7 @@ XLogDecodeOneRecord(XLogReaderState *state, bool allow_oversized) targetRecOff == pageHeaderSize) { report_invalid_record(state, "contrecord is requested by %X/%X", - (uint32) (state->DecodeRecPtr >> 32), - (uint32) state->DecodeRecPtr); + LSN_FORMAT_ARGS(state->DecodeRecPtr)); goto err; } @@ -968,1...
[libc][newlib] format
* Change Logs: * Date Author Notes * 2021-02-11 Meco Man remove _gettimeofday_r() and _times_r() - * 2020-02-13 Meco Man re-implement exit() and abort() - * 2020-02-21 Meco Man improve and beautify syscalls - * 2020-02-24 Meco Man fix bug of _isatty_r() + * 2021-02-13 Meco Man re-implement exit() and abort() + * 2021-0...
Works with new image format. imgmgr; behave with ver1 and ver2 image formats.
@@ -81,6 +81,38 @@ static struct mgmt_group imgr_nmgr_group = { struct imgr_state imgr_state; +#if MYNEWT_VAL(BOOTUTIL_IMAGE_FORMAT_V2) +static int +imgr_img_tlvs(const struct flash_area *fa, struct image_header *hdr, + uint32_t *start_off, uint32_t *end_off) +{ + struct image_tlv_info tlv_info; + int rc; + + rc = flas...
Improve find window memory usage
#define WM_PH_SEARCH_FINISHED (WM_APP + 802) #define WM_PH_SEARCH_SHOWMENU (WM_APP + 803) +static PPH_OBJECT_TYPE PhFindObjectsItemType = NULL; static HANDLE PhFindObjectsThreadHandle = NULL; static HWND PhFindObjectsWindowHandle = NULL; static PH_EVENT PhFindObjectsInitializedEvent = PH_EVENT_INIT; @@ -232,7 +233,7 @@...
docs: update performance guide docs with S3 information
@@ -38,7 +38,7 @@ To minimize static memory use: .. list:: - Declare structures, buffers, or other variables ``const`` whenever possible. Constant data can be stored in flash not RAM. This may require changing functions in the firmware to take ``const *`` arguments instead of mutable pointer arguments. These changes ca...
Testing: fix case when several numbers per line
@@ -27,7 +27,7 @@ if (scalar @ARGV < 2) { } # Tolerance is optional my $tolerance = 1e-9; -my $result = GetOptions ( +my $res = GetOptions ( "t=s" => \$tolerance ); @@ -54,11 +54,26 @@ my $delta = $tolerance; if (not cmp($fileA, $fileB, sub { my $arg1 = munge $_[0]; my $arg2 = munge $_[1]; - #print "Line $line_num: Com...
Add delayloaded tray icon thread, Fix static icon not showing up immediately in some cases
@@ -214,6 +214,52 @@ VOID PhNfLoadGuids( } } +VOID PhNfCreateIconThreadDelayed( + VOID + ) +{ + static PH_INITONCE initOnce = PH_INITONCE_INIT; + PPH_NF_ICON staticIcon = NULL; + ULONG iconCount = 0; + + for (ULONG i = 0; i < PhTrayIconItemList->Count; i++) + { + PPH_NF_ICON icon = PhTrayIconItemList->Items[i]; + + if ...
web ui docker: update repo for base image
@@ -14,9 +14,8 @@ RUN apt-get install -y nodejs # pull latest libelektra RUN mkdir /home/elektra WORKDIR /home/elektra -RUN git clone https://github.com/omnidan/libelektra.git +RUN git clone --depth 1 https://github.com/ElektraInitiative/libelektra.git WORKDIR /home/elektra/libelektra -RUN git checkout elektra-web1.5 #...
[tools] Update eclipse target for excluding.
@@ -399,6 +399,33 @@ def RelativeProjectPath(env, path): return path +def HandleExcludingOption(entry, sourceEntries, excluding): + old_excluding = [] + if entry != None: + old_excluding = entry.get('excluding').split('|') + sourceEntries.remove(entry) + + value = '' + for item in old_excluding: + if item.startswith('/...
INI: Disable MSR test on Linux/ASAN
@@ -41,7 +41,6 @@ add_plugin_shell_test (conditionals) add_plugin_shell_test (directoryvalue) add_plugin_shell_test (enum) add_plugin_shell_test (hosts) -add_plugin_shell_test (ini) add_plugin_shell_test (ipaddr) add_plugin_shell_test (line) add_plugin_shell_test (mathcheck) @@ -52,9 +51,11 @@ add_plugin_shell_test (ty...
python binding BUGFIX Should be taking global lock before calling back to python code
@@ -360,6 +360,9 @@ static int g_oper_get_items_cb(sr_session_ctx_t *session, const char *module_nam static const char *g_ly_module_imp_clb(const char *mod_name, const char *mod_rev, const char *submod_name, const char *sub_rev, void *user_data, LYS_INFORMAT *format, void (**free_module_data)(void *model_data, void *us...
null after free
@@ -25,8 +25,8 @@ void init_config_entry(config_entry* ce) { } void destroy_config_entry(config_entry* ce) { - if (ce->tag!=NULL) free(ce->tag); - if (ce->data!=NULL) free(ce->data); + if (ce->tag!=NULL) { free(ce->tag); ce->tag=NULL; } + if (ce->data!=NULL) { free(ce->data); ce->data=NULL; } } void init_config_group(c...
Setting l2fwd test case requirements right
@@ -11,14 +11,14 @@ fake_cmd_t t4p4s_testcase_test[][RTE_MAX_LCORE] = FASTREQ(1, 33, "hit smac, hit dmac", hETH4(ETH03, ETH1A)), FASTREQ(1, 44, "hit smac, hit dmac", hETH4(ETH04, ETH1A)), - FAST(1, BCAST, hETH4("010101010101", "101010101010")) + FASTREQ(1, BCAST, "miss smac, miss dmac", hETH4("010101010101", "101010101...
fixed handling of missing argument in command line
@@ -6480,6 +6480,11 @@ while((auswahl = getopt_long(argc, argv, short_options, long_options, &index)) ! break; case HCX_STATUS: + if(!isdigit(optarg[0])) + { + fprintf(stderr, "status must be a digit\n"); + exit(EXIT_FAILURE); + } statusout |= strtol(optarg, NULL, 10); break;
btc: fix order of fee options
@@ -76,9 +76,9 @@ export default class Send extends Component { let high = estimates.length - 1; this.setState({ feeChoices: { - low: [30, n.estimates[30]["sat_per_vbyte"]], + high: [30, n.estimates[30]["sat_per_vbyte"]], mid: [180, n.estimates[180]["sat_per_vbyte"]], - high: [360, n.estimates[360]["sat_per_vbyte"]], +...
improved function to remove damaged M2M4 hashes (-F)
/* globale Variablen */ static hcx_t *hcxdata = NULL; +static const uint8_t nullnonce[] = +{ +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 +}; +#define NULLNONCE_SIZE (sizeo...
switched thread on Http Response
@@ -54,7 +54,7 @@ void HttpClientManager::handleSendRequest(EventsUploadContextPtr const& ctx) void HttpClientManager::scheduleOnHttpResponse(HttpCallback* callback) { - PAL::executeOnWorkerThread(self(), &HttpClientManager::onHttpResponse, callback); + PAL::scheduleOnWorkerThread(0,self(), &HttpClientManager::onHttpRe...
req: fix Coverity Explicit null dereference Add a check for a non-existent file name when specifying params via file. Add a check for a failure to determine key type.
@@ -1522,6 +1522,12 @@ static EVP_PKEY_CTX *set_keygen_ctx(const char *gstr, if (strncmp(gstr, "param", len) == 0) { expect_paramfile = 1; + if (p == NULL) { + BIO_printf(bio_err, + "Parameter file requested but no path given: %s\n", + gstr); + return NULL; + } } else { keytype = gstr; keytypelen = len; @@ -1569,6 +157...
Fix clang output build module flags
@@ -261,7 +261,7 @@ function build_modules(target, batchcmds, objectfiles, modules, opt) local bmiflags = modulefileflag .. bmifile target:add("cxxflags", bmiflags, {public = true, force = true}) target:add("objectfiles", objectfile) - target:data_add("cxx.modules.flags", f) + target:data_add("cxx.modules.flags", bmifl...
do not generate blocked probes
@@ -244,10 +244,15 @@ void quic_handle_event(void *context, void *data, int data_len) { for probe_name in probe_metadata: metadata = probe_metadata[probe_name] - block_field_set = block_fields.get(metadata["fully_specified_probe_name"], None) + fully_specified_probe_name = metadata["fully_specified_probe_name"] + + if ...
Add debug on error capability to compiler
@@ -20,7 +20,14 @@ P4DPDK_TARGET_DIR=${P4DPDK_TARGET_DIR-"build/$P4_BASENAME"} shift +if [ "$PDB" != "" ]; then + # note: Python 3.2+ also accepts a -c continue option + # to remain compatible with Python 2.x, a "c" has to be typed at the start + python -m "$PDB" src/compiler.py "${P4_SOURCE}" $* +else python src/compi...
don't break build if Google APIs not found
@@ -208,7 +208,8 @@ def get_addon_classpath(addon_pattern, apilevel = nil) unless found_classpath msg = "No Android SDK add-on found: #{addon_pattern}" msg += "; API level: #{apilevel}" if apilevel - raise msg + + @@logger.warn msg end if USE_TRACES
remove all events added
@@ -1094,6 +1094,7 @@ NVM_API int nvm_clear_action_required(UINT32 event_id) */ NVM_API int nvm_remove_events_from_file(UINT32 event_type_mask, CONST CHAR8* dimm_uid, UINT32 event_id) { + int Rc = 0; CHAR8 *event_buffer = NULL; INTN event_buffer_size = 0; FILE *h_file = NULL; @@ -1103,8 +1104,7 @@ NVM_API int nvm_remov...
[CUDA] Remove unneeded POCL_CUDA_NO_PTX_CACHE option Setting POCL_KERNEL_CACHE=0 works now that the program is released properly.
@@ -510,8 +510,7 @@ load_or_generate_kernel (cl_kernel kernel, cl_device_id device) strcpy (ptx_filename, bc_filename); strncat (ptx_filename, ".ptx", POCL_FILENAME_LENGTH - 1); - if (pocl_get_bool_option ("POCL_CUDA_NO_PTX_CACHE", 0) - || !pocl_exists (ptx_filename)) + if (!pocl_exists (ptx_filename)) { // Generate PT...
Add a final NULL to environment variables Fixes Wine crashes with certain numbers of environment variables present.
@@ -433,6 +433,7 @@ int GatherEnv(char*** dest, const char** env, const char* prog) } ++p; } + // update the calloc of envv when adding new variables here if(!path) { (*dest)[idx++] = strdup("BOX86_PATH=.:bin"); } @@ -447,6 +448,8 @@ int GatherEnv(char*** dest, const char** env, const char* prog) strcat(tmp, prog); (*d...
tests: UT for MPLS 6PE Type: test
@@ -4,7 +4,7 @@ import unittest import socket from framework import VppTestCase, VppTestRunner -from vpp_ip import DpoProto +from vpp_ip import DpoProto, INVALID_INDEX from vpp_ip_route import VppIpRoute, VppRoutePath, VppMplsRoute, \ VppMplsIpBind, VppIpMRoute, VppMRoutePath, \ MRouteItfFlags, MRouteEntryFlags, VppIpT...
durations: use PRIu64 to print/interpolate uint64_t
@@ -143,11 +143,11 @@ static h2o_iovec_t durations_status_final(void *priv, h2o_globalconf_t *gconf, h char *delim = ""; ret.len += sprintf(ret.base + ret.len, ",\n\"evloop-latency-nanosec\": ["); for(int i = 0; i < agg_stats->stats.evloop_latency_nanosec.size; i++) { - size_t len = snprintf(NULL, 0, "%s%llu", delim, a...
added hcxpcapngtool news
+01.09.2021 +========== +hcxpcapngtool: added new option to retrieve information about the ACCESS POINT + As initial start, if transmitted, MAC_AP, MODELNAME and SERIALNUMBER are stored (delimited by tab). +-D <file> : output device information list + + 28.08.2021 ========== wlancap2wpasec: added upload progress inform...
bar programming fixes
:-dynamic(currentbar/5). :-dynamic(addr/3). -:-dynamic(pci_id_node_id/2). %:-dynamic(bar/7). %:-dynamic(vf/2). % :-include("../data/data_sbrinz1.txt"). % :-include("../data/data_loner.txt"). +pci_id_node_id(addr(Bus, Dev, Fun, BarNum), [Bus, Dev, Fun, BarNum, "PCI"]). +pcibus_node_id(["PCIBUS"]). merge_window([], [], _...
soc/esp32: Add test_env for 32kHz XTAL unit tests
@@ -218,10 +218,7 @@ static void start_freq(rtc_slow_freq_t required_src_freq, uint32_t start_delay_m printf("Test passed successfully\n"); } -#ifdef CONFIG_SPIRAM -// PSRAM tests run on ESP-WROVER-KIT boards, which have the 32k XTAL installed. -// Other tests may run on DevKitC boards, which don't have a 32k XTAL. -TE...
ci: increase target test job num
@@ -365,7 +365,7 @@ component_ut_test_001: UT_001: extends: .unit_test_32_template - parallel: 47 + parallel: 48 tags: - ESP32_IDF - UT_T1_1 @@ -512,7 +512,7 @@ UT_034: UT_035: extends: .unit_test_s2_template - parallel: 49 + parallel: 50 tags: - ESP32S2_IDF - UT_T1_1
code-generation: moved namespace to top of botan file
#include <kdbplugin.h> #include <memory> +using namespace ckdb; using namespace Botan; using std::unique_ptr; @@ -31,8 +32,6 @@ extern "C" { #include <kdbassert.h> #include <kdberrors.h> #include <string.h> -using namespace ckdb; - /** * @brief derive the cryptographic key and IV for a given (Elektra) Key k
Fixing build on Linux due to Long Int conversion error
@@ -142,7 +142,7 @@ QVariant AssetTableModel::data(const QModelIndex &index, int role) const switch (role) { case AmountRole: - return rec->quantity; + return (unsigned long long) rec->quantity; case AssetNameRole: return QString::fromStdString(rec->name); case FormattedAmountRole: