message
stringlengths
6
474
diff
stringlengths
8
5.22k
Build: Fix binary publishing
@@ -23,8 +23,7 @@ matrix: provider: releases skip_cleanup: true file: - - Binaries/RELEASE/*.zip - - Binaries/DEBUG/*.zip + - Binaries/*.zip file_glob: true on: tags: true
u3: removes redundant bitwidth function in serial.c
#include "all.h" #include "ur/ur.h" -/* _cs_met0_w(): safe bitwidth for any c3_w -*/ -static inline c3_w -_cs_met0_w(c3_w wid_w) { - return ( wid_w >> 31 ) ? 32 : u3r_met(0, wid_w); -} - /* _cs_jam_buf: struct for tracking the fibonacci-allocated jam of a noun */ struct _cs_jam_fib { @@ -85,7 +78,7 @@ _cs_jam_fib_mat(s...
NAT44: fix nat_not_translate_output_feature in dual loop
@@ -1135,7 +1135,7 @@ snat_in2out_unknown_proto (snat_main_t *sm, key.fib_index = rx_fib_index; key.proto = ip->protocol; key.l_port = 0; - key.l_port = 0; + key.r_port = 0; s_kv.key[0] = key.as_u64[0]; s_kv.key[1] = key.as_u64[1]; @@ -1794,7 +1794,7 @@ snat_in2out_node_fn_inline (vlib_main_t * vm, { if (PREDICT_FALSE(...
Fixed NULL pointer error, if no label is provided after the rule keyword. Add NULL guard in freerules function. Use strncat and strncpy to ensure the buffer lengths are adhered to.
@@ -110,6 +110,10 @@ void initrules(Project *pr) //-------------------------------------------------------------- { pr->rules.RuleState = r_PRIORITY; + pr->rules.LastPremise = NULL; + pr->rules.LastThenAction = NULL; + pr->rules.LastElseAction = NULL; + pr->rules.ActionList = NULL; pr->network.Rule = NULL; } @@ -169,8 ...
fix serial name size mismatch with stlink_open_usb()
@@ -1002,7 +1002,7 @@ static size_t stlink_probe_usb_devs(libusb_device **devs, stlink_t **sldevs[]) { continue; struct libusb_device_handle* handle; - char serial[13]; + char serial[16]; memset(serial, 0, sizeof(serial)); ret = libusb_open(dev, &handle);
Removes silent change to WQ option for 0 duration run
@@ -229,9 +229,6 @@ void adjustdata(Project *pr) // Report start time cannot be greater than simulation duration if (time->Rstart > time->Dur) time->Rstart = 0; - // No water quality analysis for single period run - if (time->Dur == 0) qual->Qualflag = NONE; - // If no quality timestep, then make it 1/10 of hydraulic t...
chip/ish/dma.c: Format with clang-format BRANCH=none TEST=none
@@ -126,24 +126,26 @@ int ish_dma_copy(uint32_t chan, uint32_t dst, uint32_t src, uint32_t length, interrupt_unlock(eflags); while (length) { - chunk = (length > DMA_MAX_BLOCK_SIZE) ? DMA_MAX_BLOCK_SIZE - : length; + chunk = (length > DMA_MAX_BLOCK_SIZE) ? DMA_MAX_BLOCK_SIZE : + length; if (rc != DMA_RC_OK) break; efla...
Use int16_t for consistency with the params
#pragma once - #include "../plugin.h" #include "../string-sizes.h" @@ -14,9 +13,9 @@ static CLAP_CONSTEXPR const char CLAP_EXT_NOTE_NAME[] = "clap.note-name"; typedef struct clap_note_name { alignas(1) char name[CLAP_NAME_SIZE]; - alignas(4) int32_t port; - alignas(4) int32_t key; - alignas(4) int32_t channel; // -1 fo...
raise not_supported for ruby_exe calls
@@ -129,7 +129,7 @@ class Object def ruby_exe(code, opts = {}) #RHO not supported - return '' + raise 'RHO: not supported' if opts[:dir] raise "ruby_exe(..., dir: dir) is no longer supported, use Dir.chdir"
nimble/phy/nrf5x: Fix tx-tx transition We need to store current transition before calling txend callback. This is important in case of tx-tx transition since txend callback will call ble_phy_tx which overwrites current transition.
@@ -1047,12 +1047,12 @@ ble_phy_tx_end_isr(void) } #endif + transition = g_ble_phy_data.phy_transition; + if (g_ble_phy_data.txend_cb) { g_ble_phy_data.txend_cb(g_ble_phy_data.txend_arg); } - transition = g_ble_phy_data.phy_transition; - if (transition == BLE_PHY_TRANSITION_TX_RX) { #if (BLE_LL_BT5_PHY_SUPPORTED == 1) ...
testing: Fix cxxtest application for "no-rtti" builds
@@ -167,6 +167,7 @@ static void test_stl(void) // Name: test_rtti //***************************************************************************/ +#ifdef CONFIG_CXX_RTTI static void test_rtti(void) { std::cout << "test rtti===============================" << std::endl; @@ -185,6 +186,7 @@ static void test_rtti(void) del...
Add a missing psa_crypto test suite test name
@@ -1911,6 +1911,7 @@ PSA symmetric encrypt: AES-CBC-nopad, input too short depends_on:PSA_WANT_ALG_CBC_NO_PADDING:PSA_WANT_KEY_TYPE_AES cipher_encrypt_fail:PSA_ALG_CBC_NO_PADDING:PSA_KEY_TYPE_AES:"2b7e151628aed2a6abf7158809cf4f3c":"6bc1bee223":PSA_ERROR_INVALID_ARGUMENT +PSA symmetric encrypt: AES-ECB, 0 bytes, good d...
Fixes an issue with double delete
@@ -68,7 +68,6 @@ celix_status_t pubsub_getPubSubInfoFromFilter(const char* filterstr, char **topi } } } - filter_destroy(filter); if (topic != NULL && objectClass != NULL && strncmp(objectClass, PUBSUB_PUBLISHER_SERVICE_NAME, 128) == 0) { *topicOut = strdup(topic);
don't insert crc (to be debug why crc failed) and print the bin file path.
@@ -14,6 +14,9 @@ com_port = 'COM11'; binFilePath = "{0}\Objects\{0}.bin".format('01bsp_leds') + +print "bin file path: {0}".format(binFilePath) + # 1 = use optical program mode # 0 = use wired 3-wire bus mode boot_mode = 1; @@ -25,7 +28,7 @@ skip_reset = 0; # 1 = insert CRC for payload integrity checking # 0 = do not ...
struct dill_iolist
@@ -318,13 +318,17 @@ DILL_EXPORT int dill_choose( /* Gather/scatter list. */ /******************************************************************************/ -struct iolist { +struct dill_iolist { void *iol_base; size_t iol_len; - struct iolist *iol_next; + struct dill_iolist *iol_next; int iol_rsvd; }; +#if !defined ...
.travis.yml: give make update exit code meaning again
@@ -186,8 +186,8 @@ script: echo -e '+\057 MAKE UPDATE OK'; else echo -e '+\057 MAKE UPDATE FAILED'; false; - fi; - git diff --exit-code + fi + - git diff --exit-code - if [ -n "$CHECKDOCS" ]; then if $make doc-nits; then echo -e '+\057\057 MAKE DOC-NITS OK';
Avoid exception in the convertAltDateFormatToDateFormat method of the DateSelectorFacet module
@@ -219,18 +219,23 @@ AjaxFranceLabs.DateSelectorFacetModule = AjaxFranceLabs.AbstractModule.extend({ } }, + // converts a string date formated like "YYYY-MM-DDT00:00:00Z" into a string formated like "DD/MM/YYYY" convertAltDateFormatToDateFormat : function(altFormatDate) { if(altFormatDate == "") { return ""; } else { ...
Add test to check that max stream uni id limit is enforced
@@ -2333,6 +2333,29 @@ void test_ngtcp2_conn_recv_stream_data(void) { ngtcp2_conn_del(conn); + /* Receive an unidirectional stream which is beyond the limit. */ + setup_default_server(&conn); + conn->callbacks.recv_stream_data = recv_stream_data; + conn->max_remote_stream_id_uni = 0; + conn->user_data = &ud; + + fr.typ...
cr50_fuzz: Fix broken compilation Adds mock implementation of get_current_pcr_digest() for the fuzz target. BRANCH=None TEST=make -j buildfuzztests
@@ -41,6 +41,13 @@ extern "C" void get_storage_seed(void *buf, size_t *len) memset(buf, 0x77, *len); } +extern "C" uint8_t get_current_pcr_digest(const uint8_t bitmask[2], + uint8_t sha256_of_selected_pcr[32]) +{ + memset(sha256_of_selected_pcr, 0, 32); + return 0; +} + extern "C" void run_test(void) { }
Provide default alleles when constructing a new VariantRecord
@@ -3143,7 +3143,7 @@ cdef class VariantRecord(object): alleles = [r.d.allele[i] for i in range(r.n_allele)] alleles[0] = value else: - alleles = [value] + alleles = [value, '<NON_REF>'] self.alleles = alleles self.ptr.rlen = len(value) bcf_sync_end(self)
Commented logging directives for use later.
@@ -9,6 +9,8 @@ CONFIG_ZMK_BLE=y CONFIG_BT_GATT_NOTIFY_MULTIPLE=n CONFIG_BT_DEVICE_NAME="ZMK Keyboard" CONFIG_BT_DEVICE_APPEARANCE=961 +# CONFIG_LOG=y +# CONFIG_KSCAN_LOG_LEVEL_DBG=y # Incresed stack due to settings API usage # CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048
system/uorb: Pass NULL to task_create directly
@@ -180,7 +180,6 @@ static int pubsubtest_thread_entry(int argc, FAR char *argv[]) static int latency_test(bool print) { - FAR char *const args[1]; struct orb_test_medium_s sample; int pubsub_task; int instance = 0; @@ -201,18 +200,11 @@ static int latency_test(bool print) g_pubsubtest_print = print; g_pubsubtest_passe...
Improve malloc calls
@@ -256,7 +256,7 @@ static Value gcdNative(DictuVM *vm, int argCount, Value *args) { return EMPTY_VAL; } - double* as_doubles = (double*)malloc(argCount * sizeof(double)); + double* as_doubles = malloc(sizeof *as_doubles * argCount); for (int i = 0; i < argCount; ++i) { as_doubles[i] = AS_NUMBER(args[i]); if (fabs(roun...
DNS calculates protocol checksum with wrong length
@@ -1308,6 +1308,9 @@ TickType_t xTimeoutTime = pdMS_TO_TICKS( 200 ); pxUDPHeader->usLength = FreeRTOS_htons( lNetLength + ipSIZE_OF_UDP_HEADER ); vFlip_16( pxUDPPacket->xUDPHeader.usSourcePort, pxUDPPacket->xUDPHeader.usDestinationPort ); + /* Important: tell NIC driver how many bytes must be sent */ + pxNetworkBuffer...
filter_throttle: set default value if config value is invalid
@@ -114,6 +114,12 @@ static int configure(struct flb_filter_throttle_ctx *ctx, struct flb_filter_inst flb_plg_error(f_ins, "unable to load configuration"); return -1; } + if (ctx->max_rate <= 1.0) { + ctx->max_rate = strtod(THROTTLE_DEFAULT_RATE, NULL); + } + if (ctx->window_size <= 1) { + ctx->window_size = strtoul(TH...
stm32/mboot: Make _estack an array to avoid compiler warnings. The compiler can warn about out-of-bounds array access if _estack is just a single uint8_t.
// Use this to tag global static data in RAM that doesn't need to be zeroed on startup #define SECTION_NOZERO_BSS __attribute__((section(".nozero_bss"))) -#define ELEM_DATA_START (&_estack) -#define ELEM_DATA_MAX (ELEM_DATA_START + 1024) +#define ELEM_DATA_SIZE (1024) +#define ELEM_DATA_START (&_estack[0]) +#define ELE...
Change log_level for funchook_set_debug_file call funchook_set_debug_file for CFG_LOG_TRACE level
@@ -1337,7 +1337,7 @@ initHook(int attachedFlag) ((g_ismusl == TRUE) && (g_fn.sendto || g_fn.recvfrom))) { funchook = funchook_create(); - if (logLevel(g_log) <= CFG_LOG_DEBUG) { + if (logLevel(g_log) <= CFG_LOG_TRACE) { // TODO: add some mechanism to get the config'd log file path funchook_set_debug_file(DEFAULT_LOG_P...
schema compile BUGFIX handle implemented non-compiled modules When resolving an expression, we need the module actually compiled.
@@ -833,15 +833,20 @@ lys_compile_expr_implement(const struct ly_ctx *ctx, const struct lyxp_expr *exp continue; } - if (!mod->implemented) { /* unimplemented module found */ - if (implement) { - LY_CHECK_RET(lys_implement((struct lys_module *)mod, NULL, unres)); - LY_CHECK_RET(lys_compile((struct lys_module *)mod, &un...
Add post cleanup step for the unstash builder
@@ -215,10 +215,12 @@ pipeline { steps { zip zipFile: 'astcenc.zip', dir: 'upload', archive: false cepeArtifactoryUpload(sourcePattern: 'astcenc.zip') - deleteDir() } } } + always { + deleteDir() + } } }
Use `unsigned` for bit-field variables It is actually non-standard to use `bool` with a bit-field quantifier, and VS 2019 complains about this.
@@ -136,8 +136,8 @@ typedef union mi_page_flags_u { uint16_t value; uint8_t full_aligned; struct { - bool in_full:1; - bool has_aligned:1; + unsigned in_full:1; + unsigned has_aligned:1; bool is_zero; // `true` if the blocks in the free list are zero initialized }; } mi_page_flags_t; @@ -167,10 +167,10 @@ typedef uintp...
Travis, fix script with steps and export variables and config opts.
@@ -331,20 +331,22 @@ script: elif [ "$TEST_ASAN" = "yes" ]; then export CFLAGS="-DNDEBUG -g2 -O3 -fsanitize=address" fi + - | if [ "$TEST_IOS" = "yes" ]; then export AUTOTOOLS_BUILD="$(./config.guess)" export PKG_CONFIG_PATH="$IOS_PREFIX/lib/pkgconfig" source ./contrib/ios/setenv_ios.sh ./contrib/ios/install_openssl.s...
CI: Ignore error if py_debug_backend not installed
from __future__ import unicode_literals from io import open -from tiny_test_fw import Utility -import debug_backend import logging + import pexpect import pygdbmi.gdbcontroller +from tiny_test_fw import Utility + +try: + import debug_backend +except ImportError: + # Exception is ignored so the package is not required f...
OcAudioDump: Free handle buffers after use
@@ -572,6 +572,8 @@ OcAudioDump ( UINTN HdaWidgetCount; UINT32 HdaWidgetIndex; + HandleCount = 0; + // // Get all HDA controller instances. // @@ -582,9 +584,9 @@ OcAudioDump ( &HandleCount, &HandleBuffer ); + DEBUG ((DEBUG_INFO, "OCAU: %u HDA controllers installed - %r\n", (UINT32) HandleCount, Status)); - DEBUG ((DEB...
board/bloog/led.c: Format with clang-format BRANCH=none TEST=none
#define LED_TICKS_PER_CYCLE 10 #define LED_ON_TICKS 5 -const enum ec_led_id supported_led_ids[] = { - EC_LED_ID_LEFT_LED, +const enum ec_led_id supported_led_ids[] = { EC_LED_ID_LEFT_LED, EC_LED_ID_RIGHT_LED, - EC_LED_ID_POWER_LED -}; + EC_LED_ID_POWER_LED }; const int supported_led_ids_count = ARRAY_SIZE(supported_led...
Added upnpdebug to all build with autotools.
@@ -167,15 +167,15 @@ libupnp_la_SOURCES += \ src/api/UpnpStateVarRequest.c \ src/api/UpnpSubscriptionRequest.c \ src/api/UpnpString.c \ - src/api/upnpapi.c + src/api/upnpapi.c \ + src/api/upnpdebug.c if ENABLE_TOOLS libupnp_la_SOURCES += src/api/upnptools.c endif if ENABLE_DEBUG -libupnp_la_SOURCES += src/api/upnpdebu...
build: export missing header files required by hicn_plugin HICN project's hicn_plugin requires vnet header files fib/fib_entry_track.h and udp/udp_encap.h to be included in build-root/install-vpp*-*/vpp/include/vnet Type: fix
@@ -679,6 +679,7 @@ list(APPEND VNET_MULTIARCH_SOURCES list(APPEND VNET_HEADERS udp/udp_error.def udp/udp.h + udp/udp_encap.h udp/udp_packet.h udp/udp_inlines.h udp/udp_local.h @@ -1203,6 +1204,7 @@ list(APPEND VNET_SOURCES list(APPEND VNET_HEADERS fib/fib.h fib/fib_api.h + fib/fib_entry_track.h fib/ip4_fib.h fib/ip4_f...
u3: adds jet dashboard entries for +fein:ob and +fynd:ob
@@ -1389,8 +1389,21 @@ static c3_c* _140_tri_shal_ha[] = { 0 }; -static u3j_core _140_ob_d[] = -{ {} +static u3j_harm _140_ob_fein_a[] = {{".2", u3we_fein_ob}, {}}; +static c3_c* _140_ob_fein_ha[] = { + 0 +}; + +static u3j_harm _140_ob_fynd_a[] = {{".2", u3we_fynd_ob}, {}}; +static c3_c* _140_ob_fynd_ha[] = { + 0 +}; +...
net/oic; if resource handler fails a request, don't honor observer option.
@@ -577,8 +577,7 @@ oc_ri_invoke_coap_entity_handler(struct coap_packet_rx *request, response_buffer.response_length = 0; response_buffer.code = oc_status_code(OC_STATUS_METHOD_NOT_ALLOWED); success = false; - } - else if (!authorized) { + } else if (!authorized) { OC_LOG(ERROR, "ocri: Subject not authorized\n"); /* If...
fix(docs): Only show push workflow builds in link
@@ -54,7 +54,7 @@ Since then, a much simpler procedure of performing a bluetooth reset for split k **New Procedure:** -1. [Open the GitHub `Actions` tab and select the `Build` workflow](https://github.com/zmkfirmware/zmk/actions?query=workflow%3ABuild+branch%3Amain). +1. [Open the GitHub `Actions` tab and select the `B...
fixes false success message if token revocation fails
@@ -27,10 +27,17 @@ oidc_error_t revokeToken(struct oidc_account* account) { account_getClientId(*account), account_getClientSecret(*account)); secFree(data); - if (res != NULL) { + if (res == NULL) { + return oidc_errno; + } + char* error = parseForError(res); + if (error) { + oidc_errno = OIDC_EOIDC; + oidc_seterror(...
remove calcmagnitude
float attitude[3]; -float calcmagnitude(float vector[3]) { - float accmag = 0; - for (uint8_t axis = 0; axis < 3; axis++) { - accmag += vector[axis] * vector[axis]; - } - accmag = 1.0f / Q_rsqrt(accmag); - return accmag; -} - void vectorcopy(float *vector1, float *vector2) { for (int axis = 0; axis < 3; axis++) { vecto...
global-plugins: missing init and deinit
@@ -805,7 +805,9 @@ int kdbGet (KDB * handle, KeySet * ks, Key * parentKey) { case 0: // We don't need an update so let's do nothing keySetName (parentKey, keyName (initialParent)); + elektraGlobalGet (handle, ks, parentKey, POSTGETSTORAGE, INIT); elektraGlobalGet (handle, ks, parentKey, POSTGETSTORAGE, MAXONCE); + ele...
Updated characters limit value
<processor class="solr.TruncateFieldUpdateProcessorFactory"> <str name="fieldRegex">content_hl_.*</str> - <int name="maxLength">10000</int> + <int name="maxLength">100000</int> </processor> <processor class="solr.TrimFieldUpdateProcessorFactory"> <processor class="solr.TruncateFieldUpdateProcessorFactory"> <str name="f...
add test for long string comparison
@@ -72,6 +72,26 @@ Y_UNIT_TEST_SUITE(TCharTraits) { UNIT_ASSERT(T::Equal("\0AAA", "\0BBB")); } + Y_UNIT_TEST(TestLongCompareEqual) { + using T = TCharTraits<char>; + + i8 data1[Max<ui8>()]; + i8 data2[Max<ui8>()]; + + for (ui8 i = 0; i < Max<ui8>(); ++i) { + data1[i] = i; + data2[i] = i; + } + + UNIT_ASSERT(T::Equal(re...
test(ethereum): Add test_001CreateWallet_0013UnloadWalletSuccess
@@ -365,6 +365,28 @@ START_TEST(test_001CreateWallet_0012CreateOnetimeWalletWithLoadExistedWallet) } END_TEST +START_TEST(test_001CreateWallet_0013UnloadWalletSuccess) +{ + BSINT32 rtnVal; + BoatEthWalletConfig wallet = get_ethereum_wallet_settings(); + extern BoatIotSdkContext g_boat_iot_sdk_context; + wallet.prikeyCt...
Write only valid simple descriptors to database
@@ -9175,7 +9175,7 @@ void DeRestPluginPrivate::nodeEvent(const deCONZ::NodeEvent &event) QDataStream stream(&data, QIODevice::WriteOnly); stream.setByteOrder(QDataStream::LittleEndian); sd.writeToStream(stream); - if (!data.isEmpty()) + if (!data.isEmpty() && sd.deviceId() != 0xffff) { pushZdpDescriptorDb(event.node()...
Fix openvr warning;
@@ -59,8 +59,8 @@ static void getTransform(unsigned int device, mat4 transform) { static bool isController(TrackedDeviceIndex_t id) { return state.system->IsTrackedDeviceConnected(id) && - state.system->GetTrackedDeviceClass(id) == ETrackedDeviceClass_TrackedDeviceClass_Controller || - state.system->GetTrackedDeviceCla...
dockerfile: bump to 0.14.0
@@ -2,9 +2,9 @@ FROM gcr.io/google-containers/debian-base-amd64:0.3.1 as builder # Fluent Bit version ENV FLB_MAJOR 0 -ENV FLB_MINOR 13 +ENV FLB_MINOR 14 ENV FLB_PATCH 0 -ENV FLB_VERSION 0.13.0 +ENV FLB_VERSION 0.14.0 ENV DEBIAN_FRONTEND noninteractive
dev-tools/mpi4py: bump to v3.0.2
%define pname mpi4py Name: %{python_prefix}-%{pname}-%{compiler_family}-%{mpi_family}%{PROJ_DELIM} -Version: 3.0.1 +Version: 3.0.2 Release: 1%{?dist} Summary: Python bindings for the Message Passing Interface (MPI) standard. License: BSD-3-Clause
test/lightbar.c: Format with clang-format BRANCH=none TEST=none
@@ -20,9 +20,8 @@ static int get_seq(void) /* Get the state */ memset(&resp, 0, sizeof(resp)); params.cmd = LIGHTBAR_CMD_GET_SEQ; - rv = test_send_host_command(EC_CMD_LIGHTBAR_CMD, 0, - &params, sizeof(params), - &resp, sizeof(resp)); + rv = test_send_host_command(EC_CMD_LIGHTBAR_CMD, 0, &params, + sizeof(params), &res...
Valgrind: Add suppression for `libuv` binding test
fun:exit fun:(below main) } +{ + Binary: `testio_uv`, OS: Debian Sid, Type: Unitialized Bytes + Memcheck:Param + epoll_ctl(event) + ... + fun:elektraIoTestSuite + fun:main +} +
Iteration should be immutable.
@@ -72,7 +72,7 @@ static void GenerateRandomly( generatedPairs.insert({firstIdx, secondIdx}); } } - for (auto& pair : generatedPairs) { + for (const auto& pair : generatedPairs) { result->push_back(TPair(pair.first, pair.second, 1)); } }
docs: add wake stub example link to deep-sleep-stub.rst
@@ -115,3 +115,12 @@ CRC Check For Wake Stubs .. note:: When the `CONFIG_ESP_SYSTEM_ALLOW_RTC_FAST_MEM_AS_HEAP` option is enabled, all the RTC fast memory except the wake stubs area is added to the heap. + +Example +------- + +.. only:: SOC_RTC_FAST_MEM_SUPPORTED + +ESP-IDF provides an example to show how to implement ...
Fix incorrect conf loading value for MIDI clock
@@ -2630,7 +2630,7 @@ staticni void tui_load_prefs(Tui *t) { case Confopt_midi_beat_clock: { bool enabled; if (conf_read_boolish(ez.value, &enabled)) { - t->ged.midi_bclock = true; + t->ged.midi_bclock = enabled; touched |= TOUCHFLAG(Confopt_midi_beat_clock); } break;
Build and install an import library on mingw
@@ -31,6 +31,7 @@ LIBDIR?=$(PREFIX)/lib JANET_BUILD?="\"$(shell git log --pretty=format:'%h' -n 1 2> /dev/null || echo local)\"" CLIBS=-lm -lpthread JANET_TARGET=build/janet +JANET_IMPORT_LIB=build/janet.lib JANET_LIBRARY=build/libjanet.so JANET_STATIC_LIBRARY=build/libjanet.a JANET_PATH?=$(LIBDIR)/janet @@ -80,7 +81,7...
Remove trailing semicolons from netif IF's
@@ -42,7 +42,7 @@ extern "C" { .if_desc = "ap", \ .route_prio = 10, \ .bridge_info = NULL \ - }; + } #endif #define ESP_NETIF_INHERENT_DEFAULT_ETH() \ @@ -56,7 +56,7 @@ extern "C" { .if_desc = "eth", \ .route_prio = 50, \ .bridge_info = NULL \ - }; + } #define ESP_NETIF_INHERENT_DEFAULT_PPP() \ { \ @@ -69,7 +69,7 @@ ex...
power/cometlake-discrete.c: Format with clang-format BRANCH=none TEST=none
@@ -217,7 +217,9 @@ void chipset_force_shutdown(enum chipset_shutdown_reason reason) shutdown_s5_rails(); } -void chipset_handle_espi_reset_assert(void) {} +void chipset_handle_espi_reset_assert(void) +{ +} enum power_state chipset_force_g3(void) { @@ -383,7 +385,9 @@ enum power_state power_handle_state(enum power_stat...
[numerics] add NM_DENSE case in NM_zentry
@@ -433,6 +433,11 @@ void NM_zentry(NumericsMatrix* M, int i, int j, double val) { switch (M->storageType) { + case NM_DENSE: + { + // column major + M->matrix0[i+j*M->size0] = val; + } case NM_SPARSE: { assert(M->matrix2);
Improve test_process_scan The shell may exec() the last command, but we won't find our test string in the sleep process... Kill shell by sending a signal after scanning
@@ -30,6 +30,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include <sys/types.h> #include <sys/wait.h> #include <unistd.h> +#include <signal.h> #include <yara.h> #include "blob.h" @@ -1744,7 +1745,7 @@ void test_process_scan() if (pid == 0) { /* The string should appear somewhere in the shell's pro...
Deb: install libcjson package in service VM automatically Libcjson package is needed by command monitor of DM, so this should be installed in the target platform.
@@ -70,6 +70,7 @@ def create_acrn_deb(board, scenario, version, build_dir): listcontrol=['Package: acrn-hypervisor\n', 'version: %s \n'% version, + 'Depends: libcjson1\n', 'Section: free \n', 'Priority: optional \n', 'Architecture: amd64 \n',
[examples] remove Model
@@ -98,9 +98,9 @@ int main() // aI->insert(LSDiodeBridge); //****BUILD THE SYSTEM - SP::Model aM(new Model(0, sTf)); - aM->nonSmoothDynamicalSystem()->insertDynamicalSystem(aDS); - aM->nonSmoothDynamicalSystem()->link(aI, aDS); + SP::NonSmoothDynamicalSystem aN(new NonSmoothDynamicalSystem(0, sTf)); + aN->insertDynamic...
[Tools] Remove `scons --test` argument.
@@ -326,12 +326,6 @@ def PrepareBuilding(env, root_directory, has_libcpu=False, remove_components = [ mk_rtconfig(configfn) exit(0) - AddOption('--test', - dest='test', - action='store_true', - default=False, - help='some test feature') - # add comstr option AddOption('--verbose', dest='verbose',
Add a missing check on s->s3->tmp.pkey
@@ -3224,6 +3224,12 @@ static int tls_process_cke_ecdhe(SSL *s, PACKET *pkt) SSL_R_LENGTH_MISMATCH); goto err; } + if (skey == NULL) { + SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_F_TLS_PROCESS_CKE_ECDHE, + SSL_R_MISSING_TMP_ECDH_KEY); + goto err; + } + ckey = EVP_PKEY_new(); if (ckey == NULL || EVP_PKEY_copy_parameters(ck...
If Actor at position codegen
@@ -1898,8 +1898,17 @@ class ScriptBuilder { const falseLabel = this.getNextLabel(); const endLabel = this.getNextLabel(); this._addComment(`If Actor At Position`); - this._addComment("NOT IMPLEMENTED - JUMPING TO FALSE PATH"); - this._jump(falseLabel); + this._actorGetPosition("ACTOR"); + this._rpn() + .ref("^/(ACTOR ...
Fix indexes on real devices
@@ -43,8 +43,13 @@ class DocumentBrowserViewController: UIViewController, UICollectionViewDataSourc return } if FileManager.default.createFile(atPath: script.path, contents: try Data(contentsOf: url), attributes: nil) { - if let index = self.scripts.firstIndex(of: script) { - DocumentBrowserViewController.visible?.coll...
Clean up `.gitignore` file A lot of the auto-generated stuff wasn't really all that useful. A few hand-selected rules should do just as well.
-# Created by https://www.gitignore.io/api/c,c++,cmake - -### C ### -# Object files -*.o -*.ko -*.obj -*.elf - -# Precompiled Headers -*.gch -*.pch - -# Libraries -*.lib -*.a -*.la -*.lo - -# Shared objects (inc. Windows DLLs) -*.dll -*.so -*.so.* -*.dylib - -# Executables -*.exe -*.out -*.app -*.i*86 -*.x86_64 -*.hex ...
hslua-core: mention that `unsafeRunWith` is identical to `runWith`
@@ -129,6 +129,9 @@ runWith l s = runReaderT (unLua s) (LuaEnvironment l) {-# INLINABLE runWith #-} -- | Run the given operation, but crash if any Haskell exceptions occur. +-- +-- This function is identical to 'runWith'; it exists for backwards +-- compatibility. unsafeRunWith :: State -> LuaE e a -> IO a unsafeRunWit...
netkvm: use const qualifier for const string
@@ -555,7 +555,7 @@ InitializeLinkPropertiesConfig(PPARANDIS_ADAPTER pContext) INT32 speed; UINT8 duplexState; - char *MediaDuplexStates[] = + const char *MediaDuplexStates[] = { "unknown", "half",
Fix SAW Patchfile to work with renamed variable
@@ -7,7 +7,7 @@ diff -r -u s2n/crypto/s2n_hmac.c s2n_break/crypto/s2n_hmac.c */ - state->currently_in_hash_block += (4294949760 + size) % state->hash_block_size; + state->currently_in_hash_block += (4294949761 + size) % state->hash_block_size; - state->currently_in_hash_block %= state->block_size; + state->currently_in...
gh-actions: add some clang builds
@@ -77,7 +77,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - version: ["10", "9", "8", "7"] + version: ["10", "8"] env: CC: gcc-${{ matrix.version }} CXX: g++-${{ matrix.version }} @@ -104,6 +104,37 @@ jobs: with: file: ./build/meson-logs/coverage.xml + clang: + runs-on: ubuntu-latest + strategy: + matrix: + vers...
WIP adapting low-level spec to the changes in the code
@@ -132,8 +132,8 @@ let verify_state_machine_elem sm ixt = do { }; // For now axiomitize this is always false and see if we can prove something -let s2n_is_caching_enabled_spec = do { - pconf <- crucible_alloc (llvm_struct "struct.s2n_config"); +let s2n_allowed_to_cache_connection_spec = do { + pconf <- crucible_alloc ...
leap: ensure selected is always an array Fixes
@@ -58,7 +58,7 @@ export class Omnibox extends Component { control(evt) { if (evt.key === 'Escape') { if (this.state.query.length > 0) { - this.setState({ query: '', results: this.initialResults() }); + this.setState({ query: '', results: this.initialResults(), selected: [] }); } else if (this.props.show) { this.props....
sr: SRv6 Path Tracing Sink node behavior Type: feature
#include <vnet/fib/ip6_fib.h> #include <vnet/dpo/dpo.h> #include <vnet/dpo/replicate_dpo.h> +#include <vnet/srv6/sr_pt.h> #include <vppinfra/error.h> #include <vppinfra/elog.h> @@ -1282,6 +1283,8 @@ srv6_tef_behavior (vlib_node_runtime_t *node, vlib_buffer_t *b0, ip6_sr_header_t *srh; ip6_sr_pt_tlv_t *srh_pt_tlv; times...
tools: avoid using directly _write_to_conf from kconfiglib Closes
@@ -349,10 +349,8 @@ def write_cmake(deprecated_options, config, filename): if not isinstance(sym, kconfiglib.Symbol): return - # Note: str_value calculates _write_to_conf, due to - # internal magic in kconfiglib... + if sym.config_string: val = sym.str_value - if sym._write_to_conf: if sym.orig_type in (kconfiglib.BOO...
kbkdf: implement ctx dup operation
@@ -75,6 +75,7 @@ typedef struct { /* Definitions needed for typechecking. */ static OSSL_FUNC_kdf_newctx_fn kbkdf_new; +static OSSL_FUNC_kdf_newctx_fn kbkdf_dup; static OSSL_FUNC_kdf_freectx_fn kbkdf_free; static OSSL_FUNC_kdf_reset_fn kbkdf_reset; static OSSL_FUNC_kdf_derive_fn kbkdf_derive; @@ -149,6 +150,36 @@ stat...
lb: refactor ntohl in lb_conf handler Type: refactor
@@ -48,19 +48,19 @@ vl_api_lb_conf_t_handler { lb_main_t *lbm = &lb_main; vl_api_lb_conf_reply_t * rmp; + u32 sticky_buckets_per_core, flow_timeout; int rv = 0; - if (mp->sticky_buckets_per_core == ~0) { - mp->sticky_buckets_per_core = htonl(lbm->per_cpu_sticky_buckets); - } - if (mp->flow_timeout == ~0) { - mp->flow_t...
clean: update vconn comment After looking at old bug, over voltage is not part of the reason we set Vconn on TCPC before PPC. BRANCH=none TEST=none Commit-Ready: ChromeOS CL Exonerator Bot Tested-by: Will Arthur
@@ -391,8 +391,8 @@ static void set_vconn(int port, int enable) { /* * We always need to tell the TCPC to enable Vconn first, otherwise some - * TCPCs get confused and think the CC line is in over voltage mode and - * immediately disconnects. If there is a PPC, both devices will + * TCPCs get confused when a PPC sets s...
Call nghttp3_conn_set_max_client_streams_bidi when nghttp3_conn is created extend callback is only called when server sends MAX_STREAMS frame. The initial limit must be set explicitly.
@@ -1472,6 +1472,12 @@ int Handler::setup_httpconn() { return -1; } + ngtcp2_transport_params params; + ngtcp2_conn_get_local_transport_params(conn_, &params); + + nghttp3_conn_set_max_client_streams_bidi(httpconn_, + params.initial_max_streams_bidi); + int64_t ctrl_stream_id; rv = ngtcp2_conn_open_uni_stream(conn_, &c...
docs: add info for raspberrypi distro vlc Explains that PREFERRED_PROVIDER_ffmpeg/vlc can be used to select an implementation of ffmpeg or vlc. Also adds information on how vlc mmal_vout plugin could be utilized. As well as how to expose rpidistro-vlc.
@@ -430,3 +430,34 @@ the device tree is properly tweaked. Also, mind the runtime components that take advantage of your RTC device. You can do that by checking what is included/configured in the build system based on the inclusion of `rtc` in `MACHINE_FEATURES`. + +## Raspberry Pi Distro VLC + +To enable Raspberry Pi D...
Declare lz_enter_rr_into_zone() static, it's only used in this file. Pointed out by clang with -Wmissing-prototypes
@@ -518,7 +518,7 @@ local_zone_enter_rr(struct local_zone* z, uint8_t* nm, size_t nmlen, } /** enter data RR into auth zone */ -int +static int lz_enter_rr_into_zone(struct local_zone* z, const char* rrstr) { uint8_t* nm;
posix: retry closing file if interrupted
@@ -152,9 +152,9 @@ static int posix_fileDeref(open_file_t *f) proc_lockSet(&f->lock); if (!--f->refs) { if (f->type != ftUnixSocket) { - // lib_printf("closing file %d.%lld \n", f->oid.port, f->oid.id); - err = proc_close(f->oid, f->status); + while ((err = proc_close(f->oid, f->status)) == -EINTR) ; } + proc_lockDone...
Update: Cycle: Remove module-free imports, these already have been turned into modules and included
@@ -5,9 +5,6 @@ Event selectedEvents[EVENT_SELECTIONS]; //better to be global Concept selectedConcepts[CONCEPT_SELECTIONS]; //too large to be a local array Event derivations[MAX_DERIVATIONS]; -#include "RuleTable.h" //TODO make a module -#include "Decision.h" //TODO make a module - bool popAndForgetConcept(long current...
Forgot to re-enable socket rotation for mod_wsgi-express after validating change.
@@ -324,7 +324,7 @@ WSGIVerboseDebugging '%(verbose_debugging_flag)s' <IfDefine !ONE_PROCESS> WSGIRestrictEmbedded On WSGISocketPrefix %(server_root)s/wsgi -#WSGISocketRotation Off +WSGISocketRotation Off <IfDefine MOD_WSGI_MULTIPROCESS> WSGIDaemonProcess %(host)s:%(port)s \\ display-name='%(daemon_name)s' \\
SpinQuic Explicit ALPN Improvements
@@ -761,7 +761,9 @@ main(int argc, char **argv) Settings.Ports = std::vector<uint16_t>({dstPort}); } TryGetValue(argc, argv, "target", &Settings.ServerName); - TryGetValue(argc, argv, "alpn", &Settings.AlpnPrefix); + if (TryGetValue(argc, argv, "alpn", &Settings.AlpnPrefix)) { + SessionCount = 1; // Default session cou...
wsman-soap: fix possible memory leak Destroy enuminfo in error path to prevent memory leak
@@ -1049,6 +1049,7 @@ wsenum_enumerate_stub(SoapOpH op, ws_serialize_str(epcntx->serializercntx, resp_node, enumInfo->enumId, XML_NS_ENUMERATION, WSENUM_ENUMERATION_CONTEXT, 0); insert_enum_info(soapCntx, enumInfo); + enumInfo = NULL; } DONE: @@ -1057,6 +1058,9 @@ DONE: } ws_destroy_context(epcntx); u_free(status.fault...
apps/bttester: Fix get_attributes infinite loop The entry variable was not updated in some cases.
@@ -1994,6 +1994,8 @@ static void get_attrs(u8_t *data, u16_t len) while (entry) { if (entry->ha_handle_id < start_handle) { + entry = ble_att_svr_find_by_uuid(entry, + uuid_ptr, end_handle); continue; }
u3: treat failed snapshot patch verification as fatal on save, not on boot
@@ -311,7 +311,6 @@ _ce_patch_verify(u3_ce_patch* pat_u) fprintf(stderr, "loom: patch version mismatch: have %u, need %u\r\n", pat_u->con_u->ver_y, u3e_version); - c3_assert(0); return c3n; } @@ -322,12 +321,10 @@ _ce_patch_verify(u3_ce_patch* pat_u) if ( -1 == lseek(pat_u->mem_i, (i_w << (u3a_page + 2)), SEEK_SET) ) {...
[bsp] hifive1 update: default select debug mode and update debug flags
@@ -16,8 +16,8 @@ if CROSS_TOOL == 'gcc': if os.getenv('RTT_EXEC_PATH'): EXEC_PATH = os.getenv('RTT_EXEC_PATH') -#BUILD = 'debug' -BUILD = 'release' +BUILD = 'debug' +#BUILD = 'release' CORE = 'risc-v' MAP_FILE = 'rtthread.map' @@ -37,7 +37,7 @@ if PLATFORM == 'gcc': OBJDUMP = PREFIX + 'objdump' OBJCPY = PREFIX + 'objc...
common/device_state.c: Format with clang-format BRANCH=none TEST=none
static const char *state_desc(enum device_state state) { return state == DEVICE_STATE_ON ? "on" : - state == DEVICE_STATE_OFF ? "off" : "unknown"; + state == DEVICE_STATE_OFF ? "off" : + "unknown"; } enum device_state device_get_state(enum device_type device) @@ -78,6 +79,5 @@ static int command_devices(int argc, char ...
pywasm3 audio example improvements for Windows
@@ -72,7 +72,7 @@ if __name__ == '__main__': # buffer buff += data if len(buff) > buff_sz*1024: - #print('+', end='', flush=True) + print('+', end='', flush=True) q.put(buff) buff = b'' buff_sz = 64 @@ -85,11 +85,12 @@ if __name__ == '__main__': wasm_start = rt.find_function("_start") try: wasm_start() - q.put(buff) + ...
trace: add trace header when dumping
@@ -199,6 +199,10 @@ static int trace_cmd_dump(int index, int argc, FAR char **argv, changed = notectl_enable(false, notectlfd); } + /* Dump the trace header */ + + fputs("# tracer: nop\n#\n", out); + /* Dump the trace data */ ret = trace_dump(type, out);
OSSL_DECODER_from_bio: Report an unsupported error when there is none When nothing was decoded and there is no error on the stack report something. Fixes
@@ -87,9 +87,10 @@ int OSSL_DECODER_from_bio(OSSL_DECODER_CTX *ctx, BIO *in) const char *input_structure = ctx->input_structure != NULL ? ctx->input_structure : ""; - if (BIO_eof(in) == 0 /* Prevent spurious decoding error */) + if (BIO_eof(in) == 0 || ERR_peek_error() == 0) + /* Prevent spurious decoding error */ ERR_...
zuse: add parsers for ip addresses Parses into +address:eyre.
:: (gte i.b 224) == + :: +ipa: parse ip address + :: + ++ ipa + ;~(pose (stag %ipv4 ip4) (stag %ipv6 ip6)) + :: +ip4: parse ipv4 address + :: + ++ ip4 + =+ byt=(ape:ag ted:ab) + (bass 256 ;~(plug byt (stun [3 3] ;~(pfix dot byt)))) + :: +ip6: parse ipv6 address + :: + ++ ip6 + %+ bass 0x1.0000 + %+ sear + |= hexts=(lis...
kdb: add dots at end of short help text
@@ -86,13 +86,13 @@ Cmdline::Cmdline (int argc, char ** argv, Command * command) { option o = { "load", no_argument, nullptr, 'f' }; long_options.push_back (o); - helpText += "-l --load Load plugin even if system/elektra is available\n"; + helpText += "-l --load Load plugin even if system/elektra is available.\n"; } if...
CI: Set `MAKE` environment variable to avoid build error Recently, `C:\Strawberry\c\bin/gmake.exe` has been used in Windows platform. It is one of Perl platform in Windows (http://strawberryperl.com) and its make command (`gmake`) will fail to compile Ruby extension. To ensure using `make` command in msys/MinGW, this P...
@@ -105,4 +105,4 @@ jobs: v1-windows-${{ matrix.ruby-version }}-{{ checksum rmagick.gemspec }} - name: Build and test with Rake run: | - cmd.exe /D /S /C "SET PATH=D:\ImageMagick;%PATH% & bundle install --path=vendor/bundle --retry 3 & bundle exec rake" + cmd.exe /D /S /C "SET MAKE=make & SET PATH=D:\ImageMagick;%PATH%...
Ignore mismatched close requests in the pq shim during error processing.
@@ -106,6 +106,12 @@ harnessPqScriptRun(const char *function, const VariantList *param, HarnessPq *pa TEST_LOG_FMT(PQ_ERROR_PREFIX ": %s", harnessPqScriptError); harnessPqScriptFail = true; + // Return without error if closing the connection and an error is currently being thrown. Errors outside of the pq shim can + //...
ini: also del oldSectionKey
@@ -1284,7 +1284,6 @@ static int iniWriteKeySet (FILE * fh, Key * parentKey, KeySet * returned, IniPlu sectionKey = keyNew (keyString (parentMeta), KEY_END); if (!keyIsBelow (oldSectionKey, sectionKey)) { - removeSectionKey = 1; if (keyIsBelow (parentKey, sectionKey)) { char * name = getIniName (parentKey, sectionKey);...
More tileconfig/tilerelease guards for spr bf8/hf8 via stack
@@ -2046,6 +2046,11 @@ void libxsmm_generator_gemm_amx_kernel( libxsmm_generated_code* io_ge /* Adjust descriptor to perform GEMM with BF16 inputs and F32 output */ if ((bf8_gemm_via_stack_alloc_tensors > 0) || (hf8_gemm_via_stack_alloc_tensors > 0) ) { + if (!( (((LIBXSMM_GEMM_FLAG_NO_RESET_TILECONFIG & l_xgemm_desc->...
set PACKAGE_VERSION so it gets substituted in cglm.pc.in by cmake otherwise it ends up being an empty string and the installed pc has a bogus line: Version:
@@ -152,6 +152,7 @@ set(prefix ${CMAKE_INSTALL_PREFIX}) set(exec_prefix ${CMAKE_INSTALL_PREFIX}) set(includedir "\${prefix}/${CMAKE_INSTALL_INCLUDEDIR}") set(libdir "\${prefix}/${CMAKE_INSTALL_LIBDIR}") +set(PACKAGE_VERSION "${PROJECT_VERSION}") configure_file(${CMAKE_CURRENT_LIST_DIR}/cglm.pc.in ${CMAKE_BINARY_DIR}/cg...
add SD0::IO to red_pitaya.xml
<set param="PCW::USB0::RESET::ENABLE" value="1" /> <set param="PCW::USB0::RESET::IO" value="MIO 48" /> <set param="PCW::SD0::PERIPHERAL::ENABLE" value="1" /> + <set param="PCW::SD0::SD0::IO" value="MIO 40 .. 45" /> <set param="PCW::SD0::GRP_CD::ENABLE" value="1" /> <set param="PCW::SD0::GRP_WP::ENABLE" value="1" /> <se...