message
stringlengths
6
474
diff
stringlengths
8
5.22k
Fix nordic cmake file
@@ -491,14 +491,6 @@ if(AFR_ENABLE_DEMOS OR AFR_ENABLE_TESTS) ${exe_target} ${application_src} ) -endif() - -if(NOT AFR_METADATA_MODE) - message(FATAL_ERROR "CMake support for Nordic is not complete yet.") -endif() -# ------------------------------------------------------------------------------------------------- -# A...
examples/userfs: Implement the dummy callback of fchstat and chstat
@@ -117,6 +117,10 @@ static int ufstest_rename(FAR void *volinfo, FAR const char *oldrelpath, static int ufstest_stat(FAR void *volinfo, FAR const char *relpath, FAR struct stat *buf); static int ufstest_destroy(FAR void *volinfo); +static int ufstest_fchstat(FAR void *volinfo, FAR void *openinfo, + FAR const struct st...
build: Bump cmake version and use new version syntax
set(CMAKE_LEGACY_CYGWIN_WIN32 0) -cmake_minimum_required(VERSION 2.8.5) +cmake_minimum_required(VERSION 3.0) + +project(cJSON + VERSION 1.7.15 + LANGUAGES C) -project(cJSON C) cmake_policy(SET CMP0054 NEW) # set CMP0054 policy include(GNUInstallDirs) -set(PROJECT_VERSION_MAJOR 1) -set(PROJECT_VERSION_MINOR 7) -set(PROJ...
test: detect valgrind in testkdb_allplugins
@@ -231,7 +231,9 @@ PluginDatabase::Status ModulesPluginDatabase::status (PluginSpec const & spec) c std::string ModulesPluginDatabase::lookupInfo (PluginSpec const & spec, std::string const & which) const { - PluginPtr plugin = impl->modules.load (spec.getName (), spec.getConfig ()); + KeySet conf = spec.getConfig ();...
travis (macOS): Add cunit to homebrew for fix make check
@@ -39,7 +39,7 @@ before_install: before_script: # First build external lib - ./ci/build_openssl.sh - - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install libev; fi + - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install libev cunit; fi # configure ngtcp2 - if [ "$CI_BUILD" == "autotools" ]; then autoreconf -i; fi -...
add signature algorithms extension
@@ -107,11 +107,60 @@ int mbedtls_ssl_tls13_write_sig_alg_ext( mbedtls_ssl_context *ssl, unsigned char *end, size_t *olen ) { - ((void) ssl); - ((void) buf); - ((void) end); + unsigned char *p = buf; + unsigned char *sig_alg_ptr; /* Start of supported_signature_algorithms */ + size_t sig_alg_len = 0; /* Length of suppo...
components/bt: Add a detailed description for the user to distinguish the function of the query buffer api.
@@ -53,7 +53,7 @@ extern UINT16 L2CA_GetFreePktBufferNum_LE(void); /** * @brief This function is called to get currently sendable packets number on controller, - * the function is called only in BLE running core now. + * the function is called only in BLE running core and single connection now. * * @return * sendable p...
Add a unit test exercising the case registering API
@@ -320,6 +320,53 @@ static void test_at_position(void) ok(ret != 0); } +static void test_str_case(void) +{ + int i, j; +#define MAX_SIZE 256 + char tests[][MAX_SIZE] = { + "", + "User-Agent", + "Date", + "date", + }; + char tmp1[MAX_SIZE], tmp2[MAX_SIZE]; + + h2o_mem_pool_t pool; + h2o_mem_init_pool(&pool); + + for (i...
mangle: append NUL-byte to the buffer
@@ -947,4 +947,9 @@ void mangle_mangleContent(run_t* run) { mangleFuncs[choice](run); } } + + /* Add NUL-byte to the buffer if smaller than the max size */ + if (run->dynamicFileSz < run->global->mutate.maxFileSz) { + run->dynamicFile[run->dynamicFileSz] = '\0'; + } }
Missing static specifier added
@@ -71,7 +71,7 @@ int64_t mnow(void) { /* Like now(), this function can be called only after context is initialized but unlike now() it doesn't do time caching. */ -int64_t now_(void) { +static int64_t now_(void) { #if defined __APPLE__ struct dill_ctx_now *ctx = &dill_getctx->now; uint64_t ticks = mach_absolute_time()...
the higher bits don't make it anyway as Robert pointed out
@@ -12,9 +12,8 @@ void Concept_RESET(Concept *concept, SDR name) int pieces = SDR_BLOCK_SIZE / (sizeof(CONCEPT_HASH_TYPE)); for(int j=0; j<pieces; j++) { - CONCEPT_HASH_TYPE AllOnesPart = -1; int shift_right = j*8*sizeof(CONCEPT_HASH_TYPE); //each j shifts 8*NUM_BYTES_OF_CONCEPT_HASH_TYPE - hash |= (name.blocks[i] >> s...
borderhover panel fix
@@ -2266,7 +2266,8 @@ resizeborder(const Arg *arg) { getrootptr(&x, &y); c = selmon->sel; - if ((y > c->y && y < c->y + c->h && x > c->x && x < c->x + c->w) || + if ((selmon->showbar && y < selmon->my + bh) || + (y > c->y && y < c->y + c->h && x > c->x && x < c->x + c->w) || y < c->y - 30 || x < c->x - 30 || y > c->y +...
OcMachoLib: Assume relocation target is aligned.
@@ -345,6 +345,7 @@ MachoGetSymbolByRelocationOffset64 ( ) { CONST MACH_RELOCATION_INFO *Relocation; + CONST UINT64 *Data; ASSERT (Context != NULL); @@ -353,14 +354,13 @@ MachoGetSymbolByRelocationOffset64 ( if (Relocation->Extern != 0) { *Symbol = MachoGetSymbolByIndex64 (Context, Relocation->SymbolNumber); } else { -...
Fix typo in trace trajectory init plugin won't compile if VLIB_BUFFER_TRACE_TRAJECTORY is set. The quad loop was OK, bug in single loop only.
@@ -304,7 +304,7 @@ avf_process_rx_burst (vlib_main_t * vm, vlib_node_runtime_t * node, clib_memcpy (vnet_buffer (b[0])->sw_if_index, vnet_buffer (bt)->sw_if_index, 2 * sizeof (u32)); - VLIB_BUFFER_TRACE_TRAJECTORY_INIT (b0); + VLIB_BUFFER_TRACE_TRAJECTORY_INIT (b[0]); /* next */ rxve += 1;
Increase RE_MAX_AST_LEVELS from 1000 to 2000.
@@ -83,6 +83,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #define RE_MAX_FIBERS 1024 // Maximum number of levels in regexp's AST -#define RE_MAX_AST_LEVELS 1000 +#define RE_MAX_AST_LEVELS 2000 #endif
Fix build on macOS.
#include <stdbool.h> #include <stddef.h> +#ifdef __APPLE__ +#include <sys/types.h> /* This in turn sources machine/endian.h */ +#else #include <endian.h> +#endif #ifdef __APPLE__ #define __BYTE_ORDER BYTE_ORDER @@ -859,4 +863,3 @@ int mystrlen(uint8_t *in_buf); int countdelimiter(uint8_t *in_buf, char delimiter); int g...
status: expose mmap_errors via the events reporter
@@ -97,13 +97,14 @@ static h2o_iovec_t events_status_final(void *priv, h2o_globalconf_t *gconf, h2o_ " \"http2-errors.inadequate-security\": %" PRIu64 ", \n" " \"http2.read-closed\": %" PRIu64 ", \n" " \"http2.write-closed\": %" PRIu64 ", \n" - " \"ssl.errors\": %" PRIu64 "\n", + " \"ssl.errors\": %" PRIu64 ", \n" + " ...
[brick] Remove typo
@@ -114,7 +114,6 @@ func main() { } if *watch { exec.EnableWatch() - fmt.Println("Invalid Parameter. Usage: brick filename [-v|-w]\n\t-v\tverbose mode\n\t-w\twatch mode") } exec.Execute(cmd, flag.Arg(0))
Update the s_client -sess_out feature to work for TLSv1.3 Previously "-sess_out" wrote out the session as soon as the handshake finished. In TLSv1.3 this won't work because the NewSessionTicket message arrives post-handshake. Instead we use the session callback mechanism to do this.
@@ -90,6 +90,7 @@ static char *keymatexportlabel = NULL; static int keymatexportlen = 20; static BIO *bio_c_out = NULL; static int c_quiet = 0; +static char *sess_out = NULL; static void print_stuff(BIO *berr, SSL *con, int full); #ifndef OPENSSL_NO_OCSP @@ -779,6 +780,24 @@ static void freeandcopy(char **dest, const c...
Fix uninitialized variable m_QuickstartGen I noticed this on an x64 build on VS 2017 15.9.8 I also re-ordered the variables so that it's easier to spot an uninitialized one.
@@ -65,11 +65,12 @@ void DriverOptionsInit(DriverOptions* self) self->m_DisplayStats = false; self->m_GenDagOnly = false; self->m_Quiet = false; + self->m_IdeGen = false; self->m_Clean = false; self->m_Rebuild = false; - self->m_IdeGen = false; self->m_DebugSigning = false; self->m_ContinueOnError = false; + self->m_Qu...
Added XRC to coins list
"explorerBlockLink": "https://explorer.ergoplatform.com/en/blocks/$hash$", "explorerTxLink": "https://explorer.ergoplatform.com/en/transactions/{0}", "explorerAccountLink": "https://explorer.ergoplatform.com/en/addresses/{0}" + }, + "xRhodium": { + "name": "xRhodium", + "symbol": "XRC", + "family": "bitcoin", + "coinba...
Update CHANGELOG on requiring explicit link against oecryptombedtls
@@ -10,6 +10,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 [Unreleased][Unreleased_log] -------------- +## Breaking Changes +- liboecryptombed is now called liboecryptombedtls and will no longer be automatically included as a link dependency when linking liboeenclave in CMake. +...
NetworkTools: Set whois control readonly
@@ -899,6 +899,7 @@ INT_PTR CALLBACK WhoisDlgProc( SendMessage(context->RichEditHandle, EM_SETWORDWRAPMODE, WBF_WORDWRAP, 0); //context->FontHandle = PhCreateCommonFont(-11, FW_MEDIUM, context->RichEditHandle); SendMessage(context->RichEditHandle, EM_SETMARGINS, EC_LEFTMARGIN, MAKELONG(4, 0)); + SendMessage(context->Ri...
Update db test module error for newer libpq versions. PostgreSQL 14 libpq throws a more detailed error, so adjust the regular expression to handle the old and the new errors.
@@ -701,11 +701,11 @@ testRun(void) TEST_ASSIGN(result, dbGet(false, true, false), "get primary and standy"); - hrnLogReplaceAdd("No such file or directory.*$", NULL, "NO SUCH FILE OR DIRECTORY", false); + hrnLogReplaceAdd("(could not connect to server|connection to server on socket).*$", NULL, "PG ERROR", false); TEST...
Update: example consistent with what the vision channel currently outputs
@@ -17,4 +17,4 @@ the bowl is near the bottle! <bottle --> [equalX]>. :|: 10 the bowl is near the bottle? -//expected: Answer: <(bowl * bottle) --> near>. :|: occurrenceTime=12 Truth: frequency=1.000000, confidence=0.729000 +//expected: Answer: <(bowl * bottle) --> near>. :|: occurrenceTime=13 Truth: frequency=1.000000...
xive: Don't assume opal_xive_eoi() is called with the right queue prio Just use the one we know is valid rather than what's passed as an argument. Linux might call us with 0.
@@ -2954,9 +2954,6 @@ static int64_t opal_xive_eoi(uint32_t xirr) lock(&xs->lock); - /* Snapshor current CPPR, it's assumed to be our IRQ priority */ - irqprio = xs->cppr; - /* If this was our magic IPI, convert to IRQ number */ if (isn == 2) { isn = xs->ipi_irq; @@ -2973,7 +2970,7 @@ static int64_t opal_xive_eoi(uint3...
options/posix: Fix several sign compare warnings in musl imported code
@@ -32,7 +32,7 @@ static int str_next(const char *str, size_t n, size_t *step) *step = 0; return 0; } - if (str[0] >= 128U) { + if ((unsigned char)str[0] >= 128U) { wchar_t wc; int k = mbtowc(&wc, str, n); if (k<0) { @@ -85,7 +85,7 @@ static int pat_next(const char *pat, size_t m, size_t *step, int flags) if (pat[0] ==...
Tools: print full usage info. Also put feature AEC at the top
@@ -20,6 +20,9 @@ extern int optind; static void usage_and_exit(const char* progname) { printf("\nUsage: %s [-v] [-d] [-s]\n", progname); + printf("\t-v\tPrint only the version of ecCodes\n"); + printf("\t-d\tPrint only the definitions path\n"); + printf("\t-s\tPrint only the samples path\n"); exit(1); } @@ -37,14 +40,...
Directory Value: Use `using` statement
@@ -49,7 +49,7 @@ kdb::KeySet getContract () extern "C" { -typedef Delegator<DirectoryValueDelegate> delegator; +using delegator = Delegator<DirectoryValueDelegate>; /** @see elektraDocOpen */ int elektraDirectoryValueOpen (Plugin * handle, Key * key)
update manifest page breaks for 1.3.8
@@ -68,7 +68,8 @@ my %page_breaks = (); if ( $ENV{'PWD'} =~ /\S+\/x86_64\// ) { $page_breaks{"python-mpi4py-gnu7-impi-ohpc"} = 2; $page_breaks{"mpiP-gnu-impi-ohpc"} = 2; - $page_breaks{"scorep-gnu-impi-ohpc"} = 3; + $page_breaks{"scalasca-gnu-impi-ohpc"} = 3; + $page_breaks{"tau-gnu-impi-ohpc"} = 4; $page_breaks{"mfem-...
Use model variable placeholders for player selection. Going to need them in future updates.
@@ -36523,6 +36523,8 @@ static void load_select_screen_info(s_savelevel *save) int selectplayer(int *players, char *filename, int useSavedGame) { s_model *tempmodel; + s_model *model_old; + s_model *model_new; int i; int exit = 0; int escape = 0; @@ -36885,16 +36887,21 @@ int selectplayer(int *players, char *filename, ...
SPIR wrapper: revert using spir CC for CUDA builtin library added by mistake, it does not actually use SPIR CC
@@ -775,16 +775,11 @@ def generate_function(name, ret_type, ret_type_ext, multiAS, *args): ####### generate function body - if SPIR_CALLING_ABI: - func_attr = "spir_func" - else: - func_attr = "" - if retval_alloca_inst: decl_ret_type = 'void' else: decl_ret_type = coerced_ret_type - print("declare %s %s %s(%s) local_u...
Add _name attribute to classes
@@ -70,6 +70,14 @@ ObjClass *newClass(DictuVM *vm, ObjString *name, ObjClass *superclass, ClassType initTable(&klass->publicProperties); initTable(&klass->publicConstantProperties); klass->annotations = NULL; + + push(vm, OBJ_VAL(klass)); + ObjString *nameString = copyString(vm, "_name", 5); + push(vm, OBJ_VAL(name)); ...
Bug fix: Fix constraint solving during fcg construction with gurobi
@@ -402,6 +402,8 @@ double *pluto_fcg_constraints_lexmin_gurobi(const PlutoConstraints* cst, PlutoMa /* Create gurobi model. Add objective and variable types during creation of the object itself */ GRBnewmodel(env, &lp, NULL, num_vars, grb_obj, NULL, NULL, vtype, NULL); + set_gurobi_constraints_from_pluto_constraints(l...
TSCH: disable the burst bit by default
#ifdef TSCH_CONF_BURST_MAX_LEN #define TSCH_BURST_MAX_LEN TSCH_CONF_BURST_MAX_LEN #else -#define TSCH_BURST_MAX_LEN 32 +#define TSCH_BURST_MAX_LEN 0 #endif /* 6TiSCH Minimal schedule slotframe length */
Queue Send fix Fixes rare deadlock on heavy loaded multicore-systems.
@@ -1693,15 +1693,6 @@ BaseType_t xQueueSemaphoreTake( QueueHandle_t xQueue, { if( xTicksToWait == ( TickType_t ) 0 ) { - /* For inheritance to have occurred there must have been an - * initial timeout, and an adjusted timeout cannot become 0, as - * if it were 0 the function would have exited. */ - #if ( configUSE_MUT...
Allow to specify kernel include dirs It's sometimes convenient to use other kernel headers, now it's possible possible with new KERNEL_INCLUDE_DIRS build variable, like: $ cd <kernel-dir> $ make INSTALL_HDR_PATH=/tmp/headers headers_install $ cd <bcc-dir> $ cmake -DKERNEL_INCLUDE_DIRS=/tmp/headers/include/ ...
@@ -19,6 +19,14 @@ if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/src/cc/libbpf/src) WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) endif() +# It's possible to use other kernel headers with +# KERNEL_INCLUDE_DIRS build variable, like: +# $ cd <kernel-dir> +# $ make INSTALL_HDR_PATH=/tmp/headers headers_install +# $ cd <bcc-...
cmake MAINTENANCE strip output of uncrutify version
@@ -8,7 +8,7 @@ include(FindPackageHandleStandardArgs) find_program(UNCRUSTIFY uncrustify) if(UNCRUSTIFY) - execute_process(COMMAND ${UNCRUSTIFY} --version OUTPUT_VARIABLE VERSION) + execute_process(COMMAND ${UNCRUSTIFY} --version OUTPUT_STRIP_TRAILING_WHITESPACE OUTPUT_VARIABLE VERSION) string(FIND ${VERSION} "-" STAR...
Add initializer braces required by older versions of gcc.
@@ -51,7 +51,7 @@ yamlNew(const Buffer *const buffer) { // Create object this = OBJ_NEW_ALLOC(); - *this = (Yaml){0}; + *this = (Yaml){{0}}; // Extra braces are required for older gcc versions // Initialize parser context CHECK(yaml_parser_initialize(&this->parser));
Fix stm32cubeai Makefile.
@@ -11,13 +11,13 @@ CFLAGS_STNN += -I/ CFLAGS_STNN := $(CFLAGS) $(CFLAGS_STNN) #Sources -SRCS += $(addprefix ../cmsis/src/dsp/BasicMathFunctions/,\ +SRCS += $(addprefix ../hal/cmsis/src/dsp/BasicMathFunctions/,\ arm_shift_q7.c \ arm_shift_q15.c \ arm_dot_prod_f32.c \ ) -SRCS += $(addprefix ../cmsis/src/dsp/SupportFunct...
Add missing static keyword.
@@ -29,7 +29,7 @@ typedef struct ArchiveGetCheckResult String *cipherPass; } ArchiveGetCheckResult; -ArchiveGetCheckResult +static ArchiveGetCheckResult archiveGetCheck(const String *archiveFile, CipherType cipherType, const String *cipherPass) { FUNCTION_LOG_BEGIN(logLevelDebug);
DebugHelp: Case insensitive key press comparison
@@ -129,7 +129,9 @@ WaitForKeyIndex ( // Using loop to allow OC_INPUT_STR changes. // for (Index = 0; Index < OC_INPUT_MAX; ++Index) { - if (OC_INPUT_STR[Index] == Key.UnicodeChar) { + if (OC_INPUT_STR[Index] == Key.UnicodeChar + || (OC_INPUT_STR[Index] >= 'A' && OC_INPUT_STR[Index] <= 'Z' + && (OC_INPUT_STR[Index] | 0...
vrapi: Fix lovr.headset.animate flipping left hand;
@@ -602,8 +602,8 @@ static bool vrapi_animate(Device device, struct Model* model) { float compensate[4]; if (device == DEVICE_HAND_LEFT) { float q[4]; - quat_fromAngleAxis(compensate, (float) -M_PI, 0.f, 0.f, 1.f); - quat_mul(compensate, compensate, quat_fromAngleAxis(q, (float) -M_PI / 2.f, 0.f, 1.f, 0.f)); + quat_fro...
Add riscv64 asm_arch to BSD-riscv64 target Following Add riscv64 asm_arch to linux64-riscv64 target Current ASM does not have Linux specific thing thus this is suitable for BSD
@@ -1108,6 +1108,7 @@ my %targets = ( "BSD-riscv64" => { inherit_from => [ "BSD-generic64"], perlasm_scheme => "linux64", + asm_arch => 'riscv64', }, "bsdi-elf-gcc" => {
[viogpudo] fix a problem reported by Coverity Scan (which for some reason expects int main function to be returning a value explicitly)
@@ -37,10 +37,12 @@ wmain( m_pMgr->Close(); delete m_pMgr; + m_pMgr = NULL; if (pClient) { pClient->Close(); delete pClient; pClient = NULL; } + return 0; }
fix unix bug in decommit size
@@ -632,7 +632,7 @@ static bool mi_os_commitx(void* addr, size_t size, bool commit, bool conservativ #elif defined(MAP_FIXED) if (!commit) { // use mmap with MAP_FIXED to discard the existing memory (and reduce commit charge) - void* p = mmap(start, size, PROT_NONE, (MAP_FIXED | MAP_PRIVATE | MAP_ANONYMOUS | MAP_NORESE...
zephyr: fix _scs_relocate_vector_table build break Zephyr now supports moving the vector table for Corext M* targets. Let's remove this code from mcuboot as this has been changed upstream and breaks mcuboot build.
@@ -70,11 +70,6 @@ void main(void) irq_lock(); _MspSet(vt->msp); - SYS_LOG_INF("Setting vector table to %p", vt); - - /* Not all targets set the VTOR, so just set it. */ - _scs_relocate_vector_table((void *) vt); - SYS_LOG_INF("Jumping to the first image slot"); ((void (*)(void))vt->reset)();
Break process memory iterator in Windows if GetLastError != 0.
@@ -147,6 +147,9 @@ YR_API YR_MEMORY_BLOCK* yr_process_get_next_memory_block( while (address < context->si.lpMaximumApplicationAddress && VirtualQueryEx(context->hProcess, address, &mbi, sizeof(mbi)) != 0) { + if (GetLastError() != ERROR_SUCCESS) + break; + if (mbi.State == MEM_COMMIT && ((mbi.Protect & PAGE_NOACCESS) ...
virtio: zero data structs in virtio_vring_init
@@ -62,9 +62,9 @@ virtio_vring_init (vlib_main_t * vm, virtio_if_t * vif, u16 idx, u16 sz) { clib_error_t *err = 0; virtio_vring_t *vring; - struct vhost_vring_state state; - struct vhost_vring_addr addr; - struct vhost_vring_file file; + struct vhost_vring_state state = { 0 }; + struct vhost_vring_addr addr = { 0 }; +...
sane: fix contact desyncs
:: their hooks :: - Each group has its associated metadata and contacts :: - Each graph is being synced -:: - Each chat is being synced :: /- *metadata-store, contacts=contact-store, *group /+ default-agent, verb, dbug, resource, graph, mdl=metadata, group -~% %sane-app ..card ~ +~% %sane-app ..part ~ |% +$ card card:a...
VERSION bump to version 0.12.60
@@ -34,7 +34,7 @@ set(CMAKE_C_FLAGS_DEBUG "-g -O0") # set version set(LIBNETCONF2_MAJOR_VERSION 0) set(LIBNETCONF2_MINOR_VERSION 12) -set(LIBNETCONF2_MICRO_VERSION 59) +set(LIBNETCONF2_MICRO_VERSION 60) set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION}.${LIBNETCONF2_MICRO_VERSION}) set(L...
cmake: use CMAKE_INSTALL_PREFIX
@@ -50,17 +50,17 @@ set(SOURCES ${PROJECT_SOURCE_DIR}/src/arithmetic.c add_library(symspg SHARED ${SOURCES}) set_property(TARGET symspg PROPERTY VERSION ${serial}) set_property(TARGET symspg PROPERTY SOVERSION ${soserial}) -install(TARGETS symspg LIBRARY DESTINATION ${PROJECT_SOURCE_DIR}/lib) +install(TARGETS symspg LI...
Add portenta clock config.
// FB Heap Block Size #define OMV_UMM_BLOCK_SIZE 16 +//PLL1 480MHz/48MHz for USB, SDMMC and FDCAN +#define OMV_OSC_PLL1M (9) +#define OMV_OSC_PLL1N (320) +#define OMV_OSC_PLL1P (2) +#define OMV_OSC_PLL1Q (20) +#define OMV_OSC_PLL1R (2) +#define OMV_OSC_PLL1VCI (RCC_PLL1VCIRANGE_2) +#define OMV_OSC_PLL1VCO (RCC_PLL1VCOW...
extmod/modtools: allow negative wait time and just don't wait
@@ -12,10 +12,9 @@ STATIC mp_obj_t tools_wait(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw PB_ARG_REQUIRED(time) ); mp_int_t duration = pb_obj_get_int(time); - if (duration < 0) { - pb_assert(PBIO_ERROR_INVALID_ARG); - } + if (duration > 0) { mp_hal_delay_ms(duration); + } return mp_const_none; } STATIC MP_DEF...
mm/kmm_heap/kmm_sem : Add null check of kheap for avoiding dereferencing In kmm sem APIs, heap pointer can be NULL sometimes. To avoid dereferencing, add null checking.
************************************************************************/ #include <tinyara/config.h> +#include <debug.h> +#include <errno.h> #include <tinyara/mm/mm.h> int kmm_trysemaphore(void *dummy_addr) { struct mm_heap_s *kheap = mm_get_heap(dummy_addr); + if (kheap) { return mm_trysemaphore(kheap); } + mdbg("Inv...
add arg -DHSA_RUNTIME_LIB_PATH because updated cmake for roctracer needs it
@@ -95,8 +95,8 @@ if [ "$1" != "nocmake" ] && [ "$1" != "install" ] ; then mkdir -p $BUILD_AOMP/build/roctracer cd $BUILD_AOMP/build/roctracer echo " -----Running roctracer cmake ---- " - echo "${AOMP_CMAKE} -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_INSTALL_PREFIX=$INSTALL_ROCTRACE -DCMAKE_PREFIX_PATH="""$CMAKE_PREFIX_PAT...
enable mouse events for cursors in vna.py
@@ -118,8 +118,10 @@ class VNA(QMainWindow, Ui_VNA): self.cursorLabels = {} self.cursorValues = {} self.cursorMarkers = {} + self.cursorPressed = {} for i in range(len(VNA.cursors)): self.cursorMarkers[i] = None + self.cursorPressed[i] = False self.cursorLabels[i] = QLabel('Cursor %d, kHz' % (i + 1), self) self.cursorL...
Update app to send rand num and button press count
#include <stdbool.h> +#include <stdint.h> #include <stdio.h> #include <ambient_light.h> #include <humidity.h> #include <temperature.h> #include <timer.h> +#include <button.h> +#include <rng.h> #include <ieee802154.h> #include <udp.h> static unsigned char BUF_BIND_CFG[2 * sizeof(sock_addr_t)]; +// counts button presses ...
Fix sRGB profile filename in test.
ATTR uri system-uri $uri ATTR integer resource-id $ICC_RESOURCE_ID ATTR mimeMediaType resource-format application/vnd.iccprofile - FILE sRGB.icc + FILE srgb.icc STATUS successful-ok }
VERSION bump to version 2.2.21
@@ -65,7 +65,7 @@ endif() # micro version is changed with a set of small changes or bugfixes anywhere in the project. set(SYSREPO_MAJOR_VERSION 2) set(SYSREPO_MINOR_VERSION 2) -set(SYSREPO_MICRO_VERSION 20) +set(SYSREPO_MICRO_VERSION 21) set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI...
rt9490: fix IBUS ADC REG_IBUS_ADC reports 16-bit signed integer with 1mA LSB. TEST=input current report correct value BRANCH=none Tested-by: Eric Yilun Lin
@@ -463,10 +463,11 @@ static enum ec_error_list rt9490_get_input_current_limit(int chgnum, static enum ec_error_list rt9490_get_input_current(int chgnum, int *input_current) { - uint16_t reg_val; + int16_t reg_val; - RETURN_ERROR(rt9490_read16(chgnum, RT9490_REG_IBUS_ADC, &reg_val)); - *input_current = (int)reg_val * 1...
Add debug output for hyperbolic secant pulse
@@ -67,6 +67,13 @@ void debug_sim(struct sim_data* data) debug_printf(DP_INFO, "\tt0:%f\n", data->pulse.t0); debug_printf(DP_INFO, "\tAlpha:%f\n", data->pulse.alpha); debug_printf(DP_INFO, "\tA:%f\n\n", data->pulse.A); + + debug_printf(DP_WARN, "Inversion Pulse-Parameter:\n"); + debug_printf(DP_INFO, "\tA0:%f\n", data-...
Fix sock test
@@ -1210,6 +1210,9 @@ void sock_libtest(void) { fprintf(stderr, "done.\n"); sock_close(uuid); } + sock_max_capacity(); + packet_s *packet = sock_packet_new(); + sock_packet_free(packet); packet_s *head, *pos; pos = head = packet_pool.next; size_t count = 0; @@ -1220,8 +1223,7 @@ void sock_libtest(void) { fprintf(stderr...
handles http cancellation in :dns-bind
$% [%dns-authority =authority] [%dns-bind =ship =target] [%handle-http-request =inbound-request:eyre] + [%handle-http-cancel =inbound-request:eyre] [%noun noun=*] == +$ out-poke-data ;< ~ bind:m (poke-app:stdio [our dap]:bowl [%dns-bind ship target]:i.dep) loop(dep t.dep) :: - :: XX need to %handle-http-cancel as well ...
Lucene Match Version updated to 8.5.2
that you fully re-index after changing this setting as it can affect both how text is indexed and queried. --> - <luceneMatchVersion>7.4.0</luceneMatchVersion> + <luceneMatchVersion>8.5.2</luceneMatchVersion> <!-- TODO : change the hardcoded path add property.name=value in API Collections create -->
mv ispc obj to targe objectdir
@@ -41,8 +41,8 @@ rule("utils.ispc") end local headersdir = path.join(target:autogendir(), "rules", "utils", "ispc", "headers") - local objectdir = path.join(target:autogendir(), "rules", "utils", "ispc", "objs") - local objectfile = path.join(objectdir, path.filename(target:objectfile(sourcefile_ispc))) + local object...
net/lwip: check hop limit Silently discard the NS message with invalid hop limit value.
@@ -383,6 +383,14 @@ void nd6_input(struct pbuf *p, struct netif *inp) return; } + if (IP6H_HOPLIM(ip6_current_header()) != 255) { + /* @todo debug message */ + pbuf_free(p); + ND6_STATS_INC(nd6.lenerr); + ND6_STATS_INC(nd6.drop); + return; + } + /* Check for ANY address in src (DAD algorithm). */ if (ip6_addr_isany(ip...
Fix a non main thread warning
@@ -349,6 +349,15 @@ fileprivate extension ConsoleViewController { NSLog("%@", value) DispatchQueue.main.async { + + #if MAIN + let font = EditorViewController.font.withSize(CGFloat(ThemeFontSize)) + let color = ConsoleViewController.choosenTheme.sourceCodeTheme.color(for: .identifier) + #else + let font = UIFont(name:...
Add language specifiers to the fences
@@ -20,7 +20,7 @@ Limitations: ## Assumptions - Thread-safety: a handle is the accepted better solution than having to - care about whether it is reentrant, thread-safe,.. + care about whether it is reentrant, thread-safe, ... - assumes that spec is available and installed correctly (fail in kdbhlOpen otherwise) - look...
py/compile: Adjust c_assign_atom_expr() to use return instead of goto. Makes the flow of the function a little more obvious, and allows to reach 100% coverage of compile.c when using gcov.
@@ -376,6 +376,7 @@ STATIC void c_assign_atom_expr(compiler_t *comp, mp_parse_node_struct_t *pns, as EMIT(store_subscr); } } + return; } else if (MP_PARSE_NODE_STRUCT_KIND(pns1) == PN_trailer_period) { assert(MP_PARSE_NODE_IS_ID(pns1->nodes[0])); if (assign_kind == ASSIGN_AUG_LOAD) { @@ -387,16 +388,10 @@ STATIC void c...
out_es: remove temporal JSON buffer
@@ -216,6 +216,7 @@ static char *es_format(void *data, size_t bytes, int *out_size, ret = es_bulk_append(bulk, j_index, index_len, json_buf, json_size); + flb_free(json_buf); if (ret == -1) { /* We likely ran out of memory, abort here */ msgpack_unpacked_destroy(&result);
X509V3_EXT_add_nconf_sk(): Improve description and use of 'sk' arg, which may be NULL
@@ -305,7 +305,7 @@ static void delete_ext(STACK_OF(X509_EXTENSION) *sk, X509_EXTENSION *dext) /* * This is the main function: add a bunch of extensions based on a config - * file section to an extension STACK. + * file section to an extension STACK. Just check in case sk == NULL. */ int X509V3_EXT_add_nconf_sk(CONF *c...
bump singularity to 2.4
Summary: Application and environment virtualization Name: %{pname}%{PROJ_DELIM} -Version: 2.3.1 +Version: 2.4 Release: 1%{?dist} # https://spdx.org/licenses/BSD-3-Clause-LBNL.html License: BSD-3-Clause-LBNL @@ -58,6 +58,7 @@ BuildRequires: autoconf BuildRequires: automake BuildRequires: libtool BuildRequires: python +R...
Create directory in `extract`
@@ -304,10 +304,18 @@ func extract() error { return err } scopeDir := filepath.Join("/tmp/appscope/", internal.GetNormalizedVersion()) + err = os.MkdirAll(scopeDir, perms) + if err != nil { + log.Error(). + Err(err). + Msgf("Error creating %s directory.", scopeDir) + return err + } + if err = ioutil.WriteFile(filepath....
display: Dry Run -> Dynamic Dry Run
@@ -164,7 +164,7 @@ static void display_displayLocked(honggfuzz_t * hfuzz) display_put("\n Phase : " ESC_BOLD "Main" ESC_RESET); break; case _HF_STATE_DYNAMIC_PRE: - display_put("\n Phase : " ESC_BOLD "Dry Run (1/2)" ESC_RESET); + display_put("\n Phase : " ESC_BOLD "Dynamic Dry Run (1/2)" ESC_RESET); break; case _HF_ST...
include/power/cannonlake.h: Format with clang-format BRANCH=none TEST=none
#define IN_PCH_SLP_S4_DEASSERTED POWER_SIGNAL_MASK(X86_SLP_S4_DEASSERTED) #define IN_PCH_SLP_SUS_DEASSERTED POWER_SIGNAL_MASK(X86_SLP_SUS_DEASSERTED) -#define IN_ALL_PM_SLP_DEASSERTED (IN_PCH_SLP_S3_DEASSERTED | \ - IN_PCH_SLP_S4_DEASSERTED | \ +#define IN_ALL_PM_SLP_DEASSERTED \ + (IN_PCH_SLP_S3_DEASSERTED | IN_PCH_SL...
Directory.mk: The subdirectories' clean and distclean targets need to be unique to avoid the "overriding recipe for target" warning.
@@ -42,6 +42,7 @@ CONFIGSUBDIRS := $(filter-out $(dir $(wildcard *$(DELIM)Kconfig)),$(SUBDIRS)) CLEANSUBDIRS := $(dir $(wildcard *$(DELIM).built)) CLEANSUBDIRS += $(dir $(wildcard *$(DELIM).depend)) CLEANSUBDIRS += $(dir $(wildcard *$(DELIM).kconfig)) +CLEANSUBDIRS := $(sort $(CLEANSUBDIRS)) all: nothing
tests: fix skip logic on test_tap log.txt message: 17:52:59,969 API call failed, expected 0 return value instead of -13 in tap_create_v2_reply(_0=58, context=77019, retval=-13, sw_if_index=4294967295) Test was failing with log message: tap: tap0: tap_create_if: ioctl(TUNSETIFF): Operation not permitted Type: test
@@ -6,10 +6,10 @@ from vpp_devices import VppTAPInterface def check_tuntap_driver_access(): - return os.access("/dev/net/tun", os.R_OK or os.W_OK) + return os.access("/dev/net/tun", os.R_OK and os.W_OK) -@unittest.skipUnless(check_tuntap_driver_access(), "Permission denied") +@unittest.skipIf(check_tuntap_driver_access...
update cram test suite for master
(rolt (zing (turn tan |=(a/tank (wash 0^wid a))))) :: ++ mads - |= a/wain ^- marl - =/ try (mule |.(~(shut ap (rash (nule ';>' a) apex:(sail &):vast)))) + =, userlib + |= a/wain ^- manx + =/ try/(each manx tang) + %- mule |. + elm:(static:cram (rash (nule:unix ';>' a) apex:(sail &):vast)) ?- -.try $& p.try - $| ;= ;div...
Run clang-format in CI, fail the build if everything's not formatted
@@ -4,6 +4,8 @@ env: - JANSSON_BUILD_METHOD=autotools - JANSSON_BUILD_METHOD=coverage JANSSON_CMAKE_OPTIONS="-DJANSSON_COVERAGE=ON -DJANSSON_COVERALLS=ON -DCMAKE_BUILD_TYPE=Debug" JANSSON_EXTRA_INSTALL="lcov curl" - JANSSON_BUILD_METHOD=fuzzer + - JANSSON_BUILD_METHOD=lint +dist: bionic language: c compiler: - gcc @@ -...
vlib: fix issues in the new pci code reported by coverity
@@ -259,6 +259,8 @@ vlib_pci_get_device_info (vlib_pci_addr_t * addr, clib_error_t ** error) } } + close (fd); + vec_reset_length (f); f = format (f, "%v/vpd%c", dev_dir_name, 0); fd = open ((char *) f, O_RDONLY); @@ -268,7 +270,7 @@ vlib_pci_get_device_info (vlib_pci_addr_t * addr, clib_error_t ** error) { u8 tag[3]; ...
Adds use of std::make_shared
@@ -449,7 +449,7 @@ namespace celix { long svcRanking = celix_properties_getAsLong(cProps, OSGI_FRAMEWORK_SERVICE_RANKING, 0); auto svc = std::shared_ptr<I>{static_cast<I*>(voidSvc), [](I*){/*nop*/}}; auto props = celix::Properties::wrap(cProps); - auto owner = std::shared_ptr<celix::Bundle>{new celix::Bundle{const_cas...
dsync: add the missing *contents* to long options array
@@ -2421,6 +2421,7 @@ int main(int argc, char **argv) int option_index = 0; static struct option long_options[] = { + {"contents", 0, 0, 'c'}, {"dryrun", 0, 0, 'n'}, {"no-delete", 0, 0, 'N'}, {"output", 1, 0, 'o'},
py/gc: Factor out a macro to trace GC mark operations. To allow easier override it for custom tracing.
@@ -195,6 +195,14 @@ bool gc_is_locked(void) { && ptr < (void*)MP_STATE_MEM(gc_pool_end) /* must be below end of pool */ \ ) +#ifndef TRACE_MARK +#if DEBUG_PRINT +#define TRACE_MARK(block, ptr) DEBUG_printf("gc_mark(%p)\n", ptr) +#else +#define TRACE_MARK(block, ptr) +#endif +#endif + // ptr should be of type void* #de...
pybind11: update to v2.9.2
@@ -31,7 +31,7 @@ if(OPAE_WITH_PYBIND11) set(PYBIND11_TAG "v2.4.3") else() # Otherwise, pull recent pybind11 tag to enable Python 3.9 support. - set(PYBIND11_TAG "v2.8.1") + set(PYBIND11_TAG "v2.9.2") endif() message(STATUS "Using pybind11 ${PYBIND11_TAG}") opae_external_project_add(PROJECT_NAME pybind11
Add USE_HUMAN_FRIENDLY_ARGS
@@ -415,17 +415,24 @@ M3Result m3_CallWithArgs (IM3Function i_function, i32 i_argc, ccstr_t * i_argv _throw("arguments count missmatch"); } - // The format is currently not user-friendly, - // but it's used in spec tests + // The format is currently not user-friendly by default, + // as this is used in spec tests for (...
BugID:22762050: fixed armcc compilation error related to kspinlock_t
#define K_SPIN_LOCK_H typedef struct { -#if (RHINO_CONFIG_CPU_NUM > 1) volatile uint32_t owner; /* cpu index of owner */ -#endif } kspinlock_t; /* Be careful nested spin lock is not supported */
Nested spinlock bugfix
@@ -1016,16 +1016,17 @@ int proc_threadSleep(unsigned long long us) static int proc_threadWaitEx(thread_t **queue, spinlock_t *spinlock, time_t timeout, int interruptible, spinlock_ctx_t *scp) { int err; + spinlock_ctx_t tsc; - hal_spinlockSet(&threads_common.spinlock, scp); + hal_spinlockSet(&threads_common.spinlock, ...
Fix `createFilterFile` filter file name handle correctly file name in case of tmp directory
@@ -362,7 +362,7 @@ func createFilterFile() (*os.File, error) { if _, err := os.Stat("/tmp/appscope"); os.IsNotExist(err) { os.MkdirAll("/tmp/appscope", 0777) } - f, err = os.OpenFile("/tmp/appscope", os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0755) + f, err = os.OpenFile("/tmp/appscope/scope_filter", os.O_RDWR|os.O_CREATE|os.O...
If LED strip can't be found, behaviors return err
@@ -203,6 +203,8 @@ static int zmk_rgb_underglow_init(struct device *_arg) int zmk_rgb_underglow_cycle_effect(int direction) { + if (!led_strip) return -ENODEV; + if (state.current_effect == 0 && direction < 0) { state.current_effect = UNDERGLOW_EFFECT_NUMBER - 1; return 0; @@ -221,6 +223,8 @@ int zmk_rgb_underglow_cyc...
wip(Makefile): remove -pedantic flag for now
@@ -54,7 +54,7 @@ CFLAGS += -O0 -g -pthread \ -I. -I$(CEEUTILS_DIR) -I$(COMMON_DIR) -I$(THIRDP_DIR) \ -DLOG_USE_COLOR -WFLAGS += -Wall -Wextra -pedantic +WFLAGS += -Wall -Wextra ifeq ($(static_debug),1) CFLAGS += -D_STATIC_DEBUG
Tests: fixed "negative workers" test.
@@ -132,7 +132,7 @@ class TestUnitConfiguration(unit.TestUnitControl): { "app": { "type": "python", - "workers": 1, + "workers": -1, "path": "/app", "module": "wsgi" }
[CI] Dummy build to populate CI cache
@@ -48,35 +48,3 @@ jobs: python3 scripts/build_os_toolchain.py echo "Toolchain built successfully" - - name: Build Rust toolchain - shell: bash - run: | - # Build kernel headers as libutils depends on these - # python3 scripts/build_kernel_headers.py - # We need to build libutils, since the rust libc links against it -...
I made some minor fixes to the script that runs the regression suite on pascal.
# I modified the script to handle the new structure of the src, data and # test directories. # +# Eric Brugger, Fri Jan 4 09:34:59 PST 2019 +# I modified the script to work with the GitHub repository. +# # @@ -383,7 +386,7 @@ echo "Starting tests:\`date\`" # Run the tests, consolidating the results in one directory cd ...
Prepare for Apache NimBLE 1.1.0 release
@@ -26,11 +26,15 @@ repo.versions: "1-latest": "1.0.0" "1.0.0": "nimble_1_0_0_tag" + "1.1.0": "nimble_1_1_0_tag" "1.0-latest": "1.0.0" + "1.1-latest": "1.1.0" repo.newt_compatibility: 0.0.0: 1.1.0: good 1.0.0: 1.1.0: good + 1.1.0: + 1.6.0: good
add comment for validate if file is symlink / junction
@@ -122,6 +122,8 @@ namespace ARIASDK_NS_BEGIN contents += '\n'; contents += sessionSDKUid; contents += '\n'; + + //TBD (labhas) - validate if file is NOT a symlink/junction before trying to write. if (!MAT::FileWrite(path.c_str(), contents.c_str())) { LOG_WARN("Unable to save session analytics to %s", path.c_str());
more neutrinos
@@ -718,6 +718,10 @@ def check_cls_nu(cosmo): # ClTracer test objects lens1 = ccl.WeakLensingTracer(cosmo, dndz=(z,n)) + if cosmo.cosmo.params.N_nu_mass>0: + # We need to avoid IAs if we have neutrinos + lens2 = lens1 + else: lens2 = ccl.WeakLensingTracer(cosmo, dndz=(z,n), ia_bias=(z,n)) nc1 = ccl.NumberCountsTracer(c...
lib: Call flb_tls_init() to initialize OpenSSL This actually starts using the new API function, and hence makes flb_tls.c compatible with OpenSSL v1.0.2.
#include <fluent-bit/flb_time.h> #include <fluent-bit/flb_coro.h> #include <fluent-bit/flb_callback.h> +#include <fluent-bit/flb_tls.h> #include <signal.h> #include <stdarg.h> @@ -106,6 +107,7 @@ static inline struct flb_filter_instance *filter_instance_get(flb_ctx_t *ctx, void flb_init_env() { + flb_tls_init(); flb_co...
Remove custom_header background and add newline after
@@ -500,11 +500,10 @@ void HudElements::show_fps_limit(){ void HudElements::custom_header(){ ImGui::TableNextRow(); ImGui::PushFont(HUDElements.sw_stats->font1); - ImGui::TableAutoHeaders(); std::string text = HUDElements.params->custom_header; center_text(text); ImGui::TextColored(HUDElements.colors.text, "%s",text.c_...
[apps] Add a macro to define separate dump functions
@@ -63,3 +63,20 @@ static inline void mempool_wfi() { asm volatile("wfi"); } // If core_id equals -1, wake up all cores. static inline void wake_up(uint32_t core_id) { wake_up_reg = core_id; } static inline void wake_up_all() { wake_up((uint32_t)-1); } + +// Dump a value via CSR +// This is only supported in simulation...