message
stringlengths
6
474
diff
stringlengths
8
5.22k
BugID:17401892: fix the problem of MISSING_BREAK
@@ -180,7 +180,7 @@ LoRaMacFCntHandlerStatus_t LoRaMacGetFCntDown( AddressIdentifier_t addrID, FType break; case MULTICAST_2_ADDR: *fCntID = MC_FCNT_DOWN_2; - previousDown = FCntHandlerNvmCtx.FCntList.McFCntDown3; + previousDown = FCntHandlerNvmCtx.FCntList.McFCntDown2; break; case MULTICAST_3_ADDR: *fCntID = MC_FCNT_D...
update 1 and add 3 lines
@@ -40,8 +40,11 @@ The distros that AppScope supports all require the use of `/tmp`, `/dev/shm`, an AppScope cannot: -- Unload the libscope library. +- Unload the libscope library, once loaded. - Unattach/detach from a running process, once attached. +- Instrument static executables that are not written in Go. +- Instr...
[tests] skip mod-secdownload HMAC-SHA1,HMAC-SHA256 skip mod-secdownload.t HMAC-SHA1, HMAC-SHA256 tests if crypto algorithms are not available (e.g. lighttpd build without openssl)
@@ -80,6 +80,15 @@ $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 404 } ]; ok($tf->handle_http($t) == 0, 'secdownload - timeout (md5)'); + +if (!$tf->has_feature("SSL support")) { + + for (1..4) { ok(1, "secdownload (hmac-sha1) (skipped) - (missing SSL support)"); } + for (1..5) { ok(1, "secdownlo...
Switched back to using parcel (oops)
"productName": "GB Studio", "version": "0.1.0", "description": "Visual retro game maker", - "main": "src/index.js", + "main": "dist/index.js", "scripts": { "start": "run-s parcel:dev start:watch", "start:watch": "run-p parcel:watch start:electron",
don't print sensitive data
@@ -761,11 +761,7 @@ curl_slist *CURLNetRequest::CURLHolder::set_options(const char *method, const St } #endif - RAWTRACE3( "Setting auth data for request: Method: %d, user: %s, password: %s", - authSettings.method, - authSettings.user.c_str(), - authSettings.password.c_str() ); - + RAWTRACE1( "Setting auth data for re...
update scons script: strict SrcRemove() match rule.
@@ -743,10 +743,19 @@ def SrcRemove(src, remove): for item in src: if type(item) == type('str'): - if os.path.basename(item) in remove: + item_str = item + else: + item_str = item.rstr() + + if os.path.isabs(item_str): + item_str = os.path.relpath(item_str, GetCurrentDir()) + + if type(remove) == type('str'): + if item...
misc: configurator: bugfix: incorrect path split Board files with multiple dots in their name may be splitted incorrectly, and os.path.basename assumes os.name == posix in pyodide environment. This workaround partially fixes this problem whenever the the board filename does not contain '\' character.
@@ -4,6 +4,7 @@ __package__ = 'configurator.pyodide' import json import logging import re +import os from copy import deepcopy import elementpath @@ -114,15 +115,20 @@ def get_cat_info(soup): def get_board_info(board, path): soup = BeautifulSoup(board, 'xml') + # Workaround: The pyodide thinks it runs under os.name == ...
buffers: improve buffer init performance
@@ -489,6 +489,7 @@ vlib_buffer_pool_create (vlib_main_t * vm, u8 index, char *name, vlib_physmem_map_t *m = vlib_physmem_get_map (vm, physmem_map_index); uword start = pointer_to_uword (m->base); uword size = (uword) m->n_pages << m->log2_page_size; + uword i, j; u32 alloc_size, n_alloc_per_page;; vec_validate_aligned...
install ohpc-base-cmopute in to chroot
@@ -3,8 +3,18 @@ provide a minimal \baseOS{} configuration. Next, we add additional components to include resource management client services, \InfiniBand{} drivers, and other additional packages to support the default \OHPC{} environment. This process augments the chroot-based install performed by \texttt{wwmkchroot} ...
Added clip image to MicroPython pico_display docs Updated the text and added clip.jpg to the MicroPython Pico Display docs to help communicate the use of clips.
@@ -176,12 +176,14 @@ picodisplay.text(string,x,y,wrap, scale) ### set_clip -This function defines a rectangular area outside which no drawing actions will take effect. If a drawing action crosses the boundary of the clip then only the pixels inside the clip will be drawn. Note that `clip` does not remove pixels which ...
[catboost] fix non-trivial quantization schema in matrixnet format parsing; [catboost] fix non-trivial quantization schema in matrixnet format parsing; ([arc::mergeid] 54fd778f-df38b1b0-1f6e49e1-f3652fde)
#include <util/generic/algorithm.h> #include <util/generic/hash.h> +#include <util/generic/maybe.h> #include <util/generic/strbuf.h> #include <util/generic/string.h> #include <util/generic/vector.h> #include <util/stream/file.h> #include <util/stream/input.h> +#include <util/stream/labeled.h> +#include <util/string/esc...
Fix open redirect starting with a slash and backslash
@@ -3063,6 +3063,14 @@ static apr_byte_t oidc_validate_post_logout_url(request_rec *r, const char *url, url); oidc_error(r, "%s: %s", *err_str, *err_desc); return FALSE; + } else if ((uri.hostname == NULL) && (strstr(url, "/\\") == url)) { + *err_str = apr_pstrdup(r->pool, "Malformed URL"); + *err_desc = + apr_psprintf...
oc_tls:Add Cloud ciphersuites to default_priority
@@ -139,7 +139,11 @@ static int *ciphers = NULL; #ifdef OC_PKI static int selected_mfg_cred = -1; static int selected_id_cred = -1; +#ifdef OC_CLOUD +static const int default_priority[12] = { +#else /* OC_CLOUD */ static const int default_priority[6] = { +#endif /* !OC_CLOUD */ #else /* OC_PKI */ static const int defau...
Fix include/internal/sockets.h for VMS It needs to include <openssl/opensslconf.h>
* https://www.openssl.org/source/license.html */ - #ifndef OSSL_INTERNAL_SOCKETS_H # define OSSL_INTERNAL_SOCKETS_H # pragma once +# include <openssl/opensslconf.h> + # if defined(OPENSSL_SYS_VXWORKS) || defined(OPENSSL_SYS_UEFI) # define NO_SYS_PARAM_H # endif
hw: mcu: pic32mz2048efg100: Fix SPI baudrate computation The formula described in the comment did not correspond exactly to what is written in the PIC32 FRM. Hence, the derived formula to compute SPIxBRG was wrong.
@@ -180,11 +180,10 @@ hal_spi_config_master(int spi_num, struct hal_spi_settings *psettings) * * Fpb2 * Fsck = ------------------- - * (2 * SPIxBRG) + 1 + * 2 * (SPIxBRG + 1) */ pbclk = MYNEWT_VAL(CLOCK_FREQ) / ((PB2DIV & _PB2DIV_PBDIV_MASK) + 1); - SPIxBRG(spi_num) = - (pbclk - psettings->baudrate) / (2 * psettings->b...
python FEATURE added get_change_tree_next
%newobject Session::get_subtrees; %newobject Session::get_changes_iter; %newobject Session::get_change_next; +%newobject Session::get_change_tree_next; %newobject Session::rpc_send; %newobject Session::action_send; %newobject new_val; %newobject old_val; +%shared_ptr(sysrepo::Tree_Change); +%newobject node; + %shared_p...
BugID:17624007:[protocol]fix printf over range in iotx_http2_api.c
@@ -291,7 +291,7 @@ static int on_data_chunk_recv_callback(nghttp2_session *session, NGHTTP2_DBG("stream user data is not exist\n"); } NGHTTP2_DBG("[INFO] C <----------- S (DATA chunk) stream_id [%d]\n" "%lu bytes\n", stream_id, (unsigned long int)len); - NGHTTP2_DBG("data chunk: %s\n", data); + NGHTTP2_DBG("data chunk...
Added some words about a non-obvious point at the Command Line section
@@ -101,7 +101,7 @@ If you are not quite sure how to use GDB, check :ref:`jtag-debugging-examples-ec Command Line ^^^^^^^^^^^^ -1. To be able start debugging session, the target should be up and running. If not done already, complete steps described under :ref:`jtag-debugging-configuring-esp32-target`. +1. To be able s...
Updating Mac build instructions Fixes
@@ -91,7 +91,7 @@ cmake --build . Open project folder with Visual Studio. If VCPKG has been previously installed and set up like mentioned [above](#VCPKG). Everything will be ready to build. Right after opening project, Visual Studio will read cmake files and generate cache files automatically. -### Linux / Mac +### Li...
Add additional failsafe else statement
@@ -327,8 +327,9 @@ bool CheckTransaction(const CTransaction& tx, CValidationState &state, bool fChe return state.DoS(0, false, REJECT_INVALID, "bad-mempool-txns-asset-reissued-amount-isn't-zero"); } } + } else { + return state.DoS(0, false, REJECT_INVALID, "bad-asset-type-not-any-of-the-main-three"); } - } }
examples/openssl: npn_callback and SSL_CTX_set_short_header_enabled in server.c
@@ -604,6 +604,16 @@ int alpn_callback(SSL* ssl, const unsigned char** out, unsigned char* outlen, return SSL_TLSEXT_ERR_OK; } +static int npn_callback(SSL* ssl, const uint8_t** out, unsigned* out_len, void* arg) +{ + static const uint8_t kProtocols[] = { + 0x01, 'a', 0x02, 'a', 'a', 0x03, 'a', 'a', 'a', + }; + *out = ...
fix _ames_recv_cb() to use new lanes
@@ -366,15 +366,16 @@ _ames_recv_cb(uv_udp_t* wax_u, #if 0 u3z(msg); #else + u3_lane lan_u; struct sockaddr_in* add_u = (struct sockaddr_in *)adr_u; - c3_s por_s = ntohs(add_u->sin_port); - c3_w pip_w = ntohl(add_u->sin_addr.s_addr); + + lan_u.por_s = ntohs(add_u->sin_port); + lan_u.pip_w = ntohl(add_u->sin_addr.s_addr...
DEV: Poll handle empty read parameter and retries
@@ -722,6 +722,11 @@ std::vector<PollItem> DEV_GetPollItems(Device *device) continue; } + if (item->readParameters().front().toMap().empty()) + { + continue; + } + if (item->lastSet().isValid() && item->lastSet().secsTo(now) < item->refreshInterval()) { continue; @@ -779,7 +784,7 @@ void DEV_PollNextStateHandler(Device...
Correct copyright and license in crypto_spe.h
/* - * Copyright (c) 2019-2021, Arm Limited. All rights reserved. + * Copyright The Mbed TLS Contributors + * SPDX-License-Identifier: Apache-2.0 * - * SPDX-License-Identifier: BSD-3-Clause + * Licensed under the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the Li...
twixread mode for radials
@@ -215,6 +215,7 @@ static const char help_str[] = "Read data from Siemens twix (.dat) files."; int main_twixread(int argc, char* argv[argc]) { long adcs = 0; + long radial_lines = -1; bool autoc = false; bool linectr = false; @@ -226,6 +227,7 @@ int main_twixread(int argc, char* argv[argc]) struct opt_s opts[] = { OPT...
Replace "/privateDocuments" by "Documents" on output
@@ -18,8 +18,8 @@ import UIKit var text_ = text #if MAIN + text_ = text_.replacingOccurrences(of: URL(fileURLWithPath: "/private").appendingPathComponent(DocumentBrowserViewController.localContainerURL.path).path, with: "Documents") text_ = text_.replacingOccurrences(of: DocumentBrowserViewController.localContainerURL....
Set video and control sockets only on success Store the video and control sockets only if server_connect_to() returns successfully.
@@ -138,9 +138,10 @@ enable_tunnel_reverse_any_port(struct server *server, // client can listen before starting the server app, so there is no // need to try to connect until the server socket is listening on the // device. - server->server_socket = listen_on_port(port); - if (server->server_socket != SC_INVALID_SOCKET...
Parse "x + 1".
@@ -319,6 +319,13 @@ func (p *parser) parseOperand() (*a.Node, error) { ID0: x, RHS: rhs, }, nil + + case x.IsLiteral(): + p.src = p.src[1:] + return &a.Node{ + Kind: a.KExpr, + ID1: x, + }, nil } id, err := p.parseIdent()
psa_aead_setup: remove redundant tag length check
@@ -49,7 +49,6 @@ static psa_status_t psa_aead_setup( size_t key_bits; const mbedtls_cipher_info_t *cipher_info; mbedtls_cipher_id_t cipher_id; - size_t full_tag_length = 0; ( void ) key_buffer_size; @@ -66,7 +65,6 @@ static psa_status_t psa_aead_setup( #if defined(MBEDTLS_PSA_BUILTIN_ALG_CCM) case PSA_ALG_AEAD_WITH_SH...
esp8266/modmachine: Call ets_event_poll after waiti in machine.idle. Because "waiti 0" may have waited for a while (eg 500ms) and the internal WDT may need to be fed immediately. Fixes issue
@@ -92,6 +92,7 @@ STATIC mp_obj_t machine_idle(void) { uint32_t t = mp_hal_ticks_cpu(); asm("waiti 0"); t = mp_hal_ticks_cpu() - t; + ets_event_poll(); // handle any events after possibly a long wait (eg feed WDT) return MP_OBJ_NEW_SMALL_INT(t); } STATIC MP_DEFINE_CONST_FUN_OBJ_0(machine_idle_obj, machine_idle);
gh-actions: disable xcode 10.3 build This recently started failing due to a configuration issue. If they fix the promblem I'm willing to re-add the build, but TBH it's not really adding much since we also build with older versions of clang.
@@ -379,7 +379,7 @@ jobs: matrix: # https://www.jessesquires.com/blog/2020/01/06/selecting-an-xcode-version-on-github-ci/ # https://github.com/actions/virtual-environments/blob/master/images/macos/macos-10.15-Readme.md#xcode - xcode: ["10.3", "11.4", "11.6_beta", "12_beta"] + xcode: ["11.4", "11.6_beta", "12_beta"] env...
loadgen: use shutdown instead of abort for TCP
@@ -181,7 +181,7 @@ impl Connection { let _ = libc::shutdown(s.as_raw_fd(), libc::SHUT_RDWR); }, Connection::RuntimeUdp(ref s) => s.shutdown(), - Connection::RuntimeTcp(ref s) => s.abort(), + Connection::RuntimeTcp(ref s) => s.shutdown(libc::SHUT_RDWR), } } }
Application.mk: Ooops, forgot to remove some debug hacks before last commit.
@@ -186,10 +186,6 @@ endif PROGLIST := $(addprefix $(PROGPRFX),$(PROGNAME)) PROGOBJ := $(MAINOBJ) -$(warning PROGLIST=$(PROGLIST)) -$(warning MAINOBJ=$(MAINOBJ)) -$(warning OBJS=$(OBJS)) - $(PROGLIST): $(MAINOBJ) $(OBJS) $(Q) $(LD) $(LDELFFLAGS) $(LDLIBPATH) -o $(firstword $(PROGLIST)) $(ARCHCRT0OBJ) $(firstword $(PROG...
YAML CPP: Always require metadata for arrays
@@ -25,61 +25,9 @@ namespace using KeySetPair = pair<KeySet, KeySet>; -/** - * @brief This function checks if `element` is an array element of `parent`. - * - * @pre The key `child` must be below `parent`. - * - * @param parent This parameter specifies a parent key. - * @param keys This variable stores a direct or indi...
BugID: fix windows make otaapp@developerkit failed
@@ -23,7 +23,7 @@ BANK2_APP_OFFSET := 0x89000 GEN_COMMON_BIN_OUTPUT_FILE_SCRIPT:= $(SCRIPTS_PATH)/gen_common_bin_output_file.py gen_standard_images_2boot: - mkdir -p $(OTA_OUTPUT_DIR) + $(MKDIR) -p $(OTA_OUTPUT_DIR) $(QUIET)$(CP) $(MOC_APP_BIN_OUTPUT_FILE) $(MOC_OTA_BIN_OUTPUT_FILE) $(QUIET)$(RM) $(MOC_APP_BIN_OUTPUT_F...
Fix gnu9 modulepath
@@ -110,7 +110,7 @@ prepend-path PATH %{install_path}/bin prepend-path MANPATH %{install_path}/share/man prepend-path INCLUDE %{install_path}/include prepend-path LD_LIBRARY_PATH %{install_path}/lib64 -prepend-path MODULEPATH %{OHPC_MODULEDEPS}/%{compiler_family} +prepend-path MODULEPATH %{OHPC_MODULEDEPS}/gnu%{gnu_maj...
change verify loop from while to for
#include "synchronization.h" #if NUM_CORES > 32 -#define matrix_M 128 -#define matrix_N 128 +#define matrix_M 256 +#define matrix_N 256 #else #define matrix_M (NUM_CORES) #define matrix_N (NUM_CORES) @@ -55,12 +55,10 @@ void init_matrix(int32_t *matrix, uint32_t num_rows, uint32_t num_columns, int32 } int verify_axpy(i...
Move CLIENTHELLO_MSG up in the header We'll be adding a field of this type to struct ssl_st in a subsequent commit, and need the type definition to be in scope already. Also move up the RAW_EXTENSION definition that it depends on.
@@ -622,12 +622,41 @@ typedef struct srp_ctx_st { # endif +#define MAX_COMPRESSIONS_SIZE 255 + struct ssl_comp_st { int id; const char *name; COMP_METHOD *method; }; +typedef struct raw_extension_st { + /* Raw packet data for the extension */ + PACKET data; + /* Set to 1 if the extension is present or 0 otherwise */ + ...
Modify code style & add parameter description
@@ -225,10 +225,7 @@ request_get_pending(esp_mqtt_client_p client, int32_t pkt_id) { /* Try to find a new request which does not have IN_USE flag set */ for (size_t i = 0; i < ESP_CFG_MQTT_MAX_REQUESTS; i++) { if ((client->requests[i].status & MQTT_REQUEST_FLAG_PENDING) - && ( - pkt_id == -1 - || client->requests[i].pa...
nvbios/power/base_clock: don't use a hardcoded rlen
@@ -899,7 +899,7 @@ int envy_bios_parse_power_base_clock(struct envy_bios *bios) { bios_u16(bios, bce->offset + 0x3, &bce->reqSlowdownPower); bce->clock = malloc(bc->secount * sizeof(uint16_t)); for (j = 0; j < bc->secount; j++) - bios_u16(bios, bce->offset + 0x5 + j, &bce->clock[j]); + bios_u16(bios, bce->offset + bc-...
Add dynamic linker flags for OpenBSD to configure
@@ -90,7 +90,8 @@ case $OS in echo export INST_MAN=$prefix/man/man >> config.mk echo 'const Sys = "OpenBSD"' >> mbld/config.myr echo 'const Linkcmd = ["ld", "-nopie"]' >> mbld/config.myr - echo 'const Dlflags : byte[:][:] = [][:]' >> mbld/config.myr + echo 'const Dlflags = ["-dynamic-linker",' \ + '"/usr/libexec/ld.so"...
BugID:16846667: mcu stm32l4xx_syscall code clean modified: mcu/stm32l4xx_syscall/stm32l4xx_syscall.mk
-NAME := stm32l4xx_cube +NAME := stm32l4xx_syscall HOST_OPENOCD := stm32l4xx $(NAME)_MBINS_TYPE := kernel $(NAME)_COMPONENTS += platform/arch/arm/armv7m -$(NAME)_COMPONENTS += libc rhino hal rhino.vfs digest_algorithm +$(NAME)_COMPONENTS += libc rhino hal rhino.vfs -GLOBAL_DEFINES += CONFIG_AOS_KV_MULTIPTN_MODE -GLOBAL...
options/ansi: Implement missing fopen() flags
@@ -399,28 +399,47 @@ int fileno(FILE *file_base) { return file->fd(); } -FILE *fopen(const char *__restrict filename, const char *__restrict mode) { - int fd; - if(!strcmp(mode, "r") || !strcmp(mode, "rb")) { - if(mlibc::sys_open(filename, __MLIBC_O_RDONLY, &fd)) - return nullptr; - }else if(!strcmp(mode, "re")) { - i...
LISP: group mapping records in map-register message
@@ -2454,7 +2454,7 @@ send_map_register (lisp_cp_main_t * lcm, u8 want_map_notif) u64 nonce = 0; u32 next_index, *to_next; ip_address_t *ms = 0; - mapping_t *records, *r, *g; + mapping_t *records, *r, *group, *k; // TODO: support multiple map servers and do election if (0 == vec_len (lcm->map_servers)) @@ -2481,12 +248...
in_tail: fix missing option 'path_key'
@@ -102,6 +102,14 @@ struct flb_tail_config *flb_tail_config_create(struct flb_input_instance *i_ins, } /* Config: determine whether appending or not */ + ctx->path_key = flb_input_get_property("path_key", i_ins); + if (ctx->path_key != NULL) { + ctx->path_key_len = strlen(ctx->path_key); + } + else { + ctx->path_key_l...
allocate CSR on heap instead of stack
@@ -36,15 +36,23 @@ oc_event_callback_retval_t generate_csr(void *data) { struct csr_callback_params *params = data; size_t device = params->device; - unsigned char csr[4096]; + unsigned char csr = malloc(4096); oc_set_separate_response_buffer(&csr_response); + if (!csr) { + oc_send_separate_response(&csr_response, OC_...
SampleApplication: Update the image create scripts Update the rc.local for User VM, check the echo result and try again if the echo failed.
@@ -156,18 +156,25 @@ function create_uio_config() { local temp_file=$(mktemp /tmp/rc.local.XXXX) cat << EOF > ${temp_file} +#!/bin/bash modprobe uio modprobe uio_pci_generic -for i in {0..3} +for i in {0..2} do bash -c 'echo "1af4 1110" > /sys/bus/pci/drivers/uio_pci_generic/new_id' +if [ $? -eq 0 ]; then + echo "uio ...
OcAcpiLib: Fix RSDP checksum behavior
@@ -693,11 +693,21 @@ AcpiApplyContext ( Table += ALIGN_VALUE (RsdtSize, sizeof (UINT64)); } + // + // Checksum is to be the first 0-19 bytes of RSDP. + // ExtendedChecksum is the entire table, only if newer than ACPI 1.0. + // Context->Rsdp->Checksum = 0; Context->Rsdp->Checksum = CalculateCheckSum8 ( - (UINT8 *) Cont...
Minor fixes Closes
@@ -15106,7 +15106,7 @@ VmaAllocator_T::VmaAllocator_T(const VmaAllocatorCreateInfo* pCreateInfo) : GetBufferImageGranularity(), pCreateInfo->frameInUseCount, false, // explicitBlockSize - false, // linearAlgorithm + 0, // algorithm 0.5f, // priority (0.5 is the default per Vulkan spec) GetMemoryTypeMinAlignment(memTyp...
fleex: update gpio name to latest board revision No functional changes. Update names to BOARD_ID=2 version of the schematics. BRANCH=none TEST=builds
@@ -138,11 +138,11 @@ GPIO(LED_2_CHG_AMBER_L, PIN(C, 4), GPIO_OUT_HIGH) GPIO(KB_BL_PWR_EN, PIN(6, 2), GPIO_OUT_LOW) /* Camera */ -GPIO(WFCAM_VSYNC, PIN(0, 3), GPIO_INPUT) /* TP only */ -GPIO(CAM_SOC_EC_SYNC, PIN(9, 4), GPIO_INPUT) /* Proto: NC WoV pin */ +GPIO(EC_GPIO03, PIN(0, 3), GPIO_INPUT) /* TP only */ +GPIO(EC_IN...
Documentation change only: editorial update to a README.md.
@@ -19,7 +19,7 @@ ExecStart=/usr/sbin/mosquitto -c <absolute path to your home directory>/mosquitt ``` sudo systemctl daemon-reload -sudo systemctl start mosquitto +sudo systemctl restart mosquitto ``` ## Test
changed rca_scan to hit-count-channel
@@ -360,6 +360,8 @@ if(ia->counthit < ib->counthit) return 1; else if(ia->counthit > ib->counthit) return -1; if(ia->count < ib->count) return 1; else if(ia->count > ib->count) return -1; +if(ia->channel < ib->channel) return 1; +else if(ia->channel > ib->channel) return -1; return 0; } /*==============================...
mis: tune high water mark.
@@ -29,7 +29,7 @@ static DEFINE_BITMAP(mis_sampled_cores, NCPU); /* wait for performance counter results over this time interval */ #define MIS_BW_PUNISH_INTERVAL 10 /* FIXME: should not be hard coded */ -#define MIS_PUNISH_HIGH_WATERMARK 0.10 +#define MIS_PUNISH_HIGH_WATERMARK 0.09 #define MIS_PUNISH_LOW_WATERMARK (0....
ble:config.c remove the error code when there is no file in the nvs because it is not an error.
@@ -545,6 +545,9 @@ static void config_parse(nvs_handle_t fp, config_t *config) char *keyname = osi_calloc(keyname_bufsz); int buf_size = get_config_size_from_flash(fp); char *buf = osi_calloc(buf_size); + if(buf_size == 0) { //First use nvs + goto error; + } if (!line || !section || !buf || !keyname) { err_code |= 0x0...
[mod_wstunnel] fix NULL ptr deref fix NULL ptr deref if wstunnel.server configured inside a conditional and not in global scope (thx nicorac) x-ref: "https://redmine.lighttpd.net/boards/2/topics/7600"
@@ -381,7 +381,9 @@ static void mod_wstunnel_patch_connection(server *srv, connection *con, plugin_d if (buffer_is_equal_string(du->key, CONST_STR_LEN("wstunnel.server"))) { PATCH_GW(exts); - /*PATCH_GW(exts_auth);*//*(wstunnel can not act as authorizer)*/ + /*(wstunnel can not act as authorizer, + * but p->conf.exts_a...
Limit __builtin_convertvector workaround to GCC < 9.3. It seems to cause a lot of problems, and the reason it was added in the first place was fixed in GCC 9.3.
but the code needs to be refactored a bit to take advantage. */ # if !defined(SIMDE_NO_CONVERT_VECTOR) && defined(SIMDE_VECTOR_SUBSCRIPT) # if HEDLEY_HAS_BUILTIN(__builtin_convertvector) || HEDLEY_GCC_VERSION_CHECK(9,0,0) +# if HEDLEY_GCC_VERSION_CHECK(9,0,0) && !HEDLEY_GCC_VERSION_CHECK(9,3,0) /* https://gcc.gnu.org/b...
Rework file reference
@@ -12,29 +12,31 @@ extern "C" { /// @page File Reference /// /// This extension provides a way for the host to know about files which are used -/// by the preset, like a wavetable, a sample, ... +/// by the plugin, like a wavetable, a sample, ... /// /// The host can then: /// - collect and save /// - search for missi...
fix esp32 serial error
@@ -180,7 +180,7 @@ Blockly.Arduino.ORDER_NONE = 99; // (...) MISO:[["19","19"]], SCK:[["18","18"]], touch: [["0", "0"], ["2", "2"], ["4", "4"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["27", "27"], ["32", "32"], ["33", "33"]], - serial_select: [["Serial0", "Serial0"], ["Serial1", "Serial1"], ["Serial2"...
eyre: Make %code-changed handling less chatty
== :: ?: ?=(%code-changed -.task) - ~> %slog.[0 leaf+"eyre: code-changed: throwing away old cookies"] + ~> %slog.[0 leaf+"eyre: code-changed: throwing away cookies and sessions"] =. authentication-state.server-state.ax *authentication-state :: =/ event-args [[our eny duct now scry-gate] server-state.ax] =* channel-stat...
Change client package company name
<?xml version="1.0" encoding="utf-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> - <Product Id="2E71C10F-7A48-4F14-B13A-B3FC349037E0" Language="1033" Manufacturer="Greenplum, Inc." Name="Greenplum Clients" Version="__VERSION_PLACEHOLDER__" UpgradeCode="0EE0DD2B-0504-4B60-85E8-604852D07A9F"> + <Product Id="...
Add workaround for Restart process menu recreating the process with our token
@@ -1362,6 +1362,7 @@ BOOLEAN PhUiRestartProcess( NTSTATUS status; BOOLEAN cont = FALSE; HANDLE processHandle = NULL; + HANDLE tokenHandle = NULL; PPH_STRING commandLine; PPH_STRING currentDirectory; @@ -1416,6 +1417,13 @@ BOOLEAN PhUiRestartProcess( PH_AUTO(currentDirectory); + // Open the process token to prevent the...
Add missing SIZE_MAX define for windows
#include "internal/refcount.h" #include "internal/evp_int.h" #include "internal/provider.h" +#include "internal/numbers.h" /* includes SIZE_MAX */ #include "evp_locl.h" static EVP_KEYEXCH *evp_keyexch_new(OSSL_PROVIDER *prov)
ble_mesh: fix not restoring ble mesh cfg value
@@ -538,6 +538,7 @@ static int cfg_set(const char *name) return 0; } + memcpy(&stored_cfg.cfg, &val, sizeof(val)); stored_cfg.valid = true; BT_DBG("Restore configuration state"); return 0;
Add trailing slash: nasm 2.13.02 (from Ubuntu 18.04) does not append slash when processing -I directives
@@ -161,7 +161,7 @@ INCLUDES=\ -I$(SRCDIR)/hyperv/include \ -I$(LWIPDIR)/src/include -AFLAGS+=-I$(ARCHDIR) +AFLAGS+=-I$(ARCHDIR)/ CFLAGS+=$(KERNCFLAGS) -DSTAGE3 -DKERNEL -mcmodel=kernel CFLAGS+=-Wno-address # lwIP build sadness
filename process 0
@@ -155,7 +155,7 @@ def render_draw(beatmap, component, cursor_event, frame_info, img, np_img, pbuff component.scorecounter.add_to_frame(img, cursor_event.event[TIMES]) component.accuracy.add_to_frame(img) component.urbar.add_to_frame(img) - component.cursor_trail.add_to_frame(img, cursor_event.old_x, cursor_event.old_...
fix: Fixed incorrect return values issue
@@ -1442,8 +1442,8 @@ BCHAR *UtilityNative2PKCS(KeypairNative keypair) len = offset_bat; offset = 0; add_TL_withOffset((BoAT_ASN1_CONSTRUCTED | BoAT_ASN1_SEQUENCE), dataHex, &offset, len); // all - outStr = BoatMalloc(offset + strlen(PRIKEY_PKCS_BEGIN) + strlen(PRIKEY_PKCS_END) + 6); - memset(outStr, 0, offset + strlen...
keyboard_8042: ensure key scanning on when keyboard enabled BRANCH=none TEST=Boot Windows in legacy mode and observe keyboard is working. Tested-by: Stefan Reinauer
@@ -692,6 +692,8 @@ static int handle_keyboard_command(uint8_t command, uint8_t *output) case I8042_ENA_KB: update_ctl_ram(0, read_ctl_ram(0) & ~I8042_KBD_DIS); + keystroke_enable(1); + keyboard_clear_buffer(); break; case I8042_READ_OUTPUT_PORT:
dm-hook: check graph-store running
:_ this :_ ~ =/ dms=(list resource) + ?. .^(? (scry:io %gu %graph-store ~)) + ~ %+ skim ~(tap in get-keys:gra) |=([ship name=term] ?=(^ (rush name ;~(pfix (jest 'dm--') (star next))))) |^
Add a check for pcre2 func on init.
@@ -209,6 +209,12 @@ initPayloadExtract() } g_payload_pre->match_data = pcre2_match_data_create_from_pattern(g_payload_pre->re, NULL); + + if (g_payload_pre->match_data == NULL) { + destroyProtEntry(g_payload_pre); + g_payload_pre = NULL; + return; + } } static void
Call Looper.prepareMainLooper() to avoid exception Some devices internally create a Handler when creating an input Surface, causing an exception: > Surface: java.lang.RuntimeException: Can't create handler inside > thread that has not called Looper.prepare() As a workaround, call Looper.prepareMainLooper() beforehand. ...
@@ -7,6 +7,7 @@ import android.media.MediaCodec; import android.media.MediaCodecInfo; import android.media.MediaFormat; import android.os.IBinder; +import android.os.Looper; import android.view.Surface; import java.io.FileDescriptor; @@ -54,6 +55,16 @@ public class ScreenEncoder implements Device.RotationListener { } p...
remove rsa_pkcs1_* from tls13 support list
@@ -2042,26 +2042,6 @@ static inline int mbedtls_ssl_tls13_sig_alg_is_supported( break; #endif /* MBEDTLS_SHA512_C */ #endif /* MBEDTLS_X509_RSASSA_PSS_SUPPORT */ -#if defined(MBEDTLS_PKCS1_V15) && defined(MBEDTLS_RSA_C) - -#if defined(MBEDTLS_SHA256_C) - case MBEDTLS_TLS1_3_SIG_RSA_PKCS1_SHA256: - break; -#endif /* MB...
pack: increase buffer size to format double
@@ -478,7 +478,7 @@ static int msgpack2json(char *buf, int *off, size_t left, case MSGPACK_OBJECT_FLOAT32: case MSGPACK_OBJECT_FLOAT64: { - char temp[32] = {0}; + char temp[512] = {0}; i = snprintf(temp, sizeof(temp)-1, "%.16g", o->via.f64); ret = try_to_write(buf, off, left, temp, i); }
Coverity Resource leaks (RESOURCE_LEAK)
@@ -2008,8 +2008,10 @@ static int kdf_test_init(EVP_TEST *t, const char *name) *kdata->p = OSSL_PARAM_construct_end(); kdf = EVP_KDF_fetch(NULL, name, NULL); - if (kdf == NULL) + if (kdf == NULL) { + OPENSSL_free(kdata); return 0; + } kdata->ctx = EVP_KDF_CTX_new(kdf); EVP_KDF_free(kdf); if (kdata->ctx == NULL) {
Fix IOCell generation for clock and reset to use IOCellKey
@@ -14,6 +14,7 @@ import barstools.iocell.chisel._ import testchipip.{TLTileResetCtrl} import chipyard.clocking._ +import chipyard.iobinders._ /** * A simple reset implementation that punches out reset ports @@ -25,7 +26,7 @@ object GenerateReset { implicit val p = chiptop.p // this needs directionality so generateIOFr...
Update ux_approval_tx_flow naming
@@ -148,23 +148,23 @@ UX_STEP_NOCB(ux_approval_tx_data_warning_step, }); // clang-format on -const ux_flow_step_t *ux_approval_tx_flow_scott[9]; +const ux_flow_step_t *ux_approval_tx_flow_[9]; void ux_approve_tx(bool dataPresent) { int step = 0; - ux_approval_tx_flow_scott[step++] = &ux_approval_tx_1_step; + ux_approva...
chip/mt_scp/rv32i_common/uart.c: Format with clang-format BRANCH=none TEST=none
@@ -31,9 +31,8 @@ void uart_init(void) uart_init_pinmux(); /* Clear FIFO */ - UART_FCR(UARTN) = UART_FCR_ENABLE_FIFO - | UART_FCR_CLEAR_RCVR - | UART_FCR_CLEAR_XMIT; + UART_FCR(UARTN) = UART_FCR_ENABLE_FIFO | UART_FCR_CLEAR_RCVR | + UART_FCR_CLEAR_XMIT; /* Line control: parity none, 8 bit, 1 stop bit */ UART_LCR(UARTN)...
Added parallel to kernel_adjoint
#include <stdbool.h> #include <complex.h> #include <math.h> +#include <omp.h> #include "num/multind.h" #include "num/flpmath.h" @@ -226,13 +227,16 @@ static void kern_adjoint(const linop_data_t* _data, complex float* dst, const co complex float* perm = md_alloc_sameplace(DIMS, perm_dims, CFL_SIZE, dst); md_clear(DIMS, ...
Cleaned up test_psa_crypto_config_no_driver based on review comments Removed comment referencing test driver header path and the inclusion of the test driver directory from the build since it is not required for that test.
@@ -1311,8 +1311,7 @@ component_test_psa_crypto_config_no_driver() { scripts/config.py set MBEDTLS_PSA_CRYPTO_CONFIG scripts/config.py unset MBEDTLS_PSA_CRYPTO_DRIVERS scripts/config.py unset MBEDTLS_USE_PSA_CRYPTO - # Need to define the correct symbol and include the test driver header path in order to build with the ...
tests: Apply the 'return self' pattern for the L2 objects Type: test
@@ -86,6 +86,7 @@ class VppBridgeDomain(VppObject): arp_ufwd=self.arp_ufwd, is_add=1) self._test.registry.register(self, self._test.logger) + return self def remove_vpp_config(self): self._test.vapi.bridge_domain_add_del(bd_id=self.bd_id, is_add=0) @@ -111,6 +112,7 @@ class VppBridgeDomainPort(VppObject): rx_sw_if_inde...
pbio/battery: Improve numerical accuracy. When using millivolts, a moving average divisor of N means that the battery voltage must change by at least N mV to change the average. This scales the voltage to (approximately) microvolts to avoid this problem. Also reduce update time to make the average slightly less slow.
#include <pbdrv/motor.h> // Slow moving average battery voltage. -static int32_t battery_voltage_avg; +static int32_t battery_voltage_avg_scaled; + +// The average battery value is scaled up numerically +// to reduce rounding errors in the moving average. +#define SCALE (1024) // Initializes average to first measuremen...
Fix create vxlan-gpe tunnel local 10::1 remote 20::1 vni 11 (for ipv6)
@@ -1269,6 +1269,7 @@ vxlan_gpe_init (vlib_main_t * vm) ngm->mcast_shared = hash_create_mem (0, sizeof (ip46_address_t), sizeof (mcast_shared_t)); + ngm->vtep6 = hash_create_mem (0, sizeof (ip6_address_t), sizeof (uword)); udp_register_dst_port (vm, UDP_DST_PORT_VXLAN_GPE, vxlan4_gpe_input_node.index, 1 /* is_ip4 */ );...
bipship: add SKU IDs BRANCH=octopus TEST=make buildall -j Tested-by: Henry Sun
@@ -222,12 +222,13 @@ int board_is_convertible(void) /* * Bloog: 33, 34, 35, 36 * Blooguard: 49, 50, 51, 52 - * Bipship: 53, 54 + * Bipship: 53, 54, 55, 56 * Unprovisioned: 255 */ return sku_id == 33 || sku_id == 34 || sku_id == 35 || sku_id == 36 || sku_id == 49 || sku_id == 50 || sku_id == 51 || sku_id == 52 - || sku...
write site.cfg after setting env
@@ -102,6 +102,17 @@ leading scientists and engineers. %setup -q -n %{pname}-%{version} find . -type f -name "*.py" -exec sed -i "s|#!/usr/bin/env python||" {} \; +%build +# OpenHPC compiler/mpi designation +%ohpc_setup_compiler + +%if "%{compiler_family}" != "intel" +module load openblas +module load fftw +%endif + +m...
remove double length include for api version
@@ -67,8 +67,7 @@ AZ_NODISCARD az_result az_iot_hub_client_get_user_name( = az_span_init((uint8_t*)mqtt_user_name, (int32_t)mqtt_user_name_size); int32_t required_length = az_span_size(client->_internal.iot_hub_hostname) - + az_span_size(client->_internal.device_id) + az_span_size(hub_service_api_version) - + (int32_t)...
[mempool] verfity named account tx in parallel
@@ -279,7 +279,7 @@ func (mp *MemPool) put(tx *types.Tx) error { return err } */ - err := mp.validateTx(tx) + err := mp.validateTx(tx, acc) if err != nil && err != types.ErrTxNonceToohigh { return err } @@ -419,6 +419,12 @@ func (mp *MemPool) verifyTx(tx *types.Tx) error { if err != nil { return err } + } else { + acco...
sa: fix debug log
@@ -240,7 +240,7 @@ vtx_update_result_t serial_smart_audio_update() { length = 0; parser_state = PARSER_CHECK_MIRROR; - quic_debugf("SMART_AUDIO: send cmd %d (%d)", cmd, size); + quic_debugf("SMART_AUDIO: send cmd %d (%d)", cmd, vtx_frame_length); serial_vtx_send_data(vtx_frame, vtx_frame_length); }
CI: Public header check defines CI_HEADER_CHECK macro This flags compilation checking in the CI so headers can use the macro to ignore specific compilation issues
@@ -259,6 +259,7 @@ class PublicHeaderChecker: if item.startswith("-D"): include_dir_flags.append(item.replace('\\','')) # removes escaped quotes, eg: -DMBEDTLS_CONFIG_FILE=\\\"mbedtls/esp_config.h\\\" include_dir_flags.append("-I" + os.path.join(project_dir, "build", "config")) + include_dir_flags.append("-DCI_HEADER_...
Update bindings.cpp Schlage Connect Smart Deadbolt B3468 Support
@@ -1817,6 +1817,11 @@ void DeRestPluginPrivate::checkLightBindingsForAttributeReporting(LightNode *lig { DBG_Printf(DBG_INFO, "Binding DanaLock\n"); } + // Schlage support + else if (lightNode->manufacturerCode() == VENDOR_SCHLAGE) + { + DBG_Printf(DBG_INFO, "Binding Schlage\n"); + } else if (lightNode->manufacturerCo...
testcase/network: remove AF_X25 AF_X25 is not supported to TizenRT
@@ -202,24 +202,6 @@ static void tc_net_socket_af_inet_sock_dgram_icmpv6_n(void) TC_SUCCESS_RESULT() } -#ifdef AF_X25 -/** -* @testcase tc_net_socket_af_x25_sock_stream_n -* @brief -* @scenario -* @apicovered socket() -* @precondition -* @postcondition -*/ -static void tc_net_socket_af_x25_sock_stream_n(void) -{ - int ...
Fixed issue Fixed copy'n'paste error from Core to Core A
@@ -171,7 +171,7 @@ __STATIC_FORCEINLINE uint32_t __REV(uint32_t value) #else uint32_t result; - __ASM volatile ("rev %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) ); + __ASM volatile ("rev %0, %1" : "=r" (result) : "r" (value) ); return result; #endif } @@ -204,7 +204,7 @@ __STATIC_FORCEINLINE i...
Solve minor bugs in python plugin.
@@ -973,12 +973,12 @@ int py_loader_impl_discover_func_args_count(PyObject * func) { PyObject * func_call = PyObject_GetAttrString(func, "__call__"); - if (func_call != NULL) + if (func_call != NULL && PyObject_HasAttrString(func_call, "__code__")) { func_code = PyObject_GetAttrString(func_call, "__code__"); - - Py_DEC...
Change logic when gating ports on locked operators
@@ -260,12 +260,9 @@ Usz usz_clamp(Usz val, Usz min, Usz max) { #define OPER_PORT_FLIP_LOCK_BIT(_flags) ((_flags) ^ Mark_flag_lock) #define PORT(_delta_y, _delta_x, _flags) \ - mbuffer_poke_relative_flags_or( \ - mbuffer, height, width, y, x, _delta_y, _delta_x, \ - ((_flags)&OPER_PORT_IO_MASK) | \ - (Oper_ports_enable...
Doc: Added S2 HMAC downstream JTAG support Closes
@@ -88,7 +88,23 @@ HMAC for Enabling JTAG Key Purpose values: 6, 5 The third application is using the HMAC as a key to enable JTAG if it was soft-disabled before. -This functionality is currently not implemented. +Following is the procedure to re-enable the JTAG + +Setup + +1. Generate a 256-bit HMAC secret key to use ...
vpp: fix .short_help for "ip virtual" Type: fix "# <feature-name>: <subject>
@@ -122,7 +122,7 @@ done: /* *INDENT-OFF* */ VLIB_CLI_COMMAND (virtual_ip_cmd_fn_command, static) = { .path = "ip virtual", - .short_help = "ip virtual <addr> <interface> [mac <Mi>]+", + .short_help = "ip virtual <addr> <interface> [mac <Mi>]+ [next-hop <ip4_address>]+", .function = virtual_ip_cmd_fn_command_fn, }; /* ...
Remove debug lines from install-gsl script
@@ -8,8 +8,5 @@ else tar -xzf gsl-2.4.tar.gz cd gsl-2.4 && ./configure --prefix=/usr && make && sudo make install fi -pwd -ls -echo $TRAVIS_BUILD_DIR export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib export LD_RUN_PATH=$LD_RUN_PATH:/usr/lib
in_forward: warn when client exceed limit
@@ -42,7 +42,7 @@ int fw_conn_event(void *data) available = (conn->buf_size - conn->buf_len); if (available < 1) { if (conn->buf_size + ctx->chunk_size > ctx->buffer_size) { - flb_trace("[in_fw] fd=%i incoming data exceed limit (%i KB)", + flb_warn("[in_fw] fd=%i incoming data exceed limit (%i KB)", event->fd, (ctx->bu...
kdf: avoid NULL dereference on malloc failure in sshkdf Fixes
@@ -60,6 +60,7 @@ static void *kdf_sshkdf_new(void *provctx) if ((ctx = OPENSSL_zalloc(sizeof(*ctx))) == NULL) ERR_raise(ERR_LIB_PROV, ERR_R_MALLOC_FAILURE); + else ctx->provctx = provctx; return ctx; }
add rule to build deb package on bsuter / bionic
@@ -716,34 +716,50 @@ debsource: distclean preparedeb .PHONY: buster-debsource buster-debsource: distclean preparedeb - @mv debian/rules debian/rules.orig - @cat debian/rules.orig \ - | sed s/"export USE_CJSON_SO = 1"/"export USE_CJSON_SO = 0"/ \ - > debian/rules - dpkg-source -b . || mv debian/rules.orig debian/rules ...
Clean up typo openssl_provider
@@ -156,7 +156,7 @@ void picoquic_clear_openssl() if (openssl_is_init) { #if !defined(LIBRESSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x30000000L if (openssl_default_provider != NULL) { - (void)OSSL_PROVIDER_unload(OSSL_PROVIDER * prov); + (void)OSSL_PROVIDER_unload(openssl_default_provider); openssl_default_prov...
[chore] Code refactoring
@@ -128,9 +128,7 @@ static int cp_getLuaExecContext(lua_State *L) const char *vm_copy_service(lua_State *L, lua_State *main) { - int err; int service; - lua_cpcall(L, cp_getLuaExecContext, &service); service = luaL_service(main); if (service < 0) { return "not permitted state referencing at global scope";