message
stringlengths
6
474
diff
stringlengths
8
5.22k
Add missing LDR_IS_IMAGEMAPPING macro
@@ -574,6 +574,10 @@ LdrDisableThreadCalloutsForDll( // Resources +#define LDR_IS_DATAFILE(BaseAddress) (((ULONG_PTR)(BaseAddress)) & (ULONG_PTR)1) +#define LDR_IS_IMAGEMAPPING(BaseAddress) (((ULONG_PTR)(BaseAddress)) & (ULONG_PTR)2) +#define LDR_IS_RESOURCE(BaseAddress) (LDR_IS_IMAGEMAPPING(BaseAddress) || LDR_IS_DATA...
sixaxis: equalize scale
@@ -215,15 +215,15 @@ void sixaxis_read(void) { gyro_raw[2] = -gyro_raw[2]; } - //gyro_raw[0] = - gyro_raw[0]; - gyro_raw[1] = -gyro_raw[1]; - gyro_raw[2] = -gyro_raw[2]; + gyro_raw[0] = gyro_raw[0] * 0.061035156f * DEGTORAD; + gyro_raw[1] = -gyro_raw[1] * 0.061035156f * DEGTORAD; + gyro_raw[2] = -gyro_raw[2] * 0.06103...
backup: only log files that succeeded
@@ -18,15 +18,10 @@ KDBINIT="@KDB_DB_SYSTEM@/@KDB_DB_INIT@" TMPDIR="/var/tmp/elektra_backup/${TS}" -mkdir -p "$TMPDIR" 2>/dev/null -cp -a "$KDBSYSTEM" "${TMPDIR}/system_`basename $KDBSYSTEM`" 2>/dev/null -cp -a "$KDBUSER" "${TMPDIR}/user_`basename $KDBUSER`" 2>/dev/null -cp -a "$KDBSPEC" "${TMPDIR}/spec_`basename $KDBS...
take pingd and nic-loopback out of Makefile
@@ -3,7 +3,7 @@ OBJDUMP=riscv64-unknown-elf-objdump CFLAGS=-mcmodel=medany -std=gnu99 -O2 -fno-common -fno-builtin-printf -Wall LDFLAGS=-static -nostdlib -nostartfiles -lgcc -PROGRAMS = pwm blkdev accum charcount nic-loopback pingd +PROGRAMS = pwm blkdev accum charcount default: $(addsuffix .riscv,$(PROGRAMS))
examples/mkdir: check if the directory was made
#include <stdio.h> #include <sys/stat.h> #include <sys/types.h> +#include <sys/stat.h> #include <errno.h> void _mkdir(const char *path, int m) @@ -10,8 +11,25 @@ void _mkdir(const char *path, int m) printf("r = %d, errno = %d\n", r, errno); } +void check(const char *path) +{ + struct stat st; + int rc; + + rc = stat(pa...
Updated README include possible installation issue
@@ -28,6 +28,8 @@ In order to compile `CCL` you need a few libraries: ## Installing CLASS CCL uses CLASS as one of the possible ways of computing the matter power spectrum. In order to communicate with CLASS, CCL must be linked to its library. Before installing CCL proper you must therefore install this library first. ...
updates Readme according to ipc api changes
@@ -19,8 +19,7 @@ configuration from oidc-agent. If you have the required libraries installed you should be able to compile and install by running ``` -make -sudo make install +make && sudo make install ``` ## Configuration @@ -66,7 +65,7 @@ oidc-add <shortname> clients can use the provided api to communicate with oidc...
nimble/sm: Minor coding style fix
@@ -68,8 +68,6 @@ ble_sm_alg_encrypt(const uint8_t *key, const uint8_t *plaintext, swap_buf(tmp, plaintext, 16); - - if (tc_aes_encrypt(enc_data, tmp, &s) == TC_CRYPTO_FAIL) { return BLE_HS_EUNKNOWN; }
change alert message type
@@ -1147,7 +1147,7 @@ static int ssl_tls13_write_certificate_verify_body( mbedtls_ssl_context *ssl, { MBEDTLS_SSL_DEBUG_MSG( 1, ( "signature algorithm not in received or offered list." ) ); - MBEDTLS_SSL_PEND_FATAL_ALERT( MBEDTLS_SSL_ALERT_MSG_ILLEGAL_PARAMETER, + MBEDTLS_SSL_PEND_FATAL_ALERT( MBEDTLS_SSL_ALERT_MSG_HAN...
fixed segmentation fault on --save_rcascan
@@ -419,6 +419,7 @@ if(fd_socket_gpsd > 0) perror("failed to close gpsd socket"); } } + if(fd_weppcapng > 0) { writeisb(fd_weppcapng, 0, timestampstart, incommingcount); @@ -456,6 +457,26 @@ if(fd_pcapng > 0) } } +if(rcascanflag == true) + { + if(fd_rcascanpcapng > 0) + { + writeisb(fd_rcascanpcapng, 0, timestampstart,...
[hardware] Add DMA to waves
@@ -38,9 +38,27 @@ add wave -Group Control_Registers /mempool_tb/dut/i_ctrl_registers/* add wave -Group DMA /mempool_tb/dut/i_mempool_dma/* add wave -Group DMA -Group Reg /mempool_tb/dut/i_mempool_dma/i_mempool_dma_frontend_reg_top/* for {set group 0} {$group < [examine -radix dec /mempool_pkg::NumGroups]} {incr group}...
dm: gvt: Convert print output to acrn-dm logger Unifies the logs to pr_* interfaces instead of printf for better log management. Acked-by: Wang, Yu1
@@ -23,9 +23,9 @@ static int pci_gvt_debug; static struct pci_vdev *gvt_dev; -#define DPRINTF(params) do { if (pci_gvt_debug) printf params; } while (0) +#define DPRINTF(params) do { if (pci_gvt_debug) pr_dbg params; } while (0) -#define WPRINTF(params) (printf params) +#define WPRINTF(params) (pr_err params) struct PC...
[Tools] rename GCC_VERSION to GCC_VERSION_STR
@@ -162,7 +162,7 @@ def GCCResult(rtconfig, str): result += '#define HAVE_SIGVAL 1\n' if version: - result += '#define GCC_VERSION "%s"\n' % version + result += '#define GCC_VERSION_STR "%s"\n' % version result += '#define STDC "%s"\n' % stdc
Completions: Add namespace suggestion for `lsmeta`
@@ -338,7 +338,7 @@ end # ============= complete -c kdb -n 'not __fish_kdb_subcommand' -x -a '(__fish_kdb_print_subcommands -v)' -set -l completion_function '__fish_kdb_needs_namespace complete editor export file fstab get getmeta import ls set 1' +set -l completion_function '__fish_kdb_needs_namespace complete editor ...
odyssey: update INTERNALS link
- <p align="center"> <a href=""><img src="documentation/odyssey.png" /></a><br> </p> <br> - ## Odyssey Advanced multi-threaded PostgreSQL connection pooler and request router. @@ -57,7 +55,7 @@ callback approach. One of the main goal was to make code base understandable for new developers and to make an architecture ea...
Update devtools/import.py: update documentation versions It's easy to forget to update these documentation version numbers, so automate it now that the text formatting in doc/index.rst has been regularised.
@@ -227,9 +227,25 @@ if len(sys.argv) >= 1: outf.write(line) os.rename(tmpfilename, filename) + def _update_version_doc_file(dest, value, filename): + tmpfilename = filename + ".tmp" + with open(filename, encoding="utf-8") as inf: + with open(tmpfilename, "w", encoding="utf-8") as outf: + for line in inf: + if " wraps ...
Completions: Simplify code Fish already sorts possible completions.
@@ -155,7 +155,7 @@ function __fish_kdb_print_storage_plugins -d 'Print a list of available storage set -l regex '^(?:'(__join '|' $formats)')$' set -l storage_plugins (__fish_kdb_print_plugins | string match -r $regex) set -l storage_plugins $storage_plugins storage - printf '%s\n' $storage_plugins | sort + printf '%s...
abis/linux: add W_EXITCODE macro
#define WIFCONTINUED(x) ((x) == 0xffff) #define WCOREDUMP(x) ((x) & WCOREFLAG) +/* glibc extension, but also useful for kernels */ +#define W_EXITCODE(ret, sig) (((ret) << 8) | (sig)) + #endif //_ABIBITS_WAIT_H
GetGroupInfo: prefer data with pairs if available.
@@ -1199,23 +1199,24 @@ TVector<TConstArrayRef<float>> NCB::GetBaseline(const TTargetDataProviders& targ } TConstArrayRef<TQueryInfo> NCB::GetGroupInfo(const TTargetDataProviders& targetDataProviders) { + // prefer resultWithGroups if available + TConstArrayRef<TQueryInfo> result; + TConstArrayRef<TQueryInfo> resultWit...
[Gate] Manage if there is no pipe.
@@ -67,6 +67,11 @@ uint16_t PipeLink_Find(service_t *service) { // pipe is not in the same node RTFilter_Type(RTFilter_Reset(&result), PIPE_TYPE); + if (result.result_nbr == 0) + { + // No pipe found + return 0; + } } // keep pipe_id pipe_id = result.result_table[0]->id; @@ -92,6 +97,7 @@ uint16_t PipeLink_Find(service...
credit for fixing typo
@@ -6,6 +6,10 @@ Please notice that this change log contains changes for upcoming releases as wel ## Changes: +#### Change log v.0.6.5 + +**Fix**: (facil.io - logging) Fix typo in log output. Credit to @bjeanes (Bo Jeanes) for PR #39. + #### Change log v.0.6.4 **Fix**: (HTTP/WebSockets) fixed an issue where negative st...
Make new GUC short descriptions more consistent. Reported-by: Daniel Westermann (DWE) Discussion:
@@ -1298,7 +1298,7 @@ static struct config_bool ConfigureNamesBool[] = }, { {"recovery_prefetch", PGC_SIGHUP, WAL_SETTINGS, - gettext_noop("Prefetch referenced blocks during recovery"), + gettext_noop("Prefetch referenced blocks during recovery."), gettext_noop("Read ahead of the current replay position to find uncache...
update mapkit_sdk for android
@@ -22,8 +22,8 @@ IF (OS_LINUX) "-L$MAPKIT_SDK_RESOURCE_GLOBAL/mapkit_sdk/lib/x86_64-linux-gnu" ) ELSEIF (OS_ANDROID) - # protobuf 2.6.1 - DECLARE_EXTERNAL_RESOURCE(MAPKIT_SDK sbr:549833385) + # protobuf 3.6.1 + DECLARE_EXTERNAL_RESOURCE(MAPKIT_SDK sbr:881642915) CFLAGS( GLOBAL "-I$MAPKIT_SDK_RESOURCE_GLOBAL/mapkit_sdk...
[mod_accesslog] flush file log buffer at 8k size
@@ -1144,7 +1144,7 @@ REQUESTDONE_FUNC(log_access_write) { else { buffer_append_string_len(b, CONST_STR_LEN("\n")); - if (flush || buffer_string_length(b) >= BUFFER_MAX_REUSE_SIZE) { + if (flush || buffer_string_length(b) >= 8192) { if (!accesslog_write_all(p->conf.log_access_fd, b)) { log_perror(con->conf.errh, __FILE...
Azure: we're seeing bus errors and segfaults in scope app. Difficult to repro. Try checking uname results?
@@ -161,8 +161,12 @@ check_kernel_version(void) if (uname(&buffer)) { return 0; } + printf("uname release = %s\n", buffer.release); + token = strtok(buffer.release, separator); val = atoi(token); + printf("major version = %d\n", val); + if (val < 3) { return 0; } else if (val > 3){ @@ -170,7 +174,9 @@ check_kernel_vers...
[sbt] Remove the firrtl subproject
@@ -69,21 +69,16 @@ def isolateAllTests(tests: Seq[TestDefinition]) = tests map { test => // Subproject definitions begin // // NB: FIRRTL should not be a managed dependency of chisel or rocketchip. -// Instead, they will get firrtl from the JAR file placed in /lib +// Instead, they will get firrtl from the JAR file pl...
Fix side effect due to Assert() in UnpackCheckPointRecord().
@@ -8428,7 +8428,7 @@ UnpackCheckPointRecord( } else { - Assert(remainderLen = ckptExtended->dtxCheckpointLen); + Assert(remainderLen == ckptExtended->dtxCheckpointLen); ckptExtended->masterMirroringCheckpointLen = 0; ckptExtended->ptas = NULL; }
Augeas: Remove unnecessary CMake code
@@ -41,6 +41,3 @@ add_plugin ( LINK_ELEKTRA elektra-meta elektra-proposal LINK_LIBRARIES ${AUGEAS_PLUGIN_LIBRARIES} TEST_ENVIRONMENT "ASAN_OPTIONS=detect_container_overflow=0") -if (ADDTESTING_PHASE) - include (LibAddMacros) -endif ()
add linker flag
@@ -52,7 +52,7 @@ ifneq ($(ISWINDOWS), 1) CFLAGS += -fPIC endif -CULDFLAGS += -lcudart -lcublas -lcusparse +CULDFLAGS += -L/usr/local/google/home/bodonoghue/miniconda2/envs/python35/lib/ -lcudart -lcublas -lcusparse CUDAFLAGS = $(CFLAGS) -I/usr/local/cuda/include -Wno-c++11-long-long # turn off annoying long-long warni...
fix boolean semantics, safety
#!/bin/bash -set -e +set -euo pipefail +# set -x # XX use -s instead of hash pill HASH=$(git -C .. log -1 HEAD --format=%H -- sys/) export PILL_NAME="git-${HASH:0:10}" -if [ ! $PILL_FORCE ]; then +if [ ! ${PILL_FORCE:-} ]; then wget https://bootstrap.urbit.org/$PILL_NAME.pill -O urbit.pill && exit 0 fi # if wget failed...
out_stackdriver: update error message
@@ -382,7 +382,7 @@ static struct mk_list *parse_local_resource_id_to_list(char *local_resource_id, ret = flb_slist_split_string(list, local_resource_id, '.', max_split); if (ret == -1 || mk_list_size(list) != max_split) { - flb_error("error parsing local_resource_id for type %s", type); + flb_error("error parsing loca...
Remove extraneous inline specifications
@@ -60,7 +60,7 @@ class ILMTHREAD_EXPORT Lock public: ILMBASE_DEPRECATED ("replace with std::lock_guard or std::unique_lock") - inline Lock (const Mutex& m, bool autoLock = true): + Lock (const Mutex& m, bool autoLock = true): _mutex (const_cast<Mutex &>(m)), _locked (false) { if (autoLock) @@ -70,7 +70,7 @@ class ILMT...
Define lcb::io::ConnectionRequest This isn't used anywhere yet, but I didn't want to end up with massive commits. Tested-by: Build Bot
@@ -199,5 +199,24 @@ lcbio_connreq_cancel(lcbio_CONNREQ *req); #ifdef __cplusplus } + +namespace lcb { +namespace io { + +class ConnectionRequest { +public: + virtual void cancel() = 0; + virtual ~ConnectionRequest() {} + static void cancel(ConnectionRequest **pp) { + if (*pp) { + (*pp)->cancel(); + *pp = NULL; + } + }...
subproc: kill a persistent pid if data cannot be sent to it
@@ -316,6 +316,7 @@ bool subproc_Run(honggfuzz_t * hfuzz, fuzzer_t * fuzzer) arch_prepareParent(hfuzz, fuzzer); if (hfuzz->persistent == true && subproc_persistentSendFile(fuzzer) == false) { LOG_W("Could not send file contents to the persistent process"); + kill(fuzzer->persistentPid, SIGKILL); } arch_reapChild(hfuzz,...
Add macros for the KDF algorithm names. This avoids the problems with PBKDF2 and SCRYPT not being of the same form as the rest.
@@ -128,6 +128,16 @@ extern "C" { #define OSSL_KDF_PARAM_SSHKDF_TYPE "type" /* int */ #define OSSL_KDF_PARAM_SIZE "size" /* size_t */ +/* Known KDF names */ +#define OSSL_KDF_NAME_HKDF "HKDF" +#define OSSL_KDF_NAME_PBKDF2 "PBKDF2" +#define OSSL_KDF_NAME_SCRYPT "id-scrypt" +#define OSSL_KDF_NAME_SSHKDF "SSHKDF" +#define...
Changed casting to use intptr_t.
inline static int uart_hal_dev_get_id(struct uart_dev *dev) { - return (int)(dev->ud_priv) - 1; + return (intptr_t)(dev->ud_priv) - 1; } inline static void uart_hal_dev_set_id(struct uart_dev *dev, int id) { - dev->ud_priv = (void *)(id + 1); + dev->ud_priv = (void *)((intptr_t)(id + 1)); } static void
[dpos] Disable tx execution by the block factory, temporarily Currently the implementation is incomplete. For tx execution, the block factory needs the state db object.
@@ -176,10 +176,13 @@ func (bf *BlockFactory) worker() { } func (bf *BlockFactory) generateBlock(bpi *bpInfo, lpbNo types.BlockNo) (*types.Block, *state.BlockState, error) { + /* txOp := chain.NewCompTxOp( bf.txOp, newTxExec(bpi.bestBlock.BlockNo()+1, bpi.bestBlock.BlockID()), ) + */ + txOp := bf.txOp block, blockState...
Update 01bsp_cryptoengine.c when running CCMS_AUTH tests output is never compared because len_m is zero for both examples, use tag_len instead
@@ -162,7 +162,7 @@ static owerror_t run_aes_ccms_auth_forward_suite(aes_ccms_auth_forward_suite_t* suite[i].key, suite[i].len_tag) == E_SUCCESS) { - if(memcmp(suite[i].m, suite[i].expected_ciphertext, suite[i].len_m) == 0) { + if(memcmp(suite[i].m, suite[i].expected_ciphertext, suite[i].len_tag) == 0) { success++; } }...
modify CONFIG name for automount of artik053 user fs ARTIK053_AUTOMOUNT_USERFS is a title of automount functionality of artik053 usr fs. ARTIK053_AUTOMOUNT_USERFS_DEVNAME is one of components for ARTIK053_AUTOMOUNT_USERFS.
@@ -274,7 +274,7 @@ int board_app_initialize(void) artik053_configure_partitions(); -#ifdef CONFIG_ARTIK053_AUTOMOUNT_USERFS_DEVNAME +#ifdef CONFIG_ARTIK053_AUTOMOUNT_USERFS /* Initialize and mount user partition (if we have) */ ret = mksmartfs(CONFIG_ARTIK053_AUTOMOUNT_USERFS_DEVNAME, false); if (ret != OK) { @@ -285,...
Simplifies retransmit_needed(_by_packet) for callers that do not care about the reason
@@ -875,7 +875,9 @@ static int picoquic_retransmit_needed_by_packet(picoquic_cnx_t* cnx, int should_retransmit = (int) protoop_prepare_and_run_noparam(cnx, PROTOOP_NOPARAM_RETRANSMIT_NEEDED_BY_PACKET, outs, p, current_time, *timer_based); *timer_based = (int) outs[0]; + if (reason != NULL) { *reason = (protoop_id_t) ou...
fix tx rate in sdr_transceiver_ft8
@@ -35,7 +35,7 @@ cell xilinx.com:ip:axis_data_fifo:1.1 fifo_0 { # Create xlconstant cell xilinx.com:ip:xlconstant:1.1 const_0 { CONST_WIDTH 32 - CONST_VAL 85333332 + CONST_VAL 19999999 } # Create axis_interpolator
xive: Fix memory barrier in opal_xive_get_xirr() We can do the Ack cycle using a simple load but we need a sync before we look at the EQs, otherwise we might be missing the EQ update corresponding to a priority in the ACK cycle.
@@ -3029,9 +3029,10 @@ static int64_t opal_xive_get_xirr(uint32_t *out_xirr, bool just_poll) /* Perform the HV Ack cycle */ if (just_poll) - ack = in_be64(xs->tm_ring1 + TM_QW3_HV_PHYS) >> 48; + ack = __in_be64(xs->tm_ring1 + TM_QW3_HV_PHYS) >> 48; else - ack = in_be16(xs->tm_ring1 + TM_SPC_ACK_HV_REG); + ack = __in_be...
automation: Treat AStyle formatting as error Otherwise it will go unnoticed...
@@ -95,13 +95,12 @@ def run(ubxlib_dir, reporter): if not formatted: reporter.event(u_report.EVENT_TYPE_CHECK, u_report.EVENT_PASSED) + return_value = 0 else: reporter.event(u_report.EVENT_TYPE_CHECK, u_report.EVENT_WARNING) for line in formatted: reporter.event_extra_information(line) - # We don't return any errors ab...
do not try to get PMKID from group keys
@@ -2904,6 +2904,7 @@ eapauth_t *eap; wpakey_t *wpak; uint16_t keyinfo; uint16_t authlen; +uint16_t gkeyinfo; uint64_t rc; uint16_t kl; @@ -2913,8 +2914,8 @@ if(caplen < (uint32_t)WPAKEY_SIZE) } eap = (eapauth_t*)packet; wpak = (wpakey_t*)(packet +EAPAUTH_SIZE); - keyinfo = (getkeyinfo(ntohs(wpak->keyinfo))); + rc = by...
improve translate_make
@@ -194,8 +194,8 @@ glm_translate_z(mat4 m, float z) { CGLM_INLINE void glm_translate_make(mat4 m, vec3 v) { - mat4 t = GLM_MAT4_IDENTITY_INIT; - glm_translate_to(t, v, m); + glm_mat4_identity(m); + glm_vec_copy(v, m[3]); } /*!
Rename to run_step | Add comments
@@ -79,15 +79,16 @@ do shift done -# check if the arg is found in the SKIP_LIST -do_skip() { +# return true if the arg is not found in the SKIP_LIST +run_step() { local value=$1 [[ ! " ${SKIP_LIST[*]} " =~ " ${value} " ]] } { -if do_skip "1"; then +# setup and install conda environment +if run_step "1"; then # note: lo...
fix script, remove useless arg
@@ -41,13 +41,12 @@ def main(): parser.add_argument("--lower-bits", help="use specified count of lower bits", type=int, default=32) parser.add_argument("--source-root", help="arcadia source root") parser.add_argument("--func-name", help="custom function name to be defined", default="DecimalMD5") - parser.add_argument("...
bttester/syscfg.yml: add GAP services Changes in config add "Appearance" characteristic and make "Device Name" characteristic writable, which allows to execute tests GAP/GAT/BV-05-C and GAP/GAT/BV-06-C.
@@ -104,6 +104,8 @@ syscfg.vals: BLE_SVC_GAP_PPCP_MIN_CONN_INTERVAL: 9 BLE_SVC_GAP_PPCP_MAX_CONN_INTERVAL: 30 BLE_SVC_GAP_PPCP_SUPERVISION_TMO: 2000 + BLE_SVC_GAP_APPEARANCE_WRITE_PERM: 0 + BLE_SVC_GAP_DEVICE_NAME_WRITE_PERM: 0 BLE_STORE_CONFIG_PERSIST: 0 BLE_MESH: 1
cleanup for deprecation
/** - * \brief - * Start DMA transfert to VRAM. - * - * \param from - * Source address. - * \param to - * Destination address in VRAM. - * \param len - * Number of word to transfert. - * * \deprecated Use DMA_xxx methods instead */ #define VDP_doVRamDMA(from, to, len) \ VDP_doDMA(VDP_DMA_VRAM, from, to, len) /** - * \b...
Minor enhancement in docu.
@@ -14,8 +14,8 @@ extern "C" { * :: Predefined Constants * * * * The following constants should only be changed with caution because * -* internal consistency may be affected. The default values should be suitable * -* for almost all environments though. * +* they have been aligned to maintain internal consistency. The...
feat(boat for L610): update boat for L610, add chainmaker and fabric , modify the interface for sha256 calculation
@@ -59,7 +59,7 @@ BOAT_RESULT BoatHash(const BoatHashAlgType type, const BUINT8 *input, BUINT32 in } else if (type == BOAT_HASH_SHA256) { - sha3_256(input, inputLen, hashed); + sha256_Raw(input, inputLen, hashed); if (hashedLen != NULL) { *hashedLen = 32;
Remove MacOS from CirrusCI. CirrusCI stopped supporting Intel but the arm builds are not working, even with the same steps that work on an arm Mac. Remove to unstick the build pipeline until this can be resolved.
@@ -62,22 +62,22 @@ freebsd_13_task: # MacOS Monterey # ---------------------------------------------------------------------------------------------------------------------------------- -macos_monterey_task: - osx_instance: - image: monterey-xcode +# macos_monterey_task: +# osx_instance: +# image: monterey-xcode - env...
Allow empty persoStringLen and additionalInputLen
@@ -728,6 +728,9 @@ static ACVP_RESULT acvp_build_drbg_register_cap(JSON_Object *cap_obj, ACVP_CAPS_ } else if (drbg_cap_mode->perso_len_max) { json_array_append_number(array, drbg_cap_mode->perso_len_max); } + if (!drbg_cap_mode->perso_len_min && !drbg_cap_mode->perso_len_max) { + json_array_append_number(array, 0); +...
[mod_webdav] fix theoretical NULL dereference fix theoretical NULL dereference identified by Coverity Scan possible for PROPFIND with specific atypical choices in lighttpd.conf: possible for getcontenttype if no content type matches resource and no default type configured in lighttpd.conf possible for getetag if etag d...
@@ -3172,7 +3172,18 @@ webdav_propfind_resource_props (const webdav_propfind_bufs * const restrict pb) continue; /*(error obtaining prop if reached)*/ + if (prop->name) webdav_xml_prop(pb->b_404, prop, NULL, 0); + else { + const struct live_prop_list *list = live_properties; + while (0 != list->len && (uint32_t)list->p...
Relax limits to 60ms average, 20ms deviation.
@@ -326,7 +326,7 @@ int mediatest_check_stats(mediatest_ctx_t* mt_ctx, media_test_type_enum media_ty uint64_t variance = (stats->sum_square_delays / stats->nb_frames) - (average * average); uint64_t sigma = (uint64_t)sqrt((double)variance); - if (average > 50000 || sigma > 10000 || stats->max_delay > 200000) { + if (av...
USAGE.md: fix 'Anddoid' -> 'Android' typo
@@ -39,7 +39,7 @@ It should work under the following operating systems: | **GNU/Linux** | Works | ptrace() API (x86, x86-64 disassembly support)| | **FreeBSD** | Works | POSIX signal interface | | **Mac OS X** | Works | POSIX signal interface/Mac OS X crash reports (x86-64/x86 disassembly support) | -| **Anddoid** | Wo...
Updating qp_dpe_optimizer.out to reflect the updated qp_dpe.out because of partition selector undo selection.
@@ -341,6 +341,67 @@ select * from (select count(*) over (order by a rows between 1 preceding and 1 f (1 row) RESET ALL; +-- ---------------------------------------------------------------------- +-- Test: DPE: Failure to remove unnecessary partitions +-- ----------------------------------------------------------------...
Fix mismatched name from comments
@@ -83,8 +83,8 @@ NTSTATUS KphpFilterDeviceIoControl( _In_ ULONG IoControlCode, _In_reads_bytes_(InBufferSize) PVOID InBuffer, _In_ ULONG InBufferSize, - _Out_writes_bytes_to_opt_(OutBufferSize, *BytesReturned) PVOID OutBuffer, - _In_ ULONG OutBufferSize, + _Out_writes_bytes_to_opt_(OutputBufferSize, *BytesReturned) PV...
Let's try installing some CPAN modules for CI.
@@ -11,6 +11,7 @@ env: - CHECKED=yes script: + - sudo cpanm File::Slurp Digest::MD5 - make NO_GIT_FILE=1 all run-all-tests addons: @@ -18,3 +19,4 @@ addons: packages: valgrind yasm + cpanminus
hv: vtd: remove global cache invalidation per vm Cacheline is flushed on EPT entry change, no need to invalidate cache globally when VM created per VM.
@@ -1300,9 +1300,6 @@ int32_t move_pt_device(const struct iommu_domain *from_domain, struct iommu_doma void enable_iommu(void) { - if (!iommu_page_walk_coherent) { - cache_flush_invalidate_all(); - } do_action_for_iommus(dmar_enable); }
interface: fix default app tiles linking as anchor
@@ -18,7 +18,7 @@ export default class Tile extends React.Component { ); if (to) { - if (routeList.indexOf(to) === -1) { + if (routeList.indexOf(to) !== -1 || to === '/~landscape/home' || to === '/~profile') { childElement= (<Link to={to}>{childElement}</Link>); } else { childElement= (<a href={to}>{childElement}</a>);...
devif: making use of power of two pool size
#define INIT_POOL_SIZE 16 +STATIC_ASSERT((INIT_POOL_SIZE & (INIT_POOL_SIZE - 1)) == 0, "must be a power of two"); + struct region_pool { // IDs are inserted and may have to increase size at some point @@ -132,7 +134,7 @@ static errval_t region_pool_grow(struct region_pool* pool) struct region* region; for (int i = 0; i...
hal/arm/cpu.c: duplicate assignment removed
@@ -65,7 +65,6 @@ int hal_cpuCreateContext(cpu_context_t **nctx, void *start, void *kstack, size_t ctx->lr = 0xeeeeeeee; ctx->pc = (u32)start; - ctx->r0 = (u32)arg; /* Enable interrupts, set normal execution mode */ if (ustack != NULL) {
Add tests for CodeLite debugenvs
end function suite.OnProjectCfg_Environment() + debugenvs { "ENV_ONE=1", "ENV_TWO=2" } prepare() codelite.project.environment(cfg) test.capture( ' <Environment EnvVarSetName="&lt;Use Defaults&gt;" DbgSetName="&lt;Use Defaults&gt;">\n' .. -' <![CDATA[]]>\n' .. +' <![CDATA[ENV_ONE=1\n' .. +'ENV_TWO=2]]>\n' .. ' </Environ...
fix: echo-bot shouldn't echo other bots
@@ -19,6 +19,10 @@ void on_message_create( const discord_user_t *self, const discord_message_t *message) { + // make sure bot doesn't echoes other bots + if (true == message->author->bot) + return; + // make sure it doesn't echoes itself if (strcmp(self->username, message->author->username)){ discord_send_message(clien...
removed debug error meaasage
@@ -219,9 +219,6 @@ ouista = macsta >> 24; essidptr = hash2500line +59; l = strlen(essidptr); - -fprintf(stderr, "wrong ESSID length %s\n", hash2500line); - passwdptr = strrchr(hash2500line, ':'); if((passwdptr -hash2500line) > 59) { @@ -240,8 +237,6 @@ if(l > 70) return; } - - memset(&essidbuffer, 0, 72); memcpy(&essi...
dbus: fix no announces on cascading parentKeys
@@ -118,18 +118,17 @@ int elektraDbusSet (Plugin * handle, KeySet * returned, Key * parentKey) } else { - if (!strncmp (keyName (parentKey), "/", 1)) - { - // fix announcement for cascading parent keys - // TODO what is the expected behavior? - } - else if (!strncmp (keyName (parentKey), "user", 4)) + int announceAll =...
fix HStack/VStack bug
@@ -148,6 +148,8 @@ typedef enum : NSUInteger { - (CGFloat)myMaxHeightWithMaxHeight:(CGFloat)maxHeight; - (void)measureSizeLightMatchParentWithMaxWidth:(CGFloat)maxWidth maxHeight:(CGFloat)maxHeight; - (CGFloat)measurePriority; +- (void)forceUseMatchParentForWidthMeasureType; +- (void)forceUseMatchParentForHeightMeasur...
netutils/dhcpc : add debug message for checking exceptional case This commit is to add debug message for checking exceptional case
@@ -481,7 +481,9 @@ int dhcpc_request(void *handle, struct dhcpc_state *presult) /* Loop until we receive the lease (or an error occurs) */ /* Set the IP address to INADDR_ANY. */ newaddr.s_addr = INADDR_ANY; - (void)netlib_set_ipv4addr(intf, &newaddr); + if (netlib_set_ipv4addr(intf, &newaddr) == ERROR) { + ndbg("netl...
host/mesh: fix paths in persistent storage All paths should be using bt_mesh instead of bt/mesh
@@ -1239,7 +1239,7 @@ static void clear_rpl(struct bt_mesh_rpl *rpl, void *user_data) return; } - snprintk(path, sizeof(path), "bt/mesh/RPL/%x", rpl->src); + snprintk(path, sizeof(path), "bt_mesh/RPL/%x", rpl->src); err = settings_save_one(path, NULL); if (err) { BT_ERR("Failed to clear RPL"); @@ -1388,7 +1388,7 @@ sta...
ble: Fix potential NULL pointer dereference in u_ble_data_intmod.c If memory allocation fails in initSpsConnection() this will now be handled correctly.
@@ -1161,10 +1161,12 @@ int32_t uBleDataConnectSps(int32_t bleHandle, // by the remote side. So then we don't have to do more here if (gapConnHandle != U_PORT_GATT_GAP_INVALID_CONNHANDLE) { + errorCode = (int32_t) U_ERROR_COMMON_NO_MEMORY; spsConnHandle = findFreeSpsConnHandle(); if (spsConnHandle != U_BLE_DATA_INVALID...
.travis.yml: In Ubuntu 16.04, qemu always exits with rc of 1.
@@ -92,7 +92,7 @@ jobs: - qemu-system-arm --version script: - make ${MAKEOPTS} -C mpy-cross - - make ${MAKEOPTS} -C ports/qemu-arm -f Makefile.test test + - make ${MAKEOPTS} -C ports/qemu-arm -f Makefile.test test || true after_failure: - grep "FAIL" ports/qemu-arm/build/console.out
fix Read() return value check in LMS64CProtocol::TransferPacket also improve error messages
@@ -441,29 +441,26 @@ int LMS64CProtocol::TransferPacket(GenericPacket& pkt) { for(int i=0; i<outLen; i+=packetLen) { - int bytesToSend = packetLen; if (callback_logData) - callback_logData(true, &outBuffer[outBufPos], bytesToSend); - if( Write(&outBuffer[outBufPos], bytesToSend) ) + callback_logData(true, &outBuffer[o...
Fixed the issue of configuration being shared between multiple loggers with different configuration
@@ -311,8 +311,8 @@ NSString *const ODWCFG_BOOL_SESSION_RESET_ENABLED = @"sessionResetEnabled"; +(nullable ODWLogConfiguration *)getLogConfigurationCopy { auto& config = LogManager::GetLogConfiguration(); - static ILogConfiguration configCopy(config); - return [[ODWLogConfiguration alloc] initWithILogConfiguration: &co...
[catboost] Remove unnecessary if
@@ -449,14 +449,13 @@ static void CollectChunks(const TConstArrayRef<char> blob, NCB::TQuantizedPool& ui32 featureIndex; ReadLittleEndian(&featureIndex, &epilog); - ui32 localFeatureIndex; - if (const auto* const it = pool.ColumnIndexToLocalIndex.FindPtr(featureIndex)) { - localFeatureIndex = *it; - } else { - localFea...
[F] Restore global_rpc_clb callback
@@ -1284,8 +1284,12 @@ nc_server_send_reply_io(struct nc_session *session, int io_timeout, struct nc_se } if (!rpc_act->priv) { + if (!global_rpc_clb) { /* no callback, reply with a not-implemented error */ reply = nc_server_reply_err(nc_err(NC_ERR_OP_NOT_SUPPORTED, NC_ERR_TYPE_PROT)); + } else { + reply = global_rpc_c...
we don't need to test available channels befor we run a driver test
@@ -7829,7 +7829,6 @@ if(showinterfaceflag == true) return EXIT_SUCCESS; } -cpa = 0; if(sl == 1) { while(channelscanlist1[cpa] != 0) @@ -7984,12 +7983,6 @@ if(showchannelsflag == true) globalclose(); } -if(testscanlist() == false) - { - errorcount++; - globalclose(); - } - if(checkdriverflag == true) { cpa = 0; @@ -799...
Disable inaccurate integer variance calculation for now
@@ -1137,6 +1137,8 @@ static double pixel_var_avx2_largebuf(const kvz_pixel *buf, const uint32_t len) return var_sum / len_f; } +#ifdef INACCURATE_VARIANCE_CALCULATION + // Assumes that u is a power of two static INLINE uint32_t ilog2(uint32_t u) { @@ -1220,6 +1222,15 @@ static double pixel_var_avx2(const kvz_pixel *bu...
Add append input mode
@@ -24,7 +24,8 @@ static void usage() { typedef enum { Tui_input_mode_normal = 0, - Tui_input_mode_piano = 1, + Tui_input_mode_append = 1, + Tui_input_mode_piano = 2, } Tui_input_mode; typedef enum { @@ -176,23 +177,12 @@ void tdraw_tui_cursor(WINDOW* win, int win_h, int win_w, Glyph const* gbuffer, Tui_input_mode inpu...
unix/dev: Enable all special methods.
#define MICROPY_MODULE_GETATTR (1) #define MICROPY_PY_CLASS_BASES (1) #define MICROPY_PY_DELATTR_SETATTR (1) +#define MICROPY_PY_ALL_SPECIAL_METHODS (1) +#define MICROPY_PY_ALL_INPLACE_SPECIAL_METHODS (1) #define MICROPY_PY_REVERSE_SPECIAL_METHODS (1) #define MICROPY_PY_BUILTINS_HELP (1) #define MICROPY_PY_BUILTINS_HEL...
docs: Add link to 20.01 test framework docs Type: docs
@@ -4,6 +4,7 @@ Test Framework Documentation {#test_framework_doc} PyDoc generated documentation for the "make test" framework is available for the following releases: +- [Test framework documentation for VPP 20.01](https://docs.fd.io/vpp/20.01/vpp_make_test/html) - [Test framework documentation for VPP 19.08](https://...
Handle port set rule not found during socket deletion gracefully
@@ -1292,9 +1292,13 @@ CxPlatDpRawPlumbRulesOnSocket( CxPlatDpRawInterfaceAddRules(Interface, &NewRule, 1); } } else { - CXPLAT_DBG_ASSERT(Rule); + // + // Due to memory allocation failures, we might not have this rule programmed on the interface. + // + if (Rule) { CxPlatDpRawClearPortBit( Rule->Pattern.IpPortSet.Port...
sysdeps/managarm: Handle msg_recv error gracefully
@@ -1142,7 +1142,10 @@ int sys_msg_send(int sockfd, const struct msghdr *hdr, int flags, ssize_t *lengt } int sys_msg_recv(int sockfd, struct msghdr *hdr, int flags, ssize_t *length) { - __ensure(hdr->msg_iovlen); + if(!hdr->msg_iovlen) { + return EMSGSIZE; + } + auto handle = getHandleForFd(sockfd); if (!handle) retur...
[mod_authn_gssapi] code reuse: fdevent_mkostemp()
#include "mod_auth_api.h" #include "base.h" #include "base64.h" +#include "fdevent.h" #include "http_header.h" #include "log.h" #include "plugin.h" @@ -207,12 +208,7 @@ static int mod_authn_gssapi_create_krb5_ccache(request_st * const r, plugin_data char * const ccname = kccname->ptr + sizeof("FILE:")-1; const size_t c...
Also build Cooja for script tests
@@ -5,7 +5,7 @@ CONTIKI=../.. all: clean summary -summary: $(TESTLOGS) +summary: cooja $(TESTLOGS) @cat *.testlog > summary @echo "========== Summary ==========" @cat summary @@ -16,3 +16,8 @@ summary: $(TESTLOGS) clean: @rm -f *.*log report summary + +cooja: $(CONTIKI)/tools/cooja/dist/cooja.jar + +$(CONTIKI)/tools/co...
If no concept, then print paramId
@@ -2112,6 +2112,7 @@ int grib_util_grib_data_quality_check(grib_handle* h, double min_val, double max { int err = 0; long min_field_value_allowed=0, max_field_value_allowed=0; + long paramId = 0; double dmin_allowed=0, dmax_allowed=0; grib_context* ctx = h->context; int is_error = 1; @@ -2142,6 +2143,11 @@ int grib_ut...
README: remove travis build status We have not been using Travis in a long time - we only use GitHub workflows at the moment.
<img src="./doc/BB02_logo_github.svg" width="345px"/> -[![Build Status](https://travis-ci.org/digitalbitbox/bitbox02-firmware.svg?branch=master)](https://travis-ci.org/digitalbitbox/bitbox02-firmware) ![CI](https://github.com/digitalbitbox/bitbox02-firmware/workflows/ci/badge.svg?branch=master) The BitBox02 is a hardwa...
Add option to dump linker map as build result
@@ -1714,6 +1714,14 @@ class LD(Linker): if self.type in (Linker.LLD, Linker.GOLD): self.ld_flags.append('-Wl,--gdb-index') + if is_positive('DUMP_LINKER_MAP'): + if self.type == Linker.LLD: + self.ld_flags.append('-Wl,-Map=${output;rootrel;suf=.map.lld:REALPRJNAME}') + elif self.type == Linker.GOLD: + self.ld_flags.ap...
HTTP Server : Unit test added for httpd_uri_match_wildcard() function as given in
@@ -167,3 +167,68 @@ TEST_CASE("Basic Functionality Tests", "[HTTP SERVER]") test_handler_limit(hd); TEST_ASSERT(httpd_stop(hd) == ESP_OK); } + +TEST_CASE("URI Wildcard Matcher Tests", "[HTTP SERVER]") +{ + struct uritest { + const char *template; + const char *uri; + bool matches; + }; + + struct uritest uris[] = { + ...
conn: merge lines
@@ -340,8 +340,7 @@ _conn_peek_cb(void* ptr_v, u3_noun res) if ( !can_u ) { // chan was closed; noop. // - u3z(ran_u->rid); - c3_free(ran_u); + u3z(ran_u->rid); c3_free(ran_u); u3z(res); return; } _conn_send_noun(can_u, u3nt(ran_u->rid, c3__peek, res));
remove unnecessary blocking operation. add comments why resume event is sent manually.
@@ -553,7 +553,6 @@ void dcd_remote_wakeup(uint8_t rhport) { (void)rhport; USB0.DVSTCTR0.BIT.WKUP = 1; - while (USB0.DVSTCTR0.BIT.WKUP) ; } void dcd_connect(uint8_t rhport) @@ -701,6 +700,11 @@ void dcd_int_handler(uint8_t rhport) } if (is0 & USB_IS0_SOFR) { if (_dcd.suspended) { + /* When USB host resumes caused by `d...
Replace modulo with multiply operator, fixes
@@ -577,12 +577,12 @@ END_OPERATOR BEGIN_OPERATOR(modulo) LOWERCASE_REQUIRES_BANG; + PORT(0, -1, IN); PORT(0, 1, IN); - PORT(0, 2, IN); PORT(1, 0, OUT); - Usz ia = index_of(PEEK(0, 1)); - Usz ib = index_of(PEEK(0, 2)); - POKE(1, 0, indexed_glyphs[ib == 0 ? 0 : (ia % ib)]); + Usz ia = index_of(PEEK(0, -1)); + Usz ib = i...
Added missing sysmodule
@@ -85,6 +85,11 @@ typedef enum SceSysmoduleModuleId { SCE_SYSMODULE_MARLIN_DOWNLOADER = 0x003B, //!< Marlin Downloader module SCE_SYSMODULE_MARLIN_APP_LIB = 0x003C, //!< Marlin AppLib module SCE_SYSMODULE_TELEPHONY_UTIL = 0x003D, //!< TelephonyUtil module + SCE_SYSMODULE_SHACCCG = 0x003E, //!< ShaccCg module + SCE_SYS...
Touch up send-txs
[~ ..prep] :: ++ poke-noun - |= a=@t + |= skip=@ud ^- [(list move) _this] - ?. =('start' a) [~ this] ~& 'loading txs...' =/ tox=(list cord) .^ (list cord) %cx /(scot %p our.bol)/home/(scot %da now.bol)/txs/txt == + =. tox (slag skip tox) =. txs %+ turn tox (cork trip tape-to-ux:ceremony) ~& :_ ~(wyt in see) 'waiting fo...
format thread_tc.c
@@ -547,7 +547,8 @@ static void thread9_entry(void *parameter) } } -static void test_thread_suspend(void){ +static void test_thread_suspend(void) +{ static rt_thread_t tid; rt_err_t ret_startup = -RT_ERROR; uint32_t count_before_suspend, count_before_resume, count_after_resume;
fix strict mode
@@ -102,6 +102,7 @@ int grib_tool_init(grib_runtime_options* options) int opt=grib_options_on("C")+grib_options_on("O"); options->dump_mode = "default"; + options->strict=1; /* Must set here as bufr_dump has its own -S option */ if (opt > 1) { printf("%s: simultaneous j/C/O options not allowed\n",grib_tool_name);
Add a constant time zero check function for 64-bit integers
@@ -182,6 +182,11 @@ static ossl_inline uint32_t constant_time_is_zero_32(uint32_t a) return constant_time_msb_32(~a & (a - 1)); } +static ossl_inline uint64_t constant_time_is_zero_64(uint64_t a) +{ + return constant_time_msb_64(~a & (a - 1)); +} + static ossl_inline unsigned int constant_time_eq(unsigned int a, unsig...
SOVERSION bump to version 5.5.23
@@ -53,7 +53,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_ # with backward compatible change and micro version is connected with any internal change of the library. set(SYSREPO_MAJOR_SOVERSION 5) set(SYSREPO_MINOR_SOVERSION 5) -set(SYSREPO_MICRO_SOVERSION 22) +set(SYSREPO_MICRO_S...
Added info about 'width' and 'height' object fields export
-ResComp 3.62 (November 2022) +ResComp 3.63 (December 2022) Copyright Stephane Dallongeville https://github.com/Stephane-D/SGDK @@ -254,10 +254,10 @@ Here's the accepted SGDK type(s) for each 'Tiled' type: string string (internally char*) Enum u8, u16, u32 -As you can see, you can also use your own enumerations in whic...
http_client: on proxy parse exception, do not release linked buf (oss-fuzz 27279)
@@ -717,7 +717,6 @@ struct flb_http_client *flb_http_client(struct flb_upstream_conn *u_conn, ret = proxy_parse(proxy, c); if (ret != 0) { flb_debug("[http_client] Something wrong with the http_proxy parsing"); - flb_free(buf); flb_http_client_destroy(c); return NULL; }