message
stringlengths
6
474
diff
stringlengths
8
5.22k
Detail steps for fuzzing debug
@@ -12,19 +12,48 @@ Refer [Libfuzzer] official document if you want more detail. You can build and run code by yourself. [OSS-Fuzz] offers convenient scripts ```sh -$ cd $PATH_TO_OSS_FUZZ +cd $PATH_TO_OSS_FUZZ # build Docker image -$ python infra/helper.py build_image msquic +python infra/helper.py build_image msquic #...
VERSION bump to version 0.12.15
@@ -32,7 +32,7 @@ set(CMAKE_C_FLAGS_DEBUG "-g -O0") # set version set(LIBNETCONF2_MAJOR_VERSION 0) set(LIBNETCONF2_MINOR_VERSION 12) -set(LIBNETCONF2_MICRO_VERSION 14) +set(LIBNETCONF2_MICRO_VERSION 15) set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION}.${LIBNETCONF2_MICRO_VERSION}) set(L...
Work around old esp-tools
#---------------------------------------------------------------------------------------- SIM_OPT_CXXFLAGS := -O3 +# Workaround: esp-isa-sim doesn't install libriscv, +# so don't link with libriscv if it doesn't exist +# potentially breaks some configs + +ifeq (,$(wildcard $RISCV/lib/libriscv.so)) +$(warning libriscv n...
linux/arch: missing prctl(PR_SET_PDEATHSIG, SIGKILL) - missing bracket
@@ -128,7 +128,7 @@ pid_t arch_fork(honggfuzz_t * hfuzz, fuzzer_t * fuzzer) if (prctl (PR_SET_PDEATHSIG, (unsigned long)SIGKILL, (unsigned long)0, (unsigned long)0, (unsigned long)0) == -1) { - PLOG_W("prctl(PR_SET_PDEATHSIG, SIGKILL"); + PLOG_W("prctl(PR_SET_PDEATHSIG, SIGKILL)"); } if (hfuzz->linux.cloneFlags & CLONE...
Retain a reference on the cn until the perf counter is updated
@@ -3303,11 +3303,13 @@ void cn_comp(struct cn_compaction_work *w) { u64 tstart; + struct cn *cn = w->cw_tree->cn; struct perfc_set *pc = w->cw_pc; tstart = perfc_lat_start(pc); cn_comp_compact(w); + cn_ref_get(cn); if (w->cw_rspill_conc) { struct cn_tree_node *node; @@ -3323,7 +3325,9 @@ cn_comp(struct cn_compaction_w...
readme DOC add docs link badge
[![BSD license](https://img.shields.io/badge/License-BSD-blue.svg)](https://opensource.org/licenses/BSD-3-Clause) [![Build](https://github.com/CESNET/libnetconf2/workflows/libnetconf2%20CI/badge.svg)](https://github.com/CESNET/libnetconf2/actions?query=workflow%3A%22libnetconf2+CI%22) +[![Docs](https://img.shields.io/b...
schema compile BUGFIX dev node copy double free in extensions Fixes
@@ -1508,6 +1508,8 @@ lysc_refine_free(const struct ly_ctx *ctx, struct lysc_refine *rfn) void lysp_dev_node_free(const struct ly_ctx *ctx, struct lysp_node *dev_pnode) { + LY_ARRAY_COUNT_TYPE u; + if (!dev_pnode) { return; } @@ -1550,6 +1552,12 @@ lysp_dev_node_free(const struct ly_ctx *ctx, struct lysp_node *dev_pnod...
drivers/task_manager : Add NULL checking after sched_gettcb sched_gettcb can return NULL when cannot find the tcb. In this case, we should not use the tcb in the below.
@@ -130,6 +130,10 @@ static int taskmgr_pthread_group_join(pid_t parent_pid, pid_t child_pid) parent_group = taskmgr_get_group_struct(parent_pid); child_tcb = (struct pthread_tcb_s *)sched_gettcb(child_pid); + if (child_tcb == NULL) { + tmdbg("[TM] Cannot find Child TCB.\n"); + return ERROR; + } ret = taskmgr_group_bin...
fixed crash on export
@@ -1587,10 +1587,10 @@ typedef struct s32 cartSize; } EmbedHeader; -static const void* embedCart(Console* console, u8* data, s32* size) +static void* embedCart(Console* console, u8* app, s32* size) { tic_mem* tic = console->tic; - + u8* data = NULL; void* cart = malloc(sizeof(tic_cartridge)); if(cart) @@ -1615,16 +161...
data tree BUGFIX handle insert sibling matching params
@@ -2016,6 +2016,11 @@ lyd_insert_sibling(struct lyd_node *sibling, struct lyd_node *node, struct lyd_n LY_CHECK_RET(lyd_insert_check_schema(lysc_data_parent(sibling->schema), node->schema)); } + if (sibling == node) { + /* we need to keep the connection to siblings so we can insert into them */ + sibling = sibling->pr...
Added openSUSE instructions to readme PR
@@ -87,6 +87,32 @@ If you are using Solus, to install [MangoHud](https://dev.getsol.us/source/mango sudo eopkg it mangohud ``` +#### openSUSE + +If you run openSUSE Leap or Tumbleweed you can get Mangohud from the official repositories. +There are two packages, [mangohud](https://software.opensuse.org/package/mangohud)...
filters_sse2.c: quiet integer sanitizer warnings with clang7+ quiets conversion warnings like: implicit conversion from type 'int' of value -114 (32-bit, signed) to type 'uint8_t' (aka 'unsigned char') changed the value to 142 (8-bit, unsigned)
@@ -163,7 +163,8 @@ static void GradientPredictDirect_SSE2(const uint8_t* const row, _mm_storel_epi64((__m128i*)(out + i), H); } for (; i < length; ++i) { - out[i] = row[i] - GradientPredictor_SSE2(row[i - 1], top[i], top[i - 1]); + out[i] = (uint8_t)(row[i] - + GradientPredictor_SSE2(row[i - 1], top[i], top[i - 1])); ...
(543) enable HTTP events in CLI Previously, the runtime config generated by the CLI had HTTP events disabled when connecting to Cribl/LogStream. That logic has been changed so HTTP is always enabled.
@@ -154,6 +154,12 @@ func (c *Config) setDefault() error { Field: ".*", Value: ".*", }, + { + WatchType: "http", + Name: ".*", + Field: ".*", + Value: ".*", + }, // { // WatchType: "metric", // Name: ".*", @@ -176,15 +182,6 @@ func (c *Config) setDefault() error { }, } - if c.CriblDest == "" { - c.sc.Event.Watch = appe...
apps/examples/nsh: Remove APPNAME, PRIORITY, and STACKSIZE settings from Makefile to avoid showing nsh in Builtin Apps.
############################################################################ # apps/examples/nsh/Makefile # -# Copyright (C) 2007-2008, 2010-2012 Gregory Nutt. All rights reserved. +# Copyright (C) 2007-2008, 2010-2012, 2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt <gnutt@nuttx.org> # # Redistribution ...
Improve `libscope.so` handling in `setupConfigure` do not overwrite the `/usr/lib/appscope/libscope.so` if already exists
@@ -526,12 +526,13 @@ closeFd: * Configure the environment * - setup /etc/profile.d/scope.sh * - extract memory to filter file /usr/lib/appscope/scope_filter - * - extract libscope.so to /usr/lib/appscope/libscope.so + * - extract libscope.so to /usr/lib/appscope/libscope.so if it doesn't exists * - patch the library *...
ci: Skip 'tests/internal/input_chunk.c' on Windows This unittest relies on chunkio's file storage, which Windows port does not support yet. Let's skip it for now.
@@ -19,6 +19,7 @@ cmake -G "NMake Makefiles" ` -D FLB_WITHOUT_flb-it-aws_credentials_profile=On ` -D FLB_WITHOUT_flb-it-aws_credentials_sts=On ` -D FLB_WITHOUT_flb-it-aws_util=On ` + -D FLB_WITHOUT_flb-it-input_chunk=On ` ../ # COMPILE
log: fix message for "info" logs in sim Messages logged at "info" level were printing as "WRN" which was misleading.
@@ -112,7 +112,7 @@ int sim_log_enabled(int level); #define BOOT_LOG_INF(_fmt, ...) \ do { \ if (sim_log_enabled(BOOT_LOG_LEVEL_INFO)) { \ - printf("[WRN] " _fmt "\n", ##__VA_ARGS__); \ + printf("[INF] " _fmt "\n", ##__VA_ARGS__); \ } \ } while (0) #else
HSL: Remove debug
@@ -111,16 +111,11 @@ static void read_table1(snap_membus_t *mem, table1_t t1[TABLE1_SIZE], { unsigned int i, j; - fprintf(stderr, "TABLE1 %d elements @ %p\n", t1_used, mem); - - /* extract data into target table1, or FIFO maybe? */ j = 0; for (i = 0; i < t1_used; i++) { /* copy the string ... */ copy_hashkey(mem[j], t...
conn: describe +fyrd interface to %khan
** ** request-id is a client-supplied atomic identifier that will ** be returned along with the response, to allow correlating -** responses with requests. it may be reused; e.g. 0 could be -** supplied every time for a client that doesn't care about -** responses. +** responses with requests. ** ** %fyrd is a request ...
Fix pushIntegral Bound cannot happen in the pushed type, as it may be smaller than Lua.Integer.
@@ -66,7 +66,8 @@ pushIntegral :: (Integral a, Show a) => a -> Lua () pushIntegral i = let maxInt = fromIntegral (maxBound :: Lua.Integer) minInt = fromIntegral (minBound :: Lua.Integer) - in if i >= minInt && i <= maxInt + i' = fromIntegral i :: Prelude.Integer + in if i' >= minInt && i' <= maxInt then pushinteger $ f...
test/motion_lid.c: Format with clang-format BRANCH=none TEST=none
@@ -48,8 +48,7 @@ static int accel_read(const struct motion_sensor_t *s, intv3_t v) return EC_SUCCESS; } -static int accel_set_range(struct motion_sensor_t *s, - const int range, +static int accel_set_range(struct motion_sensor_t *s, const int range, const int rnd) { s->current_range = range; @@ -63,8 +62,7 @@ static i...
time: add strict event time type checking
@@ -247,6 +247,14 @@ int flb_time_append_to_msgpack(struct flb_time *tm, msgpack_packer *pk, int fmt) return ret; } +static inline int is_eventtime(msgpack_object *obj) +{ + if (obj->via.ext.type != 0 || obj->via.ext.size != 8) { + return FLB_FALSE; + } + return FLB_TRUE; +} + int flb_time_msgpack_to_time(struct flb_ti...
workflow: fix artifact path, git commit
@@ -18,6 +18,21 @@ jobs: run: | sudo apt update sudo apt install gcc-multilib g++-multilib ninja-build python3-setuptools python3-wheel mesa-common-dev libxnvctrl-dev libdbus-1-dev + - name: Prepare Artifact Git Info + shell: bash + run: | + echo "##[set-output name=branch;]${GITHUB_REF#refs/heads/}" + ARTIFACT_NAME="c...
Check that table is non-NULL in nbr_table_add_lladdr
@@ -354,6 +354,10 @@ nbr_table_add_lladdr(nbr_table_t *table, const linkaddr_t *lladdr, nbr_table_rea nbr_table_item_t *item; nbr_table_key_t *key; + if(table == NULL) { + return NULL; + } + /* Allow lladdr-free insertion, useful e.g. for IPv6 ND. * Only one such entry is possible at a time, indexed by linkaddr_null. *...
Default NDK path detection for Xamarin/Android builds
@@ -154,8 +154,7 @@ if args.androidsdkpath == 'auto' and args.target == 'android': if args.androidndkpath == 'auto' and args.target == 'android': args.androidndkpath = os.environ.get('ANDROID_NDK_HOME', None) if args.androidndkpath is None: - print "ANDROID_NDK_HOME variable not set" - exit(-1) + args.androidndkpath = ...
[core] add decls in connections.h
#define _CONNECTIONS_H_ #include "first.h" -#include "base.h" +#include "base_decls.h" + +struct server_socket; /* declaration */ __attribute_cold__ void connections_free(server *srv); @@ -14,8 +16,8 @@ void connection_periodic_maint (server *srv, time_t cur_ts); int connection_send_1xx (request_st *r, connection *con)...
[kernel] fix small typo
@@ -118,7 +118,7 @@ void D1MinusLinearOSI::initializeWorkVectorsForDS(double t, SP::DynamicalSystem // Check dynamical system type Type::Siconos dsType = Type::value(*ds); - assert(dsType == Type::LagrangianLinearTIDS || dsType == Type::LagrangianDS || Type::NewtonEulerDS); + assert(dsType == Type::LagrangianLinearTIDS...
[hsa] Copy buffers in case of CL_MEM_USE_HOST_PTR and HSA Base profile Also: Do not assume that FULL_PROFILE and EMBEDDED_PROFILE match HSA_PROFILE_FULL/BASE. Always advertise FULL_PROFILE with the HSA driver for now.
@@ -720,8 +720,7 @@ pocl_hsa_init (unsigned j, cl_device_id dev, const char *parameters) HSA_CHECK(hsa_agent_get_info(d->agent, HSA_AGENT_INFO_PROFILE, &d->agent_profile)); - dev->profile = ((d->agent_profile == HSA_PROFILE_FULL) ? "FULL_PROFILE" - : "EMBEDDED_PROFILE"); + dev->profile = "FULL_PROFILE"; uint64_t hsa_fr...
Fancy grep regex
@@ -64,8 +64,7 @@ SUT_PATH=(`find "$BUILD_HOME" -name "bin" -type d`) # hack to determine latest tag from GitHub LATEST_URL="https://github.com/OpenWaterAnalytics/epanet-example-networks/releases/latest" -temp_url="$(curl -sI "${LATEST_URL}" | grep -iE "^Location:")" -LATEST_TAG="${temp_url##*/}" +LATEST_TAG="$(curl -s...
Fix scrolling issues with the definitions finder
@@ -916,13 +916,17 @@ fileprivate func parseArgs(_ args: inout [String]) { lines.append(range) } - if lines.indices.contains(def.line-1) { + if lines.indices.contains(def.line-1), textView.contentSize.height > textView.frame.height { let substringRange = lines[def.line-1] let glyphRange = textView.layoutManager.glyphRa...
Don't abort when we can't open a file.
@@ -47,8 +47,10 @@ mergeuse(char *path) st = file->file.globls; f = fopen(path, "r"); - if (!f) - die("Couldn't open %s\n", path); + if (!f) { + fprintf(stderr, "couldn't open %s\n", path); + exit(1); + } loaduse(path, f, st, Visexport); fclose(f); }
makefile: install the demo scripts The demos scripts are not installed when "make install" is invoked. This patch adds a rule to copy them to /usr/share/acrn
@@ -80,6 +80,8 @@ DISTCLEAN_OBJS := $(shell find $(BASEDIR) -name '*.o') PROGRAM := acrn-dm +SAMPLES := $(wildcard samples/*) + all: include/version.h $(PROGRAM) @echo -n "" @@ -117,5 +119,9 @@ $(DM_OBJDIR)/%.o: %.c $(HEADERS) [ ! -e $@ ] && mkdir -p $(dir $@); \ $(CC) $(CFLAGS) -c $< -o $@ -install: $(DM_OBJDIR)/$(PRO...
Unexpectedly dropped package => error reporting fixed
@@ -507,7 +507,7 @@ void t4p4s_after_launch(int idx) { int t4p4s_normal_exit() { t4p4s_print_stats(); - if (encountered_error) { + if (encountered_error || packet_with_error_counter>0) { debug(T4LIT(Normal exit,success) " but " T4LIT(errors in processing packets,error) "\n"); return 3; }
fix MI_ prefix for libraries
@@ -210,13 +210,13 @@ endif() if(WIN32) list(APPEND mi_libraries psapi shell32 user32 advapi32 bcrypt) else() - find_library(LIBPTHREAD pthread) - if (LIBPTHREAD) - list(APPEND mi_libraries ${LIBPTHREAD}) + find_library(MI_LIBPTHREAD pthread) + if (MI_LIBPTHREAD) + list(APPEND mi_libraries ${MI_LIBPTHREAD}) endif() - f...
ifdef for inet6 in log_addr definition.
* just like its done in Unbound via the same log_addr(VERB_LEVEL, const char*, sockaddr_storage*) */ static void -log_addr(const char* descr, struct sockaddr_storage* addr, short family) +log_addr(const char* descr, +#ifdef INET6 + struct sockaddr_storage* addr, +#else + struct sockaddr_in* addr, +#endif + short family...
remove fprintf warnings for invalid mfl and no enable mfl
@@ -450,14 +450,12 @@ static int s2n_recv_client_sct_list(struct s2n_connection *conn, struct s2n_stuf static int s2n_recv_client_max_frag_len(struct s2n_connection *conn, struct s2n_stuffer *extension) { if (!conn->config->enable_server_mfl) { - fprintf(stderr, "warning: Maximum Fragmentation Length not enabled in S2N...
os/fs/driver/mtd: Fix svace errors Fix - improper type casting between integer type variables Fix - possibly unreachable code Fix - result of mathematical operation subject to overflow
@@ -941,9 +941,9 @@ static ssize_t smart_write(FAR struct inode *inode, FAR const unsigned char *buf /* Convert SMART blocks into MTD blocks. */ - mtdstartblock = start_sector * dev->mtdBlksPerSector; - mtdblockcount = nsectors * dev->mtdBlksPerSector; - mtdBlksPerErase = dev->mtdBlksPerSector * dev->sectorsPerBlk; + m...
hslua-core: make "LuaE e" an instance of class MonadFail
@@ -48,6 +48,9 @@ import qualified HsLua.Core.Utf8 as Utf8 #if !MIN_VERSION_base(4,12,0) import Data.Semigroup (Semigroup ((<>))) #endif +#if !MIN_VERSION_base(4,13,0) +import Control.Monad.Fail (MonadFail (..)) +#endif -- | A Lua operation. -- @@ -122,10 +125,21 @@ throwTypeMismatchError expected idx = do pushTypeMism...
sdl: Update TODO.md for SDL2 2.0.8
+## 2.0.8 + +### Hints + +[ ] SDL_HINT_IOS_HIDE_HOME_INDICATOR +[ ] SDL_HINT_RETURN_KEY_HIDES_IME +[ ] SDL_HINT_TV_REMOTE_AS_JOYSTICK +[ ] SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR +[ ] SDL_HINT_VIDEO_DOUBLE_BUFFER + +### Surface + +[ ] SDL_SetYUVConversionMode() +[ ] SDL_GetYUVConversionMode() + +### Android + +[ ] ...
[cmake] rc in version does not work
# --- set siconos current version --- set(MAJOR_VERSION 4) set(MINOR_VERSION 4) -set(PATCH_VERSION 0.rc) +set(PATCH_VERSION 0) set(SICONOS_VERSION "${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}") ### SOVERSION
Fix ShaderFlag parsing;
@@ -1376,9 +1376,9 @@ static void luax_parseshaderflags(lua_State* L, int index, ShaderFlag flags[MAX_ lovrAssert(lua_istable(L, -1), "Shader flags must be a table"); lua_pushnil(L); while (lua_next(L, -2) != 0) { - ShaderFlag* flag = &flags[++*count]; + ShaderFlag* flag = &flags[(*count)++]; - lovrAssert(*count < MAX_...
decoding net: make the fail case more visible
@@ -155,7 +155,9 @@ run_test(Test) :- call(Test), writeln(" Succeeds!") ) ; ( - writeln(" !!! Fails !!!") + writeln("#################################################"), + writeln(" !!! Fails !!!"), + writeln("#################################################") ). :- export run_all_tests/0.
Underscore as shift+rctrl.
@@ -93,8 +93,8 @@ static const LRKCNV lrcnv101[] = /* @ and : keys for western qwerty kb */ {RETROK_BACKQUOTE, 0x1a}, {RETROK_QUOTE, 0x27}, - /* _ as shift+F11 for western qwerty kb */ - {RETROK_F11, 0x33}, + /* _ as shift+rctrl for western qwerty kb */ + {RETROK_RCTRL, 0x33}, /* MacOS Yen */ //{0xa5, 0x0d}
Cleanup launch.json Vscode correct the path to library - currently path points to shell wrapper which results failing in the debug process distinguish targets for x86_64 and aarch64
"version": "0.2.0", "configurations": [ { - "name": "(gdb) curl w/preload", + "name": "(gdb) curl x86_64 w/preload", "type": "cppdbg", "request": "launch", "program": "/usr/bin/curl", //"args": ["http://nghttp2.org/robots.txt"], "args": ["-s", "-o", "/dev/null", "--http1.1", "https://www.google.com/"], //"args": ["-s",...
Fixed attribute name in documentation.
@@ -1292,7 +1292,7 @@ CUPS-Get-PPDs Response: <dt>"document-number" (integer(1:MAX)): - <dd>The client MUST supply a document number to retrieve. The <tt>document-count</tt> attribute for the job defines the maximum document number that can be specified. In the case of jobs with banners (<tt>job-sheets</tt> is not "non...
AppVeyor: Enable Python only for MSVC 64 bit.
@@ -63,7 +63,11 @@ $CMAKE_FLAGS = "$CMAKE_FLAGS -DCMAKE_BUILD_TYPE=Release" $CMAKE_FLAGS = "$CMAKE_FLAGS -DTINYSPLINE_ENABLE_CSHARP=True" $CMAKE_FLAGS = "$CMAKE_FLAGS -DTINYSPLINE_ENABLE_D=True" $CMAKE_FLAGS = "$CMAKE_FLAGS -DTINYSPLINE_ENABLE_JAVA=True" +if ($Env:COMPILER -eq "msvc") { + if ($Env:PLATFORM -eq "Win64")...
[core] add label for 308 Permanent Redirect x-ref:
@@ -77,6 +77,7 @@ static keyvalue http_status[] = { { 305, "Use Proxy" }, { 306, "(Unused)" }, { 307, "Temporary Redirect" }, + { 308, "Permanent Redirect" }, { 400, "Bad Request" }, { 401, "Unauthorized" }, { 402, "Payment Required" },
[bus][pci] load bars for devices even if their address is 0 Probe the size first, and if that turns up anything, mark the bar as valid, even if the address is set to 0. The address can be configured in a later pass of the bus manager. Also print the bars on boot.
@@ -289,6 +289,14 @@ void device::dump(size_t indent) { } char str[14]; printf("dev %s %04hx:%04hx\n", pci_loc_string(loc_, str), config_.vendor_id, config_.device_id); + for (size_t b = 0; b < countof(bars_); b++) { + if (bars_[b].valid) { + for (size_t i = 0; i < indent + 1; i++) { + printf(" "); + } + printf("BAR %z...
net/lwip: Add initialization of union variable in tcp Initialize global union variable used in tcp of lwip
@@ -131,9 +131,8 @@ static const u8_t tcp_persist_backoff[7] = { 3, 6, 12, 24, 48, 96, 120 }; /** List of all TCP PCBs bound but not yet (connected || listening) */ struct tcp_pcb *tcp_bound_pcbs = NULL; /** List of all TCP PCBs in LISTEN state */ -union tcp_listen_pcbs_t tcp_listen_pcbs; -/** List of all TCP PCBs that...
Document MBEDTLS_ALLOW_PRIVATE_ACCESS inside test/helpers.h.
#ifndef TEST_HELPERS_H #define TEST_HELPERS_H +/* Most fields of publicly available structs are private and are wrapped with + * MBEDTLS_PRIVATE macro. This define allows tests to access the private fields + * directly (without using the MBEDTLS_PRIVATE wrapper). */ #define MBEDTLS_ALLOW_PRIVATE_ACCESS #if !defined(MBE...
Modify typing error in procfs
@@ -135,7 +135,7 @@ static const struct procfs_entry_s g_procfsentries[] = { {"mtd", &mtd_procfsoperations}, #endif -#if defined(CONFIG_MTD_PARTITION) && !defined(CONFIG_FS_PROCFS_EXCLUDE_PARTITON) +#if defined(CONFIG_MTD_PARTITION) && !defined(CONFIG_FS_PROCFS_EXCLUDE_PARTITIONS) {"partitions", &part_procfsoperations}...
Add note about new standards
oidc-agent (4.2.5-1) unstable; urgency=medium * Initial package for Debian. (Closes: #980462) + * Upgrade to standards version 4.6.0.1 (no changes needed) -- Marcus Hardt <marcus@hardt-it.de> Tue, 28 Dec 2021 12:51:36 +0200
shm main MAITENANCE added dep rebuilding explanation
@@ -2475,6 +2475,13 @@ sr_shmmain_shm_add(sr_conn_ctx_t *conn, struct lyd_node *sr_mod) return err_info; } + /* + * Dependencies of old modules are rebuild because of possible + * 1) new inverse dependencies when new modules depend on the old ones; + * 2) new dependencies in the old modules in case they were added by f...
mangoapp: set static height to include benchmark
@@ -155,10 +155,7 @@ int main(int, char**) // Rendering ImGui::Render(); static int display_w, display_h; - if((Clock::now() - logger->last_log_end()) < 12s) - glfwSetWindowSize(window, window_size.x + 145.f, window_size.y + 325.f); - else - glfwSetWindowSize(window, window_size.x + 45.f, window_size.y + 10.f); + glfwS...
fix: add ck_assert in 'test_007Transfer_0002TransferFailureNullParam'
@@ -128,7 +128,8 @@ START_TEST(test_007Transfer_0002TransferFailureNullParam) BoatIotSdkInit(); - ethereumWalletPrepare(); + result = ethereumWalletPrepare(); + ck_assert(rtnVal == BOAT_SUCCESS); result = BoatEthTxInit(g_ethereum_wallet_ptr, &tx_ctx, BOAT_TRUE, NULL, "0x333333",
perf-tools/tau: explicit compilers in serial build
@@ -132,6 +132,8 @@ export CONFIG_ARCH=%{machine} -arch=%{machine} \ -prefix=/tmp%{install_path} \ -exec-prefix= \ + -c++=$CXX \ + -cc=$CC \ -fortran=$fcomp \ -iowrapper \ -slog2 \
Fix SharedIconCacheHashtableEqual
@@ -635,7 +635,7 @@ static BOOLEAN SharedIconCacheHashtableEqualFunction( if (IS_INTRESOURCE(entry1->Name)) { if (IS_INTRESOURCE(entry2->Name)) - return entry1->Name == entry2->Name; + return PtrToUlong(entry1->Name) == PtrToUlong(entry2->Name); else return FALSE; }
Document that BIO_gets() preserves '\n'.
@@ -34,7 +34,8 @@ in B<buf>. Usually this operation will attempt to read a line of data from the BIO of maximum length B<size-1>. There are exceptions to this, however; for example, BIO_gets() on a digest BIO will calculate and return the digest and other BIOs may not support BIO_gets() at all. -The returned string is ...
extmod/modiodevices: enable power for known device In the long run, power requirements can be read from the sensor. Until then, we do this manually to ensure we only activate power on sensors that are known to support it.
@@ -41,6 +41,16 @@ STATIC mp_obj_t iodevices_LUMPDevice_make_new(const mp_obj_type_t *type, size_t self->pbdev = pbdevice_get_device(port_num, PBIO_IODEV_TYPE_ID_LUMP_UART); + // FIXME: Read sensor capability flag to see which sensor uses power. As + // a precaution, only enable power for selected known sensors for now...
CI: travis: update rules
@@ -11,9 +11,8 @@ compiler: notifications: irc: "irc.freenode.net#monkey" -# Disable SSL as the test box have a old PolarSSL version (Ubuntu 12.04) -# before_install: -# - sudo apt-get update -qq -# - sudo apt-get install -y libpolarssl-dev +before_script: + - cd build + - cmake ../ -script: ./configure --trace && make...
doc: small readability improvment
@@ -196,7 +196,7 @@ you up-to-date with the multi-language support provided by Elektra. ## Documentation -- <<TODO>> +- Small readability improvement _(@Toniboyyy)_ - <<TODO>> - <<TODO>> - <<TODO>>
Fix style in sway-bar(5) manpage
@@ -50,17 +50,17 @@ Commands **wrap_scroll** <yes|no>:: Enables or disables wrapping when scrolling through workspaces with the - scroll wheel. Default is no. + scroll wheel. Default is _no_. **workspace_buttons** <yes|no>:: - Enables or disables workspace buttons on the bar. Default is yes. + Enables or disables works...
don't error on <hr> continuation
?. ?- p.cur :: :: can't(/directly) contain text - ?($rule $lord $list) ~|(bad-leaf-container+p.cur !!) + ?($lord $list) ~|(bad-leaf-container+p.cur !!) :: - :: only one line in a header - $head | + :: only one line in a header/break + ?($head $rule) | :: :: literals need to end with a blank line ?($code $poem $expr) (g...
rand/rand_unix.c: omit error from DSO_global_lookup. If built with no-dso, DSO_global_lookup leaves "unsupported" message in error queue. Since there is a fall-back code, it's unnecessary distraction.
@@ -247,7 +247,9 @@ int syscall_random(void *buf, size_t buflen) * - Linux since 3.17 with glibc 2.25 * - FreeBSD since 12.0 (1200061) */ + ERR_set_mark(); p_getentropy.p = DSO_global_lookup("getentropy"); + ERR_pop_to_mark(); if (p_getentropy.p != NULL) return p_getentropy.f(buf, buflen) == 0 ? buflen : 0;
Fixed clock initialisation for mcu's where one port is missing.
@@ -187,69 +187,69 @@ hal_gpio_clk_enable(uint32_t port_idx) __HAL_RCC_GPIOB_CLK_ENABLE(); } break; +#endif #if HAL_GPIO_PORT_COUNT > 2 case 2: if (!__HAL_RCC_GPIOC_IS_CLK_ENABLED()) { __HAL_RCC_GPIOC_CLK_ENABLE(); } break; +#endif #if HAL_GPIO_PORT_COUNT > 3 case 3: if (!__HAL_RCC_GPIOD_IS_CLK_ENABLED()) { __HAL_RCC_G...
BugID:16944965: Fix path to eml3047/Config.in
@@ -27,7 +27,7 @@ source "board/cy8ckit-062/Config.in" source "board/esp32devkitc/Config.in" source "board/frdmkl81z/Config.in" source "board/stm32l496g-discovery/Config.in" -source "board/eml3047_new/Config.in" +source "board/eml3047/Config.in" source "board/evkbimxrt1050/Config.in" source "board/mk3239/Config.in" sou...
"right-size" cardinality of doErrorMetric fields.
@@ -328,10 +328,10 @@ doErrorMetric(enum metric_t type, int count, enum control_type_t source, } event_field_t fields[] = { - STRFIELD("proc", g_cfg.procname, 2), + STRFIELD("proc", g_cfg.procname, 4), NUMFIELD("pid", g_cfg.pid, 7), - STRFIELD("host", g_cfg.hostname, 2), - STRFIELD("operation", func, 2), + STRFIELD("ho...
fix rise and fall limits in mcpha-pulser-start.c
@@ -43,7 +43,7 @@ void usage() fprintf(stderr, " rate - pulse rate expressed in counts per second (from 1 to 100000),\n"); fprintf(stderr, " dist - pulse distribution (0 for uniform, 1 for poisson),\n"); fprintf(stderr, " rise - pulse rise time expressed in nanoseconds (from 0 to 100),\n"); - fprintf(stderr, " fall - p...
python: do not crash if pp was not initialized
@@ -349,6 +349,7 @@ error: int PYTHON_PLUGIN_FUNCTION (Close) (ckdb::Plugin * handle, ckdb::Key * errorKey) { ElektraPluginProcess * pp = static_cast<ElektraPluginProcess *> (elektraPluginGetData (handle)); + if (!pp) return 0; moduleData * data = static_cast<moduleData *> (elektraPluginProcessGetData (pp)); if (pp && ...
Replace magic 16 with sane constant.
@@ -23,6 +23,8 @@ LOG_MODULE_DECLARE(zmk, CONFIG_ZMK_LOG_LEVEL); static int start_scan(void); +#define POSITION_STATE_DATA_LEN 16 + static struct bt_conn *default_conn; static struct bt_uuid_128 uuid = BT_UUID_INIT_128(ZMK_SPLIT_BT_SERVICE_UUID); @@ -33,9 +35,9 @@ static u8_t notify_func(struct bt_conn *conn, struct bt...
typechecker-regex-prototype: fix libfa build on debian, remove unused declaration
-- -- @copyright BSD License (see LICENSE.md or https://www.libelektra.org) -- -module FiniteAutomata (FiniteAutomata, State, BasicAutomata (..), +module FiniteAutomata (FiniteAutomata, BasicAutomata (..), compile, makeBasic, asRegexp, minimize, FiniteAutomata.concat, union, intersect, complement, minus, iter, contains...
wireless/bluetooth/btsak: Removed bogus name from structure. This was left over from a previous change and had me confused for awhile.
@@ -182,9 +182,9 @@ static void btsak_cmd_scanget(FAR struct btsak_s *btsak, FAR char *cmd, for (i = 0; i < btreq.btr_nrsp; i++) { rsp = &result[i]; - printf("%d.\tname: %s\n", i + 1, rsp->sr_name); - printf("\taddr: " + printf("%2d.\taddr: " "%02x:%02x:%02x:%02x:%02x:%02x type: %d\n", + i + 1, rsp->sr_addr.val[0], rsp...
mangoapp: notifier
@@ -28,6 +28,7 @@ overlay_params params {}; static ImVec2 window_size; static uint32_t vendorID; static std::string deviceName; +static notify_thread notifier; struct mangoapp_msg_header { long msg_type; // Message queue ID, never change @@ -121,6 +122,8 @@ int main(int, char**) create_fonts(params, sw_stats.font1, sw_...
landscape: altered RemoteContent regexes for images, video, and audio to include period literal. This prevents URLs ending in 'mov', 'ogg', etc. from rendering as empty video/audio, allowing people to learn about Isaac Asimov and William Rees-Mogg.
@@ -38,10 +38,10 @@ export interface RemoteContentProps { } export const IMAGE_REGEX = new RegExp( - /(jpg|img|png|gif|tiff|jpeg|webp|webm|svg)$/i + /(\.jpg|\.img|\.png|\.gif|\.tiff|\.jpeg|\.webp|\.webm|\.svg)$/i ); -export const AUDIO_REGEX = new RegExp(/(mp3|wav|ogg|m4a)$/i); -export const VIDEO_REGEX = new RegExp(/(...
handle invalid pm_socket requests
@@ -145,7 +145,7 @@ def process_request(json_str, num_candidates=10): try: reqs = json.loads(json_str) except json.decoder.JSONDecodeError as e: - logging.error('Request invalid') + logging.error('Received invalid request') return logging.debug(json_str) @@ -154,11 +154,15 @@ def process_request(json_str, num_candidate...
close h2client stream on goaway
@@ -655,6 +655,7 @@ static int handle_goaway_frame(struct st_h2o_http2client_conn_t *conn, h2o_http2 kh_foreach_value(conn->streams, stream, { if (stream->stream_id > payload.last_stream_id) { call_callback_with_error(stream, h2o_httpclient_error_refused_stream); + close_stream(stream); } });
build UPDATE abi base soversion 2.25.1 Plugin API NBC changes.
@@ -459,7 +459,7 @@ gen_doc("${doxy_files}" ${LIBYANG_VERSION} ${LIBYANG_DESCRIPTION} ${project_logo # generate API/ABI report if ("${BUILD_TYPE_UPPER}" STREQUAL "ABICHECK") - lib_abi_check(yang "${headers}" ${LIBYANG_SOVERSION_FULL} d2f1608b348fc256742f9543d2187397c615d733) + lib_abi_check(yang "${headers}" ${LIBYANG_...
Fix native module issue.
@@ -1568,7 +1568,7 @@ value, one key will be ignored." path)) (def require - "(require module)\n\n + "(require module & args)\n\n Require a module with the given name. Will search all of the paths in module/paths, then the path as a raw file path. Returns the new environment returned from compiling and running the file...
build x64 by default for Windows
@@ -21,7 +21,7 @@ jobs: shell: cmd run: | cd build - cmake -G "Visual Studio 16 2019" -A Win32 -T v141_xp -DCMAKE_BUILD_TYPE=%BUILD_TYPE% .. + cmake -G "Visual Studio 16 2019" -DCMAKE_BUILD_TYPE=%BUILD_TYPE% .. cmake --build . --config %BUILD_TYPE% --parallel - name: Deploy @@ -44,7 +44,7 @@ jobs: shell: cmd run: | cd ...
Quick documentation for yr_bitmask_* macros.
@@ -32,6 +32,25 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include <yara/integers.h> +// +// Utility macros for working with bitmaps. +// +// Declare a bitmask of n bits: +// YR_BITMASK my_bitmask[YR_BITMASK_SIZE(n)]; +// +// Clear all bits: +// yr_bitmask_clear_all(my_bitmask) +// +// Set bit n t...
OcBootManagementLib: Assign image LoadOptions as Unicode
@@ -872,6 +872,8 @@ InternalLoadBootEntry ( EFI_LOADED_IMAGE_PROTOCOL *LoadedImage; VOID *EntryData; UINT32 EntryDataSize; + CONST CHAR8 *Args; + UINT32 ArgsLen; ASSERT (BootPolicy != NULL); ASSERT (BootEntry != NULL); @@ -974,16 +976,24 @@ InternalLoadBootEntry ( BootEntry->LoadOptions )); + LoadedImage->LoadOptionsSi...
Deactivate offscreen actors from asm
@@ -620,28 +620,35 @@ _UpdateActors:: loop_exit: + ;; Deactivate Offscreen Actors ---------------------------------------------- + ; b=loop index + ld b, #0 ;; b = 0 + delete_loop_cond: + ; If b == actors_active_size + ld hl, #_actors_active_delete_count + ld a, (hl) ;; a = actors_active_delete_count + cp b ;; compare ...
[update] check whether it's a same console device.
@@ -1116,7 +1116,7 @@ RTM_EXPORT(rt_console_get_device); * * @param name the name of new console device * - * @return the old console device handler + * @return the old console device handler on successful, or RT_NULL on failure. */ rt_device_t rt_console_set_device(const char *name) { @@ -1127,6 +1127,10 @@ rt_device_...
Remove gp_resgroup_memory_policy from postgres.conf gp_resgroup_memory_policy is recently introduced by resource group module, so when running binary swap cases, the old binary can not recognize it, so remove it to make cases pass
@@ -489,13 +489,6 @@ log_autostats=off # print additional autostats information gp_resqueue_memory_policy = 'eager_free' # memory request based queueing. # eager_free, auto or none -#--------------------------------------------------------------------------- -# RESOURCE GROUP -#-----------------------------------------...
poppy: Lower VCCIO from 0.975V to 0.850V CQ-DEPEND=CL:*591042 BRANCH=poppy TEST=No regressions observed. Commit-Ready: Furquan Shaikh Tested-by: Furquan Shaikh
@@ -419,11 +419,11 @@ static void board_pmic_disable_slp_s0_vr_decay(void) /* * VCCIOCNT: * Bit 6 (0) - Disable decay of VCCIO on SLP_S0# assertion - * Bits 5:4 (00) - Nominal output voltage: 0.975V + * Bits 5:4 (00) - Nominal output voltage: 0.850V * Bits 3:2 (10) - VR set to AUTO on SLP_S0# de-assertion * Bits 1:0 (1...
Update sgemm_kernel_16x4_skylakex_2.c
@@ -376,5 +376,5 @@ CNAME(BLASLONG m, BLASLONG n, BLASLONG k, float alpha, float * __restrict__ A, f if(n_count>0) COMPUTE(1) return 0; } - +#include <immintrin.h> #include "sgemm_direct_skylakex.c"
[trace] Split performance metrics at `nop` instruction
@@ -505,6 +505,11 @@ def main(): False, time_info, args.offl, not args.saddr, args.permissive) if perf_metrics[0]['start'] is None: perf_metrics[0]['start'] = time_info[1] + # Create a new section after every 'nop' instruction + if 'nop' in ann_insn: + perf_metrics[-1]['end'] = time_info[1] + perf_metrics.append(defaul...
Replace leftover MAKE_ROUTING_NONE with MAKE_ROUTING_NULLROUTING
@@ -15,7 +15,7 @@ PROJECT_SOURCEFILES += $(REST_RESOURCES_FILES) # REST Engine shall use Erbium CoAP implementation MODULES += os/net/app-layer/coap -MAKE_ROUTING = MAKE_ROUTING_NONE +MAKE_ROUTING = MAKE_ROUTING_NULLROUTING all: $(CONTIKI_PROJECT)
dm: hyper_dmabuf: clean up assert validate fd before use it
#include <stdlib.h> #include <string.h> #include <unistd.h> -#include <assert.h> #include <pthread.h> #include "dm.h" @@ -343,8 +342,9 @@ virtio_hyper_dmabuf_deinit(struct vmctx *ctx, struct pci_vdev *dev, char *opts) virtio_hyper_dmabuf_k_stop(); virtio_hyper_dmabuf_k_reset(); kstatus = VIRTIO_DEV_INITIAL; - assert(vb...
doc: getting_started.md: text updates
@@ -96,7 +96,7 @@ Search for "CartoMobileSDK.WinPhone10" or use url: "https://www.nuget.org/packag If you do not want to use package manager, you can download SDK from the [Github mobile-sdk project releases page]( https://github.com/CartoDB/mobile-sdk/releases) -## Registering your Mobile App +## Registering your App ...
libflash: fix memory leak on flash_exit() LeakSanitizer caught this with libflash/test/test-flash.c: Direct leak of 4096 byte(s) in 1 object(s) allocated from: 0x7f72546ee850 in malloc (/lib64/libasan.so.4+0xde850) 0x405ff0 in flash_init libflash/test/../libflash.c:830 0x408632 in main libflash/test/test-flash.c:382 0x...
@@ -863,8 +863,11 @@ bail: void flash_exit(struct blocklevel_device *bl) { /* XXX Make sure we are idle etc... */ - if (bl) - free(container_of(bl, struct flash_chip, bl)); + if (bl) { + struct flash_chip *c = container_of(bl, struct flash_chip, bl); + free(c->smart_buf); + free(c); + } } void flash_exit_close(struct b...
adds bash completion for argument options for oidc-token
@@ -25,12 +25,12 @@ _needArgument() { return 0 } -#TODO completion for options _oidc-token() { - local cur prev opts + local cur prev prevprev opts COMPREPLY=() cur="${COMP_WORDS[COMP_CWORD]}" prev="${COMP_WORDS[COMP_CWORD-1]}" + prevprev="${COMP_WORDS[COMP_CWORD-2]}" local IFS=$'\t\n' opts="--listaccounts --time= @@ -...
do not report warnning if Slua.getClass
@@ -332,7 +332,7 @@ namespace SLua #if SLUA_CHECK_REFLECTION int isReflect = LuaDLL.luaS_pushobject(l, index, getAQName(o), gco, udCacheRef); - if (isReflect != 0 && checkReflect) + if (isReflect != 0 && checkReflect && !(o is LuaClassObject)) { Logger.LogWarning(string.Format("{0} not exported, using reflection instea...
Mismatch In Joint Tessellation Factor
@@ -144,7 +144,7 @@ namespace carto { if (style.getLineJoinType() == LineJoinType::LINE_JOIN_TYPE_BEVEL) { segments = deltaAngle != 0 ? 1 : 0; } else { //style.getLineJoinType() == LineJoinType::ROUND - segments = static_cast<int>(std::ceil(std::abs(deltaAngle) * style.getWidth() * LINE_ENDPOINT_TESSELATION_FACTOR)); +...
docs: updata README_en.md updata README_en.md
@@ -58,7 +58,7 @@ After these files copied, the directory structure should look like: After compiling, static library `libboatvendor.a` and `libboatwallet.a` will be created in `<MT3620 Root>/BoAT-X-Framework/lib` directory. -### 2. Debug demo program +## Debug demo program 1. Copy`<MT3620 Root>/BoAT-X-Framework/lib` i...
hark-graph-hook: correctly get rear of index
update-core ?- mode.kind %count (hark %unread-count place %.y 1) - %each (hark %unread-each place /(rsh 4 (scot %ui (rear index.post)))) + %each (hark %unread-each place /(rsh 4 (scot %ui (rear self-idx)))) %none update-core == == update-core ?- mode.kind %count (hark %unread-count place %.n 1) - %each (hark %read-each...
Tests: print path to unit.log file when it was saved.
@@ -52,6 +52,9 @@ class TestUnit(unittest.TestCase): if '--leave' not in sys.argv and success: shutil.rmtree(self.testdir) + else: + self._print_path_to_log() + def check_modules(self, *modules): self._run() @@ -191,11 +194,16 @@ class TestUnit(unittest.TestCase): for skip in self.skip_alerts: alerts = [al for al in al...
fix(chainmaker): if compiling "chainmaker" by CMake, return an error and slove this problem .#843
@@ -28,7 +28,6 @@ wait for its receipt. #include "boatplatform_internal.h" #include "common/request.pb-c.h" #include "common/transaction.pb-c.h" -#include "common/common.pb-c.h" BOAT_RESULT generateTxRequestPayloadPack(BoatHlchainmakerTx *tx_ptr, char *method, char* contract_name, BoatFieldVariable *output_ptr) {
motor: tidy mix scaling
@@ -79,16 +79,11 @@ static float motord(float in, int x) { static void motor_mixer_scale_calc(float mix[4]) { #ifdef BRUSHLESS_MIX_SCALING - uint8_t mix_scaling = 0; - // only enable once really in the air - if (flags.on_ground) { - mix_scaling = 0; - } else { - mix_scaling = flags.in_air; + if (flags.on_ground || !fla...
Update: Guarantee BELIEF_CONCEPT_MATCH_TARGET belief concept matches, avoiding the system being lazy after busy times
@@ -351,9 +351,23 @@ void Cycle_Inference(long currentTime) { //Inferences #if STAGE==2 - long countConceptsMatched = 0; for(int i=0; i<eventsSelected; i++) { + long countConceptsMatched = 0; + bool fired[CONCEPTS_MAX] = {0}; //whether a concept already fired + for(;;) + { + long countConceptsMatchedNew = 0; + //Adjust...