message
stringlengths
6
474
diff
stringlengths
8
5.22k
fix valid pointer detection on mac
@@ -217,9 +217,15 @@ static _Atomic(uintptr_t)mi_segment_map[MI_SEGMENT_MAP_WSIZE]; // 2KiB per TB w static size_t mi_segment_map_index_of(const mi_segment_t* segment, size_t* bitidx) { mi_assert_internal(_mi_ptr_segment(segment) == segment); // is it aligned on MI_SEGMENT_SIZE? - uintptr_t segindex = ((uintptr_t)segme...
Update _TZ3000_t8hzpgnd_2gang_bat_switch.json Added battery event
{ "name": "attr/uniqueid" }, + { + "name": "config/battery", + "awake": true, + "refresh.interval": 4000, + "read": { + "at": "0x0021", + "cl": "0x0001", + "ep": 1, + "fn": "zcl" + }, + "parse": { + "at": "0x0021", + "cl": "0x0001", + "ep": 1, + "eval": "Item.val = Attr.val / 2" + }, + "default": 0 + }, { "name": "conf...
nsim-plugin coverity issues
@@ -348,11 +348,26 @@ static void vl_api_nsim_cross_connect_enable_disable_t_handler vl_api_nsim_cross_connect_enable_disable_reply_t *rmp; nsim_main_t *nsm = &nsim_main; int rv; + u32 sw_if_index0, sw_if_index1; - rv = nsim_cross_connect_enable_disable (nsm, ntohl (mp->sw_if_index0), - ntohl (mp->sw_if_index1), + sw_i...
restore_dates(): handle case when tpl_Alen() returns -1
@@ -1755,6 +1755,7 @@ restore_dates (void) { char *path = NULL; uint32_t date, idx = 0; char fmt[] = "A(u)"; + int len; if (!(path = check_restore_path ("I32_DATES.db"))) return; @@ -1762,7 +1763,10 @@ restore_dates (void) { tn = tpl_map (fmt, &date); tpl_load (tn, TPL_FILE, path); - persisted_dates_len = tpl_Alen (tn,...
Add disk interface for nffs
#include "nffs_priv.h" #include "nffs/nffs.h" #include "fs/fs_if.h" +#include "disk/disk.h" struct nffs_area *nffs_areas; uint8_t nffs_num_areas; @@ -192,6 +193,7 @@ nffs_open(const char *path, uint8_t access_flags, struct fs_file **out_fs_file) { int rc; struct nffs_file *out_file; + char *filepath = NULL; nffs_lock()...
Homebridge script: init again if bridgeid or port is missing.
@@ -469,7 +469,7 @@ trap 'TIMEOUT=0' SIGUSR1 while [ 1 ] do - if [[ -z "$ZLLDB" ]] || [[ ! -f "$ZLLDB" ]]; then + if [[ -z "$ZLLDB" ]] || [[ ! -f "$ZLLDB" ]] || [[ ! -f "$DECONZ_PORT" ]] || [[ ! -f "$BRIDGEID" ]]; then init fi
Also allow ctrlKey to be used to enable "Paste Event" button
@@ -46,7 +46,7 @@ class AddCommandButton extends Component { if (e.target.nodeName !== "BODY") { return; } - this.setState({ pasteMode: e.altKey }); + this.setState({ pasteMode: e.altKey || e.ctrlKey }); }; onBlur = e => { @@ -54,7 +54,7 @@ class AddCommandButton extends Component { }; onOpen = (e) => { - if (e.altKey)...
pack: fix a truncation bug on Windows `atol()` converts a numeric string into a long number. On Windows, `long` means "32-bit integer": For this reason, the current logic will misbehave if the incoming number is bigger than Fix it.
@@ -199,7 +199,7 @@ static char *tokens_to_msgpack(struct flb_pack_state *state, msgpack_pack_double(&pck, atof(p)); } else { - msgpack_pack_int64(&pck, atol(p)); + msgpack_pack_int64(&pck, atoll(p)); } } break;
Add deploy tags to .travis.yml.
@@ -36,3 +36,11 @@ jobs: - ./build.macosx-x86_64.sh - ./build.docs.sh - popd + deploy: + provider: pages + skip_cleanup: true + github_token: $GITHUB_TOKEN + keep_history: true + local_dir: tools/ci/build.docs/html + on: + branch: master
fix log error colon typo
@@ -512,7 +512,7 @@ void ConnectionSTREAM::TransmitPacketsLoop(const ThreadData args) } catch (const std::bad_alloc& ex) //not enough memory for buffers { - lime:error("Error allocating Tx buffers, not enough memory"); + lime::error("Error allocating Tx buffers, not enough memory"); return; }
add text about implicit access token refresh OIDCUserInfoRefreshInterval
# The refresh interval in seconds for the claims obtained from the userinfo endpoint # When not defined the default is 0, i.e. the claims are retrieved only at session creation time. +# If refreshing fails, it is assumed that the access token is expired and an attempt will be made +# to refresh the access token using t...
spi_slave: remove debug code Closes
@@ -312,30 +312,6 @@ esp_err_t SPI_SLAVE_ATTR spi_slave_transmit(spi_host_device_t host, spi_slave_tr return ESP_OK; } -#ifdef DEBUG_SLAVE -static void dumpregs(spi_dev_t *hw) -{ - esp_rom_printf("***REG DUMP ***\n"); - esp_rom_printf("mosi_dlen : %08X\n", hw->mosi_dlen.val); - esp_rom_printf("miso_dlen : %08X\n", hw->...
Fix aomp_mappings
@@ -32,6 +32,13 @@ int main() if(aomp_gpu && strstr(aomp_gpu, nvidia) != NULL) isAMDGPU = 0; + // a hacky way to know the default number of teams + #pragma omp target teams map(tofrom:MAX_TEAMS) + { + if (omp_get_team_num() == 0) + MAX_TEAMS = omp_get_num_teams(); + } + fprintf(stderr, "MAX_TEAMS: %d\n", MAX_TEAMS); //...
v2.0.23 landed
-ejdb2 (2.0.23) UNRELEASED; urgency=medium +ejdb2 (2.0.23) testing; urgency=medium * BUG: Fixed incorrect behaviour of `jbi_ftoa` - -- Anton Adamansky <adamansky@gmail.com> Fri, 19 Jul 2019 05:43:47 +0700 + -- Anton Adamansky <adamansky@gmail.com> Fri, 19 Jul 2019 05:55:16 +0700 ejdb2 (2.0.22) testing; urgency=medium
don't fail fatally if qtrace can't be loaded Helps with p9 public mambo on fedora at least Fixes:
if { [file exists $env(LIB_DIR)/perf/qtrace.tcl] == 1} { - source $env(LIB_DIR)/perf/qtrace.tcl + if { [catch {source $env(LIB_DIR)/perf/qtrace.tcl} issue ] } { + puts "QTrace not available: $issue" + } proc start_qtrace { { qtfile qtrace.qt } } { QTrace::Initialize p9 mysim
Add icon to client script tools
@@ -738,7 +738,7 @@ sub mkvcbuild $proj->AddIncludeDir('src\bin\pg_dump'); $proj->AddIncludeDir('src\bin\psql'); $proj->AddReference($libpq, $libpgcommon, $libpgport); - $proj->AddResourceFile('src\bin\scripts', 'PostgreSQL Utility'); + $proj->AddResourceFile('src\bin\scripts', 'PostgreSQL Utility', 'win32'); $proj->Ad...
rhosimulator: changing user-agent to RhoSimulator
@@ -195,6 +195,9 @@ currentThreadId = QThread::currentThreadId();//this->thread()->currentThreadId() } QWebEngineProfile * profile = QWebEngineProfile::defaultProfile(); + #ifdef RHODES_EMULATOR + profile->setHttpUserAgent("RhoSimulator"); + #endif rho::String rs_dir = RHODESAPP().getRhoRootPath()+RHO_EMULATOR_DIR; QSt...
Fix broken test: new BUFR key has been added
@@ -135,7 +135,7 @@ KNOWN_GRIB_KEYS = ['7777', 'EPS information', 'GRIBEditionNumber', 'N', 'NV', KNOWN_BUFR_KEYS = ['edition', 'masterTableNumber', 'bufrHeaderSubCentre', 'bufrHeaderCentre', 'updateSequenceNumber', 'dataCategory', 'dataSubCategory', 'masterTablesVersionNumber', 'localTablesVersionNumber', 'typicalYear...
build: don't include directories in symlink targets When DESTDIR is used, the target of the symlinks is incorrect -- but the symlinks are pointing to a file in the same directory, so there's no need to include the directory at all.
@@ -1286,8 +1286,8 @@ install: all mkdir -p $(DESTDIR)$(libdir) install -m 644 -p ${ARCHIVE_LIB} ${SHARED_LIB} $(DESTDIR)$(libdir) install -m 644 -p include/liquid.h $(DESTDIR)$(prefix)/include/liquid/liquid.${VERSION}.h - ln -sf $(DESTDIR)$(libdir)/libliquid.${VERSION}.${SH_LIB} $(DESTDIR)$(libdir)/libliquid.${SH_LIB}...
Display variables only referenced in custom events text
@@ -598,6 +598,24 @@ const editCustomEvent = (state, action) => { : `Variable ${letter}` }; } + if (args.text) { + const text = Array.isArray(args.text) ? args.text.join() : args.text; + const variablePtrs = text.match(/\$V[0-9]\$/g); + if (variablePtrs) { + variablePtrs.forEach(variablePtr => { + const variable = vari...
Fix attach flags to include Interrupts for attach
@@ -541,7 +541,7 @@ int main(int argc, char *argv[]) timeout = strtol(optarg, (char **)NULL, 0); /* in sec */ break; case 'I': /* irq */ - attach_flags = SNAP_CCR_IRQ_ATTACH; + attach_flags |= SNAP_CCR_IRQ_ATTACH; action_irq = ACTION_DONE_IRQ; break; default:
system/readline/readline_common.c: Don't save the command again in the history buffer if it's the one at the top.
@@ -693,6 +693,12 @@ ssize_t readline_common(FAR struct rl_common_s *vtbl, FAR char *buf, */ if (nch >= 1) + { + /* If this command is the one at the top of the circular + * buffer, don't save it again. + */ + + if (strncmp(buf, g_cmdhist.buf[g_cmdhist.head], nch) != 0) { g_cmdhist.head = (g_cmdhist.head + 1) % RL_CMDH...
doc: update README for TCM meeting change TCM (Technical comunity meetings) are monthly not weekly...
@@ -36,7 +36,7 @@ its members and the User Community to get the most out of Project ACRN. Welcome to the project ARCN community! -We're now holding weekly Technical Community Meetings and encourage you +We're now holding monthly Technical Community Meetings and encourage you to call in and learn more about the project....
Fix FPS displaying as 0 With the framerate manager gone and vsync disabled, it's possible for the engine to update in less than a millisecond. In that case, the FPS counter would display 0 FPS. Change it to display 1000 FPS instead.
@@ -16202,7 +16202,8 @@ unsigned getFPS(void) lasttick = curtick; if(!framerate) { - return 0; + // if the frame took 0 ms, act like it was 1 ms instead + return 1000; } #ifdef PSP return ((10000000 / framerate) + 9) / 10;
hv: assign: fix remaining MISRA-C violations This patch fixes the remaining MISRA-C violations in arch/x86/assign.c Acked-by: Eddie Dong
@@ -42,7 +42,7 @@ ptirq_lookup_entry_by_sid(uint32_t intr_type, } static inline struct ptirq_remapping_info * -ptirq_lookup_entry_by_vpin(struct acrn_vm *vm, uint8_t virt_pin, bool pic_pin) +ptirq_lookup_entry_by_vpin(const struct acrn_vm *vm, uint8_t virt_pin, bool pic_pin) { struct ptirq_remapping_info *entry; @@ -28...
Use s2v macro to convert StackValue* to TValue* This is more in line with the rest of the PUC-Lua code.
@@ -73,7 +73,7 @@ int luaopen_${MODNAME}(lua_State *L) CClosure *func = luaF_newCclosure(L, 1); func->f = init_${MODNAME}; sethvalue(L, &func->upvalue[0], titan_globals); - setclCvalue(L, &L->top->val, func); + setclCvalue(L, s2v(L->top), func); api_incr_top(L); lua_call(L, 0, 0); @@ -312,7 +312,7 @@ generate_program =...
Fix column dialog fonts
@@ -46,7 +46,6 @@ typedef struct _COLUMNS_DIALOG_CONTEXT PPH_LIST ActiveListArray; PPH_STRING InactiveSearchboxText; PPH_STRING ActiveSearchboxText; - } COLUMNS_DIALOG_CONTEXT, *PCOLUMNS_DIALOG_CONTEXT; INT_PTR CALLBACK PhpColumnsDlgProc( @@ -127,21 +126,15 @@ static HFONT PhpColumnsGetCurrentFont( VOID ) { - HFONT res...
link-checker: print what is going on
@@ -293,6 +293,8 @@ link_task: -DBUILD_STATIC=OFF -DBUILD_TESTING=OFF - *generate + - cmake --build "$BUILD_DIR" + - scripts/link-checker build/external-links.txt - cmake --build "$BUILD_DIR" 2>&1 | grep 'warning: invalid link' > broken_links.txt || true - scripts/link-checker build/external-links.txt 2>> broken_links....
fuzz: use calloc instead of alloc for dynamic file
@@ -559,7 +559,7 @@ static void *fuzz_threadNew(void *arg) fuzzer_t fuzzer = { .pid = 0, .persistentPid = 0, - .dynamicFile = util_Malloc(hfuzz->maxFileSz), + .dynamicFile = util_Calloc(hfuzz->maxFileSz), .fuzzNo = fuzzNo, .persistentSock = -1, .tmOutSignaled = false,
docs[#1142]:update README_en
@@ -60,6 +60,16 @@ Add the following line as below: $(wildcard $(EXAMPLES_SRC_DIR)/boat_demo/*.c) \ ``` +### 2.Register demo's entry-point function +Open `<XY1100 Root>/TARGETS/xinyiNBSoC/USERAPP/basic/src/main.c`, make an external declaration of the demo entry function, and add the demo entry function to the `user_tas...
ExtendedTools: Add extra firmware guids
@@ -20,9 +20,12 @@ struct _EFI_GUID_TABLE { // dmex: 77fa9abd-0359-4d32-bd60-28f4e78f784b { L"EFI_WINNT_OS", { 0x77fa9abd, 0x0359, 0x4d32, { 0xbd, 0x60, 0x28, 0xf4, 0xe7, 0x8f, 0x78, 0x4b } } }, - // dmex: ba57e015-65b3-4c3c-b274-659192f699e3 { L"EFI_WINNT_WHEA", { 0xba57e015, 0x65b3, 0x4c3c, { 0xb2, 0x74, 0x65, 0x91, ...
we do not accept all crappy frames
@@ -3202,11 +3202,7 @@ while(0 < infolen) infolen -= tagptr->len +IETAG_SIZE; continue; } - if(tagptr->len > infolen) - { - if(ef == false) return false; - return true; - } + if(tagptr->len > infolen) return false; if(tagptr->id == TAG_SSID) { if(tagptr->len > ESSID_LEN_MAX)
Update CommonFields.h Adjust formatting to match the master branch
#define DIAG_LEVEL_NOTSET 255 #define DIAG_LEVEL_DEFAULT DIAG_LEVEL_NOTSET /* Default level is inherited from parent */ #define DIAG_LEVEL_NONE 0 /* Logging disabled */ + /* Windows OS diagnostic level classification */ #define DIAG_LEVEL_BASIC 1 /* Basic info */ #define DIAG_LEVEL_ENHANCED 2 /* Additional performance ...
fuzz: check for hfuzz->terminating in a few more blocking places
@@ -205,6 +205,9 @@ static void fuzz_setState(honggfuzz_t * hfuzz, fuzzState_t state) static size_t cnt = 0; ATOMIC_PRE_INC(cnt); while (ATOMIC_GET(cnt) < hfuzz->threadsMax) { + if (ATOMIC_GET(hfuzz->terminating) == true) { + return; + } sleep(1); } } @@ -548,6 +551,11 @@ static void fuzz_fuzzLoop(honggfuzz_t * hfuzz, ...
still fixing counter current mode
@@ -172,9 +172,16 @@ static void counter_dobang(t_counter *x, int notjam) else if (offmax) outlet_float(x->x_out3, 0); else if (onmin) { - if (x->x_carrybang) outlet_bang(x->x_out2); + if (x->x_carrybang) + { + x->x_min = x->x_setmin; + x->x_max = x->x_setmax; + outlet_bang(x->x_out2); + } else { + x->x_min = x->x_setm...
build: link to new mbedtls-2.14.1
@@ -273,8 +273,8 @@ if(FLB_TLS) option(ENABLE_TESTING OFF) option(ENABLE_PROGRAMS OFF) option(INSTALL_MBEDTLS_HEADERS OFF) - add_subdirectory(lib/mbedtls-2.13.0 EXCLUDE_FROM_ALL) - include_directories(lib/mbedtls-2.13.0/include) + add_subdirectory(lib/mbedtls-2.14.1 EXCLUDE_FROM_ALL) + include_directories(lib/mbedtls-2...
Fix space calculation in fs_full assertion
@@ -123,7 +123,7 @@ int main(int argc, char **argv) uint64_t new_bwritten = write_blocks(fd, bwritten, BLOCKSIZE); printf("wrote %lu blocks\n", new_bwritten); /* space for two new logs could be allocated since the first write */ - assert(new_bwritten > bwritten - 2 * MAX_FREE_BYTES/BLOCKSIZE); + assert(new_bwritten >= ...
Rename VFTable -> VTable
@@ -94,7 +94,7 @@ internal sealed class VirtualFunctionGenerator : IIncrementalGenerator string paramNames = MethodInfo.GetParameterNamesString(); if (MethodInfo.Parameters.Any()) paramNames = ", " + paramNames; - builder.AppendLine($"{MethodInfo.GetReturnString()}VFTable->{MethodInfo.Name}(thisPtr{paramNames});"); + b...
replace libretro-common 7
#include <retro_inline.h> #define THREADVARS_MAGIC 0x21545624 /* !TV$ */ +typedef OSThread* pthread_t; int pthread_create(pthread_t *thread, const pthread_attr_t *attr, void *(*start_routine)(void *), void *arg); void pthread_exit(void *retval); @@ -66,7 +67,7 @@ static INLINE Thread threadGetCurrent(void) static INLIN...
[audio]update audio/audio_pipe.h
@@ -59,7 +59,10 @@ rt_err_t rt_audio_pipe_init(struct rt_audio_pipe *pipe, enum rt_audio_pipe_flag flag, rt_uint8_t *buf, rt_size_t size); - - +rt_err_t rt_audio_pipe_detach(struct rt_audio_pipe *pipe); +#ifdef RT_USING_HEAP +rt_err_t rt_audio_pipe_create(const char *name, enum rt_audio_pipe_flag flag, rt_size_t size);...
Fix bug gaussian_pz function
@@ -129,7 +129,7 @@ double gaussian_pz(double z_ph, double z_s, void* params, int *status){ //printf("gaussian_pz = %3.3e\n", sigma_z0); double sigma_z = sigma_z0 * (1. + z_s); return exp(- (z_ph - z_s)*(z_ph - z_s) / (2.*sigma_z*sigma_z)) \ - / (sqrt(2.*M_PI) * sigma_z*sigma_z); + / (sqrt(2.*M_PI) *sigma_z); } /*-----...
ci: improve pytest doc
python_files = pytest_*.py # ignore PytestExperimentalApiWarning for record_xml_attribute +# set traceback to "short" to prevent the overwhelming tracebacks addopts = -s --embedded-services esp,idf -W ignore::_pytest.warning_types.PytestExperimentalApiWarning + --tb short markers = esp32: support esp32 target
Version bumped to 0.8.0
@@ -2,7 +2,7 @@ cmake_minimum_required (VERSION 2.8) project (vcf-validator CXX C) set (vcf-validator_VERSION_MAJOR 0) -set (vcf-validator_VERSION_MINOR 7) +set (vcf-validator_VERSION_MINOR 8) set (vcf-validator_VERSION_PATCH 0) configure_file (
Started writing the doxygen comments for lsst_specs.h but I don't have the knowledge to finish it.
+/** @file */ + #pragma once #include "ccl_core.h" #include "math.h" #include "gsl/gsl_integration.h" #include "gsl/gsl_spline.h" +/** A user-defined P(z) function. + * This is a user-defined P(z) function, + * with a void* field to contain the parameters to that function. + */ typedef struct { double (* your_pz_func)(...
Updated version to 11.6-1 and removed aomp-11.6-0 tags from aomp_common_vars
@@ -19,7 +19,7 @@ ROCM_VERSION=${ROCM_VERSION:-3.6.0} # Set the AOMP VERSION STRING and AOMP_PROJECT_REPO_BRANCH. AOMP_VERSION=${AOMP_VERSION:-"11.6"} -AOMP_VERSION_MOD=${AOMP_VERSION_MOD:-"0"} +AOMP_VERSION_MOD=${AOMP_VERSION_MOD:-"1"} AOMP_VERSION_STRING=${AOMP_VERSION_STRING:-"$AOMP_VERSION-$AOMP_VERSION_MOD"} expor...
TCPMv2: PD Timers - Add PE NoResponse to framework BRANCH=none TEST=make runtests Tested-by: Denis Brockus
@@ -590,13 +590,6 @@ static struct policy_engine { /* Timers */ - /* - * The NoResponseTimer is used by the Policy Engine in a Source - * to determine that its Port Partner is not responding after a - * Hard Reset. - */ - uint64_t no_response_timer; - /* * Prior to a successful negotiation, a Source Shall use the * Sou...
CLEANUP: called get_current_time() instead of direct access to current_time.
@@ -278,7 +278,6 @@ static enum transmit_result transmit(conn *c); static void set_current_time(void) { struct timeval timer; - gettimeofday(&timer, NULL); current_time = (rel_time_t) (timer.tv_sec - process_started); } @@ -8086,7 +8085,7 @@ static void aggregate_callback(void *in, void *out) static void server_stats(A...
man: fix tcpconnect man page Add -u and -U options to the synopsis. Move their description frome the example to the description section. Add a description to --mntnsmap option.
.SH NAME tcpconnect \- Trace TCP active connections (connect()). Uses Linux eBPF/bcc. .SH SYNOPSIS -.B tcpconnect [\-h] [\-c] [\-t] [\-p PID] [-P PORT] [\-\-cgroupmap MAPPATH] [\-\-mntnsmap MAPPATH] +.B tcpconnect [\-h] [\-c] [\-t] [\-p PID] [-P PORT] [-u UID] [-U] [\-\-cgroupmap MAPPATH] [\-\-mntnsmap MAPPATH] .SH DES...
Use calloc and freeaddrinfo
@@ -1171,7 +1171,7 @@ ports_create_if(const char* ifname, int do_auto, int do_udp, int do_tcp, return 0; if(do_auto) { - ub_sock = malloc(sizeof(struct unbound_socket)); + ub_sock = calloc(1, sizeof(struct unbound_socket)); if(!ub_sock) return 0; if((s = make_sock_port(SOCK_DGRAM, ifname, port, hints, 1, @@ -1194,7 +11...
marking a variable as assigned only if it was declared
@@ -278,8 +278,8 @@ function checkstat(node, st, errors) st:with_block(checkfor, node, st, errors) elseif tag == "Stat_Assign" then checkexp(node.var, st, errors) - -- mark this variable as assigned to - if node.var._tag == "Var_Name" then + -- mark this declared variable as assigned to + if node.var._tag == "Var_Name"...
quick_start.html: Small grammar fix under 'Selecting Vulkan version' section
@@ -94,7 +94,7 @@ Initialization</h1> <p >Only members <code>physicalDevice</code>, <code>device</code>, <code>instance</code> are required. However, you should inform the library which Vulkan version do you use by setting <a class="el" href="struct_vma_allocator_create_info.html#ae0ffc55139b54520a6bb704b29ffc285" titl...
remove unused loop in s2n_sslv3_mac_digest
@@ -116,10 +116,6 @@ static int s2n_sslv3_mac_init(struct s2n_hmac_state *state, s2n_hmac_algorithm a static int s2n_sslv3_mac_digest(struct s2n_hmac_state *state, void *out, uint32_t size) { - for (int i = 0; i < state->xor_pad_size; i++) { - state->xor_pad[i] = 0x5c; - } - GUARD(s2n_hash_digest(&state->inner, state->...
docs/library/ure: Describe (lack of) escaping in character sets. Only `\]` escape is supported.
@@ -17,7 +17,10 @@ Supported operators and special sequences are: ``[...]`` Match set of characters. Individual characters and ranges are supported, - including negated sets (e.g. ``[^a-c]``). + including negated sets (e.g. ``[^a-c]``). To include ``]`` in the set, + it should be escaped, e.g.: ``r"[\]]"`` or ``"[\\]]"...
{AH} remove runtime_libraries setting, avoids adding build directories into RUNPATH
@@ -246,7 +246,7 @@ elif HTSLIB_MODE == 'shared': # htslib built from sources included in the pysam # package. htslib_library_dirs = [ - 'pysam', + "pysam", # location of utility C modules such as htslib_util.c ".", os.path.join("build", distutils_dir_name("lib"), "pysam")] @@ -353,7 +353,6 @@ chtslib = Extension( shar...
BugID:20269321:[dev bind]checkout reset state in online_get_device_info
@@ -248,14 +248,6 @@ static int awss_process_get_devinfo() char *buf = NULL; char *dev_info = NULL; -#ifdef DEVICE_MODEL_ENABLED - extern int awss_check_reset(); - extern int awss_report_reset_to_cloud(); - if(awss_check_reset()) { - return awss_report_reset_to_cloud(); - } -#endif - if (awss_report_token_suc == 0) { a...
build: use -mcpu=power8 POWER7 is no longer supported. Acked-by: Stewart Smith
@@ -76,7 +76,7 @@ CPPFLAGS += -DDEBUG -DCCAN_LIST_DEBUG endif CFLAGS := -fno-strict-aliasing -pie -fpie -fno-pic -mbig-endian -m64 -fno-asynchronous-unwind-tables -CFLAGS += -mcpu=power7 +CFLAGS += -mcpu=power8 CFLAGS += -Wl,--oformat,elf64-powerpc -ggdb CFLAGS += $(call try-cflag,$(CC),-ffixed-r13) CFLAGS += $(call tr...
Docs: Add Apple12 and Windows11 to Flavours.md
@@ -23,6 +23,7 @@ In the case of macOS only, a flavour based on the detected OS version is applied For icon pack authors, the **Apple** icon is recommended, **AppleRecovery** and **AppleTM** are suggested, all others are entirely optional. + - **Apple12:Apple** - Monterey (`Apple12.icns`) - **Apple11:Apple** - Big Sur ...
ble_mesh: Fix PreviousAddress endianess in Friend Request The upper transport layer is using big endian ordering. The PreviousAddress field of a Friend Request message should therefore be converted to native endianess using sys_cpu_to_be16().
@@ -324,7 +324,7 @@ static int send_friend_req(struct bt_mesh_lpn *lpn) .criteria = LPN_CRITERIA, .recv_delay = LPN_RECV_DELAY, .poll_to = LPN_POLL_TO, - .prev_addr = lpn->old_friend, + .prev_addr = sys_cpu_to_be16(lpn->old_friend), .num_elem = comp->elem_count, .lpn_counter = sys_cpu_to_be16(lpn->counter), };
Fix actors not shaking vertically
@@ -116,7 +116,7 @@ _UpdateActors:: ld d, (hl) ; Load scroll y in hl - ld hl, #(_scroll_y) + ld hl, #(_draw_scroll_y) ld a, (hl+) ld h, (hl) ld l, a
engine: upon exit, turn ingestion flag off
@@ -684,6 +684,8 @@ int flb_engine_exit(struct flb_config *config) int ret; uint64_t val = FLB_ENGINE_EV_STOP; + config->is_ingestion_active = FLB_FALSE; + flb_input_pause_all(config); val = FLB_ENGINE_EV_STOP;
graph-store: add graph-mark scry
|^ ?> (team:title our.bowl src.bowl) ?+ path (on-peek:def path) + [%x %graph-mark @ @ ~] + =/ =ship (slav %p i.t.t.path) + =/ =term i.t.t.t.path + =/ result=(unit marked-graph:store) + (~(get by graphs) [ship term]) + ?~ result [~ ~] + ``noun+!>(q.u.result) + :: [%x %keys ~] :- ~ :- ~ :- %graph-update !>(`update:store`...
Fix catmull-rom interpolation.
@@ -831,7 +831,7 @@ tsError ts_bspline_interpolate_catmull_rom(const tsReal *points, { const size_t sof_real = sizeof(tsReal); const size_t sof_ctrlp = dimension * sof_real; - const tsReal eps = fabs(epsilon); /**< Absolute value of `epsilon`. */ + const tsReal eps = (tsReal) fabs(epsilon); tsReal *bs_ctrlp; /* Points ...
Fixes mock setup
@@ -874,6 +874,8 @@ TEST(service_registry, getService) { mock() .expectOneCall("serviceRegistration_retain") .withParameter("registration", registration); + mock().expectOneCall("serviceRegistration_release") + .ignoreOtherParameters(); actual = (void*) 0x666;//generic non null pointer value serviceRegistry_getService(...
diff BUGFIX recursive delete and leaf default values
@@ -1221,14 +1221,30 @@ static LY_ERR lyd_diff_merge_create(struct lyd_node *diff_match, enum lyd_diff_op cur_op, const struct lyd_node *src_diff) { struct lyd_node *child; + const struct lysc_node_leaf *sleaf; const char *str_val; int dynamic; LY_ERR ret; switch (cur_op) { case LYD_DIFF_OP_DELETE: - /* delete operatio...
Update error.yaml comment to remove Perl reference.
# Error Definitions # -# Master file for all errors in the C and Perl code. For C, errors are written to src/common/error.auto.c/h. For Perl, errors are -# written to lib/pgBackRest/Common/ExceptionAuto.pm. +# Definitions for all C errors, auto-generated to src/common/error.auto.c/h. # Errors in the code that it should...
[state] Fix bug: revert to previous block state
@@ -45,12 +45,12 @@ type BlockInfo struct { type BlockState struct { BlockInfo accounts accountStates - undo undoStates + Undo undoStates } type undoStates struct { - stateRoot types.HashID - accounts accountStates + StateRoot types.HashID + Accounts accountStates } type accountStates map[types.AccountID]*types.State @...
update deploy.py #no_auto_pr
@@ -234,11 +234,11 @@ def build_wheel_conda(conda_dir, deploy_dir, py_version): ]) subprocess.check_call([ "conda", "run", "-p", conda_dir] + DASHDASH + [ - "pip", "install", "--upgrade", "pip" + "python", "-m", "pip", "install", "--upgrade", "pip" ]) subprocess.check_call([ "conda", "run", "-p", conda_dir] + DASHDASH ...
Annotate get/set_encoding_error_handler
from array import array from typing import Iterable, Optional, Tuple, Union +def get_encoding_error_handler() -> str: ... +def set_encoding_error_handler(name: str) -> str: ... def _pysam_dispatch(collection: str, method: str, args: Optional[Iterable[str]], catch_stdout: bool = ..., is_usage: bool = ..., save_stdout: O...
Update ambisonic info
@@ -22,9 +22,17 @@ enum { CLAP_AMBISONIC_ACN = 1, }; +enum { + CLAP_AMBISONIC_NORMALIZATION_MAXN = 0, + CLAP_AMBISONIC_NORMALIZATION_SN3D = 1, + CLAP_AMBISONIC_NORMALIZATION_N3D = 2, + CLAP_AMBISONIC_NORMALIZATION_SN2D = 3, + CLAP_AMBISONIC_NORMALIZATION_N2D = 4, +}; + typedef struct clap_ambisonic_info { alignas(4) ui...
Tools: print error message when no keys in namespace
@@ -1178,14 +1178,15 @@ static int compare_handles(grib_handle* h1, grib_handle* h2, grib_runtime_option if (blocklisted(options->compare[i].name)) continue; if (options->compare[i].type == GRIB_NAMESPACE) { + int num_keys_in_namespace = 0; iter = grib_keys_iterator_new(h1, 0, options->compare[i].name); if (!iter) { - ...
hiomap: free ipmi message in callback Otherwise we'd slowly leak memory on each hiomap operation. Fixes: Tested-by: Andrew Jeffery
@@ -117,6 +117,7 @@ static void ipmi_hiomap_cmd_cb(struct ipmi_msg *msg) if (msg->resp_size < 2) { prerror("Illegal response size: %u\n", msg->resp_size); res->cc = IPMI_ERR_UNSPECIFIED; + ipmi_free_msg(msg); return; } @@ -124,6 +125,7 @@ static void ipmi_hiomap_cmd_cb(struct ipmi_msg *msg) prerror("Unmatched sequence ...
http_client: if 'host' is set to null, use basic/vanilla request composer
@@ -444,6 +444,8 @@ struct flb_http_client *flb_http_client(struct flb_upstream_conn *u_conn, "%s %s HTTP/1.%i\r\n" "Host: %s:%i\r\n" "Content-Length: %i\r\n"; + char *fmt_vanilla = \ + "%s %s HTTP/1.%i\r\n"; char *fmt_proxy = \ "%s http://%s:%i/%s HTTP/1.%i\r\n" "Host: %s:%i\r\n" @@ -475,7 +477,7 @@ struct flb_http_cl...
Switching to actions checkout v2 due to actions error
@@ -22,11 +22,8 @@ jobs: os: [ubuntu-latest, macOS-latest] steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: include submodule to base repo - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GIT_PULL_TOKEN: ${{ secrets.GIT_PULL_TOKEN }} run: git submodule update --init - name: Test ${{ matrix...
subproc: incorrect rlimit type RSS -> DATA
@@ -179,7 +179,7 @@ bool subproc_PrepareExecv(run_t* run, const char* fileName) { .rlim_cur = run->global->dataLimit * 1024ULL * 1024ULL, .rlim_max = run->global->dataLimit * 1024ULL * 1024ULL, }; - if (setrlimit(RLIMIT_RSS, &rl) == -1) { + if (setrlimit(RLIMIT_DATA, &rl) == -1) { PLOG_W("Couldn't enforce the RLIMIT_DA...
Fix std/gif tests for recent workbuf_len tweak
@@ -310,8 +310,8 @@ const char* do_test_wuffs_gif_decode(const char* filename, } } - if (wuffs_gif__decoder__workbuf_len(&dec).min_incl != 160) { - RETURN_FAIL("workbuf_len: got %" PRIu64 ", want 160", + if (wuffs_gif__decoder__workbuf_len(&dec).min_incl != 1) { + RETURN_FAIL("workbuf_len: got %" PRIu64 ", want 1", wuf...
Update ODWEventProperties.h Switch PDT from ENUM to OPTIONS
@@ -43,7 +43,7 @@ typedef NS_ENUM(NSInteger, ODWPiiKind) @brief The <b>ODWPrivacytDataType</b> enumeration contains a set of values that indicate various Privacy Data Types that data may be used for an event's privacy classification. @remark Explicitly specified as <b>uint64_t</b> as it needs to be able to hold 64-bit ...
Check Env Dep: Only match valid variable names
@@ -19,7 +19,7 @@ fi printf '%s\n' "$ENV" | while IFS='' read -r env; do # The script does **not** handle environment variables that contain newlines properly! - printf '%s' "$env" | grep -Eq '.+=.*' || continue + printf '%s' "$env" | grep -Eq '^[_a-zA-Z][_a-zA-Z]*=.*' || continue NAME="$(echo "$env" | cut -d '=' -f1 2...
change log to debug log
@@ -261,7 +261,7 @@ int xdag_send_block_via_network(struct xdag_block *b) { struct xdag_new_block_elem *elem = (struct xdag_new_block_elem*)malloc(sizeof(struct xdag_new_block_elem)); if(elem) { - xdag_mess("append new block"); + xdag_debug("append new block"); elem->block = (struct xdag_block *)malloc(sizeof(struct xd...
shapito: support password 'md5<hash>' format
@@ -20,20 +20,26 @@ int shapito_password_md5(shapito_password_t *pw, uint8_t digest_prepare[16]; char digest_prepare_sz[32]; uint8_t digest[16]; - - /* digest = md5(password, user) */ shapito_md5_t ctx; + if (password_len == 35 && memcmp(password, "md5", 3) == 0) { + /* digest = md5(digest, salt) */ + shapito_md5_init(...
Fix -*h and -*H inversion
@@ -81,12 +81,12 @@ static const mode_entry modes[] = { {"-cs", ASTCENC_OP_COMPRESS, ASTCENC_PRF_LDR_SRGB}, {"-ds", ASTCENC_OP_DECOMPRESS, ASTCENC_PRF_LDR_SRGB}, {"-ts", ASTCENC_OP_TEST, ASTCENC_PRF_LDR_SRGB}, - {"-ch", ASTCENC_OP_COMPRESS, ASTCENC_PRF_HDR}, - {"-dh", ASTCENC_OP_DECOMPRESS, ASTCENC_PRF_HDR}, - {"-th", ...
nissa/nereid: correct misspelling of 'ambient' TEST=builds BRANCH=none
ambient { compatible = "cros-ec,temp-sensor-thermistor"; thermistor = <&thermistor_3V3_51K1_47K_4050B>; - label = "Ambiient"; + label = "Ambient"; enum-name = "TEMP_SENSOR_AMB"; temp_fan_off = <35>; temp_fan_max = <60>;
soc: clear PHY status when cpu start
void rtc_init(rtc_config_t cfg) { - CLEAR_PERI_REG_MASK(RTC_CNTL_ANA_CONF_REG, RTC_CNTL_PVTMON_PU); + CLEAR_PERI_REG_MASK(RTC_CNTL_ANA_CONF_REG, RTC_CNTL_PVTMON_PU | RTC_CNTL_TXRF_I2C_PU | + RTC_CNTL_RFRX_PBUS_PU | RTC_CNTL_CKGEN_I2C_PU | RTC_CNTL_PLL_I2C_PU); REG_SET_FIELD(RTC_CNTL_TIMER1_REG, RTC_CNTL_PLL_BUF_WAIT, c...
avx512f: unconditionally typedef simde_mmask{16,32} to uint{32,64}_t The old code was causing a compile failure on GCC 4.9
@@ -269,10 +269,9 @@ typedef union { typedef __m512 simde__m512; typedef __m512i simde__m512i; typedef __m512d simde__m512d; + typedef __mmask8 simde__mmask8; typedef __mmask16 simde__mmask16; - typedef __mmask32 simde__mmask32; - typedef __mmask64 simde__mmask64; #else #if defined(SIMDE_VECTOR_SUBSCRIPT) typedef simde...
Only init appropriate accelerometer
@@ -361,8 +361,11 @@ void blit_init() { DWT->CTRL |= DWT_CTRL_CYCCNTENA_Msk; f_mount(&filesystem, "", 1); // this shouldn't be necessary here right? + if(is_beta_unit){ msa301_init(&hi2c4, MSA301_CONTROL2_POWR_MODE_NORMAL, 0x00, MSA301_CONTROL1_ODR_62HZ5); + } else { lis3dh_init(&hi2c4); + } bq24295_init(&hi2c4); blit:...
out_stackdriver: apply helper function
@@ -778,10 +778,7 @@ static insert_id_status validate_insert_id(msgpack_object * insert_id_value, if (p->key.type != MSGPACK_OBJECT_STR) { continue; } - if (p->key.via.str.size == INSERT_ID_SIZE - && strncmp(DEFAULT_INSERT_ID_KEY, - p->key.via.str.ptr, - p->key.via.str.size) == 0) { + if (validate_key(p->key, DEFAULT_I...
core/cortex-m0: Remove noop The pragma disables a warning and then immediately re-enables it, which has no effect. BRANCH=none TEST=./util/compare_build.sh -b all -j 120 => MATCH
@@ -47,12 +47,6 @@ void __attribute__((naked)) default_handler(void) extern void stack_end(void); /* not technically correct, it's just a pointer */ extern void reset(void); -#pragma GCC diagnostic push -#if __GNUC__ >= 8 -#pragma GCC diagnostic ignored "-Wattribute-alias" -#endif -#pragma GCC diagnostic pop - #endif /...
[http3] conn_accepting should be empty after purging conns_by_id
@@ -970,7 +970,8 @@ void h2o_quic_close_all_connections(h2o_quic_ctx_t *ctx) h2o_quic_conn_t *conn; kh_foreach_value(ctx->conns_by_id, conn, { h2o_quic_close_connection(conn, 0, NULL); }); - kh_foreach_value(ctx->conns_accepting, conn, { h2o_quic_close_connection(conn, 0, NULL); }); + /* closing a connection should als...
testcase: Should deinitialize database after removing relations (db_cleanup). Original code tries to remove the relation after deinitializing database. I observed kernel panic due to illegal memory access occasionally during the execution of arastorage_itc tests on ARTIK053 board. After this fix, I did not observe the ...
@@ -1780,8 +1780,8 @@ int itc_arastorage_launcher(int argc, FAR char *argv[]) itc_arastorage_db_cursor_free_p(); itc_arastorage_db_cursor_free_n(); - deinit_db(); db_cleanup(RELATION_NAME1); + deinit_db(); //Scenario ITCs called after db_deinit itc_arastorage_db_init_deinit_p();
Fix index handling in ecma_op_advance_string_index Fixes JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi
@@ -2816,7 +2816,10 @@ ecma_op_advance_string_index (ecma_string_t *str_p, /**< input string */ bool is_unicode) /**< true - if regexp object's "unicode" flag is set false - otherwise */ { - JERRY_ASSERT (index < UINT32_MAX - 1); + if (index >= UINT32_MAX - 1) + { + return UINT32_MAX; + } uint32_t next_index = index + ...
Set config to default.
@@ -57,14 +57,14 @@ event: type : eventjsonrawjson # eventjsonrawjson, eventjsonrawstatsd transport: type: tcp # udp, unix, file, syslog - host: 127.0.0.1 #127.0.0.1 172.16.198.1 + host: 127.0.0.1 port: 9109 logfilefilter: .*log.* # extended regex, default '.*log.*' activesources: #- logfile # create events from files ...
Added support for new-type STM32F407 boards; fixed errors
@@ -393,7 +393,7 @@ key: lsusb identifier # '0483:3748':['STMicro ST-LINK/V2 ',True, 'stm32f407vg.cfg', 'stm32f4_flash'], # But note that the STLINK-V2 could be connected to many different boards. FIXME patterns={ - '0483:3748':['STMicro ST-LINK/V2 ',True, 'stm32f407g-disc1.cfg', 'stm32f4_flash'], + '0483:3748':['STMic...
Version bump for unit modules. This is required in order to build Debian packages from current tip without making manual interventions. Moving forward, this should be a part of every version bump commit.
<change_log title="unit"> +<changes apply="unit-php + unit-python unit-python2.7 + unit-python3.4 unit-python3.5 unit-python3.6 unit-python3.7 + unit-python3.8 + unit-go + unit-perl + unit-ruby + unit-jsc-common unit-jsc8 unit-jsc10 unit-jsc11 unit-jsc13 + unit-jsc14 unit-jsc15" + ver="1.22.0" rev="1" + date="" time=""...
mdns: Fix copyright
/* - * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD + * SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */
hood: bugfix when using |rein with multiple agents
:- desk %+ roll arg =| =rein:hood -|: [*[on=? =dude:gall] rein(liv liv)] +|: [*[on=? =dude:gall] rein=rein(liv liv)] ?: on rein(add (~(put in add.rein) dude)) rein(sub (~(put in sub.rein) dude))
add kdbOpen() calls, so data from handle is already populated when checking in tests
@@ -52,6 +52,9 @@ void test_resolve (void) succeed_if (!strncmp (plugin->name, "resolver", strlen ("resolver")), "got wrong name"); + // we need to invoke kdbGet at least once, otherwise the handle below will not yet be initialized + plugin->kdbGet(plugin, 0, parentKey); + resolverHandles * h = elektraPluginGetData (pl...
driver/tcpm/ps8xxx.h: Format with clang-format BRANCH=none TEST=none
#define PS8751_BIST_TIMER_FREQ 15000000 #define PS8751_BIST_DELAY_MS 50 -#define PS8751_BIST_COUNTER (PS8751_BIST_TIMER_FREQ / MSEC \ - * PS8751_BIST_DELAY_MS) +#define PS8751_BIST_COUNTER \ + (PS8751_BIST_TIMER_FREQ / MSEC * PS8751_BIST_DELAY_MS) #define PS8751_BIST_COUNTER_BYTE0 (PS8751_BIST_COUNTER & 0xff) #define P...
test-suite: charliecloud chtest/Build is now arch aware
@@ -34,7 +34,7 @@ echo "-------------------------------------------------------" } @test "[charliecloud] build image" { - run $CHARLIECLOUD_DIR/share/doc/charliecloud/test/chtest/Build $ARCH $CHARLIECLOUD_DIR/share/doc/charliecloud/test/chtest chtest.tar.gz $image_dir + run $CHARLIECLOUD_DIR/share/doc/charliecloud/test...
io: remove mention on source file about flush mode
* * Note that Upstreams context may define how network operations will work, * basically synchronous or asynchronous (non-blocking). - * - * When Fluent Bit is set with config->flush_mode = FLB_FLUSH_PTHREADS, all - * operations will work in blocking (synchronous) mode. */ #include <stdio.h>
madoo: Configure unused GPIOs as inputs Configure unused GPIOs as inputs to save power in deep sleep states. Disabled the GPIO00, GPIO34, and GPIO37 pins which are not connected. BRANCH=none TEST=make buildall
@@ -52,10 +52,6 @@ GPIO(EC_I2C_USB_C0_SDA, PIN(8, 7), GPIO_INPUT) GPIO(EC_I2C_SUB_USB_C1_SCL, PIN(9, 2), GPIO_INPUT) GPIO(EC_I2C_SUB_USB_C1_SDA, PIN(9, 1), GPIO_INPUT) -/* Extra Sub-board I/O pins */ -GPIO(EC_SUB_IO_1, PIN(3, 7), GPIO_OUT_LOW) -GPIO(EC_SUB_IO_2, PIN(3, 4), GPIO_OUT_LOW) - /* Misc Enables */ GPIO(EN_VCC...
sixtop: refactoring sixp_trans_transit_state()
@@ -206,15 +206,12 @@ int sixp_trans_transit_state(sixp_trans_t *trans, sixp_trans_state_t new_state) { sixp_nbr_t *nbr; + int ret_val; assert(trans != NULL); - if(trans == NULL) { - LOG_ERR("6top: invalid argument, trans is NULL\n"); - return -1; - } - /* enforce state transition rules */ - if(new_state == SIXP_TRANS_...