message
stringlengths
6
474
diff
stringlengths
8
5.22k
fixes improper null-termination in cttp header buffers
@@ -59,8 +59,8 @@ _cttp_bod_new(c3_w len_w, c3_c* hun_c) static u3_hbod* _cttp_bod_from_hed(u3_hhed* hed_u) { - c3_w len_w = hed_u->nam_w + 2 + hed_u->val_w + 3; - u3_hbod* bod_u = c3_malloc(len_w + sizeof(*bod_u)); + c3_w len_w = hed_u->nam_w + 2 + hed_u->val_w + 2; + u3_hbod* bod_u = c3_malloc(1 + len_w + sizeof(*bod...
specload: increase timeout
@@ -18,6 +18,6 @@ if (BUILD_SHARED AND ADDTESTING_PHASE) set (TESTAPP_PATH "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/elektra-specload-testapp") configure_file ("${CMAKE_CURRENT_SOURCE_DIR}/config.c.in" "${CMAKE_CURRENT_BINARY_DIR}/config.c" @ONLY) - add_plugintest (specload INSTALL_TEST_DATA INCLUDE_DIRECTORIES ${CMAKE_CURREN...
ossl_cmp_msg_check_update(): align recipNone check with improved transactionID check
@@ -640,6 +640,28 @@ int OSSL_CMP_validate_msg(OSSL_CMP_CTX *ctx, const OSSL_CMP_MSG *msg) return 0; } +static int check_transactionID_or_nonce(ASN1_OCTET_STRING *expected, + ASN1_OCTET_STRING *actual, int reason) +{ + if (expected != NULL + && (actual == NULL || ASN1_OCTET_STRING_cmp(expected, actual) != 0)) { +#ifnde...
delete header file
#include <sensor_msgs/BatteryState.h> #include <sensor_msgs/MagneticField.h> -#include <turtlebot3_msgs/SensorState.h> - #define ACCEL_FACTOR -0.000598 // 2.0 * -9.8 / 32768 #define GYRO_FACTOR 0.000133 // pi / (131 * 180) #define MAG_FACTOR 6e-7
flash: safer frsky offset, remove old comments
@@ -11,7 +11,7 @@ extern profile_t profile; extern float accelcal[]; #define FMC_HEADER 0x12AA0001 -#define FRSKY_BIND_OFFSET 50 +#define FRSKY_BIND_OFFSET 57 float initial_pid_identifier = -10; @@ -104,7 +104,7 @@ void flash_save(void) { } #endif -#ifdef RX_FRSKY //currently starts at address 66 +#ifdef RX_FRSKY exter...
OpenCanopy: Restore boot timeout logic after recent kb changes
@@ -1117,7 +1117,8 @@ GuiDrawLoop ( // // If detected key press then disable menu timeout // - if (TimeOutSeconds > 0) { + if (PickerKeyInfo.OcKeyCode != OC_INPUT_NO_ACTION + && TimeOutSeconds > 0) { // // Voice only unrelated key press. //
Use locale::classic
@@ -106,7 +106,7 @@ static bool try_stoull(unsigned long long& val, const std::string& str, std::siz static float parse_float(const std::string& s, std::size_t* float_len = nullptr){ std::stringstream ss(s); - ss.imbue(std::locale("C")); + ss.imbue(std::locale::classic()); float ret; ss >> ret; if(ss.fail()) throw std:...
Update Makefile Add dependency version
@@ -20,7 +20,6 @@ $(error Environment variable BOLOS_SDK is not set) endif include $(BOLOS_SDK)/Makefile.defines -APP_LOAD_FLAGS= --appFlags 0x40 --dep Ethereum DEFINES_LIB = USE_LIB_ETHEREUM APP_LOAD_PARAMS= --curve secp256k1 $(COMMON_LOAD_PARAMS) @@ -28,7 +27,7 @@ APPVERSION_M=1 APPVERSION_N=1 APPVERSION_P=4 APPVERSI...
DOC: remove PARTITION_MODE related content Update the document as the PARTITION_MODE is removed from the code.
@@ -34,11 +34,6 @@ inside the hypervisor: Control flow of I/O emulation in the hypervisor -:option:`CONFIG_PARTITION_MODE` is the only configuration option that affects the -functionality of I/O emulation. With :option:`CONFIG_PARTITION_MODE` enabled, -the hypervisor never sends I/O request to any VM. Unhandled I/O rea...
Cache key add arch
@@ -53,7 +53,7 @@ end -- get cflags from make function _get_cflags_from_make(target, sdkdir) - local key = sdkdir + local key = sdkdir .. target:arch() local cflags = memcache.get2("linux.driver", key, "cflags") local ldflags_o = memcache.get2("linux.driver", key, "ldflags_o") local ldflags_ko = memcache.get2("linux.dr...
validate gcc version for use -fstack-protector-strong in the Makefile
@@ -21,7 +21,17 @@ INSTALL_LIBRARY_PATH = $(DESTDIR)$(PREFIX)/$(LIBRARY_PATH) INSTALL ?= cp -a -R_CFLAGS = -fPIC -std=c89 -pedantic -Wall -Werror -Wstrict-prototypes -Wwrite-strings -Wshadow -Winit-self -Wcast-align -Wformat=2 -Wmissing-prototypes -Wstrict-overflow=2 -Wcast-qual -Wc++-compat -Wundef -Wswitch-default -W...
dev-tools/scipy: add bind11 build dependencies
@@ -34,7 +34,11 @@ Url: http://www.scipy.org Source0: https://github.com/scipy/scipy/archive/v%{version}.tar.gz#/%{pname}-%{version}.tar.gz %if 0%{?sles_version} || 0%{?suse_version} BuildRequires: fdupes +BuildRequires: %{python_prefix}-pybind11-devel +%else +BuildRequires: pybind11-devel %endif +BuildRequires: %{pyth...
Further simplify formatting code Remove redundant length checks before `memcpy` Coerce `sign` and `prefix` to boolean for `numLen`
@@ -166,7 +166,6 @@ void fmt_PrintString(char *buf, size_t bufLen, struct FormatSpec const *fmt, cha } else { for (size_t i = 0; i < padLen; i++) buf[i] = ' '; - if (totalLen > padLen) memcpy(buf + padLen, value, len); } @@ -256,13 +255,7 @@ void fmt_PrintNumber(char *buf, size_t bufLen, struct FormatSpec const *fmt, u...
Add libomp to the LAPACK(-test) dependencies in clang/gfortran builds
@@ -268,7 +268,11 @@ ifeq ($(NOFORTRAN), $(filter 0,$(NOFORTRAN))) -@echo "POPTS = $(LAPACK_FPFLAGS)" >> $(NETLIB_LAPACK_DIR)/make.inc -@echo "FFLAGS_NOOPT = -O0 $(LAPACK_NOOPT)" >> $(NETLIB_LAPACK_DIR)/make.inc -@echo "PNOOPT = $(LAPACK_FPFLAGS) -O0" >> $(NETLIB_LAPACK_DIR)/make.inc +ifeq ($(C_COMPILER)$(F_COMPILER)$(...
makefile: describe mapping from amd64 to x86_64
@@ -39,7 +39,12 @@ endif endif -# map architecture amd64 to x86_64 +# conditionally map ARCH from amd64 to x86_64 if set from the outside +# +# Some OS provide a definition for $(ARCH) through an environment +# variable. It might be set to amd64 which implies x86_64. Since e.g. +# luajit expects either i386 or x86_64, ...
Fix file sealing on tmpfs unlink dynamic configuration file before creating a new one Closes
@@ -108,9 +108,16 @@ attachCmd(pid_t pid, bool attach) scope_snprintf(path, sizeof(path), "%s/%s.%d", DYN_CONFIG_CLI_DIR, DYN_CONFIG_CLI_PREFIX, pid); + /* + * Unlink a possible existing file before creating a new one + * due to a fact that scope_open will fail if the file is + * sealed (still processed on library side...
Zeroing the buffer in `createCron`
@@ -389,7 +389,7 @@ nsForkAndExec(pid_t parentPid, pid_t nsPid, char attachType) static bool createCron(const char *scopePath, const char* filterPath) { int outFd; - char buf[1024]; + char buf[1024] = {0}; char path[PATH_MAX] = {0}; // Create the script to be executed by cron
ksched: disabled cstates no longer used in recent kernels
@@ -535,7 +535,7 @@ static int __init ksched_cpuidle_hijack(void) drv = cpuidle_get_driver(); if (!drv) return -ENOENT; - if (drv->state_count <= 0 || drv->states[0].disabled) + if (drv->state_count <= 0) return -EINVAL; cpuidle_pause_and_lock();
Make os/date results more consistent.
@@ -287,9 +287,9 @@ static Janet os_date(int32_t argc, Janet *argv) { janet_struct_put(st, janet_ckeywordv("seconds"), janet_wrap_number(t_info->tm_sec)); janet_struct_put(st, janet_ckeywordv("minutes"), janet_wrap_number(t_info->tm_min)); janet_struct_put(st, janet_ckeywordv("hours"), janet_wrap_number(t_info->tm_hour...
Fix ZstdDecompressor on 64-bit big-endian When parsing the python arguments, using "I" (int) in the format string but passing a pointer to size_t means that, on big endian, we're only initializing the high-order bits of the size_t. Use "n" (Py_ssize_t) format instead, which should be the right size.
@@ -68,13 +68,13 @@ static int Decompressor_init(ZstdDecompressor* self, PyObject* args, PyObject* k }; ZstdCompressionDict* dict = NULL; - size_t maxWindowSize = 0; + Py_ssize_t maxWindowSize = 0; ZSTD_format_e format = ZSTD_f_zstd1; self->dctx = NULL; self->dict = NULL; - if (!PyArg_ParseTupleAndKeywords(args, kwargs...
No usable TLSAs counts as no (or no secure) TLSAs too
@@ -1799,6 +1799,7 @@ main(int argc, char* const* argv) if (!usable_tlsas) { fprintf(stderr, "No usable TLSA records were found.\n" "PKIX validation without DANE will be performed.\n"); + exit_success = no_tlsas_exit_status; } if (!(store_ctx = X509_STORE_CTX_new())) { ssl_err("could not SSL_new"); @@ -1904,6 +1905,8 @...
ghost: set 1 MHz I2C buses to 400 KHz This sets all I2C buses to run at no more than 400 KHz. 1 MHz operation should only be enabled after validation. BRANCH=none TEST=image boots on brya, PD charging works
@@ -23,7 +23,8 @@ const struct i2c_port_t i2c_ports[] = { /* I2C1 */ .name = "tcpc0,2", .port = I2C_PORT_USB_C0_C2_TCPC, - .kbps = 1000, + /* TODO(b/233013680): set to 1000 when validated */ + .kbps = 400, .scl = GPIO_EC_I2C_USB_C0_C2_TCPC_SCL, .sda = GPIO_EC_I2C_USB_C0_C2_TCPC_SDA, }, @@ -31,7 +32,8 @@ const struct i2...
fix issue of different behavior of dirname on mac and linux.
#include "utils.h" #include <sys/stat.h> +#include <stdlib.h> #if defined (__APPLE__)|| defined (__MACOS__) #include <unistd.h> #include <libgen.h> @@ -25,16 +26,17 @@ static char g_xdag_current_path[4096] = {0}; void xdag_init_path(char *path) { + char *pathcopy = strdup(path); #if defined (__APPLE__)|| defined (__MAC...
Indenting of examples
@@ -66,7 +66,7 @@ char buf[256]; ssize_t sz = mrecv(s, buf, sizeof(buf), -1); s = crlf_detach(s, -1); tcp_close(s); -` + `, } http_protocol = { @@ -938,6 +938,29 @@ for(i = 0; i != 1000000; ++i) { }, ] +// Trims whitespeace around the rectangular area of text. +function trimrect(t) { + // Trim empty lines at the top an...
dev:[tools] add default project name and project path while --dist-ide
@@ -925,14 +925,11 @@ def EndBuilding(target, program = None): project_name = GetOption('project-name') if not isinstance(project_path, str) or len(project_path) == 0 : - print("\nwarning : --project-path=your_project_path parameter is required.") - print("\nstop!") - exit(0) - + project_path = os.path.join(BSP_ROOT, '...
Only install the ARM toolchain.
@@ -35,9 +35,9 @@ RUN apt-get -y update && \ rm -rf /var/lib/apt/lists/* ARG ZSDK_VERSION=0.11.2 -RUN wget -q "https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v${ZSDK_VERSION}/zephyr-sdk-${ZSDK_VERSION}-setup.run" && \ - sh "zephyr-sdk-${ZSDK_VERSION}-setup.run" --quiet -- -d /opt/toolchains/zephyr-sdk-$...
uh oh, it's magic
@@ -19,7 +19,7 @@ configuration options. These tips are highlighted via the following format: \begin{center} \begin{tcolorbox}[] \small -The dude abides. --Jeffrey Lebowski +Any sufficiently advanced technology is indistinguishable from magic. --Arthur C. Clarke \end{tcolorbox} \end{center}
Fixed parallel typo in File_location
@@ -256,7 +256,7 @@ other than ``VUSER_HOME``. These are breifly described in this section. ``<letter>.<component-name>.<mpi-rank-or-$pid>.<debug-level>.vlog`` where ``<letter>`` is one of ``A`` through ``E``, ``<component-name>`` is one of ``gui``, ``mdserver``, ``viewer``, ``engine_ser``, ``engine_par``, - ``<mpi-ran...
linux-raspberrypi: Drop ineffective code The code to determine if we need to depend on lzop-native will fail as the local defconfig file no longer exists.
@@ -129,22 +129,3 @@ do_configure_prepend() { yes '' | oe_runmake oldconfig } - -# Automatically depend on lzop-native if CONFIG_KERNEL_LZO is enabled -python () { - try: - defconfig = bb.fetch2.localpath('file://defconfig', d) - except bb.fetch2.FetchError: - return - - try: - configfile = open(defconfig) - except IOE...
zephyr: Fix kconfig license header BRANCH=none TEST=none
- -# Copyright 2020 Google LLC -# SPDX-License-Identifier: Apache-2.0 +# Copyright 2020 The Chromium OS Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. # TODO(b/176828988): enable by default once the code can compile menuconfig CROS_F...
Fix finished message decryption fail issue
@@ -1328,6 +1328,7 @@ static int ssl_tls13_finalize_server_hello( mbedtls_ssl_context *ssl ) handshake->transform_handshake = transform_handshake; mbedtls_ssl_set_inbound_transform( ssl, transform_handshake ); + mbedtls_ssl_set_outbound_transform( ssl, ssl->handshake->transform_handshake ); MBEDTLS_SSL_DEBUG_MSG( 1, ( ...
Declare data module constructors consistently;
@@ -39,6 +39,31 @@ static int l_lovrDataNewBlob(lua_State* L) { return 1; } +static int l_lovrDataNewImage(lua_State* L) { + Image* image = NULL; + if (lua_type(L, 1) == LUA_TNUMBER) { + int width = luaL_checkinteger(L, 1); + int height = luaL_checkinteger(L, 2); + TextureFormat format = luax_checkenum(L, 3, TextureFor...
Add more UDP documentation, contributes to
@@ -451,6 +451,35 @@ The syntax and functional similar to [`net.socket:on()`](#netsocketon). However, Sends data to specific remote peer. +#### Syntax +`send(port, ip, data)` + +#### Parameters +- `port` remote socket port +- `ip` remote socket IP +- `data` the payload to send + +#### Returns +`nil` + +#### Example +``...
Fix sixtop example
@@ -91,7 +91,7 @@ PROCESS_THREAD(node_process, ev, data) /* Get time-source neighbor */ n = tsch_queue_get_time_source(); - if(node_id != 1) { + if(!is_coordinator) { if((added_num_of_links == 1) || (added_num_of_links == 3)) { printf("App : Add a link\n"); sf_simple_add_links(&n->addr, 1);
webp-container-spec.txt: make reserved 0 values a MUST these were intended as an extension point, but in this version of the spec they're not defined. if they ever were used leaving them as SHOULD could result in a source of incompatibility.
@@ -322,7 +322,7 @@ Extended WebP file header: Reserved (Rsv): 2 bits -: SHOULD be `0`. +: MUST be `0`. ICC profile (I): 1 bit @@ -348,11 +348,11 @@ Animation (A): 1 bit Reserved (R): 1 bit -: SHOULD be `0`. +: MUST be `0`. Reserved: 24 bits -: SHOULD be `0`. +: MUST be `0`. Canvas Width Minus One: 24 bits @@ -466,7 +4...
use USBD_MemCopy.
@@ -101,6 +101,11 @@ static void usb_detach(void) USBD->SE0 |= USBD_SE0_SE0_Msk; } +static void usb_memcpy(uint8_t *dest, uint8_t *src, uint16_t size) +{ + while(size--) *dest++ = *src++; +} + static void usb_control_send_zlp(void) { USBD->EP[PERIPH_EP0].CFG |= USBD_CFG_DSQSYNC_Msk; @@ -153,7 +158,7 @@ static void dcd_...
OcMachoLib: Prefer Index over Walkers when available.
@@ -95,11 +95,8 @@ InternalGetExternalRelocationByOffset ( ASSERT (Context->DySymtab != NULL); ASSERT (Context->ExternRelocations != NULL); - for ( - Index = 0, Relocation = &Context->ExternRelocations[0]; - Index < Context->DySymtab->NumExternalRelocations; - ++Index, ++Relocation - ) { + for (Index = 0; Index < Conte...
Net1.inp have 0 MinorLoss / GUI accepts values zero for MINORLOSS. Similar to the parameter Power of pumps
@@ -3862,7 +3862,7 @@ int DLLEXPORT EN_setlinkvalue(EN_Project p, int index, int property, double valu case EN_MINORLOSS: if (Link[index].Type != PUMP) { - if (value <= 0.0) return 211; + if (value < 0.0) return 211; Link[index].Km = 0.02517 * value / SQR(Link[index].Diam) / SQR(Link[index].Diam); } @@ -3953,7 +3953,7 ...
OpenCorePlatform: Properly copy SMBIOS product name
@@ -33,7 +33,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #include <Guid/AppleVariable.h> -STATIC CONST CHAR8 *mCurrentSmbiosProductName; +STATIC CHAR8 mCurrentSmbiosProductName[48]; STATIC VOID @@ -356,7 +356,10 @@ OcPlatformUpdateSmbios ( if (Data.SystemProductName != NULL) { DEB...
More tweaks to dependency generation.
@@ -59,7 +59,7 @@ distclean: clean # Update dependencies depend: - $(CC) -MM $(CFLAGS) $(OBJS:.o=.c) | sed -e '1,$$s/\/usr\/local\/include\/[^ ]+//g' >Dependencies + $(CC) -MM $(CFLAGS) $(OBJS:.o=.c) | sed -e '1,$$s/\/usr\/include\/[^ ]+//g' -e '1,$$s/\/usr\/local\/include\/[^ ]+//g' >Dependencies # Install everything
Fix ipv4_from_asc behavior on invalid Ip addresses sscanf() call in ipv4_from_asc does not check that the string is terminated immediately after the last digit.
@@ -1096,13 +1096,17 @@ int ossl_a2i_ipadd(unsigned char *ipout, const char *ipasc) static int ipv4_from_asc(unsigned char *v4, const char *in) { - int a0, a1, a2, a3; + const char *p; + int a0, a1, a2, a3, n; - if (sscanf(in, "%d.%d.%d.%d", &a0, &a1, &a2, &a3) != 4) + if (sscanf(in, "%d.%d.%d.%d%n", &a0, &a1, &a2, &a3...
options/posix/in: define IN6_ARE_ADDR_EQUAL
@@ -82,6 +82,12 @@ struct ipv6_mreq { !_a[1] && \ _a[2] == htonl(0xffff); \ }) +#define __ARE_4_BYTE_EQUAL(a, b) \ + ((a)[0] == (b)[0] && (a)[1] == (b)[1] && (a)[2] == (b)[2] && \ + (a)[3] == (b)[3] && (a)[4] == (b)[4]) +#define IN6_ARE_ADDR_EQUAL(a, b) \ + __ARE_4_BYTE_EQUAL((const uint32_t *)(a), (const uint32_t *)(b...
py/dynruntime.h: Make mp_obj_str_get_str raise if arg not a str/bytes.
@@ -114,7 +114,7 @@ static inline void *m_realloc_dyn(void *ptr, size_t new_num_bytes) { #define mp_obj_cast_to_native_base(o, t) (mp_obj_cast_to_native_base_dyn((o), (t))) #define mp_obj_get_int(o) (mp_fun_table.native_from_obj(o, MP_NATIVE_TYPE_INT)) #define mp_obj_get_int_truncated(o) (mp_fun_table.native_from_obj(o...
intr_alloc: Fixed missing portEXIT_CRITICAL_SAFE Closes Updated commit message]
@@ -801,6 +801,7 @@ esp_err_t IRAM_ATTR esp_intr_enable(intr_handle_t handle) } else { //Re-enable using cpu int ena reg if (handle->vector_desc->cpu != esp_cpu_get_core_id()) { + portEXIT_CRITICAL_SAFE(&spinlock); return ESP_ERR_INVALID_ARG; //Can only enable these ints on this cpu } ESP_INTR_ENABLE(handle->vector_des...
npu2: Fix typo in message Correct "procuedure" -> "procedure".
@@ -687,7 +687,7 @@ static int64_t npu_dev_procedure_write(struct npu2_dev *dev, uint32_t offset, name = npu_procedures[data]->name; if (dev->procedure_number == data && !(dev->procedure_status & PROCEDURE_COMPLETE)) - NPU2DEVINF(dev, "Restarting procuedure %s\n", name); + NPU2DEVINF(dev, "Restarting procedure %s\n", n...
sdl: syswm.go: Add missing SYSWM_WINRT, SYSWM_ANDROID, and SYSWM_VIVANTE subsystem flags
@@ -13,6 +13,21 @@ package sdl #define SDL_SYSWM_WAYLAND SDL_SYSWM_UNKNOWN #define SDL_SYSWM_MIR SDL_SYSWM_UNKNOWN #endif + +#if !(SDL_VERSION_ATLEAST(2,0,3)) +#pragma message("SDL_SYSWM_WINRT is not supported before SDL 2.0.3") +#define SDL_SYSWM_WINRT (0) +#endif + +#if !(SDL_VERSION_ATLEAST(2,0,4)) +#pragma message(...
generate_spir_wrapper.py: update documentation
#!/usr/bin/python3 # -# A script to generate functions (SPIR-mangled with SPIR AS) that will call -# target-specific kernel library functions (with OpenCL-mangled names and AS). +# A script to generate wrapping functions (SPIR-mangled with SPIR AS) that will wrap +# calls to target-specific kernel library functions (wi...
matched filter example: "hM3" -> "hm3"
@@ -17,7 +17,7 @@ void usage() { printf("matched_filter_example options:\n"); printf(" u/h : print usage/help\n"); - printf(" t : filter type: [rrcos], rkaiser, arkaiser, hM3, gmsk, fexp, fsech, farcsech\n"); + printf(" t : filter type: [rrcos], rkaiser, arkaiser, hm3, gmsk, fexp, fsech, farcsech\n"); printf(" k : filt...
Python: typo fixed in string processing shortcut.
@@ -437,8 +437,8 @@ nxt_python_run(nxt_task_t *task, nxt_app_rmsg_t *rmsg, nxt_app_wmsg_t *wmsg) /* Shortcut: avoid iterate over result string symbols. */ if (PyBytes_Check(result) != 0) { - size = PyBytes_GET_SIZE(item); - buf = (u_char *) PyBytes_AS_STRING(item); + size = PyBytes_GET_SIZE(result); + buf = (u_char *) ...
Fix pointer incorrect pointer manipulation that happened to work on a x86-64
#include "state.h" #include "vector.h" #include "gc.h" +#include "fiber.h" typedef struct { jmp_buf err; @@ -261,9 +262,9 @@ static void marshal_one_fiber(MarshalState *st, JanetFiber *fiber, int flags) { while (i > 0) { JanetStackFrame *frame = (JanetStackFrame *)(fiber->data + i - JANET_FRAME_SIZE); if (frame->env) f...
clay: allow numbers in +segments
|= suffix=@tas ^- (list path) =/ parser - (most hep (cook crip ;~(plug low (star ;~(pose low nud))))) + (most hep (cook crip ;~(plug ;~(pose low nud) (star ;~(pose low nud))))) =/ torn=(list @tas) (fall (rush suffix parser) ~[suffix]) %- flop |- ^- (list (list @tas))
Add timeout to udp multicast join tests This is one way to close With the default settings of firewalld (used by Fedora, RHEL, etc), incoming messages from multicast IPs are dropped, meaning that the multicast test will hang forever. This introduces a 1 second timeout, after which the test will fail.
@@ -174,6 +174,8 @@ return require('lib/tap')(function (test) local function multicast_join_test(bind_addr, multicast_addr, interface_addr) return function(print, p, expect, uv) local uvVersionGEQ = require('lib/utils').uvVersionGEQ + local timeout = uv.new_timer() + local TIMEOUT_TIME = 1000 local server = assert(uv.n...
Aligned GIC examples in documentation
@@ -636,8 +636,12 @@ For ARM GIC the default implementation looks like the following example: int32_t IRQ_SetPriorityGroupBits (uint32_t bits) { int32_t status; + if (bits == IRQ_PRIORITY_Msk) { + bits = 7U; + } + if (bits < 8U) { - GIC_SetBinaryPoint (bits); + GIC_SetBinaryPoint (7U - bits); status = 0; } else { statu...
Fixed possible crash when decoding invalid data When trying to decode invalid data, it frees the buffer but doesn't nil it so the caller gets a junk memory pointer which they could potentially double free.
@@ -299,6 +299,7 @@ libssh2_base64_decode(LIBSSH2_SESSION *session, char **data, /* Invalid -- We have a byte which belongs exclusively to a partial octet */ LIBSSH2_FREE(session, *data); + *data = NULL; return _libssh2_error(session, LIBSSH2_ERROR_INVAL, "Invalid base64"); }
* Removed `JAVA_AWT_INCLUDE_PATH` from FindJNI.cmake
@@ -41,8 +41,6 @@ The following cache variables are also available to set or use: the include path to jni.h ``JAVA_INCLUDE_PATH2`` the include path to jni_md.h and jniport.h -``JAVA_AWT_INCLUDE_PATH`` - the include path to jawt.h #]=======================================================================] # Expand {libar...
Remove third argument passed to run_client in compat.sh The argument passed to translate_ciphers.py is calculated from $1 in run_client instead of passed as third argument.
@@ -800,8 +800,11 @@ run_client() { LEN=$(( 72 - `echo "$TITLE" | wc -c` )) for i in `seq 1 $LEN`; do printf '.'; done; printf ' ' + # Calculate the argument $c to pass to translate_ciphers.py + client=$(echo $1 | head -c1) + c=$(echo $client | tr '[:upper:]' '[:lower:]') # Translate ciphersuite names based on client's...
docs: update wear levelling cn trans
@@ -5,6 +5,7 @@ Wear Levelling API Overview -------- + Most of flash memory and especially SPI flash that is used in {IDF_TARGET_NAME} has a sector-based organization and also has a limited number of erase/modification cycles per memory sector. The wear levelling component helps to distribute wear and tear among sector...
examples/nxflat: fixed an issue with the symbol table creation (#3737#issuecomment-844574935)
@@ -90,7 +90,7 @@ $(DIRLIST_SRC): install # Create the exported symbol table list from the derived *-thunk.S files $(SYMTAB_SRC): install - $(Q) $(APPDIR)/tools/mksymtab.sh $(ROMFS_DIR) g_nxflat >$@.tmp + $(Q) $(APPDIR)/tools/mksymtab.sh $(TESTS_DIR) g_nxflat >$@.tmp $(Q) $(call TESTANDREPLACEFILE, $@.tmp, $@) # Clean ...
Remove TLSv1.3 specific write transition for ClientHello Since we no longer do version negotiation during the processing of an HRR we do not need the TLSv1.3 specific write transition for ClientHello
@@ -391,10 +391,6 @@ static WRITE_TRAN ossl_statem_client13_write_transition(SSL *s) ERR_R_INTERNAL_ERROR); return WRITE_TRAN_ERROR; - case TLS_ST_CW_CLNT_HELLO: - /* We only hit this in the case of HelloRetryRequest */ - return WRITE_TRAN_FINISHED; - case TLS_ST_CR_FINISHED: if (s->early_data_state == SSL_EARLY_DATA_W...
Utilities: Set 3GB allocation pool limit for TestDiskImage
#include <Library/DebugLib.h> #include <UserFile.h> +#include <UserMemory.h> #define NUM_EXTENTS 20 @@ -35,6 +36,11 @@ ENTRY_POINT ( UINT32 Index2; OC_APPLE_CHUNKLIST_CONTEXT ChunklistContext; + // + // Limit pool allocation size to 3072 MB + // + SetPoolAllocationSizeLimit (BASE_1GB | BASE_2GB); + if (argc < 2) { DEBU...
Ignore `REX.X` for `RM`-encoded `BND` registers
@@ -4457,7 +4457,7 @@ static ZyanStatus ZydisCheckErrorConditions(ZydisDecoderContext* context, case ZYDIS_REG_CONSTRAINTS_MASK: break; case ZYDIS_REG_CONSTRAINTS_BND: - if (context->cache.B || context->cache.X || instruction->raw.modrm.rm > 3) + if (context->cache.B || instruction->raw.modrm.rm > 3) { return ZYDIS_STA...
[catboost/java] use `sys.executable` when launching `ya` as subprocess
@@ -85,10 +85,8 @@ def _main(): print('building dynamic library with `ya`', file=sys.stderr) sys.stderr.flush() - # TODO(yazevnul): maybe replace `python` with `sys.executable`? - ya_tool = [ya_path] if _get_platform() != 'win32' else ['python', ya_path] with _tempdir(prefix='catboost_build-') as build_output_dir: - ya...
ds json UPDATE do not set user/group of backups The process performing the back up may not have permissions to use the original owner/group. Setting the original permissions should be secure enough. Fixes
@@ -84,22 +84,14 @@ srpds_json_store_(const struct lys_module *mod, sr_datastore_t ds, const struct goto cleanup; } - /* create backup file with same owner/group/perm */ + /* create backup file with same permissions (not owner/group because it may be different and this process + * not has permissions to use that owner/...
pkg/gadgets/test: Add TestEventEnrichmentRaceCondition Add a test to verify that the events are enriched even if the container is removed right after the event is generated.
@@ -176,3 +176,74 @@ func TestContainerRemovalRaceCondition(t *testing.T) { t.Fatalf("failed generating events: %s", err) } } + +// TestEventEnrichmentRaceCondition checks that an event is properly enriched when the generating +// container is removed soon after it generates the event. +// https://github.com/inspektor-...
Support 30MiB payloads - VCU118 FPGA
#define DEBUG #include "kprintf.h" -#define MAX_CORES 8 - -// A sector is 512 bytes, so ((1 << 11) * 512) = 1 MiB -#define PAYLOAD_SIZE (16 << 11) +// Total payload in B +#define PAYLOAD_SIZE_B (30 << 20) // default: 30MiB +// A sector is 512 bytes, so (1 << 11) * 512B = 1 MiB +#define SECTOR_SIZE_B 512 +// Payload siz...
ECDSA_* is deprecated. EC_KEY_* is used instead CLA: trivial
@@ -11,7 +11,7 @@ X509_STORE_CTX_get_ex_new_index, X509_STORE_CTX_set_ex_data, X509_STORE_CTX_get_ DH_get_ex_new_index, DH_set_ex_data, DH_get_ex_data, DSA_get_ex_new_index, DSA_set_ex_data, DSA_get_ex_data, ECDH_get_ex_new_index, ECDH_set_ex_data, ECDH_get_ex_data, -ECDSA_get_ex_new_index, ECDSA_set_ex_data, ECDSA_get...
Temporary scrypt hashrate hack
@@ -404,6 +404,9 @@ namespace MiningCore.Blockchain.Bitcoin if ((poolConfig.Coin.Type == CoinType.XVG && poolConfig.Coin.Algorithm.ToLower() == "x17")) result *= 2.55; + if ((poolConfig.Coin.Algorithm.ToLower() == "scrypt")) + result *= 1.5; + return result; }
feat(specs-gen): improve flexibility by add -i opt for including N amount of dependency headers
static void print_usage(char *prog) { fprintf(stderr, - "Usage: %s [-h|-c|-d|-f] -o output-file input-file\n" + "Usage: %s [-h|-c|-d|-f] -o output-file -i include-headers input-file \n" " -h generate header\n" " -c generate data and function definitions\n" " -d generate data and function declarations\n" @@ -35,9 +35,10...
[snitch] Remove FPU traces generation from MemPool CC
@@ -255,8 +255,8 @@ module mempool_cc #( "acc_pid": i_snitch.acc_pid_i, "acc_pdata_32": i_snitch.acc_pdata_i[31:0], // FPU offload - "fpu_offload": (i_snitch.acc_qready_i && i_snitch.acc_qvalid_o && !snitch_pkg::shared_offload(i_snitch.acc_qdata_op_o)), - "is_seq_insn": (i_snitch.inst_data_i ==? riscv_instr::FREP) + "f...
Fix GROUP/IN-GROUP tag error handling (-1 is not the value returned by ippTagValue for an unknown tag...)
@@ -1618,7 +1618,7 @@ do_tests(cups_file_t *outfile, /* I - Output file */ goto test_exit; } - if ((value = ippTagValue(token)) < 0) + if ((value = ippTagValue(token)) == IPP_TAG_ZERO || value >= IPP_TAG_UNSUPPORTED_VALUE) { print_fatal_error(outfile, "Bad GROUP tag \"%s\" on line %d.", token, linenum); pass = 0; @@ -2...
bump hdf5 to v1.8.18
@@ -63,7 +63,7 @@ BuildRequires: intel_licenses Summary: A general purpose library and file format for storing scientific data Name: %{pname}-%{compiler_family}%{PROJ_DELIM} -Version: 1.8.17 +Version: 1.8.18 Release: 1 License: Hierarchical Data Format (HDF) Software Library and Utilities License Group: %{PROJ_NAME}/io...
[core] avoid freeaddrinfo() on NULL ptr (fixes getaddrinfo() should return non-empty result list (res) or else should return EAI_NONAME or some other error (musl C library does not check for NULL argument to freeaddrinfo()) x-ref: "Segmentation fault in mod_extforward with libmusl"
@@ -594,11 +594,12 @@ int sock_addr_from_str_numeric(server *srv, sock_addr *saddr, const char *str) log_error_write(srv, __FILE__, __LINE__, "SSSs(S)", "could not parse ip address ", str, " because ", gai_strerror(result), strerror(errno)); + return result; } else if (addrlist == NULL) { log_error_write(srv, __FILE__,...
overlay shows on all tags and doesn't trigger indicators
@@ -447,7 +447,7 @@ void showoverlay(){ selmon->overlaystatus = 1; Client *c = selmon->overlay; - selmon->overlay->tags = selmon->tagset[selmon->seltags]; + selmon->overlay->tags = ~0 & TAGMASK; focus(c); if (!c->isfloating) { @@ -1208,6 +1208,8 @@ drawbar(Monitor *m) resizebarwin(m); for (c = m->clients; c; c = c->nex...
Add missing separator to package builds
@@ -215,7 +215,7 @@ if(PACKAGE) set(PKG_VER ${CMAKE_PROJECT_VERSION_MAJOR}.${CMAKE_PROJECT_VERSION_MINOR}) - set(CPACK_PACKAGE_FILE_NAME "astcenc-${PKG_VER}-${PKG_OS}${PACKAGE}") + set(CPACK_PACKAGE_FILE_NAME "astcenc-${PKG_VER}-${PKG_OS}-${PACKAGE}") set(CPACK_INCLUDE_TOPLEVEL_DIRECTORY FALSE) set(CPACK_PACKAGE_CHECKS...
Work CD-CI Update step to process only files in the push commit. ***NO_CI***
-name: "Auto clang-format" +name: "Auto format source code" on: push: + branches: + - "develop" + - "master" + - "release/*" + paths-ignore: - '*.md' - '*/*.md' @@ -13,7 +18,7 @@ on: jobs: format: - name: "Auto clang-format" + name: "Format source code files" runs-on: ubuntu-latest @@ -29,8 +34,10 @@ jobs: - name: "For...
Avoid using sleep_for on Windows
@@ -608,6 +608,7 @@ void StressUploadLockMultiThreaded(ILogConfiguration& config) while (numIterations--) { + ILogger *result = LogManager::Initialize(TEST_TOKEN, config); // Keep spawning UploadNow threads while the main thread is trying to perform Initialize and Teardown while (threadCount++ < MAX_THREADS) { @@ -615,...
perfserver: Allow incoming unidirectional streams
@@ -549,7 +549,7 @@ int Handler::init(const Endpoint &ep, const sockaddr *sa, socklen_t salen, params.initial_max_stream_data_uni = config.max_stream_data_uni; params.initial_max_data = config.max_data; params.initial_max_streams_bidi = config.max_streams_bidi; - params.initial_max_streams_uni = 0; + params.initial_max...
Added macOS Catalina to the list of OSX codenames. Closes
@@ -205,7 +205,9 @@ get_real_win (const char *win) static char * get_real_mac_osx (const char *osx) { - if (strstr (osx, "10.14")) + if (strstr (osx, "10.15")) + return alloc_string ("macOS 10.14 Catalina"); + else if (strstr (osx, "10.14")) return alloc_string ("macOS 10.14 Mojave"); else if (strstr (osx, "10.13")) re...
Add ksceSysconCtrlDolceLED
@@ -22,6 +22,7 @@ modules: ksceSysconCommitConfigstorageTransaction: 0x7B9B3617 ksceSysconCtrlAccPower: 0x8D1D97E8 ksceSysconCtrlDeviceReset: 0x40FF3898 + ksceSysconCtrlDolceLED: 0x727F985A ksceSysconCtrlHdmiCecPower: 0x62155962 ksceSysconCtrlHostOutputViaDongle: 0xDECCB2B4 ksceSysconCtrlLED: 0x04EC7579
Tests: leave unit.log in case of error or failure.
@@ -25,11 +25,31 @@ class TestUnit(unittest.TestCase): def tearDown(self): self.stop() + # detect errors and failures for current test + + def list2reason(exc_list): + if exc_list and exc_list[-1][0] is self: + return exc_list[-1][1] + + if hasattr(self, '_outcome'): + result = self.defaultTestResult() + self._feedErro...
looks like some APs do not transmit channel information - detect them, now
@@ -6211,6 +6211,11 @@ for(zeiger = scanlist; zeiger < scanlist +SCANLIST_MAX -1; zeiger++) zeiger->frequency = ptrfscanlist->frequency; zeiger->channel = tags.channel; } + else if(tags.channel == 0) + { + zeiger->frequency = ptrfscanlist->frequency; + zeiger->channel = ptrfscanlist->channel; + } zeiger->timestamp = ti...
invoke-error-key-fix: keyDel doesn't actually decrease refcount, so do it differently
@@ -85,17 +85,17 @@ ElektraInvokeHandle * elektraInvokeOpen (const char * elektraPluginName, KeySet config = ksDup (config); } - if (!errorKey) + int errorKeyMissing = !errorKey; + if (errorKeyMissing) { errorKey = keyNew (0, KEY_END); } - else - { - keyIncRef (errorKey); - } Plugin * plugin = elektraPluginOpen (elektr...
Improved menu on windows
@@ -133,18 +133,12 @@ const template = [ notifyListeners("section", "build"); } } - - // { type: "separator" }, - // { role: "togglefullscreen" } ] }, { role: "window", submenu: [ - { role: "minimize" }, - { role: "resetzoom" }, - { role: "zoomin" }, - { role: "zoomout" } + { role: "minimize" } ] }, {
DM sample: update uos launch script for virtio rpmb Added virtio-rpmb for launch android Acked-by: Eddie Dong
@@ -274,6 +274,7 @@ fi -s 3,virtio-blk$boot_dev_flag,/data/$5/$5.img \ -s 7,passthru,0/15/0 \ -s 8,passthru,0/15/1 \ + -s 13,virtio-rpmb \ -s 10,virtio-hyper_dmabuf \ -s 11,wdt-i6300esb \ -s 14,passthru,0/e/0 \
Add average functions for fix16 and fix32
@@ -134,7 +134,11 @@ extern const fix16 sqrttab16[0x10000]; * WARNING: result can easily overflow so its recommended to stick with fix16 type for mul and div operations. */ #define fix32Div(val1, val2) (((val1) << (FIX32_FRAC_BITS / 2)) / ((val2) >> (FIX32_FRAC_BITS / 2))) - +/** + * \brief + * Compute and return the r...
cadillac safety: enforcing index not going outside array size
+#define CADILLAC_TORQUE_MSG_N 4 // 4 torque messages: 0x151, 0x152, 0x153, 0x154 + const int CADILLAC_MAX_STEER = 150; // 1s // real time torque limit to prevent controls spamming // the real time limit is 1500/sec @@ -11,13 +13,14 @@ const int CADILLAC_DRIVER_TORQUE_FACTOR = 4; int cadillac_ign = 0; int cadillac_crui...
use 03 optimization
@@ -1365,7 +1365,7 @@ class GnuCompiler(Compiler): if self.build.is_release: self.c_flags.append('$OPTIMIZE') - self.optimize = '-O2' + self.optimize = '-O3' if self.build.with_ndebug: self.c_defines.append('-DNDEBUG')
Ensure CCS sent before early_data has the correct record version
&& (s)->method->version != TLS_ANY_VERSION) # define SSL_TREAT_AS_TLS13(s) \ - (SSL_IS_TLS13(s) || (s)->early_data_state == SSL_EARLY_DATA_WRITING \ + (SSL_IS_TLS13(s) || (s)->early_data_state == SSL_EARLY_DATA_CONNECTING \ + || (s)->early_data_state == SSL_EARLY_DATA_CONNECT_RETRY \ + || (s)->early_data_state == SSL_E...
Found dtor funcs that were in the vtbl
@@ -561,6 +561,7 @@ factory.register(0x141695E88, "Client::Graphics::Scene::CharacterBase", ["Client 0x1406E3470: "Create", }) factory.register(0x141696198, "Client::Graphics::Scene::Human", ["Client::Graphics::Scene::CharacterBase"], { + 0: "dtor", 1: "CleanupRender", 4: "UpdateRender", 67: "FlagSlotForUpdate", @@ -57...
Small improvements to mininet topo start and shutdown
@@ -7,6 +7,7 @@ from mininet.log import setLogLevel from mininet.net import Mininet from mininet.topo import Topo +from mininet.clean import cleanup as net_cleanup class LinuxRouter(Node): "A Node with IP forwarding enabled." @@ -140,7 +141,7 @@ def setup_net(net, ip_tun=True, quic_tun=True, gdb=False, tcpdump=False): ...
Docker: Install `shfmt` directly
@@ -58,7 +58,6 @@ RUN apt-get update && apt-get -y install \ icheck \ valgrind \ moreutils \ - golang-go \ && rm -rf /var/lib/apt/lists/* RUN cabal update && cabal install hspec QuickCheck @@ -100,9 +99,13 @@ RUN useradd \ USER ${JENKINS_USERID} # shfmt -ENV GOPATH=/home/jenkins/go -ENV PATH="${GOPATH}/bin:${PATH}" -RU...
Add SceSysclib nids
@@ -9227,6 +9227,13 @@ modules: kernel: true nid: 0x7EE45391 functions: + __aeabi_idiv: 0x2518CD9E + __aeabi_lcmp: 0x709077A1 + __aeabi_ldivmod: 0x7554AB04 + __aeabi_lmul: 0xFEE5E751 + __aeabi_uidiv: 0xA9FF1205 + __aeabi_uidivmod: 0xA46CB7DE + __aeabi_ulcmp: 0xFE900DE8 __memcpy_chk: 0x8A0B0815 __memmove_chk: 0x35DBB110...
dooly: update thermal parameter This patch update prochot trigger/release point. trigger at 75C release at 65C BRANCH=puff TEST=verify prochot setting as intended.
@@ -629,12 +629,12 @@ BUILD_ASSERT(ARRAY_SIZE(mft_channels) == MFT_CH_COUNT); const static struct ec_thermal_config thermal_a = { .temp_host = { [EC_TEMP_THRESH_WARN] = 0, - [EC_TEMP_THRESH_HIGH] = C_TO_K(68), + [EC_TEMP_THRESH_HIGH] = C_TO_K(75), [EC_TEMP_THRESH_HALT] = C_TO_K(78), }, .temp_host_release = { [EC_TEMP_T...
Fixed fix16ToStr(..) and fix32ToStr(..) methods
@@ -296,7 +296,7 @@ void fix32ToStr(fix32 value, char *str, u16 numdec) // get fractional part const u16 frac = (((u16) fix32Frac(v)) * (u16) 1000) / ((u16) 1 << FIX32_FRAC_BITS); - u16 len = uint16ToStr(frac, dst, 1); + u16 len = uint16ToStr(frac, dst, 3); if (len < numdec) { @@ -325,7 +325,7 @@ void fix16ToStr(fix16 ...
libbarrelfish: armv8: pmap: implement alignment in determine_addr
@@ -701,27 +701,53 @@ static errval_t determine_addr(struct pmap *pmap, struct memobj *memobj, size_t alignment, - genvaddr_t *vaddr) + genvaddr_t *retvaddr) { assert(pmap->vspace->head); + struct pmap_aarch64* pmap_aarch64 = (struct pmap_aarch64*)pmap; + genvaddr_t vaddr; - assert(alignment <= BASE_PAGE_SIZE); // NYI ...
Bootstrap.bat: Change default behaviour to bootstrap with latest Visual Studio available
SETLOCAL SETLOCAL ENABLEDELAYEDEXPANSION +REM =========================================================================== + +SET SelfPath="%0" +SET VsWherePath="C:/Program Files (x86)/Microsoft Visual Studio/Installer/vswhere.exe" + +REM =========================================================================== + SET ...
fskmodem/example: fixing typo in help with bits/symbol
@@ -22,7 +22,7 @@ void usage() printf("fskmodem_example -- frequency-shift keying example\n"); printf("options:\n"); printf(" h : print help\n"); - printf(" m : bits/symbol, default: 1\n"); + printf(" m : bits/symbol, default: 3\n"); printf(" k : samples/symbol, default: 2*2^m\n"); printf(" b : signal bandwidth default...
appveyor: specify Release configuration properly;
@@ -12,7 +12,9 @@ before_build: - git submodule update --init - md build - cd build - - cmake -DCMAKE_BUILD_TYPE=Release .. + - cmake -DCMAKE_BUILD_TYPE=%configuration% .. + +configuration: Release build: project: build\lovr.sln
Prevent sending add scene command too early
@@ -5569,6 +5569,7 @@ void DeRestPluginPrivate::processGroupTasks() { i->modifyScenesRetries++; + bool needRead = false; Scene *scene = getSceneForId(i->id, i->modifyScenes[0]); if (scene) @@ -5586,6 +5587,7 @@ void DeRestPluginPrivate::processGroupTasks() if (ls->lid() == task.lightNode->id()) { + needRead = true; if ...
Fix Coverity & integer overflow Both are the same issue and both as false positives. Annotate the line so that this is ignored.
@@ -586,9 +586,15 @@ static int recode_wnaf(struct smvt_control *control, int32_t delta = odd & mask; assert(position >= 0); - assert(pos < 32); /* can't fail since current & 0xFFFF != 0 */ if (odd & (1 << (table_bits + 1))) delta -= (1 << (table_bits + 1)); + /* + * Coverity gets confused by the value of pos, thinking...