message
stringlengths
6
474
diff
stringlengths
8
5.22k
Fix chunk decoding for possible unconsumed new-line at head of data
@@ -285,14 +285,16 @@ inline static int consume_body_chunked(struct http1_fio_parser_args_s *args, while (*start < stop) { if (args->parser->state.content_length == 0) { size_t eol_len; + /* consume seperator */ + while (*start < stop && (**start == '\n' || **start == '\r')) + ++(*start); /* collect chunked length */ i...
stm: pass up the calculated max length for udp templates
@@ -140,7 +140,7 @@ void udp_set_num_ports(int x) { num_ports = x; } int udp_global_initialize(struct state_conf *conf) { - size_t udp_template_max_len = 0; + uint32_t udp_template_max_len = 0; num_ports = conf->source_port_last - conf->source_port_first + 1; if (!conf->probe_args) { @@ -196,8 +196,7 @@ int udp_global_...
VERSION bump to version 2.1.82
@@ -64,7 +64,7 @@ endif() # micro version is changed with a set of small changes or bugfixes anywhere in the project. set(SYSREPO_MAJOR_VERSION 2) set(SYSREPO_MINOR_VERSION 1) -set(SYSREPO_MICRO_VERSION 81) +set(SYSREPO_MICRO_VERSION 82) set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI...
Add log classification for IoT Convenience layer
@@ -55,6 +55,9 @@ typedef enum AZ_LOG_IOT_SAS_TOKEN = _az_LOG_MAKE_CLASSIFICATION(_az_FACILITY_IOT, 2), ///< IoT Client generated new SAS token. + + AZ_LOG_IOT_AZURERTOS + = _az_LOG_MAKE_CLASSIFICATION(_az_FACILITY_IOT, 3), ///< Azure IoT classification for Azure RTOS. } az_log_classification; /**
Proper order for libraries in Makefile.
@@ -26,7 +26,8 @@ PREFIX?=/usr/local BINDIR=$(PREFIX)/bin VERSION=\"0.0.0-beta\" -CFLAGS=-std=c99 -Wall -Wextra -I./include -I./libs -lm -g -DDST_VERSION=$(VERSION) +CFLAGS=-std=c99 -Wall -Wextra -I./include -I./libs -g -DDST_VERSION=$(VERSION) +CLIBS=-lm PREFIX=/usr/local DST_TARGET=dst DST_XXD=xxd @@ -56,7 +57,7 @@ D...
acrntrace: break when finding the matching key The key in the list is unique. So, it is better to break the loop when find the matching key instead of traversing the whole list. Acked-by: Yan, Like
@@ -137,6 +137,7 @@ def parse_trace_data(ifile): if event == LIST_EVENTS.get(key): NR_EXITS[key] += 1 last_ev_id = key + break else: # Skip the non-VMEXIT trace event
once more change
@@ -197,7 +197,7 @@ int cheatcoin_request_block(cheatcoin_hash_t hash, void *conn) { memcpy(&b.field[1], hash, sizeof(cheatcoin_hash_t)); memcpy(&b.field[2], &g_cheatcoin_stats, sizeof(g_cheatcoin_stats)); cheatcoin_netdb_send((uint8_t *)&b.field[2] + sizeof(struct cheatcoin_stats), - 13 * sizeof(struct cheatcoin_field...
esp8266/modules/neopixel.py: Add timing param to NeoPixel constructor. This matches the esp32 port.
@@ -7,12 +7,13 @@ from esp import neopixel_write class NeoPixel: ORDER = (1, 0, 2, 3) - def __init__(self, pin, n, bpp=3): + def __init__(self, pin, n, bpp=3, timing=1): self.pin = pin self.n = n self.bpp = bpp self.buf = bytearray(n * bpp) self.pin.init(pin.OUT) + self.timing = timing def __setitem__(self, index, val)...
Add Emscripten build docs
@@ -78,6 +78,21 @@ cmake -GNinja .. ninja ``` +## Build using Emscripten + +```sh +source /opt/emsdk/emsdk_env.sh --build=Release +mkdir -p build +cd build +cmake -GNinja -DEMSCRIPTEN=1 .. +ninja +``` +**Note:** the build uses tail-call WebAssembly extension. +This is currently available in V8: +```sh +chrome --js-flag...
HLS Sponge: Beautify castings and parameter names
@@ -87,12 +87,12 @@ uint64_t sponge (const uint64_t rank) static void write_results(action_output_reg *Action_Output, action_input_reg *Action_Input, snapu32_t ReturnCode, - snapu64_t field1, - snapu64_t field2) + snapu64_t chk_out, + snapu64_t timer_ticks) { - Action_Output->Retc = (snapu32_t)ReturnCode; - Action_Outp...
fix: keep retrieving the remaining profiles when a PID is no longer found There are sometime init containers in a pod for which the PID is not longer active at the point when the pod is removed. In this situation, we still want to retrieve the remaining seccomp profiles.
@@ -654,17 +654,16 @@ func (r *RecorderReconciler) collectBpfProfiles( recorderClient, ctx, &bpfrecorderapi.ProfileRequest{Name: profile.name}, ) if err != nil { - // Something went wrong during BPF event collection, which also - // means that we do not have to retry this failure case. + // PID was not found for this p...
resetting last torques to zero when violation is true
@@ -148,12 +148,14 @@ static int toyota_tx_hook(CAN_FIFOMailBox_TypeDef *to_send) { } // *** steer real time rate limit check *** + int16_t max_rt_torque = 0; int16_t min_rt_torque = 0; // check every RT_INTERVAL if steer torque increased by more than MAX_RT_DELTA units in the positive directions if (ts > ts_last) { ui...
OcMachoLib: Fix borked MachoGetFirstCommand.
@@ -123,6 +123,19 @@ MachoGetFirstCommand64 ( IN MACH_LOAD_COMMAND_TYPE LoadCommandType ) { + ASSERT (MachHeader != NULL); + // + // LoadCommand being past the MachHeader Load Commands is implicitly caught + // by the for-loop. + // + if (MachHeader->Signature != MACH_HEADER_64_SIGNATURE) { + return NULL; + } + + if (M...
Shows the palette index aswell as the palette name
@@ -87,7 +87,7 @@ export const PaletteIndexSelect: FC<PaletteIndexSelectProps> = ({ /> } > - {option.palette?.name} + {option.label.concat( " ", "(", (option.palette?.name || ""), ")")} </OptionLabelWithPreview> ); }} @@ -102,7 +102,7 @@ export const PaletteIndexSelect: FC<PaletteIndexSelectProps> = ({ /> } > - {curren...
[GB] Add dummy audio processing unit
@@ -66,6 +66,32 @@ impl Breakpoint { } fn main_gfx() { +struct DummySoundController {} + +impl DummySoundController { + fn new() -> Self { + Self {} + } + fn is_sound_register(addr: u16) -> bool { + (addr >= 0xff10 && addr <= 0xff26) || (addr >= 0xff30 && addr <= 0xff3f) + } +} + +impl Addressable for DummySoundControl...
sse2: add WASM implementation of simde_mm_subs_ep{i,u}{8,16} Fixes
@@ -6222,6 +6222,8 @@ simde_mm_subs_epi8 (simde__m128i a, simde__m128i b) { #if defined(SIMDE_ARM_NEON_A32V7_NATIVE) r_.neon_i8 = vqsubq_s8(a_.neon_i8, b_.neon_i8); + #elif defined(SIMDE_WASM_SIMD128_NATIVE) + r_.wasm_v128 = wasm_i8x16_sub_saturate(a_.wasm_v128, b_.wasm_v128); #else SIMDE_VECTORIZE for (size_t i = 0 ; ...
Remove depracted defines in audio_device.c
@@ -762,13 +762,8 @@ static bool audiod_tx_done_cb(uint8_t rhport, audiod_interface_t * audio) uint8_t idxDriver, idxItf; uint8_t const *dummy2; -#if CFG_TUD_AUDIO_ENABLE_ENCODING && CFG_TUD_AUDIO_ENABLE_EP_IN && CFG_TUD_AUDIO_FORMAT_TYPE_TX == AUDIO_FORMAT_TYPE_I - // Required in any case regardless if call backs are ...
[snitch] Use FF macros in handler
// Fabian Schuiki <fschuiki@iis.ee.ethz.ch> +`include "common_cells/registers.svh" + module snitch_icache_handler #( parameter snitch_icache_pkg::config_t CFG = '0 )( @@ -157,13 +159,7 @@ module snitch_icache_handler #( end end - always_ff @(posedge clk_i or negedge rst_ni) begin - if(~rst_ni) begin - miss_in_flight_q ...
Remove accidental "#include <stdio.h>"
@@ -132,8 +132,6 @@ parse_flags(int argc, char** argv) { static void // ignore_return_value(int ignored) {} -#include <stdio.h> - const char* // main1(int argc, char** argv) { const char* z = parse_flags(argc, argv);
Fix nits detected by make cmd-nits
@@ -65,9 +65,9 @@ const OPTIONS rsa_options[] = { {"pvk-strong", OPT_PVK_STRONG, '-', "Enable 'Strong' PVK encoding level (default)"}, {"pvk-weak", OPT_PVK_WEAK, '-', "Enable 'Weak' PVK encoding level"}, {"pvk-none", OPT_PVK_NONE, '-', "Don't enforce PVK encoding"}, +#endif OPT_PROV_OPTIONS, -#endif {NULL} };
BugID:25722277: Add default value for macro defined in Config.in
@@ -302,6 +302,10 @@ def parse_block_of_configin(lines): match = p1.match(line) if match: new_macro["name"] = match.group(2) + # add default data type + new_macro["type"] = "bool" + new_macro["hint"] = "" + new_macro["value"] = "" else: return new_macro elif line.startswith("bool") or line.startswith("int") or line.sta...
gadget-container: Add support for liveness probe on GadgetTracerManager This commit uses the grpc_health_v1 package to exposes the GadgetTracerManager's health to be used by the Kubernetes liveness probe. It does not register a specific service but uses the default one that is automatically set to SERVING status. This ...
@@ -25,6 +25,8 @@ import ( "time" "google.golang.org/grpc" + "google.golang.org/grpc/health" + healthpb "google.golang.org/grpc/health/grpc_health_v1" "github.com/kinvolk/inspektor-gadget/pkg/gadgettracermanager" pb "github.com/kinvolk/inspektor-gadget/pkg/gadgettracermanager/api" @@ -198,6 +200,10 @@ func main() { } p...
fix travis (3)
@@ -24,5 +24,8 @@ install: - sudo make install - cd - +before_script: + - ./autogen.sh && ./configure + script: - - ./autogen.sh && ./configure --with-apxs=/usr/bin/apxs2 CFLAGS=-Werror && make && make check + - make check
PKCS#12 KDF: don't run tests with the FIPS provider.
@@ -46,7 +46,6 @@ my @files = qw( evpmac_common.txt evpmd_sha.txt evppbe_pbkdf2.txt - evppbe_pkcs12.txt evppkey_dsa.txt evppkey_ecc.txt evppkey_ecdh.txt @@ -93,6 +92,7 @@ my @defltfiles = qw( evpmd_sm3.txt evpmd_whirlpool.txt evppbe_scrypt.txt + evppbe_pkcs12.txt evppkey_brainpool.txt evppkey_kdf_scrypt.txt evppkey_kdf...
serf: disables incomplete "static grab" on boot
@@ -1135,17 +1135,19 @@ u3_serf_init(u3_serf* sef_u) rip = u3nt(c3__ripe, ver, _serf_ripe(sef_u)); } + // XX move to u3_serf_post() + // // measure/print static memory usage if < 1/2 of the loom is available // - { - c3_w pen_w = u3a_open(u3R); + // { + // c3_w pen_w = u3a_open(u3R); - if ( !(pen_w > (1 << 28)) ) { - f...
Fixed coding std violations in nsh_fsutils.h
@@ -129,7 +129,8 @@ int nsh_catfile(FAR struct nsh_vtbl_s *vtbl, FAR const char *cmd, } else { - nsh_error(vtbl, g_fmtcmdfailed, cmd, "read", NSH_ERRNO_OF(errval)); + nsh_error(vtbl, g_fmtcmdfailed, cmd, "read", + NSH_ERRNO_OF(errval)); } ret = ERROR; @@ -144,7 +145,8 @@ int nsh_catfile(FAR struct nsh_vtbl_s *vtbl, FAR...
Add description or category to newoption docs
@@ -10,11 +10,12 @@ newoption { description } | Field | Description | |-------------|------------------------------------------------------------------------------------| -| trigger | What the user would type on the command line to select the option, e.g. "--name". | +| trigger | What the user would type on the command...
modinfo BUGFIX maintain changed flag
@@ -2525,7 +2525,7 @@ sr_modinfo_validate(struct sr_mod_info_s *mod_info, int mod_state, int finish_di { sr_error_info_t *err_info = NULL; struct sr_mod_info_mod_s *mod; - struct lyd_node *diff = NULL; + struct lyd_node *diff = NULL, *iter; uint32_t i; int val_opts; @@ -2560,6 +2560,16 @@ sr_modinfo_validate(struct sr_...
Why is the copyright gone...
-/* The above copyright notice and this permission notice shall be included in +/* +* Copyright (c) 2021 Calvin Rose +* +* Permission is hereby granted, free of charge, to any person obtaining a copy +* of this software and associated documentation files (the "Software"), to +* deal in the Software without restriction,...
Fix typo in redis-cli.c
@@ -3368,7 +3368,7 @@ cleanup: /* Get the node the slot is assigned to from the point of view of node *n. * If the slot is unassigned or if the reply is an error, return NULL. - * Use the **err argument in order to check wether the slot is unassigned + * Use the **err argument in order to check whether the slot is unas...
Update EventFramework.cs change GetInstanceContentDeepDungeon to avoid a possible nullptr deref
@@ -31,8 +31,13 @@ public unsafe partial struct EventFramework public partial PublicContentDirector* GetPublicContentDirector(); public InstanceContentDeepDungeon* GetInstanceContentDeepDungeon() { - var dir = GetInstanceContentDirector(); - return dir != null && dir->InstanceContentType == 9 ? (InstanceContentDeepDung...
avx512f: fix newly introduced errors Two are the same issue; SIMDE_AVX2_ENABLE_NATIVE_ALIASES instead of SIMDE_AVX512F_ENABLE_NATIVE_ALIASES. The other is an unused variable.
@@ -1424,7 +1424,6 @@ simde_mm512_mask_test_epi32_mask (simde__mmask16 k1, simde__m512i a, simde__m512 return _mm512_mask_test_epi32_mask(k1, a, b); #else simde__m512i_private - tmp_, a_ = simde__m512i_to_private(a), b_ = simde__m512i_to_private(b); simde__mmask16 r = 0; @@ -1437,7 +1436,7 @@ simde_mm512_mask_test_epi3...
dpdk: copy the enable_rxq_int flag from driver to conf The support for interrupt mode is not being respected as it is not copied into the driver conf, which is what is checked when trying to enable it. Type: fix
@@ -305,6 +305,7 @@ dpdk_lib_init (dpdk_main_t * dm) xd->supported_flow_actions = dr->supported_flow_actions; xd->conf.disable_rss = dr->mq_mode_none; xd->conf.disable_rx_scatter = dr->disable_rx_scatter; + xd->conf.enable_rxq_int = dr->enable_rxq_int; if (dr->use_intel_phdr_cksum) dpdk_device_flag_set (xd, DPDK_DEVICE...
remove build test for homebrew
@@ -196,16 +196,6 @@ matrix: - CC=gcc CXX=g++ cmake -DLINALG_VENDOR=LAPACKE -DLAPACKE_DIR=/usr/lib -DUSE_MATLAB=OFF -DUSE_CUDA=ON -DCUDA_TOOLKIT_ROOT_DIR=${CUDA_BASE} .. - make - - env: MACPORTS=0 - os: osx - compiler: gcc-6 - script: - - make test - # make utest - before_install: - - brew update - - brew install fftw ...
[riscv-isa-sim] Change DEFINE_PITYPE define name in disasm
@@ -477,7 +477,7 @@ disassembler_t::disassembler_t(int xlen) #define DEFINE_PSTORE_IRPOST(code) DISASM_INSN(#code, code, 0, {&xrs2, &store_address_irpost}) #define DEFINE_PSTORE_RRPOST(code) DISASM_INSN(#code, code, 0, {&xrs2, &store_address_rrpost}) #define DEFINE_PSTORE_RR(code) DISASM_INSN(#code, code, 0, {&xrs2, &s...
Update lv_kb.c Fixed enum prefix
@@ -129,8 +129,8 @@ lv_obj_t * lv_kb_create(lv_obj_t * par, const lv_obj_t * copy) lv_obj_align(new_kb, NULL, LV_ALIGN_IN_BOTTOM_MID, 0, 0); lv_obj_set_event_cb(new_kb, lv_kb_def_event_cb); - lv_btnm_set_map(new_kb, kb_map[LC_KB_SHIFT_LOWER]); - lv_btnm_set_ctrl_map(new_kb, kb_ctrl[LC_KB_SHIFT_LOWER]); + lv_btnm_set_ma...
Set correct types for array and map in ts loader.
@@ -44,8 +44,8 @@ int ts_loader_impl_initialize_types(loader_impl impl) { TYPE_DOUBLE, "number" }, { TYPE_STRING, "string" }, { TYPE_NULL, "null" }, - { TYPE_MAP, "object" }, - { TYPE_ARRAY, "Array<>" } /* Custom array type for handling all kinds of typed arrays */ + { TYPE_MAP, "Record<any, any>" }, + { TYPE_ARRAY, "a...
lyb parser REFACTOR add lyb_create_term
@@ -898,6 +898,41 @@ lyb_finish_node(struct lyd_lyb_ctx *lybctx, struct lyd_node *parent, uint32_t fl *node = NULL; } +/** + * @brief Create term node and fill it with value. + * + * @param[in] lybctx LYB context. + * @param[in] snode Schema of the term node. + * @param[out] node Created term node. + * @return LY_ERR v...
Do not treat warnings as errors because of RSSwizzle using deprecated APIs
"$(inherited)", ); GCC_SYMBOLS_PRIVATE_EXTERN = NO; - GCC_TREAT_WARNINGS_AS_ERRORS = YES; + GCC_TREAT_WARNINGS_AS_ERRORS = NO; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES; GCC_WARN_ABOUT_MISSING_NEWLINE = YES; ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_C_LANGUAGE_STANDARD = gnu99;...
Add install command for mingw compiler for x86 targets
@@ -79,9 +79,11 @@ DISPLAY=:0.0 ./palette-cycle ### Building & Running on Win32 (WSL + MinGW) -TODO: Investigate why this outputs `cannot create target because another target with the same name already exists` errors. +To build your project for Win32 you'll need `g++-mingw-w64` and `g++-mingw-w64`. -To build your proje...
highlevel: Fix wrong resource management
@@ -264,6 +264,7 @@ static kdb_boolean_t checkSpecificationMountPoint (KeySet * const mountPointsKs, char * description = elektraFormat ("The specification for application '%s' was not properly mounted. This is likely caused by an incomplete installation of the application. Please consult the application's documentatio...
out_file: exit when format is unknown
@@ -126,6 +126,11 @@ static int cb_file_init(struct flb_output_instance *ins, else if (!strcasecmp(tmp, "template")) { ctx->format = FLB_OUT_FILE_FMT_TEMPLATE; } + else { + flb_plg_error(ctx->ins, "unknown format %s. abort.", tmp); + flb_free(ctx); + return -1; + } } tmp = flb_output_get_property("delimiter", ins);
api_helper_macro mp->pid is network endian
@@ -183,7 +183,7 @@ static void vl_api_want_##lca##_t_handler ( \ p = hash_get (vam->lca##_registration_hash, mp->client_index); \ if (p) { \ if (mp->enable_disable) { \ - clib_warning ("pid %d: already enabled...", mp->pid); \ + clib_warning ("pid %d: already enabled...", ntohl(mp->pid)); \ rv = VNET_API_ERROR_INVALID...
VERSION bump to version 2.1.88
@@ -64,7 +64,7 @@ endif() # micro version is changed with a set of small changes or bugfixes anywhere in the project. set(SYSREPO_MAJOR_VERSION 2) set(SYSREPO_MINOR_VERSION 1) -set(SYSREPO_MICRO_VERSION 87) +set(SYSREPO_MICRO_VERSION 88) set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI...
netkvm: avoid rebuilding the driver each time Do not update netkvmmof.h without need, check whether generated header file is different from existing one, only then update it.
mofcomp.exe -B:.\netkvm.bmf ..\Common\netkvm.mof -wmimofck.exe -h..\Common\netkvmmof.h -m -u .\netkvm.bmf +wmimofck.exe -h..\Common\tmpmof.h -m -u .\netkvm.bmf +fc ..\Common\netkvmmof.h ..\Common\tmpmof.h > nul +if not errorlevel 1 goto thesame +echo Updating netkvmmof.h +copy /Y ..\Common\tmpmof.h ..\Common\netkvmmof....
Fix test_ssl_new test failure A couple of fetches of the MD5 and SHA1 digests were not using the libctx in libssl and causing test_ssl_new to fail in travis. This only occurs on builds with SSLv3 enabled (its disabled by default). [extended tests]
static int ssl3_generate_key_block(SSL *s, unsigned char *km, int num) { - EVP_MD *md5; + const EVP_MD *md5 = NULL, *sha1 = NULL; EVP_MD_CTX *m5; EVP_MD_CTX *s1; unsigned char buf[16], smd[SHA_DIGEST_LENGTH]; @@ -29,10 +29,11 @@ static int ssl3_generate_key_block(SSL *s, unsigned char *km, int num) c = os_toascii[c]; /...
VERSION bump to version 1.4.53
@@ -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 52) +set(SYSREPO_MICRO_VERSION 53) set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI...
bpflist: use smarter print format BPF object type can be wider than 8 characters, e.g., for the "raw-tracepoint" type. Compute the printing format automatically based on the maximum length of BPF objects to be listed.
@@ -76,7 +76,12 @@ for pdir in os.listdir('/proc'): find_bpf_fds(int(pdir)) except OSError: continue -print("%-6s %-16s %-8s %s" % ("PID", "COMM", "TYPE", "COUNT")) -for (pid, typ), count in sorted(counts.items(), key=lambda t: t[0][0]): + +items = counts.items() +max_type_len = items and max(list(map(lambda t: len(t[0...
Hyundai safety: 593 also needs ot be modified
@@ -4,7 +4,7 @@ int hyundai_giraffe_switch_1 = 0; // is giraffe switch 1 high? static void hyundai_rx_hook(CAN_FIFOMailBox_TypeDef *to_push) { int bus = (to_push->RDTR >> 4) & 0xF; - // 832 is lkas cmd. If it is on bus 0, then giraffe switch 1 is high + // 832 is lkas cmd. If it is on bus 0, then giraffe switch 1 is hi...
filter_kubernetes: force 'double' type for time check
@@ -131,7 +131,7 @@ static int merge_log_handler(msgpack_object o, ret = flb_parser_do(parser, ctx->unesc_buf, ctx->unesc_buf_len, out_buf, out_size, log_time); if (ret >= 0) { - if (flb_time_to_double(log_time) == 0) { + if (flb_time_to_double(log_time) == 0.0) { flb_time_get(log_time); } return MERGE_PARSED; @@ -142,...
Mazda: CAN ignition
@@ -193,23 +193,30 @@ void ignition_can_hook(CAN_FIFOMailBox_TypeDef *to_push) { ignition_can_cnt = 0U; // reset counter if (bus == 0) { + // GM exception // TODO: verify on all supported GM models that we can reliably detect ignition using only this signal, // since the 0x1F1 signal can briefly go low immediately afte...
[core] clear etag in stat_cache_get_entry_open() clear etag in stat_cache_get_entry_open() after opening file (in case a different caller used stat_get_get_entry() and then file changed before being opened)
@@ -1382,8 +1382,10 @@ stat_cache_entry * stat_cache_get_entry_open(const buffer * const name, const in stat_cache_entry * const sce = stat_cache_get_entry(name); if (NULL == sce) return NULL; if (sce->fd >= 0) return sce; - if (sce->st.st_size > 0) + if (sce->st.st_size > 0) { sce->fd = stat_cache_open_rdonly_fstat(na...
comment unused AGENTSERVER_* variables
@@ -21,8 +21,8 @@ export DESKTOP_APPLICATION_PATH = $(BASEDIR)/usr/share/applications export XSESSION_PATH = $(BASEDIR)/etc/X11 export PROMPT_MAN_PATH = $(BASEDIR)/usr/share/man export PROMPT_BIN_PATH = $(BASEDIR)/usr -export AGENTSERVER_BIN_PATH = $(BASEDIR)/usr -export AGENTSERVER_MAN_PATH = $(BASEDIR)/usr/share/man ...
MIPS:fix the RT_EXCEPTION_MAX value from <see mips run> know that cp0_cause's ExcCode have 5 bit filed and the max exception is 32.
@@ -74,7 +74,7 @@ void rt_hw_interrupt_enable(rt_base_t level) /** * exception handle table */ -#define RT_EXCEPTION_MAX 31 +#define RT_EXCEPTION_MAX 32 exception_func_t sys_exception_handlers[RT_EXCEPTION_MAX]; /**
ExtendedTools: Add support for exporting firewall tab
@@ -201,7 +201,12 @@ BOOLEAN FwTabPageCallback( break; case MainTabPageExportContent: { - NOTHING; + PPH_MAIN_TAB_PAGE_EXPORT_CONTENT exportContent = Parameter1; + + if (!(EtFwEnabled && exportContent)) + return FALSE; + + EtFwWriteFwList(exportContent->FileStream, exportContent->Mode); } return TRUE; case MainTabPageF...
tcp: fix the condition of advertising the receive window.
@@ -753,7 +753,8 @@ static ssize_t tcp_read_wait(tcpconn_t *c, size_t len, } c->pcb.rcv_wnd += readlen; - if (c->pcb.rcv_wnd >= c->tx_last_win + c->winmax / 4) + if (c->pcb.rcv_nxt + c->pcb.rcv_wnd >= + c->tx_last_ack + c->tx_last_win + c->winmax / 4) do_ack = true; spin_unlock_np(&c->lock);
disable (and clear) unexpected interrupts
@@ -247,6 +247,10 @@ static void ICACHE_RAM_ATTR platform_gpio_intr_dispatcher (void *dummy){ } // We re-enable the interrupt when we execute the callback (if level) } + } else { + // this is an unexpected interrupt so shut it off for now + gpio_pin_intr_state_set(GPIO_ID_PIN(j), GPIO_PIN_INTR_DISABLE); + GPIO_REG_WRIT...
VERSION bump to version 0.11.9
@@ -32,7 +32,7 @@ set(CMAKE_C_FLAGS_DEBUG "-g -O0") # set version set(LIBNETCONF2_MAJOR_VERSION 0) set(LIBNETCONF2_MINOR_VERSION 11) -set(LIBNETCONF2_MICRO_VERSION 8) +set(LIBNETCONF2_MICRO_VERSION 9) set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION}.${LIBNETCONF2_MICRO_VERSION}) set(LIB...
increase default arena reset delay (behaves better on 36+ core systems)
@@ -81,7 +81,7 @@ static mi_option_desc_t options[_mi_option_last] = #endif { 1, UNINIT, MI_OPTION(allow_decommit) }, // decommit pages when not eager committed { 250, UNINIT, MI_OPTION(reset_delay) }, // reset delay in milli-seconds - { 250, UNINIT, MI_OPTION(arena_reset_delay) }, // reset delay in milli-seconds + { 5...
Split hb-glib from harfbuzz.
@@ -25,6 +25,7 @@ ALLOW yandex_io -> contrib/restricted/alsa-lib ALLOW yandex_io -> contrib/restricted/avahi # GLib is LGPL +ALLOW contrib/libs/harfbuzz/glib -> contrib/restricted/glib ALLOW yandex_io -> contrib/restricted/glib # GStreamer is LGPL
REST Frontend: Fix warning about unused variable
module.exports = function ($rootScope, $scope, Logger, $state, $anchorScroll, webStructure, config) { - var vm = this; $scope.$rootScope = $rootScope; $scope.$state = $state; @@ -18,6 +17,7 @@ module.exports = function ($rootScope, $scope, Logger, $state, $anchorScroll, we $scope.builddate.pretty = $scope.builddate.dat...
Print specs correctly again in SAW proof
@@ -51,8 +51,8 @@ let json_string key_size msg_size function }; let print_json fn cfg t key_size msg_size ov = do { - let solvers = (); // llvm_spec_solvers hash_init_ov; // TODO - let complexity = (); // llvm_spec_size hash_init_ov; // TODO + let solvers = crucible_spec_solvers ov; + let complexity = crucible_spec_siz...
PSA AEAD: test long plaintext lengths for psa_set_lengths
@@ -4895,7 +4895,7 @@ void aead_multipart_state_test( int key_type_arg, data_t *key_data, psa_aead_abort( &operation ); - /* Test for setting nonce after calling set lengths with UINT32_MAX length */ + /* Test for setting nonce after calling set lengths with UINT32_MAX ad_data length */ PSA_ASSERT( psa_aead_encrypt_set...
sse2: fix native implementations of _mm_{l,m}fence These would previously lead to an infinite recursion due to an impressively stupid programmer error.
@@ -3331,7 +3331,7 @@ SIMDE__FUNCTION_ATTRIBUTES void simde_mm_lfence (void) { #if defined(SIMDE_SSE2_NATIVE) - simde_mm_lfence(); + _mm_lfence(); #else simde_mm_sfence(); #endif @@ -3341,7 +3341,7 @@ SIMDE__FUNCTION_ATTRIBUTES void simde_mm_mfence (void) { #if defined(SIMDE_SSE2_NATIVE) - simde_mm_mfence(); + _mm_mfen...
Remove quotes from .gitattributes
site-packages/* linguist-vendored linguist-generated -"Pyto[[:space:]]Mac/PyObjC/*" linguist-vendored linguist-generated -"Pyto[[:space:]]Mac/pip/*" linguist-vendored linguist-generated +Pyto[[:space:]]Mac/PyObjC/* linguist-vendored linguist-generated +Pyto[[:space:]]Mac/pip/* linguist-vendored linguist-generated libpn...
Make sure wires are consistent wrt including our.
++ wrap-note |= [wir=wire not=note:able] ^- move - [[/jael/eth-logic ~ ~] %pass wir not] + [[/jael/eth-logic ~ ~] %pass (weld /(scot %p our) wir) not] :: ++ rpc-hiss |= [wir=wire jon=json] ::TODO maybe also put a %rest for the old timer, just in case? :: but I think the check in take-filter-result suffices. %- put-move...
result vizualization example: update the example to also be able to parse RPL Lite output
@@ -131,6 +131,12 @@ def extract_ipaddr(s): return None return s +# (NULL IP addr) -> fe80::244:44:44:44 +def extract_ipaddr_pair(fields): + s = " ".join(fields) + fields = s.split(" -> ") + return extract_ipaddr(fields[0]), extract_ipaddr(fields[1]) + def addr_to_id(addr): return int(addr.split(":")[-1], 16) @@ -199,6...
[catboost] bugfix for typeof
@@ -2301,7 +2301,7 @@ class CatBoost(_CatBoostBase): else: if data is not None and not isinstance(data, Pool): - raise CatBoostError("Invalid data type={}, must be catboost.Pool.".format(typeof(data))) + raise CatBoostError("Invalid data type={}, must be catboost.Pool.".format(_typeof(data))) need_meta_info = type == E...
hardware: Don't create scheduling dependency on the unused second register of unary op
@@ -135,6 +135,7 @@ module instruction_decode_stage( logic is_breakpoint; logic raise_interrupt; thread_bitmap_t masked_interrupt_flags; + logic is_unary_arith; // I originally tried to structure the instruction set so that this could // determine the format of the instruction from the first 7 bits. Those @@ -259,8 +26...
don't use libcjson on default if available due to bug in debian package
@@ -52,7 +52,8 @@ PUBCLIENTSCONFIG = pubclients.config TESTSRCDIR = test/src TESTBINDIR = test/bin -USE_CJSON_SO ?= $(shell /sbin/ldconfig -N -v $(sed 's/:/ /g' <<< $LD_LIBRARY_PATH) 2>/dev/null | grep -i libcjson >/dev/null && echo 1 || echo 0) +# USE_CJSON_SO ?= $(shell /sbin/ldconfig -N -v $(sed 's/:/ /g' <<< $LD_LI...
perf-tools/mpiP: special case impi
Requires: intel-compilers-devel%{PROJ_DELIM} BuildRequires: gnu7-compilers%{PROJ_DELIM} Requires: gnu7-compilers%{PROJ_DELIM} +%if "%{mpi_family}" != "impi" BuildRequires: %{mpi_family}-gnu7%{PROJ_DELIM} Requires: %{mpi_family}-gnu7%{PROJ_DELIM} %endif +%endif # Base package name %define pname mpiP
Fix options window styles
@@ -1750,7 +1750,6 @@ END IDD_OPTIONS DIALOGEX 0, 0, 423, 247 STYLE DS_SETFONT | DS_FIXEDSYS | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME -EXSTYLE WS_EX_APPWINDOW CAPTION "Options" FONT 8, "MS Shell Dlg", 400, 0, 0x1 BEGIN
Fix Math.Round
NANOCLR_HEADER(); double d = stack.Arg0().NumericByRefConst().r8; + double hi = d + 0.5; + double res = floor( hi ); - double res = round(d); + //If the number was in the middle of two integers, we need to round to the even one. + if(res==hi) + { + if(fmod( res, 2.0 ) != 0) + { + //Rounding up made the number odd so we...
ExtendedTools: Fix text position
@@ -312,13 +312,13 @@ BEGIN LTEXT "Receives",IDC_STATIC,132,11,30,8 LTEXT "Receive bytes",IDC_STATIC,132,23,46,8 LTEXT "Receive bytes delta",IDC_STATIC,132,34,65,8 - LTEXT "Sends",IDC_STATIC,132,46,20,8 + LTEXT "Sends",IDC_STATIC,132,45,20,8 LTEXT "Send bytes",IDC_STATIC,132,56,37,8 LTEXT "Send bytes delta",IDC_STATIC,...
spwaterfall: adding gnuplot tests
@@ -115,7 +115,12 @@ void autotest_spwaterfallcf_noise_1200() { testbench_spwaterfallcf_noise(1200, 3 void autotest_spwaterfall_operation() { // create default object - spwaterfallcf q = spwaterfallcf_create_default(1200, 800); + spwaterfallcf q = spwaterfallcf_create(1200, LIQUID_WINDOW_HAMMING, 800, 10, 960); + spwat...
ASE: Updated ASE UserGuide.
@@ -292,7 +292,7 @@ ASE supplies a Generate ASE Environment helper script that does a brute-force ch * **Mandatory Option**: The script requires a directory path to RTL AFU. * **Optional -t**: By default the tool option selected is ```VCS```. If Mentor\* tools are used, supply the ```QUESTA``` option. -* **Optional -p*...
[mempool] fix parallel statedb fetch account state from statedb which is owned by mempool reuse statedb by setting root instead of opening new one
@@ -239,10 +239,16 @@ func (mp *MemPool) setStateDB(block *types.Block) { mp.bestBlockID = newBlockID stateRoot := block.GetHeader().GetBlocksRootHash() + if mp.stateDB == nil { mp.stateDB = mp.sdb.OpenNewStateDB(stateRoot) mp.Debug().Str("Hash", newBlockID.String()). Str("StateRoot", types.ToHashID(stateRoot).String()...
[kernel] Add matrix multiplication unrolled in 2D
@@ -106,6 +106,44 @@ void mat_mul_unrolled_parallel(int32_t const *__restrict__ A, } } +void mat_mul_unrolled2_parallel(int32_t const *__restrict__ A, + int32_t const *__restrict__ B, + int32_t *__restrict__ C, uint32_t M, uint32_t N, + uint32_t P, uint32_t id, uint32_t numThreads) { + // Parallelize by assigning each ...
IAS guard against ResourceItem nullptr
@@ -492,7 +492,7 @@ void DeRestPluginPrivate::checkIasEnrollmentStatus(Sensor *sensor) DBG_Printf(DBG_INFO_L2, "[IAS ZONE] - 0x%016llX Sensor config pending value: %d\n", sensor->address().ext(), item->toNumber()); } - if (iasZoneStatus.u8 == 1 && iasCieAddress.u64 != 0 && iasCieAddress.u64 != 0xFFFFFFFFFFFFFFFF) + if ...
Modified test_EarthClimate.py to try to figure out why it's not running on Travis CI.
@@ -12,6 +12,9 @@ def test_EarthClimate(): # Run vplanet subprocess.run(['vplanet', 'vpl.in', '-q'], cwd=cwd) + files = os.listdir(cwd) + print (files) + # Grab the output output = GetOutput(path=cwd)
doc:udpate using_partition_mode_on_nuc nuc7i7bnh to nuc7i7dnb
@@ -132,7 +132,7 @@ Update ACRN hypervisor Image .. note:: Double check PCI devices BDF defined in the - ``hypervisor/arch/x86/configs/nuc7i7bnh/pci_devices.h`` + ``hypervisor/arch/x86/configs/nuc7i7dnb/pci_devices.h`` with the information reported by the ``lspci -vv`` command. #. Clone the ACRN source code and configu...
SSL_read & ssl_read_hook should be using the returned len value and not the buffer size. The HTTP2 work had this change in place, a copy/paste in ssl ID mapping broke that. Putting it back.
@@ -1047,7 +1047,7 @@ ssl_read_hook(SSL *ssl, void *buf, int num) int fd = -1; if (SYMBOL_LOADED(SSL_get_fd)) fd = g_fn.SSL_get_fd(ssl); if ((fd == -1) && (g_ssl_fd != -1)) fd = g_ssl_fd; - doProtocol((uint64_t)ssl, fd, buf, (size_t)num, TLSRX, BUF); + doProtocol((uint64_t)ssl, fd, buf, (size_t)rc, TLSRX, BUF); } retur...
Completions: Add storage suggestion for `editor`
@@ -123,6 +123,16 @@ function __fish_kdb_subcommand_convert_needs_storage_plugin -d 'Check if the sub and not __input_includes (__fish_kdb_print_storage_plugins) 2 end +function __fish_kdb_subcommand_editor_needs_storage_plugin -d 'Check if the subcommand editor needs a storage plugin completion' + set -l subcommand (_...
STAK hashrate fix
@@ -347,7 +347,7 @@ namespace MiningCore.Blockchain.Bitcoin var result = Math.Ceiling(shares * multiplier / interval); // OW: tmp hotfix - if (poolConfig.Coin.Type == CoinType.MONA || poolConfig.Coin.Type == CoinType.VTC) + if (poolConfig.Coin.Type == CoinType.MONA || poolConfig.Coin.Type == CoinType.VTC || poolConfig....
Documentation: Wrap namespace in code delimiters
@@ -44,7 +44,7 @@ that is the place where you usually want to set metadata. - `/sw/elektra/kdb/#0/current/namespace`: Specifies which default namespace should be used when setting a cascading name. - By default the namespace is user, except `kdb` is used as root, then `system` + By default the namespace is `user`, exce...
Docs - update diskquota example version to latest 2.0.1
@@ -193,7 +193,7 @@ SELECT diskquota.status(); ------------------------+--------- soft limits | on hard limits | on - current binary version | 2.0.0 + current binary version | 2.0.1 current schema version | 2.0 ```
fix ngtcp2_htons for windows
@@ -101,7 +101,7 @@ STIN uint32_t ngtcp2_htonl(uint32_t hostlong) { STIN uint16_t ngtcp2_htons(uint16_t hostshort) { uint16_t res; unsigned char *p = (unsigned char *)&res; - *p++ = (unsigned char)hostshort >> 8; + *p++ = (unsigned char)(hostshort >> 8); *p = hostshort & 0xffu; return res; }
include/battery_fuel_gauge.h: Format with clang-format BRANCH=none TEST=none
@@ -67,7 +67,6 @@ struct board_batt_params { extern const struct board_batt_params board_battery_info[]; extern const enum battery_type DEFAULT_BATTERY_TYPE; - #ifdef CONFIG_BATTERY_MEASURE_IMBALANCE /** * Report the absolute difference between the highest and lowest cell voltage in
Allow long FE messages in msg validation
@@ -188,8 +188,9 @@ od_read_startup(od_io_t *io, uint32_t time_ms) * than a couple of kilobytes). */ #define VALID_LONG_MESSAGE_TYPE(id) \ - ((id) == 'T' || (id) == 'D' || (id) == 'd' || (id) == 'V' || \ -(id) == 'E' || (id) == 'N' || (id) == 'A') + ((id) == 'T' || (id) == 'D' || (id) == 'd' || (id) == 'V' || /* BE mes...
Use different disassbler() prototype from binutils in case of >= 2.29
@@ -46,6 +46,14 @@ typedef struct { asymbol **syms; } bfd_t; +/* + * This is probably the only define which was added with binutils 2.29, so we us + * it, do decide which disassembler() prototype from dis-asm.h to use + */ +#if defined(FOR_EACH_DISASSEMBLER_OPTION) +#define _HF_BFD_GE_2_29 +#endif + static pthread_mute...
doc: remove extra right angle bracket in PG 14 relnotes Reported-by: Justin Pryzby
@@ -3880,7 +3880,7 @@ Author: Fujii Masao <fujii@postgresql.org> <para> Add row counts for utility commands to - <structname>pg_stat_statements</structname>> (Fujii Masao, Katsuragi + <structname>pg_stat_statements</structname> (Fujii Masao, Katsuragi Yuta, Seino Yuki) </para> </listitem>
remove spurious print statements from DVR tests
@@ -221,12 +221,10 @@ class TestDVR(VppTestCase): for r in routes: if (inet_pton(AF_INET, ip_tag_bridged) == r.address): - print r self.assertEqual(r.path[0].sw_if_index, sub_if_on_pg3.sw_if_index) self.assertEqual(r.path[0].is_dvr, 1) if (inet_pton(AF_INET, ip_non_tag_bridged) == r.address): - print r self.assertEqual...
drum: load %settings-store on boot and migrate
%metadata-push-hook %metadata-pull-hook %group-view + %settings-store == :: ++ deft-fish :: default connects =? ..on-load (lte hood-version %12) => (se-born | %home %contact-push-hook) => (se-born | %home %contact-pull-hook) + => (se-born | %home %settings-store) (se-born | %home %group-view) ..on-load ::
Add PKCS#1 1.15 config option
@@ -31,6 +31,9 @@ syscfg.defs: BOOTUTIL_SIGN_RSA: description: 'Images are signed using RSA2048.' value: 0 + BOOTUTIL_RSA_PKCS1_15: + description: 'Sign using old PKCS#1 1.5 (otherwise uses PSS)' + value: 0 BOOTUTIL_SIGN_EC: description: 'Images are signed using ECDSA NIST P-224.' value: 0
openocd: Allow non ARM download and debug RISC-V does not allow 'reset halt'. New CFG_RESET variable is set to 'reset halt' for ARM compatibility. Value will be set to something else for RISC-V. New variable GDB allows to run non ARM gdb. Default value still points to arm-non-eabi-gdb.
# . $CORE_PATH/hw/scripts/common.sh +CFG_RESET="reset halt" +GDB=arm-none-eabi-gdb + # # FILE_NAME must contain the name of the file to load # FLASH_OFFSET must contain the offset in flash where to place it @@ -26,7 +29,7 @@ openocd_load () { echo "$EXTRA_JTAG_CMD" > $OCD_CMD_FILE echo "init" >> $OCD_CMD_FILE - echo "r...
CI: use different cabal versions
@@ -9,18 +9,23 @@ on: jobs: build: - name: ghc ${{ matrix.ghc }} + name: ghc ${{ matrix.versions.ghc }} runs-on: ubuntu-16.04 strategy: matrix: - cabal: ["2.4"] - ghc: - - "8.0.2" - - "8.2.2" - - "8.4.4" - - "8.6.5" - - "8.8.3" - - "8.10.1" + versions: + - ghc: '8.0.2' + cabal: '2.4' + - ghc: '8.2.2' + cabal: '2.4' + -...
correct an oversight in ++nest:ut (mismatch with jet)
{$cell *} | {$core *} dext(ref repo(sut ref)) {$face *} dext(ref q.ref) - {$fork *} (levy ~(tap in p.ref) |=(span sint(ref +<))) + {$fork *} (levy ~(tap in p.ref) |=(span dext(ref +<))) {$hold *} ?: (~(has in reg) ref) & ?: (~(has in gil) [sut ref]) & %= dext
Do not install gpMgmt/bin/README files These files used to be installed to ${prefix}/bin/ directory, but as they are not user documents we should not install them.
@@ -128,6 +128,7 @@ install: generate_greenplum_path_file rm -rf $(DESTDIR)$(prefix)/bin/src rm -rf $(DESTDIR)$(prefix)/bin/gppylib rm -rf $(DESTDIR)$(prefix)/bin/gpload_test + rm -rf $(DESTDIR)$(prefix)/bin/README* find $(DESTDIR)$(prefix)/lib/python/gppylib -name test -type d | xargs rm -rf clean distclean:
Add another Action code for hls_intersect
@@ -262,7 +262,8 @@ static void snap_decode(uint64_t reg, uint32_t level) case 0x10141002: VERBOSE1("HLS Hash Join\n"); break; case 0x10141003: VERBOSE1("HLS Text Search\n"); break; case 0x10141004: VERBOSE1("HLS Breadth first search (BFS)\n"); break; - case 0x10141005: VERBOSE1("HLS Intersect\n"); break; + case 0x1014...
Fix incorrect maximum uniform buffers value.
@@ -1206,7 +1206,7 @@ typedef struct SceGxmPrecomputedDraw { #define SCE_GXM_MAX_VERTEX_ATTRIBUTES 16 #define SCE_GXM_MAX_VERTEX_STREAMS 16 #define SCE_GXM_MAX_TEXTURE_UNITS 16 -#define SCE_GXM_MAX_UNIFORM_BUFFERS 8 +#define SCE_GXM_MAX_UNIFORM_BUFFERS 14 #define SCE_GXM_MAX_AUXILIARY_SURFACES 3 #define SCE_GXM_TILE_SH...