message
stringlengths
6
474
diff
stringlengths
8
5.22k
Cirrus: Use POSIX shell syntax
@@ -47,7 +47,7 @@ bsd_task: # Work around stalled process plugin and library problems on FreeBSD: https://issues.libelektra.org/2323 - sudo mount -t fdescfs fdesc /dev/fd - &run_tests | # Run tests - if [ "$ENABLE_ASAN" == 'ON' ]; then + if [ "$ENABLE_ASAN" = 'ON' ]; then cmake --build "$BUILD_DIR" --target run_nocheck...
Fix a warning found in build testing
@@ -205,9 +205,9 @@ static const char g_redirect1[] = ">"; static const char g_redirect2[] = ">>"; #ifndef CONFIG_DISABLE_ENVIRON static const char g_exitstatus[] = "?"; -#endif static const char g_success[] = "0"; static const char g_failure[] = "1"; +#endif static const char g_nullstring[] = ""; /********************...
Update the info callback documentation for TLSv1.3
=head1 NAME -SSL_CTX_set_info_callback, SSL_CTX_get_info_callback, SSL_set_info_callback, SSL_get_info_callback - handle information callback for SSL connections +SSL_CTX_set_info_callback, +SSL_CTX_get_info_callback, +SSL_set_info_callback, +SSL_get_info_callback +- handle information callback for SSL connections =hea...
docs/fingerprint: Update power numbers for icetower/dartmonkey BRANCH=none TEST=view in gitiles
@@ -351,28 +351,34 @@ When the MCU is in **low power** mode during the AP suspend (as emulated by @@ pp3300_dx_mcu_mw 1243 2.25 0.39 10.26 2.10 ``` -### Dragontalon +### Icetower v0.1 <!-- mdformat off(b/139308852) --> *** note -**NOTE**: The sensor doesn't work on Dragontalon, so the measurements below show -zero for ...
improved response time
@@ -1134,12 +1134,24 @@ while(1) sendacknowledgement(macf->addr2.addr); sendauthentication(macf->addr2.addr, macf->addr1.addr); } + continue; + } + + else if((macf->subtype == MAC_ST_ACTION) && (staytime <= 5)) + { + if(memcmp(broadcastaddr.addr, macf->addr1.addr, 6) == 0) + { + senddeauth(MAC_ST_DEAUTH, WLAN_REASON_PR...
DM: multiboot info address in DM for elf loader is wrong. The () was missed during the patch refine. This patch add it. Acked-by: Yu Wang
@@ -294,7 +294,7 @@ acrn_sw_load_elf(struct vmctx *ctx) ctx->bsp_regs.vcpu_regs.gprs.rax = MULTIBOOT_MACHINE_STATE_MAGIC; if (multiboot_image == 1) { - mi = (struct multiboot_info *)ctx->baseaddr + MULTIBOOT_OFFSET; + mi = (struct multiboot_info *)(ctx->baseaddr + MULTIBOOT_OFFSET); memset(mi, 0, sizeof(*mi)); if (mult...
fix: including a filename doesn't impact other fields
@@ -84,20 +84,19 @@ logconf_setup(struct logconf *config, const char config_file[]) /* SET LOGGER CONFIGS */ if (!IS_EMPTY_STRING(logging->filename)) { - if (true == g_first_run) { + if (true == g_first_run) config->logger.f = fopen(logging->filename, "w+"); + else + config->logger.f = fopen(logging->filename, "a+"); l...
Fix coverity CID - Dereference before NULL check in EVP_DigestFinal_ex()
@@ -367,11 +367,18 @@ int EVP_DigestFinal(EVP_MD_CTX *ctx, unsigned char *md, unsigned int *size) /* The caller can assume that this removes any secret data from the context */ int EVP_DigestFinal_ex(EVP_MD_CTX *ctx, unsigned char *md, unsigned int *isize) { - int ret; + int ret, sz; size_t size = 0; - size_t mdsize = ...
Mac friendly build instruction
@@ -58,13 +58,16 @@ Build from git $ git clone --depth 1 https://github.com/openssl/openssl $ cd openssl $ # For Linux - $ ./Configure enable-tls1_3 --prefix=$PWD/build linux-x86_64 + $ ./config enable-tls1_3 --prefix=$PWD/build $ make -j$(nproc) $ make install_sw $ cd .. $ git clone https://github.com/ngtcp2/ngtcp2 $ ...
Restore initializers for mutex and conditional
@@ -571,6 +571,9 @@ int blas_thread_init(void){ atomic_store_queue(&thread_status[i].queue, (blas_queue_t *)0); thread_status[i].status = THREAD_STATUS_WAKEUP; + pthread_mutex_init(&thread_status[i].lock, NULL); + pthread_cond_init (&thread_status[i].wakeup, NULL) + #ifdef NEED_STACKATTR ret=pthread_create(&blas_thread...
msp: rescrict powerlevel
@@ -318,7 +318,7 @@ static void msp_process_serial_cmd(msp_t *msp, msp_magic_t magic, uint16_t cmd, } if (remaining >= 2) { - settings->power_level = payload[2] - 1; + settings->power_level = max(payload[2], 1) - 1; settings->pit_mode = payload[3]; remaining -= 2; }
Fix vlsi/Makefile opts meta
@@ -123,11 +123,12 @@ $(SIM_CONF): $(VLSI_RTL) $(HARNESS_FILE) $(HARNESS_SMEMS_FILE) $(sim_common_file for x in $(filter-out "",$(VCS_CXXFLAGS)); do \ echo ' - "'$$x'"' >> $@; \ done + echo " compiler_cc_opts_meta: 'append'" >> $@ echo " compiler_ld_opts:" >> $@ for x in $(filter-out "",$(VCS_LDFLAGS)); do \ echo ' - "...
BugID:19854862:add disable aos2.1 breakpoint function
@@ -211,7 +211,7 @@ static void ota_download_thread(void *hand) aos_task_delete("event_task"); ota_msleep(500); #endif - tmp_breakpoint = ota_get_break_point(); + tmp_breakpoint = 0; memset(&last_hash, 0x00, sizeof(last_hash)); ota_get_last_hash((char *)&last_hash); if (tmp_breakpoint && (strncmp((char *)&last_hash, ct...
generic platform: If /bmc in device tree, attempt to init one For the most part, this gets us somewhere on some OpenPOWER systems before there's a platform file for that machine. Useful in bringup only, and marked as such with scary looking log messages.
#include <errorlog.h> #include <bt.h> #include <nvram.h> +#include <platforms/astbmc/astbmc.h> bool manufacturing_mode = false; struct platform platform; @@ -105,7 +106,17 @@ opal_call(OPAL_CEC_REBOOT2, opal_cec_reboot2, 2); static bool generic_platform_probe(void) { + if (dt_find_by_path(dt_root, "bmc")) { + /* We app...
core/flash: Log return code when ffs_init() fails Knowing the return code is at least better than not knowing the return code.
@@ -693,7 +693,7 @@ static int flash_load_resource(enum resource_id id, uint32_t subid, rc = ffs_init(0, flash->size, flash->bl, &ffs, 1); if (rc) { - prerror("FLASH: Can't open ffs handle\n"); + prerror("FLASH: Can't open ffs handle: %d\n", rc); goto out_unlock; }
added complete RADIUS frame header
#define WPA_KEY_INFO_ERROR WBIT(10) #define WPA_KEY_INFO_REQUEST WBIT(11) #define WPA_KEY_INFO_ENCR_KEY_DATA WBIT(12) /* IEEE 802.11i/RSN only */ - /*===========================================================================*/ struct radiotap_header { @@ -123,6 +122,13 @@ struct ethernet2_header typedef struct etherne...
SoapyLMS: Revert IQbalance change
@@ -237,7 +237,7 @@ bool SoapyLMS7::hasIQBalance(const int /*direction*/, const size_t /*channel*/) void SoapyLMS7::setIQBalance(const int direction, const size_t channel, const std::complex<double> &balance) { const auto lmsDir = (direction == SOAPY_SDR_TX)?LMS7002M::Tx:LMS7002M::Rx; - double gain = std::abs(balance);...
Removed reference to kbhit() which is no longer in the code
@@ -153,7 +153,6 @@ int main( void ) /* Start the trace recording - the recording is written to a file if configASSERT() is called. */ printf( "\r\nTrace started.\r\nThe trace will be dumped to disk if a call to configASSERT() fails.\r\n" ); - printf( "Uncomment the call to kbhit() in this file to also dump trace with ...
interface: update CONTRIBUTING.md
@@ -28,12 +28,13 @@ module.exports = { ``` Change the URL to your livenet ship (if making front-end changes) or keep it the -same (if [developing on a local development ship][local]). Then, from -'pkg/interface': +same (if [developing on a local development ship][local]). Then, from the root +of the repository -``` -np...
fix:fix ethereum test case(test_001CreateWallet_0017CreateSixWalletUnloadTwoCreateOne)
@@ -505,6 +505,7 @@ END_TEST START_TEST(test_001CreateWallet_0017CreateSixWalletUnloadTwoCreateOne) { BSINT32 rtnVal; + BoatIotSdkInit(); BoatEthWalletConfig wallet = get_ethereum_wallet_settings(); extern BoatIotSdkContext g_boat_iot_sdk_context; wallet.prikeyCtx_config.prikey_genMode = BOAT_WALLET_PRIKEY_GENMODE_INTE...
prevent overflow in allocation of RLE buufer
@@ -24,6 +24,10 @@ RleCompressor::RleCompressor (const Header &hdr, size_t maxScanLineSize): _tmpBuffer (0), _outBuffer (0) { + if(maxScanLineSize > std::numeric_limits<int>::max()) + { + throw IEX_NAMESPACE::OverflowExc ("ScanLine size too large for RleCompressor"); + } _tmpBuffer = new char [maxScanLineSize]; _outBuf...
Fix typo in psa config comment Change "are" to "aren't" to avoid making the comment misleading.
@@ -253,7 +253,7 @@ extern "C" { #endif /* PSA_WANT_ALG_STREAM_CIPHER */ /* The MBEDTLS_PSA_HAVE_SOFT_KEY_TYPE_* are defined if a key type is selected, - * but we are configured to accelerate this key type. */ + * but we aren't configured to accelerate this key type. */ #if defined(PSA_WANT_KEY_TYPE_AES) && !defined(MB...
Bugfix for wpaclean detection.
@@ -1219,7 +1219,7 @@ while((pcapstatus = pcap_next_ex(pcapin, &pkh, &packet)) != -2) continue; packetcount++; - if((pkh->ts.tv_sec == 0) && (pkh->ts.tv_sec == 0)) + if((pkh->ts.tv_sec == 0) && (pkh->ts.tv_usec == 0)) wcflag = true;
Split attestation results generation into a separate call
@@ -183,31 +183,51 @@ Inputs: supports one format, but some plugins might accept either JWT or CWT for instance, and supplying this avoids having to implement format detection heuristics by trying to parse the buffer. -* Requested Attestation Results format (e.g., CWT, JWT, X.509, etc.). - Defaults to letting the plugi...
Test XML_ParserReset in internal entity expansion
@@ -1469,7 +1469,6 @@ START_TEST(test_set_base) } END_TEST - /* Test attribute counts, indexing, etc */ typedef struct attrInfo { const char *name; @@ -1566,6 +1565,34 @@ START_TEST(test_attributes) } END_TEST +/* Test reset works correctly in the middle of processing an internal + * entity. Exercises some obscure code...
revert empty lines
@@ -766,6 +766,7 @@ static void CalcBestScoreLeafwise( TVector<TCandidatesContext>* candidatesContexts, // [dataset] TFold* fold, TLearnContext* ctx) { + TVector<std::pair<size_t, size_t>> tasks; // vector of (contextIdx, candId) for (auto contextIdx : xrange(candidatesContexts->size())) { @@ -1122,7 +1123,6 @@ static ...
Use nanosleep instead of usleep; usleep is deprecated and does not exist on some new Linux systems.
#include "platform.h" -#include <unistd.h> #include <string.h> +#include <time.h> #include "platform_glfw.c.h" @@ -9,7 +9,11 @@ const char* lovrPlatformGetName() { } void lovrPlatformSleep(double seconds) { - usleep((unsigned int) (seconds * 1000000)); + seconds += .5e-9; + struct timespec t; + t.tv_sec = seconds; + t....
Cleanup no attrib warning in clang
@@ -52,7 +52,11 @@ typedef struct sdd { #define SDD_HDR(s) ((sdd_header *)s - 1) #if defined(__GNUC__) || defined(__clang__) +#if __has_attribute(noinline) && __has_attribute(noclone) #define SDD_NOINLINE __attribute__((noinline, noclone)) +#else +#define SDD_NOINLINE __attribute__((noinline)) +#endif #elif defined(_MS...
OpenCoreDevProps: Remove redundant arguments
@@ -156,8 +156,7 @@ OcLoadDevPropsSupport ( DEBUG_INFO, "OC: Setting devprop %a:%a - ignored, exists\n", AsciiDevicePath, - AsciiProperty, - Status + AsciiProperty )); }
add gdal libs (test)
<Abi>armeabi-v7a</Abi> <Link>armeabi-v7a\libcarto_mobile_sdk.so</Link> </EmbeddedNativeLibrary> + <EmbeddedNativeLibrary Include="$baseDir\prebuilt\gdal\libs\armeabi-v7a\libgdal.so"> + <Abi>armeabi-v7a</Abi> + <Link>armeabi-v7a\libgdal.so</Link> + </EmbeddedNativeLibrary> + <EmbeddedNativeLibrary Include="$baseDir\preb...
Fix typo in DeserializeResGroupInfo() len was used instead of cpuset_len. In most of cases this resulted in garbage being copied. But rare out-of-page reads could cause a crash.
@@ -2539,7 +2539,7 @@ DeserializeResGroupInfo(struct ResGroupCaps *capsOut, cpuset_len = ntohl(itmp); if (cpuset_len >= sizeof(capsOut->cpuset)) elog(ERROR, "malformed serialized resource group info"); - memcpy(capsOut->cpuset, ptr, len); ptr += cpuset_len; + memcpy(capsOut->cpuset, ptr, cpuset_len); ptr += cpuset_len;...
Fix block-size determination for decode passes
@@ -344,7 +344,7 @@ int init_astcenc_config( { block_x = comp_image.block_x; block_y = comp_image.block_y; - block_z = comp_image.block_y; + block_z = comp_image.block_z; } astcenc_preset preset = ASTCENC_PRE_FAST;
use net_socket so that in adheres the global ipv4/ipv6 setting
#include "ext-lpd.h" -// Set a socket non-blocking; defined in src/net.c -int net_set_nonblocking( int fd ); - enum { // Packets per minute to be handled PACKET_LIMIT_MAX = 20, @@ -111,11 +108,7 @@ int create_send_socket( int af, const char ifname[] ) { const int opt_off = 0; int sock; - if( (sock = socket( af, SOCK_DG...
Fix CID : Null pointer dereference in self_test.c
@@ -174,8 +174,10 @@ static int verify_integrity(OSSL_CORE_BIO *bio, OSSL_FUNC_BIO_read_ex_fn read_ex OSSL_SELF_TEST_onbegin(ev, event_type, OSSL_SELF_TEST_DESC_INTEGRITY_HMAC); mac = EVP_MAC_fetch(libctx, MAC_NAME, NULL); + if (mac == NULL) + goto err; ctx = EVP_MAC_CTX_new(mac); - if (mac == NULL || ctx == NULL) + if...
Improve FAQ explanations
@@ -32,7 +32,16 @@ in the release, so it should work out-of-the-box. ### Device unauthorized -Check [stackoverflow][device-unauthorized]. + +> error: device unauthorized. +> This adb server's $ADB_VENDOR_KEYS is not set +> Try 'adb kill-server' if that seems wrong. +> Otherwise check for a confirmation dialog on your d...
doc: test for simple xsd edit CI test for simple xsd edit
severity and intent: - 1 (LOG_FATAL) system is unusable -- 2 (LOG_ACRN) +- 2 (LOG_ACRN) hypervisor failure - 3 (LOG_ERROR) error conditions - 4 (LOG_WARNING) warning conditions - 5 (LOG_INFO) informational
Remove --fullscreen validation Many options are meaningless if --no-display is set. We don't want to validate all possible combinations, so don't make an exception for --fullscreen.
@@ -628,11 +628,6 @@ scrcpy_parse_args(struct scrcpy_cli_args *args, int argc, char *argv[]) { return false; } - if (!opts->display && opts->fullscreen) { - LOGE("-f/--fullscreen-window is incompatible with -N/--no-display"); - return false; - } - int index = optind; if (index < argc) { LOGE("Unexpected additional argu...
Date: update return values
@@ -413,6 +413,7 @@ static int validateDate (Key * key, Key * parentKey) if (rc == -1) { ELEKTRA_SET_ERRORF (ELEKTRA_ERROR_D_T_FMT, parentKey, "%s doesn't match format string %s", date, formatString); + rc = 0; } } else if (!strcasecmp (stdString, "ISO8601")) @@ -425,11 +426,11 @@ static int validateDate (Key * key, Ke...
Maybe a bit more visible install command
@@ -47,7 +47,11 @@ You can then subsequently uninstall MangoHud via the following command #### GitHub releases -If you do not wish to compile anything, simply download the file under [Releases](https://github.com/flightlessmango/MangoHud/releases), extract it, and run `./mangohud-setup.sh install` from within the extra...
Automatically annotate tf graph with gradients
#define CFL_SIZE sizeof(complex float) #endif - +//#define TF_AUTOGRAD 1 +// The TensorFlow C API does not support all gradients +// Thus we require that the TensorFlow graph is annotated with gradients #ifdef TENSORFLOW @@ -427,6 +429,41 @@ static bool cmp_arg(struct tf_arg arg1, struct tf_arg arg2) return result; } +...
ini: reset removeSectionKey only when needed
@@ -1263,9 +1263,12 @@ static int iniWriteKeySet (FILE * fh, Key * parentKey, KeySet * returned, IniPlu } else { - if (removeSectionKey) keyDel (sectionKey); - sectionKey = parentKey; + if (removeSectionKey) + { + keyDel (sectionKey); removeSectionKey = 0; + } + sectionKey = parentKey; fprintf (fh, "[]\n"); } }
[Tools] add IAR get version support
@@ -156,3 +156,38 @@ def IARProject(target, script): out.close() IARWorkspace(target) + +def IARVersion(): + import subprocess + import re + + def IARPath(): + import rtconfig + + # set environ + old_environ = os.environ + os.environ['RTT_CC'] = 'iar' + reload(rtconfig) + + # get iar path + path = rtconfig.EXEC_PATH + ...
Update FreeRTOS_ARP.c
@@ -607,7 +607,7 @@ NetworkBufferDescriptor_t *pxNetworkBuffer; #if ( ipconfigHAS_DEBUG_PRINTF != 0 ) FreeRTOS_printf( ( "xNetworkInterfaceOutput failed. Link down?\n" ) ); #else - ; + ; /* Do nothing */ #endif } }
feat(Makefile): replace existing member, instead of always appending
@@ -259,15 +259,15 @@ all_api_libs : $(LIBDISCORD) $(LIBGITHUB) $(LIBREDDIT) $(LIBSLACK) $(LIBADDONS) # API libraries compilation $(LIBDISCORD) : $(CEE_UTILS_OBJS) $(COMMON_OBJS) $(DISCORD_OBJS) | $(LIBDIR) - $(AR) -cvq $@ $^ + $(AR) -cqsv $@ $? $(LIBGITHUB) : $(CEE_UTILS_OBJS) $(COMMON_OBJS) $(GITHUB_OBJS) | $(LIBDIR)...
SOVERSION bump to version 5.5.11
@@ -45,7 +45,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_ # with backward compatible change and micro version is connected with any internal change of the library. set(SYSREPO_MAJOR_SOVERSION 5) set(SYSREPO_MINOR_SOVERSION 5) -set(SYSREPO_MICRO_SOVERSION 10) +set(SYSREPO_MICRO_S...
Limit driver spam
@@ -1004,7 +1004,7 @@ static ButtonQueueEntry *incrementAndPostButtonQueue(SurviveObject *so) { ButtonQueueEntry *entry = &(ctx->buttonQueue.entry[ctx->buttonQueue.nextWriteIndex]); - SV_VERBOSE(100, "%s Button event %s %d %s %f", survive_colorize_codename(so), + SV_VERBOSE(110, "%s Button event %s %d %s %f", survive_c...
chat-cli: use name:title
++ connect ^- move [ost.bowl %peer /chat-store [our-self %chat-store] /updates] -:: +true-self: moons to planets -:: -++ true-self - |= who=ship - ^- ship - ?. ?=(%earl (clan:title who)) who - (sein:title our.bowl now.bowl who) -++ our-self (true-self our.bowl) +:: +++ our-self (name:title our.bowl) :: +target-to-path:...
Update hcd_rp2040.c Remove reference to the deprecated "num" and "in" members of struct hw_endpoint which still exist in an assert statement and break DEBUG builds.
@@ -487,7 +487,6 @@ bool hcd_setup_send(uint8_t rhport, uint8_t dev_addr, uint8_t const setup_packet // EP0 out _hw_endpoint_init(ep, dev_addr, 0x00, ep->wMaxPacketSize, 0, 0); assert(ep->configured); - assert(ep->num == 0 && !ep->in); ep->total_len = 8; ep->transfer_size = 8; ep->active = true;
output: fix protocol loader/check
#include <fluent-bit/flb_utils.h> #include <fluent-bit/flb_plugin_proxy.h> -#define protcmp(a, b) strncasecmp(a, b, strlen(a)) - /* Validate the the output address protocol */ static int check_protocol(char *prot, char *output) { int len; + char *p; - len = strlen(prot); - if (len > strlen(output)) { - return 0; + p = ...
lindar: add define CONFIG_CMD_TCPC_DUMP add EC console command for TCPC dump. BRANCH=firmware-volteer-13672.B TEST=make buildall -j
#undef CONFIG_USBC_RETIMER_INTEL_BB #undef CONFIG_USBC_RETIMER_INTEL_BB_RUNTIME_CONFIG +/* EC console commands */ +#define CONFIG_CMD_TCPC_DUMP + /* * Macros for GPIO signals used in common code that don't match the * schematic names. Signal names in gpio.inc match the schematic and are
gsettings: fix sentence
@@ -36,7 +36,7 @@ add_library (elektrasettings SHARED elektrasettingsbackend.c ${ELEKTRA_HEADERS}) set (GSETTINGS_MODULE_PRIORITY 50 CACHE STRING - "GIO Module Priority. Higher than 100 means dconf backend will be default.") + "GIO Module Priority. Higher than 100 means the Elektra gsettings backend will be default.") ...
docker: remove moreutils+pip from stretch
@@ -16,7 +16,6 @@ RUN apt-get update \ ruby \ ruby-dev \ python-all \ - python-pip \ python3-all \ libpython3-dev \ dh-exec \ @@ -73,11 +72,9 @@ RUN apt-get update \ lcov \ icheck \ valgrind \ - moreutils \ && rm -rf /var/lib/apt/lists/* RUN cabal update && cabal install hspec QuickCheck -RUN pip install --upgrade cmak...
Example slip-radio: do not compile for native
@@ -2,6 +2,9 @@ CONTIKI_PROJECT=slip-radio all: $(CONTIKI_PROJECT) MODULES += os/services/slip-cmd +# slip-radio is only intended for platforms with SLIP support +PLATFORMS_EXCLUDE = native + CONTIKI=../.. include $(CONTIKI)/Makefile.identify-target
Give each platform it's own dedicated SWO port otherwise they could collide.
@@ -36,17 +36,17 @@ CONNECTION_LIST = [None, # Instance 0, Lint, no connection, no need for a l "gdb_port": u_utils.STLINK_GDB_PORT + 2}, # Instance 12, NRF52, SARA-R412M-02B {"lock": None, "serial_port": "COM7", "debugger": "683920969", - "swo_port": u_utils.JLINK_SWO_PORT + 1}, + "swo_port": u_utils.JLINK_SWO_PORT + ...
misc/opts.c: check result of opt_uint
@@ -490,7 +490,10 @@ bool opt_int(void* ptr, char c, const char* optarg) bool opt_uint(void* ptr, char c, const char* optarg) { UNUSED(c); - *(unsigned int*)ptr = atoi(optarg); + int val = atoi(optarg); + if (0 > val) + error("Argument to opt_uint must be unsigned"); + *(unsigned int*)ptr = (unsigned int) val; return f...
crypto: fix set crypto handlers Type: fix
@@ -172,7 +172,7 @@ vnet_crypto_set_handler2 (char *alg_name, char *engine, if (!p) return -1; - for (i = 0; i < VNET_CRYPTO_OP_N_TYPES; i += 2) + for (i = 0; i < VNET_CRYPTO_OP_N_TYPES; i++) { vnet_crypto_op_data_t *od; vnet_crypto_op_id_t id = ad->op_by_type[i];
tests/posix: don't refer to SIGCANCEL on host-libc
@@ -156,7 +156,9 @@ static void test_sigmask() { sigset_t set; sigemptyset(&set); sigaddset(&set, SIGUSR1); +#ifndef USE_HOST_LIBC sigaddset(&set, SIGCANCEL); +#endif assert(!pthread_attr_init(&attr)); assert(!pthread_attr_setsigmask_np(&attr, &set)); @@ -167,8 +169,10 @@ static void test_sigmask() { assert(!pthread_at...
Improve error handling in pg_regress for commit
@@ -782,6 +782,12 @@ convert_sourcefiles_in(char *source_subdir, char *dest_dir, char *dest_subdir, c repls.content_zero_hostname = content_zero_hostname; repls.username = get_user_name(&errstr); + if (repls.username == NULL) + { + fprintf(stderr, "%s: %s\n", progname, errstr); + exit_nicely(2); + } + /* finally loop o...
examples/unionfs: Remove [a|b]testdir.h in distclean
@@ -72,5 +72,7 @@ context:: romfs_atestdir.h romfs_btestdir.h distclean:: $(call DELFILE, atestdir.img) $(call DELFILE, btestdir.img) + $(call DELFILE, atestdir.h) + $(call DELFILE, btestdir.h) include $(APPDIR)/Application.mk
docs: describe clib_time monotonic timebase support Type: docs
@@ -170,6 +170,74 @@ the rate adjustment algorithm. The code rejects frequency samples corresponding to the sort of adjustment which might occur if someone changes the gold standard kernel clock by several seconds. +### Monotonic timebase support + +Particularly during system initialization, the "gold standard" system ...
Added lv_dropdown_clear_options, convert options when adding
@@ -177,6 +177,26 @@ void lv_dropdown_set_text(lv_obj_t * ddlist, const char * txt) lv_obj_invalidate(ddlist); } +/** + * Clear any options in a drop down list. Static or dynamic. + * @param ddlist pointer to drop down list object + */ +void lv_dropdown_clear_options(lv_obj_t * ddlist) +{ + LV_ASSERT_OBJ(ddlist, LV_OBJ...
blockresolver: Fix testmod
@@ -30,7 +30,7 @@ static void test_BlockresolverRead (char * fileName) output_error (parentKey); Plugin * storage = elektraPluginOpen ("mini", modules, ksNew (0, KS_END), 0); succeed_if (storage->kdbGet (storage, ks, parentKey) >= 0, "storage->kdbGet failed"); - succeed_if (!strcmp (keyString (ksLookupByName (ks, "syst...
chat: bump url message size
@@ -196,7 +196,7 @@ export class MessageWithSigil extends PureComponent<MessageProps> { scrollWindow={scrollWindow} className="fl pr3 v-top bg-white bg-gray0-d" /> - <div className="fr clamp-message white-d" style={{ flexGrow: 1, marginTop: -12 }}> + <div className="fr f8 clamp-message white-d" style={{ flexGrow: 1, ma...
SOVERSION bump to version 4.1.22
@@ -38,7 +38,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_ # with backward compatible change and micro version is connected with any internal change of the library. set(SYSREPO_MAJOR_SOVERSION 4) set(SYSREPO_MINOR_SOVERSION 1) -set(SYSREPO_MICRO_SOVERSION 21) +set(SYSREPO_MICRO_S...
update ya tool arc keep all modification if we create new local branch create and checkout new branch with given source show tree, changes and colorize output
}, "arc": { "formula": { - "sandbox_id": [353992795], + "sandbox_id": [354619373], "match": "arc" }, "executable": {
[Kernel] Fix the wrong indentation
* Date Author Notes * 2018-10-30 Bernard The first version */ - -#include <rtthread.h> #include <rthw.h> +#include <rtthread.h> #ifdef RT_USING_SMP static struct rt_cpu rt_cpus[RT_CPUS_NR];
Register SWIG C Python modules as py namespace submodules. This moves private swig modules from the top level to the packages of public swig wrappers. This changes the users of private modules to use public wrappers (with a fallback for ontodb).
@@ -274,9 +274,6 @@ def onpy_srcs(unit, *args): elif path.endswith('.ev'): evs.append(pathmod) elif path.endswith('.swg'): - if py3: - ymake.report_configure_error('SWIG is not yet supported for Python 3: https://st.yandex-team.ru/DEVTOOLS-4863') - else: swigs.append(path) # ignore mod, use last (and only) ns else: yma...
Trivial doc change to test readthedocs
@@ -22,7 +22,7 @@ typedef struct { /** * Compute b(a), the bias of the clustering sample of a cosmology at a given scale factor - * This is input from LSS group. + * This is input from the LSS group. * @param cosmo Cosmological parameters * @param a scale factor, normalized to a=1 today. * @param status Status flag. 0 ...
Update firpfb.c typo
@@ -97,7 +97,7 @@ FIRPFB() FIRPFB(_create)(unsigned int _M, return q; } -// create firpfb from external coefficients +// create firpfb using kaiser window // _M : number of filters in the bank // _m : filter semi-length [samples] // _fc : filter cut-off frequency 0 < _fc < 0.5 @@ -122,7 +122,7 @@ FIRPFB() FIRPFB(_creat...
Fixed console error caused by previous commit
@@ -715,17 +715,17 @@ void CGTypedArray<TYPE, ARG_TYPE>::SetCount( size_t nNewCount ) if ( nNewCount > m_nCount ) { - TYPE *pNewData = reinterpret_cast<TYPE *>(new BYTE[nNewCount * sizeof(TYPE *)]); + BYTE *pNewData = new BYTE[nNewCount * sizeof(TYPE)]; if ( m_nCount ) { // Copy the old stuff to the new array - memcpy(...
[component/ulog] Fix ulog hexdump show issue.
@@ -684,7 +684,7 @@ void ulog_hexdump(const char *tag, rt_size_t width, rt_uint8_t *buf, rt_size_t s log_len = 6 + name_len + 2; rt_memset(log_buf, ' ', log_len); } - fmt_result = rt_snprintf(log_buf + log_len, ULOG_LINE_BUF_SIZE, "%04X-%04X: ", i, i + width); + fmt_result = rt_snprintf(log_buf + log_len, ULOG_LINE_BUF...
Fix warning on overwrite-only This function is unused in overwrite-only mode. Clang seems to catch this, whereas gcc does not. Add the proper ifdefs so that the simulator tests all pass on MacOS.
@@ -779,6 +779,7 @@ done: return rc; } +#ifndef MCUBOOT_OVERWRITE_ONLY static inline int boot_status_init_by_id(int flash_area_id, const struct boot_status *bs) { @@ -807,6 +808,7 @@ boot_status_init_by_id(int flash_area_id, const struct boot_status *bs) return 0; } +#endif #ifndef MCUBOOT_OVERWRITE_ONLY static int
Minor optimization in tuplesort_skiptuples_mk for in memory non unique tuple store which just advances current position by N instead of getting tuple N times. Author: Max Yang
@@ -1728,7 +1728,7 @@ tuplesort_getdatum_mk(Tuplesortstate_mk *state, bool forward, bool tuplesort_skiptuples_mk(Tuplesortstate_mk *state, int64 ntuples, bool forward) { - MemoryContext oldcontext = MemoryContextSwitchTo(state->sortcontext); + MemoryContext oldcontext; bool fOK; /* @@ -1739,14 +1739,23 @@ tuplesort_ski...
examples/foc/Kconfig: update EXAMPLES_FOC_MMODE range
@@ -315,11 +315,13 @@ config EXAMPLES_FOC_FMODE config EXAMPLES_FOC_MMODE int "Motor control mode" default 2 - range 1 3 + range 1 5 ---help--- 1 - torque control 2 - velocity control 3 - position control + 4 - align only + 5 - ident only config EXAMPLES_FOC_OPENLOOP_Q int "FOC open-loop Vq/Iq setting [x1000]"
[examples] n_cubes.py appears to need more multipoints iterations Even with increased multipoints iterations, sometimes cubes fall through the floor. Sliding appears to be problematic for Bullet's convex-convex algorithm. But it seems more robust with these values.
@@ -11,6 +11,12 @@ import siconos.numerics as Numerics import random +import siconos +options = siconos.mechanics.collision.bullet.SiconosBulletOptions() +options.worldScale = 1.0 +options.perturbationIterations = 7 +options.minimumPointsPerturbationThreshold = 7 + n_cube=3 n_row=2 n_col=2 @@ -104,10 +110,10 @@ with Hd...
options/posix: implement recv() and recvfrom()
@@ -84,14 +84,28 @@ int listen(int, int) { return 0; } -ssize_t recv(int, void *, size_t, int) { - __ensure(!"Not implemented"); - __builtin_unreachable(); +ssize_t recv(int sockfd, void *__restrict buf, size_t len, int flags) { + return recvfrom(sockfd, buf, len, flags, NULL, NULL); } -ssize_t recvfrom(int, void *__re...
remove supported check from parse sig algs
@@ -4915,9 +4915,17 @@ int mbedtls_ssl_parse_sig_alg_ext( mbedtls_ssl_context *ssl, MBEDTLS_SSL_DEBUG_MSG( 4, ( "received signature algorithm: 0x%x %s", sig_alg, mbedtls_ssl_sig_alg_to_str( sig_alg ) ) ); - - if( ! mbedtls_ssl_sig_alg_is_supported( ssl, sig_alg ) ) +#if defined(MBEDTLS_SSL_PROTO_TLS1_2) + if( +#if defi...
dm-hook: rename %dm-inbox
|^ %+ poke-our:pass %graph-store %+ update:cg:gra now.bowl - :+ %add-graph [our.bowl %inbox] + :+ %add-graph [our.bowl %dm-inbox] [graph `%graph-validator-dm %.n] :: ++ dm-parser =+ !<(=update:store vase) ?+ -.q.update !! %add-nodes - ?> ?=([@ %inbox] resource.q.update) + ?> ?=([@ %dm-inbox] resource.q.update) =^ cards...
OpenCanopy: Never X-offset the first letter of a label
@@ -650,13 +650,8 @@ GuiGetLabel ( InfoPairs = (CONST BMF_KERNING_PAIR **)&TextInfo->Chars[StringLen]; TargetCharX = 0; - if (TextInfo->Chars[0]->xoffset >= 0) { - InitialCharX = 0; - InitialWidthOffset = 0; - } else { InitialCharX = -TextInfo->Chars[0]->xoffset; InitialWidthOffset = TextInfo->Chars[0]->xoffset; - } fo...
Yan LR: Use correct variable in log message
@@ -200,7 +200,7 @@ bool YAMLLexer::addIndentation (size_t const lineIndex) { if (static_cast<long long> (lineIndex) > indents.top ()) { - ELEKTRA_LOG_DEBUG ("Add indentation %zu", column); + ELEKTRA_LOG_DEBUG ("Add indentation %zu", lineIndex); indents.push (lineIndex); return true; }
Verify opae-c tests work on hw
@@ -55,8 +55,8 @@ class open_c_p : public ::testing::TestWithParam<std::string> { system_ = test_system::instance(); system_->initialize(); system_->prepare_syfs(platform_); - invalid_device_ = test_device::unknown(); + filter_ = nullptr; ASSERT_EQ(fpgaInitialize(NULL), FPGA_OK); ASSERT_EQ(fpgaGetProperties(nullptr, &f...
fix(linux): segmentation fault on draw window with minimal size
@@ -125,7 +125,7 @@ static void X11Surface_OnResize(LCUI_Surface s, int width, int height) int depth; XGCValues gcv; Visual *visual; - if (width == s->width && height == s->height) { + if (width == s->width && height == s->height && s->ximage && s->gc) { return; } if (s->ximage) {
Fix find handle crash when sorting ObjectAddress or OriginalName columns
@@ -172,6 +172,18 @@ BEGIN_SORT_FUNCTION(Handle) } END_SORT_FUNCTION +BEGIN_SORT_FUNCTION(ObjectAddress) +{ + sortResult = uintptrcmp((ULONG_PTR)node1->HandleObject, (ULONG_PTR)node2->HandleObject); +} +END_SORT_FUNCTION + +BEGIN_SORT_FUNCTION(OriginalName) +{ + sortResult = PhCompareString(node1->ObjectNameString, nod...
Fix Regression in draft-29 TP Acceptance
@@ -386,10 +386,8 @@ QuicCryptoTlsReadExtensions( return Status; } - } else if ( - Connection->Stats.QuicVersion != QUIC_VERSION_DRAFT_29 && - (ExtType == TLS_EXTENSION_TYPE_QUIC_TRANSPORT_PARAMETERS || - ExtType == TLS_EXTENSION_TYPE_QUIC_TRANSPORT_PARAMETERS_DRAFT)) { + } else if (Connection->Stats.QuicVersion != QUI...
Fix incorrect image paths in HOME.md
@@ -25,7 +25,7 @@ IO operations to underlying block device. A system administrator can manage cache instances via Intel CAS CLI management utility called "casadm". -![OCF Linux deployment view](deployment-1.png) +![OCF Linux deployment view](img/deployment-1.png) Another example of OCF usage is user space block level c...
nrf/drivers/bluetooth/ble_drv: Don't handle non-events. When there is a non-BLE event (sd_evt_get), the ble_evt_handler is invoked anyway even if it returns NRF_ERROR_NOT_FOUND.
@@ -1071,12 +1071,24 @@ void SWI2_EGU2_IRQHandler(void) { sd_evt_handler(evt_id); } - uint32_t err_code; uint16_t evt_len = sizeof(m_ble_evt_buf); - do { - err_code = sd_ble_evt_get(m_ble_evt_buf, &evt_len); + while (1) { + uint32_t err_code = sd_ble_evt_get(m_ble_evt_buf, &evt_len); + if (err_code != NRF_SUCCESS) { + ...
Add stlink-tools link for Debian and Ubuntu Add stlink-tools link for Debian and Ubuntu
@@ -28,8 +28,9 @@ Windows users can [download v1.3.0](https://github.com/texane/stlink/releases/ta Mac OS X users can install from [homebrew](http://brewformulas.org/Stlink) or [download v1.3.0](https://github.com/texane/stlink/releases/tag/1.3.0) from the releases page. -For Debian Linux based distributions there is n...
graph-threads: delete thread gets rid of metadata properly
(poke-our %graph-store %graph-update !>([%0 now.bowl %remove-graph rid])) ;< ~ bind:m (poke-our %graph-push-hook %push-hook-action !>([%remove rid])) + ;< ~ bind:m + %+ poke-our %metadata-hook + metadata-hook-action+!>([%remove (en-path:resource rid)]) + ;< ~ bind:m + %+ poke-our %metadata-store + :- %metadata-action +...
Bump minimum tools version
@@ -3,7 +3,7 @@ if (NOT DEFINED BLIT_ONCE) set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_EXTENSIONS OFF) - set(BLIT_MINIMUM_TOOLS_VERSION "0.7.0") + set(BLIT_MINIMUM_TOOLS_VERSION "0.7.1") find_package(PythonInterp 3.6 REQUIRED)
HV: remove dummy DRHD in template platform acpi info The DRHD MACROs are needed only when CONFIG_DMAR_PARSE_ENABLED set to n, whereas the template platform_acpi_info.h is prepared for generic boards that usually CONFIG_DMAR_PARSE_ENABLED is set to y, so remove these dummy DRHD info MACROs. Acked-by: Eddie Dong
#define WAKE_VECTOR_32 0UL #define WAKE_VECTOR_64 0UL -/* DRHD of DMAR */ -#define DRHD_COUNT 0U - -#define DRHD0_DEV_CNT 0U -#define DRHD0_SEGMENT 0U -#define DRHD0_FLAGS 0U -#define DRHD0_REG_BASE 0UL -#define DRHD0_IGNORE false -#define DRHD0_DEVSCOPE0_BUS 0U -#define DRHD0_DEVSCOPE0_PATH 0U -#define DRHD0_DEVSCOPE1...
added configure arguments to --version output
@@ -140,6 +140,39 @@ display_version (void) fprintf (stdout, "GoAccess - %s.\n", GO_VERSION); fprintf (stdout, "%s: http://goaccess.io\n", INFO_MORE_INFO); fprintf (stdout, "Copyright (C) 2009-2016 by Gerardo Orellana\n"); + fprintf (stdout, "\nBuild configure arguments:\n"); +#ifdef DEBUG + fprintf (stdout, " --enable...
Move schema to the beginning of the file
#!/usr/bin/env nodejs -// This script generates markdown files for libdill documentation. -// These are further processed to generate both UNIX and HTML man pages. +/* + +This script generates markdown files for libdill documentation. +These are further processed to generate both UNIX and HTML man pages. + +Schema: + +...
Shrink an expr tree field to 16 bits with padding after.
@@ -63,7 +63,7 @@ typedef struct lily_ast_ { uint16_t args_collected; union { - uint32_t pile_pos; + uint16_t pile_pos; /* For raw integers or booleans, this is the value to write to the bytecode. */ int16_t backing_value; @@ -71,6 +71,8 @@ typedef struct lily_ast_ { uint16_t literal_reg_spot; }; + uint16_t pad; + unio...
Fix the relative link to opensrc/hsa-runtme in the rocr-runtime directory
@@ -217,13 +217,17 @@ if [[ "$AOMP_VERSION" == "13.1" ]] || [[ $AOMP_MAJOR_VERSION -gt 13 ]] ; then # build_rocr.sh expects directory rocr-runtime which is a subdir of hsa-runtime # Link in the open source hsa-runtime as "src" directory if [ -d $AOMP_REPOS/hsa-runtime ] ; then + if [ ! -L $AOMP_REPOS/rocr-runtime/src ]...
Set the texture unpack alignment to 1
@@ -348,6 +348,9 @@ public: if (dw>mPixelWidth/2) { x0 = 0; + if ( (mPixelWidth*pw) & 0x03 ) + copy_required = true; + else dw = mPixelWidth; } else @@ -390,6 +393,7 @@ public: { #ifndef NME_GLES glPixelStorei(GL_UNPACK_ROW_LENGTH, mSurface->Width()); + glPixelStorei(GL_UNPACK_ALIGNMENT, 1); #endif glTexSubImage2D(GL_T...
ia32: Adding PS/2 keyboard detection in _init.S to prevent deadlock during A20 line unmasking
@@ -56,6 +56,11 @@ _init_plo: /* Store system page address in esi register */ movl (%eax), %esi + /* Test presence of PS/2 keyboard */ + inb $0x64, %al + cmp $0xff, %al + jz _init_setupPaging + /* Disable A20 line mask */ call _init_empty8042 movb $0xd1, %al
Set maximal size of CIPSEND to 2048 (supported by ESP)
* to optimize speed performance of sending data */ #ifndef ESP_CFG_CONN_MAX_DATA_LEN -#define ESP_CFG_CONN_MAX_DATA_LEN (2048/4) +#define ESP_CFG_CONN_MAX_DATA_LEN 2048 #endif /**
api: Enable COMPARE_AND_WRITE command Since the runner has already supported the CAW command, enable it. If the MAXIMUM COMPARE AND WRITE LENGTH field, which in "SCSI Commands Reference Manual" the section "Block Limits VPD Page (B0h)" set to zero, means disable the CAW command.
@@ -493,6 +493,19 @@ finish_page83: val16 = htobe16(0x3c); memcpy(&data[2], &val16, 2); + /* + * From SCSI Commands Reference Manual, section Block Limits + * VPD page (B0h) + * + * MAXIMUM COMPARE AND WRITE LENGTH: set to a non-zero value + * indicates the maximum value that the device server accepts + * in the NUMBER...
Made CLI signal handler linux specific
#include <survive.h> -#include <signal.h> static volatile int keepRunning = 1; +#ifdef __linux__ + +#include <signal.h> +#include <stdlib.h> + void intHandler(int dummy) { if(keepRunning == 0) exit(-1); keepRunning = 0; } +#endif + int main(int argc, char **argv) { +#ifdef __linux__ signal(SIGINT, intHandler); signal(S...
FIB: DVR paths are not considered L3 attached
@@ -1344,6 +1344,7 @@ fib_route_attached_cross_table (const fib_entry_t *fib_entry, */ if (ip46_address_is_zero(&rpath->frp_addr) && (~0 != rpath->frp_sw_if_index) && + !(rpath->frp_flags & FIB_ROUTE_PATH_DVR) && (fib_entry->fe_fib_index != fib_table_get_index_for_sw_if_index(fib_entry_get_proto(fib_entry), rpath->frp_...