message
stringlengths
6
474
diff
stringlengths
8
5.22k
TLS1.3: Alignment coding styles based on comments Fix kinds of alignment issues in fetch handshake messages.
@@ -44,7 +44,7 @@ int mbedtls_ssl_tls1_3_fetch_handshake_msg( mbedtls_ssl_context *ssl, if( ssl->in_msgtype != MBEDTLS_SSL_MSG_HANDSHAKE || ssl->in_msg[0] != hs_type ) { - MBEDTLS_SSL_DEBUG_MSG( 1, ( "bad certificate verify message" ) ); + MBEDTLS_SSL_DEBUG_MSG( 1, ( "Receive unexpected handshake message." ) ); MBEDTLS...
python/plugins: adjusted error handling to comply with doc/dev/error-handling.md
import kdb import socket - """ Usage: > sudo kdb mount file.ini /python python script=/path/to/dns_plugin.py @@ -70,7 +69,22 @@ class ElektraDNSPlugin(object): print(f"Couldn't resolve domain name for key: {k}") if warning_list: - parentKey.setMeta("warning", f"Couldn't resolve domain name for key(s): {warning_list}") ...
roller: increase nonce on successful send roll
:: =: pending ~ derive & - next-nonce `+(u.next-nonce) + :: this is moved to +on-batch-result so it's incremented only + :: when we get a confirmation that thread has been sent succesfully + :: otherwise we might get into a situation where the thread for + :: nonce "n" is very slow at confirming (e.g. L1 nonce out of s...
fix nonsymmetric index calcer for counters
@@ -166,26 +166,53 @@ void BuildIndicesForDataset( NPar::TLocalExecutor* localExecutor, TIndexType* indices) { + TIndexedSubset<ui32> columnsIndexingStorage; + + const auto* columnsIndexing + = GetIf<TIndexedSubset<ui32>>(&featuresArraySubsetIndexing); + + if (!columnsIndexing) { + columnsIndexingStorage.yresize(featur...
doc: add quick link
@@ -20,6 +20,7 @@ applications' configurations, leveraging easy application integration. ## Often Used Links +- If you are new, start reading [Get Started](doc/GETSTARTED.md) - [Build server](https://build.libelektra.org/) - [Website](https://www.libelektra.org) - [API documentation](https://doc.libelektra.org/api/late...
hdata/vpd: Fix possible NULL dereference (CID 144258) Only use devicetree model if there was one. Fixes: CID 144258
@@ -510,8 +510,6 @@ static void dt_add_model_name(void) const struct dt_property *model; model = dt_find_property(dt_root, "model"); - if (!model) - goto def_model; iplp = get_hdif(&spira.ntuples.ipl_parms, "IPLPMS"); if (!iplp) @@ -525,7 +523,7 @@ static void dt_add_model_name(void) model_name = p->sys_type_str; def_m...
Stale code removed.
@@ -138,19 +138,6 @@ def onjava_module(unit, *args): if macro_str and macro_str == 'yes': data['VCS_INFO_DISABLE_CACHE__NO_UID__'] = macro_val - # TODO: dvshkurko@ remove - data['GENERATE_VCS_JAVA_INFO_NODEP'] = extract_macro_calls(unit, 'GENERATE_VCS_JAVA_INFO_NODEP', args_delim) - # FORCE_VCS_INFO_UPDATE is responsib...
Yan LR: Introduce alias for `kdb::Key`
@@ -19,6 +19,8 @@ using namespace ckdb; #include <kdberrors.h> #include <kdbhelper.h> +using CppKey = kdb::Key; + using antlr::YAMLLexer; using antlr::YAMLParser; @@ -55,7 +57,7 @@ extern "C" { /** @see elektraDocGet */ int elektraYanlrGet (Plugin * handle ELEKTRA_UNUSED, KeySet * returned, Key * parentKey) { - kdb::Ke...
test to ensure new key names are unique
@@ -15,10 +15,12 @@ label="bufr_wmo_tables_test" # Define tmp bufr file fTmp=${label}".tmp.bufr" +fRules=${label}".tmp.filt" +fDump=${label}".tmp.dump" -#============================================== +# -------------------------------- # Testing latest WMO tables -#============================================== +# ---...
fix uart.on() failed # 1584
@@ -202,5 +202,5 @@ int32_t aos_hal_uart_callback(aos_hal_uart_dev_t *uart, void (*cb)(int, void *, uart->userdata = userdata; uart_dev_table[uart->port] = uart; uart_set_select_notif_callback(uart->port, select_notif_callback_isr); - return -ENOTSUP; + return 0; }
BugID:16944925:sort board stm32f103ze to generate iar pro;dir board
@@ -54,3 +54,10 @@ CONFIG_SYSINFO_DEVICE_NAME := stm32f103 GLOBAL_CFLAGS += -DSYSINFO_PRODUCT_MODEL=\"$(CONFIG_SYSINFO_PRODUCT_MODEL)\" GLOBAL_CFLAGS += -DSYSINFO_DEVICE_NAME=\"$(CONFIG_SYSINFO_DEVICE_NAME)\" + +# Keil project support +$(NAME)_KEIL_VENDOR = STMicroelectronics +$(NAME)_KEIL_DEVICE = STM32F103ZE + +# Iar...
tree schema free REFACTOR silence coverity
@@ -647,8 +647,8 @@ lysc_extension_free(struct lysf_ctx *ctx, struct lysc_ext **ext) return; } - /* remember this extension to be freed */ - ly_set_add(&ctx->ext_set, *ext, 0, NULL); + /* remember this extension to be freed, nothing to do on error */ + (void)ly_set_add(&ctx->ext_set, *ext, 0, NULL); /* recursive exts f...
metrics_exporter: pack inputs under 'input' key
@@ -47,6 +47,10 @@ static int collect_inputs(struct flb_me *me, struct flb_config *ctx) msgpack_sbuffer_init(&mp_sbuf); msgpack_packer_init(&mp_pck, &mp_sbuf, msgpack_sbuffer_write); + msgpack_pack_map(&mp_pck, 1); + msgpack_pack_str(&mp_pck, 5); + msgpack_pack_str_body(&mp_pck, "input", 5); + mk_list_foreach(head, &ct...
Don't validate receive paths
@@ -212,6 +212,7 @@ static __attribute__((always_inline)) void mp_path_ready(picoquic_cnx_t *cnx, pa int cnx_path_index = picoquic_create_path(cnx, current_time, peer_addr_0); /* TODO cope with possible errors */ pd->path = (picoquic_path_t *) get_cnx(cnx, AK_CNX_PATH, cnx_path_index); + set_path(pd->path, AK_PATH_CHAL...
mount: enable cache again
@@ -370,8 +370,8 @@ KeySet * elektraDefaultGlobalConfig (KeySet * keys) Key * cacheEnabled = ksLookupByName (keys, "system/elektra/cache/enabled", 0); if (!cacheEnabled || (cacheEnabled && !elektraStrCmp (keyString (cacheEnabled), "1"))) { -// ksAppendKey (config, keyNew ("system/elektra/globalplugins/postgetcache", KE...
add bionic workaround for pip bug
@@ -40,10 +40,23 @@ install (CODE "execute_process(COMMAND ${Python3_EXECUTABLE} setup.py bdist_wheel WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} )") +# Check if running on bionic where https://github.com/pypa/pip/issues/3826 occurs. +# In that case, use additional flag. +execute_process ( + COMMAND sh -c "lsb_releas...
docs: adding 4th page of perf-tools
\vspace*{\tabSpaceBot{}} \end{table} +% Perf Tools (4) +\begin{table}[h!] +\caption*{Table~\ref{table:perf-tools} (cont): {\bf Performance Analysis Tools} \vspace*{\captionSpace{}} } +\input manifest/perf-tools4 +\vspace*{\tabSpaceBot{}} +\end{table} + % Distro Packages \begin{table}[h!] \caption{\bf Distro Support Pac...
Fix unsafe_mode_pkt data type
@@ -24,7 +24,7 @@ struct __attribute__((packed)) health_t { uint8_t fault_status_pkt; uint8_t power_save_enabled_pkt; uint8_t heartbeat_lost_pkt; - int16_t unsafe_mode_pkt; + uint16_t unsafe_mode_pkt; }; // Prototypes
Fix luax_vlog stack balancing;
@@ -207,6 +207,7 @@ void luax_vlog(void* context, int level, const char* tag, const char* format, va lua_pushstring(L, tag); lua_call(L, 3, 0); } + lua_pop(L, 1); } // An implementation of luaL_traceback for Lua 5.1
smime/pkcs7: disable the Bleichenbacher workaround
@@ -163,6 +163,13 @@ static int pkcs7_decrypt_rinfo(unsigned char **pek, int *peklen, if (EVP_PKEY_decrypt_init(pctx) <= 0) goto err; + if (EVP_PKEY_is_a(pkey, "RSA")) + /* upper layer pkcs7 code incorrectly assumes that a successful RSA + * decryption means that the key matches ciphertext (which never + * was the case...
net/lora: Fix parsing of las_app_port cfg command.
@@ -746,7 +746,7 @@ las_cmd_app_port(int argc, char **argv) console_printf("Invalid # of arguments.\n"); goto cmd_app_port_err; } - retries = parse_ull_bounds(argv[2], 1, MAX_ACK_RETRIES, &rc); + retries = parse_ull_bounds(argv[3], 1, MAX_ACK_RETRIES, &rc); if (rc) { console_printf("Invalid # of retries. Must be betwee...
fix packaging on macOS
@@ -82,10 +82,6 @@ else fi ARTIFACTS="artifacts/bin/${OS}/${ARCH}_${CONFIG}_openssl" -if [ ! -e "$ARTIFACTS/libmsquic.${LIBEXT}.${VER_MAJOR}.${VER_MINOR}.${VER_PATCH}" ]; then - echo "$ARTIFACTS/libmsquic.${LIBEXT}.${VER_MAJOR}.${VER_MINOR}.${VER_PATCH}" does not exist. Run build first. - exit 1 -fi if [ -z ${OUTPUT} ]...
number of points fix
@@ -247,6 +247,9 @@ static int unpack_long(grib_accessor* a, long* val, size_t *len) is_global=is_gaussian_global(lat_first,lat_last,lon_first,lon_last,max_pl,lats,angular_precision); d=fabs(lats[0]-lats[1]); + if (expandedBoundingBox(h)) { + is_global = 0; /* ECC-445 */ + } if ( !is_global ) { /*sub area*/ (void)d;
loader: Fix dependency check issue related to swap type Fix for issue
@@ -1100,8 +1100,8 @@ boot_verify_slot_dependency(struct boot_loader_state *state, /* Determine the source of the image which is the subject of * the dependency and get it's version. */ swap_type = state->swap_type[dep->image_id]; - dep_slot = (swap_type != BOOT_SWAP_TYPE_NONE) ? - BOOT_SECONDARY_SLOT : BOOT_PRIMARY_SL...
install-config-file: Change exit codes This is to help debug on the build server
@@ -35,18 +35,18 @@ base="${specialPathStart}${specialPathEnd}" contentOfElektraPath=$(kdb ls $our) if [ $? -ne 0 ]; then echo "ERROR: Could not use kdb ls on $our." - exit 1 + exit 30 fi if [ -z "$contentOfElektraPath" ]; then kdb mount --with-recommends $their $our $format if ! [ $? -eq 0 ]; then echo "Could not moun...
enable flag for amr stitch operator
# Programmer: Gunther H. Weber # Date: April 29, 2014 # +# Modifications: +# +# Alister Maguire, Wed Jan 6 08:31:05 PST 2021 +# Added the -enable-ghosts-for-t-intersections flag, as it +# is now disabled by default. +# # ---------------------------------------------------------------------------- +# NOTE: the comment b...
CI: Update ImageMagick versions Update ImageMagick to 6.9.11-23 and 7.0.10-23
@@ -32,8 +32,8 @@ jobs: imagemagick-version: - { full: 6.7.7-10, major-minor: '6.7' } - { full: 6.8.9-10, major-minor: '6.8' } - - { full: 6.9.11-18, major-minor: '6.9' } - - { full: 7.0.10-18, major-minor: '7.0' } + - { full: 6.9.11-23, major-minor: '6.9' } + - { full: 7.0.10-23, major-minor: '7.0' } name: Linux, Ruby...
README: Add link to documentation
@@ -24,8 +24,8 @@ utility. ## Documentation +OCF documentation is available on [GitHub Pages](http://open-cas.github.io/doxygen/ocf). Doxygen API documentation is available [here](http://open-cas.github.io/doxygen/ocf). -More documentation, tutorial and examples will be available soon. ## Source Code
Fix regression from GCM mode refactoring Fixes
@@ -459,7 +459,9 @@ static void gcm_get_funcs(struct gcm_funcs_st *ctx) return; # endif #elif defined(GHASH_ASM_ARM) - /* ARM */ + /* ARM defaults */ + ctx->gmult = gcm_gmult_4bit; + ctx->ghash = gcm_ghash_4bit; # ifdef PMULL_CAPABLE if (PMULL_CAPABLE) { ctx->ginit = (gcm_init_fn)gcm_init_v8; @@ -475,7 +477,9 @@ static...
Fix comment style For consistency.
@@ -69,7 +69,7 @@ show_adb_err_msg(enum process_result err, const char *const argv[]) { "path in the ADB environment variable)"); break; case PROCESS_SUCCESS: - /* do nothing */ + // do nothing break; } }
u3: corrects dynamic hint protocol signatures/comments
@@ -1004,8 +1004,8 @@ _n_emit(u3_noun *ops, u3_noun op) static c3_w _n_comp(u3_noun*, u3_noun, c3_o, c3_o); /* _n_bint(): hint-processing helper for _n_comp. - * hif: hint-formula (first part of 10). RETAIN. - * nef: next-formula (second part of 10). RETAIN. + * hif: hint-formula (first part of 11). RETAIN. + * nef: ne...
Fix double free on failure
@@ -909,7 +909,6 @@ ACVP_RESULT acvp_run_vectors_from_file(ACVP_CTX *ctx, const char *req_filename, rv = acvp_dispatch_vector_set(ctx, obj); if (rv != ACVP_SUCCESS) { ACVP_LOG_ERR("KAT dispatch error"); - json_value_free(val); goto end; } ACVP_LOG_STATUS("Write vector set response vsId: %d", ctx->vs_id);
Fix std/png filter benches
@@ -959,6 +959,10 @@ do_bench_wuffs_png_decode_filter(uint8_t filter, CHECK_STATUS("initialize", wuffs_png__decoder__initialize( &dec, sizeof dec, WUFFS_VERSION, WUFFS_INITIALIZE__DEFAULT_OPTIONS)); + dec.private_impl.f_frame_rect_x0 = 0; + dec.private_impl.f_frame_rect_y0 = 0; + dec.private_impl.f_frame_rect_x1 = widt...
Fix SEGV crash when pairing Philips hue motion sensor
@@ -3103,6 +3103,8 @@ void DeRestPluginPrivate::addSensorNode(const deCONZ::Node *node, const SensorFi item->setValue(0); item = sensorNode.addItem(DataTypeUInt8, RConfigSensitivityMax); item->setValue(R_SENSITIVITY_MAX_DEFAULT); + item = sensorNode.item(RConfigDuration); // same as max reporting interval / TODO write ...
Remove non-accurate description in Configure script For DES and 3DES based ciphers are also enabled by this option.
@@ -61,8 +61,7 @@ my $usage="Usage: Configure [no-<cipher> ...] [enable-<cipher> ...] [-Dxxx] [-lx # library and will be loaded in run-time by the OpenSSL library. # sctp include SCTP support # enable-weak-ssl-ciphers -# Enable weak ciphers that are disabled by default. This currently -# only includes RC4 based ciphers...
CoreValidation: Fixed Cortex-A9neon mfpu setting to be compatible between AC6 and GCC.
@@ -6,7 +6,7 @@ config: cpu : Cortex-A9 mcpu : cortex-a9 fpu : vfpv3 - mfpu : neon-vfpv3 + mfpu : neon-fp16 target: ARM:82/ARMCA9/Cortex-A9 source: - ../../Source/CV_CoreAFunc.c
Update sd.c clean #if 0 code
@@ -93,25 +93,6 @@ static rt_int32_t mmcsd_parse_csd(struct rt_mmcsd_card *card) card->tacc_ns = (tacc_uint[csd->taac&0x07] * tacc_value[(csd->taac&0x78)>>3] + 9) / 10; card->max_data_rate = tran_unit[csd->tran_speed&0x07] * tran_value[(csd->tran_speed&0x78)>>3]; - #if 0 - val = GET_BITS(resp, 115, 4); - unit = GET_BIT...
Jenkins: Update Coverall status
@@ -841,6 +841,7 @@ def buildAndTest(testName, image, extraCmakeFlags = [:], def testCoverage = cmakeFlags.intersect(CMAKE_FLAGS_COVERAGE) .equals(CMAKE_FLAGS_COVERAGE) + def updateCoveralls = testName == 'debian-stable-full' def testMem = tests.contains(TEST.MEM) def testNokdb = tests.contains(TEST.NOKDB) def testAll ...
Don't recurse infinitely. Fix infinite recursion when parsing a malformed binary, discovered by clusterfuzz. Fixes
@@ -634,7 +634,8 @@ static char* get_type_def_or_ref_fullname( const CLASS_CONTEXT* ctx, uint32_t coded_index, GENERIC_PARAMETERS* class_gen_params, - GENERIC_PARAMETERS* method_gen_params) + GENERIC_PARAMETERS* method_gen_params, + uint32_t depth) // against loops { // first 2 bits define table, index starts with thir...
added wren fget/fset api
@@ -70,6 +70,8 @@ class TIC {\n\ foreign static mset(cell_x, cell_y)\n\ foreign static mset(cell_x, cell_y, index)\n\ foreign static mget(cell_x, cell_y)\n\ + foreign static fset(index, flag, value)\n\ + foreign static fget(index, flag)\n\ foreign static textri(x1, y1, x2, y2, x3, y3, u1, v1, u2, v2, u3, v3)\n\ foreign...
misc: another update to release aggregator for 1.3.5
@@ -234,7 +234,18 @@ if [[ "${minorVer}" == "1.3" && "${endMicroVer}" -eq 5 ]];then python-mpi4py-intel-openmpi3-v1.3.3 python-numpy-gnu7-v1.3.2 python-numpy-intel-v1.3.2 python-scipy-gnu7-mpich-v1.3.2 python-scipy-gnu7-mvapich2-v1.3.2 - python-scipy-gnu7-openmpi-v1.3.2 python-scipy-gnu7-openmpi3-v1.3.3" + python-scipy...
submodules are not accessible, adding token.
@@ -26,6 +26,7 @@ jobs: with: ref: ${{ github.head_ref }} submodules: 'recursive' + token: ${{ secrets.GITHUB_TOKEN }} - name: Test ${{ matrix.os }} ${{ matrix.config }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
[hardware] Reuse parameter for AXI ID widths
@@ -43,7 +43,6 @@ module mempool_system * AXI * *********/ - localparam AxiSlvIdWidth = $clog2(NumCores+1); // +1 for the Host localparam NumAXIMasters = NumTiles + 1; localparam NumAXISlaves = 3; localparam NumRules = NumAXISlaves-1; @@ -147,7 +146,7 @@ module mempool_system AXI_BUS #( .AXI_ADDR_WIDTH (AddrWidth ), .A...
Test with everything disabled.
@@ -82,6 +82,13 @@ jobs: config: Debug cmake_extra_args: "-DLIBTCOD_SAMPLES=OFF -DCMAKE_DISABLE_FIND_PACKAGE_utf8proc=1 -DCMAKE_DISABLE_FIND_PACKAGE_Threads=1" + # Test libtcod without everything. + - os: ubuntu-20.04 + triplet: x64-linux + shared: dynamic + config: Debug + cmake_extra_args: "-DLIBTCOD_SAMPLES=OFF -DCM...
Windows blues continues.
@@ -5660,7 +5660,7 @@ sctp_sorecvmsg(struct socket *so, int freecnt_applied = 0; int out_flags = 0, in_flags = 0; int block_allowed = 1; - uint32_t freed_so_far = 0; + ssize_t freed_so_far = 0; ssize_t copied_so_far = 0; int in_eeor_mode = 0; int no_rcv_needed = 0;
BugID:17646749:select SUPPORT_TLS and UTILS_JSON_PARSER when alcs enabled
@@ -9,6 +9,8 @@ config ALCS_ENABLED bool "FEATURE_ALCS_ENABLED" depends on (DEVICE_MODEL_ENABLED) default n + select SUPPORT_TLS + select UTILS_JSON_PARSER select AOS_COMP_LIBIOT_LOG select AOS_COMP_LIBIOT_SYSTEM
nimble/host: Fix build with peripheral disabled
@@ -326,7 +326,7 @@ ble_gap_log_wl(const ble_addr_t *addr, uint8_t white_list_count) } } -#if !MYNEWT_VAL(BLE_EXT_ADV) +#if NIMBLE_BLE_ADVERTISE && !MYNEWT_VAL(BLE_EXT_ADV) static void ble_gap_log_adv(uint8_t own_addr_type, const ble_addr_t *direct_addr, const struct ble_gap_adv_params *adv_params) @@ -924,7 +924,7 @@ ...
spec: debug log all errors
@@ -185,13 +185,15 @@ static void addConflict (Key * key, int conflict) */ static void handleConflict (Key * parentKey, const char * msg, OnConflict onConflict) { + ELEKTRA_LOG_DEBUG ("spec conflict: %s", msg); + switch (onConflict) { case ERROR: - ELEKTRA_SET_VALIDATION_SEMANTIC_ERRORF (parentKey, "Globbing error: %s"...
Solve RPATH bug for relocatable metacall in MacOS
@@ -236,7 +236,7 @@ if(SYSTEM_DIR_INSTALL) else() # Find libraries relative to binary if(APPLE) - set(CMAKE_INSTALL_RPATH "@loader_path/../../../${INSTALL_LIB}") + set(CMAKE_INSTALL_RPATH "@loader_path/${INSTALL_LIB}") else() set(CMAKE_INSTALL_RPATH "$ORIGIN/${INSTALL_LIB}") endif()
Adjusted gyro sensitivity for movement
#include <math.h> #include <survive.h> -STATIC_CONFIG_ITEM(MOVMENT_THRESHOLD_GYRO, "move-threshold-gyro", 'f', "Threshold to count gyro norms as moving", .05); +STATIC_CONFIG_ITEM(MOVMENT_THRESHOLD_GYRO, "move-threshold-gyro", 'f', "Threshold to count gyro norms as moving", .075); STATIC_CONFIG_ITEM(MOVMENT_THRESHOLD_A...
add error_prone 2.3.3
@@ -6,6 +6,8 @@ ELSEIF(ERROR_PRONE_VERSION STREQUAL "2.3.1") DECLARE_EXTERNAL_RESOURCE(ERROR_PRONE sbr:616853779) ELSEIF(ERROR_PRONE_VERSION STREQUAL "2.3.2") DECLARE_EXTERNAL_RESOURCE(ERROR_PRONE sbr:760800655) +ELSEIF(ERROR_PRONE_VERSION STREQUAL "2.3.3") + DECLARE_EXTERNAL_RESOURCE(ERROR_PRONE sbr:919036558) ELSE() ...
Add handle loading and clearing to Wasm loader
@@ -42,8 +42,7 @@ typedef struct loader_impl_wasm_function_type typedef struct loader_impl_wasm_handle_type { - void *todo; - + wasm_module_t *module; } * loader_impl_wasm_handle; typedef struct loader_impl_wasm_type @@ -204,13 +203,48 @@ loader_handle wasm_loader_impl_load_from_file(loader_impl impl, const loader_nam ...
Create vectorize_fn3 to pass integer argument
@@ -128,3 +128,36 @@ def _vectorize_fn2(fn, fn_vec, cosmo, x, z, returns_status=True): check(status) return f + +def _vectorize_fn3(fn, fn_vec, cosmo, x, n, returns_status=True): + """ + Generic wrapper to allow vectorized (1D array) access to CCL functions with + one vector argument and one integer argument. + """ + #...
doc: prettify and flesh out OPAL_FLASH_* call documentation
OPAL Flash calls ================ -There are three OPAL calls for interacting with flash devices: :: +There are three OPAL calls for interacting with flash devices: + +.. code-block:: c #define OPAL_FLASH_READ 110 #define OPAL_FLASH_WRITE 111 @@ -16,64 +18,71 @@ All operations on the flash device must be aligned to the...
tcpci: Add FRS enable to driver structure Use the generic FRS enable driver function in the generic TCPCI driver. TEST=twister -s zephyr/test/drivers/drivers.usbc_frs BRANCH=none Code-Coverage: Zoss
@@ -1889,6 +1889,9 @@ const struct tcpm_drv tcpci_tcpm_drv = { .set_src_ctrl = &tcpci_tcpm_set_src_ctrl, #ifdef CONFIG_USB_PD_TCPC_LOW_POWER .enter_low_power_mode = &tcpci_enter_low_power_mode, +#endif +#ifdef CONFIG_USB_PD_FRS_TCPC + .set_frs_enable = &tcpci_tcpc_fast_role_swap_enable, #endif .set_bist_test_mode = &tc...
all: fixing socket leakage in http server
@@ -638,6 +638,10 @@ bool CHttpServer::run() //RAWTRACE("After accept..."); if (!m_active) { if (verbose) RAWTRACE("Stop HTTP server"); + if (conn != INVALID_SOCKET) { + closesocket(conn); + conn = INVALID_SOCKET; + } return true; } if (conn == INVALID_SOCKET) {
refine external interrupt VM exit handler According to Intel SDM 24.9.2,Vol3, should check the validity of "VM-exit interruption information" before extracting the vector of interrupt.
@@ -266,16 +266,25 @@ int interrupt_window_vmexit_handler(struct vcpu *vcpu) int external_interrupt_vmexit_handler(struct vcpu *vcpu) { - int vector = exec_vmread(VMX_EXIT_INT_INFO) & 0xFF; + uint32_t intr_info; struct intr_ctx ctx; - ctx.vector = vector; + intr_info = exec_vmread(VMX_EXIT_INT_INFO); + if ((!(intr_info...
install to /opt/ohpc/pub
%{!?configure_flags: %define configure_flags %{config_platform} %{config_extras} %{build_mode}} -%define _prefix /opt/%{sensys_name} +%define _prefix /opt/ohpc/pub/%{sensys_name} %define _libdir %{_prefix}/lib %define _sysconfdir %{_prefix}/etc %define _datarootdir %{_prefix}/share
btc: make invoice send btc button reactive
@@ -137,16 +137,16 @@ export default class Invoice extends Component { mt={4} > <Button + primary children='Send BTC' mr={3} fontSize={1} - color='white' - backgroundColor='blue' - borderColor='none' borderRadius='24px' py='24px' px='24px' onClick={() => this.sendBitcoin(this.state.masterTicket, store.state.psbt)} + di...
Make mode static to avoid collisions
@@ -34,7 +34,7 @@ FRESULT SD_FileOpenError = FR_INVALID_PARAMETER; uint32_t total_samples = 0; uint8_t dma_status = 0; -blit::screen_mode mode = blit::screen_mode::lores; +static blit::screen_mode mode = blit::screen_mode::lores; /* configure the screen surface to point at the reserved LTDC framebuffer */ surface __ltd...
ChangeLog: add entry for consistant-hash fix
route using should not change the metric key sent * [PR #274](https://github.com/grobian/carbon-c-relay/pull/274) aggregator expiry deadlocks under pressure +* [buckytools Issue #17](https://github.com/jjneely/buckytools/issues/17) + consistent-hash implementation returns a different distribution with + the binary sear...
output: do not update metrics (it's done in the engine now)
@@ -350,8 +350,8 @@ struct flb_output_coro *flb_output_coro_get(int id, struct flb_task *task) static FLB_INLINE int flb_output_coro_destroy_id(int id, struct flb_task *task) { - struct flb_output_coro *out_coro; struct flb_coro *coro; + struct flb_output_coro *out_coro; out_coro = flb_output_coro_get(id, task); if (!o...
tests: internal: pack: add test to verify msgpack to json macros.
@@ -241,6 +241,14 @@ void test_json_pack_mult_iter() flb_free(buf); } +/* Validate default values of macros used in flb_msgpack_raw_to_json_sds */ +void test_msgpack_to_json_macros() +{ + /* Verify default values */ + TEST_CHECK(FLB_MSGPACK_TO_JSON_INIT_BUFFER_SIZE == 2.0); + TEST_CHECK(FLB_MSGPACK_TO_JSON_REALLOC_BUFF...
Move source code to reflect public-private organization.
@@ -558,7 +558,6 @@ coap_option_class_t opencoap_get_option_class(coap_option_t type) { return COAP_OPTION_CLASS_U; } } -//=========================== private ========================================= owerror_t opencoap_options_encode( OpenQueueEntry_t* msg, @@ -644,6 +643,23 @@ owerror_t opencoap_options_encode( retur...
Adding gittr to README
| :------------- | -------------: | [![Build Status](https://travis-ci.org/criticalstack/libevhtp.svg?branch=develop)](https://travis-ci.org/criticalstack/libevhtp) +[![Gitter](https://badges.gitter.im/criticalstack/libevhtp.svg)](https://gitter.im/criticalstack/libevhtp?utm_source=badge&utm_medium=badge&utm_campaign=p...
range: Use `type` metakey as fallback for `check/type`
@@ -404,6 +404,14 @@ static RangeType stringToType (const Key * typeMeta) static RangeType getType (const Key * key) { const Key * typeMeta = keyGetMeta (key, "check/type"); + + // If "check/type" is not specified, fall back to "type. + // As decided in https://github.com/ElektraInitiative/libelektra/issues/3984#issuec...
util/flash_jlink.py: Fix pylint warnings BRANCH=none TEST=cros lint util/flash_jlink.py TEST=./util/flash_jlink.py -n 127.0.0.1:2551 --board dartmonkey -i ./build/dartmonkey/ec.bin
# Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. +# pylint: disable=logging-fstring-interpolation + """Flashes firmware using Segger J-Link. This script requires Segger hardware attached via JTAG/SWD. @@ -27,17 +29,18 @@ import time DEFAULT_SEGGER_REMOTE_PORT = 19020...
Fix rate control for flat lp-gop
@@ -754,6 +754,7 @@ static int encoder_control_init_gop_layer_weights(encoder_control_t * const enco switch (num_layers) { case 0: case 1: + encoder->gop_layer_weights[0] = 1; break; // Use the first layers of the 4-layer weights.
Fix out-of-bounds accesses where the data should be zero anyway
@@ -828,11 +828,17 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *a, BLASLONG lda, BLASLONG posX, BLASLON b[ 0] = ONE; b[ 1] = ZERO; #else - b[ 0] = *(a01 + 0); - b[ 1] = *(a01 + 1); +// out-of-bounds memory accesses, see issue 601 +// b[ 0] = *(a01 + 0); +// b[ 1] = *(a01 + 1); + b[0]=ZERO; + b[1]=ZERO; #endif - b[ 2] = ...
|mount: support simple arg
:::: :: :- %say +=> |% + +$ bath + $@ desk + (lest knot) + -- |= $: [now=@da eny=@uvJ bec=beak] - [[pax=path pot=$@(~ [v=@tas ~])] ~] + [=bath pot=$@(~ [v=@tas ~])] + ~ == -?~ pot - =+ bem=(need (de-beam pax)) - $(pot ~[?^(s.bem (rear s.bem) q.bem)]) -:- %kiln-mount -[pax v.pot] +=/ bem=beam + ?@ bath [bec(q bath) /] +...
Removing GetFields test from TestFieldWeight because useless
@@ -45,25 +45,6 @@ public class TestFieldWeight { Mockito.when(Environment.getEnvironmentVariable("DATAFARI_HOME")).thenReturn(tempDirectory.toFile().getAbsolutePath()); } - - @Test - public void TestFieldWeightGetFields() throws ServletException, IOException { - final HttpServletRequest request = Mockito.mock(HttpServ...
trigger USE_CC2500 on RX_FRSKY
#include "config.h" #define Betafpv_F4 -#undef Betafpv_F4_RX +#define Betafpv_F4_RX #define F411 #define F405 #define FPV_PORT GPIOB //SPI, I2C & GYRO -#ifdef Betafpv_F4_RX +#ifdef RX_FRSKY #define USE_CC2500 #define USE_CC2500_PA_LNA #define USE_CC2500_DIVERSITY
partition_table: add tests for checking secure boot part size
@@ -389,6 +389,38 @@ class CommandLineTests(Py23TestCase): class VerificationTests(Py23TestCase): + def _run_genesp32(self, csvcontents, args): + csvpath = tempfile.mktemp() + with open(csvpath, 'w') as f: + f.write(csvcontents) + try: + output = subprocess.check_output([sys.executable, '../gen_esp32part.py', csvpath] ...
Remove unused statement in lv_tileview
@@ -354,7 +354,6 @@ static lv_res_t lv_tileview_scrl_signal(lv_obj_t * scrl, lv_signal_t sign, void lv_obj_t * tileview = lv_obj_get_parent(scrl); const lv_style_t * style_bg = lv_tileview_get_style(tileview, LV_TILEVIEW_STYLE_MAIN); - lv_tileview_ext_t * ext = lv_obj_get_ext_attr(tileview); if(sign == LV_SIGNAL_DRAG_B...
sysdeps/managarm: Handle ENOTCONN for FIONREAD ioctl
@@ -75,12 +75,16 @@ int sys_ioctl(int fd, unsigned long request, void *arg, int *result) { managarm::fs::SvrResponse<MemoryAllocator> resp(getSysdepsAllocator()); resp.ParseFromArray(recv_resp.data(), recv_resp.length()); + if(resp.error() == managarm::fs::Errors::NOT_CONNECTED) { + return ENOTCONN; + } else { __ensure...
interface: fix long group names
@@ -13,8 +13,8 @@ interface GroupSummaryProps { export function GroupSummary(props: GroupSummaryProps) { const { channelCount, memberCount, metadata, children } = props; return ( - <Col maxWidth="300px" gapY="4"> - <Row gapX="2"> + <Col maxWidth="600px" gapY="4"> + <Row gapX="2" width="100%"> <MetadataIcon borderRadius...
Fix R package after
@@ -104,14 +104,22 @@ SEXP CatBoostCreateFromFile_R(SEXP poolFileParam, SEXP result = NULL; R_API_BEGIN(); - NCatboostOptions::TDsvPoolFormatParams dsvPoolFormatParams{ - NCB::TDsvFormatOptions{static_cast<bool>(asLogical(hasHeaderParam)), CHAR(asChar(delimiterParam))[0]}, - NCB::TPathWithScheme(CHAR(asChar(cdFileParam...
scan: output config with keys sorted.
@@ -61,7 +61,7 @@ function _scan_package(packagedir) end print("") if manifest and manifest.configs then - print(" -> %s", string.serialize(manifest.configs, true)) + print(" -> %s", string.serialize(manifest.configs, {orderkeys = true, indent = false, strip = true})) end end end
Work CD-CI Fix release prep step. ***NO_CI***
@@ -101,7 +101,10 @@ jobs: git checkout develop - nbgv prepare-release + cd source + + # prepare release and capture output + $release = nbgv prepare-release # get commit message for the merge $commitMessage = git log -1 --pretty=%B @@ -112,6 +115,35 @@ jobs: # push all changes to github git -c http.extraheader="AUTHOR...
hud_elements: remove extra '}'
@@ -1111,7 +1111,6 @@ void HudElements::exec_name(){ ImGui::PopFont(); } } -} void HudElements::sort_elements(const std::pair<std::string, std::string>& option){ const auto& param = option.first;
tests: internal: slist: add new bugs() tests
@@ -97,10 +97,30 @@ void test_slist_split_string() ret = flb_slist_split_string(&list, ",,, ,, , , , ", ',', 2); TEST_CHECK(ret == 0); TEST_CHECK(mk_list_size(&list) == 0); + + +} + +void test_bugs() +{ + int ret; + struct mk_list list; + struct flb_slist_entry *e; + + ret = flb_slist_create(&list); + + /* Bug found du...
Mark all scripts as LF-only text.
-.git* export-ignore -.mailmap export-ignore -.travis.yml export-ignore -scripts export-ignore +/.git* export-ignore +/.mailmap export-ignore +/.travis.yml export-ignore +/configure text eol=lf +/scripts export-ignore +*.m4 text eol=lf +*.sh text eol=lf
Modifies tests in RSA test suite Tests for mbedtls_rsa_rsassa_pss_sign in test_suite_rsa.function have been modified to allow for upcoming removal of mode param.
@@ -249,27 +249,22 @@ void rsa_invalid_param( ) TEST_INVALID_PARAM_RET( MBEDTLS_ERR_RSA_BAD_INPUT_DATA, mbedtls_rsa_rsassa_pss_sign( NULL, NULL, NULL, - valid_mode, - 0, sizeof( buf ), buf, - buf ) ); - TEST_INVALID_PARAM_RET( MBEDTLS_ERR_RSA_BAD_INPUT_DATA, - mbedtls_rsa_rsassa_pss_sign( &ctx, NULL, NULL, - invalid_mo...
orientation.yaml 'variance'-> accuracy following pattern in nav msgs
@@ -77,19 +77,19 @@ definitions: type: s32 units: 2^-31 desc: 3rd imaginary component - - acc_w: + - w_accuracy: type: float units: N/A desc: Estimated standard deviation of w - - acc_x: + - x_accuracy: type: float units: N/A desc: Estimated standard deviation of x - - acc_y: + - y_accuracy: type: float units: N/A desc...
cooja: always set CC Make predefines CC so ?= is ineffective, set CC for all platforms.
@@ -45,6 +45,7 @@ ifeq ($(HOST_OS),Windows) LDFLAGS += -shared -Wl,--add-stdcall-alias -L/usr/lib/mingw else ifeq ($(HOST_OS),Darwin) JAVA_OS_NAME = darwin + CC = gcc CFLAGS += -fno-common -DHAVE_SNPRINTF LDFLAGS_WERROR = -Wl,-fatal_warnings LDFLAGS += -dynamiclib -fno-common -framework $(JAVA_FRAMEWORK) @@ -52,11 +53,...
ames: handle failed recork timers
:: =. event-core (emit duct %pass /recork %b %wait `@da`(add now ~m20)) + :: + ?^ error + %- (slog 'ames: recork timer failed' u.error) + event-core :: recork up to one bone per peer :: =/ pez ~(tap by peers.ames-state)
sim: Calculate offsets from boot_max_align instead of hardcoding them This patch prepares the simulator to execute images with a max align value other than 8 bytes.
@@ -1796,12 +1796,13 @@ fn verify_trailer(flash: &SimMultiFlash, slot: &SlotInfo, failed |= match magic { Some(v) => { - if v == 1 && &copy[24..] != MAGIC { + let magic_off = c::boot_max_align() * 3; + if v == 1 && &copy[magic_off..] != MAGIC { warn!("\"magic\" mismatch at {:#x}", offset); true } else if v == 3 { let e...
Add keyboard shortcut to expand settings panel PR <https://github.com/Genymobile/scrcpy/pull/2260>
@@ -524,8 +524,10 @@ input_manager_process_key(struct input_manager *im, if (control && !repeat && down) { if (shift) { collapse_panels(controller); - } else { + } else if (im->key_repeat == 0) { expand_notification_panel(controller); + } else { + expand_settings_panel(controller); } } return;
DOC: Clarify EVP_MAC_init() params vs. EVP_MAC_CTX_set_params() Fixes
@@ -118,12 +118,15 @@ I<ctx>. =head2 Computing functions -EVP_MAC_init() sets up the underlying context with information given +EVP_MAC_init() sets up the underlying context I<ctx> with information given via the I<key> and I<params> arguments. The MAC I<key> has a length of I<keylen> and the parameters in I<params> are...
Correct inclusion of STEP_OF_RANK in rpl-of0
#define RPL_OF0_SR RPL_OF0_ETX_BASED_SR #endif /* RPL_OF0_CONF_SR */ -#if RPL_OF0_FIXED_SR +#if RPL_OF0_SR == RPL_OF0_FIXED_SR #define STEP_OF_RANK(p) (3) -#endif /* RPL_OF0_FIXED_SR */ - -#if RPL_OF0_ETX_BASED_SR +#elif RPL_OF0_SR == RPL_OF0_ETX_BASED_SR /* Numbers suggested by P. Thubert for in the 6TiSCH WG. Anythin...
Add 'delegate' attribute to Tezos transfers
@@ -293,6 +293,7 @@ genericTezosWalletUpdTransfer (BRGenericWalletRef wallet, } #define FIELD_OPTION_DELEGATION_OP "DelegationOp" +#define FIELD_OPTION_DELEGATE "delegate" static int // 1 if equal, 0 if not. genericTezosCompareFieldOption (const char *t1, const char *t2) { @@ -371,9 +372,10 @@ genericTezosWalletGetTran...
packaging: integrate CPACK_PACKAGE_RELEASE cmake variable and reformat
@@ -39,14 +39,14 @@ CMAKE_ARGS_BASE="-DTARGET_PLUGIN_FOLDER='elektra4' \ -DBUILD_PDF=OFF \ -DBUILD_FULL=ON \ -DTARGET_DOCUMENTATION_HTML_FOLDER=share/doc/libelektra-doc/html \ - -DTARGET_TEST_DATA_FOLDER=share/libelektra-test/test-data" + -DTARGET_TEST_DATA_FOLDER=share/libelektra-test/test-data \ + -DCPACK_PACKAGE_REL...
fix warning from static analysis. "-1 cannot be represented in type 'unsigned int'"
@@ -1576,7 +1576,7 @@ static int ComputeCacheEntropies(const uint32_t* argb, // Update the histograms for distance/length. int len = PixOrCopyLength(v); int code_dist, code_len, extra_bits; - uint32_t argb_prev = *argb - 1; + uint32_t argb_prev = *argb ^ 0xffffffffu; VP8LPrefixEncodeBits(len, &code_len, &extra_bits); V...
[Compiler] Simulator implements je
@@ -11,7 +11,7 @@ use strum::IntoEnumIterator; use derive_more::Constructor; use compilation_definitions::encoding::ModRmByte; -use compilation_definitions::instructions::{AddRegToReg, CompareImmWithReg, DivRegByReg, Instr, InstrBytecodeProvider, InstrDisassembler, InstrInfo, MoveImmToReg, MoveRegToReg, MulRegByReg, Su...
xpath BUGFIX DFS for top-level nodes without children
@@ -6231,7 +6231,7 @@ moveto_axis_scnode_next_dfs_forward(const struct lysc_node *iter, const struct l next = lysc_node_child(iter); if (!next) { /* no children, try siblings */ - if (iter == stop) { + if ((iter == stop) || !lysc_data_parent(iter)) { /* we are done, no next element to process */ return NULL; } @@ -6241...
test-suite: set -npmin option and max msg size for mpi2 tests with IMB
@@ -29,7 +29,7 @@ fi @test "[Libs/IMB] run IMB-EXT on $NODES nodes under resource manager ($rm/$LMOD_FAMILY_COMPILER/$LMOD_FAMILY_MPI)" { EXE=$IMB_DIR/bin/IMB-EXT - ARGS="Bidir_Get Bidir_Put" + ARGS="-npmin 100 -msglog 1:6 Window" if [ ! -x $EXE ];then flunk "missing $EXE" @@ -41,7 +41,7 @@ fi @test "[Libs/IMB] run IMB...
Fix makefile PCH tab problem
local cmd = iif(p.languages.isc(cfg.language), "$(CC) -x c-header $(ALL_CFLAGS)", "$(CXX) -x c++-header $(ALL_CXXFLAGS)") _p('\t$(SILENT) %s -o "$@" -MF "$(@:%%.gch=%%.d)" -c "$<"', cmd) _p('$(PCH_PLACEHOLDER): $(GCH) | $(OBJDIR)') - _p('\tifeq (posix,$(SHELLTYPE))') - _p('\t\t$(SILENT) touch "$@"') - _p('\telse') - _p...
client session CHANGE use /dev/tty as a backup input device Fixes
@@ -58,12 +58,12 @@ open_tty_noecho(const char *path, struct termios *oldterm) FILE *ret; if (!(ret = fopen(path, "r"))) { - ERR("Unable to open the current terminal (%s).", strerror(errno)); + ERR("Unable to open the current terminal \"%s\" (%s).", path, strerror(errno)); return NULL; } if (tcgetattr(fileno(ret), oldt...
More Galileo Updates Updated sv numbers and added text to indicated Galileo in solution E#
@@ -33,7 +33,7 @@ const ( SAT_TYPE_UNKNOWN = 0 // default type SAT_TYPE_GPS = 1 // GPxxx; NMEA IDs 1-32 SAT_TYPE_GLONASS = 2 // GLxxx; NMEA IDs 65-88 - SAT_TYPE_GALILEO = 3 // GAxxx; NMEA IDs unknown + SAT_TYPE_GALILEO = 3 // GAxxx; NMEA IDs 301-332 SAT_TYPE_BEIDOU = 4 // GBxxx; NMEA IDs 201-235 SAT_TYPE_SBAS = 10 // N...
test: make conf overridable in spawn_h2o() (esp. user)
@@ -227,7 +227,6 @@ sub spawn_h2o { $conf = $conf->{conf}; } $conf = <<"EOT"; -$conf listen: host: 0.0.0.0 port: $port @@ -239,6 +238,7 @@ listen: certificate-file: examples/h2o/server.crt @{[$max_ssl_version ? "max-version: $max_ssl_version" : ""]} @{[$< == 0 ? "user: root" : ""]} +$conf EOT my $ret = spawn_h2o_raw($c...