message
stringlengths
6
474
diff
stringlengths
8
5.22k
Add another alias for backspace (127/DEL in terminal.app)
@@ -1707,6 +1707,7 @@ int main(int argc, char** argv) { case KEY_DOWN: app_dir_input(&app_state, App_dir_down); break; + case 127: // backspace in terminal.app, apparently case KEY_BACKSPACE: case CTRL_PLUS('h'): case KEY_LEFT:
Fix unit-test failing on disabled functions.
@@ -28,8 +28,11 @@ for test in sorted(os.listdir(SCRIPT_DIR)): if unittest(DATA_DIR, TEMP_DIR) == False: raise Exception() except Exception as e: + if "unavailable" in str(e): + test_result = "DISABLED" + else: test_failed = True - test_result = "DISABLED" if "unavailable" in str(e) else "FAILED" + test_result = "FAILE...
CI: use Lua 5.4.4 when testing with GHC 9.0
@@ -65,8 +65,8 @@ jobs: aeson: '== 2.0.2.0' - ghc: '9.0.1' cabal: '3.4' - lua: '5.3.6' - flags: '+hardcode-reg-keys' + lua: '5.4.4' + flags: '+system-lua' aeson: '>= 2' - ghc: '9.2.1' cabal: '3.4'
tree data BUGFIX trailing zeroes cannot be ignored
@@ -788,14 +788,6 @@ ly_time_str2time(const char *value, time_t *time, char **fractions_s) for (frac_len = 0; isdigit(frac[frac_len]); ++frac_len) {} i += frac_len; - - /* skip trailing zeros */ - for ( ; frac_len && (frac[frac_len - 1] == '0'); --frac_len) {} - - if (!frac_len) { - /* only zeros, ignore */ - frac = NU...
Fix HoG script.
@@ -12,8 +12,8 @@ sensor.reset() sensor.set_contrast(1) sensor.set_gainceiling(8) sensor.set_framesize(sensor.QVGA) -sensor.skip_frames(time = 2000) sensor.set_pixformat(sensor.GRAYSCALE) +sensor.skip_frames(time = 2000) clock = time.clock() # Tracks FPS. while (True):
unix/mpconfigport.h: Enable MICROPY_PY_URE_SUB. ure.sub() is very practical facility for string manipulation. Even despite the fact that it adds 688 code bytes on x86 (32-bit), give up and add it to teh baselibe unix config (so it will be enabled in all unix builds, except minimal).
#define MICROPY_PY_UZLIB (1) #define MICROPY_PY_UJSON (1) #define MICROPY_PY_URE (1) +#define MICROPY_PY_URE_SUB (1) #define MICROPY_PY_UHEAPQ (1) #define MICROPY_PY_UTIMEQ (1) #define MICROPY_PY_UHASHLIB (1)
os/fs/driver/mtd: Fix for improper comparison of CRC16 Convert uint8_t CRC16[2] into a single uint16_t value for comparison with CONFIG_SMART_ERASEDSTATE.
#if SMART_STATUS_VERSION == 1 #define HEADER_IS_CLEAN(h) ((UINT8TOUINT16(h.logicalsector) == 0xFFFF && h.seq == 0xFF && h.crc8 == 0xFF && h.status == 0xFF)) #elif SMART_STATUS_VERSION == 2 -#define HEADER_IS_CLEAN(h) ((UINT8TOUINT16(h.logicalsector) == 0xFFFF && h.seq == 0xFF && h.crc16 == 0xFFFF && h.status == 0xFF)) ...
hark-graph-hook: cast the interior of the vase for speed
update-core =* pos p.post.node =+ !< notif-kind=(unit notif-kind:hook) - (get-conversion !>([0 pos])) + %- get-conversion + !>(`indexed-post:graph-store`[0 pos]) ?~ notif-kind update-core =/ desc=@t
components/freertos: create the test task with highest priority to ensure peer-to-peer ISR to task sync
@@ -66,7 +66,7 @@ TEST_CASE("isr latency test", "[freertos] [ignore]") TEST_ASSERT(sync != NULL); end_sema = xSemaphoreCreateBinary(); TEST_ASSERT(end_sema != NULL); - xTaskCreatePinnedToCore(test_task, "tst" , 4096, NULL, 3, NULL, 0); + xTaskCreatePinnedToCore(test_task, "tst" , 4096, NULL, configMAX_PRIORITIES - 1, N...
Add more doc to the python port test.
@@ -88,6 +88,14 @@ class py_port_test(unittest.TestCase): # try to solve them in some way, maybe having another interpreter instance, or some co-routine # like mechanism, I don't know. # + # For tracking deadlocks, this is the mechanism that we can use: + # 1) Get the thread id of the thread where Python was launched, ...
RetainerManager byte to bool
@@ -52,7 +52,7 @@ public unsafe partial struct RetainerManager { [FieldOffset(0x00)] public ulong RetainerID; [FieldOffset(0x08)] public fixed byte Name[0x20]; - [FieldOffset(0x28)] public byte Available; + [FieldOffset(0x28)] public bool Available; [FieldOffset(0x29)] public byte ClassJob; [FieldOffset(0x2A)] public b...
Fix lost count in perf_reader
@@ -243,7 +243,15 @@ void perf_reader_event_read(struct perf_reader *reader) { } if (e->type == PERF_RECORD_LOST) { - uint64_t lost = *(uint64_t *)(ptr + sizeof(*e)); + /* + * struct { + * struct perf_event_header header; + * u64 id; + * u64 lost; + * struct sample_id sample_id; + * }; + */ + uint64_t lost = *(uint64_t...
sdcard_image: fix sdcard image generation Rely on shell environment when copying devicetree and devicetree overlays to target image.
@@ -107,7 +107,7 @@ IMAGE_CMD_rpi-sdimg () { DT_ROOT="${@split_overlays(d, 1)}" # Copy board device trees to root folder - for DTB in ${DT_ROOT}; do + for DTB in $DT_ROOT; do DTB_BASE_NAME=`basename ${DTB} .dtb` mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${DTB_BASE_NAME}.dtb ::${DTB_BASE_NA...
access_log_open(): always open access log in append mode Mode "a" will also create the file if non-existent, no need to fallback to mode "w".
@@ -101,10 +101,8 @@ access_log_open (const char *path) { if (path == NULL) return 0; - if (access (path, F_OK) != -1) access_log = fopen (path, "a"); - else - access_log = fopen (path, "w"); + if (access_log == NULL) return 1;
sds: on sds_create_len() validate return value
@@ -55,6 +55,10 @@ flb_sds_t flb_sds_create_len(char *str, int len) struct flb_sds *head; s = sds_alloc(len); + if (!s) { + return NULL; + } + if (str) { memcpy(s, str, len); s[len] = '\0';
perf(non-null judgment): add non-null judgment of "ayoutCfg.groupCfg.endorser" in BoatHlfabricDiscoverySubmit()
@@ -942,6 +942,10 @@ BOAT_RESULT BoatHlfabricDiscoverySubmit(BoatHlfabricTx *tx_ptr, const BoatHlfabr { tx_ptr->wallet_ptr->network_info.layoutCfg[i].groupCfg[j].endorserNumber = discoverResult.cc_res.layouts[i].groups[j].numEndorsers; tx_ptr->wallet_ptr->network_info.layoutCfg[i].groupCfg[j].endorser = BoatMalloc(disc...
perf(rlp compile): when ETHEREUM/PLATON/PLATONE/FISCOBCOS are closed , do not compile rlp
@@ -5,24 +5,16 @@ OBJECTS_DIR = $(BOAT_BUILD_DIR)/sdk/rlp OBJECTS = $(patsubst %.c,$(OBJECTS_DIR)/%.o,$(SOURCES)) + +ifeq ($(BOAT_PROTOCOL_USE_ETHEREUM)_$(BOAT_PROTOCOL_USE_PLATON)_$(BOAT_PROTOCOL_USE_PLATONE)_$(BOAT_PROTOCOL_USE_FISCOBCOS), 0_0_0_0) +all: +else all: $(OBJECTS_DIR) $(OBJECTS) $(OBJECTS_DIR): $(BOAT_MKD...
Remove some unnecessary undefs in bn_asm.c This is likely the leftover of a previous hack, and thus should be removed now.
@@ -422,11 +422,6 @@ BN_ULONG bn_sub_words(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b, #if defined(BN_MUL_COMBA) && !defined(OPENSSL_SMALL_FOOTPRINT) -# undef bn_mul_comba8 -# undef bn_mul_comba4 -# undef bn_sqr_comba8 -# undef bn_sqr_comba4 - /* mul_add_c(a,b,c0,c1,c2) -- c+=a*b for three word number c=(c2,c1,c...
Add lv_btnmatrix_set/gett_align capability
@@ -422,6 +422,23 @@ void lv_btnmatrix_set_one_check(lv_obj_t * btnm, bool one_chk) make_one_button_toggled(btnm, 0); } +/** + * Set the align of the map text (left, right or center) + * @param btnm pointer to a btnmatrix object + * @param align LV_LABEL_ALIGN_LEFT, LV_LABEL_ALIGN_RIGHT or LV_LABEL_ALIGN_CENTER + */ +v...
openssl.c: Avoid OpenSSL latent error in FIPS mode File: openssl.c Notes: Avoid initing MD5 digest, which is not permitted in OpenSSL FIPS certified cryptography mode. Credit: Marc
@@ -2221,6 +2221,13 @@ _libssh2_sha512(const unsigned char *message, unsigned long len, int _libssh2_md5_init(libssh2_md5_ctx *ctx) { + /* MD5 digest is not supported in OpenSSL FIPS mode + * Trying to init it will result in a latent OpenSSL error: + * "digital envelope routines:FIPS_DIGESTINIT:disabled for fips" + * S...
Remove customer names from gpload.py
@@ -1076,7 +1076,7 @@ def jenkins(data, initval = 0): a, b, c = jenkinsmix(a, b, c) return c -# MPP-20927 Citibank: gpload external table name problem +# MPP-20927: gpload external table name problem # Not sure if it is used by other components, just leave it here. def shortname(name): """ @@ -1150,7 +1150,7 @@ class g...
vere: get binary self-path with whereami lib
#include <libgen.h> #include "ca-bundle.h" +#include "whereami.h" // serf module state // @@ -1265,6 +1266,13 @@ c3_i main(c3_i argc, c3_c** argv) { + if ( argc <= 0 ) { + fprintf(stderr, "nice try, fbi\r\n"); + exit(1); + } + + c3_c* bin_c = strdup(argv[0]); + // Parse options. // if ( _cw_utils(argc, argv) ) { @@ -12...
webpinfo: print the number of warnings otherwise they can go un-noticed (unless you use -diag).
if (webp_info->show_diagnosis_) { \ fprintf(stderr, "Warning: %s\n", MESSAGE); \ } \ + ++webp_info->num_warnings_; \ } while (0) static const char* const kFormats[3] = { @@ -116,6 +117,7 @@ typedef struct WebPInfo { int is_processing_anim_frame_, seen_alpha_subchunk_, seen_image_subchunk_; // Print output control. int ...
Table update for WMO version
20 20 Version implemented on 8 November 2017 21 21 Version implemented on 2 May 2018 22 22 Version implemented on 7 November 2018 -23 23 Pre-operational to be implemented by next amendment +23 23 Version implemented on 15 May 2019 # 24-254 Future versions 255 255 Master tables not used. Local table entries and local te...
misc/obs: adopt newer branch name scheme in service file template
@@ -23,7 +23,7 @@ permissions and limitations under the License. <!-- correct component path in git and desired branch --> <param name="subdir">components</param> - <param name="revision">obs/OpenHPC_!VERSION!_Factory</param> + <param name="revision">!VERSION!</param> <param name="include">!GROUP!</param> <param name="...
Wrong vl_msg_id Wrong vl_msg_id set in vl_api_stats_get_poller_delay_t_handler while reporting stats delay.
@@ -2451,7 +2451,7 @@ static void vl_api_stats_get_poller_delay_reply_t *rmp; rmp = vl_msg_api_alloc (sizeof (*rmp)); - rmp->_vl_msg_id = ntohs (VL_API_WANT_PER_INTERFACE_SIMPLE_STATS_REPLY); + rmp->_vl_msg_id = ntohs (VL_API_STATS_GET_POLLER_DELAY_REPLY); rmp->context = mp->context; rmp->retval = 0; rmp->delay = clib_...
oc_swupdate: fix leak
@@ -125,15 +125,16 @@ oc_swupdate_free(void) { size_t i; for (i = 0; i < oc_core_get_num_devices(); i++) { + oc_swupdate_t *s = &sw[i]; oc_dump_sw(i); - if (oc_string_len(sw[i].purl) > 0) { - oc_free_string(&sw[i].purl); + if (oc_string_len(s->purl) > 0) { + oc_free_string(&s->purl); } - if (oc_string_len(sw[i].nv) > 0...
h2olog: remove redundant (n|v)_len variables
@@ -46,7 +46,6 @@ int trace_receive_req(struct pt_regs *ctx) { int trace_receive_req_header(struct pt_regs *ctx) { struct trace_line_t line = {}; - size_t n_len, v_len; void *pos = NULL; bpf_usdt_readarg(1, ctx, &line.conn_id); @@ -54,14 +53,14 @@ int trace_receive_req_header(struct pt_regs *ctx) { // Extract the Heade...
doc: Add environemt variable overriding to get started This comit adds details about the overriding of environment variables such as ESPPORT and ESPBAUD to the get started guide.
@@ -315,6 +315,33 @@ That's all what you need to get started with ESP32! Now you are ready to try some other :idf:`examples`, or go right to developing your own applications. +Environment Variables +===================== + +Some environment variables can be specified whilst calling ``make`` allowing users to **override...
api: turn off verbose
import Urbit from '@urbit/http-api'; const api = new Urbit('', '', (window as any).desk); api.ship = window.ship; -api.verbose = true; +// api.verbose = true; // @ts-ignore TODO window typings window.api = api;
Add Linux support for find_apps and build_apps
@@ -289,12 +289,13 @@ class BuildSystem: Objects of these classes aren't instantiated, instead the class (type object) is used. """ NAME = "undefined" - SUPPORTED_TARGETS_REGEX = re.compile(r'Supported [Tt]argets((?:[\s|]+(?:ESP[0-9A-Z\-]+))+)') + SUPPORTED_TARGETS_REGEX = re.compile(r'Supported [Tt]argets((?:[ |]+(?:[...
hdata/memory: Removed share-id property Commit (hdata/memory: Remove find_shared()) replaed find_shared() with dt_find_name_addr(). Now we do not need PRIVATE share-id property. Lets remove this property. CC: Oliver O'Halloran
@@ -200,9 +200,6 @@ static bool add_address_range(struct dt_node *root, dt_add_property_u64s(mem, "reg", reg[0], reg[1]); dt_add_property_cells(mem, "ibm,chip-id", chip_id); - if (be16_to_cpu(id->flags) & MS_AREA_SHARED) - dt_add_property_cells(mem, DT_PRIVATE "share-id", - be16_to_cpu(id->share_id)); return true; }
Add missing s2n_cipher_suite declaration
@@ -137,6 +137,7 @@ extern struct s2n_cipher_suite s2n_ecdhe_rsa_with_aes_128_gcm_sha256; extern struct s2n_cipher_suite s2n_ecdhe_rsa_with_aes_256_gcm_sha384; extern struct s2n_cipher_suite s2n_ecdhe_rsa_with_chacha20_poly1305_sha256; extern struct s2n_cipher_suite s2n_dhe_rsa_with_chacha20_poly1305_sha256; +extern st...
tools/ci/cibuild.sh: Fix destination path 'pinguino-compilers' already exists and is not an empty directory.
@@ -253,7 +253,7 @@ function kconfig-frontends { } function mips-gcc-toolchain { - if [ ! -f "${tools}/pinguino-compilers" ]; then + if [ ! -d "${tools}/pinguino-compilers" ]; then cd "${tools}" git clone https://github.com/PinguinoIDE/pinguino-compilers fi
More verbose RELNOTES. Fix unused variable warnings and uninit variable in statistics printout from clang analyzer.
@@ -6,7 +6,8 @@ FEATURES: - --enable-memclean cleans up memory for use with memory checkers, eg. valgrind. BUG FIXES: - - Fix unused variable warnings from clang analyzer. + - Fix unused variable warnings and uninit variable in statistics + printout from clang analyzer. - Fix spelling error in xfr-inspect.
Allow operator dx for /config/localtime
@@ -1317,6 +1317,8 @@ bool DeRestPluginPrivate::evaluateRule(Rule &rule, const Event &e, Resource *eRe if (eItem->descriptor().suffix == RStateLastUpdated) {} + else if (eItem->descriptor().suffix == RConfigLocalTime) + {} else if (e.num() == e.numPrevious()) { return false;
nimble/ll: Start LL response timer when sending start encrypt Make sure start that we receive start encrypt response withing 40 sec otherwise drop the link
@@ -1137,6 +1137,11 @@ ble_ll_ctrl_start_enc_send(struct ble_ll_conn_sm *connsm) if (om) { om->om_data[0] = BLE_LL_CTRL_START_ENC_REQ; ble_ll_conn_enqueue_pkt(connsm, om, BLE_LL_LLID_CTRL, 1); + + /* Wait for LL_START_ENC_RSP */ + connsm->cur_ctrl_proc = BLE_LL_CTRL_PROC_ENCRYPT; + ble_ll_ctrl_start_rsp_timer(connsm); ...
Add a delay for loading the modules inspector when a script is running
@@ -36,15 +36,27 @@ class MenuTableViewController: UITableViewController, UIPopoverPresentationContr /// Shows loaded modules. func selectLoadedModules() { - if Python.shared.isScriptRunning { + let wasRunningScript = Python.shared.isScriptRunning + if wasRunningScript { Python.shared.stop() } - dismiss(animated: true)...
Require less bits to allow for a smaller enum type
@@ -31,11 +31,11 @@ extern "C" { Core Types ***************************************************************************** */ -typedef enum { +typedef enum fiobj_type_enum { FIOBJ_T_NUMBER = 0x01, FIOBJ_T_NULL = 0x06, - FIOBJ_T_TRUE = 0x0106, - FIOBJ_T_FALSE = 0x0206, + FIOBJ_T_TRUE = 0x16, + FIOBJ_T_FALSE = 0x26, FIOBJ...
esp32s2: BROWNOUT reset reason is set directly without using the brownout ISR
@@ -31,6 +31,7 @@ void brownout_hal_config(const brownout_hal_config_t *cfg) .rst_wait = 0x3ff, .rst_ena = cfg->reset_enabled, .ena = cfg->enabled, + .rst_sel = 1, }; RTCCNTL.brown_out = brown_out_reg; }
source from github; bump imb to 2018.0
Summary: Intel MPI Benchmarks (IMB) Name: %{pname}-%{compiler_family}-%{mpi_family}%{PROJ_DELIM} -Version: 4.1 +Version: 2018.0 Release: 1%{?dist} License: CPL Group: %{PROJ_NAME}/perf-tools URL: https://software.intel.com/en-us/articles/intel-mpi-benchmarks -Source0: %{PNAME}_%{version}.tgz +Source0: https://github.co...
remove missing package
@@ -2,7 +2,7 @@ To create a Debian package of KadNode (a *.deb file), you first need to have installed the following programs and libraries: ``` -apt install build-essential debhelper devscripts hardening-includes +apt install build-essential debhelper devscripts apt install libmbedtls-dev libnatpmp-dev libminiupnpc-de...
microbitv2: Add comments to KL27/nRF52 power.c differences
@@ -210,6 +210,11 @@ static void power_mode_switch(smc_power_state_t curPowerState, app_power_mode_t static void power_pre_switch_hook(smc_power_state_t originPowerState, app_power_mode_t targetMode) { + // TODO: Check if this is necessary, when we have time to test. This has always been in the V2 code. + // The commen...
Change Makefile to use default CXX variable for compiler
@@ -119,23 +119,23 @@ CXXFLAGS_EXTERNAL = \ -fno-strict-aliasing $(BINARY): $(EXTERNAL_OBJECTS) $(OBJECTS) - @g++ -o $@ $^ $(CXXFLAGS) -lpthread + @$(CXX) -o $@ $^ $(CXXFLAGS) -lpthread @echo "[Link] $@ (using $(VEC), debug=$(DBG))" stb_image-$(VEC).o: stb_image.h - @g++ -c -x c++ -o $@ $< $(CXXFLAGS_EXTERNAL) -DSTB_IM...
correct check_component_dependencies call
@@ -177,7 +177,7 @@ if (UNIX) set (CPACK_COMPONENT_LIBELEKTRA${SO_VERSION}-FUSE_DISPLAY_NAME "libelektra${SO_VERSION}-fuse") set (CPACK_COMPONENT_LIBELEKTRA${SO_VERSION}-FUSE_DESCRIPTION "This package contains the 'fuse' tool.") set (CPACK_COMPONENT_LIBELEKTRA${SO_VERSION}-FUSE_DEPENDS "libelektra${SO_VERSION}" "python...
Fix Readme typo: framwork -> framework
@@ -5,7 +5,7 @@ This follows the specification available in the doc/ folder To use the generic wallet (which disables all data transaction) refer to signTx.py (requires rlp package) or Ledger Ethereum Wallet Chrome application available on Github at https://github.com/LedgerHQ/ledger-wallet-ethereum-chrome or the Chrom...
VERSION bump to version 1.4.50
@@ -37,7 +37,7 @@ endif() # micro version is changed with a set of small changes or bugfixes anywhere in the project. set(SYSREPO_MAJOR_VERSION 1) set(SYSREPO_MINOR_VERSION 4) -set(SYSREPO_MICRO_VERSION 49) +set(SYSREPO_MICRO_VERSION 50) set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI...
stm32/qspi: Force a reset of the QSPI peripheral when initialising it. To ensure it is in a known state on start up.
@@ -88,6 +88,8 @@ void qspi_init(void) { // Bring up the QSPI peripheral __HAL_RCC_QSPI_CLK_ENABLE(); + __HAL_RCC_QSPI_FORCE_RESET(); + __HAL_RCC_QSPI_RELEASE_RESET(); QUADSPI->CR = (MICROPY_HW_QSPI_PRESCALER - 1) << QUADSPI_CR_PRESCALER_Pos
Fix felix crash
@@ -293,6 +293,7 @@ func (m *bpfEndpointManager) OnUpdate(msg interface{}) { } func (m *bpfEndpointManager) onInterfaceAddrsUpdate(update *ifaceAddrsUpdate) { + if update.Addrs.Len() > 0 { log.Debugf("Interface %+v received address update %+v", update.Name, update.Addrs) update.Addrs.Iter(func(item interface{}) error {...
CFramework: Use `ELEKTRA_QUOTE`
#include <kdb.h> #include <kdbhelper.h> +#include <kdbmacros.h> #define BUFFER_LENGTH 4096 #define ELEKTRA_TEST_ROOT "/tests/ckdb/" @@ -76,8 +77,6 @@ int init (int argc, char ** argv); } \ } -#define quote_string(x) #x - #define compare_key_name(pk1, pk2) \ { \ Key * nmmk1 = pk1; \ @@ -202,7 +201,7 @@ int init (int arg...
Fix `vcpkg` install instructions
@@ -163,7 +163,7 @@ git clone https://github.com/Microsoft/vcpkg.git cd vcpkg ./bootstrap-vcpkg.sh ./vcpkg integrate install -vcpkg install zydis +./vcpkg install zydis ``` The Zydis port in vcpkg is kept up to date by Microsoft team members and community contributors. If the version is out of date, please [create an i...
WindowExplorer: Add window icon
@@ -348,6 +348,9 @@ INT_PTR CALLBACK WepWindowsDlgProc( { PH_RECTANGLE windowRectangle; + SendMessage(hwndDlg, WM_SETICON, ICON_SMALL, (LPARAM)PH_LOAD_SHARED_ICON_SMALL((*(PVOID *)WeGetProcedureAddress("PhInstanceHandle")), MAKEINTRESOURCE(PHAPP_IDI_PROCESSHACKER))); + SendMessage(hwndDlg, WM_SETICON, ICON_BIG, (LPARAM...
Add P_CLI test to easy debug
@@ -10479,7 +10479,7 @@ requires_config_enabled MBEDTLS_SSL_SRV_C requires_openssl_tls1_3 run_test "TLS 1.3: Server side check - openssl" \ "$P_SRV debug_level=4 crt_file=data_files/server5.crt key_file=data_files/server5.key force_version=tls13 tickets=0" \ - "$O_NEXT_CLI -msg -tls1_3" \ + "$O_NEXT_CLI -msg -debug -tl...
qlog: capture sent stream frames
@@ -197,6 +197,24 @@ def handle_stream_on_receive_reset(event): "error_code": event["err"] } +def handle_stream_receive(event): + label = "stream" if event["stream-id"] >= 0 else "crypto" + return { + "frame_type": label, + "stream_id": event["stream-id"], + "length": event["len"], + "offset": event["off"] + } + +def h...
support benchmark command targets.
@@ -225,6 +225,10 @@ const cmddeps = {b, name, ct a = std.htgetv(b.deps.targs, "test", [][:]) std.slpush(&a, n) std.htput(b.deps.targs, "test", a) + elif ct.isbench + a = std.htgetv(b.deps.targs, "bench", [][:]) + std.slpush(&a, n) + std.htput(b.deps.targs, "bench", a) elif gen pid = run(ct.cmd, ct.dir) match std.wait(...
arch/s5j: Remove unnecessary watchdog menu on Kconfig Those configs are not enough important to make a menu. Let's remove it.
@@ -328,9 +328,6 @@ config S5J_WATCHDOG depends on S5J_HAVE_WATCHDOG default n -menu "Watchdog driver configuration" - depends on S5J_WATCHDOG - config S5J_WATCHDOG_DEBUG bool "S5J Watchdog debug" default n @@ -351,8 +348,6 @@ config S5J_WDT_DEFTIMEOUT default 7000 depends on S5J_WATCHDOG -endmenu - config S5J_SFLASH b...
distro-packages/python-rpm-macros: invert distro check logic
+ local compiler_family = rpm.expand("%compiler_family") + local mpi_family = rpm.expand("%mpi_family") + local ohpc_suffix = rpm.expand("%PROJ_DELIM") -+ local function is_suse() -+ local s = rpm.expand("%suse_version") -+ return s == nil or s == '' ++ local function is_centos() ++ local s = rpm.expand("%centos") ++ r...
Fix extraction of first warning in HL API. Before we always returned the empty description, module, file and line of the dummy error.
@@ -133,8 +133,8 @@ Elektra * elektraOpen (const char * application, KeySet * defaults, KeySet * con // If there are warnings, pick the first warning, create a copy, set it to param "error" and return NULL. // We can only report 1 error at a time. Once the user has fixed that error, they will be informed about the next...
Copy-paste typo fix
@@ -633,7 +633,7 @@ int oc_obt_perform_cert_otm(oc_uuid_t *uuid, oc_obt_device_status_cb_t cb, void *data) { - OC_DBG("In oc_obt_perform_just_works_otm"); + OC_DBG("In oc_obt_perform_cert_otm"); oc_device_t *device = oc_obt_get_cached_device_handle(uuid); if (!device) {
SOVERSION bump to version 4.1.9
@@ -39,7 +39,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_ # with backward compatible change and micro version is connected with any internal change of the library. set(SYSREPO_MAJOR_SOVERSION 4) set(SYSREPO_MINOR_SOVERSION 1) -set(SYSREPO_MICRO_SOVERSION 8) +set(SYSREPO_MICRO_SO...
xfconf-plugin: Add limitation for memory leaks
- infos/provides = storage/xfconf - infos/recommends = - infos/placements = postgetstorage presetstorage -- infos/status = maintained libc configurable experimental unfinished concept limited +- infos/status = maintained libc configurable experimental unfinished concept limited memleak - infos/metadata = - infos/descri...
mpu6xxx: init all of them slowly
#include "drv_time.h" #include "project.h" +#define SPI_SPEED_INIT MHZ_TO_HZ(0.5) + #define PORT spi_port_defs[GYRO_SPI_PORT] static void mpu6xxx_reinit_slow() { @@ -23,23 +25,7 @@ static void mpu6xxx_reinit_slow() { spi_init.ClockPolarity = LL_SPI_POLARITY_HIGH; spi_init.ClockPhase = LL_SPI_PHASE_2EDGE; spi_init.NSS =...
json blob backend bugfix
:- %order %- pairs:enjs:format :~ pin+a+(turn pin.order.col |=(s=@tas [%s s])) - unpin+a+(turn pin.order.col |=(s=@tas [%s s])) + unpin+a+(turn unpin.order.col |=(s=@tas [%s s])) == ==
net/lwip: fix sem_tickwait error handleing sem_tickwait API was changed however lwIP didn't apply changed API.
@@ -463,7 +463,6 @@ u32_t sys_arch_sem_wait(sys_sem_t *sem, u32_t timeout) int remaining_time; if (timeout == 0) { - while (sem_wait(sem) != OK) { /* Handle the special case where the semaphore wait was * awakened by the receipt of a signal. @@ -483,10 +482,13 @@ u32_t sys_arch_sem_wait(sys_sem_t *sem, u32_t timeout) *...
vppinfra: Fix extendto_high aarch64 NEON api. This fixes the l2BD and ip4 test case failures. Fixes
@@ -145,7 +145,7 @@ u32x4_extend_to_u64x2 (u32x4 v) static_always_inline u64x2 u32x4_extend_to_u64x2_high (u32x4 v) { - return vmovl_high_u32 (vrev64q_u32 (v)); + return vmovl_high_u32 (v); } #define CLIB_HAVE_VEC128_UNALIGNED_LOAD_STORE
change cibuildwheel 2.2
@@ -38,7 +38,7 @@ jobs: - name: Build wheels for linux if: runner.os == 'Linux' - uses: pypa/cibuildwheel@v2.1.2 + uses: pypa/cibuildwheel@v2.2.2 env: CIBW_BUILD: cp36-* cp37-* cp38-* cp39-* cp310-* CIBW_BEFORE_BUILD: yum install -y libcurl-devel zlib-devel bzip2-devel xz-devel && pip install cython @@ -48,7 +48,7 @@ j...
flash_ec: Fix SERVO_TYPE test Without this, we see this line when running flash_ec. util/flash_ec: line 787: [: =~: binary operator expected These kind of tests require double brackets. BRANCH=none TEST=run util/flash_ec using servo_micro on staff.
@@ -784,7 +784,7 @@ function flash_stm32() { info "${MCU} UART pty : ${EC_UART}" claim_pty ${EC_UART} - if ! on_raiden && [ "${SERVO_TYPE}" =~ "servo" ] ; then + if ! on_raiden && [[ "${SERVO_TYPE}" =~ "servo" ]] ; then dut_control ${MCU}_uart_en:on fi dut_control ${MCU}_uart_parity:even
Fix security issue reported by someone. someone will get their name attributed for future issues if they bother following procedure.
@@ -6175,8 +6175,9 @@ static int try_read_command_binary(conn *c) { // want to refactor a ton of code either. Header is only ever used out // of c->binary_header, but the extlen stuff is used for the latter // bytes. Just wastes 24 bytes on the stack this way. - char extbuf[sizeof(c->binary_header) + BIN_MAX_EXTLEN]; -...
arch_alarm: don't init local variable for fpu test case fail D16 register will be cleared when compiling with gcc on some boards.
@@ -319,7 +319,7 @@ int weak_function up_alarm_tick_start(clock_t ticks) if (g_oneshot_lower != NULL) { - clock_t now = 0; + clock_t now; clock_t delta; ONESHOT_TICK_CURRENT(g_oneshot_lower, &now);
Fix dict field lookup in metadata.py
@@ -237,7 +237,7 @@ class Vendor(Resource): if "website" in self.data: params["website[0]"] = ":".join(["eq", self.data["website"]]) - if self.data["emails"]: + if "emails" in self.data: for i, email in enumerate(self.data["emails"]): params[f"email[{i}]"] = ":".join(["eq", email]) @@ -405,7 +405,7 @@ class Person(Reso...
boot partition should be +128M
@@ -4,7 +4,7 @@ lsblk printf "\nchoose device: " read DEVICE -printf "\033[0;31m o p n p 1 <ret> +100M t c n p 2 <ret> <ret> w \033[1;0m\n" +printf "\033[0;31m o p n p 1 <ret> +128M t c n p 2 <ret> <ret> w \033[1;0m\n" sudo fdisk /dev/$DEVICE echo "erstelle Filesystem boot"
fix for doxygen and lint.
@@ -1710,7 +1710,7 @@ http_header_done(sldns_buffer* buf) } /** return character string into buffer for header line, moves buffer - * past that line and puts zero terminator (into \r\n) */ + * past that line and puts zero terminator into linefeed-newline */ static char* http_header_line(sldns_buffer* buf) { @@ -1885,7 ...
feat(docs): Update power config docs
@@ -50,16 +50,8 @@ Applies to: `compatible = "zmk,ext-power-generic"` Driver for reading the voltage of a battery using an ADC connected to a voltage divider. -### Kconfig - -Definition file: [zmk/app/drivers/sensor/battery_voltage_divider/Kconfig](https://github.com/zmkfirmware/zmk/blob/main/app/drivers/sensor/battery...
Hide menu on splash/help for windows/linux
@@ -41,6 +41,7 @@ const createSplash = async () => { } }); + splashWindow.setMenu(null); splashWindow.loadURL(`file://${__dirname}/windows/splash.html`); splashWindow.on("closed", () => { @@ -128,6 +129,7 @@ const createHelp = async helpPage => { devTools: isDevMode } }); + helpWindow.setMenu(null); } else { helpWindow...
Make --dist imply -DDEBUG_PREFIX_MAP Make --dist imply -DDEBUG_PREFIX_MAP Remap build root paths too ([arc::pullid] 1124befa-4e5286b0-57840b32-37102277)
@@ -1366,6 +1366,7 @@ class GnuCompiler(Compiler): self.debug_info_flags.append('-ggnu-pubnames') if is_positive('DEBUG_PREFIX_MAP'): self.c_foptions.append('-fdebug-prefix-map=${ARCADIA_ROOT}/=') + self.c_foptions.append('-fdebug-prefix-map=${ARCADIA_BUILD_ROOT}/=') self.cross_suffix = '' if is_positive('FORCE_NO_PIC'...
parallel-libs/opencoarrays: remove static lib from package
@@ -64,6 +64,10 @@ make %{?_smp_mflags} cd build-opencoarrays make DESTDIR=$RPM_BUILD_ROOT install +# remove static lib +pushd %{buildroot}%{install_path}/lib64 +rm -rf *\.a + # OpenHPC module file %{__mkdir} -p %{buildroot}%{OHPC_MODULEDEPS}/%{compiler_family}-%{mpi_family}/%{pname} %{__cat} << EOF > %{buildroot}/%{OH...
Remove unnecessary test cases It is enough only one test case for a key type, algorithm pair when testing the implicit usage flags.
@@ -537,7 +537,7 @@ class StorageFormatV0(StorageFormat): """ keys = [] #type: List[StorageKey] kt = crypto_knowledge.KeyType(key_type, params) - for bits in kt.sizes_to_test(): + bits = kt.sizes_to_test()[0] implicit = StorageKey.IMPLICIT_USAGE_FLAGS[implyer_usage] usage_flags = 'PSA_KEY_USAGE_EXPORT' material_usage_f...
docs: update to use new repository location
@@ -11,13 +11,13 @@ package directly from the \OHPC{} build server. % CentOS \begin{lstlisting}[language=bash,keywords={},basicstyle=\fontencoding{T1}\fontsize{7.6}{10}\ttfamily, literate={VER}{\OHPCVerTree{}}1 {OSREPO}{\OSTree{}}1 {TAG}{\OSTag{}}1 {ARCH}{\arch{}}1 {-}{-}1] -[sms](*\#*) yum install http://build.openhpc...
[Tools] Add _REENT_SMALL definition when enable nano-newlib
@@ -140,6 +140,10 @@ def PrepareBuilding(env, root_directory, has_libcpu=False, remove_components = [ env['LIBLINKSUFFIX'] = '.lib' env['LIBDIRPREFIX'] = '--userlibpath ' + if rtconfig.PLATFORM == 'gcc': + if env['LINKFLAGS'].find('nano.specs'): + env.AppendUnique(CPPDEFINES = ['_REENT_SMALL']) + # patch for win32 spaw...
fix(misc): in lv_map() handle if maximum value less than minimum value
@@ -235,8 +235,11 @@ int64_t lv_pow(int64_t base, int8_t exp) */ int32_t lv_map(int32_t x, int32_t min_in, int32_t max_in, int32_t min_out, int32_t max_out) { - if(x >= max_in) return max_out; - if(x <= min_in) return min_out; + if(max_in >= min_in && x >= max_in) return max_out; + if(max_in >= min_in && x <= min_in) r...
optimize backward pass (now 3 blocks per SM) Note: mandatory check (NEED_CHECK) was skipped
@@ -445,6 +445,16 @@ __forceinline__ __device__ float4 Float4FromSharedMemory(const float* sharedMemo } +__forceinline__ __device__ float4 Float4FromSharedMemory(int maxDim, const float* sharedMemory, int i) { + float4 val; + val.x = sharedMemory[i]; + val.y = sharedMemory[i + maxDim]; + val.z = sharedMemory[i + maxDim...
Added the ability to parse additional bots. e.g., BacklinkCrawler (http://www.backlinktest.com/crawler.html) Scrapy/1.0.1 ( http://scrapy.org)
@@ -439,18 +439,18 @@ parse_crawler (char *str, char *match, char *type) { while (match != str) { match--; - if (*match == ' ' || *match == '+') { + if (*match == ' ' || *match == '+' || match == str) { found = 1; break; } } /* same addr */ - if (match == str) + if (!found && match == str) return NULL; /* account for t...
Update appveyor.yml to cmake
@@ -5,8 +5,9 @@ environment: CC: gcc - CYG_BASH: C:\cygwin\bin\bash CC: gcc - TARGET: 32bit - TARGET_VARS: 32bit-vars + CFLAGS: -m32 + CXXFLAGS: -m32 + LDFLAGS: -m32 clone_depth: 1 @@ -20,4 +21,4 @@ install: build_script: - 'echo building...' - - '%CYG_BASH% -lc "cd $APPVEYOR_BUILD_FOLDER; exec 0</dev/null; make LDFLAG...
pass in tmp_dir
@@ -68,6 +68,7 @@ sub add_readme_file { my $micro = shift; my $release = shift; my $repoFile = shift; + my $tmp_dir = shift; my $package_manager = ""; my $package_manager_dir = ""; @@ -217,7 +218,7 @@ foreach my $distro (@distros) { add_repo_file("$tmp_dir/OpenHPC.local.repo",$micro,$base_release,$release,$distro,$isSr...
Removed environment variables from dockerfile
@@ -9,43 +9,32 @@ MAINTAINER jacobgadikian@gmail.com # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863199 RUN apt-get update && \ apt-get upgrade -y && \ - mkdir -p /usr/share/man/man1 && \ apt-get install -y \ curl \ git \ - sudo \ - tar \ - apt-utils + sudo + +# Stopping docker keyboard-config from disrupting u...
lwip: Fix ICMP Ping on specific iface Fix broken parentheses in setsockopt call Merges
@@ -275,7 +275,7 @@ esp_err_t esp_ping_new_session(const esp_ping_config_t *config, const esp_ping_c ESP_LOGE(TAG, "fail to find interface name with netif index %d", config->interface); goto err; } - if(setsockopt(ep->sock, SOL_SOCKET, SO_BINDTODEVICE, &iface, sizeof(iface) !=0)) { + if(setsockopt(ep->sock, SOL_SOCKET,...
test_upgrade: pass PGPORT explicitly for local builds Concourse uses the default port, but for local builds we can't assume that.
@@ -42,6 +42,8 @@ load_old_db_data() { psql_opts= fi + psql_opts+=" ${PSQL_ADDOPTS}" + echo 'Loading test database...' scp "$dumpfile" ${MASTER_HOST}:/tmp/dump.sql.xz @@ -57,7 +59,7 @@ dump_cluster() { ssh -n ${MASTER_HOST} " source ${NEW_GPHOME}/greenplum_path.sh - pg_dumpall -f '$dumpfile' + pg_dumpall -f '$dumpfile'...
network: moved the assignment of u_conn->coro
@@ -401,7 +401,6 @@ static int net_connect_async(int fd, /* Register the connection socket into the main event loop */ MK_EVENT_ZERO(&u_conn->event); - u_conn->coro = async_ctx; ret = mk_event_add(u_conn->evl, fd, FLB_ENGINE_EV_THREAD, @@ -414,6 +413,8 @@ static int net_connect_async(int fd, return -1; } + u_conn->coro...
BugID:17922164: Fix the yloop header include error
* Copyright (C) 2015-2017 Alibaba Group Holding Limited */ -#include <k_api.h> +#include "aos/kernel.h" +#include "aos/yloop.h" + +#include "k_api.h" + #include "errno_mapping.h" #if (RHINO_CONFIG_WORKQUEUE>0)
tup: Allow overriding cc/cxx;
config = { + cc = false, + cxx = false, target = 'native', debug = true, optimize = false, @@ -49,6 +51,7 @@ config = { } -- config notes: +-- cc and cxx are the C/C++ compilers to use, or false to use the default ones -- target can be native or win32/macos/linux/android/wasm -- supercharge adds dangerous/aggressive op...
Reduce buffer sizes to expected size
@@ -789,16 +789,19 @@ exit: void mbedtls_x509_dn_get_next( char * name_str, int next_merged, char * expected_oids, int exp_count, char * exp_dn_gets ) { int ret = 0, i; - size_t len = 0; + size_t len = 0, out_size; mbedtls_asn1_named_data *names = NULL; mbedtls_x509_name parsed, *parsed_cur, *parsed_prv; - unsigned cha...
Don't use __name for event labels
@@ -309,13 +309,11 @@ const ScriptEditorEvent = ({ const disabledElse = scriptEvent.args && scriptEvent.args.__disableElse; const localisedCommand = l10n(command); - const defaultCommandName = + const eventName = localisedCommand !== command ? localisedCommand : (events[command] && events[command]?.name) || command; - ...
stm32f4: Cleanup reset reg constants This brings no function change. BRANCH=hatch TEST=make buildall -j
/* Reset causes definitions */ /* Reset causes in RCC CSR register */ #define STM32_RCC_RESET_CAUSE STM32_RCC_CSR -#define RESET_CAUSE_WDG 0x60000000 -#define RESET_CAUSE_SFT 0x10000000 -#define RESET_CAUSE_POR 0x08000000 -#define RESET_CAUSE_PIN 0x04000000 -#define RESET_CAUSE_OTHER 0xfe000000 -#define RESET_CAUSE_RMV...
Fixed invalid free() on restore_data introduced in 319b65.
@@ -1995,7 +1995,6 @@ restore_data (void) { restore_metric_type (module, module_metrics[i]); } } - free (persisted_dates); } static void @@ -2060,7 +2059,6 @@ persist_global (void) { persist_global_iglp (last_parse, path); free (path); } - free (persisted_dates); } static void @@ -3657,4 +3655,5 @@ free_storage (void) ...
viosock: BSOD on accept fixed
@@ -512,7 +512,7 @@ VIOSockStateSet( } else if (NewState == VIOSOCK_STATE_CONNECTED) { - ASSERT(PrevState == VIOSOCK_STATE_CONNECTING); + ASSERT(PrevState == VIOSOCK_STATE_CONNECTING || PrevState == VIOSOCK_STATE_CLOSE); if (!NT_SUCCESS(VIOSockConnectedAdd(pSocket))) { TraceEvents(TRACE_LEVEL_ERROR, DBG_SOCKET, "VIOSoc...
avoid excess line feeds in CLI
@@ -196,7 +196,7 @@ error: /* handle errors*/ (int)arg.len, arg.data, arg.len ? "with value" : "", value ? (value[0] ? value : "(empty)") : "(null)"); print_help: - fprintf(stderr, "\n%s\n\n", + fprintf(stderr, "\n%s\n", parser->description ? parser->description : "This application accepts any of the following " "possi...
[mod_webdav] platform portability fixes
@@ -2012,8 +2012,11 @@ webdav_prop_select_propnames (const plugin_config * const pconf, } -#if (defined(__APPLE__) && defined(__MACH__)) || defined(__FreeBSD__) -#include <copyfile.h> /* fcopyfile() *//* FreeBSD and OS X 10.5+ */ +#if defined(__APPLE__) && defined(__MACH__) +#include <copyfile.h> /* fcopyfile() *//* OS...
remove TStringBuf::ToString()
@@ -411,10 +411,6 @@ public: // string subsequences return TdSelf(*this).RSeek(len); } - TBasicString<TCharType> ToString() const { - return {Start, Length}; - } - private: inline size_t ChopImpl(size_t shift) noexcept { if (shift > length())
Add temperature OD
#include "od_force.h" #include "od_electric.h" #include "od_ratio.h" +#include "od_temperature.h" #endif /* OD_LUOS_OD_H_ */
fix -Wunused-function for mi_strn-cmp; originally by in PR but rebased to dev branch
@@ -494,13 +494,6 @@ static bool mi_getenv(const char* name, char* result, size_t result_size) { return false; } #else -static inline int mi_strnicmp(const char* s, const char* t, size_t n) { - if (n==0) return 0; - for (; *s != 0 && *t != 0 && n > 0; s++, t++, n--) { - if (toupper(*s) != toupper(*t)) break; - } - retu...