message
stringlengths
6
474
diff
stringlengths
8
5.22k
fancier run test stuff
@@ -4,14 +4,25 @@ if [ -z "$1" ]; then echo "Usage: ./run-test.sh <path to testcase>" exit 1 elif [ "$1" = "all" ]; then + echo "" > ./build/tests/pass-fail.log find tests -name native_posix.keymap -exec dirname \{\} \; | xargs -l -P 4 ./run-test.sh - exit $? + err=$? + sort -k2 ./build/tests/pass-fail.log + exit $err ...
Changed path for udev rules to default /etc/udev/rules.d/ -> /lib/udev/rules.d/
@@ -268,8 +268,8 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Linux") set(STLINK_MODPROBED_DIR "/etc/modprobe.d" CACHE PATH "modprobe.d directory") install(FILES ${CMAKE_SOURCE_DIR}/config/modprobe.d/stlink_v1.conf DESTINATION ${STLINK_MODPROBED_DIR}) - ## Install udev rules files to /etc/udev/rules.d/ (explicitly hardcoded) - s...
doc: create a copy of the scenario file before making modifications Instruct the user to create a copy of the scenario XML file if modifications are needed. That modified copy should subsequently be used for building ACRN.
@@ -139,11 +139,6 @@ Update ACRN Hypervisor Image 04:00.0 Ethernet controller: Intel Corporation I210 Gigabit Network Connection (rev 03) Subsystem: Intel Corporation I210 Gigabit Network Connection - .. note:: - Verify the ``pci_devs`` defined for VM0 and VM1 in the - ``misc/config_tools/data/whl-ipc-i7/logical_partit...
fix swing compoment and sudo pipe execution
@@ -87,19 +87,19 @@ sub_v8repo(){ sudo apt-get -y install software-properties-common python-software-properties #v85.1 if [ $INSTALL_V8REPO51 = 1 ]; then - sudo echo "deb http://ppa.launchpad.net/pinepain/libv8-5.1/ubuntu wily main" > /etc/apt/sources.list.d/libv851.list + sudo sh -c "echo \"deb http://ppa.launchpad.ne...
cmake: respect TERM
############################################################################## function(message) list(GET ARGV 0 type) + if("$ENV{TERM}" STREQUAL "xterm-256color") string(ASCII 27 esc) set(red "${esc}[1;31m") set(yellow "${esc}[1;33m") set(reset "${esc}[m") + endif() if(type STREQUAL FATAL_ERROR OR type STREQUAL SEND_E...
include/power/cometlake.h: Format with clang-format BRANCH=none TEST=none
#define IN_PCH_SLP_S3_DEASSERTED POWER_SIGNAL_MASK(X86_SLP_S3_DEASSERTED) #define IN_PCH_SLP_S4_DEASSERTED POWER_SIGNAL_MASK(X86_SLP_S4_DEASSERTED) -#define IN_ALL_PM_SLP_DEASSERTED (IN_PCH_SLP_S3_DEASSERTED | \ - IN_PCH_SLP_S4_DEASSERTED) +#define IN_ALL_PM_SLP_DEASSERTED \ + (IN_PCH_SLP_S3_DEASSERTED | IN_PCH_SLP_S4_...
feat: Add platform of "Fibocom-L610" for chainmaker
@@ -107,10 +107,10 @@ const BCHAR *chainmaker_client_tls_cert = #endif #endif -BCHAR *chainmaker_node_url = "152.136.217.46:12302"; -BCHAR *chainmaker_host_name = "common1.tls.org1.cmtestnet"; -BCHAR *chainmaker_chain_id = "chainmaker_testnet_chain"; -BCHAR *chainmaker_org_id = "org5.cmtestnet"; +BCHAR *chainmaker_node...
Update ticket_flags related macros
@@ -812,9 +812,12 @@ typedef struct mbedtls_ssl_flight_item mbedtls_ssl_flight_item; #if defined(MBEDTLS_SSL_PROTO_TLS1_3) && defined(MBEDTLS_SSL_SESSION_TICKETS) typedef uint8_t mbedtls_ssl_tls13_ticket_flags; -#define MBEDTLS_SSL_TLS1_3_TICKET_ALLOW_PSK_RESUMPTION ( 1u << 0 ) -#define MBEDTLS_SSL_TLS1_3_TICKET_ALLOW_...
Add constants for binding animation flag.
@@ -1125,6 +1125,15 @@ typedef enum DIRECTION_RIGHT } e_direction; +typedef enum +{ + BINDING_ANI_NONE = 0, + BINDING_ANI_ANIMATION_MATCH = 1, + BINDING_ANI_FRAME_MATCH = 2, + BINDING_ANI_ANIMATION_KILL = 4, + BINDING_ANI_FRAME_KILL = 6 +} e_binding_animation; + typedef enum { /*
Examples: add check for output GRIB
. ./include.sh +tempGrib="out_surface_level.grib2" + +# Input and output GRIB files are hard coded in the example ${examples_dir}/c_grib_set_missing -rm -f out_surface_level.grib2 + +# Check the keys have been set to MISSING +sf=`${tools_dir}/grib_get -p scaleFactorOfFirstFixedSurface $tempGrib` +[ "$sf" = "MISSING" ] ...
Check that result of print function is not NULL before using
@@ -201,6 +201,12 @@ DumpSupportCommand( pPlatformSupportFileName = CatSPrint(pDumpUserPath, L"_" FORMAT_STR L".txt", APPEND_TO_FILE_NAME); + if (NULL == pPlatformSupportFileName) { + ReturnCode = EFI_OUT_OF_RESOURCES; + PRINTER_SET_MSG(pPrinterCtx, ReturnCode, CLI_ERR_OUT_OF_MEMORY); + goto Finish; + } + pPlatformSupp...
[agx] Update for Pixels API changes
@@ -16,7 +16,8 @@ use agx_definitions::{ StrokeThickness, CHAR_HEIGHT, CHAR_WIDTH, FONT8X8, }; use axle_rt::ExpectsEventField; -use pixels::{Error, Pixels, SurfaceTexture}; +use pixels::wgpu::TextureFormat; +use pixels::{Error, Pixels, PixelsBuilder, SurfaceTexture}; use winit::event::{MouseButton, MouseScrollDelta}; u...
Don't call extend_max_stream_data callback if stream is half-closed local
@@ -3652,6 +3652,11 @@ static int conn_recv_max_stream_data(ngtcp2_conn *conn, if (strm->tx.max_offset < fr->max_stream_data) { strm->tx.max_offset = fr->max_stream_data; + /* Don't call callback if stream is half-closed local */ + if (strm->flags & NGTCP2_STRM_FLAG_SHUT_WR) { + return 0; + } + rv = conn_call_extend_ma...
Fix minor leak in TLS host verification. sk_GENERAL_NAME_free() only freed the name stack, not the names in the stack. sk_GENERAL_NAME_pop_free() frees both. Due to aggressive connection reuse this leak was unlikely to be very noticeable.
@@ -232,7 +232,7 @@ tlsClientHostVerify(const String *host, X509 *certificate) break; } - sk_GENERAL_NAME_free(altNameStack); + sk_GENERAL_NAME_pop_free(altNameStack, GENERAL_NAME_free); } // If no subject alternative name was found then check the common name. Per RFC 2818 and RFC 6125, if the subjectAltName
ci: allow failure for code quality report
@@ -58,7 +58,8 @@ code_quality_check: extends: - .sonar_scan_template - .rules:patterns:static-code-analysis-preview - allow_failure: true + allow_failure: true # since now it's using exit code to indicate the code analysis result, + # we don't want to block ci when critical issues founded script: - export CI_MERGE_REQ...
check for NULL in ksClear and ksClose
@@ -474,10 +474,11 @@ int ksDel (KeySet * ks) * @param ks the keyset object to work with * @see ksAppendKey() for details on how keys are inserted in KeySets * @retval 0 on success - * @retval -1 on failure (memory) + * @retval -1 on failure (memory) or ks == NULL */ int ksClear (KeySet * ks) { + if (ks == NULL) return...
Updater: Add gdi32 DelayLoadDLLs
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> <Link> <AdditionalDependencies>bcrypt.lib;%(AdditionalDependencies)</AdditionalDependencies> - <DelayLoadDLLs>comctl32.dll;bcrypt.dll;shell32.dll;user32.dll;version.dll;%(DelayLoadDLLs)</DelayLoadDLLs> + <DelayLoadDLLs>comctl32.dll;bcrypt.d...
Added R and Rcpp in travis for linux.
@@ -17,7 +17,7 @@ before_install: - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew tap homebrew/php; brew update; fi install: - - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install swig3.0 cmake python-dev ruby-dev php-dev liblua5.3-dev octave-pkg-dev openjdk-8-jdk -y; fi + - if [[ "$TRAVIS_OS_NAME" == "l...
notifications: clear before applying unreads Fixes urbit/landscape#646
@@ -204,6 +204,7 @@ function unreadEach(json: any, state: HarkState): HarkState { function unreads(json: any, state: HarkState): HarkState { const data = _.get(json, 'unreads'); if(data) { + state = clearState(state); data.forEach(({ index, stats }) => { const { unreads, notifications, last } = stats; updateNotificatio...
use CommitDate on last commit for each branch as the reference date
@@ -46,8 +46,8 @@ function find_newer_branches() { branch=`echo $curline | cut -d" " -f1 | xargs` shortcommit=`echo $curline | cut -d" " -f2` if [[ "$shortcommit" != "->" ]] ; then - author=`git show $shortcommit | grep "^Author:" | cut -d":" -f2- | cut -d"<" -f1 | xargs` - branchdate=`git show $shortcommit | grep "^Da...
Supported linking with -lrt on BSD systems. OpenBSD lacks support of librt.
@@ -58,7 +58,7 @@ case "$NXT_SYSTEM" in NXT_LIB_SHARED_LOCAL="$NXT_BUILD_DIR/libnxt.so" NXT_LIBM="-lm" - NXT_LIBS="$NXT_PTHREAD" + NXT_LIBS="$NXT_LIBRT $NXT_PTHREAD" ;; SunOS) @@ -144,7 +144,7 @@ case "$NXT_SYSTEM" in NXT_LIB_SHARED_LOCAL="$NXT_BUILD_DIR/libnxt.so" NXT_LIBM="-lm" - NXT_LIBS="$NXT_PTHREAD" + NXT_LIBS="$...
Change from jerk model to std noise model
@@ -531,17 +531,23 @@ void survive_kalman_tracker_process_noise(const struct SurviveKalmanTracker_Para // http://wiki.dmdevelopment.ru/wiki/Download/Books/Digitalimageprocessing/%D0%9D%D0%BE%D0%B2%D0%B0%D1%8F%20%D0%BF%D0%BE%D0%B4%D0%B1%D0%BE%D1%80%D0%BA%D0%B0%20%D0%BA%D0%BD%D0%B8%D0%B3%20%D0%BF%D0%BE%20%D1%86%D0%B8%D1%...
Remove hand-written edit to generated C code.
@@ -252,8 +252,6 @@ puffs_flate_status puffs_flate_decoder_decode(puffs_flate_decoder* self, // C HEADER ENDS HERE. -#include "../../../script/puffs-flate-decoder-decode-huffman.c" - #ifndef PUFFS_BASE_IMPL_H #define PUFFS_BASE_IMPL_H @@ -582,7 +580,7 @@ puffs_flate_status puffs_flate_decoder_decode(puffs_flate_decoder...
Updated Readme with a note to run tests parallely to avoid answer file mismatch
@@ -15,8 +15,9 @@ Before building the code of feature tests part, just make sure your compiler sup 1. Make sure HAWQ is running correctly. If not, `init` or `start` HAWQ at first. Note please don't set locale related arguments for hawq init. 2. Load environment configuration by running `source $INSTALL_PREFIX/greenplum...
roller: simplify json for dns in get naive state
%- pairs :~ ['points' (points (tap:orm:naive points.state))] ['operators' (operators operators.state)] - ['dns' a+(turn dns.state (cork same (lead %s)))] + ['dns' a+(turn dns.state (lead %s))] == :: ++ operators
tests: internal: input_chunk: initialize event loop
@@ -407,8 +407,14 @@ void flb_test_input_chunk_fs_chunks_size_real() struct cio_ctx *cio; msgpack_sbuffer mp_sbuf; char buf[262144]; + struct mk_event_loop *evl; cfg = flb_config_init(); + evl = mk_event_loop_create(256); + + TEST_CHECK(evl != NULL); + cfg->evl = evl; + flb_log_create(cfg, FLB_LOG_STDERR, FLB_LOG_DEBUG...
config.in: use swaynag -B instead of -b '-b' spawns a terminal, which is unnecessary for this use case
@@ -82,7 +82,7 @@ output * bg @datadir@/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill bindsym $mod+Shift+c reload # Exit sway (logs you out of your Wayland session) - bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland ses...
Fix missing comment.
@@ -42,18 +42,18 @@ $CMAKE_FLAGS = "$CMAKE_FLAGS -G ""$GENERATOR""" ############################################################################### -### Install dependencies. +### Install dependencies and setup system. ############################################################################### choco install -y -r s...
gh-actions: use grep instead of git to search for trailing whitespace The git version would only look at the last patch, which means whitespace could (and did) sneak in as part of multi-patch changes. This also removes the whitespace that snuck snuck in.
@@ -10,7 +10,7 @@ jobs: with: fetch-depth: 2 - name: Trailing whitespace - run: git diff --check HEAD^ + run: find simde/ -name '*.c' -o -name '*.h' -exec grep -nP '\s+$' {} + && exit 1 || exit 0 - name: Tabs run: find simde/ -name '*.c' -o -name '*.h' -exec grep -nP '\t' {} + && exit 1 || exit 0 # s/8/16/ will result ...
chat: no s3, no blank space fixes urbit/landscape#892
@@ -178,7 +178,14 @@ export class ChatInput extends Component<ChatInputProps, ChatInputState> { changeEvent={this.eventHandler} placeholder='Message...' /> - <Box mx='12px' flexShrink={0} height='16px' width='16px' flexBasis='16px'> + <Box + mx='12px' + mr={this.props.canUpload ? '12px' : 3} + flexShrink={0} + height='...
Bumping patch version to indicate correct upcoming release version
@@ -11,7 +11,7 @@ Feel free to copy, use and enjoy according to the license provided. #define H_FACIL_H #define FACIL_VERSION_MAJOR 0 #define FACIL_VERSION_MINOR 5 -#define FACIL_VERSION_PATCH 2 +#define FACIL_VERSION_PATCH 3 #ifndef FACIL_PRINT_STATE /**
Update community and documentation links for GitHub templates
blank_issues_enabled: true contact_links: - name: Luos Community Support - url: https://community.luos.io + url: https://luos.io/community about: Please ask and answer questions about Luos here. - name: Luos Documentation - url: https://docs.luos.io/ + url: https://luos.io/docs about: Please read Luos documentation her...
OcBlitLib: Fix off by one error and a typo in BlitBuffer270
@@ -224,6 +224,7 @@ BlitLibBufferToVideo270 ( UINT32 *Destination; UINT32 *SourceWalker; UINT32 *DestinationWalker; + UINTN LastX; UINTN IndexX; UINTN PixelsPerScanLine; UINT32 Uint32; @@ -239,8 +240,9 @@ BlitLibBufferToVideo270 ( while (Height > 0) { DestinationWalker = Destination; SourceWalker = Source; - for (Index...
lv_indev.c have LV_GROUP_KEY_ESC send an LV_EVENT_CANCEL signal
@@ -415,13 +415,20 @@ static void indev_keypad_proc(lv_indev_t * i, lv_indev_data_t * data) /*Simulate a press on the object if ENTER was pressed*/ if(data->key == LV_GROUP_KEY_ENTER) { + /*Send the ENTER as a normal KEY*/ + lv_group_send_data(g, LV_GROUP_KEY_ENTER); + focused->signal_cb(focused, LV_SIGNAL_PRESSED, NUL...
Add some missing sigalgs The SHA1 sigalgs were inadvertently missed off in the sigalgs refactor.
@@ -735,6 +735,10 @@ static const unsigned int tls12_sigalgs[] = { TLSEXT_SIGALG_rsa_pkcs1_sha384, TLSEXT_SIGALG_rsa_pkcs1_sha512, + TLSEXT_SIGALG_ecdsa_sha1, + TLSEXT_SIGALG_rsa_pkcs1_sha1, + TLSEXT_SIGALG_dsa_sha1, + TLSEXT_SIGALG_dsa_sha256, TLSEXT_SIGALG_dsa_sha384, TLSEXT_SIGALG_dsa_sha512
remove var. name in catch statement When catching 'not_found', simply return 0. No need for processing exception variable.
@@ -200,7 +200,7 @@ uint64_t fpga_cache_counters::read_counter(fpga_cache_counters::ctr_t c) if (counter) { return counter->read64(); } - }catch(not_found &err) { + }catch(not_found &) { return 0; } @@ -360,7 +360,7 @@ uint64_t fpga_fabric_counters::read_counter(fpga_fabric_counters::ctr_t c) if (counter) { return coun...
apps/readline: check whether CONFIG_EOL_IS_EITHER_CRLF is defined * We should check whether CONFIG_EOL_IS_EITHER_CRLF is defined, instead of checking it's value.
@@ -247,7 +247,7 @@ ssize_t readline_common(FAR struct rl_common_s *vtbl, FAR char *buf, int buflen) else if (ch == '\n') #elif defined(CONFIG_EOL_IS_CR) else if (ch == '\r') -#elif CONFIG_EOL_IS_EITHER_CRLF +#elif defined(CONFIG_EOL_IS_EITHER_CRLF) else if (ch == '\n' || ch == '\r') #endif {
examples/socket: Fix for send() failure handling. Closes
@@ -53,6 +53,8 @@ static void do_retransmit(const int sock) int written = send(sock, rx_buffer + (len - to_write), to_write, 0); if (written < 0) { ESP_LOGE(TAG, "Error occurred during sending: errno %d", errno); + // Failed to retransmit, giving up + return; } to_write -= written; }
fix memory leak in nlop_permuts_inputs
@@ -283,7 +283,7 @@ struct nlop_s* nlop_permute_inputs(const struct nlop_s* x, int I2, const int per for (int i = 0; i < II + OO; i++) perm2[i] = (i < OO) ? i : (OO + perm[i - OO]); - n->op = operator_permute(operator_ref(x->op), II + OO, perm2); + n->op = operator_permute(x->op, II + OO, perm2); return PTR_PASS(n); }
GRE tunnel key should use fib_index instead of fib_id Follow up fix - vl_api_gre_add_del_tunnel_t_handler should pass outer_fib_id from API message to vnet_gre_add_del_tunnel() and not convert it to fib_index, since vnet_gre_add_del_tunnel() already perform the lookup to get fib_index from fib_id.
@@ -54,19 +54,8 @@ static void vl_api_gre_add_del_tunnel_t_handler vl_api_gre_add_del_tunnel_reply_t *rmp; int rv = 0; vnet_gre_add_del_tunnel_args_t _a, *a = &_a; - u32 outer_fib_id; - u32 p; u32 sw_if_index = ~0; - p = fib_table_find (!mp->is_ipv6 ? FIB_PROTOCOL_IP4 : FIB_PROTOCOL_IP6, - ntohl (mp->outer_fib_id)); - ...
Macro can trigger Misra violation due redef of var before their use
@@ -139,15 +139,15 @@ bool dist_to_meas_check(int val, int val_last, struct sample_t *val_meas, const int MAX_RATE_UP, const int MAX_RATE_DOWN, const int MAX_ERROR) { // *** val rate limit check *** - int highest_allowed_val = MAX(val_last, 0) + MAX_RATE_UP; - int lowest_allowed_val = MIN(val_last, 0) - MAX_RATE_UP; + ...
fix flag 4 mapsmobi
@@ -1157,6 +1157,8 @@ class GnuCompiler(Compiler): self.c_foptions.append('$CLANG_ALIGNED_ALLOCATION_FLAG') else: self.c_warnings.append('-Wno-aligned-allocation-unavailable') + if preset('MAPSMOBI_BUILD_TARGET') and self.target.is_arm: + self.c_foptions.append('-fembed-bitcode') if self.target.is_android: self.c_flags...
fixed missing variable in pyccl test
@@ -141,13 +141,13 @@ def check_massfunc(cosmo): mhalo_arr = np.array([1e11, 1e12, 1e13, 1e14, 1e15, 1e16]) # massfunc - assert_( all_finite(ccl.massfunc(cosmo, mhalo_scl, a)) ) - assert_( all_finite(ccl.massfunc(cosmo, mhalo_lst, a)) ) - assert_( all_finite(ccl.massfunc(cosmo, mhalo_arr, a)) ) + assert_( all_finite(cc...
[add] Bump version for test release
@@ -31,7 +31,7 @@ APP_LOAD_PARAMS += --path "1517992542'/1101353413'" APPVERSION_M=1 APPVERSION_N=9 APPVERSION_P=17 -APPVERSION=$(APPVERSION_M).$(APPVERSION_N).$(APPVERSION_P) +APPVERSION=$(APPVERSION_M).$(APPVERSION_N).$(APPVERSION_P)-exchangefix APP_LOAD_FLAGS= --appFlags 0x240 --dep Ethereum:$(APPVERSION) ifeq ($(CH...
Remove dummy vendorID overwrite in init_gpu_stats() We have already enforced that a few lines above just after parsing the vendor node.
@@ -657,8 +657,6 @@ void init_gpu_stats(uint32_t& vendorID, uint32_t reported_deviceID, overlay_para amdgpu.temp = fopen((path + dir + "/temp1_input").c_str(), "r"); if (!amdgpu.power_usage) amdgpu.power_usage = fopen((path + dir + "/power1_average").c_str(), "r"); - - vendorID = 0x1002; } break; }
core: fall back to "idle" debugging method when debugger can not be found This is done only when no specific debugger type is specified by the user.
@@ -325,6 +325,10 @@ static bxf_instance *run_test(struct run_next_context *ctx, default: break; } } + + if (criterion_options.debug == CR_DBG_NATIVE) + BXF_DBG_ENABLE_FALLBACK(debugger); + if (!debugger) cr_panic("Could not choose the debugger server for an " "unknown compiler"); @@ -347,7 +351,7 @@ static bxf_instanc...
esp builds on mac
PATH := esp-open-sdk/xtensa-lx106-elf/bin:$(PATH) -CC = xtensa-lx106-elf-gcc +CC = esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc CFLAGS = -Iinclude/ -I. -I../ -mlongcalls -Iesp-open-sdk/ESP8266_NONOS_SDK_V1.5.4_16_05_20/driver_lib/include -std=c99 -DICACHE_FLASH LDLIBS = -nostdlib -Wl,--start-group -lmain -lne...
Ruby: improved logging of exceptions without backtraces. If an exception was raised with a backtrace of zero length, the nxt_ruby_exception_log() routine would return without logging the exception class and message. This commit fixes the issue.
@@ -1069,14 +1069,18 @@ nxt_ruby_exception_log(nxt_unit_request_info_t *req, uint32_t level, return; } + eclass = rb_class_name(rb_class_of(err)); + + msg = rb_funcall(err, rb_intern("message"), 0); ary = rb_funcall(err, rb_intern("backtrace"), 0); - if (nxt_slow_path(RARRAY_LEN(ary) == 0)) { + + if (RARRAY_LEN(ary) ==...
Fix SWO output
#error "ITM port is not available on Cortex-M0(+) cores. Need to set CMake option SWO_OUTPUT to OFF." #else -// number of attempts to write to the ITM port before quit -#define ITM_WRITE_ATTEMPTS 10 +// number of attempts to write to the ITM port before quitting +// developer note: this is an arbitrary value from trial...
Update build-xamarin.py
@@ -115,7 +115,7 @@ def buildXamarinNuget(args, target): if not nuget(args, buildDir, 'pack', - '"%s/CartoMobileSDK.%s.nuspec"' % (buildDir, target), + '%s/CartoMobileSDK.%s.nuspec' % (buildDir, target), '-BasePath', '/' ): return False
Add test case for closures within loops
@@ -62,3 +62,19 @@ assert(ArrowFuncModule.func9("Dictu ", "is great!") == "Dictu is great!"); } } } + +/** + * Within a loop. + * There was an issue where functions defined in a loop wrongly shuffled the bytecode + * add a test to cover this + */ +var x = 0; + +while (x < 10) { + def myFunc() { + assert(type(x) == 'num...
codegen: fix possible segfault in example
@@ -40,7 +40,7 @@ void showMenu (Menu * menu) char * end; char buf[20]; - int selection; + int selection = -1; int minSelection = menu->command[0] != '\0' ? 0 : 1; do @@ -63,7 +63,7 @@ void showMenu (Menu * menu) { system (menu->command); } - else + else if (selection > 0) { showMenu (menu->children[selection - 1]); }
Fix TRADFRI remote control arrow buttons hold/long release events When pressing the middle button for more than 5 seconds the remote reads the Application Version attribute. If the coordinator doesn't respond with value 17 as indicated in earlier remote firmware versions, the arrow buttons don't send hold/long release ...
@@ -79,9 +79,22 @@ void DeRestPluginPrivate::sendBasicClusterResponse(const deCONZ::ApsDataIndicati break; case 0x0001: // Application Version + { stream << code; stream << (quint8) deCONZ::Zcl8BitUint; - stream << (quint8) 0x00; + + Sensor *sensor = getSensorNodeForAddressAndEndpoint(ind.srcAddress(), ind.srcEndpoint(...
ARMv8: disable traps to EL2 for timer accesses
@@ -156,6 +156,10 @@ efiboot_init(uint32_t magic, void *pointer, void *stack) { * within the kernel window). That's * fine, as we'll never return to * this context. */ sysreg_write_sp_el1((uint64_t)stack + KERNEL_OFFSET); + + /* disable traps to EL2 for timer accesses */ + uint32_t cnthctl = sysreg_read_cnthctl_el2(); ...
[brick] update lua debuger According to changes at luajit, using a table as key at a table is disabled. So, I fix a table reference printing logic.
@@ -640,8 +640,6 @@ func GetDebuggerCode() *C.char { --}}} --{{{ local function dumpval( level, name, value, limit ) - local dumpvisited - local function dumpval( level, name, value, limit ) local index if type(name) == 'number' then @@ -656,20 +654,15 @@ func GetDebuggerCode() *C.char { index = string.format('[%q] = '...
get_all_params -> init_params
@@ -4470,7 +4470,10 @@ class CatBoostRegressor(CatBoost): """ if prediction_type is None: prediction_type = 'RawFormulaVal' - params = self.get_all_params() + # TODO(ilyzhin) change on get_all_params after MLTOOLS-4758 + params = deepcopy(self._init_params) + _process_synonyms(params) + if 'loss_function' in params: if...
fix(qrcodegen) add brackets around assert calls Add brackets to fix build errors on platforms which define assert as an empty macro.
@@ -948,9 +948,9 @@ struct qrcodegen_Segment qrcodegen_makeEci(long assignVal, uint8_t buf[]) { result.mode = qrcodegen_Mode_ECI; result.numChars = 0; result.bitLength = 0; - if (assignVal < 0) + if (assignVal < 0) { assert(false); - else if (assignVal < (1 << 7)) { + } else if (assignVal < (1 << 7)) { memset(buf, 0, 1...
gh-actions: add several GCC builds
@@ -73,6 +73,37 @@ jobs: with: file: ./build/meson-logs/coverage.xml + gcc: + runs-on: ubuntu-latest + strategy: + matrix: + version: ["10", "9", "8", "7"] + env: + CC: gcc-${{ matrix.version }} + CXX: g++-${{ matrix.version }} + CFLAGS: -Wall -Wextra -Werror -march=native + CXXFLAGS: -Wall -Wextra -Werror -march=nativ...
Samples:Host Exerciser Enhancements Modified all internal functions as STATIC functions
@@ -84,7 +84,7 @@ struct read_format { * If fpga_perf_check_and_lock() returns FPGA_OK, assume the mutex to be * locked. */ -fpga_result fpga_perf_check_and_lock(fpga_perf_counter *fpga_perf) +STATIC fpga_result fpga_perf_check_and_lock(fpga_perf_counter *fpga_perf) { int res = 0; @@ -105,7 +105,7 @@ fpga_result fpga_p...
fix multi monitor focusing
@@ -840,6 +840,10 @@ clientmessage(XEvent *e) for (i = 0; i < LENGTH(tags) && !((1 << i) & c->tags); i++); if (i < LENGTH(tags)) { const Arg a = {.ui = 1 << i}; + if (selmon != c->mon) { + unfocus(selmon->sel, 0); + selmon = c->mon; + } view(&a); focus(c); restack(selmon);
api: remove unused singular option The singular option to the API language was added as a way to deal with messages that do not have a reply message. Examples in memclnt.api. Instead dealt with these messages using the service {} construct. Type: refactor
@@ -308,7 +308,6 @@ class Define(Processable): self.manual_print = False self.manual_endian = False self.autoreply = False - self.singular = False self.options = {} for f in flags: if f == 'dont_trace': @@ -323,9 +322,6 @@ class Define(Processable): remove = [] for b in block: if isinstance(b, Option): - if b[1] == 'si...
Mount dump to ensure its usage
@@ -54,6 +54,10 @@ This command will return the following values as an exit status: ```sh # Backup-and-Restore: user/tests/get/examples +# We use the `dump` plugin, since some storage plugins, e.g. INI, +# create intermediate keys. +sudo kdb mount get.ecf user/tests/get/examples/kdb-get dump + # Create the keys we use ...
CBLK: Adding librt as link requirement for old RHELs
@@ -48,7 +48,7 @@ snap_cblk_LDFLAGS += -L. \ -Wl,-rpath,$(SNAP_ROOT)/actions/hdl_nvme_example/sw \ -Wl,-rpath,$(SNAP_ROOT)/software/lib -snap_cblk_libs += -lsnapcblk +snap_cblk_libs += -lsnapcblk -lrt endif snap_cblk_objs += force_cpu.o
Add incremental margin collapse for grid<->HUD
@@ -1247,8 +1247,9 @@ void ged_update_internal_geometry(Ged* a) { int softmargin_y = a->softmargin_y; bool show_hud = win_h > Hud_height + 1; int grid_h = show_hud ? win_h - 2 : win_h; - if (grid_h > softmargin_y + 1 && grid_h > a->field.height + softmargin_y) { - grid_h -= softmargin_y; + if (grid_h > a->field.height)...
use json helpers
// (C) 2017 <>< Joshua Allen, Under MIT/x11 License. - #include <string.h> #include <assert.h> #include "survive_config.h" +#include <json_helpers.h> #define MAX_CONFIG_ENTRIES 100 @@ -227,22 +227,8 @@ const FLT* config_set_float_a(const char *tag, const FLT* values, uint8_t count) return values; } -void write_float_ar...
build fuzzers on trusty
@@ -52,6 +52,9 @@ matrix: - make check - sudo make check-as-root - os: linux + apt: + sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-trusty-4.0'] + packages: ['clang-4.0' , 'g++-6'] sudo: required dist: trusty env: @@ -59,4 +62,9 @@ matrix: php: '7.x' before_install: *bi before_script: *bs - script: *s + script: ...
Correctly pad small alignments. Negative padding shouldn't happen.
@@ -255,15 +255,17 @@ blobstruct(Blob *seq, Htab *globls, Htab *strtab, Node *n) static size_t blobucon(Blob *seq, Htab *globls, Htab *strtab, Node *n) { - size_t sz, pad; + size_t sz, align; Ucon *uc; sz = 4; uc = finducon(exprtype(n), n->expr.args[0]); b(seq, mkblobi(Bti32, uc->id)); + align = 1; if (n->expr.nargs > ...
Ensure that ldscopedyn is not found as a musl executable after the loader string has been updated.
@@ -901,6 +901,7 @@ reportPeriodicStuff(void) // empty the event queues doEvent(); + doPayload(); mtcFlush(g_mtc); @@ -1214,7 +1215,7 @@ initHook(int attachedFlag) return; } - if (ebuf && ebuf->buf) { + if (ebuf && ebuf->buf && (strstr(full_path, "ldscope") == NULL)) { g_ismusl = is_musl(ebuf->buf); }
Remove deprecated or conflicting VS solution opts
<Optimization>Disabled</Optimization> <AdditionalIncludeDirectories>$(ProjectDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> - <MinimalRebuild>true</MinimalRebuild> + <MinimalR...
Linux line bug
@@ -1867,7 +1867,8 @@ int h3_long_file_name_test() long_file_name_stream_length, 0, 400000, 0, NULL, NULL, NULL); } #else - ret = demo_server_test(PICOHTTP_ALPN_H3_LATEST, h3zero_server_callback, NULL, 0, long_file_name_scenario, nb_long_file_name_scenario, + ret = demo_server_test(PICOHTTP_ALPN_H3_LATEST, h3zero_serve...
contacts-js: dismiss spinner on share
@@ -383,6 +383,7 @@ export class ContactCard extends Component { props.api.contacts .share(`~${props.ship}`, props.path, `~${window.ship}`, contact) .then(() => { + this.setState({ awaiting: false }); props.history.push(`/~groups/view${props.path}/${window.ship}`); }); });
server: properly defined request-line type
=, eyre |% -:: ++$ request-line + $: [ext=(unit @ta) site=(list @t)] + args=(list [key=@t value=@t]) + == :: +parse-request-line: take a cord and parse out a url :: ++ parse-request-line |= url=@t - ^- [[ext=(unit @ta) site=(list @t)] args=(list [key=@t value=@t])] + ^- request-line (fall (rush url ;~(plug apat:de-purl...
chmod_dialog.c: use gtk_dialog_new() and gtk_dialog_add_button()
@@ -106,6 +106,7 @@ void chmod_dialog (gpointer data) { GtkWidget *label, *dialog, *hbox, *main_vbox; + GtkWidget * ButtonOK, * ButtonCancel, * IconOK, * IconCancel; GtkWidget * FrameItem[4][3]; // 4 frames with 3 items (CheckBoxes) each GtkWidget * frameX, * FrameVbox; int i, j; @@ -116,17 +117,23 @@ chmod_dialog (gpo...
Ignore base64 padding for strings that are supposed to be unpadded.
@@ -735,9 +735,12 @@ static int sldns_b64_pton_base(char const *src, size_t srcsize, uint8_t *target, d = 63; else if(base64url && d == '_') d = 63; - else if(!base64url && d == '=') + else if(d == '=') { + if(!check_padding) + continue; d = 64; - else continue; + } else continue; + in[incount++] = (uint8_t)d; /* work ...
BugID:17134554:[http2]fix crash issue in IOT_HTTP2_Stream_Close
@@ -683,7 +683,15 @@ int IOT_HTTP2_Stream_Close(stream_handle_t *handle, stream_data_info_t *info) http2_stream_node_t *node; HAL_MutexLock(handle->mutex); list_for_each_entry(node, &handle->stream_list, list, http2_stream_node_t) { - if ((len == strlen(node->channel_id) && !memcmp(node->channel_id, stream_id, len))) {...
king: Terminal input line wasn't being shown b/c line buffering.
@@ -533,6 +533,8 @@ main :: IO () main = do mainTid <- myThreadId + hSetBuffering stdout NoBuffering + let onTermSig = throwTo mainTid UserInterrupt Sys.installHandler Sys.sigTERM (Sys.Catch onTermSig) Nothing
Enable ltree extension on gpdb/main
@@ -22,6 +22,7 @@ all: $(MAKE) -C contrib/indexscan all $(MAKE) -C contrib/pageinspect all # needed by src/test/isolation $(MAKE) -C contrib/hstore all + $(MAKE) -C contrib/ltree all $(MAKE) -C contrib/pgcrypto all $(MAKE) -C contrib/btree_gin all $(MAKE) -C contrib/pg_trgm all @@ -60,6 +61,7 @@ install: $(MAKE) -C con...
workflows: clone ci repository on publish_images add a task for clone ci repository on publish_images
@@ -10,6 +10,11 @@ jobs: if: github.event.workflow_run.conclusion == 'success' runs-on: ubuntu-latest steps: + - uses: actions/checkout@v2 + with: + repository: calyptia/fluent-bit-ci + path: ci + - name: Download docker image from build artifacts uses: dawidd6/action-download-artifact@v2 with:
VERSION bump to version 1.1.39
@@ -40,7 +40,7 @@ set(CMAKE_C_FLAGS_PACKAGE "-g -O2 -DNDEBUG") # micro version is changed with a set of small changes or bugfixes anywhere in the project. set(LIBNETCONF2_MAJOR_VERSION 1) set(LIBNETCONF2_MINOR_VERSION 1) -set(LIBNETCONF2_MICRO_VERSION 38) +set(LIBNETCONF2_MICRO_VERSION 39) set(LIBNETCONF2_VERSION ${LIB...
fix: windows build tutorial
@@ -225,7 +225,7 @@ Then, go to `discord-public-user.c` and include `strndup.h`: ``` Now, go to `Makefile`. -Then, go to the line that defines the variable `OBJS` and add `$(OBJDIR)/tdestroy.c.o` and `$(OBJDIR)/strndup.c.o` after `mkdir`. +Then, go to the line that defines the variable `OBJS` and add `$(OBJDIR)/tdestro...
Do not send PMTUD packet to an unvalidated path
@@ -11827,6 +11827,7 @@ ngtcp2_ssize ngtcp2_conn_write_vmsg(ngtcp2_conn *conn, ngtcp2_path *path, } if (conn->pmtud && + (conn->dcid.current.flags & NGTCP2_DCID_FLAG_PATH_VALIDATED) && (!conn->hs_pktns || ngtcp2_ksl_len(&conn->hs_pktns->crypto.tx.frq) == 0)) { nwrite = conn_write_pmtud_probe(conn, pi, dest, origdestlen...
tools: windows installer: Modify IDF's archive mirror link
@@ -54,7 +54,7 @@ begin if IDFZIPFileVersion <> '' then begin Url := 'https://github.com/espressif/esp-idf/releases/download/' + IDFZIPFileVersion + '/esp-idf-' + IDFZIPFileVersion + '.zip'; - MirrorUrl := 'https://dl.espressif.com/dl/esp-idf/releases/esp-idf-' + IDFZIPFileVersion + '.zip'; + MirrorUrl := 'https://dl.e...
Initialise OPENSSL_armcap_P to 0 before setting it based on capabilities, not after
@@ -133,6 +133,8 @@ void OPENSSL_cpuid_setup(void) return; trigger = 1; + OPENSSL_armcap_P = 0; + if ((e = getenv("OPENSSL_armcap"))) { OPENSSL_armcap_P = (unsigned int)strtoul(e, NULL, 0); return; @@ -166,8 +168,6 @@ void OPENSSL_cpuid_setup(void) # endif # endif - OPENSSL_armcap_P = 0; - # ifdef OSSL_IMPLEMENT_GETAUX...
Test MonadPlus instance of Result
@@ -33,6 +33,7 @@ Test for the conversion of lua values to haskell values. module Foreign.Lua.Types.FromLuaStackTest (tests) where import Control.Applicative (empty, (<|>)) +import Control.Monad (mplus, mzero) import Foreign.Lua.Types.Core (Lua, LuaInteger) import Foreign.Lua.Types.FromLuaStack import Foreign.Lua.Funct...
OSX: tune RhoSimulator build
@@ -580,6 +580,7 @@ class Jake def self.run3_dont_fail(command, cd = nil, env = {}, use_run2 = false) set_list = [] + currentdir = "" env.each_pair do |k, v| if RUBY_PLATFORM =~ /(win|w)32$/ set_list << "set \"#{k}=#{v}\"&&" @@ -596,10 +597,15 @@ class Jake if RUBY_PLATFORM =~ /(win|w)32$/ cd_ = cd.gsub('/', "\\") to_r...
Edit installation guide -- explicitly mention Windows, etc.
@@ -83,11 +83,17 @@ brew install elektra . We also provide a tap containing a more elaborate formula [here](http://github.com/ElektraInitiative/homebrew-elektra). -## Generic +## Windows + +Please refer to the section OS independent below. + +## OS independent First follow the steps in [COMPILE](COMPILE.md). -To instal...
[bsp][tm4c129x] Update drv_eth.c Decide whether to close eth hardware checksum by definition.
@@ -634,8 +634,13 @@ tivaif_transmit(net_device_t dev, struct pbuf *p) pDesc->Desc.ui32CtrlStatus = 0; } +#ifdef RT_LWIP_USING_HW_CHECKSUM pDesc->Desc.ui32CtrlStatus |= (DES0_TX_CTRL_IP_ALL_CKHSUMS | DES0_TX_CTRL_CHAINED); +#else + pDesc->Desc.ui32CtrlStatus |= (DES0_TX_CTRL_NO_CHKSUM | + DES0_TX_CTRL_CHAINED); +#endif...
net/netmgr: add wifi deinit in kernel space add wifi deinit in kernel space for binary manager to deinit wifi
@@ -145,6 +145,20 @@ int _trwifi_handle_command(struct netdev *dev, lwnl_req cmd) return 0; } +/* it's for reloading operation in binary manager. + * it must be used to binary manager only. + */ +trwifi_result_e netdev_deinit_wifi(void) +{ + struct netdev *dev = (struct netdev *)nm_get_netdev((uint8_t *)"wlan0"); + if ...
YAML Benchmark: Add comment banners
# @date 12.04.2019 # @tags benchmark +# -- Global Variables ---------------------------------------------------------------------------------------------------------------------- + BUILD_DIRECTORY="@CMAKE_BINARY_DIR@" SOURCE_DIRECTORY="@CMAKE_SOURCE_DIR@" @@ -20,6 +22,7 @@ INPUT_FILES=( INPUT_URL="https://raw.githubuse...
update to dfilemaker.1.md
@@ -6,7 +6,7 @@ dfilemaker - distributed random file generation program # SYNOPSIS -dfilemaker [options] path +**dfilemaker [OPTION] PATH...** # DESCRIPTION dfilemaker is a tool for generating files and file trees which contain files @@ -14,6 +14,8 @@ suitable for testing. # OPTIONS +**NOTE: I cannot find these options...
libhfuzz/instrument: also instrument 1byte const value
@@ -237,7 +237,6 @@ void __sanitizer_cov_trace_cmp8(uint64_t Arg1, uint64_t Arg2) { /* Standard __sanitizer_cov_trace_const_cmp wrappers */ void __sanitizer_cov_trace_const_cmp1(uint8_t Arg1, uint8_t Arg2) { - /* No need to report back 1 byte comparisons */ hfuzz_trace_cmp1_internal((uintptr_t)__builtin_return_address(...
oc_cred:free alloc'd cred objs for failed request
@@ -417,6 +417,8 @@ oc_sec_add_new_cred(size_t device, bool roles_resource, oc_tls_peer_t *client, roles_resource) < 0) { if (roles_resource) { oc_sec_free_role(cred, client); + } else { + oc_sec_remove_cred(cred, device); } return -1; } @@ -1062,7 +1064,7 @@ delete_cred(oc_request_t *request, oc_interface_mask_t iface...
fix lpf filter of setpoint derivative
@@ -194,10 +194,10 @@ float pid(int x) { float lpf2(float in, int num); static float dlpf[3] = {0}; static float setpoint_derivative[3]; - - setpoint_derivative[x] = (setpoint[x] - lastsetpoint[x]) * current_kd[x] * timefactor; #ifdef RX_SMOOTHING - lpf(&setpoint_derivative[x], setpoint_derivative[x], FILTERCALC(LOOPTI...
Start fixing lovr.graphics.fill;
@@ -247,6 +247,7 @@ const char* lovrFontFragmentShader = "" const char* lovrFillVertexShader = "" "vec4 position(mat4 projection, mat4 transform, vec4 vertex) { \n" +" texCoord.x = texCoord.x * (1. / lovrViewportCount) + (lovrViewID * 1. / float(lovrViewportCount)); \n" " return vertex; \n" "}";
Send a challenge response even if there is a pending challenge.
@@ -3194,7 +3194,7 @@ int picoquic_prepare_packet(picoquic_cnx_t* cnx, path_id = 0; break; } - else if (path_id < 0 && cnx->path[i]->path_is_activated) { + else if (path_id < 0) { if (cnx->path[i]->response_required) { path_id = i; } else if (cnx->path[i]->challenge_required) {
Fix build in CentOS 7
@@ -542,7 +542,12 @@ static void arch_traceAnalyzeData(run_t* run, pid_t pid) { static void arch_traceSaveData(run_t* run, pid_t pid) { char instr[_HF_INSTR_SZ] = "\x00"; +#if defined(__GNUC__) && ((__GNUC__ < 5) || (__GNUC__ == 5 && __GNUC_MINOR__ < 1)) + siginfo_t si; + bzero(&si, sizeof(si)); +#else siginfo_t si = {...
ioat: driver module improvements and selftest
@@ -104,14 +104,15 @@ errval_t ioat_device_poll(void) #define BUFFER_SIZE (1<<22) +uint32_t done = 0; + static void impl_test_cb(errval_t err, dma_req_id_t id, void *arg) { debug_printf("impl_test_cb\n"); assert(memcmp(arg, arg + BUFFER_SIZE, BUFFER_SIZE) == 0); debug_printf("test ok\n"); - memset(arg, 0, BUFFER_SIZE *...
gbp2: Fix typo in condition
@@ -383,6 +383,8 @@ gbp_lpm_classify_inline (vlib_main_t * vm, to_next += 1; n_left_from -= 1; n_left_to_next -= 1; + ip4_0 = NULL; + ip6_0 = NULL; next0 = GPB_LPM_CLASSIFY_DROP; b0 = vlib_get_buffer (vm, bi0); @@ -441,7 +443,7 @@ gbp_lpm_classify_inline (vlib_main_t * vm, lbi0 = ip4_fib_forwarding_lookup (fib_index0, ...
create a socket of the family corresponding to the resolved sockaddr
@@ -185,7 +185,10 @@ void tunnel_proceed_read(struct st_h2o_tunnel_t *_tunnel) h2o_tunnel_t *h2o_open_udp_tunnel_from_sa(h2o_loop_t *loop, struct sockaddr *addr, socklen_t len) { int fd; - if ((fd = socket(PF_INET, SOCK_DGRAM, 0)) == -1) + + assert(addr->sa_family == AF_INET || addr->sa_family == AF_INET6); + + if ((fd...
need to post install edit hip files for hardcodings of /opt/rocm
@@ -148,6 +148,16 @@ else fi fi +function edit_installed_hip_file(){ + if [ -f $installed_hip_file_to_edit ] ; then + # In hipvars.pm HIP_PATH is determined by parent directory of hipcc location. + # Set ROCM_PATH using HIP_PATH + $SUDO sed -i -e "s/\"\/opt\/rocm\"/\"\$HIP_PATH\"/" $installed_file_to_edit + # Set HIP_C...