message
stringlengths
6
474
diff
stringlengths
8
5.22k
iot_secure_sockets.c for lpc54018: corrected comparison
@@ -356,7 +356,7 @@ int32_t SOCKETS_Recv( Socket_t xSocket, SSOCKETContextPtr_t pxContext = ( SSOCKETContextPtr_t ) xSocket; - if( ( SOCKETS_INVALID_CONTEXT != xSocket ) && + if( ( SOCKETS_INVALID_SOCKET != xSocket ) && ( NULL != pvBuffer ) && ( ( nxpsecuresocketsSOCKET_READ_CLOSED_FLAG & pxContext->xShutdownFlags ) ==...
GRIB1: Local definition 5: Allow lowerThreshold and upperThreshold to be MISSING
@@ -13,7 +13,6 @@ _if (timeRangeIndicator==3 || timeRangeIndicator==4 alias productDefinitionTemplateNumber=probPoint; } - template mars_labeling "grib1/mars_labeling.def"; unsigned[1] forecastProbabilityNumber : dump; @@ -24,9 +23,9 @@ signed[1] localDecimalScaleFactor : dump ; unsigned[1] thresholdIndicator : dump; -...
Change "Calibration" to "Orientation" in UI.
<div class="panel-body"> <div class="col-xs-12"> <span style="position:relative; overflow: hidden;"> - <button class="btn btn-primary btn-block" ui-turn-on="modalCalibrateForward">Calibrate AHRS Sensors</button> + <button class="btn btn-primary btn-block" ui-turn-on="modalCalibrateForward">Set AHRS Sensor Orientation</...
h2olog: use `override` keyword
@@ -43,20 +43,20 @@ class h2o_raw_tracer : public h2o_tracer void initialize(); protected: - virtual void do_handle_event(const void *data, int len); - virtual void do_handle_lost(std::uint64_t lost); + void do_handle_event(const void *data, int len) override; + void do_handle_lost(std::uint64_t lost) override; public:...
Fix BCC on arm64 by allowing missing ausyscall ausyscall is not available on ARM64 systems I am testing. The system is running debian buster. All BCC tools fail as a result. Let us not fail if ausyscall is missing.
@@ -381,10 +381,7 @@ try: out = out.split(b'\n',1)[1] syscalls = dict(map(_parse_syscall, out.strip().split(b'\n'))) except Exception as e: - if platform.machine() == "x86_64": pass - else: - raise Exception("ausyscall: command not found") def syscall_name(syscall_num): """Return the syscall name for the particular sys...
highlevel: fix linker error
@@ -2,7 +2,7 @@ file (GLOB SOURCES *.c) set_source_files_properties (${PROJECT_BINARY_DIR}/src/error/elektra_errors.c PROPERTIES GENERATED ON) -add_lib (highlevel SOURCES ${SOURCES} ${PROJECT_BINARY_DIR}/src/error/elektra_errors.c LINK_ELEKTRA elektra-kdb) +add_lib (highlevel SOURCES ${SOURCES} ${PROJECT_BINARY_DIR}/sr...
Add common internal crypto/ modules in liblegacy.a Just as for the FIPS module, there's code in the legacy module that need this.
@@ -80,6 +80,7 @@ SOURCE[../libcrypto]=$UTIL_COMMON \ o_fopen.c getenv.c o_init.c o_fips.c init.c trace.c provider.c \ $UPLINKSRC SOURCE[../providers/libfips.a]=$UTIL_COMMON +SOURCE[../providers/liblegacy.a]=$UTIL_COMMON # Implementations are now spread across several libraries, so the defines # need to be applied to a...
Fix compilation for INET6 stacks
#if defined(__FreeBSD__) && !defined(__Userspace__) #include <sys/cdefs.h> -__FBSDID("$FreeBSD: head/sys/netinet/sctputil.c 362448 2020-06-20 20:20:16Z tuexen $"); +__FBSDID("$FreeBSD: head/sys/netinet/sctputil.c 362454 2020-06-20 23:48:57Z tuexen $"); #endif #include <netinet/sctp_os.h> @@ -7638,6 +7638,8 @@ sctp_bind...
test: add one more
@@ -171,6 +171,16 @@ int main (int argc, char ** argv) SET(field_injector_arg, "p->f1,\n"); SET(field_inject_settings, "if (p->f1 != NULL)\n p->__M.arg_switches[0] = p->f1;\n"); test_one(); + + SET(spec, "{(name):|f1|, (type):{ (base):|int| }, (inject_if_not):10}"); + SET(field_struct, "int f1;\n"); + SET(field_cleanup...
af_xdp: fix xsk_socket__delete left un-cleanup Type: fix while xsk fd closed by clib_file_del_by_index fisrt, xsk_get_mmap_offsets will get wrong off in xsk_socket__delete, so munmap wrong place.
@@ -101,9 +101,6 @@ af_xdp_delete_if (vlib_main_t * vm, af_xdp_device_t * ad) ethernet_delete_interface (vnm, ad->hw_if_index); } - for (i = 0; i < ad->rxq_num; i++) - clib_file_del_by_index (&file_main, vec_elt (ad->rxqs, i).file_index); - for (i = 0; i < ad->txq_num; i++) clib_spinlock_free (&vec_elt (ad->txqs, i).lo...
reformat-markdown bug?
@@ -226,8 +226,7 @@ kdbkey {'system/sw/samba/#0/current/global/workgroup': > Note, that the specification (in both examples above) actually lands up in > `spec/sw/samba/#0/current/global/workgroup`. The unique path to the > configuration setting is `/sw/samba/#0/current/global/workgroup`, but -> the specification gets ...
Fix error on autoLabel for some text events
@@ -4,7 +4,7 @@ const id = "EVENT_TEXT"; const groups = ["EVENT_GROUP_DIALOGUE"]; const autoLabel = (fetchArg, args) => { - if ((args.text || []).join()) { + if (([].concat(args.text) || []).join()) { return l10n("FIELD_TEXT_LABEL", { text: fetchArg("text"), });
vagrant: use nearby mirrors
#!/usr/bin/env bash +# Use nearby mirrors. +sudo sed -i -e 's#http://archive.ubuntu.com/ubuntu#mirror://mirrors.ubuntu.com/mirrors.txt#' /etc/apt/sources.list + # Install i386 binary support on x64 system and required tools sudo dpkg --add-architecture i386 sudo add-apt-repository --yes ppa:mosquitto-dev/mosquitto-ppa
Add warning about start-server on Windows.
@@ -121,3 +121,11 @@ New Features Note that the new request metrics is still a work in progress and may be modified or enhanced, causing breaking changes in the format of data returned. + +* Hidden experimental support for running ``mod_wsgi-express start-server`` + on Windows. It will not show in list of sub commands ...
Docs:Update Overall Design en In BoAT implementation framework Section,the interface layer(#106 ) statement is wrong. The protocol layer(#107 ) and the RPC layer(#108 ) are not made clear.
@@ -37,9 +37,9 @@ Figure 3-1 The position of BoAT in the blockchain interactive network<br> ## BoAT implementation framework BoAT follows a hierarchical design, which is divided into interface layer, protocol layer, RPC layer, hardware dependency layer, general tools and utility programs. among them: -+ The interface p...
Makefile: Wno-format-truncation
@@ -26,7 +26,7 @@ LD = $(CC) BIN := honggfuzz HFUZZ_CC_BINS := hfuzz_cc/hfuzz-clang hfuzz_cc/hfuzz-clang++ hfuzz_cc/hfuzz-gcc hfuzz_cc/hfuzz-g++ HFUZZ_CC_SRCS := hfuzz_cc/hfuzz-cc.c -COMMON_CFLAGS := -D_GNU_SOURCE -Wall -Werror -Wframe-larger-than=131072 +COMMON_CFLAGS := -D_GNU_SOURCE -Wall -Werror -Wframe-larger-than...
Cleanup PSA ifdefs for CBC block mode Try to make these definitions clearer given the complexity of the mapping between the PSA config options and the MBEDTLS ones.
@@ -333,26 +333,20 @@ extern "C" { #if defined(PSA_WANT_ALG_CBC_NO_PADDING) || defined(PSA_WANT_ALG_CBC_PKCS7) #define MBEDTLS_CIPHER_MODE_CBC -#if defined(PSA_WANT_ALG_CBC_PKCS7) -#define MBEDTLS_CIPHER_PADDING_PKCS7 -#endif /* PSA_WANT_ALG_CBC_PKCS7 */ #endif /* PSA_WANT_ALG_CBC_NO_PADDING || PSA_WANT_ALG_CBC_PKCS7 *...
Adds max probe_count to gpsegwalrep.py FTS probes Previously, gpsegwalrep.py would wait indefinitely until the FTS probe transitioned into an expected state. This commit adds a maximum probe_count
@@ -365,12 +365,13 @@ def defargs(): return parser.parse_args() -def ForceFTSProbeScan(cluster_configuration, expected_mirror_status = None): +def ForceFTSProbeScan(cluster_configuration, expected_mirror_status = None, max_probes=2000): '''Force FTS probe scan to reflect primary and mirror status in catalog.''' command...
Remove extraneous break
@@ -191,7 +191,6 @@ bool lib_loaded(const std::string& lib) { auto sym = read_symlink(file.c_str()); if (sym.find(lib) != std::string::npos) { return true; - break; } } return false;
story: fix output formatting in `+story-log`
:: There are two recursions in the log file: :: 1. the outer loop, `commit-loop` which threads downwards into each commit by ancestor :: 2. the inner loop, `ancestor-loop`, which threads left-to-right on reverse-ancestors +:: +:: +story-log outputs a tang with the least-recent commits at the head of the list, +:: even ...
Have RAC CRange's go up to COffMax
@@ -89,9 +89,7 @@ visited for any given request `[di .. dj)`. `Range` is a pair of byte offsets `[i .. j)`, in either `CSpace` or `DSpace`. It is half-open, containing every byte offset `x` such that `(i <= x)` and `(x -< j)`. The size of a `Range` equals `(j - i)` if `(j > i)`, otherwise it equals -zero. Having `(j <=...
gpu: tally waits for query results;
@@ -1600,7 +1600,7 @@ void gpu_copy_texture_buffer(gpu_stream* stream, gpu_texture* src, gpu_buffer* d } void gpu_copy_tally_buffer(gpu_stream* stream, gpu_tally* src, gpu_buffer* dst, uint32_t srcIndex, uint32_t dstOffset, uint32_t count, uint32_t stride) { - vkCmdCopyQueryPoolResults(stream->commands, src->handle, sr...
[examples] curious ref file
@@ -241,7 +241,7 @@ int main(int argc, char* argv[]) // Comparison with a reference file SimpleMatrix dataPlotRef(dataPlot); dataPlotRef.zero(); - ioMatrix::read("BouncingBallTwoContactsED.cpp", "ascii", dataPlotRef); + ioMatrix::read("BouncingBallTwoContactsED.ref", "ascii", dataPlotRef); std:: cout << " Error ="<< (d...
[finsh] Add lwip 2.0.0 support.
@@ -314,6 +314,9 @@ FINSH_FUNCTION_EXPORT_ALIAS(cmd_ifconfig, __cmd_ifconfig, list the information o #ifdef RT_LWIP_DNS #include <lwip/api.h> #include <lwip/dns.h> +#include <lwip/ip_addr.h> +#include <lwip/init.h> + int cmd_dns(int argc, char **argv) { extern void set_dns(char* dns_server); @@ -321,12 +324,22 @@ int c...
Fix array indexation in copy, and fix test (Reference-LAPACK PR764)
* SRNAMT = 'CLATRS3' CALL CCOPY( N, X, 1, B, 1 ) - CALL CCOPY( N, X, 1, B, 1 ) + CALL CCOPY( N, X, 1, B( N+1 ), 1 ) CALL CSCAL( N, BIGNUM, B( N+1 ), 1 ) CALL CLATRS3( UPLO, TRANS, DIAG, 'N', N, 2, A, LDA, $ B, MAX(1, N), SCALE3, RWORK, WORK, NMAX, * IF( INFO.NE.0 ) $ CALL ALAERH( PATH, 'CLATRS3', INFO, 0, - $ UPLO // T...
changed response of getLoadedAccountsList to JSON string
@@ -31,8 +31,7 @@ struct loaded_accounts_response parseForLoadedAccountsListResponse(char* respons } else { secFree(_status); oidc_errno = OIDC_SUCCESS; - char *accounts = JSONArrayStringToDelimitedString(_info, "||"); - return (struct loaded_accounts_response){accounts}; + return (struct loaded_accounts_response){_inf...
fuzz: better way of going around the list of dynamic files
@@ -68,7 +68,6 @@ static void fuzz_getFileName(honggfuzz_t* hfuzz, fuzzer_t* fuzzer) static bool fuzz_prepareFileDynamically(honggfuzz_t* hfuzz, fuzzer_t* fuzzer) { fuzzer->origFileName = "[DYNAMIC]"; - struct dynfile_t* dynfile; { MX_SCOPED_RWLOCK_READ(&hfuzz->dynfileq_mutex); @@ -79,16 +78,19 @@ static bool fuzz_prep...
Updates to ASE Makefile for Quartus 17.1.1
@@ -100,8 +100,8 @@ GLS_VERILOG_OPT = $(QUARTUS_HOME)/eda/sim_lib/altera_primitives.v GLS_VERILOG_OPT+= $(QUARTUS_HOME)/eda/sim_lib/220model.v GLS_VERILOG_OPT+= $(QUARTUS_HOME)/eda/sim_lib/sgate.v GLS_VERILOG_OPT+= $(QUARTUS_HOME)/eda/sim_lib/altera_mf.v -GLS_VERILOG_OPT+= $(QUARTUS_HOME)/eda/sim_lib/stratixv_hssi_atom...
Make harness a bit more tolerant for accepting output
@@ -133,7 +133,7 @@ class Harness: lines = rf.readlines() for idx, line in enumerate(lines): if line.strip() == "root (nd)" or \ - line.strip().startswith("Kernel starting at address"): + "Barrelfish CPU driver starting" in line.strip(): break if idx > 0: with open(boot_file_name, 'w') as wf:
AltGR fix in the Code Editor
@@ -891,7 +891,7 @@ static void processKeyboard(Code* code) { tic_mem* tic = code->tic; - if(tic->ram.input.keyboard.data == 0) return; + if(tic->ram.input.keyboard.data == 0 || tic->ram.input.keyboard.text != 0) return; switch(getClipboardEvent(0)) { @@ -1044,7 +1044,6 @@ static void textEditTick(Code* code) processKe...
gftp-gtk.c: forget last dir if remember_last_directory == 0
@@ -99,6 +99,13 @@ _gftp_exit (GtkWidget * widget, gpointer data) tempstr = gtk_combo_box_text_get_active_text(GTK_COMBO_BOX_TEXT(window2.dir_combo)); gftp_set_global_option ("remote_startup_directory", tempstr); } + else + { + // problem: last_directory is always set, we must forget it + // until remember_last_directo...
more robust id heap test; mix allocs and frees and churn aplenty
#define MAX_PAGE_ORDER 12 #define LENGTH_ORDER 16 +#define RANDOM_TEST_PASSES 100 static boolean basic_test(heap h) { @@ -50,7 +51,7 @@ static boolean basic_test(heap h) } #define VEC_LEN 64 -static boolean random_test(heap h, u64 page_order) +static boolean random_test(heap h, u64 page_order, int churn) { int max_orde...
ToolStatus: Remove unused code (searchbox autocomplete)
@@ -1294,64 +1294,6 @@ LRESULT CALLBACK MainWndSubclassProc( } } break; - case WM_MEASUREITEM: - { - LPMEASUREITEMSTRUCT drawInfo = (LPMEASUREITEMSTRUCT)lParam; - - if (drawInfo->CtlType == ODT_COMBOBOX) - { - drawInfo->itemHeight = 16; - } - } - break; - case WM_DRAWITEM: - { - LPDRAWITEMSTRUCT drawInfo = (LPDRAWITEMS...
right names for plots in calc_feature_statistics
@@ -2170,14 +2170,14 @@ class CatBoost(_CatBoostBase): Parameters ---------- - feature: None, int, string, or list of int or strings - Features indexes or names in pd.DataFrame for which you want to get statistics. - None, if you need statistics for all features. data: numpy.array or pandas.DataFrame or catboost.Pool D...
lv_ddlist: fix original selected option not restoring on escape
@@ -701,6 +701,7 @@ static lv_res_t lv_ddlist_signal(lv_obj_t * ddlist, lv_signal_t sign, void * par } else if(c == LV_GROUP_KEY_ESC) { if(ext->opened) { ext->opened = 0; + ext->sel_opt_id = ext->sel_opt_id_ori; lv_ddlist_refr_size(ddlist, true); } }
merge -V into -h
@@ -784,8 +784,12 @@ USAGE: h2olog -p PID h2olog quic -p PID h2olog quic -t event_type -p PID h2olog quic -v -s response_header_name -p PID - h2olog [-h] [-V] [-d] // help / version / debug -""".strip()) + h2olog [-h] [-d] // help / debug + +h2olog version %s +Platform: %s +BCC: %s +""".strip() % (version, platform.pla...
mangle: exprand() based on an idea by
@@ -46,7 +46,10 @@ static inline size_t mangle_LenLeft(run_t* run, size_t off) { return (run->dynfile->size - off - 1); } -/* Get a random value <1:max>, but prefer smaller ones - up to 8KiB */ +/* + * Get a random value <1:max>, but prefer smaller ones + * Based on an idea by https://twitter.com/gamozolabs + */ static...
Update .travis.yml for docker deploy
matrix: include: - - python: '2.7' + - python: '3.6' sudo: required services: - docker env: DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64 DOCKER_DEPLOY='manylinux1_x86_64' - TRAVIS_PYTHON_VERSION='2.7' - - python: '2.7' + TRAVIS_PYTHON_VERSION='3.6' + PLAT=manylinux1_x86_64 + - python: '3.6' sudo: required services: - do...
core/opal.c: sparse cleanup integer as NULL Fixes: core/opal.c:418:61: warning: Using plain integer as NULL pointer
@@ -415,7 +415,7 @@ void add_opal_node(void) opal_event = dt_new(opal_node, "event"); dt_add_property_strings(opal_event, "compatible", "ibm,opal-event"); dt_add_property_cells(opal_event, "#interrupt-cells", 0x1); - dt_add_property(opal_event, "interrupt-controller", 0, 0); + dt_add_property(opal_event, "interrupt-con...
VERSION bump to version 0.12.2
@@ -32,7 +32,7 @@ set(CMAKE_C_FLAGS_DEBUG "-g -O0") # set version set(LIBNETCONF2_MAJOR_VERSION 0) set(LIBNETCONF2_MINOR_VERSION 12) -set(LIBNETCONF2_MICRO_VERSION 1) +set(LIBNETCONF2_MICRO_VERSION 2) set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION}.${LIBNETCONF2_MICRO_VERSION}) set(LIB...
update template engine example
import System; -const LEFT_BRACE = "{"; -const RIGHT_BRACE = "}"; - // Template is a simple template rendering engine. class Template { - private tmpl; - private klass; - private rendered; + var LEFT_BRACE = "{"; + var RIGHT_BRACE = "}"; init(tmpl, klass) { this.tmpl = tmpl; @@ -19,22 +15,26 @@ class Template { // fiel...
Update doc/decisions/spec_expressiveness.md
@@ -17,7 +17,7 @@ We need to find minimal requirements to implement a sane spec plugin. - no defaults for `sw/_/key` specifications (default will not work for `ksLookup(/sw/sthg/key)`) -- plugins are not allowed to create keys +- plugins are not allowed to create keys (may change in future; depends on plugin positions)...
Another fix attempt
@@ -16,4 +16,4 @@ jobs: - name: get container run: docker pull jeffbush001/nyuzi-build - name: build - run: docker run -v .:/root/NyuziProcessor -w /root/NyuziProcessor jeffbush001/nyuzi-build /bin/bash -c scripts/run_ci_tests.sh + run: docker run -v $(pwd):/root/NyuziProcessor -w /root/NyuziProcessor jeffbush001/nyuzi...
wren: Remove a magic number in the compiler.
@@ -2088,7 +2088,7 @@ static void field(Compiler* compiler, bool canAssign) { // Initialize it with a fake value so we can keep parsing and minimize the // number of cascaded errors. - int field = 255; + int field = MAX_FIELDS; ClassInfo* enclosingClass = getEnclosingClass(compiler);
Fixed Misra complaint
@@ -78,6 +78,15 @@ void rtc_set_time(timestamp_t time){ timestamp_t rtc_get_time(void){ timestamp_t result; + // Init with zero values in case there is no RTC running + result.year = 0U; + result.month = 0U; + result.day = 0U; + result.weekday = 0U; + result.hour = 0U; + result.minute = 0U; + result.second = 0U; + if(b...
[apps] Adjust counting queues for benchmark
@@ -78,13 +78,15 @@ void blocking_queue_push(queue_t *const queue, int32_t *data) { void counting_queue_pop(queue_t *const queue, int32_t *data, uint32_t *counter) { while (queue_pop(queue, data)) { - counter++; + __asm__ __volatile__(""); + (*counter)++; }; } void counting_queue_push(queue_t *const queue, int32_t *dat...
Exposed Sheth-Tormen mass function to python
@@ -60,7 +60,8 @@ mass_function_types = { 'angulo': lib.angulo, 'tinker': lib.tinker, 'tinker10': lib.tinker10, - 'watson': lib.watson + 'watson': lib.watson, + 'shethtormen': lib.shethtormen } """dict: Types of halo mass function models. The strings represent possible choices the user can specify for different halo ma...
Remove unnecessary packages from doc requirements (fix build)
@@ -3,29 +3,19 @@ Babel==2.9.1 breathe==4.33.1 certifi==2021.10.8 charset-normalizer==2.0.12 -click==8.0.3 colorama==0.4.4 -Cython==0.29.27 -distlib==0.3.4 docutils==0.17.1 -expense-parser==0.0.1 -filelock==3.6.0 idna==3.3 imagesize==1.3.0 importlib-metadata==4.11.3 Jinja2==3.0.3 -livereload @ https://github.com/leptur...
Add "no existing reader gangs" assert when destroying writer gang.
@@ -93,6 +93,7 @@ static CdbComponentDatabaseInfo *findDatabaseInfoBySegIndex( CdbComponentDatabases *cdbs, int segIndex); static void addGangToAllocated(Gang *gp); static Gang *getAvailableGang(GangType type, int size, int content); +static bool readerGangsExist(void); /* * Create a reader gang. @@ -1031,6 +1032,8 @@ ...
Jenkinsfile: enable debug where memcheck is run
@@ -64,8 +64,7 @@ CMAKE_FLAGS_BASE = [ CMAKE_FLAGS_BUILD_ALL = [ 'BINDINGS': 'ALL;-DEPRECATED', 'PLUGINS': 'ALL;-DEPRECATED', - 'TOOLS': 'ALL', - 'ENABLE_DEBUG': 'ON' // TODO: remove ENABLE_DEBUG + 'TOOLS': 'ALL' ] CMAKE_FLAGS_COVERAGE = ['ENABLE_COVERAGE': 'ON'] @@ -440,6 +439,7 @@ def generateMainBuildStages() { "deb...
Initialize stencil mask state slightly better; Not sure this has an effect but it seems better.
@@ -3383,7 +3383,9 @@ Pass* lovrGraphicsGetPass(PassInfo* info) { .viewCount = pass->viewCount, .depth.format = depth->texture ? depth->texture->info.format : depth->format, .depth.test = GPU_COMPARE_GEQUAL, - .depth.write = true + .depth.write = true, + .stencil.testMask = 0xff, + .stencil.writeMask = 0xff }; for (uin...
[Gate] Transformation of messages mode node/topic depending on json
@@ -101,19 +101,29 @@ void Bootloader_JsonToLuos(service_t *service, char *bin_data, json_t const *boo // parse all relevant values in json object uint16_t type = (uint16_t)json_getReal(json_getProperty(command_item, "type")); uint8_t topic_target = (uint8_t)json_getReal(json_getProperty(command_item, "topic")); + uint...
Updated RPM spec file.
@@ -37,10 +37,10 @@ features as they evolve. %build %cmake -DCMAKE_INSTALL_PREFIX=/usr -DSOCKET_API=1 -DUSRSCTP_SUPPORT=0 -DSCTP_MULTISTREAMING=1 -DFLOW_GROUPS=1 . -make %{?_smp_mflags} +%cmake_build %install -make install DESTDIR=%{buildroot} +%cmake_install %files %{_libdir}/libneat.so*
correctly accolade ifs
@@ -849,10 +849,11 @@ zparser_conv_svcbparam_ipv4hint_value(region_type *region, const char *val) for (i = 0, count = 1; val[i]; i++) { if (val[i] == ',') count += 1; - if (count > SVCB_MAX_COMMA_SEPARATED_VALUES) + if (count > SVCB_MAX_COMMA_SEPARATED_VALUES) { zc_error_prev_line("Too many IPV4 addresses in ipv4hint")...
continous integration fixes
@@ -74,6 +74,7 @@ def test_emu(model): err = np.abs(pk/data[:, 1]-1) assert np.allclose(err, 0, rtol=0, atol=EMU_TOLERANCE) + @pytest.mark.parametrize('model', list(range(3))) def test_emu_lin(model): cosmos = np.loadtxt("./benchmarks/data/emu_input_cosmologies.txt") @@ -98,7 +99,6 @@ def test_emu_lin(model): matter_po...
Add missing frees to generate nonce test
@@ -3782,6 +3782,8 @@ void aead_multipart_generate_nonce( int key_type_arg, data_t *key_data, exit: psa_destroy_key( key ); + mbedtls_free( output_data ); + mbedtls_free( final_data ); psa_aead_abort( &operation ); PSA_DONE( ); }
Minor fix for multiple reinstallations of Datafari
@@ -214,6 +214,8 @@ start_solr() init_solr() { + find $SOLR_INSTALL_DIR/solr_home -maxdepth 1 -mindepth 1 -type d -exec rm -rf '{}' \; + run_as ${DATAFARI_USER} "find $SOLR_INSTALL_DIR/solr_home -maxdepth 1 -mindepth 1 -type d -exec rm -rf '{}' \;" #curl --insecure -XGET "https://localhost:8983/solr/admin/collections?a...
Python: fixed interpreter path in ./configure.
@@ -68,7 +68,6 @@ if /bin/sh -c "$NXT_PYTHON_CONFIG --prefix" >> $NXT_AUTOCONF_ERR 2>&1; then NXT_PYTHON_CONFIG="${NXT_PYTHON_CONFIG} --embed" fi - NXT_PYTHON_EXEC=`${NXT_PYTHON_CONFIG} --exec-prefix`/bin/${NXT_PYTHON} NXT_PYTHON_INCLUDE=`${NXT_PYTHON_CONFIG} --includes` NXT_PYTHON_LIBS=`${NXT_PYTHON_CONFIG} --ldflags`...
QUIC TXP: Correct an issue with an uninitialized variable
@@ -1253,7 +1253,7 @@ static int txp_generate_crypto_frames(OSSL_QUIC_TX_PACKETISER *txp, OSSL_QTX_IOVEC iov[2]; uint64_t hdr_bytes; WPACKET *wpkt; - QUIC_TXPIM_CHUNK chunk; + QUIC_TXPIM_CHUNK chunk = {0}; size_t i, space_left; for (i = 0;; ++i) {
Connections markers restored to 16x8px version
@@ -116,36 +116,36 @@ class Connections extends Component { renderMarker = ({ x, y, direction, onMouseDown, eventId, className }) => ( <g key={eventId} className={className} onMouseDown={onMouseDown}> - <rect x={x - 4} y={y - 4 - 8} rx={4} ry={4} width={16} height={16} /> + <rect x={x - 4} y={y - 4} rx={4} ry={4} width...
cmd/kubectl-gadget/trace: Fix naming on DNS gadget
@@ -32,13 +32,13 @@ func newDNSCmd() *cobra.Command { return commonutils.WrapInErrParserCreate(err) } - execGadget := &TraceGadget[dnsTypes.Event]{ + dnsGadget := &TraceGadget[dnsTypes.Event]{ name: "dns", commonFlags: &commonFlags, parser: parser, } - return execGadget.Run() + return dnsGadget.Run() } cmd := commontra...
yin parser BUGFIX allow -0 as value and not as position
@@ -725,7 +725,7 @@ yin_parse_value_pos_element(struct yin_parser_ctx *ctx, struct yin_arg_record *a /* get attribute value */ LY_CHECK_RET(yin_parse_attribute(ctx, attrs, YIN_ARG_VALUE, &temp_val, Y_STR_ARG, kw)); - if (!temp_val || (temp_val[0] == '+') || ((temp_val[0] == '0') && (temp_val[0] != '\0')) || ((kw == YAN...
Remove unused 'line' variable
@@ -1202,7 +1202,6 @@ gen_cmd["GetTable"] = function(self, cmd, _func) local tab = self:c_value(cmd.src_tab) local key = self:c_value(cmd.src_k) local dst_typ = cmd.dst_typ - local line = C.integer(cmd.loc.line) assert(cmd.src_k._tag == "ir.Value.String") local field_name = cmd.src_k.value
Disables default extra compiler warnings
@@ -71,7 +71,7 @@ if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") endif() endif() -option(ENABLE_MORE_WARNINGS "whether to enable more compiler warnings." ON) +option(ENABLE_MORE_WARNINGS "whether to enable more compiler warnings." OFF) if (ENABLE_MORE_WARNINGS) if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") if (CMAKE_CXX...
update `-o modern` documentation for -h
@@ -5526,7 +5526,7 @@ static void usage(void) { " no perf difference in binary protocol. Speeds up sets.\n" " - modern: Enables 'modern' defaults. Options that will be default in future.\n" " enables: slab_chunk_max:512k,slab_reassign,slab_automove=1,maxconns_fast,\n" - " hash_algorithm=murmur3,lru_crawler,lru_maintain...
apps: crypto_test: fix warnings from syscfg Enabling/disabling some of the crypto_test syscfgs resulted in warnings from non-used variables, etc. This commit fixes the issues so each individual syscfg can be isolatedly used.
@@ -46,6 +46,12 @@ struct test_vectors { static struct os_mutex mtx; +#if (MYNEWT_VAL(CRYPTOTEST_VECTORS_ECB) || \ + MYNEWT_VAL(CRYPTOTEST_VECTORS_CBC) || \ + MYNEWT_VAL(CRYPTOTEST_VECTORS_CTR)) +#define RUN_VECTOR_TESTS 1 +#endif + /* * Test vectors from "NIST Special Publication 800-38A" */ @@ -236,6 +242,7 @@ static...
apps/examples/pwfb/pwfb_main.c: Fix typo in printf text
@@ -378,7 +378,7 @@ static bool pwfb_configure_window(FAR struct pwfb_state_s *st, int wndx, if (ret < 0) { printf("pwfb_configure_window: ERROR: " - "nx_setsize failed: %d\n", errno); + "nxtk_setsize failed: %d\n", errno); goto errout_with_hwnd; }
Check the exit code from the server process
@@ -316,6 +316,7 @@ sub clientstart print "Waiting for server process to close: " .$self->serverpid."\n"; waitpid( $self->serverpid, 0); + die "exit code $? from server process\n" if $? != 0; } return 1; }
Change req_check_len error message, it also accepts 20 bytes, but states 'less than' in the error message
@@ -1273,7 +1273,7 @@ static int req_check_len(int len, int n_min, int n_max) } if ((n_max >= 0) && (len > n_max)) { BIO_printf(bio_err, - "string is too long, it needs to be less than %d bytes long\n", + "string is too long, it needs to be no more than %d bytes long\n", n_max); return (0); }
error: ignoring failing tests on macOs via cmake
@@ -30,5 +30,12 @@ add_kdb_test (nested REQUIRED_PLUGINS error) add_kdb_test (simple REQUIRED_PLUGINS error) add_kdb_test (ensure REQUIRED_PLUGINS tracer list spec) +if (NOT + (APPLE + AND XCODE + AND XCODE_VERSION + VERSION_EQUAL + 10.1)) set_source_files_properties (testkdb_highlevel PROPERTIES COMPILE_FLAGS -Wno-sig...
allow Ctrl+V for paste, fix duplicated Ctrl+P shortcuts
@@ -298,7 +298,7 @@ CreateMenus (GtkWidget * parent) {N_("/Local/_Delete..."), "<control><shift>D", delete_dialog, 0, MN_(NULL)}, {N_("/Local/_Edit..."), "<control><shift>E", edit_dialog, 0, MN_(NULL)}, - {N_("/Local/_View..."), "<control><shift>V", view_dialog, 0, MN_(NULL)}, + {N_("/Local/_View..."), "<control><shift...
Update docs/Advanced-Concepts/Top-Testharness.rst [ci skip]
@@ -80,7 +80,7 @@ instantiates a TileLink GPIO node, and connects it to the proper buses. If we look at the ``WithGPIOTop`` mixin in the ``ConfigMixins.scala`` file, we see that adding this mixin to the top-level Config overrides the ``BuildTop`` key with a custom function that both instantiates the custom Top, and dri...
publish: invite-search shows valid ship in results
@@ -69,6 +69,18 @@ export class InviteSearch extends Component { this.setState({ searchResults: { groups: groupMatches, ships: shipMatches } }); + + let isValid = true; + if (!urbitOb.isValidPatp("~" + searchTerm)) { + isValid = false; + } + + if ((shipMatches.length === 0) && (isValid)) { + shipMatches.push(searchTerm...
Empty while loop does not reload contition to check in each iteration. Add some statement to force reloading. Before this change, this while loop compiles into below on Marvell port. 100b86: e7fe b.n 100b86 <TEST_UTIL_Platform_Threads_IotThreads_MutexTest_+0x52>
@@ -238,6 +238,8 @@ TEST( UTIL_Platform_Threads, IotThreads_MutexTest ) /* Wait for signal to continue */ while( ti.testValue == 0 ) { + /* Force while loop reload condition every iteration. */ + vTaskDelay( configTICK_RATE_HZ / 10 ); } if( ti.testValue != 1 ) @@ -252,6 +254,8 @@ TEST( UTIL_Platform_Threads, IotThreads...
JENKINS: Fix Flag for Interrupt. This must be -i and not -I
@@ -43,7 +43,7 @@ function test () # $1 = card, $2 = drive echo "Testing in IRQ mode" for b in 512 1024 ; do echo "Using IRQ mode" - cmd="$FUNC -C $card -d $drive -b $b -I" + cmd="$FUNC -C $card -d $drive -b $b -i" eval ${cmd} if [ $? -ne 0 ]; then echo "cmd: $cmd"
Add else class to flag unsupported architectures
@@ -129,6 +129,9 @@ if(${ARCH} MATCHES "aarch64") elseif(${ARCH} MATCHES "x86_64") set(CMAKE_OSX_ARCHITECTURES "x86_64") +else() + message(FATAL_ERROR "Unsupported architecture") + endif() set(CMAKE_CXX_STANDARD 14)
examples/jpeg: decode both to yuv and to rgb
@@ -13,6 +13,28 @@ extern "C" { #include "turbojpeg.h" +void decompressToYUV( + tjhandle tjh, unsigned char* buf, size_t len, int width, int height, int jpegSubsamp) { + unsigned char* dstBuf = tjAlloc(tjBufSizeYUV2(width, 4, height, jpegSubsamp)); + if (!dstBuf) { + return; + } + tjDecompressToYUV2(tjh, buf, len, dstB...
fixed the list option for releases before 13.1
@@ -93,7 +93,7 @@ if [ -d $repodirname ] ; then fi } -function list_repo(){ +function list_repo_from_manifest(){ logcommit=`git log -1 | grep "^commit" | cut -d" " -f2 | xargs` thiscommit=${logcommit:0:12} thisdate=`git log -1 --pretty=fuller | grep "^CommitDate:" | cut -d":" -f2- | xargs | cut -d" " -f2-` @@ -200,7 +2...
OcCpuLib: Fix CurBusRatio calculation for Nehalem/Westmere
@@ -283,6 +283,7 @@ ScanIntelProcessor ( MSR_SANDY_BRIDGE_PKG_CST_CONFIG_CONTROL_REGISTER PkgCstConfigControl; MSR_IA32_PERF_STATUS_REGISTER PerfStatus; MSR_NEHALEM_PLATFORM_INFO_REGISTER PlatformInfo; + OC_CPU_GENERATION CpuGeneration; MSR_NEHALEM_TURBO_RATIO_LIMIT_REGISTER TurboLimit; UINT16 CoreCount; CONST CHAR8 *T...
testcase/kernel/mqueue: Add omitted mq_unlink and move mq_close before unlink 1.if no unlink, the allocated message queue is not freed. 2.for testing mq_unlink, mq_close should be called first.
@@ -711,8 +711,10 @@ static void tc_mqueue_mq_notify(void) TC_ASSERT_EQ_ERROR_CLEANUP("mq_notify", mq_notify(mqdes, NULL), OK, get_errno(), goto cleanup); mq_close(mqdes); + mq_unlink("noti_queue"); TC_SUCCESS_RESULT(); + return; cleanup: mq_close(mqdes); mq_unlink("noti_queue"); @@ -729,6 +731,7 @@ static void tc_mque...
PACSign: update version to 1.0.5 (openssl 1.1.1l)
-# Copyright(c) 2019, Intel Corporation +# Copyright(c) 2019-2021, Intel Corporation # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: @@ -27,7 +27,7 @@ from setuptools import setup, find_packages setup( name="pacsign", -...
UserNotes: Add default priority values
@@ -462,6 +462,10 @@ BOOLEAN FindIfeoObject( { *CpuPriorityClass = value; } + else + { + *CpuPriorityClass = ULONG_MAX; + } } if (IoPriorityClass) @@ -470,6 +474,10 @@ BOOLEAN FindIfeoObject( { *IoPriorityClass = value; } + else + { + *IoPriorityClass = ULONG_MAX; + } } if (PagePriorityClass) @@ -478,6 +486,10 @@ BOOLE...
[Cita][#1193]update demo file
@@ -44,7 +44,7 @@ const BCHAR *native_demoKey = "0xf1395a1fc3f74f0c867b61292e28e0f6cc98a095535fd6b /** * test node url */ -const BCHAR * demoUrl = "http://127.0.0.1:7545"; +const BCHAR * demoUrl = "http://127.0.0.1:1337"; /** @@ -195,6 +195,12 @@ BOAT_RESULT cita_call_ReadStore(BoatCitaWallet *wallet_ptr) result = Boat...
Change image names
@@ -13,10 +13,10 @@ build-windows: stage: build tags: - windows - image: marcvs/windows_builder-msys2-x86_64:1 + image: marcvs/build_oidc-agent_win-msys2:1 script: - none artifacts: paths: - "bin/*installer.exe" - name: "oidc-agent-$CI_JOB_NAME-$CI_COMMIT_REF_NAME" + name: "oidc-agent-$CI_COMMIT_REF_NAME"
in_tail: add Path_Key feature for multiline mode
@@ -251,7 +251,7 @@ int flb_tail_mult_process_content(time_t now, size_t out_size = 0; struct mk_list *head; struct flb_tail_mult *mult_parser = NULL; - struct flb_time out_time = {}; + struct flb_time out_time = {0}; msgpack_object map; msgpack_unpacked result; @@ -325,6 +325,7 @@ int flb_tail_mult_flush(msgpack_sbuff...
added warning to NULL quality alignments in count_coverage
+ # cython: embedsignature=True # cython: profile=True ######################################################## @@ -1508,7 +1509,6 @@ cdef class AlignmentFile(HTSFile): """ - cdef uint32_t contig_length = self.get_reference_length(contig) cdef int _start = start if start is not None else 0 cdef int _stop = stop if stop...
Remove cleanup function Now we remove all temporaries before running the benchmark.
@@ -56,25 +56,10 @@ local function compile(ext, file_name) end end --- TODO: In the current state, this is just a `rm -rf ./*.so`, for all cases. --- Check if we can simplify to just that or if the luajut stuff will behave --- differently when we implement it. -local cleanup = { - ["lua"] = - function() end, - - ["tita...
Fixes c99 compatibility
@@ -39,9 +39,9 @@ project(ccl VERSION 0.2.1) # Compilation flags if ("${CMAKE_C_COMPILER_ID}" MATCHES "^(Apple)?Clang$") # using Clang, disabling OpenMP support - set(CMAKE_C_FLAGS "-O3 -fomit-frame-pointer -fno-common -std=c99 -fPIC -D__CCL_DATA_DIR__=${CMAKE_INSTALL_PREFIX}/share/ccl") + set(CMAKE_C_FLAGS "-O3 -fomit...
README.md: Use version 2.05.07
@@ -28,11 +28,11 @@ Raspbian Wheezy and Qt4 is no longer maintained. ### Install deCONZ 1. Download deCONZ package - wget http://www.dresden-elektronik.de/rpi/deconz/beta/deconz-2.05.05-qt5.deb + wget http://www.dresden-elektronik.de/rpi/deconz/beta/deconz-2.05.07-qt5.deb 2. Install deCONZ package - sudo dpkg -i deconz...
Add get_dsts function
@@ -97,6 +97,9 @@ declare_type("Value", { Function = {"id"}, }) +-- [IMPORTANT!] After any changes to this data type, update the get_srcs and +-- get_dsts functions accordingly +-- declare_type("Cmd", { -- Variables Move = {"loc", "dst", "src"}, @@ -142,9 +145,7 @@ declare_type("Cmd", { Loop = {"body"}, For = {"loop_va...
Update readme moving away the overview image.
- <div align="center"> <a href="https://metacall.io" target="_blank"><img src="https://raw.githubusercontent.com/metacall/core/master/deploy/images/logo.png" alt="M E T A C A L L" style="max-width:100%;" width="64" height="64"> <p><b>M E T A C A L L</b></p></a> <p>A library for providing inter-language foreign function...
Add AgentMiragePrismPrismBox
@@ -116,6 +116,11 @@ public unsafe partial struct AgentModule { return (AgentDeepDungeonMap*)GetAgentByInternalId(AgentId.DeepDungeonMap); } + + public AgentMiragePrismPrismBox* GetAgentMiragePrismPrismBox() + { + return (AgentMiragePrismPrismBox*)GetAgentByInternalId(AgentId.MiragePrismPrismBox); + } } public enum Age...
tracegen: execute to axe script with python2
@@ -13,7 +13,7 @@ AXE_SHRINK=${AXE_DIR}/src/axe-shrink.py PATH=$PATH:${AXE_DIR}/src grep '.*:.*#.*@' $1 > /tmp/clean-trace.txt -"$TO_AXE" /tmp/clean-trace.txt > /tmp/trace.axe +python2 "$TO_AXE" /tmp/clean-trace.txt > /tmp/trace.axe result=$("$AXE" check wmo /tmp/trace.axe) if [ "$result" != OK ]; then
Nina: Fix bind() socket state check for UDP sockets.
@@ -687,7 +687,9 @@ int nina_socket_bind(int fd, uint8_t *ip, uint16_t port, int type) return -1; } - if (nina_server_socket_status(fd) != SOCKET_STATE_LISTEN) { + // Only TCP sockets' states should be checked. + if (type == NINA_SOCKET_TYPE_TCP && + nina_server_socket_status(fd) != SOCKET_STATE_LISTEN) { return -1; } ...
Make Threads1xxx return 1 if failed
@@ -4,13 +4,13 @@ int thdLim =1024; //__attribute__((amdgpu_flat_work_group_size(1024, 1024))) int main() { + int numTeams=64; int N = 12; int NN = 1024; - int lims[N] , threads[N], Res[N*NN]; + int lims[N] , threads[N], Res[numTeams*NN]; int i; for (i=0; i <N; i++) lims[i] = threads[i] = -1; for (i=0; i <N*NN; i++) Re...
metadata-pull-hook: watch contacts for new preview Fetch metadata previews when we learn of a group via a contact's pinned groups.
:: :: allow syncing group data from foreign paths to local paths :: -/- *group, invite-store, metadata=metadata-store +/- *group, invite-store, metadata=metadata-store, contact=contact-store /+ default-agent, verb, dbug, store=group-store, grpl=group, pull-hook /+ resource, mdl=metadata ~% %group-hook-top ..part ~ =* s...
kinox: LED_PWR_L change to open drain According to the LED_PWR_L GPIO change to OD from push-pull. So modify the setting. BRANCH=none TEST=The LED can light up at S0, breath at suspend, off at shutdown.
const struct pwm_t pwm_channels[] = { [PWM_CH_LED_GREEN] = { .channel = 0, - .flags = PWM_CONFIG_ACTIVE_LOW | PWM_CONFIG_DSLEEP, + .flags = PWM_CONFIG_ACTIVE_LOW | PWM_CONFIG_DSLEEP | + PWM_CONFIG_OPEN_DRAIN, .freq = 2000 }, [PWM_CH_FAN] = {
host/mesh: Fix fix mod_sub_get_vnd pass cid instead of CID_NVAL in parameters of mod_member_list_get This is port of
@@ -1808,7 +1808,7 @@ int bt_mesh_cfg_mod_sub_get_vnd(uint16_t net_idx, uint16_t addr, uint16_t elem_a } return mod_member_list_get(OP_MOD_SUB_GET_VND, OP_MOD_SUB_LIST_VND, - net_idx, addr, elem_addr, mod_id, CID_NVAL, + net_idx, addr, elem_addr, mod_id, cid, status, subs, sub_cnt); }
sim: Add dependency output Output the names of source files used to build the C library so that Cargo knows to rerun the compilation if these have changed.
extern crate gcc; +use std::fs; +use std::io; +use std::path::Path; + fn main() { let mut conf = gcc::Config::new(); @@ -12,4 +16,26 @@ fn main() { conf.include("../zephyr/include"); conf.debug(true); conf.compile("libbootutil.a"); + walk_dir("../boot").unwrap(); + walk_dir("csupport").unwrap(); + walk_dir("../zephyr")...
Update README.md Document CMake Usage and Project Example
@@ -148,6 +148,29 @@ The types used are actually unions that allow access to the same data multiple w ## Build +### CMake (All platforms) +```bash +$ mkdir build +$ cd build +$ cmake .. # [Optional] -DCGLM_SHARED=ON +$ make +$ sudo make install # [Optional] +``` + +#### Use with your CMake project +* Example: +```cmake...