message
stringlengths
6
474
diff
stringlengths
8
5.22k
session BUGFIX unused assignment
@@ -904,7 +904,7 @@ nc_server_get_cpblts(struct ly_ctx *ctx) } } if (!strcmp(name->value_str, "ietf-yang-library")) { - str_len += sprintf(str + str_len, "&module-set-id=%s", module_set_id->value_str); + sprintf(str + str_len, "&module-set-id=%s", module_set_id->value_str); } add_cpblt(ctx, str, &cpblts, &size, &count)...
[io] remove default margins from heightmap
@@ -702,9 +702,11 @@ class ShapeCollection(): raise AssertionError("len(r) != 2") #assert(len(r) == 2) hm = SiconosHeightMap(hm_data, r[0], r[1]) - dims = list(r) + [np.max(hm_data) - np.min(hm_data)] + #dims = list(r) + [np.max(hm_data) - np.min(hm_data)] + #hm.setInsideMargin( + # hm_data.attrs.get('insideMargin', np...
hv: schedule: fix "Procedure has more than one exit point" Misra C requires Function must have only 1 return entry. Fixed it by use "if ... else ..." format.
@@ -41,14 +41,16 @@ void release_schedule_lock(uint16_t pcpu_id) uint16_t allocate_pcpu(void) { uint16_t i; + uint16_t ret = INVALID_CPU_ID; for (i = 0U; i < phys_cpu_num; i++) { if (bitmap_test_and_set_lock(i, &pcpu_used_bitmap) == 0) { - return i; + ret = i; + break; } } - return INVALID_CPU_ID; + return ret; } void ...
fix incompatible pointer type warnings
@@ -36,7 +36,7 @@ void SDR_PrintWhereTrue(SDR *sdr) ITERATE_SDR_BITS(i,j, if (SDR_ReadBitInBlock(sdr,i,j)) { - printf("[%d](%d,%d)\n", i*SDR_BLOCK_SIZE+j, i, j); + printf("[%lu](%d,%d)\n", i*SDR_BLOCK_SIZE+j, i, j); } ) printf("===\n"); @@ -133,17 +133,17 @@ SDR SDR_Tuple(SDR *a, SDR *b) SDR SDR_TupleGetFirstElement(SD...
nimble/mesh: Fix Public Key mismatch error handling Mismatch in Public Key type will cause device to send Invalid Format error, and treat any further PDU's as unexpected. This affects MESH/NODE/PROV/BI-03-C test case.
#define INPUT_OOB_NUMBER 0x02 #define INPUT_OOB_STRING 0x03 +#define PUB_KEY_NO_OOB 0x00 +#define PUB_KEY_OOB 0x01 + #define PROV_ERR_NONE 0x00 #define PROV_ERR_NVAL_PDU 0x01 #define PROV_ERR_NVAL_FMT 0x02 @@ -517,8 +520,8 @@ static void prov_invite(const u8_t *data) net_buf_simple_add_be16(buf, BIT(PROV_ALG_P256)); /*...
mediadev: check if device already exists in mediadev_add
@@ -23,6 +23,10 @@ int mediadev_add(struct list *dev_list, const char *name) if (!dev_list || !str_isset(name)) return EINVAL; + if (mediadev_find(dev_list, name)) { + return 0; + } + dev = mem_zalloc(sizeof(*dev), destructor); if (!dev) return ENOMEM;
Add libgsasl to contribs
- wchar.h: contrib/libs/libunistring/wchar.h - wctype.h: contrib/libs/libunistring/wctype.h +- source_filter: "^contrib/libs/gsasl" + includes: + - stdlib.h: contrib/libs/gsasl/gl/stdlib.h + - stdio.h: contrib/libs/gsasl/gl/stdio.h + - unistd.h: contrib/libs/gsasl/gl/unistd.h + - string.h: contrib/libs/gsasl/gl/string....
Disabled rsa for now. Creating a issue to solve this later
@@ -64,7 +64,7 @@ before_script: - cd - - mkdir build install - export BUILD_OPTIONS=" \ - -DBUILD_RSA_REMOTE_SERVICE_ADMIN_DFI=ON \ + -DBUILD_RSA_REMOTE_SERVICE_ADMIN_DFI=OFF \ -DBUILD_DEPLOYMENT_ADMIN=ON \ -DBUILD_DEPENDENCY_MANAGER=ON \ -DBUILD_EXAMPLES=ON -DBUILD_LOG_SERVICE=ON \ @@ -79,7 +79,7 @@ before_script: -D...
Update: NAR.py: delaybeforesend is needed for some reason, also raw output removed as there is a separate GetRawOutput()
import pexpect NAR = pexpect.spawn('./../../NAR shell') -NAR.delaybeforesend = None def parseTruth(T): return {"frequency": T.split("frequency=")[1].split(" confidence")[0], "confidence": T.split(" confidence=")[1]} @@ -33,7 +32,7 @@ def GetOutput(): inputs = [parseTask(l.split("Input: ")[1]) for l in lines if l.starts...
examples/ostest: pthread clean-up test must call pthread_consistent, not pthread_mutex_unlock() on cancellation if robust mutexes are enabled.
@@ -60,12 +60,21 @@ static void cleanup(FAR void * data) FAR struct sync_s *sync = (FAR struct sync_s *) data; int status; +#ifdef CONFIG_PTHREAD_MUTEX_UNSAFE status = pthread_mutex_unlock(&sync->lock); if (status != 0) { printf("pthread_cleanup: ERROR pthread_mutex_unlock in cleanup handler. " "Status: %d\n", status);...
Rust: Specify the symbols to generate bindings for
@@ -17,6 +17,9 @@ fn main() { // The input header we would like to generate // bindings for. .header("wrapper.h") + // Include only the necessary functions and enums + .whitelist_function("(key|ks|kdb).*") + .whitelist_var("(KEY|KDB).*") // bindgen uses clang for anything C-related. // Here we set the necessary include...
Add typedefs for virtual allocation structs in ordinary identifier namespace
@@ -2183,7 +2183,7 @@ typedef enum VmaVirtualBlockCreateFlagBits { typedef VkFlags VmaVirtualBlockCreateFlags; /// Parameters of created #VmaVirtualBlock object to be passed to vmaCreateVirtualBlock(). -struct VmaVirtualBlockCreateInfo +typedef struct VmaVirtualBlockCreateInfo { /** \brief Total size of the virtual blo...
idf.py hints: add hint IRAM overflow
- re_variables: ['lan8720'] hint_variables: ['esp_eth_phy_new_lan8720', 'esp_eth_phy_new_lan87xx'] + +- + re: "`iram0_0_seg' overflowed" + hint: "The applications static IRAM usage is larger than the available IRAM size.\nFor more information on how to reduze IRAM usage run 'idf.py docs -sp api-guides/performance/ram-u...
VCL: Fix race condition in event thread function
@@ -211,16 +211,19 @@ vce_event_thread_fn (void *arg) vce_event_handler_reg_t *handler; uword *p; + pthread_mutex_lock (&(evt->generator_lock)); + clib_spinlock_lock (&(evt->events_lockp)); evt->recycle_event = 1; // Used for recycling events with no handlers - + clib_spinlock_unlock (&(evt->events_lockp)); do { - pthr...
add host, arch, nuldev to os.versioninfo()
@@ -228,6 +228,45 @@ tb_int_t xm_os_versioninfo(lua_State* lua) // set back to table lua_settable(lua, -3); + lua_pushstring(lua, "host"); + // init host +#if defined(TB_CONFIG_OS_WINDOWS) + lua_pushstring(lua, "windows"); +#elif defined(TB_CONFIG_OS_MACOSX) + lua_pushstring(lua, "macosx"); +#elif defined(TB_CONFIG_OS_...
Bump version to 13.0-3. Release branches for 13.0-2 were created.
@@ -19,7 +19,7 @@ ROCM_VERSION=${ROCM_VERSION:-4.0.0} # Set the AOMP VERSION STRING and AOMP_PROJECT_REPO_BRANCH. AOMP_VERSION=${AOMP_VERSION:-"13.0"} -AOMP_VERSION_MOD=${AOMP_VERSION_MOD:-"2"} +AOMP_VERSION_MOD=${AOMP_VERSION_MOD:-"3"} AOMP_VERSION_STRING=${AOMP_VERSION_STRING:-"$AOMP_VERSION-$AOMP_VERSION_MOD"} expor...
[mechanics] comment dead code
@@ -627,18 +627,18 @@ void PivotJointR::_normalDoF(const BlockVector& q0, SiconosVector& ans, int axis changeFrameAbsToBody(q0.getAllVect()[0], tmp2); ans = *tmp2; return; - ::boost::math::quaternion<double> q1(q0.getValue(3), q0.getValue(4), - q0.getValue(5), q0.getValue(6)); - - // _A is in the q1 frame, so change it...
[test] Make sm2_internal_test less fragile to changes in the ec module Since these are KATs, the trailing randomness consumed by the ec module does not really matter. So make the fake random buffer circular.
@@ -37,17 +37,18 @@ static size_t fake_rand_size = 0; static int get_faked_bytes(unsigned char *buf, int num) { - int i; - if (fake_rand_bytes == NULL) return saved_rand->bytes(buf, num); - if (!TEST_size_t_le(fake_rand_bytes_offset + num, fake_rand_size)) + if (!TEST_size_t_gt(fake_rand_size, 0)) return 0; - for (i = ...
[security] yolint: fix migrations.
@@ -482,12 +482,6 @@ migrations: - a.yandex-team.ru/strm/vagon/pkg/vagon - a.yandex-team.ru/strm/vagon/pkg/vagon_test - a.yandex-team.ru/strm/yql/ydb/create_table - - a.yandex-team.ru/security/impulse/api/internal/db - - a.yandex-team.ru/security/impulse/api/scan-api/internal/config - - a.yandex-team.ru/security/impuls...
Fix documentation of ocf_cache_is_running()
@@ -137,8 +137,8 @@ bool ocf_cache_is_device_attached(ocf_cache_t cache); * * @param[in] cache Cache object * - * @retval 1 Caching device is being stopped - * @retval 0 Caching device is being stopped + * @retval 1 Caching device is running + * @retval 0 Caching device is not running */ bool ocf_cache_is_running(ocf_c...
crypto/bio/bss_bio.c/bio_write: improve border check CLA:trivial
@@ -273,7 +273,7 @@ static int bio_write(BIO *bio, const char *buf, int num_) BIO_clear_retry_flags(bio); - if (!bio->init || buf == NULL || num == 0) + if (!bio->init || buf == NULL || num_ <= 0) return 0; b = bio->ptr;
Tests: one more alert skipped in test_json_application_many.
@@ -241,6 +241,7 @@ class TestUnitConfiguration(unit.TestUnitControl): def test_json_application_many(self): self.skip_alerts.extend([ r'eventfd.+failed', + r'epoll_create.+failed', r'failed to apply new conf' ]) apps = 999
[core] get_http_method_key() tweak
@@ -187,7 +187,7 @@ int get_http_version_key(const char *s, size_t slen) { http_method_t get_http_method_key(const char *s, const size_t slen) { if (slen == 3 && s[0] == 'G' && s[1] == 'E' && s[2] == 'T') return HTTP_METHOD_GET; - const buffer *kv = http_methods; + const buffer *kv = http_methods+1; /*(step over http_m...
fix click to go into master
@@ -2233,11 +2233,6 @@ dragrightmouse(const Arg *arg) createoverlay(); } - if (tempc != selmon->sel) { - focus(tempc); - zoom(NULL); - } - Client *c = selmon->sel; if (XGrabPointer(dpy, root, False, MOUSEMASK, GrabModeAsync, GrabModeAsync, @@ -2275,6 +2270,11 @@ dragrightmouse(const Arg *arg) if (dragging) { XWarpPoint...
Fix boost packages for suse
@@ -25,16 +25,28 @@ URL: https://github.com/holgerBerger/hpc-workspace BuildRequires: gcc-c++ BuildRequires: python3-devel BuildRequires: boost-devel +%if 0%{?suse_version} +BuildRequires: libboost_system-devel +BuildRequires: libboost_filesystem-devel +BuildRequires: libboost_program_options-devel +%endif BuildRequire...
Error out if bogus entries for an AO table. If the segrelid, visimaprelid, or the visimapidxid fields are 0 for an AO table, then error out.
@@ -1061,6 +1061,15 @@ DatabaseInfo_HandleAppendOnly( aoEntry = DatabaseInfo_FindPgAppendOnly( pgAppendOnlyHashTable, dbInfoRel->relationOid); + + if ((aoEntry->segrelid == 0) || (aoEntry->visimaprelid == 0) || + (aoEntry->visimapidxid == 0)) + elog(ERROR, "Null entries for Append-Only relation id %u, " + "relation nam...
Migrate build badge from Travis CI to Github Actions.
@@ -3,7 +3,7 @@ PAPPL - Printer Application Framework ![Version](https://img.shields.io/github/v/release/michaelrsweet/pappl?include_prereleases) ![Apache 2.0](https://img.shields.io/github/license/michaelrsweet/pappl) -[![Build Status](https://travis-ci.org/michaelrsweet/pappl.svg?branch=master)](https://travis-ci.org...
meson: use b_sanitize for ubsan
@@ -90,6 +90,10 @@ test_sources = [ crt ] +# Our ubsan implementation can't be used by the tests themselves, +# since it is internal to libc.so and ld.so. +test_override_options = ['b_sanitize=none'] + if static test_sources += '../options/internal/gcc-extra/mlibc_crtbegin.S' test_sources += '../options/internal' / hos...
Testing: BUDG output
. ./include.sh -REDIRECT=/dev/null +label="pseudo_budg_test" +set -u +tempOut=temp.$label.txt +tempRef=temp.$label.ref -${tools_dir}/grib_ls ${data_dir}/budg > $REDIRECT -${tools_dir}/grib_dump ${data_dir}/budg > $REDIRECT +${tools_dir}/grib_ls -j ${data_dir}/budg > $tempOut +cat > $tempRef << EOF +{ "messages" : [ + {...
prefixed m4 macros in configure.ac
@@ -23,11 +23,12 @@ dnl dnl NOTE: esyscmd() is a GNU M4 extension. Thus, we wrap it in an appropriate dnl test. I believe this test will work, but I don't have a place with non- dnl GNU M4 to test it right now. -define([expat_version], ifdef([__gnu__], +m4_define([expat_version], + m4_ifdef([__gnu__], [esyscmd(conftool...
Storage Plugins: Add ToDo item
@@ -102,4 +102,5 @@ TODO: Describe difference between keys that store null values (binary data) and TODO: Describe how to store arrays properly (`array` metadata): Just add a link to `arrays.md` TODO: Add information on how plugins should store comment (meta)data TODO: Document that a plugin should keep the ordering of...
dm: virtio: bugfix for polling mode In vxworks, virtio-console FE driver only initiate 2 virtqueues, but BE creates 2+ virtqueues for it. So the rest of the virtqueues are not initiated. vq->used->flags cannot be used directly without any condition. Acked-by: Yu Wang
@@ -86,6 +86,8 @@ virtio_poll_timer(void *arg, uint64_t nexp) for (i = 0; i < base->vops->nvq; i++) { vq = &base->queues[i]; + if(!vq_ring_ready(vq)) + continue; vq->used->flags |= VRING_USED_F_NO_NOTIFY; /* TODO: call notify when necessary */ if (vq->notify)
Remove pull from docker compose gitlab.
@@ -48,13 +48,13 @@ sub_build() { # Build MetaCall Docker Compose for GitLab (link manually dockerignore files) sub_build_gitlab() { ln -sf tools/base/.dockerignore .dockerignore - docker-compose -f docker-compose.yml -f docker-compose.gitlab-ci.yml build --pull deps + docker-compose -f docker-compose.yml -f docker-com...
[python] fill user namespace for programs without PY_MAIN in :repl entry point This enables loading __main__.py contents for python binaries run with Y_PYTHON_ENTRY_POINT=":repl". With this patch `ya py` will nicely start shell for python programs.
@@ -23,7 +23,7 @@ def repl(): import traceback traceback.print_exc() - if py_main and '__main__' not in user_ns: + if '__main__' not in user_ns: def run(args): if isinstance(args, basestring): import shlex @@ -34,6 +34,12 @@ def repl(): getattr(mod, func_name)() user_ns['__main__'] = run + else: + try: + mod = __res.im...
Use additional state in CCM to track auth data input.
@@ -100,7 +100,8 @@ void mbedtls_ccm_free( mbedtls_ccm_context *ctx ) #define CCM_STATE__CLEAR 0 #define CCM_STATE__STARTED (1 << 0) #define CCM_STATE__LENGHTS_SET (1 << 1) -#define CCM_STATE__AUTH_DATA_FINISHED (1 << 2) +#define CCM_STATE__AUTH_DATA_STARTED (1 << 2) +#define CCM_STATE__AUTH_DATA_FINISHED (1 << 3) #def...
tests: avoid use of banned function strncat
static int run_command_varg(char **output, const char *command, va_list args) { FILE *pipe; + char redirect_stderr[] = "%s 2>&1"; char command_buf[BUFSIZ]; char buf[BUFSIZ]; char *p; int ret; + if(output) { *output = NULL; } @@ -78,18 +80,22 @@ static int run_command_varg(char **output, const char *command, va_list arg...
nvbios: Fix type of link in main() Fixes clang warning: nvbios/nvbios.c:1694:44: warning: format specifies type 'char' but the argument has type 'int' [-Wformat] printf("mode: %i, link: %hhi, ", mode, link); ~~~~ ^~~~ %i
@@ -1665,7 +1665,8 @@ int main(int argc, char **argv) { start += header_length; for (i=0; i < entry_count; i++) { - int min, max, c0, c1, c2, c3, c4, c5, mode, link; + int min, max, c0, c1, c2, c3, c4, c5, mode; + uint8_t link; switch(version) { case 0x10: mode = 0;
prepare more eap stuff
@@ -2143,17 +2143,12 @@ if(eapauth->type == EAPOL_KEY) else if(eapauth->type == EAP_PACKET) process80211exteap(authlen); else if(eapauth->type == EAPOL_ASF) process80211exteap_asf(); else if(eapauth->type == EAPOL_MKA) process80211exteap_mka(); -else if(eapauth->type == EAPOL_START) - { - if((attackstatus &DISABLE_CLIE...
notifications: fix description
@@ -96,7 +96,7 @@ export function describeNotification(notification: IndexedNotification) { } switch (idx.description) { case 'post': - return singleAuthor ? 'replied to you' : 'Your post received replies'; + return 'Your post received replies in'; case 'link': return `New link${plural ? 's' : ''} in`; case 'comment': ...
check the return value of BN_new() and BN_dup()
@@ -417,7 +417,7 @@ int test_BN_eq_word(const char *file, int line, const char *bns, const char *ws, if (a != NULL && BN_is_word(a, w)) return 1; - bw = BN_new(); + if ((bw = BN_new()) != NULL) BN_set_word(bw, w); test_fail_bignum_message(NULL, file, line, "BIGNUM", bns, ws, "==", a, bw); BN_free(bw); @@ -431,9 +431,9 ...
validate filesize before allocating chunk memory
@@ -70,6 +70,17 @@ extract_chunk_table ( return ctxt->report_error ( ctxt, EXR_ERR_INVALID_ARGUMENT, "Invalid file with no chunks"); + if (chunkbytes + chunkoff > (uint64_t) ctxt->file_size) + return ctxt->print_error ( + ctxt, + EXR_ERR_INVALID_ARGUMENT, + "chunk table size (%" PRIu64 + ") too big for file size (%" PR...
publish: fix permissions bug when notebook is associated with a foreign hosted group
* == :: -+$ state-one ++$ state-two $: our-paths=(list path) books=(map @tas notebook) subs=(map [@p @tas] notebook) == :: +$ versioned-state - $% [%1 state-one] + $% [%1 state-two] + [%2 state-two] == :: +$ metadata-delta =/ old-state=(each versioned-state tang) (mule |.(!<(versioned-state old))) ?: ?=(%& -.old-state)...
Don't allow ACK frame in 0RTT packet
@@ -4022,10 +4022,13 @@ static ssize_t conn_recv_pkt(ngtcp2_conn *conn, const uint8_t *pkt, payloadlen -= (size_t)nread; if (fr->type == NGTCP2_FRAME_ACK) { + /* It probably illegal to send ACK in 0RTT protected packet. */ + if ((hd.flags & NGTCP2_PKT_FLAG_LONG_FORM) && + hd.type == NGTCP2_PKT_0RTT_PROTECTED) { + retur...
[Kernel] mutex can be used before scheduler startup.
@@ -644,17 +644,18 @@ rt_err_t rt_mutex_take(rt_mutex_t mutex, rt_int32_t time) register rt_base_t temp; struct rt_thread *thread; + RT_ASSERT(mutex != RT_NULL); + + /* get current thread */ + thread = rt_thread_self(); + if (!thread) return RT_EOK; /* return directory if scheduler not started */ + /* this function mus...
HV: Using one assignment in for loop statement To follow Misra-C standard, only one assignment is allowed in both initialization and update statement. Noncompliant example: for (i = 0, a = arry[0]; ...; i++, a = arry[i]){...}
@@ -620,9 +620,8 @@ void init_paging(void) attr_uc); /* Modify WB attribute for E820_TYPE_RAM */ - for (i = 0U, entry = &e820[0]; - i < e820_entries; - i++, entry = &e820[i]) { + for (i = 0U; i < e820_entries; i++) { + entry = &e820[i]; if (entry->type == E820_TYPE_RAM) { modify_mem(&map_params, (void *)entry->baseaddr...
Tools: Redundant check
@@ -461,7 +461,7 @@ int grib_tool_new_handle_action(grib_runtime_options* options, grib_handle* h) if (!first_handle && options->handle_count > 1) { fprintf(stdout, ",\n"); } - if (json && first_handle) { + if (first_handle) { fprintf(stdout, "{ \"messages\" : [ \n"); first_handle = 0; }
Fix typo, Improve runas forground window focus
@@ -2446,18 +2446,16 @@ NTSTATUS RunAsCreateProcessThread( SERVICE_STATUS_PROCESS serviceStatus = { 0 }; SC_HANDLE serviceHandle = NULL; HANDLE processHandle = NULL; - HANDLE newProcessHandle = NULL; STARTUPINFOEX startupInfo; SIZE_T attributeListLength; PPH_STRING commandLine = NULL; ULONG bytesNeeded = 0; PPH_STRING ...
High Level API: Fix broken links
@@ -9,7 +9,7 @@ should be hard to use it in a wrong way. This tutorial gives an introduction for using the high-level API. The API supports all CORBA Basic Data Types, except for `wchar`, as well as the `string` type -(see also [Data Types](../high-level-api#data-types) below). +(see also [Data Types](#data-types) belo...
fix cuda python empty test set bug
@@ -36,7 +36,7 @@ public: Y_UNUSED(objectiveDescriptor); Y_UNUSED(evalMetricDescriptor); Y_UNUSED(allowClearPool); - CB_ENSURE(testPoolPtrs.size() == 1, "Multiple eval sets not supported for GPU"); + CB_ENSURE(testPoolPtrs.size() <= 1, "Multiple eval sets not supported for GPU"); Y_VERIFY(evalResultPtrs.size() == testP...
Update README.md Added MPFIT details
@@ -119,6 +119,7 @@ Poser | [poser_octavioradii.c](src/poser_octavioradii.c) | A potentially very fa Poser | [poser_turveytori.c](src/poser_turveytori.c) | A moderately fast, fairly high precision poser that works by determine the angle at the lighthouse between many sets of two sensors. Using the inscirbed angle theor...
Badger2040: Attempt to power off on soft reset
@@ -54,6 +54,8 @@ void Badger2040_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t /***** Destructor ******/ mp_obj_t Badger2040___del__(mp_obj_t self_in) { _Badger2040_obj_t *self = MP_OBJ_TO_PTR2(self_in, _Badger2040_obj_t); + // Try to ensure power is cut off when soft reset (IE: "Stop" in Thonny) + ...
doc: Update hmac article
@@ -106,6 +106,14 @@ Setup .. note:: The API *esp_efuse_write_field_cnt(ESP_EFUSE_SOFT_DIS_JTAG, ESP_EFUSE_SOFT_DIS_JTAG[0]->bit_count)* can be used to burn "soft JTAG disable" bits on {IDF_TARGET_NAME}. +.. only:: esp32s2 or esp32s3 + + .. note:: If ``HARD_DIS_JTAG`` eFuse is set, then ``SOFT_DIS_JTAG`` functionality ...
stacktrace: use referenced context
#include <fluent-bit/flb_info.h> /* Libbacktrace support */ -#if defined(FLB_HAVE_LIBBACKTRACE) && defined(FLB_DUMP_STACKTRACE) +#if defined(FLB_HAVE_LIBBACKTRACE) #include <backtrace.h> #include <backtrace-supported.h> @@ -34,8 +34,6 @@ struct flb_stacktrace { int line; }; -extern struct flb_stacktrace flb_st; - stati...
Run tests with OTP25 & master
@@ -17,7 +17,7 @@ jobs: cc: ["gcc-4.8", "gcc-5", "gcc-6", "gcc-7", "gcc-8", "gcc-9", "gcc-10", "clang-3.9", "clang-10"] cflags: ["-Os", "-O2", "-O3"] - otp: ["21", "22", "23", "24"] + otp: ["21", "22", "23", "24", "25", "master"] exclude: - os: "ubuntu-18.04"
fix test_thread_yield fail bug in multiple utest loop case.
@@ -259,6 +259,7 @@ static void thread6_entry(void *parameter) static void test_thread_yield(void) { rt_err_t ret_startup = -RT_ERROR; + thread5_source = 0; tid5 = rt_thread_create("thread5", thread5_entry, RT_NULL,
remove 'noxsave' in acrn.conf xsave is enabled for guests
title The ACRN Service OS linux /EFI/org.clearlinux/kernel-org.clearlinux.pk414-sos.4.14.23-19 -options pci_devices_ignore=(0:18:2) noxsave maxcpus=1 console=tty0 console=ttyS0 i915.nuclear_pageflip=1 root=PARTUUID=<UUID of rootfs partition> rw rootwait clocksource=hpet ignore_loglevel no_timer_check consoleblank=0 i91...
Tools: gdbgui is not supported on Python 3.11 Closes
@@ -444,8 +444,12 @@ def action_extensions(base_actions: Dict, project_path: str) -> Dict: env['PURE_PYTHON'] = '1' try: process = subprocess.Popen(args, stdout=gdbgui_out, stderr=subprocess.STDOUT, bufsize=1, env=env) - except Exception as e: + except (OSError, subprocess.CalledProcessError) as e: print(e) + if sys.ve...
README: using entities.
@@ -331,9 +331,9 @@ have customized), repeat the following command for each one: where - * `--module` sets the filename prefix for the Unit module specific to the - PHP version (that is, the resulting module is called - <prefix>.**unit.so**). + * `--module` sets the filename prefix for the Unit module specific + to the...
Use "module" instead of "namespace" in docstring
(tuple import* (string path) ;argm)) (defmacro use - "Similar to import, but imported bindings are not prefixed with a namespace + "Similar to import, but imported bindings are not prefixed with a module identifier. Can also import multiple modules in one shot." [& modules] ~(do ,;(map |~(,import* ,(string $) :prefix "...
mambo: add a mambo rtc_write This just keeps the requested delta and uses it to adjust subsequent rtc_read calls.
@@ -173,6 +173,8 @@ static void bogus_disk_flash_init(void) } } +static int64_t time_delta = 0; + static int64_t mambo_rtc_read(__be32 *ymd, __be64 *hmsm) { int64_t mambo_time; @@ -186,6 +188,7 @@ static int64_t mambo_rtc_read(__be32 *ymd, __be64 *hmsm) mambo_time = callthru0(SIM_GET_TIME_CODE); mt = mambo_time >> 32; ...
ExtendedTools: Fix firewall tab resolving hostnames with DoH
@@ -36,6 +36,7 @@ LIST_ENTRY EtFwAgeListHead = { &EtFwAgeListHead, &EtFwAgeListHead }; _FwpmNetEventSubscribe FwpmNetEventSubscribe_I = NULL; BOOLEAN EtFwEnableResolveCache = TRUE; +BOOLEAN EtFwEnableResolveDoH = FALSE; PH_INITONCE EtFwWorkQueueInitOnce = PH_INITONCE_INIT; SLIST_HEADER EtFwQueryListHead; PH_WORK_QUEUE ...
Mark internal codecs as static const. There could become public const arrays later, but for now they're only used here.
@@ -122,7 +122,7 @@ static vk_to_c_entry vk_to_c[NUM_VK_TO_C_ENTRIES]; /** Converts TCOD_FONT_LAYOUT_TCOD tile position to Extended ASCII code-point. */ -int tcod_codec_eascii_[256] = { +static const int tcod_codec_eascii_[256] = { 0, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 5...
update brushless whoop pids
@@ -58,9 +58,9 @@ const pid_rate_preset_t pid_rate_presets[] = { .index = 4, .name = "65mm 1s brushless whoop", .rate = { - .kp = {95, 95, 92}, - .ki = {71, 71, 71}, - .kd = {75, 75, 12}, + .kp = {110, 110, 132}, + .ki = {77, 77, 77}, + .kd = {78, 78, 12}, }, }, @@ -68,9 +68,9 @@ const pid_rate_preset_t pid_rate_preset...
make 337105 runnable as flang rather than amdflang
#!/bin/bash set -x -export PATH=$AOMP/../bin:$PATH +export PATH=$AOMP/bin:$PATH echo $(pwd) pth="$(pwd)/tmp/1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890/1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890/1234567890...
o no_hashexpand to disable hash table expansion lets you specify an exact size, and don't try to realloc once running.
@@ -5660,6 +5660,7 @@ static void usage(void) { " - no_inline_ascii_resp: save up to 24 bytes per item.\n" " small perf hit in ASCII, no perf difference in\n" " binary protocol. speeds up all sets.\n" + " - no_hashexpand: disables hash table expansion (dangerous)\n" " - modern: enables options which will be default in ...
CMSIS-NN: Reduced stack/heap config for example targeting Cortex-M4. It was out of sync with other targets and with default memory settings. That caused linking to fail.
; <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8> ; </h> -Stack_Size EQU 0x00000800 +Stack_Size EQU 0x00000400 AREA STACK, NOINIT, READWRITE, ALIGN=3 Stack_Mem SPACE Stack_Size @@ -43,7 +43,7 @@ __initial_sp ; <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8> ; </h> -Heap_Size EQU 0x00080000 +Heap_Size EQU 0x00000C00 AREA HEAP,...
Feat:modify log function for boatplatform.c
@@ -101,7 +101,7 @@ void *data_malloc(uint32_t size) if (TX_SUCCESS != status) { - LOG_ERROR("DAM_APP:Failed to allocate memory with %d", status); + BoatLog(BOAT_LOG_CRITICAL,"DAM_APP:Failed to allocate memory with %d", status); return NULL; } @@ -127,7 +127,7 @@ void data_free(void *data) if (TX_SUCCESS != status) { -...
haskell-bindings-fix-regression: add dependency as the binding library itself depends on elektra libs now
@@ -52,6 +52,7 @@ if (NOT BUILD_STATIC) "${CMAKE_CURRENT_SOURCE_DIR}/src/Elektra/KDB.chs" "${CMAKE_CURRENT_SOURCE_DIR}/test/Elektra.hs" "${CMAKE_CURRENT_SOURCE_DIR}/test/ElektraRealWorld.hs" + ${ELEKTRA_DEPENDENCY} ) add_custom_target (c2hs_haskell ALL DEPENDS "${BINDING_HASKELL_NAME}") if (BUILD_SHARED OR BUILD_FULL)
[mechanics] Fix contactor transform handling for SiconosHeightMap.
@@ -1059,7 +1059,6 @@ void SiconosBulletCollisionManager_impl::createCollisionObject( (base, ds, heightmap, btheight, bodyHeightMap, contactor); } -#include <iostream> void SiconosBulletCollisionManager_impl::updateShape(BodyHeightRecord &record) { SP::SiconosHeightMap height(record.shape); @@ -1097,12 +1096,30 @@ void...
minor message-pump cleanup
|% ++ message-pump . ++ give |=(gift=message-pump-gift message-pump(gifts [gift gifts])) - ++ packet-pump - (make-packet-pump packet-pump-state.state channel) + ++ packet-pump (make-packet-pump packet-pump-state.state channel) :: +work: handle a $message-pump-task :: ++ work |= task=message-pump-task ^+ [gifts state] :...
trees REFACTOR get rid of __typeof__ from LY_LIST_INSERT() macro __typeof__ is (widely used, but) compiler-specific extension, so implement the functionality without it. Furthermore, also avoid implicit cast connected with void* which is not welcome by C++ compilers.
@@ -225,13 +225,14 @@ void *ly_realloc(void *ptr, size_t size); */ #define LY_LIST_INSERT(LIST, NEW_ITEM, LINKER)\ if (!(*LIST)) { \ - *LIST = (__typeof__(*(LIST)))NEW_ITEM; \ + memcpy(LIST, &(NEW_ITEM), sizeof NEW_ITEM); \ } else { \ - do { \ - __typeof__(*(LIST)) iterator; \ - for (iterator = *(LIST); iterator->LINKE...
FEC: avoid protecting retransmissions of early packet types
@@ -28,7 +28,7 @@ protoop_arg_t schedule_frames_on_path(picoquic_cnx_t *cnx) // protect the source symbol uint8_t *data = (uint8_t *) get_pkt(packet, AK_PKT_BYTES); - picoquic_packet_type_enum packet_type = get_pkt(packet, AK_PKT_TYPE); + picoquic_packet_type_enum packet_type = retransmit_p ? get_pkt(retransmit_p, AK_P...
[test] [bug-fix] Tests could run out of file desciptors
@@ -178,6 +178,7 @@ sub spawn_server { die "fork failed:$!" unless defined $pid; if ($pid != 0) { + system("sudo prlimit --nofile=1048576:1048576 --pid $pid"); print STDERR "spawning $args{argv}->[0]... "; if ($args{is_ready}) { while (1) {
Align generic ngtcp2_sockaddr_storage to 8 bytes boundary
@@ -1762,10 +1762,24 @@ typedef struct ngtcp2_sockaddr_in { uint8_t sin_zero[8]; } ngtcp2_sockaddr_in; +# define NGTCP2_SS_MAXSIZE 128 +# define NGTCP2_SS_ALIGNSIZE (sizeof(uint64_t)) +# define NGTCP2_SS_PAD1SIZE (NGTCP2_SS_ALIGNSIZE - sizeof(uint16_t)) +# define NGTCP2_SS_PAD2SIZE \ + (NGTCP2_SS_MAXSIZE - \ + (sizeof(...
coll: bang on instantiation
@@ -1075,6 +1075,11 @@ static void coll_bind(t_coll *x, t_symbol *name) //pthread_mutex_unlock(&x->unsafe_mutex); if(!no_search){ collcommon_doread(cc, name, x->x_canvas, 0); + if(strcmp(cc->c_filename->s_name, name->s_name) == 0){ + //bang if file read successful + //need to use clock bc x not returned yet - DK + cloc...
libhfnetdriver: use correct path to ${HonggfuzzNetDriverTempdir()}/pipe - add missing "/pipe"
@@ -281,7 +281,10 @@ static bool netDriver_checkIfServerReady(int argc, char **argv) { .sun_family = PF_UNIX, .sun_path = {}, }; - if (HonggfuzzNetDriverTempdir(sun.sun_path, sizeof(sun.sun_path)) < 0) { + char tmpdir[PATH_MAX] = {}; + if (HonggfuzzNetDriverTempdir(tmpdir, sizeof(tmpdir)) >= 0) { + snprintf(sun.sun_pat...
Add missing check for sample usage in material textures;
@@ -2066,6 +2066,7 @@ Material* lovrMaterialCreate(const MaterialInfo* info) { lovrRetain(textures[i]); Texture* texture = textures[i] ? textures[i] : state.defaultTexture; lovrCheck(i == 0 || texture->info.type == TEXTURE_2D, "Material textures must be 2D"); + lovrCheck(texture->info.usage & TEXTURE_SAMPLE, "Textures ...
Take into account handshake confirmation
@@ -8970,7 +8970,9 @@ void ngtcp2_conn_set_loss_detection_timer(ngtcp2_conn *conn, ngtcp2_tstamp ts) { if ((!in_pktns || ngtcp2_rtb_num_ack_eliciting(&in_pktns->rtb) == 0) && (!hs_pktns || ngtcp2_rtb_num_ack_eliciting(&hs_pktns->rtb) == 0) && ngtcp2_rtb_num_ack_eliciting(&pktns->rtb) == 0 && - (conn->server || (conn->f...
Java: Ignore exceptions while loading dependencies.
// Automatically load native library. %pragma(java) jniclasscode=%{ static { - // Load dependencies - System.loadLibrary("jvm"); - System.loadLibrary("awt"); + // Load dependencies, ignore exceptions. + try { System.loadLibrary("jvm"); } catch(final Exception e) {} + try { System.loadLibrary("awt"); } catch(final Excep...
Clear the secret point in ecdh_simple_compute_key
@@ -112,7 +112,7 @@ int ecdh_simple_compute_key(unsigned char **pout, size_t *poutlen, ret = 1; err: - EC_POINT_free(tmp); + EC_POINT_clear_free(tmp); if (ctx) BN_CTX_end(ctx); BN_CTX_free(ctx);
grib_dump -j produces invalid JSON when a file has multiple messages
@@ -41,6 +41,7 @@ const char* grib_tool_description="Dump the content of a GRIB file in different const char* grib_tool_name="grib_dump"; const char* grib_tool_usage="[options] grib_file grib_file ..."; static int json=0; +static int first_handle=1; int grib_options_count=sizeof(grib_options)/sizeof(grib_option); @@ -1...
vere: removes SIGQUIT handler we were turning these into SIGABRT in order to catch them and unmap the lmdb database, but that's neither safe nor reliable.
@@ -553,19 +553,6 @@ _daemon_sign_init(void) sig_u->nex_u = u3_Host.sig_u; u3_Host.sig_u = sig_u; } - - // handle SIGQUIT (turn it into SIGABRT) - // - { - u3_usig* sig_u; - - sig_u = c3_malloc(sizeof(u3_usig)); - uv_signal_init(u3L, &sig_u->sil_u); - - sig_u->num_i = SIGQUIT; - sig_u->nex_u = u3_Host.sig_u; - u3_Host....
ExtendedTools: Update types for 20H1
@@ -176,10 +176,10 @@ PPH_STRING EtpGetNodeEngineTypeString( _In_ D3DKMT_NODEMETADATA NodeMetaData ) { - switch (NodeMetaData.EngineType) + switch (NodeMetaData.NodeData.EngineType) { case DXGK_ENGINE_TYPE_OTHER: - return PhCreateString(NodeMetaData.FriendlyName); + return PhCreateString(NodeMetaData.NodeData.FriendlyN...
Fix lovrInstanceID on non-singlepass setups;
@@ -13,7 +13,6 @@ const char* lovrShaderVertexPrefix = "" "#else \n" "#define lovrNormalMatrix mat3(transpose(inverse(lovrModel))) \n" "#endif \n" -"#define lovrInstanceID (gl_InstanceID / lovrViewportCount) \n" "#define lovrPoseMatrix (" "lovrPose[lovrBones[0]] * lovrBoneWeights[0] +" "lovrPose[lovrBones[1]] * lovrBon...
upd packages: rm unneeded scripts for dev package
@@ -569,8 +569,6 @@ deb: test themis_static themis_shared soter_static soter_shared collect_headers --version $(VERSION)+$(OS_CODENAME) \ --depends $(DEBIAN_DEV_DEPENDENCIES) \ --deb-priority optional \ - --after-install $(POST_INSTALL_SCRIPT) \ - --after-remove $(POST_UNINSTALL_SCRIPT) \ --category security \ $(HEADER...
linux/arch: use MALLOC_PERTURB_
@@ -141,6 +141,10 @@ bool arch_launchChild(honggfuzz_t* hfuzz, char* fileName) PLOG_E("setenv(MALLOC_CHECK_=7) failed"); return false; } + if (setenv("MALLOC_PERTURB_", "85", 0) == -1) { + PLOG_E("setenv(MALLOC_PERTURB_=85) failed"); + return false; + } /* * Disable ASLR:
TSCH: add debug messages to track queued packet addresses
@@ -202,6 +202,7 @@ tsch_queue_flush_nbr_queue(struct tsch_neighbor *n) /* Free packet queuebuf */ tsch_queue_free_packet(p); } + PRINTF("TSCH-queue: packet is deleted packet=%p\n", p); } } /*---------------------------------------------------------------------------*/ @@ -253,6 +254,8 @@ tsch_queue_add_packet(const li...
Add sleep_millis function
#include "backend.h" #include "util.h" +#include <unistd.h> #include <pthread.h> pthread_mutex_t dbg_mutex; @@ -29,3 +30,8 @@ void dbg_fprint_bytes(FILE* out_file, void* bytes, int byte_count) { pthread_mutex_unlock(&dbg_mutex); #endif } + + +void sleep_millis(int millis) { + usleep(millis * 1000); +}
iOS Barcode: add barcode types
@@ -987,7 +987,8 @@ static RhoCreateBarcodeViewTask* instance_create = nil; NSString *detectionString = nil; NSArray *barCodeTypes = @[AVMetadataObjectTypeUPCECode, AVMetadataObjectTypeCode39Code, AVMetadataObjectTypeCode39Mod43Code, AVMetadataObjectTypeEAN13Code, AVMetadataObjectTypeEAN8Code, AVMetadataObjectTypeCode9...
bump hdf5 to v1.10.0-patch1
@@ -63,13 +63,13 @@ BuildRequires: intel_licenses Summary: A general purpose library and file format for storing scientific data Name: %{pname}-%{compiler_family}%{PROJ_DELIM} -Version: 1.8.18 +Version: 1.10.0-patch1 Release: 1 License: Hierarchical Data Format (HDF) Software Library and Utilities License Group: %{PROJ...
.github/workflows: use make -j{CPU_NUM} to speed up checking each commit compile on github machines
@@ -9,6 +9,9 @@ jobs: steps: - uses: actions/checkout@v1 + - name: Get cpu number + run: echo "CPU_NUM=$(nproc --all)" >> $GITHUB_ENV + - name: Create a clean ubuntu container run: docker run -itd --name=ubuntu -v $GITHUB_WORKSPACE:/root/inclavare-containers ubuntu:18.04 @@ -25,9 +28,9 @@ jobs: - name: Compile "rune sh...
Improve Zink detection
@@ -82,7 +82,7 @@ void imgui_init() string ret_zink = exec(find_zink); if (ret_wined3d == "wined3d\n" ) sw_stats.engineName = "WineD3D"; - else if (ret_zink == "zink\n") + else if (ret_zink.find("zink") != std::string::npos) sw_stats.engineName = "ZINK"; else sw_stats.engineName = "OpenGL";
Don't apply blast effect unless drop also takes effect.
@@ -24856,8 +24856,8 @@ void checkdamageeffects(s_collision_attack *attack) #define _dot_time attack->recursive->time #define _dot_force attack->recursive->force #define _dot_rate attack->recursive->rate -#define _staydown0 attack->staydown.rise -#define _staydown1 attack->staydown.riseattack +#define _staydown_rise at...
Instrumented and disabled ++aq; ^% hard blows.
:: :: :::: 0: version stub :: :: :: -^% ~% %k.143 ~ ~ :: |% ++ hoon-version + {$help p/writ q/type} :: description {$hold p/type q/hoon} :: lazy evaluation == :: +++ tyro $-(type type) :: type converter ++ tone $% {$0 p/*} :: success {$1 p/(list)} :: blocks {$2 p/(list {@ta *})} :: error ~_s :: ~& [%bunt-model mod] :: ...
fix rt_size_t as rt_uint32_t
@@ -78,8 +78,8 @@ typedef unsigned long rt_uint64_t; /**< 64bit unsigned inte #else typedef signed long long rt_int64_t; /**< 64bit integer type */ typedef unsigned long long rt_uint64_t; /**< 64bit unsigned integer type */ -#endif -#endif +#endif /* ARCH_CPU_64BIT */ +#endif /* RT_USING_ARCH_DATA_TYPE */ typedef int r...
in_http: allow multiple json payloads(#5810)
@@ -194,9 +194,6 @@ int process_pack(struct flb_http *ctx, flb_sds_t tag, char *buf, size_t size) flb_input_chunk_append_raw(ctx->ins, NULL, 0, mp_sbuf.data, mp_sbuf.size); } msgpack_sbuffer_destroy(&mp_sbuf); - - break; - } else if (result.data.type == MSGPACK_OBJECT_ARRAY) { obj = &result.data;
ldns-signzone warn about high NSEC iteration counts For now just warning for possible consequences of hight counts according to: Thanks Andreas Schulze
@@ -1027,6 +1027,23 @@ main(int argc, char *argv[]) added_rrs = ldns_rr_list_new(); if (use_nsec3) { + if (verbosity < 1) + ; /* pass */ + + else if (nsec3_iterations > 500) + fprintf(stderr, "Warning! NSEC3 iterations larger than " + "500 may cause validating resolvers to return " + "SERVFAIL!\n" + "See: https://datat...
pull/push test images
@@ -483,7 +483,7 @@ jobs: run: chmod +x lib/linux/*/* bin/linux/*/* - name: Login to Container Registry - if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} + #if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} uses: docker/login-action@v1 with: registry: ${{ env.REGIST...
[hardware] Clean initiator and target signals in `slave_xbar`
@@ -529,18 +529,18 @@ module mempool_tile #( .req_ready_o ({postreg_tcdm_slave_req_ready, local_slave_xbar_req_ready} ), .req_tgt_addr_i (local_slave_xbar_tgt_sel ), .req_wdata_i (local_slave_xbar_data_agg ), - .resp_valid_i (bank_resp_valid ), - .resp_ready_o (bank_resp_ready ), - .resp_ini_addr_i(bank_resp_ini_addr )...
trace: rename the various instance fields to plugin_instance.
@@ -412,7 +412,7 @@ int flb_trace_chunk_input(struct flb_trace_chunk *trace) msgpack_pack_str_with_body(&mp_pck, "trace_id", strlen("trace_id")); msgpack_pack_str_with_body(&mp_pck, trace->trace_id, strlen(trace->trace_id)); - msgpack_pack_str_with_body(&mp_pck, "input_instance", strlen("input_instance")); + msgpack_pa...