message
stringlengths
6
474
diff
stringlengths
8
5.22k
Add check on argument parser
@@ -48,11 +48,11 @@ def parse_bip32_path(path): parser = argparse.ArgumentParser() -parser.add_argument('--nonce', help="Nonce associated to the account") -parser.add_argument('--gasprice', help="Network gas price") -parser.add_argument('--startgas', help="startgas", default='21000') -parser.add_argument('--amount', he...
[scons] remove check whether exist group library.
@@ -585,14 +585,6 @@ def DefineGroup(name, src, depend, **parameters): if os.path.exists(fn): os.unlink(fn) - # check whether exist group library - if not GetOption('buildlib') and os.path.exists(os.path.join(group['path'], GroupLibFullName(name, Env))): - group['src'] = [] - if group.has_key('LIBS'): group['LIBS'] = g...
[modify] internal function 'isdigit' name to '_ISDIGIT'
@@ -543,7 +543,7 @@ void rt_show_version(void) RTM_EXPORT(rt_show_version); /* private function */ -#define isdigit(c) ((unsigned)((c) - '0') < 10) +#define _ISDIGIT(c) ((unsigned)((c) - '0') < 10) #ifdef RT_PRINTF_LONGLONG rt_inline int divide(long long *n, int base) @@ -588,7 +588,7 @@ rt_inline int divide(long *n, i...
Fix out-of-date assert
@@ -807,7 +807,9 @@ void compute_ideal_weights_for_decimation_table( // TODO: Use SIMD copies? for (int i = 0; i < texel_count_simd; i++) { - assert(i == dt.weight_texel[0][i]); + // Assert it's an identity map for valid texels, and last valid value for any overspill + assert((i < texel_count) && (i == dt.weight_texel[...
Fixed deprecated mark_to_drop usage in l3-routing-full
@@ -64,7 +64,7 @@ control ingress(inout headers hdr, inout metadata meta, inout standard_metadata_ hdr.ipv4.ttl = hdr.ipv4.ttl + 8w0xff; } @name("._drop") action _drop() { - mark_to_drop(); + mark_to_drop(standard_metadata); } @name(".forward") action forward(bit<48> dmac_val, bit<48> smac_val, bit<9> port) { hdr.ether...
Add benchmarks for async calls in nodejs.
@@ -145,6 +145,81 @@ BENCHMARK_REGISTER_F(metacall_node_call_bench, call_array_args) ->Iterations(1) ->Repetitions(3); +BENCHMARK_DEFINE_F(metacall_node_call_bench, call_async)(benchmark::State & state) +{ + const int64_t call_count = 100000; + const int64_t call_size = sizeof(double) * 3; // (double, double) -> double...
On OSX don't use atexit() to destroy context. Unlike on Linux, on OSX destructor registered by pthread_key_create seems to be run for the main thread.
@@ -137,8 +137,10 @@ struct dill_ctx *dill_ctx_init(void) { dill_assert(rc == 0); if(dill_ismain()) { dill_main = &dill_ctx_; +#if !defined __APPLE__ rc = atexit(dill_ctx_atexit); dill_assert(rc == 0); +#endif } rc = pthread_setspecific(dill_key, &dill_ctx_); dill_assert(rc == 0); @@ -184,8 +186,10 @@ struct dill_ctx *...
Use aggregate context
@@ -209,7 +209,7 @@ hashed_topk_agg_weighted_trans(PG_FUNCTION_ARGS) if (!AggCheckCallContext(fcinfo, &context)) elog(ERROR, "hashed_topk_agg_weighted_trans called in non-aggregate context"); - old = MemoryContextSwitchTo(CacheMemoryContext); + old = MemoryContextSwitchTo(context); if (PG_ARGISNULL(0)) {
Define state-set with enums. Report pin number when pin already opened
#endif -#define IOT_GPIO_CLOSED ( ( uint8_t ) 0 ) -#define IOT_GPIO_OPENED ( ( uint8_t ) 1 ) +typedef enum +{ + IOT_GPIO_CLOSED = 0u, + IOT_GPIO_OPENED = 1u +} IotGpioState_t; typedef struct { @@ -486,7 +489,7 @@ IotGpioHandle_t iot_gpio_open( int32_t lGpioNumber ) } else { - IOT_GPIO_LOG( " Cannot open. GPIO[%d] is al...
Renamed configure option --no-unix-domain to --no-unix-sockets.
@@ -57,7 +57,7 @@ do --debug) NXT_DEBUG=YES ;; --no-ipv6) NXT_INET6=NO ;; - --no-unix-domain) NXT_UNIX_DOMAIN=NO ;; + --no-unix-sockets) NXT_UNIX_DOMAIN=NO ;; --pcre) NXT_PCRE=YES ;;
lib/options.h: always show FTPS if FTPS support is not available gftp will just fail to connect to server with a error msg
@@ -251,19 +251,14 @@ gftp_config_vars gftp_global_config_vars[] = supported_gftp_protocols gftp_protocols[] = { { "FTP", rfc959_init, rfc959_register_module, "ftp", 21, 1, 1}, - -#ifdef USE_SSL { "FTPS", ftps_init, ftps_register_module, "ftps", 21, 1, 1}, -#else - { "FTPS", ftps_init, ftps_register_module, "ftps", 21,...
Utility: Use correct function name in test
@@ -76,7 +76,7 @@ static void test_elektraRstrip () static void test_ElektraStrip () { - printf ("Test strip\n"); + printf ("Test elektraStrip\n"); char text[MAX_LENGTH]; strncpy (text, "", MAX_LENGTH);
test with 2.3pre
Summary: Application and environment virtualization Name: %{pname}%{PROJ_DELIM} -Version: 2.2.1 +Version: 2.3pre Release: %{_rel}%{?dist} # https://spdx.org/licenses/BSD-3-Clause-LBNL.html License: BSD-3-Clause-LBNL Group: %{PROJ_NAME}/runtimes URL: http://singularity.lbl.gov/ -Source: https://github.com/singularitywar...
doc: update the directory to "~/"
@@ -236,7 +236,7 @@ For the User OS, we are using the same `Clear Linux`_ release version as the Ser .. code-block:: none - cd /root/ + cd ~ wget https://download.clearlinux.org/releases/26440/clear/clear-26440-kvm.img.xz unxz clear-26440-kvm.img.xz @@ -280,11 +280,11 @@ For the User OS, we are using the same `Clear Li...
Solve funchook dependency error.
@@ -28,6 +28,8 @@ elseif(APPLE) set(FUNCHOOK_LIBRARY_INSTALL_SUFFIX "so") endif() +set(FUNCHOOK_SOURCE_DIR "${CMAKE_CURRENT_BINARY_DIR}/funchook/src/funchook") + if(WIN32) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/scripts/download.bat.in ${CMAKE_CURRENT_BINARY_DIR}/download.bat @ONLY) set(FUNCHOOK_DOWNLOAD_COMMAND ${C...
zlclear done!
@@ -61,11 +61,6 @@ typedef struct _zl int x_mode; int x_modearg; t_outlet *x_out2; - - //storing init data to reinit on zlclear - t_symbol *x_initmode; - int x_initargc; - t_atom *x_initargv; } t_zl; typedef struct _zlproxy @@ -964,8 +959,8 @@ static void zl_free(t_zl *x) zldata_free(&x->x_inbuf1); zldata_free(&x->x_in...
dm: ioc: clean up assert This patch is to clean up assert from ioc
#include <stdio.h> #include <stdlib.h> #include <unistd.h> -#include <assert.h> #include <errno.h> #include <fcntl.h> #include <pty.h> @@ -1329,7 +1328,6 @@ ioc_rx_thread(void *arg) struct ioc_dev *ioc = (struct ioc_dev *) arg; struct cbc_request *req = NULL; struct cbc_pkt packet; - int err; memset(&packet, 0, sizeof(...
Downgrade debug printout in AuthTokensController from info to trace
@@ -17,7 +17,7 @@ namespace ARIASDK_NS_BEGIN { AuthTokensController::~AuthTokensController() { - LOG_INFO("destructor"); + LOG_TRACE("destructor"); } status_t AuthTokensController::SetTicketToken(TicketType type, char const* tokenValue)
esp8266/modnetwork: Raise ValueError when getting invalid WLAN id. Instead of crashing due to out-of-bounds array access. Fixes
@@ -65,6 +65,9 @@ STATIC mp_obj_t get_wlan(size_t n_args, const mp_obj_t *args) { int idx = 0; if (n_args > 0) { idx = mp_obj_get_int(args[0]); + if (idx < 0 || idx >= sizeof(wlan_objs)) { + mp_raise_ValueError(NULL); + } } return MP_OBJ_FROM_PTR(&wlan_objs[idx]); }
build: add python3-pip dependency python3 pip module is missing on a new Ubuntu installation Type: fix
@@ -70,7 +70,7 @@ DEB_DEPENDS += python3-all python3-setuptools check DEB_DEPENDS += libffi-dev python3-ply DEB_DEPENDS += cmake ninja-build uuid-dev python3-jsonschema python3-yaml DEB_DEPENDS += python3-venv # ensurepip -DEB_DEPENDS += python3-dev # needed for python3 -m pip install psutil +DEB_DEPENDS += python3-dev...
Fix target_nowait test to avoid testing for scalar var race
@@ -35,20 +35,16 @@ int main(){ long long n1 = n-10; double *z = new double[n]; // just to create some extra work double scalar = -1.0; - int scalar_err = 0; printf("Now going into parallel\n"); fflush(stdout); #pragma omp parallel num_threads(10) { - // #pragma omp masked // teams distribute if (omp_get_thread_num() =...
Travis CI: install python3-wheel.
@@ -17,6 +17,7 @@ pushd "$DEPS_DIR" graphviz \ python-dev \ python3-setuptools \ + python3-wheel \ ruby-dev \ php-dev \ liblua5.3-dev \
Update COMPILE.md just wanted to clarify the info about which flags to use for aarch64 builds a little bit
@@ -25,7 +25,7 @@ sudo make install sudo systemctl restart systemd-binfmt ``` - _For Pi4. Change to RPI2 or RPI3 for other models. Change to RPI4ARM64 for compiling on arm64. (armhf multiarch or chroot required alongside armhf gcc. Install it with 'sudo apt install gcc-arm-linux-gnueabihf'.)_ + _For Pi4. Change to RPI2...
[core] better trace if TLS received on clear port
@@ -751,7 +751,9 @@ static int connection_handle_read_state(connection * const con) { * or HTTP/2 pseudo-header beginning with ':' */ /*(TLS handshake begins with SYN 0x16 (decimal 22))*/ log_error(r->conf.errh, __FILE__, __LINE__, "%s", - "invalid request-line -> sending Status 400"); + c->mem->ptr[c->offset] == 0x16 ...
Properly handle a partial block in OCB mode If we have previously been passed a partial block in an "Update" call then make sure we properly increment the output buffer when we use it. Fixes
@@ -2587,6 +2587,8 @@ static int aes_ocb_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, } written_len = AES_BLOCK_SIZE; *buf_len = 0; + if (out != NULL) + out += AES_BLOCK_SIZE; } /* Do we have a partial block to handle at the end? */
apps: fix Camellia CBC performance loop
@@ -2114,7 +2114,7 @@ int speed_main(int argc, char **argv) if (doit[algindex]) { int st = 1; - keylen = 16 + i * 8; + keylen = 16 + k * 8; for (i = 0; st && i < loopargs_len; i++) { loopargs[i].ctx = init_evp_cipher_ctx(names[algindex], key32, keylen);
build UPDATE enable pedantic compilation
@@ -72,7 +72,7 @@ set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG_MINOR_SOVERSION} set(LIBYANG_SOVERSION ${LIBYANG_MAJOR_SOVERSION}) # global C flags -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -std=c11") +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wpedantic -std=c11") include_directories...
qlog: require python3 for the adapter
-#!/usr/bin/env python +#!/usr/bin/env python3 # # Copyright (c) 2020 Fastly, Toru Maesaka # @@ -29,7 +29,7 @@ def handle_packet_received(events, idx): frames = [] for i in range(idx+1, len(events)): ev = events[i] - if ev["type"] == "packet-prepare" or QLOG_EVENT_HANDLERS.has_key(ev["type"]): + if ev["type"] == "packe...
util/dofile.pl: require Text::Template 1.46 or newer The reason is that we override Text::Template::append_text_to_output(), and it didn't exist before Text::Template 1.46. Fixes
@@ -40,7 +40,7 @@ package OpenSSL::Template; use File::Basename; use File::Spec::Functions; use lib "$FindBin::Bin/perl"; -use with_fallback qw(Text::Template); +use with_fallback "Text::Template 1.46"; #use parent qw/Text::Template/; use vars qw/@ISA/;
nimble/ll: Fix error code on connection update request If features has been exchanged and it is already known that peer does not support Connection Parameters Request procedure, controller shall return command status with code (0x1A) according to spec Bluetoot 5.0 Vol 6, 5.1.7 It fixes LL/CON/SLA/BV-86
@@ -853,7 +853,7 @@ ble_ll_conn_hci_update(uint8_t *cmdbuf) /* See if this feature is supported on both sides */ if ((connsm->conn_features & BLE_LL_FEAT_CONN_PARM_REQ) == 0) { if (connsm->conn_role == BLE_LL_CONN_ROLE_SLAVE) { - return BLE_ERR_CMD_DISALLOWED; + return BLE_ERR_UNSUPP_REM_FEATURE; } ctrl_proc = BLE_LL_C...
OcCompressionLib: Fix signedness issues closes acidanthera/bugtracker#833
@@ -78,7 +78,7 @@ DecompressMaskedRLE24 ( // // Early exit on not enough bytes to fill. // - if (DstEnd - DstCur < ControlValue * sizeof (UINT32)) { + if ((UINT32) (DstEnd - DstCur) < ControlValue * sizeof (UINT32)) { return 0; } @@ -93,7 +93,7 @@ DecompressMaskedRLE24 ( // // Early exit on not enough bytes to read or ...
acl: fix unresolved symbol for format_fib_prefix in vat plugin Type: fix
@@ -129,18 +129,18 @@ static inline void * vl_api_acl_rule_t_print (vl_api_acl_rule_t * a, void *handle) { u8 *s; - fib_prefix_t src, dst; + ip_prefix_t src, dst; - ip_prefix_decode (&a->src_prefix, &src); - ip_prefix_decode (&a->dst_prefix, &dst); + ip_prefix_decode2 (&a->src_prefix, &src); + ip_prefix_decode2 (&a->ds...
lindar: modify LED function to match LED SPEC modify LED function to match LED SPEC BRANCH=firmware-volteer-13521.B TEST=make -j BOARD=lindar
@@ -83,7 +83,7 @@ void led_get_brightness_range(enum ec_led_id led_id, uint8_t *brightness_range) if (led_id == EC_LED_ID_BATTERY_LED) { brightness_range[EC_LED_COLOR_RED] = 1; brightness_range[EC_LED_COLOR_AMBER] = 1; - brightness_range[EC_LED_COLOR_GREEN] = 1; + brightness_range[EC_LED_COLOR_WHITE] = 1; } else if (le...
Use ultravideo/kvazaar_ci_base image to reduce installation needs
-# Specify the docker image to use (only used if using docker runners) -# See: http://doc.gitlab.com/ee/ci/docker/using_docker_images.html -image: ubuntu:18.04 +# Use Kvazaar CI base image which includes the build tools and ffmpeg + hmdec in ${HOME}/bin +image: ultravideo/kvazaar_ci_base:latest -# Install needed tools ...
Fix memory leaks in test case.
@@ -340,6 +340,13 @@ void test_too_many_matches() } uint8_t* buffer = (uint8_t*) malloc(2 * YR_MAX_STRING_MATCHES); + + if (buffer == NULL) + { + perror("malloc"); + exit(EXIT_FAILURE); + } + memset(buffer, 'a', 2 * YR_MAX_STRING_MATCHES); int err = yr_rules_scan_mem( @@ -359,6 +366,7 @@ void test_too_many_matches() "%...
fix default beegfs test condition
@@ -93,7 +93,7 @@ AM_CONDITIONAL(BOS_ENABLED,test "x$enable_bos" = "xyes" ) # BeeGFS AC_ARG_ENABLE([beegfs], [AS_HELP_STRING([--enable-beegfs],[Enable BeeGFS utility tests (default=no, root only)])], - [],[enable_beegfs=yes]) + [],[enable_beegfs=no]) AM_CONDITIONAL(BEEGFS_ENABLED,test "x$enable_beegfs" = "xyes" ) #----...
chat: formatting mistake
@@ -235,7 +235,7 @@ export const MessageWithSigil = (props) => { fontWeight={nameMono ? '400' : '500'} className={`mw5 db truncate pointer`} onClick={() => { - writeText(`~${msg.author}`), + writeText(`~${msg.author}`); showCopyNotice(); }} title={`~${msg.author}`}
Force utf8 for postgresql init
@@ -74,7 +74,7 @@ init_zookeeper_mcf_repertory() init_postgres() { - ${DATAFARI_HOME}/pgsql/bin/initdb -U postgres -A password --pwfile=${DATAFARI_HOME}/pgsql/pwd.conf -E utf8 -D ${DATAFARI_HOME}/pgsql/data + ${DATAFARI_HOME}/pgsql/bin/initdb -E 'UTF-8' -U postgres -A password --pwfile=${DATAFARI_HOME}/pgsql/pwd.conf -...
fix commit code review comments
@@ -65,7 +65,7 @@ static void print_fme_verbose_info(fpga_token token) uint64_t bitstream_id; uint32_t major = 0; uint32_t val = 0; - printf("-----FME VERBOSE-----\n"); + res = fpgaTokenGetObject(token, DFL_BITSTREAM_ID, &fpga_object, FPGA_OBJECT_GLOB); if (res != FPGA_OK) { OPAE_MSG("Failed to get token Object"); @@ -...
config/imxrt1020-evk/tc: Fix Partition info for tc preset Add fix to PR - Fix partition info
@@ -363,7 +363,7 @@ CONFIG_BOARDCTL_RESET=y CONFIG_IMXRT_NORFLASH=y CONFIG_IMXRT_AUTOMOUNT=y CONFIG_IMXRT_AUTOMOUNT_USERFS=y -CONFIG_IMXRT_AUTOMOUNT_USERFS_DEVNAME="/dev/smart0p6" +CONFIG_IMXRT_AUTOMOUNT_USERFS_DEVNAME="/dev/smart0p1" CONFIG_IMXRT_AUTOMOUNT_USERFS_MOUNTPOINT="/mnt" # CONFIG_IMXRT_AUTOMOUNT_SSSRW is not...
add sceAppMgrLoadSaveDataSystemFile Package installer debug output.
@@ -323,6 +323,7 @@ modules: sceAppMgrLaunchAppByUri2: 0x0ED6AF54 sceAppMgrLaunchVideoStreamingApp: 0x4C02B889 sceAppMgrLoadExec: 0xE6774ABC + sceAppMgrLoadSaveDataSystemFile: 0x660B57BE sceAppMgrLoopBackFormat: 0xCE8CE150 sceAppMgrLoopBackMount: 0x33CD76DD sceAppMgrMmsMount: 0xF4730BA8
prevent to store out of sequence packets due to runtime of the singal within SoC and driver
@@ -1142,8 +1142,7 @@ static const uint8_t wpa2data[] = }; #define WPA2_SIZE sizeof(wpa2data) -gettimeofday(&tv, NULL); -timestamp = ((uint64_t)tv.tv_sec *1000000) +tv.tv_usec; +timestamp += 1; packetoutptr = epbown +EPB_SIZE; memset(packetoutptr, 0, HDRRT_SIZE +MAC_SIZE_NORM +LLC_SIZE +100); memcpy(packetoutptr, &hdra...
[io, vview] put back the video recording functionality
@@ -556,14 +556,13 @@ class InputObserver(): self._renderer.ResetCameraClippingRange() if key == 's': - if not self._recording: - self.vview.recorder.Start() - self._recording = True + self.toggle_recording(True) if key == 'e': - if self._recording: - self._recording = False - self.vview.recorder.End() + # Note 'e' has...
config_tools: rename UOS to user vm in UI since PRs and have landed, we also need to rename "UOS" to "user vm" in UI.
@@ -43,7 +43,7 @@ the launch scripts will be generated into misc/acrn-config/xmls/config-xmls/[boa <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button> - <h4 class="modal-title" id="addlaunchModalLabel">Configure UOS for Post...
travis: avoid coverity failing due to no token
@@ -31,7 +31,7 @@ script: - | if [[ -z ${COVERITY_SCAN_PROJECT_NAME} ]] ; then make CFLAGS="-O3 -Wall -Werror -Wshadow -pipe" check - else + elif [[ -n ${COVERITY_SCAN_TOKEN} ]] ; then curl -s 'https://scan.coverity.com/scripts/travisci_build_coverity_scan.sh' | bash fi
Fix type of init_random() on Linux and Windows.
@@ -89,6 +89,7 @@ read_random(void *buf, size_t size) arc4random_buf(buf, size); } #elif defined(_WIN32) +void init_random(void) { return; @@ -110,6 +111,7 @@ read_random(void *buf, size_t size) } } #elif defined(__linux__) +void init_random(void) { return;
web-ui: preload first two layers
@@ -46,10 +46,12 @@ const parseDataSet = (getKey, sendNotification, instanceId, tree, path) => { path: newPath, root: !path, children: (Array.isArray(children) && children.length > 0) - ? () => { + ? (notify = true) => { return new Promise(resolve => { getKey(instanceId, newPath, true) + if (notify) { sendNotification(...
publish: submit comment on ctrl+enter
@@ -116,7 +116,13 @@ export class Comments extends Component { "b--gray2-d mb2 focus-b--black focus-b--white-d white-d bg-gray0-d"} aria-describedby="comment-desc" style={{height: "4rem"}} - onChange={this.commentChange}> + onChange={this.commentChange} + onKeyPress={(e) => { + if ((e.getModifierState("Control") || eve...
[runtime] Add stack allocation favorable for the configuration
// Author: Samuel Riedel, ETH Zurich // Matheus Cavalcante, ETH Zurich +// #define TOP4_STACK + .globl _start .section .text; .section .text.init; @@ -64,10 +66,26 @@ reset_vector: li x31, 0 la sp, tcdm_start_address_reg // load stack top from peripheral register lw sp, 0(sp) - csrr t0, mhartid // get hart id - addi t0...
Dead code elimination. Remove the exit_main function which is never used. Remove the exit_options array which is also unreferenced.
@@ -267,10 +267,6 @@ int main(int argc, char *argv[]) EXIT(ret); } -const OPTIONS exit_options[] = { - {NULL} -}; - static void list_cipher_fn(const EVP_CIPHER *c, const char *from, const char *to, void *arg) { @@ -508,11 +504,6 @@ int help_main(int argc, char **argv) return 0; } -int exit_main(int argc, char **argv) -...
Clean up docs example in CONTRIBUTING.md.
@@ -30,10 +30,7 @@ Newer C/C++ documentation on functions should generally try to follow this forma // Code example if necessary. @endcode \rst - [Sphinx directives] - .. versionadded:: 0.0 - .. deprecated:: 0.0 - Deprecation details. + .. versionadded:: Unreleased \endrst */ int example(int value);
webpdec: use ImgIoUtilCheckSizeArgumentsOverflow ...prior to allocating a Picture. this is consistent with the other readers and allows the allocation size to be limited at compile time
@@ -141,10 +141,21 @@ int ReadWebP(const uint8_t* const data, size_t data_size, do { const int has_alpha = keep_alpha && bitstream->has_alpha; + uint64_t stride; pic->width = bitstream->width; pic->height = bitstream->height; - if (!pic->use_argb) pic->colorspace = has_alpha ? WEBP_YUV420A - : WEBP_YUV420; + if (pic->u...
Make sysconfdir in the buildroot
@@ -71,6 +71,7 @@ make %install make DESTDIR=%{buildroot} install %{__mkdir_p} %{buildroot}%{_localstatedir}/log/%{pname} +%{__mkdir_p} %{buildroot}%{_sysconfdir} cp %{SOURCE1} %{buildroot}%{_sysconfdir} %{__mkdir} -p %{buildroot}/%{OHPC_MODULES}/%{pname}
main: clean up and reap zombies in init's thread
@@ -37,7 +37,7 @@ struct { void main_initthr(void *unused) { int i; - syspage_program_t *prog, *last = NULL; + syspage_program_t *prog; int xcount = 0; char *cmdline = syspage->arg, *end; char *argv[32], *arg, *argend; @@ -96,9 +96,7 @@ void main_initthr(void *unused) /* Start program loaded into memory */ for (prog = ...
Have wuffsfmt align the "T"s in "var x T" blocks
@@ -27,6 +27,13 @@ import ( var newLine = []byte{'\n'} +func max(a, b int) int { + if a > b { + return a + } + return b +} + func Render(w io.Writer, tm *t.Map, src []t.Token, comments []string) (err error) { if len(src) == 0 { return nil @@ -36,6 +43,7 @@ func Render(w io.Writer, tm *t.Map, src []t.Token, comments []s...
Fix a conditional check in afr_set_metadata
@@ -54,7 +54,7 @@ function(afr_set_metadata arg_metadata_type arg_metadata_name arg_metadata_val) ) set(__allowed_values BOARD LIB DEMO) - if(NOT ${arg_metadata_type} IN_LIST __allowed_values) + if(NOT "${arg_metadata_type}" IN_LIST __allowed_values) message(FATAL_ERROR "Invalid metadata type: ${arg_metadata_type}.") e...
fix typo: if -> %if
@@ -55,6 +55,7 @@ BuildRequires: ohpc-buildroot # Compiler dependencies %if 0%{?ohpc_compiler_dependent} == 1 + %if "%{compiler_family}" == "gnu" BuildRequires: gnu-compilers%{PROJ_DELIM} Requires: gnu-compilers%{PROJ_DELIM} @@ -66,7 +67,7 @@ Requires: gcc-c++ intel-compilers-devel%{PROJ_DELIM} BuildRequires: intel_lic...
Fix Android ARM exception handling
@@ -1662,6 +1662,8 @@ class LD(Linker): if self.tc.is_clang and self.tc.compiler_version == '3.8': self.sys_lib.append('-L{}/clang/arm-linux-androideabi/lib/armv7-a'.format(self.tc.name_marker)) + if target.is_armv7a: + self.sys_lib.append('-lunwind') self.sys_lib.append('-lgcc') if self.tc.is_clang and not self.tc.ver...
ip: fix length calculation in ip6-receive Replace unconditional usage of buffer->total_length_not_including_first_buffer with a logic checking whether that length is set to a valid value. Type: fix Fixes:
@@ -1276,7 +1276,7 @@ ip6_tcp_udp_icmp_bad_length (vlib_main_t * vm, vlib_buffer_t * p0) } n_bytes_left -= n_this_buffer; - n_bytes_left -= p0->total_length_not_including_first_buffer; + n_bytes_left -= vlib_buffer_length_in_chain (vm, p0) - p0->current_length; if (n_bytes_left == 0) return 0;
baseboard/dedede/variant_ec_it8320.c: Format with clang-format BRANCH=none TEST=none
@@ -75,47 +75,37 @@ BUILD_ASSERT(ARRAY_SIZE(vcmp_list) == VCMP_COUNT); /* I2C Ports */ const struct i2c_port_t i2c_ports[] = { - { - .name = "eeprom", + { .name = "eeprom", .port = I2C_PORT_EEPROM, .kbps = 400, .scl = GPIO_EC_I2C_EEPROM_SCL, - .sda = GPIO_EC_I2C_EEPROM_SDA - }, + .sda = GPIO_EC_I2C_EEPROM_SDA }, - { - ...
Fix division by zero warning on FreeBSD libc. Closes
@@ -180,7 +180,12 @@ m3ApiRawFunction(m3_libc_clock_ms) { m3ApiReturnType (uint32_t) #ifdef CLOCKS_PER_SEC - m3ApiReturn(clock() / (CLOCKS_PER_SEC/1000)); + uint32_t clock_divider = CLOCKS_PER_SEC/1000; + if (clock_divider != 0) { + m3ApiReturn(clock() / clock_divider); + } else { + m3ApiReturn(clock()); + } #else m3Ap...
docs(README): early return in minimal example
@@ -48,13 +48,13 @@ void on_ready(struct discord *client) void on_message(struct discord *client, const struct discord_message *msg) { - if (0 == strcmp(msg->content, "ping")) { // if 'ping' received, reply with 'pong' - struct discord_create_message_params params = { .content = "pong" }; + if (strcmp(msg->content, "pi...
bitsfe~ help update cause windows
-#N canvas 347 54 561 542 10; +#N canvas 631 49 562 533 10; #X obj 6 488 cnv 15 552 21 empty empty empty 20 12 0 14 -233017 -33289 0; #X obj 6 385 cnv 3 550 3 empty empty inlets 8 12 0 13 -228856 -1 0 -1 -1; #X obj 109 352 print~ zero; #X obj 305 283 cyclone/bitsafe~; -#X obj 305 183 expr~ atanh(1); #X text 181 393 - i...
Make ImGui sandboxing a bit less strict
@@ -68,7 +68,11 @@ static constexpr const char* s_cGlobalImmutablesList[] = static constexpr const char* s_cGlobalImGuiList[] = { - "ImGui", + "ImGui" +}; + +static constexpr const char* s_cGlobalExtraLibsWhitelist[] = +{ "ImGuiCond", "ImGuiTreeNodeFlags", "ImGuiSelectableFlags", @@ -93,11 +97,7 @@ static constexpr con...
Send ZDP Mgmt_Leave_req also to sleeping devices when they are awake Otherwise they won't be removed from the network after deleting resources.
@@ -106,6 +106,7 @@ void DeRestPluginPrivate::checkResetState() lastNodeAddressExt = 0; } + const auto now = QDateTime::currentDateTime(); std::vector<Sensor>::iterator si = sensors.begin(); std::vector<Sensor>::iterator si_end = sensors.end(); @@ -113,9 +114,9 @@ void DeRestPluginPrivate::checkResetState() { if (si->i...
common MAINTENANCE unify error cases Refs
@@ -1774,8 +1774,8 @@ sr_chmodown(const char *path, const char *owner, const char *group, mode_t perm) assert(path); if ((int)perm != -1) { - if (perm > 00666) { - sr_errinfo_new(&err_info, SR_ERR_INVAL_ARG, NULL, "Only read and write permissions can be set."); + if (perm > 00777) { + sr_errinfo_new(&err_info, SR_ERR_I...
More compact implementation of BtStreamReceiver receiver logic including re-connect on receive-timeout.
@@ -52,32 +52,22 @@ namespace Miningcore.Mining var timeout = TimeSpan.FromMilliseconds(1000); var reconnectTimeout = TimeSpan.FromSeconds(300); + var relays = endpoints + .DistinctBy(x => $"{x.Url}:{x.SharedEncryptionKey}") + .ToArray(); + while (!cts.IsCancellationRequested) { - var lastMessageReceived = clock.Now; +...
rpl-dag-root: more readable logging of DAG root node IPv6 addresses
@@ -94,11 +94,12 @@ set_global_address(uip_ipaddr_t *prefix, uip_ipaddr_t *iid) uip_ds6_addr_add(&root_ipaddr, 0, ADDR_AUTOCONF); - LOG_INFO("IPv6 addresses: "); + LOG_INFO("IPv6 addresses:\n"); for(i = 0; i < UIP_DS6_ADDR_NB; i++) { state = uip_ds6_if.addr_list[i].state; if(uip_ds6_if.addr_list[i].isused && (state == ...
session: add session enable option in config file Type: feature
@@ -1693,6 +1693,8 @@ session_config_fn (vlib_main_t * vm, unformat_input_t * input) else if (unformat (input, "evt_qs_seg_size %U", unformat_memory_size, &smm->evt_qs_segment_size)) ; + else if (unformat (input, "enable")) + vnet_session_enable_disable (vm, 1 /* is_en */ ); else return clib_error_return (0, "unknown i...
docs/esp8266: Mention Signal in GPIO section of quickref.
@@ -138,6 +138,10 @@ Also note that Pin(16) is a special pin (used for wakeup from deepsleep mode) and may be not available for use with higher-level classes like ``Neopixel``. +There's a higher-level abstraction :ref:`machine.Signal <machine.Signal>` +which can be used to invert a pin. Useful for illuminating active-l...
fs/lustre-client: bump to v2.12.6
@@ -64,7 +64,7 @@ BuildRequires: kernel-abi-whitelists %undefine with_zfs %endif -%{!?version: %global version 2.12.5} +%{!?version: %global version 2.12.6} %if 0%{?suse_version} %{!?kver: %global kver %(readlink /usr/src/linux | sed 's/linux-//' | sed 's/$/-default/')} %else
FIX: ensure that non-CC frames regularly have an opportunity to be sent in fair_reserve
@@ -2661,7 +2661,7 @@ void picoquic_frame_fair_reserve(picoquic_cnx_t *cnx, picoquic_path_t *path_x, p } total_plugin_bytes_in_flight += p->bytes_in_flight; } while ((p = get_next_plugin(cnx, p)) != cnx->first_drr && total_plugin_bytes_in_flight < max_plugin_cwin); - cnx->first_drr = get_next_plugin(cnx, p); + p = cnx-...
Use size of server key when selecting signature algorithm.
@@ -787,6 +787,27 @@ int tls1_lookup_md(const SIGALG_LOOKUP *lu, const EVP_MD **pmd) return 1; } +/* + * Check if key is large enough to generate RSA-PSS signature. + * + * The key must greater than or equal to 2 * hash length + 2. + * SHA512 has a hash length of 64 bytes, which is incompatible + * with a 128 byte (102...
Improve some wording in reference counting documentation JerryScript-DCO-1.0-Signed-off-by: Geoff Gustafson
@@ -11,7 +11,7 @@ by `jerry_release_value`. /* The value stored in the 'global' variable contains a live * reference to the global object. The system also keeps its * own live reference to the global object. These two references - * are indepent, and both must be destroyed before the global + * are independent, and bot...
options/posix: Define _POSIX_MONOTONIC_CLOCK
@@ -28,6 +28,7 @@ extern "C" { #define _POSIX_SPAWN _POSIX_VERSION #define _POSIX_THREADS _POSIX_VERSION #define _POSIX_THREAD_SAFE_FUNCTIONS _POSIX_VERSION +#define _POSIX_MONOTONIC_CLOCK 0 #ifdef __MLIBC_CRYPT_OPTION #define _XOPEN_CRYPT 1
odissey: set default log format as text
# syslog_ident "odissey" # pid_file "./odissey.pid" # log_file "./odissey.log" -log_format "tskv" +log_format "text" log_stdout yes log_debug yes log_config yes
Fix pressing CMD+D twice
@@ -1142,6 +1142,11 @@ fileprivate func parseArgs(_ args: inout [String]) { /// Shows documentation @objc func showDocs(_ sender: UIBarButtonItem) { + + guard presentedViewController == nil else { + return + } + if documentationNavigationController == nil { documentationNavigationController = ThemableNavigationControll...
xml BUGFIX memory leaks
@@ -327,7 +327,7 @@ lyxml_get_string(struct lyxml_context *context, const char **input, char **buffe } else if (rc) { /* some parsing error, so pass it */ (*input) = in; - return rc; + goto error; } else { /* whitespace-only content */ len = offset; @@ -461,10 +461,10 @@ getbuffer: LOGVAL(ctx, LY_VLOG_LINE, &context->l...
remove dot files from file listings
@@ -46,18 +46,18 @@ list_t* getFileListForDirIf(const char* dirname, list->free = (void (*)(void*)) & _secFree; list->match = (matchFunction)strequal; while ((ent = readdir(dir)) != NULL) { - if (!strequal(ent->d_name, ".") && !strequal(ent->d_name, "..")) { #ifdef _DIRENT_HAVE_DTYPE if (ent->d_type == DT_REG) { #endif...
avr_bl: use ms for stopbit, use low speed for less noise
#define CMD_BOOTSIGN 0x08 #define START_BIT_TIMEOUT_MS 10 -#define START_BIT_TIMEOUT (10000 * TICKS_PER_US) #define BIT_TIME (SYS_CLOCK_FREQ_HZ / 19200) #define BIT_TIME_HALF (BIT_TIME / 2) @@ -60,7 +59,7 @@ static void esc_set_input(gpio_pins_t pin) { gpio_init.Mode = LL_GPIO_MODE_INPUT; gpio_init.OutputType = LL_GPIO...
tarball naming
@@ -84,7 +84,7 @@ rm -rf %{buildroot} %debug_package %{nil} %install -cd beegfs_client_module/build +cd v6*/beegfs_client_module/build echo "mkdir RPM_BUILD_ROOT (${RPM_BUILD_ROOT})" mkdir -p ${RPM_BUILD_ROOT} make RELEASE_PATH=${RPM_BUILD_ROOT}/opt/beegfs/src/client \
Solve minor bug in previous commit.
@@ -70,12 +70,12 @@ func MetaCall(function string, args ...interface{}) (interface{}, error) { // Create float32 if i, ok := arg.(float32); ok { - *cArg = C.metacall_value_create_float((C.float32)(i)) + *cArg = C.metacall_value_create_float((C.float)(i)) } // Create float64 if i, ok := arg.(float64); ok { - *cArg = C.m...
webui/base: update dockerfile
# base image for elektra web, all other images build upon this (builds elektra with `yajl` and `kdb`) -FROM ubuntu:16.04 +FROM ubuntu:20.04 # elektra deps RUN apt-get update RUN apt-get install -y software-properties-common -RUN add-apt-repository ppa:longsleep/golang-backports -RUN apt-get update -y && apt-get install...
Validate parser parameter to XML_SetEndDoctypeDeclHandler
@@ -1492,6 +1492,7 @@ XML_SetStartDoctypeDeclHandler(XML_Parser parser, void XMLCALL XML_SetEndDoctypeDeclHandler(XML_Parser parser, XML_EndDoctypeDeclHandler end) { + if (parser != NULL) endDoctypeDeclHandler = end; }
[catboost] use structured bindings to increase readability
@@ -163,9 +163,9 @@ static TPoolMetainfo MakePoolMetainfo( metainfo.SetStringGroupIdFakeColumnIndex(GetFakeGroupIdColumnIndex(columnCount)); metainfo.SetStringSubgroupIdFakeColumnIndex(GetFakeSubgroupIdColumnIndex(columnCount)); - for (const auto& kv : columnIndexToLocalIndex) { + for (const auto [columnIndex, localInd...
Implement source rework to HTML client Implementing the source command rework - along with display - to the html client too. JerryScript-DCO-1.0-Signed-off-by: Daniel Balla
@@ -118,6 +118,7 @@ function DebuggerClient(address) var backtraceFrame = 0; var evalResult = null; var exceptionData = null; + var display = 0; function assert(expr) { @@ -691,7 +692,7 @@ function DebuggerClient(address) return; } - func.source = source; + func.source = source.split(/\r\n|[\r\n]/); func.sourceName = s...
static link to sdl2 lib on rpi
@@ -882,7 +882,7 @@ if(BUILD_SDL) else() if(EMSCRIPTEN) elseif(RPI) - target_link_libraries(${TIC80_OUTPUT} SDL2 bcm_host) + target_link_libraries(${TIC80_OUTPUT} libSDL2.a bcm_host) else() target_link_libraries(${TIC80_OUTPUT} SDL2-static) endif() @@ -999,7 +999,6 @@ elseif (LINUX) if(RPI) set(CPACK_DEBIAN_PACKAGE_ARC...
in_opentelemetry: switched FLB_INPUT_NET with FLB_INPUT_NET_SERVER.
@@ -196,5 +196,5 @@ struct flb_input_plugin in_opentelemetry_plugin = { .cb_resume = NULL, .cb_exit = in_opentelemetry_exit, .config_map = config_map, - .flags = FLB_INPUT_NET | FLB_IO_OPT_TLS, + .flags = FLB_INPUT_NET_SERVER | FLB_IO_OPT_TLS };
Jenkinsfile: add build job with mmapstorage as default storage
@@ -79,6 +79,12 @@ CMAKE_FLAGS_INI = [ 'KDB_DEFAULT_STORAGE': 'ini' ] +CMAKE_FLAGS_MMAP = [ + 'KDB_DB_FILE': 'default.mmap', + 'KDB_DB_INIT': 'elektra.mmap', + 'KDB_DEFAULT_STORAGE': 'mmapstorage' +] + CMAKE_FLAGS_I386 = [ 'CMAKE_C_FLAGS': '-m32', 'CMAKE_CXX_FLAGS': '-m32' @@ -566,6 +572,19 @@ def generateFullBuildStag...
adding libx11 XGetFontPath
@@ -386,7 +386,7 @@ GO(XGetDefault, pFppp) GO(XGetErrorDatabaseText, iFpppppi) GO(XGetErrorText, iFpipi) GO(XGetEventData, iFpp) -//GO(XGetFontPath +GO(XGetFontPath, pFpp) GO(XGetFontProperty, iFppp) GO(XGetGCValues, iFppup) GO(XGetGeometry, iFppppppppp)
tls initialization sanitized
@@ -95,11 +95,9 @@ int dill_tls_attach_client_mem(int s, struct dill_tls_storage *mem, BIO *bio = dill_tls_new_cbio(mem); if(dill_slow(!bio)) {err = errno; goto error3;} SSL_set_bio(ssl, bio, bio); - /* Make a private copy of the underlying socket. */ /* Take ownership of the underlying socket. */ - int u = dill_hown(s...
Add sce_paf_private_vsnprintf function
#define _PSP2_PAF_H_ #include <psp2/types.h> +#include <stdarg.h> #ifdef __cplusplus extern "C" { @@ -36,6 +37,11 @@ void *sce_paf_private_memmove(void *destination, const void *source, SceSize num void *sce_paf_private_bcopy(void *destination, const void *source, SceSize num); void *sce_paf_private_memset(void *ptr, i...
luci-app-ssr-libev-server: export page variable
@@ -5,7 +5,7 @@ local http = require "luci.http" function index() if not nixio.fs.access("/etc/config/ssr_libev_server") then return end entry({"admin", "vpn"}, firstchild(), "VPN", 45).dependent = false - entry({"admin", "vpn", "ssr_libev_server"}, cbi("ssr_libev_server/index"), + local page = entry({"admin", "vpn", "...
Don't roundup when evicting single part
@@ -21,7 +21,7 @@ struct eviction_policy_ops evict_policy_ops[ocf_eviction_max] = { }; static uint32_t ocf_evict_calculate(struct ocf_user_part *part, - uint32_t to_evict) + uint32_t to_evict, bool roundup) { if (part->runtime->curr_size <= part->config->min_size) { /* @@ -31,7 +31,7 @@ static uint32_t ocf_evict_calcul...
tools: update hssi mailbox poll time 1 mirco second
@@ -50,11 +50,11 @@ BDF_PATTERN = re.compile(PATTERN, re.IGNORECASE) DEFAULT_BDF = 'ssss:bb:dd.f' -# mailbox register poll interval 1 milliseconds -HSSI_POLL_SLEEP_TIME = 0.001 +# mailbox register poll interval 1 microseconds +HSSI_POLL_SLEEP_TIME = 1/1000000 -# mailbox register poll timeout 10 milliseconds -HSSI_POLL_...
documentation: Fix link for Kotlin binding Closes
@@ -18,7 +18,7 @@ List of currently supported bindings (use `cmake -DBINDINGS=ALL;-EXPERIMENTAL;-D - [python](swig/python/) Python 3 SWIG bindings - [ruby](swig/ruby/) Ruby bindings - [jna](jna/) Java binding using JNA - - [kotlin](jna/kotlin) Kotlin binding (based on JNA) + - [kotlin](jna/libelektra-kotlin) Kotlin bin...
node version, "before_deploy" duplication workaround
language: node_js # ish, mainly used as an entry point +node_js: + - 4 before_install: - cd .travis # keep main directory clear @@ -10,7 +12,8 @@ before_install: before_script: bash get-or-build-pill.sh -before_deploy: mkdir piers && tar cvzSf piers/zod-$TRAVIS_COMMIT.tgz zod/ +# https://github.com/travis-ci/travis-ci/...
enforce that macrocompiler passes are done serially
@@ -82,7 +82,7 @@ HARNESS_MACROCOMPILER_MODE = --mode synflops $(HARNESS_SMEMS_FILE) $(HARNESS_SMEMS_FIR): harness_macro_temp @echo "" > /dev/null -harness_macro_temp: $(HARNESS_SMEMS_CONF) +harness_macro_temp: $(HARNESS_SMEMS_CONF) | top_macro_temp cd $(base_dir) && $(SBT) "project barstoolsMacros" "runMain barstools....
Update creating_a_simple_bundle.md Small fixes to fix the guide
@@ -64,7 +64,7 @@ SET(CMAKE_CXX_FLAGS_DEBUG "-g -DDEBUG") #Part 3. Setup Celix cmake files, include paths, libraries and library paths #Note. If celix is not installed in /usr/local dir, change the location accordingly. set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "/usr/local/share/celix/cmake/modules") -find_package(CEL...
tests: fixed ring buffer event issue
@@ -82,7 +82,6 @@ static void test_smart_flush() struct mk_event *event; struct mk_event_loop *evl; struct flb_ring_buffer *rb; - struct flb_ring_buffer *erb; struct flb_bucket_queue *bktq; #ifdef _WIN32 @@ -141,9 +140,7 @@ static void test_smart_flush() flush_event_detected = FLB_FALSE; flb_event_priority_live_foreach...