message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
sslsniff: fix comparing bytes to string | @@ -197,7 +197,7 @@ def print_event(cpu, data, size, rw, evt):
# Filter events by command
if args.comm:
- if not args.comm == event.comm:
+ if not args.comm == event.comm.decode('utf-8', 'replace'):
return
if start == 0:
|
Fix ImGui::PopStyleColor() being in wrong place | @@ -1263,13 +1263,13 @@ static void compute_swapchain_display(struct swapchain_data *data)
NULL, min_time, max_time,
ImVec2(ImGui::GetContentRegionAvailWidth() - instance_data->params.font_size * 2.2, 50));
}
+ ImGui::PopStyleColor();
}
if (instance_data->params.enabled[OVERLAY_PARAM_ENABLED_frame_timing]){
ImGui::Same... |
Add useful python setup instructions.
Sets up pip dependencies into the current user's python path instead of the system path. | @@ -29,8 +29,8 @@ brew install dep
# Installing python libraries
brew install python2
-pip install -r python-dependencies.txt
-pip install -r python-developer-dependencies.txt
+pip install --user -r python-dependencies.txt
+pip install --user -r python-developer-dependencies.txt
#echo -e "127.0.0.1\t$HOSTNAME" | sudo t... |
fix CMake can't find check_symbol_exists function.
On windows this problem doesn't appear.
Enviroment: OSX 0.13
cmake version 3.8.2 | include(CheckSymbolExists)
if (ENABLE_SRV STREQUAL ON OR ENABLE_SRV STREQUAL AUTO)
+include(CheckSymbolExists)
if (WIN32)
set (RESOLV_LIBS Dnsapi)
set (MONGOC_HAVE_DNSAPI 1)
|
schema compile BUGFIX fix owerflow int32_t when LY_TYPE_ENUM compiling | @@ -1154,7 +1154,7 @@ lys_compile_type_enums(struct lysc_ctx *ctx, struct lysp_type_enum *enums_p, LY_
{
LY_ERR ret = LY_SUCCESS;
LY_ARRAY_COUNT_TYPE u, v, match = 0;
- int32_t value = 0, cur_val = 0;
+ int32_t highest_value = INT32_MIN, cur_val;
uint32_t position = 0, cur_pos = 0;
struct lysc_type_bitenum_item *e, sto... |
peview: Fix portable settings filename | @@ -78,13 +78,13 @@ VOID PeInitializeSettings(
)
{
static PH_STRINGREF settingsPath = PH_STRINGREF_INIT(L"%APPDATA%\\Process Hacker\\peview.xml");
- static PH_STRINGREF settingsSuffix = PH_STRINGREF_INIT(L".peview.xml");
+ static PH_STRINGREF settingsSuffix = PH_STRINGREF_INIT(L".settings.xml");
NTSTATUS status;
PPH_ST... |
Test: Explicitly exclude `semlock` plugin | @@ -33,8 +33,9 @@ std::vector<std::string> getAllPlugins ()
ModulesPluginDatabase mpd;
std::vector<std::string> plugins = mpd.listAllPlugins ();
- // The JNI plugin causes segmentation faults
+ // The JNI and Semlock plugins cause segmentation faults
plugins.erase (std::remove (plugins.begin (), plugins.end (), "jni"),... |
Fix test checking wrong objective term. | @@ -234,14 +234,14 @@ const char *verify_solution_correct(ScsData *d, ScsCone *k, ScsSettings *stgs,
} else if (status == SCS_INFEASIBLE) {
mu_assert_less("Infeas ERROR", ABS(res_infeas - info->res_infeas), 1e-8);
- mu_assert_less("ctx ERROR", ABS(ctx + 1), 1e-14);
+ mu_assert_less("bty ERROR", ABS(bty + 1), 1e-14);
mu... |
tests CHANGE lyxml_get_string now reads ending >, reflect this change in parsing test | @@ -458,13 +458,11 @@ test_simple_xml(void **state)
assert_int_equal(LY_SUCCESS, lyxml_get_element(&ctx, (const char **)&test_in, &prefix, &prefix_len, &name, &name_len)); /* <elem1 */
assert_int_equal(LY_SUCCESS, lyxml_get_attribute(&ctx, (const char **)&test_in, &prefix, &prefix_len, &name, &name_len)); /* attr1= */
... |
Fix Windows testing failures due to indexing
Add a delay before copying files on to DAPLink to allow Windows 8
and Windows 10 to complete any indexing it needs to do when a
device is connected. | @@ -172,6 +172,35 @@ class MassStorageTester(object):
# Expected data must be set, even if to None
assert hasattr(self, '_expected_data')
+ # Windows 8/10 workaround
+ # ----
+ # By default Windows 8 and 10 access and write to removable drives
+ # shortly after they are connected. If this occurs at the same time
+ # as... |
Add a new option to the daemon to enable the memory optimized controller | @@ -73,6 +73,7 @@ const (
selinuxFlag string = "with-selinux"
apparmorFlag string = "with-apparmor"
webhookFlag string = "webhook"
+ memOptimFlag string = "with-mem-optim"
defaultWebhookPort int = 9443
)
@@ -161,6 +162,11 @@ func main() {
Value: false,
EnvVars: []string{config.EnableRecordingEnvKey},
},
+ &cli.BoolFlag... |
docs: update abstract statement
Fix issue | ## Introduction
### Overview
-This technical paper describes the system requirements of the BoAT Framework (C language version) for cellular modules. BoAT is an SDK that runs on the module's application processor. For the OpenCPU cellular module, BoAT is linked and called by the application as a library. For non-OpenCP... |
make clean wasn't working | @@ -147,8 +147,8 @@ build: git flags gray
@$(CC) $(O_FLAGS) $(C_FLAGS) -o $(EXE) ./src/common/*.o ./src/common/libev/*.o ./src/common/sqlite/*.o ./src/common/twofish/*.o ./src/common/zlib/*.o ./src/graysvr/*.o ./src/network/*.o ./src/sphere/*.o $(INCLUDE_LIBS)
clean:
- rm -rf ./src/*.o
-
+ rm -rf ./$(EXE)
+ find . -nam... |
Change NotSimulator to NoSimulator | @@ -11,7 +11,7 @@ case class GenerateSimConfig(
sealed trait Simulator
object VerilatorSimulator extends Simulator
object VCSSimulator extends Simulator
-object NotSimulator extends Simulator
+object NoSimulator extends Simulator
trait HasGenerateSimConfig {
val parser = new scopt.OptionParser[GenerateSimConfig]("Gener... |
examples, timer: use llabs() 64-bit argument | @@ -70,7 +70,7 @@ void app_main(void)
int64_t t2 = esp_timer_get_time();
ESP_LOGI(TAG, "Woke up from light sleep, time since boot: %lld us", t2);
- assert(abs((t2 - t1) - 500000) < 1000);
+ assert(llabs((t2 - t1) - 500000) < 1000);
/* Let the timer run for a little bit more */
usleep(2000000);
|
check ESSID len 0...32 | @@ -1109,8 +1109,6 @@ if(essidlen == 13)
}
return;
}
-
-
/*===========================================================================*/
static void testwlan(FILE *fhout, uint8_t essidlen, uint8_t *essid)
{
@@ -1172,6 +1170,11 @@ static void prepareessid(FILE *fhout, uint8_t essidlen, uint8_t *essid)
static int pi, po;... |
interop: Support multiconnect | # - CLIENT_PARAMS contains user-supplied command line parameters
case $TESTCASE in
- versionnegotiation|handshake|transfer|retry|resumption|http3)
+ versionnegotiation|handshake|transfer|retry|resumption|http3|multiconnect)
:
;;
*)
@@ -33,6 +33,10 @@ if [ "$ROLE" == "client" ]; then
/usr/local/bin/client $CLIENT_ARGS -... |
gimble: remove unnecessary tasklist
BRANCH=none
TEST=make -j BOARD=gimble
Tested-by: Will Tsai | 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_STACK_SIZE) \
- TASK_ALWAYS(USB_CHG_P2, usb_charger_task, 0, TASK_STACK_SIZE) \
TASK_ALWAYS(CHARGER, charger_task, NULL, VENTI_TASK_STACK_SIZE) ... |
BugID:19784257: support ota swap upgrade power-off protection | @@ -104,6 +104,7 @@ int recovery_flag_update()
flag = REC_RECOVERY_START;
break;
case REC_SWAP_UPDATE_FLAG :
+ rec_flag_set.flag = REC_SWAP_UPDATE_FLAG;
flag = REC_SWAP_UPDATE_START;
break;
case REC_ROLLBACK_FLAG :
|
[snitch] Provide full bandwidth in snitch_demux | @@ -38,8 +38,8 @@ module snitch_demux #(
localparam LogNrPorts = (NrPorts > 1) ? $clog2(NrPorts) : 1;
- logic [NrPorts-1:0] req_valid_masked;
- logic [NrPorts-1:0] req_ready_masked;
+ logic req_valid_mask;
+ logic req_ready_mask;
logic [LogNrPorts-1:0] idx, idx_r, idx_w, idx_rsp;
logic full_r, full_w, full;
@@ -59,15 +... |
Coverity check dirlen for being negative | @@ -184,6 +184,8 @@ static int ndef_suffix(BIO *b, unsigned char **pbuf, int *plen, void *parg)
return 0;
derlen = ASN1_item_ndef_i2d(ndef_aux->val, NULL, ndef_aux->it);
+ if (derlen < 0)
+ return 0;
if ((p = OPENSSL_malloc(derlen)) == NULL) {
ASN1err(ASN1_F_NDEF_SUFFIX, ERR_R_MALLOC_FAILURE);
return 0;
|
Reload writable modules before running a script | @@ -78,6 +78,17 @@ if "widget" not in os.environ:
except KeyError:
pass
+ keys = list(sys.modules.keys())
+ for key in keys:
+ try:
+ mod = sys.modules[key]
+ if os.access(mod.__file__, os.W_OK):
+ del sys.modules[key]
+ except AttributeError:
+ pass
+ except TypeError:
+ pass
+
python = Python.shared
python.addScriptT... |
Have jsonptr pass through CBOR floating points | @@ -1159,11 +1159,12 @@ write_cbor_tag(uint64_t tag, wuffs_base__slice_u8 s) {
const char* //
write_number(uint64_t vbd, wuffs_base__slice_u8 s) {
- if (g_flags.output_format == file_format::json) {
const uint64_t cfp_fbbe_fifb =
WUFFS_BASE__TOKEN__VBD__NUMBER__CONTENT_FLOATING_POINT |
WUFFS_BASE__TOKEN__VBD__NUMBER__F... |
make access to CP register volatile so it doesn't get optimised out | @@ -451,8 +451,8 @@ __STATIC_INLINE void __set_FPEXC(uint32_t fpexc)
* Include common core functions to access Coprocessor 15 registers
*/
-#define __get_CP(cp, op1, Rt, CRn, CRm, op2) do { register uint32_t tmp __ASM("cp" # cp ":" # op1 ":c" # CRn ":c" # CRm ":" # op2); (Rt) = tmp; } while(0)
-#define __set_CP(cp, op1... |
Tag test with needs:save
Add needs:save tag for the test introduced by | @@ -92,7 +92,7 @@ start_server {tags {"introspection"}} {
} else {
fail "bgsave did not stop in time"
}
- }
+ } {} {needs:save}
test {MONITOR can log executed commands} {
set rd [redis_deferring_client]
|
Fix a memory leak in the ticket test
Also fixes a function name typo. | @@ -1233,7 +1233,7 @@ static int post_handshake_verify(SSL *sssl, SSL *cssl)
return 1;
}
-static int setup_ticket_text(int stateful, int idx, SSL_CTX **sctx,
+static int setup_ticket_test(int stateful, int idx, SSL_CTX **sctx,
SSL_CTX **cctx)
{
int sess_id_ctx = 1;
@@ -1326,7 +1326,7 @@ static int test_tickets(int stat... |
Turn on SIGSEGV handling for mbedtls tests.
SIGSEGV will be unhandled which will result in an oe_abort whose backtrace will provide clues
about where the elusive SEGV is resultant from. | #include <openenclave/internal/error.h>
#include <openenclave/internal/str.h>
#include <openenclave/internal/tests.h>
+#include <openenclave/internal/trace.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -172,6 +173,14 @@ int main(int argc, const char* argv[])
argv[1], OE_ENCLAVE_TYPE_SGX, flags, NULL,... |
libppd: In the PPD generator give priority to Apple Raster against PDF | @@ -3292,12 +3292,12 @@ ppdCreateFromIPPCUPS(char *buffer, /* I - Filename buffer */
if (ippContainsString(attr, "application/vnd.cups-pdf"))
cupsFilePuts(fp, "*cupsFilter2: \"application/pdf application/pdf 0 -\"\n");
else
- cupsFilePuts(fp, "*cupsFilter2: \"application/vnd.cups-pdf application/pdf 10 -\"\n");
+ cupsF... |
Address
Correct invalid format string, which masked a panic
with another, less useful panic. | @@ -476,7 +476,7 @@ JANET_NO_RETURN static void peg_panic(Builder *b, const char *msg) {
static void peg_fixarity(Builder *b, int32_t argc, int32_t arity) {
if (argc != arity) {
- peg_panicf(b, "expected %d argument%s, got %d%",
+ peg_panicf(b, "expected %d argument%s, got %d",
arity,
arity == 1 ? "" : "s",
argc);
|
Remove outer module | *
*/
-pub mod metacall {
use std::ffi::CString;
use std::os::raw::{c_char, c_double, c_float, c_int, c_long, c_short, c_void};
@@ -265,12 +264,11 @@ pub mod metacall {
metacall_destroy();
}
}
-}
/// Doc test to check if the code can build an run
#[cfg(test)]
mod tests {
- use super::*;
+ use crate::*;
struct Defer<F: F... |
fix(themes): show chart indicator in monochrome theme | @@ -50,6 +50,9 @@ typedef struct {
#if LV_USE_TEXTAREA
lv_style_t ta_cursor;
#endif
+#if LV_USE_CHART
+ lv_style_t chart_indic;
+#endif
} my_theme_styles_t;
@@ -157,6 +160,14 @@ static void style_init(bool dark_bg, const lv_font_t * font)
lv_style_set_bg_opa(&styles->ta_cursor, LV_OPA_TRANSP);
lv_style_set_anim_time(&s... |
fix memleaks in luv_cpu_info
`uv_cpu_info` Gets information about the CPUs on the system.
The cpu_infos array will have count elements and needs to be freed with uv_free_cpu_info().
`uv_free_cpu_info` should be called when get cpu info fail. | @@ -222,10 +222,14 @@ static int luv_getrusage(lua_State* L) {
}
static int luv_cpu_info(lua_State* L) {
- uv_cpu_info_t* cpu_infos;
- int count, i;
+ uv_cpu_info_t* cpu_infos = NULL;
+ int count = 0, i;
int ret = uv_cpu_info(&cpu_infos, &count);
- if (ret < 0) return luv_error(L, ret);
+ if (ret < 0)
+ {
+ uv_free_cpu... |
Update typo and add full name of UOSloader | @@ -50,7 +50,7 @@ Note: Trusty OS is running in Secure World in the architecture above.
Trusty specific Hypercalls
**************************
1. HC_LAUNCH_TRUSTY
- ->This Hypercall is used by UOSloader to request ACRN to launch Trusty.
+ ->This Hypercall is used by UOSloader (User OS Bootloader) to request ACRN to laun... |
extstore: check malloc in compaction thread.
simple change. | @@ -334,12 +334,15 @@ static void *storage_compact_thread(void *arg) {
logger *l = logger_create();
if (l == NULL) {
- fprintf(stderr, "Failed to allocate logger for LRU maintainer thread\n");
+ fprintf(stderr, "Failed to allocate logger for storage compaction thread\n");
abort();
}
- // TODO: check error.
readback_buf... |
Initialize packet | @@ -1774,7 +1774,7 @@ section_header_block_t pcapngshb;
interface_description_block_t pcapngidb;
packet_block_t pcapngpb;
enhanced_packet_block_t pcapngepb;
-uint8_t packet[MAXPACPSNAPLEN];
+uint8_t packet[MAXPACPSNAPLEN] = {0};
printf("start reading from %s\n", pcapinname);
while(1)
@@ -2010,7 +2010,7 @@ unsigned int ... |
Fix a missing variable in CMake | @@ -7,6 +7,8 @@ endif()
set(CMAKE_STATIC_LIBRARY_PREFIX "")
# Set some global path variables.
+get_filename_component(__root_dir "${CMAKE_CURRENT_LIST_DIR}/../.." ABSOLUTE)
+set(AFR_ROOT_DIR ${__root_dir} CACHE INTERNAL "Amazon FreeRTOS source root.")
set(AFR_KERNEL_DIR "${AFR_ROOT_DIR}/freertos_kernel" CACHE INTERNAL ... |
test: confirm different tids on same eny | !>([~[//khan/2/0v0] %give %arow %& %noun !>(%res)])
!>((head take-moves))
:(weld results-0 results-1 results-2)
+++ test-khan-multi-fard
+ =^ born-moves khan-gate
+ %- khan-call :*
+ khan-gate
+ now=~1162.1.1
+ scry=scry-provides-mark
+ call-args=[duct=~[/a] ~ [%born ~]]
+ ==
+ =/ fard=(fyrd:khan cage) [%base %fake %no... |
change message log level of unknown RTP extension
Stop spamming to console and logs when unknown RTP extension type is used. | @@ -194,7 +194,7 @@ static void handle_rtp(struct stream *s, const struct rtp_header *hdr,
int err;
if (hdr->x.type != RTPEXT_TYPE_MAGIC) {
- info("stream: unknown ext type ignored (0x%04x)\n",
+ debug("stream: unknown ext type ignored (0x%04x)\n",
hdr->x.type);
goto handler;
}
|
vrrp: fix SIGABRT crash by ASSERT() when deleting vrrp vr(MASTER state)
we need cancel vrrp_vr_timer when deleting vrrp vr
Type: fix | @@ -815,6 +815,7 @@ vrrp_vr_del_common (vrrp_vr_t *vr, vrrp_vr_key_t *key)
vrrp_main_t *vrm = &vrrp_main;
ip46_address_t *vr_addrs_del_copy;
+ vrrp_vr_timer_cancel (vr);
vrrp_vr_tracking_ifs_add_del (vr, vr->tracking.interfaces, 0);
vr_addrs_del_copy = vec_dup (vr->config.vr_addrs);
vrrp_vr_addrs_add_del (vr, 0, vr_add... |
Use s2n_stuffer_skip_read in s2n_stuffer_skip_to_char | @@ -59,7 +59,7 @@ int s2n_stuffer_skip_to_char(struct s2n_stuffer *stuffer, char target)
break;
}
- stuffer->read_cursor++;
+ GUARD(s2n_stuffer_skip_read(stuffer, 1));
}
return 0;
|
CMSIS-DSP: Fix FIR document | Samples in the state buffer are stored in the following order.
@par
<pre>
- {x[n-numTaps+1], x[n-numTaps], x[n-numTaps-1], x[n-numTaps-2]....x[0], x[1], ..., x[blockSize-1]}
+ {x[n-numTaps+1], x[n-numTaps], x[n-numTaps-1], x[n-numTaps-2]....x[n](==pSrc[0]), x[n+1](==pSrc[1]), ..., x[n+blockSize-1](==pSrc[blockSize-1])}... |
Add support for interpolating a single and two points. | @@ -804,6 +804,23 @@ tsError ts_bspline_interpolate_cubic(const tsReal *points, size_t num_points,
tsError err;
ts_int_bspline_init(spline);
thomas = NULL;
+
+ if (num_points == 0)
+ TS_RETURN_0(status, TS_NUM_POINTS, "num(points) == 0")
+ if (num_points == 1) {
+ TS_CALL_ROE(err, ts_bspline_new(
+ 4, dimension, 3, TS_... |
replace libretro-common 21 | @@ -5623,7 +5623,7 @@ void cirrusvga_drawGraphic(){
((uint32_t_ *)(src + 128))[0];
}
/* if nothing to draw, no need to continue */
- uint8_t colortmp_r, colortmp_g, colortmp_b;
+ unsigned char colortmp_r, colortmp_g, colortmp_b;
const uint8_t *plane0, *plane1;
int b0, b1;
x1 = hwcur_x;
|
Update: reset parameter, this one still performs best according to multistep Q/A metrics | //Event selections per cycle for inference
#define EVENT_SELECTIONS 1
//Event priority decay of events per cycle
-#define EVENT_DURABILITY 0.995
+#define EVENT_DURABILITY 1.0
//Additional event priority decay of an event which was selected
#define EVENT_DURABILITY_ON_USAGE 0.0
//Concept priority decay of events per cyc... |
mymcpu utility-added support for -d option to set default device | @@ -61,6 +61,7 @@ function usage(){
Options without values:
-h Print this help message
+ -d If GPU is unknown, set to this default device
-version Print the version of mymcpu and mygpu
Options with values:
@@ -162,7 +163,7 @@ function code2gpu(){
;;
"") gpuname="sm_35"
;;
- *) gpuname="unknown"
+ *) gpuname=$unknown_va... |
docker: use tmpfs for website build | +# syntax = docker/dockerfile:1.2
FROM debian:buster
ENV LANG C.UTF-8
@@ -26,7 +27,10 @@ ARG PARALLEL=8
ENV C_FLAGS="-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-protector-strong -Wstack-protector -fPIE -pie"
WORKDIR /app/kdb
ADD . /app/kdb/
-RUN mkdir -p build \
+RUN --mount=type=tmpfs,target=/tmp \
+ ... |
rbd:fix comment in tcmu_rbd_cfg_desc
fix rbd backstore device creation guideline in tcmu_rbd_cfg_desc
to make it more reliable to follow. | @@ -929,7 +929,7 @@ static int tcmu_rbd_handle_cmd(struct tcmu_device *dev, struct tcmulib_cmd *cmd)
*
* Specify poolname/devicename, e.g,
*
- * $ targetcli create /backstores/user:rbd/test 2G rbd/test/osd_op_timeout=30
+ * $ targetcli /backstores/user:rbd create test 2G rbd/test/osd_op_timeout=30
*
* poolname must be ... |
Remove code references to unsupported platform | #include "dev/serial-line.h"
#include "serial-protocol.h"
-#if CONTIKI_TARGET_WISMOTE
-#include "dev/uart1.h"
-#endif
-
#define DEBUG DEBUG_PRINT
#include "net/ipv6/uip-debug.h"
@@ -219,11 +215,6 @@ setup_network(void)
int i;
uint8_t state;
-#if CONTIKI_TARGET_WISMOTE
- uart1_set_input(serial_line_input_byte);
- serial... |
Add run-binary-debug option to waveform docs | @@ -176,6 +176,12 @@ Generating Waveforms
If you would like to extract waveforms from the simulation, run the command ``make debug`` instead of just ``make``.
+A special target that automatically generates the waveform file for a specific test is also available.
+
+.. code-block:: shell
+
+ make run-binary-debug BINARY... |
tap: replaces strlen to vec_len
Type: fix | @@ -207,7 +207,7 @@ tap_create_if (vlib_main_t * vm, tap_create_if_args_t * args)
{
host_if_name = (char *) args->host_if_name;
clib_memcpy (ifr.ifr_name, host_if_name,
- clib_min (IFNAMSIZ, strlen (host_if_name)));
+ clib_min (IFNAMSIZ, vec_len (host_if_name)));
}
else
{
@@ -955,19 +955,19 @@ tap_dump_ifs (tap_interfa... |
Fix the error status returned in _requestDataBlockPreCheck | @@ -745,7 +745,7 @@ OTA_FUNCTION_NO_CLEANUP();
/* Performs some pre-checks before requesting a new block. */
static _httpErr _requestDataBlockPreCheck()
{
- _httpErr status = OTA_HTTP_ERR_GENERIC;
+ _httpErr status = OTA_HTTP_ERR_NONE;
/* Reconnect to the HTTP server if we detect an error when processing the response a... |
SOVERSION bump to version 2.29.2 | @@ -66,7 +66,7 @@ set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_
# set version of the library
set(LIBYANG_MAJOR_SOVERSION 2)
set(LIBYANG_MINOR_SOVERSION 29)
-set(LIBYANG_MICRO_SOVERSION 1)
+set(LIBYANG_MICRO_SOVERSION 2)
set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG_M... |
doc: remove odd GVT-g link
Remove an incorrect link reference (and target) and fix some
misspellings. | @@ -6,11 +6,11 @@ ACRN Kernel Parameters
Generic kernel parameters
*************************
-A number of kernel parameters control the behaviour of ACRN-based systems. Some
+A number of kernel parameters control the behavior of ACRN-based systems. Some
are applicable to the Service OS (SOS) kernel, others to the User ... |
Increase bpf_attach_tracing_event buffer size | @@ -540,7 +540,7 @@ static int bpf_attach_tracing_event(int progfd, const char *event_path,
struct perf_reader *reader, int pid) {
int efd, pfd, cpu = 0;
ssize_t bytes;
- char buf[256];
+ char buf[PATH_MAX];
struct perf_event_attr attr = {};
snprintf(buf, sizeof(buf), "%s/id", event_path);
|
Add note for autojoin function | @@ -79,6 +79,8 @@ esp_sta_join(const char* name, const char* pass, const esp_mac_t* mac, uint8_t d
/**
* \brief Configure auto join to access point on startup
+ * \note For auto join feature, you need to do a join to access point with default mode.
+ * Check \ref esp_sta_join for more information.
* \param[in] en: Set ... |
fix usRcvBufferPos == MB_SER_PDU_SIZE_MAX assert | @@ -153,7 +153,7 @@ eMBRTUReceive( UCHAR * pucRcvAddress, UCHAR ** pucFrame, USHORT * pusLength )
eMBErrorCode eStatus = MB_ENOERR;
ENTER_CRITICAL_SECTION( );
- assert_param( usRcvBufferPos < MB_SER_PDU_SIZE_MAX );
+ assert_param( usRcvBufferPos <= MB_SER_PDU_SIZE_MAX );
/* Length and CRC check */
if( ( usRcvBufferPos ... |
Collapse UMI: Added tracking of the connected components common color. | @@ -57,11 +57,12 @@ void collapseUMIwith1MMlowHalf(uint32 *rGU, uint32 umiArrayStride, uint32 umiMas
};
};
-void graphDepthFirstSearch(uint32 n, vector<bool> &nodeVisited, vector<vector<uint32>> &nodeEdges) {
+void graphDepthFirstSearch(uint32 n, vector<bool> &nodeVisited, vector<vector<uint32>> &nodeEdges, vector <uin... |
Fix migration of animSpeed and moveSpeed | @@ -890,7 +890,7 @@ const migrateMoveSpeedr6r7 = (original) => {
}
const migrateAnimSpeedr6r7 = (original) => {
if (original === 4) {
- return 0;
+ return 7;
}
if (original === 3) {
return 15;
@@ -972,6 +972,11 @@ const migrateFrom200r6To200r7Events = data => {
const migrateFrom200r6To200r7Actors = data => {
return {
.... |
use index together with increment operator(postfix form) | @@ -106,8 +106,7 @@ nni_msgq_fini(nni_msgq *mq)
/* Free any orphaned messages. */
while (mq->mq_len > 0) {
- nni_msg *msg = mq->mq_msgs[mq->mq_get];
- mq->mq_get++;
+ nni_msg *msg = mq->mq_msgs[mq->mq_get++];
if (mq->mq_get >= mq->mq_alloc) {
mq->mq_get = 0;
}
@@ -196,8 +195,7 @@ nni_msgq_flush(nni_msgq *mq)
{
nni_mtx_... |
board/imxrt1050-evk/Kconfig: Eliminate recursive dependecy on MTD_FTL
This patch eliminates the dependency of "MTD_FTL" option since "FS_ROMFS"
already depends on the "MTD_FTL". | @@ -133,7 +133,6 @@ config IMXRT_AUTOMOUNT_SSSRW_MOUNTPOINT
config IMXRT_AUTOMOUNT_ROMFS
bool "Automount romfs partiton"
default y
- select MTD_FTL
depends on IMXRT_AUTOMOUNT
depends on FS_ROMFS
---help---
|
integration: Add test for tcptop. | @@ -303,6 +303,28 @@ func TestTcpconnect(t *testing.T) {
runCommands(commands, t)
}
+func TestTcptop(t *testing.T) {
+ tcptopCmd := &command{
+ name: "Start tcptop gadget",
+ cmd: "$KUBECTL_GADGET tcptop --node $(kubectl get node --no-headers | cut -d' ' -f1) -n test-ns -p test-pod",
+ expectedRegexp: `wget`,
+ startAn... |
vmxnet3: gso_l4_hdr_sz is not set correctly
vnet_buffer2 -> gso_l4_hdr_sz is not set correctly because
vnet_buffer->l4_hdr_offset is not set yet at the top. Move the code to set
vnet_buffer->gso_l4_hdr_sz further down. | @@ -80,22 +80,6 @@ vmxnet3_handle_offload (vmxnet3_rx_comp * rx_comp, vlib_buffer_t * hb,
{
u8 l4_hdr_sz = 0;
- if (gso_size)
- {
- if (rx_comp->flags & VMXNET3_RXCF_TCP)
- {
- tcp_header_t *tcp =
- (tcp_header_t *) (hb->data + vnet_buffer (hb)->l4_hdr_offset);
- l4_hdr_sz = tcp_header_bytes (tcp);
- }
- else if (rx_co... |
Add note on recompiles to ChangeLog | @@ -8,6 +8,11 @@ This page summarizes the major changes in each release of the 2.x series.
The 2.1 release is the second release in the 2.x series. It includes a number
of performance optimizations and new features.
+
+Reminder for users of the library interface - the API is not designed to be
+stable across versions, ... |
add deprecation message to ble store source | * contents are lost when the application terminates.
*/
+/* This package has been deprecated and you should
+ * use the store/config package. For a RAM-only BLE store,
+ * use store/config and set BLE_STORE_CONFIG_PERSIST to 0.
+ */
+
#include <inttypes.h>
#include <string.h>
|
doc: fixed man pages for qt-GUI | .\" generated with Ronn-NG/v0.10.1
.\" http://github.com/apjanke/ronn-ng/tree/0.10.1.pre1
-.TH "README" "" "December 2021" ""
+.TH "README" "" "January 2022" ""
.SH "Introduction"
The tool \fBqt\-gui\fR offers a graphical interface for users of Elektra\. It allows users to create, manage, edit, and delete keys stored i... |
tests CHANGE add type's patterns checks | @@ -1970,7 +1970,7 @@ lys_compile_type_pattern_check(struct lysc_ctx *ctx, const char *pattern, pcre *
* http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#regexs */
/* we need to replace all "$" with "\$", count them now */
- for (count = 0, ptr = strchr(pattern, '$'); ptr; ++count, ptr = strchr(ptr + 1, '$'));
+ for... |
openwsman: wsman-win-client-transport: initialize certificate pointer
Initialize the certificate pointer to NULL to avoid
warnings about uninitilized variable usage that became
errors with new Visual Studio. | @@ -303,7 +303,7 @@ wsmc_handler(WsManClient * cl, WsXmlDocH rqstDoc, void *user_data)
char pszAnsi[128];
wchar_t *pwsz;
- PCCERT_CONTEXT certificate;
+ PCCERT_CONTEXT certificate = NULL;
wchar_t *proxy_username;
wchar_t *proxy_password;
if (cl->session_handle == NULL && wsmc_transport_init(cl, NULL)) {
|
Pack: Reduced all 5.7.0-devN dev-drop release notes into final 5.7.0-rc0. | <url>http://www.keil.com/pack/</url>
<releases>
- <release version="5.7.0-dev8">
- Active development...
+ <release version="5.7.0-rc0">
CMSIS-Build: 0.9.0 (beta)
- Draft for CMSIS Project description (CPRJ)
- Devices:
- - Reworked ARMCM* C-StartUp files.
- Utilities:
- Attention: Linux binaries moved to Linux64 folder... |
ShaderBlock buffer bind fix; | @@ -2088,7 +2088,7 @@ ShaderBlock* lovrShaderBlockCreate(vec_uniform_t* uniforms, BlockType type, Buff
block->data = calloc(1, size);
glGenBuffers(1, &block->buffer);
- lovrGpuBindBlockBuffer(block->type, block->buffer, 0);
+ glBindBuffer(block->target, block->buffer);
glBufferData(block->target, size, NULL, usage);
re... |
Testing: Add test for bufr_get file | @@ -100,5 +100,11 @@ result=`${tools_dir}/bufr_get -f -p isSatellite,ident b003_56.bufr`
[ "$result" = "1 not_found" ]
+# Check key 'file'
+result=`${tools_dir}/bufr_get -p file b004_145.bufr`
+[ "$result" = "b004_145.bufr" ]
+
+
# Clean up
rm -f $fLog $fTmp $res_get $tempRef
+
|
TSCH readme: update with 802.15.4-2015 and 6TiSCH | -# IEEE 802.15.4e TSCH (TimeSlotted Channel Hopping)
+# IEEE 802.15.4-2015 TSCH and IETF 6TiSCH
## Overview
-TSCH is a MAC layer of the [IEEE 802.15.4e-2012 amendment][ieee802.15.4e-2012],
+Time Slotted Channel Hopping (TSCH) is a MAC layer of the [IEEE 802.15.4e-2012 amendment][ieee802.15.4e-2012],
currently being int... |
Use ec_group_do_inverse_ord() in SM2 | #include "internal/sm2.h"
#include "internal/sm2err.h"
+#include "internal/ec_int.h" /* ec_group_do_inverse_ord() */
#include <openssl/err.h>
#include <openssl/evp.h>
#include <openssl/err.h>
@@ -133,7 +134,7 @@ static ECDSA_SIG *sm2_sig_gen(const EC_KEY *key, const BIGNUM *e)
continue;
if (!BN_add(s, dA, BN_value_one(... |
SOVERSION bump to version 7.12.2 | @@ -73,7 +73,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_
# with backward compatible change and micro version is connected with any internal change of the library.
set(SYSREPO_MAJOR_SOVERSION 7)
set(SYSREPO_MINOR_SOVERSION 12)
-set(SYSREPO_MICRO_SOVERSION 1)
+set(SYSREPO_MICRO_S... |
Fix Error: netdev/netdev_findbyindex.c:59:7: error: variable 'i' set but not used | FAR struct net_driver_s *netdev_findbyindex(int ifindex)
{
FAR struct net_driver_s *dev;
- int i;
-
#ifdef CONFIG_NETDEV_IFINDEX
/* The bit index is the interface index minus one. Zero is reserved in
* POSIX to mean no interface index.
@@ -68,6 +66,9 @@ FAR struct net_driver_s *netdev_findbyindex(int ifindex)
{
return ... |
Dockerfile: simplify & install less
Simplify the user creation part of the script
and remove the java configuration since that
is already the default.
Also install less since it's small and useful. | @@ -22,6 +22,7 @@ RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E03280
gtk-sharp2 \
iputils-tracepath \
iputils-ping \
+ less \
libcanberra-gtk-module:i386 \
libcoap-1-0-bin \
libfreetype6-dev \
@@ -109,19 +110,10 @@ RUN pip3 -q install matplotlib
RUN pip3 -q install nrfutil && \
pip3 -q ins... |
For some unknown reason, every printing file need sleep a little time on first transmit
serial: Add a 10-msec sleep and at the end add a tcdrain()
For some unknown reason, every printing file need sleep a little time to make sure the serial printer receive data is right. | @@ -108,6 +108,7 @@ main(int argc, /* I - Number of command-line arguments (6 or 7) */
#if defined(HAVE_SIGACTION) && !defined(HAVE_SIGSET)
struct sigaction action; /* Actions for POSIX signals */
#endif /* HAVE_SIGACTION && !HAVE_SIGSET */
+ char print_sleep = 0; /* Print first sleep flag on every transmit */
/*
@@ -6... |
distro-packages/python-rpm-macros: search spec dir first | --- a/macros.lua 2017-12-07 11:46:04.000000000 -0800
-+++ b/macros.lua 2017-12-08 13:06:57.000000000 -0800
++++ b/macros.lua 2017-12-08 13:18:52.000000000 -0800
-- ...but check that it is actually in the buildset
if insert_last_python then table.insert(pythons, last_python) end
--- break
--- end
--- end
-+ local locati... |
[core] consistent behavior w/ and w/o SA_SIGINFO
and consistent open of server.pid-file | @@ -154,6 +154,12 @@ static void sigaction_handler(int sig, siginfo_t *si, void *context) {
static void signal_handler(int sig) {
switch (sig) {
case SIGTERM: srv_shutdown = 1; break;
+ case SIGUSR1:
+ if (!graceful_shutdown) {
+ graceful_restart = 1;
+ graceful_shutdown = 1;
+ }
+ break;
case SIGINT:
if (graceful_shut... |
fix R enable output | @@ -571,12 +571,6 @@ echo Dev Tools:
echo ' 'hwloc..................... : disabled
fi
- if test "x$enable_R" = "xyes"; then
- echo ' 'R base package............ : enabled
- else
- echo ' 'R base package............ : disabled
- fi
-
if test "x$enable_tbb" = "xyes"; then
echo ' 'TBB....................... : enabled
else... |
SOVERSION bump to version 2.9.0 | @@ -66,8 +66,8 @@ set(LIBYANG_MICRO_VERSION 97)
set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION})
# set version of the library
set(LIBYANG_MAJOR_SOVERSION 2)
-set(LIBYANG_MINOR_SOVERSION 8)
-set(LIBYANG_MICRO_SOVERSION 25)
+set(LIBYANG_MINOR_SOVERSION 9)
+set(LIBYANG_MICRO_... |
Make bcc_elf_symbol_str support debuginfo | @@ -931,26 +931,53 @@ int bcc_elf_get_buildid(const char *path, char *buildid)
int bcc_elf_symbol_str(const char *path, size_t section_idx,
size_t str_table_idx, char *out, size_t len)
{
- Elf *e;
- int fd, err = 0;
+ Elf *e = NULL, *d = NULL;
+ int fd = -1, dfd = -1, err = 0;
const char *name;
+ char *debug_file = NUL... |
Add an OSX build with xcode12 | @@ -204,6 +204,17 @@ matrix:
env:
- BTYPE="TARGET=NEHALEM BINARY=64 INTERFACE64=1 FC=gfortran-8"
+ - <<: *test-macos
+ osx_image: xcode12
+ before_script:
+ - COMMON_FLAGS="DYNAMIC_ARCH=1 NUM_THREADS=32"
+ - brew update
+ - brew install gcc@10 # for gfortran
+ script:
+ - travis_wait 45 make QUIET_MAKE=1 $COMMON_FLAGS ... |
Re-enable build-conan on MacOS. | @@ -9,8 +9,7 @@ on:
jobs:
build-conan:
- if: false #See #471
- runs-on: macOS-latest
+ runs-on: macos-10.15
timeout-minutes: 120
steps:
- name: Checkout source code
@@ -23,6 +22,10 @@ jobs:
run: |
conan profile new default --detect
conan profile update settings.build_type=Release default
+ conan profile update settings... |
.github: fetch submodules recursively
ssecp256k1 inside libwally-core is a submodule now. It was not
properly fetched in Github Checks. | @@ -10,7 +10,7 @@ jobs:
- name: Clone the repo
uses: actions/checkout@v2
with:
- submodules: true
+ submodules: recursive
- name: Pull CI container image
run: ./.ci/run-container-ci pull
- name: Run CI in container
|
linux-raspberrypi: Switch dev recipe to 4.11 branch | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-dev:"
-LINUX_VERSION ?= "4.10"
-LINUX_RPI_DEV_BRANCH ?= "rpi-4.10.y"
+LINUX_VERSION ?= "4.11"
+LINUX_RPI_DEV_BRANCH ?= "rpi-4.11.y"
SRCREV = "${AUTOREV}"
SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=${LINUX_RPI_DEV_BRANCH} \
|
imgtool: Fix 'custom_tlvs' argument handling
When Image.create() is called without the 'custom_tlvs' argument, it
gets its default value (None). It must be checked before performing
any operations on/with it. | # Copyright 2018 Nordic Semiconductor ASA
-# Copyright 2017 Linaro Limited
+# Copyright 2017-2020 Linaro Limited
# Copyright 2019-2020 Arm Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -327,7 +327,7 @@ class Image():
dependencies_num = len(dependencies[DEP_IMAGES_KEY])
protected_tlv_siz... |
Fixed bug in which DeltaTime is output to inf for initial conditions if bVarDt = 1. | @@ -69,10 +69,18 @@ void WriteCriticalSemi(BODY *body,CONTROL *control,OUTPUT *output,SYSTEM *system
void WriteDeltaTime(BODY *body,CONTROL *control,OUTPUT *output,SYSTEM *system,UNITS *units,UPDATE *update,int iBody,double *dTmp,char cUnit[]) {
- if (control->Evolve.dTime > 0 || control->Evolve.nSteps == 0)
+ if (cont... |
[Makefile] Fetch specified bender version instead of latest | @@ -33,7 +33,7 @@ endif
ifeq ($(origin CXX),default)
CXX = g++
endif
-BENDER_VERSION = 0.21.0
+BENDER_VERSION = 0.22.0
# We need a recent LLVM installation (>11) to compile Verilator.
# We also need to link the binaries with LLVM's libc++.
@@ -136,7 +136,7 @@ check-bender:
$(BENDER_INSTALL_DIR)/bender:
mkdir -p $(BENDE... |
Update SGX_0-base_Enclave.md | @@ -281,7 +281,7 @@ runtime, the alternative approach will not be pursued.
## Future Work Consideration
-Though outside the scope of this design doc, 0-base SGX Enclave can be leverage
+Though outside the scope of this design doc, 0-base SGX Enclave can be leveraged
to support "two-way sandboxing" of an SGX Enclave. Th... |
[kernel] add some comments | @@ -60,12 +60,20 @@ protected:
*/
FirstOrderR(RELATION::SUBTYPES newType): Relation(RELATION::FirstOrder, newType) {}
+ /** The following matrices are used if the relation is linear w.r.t to some variables.
+ * If the matricesa are, the computation of the Jacobian is not done.
+ */
+ /** A matrix to store the constant ... |
[STM32] Fix nucleo-f401re SPI pinout
This makes all pins part of the same group, it was also working
before, but this makes all pins close to each other on the headers. | @@ -100,10 +100,10 @@ static struct stm32_hal_i2c_cfg i2c_cfg0 = {
#if MYNEWT_VAL(SPI_0_SLAVE) || MYNEWT_VAL(SPI_0_MASTER)
struct stm32_hal_spi_cfg spi0_cfg = {
- .ss_pin = MCU_GPIO_PORTA(4), /* PA4 */
- .sck_pin = MCU_GPIO_PORTA(5), /* PA5 */
- .miso_pin = MCU_GPIO_PORTA(6), /* PA6 */
- .mosi_pin = MCU_GPIO_PORTB(5), ... |
board/dingdong/usb_pd_policy.c: Format with clang-format
BRANCH=none
TEST=none | @@ -69,28 +69,22 @@ int pd_check_power_swap(int port)
return 0;
}
-int pd_check_data_swap(int port,
- enum pd_data_role data_role)
+int pd_check_data_swap(int port, enum pd_data_role data_role)
{
/* Always refuse data swap */
return 0;
}
-void pd_execute_data_swap(int port,
- enum pd_data_role data_role)
+void pd_execu... |
Add a test for enums. | @@ -3,6 +3,23 @@ local ts = require("tinyspline")
+TestEnums = {}
+
+function TestEnums:testOpened()
+ -- Given
+ spline = ts.BSpline(7, 2, 3, ts.BSpline.Opened)
+
+ -- When
+
+ -- Then
+ expected = { 0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0 }
+ lu.assertAlmostEquals(spline.knots, expected, ts.TS_KNOT_EPSI... |
Add test to Github Action | @@ -75,9 +75,19 @@ jobs:
run: |
mkdir build
cd build
- cmake .. -DCMAKE_C_COMPILER=${{ env.BOX86_COMPILER }} ${{ env.BOX86_PLATFORM_MARCRO }} -DCMAKE_BUILD_TYPE=${{ env.BOX86_BUILD_TYPE }} -DHAVE_TRACE=${{ env.BOX86_HAVE_TRACE }} -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
+ cmake .. -DCMAKE_C_COMPILER=${{ env.BOX86_COMPILER }}\
... |
py/emitbc: Rewrite switch in load_const_tok to reduce code size. | @@ -524,15 +524,13 @@ void mp_emit_bc_import(emit_t *emit, qstr qst, int kind) {
}
void mp_emit_bc_load_const_tok(emit_t *emit, mp_token_kind_t tok) {
+ MP_STATIC_ASSERT(MP_BC_LOAD_CONST_FALSE + (MP_TOKEN_KW_NONE - MP_TOKEN_KW_FALSE) == MP_BC_LOAD_CONST_NONE);
+ MP_STATIC_ASSERT(MP_BC_LOAD_CONST_FALSE + (MP_TOKEN_KW_TR... |
Removed const from function parameter | @@ -805,7 +805,7 @@ void lv_obj_set_height(lv_obj_t * obj, lv_coord_t h)
* @param obj pointer to an object
* @param w the width without paddings
*/
-void lv_obj_set_width_fit(const lv_obj_t * obj, lv_coord_t w)
+void lv_obj_set_width_fit(lv_obj_t * obj, lv_coord_t w)
{
lv_style_int_t pleft = lv_obj_get_style_pad_left(o... |
in_tail: fix cmetric label name | @@ -388,19 +388,19 @@ struct flb_tail_config *flb_tail_config_create(struct flb_input_instance *ins,
"fluentbit", "input",
"files_opened_total",
"Total number of opened files",
- 1, (char *[]) {name});
+ 1, (char *[]) {"name"});
ctx->cmt_files_closed = cmt_counter_create(ins->cmt,
"fluentbit", "input",
"files_closed_to... |
schema compile FORMAT always use braces for loops | @@ -750,7 +750,7 @@ lys_compile_iffeature(struct lysc_ctx *ctx, struct lysp_qname *qname, struct lys
if (!strncmp(&c[i], "not", op_len = 3) || !strncmp(&c[i], "and", op_len = 3) || !strncmp(&c[i], "or", op_len = 2)) {
uint64_t spaces;
- for (spaces = 0; c[i + op_len + spaces] && isspace(c[i + op_len + spaces]); spaces+... |
dhcp: calls to vnet_feature_enable_disable needs to be protected
dhcp is makeing calls to vnet_feature_enable_disable without barrier sync
protection. This can cause data contention with the worker threads. Wrap
all calls to vnet_feature_enable_disable with barrier sync and barrier
release.
Type: fix | @@ -246,6 +246,7 @@ dhcp_client_addr_callback (u32 * cindex)
static void
dhcp_client_reset (dhcp_client_main_t * dcm, dhcp_client_t * c)
{
+ vlib_worker_thread_barrier_sync (dcm->vlib_main);
if (c->client_detect_feature_enabled == 1)
{
vnet_feature_enable_disable ("ip4-unicast",
@@ -253,8 +254,9 @@ dhcp_client_reset (d... |
Switches back to CUBIC | @@ -750,7 +750,7 @@ extern picoquic_congestion_algorithm_t* picoquic_newreno_algorithm;
extern picoquic_congestion_algorithm_t* picoquic_cubic_algorithm;
extern picoquic_congestion_algorithm_t* picoquic_bbr_algorithm;
-#define PICOQUIC_DEFAULT_CONGESTION_ALGORITHM picoquic_bbr_algorithm;
+#define PICOQUIC_DEFAULT_CONGE... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.