message
stringlengths
6
474
diff
stringlengths
8
5.22k
Modify description on Kconfig This patch modifies description of STDIO_BUFFER_SIZE config.
@@ -9,8 +9,10 @@ config STDIO_BUFFER_SIZE int "C STDIO buffer size" default 64 ---help--- - Size of buffers using within the C buffered I/O interfaces. - (printf, putchar, fwrite, etc.). + Size of buffers using within the C buffered I/O interfaces (printf, + putchar, fwrite, etc.). This function sets the initial I/O bu...
Replace "semicolon" with "colon" It appears that the text is referring to the colon ":" in type annotations and method calls, not the semicolon ";" which is used to separate statements on the same line in Lua.
@@ -258,8 +258,8 @@ Pallene is a statically-typed language, which means that every variable and expr Sometimes this may be the catch-all type `value`, but it is still known at compilation time. Similarly to most other statically-typed languages, Pallene allows you to add type annotations to variables, functions, and ex...
OcCorePkg/Platform/BootLiquor: fix impossible (?) loss of data (UINT64 -> UINT32)
@@ -182,11 +182,11 @@ InternalUpdateStateAbsolute ( NewX = PointerState.CurrentX - Context->AbsPointer->Mode->AbsoluteMinX; NewX *= Context->Width; - NewX = DivU64x32 (NewX, Context->AbsPointer->Mode->AbsoluteMaxX - Context->AbsPointer->Mode->AbsoluteMinX); + NewX = DivU64x32 (NewX, (UINT32) (Context->AbsPointer->Mode-...
Timestamp: set line-height
@@ -23,6 +23,7 @@ const Timestamp = (props: TimestampProps): ReactElement | null => { relative, dateNotRelative, fontSize, + lineHeight, ...rest } = { time: true, @@ -62,7 +63,7 @@ const Timestamp = (props: TimestampProps): ReactElement | null => { title={stamp.format(DateFormat + ' ' + TimeFormat)} > {time && ( - <Tex...
yorp: remove old comment Bug is already closed BRANCH=none TEST=none
@@ -206,7 +206,6 @@ static struct stprivate_data lsm6dsm_g_data; static struct stprivate_data lsm6dsm_a_data; /* Drivers */ -/* TODO(b/74602071): Tune sensor cfg after the board is received */ struct motion_sensor_t motion_sensors[] = { [LID_ACCEL] = { .name = "Lid Accel",
Cascading: Fix minor spelling mistakes in ReadMe
@@ -113,14 +113,14 @@ makes them really powerful. Consider the following example: -First, we create a target key to demostrate the override link mechanism: +First, we create a target key to demonstrate the override link mechanism: ```sh sudo kdb set system/overrides/test "hello override" #> Create a new key system/over...
Fixes Infinite loading wheel when solr is not responding
@@ -279,6 +279,40 @@ public class SearchAggregator extends HttpServlet { } else { searchResponse = SearchAPI.search(request); } + + // Check if the searchResponse is OK + if (searchResponse.isEmpty()) { + response.setStatus(500); + response.setCharacterEncoding("utf-8"); + response.setContentType("text/json;charset=utf...
Fix error message for CVE-2021-23222
@@ -193,8 +193,8 @@ int od_tls_backend_connect(od_server_t *server, od_logger_t *logger, od_debug(logger, "tls", NULL, server, "supported"); if (od_readahead_unread(&server->io.readahead) > 0) { od_error(logger, "tls", NULL, server, - "extraneous data from client"); - return -1; // prevent possible buffer, protecting a...
Use ++pit:nu:crub:crypto for network keypair generation
=+ manage-seed=(child-seed transfer-seed "manage" 0 shh) :- manage=(wallet-from-seed manage-seed) =+ urbit-seed=(child-seed manage-seed "urbit" 0 shh) - ~ ::TODO networking keypairs from seed + =+ urbit=(pit:nu:crub:crypto (mul 8 wid.urbit-seed) dat.urbit-seed) + =+ pub=pub:ex:urbit + =+ sec=sec:ex:urbit + :- ^= auth +...
Rename reference data
@@ -3,7 +3,7 @@ ecmf 166 10v m s**-1 10 metre V wind component ecmf 59 cape J kg**-1 Convective available potential energy ecmf 156 gh gpm Geopotential height ecmf 151 msl Pa Mean sea level pressure -ecmf 179 ttr J m**-2 Top net long-wave radiation +ecmf 179 ttr J m**-2 Top net long-wave (thermal) radiation ecmf 3 pt K...
Add Cipher Key Policy check one-shot cases
@@ -1230,8 +1230,20 @@ void cipher_key_policy( int policy_usage_arg, psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; psa_cipher_operation_t operation = PSA_CIPHER_OPERATION_INIT; psa_key_usage_t policy_usage = policy_usage_arg; + size_t output_buffer_size = 0; + size_t input_buffer_size = 0; + size_t output_...
Add an LP-GOP test
set -eu source util.bash -common_args='--gop=8 -p0 --threads=2 --wpp --rd=0 --no-rdoq --no-deblock --no-sao --no-signhide --subme=0 --pu-depth-inter=1-3 --pu-depth-intra=2-3' -valgrind_test 264x130 10 $common_args --owf=1 -valgrind_test 264x130 10 $common_args --owf=4 -valgrind_test 264x130 20 $common_args --owf=0 +com...
tests CHANGE extend tests for identityref type
@@ -1199,6 +1199,14 @@ test_type_identityref(void **state) assert_int_equal(LY_EVALID, lys_compile(mod, 0)); logbuf_assert("Multiple bases in identityref type are allowed only in YANG 1.1 modules."); + assert_non_null(mod = lys_parse_mem(ctx, "module ff {namespace urn:ff;prefix ff; identity i;leaf l {type identityref {...
Don't specify arch/platform/zoul as a directory twice
@@ -24,7 +24,7 @@ CFLAGS += -DDATE="\"`date +"%02u %02d %02m %02y %02H %02M %02S"`\"" ### Configure the build for the board and pull in board-specific sources CONTIKI_TARGET_DIRS += . dev -CONTIKI_TARGET_DIRS += . $(BOARD) +CONTIKI_TARGET_DIRS += $(BOARD) PLATFORM_ROOT_DIR = $(ARCH_PATH)/platform/$(TARGET) ### Include ...
host/mesh: Verify that all stored mesh entries removed This ensures that all mesh settings were removed from persistent storage after node reset. This is port of
@@ -1161,6 +1161,7 @@ void bt_mesh_net_pending_seq_store(void) struct seq_val seq; int err; + if (atomic_test_bit(bt_mesh.flags, BT_MESH_VALID)) { sys_put_le24(bt_mesh.seq, seq.val); str = settings_str_from_bytes(&seq, sizeof(seq), buf, sizeof(buf)); @@ -1176,6 +1177,14 @@ void bt_mesh_net_pending_seq_store(void) } els...
missing ; after defer
@@ -318,7 +318,7 @@ bool files_parseDictionary(honggfuzz_t * hfuzz) size_t n = 0; defer { free(lineptr); - } + }; for (;;) { ssize_t len = getdelim(&lineptr, &n, '\n', fDict); if (len == -1) {
plugin types BUGFIX avoid checking unresolved when ... for leafref validation. The data tree may be non-validated. Fixes sysrepo/sysrepo#2528
@@ -790,7 +790,7 @@ lyplg_type_resolve_leafref(const struct lysc_type_leafref *lref, const struct ly /* find all target data instances */ ret = lyxp_eval(LYD_CTX(node), lref->path, node->schema->module, LY_VALUE_SCHEMA_RESOLVED, lref->prefixes, - node, tree, &set, 0); + node, tree, &set, LYXP_IGNORE_WHEN); if (ret) { r...
hv: fix possible buffer overflow in 'vcpu_set_eoi_exit()' 'vector' should be no greater than 0xff,else 'eoi_exit_bitmap[]' will overflow. Acked-by: Eddie Dong
@@ -145,7 +145,7 @@ void vcpu_set_eoi_exit(struct acrn_vcpu *vcpu, uint32_t vector) pr_dbg("%s", __func__); if (bitmap_test_and_set_nolock((uint16_t)(vector & 0x3fU), - &(vcpu->arch.eoi_exit_bitmap[vector >> 6U]))) { + &(vcpu->arch.eoi_exit_bitmap[(vector & 0xffU) >> 6U]))) { pr_warn("Duplicated vector %u vcpu%u", vect...
new version yp_cli
}, "yp-util": { "formula": { - "sandbox_id": [314258866], + "sandbox_id": [326474135], "match": "yp_cli" }, "executable": {
Add missing MBEDTLS_PRIVATE
@@ -157,7 +157,7 @@ struct psa_aead_operation_s * ID values are auto-generated in psa_crypto_driver_wrappers.h * ID value zero means the context is not valid or not assigned to * any driver (i.e. none of the driver contexts are active). */ - unsigned int id; + unsigned int MBEDTLS_PRIVATE(id); psa_algorithm_t MBEDTLS_P...
chat-cli: print messages only if chat is viewed
%remove-graph (~(notice-remove se i.sez) +.q.upd) :: %add-nodes + ?. (~(has in viewing.session.i.sez) resource.q.upd) + [~ session.i.sez] %+ ~(read-posts se i.sez) resource.q.upd (sort ~(tap by nodes.q.upd) ior)
in_storage_backlog: lookup chunk event type and use it when mapping the chunk
* limitations under the License. */ -#include <fluent-bit/flb_output_plugin.h> +#include <fluent-bit/flb_output.h> #include <fluent-bit/flb_input_plugin.h> #include <fluent-bit/flb_input_chunk.h> #include <fluent-bit/flb_storage.h> @@ -468,10 +468,12 @@ static int cb_queue_chunks(struct flb_input_instance *in, struct s...
docs: add more useful connection debug message
@@ -355,8 +355,10 @@ perform_request( switch (action) { case ACTION_SUCCESS: case ACTION_FAILURE: + D_PRINT("FINISHED REQUEST AT %s", url); return; case ACTION_RETRY: + D_PRINT("RETRYING TO PERFORM REQUEST AT %s", url); break; case ACTION_ABORT: default:
[docs] Make _What's Next_ more succinct
@@ -39,16 +39,16 @@ What's Next? This depends on what you are planning to do with Chipyard. -* If you want to learn about the structure of Chipyard, go to :ref:`chipyard-components`. +* To learn about the structure of Chipyard, see :ref:`chipyard-components`. -* If you intend to build one of the vanilla Chipyard exampl...
chip/host/config_chip: Fix TASK_STACK_SIZE of the host board. Define TASK_STACK_SIZE as standard value 512 for the host board. BRANCH=none TEST=make runtests
@@ -32,6 +32,9 @@ extern char __host_flash[CONFIG_FLASH_SIZE]; /* Compute the rest of the flash params from these */ #include "config_std_internal_flash.h" +/* Default task stack size */ +#define TASK_STACK_SIZE 512 + /* Interval between HOOK_TICK notifications */ #define HOOK_TICK_INTERVAL_MS 250 #define HOOK_TICK_INT...
[Compiler] Main runner will compile, assemble, and simulate
@@ -5,7 +5,7 @@ use std::env; use std::fs; use linker::{FileLayout, assembly_packer, render_elf}; -use compilation_definitions::instructions::Instr; +use compilation_definitions::instructions::{Instr, MoveImmToReg, MoveRegToReg, AddRegToReg, CompareImmWithReg}; use compilation_definitions::prelude::*; use crate::codege...
doc: update `acrn-dm` parameters documentation Update the documentation listing and describing all `acrn-dm` parameters as it has gone out of sync with the actual implementation. Some parameters are missing and others are now obsolete.
@@ -37,7 +37,7 @@ Here are descriptions for each of these ``acrn-dm`` command line parameters: - Enable guest to write io port 0xf4 to exit guest. It's mainly used by guest unit test. - * - :kbd:`-E <elf image path>` + * - :kbd:`-E, --elf_file <elf image path>` - This option is to define a static elf binary which could...
android: fix backward-compat
@@ -1123,7 +1123,8 @@ public class RhodesService extends Service { builder.setSmallIcon(android.R.drawable.stat_sys_download); builder.setDefaults(Notification.FLAG_ONGOING_EVENT); - builder.setCustomContentView(expandedView); + //min API = 24 + //builder.setCustomContentView(expandedView); Intent intent = new Intent(A...
Add install section and examples in the README.
<div align="center"> - <a href="https://metacall.io" target="_blank"><img src="https://raw.githubusercontent.com/metacall/core/master/deploy/images/logo.png" alt="METACALL" style="max-width:100%; margin: 0 auto;" width="80" height="80"> - <h1><b>MetaCall Polyglot Runtime</b></h1></a> + <a href="https://metacall.io" tar...
Vectorize stdev/variance conversion
@@ -1044,11 +1044,7 @@ static float prepare_error_weight_block( variance.set_lane<1>(fvar * mixing + variance.lane<1>() * (1.0f - mixing)); variance.set_lane<2>(fvar * mixing + variance.lane<2>() * (1.0f - mixing)); - // TODO: Vectorize this ... - vfloat4 stdev = vfloat4(astc::sqrt(astc::max(variance.lane<0>(), 0.0f)),...
Change definition for ImGui Text Lua binding Right now, we really expose only TextUnformatted... So let's avoid extra overhead of snprintf when it is not really required in the end in current implementation.
@@ -164,7 +164,7 @@ namespace sol_ImGui // Widgets: Text inline void TextUnformatted(const std::string& text) { ImGui::TextUnformatted(text.c_str()); } - inline void Text(const std::string& text) { ImGui::Text(text.c_str()); } + inline void Text(const std::string& text) { ImGui::TextUnformatted(text.c_str()); } // TODO...
Add DEBUG and ERROR logging to help diagnose problems when starting a Windows Service. Fix change entry.
</properties> <body> <release version="1.1.0" date="2017-MM-DD" description="Feature and bug fix release"> - <action issue="DAEMON-368" type="update" dev="ggregory" type="add"> + <action issue="DAEMON-368" type="add" dev="ggregory"> Add DEBUG and ERROR logging to help diagnose problems when starting a Windows Service. ...
vcl:fix segfault when unshare NO_MQ session Session in LISTEN_NO_MQ state has no vpp_evt_q.This would cause a segfault when vcl try to send msg to vpp. Type: fix
@@ -710,6 +710,7 @@ vls_unshare_session (vcl_locked_session_t * vls, vcl_worker_t * wrk) * Check if we can change owner or close */ vls_shd->owner_wrk_index = vls_shd->workers_subscribed[0]; + if (s->session_state != VCL_STATE_LISTEN_NO_MQ) vcl_send_session_worker_update (wrk, s, vls_shd->owner_wrk_index); /* XXX is th...
Added copy of strings in order to avoid segmentation fault in python port.
@@ -85,7 +85,27 @@ extern "C" { } %#endif - $1[iterator] = str; + $1[iterator] = (char *)malloc(sizeof(char) * (length + 1)); + + if ($1[iterator] == NULL) + { + PyErr_SetString(PyExc_ValueError, "Invalid string path allocation"); + + size_t alloc_iterator; + + for (alloc_iterator = 0; alloc_iterator < iterator; ++allo...
Add build section for mbedTLS config This makes it easier to choose the mbedTLS config file when multiple features share files.
@@ -35,7 +35,6 @@ fn main() { conf.define("MCUBOOT_SIGN_RSA", None); conf.define("MCUBOOT_USE_MBED_TLS", None); - conf.define("MBEDTLS_CONFIG_FILE", Some("<config-rsa.h>")); conf.include("mbedtls/include"); conf.file("mbedtls/library/sha256.c"); conf.file("csupport/keys.c"); @@ -49,7 +48,6 @@ fn main() { conf.define("M...
Fix typo in the documentation's example reading class The example C_IStream::read() function should return !feof(), not feof()
@@ -1462,7 +1462,7 @@ exception. If ``read(c,n)`` hits the end of the file after reading throw Iex::InputExc ("Unexpected end of file."); } - return feof (_file); + return !feof (_file); } ``tellg()`` returns the current reading position, in bytes, from the
CI: Not showing stdout nor stderr when checkout ref
@@ -68,7 +68,7 @@ if __name__ == "__main__": for candidate in candidate_branches: try: - subprocess.check_call(["git", "checkout", candidate]) + subprocess.check_call(["git", "checkout", candidate], stdout=subprocess.PIPE, stderr=subprocess.PIPE) # not print the stdout nor stderr print("CI using ref {} for project {}"....
btc-wallet: fix various assertions
~| "no wallet with xpub" =/ wal (~(got by walts) u.curr-xpub) ~| "wallet not scanned yet" - ?> ?!(scanned.wal) + ?> scanned.wal =/ [tb=(unit txbu) chng=(unit sats)] %~ with-change sut:bl :* wal eny.bowl ~| "no wallet with xpub" =/ wal (~(got by walts) u.curr-xpub) ~| "wallet not scanned yet" - ?> ?!(scanned.wal) + ?> s...
evp_extra_test: Do not manipulate providers in default context Otherwise the with OPENSSL_TEST_RAND_ORDER following tests will be broken. There is also no real need to do that. Fixes
@@ -2418,15 +2418,13 @@ err: static int test_EVP_rsa_pss_with_keygen_bits(void) { int ret; - OSSL_PROVIDER *provider; EVP_PKEY_CTX *ctx; EVP_PKEY *pkey; const EVP_MD *md; pkey = NULL; ret = 0; - provider = OSSL_PROVIDER_load(NULL, "default"); - md = EVP_get_digestbyname("sha256"); + md = EVP_get_digestbyname("sha256");...
netlify: deploy wasm/simd128.h This actually just changes the command to use a small script which should automatically generate headers for simde/*/*.h so I don't forget to do this again in the future.
[build] publish = 'web' - command = 'mkdir -p web/amalgamated/x86 && (cd simde && for header in x86/*.h; do ../amalgamate.py "$header" > ../web/amalgamated/"$header"; done); mkdir -p web/amalgamated/arm && (cd simde/arm && ../../amalgamate.py neon.h > ../../web/amalgamated/arm/neon.h && ../../amalgamate.py sve.h > ../....
Add bpf_override_return() helper definition
@@ -299,6 +299,8 @@ static int (*bpf_skb_change_head)(void *ctx, u32 len, u64 flags) = (void *) BPF_FUNC_skb_change_head; static int (*bpf_xdp_adjust_head)(void *ctx, int offset) = (void *) BPF_FUNC_xdp_adjust_head; +static int (*bpf_override_return)(void *pt_regs, unsigned long rc) = + (void *) BPF_FUNC_override_retur...
llrint -> llround to be independent of floating point environment.
@@ -187,7 +187,7 @@ namespace NCB { return NCB::TSimpleIndexRangesGenerator<TSize>( NCB::TIndexRange<TSize>(parallelizableUnitsCount), std::max( - (TSize)std::llrint( + (TSize)std::llround( double(parallelizableUnitsCount) / double(Size()) * double(approximateBlockSize)
single addr was better
@@ -268,11 +268,11 @@ _negative_response_codes = { } class CanClient(): - def __init__(self, can_send: Callable[[Tuple[int, bytes, int]], None], can_recv: Callable[[], List[Tuple[int, int, bytes, int]]], tx_addr: int, rx_addrs: int, bus: int, debug: bool=False): + def __init__(self, can_send: Callable[[Tuple[int, bytes...
xscom-utils: Rework getsram Allow specifying a file on the command line to read OCC SRAM data into. If no file is specified then we print it to stdout as text. This is a bit inconsistent, but it retains compatibility with the existing tool.
static void print_usage(int code) { - printf("usage: getsram [-c|--chip chip-id] addr\n"); - printf(" [--occ-channel|n <chan>]\n"); - printf(" getsram -v|--version\n"); + printf("usage: getsram [opts] addr\n"); + printf(" -c|--chip <chip-id>\n"); + printf(" -l|--length <size to read>\n"); + printf(" -n|--occ-channel <c...
[stat_cache] fix compilation error for cmake
@@ -750,7 +750,7 @@ void stat_cache_delete_entry(server *srv, const char *name, size_t len) } } -#if HAVE_FAM_H +#ifdef HAVE_FAM_H static void stat_cache_invalidate_entry(server *srv, const char *name, size_t len) {
Memory leaks in grib_merge tool
@@ -318,6 +318,16 @@ static grib_handle* merge(grib_handle* h1, grib_handle* h2) grib_set_double_array(h, "values", v, n); + grib_context_free(h->context, v); + grib_context_free(h->context, v1); + grib_context_free(h->context, v2); + grib_context_free(h->context, lat); + grib_context_free(h->context, lat1); + grib_con...
improve envfile
@@ -267,7 +267,7 @@ function info(key) assert(os.isfile(os.projectfile()), "xmake.lua not found!") print("[%s]", path.filename(os.projectdir())) elseif key == "envfile" then - print("%s", os.tmpfile()) + print(os.tmpfile()) elseif key:startswith("script.") then local shell = key:match("script%.(.+)") print(_get_env_scr...
Fix inverted condition in _Atomic declaration fixes
@@ -642,6 +642,7 @@ void gotoblas_profile_init(void); void gotoblas_profile_quit(void); #ifdef USE_OPENMP + #ifndef C_MSVC int omp_in_parallel(void); int omp_get_num_procs(void); @@ -649,12 +650,15 @@ int omp_get_num_procs(void); __declspec(dllimport) int __cdecl omp_in_parallel(void); __declspec(dllimport) int __cdecl...
autoload clustershell
@@ -80,6 +80,12 @@ prepend-path MANPATH %{install_path}/share/man setenv %{pname}_DIR %{install_path} +# Autoload Clustershell +if [ expr [ module-info mode load ] || [module-info mode display ] ] { + if { ![is-loaded clustershell] } { + module load clustershell + } +} EOF %clean
Changelog: Mention `devices` command update
@@ -47,6 +47,7 @@ OpenCore Changelog - Fixed CPU multiplier detection on pre-Nehalem Intel CPUs - Fixed incorrect handling of multiple processors and processor cache in SMBIOS - Matched default Apple boot picker cursor start position +- Updated OpenShell `devices` command to support misaligned device names returned by ...
Now checks the EIP712Domain chain ID
#include "ui_logic.h" #include "ethUtils.h" // KECCAK256_HASH_BYTESIZE #include "context.h" // contract_addr +#include "utils.h" // u64_from_BE static s_field_hashing *fh = NULL; @@ -160,9 +161,10 @@ bool field_hash(const uint8_t *data, // deallocate it mem_dealloc(len); + if (path_get_root_type() == ROOT_DOMAIN) + { /...
BugID:16952646:[include] add missing headers in iot_export.h
@@ -193,6 +193,8 @@ int IOT_Ioctl(int option, void *data); #include "exports/iot_export_http.h" #include "exports/iot_export_event.h" #include "exports/iot_export_subdev.h" +#include "exports/iot_export_http2.h" +#include "exports/iot_export_file_uploader.h" #if defined(__cplusplus) }
sys/log: Make sure watermark is updated for each log after read Watermark should be updated after entries are properly encoded for each log.
@@ -454,6 +454,10 @@ log_nmgr_read(struct mgmt_cbuf *cb) goto err; } +#if MYNEWT_VAL(LOG_READ_WATERMARK_UPDATE) + log_set_watermark(log, index); +#endif + /* If a log was found, encode and break */ if (name_len > 0) { break; @@ -466,10 +470,6 @@ log_nmgr_read(struct mgmt_cbuf *cb) rc = OS_EINVAL; } -#if MYNEWT_VAL(LOG_...
use 'jitter' instead of 'PDV' in output
@@ -2019,18 +2019,18 @@ PrintJitterStats( switch(type){ case OWP_DELAY: - jitterdesc = stats->hdr->twoway ? "two-way PDV" : "one-way jitter"; + jitterdesc = stats->hdr->twoway ? "two-way" : "one-way"; break; case TWP_FWD_DELAY: - jitterdesc = "send PDV"; + jitterdesc = "send"; break; case TWP_BCK_DELAY: - jitterdesc = ...
os/tools/mkheader : Add ram information support Added ram information in binary header. So the script supports add the ram information. It is used to allocate ram partition when binary manager loads binary.
@@ -23,10 +23,15 @@ import struct # # header information : # -# / header size (2byte) / binary type (2byte) / binary size (4byte) -# / Binary name (16byte) / Binary version (16byte) -# / Kernel version (8byte) / Jump address (4byte) -# header size is 52byte. +# total header size is 56bytes. +# +------------------------...
jenkins: add Exception info to mail
@@ -171,6 +171,8 @@ try { } catch(Exception e) { if (isMaster()) { // If master is failing we want to know ASAP so send a mail. + + // collect changes since last build def changes = currentBuild.changeSets.collect() { it.collect() { "* ${it.getCommitId().take(7)} - ${it.getAuthor()} - ${it.getMsg().take(40)}" @@ -183,6...
docs: Added FAQs for generating contracts file issue issue
@@ -891,6 +891,16 @@ E.g. : BCHAR *result_str; result_str = StoreRead_saveList(&tx_ctx, (BUINT8 *)"HelloWorld"); ``` +#### Frequently Asked Questions +**Q:The following error is reported when compiling** +``` + for abi_item in self.abi_object['abi']: +TypeError: list indices must be integers, not str +``` +A:The proble...
Directory Value: Replace `typedef` statement
@@ -25,7 +25,7 @@ using CppKeySet = kdb::KeySet; constexpr ssize_t arrayValuePrefixSize = sizeof (ARRAY_VALUE_PREFIX) - 1; -typedef pair<CppKeySet, CppKeySet> KeySetPair; +using KeySetPair = pair<CppKeySet, CppKeySet>; // -- Functions -------------------------------------------------------------------------------------...
fix(config.h): update default termname
@@ -60,7 +60,7 @@ static int bold_font = 0; static char stty_args[] = "stty raw pass8 nl -echo -iexten -cstopb 38400"; static unsigned int xfps = 120; static unsigned int actionfps = 30; -static char *termname = "st-256color"; +static char *termname = "xst-256color"; static char *colorname[] = { "#1e1e1e", "#cf6a4c",
internal/refcount.h: allow non-atomic build Configure with -DOPENSSL_DEV_NO_ATOMICS and you get refcount without atomics. This is intended for internal development only, to check the refcounting is properly coded. It should never become a configuration option, hence the name of the macro.
# endif # endif +# ifndef OPENSSL_DEV_NO_ATOMICS # if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L \ && !defined(__STDC_NO_ATOMICS__) # include <stdatomic.h> @@ -114,7 +115,15 @@ static __inline int CRYPTO_DOWN_REF(volatile int *val, int *ret, void *lock) } # endif -# else +# endif +# endif /* !OPENSSL_DEV_...
Removed strange profiler-breaking code.
@@ -142,7 +142,11 @@ _t_samp_process(u3_road* rod_u) // { u3_noun laj = _t_jet_label(rod_u, bat); - if ( u3_none == laj ) { abort(); } + + if ( u3_none == laj ) { + don = u3t(don); + continue; + } // lab = u3nc(u3i_string("foobar"), u3_nul); lab = u3a_take(laj); u3a_wash(laj);
Performance: prune nearest neighbours
@@ -352,7 +352,7 @@ int grib_nearest_find_generic( double* values, double* distances, int* indexes, size_t* len) { int ret = 0, i = 0; - size_t nvalues = 0; + size_t nvalues = 0, nneighbours = 0; long iradius; double radius; grib_iterator* iter = NULL; @@ -467,9 +467,10 @@ int grib_nearest_find_generic( } ++the_index; ...
py/scheduler: Add missing MICROPY_WRAP_MP_SCHED_EXCEPTION usage. This was missed in commit
#include "py/runtime.h" -void mp_sched_exception(mp_obj_t exc) { +void MICROPY_WRAP_MP_SCHED_EXCEPTION(mp_sched_exception)(mp_obj_t exc) { MP_STATE_VM(mp_pending_exception) = exc; #if MICROPY_ENABLE_SCHEDULER if (MP_STATE_VM(sched_state) == MP_SCHED_IDLE) {
Update: minigrid_ona.py: longer view distance, cone fixes, and scan fix for invisible cells
@@ -80,9 +80,8 @@ goal = "G" #Setup environment: env = gym.make('MiniGrid-Empty-6x6-v0').env env.reset(seed=1337) -viewDistance=3 #how many cells forward the agent can see -def coneForward(): +def coneForward(viewDistance=6): L=[] index = 0 StartIndexX, StartIndexY = (2,5) @@ -94,14 +93,13 @@ def coneForward(): L.appen...
check_interfaces() leave multicast group when ifindex changes
@@ -546,7 +546,6 @@ check_interfaces(void) ifindex = if_nametoindex(ifp->name); if(ifindex != ifp->ifindex) { debugf("Noticed ifindex change for %s.\n", ifp->name); - ifp->ifindex = 0; interface_up(ifp, 0); ifp->ifindex = ifindex; ifindex_changed = 1;
Updated the translator spec to include tests for exported symbols. Since the translator generates extra code, the tests had to be hardcoded using escape sequences to deal with whitespace characters.
@@ -320,6 +320,67 @@ describe("Pallene to Lua translator", function () ]]) end) + it("Generate return statement for exported variable", function () + assert_translation( + "export i : integer = 0", + + "local i = 0\n" .. + "return {\n" .. + " i = i,\n" .. + "}\n") + end) + + it("Generate return statement for exported f...
tests: internal: stream_processor: initialize config task list
@@ -584,6 +584,8 @@ static void test_select_keys() return; } mk_list_init(&config->inputs); + mk_list_init(&config->stream_processor_tasks); + config->evl = mk_event_loop_create(256); sp = flb_sp_create(config); @@ -694,6 +696,7 @@ static void test_window() return; } mk_list_init(&config->inputs); + mk_list_init(&confi...
Update comments in s2n_hybrid_ecdhe_sike_fuzz_test
* permissions and limitations under the License. */ -#include <pq-crypto/sike/sike_p503_kem.h> #include "crypto/s2n_crypto.h" #include "crypto/s2n_drbg.h" #include "crypto/s2n_hash.h" #include "crypto/s2n_openssl.h" - +#include "error/s2n_errno.h" +#include "pq-crypto/sike/sike_p503_kem.h" #include "stuffer/s2n_stuffer...
Add buffer_read16be() Add a function to read 16 bits in big-endian to a uint16_t.
@@ -18,6 +18,11 @@ buffer_write32be(uint8_t *buf, uint32_t value) { buf[3] = value; } +static inline uint16_t +buffer_read16be(const uint8_t *buf) { + return (buf[0] << 8) | buf[1]; +} + static inline uint32_t buffer_read32be(const uint8_t *buf) { return (buf[0] << 24) | (buf[1] << 16) | (buf[2] << 8) | buf[3];
[persistence] checked checkpoint success at chkpt_recovery_redo()
@@ -423,7 +423,7 @@ int chkpt_recovery_redo(void) logger->log(EXTENSION_LOG_INFO, NULL, "There are no files needed for recovery. " "Do checkpoint to create checkpoint file set.\n"); - if (do_checkpoint(cs) == CHKPT_ERROR) { + if (do_checkpoint(cs) != CHKPT_SUCCESS) { logger->log(EXTENSION_LOG_WARNING, NULL, "Checkpoint...
Completions: Add plugin suggestions for `info`
@@ -126,7 +126,7 @@ function __fish_kdb_needs_namespace -d 'Check if the current command needs a nam end function __fish_kdb_needs_plugin -d 'Check if the current command needs a plugin completion' - if __fish_kdb_subcommand_includes check + if __fish_kdb_subcommand_includes check info not __input_includes (__fish_kdb_...
Remove testing for precise LSN/reserved bytes in new TAP test Trying to ensure that a slot's restart_lsn or amount of reserved bytes exactly match some specific values seems unnecessary, and fragile as shown by failures in multiple buildfarm members. Discussion:
@@ -121,8 +121,8 @@ $node_standby->stop; advance_wal($node_master, 6); # Slot gets into 'reserved' state -$result = $node_master->safe_psql('postgres', "SELECT restart_lsn, wal_status, pg_size_pretty(restart_lsn - min_safe_lsn) as remain FROM pg_replication_slots WHERE slot_name = 'rep1'"); -is($result, "$start_lsn|res...
Fix no-ec This was missed by Travis because, although it has a no-ec build, the test that failed only runs in a debug build. The Travis job with no-ec is not a debug build and so the test was skipped.
@@ -14,8 +14,8 @@ use OpenSSL::Test::Utils; setup("test_cmp_client"); -plan skip_all => "This test is not supported in a no-cmp build" - if disabled("cmp"); +plan skip_all => "This test is not supported in a no-cmp or no-ec build" + if disabled("cmp") || disabled("ec"); plan tests => 1;
Search / find pcap.h files
@@ -151,16 +151,21 @@ IF(NOT USE_HIDAPI) endif() set(driver_vive_ADDITIONAL_LIBS ${LIBUSB_LIBRARY}) -endif() -find_library(PCAP_LIBRARY pcap) + find_library(PCAP_LIBRARY pcap) if(PCAP_LIBRARY) list(APPEND PLUGINS driver_usbmon) + find_path(PCAP_INCLUDE_PATH NAMES pcap.h) + if(PCAP_INCLUDE_PATH) + include_directories(${...
detect driver crash immediately
@@ -1026,24 +1026,19 @@ while(1) showstatusflag = false; } pklen = read(fd_out, &packetin[PCAPREC_SIZE], PCAP_SNAPLEN-PCAPREC_SIZE); - packetcount++; + if(pklen < (int)RTH_SIZE) + { + errorcount++; + continue; + } gettimeofday(&tv, NULL); packetsave->ts_sec = tv.tv_sec; packetsave->ts_usec = tv.tv_usec; packetsave->inc...
Enable optimizations + native
@@ -4,4 +4,4 @@ do Str=$Str" ${i%.c}.c" done echo $Str -gcc -DSDR_BLOCK_TYPE=__uint128_t -pedantic -std=c11 -g3 -o3 -Wall $Str -lm -oANSNA +gcc -DSDR_BLOCK_TYPE=__uint128_t -pedantic -std=c11 -g3 -O3 -march=native -Wall $Str -lm -oANSNA
memif: fix memif_process_desc indexing The index i was incremented in the wrong place, and the check on the presence of a next buffer in the chain was actually done for the next desc_status rather than the current one. Type: fix
@@ -247,7 +247,7 @@ memif_process_desc (vlib_main_t *vm, vlib_node_runtime_t *node, u32 n_buffers = 0; u32 n_left = ptd->n_packets; u32 packet_len; - int i = 0; + int i = -1; /* construct copy and packet vector out of ring slots */ while (n_left) @@ -261,6 +261,7 @@ memif_process_desc (vlib_main_t *vm, vlib_node_runtim...
Remove warning when disabling Eco mode
@@ -2246,8 +2246,8 @@ BOOLEAN PhUiSetEcoModeProcess( if (NT_SUCCESS(status)) { if (!( - powerThrottlingState.ControlMask == POWER_THROTTLING_PROCESS_EXECUTION_SPEED && - powerThrottlingState.StateMask == POWER_THROTTLING_PROCESS_EXECUTION_SPEED + powerThrottlingState.ControlMask & POWER_THROTTLING_PROCESS_EXECUTION_SPE...
[kernel] return the correct type for newtonMaxIteration()
@@ -329,8 +329,9 @@ public: /** get the maximum number of Newton iteration * \return maximum number of Newton solver iterations */ - double newtonMaxIteration() + unsigned int newtonMaxIteration() { + return _newtonMaxIteration; };
Docs: Issue template on github removed bitcoin and updated to Ravencoin (PR RavenProject#916).
<!--- Remove sections that do not apply --> -This issue tracker is only for technical issues related to bitcoin-core. +This issue tracker is only for technical issues related to Ravencoin. -General ravencoin questions and/or support requests and are best directed to the [Ravencoin Discord](https://discord.gg/GwtXdyc). ...
Optimize message dropping computation using oldest_msg
@@ -432,6 +432,12 @@ static inline error_return_t MsgAlloc_ClearMsgSpace(void *from, void *to) mem_stat->msg_drop_number++; } } + // check if there is a msg in the space we need + // Start by checking if the oldest message is out of scope + if (((uint32_t)oldest_msg >= (uint32_t)from) && ((uint32_t)oldest_msg <= (uint3...
define WIN32
cmake_minimum_required(VERSION 3.9) set(OUT_FILE "wasm3") + if(CLANG OR CLANG_SUFFIX) set(CMAKE_C_COMPILER "clang${CLANG_SUFFIX}") set(CMAKE_CXX_COMPILER "clang++${CLANG_SUFFIX}") @@ -70,7 +71,7 @@ if(EMSCRIPTEN) elseif(WIN32) add_definitions(-D_CRT_SECURE_NO_WARNINGS) - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX- /diagno...
Added usage of PROJECT_IS_TOP_LEVEL around find_package in CMakeLists.txt See
@@ -2,7 +2,9 @@ cmake_minimum_required(VERSION 3.9) project(VulkanMemoryAllocator) +if(PROJECT_IS_TOP_LEVEL) find_package(Vulkan REQUIRED) +endif() include_directories(${Vulkan_INCLUDE_DIR}) # VulkanMemoryAllocator contains an sample application which is not built by default @@ -30,7 +32,9 @@ if(VMA_BUILD_SAMPLE) set(V...
tweak flang usm test to make it an array
program test - integer :: i - i = 0 + integer :: i(5) + i(2) = 0 !$omp requires unified_shared_memory !$omp target - i = 1 + i(2) = 1 !$omp end target - if (i .ne. 1) then + if (i(2) .ne. 1) then print *,'failed' call exit(1) endif
core: fix tagged listeners for len < 8 Was not clearing an internal variable in the loop for reading listeners, so if you used a single -l command to create several tagged listeners and the first tag was longer than the next tag, it would not properly read the tag. tag tag tag.
@@ -3659,7 +3659,6 @@ static int server_socket(const char *interface, static int server_sockets(int port, enum network_transport transport, FILE *portnumber_file) { bool ssl_enabled = false; - uint64_t conntag = 0; #ifdef TLS const char *notls = "notls"; @@ -3667,7 +3666,7 @@ static int server_sockets(int port, enum ne...
Modify the legacy provider to use OSSL_LIB_CTX_new_child()
@@ -178,13 +178,8 @@ int OSSL_provider_init(const OSSL_CORE_HANDLE *handle, { OSSL_LIB_CTX *libctx = NULL; - /* - * We do not need to use any up-calls provided by libcrypto, so we ignore - * the "in" dispatch table. - */ - if ((*provctx = ossl_prov_ctx_new()) == NULL - || (libctx = OSSL_LIB_CTX_new()) == NULL) { + || (...
groups: allow line breaks in description prompt
import React, { useEffect, useMemo } from "react"; import { Association } from "~/types/metadata-update"; import { Box, Text, Button, Col, Center } from "@tlon/indigo-react"; +import RichText from '~/views/components/RichText'; import { Link, useHistory } from "react-router-dom"; import GlobalApi from "~/logic/api/glob...
config: new struct field to keep dynamic plugins context
@@ -95,6 +95,9 @@ struct flb_config { /* Collectors */ struct mk_list collectors; + /* Dynamic (dso) plugins context */ + void *dso_plugins; + /* Plugins references */ struct mk_list in_plugins; struct mk_list parser_plugins; /* not yet implemented */
review feedback: move free'ing along with other cleanup functions
@@ -119,9 +119,9 @@ static void init_request(struct st_h2o_http1_conn_t *conn) if (conn->req_body != NULL) h2o_buffer_dispose(&conn->req_body); h2o_dispose_request(&conn->req); - } if (conn->_unconsumed_request_size) h2o_buffer_consume(&conn->sock->input, conn->_unconsumed_request_size); + } assert(conn->req_body == NU...
apps/ca.c: only output DER with SPKAC input and when -out is chosen So say the docs Fixes
@@ -722,7 +722,7 @@ end_of_options: /*****************************************************************/ if (req || gencrl) { - if (spkac_file != NULL) { + if (spkac_file != NULL && outfile != NULL) { output_der = 1; batch = 1; }
modify license text so that github can automatically detect the license type
-Copyright (c) 2017, the LSSTDESC CCL contributors are listed in the -documentation ("research note") provided with this software. The -repository can be found at https://github.com/LSSTDESC/CCL. +Copyright (c) 2018, the LSSTDESC CCL contributors. All rights reserved. +The LSSTDESC CCL contributors are listed in the do...
proc/cond: spinlock fix condWait
@@ -58,6 +58,7 @@ int proc_condWait(unsigned int c, unsigned int m, time_t timeout) proc_threadUnprotect(); + hal_spinlockSet(&lock->spinlock); _proc_lockClear(lock); if (!(err = proc_threadWait(&rc->waitq, &lock->spinlock, timeout)))
example/opengl: use high level API, sixel_encoder_encode_bytes() instead of sixel_encode()
* original source: * https://cgit.freedesktop.org/mesa/demos/tree/src/xdemos/glxpbdemo.c * - * This file is distributed under the same licence as original's one. - * * original license: * * Copyright (C) 1999-2007 Brian Paul All Rights Reserved. #include <unistd.h> #include <memory.h> #include <math.h> +#include <errno...
Version-String change.
@@ -2286,21 +2286,10 @@ void get_sdk_info(char *info, size_t infoSize) snprintf(info, infoSize, "Unspecified, UPnP/1.0, Unspecified\r\n"); #else /* UPNP_ENABLE_UNSPECIFIED_SERVER */ #ifdef _WIN32 - OSVERSIONINFO versioninfo; - versioninfo.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); - - if (GetVersionEx(&versioninfo) !...
Refactor is_encrypt into aead setup arguments Avoid touching the operation until later.
@@ -3403,6 +3403,7 @@ static psa_algorithm_t psa_aead_get_base_algorithm( psa_algorithm_t alg ) /* Set the key for a multipart authenticated operation. */ static psa_status_t psa_aead_setup( psa_aead_operation_t *operation, + int is_encrypt, mbedtls_svc_key_id_t key, psa_algorithm_t alg ) { @@ -3430,7 +3431,7 @@ static...
Metadata: Fix minor spelling mistake
@@ -115,7 +115,7 @@ type=namespace status=implemented usedby/api= ksLookup description=Typically all namespaces are cascaded one after the other - in the build-in order. + in the built-in order. Using this metadata you can avoid that some namespaces are used or can change the order.
fix cuda build __FORCE_COMMIT__
@@ -676,7 +676,11 @@ struct THash<TIntrusiveConstPtr<T, Ops>> : THash<const T*> { template <class T, class Ops> class TSimpleIntrusiveOps { - using TFunc = void (*)(T*) noexcept; + using TFunc = void (*)(T*) +#if __cplusplus >= 201703 + noexcept +#endif + ; static void DoRef(T* t) noexcept { Ops::Ref(t);
cooja-radio.c: update comments to fix spelling and grammar
@@ -60,19 +60,19 @@ const struct simInterface radio_interface; -/* There radio driver can provide cooja it's nosignal value. - * But at present, cooja ignore and override it. +/* The radio driver can provide Cooja these values. + * But at present, Cooja ignores and overrides them. * */ enum { /* - * Tmote Sky (with CC2...
Inject touch events with smallest detectable size A value of 1 means the "largest detectable size", a value of 0 means the "smallest detectable size". Fixes <https://github.com/Genymobile/scrcpy/issues/2125>
@@ -45,7 +45,7 @@ public class Controller { MotionEvent.PointerCoords coords = new MotionEvent.PointerCoords(); coords.orientation = 0; - coords.size = 1; + coords.size = 0; pointerProperties[i] = props; pointerCoords[i] = coords;
GroupFeed: fix crash on enable
@@ -15,7 +15,8 @@ export function GroupFeedHeader(props) { historyLocation === `${baseUrl}/feed`; const locationUrl = - history.location.pathname.replace(`${baseUrl}/feed`, ''); + history.location.pathname.replace(`${baseUrl}`, '').replace(/^\/[a-z]*/, ''); + console.log(locationUrl); let nodeIndex = locationUrl.split(...