message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
bio/b_print.c: fix %z failure in 32-bit build. | @@ -267,7 +267,7 @@ _dopr(char **sbuffer,
value = va_arg(args, unsigned LLONG);
break;
case DP_C_SIZE:
- value = (ossl_ssize_t)va_arg(args, size_t);
+ value = va_arg(args, size_t);
break;
default:
value = (LLONG)va_arg(args, unsigned int);
|
codegen: handle spaces in test | @@ -23,18 +23,18 @@ else
exit
fi
-base_output_folder=@CMAKE_CURRENT_BINARY_DIR@/gen
+base_output_folder="@CMAKE_CURRENT_BINARY_DIR@/gen"
$KDB mount "${base_output_folder}spec-data.ini" "$SPEC_ROOT/gen" ni
-for test_folder in @CMAKE_SOURCE_DIR@/tests/shell/gen/*/; do
+for test_folder in "@CMAKE_SOURCE_DIR@"/tests/shell/... |
libhfuzz/instrument: don't evaluate a guard if it's == 0 | @@ -645,6 +645,10 @@ HF_REQUIRE_SSE42_POPCNT void __sanitizer_cov_trace_pc_guard(uint32_t* guard_ptr)
#endif /* defined(__ANDROID__) */
const uint32_t guard = *guard_ptr;
+ if (!guard) {
+ return;
+ }
+
const uint8_t v = ATOMIC_PRE_INC(localCovFeedback->pcGuardMap[guard]);
const uint8_t newval = instrumentCntMap[v];
|
removed unicode spaces | @@ -72,9 +72,9 @@ export class Comments extends Component {
return (
<div className="cb mt3 mb4">
<p className="gray-50 body-large b">
- {this.props.comments.length}
+ <span>{this.props.comments.length} </span>
<span className="black">
- Comments
+ Comments
</span>
</p>
<p className="cl body-regular pointer" onClick={... |
wifi_provisioning: release lock on scan start failure
Merges: | @@ -942,6 +942,7 @@ esp_err_t wifi_prov_mgr_wifi_scan_start(bool blocking, bool passive,
if (esp_wifi_scan_start(&prov_ctx->scan_cfg, false) != ESP_OK) {
ESP_LOGE(TAG, "Failed to start scan");
+ RELEASE_LOCK(prov_ctx_lock);
return ESP_FAIL;
}
|
added KUIIC to supported boards list | @@ -245,6 +245,7 @@ Kinetis
- `Freedom FRDM-KL25Z <https://www.nxp.com/design/development-boards/freedom-development-boards/mcu-boards/freedom-development-platform-for-kinetis-kl14-kl15-kl24-kl25-mcus:FRDM-KL25Z>`__
- `Freedom FRDM-K32L2B3 <https://www.nxp.com/design/development-boards/freedom-development-boards/mcu-bo... |
chip/mt_scp/mt818x/hrtimer.c: Format with clang-format
BRANCH=none
TEST=none | @@ -50,22 +50,22 @@ static inline uint64_t timer_read_raw_system(void)
* sys_high value.
*/
if (timer_ctrl & TIMER_IRQ_STATUS)
- sys_high_adj = sys_high ? (sys_high - 1) : (TIMER_CLOCK_MHZ-1);
+ sys_high_adj = sys_high ? (sys_high - 1) :
+ (TIMER_CLOCK_MHZ - 1);
- return OVERFLOW_TICKS - (((uint64_t)sys_high_adj << 32)... |
Some printers (incorrectly) capitalize their pwg-raster-document-type-supported
values, so do a case-insensitive comparison. | @@ -2799,7 +2799,8 @@ xform_setup(xform_raster_t *ras, /* I - Raster information */
}
}
- type_array = _cupsArrayNewStrings(types, ',');
+ if ((type_array = cupsArrayNew3((cups_array_func_t)strcasecmp, NULL, NULL, 0, (cups_acopy_func_t)_cupsStrAlloc, (cups_afree_func_t)_cupsStrFree)) != NULL)
+ _cupsArrayAddStrings(typ... |
Fix gpstart know nothing about unavailable segments.
The code snippet about `inactiveDbIds` in `_prepare_segment_start()`
make `invalid_segs` always empty, so gpstart will think that there are no segments that are not up. | @@ -449,11 +449,6 @@ class GpStart:
# segments marked down
invalid_segs = self.gparray.get_invalid_segdbs()
- inactiveDbIds = {}
- for segment in invalid_segs:
- inactiveDbIds[segment.getSegmentDbId()] = True
- invalid_segs = [segment for segment in invalid_segs if inactiveDbIds.get(segment.getSegmentDbId()) is None]
-... |
feat: less annoying coloring | @@ -660,7 +660,7 @@ static void*
dispatch_run(void *p_cxt)
{
struct discord_event_cxt *cxt = p_cxt;
- log_info(ANSICOLOR("pthread %u is running to serve %s", ANSI_FG_RED),
+ log_info("thread " ANSICOLOR("%u", ANSI_BG_RED) " is serving %s",
cxt->tid, cxt->p_gw->payload.event_name);
(*cxt->on_event)(cxt->p_gw, &cxt->data... |
on windows use 4TiB area for aligned allocation | @@ -184,6 +184,18 @@ static bool mi_os_mem_free(void* addr, size_t size, mi_stats_t* stats)
#ifdef _WIN32
static void* mi_win_virtual_allocx(void* addr, size_t size, size_t try_alignment, DWORD flags) {
+#if (MI_INTPTR_SIZE >= 8)
+ // on 64-bit systems, use the virtual address area after 4TiB for 4MiB aligned allocatio... |
pkg-config path fix generalize varname=value case. | @@ -137,7 +137,7 @@ function _fix_path_for_file(file, search_pattern)
end
if result then
result = result:gsub("\\", "/")
- vprint("fix path: %s in %s", result, file)
+ vprint("fix path: %s in %s", whole_value, file)
return whole_value:replace(value, result, {plain = true})
end
end)
@@ -154,18 +154,18 @@ function _fix_p... |
[CI] fix blas,lapack
[CI] aaa
bbb
ccc
dddd
eeee
test python
python again | @@ -5,25 +5,24 @@ sudo: required
service: docker
-before_install:
- - CI/before_install.sh
+language: python
matrix:
include:
+ - env:
+ - TASK=siconos_default:docker=false:distrib=ubuntu,14.04:targets=all,
+ - CXX=g++-4.9
+ - CC=gcc-4.9
+ - FC=gfortran-4.9
- - env: TYPE=travis
os: linux
+ python: "3.6"
addons:
apt:
so... |
remove unused local warning | @@ -625,6 +625,7 @@ void _mi_os_free(void* p, size_t size, mi_stats_t* stats) {
void* _mi_os_alloc_aligned(size_t size, size_t alignment, bool commit, bool* large, mi_os_tld_t* tld)
{
+ UNUSED(tld);
if (size == 0) return NULL;
size = _mi_os_good_alloc_size(size);
alignment = _mi_align_up(alignment, _mi_os_page_size());... |
Fix critical bug: sixel_dither_set_diffusion_type() (called from img2sixel -d option) doesn't work well | @@ -1280,27 +1280,21 @@ sixel_quant_apply_palette(
switch (methodForDiffuse) {
case SIXEL_DIFFUSE_NONE:
f_diffuse = diffuse_none;
- f_mask = mask_a;
break;
case SIXEL_DIFFUSE_ATKINSON:
f_diffuse = diffuse_atkinson;
- f_mask = mask_a;
break;
case SIXEL_DIFFUSE_FS:
f_diffuse = diffuse_fs;
- f_mask = mask_a;
break;
case S... |
board/kukui_scp/isp_p2_srv.h: Format with clang-format
BRANCH=none
TEST=none | @@ -13,7 +13,8 @@ struct dip_msg_service {
unsigned char msg[288];
};
-BUILD_ASSERT(member_size(struct dip_msg_service, msg) <= CONFIG_IPC_SHARED_OBJ_BUF_SIZE);
+BUILD_ASSERT(member_size(struct dip_msg_service, msg) <=
+ CONFIG_IPC_SHARED_OBJ_BUF_SIZE);
/* Functions provided by private overlay. */
void dip_msg_handler(... |
Check that packet containing PATH_RESPONSE or PATH_CHALLENGE are padded | @@ -4390,7 +4390,7 @@ void test_ngtcp2_conn_recv_new_connection_id(void) {
/* This will send PATH_CHALLENGE frame */
spktlen = ngtcp2_conn_write_pkt(conn, NULL, NULL, buf, sizeof(buf), ++t);
- CU_ASSERT(spktlen > 0);
+ CU_ASSERT(spktlen >= 1200);
fr.type = NGTCP2_FRAME_PATH_RESPONSE;
memset(fr.path_response.data, 0, si... |
CI/CD: add git proxy for the speedup of shelter build | @@ -25,6 +25,11 @@ jobs:
rune_test=$(docker run -itd --privileged --rm --net host --device /dev/isgx -v $GITHUB_WORKSPACE:/root/inclavare-containers rune-test:${{ matrix.tag }});
echo "rune_test=$rune_test" >> $GITHUB_ENV
+ - name: Config git proxy
+ run: |
+ docker exec $rune_test bash -c "git config --global http.pro... |
Zephyr: Allow RSMRST delay to be set for AMD
AMD platforms also use the RSMRST delay configuration, so allow it to be
set for either AMD or Intel.
BRANCH=None
TEST=zmake testall | @@ -50,6 +50,14 @@ config PLATFORM_EC_POWERSEQ_PP5000_CONTROL
Guard access to the PP5000 GPIO using mutex locks, allowing
the rail to be changed in a task-safe manner.
+config PLATFORM_EC_POWERSEQ_RSMRST_DELAY
+ bool "Wait at least 10ms before deasserting RSMRST to PCH"
+ default y if AP_X86_INTEL_TGL
+ depends on AP_X... |
py/mpprint: Support printing %ld and %lu formats on 64-bit archs.
Fixes issue | @@ -503,22 +503,28 @@ int mp_vprintf(const mp_print_t *print, const char *fmt, va_list args) {
chrs += mp_print_strn(print, str, prec, flags, fill, width);
break;
}
- case 'u':
- chrs += mp_print_int(print, va_arg(args, unsigned int), 0, 10, 'a', flags, fill, width);
- break;
- case 'd':
- chrs += mp_print_int(print, v... |
net/oic; fix mbuf leak. Noticed in inspection. | @@ -224,6 +224,7 @@ coap_notify_observers(oc_resource_t *resource,
response_buf = &response_buffer;
if (response_buf->code == OC_IGNORE) {
OC_LOG_ERROR("coap_notify_observers: Resource ignored request\n");
+ os_mbuf_free_chain(m);
return num_observers;
}
}
|
addded some useful WPS IE tags | @@ -438,6 +438,13 @@ typedef struct wpaie_tag wpaie_t;
struct wpsie_tag
{
uint16_t type;
+#define WPS_CONFIGMETHODS 0x1008
+#define WPS_DEVICENAME 0x1011
+#define WPS_MANUFACTURER 0x1021
+#define WPS_MODELNAME 0x1023
+#define WPS_SERIALNUMBER 0x1042
+#define WPS_STATE 0x1044
+#define WPS_VERSION 0x104a
uint16_t len;
ui... |
build: fix bind errors in darwin sandboxes
See | @@ -160,4 +160,8 @@ stdenvNoCC.mkDerivation {
exit "$fail"
'';
+
+ # Fix 'bind: operation not permitted' when nix.useSandbox = true on darwin.
+ # See https://github.com/NixOS/nix/blob/5f6840fbb49ae5b534423bd8a4360646ee93dbaf/src/libstore/build.cc#L2961
+ __darwinAllowLocalNetworking = true;
}
|
router: use instance flags rather than plugin flags | @@ -137,7 +137,7 @@ int flb_router_io_set(struct flb_config *config)
* Pre-routing rules cannot exists for a plugin which have dynamic
* tags.
*/
- if (i_ins->p->flags & FLB_INPUT_DYN_TAG) {
+ if (i_ins->flags & FLB_INPUT_DYN_TAG) {
flb_debug("[router] input=%s 'DYNAMIC TAG'",
i_ins->name);
continue;
|
Update compiling.md
Fixes | @@ -43,7 +43,7 @@ $ cd build/Release; sudo make install
* Debian based distros (debian, ubuntu)
* `build-essential`
* `cmake`
-* `libusb-1.0` (plus development headers for building, on debian based distros `libusb-1.0.0-dev` package)
+* `libusb-1.0` (plus development headers for building, on debian based distros `libus... |
ias_zone.cpp code cleanup | @@ -71,20 +71,7 @@ void DeRestPluginPrivate::handleIasZoneClusterIndication(const deCONZ::ApsDataIn
for (auto &s : sensors)
{
if (!(s.address().ext() == ind.srcAddress().ext() && s.fingerPrint().endpoint == ind.srcEndpoint() &&
- (s.fingerPrint().hasInCluster(IAS_ZONE_CLUSTER_ID) || s.fingerPrint().hasInCluster(IAS_ZON... |
core: rconf: fix leak when config fails (CID 165165) | @@ -240,6 +240,7 @@ static int mk_rconf_read(struct mk_rconf *conf, const char *path)
ret = mk_rconf_read(conf, buf + 9);
if (ret == -1) {
conf->level--;
+ fclose(f);
return -1;
}
continue;
@@ -247,6 +248,7 @@ static int mk_rconf_read(struct mk_rconf *conf, const char *path)
else if (buf[0] == '@' && len > 3) {
ret = m... |
Add "includes" argument to "yara_library" Bazel rule. | @@ -63,6 +63,7 @@ module_list = rule(
def yara_library(
name,
defines = [],
+ includes = [],
modules = [],
modules_srcs = [],
deps = [],
@@ -217,7 +218,7 @@ def yara_library(
"libyara/include/yara/rules.h",
],
copts = copts,
- includes = [
+ includes = includes + [
"libyara/modules",
"libyara/include",
"libyara",
|
engine_dispatch: always validate if a 'retry' is possible | int flb_engine_dispatch_retry(struct flb_task_retry *retry,
struct flb_config *config)
{
+ int ret;
size_t buf_size;
struct flb_thread *th;
struct flb_task *task;
@@ -43,12 +44,36 @@ int flb_engine_dispatch_retry(struct flb_task_retry *retry,
i_ins = task->i_ins;
/* Set file up/down based on restrictions */
- flb_input... |
Add fill helper function for formatting | @@ -35,6 +35,11 @@ static void format_pointer(buffer dest, struct formatter_state *s, vlist *a)
print_number(dest, x, 16, pad);
}
+static inline void fill(buffer b, int len, u8 c)
+{
+ for (int i = 0; i < len; i++) push_u8(b, c);
+}
+
static void format_number(buffer dest, struct formatter_state *s, vlist *a)
{
int bas... |
nimble/ll: Fix scan proc handling
Fall-through for ll_state was not handled properly after some changes
and this means scan proc could disable phy mid-event. | @@ -1093,12 +1093,18 @@ ble_ll_scan_event_proc(struct ble_npl_event *ev)
switch (ble_ll_state_get()) {
#if MYNEWT_VAL(BLE_LL_ROLE_BROADCASTER)
case BLE_LL_STATE_ADV:
+ start_scan = false;
+ break;
#endif
#if MYNEWT_VAL(BLE_LL_ROLE_PERIPHERAL) || MYNEWT_VAL(BLE_LL_ROLE_CENTRAL)
case BLE_LL_STATE_CONNECTION:
+ start_scan... |
Add Claroty to the "who's using YARA" list. | @@ -61,6 +61,7 @@ awesome list of [YARA-related stuff](https://github.com/InQuest/awesome-yara).
* [BinaryAlert](https://github.com/airbnb/binaryalert)
* [Blue Coat](http://www.bluecoat.com/products/malware-analysis-appliance)
* [Blueliv](http://www.blueliv.com)
+* [Claroty](https://claroty.com/continuous-threat-detect... |
mustache fix named args | static ID call_func_id;
static ID to_s_func_id;
-static ID filename_id;
-static ID data_id;
-static ID template_id;
+static VALUE filename_id;
+static VALUE data_id;
+static VALUE template_id;
/* *****************************************************************************
C <=> Ruby Data allocation
*******************... |
npcx: Explicitly disable alt-function for unused pins
Make the unused pins as GPIO and disable any alt-function.
BRANCH=None
TEST=make buildall -j | @@ -616,10 +616,13 @@ void gpio_pre_init(void)
}
#endif
- /* Configure unused pins as INPUT with PU to save power. */
- for (i = 0; i < unused_pin_count; i++, u++)
+ /* Configure unused pins as GPIO INPUT with PU to save power. */
+ for (i = 0; i < unused_pin_count; i++, u++) {
gpio_set_flags_by_mask(u->port, u->mask,
... |
xfconf-plugin: Exlcude plugin if pkgconfig is not available | @@ -2,6 +2,11 @@ include (LibAddMacros)
find_package (PkgConfig REQUIRED)
+if (NOT PKG_CONFIG_FOUND)
+ remove_plugin (xfconf "Need PkgConfig needed to find dependencies for xfconf plugin")
+ return ()
+endif ()
+
if (DEPENDENCY_PHASE)
pkg_check_modules (XFCE QUIET libxfconf-0)
|
input range is [0..2Pi] | * Computes the trigonometric sine function using a combination of table lookup
* and linear interpolation. There are separate functions for
* Q15, Q31, and floating-point data types.
- * The input to the floating-point version is in radians while the
+ * The input to the floating-point version is in radians and in the ... |
admin/test-suite: add ohpc-test to singularity group, required for
container use on current Leap OS | @@ -66,6 +66,9 @@ find %{buildroot}/home/%{testuser}/tests -name .gitignore -exec rm {} \;
getent passwd %{testuser} >/dev/null || \
/usr/sbin/useradd -U -c "OpenHPC integration test account" \
-s /bin/bash -m -b /home %{testuser}
+%if 0%{?suse_version}
+usermod -a -G singularity ohpc-test
+%endif
exit 0
%files
|
BugID: update vscode make task | "version": "2.0.0",
"tasks": [
{
- "label": "alios-studio: Make",
+ "label": "alios-studio: Config",
"type": "shell",
"command": "aos",
"args": [
"make",
"helloworld@developerkit",
"-c",
- "config;",
- "aos",
+ "config"
+ ],
+ "presentation": {
+ "focus": true
+ }
+ },
+ {
+ "label": "alios-studio: Make",
+ "type": "sh... |
update SELinux patch for 4.3.4 | ---- nagios-4.3.1/daemon-init.in 2017-02-23 12:00:40.000000000 -0800
-+++ nagios-4.3.1.patch/daemon-init.in 2017-02-27 14:54:05.000000000 -0800
-@@ -195,6 +195,7 @@
- rm -f $NagiosCommandFile
+--- a/daemon-init.in 2017-08-24 14:43:48.000000000 -0700
++++ b/daemon-init.in 2017-09-29 09:25:55.000000000 -0700
+@@ -210,6 +... |
limit number of error messages to 10 | @@ -6,6 +6,7 @@ terms of the MIT license. A copy of the license can be found in the file
-----------------------------------------------------------------------------*/
#include "mimalloc.h"
#include "mimalloc-internal.h"
+#include "mimalloc-atomic.h"
#include <stdio.h>
#include <string.h> // strcmp
@@ -50,7 +51,7 @@ s... |
Add simulation type debug output | @@ -42,6 +42,7 @@ void debug_sim(struct sim_data* data)
debug_printf(DP_INFO, "\tB1:%f\n\n", data->voxel.b1);
debug_printf(DP_WARN, "Seq-Parameter:\n");
+ debug_printf(DP_INFO, "\tSimulation Type:%d\n", data->seq.type);
debug_printf(DP_INFO, "\tSequence:%d\n", data->seq.seq_type);
debug_printf(DP_INFO, "\tTR:%f\n", dat... |
spider: blank lines | ::
++ yarn-to-byk
|= [=yarn =bowl:gall]
-
=/ [* * =desk]
~| "no desk associated with {<tid>}"
%- ~(got by serving.state) (yarn-to-tid yarn)
%cc
/(scot %p our.bowl)/[desk]/(scot %da now.bowl)/[from]/[to]
==
-
--
|
filter_aws: expose metadata into main context env | #include <fluent-bit/flb_upstream.h>
#include <fluent-bit/flb_io.h>
#include <fluent-bit/flb_kv.h>
-
+#include <fluent-bit/flb_env.h>
#include <monkey/mk_core/mk_list.h>
#include <msgpack.h>
@@ -46,6 +46,64 @@ static int get_ec2_metadata(struct flb_filter_aws *ctx);
static int get_metadata_by_key(struct flb_filter_aws ... |
kconfig: minor fix for default dark theme option
Changes the name of the CONFIG variable from
LV_THEME_DEFAULT_PALETTE_LIGHT to LV_THEME_DEFAULT_DARK.
Most likely it should have been included in | @@ -498,7 +498,7 @@ menu "LVGL configuration"
config LV_USE_THEME_DEFAULT
bool "A simple, impressive and very complete theme"
default y
- config LV_THEME_DEFAULT_PALETTE_LIGHT
+ config LV_THEME_DEFAULT_DARK
bool "Yes to set light mode, No to set dark mode"
default y
depends on LV_USE_THEME_DEFAULT
|
[mquicly] Implement quicly_{request_stop, reset_stream, close} | @@ -105,12 +105,18 @@ int quicly_is_blocked(quicly_conn_t *conn)
void quicly_request_stop(quicly_stream_t *stream, int err)
{
- assert(0 && "unimplemented");
+ return;
}
void quicly_reset_stream(quicly_stream_t *stream, int err)
{
- assert(0 && "unimplemented");
+ /* dispose sendbuf state */
+ quicly_sendstate_reset(&s... |
libhfcommon: use POSIX_MADV_RANDOM with input/feedback mappings | @@ -480,6 +480,9 @@ void* files_mapSharedMem(size_t sz, int* fd, const char* name) {
close(*fd);
return NULL;
}
+ if (posix_madvise(ret, sz, POSIX_MADV_RANDOM) == -1) {
+ PLOG_W("posix_madvise(sz=%zu, POSIX_MADV_RANDOM)", sz);
+ }
return ret;
}
|
libflash/test: Generate header dependencies for tests
Cc: stable | @@ -30,7 +30,7 @@ check_PROGRAMS = \
libflash/test/test-ecc \
libflash/test/test-mbox
-TEST_FLAGS = -D__TEST__
+TEST_FLAGS = -D__TEST__ -MMD -MP
.PHONY: libflash-check libflash-coverage
libflash-check: $(check_PROGRAMS:%=%-check) $(CORE_TEST:%=%-gcov-run)
@@ -162,3 +162,6 @@ libflash-test-gcov-clean:
$(RM) $(GCOV_OBJ_S... |
CMSIS-DSP: SDF improvement
Event recorder improvements for the VHT implementation of the audio source and sink. | @@ -43,21 +43,22 @@ Definition of Event IDs for Keil MDK EventRecorder
/* Node events */
#define Evt_Sink EventID (EventLevelAPI, EvtNodes, 0x00)
-#define Evt_Source EventID (EventLevelAPI, EvtNodes, 0x01)
+#define Evt_SinkVal EventID (EventLevelOp, EvtNodes, 0x01)
+#define Evt_Source EventID (EventLevelAPI, EvtNodes, ... |
Add common aliases of existing media types.
.cur as an alias of .ico
.xht as an alias of .xhtml | @@ -13,6 +13,7 @@ MIMEMAP("cco", "application/x-cocoa")
MIMEMAP("crt", "application/x-x509-ca-cert")
MIMEMAP("css", "text/css")
MIMEMAP("csv", "text/csv")
+MIMEMAP("cur", "image/x-icon")
MIMEMAP("deb", "application/octet-stream")
MIMEMAP("der", "application/x-x509-ca-cert")
MIMEMAP("dll", "application/octet-stream")
@@... |
I'm an idiot, fix for parser_init.
Dear everyone,
I am an idiot.
This fixes
Yours,
Nathan | @@ -2200,6 +2200,8 @@ htp__connection_writecb_(struct bufferevent * bev, void * arg)
if (c->request->flags & EVHTP_REQ_FLAG_KEEPALIVE)
{
+ htp_type type;
+
htp__request_free_(c->request);
HTP_FLAG_ON(c, EVHTP_CONN_FLAG_KEEPALIVE);
@@ -2219,7 +2221,19 @@ htp__connection_writecb_(struct bufferevent * bev, void * arg)
c->... |
DWARF: handle out of memory errors | @@ -141,7 +141,15 @@ load_debug_frame (const char *file, char **buf, size_t *bufsize, int is_local,
if (chdr->ch_type == ELFCOMPRESS_ZLIB)
{
*bufsize = destSize = chdr->ch_size;
+
GET_MEMORY (*buf, *bufsize);
+ if (!*buf)
+ {
+ Debug (2, "failed to allocate zlib .debug_frame buffer, skipping\n");
+ munmap(ei.image, ei.... |
bugID:19236743:[coap server]free send node while mutex is locked to avoid double free | @@ -397,13 +397,18 @@ static int CoAPRespMessage_handle(CoAPContext *context, NetworkAddr *remote, CoA
#ifndef COAP_OBSERVE_CLIENT_DISABLE
CoAPObsClient_add(ctx, message, remote, node);
#endif
+ if (!node->keep) {
+ if (NULL != node->message) {
+ coap_free(node->message);
+ }
+ coap_free(node);
+ COAP_DEBUG("The messag... |
automation: Fix for using nrfconnect debugger without serial
If you set your debugger serial to "" or null in settings_v2_agent_specific.json
to pick any debugger for nRFconnectSDK based targets you would get an exception. | @@ -97,6 +97,8 @@ def flash(ctx, debugger_serial="", output_name=DEFAULT_OUTPUT_NAME,
)
def log(ctx, mcu="NRF5340_XXAA_APP", debugger_serial=None):
"""Open a log terminal"""
+ if debugger_serial == "":
+ debugger_serial = None
with URttReader(mcu, jlink_serial=debugger_serial) as rtt_reader:
while True:
data = rtt_read... |
error: added TODO for macro injection in future versions | @@ -129,7 +129,9 @@ static ostream & printKDBErrors (ostream & os, parse_t & p)
<< " keySetMeta(warningKey, buffer, \"" << p[i]["number"] << "\");" << endl
<< " buffer[12] = '\\0'; strcat(buffer, \"/description\");" << endl
<< " keySetMeta(warningKey, buffer, \"" << p[i]["description"] << "\");" << endl
- << " buffer[1... |
readme: switched AUR install method from yaourt to pacaur | @@ -42,7 +42,7 @@ the user would have with other frameworks:
### Packages
* Mac OS X: `brew install snaipe/soft/criterion`
-* [AUR](https://aur.archlinux.org/packages/criterion/): `yaourt -S criterion`
+* [AUR](https://aur.archlinux.org/packages/criterion/): `pacaur -S criterion`
* Ubuntu/Debian:
```bash
|
fix build
Note: mandatory check (NEED_CHECK) was skipped | @@ -210,7 +210,6 @@ namespace NCB::NModelEvaluation {
const TFeatureLayout* featureLayout
) const override {
ValidateInputFeatures(floatFeatures, catFeatures);
- const size_t docCount = Max(catFeatures.size(), floatFeatures.size());
CB_ENSURE(
catFeatures.empty(),
"Cat features are not supported on GPU, should be empty... |
libhfuzz/memcmp: undef all glibc functions first before use | @@ -147,39 +147,59 @@ static inline void* _memmem(
__attribute__((weak)) XVAL(ret) XVAL(func)(__VA_ARGS__)
/* Typical libc wrappers */
+#if defined strcmp
+#undef strcmp
+#endif
HF_WEAK_WRAP(int, strcmp, const char* s1, const char* s2) {
return _strcmp(s1, s2, __builtin_return_address(0));
}
-
+#if defined strcasecmp
+... |
Tests: added notification on unsuccessful connect(). | @@ -60,7 +60,7 @@ class TestHTTP(TestUnit):
sock.connect(connect_args)
except ConnectionRefusedError:
sock.close()
- return None
+ self.fail('Client can\'t connect to the server.')
else:
sock = kwargs['sock']
|
Fixing dox files | @@ -15,9 +15,8 @@ GENERATE_TAGFILE = doc/tag/ble.tag
# Directories containing library source code.
INPUT = doc \
doc/lib \
- lib/include \
- lib/include/types \
- lib/common
+ libraries/c_sdk/standard/ble/include \
+ libraries/abstractions/ble_hal/include
# Library file names.
FILE_PATTERNS = *ble*.c *ble*.h *ble*.txt
|
admin/lmod-defaults: add support for mpich builds that have ucx and ofi
variants. | #----------------------------------------------------------------------------eh-
%include %{_sourcedir}/OHPC_macros
+%{!?transport: %global transport %{nil}}
Summary: OpenHPC default login environments
-Name: lmod-defaults-%{compiler_family}-%{mpi_family}%{PROJ_DELIM}
+Name: lmod-defaults-%{compiler_family}-%{mpi_famil... |
serf: fix format-truncation errors in GCC 8 | @@ -220,8 +220,8 @@ _serf_grab(u3_serf* sef_u)
mkdir(nam_c, 0700);
}
- c3_c man_c[2048];
- snprintf(man_c, 2048, "%s/%s-serf.txt", nam_c, wen_c);
+ c3_c man_c[2054];
+ snprintf(man_c, 2053, "%s/%s-serf.txt", nam_c, wen_c);
fil_u = fopen(man_c, "w");
fprintf(fil_u, "%s\r\n", wen_c);
@@ -603,7 +603,7 @@ u3_noun
u3_serf_w... |
vppinfra: fix bitmap can't get correct next clear index
when bitmap vec len is 1 and all the bits has been
occupied, clib_bitmap_next_clear(ai, 63) will
return result:65 which should be 64. It will lead to
missing iteration for pool_foreach.
Type: fix | @@ -742,8 +742,7 @@ clib_bitmap_next_clear (uword * ai, uword i)
return log2_first_set (t) + i0 * BITS (ai[0]);
}
- /* no clear bit left in bitmap, return bit just beyond bitmap */
- return (i0 * BITS (ai[0])) + 1;
+ return i0 * BITS (ai[0]);
}
return i;
}
|
Fix merging of Lua binary rocks for Windows. | @@ -119,7 +119,8 @@ do
done
luas=$(find * -iname '*.lua' | sed 's/.*/"&",/g' \
| sed ':a;N;$!ba;s/\n/ /g' | sed '$s/,$//')
- libs=$(find * -iname '*.so' | sed 's/.*/"&",/g' \
+ libs=$(find * -iname '*.so' -or -iname '*.dll' \
+ | sed 's/.*/"&",/g' \
| sed ':a;N;$!ba;s/\n/ /g' | sed '$s/,$//')
sed -i "s/${pkgn}${pkgv}/$... |
[net][sal] Add shutdown type options. | @@ -48,16 +48,12 @@ typedef uint16_t in_port_t;
#define SOCK_MAX (SOCK_RAW + 1)
-/*
- * Option flags per-socket. These must match the SOF_ flags in ip.h (checked in init.c)
- */
+/* Option flags per-socket. These must match the SOF_ flags in ip.h (checked in init.c) */
#define SO_REUSEADDR 0x0004 /* Allow local address... |
MeteoFrance contribution: GRIB spectral complex packing (Part 1) | @@ -1338,16 +1338,18 @@ static int pack_double_optimised(grib_accessor* a, const double* val, size_t *le
"unable to find nearest_smaller_value of %g for %s",min,self->reference_value);
return GRIB_INTERNAL_ERROR;
}
+ d = grib_power(+decimal_scale_factor,10);
}
else
{
- if (grib_get_nearest_smaller_value(gh,self->refere... |
component/bt: Fix bug of SDP find services by uuid always return success | @@ -354,17 +354,19 @@ static void sdp_copy_raw_data (tCONN_CB *p_ccb, BOOLEAN offset)
type = *p++;
p = sdpu_get_len_from_type (p, type, &list_len);
}
- if (list_len && list_len < cpy_len ) {
+ if (list_len < cpy_len ) {
cpy_len = list_len;
}
#if (SDP_DEBUG_RAW == TRUE)
- SDP_TRACE_WARNING("list_len :%d cpy_len:%d raw_s... |
Fix invalid yaml in onebranch linux build | @@ -13,7 +13,6 @@ jobs:
ob_sdl_binskim_break: true # https://aka.ms/obpipelines/sdl
ob_sdl_codeSignValidation_excludes: -|**\*.exe # Disable signing requirements for test executables
steps:
- target: linux_build_container
- task: PowerShell@2
displayName: Prepare Build Machine
target: linux_build_container
|
80-test_ssl_new.t: make dependencies on CTLOG_FILE and TEST_CERTS_DIR explicit | # in the file LICENSE in the source distribution or at
# https://www.openssl.org/source/license.html
+# For manually running these tests, set specific environment variables like this:
+# CTLOG_FILE=test/ct/log_list.cnf
+# TEST_CERTS_DIR=test/certs
+# For details on the environment variables needed, see test/README.sslt... |
io_tls: remove tls_handshake_* logic | @@ -329,14 +329,6 @@ int net_io_tls_handshake(void *_u_conn, void *_th)
struct flb_thread *th = _th;
-#ifdef FLB_HAVE_TLS
- time_t now = time(NULL);
- if (u->tls->handshake_timeout > 0) {
- u_conn->tls_handshake_start = now;
- u_conn->tls_handshake_timeout = now + u->tls->handshake_timeout;
- }
-#endif
-
session = flb_... |
Fix cgen.go comment typo | @@ -67,10 +67,10 @@ const (
// reading or writing the next byte (and advancing the stream) is essentially
// "etc = *iop_a_src++" or "*io_a_dst++ = etc".
//
-// The other two prefixes, giving names like io1_etc and io2_etc, are
-// auxilliary pointers: lower and upper inclusive bounds. As an iop_etc pointer
-// advance... |
Disalbe duplicate windows builds | @@ -11,6 +11,9 @@ platform:
- x64
- x86
+# Do not build feature branch with open Pull Requests
+# The build is redundant and gets queued behind the other one.
+skip_branch_with_pr: true
# Via https://github.com/apitrace/apitrace/blob/master/appveyor.yml
|
each_http_request(): fix use-after-free by deallocating rel_uri after registrant lookup | @@ -369,21 +369,27 @@ closure_function(2, 1, void, each_http_request,
}
top_len++;
}
- buffer_consume(rel_uri, top_len);
+ http_listener_registrant match = 0;
+ list_foreach(&hl->registrants, l) {
+ http_listener_registrant r = struct_from_list(l, http_listener_registrant, l);
+ if (top_len == runtime_strlen(r->uri) &&... |
py/malloc: Give a compile warning if using finaliser without GC.
Fixes issue | #define realloc(ptr, n) gc_realloc(ptr, n, true)
#define realloc_ext(ptr, n, mv) gc_realloc(ptr, n, mv)
#else
+
+// GC is disabled. Use system malloc/realloc/free.
+
+#if MICROPY_ENABLE_FINALISER
+#error MICROPY_ENABLE_FINALISER requires MICROPY_ENABLE_GC
+#endif
+
STATIC void *realloc_ext(void *ptr, size_t n_bytes, bo... |
da1469x; fix typo in syscfg keyword | @@ -43,7 +43,7 @@ syscfg.defs:
state is disabled.
value: 4
MCU_GPIO_MAX_IRQ:
- desriptin: >
+ description: >
Maximum number of GPIO interrupts that can be configured at
once.
value: 4
|
apps/blemesh_shell: Use Invalid Bearer cb Testing API | @@ -56,10 +56,16 @@ static void model_unbound_cb(u16_t addr, struct bt_mesh_model *model,
"model %p\n", addr, key_idx, model);
}
+static void invalid_bearer_cb(u8_t opcode)
+{
+ console_printf("Invalid bearer: opcode 0x%02x\n", opcode);
+}
+
static struct bt_test_cb bt_test_cb = {
.mesh_net_recv = net_recv_ev,
.mesh_mo... |
session UPDATE send EOF on channel before close | @@ -740,6 +740,7 @@ nc_session_free_transport(struct nc_session *session, int *multisession)
#ifdef NC_ENABLED_SSH
case NC_TI_LIBSSH:
if (connected) {
+ ssh_channel_send_eof(session->ti.libssh.channel);
ssh_channel_free(session->ti.libssh.channel);
}
/* There can be multiple NETCONF sessions on the same SSH session (NE... |
Add IImageListToHIMAGELIST | @@ -2486,8 +2486,7 @@ HIMAGELIST PhImageListCreate(
if (FAILED(status))
return NULL;
- // Win32 HIMAGELIST is always a pointer to the IImageList interface. (dmex)
- return (HIMAGELIST)imageList;
+ return IImageListToHIMAGELIST(imageList);
}
BOOLEAN PhImageListDestroy(
|
Rust: Let rustc link to the built libelektra.so | @@ -4,9 +4,10 @@ use std::env;
use std::path::PathBuf;
fn main() {
- // Tell cargo to tell rustc to link the system elektra
- // shared library.
- // Needs to depend on some CMAKE variable indicating static or shared build
+ // Add libelektra build directory to rustc's search path
+ println!("cargo:rustc-link-search=@C... |
ci: run apt update before workflow | @@ -15,6 +15,7 @@ jobs:
# Note: the default jsonschema is too old.
# xbstrap should fix this by demanding a recent version.
run: |
+ sudo apt-get update
sudo apt-get install ninja-build g++-10 g++-10-riscv64-linux-gnu qemu-user
sudo pip3 install setuptools
sudo pip3 install -U jsonschema
|
mangle: remove explicit Append as it inflates files too much | @@ -82,6 +82,11 @@ static inline size_t mangle_getOffSet(run_t* run) {
return mangle_getLen(run->dynfile->size) - 1;
}
+/* Offset which can be equal to the file size */
+static inline size_t mangle_getOffSetPlus1(run_t* run) {
+ return mangle_getLen(run->dynfile->size + 1) - 1;
+}
+
static inline void mangle_Move(run_t... |
Minor cleanup and %143-ization to tester.hoon | ++ tester-type _(init-test `@uvJ`0)
::
++ tester
- |_ $: error-lines/(list tape) :: output messages
- eny/@uvJ :: entropy
- check-iterations/@u :: # of check trials
- current-iteration/@u :: current iteration
+ |_ $: error-lines=(list tape) :< output messages
+ eny=@uvJ :< entropy
+ check-iterations=@u :< # of check tr... |
Fix for correct openssl error when adding windows CA certificates to
the openssl trust store. | @@ -1162,10 +1162,11 @@ add_WIN_cacerts_to_openssl_store(SSL_CTX* tls_ctx)
(const unsigned char **)&pTargetCert->pbCertEncoded,
pTargetCert->cbCertEncoded);
if (!cert1) {
+ unsigned long error = ERR_get_error();
/* return error if a cert fails */
verbose(VERB_ALGO, "%s %d:%s",
"Unable to parse certificate in memory",
-... |
Removed C++ unit test
* Removed cxx exception frequent intr unit test
It sometimes stalled by too frequent interrupts
in some configurations, causing CI trouble.
* Opened Jira for further investiation | @@ -251,60 +251,6 @@ TEST_CASE("c++ exceptions emergency pool", "[cxx] [exceptions] [ignore] [leaks="
#endif
}
-
-#define TIMEOUT 19
-
-#define RECURSION 19
-
-static esp_timer_handle_t crash_timer;
-
-static uint32_t result = 0;
-
-uint32_t calc_fac(uint32_t n) {
- if (n == 1 || n == 0) {
- return 1;
- } else {
- retu... |
drv/counter/ev3dev_stretch_iio: flush after read
Without it, the values do not update. | @@ -48,6 +48,10 @@ static pbio_error_t pbdrv_counter_ev3dev_stretch_iio_get_count(pbdrv_counter_dev
return PBIO_ERROR_IO;
}
+ if (fflush(data->count) != 0) {
+ return PBIO_ERROR_IO;
+ }
+
return PBIO_SUCCESS;
}
@@ -66,6 +70,10 @@ static pbio_error_t pbdrv_counter_ev3dev_stretch_iio_get_rate(pbdrv_counter_dev_
return PB... |
virtio-net input closure: remove unneeded check for NULL xpbuf
The xbpuf pointer is assigned to the closure after allocating the
xpbuf structure in the post_receive() function, and cannot be NULL,
thus there is no need to check for a NULL value in the closure
function. | @@ -185,7 +185,6 @@ closure_function(1, 1, void, input,
xpbuf x = bound(x);
vnet vn= x->vn;
// under what conditions does a virtio queue give us zero?
- if (x != NULL) {
struct virtio_net_hdr *hdr = (struct virtio_net_hdr *)x->p.pbuf.payload;
boolean err = false;
len -= vn->net_header_len;
@@ -194,24 +193,19 @@ closure... |
[RPC] Fix getVotes input handling | @@ -126,7 +126,7 @@ func (rpc *AergoRPCService) ListBlockHeaders(ctx context.Context, in *types.List
// real-time streaming most recent block header
func (rpc *AergoRPCService) ListBlockStream(in *types.Empty, stream types.AergoRPCService_ListBlockStreamServer) error {
- var prev *types.Block;
+ var prev *types.Block
f... |
Avoid calling s2n_get_compatible_cert_chain_and_key twice
Store the relevant certificate for a higher tls version in a separate
bit of state. | @@ -940,6 +940,7 @@ static int s2n_set_cipher_as_server(struct s2n_connection *conn, uint8_t * wire,
{
uint8_t renegotiation_info_scsv[S2N_TLS_CIPHER_SUITE_LEN] = { TLS_EMPTY_RENEGOTIATION_INFO_SCSV };
struct s2n_cipher_suite *higher_vers_match = NULL;
+ struct s2n_cert_chain_and_key *higher_vers_cert = NULL;
/* RFC 75... |
add system() for IAR | * Change Logs:
* Date Author Notes
* 2021-02-13 Meco Man implement exit() and abort()
+ * 2021-02-20 Meco Man add system()
*/
#include <rtthread.h>
@@ -16,3 +17,9 @@ void __exit (int status)
__rt_libc_exit(status);
while(1);
}
+
+int system(const char * string)
+{
+ extern int __rt_libc_system(const char *string);
+ re... |
Docs - adding gpbackup problem with indexes on parent/exchanged partitioned tables | 5.1.0 and later<ph otherprops="pivotal">, or 4.3.17.0 and later</ph>).</p>
<p><codeph>gpbackup</codeph> and <codeph>gprestore</codeph> are experimental features in this
release, and have the following limitations:<ul id="ul_uqh_hhd_tbb">
+ <li>If you create an index on a parent partitioned table, <codeph>gpbackup</code... |
NVMe: Fixing file type for Verilog headers in sim | @@ -239,6 +239,8 @@ if { $nvme_used == TRUE } {
set_property used_in_simulation false [get_files $ip_dir/nvme/nvme.srcs/sources_1/bd/nvme_top/nvme_top.bd]
add_files -fileset sim_1 -norecurse $sim_dir/nvme_lite
add_files -fileset sim_1 -norecurse $hdl_dir/nvme/nvme_defines.sv
+ set_property file_type {Verilog Header} [g... |
added corrected tags for catboost, and runtime task_type checking for 'deterministic' tag | @@ -89,11 +89,11 @@ _CATBOOST_SKLEARN_COMPAT_TAGS = {
'non_deterministic': False,
'requires_positive_X': False,
'requires_positive_y': False,
- 'X_types': ['2darray'],
- 'poor_score': False,
- 'no_validation': False,
- 'multioutput': False,
- "allow_nan": False,
+ 'X_types': ['2darray','sparse','categorical'],
+ 'poor_... |
Enable Visual Studio 2019 builds. | version: 1.0.{build}
-image: Visual Studio 2017
+image: Visual Studio 2019
environment:
SCONSMODE: "MODE=DEBUG"
+ CONAN_PASSWORD:
+ secure: /oF4w+hmQPXWuANB2bQOks3rTLEAimrYPGRt4VBuZQY23Bk1ElBJetGBTuT5Pd2e
matrix:
- SCONSOPTS: "ARCH=x86_64 TOOLSET=msvc"
TEST_PYTHON3: "C:/Python35-x64/python.exe"
@@ -17,15 +19,15 @@ envi... |
VERSION bump to version 2.0.235 | @@ -61,7 +61,7 @@ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
# set version of the project
set(LIBYANG_MAJOR_VERSION 2)
set(LIBYANG_MINOR_VERSION 0)
-set(LIBYANG_MICRO_VERSION 234)
+set(LIBYANG_MICRO_VERSION 235)
set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION}... |
Fix query logging in simple protocol mode | @@ -565,6 +565,19 @@ od_frontend_remote_server(od_relay_t *relay, char *data, int size)
return OD_OK;
}
+static void od_frontend_log_query(od_instance_t *instance, od_client_t *client, char *data, int size)
+{
+ uint32_t query_len;
+ char *query;
+ int rc;
+ rc = kiwi_be_read_query(data, size, &query, &query_len);
+ if... |
Tidy pack_16x16b_to_16x2b comments | @@ -52,11 +52,10 @@ static INLINE uint32_t pack_16x16b_to_16x2b(__m256i src)
{
/*
* For each 16-bit element in src:
- * Clip it to max. 3 (assuming the numbers to be unsigned)
- * Shift
- * 0000 0000 0000 00XY Clip to [0, 3]
+ * ABCD EFGH IJKL MNOP Original elements
+ * 0000 0000 0000 00XY Element clipped to [0, 3] usi... |
interface: remove My Channels link from GroupSwitcher
Fixes urbit/landscape#1331 | @@ -114,7 +114,6 @@ export function GroupSwitcher(props: {
width="100%"
alignItems="stretch"
>
- {(props.baseUrl === '/~landscape/home') ?
<GroupSwitcherItem to="">
<Icon
mr={2}
@@ -124,16 +123,6 @@ export function GroupSwitcher(props: {
/>
<Text>All Groups</Text>
</GroupSwitcherItem>
- :
- <GroupSwitcherItem to="/~lan... |
BugID:16944965: Add target alldefconfig to aos_kconfig.mk | @@ -24,7 +24,7 @@ endif
# Don't read in .config for these targets
noconfig_targets := menuconfig oldconfig silentoldconfig olddefconfig \
- defconfig savedefconfig %-defconfig list-defconfigs
+ defconfig savedefconfig %-defconfig list-defconfigs alldefconfig
.PHONY: $(noconfig_targets)
@@ -63,6 +63,9 @@ oldconfig silen... |
Delbin: Add the CCD_MODE_ODL to gpio.inc
From the schematics, the GPIOE5 is connected to CCD_MODE_ODL.
Adds this setting for reading the CCD_MODE_ODL through the gpioget
BRANCH=None
TEST=gpioget CCD_MODE_ODL | @@ -97,6 +97,7 @@ GPIO(UART2_EC_RX, PIN(7, 5), GPIO_OUT_LOW) /* H1 Packet Mode */
GPIO(LED_1_L, PIN(C, 4), GPIO_OUT_HIGH) /* Battery Full LED: White */
GPIO(LED_2_L, PIN(C, 3), GPIO_OUT_HIGH) /* Battery Charging LED: Amber */
GPIO(LED_3_L, PIN(C, 2), GPIO_OUT_HIGH) /* Battery Power LED: White */
+GPIO(CCD_MODE_ODL, PIN... |
options/glibc: Impl. long opts with optional args | @@ -76,6 +76,16 @@ int getopt_long(int argc, char * const argv[], const char *optstring,
fprintf(stderr, "--%s requires an argument.\n", arg);
return '?';
}
+ }else if(longopts[k].has_arg == optional_argument) {
+ if(s) {
+ // Consume the long option and its argument.
+ optarg = s + 1;
+ optind++;
+ }else{
+ // Consume... |
Implemented bug fix to trickle timer
Guarded consistency/inconsistency functions
Explicitly set i_cur to _IS_STOPPED in _config()
Explicitly set callback pointer to NULL in _config | @@ -307,6 +307,9 @@ new_interval(struct trickle_timer *tt)
void
trickle_timer_consistency(struct trickle_timer *tt)
{
+ if (tt->i_cur == TRICKLE_TIMER_IS_STOPPED) {
+ return;
+ }
if(tt->c < 0xFF) {
tt->c++;
}
@@ -316,6 +319,9 @@ trickle_timer_consistency(struct trickle_timer *tt)
void
trickle_timer_inconsistency(struct... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.