message
stringlengths
6
474
diff
stringlengths
8
5.22k
Add common nonce checking to oneshot encrypt
@@ -136,6 +136,22 @@ static psa_status_t psa_aead_setup( return( PSA_SUCCESS ); } +/* Perform common nonce length checks */ +static psa_status_t mbedtls_aead_check_nonce_length( + mbedtls_psa_aead_operation_t *operation, + size_t nonce_length ) +{ +#if defined(MBEDTLS_PSA_BUILTIN_ALG_CHACHA20_POLY1305) + if( operation-...
Keep family when using literals
@@ -877,14 +877,6 @@ neat_resolve(struct neat_resolver *resolver, if (!request) return RETVAL_FAILURE; - is_literal = neat_resolver_helpers_check_for_literal(&(request->family), - node); - - if (is_literal < 0) { - free(request); - return RETVAL_FAILURE; - } - request->family = family; request->dst_port = htons(port); ...
Add needed default.
q/dojo-build :: general build == :: ++ dojo-build :: one arvo step + $~ [%ex *hoon] $% {$ur p/(unit knot) q/purl:eyre} :: http GET request {$ge p/dojo-model} :: generator {$dv p/path} :: core from source
Clarify what variable-length signed integer is
@@ -81,9 +81,11 @@ const uint8_t *ngtcp2_get_uint16be(uint16_t *dest, const uint8_t *p); const uint8_t *ngtcp2_get_uvarint(uint64_t *dest, const uint8_t *p); /* - * ngtcp2_get_varint reads variable-length signed integer from |p|, - * and stores it in the buffer pointed by |dest| in host byte order. - * It returns |p| p...
Dummy --dir flag. Fix
@@ -258,6 +258,10 @@ int main (int i_argc, const char* i_argv[]) return 0; } else if (!strcmp("--repl", arg)) { argRepl = true; + } else if (!strcmp("--dir", arg)) { + const char* argDir; + ARGV_SET(argDir); + (void)argDir; } else if (!strcmp("--func", arg) or !strcmp("-f", arg)) { ARGV_SET(argFunc); }
Fixed wrong cpu function name.
@@ -326,15 +326,15 @@ SceKernelIntrStatus ksceKernelRWSpinlockLowReadLockCpuSuspendIntr(SceKernelRWSpi * @note Interrupts are only suspended if the acquisition of the spinlock succeeds * @note It is forbidden to write to data protected by the spinlock after acquiring it with this function. */ -SceKernelIntrStatus ksceK...
ec: Sort configs in qcom test No functional change, just sorting. BRANCH=None TEST=twister Tested-by: Jeremy Bettis
# Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. +CONFIG_ASSERT=y +CONFIG_TEST=y CONFIG_ZTEST=y CONFIG_ZTEST_ASSERT_VERBOSE=1 CONFIG_ZTEST_MOCKING=y CONFIG_ZTEST_NEW_API=y -CONFIG_TEST=y -CONFIG_ASSERT=y # Print logs from Zephyr LOG_MODULE to stdout CONFIG_NATIVE_UAR...
test: add platone test case test_002InitWallet_0011InitPlatoneWalletWithBiggerSize fix the issue aitos-io#1176 teambition task id:
@@ -773,6 +773,36 @@ START_TEST(test_002InitWallet_0009InitPlatoneWalletWithNullConfig) } END_TEST +START_TEST(test_002InitWallet_0010InitPlatoneWalletWithSmallerSize) +{ + BoatPlatoneWallet *rtnVal; + BoatPlatoneWalletConfig walletConfig = {0}; + + /* 1. execute unit test */ + rtnVal = BoatPlatoneWalletInit(&walletCon...
Reuse existing button map for RC-EF-3.0
"rcv14Map": { "vendor": "Heiman", "doc": "Smart controller HS1RC-M and HS1RC-E", - "modelids": ["RC_V14", "RC-EM"], + "modelids": ["RC_V14", "RC-EM", "RC-EF-3.0"], "map": [ [1, "0x01", "IAS_ACE", "ARM", "1", "S_BUTTON_1", "S_BUTTON_ACTION_SHORT_RELEASED", "Arm day/home zones only"], [1, "0x01", "IAS_ACE", "ARM", "0", "...
VERSION bump to version 0.9.21
@@ -28,7 +28,7 @@ set(CMAKE_C_FLAGS_DEBUG "-g -O0") # set version set(LIBNETCONF2_MAJOR_VERSION 0) set(LIBNETCONF2_MINOR_VERSION 9) -set(LIBNETCONF2_MICRO_VERSION 20) +set(LIBNETCONF2_MICRO_VERSION 21) set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION}.${LIBNETCONF2_MICRO_VERSION}) set(LI...
add link to libgloss-htif README
@@ -23,3 +23,5 @@ To build baremetal RISC-V programs to run in simulation, we use the riscv64-unkn Hello, World! For more examples, look at the `tests/ directory <https://github.com/ucb-bar/chipyard/tree/master/tests>`_ in the chipyard repository. + +For more information about the libgloss port, take a look at `its REA...
Added missing startup files for IAR to ARMCM23 and ARMCM33 devices in PDSC.
@@ -2017,7 +2017,8 @@ and 8-bit Java bytecodes in Jazelle state. <file category="sourceAsm" name="Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s" version="1.0.0" attr="config" condition="ARMCC"/> <file category="sourceAsm" name="Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S" version="1.0.0" attr="config" condition="...
Trying alternate camera clamping
@@ -31,6 +31,7 @@ void MapRepositionCamera_b(); void MapHandleTrigger_b(); void MapUpdateEmotionBubble_b(); void MapUpdateActorMovement_b(UBYTE i); +UBYTE clampUBYTE(UBYTE v, UBYTE min, UBYTE max); //////////////////////////////////////////////////////////////////////////////// // Private vars @@ -197,8 +198,39 @@ void...
proc/msg: check if data pointer belongs to user's pmap before passing it directly
@@ -332,7 +332,7 @@ void *msg_map(int dir, kmsg_t *kmsg, void *data, size_t size, process_t *from, p srcmap = (from == NULL) ? msg_common.kmap : from->mapp; dstmap = (to == NULL) ? msg_common.kmap : to->mapp; - if (srcmap == dstmap) + if (srcmap == dstmap && pmap_belongs(&dstmap->pmap, data)) return data; if ((ml->w = ...
android: travis changes to api 23
@@ -62,8 +62,8 @@ android: - extra-google-m2repository - extra-android-m2repository - build-tools-26.0.2 - - android-${RHO_ANDROID_LEVEL:-26} - - addon-google_apis-google-${RHO_ANDROID_LEVEL:-26} + - android-${RHO_ANDROID_LEVEL:-19} + - addon-google_apis-google-${RHO_ANDROID_LEVEL:-19} env: global: @@ -87,7 +87,7 @@ ma...
Sign txType byte
@@ -41,11 +41,14 @@ void handleSign(uint8_t p1, tmpContent.txContent.dataPresent = false; dataContext.tokenContext.pluginStatus = ETH_PLUGIN_RESULT_UNAVAILABLE; + initTx(&txContext, &global_sha3, &tmpContent.txContent, customProcessor, NULL); + // EIP 2718: TransactionType might be present before the TransactionPayload...
chat: pad sigil icon in input
@@ -186,6 +186,7 @@ export default class ChatInput extends Component<ChatInputProps, ChatInputState> color={`#${color}`} classes={sigilClass} icon + padded />; return (
BugID:16846667: fixed bug that kernel task's ustack member is inaccessible
@@ -412,6 +412,14 @@ kstat_t krhino_utask_stack_min_free(ktask_t *task, size_t *free) return RHINO_INV_TASK_STATE; } + if (task->task_ustack_base == NULL) { + return RHINO_NULL_PTR; + } + + if (task->ustack_size == 0u) { + return RHINO_TASK_INV_STACK_SIZE; + } + #if (RHINO_CONFIG_CPU_STACK_DOWN > 0) task_stack = task->...
feat: support detecting the existence of a key
@@ -648,6 +648,16 @@ parse_value( act->_.builtin = B_FLOAT; pos ++; goto return_true; + case 'k': { + size_t sz = strlen("key"); + if (pos + sz <= end_pos && 0 == strncmp(pos, "key", sz)) { + act->mem_size.size = sizeof(bool); + act->mem_size.tag = SIZE_FIXED; + act->_.builtin = B_KEY_EXISTENCE; + pos += sz; + } + goto...
docs - fixes for gpmovemirrors, gpaddmirrors * docs - fixes for gpmovemirrors, gpaddmirrors fix incorrect syntax fix examples * docs - fix typo.
line inside the configuration file has the following format (as per attributes in the <codeph>gp_segment_configuration</codeph> catalog table):</pd> <pd> - <codeblock><varname>contentID</varname>|<varname>address</varname>|<varname>port</varname>|<varname>data_dir</varname> <varname>new_address</varname>|<varname>port<...
Fix sceKernelSysrootAlloc name
@@ -9534,6 +9534,7 @@ modules: ksceKernelAddressSpaceSetPhyMemPart: 0x67955EE9 ksceKernelAddressSpaceUnmap: 0xCE72839E ksceKernelAddressSpaceVAtoPA: 0xF2179820 + ksceKernelAlloc: 0xC0A4D2F3 ksceKernelAllocSystemCallTable: 0x5FFE4B79 ksceKernelCreateAddressSpace: 0x4A3737F0 ksceKernelCreateUidObj: 0xDF0288D7 @@ -9551,7 ...
VERSION bump to version 2.0.75
@@ -58,7 +58,7 @@ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) # set version of the project set(LIBYANG_MAJOR_VERSION 2) set(LIBYANG_MINOR_VERSION 0) -set(LIBYANG_MICRO_VERSION 74) +set(LIBYANG_MICRO_VERSION 75) set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION}) ...
build: trivial changes to global header, text alignment, comments
@@ -3744,6 +3744,7 @@ void flexframesync_print(flexframesync _q); // reset frame synchronizer internal state void flexframesync_reset(flexframesync _q); +// has frame been detected? int flexframesync_is_frame_open(flexframesync _q); // push samples through frame synchronizer
Fix sysinfo graph mouseover regression on Win7
@@ -1463,17 +1463,17 @@ VOID PhSipDefaultDrawPanel( { if (CurrentView == SysInfoSummaryView) { - if (Section->GraphHot) - { - DrawThemeBackground( - ThemeData, - hdc, - TVP_TREEITEM, - TREIS_HOT, - &DrawPanel->Rect, - &DrawPanel->Rect - ); - } + //if (Section->GraphHot) + //{ + // DrawThemeBackground( + // ThemeData, +...
Benchmarks: benchmark.c: add workaround for POSIX
@@ -433,17 +433,21 @@ static void benchmarkHashFunctionVs (void) { if (!cI && !i) { - fprintf (opmphmOut, "%lu", opmphmResults[i * (numberOfShapes * cCount * seeds) + - s * (cCount * seeds) + cI * seeds + sI]); - fprintf (foxOut, "%lu", foxResults[i * (numberOfShapes * cCount * seeds) + - s * (cCount * seeds) + cI * se...
cmake: add symlink kdb.1 to kdb-static.1
@@ -15,7 +15,7 @@ endmacro (copy_file) # - JAVA: install symlink for Java in share/java # - otherwise: install symlink for normal libraries # -# create_lib_symlink src dest - create a symbolic link from src -> dest +# create_lib_symlink src dest component - create a symbolic link from src -> dest # ~~~ macro (create_li...
api: call oc_notify_observers from delayed callback Notifying of observers of oc/con resource must be called from a delayed callback to avoid memory corruption.
@@ -213,6 +213,15 @@ oc_core_con_handler_get(oc_request_t *request, oc_interface_mask_t iface_mask, oc_send_response(request, OC_STATUS_OK); } +#ifdef OC_SERVER +static oc_event_callback_retval_t +oc_core_con_notify_observers_delayed(void *data) +{ + oc_notify_observers((oc_resource_t*)data); + return OC_EVENT_DONE; +}...
adjustemt form PR comments, fix formatting
@@ -85,14 +85,16 @@ apt-get install pdflatex \ For the plugins, please refer to the [README.md](https://www.libelektra.org/plugins/readme) of the respective plugin. A small subset of plugins to get you started: -for CentOS: +* for CentOS: + ```sh sudo yum install -y boost-devel libdb-devel GConf2-devel libxml2-devel ya...
OpenSSL is now TLSv1.3 draft-21
@@ -50,9 +50,9 @@ OpenSSL (master branch) as crypto backend: At the of time writing, choosing crypto backend from them dictates TLSv1.3 draft version. boringssl implements TLSv1.3 draft-18. On the -other hand, OpenSSL implements TLSv1.3 draft-20. They are +other hand, OpenSSL implements TLSv1.3 draft-21. They are incom...
Updates travis cfg. Splits up the matrix so that the env are configured more specifically
sudo: required -dist: trusty -#osx_image: xcode8.2 language: c -os: - - linux - # - osx - -compiler: - - gcc - - clang - -services: - - docker - - env: global: - COVERITY_SCAN_BUILD_COMMAND="make" @@ -32,17 +18,32 @@ env: matrix: include: - os: linux + dist: trusty + compiler: gcc + - os: linux + dist: trusty + compile...
Don't pack ZydisShortString on Darwin
@@ -45,7 +45,9 @@ extern "C" { /* Enums and types */ /* ============================================================================================== */ +#if !(defined(ZYAN_AARCH64) && defined(ZYAN_APPLE)) # pragma pack(push, 1) +#endif /** * Defines the `ZydisShortString` struct. @@ -67,7 +69,9 @@ typedef struct Zydi...
Move script actors on frames that only affected player
@@ -456,6 +456,14 @@ void SceneUpdateActors_b() { // Else only move player len = 1; + + // Move script actor + if (script_ptr != 0 && script_actor != 0 && actors[script_actor].moving) + { + // Move actors + actors[script_actor].pos.x += actors[script_actor].dir.x; + actors[script_actor].pos.y += actors[script_actor].di...
esp32/network_lan: Make power arg to constructor optional. A value of None for this argument is already supported, so the argument can be made optional.
@@ -99,7 +99,7 @@ STATIC mp_obj_t get_lan(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_ar { MP_QSTR_id, MP_ARG_OBJ, {.u_obj = mp_const_none} }, { MP_QSTR_mdc, MP_ARG_KW_ONLY | MP_ARG_REQUIRED | MP_ARG_OBJ }, { MP_QSTR_mdio, MP_ARG_KW_ONLY | MP_ARG_REQUIRED | MP_ARG_OBJ }, - { MP_QSTR_power, MP_ARG_KW_ONLY | MP...
{AH} add username and secret to .travis.yml
@@ -11,8 +11,8 @@ env: - CONDA_PY=3.7 global: - PYSAM_LINKING_TEST=1 - - TWINE_USERNAME= - - secure: '' + - TWINE_USERNAME=grepall + - secure: 'OcwwP8/o21+SGW0UVAnnCQwllhGSCq2HJzpI9EhX3kh6J9RTkyx/+drkg45bx1Z5u8zymuAFappEYzlpzqZE886XezkjOYGVa/u+Coqr1oT/BEJHFCkCA4o26yESp7Zy8aNj/juhB7Rfa77pIDXBayqTzbALz/AURMtZapasB18=' _d...
FIX: memory leak when getting hostname by address
@@ -1065,7 +1065,7 @@ static int arcus_build_znode_name(char *ensemble_list) hp = gethostbyaddr((char*)&myaddr.sin_addr.s_addr, sizeof(myaddr.sin_addr.s_addr), AF_INET); if (hp) { - hostp = strdup(hp->h_name); + hostp = hp->h_name; } else { // if gethostbyaddr() doesn't work, try gethostname if (gethostname((char *)&ho...
opae-sdk: fix static code analysis issue check buffer boundaries and may overflow buffer issue: function 'strncpy' may incorrectly check buffer boundaries and may overflow buffer 'dfl_dev_str' of fixed size (256) fix: replace 'strncpy' with memcpy
@@ -536,7 +536,7 @@ fpga_result get_usrclk_uio(const char *sysfs_path, res = FPGA_NOT_FOUND; goto free; } - strncpy(dfl_dev_str, p, end - p); + memcpy(dfl_dev_str, p, end - p); *(dfl_dev_str + (end - p)) = '\0'; ret = opae_uio_open(uio, dfl_dev_str);
docs/unix/quickref: Remove options not supported in Pycopy.
@@ -82,8 +82,3 @@ Environment variables not defined, the search path will be ``~/.micropython/lib:/usr/lib/micropython`` or the value of the ``MICROPY_PY_SYS_PATH_DEFAULT`` option if it was set when MicroPython itself was compiled. - -.. envvar:: MICROPYINSPECT - - Enables inspection. If ``MICROPYINSPECT`` is set to a ...
af_packet: add the missing header-len for packets with checksum offload Type: fix
@@ -343,6 +343,7 @@ fill_cksum_offload (vlib_buffer_t *b0, vnet_virtio_net_hdr_t *vnet_hdr) (tcp_header_t *) (b0->data + vnet_buffer (b0)->l4_hdr_offset); tcp->checksum = ip4_pseudo_header_cksum (ip4); vnet_hdr->csum_offset = STRUCT_OFFSET_OF (tcp_header_t, checksum); + vnet_hdr->hdr_len = l4_hdr_offset + tcp_header_by...
Fixed mem oob issue
@@ -451,8 +451,8 @@ int DriverRegPlayback(SurviveContext *ctx) { continue; } - char dev[10]; - char command[10]; + char dev[32]; + char command[32]; if (sscanf(line, "%lf %s %s", &time, dev, command) != 3) { free(line);
h2olog: add comments
@@ -31,9 +31,13 @@ from pprint import pprint quicly_probes_d = "deps/quicly/quicly-probes.d" h2o_probes_d = "h2o-probes.d" +# An allow-list to gather data from USDT probes. +# Only fields listed here are handled in BPF. struct_map = { # deps/quicly/include/quicly.h "st_quicly_stream_t": [ + # ($member_access, $optional...
WIP Consistent data file whitespace
@@ -138,10 +138,10 @@ export const toStructDataFile = <T extends {}>( ) => `#pragma bank 255 ${comment ? "\n" + comment : ""} -#include "VM.h" -${ +#include "VM.h"${ + dependencies + ? "\n" + dependencies - ? dependencies .map((dependency) => `#include "data/${dependency}.h"`) .join("\n") : "" @@ -492,7 +492,7 @@ expor...
er-coap-observe-client: missing 'addr' parameter
@@ -107,7 +107,7 @@ int coap_obs_remove_observee_by_token(uip_ipaddr_t *addr, uint16_t port, int coap_obs_remove_observee_by_url(uip_ipaddr_t *addr, uint16_t port, const char *url); -void coap_handle_notification(uip_ipaddr_t *, uint16_t port, +void coap_handle_notification(uip_ipaddr_t *addr, uint16_t port, coap_packe...
Add log to node loader destroy event (outside of mutithread environment).
@@ -1324,6 +1324,7 @@ void node_loader_impl_thread(void * data) if (length == -1 || length == PATH_MAX) { + /* TODO: Make logs thread safe */ /* log_write("metacall", LOG_LEVEL_ERROR, "node loader register invalid working directory path (%s)", exe_path_str); */ return; } @@ -1817,12 +1818,14 @@ void node_loader_impl_as...
do no configuration as part of the install process - this breaks debian packaging tools
@@ -3,7 +3,7 @@ CC ?= gcc CFLAGS ?= -Os -Wall -Wwrite-strings -pedantic CFLAGS += -std=gnu99 -I/usr/local/include LFLAGS += -L/usr/local/lib -lc -FEATURES ?= dns lpd tls bob #cmd debug nss natpmp upnp +FEATURES ?= dns lpd tls bob cmd debug #nss natpmp upnp OBJS = build/main.o build/searches.o build/kad.o build/log.o \ ...
Doxygen: Fixed references from mq_size to mq_mem in osMessageQueueAttr_t description.
@@ -362,7 +362,7 @@ Default: \token{NULL} to use \ref CMSIS_RTOS_MemoryMgmt_Automatic for the memory \var osMessageQueueAttr_t::mq_size \details -The size (in bytes) of memory block passed with \ref mp_mem. The minimum memory block size is <code>msg_count * msg_size</code> (parameters of the \ref osMessageQueueNew func...
dshot: add guard for dma transaction on spi1
#include "control.h" #include "defines.h" #include "drv_motor.h" +#include "drv_spi.h" #include "drv_time.h" #include "profile.h" #include "project.h" @@ -271,10 +272,13 @@ void make_packet(uint8_t number, uint16_t value, bool telemetry) { // make dshot dma packet, then fire void dshot_dma_start() { - uint32_t time = g...
Voema_npcx796fc: Free up flash space Free up flash space for voema_npcx796fc by removing help strings. BRANCH=None TEST=make -j buildall; observe there is now 4.5k free flash
* any unused flash space that can be used to store the .init_rom section. */ #undef CONFIG_CHIP_INIT_ROM_REGION -#endif +#else +/* Free up flash space */ +#undef CONFIG_CONSOLE_CMDHELP +#endif /* BOARD_VOEMA */ #define CONFIG_VBOOT_EFS2
cc2500: improve exti handling
extern int liberror; -static uint8_t gdo0_exti_status = 1; +static volatile uint8_t gdo0_exti_status = 1; uint8_t cc2500_read_gdo0() { uint8_t val = gdo0_exti_status; @@ -56,6 +56,11 @@ static void cc2500_hardware_init() { spi_init_pins(CC2500_SPI_PORT, CC2500_NSS); GPIO_InitTypeDef GPIO_InitStructure; + GPIO_InitStruc...
I2C: Fix i2c write fake timeout and WDT triggered
void i2c_hal_master_handle_tx_event(i2c_hal_context_t *hal, i2c_intr_event_t *event) { + if (i2c_ll_get_intsts_mask(hal->dev) != 0) { + // If intr status is 0, no need to handle it. i2c_ll_master_get_event(hal->dev, event); if ((*event < I2C_INTR_EVENT_END_DET) || (*event == I2C_INTR_EVENT_TRANS_DONE)) { @@ -25,9 +27,1...
Add bootstrap methods for node loader (discover still not implemented).
const trampoline = require('./trampoline.node'); +var Module = require('module'); +var path = require('path'); + +function node_loader_trampoline_execution_path() { + // TODO +} + +function node_loader_trampoline_load_from_file(paths) { + const handle = {}; + + for (const path of paths) { + const module = require(path)...
ipsec: Stack the adj from the destination in the SA's TX table Type: fix
@@ -76,7 +76,7 @@ ipsec_itf_adj_stack (adj_index_t ai, u32 sai) }; /* *INDENT-ON* */ - adj_midchain_delegate_stack (ai, 0, &dst); + adj_midchain_delegate_stack (ai, sa->tx_fib_index, &dst); } else adj_midchain_delegate_unstack (ai);
Bundle Handshake packet in CONNECTION_CLOSE if handshake is not confirmed
@@ -8222,6 +8222,8 @@ ngtcp2_ssize ngtcp2_conn_write_connection_close(ngtcp2_conn *conn, ngtcp2_ssize res = 0, nwrite; ngtcp2_frame fr; uint8_t pkt_type; + int bundle = 0; + uint8_t bundle_pkt_type; conn->log.last_ts = ts; conn->qlog.last_ts = ts; @@ -8260,10 +8262,18 @@ ngtcp2_ssize ngtcp2_conn_write_connection_close(...
docs: Add missing entries for CGROUP_SOCK_ADDR family
@@ -69,7 +69,8 @@ BPF attached to cgroups as device controller | 4.15 | [`ebc614f68736`](https://g bpf2bpf function calls | 4.16 | [`cc8b0b92a169`](https://github.com/torvalds/linux/commit/cc8b0b92a1699bc32f7fec71daa2bfc90de43a4d) BPF used for monitoring socket RX/TX data | 4.17 | [`4f738adba30a`](https://git.kernel.or...
bntests.txt: add a couple of checks of possibly negative zero
@@ -4643,6 +4643,10 @@ N = 64 # # These test vectors satisfy A / 2^N = RShift, rounding towards zero. +Rshift = 0 +A = -1 +N = 1 + RShift = 6ce746ffa7979ce10b751cd2308402a95d00d596cd97b36380 A = d9ce8dff4f2f39c216ea39a461080552ba01ab2d9b2f66c701 N = 1 @@ -5967,6 +5971,11 @@ B = -542fb814f45924aa09a16f2a6 # These test v...
Add zeroed env pointer when a const fn is passed as an argument. This makes it safe to fndup a global function which makes it safe to spawn a global function.
@@ -298,7 +298,7 @@ slicelen(Simp *s, Node *sl) Node * loadvar(Simp *s, Node *n, Node *dst) { - Node *p, *f, *r; + Node *p, *f, *r, *e; if (isconstfn(n)) { if (dst) @@ -308,6 +308,9 @@ loadvar(Simp *s, Node *n, Node *dst) f = getcode(s, n); p = addr(s, r, exprtype(n)); assignat(s, p, Ptrsz, f); + e = mkintlit(n->loc, 0...
Removed redundant options, proper boolean config handling
@@ -27,18 +27,16 @@ import("lib.detect.find_tool") function configurations() return { - verbose = {description = "enable verbose output", default = "true", values = {"true", "false"}}, - save = {description = "save dependency in project's package.json", default = "false", values = {"true", "false"}}, - save_dev = {desc...
Testing: Subset extraction without first unpacking
@@ -26,6 +26,17 @@ fBufrTmp2=temp2.${label}.bufr # Define filter rules file fRules=${label}.filter +#----------------------------------------------------------- +# Test: extract without unpacking +#----------------------------------------------------------- +set +e +echo 'set extractSubset=1; set doExtractSubsets=1;' |...
COIL: Rename comments in BB retimer Rename i2c comments in the BB retimer to reflect current naming conventions. BRANCH=None TEST=make -j buildall
@@ -54,7 +54,7 @@ static int bb_retimer_read(const struct usb_mux *me, while (1) { /* * Read sequence - * Slave Addr(w) - Reg offset - repeated start - Slave Addr(r) + * Addr flags (w) - Reg offset - repeated start - Addr flags(r) * byte[0] : Read size * byte[1:4] : Data [LSB -> MSB] * Stop @@ -89,7 +89,7 @@ static int...
Add partial documentation to rtc.h
@@ -46,9 +46,29 @@ typedef struct SceRtcTick { } SceRtcTick; unsigned int sceRtcGetTickResolution(void); + + int sceRtcGetCurrentTick(SceRtcTick *tick); + +/** + * Get current real time clock time. + * + * @param[out] time - see ::SceDateTime. + * @param[in] time_zone - The time zone the return value will be. + * + * @...
removing throttle test for library dependency on certain platforms
@@ -1654,7 +1654,6 @@ sandbox_programs = \ sandbox/symsync_eqlms_test \ sandbox/svd_test \ sandbox/thiran_allpass_iir_test \ - sandbox/throttle_test \ sandbox/vectorcf_test \ # sandbox/packetizer_persistent_ber_test @@ -1662,6 +1661,7 @@ sandbox_programs = \ # sandbox/ofdmoqam_firpfbch_cfo_test # sandbox/mdct_test # sa...
Fix sceKernelChangeCurrentThreadAttr proto
@@ -214,12 +214,12 @@ int sceKernelDelayThreadCB(SceUInt delay); /** * Modify the attributes of the current thread. * - * @param unknown - Set to 0. - * @param attr - The thread attributes to modify. One of ::SceThreadAttributes. + * @param clearAttr - The thread attributes to clear. One of ::SceThreadAttributes. + * @...
Fixed reference POC indexing
@@ -1135,13 +1135,23 @@ static void search_frac(inter_search_info_t *info) if (src.malloc_used) free(src.buffer); } - +/** +* \brief Calculate the scaled MV +*/ static INLINE int16_t get_scaled_mv(int16_t mv, int scale) { int32_t scaled = scale * mv; return CLIP(-32768, 32767, (scaled + 127 + (scaled < 0)) >> 8); } - +...
Fix for hse_kvs_prefix_delete() comment
@@ -438,20 +438,14 @@ hse_kvs_delete( size_t key_len); /** - * Delete all KV pairs matching the given prefix filter from a KVS - * - * The primary utility of this interface is to delete an entire range of multi-segment - * keys. To do this the caller passes a filter with a length greater than or equal to - * the KVS's ...
py/misc.h: Add missing semi-colon in mp_float_union_t for big-endian. Fixes issue
@@ -248,7 +248,7 @@ typedef union _mp_float_union_t { } p; #else struct { - mp_float_uint_t sgn : 1 + mp_float_uint_t sgn : 1; mp_float_uint_t exp : MP_FLOAT_EXP_BITS; mp_float_uint_t frc : MP_FLOAT_FRAC_BITS; } p;
gsettings: avoid ksDup on subscription keysets
@@ -424,8 +424,10 @@ static void elektra_settings_key_changed (GDBusConnection * connection G_GNUC_UN ElektraSettingsBackend * esb = (ElektraSettingsBackend *) user_data; // TODO: mpranj, maybe dup is not needed? (or can it result in a race?) - GElektraKeySet * gks_keys = gelektra_keyset_dup (esb->subscription_gks_keys...
Cleanup, reorder some memory reads/writes
@@ -441,12 +441,13 @@ END_OPERATOR BEGIN_OPERATOR(delay) LOWERCASE_REQUIRES_BANG; - PORT(0, 1, IN); PORT(0, -1, IN | PARAM); + PORT(0, 1, IN); PORT(1, 0, OUT); - Usz offset = index_of(PEEK(0, 1)); Usz rate = index_of(PEEK(0, -1)); - rate = (rate == 0) ? 1 : rate; + Usz offset = index_of(PEEK(0, 1)); + if (rate == 0) + ...
vpd: Force static analysis to not think about NULL term strings
@@ -204,7 +204,7 @@ static void *vpd_lid_preload(const uint8_t *lx) void vpd_iohub_load(struct dt_node *hub_node) { - char record[4] = "LXR0"; + uint8_t record[4] = { 'L','X','R','0' }; /* not null terminated */ const void *valid_lx; uint8_t lx_size; int r;
much safer -> generally much safer
@@ -52,10 +52,10 @@ plaintext. Crucially, an attacker has no control over this random garbage. For applications that are using SCRAM to simply encrypt bulk data, this kind of application failure still results in data corruption. But for applications that are using SCRAM to encrypt data that must conform to a schema, or...
Fix Ip6ReverseName buffer length
@@ -371,7 +371,7 @@ PPH_STRING PhpGetIp6ReverseNameFromAddress( { PH_STRING_BUILDER stringBuilder; - PhInitializeStringBuilder(&stringBuilder, 32); + PhInitializeStringBuilder(&stringBuilder, DNS_MAX_NAME_BUFFER_LENGTH); for (INT i = sizeof(IN6_ADDR) - 1; i >= 0; i--) { @@ -753,10 +753,10 @@ VOID PhNetworkProviderUpdat...
Travis: Disable crypto plugins on macOS 10.11
@@ -56,8 +56,9 @@ before_script: python3_ver=$(python3 -c 'import sys; print(".".join(map(str, sys.version_info[:2])))') && CMAKE_OPT+=("-DPYTHON_INCLUDE_DIR:PATH=$(python3-config --prefix)/include/python${python3_ver}m") && CMAKE_OPT+=("-DPYTHON_LIBRARY:FILEPATH=$(python3-config --prefix)/lib/libpython${python3_ver}.d...
Use highp in vertex shaders on GLES;
@@ -2017,8 +2017,8 @@ static char* lovrShaderGetFlagCode(ShaderFlag* flags, uint32_t flagCount) { Shader* lovrShaderInitGraphics(Shader* shader, const char* vertexSource, const char* fragmentSource, ShaderFlag* flags, uint32_t flagCount) { #if defined(LOVR_WEBGL) || defined(LOVR_GLES) - const char* vertexHeader = "#ver...
autotest: using freqresponse() method for testing firfilt
@@ -317,12 +317,14 @@ int liquid_autotest_validate_psd_signalf(float * _buf, unsigned int _buf_len, int liquid_autotest_validate_psd_firfilt_crcf(firfilt_crcf _q, unsigned int _nfft, autotest_psd_s * _regions, unsigned int num_regions, const char * debug_filename) { - unsigned int n = firfilt_crcf_get_length(_q); - flo...
Switch back to well tested RNG.
@@ -83,12 +83,13 @@ void janet_rng_longseed(JanetRNG *rng, const uint8_t *bytes, int32_t len) { rng->c = state[8] + (state[9] << 8) + (state[10] << 16) + (state[11] << 24); rng->d = state[12] + (state[13] << 8) + (state[14] << 16) + (state[15] << 24); rng->counter = 0u; + /* a, b, c, d can't all be 0 */ + if (rng->a ==...
GRIB: key 'level' not equal to 'mars.levelist' for soil levels
@@ -82,11 +82,13 @@ if (extraDim) { } } -# See ECC-854, ECC-1435 +# See ECC-854, ECC-1435, ECC-1451 if( (typeOfFirstFixedSurface == 151 && typeOfSecondFixedSurface == 151) || (typeOfFirstFixedSurface == 152 && typeOfSecondFixedSurface == 152) || (typeOfFirstFixedSurface == 114 && typeOfSecondFixedSurface == 114) ) { al...
IPSEC: correctly size per-thread data
@@ -316,7 +316,7 @@ ipsec_init (vlib_main_t * vm) i->op_type = VNET_CRYPTO_OP_SHA512_HMAC; i->trunc_size = 32; - vec_validate_aligned (im->ptd, vec_len (vlib_mains), CLIB_CACHE_LINE_BYTES); + vec_validate_aligned (im->ptd, vlib_num_workers (), CLIB_CACHE_LINE_BYTES); return 0; }
Check validity, not just signing for all certificates
@@ -2768,8 +2768,8 @@ void ssl_set_masks(SSL *s) #endif rsa_enc = pvalid[SSL_PKEY_RSA] & CERT_PKEY_VALID; - rsa_sign = pvalid[SSL_PKEY_RSA] & CERT_PKEY_SIGN; - dsa_sign = pvalid[SSL_PKEY_DSA_SIGN] & CERT_PKEY_SIGN; + rsa_sign = pvalid[SSL_PKEY_RSA] & CERT_PKEY_VALID; + dsa_sign = pvalid[SSL_PKEY_DSA_SIGN] & CERT_PKEY_V...
change back to sqrt rescaling
@@ -966,11 +966,10 @@ static void maybe_update_scale(ScsWork *w, const ScsResiduals *r, w->sum_log_scale_factor += log(relative_res_pri) - log(relative_res_dual); w->n_log_scale_factor++; - /* factor = SQRTF(exp(w->sum_log_scale_factor / (scs_float)(w->n_log_scale_factor))); - */ - factor = exp(w->sum_log_scale_factor ...
Cache the cache...
language: objective-c + +env: + global: + - HXCPP_COMPILE_CACHE=~/hxcache + +cache: + directories: + - $HXCPP_COMPILE_CACHE + before_install: - travis_retry brew install neko --HEAD - wget -c https://github.com/HaxeFoundation/haxe/releases/download/3.4.2/haxe-3.4.2-osx.tar.gz
Solve minor bug in docker for gitlab.
@@ -22,12 +22,12 @@ version: "3.7" services: deps: build: - cache_from: registry.gitlab.com/metacall/core:deps + cache_from: "registry.gitlab.com/metacall/core:deps" dev: build: - cache_from: registry.gitlab.com/metacall/core:dev + cache_from: "registry.gitlab.com/metacall/core:dev" core: build: - cache_from: registry....
Fix problem running unit regression tests on Windows. Path-separator escaping is no longer working correctly. Think its related to python3 change, but sending in unix-style paths in this instance works on Windows.
@@ -2803,6 +2803,7 @@ SILO_MODE = TestEnv.SILO_MODE # Run our test script using "Source" # import visit -visit.Source(TestEnv.params["script"]) +from pathlib import Path +visit.Source(Path(TestEnv.params["script"]).as_posix())
correct the env order
@@ -49,7 +49,7 @@ static void build_exec_stack(heap sh, thread t, Elf64_Ehdr * e, void *start, u64 spush(s, auxp[i].tag); } spush(s, 0); - for (int i = 0; i< envc; i++) spush(s, envp[i]); + for (int i = envc - 1; i >= 0; i--) spush(s, envp[i]); spush(s, 0); for (int i = argc - 1; i >= 0; i--) spush(s, argv[i]); spush(s...
Add window icon for services
@@ -118,6 +118,22 @@ VOID PhShowServiceProperties( propSheetHeader.nStartPage = 0; propSheetHeader.phpage = pages; + { + if (ServiceItem->SmallIcon) + propSheetHeader.hIcon = ServiceItem->SmallIcon; + else + { + if (ServiceItem->Type == SERVICE_KERNEL_DRIVER || ServiceItem->Type == SERVICE_FILE_SYSTEM_DRIVER) + propShe...
OpenVR: Default haptic frequency to 1Hz;
@@ -434,7 +434,12 @@ static bool openvr_getAxis(Device device, DeviceAxis axis, vec3 value) { } static bool openvr_vibrate(Device device, float strength, float duration, float frequency) { - if (duration <= 0 || (device != DEVICE_HAND_LEFT && device != DEVICE_HAND_RIGHT)) return false; + if (duration <= 0.f || (device ...
clay: remove debug artifacts
[+<- +<+>-] :: cache.state :: ++ ford - ::!. :: TODO: reinstate + !. => |% +$ build $% [%file =path] :: ford :: ++ read-a - ::!. TODO reinstate + !. |= [=aeon =path] ^- [(unit (unit (each cage lobe))) ford-cache] ?. =(aeon let.dom) :_(fod.dom [~ ~ %& %vase !>(vase)]) :: ++ read-b - ::!. TODO reinstate + !. |= [=aeon =p...
Adds apache license badge
@@ -16,11 +16,12 @@ limitations under the License. --> # Apache Celix - +[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) ![Celix Ubuntu](https://github.com/apache/celix/workflows/Celix%20Ubuntu/badge.svg) ![Celix MacOS](https://github.com/apache/celix...
rmfreq: contrast change option
@@ -45,10 +45,12 @@ int main_rmfreq(int argc, char* argv[argc]) }; unsigned int n_harmonics = 5; + const char* mod_file = NULL; const struct opt_s opts[] = { OPT_UINT('N', &n_harmonics, "#", "Number of harmonics [Default: 5]"), + OPT_STRING('M', &mod_file, "file", "Contrast modulation file"), }; cmdline(&argc, argv, AR...
NetKVM: Use 'enum class' instead of 'enum' (CA warning 26812) Update MiniportState enum
@@ -351,7 +351,7 @@ public: CMiniportStateMachine& operator= (const CMiniportStateMachine&) = delete; private: - using MiniportState = enum + enum class MiniportState { Halted, Running,
Remove Device dependency from Resource
@@ -1422,14 +1422,12 @@ StateChange::State StateChange::tick(Resource *r, deCONZ::ApsController *apsCtrl } auto rParent = r->parentResource() ? r->parentResource() : r; - auto *device = static_cast<Device*>(rParent); - Q_ASSERT(device); Q_ASSERT(rParent); Q_ASSERT(m_stateTimer.isValid()); Q_ASSERT(m_changeTimer.isValid...
cmd/common: Add TransformIntoTable helper to GadgetParser
@@ -101,6 +101,14 @@ func (p *GadgetParser[T]) TransformIntoColumns(entry *T) string { return p.formatter.FormatEntry(entry) } +func (p *GadgetParser[T]) TransformIntoTable(entries []*T) string { + // Disable auto-scaling as AdjustWidthsToContent will already manage the + // screen size. + p.formatter.SetAutoScale(fals...
revert (msgbox) revert incorrect button padding fix.
@@ -126,10 +126,8 @@ lv_obj_t * lv_msgbox_create(lv_obj_t * parent, const char * title, const char * } const lv_font_t * font = lv_obj_get_style_text_font(mbox->btns, LV_PART_ITEMS); - /* Prevent low values of LV_DPI_DEF breaking button padding */ - lv_coord_t btn_pad = (LV_DPI_DEF < 130) ? 130 : LV_DPI_DEF; - lv_coord...
pbsys/bluetooth: Fix definitions when unused. pbsys_bluetooth_rx_get_available is used as a function with pbsys_bluetooth_rx / pbsys_bluetooth_tx used as defines we get unused parameter warnings for static variables.
@@ -28,9 +28,14 @@ pbio_error_t pbsys_bluetooth_tx(const uint8_t *data, uint32_t *size); #define pbsys_bluetooth_init() #define pbsys_bluetooth_rx_set_callback(callback) -#define pbsys_bluetooth_rx_get_available 0 -#define pbsys_bluetooth_rx(data, size) PBIO_ERROR_NOT_SUPPORTED -#define pbsys_bluetooth_tx(data, size) P...
OpenSSL::Ordinals: when validating, collect statistics on unassigned syms If a script wants to display how many symbols have assigned numbers and how many don't, this gives them those numbers.
@@ -662,6 +662,11 @@ sub validate { && @{$self->{contents}->[$i] // []})) { $self->{stats}->{new}++; } + if ($i <= $self->{maxassigned}) { + $self->{stats}->{assigned}++; + } else { + $self->{stats}->{unassigned}++; + } next if ($i > $self->{loaded_maxnum}); my @loaded_strings =
Add ya tool llvm-profdata.
"c++": { "bottle": "clang7", "executable": "c++" }, "c++filt": { "bottle": "clang7", "executable": "c++filt" }, "cc": { "bottle": "clang7", "executable": "cc" }, + "clang-format": { "bottle": "clang7", "executable": "clang-format" }, + "clang-tidy": { "bottle": "clang7", "executable": "clang-tidy" }, "gcov": { "bottle"...
Python3 preparation
@@ -29,8 +29,8 @@ def example(csvfile, input_filename, output_filename): # The first line in the CSV has the column names print('Reading input CSV file: ', csvfile) - parse_date = lambda x: datetime.strptime(x, '%Y%m%d') - parse_time = lambda x: datetime.strptime(x, '%H:%M:%S') + parse_date = lambda x: datetime.strptim...
nimble/ll: Fix typo in ble_ll_read_rf_path_compensation ;; are not needed here
@@ -786,7 +786,7 @@ ble_ll_read_rf_path_compensation(uint8_t *rspbuf, uint8_t *rsplen) rsp->rx_path_compensation = htole16(rx_path_pwr_compensation); rsp->tx_path_compensation = htole16(tx_path_pwr_compensation); - *rsplen = sizeof(*rsp);; + *rsplen = sizeof(*rsp); return BLE_ERR_SUCCESS; }
Remove failing 2.0.2 down-level test
@@ -23,7 +23,7 @@ jobs: strategy: fail-fast: false matrix: - release: ['2.0.2', '2.1.1'] + release: ['2.1.1'] # TODO: Put back 2.0.* once fixed os: [ubuntu-latest, windows-latest] arch: [x64] tls: [schannel, openssl]
changed the way how to copy the PSL_DCP
@@ -91,9 +91,10 @@ copy $(BUILD_DIR)/Checkpoint/b_route_design.dcp: @mkdir $(BUILD_DIR)/Images; @mkdir $(BUILD_DIR)/Checkpoint; @ln -s $(BUILD_DIR)/Checkpoint $(BUILD_DIR)/Checkpoints; + @ln -s $(BUILD_NAME) build; @ln -s $(DONUT_HARDWARE_ROOT)/setup/noHDK_build.tcl $(BUILD_DIR)/noHDK_build.tcl; @ln -s $(DONUT_HARDWARE...
test-udp: Fix multicast join tests when recv_cb gets called with no data/addr
@@ -199,11 +199,18 @@ return require('lib/tap')(function (test) assert(not err, err) p(data, addr) + -- empty callback can happen, just return early + if data == nil and addr == nil then + return + end + assert(addr) assert(data == "PING") recv_cb_called = recv_cb_called + 1 if recv_cb_called == 2 then + -- note: becau...
common/usb_pd_policy.c: Format with clang-format BRANCH=none TEST=none
@@ -373,8 +373,8 @@ static int dfp_discover_svids(uint32_t *payload) return 1; } -struct pd_discovery *pd_get_am_discovery_and_notify_access( - int port, enum tcpci_msg_type type) +struct pd_discovery * +pd_get_am_discovery_and_notify_access(int port, enum tcpci_msg_type type) { return (struct pd_discovery *)pd_get_am_...
use REV on aarch64 for endianness swapping
always_inline u16 clib_byte_swap_u16 (u16 x) { +#if defined (__aarch64__) + if (!__builtin_constant_p (x)) + { + __asm__ ("rev16 %w0, %w0":"+r" (x)); + return x; + } +#endif return (x >> 8) | (x << 8); } @@ -74,6 +81,12 @@ clib_byte_swap_u32 (u32 x) asm volatile ("bswap %0":"=r" (x):"0" (x)); return x; } +#elif defined...