message
stringlengths
6
474
diff
stringlengths
8
5.22k
input: fix config reader for FLB_INPUT_NET plugins (in_forward)
@@ -208,8 +208,7 @@ int flb_input_set_property(struct flb_input_instance *in, char *k, char *v) in->mp_buf_limit = flb_utils_size_to_bytes(tmp); flb_free(tmp); } - else if (in->p->flags & FLB_INPUT_NET) { - if (prop_key_check("listen", k, len) == 0) { + else if (prop_key_check("listen", k, len) == 0) { in->host.listen ...
VERSION bump to version 0.12.27
@@ -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 26) +set(LIBNETCONF2_MICRO_VERSION 27) set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION}.${LIBNETCONF2_MICRO_VERSION}) set(L...
feat(discord): add banner field to 'struct discord_user'
{ "name": "verified", "type":{ "base":"bool" }}, { "name": "email", "type":{ "base":"char", "dec":"[ORCA_LIMITS_EMAIL]" }}, { "name": "flags", "type":{ "base":"int", "int_alias": "enum discord_user_flags" }}, + { "name": "banner", "type":{ "base":"char", "dec":"[ORCA_LIMITS_SHA256]" }}, { "name": "premium_type", "type"...
windows/Makefile: Support freezing modules. Alter the build flags as needed to support freezing modules with a manifest. This makes freezing works just like it does for e.g. the unix port.
@@ -59,4 +59,9 @@ SRC_QSTR += $(SRC_C) # SRC_QSTR SRC_QSTR_AUTO_DEPS += +ifneq ($(FROZEN_MANIFEST),) +CFLAGS += -DMICROPY_QSTR_EXTRA_POOL=mp_qstr_frozen_const_pool -DMICROPY_MODULE_FROZEN_MPY=1 -DMPZ_DIG_SIZE=16 +MPY_CROSS_FLAGS += -mcache-lookup-bc +endif + include $(TOP)/py/mkrules.mk
fix segment map for 32-bit systems (including wasm)
@@ -225,13 +225,13 @@ mi_decl_noinline bool _mi_segment_cache_push(void* start, size_t size, size_t me #define MI_SEGMENT_MAP_SIZE (MI_SEGMENT_MAP_BITS / 8) #define MI_SEGMENT_MAP_WSIZE (MI_SEGMENT_MAP_SIZE / MI_INTPTR_SIZE) -static _Atomic(uintptr_t)mi_segment_map[MI_SEGMENT_MAP_WSIZE]; // 2KiB per TB with 64MiB segme...
filter_parser: initialize variable
@@ -210,7 +210,7 @@ static int cb_parser_filter(const void *data, size_t bytes, msgpack_packer tmp_pck; msgpack_object_kv **append_arr = NULL; - size_t append_arr_len; + size_t append_arr_len = 0; int append_arr_i; struct mk_list *head; struct filter_parser *fp;
Fix UVC probe and commit on MacOS
@@ -917,7 +917,7 @@ static int handle_video_stm_cs_req(uint8_t rhport, uint8_t stage, switch (request->bRequest) { case VIDEO_REQUEST_SET_CUR: if (stage == CONTROL_STAGE_SETUP) { - TU_VERIFY(sizeof(video_probe_and_commit_control_t) == request->wLength, VIDEO_ERROR_UNKNOWN); + TU_VERIFY(sizeof(video_probe_and_commit_con...
Guarantee that alink active logic in the same context as alink
@@ -389,7 +389,7 @@ static struct cli_command resetcmd = { static void handle_active_cmd(char *pwbuf, int blen, int argc, char **argv) { - alink_activate(NULL); + aos_schedule_call(alink_activate, NULL); } static struct cli_command ncmd = {
out_influxdb: dont add quote to the tag values
@@ -231,7 +231,7 @@ static char *influxdb_format(char *tag, int tag_len, ret = influxdb_bulk_append_kv(bulk_head, key, key_len, val, val_len, - quote); + false); } else { /* Append key/value data into the bulk_body */
misc: Now that VOM is deprecated remove the build dependency on boost Type: make
@@ -67,7 +67,7 @@ DEB_DEPENDS += debhelper dkms git libtool libapr1-dev dh-systemd dh-python DEB_DEPENDS += libconfuse-dev git-review exuberant-ctags cscope pkg-config DEB_DEPENDS += lcov chrpath autoconf libnuma-dev DEB_DEPENDS += python3-all python3-setuptools check -DEB_DEPENDS += libboost-all-dev libffi-dev python3...
Fix OP_STRING16, use FETCH_BS
@@ -2243,7 +2243,7 @@ static inline int op_string( mrbc_vm *vm, mrbc_value *regs ) */ static inline int op_string16( mrbc_vm *vm, mrbc_value *regs ) { - FETCH_BB(); + FETCH_BS(); #if MRBC_USE_STRING mrbc_object *pool_obj = vm->pc_irep->pools[b];
apps/examples/tc_umm_heap.c : Add get free/largest size TC Covered APIs : umm_get_heap_free_size(), umm_get_largest_freenode_size() Scenarios : Compare to return of each APIs and return of mallinfo Test Result : [umm_get_heap_free_size] PASS [umm_get_largest_freenode_size] PASS
@@ -471,6 +471,36 @@ static void tc_umm_heap_zalloc(void) } TC_SUCCESS_RESULT(); } +#ifdef CONFIG_DEBUG_MM_HEAPINFO +static void tc_umm_heap_get_heap_free_size(void) +{ + size_t free_size = umm_get_heap_free_size(); + struct mallinfo info; + +#ifdef CONFIG_CAN_PASS_STRUCTS + info = mallinfo(); +#else + (void)mallinfo(&...
sem_holder : Modify the incorrect description Return values are NULL, however it's mentioned as OK and ERROR, Correct the same
@@ -807,7 +807,7 @@ void sem_destroyholder(FAR sem_t *sem) * sem - A reference to the incremented semaphore * * Return Value: - * 0 (OK) or -1 (ERROR) if unsuccessful + * None * * Assumptions: * Interrupts are disabled. @@ -842,13 +842,14 @@ void sem_addholder_tcb(FAR struct tcb_s *htcb, FAR sem_t *sem) * Name: sem_add...
dm: virtio-console: remove unused virtio_console_cfgwrite Virtio-console device specific configuration is readonly, callback for the cfgwrite is not required. This patch removed the unused virtio_console_cfgwrite. Acked-by: Yu Wang
@@ -148,7 +148,6 @@ static void virtio_console_reset(void *); static void virtio_console_notify_rx(void *, struct virtio_vq_info *); static void virtio_console_notify_tx(void *, struct virtio_vq_info *); static int virtio_console_cfgread(void *, int, int, uint32_t *); -static int virtio_console_cfgwrite(void *, int, in...
perfmon: sort 'show perfmon bundle' output This patch sorts 'show perfmon bundle' output in alphabetical order. Type: improvement
@@ -91,6 +91,15 @@ format_perfmon_bundle (u8 *s, va_list *args) return s; } +static int +bundle_name_sort_cmp (void *a1, void *a2) +{ + perfmon_bundle_t **n1 = a1; + perfmon_bundle_t **n2 = a2; + + return clib_strcmp ((char *) (*n1)->name, (char *) (*n2)->name); +} + static clib_error_t * show_perfmon_bundle_command_fn...
CMake: Clean up more android files;
@@ -672,7 +672,8 @@ elseif(ANDROID) --ks-pass ${ANDROID_KEYSTORE_PASS} --in lovr.unsigned.apk --out lovr.apk - COMMAND ${CMAKE_COMMAND} -E remove lovr.unaligned.apk lovr.unsigned.apk + COMMAND ${CMAKE_COMMAND} -E remove lovr.unaligned.apk lovr.unsigned.apk Activity.java classes.dex + COMMAND ${CMAKE_COMMAND} -E remove_...
kernel: capabilities: wrap check_caps_create_arguments() in #ifndef NDEBUG because it is only called from assert()
@@ -1296,6 +1296,7 @@ errval_t caps_create_from_existing(struct capability *root, capaddr_t cnode_cptr /// check arguments, return true iff ok STATIC_ASSERT(48 == ObjType_Num, "Knowledge of all cap types"); +#ifndef NDEBUG static bool check_caps_create_arguments(enum objtype type, size_t bytes, size_t objsize, bool exa...
improved code for default keyboard
@@ -864,7 +864,9 @@ void control_update(s_playercontrols ** playercontrols, int numplayers) } //White Dragon: Set input from default keys overriding previous keys - if (player <= 0) { + //Default keys are available just if no configured keys are pressed! + if (player <= 0 && !k) + { for(i = 0; i < JOY_MAX_INPUTS; i++) ...
asan: no need to cover linux clone()
@@ -122,6 +122,7 @@ static uint8_t arch_clone_stack[PTHREAD_STACK_MIN * 2]; static __thread jmp_buf env; #if defined(__clang__) +__attribute__ ((no_sanitize("address"))) __attribute__ ((no_sanitize("memory"))) #endif /* defined(__clang__) */ static int arch_cloneFunc(void *arg UNUSED)
Fix audio-wave example sample rate * Fix audio-wave example: Sample was 22050, not 11025. Sustain not required - already defaults to this value.
This example, a runthrough: Audio data: - The audio file has been converted to 11025Hz sample rate, then exported as 16bit PCM, but without its header. + The audio file has been converted to 22050Hz sample rate, then exported without its header. (If a headered file is used, just read past that first. Try skipping the f...
install.sh no longer needs /home suffix in pier dir
@@ -20,12 +20,12 @@ done if [ -z "$WATCH_MODE" ]; then echo "Installed btc-agents" - rsync -r --exclude-from=$EXCLUDE_FILE * $PIER/ + rsync -r --exclude-from=$EXCLUDE_FILE * $PIER/home/ else echo "Watching for changes to copy to ${PIER}..." while [ 0 ] do sleep 0.8 - rsync -r --exclude-from=$EXCLUDE_FILE * $PIER/ + rsy...
Manually destroy a protocol entry in ctltest:ctlAddProtocol() and ctltest:ctlDelProtocol() in order to make valgrind look nice.
#include <unistd.h> #include "ctl.h" #include "dbg.h" - +#include "cfgutils.h" #include "test.h" static void @@ -664,6 +664,7 @@ ctlAddProtocol(void** state) assert_string_equal(req->cmd_str, "AddProto"); assert_string_equal(req->protocol->protname, "Dummy"); + destroyProtEntry(req->protocol); destroyReq(&req); } @@ -6...
Fixed PR Region issues w/ create_framework.tcl
@@ -93,6 +93,10 @@ set_property STEPS.WRITE_BITSTREAM.TCL.POST $root_dir/setup/snap_bitstream_post. # Enable PR Flow set_property PR_FLOW 1 [current_project] +# Create PR Region for SNAP Action +create_partition_def -name snap_action -module action_wrapper +create_reconfig_module -name hdl_example -partition_def [get_p...
Do not enable vectorization for SPMD devices If they desire intra-WI vectorization, they can launch it in their target passes. This can have dramatic impact to WG IR compilation time.
@@ -302,10 +302,15 @@ kernel_compiler_passes(cl_device_id device, llvm::Module *input, Builder.SizeLevel = 0; // These need to be setup in addition to invoking the passes - // to get the vectorizers initialized properly. - if (currentWgMethod == "loopvec") { + // to get the vectorizers initialized properly. Assume SPMD...
Fix search API issues with tiles and non-closed polygons
@@ -100,6 +100,10 @@ namespace { for (std::size_t i = 0; i < rings.size(); i++) { BoostPolygonType::ring_type boostRing; std::for_each(rings[i].begin(), rings[i].end(), [&boostRing](const carto::MapPos& mapPos) { boostRing.push_back(BoostPointType(mapPos.getX(), mapPos.getY())); }); + if (!boostRing.empty()) { + BoostP...
doc: PG 13 relnotes: move docbook version change to doc sect.
@@ -2361,15 +2361,6 @@ Reformat tables containing function information for better clarity (Tom Lane) </listitem> - </itemizedlist> - - </sect3> - - <sect3> - <title>Source Code</title> - - <itemizedlist> - <listitem> <!-- Author: Peter Eisentraut <peter@eisentraut.org> @@ -2382,6 +2373,15 @@ Upgrade to use DocBook 4.5 ...
Analysis workflow, use yum install.
@@ -250,6 +250,12 @@ jobs: cd .. export prepath=`pwd` echo prepath=${prepath} + echo "yum -y install perl-CPAN" + yum -y install perl-CPAN + echo "yum -y install Pod::Usage" + yum -y install Pod::Usage + echo "cpan Pod::Usage" + cpan Pod::Usage #echo "curl cpanm" #curl -L -k -s -S -o cpanm https://cpanmin.us/ #echo "pe...
Test mixed prefixed and unprefixed attributes in a namespace
@@ -3553,6 +3553,20 @@ START_TEST(test_ns_long_element) } END_TEST +/* Test mixed population of prefixed and unprefixed attributes */ +START_TEST(test_ns_mixed_prefix_atts) +{ + const char *text = + "<e a='12' bar:b='13'\n" + " xmlns:bar='http://example.org/'>" + "</e>"; + + if (_XML_Parse_SINGLE_BYTES(parser, text, st...
Disable more new Clang 8 warnings
@@ -1174,7 +1174,12 @@ class GnuCompiler(Compiler): self.cxx_warnings.append('-Wno-return-std-move') if self.tc.version_at_least(8): - self.cxx_warnings.append('-Wno-defaulted-function-deleted') + self.cxx_warnings.extend(( + '-Wno-address-of-packed-member', + '-Wno-defaulted-function-deleted', + '-Wno-enum-compare-swi...
Print result on empty stack
@@ -437,7 +437,7 @@ _ ((M3Result)Call (i_function->compiled, stack, linearMemory, d_m3OpDefaul #if d_m3LogOutput switch (ftype->returnType) { - case c_m3Type_none: break; + case c_m3Type_none: printf("Result: <Empty Stack>\n"); break; #ifdef USE_HUMAN_FRIENDLY_ARGS case c_m3Type_i32: printf("Result: %" PRIi32 "\n", *(i...
Add ticket_aead option for ssl_server2 The ticket_aead option allows to specify the session ticket protection.
@@ -120,6 +120,7 @@ int main( void ) #define DFL_TRUNC_HMAC -1 #define DFL_TICKETS MBEDTLS_SSL_SESSION_TICKETS_ENABLED #define DFL_TICKET_TIMEOUT 86400 +#define DFL_TICKET_AEAD MBEDTLS_CIPHER_AES_256_GCM #define DFL_CACHE_MAX -1 #define DFL_CACHE_TIMEOUT -1 #define DFL_SNI NULL @@ -285,7 +286,8 @@ int main( void ) #if ...
test/smime-certs/ca.cnf: clean up comments, simplify settings using SKID and AKID defaults
@@ -32,32 +32,30 @@ commonName = $ENV::CN [ usr_cert ] -# These extensions are added when 'ca' signs a request for an end entity -# certificate +# These extensions are added when 'ca' signs a request for a normal end-entity +# certificate with key usage restrictions compatible with RSA keys -basicConstraints=critical, ...
Fixing demos
/* extern void vStartDeviceDefenderDemo( void ); */ /* extern void vStartGreenGrassDiscoveryTask( void ); */ /* extern void vStartOTAUpdateDemoTask( void ); */ -extern void vStartMQTTDemo( void ); +/*extern void vStartMQTTDemo( void );*/ /* extern void vStartMQTTEchoDemo( void ); */ /* extern void vStartShadowDemoTasks...
Update doc/puffs-the-language.md for operators.
@@ -58,7 +58,8 @@ be enclosed by curly `{}`s. There is no 'dangling else' ambiguity. - `limit` -TODO: categorize and, or, not, as, false, true, in, out, this, u8, u16, etc. +TODO: categorize and, or, not, as, ref, deref, false, true, in, out, this, u8, +u16, etc. ## Operators
fix: Add semicolons for tidbit and eek in setup script
@@ -118,8 +118,8 @@ select opt in "${options[@]}" "Quit"; do 15 ) shield_title="Jorne" shield="jorne"; split="y"; break;; 16 ) shield_title="Jian" shield="jian"; split="y"; break;; 17 ) shield_title="CRBN" shield="crbn"; split="n"; break;; - 18 ) shield_title="Tidbit" shield="tidbit"; split="n" break;; - 19 ) shield_ti...
use p (position) instead of i
@@ -3988,7 +3988,7 @@ return true; /*===========================================================================*/ static void show_wlaninterfaces() { -static int i; +static int p; static struct ifaddrs *ifaddr = NULL; static struct ifaddrs *ifa = NULL; static uint8_t permaddr[6]; @@ -4008,9 +4008,9 @@ else if(get_perm...
readme: Mention unix makefiles for Windows users.
@@ -63,6 +63,9 @@ cmake . make ``` +Note: Windows users may need to add `-G"Unix Makefiles"` to the end of the cmake +invocation. + The above will build the `lily` executable, as well as a liblily that you can use with your program. It also builds `pre-commit-tests`.
tools: Add /*error*.o and /*error*.d to allowed build lines
@@ -23,12 +23,14 @@ WARNING_REGEX = re.compile(r'(?:error|warning)[^\w]', re.MULTILINE | re.IGNORECA IGNORE_WARNS = [ re.compile(r_str) for r_str in [ r'library/error\.o', + r'/.*error\S*\.o', r'.*error.*\.c\.obj', r'.*error.*\.cpp\.obj', r'.*error.*\.cxx\.obj', r'.*error.*\.cc\.obj', r'-Werror', r'error\.d', + r'/.*er...
[kernel] change print
@@ -486,23 +486,23 @@ void TimeStepping::displayNewtonConvergenceInTheLoop() { if (_displayNewtonConvergence) { - std::cout << "TimeStepping::newtonSolve -- _newtonNbIterations =" << _newtonNbIterations << std::endl; - std::cout << "TimeStepping::newtonSolve -- _newtonResiduDSMax =" << _newtonResiduDSMax << std::endl; ...
net_lwip_webserver: utilize pbuf_copy_partial()
@@ -178,21 +178,12 @@ bool tud_network_recv_cb(const uint8_t *src, uint16_t size) uint16_t tud_network_xmit_cb(uint8_t *dst, void *ref, uint16_t arg) { struct pbuf *p = (struct pbuf *)ref; - struct pbuf *q; - uint16_t len = 0; (void)arg; /* unused for this example */ - /* traverse the "pbuf chain"; see ./lwip/src/core/...
pbio/motors/settings: Reduce small motor rated speed. This is a better match with what this motor can do. At a lower speed, it has a bit more torque left to keep its speed constant with a bit of load.
@@ -87,7 +87,7 @@ static const pbio_observer_settings_t settings_observer_technic_s_angular = { }; static const pbio_control_settings_t settings_servo_technic_s_angular = { - .max_rate = 750, + .max_rate = 620, .abs_acceleration = 2000, .rate_tolerance = 50, .count_tolerance = 10,
harness: changing the directory
@@ -12,7 +12,7 @@ import debug from machines import ARMSimulatorBase, MachineFactory, ARMSimulatorOperations import efiimage -FVP_PATH = '/home/netos/tools/DS-5_v5.26.0/bin' +FVP_PATH = '/home/netos/tools/DS-5/bin' # Get the prebuilt binary snapshots (fvp-uefi.zip) from: # https://community.arm.com/docs/DOC-10952
Fix handle object address search
@@ -305,12 +305,6 @@ BOOLEAN PhpHandleTreeFilterCallback( return TRUE; } - if (handleItem->ObjectString[0]) - { - if (PhpWordMatchHandleStringZ(handlesContext->SearchboxText, handleItem->ObjectString)) - return TRUE; - } - if (handleItem->GrantedAccessString[0]) { if (PhpWordMatchHandleStringZ(handlesContext->Searchbox...
ble_mesh: stack: Fix compile error when only proxy enabled Also remove some redundant CONFIG_BLE_MESH_PROXY checks, because when the following options are satisfied, the CONFIG_BLE_MESH_PROXY option will be selected mandatorily.
@@ -336,18 +336,17 @@ int bt_mesh_init(const struct bt_mesh_prov *prov, bt_mesh_gatt_init(); } - if (IS_ENABLED(CONFIG_BLE_MESH_PROXY)) { if ((IS_ENABLED(CONFIG_BLE_MESH_NODE) && IS_ENABLED(CONFIG_BLE_MESH_PB_GATT)) || IS_ENABLED(CONFIG_BLE_MESH_GATT_PROXY_SERVER)) { bt_mesh_proxy_init(); } + if ((IS_ENABLED(CONFIG_BLE...
docs/reference/index: Remove conditional for inline asm docs. The heading of this section makes it clear it is for architectures only.
@@ -25,10 +25,4 @@ implementation and the best practices to use them. speed_python.rst constrained.rst packages.rst - -.. only:: port_pyboard - - .. toctree:: - :maxdepth: 1 - asm_thumb2_index.rst
nimble/ll: Fix phy configuration for initiator Not sure how this even works, but configuration flags for phys were never set...
@@ -2986,6 +2986,12 @@ ble_ll_scan_initiator_start(struct hci_create_conn *hcc, scanp->timing.interval = ble_ll_scan_time_hci_to_ticks(hcc->scan_itvl); scanp->timing.window = ble_ll_scan_time_hci_to_ticks(hcc->scan_window); scanp->scan_type = BLE_SCAN_TYPE_INITIATE; + scanp->configured = 1; + +#if MYNEWT_VAL(BLE_LL_CFG...
Autotools: Remove '-ansi' CFLAG.
@@ -112,7 +112,7 @@ libtcod_la_SOURCES = \ ../../src/txtfield.cpp \ ../../src/zip.cpp -libtcod_la_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -ansi +libtcod_la_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) libtcod_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(SOVERSION) libtcod_la_LIBADD = $(PTHREAD_LIBS)
Enable JIT in acadnme
@@ -31,6 +31,10 @@ class Acadnme extends Sprite implements IScriptHandler { super(); + #if cpp + enableJit(true); + #end + instance = this; var startServer = #if emscripten false #else true #end; @@ -109,6 +113,9 @@ class Acadnme extends Sprite implements IScriptHandler } + @:native("hx::EnableJit") + @:extern static f...
new BUFR key for Continuous DA
@@ -73,5 +73,6 @@ if (oldSubtype < 255 ) { alias ls.rdbType=rdbType; alias ls.rdbSubtype=rdbSubtype; -unsigned[1] spare1; +# Data assimilation loop for purpose of Continuous DA. See ECC-641 +unsigned[1] daLoop;
Fix crash in console
@@ -432,7 +432,7 @@ class EditorSplitViewController: SplitViewController { } override var prefersHomeIndicatorAutoHidden: Bool { - return editor.textView.contentTextView.isFirstResponder + return editor?.textView.contentTextView.isFirstResponder ?? false } // MARK: Symbols
HV: trusty: use copy_from_gpa() instead of gpa2hpa() Use gpa2hpa() has potential hpa contiguous issue for structure trusty_boot_param. Fix it by using copy_from_gpa() instead.
@@ -417,36 +417,41 @@ bool initialize_trusty(struct vcpu *vcpu, uint64_t param) { uint64_t trusty_entry_gpa, trusty_base_gpa, trusty_base_hpa; struct vm *vm = vcpu->vm; - struct trusty_boot_param *boot_param = - (struct trusty_boot_param *)(gpa2hpa(vm, param)); + struct trusty_boot_param boot_param; + + memset(&boot_pa...
sdl/surface: fix a typo
@@ -316,7 +316,7 @@ func (surface *Surface) HasColorKey() bool { return C.SDL_HasColorKey(surface.cptr()) == C.SDL_TRUE } -// GetColorKey retruns the color key (transparent pixel) for the surface. +// GetColorKey returns the color key (transparent pixel) for the surface. // (https://wiki.libsdl.org/SDL_GetColorKey) fun...
Fix user initiated compaction timeout Change the completion criteria from "no compaction jobs running" to "(no compaction jobs running) or (current space amp < low water mark)"
@@ -947,7 +947,7 @@ sp3_ucomp_check(struct sp3 *sp) { if (sp->ucomp_active) { - bool completed = sp->idle; + bool completed = sp->idle || sp->samp_curr < sp->samp_lwm; u64 now = get_time_ns(); bool report = now > sp->ucomp_prev_report_ns + 5 * NSEC_PER_SEC;
Further update to net.tx, net.rx so these metrics don't only increase.
@@ -514,6 +514,7 @@ doNetMetric(enum metric_t type, int fd, enum control_type_t source) if (outSendEvent(g_out, &e)) { scopeLog("ERROR: doNetMetric:NETRX_PROC:outSendEvent\n", -1, CFG_LOG_ERROR); } + atomicSet(&g_netrx, 0); break; } @@ -530,6 +531,7 @@ doNetMetric(enum metric_t type, int fd, enum control_type_t source)...
Terminate produce thread if processing fails
@@ -116,6 +116,7 @@ esp_init(esp_evt_fn evt_func, const uint32_t blocking) { if (!esp_sys_thread_create(&esp.thread_process, "esp_process", esp_thread_process, &esp.sem_sync, ESP_SYS_THREAD_SS, ESP_SYS_THREAD_PRIO)) { ESP_DEBUGF(ESP_CFG_DBG_INIT | ESP_DBG_LVL_SEVERE | ESP_DBG_TYPE_TRACE, "[CORE] Cannot allocate process...
load_pkey_pem: Check for spurious errors when loading
@@ -73,9 +73,17 @@ EVP_PKEY *load_pkey_pem(const char *file, OSSL_LIB_CTX *libctx) if (!TEST_ptr(file) || !TEST_ptr(bio = BIO_new(BIO_s_file()))) return NULL; - if (TEST_int_gt(BIO_read_filename(bio, file), 0)) - (void)TEST_ptr(key = PEM_read_bio_PrivateKey_ex(bio, NULL, NULL, NULL, - libctx, NULL)); + if (TEST_int_gt(...
virtio: add definition of packed ring feature
#define VIRTIO_F_IOMMU_PLATFORM 33 +/* This feature indicates support for the packed virtqueue layout. */ +#define VIRTIO_F_RING_PACKED 34 + // if this number is not equal to desc size, queue creation fails #define SIZE_OF_SINGLE_INDIRECT_DESC 16
stream reuse, fix decommission to first remove from tree and then do the callbacks and then delete the element.
@@ -825,6 +825,23 @@ static void reuse_cb_readwait_for_failure(struct pending_tcp* pend, int err) } } +/** perform callbacks for failure and also decommission pending tcp. + * the callbacks remove references in sq->pending to the waiting_tcp + * members of the tree_by_id in the pending tcp. */ +static void reuse_cb_and...
Fixed a bug that makes 15bpp dither no effect.
@@ -1282,12 +1282,12 @@ next: if (*mptr) { *dst = 255; } else { - pix = ((pixels[0] & 0xf8) << 7) | - ((pixels[1] & 0xf8) << 2) | - ((pixels[2] >> 3) & 0x1f); sixel_apply_15bpp_dither(pixels, x, y, width, height, dither->method_for_diffuse); + pix = ((pixels[0] & 0xf8) << 7) | + ((pixels[1] & 0xf8) << 2) | + ((pixels[2...
toml: Fixed incorrect example
@@ -175,11 +175,6 @@ kdb set 'user/tests/storage/common/b' '1' kdb set 'user/tests/storage/common/a' '2' kdb set 'user/tests/storage/d' '3' -# Create a table array containing two entries, each with a key 'a' and 'b' -kdb meta-set 'user/tests/storage/inlinetable' 'tomltype' 'inlinetable' -kdb set 'user/tests/storage/inl...
luci-app-iptvhelper: code alignment
-- Copyright 2019 Shun Li <riverscn@gmail.com> -- Licensed to the public under the GNU General Public License v3. -local sys = require "luci.sys" - -m = Map("iptvhelper", translate("IPTV Helper"), translate("Help you configure IPTV easily. <a href=\"https://github.com/riverscn/openwrt-iptvhelper\">Github</a>")) +m = Ma...
noop on %born
=^ moves ames-state =< abet ?- -.task - %born !! + %born on-born:event-core %crud !! %hear (on-hear:event-core [lane blob]:task) %hole !! peers-alien+&+alien dot+&+ames-state == + :: +on-born: handle unix process restart + :: + ++ on-born event-core :: +on-vega: handle kernel reload :: ++ on-vega event-core
Fix evp_extra_test with no-dh The new DH test in evp_extra_test.c broke the no-dh build so we add some guards to fix it.
@@ -1413,6 +1413,7 @@ static int test_decrypt_null_chunks(void) } #endif /* !defined(OPENSSL_NO_CHACHA) && !defined(OPENSSL_NO_POLY1305) */ +#ifndef OPENSSL_NO_DH static int test_EVP_PKEY_set1_DH(void) { DH *x942dh, *pkcs3dh; @@ -1447,6 +1448,7 @@ static int test_EVP_PKEY_set1_DH(void) return ret; } +#endif int setup_t...
include: ENAMETOOLONG errno
#define ERANGE 34 /* Math result not representable */ #define ENOSYS 35 /* Function not supported */ +#define ENAMETOOLONG 36 /* Name too long */ #define ETIME 37 #define EWOULDBLOCK EAGAIN /* Operation would block */
eyre: prevent binding in reserved namespaces Disallows registering bindings (through %connect and %serve) that would capture traffic on paths starting with /~ (Eyre's) or /~_~ (runtime's, as of cc389c5). Note that we don't touch +insert-binding, which is used by Eyre internally to set up bindings in its own namespace.
|= [=binding =action] ^- [(list move) server-state] =^ success bindings.state + :: prevent binding in reserved namespaces + :: + ?: ?| ?=([%'~' *] path.binding) :: eyre + ?=([%'~_~' *] path.binding) :: runtime + == + [| bindings.state] (insert-binding [binding duct action] bindings.state) :_ state [duct %give %bound su...
Remove debug controls from TopDown
@@ -111,23 +111,5 @@ void Update_TopDown() { ScriptStart(&actors[hit_actor].events_ptr); } } - - if (INPUT_B_PRESSED) { - // Find actor in front of player - hit_actor = ActorInFrontOfPlayer(); - - if (hit_actor != NO_ACTOR_COLLISON) { - // Turn actor to face player - actors[hit_actor].dir.x = -player.dir.x; - actors[hi...
crypto: fix type inconsistency in crypto_openssl Mixing size_t and kdb_unsigned_long_t resulted in corrupted header interpretations between encryption and decryption when using crypto_openssl. Fixes
@@ -284,7 +284,7 @@ int elektraCryptoOpenSSLEncrypt (elektraCryptoHandle * handle, Key * k, Key * er // prepare the crypto header data kdb_octet_t flags; - const size_t contentLen = keyGetValueSize (k); + const kdb_unsigned_long_t contentLen = keyGetValueSize (k); const size_t headerLen = sizeof (flags) + sizeof (conte...
workflows: add tag right after image publish prevent adding commit tag before running integration tests.
@@ -42,6 +42,13 @@ jobs: arch: x86_64 dockerhub_organization: fluentbitdev + - run: | + ./scripts/grafana-add-tag.sh + env: + GRAFANA_CLOUD_TOKEN: ${{ secrets.GRAFANA_CLOUD_TOKEN }} + COMMIT_ID: ${{ github.event.workflow_run.head_sha }} + working-directory: ci/ + run-integration-gcp: name: run-integration on GCP - k8s ...
do not count double hashes
@@ -616,16 +616,6 @@ hcxrecord.message_pair = message_pair; hcxrecord.essid_len = essid_len; memcpy(hcxrecord.essid, essid, essid_len); hcxrecord.keyver = ((((eap1->keyinfo & 0xff) << 8) | (eap1->keyinfo >> 8)) & WPA_KEY_INFO_TYPE_MASK); -if(hcxrecord.keyver == 1) - wpakv1c++; -if(hcxrecord.keyver == 2) - wpakv2c++; -i...
lv_img bugfix: image not refreshed when upscale set
@@ -252,6 +252,9 @@ void lv_img_set_upscale(lv_obj_t * img, bool en) lv_img_ext_t * ext = lv_obj_get_ext(img); ext->upscale = (en == false ? 0 : 1); + + /*Refresh the image with the new size*/ + lv_img_set_file(img, ext->fn); } /*=====================
fix typo in vpp-ext-deps rpm packaging
@@ -110,7 +110,7 @@ $(DEV_RPM): Makefile rpm/vpp-ext-deps.spec build-rpm: $(DEV_RPM) install-rpm: -ifneq ($(INSTALLED_RPM_VER),$(PRM_VER)-$(PKG_SUFFIX)) +ifneq ($(INSTALLED_RPM_VER),$(RPM_VER)-$(PKG_SUFFIX)) @$(MAKE) $(DEV_RPM) sudo rpm -Uih $(DEV_RPM) else
docs: Modified a description Fix issue
@@ -50,7 +50,7 @@ If the device can only connect to the IoT platform of a specific operator or ser 7. Supports commonly used standard C library functions such as memcpy (), strcpy (), snprintf () (optional for I/O-related functions such as printf()). -8. If the cellular IoT Module utilizes a Linux operating system, dur...
Fix compiler error when using config option 'enable-acvp-tests'
@@ -450,7 +450,7 @@ static int dsa_create_pkey(EVP_PKEY **pkey, const unsigned char *g, size_t g_len, const unsigned char *seed, size_t seed_len, int counter, - const char *validate_type, + int validate_pq, int validate_g, const unsigned char *pub, size_t pub_len, BN_CTX *bn_ctx) { @@ -463,9 +463,12 @@ static int dsa_c...
Including port message header into message size limit. Before this fix, large plain message (i.e. configuration) send may fail with the 'Message too big' error, because internal fragmentation implementation does not account for 16 byte message header. This closes issue on GitHub.
@@ -349,6 +349,8 @@ nxt_port_write_handler(nxt_task_t *task, void *obj, void *data) iov[0].iov_len += sizeof(msg->tracking_msg); } + sb.limit -= iov[0].iov_len; + nxt_sendbuf_mem_coalesce(task, &sb); plain_size = sb.size;
fix switch/separator in rules_xml
function m.boolProperty(def) p.push('<BoolProperty') m.baseProperty(def) - p.w('Switch="%s" />', def.switch or "[value]") + if def.switch then + p.w('Switch="%s"', def.switch) + end + p.w(' />') p.pop() end p.w('Name="%d"', key) if switches[key] then p.w('DisplayName="%s"', values[key]) - p.w('Switch="%s" />', switches...
Convert some TODO(3.0) comments in init.c to normal comments There is no need to make the suggested changes in the 3.0 timescale. These are just suggested improvements for the future. Fixes
@@ -347,8 +347,8 @@ void OPENSSL_cleanup(void) OPENSSL_INIT_STOP *currhandler, *lasthandler; /* - * TODO(3.0): This function needs looking at with a view to moving most/all - * of this into onfree handlers in OSSL_LIB_CTX. + * At some point we should consider looking at this function with a view to + * moving most/all ...
ci: fix build script for travis ci
@@ -40,7 +40,6 @@ before_install: - pip install --user cpp-coveralls script: - - sh ./build-deps.sh - sh ./autogen.sh - if [[ "$CC" == "gcc" && "$CODE_COVERAGE" == "ON" ]]; then ./configure CFLAGS="-ftest-coverage -fprofile-arcs";
apply chroot to auth-zone zonefile in unbound-checkconf
@@ -433,6 +433,7 @@ check_modules_exist(const char* module_conf) static void morechecks(struct config_file* cfg) { + struct config_auth* auth; warn_hosts("stub-host", cfg->stubs); warn_hosts("forward-host", cfg->forwards); interfacechecks(cfg); @@ -498,6 +499,12 @@ morechecks(struct config_file* cfg) cfg->trusted_keys_...
Add header files to cpp test.
#include "picosocks.h" #include "picoquictest.h" #include "picoquictest_internal.h" +#include "picoquic_logger.h" +#include "autoqlog.h" +#include "picoquic_binlog.h" +#include "picoquic_config.h" +#include "tls_api.h" extern "C" { int cplusplustest() {
[CLI] Minor, fix output format to json when deploy smart contract
@@ -171,10 +171,7 @@ func runDeployCmd(cmd *cobra.Command, args []string) { if err != nil { log.Fatal(err) } - - for i, r := range commit.Results { - cmd.Println(i+1, ":", base58.Encode(r.Hash), r.Error) - } + cmd.Println(util.JSON(commit)) } func runCallCmd(cmd *cobra.Command, args []string) {
chip/mchp/gpspi.c: Format with clang-format BRANCH=none TEST=none
@@ -91,8 +91,8 @@ static int gpspi_tx(const int ctrl, const uint8_t *txdata, int txlen) #endif int gpspi_transaction_async(const struct spi_device_t *spi_device, - const uint8_t *txdata, int txlen, - uint8_t *rxdata, int rxlen) + const uint8_t *txdata, int txlen, uint8_t *rxdata, + int rxlen) { int hw_port, ctrl; int r...
added symlink command
-cmake_minimum_required(VERSION 3.2) +cmake_minimum_required(VERSION 3.13) project(nothing) if(WIN32) @@ -159,6 +159,9 @@ add_executable(nothing ) target_link_libraries(nothing ${SDL2_LIBRARIES} system) +ADD_CUSTOM_TARGET(link_assets ALL + COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_CURRENT_SOURCE_DIR}/assets ${...
Test that supported_groups is permitted in ServerHello Add a regression test for the functionality enabled in the previous commit. [extended tests]
@@ -29,7 +29,8 @@ plan skip_all => "$test_name needs TLS enabled" use constant { UNSOLICITED_SERVER_NAME => 0, UNSOLICITED_SERVER_NAME_TLS13 => 1, - UNSOLICITED_SCT => 2 + UNSOLICITED_SCT => 2, + NONCOMPLIANT_SUPPORTED_GROUPS => 3 }; my $testtype; @@ -44,7 +45,7 @@ my $proxy = TLSProxy::Proxy->new( # Test 1: Sending a ...
Fix Monitor UpdateConfiguration
@@ -1263,8 +1263,6 @@ bool CLR_DBG_Debugger::Monitor_UpdateConfiguration(WP_Message *message) { NATIVE_PROFILE_CLR_DEBUGGER(); - bool success = false; - // include handling of configuration block only if feature is available #if (HAS_CONFIG_BLOCK == TRUE) @@ -1287,7 +1285,6 @@ bool CLR_DBG_Debugger::Monitor_UpdateConfi...
physmem: fix alloc when dlmaloc is used
@@ -112,7 +112,11 @@ unix_physmem_alloc_aligned (vlib_main_t * vm, vlib_physmem_region_index_t idx, vec_free (to_free); } - return lo_offset != ~0 ? pr->heap + lo_offset : 0; +#if USE_DLMALLOC == 0 + return lo_offset != ~0 ? (void *) (pr->heap + lo_offset) : 0; +#else + return lo_offset != ~0 ? (void *) lo_offset : 0; ...
in_docker_events: fix leak on exception (CID 304910)
@@ -67,6 +67,8 @@ struct flb_in_de_config *de_config_init(struct flb_input_instance *ins, ctx->parser = flb_parser_get(tmp, config); if (ctx->parser == NULL) { flb_plg_error(ctx->ins, "requested parser '%s' not found", tmp); + flb_free(ctx->buf); + flb_free(ctx); return NULL; } }
crypto/bio/bss_dgram.c: annotate fallthrough (-Wimplicit-fallthrough)
@@ -1463,6 +1463,7 @@ static long dgram_sctp_ctrl(BIO *b, int cmd, long num, void *ptr) * we need to deactivate an old key */ data->ccs_sent = 1; + /* fall-through */ case BIO_CTRL_DGRAM_SCTP_AUTH_CCS_RCVD: /* Returns 0 on success, -1 otherwise. */
passed oembed as prop
@@ -130,7 +130,7 @@ function RemoteContentInner(props: RemoteContentProps) { return ( <Box mt={1} mb={2} flexShrink={0}> <AsyncFallback fallback={fallback}> - <RemoteContentOembed ref={embedRef} url={url} renderUrl={renderUrl} /> + <RemoteContentOembed ref={embedRef} url={url} renderUrl={renderUrl} oembed={oembed} /> <...
ci: temporarily disable ut for esp32s2beta
@@ -70,6 +70,21 @@ class Parser(object): :param config_output_folder: build folder of this config :param config_name: built unit test config name """ + tags = self.parse_tags(os.path.join(config_output_folder, self.SDKCONFIG_FILE)) + print("Tags of config %s: %s" % (config_name, tags)) + # Search in tags to set the tar...
Fix OTA init and check for update Only call OTA_AgentInit_internal when agent is stopped Add return value for OTA_CheckForUpdate when signal event failss
@@ -2515,17 +2515,25 @@ OTA_State_t OTA_AgentInit( void * pvConnectionContext, OTA_State_t xState; - /* - * Init default OTA pal callbacks. - */ + if( xOTA_Agent.eState == eOTA_AgentState_Stopped ) + { + /* Init default OTA pal callbacks. */ OTA_PAL_Callbacks_t xDefaultCallbacks = OTA_JOB_CALLBACK_DEFAULT_INITIALIZER; ...
fix startup segfault for low conns + idle thread < 100 connection limit plus idle_timeout feature caused a fault. Set a minimum sleep instead.
@@ -341,7 +341,11 @@ static void *conn_timeout_thread(void *arg) { char buf[TIMEOUT_MSG_SIZE]; rel_time_t oldest_last_cmd; int sleep_time; - useconds_t timeslice = 1000000 / (max_fds / CONNS_PER_SLICE); + int sleep_slice = max_fds / CONNS_PER_SLICE; + if (sleep_slice == 0) + sleep_slice = CONNS_PER_SLICE; + + useconds_...
Fix hello-wuffs-c for recent language changes
@@ -32,16 +32,16 @@ pub func parser.parse?(src: base.io_reader) { // Rebase from ASCII (0x30 ..= 0x39) to the value (0 ..= 9). c -= 0x30 - if this.val < 429496729 { + if this.val < 429_496729 { this.val = (10 * this.val) + (c as base.u32) continue - } else if (this.val > 429496729) or (c > 5) { + } else if (this.val > ...
meson: Do not install the frigg subproject
@@ -24,7 +24,8 @@ internal_conf = configuration_data() if not headers_only cxxshim_dep = subproject('cxxshim').get_variable('cxxshim_dep') - frigg_dep = subproject('frigg').get_variable('frigg_dep') + frigg_dep = subproject('frigg', + default_options: ['frigg_no_install=true']).get_variable('frigg_dep') add_languages('...
Fix logging of log file requests.
@@ -702,6 +702,8 @@ _papplSystemWebLogFile( if (httpWriteResponse(client->http, code) < 0) return; + papplLogClient(client, PAPPL_LOGLEVEL_INFO, "%s %s %d", code == HTTP_STATUS_OK ? "OK" : "Partial Content", "text/plain", (int)length); + // Read buffer and write to client while (length > 0 && (bytes = read(fd, buffer, ...
ARMv8: use of mackerel functions to get current el
@@ -213,7 +213,7 @@ void boot_app_init(lpaddr_t state) struct armv8_core_data *cd = (struct armv8_core_data *)state; - uint8_t current_el = get_current_el(); + uint8_t current_el = armv8_CurrentEL_EL_rdf(NULL); if (current_el == 2) { uint64_t zero = 0; @@ -266,11 +266,12 @@ void boot_app_init(lpaddr_t state) */ void bo...
Export all fields and functions from Haskell module
@@ -8,9 +8,30 @@ Portability : Requires GHC 8 or later. Provide a Lua module containing a selection of @'System'@ functions. -} -module Foreign.Lua.Module.System - ( pushModule +module Foreign.Lua.Module.System ( + + -- * Module + pushModule , preloadModule + + -- * Fields + , arch + , compiler_name + , compiler_versio...
ci: run ci for specific directories
@@ -4,13 +4,17 @@ on: push: branches: - "*" - paths-ignore: - - "./static/**" + paths: + - 'eBPF_Visualization/eBPF_server/**' + - 'eBPF_Supermarket/sidecar/**' + - '!./static/**' pull_request: branches: - "*" - paths-ignore: - - "./static/**" + paths: + - 'eBPF_Visualization/eBPF_server/**' + - 'eBPF_Supermarket/sidec...
Style - use consistent pattern
@@ -1149,7 +1149,6 @@ unsigned int compute_ideal_endpoint_formats( // The block contains 1 partition if (partition_count == 1) { - float error_of_best_combination; for (unsigned int i = 0; i < bsd.block_mode_count; ++i) { if (qwt_errors[i] >= ERROR_CALC_DEFAULT) @@ -1158,12 +1157,12 @@ unsigned int compute_ideal_endpoi...
Fix HDC sensor reading conversion
@@ -186,7 +186,7 @@ static void convert(float *temp, float *hum) { /* Convert temperature to degrees C */ - *temp = ((double)(int16_t)raw_temp / 65536) * 165 - 40; + *temp = ((double)raw_temp / 65536) * 165 - 40; /* Convert relative humidity to a %RH value */ *hum = ((double)raw_hum / 65536) * 100;
Lightnode emit events if ResourceItem was set from device
@@ -284,6 +284,14 @@ bool LightNode::setValue(const char *suffix, qint64 val, UpdateMode forceUpdate, didSetValue(i); return true; } + else if (source == ResourceItem::SourceDevice) + { + if (i->setValue(val, source)) + { + plugin->enqueueEvent(Event(RLights, i->descriptor().suffix, id(), i)); + } + } + return false; }...