message
stringlengths
6
474
diff
stringlengths
8
5.22k
[FIX] fix build problem in drv_crypto.c
* 2020-10-14 Dozingfiretruck Porting for stm32wbxx * 2020-11-26 thread-liu add hash * 2020-11-26 thread-liu add cryp + * 2020-12-11 WKJay fix build problem */ #include <rtthread.h> @@ -628,6 +629,7 @@ static void _crypto_reset(struct rt_hwcrypto_ctx *ctx) } } +#if defined(HASH2_IN_DMA_INSTANCE) void HASH2_DMA_IN_IRQHan...
Remove redundant select
@@ -196,7 +196,6 @@ static void compute_lowest_and_highest_weight( // Accumulate on min hit mask = idxv == minidx; - minidx = select(minidx, idxv, mask); vfloat accum = cut_low_weight_err + wt - vfloat(2.0f) * dwt; cut_low_weight_err = select(cut_low_weight_err, accum, mask);
[scripts] Remove warnings in `gen_trace` script
# and computes various performance metrics up to each mcycle CSR read. # Author: Paul Scheffler <paulsc@iis.ee.ethz.ch> +# Samuel Riedel <sriedel@iis.ee.ethz.ch> # TODO: OPER_TYPES and FPU_OPER_TYPES could break: optimization might alter # enum mapping @@ -17,11 +18,9 @@ import math import numpy as np import argparse i...
Check buffer upper boundary.
@@ -142,7 +142,8 @@ uart_thread(void *param) { size_t read_bytes = 0; for(;;) { read_bytes += read(uart_fd, &data_buffer[read_bytes], 1); - if(read_bytes > 0 && data_buffer[read_bytes - 1] == '\n') { + /* If a newline is received or receive buffer full, pass data to the library */ + if((read_bytes >= sizeof(data_buffer...
put tls-use-sni: on a line of its own Sorry about this, this must have happened when I added the entries for padding queries and responses.
@@ -583,6 +583,7 @@ Default is yes. .B pad\-queries\-block\-size: \fI<number> The block size with which to pad queries sent over TLS upstreams. Default is 128. +.TP .B tls\-use\-sni: \fI<yes or no> Enable or disable sending the SNI extension on TLS connections. Default is yes.
Remove redundant python wheel step
@@ -48,13 +48,6 @@ jobs: brew install freeglut lapack libusb openblas brew info libusb brew ls libusb - - name: Build/Test Python Bindings - if: matrix.build_type == 'Release' - run: | - python --version - python -m pip install wheel setuptools - python setup.py install bdist_wheel -v ${{ steps.flags.outputs.SETUP_PY_F...
soapy lms - support using "CALIBRATE" for writeSetting The Tx/Rx named variants were redundant since there is a direction parameter Also clear the channels to cal list since they were just calibrated.
@@ -798,20 +798,22 @@ void SoapyLMS7::writeSetting(const int direction, const size_t channel, const st lms7Device->SetTestSignal(isTx, channel, LMS_TESTSIG_DC, ampl, 0); } - else if (key == "CALIBRATE_TX") + else if (key == "CALIBRATE_TX" or (isTx and key == "CALIBRATE")) { double bw = std::stof(value); SoapySDR::logf(...
VERSION bump to version 0.11.6
@@ -29,7 +29,7 @@ set(CMAKE_C_FLAGS_DEBUG "-g -O0") # set version set(LIBNETCONF2_MAJOR_VERSION 0) set(LIBNETCONF2_MINOR_VERSION 11) -set(LIBNETCONF2_MICRO_VERSION 5) +set(LIBNETCONF2_MICRO_VERSION 6) set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION}.${LIBNETCONF2_MICRO_VERSION}) set(LIB...
doc: properly handle last_updated info for new docs Update the last_updated extension to correctly handle when new docs are added and aren't yet commited into git vs. when the list of git folders isn't correct. Previous PR incorrectly handled these as the same.
@@ -80,14 +80,20 @@ def _get_last_updated_from_git(file_path, git_repo, doc_root): # folder on the list continue else: + # we found the .rst file in one of the git_repo paths, either + # use the date of the last commit (from git) or today's date if + # there is no git history for this file. try: last_updated = datetime...
mangoapp: hide fsr sharp when off
@@ -770,11 +770,13 @@ void HudElements::gamescope_fsr(){ ImGui::TableNextColumn(); right_aligned_text(FSR_COLOR, HUDElements.ralign_width, "%s", FSR_TEXT.c_str()); ImGui::TableNextColumn(); + if (g_fsrUpscale){ right_aligned_text(HUDElements.colors.text, HUDElements.ralign_width, "%i", g_fsrSharpness); ImGui::SameLine(...
input: fix variable definition if metrics are disabled
@@ -327,7 +327,9 @@ int flb_input_instance_init(struct flb_input_instance *in, struct flb_config *config) { int ret; +#ifdef FLB_HAVE_METRICS const char *name; +#endif struct flb_input_plugin *p = in->p; /* Skip pseudo input plugins */
Support CMS decrypt without a certificate for all key types
@@ -583,19 +583,17 @@ static int cms_kari_set1_pkey(CMS_ContentInfo *cms, CMS_RecipientInfo *ri, STACK_OF(CMS_RecipientEncryptedKey) *reks; CMS_RecipientEncryptedKey *rek; reks = CMS_RecipientInfo_kari_get0_reks(ri); - if (!cert) - return 0; for (i = 0; i < sk_CMS_RecipientEncryptedKey_num(reks); i++) { int rv; rek = s...
fixes infinite loop in high-embed collections
@@ -3,7 +3,8 @@ import React, { useCallback, useEffect, useMemo, - useState + useState, + useRef } from 'react'; import styled from 'styled-components'; import UnstyledEmbedContainer from 'react-oembed-container'; @@ -333,8 +334,9 @@ export const RemoteContentOembed = React.forwardRef< RemoteContentOembedProps >((props...
lwip: add source ip based route for unicast packet Add source IP based route for unicast packets forwarding.
@@ -133,16 +133,14 @@ bool ip4_netif_exist(const ip4_addr_t *src, const ip4_addr_t *dest) return false; } /** - * Source based IPv4 routing hook function. This function works only - * when destination IP is broadcast IP. + * Source based IPv4 routing hook function. */ struct netif * ESP_IRAM_ATTR ip4_route_src_hook(con...
Use scheduler name rather than tid in log pause/resume message...
@@ -694,7 +694,7 @@ void sts_pause(struct sts *self) { if (csched_rp_dbg_mon(self->rp)) - log_info("sts/mon %d pausing", gettid()); + log_info("sts/mon %s pausing", self->name); m_lock(self); atomic_set(&self->state, SS_PAUSE); @@ -706,7 +706,7 @@ void sts_resume(struct sts *self) { if (csched_rp_dbg_mon(self->rp)) - l...
avf: don't switch process if already running process node Type: fix
@@ -1165,11 +1165,31 @@ error: vlib_log_err (avf_log.class, "%U", format_clib_error, ad->error); } +static void +avf_process_handle_request (vlib_main_t * vm, avf_process_req_t * req) +{ + avf_device_t *ad = avf_get_device (req->dev_instance); + + if (req->type == AVF_PROCESS_REQ_ADD_DEL_ETH_ADDR) + req->error = avf_op...
Implemented NM:FM warning when it goes outside of 1:4 to 1:16 ratio for 2LM
@@ -175,6 +175,14 @@ CheckAndConfirmAlignments( UINT32 Index = 0; BOOLEAN CapacityReducedForSKU = FALSE; CHAR16 *pSingleStatusCodeMessage = NULL; + UINT64 TwoLM_NmFmRatioLower = 4; + UINT64 TwoLM_NmFmRatioUpper = 16; + UINT64 TwoLM_FmLowerLimit = 0; + UINT64 TwoLM_FmUpperLimit = 0; + UINT64 TwoLM_NMTotal = 0; + UINT64 ...
fix the syslog message ident
@@ -104,30 +104,6 @@ void tcmu_set_log_level(int level) tcmu_log_level = to_syslog_level(level); } -static void open_syslog(const char *ident, int option, int facility) -{ -#define ID_MAX_LEN 16 - char id[ID_MAX_LEN + 1] = {0}, path[128]; - int fd, len = -1; - - if (!ident) { - sprintf(path, "/proc/%d/comm", getpid());...
peview: fix unicode string parameters
@@ -1158,6 +1158,7 @@ BOOLEAN PvpLoadDbgHelp( UNICODE_STRING symbolPathUs = { .Buffer = buffer, + .Length = sizeof(buffer) - sizeof(UNICODE_NULL), .MaximumLength = sizeof(buffer) };
make warnings consistent by switching to fprintf everywhere
@@ -139,7 +139,7 @@ int main(int argc, char **argv) buf = bpf_buffer__new(obj->maps.events, obj->maps.heap); if (!buf) { err = -errno; - warn("failed to create ring/perf buffer: %d\n", err); + fprintf(stderr, "failed to create ring/perf buffer: %d\n", err); goto cleanup; }
validation BUGFIX add meta for userord diff nodes from validation
* * https://opensource.org/licenses/BSD-3-Clause */ +#define _XOPEN_SOURCE 500 /* strdup */ + #include "validation.h" #include <assert.h> @@ -40,16 +42,50 @@ lyd_val_diff_add(const struct lyd_node *node, enum lyd_diff_op op, struct lyd_no { LY_ERR ret = LY_SUCCESS; struct lyd_node *new_diff = NULL; + const struct lyd_n...
Group record instance creation with other functions
@@ -653,6 +653,22 @@ local function rec_create_metatable(rec, ctx) return cstats, mt.name end +local function rec_create_instance(rec, typ, ctx) + local udata = ctx:new_tvar(typ) + local mt_slot = upvalues_slot(rec._upvalue_index, ctx) + local cstats = util.render([[ + ${UDATA_DECL} = luaS_newudata(L, ${MEM_SIZE}, ${UV...
feat: bot-log.c subscribes to every possible event
#include <stdio.h> #include <stdlib.h> #include <inttypes.h> +#include <limits.h> #include <string.h> #include <assert.h> @@ -56,6 +57,7 @@ int main(int argc, char *argv[]) struct discord *client = discord_config_init(config_file); assert(NULL != client); + discord_add_intents(client, 32767); discord_set_on_ready(clien...
doc: Install bison to support kconfig Current kconfig-frontends is not supporting byacc anymore. Observed issue using byacc (20140715-1): kconfig-frontends/kconfig-frontends/libs/parser/yconf.y", syntax error %destructor { Problem has been solved on Ubuntu 16.04.2 (x86_64) using bison-2:3.0.4.dfsg-1 instead.
@@ -78,9 +78,9 @@ Please keep in mind that we are actively working on board configurations, and wi ## APPENDIX ### Kconfig-frontends Installation -1. The *byacc*, *flex*, *gperf* and *libncurses5-dev* packages should be installed. +1. The *bison* (or byacc if supported), *flex*, *gperf* and *libncurses5-dev* packages s...
RTOS2/RTX5: Enhanced ThreadTerminate to not allow termination of idle or timer threads.
@@ -1194,6 +1194,13 @@ osStatus_t svcRtxThreadTerminate (osThreadId_t thread_id) { return osErrorParameter; } + // Don't allow termination of timer or idle thread + if ((thread == osRtxInfo.timer.thread) || + (thread == osRtxInfo.thread.idle)) { + EvrRtxThreadError(thread, osErrorParameter); + return osErrorResource; +...
Add missing log param and assert.
@@ -53,6 +53,7 @@ storageDriverPosixFileWriteNew( bool syncPath, bool atomic) { FUNCTION_LOG_BEGIN(logLevelTrace); + FUNCTION_LOG_PARAM(STORAGE_DRIVER_POSIX, storage); FUNCTION_LOG_PARAM(STRING, name); FUNCTION_LOG_PARAM(MODE, modeFile); FUNCTION_LOG_PARAM(MODE, modePath); @@ -62,6 +63,7 @@ storageDriverPosixFileWriteN...
Update emscripten build.
@@ -111,11 +111,14 @@ EMCFLAGS=-std=c99 -Wall -Wextra -Isrc/include -O2 \ JANET_EMTARGET=build/janet.js JANET_WEB_SOURCES=$(JANET_CORE_SOURCES) $(JANET_WEBCLIENT_SOURCES) JANET_EMOBJECTS=$(patsubst src/%.c,build/%.bc,$(JANET_WEB_SOURCES)) \ - build/webinit.gen.bc build/core.gen.bc + build/webinit.gen.bc build/core_imag...
bugID:18002625:[breeze] Add awss dependence on auth.
@@ -27,15 +27,19 @@ endif $(NAME)_SOURCES-y += api/breeze_export.c +bz_en_auth ?= 1 +ifeq ($(bz_en_auth), 1) +GLOBAL_DEFINES-y += EN_AUTH +$(NAME)_SOURCES-y += core/auth.c +endif + bz_en_awss ?= 1 ifeq ($(bz_en_awss), 1) +ifeq ($(bz_en_auth), 0) +$(error awss need authentication, please set "bz_en_auth = 1") +endif GLO...
add warewulf upgrade info
@@ -9,6 +9,11 @@ Version 1.3.6 (07 November 2018) installed system, administrators can opt-in to enable the gnu8 variant. This procedure is detailed in Appendix B of the OpenHPC Install Guide(s). + * Warewulf now packages iPXE in an archetecture-specific RPM. Upgrading from + previous versions will require installing +...
OpenCanopy: Fix boot label scroll for UIScale 2
@@ -109,7 +109,7 @@ InternalBootPickerAnimateLabel ( // // If the second drawn label reaches the front, switch back to the first. // - if (Entry->LabelOffset == -(INT16) (Entry->Label.Width + BOOT_LABEL_WRAPAROUND_PADDING)) { + if (Entry->LabelOffset <= -(INT16) (Entry->Label.Width + BOOT_LABEL_WRAPAROUND_PADDING * Dra...
YAML Smith: Fix output for nested keys
@@ -72,11 +72,11 @@ NameIterator relativeKeyIterator (CppKey const & key, CppKey const & parent) return keyIterator; } -bool sameLevel (CppKey const & key1, CppKey const & key2) +bool sameLevelOrBelow (CppKey const & key1, CppKey const & key2) { if (!key1 || !key2) return false; - return key1.getFullName ().substr (0, ...
fixes bug with va_list
@@ -214,10 +214,11 @@ char* ipc_read(int _sock) { * @return 0 on success; -1 on failure */ int ipc_write(int _sock, char* fmt, ...) { - va_list args; + va_list args, original; + va_start(original, fmt); va_start(args, fmt); char* msg = calloc(sizeof(char), vsnprintf(NULL, 0, fmt, args)+1); - vsprintf(msg, fmt, args); +...
Create go package via CMake.
@@ -1228,6 +1228,29 @@ if(${TINYSPLINE_BINDING_REQUESTED}) ${CMAKE_COMMAND} -E copy "${TINYSPLINE_GO_SOURCE_DIRECTORY}/${TINYSPLINE_GO_CMAKE_TARGET}.go" "${TINYSPLINE_GO_INTERFACE_FILE}") + add_custom_command( + TARGET ${TINYSPLINE_GO_CMAKE_TARGET} + POST_BUILD + COMMAND + ${CMAKE_COMMAND} -E make_directory + "${TINYSP...
Implement resource-ids for Create-Job, Print-Job, and Print-URI for 'template-job' resources (Issue
@@ -8664,8 +8664,11 @@ valid_job_attributes( int i, /* Looping var */ count, /* Number of values */ valid = 1; /* Valid attributes? */ - ipp_attribute_t *attr, /* Current attribute */ - *supported; /* xxx-supported attribute */ + ipp_attribute_t *attr, /* Request attribute */ + *resource_ids, /* resources-ids attribute...
fcb/test: Assert on flash_area_erase error
@@ -260,10 +260,12 @@ void config_wipe_srcs(void) void config_wipe_fcb(struct flash_area *fa, int cnt) { + int rc; int i; for (i = 0; i < cnt; i++) { - flash_area_erase(&fa[i], 0, fa[i].fa_size); + rc = flash_area_erase(&fa[i], 0, fa[i].fa_size); + TEST_ASSERT(rc == 0); } }
Fix AXI4 example. I accidentally stumbled into a working AXI4 configuration by multiplying pbus.beatBytes by 8, but it was fragile. This is the "right way" to add an AXI4 peripheral.
@@ -105,9 +105,15 @@ trait HasPeripheryPWMAXI4 { this: BaseSubsystem => private val portName = "pwm" val pwm = LazyModule(new PWMAXI4( - PWMParams(address, 8 * pbus.beatBytes))(p)) + PWMParams(address, pbus.beatBytes))(p)) - pbus.toFixedWidthSlave(Some(portName)) { pwm.node := TLToAXI4() } + pbus.toSlave(Some(portName)...
Tests: vpp_pg_interface. Don't rewrite Dot1AD ethertype. Type: Refactor
@@ -423,10 +423,6 @@ class VppPGInterface(VppInterface): pg_interface.name) return arp_reply = captured_packet.copy() # keep original for exception - # Make Dot1AD packet content recognizable to scapy - if arp_reply.type == 0x88a8: - arp_reply.type = 0x8100 - arp_reply = Ether(scapy.compat.raw(arp_reply)) try: if arp_r...
Do some re-styling in pe.c
@@ -486,7 +486,8 @@ void pe_parse_version_info( { PVERSION_INFO version_info; - int64_t version_info_offset = pe_rva_to_offset(pe, yr_le32toh(rsrc_data->OffsetToData)); + int64_t version_info_offset = pe_rva_to_offset( + pe, yr_le32toh(rsrc_data->OffsetToData)); if (version_info_offset < 0) return; @@ -582,7 +583,10 @@...
fix wrong arch report for `os.versioninfo()` xmake on Windows built for x86_64 arch will report i386 calling `os.versioninfo()`. This may be a history problem that in the past there's no 64-bit xmake on Windows and some other places should also do this modify
@@ -249,7 +249,7 @@ tb_int_t xm_os_versioninfo(lua_State* lua) lua_pushstring(lua, "arch"); // init architecture -#if defined(TB_ARCH_x86) || defined(TB_CONFIG_OS_WINDOWS) +#if defined(TB_ARCH_x86) lua_pushstring(lua, "i386"); #elif defined(TB_ARCH_x64) lua_pushstring(lua, "x86_64");
avoid waking up for bad reasons
@@ -267,7 +267,7 @@ protoop_arg_t set_nxt_wake_time(picoquic_cnx_t *cnx) if (pd != NULL && pd->state != 2) { continue; } - for (picoquic_packet_context_enum pc = 0; pc < picoquic_nb_packet_context; pc++) { + for (picoquic_packet_context_enum pc = 0; pc < picoquic_nb_packet_context && (i == 0 || pc == picoquic_packet_co...
VERSION bump to version 1.4.57
@@ -37,7 +37,7 @@ endif() # micro version is changed with a set of small changes or bugfixes anywhere in the project. set(SYSREPO_MAJOR_VERSION 1) set(SYSREPO_MINOR_VERSION 4) -set(SYSREPO_MICRO_VERSION 56) +set(SYSREPO_MICRO_VERSION 57) set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI...
Replace configs_enabled check with query_compile_time_config
@@ -45,6 +45,7 @@ fi : ${P_SRV:=../programs/ssl/ssl_server2} : ${P_CLI:=../programs/ssl/ssl_client2} : ${P_PXY:=../programs/test/udp_proxy} +: ${P_QUERY:=../programs/test/query_compile_time_config} : ${OPENSSL_CMD:=openssl} # OPENSSL would conflict with the build system : ${GNUTLS_CLI:=gnutls-cli} : ${GNUTLS_SERV:=gnut...
fix: add BoatIotSdkInit(); in test_001CreateWallet_0004CreateLoadWalletSuccess
@@ -157,6 +157,7 @@ START_TEST(test_001CreateWallet_0004CreateLoadWalletSuccess) { BSINT32 rtnVal; BoatPlatONWallet *g_platon_wallet_ptr = NULL; + BoatIotSdkInit(); extern BoatIotSdkContext g_boat_iot_sdk_context; /* 1. execute unit test */
stm32: Add LSI config option.
@@ -243,6 +243,10 @@ void SystemClock_Config(void) RCC_OscInitStruct.HSEState = OMV_OSC_HSE_STATE; RCC_OscInitStruct.OscillatorType |= RCC_OSCILLATORTYPE_HSE; #endif + #if defined(OMV_OSC_LSI_STATE) + RCC_OscInitStruct.LSIState = OMV_OSC_LSI_STATE; + RCC_OscInitStruct.OscillatorType |= RCC_OSCILLATORTYPE_LSI; + #endif ...
Remove duplicate variables
@@ -429,7 +429,6 @@ NTSTATUS PhpUpdateMemoryRegionTypes( PVOID processHeapsPtr; PVOID *processHeaps; PVOID apiSetMap; - ULONG i; #ifdef _WIN64 PVOID peb32; ULONG processHeapsPtr32; @@ -691,8 +690,8 @@ NTSTATUS PhpUpdateMemoryRegionTypes( if (cfgBitmapAddress && (cfgBitmapMemoryItem = PhLookupMemoryItemList(List, cfgBit...
Download PyPi index in background
@@ -54,8 +54,7 @@ import TrueTime /// Updates the PyPi index cache. func updatePyPiCache() { - - + UIApplication.shared.beginBackgroundTask(expirationHandler: nil) URLSession.shared.downloadTask(with: URL(string: "https://pypi.org/simple")!) { (fileURL, _, error) in if let error = error {
Don't pass a negative value to __redisAsyncCommand if redisFormatSdsCommandArgv fails
@@ -676,6 +676,8 @@ int redisAsyncCommandArgv(redisAsyncContext *ac, redisCallbackFn *fn, void *priv int len; int status; len = redisFormatSdsCommandArgv(&cmd,argc,argv,argvlen); + if (len < 0) + return REDIS_ERR; status = __redisAsyncCommand(ac,fn,privdata,cmd,len); sdsfree(cmd); return status;
cherry: update USB PID PID allocated in cl/370096781 TEST=make BRANCH=none Tested-by: Ting Shen
#define CONFIG_USB_PD_TCPMV2 #define CONFIG_USB_PD_TRY_SRC #define CONFIG_USB_PD_VBUS_DETECT_PPC -#define CONFIG_USB_PID 0x5566 /* TODO: update PID */ +#define CONFIG_USB_PID 0x5054 #define CONFIG_USB_POWER_DELIVERY #define PD_MAX_CURRENT_MA 3000
wait before sending HID report
+#include <zephyr.h> #include <device.h> #include <init.h> @@ -15,6 +16,18 @@ static enum usb_dc_status_code usb_status; static struct device *hid_dev; +static K_SEM_DEFINE(hid_sem, 1, 1); + +static void in_ready_cb(void) +{ + k_sem_give(&hid_sem); +} + +static const struct hid_ops ops = +{ + .int_in_ready = in_ready_c...
Tests: ctests: CMakeList.txt: no continue()
file (GLOB TESTS test_*.c) foreach (file ${TESTS}) get_filename_component (name ${file} NAME_WE) - if (NOT ENABLE_OPTIMIZATIONS AND ${name} MATCHES "opmphm") - continue() - endif(NOT ENABLE_OPTIMIZATIONS AND ${name} MATCHES "opmphm") + if (ENABLE_OPTIMIZATIONS OR NOT ${name} MATCHES "opmphm") do_test (${name}) target_l...
Bazel support: Bump OpenEXR version to 3.2
@@ -11,7 +11,7 @@ config_setting( generate_header( name = "IexConfig.h", substitutions = { - "@IEX_INTERNAL_NAMESPACE@": "Iex_3_1", + "@IEX_INTERNAL_NAMESPACE@": "Iex_3_2", "@IEX_NAMESPACE_CUSTOM@": "0", "@IEX_NAMESPACE@": "Iex", }, @@ -31,7 +31,7 @@ generate_header( generate_header( name = "IlmThreadConfig.h", substit...
Compile: Update style of link with `prettier`
@@ -505,7 +505,7 @@ This value specifies the root directory of a local copy of the [Google Test][] f It can be provided as CMake or environment variable. If both options are provided the value passed via CMake takes precedence. -[Google Test]: https://github.com/google/googletest +[google test]: https://github.com/goog...
uart: Add missing critical section wrappers around rx_buffered_len The missing barriers caused uart_get_buffered_data_len() to (very rarely) return a garbage value. When used in MicroPython, though, this caused select() to return and a subsequent read() to stall indefinitely until a char was actually available. Closes ...
@@ -1295,7 +1295,9 @@ esp_err_t uart_get_buffered_data_len(uart_port_t uart_num, size_t *size) { ESP_RETURN_ON_FALSE((uart_num < UART_NUM_MAX), ESP_FAIL, UART_TAG, "uart_num error"); ESP_RETURN_ON_FALSE((p_uart_obj[uart_num]), ESP_FAIL, UART_TAG, "uart driver error"); + UART_ENTER_CRITICAL(&(uart_context[uart_num].spin...
Rework the audio_ports_config_info documentation
/// extension where all busses can be retrieved in the same way as in the audio-port extension. static CLAP_CONSTEXPR const char CLAP_EXT_AUDIO_PORTS_CONFIG[] = "clap.audio-ports-config"; -static CLAP_CONSTEXPR const char CLAP_EXT_AUDIO_PORTS_CONFIG_INFO[] = "clap.audio-ports-config-info"; +static CLAP_CONSTEXPR const ...
Attempted to scale the extra_mvs
@@ -1136,6 +1136,35 @@ static void search_frac(inter_search_info_t *info) } +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); +} + +static void apply_mv_scaling(int32_t current_poc, + int32_t current_ref_poc, +...
armv7m7-imxrt: fixed bug in logical operation.
@@ -578,7 +578,7 @@ static u32 _imxrt_ccmGetPeriphClkFreq(void) freq /= ((*(imxrt_common.ccm + ccm_cbcdr) >> 27) & 0x7) + 1; } else { /* Pre_Periph_clk ---> Periph_clk */ - switch ((*(imxrt_common.ccm + ccm_cbcmr) >> 18) * 0x3) { + switch ((*(imxrt_common.ccm + ccm_cbcmr) >> 18) & 0x3) { /* PLL2 ---> Pre_Periph_clk ---...
esp-lwip: Added check in esp_netif_new() to restrict configuring DHCP server and client together.
@@ -677,6 +677,16 @@ esp_netif_t *esp_netif_new(const esp_netif_config_t *esp_netif_config) return NULL; } +#if ESP_DHCPS + // DHCP server and client cannot be configured together + if((esp_netif_config->base->flags & ESP_NETIF_DHCP_SERVER) && + (esp_netif_config->base->flags & ESP_NETIF_DHCP_CLIENT)) { + ESP_LOGE(TAG,...
meep: correct battery discharging parameter Correct batteery discharging parameter to follow datasheet. BRANCH=octopus TEST=make buildall
@@ -56,7 +56,7 @@ const struct board_batt_params board_battery_info[] = { .start_charging_max_c = 45, .charging_min_c = 0, .charging_max_c = 45, - .discharging_min_c = 0, + .discharging_min_c = -10, .discharging_max_c = 60, }, }, @@ -85,7 +85,7 @@ const struct board_batt_params board_battery_info[] = { .start_charging_...
coap:send last block2 response/block1 ACK as CON
@@ -316,10 +316,13 @@ coap_receive(oc_message_t *msg) goto send_message; } else { OC_DBG("received all blocks for payload"); + coap_udp_init_message(response, COAP_TYPE_CON, CONTENT_2_05, + response->mid); coap_set_header_block1(response, block1_num, block1_more, block1_size); request_buffer->payload_size = request_buf...
Add link to 18.01 test framework documentation.
@@ -3,6 +3,7 @@ Test Framework Documentation {#test_framework_doc} PyDoc generated documentation for the "make test" framework is available for the following releases +- [Test framework documentation for VPP 18.01](https://docs.fd.io/vpp/18.01/vpp_make_test/html) - [Test framework documentation for VPP 17.10](https://d...
Fix urls in the example The urls in the docs/03.API-EXAMPLE.md was pointing to the old samsung.github.io pages. JerryScript-DCO-1.0-Signed-off-by: Kristof Kosztyo
@@ -512,4 +512,4 @@ Value of x is 17 ## Further steps -For further API description, please visit [API Reference page](https://samsung.github.io/jerryscript/api-reference/) on [JerryScript home page](https://samsung.github.io/jerryscript/). +For further API description, please visit [API Reference page](https://jerryscr...
fixed some typos in status display
@@ -2060,26 +2060,26 @@ else if(hcxwritecount > 1) printf("\x1B[32mtotal %ld usefull wpa handshakes:\x1B[0m\n", hcxwritecount); if(wpakv1c > 0) - printf("\x1B[32mfound %ld wpa1 RC4 Cipher, HMAC-MD5\x1B[0m\n", wpakv1c); + printf("\x1B[32mfound %ld WPA1 RC4 Cipher, HMAC-MD5\x1B[0m\n", wpakv1c); if(wpakv2c > 0) - printf("...
jenkinsfile: build debian bullseye with debug
@@ -553,7 +553,8 @@ def generateFullBuildStages() { tasks << buildAndTest( "debian-bullseye-full", DOCKER_IMAGES.bullseye, - CMAKE_FLAGS_BUILD_ALL, + CMAKE_FLAGS_BUILD_ALL+ + CMAKE_FLAGS_DEBUG, [TEST.ALL, TEST.MEM, TEST.INSTALL] )
graph-store: if null timestamp, replace with now
^- (quip card _state) |^ ?> ?=(%0 -.update) + =? p.update =(p.update *time) now.bowl ?- -.q.update %add-graph (add-graph +.q.update) %remove-graph (remove-graph +.q.update)
Fix help message for pg_basebackup -R The recovery.conf file that's generated is specifically for replication, and not needed (or wanted) for regular backup restore, so indicate that in the message.
@@ -237,7 +237,7 @@ usage(void) printf(_(" -r, --max-rate=RATE maximum transfer rate to transfer data directory\n" " (in kB/s, or use suffix \"k\" or \"M\")\n")); printf(_(" -R, --write-recovery-conf\n" - " write recovery.conf after backup\n")); + " write recovery.conf for replication\n")); printf(_(" -T, --tablespace-...
[mod_extforward] fix typos in Forwarded handling also: add commented-out code for potentially creating X-Forwarded-For from Forwarded, if X-Forwarded-For is not present.
@@ -801,7 +801,7 @@ static handler_t mod_extforward_Forwarded (server *srv, connection *con, plugin_ #if 0 case 2: if (0 == buffer_caseless_compare(s+offsets[j],2,"by",2)) - oproto = j; + oby = j; break; #endif #if 0 @@ -912,8 +912,8 @@ static handler_t mod_extforward_Forwarded (server *srv, connection *con, plugin_ if...
untested pls work
@@ -83,7 +83,7 @@ for x in range(len(my_info)): start_index = int(my_info[x].time/1000 * rate) - if x < len(beatmap_info) and "slider" in beatmap_info[x]["type"]: + if x < len(beatmap_info) and "slider" in beatmap_info[x]["type"] and beatmap_info[x]["repeated"] > 1: spinSpeedup = 6 arrow_time_list = [] for a in range(b...
Configurations/unix-Makefile.tmpl: fix HP-UX build. HP-UX make doesn't recognize $< in explict target rules, only in inference ones such as .c.o.
@@ -856,7 +856,7 @@ EOF } return <<"EOF"; $args{src}: $args{generator}->[0] $deps - \$(CC) $incs \$(CFLAGS) -E \$< | \\ + \$(CC) $incs \$(CFLAGS) -E $args{generator}->[0] | \\ \$(PERL) -ne '/^#(line)?\\s*[0-9]+/ or print' > \$@ EOF }
virtio: vhost gso checksum error when both indirect and mrg_rxbuf are off Turn on gso, turn off both indirect and mrg_rxbuf caused traffic received and sent with checksum error. The problem is we are not mapping the hdr correctly in the shared memory address. Type: fix
@@ -544,13 +544,11 @@ vhost_user_if_input (vlib_main_t * vm, /* This depends on the setup but is very consistent * So I think the CPU branch predictor will make a pretty good job * at optimizing the decision. */ - u8 indirect = 0; if (txvq->desc[desc_current].flags & VIRTQ_DESC_F_INDIRECT) { desc_table = map_guest_mem ...
QUIC RSTREAM: Allow pointer to be NULL when calling free
@@ -33,6 +33,9 @@ QUIC_RSTREAM *ossl_quic_rstream_new(QUIC_RXFC *rxfc, void ossl_quic_rstream_free(QUIC_RSTREAM *qrs) { + if (qrs == NULL) + return; + ossl_sframe_list_destroy(&qrs->fl); OPENSSL_free(qrs); }
A few minor tweaks to unit test. [ci skip]
+// +// Copyright 2017 Jeff Bush +// +// 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 License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed...
KDB Find: Require `sync` plugin for MSR test
@@ -14,7 +14,7 @@ if (CMAKE_COMPILER_IS_GNUCXX AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.9) message (STATUS "Excluding Markdown Shell Recorder test for `kdb find`, since GCC ${CMAKE_CXX_COMPILER_VERSION} " "does not support regular expressions properly") else (CMAKE_COMPILER_IS_GNUCXX AND CMAKE_CXX_COMPILER_VERSION...
fix warning: unused variable 'ctx'
@@ -133,7 +133,6 @@ static int luv_pipe_chmod(lua_State* L) { #if LUV_UV_VERSION_GEQ(1,41,0) static int luv_pipe(lua_State* L) { - luv_ctx_t* ctx = luv_context(L); int read_flags = 0, write_flags = 0; uv_file fds[2]; int ret;
Make Codecov less sensitive
ignore: - "test/stream_expectations.c" # Function pointers are not resolved correctly - "examples" +coverage: + status: + project: + default: + target: auto + threshold: 1% # Don't fail CI on trivial changes and Codecov flakiness
appveyor: bundler installation seem to freeze the build, disabling
@@ -104,7 +104,7 @@ install: - gem install rest-client --no-document - gem install listen --no-document - gem install zip --no-document - - gem install bundler --quiet --no-ri --no-rdoc +# - gem install bundler --quiet --no-ri --no-rdoc - bundler --version before_test:
Core: OPMPHM: Predictor: set final config
#include <stdlib.h> #include <string.h> - -const uint16_t opmphmPredictorHistoryMask = 0x7FF; // 11 bit history -//~ const uint16_t opmphmPredictorHistoryMask = 0x1FF; // 9 bit history -//~ const uint16_t opmphmPredictorHistoryMask = 0x7F; // 7 bit history -//~ const uint16_t opmphmPredictorHistoryMask = 0x1F; // 5 bit...
vlib: make runtime_data handling thread-local
@@ -750,7 +750,6 @@ vnet_register_interface (vnet_main_t * vnm, if (vec_len (im->deleted_hw_interface_nodes) > 0) { vnet_hw_interface_nodes_t *hn; - vnet_interface_output_runtime_t *rt; vlib_node_t *node; vlib_node_runtime_t *nrt; @@ -762,17 +761,23 @@ vnet_register_interface (vnet_main_t * vnm, vlib_node_rename (vm, h...
Have rac.Writer check for too much input
@@ -163,11 +163,19 @@ func (w *Writer) write(data []byte) error { ioWriter = w.TempFile } + if uint64(len(data)) > MaxSize { + w.err = errors.New("rac: too much input") + return w.err + } if _, err := ioWriter.Write(data); err != nil { w.err = err return err } w.dataSize += uint64(len(data)) + if w.dataSize > MaxSize {...
Add bigger timeout for PING command
@@ -58,7 +58,7 @@ esp_ping(const char* host, uint32_t* time, ESP_MSG_VAR_REF(msg).msg.tcpip_ping.host = host; ESP_MSG_VAR_REF(msg).msg.tcpip_ping.time_out = time; - return espi_send_msg_to_producer_mbox(&ESP_MSG_VAR_REF(msg), espi_initiate_cmd, 10000); + return espi_send_msg_to_producer_mbox(&ESP_MSG_VAR_REF(msg), espi...
libc: Keep printf("%pS", p) behavior consistent When ALLSYMS is not turned on, %pS will be treated as %p
@@ -1145,10 +1145,10 @@ str_lpad: continue; } -#ifdef CONFIG_ALLSYMS case 'S': case 's': { +#ifdef CONFIG_ALLSYMS FAR const struct symtab_s *symbol; FAR void *addr = (FAR void *)(uintptr_t)x; size_t symbolsize; @@ -1171,10 +1171,9 @@ str_lpad: continue; } - +#endif break; } -#endif default: fmt_ungetc(fmt);
Add trusty to the test matrix
language: cpp +cache: ccache + compiler: - gcc @@ -8,7 +10,12 @@ addons: - 127.0.0.1.xip.io - alternate.127.0.0.1.xip.io -before_install: +matrix: + include: + - os: linux + sudo: required + dist: precise + before_install: &bi # upgrade g++ and libstdc++ to build nghttp2 - sudo add-apt-repository --yes ppa:ubuntu-toolc...
needed backticks
@@ -10,7 +10,7 @@ title: Known Issues As of this AppScope pre-release, known issues include: -- [#677](https://github.com/criblio/appscope/issues/677) HTTP/1.1 events are parsed incorrectly, populating http_method and http_target fields with junk. +- [#677](https://github.com/criblio/appscope/issues/677) HTTP/1.1 event...
eyre: convert facts to json manually By doing a %watch instead of %watch-as %json for channel subscriptions, we can hopefully make better use of noun deduplication, when storing events in a channel's event queue until they get acked.
events =^ head queue ~(get to queue) =, p.head - =/ sign=(unit sign:agent:gall) - (channel-event-to-sign channel-event) - ?~ sign $ - $(events [(event-json-to-wall id (sign-to-json request-id u.sign)) events]) + ?~ sign=(channel-event-to-sign channel-event) $ + ?~ json=(sign-to-json request-id u.sign) $ + $(events [(ev...
Fix definition of snprintf for MSVC MS _snprintf_s takes an additional argument for the size of the buffer, so is not a direct replacement (utest/ctest.h from which I copied was wrong)
@@ -37,7 +37,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #if defined(_WIN32) && defined(_MSC_VER) #if _MSC_VER < 1900 -#define snprintf _snprintf_s +#define snprintf _snprintf #endif #endif
Fix Nucleo-F767ZI clocks This updates the BSP to be clocked at 168MHz, enables PCLK2 for TRNG, and enables the instruction cache.
*/ #include "stm32f7xx.h" +#include "stm32f7xx_hal_gpio_ex.h" +#include "stm32f7xx_hal_flash.h" +#include "stm32f7xx_hal_rcc.h" +#include "stm32f7xx_hal_pwr.h" +#include "stm32f7xx_hal_pwr_ex.h" #include "mcu/cmsis_nvic.h" #if !defined (HSE_VALUE) /** @addtogroup STM32F7xx_System_Private_FunctionPrototypes * @{ */ +sta...
pydiag: Add implementation of cool_cpu_cache opt.
import nlb from diagtest import diagtest from opae.utils import cl_align, CACHELINE_BYTES + # pylint: disable=E0611 from opae import fpga + COOL_CACHE_LINES = 1024 COOL_CACHE_SIZE = CACHELINE_BYTES*COOL_CACHE_LINES +MAX_CPU_CACHE_SIZE = 100 * 1024 * 1024 class nlb3(diagtest): guid = "F7DF405C-BD7A-CF72-22F1-44B0B93ACD1...
crypto/bio/build.info: split the source files in categories
LIBS=../../libcrypto + +# Base library SOURCE[../../libcrypto]=\ bio_lib.c bio_cb.c bio_err.c \ - bss_mem.c bss_null.c bss_fd.c \ - bss_file.c bss_sock.c bss_conn.c \ - bf_null.c bf_buff.c b_print.c b_dump.c b_addr.c \ - b_sock.c b_sock2.c bss_acpt.c bf_nbio.c bss_log.c bss_bio.c \ - bss_dgram.c bio_meth.c bf_lbuf.c + ...
Protect `fiobj_free` from NULL
@@ -139,6 +139,8 @@ static int fiobj_free_or_mark(fiobj_s *o, void *arg) { */ void fiobj_free(fiobj_s *o) { #if DEBUG + if (!o) + return; if (OBJ2HEAD(o)->ref == 0) { fprintf(stderr, "ERROR: attempting to free an object that isn't a fiobj or already " @@ -147,7 +149,7 @@ void fiobj_free(fiobj_s *o) { kill(0, SIGABRT); ...
build: make FLB_RECORD_ACCESSOR dependent of FLB_REGEX
@@ -201,6 +201,15 @@ endif() # Record Accessor +# --------------- +# Make sure it dependency is enabled +if(FLB_RECORD_ACCESSOR AND NOT FLB_REGEX) + message(FATAL_ERROR + "FLB_RECORD_ACCESSOR depends on FLB_REGEX, " + "enable it with: -DFLB_REGEX=ON") +endif() + +# Build record accessor files if(FLB_RECORD_ACCESSOR) se...
Support deprecated `publish` format
@@ -808,6 +808,9 @@ VALUE iodine_publish(int argc, VALUE *argv, VALUE self) { /* single argument must be a Hash */ Check_Type(argv[0], T_HASH); rb_ch = rb_hash_aref(argv[0], to_sym_id); + if (rb_ch == Qnil || rb_ch == Qfalse) { + rb_ch = rb_hash_aref(argv[0], channel_sym_id); + } rb_msg = rb_hash_aref(argv[0], message_...
add rt_memory_info() for memheap.c
@@ -712,6 +712,20 @@ void *rt_calloc(rt_size_t count, rt_size_t size) } RTM_EXPORT(rt_calloc); +void rt_memory_info(rt_uint32_t *total, + rt_uint32_t *used, + rt_uint32_t *max_used) +{ + if (total != RT_NULL) + *total = _heap.pool_size; + + if (used != RT_NULL) + *used = _heap.pool_size - _heap.available_size; + + if (...
output_calyptia: add comment for variable used by chunk traces.
@@ -849,6 +849,7 @@ static void cb_calyptia_flush(struct flb_event_chunk *event_chunk, size_t off = 0; size_t out_size = 0; char *out_buf = NULL; +/* used to create records for reporting traces to the cloud. */ #ifdef FLB_HAVE_CHUNK_TRACE flb_sds_t json; #endif /* FLB_HAVE_CHUNK_TRACE */
Zephyr port: explicitly convert port# between host<->network byte order This change adds byte order conversions on receive and send. It was previously assumed that the network stack does this conversion on both sides, but it was determined that it wasn't the case.
@@ -96,7 +96,7 @@ oc_network_receive(struct net_context *context, struct net_buf *buf, int status, message->endpoint.flags = IPV6; memcpy(message->endpoint.addr.ipv6.address, &NET_IPV6_BUF(buf)->src, 16); message->endpoint.addr.ipv6.scope = 0; - message->endpoint.addr.ipv6.port = NET_UDP_BUF(buf)->src_port; + message->...
board/damu/led.c: Format with clang-format BRANCH=none TEST=none
@@ -19,32 +19,39 @@ __override const int led_charge_lvl_2 = 95; __override struct led_descriptor led_bat_state_table[LED_NUM_STATES][LED_NUM_PHASES] = { - [STATE_CHARGING_LVL_1] = {{EC_LED_COLOR_AMBER, LED_INDEFINITE} }, - [STATE_CHARGING_LVL_2] = {{EC_LED_COLOR_AMBER, LED_INDEFINITE} }, - [STATE_CHARGING_FULL_CHARGE] ...
Explicit braces
@@ -1270,7 +1270,9 @@ float compress_symbolic_block( prepare_block_statistics(bsd->texel_count, blk, ewb, &is_normal_map, &lowest_correl); if (is_normal_map && lowest_correl < 0.99f) + { lowest_correl = 0.99f; + } // next, test the four possible 1-partition, 2-planes modes for (int i = 0; i < 4; i++)
files: Use memfd_create when possible
#include <sys/types.h> #include <unistd.h> +#if defined(_HF_ARCH_LINUX) +#include <sys/syscall.h> +#endif /* defined(_HF_ARCH_LINUX) */ + #include "log.h" #include "util.h" @@ -573,6 +577,10 @@ uint8_t *files_mapFileShared(char *fileName, off_t * fileSz, int *fd) void *files_mapSharedMem(size_t sz, int *fd, const char ...
Improve gtest dependency.
@@ -12,8 +12,15 @@ if("${CMAKE_VERSION}" VERSION_LESS "3.11" AND POLICY CMP0037) set_policy(CMP0037 OLD) endif() +set(GTEST_VERSION 1.8.1) + +find_package(GTest ${GTEST_VERSION}) + +if(NOT GTEST_FOUND) include(ExternalProject) + find_package(Threads REQUIRED) + if(MINGW) set(GTEST_DISABLE_PTHREADS ON) else() @@ -23,7 +...
compiler-families/intel-compilers-devel: spelling fix
@@ -73,7 +73,7 @@ versions_all=`rpm -qal | grep ${icc_subpath}` if [ $? -eq 1 ];then echo "" echo "Error: Unable to detect local Parallel Studio installation. The toolchain" - echo " providing ${icc_subpath} must be installed prior to this compatability package" + echo " providing ${icc_subpath} must be installed prior...
test_suite_x509parse.function improvement as suggested in also removed two no longer necessary void casts
@@ -306,8 +306,6 @@ int parse_crt_ext_cb( void *p_ctx, mbedtls_x509_crt const *crt, mbedtls_x509_buf int critical, const unsigned char *cp, const unsigned char *end ) { ( void ) crt; - ( void ) cp; - ( void ) end; ( void ) critical; mbedtls_x509_buf *new_oid = (mbedtls_x509_buf *)p_ctx; if( oid->tag == MBEDTLS_ASN1_OID...
cmdline: cast time_t to long
@@ -677,7 +677,7 @@ bool cmdlineParse(int argc, char* argv[], honggfuzz_t* hfuzz) { cmdlineYesNo(hfuzz->exe.fuzzStdin), cmdlineYesNo(hfuzz->io.saveUnique), hfuzz->mutationsPerRun, hfuzz->exe.externalCommand == NULL ? "NULL" : hfuzz->exe.externalCommand, - (int)hfuzz->timing.runEndTime, hfuzz->timing.tmOut, hfuzz->mutat...