message
stringlengths
6
474
diff
stringlengths
8
5.22k
Make pg_rewind test case more stable. If replication is exceptionally slow for some reason, pg_rewind might run before the test row has been replicated. Add an explicit wait for it. Reported-by: Andres Freund Discussion:
@@ -89,6 +89,10 @@ $node_c->safe_psql('postgres', "checkpoint"); $node_a->safe_psql('postgres', "INSERT INTO tbl1 VALUES ('in A, after C was promoted')"); +# make sure it's replicated to B before we continue +$lsn = $node_a->lsn('insert'); +$node_a->wait_for_catchup('node_b', 'replay', $lsn); + # Also insert a new row ...
Added polyfill.js in index.jsp
<script type ="text/javascript" src ="js/main.js"></script> <script type ="text/javascript" src ="js/searchBar.js"></script> + <script type ="text/javascript" src ="js/polyfill.js"></script> <jsp:include page="header-index.jsp" />
update provisioning and removed-components for migration-guides
@@ -14,7 +14,8 @@ Wi-Fi Provisioning ------------------ .. list:: - * The ``pop`` field in the :cpp:func:`wifi_prov_mgr_start_provisioning` API is now deprecated. For backward compatibility, ``pop`` can be still passed as a string for security1. However for Security2 the ``wifi_prov_sec_params`` argument needs to be pa...
acl-plugin: multicore: send the interrupts to thread0 too The thread0 in some configurations can handle the traffic. Some of the previous fixes accomodated for that, but the interrupt sending for connection clearing was not adapted to that, resulting in a deadlock during clearing of all connections...
@@ -1516,7 +1516,7 @@ send_interrupts_to_workers (vlib_main_t * vm, acl_main_t *am) int i; /* Can't use vec_len(am->per_worker_data) since the threads might not have come up yet; */ int n_threads = vec_len(vlib_mains); - for (i = n_threads > 1 ? 1 : 0; i < n_threads; i++) { + for (i = 0; i < n_threads; i++) { send_one_...
graph-store: make validation work properly with type change
%+ roll (tap:orm graph) |= [[=atom =node:store] out=?] ^- ? - ?& ?=(^ (vale:dais [atom post.node])) + ?& ?| ?=(%| -.post.node) + ?=(^ (vale:dais [atom p.post.node])) + == + :: ?- -.children.node %empty %.y %graph ^$(graph p.children.node)
docs: explains why we have this continue
@@ -40,7 +40,9 @@ json_escape_string (size_t * output_len_p, char * input, size_t input_len) if (escaped) { int i; for (i = 0; escaped[i]; i++) { - if (NULL == output_start) continue; + if (NULL == output_start) + // count how many extra bytes are needed + continue; *output = escaped[i]; output ++;
vfio-plugin: close vfio pair on errors
@@ -418,7 +418,8 @@ int walk(pci_device_t *p) // look for legacy FME guids in BAR 0 if (opae_vfio_region_get(v, 0, (uint8_t**)&mmio, &size)) { OPAE_ERR("error getting BAR 0"); - return 1; + res = 2; + goto close; } // get the GUID at offset 0x8 @@ -426,7 +427,7 @@ int walk(pci_device_t *p) res = get_guid(((uint64_t*)mm...
Change ECHO output syntax
@@ -1187,11 +1187,7 @@ espi_process_sub_cmd(esp_msg_t* msg, uint8_t is_ok, uint8_t is_error, uint8_t is esp_cmd_t n_cmd = ESP_CMD_IDLE; switch (msg->cmd) { case ESP_CMD_RESET: { -#if ESP_CFG_AT_ECHO - n_cmd = ESP_CMD_ATE1; /* Enable ECHO mode */ -#else - n_cmd = ESP_CMD_ATE0; /* Disable ECHO mode */ -#endif /* !ESP_CFG...
bsp/hifive1: Add uart0 device
#include <os/os_dev.h> #include <bsp/bsp.h> #include <env/freedom-e300-hifive1/platform.h> + +#if MYNEWT_VAL(UART_0) +static struct uart_dev os_bsp_uart0; +static const struct fe310_uart_cfg os_bsp_uart0_cfg = { + .suc_pin_tx = HIFIVE_UART0_TX, + .suc_pin_rx = HIFIVE_UART0_RX, +}; +#endif + /* * What memory to include ...
Change ordering of members in Overlay
@@ -42,6 +42,8 @@ private: void SetActiveWidget(WidgetID aNewActive); + VKBindInfo m_VKBIOverlay{ { "cet.overlay_key", "Overlay Key", [this](){ Toggle(); } }, 0, 0, false }; + Console m_console; Bindings m_bindings; Settings m_settings; @@ -56,7 +58,6 @@ private: std::atomic_bool m_enabled{ false }; std::atomic_bool m_...
py/modbuiltins: For builtin_chr, use uint8_t instead of char for array. The array should be of type unsigned byte because that is the type of the values being stored. And changing to uint8_t helps to prevent warnings from some static analysers.
@@ -137,7 +137,7 @@ MP_DEFINE_CONST_FUN_OBJ_1(mp_builtin_callable_obj, mp_builtin_callable); STATIC mp_obj_t mp_builtin_chr(mp_obj_t o_in) { #if MICROPY_PY_BUILTINS_STR_UNICODE mp_uint_t c = mp_obj_get_int(o_in); - char str[4]; + uint8_t str[4]; int len = 0; if (c < 0x80) { *str = c; len = 1; @@ -159,12 +159,12 @@ STAT...
Remove useless call to super in PrevisualizeResult.widget
@@ -20,7 +20,6 @@ AjaxFranceLabs.PrevisualizeResultWidget = AjaxFranceLabs.ResultWidget.extend({ elm.find('.doc_list .bar-loader').remove(); var querySolr = getParamValue('query', decodeURIComponent(window.location.search)); - this._super(); var self = this; var docs = self.manager.response.response.docs; var preview_c...
pack: do not pack JSON string as binary
@@ -113,8 +113,8 @@ static char *tokens_to_msgpack(char *js, msgpack_pack_array(&pck, t->size); break; case JSMN_STRING: - msgpack_pack_bin(&pck, flen); - msgpack_pack_bin_body(&pck, js + t->start, flen); + msgpack_pack_str(&pck, flen); + msgpack_pack_str_body(&pck, js + t->start, flen); break; case JSMN_PRIMITIVE: p =...
debian: try to fix build on stretch
# Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 +# see FEATURE AREAS in dpkg-buildflags(1) +export DEB_BUILD_MAINT_OPTIONS = reproducible=-timeless +export DEB_BUILD_OPTIONS = noopt + # This has to be exported to make some magic below work. export DH_OPTIONS
OpenCoreKernel: Fix lapic patch logic closes acidanthera/bugtracker#370
@@ -310,10 +310,6 @@ OcKernelApplyPatches ( if (Config->Kernel.Quirks.CustomSmbiosGuid) { PatchCustomSmbiosGuid (Context); } - - if (Config->Kernel.Quirks.LapicKernelPanic) { - PatchLapicKernelPanic (&Patcher); - } } else { if (Config->Kernel.Quirks.AppleXcpmCfgLock) { PatchAppleXcpmCfgLock (&Patcher); @@ -338,6 +334,1...
Notify compiler that cryptoErrorCode() does not return.
@@ -36,7 +36,7 @@ void cryptoInit(void); bool cryptoIsInit(void); void cryptoError(bool error, const char *description); -void cryptoErrorCode(unsigned long code, const char *description); +void cryptoErrorCode(unsigned long code, const char *description) __attribute__((__noreturn__)); CipherType cipherType(const Strin...
iirdes/autotest: testing bessel filter design
@@ -384,3 +384,38 @@ void autotest_iirdes_ellip_bandstop() { iirfilt_crcf_destroy(q); } +// check Bessel filter design +// TODO: check group delay +void autotest_iirdes_bessel() { + unsigned int n = 9; // filter order + float fc = 0.1; // filter cut-off + unsigned int nfft = 960; // number of points to evaluate + + // ...
TLS: Server Name Indication (SNI) support
@@ -395,6 +395,8 @@ neat_security_install(neat_ctx *ctx, neat_flow *flow) // authenticate the server.. todo an option to skip X509_VERIFY_PARAM *param = SSL_get0_param(private->ssl); X509_VERIFY_PARAM_set1_host(param, flow->name, 0); + // support Server Name Indication (SNI) + SSL_set_tlsext_host_name(private->ssl, flo...
cpu_start: fix warnings with CONFIG_PM_DFS_INIT_AUTO option Closes
@@ -393,11 +393,10 @@ void start_cpu0_default(void) #ifdef CONFIG_PM_ENABLE esp_pm_impl_init(); #ifdef CONFIG_PM_DFS_INIT_AUTO - rtc_cpu_freq_t max_freq; - rtc_clk_cpu_freq_from_mhz(CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ, &max_freq); + int xtal_freq = (int) rtc_clk_xtal_freq_get(); esp_pm_config_esp32_t cfg = { - .max_cpu_f...
crypto: fix fcrypt benchmark
@@ -41,7 +41,7 @@ kdb::KeySet toWrite; template <enum PluginVariant VARIANT> kdb::Key getMountpointForIteration (int iteration) { - return kdb::Key ("user/iterate/" + plugin_variant_names[VARIANT] + std::to_string (iteration), KEY_END); + return kdb::Key ("user/benchmark_" + plugin_variant_names[VARIANT] + std::to_stri...
added new tools
@@ -4,10 +4,11 @@ hcxtools Small set of tools to capture and convert packets from wlan devices for the use with latest hashcat. The tools are 100% compatible to hashcat and recommended by hashcat (that means hcxtools 3.6.0 working with -hashcat 3.6.0). After capturing, upload the "uncleaned" cap -here (http://wpa-sec.s...
fixed sprite copying when palette editing is enabled
@@ -1497,12 +1497,6 @@ static void cutToClipboard(Sprite* sprite) static void copyFromClipboard(Sprite* sprite) { - if(sprite->palette.edit) - { - pasteColor(sprite); - return; - } - s32 size = sprite->size * sprite->size * TIC_PALETTE_BPP / BITS_IN_BYTE; DEFER(u8* buffer = malloc(size), free(buffer))
DOC: added compilation FAQ page.
@@ -56,6 +56,8 @@ The use of ZooKeeper based clustering is optional. To enable it, use `--enable-zk-integration` along with `--with-zookeeper` when running configure. Make sure to use the ZooKeeper library with Arcus modifications. +To test arcus-memcached, you can execute `make test`. If any problem exists in compilat...
apps/examples/nxterm: Remove duplicated fflush() call. fflush(stdout) was called twice to back-to-back.
/**************************************************************************** * examples/nxterm/nxterm_main.c * - * Copyright (C) 2012, 2016-2017, 2019 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt <gnutt@nuttx.org> + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor lic...
zephyr/shim/src/panic.c: Format with clang-format BRANCH=none TEST=none
@@ -99,8 +99,9 @@ static void copy_esf_to_panic_data(const z_arch_esf_t *esf, { pdata->arch = PANIC_ARCH; pdata->struct_version = 2; - pdata->flags = (PANIC_ARCH == PANIC_ARCH_CORTEX_M) - ? PANIC_DATA_FLAG_FRAME_VALID : 0; + pdata->flags = (PANIC_ARCH == PANIC_ARCH_CORTEX_M) ? + PANIC_DATA_FLAG_FRAME_VALID : + 0; pdata...
dyna_tools: Add a _ prefix for functions. Otherwise, loaders will use lily_$package_$func, which is wrong. This puts in an extra underscore so that loaders and the interpreter both agree on how to find a function.
@@ -450,6 +450,9 @@ def run_loader_entry(e, i, accum, package_name): name += "_new" elif e.e_type in ["class", "enum", "native"]: what = "" + elif e.e_type == "define": + # Add a _ prefix because there's no class name. + name = "_" + name elif e.e_type == "var": prefix = "" what = "load_var_"
ebuild: Add MAKE_PARALLEL_FLAGS to VPP build Align with other packages. Type: make
@@ -47,7 +47,7 @@ vpp_configure = \ cd $(PACKAGE_BUILD_DIR) && \ $(CMAKE) -G Ninja $(vpp_cmake_args) $(call find_source_fn,$(PACKAGE_SOURCE)) #vpp_make_args = --no-print-directory -vpp_build = $(CMAKE) --build $(PACKAGE_BUILD_DIR) +vpp_build = $(CMAKE) --build $(PACKAGE_BUILD_DIR) -- $(MAKE_PARALLEL_FLAGS) vpp_install ...
cmp_mock_srv.c: Fix polling mode such that it can be done multiple times
@@ -26,6 +26,7 @@ typedef struct OSSL_CMP_MSG *certReq; /* ir/cr/p10cr/kur remembered while polling */ int certReqId; /* id of last ir/cr/kur, used for polling */ int pollCount; /* number of polls before actual cert response */ + int curr_pollCount; /* number of polls so far for current request */ int checkAfterTime; /...
Added queries for generic address space and work-group collective functions support
@@ -152,6 +152,13 @@ POname(clGetDeviceInfo)(cl_device_id device, case CL_DEVICE_MAX_SAMPLERS: POCL_RETURN_DEVICE_INFO_WITH_IMG_CHECK (cl_uint, device->max_samplers); + case CL_DEVICE_IMAGE_PITCH_ALIGNMENT: + /* Creating a 2D image from a buffer is not supported */ + POCL_RETURN_GETINFO(cl_uint, 0); + case CL_DEVICE_IM...
bq25710: add IADP_GAIN configuration BRANCH=none TEST=make -j BOARD=gimble
#define BQ25710_CHARGE_OPTION_0_LOW_POWER_MODE BIT(15) #define BQ25710_CHARGE_OPTION_0_IDPM_AUTO_DIS BIT(12) #define BQ25710_CHARGE_OPTION_0_EN_LEARN BIT(5) +#define BQ25710_CHARGE_OPTION_0_IADP_GAIN BIT(4) #define BQ25710_CHARGE_OPTION_0_EN_IDPM BIT(1) #define BQ25710_CHARGE_OPTION_0_CHRG_INHIBIT BIT(0)
[numerics] remove problem info computation by default in fc3d_admm
@@ -1002,10 +1002,13 @@ void fc3d_admm(FrictionContactProblem* restrict problem, double* restrict reacti double norm_q = cblas_dnrm2(m , problem->q , 1); + if (options->iparam[SICONOS_FRICTION_3D_ADMM_IPARAM_GET_PROBLEM_INFO] == + SICONOS_FRICTION_3D_ADMM_GET_PROBLEM_INFO_YES) + { numerics_printf_verbose(1,"---- FC3D -...
Increase Callback Error Time
@@ -240,7 +240,7 @@ QUIC_STATIC_ASSERT(IS_POWER_OF_TWO(QUIC_MAX_RANGE_DECODE_ACKS), L"Must be power // long running app callbacks. // #define QUIC_MAX_CALLBACK_TIME_WARNING MS_TO_US(10) -#define QUIC_MAX_CALLBACK_TIME_ERROR MS_TO_US(200) +#define QUIC_MAX_CALLBACK_TIME_ERROR MS_TO_US(1000) // // The number of milliseco...
Add stack overflow to the readme
@@ -28,5 +28,6 @@ Find out more: Engage with the community: +* Contiki-NG tag on Stack Overflow: https://stackoverflow.com/questions/tagged/contiki-ng * Gitter: https://gitter.im/contiki-ng * Twitter: https://twitter.com/contiki_ng
Implement PEEK_USER and POKE_USER These ptrace calls are used by lldb to fetch GPRs.
@@ -256,6 +256,61 @@ static int64_t sgx_single_step_handler(pid_t pid, void* addr, void* data) return g_system_ptrace(PTRACE_SINGLESTEP, pid, addr, data); } +static int64_t sgx_peek_user_handler(pid_t pid, void* addr, void* data) +{ + // Get the gpr from host thread. + struct user_regs_struct regs; + if (g_system_ptrac...
build: wamrc: Search homebrewed LLVM automatically
@@ -77,6 +77,20 @@ if (NOT MSVC) endif () endif () +# Searching homebrewed LLVM automatically on macOS. +if(FLB_SYSTEM_MACOS) + execute_process( + COMMAND brew --prefix llvm + RESULT_VARIABLE HOMEBREW_LLVM + OUTPUT_VARIABLE HOMEBREW_LLVM_PREFIX + OUTPUT_STRIP_TRAILING_WHITESPACE + ) + if (HOMEBREW_LLVM EQUAL 0 AND EXIS...
fix LNK2019 unresolved external symbol qInitResources_xxxx
@@ -91,7 +91,7 @@ rule("qt.qrc") end -- compile qrc - os.vrunv(rcc, {"-name", "qml", sourcefile_qrc, "-o", sourcefile_cpp}) + os.vrunv(rcc, {"-name", path.basename(sourcefile_qrc), sourcefile_qrc, "-o", sourcefile_cpp}) -- trace if option.get("verbose") then
rust/api/ethereum/pubrequest: test confirm title
@@ -237,6 +237,7 @@ mod tests { })), keystore_secp256k1_pubkey_uncompressed: Some(Box::new(|_| Ok(PUBKEY))), ui_confirm_create: Some(Box::new(|params| { + assert_eq!(params.title, "Ethereum"); assert_eq!(params.body, "0xF4C21710Ef8b5a5Ec4bd3780A687FE083446e67B"); true })), @@ -350,6 +351,7 @@ mod tests { })) ); + const...
Set safe defaults for scan config
@@ -1158,8 +1158,9 @@ static int wifi_station_listap( lua_State* L ) { return luaL_error( L, "Can't list ap in SOFTAP mode" ); } - struct scan_config scan_cfg; - memset(&scan_cfg, 0, sizeof(scan_cfg)); + // set safe defaults for scan time, all other members are initialized with 0 + // source: https://github.com/espress...
chip/npcx/sha256_chip.c: Format with clang-format BRANCH=none TEST=none
@@ -57,7 +57,8 @@ struct ncl_sha { enum ncl_status (*finish)(void *ctx, uint8_t *hashDigest); /* Perform a complete SHA calculation */ enum ncl_status (*calc)(void *ctx, enum ncl_sha_type type, - const uint8_t *data, uint32_t Len, uint8_t *hashDigest); + const uint8_t *data, uint32_t Len, + uint8_t *hashDigest); /* Pow...
speed.c: simplify aggregation of ecdsa --multi results CLA: trivial
@@ -2519,7 +2519,7 @@ int speed_main(int argc, char **argv) mr ? "+R5:%ld:%d:%.2f\n" : "%ld %d bit ECDSA signs in %.2fs \n", count, test_curves_bits[testnum], d); - ecdsa_results[testnum][0] = d / (double)count; + ecdsa_results[testnum][0] = (double)count / d; rsa_count = count; } @@ -2547,7 +2547,7 @@ int speed_main(i...
Allow Lua computations to fail The Lua type contains now contains an additional `ExceptT` wrapper which allows us to fail a lua computation.
@@ -64,6 +64,7 @@ module Foreign.Lua.Types.Core ( ) where import Control.Monad.Reader (ReaderT (..), MonadReader, MonadIO, ask, liftIO) +import Control.Monad.Except (ExceptT (..), runExceptT) import Data.Int import Foreign.C import Foreign.Ptr @@ -74,7 +75,7 @@ import Foreign.Ptr newtype LuaState = LuaState (Ptr ()) --...
zephyr/shim/src/led_driver/led_pwm.c: Format with clang-format BRANCH=none TEST=none
@@ -34,31 +34,27 @@ const uint32_t period_ns = { \ .pwm = DEVICE_DT_GET( \ DT_PWMS_CTLR(DT_PHANDLE_BY_IDX(node_id, prop, i))), \ - .channel = DT_PWMS_CHANNEL( \ - DT_PHANDLE_BY_IDX(node_id, prop, i)), \ + .channel = \ + DT_PWMS_CHANNEL(DT_PHANDLE_BY_IDX(node_id, prop, i)), \ .flags = DT_PWMS_FLAGS(DT_PHANDLE_BY_IDX(nod...
types plugins FEATURE print non-matching pattern
@@ -351,6 +351,7 @@ ly_type_validate_patterns(struct lysc_pattern **patterns, const char *str, size_ LY_CHECK_ARG_RET(NULL, str, err, LY_EINVAL); LY_ARRAY_FOR(patterns, u) { + /* match_data needs to be allocated each time because of possible multi-threaded evaluation */ match_data = pcre2_match_data_create_from_pattern...
Remove unw_handle_signal_frame from header.
@@ -240,7 +240,6 @@ unw_save_loc_t; #define unw_set_fpreg UNW_OBJ(set_fpreg) #define unw_get_save_loc UNW_OBJ(get_save_loc) #define unw_is_signal_frame UNW_OBJ(is_signal_frame) -#define unw_handle_signal_frame UNW_OBJ(handle_signal_frame) #define unw_get_proc_name UNW_OBJ(get_proc_name) #define unw_set_caching_policy U...
Prepare client extensions at last moment
@@ -1240,8 +1240,6 @@ int picoquic_tlscontext_create(picoquic_quic_t* quic, picoquic_cnx_t* cnx, uint6 ctx->handshake_properties.client.negotiated_protocols.list = &ctx->alpn_vec; } - picoquic_tls_set_extensions(cnx, ctx); - if (cnx->sni != NULL && cnx->alpn != NULL && (cnx->quic->flags&picoquic_context_client_zero_sha...
Add a test for the problem fixed by the previous commit Make sure the server can write normal data after earlier writing early data.
@@ -1544,7 +1544,8 @@ static int test_set_sigalgs(int idx) #define MSG3 "This" #define MSG4 "is" #define MSG5 "a" -#define MSG6 "test." +#define MSG6 "test" +#define MSG7 "message." /* * Helper method to setup objects for early data test. Caller frees objects on @@ -1775,6 +1776,19 @@ static int test_early_data_read_wr...
Fix Array Unnecessary memory allocation
@@ -773,7 +773,7 @@ namespace Miningcore } .Concat(clusterConfig.CoinTemplates != null ? clusterConfig.CoinTemplates.Where(x => x != defaultTemplates) : - new string[0]) + Array.Empty<string>()) .ToArray(); return CoinTemplateLoader.Load(container, clusterConfig.CoinTemplates);
BugID:24039335:Move not exposed uMesh APIs to internal API header file
@@ -86,7 +86,7 @@ static void netmgr_connect_fail_event(hal_wifi_module_t *m, int err, void *arg) #ifdef CONFIG_AOS_MESH static void mesh_delayed_action(void *arg) { - umesh_set_mode((node_mode_t)arg); + umesh_set_mode((uint8_t)arg); umesh_stop(); umesh_start(NULL); }
Install `ZydisExportConfig.h`
@@ -139,6 +139,9 @@ install(TARGETS "Zydis" ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) +install(FILES + "${PROJECT_BINARY_DIR}/ZydisExportConfig.h" + DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}") install(DIRECTORY "include/" DESTINAT...
Fix warning in lv_table.c
@@ -495,6 +495,7 @@ static bool lv_table_design(lv_obj_t * table, const lv_area_t * mask, lv_design_ format.format_byte = ext->cell_data[cell][0]; switch(format.align) { + default: case LV_LABEL_ALIGN_LEFT: txt_flags = LV_TXT_FLAG_NONE; break;
Disallow ASN.1 enumerated types to be treated as strings. They are actually integers. Problem reported by: Scott McPeak
@@ -66,7 +66,7 @@ static const unsigned long tag2bit[32] = { /* tags 4- 7 */ B_ASN1_OCTET_STRING, 0, 0, B_ASN1_UNKNOWN, /* tags 8-11 */ - B_ASN1_UNKNOWN, B_ASN1_UNKNOWN, B_ASN1_UNKNOWN, B_ASN1_UNKNOWN, + B_ASN1_UNKNOWN, B_ASN1_UNKNOWN, 0, B_ASN1_UNKNOWN, /* tags 12-15 */ B_ASN1_UTF8STRING, B_ASN1_UNKNOWN, B_ASN1_UNKNOW...
in_tail: fix inode overflow in 32-bit OS for DB statement SQL_GET_FILE
@@ -108,7 +108,7 @@ int flb_tail_db_file_set(struct flb_tail_file *file, /* Check if the file exists */ snprintf(query, sizeof(query) - 1, SQL_GET_FILE, - file->name, file->inode); + file->name, (uint64_t) file->inode); memset(&qs, '\0', sizeof(qs)); ret = flb_sqldb_query(ctx->db,
dev-tools/hwloc: license distributed with hwloc in COPYING; remove extra duplicate ref to LICENSE
@@ -20,8 +20,6 @@ License: BSD-3-Clause Group: %{PROJ_NAME}/dev-tools Url: http://www.open-mpi.org/projects/hwloc/ Source0: https://download.open-mpi.org/release/hwloc/v2.0/%{pname}-%{version}.tar.bz2 -Source2: LICENSE - BuildRequires: autoconf BuildRequires: automake
[python] support all types of PY_MAIN in :repl entry point Behaviour is synced with importer.
@@ -6,7 +6,15 @@ def repl(): py_main = __res.find('PY_MAIN') if py_main: - mod_name, func_name = py_main.split(':', 1) + py_main_split = py_main.split(':', 1) + if len(py_main_split) == 2: + mod_name, func_name = py_main_split + else: + mod_name, func_name = py_main_split[0], 'main' + + if not mod_name: + mod_name = 'l...
powerlog: Don't hijack logger when import as module BRANCH=master TEST=No log spam when import as module from autotest Commit-Ready: ChromeOS CL Exonerator Bot
@@ -848,12 +848,14 @@ def main(argv=None): args = parser.parse_args(argv) - root_logger = logging.getLogger() + root_logger = logging.getLogger(__name__) if args.verbose: root_logger.setLevel(logging.DEBUG) else: root_logger.setLevel(logging.INFO) - # if powerlog is used through main log to sys.stdout + + # if powerlog...
Update CHANGES.md Add 'Issue' word to keep the style
@@ -12,7 +12,7 @@ CUPS v2.4-b1 (Pending) - Added several features and improvements to `ipptool` (Issue #153) - The `ipptool` command now correctly reports an error when a test file cannot be found. -- CUPS library now uses thread safe `getpwnam_r` and `getpwuid_r` functions (#274) +- CUPS library now uses thread safe `...
[CI] fix yml [CI] new attempt
@@ -10,32 +10,54 @@ before_install: matrix: include: - - env: - - TASK=siconos_default:docker=false:distrib=ubuntu,14.04:targets=all, + + - env: TYPE=travis os: linux addons: apt: sources: - ubuntu-toolchain-r-test + - george-edison55-precise-backports # cmake 3.2.3 / doxygen 1.8.3 + packages: + - blas + - lapack + - c...
options/ansi: return nullptr for bad align in alloc_aligned
@@ -185,7 +185,11 @@ void srand(unsigned int s) { void *aligned_alloc(size_t alignment, size_t size) { void *ptr; - // posix_memalign requires that the alignment is a multiple of sizeof(void *). + // alignment must be a power of two, and size % alignment must be 0 + if (alignment & (alignment - 1) || size & (alignment ...
vm/map: Fix syspage progs being executed in place This causes original elf file residint in the memory to be modified by it's execution. Regresion: forking process with mapped physical memory will cause bad behaviour - pages with physical memory will be copied insted of being shared. JIRA:
@@ -622,7 +622,7 @@ static int _map_force(vm_map_t *map, map_entry_t *e, void *paddr, int prot) if (e->amap == NULL) p = vm_objectPage(map, NULL, e->object, paddr, (e->offs < 0) ? e->offs : e->offs + offs); - else if (e->object != (void *)-1) + else /* if (e->object != (void *)-1) FIXME disabled until memory objects ar...
Fix static analyzer warning in checkSensorButtonEvent() In theory item pointer should never be null, the explicit check prevents false positive warnings for clang scan-build.
@@ -4252,7 +4252,6 @@ void DeRestPluginPrivate::checkSensorButtonEvent(Sensor *sensor, const deCONZ::A if (ind.dstAddressMode() == deCONZ::ApsGroupAddress && ind.dstAddress().group() != 0) { - QStringList gids; ResourceItem *item = sensor->addItem(DataTypeString, RConfigGroup); quint16 groupId = ind.dstAddress().group(...
Updated wording of ulTaskNotifyTakeIndexed fix
@@ -3,8 +3,9 @@ Documentation and download available at https://www.FreeRTOS.org/ Changes between FreeRTOS V10.4.0 and FreeRTOS V10.4.1 released September 17 2020 See https://www.FreeRTOS.org/FreeRTOS-V10.4.x.html - + An incorrectly named parameter in the macro ulTaskNotifyTakeIndexed that - caused a compilation error ...
util win
@@ -91,7 +91,7 @@ namespace NFsPrivate { if (linkDir) { TString fullTarget(tName); - resolvepath(fullTarget, linkDir.ToString()); + resolvepath(fullTarget, TString{linkDir}); TUtf16String fullTargetW; LPCWSTR ptrFullTarget = UTF8ToWCHAR(fullTarget, fullTargetW); attr = ::GetFileAttributesW(ptrFullTarget);
OpenLinuxBoot: Fix null deref when autodetect with no user arguments
@@ -368,6 +368,7 @@ AutodetectBootOptions ( EFI_STATUS Status; UINTN Index; UINTN InsertIndex; + UINTN OptionCount; OC_PARSED_VAR *Option; EFI_GUID Guid; CHAR8 *AsciiStrValue; @@ -375,6 +376,11 @@ AutodetectBootOptions ( BOOLEAN FoundOptions; BOOLEAN PlusOpts; + OptionCount = 0; + if (gParsedLoadOptions != NULL) { + Op...
test: add ethereum test case test_004ParametersInit_0008TxInitFailureRecipientErrorHexFormat
@@ -256,6 +256,19 @@ START_TEST(test_004ParametersInit_0007TxInitSuccessGasLimitHexNullOx) } END_TEST +START_TEST(test_004ParametersInit_0008TxInitFailureRecipientErrorHexFormat) +{ + BSINT32 rtnVal; + BoatEthTx tx_ptr; + rtnVal = ethereumWalletPrepare(); + ck_assert_int_eq(rtnVal, BOAT_SUCCESS); + + rtnVal = BoatEthTx...
protect against negative sized tiles
@@ -377,7 +377,7 @@ readTileData (InputStreamMutex *streamData, if (levelY != ly) throw IEX_NAMESPACE::InputExc ("Unexpected tile y level number coordinate."); - if (dataSize > (int) ifd->tileBufferSize) + if (dataSize < 0 || dataSize > static_cast<int>(ifd->tileBufferSize) ) throw IEX_NAMESPACE::InputExc ("Unexpected ...
Fix buffer overflow when file ends with \
@@ -145,7 +145,7 @@ YY_BUFFER_STATE yy_create_buffer(FILE *f) size = ftell(f); fseek(f, 0, SEEK_SET); - pBuffer->pBufferRealStart = malloc(size + 2 + SAFETYMARGIN); + pBuffer->pBufferRealStart = malloc(size + 3 + SAFETYMARGIN); if (pBuffer->pBufferRealStart == NULL) fatalerror("%s: Out of memory for buffer!", __func__)...
Add workaround for find nodejs headers.
@@ -352,6 +352,30 @@ if(NOT NODEJS_LIBRARY) endif() if(NOT NODEJS_INCLUDE_DIR) + # TODO: Headers are not properly installed, instead of placing all of them in the same folder + # they are placed in different folders after install (deps/{v8,uv}), this workaround will solve + # the include dependency problem, but this ne...
Remove ocf_cleaning_init_cache_block() from metadata rebuild Cleaning policy initializaton initializes metadata for all cache lines anyway, so this step is not needed.
@@ -494,8 +494,6 @@ static void ocf_mngt_cline_reset_metadata(ocf_cache_t cache, ocf_metadata_set_partition_id(cache, cline, PARTITION_FREELIST); ocf_lru_add_free(cache, cline); - - ocf_cleaning_init_cache_block(cache, cline); } static void ocf_mngt_cline_rebuild_metadata(ocf_cache_t cache,
Add max scale support for CPU History column
@@ -3735,6 +3735,35 @@ BOOLEAN NTAPI PhpProcessTreeNewCallback( node->CpuGraphBuffers.Data1, drawInfo.LineDataCount); PhCopyCircularBuffer_FLOAT(&processItem->CpuUserHistory, node->CpuGraphBuffers.Data2, drawInfo.LineDataCount); + + if (PhCsEnableGraphMaxScale) + { + FLOAT max = 0; + + for (ULONG i = 0; i < drawInfo.Li...
apps/builtin: Use shell default values of priority and stacksize When builtin feature is enabled and priority and stacksize is not configured in each application, let's use default values of priority and stacksize which is defined in shell Kconfig instead of hard-coded in apps/Make.defs.
# ############################################################################ +include $(TOPDIR)/.config + # Builtin Registration BUILTIN_REGISTRY = $(APPDIR)$(DELIM)builtin$(DELIM)registry DEPCONFIG = $(TOPDIR)$(DELIM).config +CONFIG_TASH_CMDTASK_PRIORITY ?= 100 +CONFIG_TASH_CMDTASK_STACKSIZE ?= 4096 + ifeq ($(CONFIG...
idf.py hints: add build error hints when legacy adc calibration driver is used
re: "fatal error: trax.h: No such file or directory" hint: "The Trax API (functions/types/macros prefixed with 'trax_') has been made into a private API. If users still require usage of the Trax API (though this is not recommended), it can be included via '#include \"esp_private/trax.h\"'." +- + re: "fatal error: esp_a...
add notice about TCounter in TLockFreeQueue Note: mandatory check (NEED_CHECK) was skipped
@@ -18,6 +18,11 @@ struct TDefaultLFCounter { } }; +// @brief lockfree queue +// @tparam T - the queue element, should be movable +// @tparam TCounter, a observer class to count number of items in queue +// be carifull, IncCount and DecCount can be called on a moved object and +// it is TCounter class responsibility to...
Docs: Clarity on Kext Order
@@ -1875,18 +1875,18 @@ blocking. \textbf{Description}: Load selected kernel extensions (kexts) from the \texttt{OC/Kexts} directory. To be filled with \texttt{plist\ dict} values, describing each kext. Refer to - the \hyperref[kernelpropsadd]{Add Properties} section below. + the \hyperref[kernelpropsadd]{Add Propertie...
Fix jsonptr whitespace and commas for CBOR tags
@@ -338,6 +338,8 @@ struct { uint64_t detail; } g_token_extension; +bool g_previous_token_was_cbor_tag; + uint32_t g_depth; enum class context { @@ -819,6 +821,8 @@ initialize_globals(int argc, char** argv) { g_token_extension.category = 0; g_token_extension.detail = 0; + g_previous_token_was_cbor_tag = false; + g_dept...
Silence MSVC warning.
@@ -285,7 +285,7 @@ static Janet ta_view_next(void *p, Janet key) { } } if (!janet_checksize(key)) janet_panic("expected size as key"); - size_t index = janet_unwrap_number(key); + size_t index = (size_t) janet_unwrap_number(key); index++; if (index < view->size) { return janet_wrap_number((double) index);
ish/heci: initialize msg.payload before using it BRANCH=none TEST=one class of error less with gcc 11 Tested-by: Patrick Georgi
@@ -280,7 +280,7 @@ static int ipc_send_reset_notify(const ipc_handle_t handle) static int ipc_send_cmpl_indication(struct ipc_if_ctx *ctx) { - struct ipc_msg msg; + struct ipc_msg msg = {0}; msg.drbl = IPC_BUILD_MNG_DB(MNG_RX_CMPL_INDICATION, 0); ipc_write_raw(ctx, msg.drbl, msg.payload, IPC_DB_MSG_LENGTH(msg.drbl));
Use Vcpkg by default in CMake scripts. The dependency on VCPKG_ROOT is outdated and was no longer the intended way to find the vcpkg directory.
cmake_minimum_required (VERSION 3.13...3.21) if(NOT DEFINED CMAKE_TOOLCHAIN_FILE) - if(DEFINED ENV{VCPKG_ROOT}) - message(STATUS "Using Vcpkg: $ENV{VCPKG_ROOT}") set(CMAKE_TOOLCHAIN_FILE - "$ENV{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake" - CACHE STRING "" - ) - else() - message(STATUS "Vcpkg not being used.") - endi...
posix/spawn: add POSIX_SPAWN macros
@@ -16,7 +16,14 @@ typedef struct { } posix_spawn_file_actions_t; struct sched_param; -// MISSING: POSIX_SPAWN macros +#define POSIX_SPAWN_RESETIDS 1 +#define POSIX_SPAWN_SETPGROUP 2 +#define POSIX_SPAWN_SETSIGDEF 4 +#define POSIX_SPAWN_SETSIGMASK 8 +#define POSIX_SPAWN_SETSCHEDPARAM 16 +#define POSIX_SPAWN_SETSCHEDULE...
docker: add dependencies for draw-all-plugins script on opensuse
@@ -21,7 +21,9 @@ RUN zypper update -y && zypper install -y \ gzip \ gpgme-devel \ graphviz \ + graphviz-gd \ java-11-openjdk-devel \ + lato-fonts \ libcurl-devel \ libdrm-devel \ libev-devel \
This fixes the versioning when compiling from the repo checked out with git.
@@ -6,7 +6,7 @@ if (GIT_FOUND AND EXISTS "${PROJECT_SOURCE_DIR}/.git") # Working off a git repo, using git versioning # Check if HEAD is pointing to a tag execute_process ( - COMMAND "${GIT_EXECUTABLE}" describe --always + COMMAND "${GIT_EXECUTABLE}" describe --always --tag WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}" OUT...
Correct if in mapping example We want to know if the memory is mappable, which means that the memory properties should include the `VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT`.
@@ -478,7 +478,7 @@ vmaCreateBuffer(allocator, &bufCreateInfo, &allocCreateInfo, &buf, &alloc, &allo VkMemoryPropertyFlags memFlags; vmaGetMemoryTypeProperties(allocator, allocInfo.memoryType, &memFlags); -if((memFlags & VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT) == 0) +if((memFlags & VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT) != ...
Allow disabling GSO
using namespace ngtcp2; +#ifndef NGTCP2_ENABLE_UDP_GSO # ifdef UDP_SEGMENT # define NGTCP2_ENABLE_UDP_GSO 1 -#endif // UDP_SEGMENT +# else // !UDP_SEGMENT +# define NGTCP2_ENABLE_UDP_GSO 0 +# endif // !UDP_SEGMENT +#endif // NGTCP2_ENABLE_UDP_GSO namespace { constexpr size_t NGTCP2_SV_SCIDLEN = 18; @@ -1726,7 +1730,7 @...
doc: prettify OPAL_CHECK_ASYNC_COMPLETION
+.. _OPAL_CHECK_ASYNC_COMPLETION: + OPAL_CHECK_ASYNC_COMPLETION =========================== -OPAL_CHECK_ASYNC_COMPLETION checks if an async OPAL pending message was completed. (see :ref:`opal-messages`). +:ref:`OPAL_CHECK_ASYNC_COMPLETION` checks if an async OPAL pending message was +completed. (see :ref:`opal-messages...
fake_random: Do not overwrite the callback on instatiation
@@ -33,7 +33,6 @@ static OSSL_FUNC_rand_enable_locking_fn fake_rand_enable_locking; static void *fake_rand_newctx(void *provctx, void *parent, const OSSL_DISPATCH *parent_dispatch) { - fake_rand.cb = NULL; fake_rand.state = EVP_RAND_STATE_UNINITIALISED; return &fake_rand; }
doc: update in release todo
@@ -65,7 +65,7 @@ And now commit everything: git-commit -a Clean up the mess left over: - git-clean -df + git-clean -dfx Make an empty builddirectory: mkdir ~build @@ -86,7 +86,7 @@ If version numbers are correct in mkdir ~elektra/$VERSION && kdb --version > ~elektra/$VERSION/version Rebuild cleanly, run all tests and ...
Add failing blueprint tests to the skip list.
{"category":"simulation","file":"zerocopy.py","cases":["zerocopy02"]}, {"category":"quickrecipes","file":"how_to_start.py"}, {"category":"quickrecipes","file":"opening_compute_engine.py"}, + {"category":"databases","file":"blueprint.py", "cases":["bp_strided_struct_2d_ele_vals","bp_strided_struct_2d_vert_vals","bp_stri...
driver/accel_kx022.h: Format with clang-format BRANCH=none TEST=none
#define KX022_SELF_TEST 0x60 #define KX022_INTERNAL 0x7f - #define KX022_CNTL1_PC1 BIT(7) #define KX022_CNTL1_WUFE BIT(1) #define KX022_CNTL1_TPE BIT(0) #define KX022_ORIENT_INVERT_PORTRAIT BIT(3) #define KX022_ORIENT_LANDSCAPE BIT(4) #define KX022_ORIENT_INVERT_LANDSCAPE BIT(5) -#define KX022_ORIENT_MASK (KX022_ORIENT...
[numerics] add verbose on test
#include <stdlib.h> // for free #include "SolverOptions.h" // for solver_options_id_to_name, SolverOptions #include <time.h> - +#include "numerics_verbose.h" /* Auxiliary routine: printing a matrix */ void print_matrix(const char* desc, int m, int n, double* a, int lda) { @@ -82,6 +82,13 @@ void print_test_info(int tes...
Yajl: Dirty impl of removing empty parent keys
@@ -269,6 +269,31 @@ static void elektraYajlParseSuppressEmpty (KeySet * returned, Key * parentKey) } keyDel (lookupKey); } + + ksRewind (returned); + Key * cur; + while ((cur = ksNext (returned)) != NULL) + { + // Not sure atm if checking for dirdata is needed or the responsibility of yajl + Key * dirdata = keyDup (cu...
Document that the script must be run from the root
#!/usr/bin/env python3 """Check or fix the code style by running Uncrustify. + +This script must be run from the root of a Git work tree containing Mbed TLS. """ # Copyright The Mbed TLS Contributors # SPDX-License-Identifier: Apache-2.0
web-ui: fix search not re-filtering when data updated
@@ -19,10 +19,19 @@ const NAMESPACES_ORDER = [ 'spec', 'dir', 'user', 'system' ] export default class TreeView extends React.Component { constructor (props, ...args) { super(props, ...args) - this.state = { selection: [], unfolded: [] } + this.state = { selection: [], unfolded: [], data: props.data } } componentWillRec...
zephyr/shim/src/host_command.c: Format with clang-format BRANCH=none TEST=none
struct host_command *zephyr_find_host_command(int command) { - STRUCT_SECTION_FOREACH(host_command, cmd) { + STRUCT_SECTION_FOREACH(host_command, cmd) + { if (cmd->command == command) return cmd; }
[io] fix bug in selecting data at a given time for static objects
@@ -969,7 +969,15 @@ class IOReader(VTKPythonAlgorithmBase): self._index = id_t self.pos_data = self._idpos_data[self._id_t_m, :] self.velo_data = self._ivelo_data[self._id_t_m, :] - self.pos_static_data = self._ispos_data[self._id_t_m, :] + + static_id_t = max(0, numpy.searchsorted(self._static_times, t, side='right')...
Not modify reltuple and relpages in utility mode on QD
@@ -1664,13 +1664,19 @@ vac_update_relstats(Relation relation, /* Apply statistical updates, if any, to copied tuple */ + /* GPDB-specific not allow change relpages and reltuples when vacuum in utility mode on QD + * Because there's a chance that we overwrite perfectly good stats with zeros + */ + + bool ifUpdate = ! (...
invert vibration check predicate to improve computational cost
@@ -1756,7 +1756,7 @@ class SDLSurface extends SurfaceView implements SurfaceHolder.Callback, SDLActivity.onNativeTouch(touchDevId, pointerFingerId, action, x, y, p); //White Dragon: vibrator - if ( SDLActivity.isTouchArea(action, x, y) && SDLActivity.isVibrationEnabled() ) { + if ( SDLActivity.isVibrationEnabled() && ...
fix(platone): adapts the new Platone interface issue
@@ -189,7 +189,7 @@ BCHAR *web3_eth_call_getNodesManagerAddr(Web3IntfContext *web3intf_context_ptr, // return entire RESPONSE content // return_value_ptr = rpc_response_str; - web3_parse_json_result(rpc_response_str, "result", &prase_result); + BoatPlatonePraseRpcResponseResult(rpc_response_str, "result", &prase_result...
Delete unused variable acquireResult from AOCSDrop()
@@ -436,7 +436,6 @@ AOCSDrop(Relation aorel, AOCSFileSegInfo **segfile_array; int i, segno; - LockAcquireResult acquireResult; AOCSFileSegInfo *fsinfo; Snapshot appendOnlyMetaDataSnapshot = RegisterSnapshot(GetCatalogSnapshot(InvalidOid));
removal of unnecessary line
@@ -187,7 +187,6 @@ void Cycle_Perform(long currentTime) { ProcessEvent(goal, currentTime); Decision_Making(goal, currentTime); - goal->processed = true; } } //process spikes
[mechanics] correct compiler warning
@@ -43,13 +43,13 @@ CouplerJointR::CouplerJointR(SP::NewtonEulerJointR joint1, unsigned int dof1, : NewtonEulerJointR() , _joint1(joint1) , _joint2(joint2) - , _dof1(dof1) - , _dof2(dof2) , _ref1(ref1) , _ref2(ref2) - , _ratio(ratio) + , _dof1(dof1) + , _dof2(dof2) , _ref1_index(ref1_index) , _ref2_index(ref2_index) + ...
Add preliminary support for Cppcheck.
@@ -132,16 +132,6 @@ doc: codedoc $(DOCFLAGS) --title "pappl system functions" --man pappl-system --section 3 --body ../man/pappl-system-body.man --footer ../man/pappl-footer.man system.h system*.c >../man/pappl-system.3 -# Analyze code using Frama-C <https://www.frama-c.com/index.html> -# -# Note: This isn't yet worki...