message
stringlengths
6
474
diff
stringlengths
8
5.22k
LPC55xx: fix validate_bin_nvic_base().
@@ -41,7 +41,7 @@ uint8_t validate_bin_nvic(const uint8_t *buf) uint8_t validate_bin_nvic_base(const uint8_t *buf) { - if (!g_board_info.target_cfg) { + if (g_board_info.target_cfg) { uint32_t i = 4, nvic_val = 0; uint8_t in_range = 0; // test the initial SP value
examples/buttons: fix strange code in buttons_main
@@ -143,7 +143,7 @@ static bool g_button_daemon_started; static int button_daemon(int argc, char *argv[]) { #ifdef CONFIG_EXAMPLES_BUTTONS_POLL - struct pollfd fds[CONFIG_INPUT_BUTTONS_NPOLLWAITERS]; + struct pollfd fds[1]; #endif #ifdef CONFIG_EXAMPLES_BUTTONS_SIGNAL @@ -232,7 +232,6 @@ static int button_daemon(int ar...
chip/mchp/pwm.c: Format with clang-format BRANCH=none TEST=none
@@ -23,15 +23,9 @@ static uint32_t pwm_keep_awake_mask; /* Table of PWM PCR sleep enable register index and bit position. */ static const uint16_t pwm_pcr[] = { - MCHP_PCR_PWM0, - MCHP_PCR_PWM1, - MCHP_PCR_PWM2, - MCHP_PCR_PWM3, - MCHP_PCR_PWM4, - MCHP_PCR_PWM5, - MCHP_PCR_PWM6, - MCHP_PCR_PWM7, - MCHP_PCR_PWM8, + MCHP...
netutils/netlib/netlib_getdevs.c: Add comments and a placeholder for the RTM_NEWROUTE response.
@@ -203,10 +203,14 @@ ssize_t netlib_get_devices(FAR struct netlib_device_s *devlist, switch (resp.hdr.nlmsg_type) { + /* NLMSG_DONE means that the entire list of devices has been returned */ + case NLMSG_DONE: enddump = true; break; + /* RTM_NEWLINK provides information about one device */ + case RTM_NEWLINK: { FAR st...
spresense: fix setup processed flag
@@ -329,6 +329,7 @@ bool dcd_edpt_xfer(uint8_t rhport, uint8_t ep_addr, uint8_t *buffer, uint16_t to { if (total_bytes == 0) { + usbdcd_driver.setup_processed = true; dcd_event_xfer_complete(0, ep_addr, 0, XFER_RESULT_SUCCESS, false); } else if (ep_addr == 0x00 && total_bytes == usbdcd_driver.outlen) @@ -350,14 +351,17...
virtio: update FEATURE.yaml to include description for vhost-user Add features supported by vhost-user Type: docs
--- name: Virtio PCI Device -maintainer: Mohsin Kazmi <sykazmi@cisco.com> +maintainer: sykazmi@cisco.com sluong@cisco.com features: - - connection to the emulated pci interface presented to vpp from + - driver mode to emulate PCI interface presented to VPP from the host interface. -description: "Create a virtio-backed ...
common: adc: Add units to the ADC reading output Improved readability for people newly looking at these values. BRANCH=none TEST=build/flash volteer and run adc command.
@@ -38,7 +38,7 @@ static int print_one_adc(int channel) v = adc_read_channel(channel); if (v == ADC_READ_ERROR) return EC_ERROR_UNKNOWN; - ccprintf(" %s = %d\n", adc_channels[channel].name, v); + ccprintf(" %s = %d mV\n", adc_channels[channel].name, v); return EC_SUCCESS; }
Spill rather than compact tiny interior nodes to avoid asserts in the cn tree management logic...
#include "cn_tree_internal.h" #include "kvset.h" -#define SIZE_128MIB ((size_t)128 << 20) #define SIZE_1GIB ((size_t)1 << 30) /* The bonus count limits bonus work (scatter and idle) @@ -145,7 +144,6 @@ sp3_work_estimate(struct cn_compaction_work *w, uint internal_children, uint lea static uint sp3_work_ispill_find_kvse...
Platform for coordinated changes to type system.
:::: /sys/hoon :: :: :: =< ride -=> %143 => +=> %142 => :: :: :::: 0: version stub :: :: :: -~% %k.143 ~ ~ :: +~% %k.142 ~ ~ :: |% -++ hoon-version + +++ hoon-version 142 -- => ~% %one + ~ :> # %base :> # %math :> unsigned arithmetic +| +++ foo-142 !! ++ add ~/ %add :> unsigned addition :: ~% %two + ~ |% +++ foo-142 !!...
fskmodem/autotest: printing function information if verbose
@@ -28,6 +28,9 @@ void fskmodem_test_mod_demod(unsigned int _m, unsigned int _k, float _bandwidth) { + if (liquid_autotest_verbose) + printf("fskmodem_test_mod_demod(m=%u, k=%u, bandwidth=%g)\n", _m, _k, _bandwidth); + // create modulator/demodulator pair fskmod mod = fskmod_create(_m,_k,_bandwidth); fskdem dem = fskde...
tup: rm cc override;
config = { - cc = false, - cxx = false, target = 'native', debug = true, optimize = false, @@ -51,7 +49,6 @@ config = { } -- config notes: --- cc and cxx are the C/C++ compilers to use, or false to use the default ones -- target can be native or win32/macos/linux/android/wasm -- supercharge adds dangerous/aggressive op...
shim/runtime: Clean up unused remote attestation codes in service.go
@@ -367,20 +367,11 @@ func (s *service) Create(ctx context.Context, r *taskAPI.CreateTaskRequest) (_ * v, err := typeurl.UnmarshalAny(r.Options) if err != nil { logrus.Errorf("Get rune options error: %v", err) - } - if err != nil { return nil, err } opts = *v.(*options.Options) } - //result := make(chan bool, 1) - // s...
enclave-tls/README: add the description of error messages occurring on non-sgx enviroment In non-sgx environment, when running the command "enclave-tls-client -a sgx_ecdsa", some error info will be printed, but it can be ignored and has no impact on final attestation result. Fixes:
@@ -35,7 +35,7 @@ make install `{enclave-tls-server,enclave-tls-client}` will be installed to `/opt/enclave-tls/bin/{enclave-tls-server,enclave-tls-client}` on your system. All instances are placed in `/opt/enclave-tls/lib`. -If you want to build instances related to sgx(wolfssl\_sgx, sgx\_ecdsa, sgx\_la, wolfcrypt\_sg...
[numerics] update naming with last commit
@@ -234,7 +234,7 @@ static int test_CSparseMatrix_spsolve_unit(CSparseMatrix *M ) CSparseMatrix_factors* cs_lu_M = (CSparseMatrix_factors*) malloc(sizeof(CSparseMatrix_factors)); - int info = 1-CSparsematrix_lu_factorization(1, M, 1e-14, cs_lu_M); + int info = 1-CSparseMatrix_lu_factorization(1, M, 1e-14, cs_lu_M); if ...
Tiny OOM fix
@@ -215,6 +215,8 @@ redisSSLContext *redisCreateSSLContext(const char *cacert_filename, const char * const char *server_name, redisSSLContextError *error) { redisSSLContext *ctx = hi_calloc(1, sizeof(redisSSLContext)); + if (ctx == NULL) + goto error; ctx->ssl_ctx = SSL_CTX_new(SSLv23_client_method()); if (!ctx->ssl_ct...
Fix translate_columns[] arrays in opfamily-related psql functions Make number of translate_columns elements match the number of output columns. The only "true" value, which was previously specified, seems to be intended for opfamily operator "purpose" column. But that column has already translated values substituted. ...
@@ -6060,8 +6060,7 @@ listOperatorClasses(const char *access_method_pattern, PGresult *res; printQueryOpt myopt = pset.popt; bool have_where = false; - static const bool translate_columns[] = {false, false, false, false, false, - false, false, false}; + static const bool translate_columns[] = {false, false, false, fals...
[core] clarify error message in gw_backend.c clarify error message in gw_backend.c if connect() to unix socket fails
@@ -489,7 +489,7 @@ static int gw_spawn_connection(gw_host * const host, gw_proc * const proc, log_e if (-1 == status && errno != ENOENT && proc->unixsocket) { log_perror(errh, __FILE__, __LINE__, - "unlink %s after connect failed", proc->unixsocket->ptr); + "connect %s", proc->unixsocket->ptr); unlink(proc->unixsocket...
api: add prefix matcher typedef There is a need to be able to specifiy whether a prefix in a request is to match exactly or if more specific prefixes are also desired. Todo: Uncomment defaults, once supported in vppapigen. Type: feature
@@ -106,3 +106,14 @@ typedef ip4_prefix { vl_api_ip4_address_t address; u8 len; }; + +/** \brief A context for matching prefixes against. (Think ip prefix list.) + The meaning (exact match / want subnets) of an unset matcher is left to the implementer. + @param le - le mut be <= to prefix.len. Default: 255 (not set). +...
jvpp: log error output of Java process on test failure helps troubleshooting JVpp test failures.
@@ -124,9 +124,12 @@ class TestJVpp(VppTestCase): out, err = self.process.communicate() self.logger.info("Process output : {0}{1}".format(os.linesep, out)) - self.logger.info("Process error output : {0}{1}" - .format(os.linesep, err)) - self.assert_equal(self.process.returncode, 0, "process return code") + + if self.pr...
boot: Fix IS_ENCRYPTED macro definition The previous definition did not work as setting any type of flag would make IS_ENCRYPTED true.
@@ -149,8 +149,8 @@ struct image_tlv { uint16_t it_len; /* Data length (not including TLV header). */ }; -#define IS_ENCRYPTED(hdr) (((hdr)->ih_flags && IMAGE_F_ENCRYPTED_AES128) \ - || ((hdr)->ih_flags && IMAGE_F_ENCRYPTED_AES256)) +#define IS_ENCRYPTED(hdr) (((hdr)->ih_flags & IMAGE_F_ENCRYPTED_AES128) \ + || ((hdr)-...
enable OVERLAY_FS
@@ -9,7 +9,7 @@ diff -rupN old/linux-xlnx-xilinx-v2016.4/arch/arm/configs/xilinx_zynq_defconfig CONFIG_MDIO_BITBANG=y CONFIG_INPUT_SPARSEKMAP=y CONFIG_INPUT_EVDEV=y -@@ -239,3 +240,126 @@ CONFIG_RCU_CPU_STALL_TIMEOUT=60 +@@ -239,3 +240,127 @@ CONFIG_RCU_CPU_STALL_TIMEOUT=60 CONFIG_FONTS=y CONFIG_FONT_8x8=y CONFIG_FONT_...
vm/map: don't amap_page physical addresses
@@ -589,7 +589,7 @@ int vm_mapForce(vm_map_t *map, void *paddr, int prot) static int _map_force(vm_map_t *map, map_entry_t *e, void *paddr, int prot) { int attr = 0, offs; - page_t *p; + page_t *p = NULL; if (prot & PROT_WRITE && !(e->prot & PROT_WRITE)) return PROT_WRITE; @@ -614,7 +614,7 @@ static int _map_force(vm_m...
CoreValidation: Fixed include path case for Cortex-A targets.
@@ -94,7 +94,7 @@ targets: include: - ./config/core_a - ../../Core_A/Include - - ../../../Device/ARM/${device}/config + - ../../../Device/ARM/${device}/Config source: - ./config/core_a/mmu.c - ../Source/CV_CoreAFunc.c
HV: trusty: remove unused HC ID The security information will not pass to HV through Hypercall, so remove the unused HC_GET_SEC_INFO. Acked-by: Eddie Dong
#define HC_ID_TRUSTY_BASE 0x70UL #define HC_INITIALIZE_TRUSTY BASE_HC_ID(HC_ID, HC_ID_TRUSTY_BASE + 0x00UL) #define HC_WORLD_SWITCH BASE_HC_ID(HC_ID, HC_ID_TRUSTY_BASE + 0x01UL) -#define HC_GET_SEC_INFO BASE_HC_ID(HC_ID, HC_ID_TRUSTY_BASE + 0x02UL) /* Power management */ #define HC_ID_PM_BASE 0x80UL
Audio requirements
@@ -116,9 +116,9 @@ make -j4 run the following commands in the Terminal ``` sudo dnf -y groupinstall "Development Tools" "Development Libraries" -sudo dnf -y install ruby rubygem-{tk{,-doc},rake,test-unit} cmake libglvnd-devel libglvnd-gles freeglut-devel clang libXext-devel SDL_sound +sudo dnf -y install ruby rubygem-...
[fix] Fix the problem of an error when opening menuconfig after the project is dist.
@@ -105,6 +105,18 @@ def bsp_update_sconstruct(dist_dir): f.write('if not os.getenv("RTT_ROOT"): \n RTT_ROOT="rt-thread"\n\n') f.write(line) +def bsp_update_kconfig_testcases(dist_dir): + # delete testcases in rt-thread/Kconfig + if not os.path.isfile(os.path.join(dist_dir, 'rt-thread/Kconfig')): + return + + with open...
adding libc __signbit and __signbitf
@@ -1530,8 +1530,8 @@ GO(sigfillset, iFp) GOM(siglongjmp, pFEip) GOM(signal, pFEip) // Weak // signalfd -// __signbit -// __signbitf +GO(__signbit, iFd) +GO(__signbitf, iFf) // sigorset // sigpause // Weak // __sigpause
rewrite the ifdef as Windows cl failed to parse it
#include "lapacke_utils.h" +#ifdef __EMSCRIPTEN__ lapack_logical LAPACKE_lsame( char ca, char cb ) { - return (lapack_logical) LAPACK_lsame( &ca, &cb -#ifndef __EMSCRIPTEN__ -, 1, 1 -#endif - ); + return (lapack_logical) LAPACK_lsame( &ca, &cb ); } +#else +lapack_logical LAPACKE_lsame( char ca, char cb ) +{ + return (l...
added more information about netlink (libnl)
@@ -52,7 +52,7 @@ Requirements * Operatingsystem: Arch Linux (strict), Kernel >= 4.19 (strict). It may work on other Linux systems (notebooks, desktops) and distributions, too (no support for other distributions, no support for other operating systems). Don't use Kernel 4.4 (rt2x00 driver regression) -* Chipset must be...
tune performance options with longer reset delay
@@ -81,12 +81,14 @@ static mi_option_desc_t options[_mi_option_last] = { 0, UNINIT, MI_OPTION(segment_reset) }, // reset segment memory on free (needs eager commit) #if defined(__NetBSD__) { 0, UNINIT, MI_OPTION(eager_commit_delay) }, // the first N segments per thread are not eagerly committed -#else +#elif defined(_W...
esp32/machine_pin: Add Pin.off() and Pin.on() methods.
@@ -221,6 +221,22 @@ STATIC mp_obj_t machine_pin_value(size_t n_args, const mp_obj_t *args) { } STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(machine_pin_value_obj, 1, 2, machine_pin_value); +// pin.off() +STATIC mp_obj_t machine_pin_off(mp_obj_t self_in) { + machine_pin_obj_t *self = MP_OBJ_TO_PTR(self_in); + gpio_set_le...
libhfuzz: missing free()
@@ -106,10 +106,12 @@ static int HonggfuzzRunFromFile(int argc, char** argv) { ssize_t len = files_readFromFd(in_fd, buf, _HF_INPUT_MAX_SIZE); if (len < 0) { LOG_E("Couldn't read data from stdin: %s", strerror(errno)); + free(buf); return -1; } HonggfuzzRunOneInput(buf, len); + free(buf); return 0; }
feat(docs): Link to outputs page in troubleshooting re: BT output
@@ -3,9 +3,7 @@ title: Troubleshooting sidebar_title: Troubleshooting --- -### Summary - -The following page provides suggestions for common errors that may occur during firmware compilation. If the information provided is insufficient to resolve the issue, feel free to seek out help from the [ZMK Discord](https://zmk....
Update README.md We require 2017.4 now. Thanks
@@ -46,7 +46,7 @@ Access to CAPI from the FPGA card requires the Power Service Layer (PSL). For th * https://www.ibm.com/systems/power/openpower Download the required files under "PSL Checkpoint Files for the CAPI SNAP Design Kit". -SNAP currently supports Xilinx FPGA devices, exclusively. For synthesis, simulation mod...
ap_pwrseq: Add signal range checking Add power signal range checking. TEST=zmake test test-ap_power BRANCH=none
@@ -150,8 +150,12 @@ int power_wait_mask_signals_timeout(power_signal_mask_t mask, int power_signal_get(enum power_signal signal) { - const struct ps_config *cp = &sig_config[signal]; + const struct ps_config *cp; + if (signal < 0 || signal >= POWER_SIGNAL_COUNT) { + return -EINVAL; + } + cp = &sig_config[signal]; swit...
machinarium: sort timers after removal
@@ -118,11 +118,10 @@ int mm_clock_step(mm_clock_t *clock) list[j] = list[i]; j++; } - qsort(list, clock->timers_count, sizeof(mm_timer_t*), - mm_clock_cmp); - clock->timers.pos -= sizeof(mm_timer_t*) * timers_hit; clock->timers_count -= timers_hit; + qsort(list, clock->timers_count, sizeof(mm_timer_t*), + mm_clock_cmp...
rms/slurm: updating logic for pmi enablement
@@ -72,7 +72,7 @@ Source1: slurm.epilog.clean %bcond_with hdf5 %bcond_with lua %bcond_with numa -%bcond_without pmix +%bcond_with pmix %bcond_with nvml # 4/11/18 karl@ices.utexas.edu - enable lua bindings @@ -161,7 +161,7 @@ BuildRequires: numactl-devel %endif %endif -%if %{with pmix} && "%{_with_pmix}" == "--with-pmix...
fix against slow client fragmentation
@@ -408,7 +408,7 @@ re_eval: /* headers */ case 1: do { - if (start + 1 >= stop) + if (start >= stop) return CONSUMED; /* buffer ended on header line */ if (*start == '\r' || *start == '\n') { goto finished_headers; /* empty line, end of headers */
Badger2040: List load/save
@@ -5,19 +5,9 @@ import time # **** Put your list title and contents here ***** list_title = "Checklist" list_content = ["Badger", "Badger", "Badger", "Badger", "Badger", "Mushroom", "Mushroom", "Snake"] - list_states = [False] * len(list_content) +list_file = "checklist.txt" -try: - with open("checklist.txt", "r") as ...
config_tools: add error icon for hypervisor tab add error icon for hypervisor tab
<template> <div class="p-2 w-100 d-flex align-items-center TabBox"> - <div class="d-inline-block p-3 pt-2 Tab" + <div class="d-inline-block p-3 pt-2 Tab position-relative" :class="{Active:activeVMID===-1}" @click="active(-1)"> + <div class="position-absolute" style="right: 3px;top:5px;" v-if="errors.hasOwnProperty(-1)"...
removed home brew gradle since gradle seems to be available before (if I'm interpreting the output correctly)
@@ -44,7 +44,6 @@ jobs: brew install discount brew install flex brew install gpgme - brew install gradle brew install libev brew install libgcrypt brew install libgit2
ames: remove cork wire from state
:: ++ on-pump-cork ^+ peer-core + =/ =wire (make-pump-timer-wire her.channel bone) + =. corks.ames-state (~(del in corks.ames-state) wire) =. peer-state =, peer-state %_ peer-state
Meep: Set SYV682x high voltage path ilimit to 5.5A BRANCH=firmware-octopus-11297.B TEST=EC console ppc_dump <port> to make sure setting.
/* Additional PPC second source */ #define CONFIG_USBC_PPC_SYV682X #define CONFIG_USBC_PPC_DEDICATED_INT +#undef CONFIG_SYV682X_HV_ILIM +#define CONFIG_SYV682X_HV_ILIM SYV682X_HV_ILIM_5_50 /* Additional TCPC second source in Port 1 */ #define CONFIG_USB_PD_TCPM_MULTI_PS8XXX
move is_running into conf_check()
@@ -135,7 +135,6 @@ void conf_init( void ) { *gconf = ((struct gconf_t) { .dht_port = -1, .af = AF_UNSPEC, - .is_running = 1, #ifdef CMD .cmd_port = -1, #endif @@ -189,6 +188,7 @@ void conf_check( void ) { // Store startup time gconf->time_now = time( NULL ); gconf->startup_time = time_now_sec(); + gconf->is_running = ...
[bsp][stm32] modify doc for atk-pandora
@@ -47,11 +47,6 @@ menu "On-chip Peripheral Drivers" select RT_USING_SERIAL default n - config BSP_USING_UART3 - bool "Enable UART3" - select RT_USING_SERIAL - default n - config BSP_UART_USING_DMA_RX bool "Enable UART RX DMA support" default n
README.md: fix wrong number on Windows steps
@@ -35,16 +35,12 @@ On __Windows__, - Exception: seh - Build revision: 1 - Destination Folder: Select a folder that your Windows user owns - 2. Install SDL2 http://libsdl.org/download-2.0.php - Extract the SDL2 folder from the archive using a tool like [7zip](http://7-zip.org) - Inside the folder, copy the `i686-w64-mi...
Analysis workflow, fix mkdir.
@@ -284,7 +284,7 @@ jobs: #make install_sw make install_dev cd .. - make expat + mkdir expat echo "curl expat" curl -L -k -s -S -o expat-2.2.10.tar.gz https://github.com/libexpat/libexpat/releases/download/R_2_2_10/expat-2.2.10.tar.gz tar xzf expat-2.2.10.tar.gz
nvs: fix nvs_get_stats unit test Changed check for the returned parameter from ESP_ERR_NVS_PART_NOT_FOUND to ESP_ERR_NVS_NOT_INITIALIZED.
@@ -71,7 +71,7 @@ TEST_CASE("calculate used and free space", "[nvs]") TEST_ESP_ERR(nvs_get_stats(NULL, NULL), ESP_ERR_INVALID_ARG); nvs_stats_t stat1; nvs_stats_t stat2; - TEST_ESP_ERR(nvs_get_stats(NULL, &stat1), ESP_ERR_NVS_PART_NOT_FOUND); + TEST_ESP_ERR(nvs_get_stats(NULL, &stat1), ESP_ERR_NVS_NOT_INITIALIZED); TES...
Squashed 'opae-libs/' changes from 9396453c..2e4366e6 opae-libs: xfpga: implement workarounds for lack of pr_id
@@ -223,9 +223,18 @@ fpga_result __XFPGA_API__ xfpga_fpgaUpdateProperties(fpga_token token, SET_FIELD_VALID(&_iprop, FPGA_PROPERTY_OBJTYPE); // get bitstream id result = sysfs_get_interface_id(_token, _iprop.guid); + // TODO: undo this hack. It was put in place to deal + // with the lack of pr_id in dfl-fme.x in N6000....
servo_v4: enable usb port by default Set the USB mux and power enable to default to route the USB3 port to the DUT and enable VBUS. BRANCH=None TEST=ensure that blue port works on power on. Commit-Ready: Nick Sanders Tested-by: Nick Sanders
@@ -286,6 +286,17 @@ static void init_uservo_port(void) write_ioexpander(1, 0, 0); } +/* Enable blue USB port to DUT. */ +static void init_usb3_port(void) +{ + /* Write USB3.0_TYPEA_MUX_SEL */ + write_ioexpander(0, 3, 1); + /* Write USB3.0_TYPEA_MUX_EN_L */ + write_ioexpander(0, 4, 0); + /* Write USB3.0_TYPE_A_PWR_EN *...
feat(fsdrv): add posix lseek() error checking
@@ -176,8 +176,8 @@ static lv_fs_res_t fs_write(lv_fs_drv_t * drv, void * file_p, const void * buf, static lv_fs_res_t fs_seek(lv_fs_drv_t * drv, void * file_p, uint32_t pos, lv_fs_whence_t whence) { LV_UNUSED(drv); - lseek((lv_uintptr_t)file_p, pos, whence); - return LV_FS_RES_OK; + off_t offset = lseek((lv_uintptr_t)...
api: Remove the useless code
@@ -568,7 +568,6 @@ finish_page83: case 0xb0: /* Block Limits */ { char data[64]; - int block_size; int max_xfer_length; uint16_t val16; uint32_t val32; @@ -600,12 +599,6 @@ finish_page83: */ data[5] = 0x01; - block_size = tcmu_get_attribute(dev, "hw_block_size"); - if (block_size <= 0) { - return tcmu_set_sense_data(s...
test: add ethereum test case test_001CreateWallet_0002CreateOneTimeWalletFailureNullConfig
@@ -85,6 +85,23 @@ START_TEST(test_001CreateWallet_0001CreateOneTimeWalletSuccess) } END_TEST +START_TEST(test_001CreateWallet_0002CreateOneTimeWalletFailureNullConfig) +{ + BSINT32 rtnVal; + extern BoatIotSdkContext g_boat_iot_sdk_context; + + /* 1. execute unit test */ + rtnVal = BoatWalletCreate(BOAT_PROTOCOL_ETHERE...
YAML CPP: Fix detection of parent keys
@@ -106,7 +106,10 @@ KeySet splitArrayParents (KeySet const & keys) ckdb::keySetBaseName (*directParent, NULL); if (isArrayParent (*directParent, keys)) arrayParents.append (directParent); } - if (isArrayParent (*previous, keys)) arrayParents.append (previous); + else if (isArrayParent (*previous, keys)) + { + arrayPar...
Require Imath 3.1
@@ -258,7 +258,7 @@ set(IMATH_TAG "master" CACHE STRING if(NOT OPENEXR_FORCE_INTERNAL_IMATH) #TODO: ^^ Release should not clone from master, this is a place holder set(CMAKE_IGNORE_PATH "${CMAKE_CURRENT_BINARY_DIR}/_deps/imath-src/config;${CMAKE_CURRENT_BINARY_DIR}/_deps/imath-build/config") - find_package(Imath QUIET)...
interface: fixed uxToHex bug
@@ -2,6 +2,8 @@ import React, { Component } from 'react'; import { Sigil } from '../../../../lib/sigil'; import ChatEditor from './chat-editor'; import { S3Upload } from './s3-upload'; +import { uxToHex } from '../../../../lib/util'; + const URL_REGEX = new RegExp(String(/^((\w+:\/\/)[-a-zA-Z0-9:@;?&=\/%\+\.\*!'\(\),\$...
Fix coordinate handling in MetalANGLE build when UIScreen scale and nativeScale do not match
@@ -69,10 +69,13 @@ static const int NATIVE_NO_COORDINATE = -1; _active = YES; - _scale = 1; + _scale = [[UIScreen mainScreen] scale]; + // In case of MetalANGLE build, use the original scale value +#ifndef _CARTO_USE_METALANGLE if ([[UIScreen mainScreen] respondsToSelector:@selector(nativeScale)]) { _scale = [[UIScree...
Solve minor bugs in last version, related to require semantics in node loader.
@@ -42,19 +42,36 @@ function node_loader_trampoline_load_from_file_require(p) { /* First try to load the absolute path */ try { return require(p); - } catch (e) {} + } catch (e) { + if (e.code !== 'MODULE_NOT_FOUND') { + throw e; + } + } /* Then try to load without the path */ const basename = path.basename(p); try { r...
hongguzz.h: constify some vars
@@ -198,8 +198,8 @@ typedef struct { const char* const* cmdline; bool nullifyStdio; bool fuzzStdin; - char* externalCommand; - char* postExternalCommand; + const char* externalCommand; + const char* postExternalCommand; bool netDriver; bool persistent; uint64_t asLimit; @@ -232,7 +232,7 @@ typedef struct { struct { boo...
[fabric][tests]fix test case failed to run and error aitos-io#1354 aitos-io#1355 BoATE-1058
@@ -82,7 +82,7 @@ START_TEST(test_005Transaction_0003TxInvoke_Failure_Args_NULL) time(&timesec); rtnVal = BoatHlfabricTxSetTimestamp(&tx_ptr, timesec, 0); ck_assert_int_eq(rtnVal, BOAT_SUCCESS); - rtnVal = BoatHlfabricTxSetArgs(&tx_ptr, NULL); + rtnVal = BoatHlfabricTxSetArgs(&tx_ptr, NULL, NULL); ck_assert_int_eq(rtnV...
Update issues.yml test part 1
@@ -3,7 +3,7 @@ on: types: [opened, reopened] jobs: check: - if: github.event.issue.user.login != 'zandbelt' + if: github.event.issue.user.login == 'zandbelt' runs-on: ubuntu-latest steps: - if: github.event.action == 'opened'
in_tail: if parser fails, pack raw text
@@ -237,6 +237,12 @@ static int process_content(struct flb_tail_file *file, off_t *bytes) (char**) &out_buf, &out_size, file); flb_free(out_buf); } + else { + /* Parser failed, pack raw text */ + flb_time_get(&out_time); + flb_tail_file_pack_line(out_sbuf, out_pck, &out_time, + data, len, file); + } } else if (ctx->mul...
build.sh: add fedora dbus-devel Issue
@@ -62,7 +62,7 @@ dependencies() { "Fedora") MANAGER_QUERY="dnf list installed" MANAGER_INSTALL="dnf install" - DEPS="{meson,gcc,gcc-c++,libX11-devel,glslang,python3-mako,mesa-libGL-devel,libXNVCtrl-devel}" + DEPS="{meson,gcc,gcc-c++,libX11-devel,glslang,python3-mako,mesa-libGL-devel,libXNVCtrl-devel,dbus-devel}" dep_i...
pack: on msgpack2json, detect and skip quoted bytes
@@ -319,6 +319,7 @@ static inline int try_to_write_str(char *buf, int *off, size_t size, int required; size_t available; char c; + char n; char *p; available = (size - *off); @@ -335,36 +336,22 @@ static inline int try_to_write_str(char *buf, int *off, size_t size, } c = str[i]; - switch (c) { - case '\\': - case '"': ...
Uniformize ChangeLog entries.
@@ -4,5 +4,5 @@ API changes * Drop support for compatibility with our own previous buggy implementation of truncated HMAC (MBEDTLS_SSL_TRUNCATED_HMAC_COMPAT). * Drop support for TLS record-level compression (MBEDTLS_ZLIB_SUPPORT). * Drop support for RC4 TLS ciphersuites. - * Drop single-DES ciphersuites. + * Drop suppo...
king: new mug
@@ -5,6 +5,7 @@ module Urbit.Noun.Mug where import ClassyPrelude import Data.Bits +import Data.ByteString.Builder import Urbit.Atom import Data.Hash.Murmur (murmur3) @@ -13,14 +14,7 @@ type Mug = Word32 {-# INLINE mugBS #-} mugBS :: ByteString -> Word32 -mugBS = go 0xcafebabe - where - go seed buf = - let haz = murmur3...
Handle unknown user in cachetop If running on a system that uses cgroups the process owner uid may not exist on the host system and `pwd.getpwuid` throws a KeyError. This patch defaults to a uid of `UNKNOWN(id)` when we're unable to look up the username.
@@ -222,11 +222,20 @@ def handle_loop(stdscr, args): ) (height, width) = stdscr.getmaxyx() for i, stat in enumerate(process_stats): + uid = int(stat[1]) + try: + username = pwd.getpwuid(uid)[0] + except KeyError as ex: + # `pwd` throws a KeyError if the user cannot be found. This can + # happen e.g. when the process is...
lyb parser BUGFIX do not validate any content
@@ -730,7 +730,7 @@ lyb_parse_any_content(const struct ly_ctx *ctx, const char *data, struct lyd_nod /* turn logging off */ prev_lo = ly_log_options(0); - ret = _lyd_parse_lyb(ctx, NULL, NULL, tree, in, LYD_PARSE_OPAQ | LYD_PARSE_STRICT, 0, + ret = _lyd_parse_lyb(ctx, NULL, NULL, tree, in, LYD_PARSE_ONLY | LYD_PARSE_OP...
Update behavior of 'P'
@@ -770,8 +770,8 @@ BEGIN_DUAL_PHASE_0(offset) coords[0] = 0; // y coords[1] = 1; // x if (IS_AWAKE && DUAL_IS_ACTIVE) { - coords[0] = (I32)usz_clamp(index_of(PEEK(0, -1)), 0, 16); - coords[1] = (I32)usz_clamp(index_of(PEEK(0, -2)) + 1, 1, 16); + coords[0] = (I32)index_of(PEEK(0, -1)); + coords[1] = (I32)index_of(PEEK(...
dev-tools/numpy: test removal of older pytyon34 build patch that was needed for rhel7/intel
@@ -38,10 +38,6 @@ BuildRequires: python3-Cython%{PROJ_DELIM} %if 0%{?suse_version} BuildRequires: fdupes #!BuildIgnore: post-build-checks -%else -%if "%{compiler_family}" == "intel" || "%{compiler_family}" == "arm" -BuildRequires: python34-build-patch%{PROJ_DELIM} -%endif %endif # Default library install path
Fix menu text positioning when using variable width fonts
@@ -310,6 +310,10 @@ const textCodeSetFont = (fontIndex: number): string => { return `\\002\\${decOct(fontIndex + 1)}`; }; +const textCodeGoto = (x: number, y: number): string => { + return `\\003\\${decOct(x)}\\${decOct(y)}`; +}; + const textCodeGotoRel = (x: number, y: number): string => { return `\\004\\${decOct(x)}...
Added missing MYNEWT_VAL_BLE_L2CAP_COC_MPS definition Merges
#define MYNEWT_VAL_BLE_L2CAP_COC_MAX_NUM CONFIG_BT_NIMBLE_L2CAP_COC_MAX_NUM #endif +#ifndef MYNEWT_VAL_BLE_L2CAP_COC_MPS +#define MYNEWT_VAL_BLE_L2CAP_COC_MPS (MYNEWT_VAL_MSYS_1_BLOCK_SIZE - 8) +#endif + #ifndef MYNEWT_VAL_BLE_L2CAP_JOIN_RX_FRAGS #define MYNEWT_VAL_BLE_L2CAP_JOIN_RX_FRAGS (1) #endif
Fix Non CF access to table in base64 decrypt
@@ -66,9 +66,9 @@ static const unsigned char base64_dec_map[128] = #define BASE64_SIZE_T_MAX ( (size_t) -1 ) /* SIZE_T_MAX is not standard */ /* - * Constant flow conditional assignment + * Constant flow conditional assignment to unsigned char */ -static void mbedtls_base64_cond_assign(unsigned char * dest, const unsig...
Fix typo in contrib/pg_trgm/pg_trgm--1.4--1.5.sql Backpatch-through: 13
-/* contrib/pg_trgm/pg_trgm--1.5--1.5.sql */ +/* contrib/pg_trgm/pg_trgm--1.4--1.5.sql */ -- complain if script is sourced in psql, rather than via ALTER EXTENSION \echo Use "ALTER EXTENSION pg_trgm UPDATE TO '1.5'" to load this file. \quit
Show palette index prefix on sprite palette events
@@ -343,6 +343,7 @@ const ScriptEventFormInput = ({ name={id} value={String(value || "")} onChange={onChangeField} + prefix={`${(field.paletteIndex || 0) + 1}: `} optional optionalLabel={l10n("FIELD_GLOBAL_DEFAULT")} optionalDefaultPaletteId={
mINI: Simplify code for file reading and writing
@@ -13,6 +13,7 @@ oclint -p "@PROJECT_BINARY_DIR@" -enable-global-analysis -enable-clang-static-an "@CMAKE_SOURCE_DIR@/src/libs/ease/keyname.c" \ "@CMAKE_SOURCE_DIR@/src/libs/utility/text.c" \ "@CMAKE_SOURCE_DIR@/src/plugins/camel/camel.c" \ + "@CMAKE_SOURCE_DIR@/src/plugins/mini/mini.c" \ "@CMAKE_SOURCE_DIR@/src/plugi...
arch/Kconfig : Select DEBUG_SYMBOLS when ARCH_STACKDUMP is enabled For debugging with dumped address in stack, DEBUG_SYMBOLS is required.
@@ -449,6 +449,7 @@ config ARCH_IRQPRIO config ARCH_STACKDUMP bool "Dump stack on assertions" default n + select DEBUG_SYMBOLS ---help--- Enable to do stack dumps after assertions. To see symbols on call stack dump, please enable DEBUG_DISPLAY_SYMBOL.
pico: Tweak ST7789 gamma
@@ -160,8 +160,10 @@ namespace pimoroni { command(reg::VRHS, 1, "\x12"); command(reg::VDVS, 1, "\x20"); command(reg::PWCTRL1, 2, "\xa4\xa1"); - command(reg::PVGAMCTRL, 14, "\xD0\x04\x0D\x11\x13\x2B\x3F\x54\x4C\x18\x0D\x0B\x1F\x23"); - command(reg::NVGAMCTRL, 14, "\xD0\x04\x0C\x11\x13\x2C\x3F\x44\x51\x2F\x1F\x1F\x20\x23...
Follow existing h2o_find_header call checks
@@ -549,7 +549,7 @@ static int fill_headers(h2o_req_t *req, struct phr_header *headers, size_t num_h } /* add date: if it's missing from the response */ - if (h2o_find_header(&req->res.headers, H2O_TOKEN_DATE, 0) < 0) + if (h2o_find_header(&req->res.headers, H2O_TOKEN_DATE, 0) == -1) h2o_resp_add_date_header(req); retu...
set max_timeout outside loop
@@ -53,10 +53,12 @@ static context miscframe; void runloop() { + /* minimum runloop period - XXX move to a config header */ + time max_timeout = milliseconds(100); thunk t; while(1) { - u64 timeout = MIN(timer_check(), milliseconds(100)); + time timeout = MIN(timer_check(), max_timeout); hpet_timer(timeout, ignore); wh...
Reorder functions in util.lua (Purely aesthetic change)
local util = {} -function util.get_file_contents(filename) - local f, err = io.open(filename, "r") - if not f then - return false, err - end - local s = f:read("a") - f:close() - if not s then - return false, "unable to open file " .. filename - else - return s - end -end - -function util.set_file_contents(filename, co...
Introducing --lib-path options for Python module linkage. This option is useful when python-config does not setup path to libpython, which is non standard.
@@ -17,12 +17,14 @@ for nxt_option; do --config=*) NXT_PYTHON_CONFIG="$value" ;; --module=*) NXT_PYTHON_MODULE="$value" ;; + --lib-path=*) NXT_PYTHON_LIB_PATH="$value" ;; --help) cat << END --config=FILE set python-config filename --module=NAME set unit python module name + --lib-path=DIRECTORY set directory path to li...
docker: apt-get update before each other apt command Each RUN command can be cached separately, so we can't depend on the cache to be up-to-date.
@@ -23,6 +23,7 @@ RUN \ # Common packages RUN \ + apt-get update -y && \ apt-get install -yq \ git build-essential \ cmake ninja-build \ @@ -40,6 +41,7 @@ RUN pip3 install meson==0.55.0 # GCC cross-compilers RUN \ + apt-get update -y && \ apt-get install -y apt-file && \ apt-file update && \ PACKAGES_TO_INSTALL=""; \ @...
slightly improve special sam opcodes
@@ -1442,29 +1442,55 @@ _n_burn(c3_y* pog, u3_noun bus, c3_ys mov, c3_ys off) *top = u3i_vint(*top); BURN(); + do_sam0: + top = _n_peek(off); + if ( *top == 0 ) { + *top = c3y; + } + else { + u3z(*top); + *top = c3n; + } + BURN(); + do_sam1: - x = 1; - goto samd_in; + top = _n_peek(off); + if ( *top == 1 ) { + *top = c...
Remove extraneous -O2 from C_FLAGS in kickit config site file.
@@ -16,8 +16,8 @@ SET(VISITARCH linux-x86_64_gcc-4.8) VISIT_OPTION_DEFAULT(VISIT_C_COMPILER gcc TYPE FILEPATH) VISIT_OPTION_DEFAULT(VISIT_CXX_COMPILER g++ TYPE FILEPATH) VISIT_OPTION_DEFAULT(VISIT_FORTRAN_COMPILER no TYPE FILEPATH) -VISIT_OPTION_DEFAULT(VISIT_C_FLAGS " -m64 -fPIC -O2 -fvisibility=hidden" TYPE STRING) -...
godfather update fixes
@@ -158,7 +158,7 @@ void Init() static auto dw81A292 = hook::get_pattern("83 C4 14 5F 5E C2 04 00", 0); static auto dw81A3D2 = hook::get_pattern("D9 5F 6C 8B 15 ? ? ? ? FF 52 30 83 C4 14 5F 5E C2 04 00", 12); static auto dw81B4DC = hook::get_pattern("83 C4 0C 8B 54 24 30 8B 7C 24 4C", 0); - static auto dw7CEA9B = hook:...
add possibilty to agent to read password from file
#include "utils/crypt/passwordCrypt.h" #include "utils/db/password_db.h" #include "utils/deathUtils.h" +#include "utils/file_io/file_io.h" #include "utils/memory.h" #include "utils/oidc_error.h" #include "utils/password_entry.h" @@ -72,6 +73,13 @@ oidc_error_t savePassword(struct password_entry* pw) { } pwe_setCommand(...
only flush pending ssl when we're not waiting on async
@@ -1564,7 +1564,9 @@ static void proceed_handshake_picotls(h2o_socket_t *sock) if (wbuf.off != 0) { h2o_socket_read_stop(sock); write_ssl_bytes(sock, wbuf.base, wbuf.off); + if (ret != PTLS_ERROR_ASYNC_OPERATION) { flush_pending_ssl(sock, next_cb); + } } else if (ret == PTLS_ERROR_IN_PROGRESS) { h2o_socket_read_start(...
sysrepocfg CHANGE remove vfork ... as it is a rather junky function.
@@ -143,7 +143,7 @@ step_edit_input(const char *editor, const char *path) return EXIT_FAILURE; } - if ((pid = vfork()) == -1) { + if ((pid = fork()) == -1) { error_print(0, "Fork failed (%s)", strerror(errno)); return EXIT_FAILURE; } else if (pid == 0) {
odissey: remove frontend_stream_reset()
@@ -453,26 +453,6 @@ od_frontend_stream_hit_limit(od_client_t *client) return shapito_stream_used(client->stream) >= instance->scheme.readahead; } -static inline void -od_frontend_stream_reset(od_client_t *client) -{ - shapito_stream_t *stream = client->stream; -#if 0 - od_instance_t *instance = client->system->instanc...
dm: fix minor comment in acrn_create_e820_table 'pSRAM' is legacy name and replaced with 'SSRAM'
@@ -224,7 +224,7 @@ acrn_create_e820_table(struct vmctx *ctx, struct e820_entry *e820) memcpy(e820, e820_default_entries, sizeof(e820_default_entries)); - /* FIXME: Here wastes 8MB memory if pSRAM is enabled, and 64MB+16KB if + /* FIXME: Here wastes 8MB memory if SSRAM is enabled, and 64MB+16KB if * GPU reserved memory...
WIP Improve branch headers
@@ -197,9 +197,9 @@ export const ScriptEventBranchHeader = styled.div<ScriptEventBranchHeaderProps>` && { // background: red; - margin-top: -5px; + // margin-top: -5px; margin-right: -5px; - margin-bottom: -5px; + // margin-bottom: -5px; margin-left: -5px; flex-basis: 100%; } @@ -208,10 +208,54 @@ export const ScriptEv...
scheduler: dont rewake killed procs
@@ -110,8 +110,7 @@ static void sched_disable_kthread(struct thread *th) struct proc *p = th->p; th->active = false; - p->active_threads[th->at_idx] = - p->active_threads[--p->active_thread_count]; + p->active_threads[th->at_idx] = p->active_threads[--p->active_thread_count]; p->active_threads[th->at_idx]->at_idx = th-...
Don't attempt an RPZ delete for unsupported actions
@@ -292,8 +292,6 @@ rpz_insert_qname_trigger(struct rpz* r, uint8_t* dname, size_t dnamelen, return 0; } if(a == RPZ_LOCAL_DATA_ACTION) { - /* insert data. TODO synth wildcard cname target on - * lookup */ rrstr = sldns_wire2str_rr(rr, rr_len); /* TODO non region alloc so rrs can be free after IXFR deletion? * */ @@ -4...
TLS 1.3: Add session test checks
@@ -4763,8 +4763,6 @@ void ssl_serialize_session_save_load( int ticket_len, char *crt_file, #if defined(MBEDTLS_SSL_ENCRYPT_THEN_MAC) TEST_ASSERT( original.encrypt_then_mac == restored.encrypt_then_mac ); -#endif - } #endif #if defined(MBEDTLS_SSL_SESSION_TICKETS) && defined(MBEDTLS_SSL_CLI_C) TEST_ASSERT( original.tic...
build: fixing linux target archive target program (ar), and ranlib
@@ -58,7 +58,7 @@ MV := mv -f RM := rm -f SED := @SED@ GREP := @GREP@ -ARTOOL := @ARTOOL@ +AR := @AR@ LIBTOOL := @LIBTOOL@ RANLIB := @RANLIB@ @@ -1184,7 +1184,8 @@ libliquid.dylib: $(objects) # linux, et al # libliquid.a: $(objects) - $(AR) r $@ $^ + ${AR} r $@ $^ + ${RANLIB} $@ libliquid.so: libliquid.a $(CC) $(CFLAGS...
tests CHANGE use pipes instead of stdio Fixes
@@ -41,7 +41,7 @@ static int setup_write(void **state) { (void) state; /* unused */ - int fd; + int fd, pipes[2]; struct wr *w; w = malloc(sizeof *w); @@ -58,14 +58,16 @@ setup_write(void **state) lys_parse_fd(w->session->ctx, fd, LYS_IN_YIN); close(fd); + pipe(pipes); + w->session->status = NC_STATUS_RUNNING; w->sessi...
tests: Fix flaky test "multi-vtep SB Chassis encap updates" Acked-by: Ales Musil
@@ -28578,7 +28578,11 @@ ovs-vsctl add-br br-phys ovn_attach n1 br-phys 192.168.0.1 24 geneve # Get the encap rec, should be just one - with geneve/192.168.0.1 -encap_rec=$(ovn-sbctl --data=bare --no-heading --column encaps list chassis hv1) +# Skip initial null encap +OVS_WAIT_UNTIL( + [encap_rec=$(ovn-sbctl --bare --...
When apps_startup() fails, exit with a failure code and a message
@@ -144,8 +144,13 @@ int main(int argc, char *argv[]) return 1; } - if (!apps_startup()) + if (!apps_startup()) { + BIO_printf(bio_err, + "FATAL: Startup failure (dev note: apps_startup() failed)\n"); + ERR_print_errors(bio_err); + ret = 1; goto end; + } prog = prog_init(); pname = opt_progname(argv[0]);
Move where details of operating mode output.
@@ -3407,13 +3407,6 @@ def _cmd_setup_server(command, args, options): if options['startup_log']: print('Startup Log File :', options['startup_log_file']) - if options['debug_mode']: - print('Operating Mode : debug') - elif options['embedded_mode']: - print('Operating Mode : embedded') - else: - print('Operating Mode : ...