message
stringlengths
6
474
diff
stringlengths
8
5.22k
couldn't get Trust2, and Trust6 would get a chocobo. Noticed that index of Trust6 goes over the size of a struct, so there is an obvious erronous offset
@@ -73,11 +73,11 @@ namespace FFXIVClientStructs.FFXIV.Client.UI { public struct TrustMembers { [FieldOffset(PartyListMemberStruct.Size * 00)] public PartyListMemberStruct Trust0; [FieldOffset(PartyListMemberStruct.Size * 01)] public PartyListMemberStruct Trust1; - [FieldOffset(PartyListMemberStruct.Size * 03)] public ...
fix for case where target directory does not exist Add check to verify that user is syncing directories when deciding whether or not to skip destination directory creation. We can assume the destination directory exists only in the case that the sync option is being used.
@@ -573,8 +573,20 @@ static int mfu_create_directory(mfu_flist list, uint64_t idx, return 0; } - /* Skipping the destination directory */ - if (strncmp(dest_path, destpath->path, strlen(dest_path)) == 0) { + /* Skipping the destination directory ONLY if it already exists. + * If we are doing a dsync operation it is saf...
BugID:16846667: modified linuxhost's test items
@@ -39,5 +39,6 @@ endif TEST_COMPONENTS += basic_test aos_test cjson_test TEST_COMPONENTS += rhino_test kv_test fatfs_test TEST_COMPONENTS += netmgr_test wifi_hal_test tls_test +TEST_COMPONENTS += rbtree_test MESHLOWPOWER := 1
arch/linux: use syscall() instead of personality()
@@ -220,8 +220,8 @@ bool arch_launchChild(honggfuzz_t * hfuzz, char *fileName) /* * Disable ASLR */ - if (hfuzz->linux.disableRandomization && personality(ADDR_NO_RANDOMIZE) == -1) { - PLOG_W("personality(ADDR_NO_RANDOMIZE) failed"); + if (hfuzz->linux.disableRandomization && syscall(__NR_personality, ADDR_NO_RANDOMIZE...
error: yanlr fix
@@ -38,9 +38,11 @@ using PredictionMode = antlr4::atn::PredictionMode; using ParseTree = antlr4::tree::ParseTree; using ParseTreeWalker = antlr4::tree::ParseTreeWalker; +using ckdb::keyNew; using std::ifstream; -// -- Functions --------------------------------------------------------------------------------------------...
Update changelog formatting - Missing Free Context Missing trailing full stop added to the end of the fixed issue number
Bugfix * Fix an issue where resource is never freed when running one particular - test suite with an alternative AES implementation. Fixes #4176 + test suite with an alternative AES implementation. Fixes #4176.
Fix runqslower to indicate that the latency param is in microseconds.
@@ -50,7 +50,7 @@ parser = argparse.ArgumentParser( formatter_class=argparse.RawDescriptionHelpFormatter, epilog=examples) parser.add_argument("min_us", nargs="?", default='10000', - help="minimum run queue latecy to trace, in ms (default 10000)") + help="minimum run queue latency to trace, in us (default 10000)") pars...
zephyr/test/drivers/src/console_cmd/charge_manager.c: Format with clang-format BRANCH=none TEST=none
@@ -25,8 +25,7 @@ static void connect_sink_to_port(const struct emul *charger_emul, tcpci_emul_set_reg(tcpci_emul, TCPC_REG_EXT_STATUS, TCPC_REG_EXT_STATUS_SAFE0V); tcpci_tcpc_alert(0); - zassume_ok(tcpci_partner_connect_to_tcpci(partner, tcpci_emul), - NULL); + zassume_ok(tcpci_partner_connect_to_tcpci(partner, tcpci_...
added counter on ACTION frames containing an ESSID
@@ -153,6 +153,7 @@ static long int zeroedtimestampcount; static long int fcsframecount; static long int wdscount; static long int actioncount; +static long int actionessidcount; static long int awdlcount; static long int beaconcount; static long int beaconssidunsetcount; @@ -451,6 +452,7 @@ zeroedtimestampcount = 0; f...
Fix the error result of the fullscreen command Changes the error result from CMD_INVALID to CMD_FAILURE, since CMD_INVALID indicates an unknown command or parser error and neither occurs where CMD_INVALID was used.
@@ -13,14 +13,14 @@ struct cmd_results *cmd_fullscreen(int argc, char **argv) { return error; } if (!root->outputs->length) { - return cmd_results_new(CMD_INVALID, "fullscreen", + return cmd_results_new(CMD_FAILURE, "fullscreen", "Can't run this command while there's no outputs connected."); } struct sway_node *node = ...
ev-io binding: cmake reformatting
+# ~~~ # Try to find libev # Once done, this will define # # LIBEV_FOUND - system has libev # LIBEV_INCLUDE_DIRS - libev include directories # LIBEV_LIBRARIES - libraries needed to use libev +# ~~~ if (LIBEV_INCLUDE_DIRS AND LIBEV_LIBRARIES) set (LIBEV_FIND_QUIETLY TRUE) else () - find_path( - LIBEV_INCLUDE_DIR - NAMES...
Add clang check for -nopie option The -no-pie option is not available in clang until 6.0. Per the documentation, -nopie serves the same purpose as -no-pie (but not fno-pie). Hence, use the -nopie option when clang is in use as the CC. Fixes:
@@ -24,7 +24,11 @@ if (LUAJIT_LIBRARIES AND LUAJIT) set_target_properties(bcc-lua PROPERTIES LINKER_LANGUAGE C) target_link_libraries(bcc-lua ${LUAJIT_LIBRARIES}) target_link_libraries(bcc-lua -Wl,--whole-archive bcc-static -Wl,--no-whole-archive) + if (CMAKE_C_COMPILER_ID MATCHES "Clang") + target_link_libraries(bcc-l...
Remove end of burst testing code from fftviewer
@@ -372,7 +372,7 @@ void fftviewer_frFFTviewer::StreamingLoop(fftviewer_frFFTviewer* pthis, const un } buffers = new lime::complex16_t*[channelsCount]; for (int i = 0; i < channelsCount; ++i) - buffers[i] = new complex16_t[fftSize+16]; + buffers[i] = new complex16_t[fftSize]; vector<complex16_t> captureBuffer[cMaxChCou...
Compute scrcpy directory manually The function dirname() does not work correctly everywhere with non-ASCII characters. Fixes <https://github.com/Genymobile/scrcpy/issues/2619>
@@ -60,7 +60,20 @@ get_server_path(void) { // not found, use current directory return strdup(SERVER_FILENAME); } - char *dir = dirname(executable_path); + + // dirname() does not work correctly everywhere, so get the parent + // directory manually. + // See <https://github.com/Genymobile/scrcpy/issues/2619> + char *p =...
out_flowcounter: use new api for time management
#include <stdlib.h> #include <time.h> +#include <fluent-bit/flb_info.h> #include <fluent-bit/flb_output.h> #include <fluent-bit/flb_utils.h> +#include <fluent-bit/flb_time.h> #include <msgpack.h> @@ -119,16 +121,6 @@ static void count_up(msgpack_object *obj, /*TODO parse obj and count up specific data */ } -static time...
[mod_openssl] prefer using TLS_server_method() prefer TLS_server_method() instead of SSLv23_server_method() (SSLv23_server_method() is deprecated in openssl 1.1.0)
@@ -711,7 +711,14 @@ network_init_ssl (server *srv, void *p_d) if (buffer_string_is_empty(s->ssl_pemfile) || !s->ssl_enabled) continue; - if (NULL == (s->ssl_ctx = SSL_CTX_new(SSLv23_server_method()))) { + #if OPENSSL_VERSION_NUMBER >= 0x10100000L + s->ssl_ctx = (!s->ssl_use_sslv2 && !s->ssl_use_sslv3) + ? SSL_CTX_new(...
CI: Improve load env config log output
@@ -31,6 +31,7 @@ Config file format is yaml. it's a set of key-value pair. The following is an ex It will first define the env tag for each environment, then add its key-value pairs. This will prevent test cases from getting configs from other env when there're configs for multiple env in one file. """ +import logging...
bugfix (esp_system): Added default UART pin numbers for C2
@@ -319,6 +319,7 @@ menu "ESP System Settings" depends on ESP_CONSOLE_UART_CUSTOM range 0 46 default 1 if IDF_TARGET_ESP32 + default 20 if IDF_TARGET_ESP32C2 default 21 if IDF_TARGET_ESP32C3 default 43 help @@ -333,6 +334,7 @@ menu "ESP System Settings" depends on ESP_CONSOLE_UART_CUSTOM range 0 46 default 3 if IDF_TAR...
Shader refcounts its blocks;
@@ -1469,6 +1469,12 @@ void lovrShaderDestroy(void* ref) { for (int i = 0; i < shader->uniforms.length; i++) { free(shader->uniforms.data[i].value.data); } + for (BlockType type = BLOCK_UNIFORM; type <= BLOCK_STORAGE; type++) { + UniformBlock* block; int i; + vec_foreach_ptr(&shader->blocks[type], block, i) { + lovrRel...
taeko: remove CONFIG_CMD_POWERINDEBUG configuration remove CONFIG_CMD_POWERINDEBUG configuration BRANCH=main TEST=make buildall -j48
/* The lower the input voltage, the higher the power efficiency. */ #define PD_PREFER_LOW_VOLTAGE +#undef CONFIG_CMD_POWERINDEBUG + /* * Macros for GPIO signals used in common code that don't match the * schematic names. Signal names in gpio.inc match the schematic and are
Fix warnings and typos.
@@ -149,7 +149,7 @@ static int _yr_arena_allocate_memory( while (new_size < b->used + size) new_size *= 2; // Make sure that buffer size if not larger than 4GB. - if (new_size > 1L << 32) + if (new_size > 1ULL << 32) return ERROR_INSUFFICIENT_MEMORY; uint8_t* new_data = yr_realloc(b->data, new_size);
travis pypi deploy spglib
@@ -43,7 +43,7 @@ deploy: - provider: pypi server: https://testpypi.python.org/pypi skip_cleanup: true - distributions: sdist + distributions: "sdist bdist_wheel" user: atztogo password: secure: "uqsoPpQNbie297e1iDPOHUVqM1HPHeZjIuAutWvVjZF6TpaksDhPNkK9sIE9Wh4sAVLi1wUCtjlMYjC7ElS94tsHwj6+tyxvQtrDmGUWRdf6BjFFZ6CdKBxMJwBQ...
github actions: Use Ubuntu 22.04 for Linux
@@ -9,7 +9,7 @@ on: jobs: build-linux: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v2 @@ -28,7 +28,7 @@ jobs: build-linux-i386: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v2
rms/pmix: add gcc-c++ as BuildRequires and show config output on error
@@ -24,6 +24,7 @@ Source1: OHPC_macros BuildRequires: libevent-devel BuildRequires: lmod-ohpc libtool-ohpc +BuildRequires: gcc-c++ #!BuildIgnore: post-build-checks %global install_path %{OHPC_ADMIN}/%{pname} @@ -51,7 +52,7 @@ This RPM contains all the tools necessary to compile and link against PMIx. %setup -q -n %{pna...
Update .non_used_index_space = UINT16_MAX - (2*_depth-1) in osal_none.h
@@ -140,7 +140,7 @@ typedef osal_queue_def_t* osal_queue_t; .item_size = sizeof(_type), \ .overwritable = false, \ .max_pointer_idx = (2*(_depth))-1, \ - .non_used_index_space = 0xFFFF-((2*(_depth))-1),\ + .non_used_index_space = UINT16_MAX - (2*_depth-1),\ }\ }
vlib: remove dead code Type: refactor
@@ -498,7 +498,6 @@ show_node_runtime (vlib_main_t * vm, uword i, j; f64 dt; u64 n_input, n_output, n_drop, n_punt; - u64 n_internal_vectors, n_internal_calls; u64 n_clocks, l, v, c, d; int brief = 1; int summary = 0; @@ -557,7 +556,6 @@ show_node_runtime (vlib_main_t * vm, vec_sort_with_function (nodes, node_cmp); n_i...
Allow whole Box Drawings range
@@ -285,7 +285,7 @@ class UnicodeIssueTracker(LineIssueTracker): '\u2070\u2071\u2074-\u208E\u2090-\u209C', # Superscripts and Subscripts '\u2190-\u21FF', # Arrows '\u2200-\u22FF', # Mathematical Symbols - '\u2500 \u2514 \u251C' # Box Drawings characters used in markdown trees + '\u2500-\u257F' # Box Drawings characters...
os/binfmt/libelf: Elf load failed for compressed binaries from smartfs Not able to run the compressed loadable apps, when fetching from smartfs. Due to invalid seek for compressed binaries, elf_read failed to load the binaries.
@@ -105,6 +105,7 @@ static off_t elf_cache_lseek_block(int filfd, uint16_t binary_header_size, int b actual_offset = binary_header_size + block_number * cache_blocks_size; +#ifndef CONFIG_COMPRESSED_BINARY /* Seek to location of this block in actual ELF file */ rpos = lseek(filfd, actual_offset, SEEK_SET); @@ -116,6 +1...
hw/fsi-master: check zalloc return value If we can't allocate enough memory for each chip struct mfsi, we're not going to go so well during boot, so just assert that we allocated the memory. Found by static analysis
-/* Copyright 2013-2014 IBM Corp. +/* Copyright 2013-2017 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -677,6 +677,7 @@ void mfsi_init(void) for_each_chip(chip) { chip->fsi_masters = zalloc(sizeof(struct mfsi) * 3); +...
The indexes with should be numbers as well as ints
@@ -1638,7 +1638,9 @@ inferexpr(Node **np, Type *ret, int *sawret) htput(seqbase, t, b); unify(n, type(args[0]), t); constrain(n, type(args[1]), traittab[Tcint]); + constrain(n, type(args[1]), traittab[Tcnum]); constrain(n, type(args[2]), traittab[Tcint]); + constrain(n, type(args[2]), traittab[Tcnum]); settype(n, mkty...
Replace IAS pending flags magic number with constants
@@ -333,7 +333,7 @@ void DeRestPluginPrivate::checkIasEnrollmentStatus(Sensor *sensor) { DBG_Printf(DBG_INFO_L2, "[IAS] Sensor enrolled\n"); } - else if(item && item->toNumber() == 48 && iasZoneStatus.u8 == 1) // Sanity check + else if (item && item->toNumber() == (R_PENDING_WRITE_CIE_ADDRESS | R_PENDING_ENROLL_RESPONS...
netdriver: logging
@@ -125,7 +125,8 @@ static void netDriver_bindToRndLoopback(int sock, sa_family_t sa_family) { static int netDriver_sockConnAddr(const struct sockaddr *addr, socklen_t socklen) { int sock = socket(addr->sa_family, SOCK_STREAM, 0); if (sock == -1) { - PLOG_D("socket(type=%d, SOCK_STREAM, 0)", addr->sa_family); + PLOG_D(...
Update boards/arm64/a64/pinephone/src/pinephone_boardinit.c
@@ -89,7 +89,7 @@ void a64_board_initialize(void) * If CONFIG_BOARD_LATE_INITIALIZE is selected, then an additional * initialization call will be performed in the boot-up sequence to a * function called board_late_initialize(). board_late_initialize() will be - * called immediately after up_intitialize() is called and ...
driver/serial : Fixed unwanted disabling of TX Interrupt 1. Do not disable Tx interrut if dev->xmit buffer is initially found empty 2. No bytes will be copied to DMA send VFIFO 3. Allow waiting processes to write to dev->xmit.head
@@ -103,6 +103,11 @@ void uart_xmitchars(FAR uart_dev_t *dev) /* Send while we still have data in the TX buffer & room in the fifo */ + if (dev->xmit.head == dev->xmit.tail){ + nbytes++; + goto xmit_empty; + } + while (dev->xmit.head != dev->xmit.tail && uart_txready(dev)) { /* Send the next byte */ @@ -118,14 +123,9 @...
esp_rom: put rom tlsf patch code in iram by default
@@ -3,5 +3,7 @@ archive: libesp_rom.a entries: esp_rom_spiflash (noflash) esp_rom_regi2c (noflash) + if HEAP_TLSF_USE_ROM_IMPL = y && ESP_ROM_TLSF_CHECK_PATCH = y: + esp_rom_tlsf (noflash) if SOC_SYSTIMER_SUPPORTED = y: esp_rom_systimer (noflash)
OnlineChecks: Update delay imports
</ImportGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> <Link> - <AdditionalDependencies>winhttp.lib;%(AdditionalDependencies)</AdditionalDependencies> - <DelayLoadDLLs>comctl32.dll;ole32.dll;user32.dll;winhttp.dll;%(DelayLoadDLLs)</DelayLoadDLLs> + <DelayLoadDLLs>comctl32.dll;ole...
Libunit: improved error logging around initialization env variable.
@@ -784,8 +784,8 @@ nxt_unit_read_env(nxt_unit_port_t *ready_port, nxt_unit_port_t *router_port, { int rc; int ready_fd, router_fd, read_in_fd, read_out_fd; - char *unit_init, *version_end; - long version_length; + char *unit_init, *version_end, *vars; + size_t version_length; int64_t ready_pid, router_pid, read_pid; u...
Maybe the fgets valgrind error is just a macOS issue? Need to try valgrind on a Linux machine...
@@ -443,9 +443,9 @@ int iGetNumLines(char cFile[]) { } memset(cLine,'\0',LINE); - fprintf(stderr,"File: %s\n",cFile); + //fprintf(stderr,"File: %s\n",cFile); while (fgets(cLine, LINE, fp) != NULL) { - fprintf(stderr,"iLine: %d, %s",iNumLines,cLine); + //fprintf(stderr,"iLine: %d, %s",iNumLines,cLine); iNumLines++; /* C...
Remove some Funcname leftover
@@ -309,16 +309,6 @@ function Parser:Block() return ast.Stat.Block(false, self:StatList()) end -function Parser:FuncName(is_local) - - return { - loc = tok.loc, - root = tok.value, -- string - fields = fields, -- string list - method = method, -- string? - } -end - function Parser:Func(is_local) local start = self:e("f...
Build instructions for macOS simplified
@@ -121,35 +121,24 @@ Binaries will be created in the `bin` subfolder. ### macOS -On macOS the binaries obtained with have system libraries dynamically linked. You won't need to install any dependencies to run vcf-validator. +On macOS the binaries obtained will only have system libraries dynamically linked. This means ...
RPL Lite: fix handling of max rank on 16-bit platforms
@@ -63,6 +63,18 @@ static rpl_nbr_t * best_parent(int fresh_only); /* Per-neighbor RPL information */ NBR_TABLE_GLOBAL(rpl_nbr_t, rpl_neighbors); +/*---------------------------------------------------------------------------*/ +static int +max_acceptable_rank(void) +{ + if(curr_instance.max_rankinc == 0) { + /* There i...
Disable flaky test_run_gpstart_kill_stdby_postmaster. This test keeps failing in CI intermittently, needs to be looked into as seems hitting the assertion currently "Unexpected internal error (postmaster.c:5328)","FailedAssertion(""!(CountChildren(0x0001|0x0002) == 0)"", File: ""postmaster.c"", Line: 5328)" Once postma...
@@ -112,18 +112,20 @@ class WalReplKillProcessScenarioTestCase(ScenarioTestCase): test_case_list3.append('mpp.gpdb.tests.storage.walrepl.crash.WalReplKillProcessTestCase.verify_standby_sync') self.test_case_scenario.append(test_case_list3) - - def test_run_gpstart_kill_stdby_postmaster(self): - ''' kill the standby pos...
[util] Docs. Note: mandatory check (NEED_CHECK) was skipped
@@ -148,10 +148,12 @@ struct TStlIteratorFace: public It, public TInputRangeAdaptor<TStlIteratorFace<I Consume(consumer); } + // TODO: this is actually TryParseInto /** - * Collects all splitted arguments into args - * @param args: Output arguments - * @return bool: true, if all items collected successfully, else - fal...
Fix outdated reference in debug message
@@ -1797,8 +1797,7 @@ int mbedtls_ssl_fetch_input( mbedtls_ssl_context *ssl, size_t nb_want ) if( ssl->f_recv == NULL && ssl->f_recv_timeout == NULL ) { - MBEDTLS_SSL_DEBUG_MSG( 1, ( "Bad usage of mbedtls_ssl_set_bio() " - "or mbedtls_ssl_set_bio()" ) ); + MBEDTLS_SSL_DEBUG_MSG( 1, ( "Bad usage of mbedtls_ssl_set_bio()...
reformat the code to improve the readability
@@ -49,8 +49,10 @@ int main(void) { char bigs[128]; json_scanf(str, sizeof(str), - "[a1][0]%d [t]%s [s]%d [op]%d [nstr]%s [k1][v1]%d [b]%b [bigs]%.*s", - &i4, str1, &integer1, &integer2, str2, &i3, &i5, 128, bigs); + "[a1][0]%d [t]%s [s]%d [op]%d [nstr]%s [k1][v1]%d [b]%b" + "[bigs]%.*s", + &i4, str1, &integer1, &integ...
provisioning/warewulf-provision: better automake syntax
if test -z "$PERLBIN"; then AC_MSG_ERROR([perl not found]) --- a/etc/Makefile.am 2018-07-11 13:56:05.000000000 -0700 -+++ b/etc/Makefile.am 2018-07-11 15:08:27.000000000 -0700 -@@ -6,7 +6,8 @@ ++++ b/etc/Makefile.am 2018-07-11 20:16:02.000000000 -0700 +@@ -4,7 +4,7 @@ + bash_completiondir = $(sysconfdir)/bash_completio...
rtl8721csm/rtk_netmgr.c: Fix wep AP scan result correctly
@@ -117,7 +117,7 @@ rtw_result_t app_scan_result_handler(rtw_scan_handler_result_t *malloced_scan_re scan_list->ap_info.ap_auth_type = WIFI_UTILS_AUTH_WEP_SHARED; break; case RTW_SECURITY_WEP_PSK: - scan_list->ap_info.ap_auth_type = WIFI_UTILS_AUTH_WPA_PSK; + scan_list->ap_info.ap_auth_type = WIFI_UTILS_AUTH_WEP_SHARED...
remove erroneous ; in struct definition
@@ -153,7 +153,7 @@ typedef struct oidc_jwk_t { int kty; /* key identifier */ char *kid; - /* X.509 Certificate Chain */; + /* X.509 Certificate Chain */ unsigned char **x5c; /* the size of the certificate chain */ int x5c_count;
Starting from mocking nothign and going from there.
@@ -36,7 +36,7 @@ if on_rtd: def __getattr__(cls, name): return MagicMock() - MOCK_MODULES = ['numpy','pyccl','ccllib','pyccl.ccllib'] + MOCK_MODULES = []#'numpy','pyccl','ccllib','pyccl.ccllib'] #['pyccl','pyccl.background','pyccl.ccllib','pyccl.cls','pyccl.core','pyccl.constants','pyccl.correlation','pyccl.lsst_specs...
Implement read timeout on serial device
@@ -584,6 +584,10 @@ HRESULT Library_win_dev_serial_native_Windows_Devices_SerialCommunication_Serial size_t length = 0; + CLR_RT_HeapBlock* timeout; + int64_t* timeoutTicks; + int64_t timeoutMilisecondsValue; + // get a pointer to the managed object instance and check that it's not NULL CLR_RT_HeapBlock* pThis = stack...
comment out deprecated attrib + enable error for deprecated
@@ -411,6 +411,10 @@ union LZ4_streamDecode_u { typically with -Wno-deprecated-declarations for gcc or _CRT_SECURE_NO_WARNINGS in Visual. Otherwise, it's also possible to define LZ4_DISABLE_DEPRECATE_WARNINGS */ +#ifndef LZ4_DISABLE_DEPRECATE_WARNINGS +# define LZ4_DISABLE_DEPRECATE_WARNINGS +#endif + #ifdef LZ4_DISABL...
Ni: Rephrase parts of the plugin documentation
@@ -15,40 +15,50 @@ This plugin uses the nickel library in order to read/write used in the `spec`-namespace or when any metadata should be stored. -For ini files for applications, e.g. smb.conf you should prefer the +For other applications, e.g. modifying `smb.conf` you should prefer the [ini plugin](/src/plugins/ini)....
http static server security fix
@@ -356,6 +356,21 @@ int http_sendfile(http_s *r, int fd, uintptr_t length, uintptr_t offset) { return ((http_vtable_s *)r->private_data.vtbl) ->http_sendfile(r, fd, length, offset); } + +static inline int http_test_encoded_path(const char *mem, size_t len) { + const char *pos = NULL; + const char *end = mem + len; + w...
ctype: fix typo
@@ -138,7 +138,7 @@ int elektraCTypeSet (Plugin * handle ELEKTRA_UNUSED, KeySet * returned, Key * pa return ELEKTRA_PLUGIN_STATUS_SUCCESS; } -Plugin * ELEKTRA_PLUGIN_EXPORT (type) +Plugin * ELEKTRA_PLUGIN_EXPORT (ctype) { // clang-format off return elektraPluginExport("ctype",
file-server: updated style
?~ site.req-line not-found:gen =* url-prefix landscape-homepage-prefix.configuration - ?. ?| ?&(?=(^ url-prefix) =((need url-prefix) i.site.req-line)) - =(url-prefix ~) + ?. ?| ?=(~ url-prefix) + =(u.url-prefix i.site.req-line) == not-found:gen ::
provisioning/warewulf-provision: call out perl-CGI for WW provisioning. Necessary for wwgetnodeconfig.
@@ -33,6 +33,7 @@ Patch6: warewulf-provision.wwgetfiles.patch Group: %{PROJ_NAME}/provisioning ExclusiveOS: linux Requires: warewulf-common%{PROJ_DELIM} +Requires: perl-CGI Requires: %{name}-initramfs-%{_arch} = %{version}-%{release} Conflicts: warewulf < 3 BuildRequires: autoconf
WFUNCTION fix for AsciiStrToUnicodeStrS issue PCD Ascii to Unicode Safe Fixes
@@ -21,7 +21,7 @@ extern CHAR16 gFnName[G_FN_NAME_SIZE]; #define WIDEN2(x) L ## x #define WIDEN(x) WIDEN2(x) #define __WFUNCTION__ \ - AsciiStrToUnicodeStrS(__FUNCTION__, gFnName, G_FN_NAME_SIZE) + ((AsciiStrToUnicodeStrS(__FUNCTION__, gFnName, G_FN_NAME_SIZE) == RETURN_SUCCESS) ? gFnName : L"" ) #ifdef OS_BUILD extern...
Tweak happyeyeballs test
@@ -254,7 +254,7 @@ int main(void) { {OP_END} }; start_test(test10, "test10"); - rc = dill_happyeyeballs_connect("www.example.org", 80, dill_now() + 700); + rc = dill_happyeyeballs_connect("www.example.org", 80, dill_now() + 900); assert(rc == -1 && errno == ETIMEDOUT); end_test();
Clean init of (global) resource descriptors after soft application restart
@@ -130,6 +130,10 @@ static std::vector<QString> rItemStrings; // string allocator: only grows, never void initResourceDescriptors() { + rPrefixes.clear(); + rItemDescriptors.clear(); + rItemStrings.clear(); + rItemStrings.emplace_back(QString()); // invalid string on index 0 // init resource lookup
Placeholder error screen;
@@ -173,7 +173,47 @@ function lovr.errhand(message, traceback) message = tostring(message) message = message .. formatTraceback(traceback or debug.traceback('', 4)) print('Error:\n' .. message) - return function() return 1 end + if not lovr.graphics then return function() return 1 end end + + local function render(pass...
Fix CID#1407318
@@ -592,7 +592,11 @@ on_writable(struct neat_flow_operations *opCB) unsigned char buf[SEGMENT_SIZE]; size_t bytes; - fseek(pf->fi->stream, pf->segment*SEGMENT_SIZE, SEEK_SET); + if (fseek(pf->fi->stream, pf->segment*SEGMENT_SIZE, SEEK_SET)) { + fprintf(stderr, "%s - fseek() failed\n", __func__); + exit(EXIT_FAILURE); +...
Fix assert in debug draw. Increase index limit.
@@ -49,13 +49,13 @@ typedef struct { // Meh, just max out 16 bit index size. #define VERTEX_MAX (64*1024) -#define INDEX_MAX (128*1024) +#define INDEX_MAX (4*VERTEX_MAX) static sg_buffer VertexBuffer, IndexBuffer; static size_t VertexCount, IndexCount; static Vertex Vertexes[VERTEX_MAX]; -static uint16_t Indexes[INDEX_...
BugID:16851775: MK3080: Implement the hal_flash_addr2offset (convert physical address to partition index and offset)
#include "hal/soc/soc.h" #include "board.h" #include "flash_api.h" +#include "hal_platform.h" #define SPI_FLASH_SEC_SIZE 4096 /**< SPI Flash sector size */ flash_t flash_obj; extern const hal_logic_partition_t hal_partitions[]; +extern size_t hal_partitions_amount; hal_logic_partition_t *hal_flash_get_info(hal_partitio...
linux/trace: don't handle SIGSEGV/SIGBUS/SIGILL/SIGFPE is -S is enabled
@@ -1381,4 +1381,14 @@ void arch_traceSignalsInit(honggfuzz_t* hfuzz) { /* Default is false */ arch_sigs[SIGVTALRM].important = hfuzz->timing.tmoutVTALRM; + + /* Let *SAN handle it, if it's enabled */ + if (hfuzz->sanitizer.enable) { + LOG_I("Sanitizer support enabled. SIGSEGV/SIGBUS/SIGILL/SIGFPE should be handled by ...
Update: Cycle.c: Internal derived evenys can now become the preconditions for external ones in order to explain their occurrence with high-level knoweldge.
@@ -177,6 +177,7 @@ void pushEvents(long currentTime) void Cycle_Perform(long currentTime) { eventsSelected = 0; + popEvents(); //1. process newest event if(belief_events.itemsAmount > 0) { @@ -192,6 +193,11 @@ void Cycle_Perform(long currentTime) //Mine for <(&/,precondition,operation) =/> postcondition> patterns in t...
odissey: minor refactoring
@@ -59,10 +59,13 @@ od_list_empty(od_list_t *list) return list->next == list && list->prev == list; } -#define od_list_foreach(LIST, I) \ - for (I = (LIST)->next; I != LIST; I = (I)->next) +#define od_list_foreach(list, iterator) \ + for (iterator = (list)->next; iterator != list; \ + iterator = (iterator)->next) -#def...
Remove COPY for old server cert files
@@ -33,6 +33,5 @@ COPY --from=source /src/scripts/install-powershell-docker.sh \ RUN chmod +x /install-powershell-docker.sh RUN /install-powershell-docker.sh ENV PATH="/root/.dotnet/tools:${PATH}" -COPY --from=build /src/Debug/server.* / RUN chmod +x /run_endpoint.sh ENTRYPOINT [ "/run_endpoint.sh" ]
VAS: Remove misleading print If there are no VAS nodes in the device tree we will still print this misleading message. Chips are already printed as they are inited.
@@ -425,7 +425,7 @@ static int init_vas_inst(struct dt_node *np) create_mm_dt_node(chip); - prlog(PR_INFO, "VAS: Initialized chip %d\n", chip->id); + prlog(PR_NOTICE, "VAS: Initialized chip %d\n", chip->id); return 0; } @@ -443,7 +443,6 @@ void vas_init() } vas_initialized = 1; - prlog(PR_NOTICE, "VAS: Initialized\n");...
Add default values for variables to prevent GCC wrong warnings
@@ -716,7 +716,7 @@ mqtt_parse_incoming(esp_mqtt_client_p client, esp_pbuf_p pbuf) { static void mqtt_connected_cb(esp_mqtt_client_p client) { uint8_t flags = 0; - uint16_t rem_len, len_id, len_pass, len_user, len_will_topic, len_will_message; + uint16_t rem_len, len_id, len_pass = 0, len_user = 0, len_will_topic = 0, ...
Update the build artifacts path for coverity pipeline Authored-by: Tingfang Bao
@@ -29,16 +29,16 @@ resources: - name: libquicklz-centos7 type: gcs source: - bucket: ((pivotal-gp-internal-artifacts-gcs-bucket)) - json_key: ((gcs-key)) - regexp: centos7/libquicklz-(\d.*)\.el7\.x86_64\.rpm + bucket: ((gcs-bucket)) + json_key: ((concourse-gcs-resources-service-account-key))) + regexp: gp-internal-art...
[kernel] reactivate code for a more sustainable solution to come
@@ -173,11 +173,11 @@ void LagrangianLinearTIDS::computeRhs(double time, bool) // Then we search for _q[2], such as Mass*_q[2] = _fExt - C_q[1] - K_q[0] + p. _workMatrix[invMass]->PLUForwardBackwardInPlace(*_q[2]); - // _workspace[free]->zero(); - // computeForces(time, _q[0], _q[1]); - // *_workspace[free] = *_forces;...
prepare to add more options
@@ -481,6 +481,22 @@ fclose(fhpmk); return; } /*===========================================================================*/ +void makepmklist(char *potname, char *pmkname) +{ +pmkliste = NULL; +pmkcount = 0; +processpmkfile(pmkname); +processpotfile(potname); +if(pmkliste != NULL) + { + calculatepmk(); + writenewpmkf...
Update Remaining in Create Namespace form Remaining capacity was not updated when changing region Also it was set to the last region's count whenever entering form
@@ -6616,7 +6616,7 @@ Finish: @param[in] BlockSize the size of each of the block in the device. Valid block sizes are: 1 (for AppDirect Namespace), 512 (default), 514, 520, 528, 4096, 4112, 4160, 4224. @param[in] BlockCount the amount of block that this namespace should consist - @param[in] pName - Namespace name. + @p...
Removed unused EIP712 get_struct function
@@ -278,12 +278,6 @@ const uint8_t *get_structn(const uint8_t *const ptr, } return NULL; } - -static inline const uint8_t *get_struct(const uint8_t *const ptr, - const char *const name_ptr) -{ - return get_structn(ptr, name_ptr, strlen(name_ptr)); -} // bool set_struct_name(uint8_t length, const uint8_t *const name)
fma: use NEON types in simde_mm_fnmadd_ps NEON implementation
@@ -490,9 +490,9 @@ simde_mm_fnmadd_ps (simde__m128 a, simde__m128 b, simde__m128 c) { c_ = simde__m128_to_private(c); #if defined(SIMDE_ARM_NEON_A32V7_NATIVE) && defined(__ARM_FEATURE_FMA) - r_.neon_f32 = vfmsq_f32(c_.f32, a_.f32, b_.f32); + r_.neon_f32 = vfmsq_f32(c_.neon_f32, a_.neon_f32, b_.neon_f32); #elif defined...
Validation: Fix mountpoint path
@@ -185,12 +185,12 @@ On that behalf we have to make sure that the validation plugin is loaded for this key with: ``` -kdb mount tutorial.dump user/tutorial dump validation +kdb mount tutorial.dump /tests/spec dump validation ``` This [mounts](/doc/tutorials/mount.md) the backend `tutorial.dump` to the mount point -**u...
eth-watcher: single update timer loop Kicks the update timer on application start, then sets a new timer whenever it's awoken. This aims to ensure eth-watcher never stops looking for updates periodically.
|- ^- form:m =* loop $ ?: (gth number.dog number.id.latest-block) - ;< now=@da bind:m get-time:stdio - ::TODO will set duplicate timers when multiple watchdogs, right? - ;< ~ bind:m (wait-effect:stdio (add now ~s30)) (pure:m dog) ;< =block bind:m (get-block-by-number url.dog number.dog) ;< [=new=pending-logs new-blocks...
compiler-families/gnu-compilers: bump to v9.4
%include %{_sourcedir}/OHPC_macros -%global gnu_version 9.3.0 +%global gnu_version 9.4.0 %global gnu_major_ver 9 %global pname gnu9-compilers # Define subcomponent versions required for build -%global gmp_version 6.1.2 -%global mpc_version 1.1.0 -%global mpfr_version 4.0.2 +%global gmp_version 6.2.1 +%global mpc_versio...
[contract] remove bignum octal format
#include "lauxlib.h" #include "lgmp.h" #include "math.h" +#include "vm.h" #define lua_boxpointer(L,u) \ (*(void **)(lua_newuserdata(L, sizeof(void *))) = (u)) @@ -65,6 +66,9 @@ const char *lua_set_bignum(lua_State *L, char *s) if (x == NULL) { return mp_num_memory_error; } + if (vm_is_hardfork(L, 3)) { + while (s && s[...
Read Xiaomi basic cluster datecode to provide meaningful swversion Related
@@ -5268,7 +5268,7 @@ void DeRestPluginPrivate::updateSensorNode(const deCONZ::NodeEvent &event) else if (ia->id() == 0x0006) // Date code as fallback for sw build id { QString str = ia->toString().simplified(); - if (!i->swVersion().isEmpty()) + if (!i->swVersion().isEmpty() && !i->modelId().startsWith(QLatin1String("...
Clear ProtocolClient callback after connection error. Attempting to shut down the connection will fail since the server has already disconnected and a new error will be thrown, masking the original error.
@@ -759,11 +759,23 @@ protocolRemoteExec( { ASSERT(remoteType == CFGOPTVAL_REPO_HOST_TYPE_TLS); + TRY_BEGIN() + { // Pass parameters to server ProtocolCommand *const command = protocolCommandNew(PROTOCOL_COMMAND_CONFIG); pckWriteStrLstP(protocolCommandParam(command), protocolRemoteParam(protocolStorageType, hostIdx)); ...
esp_modem: Add specific power-down command for SIM7600
@@ -52,6 +52,22 @@ static esp_err_t sim7600_handle_cbc(modem_dce_t *dce, const char *line) return err; } +/** + * @brief Handle response from AT+CPOF + */ +static esp_err_t sim7600_handle_cpof(modem_dce_t *dce, const char *line) +{ + esp_err_t err = ESP_OK; + if (strstr(line, MODEM_RESULT_CODE_SUCCESS)) { + err = esp_m...
[mod_webdav] fix file uploads > 128M (fixes (thx Gundersanne) x-ref: "mod_webdav writes to fd=-1 when uploading large files (1000M)"
@@ -3325,7 +3325,7 @@ webdav_mmap_file_chunk (chunk * const c) /*(request body provided in temporary file, so ok to mmap(). * Otherwise, must check defined(ENABLE_MMAP)) */ /* chunk_reset() or chunk_free() will clean up mmap'd chunk */ - /* close c->file.fd only faster mmap() succeeds, since it will not + /* close c->f...
One last cleanup before I feel this code is ready to submit for CR.
#define DBGMCU_CR_TRACE_MODE_ASYNC (0x00 << 6) -// We use a global flag to allow communicating to the main thread from the signal handler. -static bool g_abort_trace = false; - - typedef struct { bool show_help; bool show_version; @@ -140,6 +136,13 @@ typedef struct { } st_trace_t; +// We use a global flag to allow com...
tests BUGFIX checking module's include substatement
@@ -755,8 +755,8 @@ test_module(void **state) mod = mod_renew(&ctx, mod, 0); /* include */ - TEST_GENERIC("rpc test;}", mod->rpcs, - assert_string_equal("test", mod->rpcs[0].name)); + TEST_GENERIC("include test;}", mod->includes, + assert_string_equal("test", mod->includes[0].name)); /* leaf */ TEST_NODE(LYS_LEAF, "lea...
fix(setup): Fix typo for split variable assignment
@@ -120,7 +120,7 @@ select opt in "${options[@]}" "Quit"; do 18 ) shield_title="Tidbit" shield="tidbit"; split="n" break;; 19 ) shield_title="Eek!" shield="eek"; split="n" break;; 20 ) shield_title="BFO-9000" shield="bfo9000"; split="y"; break;; - 21 ) shield_title="Helix" shield="helix"; split"y"; break;; + 21 ) shiel...
Add CGO environment variables for Go compilation
@@ -65,6 +65,13 @@ In case of using precompiled binaries (in Linux), when running any application u export LD_LIBRARY_PATH="/gnu/store/`ls /gnu/store/ | grep metacall | head -n 1`/lib" ``` +`go build` may require to set CGO environment variables pointing to MetaCall libraries in case of undefined C headers during compi...
doc: reformatted the run all tests with docker Markdown file
@@ -26,6 +26,7 @@ docker build -t buildelektra-sid \ -f scripts/docker/debian/sid/Dockerfile \ scripts/docker/debian/sid/ ``` + Alternatively, you can use podman: ```sh @@ -36,7 +37,6 @@ podman build -t buildelektra-sid \ scripts/docker/debian/sid/ ``` - The build process depends on your Internet connection speed and t...
input: remove unused label
@@ -553,7 +553,6 @@ int flb_input_dyntag_append(struct flb_input_instance *in, msgpack_pack_object(&dt->mp_pck, data); flb_input_dbuf_write_end(dt); - out: /* Lock buffers where size > 2MB */ if (dt->mp_sbuf.size > 2048000) { dt->lock = FLB_TRUE;
travis: add a 32-bit ARM build We need to be able to test NEON *without* A64, which adds a lot of really useful functions that I'd love to have :(
@@ -121,9 +121,25 @@ jobs: packages: - intel-oneapi-icc + - name: "arm32" + arch: arm64 + env: + - C_COMPILER=arm-linux-gnueabihf-gcc + - CXX_COMPILER=arm-linux-gnueabihf-g++ + - ARCH_FLAGS="-march=armv8-a" + install: + - dpkg -L gcc-arm-linux-gnueabihf + - dpkg -L g++-arm-linux-gnueabihf + addons: + apt: + packages: +...
OpenCanopy: Do not play password incorrect animation when VO is on
@@ -556,7 +556,10 @@ InternalPasswordExitLoop ( if (mPasswordBox.RequestConfirm) { mPasswordBox.RequestConfirm = FALSE; + + if (!Context->PickerContext->PickerAudioAssist) { InternalQueueIncorrectPassword (DrawContext); + } Confirmed = InternalConfirmPassword (DrawContext, Context); SecureZeroMem (&mPasswordBox.Passwor...
Add amalgamated CI build
@@ -71,6 +71,21 @@ jobs: cd msvc msbuild.exe Zydis.sln /m /t:Rebuild '/p:Configuration="Release Kernel";Platform=X64' + amalgamated: + name: Amalgamated build (Ubuntu 20.04) + runs-on: ubuntu-20.04 + steps: + - name: Checkout + uses: actions/checkout@v2 + with: { submodules: recursive } + - name: Amalgamating sources +...
Signal to pending threads more often.
@@ -66,7 +66,8 @@ struct JanetMailbox { uint16_t messageFirst; uint16_t messageNext; - /* Buffers to store messages */ + /* Buffers to store messages. These buffers are manually allocated, so + * are not owned by any thread's GC. */ JanetBuffer messages[]; }; @@ -267,8 +268,6 @@ int janet_thread_send(JanetThread *threa...
update SrcRemove(): auto detect string or file object.
@@ -695,13 +695,11 @@ def SrcRemove(src, remove): if not src: return - if type(src[0]) == type('str'): for item in src: + if type(item) == type('str'): if os.path.basename(item) in remove: src.remove(item) - return - - for item in src: + else: if os.path.basename(item.rstr()) in remove: src.remove(item)
Escaped username maybe not properly parsed
"authmechanism": "MONGODB-X509" } }, - { - "description": "Escaped username (GSSAPI)", - "uri": "mongodb://user%40EXAMPLE.COM:secret@localhost/?authMechanismProperties=SERVICE_NAME:other,CANONICALIZE_HOST_NAME:true&authMechanism=GSSAPI", - "valid": true, - "warning": false, - "hosts": [ - { - "type": "hostname", - "hos...
buffer does not need to be very large.
//char* fmt_str = "L Y HMD %d 5 1 206230 %d\n"; -#define MAX_BUFF_SIZE 1024 +#define MAX_BUFF_SIZE 64 void (*ootx_packet_clbk)(ootx_packet* packet) = NULL; void (*ootx_bad_crc_clbk)(ootx_packet* packet, uint32_t crc) = NULL;
Remove $% duplicate detection, which broke something.
[%axil %void] ?~ t.p.gen boil(gen i.p.gen) - =/ def bile(gen i.p.gen) - =| tag/(set term) - =? tag ?=($& -.def) (~(put in tag) `@tas`q.p.p.def) - =/ end - =| lit/(list line) - |- ^+ lit - =/ tar bile(gen i.t.p.gen) - ?. ?=($& -.tar) - ~_(leaf+"book-foul" !!) - =/ hed `@tas`q.p.p.tar - ?: (~(has in tag) hed) - ~_(leaf+"...
Updated the validation for a DNS query type that we want to process. We saw an additional class type that we were not handling. It's better. Likely needs more test at some point.
@@ -694,8 +694,8 @@ getDNSName(int sd, void *pkt, int pktlen) struct question *q; char *aname, *dname; - if (g_netinfo && (g_netinfo[sd].type == SOCK_STREAM)) { - return 0; + if (!g_netinfo) { + return -1; } query = (struct dns_query_t *)pkt; @@ -703,8 +703,46 @@ getDNSName(int sd, void *pkt, int pktlen) return -1; } +...
juniper: Change default battery to AP16L5J Set AP16L5J as default battery. BRANCH=master TEST=make buildall is success.
@@ -120,7 +120,7 @@ const struct board_batt_params board_battery_info[] = { }; BUILD_ASSERT(ARRAY_SIZE(board_battery_info) == BATTERY_TYPE_COUNT); -const enum battery_type DEFAULT_BATTERY_TYPE = BATTERY_PANASONIC_AC15A3J; +const enum battery_type DEFAULT_BATTERY_TYPE = BATTERY_PANASONIC_AC16L5J_KT00205009; enum battery...
Update linux installation guide Issue noted some problems with the linux documentation. Updating this documentation to be more accurate and direct configuration steps to the appropriate documentation.
- Make sure that you add `/usr/local/lib` and `/usr/local/lib64` to `/etc/ld.so.conf`, then run command `ldconfig`. -- If you want to install and use gcc-6 by default, run: +- If you want to install and use gcc-7 by default, run: ```bash sudo yum install -y centos-release-scl - sudo yum install -y devtoolset-6-toolchai...