message
stringlengths
6
474
diff
stringlengths
8
5.22k
make: Don't use install -D. Added -p option to install
@@ -34,12 +34,6 @@ else CFLAGS = -O2 -DNDEBUG endif -ifeq ($(shell uname),Darwin) - INSTALLCMD = install -else - INSTALLCMD = install -D -endif - # Compliation options for various architectures TARGET_FAMILY = $(firstword $(subst -, ,$(TARGET)-)) include Makefile.$(TARGET_FAMILY) @@ -124,7 +118,8 @@ endif install-heade...
play / pause / resume command are now exclusive (cannot be pending at same time)
@@ -122,8 +122,8 @@ void XGM_startPlay(const u8 *song) // point to Z80 command pb = (u8 *) Z80_DRV_COMMAND; - // set play XGM command - *pb |= (1 << 6); + // set play XGM command (clear pause/resume if any) + *pb = (*pb & 0x0F) | (1 << 6); // clear pending frame setNextXFrame(0, TRUE); @@ -164,8 +164,8 @@ void XGM_stop...
output on screen
@@ -194,11 +194,15 @@ namespace "config" do end def exec_ssh_command(session, cmd) + f = File.open(File.join($app_path, "logcat.txt"), "w") do |file| puts "ssh command: #{cmd}" - result = session.exec!(cmd) - - f = File.open(File.join($app_path, "logcat.txt"), "w") {|file| file << result } - f.close + result = session....
Fix horizontal scroll on sprite tile palette
@@ -166,15 +166,22 @@ const SpriteTilePalette = ({ id }: SpriteTilePaletteProps) => { bottom: 0, overflowX: "auto", overflowY: "scroll", + minWidth: 0, }} > <div style={{ display: "flex", width: "100%", - justifyContent: "center", + minHeight: "100%", alignItems: "center", - marginTop: 10, + justifyContent: "center", +...
Run Latency RPS for Longer
{ "Name": "ConnectionCount", "Local": { - "1": "-conns:1 -requests:1", + "1": "-conns:1 -requests:1 -runtime:30000", "40": "-conns:40 -requests:20", "250": "-conns:250 -requests:7500" },
Accomodate linux warning.
@@ -1086,6 +1086,10 @@ int picoquic_retransmit_needed(picoquic_cnx_t* cnx, &do_not_detect_spurious, &length); + if (ret != 0) { + DBG_PRINTF("Copy before retransmit returns %d\n", ret); + } + /* Update the number of bytes in transit and remove old packet from queue */ /* If not pure ack, the packet will be placed in th...
Copy sendto address for modification and remove unnecessary user memory validate
@@ -290,8 +290,10 @@ closure_function(8, 1, sysreturn, unixsock_write_bh, rv = -EINVAL; goto out; } - addr->sun_path[sizeof(addr->sun_path)-1] = 0; - rv = lookup_socket(&dest, addr->sun_path); + struct sockaddr_un daddr; + runtime_memcpy(&daddr, addr, sizeof(daddr)); + daddr.sun_path[sizeof(daddr.sun_path)-1] = 0; + rv...
esp_netif: Support IPv6 autoconfig is enabled in menuconfig
@@ -758,6 +758,9 @@ static esp_err_t esp_netif_start_api(esp_netif_api_msg_t *msg) ESP_ERROR_CHECK(esp_netif_lwip_add(esp_netif)); +#if ESP_IPV6_AUTOCONFIG + esp_netif->lwip_netif->ip6_autoconfig_enabled = 1; +#endif if (esp_netif->flags&ESP_NETIF_FLAG_GARP) { #if ESP_GRATUITOUS_ARP netif_set_garp_flag(esp_netif->lwip_...
Adding _get_tags method and base set of tags to allow for compatibility with sklearn 0.22+
+ import sys from copy import deepcopy from six import iteritems, string_types, integer_types @@ -84,6 +85,21 @@ FeaturesData = _catboost.FeaturesData _have_equal_features = _catboost._have_equal_features SPARSE_MATRIX_TYPES = _catboost.SPARSE_MATRIX_TYPES +_CATBOOST_SKLEARN_COMPAT_TAGS = { + 'non_deterministic': False...
Mention required target in README
This template currently produces unoptimised builds. This is required due to TIC-80's memory layout placing data at the address 0, which Rust does not understand. If you aren't using direct framebuffer access, you should be able to use another level by changing the `Cargo.toml`. -This is a Rust / TIC-80 starter templat...
mimxrt: revert changes to custom validate_bin_nvic()
#include "swd_host.h" #include "info.h" -#include "target_config.h" #include "target_family.h" #include "cmsis_os2.h" @@ -49,14 +48,10 @@ static void prerun_target_config(void) #ifdef DAPLINK_MIMXRT_TARGET static uint8_t validate_bin_nvic(const uint8_t *buf) { - if(buf[0] == 'F' && buf[1] == 'C' && buf[2] == 'F' && buf...
Make PEM_X509_INFO_read_bio_ex() conservative on the error queue
@@ -48,9 +48,9 @@ STACK_OF(X509_INFO) *PEM_X509_INFO_read(FILE *fp, STACK_OF(X509_INFO) *sk, } #endif -STACK_OF(X509_INFO) -*PEM_X509_INFO_read_bio_ex(BIO *bp, STACK_OF(X509_INFO) *sk, - pem_password_cb *cb, void *u, OSSL_LIB_CTX *libctx, +STACK_OF(X509_INFO) *PEM_X509_INFO_read_bio_ex(BIO *bp, STACK_OF(X509_INFO) *sk,...
Run Luacheck in Travis
@@ -57,10 +57,12 @@ before_install: install: - luarocks install busted + - luarocks install luacheck - luarocks make # This installs necessary runtime dependencies script: - busted -o gtest -v spec/ + - luacheck ./pallene ./spec notifications: email:
BugID:22060807:Fix dump issue for 8266 reboot 1. hang at disconnect wifi lib from vendor esp8266
@@ -40,10 +40,19 @@ void hal_reboot(void) int hal_reboot_bank(void) { printf("reboot to banker\n"); - wifi_set_sleep_type(NONE_SLEEP_T); - aos_msleep(300); + vPortETSIntrLock(); + krhino_sched_disable(); + delay(); + delay(); + rom_i2c_writeReg(0x67, 4, 1, 8); + rom_i2c_writeReg(0x67, 4, 2, 0x81); + wifi_station_stop()...
[kernel] correct bug in initialization
@@ -472,14 +472,23 @@ void NewMarkAlphaOSI::fillDSLinks(Interaction &inter, assert(ds1); assert(ds2); + VectorOfBlockVectors& DSlink = inter.linkToDSVariables(); + interProp.workVectors.reset(new VectorOfVectors); + interProp.workMatrices.reset(new VectorOfSMatrices); + + VectorOfVectors& workV = *interProp.workVectors...
efuse: change prints to ESP_EARLY_LOG for function called from startup code
@@ -55,7 +55,7 @@ esp_err_t esp_efuse_utility_process(const esp_efuse_desc_t* field[], void* ptr, int i = 0; while (err == ESP_OK && req_size > bits_counter && field[i] != NULL) { if (check_range_of_bits(field[i]->efuse_block, field[i]->bit_start, field[i]->bit_count) == false) { - ESP_LOGE(TAG, "Range of data does not...
arvo: require both hoon and arvo in initial larval filesystem
:: =? taf =(~ dir.taf) :: XX TMI ~| %larval-need-kernel - ?> ?=(^ tub) + ?> &(?=(^ tub) ?=(^ hun.p.u.tub)) (~(gas de taf) q.u.tub) :: =^ job taf [p q]:(~(adorn adapt:part taf) del |)
libhfcommon/util: SIGRT(MIN|MAX) is not defined under openbsd
@@ -769,6 +769,12 @@ static const struct { #if defined(SIGSYS) {SIGSYS, "SIGSYS"}, #endif +#if defined(SIGTHR) + {SIGTHR, "SIGTHR"}, +#endif +#if defined(SIGEMT) + {SIGEMT, "SIGEMT"}, +#endif }; const char* util_sigName(int signo) { @@ -778,10 +784,12 @@ const char* util_sigName(int signo) { return sigNames[i].signame;...
lib/utils: Lock the scheduler when executing hard callback functions. Otherwise scheduled functions may execute during the hard callback and then fail if they try to allocate heap memory.
@@ -62,8 +62,10 @@ mp_irq_obj_t *mp_irq_new(const mp_irq_methods_t *methods, mp_obj_t parent) { void mp_irq_handler(mp_irq_obj_t *self) { if (self->handler != mp_const_none) { if (self->ishard) { - // When executing code within a handler we must lock the GC to prevent - // any memory allocations. + // When executing co...
Fixed typo in rgba in OpacityMap
@@ -620,7 +620,7 @@ avtOpacityMap::AddRange(double lo, double hi, RGBA &rgba) { table[i].R = rgba.R; table[i].G = rgba.G; - table[i].B = rgba.G; + table[i].B = rgba.B; table[i].A = rgba.A; } }
out_bigquery: register upstream with instance
@@ -311,6 +311,7 @@ static int cb_bigquery_init(struct flb_output_instance *ins, flb_plg_error(ctx->ins, "upstream creation failed"); return -1; } + flb_output_upstream_set(ctx->u, ins); /* Retrief oauth2 token */ token = get_google_token(ctx);
Add HISTORY section to EVP_KEM-EC document.
@@ -66,6 +66,10 @@ L<EVP_KEYMGMT(3)>, L<EVP_PKEY(3)>, L<provider-keymgmt(7)> +=head1 HISTORY + +This functionality was added in OpenSSL 3.2. + =head1 COPYRIGHT Copyright 2022 The OpenSSL Project Authors. All Rights Reserved.
h2o_socket_ebpf_lookup_flags: do not abort when eBPF map operations fail
@@ -1774,20 +1774,17 @@ uint64_t h2o_socket_ebpf_lookup_flags(h2o_loop_t *loop, int (*init_key)(h2o_ebpf // make sure a possible old flags is not set, // otherwise the subsequent logic will be unreliable. - if (ebpf_map_delete(return_map_fd, &tid) != 0) { - if (errno != ENOENT) { - char buf[128]; - h2o_fatal("BPF_MAP_D...
OpenCoreUefi: Fix debug printing at ReleaseUsbOwnership
@@ -203,7 +203,7 @@ OcReleaseUsbOwnership ( Status = ReleaseUsbOwnership (); - DEBUG ((DEBUG_INFO, "ReleaseUsbOwnership status - %r\n")); + DEBUG ((DEBUG_INFO, "ReleaseUsbOwnership status - %r\n", Status)); } VOID
publish: removed unused hall import statements
:: :: /app/publish.hoon :: -/- hall, *publish +/- *publish /+ *server, *publish :: /= index == :: +$ poke - $% [%hall-action action:hall] - [%publish-action action] + $% [%publish-action action] [%launch-action @tas path @t] == :: +$ diff - $% [%hall-rumor rumor:hall] - [%json json] + $% [%json json] [%publish-collecti...
buffer: do not overrun string buffer
@@ -118,7 +118,7 @@ int chunk_info(char *filename, struct chunk_info *info) info->hash_str[40] = '\0'; len = (p - tmp); - if (len < 1 || len >= sizeof(num)) { + if (len < 1 || len > sizeof(num) - 1) { return -1; } strncpy(num, tmp, len); @@ -143,7 +143,7 @@ int chunk_info(char *filename, struct chunk_info *info) } len ...
forbid creation of TMaybe of non-destructible
@@ -45,6 +45,7 @@ public: static_assert(!std::is_same<std::remove_cv_t<T>, TNothing>::value, "Instantiation of TMaybe with a TNothing type is ill-formed"); static_assert(!std::is_same<std::remove_cv_t<T>, TInPlace>::value, "Instantiation of TMaybe with a TInPlace type is ill-formed"); static_assert(!std::is_reference<T...
Lock ETH to its application path (please complain if it breaks something). Allow ETC to derive on ETH path to recover forked assets
@@ -25,7 +25,7 @@ APP_LOAD_PARAMS= --curve secp256k1 $(COMMON_LOAD_PARAMS) APPVERSION_M=1 APPVERSION_N=1 -APPVERSION_P=8 +APPVERSION_P=9 APPVERSION=$(APPVERSION_M).$(APPVERSION_N).$(APPVERSION_P) APP_LOAD_FLAGS= --appFlags 0x40 --dep Ethereum:$(APPVERSION) @@ -34,9 +34,8 @@ CHAIN=ethereum endif ifeq ($(CHAIN),ethereum)...
Rename Reset AHRS Button for the last time.
<div class="col-xs-12"> <div class="separator"></div> <div class="col-xs-3"> - <a ng-click="AHRSCage()" class="btn btn-primary" ng-disabled="IsCaging()">Reset<br>AHRS</a> + <a ng-click="AHRSCage()" class="btn btn-primary" ng-disabled="IsCaging()">Reset /<br>Level</a> </div> <div class="col-xs-9"> <div class="row">
nimble/drivers: Fix loop condition in nrf52 driver This condition was suggesting that loop can break while om is NULL but this loop breaks only when copied enough bytes and om is expected to have enough space.
@@ -432,7 +432,7 @@ ble_phy_rxpdu_copy(uint8_t *dptr, struct os_mbuf *rxpdu) om = rxpdu; dst = om->om_data; - while (om) { + while (true) { /* * Always copy blocks of length aligned to word size, only last mbuf * will have remaining non-word size bytes appended.
make test: handle multiple failures in one case
@@ -99,7 +99,10 @@ def run_forked(suite): link_path = '%s%s-FAILED' % (failed_dir, lttd) global_logger.error("Creating a link to the failed " + "test: %s -> %s" % (link_path, lttd)) + try: os.symlink(last_test_temp_dir, link_path) + except: + pass api_post_mortem_path = "/tmp/api_post_mortem.%d" % vpp_pid if os.path.is...
fix saveload
@@ -337,7 +337,7 @@ namespace NKernelHost { { } - Y_SAVELOAD_DEFINE(MaxBins, FeaturesInBlock, Parts, PartIds, Cindex, Indices, Stats, Histograms, TempIndex); + Y_SAVELOAD_DEFINE(Policy, MaxBins, FeaturesInBlock, Parts, PartIds, Cindex, Indices, Stats, Histograms, TempIndex); void Run(const TCudaStream& stream) const { ...
fix: discord_create_message() payload does not need a hard-coded size limit
@@ -298,8 +298,8 @@ discord_create_message( if (params->message_reference) A[4] = (void *)params->message_reference; - char payload[MAX_PAYLOAD_LEN]; - json_inject(payload, sizeof(payload), + char *payload=NULL; + size_t ret = json_ainject(&payload, "(content):s" "(nonce):s" "(tts):b" @@ -319,7 +319,12 @@ discord_creat...
Set axis plane vertical.
@@ -550,3 +550,92 @@ HRESULT openbor_get_axis_plane_vertical_int_property()_int_property(ScriptVarian #undef ARG_HANDLE #undef ARG_INDEX } + +// Caskey, Damon V. +// 2018-05-14 +// +// Mutate an axis property. Requires +// the handle from axis property, property +// name to modify, and the new value. +HRESULT openbor_s...
vom: acl-l3: Fix pretty print for TCP mask and flags
@@ -69,8 +69,8 @@ l3_rule::to_string() const << " srcportto: " << m_srcport_or_icmptype_last << " dstportfrom:" << m_dstport_or_icmpcode_first << " dstportto:" << m_dstport_or_icmpcode_last - << " tcpflagmask:" << m_tcp_flags_mask - << " tcpflagvalue:" << m_tcp_flags_value << "]"; + << " tcpflagmask:" << std::to_string...
Fix RTC year argument for
@@ -136,8 +136,8 @@ mp_obj_t BreakoutRTC_set_time(size_t n_args, const mp_obj_t *pos_args, mp_map_t mp_raise_ValueError("date out of range. Expected 1 to 31"); else if(month < 1 || month > 12) mp_raise_ValueError("month out of range. Expected 1 to 12"); - else if(year < 0 || year > 99) - mp_raise_ValueError("year out o...
c++ SOVERSION bump to version 2.0.0
@@ -7,8 +7,8 @@ project(Sysrepo-cpp) # Version of the library # Major version is changed with every backward non-compatible API/ABI change, minor version changes # with backward compatible change and micro version is connected with any internal change of the library. -set(SYSREPO_CPP_MAJOR_SOVERSION 1) -set(SYSREPO_CPP...
pass NO_AVX512 macro def
@@ -299,6 +299,10 @@ if (NO_AVX2) set(CCOMMON_OPT "${CCOMMON_OPT} -DNO_AVX2") endif () +if (NO_AVX512) + set(CCOMMON_OPT "${CCOMMON_OPT} -DNO_AVX512") +endif () + if (USE_THREAD) # USE_SIMPLE_THREADED_LEVEL3 = 1 # NO_AFFINITY = 1
adjust libpdb patch for 2.26.1
---- tau-2.26.2p1/utils/Makefile 2017-06-10 12:22:06.000000000 -0700 -+++ tau-2.26.2p1.patch/utils/Makefile 2017-07-31 09:57:25.000000000 -0700 +--- tau-2.26.1/utils/Makefile 2016-08-11 08:53:36.000000000 -0700 ++++ tau-2.26.1.patch/utils/Makefile 2017-08-17 10:27:14.000000000 -0700 tau_events.o: tau_events.cpp $(CXX) ...
examples BUGFIX getting changes of a whole module Fixes
@@ -192,7 +192,7 @@ module_change_cb(sr_session_ctx_t *session, const char *module_name, const char if (xpath) { sprintf(path, "%s//.", xpath); } else { - sprintf(path, "%s:*//.", module_name); + sprintf(path, "/%s:*//.", module_name); } rc = sr_get_changes_iter(session, path, &it); if (rc != SR_ERR_OK) {
ec/asm/x25519-x86_64.pl: fix base 2^64 add/sub and final reduction. Base 2^64 addition/subtraction and final reduction failed to treat partially reduced values correctly. Thanks to Wycheproof Project for vectors and Paul Kehrer for report.
@@ -698,12 +698,16 @@ x25519_fe64_add: add %rax,$acc0 adc \$0,$acc1 - mov $acc0,8*0(%rdi) adc \$0,$acc2 mov $acc1,8*1(%rdi) adc \$0,$acc3 mov $acc2,8*2(%rdi) + sbb %rax,%rax # cf -> mask mov $acc3,8*3(%rdi) + and \$38,%rax + + add %rax,$acc0 + mov $acc0,8*0(%rdi) ret .size x25519_fe64_add,.-x25519_fe64_add @@ -727,12 +...
esp_https_server: fix issue with default initialization through `HTTPD_SSL_CONFIG_DEFAULT` Closes Closes
@@ -143,6 +143,7 @@ typedef struct httpd_ssl_config httpd_ssl_config_t; .port_secure = 443, \ .port_insecure = 80, \ .session_tickets = false, \ + .use_secure_element = false, \ .user_cb = NULL, \ }
ini: fix klocwork criticals/errors 121993: Format String Vulnerability 121995: Format String Vulnerability 121992: Improper use of length modifier in a print function call 121994: Improper use of length modifier in a print function call
@@ -179,7 +179,9 @@ Global definitions and typedefs and macros #define NVM_INI_PATH_FILE_LEN 1024 typedef char NVM_INI_ENTRY[NVM_INI_ENTRY_LEN]; // Ini entry string typedef char NVM_INI_FILENAME[NVM_INI_PATH_FILE_LEN]; // Ini entry string +typedef wchar_t NVM_INI_FILENAME_W[NVM_INI_PATH_FILE_LEN]; static NVM_INI_FILENA...
add -r to cp commands in alpine.sh
@@ -66,8 +66,8 @@ cp -r apks $root_dir/media/mmcblk0p1/ for project in led_blinker sdr_receiver_hpsdr sdr_transceiver sdr_transceiver_emb sdr_transceiver_hpsdr sdr_transceiver_wide sdr_transceiver_wspr mcpha vna do mkdir -p $root_dir/media/mmcblk0p1/apps/$project - cp projects/$project/server/* $root_dir/media/mmcblk0p...
net/lwip/ipv6: fix coding rule violation This commit fixes violation of coding rule. The else conditional has no statement. Let's remove it. os/net/lwip/src/core/ipv6/nd6.c:2245: ERROR: [BRC_M_SMT] else should follow close brace '}'
@@ -2242,9 +2242,6 @@ static s8_t nd6_get_next_hop_entry(const ip6_addr_t *ip6addr, struct netif *neti LWIP_DEBUGF(ND6_DEBUG, ("Failed to find router, need to NUD\n")); } } - else { - - } } else { /* Not found. Create a new destination entry. */ i = nd6_new_destination_cache_entry();
refactor(discord-voice-connections.c): harmless imprecision in this situation as we won't be dealing with large decimals, no need for fmin()
@@ -88,15 +88,16 @@ send_identify(struct discord_voice *vc) static void on_hello(struct discord_voice *vc) { - float hbeat_interval = 0.0; + float hbeat_interval = 0.0f; vc->hbeat.tstamp = cee_timestamp_ms(); json_extract(vc->payload.event_data.start, vc->payload.event_data.size, "(heartbeat_interval):f", &hbeat_interv...
dice: remove extra p
:: %+ ~(put by sponsors) u.to ?~ receiver=(~(get by sponsors) u.to) - :- *(set @pp) - (~(put in *(set @pp)) ship) + :- *(set @p) + (~(put in *(set @p)) ship) :- residents.u.receiver (~(put in requests.u.receiver) ship) ::
Add holding of multiple locks to test
#include <stdint.h> #include <errno.h> -pthread_mutex_t mut; +pthread_mutex_t mut, mut2; uint32_t val; #define INCS 1000 #define BADLUCK 765 #define MAX_THREADS 4 -void * -worker(void *v) +static void +acquire_mutex(pthread_mutex_t *m) { - int myincs = 0; - int done = 0; - int err; - unsigned int seed = time(NULL); - v...
docs: update for xcat recipe -> Rocky image
@@ -138,7 +138,7 @@ distributions. To enable additional repositories for local use, issue the follow \input{common/xcat_setup} \subsection{Define {\em compute} image for provisioning} -\input{common/xcat_init_os_images_centos} +\input{common/xcat_init_os_images_rocky} \input{common/xcat_mkchroot_centos} \vspace*{0.2cm}...
volteer: Enable Thunderbolt-compatible mode BRANCH=none TEST=Both EC & Kernel can enter to TBT3 mode
#define CONFIG_USBC_VCONN #define CONFIG_USBC_VCONN_SWAP +/* Enabling SOP* communication */ +#define CONFIG_CMD_USB_PD_CABLE +#define CONFIG_USB_PD_DECODE_SOP + +/* Enabling Thunderbolt-compatible mode */ +#define CONFIG_USB_PD_TBT_COMPAT_MODE + /* TODO: b/144165680 - measure and check these values on Volteer */ #defin...
[RPC] Fix invalid memory allocation
@@ -121,11 +121,13 @@ func (rpc *AergoRPCService) ListBlockMetadata(ctx context.Context, in *types.Lis if err != nil { return nil, err } - metas := make([]*types.BlockMetadata, len(blocks)) - for i, block := range blocks { - metas[i].Hash = block.BlockHash() - metas[i].Header = block.GetHeader() - metas[i].Txcount = in...
[github][action][irc] tweak the bot name
@@ -10,7 +10,7 @@ jobs: if: github.event_name == 'push' with: channel: "#lk" - nickname: my-github-notifier + nickname: lk-github message: | ${{ github.actor }} pushed ${{ github.event.ref }} ${{ github.event.compare }} ${{ join(github.event.commits.*.message) }} @@ -19,7 +19,7 @@ jobs: if: github.event_name == 'pull_r...
fix key(joypad) input 3
@@ -816,7 +816,6 @@ struct retro_core_option_definition option_defs_us[] = { {"Keypad", NULL}, {"Manual Keyboard", NULL}, {"Atari Joypad", NULL}, - {"Manual", NULL}, {NULL, NULL}, }, "OFF" @@ -1638,7 +1637,6 @@ struct retro_core_option_definition option_defs_ja[] = { {"Keypad", NULL}, {"Manual Keyboard", NULL}, {"Atari...
docket: force a |rein %base prior to fixing
/+ *server, agentio, default-agent, multipart, dbug, verb |% +$ card card:agent:gall -+$ state-0 - $: :: local ++$ app-state + $: %2 + :: local charges=(map desk charge) == :: $cache: impermanent state by-base=(map term desk) :: +$ inflated-state - [state-0 cache] + [app-state cache] :: +lac: toggle verbosity ++ lac & ...
Fixing loop declaration bug
@@ -2356,7 +2356,7 @@ static ACVP_RESULT acvp_get_result_test_session(ACVP_CTX *ctx, char *session_url */ results = json_object_get_array(obj, "results"); count = (int)json_array_get_count(results); - for (int i = 0; i < count; i++) { + for (i = 0; i < count; i++) { int diff = 1; current = json_array_get_object(results...
Ignore TokenAppContainerNumber for fulltrust packages
@@ -3485,7 +3485,7 @@ PPH_STRING PhpGetTokenAppContainerFolderPath( } else if (TokenAppContainerSid) { - PPH_STRING appContainerFolderPath = NULL; + PPH_STRING appContainerFolderPath; PWSTR folderPath = NULL; appContainerFolderPath = PhGetKnownFolderPathEx( @@ -3709,6 +3709,8 @@ INT_PTR CALLBACK PhpTokenContainerPagePr...
CRASH: reading very large GRIB1 message. Grow buffer if needed
@@ -268,6 +268,7 @@ static int read_GRIB(reader* r) i++; } /* Read section 2 */ + GROW_BUF_IF_REQUIRED(i+sec2len); if((r->read(r->read_data,tmp+i,sec2len-3,&err) != sec2len-3) || err) return err; i += sec2len-3;
lacp: continuing input packet trace from device driver lacp gets the packet from the device driver. Let's continue the input packet trace's trajectory instead of restarting it in lacp-input. Type: fix
@@ -68,7 +68,6 @@ lacp_node_fn (vlib_main_t * vm, { u32 n_left_from, *from; lacp_input_trace_t *t0; - uword n_trace = vlib_get_trace_count (vm, node); from = vlib_frame_vector_args (frame); /* array of buffer indices */ n_left_from = frame->n_vectors; /* number of buffer indices */ @@ -89,12 +88,10 @@ lacp_node_fn (vli...
error: cleanup
@@ -46,7 +46,6 @@ nbproject/ .idea/**/dictionaries .idea/**/shelf - ## Generated files .idea/**/contentModel.xml @@ -69,5 +68,3 @@ nbproject/ modules.xml .idea/misc.xml *.ipr -**/.vscode/* -c.tmp \ No newline at end of file
Comment cites the string hash algorithm (djb2) "If you just want to have a good hash function, and cannot wait, djb2 is one of the best string hash functions I know."
#include "extern/utf8decoder.h" /* - * Calculate the hash value for a string + * Calculate the hash value for a string. + * Uses the djb2 algorithm (xor version). + * http://www.cse.yorku.ca/~oz/hash.html */ uint32_t calchash(const char *s) {
linux/arch: missing prctl(PR_SET_PDEATHSIG, SIGKILL)
@@ -121,10 +121,15 @@ pid_t arch_fork(honggfuzz_t * hfuzz, fuzzer_t * fuzzer) } pid_t pid = fork(); if (pid == -1) { - PLOG_W("Couldn't fork"); return pid; } if (pid == 0) { + logMutexReset(); + if (prctl + (PR_SET_PDEATHSIG, (unsigned long)SIGKILL, (unsigned long)0, (unsigned long)0, + (unsigned long)0) == -1) { + PLO...
fstest: Fix printf format error
/**************************************************************************** - * testing/fstest/fstest_main.c + * apps/testing/fstest/fstest_main.c * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with @@ -620,7 +620,7 @@ static in...
generate dependencies and clean * gen dependencies Main.o and bootstub.o were missing headers (like recent power_saving.h). Generate them instead to guarantee makefile re-makes if any dependency is modified.
@@ -24,6 +24,11 @@ endif DFU_UTIL = "dfu-util" +DEPDIR = generated_dependencies +$(shell mkdir -p -m 777 $(DEPDIR) >/dev/null) +DEPFLAGS = -MT $@ -MMD -MP -MF $(DEPDIR)/$*.Td +POSTCOMPILE = @mv -f $(DEPDIR)/$*.Td $(DEPDIR)/$*.d && touch $@ + # this no longer pushes the bootstub flash: obj/$(PROJ_NAME).bin PYTHONPATH=.....
added ALFA AWUS036ACM to known as working list
@@ -111,17 +111,18 @@ This list is for information purposes only and should not be regarded as a bindi | VENDOR MODEL | ID | | ----------------------- | ------------------------------------------------------------- | -| CSL 300MBit 300649 | ID 148f:5572 Ralink Technology, Corp. RT5572 Wireless Adapter | -| EDIMAX EW-77...
u3: bumps maximum reference bits on all platforms
# else # define U3_OS_LoomBase 0x36000000 # endif -# define U3_OS_LoomBits 29 +# define U3_OS_LoomBits 30 # elif defined(U3_OS_mingw) # define U3_OS_LoomBase 0x28000000000 -# define U3_OS_LoomBits 29 +# define U3_OS_LoomBits 30 # elif defined(U3_OS_osx) # ifdef __LP64__ # define U3_OS_LoomBase 0x28000000000 # else # de...
Add missing enum;
@@ -36,6 +36,7 @@ const char* Subpaths[] = { [P_PROXIMITY] = "proximity", [P_TRIGGER] = "trigger", [P_TRACKPAD] = "trackpad", + [P_JOYSTICK] = "joystick", [P_MENU] = "menu", [P_GRIP] = "grip", [P_A] = "a",
use correct type punning
@@ -178,23 +178,24 @@ static const char g_names[MAX_ADDR_RECORDS][3] = { size_t get16bits( const uint8_t** buffer ) { uint16_t value; - value = ntohs( *((uint16_t *) *buffer) ); + memcpy( &value, *buffer, 2 ); *buffer += 2; - return value; + return ntohs( value ); } void put16bits( uint8_t** buffer, uint16_t value ) { ...
disable code cov until resolved
@@ -520,7 +520,7 @@ try{ "ACC1804 clang-7 Release LVI FULL Tests": { ACCTest(AGENTS_LABELS["acc-ubuntu-18.04"], 'clang-7', 'Release', ['-DLVI_MITIGATION=ControlFlow', '-DLVI_MITIGATION_SKIP_TESTS=OFF']) }, "ACC1804 gcc Debug LVI": { ACCTest(AGENTS_LABELS["acc-ubuntu-18.04"], 'gcc', 'Debug', ['-DLVI_MITIGATION=ControlFl...
Rename OwnerID to CompanionOwnerID This avoids conflict with OwnerID representing pet owner
@@ -17,7 +17,7 @@ namespace FFXIVClientStructs.FFXIV.Client.Game.Character [FieldOffset(0x1040)] public fixed byte EquipSlotData[4 * 10]; [FieldOffset(0x1878)] public Companion* CompanionObject; // minion [FieldOffset(0x1898)] public fixed byte CustomizeData[0x1A]; - [FieldOffset(0x1950)] public uint OwnerID; + [FieldO...
vere: fixes %trim effect handler
@@ -45,8 +45,9 @@ _hind_io_kick(u3_auto* car_u, u3_noun wir, u3_noun cad) // case c3__trim: { ret_o = c3y; - u3_auto_plan(car_u, u3_ovum_init(0, u3_blip, u3k(wir), u3k(cad))); - } + u3_auto_plan(car_u, u3_ovum_init(0, u3_blip, + u3nc(c3__arvo, u3_nul), u3k(cad))); + } break; case c3__vega: { ret_o = c3y;
Analysis workflow, use installed openssl
@@ -166,20 +166,6 @@ jobs: - uses: actions/checkout@v2 with: submodules: false - - name: pwsh_windows - if: ${{ matrix.test_windows == 'yes' }} - run: | - pwd - cd .. - mkdir openssl - echo "curl openssl" - curl -L -k -s -S -o openssl-1.1.1j.tar.gz https://www.openssl.org/source/openssl-1.1.1j.tar.gz - tar xzf openssl-...
filter_nest: copy original event if condition is not mached(#1434)
@@ -557,6 +557,7 @@ static int cb_nest_filter(const void *data, size_t bytes, struct filter_nest_ctx *ctx = context; int modified_records = 0; + int total_modified_records = 0; msgpack_sbuffer buffer; msgpack_sbuffer_init(&buffer); @@ -576,15 +577,23 @@ static int cb_nest_filter(const void *data, size_t bytes, msgpack_...
tighten infeas tolerance
@@ -38,7 +38,7 @@ extern "C" { #define MAX_ITERS (100000) #define EPS_REL (1E-4) #define EPS_ABS (1E-4) -#define EPS_INFEAS (1E-5) +#define EPS_INFEAS (1E-7) #define ALPHA (1.5) #define RHO_X (1E-6) #define SCALE (0.1)
List: Simplify code
@@ -286,7 +286,8 @@ static int runPlugins (KeySet * pluginKS, KeySet * modules, KeySet * plugins, Ke ksDel (realPluginConfig); if (!slave) { - goto error; + ksDel (configOrig); + return -1; } Key * slaveKey = keyNew (name, KEY_BINARY, KEY_SIZE, sizeof (Plugin *), KEY_VALUE, &slave, KEY_END); keySetName (slaveKey, "/");...
Solve minor bug in funchook detour install.
@@ -265,9 +265,18 @@ target_link_libraries(${target} # Deployment # -# Dependency +if(WIN32) + set(FUNCHOOK_LIBRARY_SONAME_INSTALL_DIR) +else() + set(FUNCHOOK_LIBRARY_SONAME_INSTALL_DIR + ${FUNCHOOK_LIBRARY_INSTALL_DIR}.1 + ${FUNCHOOK_LIBRARY_INSTALL_DIR}.1.0.0) +endif() + +# Dependency (including symbolic links) insta...
Simplify config header. Removes the slightly distracting extern "C" block.
/* bool type */ #include <stdbool.h> -#ifdef __cplusplus -extern "C" { -#endif - /* ansi C lacks support for those functions */ -TCODLIB_API char *TCOD_strdup(const char *s); -TCODLIB_API int TCOD_strcasecmp(const char *s1, const char *s2); -TCODLIB_API int TCOD_strncasecmp(const char *s1, const char *s2, size_t n); +T...
extmod/modhubs/PrimeHub: drop Port attribute This was removed from all hubs a long time ago, except this one.
#include <pbsys/sys.h> -#include <pbio/port.h> #include <pbio/button.h> #include "modparameters.h" @@ -228,7 +227,6 @@ STATIC mp_obj_t hubs_PrimeHub_make_new(const mp_obj_type_t *type, size_t n_args, PrimeHub class tables */ STATIC const mp_rom_map_elem_t hubs_PrimeHub_locals_dict_table[] = { - { MP_ROM_QSTR(MP_QSTR_Po...
Have cgen convert "ok" to "NULL"
@@ -44,7 +44,7 @@ func (g *gen) writeExpr(b *buffer, n *a.Expr, rp replacementPolicy, depth uint32 if cv := n.ConstValue(); cv != nil { if typ := n.MType(); typ.IsNumTypeOrIdeal() { b.writes(cv.String()) - } else if typ.IsNullptr() { + } else if typ.IsNullptr() || typ.IsStatus() { b.writes("NULL") } else if cv.Cmp(zero...
ci: Release only when all the previous jobs succeeded. Fixes: ("ci: Separate CI in several jobs.")
@@ -388,8 +388,6 @@ jobs: run: | echo "Using IMAGE_TAG=$IMAGE_TAG" - tar zxvf /home/runner/work/inspektor-gadget/kubectl-gadget-linux-amd64.tar.gz - tar zxvf /home/runner/work/inspektor-gadget/kubectl-gadget-linux-amd64.tar.gz mv kubectl-gadget kubectl-gadget-linux-amd64 @@ -418,7 +416,7 @@ jobs: release: name: Release...
suppress unused arg warning
@@ -370,12 +370,14 @@ inline size_t h2o_socket_prepare_for_latency_optimized_write(h2o_socket_t *sock, inline h2o_iovec_t h2o_socket_log_ssl_protocol_version(h2o_socket_t *sock, h2o_mem_pool_t *pool) { + (void)pool; const char *s = h2o_socket_get_ssl_protocol_version(sock); return s != NULL ? h2o_iovec_init(s, strlen(s...
Remove unnecessary complexity. If a function name is truncated at the end of the new code still adds the truncated name it to the imported functions list. But we can live with that in favor of a simpler code.
@@ -968,7 +968,7 @@ IMPORT_EXPORT_FUNCTION* pe_parse_exports( if (yr_le32toh(directory->VirtualAddress) == 0) return NULL; - offset = pe_rva_to_offset(pe, directory->VirtualAddress); + offset = pe_rva_to_offset(pe, yr_le32toh(directory->VirtualAddress)); if (offset < 0) return NULL; @@ -1008,16 +1008,8 @@ IMPORT_EXPORT...
fix an i2c debug print bug
@@ -57,7 +57,7 @@ static rt_size_t i2c_bus_device_write(rt_device_t dev, RT_ASSERT(bus != RT_NULL); RT_ASSERT(buffer != RT_NULL); - i2c_dbg("I2C bus dev writing %u bytes.\n", dev->parent.name, count); + i2c_dbg("I2C bus dev [%s] writing %u bytes.\n", dev->parent.name, count); addr = pos & 0xffff; flags = (pos >> 16) & ...
board/fleex/board.h: Format with clang-format BRANCH=none TEST=none
@@ -94,18 +94,10 @@ enum temp_sensor_id { TEMP_SENSOR_COUNT }; -enum pwm_channel { - PWM_CH_KBLIGHT, - PWM_CH_COUNT -}; +enum pwm_channel { PWM_CH_KBLIGHT, PWM_CH_COUNT }; /* Motion sensors */ -enum sensor_id { - LID_ACCEL, - BASE_ACCEL, - BASE_GYRO, - SENSOR_COUNT -}; +enum sensor_id { LID_ACCEL, BASE_ACCEL, BASE_GYRO...
server session BUGFIX parsing base64 cert and privkey
@@ -134,7 +134,7 @@ pem_to_cert(const char *path) return out; } -/*static EVP_PKEY * +static EVP_PKEY * base64der_to_privatekey(const char *in, int rsa) { EVP_PKEY *out; @@ -164,7 +164,7 @@ base64der_to_privatekey(const char *in, int rsa) free(buf); BIO_free(bio); return out; -}*/ +} static int cert_pubkey_match(X509 *...
change oidc-gen long option numbers
#define OPT_USERNAME 28 #define OPT_PASSWORD 29 #define OPT_PW_FILE 30 -#define OPT_REFRESHTOKEN_ENV 31 -#define OPT_PW_ENV 32 -#define OPT_NO_SAVE 33 +// Leave space for Ascii characters #define OPT_CONFIRM_YES 128 #define OPT_CONFIRM_NO 129 #define OPT_CONFIRM_DEFAULT 130 #define OPT_ONLY_AT 131 +#define OPT_REFRESHT...
Add Innr manufacturer code define
// manufacturer codes #define VENDOR_ATMEL 0x1014 #define VENDOR_DDEL 0x1135 +#define VENDOR_INNR 0x1166 #define VENDOR_INSTA 0x117a #define VENDOR_IKEA 0x117c #define VENDOR_PHILIPS 0x100B
libbpf-tools: Fix klockstat when CONFIG_DEBUG_LOCK_ALLOC is set When CONFIG_DEBUG_LOCK_ALLOC is set ([0]), mutex_lock, mutex_lock_interruptible and mutex_lock_killable become macro defines and gone from ksyms. Let's use the *_nested functions as tracing targets instead. [0]:
@@ -534,6 +534,21 @@ int main(int argc, char **argv) obj->rodata->targ_pid = env.tid; obj->rodata->targ_lock = lock_addr; + if (fentry_exists("mutex_lock_nested", NULL)) { + bpf_program__set_attach_target(obj->progs.mutex_lock, 0, + "mutex_lock_nested"); + bpf_program__set_attach_target(obj->progs.mutex_lock_exit, 0, +...
format_source handles more node types
@@ -276,6 +276,21 @@ def is_atomic_block(blckstmt): def format_source(src): + def is_binop(node): + nt = node.node_type + return nt in simple_binary_ops or nt in complex_binary_ops or nt in elementwise_binary_ops + + def format_binop(node): + nt = node.node_type + if nt in simple_binary_ops: + op = simple_binary_ops[nt...
modtools: add kwarg for wait Now both allowed: wait(1000) wait(time=1000) Now gives a more descriptive error: >>> wait() TypeError: 'time' argument required
#include "py/runtime.h" #include "pberror.h" #include "pbobj.h" +#include "pbkwarg.h" -STATIC mp_obj_t tools_wait(mp_obj_t arg) { - mp_int_t duration = pb_obj_get_int(arg); +STATIC mp_obj_t tools_wait(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) { + PB_PARSE_ARGS_FUNCTION(n_args, pos_args, kw_args, + PB_...
doc: Add description for detach_kprobe/detach_kretprobe Add missing descriptions for detach_kprobe and detach_kretprobe.
@@ -99,6 +99,8 @@ This guide is incomplete. If something feels missing, check the bcc and kernel s - [9. attach_xdp()](#9-attach_xdp) - [10. attach_func()](#10-attach_func) - [11. detach_func()](#11-detach_func) + - [12. detach_kprobe()](#12-detach_kprobe) + - [13. detach_kretprobe()](#13-detach_kretprobe) - [Debug Out...
Don't free getline's allocations when testing with NS3 Leaks a bit but avoids implementing a painful getline DCE wrapper
@@ -560,8 +560,10 @@ int plugin_preprocess_file(picoquic_cnx_t *cnx, char *plugin_dirname, const char } free(buf); +#ifndef NS3 if (line) free(line); +#endif fclose(file); return 0; } @@ -704,8 +706,10 @@ int plugin_parse_plugin_id(const char *plugin_fname, char *plugin_id) { /* FIXME It's bad, I know... */ strcpy(plug...
[apps] Fix systolic queue assignment for processing elements
@@ -408,9 +408,11 @@ void systolic_proc_element(const uint32_t row_idx, const uint32_t col_idx) { int32_t data_vert; uint32_t offset; + // TODO: HANDLE BOUNDARY + // Assign queues - queue_prev_horz = queues_right[row_idx - 1][col_idx - 1]; - queue_prev_vert = queues_down[row_idx - 1][col_idx - 1]; + queue_prev_horz = q...
Dockerfile: use nearby mirrors for packages Many Contiki-NG users are outside the US, switch the packages to be downloaded from a mirror that is closer to the user.
@@ -6,7 +6,8 @@ ENV DEBIAN_FRONTEND noninteractive USER root # Tools -RUN apt-get -qq update && \ +RUN sed -i -e 's#http://archive.ubuntu.com/ubuntu/#mirror://mirrors.ubuntu.com/mirrors.txt#' /etc/apt/sources.list && \ + apt-get -qq update && \ apt-get -qq -y --no-install-recommends install gnupg ca-certificates softwa...
Added CMSIS-NN to the list of hot stuff.
@@ -14,6 +14,7 @@ A [pre-built documentation](http://www.keil.com/pack/doc/CMSIS_Dev/index.html) i - CMSIS-Core: compiler agnostic features extended to simplify transition on LLVM based front-end - CMSIS-Core-A: preview of the CMSIS-Core for Cortex-A - Coming soon: CMSIS-RTOS2 for Cortex-A + - CMSIS-NN: Bare metal Neur...
Remove $no_sse2, as it's just a 'copy' of $disabled{sse2}
@@ -515,8 +515,6 @@ while ((my $first, my $second) = (shift @list, shift @list)) { # To remove something from %disabled, use "enable-foo". # For symmetry, "disable-foo" is a synonym for "no-foo". -my $no_sse2=0; - &usage if ($#ARGV < 0); # For the "make variables" CINCLUDES and CDEFINES, we support lists with @@ -1054,...
Mercator: send back a response after received length check
@@ -127,14 +127,13 @@ void serial_tx_RESP_ST(void) { } void serial_rx_REQ_IDLE(void) { - // schedule a response - scheduler_push_task(serial_tx_RESP_IDLE,TASK_PRIO_SERIAL); - if (mercator_vars.uartbufrxindex!=sizeof(REQ_IDLE_ht)){ // update stats mercator_vars.serialNumRxWrongLength++; return; } + // schedule a respons...
Some streams will not be closed correctly.
@@ -447,12 +447,10 @@ int ngtcp2_rtb_recv_ack(ngtcp2_rtb *rtb, ngtcp2_frame_chain **pfrc, } ent = ngtcp2_ksl_it_get(&it); if (conn) { - if (conn->callbacks.acked_stream_data_offset) { rv = call_acked_stream_offset(ent, conn); if (rv != 0) { return rv; } - } rtb_on_pkt_acked(rtb, ent); }
Corrections o the migration guide
Remove MBEDTLS_SSL_RECORD_CHECKING option and enable its action by default -------------------------------------------------------------------------- -This change does not affects users who use the default config.h, as the +This change does not affect users who use the default config.h, as the option MBEDTLS_SSL_RECORD...
mspi: remove mspi 80m ddr mode warning regarding to timing tuning
@@ -209,6 +209,8 @@ static uint32_t select_best_tuning_config_dtr(spi_timing_config_t *config, uint3 static uint32_t select_best_tuning_config_str(spi_timing_config_t *config, uint32_t consecutive_length, uint32_t end) { #if (SPI_TIMING_CORE_CLOCK_MHZ == 120 || SPI_TIMING_CORE_CLOCK_MHZ == 240) + ESP_EARLY_LOGW("FLASH/...
kernel/sched/sched_releasetcb : Skip releasing some of task's resources if pid is 0 If there is a failure before assinging pid when creating a task/thread, we don't need to release some of task's resources. Skipped resources : terminated stackinfo, heapinfo tcbinfo, heapinfo groupinfo, timer, pid If not, IDLE task's re...
@@ -150,6 +150,12 @@ int sched_releasetcb(FAR struct tcb_s *tcb, uint8_t ttype) int ret = OK; if (tcb) { + /* Release the some of task's resources if PID was assigned. + * PID zero is reserved for the IDLE task. The TCB of the IDLE + * task is never release so a value of zero simply means that + * the process ID was ne...