message
stringlengths
6
474
diff
stringlengths
8
5.22k
Fix incorrect function documentation
@@ -282,8 +282,13 @@ typedef enum { * \param do_set_lengths If non-zero, then set lengths prior to * calling encryption / decryption. * \param expected_output Expected output - * \param expected_status_arg Expected status + * \param expect_valid_signature If non zero, we expect the signature to be + * valid * \param is...
Applied namespace renaming and formatting to Lua.
%module tinysplinelua -// std::vector<ts::rational> to lua table -%typemap(out) std::vector<ts::rational> * { +// Map std::vector<tinyspline::rational> to Lua table. +%typemap(out) std::vector<tinyspline::rational> * { const int size = $1->size(); lua_createtable(L, size, 0); for (int i = 0; i < size; i++) { return 1; ...
maint: update badges in README.md
@@ -5,7 +5,7 @@ By the [luaposix project][github] [![License](http://img.shields.io/:license-mit-blue.svg)](http://mit-license.org) [![travis-ci status](https://secure.travis-ci.org/luaposix/luaposix.png?branche=master)](http://travis-ci.org/luaposix/luaposix/builds) -[![Stories in Ready](https://badge.waffle.io/luapos...
lis2dw12: mask full_scale and rate setters
@@ -510,7 +510,8 @@ lis2dw12_set_full_scale(struct sensor_itf *itf, uint8_t fs) goto err; } - reg = (reg & ~LIS2DW12_CTRL_REG6_FS) | fs; + reg &= ~LIS2DW12_CTRL_REG6_FS; + reg |= (fs & LIS2DW12_CTRL_REG6_FS); rc = lis2dw12_write8(itf, LIS2DW12_REG_CTRL_REG6, reg); if (rc) { @@ -573,7 +574,8 @@ lis2dw12_set_rate(struct ...
CPU usage can actually go over 1 in some cases when have multiple CPUs available.
@@ -480,17 +480,6 @@ static PyObject *wsgi_request_metrics(void) total_cpu_time += cpu_user_time; total_cpu_time += cpu_system_time; - /* - * This can add up to just over 1.0 because of time do things. In - * this case force it back into range 0 to 1.0. The chart will be - * capped at 1.0 anyway. - */ - - if (total_cpu...
Support string retrun value, issue#293 Add reference counter incrementation in OP_RETURN
@@ -526,15 +526,18 @@ inline static int op_return( mrb_vm *vm, uint32_t code, mrb_value *regs ) { // return value mrb_value v = regs[GETARG_A(code)]; + mrbc_dup(vm, &v); regs[0] = v; // restore irep,pc,regs vm->callinfo_top--; mrb_callinfo *callinfo = vm->callinfo + vm->callinfo_top; + int reg_top = vm->reg_top; + vm->...
Can now query hall for own circles. Talk code depends on Closes
::[:(welp m mos (affection d)) +>.^$] :: ++ peek + |= pax/path + ?> ?=({$x *} pax) :: others unsupported. + ^- (unit (unit (pair mark prize))) + =+ piz=(look (path-to-query t.pax)) + ?~ piz ~ + ?~ u.piz [~ ~] + ``[%hall-prize u.u.piz] +:: +++ look :> query on state :> :> find the result (if any) for a given query. %- p...
teensy/Makefile: Use common gchelper_m3.s code from lib/utils.
@@ -98,10 +98,6 @@ STM_SRC_C = $(addprefix ports/stm32/,\ pin_named_pins.c \ ) -STM_SRC_S = $(addprefix ports/stm32/,\ - gchelper.s \ - ) - LIB_SRC_C = $(addprefix lib/,\ libc/string0.c \ mp-readline/readline.c \ @@ -120,8 +116,9 @@ SRC_TEENSY = $(addprefix core/,\ yield.c \ ) -OBJ = $(PY_O) $(addprefix $(BUILD)/, $(SR...
Fix link in DevelopmnentGuide.md
@@ -17,7 +17,7 @@ Coding Conventions headers as well. * **DO** disable doxygen documentation for elements that are not in the public - API as described [here](./refman/doxygen-howto.md#disable-doxygen). + API as described [here](../refman/doxygen-howto.md#disable-doxygen). * **DON'T** use global variables where possibl...
Fix divide by zero if macro used with wrong key If PSA_CIPHER_ENCRYPT_OUTPUT_SIZE was called on a non symmetric key, then a divide by zero could happen, as PSA_CIPHER_BLOCK_LENGTH will return 0 for such a key, and PSA_ROUND_UP_TO_MULTIPLE will divide by the block length.
*/ #define PSA_CIPHER_ENCRYPT_OUTPUT_SIZE(key_type, alg, input_length) \ (alg == PSA_ALG_CBC_PKCS7 ? \ + (((key_type) & PSA_KEY_TYPE_CATEGORY_MASK) \ + == PSA_KEY_TYPE_CATEGORY_SYMMETRIC ? \ PSA_ROUND_UP_TO_MULTIPLE(PSA_BLOCK_CIPHER_BLOCK_LENGTH(key_type), \ (input_length) + 1) + \ - PSA_CIPHER_IV_LENGTH((key_type), (a...
apps/system/system.c: Fix warning when passing argument 6 of 'task_spawn' from incompatible pointer type [-Wincompatible-pointer-types]
int system(FAR const char *cmd) { - FAR const char *argv[2]; + FAR char *argv[2]; struct sched_param param; posix_spawnattr_t attr; pid_t pid; @@ -141,7 +141,7 @@ int system(FAR const char *cmd) /* Spawn nsh_system() which will execute the command under the shell. */ - argv[0] = cmd; + argv[0] = (FAR char *)cmd; argv[1...
Change ya.conf.json: update sedem version Note: mandatory check (NEED_CHECK) was skipped
}, "sedem": { "formula": { - "sandbox_id": 496240886, + "sandbox_id": 501059444, "match": "SEDEM archive" },
Bridge programming: Speedup
@@ -166,13 +166,13 @@ bridge_assignment(Plan, Root, Granularity, ExclRanges, IOAPICs) :- T = t(buselement(bridge, addr(-1, -1, -1), childbus(-1, -1), PseudoBase, PseudoHigh, PseudoSize, _, _, _, _), [TP, TNP]), setrange(T,_,_,_), nonoverlap(T), - naturally_aligned(T, 256, LMem, HMem), + naturally_aligned(T, 256, LMem, ...
genvif: USB4_Supported Use CONFIG_USB_PD_USB4 to configure this field BRANCH=none TEST=verify XML output Tested-by: Denis Brockus
#define VIF_APP_VENDOR_VALUE "Google" #define VIF_APP_NAME_VALUE "EC GENVIF" -#define VIF_APP_VERSION_VALUE "3.0.0.4" +#define VIF_APP_VERSION_VALUE "3.0.0.5" #define VENDOR_NAME_VALUE "Google" @@ -1109,7 +1109,7 @@ static int gen_vif(const char *name, set_vif_field_b(&vif_fields[USB4_Supported], "USB4_Supported", - fa...
VERSION bump to version 2.2.5
@@ -64,7 +64,7 @@ endif() # micro version is changed with a set of small changes or bugfixes anywhere in the project. set(SYSREPO_MAJOR_VERSION 2) set(SYSREPO_MINOR_VERSION 2) -set(SYSREPO_MICRO_VERSION 4) +set(SYSREPO_MICRO_VERSION 5) set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MICR...
Make test_alloc_notation() robust vs allocation pattern changes
@@ -9211,15 +9211,9 @@ START_TEST(test_alloc_notation) "<!ELEMENT doc EMPTY>\n" "]>\n<doc/>"; int i; -#define MAX_ALLOC_COUNT 10 - int repeat = 0; +#define MAX_ALLOC_COUNT 20 for (i = 0; i < MAX_ALLOC_COUNT; i++) { - /* Repeat some counts to allow for cached allocations */ - if ((i == 2 && repeat < 4) || (i == 3)) { - ...
ToolStatus: Fix searching network tab processnode information
@@ -596,13 +596,9 @@ BOOLEAN NetworkTreeFilterCallback( WordMatchStringZ(PhGetTcpStateName(networkNode->NetworkItem->State))) return TRUE; - if (networkNode->PidText) { PPH_PROCESS_NODE processNode; - if (WordMatchStringRef(&networkNode->PidText->sr)) - return TRUE; - // Search the process node if (processNode = PhFind...
Fix bounds checking for "x & y".
@@ -48,6 +48,20 @@ func neg(i *big.Int) *big.Int { return big.NewInt(0).Neg(i) } +func min(i, j *big.Int) *big.Int { + if i.Cmp(j) < 0 { + return i + } + return j +} + +func max(i, j *big.Int) *big.Int { + if i.Cmp(j) > 0 { + return i + } + return j +} + func roundUpToPowerOf2Minus1(i *big.Int) *big.Int { if i.Cmp(zero...
Check blocking function Checking for block elgibility. Not finished yet, need to remove the passive block check and implement in attack logic.
@@ -19453,6 +19453,104 @@ void set_opponent(entity *ent, entity *other) } +// Caskey, Damon V. +// 2018-09-16 +// +// Run a series of verifications to find out if entity can +// block attack. Return true of block is possible. +int check_can_block(entity *ent, entity *attacker, s_collision_attack *attack) +{ + // No blo...
benchmarks: add cframework only to storage benchmark
@@ -4,7 +4,7 @@ add_headers (HDR_FILES) macro (do_benchmark source) include_directories ("${CMAKE_CURRENT_SOURCE_DIR}") - set (SOURCES ${HDR_FILES} $<TARGET_OBJECTS:cframework> benchmarks.c benchmarks.h ${source}.c) + set (SOURCES ${HDR_FILES} ${ADDITIONAL_SOURCES} benchmarks.c benchmarks.h ${source}.c) add_executable ...
grib_util_set_spec: Print status of GRIBEX mode
@@ -382,6 +382,7 @@ static void print_values(grib_context* c, const grib_util_grid_spec2* spec, } printf("ECCODES DEBUG grib_util: data_values are CONSTANT? %d\t(min=%.16e, max=%.16e)\n", isConstant, minVal, maxVal); + if (c->gribex_mode_on) printf("ECCODES DEBUG grib_util: GRIBEX mode is turned on!\n"); #if 0 if (spec...
libhfuzz/instrument: avoid situation in which memcmp() used in instrumentation equals instrumented memcmp
@@ -79,13 +79,19 @@ static void* getsym(const char* sym) { #endif /* defined(RTLD_NEXT) */ } +extern int __wrap_memcmp(const void* s1, const void* s2, size_t n) __attribute__((weak)); static void initializeLibcFunctions(void) { libc_memcmp = (int (*)(const void* s1, const void* s2, size_t n))getsym("memcmp"); if (!libc...
Fix the wrong way to detect the trailing space
@@ -1386,6 +1386,8 @@ static void gen_prov_start(struct prov_rx *rx, struct os_mbuf *buf) return; } + u16_t trailing_space = OS_MBUF_TRAILINGSPACE(link.rx.buf); + link.rx.buf->om_len = net_buf_simple_pull_be16(buf); link.rx.id = rx->xact_id; link.rx.fcs = net_buf_simple_pull_u8(buf); @@ -1399,7 +1401,7 @@ static void g...
Get rid of the CRC32 check sum
@@ -464,6 +464,7 @@ static int inflate_block(BGZF* fp, int block_length) return -1; } +#if 0 // Check CRC of uncompressed block matches the gzip header. // NB: we may wish to switch out the zlib crc32 for something more performant. // See PR#361 and issue#467 @@ -473,6 +474,7 @@ static int inflate_block(BGZF* fp, int b...
mlearning: nnabla: fix include path During contribution the folders have moved and the path should be updated
ifeq ($(CONFIG_NNABLA_RT),y) CONFIGURED_APPS += $(APPDIR)/mlearning/libnnablart -CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(APPDIR)/mlearning/libnnablart/nnabla-c-runtime/include/nnablart/} -CXXFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(APPDIR)/mlearning/libnnablart/nnabla-c-runtime/include/nnablart/} +C...
CI: Disable pipelines generated by push on dev branches
@@ -9,6 +9,18 @@ stages: - deploy - post_deploy +# pipelines will not be created in such two cases: +# 1. MR push +# 2. push not on "master/release" branches, and not tagged +# This behavior could be changed after the `rules: changes` feature is implemented +workflow: + rules: + - if: '$CI_PIPELINE_SOURCE == "merge_req...
awm writes window titles
@@ -23,14 +23,25 @@ typedef struct view { ca_layer* layer; } view_t; +typedef struct text_box { + ca_layer* layer; + Size size; + Point origin; + Size font_size; + Size font_padding; + Point cursor_pos; +} text_box_t; + typedef struct user_window { Rect frame; + text_box_t title_text_box; ca_layer* layer; //view_t* tit...
DBus: Use fences for code blocks
@@ -61,40 +61,56 @@ Alternatively, (with the option announce=once) only a single message is send: The recommended way is to globally mount the plugin: +```sh kdb global-mount dbus +``` Alternatively one can mount the plugin additionally to a storage plugin, e.g.: +```sh kdb mount file.dump / dump dbus +``` For openicc ...
Improve sanity checking of VariantRecord.rlen
@@ -1159,13 +1159,14 @@ cdef inline bcf_sync_end(VariantRecord record): cdef bcf_hdr_t *hdr = record.header.ptr cdef bcf_info_t *info cdef int end_id = bcf_header_get_info_id(record.header.ptr, b'END') + cdef int ref_len = len(record.ref) # Ensure rlen can't ever become negative if record.ptr.rlen < 0: - record.ptr.rle...
Use ++rev over ++swp, for safety.
%+ can 5 %+ turn `(list @)`~[h4 h3 h2 h1 h0] :: endianness - |=(h=@ 1^(swp 3 h)) + |=(h=@ 1^(rev 3 4 h)) =: a h0 aa h0 b h1 bb h1 c h2 cc h2
honggfuzz: show display after receiving SIGLARM only
@@ -59,12 +59,14 @@ static void exitWithMsg(const char* msg, int exit_code) { abort(); } +static bool showDisplay = true; void sigHandler(int sig) { /* We should not terminate upon SIGALRM delivery */ if (sig == SIGALRM) { if (fuzz_shouldTerminate()) { exitWithMsg("Terminating forcefully\n", EXIT_FAILURE); } + showDisp...
framework/araui: Fix renderer pixel format problem Didn't support RGB888 format. Added.
@@ -465,14 +465,23 @@ static void ui_draw_triangle_segment(int32_t y1, int32_t y2) while (x--) { iu = (int32_t)((U / 65536.0f) * (g_rc.tex_width - 1) + 0.5f); iv = (int32_t)((V / 65536.0f) * (g_rc.tex_height - 1) + 0.5f); - uv_offset = ((iv * g_rc.tex_width) + iu) * 4; + if (g_rc.tex_pf == UI_PIXEL_FORMAT_RGBA8888) { +...
actions BUGFIX expression syntax
@@ -29,7 +29,7 @@ jobs: name: ${{ matrix.config.name }} runs-on: ${{ matrix.config.os }} # mac-OS does not implement robust mutexes so it is not supported needs: git-branch - if: matrix.config.branches != 'devel-only' || needs.git-branch.outputs.branch-name == 'devel' + if: ${{ matrix.config.branches != 'devel-only' ||...
Match .circleci commit check with GH-A
@@ -52,9 +52,9 @@ submodules=("cva6" "boom" "ibex" "gemmini" "hwacha" "icenet" "nvdla" "rocket-chi dir="generators" if [ "$CIRCLE_BRANCH" == "master" ] || [ "$CIRCLE_BRANCH" == "dev" ] then - branches=("master") + branches=("master" "main") else - branches=("master" "dev") + branches=("master" "main" "dev") fi search
Fixes coredump when stats parse request
@@ -505,7 +505,6 @@ stats_add_num(struct stats_buffer *buf, struct string *key, int64_t val) } return DN_OK; - } static rstatus_t @@ -996,6 +995,9 @@ parse_request(int sd, struct stats_cmd *st_cmd) } else { // message received log_debug(LOG_VERB, "%s", mesg); reqline[0] = strtok(mesg, " \t\n"); + if (!reqline[0]) { + r...
removed unneeded value from struct
#define GPSDDATA_MAX 1536 #define ESSID_LEN_MAX 32 + #define RSN_LEN_MAX 24 #define TIME_INTERVAL 5 #define EAPOLTIMEOUT 150000 #define PROBEREQUESTLIST_MAX 512 #define MYPROBERESPONSELIST_MAX 512 +#define WEAKCANDIDATE_MAX 64 +#define WEAKCANDIDATELIST_MAX 512 + #define BEACONINTERVALL 0x3e8 #define CS_BROADCOM 1 #def...
Doxygen: Remove unused options from Doxyfile This fixes a warning reported by versions of Doxygen compiled without support for `libclang`.
@@ -1034,25 +1034,6 @@ USE_HTAGS = NO VERBATIM_HEADERS = NO -# If the CLANG_ASSISTED_PARSING tag is set to YES, then doxygen will use the -# clang parser (see: http://clang.llvm.org/) for more accurate parsing at the -# cost of reduced performance. This can be particularly helpful with template -# rich C++ code for whi...
d2i_X509: revert calling X509v3_cache_extensions() Fixes
@@ -150,32 +150,9 @@ ASN1_SEQUENCE_ref(X509, x509_cb) = { ASN1_EMBED(X509, signature, ASN1_BIT_STRING) } ASN1_SEQUENCE_END_ref(X509, X509) -IMPLEMENT_ASN1_ALLOC_FUNCTIONS_fname(X509, X509, X509) +IMPLEMENT_ASN1_FUNCTIONS(X509) IMPLEMENT_ASN1_DUP_FUNCTION(X509) -X509 *d2i_X509(X509 **a, const unsigned char **in, long le...
TCPMv2: PD Timers - Initialize pd_timer in usbc_task BRANCH=none TEST=make buildall Tested-by: Denis Brockus
#include "usb_charge.h" #include "usb_mux.h" #include "usb_pd.h" +#include "usb_pd_timer.h" #include "usb_prl_sm.h" #include "tcpm/tcpm.h" #include "usb_pe_sm.h" @@ -97,6 +98,10 @@ static bool pd_task_loop(int port) ? USBC_PRIORITY_EVENT_TIMEOUT : USBC_EVENT_TIMEOUT); + /* Manage expired PD Timers on timeouts */ + if (...
Simplify kvz_config_alloc
kvz_config *kvz_config_alloc(void) { - kvz_config *cfg = (kvz_config *)malloc(sizeof(kvz_config)); - if (!cfg) { - fprintf(stderr, "Failed to allocate a config object!\n"); - return cfg; - } - - FILL(*cfg, 0); - - return cfg; + return calloc(1, sizeof(kvz_config)); } int kvz_config_init(kvz_config *cfg)
chore(docs) fix error
@@ -21,10 +21,12 @@ function add_version_selector() .then(text => { const versions = text.split("\n").filter(version => version.trim().length > 0); let p = document.getElementById("rtd-search-form").parentElement; - const versionName = (version.indexOf(".") != -1) ? version : (version + " (latest minor)"); p.innerHTML ...
Add snap_maint to configure Card. Remove left over exit Add End of test message
@@ -196,6 +196,15 @@ while getopts "C:t:i:h" opt; do esac done +# Configure my Snap Card +echo "Configure Card[$snap_card] ...." +cmd=`./software/tools/snap_maint -C $snap_card` +eval ${cmd} +if [ $? -ne 0 ]; then + echo "cmd: ${cmd}" + echo "failed" + exit 1 +fi # Get Card Name echo -n "Detect Card[$snap_card] .... " ...
fix: properly freeing struct api_route_s resources
@@ -144,11 +144,20 @@ Discord_ratelimit_parse_header(struct api_bucket_s *bucket, struct api_header_s } } +static void +route_cleanup(void *p_route) +{ + struct api_route_s *route = p_route; + + free(route->str); + free(route); +} + void Discord_ratelimit_buckets_cleanup(struct discord_api_s *api) { //clean bucket rout...
feature:add audio AUDIOIOC_SETPARAMTER ioctl command add AUDIOIOC_SETPARAMTER iotcl command in include/nuttx/audio/audio.h
#define AUDIOIOC_UNREGISTERMQ _AUDIOIOC(15) #define AUDIOIOC_HWRESET _AUDIOIOC(16) #define AUDIOIOC_SETBUFFERINFO _AUDIOIOC(17) +#define AUDIOIOC_SETPARAMTER _AUDIOIOC(18) /* Audio Device Types *******************************************************/
BugID:17993543: add workaround for uart dma issue
@@ -259,6 +259,14 @@ static int at_getc(char *c) aos_mutex_unlock(&at.at_mutex); if (ret != 0) { +#ifdef WORKAROUND_DEVELOPERBOARD_DMA_UART + if (ret == 1) { + printf("--->AT dma fail, restart!\n"); + hal_uart_finalize(at._pstuart); + at_init_uart(); + printf("<----AT dma fail, restart!\n"); + } +#endif return -1; }
fixed path state transition when clicking next/prev
@@ -329,6 +329,9 @@ export class Post extends Component { ((post.info.title != oldPost.info.title) || (post.raw != oldPost.raw))) { + let blogUrl = `/~publish/${blog.info.owner}/${blog.info.filename}`; + let postUrl = `${blogUrl}/${post.info.filename}`; + this.setState({ mode: 'view', titleOriginal: post.info.title, @@...
Fix mutable_bayer error message.
@@ -29,7 +29,7 @@ image_t *py_helper_arg_to_image_mutable(const mp_obj_t arg) image_t *py_helper_arg_to_image_mutable_bayer(const mp_obj_t arg) { image_t *arg_img = py_image_cobj(arg); - PY_ASSERT_TRUE_MSG(IMAGE_IS_MUTABLE_BAYER(arg_img), "Image is not mutable Bayer!"); + PY_ASSERT_TRUE_MSG(IMAGE_IS_MUTABLE_BAYER(arg_i...
debian: bump to v0.12.3
+td-agent-bit (0.12.3) stable; urgency=low + + * Based on Fluent Bit v0.12.3 + + -- Eduardo Silva <eduardo@treasure-data.com> Fri, 22 Sep 2017 22:00:00 -0600 + td-agent-bit (0.12.2) stable; urgency=low * Based on Fluent Bit v0.12.2
add executable bit for files in gradle user cache
@@ -18,7 +18,7 @@ def main(): for root, _, files in os.walk(args.output): os.chmod(root, 0o775) for f in files: - os.chmod(os.path.join(root, f), 0o664) + os.chmod(os.path.join(root, f), 0o775) if __name__ == '__main__':
Fix mapping of /ipp/print/icon.png and other single-printer mappings (Issue
@@ -437,17 +437,17 @@ serverProcessHTTP( case HTTP_STATE_HEAD : if (!strncmp(client->uri, "/ipp/print/", 11)) { - if ((uriptr = strchr(client->uri + 11, '/')) != NULL) + if ((uriptr = strchr(client->uri + 11, '/')) == NULL) + uriptr = client->uri + 10; + *uriptr++ = '\0'; - else - uriptr = client->uri + strlen(client->...
proper format for clickable link
@@ -114,7 +114,7 @@ GPU - 2x nVidia GeForce 1080 Ti. <td>lightgbm with specifying cat features</td> <td>n/a</td> <td>n/a</td> - <td><font color="red">Failed: [LightGBM] [Fatal] bin size 1093 cannot run on GPU</font>, see https://github.com/Microsoft/LightGBM/issues/1116</td> + <td><font color="red">Failed: [LightGBM] [...
ethernet: test apps can build with ethernet disabled
@@ -371,6 +371,19 @@ function run_tests() rm sdkconfig; rm sdkconfig.defaults; + print_status "can build with ethernet component disabled" + idf.py clean > /dev/null; + idf.py fullclean > /dev/null; + rm -f sdkconfig.defaults; + rm -f sdkconfig; + echo "CONFIG_ETH_USE_SPI_ETHERNET=" >> sdkconfig.defaults; + echo "CONFI...
Aaaaand remove the debugging text...
@@ -116,8 +116,8 @@ void blit_tick() { blit::render(blit::now()); // debug cycle count for flip - blit::fb.pen(rgba(255, 255, 255)); - blit::fb.text(std::to_string(flip_cycle_count), &minimal_font[0][0], point(10, 20)); +// blit::fb.pen(rgba(255, 255, 255)); + // blit::fb.text(std::to_string(flip_cycle_count), &minimal...
punt: fix tracing for partially traced chains This fixes a crash if the first buffer in buffer chain is not traced, but some other buffer (mid-chain) is.
@@ -359,11 +359,8 @@ udp46_punt_socket_inline (vlib_main_t * vm, punt_client_t *c = NULL; if (PREDICT_FALSE (b->flags & VLIB_BUFFER_IS_TRACED)) - { - if (!c) { c = punt_client_get (is_ip4, port); - } udp_punt_trace_t *t; t = vlib_add_trace (vm, node, b, sizeof (t[0])); clib_memcpy (&t->client, c, sizeof (t->client)); @...
[voting-reward] bugfix: block's voting reward address Leave the consensus field (voting reward address) in the block empty when the procedure to give voting reward is somehow failed.
@@ -128,15 +128,6 @@ func sendVotingReward(bState *state.BlockState, dummy []byte) error { return int64(binary.LittleEndian.Uint64(stateRoot)) } - seed := vrSeed(bState.PrevBlockHash()) - logger.Debug().Int64("value", seed).Msg("generate a seed for voting reward") - addr, err := system.PickVotingRewardWinner(seed) - if...
Adds comments for clarification Adds two comments to clarify 1) why an offset is used in the call to psa_aead_verify() and 2) why the test of .hits_finish is always 0 in this test case.
@@ -2521,6 +2521,8 @@ void aead_decrypt_setup( int key_type_arg, data_t *key_data, TEST_EQUAL( mbedtls_test_driver_aead_hooks.hits_update, forced_status == PSA_SUCCESS ? 1 : 0 ); + /* Offset applied to output_data in order to handle cases where verify() + * outputs further data */ PSA_ASSERT( psa_aead_verify( &operatio...
build CHANGE new target shm_clean
@@ -259,11 +259,16 @@ if(GEN_LANGUAGE_BINDINGS) add_subdirectory(bindings) endif() -# phony target for clearing all sysrepo data -add_custom_target(sr_clean +# phony target for clearing sysrepo SHM +add_custom_target(shm_clean COMMAND rm -rf /dev/shm/sr_* COMMAND rm -rf /dev/shm/srsub_* +) + +# phony target for clearin...
Guard against context->grib_reader being NULL
@@ -1441,9 +1441,11 @@ grib_action* grib_action_from_filter(const char* filter) grib_context* context = grib_context_get_default(); a = grib_parse_file(context, filter); + if (context->grib_reader && context->grib_reader->first) { grib_context_free_persistent(context, context->grib_reader->first->filename); grib_contex...
Fix [FR] Ability to use Redis unix sockets.
23 January 2023: Wouter - - Add #835: [FR] Ability to use Redis unix sockets. + - Fix #835: [FR] Ability to use Redis unix sockets. 20 January 2023: Wouter - Merge #819: Added new static zone type block_a to suppress all A
added support for 802.11w SUITE_B_192 - WPA2 PRF384 AES-128-CMAC
@@ -207,6 +207,8 @@ while(c < hcxrecords) HMAC(EVP_sha1(), pmk, 32, pkedata, 100, ptk + p * 20, NULL); } HMAC(EVP_md5(), &ptk, 16, zeigerhcx->eapol, zeigerhcx->eapol_len, mic, NULL); + if(memcmp(&mic, zeigerhcx->keymic, 16) == 0) + ausgabe(zeigerhcx, pmkname); } else if(zeigerhcx->keyver == 2) @@ -218,6 +220,8 @@ while...
rm unused physfs cmake option;
@@ -94,7 +94,6 @@ if(LOVR_ENABLE_FILESYSTEM) set(PHYSFS_ARCHIVE_ISO9660 OFF CACHE BOOL "") set(PHYSFS_ARCHIVE_VDF OFF CACHE BOOL "") set(PHYSFS_BUILD_TEST OFF CACHE BOOL "") - set(PHYSFS_BUILD_WX_TEST FALSE CACHE BOOL "") add_subdirectory(deps/physfs physfs) include_directories(deps/physfs/src) set(LOVR_PHYSFS physfs)
options/ansi: Fix missing return statement
@@ -1120,6 +1120,7 @@ void funlockfile(FILE *) { int ftrylockfile(FILE *) { mlibc::infoLogger() << "mlibc: File locking (ftrylockfile) is a no-op" << frg::endlog; + return 0; } void clearerr_unlocked(FILE *file_base) {
Correct ifdefs
@@ -4531,12 +4531,11 @@ neat_write_to_lower_layer(struct neat_ctx *ctx, struct neat_flow *flow, // int has_dest_addr = 0; // const char *dest_addr = ""; -#if !defined(NEAT_SCTP_DTLS) && (defined(SCTP_SNDINFO) || defined (SCTP_SNDRCV)) +#if defined(SCTP_SNDINFO) || defined (SCTP_SNDRCV) struct cmsghdr *cmsg; #endif stru...
[build] fix typo in src/CMakeLists.txt
@@ -385,7 +385,9 @@ if(WITH_MBEDTLS) check_include_files(mbedtls/ssl.h HAVE_MBEDTLS_SSL_H) if(HAVE_MBEDTLS_SSL_H) check_library_exists(mbedcrypto mbedtls_base64_encode "" HAVE_LIBMBEDCRYPTO) - if(HAVE_LIBMEDTLSCRYPTO) + if(HAVE_LIBMBEDCRYPTO) + set(CRYPTO_LIBRARY mbedcrypto) + set(HAVE_LIBCRYPTO 1) check_library_exists...
fix: bypass Manually-specified variables were not used by the project warning the variable "IDF_TARGET" is only used under a if clause "if(ULP_C0CPU_IS_RISCV)". while building a non-riscv target, there will be a cmake warning: CMake Warning: Manually-specified variables were not used by the project: IDF_TARGET
@@ -68,6 +68,8 @@ add_custom_target(${ULP_APP_NAME}_ld_script DEPENDS ${ULP_LD_SCRIPT} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) +# To avoid warning "Manually-specified variables were not used by the project" +set(bypassWarning "${IDF_TARGET}") if(ULP_COCPU_IS_RISCV) #risc-v ulp uses extra files for building: list...
Poll amdgpu regs at 120ticks/s regardless of sampling period
@@ -160,7 +160,7 @@ struct amdgpu_handles amdgpu_device_handle dev; int fd; uint32_t version_major, version_minor, gui_percent {0}; - const uint32_t ticks = 120; + uint32_t ticks = 60, ticks_per_sec = 120; std::chrono::nanoseconds sleep_interval {}; bool quit = false; @@ -187,7 +187,11 @@ struct amdgpu_handles void set...
Replace distutils with environment variables.
@@ -119,7 +119,7 @@ jobs: working-directory: ${{runner.workspace}}/build run: | if [ "$RUNNER_OS" == "Windows" ]; then - cmake $GITHUB_WORKSPACE -A x64 -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DTINYSPLINE_ENABLE_PYTHON=True -DPYTHON_INCLUDE_DIR="$(python -c "from distutils.sysconfig import get_python_inc; print(get_python_inc()...
Add a few more ast functions.
@@ -195,9 +195,35 @@ static int cfun_unwrap(DstArgs args) { return dst_return(args, dst_ast_unwrap(args.v[0])); } +static int cfun_wrap(DstArgs args) { + if (args.n != 1) return dst_throw(args, "expected 1 argument"); + return dst_return(args, dst_ast_wrap(args.v[0], -1, -1)); +} + +static int cfun_node(DstArgs args) {...
Build TuplestoreScan descriptor from custom_scan_tlist
@@ -105,6 +105,7 @@ create_tuplestore_scan_plan(PlannerInfo *root, RelOptInfo *rel, struct CustomPat heap_close(matrel, NoLock); plan->targetlist = tlist; + scan->custom_scan_tlist = tlist; return (Plan *) scan; }
VERSION bump to version 0.12.3
@@ -32,7 +32,7 @@ set(CMAKE_C_FLAGS_DEBUG "-g -O0") # set version set(LIBNETCONF2_MAJOR_VERSION 0) set(LIBNETCONF2_MINOR_VERSION 12) -set(LIBNETCONF2_MICRO_VERSION 2) +set(LIBNETCONF2_MICRO_VERSION 3) set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION}.${LIBNETCONF2_MICRO_VERSION}) set(LIB...
Add `sceKernelSignalLwCond*` functions Similar to `sceKernelSignalCondAll` and `sceKernelSignalCondTo`
@@ -1183,6 +1183,8 @@ typedef struct SceKernelLwCondOptParam { int sceKernelCreateLwCond(SceKernelLwCondWork *pWork, const char *pName, unsigned int attr, SceKernelLwMutexWork *pLwMutex, const SceKernelLwCondOptParam *pOptParam); int sceKernelDeleteLwCond(SceKernelLwCondWork *pWork); int sceKernelSignalLwCond(SceKernel...
Update repository.yml; master rather than develop.
repo.name: apache-mynewt-core repo.versions: - "0.0.0": "develop" + "0.0.0": "master" "0.0.1": "master" "0.7.9": "mynewt_0_8_0_b2_tag" "0.8.0": "mynewt_0_8_0_tag" @@ -30,7 +30,7 @@ repo.versions: "1.0.0": "mynewt_1_0_0_tag" "0-latest": "1.0.0" # 1.0.0 - "0-dev": "0.0.0" # develop + "0-dev": "0.0.0" # master "0.8-latest...
Remove luacheck warnings from lexer_spec
local lexer = require 'titan-compiler.lexer' -local syntax_errors = require 'titan-compiler.syntax_errors' local lpeg = require 'lpeglabel' local function table_extend(t1, t2) @@ -21,7 +20,7 @@ local function run_lexer(source) local found_j = nil for tokname, tokpat in pairs(lexer) do - local a, b, c = lpeg.match(lpeg....
Previously no event objects were being created on Windows.
@@ -1283,6 +1283,10 @@ oe_result_t oe_create_enclave( if (!(enclave = (oe_enclave_t*)calloc(1, sizeof(oe_enclave_t)))) OE_RAISE(OE_OUT_OF_MEMORY); + /* Initialize the context parameter and any driver handles */ + OE_CHECK(oe_sgx_initialize_load_context( + &context, OE_SGX_LOAD_TYPE_CREATE, flags)); + #if defined(_WIN32...
Change development config
#define ESP_CFG_WPS 1 #define ESP_CFG_MDNS 1 -#define ESP_CFG_RESET_ON_INIT 0 +#define ESP_CFG_RESET_ON_INIT 1 #if defined(WIN32) #define ESP_CFG_SYS_PORT ESP_SYS_PORT_WIN32
Don't trigger rules based on sensor values set on startup
@@ -1273,6 +1273,19 @@ void DeRestPluginPrivate::triggerRuleIfNeeded(Rule &rule) if (!item->lastSet().isValid()) { ok = false; break; } + if (resource->prefix() == RSensors) + { + if ((idleTotalCounter > (IDLE_READ_LIMIT + 20)) && + item->lastSet() > now.addSecs(0 - (idleTotalCounter - IDLE_READ_LIMIT - 2))) + { + } + ...
[core] use current dir if context->basedir blank
@@ -2169,7 +2169,8 @@ int config_parse_file(server *srv, config_t *context, const char *fn) { #endif glob_t gl; - if ((fn[0] == '/' || fn[0] == '\\') || + if (buffer_is_blank(context->basedir) || + (fn[0] == '/' || fn[0] == '\\') || (fn[0] == '.' && (fn[1] == '/' || fn[1] == '\\')) || (fn[0] == '.' && fn[1] == '.' && (...
doc: delete "install build tool" about
@@ -35,34 +35,6 @@ Ubuntu 18.04.1 LTS was used throughout this document, other older versions such sudo service ssh status sudo service ssh start -Install build tools and dependencies -************************************ - -Install development tools for ARCN development: - -* On a Ubuntu development system: - - .. cod...
implement BSP_USING_ETH_SAL
@@ -55,6 +55,11 @@ menu "Onboard Peripheral Drivers" select RT_USING_LWIP select PHY_USING_LAN8720A select RT_LWIP_USING_HW_CHECKSUM + + config BSP_USING_ETH_SAL + bool "Enable Ethernet with SAL" + depends on BSP_USING_ETH + default y select RT_USING_SAL select SAL_USING_POSIX
remove variable initial
@@ -1147,8 +1147,7 @@ static int ssl_tls13_write_encrypted_extensions( mbedtls_ssl_context *ssl ) { int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; unsigned char *buf; - size_t buf_len = 0; - size_t msg_len = 0; + size_t buf_len, msg_len; MBEDTLS_SSL_DEBUG_MSG( 2, ( "=> write encrypted extensions" ) );
fix for QT deployment
@@ -1229,14 +1229,14 @@ namespace "build" do puts "Deploy libs from msvc #{$vs_version}" vsredistdir = File.join($vscommontools, "../../VC/redist/x86/Microsoft.VC140.CRT") vsredistdir2 = File.join($vscommontools, "../../VC/redist/x86/Microsoft.VC140.OPENMP") - if deploymsvc - cp File.join(vsredistdir, "msvcp140.dll"), ...
requires python2-mock
@@ -34,6 +34,7 @@ Requires: coreutils Requires: subversion Requires: hg Requires: patch +Requires: python2-mock DocDir: %{OHPC_PUB}/doc/contrib %define install_path %{OHPC_ADMIN}/%{pname}/%version
Fixed an issue where the Houdini Engine for Maya plugin could fail to find libHAPIL in certain situations on macOS and Linux.
@@ -226,6 +226,9 @@ getHfsLocationFromPlugin() { string $path = ""; + if (`about -linux` || `about -macOS`) + $path = "/"; + for ($j = 0; $j < $i; $j++) $path += $tokens[$j] + "/";
CCode: Decode name of key
@@ -48,6 +48,11 @@ kdb set user/tests/ccode/tab 'Tab Fabulous' kdb get user/tests/ccode/tab #> Tab Fabulous +# The plugin also escapes special characters inside key names +kdb set 'user/tests/ccode/tab/t a b' 'Escaped Tabs' +grep 'tab/' `kdb file user/tests/ccode` | sed 's/[[:space:]]*//' +#> tab/t\ta\tb = Escaped Tabs...
TArraySubsetIndexing::ParallelForEach : localExecutor.ExecRange -> localExecutor.ExecRangeWithThrow.
@@ -282,7 +282,7 @@ namespace NCB { << ')' ); - localExecutor.ExecRange( + localExecutor.ExecRangeWithThrow( [this, parallelUnitRanges, f = std::move(f)] (int id) { ForEachInSubRange(parallelUnitRanges.GetRange(id), f); },
update COUNT_SIZE in axis_ram_writer
@@ -47,7 +47,7 @@ module axis_ram_writer # endfunction localparam integer ADDR_SIZE = clogb2(AXI_DATA_WIDTH/8 - 1); - localparam integer COUNT_SIZE = clogb2(512*AXIS_TDATA_WIDTH/64 - 1) + 1; + localparam integer COUNT_SIZE = clogb2(FIFO_WRITE_DEPTH*AXIS_TDATA_WIDTH/AXI_DATA_WIDTH - 1) + 1; reg int_awvalid_reg, int_awva...
Add user files to boot sequence.
:: sys/vane/jael: security :: (vent %j /vane/jael) + :: + :: legacy boot event + :: + [[%$ %term '1' ~] [%boot %sith who `@uw`who &]] + :: + :: userspace: + :: + :: /app %gall applications + :: /gen :dojo generators + :: /lib %ford libraries + :: /mar %ford marks + :: /sur %ford structures + :: /ren %ford renderers + :...
Set inner directory for aergo keystore
@@ -27,6 +27,7 @@ var ( const ( // EncryptVersion should be always higher version + keystorDirectory = "keystore" encryptVersion = "v1" fileNamePostFix = "__keystore.txt" fileNamePattern = "[a-zA-Z0-9]+" + fileNamePostFix @@ -39,7 +40,7 @@ type AergoStorage struct { } func NewAergoStorage(storePath string) (*AergoStora...
board/magolor/board.h: Format with clang-format BRANCH=none TEST=none
#define CONFIG_CHARGER_RAA489000 #define CONFIG_CHARGER_SENSE_RESISTOR_AC 10 #define CONFIG_CHARGER_SENSE_RESISTOR 10 -#define CONFIG_OCPC_DEF_RBATT_MOHMS 22 /* R_DS(on) 11.6mOhm + 10mOhm sns rstr */ +#define CONFIG_OCPC_DEF_RBATT_MOHMS 22 /* R_DS(on) 11.6mOhm + 10mOhm sns rstr \ + */ #define CONFIG_OCPC #undef CONFIG_...
auth zone whitespace fixes and input validation.
@@ -5926,6 +5926,13 @@ parse_url(char* url, char** host, char** file, int* port, int* ssl) p += 8; *ssl = 1; *port = AUTH_HTTPS_PORT; + } else if(strstr(p, "://") && strchr(p, '/') > strstr(p, "://") && + strchr(p, ':') >= strstr(p, "://")) { + char* uri = dup_prefix(p, (size_t)(strstr(p, "://")-p)); + log_err("protoco...
Dumb speedup even number strut size multiplies faster by 0x8 Trade off 12 bytes of ram for a few cycles performance
@@ -44,6 +44,7 @@ typedef struct { MOVEMENT_TYPE actor_move_type; UBYTE tmp_1; UBYTE tmp_2; + UBYTE dummy24byte; // even struct faster index multiplication } ScriptContext; extern ScriptContext script_ctxs[MAX_SCRIPT_CONTEXTS];
Add the motelist-all target - common for all embedded platforms
# Future extensions to the build system that are of a similar nature (for # embedded devices only), can be achieved by extending this Makefile here. +### +### Targets using the tools/serial-io +### RLWRAPGOALS = login serialdump serialview .PHONY: $(RLWRAPGOALS) @@ -31,3 +34,14 @@ serialview: $(SERIAL_DUMP_BIN) login: ...
interface: reduce %saw-place correctly
@@ -109,7 +109,8 @@ function updateNotificationStats(state: HarkState, place: HarkPlace, f: (s: Hark function seenIndex(json: any, state: HarkState): HarkState { const data = _.get(json, 'saw-place'); if(data) { - updateNotificationStats(state, data, s => ({ last: Date.now() })); + const last = data?.time || Date.now()...
Verify whether ptls_aead_decrypt succeeds
@@ -325,7 +325,10 @@ int ngtcp2_crypto_decrypt(uint8_t *dest, const ngtcp2_crypto_aead *aead, ptls_aead_xor_iv(actx, nonce, noncelen); - ptls_aead_decrypt(actx, dest, ciphertext, ciphertextlen, 0, aad, aadlen); + if (ptls_aead_decrypt(actx, dest, ciphertext, ciphertextlen, 0, aad, + aadlen) == SIZE_MAX) { + return -1; ...
libbpf-tools/cpufreq: Fix the initialization of freqs_mhz scaling_cur_freq is in kHz, so it should be converted to mHz before assigned to freqs_mhz.
@@ -155,6 +155,11 @@ static int init_freqs_hmz(__u32 *freqs_mhz, int nr_cpus) fclose(f); return -1; } + /* + * scaling_cur_freq is in kHz. To be handled with + * a small data size, it's converted in mHz. + */ + freqs_mhz[i] /= 1000; fclose(f); }
Add handshake failure in pre_shared_key withou psk_kex_modes
@@ -1262,6 +1262,14 @@ static int ssl_tls13_parse_client_hello( mbedtls_ssl_context *ssl, case MBEDTLS_TLS_EXT_PRE_SHARED_KEY: MBEDTLS_SSL_DEBUG_MSG( 3, ( "found pre_shared_key extension" ) ); + if( ( ssl->handshake->extensions_present & + MBEDTLS_SSL_EXT_PSK_KEY_EXCHANGE_MODES ) == 0 ) + { + MBEDTLS_SSL_PEND_FATAL_ALE...
pack: allow json record to format without a 'date key'
@@ -715,13 +715,11 @@ flb_sds_t flb_pack_msgpack_to_json_format(const char *data, uint64_t bytes, msgpack_sbuffer tmp_sbuf; msgpack_packer tmp_pck; msgpack_object *obj; + msgpack_object *k; + msgpack_object *v; struct tm tm; struct flb_time tms; - if (!date_key) { - return NULL; - } - /* Iterate the original buffer and...
router_validate_path: files in append mode to fix error on issue246
@@ -458,7 +458,7 @@ router_validate_path(router *rtr, char *path) if (stat(path, &st) == -1) fileexists = 0; - if ((probe = fopen(path, "w+")) == NULL) { + if ((probe = fopen(path, "a")) == NULL) { char errbuf[512]; snprintf(errbuf, sizeof(errbuf), "failed to open file '%s' for writing: %s",
Fix makefile for Math library in CMake
@@ -208,6 +208,7 @@ cmake: @echo '' >> $(CMAKE_LIBFILE_NAME) @echo 'add_library(facil.io $${facil.io_SOURCES})' >> $(CMAKE_LIBFILE_NAME) @echo 'target_link_libraries(facil.io PRIVATE Threads::Threads)' >> $(CMAKE_LIBFILE_NAME) + @echo 'target_link_libraries(facil.io m)' >> $(CMAKE_LIBFILE_NAME) @echo 'target_include_di...
ble_mesh: Remove relay option dependency When the relay functionality of a node is not enabled, this issue will cause the node failing to send messages to fixed group.
@@ -1473,9 +1473,8 @@ void bt_mesh_net_recv(struct net_buf_simple *data, s8_t rssi, /* Relay if this was a group/virtual address, or if the destination * was neither a local element nor an LPN we're Friends for. */ - if (IS_ENABLED(CONFIG_BLE_MESH_RELAY) && - (!BLE_MESH_ADDR_IS_UNICAST(rx.ctx.recv_dst) || - (!rx.local_...