message
stringlengths
6
474
diff
stringlengths
8
5.22k
Add an option to use Clang as CUDA compiler and an option to select CUDA Toolkit version Pull-request for branch users/somov/platform/cuda
@@ -8,16 +8,25 @@ IF (NOT HAVE_CUDA) MESSAGE(FATAL_ERROR "No CUDA Toolkit for your build") ENDIF() -IF (_USE_ARCADIA_CUDA) +IF (USE_ARCADIA_CUDA) IF (HOST_OS_LINUX AND HOST_ARCH_X86_64) IF (OS_LINUX AND ARCH_X86_64) - DECLARE_EXTERNAL_RESOURCE(CUDA sbr:235618970) + IF (CUDA_VERSION STREQUAL "9.1") + DECLARE_EXTERNAL_RE...
packaging: minor tweak for Bullseye publishing
@@ -53,11 +53,11 @@ if ! aptly -config="$APTLY_CONFIG" publish switch -gpg-key="releases@fluentbit.i exit 1 fi -# Debian 11 Bullseye +# Debian 11 Bullseye - notice tweak in repo location echo "Publishing Debian 11 Bullseye" find "$SOURCE_DIR/debian/bullseye/" -iname "*-bit_$VERSION*.deb" -exec aptly -config="$APTLY_CON...
publish: prevId -> nextId
@@ -54,7 +54,7 @@ export function NoteNavigation(props: NoteNavigationProps) { } if (next) { - nextUrl = `${props.prevId}`; + nextUrl = `${props.nextId}`; nextComponent = ( <NavigationItem title={next.title}
Add note about possible missing `west` command.
@@ -117,6 +117,12 @@ cd zmk west init -l app/ ``` +:::note +If you encounter errors like `command not found: west` then your `PATH` environment variable is likely +missing the Python 3 user packages directory. See the [West Build Command](#west-build-command) +section again for links to how to do this +::: + #### Updat...
Fix Removes "unescape_string(argv[i]);". Since "do_var_replacement(argv[i])" never adds escape characters, it is both wrong and unnecessary to remove escape characters on the next line. This caused characters that were meant to be escaped to not be anymore.
@@ -276,7 +276,6 @@ list_t *execute_command(char *_exec, struct sway_seat *seat, // Var replacement, for all but first argument of set for (int i = handler->handle == cmd_set ? 2 : 1; i < argc; ++i) { argv[i] = do_var_replacement(argv[i]); - unescape_string(argv[i]); } if (!config->handler_context.using_criteria) {
removed TP-LINK TL-WN722N v1 due to driver issues
@@ -83,7 +83,6 @@ This list is for information purposes only and should not be regarded as a bindi | SEMPRE WU150-1 | ID 148f:7601 Ralink Technology, Corp. MT7601U Wireless Adapter | | TP-LINK Archer T2UH | ID 148f:761a Ralink Technology, Corp. MT7610U ("Archer T2U" 2.4G+5G WLAN Adapter) | | TENDA W311U+ | ID 148f:3070...
libcupsfilters: In mupdftoraster() replaced perror() by proper logging All log messages (error, debug, ...) have to go to the log function and never directly to stderr (as perror() does).
@@ -205,7 +205,8 @@ mutool_spawn (const char *filename, if ((pid = fork()) == 0) { /* Execute mutool command line ... */ execvpe(filename, mutoolargv, envp); - perror(filename); + if (log) log(ld, FILTER_LOGLEVEL_ERROR, + "mupdftoraster: Unable to execute %s.", filename); goto out; } @@ -213,7 +214,9 @@ mutool_spawn (c...
core: rconf: new sub-comment style support with '--- something'
@@ -373,6 +373,10 @@ static int mk_rconf_read(struct mk_rconf *conf, const char *path) continue; } + if (len - indent_len >= 3 && strncmp(buf + indent_len, "---", 3) == 0) { + continue; + } + /* Get key and val */ i = mk_string_char_search(buf + indent_len, ' ', len - indent_len); key = mk_string_copy_substr(buf + inde...
[ctr/lua] Prevent setting key type setting from delete function
@@ -152,7 +152,7 @@ static int state_map_delete(lua_State *L) { /* m key */ state_map_t *m = luaL_checkudata(L, 1, STATE_MAP_ID); - state_map_check_index(L, m, 1); + state_map_check_index(L, m, 0); if (m->key_type == LUA_TNONE) { return 0; } @@ -447,6 +447,7 @@ static int state_var(lua_State *L) lua_pushstring(L, TYPE_...
fs/procfs/fs_procfsproc : Fix missing change about getting kernel heap There is a missing change about getting kernel heap(commit 0be6d2a5e3e16f) Change to get the kernel heap with kmm_get_heap API instead of direct access
@@ -389,7 +389,7 @@ static ssize_t proc_entry_stat(FAR struct proc_file_s *procfile, FAR struct tcb_ #ifndef CONFIG_BUILD_PROTECTED heap = mm_get_heap_with_index(0); #else - heap = &g_kmmheap; + heap = kmm_get_heap(); #endif } else { heap = mm_get_heap(tcb->stack_alloc_ptr);
Empty if statements in C look nicer
@@ -1184,6 +1184,11 @@ gen_cmd["If"] = function(self, cmd) local condition = self:c_value(cmd.condition) local then_ = self:generate_cmds(cmd.then_) local else_ = self:generate_cmds(cmd.else_) + + local A = (#cmd.then_ > 0) + local B = (#cmd.else_ > 0) + + if A and B then return (util.render([[ if ($condition) { ${then...
Fix shadowing declartion in dcd_da146xx.c
@@ -290,7 +290,6 @@ void tusb_vbus_changed(bool present) static void fill_tx_fifo(xfer_ctl_t * xfer) { int left_to_send; - uint8_t const *src; EPx_REGS *regs = xfer->regs; uint8_t const epnum = tu_edpt_number(xfer->ep_addr); @@ -338,7 +337,7 @@ static void fill_tx_fifo(xfer_ctl_t * xfer) } else { - src = &xfer->buffer[...
[io] do not include ChangeLogIter in generated headers
@@ -38,7 +38,7 @@ input_headers = { def unwanted(s): """ un processed classed or attributes : to be defined explicitely in SiconosFull.hpp""" - m = re.search('xml|XML|Xml|MBlockCSR|fPtr|SimpleMatrix|SiconosVector|SiconosGraph|SiconosSharedLibrary|numerics|computeFIntPtr|computeJacobianFIntqPtr|computeJacobianFIntqDotPt...
Update: omit to in translation to English, leads to more natural output
@@ -65,4 +65,4 @@ for line in sys.stdin: l = re.sub(r"<([^><:]*)\s(<->)\s([^><:]*)>", RED+ STATEMENT_OPENER + GREEN + r"\1" + RED + r" resembles " + GREEN + r"\3" + RED + STATEMENT_CLOSER + COLOR, l) #Other compound term copulas (not higher order) l = re.sub(r"\(([^><:]*)\s(\*|&)\s([^><:]*)\)", YELLOW+r"" + GREEN + r"\...
Edited examples/README.rst.
@@ -16,12 +16,19 @@ To run the Python scripts and generate the figures in the subdirectories, you mu `AtmEscRegimes <AtmEscRegimes>`_: Hydrogen envelope loss due to Roche lobe overflow, radiation-recombination-limited escape, energy-limited escape, and "automatic" loss in which the local environment sets the escape rat...
Backport LFS-Fix (1/2)
@@ -18,4 +18,5 @@ SET (UPNP_HAVE_SOAP @UPNP_HAVE_SOAP@ CACHE INTERNAL "see.upnpconfig.h") SET (UPNP_HAVE_SSDP @UPNP_HAVE_SSDP@ CACHE INTERNAL "see.upnpconfig.h") SET (UPNP_HAVE_TOOLS @UPNP_HAVE_TOOLS@ CACHE INTERNAL "see.upnpconfig.h") SET (UPNP_HAVE_WEBSERVER @UPNP_HAVE_WEBSERVER@ CACHE INTERNAL "see.upnpconfig.h") +S...
sdl: cpuinfo: add warning message to SDL_GetSystemRAM() and SDL_HasAVX() if used on older SDL2 versions
@@ -3,23 +3,21 @@ package sdl /* #include "sdl_wrapper.h" -static inline int _SDL_GetSystemRAM() +#if !(SDL_VERSION_ATLEAST(2,0,1)) +#pragma message("SDL_GetSystemRAM is not supported before SDL 2.0.1") +static inline int SDL_GetSystemRAM() { -#if (SDL_VERSION_ATLEAST(2,0,1)) - return SDL_GetSystemRAM(); -#else - retur...
Jenkinsfile: do not use placeholder dirs on Fedora 33 release
@@ -211,7 +211,6 @@ def generateReleaseStages() { DOCKER_IMAGES.fedora_33, params.fedora_revision, false, // do not bundle git repo - true // use placeholder dirs ) return tasks
Delete SWIG_DEFAULT_INCLUDES and SWIG_DEFAULT_INDUCED. Swig parser uses SWIG_IMPLICIT_INCLUDES since r5425695.
@@ -231,13 +231,6 @@ elsewhen ($OS_WINDOWS) { CYTHON_OPTIONS += -E UNAME_SYSNAME=Windows } -SWIG_DEFAULT_INCLUDES=\ - contrib/tools/swig/Lib/python/python.swg \ - contrib/tools/swig/Lib/swig.swg -SWIG_DEFAULT_INDUCED=\ - contrib/libs/python/Include/Python.h \ - string.h \ - stdexcept SWIG_IMPLICIT_INCLUDES = swig.swg g...
refactor: Reduced one call to api_ethereum.c function. boatethereum.c should not call functions in api_ethereum.c. Some formatting issues have also been modified.
@@ -474,7 +474,7 @@ BOAT_RESULT EthSendRawtx(BOAT_INOUT BoatEthTx *tx_ptr) BoatLog(BOAT_LOG_NORMAL, "Fail to send raw transaction to network."); boat_throw(BOAT_ERROR_RPC_FAILED, EthSendRawtx_cleanup); } - result = BoatEthPraseRpcResponseResult(tx_hash_str, "", + result = web3_parse_json_result(tx_hash_str, "", &tx_ptr...
When listing language options in the spec, use "x, y, or z" format
@@ -261,14 +261,22 @@ static char* replaceHelpTokens(const char* text) char langnames[10240] = {0}; char langextensions[10240] = {0}; char langnamespipe[10240] = {0}; + FOR_EACH_LANG(ln) + bool isLast = *(conf+1) == NULL; + bool isSecondToLast = *(conf+2) == NULL; + strcat(langnames, ln->name); - strcat(langnames, " ")...
[DFS] Remove opened file check Remove opened file check in dfs_file_open function. It will be replaced with POSIX flock/fcntl.
* 2005-02-22 Bernard The first version. * 2011-12-08 Bernard Merges rename patch from iamcacy. * 2015-05-27 Bernard Fix the fd clear issue. + * 2019-01-24 Bernard Remove file repeatedly open check. */ #include <dfs.h> @@ -48,14 +49,6 @@ int dfs_file_open(struct dfs_fd *fd, const char *path, int flags) LOG_D("open file:...
common: add WASM to SIMDE_ASSUME_VECTORIZATION list
@@ -495,7 +495,7 @@ typedef SIMDE_FLOAT64_TYPE simde_float64; SIMDE_ASSUME_VECTORIZATION if you want to force SIMDe to use the vectorized version. */ #if !defined(SIMDE_NO_ASSUME_VECTORIZATION) && !defined(SIMDE_ASSUME_VECTORIZATION) -# if defined(__SSE__) || defined(__ARM_NEON) || defined(__mips_msa) || defined(__ALTI...
load mpi module in ohpc-tests
@@ -9,33 +9,35 @@ source ./common/TEST_ENV || exit 1 source ./common/functions || exit 1 cd libs/ptscotch || exit 1 - -export BATS_JUNIT_CLASS=PTSCOTCH +export BATS_JUNIT_CLASS=PTScotch # bootstrap the local autotools project if necessary ./bootstrap || exit 1 for compiler in $COMPILER_FAMILIES ; do + for mpi in $MPI_F...
decisions: add guideline for relative links
@@ -93,6 +93,11 @@ This section has links to other decisions with description what the relation is. One-side relations are allowed, not every decision must link back. Decisions that give constraints must be listed in "Constraints" above. +> Guideline: +> Links to decisions should be in the form `- [name of decision](.....
filter_kubernetes: on nested json, skip trash bytes after map ends properly
@@ -159,11 +159,12 @@ static int pack_map_content(msgpack_packer *pck, msgpack_sbuffer *sbuf, /* Do not process ending \n if set at the end of the map */ size = v.via.str.size; - if (v.via.str.ptr[v.via.str.size - 2] == '\\' && - v.via.str.ptr[v.via.str.size - 1] == 'n') { - size -= 2; + for (i = size - 1; i > 0; i--) ...
thaw update fixes
@@ -36,8 +36,13 @@ void Init() Screen.fHudOffset = ((480.0f * Screen.fAspectRatio) - 640.0f) / 2.0f; Screen.fHudOffsetReal = (Screen.fWidth - Screen.fHeight * (4.0f / 3.0f)) / 2.0f; + //Fixes (sort of) crash when using high resolutions + static uint8_t vec[100000]; + auto pattern = hook::pattern("B9 ? ? ? ? 89 74 24 14...
Yajl: Format source code
@@ -253,7 +253,8 @@ static void elektraYajlParseSuppressNonLeafKeys (KeySet * returned) { const char * baseName = keyBaseName (ksCurrent (returned)); // TODO: Add test for empty array check - if(strcmp(baseName, "#0") && strcmp(baseName, "###empty_array")) { + if (strcmp (baseName, "#0") && strcmp (baseName, "###empty_...
lydmods BUGFIX always implement non-implemented modules ... when loading them. Fixes
@@ -1307,8 +1307,8 @@ sr_lydmods_ctx_load_module(const struct lyd_node *sr_mod, struct ly_ctx *ly_ctx, assert(mod_name); /* the module is not supposed to be loaded yet, but is in case of LY internal modules and dependency modules */ - ly_mod = ly_ctx_get_module(ly_ctx, mod_name, NULL, 1); - if (!ly_mod) { + ly_mod = ly...
Send msgStart on every reconnect of the event interface.
@@ -2418,8 +2418,11 @@ periodic(void *arg) //if (g_prevlog) logDestroy(&g_prevlog); //if (g_prevevt) evtDestroy(&g_prevevt); - if (ctlNeedsConnection(g_ctl)) { - ctlConnect(g_ctl); + if (ctlNeedsConnection(g_ctl) && ctlConnect(g_ctl)) { + // Hey we have a new connection! Identify ourselves + // like reportProcessStart,...
Fix SBP message example The example message shown in Chapter 4 of the SBP Specification is incorrect - the message ID for MSG_BASELINE_ECEF is 523 = 20Bh, not 514 = 202h.
@@ -189,10 +189,10 @@ contents. \par As an example, consider this framed series of bytes read from a serial port: \begin{verbatim} -55 02 02 cc 04 14 70 3d d0 18 cf ef ff ff ef e8 ff ff f0 18 00 00 00 00 05 00 43 94 +55 0b 02 cc 04 14 70 3d d0 18 cf ef ff ff ef e8 ff ff f0 18 00 00 00 00 05 00 15 dc \end{verbatim} This...
Prepare for 0.4.1 release
# Changelog All notable changes to this project will be documented in this file. -## 0.4.1 latest - ?? +## 0.4.1 - 2019-04-14 +- Squash some bugs +- Peg patterns can now make captures in any position in a grammar. - Add color to repl output - Add array/remove function - Add meson build support
[Readme] Add more params
@@ -110,6 +110,7 @@ A partial list of parameters are below. See the config file for a complete list. |------------------------------------|---------------------------------------------------------------------------------------| | `cpu_temp`<br>`gpu_temp` | Displays current CPU/GPU temperature | | `core_load` | Displays...
Process Konke motion sensor battery reports
@@ -7457,6 +7457,8 @@ void DeRestPluginPrivate::updateSensorNode(const deCONZ::NodeEvent &event) i->modelId() == QLatin1String("Motion Sensor-A") || // Osram motion sensor i->modelId() == QLatin1String("Bell") || // Sage doorbell sensor i->modelId() == QLatin1String("ISW-ZPR1-WP13") || // Bosch motion sensor + i->model...
Show the complete keymap example inline.
@@ -151,4 +151,31 @@ For the full set of possible behaviors, start at the [Key Press](/docs/behavior/ ### Complete Example -You can see a complete example if you see the [stock Kyria keymap](https://github.com/zmkfirmware/zmk/blob/main/app/boards/shields/kyria/kyria.keymap). +Putting this all together, a complete [`kyr...
Add perl2host call missing from a new test file. Oversight in today's commit Per buildfarm member jacana. Discussion:
@@ -124,6 +124,7 @@ wal_skip_threshold = 0 $copy_file, qq(20000,30000 20001,30001 20002,30002)); + $copy_file = TestLib::perl2host($copy_file); # Test truncation with inserted tuples using both INSERT and COPY. Tuples # inserted after the truncation should be seen.
VERSION bump to version 2.0.85
@@ -58,7 +58,7 @@ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) # set version of the project set(LIBYANG_MAJOR_VERSION 2) set(LIBYANG_MINOR_VERSION 0) -set(LIBYANG_MICRO_VERSION 84) +set(LIBYANG_MICRO_VERSION 85) set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION}) ...
Exclude pre_shared_key for HRR
@@ -1898,7 +1898,7 @@ static int ssl_tls13_write_server_hello_body( mbedtls_ssl_context *ssl, } #if defined(MBEDTLS_KEY_EXCHANGE_SOME_PSK_ENABLED) - if( mbedtls_ssl_tls13_key_exchange_mode_with_psk( ssl ) ) + if( !is_hrr && mbedtls_ssl_tls13_key_exchange_mode_with_psk( ssl ) ) { ret = ssl_tls13_write_server_pre_shared_...
remove the dynamic exception for all versions of c++ unless FORCE_CXX03 is on
#ifdef ILMBASE_FORCE_CXX03 # define IEX_THROW_SPEC(...) throw (__VA_ARGS__) #else -# if __cplusplus <= 201402L # define IEX_THROW_SPEC(...) -# else -# define IEX_THROW_SPEC(...) throw (__VA_ARGS__) -# endif #endif IEX_INTERNAL_NAMESPACE_HEADER_ENTER
whitespace change to test update
Expressions ----------- -.. danger:: +.. danger:: Foo Confirm the text here adequately characterizes that an expression has value everywhere over the whole mesh it is defined on. Its a field.
added api and keywords syntax
@@ -405,6 +405,8 @@ static bool isWord(char symbol) {return isLetter(symbol) || isNumber(symbol);} #include <ctype.h> static inline bool islineend(char c) {return c == '\n' || c == '\0';} +static inline bool isalpha_(char c) {return isalpha(c) || c == '_';} +static inline bool isalnum_(char c) {return isalnum(c) || c =...
doc: improve text about comments to catch problems like
@@ -73,54 +73,73 @@ note= this will rarely used within specifications, but is directly [comment] type= string status= deprecated -usedby/plugin= (keytometa) +usedby/plugin= keytometa description= the users comment about the key (mostly its value) - the first line is the comment after a key-value + the first line is the...
Use binary representation for key values dumped to crash log Use binary representation for key values dumped crash to log, so that if they contain null chars they're still printed correctly. Additionally limit their length to 128 chars
@@ -1729,10 +1729,10 @@ void logCurrentClient(void) { sdsfree(client); for (j = 0; j < cc->argc; j++) { robj *decoded; - decoded = getDecodedObject(cc->argv[j]); - serverLog(LL_WARNING|LL_RAW,"argv[%d]: '%s'\n", j, - (char*)decoded->ptr); + sds repr = sdscatrepr(sdsempty(),decoded->ptr, min(sdslen(decoded->ptr), 128));...
filter_kubernetes: fix 'tls' context reference
@@ -959,7 +959,7 @@ static int flb_kube_network_init(struct flb_kube *ctx, struct flb_config *config ctx->api_host, ctx->api_port, io_type, - &ctx->tls); + ctx->tls); if (!ctx->upstream) { /* note: if ctx->tls.context is set, it's destroyed upon context exit */ return -1;
board/fluffy/board.c: Format with clang-format BRANCH=none TEST=none
@@ -106,8 +106,7 @@ static int command_cc_flip(int argc, char *argv[]) print_port_status(); return EC_SUCCESS; } -DECLARE_CONSOLE_COMMAND(ccflip, command_cc_flip, - "<enable/disable>", +DECLARE_CONSOLE_COMMAND(ccflip, command_cc_flip, "<enable/disable>", "enable or disable flipping CC orientation"); /* * Support tca641...
Address "is already installed" Jenkins issue
@@ -112,7 +112,7 @@ build-rpm: $(DEV_RPM) install-rpm: ifneq ($(INSTALLED_RPM_VER),$(RPM_VER)-$(PKG_SUFFIX)) @$(MAKE) $(DEV_RPM) - sudo rpm -Uih $(DEV_RPM) + sudo rpm -Uih --force $(DEV_RPM) else @echo "==========================================================" @echo " Up-to-date DPDK package already installed"
unix/Makefile: Remove building of libaxtls.a which is no longer needed.
@@ -221,8 +221,7 @@ nanbox: CFLAGS_EXTRA='-DMP_CONFIGFILE="<mpconfigport_nanbox.h>"' \ BUILD=build-nanbox \ PROG=micropython_nanbox \ - MICROPY_FORCE_32BIT=1 \ - axtls all + MICROPY_FORCE_32BIT=1 freedos: $(MAKE) \ @@ -249,7 +248,7 @@ coverage: -DMICROPY_UNIX_COVERAGE' \ LDFLAGS_EXTRA='-fprofile-arcs -ftest-coverage' \...
when lb tcp in2out flow, in2out and out2in protocol are not same
@@ -1372,6 +1372,7 @@ snat_in2out_lb (snat_main_t *sm, s->outside_address_index = ~0; s->in2out = l_key; s->out2in = e_key; + s->out2in.protocol = l_key.protocol; u->nstaticsessions++; /* Add to lookup tables */
use find_library for pthread (issue
@@ -210,14 +210,15 @@ endif() if(WIN32) list(APPEND mi_libraries psapi shell32 user32 advapi32 bcrypt) else() - if(NOT ${CMAKE_C_COMPILER} MATCHES "android") - list(APPEND mi_libraries pthread) + find_library(LIBPTHREAD pthread) + if (LIBPTHREAD) + list(APPEND mi_libraries ${LIBPTHREAD}) + endif() find_library(LIBRT rt...
doc: update distributions providing Elektra
For the following Linux Distributions 0.8 packages are available: - - [Fedora](https://admin.fedoraproject.org/pkgdb/package/elektra/) - - [Gentoo](http://packages.gentoo.org/package/app-admin/elektra) - [Arch Linux](https://aur.archlinux.org/packages/elektra/) - - [Debian](https://packages.debian.org/de/jessie/libelek...
cl_tracer_new changed and ccl_sample_run needed to be updated to match the new function arguments
@@ -55,18 +55,25 @@ int main(int argc,char **argv) z_arr_sh[i]=Z0_SH-5*SZ_SH+10*SZ_SH*(i+0.5)/NZ; nz_arr_sh[i]=exp(-0.5*pow((z_arr_sh[i]-Z0_SH)/SZ_SH,2)); } + /*CCL_ClTracer *ccl_cl_tracer_new(ccl_cosmology *cosmo,int tracer_type, + int has_rsd,int has_magnification,int has_intrinsic_alignment, + int nz_n,double *z_n,d...
NimBLE: host_rcv_pkt event buf size check. Check if the size of HCI event buffer is greater than the received HCI packet. If not then abort with the error message.
@@ -342,6 +342,13 @@ static int host_rcv_pkt(uint8_t *data, uint16_t len) totlen = BLE_HCI_EVENT_HDR_LEN + data[2]; assert(totlen <= UINT8_MAX + BLE_HCI_EVENT_HDR_LEN); + if (totlen > MYNEWT_VAL(BLE_HCI_EVT_BUF_SIZE)) { + ESP_LOGE(TAG, "Received HCI data length at host (%d) exceeds maximum configured HCI event buffer s...
tools/dump_tool/dump_tool.c: Add proper formatting of fileystem start address Modify formatting of filesystem start address print output to console.
@@ -220,7 +220,7 @@ static int fsdump_recv(int dev_fd) } printf("\n=========================================================================\n"); - printf("Filesystem start address = %x, filesystem size = %d\n", smartfs_addr, smartfs_size); + printf("Filesystem start address = %08x, filesystem size = %d\n", smartfs_add...
fix CDDA upsampling
@@ -1213,7 +1213,7 @@ const UINT8 *ptr; SINT sampl; SINT sampr; SINT samplbias = soundcfg.rate >= 44100 ? 1 : (44100 / soundcfg.rate); - SINT samphbias = soundcfg.rate >= 44100 ? soundcfg.rate / 44100 : 1; + SINT samphbias = soundcfg.rate > 44100 ? (soundcfg.rate / 44100) : 1; SINT samphloop; sxsi = sxsi_getptr(drv->sx...
[AArch64][asan] fix typo in AsanStats::Print This created an infinite loop that timed out several build bots while executing the test in compiler-rt/test/asan/TestCases/atexit_stats.cpp
@@ -52,7 +52,7 @@ void AsanStats::Print() { mmaps, munmaps); PrintMallocStatsArray(" mallocs by size class: ", malloced_by_size, - get_allocator().KMaxSize()); + get_allocator().KNumClasses()); Printf("Stats: malloc large: %zu\n", malloc_large); }
LISP: fix crash when GPE interface is re-added,
@@ -866,11 +866,11 @@ vnet_lisp_eid_table_map (u32 vni, u32 dp_id, u8 is_l2, u8 is_add) "mapping!", vni, dp_id); return -1; } - hash_unset (dp_table_by_vni[0], vni); - hash_unset (vni_by_dp_table[0], dp_id); - /* remove dp iface */ dp_add_del_iface (lcm, vni, is_l2, 0); + + hash_unset (dp_table_by_vni[0], vni); + hash_...
Update celix-deprecated target to correctly print targets
@@ -83,6 +83,16 @@ MACRO(celix_subproject) ENDIF (${NAME}) ENDMACRO(celix_subproject) +#[[ +Custom target which list the Celix CMake targets that are still using deprecated headers. +]] +if (NOT TARGET celix-deprecated) + add_custom_target(celix-deprecated + COMMAND ${CMAKE_COMMAND} -E echo "Targets still using depreca...
Fix yaml in .travis.yml
@@ -45,17 +45,15 @@ before_install: ./get_nanoversion.sh; cat __nanoversion__.txt; cd ..; - # python3.6 will break package dependency in conda. if [[ "$DOCKER_DEPLOY" != "false" ]]; then - # conda install --no-update-deps --yes python="$TRAVIS_PYTHON_VERSION" pip; conda install --no-update-deps --yes pip; else - # cond...
Fix ZCL reporting configuration for non DDF managed devices
@@ -709,7 +709,9 @@ bool DeRestPluginPrivate::sendConfigureReportingRequest(BindingTask &bt, const s // clue code to get classic hard coded C++ bindings into DDF Device *device = DEV_GetDevice(m_devices, bt.binding.srcAddress); - if (device && !device->managed()) + if (!device) + { } + else if (!device->managed()) { DD...
Update dynamic_arch.yml
@@ -77,5 +77,5 @@ jobs: mkdir build cd build - cmake -DDYNAMIC_ARCH=1 -DNOFORTRAN=0 -DBUILD_WITHOUT_LAPACK=0 -DCMAKE_VERBOSE_MAKEFILES=ON .. + cmake -DDYNAMIC_ARCH=1 -DNOFORTRAN=0 -DBUILD_WITHOUT_LAPACK=0 -DCMAKE_VERBOSE_MAKEFILE=ON .. make -j$(nproc)
Update docker for travis.
@@ -38,6 +38,11 @@ env: - IMAGE_NAME: registry.hub.docker.com/$TRAVIS_REPO_SLUG - ARTIFACTS_PATH: $TRAVIS_BUILD_DIR/artifacts +addons: + apt: + packages: + - docker-ce + before_install: - sudo rm /usr/local/bin/docker-compose - curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker...
Fix SceUsbStorVstorType remain bugs. change to SceUsbstorVstorType
@@ -38,11 +38,11 @@ int sceUsbstorVStorSetDeviceInfo(const char *name, const char *version); /** * Start USB virtual storage * - * @param[in] type - One of ::SceUsbStorVstorType + * @param[in] type - One of ::SceUsbstorVstorType * * @return 0 on success, < 0 on error. */ -int sceUsbstorVStorStart(SceUsbStorVstorType ty...
Fix right-shift data loss issue with MBEDTLS_PUT_UINT16_BE in cookie
@@ -713,7 +713,7 @@ static int ssl_tls13_write_cookie_ext( mbedtls_ssl_context *ssl, MBEDTLS_PUT_UINT16_BE( MBEDTLS_TLS_EXT_COOKIE, p, 0 ); MBEDTLS_PUT_UINT16_BE( ssl->handshake->verify_cookie_len + 2, p, 2 ); - MBEDTLS_PUT_UINT16_BE( ssl->handshake->verify_cookie_len, p, 4 ); + MBEDTLS_PUT_UINT16_BE( (size_t) ssl->han...
turtle: abort on disarm delay reversing again to next arm
@@ -37,33 +37,29 @@ void turtle_mode_cancel() { } void turtle_mode_update() { - if (turtle_state > TURTLE_STAGE_IDLE && flags.arm_state == 1) { + if (turtle_state != TURTLE_STAGE_IDLE) { + // turtle is active flags.turtle = 1; - } else { - flags.turtle = 0; - } - // turtle was interrupted - if (!turtle_ready && turtle_...
add unsubscribe to BLE_Send_Data_After_Disconnected
@@ -459,6 +459,10 @@ TEST( Full_BLE_Integration_Test_Connection, BLE_Send_Data_After_Disconnected ) IotTestBleHal_ReadResponse( bletestATTR_SRVCB_CHAR_A, xReadEvent, true ); IotTestBleHal_CheckIndicationNotification( false, true ); IotTestBleHal_CheckIndicationNotification( true, true ); + + /* unsubscribe notification...
Retry packet contains connection ID chosen by server
@@ -2550,9 +2550,9 @@ static int conn_recv_handshake_pkt(ngtcp2_conn *conn, const uint8_t *pkt, if (conn->strm0->last_rx_offset != 0) { return NGTCP2_ERR_PROTO; } - if (conn->conn_id != hd.conn_id) { - return 0; - } + /* hd.conn_id is a connection ID chosen by server, and client + MUST choose it in a subsequent packets...
copy qcow and file's lba and length checks Copy qcow and file_examples iov, lba and length checks to the generic code.
#define _GNU_SOURCE #include <scsi/scsi.h> #include <errno.h> +#include <inttypes.h> #include "libtcmu.h" #include "libtcmu_aio.h" @@ -81,6 +82,29 @@ static void free_single_iovec(struct tcmulib_cmd *cmd) cmd->iovec = NULL; } +static int check_lba_and_length(struct tcmu_device *dev, + struct tcmulib_cmd *cmd, uint32_t ...
Fix leak in TlsClient object. sckClientOpen() is the most likely part of this code to error so move it up above SSL session creation to reduce the chance of a leak.
@@ -281,7 +281,11 @@ tlsClientOpen(TlsClient *this) TRY_BEGIN() { - // Create internal TLS session + // Open the socket session first since this is mostly likely to fail + SocketSession *socketSession = sckClientOpen(this->socketClient); + + // Create internal TLS session. If there is a failure before the TlsSession ob...
Fix stat page context
@@ -289,7 +289,15 @@ INT_PTR CALLBACK PhpProcessStatisticsDlgProc( if (PhpPropPageDlgProcHeader(hwndDlg, uMsg, lParam, &propSheetPage, &propPageContext, &processItem)) { - statisticsContext = (PPH_STATISTICS_CONTEXT)propPageContext->Context; + if (propPageContext->Context) + { + statisticsContext = propPageContext->Con...
build: Move DVL creation to separate function This allows to run different code analysis tools for different EWDK.
@@ -167,6 +167,8 @@ call "%~dp0\SetVsEnv.bat" x86 if /I "!TAG!"=="SDV" ( echo Running SDV for %BUILD_FILE%, configuration %TARGET_VS_CONFIG% call :runsdv "%TARGET_PROJ_CONFIG% %BUILD_FLAVOR%" %BUILD_ARCH% + call :runca "%TARGET_PROJ_CONFIG% %BUILD_FLAVOR%" %BUILD_ARCH% + call :rundvl "%TARGET_PROJ_CONFIG% %BUILD_FLAVOR...
launch: bring tutorial prompt to spec
-import React, { useState, useEffect } from 'react'; +import React, { useState, useMemo, useEffect } from 'react'; import styled from 'styled-components'; import { useHistory } from 'react-router-dom'; import f from 'lodash/fp'; @@ -73,10 +73,13 @@ export default function LaunchApp(props) { const { query } = useQuery()...
Further additions for Xiaomi special reporting output
@@ -11706,7 +11706,7 @@ void DeRestPluginPrivate::handleZclAttributeReportIndicationXiaomiSpecial(const } else if (tag == 0x0b && dataType == deCONZ::Zcl8BitUint) { - DBG_Printf(DBG_INFO, "\t0b unknown %d (0x%04X)\n", u8, u8); + DBG_Printf(DBG_INFO, "\t0b unknown %d (0x%02X)\n", u8, u8); } else if ((tag == 0x64 || stru...
added initialization of record_status
@@ -310,7 +310,7 @@ split( /* stores for record data */ ion_byte_t *record_key = alloca(linear_hash->super.record.key_size); ion_byte_t *record_value = alloca(linear_hash->super.record.value_size); - ion_byte_t record_status; + ion_byte_t record_status = 0; /* ion_fpos_t linear_hash->record_total_size = linear_hash->su...
gtkui_transfer.c: simplify logic to get selected transfers the function used gtk_tree_selection_get_selected_rows() which is more suitable for a GtkTreeView with GtkTreeStore model I guess..
@@ -114,41 +114,33 @@ on_gtk_button_clicked_unselectall (GtkButton *button, gpointer data) static void -gftpui_gtk_set_action (gftp_transfer * tdata, char * transfer_str, +gftp_gtk_set_transfer_action (gftp_transfer * tdata, char * transfer_str, int transfer_action) { - //GList *filelist = tdata->files; Wg_mutex_lock (...
freertos-smp: fix pytest_esp_timer test with FreeRTOS SMP enabled This commit adjusts the threshold for one-shot timer callback time.
@@ -63,7 +63,7 @@ def test_esp_timer(dut: Dut) -> None: one_shot_timer_time = int(match.group(1)) diff = start_time + ONE_SHOT_TIMER_PERIOD - one_shot_timer_time logging.info('One-shot timer, time: {} us, diff: {}'.format(one_shot_timer_time, diff)) - assert(abs(diff) < 220) + assert(abs(diff) < 350) match = dut.expect...
Make sure an image file exists before attempting to open it.
@@ -72,7 +72,7 @@ static int FreeColors(Display *d, Colormap cmap, Pixel *pixels, int n, #endif /* File extension to image loader mapping. */ -static struct { +static const struct { const char *extension; ImageLoader loader; } IMAGE_LOADERS[] = { @@ -104,15 +104,21 @@ ImageNode *LoadImage(const char *fileName, int rwid...
groups: fix linting errors
@@ -198,7 +198,7 @@ function stitchInline(a: any, b: any) { last.children.push({ type: 'paragraph', children: [] - }) + }); } } if (last?.children) { @@ -302,17 +302,17 @@ function stitchAsts(asts: [StitchMode, GraphAstNode][]) { if (c.type === 'blockquote' && t[1].children[idx +1] !== undefined && t[1].children[idx +1...
[mod_auth] check that digest realm matches config
@@ -678,6 +678,13 @@ static handler_t mod_auth_check_digest(server *srv, connection *con, void *p_d, return mod_auth_send_400_bad_request(srv, con); } + if (!buffer_is_equal_string(require->realm, realm, strlen(realm))) { + log_error_write(srv, __FILE__, __LINE__, "s", + "digest: realm mismatch"); + buffer_free(b); + r...
obs: enable test-suite
@@ -36,7 +36,7 @@ mpi_families=["openmpi3","mpich","mvapich2","impi"] # define (standalone) component packages standalone = ["charliecloud","cmake","conman","docs","easybuild","gnu-compilers","hwloc", "lmod","lustre-client","nagios","pbspro","pmix","singularity","slurm", - "spack","valgrind"] + "spack","test-suite","va...
base64: check for buffer overflow and cleanup Check for buffer overflow after each pointer increment since 0 is a valid marker
@@ -156,14 +156,17 @@ base64_decode(const char *str, void *data) for (p = str; *p && (*p == '=' || strchr(base64_chars, *p)); p += 4) { unsigned int val = token_decode(p); unsigned int marker = (val >> 24) & 0xff; - if (val == DECODE_ERROR) + if (val == DECODE_ERROR) { return -1; + } *q++ = (val >> 16) & 0xff; - if (ma...
add unpack_dist command
@@ -341,6 +341,8 @@ install: install_soter_headers install_themis_headers install_static_libs instal get_themis_version: @echo $(THEMIS_VERSION) +THEMIS_DIST_FILENAME = $(THEMIS_VERSION).tar.gz + dist: mkdir -p $(THEMIS_VERSION) rsync -avz src $(THEMIS_VERSION) @@ -356,7 +358,7 @@ dist: rsync -avz build.gradle $(THEMIS...
in_systemd: tags dont match _SYSTEMD_UNIT
@@ -78,12 +78,12 @@ static int in_systemd_collect(struct flb_input_instance *i_ins, char *sep; char *key; char *val; - char *tag; - char *last_tag = NULL; char *cursor = NULL; - size_t last_tag_len; + char *tag; size_t tag_len; - char out_tag[PATH_MAX]; + char new_tag[PATH_MAX]; + char last_tag[PATH_MAX]; + size_t last...
Fix unlocking outputs
@@ -7072,7 +7072,13 @@ bool CWallet::ExpandLockedAnonOutput(CWalletDB *pwdb, CKeyID &ckeyId, CLockedAno return error("%s: SecretToPublicKey() failed.", __func__); + //CKey key; CKey key; + CSecret vchSecret; + vchSecret.resize(ec_secret_size); + + key.Set(&vchSecret[0], &sSpendR.e[0], true); + if (!key.IsValid()) retur...
replace libretro-common 12
@@ -688,9 +688,10 @@ SOURCES_C += $(NP2_PATH)/sdl2/libretro/libretro-common/compat/compat_strcasestr # $(NP2_PATH)/sdl2/libretro/libretro-common/formats/libchdr/libchdr_flac_codec.c \ # $(NP2_PATH)/sdl2/libretro/libretro-common/streams/trans_stream_zlib.c +ifneq ($(platform), switch) #SOURCES_C += $(NP2_PATH)/sdl2/libr...
Add webhook name limit
@@ -39,6 +39,10 @@ https://discord.com/developers/docs/resources/channel#embed-limits*/ #define EMBED_FOOTER_TEXT_LEN 2048 + 1 #define EMBED_AUTHOR_NAME_LEN 256 + 1 +/* WEBHOOK LIMITS +https://discord.com/developers/docs/resources/webhook#create-webhook*/ +#define WEBHOOK_NAME_LEN 80 + 1 + /* SNOWFLAKES https://discord...
libbpf-tools: update filelife for libbpf 1.0 Switch to libbpf 1.0 mode and adapt libbpf API usage accordingly.
@@ -111,7 +111,6 @@ int main(int argc, char **argv) .parser = parse_arg, .doc = argp_program_doc, }; - struct perf_buffer_opts pb_opts; struct perf_buffer *pb = NULL; struct filelife_bpf *obj; int err; @@ -120,14 +119,9 @@ int main(int argc, char **argv) if (err) return err; + libbpf_set_strict_mode(LIBBPF_STRICT_ALL);...
fixed another BE BE issue
@@ -229,11 +229,7 @@ memset(&shb, 0, 256); shblen = SHB_SIZE; shbhdr = (section_header_block_t*)shb; shbhdr->block_type = PCAPNGBLOCKTYPE; -#ifdef BIG_ENDIAN_HOST -shbhdr->byte_order_magic = PCAPNGMAGICNUMBERBE; -#else shbhdr->byte_order_magic = PCAPNGMAGICNUMBER; -#endif shbhdr->major_version = PCAPNG_MAJOR_VER; shbhd...
keystore: simplify _get_and_decrypt_seed() Since recently, this function returns keystore_error_t, which contains KEYSTORE_ERR_INCORRECT_PASSWORD, so the extra out argument `password_correct_out` can be dropped. One line of zeroing `decrypted_seed_out` can be dropped since its not written to in case of a decryption err...
@@ -182,7 +182,6 @@ static keystore_error_t _get_and_decrypt_seed( const char* password, uint8_t* decrypted_seed_out, size_t* decrypted_seed_len_out, - bool* password_correct_out, int* securechip_result_out) { uint8_t encrypted_seed_and_hmac[96]; @@ -202,17 +201,18 @@ static keystore_error_t _get_and_decrypt_seed( } si...
checkout t/90h2olog.t from gfx/h2olog-e2e-tests
#!perl -# DTRACE_TEST=1 to skip to check prereqisites except for OS +# DTRACE_TESTS=1 to skip to check prereqisites # H2OLOG_DEBUG=1 for more runtime logs use strict; use warnings FATAL => "all"; @@ -8,15 +8,12 @@ use Test::More; use JSON; use t::Util; -plan skip_all => "h2olog is supported only for Linux" - if $^O ne ...
YANG printer BUGFIX yin-element statement indentation
@@ -525,19 +525,19 @@ yprp_extension(struct ypr_ctx *ctx, const struct lysp_ext *ext) if (ext->argument) { ypr_open(ctx->out, &flag); ly_print(ctx->out, "%*sargument %s", INDENT, ext->argument); - if (ext->exts) { LEVEL++; + if (ext->exts) { i = -1; while ((i = lysp_ext_instance_iter(ext->exts, i + 1, LYEXT_SUBSTMT_ARG...
Ensure execsnoop.py replace result is not misplaced Found by yonghong-song while reviewing PR
@@ -130,7 +130,7 @@ int kretprobe__sys_execve(struct pt_regs *ctx) } """ -bpf_text.replace("MAXARG", args.max_args) +bpf_text = bpf_text.replace("MAXARG", args.max_args) if args.ebpf: print(bpf_text) exit()
viorng: adapt provider project to EWDK 1903 and latest CPDK
</PropertyGroup> <PropertyGroup Label="Configuration"> <ConfigurationType>DynamicLibrary</ConfigurationType> - <PlatformToolset>v141</PlatformToolset> + <PlatformToolset>v142</PlatformToolset> <CharacterSet>Unicode</CharacterSet> <UseDebugLibraries>false</UseDebugLibraries> </PropertyGroup> <WarningLevel>Level4</Warnin...
Fix no-tls1_3 The hostname_cb in sslapitest.c was originally only defined if TLSv1.3 was enabled. A recently added test now uses this unconditionally, so we move the function implementation earlier in the file, and always compile it in.
@@ -110,6 +110,17 @@ static unsigned char serverinfov2[] = { 0xff /* Dummy extension data */ }; +static int hostname_cb(SSL *s, int *al, void *arg) +{ + const char *hostname = SSL_get_servername(s, TLSEXT_NAMETYPE_host_name); + + if (hostname != NULL && (strcmp(hostname, "goodhost") == 0 + || strcmp(hostname, "altgoodh...
Add Ubuntu 20.04 SDK
@@ -19,6 +19,8 @@ ELSEIF (ARCH_X86_64) DECLARE_EXTERNAL_RESOURCE(OS_SDK_ROOT sbr:243881345) ELSEIF (OS_SDK STREQUAL "ubuntu-18") DECLARE_EXTERNAL_RESOURCE(OS_SDK_ROOT sbr:617908641) + ELSEIF (OS_SDK STREQUAL "ubuntu-20") + DECLARE_EXTERNAL_RESOURCE(OS_SDK_ROOT sbr:1470082810) ELSE() MESSAGE(FATAL_ERROR "There is no ${O...
docs: updated title for serial libs table
@@ -48,6 +48,6 @@ The relevant package groupings and associated Table references are as follows: \item Distro support packages and dependencies (Table~\ref{table:distro-packages}) \item IO Libraries (Table~\ref{table:io-libs}) \item Runtimes (Table~\ref{table:runtimes}) -\item Serial Libraries (Table~\ref{table:serial-...
Fix crash sorting by timeline, Fix typo, Remove extra column space (more consistent with PE)
@@ -2211,6 +2211,7 @@ BOOLEAN NTAPI PhpProcessTreeNewCallback( SORT_FUNCTION(ImageCoherency), SORT_FUNCTION(ErrorMode), SORT_FUNCTION(CodePage), + SORT_FUNCTION(StartTime), // Timeline }; int (__cdecl *sortFunction)(const void *, const void *); @@ -3526,8 +3527,8 @@ BOOLEAN NTAPI PhpProcessTreeNewCallback( { static LAR...
docs: add S3 TRM URL
@@ -57,12 +57,12 @@ class StringSubstituter: TRM_EN_URL = {'esp32': 'https://www.espressif.com/sites/default/files/documentation/esp32_technical_reference_manual_en.pdf', 'esp32s2': 'https://www.espressif.com/sites/default/files/documentation/esp32-s2_technical_reference_manual_en.pdf', - 'esp32s3': '#', + 'esp32s3': '...
some socket fixes
@@ -4395,14 +4395,16 @@ if((iwr.u.mode & IW_MODE_MONITOR) != IW_MODE_MONITOR) return false; } -ifr.ifr_flags = IFF_UP | IFF_BROADCAST | IFF_RUNNING; +memset(&ifr, 0, sizeof(ifr)); +strncpy( ifr.ifr_name, interfacename, IFNAMSIZ -1); +ifr.ifr_flags = IFF_UP; if(ioctl(fd_socket, SIOCSIFFLAGS, &ifr) < 0) { perror("failed ...
Fix native implementation of GetHashCode
@@ -1064,16 +1064,85 @@ CLR_UINT32 CLR_RT_HeapBlock::GetHashCode(CLR_RT_HeapBlock *ptr, bool fRecurse, C } break; + case DATATYPE_BOOLEAN: + crc = ptr->NumericByRef().u1 == 0 ? 0 : 1; + break; + + case DATATYPE_I1: + crc = (CLR_UINT32)ptr->NumericByRef().s1; + break; + + case DATATYPE_U1: + crc = (CLR_UINT32)ptr->Numer...
change default search path to put working directory first
@@ -1319,7 +1319,7 @@ local libopen = [[ #define TITAN_VER_SUFFIX "_0_5" #define TITAN_PATH_VAR "TITAN_PATH" #define TITAN_PATH_SEP "/" - #define TITAN_PATH_DEFAULT "/usr/local/lib/titan/" TITAN_VER ";." + #define TITAN_PATH_DEFAULT ".;/usr/local/lib/titan/" TITAN_VER #define TITAN_PATH_KEY "ec10e486-d8fd-11e7-87f4-e7e...