message
stringlengths
6
474
diff
stringlengths
8
5.22k
session server BUGFIX error message arguments
@@ -2903,7 +2903,7 @@ nc_server_ch_client_periodic_set_period(const char *client_name, uint16_t period } if (client->conn_type != NC_CH_PERIOD) { - ERR("Call Home client \"%s\" is not of periodic connection type."); + ERR("Call Home client \"%s\" is not of periodic connection type.", client_name); /* UNLOCK */ nc_serve...
Remove incorrect hashing Incorrect interpretation of 'empty'
@@ -219,7 +219,6 @@ int mbedtls_pkcs12_derivation( unsigned char *data, size_t datalen, unsigned char diversifier[128]; unsigned char salt_block[128], pwd_block[128], hash_block[128]; - unsigned char empty_string[2] = { 0, 0 }; unsigned char hash_output[MBEDTLS_MD_MAX_SIZE]; unsigned char *p; unsigned char c; @@ -286,2...
vlib: additional runtime_data checks
@@ -681,9 +681,10 @@ start_workers (vlib_main_t * vm) vlib_node_t *n = vlib_get_node (vm, rt->node_index); rt->cpu_index = vm_clone->cpu_index; /* copy initial runtime_data from node */ - if (n->runtime_data_bytes > 0) + if (n->runtime_data && n->runtime_data_bytes > 0) clib_memcpy (rt->runtime_data, n->runtime_data, -...
I commented that because I'm not sure on how to implement the "feature" in prod
@@ -862,6 +862,8 @@ int initialize_python(int argc, char *argv[]) { // MARK: - Redirect logs for debugging in production + /*#if DEBUG + #else NSURL *logURL = [[NSFileManager.defaultManager URLsForDirectory:NSDocumentDirectory inDomains:NSAllDomainsMask].firstObject URLByAppendingPathComponent:@"logs.txt"]; [@"" writeT...
Turned off planes
@@ -780,7 +780,7 @@ function animate() { render(); redrawCanvas(timecode); } -var showPlanes = true; +var showPlanes = false; var ang = 0; function render() { Object.keys(lighthouses).forEach(function(idx) {
APPS: Make it possible to load_cert() from stdin again Fixes
@@ -453,7 +453,7 @@ X509 *load_cert_pass(const char *uri, int maybe_stdin, /* the format parameter is meanwhile not needed anymore and thus ignored */ X509 *load_cert(const char *uri, int format, const char *desc) { - return load_cert_pass(uri, 0, NULL, desc); + return load_cert_pass(uri, 1, NULL, desc); } /* the forma...
vendor github.com/grafov/m3u8
@@ -68,6 +68,9 @@ ALLOW .* -> vendor/github.com/golang/snappy # API for sentry ALLOW .* -> vendor/github.com/getsentry/raven-go +# Parser and generator of M3U8-playlists for Apple HLS +ALLOW .* -> vendor/github.com/grafov/m3u8 + # configuration library ALLOW .* -> vendor/github.com/heetch/confita
nrf/mphalport: Use wfi to save power while waiting at the UART REPL.
@@ -58,6 +58,7 @@ int mp_hal_stdin_rx_chr(void) { if (MP_STATE_PORT(board_stdio_uart) != NULL && uart_rx_any(MP_STATE_PORT(board_stdio_uart))) { return uart_rx_char(MP_STATE_PORT(board_stdio_uart)); } + __WFI(); } return 0;
BugID:19050431: ulocation support gaode locating service, fix coding style problem
* Copyright (C) 2015-2019 Alibaba Group Holding Limited */ -#ifndef _U_LOCATION_H_ -#define _U_LOCATION_H_ +#ifndef ULOCATION_H +#define ULOCATION_H -typedef enum -{ +typedef enum { ULOC_SCENARIO_OUTDOOR = 0, ULOC_SCENARIO_INDOOR = 1, ULOC_SCENARIO_COUNT } uloc_scenario_e; -typedef struct -{ +typedef struct { float lon...
make shell script POSIX compatible
@@ -136,7 +136,7 @@ if [ "$res" = "0" ]; then echo "valgrind dummy exited with: $res" fi - res=$(("$res" != 0)) + res=$((res != 0)) fi if [ "$res" = 0 ]; then @@ -149,7 +149,7 @@ if [ "$res" = 0 ]; then echo "valgrind dummy -v get -v ab cd exited with: $?" fi - res=$(("$res" != 0)) + res=$((res != 0)) fi if [ "$res" = ...
xfconf: Link with xfconf libraries
@@ -2,12 +2,12 @@ include (LibAddMacros) find_package (PkgConfig REQUIRED) -pkg_check_modules(XFCE REQUIRED - libxfconf-0) +pkg_check_modules (XFCE REQUIRED libxfconf-0) include_directories (${XFCE_INCLUDE_DIRS}) add_plugin ( xfconf SOURCES xfconf.h xfconf.c + LINK_LIBRARIES ${XFCE_LIBRARIES} ADD_TEST TEST_README COMPO...
Don't send MAX_STREAM_DATA if state is half-closed(remote) or reset
@@ -688,6 +688,7 @@ static ssize_t conn_retransmit_protected(ngtcp2_conn *conn, uint8_t *dest, strm = ngtcp2_conn_find_stream(conn, (*pfrc)->fr.max_stream_data.stream_id); if (strm == NULL || + (strm->flags & (NGTCP2_STRM_FLAG_SHUT_RD | NGTCP2_STRM_FLAG_RESET)) || (*pfrc)->fr.max_stream_data.max_stream_data < strm->max...
improove completer result for values
@@ -201,42 +201,51 @@ function completer:_complete_option_v(options, current, completing) optvs = v end end - - local function find_and_add_candidates(values) - local found_candidates = {} + -- transform values array to candidates array + local function _transform_values(values) + local candidates = {} if #values > 0 a...
runtime: initialize base before using cpu_count
@@ -74,10 +74,10 @@ static void *pthread_entry(void *data) */ int runtime_init(thread_fn_t main_fn, void *arg, unsigned int threads) { - pthread_t tid[cpu_count - 1]; + pthread_t tid[NTHREAD]; int ret, i; - if (threads < 1 || threads > cpu_count - 1) + if (threads < 1) return -EINVAL; ret = base_init(); @@ -86,6 +86,9 ...
Closing devices seperately for each sensor
@@ -264,6 +264,7 @@ config_sensor(void) os_dev_close(dev); goto err; } + os_dev_close(dev); #endif #if MYNEWT_VAL(LSM303DLHC_PRESENT) @@ -287,6 +288,7 @@ config_sensor(void) os_dev_close(dev); goto err; } + os_dev_close(dev); #endif #if MYNEWT_VAL(BNO055_PRESENT) @@ -308,14 +310,14 @@ config_sensor(void) //assert(0); g...
Wait for eBLEHALEventIndicateCb in BLE_Write_Notification_Size_Greater_Than_MTU_3
@@ -403,6 +403,7 @@ TEST( Full_BLE_Integration_Test_Advertisement, BLE_Advertise_Interval_Consistent TEST( Full_BLE_Integration_Test_Connection, BLE_Write_Notification_Size_Greater_Than_MTU_3 ) { BTStatus_t xStatus, xfStatus; + BLETESTindicateCallback_t xIndicateEvent; IotTestBleHal_checkNotificationIndication( bletest...
removed debug dump
@@ -806,6 +806,7 @@ struct stlink_chipid_params *stlink_chipid_get_params(uint32_t chipid) { p2 = stlink_chipid_get_params_old (chipid); +#if 1 if (memcmp (p2, params, sizeof (struct stlink_chipid_params) - sizeof (struct stlink_chipid_params *)) != 0) { //fprintf (stderr, "Error, chipid params not identical\n"); //ret...
Fix issue with tray positioning.
@@ -410,13 +410,13 @@ void ComputeTrayGeometry(TrayType *tp) if(tp->halign == TALIGN_FIXED) { x = tp->requestedX; if(x < 0) { - x += sp->width; + x += sp->width + 1; } } if(tp->valign == TALIGN_FIXED) { y = tp->requestedY; if(y < 0) { - y += sp->height; + y += sp->height + 1; } } x += sp->x;
web ui docker: pin version and add build argument
@@ -14,7 +14,8 @@ RUN apt-get install -y nodejs # pull latest libelektra RUN mkdir /home/elektra WORKDIR /home/elektra -RUN git clone --depth 1 https://github.com/ElektraInitiative/libelektra.git +ARG ELEKTRA_VER=master +RUN git clone -b ${ELEKTRA_VER} --depth 1 https://github.com/ElektraInitiative/libelektra.git WORKD...
Add astyle guidelines to the contributing document.
@@ -29,7 +29,12 @@ may require changes before being merged. run tests with `make test`. If you want to add a new test suite, simply add a file to the test folder and make sure it is run when`make test` is invoked. * Be consistent with the style. For C this means follow the indentation and style in - other files (files ...
crypto/ppccap.c: wire new ChaCha20_ctr32_vsx.
@@ -90,11 +90,16 @@ void ChaCha20_ctr32_int(unsigned char *out, const unsigned char *inp, void ChaCha20_ctr32_vmx(unsigned char *out, const unsigned char *inp, size_t len, const unsigned int key[8], const unsigned int counter[4]); +void ChaCha20_ctr32_vsx(unsigned char *out, const unsigned char *inp, + size_t len, cons...
hssi: add return statement to `config_app::do_read`
@@ -322,6 +322,7 @@ bool config_app::do_dump(const cmd_handler::cmd_vector_t & cmds) registers = parsed.data(); register_count = parsed.size(); } + if (cmds.size() > 1) { std::ofstream out(cmds[1]); @@ -334,7 +335,6 @@ bool config_app::do_dump(const cmd_handler::cmd_vector_t & cmds) return true; } return false; - } boo...
Add missing param to the documentation of hquery
@@ -1470,7 +1470,12 @@ fxs = [ name: "h", type: "int", info: "The handle.", - } + }, + { + name: "type", + type: "const char*", + info: "The opaque ID of the queried type.", + }, ], prologue: `
Fix infinite request loop for sensors which don't have sw build id attribute
@@ -8549,7 +8549,7 @@ void DeRestPluginPrivate::delayedFastEnddeviceProbe() } // manufacturer, model id, sw build id - if (!sensor || modelId.isEmpty() || manufacturer.isEmpty() || swBuildId.isEmpty()) + if (!sensor || modelId.isEmpty() || manufacturer.isEmpty() || (swBuildId.isEmpty() && dateCode.isEmpty())) { deCONZ:...
doc: update 3.0.1 release notes Clarify description of CVE fix (only impacts ACRN implementation on Alder Lake platforms), and improve description of the ACRN shell's new vmexit command.
@@ -36,19 +36,19 @@ What's New in v3.0.1 ******************** Mitigation for Return Stack Buffer Underflow security vulnerability - For platforms that supports RRSBA (Restricted Return Stack Buffer + When running ACRN on Alder Lake platforms that support RRSBA (Restricted Return Stack Buffer Alternate), using retpoline...
tests: fix import in test/test_pcap.py Type: test
#!/usr/bin/env python3 +import os import unittest from framework import VppTestCase, VppTestRunner, running_gcov_tests from vpp_ip_route import VppIpTable, VppIpRoute, VppRoutePath -from os import path, remove class TestPcap(VppTestCase): @@ -77,12 +77,13 @@ class TestPcap(VppTestCase): else: self.logger.info(cmd + " F...
YAML CPP: Remove unnecessary test code
@@ -54,25 +54,12 @@ TEST (yamlcpp, contract) CLOSE_PLUGIN (); } -void update_parent (CppKeySet expected, string const filepath) -{ - // We replace the value of the parent key of expected keyset, if the header file specifies the value @CONFIG_FILEPATH@. - // We could also do that via CMake, but the current solution shou...
get-gcp-jwt: clean up references, use +ot Moves =, closer to call sites so it's clearer what's coming from where. Also uses +ot, allowing a less horrifying +sign-jwt. This also seems to not jump back and forth between tapes and cords as much, for what that's worth.
:: :: /- spider, settings -/+ jose, pkcs, strandio +/+ jose, pkcs, primitive-rsa, strandio =, strand=strand:spider -=, format -=, jose -=, pkcs +=, rsa=primitive-rsa ^- thread:spider |^ |= * %. dat ;: cork to-wain:format - ring:de:pem:pkcs8 + ring:de:pem:pkcs8:pkcs need == :: construct and return a self-signed JWT issu...
WebXR: Fix isDown; Fix hand tracking;
@@ -299,8 +299,9 @@ var webxr = { webxr_isDown: function(device, button, down, changed) { var b = state.hands[device] && state.hands[device].buttons[button]; + var c = state.lastButtonState[device]; HEAPU8[down] = b && b.pressed; - HEAPU8[changed] = b && (state.lastButtonState[device][button] ^ b.pressed); + HEAPU8[cha...
Update kservice.c Update year info from 2016 to 2017
@@ -533,7 +533,7 @@ void rt_show_version(void) rt_kprintf("- RT - Thread Operating System\n"); rt_kprintf(" / | \\ %d.%d.%d build %s\n", RT_VERSION, RT_SUBVERSION, RT_REVISION, __DATE__); - rt_kprintf(" 2006 - 2016 Copyright by rt-thread team\n"); + rt_kprintf(" 2006 - 2017 Copyright by rt-thread team\n"); } RTM_EXPORT...
nimble/btshell: Fix comment about default sync timeout
@@ -3795,7 +3795,7 @@ static const struct shell_param sync_create_params[] = { {"peer_addr", "usage: =[XX:XX:XX:XX:XX:XX]"}, {"sid", "usage: =[UINT8], default: 0"}, {"skip", "usage: =[0-0x01F3], default: 0x0000"}, - {"sync_timeout", "usage: =[0x000A-0x4000], default: 0x000A"}, + {"sync_timeout", "usage: =[0x000A-0x4000...
[core] HTTP/2 GOAWAY after timeout before read HTTP/2 send GOAWAY soon after client timeout, before potentially reading new stream requests, which will then have to be reset. x-ref: "Chrome gives random net::ERR_HTTP2_PROTOCOL_ERROR"
@@ -1460,10 +1460,12 @@ static void connection_check_timeout (connection * const con, const unix_time64_ con->fd); } connection_set_state(r, CON_STATE_RESPONSE_END); - con->is_readable = 0; changed = 1; } } + /* process changes before optimistic read of additional HTTP/2 frames */ + if (changed) + con->is_readable = 0;...
Fix version number of Imath for Bazel build
@@ -7,14 +7,14 @@ generate_header( name = "ImathConfig.h", substitutions = { "@IMATH_INTERNAL_NAMESPACE@": "Imath_3_1", - "@IMATH_LIB_VERSION@": "3.1.1", + "@IMATH_LIB_VERSION@": "3.1.3", "@IMATH_NAMESPACE_CUSTOM@": "0", "@IMATH_NAMESPACE@": "Imath", - "@IMATH_PACKAGE_NAME@": "Imath 3.1.1", + "@IMATH_PACKAGE_NAME@": "I...
Return main() result to OS
#include "m3.h" #include "m3_host.h" +#include "m3_env.h" #define FATAL(msg, ...) { printf("Fatal: " msg "\n", ##__VA_ARGS__); return 1; } @@ -77,6 +78,9 @@ int main (int i_argc, const char * i_argv []) i_argc -= 2; i_argv += 2; result = m3_CallMain (func, i_argc, i_argv); + + m3stack_t stack = (m3stack_t)(env->stack);...
Add PhGetProcessIsPosix (removed in commit 8c5cf8d7eced4f0450a93ccabbe166f173588e60)
@@ -256,6 +256,56 @@ PhSetProcessErrorMode( ); } +/** + * Gets whether the process is running under the POSIX subsystem. + * + * \param ProcessHandle A handle to a process. The handle + * must have PROCESS_QUERY_LIMITED_INFORMATION and + * PROCESS_VM_READ access. + * \param IsPosix A variable which receives a boolean +...
YAML CPP: Fix GCC compilation error Before this commit the plugin would not compile using GCC, since the compiler was unable to find a match for the operator `[]`.
@@ -86,7 +86,7 @@ YAML::Node createLeafNode (Key & key) { key.rewindMeta (); - auto metaNode{ YAML::Node (YAML::NodeType::Map) }; + YAML::Node metaNode{ YAML::Node (YAML::NodeType::Map) }; Key meta; while ((meta = key.nextMeta ())) { @@ -101,7 +101,7 @@ YAML::Node createLeafNode (Key & key) return YAML::Node (key.getSt...
Update STM32 StoreConfigurationBlock Storing a block on a non existing position now fails Improve comments
@@ -90,6 +90,8 @@ __nfweak bool ConfigurationManager_GetConfigurationBlock(void* configurationBloc } // Stores the configuration block to the configuration flash sector +// NOTE: because inserting or removing a configuration block it's very 'RAM expensive' we choose not to support those operations +// the host debugger...
actions: use AdoptOpenJDK 14
@@ -35,7 +35,7 @@ jobs: - uses: actions/setup-java@v2 with: distribution: 'adopt' # Use AdoptOpenJDK - java-version: '16' + java-version: '14' - name: Install Dependencies run: |
[apps] Add memory free of matrices A and B
#include "synchronization.h" // Dimensions of matrices -#define DIM_M 12 -#define DIM_N 12 -#define DIM_P 12 +#define DIM_M 20 +#define DIM_N 20 +#define DIM_P 20 int32_t *matrix_A; int32_t *matrix_B; @@ -68,13 +68,13 @@ int main() { // Initialize systolic array systolic_init(); - // Generate matrices A & B - generate_...
Print Ethereum addresses at the correct length
:: ++ num (d-co:co 1) ++ pon (cury scow %p) - ++ adr |=(a=@ ['0' 'x' ((x-co:co 20) a)]) + ++ adr |=(a=@ ['0' 'x' ((x-co:co (mul 2 20)) a)]) ++ spo |=(h=? ?:(h "escaped to" "detached from")) ++ req |=(r=(unit @p) ?~(r "canceled" (pon u.r))) --
options/posix: disallow mkostemp to take O_WRONLY
@@ -139,6 +139,7 @@ char *setstate(char *state) { // ---------------------------------------------------------------------------- int mkostemp(char *pattern, int flags) { + flags &= ~O_WRONLY; auto n = strlen(pattern); __ensure(n >= 6); if(n < 6) {
[persistence] change the type of roffset in LogSN
@@ -46,9 +46,15 @@ enum upd_type { UPD_NONE }; +/* Change the type of roffset from uint32_t to uint64_t. + * 1. There is no guarantee that the checkpoint will always succeed, + * the cmdlog record offset can exceed 4GB during retries. + * 2. Depending on the memlimit, a checkpoint can occur when offset exceeds 4GB. + *...
perfmon: numa node list probing should use '/online' instead of '/has_cpu' Type: fix
@@ -147,7 +147,7 @@ intel_uncore_init (vlib_main_t *vm, perfmon_source_t *src) u32 i, j; u8 *s = 0; - if ((err = clib_sysfs_read ("/sys/devices/system/node/has_cpu", "%U", + if ((err = clib_sysfs_read ("/sys/devices/system/node/online", "%U", unformat_bitmap_list, &node_bitmap))) { clib_error_free (err);
Doc: Fix pageinspect bt_page_items() example. Oversight in commit
@@ -358,7 +358,7 @@ btpo_flags | 3 all of the items on a B-tree index page. For example: <screen> test=# SELECT itemoffset, ctid, itemlen, nulls, vars, data, dead, htid, tids[0:2] AS some_tids - FROM bt_page_items(get_raw_page('tenk2_hundred', 5)); + FROM bt_page_items('tenk2_hundred', 5); itemoffset | ctid | itemlen |...
Update RP2040 hcd_init to have rhport argument.
@@ -363,9 +363,10 @@ static void hw_endpoint_init(uint8_t dev_addr, const tusb_desc_endpoint_t *ep_de //--------------------------------------------------------------------+ // HCD API //--------------------------------------------------------------------+ -bool hcd_init(void) +bool hcd_init(uint8_t rhport) { - pico_tr...
schema compile amend BUGFIX do not skip augments More augments may be applied if they are nested, effectively skipping some.
@@ -1887,9 +1887,11 @@ lys_compile_node_augments(struct lysc_ctx *ctx, struct lysc_node *node) lysc_update_path(ctx, NULL, NULL); LY_CHECK_GOTO(ret, cleanup); - /* augment was applied, remove it (index may have changed because other augments could have been applied) */ + /* augment was applied, remove it (index and the...
proc_syspageSpawnName: Fixed call to vm_getSharedMap JIRA:
@@ -915,7 +915,7 @@ int proc_syspageSpawnName(const char *map, const char *name, char **argv) syspage_mapNameResolve(map); if (sysMap != NULL && (sysMap->attr & (mAttrRead | mAttrWrite)) == (mAttrRead | mAttrWrite)) - return proc_syspageSpawn((syspage_prog_t *)prog, vm_getSharedMap((syspage_prog_t *)prog, sysMap->attr)...
TEST: Fix test/recipes/15-test_rsa.t Perl strings should be compared with 'eq', not '=='. This only generates a perl warning, so wasn't immediately noticed. Also, remove the check of disabled 'dsa'. That never made reak sense.
@@ -49,7 +49,7 @@ sub run_rsa_tests { SKIP: { skip "Skipping msblob conversion test", 1 - if disabled($cmd) || disabled("dsa") || $cmd == 'pkey'; + if disabled($cmd) || $cmd eq 'pkey'; subtest "$cmd conversions -- public key" => sub { tconversion( -type => 'msb', -prefix => "$cmd-msb-pub",
ds lyb BUGFIX handle non-existing operational Which is perfectly fine as it is volatile and will not exist after reboot. Fixes
@@ -190,7 +190,8 @@ srpds_lyb_destroy(const struct lys_module *mod, sr_datastore_t ds) return rc; } - if ((unlink(path) == -1) && (errno != ENOENT)) { + if ((unlink(path) == -1) && (errno != ENOENT) && ((ds == SR_DS_STARTUP) || (ds == SR_DS_RUNNING))) { + /* startup is persistent and must always exist, running should a...
Fix hex escapes.
@@ -191,7 +191,7 @@ static void popstate(DstParser *p, Dst val) { static int checkescape(uint8_t c) { switch (c) { default: return -1; - case 'h': return 1; + case 'x': return 1; case 'n': return '\n'; case 't': return '\t'; case 'r': return '\r';
Print "Server started on port XXX" message upon start.
@@ -28,7 +28,9 @@ int main(int argc, char **argv) notifier n = table_find(t, sym(select)) ? create_select_notifier(h) : table_find(t, sym(poll)) ? create_poll_notifier(h) : create_epoll_notifier(h); - listen_port(h, n, 8080, closure(h, conn, h)); + u16 port = 8080; + listen_port(h, n, port, closure(h, conn, h)); + rpri...
Declare SCASUM as EXTERNAL
* .. External Functions .. LOGICAL LSAME INTEGER ISAMAX - REAL SASUM, SLAMCH, CLANGE - EXTERNAL LSAME, ISAMAX, SASUM, SLAMCH, CLANGE - REAL SCASUM + REAL SASUM, SCASUM, SLAMCH, CLANGE + EXTERNAL LSAME, ISAMAX, SASUM, SCASUM, SLAMCH, CLANGE * .. * .. External Subroutines .. EXTERNAL CGEMM
fix l2cap repeat cid
@@ -1456,9 +1456,11 @@ void l2cu_change_pri_ccb (tL2C_CCB *p_ccb, tL2CAP_CHNL_PRIORITY priority) ** Returns pointer to CCB, or NULL if none ** *******************************************************************************/ +bool l2cu_find_ccb_in_list(void *p_ccb_node, void *p_local_cid); tL2C_CCB *l2cu_allocate_ccb (t...
Fix script_cmd_args length in header
@@ -26,7 +26,7 @@ typedef struct _SCENE_STATE { extern UINT8 scriptrunner_bank; extern UBYTE script_ptr_bank; extern UBYTE *script_start_ptr; -extern UBYTE script_cmd_args[6]; +extern UBYTE script_cmd_args[7]; extern UBYTE script_cmd_args_len; extern const SCRIPT_CMD script_cmds[]; extern UBYTE *script_ptr;
add OIDCRedisCacheUsername to auth_openidc.conf docs
# When not specified, no authentication is performed. #OIDCRedisCachePassword <password> +# Username to be used if the Redis server requires authentication: http://redis.io/commands/auth +# NB: this can only used with Redis 6 (ACLs) or later +# When not specified, the implicit user "default" is used +#OIDCRedisCacheUse...
fix usage line in sdr-receiver-hpsdr.c
@@ -58,7 +58,7 @@ int main(int argc, char *argv[]) number = (argc == 9) ? strtol(argv[i + 1], &end, 10) : -1; if(errno != 0 || end == argv[i + 1] || number < 1 || number > 2) { - printf("Usage: sdr-transceiver-hpsdr 1|2 1|2 1|2 1|2 1|2 1|2 1|2 1|2\n"); + printf("Usage: sdr-receiver-hpsdr 1|2 1|2 1|2 1|2 1|2 1|2 1|2 1|2...
shapito: fix leftover va_arg
@@ -214,7 +214,6 @@ shapito_be_write_row_descriptionf(shapito_stream_t *stream, char *fmt, ...) int rc; switch (*fmt) { case 's': - name = va_arg(args, char*); rc = shapito_be_write_row_description_add(stream, offset, name, name_len, 0, 0, 20, -1, 0, 0); break;
os/arch/arm/src/stm32h745: Add reset flag to systemreset.c
@@ -112,6 +112,7 @@ static void up_systemreset(void) static reboot_reason_code_t reboot_reason; static reboot_reason_code_t stm32h745_reboot_reason_get_hw_value(void) { + lldbg("RCC RSR=0x%08x\n", RCC->RSR); if(__HAL_RCC_C1_GET_FLAG(RCC_FLAG_IWDG1RST)) { return REBOOT_SYSTEM_WATCHDOG;
libppd: Fixed jum based on uninitialized value in ppd.c Ported over the fix of CUPS issue
@@ -3367,11 +3367,11 @@ ppd_update_filters(ppd_file_t *ppd, /* I - PPD file */ srctype[256], dstsuper[16], /* Destination MIME media type */ dsttype[256], - program[1024], /* Command to run */ *ptr, /* Pointer into command to run */ buffer[2048], /* Re-written cupsFilter value */ **filter; /* Current filter */ int cost...
adds (extremely basic) certificate renewal
:: +register: create ACME service account :: :: Note: accepts services ToS. + :: XX add rekey mechanism :: ++ register ^+ this /acme/register/(scot %p our.bow) %^ signed-request reg.dir i.nonces [%o (my [['termsOfServiceAgreed' b+&] ~])] - :: XX rekey + :: +renew: renew certificate :: + ++ renew + ^+ this + ~| %renew-e...
sr: fix deleting an SR l2 steering policy Type: fix
@@ -135,9 +135,13 @@ sr_steering_policy (int is_del, ip6_address_t * bsid, u32 sr_policy_index, else if (steer_pl->classify.traffic_type == SR_STEER_L2) { /* Remove HW redirection */ - vnet_feature_enable_disable ("device-input", - "sr-policy-rewrite-encaps-l2", + int ret = vnet_feature_enable_disable ("device-input", ...
[tools/vsc.py]update json dump support indent=4
@@ -64,7 +64,7 @@ def GenerateCFiles(env): json_obj = {} json_obj['configurations'] = [config_obj] - vsc_file.write(json.dumps(json_obj)) + vsc_file.write(json.dumps(json_obj, indent=4)) vsc_file.close() return
Remove unnecessary try/catch in list_internal_identifiers The try/catch was used to catch Exceptions and exit with code 1, a legacy from check_names.py which uses the pattern to exit with code 2. But code 1 is the default for the Python runtime anyway, so it is redundant and can be removed.
@@ -44,7 +44,6 @@ def main(): parser.parse_args() - try: name_check = CodeParser(logging.getLogger()) result = name_check.parse_identifiers([ "include/mbedtls/*_internal.h", @@ -56,9 +55,5 @@ def main(): with open("identifiers", "w", encoding="utf-8") as f: f.writelines(identifiers) - except Exception: # pylint: disabl...
remove cells from 6p response side to CLEAR command.
@@ -992,6 +992,15 @@ void sixtop_six2six_sendDone(OpenQueueEntry_t* msg, owerror_t error){ } } else { // doesn't receive the ACK of response packet from request side after maximum retries. + + // if the response is for CLEAR command, remove all the cells and reset seqnum regardless NO ack received. + if ( msg->l2_sixto...
sse: add shuffle implementation of simde_mm_storer_ps
@@ -3075,11 +3075,16 @@ simde_mm_storer_ps (simde_float32 mem_addr[4], simde__m128 a) { #else simde__m128_private a_ = simde__m128_to_private(a); + #if defined(SIMDE__SHUFFLE_VECTOR) + a_.f32 = SIMDE__SHUFFLE_VECTOR(32, 16, a_.f32, a_.f32, 3, 2, 1, 0); + simde_mm_store_ps(mem_addr, simde__m128_from_private(a_)); + #els...
doc: Add explanation for incr/decr keyset cursors
@@ -1546,6 +1546,26 @@ int f (KeySet *ks) * ksRewind(). When you set an invalid cursor ksCurrent() * is 0 and ksNext() == ksHead(). * + * @section cursor_directly Using Cursor directly + * + * You can also use the cursor directly + * by initializing it to some index in the Keyset + * and then incrementing or decrementi...
runtimes/charliecloud: OBS doesn't recognize file requires
@@ -32,7 +32,12 @@ URL: https://hpc.github.io/%{pname}/ Source0: https://github.com/hpc/charliecloud/releases/download/v%{version}/charliecloud-%{version}.tar.gz BuildRequires: gcc -BuildRequires: /usr/bin/python3 +%if 0%{?centos_version} || 0%{?rhel_version} +BuildRequires: python34 +%endif +%if 0%{?sles_version} || 0...
fix: a bug of using token.start as the address
@@ -2290,13 +2290,13 @@ json_vextract (char * json, size_t size, char * extractor, va_list ap) case JSMN_OBJECT: if (!cv.is_object) ERR("Cannot apply '%s' to json array:'%.*s'\n", - extractor, tokens[0].size, tokens[0].start); + extractor, tokens[0].size, json + tokens[0].start); ret = extract_object_value(&cv, 0, &inf...
Add libbcc-loader-static.a symbols into libbcc.a It's useful to have all the bcc symbols in one place when statically linking against bcc. This patch adds all the symbols from libbcc-loader-static into libbcc. This is in line with how libbcc-lua-static does it as well.
@@ -68,7 +68,7 @@ endif() add_library(bcc-loader-static STATIC ${bcc_sym_sources} ${bcc_util_sources}) target_link_libraries(bcc-loader-static elf) add_library(bcc-static STATIC - ${bcc_common_sources} ${bcc_table_sources} ${bcc_util_sources} ${bcc_usdt_sources}) + ${bcc_common_sources} ${bcc_table_sources} ${bcc_util_...
README: add link to LZSSE-SIMDe
@@ -7,13 +7,16 @@ The initial focus is on writing complete portable implementations. Once that's complete we will start focusing on optimizations, such as implementing one set of functions with another. -Currently, there are full implementations of the following instruction +For an example of a project using SIMDe, see...
usrsock: Initialize g_usrsockdev in the declaration
/**************************************************************************** - * net/usrsock/usrsock_dev.c + * drivers/usrsock/usrsock_dev.c * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with @@ -109,7 +109,10 @@ static const st...
inform user if maximum number of errors is reached
@@ -2455,7 +2455,7 @@ while(1) } if(errorcount >= maxerrorcount) { - fprintf(stderr, "\nmaximal error count reached\n"); + fprintf(stderr, "\nmaximum number of errors is reached\n"); globalclose(); } continue;
fix tsch_schedule_remove_link_by_timeslot function to remove all links at a given timeslot and channel offset
* \author * Simon Duquennoy <simonduq@sics.se> * Beshr Al Nahas <beshr@sics.se> + * Atis Elsts <atis.elsts@edi.lv> */ /** @@ -337,8 +338,23 @@ int tsch_schedule_remove_link_by_timeslot(struct tsch_slotframe *slotframe, uint16_t timeslot, uint16_t channel_offset) { - return tsch_schedule_remove_link(slotframe, - tsch_sc...
Adds deploy section to travis
@@ -60,6 +60,14 @@ script: after_success: - coveralls +deploy: + provider: pypi + user: desc-ccl + password: ... + on: + tags: true + branch: master + # Check why the note creation process crashes # - make -C doc/0000-ccl_note #after_success:
documented extrapolation better
@@ -41,9 +41,13 @@ class Pk2D(object): For reference, CCL will use bicubic interpolation to evaluate the power spectrum at any intermediate point in k and a. interp_order_lok (int): extrapolation order to be used on k-values - below the minimum of the splines (use 0, 1 or 2). + below the minimum of the splines (use 0, ...
Fix typos in thread-pool.h
/// @page /// -/// This extension let the plugin use the host's thread pool. +/// This extension lets the plugin use the host's thread pool. /// /// The plugin must provide @ref clap_plugin_thread_pool, and the host may provide @ref -/// clap_host_thread_pool. If it doesn't, the plugin should process its data by its ow...
iokernel: sched bug fix Perform the scheduler slow pass before the fast pass, otherwise the list of idle cores is likely out-of-date.
@@ -381,6 +381,26 @@ void sched_poll(void) int i, core, idle_cnt = 0; struct proc *p; + /* + * slow pass --- runs every IOKERNEL_POLL_INTERVAL + */ + + now = microtime(); + if (now - last_time >= IOKERNEL_POLL_INTERVAL) { + int i; + + last_time = now; + for (i = 0; i < dp.nr_clients; i++) + sched_detect_congestion(dp.c...
YAML Smith: Remove `getstorage` placement
- infos/needs = - infos/provides = conv - infos/recommends = -- infos/placements = getstorage setstorage +- infos/placements = setstorage - infos/status = maintained specific unittest nodep preview experimental unfinished nodoc concept discouraged - infos/metadata = - infos/description = This plugin exports key sets in...
update comment for aligned_alloc
@@ -187,13 +187,11 @@ void* memalign(size_t alignment, size_t size) { return mi_memali int posix_memalign(void** p, size_t alignment, size_t size) { return mi_posix_memalign(p, alignment, size); } void* _aligned_malloc(size_t alignment, size_t size) { return mi_aligned_alloc(alignment, size); } -// aligned_alloc is ava...
Don't show unset geolocation.
@@ -315,14 +315,13 @@ _papplClientHTMLInfo( } else { - papplClientHTMLPrintf(client, "%s<br>\n", location ? location : "Not set"); + papplClientHTMLPrintf(client, "%s", location ? location : "Not set"); if (geo_location) - papplClientHTMLPrintf(client, "%g&deg;&nbsp;%c&nbsp;latitude x %g&deg;&nbsp;%c&nbsp;longitude", f...
Update matrix.c more cleanup, no math.h needed
@@ -14,9 +14,11 @@ isn't there (don't ask me why) changed matrix_free to return void * instead of nothing (for consistency's sake) - Derek Kwan 2016 + +- porres made minor revisions to the code in 2021 (removed unnecessary +dependencies, changed identation */ -#include <math.h> #include "m_pd.h" #include <common/api.h>...
Fix script references in overrides
@@ -219,7 +219,7 @@ void FunctionOverride::HandleOverridenFunction(RED4ext::IScriptable* apContext, auto* pType = pArg->type; auto* pAllocator = pType->GetAllocator(); - auto* pInstance = pAllocator->Alloc(pType->GetSize()).memory; + auto* pInstance = pAllocator->AllocAligned(pType->GetSize(), pType->GetAlignment()).me...
phys map: Add tests for holes in MMIO region and order This adds a couple of tests to ensure that there are no holes in the map for MMIO mappings and the map is sorted by start address.
@@ -89,13 +89,14 @@ static void check_map_call(void) struct proc_chip c; uint64_t start, size, end; const struct phys_map_entry *e; - struct map_call_entry *tbl, *t; + struct map_call_entry *tbl, *t, *tnext; int tbl_size = 0; bool passed; for (e = phys_map->table; !phys_map_entry_null(e); e++) tbl_size++; + tbl_size++;...
flapjack: add i2c_ports entry for I2C_PORT_ALS BRANCH=master TEST=none Tested-by: Nick Vaccaro
@@ -238,6 +238,7 @@ BUILD_ASSERT(ARRAY_SIZE(adc_channels) == ADC_CH_COUNT); const struct i2c_port_t i2c_ports[] = { {"charger", I2C_PORT_CHARGER, 400, GPIO_I2C1_SCL, GPIO_I2C1_SDA}, {"tcpc0", I2C_PORT_TCPC0, 400, GPIO_I2C1_SCL, GPIO_I2C1_SDA}, + {"als", I2C_PORT_ALS, 400, GPIO_I2C1_SCL, GPIO_I2C1_SDA}, {"battery", I2C_...
Resolves Removed the visual artifacts of the Expressions window that were present on first draw.
@@ -925,6 +925,10 @@ QvisExpressionsWindow::UpdateWindowSingleItem() // Cyrus Harrison, Wed Jun 11 13:49:19 PDT 2008 // Initial Qt4 Port. // +// Kevin Griffin, Tue Nov 12 14:30:34 PST 2019 +// Added a call to update() to remove the visual artificats present during +// the first draw of the expressions window. +// // **...
fixed weak candidate len
@@ -199,7 +199,7 @@ OPTIONCODE_MACMYSTA 0xf29e (6 byte) OPTIONCODE_SNONCE 0xf29f (32 byte) -OPTIONCODE_WEAKCANDIDATE 0xf2a0 (32 byte) +OPTIONCODE_WEAKCANDIDATE 0xf2a0 (64 byte) == 63 characters + zero OPTIONCODE_GPS 0xf2a1 (max 128 byte)
Add png_fuzzer "smoke alarm test"
@@ -66,6 +66,12 @@ It should print "PASS", amongst other information, and exit(0). const char* // fuzz(wuffs_base__io_buffer* src, uint64_t hash) { + // This "smoke alarm test" should trigger the OSS-Fuzz infrastructure to send + // e-mail saying that it found a reproducible crash. + if ((hash & 0xFFFF) == 0xDEAD) { + ...
YAML CPP: Fix memory leak
@@ -46,7 +46,7 @@ static void test_contract (void) CLOSE_PLUGIN (); } -static void test_read (char const * const filepath, KeySet const * const expected) +static void test_read (char const * const filepath, KeySet * const expected) #ifdef __llvm__ __attribute__ ((annotate ("oclint:suppress"))) #endif @@ -57,6 +57,7 @@ ...
common/peci.c: Format with clang-format BRANCH=none TEST=none
@@ -143,8 +143,7 @@ static int peci_cmd(int argc, char **argv) ccprintf("PECI read data: %ph\n", HEX_BUF(r_buf, peci.r_len)); return EC_SUCCESS; } -DECLARE_CONSOLE_COMMAND(peci, peci_cmd, - "addr wlen rlen cmd timeout(us)", +DECLARE_CONSOLE_COMMAND(peci, peci_cmd, "addr wlen rlen cmd timeout(us)", "PECI command"); stat...
Fix the buffer sizing in the fatalerrtest
@@ -59,7 +59,7 @@ static int test_fatalerr(void) goto err; /* SSL_read()/SSL_write should fail because of a previous fatal error */ - if (!TEST_int_le(len = SSL_read(sssl, buf, sizeof(buf - 1)), 0)) { + if (!TEST_int_le(len = SSL_read(sssl, buf, sizeof(buf) - 1), 0)) { buf[len] = '\0'; TEST_error("Unexpected success re...
* Facil repo relocation
@@ -7,7 +7,7 @@ set(FACIL_LIBRARY_DIR "${FACIL_BINARY_DIR}") ExternalProject_Add( extern_facil - GIT_REPOSITORY https://github.com/boazsegev/facil.io.git + GIT_REPOSITORY https://github.com/Softmotions/facil.io.git GIT_TAG 0.7.0.beta8 # Remove in-source makefile to avoid clashing PATCH_COMMAND rm -f ./makefile
.github/workflows/travis-ci.yml: unix-coverage: Install setuptools first.
@@ -202,9 +202,9 @@ jobs: sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 80 sudo update-alternatives --config gcc sudo apt-get install python3-pip - sudo pip install cpp-coveralls sudo pip3 install setuptools sudo pip3 install pyelftools + sudo pip3 install cpp-coveralls gcc --version python3 --vers...
Never exit the fuzzer until h2o ended up closing the fd internally.
@@ -126,7 +126,6 @@ struct writer_thread_arg { char *buf; size_t len; int fd; - int ofd; pthread_barrier_t barrier; }; @@ -227,7 +226,6 @@ void *writer_thread(void *arg) } } close(wta->fd); - close(wta->ofd); pthread_barrier_wait(&wta->barrier); free(wta); } @@ -247,7 +245,6 @@ static int feeder(int sfd, char *buf, siz...
Shell Recorder: Remove unnecessary CMake code
@@ -22,7 +22,6 @@ endfunction (add_shell_recorder_test FILENAME) if (ENABLE_KDB_TESTING) - set (USE_CMAKE_KDB_COMMAND "") # set kdb command if (BUILD_SHARED) list (FIND REMOVED_PLUGINS list list_index) if (list_index EQUAL -1) @@ -30,10 +29,7 @@ if (ENABLE_KDB_TESTING) endif (list_index EQUAL -1) endif () - string (LEN...
Add PhFormatUInt64Prefix
@@ -2019,6 +2019,44 @@ PPH_STRING PhFormatUInt64( return PhFormat(&format, 1, 0); } +// Formats using prefix (1000=1k, 1000000=1M, 1000000000000=1B) (dmex) +PPH_STRING PhFormatUInt64Prefix( + _In_ ULONG64 Value, + _In_ BOOLEAN GroupDigits + ) +{ + static PH_STRINGREF PhpPrefixUnitNamesCounted[7] = + { + PH_STRINGREF_IN...
OSSL_CMP_SRV_process_request(): Log any error queue entries on response
@@ -588,6 +588,7 @@ OSSL_CMP_MSG *OSSL_CMP_SRV_process_request(OSSL_CMP_SRV_CTX *srv_ctx, OSSL_CMP_PKISI_free(si); } } + OSSL_CMP_CTX_print_errors(ctx); ctx->secretValue = backup_secret; /* possibly close the transaction */
Added missing switch case for new RGB888 pen type
@@ -238,6 +238,7 @@ mp_obj_t _JPEG_decode(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args switch(self->graphics->graphics->pen_type) { case PicoGraphics::PEN_RGB332: case PicoGraphics::PEN_RGB565: + case PicoGraphics::PEN_RGB888: case PicoGraphics::PEN_P8: case PicoGraphics::PEN_P4: case PicoGraphics::PEN_3B...
better text.
@@ -129,7 +129,7 @@ static void usage(void) printf(" %s", *m); printf("\n"); #ifdef USE_DNSCRYPT - printf("DNSCrypt enabled\n"); + printf("DNSCrypt feature available\n"); #endif printf("BSD licensed, see LICENSE in source package for details.\n"); printf("Report bugs to %s\n", PACKAGE_BUGREPORT);
Redis 4.0.6.
@@ -10,6 +10,59 @@ HIGH: There is a critical bug that may affect a subset of users. Upgrade! CRITICAL: There is a critical bug affecting MOST USERS. Upgrade ASAP. -------------------------------------------------------------------------------- +===========================================================================...
shelter: --mutual becomes boolean Fixes:
@@ -44,7 +44,7 @@ EXAMPLE: Name: "crypto", Usage: "set the type of crypto wrapper", }, - cli.StringFlag{ + cli.BoolFlag{ Name: "mutual", Usage: "set the attestation type is mutual or not", }, @@ -58,7 +58,9 @@ EXAMPLE: tls := cliContext.String("tls") crypto := cliContext.String("crypto") var mutual bool = false - mutua...