message
stringlengths
6
474
diff
stringlengths
8
5.22k
nimble/ll: Fix sca hci command parsing
@@ -1619,7 +1619,7 @@ ble_ll_conn_req_peer_sca(const uint8_t *cmdbuf, uint8_t len, const struct ble_hci_le_request_peer_sca_cp *params = (const void *)cmdbuf; struct ble_ll_conn_sm *connsm; - connsm = ble_ll_conn_find_active_conn(params->conn_handle); + connsm = ble_ll_conn_find_active_conn(le16toh(params->conn_handle)...
Added keymap update to encoder docs
@@ -203,7 +203,7 @@ Further documentation on behaviors and bindings is forthcoming, but a summary of ### Encoders -EC11 encoder support can be added to your board or shield by adding the appropriate lines to your board/shield's configuration (.conf), device tree (.dtsi), and overlay (.overlay) files. +EC11 encoder supp...
Fix +has:in in hall
~/ %hall-action-create |= {nom/name des/cord typ/security} ^+ ..ta-action - ?. (~(has in stories) nom) + ?. (~(has by stories) nom) %^ impact nom %new :* [[[our.bol nom] ~] ~ ~] des :: ~/ %hall-action-design |= {nom/name cof/config} - ?. (~(has in stories) nom) + ?. (~(has by stories) nom) (impact nom %new cof) (ta-evi...
custom_calyptia: update documentation for pipeline_id config.
@@ -392,7 +392,7 @@ static struct flb_config_map config_map[] = { { FLB_CONFIG_MAP_STR, "pipeline_id", NULL, 0, FLB_TRUE, offsetof(struct calyptia, pipeline_id), - "Custom machine_id to be used when registering agent" + "Pipeline ID for reporting to calyptia cloud." }, #endif /* FLB_HAVE_CHUNK_TRACE */
Add peak_rss_mb metrics
@@ -192,13 +192,18 @@ static void printSummary(honggfuzz_t* hfuzz) { uint64_t guardNb = ATOMIC_GET(hfuzz->feedback.feedbackMap->guardNb); uint64_t branch_percent_cov = guardNb ? ((100 * ATOMIC_GET(hfuzz->linux.hwCnts.softCntEdge)) / guardNb) : 0; + struct rusage usage; + if (getrusage(RUSAGE_CHILDREN, &usage)){ + PLOG_...
Overflow cases done
@@ -176,7 +176,6 @@ static Fraction_type fraction_operator_divide(Fraction_type self, Fraction_type double d1 = fraction_operator_double(self); double d2 = fraction_operator_double(other); Fraction_type f1 = fraction_construct_from_double(d1/d2); - Assert( 0 ); return f1; } } @@ -192,7 +191,6 @@ static Fraction_type fr...
Attempts multi-os compilation
language: c # Compiler selection +os: + - linux + - osx + compiler: - - clang - gcc + - clang + +addons: + apt: + packages: + - fftw3 + - fftw3-dev + - pkg-config + - cmake + - libgsl0-dev + - swig + - python3-numpy + # Installs system level dependencies before_install: - - sudo apt-get update -qq - - sudo apt-get inst...
Refactor macro-spanning ifs in ssl_client.c
@@ -376,9 +376,11 @@ static int ssl_write_client_hello_cipher_suites( /* * Add TLS_EMPTY_RENEGOTIATION_INFO_SCSV */ + int renegotiating = 0; #if defined(MBEDTLS_SSL_RENEGOTIATION) - if( ssl->renego_status == MBEDTLS_SSL_INITIAL_HANDSHAKE ) + renegotiating = ( ssl->renego_status != MBEDTLS_SSL_INITIAL_HANDSHAKE ); #endi...
ARMv8: adding switch case for PSCI boot protocol
@@ -115,12 +115,10 @@ arch_init(uint32_t magic, void *pointer, uintptr_t stack) { global = &global_temp; memset(&global->locks, 0, sizeof(global->locks)); - // initialize the core id - my_core_id = sysreg_get_cpu_id(); - switch (magic) { case MULTIBOOT2_BOOTLOADER_MAGIC: { + my_core_id = 0; struct multiboot_header *mbh...
filter: adjust cio api call
@@ -144,7 +144,8 @@ void flb_filter_do(struct flb_input_chunk *ic, out_buf, out_size); /* Point back the 'data' pointer to the new address */ bytes = out_size; - data = cio_chunk_get_content(ic->chunk, &cur_size); + ret = cio_chunk_get_content(ic->chunk, + data, &cur_size); data += content_size; flb_free(out_buf); }
examples/bind: additional length check to avoid SIGBUF
@@ -98,6 +98,10 @@ diff -Nur ORIG.bind-9.13.5-W1/bin/named/main.c bind-9.13.5-W1/bin/named/main.c + close(nfd); + continue; + } ++ if (rbuf < 1) { ++ close(nfd); ++ continue; ++ } + + /* It's a response, so set QR bit to 1 */ + uint8_t qr = rbuf[0] | 0x80;
examples/openssl: disable psk code for openssl-1.1 in client
@@ -497,7 +497,7 @@ int LLVMFuzzerInitialize(int* argc, char*** argv) { SSL_CTX_set_verify(ctx, SSL_VERIFY_PEER, NULL); SSL_CTX_set_verify_depth(ctx, 10); -#if !defined(HF_SSL_IS_LIBRESSL) +#if !defined(HF_SSL_IS_LIBRESSL) && !defined(HF_SSL_IS_OPENSSL_GE_1_1) SSL_CTX_set_psk_client_callback(ctx, psk_callback); ret = S...
tests: internal: fuzzer: remove test message
@@ -10,7 +10,6 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size){ /* target the conversion of raw msgpack to json */ flb_sds_t record; record = flb_msgpack_raw_to_json_sds(data, size); - printf("=> %s\n", record); flb_sds_destroy(record); return 0;
Recognize newer Zhaoxin/Centaur cpus as Nehalem
@@ -1631,7 +1631,9 @@ int get_cpuname(void){ case 0x6: return CPUTYPE_NANO; break; - + case 0x7: + return CPUTYPE_NEHALEM; + break; } return CPUTYPE_VIAC3; } @@ -2285,6 +2287,9 @@ int get_coretype(void){ case 0x6: return CORE_NANO; break; + case 0x7: + return CORE_NEHALEM; + break; } return CORE_VIAC3; }
tests: vcl: add missing host stack echo test Type: test
@@ -450,6 +450,14 @@ class VCLThruHostStackEcho(VCLTestCase): self.thru_host_stack_tear_down() super(VCLThruHostStackEcho, self).tearDown() + def test_vcl_thru_host_stack_echo(self): + """ run VCL IPv4 thru host stack echo test """ + + self.thru_host_stack_test("vcl_test_server", + self.server_args, + "vcl_test_client"...
vlib: avoid crash if fill_free_list returns 0 buffers
@@ -304,7 +304,8 @@ vlib_buffer_alloc_from_free_list (vlib_main_t * vm, if (PREDICT_FALSE (len < n_buffers)) { bm->cb.vlib_buffer_fill_free_list_cb (vm, fl, n_buffers); - len = vec_len (fl->buffers); + if (PREDICT_FALSE ((len = vec_len (fl->buffers)) == 0)) + return 0; /* even if fill free list didn't manage to refill ...
{AH} add comment that level is not computed and should not be used, fixes
@@ -2446,7 +2446,8 @@ cdef class PileupRead: return self._indel property level: - """the level of the read in the "viewer" mode""" + """the level of the read in the "viewer" mode. Note that this value + is currently not computed.""" def __get__(self): return self._level
Add steering safety check for cr-v
@@ -61,7 +61,7 @@ int safety_tx_hook(CAN_FIFOMailBox_TypeDef *to_send, int hardwired) { } // STEER: safety check - if ((to_send->RIR>>21) == 0xE4) { + if ((to_send->RIR>>21) == 0xE4 || (to_send->RIR>>21) == 0x194) { if (controls_allowed) { to_send->RDLR &= 0xFFFFFFFF; } else {
VERSION bump to version 0.8.31
@@ -28,7 +28,7 @@ set(CMAKE_C_FLAGS_DEBUG "-g -O0") # set version set(LIBNETCONF2_MAJOR_VERSION 0) set(LIBNETCONF2_MINOR_VERSION 8) -set(LIBNETCONF2_MICRO_VERSION 30) +set(LIBNETCONF2_MICRO_VERSION 31) set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION}.${LIBNETCONF2_MICRO_VERSION}) set(LI...
declare gpio as uint8_t in sdr-transceiver.c
volatile uint64_t *rx_data, *tx_data; volatile uint32_t *rx_freq, *tx_freq; -volatile uint16_t *gpio, *rx_rate, *rx_cntr, *tx_rate, *tx_cntr; -volatile uint8_t *rx_rst, *rx_sync, *tx_rst, *tx_sync; +volatile uint16_t *rx_rate, *rx_cntr, *tx_rate, *tx_cntr; +volatile uint8_t *gpio, *rx_rst, *rx_sync, *tx_rst, *tx_sync; ...
Fix commit s390x build breakage
@@ -42,14 +42,14 @@ static int s390x_aes_gcm_setiv(PROV_GCM_CTX *ctx, const unsigned char *iv, actx->plat.s390x.areslen = 0; actx->plat.s390x.kreslen = 0; - if (ivlen == AES_GCM_IV_DEFAULT_SIZE) { + if (ivlen == GCM_IV_DEFAULT_SIZE) { memcpy(&kma->j0, iv, ivlen); kma->j0.w[3] = 1; kma->cv.w = 1; } else { unsigned long ...
Fix compilation and logical or warning Related PR:
@@ -4818,7 +4818,7 @@ void DeRestPluginPrivate::addSensorNode(const deCONZ::Node *node, const deCONZ:: case COMMISSIONING_CLUSTER_ID: { - if (modelId == QLatin1String("ZYCT-202" || modelId == QLatin1String("ZLL-NonColorController") && i->endpoint() != 0x01) + if ((modelId == QLatin1String("ZYCT-202") || modelId == QLat...
Add fixed image sizes
@@ -3049,8 +3049,8 @@ VOID PhProcessImageListInitialization( PhImageListItemType = PhCreateObjectType(L"ImageListItem", 0, PhpImageListItemDeleteProcedure); - PhProcessLargeImageList = ImageList_Create(PhLargeIconSize.X, PhLargeIconSize.Y, ILC_MASK | ILC_COLOR32, 100, 100); - PhProcessSmallImageList = ImageList_Create(...
components/bt: fixed the invalid workqueue number for BTU thread in Bluedroid There should be only one workqueue for BTU task. The queue length for the second workqueue of BTU can be uninitialized and caused memory overflow and corruption. Closes
#define BTU_TASK_STACK_SIZE (BT_BTU_TASK_STACK_SIZE + BT_TASK_EXTRA_STACK_SIZE) #define BTU_TASK_PRIO (BT_TASK_MAX_PRIORITIES - 5) #define BTU_TASK_NAME "BTU_TASK" -#define BTU_TASK_WORKQUEUE_NUM (2) +#define BTU_TASK_WORKQUEUE_NUM (1) #define BTU_TASK_WORKQUEUE0_LEN (0) hash_map_t *btu_general_alarm_hash_map;
fix he-lpbk interleave pattern command line help
@@ -309,9 +309,9 @@ public: app_.add_option("-d,--delay", he_delay_, "Enables random delay insertion between requests")->default_val(false); // Configure interleave requests in Throughput mode - app_.add_option("--interleave", he_interleave_, "Interleave requests {0, 1, 2} in Throughput mode \ - Request value:0-Rd,Wr,R...
Add proc.cpu_perc which reports a floating point % of 1 core
@@ -712,6 +712,7 @@ doProcMetric(enum metric_t type, long long measurement) { switch (type) { case PROC_CPU: + { { event_field_t fields[] = { PROC_FIELD(g_cfg.procname), @@ -722,6 +723,28 @@ doProcMetric(enum metric_t type, long long measurement) }; event_t e = INT_EVENT("proc.cpu", measurement, DELTA, fields); sendEve...
Ensure we initialize dns resolver conditions and mutexes before they're used. This should address some possible Mutex reinitialization warnings when calling fast_forward_client() early on.
@@ -1467,6 +1467,9 @@ initializer (void) { parsing_spinner->processed = &(logs->processed); parsing_spinner->filename = &(logs->filename); + /* init reverse lookup thread */ + gdns_init (); + /* init random number generator */ srand (getpid ()); init_pre_storage (logs); @@ -1617,8 +1620,6 @@ main (int argc, char **argv...
add ifmtarg package
@@ -42,7 +42,8 @@ tlmgr install \ xspace \ xifthen \ helvetic \ - ulem + ulem \ + ifmtarg # Keep no backups (not required, simply makes cache bigger) tlmgr option -- autobackup 0
Fix typos in quick-controls.h
// This extensions provides a set a pages, where each page contains up to 8 controls. // Those controls are param_id, and they are meant to be mapped onto a physical controller. -// We chose 8 because this what most controllers offers, and it is more or less a standard. +// We chose 8 because this what most controllers...
Make test_nsalloc_long_attr_prefix() robust vs allocation pattern changes
@@ -10765,29 +10765,9 @@ START_TEST(test_nsalloc_long_attr_prefix) "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789AZ" }; int i; -#define MAX_ALLOC_COUNT 15 - int repeated = 0; +#define MAX_ALLOC_COUNT 40 for (i = 0; i < MAX_ALLOC_COUNT; i++) { - /* Repeat some counts to flush out cached allocations */ -...
iOS: remove keys because now they not produced into Info.plist
@@ -61,8 +61,6 @@ iphone: #info_plist_data: # LSApplicationQueriesSchemes: ['scheme1', 'scheme2'] # NSAppTransportSecurity: - # NSAllowsArbitraryLoads: true - # NSAllowsArbitraryLoadsInWebContent: true # NSExceptionDomains: # domain1.com: # NSIncludesSubdomains: true
corrects reference-counting in _boothack_doom()
@@ -410,7 +410,7 @@ _boothack_doom(void) } else if ( 0 != u3_Host.ops_u.fak_c ) { u3_noun fak = u3i_string(u3_Host.ops_u.fak_c); - u3_noun whu = u3dc("slaw", 'p', fak); + u3_noun whu = u3dc("slaw", 'p', u3k(fak)); if ( u3_nul == whu ) { fprintf(stderr, "boot: malformed -F ship %s\r\n", u3_Host.ops_u.fak_c);
docker: use python3, swig 4.0 on debian sid
@@ -49,12 +49,12 @@ RUN apt-get update && apt-get -y install \ ninja-build \ npm \ pkg-config \ - python3.7-dev \ + python3-dev \ python3-pip \ ronn \ ruby2.5-dev \ sloccount \ - swig3.0 \ + swig4.0 \ systemd \ tclcl-dev \ valgrind \
bindings/kotlin: fixed next release notes
@@ -174,13 +174,14 @@ you up-to-date with the multi-language support provided by Elektra. ### Kotlin - Added new JNA subproject which builds an Elektra extension library for Kotlin _(@mandoway & @Gratla)_ -- Added get(), getOrNull(), getOrDefault(), getOrElse() extension with type inference for primitive types _(@mando...
temporary fix to avoid micropython locking up on subsequent runs with unicorn
@@ -198,6 +198,14 @@ namespace pimoroni { gpio_set_function(pin::X, GPIO_FUNC_SIO); gpio_set_dir(pin::X, GPIO_IN); gpio_pull_up(pin::X); gpio_set_function(pin::Y, GPIO_FUNC_SIO); gpio_set_dir(pin::Y, GPIO_IN); gpio_pull_up(pin::Y); + // todo: shouldn't need to do this if things were cleaned up properly but without + //...
edit diff BUGFIX merging create into delete One must be careful in case there were default values because then they were in-use and value must be compared with the default one. Actually, the deleted node value has no meaning at all.
@@ -2022,6 +2022,7 @@ sr_diff_merge_create(struct lyd_node *diff_match, enum edit_op cur_op, int cur_o { sr_error_info_t *err_info = NULL; struct lyd_node *child; + const struct lys_node_leaf *sleaf; int ret; switch (cur_op) { @@ -2030,19 +2031,33 @@ sr_diff_merge_create(struct lyd_node *diff_match, enum edit_op cur_op...
When deprecated symbols are removed, ensure liblegacy has WHIRLPOOL The legacy module implements WHIRLPOOL, so we must ensure it has the full functionality, even when libcrypto stops exporting the symbols.
@@ -17,13 +17,21 @@ IF[{- !$disabled{asm} -}] ENDIF ENDIF -SOURCE[../../libcrypto]=wp_dgst.c $WPASM - # Implementations are now spread across several libraries, so the defines # need to be applied to all affected libraries and modules. -DEFINE[../../libcrypto]=$WPDEF DEFINE[../../providers/libimplementations.a]=$WPDEF ...
tests: policer test check unformat return values Keep coverity happy by checking the return value of unformat calls. Type: test
@@ -30,10 +30,12 @@ policer_test (vlib_main_t *vm, unformat_input_t *input, policer_t *pol; vnet_policer_main_t *pm = &vnet_policer_main; - unformat (input, "index %d", &policer_index); /* policer to use */ - unformat (input, "rate %u", &rate_kbps); /* rate to send at in kbps */ - unformat (input, "burst %u", &burst); ...
Fix use of TOS in BSd sockets.
@@ -182,8 +182,8 @@ int picoquic_socket_set_ecn_options(SOCKET_TYPE sd, int af, int * recv_set, int else { #if defined(IP_TOS) { - unsigned int ecn = 2; - /* Request setting ECN_1 in outgoing packets */ + unsigned int ecn = 1; + /* Request setting ECN_0 in outgoing packets */ if (setsockopt(sd, IPPROTO_IP, IP_TOS, &ecn...
Update README to document minimal console
# Console -There are two versions of this library; - * full - contains actual implemetation - * stub - has stubs for the API +There are three versions of this library; + * minimal - contains an implementation which allows for output, optional + input, supports UART and RTT, and has support for `newtmgr` protocol. + * f...
doc: update intro link to project roadmap Instead of linking to a specific doc on projectacrn.org, update to just link to the area on projectacrn.org/#resources where the roadmap doc can be found. Also remove mention of 2020 to keep it generic so it won't need updating in 2021.
@@ -23,11 +23,12 @@ partitioning hypervisors. The ACRN hypervisor architecture partitions the system into different functional domains, with carefully selected user VM sharing optimizations for IoT and embedded devices. -ACRN Open Source Roadmap 2020 -***************************** +ACRN Open Source Roadmap +***********...
Add missing ksceUsbdGetEndpointId NID
@@ -5467,6 +5467,7 @@ modules: ksceUsbdUnregisterDriver: 0x216F108D ksceUsbdSuspendPhase2: 0xD7AA730D ksceUsbdGetDescriptor: 0xBC3EF82B + ksceUsbdGetEndpointId: 0x1CDBFF9F ksceUsbdControlTransfer: 0x2E05660F SceUsbSerial: nid: 0xF8D9930F
travis: remove -fsanitize=address,undefined from clang-3.8 flags We already have them on the clang-10 build, so they're not adding anything, and they make the build *very* slow.
@@ -56,7 +56,6 @@ jobs: env: - C_COMPILER=clang-3.8 - CXX_COMPILER=clang++-3.8 - - COMPILER_FLAGS='-fsanitize=address,undefined' - DIAGNOSTIC_FLAGS='-Weverything -Werror -Wno-c++98-compat-pedantic -Wno-newline-eof' - ARCH_FLAGS='-mavx2' addons:
in_tail: use new CFL hashing interface
#include "win32.h" #endif -#include <xxhash.h> +#include <cfl/cfl.h> static inline void consume_bytes(char *buf, int bytes, int length) { @@ -77,7 +77,7 @@ static int stat_to_hash_bits(struct flb_tail_config *ctx, struct stat *st, len = snprintf(tmp, sizeof(tmp) - 1, "%" PRIu64 ":%" PRIu64, st_dev, st->st_ino); - *out_...
BugID:17633002:modyfied the amebaz_dev board OTA partion
@@ -22,7 +22,7 @@ const hal_logic_partition_t hal_partitions[] = .partition_owner = HAL_FLASH_EMBEDDED, .partition_description = "Application", .partition_start_addr = 0xB000, - .partition_length = 0xF2000, //568k bytes + .partition_length = 0xF2000, //968k bytes .partition_options = PAR_OPT_READ_EN | PAR_OPT_WRITE_EN,...
Do not dump (binary) meta for special files.
#include <gdb.h> #include <virtio.h> -void print_tuple_noparents(buffer b, tuple z) +// copied from print_tuple() +void print_root(buffer b, tuple z) { table t = valueof(z); boolean sub = false; @@ -15,14 +16,13 @@ void print_tuple_noparents(buffer b, tuple z) push_character(b, ' '); } bprintf(b, "%b:", symbol_string((...
Return an immutable tuple instead
(case (length ,results) 0 nil 1 (,results 0) - ,results)))) + (tuple ;,results))))) (defmacro -> "Threading macro. Inserts x as the second value in the first form
links: unread count positioned at top of item Fixes
@@ -11,12 +11,12 @@ export class ChannelsItem extends Component { : 'pointer hover-bg-gray5 hover-bg-gray1-d'; const unseenCount = props.unseenCount > 0 - ? <span className="dib white bg-gray3 bg-gray2-d fw6 br1" style={{ padding: '1px 5px' }}>{props.unseenCount}</span> + ? <span className="dib white bg-gray3 bg-gray2-...
don't show Freeze asset on the menu for Maya 2016 or earlier since it relies on features added in maya 2016.5
@@ -771,6 +771,8 @@ houdiniEngineCreateUI() -imageOverlayLabel "BA" -annotation "Tear off a copy of the asset's current output nodes" -command "houdiniEngine_bakeSelectedAssets"; + int $intVersion = $mayaVersion; + if($intVersion > 2016) { menuItem -label "Freeze Asset" -imageOverlayLabel "BA" -version $mayaVersion @@ ...
Add make to BuildRequires
@@ -40,7 +40,7 @@ Requires: perl-CGI Requires: %{name}-initramfs-%{_arch} = %{version}-%{release} Conflicts: warewulf < 3 BuildRequires: autoconf -BuildRequires: automake +BuildRequires: automake, make BuildRequires: which BuildRequires: warewulf-common%{PROJ_DELIM} BuildRequires: libselinux-devel, libacl-devel, libatt...
Release v3.4.276
#define MAT_VERSION_HPP // WARNING: DO NOT MODIFY THIS FILE! // This file has been automatically generated, manual changes will be lost. -#define BUILD_VERSION_STR "3.4.269.1" -#define BUILD_VERSION 3,4,269,1 +#define BUILD_VERSION_STR "3.4.276.1" +#define BUILD_VERSION 3,4,276,1 #ifndef RESOURCE_COMPILER_INVOKED #incl...
bin: write signal type on signal handler event
@@ -196,11 +196,27 @@ static void flb_banner() printf("%sCopyright (C) Treasure Data%s\n\n", ANSI_BOLD ANSI_YELLOW, ANSI_RESET); } +#define flb_print_signal(X) case X: \ + write (STDERR_FILENO, #X ")\n" , sizeof(#X ")\n")-1); \ + break; static void flb_signal_handler(int signal) { - write(STDERR_FILENO, "[engine] caugh...
docs: add nimble mesh to the doxygen search path
@@ -790,7 +790,8 @@ WARN_LOGFILE = # Note: If this tag is empty the current directory is searched. INPUT = kernel/os \ - sys/console/full + sys/console/full \ + net/nimble/host/mesh/include/mesh # This tag can be used to specify the character encoding of the source files # that doxygen parses. Internally doxygen uses t...
viofs-svc: add few more errno translations.
@@ -286,9 +286,21 @@ static NTSTATUS VirtFsFuseRequest(HANDLE Device, LPVOID InBuffer, case -EBADF: Status = STATUS_OBJECT_NAME_INVALID; break; + case -ENOMEM: + Status = STATUS_INSUFFICIENT_RESOURCES; + break; case -EINVAL: Status = STATUS_INVALID_PARAMETER; break; + case -ENAMETOOLONG: + Status = STATUS_NAME_TOO_LONG...
Fix : recursive_replace_bool for first level boolean properties
@@ -363,7 +363,7 @@ def update_plist_procedure info_plist_data = $app_config["iphone"]["info_plist_data"] if info_plist_data.kind_of?(Hash) info_plist_data.each do |key, value| - recursive_replace_bool(value) + value = recursive_replace_bool(value) recursive_merge_hash(hash, key, value) end end
fix build by using sudo $(xmake)
@@ -22,14 +22,14 @@ function main(argv) os.exec("xmake f --cc=gcc --cxx=g++") os.exec("xmake m buildtest") if os.host() ~= "windows" then - os.exec("sudo xmake install") - os.exec("sudo xmake uninstall") + os.exec("sudo \"$(xmake)\" install") + os.exec("sudo \"$(xmake)\" uninstall") end os.exec("xmake f --cc=clang --cx...
Add dedent to core. Makes longstrings easier to use - can be combined with comptime for overhead free long strings.
(if (not= i len) (array/push ret (slicer ind i))) ret) +(defn dedent + "Remove indentation after concatenating the arguments. Works by removing + leading whitespace, and then removing that same pattern of whitepsace after + new lines." + [& xs] + (def x (string ;xs)) + (def first-letter (find-index (fn [c] (and (not= c...
tools/webui: add colon to namespaces, so they are only shown once
@@ -18,7 +18,7 @@ import TreeView from "../../containers/ConnectedTreeView"; import TreeSearch from "../../containers/ConnectedTreeSearch"; import InstanceError from "../InstanceError.jsx"; -const NAMESPACES = ["user", "system", "spec", "dir"]; +const NAMESPACES = ["user:", "system:", "spec:", "dir:"]; // create tree s...
It's sys/socket.h OR ws2tcpip.h, not MAYBE AND.
@@ -193,9 +193,7 @@ check_include_file (ws2tcpip.h HAVE_WS2TCPIP_H) if (HAVE_SOCKET_H) list (APPEND CMAKE_EXTRA_INCLUDE_FILES sys/socket.h) -endif() - -if (HAVE_WS2TCPIP_H) +elseif (HAVE_WS2TCPIP_H) list (APPEND CMAKE_EXTRA_INCLUDE_FILES ws2tcpip.h) endif()
Ruby adding missing IO methods
@@ -84,6 +84,9 @@ extern void init_rhoext_Signature(); extern void Init_encdb(void); extern void ruby_init_prelude(void); extern void Init_transcode(void); +extern void Init_IO(void); +extern void Init_wait(void); +extern void Init_nonblock(void); //RhoSupport extension @@ -196,6 +199,11 @@ void RhoRubyStart() #endif r...
docs - update postgis package name
@@ -422,7 +422,7 @@ export POSTGIS_GDAL_ENABLED_DRIVERS=DISABLE_ALL</codeblock> <p>After PostGIS support has been removed from all databases in the Greenplum Database system, you can remove the PostGIS extension package. For example this <codeph>gppkg</codeph> command removes the PostGIS extension package. - <codeblock...
x509: fix a dangling pointer If object was pointer was passed and an error occured the object was freed & the pointer returned. Fix this to NULL out the caller's pointer before returning. Fixes
@@ -131,8 +131,10 @@ X509 *d2i_X509(X509 **a, const unsigned char **in, long len) /* Only cache the extensions if the cert object was passed in */ if (cert != NULL && a != NULL) { /* then cert == *a */ if (!ossl_x509v3_cache_extensions(cert)) { - if (free_on_error) + if (free_on_error) { + *a = NULL; X509_free(cert); +...
docs(grid) fix missing article
The Grid layout is a subset of [CSS Flexbox](https://css-tricks.com/snippets/css/complete-guide-grid/). -It can arrange items into 2D "table" that has rows or columns (tracks). The item can span through multiple columns or rows. +It can arrange items into a 2D "table" that has rows or columns (tracks). The item can spa...
Removing the fix me comment for bound in tuplesort_mk. This is fixed with the commit
-/* - * GPDB_83_MERGE_FIXME: PostgreSQL 8.3 added "bounded" sort support to - * tuplesort.c. It has not been ported to tuplesort_mk.c yet - */ /*------------------------------------------------------------------------- * * tuplesort.c
README tweaks and buildbot badge test.
@@ -20,6 +20,8 @@ list to ask questions, github issues aren't seen by everyone! * libevent, https://www.monkey.org/~provos/libevent/ (libevent-dev) * libseccomp, (optional, experimental, linux) - enables process restrictions for better security. Tested only on x86_64 architectures. +* openssl, (optional) - enables TLS ...
test/powerdemo.c: Format with clang-format BRANCH=none TEST=none
@@ -23,7 +23,6 @@ static volatile enum { POWER_STATE_DOWN2 /* Assert output for 2ms */ } state = POWER_STATE_IDLE; - /* Stops the timer. */ static void __stop_timer(void) { @@ -33,7 +32,6 @@ static void __stop_timer(void) LM4_TIMER_ICR(7) = LM4_TIMER_RIS(7); } - /* Starts the timer with the specified delay. If the time...
SOVERSION bump to version 2.23.1
@@ -66,7 +66,7 @@ set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_ # set version of the library set(LIBYANG_MAJOR_SOVERSION 2) set(LIBYANG_MINOR_SOVERSION 23) -set(LIBYANG_MICRO_SOVERSION 0) +set(LIBYANG_MICRO_SOVERSION 1) set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG_M...
test-suite: python from latest mvapich2 version requires disablement of on-demand connection management
@@ -26,6 +26,11 @@ module load $python_module_prefix-mpi4py flunk "helloworld.py does not exist" fi + if [ "$LMOD_FAMILY_MPI" == "mvapich2" ];then + export MV2_SUPPORT_DPM=1 + fi + + run_mpi_binary "${_python} helloworld.py" $ARGS $NODES $TASKS assert_success }
Initialize the env eagerly. This prevents potential allocations when getting the PATH environment variable.
@@ -25,10 +25,13 @@ const Zenvp = (0 : byte#) var envduped : bool = false var environ : byte#[:] +const __init__ = { + envinit() +} + const getenv = {name var n, env - envinit() for envp : environ if envp != Zenvp env = cstrconvp(envp) @@ -51,8 +54,6 @@ const getenvv = {name, default const setenv = {name, val var n, e,...
chip/ish/system_state_subsys.c: Format with clang-format BRANCH=none TEST=none
#define CPRINTF(format, args...) #endif - /* the following "define"s and structures are from host driver * and they are slightly modified for look&feel purpose. */ @@ -126,8 +125,7 @@ static int ss_subsys_resume(void) /* * Restore VNN power request from before suspend. */ - if (IS_ENABLED(CHIP_FAMILY_ISH5) && - cached_...
zephyr/shim/src/mkbp_event.c: Format with clang-format BRANCH=none TEST=none
const struct mkbp_event_source *zephyr_find_mkbp_event_source(uint8_t type) { - STRUCT_SECTION_FOREACH(mkbp_event_source, evtsrc) { + STRUCT_SECTION_FOREACH(mkbp_event_source, evtsrc) + { if (evtsrc->event_type == type) return evtsrc; }
config-tools: assign a fixed address to log area start address Reserve the log area in [VIRT_ACPI_NVS_ADDR + 0xB0000, 0x7FFF0000)
@@ -59,8 +59,12 @@ PCI_VUART_VBAR1_SIZE = 4 * SIZE_K # Constants for vmsix bar VMSIX_VBAR_SIZE = 4 * SIZE_K -# Constants for tpm2 log area minimum length -LOG_AREA_MIN_LEN = 256 * SIZE_K +# Constant for VIRT_ACPI_NVS_ADDR +""" +VIRT_ACPI_NVS_ADDR needs to be consistant with the layout of hypervisor\arch\x86\guest\ve820...
link: adjust sigil size to 38
@@ -65,7 +65,7 @@ export class LinkItem extends Component { <div className="w-100 pv3 flex bg-white bg-gray0-d"> <Sigil ship={"~" + props.ship} - size={36} + size={38} color={"#" + props.color} classes={(member ? "mix-blend-diff" : "")} />
keep return_map_fd opened in h2o_socket_ebpf_setup()
@@ -1613,6 +1613,8 @@ static int ebpf_map_delete(int fd, const void *key) return syscall(__NR_bpf, BPF_MAP_DELETE_ELEM, &attr, sizeof(attr)); } +static int return_map_fd = -1; // for h2o_return + int h2o_socket_ebpf_setup(void) { int success = 0; @@ -1645,9 +1647,9 @@ int h2o_socket_ebpf_setup(void) h2o_perror("BPF_OBJ...
Add USE_WINDOWS_PROC define to Visual Studio project.
</PropertyGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> <ClCompile> - <PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;CUCKOO_MODULE;HASH_MODULE;DOTNET_MODULE;HAVE_LIBCRYPTO</PreprocessorDefinitions> + <PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;CUCKOO_MODULE;HASH_MODULE;DO...
Apply the coding rule in things_sss_manager.c Each variable shall be declared in the new line.
@@ -185,7 +185,8 @@ static int things_set_cert_chains(void) return ret; } - int cnt = 0, i = 0; + int cnt = 0; + int i = 0; uint8_t *ptr = buf; // Artik Certificate Order : rootCA -> subCA -> deviceCA for (i = 0; i < buflen - 2; i++) {
Use TS functions to parse tsconfig
@@ -81,8 +81,18 @@ class TypeScriptLanguageServiceHost { getCompilationSettings(currentDirectory) { if (currentDirectory) { - const tsconfig = path.join(currentDirectory, 'tsconfig.json'); - return node_require(tsconfig); + const configFileName = ts.findConfigFile( + currentDirectory, + ts.sys.fileExists, + 'tsconfig.j...
h2olog/quic: support the cc_congestion probe
@@ -105,6 +105,7 @@ struct quic_event_t { u64 largest_acked; u64 bytes_acked; u64 inflight; + u64 max_lost_pn; u32 cwnd; u8 first_octet; u32 newly_acked; @@ -303,6 +304,26 @@ int trace_cc_ack_received(struct pt_regs *ctx) { return 0; } +int trace_cc_congestion(struct pt_regs *ctx) { + void *pos = NULL; + struct quic_ev...
OpenCanopy: Update to use existing utility method
@@ -1914,12 +1914,7 @@ BootPickerViewInitialize ( mBootPickerVersionLabel.Obj.OffsetY = 0; } else { DestLen = AsciiStrLen (GuiContext->PickerContext->TitleSuffix); - UString = AllocateZeroPool ((DestLen + 1) * sizeof(CHAR16)); - if (UString == NULL) { - return EFI_OUT_OF_RESOURCES; - } - - AsciiStrToUnicodeStrS (GuiCon...
interface: change Read text to Dismiss
@@ -100,7 +100,7 @@ function NotificationWrapper(props: { </StatelessAsyncAction> {!props.archived && ( <StatelessAsyncAction name={time.toString()} onClick={onArchive} backgroundColor="transparent"> - Read + Dismiss </StatelessAsyncAction> )} </Row>
documentation: here satellite/map url
@@ -780,7 +780,7 @@ The DataSource constructor uses the following URL patterns. It requires a minimu let url = "http://your-url-with-placeholders-see-below" let tileDataSource = NTHTTPTileDataSource(minZoom: 0, maxZoom: 18, baseURL: url) - let layer = NTRasterTileLayer(tileDataSource) + let layer = NTRasterTileLayer(da...
apps/examples: CONFIG_QENCODER was renamed to CONFIG_SENSORS_QENCODER: update README.txt
@@ -1565,7 +1565,7 @@ examples/qencoder This test depends on these specific QE/NSH configurations settings (your specific PWM settings might require additional settings). - CONFIG_QENCODER - Enables quadrature encoder support (upper-half driver). + CONFIG_SENSORS_QENCODER - Enables quadrature encoder support (upper-hal...
peview: Fix symbol tab crash
@@ -2299,8 +2299,11 @@ NTSTATUS PeDumpFileSymbols( PPH_STRING dbghelpPath; PPH_STRING symsrvPath; - dbghelpPath = PvFindDbghelpPath(FALSE); - symsrvPath = PvFindDbghelpPath(TRUE); + if (!(dbghelpPath = PvFindDbghelpPath(FALSE))) + return 1; + if (!(symsrvPath = PvFindDbghelpPath(TRUE))) + return 1; + dbghelpHandle = Lo...
libneat-devel requires libuv-devel, due to include of uv.h in neat.h.
@@ -35,6 +35,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build Summary: NEAT (Core API Development Files) Group: Development/Libraries Requires: %{name} = %{version}-%{release} +Requires: libuv-devel %description devel The NEAT project wants to achieve a complete redesign of the way in which
news: fix release notes format
@@ -48,7 +48,7 @@ If you rely on specific behaviour of Elektra's Keynames and have already taken t ### Debian Packaging with CPack -We are now using CPack to generate modular Debian and Ubuntu packages. This simplifies the packaging process and solves problems where a PR that introduces changes to installed files, fail...
Use non-hardcoded endpoint while writing attributes The corresponding switch sensors should have been manually pinned to endpoint 1, so using `sensor->fingerPrint().endpoint` should be fine
@@ -16373,13 +16373,13 @@ void DeRestPluginPrivate::delayedFastEnddeviceProbe(const deCONZ::NodeEvent *eve DBG_Printf(DBG_INFO, "Write Aqara switch 0x%016llX mode attribute 0x0009 = 1\n", sensor->address().ext()); deCONZ::ZclAttribute attr(0x0009, deCONZ::Zcl8BitUint, QLatin1String("mode"), deCONZ::ZclReadWrite, false)...
explicitly name the path for the autoconf-generated files in .gitignore.
Makefile Makefile.in autom4te.cache -aclocal.m4 config.guess config.sub +config.status configure depcomp install-sh ltmain.sh missing test-driver +libtool compile +stamp-h1 stamp-h2 -IlmBaseConfigInternal.h -OpenEXRConfigInternal.h +IlmBase/config/IlmBaseConfigInternal.h +IlmBase/HalfTest/HalfTest +IlmBase/IexTest/IexT...
BugID:18002569:Rm bt_controller in mk
@@ -25,12 +25,6 @@ $(NAME)_SOURCES-y := host/uuid.c \ $(NAME)_SOURCES-y += host/hci_ecc.c -bt_controller?=0 -ifeq ($(bt_controller), 1) -$(NAME)_COMPONENTS-y += platform.mcu.nrf52xxx.bt_controller -GLOBAL_DEFINES-y += CONFIG_BT_CTLR -endif - ifeq ($(hci_h4),1) $(NAME)_SOURCES-y += hci_driver/h4.c endif
Minor tweaks to billboard culling
@@ -438,6 +438,11 @@ namespace carto { // Billboard is attached to another billboard, calculate position before sorting cglib::vec3<double> baseBillboardPos = baseBillboardDrawData->getPos(); + cglib::vec3<float> baseBillboardTranslate = cglib::vec3<float>::convert(baseBillboardPos - viewState.getCameraPos()); + if (cg...
Update BOOTLOADER_UPDATES.md Fix spacing and sizing. Delete accidental duplication.
DAPLink has the ability to bundle the bootloader firmware with the interface firmware and apply a bootloader update on the first boot of the interface. This allows bootloader updates to occur at the same time as interface updates and without any special instructions for the user. -### Enabling bootloader updates +## En...
BugID:19810330:fix rtl8710bn wdg
@@ -18,7 +18,7 @@ static bool is_enable_handler = FALSE; void watchdog_irq_handler(uint32_t callback_id) { printf("watchdog_irq_handler, callback_id: %d\n", callback_id); -// sys_reset( ) ; + sys_reset( ) ; } void watchdog_irq_set(void) {
Add comment on exiting early from mbedtls_gcm_update().
@@ -454,7 +454,9 @@ int mbedtls_gcm_update( mbedtls_gcm_context *ctx, *output_length = input_length; /* Exit early if input_length==0 so that we don't do any pointer arithmetic - * on a potentially null pointer. */ + * on a potentially null pointer. + * Returning early also means that the last partial block of AD remai...
[CI] Build kernel headers before building C userspace programs
@@ -63,6 +63,8 @@ jobs: python3 scripts/install_dependencies.py # Build userspace headers as the kernel depends on file_manager definitions python3 scripts/build_userspace_headers.py + # Build kernel headers as userspace programs depend on these + python3 scripts/build_kernel_headers.py # Rust libc depends on libutils,...
Add adjust_to_sea_pressure function Now describe_pressure() gives meaningful insights if you set the altitude
@@ -22,6 +22,9 @@ TEMPERATURE_OFFSET = 3 BRIGHTNESS = 0.8 +# change this to adjust pressure based on your altitude +altitude = 0 + # light the LED red if the gas reading is less than 50% GAS_ALERT = 0.5 @@ -46,6 +49,18 @@ def graphic_equaliser(): led.set_rgb(0, ms, 0) +def adjust_to_sea_pressure(pressure_hpa, temperatu...
Fix REPL issues
@@ -161,13 +161,14 @@ def __runREPL__(repl_name="", namespace={}, banner=None): sys.excepthook = excepthook sys.displayhook = displayhook - __namespace__ = {"clear":ClearREPL()} - __namespace__.update(namespace) - __repl_namespace__[repl_name] = __namespace__ + __repl_namespace__[repl_name] = {"clear":ClearREPL(), "__n...
added warning: If hcxdumptool captured your password from WiFi traffic, you should check all your devices immediately!
@@ -4709,6 +4709,8 @@ printf("%s %s (C) %s ZeroBeat\n" "--poweroff : once hcxdumptool terminated, power off system\n" "--help : show this help\n" "--version : show version\n" + "\n" + "If hcxdumptool captured your password from WiFi traffic, you should check all your devices immediately!\n" "\n", eigenname, VERSION, VE...
[persistence] Do not decrease refcount after allocating an element.
@@ -10392,11 +10392,11 @@ item_apply_list_elem_insert(hash_item *it, const int nelems, const int index, ret = do_list_elem_insert(it, index, elem, NULL); if (ret != ENGINE_SUCCESS) { + do_list_elem_free(elem); logger->log(EXTENSION_LOG_WARNING, NULL, "item_apply_list_elem_insert failed." " key=%.*s index=%d code=%d\n",...
CMake do not differenciate between source- and header-files
@@ -16,7 +16,7 @@ include_directories(src/) include_directories(${SDL2_INCLUDE_DIR}) include_directories(${SDL2_MIXER_INCLUDE_DIR}) -set(SOURCE_FILES +add_executable(nothing src/color.c src/game.c src/game/camera.c @@ -58,9 +58,6 @@ set(SOURCE_FILES src/str.c src/ui/history.c src/game/level/region.c -) - -set(HEADER_FI...
apps/mediarecorder: modify filepath from ramfs to tmp. Since ramfs is not uesd, correct it.
@@ -116,11 +116,11 @@ public: mr.create(); mr.setObserver(shared_from_this()); if (test == TEST_PCM) { - filePath = "/ramfs/record.pcm"; + filePath = "/tmp/record.pcm"; mr.setDataSource(unique_ptr<FileOutputDataSource>( new FileOutputDataSource(2, 16000, AUDIO_FORMAT_TYPE_S16_LE, filePath))); } else if (test == TEST_OP...
Fix memory leak in handle_layer_shell_surface
@@ -325,12 +325,6 @@ void handle_layer_shell_surface(struct wl_listener *listener, void *data) { layer_surface->client_pending.margin.bottom, layer_surface->client_pending.margin.left); - struct sway_layer_surface *sway_layer = - calloc(1, sizeof(struct sway_layer_surface)); - if (!sway_layer) { - return; - } - if (!la...