message
stringlengths
6
474
diff
stringlengths
8
5.22k
chat: hotfix new message indicator
@@ -157,7 +157,7 @@ export class ChatWindow extends Component<ChatWindowProps, ChatWindowState> { if (!idle) { idle = true; } - } else if (idle) { + } else if (idle && (unreadCount === 0 || this.state.range.endIndex === 0)) { idle = false; } this.setState({ idle }); @@ -172,6 +172,10 @@ export class ChatWindow extends ...
Change install folder for man pages
@@ -26,7 +26,7 @@ if (A2X_FOUND) install( FILES ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${name}.${section} - DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/man/man${section} + DESTINATION ${CMAKE_INSTALL_FULL_MANDIR}/man${section} COMPONENT documentation ) endfunction()
Refactor so that varint_paramlen returns parameter length
@@ -78,8 +78,12 @@ void ngtcp2_crypto_create_nonce(uint8_t *dest, const uint8_t *iv, size_t ivlen, } } -static void inc_len_varint(size_t *len, uint64_t param) { - *len += 4 + ngtcp2_put_varint_len(param); +/* + * varint_paramlen returns the length of a single transport parameter + * which has variable integer in its p...
Added response status code to error page body. Also the error page markup is now valid according to HTML5 specification. All optional tags were omitted.
@@ -16,8 +16,12 @@ static const nxt_http_request_state_t nxt_http_request_send_error_body_state; static const char error[] = - "<html><head><title>Error</title></head>" - "<body>Error.</body></html>\r\n"; + "<!DOCTYPE html>" + "<title>Error %03d</title>" + "<p>Error %03d.\r\n"; + +/* Two %03d (4 chars) patterns are rep...
proposal: Remove keySetStringF
* @{ */ - -/** - * @brief Set a formatted string - * - * @param key the key to set the string value - * @param format NULL-terminated text format string - * @param ... more arguments - * - * @return the size of the string as set (with including 0) - */ -ssize_t keySetStringF (Key * key, const char * format, ...) -{ - v...
wireless/gs2200m: Release all blocking socket When dis-associtaion happens, the socket is destroyed. And all blocking sockets are released for that error handling can be performed.
@@ -453,6 +453,24 @@ static int usock_send_event(int fd, FAR struct gs2200m_s *priv, return _write_to_usock(fd, &event, sizeof(event)); } +/**************************************************************************** + * Name: usock_sendevent_toall + *********************************************************************...
feat(FM650):fix the error,while build the boat lib
#CC := $(CURDIR)/../../../build/usr/bin/arm-linux-gcc #AR := $(CURDIR)/../../../build/usr/bin/arm-linux-ar -CC := $CC -AR := $AR +CC := $(CC) +AR := $(AR) # Commands BOAT_RM := rm -rf
doc: update the layout of the doc
.. _build UOS from Clearlinux: Building UOS from Clear Linux -############################## +############################# This document builds on the :ref:`getting_started`, and explains how to build UOS from Clear Linux. @@ -14,7 +14,7 @@ please follow these steps in Clear Linux native: #. In Clear Linxu native, ple...
Fix ecc608 ota e2e scripts
@@ -85,7 +85,7 @@ class OtaAfrProject: OtaAfrProject.APPLICATION_VERSION_PATH = self._buildProject + '/include/aws_application_version.h' OtaAfrProject.CLIENT_CREDENTIAL_KEYS_PATH = self._buildProject + '/include/aws_clientcredential_keys.h' OtaAfrProject.OTA_CODESIGNER_CERTIFICATE_PATH = 'demos/include/aws_ota_codesig...
interface: back button works again in group feed
@@ -56,7 +56,8 @@ export function GroupFeedHeader(props) { <Box display='block'> { ( baseUrl !== historyLocation ) ? ( <Text pl="1" pr="1" cursor="pointer" onClick={() => { - let loc = locationUrl.split('/'); + let loc = + history.location.pathname.replace(`${baseUrl}`, '').split('/'); loc.pop(); loc = loc.join('/'); h...
Fix a testing function potentially not reporting an error.
@@ -171,10 +171,14 @@ class TestCase < backbone.TestCaseBase } public define assert_raises(expect: String, fn: Function()) { + var no_error = false + try: { fn() + no_error = true except Exception as ex: var e_header = error_header(ex) + if e_header != expect: { var message = """\ Assertion (raises) failed.\n \ @@ -182...
DM: add command line parameter for pSRAM dm: pSRAM: added a command line parameter "--psram" to enable pSRAM support for post-launched RTVM Added "--psram" in DM command line to enable pSRAM support for post-launched RTVM Acked-by: Wang, Yu1
@@ -145,6 +145,7 @@ usage(int code) " %*s [--vtpm2 sock_path] [--virtio_poll interval] [--mac_seed seed_string]\n" " %*s [--vmcfg sub_options] [--dump vm_idx] [--debugexit] \n" " %*s [--logger-setting param_setting] [--pm_notify_channel]\n" + " %*s [--psram]\n" " %*s [--pm_by_vuart vuart_node] <vm>\n" " -A: create ACPI...
crota: enable body detection BRANCH=none TEST=Verify on crota
#define CONFIG_ACCEL_LIS2DW12_INT_EVENT \ TASK_EVENT_MOTION_SENSOR_INTERRUPT(LID_ACCEL) +#define CONFIG_BODY_DETECTION +#define CONFIG_BODY_DETECTION_SENSOR BASE_ACCEL +#define CONFIG_BODY_DETECTION_VAR_NOISE_FACTOR 150 /* % */ +#define CONFIG_GESTURE_DETECTION +#define CONFIG_GESTURE_DETECTION_MASK BIT(CONFIG_BODY_DET...
crypto/o_fopen.c: alias fopen to fopen64. Originally fopen(3) was called from bio/bss_file.c, which performed the aliasing. Then fopen(3) was moved to o_fopen.c, while "magic" definition was left behind. It's still useful on 32-bit platforms, so pull it to o_fopen.c.
* https://www.openssl.org/source/license.html */ +# if defined(__linux) || defined(__sun) || defined(__hpux) +/* + * Following definition aliases fopen to fopen64 on above mentioned + * platforms. This makes it possible to open and sequentially access files + * larger than 2GB from 32-bit application. It does not allow...
Fix incorrect handling of multiple local commands in a single read.
@@ -316,7 +316,7 @@ local_notify_all_1(struct local_socket *s) int local_read(struct local_socket *s) { - int rc; + int rc, n; char *eol; char reply[100] = "ok\n"; const char *message = NULL; @@ -336,11 +336,13 @@ local_read(struct local_socket *s) return rc; s->n += rc; + while(s->n > 0) { eol = memchr(s->buf, '\n', s...
Fix capitalization in docs
@@ -45,7 +45,7 @@ The other interfaces available to the accelerator are ``mem``, which provides ac the ``busy`` signal, which indicates when the accelerator is still handling an instruction; and the ``interrupt`` signal, which can be used to interrupt the CPU. -Look at the examples in ``generators/rocket-chip/src/main/...
Fix build with -DID_HEAP_DEBUG
@@ -254,7 +254,7 @@ static u64 alloc_subrange(id_heap i, bytes count, u64 start, u64 end) range subrange = irange(pad(start, page_size(i)) >> page_order(i), end == infinity ? infinity : end >> page_order(i)); id_debug("heap %p, count 0x%lx, start 0x%lx, end 0x%lx, page range %R\n", - h, count, start, end, subrange); + ...
Monero auth fix
@@ -46,7 +46,7 @@ namespace MiningForce.Blockchain.Monero { Contract.Requires<ArgumentException>(!string.IsNullOrEmpty(address), $"{nameof(address)} must not be empty"); - var response = await daemon.ExecuteCmdAnyAsync<SplitIntegratedAddressResponse>( + var response = await walletDaemon.ExecuteCmdAnyAsync<SplitIntegrat...
SW: Add GZIP as capi card to detect
@@ -33,7 +33,7 @@ accel=UNKNOWN # Print usage message helper function function usage() { echo "Usage of $PROGRAM:" - echo " [-A] <accelerator> use either KU3 or FLASH_GT" + echo " [-A] <accelerator> use either GZIP, KU3 or FLASH_GT" echo " prints out a list of cards found for the type." echo " The numbers reflect /dev/...
esp32/modsocket: Convert lwip errnos to uPy ones.
#include "py/objlist.h" #include "py/objstr.h" #include "py/runtime.h" +#include "py/mperrno.h" #include "py/mphal.h" #include "py/stream.h" #include "lib/netutils/netutils.h" @@ -59,7 +60,10 @@ typedef struct _socket_obj_t { } socket_obj_t; NORETURN static void exception_from_errno(int _errno) { - // XXX add more spec...
[numerics] fix segfault
@@ -359,10 +359,10 @@ void lcp_pivot_covering_vector(LinearComplementarityProblem* problem, double* re case SICONOS_LCP_PIVOT_LEMKE: case SICONOS_LCP_PIVOT_PATHSEARCH: *info = LCP_PIVOT_RAY_TERMINATION; - DEBUG_PRINT("The pivot column is nonpositive ! We are on ray !\n" + printf("The pivot column is nonpositive ! We ar...
bbr2: Fix assertion failure
@@ -964,7 +964,8 @@ static void bbr_handle_lost_packet(ngtcp2_bbr2_cc *bbr, ngtcp2_conn_stat *cstat, } rs.tx_in_flight = pkt->tx_in_flight; - rs.lost = bbr->rst->lost - pkt->lost; + /* bbr->rst->lost is not incremented for pkt yet */ + rs.lost = bbr->rst->lost + pkt->pktlen - pkt->lost; rs.is_app_limited = pkt->is_app_...
apsupport.m4: improve mips detect For mips, we add some new CPU types: mipsisa64r6{,el}, mipsisa32r6{,el}. To add support of them and don't make the list too long, we detect mips*el and then mips*.
@@ -116,7 +116,12 @@ AC_DEFUN(AP_SUPPORTED_HOST,[ LDCMD="/opt/C/bin/cc" HOST_CPU=osd ;; - mips | mipsn32 | mips64) + mips*el) + CFLAGS="$CFLAGS -DCPU=\\\"mipsel\\\"" + supported_os="mipsel" + HOST_CPU=mipsel + ;; + mips*) CFLAGS="$CFLAGS -DCPU=\\\"mips\\\"" supported_os="mips" HOST_CPU=mips @@ -145,11 +150,6 @@ AC_DEFU...
Use Master Branch for Readme Shields
@@ -6,7 +6,7 @@ protocol. It is cross platform, written in C and designed to be a general purpos > **Important** The MsQuic library, as well as the protocol itself, is still a work in progress. Version 1 is not yet finalized and may continue to experience breaking changes until it is finalized. -[![Build Status](https:...
Possible fix to windows dynamic override calling register onexit directly
@@ -261,14 +261,18 @@ static int mi_register_atexit(exit_list_t* list, cbfun_t* fn) { } // Register a global `atexit` function -static int mi__crt_atexit(cbfun_t* fn) { +static int mi_atexit(cbfun_t* fn) { return mi_register_atexit(&atexit_list,fn); } -static int mi__crt_at_quick_exit(cbfun_t* fn) { +static int mi_at_q...
apps/examples/reboot_reason_test : Add Prefetch Abort Test For testing prefetch abort reboot reason, make usagefault intentionally.
#include <tinyara/config.h> #include <stdio.h> -#ifdef CONFIG_MM_ASSERT_ON_FAIL #include <stdlib.h> -#endif #ifdef CONFIG_WATCHDOG #include <fcntl.h> #include <sys/ioctl.h> @@ -82,6 +80,7 @@ static void display_reboot_reason_option(void) #ifdef CONFIG_WATCHDOG printf("\t-Press W or w : Watchdog Reset Test\n"); #endif +...
Untidy Source: Ignore non-existing GTest directory
@@ -10,4 +10,4 @@ fi cd "$SOURCE" -$($CLANG_TIDY -fix-errors -checks="readability-braces-around-statements" `find . -name '*.[ch]' -or -name '*.[ch]pp' -or -name '*.[ch].in' | egrep -v "^(./src/tools/gen|./tests/gtest-1.7.0)"`) +$($CLANG_TIDY -fix-errors -checks="readability-braces-around-statements" `find . -name '*.[...
[buffer] fix duplicate assert and comment this originates from for no apparent reason
@@ -131,10 +131,8 @@ char* buffer_string_prepare_append(buffer *b, size_t size) { if (buffer_string_is_empty(b)) { return buffer_string_prepare_copy(b, size); } else { - size_t req_size = b->used + size; - /* not empty, b->used already includes a terminating 0 */ - force_assert(req_size >= b->used); + size_t req_size =...
Fixed VS build for text example
<AdditionalDependencies>32blit.lib;32blit-sdl.lib;SDL2.lib;SDL2main.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies> <AdditionalLibraryDirectories>$(OutputPath);$(SolutionDi...
hard stop on second kill attempt
void unix_sig_stop( int signo ) { + if( gconf->is_running == 0 ) { + exit( 1 ); + } + gconf->is_running = 0; log_info( "Shutting down..." ); } void unix_sig_term( int signo ) { + if( gconf->is_running == 0 ) { + exit( 1 ); + } + gconf->is_running = 0; }
update L to match orcaJS
@@ -576,7 +576,7 @@ BEGIN_OPERATOR(loop) Glyph buff[Glyphs_index_count]; Glyph* gs = gbuffer + y * width + x + 1; for (Usz i = 0; i < len; ++i) { - Usz offset = (i + rate) % len; + Usz offset = (i + len - rate) % len; buff[i] = gs[offset]; } for (Usz i = 0; i < len; ++i) {
modify objective printout to include inaccurate warning
@@ -641,7 +641,15 @@ static void print_footer(const ScsData *d, const ScsCone *k, ScsSolution *sol, scs_printf("-"); } scs_printf("\n"); - scs_printf("objective = %.6f\n", info->pobj); + scs_printf("objective = %.6f", info->pobj); + switch (info->status_val) { + case SCS_SOLVED_INACCURATE: + case SCS_UNBOUNDED_INACCURA...
doc: added news
@@ -118,7 +118,7 @@ you up to date with the multi-language support provided by Elektra. ## Documentation -- <<TODO>> +- Added decision for array concept of warnings. _(Michael Zronek)_ - <<TODO>> - <<TODO>>
Updating man page for funcslower
.SH NAME fileslower \- Trace slow kernel or user function calls. .SH SYNOPSIS -.B fileslower [\-h] [\-p PID] [-m MIN_MS] [-u MIN_US] [-a ARGUMENTS] [-T] [-t] [-v] function [function ...] +.B fileslower [\-hf] [\-p PID] [\-U | \-K] [-m MIN_MS] [-u MIN_US] [-a ARGUMENTS] [-T] [-t] [-v] function [function ...] .SH DESCRIP...
improved static code
@@ -14763,6 +14763,7 @@ void free_level(s_level *lv) void unload_level() { s_model *temp; + int i; kill_all(); unload_background(); @@ -14824,7 +14825,7 @@ void unload_level() blockade = 0; level_completed = 0; tospeedup = 0; // Reset so it sets to normal speed for the next level - reached[0] = reached[1] = reached[2] ...
cmake: execute git from src directory Thanks Eliot....
@@ -36,6 +36,7 @@ macro(add_vpp_packaging name) # extract version from git execute_process( COMMAND git describe --long --match v* + WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} OUTPUT_VARIABLE VER OUTPUT_STRIP_TRAILING_WHITESPACE )
Add to trace output
@@ -534,6 +534,7 @@ static ssl_trace_tbl ssl_sigalg_tbl[] = { {TLSEXT_SIGALG_ecdsa_secp384r1_sha384, "ecdsa_secp384r1_sha384"}, {TLSEXT_SIGALG_ecdsa_secp521r1_sha512, "ecdsa_secp521r1_sha512"}, {TLSEXT_SIGALG_ecdsa_sha224, "ecdsa_sha224"}, + {TLSEXT_SIGALG_ed25519, "ed25519"}, {TLSEXT_SIGALG_ecdsa_sha1, "ecdsa_sha1"}, ...
Integrate Shay's more precise statement
@@ -40,13 +40,14 @@ risk of denial of service attacks. SCRAM adds mis-use resistance for both kinds of issues. -When using SCRAM, a recipient simply must correctly compute the message -authentication code in order to decrypt it. There is no benefit to skipping -this step. If an application does fail to check the result...
add Patreon page
@@ -64,6 +64,10 @@ in this directory. This file can also serve as an include file for `httpd.conf`. Support ------- +#### Support mod_auth_openidc yourself +You now have the opportunity to support mod_auth_openidc development/continuity and to express your gratitude as a happy user! +See: https://www.patreon.com/mod_au...
mqueue: use to DEBUGASSERT to cover some param check for the speed improve
@@ -117,6 +117,7 @@ int file_mq_send(FAR struct file *mq, FAR const char *msg, size_t msglen, /* Now allocate the message. */ mqmsg = nxmq_alloc_msg(); + DEBUGASSERT(mqmsg != NULL); /* Check if the message was successfully allocated */ @@ -129,8 +130,7 @@ int file_mq_send(FAR struct file *mq, FAR const char *msg, size_...
internal LAPACK C Interface
@@ -93,6 +93,7 @@ plasma-installer_%{version}/setup.py \ --blaslib="-L${OPENBLAS_LIB} -lopenblas" \ --cblaslib="-L${OPENBLAS_LIB} -lopenblas" \ --lapacklib="-L${OPENBLAS_LIB} -lopenblas" \ + --lapclib="-L${OPENBLAS_LIB} -lopenblas" %endif %if %{compiler_family} == intel --cflags="${RPM_OPT_FLAGS} ${PIC_OPT}" \ @@ -100,...
gopts: improve test error
@@ -66,7 +66,11 @@ static void run_test (const char ** argv, const char ** envp) } } while (!WIFEXITED (status) && !WIFSIGNALED (status)); - exit_if_fail (!WIFSIGNALED (status), "child process was killed by signal"); + if (WIFSIGNALED (status)) + { + printf ("child process was killed by signal: %d", WTERMSIG (status));...
Yan LR: Add restriction about duplicate keys
@@ -227,6 +227,17 @@ The plugin should, but does not, limit the amount . These restrictions would make it less easy to crash the parser, by feeding it unrestricted data. +### Duplicate Keys + +Currently the plugin parses the input + +```yaml +duplicate: one +duplicate: two +``` + +storing the value `two`. According to ...
Docker: Install `git` on Ubuntu Xenial
@@ -17,6 +17,7 @@ RUN apt-get update && apt-get -y install \ tclcl-dev \ libaugeas-dev \ libyajl-dev \ + git \ libgit2-dev \ libboost-all-dev \ libssl-dev \
[WIP]Fix incorrect assertion
@@ -103,7 +103,7 @@ static inline bool is_lp_solution_parallel(double *sol, int npar) double tmp; tmp = 0.0f; for (i = 0; i<npar+1; i++) { - tmp += sol[i],i; + tmp += sol[i]; } if (tmp == 0.0f) return true; @@ -145,7 +145,7 @@ void mark_parallel_sccs(int *colour, PlutoProg* prog) pluto_transformations_pretty_print(prog...
in_random: use the new API to generate a random seed Simplify the random seed generation by using flb_random_bytes() instead of trying to read entropy sources manually.
#include <fluent-bit/flb_config.h> #include <fluent-bit/flb_error.h> #include <fluent-bit/flb_pack.h> +#include <fluent-bit/flb_random.h> #include <msgpack.h> #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> -#ifdef _WIN32 -# include <event2/util.h> -#else #include <fcntl.h> -#endif #...
removed no-space rule from CsubType causing backward incompatibility with some packs
<xs:restriction base="xs:string"> <xs:minLength value="0"/> <xs:maxLength value="32"/> - <xs:pattern value="\S(.*\S)?"></xs:pattern> + <!-- <xs:pattern value="\S(.*\S)?"></xs:pattern> not backward compatible --> </xs:restriction> </xs:simpleType>
benchmark: decreasing default mimnimum runtime to 50 ms
/* - * Copyright (c) 2007 - 2020 Joseph Gaeddert + * Copyright (c) 2007 - 2021 Joseph Gaeddert * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -85,7 +85,7 @@ double calculate_execution_time(struct rusage,...
Fix: grammar correction
@@ -15,7 +15,7 @@ Notes - It is not a real-time stack. One write operation might take much longer than another. - For now, it does not detect or handle bad blocks. - SPIFFS is able to reliably utilize only around 75% of assigned partition space. - - When the filesystem is running out of space, the garbage collector is ...
python/plugins: added file, line, mountpoint and configfile to error handling inf get() and set()
@@ -79,10 +79,14 @@ class ElektraDNSPlugin(object): else: index = "#" + str(c) - parentKey.setMeta(f"warnings/{index}/number", "101") - parentKey.setMeta(f"warnings/{index}/description", "Could not validate key") + parentKey.setMeta(f"warnings/{index}/number", "C03200") + parentKey.setMeta(f"warnings/{index}/descriptio...
And man page documentation for them.
@@ -1305,6 +1305,12 @@ Like refuse, but ignores local data and refuses the query. \h'5'\fIalways_nxdomain\fR Like static, but ignores local data and returns nxdomain for the query. .TP 10 +\h'5'\fIalways_nodata\fR +Like static, but ignores local data and returns nodata for the query. +.TP 10 +\h'5'\fIalways_deny\fR +Li...
[kernel] fix bug with tangent coefficient of restitution and 2D nslaw_size
@@ -1361,7 +1361,7 @@ void MoreauJeanOSI::_NSLEffectOnFreeOutput::visit(const NewtonImpactFrictionNSL& if(nslaw.et() > 0.0) { osnsp_rhs(1) += nslaw.et() * _inter.y_k(_osnsp.inputOutputLevel())(1); - if(_inter.nonSmoothLaw()->size()>=2) + if(_inter.nonSmoothLaw()->size()>2) { osnsp_rhs(2) += nslaw.et() * _inter.y_k(_osn...
Add missing error code for join process and insecure variable to neighbors.
@@ -259,6 +259,7 @@ enum { ERR_BUFFER_OVERFLOW = 0x44, // OSCOAP buffer overflow detected {code location {0}} ERR_REPLAY_FAILED = 0x45, // OSCOAP replay protection failed ERR_DECRYPTION_FAILED = 0x46, // OSCOAP decryption and tag verification failed + ERR_ABORT_JOIN_PROCESS = 0x47, // Aborted join process {code locatio...
Update configure.bat (USAGE): Add -E -e
@@ -119,11 +119,15 @@ goto End echo Missing ^<board-name^>:^<config-name^> argument :ShowUsage -echo USAGE: %0 [-d] [-b|f] [-a ^<app-dir^>] ^<board-name^>:^<config-name^> +echo USAGE: %0 [-d] [-E] [-e] [-b|f] [-a ^<app-dir^>] ^<board-name^>:^<config-name^> echo %0 [-h] echo\nWhere: echo -d: echo Enables debug output +e...
[scons] don't link pthread twice in --whole-archive workaround
@@ -244,6 +244,7 @@ fullstatic_libs = GatherLibs(env, fullstaticlib) fullstatic_linkflags = [staticenv['LINKFLAGS'], '-static'] if (('pthread' in fullstatic_libs) or ('pcre' in fullstatic_libs)) and (platform.system() == 'Linux'): fullstatic_linkflags += ['-Wl,--whole-archive','-lpthread','-Wl,--no-whole-archive'] + fu...
Support for hotplug cpu cases in percpu array sizing The kernel uses number of possible cpus to size the leaf, not the num of online cpus. Fixup the python side appropriately. Update: use num_possible_cpus() helper instead
@@ -21,6 +21,7 @@ import os from .libbcc import lib, _RAW_CB_TYPE from .perf import Perf from .utils import get_online_cpus +from .utils import get_possible_cpus from subprocess import check_output BPF_MAP_TYPE_HASH = 1 @@ -561,7 +562,7 @@ class PerCpuHash(HashTable): self.reducer = kwargs.pop("reducer", None) super(Pe...
kaluga: load the platform facts on arch_startup
@@ -88,17 +88,50 @@ static errval_t fvp_startup(void) static errval_t apm88xxxx_startup(void) { + errval_t err; + + err = skb_execute_query("[plat_apm88xxxx]."); + if(err_is_fail(err)){ + USER_PANIC_SKB_ERR(err, "Additional device db file 'plat_apm88xxxx' not loaded."); + } + return armv8_startup_common(); } static err...
socket: sadly uv_hrtime isn't based on the unix epoch
@@ -62,9 +62,9 @@ static inline uint64_t h2o_now(h2o_loop_t *loop) return uv_now(loop); } -static inline uint64_t h2o_now_nanosec(h2o_evloop_t *loop) +static inline uint64_t h2o_now_nanosec(h2o_loop_t *loop) { - return uv_hrtime(); + return uv_now(loop) * 1000000; } inline void h2o_timer_init(h2o_timer_t *timer, h2o_ti...
Add workaround for threads remaining suspended when closing thread stack dialog
@@ -261,9 +261,12 @@ VOID DestroyThreadStackNode( _In_ PPH_STACK_TREE_ROOT_NODE Node ) { - PhClearReference(&Node->TooltipText); - PhClearReference(&Node->IndexString); - PhClearReference(&Node->SymbolString); + if (Node->TooltipText) + PhDereferenceObject(Node->TooltipText); + if (Node->IndexString) + PhDereferenceObj...
[hardware] Remove touching the `modelsim.ini` file
@@ -52,7 +52,7 @@ build: bender lib ${buildpath}/${dpi_library}/mempool_dpi.so lib: mkdir -p ${buildpath} mkdir -p ${buildpath}/${library} - cd ${buildpath} && questa${questa_version} vlib work && chmod +w modelsim.ini && questa${questa_version} vmap work work + cd ${buildpath} && questa${questa_version} vlib work && q...
apps/testcase/kernel: refactoring on tc_pthread_pthread_setschedprio tc_pthread_pthread_setschedprio's main API to test is pthread_setschedprio. It is a syscall API so that we don't need to cover !CONFIG_BUILD_PROTECTED. This commit removes that conditional and refactor some operation.
#include <stdio.h> #include <stdlib.h> #include <string.h> +#include <sched.h> +#include <pthread.h> #include <errno.h> #include <sys/types.h> #include "../../../../../os/kernel/group/group.h" @@ -134,25 +136,22 @@ static void *do_nothing_thread(void *param) * @return :void* */ -#if !defined(CONFIG_BUILD_PROTECTED) sta...
websocket: use h2o_mem_alloc() in send_callback(), and freed when on_write_complete()
@@ -57,12 +57,22 @@ static void on_recv(h2o_socket_t *sock, const char *err) static void on_write_complete(h2o_socket_t *sock, const char *err) { h2o_websocket_conn_t *conn = sock->data; + h2o_iovec_t *buf; + size_t i; if (err != NULL) { on_close(conn); return; } assert(conn->_write_buf.cnt == 0); + for (i = 0; i < siz...
i8sak: Adds option to assoc command -t to specify how long to wait for a response from the Coordinator
@@ -83,6 +83,7 @@ void i8sak_assoc_cmd(FAR struct i8sak_s *i8sak, int argc, FAR char *argv[]) struct ieee802154_assoc_req_s assocreq; struct wpanlistener_eventfilter_s filter; FAR struct ieee802154_pandesc_s *pandesc; + struct ieee802154_set_req_s setreq; bool retry = false; int maxretries = 0; int retrycnt; @@ -92,6 +...
nimble/ll: Fix regression on legacy connect Without this patch we will get assert on legacy connect
@@ -2940,7 +2940,7 @@ ble_ll_init_rx_pkt_in(uint8_t pdu_type, uint8_t *rxbuf, * Let's take the reference for handover to LL. * There shall be one more, if not something went very wrong */ - if (!ble_ll_scan_aux_data_unref(aux_data)) { + if (aux_data && !ble_ll_scan_aux_data_unref(aux_data)) { BLE_LL_ASSERT(0); }
Add header compatibly warnings for C++ bindings
@@ -29,7 +29,7 @@ LINKER_LIBS_EXT= # optimization level. OPTIMIZATION=-O2 -march=native # Warnings... i.e. -Wpedantic -Weverything -Wno-format-pedantic -WARNINGS= -Wall -Wextra -Wno-missing-field-initializers -Wpedantic +WARNINGS= -Wall -Wextra -Wno-missing-field-initializers -Wpedantic -Wc++-compat # any extra include...
fs/lustre-client: incorporate updated tarball naming convention
@@ -64,7 +64,7 @@ BuildRequires: kernel-abi-whitelists %undefine with_zfs %endif -%{!?version: %global version 2.12.8} +%{!?version: %global version 2.12.8_6_g5457c37} %if 0%{?suse_version} %{!?kver: %global kver %(readlink /usr/src/linux | sed 's/linux-//' | sed 's/$/-default/')} %else
pybricks.hubs.MoveHub: refactor busy wait Ensure we always call MICROPY_EVENT_POLL_HOOK, and reduce code size using a dedicated function to wait. Fixes
#define BYTE_ACCESS(r) (*(volatile uint8_t *)&(r)) -typedef struct { - mp_obj_base_t base; -} hubs_MoveHub_IMU_obj_t; +// Wait for spi operation to complete +static void motion_spi_wait() { + do { + while (!(SPI1->SR & SPI_SR_RXNE)) { + MICROPY_EVENT_POLL_HOOK; + } + MICROPY_EVENT_POLL_HOOK; + } while (SPI1->SR & SPI_S...
loopback:fix delete to check interface class
@@ -838,25 +838,18 @@ int vnet_delete_loopback_interface (u32 sw_if_index) { vnet_main_t *vnm = vnet_get_main (); - vnet_sw_interface_t *si; - u32 hw_if_index; - vnet_hw_interface_t *hw; - u32 instance; if (pool_is_free_index (vnm->interface_main.sw_interfaces, sw_if_index)) return VNET_API_ERROR_INVALID_SW_IF_INDEX; -...
Added code comments to HTTP server
@@ -306,7 +306,14 @@ prepare_dynamic_headers(http_state_t* hs, const char* uri) { } } - + /* + * Process with content-length response header + * + * In case request does not include SSI parsing, + * script has known final content length. + * + * Include length in header output + */ hs->dyn_hdr_strs[2] = NULL; /* No con...
Testing: print more diagnostics
@@ -2770,10 +2770,11 @@ int main (int argc, char * argv[]) } - printf (" %30s %30s %30s\n", "bitsPerValue", "error(optimizeScaleFactor=0)", "error(optimizeScaleFactor=1)"); + printf (" %30s %30s %30s %s\n", "bitsPerValue", "error(optimizeScaleFactor=0)", "error(optimizeScaleFactor=1)", "ratio"); for (ibitsPerValue = 0;...
docs said we create a blinn shader when it's now phong
@@ -14,6 +14,6 @@ The original intention of the attribute is to preserve the material assignment w - `shop_materialpath` - detail|primitive string -In a typical Houdini workflow, materials are assigned through the `shop_materialpath` attribute. When an asset outputs geometries that contain Houdini materials, some basic...
Fix: invoking x509_name_cannon improperly
@@ -219,8 +219,8 @@ static int x509_name_ex_i2d(const ASN1_VALUE **val, unsigned char **out, if (ret < 0) return ret; ret = x509_name_canon(a); - if (ret < 0) - return ret; + if (!ret) + return -1; } ret = a->bytes->length; if (out != NULL) {
Now sending on all frequencies correctly, major refactor, fixed payload to get valid CRC
int main(void) { printf("\r\ndemo app\n"); - char name[] = "USERLAND"; - char data[] = "aaaa"; - char tx[] = "1"; + char name[] = "AAAAAAAAAAAAAAAAAAAA"; + char data[] = "42"; + //char tx[] = "1"; printf("return for ble_adv_set_power %d\r\n", ble_adv_set_txpower(0)); printf("return for ble_adv_set_interval %d\r\n", ble...
utest: nicer output
@@ -52,7 +52,7 @@ int main(int argc, char* argv[]) bool good = (num_tests_pass == num_tests_run); - debug_printf(good ? DP_INFO : DP_ERROR, "%s: \t%d/%d passed.\n", argv[0], num_tests_pass, num_tests_run); + debug_printf(good ? DP_INFO : DP_ERROR, "%20s: %2d/%2d passed.\n", argv[0], num_tests_pass, num_tests_run); exit...
Document sys startup/shutdown functions.
@@ -660,7 +660,9 @@ void TCOD_sys_update_char(int asciiCode, int fontx, int fonty, TCOD_image_t img, charcols[asciiCode]=pink; TCOD_sys_set_dirty_character_code(asciiCode); } - +/** + * Older startup function, mostly called from TCOD_sys_init. + */ void TCOD_sys_startup(void) { if (has_startup) return; #ifndef NDEBUG @...
Actor set frame using union type
@@ -11,17 +11,29 @@ const fields = [ { key: "frame", label: l10n("FIELD_ANIMATION_FRAME"), - type: "number", + type: "union", + types: ["number", "variable", "property"], + defaultType: "number", min: 0, max: 25, - defaultValue: 0 - } + defaultValue: { + number: 0, + variable: "LAST_VARIABLE", + property: "$self$:frame...
Allow cell-centered data for coloring/scaling glyphs.
@@ -140,6 +140,9 @@ vtkVisItGlyph3D::~vtkVisItGlyph3D() // Jeremy Meredith, Fri Aug 23 12:01:38 EDT 2013 // Added back the original full frame correction for non-vector glyphs. // +// Kathleen Biagas, Thu May 30 12:15:07 PDT 2019 +// Allow cell-centered data for coloring/scaling. +// // ********************************...
Fix style following review comments
@@ -109,12 +109,14 @@ mbedtls_mpi_uint mbedtls_mpi_core_sub( mbedtls_mpi_uint *d, const mbedtls_mpi_uint *r, size_t n ) { - mbedtls_mpi_uint c = 0, t, z; + mbedtls_mpi_uint c = 0; for( size_t i = 0; i < n; i++ ) { - z = ( l[i] < c ); t = l[i] - c; - c = ( t < r[i] ) + z; d[i] = t - r[i]; + mbedtls_mpi_uint z = ( l[i] <...
Fix resulting clang warnings;
@@ -95,7 +95,7 @@ static inline void debug_stats(strbuf_t *s) { if (s->debug) { fprintf(stderr, "strbuf(%p) reallocs: %d, length: %d, size: %d\n", - s, s->reallocs, s->length, s->size); + (void*) s, s->reallocs, s->length, s->size); } } @@ -169,7 +169,7 @@ void strbuf_resize(strbuf_t *s, int len) if (s->debug > 1) { fp...
zephyr/drivers/cros_shi/cros_shi_it8xxx2.c: Format with clang-format BRANCH=none TEST=none
@@ -45,8 +45,8 @@ struct cros_shi_it8xxx2_cfg { /* Max data size for a version 3 request/response packet. */ #define SPI_MAX_REQUEST_SIZE SPI_RX_MAX_FIFO_SIZE -#define SPI_MAX_RESPONSE_SIZE (SPI_TX_MAX_FIFO_SIZE - \ - EC_SPI_PREAMBLE_LENGTH - EC_SPI_PAST_END_LENGTH) +#define SPI_MAX_RESPONSE_SIZE \ + (SPI_TX_MAX_FIFO_S...
py/builtinimport: Adjust if-block order in find_file to clean up #if's.
@@ -101,13 +101,7 @@ STATIC mp_import_stat_t find_file(const char *file_str, uint file_len, vstr_t *d mp_obj_t *path_items; mp_obj_list_get(mp_sys_path, &path_num, &path_items); - if (path_num == 0) { -#endif - // mp_sys_path is empty, so just use the given file name - vstr_add_strn(dest, file_str, file_len); - return ...
Rework jenkins test to call hls memcopy script file.
@@ -56,20 +56,10 @@ function test_hls_memcopy() mytest="./actions/hls_memcopy" echo "TEST HLS Memcopy on Accel: $accel[$card] ..." - FUNC=$my_test/sw/snap_memcopy -C $card -x - for i in {1..10}; do - size=`d -A n -t d -N 3 /dev/urandom |tr -d ' '` - dd if=/dev/urandom bs=${size} count=1 -of=/tmp/snap_test.in - cmd="${F...
net/devif: initialize d_len to 0 before polling connections
@@ -647,6 +647,10 @@ static int devif_poll_connections(FAR struct net_driver_s *dev, { int bstop = false; + /* Reset device buffer length */ + + dev->d_len = 0; + /* Traverse all of the active packet connections and perform the poll * action. */
fix slider color looks better
@@ -82,8 +82,8 @@ class GenerateSlider: cv2.polylines(im, [curve_pos], False, (*self.slideroverride, 200), int((self.radius-8)*2*self.scale), cv2.LINE_AA) # make shadow color effect - for c in range(4, int(self.radius), 2): - coefficient = c / self.radius + for c in range(4, int(self.radius), 1): + coefficient = max(0,...
Send IHU over unicast when unicast is true. DTLS has recently changed to disallow unprotected IHU, so we now need to send IHU over unicast.
@@ -1669,7 +1669,8 @@ send_ihu(struct neighbour *neigh, struct interface *ifp) send_rtt_data = 0; } - buffer_ihu(&ifp->buf, ifp, rxcost, interval, neigh->address, + buffer_ihu((ifp->flags & IF_UNICAST) != 0 ? &neigh->buf : &ifp->buf, + ifp, rxcost, interval, neigh->address, send_rtt_data, neigh->hello_send_us, time_us(...
expand circle appearance time for late clicks
@@ -361,7 +361,7 @@ class HitObjectManager: self.hitobject[i][1] -= self.interval if self.hitobject[i][0] == self.IS_CIRCLE or self.hitobject[i][0] == self.IS_CIRCLESLIDER: circle_index -= 1 - if self.hitobject[i][1] < -self.interval * 2: + if self.hitobject[i][1] < -self.interval * 4: # for late click del self.prepare...
de-forky-fying comment again, 2st step
@@ -437,22 +437,22 @@ static void comment_vis(t_gobj *z, t_glist *glist, int vis) than complying to a Pd's assumption about every visible object having an rtext (thus preventing canvas_doclick() from sending garbage warnings). LATER revisit. */ -#if FORKY_VERSION < 37 +/* #if FORKY_VERSION < 37 rtext_new(glist, t, glis...
Update Platform.hx revert
@@ -653,7 +653,7 @@ class Platform } public function copyTemplate(from:String, to:String,doAddOutput=true) { - FileHelper.recursiveCopyTemplate(project.templatePaths, from, to, context, doAddOutput ? addOutput : null); + FileHelper.copyFileTemplate(project.templatePaths, from, to, context, doAddOutput ? addOutput : nul...
fuzz/asn1.c: Add check for ASN1_item_i2d As the potential failure of the ASN1_item_i2d, it should be better to check the return value.
@@ -317,8 +317,9 @@ int FuzzerTestOneInput(const uint8_t *buf, size_t len) ASN1_item_print(bio, o, 4, i, pctx); BIO_free(bio); } - ASN1_item_i2d(o, &der, i); + if (ASN1_item_i2d(o, &der, i) > 0) { OPENSSL_free(der); + } ASN1_item_free(o, i); } }
great pool update, part 3
@@ -13,6 +13,7 @@ sources = \ hash.c \ log.c \ main.c \ + memory.c \ netdb.c \ pool.c \ sha256.c \ @@ -45,6 +46,7 @@ headers = \ hash.h \ log.h \ main.h \ + memory.h \ netdb.h \ pool.h \ sha256.h \
Use newline for printing debug details in rigid bodies
@@ -222,7 +222,15 @@ int rigid_bodies_render(RigidBodies *rigid_bodies, return -1; } - snprintf(text_buffer, 256, "id: %zd", id); + snprintf(text_buffer, 256, + "id: %zd\n" + "p:(%.2f, %.2f)\n" + "v:(%.2f, %.2f)\n" + "m:(%.2f, %.2f)", + id, + rigid_bodies->bodies[id].x, rigid_bodies->bodies[id].y, + rigid_bodies->veloc...
nimble/ll: Fix not updating aux_received stat correctly aux_received was incorectly updated also for scan rsp received.
@@ -1680,6 +1680,10 @@ ble_ll_scan_rx_isr_start(uint8_t pdu_type, uint16_t *rxflags) } #endif + if (scansm->cur_aux_data && !scansm->scan_rsp_pending ) { + STATS_INC(ble_ll_stats, aux_received); + } + /* * If this is the first PDU after we sent the scan response (as * denoted by the scan rsp pending flag), we set a bit...
vhost-user: fix missing speculative enqueue unwind Running trex in a VM with a bad config, trex sent a bogus pack from the VM to the Virtual interface. It caused a crash.
@@ -1677,6 +1677,10 @@ vhost_user_if_input (vlib_main_t * vm, if (PREDICT_FALSE (vum->cpus[cpu_index].rx_buffers_len == 0)) { + /* Cancel speculation */ + to_next--; + n_left_to_next++; + /* * Checking if there are some left buffers. * If not, just rewind the used buffers and stop.
common/usbc/usb_sm.c: Format with clang-format BRANCH=none TEST=none
@@ -116,8 +116,8 @@ void set_state(const int port, struct sm_ctx *const ctx, * intended state to transition into. */ if (internal->exit) { - CPRINTF("C%d: Ignoring set state to 0x%pP within 0x%pP", - port, new_state, ctx->current); + CPRINTF("C%d: Ignoring set state to 0x%pP within 0x%pP", port, + new_state, ctx->curre...
test REFACTOR formatting
@@ -1008,6 +1008,7 @@ test_key_order(void **state) "}"}, {NULL, NULL} }; + ly_ctx_set_module_imp_clb(UTEST_LYCTX, module_clb, list1); mod = ly_ctx_load_module(UTEST_LYCTX, "a", NULL, NULL); assert_non_null(mod); @@ -1036,6 +1037,7 @@ test_key_order(void **state) "}"}, {NULL, NULL} }; + ly_ctx_set_module_imp_clb(UTEST_L...
SM5803: Clear Vbus source bits when setting charge mode When either inhibiting charging from happening or enabling charging, the bits in FLOW_REG1 which cause Vbus to be sourced should be cleared. BRANCH=None TEST=make -j buildall
@@ -290,23 +290,19 @@ static enum ec_error_list sm5803_set_mode(int chgnum, int mode) enum ec_error_list rv; int flow1_reg, flow2_reg; - rv = chg_read8(chgnum, SM5803_REG_FLOW1, &flow1_reg); - if (rv) - return rv; - rv = chg_read8(chgnum, SM5803_REG_FLOW2, &flow2_reg); if (rv) return rv; + /* + * Note: when charging or...
Explicitly log an invalid digest in DS data
@@ -69,6 +69,7 @@ esp_err_t esp_ds_init_data_ctx(esp_ds_data_ctx_t *ds_data) return ESP_FAIL; } s_ds_data = ds_data->esp_ds_data; + ESP_LOGD(TAG, "Using DS with key block %u, RSA length %u", ds_data->efuse_key_id, ds_data->rsa_length_bits); s_esp_ds_hmac_key_id = (hmac_key_id_t) ds_data->efuse_key_id; const unsigned rs...
Check for constant blocks before decoding info
@@ -1028,15 +1028,6 @@ astcenc_error astcenc_get_block_info( // Fetch the appropriate partition and decimation tables block_size_descriptor& bsd = *ctx->bsd; - int partition_count = scb.partition_count; - const partition_info* pt = get_partition_table(&bsd, partition_count); - pt += scb.partition_index; - - const int p...
testing alternate link for ohpc-release
@@ -53,7 +53,7 @@ the downloads section of the latest #### Architecture = (aarch64) ###### [CentOS 7.4] -* [Latest 1.3.x version of 'ohpc-release' for EL7](https://github.com/openhpc/ohpc/releases/download/v1.3.GA/ohpc-release-1.3-1.el7.aarch64.rpm) (md5sum=16ad76e74b591a3b6dcc3cb8597d3f7d) +* [Latest version of 'ohpc-...
apps/system/cu: SIGKILL is more appropriate that SIGINT in this circustance.
@@ -284,7 +284,7 @@ int cu_main(int argc, FAR char *argv[]) memset(&sa, 0, sizeof(sa)); sa.sa_handler = sigint; - sigaction(SIGINT, &sa, NULL); + sigaction(SIGKILL, &sa, NULL); while ((option = getopt(argc, argv, "l:s:eor?")) != ERROR) {