message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
bit_writer_utils,Flush: quiet implicit conversion warnings
no change in object code
from clang-7 -fsanitize=implicit-integer-truncation
implicit conversion from type 'int32_t' (aka 'int') of value 287
(32-bit, signed) to type 'uint8_t' (aka 'unsigned char') changed the
value to 31 (8-bit, unsigned) | @@ -70,7 +70,7 @@ static void Flush(VP8BitWriter* const bw) {
const int value = (bits & 0x100) ? 0x00 : 0xff;
for (; bw->run_ > 0; --bw->run_) bw->buf_[pos++] = value;
}
- bw->buf_[pos++] = bits;
+ bw->buf_[pos++] = bits & 0xff;
bw->pos_ = pos;
} else {
bw->run_++; // delay writing of bytes 0xff, pending eventual carry... |
tree data BUGFIX minor improvements | @@ -264,7 +264,10 @@ lyd_is_default(const struct lyd_node *node)
const struct lyd_node_term *term;
LY_ARRAY_COUNT_TYPE u;
- assert(node->schema->nodetype & LYD_NODE_TERM);
+ if (!(node->schema->nodetype & LYD_NODE_TERM)) {
+ return 0;
+ }
+
term = (const struct lyd_node_term *)node;
if (node->schema->nodetype == LYS_LE... |
Add some performance notes about early data
In particular add information about the effect of Nagle's algorithm on
early data.
Fixes | @@ -168,6 +168,30 @@ In the event that the current maximum early data setting for the server is
different to that originally specified in a session that a client is resuming
with then the lower of the two values will apply.
+=head1 NOTES
+
+The whole purpose of early data is to enable a client to start sending data to
... |
Specify python version in Makefile | @@ -310,10 +310,10 @@ SDK_SOURCE_PATH += lib_blewbxx lib_blewbxx_impl
endif
load: all
- python -m ledgerblue.loadApp $(APP_LOAD_PARAMS)
+ python3 -m ledgerblue.loadApp $(APP_LOAD_PARAMS)
delete:
- python -m ledgerblue.deleteApp $(COMMON_DELETE_PARAMS)
+ python3 -m ledgerblue.deleteApp $(COMMON_DELETE_PARAMS)
# import g... |
website: bump npm package versions | },
"devDependencies": {
"@iamadamjowett/angular-logger-max": "^1.2.3",
- "angular": "^1.5.8",
- "angular-animate": "^1.5.8",
- "angular-breadcrumb": "^0.4.1",
- "angular-clipboard": "^1.5.0",
- "angular-file-saver": "^1.1.2",
+ "angular": "^1.8.2",
+ "angular-animate": "^1.8.2",
+ "angular-breadcrumb": "^0.5.0",
+ "ang... |
net/lora Change public/private network default setting to private. | @@ -92,4 +92,4 @@ syscfg.defs:
description: >
Sets public or private lora network. A value of 1 means
the network is public; private otherwise
- value: 1
+ value: 0
|
Recursively look for property fields | @@ -482,7 +482,7 @@ const isPropertyField = (cmd, fieldName, args) => {
const events = require("../events").default;
const event = events[cmd];
if (!event) return false;
- const field = event.fields.find((f) => f.key === fieldName);
+ const field = getField(cmd, fieldName, args);
const fieldValue = args[fieldName];
ret... |
Fixes a clang error | @@ -100,7 +100,7 @@ int etcd_get(const char* key, char** value, int* modifiedIndex) {
reply.header = NULL; /* will be grown as needed by the realloc above */
reply.headerSize = 0; /* no data at this point */
- int retVal;
+ int retVal = ETCDLIB_RC_ERROR;
char *url;
asprintf(&url, "http://%s:%d/v2/keys/%s", etcd_server,... |
extmod/btstack/btstack_config.h: Fix stm32 build error due to macro redefine. | #define HAVE_EMBEDDED_TIME_MS
// Some USB dongles take longer to respond to HCI reset (e.g. BCM20702A).
-#define HCI_RESET_RESEND_TIMEOUT_MS 1000
+//#define HCI_RESET_RESEND_TIMEOUT_MS 1000
#endif // MICROPY_INCLUDED_EXTMOD_BTSTACK_BTSTACK_CONFIG_H
|
update set-prerelease-version script | #!/bin/bash
+DEVSTRING="pr"
VERSION_FILE=VERSION
+while [[ $# -gt 0 ]]; do
+ case $1 in
+ --devstring)
+ DEVSTRING="$2"
+ shift # past argument
+ shift # past value
+ ;;
+ --version_file)
+ VERSION_FILE="$2"
+ shift # past argument
+ shift # past value
+ ;;
+ -*|--*)
+ echo "Unknown option $1"
+ exit 1
+ ;;
+ esac
+don... |
use opt* in janet_sync | @@ -860,13 +860,10 @@ static Janet janet_music(int32_t argc, Janet* argv)
static Janet janet_sync(int32_t argc, Janet* argv)
{
janet_arity(argc, 0, 3);
- u32 mask = 0;
- s32 bank = 0;
- bool toCart = false;
- if (argc >= 1) mask = janet_getinteger(argv, 0);
- if (argc >= 2) bank = janet_getinteger(argv, 1);
- if (argc ... |
fix a 2nd case if species names have null entries | @@ -4046,7 +4046,7 @@ avtSiloFileFormat::ReadSpecies(DBfile *dbfile,
{
oss.str("");
oss << (k+1);
- if(spec->specnames != NULL)
+ if(spec->specnames && spec->specnames[spec_name_idx])
{
//
//add spec name if it exists
@@ -4054,8 +4054,8 @@ avtSiloFileFormat::ReadSpecies(DBfile *dbfile,
oss << " ("
<< string(spec->specn... |
more big endian fixes (pineapple) in pcapng options | @@ -3992,6 +3992,10 @@ while(1)
{
return;
}
+ #ifdef BIG_ENDIAN_HOST
+ opthdr.option_code = byte_swap_16(opthdr.option_code);
+ opthdr.option_length = byte_swap_16(opthdr.option_length);
+ #endif
if(endianess == 1)
{
opthdr.option_code = byte_swap_16(opthdr.option_code);
@@ -4075,8 +4079,22 @@ while(1)
{
return;
}
- my... |
Separate make clean and make lib in check_names | @@ -569,8 +569,15 @@ class CodeParser():
)
my_environment = os.environ.copy()
my_environment["CFLAGS"] = "-fno-asynchronous-unwind-tables"
+ # Run make clean separately to lib to prevent unwanted behavior when
+ # make is invoked with parallelism.
subprocess.run(
- ["make", "clean", "lib"],
+ ["make", "clean"],
+ unive... |
noise.c: Check length of packets beforehand.
Simplify the code by checking for incoming packet lengths
to be valid beforehand instead of performing the checks within
the code processing the messages' content. | @@ -215,6 +215,23 @@ void noise_rand_bytes(void* bytes, size_t size)
random_32_bytes_mcu(bytes);
}
+/**
+ * Checks that a packet's length is valid for the message type.
+ *
+ * @param[in] in_packet Packet to process.
+ * @return Whether the packet's length is valid.
+ */
+static bool _check_message_length(const Packet*... |
apps/examples/elf: Fix Build error
This patch fix the build error due to previous distclean failure. | @@ -63,7 +63,7 @@ $(1)_$(2):
endef
all: build install
-.PHONY: all build clean install
+.PHONY: all build clean install distclean
$(foreach DIR, $(BUILD_SUBDIRS), $(eval $(call DIR_template,$(DIR),build, all)))
$(foreach DIR, $(BUILD_SUBDIRS), $(eval $(call DIR_template,$(DIR),clean,clean)))
@@ -87,6 +87,10 @@ depend:
... |
Fixed memory leaks in xfpga error tests. | @@ -76,6 +76,12 @@ class error_c_mock_p
}
virtual void TearDown() override {
+ if (fake_fme_token_.errors) {
+ free_error_list(fake_fme_token_.errors);
+ }
+ if (fake_port_token_.errors) {
+ free_error_list(fake_port_token_.errors);
+ }
if (filter_) {
EXPECT_EQ(fpgaDestroyProperties(&filter_), FPGA_OK);
filter_ = nullp... |
Add script access to binding overriding. | @@ -28,6 +28,7 @@ int mapstrings_binding(ScriptVariant **varlist, int paramCount)
"direction",
"matching",
"offset",
+ "overriding",
"positioning",
"sort_id",
"tag",
@@ -121,6 +122,13 @@ HRESULT openbor_get_binding_property(ScriptVariant **varlist , ScriptVariant **p
break;
+ case _BINDING_OVERRIDING:
+
+ ScriptVariant... |
Automation change only: move to CMake 3.24 in Dockerfile.
The up-coming move to NRFConnect 2/Zephyr 3 requires a later version of CMake than comes on Ubuntu. CMake 3.24 is now added specifically in the [Ubuntu] Dockerfile which builds the Docker image we use in the test automation. | @@ -89,8 +89,19 @@ RUN apt-get update && apt-get install -y wget unzip tar &&
# Cleanup
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
-WORKDIR /workdir
+# Install a later version of CMake (required by Zephyr 3)
+RUN \
+ if [ "$(arch)" != "aarch64" ]; then \
+ wget -q -P /tmp https://cmake.org/files/v3.... |
linux/trace: save backtrace for the report | @@ -1023,6 +1023,7 @@ static void arch_traceExitSaveData(run_t* run, pid_t pid) {
}
}
+ uintptr_t savedBacktrace = run->backtrace;
int fd = TEMP_FAILURE_RETRY(open(run->crashFileName, O_WRONLY | O_EXCL | O_CREAT, 0600));
if (fd == -1 && errno == EEXIST) {
LOG_I("It seems that '%s' already exists, skipping", run->crashF... |
build: allow defined but empty FLB_NIGHTLY_BUILD | @@ -210,7 +210,7 @@ option(FLB_FILTER_RECORD_MODIFIER "Enable record_modifier filter" Yes)
option(FLB_FILTER_TENSORFLOW "Enable tensorflow filter" No)
option(FLB_FILTER_GEOIP2 "Enable geoip2 filter" Yes)
-if(DEFINED FLB_NIGHTLY_BUILD)
+if(DEFINED FLB_NIGHTLY_BUILD AND NOT "${FLB_NIGHTLY_BUILD}" STREQUAL "")
FLB_DEFINIT... |
ensure unique build names for C++ azure pipeline jobs | @@ -64,7 +64,7 @@ jobs:
Debug++:
CC: gcc
CXX: g++
- BuildType: debug
+ BuildType: debug-cxx
cmakeExtraArgs: -DCMAKE_BUILD_TYPE=Debug -DMI_DEBUG_FULL=ON -DMI_USE_CXX=ON
Debug Clang:
CC: clang
@@ -84,7 +84,7 @@ jobs:
Debug++ Clang:
CC: clang
CXX: clang++
- BuildType: debug-clang
+ BuildType: debug-clang-cxx
cmakeExtraArg... |
dprint: name core containing types | :: A library for printing doccords
=/ debug |
=>
- |%
+ |% %dprint-types
:> an overview of all named things in the type.
:>
:> each element in the overview list is either a documentation for a sublist
|
Add workspace property to files. | context.compile(fcfg)
fcfg.project = prj
+ fcfg.workspace = prj.workspace
fcfg.configs = {}
fcfg.abspath = fname
function fileconfig.addconfig(fcfg, cfg)
local prj = cfg.project
+ local wks = cfg.workspace
-- Create a new context object for this configuration-file pairing.
-- The context has the ability to pull out con... |
add commit to empty brackets | @@ -55,6 +55,7 @@ int od_target_module_add(od_logger_t *logger, od_module_t *modules,
module_exists:
if (logger == NULL) {
+ /* most probably its logger is not ready yet */
} else {
od_log(logger, "od_load_module", NULL, NULL,
"od_load_module: skip load module %s: was already loaded!",
@@ -66,8 +67,7 @@ error_close_han... |
Add unit test for L2REQ_IINVALIDATE | @@ -557,7 +557,40 @@ module test_l2_cache(input clk, input reset);
end
end
+ //////////////////////////////////////////////////////////////
+ // Send an L2REQ_IINVALIDATE. This is just a pass through
+ // that gets broadcasted to all cores.
+ //////////////////////////////////////////////////////////////
30:
+ begin
+ ... |
Added additional information about the exsiting metrics exporter for Prometheus monitoring system based on libipmctl to the README.md file | @@ -19,6 +19,8 @@ ipmctl refers to the following interface components:
* libipmctl: An Application Programming Interface (API) library for managing PMems.
* ipmctl: A Command Line Interface (CLI) application for configuring and managing PMems from the command line.
+Also, metrics exporter for [Prometheus](https://prome... |
pkg/gadgets: Use CO-RE tracer and switch back to bcc for biolatency. | @@ -17,9 +17,12 @@ package biolatency
import (
"fmt"
+ log "github.com/sirupsen/logrus"
+
gadgetv1alpha1 "github.com/kinvolk/inspektor-gadget/pkg/apis/gadget/v1alpha1"
"github.com/kinvolk/inspektor-gadget/pkg/gadgets"
"github.com/kinvolk/inspektor-gadget/pkg/gadgets/biolatency/tracer"
+ coretracer "github.com/kinvolk/i... |
rename pk_psa_rsa_sign_ext param | @@ -197,7 +197,7 @@ static int rsa_verify_wrap( void *ctx, mbedtls_md_type_t md_alg,
}
#if defined(MBEDTLS_PSA_CRYPTO_C)
-int mbedtls_pk_psa_rsa_sign_ext( psa_algorithm_t psa_alg_md, void *pk_ctx,
+int mbedtls_pk_psa_rsa_sign_ext( psa_algorithm_t alg, void *pk_ctx,
const unsigned char *hash, size_t hash_len,
unsigned c... |
check heads first in sing and friends | @@ -606,8 +606,8 @@ _sang_x(u3_noun a, u3_noun b)
_eq_no;
}
else {
- _eq_push(a_u->hed, b_u->hed);
_eq_push(a_u->tel, b_u->tel);
+ _eq_push(a_u->hed, b_u->hed);
fam->returning = 1;
}
}
@@ -775,8 +775,8 @@ _sung_x(u3_noun a, u3_noun b)
_eq_no;
}
else {
- _eq_push(a_u->hed, b_u->hed);
_eq_push(a_u->tel, b_u->tel);
+ _eq_... |
Run $(SENSNIFF) directly | @@ -16,7 +16,6 @@ MAKE_NET=MAKE_NET_NULLNET
# use a custom MAC driver: sensniff_mac_driver
MAKE_MAC = MAKE_MAC_OTHER
-PYTHON ?= python
SENSNIFF = $(CONTIKI)/tools/sensniff/sensniff.py
ifeq ($(BAUDRATE),)
@@ -35,5 +34,5 @@ sniff:
ifeq ($(wildcard $(SENSNIFF)), )
$(error Could not find the sensniff script. Did you run 'g... |
Fix gamecore distribution | @@ -68,7 +68,7 @@ foreach ($Build in $AllBuilds) {
$Headers = @(Join-Path $HeaderDir "msquic.h")
- if ($Platform -eq "windows" -or $Platform -eq "uwp") {
+ if ($Platform -eq "windows" -or $Platform -eq "uwp" -or $Platform -eq "gamecore_console") {
$Headers += Join-Path $HeaderDir "msquic_winuser.h"
} else {
$Headers +=... |
fix empty getDeepOlderThan | @@ -472,7 +472,7 @@ export const getDeepOlderThan = (
) => ({
app: 'graph-store',
path: `/graph/${ship}/${name}/node/siblings` +
- `/${start.length > 0 ? 'older' : 'oldest'}` +
+ `/${start.length > 0 ? 'older' : 'newest'}` +
`/kith/${count}${encodeIndex(start)}`
});
|
OcMachoLib: Consider indirect Symbol Table might be separate from Symbol Table. | @@ -35,8 +35,11 @@ InternalSymbolIsSane (
ASSERT (Context->SymbolTable != NULL);
ASSERT (Context->Symtab->NumSymbols > 0);
- ASSERT ((Symbol >= &Context->SymbolTable[0])
- && (Symbol < &Context->SymbolTable[Context->Symtab->NumSymbols]));
+ ASSERT (((Symbol >= &Context->SymbolTable[0])
+ && (Symbol < &Context->SymbolTa... |
Only check sensor error for failure/success | @@ -510,7 +510,8 @@ static FLT handle_optimizer_results(survive_optimizer *mpfitctx, int res, const
return -1;
}
bool solvedLHPoses = false;
- FLT norm_error = result->bestnorm * d->sensor_variance * d->sensor_variance;
+ FLT sensor_error = sqrtf(mpfitctx->stats.sensor_error / mpfitctx->stats.sensor_error_cnt);
+ FLT n... |
fix ubsan warnings on model load | @@ -475,7 +475,10 @@ void TModelTrees::FBDeserialize(const NCatBoostFbs::TModelTrees* fbObj) {
}
if (fbObj->LeafValues()) {
- LeafValues.assign(fbObj->LeafValues()->begin(), fbObj->LeafValues()->end());
+ LeafValues.assign(
+ fbObj->LeafValues()->data(),
+ fbObj->LeafValues()->data() + fbObj->LeafValues()->size()
+ );
... |
Fix node.input() not working | @@ -324,7 +324,7 @@ int lua_main (int argc, char **argv) {
}
int lua_put_line(const char *s, size_t l) {
- if (s == NULL || ++l < LUA_MAXINPUT || gLoad.line_position > 0)
+ if (s == NULL || ++l > LUA_MAXINPUT || gLoad.line_position > 0)
return 0;
c_memcpy(gLoad.line, s, l);
gLoad.line[l] = '\0';
|
Trace new instructions | @@ -5002,6 +5002,9 @@ static bool maybe_call_native(Context *ctx, AtomString module_name, AtomString f
DECODE_DEST_REGISTER(dreg, dreg_type, code, i, next_off, next_off);
next_off++; // skip extended list tag
+ int size_args;
+ DECODE_INTEGER(size_args, code, i, next_off, next_off);
+ TRACE("make_fun3/3, fun_index=%i d... |
Fix bug cmake error because ninja is missing
Needed to add ninja to the list of dependencies. | @@ -31,7 +31,7 @@ This requires Ubuntu 16 (Xenial Xeres) or later to get the proper package
versions. It should work for other distributions, but you will probably need
to change some package names. From a terminal, execute the following:
- sudo apt-get -y install autoconf cmake make gcc g++ bison flex python \
+ sudo ... |
[libgui] Fix invalid pointer | @@ -488,7 +488,7 @@ void gui_run_event_loop_pass(bool prevent_blocking, bool* did_exit) {
if (prevent_blocking) {
should_block = false;
}
- _process_amc_messages(_g_application, should_block, &did_exit);
+ _process_amc_messages(_g_application, should_block, did_exit);
// Dispatch any ready timers
gui_dispatch_ready_tim... |
Re-assign current thread on file read complete | @@ -661,6 +661,7 @@ closure_function(7, 1, void, file_read_complete,
status, s)
{
thread_log(bound(t), "%s: status %v", __func__, s);
+ current_cpu()->current_thread = (nanos_thread)bound(t);
sysreturn rv;
if (is_ok(s)) {
file f = bound(f);
|
ipsec: rewind missing from dual loop
Type: fix
Fixes: | @@ -149,6 +149,7 @@ ipsec_if_input_inline (vlib_main_t * vm, vlib_node_runtime_t * node,
esp_header_t *esp0, *esp1;
u32 len0, len1;
u16 buf_adv0, buf_adv1;
+ u16 buf_rewind0, buf_rewind1;
u32 tid0, tid1;
ipsec_tunnel_if_t *t0, *t1;
ipsec4_tunnel_key_t key40, key41;
@@ -185,11 +186,12 @@ ipsec_if_input_inline (vlib_main... |
Fixed maxflag change | @@ -1459,7 +1459,7 @@ HistogramAttributes::ChangesRequireRecalculation(const HistogramAttributes &obj)
{
if (minFlag && (min != obj.GetMin()))
return true;
- if (minFlag && (max != obj.GetMax()))
+ if (maxFlag && (max != obj.GetMax()))
return true;
if (useBinWidths != obj.GetUseBinWidths())
return true;
|
don't initialize hdlcLastRxByte as HDLC_FLAG. | @@ -81,7 +81,6 @@ void openserial_init(void) {
openserial_vars.debugPrintCounter = 0;
// input
- openserial_vars.hdlcLastRxByte = HDLC_FLAG;
openserial_vars.hdlcBusyReceiving = FALSE;
openserial_vars.hdlcInputEscaping = FALSE;
openserial_vars.inputBufFillLevel = 0;
|
board: standardized how health voltage is reported between revisions. | @@ -80,7 +80,27 @@ int get_health_pkt(void *dat) {
uint8_t started_alt;
} *health = dat;
- health->voltage = adc_get(ADCCHAN_VOLTAGE);
+ //Voltage will be measured in mv. 5000 = 5V
+ uint32_t voltage = adc_get(ADCCHAN_VOLTAGE);
+ if (revision == PANDA_REV_AB) {
+ //REVB has a 100, 27 (27/127) voltage divider
+ //Here i... |
Updated check_var() to check if var.exp.var is a 'ast.Var.Name'. | @@ -625,7 +625,9 @@ function FunChecker:check_var(var)
end
elseif tag == "ast.Var.Dot" then
- if var.exp._tag == "ast.Exp.Var" and builtins.modules[var.exp.var.name] then
+ if var.exp._tag == "ast.Exp.Var" and
+ var.exp.var._tag == "ast.Var.Name" and
+ builtins.modules[var.exp.var.name] then
local module_name = var.exp... |
extend midas examples timeout in ci | @@ -341,6 +341,7 @@ jobs:
- run:
name: Run midasexamples tests
command: .circleci/run-midasexamples-tests.sh
+ no_output_timeout: 20m
chipyard-ariane-run-tests:
executor: main-env
steps:
|
Add Arduino fixes. | @@ -81,9 +81,17 @@ static mp_obj_t py_audio_init(uint n_args, const mp_obj_t *args, mp_map_t *kw_ar
.interrupt_priority = PDM_IRQ_PRIORITY,
};
+ // Enable high frequency oscillator if not already enabled
+ if (NRF_CLOCK->EVENTS_HFCLKSTARTED == 0) {
+ NRF_CLOCK->TASKS_HFCLKSTART = 1;
+ while (NRF_CLOCK->EVENTS_HFCLKSTAR... |
Tests: added test for QUERY_STRING variable. | @@ -80,6 +80,40 @@ def application(environ, start_response):
}, 'headers')
self.assertEqual(r.content, str.encode(body), 'body')
+ def test_python_application_query_string(self):
+ code, name = """
+
+def application(environ, start_response):
+
+ start_response('200 OK', [
+ ('Content-Length', '0'),
+ ('Request-Method'... |
neon/cvt: disable some code on 32-bit x86 which uses _mm_cvttsd_si64
This function is only available in 64-bit mode. Unfortunately there
really isn't a good way to emulate it, at least as far as I know.
Fixes | @@ -502,7 +502,7 @@ simde_vcvtq_s64_f64(simde_float64x2_t a) {
simde_float64x2_private a_ = simde_float64x2_to_private(a);
simde_int64x2_private r_;
- #if defined(SIMDE_X86_SSE2_NATIVE)
+ #if defined(SIMDE_X86_SSE2_NATIVE) && (defined(SIMDE_ARCH_AMD64) || (defined(SIMDE_X86_AVX512DQ_NATIVE) && defined(SIMDE_X86_AVX512V... |
Don't die with the other "intcallback" callbacks | @@ -630,12 +630,18 @@ static void callJanetBoot(tic_mem* tic)
}
}
+/*
+ * Find a function with the given name and execute it with the given value.
+ * If we can't find it, then it's not a problem.
+ */
static void callJanetIntCallback(tic_mem* tic, s32 value, void* data, const char* name)
{
tic_core* core = (tic_core*)... |
bip32: adds network type option for xpub/priv | ?> =(0 x) :: sanity check
%. [d i p]
=< set-metadata
- =+ v=(scag 4 t)
- ?: =("xprv" v) (from-private k c)
- ?: =("xpub" v) (from-public k c)
+ =+ v=(swag [1 3] t)
+ ?: =("prv" v) (from-private k c)
+ ?: =("pub" v) (from-public k c)
!!
::
++ set-metadata
++ fingerprint (cut 3 [16 4] identity)
::
++ prv-extended
- %+ en... |
Run clang without optimization for SAW proofs
Optimized code sometimes leads to constructs that SAW doesn't handle,
and unoptimized code should be semantically equivalent to optimized
code. | @@ -61,7 +61,7 @@ ifeq ($(S2N_UNSAFE_FUZZING_MODE),1)
endif
-CFLAGS_LLVM = ${DEFAULT_CFLAGS} -fno-inline -emit-llvm -c
+CFLAGS_LLVM = ${DEFAULT_CFLAGS} -fno-inline -emit-llvm -c -O0
$(BITCODE_DIR)%.bc: %.c
clang $(CFLAGS_LLVM) -o $@ $<
|
Update appveyor.yml
Put Quail board fist in the develop matrix. | secure: WOqlCsnwTzfDPJFoNV/h8mEESIpG/9uFn1u6oE8hGZtXwIQQlsY+NyyLt9Y5xoFn
matrix:
+ - BOARD_NAME: 'MBN_QUAIL'
+ BUILD_OPTIONS: '-DTARGET_SERIES=STM32F4xx -DUSE_FPU=TRUE -DNF_FEATURE_DEBUGGER=TRUE -DSWO_OUTPUT=OFF -DNF_FEATURE_RTC=ON -DAPI_Windows.Devices.Gpio=ON -DAPI_Windows.Devices.Spi=ON -DAPI_Windows.Devices.I2c=ON ... |
CI refactor: remove unused CLI_2 tests
Now that the previous commits have placed these tests in CLI_TESTS,
we can remove references to this symbol. | 'gpcheckcat',
'gpinitstandby',
'gpactivatestandby'] %}
-{% set CLI_2_suites = [] %}
{% set gppkg_additional_task = "
- task: setup_gppkg_second_install
@@ -120,7 +119,7 @@ groups:
{% if "CLI" in test_sections %}
## --------------------------------------------------------------------
- gate_cli_start
-{% for test_name i... |
zeromqrecv: listen only on localhost for unit tests | @@ -48,7 +48,7 @@ static void * createTestSocket (void)
usleep (TIME_HOLDOFF);
void * pubSocket = zmq_socket (context, ZMQ_PUB);
- int result = zmq_bind (pubSocket, "tcp://*:6001");
+ int result = zmq_bind (pubSocket, "tcp://127.0.0.1:6001");
if (result != 0)
{
yield_error ("zmq_bind failed");
|
Add note about Visual STudio 2015 runtimes being a requirement, and how to know if you need them, to the readme. | @@ -25,6 +25,8 @@ Two builds are currently provided for each release:
* 32 bit (Win32, SDL2 only) binaries also including source code.
* 64 bit (x64, SDL2 only) binaries also including source code.
+**Warning:** Run `samples.exe` as your first action, if you download these builds. If you get an error about `vcruntime14... |
Travis CI failed to install pytest, and stated that we need to install "python-pytest", so I'm trying that. | @@ -9,7 +9,7 @@ if ! command -v conda > /dev/null; then
conda create --yes -n test python=$PYTHON_VERSION
conda activate test
conda install tectonic;
- conda install -c conda-forge numpy=$NUMPY_VERSION scipy matplotlib setuptools pytest pytest-cov pip;
+ conda install -c conda-forge numpy=$NUMPY_VERSION scipy matplotli... |
build: add an option to build INF files for Win10 as DIFX compatible
INF files for Win10 has 10.0 OS ornamentation that makes them
not installable with DIFX. Add a possibility to build INF files
for Win10 with 6.3 ornamentation by settinge environment
variable WIN10_INF_DIFX_COMPAT=1 | @@ -21,6 +21,7 @@ Common property definitions used by all drivers:
<DDKINSTALLROOT Condition="'$(DDKINSTALLROOT)' == ''">C:\WINDDK\</DDKINSTALLROOT>
<DDKVER Condition="'$(DDKVER)' == ''">7600.16385.1</DDKVER>
<LegacyDDKDir>$(DDKINSTALLROOT)$(DDKVER)</LegacyDDKDir>
+ <INF_ARCH_FOR_WIN10>6.3</INF_ARCH_FOR_WIN10>
</Proper... |
update board.c and radio.c | @@ -43,21 +43,20 @@ static void button_init(void);
extern int mote_main(void);
-int main(void)
-{
+int main(void) {
return mote_main();
}
//=========================== public ==========================================
-void board_init(void)
-{
+void board_init(void) {
+
// start low-frequency clock (LFCLK)
nrf_drv_cloc... |
Allow partial runas dialog executable paths, Fix runas crash | @@ -386,10 +386,23 @@ INT_PTR CALLBACK PhpRunAsDlgProc(
if (PhIsNullOrEmptyString(program))
break;
+ if (RtlDoesFileExists_U(program->Buffer))
+ {
// Escape the path. (dmex: poor man's PathQuoteSpaces)
if (!PhStartsWithString2(program, L"\"", FALSE) && PhFindCharInString(program, 0, L' ') != -1)
- {
programEscaped = Ph... |
xeonphi: use the model to allocate memory | @@ -1232,6 +1232,8 @@ errval_t interphi_init_xphi(uint8_t xphi,
return SYS_ERR_OK;
}
+#include <driverkit/hwmodel.h>
+#include <driverkit/iommu.h>
/**
@@ -1258,7 +1260,21 @@ errval_t interphi_init(struct xeon_phi *phi,
size_t frame_size;
if (capref_is_null(frame)) {
+#ifdef __k1om__
err = frame_alloc(&mi->frame, XEON_P... |
rmt: fix bad config initializer
Merges | @@ -149,9 +149,7 @@ typedef struct {
rmt_carrier_level_t carrier_level; /*!< Level of the RMT output, when the carrier is applied */
rmt_idle_level_t idle_level; /*!< RMT idle level */
uint8_t carrier_duty_percent; /*!< RMT carrier duty (%) */
-#if SOC_RMT_SUPPORT_TX_LOOP_COUNT
- uint32_t loop_count; /*!< Maximum loop ... |
Define cache line size for x86 32-bit | */
#ifndef CLIB_LOG2_CACHE_LINE_BYTES
-#if defined(__x86_64__) || defined(__ARM_ARCH_7A__)
+#if defined(__x86_64__) || defined(__ARM_ARCH_7A__) || defined(__i386__)
#define CLIB_LOG2_CACHE_LINE_BYTES 6
#endif
|
More sanity to set OSRAM manufacturer name | @@ -1551,7 +1551,8 @@ void DeRestPluginPrivate::addLightNode(const deCONZ::Node *node)
lightNode.setNeedSaveDatabase(true);
}
- if (checkMacVendor(node->address(), VENDOR_OSRAM))
+ if (checkMacVendor(node->address(), VENDOR_OSRAM) &&
+ (node->nodeDescriptor().manufacturerCode() == VENDOR_OSRAM || node->nodeDescriptor()... |
openwsman: fix configure without openssl
Add openssl to the list of ifdefs so build will not fail on empty #if. | @@ -389,7 +389,7 @@ SET( CRAY_STACKSEG_END 0 )
# The code below ensures that "HAVE_xxx" is set to "0" or "1"
#
-SET (FUNCS_TO_TEST "bcopy" "crypt" "daemon" "fnmatch" "getaddrinfo" "getnameinfo" "getpid" "gettimeofday" "gmtime_r" "inet_aton" "inet_ntop" "inet_pton" "sleep" "srandom" "strsep" "strtok_r" "syslog" "timegm"... |
apps/posix_spawn: Eliminate a warning. | @@ -300,7 +300,7 @@ int spawn_main(int argc, char *argv[])
/* Make sure that we are using our symbol tablee */
- symdesc.symtab = exports;
+ symdesc.symtab = (FAR struct symtab_s *)exports; /* Discard 'const' */
symdesc.nsymbols = nexports;
(void)boardctl(BOARDIOC_APP_SYMTAB, (uintptr_t)&symdesc);
@@ -321,6 +321,7 @@ i... |
[kernel] move updateInteractions() to TimeStepping::update() | @@ -360,6 +360,9 @@ void TimeStepping::update(unsigned int levelInput)
// need this until mechanics' BulletTimeStepping class is removed
updateWorldFromDS();
+ // Update interactions if a manager was provided
+ updateInteractions();
+
// 3 - compute output ( x ... -> y)
if (!_allNSProblems->empty())
{
@@ -452,9 +455,6 ... |
Minor fuzzer improvements | @@ -101,7 +101,10 @@ ZyanUSize ZydisLibFuzzerRead(void* ctx, ZyanU8* buf, ZyanUSize max_len)
ZyanUSize len = ZYAN_MIN(c->buf_len - c->read_offs, max_len);
// printf("buf_len: %ld, read_offs: %ld, len: %ld, max_len: %ld, ptr: %p\n",
// c->buf_len, c->read_offs, len, max_len, c->buf + c->read_offs);
- if (!len) return 0;... |
Update URL to Luarocks repository | @@ -34,7 +34,7 @@ NuGet (C#):
Luarocks (Lua):
```bash
-luarocks install --server=https://msteinbeck.github.io/tinyspline/luarocks tinyspline
+luarocks install --server=https://tinyspline.github.io/lua tinyspline
```
Maven (Java):
|
hslua-aeson: Cleanup pushValue | @@ -72,18 +72,14 @@ peekScientific idx = fromFloatDigits <$!> peekRealFloat @Double idx
-- | Hslua StackValue instance for the Aeson Value data type.
pushValue :: LuaError e => Pusher e Aeson.Value
-pushValue = \case
+pushValue val = do
+ checkstack' 1 "HsLua.Aeson.pushValue"
+ case val of
Aeson.Object o -> pushKeyMap ... |
scp: do not NUL-terminate the command for remote exec
It breaks SCP download/upload from/to certain server implementations.
The bug does not manifest with OpenSSH, which silently drops the NUL
byte (eventually with any garbage that follows the NUL byte) before
executing it. | @@ -303,8 +303,8 @@ scp_recv(LIBSSH2_SESSION * session, const char *path, libssh2_struct_stat * sb)
&session->scpRecv_command[cmd_len],
session->scpRecv_command_len - cmd_len);
- session->scpRecv_command[cmd_len] = '\0';
- session->scpRecv_command_len = cmd_len + 1;
+ /* the command to exec should _not_ be NUL-terminat... |
docs: Fix typos in write protection doc
BRANCH=none
TEST=view in gitiles | [TOC]
This is a somewhat tricky topic since write protection implementations can
-differ between chips and the hardware write protection has changed over time, so
-please edit or open a bug if something is not clear.
+differ between chips, and the hardware write protection has changed over time,
+so please edit or open... |
fixed status out if no records written to file | @@ -302,7 +302,7 @@ for (index = optind; index < argc; index++)
printf("%ld record(s) read from %s\n", wkpcount, argv[index]);
}
}
-
+if(hcxcount > 0)
printf("%ld record(s) written to %s\n", hcxcount, hcxoutname);
return EXIT_SUCCESS;
|
libsodium: fix source directory names to address build issues with Make | @@ -16,7 +16,8 @@ COMPONENT_SRCDIRS += \
$(LSRC)/crypto_auth/hmacsha512256 \
$(LSRC)/crypto_box \
$(LSRC)/crypto_box/curve25519xsalsa20poly1305 \
- $(LSRC)/crypto_core/curve25519/ref10 \
+ $(LSRC)/crypto_core/ed25519 \
+ $(LSRC)/crypto_core/ed25519/ref10 \
$(LSRC)/crypto_core/hchacha20 \
$(LSRC)/crypto_core/hsalsa20/re... |
bt: fix incorrect comments for error codes
Closes | @@ -85,23 +85,23 @@ typedef UINT8 tSMP_EVT;
#define SMP_MAX_FAIL_RSN_PER_SPEC SMP_XTRANS_DERIVE_NOT_ALLOW
/* self defined error code */
-#define SMP_PAIR_INTERNAL_ERR (SMP_MAX_FAIL_RSN_PER_SPEC + 0x01) /* 0x0E */
+#define SMP_PAIR_INTERNAL_ERR (SMP_MAX_FAIL_RSN_PER_SPEC + 0x01) /* 0x0F */
/* 0x0F unknown IO capability,... |
go: fix link | @@ -30,7 +30,7 @@ Experimental bindings (included in `cmake -DBINDINGS=EXPERIMENTAL`):
External bindings (in a separate repo):
-- [go](https://go.libelektra.org/) Go bindings (experimental)
+- [go](https://github.com/ElektraInitiative/go-elektra) Go bindings (experimental)
# I/O Bindings
|
nimble/ll: Allow to report ext advertising without aux data
This should fix LL/DDI/SCN/BV-19 | @@ -1781,7 +1781,7 @@ ble_ll_scan_parse_ext_hdr(struct os_mbuf *om, struct ble_mbuf_hdr *ble_hdr,
ble_ll_get_addr_type(rxbuf[0] & BLE_ADV_PDU_HDR_TXADD_MASK);
i += BLE_LL_EXT_ADV_ADVA_SIZE;
} else {
- if (aux_data->flags & BLE_LL_AUX_HAS_ADDRA) {
+ if (aux_data && (aux_data->flags & BLE_LL_AUX_HAS_ADDRA)) {
/* Have add... |
esp_event: fix minor memory leak when overwriting alredy registered handler | @@ -180,6 +180,7 @@ static esp_err_t handler_instances_add(esp_event_handler_instances_t* handlers,
if (handler == it->handler) {
it->arg = handler_arg;
ESP_LOGW(TAG, "handler already registered, overwriting");
+ free(handler_instance);
return ESP_OK;
}
last = it;
|
Inform user if some metric is not calculated for train dataset by default | @@ -4118,6 +4118,16 @@ static TVector<TVector<T>> ConstructSquareMatrix(const TString& matrixString) {
return result;
}
+static bool HintedToEvalOnTrain(const TMap<TString, TString>& params) {
+ const bool hasHints = params.contains("hints");
+ const auto& hints = hasHints ? ParseHintsDescription(params.at("hints")) : ... |
OpenCorePkg/Library/OcRtcLib: fix possible loss of data
OpenCorePkg\Library\OcRtcLib\AppleRtcRam.c(151): error C2220: the following warning is treated as an error
OpenCorePkg\Library\OcRtcLib\AppleRtcRam.c(151): warning C4244: 'function': conversion from 'UINTN' to 'UINT8', possible loss of data | @@ -148,7 +148,7 @@ AppleRtcRamReadData (
return Status;
}
- Status = SyncRtcRead (Address, Buffer);
+ Status = SyncRtcRead ((UINT8) Address, Buffer);
if (EFI_ERROR (Status)) {
return Status;
}
|
[cmake] SERVER_SRC variable | @@ -882,7 +882,7 @@ add_executable(lighttpd-angel lighttpd-angel.c)
set(L_INSTALL_TARGETS ${L_INSTALL_TARGETS} lighttpd-angel)
add_target_properties(lighttpd-angel COMPILE_FLAGS "-DSBIN_DIR=\\\\\"${CMAKE_INSTALL_FULL_SBINDIR}\\\\\"")
-add_executable(lighttpd
+set(SERVER_SRC
server.c
response.c
connections.c
@@ -899,9 +... |
[test] Skip test on travis | @@ -6,6 +6,7 @@ import (
"errors"
"fmt"
"math/big"
+ "os"
"strconv"
"strings"
"testing"
@@ -5115,6 +5116,11 @@ abi.register(testall)
}
func TestTimeoutCnt(t *testing.T) {
+ timeout := 250
+ if os.Getenv("TRAVIS") == "true" {
+ //timeout = 1000
+ return
+ }
src := `
function ecverify(n)
for i = 1, n do
@@ -5129,7 +5135,... |
Fixed Rx filter calibration C_CTL_LPFL_RBB value restore | @@ -459,7 +459,7 @@ uint8_t TuneRxFilter(const float_type rx_lpf_freq_RF)
uint8_t ccomp_tia_rfe = Get_SPI_Reg_bits(CCOMP_TIA_RFE);
uint8_t rcomp_tia_rfe = Get_SPI_Reg_bits(RCOMP_TIA_RFE);
uint16_t rcc_ctl_lpfl_rbb = Get_SPI_Reg_bits(RCC_CTL_LPFL_RBB);
- uint8_t c_ctl_lpfl_rbb = Get_SPI_Reg_bits(C_CTL_LPFL_RBB);
+ uint1... |
Fix missing disable_active_migration tp logging | @@ -632,6 +632,9 @@ void ngtcp2_log_remote_tp(ngtcp2_log *log, uint8_t exttype,
log->log_printf(log->user_data,
(NGTCP2_LOG_TP " active_connection_id_limit=%" PRIu64),
NGTCP2_LOG_TP_HD_FIELDS, params->active_connection_id_limit);
+ log->log_printf(log->user_data,
+ (NGTCP2_LOG_TP " disable_active_migration=%d"),
+ NGTC... |
website: fix deployment URL | @@ -43,11 +43,11 @@ RUN mkdir build \
&& ldconfig
ARG BACKEND=https://restapi.libelektra.org/
-ARG URL=https://libelektra.org/
+ARG URL=https://www.libelektra.org/
RUN kdb global-mount \
&& kdb mount-website-frontend-config \
- && kdb set -N system /sw/elektra/restfrontend/#0/current/backend/root "${BACKEND}" \
- && kd... |
Redrix: Lower LED task priority
BRANCH=none
TEST=make BOARD=redrix | #define CONFIG_TASK_LIST \
TASK_ALWAYS(HOOKS, hook_task, NULL, LARGER_TASK_STACK_SIZE) \
+ TASK_ALWAYS(LED, led_task, NULL, TASK_STACK_SIZE) \
TASK_ALWAYS(CHG_RAMP, chg_ramp_task, NULL, TASK_STACK_SIZE) \
TASK_ALWAYS(USB_CHG_P0, usb_charger_task, 0, TASK_STACK_SIZE) \
TASK_ALWAYS(USB_CHG_P1, usb_charger_task, 0, TASK_S... |
Test: add missing assert | @@ -162,6 +162,7 @@ TEST( UTIL_Platform_Threads, IotThreads_CreateDetachedThread )
}
printf( "Expected Pri = 7, actual = %d\r\n", ( int ) attrData );
+ TEST_ASSERT_EQUAL( 7, attrData );
}
#endif /* if ( INCLUDE_uxTaskPriorityGet == 1 ) */
|
Fix xcode12 build and add OSX/OpenMP | @@ -224,7 +224,16 @@ matrix:
before_script:
- COMMON_FLAGS="DYNAMIC_ARCH=1 NUM_THREADS=32"
- brew update
- - brew install gcc@10
+ script:
+ - travis_wait 45 make QUIET_MAKE=1 $COMMON_FLAGS $BTYPE
+ env:
+ - BTYPE="TARGET=HASWELL USE_OPENMP=1 BINARY=64 INTERFACE64=1 FC=gfortran-10"
+
+ - <<: *test-macos
+ osx_image: xc... |
Update release notes with 1.0.0 release | # RELEASE NOTES
+04 June 2018 - Apache NimBLE v1.0.0
+
+For full release notes, please visit the
+[Apache Mynewt Wiki](https://cwiki.apache.org/confluence/display/MYNEWT/Release+Notes).
+
+Apache NimBLE is an open-source Bluetooth 5.0 stack (both Host & Controller) that completely
+replaces the proprietary SoftDevice o... |
alpine: disable kdb testing
Used commands are not POSIX and thus fail. | @@ -450,7 +450,8 @@ def generateFullBuildStages() {
DOCKER_IMAGES.alpine,
CMAKE_FLAGS_BUILD_ALL + [
'BUILD_STATIC': 'ON',
- 'PLUGINS': 'ALL;-date;-passwd'
+ 'PLUGINS': 'ALL;-date;-passwd',
+ 'ENABLE_KDB_TESTING': 'OFF'
],
[TEST.ALL]
)
|
Support passing std::vector<std::string> into Util::convert | @@ -358,6 +358,14 @@ T convert(const U &src)
return src;
}
+// std::string owns the returned char*
+template<>
+inline const char*
+convert(const std::string &src)
+{
+ return src.c_str();
+}
+
// MString owns the returned char*
template<>
inline const char*
|
Escape $1 in awk command | @@ -173,7 +173,7 @@ harness_macro_temp: $(HARNESS_SMEMS_CONF) | top_macro_temp
# remove duplicate files and headers in list of simulation file inputs
########################################################################################
$(sim_common_files): $(sim_files) $(sim_top_blackboxes) $(sim_harness_blackboxes)... |
data BUGFIX set correct return code in lyd_dup_recursive() | @@ -1798,7 +1798,13 @@ lyd_dup_recursive(const struct lyd_node *node, struct lyd_node *parent, struct l
case LYD_ANYDATA_DATATREE:
if (orig->value.tree) {
any->value.tree = lyd_dup(orig->value.tree, NULL, LYD_DUP_RECURSIVE | LYD_DUP_WITH_SIBLINGS);
- LY_CHECK_GOTO(!any->value.tree, error);
+ if (!any->value.tree) {
+ /... |
tools: Fix website redirect loop | @@ -82,11 +82,15 @@ module.exports = [
$timeout(function () {
if ($stateParams.file === null) {
- $state.go("main.news", {
+ $state.go(
+ "main.news",
+ {
file: files.filter(function (elem) {
return elem.type === "file";
})[0].slug,
- });
+ },
+ { location: "replace" }
+ );
deferred.reject();
} else {
var filtered = fi... |
fix(spinbox): remove invalid judgment | @@ -105,7 +105,6 @@ void lv_spinbox_set_digit_format(lv_obj_t * obj, uint8_t digit_count, uint8_t se
if(digit_count > LV_SPINBOX_MAX_DIGIT_COUNT) digit_count = LV_SPINBOX_MAX_DIGIT_COUNT;
if(separator_position >= digit_count) separator_position = 0;
- if(separator_position > LV_SPINBOX_MAX_DIGIT_COUNT) separator_positi... |
rowan: enable SPI and GPIO console commands
Enable more hardware related console commands to help hardware
validation.
TEST=manual
build and load into Rowan
check console commands:
gpioget
spixfer
BRANCH=none | /*
* Allow dangerous commands.
- * TODO: Remove this config engineering velidation.
+ * TODO: Remove this config engineering validation.
*/
#define CONFIG_SYSTEM_UNLOCKED
+#define CONFIG_CMD_SPI_XFER
+#define CONFIG_CMD_GPIO_EXTENDED
/* Accelero meter and gyro sensor */
#define CONFIG_ACCEL_KX022
|
[MQTT5] Fix includes | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
+#include <stdarg.h>
/*---------------------------------------------------------------------------*/
/* Protocol constants */
#define MQTT_PROTOCOL_VERSION_3_1 3
|
Fix create_vlan_subif API using sw_if_index as hw_if_index
Also added check for bounded interface. | @@ -492,7 +492,7 @@ vl_api_create_vlan_subif_t_handler (vl_api_create_vlan_subif_t * mp)
{
vl_api_create_vlan_subif_reply_t *rmp;
vnet_main_t *vnm = vnet_get_main ();
- u32 hw_if_index, sw_if_index = (u32) ~ 0;
+ u32 sw_if_index = (u32) ~ 0;
vnet_hw_interface_t *hi;
int rv = 0;
u32 id;
@@ -506,8 +506,13 @@ vl_api_creat... |
[bt] fix if allocation fails
If osi_malloc fails for work_queues or osi_work_queue_create fails, osi_work_queue_delete in _err may release unallocated memory. | @@ -214,17 +214,17 @@ osi_thread_t *osi_thread_create(const char *name, size_t stack_size, int priorit
return NULL;
}
- osi_thread_t *thread = (osi_thread_t *)osi_malloc(sizeof(osi_thread_t));
+ osi_thread_t *thread = (osi_thread_t *)osi_calloc(sizeof(osi_thread_t));
if (thread == NULL) {
goto _err;
}
thread->stop = fa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.