message
stringlengths
6
474
diff
stringlengths
8
5.22k
cmd/kubectl-gadget: Increase trace timeout
@@ -47,7 +47,7 @@ const ( // We name it "global" as if one trace is created on several nodes, then each // copy of the trace on each node will share the same id. GlobalTraceID = "global-trace-id" - TraceTimeout = 2 * time.Second + TraceTimeout = 5 * time.Second ) // TraceConfig is used to contain information used to ma...
update to load openwsn firmware by default.
@@ -12,7 +12,8 @@ import time # --------------------------------------------------------------------- com_port = 'COM11'; -binFilePath = "{0}\Objects\{0}.bin".format('01bsp_leds') +# binFilePath = "{0}\Objects\{0}.bin".format('01bsp_radio') +binFilePath = "{0}\Objects\{0}.bin".format('03oos_openwsn') print "bin file pa...
Plugin dialog: WebApp --> Phoscon App
<item> <widget class="QLabel" name="label_2"> <property name="text"> - <string>Click on the link to open the WebApp in your browser.</string> + <string>Click on the link to open the Phoscon App in your browser.</string> </property> </widget> </item>
clang-format: tweak penalty when assignment gets broken to newline
@@ -72,7 +72,7 @@ MacroBlockBegin: '' MacroBlockEnd: '' MaxEmptyLinesToKeep: 2 NamespaceIndentation: Inner -PenaltyBreakAssignment: 20 +PenaltyBreakAssignment: 50 PenaltyBreakBeforeFirstCallParameter: 19 PenaltyBreakComment: 200 PenaltyBreakFirstLessLess: 120
BugID:18619423:[awss] fix white scan dead code issue
@@ -99,8 +99,6 @@ void awss_report_token_reply(void *pcontext, void *pclient, void *msg) if (id == NULL) return; - if (id == NULL) - return; reply_id = atoi(id); if (reply_id + 1 < awss_report_id) return;
Remove -u from windows signing script
@@ -247,7 +247,7 @@ pipeline { withCredentials([usernamePassword(credentialsId: 'win-signing', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) { - sh 'python3 ./signing/windows-client-wrapper.py -u ${USERNAME} *.zip' + sh 'python3 ./signing/windows-client-wrapper.py ${USERNAME} *.zip' sh 'rm -rf ./signing...
Last of the notification fixes (Issue server/ipp.c: ipp_renew_subscription: Fix input validation, return notify-lease-duration in response.
@@ -4342,7 +4342,7 @@ ipp_renew_subscription( if ((attr = ippFindAttribute(client->request, "notify-lease-duration", IPP_TAG_ZERO)) != NULL) { - if (ippGetGroupTag(attr) != IPP_TAG_SUBSCRIPTION || ippGetValueTag(attr) != IPP_TAG_INTEGER || ippGetCount(attr) != 1 || ippGetInteger(attr, 0) < 0) + if (ippGetGroupTag(attr)...
Remove stray uint type. This was probably copied from an example but some compilers don't like it.
@@ -152,7 +152,7 @@ void harnessTlsServerAccept(void) { struct sockaddr_in addr; - uint len = sizeof(addr); + unsigned int len = sizeof(addr); testClientSocket = accept(testServerSocket, (struct sockaddr *)&addr, &len);
hdata: Update RAM area structure Also remove unused ram_area structure.
@@ -34,14 +34,10 @@ struct HDIF_ram_area_id { } __packed; struct HDIF_ram_area_size { - __be64 mb; + __be32 reserved1; + __be32 mb; } __packed; -struct ram_area { - const struct HDIF_ram_area_id *raid; - const struct HDIF_ram_area_size *rasize; -}; - struct HDIF_ms_area_address_range { __be64 start; __be64 end;
MSR: Use `/tests` as default mountpoint
@@ -41,7 +41,7 @@ translate() if grep -Eq 'Backup-and-Restore:' <<< "$MOUNTPOINT"; then printf 'Mountpoint: %s\n' "$(cut -d ':' -f2 <<< "$MOUNTPOINT" | sed 's/^[[:space:]]*//')" >> "$TMPFILE" else - printf 'Mountpoint: /examples\n' >> "$TMPFILE" + printf 'Mountpoint: /tests\n' >> "$TMPFILE" fi resetGlobals
provisioning/warewulf-provision: require xinetd
@@ -85,9 +85,9 @@ Requires: %{pname}%{PROJ_DELIM} = %{version}-%{release} # 07/22/14 karl.w.schulz@intel.com - differentiate requirements per Base OS %if 0%{?sles_version} || 0%{?suse_version} -Requires: apache2 apache2-mod_perl tftp dhcp-server policycoreutils-python +Requires: apache2 apache2-mod_perl tftp dhcp-serve...
Payout-batch address fix
@@ -140,10 +140,15 @@ namespace MiningCore.Blockchain.Monero { Destinations = balances .Where(x => x.Amount > 0) - .Select(x => new TransferDestination + .Select(x => { - Address = x.Address, + ExtractAddressAndPaymentId(x.Address, out var address, out var paymentId); + + return new TransferDestination + { + Address = ...
Include thread numbers in failure message from blas_thread_init to aid in debugging cases like
@@ -582,7 +582,7 @@ int blas_thread_init(void){ if(ret!=0){ struct rlimit rlim; const char *msg = strerror(ret); - fprintf(STDERR, "OpenBLAS blas_thread_init: pthread_create: %s\n", msg); + fprintf(STDERR, "OpenBLAS blas_thread_init: pthread_create failed for thread %ld of %ld: %s\n", i+1,blas_num_threads,msg); #ifdef ...
relay: ignore empty input in test mode
#include <unistd.h> #include <netdb.h> #include <string.h> +#include <ctype.h> #include <signal.h> #include <time.h> #include <errno.h> @@ -744,6 +745,11 @@ main(int argc, char * const argv[]) while (fgets(metricbuf, sizeof(metricbuf), stdin) != NULL) { if ((p = strchr(metricbuf, '\n')) != NULL) *p = '\0'; + p = metric...
Version: Use code style for version number
@@ -29,7 +29,7 @@ Elektra your mission is to avoid that. The tool icheck against the interfaces mentioned above may help you too. -In 0.8.* the API and ABI must be always forward-compatible, +In `0.8.*` the API and ABI must be always forward-compatible, but not backwards-compatible. That means that a program written an...
fix matchType for byte[]
@@ -672,7 +672,7 @@ namespace SLua } else if (t == typeof(char[]) || t==typeof(byte[])) { - return lt == LuaTypes.LUA_TSTRING; + return lt == LuaTypes.LUA_TSTRING || lt == LuaTypes.LUA_TUSERDATA; } switch (lt) @@ -941,6 +941,7 @@ namespace SLua } else { + object obj = checkObj (l, p); Array array = checkObj(l, p) as Ar...
fix(power): Fix for 2.4 API changes.
@@ -178,7 +178,7 @@ static int ext_power_generic_init(const struct device *dev) { static int ext_power_generic_pm_control(const struct device *dev, uint32_t ctrl_command, void *context, device_pm_cb cb, void *arg) { int rc; - struct ext_power_generic_data *data = dev->driver_data; + struct ext_power_generic_data *data ...
CMSIS-Driver WiFi documentation typo correction
@@ -755,7 +755,7 @@ after initially connecting using WPS. ARM_WIFI_CONFIG_t wifi_config; ARM_WIFI_NET_INFO_t net_info; -memset(&wifi_config, 0, sizeof(wifi_config); +memset(&wifi_config, 0, sizeof(wifi_config)); wifi_config.wps_method = ARM_WIFI_WPS_METHOD_PBC;
export more AOMP_VERSION variables so sed script will work
AOMP_VERSION=${AOMP_VERSION:-"0.6"} AOMP_VERSION_MOD=${AOMP_VERSION_MOD:-"4"} AOMP_VERSION_STRING=${AOMP_VERSION_STRING:-"$AOMP_VERSION-$AOMP_VERSION_MOD"} -export AOMP_VERSION_STRING +export AOMP_VERSION_STRING AOMP_VERSION AOMP_VERSION_MOD # set install directory and the link directory # AOMP will be a symbolic link ...
Clean the mqtt-client native executable between tests Fixes
@@ -38,6 +38,7 @@ sleep 2 # Starting Contiki-NG native node echo "Starting native node" +make -C $CODE_DIR -B TARGET=native clean make -C $CODE_DIR -B TARGET=native \ DEFINES=MQTT_CLIENT_CONF_ORG_ID=\\\"travis-test\\\",MQTT_CLIENT_CONF_LOG_LEVEL=LOG_LEVEL_DBG,MQTT_CONF_VERSION=MQTT_PROTOCOL_VERSION_$MQTT_VERSION \ > ma...
Add F keys and print screen
#define CLCK 0x39 #define F1 0x3A #define F2 0x3B +#define F3 0x3C +#define F4 0x3D +#define F5 0x3E +#define F6 0x3F +#define F7 0x40 +#define F8 0x41 +#define F9 0x42 +#define F10 0x43 +#define F11 0x44 +#define F12 0x45 +#define PRSC 0x46 #define HOME 0x4A #define PGUP 0x4B
subscribe to %turf on boot
:: =. event-core (emit duct %pass /init/pubs %j %pubs ship) =. event-core (emit duct %pass /init/vein %j %vein ~) + =. event-core (emit duct %pass /init/turf %j %turf ~) event-core :: +on-sunk: handle continuity breach of .ship; wipe its state ::
examples/openssl: don't use -Wl,-z,now as it's not supported under macosx's ld
@@ -13,7 +13,7 @@ CXX="$HFUZZ_SRC/hfuzz_cc/hfuzz-clang++" COMMON_FLAGS="-DBORINGSSL_UNSAFE_DETERMINISTIC_MODE -DBORINGSSL_UNSAFE_FUZZER_MODE -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION -DBN_DEBUG -DLIBRESSL_HAS_TLS1_3 \ -O3 -g -DFuzzerInitialize=LLVMFuzzerInitialize -DFuzzerTestOneInput=LLVMFuzzerTestOneInput \ -I./$DIR...
Add unary_op and subscr to keypoints object.
#include "py_helper.h" #include "py_image.h" #include "omv_boardconfig.h" +#include "py/runtime0.h" +#include "py/runtime.h" static const mp_obj_type_t py_cascade_type; static const mp_obj_type_t py_image_type; @@ -67,10 +69,40 @@ static void py_kp_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind mp_print...
cmake: Detect nftw Resolve an issue where NFTW was not detected by CMake. Closes
include (CheckSymbolExists) include (LibAddMacros) +include (CMakePushCheckState) +# We need GNU_SOURCE and _XOEPN_SOURCE for full functinality +set (REQUIRED_FEATURE_MACROS -D_GNU_SOURCE -D_XOPEN_SOURCE=500 -D_DARWIN_C_SOURCE) +add_definitions (${REQUIRED_FEATURE_MACROS}) + +cmake_push_check_state (RESET) +set (CMAKE_...
out_gelg: use new udp connect api prototype
@@ -416,7 +416,8 @@ static int cb_gelf_init(struct flb_output_instance *ins, struct flb_config *conf ctx->pckt_buf = NULL; if (ctx->mode == FLB_GELF_UDP) { - ctx->fd = flb_net_udp_connect(ins->host.name, ins->host.port); + ctx->fd = flb_net_udp_connect(ins->host.name, ins->host.port, + ins->net_setup.source_address); i...
Bug fix LanguageSelector
@@ -18,6 +18,8 @@ package com.francelabs.datafari.servlets; import java.io.IOException; import java.io.PrintWriter; import java.security.Principal; +import java.util.regex.Matcher; +import java.util.regex.Pattern; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; @@ -53,7 +55,8 @@ publi...
Remove X11 requirement from Autotools.
@@ -6,6 +6,6 @@ includedir=@includedir@ Name: libtcod Description: A roguelike development library. Version: @PACKAGE_VERSION@ -Requires.private: sdl2 >= 2.0.5, x11, zlib +Requires.private: sdl2 >= 2.0.5, zlib Cflags: -I${includedir} Libs: -L${libdir} -ltcod
workflow: Bump compilers
@@ -42,8 +42,8 @@ jobs: if: runner.os == 'Linux' run: | sudo apt-get install \ - g++-11 \ - clang-12 \ + g++-12 \ + clang-14 \ autoconf \ automake \ autotools-dev \ @@ -67,8 +67,8 @@ jobs: - name: Setup clang (Linux) if: runner.os == 'Linux' && matrix.compiler == 'clang' run: | - echo 'CC=clang-12' >> $GITHUB_ENV - ech...
Misc CMake changes: Fixed cmake install instruction Removed static lib stuff from cmake; didn't work well
@@ -11,13 +11,6 @@ include_directories(redist include/libsurvive include) option(USE_HIDAPI "Use HIDAPI instead of libusb" OFF) option(USE_ASAN "Use address sanitizer" OFF) -option(BUILD_ALL_STATIC "Build everything statically" OFF) - -if(BUILD_ALL_STATIC) - SET(LIBSURVIVE_LIBRARY_TYPE STATIC) -else() - SET(LIBSURVIVE_...
parsed schema CHANGE make augment node compatible
@@ -552,21 +552,21 @@ struct lysp_refine { }; /** - * @brief YANG uses-augment-stmt and augment-stmt + * @brief YANG uses-augment-stmt and augment-stmt (compatible with struct lysp_node ) */ struct lysp_augment { struct lysp_node *parent; /**< parent node (NULL if this is a top-level augment) */ uint16_t nodetype; /**<...
added gitter chat link to README.md
# SIMD Everywhere +[![Gitter chat](https://badges.gitter.im/gitterHQ/gitter.png)](https://gitter.im/simd-everywhere/community) The SIMDe header-only library provides fast, portable implementations of [SIMD intrinsics](https://en.wikipedia.org/wiki/SIMD) on hardware which
fix parameters for mi_track_free
@@ -51,7 +51,7 @@ terms of the MIT license. A copy of the license can be found in the file #define mi_track_malloc(p,size,zero) #define mi_track_resize(p,oldsize,newsize) -#define mi_track_free(p,size) +#define mi_track_free(p) #define mi_track_free_size(p,_size) #define mi_track_mem_defined(p,size) #define mi_track_me...
drivers/misc/rwbuffer: destroy nxmutex/nxsem properly
@@ -814,6 +814,7 @@ int rwb_initialize(FAR struct rwbuffer_s *rwb) if (!rwb->wrbuffer) { ferr("Write buffer kmm_malloc(%" PRIu32 ") failed\n", allocsize); + nxmutex_destroy(&rwb->wrlock); return -ENOMEM; } @@ -842,6 +843,19 @@ int rwb_initialize(FAR struct rwbuffer_s *rwb) { ferr("Read-ahead buffer kmm_malloc(%" PRIu32...
Add extension check for NewSessionTicket
@@ -2565,9 +2565,12 @@ static int ssl_tls13_parse_new_session_ticket_exts( mbedtls_ssl_context *ssl, const unsigned char *end ) { const unsigned char *p = buf; + uint32_t extensions_present; ((void) ssl); + extensions_present = MBEDTLS_SSL_EXT_NONE; + while( p < end ) { unsigned int extension_type; @@ -2580,6 +2583,27 ...
esp_netif: Add support for linux target as header only library
+idf_build_get_property(target IDF_TARGET) + +if(${target} STREQUAL "linux") + # Header only library for linux + idf_component_register(INCLUDE_DIRS include) + return() +endif() + set(srcs "esp_netif_handlers.c" "esp_netif_objects.c"
NAT44: don't add static mapping to resolution vector if failed
@@ -682,12 +682,12 @@ int snat_add_static_mapping(ip4_address_t l_addr, ip4_address_t e_addr, u32 ses_index; u64 user_index; snat_session_t * s; + snat_static_map_resolve_t *rp, *rp_match = 0; /* If the external address is a specific interface address */ if (sw_if_index != ~0) { ip4_address_t * first_int_addr; - snat_s...
another way to fix build of geobase-related projects (@see
@@ -402,30 +402,6 @@ proc_service.h pthread.h pthread_np.h pwd.h -# vvvv | [contrib/libs/libpqxx/include] -pqxx/binarystring -pqxx/connection -pqxx/cursor -pqxx/errorhandler -pqxx/except -pqxx/field -pqxx/largeobject -pqxx/nontransaction -pqxx/notification -pqxx/pipeline -pqxx/prepared_statement -pqxx/result -pqxx/robu...
extarnal/audiocodec : ASAN crash in aacdec. when sampling_rate_idx might bigger than 11, it will result in the array samp_rate_info[12] abnormal accessed. and we can refer to the get_audio_specific_config() to add protection.
@@ -458,6 +458,21 @@ Int get_adts_header( */ pVars->prog_config.sampling_rate_idx = (lower_16 >> 6) & 0xF; + if (pVars->prog_config.sampling_rate_idx > 0xb) + { + /* + * Only support 12 sampling frequencies from array samp_rate_info ( see sfb.cpp) + * 7350 Hz (index 0xc) is not supported, the other indexes are reserved...
Remove a comment from vm that's not really useful now.
@@ -90,20 +90,6 @@ else if (lhs_reg->class_id == LILY_STRING_ID) { \ vm_regs[code[4]]->flags = LILY_BOOLEAN_ID; \ code += 5; -/** If you're interested in working on the vm, or having trouble with it, here's - some advice that might make things easier. - - * The vm uses a mix of refcounting and a gc. Anything that has s...
sensor_creator: Fix typo in LIS2DW12 spi configuration This fixes obvious copy/paster error in chip select pin syscfg name.
@@ -632,7 +632,7 @@ static struct sensor_itf lis2dw12_itf = { #elif MYNEWT_VAL(LIS2DW12_OFB_SPI_NUM) >= 0 .si_type = SENSOR_ITF_SPI, .si_num = MYNEWT_VAL(LIS2DW12_OFB_SPI_NUM), - .si_cs_pin = MYNEWT_VAL(BME280_OFB_CS), + .si_cs_pin = MYNEWT_VAL(LIS2DW12_OFB_CS), #endif .si_ints = { { MYNEWT_VAL(LIS2DW12_OFB_INT1_PIN_HO...
feat(docs): additional note on bug fixed in macOS v13.1
@@ -23,7 +23,7 @@ Variations of the warnings shown below occur when flashing the `<firmware>.uf2` ### macOS Ventura error -macOS 13.0 (Ventura) Finder may report an error code 100093 when copying `<firmware>.uf2` files into microcontrollers. This bug is limited to the operating system's Finder. You can work around it b...
docs: adds to build_docs.py an encoding check suitable for windows
@@ -69,9 +69,13 @@ def main(): # functions and this way makes Python 2 compatibility really tough if there is any code that assumes text files contain strings (kconfiglib assumes this). # The reason for that is that you need to import io.open() to support the encoding argument on Python 2, and this function always uses...
Make personality(ADDR_NO_RANDOMIZE) non-fatal
@@ -221,8 +221,7 @@ bool arch_launchChild(honggfuzz_t * hfuzz, char *fileName) * Disable ASLR */ if (hfuzz->linux.disableRandomization && personality(ADDR_NO_RANDOMIZE) == -1) { - PLOG_E("personality(ADDR_NO_RANDOMIZE) failed"); - return false; + PLOG_W("personality(ADDR_NO_RANDOMIZE) failed"); } #define ARGS_MAX 512 c...
dispatcher: fix poll usage, POLLERR is not an input flag in addition, POLLHUP might be set, so check for that too
@@ -1134,7 +1134,7 @@ dispatch_runner(void *arg) if (__sync_bool_compare_and_swap(&(conn->datawaiting), 0, 0)) { ufds[fds].fd = conn->sock; - ufds[fds].events = POLLIN | POLLERR; + ufds[fds].events = POLLIN; fds++; } } @@ -1157,7 +1157,7 @@ dispatch_runner(void *arg) for (f = 0; f < fds; f++) { if (f < cfds) { /* conne...
lyd mods BUGFIX parse new startup data as trusted They will be validated a few steps later. Refs
@@ -1748,7 +1748,7 @@ sr_lydmods_sched_update_data(const struct lyd_node *sr_mods, const struct ly_ctx for (idx = 0; idx < startup_set->number; ++idx) { ly_errno = 0; mod_data = lyd_parse_mem((struct ly_ctx *)new_ctx, sr_ly_leaf_value_str(startup_set->set.d[idx]), LYD_JSON, - LYD_OPT_CONFIG | LYD_OPT_STRICT); + LYD_OPT...
Fix cr_cdata_handler() to work correctly for builds
@@ -3533,7 +3533,7 @@ cr_cdata_handler(void *userData, const XML_Char *s, int len) /* Internal processing turns the CR into a newline for the * character data handler, but not for the default handler */ - if (len == 1 && (*s == '\n' || *s == '\r')) + if (len == 1 && (*s == XCS('\n') || *s == XCS('\r'))) *pfound = 1; }
Removing unnecessary dependency in hardware/sim/nvme_lite/Makefile
@@ -27,9 +27,9 @@ all: snap_config.sv # had trouble with simple 's where the processing stopped demanding # a closing '. # -snap_config.sv: $(SNAP_CONFIG) +snap_config.sv: echo "/* SNAP_CONFIG */" > snap_config.sv - grep "SIM_XSIM=y" $(SNAP_CONFIG); \ + grep "SIM_XSIM=y" $(SNAP_CONFIG) >/dev/null; \ if [ $$? -eq 0 ]; t...
publish: add loading spinner for notebooks Fixes
@@ -55,15 +55,18 @@ export function NotebookRoutes( <Route path={baseUrl} exact - render={(routeProps) => ( - <Notebook + render={(routeProps) => { + if (!graph) { + return <Center height="100%"><LoadingSpinner /></Center>; + } + return <Notebook {...props} graph={graph} contacts={notebookContacts} association={props.a...
Yeah yeah whatever std140;
@@ -1292,7 +1292,18 @@ Shader* lovrShaderCreate(const char* vertexSource, const char* fragmentSource) { if (blockIndex != -1) { UniformBlock* block = &shader->blocks.data[blockIndex]; glGetActiveUniformsiv(program, 1, &i, GL_UNIFORM_OFFSET, &uniform.offset); - glGetActiveUniformsiv(program, 1, &i, GL_UNIFORM_SIZE, &uni...
Fix build-break when compiling -O0 / TAG=vpp_debug Without inlining [TAG=vpp_debug], gcc7 (at least) refuses to produce the indicated vector unit instruction.
@@ -616,7 +616,7 @@ u8x16_shuffle (u8x16 v, u8x16 m) static_always_inline u32x4 u32x4_shuffle (u32x4 v, const int a, const int b, const int c, const int d) { -#ifdef __clang__ +#if defined(__clang__) || CLIB_DEBUG > 0 u32x4 r = { v[a], v[b], v[c], v[d] }; return r; #else
Try another fix for AppVeyor.
version: "{build}" image: Visual Studio 2019 -clone_script: - - ps: >- - if (-not $env:APPVEYOR_PULL_REQUEST_NUMBER) { - git clone -q --branch=$env:APPVEYOR_REPO_BRANCH https://github.com/$env:APPVEYOR_REPO_NAME.git $env:APPVEYOR_BUILD_FOLDER - cd $env:APPVEYOR_BUILD_FOLDER - git checkout -qf $env:APPVEYOR_REPO_COMMIT ...
Cleanup configure.ac
@@ -131,6 +131,16 @@ AC_ARG_WITH([boringssl], AC_ARG_VAR([BORINGSSL_CFLAGS], [C compiler flags for BORINGSSL]) AC_ARG_VAR([BORINGSSL_LIBS], [linker flags for BORINGSSL]) +AC_ARG_VAR([LIBEV_CFLAGS], [C compiler flags for libev, skipping any checks]) +AC_ARG_VAR([LIBEV_LIBS], [linker flags for libev, skipping any checks]...
skeleton/intergrate_skeleton_with_enclave_tls.md: add shelter as an enclave tls client support
@@ -200,3 +200,15 @@ cd /opt/enclave-tls/bin # run sgx_la remote attestation ./enclave-tls-client -a sgx_la -t wolfssl_sgx -c wolfcrypt_sgx ``` + +## Run shelter + +[shelter](https://github.com/alibaba/inclavare-containers/blob/master/shelter/README.md) can also be used as an Enclave TLS client. After building and inst...
sixel decoder: extend image width and height separately
@@ -644,13 +644,18 @@ sixel_decode_raw_impl( break; default: if (*p >= '?' && *p <= '~') { /* sixel characters */ - if (image->width < (context->pos_x + context->repeat_count) || image->height < (context->pos_y + 6)) { - sx = image->width * 2; - sy = image->height * 2; - while (sx < (context->pos_x + context->repeat_co...
hw/drivers/lp5523: Fix write payload length
@@ -152,7 +152,7 @@ lp5523_set_n_regs(struct led_itf *itf, enum lp5523_registers addr, memcpy(&payload[1], vals, len); #if MYNEWT_VAL(BUS_DRIVER_PRESENT) - rc = bus_node_simple_write(itf->li_dev, payload, sizeof(payload)); + rc = bus_node_simple_write(itf->li_dev, payload, len + 1); #else struct hal_i2c_master_data dat...
fix zoom doing nothing sometimes
@@ -5851,26 +5851,22 @@ systraytomon(Monitor *m) { return t; } -void -zoom(const Arg *arg) -{ +void zoom(const Arg *arg) { Client *c = selmon->sel; + if (!c) return; XRaiseWindow(dpy, c->win); - if ( - !selmon->lt[selmon->sellt]->arrange - || (selmon->sel && selmon->sel->isfloating) - || (c == nexttiled(selmon->clients...
motorcontrol: avoid unnecessary casting due to floating point constant fw size -3740 fw size =94648
* Motor constants across devices */ #define PBIO_MAX_DUTY (10000) -#define PBIO_MAX_DUTY_PCT (100.0) +#define PBIO_MAX_DUTY_PCT (100) #define PBIO_DUTY_PCT_TO_ABS (PBIO_MAX_DUTY/PBIO_MAX_DUTY_PCT) #if PBDRV_CONFIG_MOTOR
runc-fanotify: Defer closing of PID directory.
@@ -489,20 +489,17 @@ func (n *RuncNotifier) monitorRuncInstance(bundleDir string, pidFile string) err n.wg.Add(1) go func() { defer n.wg.Done() - + defer pidFileDirNotify.File.Close() for { stop, err := n.watchPidFileIterate(pidFileDirNotify, bundleDir, pidFile, pidFileDir) if n.closed { - pidFileDirNotify.File.Close(...
Add ticket age tolerance config option
*/ //#define MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE +/** + * \def MBEDTLS_SSL_TLS1_3_TICKET_NONCE_LENGTH + * + * Time in seconds of max ticket lifetime. This is not used in TLS 1.2. + * + */ +#define MBEDTLS_SSL_TLS1_3_TICKET_AGE_TOLERANCE 6000 + /** * \def MBEDTLS_SSL_TLS1_3_TICKET_NONCE_LENGTH *
doc: prettify OPAL_[GET|SET]_PBCQ_TUNNEL_BAR
+.. _OPAL_PCI_GET_PBCQ_TUNNEL_BAR: + OPAL_PCI_GET_PBCQ_TUNNEL_BAR ============================ -:: + +.. code-block:: c #define OPAL_PCI_GET_PBCQ_TUNNEL_BAR 164 - int64_t opal_pci_get_pbcq_tunnel_bar(uint64_t phb_id, uint64_t *addr) + int64_t opal_pci_get_pbcq_tunnel_bar(uint64_t phb_id, uint64_t *addr); The host calls...
Implement os/realpath on Window with _fullpath This is similar to realpath but differs in that realpath will complain if the path does not exist. We could add our own exists check if we really wanted to match that behaviour.
@@ -1224,17 +1224,16 @@ static Janet os_rename(int32_t argc, Janet *argv) { static Janet os_realpath(int32_t argc, Janet *argv) { janet_fixarity(argc, 1); -#ifdef JANET_NO_REALPATH - (void) argv; - janet_panic("os/realpath not supported on this platform"); -#else const char *src = janet_getcstring(argv, 0); +#ifdef JAN...
trng: kinetis: seed RNGA with SIM->UIDL This follows the recommendation from NXP SDK.
@@ -191,6 +191,7 @@ kinetis_trng_dev_open(struct os_dev *dev, uint32_t wait, void *arg) #if USE_RNGA RNGA_Init(RNG); + RNGA_Seed(RNG, SIM->UIDL); #elif USE_TRNG (void)TRNG_GetDefaultConfig(&default_config); TRNG_Init(TRNG0, &default_config);
zonemd, review comments, compare list size for rrsigtype add.
@@ -7332,7 +7332,7 @@ static void addrrsigtype_if_needed(struct auth_rrset** array, { if(az_domain_rrset(node, LDNS_RR_TYPE_RRSIG)) return; /* already one there */ - if((*rrnum)+1 >= arraysize) + if((*rrnum) >= arraysize) return; /* array too small? */ array[*rrnum] = NULL; /* nothing there, but need entry in list */ (...
SM2 signatures work correctly only with SM3 digests
@@ -39,6 +39,7 @@ Verify = SM2_key1 Ctrl = digest:SHA512 Input = 40AA1B203C9D8EE150B21C3C7CDA8261492E5420C5F2B9F7380700E094C303B48E62F319C1DA0E32EB40D113C5F1749CC61AEB499167890AB82F2CC9BB706971 Output = 3046022100AE018933B9BA041784380069F2DDF609694DCD299FDBF23D09F4B711FBC103EC0221008440BB1A48C132DE4FB91BE9F43B958142FDD...
Address Use string/join to prevent stack overflow.
(file/write out "#include <janet.h>\n" "static const unsigned char bytes[] = {" - ;(interpose ", " chunks) + (string/join (interpose ", " chunks)) "};\n\n" "const unsigned char *" name "_embed = bytes;\n" "size_t " name "_embed_size = sizeof(bytes);\n")
nvbios: Rename DP_CONDITION to GENERIC_CONDITION Mirrors change made in the drm kernel driver in February 2016. From Mon Sep 17 00:00:00 2001 From: Ben Skeggs Date: Thu, 18 Feb 2016 04:03:39 +1000 Subject: [PATCH] drm/nouveau/bios/devinit: rename INIT_DP_CONDITION to INIT_GENERIC_CONDITION
@@ -301,7 +301,7 @@ void printscript (uint16_t soff) { break; case 0x3a: printcmd (soff, 3); - printf ("DP_CONDITION\t0x%02x 0x%02x\n", bios->data[soff+1], bios->data[soff+2]); + printf ("GENERIC_CONDITION\t0x%02x 0x%02x\n", bios->data[soff+1], bios->data[soff+2]); soff += 3; break; case 0x3b:
After group commands poll respective lights (reporting lights will be filtered by the manager)
@@ -592,6 +592,22 @@ void DeRestPluginPrivate::apsdeDataConfirm(const deCONZ::ApsDataConfirm &conf) { DBG_Printf(DBG_INFO, "error APSDE-DATA.confirm: 0x%02X on task\n", conf.status()); } + else if (task.req.dstAddressMode() == deCONZ::ApsGroupAddress && + (task.req.clusterId() == ONOFF_CLUSTER_ID || + task.req.clusterI...
sysdeps/qword: Impl. sys_access() using sys_open()
#include <mlibc/sysdeps.hpp> #include <errno.h> #include <dirent.h> +#include <fcntl.h> #define STUB_ONLY { __ensure(!"STUB_ONLY function was called"); __builtin_unreachable(); } @@ -286,7 +287,14 @@ int sys_read_entries(int handle, void *buffer, size_t max_size, size_t *bytes_re return 0; } -int sys_access(const char ...
EVP_Digest*: enable SHA3 pre-hashing for ECDSA Fixes
@@ -323,7 +323,11 @@ static int pkey_ec_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2) EVP_MD_type((const EVP_MD *)p2) != NID_sha224 && EVP_MD_type((const EVP_MD *)p2) != NID_sha256 && EVP_MD_type((const EVP_MD *)p2) != NID_sha384 && - EVP_MD_type((const EVP_MD *)p2) != NID_sha512) { + EVP_MD_type((const EVP_MD *)...
fix build i286
@@ -672,11 +672,15 @@ static void VideoFilter_SetPalette(BOOL bPalletEx) { memset(m_atPalette, 0, sizeof(VF_Palette_t) * 256); +#if defined(SUPPORT_PC9821) if(bPalletEx) { u32Pallet = NP2PAL_GRPHEX; } else { u32Pallet = NP2PAL_GRPH; } +#else + u32Pallet = NP2PAL_GRPH; +#endif for(u16Color = 0; u16Color < 256; u16Color+...
Added HardFault debugger function
@@ -248,6 +248,29 @@ nmiISR(void) volatile int x__; +volatile uint32_t r0; +volatile uint32_t r1; +volatile uint32_t r2; +volatile uint32_t r3; +volatile uint32_t r12; +volatile uint32_t lr; +volatile uint32_t pc; +volatile uint32_t psr; + +void debugHardfault(uint32_t *sp) +{ + r0 = sp[0]; + r1 = sp[1]; + r2 = sp[2]; ...
system-prefs: fixing non-null assertion errors on null rail
@@ -13,7 +13,7 @@ export const SystemUpdatePrefs = () => { ); const base = useVat('base'); const otasEnabled = base && !(base.arak?.rail?.paused ?? true); - const otaSource = base && base.arak.rail!.ship!; + const otaSource = base && base.arak.rail?.ship; const toggleBase = useCallback((on: boolean) => toggleOTAs('base...
Fix M3_MIN, once again
@@ -542,7 +542,7 @@ m3ApiRawFunction(m3_wasi_unstable_random_get) ssize_t retlen = 0; #if defined(__wasi__) || defined(__APPLE__) || defined(__ANDROID_API__) || defined(__OpenBSD__) - size_t reqlen = m3_min (buflen, 256); + size_t reqlen = M3_MIN (buflen, 256); # if defined(__APPLE__) && (TARGET_OS_IPHONE || TARGET_IPH...
Sync up changes to cupsTempFd.
@@ -62,15 +62,15 @@ cupsTempFd(char *filename, /* I - Pointer to buffer */ /* * On macOS and iOS, the TMPDIR environment variable is not always the best * location to place temporary files due to sandboxing. Instead, the confstr - * function should be called when running as a normal process (not a child of - * cupsd) t...
actions UPDATE macos brewed expect
@@ -72,7 +72,7 @@ jobs: cc: "clang", options: "-DENABLE_TESTS=ON", packager: "brew", - packages: "cmocka shunit2", + packages: "cmocka expect shunit2", snaps: "", make-prepend: "", make-target: ""
os/binfmt: Add NULL checking to avoid dereference Add NULL checking to avoid dereference
@@ -87,7 +87,11 @@ int load_binary(int binary_idx, FAR const char *filename, load_attr_t *load_attr int ret; /* Sanity check */ - if (load_attr && load_attr->bin_size <= 0) { + if (!load_attr) { + berr("ERROR: Invalid load_attr\n"); + errcode = -EINVAL; + goto errout; + } else if (load_attr->bin_size <= 0) { berr("ERRO...
Tweak unix socket peer test to sem_init once.
@@ -114,11 +114,6 @@ server_child() exit(-1); } - if (sem_init(sem, 1, 0) == -1) { - perror("Server:sem_init"); - exit(-1); - } - // socket: create the parent socket parentfd = socket(AF_UNIX, SOCK_STREAM, 0); if (parentfd < 0) {
Add material files to CMakeLists;
@@ -224,6 +224,7 @@ set(LOVR_SRC src/api/types/controller.c src/api/types/font.c src/api/types/joints.c + src/api/types/material.c src/api/types/mesh.c src/api/types/model.c src/api/types/randomGenerator.c @@ -240,6 +241,7 @@ set(LOVR_SRC src/filesystem/filesystem.c src/graphics/font.c src/graphics/graphics.c + src/gra...
Work CD-CI Add System.Text to ST_NUCLEO64_F091RC.
@@ -178,7 +178,7 @@ jobs: NeedsDFU: false ST_NUCLEO64_F091RC: BoardName: ST_NUCLEO64_F091RC - BuildOptions: -DTARGET_SERIES=STM32F0xx -DRTOS=CHIBIOS -DNF_FEATURE_DEBUGGER=ON -DNF_FEATURE_RTC=ON -DUSE_RNG=OFF -DNF_PLATFORM_NO_CLR_TRACE=ON -DNF_CLR_NO_IL_INLINE=ON -DAPI_Hardware.Stm32=ON -DAPI_Windows.Devices.Gpio=ON -DA...
simplify sourceforge links in kitgen/Makefile
-TCLLIB_URL = https://sourceforge.net/projects/tcllib/files/tcllib/1.19/tcllib-1.19.tar.gz/download -o tcllib-1.19.tar.gz -ZLIB_URL = https://sourceforge.net/projects/libpng/files/zlib/1.2.3/zlib-1.2.3.tar.gz/download -o zlib-1.2.3.tar.gz -TCL_URL = https://sourceforge.net/projects/tcl/files/Tcl/8.6.8/tcl8.6.8-src.tar....
Silence warning in MSVC about VLAs. When janet.h is included as a C++ header in MSVC, shows warnings.
extern "C" { #endif +/* Variable length arrays are ok */ +#ifdef _MSC_VER +#pragma warning( push ) +#pragma warning( disable : 4200 ) +#endif + /***** START SECTION CONFIG *****/ #include "janetconf.h" @@ -1652,6 +1658,11 @@ JANET_API int janet_thread_send(JanetThread *thread, Janet msg, double timeout); /***** END SEC...
PredictionValueChange for multiclass
@@ -17,7 +17,7 @@ struct TMxTree { }; struct TNodeInfo { - double Value = 0; + TVector<double> Values; // [dimension] double Count = 0; }; @@ -127,6 +127,7 @@ TVector<double> CalcEffect( const auto& binFeatures = model.ObliviousTrees->GetBinFeatures(); const auto& leafValues = model.ObliviousTrees->LeafValues; + const ...
Implement next_attack_time (nextattack) exposure.
@@ -71,6 +71,7 @@ int mapstrings_entity_property(ScriptVariant **varlist, int paramCount) "mp_old", "mp_time", "name", + "next_attack_time", "nograb", "nograb_default", "opponent", @@ -520,6 +521,13 @@ HRESULT openbor_get_entity_property(ScriptVariant **varlist , ScriptVariant **pr (*pretvar)->strVal = StrCache_CreateN...
Fix structured logging test path comparison...
@@ -333,7 +333,7 @@ MTF_DEFINE_UTEST(structured_logging_test, Test_preprocess_fmt_string_hse) ix++; ASSERT_STREQ("hse_0_file", shared_result.names[ix]); - ASSERT_STREQ(__FILE__, shared_result.values[ix]); + ASSERT_NE(NULL, strstr(__FILE__, shared_result.values[ix])); ix++; ASSERT_STREQ("hse_0_line", shared_result.names...
fix convert dict without return
@@ -2264,10 +2264,18 @@ PythonToBlocks.prototype.Dict = function(node) { var keys = node.keys; var values = node.values; - - return block("dicts_create_with_noreturn", node.lineno, {}, - this.convertElements("ADD", values) - , { + var keyList = []; + var valueList = []; + for (var i = 0; i < keys.length; i+= 1) { + var...
[kernel] tangential coefficient of restitution e_t in MoreauJeanOSI
@@ -1354,13 +1354,22 @@ struct MoreauJeanOSI::_NSLEffectOnFreeOutput : public SiconosVisitor void visit(const NewtonImpactFrictionNSL& nslaw) { - double e; - e = nslaw.en(); - // Only the normal part is multiplied by e - SiconosVector & osnsp_rhs = *(*_interProp.workVectors)[MoreauJeanOSI::OSNSP_RHS]; - osnsp_rhs (0) +...
lwip/dhcpserver: Add doxy documentation
@@ -95,16 +95,85 @@ static inline bool dhcps_dns_enabled (dhcps_offer_t offer) typedef struct dhcps_t dhcps_t; +/** + * @brief Creates new DHCP server object + * + * @return Pointer to the DHCP server handle on success, NULL on error + */ dhcps_t *dhcps_new(void); + +/** + * @brief Deletes supplied DHPC server object +...
CI/CD: fix protoc-c version error in ubuntu compile check
@@ -3,11 +3,16 @@ FROM ubuntu:18.04 LABEL maintainer="Shirong Hao <shirong@linux.alibaba.com>" RUN apt-get update && apt-get install -y autoconf gcc g++ make wget git \ - libseccomp-dev binutils-dev libprotoc-dev libprotobuf-c0-dev \ - protobuf-c-compiler pkg-config libssl-dev openssl + libseccomp-dev binutils-dev libp...
util/ectool: Protect against out-of-memory condition Found by Coverity Scan BRANCH=none TEST=none Tested-by: Patrick Georgi
@@ -8656,9 +8656,14 @@ int cmd_tp_frame_get(int argc, char* argv[]) data = malloc(ec_max_insize); r = malloc(ec_max_insize); + if (data == NULL || r == NULL) { + fprintf(stderr, "Couldn't allocate memory.\n"); + return EC_ERROR_UNKNOWN; + } + rv = ec_command(EC_CMD_TP_FRAME_INFO, 0, NULL, 0, r, ec_max_insize); if (rv <...
Snippet Sharing: Specify language for code fence
@@ -253,7 +253,7 @@ the here described service: The server redirects requests on port 80 (non-SSL) to 443 using a very simple configuration like -``` +```apache # file: /etc/apache2/sites-available/www.libelektra.org.conf <VirtualHost *:80> ServerName www.libelektra.org @@ -265,7 +265,7 @@ for the `www.libelektra.org` ...
Fix MPLS local-label CLI help string CLI parsing code (unformat_fib_route_path) does not recognise 'resolve-via-connected'. However it understands 'resolve-via-attached'.
@@ -386,7 +386,7 @@ done: VLIB_CLI_COMMAND (mpls_local_label_command, static) = { .path = "mpls local-label", .function = vnet_mpls_local_label, - .short_help = "mpls local-label [add|del] <label-value> [eos|non-eos] via [next-hop-address] [next-hop-interface] [next-hop-table <value>] [weight <value>] [preference <valu...
Add missing NULL check in OSSL_DECODER_from_bio().
@@ -48,6 +48,11 @@ int OSSL_DECODER_from_bio(OSSL_DECODER_CTX *ctx, BIO *in) int ok = 0; BIO *new_bio = NULL; + if (in == NULL) { + ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_PASSED_NULL_PARAMETER); + return 0; + } + if (OSSL_DECODER_CTX_get_num_decoders(ctx) == 0) { ERR_raise_data(ERR_LIB_OSSL_DECODER, OSSL_DECODER_R_DECOD...
[examples] convert tippe_top.py to proposed mechanics
import siconos from siconos.mechanics.collision.tools import Contactor +from siconos.mechanics.collision.bullet import SiconosBulletOptions from siconos.io.mechanics_io import thetav, Hdf5 from math import pi from matplotlib import pyplot as plt -siconos.io.mechanics_io.set_implementation('original') - # Cf A set-value...
nicer gettimeofday error handling.
@@ -139,9 +139,10 @@ dnscrypt_hrtime(void) int ret; ret = gettimeofday(&tv, NULL); - assert(ret == 0); if (ret == 0) { ts = (uint64_t)tv.tv_sec * 1000000U + (uint64_t)tv.tv_usec; + } else { + log_err("gettimeofday: %s", strerror(errno)); } return ts; }
Updated comments format.
@@ -735,9 +735,9 @@ extract_method (const char *token) const int list_count = sizeof (list) / sizeof (*list); int i; - // Length of every string in list + /* Length of every string in list */ static int list_length[sizeof (list) / sizeof (*list)] = { -1 }; - // Only calculate length on first time + /* Only calculate le...
Add parentheses around braced initializer lists;
@@ -597,7 +597,7 @@ void lovrGraphicsArc(DrawMode mode, ArcMode arcMode, Material* material, mat4 tr lovrMeshWriteIndices(state.defaultMesh, 0, 0); if (hasCenterPoint) { - memcpy(vertices.floats, (float[]) { 0, 0, 0, 0, 0, 1, .5, .5 }, 8 * sizeof(float)); + memcpy(vertices.floats, ((float[]) { 0, 0, 0, 0, 0, 1, .5, .5 ...
arch/arm/samv7: fix random corruption of data after SDIO RX DMA transaction use time based timeout calculation instead of cycle based minor styling fixes
#undef HSCMI_NORXDMA /* Define to disable RX DMA */ #undef HSCMI_NOTXDMA /* Define to disable TX DMA */ -/* Timing */ +/* Timing : 100mS short timeout, 2 seconds for long one */ -#define HSMCI_CMDTIMEOUT (100000) -#define HSMCI_LONGTIMEOUT (0x7fffffff) +#define HSMCI_CMDTIMEOUT MSEC2TICK(100) +#define HSMCI_LONGTIMEOUT...
glTF: Add support for base64 buffer data;
@@ -81,6 +81,53 @@ static int nomValue(const char* data, jsmntok_t* token, int count, int sum) { } } +static void* decodeBase64(char* str, size_t length, size_t decodedSize) { + str = memchr(str, ',', length); + if (!str) { + return NULL; + } else { + str++; + } + + uint8_t* data = malloc(decodedSize); + if (!data) { +...
[mod_redirect,mod_rewrite] support up to 19 match support up to 19 regex saved matches ($1 - $9 and ${1} - ${19}) for use in replacement substitutions. lighttpd config conditionals are still limited to 9 matches (%1 - %9)
@@ -292,7 +292,7 @@ static void pcre_keyvalue_buffer_subst(buffer *b, const buffer *patternb, const handler_t pcre_keyvalue_buffer_process(pcre_keyvalue_buffer *kvb, pcre_keyvalue_ctx *ctx, buffer *input, buffer *result) { for (int i = 0, used = (int)kvb->used; i < used; ++i) { pcre_keyvalue * const kv = kvb->kv[i]; - ...