message
stringlengths
6
474
diff
stringlengths
8
5.22k
removed unnecessary limber check
@@ -848,12 +848,6 @@ static void get_k_interval(ccl_cosmology *cosmo,CCL_ClWorkspace *w, CCL_ClTracer *clt1,CCL_ClTracer *clt2,int l, double *lkmin,double *lkmax) { - if(l<w->l_limber) { - //If non-Limber, we need to integrate over the whole range of k. - *lkmin=log10(ccl_splines->K_MIN); - *lkmax=log10(ccl_splines->K_...
Fix typo in python script method name Change 'tranlation' -> 'translation' in the name of a method in `scripts/generate_ssl_debug_headers.py`.
@@ -188,7 +188,7 @@ class EnumDefinition: def span(self): return self._span - def generate_tranlation_function(self): + def generate_translation_function(self): """ Generate function for translating value to string """ @@ -287,7 +287,7 @@ def generate_ssl_debug_helpers(output_directory, mbedtls_root): if start in defin...
Extending the test.h with new header defines
@@ -121,6 +121,7 @@ typedef struct testcase_s { #define GTPv1(dsteth, dstip, srceth, srcip, tFlag, ...) GTP(dsteth, dstip, srceth, srcip, "00000000", (tFlag?"28":"20"), ##__VA_ARGS__) #define GTPv2(dsteth, dstip, srceth, srcip, tFlag, ...) GTP(dsteth, dstip, srceth, srcip, "00000000", (tFlag?"48":"40"), ##__VA_ARGS__) ...
chat: fixes unread marker on blur
@@ -100,6 +100,9 @@ export default class ChatWindow extends Component<ChatWindowProps, ChatWindowSta handleWindowFocus() { this.setState({ idle: false }); + if (this.virtualList?.window?.scrollTop === 0) { + this.dismissUnread(); + } } initialFetch() { @@ -121,7 +124,7 @@ export default class ChatWindow extends Compone...
gaelin: Apply PS8811 tuning parameters Applying tuning parameters recommended by retimer vendor. TEST=i2cxfer to read setting is correct. BRANCH=None Code-Coverage: Zoss
#include "usbc_config.h" #include "usbc_ppc.h" -#include <stdbool.h> - /* Console output macros */ #define CPRINTF(format, args...) cprintf(CC_CHARGER, format, ##args) #define CPRINTS(format, args...) cprints(CC_CHARGER, format, ##args) @@ -72,6 +70,21 @@ static int usba_retimer_init(int port) CPRINTS("A%d: PS8811 reti...
decoding net: remove another writeln() to match expected parsing format
@@ -282,7 +282,6 @@ add_process(S, Enum, NewS) :- Size is Limit + 1, %state_add_in_use(S3, region(OutId, block(0,Limit)), NewS), alloc(S2, Size, region(MMU_IN_ID, B), S3), - writeln(B), state_decrement_avail(S3, MMU_IN_ID, NumBlocks, NewS). iommu_enabled :-
pmix: Require libtool-ohpc instead of meta-package
@@ -23,7 +23,7 @@ Source1: OHPC_macros Patch0: singleton.5391e43.patch BuildRequires: libevent-devel -BuildRequires: lmod-ohpc ohpc-autotools +BuildRequires: lmod-ohpc libtool-ohpc %global install_path %{OHPC_ADMIN}/%{pname}
Add support for tab-completion of type arguments in \df, \do. Oversight in commit
@@ -3988,6 +3988,8 @@ psql_completion(const char *text, int start, int end) COMPLETE_WITH_QUERY(Query_for_list_of_fdws); else if (TailMatchesCS("\\df*")) COMPLETE_WITH_VERSIONED_SCHEMA_QUERY(Query_for_list_of_functions, NULL); + else if (HeadMatchesCS("\\df*")) + COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_datatypes, ...
Change the default rotation extension to cap instead of pcap
@@ -1922,7 +1922,7 @@ if(pcapoutname != NULL) strcpy(newpcapoutname, pcapoutname); while(stat(newpcapoutname, &statinfo) == 0) { - snprintf(newpcapoutname, PATH_MAX, "%s-%d.pcap", pcapoutname, c); + snprintf(newpcapoutname, PATH_MAX, "%s-%d.cap", pcapoutname, c); c++; } fd_pcap = hcxopenpcapdump(newpcapoutname); @@ -19...
tests: always re-initialize waitgroup before use
@@ -85,8 +85,8 @@ static void main_handler(void *arg) /* test RCU reclamation as kthreads attach and detach */ /* perform several rounds in which we spawn reader threads, write many * times to the test object, and then wait for all threads to finish. */ - waitgroup_init(&wg); for (i = 0; i < NROUNDS; i++) { + waitgroup...
Memory leak cleanups.
@@ -110,6 +110,17 @@ void telemetry_cleanup() LL_DELETE(subscribers, temp_sub); csp_close(temp_sub->server_conn.conn_handle); csp_close(temp_sub->client_conn.conn_handle); + + if (temp_sub->topics != NULL) + { + topic_list_item * temp_topic, * next_topic; + LL_FOREACH_SAFE(temp_sub->topics, temp_topic, next_topic) + { ...
perf(non-null judgment): add non-null judgment of "discoverOrderinfo" in BoatHlfabricDiscoverySubmit()
@@ -877,6 +877,10 @@ BOAT_RESULT BoatHlfabricDiscoverySubmit(BoatHlfabricTx *tx_ptr, const BoatHlfabr discoverResult.discoverConfig.discoverOrders.num += config_result->orderers[i]->value->n_endpoint; } discoverResult.discoverConfig.discoverOrders.discoverOrderinfo = BoatMalloc(discoverResult.discoverConfig.discoverOrd...
Fix Mac and Linux build script to fail on build break
@@ -54,6 +54,10 @@ if [ -f /usr/bin/rpmbuild ]; then export CMAKE_PACKAGE_TYPE=rpm fi + +# Fail on error +set -e + if [ "$2" == "release" ]; then # TODO: pass custom build flags? cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_PACKAGE_TYPE=$CMAKE_PACKAGE_TYPE .. @@ -67,6 +71,9 @@ fi #make cmake --build...
Fix makefile to remove tablespace-step target all Fixes and also aligns with upstream Don't need to setup the tablespace when calling `make` or `make install`, it should be setup only for the right target like `check` or `check-tests`.
@@ -127,7 +127,7 @@ installdirs-tests: installdirs # Get some extra C modules from contrib/spi -all: refint$(DLSUFFIX) autoinc$(DLSUFFIX) tablespace-setup hooktest query_info_hook_test +all: refint$(DLSUFFIX) autoinc$(DLSUFFIX) hooktest query_info_hook_test refint$(DLSUFFIX): $(top_builddir)/contrib/spi/refint$(DLSUFFI...
odissey: add cancel/rollback to config debug print
@@ -352,6 +352,10 @@ void od_schemeprint(od_scheme_t *scheme, od_log_t *log) if (route->user) od_log(log, NULL, " user '%s'", route->user); od_log(log, NULL, " ttl %d", route->ttl); + od_log(log, NULL, " cancel %s", + route->discard ? "yes" : "no"); + od_log(log, NULL, " rollback %s", + route->discard ? "yes" : "no"); ...
add static keyword on functions and variables only used in bootloader.c
@@ -26,8 +26,8 @@ static bootloader_state_t bootloader_state = BOOTLOADER_START_STATE; static bootloader_cmd_t bootloader_cmd; // variables use to save binary data in flash -uint8_t bootloader_data[MAX_FRAME_SIZE]; -uint16_t bootloader_data_size = 0; +static uint8_t bootloader_data[MAX_FRAME_SIZE]; +static uint16_t boo...
rpl-lite: add a missing NULL check on stats
@@ -117,7 +117,7 @@ rpl_neighbor_snprint(char *buf, int buflen, rpl_nbr_t *nbr) if(index >= buflen) { return index; } - if(stats->last_tx_time > 0) { + if(stats != NULL && stats->last_tx_time > 0) { index += snprintf(buf+index, buflen-index, " (last tx %u min ago", (unsigned)((clock_now - stats->last_tx_time) / (60 * C...
mask all signal in the udp pthreads In some cases, some signals (like SIGQUIT) that should only be processed by the main thread of the postmaster may be dispatched to rxThread. So we should and it is safe to block all signals in the udp pthreads. Fix
@@ -1370,16 +1370,7 @@ ic_set_pthread_sigmasks(sigset_t *old_sigs) sigset_t sigs; int err; - sigemptyset(&sigs); - - /* make our thread ignore these signals (which should allow that - * they be delivered to the main thread) */ - sigaddset(&sigs, SIGHUP); - sigaddset(&sigs, SIGINT); - sigaddset(&sigs, SIGTERM); - sigadd...
EVP_PKEY_CTRL_CIPHER can be used with encrypt/decrypt with GOST
@@ -2188,7 +2188,7 @@ static const struct translation_st evp_pkey_ctx_translations[] = { EVP_PKEY_CTRL_SCRYPT_MAXMEM_BYTES, "maxmem_bytes", NULL, OSSL_KDF_PARAM_SCRYPT_MAXMEM, OSSL_PARAM_UNSIGNED_INTEGER, NULL }, - { SET, -1, -1, EVP_PKEY_OP_KEYGEN, + { SET, -1, -1, EVP_PKEY_OP_KEYGEN | EVP_PKEY_OP_TYPE_CRYPT, EVP_PKEY...
zephyr/shim/include/zephyr_mkbp_event.h: Format with clang-format BRANCH=none TEST=none
* found in the LICENSE file. */ -#if !defined(__CROS_EC_MKBP_EVENT_H) || \ - defined(__CROS_EC_ZEPHYR_MKBP_EVENT_H) +#if !defined(__CROS_EC_MKBP_EVENT_H) || defined(__CROS_EC_ZEPHYR_MKBP_EVENT_H) #error "This file must only be included from mkbp_event.h. " \ "Include mkbp_event.h directly" #endif #define __CROS_EC_ZEPH...
libcxx: Speed up import script ``` thegeorg@thegeorg-maps:~/arcadia/contrib/libs/cxxsupp/libcxx$ time ./import ./import 0.88s user 0.83s system 2% cpu 1:08.48 total ``` ``` thegeorg@thegeorg-maps:~/arcadia-git/contrib/libs/cxxsupp/libcxx$ time ./import ./import 0.16s user 0.17s system 2% cpu 12.268 total ```
#!/bin/sh -e rev=338120 +output_dir="libcxx-r$rev" -svn export https://llvm.org/svn/llvm-project/libcxx/trunk@$rev libcxx-r$rev -cd libcxx-r$rev +svn checkout --depth=files --non-interactive https://llvm.org/svn/llvm-project/libcxx/trunk@$rev "$output_dir" +cd "$output_dir" -rm -r benchmarks cmake docs fuzzing lib test...
Addressing - ZMK Config Folders
--- id: customization -title: Customizing ZMK +title: Customizing ZMK/`zmk-config` folders sidebar_label: Customizing ZMK --- After verifying you can successfully flash the default firmware, you will probably want to begin customizing your keymap and other keyboard options. +[In the initial setup tutorial](user-setup),...
Optimization of kqueue event processing on connection close.
@@ -293,18 +293,27 @@ nxt_kqueue_delete(nxt_event_engine_t *engine, nxt_fd_event_t *ev) * Calling close() on a file descriptor will remove any kevents that * reference the descriptor. * - * nxt_kqueue_close() always returns true as there are pending events on - * closing file descriptor because kevent() passes whole ch...
build: set GNUPGHOME in Jenkinsfile Use a temporary directory as GNUPGHOME. This way we can clean it up after each test run. Also added the `gpg-connect-agent` command to kill any running gpg-agents.
@@ -1309,9 +1309,12 @@ def ctest(target = "Test") { , since they are known to fail in scenarios with high load. See also: https://issues.libelektra.org/2439 */ + sh 'export GNUPGHOME=`mktemp -d`' sh """ctest -j ${env.CTEST_PARALLEL_LEVEL} --force-new-ctest-process \ --output-on-failure --no-compress-output -T ${target}...
publish: make reducers able to handle duplicate updates now that we send updates both pre and post confirmation
@@ -60,18 +60,22 @@ export class PrimaryReducer { let book = Object.keys(json[host])[0]; let noteId = json[host][book]["note-id"]; if (state.notebooks[host] && state.notebooks[host][book]) { + if (state.notebooks[host][book].notes) { + if (state.notebooks[host][book].notes[noteId] && + state.notebooks[host][book].notes...
docs: have verb in sentence
@@ -195,7 +195,7 @@ The baresip project is using the BSD license. ## Contributing -Patches can sent via Github +Patches can be sent via Github [Pull-Requests](https://github.com/creytiv/baresip/pulls) or to the RE devel [mailing-list](http://lists.creytiv.com/mailman/listinfo/re-devel).
Fix flash size from 296K to 128K
@@ -53,7 +53,7 @@ ITCMRAM (xrw) : ORIGIN = 0x00001000, LENGTH = 60K /* Flash location depends on whether we are building for internal or external flash. */ /* This defaults to external and can be overridden on the linker command line. */ FLASH (rx) : ORIGIN = DEFINED(FLASH_TARGET_INT) ? 0x08000000 : 0x90000000, - LENGT...
fix compilation warning on windows, issue
@@ -93,7 +93,7 @@ void _mi_os_init(void) { if (si.dwAllocationGranularity > 0) os_alloc_granularity = si.dwAllocationGranularity; // get the VirtualAlloc2 function HINSTANCE hDll; - hDll = LoadLibrary("kernelbase.dll"); + hDll = LoadLibrary(TEXT("kernelbase.dll")); if (hDll != NULL) { // use VirtualAlloc2FromApp as it ...
py/bc0.h: Add comment that MP_BC_MAKE_CLOSURE/_DEFARGS take extra byte.
#define MP_BC_MAKE_FUNCTION (0x60) // uint #define MP_BC_MAKE_FUNCTION_DEFARGS (0x61) // uint -#define MP_BC_MAKE_CLOSURE (0x62) // uint -#define MP_BC_MAKE_CLOSURE_DEFARGS (0x63) // uint +#define MP_BC_MAKE_CLOSURE (0x62) // uint; byte +#define MP_BC_MAKE_CLOSURE_DEFARGS (0x63) // uint; byte #define MP_BC_CALL_FUNCTIO...
Fix bogus test failures in selfinterposetest that happened after previous failures.
@@ -217,6 +217,11 @@ testNoInterposedSymbolIsUsed(void** state) fail_msg("expected at least 17 files in ./test/selfinterpose/*.o"); int i; for (i=0; i<glob_obj.gl_pathc; i++) { + if (strstr(glob_obj.gl_pathv[i], "test.o")) { + printf("Skipping %s because it looks like a test file.\n", + glob_obj.gl_pathv[i]); + continu...
[bsp] remove RT_ASSERT() because UART not work now
@@ -68,10 +68,7 @@ static void RCC_Configuration(void) OscInit.PLL.PLLDIV = RCC_PLLDIV_2; OscInit.PLL.PLLMUL = RCC_PLLMUL_4; OscInit.PLL.PLLSource = RCC_PLLSOURCE_HSI; - if (HAL_RCC_OscConfig(&OscInit) != HAL_OK) - { - RT_ASSERT(RT_NULL); - } + HAL_RCC_OscConfig(&OscInit); /* Select PLL as system clock source and confi...
format_sockaddr: add trivial support for AF_LOCAL sockets There isn't anything useful to print. Return a unique name since the unix cli uses the returned string to create a node name. Node names must be unique, or vpp will quit abruptly.
@@ -231,6 +231,7 @@ u8 * format_sockaddr (u8 * s, va_list * args) { void * v = va_arg (*args, void *); struct sockaddr * sa = v; + static u32 local_counter; switch (sa->sa_family) { @@ -243,6 +244,17 @@ u8 * format_sockaddr (u8 * s, va_list * args) } break; + case AF_LOCAL: + { + /* + * There isn't anything useful to p...
actions BUGFIX syntax
@@ -11,15 +11,6 @@ jobs: build: name: ${{ matrix.config.name }} runs-on: ${{ matrix.config.os }} - run: | - BRANCH=echo ${{ github.ref }} | cut -d'/' -f 3 - git clone -b $BRANCH https://github.com/CESNET/libyang.git - cd libyang - mkdir build - cd build - CC=${{ matrix.config.cc }} cmake -DCMAKE_BUILD_TYPE=${{ matrix.c...
Update: full TODO list to complete this PR
@@ -199,6 +199,9 @@ static Decision Decision_ConsiderNegativeOutcomes(Decision decision) //TODO MATCH ACTUAL OPERATION TERMS TO MAKE SURE ARGS MATCH TOO! //TODO make work for compound op by taking full opID array into account //TODO consider evidental bases + //TODO make sure it works with vars + //TODO make sure prope...
Check Error: Fix minor spelling mistakes
@@ -24,7 +24,7 @@ fi succeed_if "could not mount root: $ROOT_FILE at $ROOT_MOUNTPOINT" "$KDB" set $ROOT/valueable_data important_unrecoverable_data > /dev/null -succeed_if "cannot set valueable data" +succeed_if "cannot set valuable data" "$KDB" setmeta $ROOT/valueable_data trigger/error 10 succeed_if "cannot set metad...
BugID:18987221: fix whitescan in athost
@@ -612,10 +612,10 @@ static void subscribed_msg_arrive_handle(void *pcontext, void *pclient, m_last_recvpub_msg.valid = true; LOG("----"); - LOG("Topic: '%.*s' (Length: %d)", ptopic_info->topic_len, - ptopic_info->ptopic, ptopic_info->topic_len); - LOG("Payload: '%.*s' (Length: %d)", ptopic_info->payload_len, - ptopic...
check isSync before re-transmitting join request.
@@ -171,6 +171,10 @@ void cjoin_retransmission_cb(opentimers_id_t id) { void cjoin_retransmission_task_cb(void) { open_addr_t* joinProxy; + if (ieee154e_isSynch() == FALSE){ + return; + } + joinProxy = neighbors_getJoinProxy(); if(joinProxy == NULL) { openserial_printError( @@ -189,7 +193,9 @@ void cjoin_task_cb(void) ...
Issue 1339: clarified the --soloCellFilter EmptyDrops_CR warning message in case the *true empty* cells cannot be found.
@@ -10,7 +10,8 @@ double logMultinomialPDFsparse(const vector<double> &ambProfileLogP, const vecto void SoloFeature::emptyDrops_CR() { if (nCB<=pSolo.cellFilter.eDcr.indMin) { - P.inOut->logMain << "emptyDrops_CR filtering: no empty cells found: nCB=" << nCB <<" emptyCellMinIndex="<< pSolo.cellFilter.eDcr.indMin << "\n...
Do not attempt to parse signature algorithms more than once
@@ -85,6 +85,11 @@ int s2n_recv_supported_signature_algorithms(struct s2n_connection *conn, struct return 0; } + if (*sig_hash_algs_map != NULL ) { + /* If we've already created the signature algorithms map, then we've processed an extension or message twice */ + return 0; + } + *sig_hash_algs_map = s2n_map_new(); int ...
Add IsetID to Region Form
#define HII_CAPACITY_STRING_SIZE 19 #define HII_SENSOR_VALUE_STRING_SIZE 19 #define HII_HEALTH_REASON_STRNG_SIZE 110 +#define HII_ISET_ID_STRNG_SIZE 64 #define HII_DIMM_ID_STRNG_SIZE 48 #define HII_APPDIRECT_PREFERENCE_OPTION_SIZE 30
fix a small bug in OP_ARGARY.
@@ -39,7 +39,6 @@ static uint16_t free_vm_bitmap[MAX_VM_COUNT / 16 + 1]; - //================================================================ /*! display "not supported" message */ @@ -1200,7 +1199,7 @@ static inline int op_argary( mrbc_vm *vm, mrbc_value *regs EXT ) // copy a block object mrbc_decref( &regs[a+1] ); - ...
Check Error: Require sync plugin for test
@@ -13,9 +13,9 @@ check_remaining_files $FILE_SUFFIX ROOT=user/test/script ROOT_FILE=${FILE_SUFFIX}_root.ecf ROOT_MOUNTPOINT=/test/script -if ! is_plugin_available dump +if ! is_plugin_available dump || ! is_plugin_available sync then - echo "Need dump to run test, will abort" + echo "Need dump and sync to run test, wi...
Add missing cluster ID
#define WINDOW_COVERING_CLUSTER_ID 0x0102 #define THERMOSTAT_CLUSTER_ID 0x0201 #define FAN_CONTROL_CLUSTER_ID 0x0202 +#define THERMOSTAT_UI_CONFIGURATION_CLUSTER_ID 0x0204 #define COLOR_CLUSTER_ID 0x0300 #define ILLUMINANCE_MEASUREMENT_CLUSTER_ID 0x0400 #define ILLUMINANCE_LEVEL_SENSING_CLUSTER_ID 0x0401
drivers/video: Return 0 in case g_video_sensor_ops or get_supported_value is NULL
@@ -779,7 +779,9 @@ static int32_t get_default_value(uint32_t id) if ((g_video_sensor_ops == NULL) || (g_video_sensor_ops->get_supported_value == NULL)) { - return -EINVAL; + /* Don't care(unsupported parameter) */ + + return 0; } ret = g_video_sensor_ops->get_supported_value(id, &value);
CSV Storage: Explicitly specify namespace This update makes sure the Markdown Shell Recorder test also works, if it is executed by the root user.
@@ -17,4 +17,4 @@ task: tests_script: - > cd build && ctest --output-on-failure - -E 'pluginprocess|testmod_network|testshell_markdown_(conditionals|csvstorage|dini|enum|ini|line|mathcheck|kdb_complete|kdb_ls|kdb_find|tutorial_cascading|tutorial_validation|readme_msr)' + -E 'pluginprocess|testmod_network|testshell_mark...
Reorder defines to use previous definitions
@@ -2116,20 +2116,22 @@ static inline int mbedtls_ssl_sig_alg_is_supported( #if defined(MBEDTLS_SSL_PROTO_TLS1_2) && \ defined(MBEDTLS_KEY_EXCHANGE_WITH_CERT_ENABLED) + +#define MBEDTLS_SSL_SIG_ALG( sig, hash ) (( hash << 8 ) | sig) +#define MBEDTLS_SSL_SIG_FROM_SIG_ALG(alg) (alg & 0xFF) +#define MBEDTLS_SSL_HASH_FROM_...
Changelog note for - Merge PR from Shchelk: Fix: dereferencing a null pointer.
link-local addresses. - Merge PR #562 from Willem: Reset keepalive per new tcp session. - Merge PR #522 from sibeream: memory management violations fixed. + - Merge PR #530 from Shchelk: Fix: dereferencing a null pointer. 30 November 2021: Wouter - Fix to remove git tracking and ci information from release tarballs.
freertos: ignore freertos yield test failures This commit updates the freertos yield tests to be ignored by the CI during failures.
@@ -70,7 +70,7 @@ static void yield_task2(void *arg) vTaskDelete(NULL); } -TEST_CASE("Task yield must run the next ready task of the same priority", "[freertos]") +TEST_CASE("Task yield must run the next ready task of the same priority", "[freertos][ignore]") { /* Reset task count */ count = 0; @@ -159,7 +159,7 @@ stat...
fix for default definition of AOMP_REPOS
@@ -16,7 +16,7 @@ AOMP_INSTALL_DIR=${AOMP}_${AOMP_VERSION_STRING} # Set the directory location where all local AOMP git repos are stored # For exampe the aomp main repo is typically stored in $HOME/git/aomp/aomp # Clang repo is $HOME/aomp/clang -AOMP_REPOS=${AOMP_REPOS:-/$HOME/git/aomp} +AOMP_REPOS=${AOMP_REPOS:-$HOME/...
add version string to dist url
@@ -8,11 +8,25 @@ use File::Temp qw(tempfile); use Getopt::Long; use Path::Tiny qw(path); +# query expected environment variables +my $release; +my $overwrite=0; + +if(defined $ENV{'Version'}) { + $release = $ENV{'Version'}; +} else { + die "Version environment variable not set!\n"; +} + +if(defined $ENV{'OverWritePrev...
SM5803: Remove Vbus comparator code from OTG With the most recent inits, the Vbus comparator no longer needs toggled when the board sources out. BRANCH=None TEST=on drawcia, verify Vbus looks good on both ports
@@ -854,20 +854,6 @@ static enum ec_error_list sm5803_enable_otg_power(int chgnum, int enabled) rv = chg_write8(chgnum, SM5803_REG_ANA_EN1, reg); } - /* - * Vbus monitor comparator must be enabled for sourcing out voltage, and - * should be disabled when sinking to prevent false Vbus PROCHOT - * triggers - */ - rv = ch...
unix/mpthreadport: Use named semaphores on Mac OS X. Unnamed semaphores (via sem_init) are not supported on this OS. See
#if MICROPY_PY_THREAD +#include <fcntl.h> #include <signal.h> #include <sched.h> #include <semaphore.h> @@ -54,7 +55,12 @@ STATIC thread_t *thread; // this is used to synchronise the signal handler of the thread // it's needed because we can't use any pthread calls in a signal handler +#if defined(__APPLE__) +STATIC ch...
foomatic-rip: remove tempfile created during pdf-to-ps conversion
@@ -560,7 +560,7 @@ int print_file(const char *filename, int convert) { FILE *file; char buf[8192]; - char tmpfilename[PATH_MAX]; + char tmpfilename[PATH_MAX] = ""; int type; int startpos; int pagecount; @@ -689,6 +689,10 @@ int print_file(const char *filename, int convert) if (out != NULL) fclose(out); + // Delete tem...
Remove ecp_c undefine routines
@@ -120,13 +120,12 @@ static int ssl_tls13_write_named_group_list_ecdhe( mbedtls_ssl_context *ssl, size_t *olen ) { unsigned char *p = buf; -#if !defined(MBEDTLS_ECP_C) - ((void) ssl); -#endif *olen = 0; -#if defined(MBEDTLS_ECP_C) + if( ssl->conf->curve_list == NULL ) + return( MBEDTLS_ERR_SSL_BAD_CONFIG ); + for ( co...
Pretop not changed Pretop not changed in xdag_create_and_send_block after call of do_mining.
@@ -102,7 +102,7 @@ void cache_add(struct xdag_block*, xdag_hash_t); int32_t check_signature_out_cached(struct block_internal*, struct xdag_public_key*, const int, int32_t*, int32_t*); int32_t check_signature_out(struct block_internal*, struct xdag_public_key*, const int); static int32_t find_and_verify_signature_out(s...
Remove old comment about IQ loss
@@ -190,13 +190,6 @@ static int realign_weights( weight_set8[we_idx] = (uint8_t)((prev_and_next >> 16) & 0xFF); adjustments++; } - - // IQ loss: The v1 compressor iterated here multiple times, trying - // multiple increments or decrements until the error stopped - // improving. This was very expensive (~15% of the v1 c...
Fix error-path memory leak in asn_mime.c
@@ -425,6 +425,7 @@ ASN1_VALUE *SMIME_read_ASN1(BIO *bio, BIO **bcont, const ASN1_ITEM *it) || hdr->value == NULL) { sk_MIME_HEADER_pop_free(headers, mime_hdr_free); ASN1err(ASN1_F_SMIME_READ_ASN1, ASN1_R_NO_SIG_CONTENT_TYPE); + sk_BIO_pop_free(parts, BIO_vfree); return NULL; }
added fish to meson.build
@@ -205,3 +205,14 @@ if (get_option('bash_completions')) install_data(bash_files, install_dir: bash_install_dir) endif + +if (get_option('fish_completions')) + fish_files = files( + 'completions/fish/sway.fish', + 'completions/fish/swaylock.fish', + 'completions/fish/swaymsg.fish', + ) + fish_install_dir = datadir + '/...
fix(setup.sh): add NIBBLE to options This was missing from its original commit. Refs:
@@ -91,7 +91,7 @@ echo "" echo "Keyboard Shield Selection:" prompt="Pick an keyboard:" -options=("Kyria" "Lily58" "Corne" "Splitreus62" "Sofle" "Iris" "Reviung41" "RoMac" "RoMac+" "makerdiary M60" "Microdox" "TG4X" "QAZ" "Jorne" "Jian" "CRBN" "Tidbit" "Eek!" "BF0-9000" "Helix") +options=("Kyria" "Lily58" "Corne" "Split...
esp32/modmachine: Fix machine.reset_cause to use IDF's esp_reset_reason. The code previously called rtc_get_reset_reason which is a "raw" reset cause. The ESP-IDF massages that for the proper reset cause available from esp_reset_reason. Fixes issue
@@ -146,36 +146,30 @@ STATIC mp_obj_t machine_deepsleep(size_t n_args, const mp_obj_t *pos_args, mp_ma STATIC MP_DEFINE_CONST_FUN_OBJ_KW(machine_deepsleep_obj, 0, machine_deepsleep); STATIC mp_obj_t machine_reset_cause(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) { - switch (rtc_get_reset_reason(0)) { - ...
update-submodule.sh: allow disabling safety checks
# (cd <subrepo> && git checkout <branch/commit>) # git add <subrepo> # tools/git/update-submodule.sh <subrepo> +# +# Using the script inside other repositories can be done by disabling +# the verification of the Contiki-NG repository, to update mspsim in Cooja, +# run the script as: +# +# env NO_SAFETY=1 ../../tools/gi...
Reduce debug value for simplified moba debugging
@@ -334,7 +334,7 @@ static void auto_norm_apply(const operator_data_t* _data, float mu, complex floa complex float val = MD_ACCESS(N, sstrs, pos, scale); - debug_printf(DP_DEBUG1, "auto normalize %f\n", crealf(val)); + debug_printf(DP_DEBUG4, "auto normalize %f\n", crealf(val)); md_zsmul2(N, xdims, io->strs, &MD_ACCESS...
Add HelloRetryRequst tests
@@ -8999,6 +8999,31 @@ run_test "TLS1.3: CertificateRequest check - gnutls" \ 1 \ -c "CertificateRequest not supported" +requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL +requires_config_disabled MBEDTLS_USE_PSA_CRYPTO +requires_openssl_tls1_3 +run_test "TLS1.3: HelloRetryRequest check - openssl" \ + "$O_N...
docs/library/framebuf: Add missing module reference in example code.
@@ -19,7 +19,7 @@ For example:: import framebuf # FrameBuffer needs 2 bytes for every RGB565 pixel - fbuf = FrameBuffer(bytearray(10 * 100 * 2), 10, 100, framebuf.RGB565) + fbuf = framebuf.FrameBuffer(bytearray(10 * 100 * 2), 10, 100, framebuf.RGB565) fbuf.fill(0) fbuf.text('MicroPython!', 0, 0, 0xffff)
bugfix/pthread : pthread_detach implementation fixed to correctly delete pthread object when invoked after task completion
@@ -395,8 +395,19 @@ int pthread_detach(pthread_t thread) TaskHandle_t handle = pthread_find_handle(thread); if (!handle) { ret = ESRCH; - } else { + } else if (pthread->detached) { + // already detached + ret = EINVAL; + } else if (pthread->join_task) { + // already have waiting task to join + ret = EINVAL; + } else i...
Add VTK-xml export tests
# Add Mesh Plot for silo data exported as VTK, to test that mesh name # was properly exported. # +# Kathleen Biagas, Fri Feb 17, 2017 +# Update for new VTK export options. Added test4, which tests the new +# options. +# # ---------------------------------------------------------------------------- import string @@ -151...
kernel/binary_manager: Fix typo of bootparam size, 8K The size of bootparam should be 8Kbytes.
@@ -235,7 +235,7 @@ errout_with_nobinary: printf("=============== !!ERROR!! ============== \n"); if (!is_found_bootparam) { printf("ERROR!! Not found user partitions because parsing a partition list is failed.\n"); - printf("Please check whether the partition 'bootparam' exists in CONFIG_FLASH_PART_TYPE with 8192K size...
(TEMP) (TODO) (whatever) Avoid compiler warnings I want the CI to not crash on its -Wall -Werror, but instead to actually build the thing and report me about actual memory errors etc
@@ -78,6 +78,7 @@ static __m256i sao_calc_eo_cat_avx2(__m128i* vector_a_epi8, __m128i* vector_b_ep return v_cat_epi32; } +/* static int sao_edge_ddistortion_avx2(const kvz_pixel *orig_data, const kvz_pixel *rec_data, int block_width, @@ -163,6 +164,7 @@ static int sao_edge_ddistortion_avx2(const kvz_pixel *orig_data, }...
BPFProgTable: allow to remove elements It is allowed in the kernel from some time ago:
@@ -287,6 +287,12 @@ public: return StatusTuple(-1, "Error updating value: %s", std::strerror(errno)); return StatusTuple(0); } + + StatusTuple remove_value(const int& index) { + if (!this->remove(const_cast<int*>(&index))) + return StatusTuple(-1, "Error removing value: %s", std::strerror(errno)); + return StatusTuple...
Removed Long Description for sFlareBandPass for now because it's causing a strange SIGABORT error.
@@ -333,7 +333,7 @@ Compute the XUV Flux. double fdXUVFlux(BODY *body, int iBody) { double flux; - double dLXUVTot; + double dLXUVTot = 0.0; // Body orbits two stars if (body[iBody].bBinary && body[iBody].iBodyType == 0) {
Python 2: Disable warning caused by Python 2
@@ -14,7 +14,7 @@ if (DEPENDENCY_PHASE) ) # we call this SWIG_COMPILE_FLAGS because we have the same variable in our swig bindings - set (SWIG_COMPILE_FLAGS "-Wno-shadow -Wno-old-style-cast -Wno-unused-variable") + set (SWIG_COMPILE_FLAGS "-Wno-shadow -Wno-old-style-cast -Wno-unused-variable -Wno-deprecated-register") ...
operational TEST check config list key trimming
@@ -1036,6 +1036,9 @@ state_only_oper_cb(sr_session_ctx_t *session, const char *module_name, const cha node = lyd_new_path(*parent, NULL, "/mixed-config:test-state/test-case[name='one']/z", "-0.2500", 0, 0); assert_non_null(node); + node = lyd_new_path(*parent, NULL, "/mixed-config:test-state/test-case[name='two']", NU...
Fix test memory allocation Fix error in memory allocation in test code, which was triggering an error in test_memory_buffer_allocator.
@@ -75,7 +75,7 @@ void pkcs7_verify( char *pkcs7_file, char *crt, char *filetobesigned, int do_has TEST_ASSERT( file != NULL ); datalen = st.st_size; - data = mbedtls_calloc( datalen, 1 ); + ASSERT_ALLOC( data, datalen ); TEST_ASSERT( data != NULL ); buflen = fread( (void *)data , sizeof( unsigned char ), datalen, file...
Fix memory corruption in case of full luos_tasks occupation
@@ -645,6 +645,8 @@ static inline void MsgAlloc_ClearLuosTask(uint16_t luos_task_id) if (luos_tasks_stack_id != 0) { luos_tasks_stack_id--; + luos_tasks[luos_tasks_stack_id].msg_pt = 0; + luos_tasks[luos_tasks_stack_id].ll_container_pt = 0; } LuosHAL_SetIrqState(true); MsgAlloc_FindNewOldestMsg();
FIX: intermittent failure in the test of testapp.
@@ -386,7 +386,20 @@ static pid_t start_server(in_port_t *port_out, bool daemon, int timeout) { strerror(errno)); assert(false); } - assert(fgets(buffer, sizeof(buffer), fp) != NULL); + /* There is a potential race condition that the server just + * created the file but isn't finished writing the content. + */ + int co...
[hardware] :space_invader: Fix synthesis of the assertion in `snitch_lsu`
@@ -203,9 +203,8 @@ module snitch_lsu // ASSERTIONS // ---------------- // Check for unsupported parameters - if (NumOutstandingLoads == 0) begin - $error($sformatf("NumOutstandingLoads cannot be 0.")); - end + if (NumOutstandingLoads == 0) + $error(1, "[snitch_lsu] NumOutstandingLoads cannot be 0."); // pragma transla...
flash_ec: add nefario for support BRANCH=none TEST=utils/flash_ec --board=nefario
@@ -114,6 +114,7 @@ BOARDS_NPCX_SPI=( fizz gru kevin + nefario poppy reef scarlet @@ -139,6 +140,7 @@ BOARDS_SPI_1800MV=( coral gru kevin + nefario reef scarlet ) @@ -149,6 +151,7 @@ BOARDS_RAIDEN=( fizz gru kevin + nefario poppy reef scarlet
Remove tests cmake policy warning.
@@ -8,7 +8,9 @@ if(NOT OPTION_BUILD_TESTS) endif() # DISABLE CMP0037: Target names should not be reserved and should match a validity pattern. +if("${CMAKE_VERSION}" VERSION_LESS "3.11" AND POLICY CMP0037) set_policy(CMP0037 OLD) +endif() # Build gmock set(gmock_build_tests OFF CACHE BOOL "")
rp2040: Add missing comma in rp2040_i2c_slave.c This patch fixes missing comma, found by cppcheck. rp2040_i2c_slave.c:259:0: error: failed to expand 'modbits_reg32', Wrong number of parameters for macro 'modbits_reg32'.
@@ -257,7 +257,7 @@ static int i2c_interrupt(int irq, void *context, void *arg) */ modbits_reg32(RP2040_I2C_IC_INTR_MASK(priv->controller), - 0 + 0, RP2040_I2C_IC_INTR_MASK_M_TX_EMPTY); }
spiflash: Remove delay when reading ready status Assume that when spiflash_wait_ready() is called in general flash should be ready, therfore while() in this function should not take long. If any delay is needed for given operation it should be applied outside this function e.g. erase
@@ -876,8 +876,6 @@ spiflash_wait_ready(struct spiflash_dev *dev, uint32_t timeout_ms) spiflash_lock(dev); while (!spiflash_device_ready(dev)) { - /* If not ready let's give it 10ms */ - os_time_delay(os_time_ms_to_ticks32(10)); if (os_time_get() > exp_time) { rc = -1; goto err;
Address review feedback in hld-splitlock.rst
@@ -133,5 +133,6 @@ Disable Split-Locked Access Detection If the CPU supports Split-locked Access detection, the ACRN hypervisor uses it to prevent any VM running with potential system performance impacting split-locked instructions. This detection can be disabled -(eventually by using the ACRN configurator tool) for c...
Add test of EN_setcurve & EN_getcurve to test_curve.cpp
@@ -35,6 +35,35 @@ BOOST_FIXTURE_TEST_CASE(test_curve_comments, FixtureOpenClose) error = EN_getcomment(ph, EN_CURVE, index, comment); BOOST_REQUIRE(error == 0); BOOST_CHECK(check_string(comment, (char *)"Curve 1")); + + // Test of EN_setcurve and EN_getcurve + int i; + char id1[] = "NewCurve"; + int n1 = 5; + double X...
Remove efasDomain (See the EFAS Meeting notes weekly catchup)
@@ -55,7 +55,7 @@ concept efas_post_proc { } : hidden; #Domain. Missing, local or global -codetable[1] efasDomain "grib2/tables/local/ecmf/efas_domain.table" = 255 : dump, string_type; +#codetable[1] efasDomain "grib2/tables/local/ecmf/efas_domain.table" = 255 : dump, string_type; #unsigned[1] efas_domain = missing() :...
add utassert only returning when false
#define UT_ASSERT(test) \ return ((test) || (debug_printf(DP_ERROR, "%s:%d assertion `%s` failed.\n", __func__, __LINE__, #test), false)) +#define UT_ASSERT2(test) \ + if (!(test)) return (debug_printf(DP_ERROR, "%s:%d assertion `%s` failed.\n", __func__, __LINE__, #test), false) + #define UT_TOL 1E-6
Fix config.spec comment
@@ -164,7 +164,7 @@ state DEFAULT_BORDER_PIXELS_PX: end -> call cfg_default_border($windowtype, $border, &width) -# hide_edge_borders <none|vertical|horizontal|both|smart|no_gaps> +# hide_edge_borders <none|vertical|horizontal|both|smart|smart_no_gaps> # also hide_edge_borders <bool> for compatibility state HIDE_EDGE_B...
VERSION bump version to 0.9.7
@@ -28,7 +28,7 @@ set(CMAKE_C_FLAGS_DEBUG "-g -O0") # set version set(LIBNETCONF2_MAJOR_VERSION 0) set(LIBNETCONF2_MINOR_VERSION 9) -set(LIBNETCONF2_MICRO_VERSION 6) +set(LIBNETCONF2_MICRO_VERSION 7) set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION}.${LIBNETCONF2_MICRO_VERSION}) set(LIBN...
Add debug info to appveyor script.
@@ -31,8 +31,13 @@ before_build: - ps: ci\build_picotls.ps1 test_script: + - ps: echo "Configuration: $Env:Configuration" + - ps: echo "Platform: $Env:platform" + - ps: dir "$Env:OPENSSLDIR" + - ps: dir "$Env:OPENSSL64DIR" - ps: if ($Env:Platform -eq "x64") { cd x64 } - ps: cd "$Env:Configuration" + - ps: pwd - ps: vst...
leap: yank own ~patp from results fixes urbit/landscape#598
@@ -144,6 +144,9 @@ export function Omnibox(props: OmniboxProps): ReactElement { }) ); }); + resultsMap.set('ships', resultsMap.get('ships').filter(ship => ( + ship.title === `~${window.ship}` ? null : (ship) + ))); return resultsMap; }, [query, index]);
honor 'server_expired_ttl' in redis
#include "util/alloc.h" #include "util/config_file.h" #include "sldns/sbuffer.h" +#include <stdbool.h> #ifdef USE_REDIS #include "hiredis/hiredis.h" @@ -254,8 +255,13 @@ redis_store(struct module_env* env, struct cachedb_env* cachedb_env, redisReply* rep; int n; int size; + bool set_ttl = !env->cfg->serve_expired || en...
hslua-classes: drop unused extra-source-files pattern
@@ -16,7 +16,6 @@ category: Foreign build-type: Simple extra-source-files: README.md , CHANGELOG.md - , test/lua/*.lua tested-with: GHC == 8.0.2 , GHC == 8.2.2 , GHC == 8.4.4
Enable meter in vsmgw-no-typedef.p4_16
@@ -506,7 +506,7 @@ apply { { if ( hdr.ipv4.isValid() ) { ue_selector.apply(); - //teid_rate_limiter.apply(); + teid_rate_limiter.apply(); //m_filter.apply(); ipv4_lpm.apply(); ipv4_forward.apply();
Keep END for symbolic alleles
@@ -1167,8 +1167,16 @@ cdef inline bcf_sync_end(VariantRecord record): else: ref_len = 0 + # Check if alternate allele is symbolic + if record.ptr.n_allele >= 2: + alt = record.ptr.d.allele[1] + is_symbolic = (alt[0] == b'<' and alt[len(alt) - 1] == b'>') + else: + is_symbolic = False + # Delete INFO/END if no alleles ...
fix a failure on download script for artik053 Variables are not delivered to cfg file. It makes error on download.
@@ -67,11 +67,11 @@ main() # Download all binaries using openocd script pushd ${OPENOCD_DIR_PATH} ${OPENOCD_BIN_PATH}/openocd -f artik053.cfg -c ' \ - flash_write bl1 ${FW_DIR_PATH}/bl1.bin; \ - flash_write bl2 ${FW_DIR_PATH}/bl2.bin; \ - flash_write sssfw ${FW_DIR_PATH}/sssfw.bin; \ - flash_write wlanfw ${FW_DIR_PATH}...
Make changelog more specific
Bugfix - * Fix issues in pkcs12 when a NULL and/or zero length password was supplied. + * Fix a potential invalid pointer dereference and infinite loop bugs in + pkcs12 functions when the password is empty. Fix the documentation to + better describe the inputs to these functions and their possible values. + Fixes #5136...
Fix get_height_rect docs.
@@ -153,7 +153,7 @@ Printing functions using UTF-8 (C++) .. doxygenfunction:: tcod::print(TCOD_Console& console, const std::array<int, 2>& xy, std::string_view str, std::optional<TCOD_ColorRGB> fg, std::optional<TCOD_ColorRGB> bg, TCOD_alignment_t alignment = TCOD_LEFT, TCOD_bkgnd_flag_t flag = TCOD_BKGND_SET) .. doxyg...
Make setup.py url valid
@@ -40,7 +40,7 @@ setup( install_requires=["cffi>=1.12.0,<2", "cryptography>=2.0,<3"], author="Shane Harvey", author_email="mongodb-user@googlegroups.com", - url="github.com/mongodb/libmongocrypt", + url="https://github.com/mongodb/libmongocrypt/tree/master/bindings/python", keywords=["mongo", "mongodb", "pymongocrypt"...
Add event with strong types to SampleUWP
@@ -105,6 +105,16 @@ namespace SampleCsUWP missingProps.SetProperty("MyMissingProp", "12345"); Logger.LogEvent(missingProps); + var strongTypesEvent = new EventProperties("SomeEventWithStronTypes"); + strongTypesEvent.SetProperty("myIntKey", 45); + strongTypesEvent.SetProperty("myIntKey2", 37, PiiKind.GenericData); + s...
linux-cp: fix coverity 216937 Initialize the host_sw_if_index to ~0 so in the error cases the variable is set to something predictable. Type: fix
@@ -778,7 +778,7 @@ lcp_itf_pair_create (u32 phy_sw_if_index, u8 *host_if_name, { vlib_main_t *vm; vnet_main_t *vnm; - u32 vif_index = 0, host_sw_if_index; + u32 vif_index = 0, host_sw_if_index = ~0; const vnet_sw_interface_t *sw; const vnet_hw_interface_t *hw; const lcp_itf_pair_t *lip;
rms/slurm: remove ref to BUILD.NOTES in docs which is no longer present
@@ -578,7 +578,7 @@ mkdir -p $RPM_BUILD_ROOT/%{_docdir} %config %{_sysconfdir}/slurm.conf.example %{OHPC_PUB} -%doc AUTHORS BUILD.NOTES COPYING DISCLAIMER INSTALL LICENSE.OpenSSL NEWS README.rst RELEASE_NOTES +%doc AUTHORS CONTRIBUTING.md COPYING DISCLAIMER INSTALL LICENSE.OpenSSL NEWS README.rst RELEASE_NOTES # 9/8/14...
Use the MAX() macro
@@ -1863,7 +1863,7 @@ void mpi_core_sub( char * input_A, char * input_B, TEST_EQUAL( 1, X8.s ); /* Get the number of limbs we will need */ - size_t limbs = ( A.n < B.n ) ? B.n : A.n; + size_t limbs = MAX( A.n, B.n ); size_t bytes = limbs * sizeof(mbedtls_mpi_uint); /* We only need to work with X4 or X8, depending on si...