message
stringlengths
6
474
diff
stringlengths
8
5.22k
Update: expected executions added to the example
//report comparison result <((<smaller --> [executed]> &/ <#1 --> result>) &/ <({SELF} * #1) --> ^say>) =/> G>. -the car has length 6 -the car has width 4 +the car has length 4 +the car has width 2 //does car fit into parking lot? G! :|: 5 +//expected: ^mul executed with args ({SELF} * (6 * 4)) G! :|: 5 +//expected: ^s...
Add change missing from rw_spinlock conversion
@@ -21,7 +21,7 @@ static inline void spin_unlock(spinlock l) { static inline void spin_rlock(rw_spinlock l) { while (1) { fetch_and_add(&l->readers, 1); - if (!l->w) + if (!l->l.w) return; fetch_and_add(&l->readers, -1); kern_pause();
doc: update GSG for ACRN V1.6.1.
@@ -8,9 +8,9 @@ ACRN hypervisor. Verified version **************** -* Clear Linux version: 32680 -* ACRN-hypervisor tag: v1.6 (acrn-2020w12.5-140000p) -* ACRN-kernel tag: acrn-2020w12.5-140000p +* Clear Linux version: 33050 +* ACRN-hypervisor tag: v1.6.1 (acrn-2020w18.4-140000p) +* ACRN-Kernel (Service VM kernel): 4.19...
Added header and licensing to app.js.
+/** + * ______ ___ + * / ____/___ / | _____________ __________ + * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ + * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) + * \____/\____/_/ |_\___/\___/\___/____/____/ + * + * The MIT License (MIT) + * Copyright (c) 2009-2022 Gerardo Orellana <hello @ goaccess.io> +*/ + /*jshint su...
Inline tcheckArg
@@ -321,27 +321,6 @@ func (q *checker) tcheckAssign(n *a.Assign) error { ) } -func (q *checker) tcheckArg(n *a.Arg, inField *a.Field, genericType1 *a.TypeExpr, genericType2 *a.TypeExpr, depth uint32) error { - if err := q.tcheckExpr(n.Value(), depth); err != nil { - return err - } - - if n.Name() != inField.Name() { - ...
imu: more refactor
@@ -61,30 +61,25 @@ void vectorcopy(float *vector1, float *vector2) { extern float looptime; void imu_calc(void) { - // remove bias - accel[0] = accel[0] - accelcal[0]; - accel[1] = accel[1] - accelcal[1]; - accel[2] = accel[2] - accelcal[2]; + // remove bias and reduce to accel in G + accel[0] = (accel[0] - accelcal[0...
SOVERSION bump to version 2.4.7
@@ -63,7 +63,7 @@ set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_ # set version of the library set(LIBYANG_MAJOR_SOVERSION 2) set(LIBYANG_MINOR_SOVERSION 4) -set(LIBYANG_MICRO_SOVERSION 6) +set(LIBYANG_MICRO_SOVERSION 7) set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG_MI...
hdat: Ignore broken memory reserves Ignore HDAT memory reserves > 512MB. These are considered bogus and workaround known HDAT bugs.
@@ -439,7 +439,6 @@ static void get_hb_reserved_mem(struct HDIF_common_hdr *ms_vpd) /* remove the HRMOR bypass bit */ start_addr &= ~HRMOR_BIT; end_addr &= ~HRMOR_BIT; - if (label_size > 64) label_size = 64; @@ -452,6 +451,17 @@ static void get_hb_reserved_mem(struct HDIF_common_hdr *ms_vpd) if (strlen(label) == 0) snp...
Add the following to the table of contents tree: baselibc drivers device management with newtmgr imgmgr
@@ -10,6 +10,10 @@ OS User Guide Secure Bootloader <modules/bootloader/bootloader> Split Images <modules/split/split> Porting Guide <core_os/porting/port_os> + Baselibc <modules/baselibc> + Drivers <modules/drivers/driver> + Device Management with Newt Manager <modules/devmgmt/newtmgr> + Image Manager <modules/imgmgr/i...
JANITORIAL: (streaming.c) Correct spelling mistakes in comments adress -> address
@@ -28,7 +28,7 @@ const GLubyte * bcdev[10]; int bcdev_w, bcdev_h, bcdev_n; int bcdev_fmt; unsigned long buf_paddr[10]; // physical address -char *buf_vaddr[10]; // virtual adress +char *buf_vaddr[10]; // virtual address void Streaming_Initialize() { LOAD_EGL(eglGetProcAddress);
fix memory leaks in agent-server
@@ -203,9 +203,11 @@ void handleAdd(int sock, const char* config, const char* data_dir) { secFree(file_path); secFree(password); secFree(id); + secFree(write_config); return; } agent_log(DEBUG, "Wrote encrypted config"); + secFree(write_config); secFree(file_path); secFree(password); char* info = oidc_sprintf( @@ -398,...
Just in case...
@@ -609,11 +609,11 @@ fio_json_unescape_str(void *dest, const char *source, size_t length) { /* we can't leverage unaligned memory access, so we read the buffer twice */ uint8_t *tmp = memchr(reader, '\\', (size_t)(stop - reader)); if (!tmp) { - memcpy(writer, reader, (size_t)(stop - reader)); + memmove(writer, reader,...
Minimal memory pool using 1 per CPU with negative count
@@ -158,7 +158,7 @@ typedef struct { static struct { size_t active_size; /* active array size */ fio_ls_embd_s available; /* free list for memory blocks */ - size_t count; /* free list counter */ + intptr_t count; /* free list counter */ size_t cores; /* the number of detected CPU cores*/ spn_lock_i lock; /* a global l...
Fix casting errors after merge
@@ -241,7 +241,7 @@ comp_method_zlib_decomp(LIBSSH2_SESSION * session, if(out_maxlen < 25) out_maxlen = 25; - if(out_maxlen > (int) payload_limit) + if(out_maxlen > payload_limit) out_maxlen = payload_limit; strm->next_in = (unsigned char *) src; @@ -279,7 +279,7 @@ comp_method_zlib_decomp(LIBSSH2_SESSION * session, "d...
modinfo BUGFIX fix null termination of sysrepo-monitoring
@@ -915,5 +915,6 @@ char sysrepo_monitoring_yang[] = { 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x7d, 0x0a, 0x20, 0x20, 0x20, 0x20,...
Fix treview header total text autosize
@@ -3231,6 +3231,41 @@ VOID PhTnpAutoSizeColumnHeader( ReleaseDC(Context->Handle, hdc); } } + + // Check the custom header text width. (dmex) + if (Context->HeaderCustomDraw) + { + PH_STRINGREF headerString; + WCHAR headerText[0x50]; + + if (PhTnpGetColumnHeaderText( + Context, + Column, + headerText, + sizeof(headerTe...
SOVERSION bump to version 5.4.5
@@ -45,7 +45,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_ # with backward compatible change and micro version is connected with any internal change of the library. set(SYSREPO_MAJOR_SOVERSION 5) set(SYSREPO_MINOR_SOVERSION 4) -set(SYSREPO_MICRO_SOVERSION 4) +set(SYSREPO_MICRO_SO...
drivers/display/ssd1306.py: Change to use new i2c.writevto() method. Fixes issue
@@ -96,6 +96,7 @@ class SSD1306_I2C(SSD1306): self.i2c = i2c self.addr = addr self.temp = bytearray(2) + self.write_list = [b'\x40', None] # Co=0, D/C#=1 super().__init__(width, height, external_vcc) def write_cmd(self, cmd): @@ -104,12 +105,8 @@ class SSD1306_I2C(SSD1306): self.i2c.writeto(self.addr, self.temp) def wr...
Syntax code style correction
@@ -468,8 +468,8 @@ sub_unsub(esp_mqtt_client_p client, const char* topic, esp_mqtt_qos_t qos, void* } esp_core_lock(); - if (client->conn_state == ESP_MQTT_CONNECTED && - output_check_enough_memory(client, rem_len)) { /* Check if enough memory to write packet data */ + if (client->conn_state == ESP_MQTT_CONNECTED + &&...
workflows: update README
| [pr-closed-docker](./pr-closed-docker.yaml) | Removes docker images for PR on hub.docker.io/fluentbitdev/| on pr closed| | [pr-compile-check](./pr-compile-check.yaml) | Runs some compilation sanity checks on a PR | | [pr-integration-test](./pr-integration-test.yaml) | Runs the integration testing suite on a PR branch...
Prov: add an option to force provider fetches to not be cached. If the macro OSSL_FORCE_NO_CACHE_FETCH is defined, no provider will have its fetches cached.
@@ -914,8 +914,17 @@ const OSSL_ALGORITHM *ossl_provider_query_operation(const OSSL_PROVIDER *prov, int operation_id, int *no_cache) { - return prov->query_operation == NULL - ? NULL : prov->query_operation(prov->provctx, operation_id, no_cache); + const OSSL_ALGORITHM *res; + + if (prov->query_operation == NULL) + ret...
chip/mchp/dma_chip.h: Format with clang-format BRANCH=none TEST=none
#include <stdint.h> #include <stddef.h> - #ifdef __cplusplus extern "C" { #endif /* Place any C interfaces here */ -void dma_xfr_start_rx(const struct dma_option *option, - uint32_t dma_xfr_ulen, +void dma_xfr_start_rx(const struct dma_option *option, uint32_t dma_xfr_ulen, uint32_t count, void *memory); void dma_xfr_p...
Byref should return a refiter. Oops.
@@ -38,7 +38,7 @@ pkg std = generic byzip : (a : @a[:], b : @b[:] -> zipiter(@a, @b)) generic byenum : (a : @a[:] -> enumiter(@a)) generic byreverse : (sl : @a[:] -> reverseiter(@a)) - generic byref : (sl : @a[:] -> reverseiter(@a)) + generic byref : (sl : @a[:] -> refiter(@a)) generic bychunk : (a : @a[:], chunk : siz...
hwrecords: use %d for 64-bit ints, %lu is not supported
* @brief the generic fields of a processor record */ #define HW_PROCESSOR_GENERIC_FIELDS "enabled: %d, " \ - "barrelfish_id: %" PRIuCOREID ", " \ - "hw_id: %" PRIuHWID ", " \ + "barrelfish_id: %d, " \ + "hw_id: %d, " \ "type: %d" /**
drivers/gpio: rename internal functions Internal functions in the GPIO upper-half driver, gpio_fopen/fclose() reminds me of fopen/fclose() in C runtime. To follow the convention in other upper-half drivers, remove 'f' prefix from their name.
/**************************************************************************** * Private Function Prototypes ****************************************************************************/ -static int gpio_fopen(FAR struct file *filep); -static int gpio_fclose(FAR struct file *filep); +static int gpio_open(FAR struct file...
hssi: loop when --he-loopback=on When --he-loopback=on is given, keep the process alive by entering a busy/wait loop. Break out of the loop on Ctrl+C. This is to avoid any register reset (FLR) that may occur when the process exits.
@@ -190,6 +190,16 @@ public: if (he_loopback_ != "none") { hafu->mbox_write(CSR_MAC_LOOP, (he_loopback_ == "on") ? 1 : 0); + + if (he_loopback_ != "on") // don't loop for "off" + return test_afu::success; + + std::cout << "HE loopback enabled. Use Ctrl+C to exit." << std::endl; + + while (running_) { + std::this_thread...
Add some doc for node port refactor.
#include <metacall/metacall.h> #include <cstring> +/* TODO: + This port is going to be refactored eventually, here is the first step through the next approach: + https://github.com/metacall/core/blob/cb5372609c9acdc7fc3cf6b3ebb4c8e799c57f23/source/ports/node_port/source/node_port.cpp + + Here is information about how t...
BugID:18078841:modify C lib to optimize putchar;dir kernel
#if (CLI_MINIMUM_MODE > 0) #undef CLI_INBUF_SIZE -#define CLI_INBUF_SIZE 64 +#define CLI_INBUF_SIZE 128 #undef CLI_OUTBUF_SIZE #define CLI_OUTBUF_SIZE 32 #undef CLI_MAX_COMMANDS -#define CLI_MAX_COMMANDS 10 +#define CLI_MAX_COMMANDS 64 #undef CLI_MAX_ARG_NUM #define CLI_MAX_ARG_NUM 8
Remove legacy support for generating a palette with unused colors If you need an explicit set of colors, possibly including unused ones, use `-c`. Fixes
@@ -28,31 +28,6 @@ void indexed(std::vector<Palette> &palettes, int palSize, png_color const *palRG return Rgba(c.red, c.green, c.blue, palAlpha ? palAlpha[index] : 0xFF); }; - // HACK: for compatibility with old versions, add unused colors if: - // - there is only one palette, and - // - only some of the first N color...
update dcd_esp32sx with correct include list
#if (((CFG_TUSB_MCU == OPT_MCU_ESP32S2) || (CFG_TUSB_MCU == OPT_MCU_ESP32S3)) && TUSB_OPT_DEVICE_ENABLED) // Espressif -#include "driver/periph_ctrl.h" #include "freertos/xtensa_api.h" #include "esp_intr_alloc.h" #include "esp_log.h" #include "soc/dport_reg.h" #include "soc/gpio_sig_map.h" #include "soc/usb_periph.h" +...
update windows symbols
@@ -119,3 +119,14 @@ EXPORTS acvp_cap_kts_ifc_set_scheme_parm acvp_cap_kts_ifc_set_param_string acvp_cap_kts_ifc_set_scheme_string + acvp_get_cmac_alg + acvp_get_hash_alg + acvp_get_aes_alg + acvp_get_tdes_alg + acvp_get_hmac_alg + acvp_get_ecdsa_alg + acvp_get_rsa_alg + acvp_get_dsa_alg + acvp_get_kdf_alg + acvp_get_d...
Add absolute scores to test image runner
@@ -66,14 +66,20 @@ class ResultSummary(): """ Create a new result summary. """ + # Pass fail metrics self.notruns = 0 self.passes = 0 self.warnings = 0 self.fails = 0 - self.tTimes = [] - self.cTimes = [] - self.psnrs = [] + # Relative results + self.tTimesRel = [] + self.cTimesRel = [] + self.psnrRel = [] + + # Absol...
armv8: actually use 64-bit values to store initial registers
static inline uint64_t curgotbase(void) { - uint32_t ret; + uint64_t ret; __asm ( "mov %[ret], x10" : [ret] "=r" (ret) ); @@ -31,8 +31,8 @@ curgotbase(void) static inline void registers_set_initial(arch_registers_state_t *regs, struct thread *thread, - lvaddr_t entry, lvaddr_t stack, uint32_t arg1, - uint32_t arg2, uin...
news: combined NEWS entry for deprecated low level cipher functions
o All of the low level MD2, MD4, MD5, MDC2, RIPEMD160, SHA1, SHA224, SHA256, SHA384, SHA512 and Whirlpool digest functions have been deprecated. + o All of the low level AES, Blowfish, Camellia, CAST, DES, IDEA, RC2, + RC4, RC5 and SEED cipher functions have been deprecated. Major changes between OpenSSL 1.1.1 and Open...
Add a bit of doc in failing test.
@@ -50,9 +50,14 @@ TEST_F(metacall_node_python_port_mock_test, DefaultConstructor) "import metacall\n" /* Mock */ "from asd.mock import two_doubles\n" - "def py_func(js_func):\n" - " return js_func(two_doubles)\n" + "print('........................................................')\n" + "print(two_doubles(3.0, 6.0))\n"...
Handle ESC/Cancel event in list
@@ -767,6 +767,11 @@ static lv_res_t lv_list_signal(lv_obj_t * list, lv_signal_t sign, void * param) if(btn) lv_list_focus_btn(list, btn); } } + else if(c == LV_KEY_ESC) { + lv_list_ext_t * ext = lv_obj_get_ext_attr(list); + /* Handle ESC/Cancel event */ + res = lv_event_send(ext->act_sel_btn, LV_EVENT_CANCEL, NULL); +...
startup: remove dpdk linking bonding configuration As dpdk linking bonding code has been removed by the patch corresponding configuration info should be removed.
@@ -120,16 +120,6 @@ cpu { # num-rx-queues 2 # } - ## Specify bonded interface and its slaves via PCI addresses - ## - ## Bonded interface in XOR load balance mode (mode 2) with L3 and L4 headers - # vdev eth_bond0,mode=2,slave=0000:02:00.0,slave=0000:03:00.0,xmit_policy=l34 - # vdev eth_bond1,mode=2,slave=0000:02:00.1...
Document fsp-ipl-params to sp-ipl-params Fixes:
@@ -19,7 +19,7 @@ Device Tree ----------- - ``/ibm,opal/`` compatible property now just lists ``ibm,opal-v3`` and no longer ``ibm,opal-v2`` (power9 and above only) - +- Rename ``fsp-ipl-side`` as ``sp-ipl-side`` in ``/ipl-params`` TODO ----
libcupsfilters: In filterExternalCUPS() log control messages without filter name and close logging correctly
@@ -976,10 +976,16 @@ filterExternalCUPS(int inputfd, /* I - File descriptor input stream */ log_level = FILTER_LOGLEVEL_DEBUG; msg = buf; } + if (log_level == FILTER_LOGLEVEL_CONTROL) + log(ld, log_level, msg); + else log(ld, log_level, "filterExternalCUPS (%s): %s", filter_name, msg); } - close(stderrpipe[0]); - exit...
linux-raspberrypi: Bump to 4.19 recipe to 4.19.81
-LINUX_VERSION ?= "4.19.80" +LINUX_VERSION ?= "4.19.81" LINUX_RPI_BRANCH ?= "rpi-4.19.y" -SRCREV = "3492a1b003494535eb1b17aa7f258469036b1de7" +SRCREV = "eef78b714c3fbc635642332a2ce7d66e51f514d9" require linux-raspberrypi_4.19.inc
refine test clang-262701
@@ -43,8 +43,12 @@ int main(){ correct_results[i] = actual_num_threads; int status = memcmp(correct_results, gpu_results, TEAMS * sizeof(int)); - if (status != 0 || actual_num_threads > 2) { - printf("FAIL\n"); + if (status != 0) { + printf("FAIL status %d\n",status); + return 1; + } + if (actual_num_threads > 2) { + p...
Work CD-CI Improvements in code style check: + Improve commit message. + Fix PR URL. ***NO_CI***
@@ -101,7 +101,7 @@ steps: # commit changed files git add -A > $null - git commit -m "Automated code style fixes." > $null + git commit -m "Code style fixes" -m "Automated fixes for code style." > $null "Pushing changes..." | Write-Host -ForegroundColor White @@ -129,7 +129,7 @@ steps: 'OK' | Write-Host -ForegroundColo...
perlasm/x86_64-xlate.pl: typo fix in comment. CLA: trivial
@@ -279,7 +279,7 @@ my %globals; } # if base register is %rbp or %r13, see if it's possible to - # flip base and ingex registers [for better performance] + # flip base and index registers [for better performance] if (!$self->{label} && $self->{index} && $self->{scale}==1 && $self->{base} =~ /(rbp|r13)/) { $self->{base}...
Simpler setFadePalette(..) code
// we don't want to share them -extern vu32 VIntProcess; +extern vu16 VBlankProcess; const u16 palette_black_all[64] = @@ -343,9 +343,6 @@ void PAL_setPaletteDMA(u16 numPal, const u16* pal) static void setFadePalette(u16 ind, const u16 *src, u16 len) -{ - // we are inside VInt callback --> just set palette colors immed...
Windows platform change only: compile without U_CFG_MUTEX_DEBUG. Commit #6764d2b60 brought in changes/fixes for U_CFG_MUTEX_DEBUG however, in doing so, the Windows platform ended up requiring U_CFG_MUTEX_DEBUG to be defined in order to compile. This commit removes that requirement once more.
#include "u_port_os.h" #include "u_port_private.h" + +#ifdef U_CFG_MUTEX_DEBUG /** Grab the handle of the mutex watchdog task; this is so * that, on Windows, when we simulate a critical section, we can * leave it running to catch situations where we might end up * sitting in a critical section for _far_ longer than we ...
fixed some coding styles issues
@@ -169,7 +169,6 @@ int main(int argc, FAR char *argv[]) } } - /* Open the timer device */ printf("Open %s\n", devname); @@ -194,7 +193,8 @@ int main(int argc, FAR char *argv[]) ret = ioctl(fd, TCIOC_SETTIMEOUT, CONFIG_EXAMPLES_TIMER_INTERVAL); if (ret < 0) { - fprintf(stderr, "ERROR: Failed to set the timer interval: ...
[mod_mbedtls] use local strncmp_const() On some older gcc, strncmp is a macro and expects three arguments, but does not see expansion of lighttpd CONST_STR_LEN() macro before warning/error about incorrect number of arguments
@@ -3155,27 +3155,28 @@ mod_mbedtls_ssl_conf_ciphersuites (server *srv, plugin_config_socket *s, buffer /* manually handle first token, since one-offs apply */ /* (openssl syntax NOT fully supported) */ int default_suite = 0; - if (0 == strncmp(e, "!ALL", 4) || 0 == strncmp(e, "-ALL", 4)) { + #define strncmp_const(s,cs...
BugID:17023374:fix white scan issue
@@ -952,10 +952,6 @@ static int _dm_shw_array_float_set(_IN_ dm_shw_data_value_t *data_value, _IN_ vo dm_shw_data_value_complex_t *complex_array = data_value->value; float float_set = (value == NULL) ? (0) : (*(float *)value); - if (((float *)(complex_array->value) + index) == NULL) { - return DM_INVALID_PARAMETER; - }...
Configure: pass more suitable argument to compiler_predefined().
@@ -1407,7 +1407,7 @@ unless ($disabled{asm}) { } } -my %predefined = compiler_predefined($config{CC}); +my %predefined = compiler_predefined($config{CROSS_COMPILE}.$config{CC}); # Check for makedepend capabilities. if (!$disabled{makedepend}) { @@ -3068,28 +3068,27 @@ sub run_dofile sub compiler_predefined { state %pr...
dtrace: group the packet_* probes together
@@ -43,6 +43,8 @@ provider quicly { probe crypto_receive_key_update(struct st_quicly_conn_t *conn, int64_t at, uint64_t phase, const char *secret); probe crypto_receive_key_update_prepare(struct st_quicly_conn_t *conn, int64_t at, uint64_t phase, const char *secret); + probe packet_sent(struct st_quicly_conn_t *conn, i...
autoprop: write props into runtime version folder For vere, we try to put it into a folder whose name is just the vere version number. For other runtimes, we cat the whole version string together.
|^ =* base base.task :+ %sag =/ ver=@ta - =+ rev=rev + =+ .^(vere %$ /(scot %p our.bowl)//(scot %da now.bowl)/zen/ver) ?. ?=([%vere @ ~] rev) (rap 3 (join '-' rev)) (fall (slaw %ta i.t.rev) i.t.rev) ?- -.task - ?(%solid %brass %ivory) /[dap.bowl]/[name]/pill - %desk /[dap.bowl]/[name]/jam + ?(%solid %brass %ivory) /[da...
Flash erase fix
@@ -241,7 +241,7 @@ bool Esp32FlashDriver_EraseBlock(void* context, ByteAddress address) // ets_printf("EraseBlock start part adr:%X start mem: %X size:%X erase adr:%X\n", g_pFlashDriver_partition->address, g_esp32_flash_start_ptr, g_pFlashDriver_partition->size, address); uint32_t start_addr = address * SPI_FLASH_SEC_...
papi: add additional types to vpp_serializer vppapigen supports additional types not handled by the papi seializer. This adds the types for the sake of parity. Type: feature
@@ -69,11 +69,14 @@ def conversion_unpacker(data, field_type): class BaseTypes(object): def __init__(self, type, elements=0, options=None): base_types = {'u8': '>B', + 'i8': '>b', 'string': '>s', 'u16': '>H', + 'i16': '>h', 'u32': '>I', 'i32': '>i', 'u64': '>Q', + 'i64': '>q', 'f64': '=d', 'bool': '>?', 'header': '>HI'...
Stupid fat finger error.
@@ -1002,7 +1002,7 @@ int accept$NOCANCEL(int sockfd, struct sockaddr *addr, socklen_t *addrlen) } sd = g_fn.accept$NOCANCEL(sockfd, addr, addrlen); - if ((sd != -1) && addr && addrlen)) { + if ((sd != -1) && addr && addrlen) { doAccept(sd, addr, *addrlen, "accept$NOCANCEL\n"); }
[cmake] add address/undefined sanitize compile options
@@ -48,11 +48,33 @@ option(WITH_XXHASH "with system-provided xxhash [default: off]") if(CMAKE_C_COMPILER_ID MATCHES "GNU" OR CMAKE_C_COMPILER_ID MATCHES "Clang") option(BUILD_EXTRA_WARNINGS "extra warnings") + option(BUILD_SANITIZE_ADDRESS "Enable address sanitizer" OFF) + option(BUILD_SANITIZE_UNDEFINED "Enable undefi...
XCursor is not configured if no pointer device is available
@@ -393,7 +393,6 @@ struct sway_seat *seat_create(struct sway_input_manager *input, WL_SEAT_CAPABILITY_POINTER | WL_SEAT_CAPABILITY_TOUCH); - seat_configure_xcursor(seat); wl_list_insert(&input->seats, &seat->link); @@ -438,6 +437,7 @@ static void seat_apply_input_config(struct sway_seat *seat, static void seat_configu...
Modify error code comments format
* \file * \brief Error codes * \defgroup framework Celix Framework - * \note Error code has 32bits, its internal structure as following + * \details Error code has 32bits. If the value of error code is 0,it indicates success;if no-zero,it indicates error. + * its internal structure as following, * * |31-30bit|29bit|28-...
Fixed ascii text loading on gb build
@@ -157,7 +157,7 @@ void UIDrawTextBufferChar() if (text_lines[text_count] != '\b') { i = text_x + (18 * text_y); - SetBankedBkgData(FONT_BANK, 217 + i, 1, ptr + (letter << 4)); + SetBankedBkgData(FONT_BANK, 217 + i, 1, ptr + (letter * 16)); } if (text_lines[text_count] == '\b')
parser: decoder: fix use-after-free on exception handling (CID 175138)
@@ -665,7 +665,6 @@ struct mk_list *flb_parser_decoder_list_create(struct mk_rconf_section *section) dec_rule = flb_calloc(1, sizeof(struct flb_parser_dec_rule)); if (!dec_rule) { flb_errno(); - flb_free(list); flb_parser_decoder_list_destroy(list); return NULL; }
Fix handling of rt lib for avtquery. Change if test for linux, add find_library call.
@@ -226,9 +226,10 @@ ENDIF(VISIT_PYTHON_FILTERS) #********************************* SERIAL ************************************ ADD_LIBRARY(avtquery_ser ${AVTQUERY_SOURCES}) TARGET_LINK_LIBRARIES(avtquery_ser visitcommon avtmath avtshapelets avtexpressions_ser avtfilters_ser visit_vtk) -IF(CMAKE_SYSTEM_NAME MATCHES Lin...
tests; warn against missing wren_test binary correctly
@@ -10,7 +10,7 @@ import re from subprocess import Popen, PIPE import sys from threading import Timer - +import platform # Runs the tests. parser = ArgumentParser() @@ -25,7 +25,11 @@ is_debug = args.suffix.startswith('_d') WREN_DIR = dirname(dirname(realpath(__file__))) WREN_APP = join(WREN_DIR, 'bin', 'wren_test' + a...
Add dependency on include path to header for Shadow Demo
@@ -5,6 +5,8 @@ afr_set_demo_metadata(ID "SHADOW_DEMO") afr_set_demo_metadata(DESCRIPTION "An example that demonstrates Shadow") afr_set_demo_metadata(DISPLAY_NAME "Shadow Demo") +set(inc_dir "${AFR_MODULES_C_SDK_DIR}/standard/serializer/include") + afr_module_sources( ${AFR_CURRENT_MODULE} INTERFACE @@ -15,3 +17,8 @@ ...
Make sure wifi password will not be saved in db if wifi is not configured by deconz
@@ -2905,14 +2905,28 @@ int DeRestPluginPrivate::putWifiUpdated(const ApiRequest &req, ApiResponse &rsp) } if (!workingpw.isEmpty() && gwWifiWorkingPw != workingpw) + { + if (gwWifi == "not-configured") + { + gwWifiWorkingPw = QString(); + } + else { gwWifiWorkingPw = workingpw; + } changed = true; } if (!wifipw.isEmpt...
crl: noout is not an output item Fixes
@@ -177,7 +177,7 @@ int crl_main(int argc, char **argv) nextupdate = ++num; break; case OPT_NOOUT: - noout = ++num; + noout = 1; break; case OPT_FINGERPRINT: fingerprint = ++num;
Specify OPENSSL_API_COMPAT 10100 when OpenSSL >= 3.0.0 To supress deprecation warnings when our API is still supported
@@ -359,6 +359,22 @@ else fi AC_CHECK_HEADERS([openssl/ssl.h openssl/evp.h openssl/engine.h openssl/conf.h]) AC_CHECK_FUNCS([EVP_sha256 EVP_sha384 EVP_sha512 EVP_PKEY_keygen ECDSA_SIG_get0 EVP_MD_CTX_new EVP_PKEY_base_id DSA_SIG_set0 DSA_SIG_get0 EVP_dss1 DSA_get0_pqg DSA_get0_key EVP_cleanup ENGINE_cleanup ENGINE_free...
Make CBMC patch.py look for touch file before patching.
@@ -9,7 +9,7 @@ from glob import glob from patches_constants import PATCHES_DIR def patch(): - if os.path.isfile("patched"): + if os.path.isfile(os.path.join(PATCHES_DIR, "patched")): sys.exit() applied_patches = []
gadgettracermanager: Fix possible deadlock
@@ -101,6 +101,7 @@ func (g *GadgetTracerManager) ReceiveStream(tracerID *pb.TracerID, stream pb.Gad gadgetStream, err := g.tracerCollection.Stream(tracerID.Id) if err != nil { + g.mu.Unlock() return fmt.Errorf("cannot find stream for tracer %q", tracerID.Id) }
os/fs/smartfs: Fix mismatched type of jSmartFs entry timestamps Entry timestamps of type uint32_t are mistakenly stored as type uint16_t for comparison checking They should be stored and compared as type uint32_t for effective functioning
@@ -161,7 +161,7 @@ struct sector_entry_queue_s { uint16_t logsector; /* Logical sector number */ uint16_t parentsector; /* Logical sector which is chain with this */ uint16_t parentoffset; /* Offset of parent entry in parent sector */ - uint16_t time; /* Timestamp of entry */ + uint32_t time; /* Timestamp of entry */ ...
Offset output dts by -1 when num_out >= gop_len, otherwise there will be a gap of 2 dts. Fixes
@@ -183,7 +183,7 @@ kvz_picture* kvz_encoder_feed_frame(input_frame_buffer_t *buf, dts_out = buf->pts_buffer[dts_idx % gop_buf_size] + buf->delay; } else { int dts_idx = buf->num_out - (cfg->gop_len - 1); - dts_out = buf->pts_buffer[dts_idx % gop_buf_size]; + dts_out = buf->pts_buffer[dts_idx % gop_buf_size] - 1; } } e...
OcAppleDiskImageLib: Remove BLock I/O Handle duplicate.
@@ -81,7 +81,6 @@ typedef PACKED struct { typedef struct { UINT32 Signature; - EFI_HANDLE Handle; EFI_BLOCK_IO_PROTOCOL BlockIo; EFI_BLOCK_IO_MEDIA BlockIoMedia; DMG_DEVICE_PATH DevicePath; @@ -273,7 +272,6 @@ OcAppleDiskImageInstallBlockIo ( } DiskImageData->Signature = OC_APPLE_DISK_IMAGE_MOUNTED_DATA_SIGNATURE; - Di...
The mutex should be deleted if there is no process attached to it
#include <lnx_adapter.h> #define LOCALE_DIR "/usr/share/locale" +#define FTOK_PROJ_ID 'R' // Today proj_id is an int, but still only 8 bits are used. + // Typical usage has an ASCII character proj_id, + // that is why the behavior is said to be undefined when proj_id is zero. +#define SHM_PERM_FLG 0666 // permissions g...
Fix tests failures caused by trying to load electron settings in l10n without app running
@@ -12,7 +12,7 @@ export const locales = glob .map(path => Path.basename(path, ".json")); const app = electron.app || (electron.remote && electron.remote.app); -const settingsLocale = settings.get("locale"); +const settingsLocale = app && settings.get("locale"); const systemLocale = app ? app.getLocale() : "en"; const ...
Update README Removed Artik053 and updated the links to the measurement site. JerryScript-DCO-1.0-Signed-off-by: Daniella Barsony
@@ -20,14 +20,13 @@ Key characteristics of JerryScript: Additional information can be found on our [project page](http://jerryscript.net) and [Wiki](https://github.com/pando-project/jerryscript/wiki). -Memory usage and Binary footprint are measured at [here](https://pando-project.github.io/jerryscript-test-results) wit...
update(rules/platform/linux/bpf): enforce -O2 when compiling BPF To avoid compiler optimizations messing up with generated IR and BPF instructions is paramount to enforce the optimization level to 2 disregarding the mode (whether it is set to debug or release etc.)
@@ -46,6 +46,7 @@ rule("platform.linux.bpf") targetarch = "__TARGET_ARCH_powerpc" end target:add("includedirs", path.directory(headerfile)) + target:set("optimize", "faster") batchcmds:show_progress(opt.progress, "${color.build.object}compiling.bpf %s", sourcefile) batchcmds:mkdir(path.directory(objectfile)) batchcmds:...
Fix %n and fix integers being assigned as chars by default
@@ -248,7 +248,8 @@ namespace { SCANF_TYPE_L, SCANF_TYPE_LL, SCANF_TYPE_PTRDIFF, - SCANF_TYPE_SIZE_T + SCANF_TYPE_SIZE_T, + SCANF_TYPE_INT }; } @@ -275,6 +276,8 @@ static void store_int(void *dest, unsigned int size, unsigned long long i) { case SCANF_TYPE_SIZE_T: *(size_t *)dest = i; break; + /* fallthrough */ + case ...
Fix coverity CID - Check return value in ffc_params.c for BIO_indent/BIO_puts calls.
@@ -313,8 +313,10 @@ int ffc_params_print(BIO *bp, const FFC_PARAMS *ffc, int indent) goto err; if (ffc->seed != NULL) { size_t i; - BIO_indent(bp, indent, 128); - BIO_puts(bp, "seed:"); + + if (!BIO_indent(bp, indent, 128) + || BIO_puts(bp, "seed:") <= 0) + goto err; for (i = 0; i < ffc->seedlen; i++) { if ((i % 15) =...
Fix memory leak when there's a read error of module aux data from rdb.
@@ -2766,15 +2766,16 @@ int rdbLoadRio(rio *rdb, int rdbflags, rdbSaveInfo *rsi) { io.ver = 2; /* Call the rdb_load method of the module providing the 10 bit * encoding version in the lower 10 bits of the module ID. */ - if (mt->aux_load(&io,moduleid&1023, when) != REDISMODULE_OK || io.error) { - moduleTypeNameByID(nam...
external: delete output of built, Make.dep at distclean The Make.dep is an output of built so that it should be clean when we execute "make distclean".
@@ -132,6 +132,7 @@ clean: $(foreach SDIR, $(BUILDIRS), $(SDIR)_clean) iotivity_clean distclean: $(foreach SDIR, $(BUILDIRS), $(SDIR)_distclean) $(call DELFILE, .depend) + $(call DELFILE, Make.dep) $(call DELFILE, $(BIN)) $(call CLEAN)
ANother try at Linux ECN
@@ -143,9 +143,9 @@ int picoquic_socket_set_ecn_options(SOCKET_TYPE sd, int af, int * recv_set, int } #else if (af == AF_INET6) { -#if defined(IP_TOS) && defined(INET_ECN_ECT_0) +#if defined(IP_TOS) { - unsigned int ecn = INET_ECN_ECT_0; + unsigned int ecn = 2; /* ECN_ECT_0 */ /* Request setting ECN_1 in outgoing packe...
chore(my_bot/config.json): leaked bot token.. oops
"disable_modules": ["WEBSOCKETS", "USER_AGENT", "DISCORD_GATEWAY"] }, "discord": { - "token": "NzMzNzcxMjgwMzA5OTQ0MzYw.XxH_wg.nIKzBAUosQV16hgJWw4xx9sX7cs", + "token": "YOUR-BOT-TOKEN", "default_prefix": { "enable": false, "prefix": "!"
Updating code coverage guide
@@ -133,6 +133,8 @@ Code coverage reports can be generated after running unit tests for each project #### Requirements - **gcc** - clang/MSVC are not supported +- **gcovr** - if not already installed, can install with `sudo apt install gcovr` +- **lcov** - if not already installed, can install with `sudo apt install lc...
No longer uses incorrect message index when changing messages.
known (~(put by known) uid.gam count) == :: changed message - =+ dex=(sub count u.old) %_ +>.$ grams %+ welp - (scag (dec dex) grams) - [gam (slag dex grams)] + (scag (dec u.old) grams) + [gam (slag u.old grams)] == :: ++ sa-change-remote ::< apply remote's delta
apps/wm_test: add missed functions add missed functions
#include "wm_test.h" #include "wm_test_usage.h" #include "wm_test_log.h" +#include "wm_test_utils.h" #define WM_TEST_COUNT 10 #define TAG "[WT]" @@ -79,8 +80,12 @@ typedef enum { #endif #define WT_MEMBER_POOL(type, func, parser, str) static void func(void *arg); #include "wm_test_table.h" + extern void wm_run_stress_te...
Modify FreeRTOS integration to allow non-static allocation.
@@ -62,12 +62,20 @@ TU_ATTR_ALWAYS_INLINE static inline void osal_task_delay(uint32_t msec) //--------------------------------------------------------------------+ // Semaphore API //--------------------------------------------------------------------+ +#if configSUPPORT_STATIC_ALLOCATION == 1 typedef StaticSemaphore_t...
engine: dispatch: run tests for plugins on 'test mode' enabled
@@ -90,15 +90,51 @@ int flb_engine_dispatch_retry(struct flb_task_retry *retry, return 0; } +static void test_run_formatter(struct flb_config *config, + struct flb_input_instance *i_ins, + struct flb_output_instance *o_ins, + struct flb_task *task) +{ + int ret; + void *out_buf = NULL; + size_t out_size = 0; + struct f...
[kernel] update sconscript
@@ -26,6 +26,9 @@ if GetDepend('RT_USING_MEMHEAP') == False: if GetDepend('RT_USING_USERHEAP'): SrcRemove(src, ['mem.c', 'slab.c']) +if GetDepend('RT_USING_SIGNALS') == False: + SrcRemove(src, ['signal.c']) + if GetDepend('RT_USING_DEVICE') == False: SrcRemove(src, ['device.c'])
Tests: added "-r" option to print unit.log on failures.
@@ -30,6 +30,7 @@ class TestUnit(unittest.TestCase): detailed = False save_log = False + print_log = False unsafe = False def __init__(self, methodName='runTest'): @@ -183,7 +184,7 @@ class TestUnit(unittest.TestCase): shutil.rmtree(self.testdir) else: - self._print_path_to_log() + self._print_log() def stop(self): if ...
Reuse sending port of Interconnect across different queries
@@ -562,6 +562,10 @@ struct UnackQueueRing */ static UnackQueueRing unack_queue_ring = {0, 0, 0}; +static int ICSenderSocket = -1; +static uint16 ICSenderPort = 0; +static int ICSenderFamily = 0; + /* * AckSendParam * @@ -1366,9 +1370,10 @@ InitMotionUDPIFC(int *listenerSocketFd, uint16 *listenerPort) errmsg("failed to...
OcAppleKernelLib: Two VTables are constructed per iteration.
@@ -709,7 +709,7 @@ InternalPatchByVtables64 ( NumEntries += NumEntriesTemp; EntryWalker->NumSolveSymbols += EntryWalker->MetaSymsIndex; - ++NumTables; + NumTables += 2; EntryWalker = GET_NEXT_OC_VTABLE_PATCH_ENTRY (EntryWalker); }
print \hex if ctrl chars detected
@@ -326,7 +326,7 @@ for(c = 0; c < statuslines; c++) if((essidstr[m] >= 0x20) && (essidstr[m] <= 0x7e)) printf("%c", essidstr[m]); else - printf("\\%02xd", essidstr[m] &0xff); + printf("\\%02x", essidstr[m] &0xff); } printf(" (%d/%d) \x1B[0m\n", zeiger->deauthcount, zeiger->disassoccount); zeiger++;
Initial work on cloning page directories
@@ -96,6 +96,16 @@ static vmm_page_table_t* _get_page_table_from_table_idx(vmm_page_directory_t* vm NotImplemented(); } +static uint32_t* _get_page_table_pointer(vmm_page_directory_t* vmm_dir, int page_table_idx) { + uint32_t* page_tables = _get_page_tables_head(vmm_dir); + return (uint32_t*)(page_tables[page_table_idx...
Added lfs to github action
@@ -34,11 +34,15 @@ jobs: steps: # Checks out the repo with full history - - uses: actions/checkout@v2 + - name: Checkout github repo (+ download lfs dependencies) + uses: actions/checkout@v2 with: fetch-depth: '0' submodules: 'recursive' persist-credentials: false + lfs: true + - name: Checkout LFS objects + run: git ...
Also call render from the user thread Someone moved the call to render out of the thread loop and into the texture update function. Same rationale for putting it back. It should not overlap other user code and it should be possible to detect if the user code hangs.
@@ -269,6 +269,7 @@ void System::loop() blit::joystick.y = shadow_joystick[1]; SDL_UnlockMutex(m_input); blit::tick(::now()); + blit::render(::now()); blit_multiplayer->update(); } @@ -277,7 +278,6 @@ Uint32 System::mode() { } void System::update_texture(SDL_Texture *texture) { - blit::render(::now()); if (_mode == bli...
AriaDecoderV3 should have a HAVE_MAT_JSONHPP guard.
#define TEST_LOG_ERROR(arg0, ...) fprintf(stderr, arg0 "\n", ##__VA_ARGS__) #endif +#ifdef HAVE_MAT_JSONHPP #include "json.hpp" - using nlohmann::json; + using namespace CsProtocol; namespace clienttelemetry { namespace data { namespace v3 { - void to_json(json& j, const Record& r); std::vector<Record> decodeRequest(co...
Add regression test for bcc resolve symbol names
@@ -362,5 +362,11 @@ TEST_CASE("test probing running Ruby process in namespaces", res = bpf.detach_usdt(u, ruby_pid); REQUIRE(res.code() == 0); + + struct bcc_symbol sym; + std::string pid_root= "/proc/" + std::to_string(ruby_pid) + "/root/"; + std::string module = pid_root + "usr/local/bin/ruby"; + REQUIRE(bcc_resolve...
ARM64: Fix auto detect of ARM64 cpus
@@ -91,18 +91,21 @@ int detect(void) #ifdef linux FILE *infile; - char buffer[512], *p, *cpu_part, *cpu_implementer; + char buffer[512], *p, *cpu_part = NULL, *cpu_implementer = NULL; p = (char *) NULL ; infile = fopen("/proc/cpuinfo", "r"); while (fgets(buffer, sizeof(buffer), infile)) { + if ((cpu_part != NULL) && (c...
In err_all.c, include the *err.h headers.
#include <stdio.h> #include "internal/err_int.h" -#include <openssl/asn1.h> -#include <openssl/bn.h> -#include <openssl/ec.h> -#include <openssl/buffer.h> -#include <openssl/bio.h> -#include <openssl/comp.h> -#include <openssl/rsa.h> -#include <openssl/dh.h> -#include <openssl/dsa.h> -#include <openssl/evp.h> -#include...
Only use 1 texture for skybox;
@@ -772,8 +772,8 @@ void lovrGraphicsSkybox(Texture* texture, float angle, float ax, float ay, float lovrGraphicsSetWinding(WINDING_COUNTERCLOCKWISE); lovrGraphicsDraw(&(DrawOptions) { .shader = type == TEXTURE_CUBE ? SHADER_CUBE : SHADER_PANO, - .textures[TEXTURE_DIFFUSE] = texture, - .textures[TEXTURE_ENVIRONMENT_MAP...
Update to new enum system;
@@ -24,13 +24,13 @@ static int l_lovrAudioReset(lua_State* L) { } static int l_lovrAudioStart(lua_State* L) { - AudioType type = luax_checkenum(L, 1, AudioTypes, "playback", "AudioType"); + AudioType type = luax_checkenum(L, 1, AudioType, "playback"); lovrAudioStart(type); return 0; } static int l_lovrAudioStop(lua_Sta...
double fallthrough annotation to please gcc parser.
@@ -1758,9 +1758,11 @@ verify_canonrrset(sldns_buffer* buf, int algo, unsigned char* sigblock, case LDNS_RSASHA1: case LDNS_RSASHA1_NSEC3: digest_size = (digest_size ? digest_size : SHA1_DIGEST_SIZE); - /* fallthrough */ #endif + /* double fallthrough annotation to please gcc parser */ + /* fallthrough */ #ifdef USE_SH...