message
stringlengths
6
474
diff
stringlengths
8
5.22k
Improve reachable checks for FLS-NB sensors
@@ -9295,6 +9295,11 @@ void DeRestPluginPrivate::handleOnOffClusterIndication(TaskItem &task, const deC } } + if (!s.isAvailable()) + { + checkSensorNodeReachable(&s); + } + s.incrementRxCounter(); item = s.item(RStatePresence); if (item) @@ -9568,6 +9573,29 @@ void DeRestPluginPrivate::handleZdpIndication(const deCONZ...
Fix Error: chip/rp2040_cyw43439.c:844:46: error: format specifies type 'unsigned long' but the argument has type 'uint32_t' (aka 'unsigned int') [-Werror,-Wformat]
@@ -841,9 +841,9 @@ gspi_dev_t *rp2040_cyw_setup(uint8_t gpio_on, return NULL; } - wlinfo("setup complete. gspi = 0x%08lX\n", (uint32_t) gspi); + wlinfo("setup complete. gspi = 0x%p\n", gspi); - return (void *)gspi; + return gspi; } /****************************************************************************
Remove random seek on VCF as not all platform support it.
@@ -61,10 +61,15 @@ namespace ebi if (!(fasta.get())) { // No local/remote fasta file provided std::string reference_accession; std::vector<std::string> contigs; - std::streampos vcfInputStreamPosCache = vcf_input.tellg(); for (size_t line_num = 1; util::readline(vcf_input, vector_line).size() != 0; ++line_num) { std::...
access: Don't try to add back file to the corpus dir
@@ -314,11 +314,17 @@ static void fuzz_addFileToFileQLocked(honggfuzz_t * hfuzz, uint8_t * data, size_ } char fname[PATH_MAX]; - uint64_t crc64 = util_CRC64(data, size); snprintf(fname, sizeof(fname), "%s/%016" PRIx64 ".%08" PRIx32 ".honggfuzz.cov", hfuzz->covDir ? hfuzz->covDir : hfuzz->inputDir, crc64, (uint32_t) siz...
Pickers: Fix regression bug
@@ -1522,6 +1522,10 @@ CreateFileSystemForCustom ( return FileSystem; } +// +// @retval EFI_SUCCESS One or more entries added. +// @retval EFI_NOT_FOUND No entries added. +// STATIC EFI_STATUS AddFileSystemEntryForCustom ( @@ -1530,21 +1534,13 @@ AddFileSystemEntryForCustom ( IN UINT32 PrecreatedCustomIndex ) { + EFI_S...
Agent now properly counts unicode characters as a single character.
"." (t s.t.dat) == %+ weld - (reap (sub +(wyd) (min wyd (lent i.txs))) ' ') + (reap (sub +(wyd) (min wyd (lent (tuba i.txs)))) ' ') time %- flop %+ roll `(list tape)`txs (~(del in aud) [%& who (main who)]) == =. wyd (sub wyd (lent pef)) - =+ txt=(trip msg.sep) + =/ txt (tuba (trip msg.sep)) |- ^- (list tape) ?~ txt ~ =...
lock: Increase con_suspend before __try_lock Otherwise, we might have the lock and hit prlog's inside __try_lock() in the list check (among others) in debug builds.
@@ -193,13 +193,15 @@ bool try_lock_caller(struct lock *l, const char *owner) if (bust_locks) return true; - if (__try_lock(cpu, l)) { - l->owner = owner; if (l->in_con_path) cpu->con_suspend++; + if (__try_lock(cpu, l)) { + l->owner = owner; list_add(&cpu->locks_held, &l->list); return true; } + if (l->in_con_path) + ...
EC_GROUP_new_by_curve_name_with_libctx(): Add name of unknown group to error output
#include "ec_local.h" #include <openssl/err.h> #include <openssl/obj_mac.h> +#include <openssl/objects.h> #include <openssl/opensslconf.h> #include "internal/nelem.h" #include "e_os.h" /* strcasecmp required by windows */ @@ -3298,6 +3299,9 @@ EC_GROUP *EC_GROUP_new_by_curve_name_with_libctx(OPENSSL_CTX *libctx, if ((c...
(388) Fix integration test for kafka test failure (website change)
@@ -20,8 +20,8 @@ RUN mkdir /kafka /data /logs # Download Kafka binary distribution #COPY ./kafka/kafka_2.13-2.5.0.tgz /tmp/kafka_2.13-2.5.0.tgz -ADD http://www.us.apache.org/dist/kafka/${KAFKA_VERSION}/${KAFKA_RELEASE_ARCHIVE} /tmp/ -ADD https://dist.apache.org/repos/dist/release/kafka/${KAFKA_VERSION}/${KAFKA_RELEASE...
storage: enhance version and init message
@@ -324,17 +324,16 @@ static int sort_chunk_cmp(const void *a_arg, const void *b_arg) static void print_storage_info(struct flb_config *ctx, struct cio_ctx *cio) { + char *type; char *sync; char *checksum; struct flb_input_instance *in; - flb_info("[storage] version=%s, initializing...", cio_version()); - if (cio->root...
osx: trying to fix
@@ -34,7 +34,12 @@ macx { ../../curl/lib\ ../../curl/lib/vauth\ ../../curl/lib/vtls -SOURCES += ../../curl/lib/http_ntlm.c +SOURCES += ../../curl/lib/http_ntlm.c\ +../../curl/lib/vauth/ntlm.c\ +../../curl/lib/smb.c\ +../../curl/lib/vtls/openssl.c + + #../../curl/lib/qssl.c\ #../../curl/lib/ssluse.c }
update gx option code: use helpers.
@@ -2958,26 +2958,17 @@ static int stlink_write_option_bytes_gx(stlink_t *sl, uint8_t* base, stm32_addr_ (void) addr; (void) len; + wait_flash_busy(sl); + if (unlock_flash_if(sl)) { ELOG("Flash unlock failed! System reset required to be able to unlock it again!\n"); return -1; } - /* Unlock option bytes if necessary (r...
process-spawn.c: switch uv_socketpair to uv_pipe to remove the socket dependence
@@ -738,7 +738,7 @@ index 0f4bf938..dd36028b 100644 time_base = loop->time; diff --git a/src/unix/process-spawn.c b/src/unix/process-spawn.c new file mode 100644 -index 00000000..78401ca5 +index 00000000..755efc84 --- /dev/null +++ b/src/unix/process-spawn.c @@ -865,7 +865,7 @@ index 00000000..78401ca5 + if (container-...
get rid of unused but:epic
$: qix/(map @t @t) :: query ced/cred :: client credentials bem/beam :: original path - but/path :: ending == :: += gram :: inter-ship message $? [[%lon ~] p=hole] :: login request |= {bem/beam ced/noun:cred quy/quer} ^- epic =+ qix=|-(`quay`?~(quy quy [[p q]:quy $(quy t.quy)])) - [(malt qix) ((hard cred) ced) bem /] + ...
doc: add dini entry in plugins
@@ -74,6 +74,7 @@ files. Read and write everything a KeySet might contain: +- [dini](dini/) uses by default the ini plugin but has legacy support for dump - [dump](dump/) makes a dump of a KeySet in an Elektra-specific format Read (and write) standard config files:
Add doc/std/README.md "Modules and Dependencies"
@@ -32,3 +32,36 @@ See also the [glossary](/doc/glossary.md), as well as the notes on: - [Coroutines](/doc/note/coroutines.md). - [Initialization](/doc/note/initialization.md). - [Statuses](/doc/note/statuses.md). + + +## Modules and Dependencies + +By default, building Wuffs' standard library builds the entire thing (...
remove a loop from hmac_init
@@ -100,22 +100,19 @@ static int s2n_sslv3_mac_init(struct s2n_hmac_state *state, s2n_hmac_algorithm a static int s2n_tls_hmac_init(struct s2n_hmac_state *state, s2n_hmac_algorithm alg, const void *key, uint32_t klen) { - uint32_t copied = klen; + memset(&state->xor_pad, 0, sizeof(state->xor_pad)); + if (klen > state->...
capops: add some more DEBUG_CAPOPS in delete code
@@ -428,11 +428,13 @@ delete_trylock_cont(void *st) err = monitor_lock_cap(del_st->capref.croot, del_st->capref.cptr, del_st->capref.level); if (err_no(err) == SYS_ERR_CAP_LOCKED) { + DEBUG_CAPOPS("%s: from lock(): cap already locked, queuing retry\n", __FUNCTION__); caplock_wait(del_st->capref, &del_st->lock_qn, MKCLO...
Introducing STD Map and applying to resource stuff.
@@ -14,5 +14,6 @@ namespace FFXIVClientStructs.FFXIV.Client.System.Resource.Handle [FieldOffset(0x0C)] public uint FileType; // "txt" "uld" etc from the header [FieldOffset(0x10)] public uint Id; [FieldOffset(0x48)] public FFXIVClientStructs.STD.String FileName; // std::string + [FieldOffset(0xAC)] public uint RefCount...
Fix the issue of device name len limited
#define UC_BT_SMP_SLAVE_CON_PARAMS_UPD_ENABLE FALSE #endif -#if CONFIG_IDF_TARGET_ESP32 - //Device Nane Maximum Length #ifdef CONFIG_BT_MAX_DEVICE_NAME_LEN #define UC_MAX_LOC_BD_NAME_LEN CONFIG_BT_MAX_DEVICE_NAME_LEN #define UC_MAX_LOC_BD_NAME_LEN 64 #endif +#if CONFIG_IDF_TARGET_ESP32 + //BTDM_BLE_ADV_REPORT_FLOW_CTRL...
userland: Bump revision to the current HEAD
@@ -13,7 +13,7 @@ COMPATIBLE_MACHINE = "^rpi$" SRCBRANCH = "master" SRCFORK = "raspberrypi" -SRCREV = "c4fd1b8986c6d6d4ae5cd51e65a8bbeb495dfa4e" +SRCREV = "54fd97ae4066a10b6b02089bc769ceed328737e0" # Use the date of the above commit as the package version. Update this when # SRCREV is changed.
interpreters/duktape: Remove v from tar command to avoid the verbose unzip message
@@ -54,7 +54,7 @@ $(DUKTAPE_TARBALL): $(DUKTAPE_UNPACK): $(DUKTAPE_TARBALL) $(Q) echo "Unpacking $(DUKTAPE_TARBALL) to $(DUKTAPE_UNPACK)" - $(Q) tar xvfJ $(DUKTAPE_TARBALL) + $(Q) tar xfJ $(DUKTAPE_TARBALL) $(Q) mv duktape-$(DUKTAPE_VERSION) $(DUKTAPE_UNPACK) $(Q) echo "Patching $(DUKTAPE_UNPACK)" $(Q) patch -p0 < duk_...
Don't take down server with fatal socket error Instead just delete the corresponding handler.
@@ -1190,8 +1190,6 @@ void swritecb(struct ev_loop *loop, ev_io *w, int revents) { if (rv != 0) { if (rv == NETWORK_ERR_SEND_NON_FATAL) { s->start_wev(); - } else { - s->disconnect(); } } } @@ -1264,8 +1262,6 @@ int Server::on_write() { continue; case NETWORK_ERR_SEND_NON_FATAL: return NETWORK_ERR_SEND_NON_FATAL; - cas...
Fixed invaild examples path for travis.
@@ -43,7 +43,7 @@ if [ $? -ne 0 ]; then echo -e "\xe2\x9c\x96"; else echo -e "\xe2\x9c\x93"; fi # Update OpenCR package manually git clone --recursive https://github.com/ROBOTIS-GIT/OpenCR.git --branch develop --single-branch rm -rf $HOME/.arduino15/packages/OpenCR/hardware -mv -rf $PWD/OpenCR/arduino/opencr_arduino/op...
HTTP cellular improvement: reset profile at outset. At the start of the setup of an HTTP instance uCellHttp now issue AT+HTTP=x, where x is the profile ID, to reset the profile before starting to use it.
@@ -506,6 +506,13 @@ int32_t uCellHttpOpen(uDeviceHandle_t cellHandle, const char *pServerName, pHttpInstance->pCallback = pCallback; pHttpInstance->pCallbackParam = pCallbackParam; atHandle = pCellInstance->atHandle; + // Reset the HTTP profile + uAtClientLock(atHandle); + uAtClientCommandStart(atHandle, "AT+UHTTP=");...
Rearrange Travis CI jobs based on current runtimes. In general it is better to have slower jobs run earlier.
@@ -27,6 +27,12 @@ jobs: # Debian/Ubuntu documentation - env: PGB_CI=" doc --vm=u18" + # All integration tests + - env: PGB_CI="test --vm=u18 --param=build-package --param=module=mock --param=module=real" + + # All integration tests + - env: PGB_CI="test --vm=co6 --param=build-package --param=module=mock --param=module...
odyssey: log tls certificate name mismatch details
@@ -275,7 +275,8 @@ od_auth_frontend_cert(od_client_t *client) rc = machine_io_verify(client->io, route->config->user_name); if (rc == -1) { od_error(&instance->logger, "auth", client, NULL, - "TLS certificate common name mismatch"); + "TLS certificate common name mismatch: %s", + machine_error(client->io)); od_fronten...
Make espcoredump more resilient when decoding specific thread stack Merges
@@ -1668,15 +1668,17 @@ def info_corefile(args): p = gdbmi_getinfo(p, handlers, "info threads") # THREADS STACKS p,threads,cur_thread = gdbmi_get_thread_ids(p) + print() for thr_id in threads: task_index = int(thr_id) - 1 - if thr_id == cur_thread: - continue p = gdbmi_switch_thread(p, thr_id) p,thr_info_res = gdbmi_ge...
Fix engine prop C code generation
@@ -667,8 +667,8 @@ export const compileEngineFields = (engineFields, engineProps, header) => { for(const engineField of engineFields) { const prop = engineProps.find((p) => p.id === engineField.key); const customValue = prop && prop.value; - const value = customValue !== undefined ? customValue : engineField.defaultVa...
Fix VMS installation - Override the openssl logical name in descrip.mms.tmpl This was part of but was incomplete in that commit.
@@ -429,7 +429,9 @@ NODEBUG=@ $(NODEBUG) ! them, so we create it instead. This is an unfortunate $(NODEBUG) ! necessity. $(NODEBUG) ! - $(NODEBUG) DEFINE openssl "{- sourcedir('include/openssl') -} + $(NODEBUG) openssl_inc1 = F$PARSE("[.include.openssl]","A.;",,,"syntax_only") - "A.;" + $(NODEBUG) openssl_inc2 = F$PARS...
change timeout on flash write
@@ -360,11 +360,11 @@ int stlink_flash_loader_run(stlink_t *sl, flash_loader_t* fl, stm32_addr_t targe * the OS uses, the wait until the error message is reduced to the same order of magnitude * as what was intended. -- REW. */ -#define WAIT_ROUNDS 100 +#define WAIT_ROUNDS 30 // wait until done (reaches breakpoint) for...
runtime: move static arp entry creation to late init phase after per-thread smalloc initializer runs
@@ -342,13 +342,27 @@ int arp_lookup(uint32_t daddr, struct eth_addr *dhost_out, struct mbuf *m) */ int arp_init(void) { - int i, idx; - struct arp_entry *e; + int i; spin_lock_init(&arp_lock); for (i = 0; i < ARP_TABLE_CAPACITY; i++) rcu_hlist_init_head(&arp_tbl[i]); + return 0; +} + +/** + * arp_init_late - starts th...
psa_key_derivation_check_input_type(): handle PSA_KEY_DERIVATION_INPUT_OTHER_SECRET
@@ -5391,6 +5391,12 @@ static int psa_key_derivation_check_input_type( if( key_type == PSA_KEY_TYPE_NONE ) return( PSA_SUCCESS ); break; + case PSA_KEY_DERIVATION_INPUT_OTHER_SECRET: + if( key_type == PSA_KEY_TYPE_DERIVE ) + return( PSA_SUCCESS ); + if( key_type == PSA_KEY_TYPE_NONE ) + return( PSA_SUCCESS ); + break; ...
Support armcc builtin byteswap routine
@@ -158,6 +158,11 @@ inline void mbedtls_put_unaligned_uint64( void *p, uint64_t x ) #define MBEDTLS_BSWAP64 _byteswap_uint64 #endif /* defined(_MSC_VER) */ +/* Detect armcc built-in byteswap routine */ +#if defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 410000) +#define MBEDTLS_BSWAP32 __rev +#endif + /* * Where comp...
fixed crash in I2S when reconnect to a2dp sink
@@ -275,8 +275,8 @@ static void bt_av_hdl_a2d_evt(uint16_t event, void *p_param) s_a2d_conn_state_str[a2d->conn_stat.state], bda[0], bda[1], bda[2], bda[3], bda[4], bda[5]); if (a2d->conn_stat.state == ESP_A2D_CONNECTION_STATE_DISCONNECTED) { esp_bt_gap_set_scan_mode(ESP_BT_CONNECTABLE, ESP_BT_GENERAL_DISCOVERABLE); - ...
Ignore move constructor
%ignore tsFrame; %ignore tsStatus; %ignore tinyspline::BSpline::BSpline(BSpline &&); +%ignore tinyspline::ChordLengths::ChordLengths(ChordLengths &&); %ignore tinyspline::DeBoorNet::DeBoorNet(DeBoorNet &&); %ignore tinyspline::FrameSeq::FrameSeq(FrameSeq &&);
os/net: Delete unnecessary defines NET_DEVNAME is used nowhere.
#define SOCKETADD_ERR_RECORD(reason_code) #endif -#if defined(CONFIG_ARCH_CHIP_S5JT200) || defined(CONFIG_ARCH_CHIP_LM3S6965) || defined(CONFIG_ARCH_CHIP_BCM4390X) -#if LWIP_HAVE_LOOPIF -#define NET_DEVNAME "wl1" -#else -#define NET_DEVNAME "wl0" -#endif -#else -#error "undefined CONFIG_NET_<type>, check your .config" ...
remove forgotten private declaration in parallel for
@@ -832,7 +832,7 @@ static scs_int proj_cone(scs_float *x, const ScsCone *k, ScsConeWork *c, * \Pi_C^*(y) = y + \Pi_C(-y) */ #ifdef _OPENMP -#pragma omp parallel for private(r, s, t, idx) +#pragma omp parallel for #endif for (i = 0; i < k->ep; ++i) { proj_exp_cone(&(x[count + 3 * i]));
Renamed and fixed overflow in M
@@ -232,7 +232,7 @@ static void oper_poke_and_stun(Glyph* restrict gbuffer, Mark* restrict mbuffer, _('J', jump) \ _('K', konkat) \ _('L', loop) \ - _('M', modulo) \ + _('M', multiply) \ _('N', movement) \ _('O', offset) \ _('P', push) \ @@ -575,14 +575,14 @@ BEGIN_OPERATOR(loop) } END_OPERATOR -BEGIN_OPERATOR(modulo) ...
py/modmicropython: Add writable_ns(nsobj, bool) to make namespaces writable. Calling writable_ns() on a type/module can make its attribute dictionary writable/non-writable (depending on 2nd arg).
@@ -173,6 +173,27 @@ STATIC mp_obj_t mp_micropython_function(size_t n_args, const mp_obj_t *args) { STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(mp_micropython_function_obj, 3, 4, mp_micropython_function); #endif +#if MICROPY_CAN_OVERRIDE_BUILTIN_NAMESPACES +STATIC mp_obj_t mp_micropython_writable_ns(mp_obj_t obj_in, mp_...
Add sse options for use of intrinics with older compilers
@@ -124,10 +124,19 @@ if (NOT DYNAMIC_ARCH) if (HAVE_AVX) set (CCOMMON_OPT "${CCOMMON_OPT} -mavx") endif () + if (HAVE_SSE) + set (CCOMMON_OPT "${CCOMMON_OPT} -msse") + endif () + if (HAVE_SSE2) + set (CCOMMON_OPT "${CCOMMON_OPT} -msse2") + endif () if (HAVE_SSE3) set (CCOMMON_OPT "${CCOMMON_OPT} -msse3") endif () if (...
sandbox/fskcorr: cleaning up options/plots, adding noise floor/SNR
int main(int argc, char*argv[]) { - unsigned int M = 1000; // samples per symbol + unsigned int M = 1024; // samples per symbol unsigned int n = 256; // sequence length (number of symbols) unsigned int p = 4; // over-sampling rate for output - //float SNRdB = 20; // - unsigned int timer = 0; - float fc = 0.2f; // tone ...
gta3 wanted stars shadows
@@ -564,7 +564,7 @@ void ApplyIniOptions() //Changing black color for necessary strings for (size_t i = 0; i < MenuPattern3.size(); i++) { - if (i == 9 || i == 15 || i == 20 || i == 33 /*|| i == 36*/ ) // 9 - MAIN MENU strings, 15,21 - controls page key on hover, 33 - ammo, 36 - wanted stars; + if (i == 9 || i == 15 ||...
PHP: Terminating names with zero. Fixing issue introduced in changeset 462:17a2c9b27b57 .
@@ -215,7 +215,7 @@ nxt_php_init(nxt_task_t *task, nxt_common_app_conf_t *conf) nxt_php_str_trim_lead(&c->script, '/'); path->length = root->length + 1 + c->script.length; - path->start = nxt_malloc(path->length); + path->start = nxt_malloc(path->length + 1); if (nxt_slow_path(path->start == NULL)) { return NXT_ERROR; ...
MSR: Reenable tests on Linux/ASAN
@@ -10,17 +10,11 @@ add_s_test (tutorial_cascading "${CMAKE_SOURCE_DIR}/doc/tutorials/cascading.md") add_s_test (kdb-complete "${CMAKE_SOURCE_DIR}/doc/help/kdb-complete.md") add_s_test (kdb-ls "${CMAKE_SOURCE_DIR}/doc/help/kdb-ls.md") -# The tests below might fail on Linux if ASAN is enabled -# The problem might be rel...
Remove uppercase MANGOHUD_LOG_LEVEL strings
@@ -82,7 +82,7 @@ void init_spdlog() if (getenv("MANGOHUD_LOG_LEVEL")) { std::string log_level = getenv("MANGOHUD_LOG_LEVEL"); vector<string> levels; - levels = {"off","OFF","info","INFO","err","ERR","debug","DEBUG"}; + levels = {"off","info","err","debug"}; for (auto & element : levels) { transform(log_level.begin(), ...
libopae: clarify fpgaEnumerate() doxygen Update the doxygen for parameters 'filters' and 'num_filters' to reflect the two ways of achieving a "match-all" query.
@@ -71,9 +71,12 @@ extern "C" { * @param[in] filters Array of `fpga_properties` objects describing the * properties of the objects that should be returned. A * resource is considered matching if its properties - * match any one of the supplied filters. Passing NULL - * will match all FPGA resources present in the syste...
sysdeps/managarm: Ignore NULL in DRM_IOCTL_VERSION
@@ -1533,10 +1533,13 @@ int sys_ioctl(int fd, unsigned long request, void *arg, int *result) { param->version_minor = resp.drm_version_minor(); param->version_patchlevel = resp.drm_version_patchlevel(); + if(param->name) memcpy(param->name, resp.drm_driver_name().data(), frg::min(param->name_len, resp.drm_driver_name()...
extmod/modmotor: Fix MoveHub port A direction Make sure that clockwise is indeed clockwise. Fix is added at the module level now, but it should instead be fixed in the PWM and Counter drivers.
@@ -214,6 +214,13 @@ STATIC mp_obj_t motor_Motor_make_new(const mp_obj_type_t *type, size_t n_args, s } } + #if PYBRICKS_HUB_MOVEHUB + // FIXME: Update direction in pwm and counter driver instead + if (port_arg == PBIO_PORT_A) { + direction_arg = !direction_arg; + } + #endif + // Get servo device, set it up, and tell t...
200c --> 500c typo
@@ -260,7 +260,7 @@ class MassDef200c(MassDef): class MassDef500c(MassDef): """`MassDef` class for the mass definition - with Delta=200 times the critical density. + with Delta=500 times the critical density. Args: c_m (string): concentration-mass relation.
Fixed engine compile error on mac
@@ -392,7 +392,7 @@ void SceneUpdateActors_b() { update_dir = directions[r & 3]; r++; - SceneUpdateActorMovement_b(i, update_dir); + SceneUpdateActorMovement_b(i); } } }
Fix modulo issue of MSB to be 1 with signed type
@@ -118,9 +118,18 @@ T GetRandom(T UpperBound, uint16_t ThreadID = UINT16_MAX) { if (!FuzzData || ThreadID == UINT16_MAX) { return (T)(rand() % (int)UpperBound); } - T out = std::numeric_limits<T>::max(); - (void)FuzzData->TryGetRandom(UpperBound, &out, ThreadID); - return out; + uint64_t out = 0; + + if ((uint64_t)Upp...
documents new cli arguments
@@ -334,15 +334,17 @@ u3_ve_usage(c3_i argc, c3_c** argv) "-c pier Create a new urbit in pier/\n", "-d Daemon mode\n", "-D Recompute from events\n", + "-e url Ethereum gateway\n", "-F ship Fake keys; also disables networking\n", "-f Fuzz testing\n", "-g Set GC flag\n", + "-K keys Private key file\n", "-k stage Start at...
Test: Do not test plugins which leak memory
@@ -51,29 +51,15 @@ do ;; esac - # The following checks fail on an ASAN enabled build - # See also: https://github.com/ElektraInitiative/libelektra/pull/1963 ASAN='@ENABLE_ASAN@' if [ "$ASAN" = 'ON' ]; then + # Do not check plugins with known memory leaks in ASAN enabled build + "$KDB" info "$PLUGIN" status 2>/dev/null...
Solved errata in TOC and link.
@@ -61,7 +61,7 @@ metacall('sum', 3, 4); // 7 - [5.3.2.2 RapidJSON](#5322-rapidjson) - [5.3.3 Detours](#533-detours) - [5.3.3.1 FuncHook](#5331-funchook) - - [5.4 Ports](#54-ports) + - [5.4 Ports (Frontends)](#54-ports-frontends) - [5.5 Serialization](#55-serialization) - [5.6 Memory Layout](#56-memory-layout) - [5.7 F...
Fixed array for absolute paths in loader_load_from_files
#define LOADER_SCRIPT_PATH "LOADER_SCRIPT_PATH" +#define LOADER_MAX_FILES 50 + /* -- Forward Declarations -- */ struct loader_type; @@ -205,7 +207,7 @@ int loader_load_from_files(loader_naming_path path[], size_t size) { if (l->script_path != NULL) { - loader_naming_path absolute_path[size]; + loader_naming_path absolu...
docs/ide-support.md: Add Makefile.ide to odd file types TEST=none BRANCH=none
@@ -14,6 +14,7 @@ Patterns | Vague Type ----------------------------------------------------- | ---------- `README.*` | Text `Makefile.rules`, `Makefile.toolchain` | Makefile +`Makefile.ide` | Makefile `gpio.wrap` | C Header `gpio.inc` | C Header `*.tasklist`, `*.irqlist`, `*.mocklist`, `*.testlist` | C Header
Avoid potential NULL deref
@@ -429,6 +429,8 @@ static void process_packets(h2o_http3_ctx_t *ctx, quicly_address_t *destaddr, qu if (QUICLY_PACKET_IS_LONG_HEADER(packets[0].octets.base[0]) && packets[0].version != QUICLY_PROTOCOL_VERSION) { quicly_datagram_t *dgram = quicly_send_version_negotiation(ctx->quic, &srcaddr->sa, packets[0].cid.src, &de...
added reference to Danibus tutorials
@@ -33,6 +33,8 @@ I plan to complete tutorials in future but in the meantime i strongly suggest yo You can also follow up-to-date and more complete online tutorials as this one (thanks to Ohsat for making them): https://www.ohsat.com/tutorial/ +You also have the great ones from Danibus (spanish only): +https://danibus....
Remove unnecessary print of test_info The remove the print of a test_info object, as this information is not useful.
@@ -142,9 +142,8 @@ class MassStorageTester(object): """Add a list of directoies""" self._mock_dir_list_after.extend(dir_list) - def _check_data_correct(self, expected_data, test_info): + def _check_data_correct(self, expected_data, _): """Return True if the actual data written matches the expected""" - print (test_inf...
doc: clarify what rest-backend does see
@@ -11,6 +11,14 @@ These external commands can be listed via `kdb list-tools` The graphical user interface (GUI) is called `kdb qt-gui`. +## Web-UI + +For information about the Web-UI, please read [here](web). + +Note that the Web-UI also provides a REST service +[elektrad](web/elektrad) that allows you to get +and set...
sysdeps/managarm: Stub sys_tcdrain
@@ -992,6 +992,11 @@ int sys_tcsetattr(int fd, int when, const struct termios *attr) { return 0; } +int sys_tcdrain(int) { + mlibc::infoLogger() << "\e[35mmlibc: tcdrain() is a stub\e[39m" << frg::endlog; + return 0; +} + int sys_socket(int domain, int type_and_flags, int proto, int *fd) { constexpr int type_mask = int...
Separate version entries more clearly
@@ -18,24 +18,34 @@ This includes the following changes (as well as other minor changes), as detaile **Compatibility**: (`gcc-6`) Fix some compatibility concerns with `gcc` version 6, as well as some warnings that were exposed when testing with `gcc`. +*** + #### Change log v.0.4.14 **Fix**: (`facil.io`) fixes an issue...
fix unforgiving
@@ -39,6 +39,10 @@ def setupReplay(osrfile, beatmap): replay_data[index][Replays.TIMES] = total_time replay_data = replay_data[start_index:-1] + + if replay_data[0] is None: + replay_data = replay_data[1:] + replay_data.sort(key=lambda x: x[Replays.TIMES]) # sort replay data based on time for x in range(10):
travis: try to unbreak the build
@@ -13,6 +13,11 @@ matrix: - os: osx compiler: gcc +script: + # workaround git not retaining mtimes and bison/flex not being uptodate + - touch conffile.yy.c conffile.tab.c conffile.tab.h + - make + env: global: # The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
Add IntRange And and Or comments Thanks again to Daniel Wright
@@ -646,10 +646,49 @@ func (x IntRange) Or(y IntRange) (z IntRange, ok bool) { return IntRange{zMin, zMax}, true } +// The andMax and orMax algorithms are tricky. +// +// First, some notation. Let x and y be intervals, and in math notation, denote +// those intervals' bounds as [xMin, xMax] and [yMin, yMax]. In Go term...
Add comment about write buffer.
@@ -296,6 +296,10 @@ int main(void) int sensor_init_ret = 0; bool first_soft_reset = true; + // Uncomment to disable write buffer to get precise faults. + // NOTE: Cache should be disabled on M7. + //SCnSCB->ACTLR |= SCnSCB_ACTLR_DISDEFWBUF_Msk; + // STM32F4xx HAL library initialization: // - Set NVIC Group Priority to...
yolint_next with swig ignore Note: mandatory check (NEED_CHECK) was skipped
@@ -4,13 +4,13 @@ RESOURCES_LIBRARY() IF (HOST_OS_LINUX) DECLARE_EXTERNAL_RESOURCE(YOLINT sbr:1172025912) - DECLARE_EXTERNAL_RESOURCE(YOLINT_NEXT sbr:1190293315) + DECLARE_EXTERNAL_RESOURCE(YOLINT_NEXT sbr:1193530474) ELSEIF (HOST_OS_DARWIN) DECLARE_EXTERNAL_RESOURCE(YOLINT sbr:1172029928) - DECLARE_EXTERNAL_RESOURCE(Y...
CMSIS-Driver: Minor I2C slave event description change (documentation)
@@ -100,10 +100,10 @@ typedef volatile struct _ARM_I2C_STATUS { /****** I2C Event *****/ #define ARM_I2C_EVENT_TRANSFER_DONE (1UL << 0) ///< Master/Slave Transmit/Receive finished #define ARM_I2C_EVENT_TRANSFER_INCOMPLETE (1UL << 1) ///< Master/Slave Transmit/Receive incomplete transfer -#define ARM_I2C_EVENT_SLAVE_TRA...
rename CELIX_FACILITY_NULL to CELIX_FACILITY_FRAMEWORK
@@ -89,7 +89,7 @@ const char* celix_strerror(celix_status_t status); * The facility of celix default error code * */ -#define CELIX_FACILITY_NULL 1 +#define CELIX_FACILITY_FRAMEWORK 1 /*! * The facility of the http suppoter error code @@ -141,26 +141,26 @@ const char* celix_strerror(celix_status_t status); /*! * Except...
zephyr test: hostevent console with invalid arguments Test the "hostevent" command with invalid arguments. BRANCH=none TEST=./twister -T zephyr/test/drivers Code-Coverage: Zoss
@@ -44,6 +44,22 @@ ZTEST_USER(console_cmd_hostevent, test_hostevent) "Failed default print"); } +/* hostevent with invalid arguments */ +ZTEST_USER(console_cmd_hostevent, test_hostevent_invalid) +{ + int rv; + + /* Test invalid sub-command */ + rv = shell_execute_cmd(get_ec_shell(), "hostevent invalid 0xFFFF"); + zasse...
POLLER -> POLLERR
@@ -418,7 +418,7 @@ static void janet_loop1(void) { for (int i = 0; i < janet_vm_loop_count;) { int revents = janet_vm_pollfds[i].revents; janet_vm_pollfds[i].revents = 0; - if ((janet_vm_pollfds[i].events | POLLHUP | POLLER) & revents) { + if ((janet_vm_pollfds[i].events | POLLHUP | POLLERR) & revents) { size_t delta ...
better lovrBufferIsTemporary;
@@ -456,7 +456,7 @@ Buffer* lovrBufferCreate(BufferInfo* info, void** data) { void lovrBufferDestroy(void* ref) { Buffer* buffer = ref; - if (buffer->pointer) return; + if (lovrBufferIsTemporary(buffer)) return; gpu_buffer_destroy(buffer->gpu); free(buffer); } @@ -466,7 +466,7 @@ const BufferInfo* lovrBufferGetInfo(Buf...
Update LogManagerImpl.cpp Append path separator if utility function returned us a path without trailing slash
@@ -119,7 +119,11 @@ namespace ARIASDK_NS_BEGIN { std::string tenantId = (const char *)m_logConfiguration[CFG_STR_PRIMARY_TOKEN]; tenantId = MAT::tenantTokenToId(tenantId); - + if (cacheFilePath.find(PATH_SEPARATOR_CHAR) == std::string::npos) + { + // append path separator if required + cacheFilePath += PATH_SEPARATOR_...
Fix segfault with "xwayland false" Commit failed to consider the edge case where xwayland is disabled via the sway config. This leads to a SEGFAULT when setting the xwayland cursor since the xwayland server is not running.
@@ -751,10 +751,10 @@ void seat_configure_xcursor(struct sway_seat *seat) { } #if HAVE_XWAYLAND - if (!server.xwayland.xcursor_manager || + if (config->xwayland && (!server.xwayland.xcursor_manager || !xcursor_manager_is_named(server.xwayland.xcursor_manager, cursor_theme) || - server.xwayland.xcursor_manager->size != ...
Fix issue in logic expression. Both operands in a logic OR expression where the same.
@@ -722,7 +722,8 @@ static int _yr_scan_verify_re_match( if ((forward_matches == -1) && (STRING_IS_WIDE(ac_match->string) && - !(STRING_IS_BASE64_WIDE(ac_match->string) || STRING_IS_BASE64_WIDE(ac_match->string)))) + !(STRING_IS_BASE64(ac_match->string) || + STRING_IS_BASE64_WIDE(ac_match->string)))) { flags |= RE_FLAG...
bluetooth: Validate data, ptr[5] and ptr[6] after calloc
@@ -1003,6 +1003,8 @@ static int __bt_convert_string_to_uuid(const char *string, unsigned int val0, val4; unsigned short val1, val2, val3, val5; data = calloc(1, sizeof(char) * 16); + if (data == NULL) + return BT_ERROR_OUT_OF_MEMORY; /* UUID format : %08x-%04hx-%04hx-%04hx-%08x%04hx */ strncpy(str_ptr, string, 36); @@...
feat(fabric test case): add fabric test case "BoatHlfabricWalletInit_Fail_wallet_config_NULL"
@@ -875,6 +875,19 @@ START_TEST(test_001CreateWallet_0022BoatHlfabricWalletInit_SUCCESS) } END_TEST +START_TEST(test_001CreateWallet_0023BoatHlfabricWalletInit_Fail_wallet_config_NULL) +{ + BSINT32 rtnVal; + BSINT32 index; + BoatHlfabricWallet *g_fabric_wallet_ptr = NULL; + BoatHlfabricWalletConfig wallet_config = get_...
naive: handle malformed data in transfer-point
['breach' bo] == :: + ++ address-transfer + |= params=(map @t json) + ^- (unit [@ux ?]) + ?~ data=(~(get by params) 'data') ~ + =; ans=(unit [add=(unit @ux) r=?]) + ?~ ans ~ + ?~ add.u.ans ~ + (some [u.add.u.ans r.u.ans]) + %. u.data + =, dejs-soft:format + %- ot + ~[['address' (cu to-hex so)] ['reset' bo]] + :: ++ add...
Speed up incr/decr by replacing snprintf. Uses fast itoa_u64 function instead. Fixes
@@ -4363,7 +4363,7 @@ enum delta_result_type do_add_delta(conn *c, const char *key, const size_t nkey, } pthread_mutex_unlock(&c->thread->stats.mutex); - snprintf(buf, INCR_MAX_STORAGE_LEN, "%llu", (unsigned long long)value); + itoa_u64(value, buf); res = strlen(buf); /* refcount == 2 means we are the only ones holding...
Shorten generated file name to _provides.cpp to support Windows.
@@ -6,6 +6,7 @@ SRCDIR= YMAKE=ymake ECHO=echo INCLUDE_EXTS=.h .hh .hpp .rli .cuh .inc .i +CPP_EXT=.cpp OBJ_SUF= CFLAGS= @@ -2128,8 +2129,8 @@ macro FLAT_JOIN_SRCS_GLOBAL(Out, Src...) { ### Specifies provided features. The names must be C identifiers. Different ### libraries providing the same features can not be linked...
fix issue of deadlock detector
@@ -49,7 +49,7 @@ extern void test_deadlock(void); #define XDAG_MUTEX_LOCK(x) \ do {\ apply_lock_before(pthread_self(), &x, #x);\ - pthread_mutex_trylock(&x);\ + pthread_mutex_lock(&x);\ apply_lock_after(pthread_self(), &x);\ } while(0)
Remove useless if in memContextFree(). If the upper bound of the loop is 0 then nothing will be done, making the if condition extraneous.
@@ -802,7 +802,6 @@ memContextFree(MemContext *this) THROW(AssertError, "cannot free inactive context"); // Free child contexts - if (this->contextChildListSize > 0) for (unsigned int contextIdx = 0; contextIdx < this->contextChildListSize; contextIdx++) if (this->contextChildList[contextIdx] && this->contextChildList[...
phb4: Fix lost bit in PE number on config accesses A PE number can be up to 9 bits, using a uint8_t won't fly.. That was causing error on config accesses to freeze the wrong PE.
@@ -257,7 +257,7 @@ static inline void phb4_ioda_sel(struct phb4 *p, uint32_t table, */ static int64_t phb4_pcicfg_check(struct phb4 *p, uint32_t bdfn, uint32_t offset, uint32_t size, - uint8_t *pe) + uint16_t *pe) { uint32_t sm = size - 1; @@ -437,7 +437,7 @@ static int64_t phb4_pcicfg_read(struct phb4 *p, uint32_t bd...
arch/arm/src/lc823450/lc823450_i2c.c: Remove extra rounding after MSEC2TIC change to round up
@@ -305,7 +305,7 @@ lc823450_i2c_sem_waitdone(struct lc823450_i2c_priv_s *priv) /* Get the timeout value */ - timeout = MSEC2TICK(priv->timeoms + (MSEC_PER_TICK / 2)); + timeout = MSEC2TICK(priv->timeoms); timeout += SEC2TICK(CONFIG_LC823450_I2C_TIMEOSEC); /* Signal the interrupt handler that we are waiting. NOTE: Inte...
HV: add px cx data of bxt n3350 SOC The cpu model name of "Intel(R) Celeron(R) CPU N3350 @ 1.10GHz" is used in APL UP2 board, which is in Acrn official support list. Acked-by: Eddie Dong
@@ -64,6 +64,15 @@ static const struct cpu_px_data px_j3455[] = { {0x320UL, 0UL, 0xAUL, 0xAUL, 0x0800UL, 0x0800UL} /* P8 */ }; +/* The table includes cpu px info of Intel N3350 SoC */ +static const struct cpu_px_data px_n3350[] = { + {0x44DUL, 0UL, 0xAUL, 0xAUL, 0x1800UL, 0x1800UL}, /* P0 */ + {0x44CUL, 0UL, 0xAUL, 0xA...
links: pass contact metadata to link items
@@ -71,10 +71,10 @@ export const LinkList = (props) => { </div> { Array.from(props.graph).map(([date, node]) => { const { nickname, color, avatar } = - getContactDetails(props.contacts[ship]); - + getContactDetails(props.contacts[node?.post?.author]); return ( <LinkItem + key={date} resource={resource} node={node} nick...
Fix UEFI defect in which transport and payload size flags persist across CLI invocations (works as expected for Windows/Linux)
@@ -119,9 +119,7 @@ static EFI_STATUS showVersion(struct Command *pCmd); static EFI_STATUS GetPbrMode(UINT32 *Mode); static EFI_STATUS SetPbrTag(CHAR16 *pName, CHAR16 *pDescription); static EFI_STATUS ResetPbrSession(UINT32 TagId); -#ifdef OS_BUILD static EFI_STATUS SetDefaultProtocolAndPayloadSizeOptions(); -#endif /*...
Update Sydr config We renamed `merge` to `cmin` in Sydr 1.8.0. Moreover, libFuzzer `-jobs=1000 -workers=$(FUZZ_JOBS)` asks fuzzer to find 1000 crashes/ooms/timeouts in `FUZZ_JOBS` fuzzing processes.
@@ -287,8 +287,8 @@ sydr-fuzz: $(PROJECT).sydr$(SUFFIX) $(PROJECT)$(SUFFIX) FORCE [libfuzzer] path = "$(PROJECT)$(SUFFIX)" - args = "-jobs=$(FUZZ_JOBS) -workers=$(FUZZ_JOBS) -rss_limit_mb=$(FUZZ_MEM) $(FUZZ_DIR)" - merge = false + args = "-jobs=1000 -workers=$(FUZZ_JOBS) -rss_limit_mb=$(FUZZ_MEM) $(FUZZ_DIR)" + cmin = ...
arm: fix backtrace busyloop
@@ -52,14 +52,13 @@ static int backtrace(uintptr_t *base, uintptr_t *limit, if (pc) { - i++; if ((*skip)-- <= 0) { - *buffer++ = pc; + buffer[i++] = pc; } } - for (; i < size; fp = (uintptr_t *)*(fp - 1), i++) + for (; i < size; fp = (uintptr_t *)*(fp - 1)) { if (fp > limit || fp < base || *fp == 0) { @@ -68,7 +67,7 @@...
test-suite: fix stdout summary alignment for metis test
@@ -52,7 +52,7 @@ echo echo '-------------------------------------------------- SUMMARY --------------------------------------------------' echo echo Package version............... : $PACKAGE-$VERSION -echo OHPC compiler toolchain........ : $LMOD_FAMILY_COMPILER +echo OHPC compiler toolchain....... : $LMOD_FAMILY_COMPI...
wpa_supplicant: try install gtk before send 2 of 2
@@ -1625,20 +1625,7 @@ static void wpa_supplicant_process_1_of_2(struct wpa_sm *sm, wpa_sm_set_seq(sm, key, 0); sm->key_info=key_info; - if (wpa_supplicant_send_2_of_2(sm, key, ver, key_info)) - goto failed; - - return; - -failed: - wpa_sm_deauthenticate(sm, WLAN_REASON_UNSPECIFIED); -} - -static int wpa_supplicant_sen...
Fix cmake build issue This is due to a cmake oddity: when CONFIGURE_COMMAND is not set, `ExternalProject_Add` defaults to running cmake with no arguments.
@@ -575,9 +575,10 @@ ENDIF () IF (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/misc/h2get/CMakeLists.txt) ExternalProject_Add(h2get + CONFIGURE_COMMAND cmake -DH2GET_SSL_ROOT_DIR=${H2GET_SSL_ROOT_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/misc/h2get SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/misc/h2get BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/h...
Minor adjustments to common prefix code updated in
@@ -233,17 +233,17 @@ regExpPrefix(const String *expression) // Will there be any characters in the prefix? if (expressionIdx > 1) { - // Search again and make sure there is not another begin anchor. If so we won't be able to use the prefix + // Search the rest of the string for another begin anchor unsigned int anchor...
Using 'all' as default target in Makefile.
@@ -21,11 +21,11 @@ NXT_EXEC_LINK = $NXT_EXEC_LINK $NXT_LD_OPT NXT_SHARED_LOCAL_LINK = $NXT_SHARED_LOCAL_LINK $NXT_LD_OPT NXT_MODULE_LINK = $NXT_MODULE_LINK +all: $NXT_DAEMON + .PHONY: $NXT_DAEMON $NXT_DAEMON: $NXT_BUILD_DIR/$NXT_DAEMON -all: $NXT_DAEMON - END
[UEFI] Enable CPU caching
@@ -119,6 +119,33 @@ typedef union { efi_physical_address_t phys_addr; } pte_t; +/* + * Control-register utility functions + */ + +static uintptr_t _get_cr0() { + uintptr_t cr0; + asm volatile("movq %%cr0, %0" : "=r"(cr0)); + return cr0; +} + +static void _set_cr0(uintptr_t cr0) { + asm volatile("mov %0, %%cr0" : : "r"...
dsp.h: fix -Wundef w/__mips_dsp_rev
@@ -93,7 +93,7 @@ extern "C" { #define WEBP_USE_MIPS32 #if (__mips_isa_rev >= 2) #define WEBP_USE_MIPS32_R2 -#if defined(__mips_dspr2) || (__mips_dsp_rev >= 2) +#if defined(__mips_dspr2) || (defined(__mips_dsp_rev) && __mips_dsp_rev >= 2) #define WEBP_USE_MIPS_DSP_R2 #endif #endif
Moved the restarting of the request timer outside of if-else clause. The conditions being checked for will now only log and the timer will be restarted regardless. Also updated the comment to explain why the timer is restarted regardless if the Get Stream Request message is published successfully or not.
@@ -1257,17 +1257,25 @@ static OTA_Err_t prvPublishGetStreamMessage( OTA_FileContext_t * C ) if( eResult != IOT_MQTT_SUCCESS ) { + /* Don't return an error. Let max momentum catch it since this may be intermittent. */ OTA_LOG_L1( "[%s] Failed: %s\r\n", OTA_METHOD_NAME, pcTopicBuffer ); - /* Don't return an error. Let m...
[Bender] Make sure Bender is correct
@@ -7,11 +7,11 @@ package: dependencies: axi: { git: "https://github.com/pulp-platform/axi.git", version: 0.27.1 } - common_cells: { git: "https://github.com/pulp-platform/common_cells.git", version: 1.19.0 } - tech_cells_generic: { git: "https://github.com/pulp-platform/tech_cells_generic.git", version: 0.2.1 } - clus...
Fix testing on Windows 10 Running chkdsk on Windows 8 or 10 can cause drive caching to enter a bad state. This patch adds a workaround for this by re-running chkdsk until the drive is in a good state again.
@@ -176,6 +176,16 @@ def _compute_crc(hex_file_path): return data_crc32, embedded_crc32 +def _run_chkdsk(drive): + args = ["chkdsk", drive] + process = subprocess.Popen(args, stdin=subprocess.PIPE, + stdout=subprocess.PIPE, + stderr=subprocess.PIPE) + process.communicate(input='n\r\n') # Answer no if prompted + process...