message
stringlengths
6
474
diff
stringlengths
8
5.22k
Add --ps-query sub-command to testpappl to test backchannel handling.
@@ -81,6 +81,7 @@ typedef struct _pappl_testprinter_s // Printer test data static http_t *connect_to_printer(pappl_system_t *system, char *uri, size_t urisize); static void device_error_cb(const char *message, void *err_data); static bool device_list_cb(const char *device_info, const char *device_uri, const char *devic...
Orion: update motelist string Updates the expected motelist string
@@ -60,7 +60,7 @@ if( $Opt{board} eq "z1" ) { } elsif( $Opt{board} eq "firefly" ) { $Opt{board} = "Zolertia Firefly platform"; } elsif( $Opt{board} eq "orion" ) { - $Opt{board} = "Zolertia Orion Router"; + $Opt{board} = "Zolertia Orion Ethernet router"; } my @devs = $Opt{method} eq "procfs" ? scan_procfs() : scan_sysfs...
update description of monotonic datasets Note: mandatory check (NEED_CHECK) was skipped
@@ -158,7 +158,7 @@ def epsilon(): def monotonic1(): """ - Yandex internal dataset with monotonic constraints. + Dataset with monotonic constraints. Can be used for poisson regression. Has several numerical and several categorical features. The first column contains target values. Columns with names Cat* contain catego...
BugID:16880707:[build-rules] clean *.gcda when make distclean
@@ -178,7 +178,7 @@ distclean: rm -rf \ $(CONFIG_TPL) $(COMPILE_LOG) \ $(STAMP_PRJ_CFG) $(STAMP_BLD_ENV) $(STAMP_BLD_VAR) $(STAMP_POST_RULE) $(STAMP_LCOV) \ - $(DIST_DIR) $(STAMP_DIR) \ + $(DIST_DIR) $(STAMP_DIR) *.gcda \ $(TOP_Q) \ if [ -d $(OUTPUT_DIR) ]; then \
Make python script idempotent.
@@ -74,24 +74,33 @@ for struct_file in struct_files: pp = pprint.PrettyPrinter(indent=4) pp.pprint(files_to_visit) +mbedtls_private_access_include = "#include \"mbedtls/private_access.h\"" + for file_path, variables in files_to_visit.items(): + # check if this file has "mbedtls/private_access.h" include + file_has_priv...
ocvalidate: Add checks for PlayChime
@@ -152,12 +152,14 @@ CheckUEFIAudio ( OC_UEFI_CONFIG *UserUefi; BOOLEAN IsAudioSupportEnabled; CONST CHAR8 *AsciiAudioDevicePath; + CONST CHAR8 *AsciiPlayChime; ErrorCount = 0; UserUefi = &Config->Uefi; IsAudioSupportEnabled = UserUefi->Audio.AudioSupport; AsciiAudioDevicePath = OC_BLOB_GET (&UserUefi->Audio.AudioDevi...
wireless: gs2200m: Change usrsock xid from uint64_t to uint32_t Fix the type to match usrsock.h has been changed.
@@ -244,7 +244,7 @@ static int _write_to_usock(int fd, void *buf, size_t count) static int _send_ack_common(int fd, uint16_t events, - uint64_t xid, + uint32_t xid, FAR struct usrsock_message_req_ack_s *resp) { resp->head.msgid = USRSOCK_MESSAGE_RESPONSE_ACK;
line() tiny fix
@@ -597,6 +597,8 @@ static void drawLine(tic_mem* tic, float x0, float y0, float x1, float y1, u8 co else for (float t = initLine(&y0, &y1, &x0, &x1); x0 < x1; x0++, y0 += t) setPixel((tic_core*)tic, x0, y0, color); + + setPixel((tic_core*)tic, x1, y1, color); } typedef struct
fix typo in python imports
@@ -28,7 +28,7 @@ this_dir = os.path.realpath(os.path.dirname(__file__)) sys.path.append(os.path.realpath(os.path.join(os.pardir, os.pardir))) from geodata.coordinates.conversion import latlon_to_decimal -from goedata.countries.constants import Countries +from geodata.countries.constants import Countries from geodata.e...
Updated CHANGELOG.md for Release v1.5.0
@@ -93,17 +93,21 @@ Release date: 2018-02-16 Major changes and added features: -* STM32F72xx73xx support ([#1969148](https://github.com/texane/stlink/commit/19691485359afef1a256964afcbb8dcf4b733209)) * Added support of STM32L496xx/4A6xx devices ([#615](https://github.com/texane/stlink/pull/615)) +* Added unknown chip d...
bootloader: Factory reset not for deep sleep Closes: Closes:
#include "bootloader_common.h" #include "sdkconfig.h" #include "esp_image_format.h" +#include "esp32/rom/rtc.h" static const char* TAG = "boot"; @@ -74,7 +75,8 @@ static int selected_boot_partition(const bootloader_state_t *bs) int boot_index = bootloader_utility_get_selected_boot_partition(bs); if (boot_index == INVAL...
fix common realloc mistake and add null check more
@@ -219,7 +219,10 @@ sds sdsMakeRoomFor(sds s, size_t addlen) { hdrlen = sdsHdrSize(type); if (oldtype==type) { newsh = s_realloc(sh, hdrlen+newlen+1); - if (newsh == NULL) return NULL; + if (newsh == NULL) { + s_free(sh); + return NULL; + } s = (char*)newsh+hdrlen; } else { /* Since the header size changes, need to mo...
Work around permission issue in marvell
@@ -259,7 +259,13 @@ target_link_libraries( ) # Convert afx file to bin file +if("${CMAKE_HOST_SYSTEM_NAME}" STREQUAL "Linux") set(axf2fw "${mw320_dir}/sdk/tools/bin/Linux/axf2firmware") + execute_process(COMMAND chmod +x "${axf2fw}") # TODO, workaround for Amazon FreeRTOS console permission issue. +else() + message(FA...
ci: stop checking FLASH_SPEED_BYTE_PER_SEC_EXT_WR_4B performance
#endif #ifndef IDF_PERFORMANCE_MIN_FLASH_SPEED_BYTE_PER_SEC_EXT_WR_4B -#define IDF_PERFORMANCE_MIN_FLASH_SPEED_BYTE_PER_SEC_EXT_WR_4B 73500 +//Collect data and correct it later +#define IDF_PERFORMANCE_MIN_FLASH_SPEED_BYTE_PER_SEC_EXT_WR_4B 0 #endif #ifndef IDF_PERFORMANCE_MIN_FLASH_SPEED_BYTE_PER_SEC_EXT_RD_4B #define...
[libc] Remove redefinition in minilibc/errno.h
#ifndef __ERRNO_H__ #define __ERRNO_H__ -#ifdef RT_USING_DFS - -#include <dfs_def.h> - -/* using device error codes */ -#define ENOENT DFS_STATUS_ENOENT -#define EIO DFS_STATUS_EIO -#define ENXIO DFS_STATUS_ENXIO -#define EBADF DFS_STATUS_EBADF -#define EAGAIN DFS_STATUS_EAGAIN -#define ENOMEM DFS_STATUS_ENOMEM -#defin...
cbor: cbor_major_type_t can be int
@@ -10,14 +10,14 @@ typedef enum { } cbor_error_t; typedef enum { - CBOR_TYPE_UINT = 0x00U, - CBOR_TYPE_NINT = 0x01U, - CBOR_TYPE_BSTR = 0x02U, - CBOR_TYPE_TSTR = 0x03U, - CBOR_TYPE_ARRAY = 0x04U, - CBOR_TYPE_MAP = 0x05U, - CBOR_TYPE_TAG = 0x06U, - CBOR_TYPE_FLOAT = 0x07U, + CBOR_TYPE_UINT = 0x00, + CBOR_TYPE_NINT = 0x...
refactor(discord-adapter-ratelimit.c): remove redundant struct
@@ -15,41 +15,39 @@ static void _discord_bucket_get_route(const char endpoint[], char route[DISCORD_ROUTE_LEN]) { /* split individual endpoint sections */ - struct { - const char *ptr; - int len; - } curr = { endpoint, 0 }, prev = { "", 0 }; - + const char *curr = endpoint, *prev = ""; + int currlen = 0; /* route len *...
sysdeps/linux: fix sys_accept
@@ -555,7 +555,7 @@ int sys_accept(int fd, int *newfd, struct sockaddr *addr_ptr, socklen_t *addr_le auto ret = do_syscall(SYS_accept, fd, addr_ptr, addr_length, 0, 0, 0); if (int e = sc_error(ret); e) return e; - *newfd = fd; + *newfd = sc_int_result<int>(ret); return 0; }
Rename data to reg_data.
#include <stdint.h> int cambus_init(); int cambus_scan(); -int cambus_readb(uint8_t slv_addr, uint8_t reg_addr, uint8_t *data); -int cambus_writeb(uint8_t slv_addr, uint8_t reg_addr, uint8_t data); -int cambus_readw(uint8_t slv_addr, uint8_t reg_addr, uint16_t *data); -int cambus_writew(uint8_t slv_addr, uint8_t reg_ad...
Fix micro-ROS library link
@@ -81,7 +81,7 @@ recipe.s.o.pattern="{compiler.path}{compiler.c.cmd}" {compiler.S.flags} -mcpu={b ## Create archives recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}" -recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {...
Apply two more small fixes to achieve parity with keygen-js argon2u salt account for larger seed when deriving from mnemonic
|= inp=byts ^- @ %- (argon2-urbit:argon2:crypto 32) - [inp (to-byts 'urbitwallet')] + [inp (to-byts 'urbitkeygen')] :: ++ child-node-from-seed |= [seed=@ met=meta pass=(unit @t)] ^- node - =+ sed=(seed:ds seed met) + =+ sed=(seed:ds 32^seed met) =+ nom=(from-entropy:bip39 32^sed) :+ met nom %- wallet:ds (nn "voting" vo...
Fix a potential out-of-bounds array access in RGBGFX This was caught by ASAN for pokered's gfx/battle/minimize.png.
@@ -224,7 +224,11 @@ void create_mapfiles(const struct Options *opts, struct GBImage *gb, if (!tile) err(1, "%s: Failed to allocate memory for tile", __func__); - for (i = 0; i < tile_size; i++) { + /* + * If the input image doesn't fill the last tile, + * `gb_i` will reach `gb_size`. + */ + for (i = 0; i < tile_size &...
BugID:17646749:[solo] accept argv[1] as max running break time
@@ -522,13 +522,26 @@ void set_iotx_info() HAL_SetDeviceSecret(DEVICE_SECRET); } +static int max_running_seconds = 0; int linkkit_main(void *paras) { - int res = 0; uint64_t time_prev_sec = 0, time_now_sec = 0; - user_example_ctx_t *user_example_ctx = user_example_get_ctx(); + uint64_t time_begin_sec = 0; + int res = 0...
Change the default sort order to Descending currently with ascending sort the useful information is commonly beyond the bottom of the terminal window and it is necessary to reverse the sort manually every execution.
@@ -136,7 +136,7 @@ def handle_loop(stdscr, args): stdscr.nodelay(1) # set default sorting field sort_field = FIELDS.index(DEFAULT_FIELD) - sort_reverse = False + sort_reverse = True # load BPF program bpf_text = """
Fix shared libraries compilation
#ifndef MCU_FILE_H #define MCU_FILE_H +#include "LimeSuiteConfig.h" + #include <stdio.h> #include <string.h> #include <vector> @@ -13,7 +15,7 @@ public: std::vector<unsigned char> m_bytes; }; -class MCU_File +class LIME_API MCU_File { public: explicit MCU_File(const char *fileName, const char *mode);
king: Handle replacement events correctly (dont try to parse them).
@@ -167,7 +167,7 @@ data RunInput | RunPeek Wen Gang Path (Maybe (Term, Noun) -> IO ()) | RunWork Ev (RunError -> IO ()) -data RunOutput = RunOutput EventId Mug Wen (Either Noun Ev) [Ef] +data RunOutput = RunOutput EventId Mug Wen Noun [Ef] -- Exceptions -----------------------------------------------------------------...
sim: init events field when send ack/dack
@@ -78,6 +78,7 @@ static int usrsock_send_ack(struct usrsock_s *usrsock, ack.head.msgid = USRSOCK_MESSAGE_RESPONSE_ACK; ack.head.flags = (result == -EINPROGRESS); + ack.head.events = 0; ack.xid = xid; ack.result = result; @@ -93,6 +94,7 @@ static int usrsock_send_dack(struct usrsock_s *usrsock, { ack->reqack.head.msgid...
Add fingerprint text, remove MD5
@@ -259,8 +259,11 @@ non-zero if yes it will expire or zero if not. =item B<-fingerprint> -Prints out the digest of the DER encoded version of the whole certificate -(see digest options). +Calculates and outputs the digest of the DER encoded version of the entire +certificate (see digest options). +This is commonly cal...
Change based on PR suggestions
@@ -20,27 +20,26 @@ Information about the syntax: - Lines that start with a `#` character are considered comments. Comments are ignored too. - Configurations consist of groups and keys. Only keys can have values. - Key names can't start with a `[` character -- Keys can contain spaces and any special characters as long ...
twixread: add option for debug_level
@@ -337,6 +337,7 @@ int main_twixread(int argc, char* argv[argc]) OPT_SET('L', &linectr, "use linectr offset"), OPT_SET('P', &partctr, "use partctr offset"), OPT_SET('M', &mpi, "MPI mode"), + OPT_INT('d', &debug_level, "level", "Debug level"), }; cmdline(&argc, argv, ARRAY_SIZE(args), args, help_str, ARRAY_SIZE(opts), ...
BugID:17132091: [WhiteScan] Fix buffer out of bounds error for rtl8711b I2CInitDat
@@ -281,6 +281,10 @@ void i2c_init(i2c_t *obj, PinName sda, PinName scl) obj->I2Cx = I2C_DEV_TABLE[i2c_idx].I2Cx; /* Set I2C Device Number */ + if (obj->i2c_idx >= sizeof(I2CInitDat)) { + return; + } + I2CInitDat[obj->i2c_idx].I2CIdx = i2c_idx; /* Load I2C default value */
Fix CID 168609.
@@ -775,6 +775,14 @@ sctp_handle_nat_colliding_state(struct sctp_tcb *stcb) */ struct sctpasochead *head; + if ((SCTP_GET_STATE(&stcb->asoc) == SCTP_STATE_COOKIE_WAIT) || + (SCTP_GET_STATE(&stcb->asoc) == SCTP_STATE_COOKIE_ECHOED)) { + atomic_add_int(&stcb->asoc.refcnt, 1); + SCTP_TCB_UNLOCK(stcb); + SCTP_INP_INFO_WLOC...
Fix potential lock inversion
@@ -195,6 +195,7 @@ static void celix_logAdmin_addLogSvcForName(celix_log_admin_t* admin, const char newEntry->logSvc.vlog = celix_logAdmin_vlog; newEntry->logSvc.vlogDetails = celix_logAdmin_vlogDetails; hashMap_put(admin->loggers, (void*)newEntry->name, newEntry); + celixThreadRwlock_unlock(&admin->lock); { //registe...
CBLK: Fix docu
@@ -240,7 +240,7 @@ struct cblk_dev { unsigned int ridx; struct cblk_req req[CBLK_IDX_MAX]; enum cblk_status req_status; - int prefetch_offs[CBLK_IDX_MAX]; + int prefetch_offs[CBLK_IDX_MAX]; /* list of LBA offsets to prefetch */ sem_t w_busy_sem; /* wait if there is no write slot */ sem_t r_busy_sem; /* wait if there i...
Add wiringPi to CircleCI install.
@@ -5,7 +5,7 @@ machine: dependencies: pre: - - sudo apt-get update; sudo apt-get install libusb-1.0-0-dev; cd ~/; git clone https://github.com/jpoirier/librtlsdr; cd librtlsdr; mkdir build; cd build; cmake ../; make; sudo make install; sudo ldconfig; cd ~/; mkdir gopath; cd ~/; mkdir gopath; wget https://storage.googl...
One More arm64 WinUser Build Fix
@@ -38,6 +38,7 @@ Environment: #pragma warning(disable:28251) #pragma warning(disable:28252) #pragma warning(disable:28253) +#pragma warning(disable:28301) #pragma warning(disable:5105) // The conformant preprocessor along with the newest SDK throws this warning for a macro. #include <windows.h> #include <winsock2.h>
king: address joe's comments again
@@ -45,15 +45,6 @@ instance Show Nock where -------------------------------------------------------------------------------- --- A Pill is a pair of [pil_p pil_q], where pil_p is cued and pil_q is an --- optional set of userspace ovums. --- --- The cued pil_p is a trel of [mot tag dat], where mot is 0 (version number?)...
fix the Makefile of libbpf-tools, make it support cross compile
@@ -13,7 +13,7 @@ CFLAGS := -g -O2 -Wall BPFCFLAGS := -g -O2 -Wall INSTALL ?= install prefix ?= /usr/local -ARCH := $(shell uname -m | sed 's/x86_64/x86/' | sed 's/aarch64/arm64/' \ +ARCH ?= $(shell uname -m | sed 's/x86_64/x86/' | sed 's/aarch64/arm64/' \ | sed 's/ppc64le/powerpc/' | sed 's/mips.*/mips/' \ | sed 's/ri...
BugID:21900441:[hal tls]fix https read 0 length on platform linuxhost issue
@@ -781,9 +781,11 @@ static int _network_ssl_read(TLSDataParams_t *pTlsData, char *buffer, int len, uint32_t readLen = 0; static int net_status = 0; int ret = -1; - // char err_str[33] = {0}; + uint32_t cur_time = HAL_UptimeMs(); + uint32_t expire_time = cur_time + timeout_ms; mbedtls_ssl_conf_read_timeout(&(pTlsData->...
Remove -veryfast from README.md
@@ -122,10 +122,10 @@ recommend experimenting with the block footprint to find the optimum balance between size and quality, as the finely adjustable compression ratio is one of major strengths of the ASTC format. -The compression speed can be controlled from `-veryfast`, through `-fast`, -`-medium` and `-thorough`, up...
Documentation: Fix formatting of enumeration
@@ -16,17 +16,17 @@ file before it is written to disc. Any of Elektra's user interfaces will work with the technique described in this tutorial, e.g.: -1.) `kdb qt-gui`: graphical user interface +1. `kdb qt-gui`: graphical user interface -2.) `kdb editor`: starts up your favourite text editor and +2. `kdb editor`: star...
Forgot some lines on the Changelog
@@ -7,6 +7,9 @@ Version 1.10.0 Proper allocation for an array of structs and a check for an unlikely overflow when calling the SIOCGIFCONF ioctl(). + It still bugs me the stack requirements of getlocalhostname() and + UpnpGetIfInfo(). + ******************************************************************************* Ver...
[bsp] update gcc nocache section
@@ -218,14 +218,14 @@ SECTIONS *(NonCacheable.init) . = ALIGN(4); __noncachedata_init_end__ = .; /* create a global symbol at initialized ncache data end */ - } > m_dtcm + } > m_nocache . = __noncachedata_init_end__; .ncache : { *(NonCacheable) . = ALIGN(4); __noncachedata_end__ = .; /* define a global symbol at ncache...
Bugfix for pointer handling.
@@ -166,7 +166,7 @@ static int copy_options(struct neat_tlv** optionsPtr, const int newOptCount) { if(*optionsPtr) { - free(optionsPtr); + free(*optionsPtr); *optionsPtr = NULL; *optcntPtr = 0; }
hv: handle the case of empty hypervisor cmdline Fix a bug: When the hypervisor cmdline is empty, the hypervisor will be unable to boot up.
@@ -368,17 +368,15 @@ efi_main(EFI_HANDLE image, EFI_SYSTEM_TABLE *_table) */ cmdline16 = StrDuplicate(options); bootloader_name = strstr_16(cmdline16, bootloader_param); - if (bootloader_name) + if (bootloader_name) { bootloader_name = bootloader_name + StrLen(bootloader_param); - n = bootloader_name; i = 0; while (*n...
padlock: generate assembler source for static libraries too The GENERATE lines for generating the padlock assembler source were wrongly placed in such a way that they only applied to the shared library build. [extended tests]
@@ -20,9 +20,6 @@ IF[{- !$disabled{"engine"} -}] SOURCE[padlock]=e_padlock.c {- $target{padlock_asm_src} -} DEPEND[padlock]=../libcrypto INCLUDE[padlock]=../include - GENERATE[e_padlock-x86.s]=asm/e_padlock-x86.pl \ - $(PERLASM_SCHEME) $(LIB_CFLAGS) $(LIB_CPPFLAGS) $(PROCESSOR) - GENERATE[e_padlock-x86_64.s]=asm/e_padl...
Supports for USDZ MIME type for iOS 12 Safari
@@ -106,6 +106,7 @@ MIMEMAP("ttc", "font/collection") MIMEMAP("ttf", "font/ttf") MIMEMAP("ttl", "text/turtle") MIMEMAP("txt", "text/plain") +MIMEMAP("usdz", "model/vnd.pixar.usd") MIMEMAP("vtt", "text/vtt") MIMEMAP("war", "application/java-archive") MIMEMAP("wasm", "application/wasm")
[Makefile] Update to latest version of CMAKE
@@ -26,7 +26,7 @@ ISA_SIM_INSTALL_DIR ?= ${INSTALL_DIR}/riscv-isa-sim LLVM_INSTALL_DIR ?= ${INSTALL_DIR}/llvm HALIDE_INSTALL_DIR ?= ${INSTALL_DIR}/halide -CMAKE ?= cmake-3.7.1 +CMAKE ?= cmake-3.18.1 # CC and CXX are Makefile default variables that are always defined in a Makefile. Hence, overwrite # the variable if it ...
Do this on one place, so we can change it easy and don't duplicate const
@@ -444,6 +444,16 @@ return FALSE; /*===========================================================================*/ void showhashrecord(hcx_t *hcxrecord, uint8_t showinfo1, uint8_t showinfo2) { + void output(FILE *where, hcx_t *hcxrecord, uint32_t *hash) + { + + fprintf(where, "%08x%08x%08x%08x:%02x%02x%02x%02x%02x%02x:...
docs/library/uio: Typo/grammar fixes in the intro.
@@ -28,14 +28,14 @@ MicroPython, all streams are currently unbuffered. This is because all modern OSes, and even many RTOSes and filesystem drivers already perform buffering on their side. Adding another layer of buffering is counter- productive (an issue known as "bufferbloat") and takes precious memory. -Note that th...
Fix detecting reset in winsim
@@ -224,7 +224,7 @@ class ReadSerialThread(Thread): try: line = outStream.readline().decode() # For windows simulator once we reach a reboot place, then we will manually reboot. - if 'Failed to activate new image (0x00000000). Please reset manually.' in line: + if 'Please reset manually' in line: return 'reset' except ...
YAML: Simplify logging macro
@@ -74,12 +74,7 @@ typedef struct /* -- Macros ---------------------------------------------------------------------------------------------------------------------------- */ #define LOG_PARSE(data, message, ...) \ - { \ - char filename[MAXPATHLEN]; \ - basename_r (keyString (data->parentKey), filename); \ - ELEKTRA_LO...
license : add missing our copyright and license . add missing our copyright and license to file : ftl.c
+/**************************************************************************** + * + * Copyright 2017 Samsung Electronics All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the Lic...
spi_flash: remove back-compatible with caller function of S3Beta ROM
@@ -135,17 +135,12 @@ esp_err_t spi_flash_hal_common_command(spi_flash_host_inst_t *host, spi_flash_tr esp_flash_io_mode_t io_mode = ((spi_flash_hal_context_t*)host)->base_io_mode; uint16_t command; uint8_t dummy_bitlen; - if (trans->reserved != 0) { - // Back-compatible with caller functions of ESP32-S3 ROM - command ...
examples/provisioning: add comment about linker errors If the user copies the BLE example to their own project without understanding the need to enable the BT stack or BTDM BLE settings in the SDK then their build will probably fail at this line due to linker errors. Closes Closes
@@ -271,6 +271,10 @@ void app_main(void) 0xb4, 0xdf, 0x5a, 0x1c, 0x3f, 0x6b, 0xf4, 0xbf, 0xea, 0x4a, 0x82, 0x03, 0x04, 0x90, 0x1a, 0x02, }; + + /* If your build fails with linker errors at this point, then you may have + * forgotten to enable the BT stack or BTDM BLE settings in the SDK (e.g. see + * the sdkconfig.defa...
Reset CAN ign when the specific message is not seen anymore
@@ -195,24 +195,25 @@ void ignition_can_hook(CANPacket_t *to_push) { int addr = GET_ADDR(to_push); int len = GET_LEN(to_push); - ignition_can_cnt = 0U; // reset counter - if (bus == 0) { // GM exception if ((addr == 0x160) && (len == 5)) { // this message isn't all zeros when ignition is on ignition_can = GET_BYTES_04(...
Java Tutorials: Apply suggestions from code review See also:
## Introduction -When programming in Java it is possible to access the kdb database, changing values of existing keys or adding new ones and a few other things. It is also possible to write plugins for Elektra in Java but we will focus on using the Java +When programming in Java it is possible to access the key databas...
clear nopaid share for each connection
@@ -955,6 +955,16 @@ static int precalculate_payments(uint64_t *hash, int confirmation_index, struct } pthread_mutex_unlock(&g_miners_mutex); + /* clear nopaid shares for each connection */ + pthread_mutex_lock(&g_descriptors_mutex); + connection_list_element *conn; + LL_FOREACH(g_connection_list_head, conn) + { + conn...
fixed git error - last commits are not uploaded correctly
@@ -3022,7 +3022,7 @@ while(channelscanlist[c] != 0) res = ioctl(fd_socket, SIOCSIWFREQ, &pwrq); if(res < 0) { - printf("warning: unable to set channel %d (%s) - removed this channel from scan list\n", channelscanlist[c], strerror(errno)); + printf("warning: failed to set channel %d (%s) - removed this channel from sca...
FreeBSD also uses these structs so do not hide them
@@ -183,7 +183,7 @@ typedef struct unw_tdep_save_loc } unw_tdep_save_loc_t; -#ifdef __linux__ +#if defined(__linux__) || defined(__FreeBSD__) /* On AArch64, we can directly use ucontext_t as the unwind context, * however, the __reserved struct is quite large: tune it down to only * the necessary used fields. */
Add comment link to github.com/cbor/test-vectors
@@ -25,6 +25,9 @@ package main // // The rfc7049-errata-corrected.txt file comes from // https://github.com/cbor/spec-with-errata-fixed +// +// In hindsight, it would have been easier to start from +// https://github.com/cbor/test-vectors import ( "bytes"
Docker: Fix `ronn` install in Debian buster image
@@ -10,9 +10,9 @@ RUN apt-get update && apt-get -y install \ RUN apt-get -y install \ doxygen \ graphviz \ + ronn \ ruby \ ruby-dev \ - ruby-ronn \ sloccount \ texlive-latex-base \ texlive-latex-recommended \
Start counting HTTP time from first line
@@ -603,6 +603,8 @@ static int http1_on_http_version(http1_parser_s *parser, char *version, size_t len) { http1_pr2handle(parser2http(parser)).version = fiobj_str_new(version, len); parser2http(parser)->header_size += len; + /* start counting - occurs on the first line of both requests and responses */ + http1_pr2handl...
Add custom sig_info setting for RSA-PSS
@@ -785,6 +785,41 @@ static int rsa_item_sign(EVP_MD_CTX *ctx, const ASN1_ITEM *it, void *asn, return 2; } +static int rsa_sig_info_set(X509_SIG_INFO *siginf, const X509_ALGOR *sigalg, + const ASN1_STRING *sig) +{ + int rv = 0; + int mdnid, saltlen; + uint32_t flags; + const EVP_MD *mgf1md = NULL, *md = NULL; + RSA_PSS...
doc: Trivial fixes Fix some issues in the documentation.
@@ -93,7 +93,7 @@ Memory We initially occupy a chunk of memory, "heap". We pass to the OS (Linux) a reservation of what we occupy (including stacks). -In the source file include/config.h we include a memory map. This is +In the source file include/mem-map.h we include a memory map. This is manually generated, not autom...
fix(kscan): Fix nibble demux scan errors on encoder row + Add a 1us sleep to let the column selection settle in order to avoid spurious keypresses when row capacitance is high (like on the encoder row)
@@ -113,6 +113,8 @@ struct kscan_gpio_item_config { &kscan_gpio_output_configs_##n(dev)[bit]; \ gpio_pin_set(out_dev, out_cfg->pin, state); \ } \ + /* Let the col settle before reading the rows */ \ + k_usleep(1); \ \ for (int i = 0; i < INST_MATRIX_INPUTS(n); i++) { \ /* Get the input device (port) */ \
SM5803: Add 2S battery inits Adding 2S battery inits from vendor, with check on platform ID to identify the 2S units. BRANCH=None TEST=make -j buildall
@@ -309,6 +309,40 @@ static void sm5803_init(int chgnum) rv |= chg_write8(chgnum, 0x7D, 0x67); rv |= chg_write8(chgnum, 0x7E, 0x04); + rv |= chg_write8(chgnum, 0x33, 0x3C); + } else if (platform_id >= 0x06 && platform_id <= 0x0D) { + /* 2S Battery inits */ + rv |= main_write8(chgnum, 0x30, 0xC0); + rv |= main_write8(ch...
whoismac: Tell if OUI is randomized and/or multicast!
@@ -339,6 +339,11 @@ static char *vendorptr; static unsigned long long int vendoroui; static char linein[LINEBUFFER]; static char vendorapname[256]; +#ifdef BIG_ENDIAN_HOST +int lsb = oui & 0xf; +#else +int lsb = (oui >> 16) & 0xf; +#endif if ((fhoui = fopen(ouiname, "r")) == NULL) { @@ -361,12 +366,15 @@ while((len = ...
Update: example improvement
@@ -488,8 +488,8 @@ void NAR_Robot(long iterations) NAR_AddOperation(Narsese_AtomicTerm("^right"), NAR_Robot_Right); NAR_AddOperation(Narsese_AtomicTerm("^forward"), NAR_Robot_Forward); buildRooms(); - for(int i=0; i<23; i++) { spawnFood(false); } for(int i=0; i<23; i++) { spawnFood(true); } + for(int i=0; i<23; i++) {...
fix spelling errors for acrn-manager
@@ -33,7 +33,7 @@ acrn-crashlog-install: acrnlog-install: make -C $(T)/acrnlog OUT_DIR=$(OUT_DIR) install -arcn-manager-install: +acrn-manager-install: make -C $(T)/acrn-manager OUT_DIR=$(OUT_DIR) install acrntrace-install:
in_cpu: remove unused variables
@@ -159,7 +159,6 @@ static inline double proc_cpu_load(int cpus, struct cpu_stats *cstats) /* Retrieve CPU stats for a given PID */ static inline double proc_cpu_pid_load(pid_t pid, struct cpu_stats *cstats) { - int i; int ret; char *p; char line[255]; @@ -178,7 +177,6 @@ static inline double proc_cpu_pid_load(pid_t pi...
cdd_cue.c check sscanf's return value
@@ -42,7 +42,9 @@ static UINT32 getpos(const OEMCHAR *str) { UINT s; UINT f; - sscanf(str, "%2d:%2d:%2d", &m, &s, &f); + if (EOF == sscanf(str, "%2d:%2d:%2d", &m, &s, &f)) { + return 0; + } return((((m * 60) + s) * 75) + f); }
infer: fix typo on range check
@@ -2590,7 +2590,7 @@ checkrange(Node *n) sval = n->lit.intval; if (sval < svranges[t->type][0] || sval > svranges[t->type][1]) fatal(n, "literal value %lld out of range for type \"%s\"", sval, tystr(t)); - } else if ((t->type >= Tybyte && t->type <= Tyint64) || t->type == Tychar) { + } else if ((t->type >= Tybyte && t...
group-on-leave: soften de-path
[%remove g.i.entries m.i.entries] :: archive graph associated with group :: +=/ app-resource (de-path-soft:res app-path.m.i.entries) +?~ app-resource + loop(entries t.entries) ;< ~ bind:m %+ raw-poke [our.bowl %graph-store] :- %graph-update !> ^- update:gra - [%0 now.bowl [%archive-graph (de-path:res app-path.m.i.entri...
Fix MODULES for the CC2538 This commit fixes two bugs related to the usage of MODULES for CC2538-based platforms: * newlib is no longer under `lib/newlib` but under `os/lib/newlib`. * There is no such thing as `sys` under `arm/common`, so this module is removed.
@@ -76,7 +76,7 @@ CPU_STARTFILES = ${addprefix $(OBJECTDIR)/,${call oname, $(CPU_START_SOURCEFILES CONTIKI_SOURCEFILES += $(CONTIKI_CPU_SOURCEFILES) $(DEBUG_IO_SOURCEFILES) CONTIKI_SOURCEFILES += $(USB_SOURCEFILES) -MODULES += lib/newlib arch/cpu/arm/common/sys +MODULES += os/lib/newlib .SECONDEXPANSION:
printer BUGFIX allow printing empty data trees As they often create a valid non-empty data file.
@@ -52,7 +52,7 @@ lyd_print_(struct ly_out *out, const struct lyd_node *root, LYD_FORMAT format, i API LY_ERR lyd_print_all(struct ly_out *out, const struct lyd_node *root, LYD_FORMAT format, int options) { - LY_CHECK_ARG_RET(NULL, out, root, !(options & LYD_PRINT_WITHSIBLINGS), LY_EINVAL); + LY_CHECK_ARG_RET(NULL, out...
Remove gcc unrecognized option '-msched-weight' when check msa
@@ -199,7 +199,7 @@ if (($architecture eq "mips") || ($architecture eq "mips64")) { } else { $tmpf = new File::Temp( SUFFIX => '.c' , UNLINK => 1 ); $code = '"addvi.b $w0, $w1, 1"'; - $msa_flags = "-mmsa -mfp64 -msched-weight -mload-store-pairs"; + $msa_flags = "-mmsa -mfp64 -mload-store-pairs"; print $tmpf "#include <...
fix(setup.sh): rename to Replaces BF0 (zero) with BFO. Refs: PR:
@@ -91,7 +91,7 @@ echo "" echo "Keyboard Shield Selection:" prompt="Pick an keyboard:" -options=("Kyria" "Lily58" "Corne" "Splitreus62" "Sofle" "Iris" "Reviung41" "RoMac" "RoMac+" "makerdiary M60" "Microdox" "TG4X" "QAZ" "NIBBLE" "Jorne" "Jian" "CRBN" "Tidbit" "Eek!" "BF0-9000" "Helix") +options=("Kyria" "Lily58" "Corn...
mangle: use more 'Shrink's
@@ -782,21 +782,31 @@ static void mangle_Resize(run_t* run, bool printable) { input_setSize(run, (size_t)newsz); if (newsz > oldsz) { if (printable) { - memset(&run->dynfile->data[oldsz], 'A', newsz - oldsz); + memset(&run->dynfile->data[oldsz], ' ', newsz - oldsz); } } } void mangle_mangleContent(run_t* run, unsigned ...
metadata-store: do not discard preview parameter
color color.m date-created date-created.m creator creator.m - preview %.n + preview preview.m :: module ?: =(module.m %$)
libusb: add STM32F765xx define
#endif #define usbd_hw usbd_otgfs -#elif defined(STM32F446xx) || defined(STM32F722xx) || defined (STM32F745xx) +#elif defined(STM32F446xx) || defined(STM32F722xx) || defined (STM32F745xx) || defined (STM32F765xx) #define USBD_STM32F446FS #define USBD_STM32F446HS
IAS clear ENROLL_RESPONSE and WRITE_CIE_ADDR in status change notify To don't let the machine get stuck in this state.
@@ -257,6 +257,8 @@ void DeRestPluginPrivate::handleIasZoneClusterIndication(const deCONZ::ApsDataIn const NodeValue::UpdateType updateType = NodeValue::UpdateByZclReport; processIasZoneStatus(sensor, zoneStatus, updateType); + R_ClearFlags(sensor->item(RConfigPending), R_PENDING_ENROLL_RESPONSE | R_PENDING_WRITE_CIE_A...
freemodbus: fix memcmp result truncated to 1 byte Coverity ID: 291158
@@ -361,7 +361,7 @@ static esp_err_t mbc_serial_master_set_request(char* name, mb_param_mode_t mode, continue; // The length of strings is different then check next record in the table } // Compare the name of parameter with parameter key from table - uint8_t comp_result = memcmp((const char*)name, (const char*)reg_ptr...
Remove OLD_STR_TO_KEY compile option This flag was added in 1992 and only documented in the CHANGES file.
@@ -17,10 +17,6 @@ void DES_string_to_key(const char *str, DES_cblock *key) memset(key, 0, 8); length = strlen(str); -#ifdef OLD_STR_TO_KEY - for (i = 0; i < length; i++) - (*key)[i % 8] ^= (str[i] << 1); -#else /* MIT COMPATIBLE */ for (i = 0; i < length; i++) { register unsigned char j = str[i]; @@ -34,7 +30,6 @@ voi...
runner: remove unused log helpers
@@ -120,8 +120,6 @@ void tcmur_handler_init(void); */ int tcmur_register_handler(struct tcmur_handler *handler); bool tcmur_unregister_handler(struct tcmur_handler *handler); -void dbgp(const char *fmt, ...); -void errp(const char *fmt, ...); #ifdef __cplusplus }
Fixing UDP bandwidth issue In the UDP probe module, packet length was set in the per thread initialization instead of global causing -B option to send at incorrect packet rate. Also default packet length was 1, so changed to the maximum to let it fail slower rather than faster.
@@ -226,6 +226,12 @@ int udp_global_initialize(struct state_conf *conf) MAX_UDP_PAYLOAD_LEN, udp_send_msg_len); udp_send_msg_len = MAX_UDP_PAYLOAD_LEN; } + + module_udp.packet_length = sizeof(struct ether_header) + + sizeof(struct ip) + sizeof(struct udphdr) + + udp_send_msg_len; + assert(module_udp.packet_length <= MA...
jna: update Elektra to 0.9.6 in docs
@@ -69,7 +69,7 @@ Simply add libelektra as dependency using: <dependency> <groupId>org.libelektra</groupId> <artifactId>libelektra</artifactId> - <version>0.9.5</version> + <version>0.9.6</version> </dependency> ``` @@ -86,7 +86,7 @@ repositories { } dependencies { - implementation "org.libelektra:libelektra:0.9.5" + i...
Shell ping command: print out delay
static struct uip_icmp6_echo_reply_notification echo_reply_notification; static shell_output_func *curr_ping_output_func = NULL; static struct process *curr_ping_process; +static uint8_t curr_ping_ttl; +static uint16_t curr_ping_datalen; /*---------------------------------------------------------------------------*/ st...
use rtlgenrandom by default on windows
@@ -167,8 +167,9 @@ If we cannot get good randomness, we fall back to weak randomness based on a tim #if defined(_WIN32) -#if !defined(MI_USE_RTLGENRANDOM) -// We prefer BCryptGenRandom over RtlGenRandom +#if defined(MI_USE_BCRYPTGENRANDOM) +// We would like to use BCryptGenRandom instead of RtlGenRandom but it can lea...
os/tools/mkbinheader : Rename value name for readability XXX_S is difficult to understand as size. Let's rename value name for readability.
@@ -54,17 +54,16 @@ binary_ram_size = sys.argv[6] # This path is only for dbuild. tinyara_path = 'root/tizenrt/build/output/bin/tinyara' -START = 0 -HEADER_SIZE_S = 2 -BINARY_TYPE_S = 2 -BINARY_SIZE_S = 4 -BINARY_NAME_S = 16 -BINARY_VERSION_S = 16 -BINARY_RAM_SIZE_S = 4 -KERNEL_VERSION_S = 8 -JUMP_ADDRESS_S = 4 +SIZE_O...
options/linux-headers: Add missing constant to input-event-codes
#define EVIOCGVERSION _IOR('E', 0x01, int) #define EVIOCGID _IOR('E', 0x02, struct input_id) +#define EVIOCSREP _IOW('E', 0x03, unsigned int[2]) #define EVIOCSKEYCODE _IOW('E', 0x04, unsigned int[2]) #define EVIOCGNAME(len) _IOC(_IOC_READ, 'E', 0x06, len) #define EVIOCGPHYS(len) _IOC(_IOC_READ, 'E', 0x07, len)
Fix formatting typo in samples readme.
Instructions on how to build these sample files: -Install a common set of build tools such as [Microsoft Visual Studio] -(https://visualstudio.microsoft.com/vs/community/). +Install a common set of build tools such as [Microsoft Visual Studio](https://visualstudio.microsoft.com/vs/community/). This will be used by Cona...
turn on AOMP_BUILD_CUDA for standalone build. It will be off when doing the Integrated ROCm build
@@ -33,16 +33,25 @@ CUDABIN=${CUDABIN:-$CUDA/bin} AOMP_CMAKE=${AOMP_CMAKE:-cmake} AOMP_PROC=`uname -p` -if [ "$AOMP_PROC" == "aarch64" ] ; then - AOMP_BUILD_CUDA=0 -fi -# Default is to NOT build for nvptx -# Set AOMP_BUILD_CUDA to 1 to override default + +AOMP_STANDALONE_BUILD=${AOMP_STANDALONE_BUILD:-1} + +# The logic...
test-ipmi-hiomap: Add get-flash-info-malformed tests Cc: stable
@@ -1818,6 +1818,68 @@ static void test_hiomap_get_info_malformed_large(void) scenario_exit(); } +static const struct scenario_event +scenario_hiomap_get_flash_info_malformed_small[] = { + { .type = scenario_event_p, .p = &hiomap_ack_call, }, + { .type = scenario_event_p, .p = &hiomap_get_info_call, }, + { + .type = sc...
libbarrelfish: heap: correctly determine number of page to allocate in internal morecore
@@ -150,7 +150,7 @@ union heap_header *heap_default_morecore(struct heap *heap, unsigned nu) BASE_PAGE_SIZE); // Allocate requested number of pages and insert freelist header - up = (union heap_header*)pages_alloc(nb / BASE_PAGE_SIZE); + up = (union heap_header*)pages_alloc(DIVIDE_ROUND_UP(nb, BASE_PAGE_SIZE)); up->s.s...
term: ensure spinner is drawn on the bottom line That's the one line we track. If it gets drawn anywhere else, we can't restore the overwritten contents.
@@ -1037,8 +1037,14 @@ _term_spin_step(u3_utty* uty_u) // One-time cursor backoff. // if ( c3n == tat_u->sun_u.diz_o ) { - c3_w i_w; + // if we know where the bottom line is, and the cursor is not on it, + // move it to the bottom left + // + if ( tat_u->siz.row_l && tat_u->mir.rus_w > 0 ) { + _term_it_send_csi(uty_u, ...
workflows: fix renamed perf-test call
@@ -13,7 +13,7 @@ jobs: pr-perf-test-run: # We only need to test this once as the rest are chained from it. if: contains(github.event.pull_request.labels.*.name, 'ok-to-performance-test') - uses: fluent/fluent-bit-ci/.github/workflows/call-run-test.yaml@main + uses: fluent/fluent-bit-ci/.github/workflows/call-run-perfo...
h2olog: set up one of the tracer functions
@@ -26,8 +26,20 @@ struct req_line_t { char header_name[MAX_STR_LEN]; char header_value[MAX_STR_LEN]; }; +BPF_PERF_OUTPUT(reqbuf); int trace_receive_req(void *ctx) { + struct req_line_t line = {}; + uint64_t conn_id, req_id; + uint32_t http_version; + + bpf_usdt_readarg(1, ctx, &line.conn_id); + bpf_usdt_readarg(2, ctx...
[software] Add riscv unit test for LR/SC
@@ -22,8 +22,7 @@ rv32ui_snitch_sc_tests = \ # fence_i rv32ua_snitch_sc_tests = \ - amoadd_w amoand_w amomax_w amomaxu_w amomin_w amominu_w amoor_w amoxor_w amoswap_w - # lrsc + amoadd_w amoand_w amomax_w amomaxu_w amomin_w amominu_w amoor_w amoxor_w amoswap_w lrsc rv32um_snitch_sc_tests = \ div divu \
Fix buffer overflow and prevent recv() of 0 byte
@@ -540,10 +540,8 @@ static int proxy_backend_drive_machine(mcp_backend_t *be, int bread, char **rbuf if (r->status != MCMC_OK) { P_DEBUG("%s: mcmc_read failed [%d]\n", __func__, r->status); if (r->status == MCMC_WANT_READ) { - flags |= EV_READ; - be->state = mcp_backend_read; - stop = true; - break; + *rbuf = mcmc_rea...