message
stringlengths
6
474
diff
stringlengths
8
5.22k
dev/stresstest.py Add confirmation prompt Asks the user whether to proceed with the stresstest or not.
@@ -11,7 +11,14 @@ import thread # TODO: write command line argument to enable/disable gummi debug mode # TODO: Options for stress test with limited time, typing speed -# TODO: Start with question whether to proceed, else exit program + + +# Ask user whether to proceed, else exit program +confirmation = input("Do you w...
[cmake] fix path issue.
@@ -49,10 +49,10 @@ def GenerateCFiles(env,project): cm_file.write("SET(CMAKE_SIZE \""+ SIZE + "\")\n\n") - cm_file.write("SET(CMAKE_C_FLAGS \""+ rtconfig.CFLAGS + "\")\n") - cm_file.write("SET(CMAKE_CXX_FLAGS \""+ rtconfig.CXXFLAGS + "\")\n") - cm_file.write("SET(CMAKE_ASM_FLAGS \""+ rtconfig.AFLAGS + "\")\n") - cm_fi...
fix: set number_of_signatures if no security data directory entry exists
@@ -1848,15 +1848,15 @@ static void pe_parse_certificates(PE* pe) { int counter = 0; + // Default to 0 signatures until we know otherwise. + yr_set_integer(0, pe->object, "number_of_signatures"); + PIMAGE_DATA_DIRECTORY directory = pe_get_directory_entry( pe, IMAGE_DIRECTORY_ENTRY_SECURITY); if (directory == NULL) retu...
getrlimit: add support for RLIMIT_DATA This resource identifier indicates the maximum size of the process's data segment (initialized data, uninitialized data, and heap).
@@ -1541,6 +1541,11 @@ sysreturn getrlimit(int resource, struct rlimit *rlim) return -EFAULT; switch (resource) { + case RLIMIT_DATA: + /* not entirely accurate, but a reasonable approximation */ + rlim->rlim_cur = rlim->rlim_max = + heap_total(&heap_physical(get_kernel_heaps())->h); + return 0; case RLIMIT_STACK: rlim...
libmdb: wrap function that is only used with assertions enabled in #ifndef NDEBUG
@@ -540,6 +540,7 @@ mdb_rebalance(struct cte *node) return node; } +#ifndef NDEBUG static bool mdb_is_child(struct cte *child, struct cte *parent) { @@ -550,6 +551,7 @@ mdb_is_child(struct cte *child, struct cte *parent) return N(parent)->left == child || N(parent)->right == child; } } +#endif static bool mdb_is_inside...
VERSION bump to version 1.0.189
@@ -61,7 +61,7 @@ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) # set version of the project set(LIBYANG_MAJOR_VERSION 2) set(LIBYANG_MINOR_VERSION 0) -set(LIBYANG_MICRO_VERSION 188) +set(LIBYANG_MICRO_VERSION 189) set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION}...
pybricks/pupdevices/PFMotor: add brake and stop
@@ -129,10 +129,25 @@ STATIC mp_obj_t pupdevices_PFMotor_dc(size_t n_args, const mp_obj_t *pos_args, m } MP_DEFINE_CONST_FUN_OBJ_KW(pupdevices_PFMotor_dc_obj, 1, pupdevices_PFMotor_dc); +// pybricks.pupdevices.PFMotor.stop +STATIC mp_obj_t pupdevices_PFMotor_stop(mp_obj_t self_in) { + pupdevices_PFMotor__send(MP_OBJ_TO...
Changed Lyra2 diff multiplier
@@ -391,7 +391,7 @@ namespace MiningCore.Blockchain.Bitcoin // OW: tmp hotfix if (poolConfig.Coin.Type == CoinType.MONA || poolConfig.Coin.Type == CoinType.VTC) - result *= 2; + result *= 1.3; return (ulong) result; }
Fix datarace on msg_alloc when we try to remove a msg_task and we finish to receive one at the same time.
@@ -117,7 +117,9 @@ void MsgAlloc_Init(memory_stats_t *memory_stats) current_msg = (msg_t *)&msg_buffer[0]; data_ptr = (uint8_t *)&msg_buffer[0]; msg_tasks_stack_id = 0; + memset((void *)msg_tasks, 0, sizeof(msg_tasks)); luos_tasks_stack_id = 0; + memset((void *)luos_tasks, 0, sizeof(luos_tasks)); copy_task_pointer = N...
Fix htobe64/be64toh macros on LE architectures
@@ -186,7 +186,7 @@ extern "C" { #endif #ifndef htobe64 -#define htobe64(x) os_bswap64(x) +#define htobe64(x) os_bswap_64(x) #endif #ifndef htole64 @@ -194,7 +194,7 @@ extern "C" { #endif #ifndef be64toh -#define be64toh(x) os_bswap64(x) +#define be64toh(x) os_bswap_64(x) #endif #ifndef le64toh
Tiny tup fix;
@@ -177,7 +177,7 @@ if target == 'android' then assert(config.headsets.openxr, 'You probably want to enable OpenXR') hosts = { win32 = 'windows-x86_64', macos = 'darwin-x86_64', linux = 'linux-x86_64' } cc = config.cc or ('%s/toolchains/llvm/prebuilt/%s/bin/clang'):format(config.android.ndk, hosts[host]) - cxx = config...
py/lexer: Allow to access attributes directly on float/complex. The same way as CPython allows, e.g. "1.1.foo" or "1j.imag". Note that CPython doesn't support accessing attributes directly on int ("1.foo" is a syntax error).
@@ -607,6 +607,13 @@ void mp_lexer_to_next(mp_lexer_t *lex) { } } else if (is_letter(lex) || is_digit(lex) || is_char(lex, '.')) { if (is_char_or3(lex, '.', 'j', 'J')) { + if (is_char(lex, '.')) { + // If we deal with float/complex already, then another + // dot means attribute access. + if (lex->tok_kind == MP_TOKEN_F...
scheduler: on request destroy, validate event loop (CID 156535)
@@ -158,7 +158,9 @@ int flb_sched_request_create(struct flb_config *config, int flb_sched_request_destroy(struct flb_config *config, struct flb_sched_request *req) { + if (config->evl) { mk_event_del(config->evl, &req->event); + } flb_pipe_close(req->fd); mk_list_del(&req->_head); flb_free(req);
Tcp.c : correct typo line 1817 : Calcluates -> Calculates
@@ -1814,7 +1814,7 @@ u32_t tcp_next_iss(struct tcp_pcb *pcb) #if TCP_CALCULATE_EFF_SEND_MSS /** - * Calcluates the effective send mss that can be used for a specific IP address + * Calculates the effective send mss that can be used for a specific IP address * by using ip_route to determin the netif used to send to the...
ntpclient: Initialize g_ntpc_daemon at the definition
@@ -117,7 +117,12 @@ struct ntpc_daemon_s * limitation is due only to this global data structure. */ -static struct ntpc_daemon_s g_ntpc_daemon; +static struct ntpc_daemon_s g_ntpc_daemon = +{ + NTP_NOT_RUNNING, + SEM_INITIALIZER(0), + -1 +}; /****************************************************************************...
added some more weak candidates
@@ -212,6 +212,12 @@ for(y = 1900; y <= thisyear; y++) snprintf(pskstring, 64, "abcd%04d", y); writepsk(pskstring); } + +for(y = 0; y < 1000; y++) + { + snprintf(pskstring, 64, "%03d%03d%03d", y, y, y); + writepsk(pskstring); + } return; } /*===========================================================================*/
Update Changelog.txt for 0.3.13
OpenBLAS ChangeLog +==================================================================== +Version 0.3.13 + 12-Dec-2020 + + common: + * Added a generic bfloat16 SBGEMV kernel + * Fixed a potentially severe memory leak after fork in OpenMP builds + that was introduces in 0.3.12 + * Added detection of the Fujitsu Fortran ...
Increment version to 4.7.0.
/* Module version information. */ #define MOD_WSGI_MAJORVERSION_NUMBER 4 -#define MOD_WSGI_MINORVERSION_NUMBER 6 -#define MOD_WSGI_MICROVERSION_NUMBER 9 -#define MOD_WSGI_VERSION_STRING "4.6.9" +#define MOD_WSGI_MINORVERSION_NUMBER 7 +#define MOD_WSGI_MICROVERSION_NUMBER 0 +#define MOD_WSGI_VERSION_STRING "4.7.0" /* --...
Added bin2hex post build step and updated the binary extension to be .elf
@@ -193,6 +193,8 @@ endif() # ------------------------------------------------------------------------------------------------- # Additional build configurations # ------------------------------------------------------------------------------------------------- +set(CMAKE_EXECUTABLE_SUFFIX ".elf") + set_source_files_pr...
hoon: refactors nock %11 in +mink
[%11 [tag=@ clue=*] next=*] =/ clue $(formula clue.formula) ?. ?=(%0 -.clue) clue - =; next + =/ next + =? trace + ?=(?(%hunk %hand %lose %mean %spot) tag.formula) + [[tag.formula product.clue] trace] + $(formula next.formula) ?. ?=(%0 -.next) next :- %0 .* subject [11 [tag.formula 1 product.clue] 1 product.next] - %= ...
move response_end_at to where all bytes are written to the stream
@@ -430,7 +430,6 @@ static void set_state(struct st_h2o_http3_server_stream_t *stream, enum h2o_http assert(conn->delayed_streams.recv_body_blocked.prev == &stream->link || !"stream is not registered to the recv_body list?"); break; case H2O_HTTP3_SERVER_STREAM_STATE_CLOSE_WAIT: { - stream->req.timestamps.response_end_...
count_coverage: ignore reads that have no SEQ field Occasionally reads are encountered with SEQ = '*'. In this case, `read.seq` is None and we must skip the `seq[qpos]` loop. Fixes second instance of
@@ -1578,6 +1578,8 @@ cdef class AlignmentFile(HTSFile): # count seq = read.seq + if seq is None: + continue quality = read.query_qualities for qpos, refpos in read.get_aligned_pairs(True):
Use actions/checkout@v1. Should fix git describe issues and also work for pull requests.
@@ -13,12 +13,9 @@ jobs: CONAN_GCC_VERSIONS: [7, 8, 9] steps: - # actions/checkout breaks `git describe` so a manual clone is needed. + # actions/checkout@v2 breaks `git describe` so v1 is needed. # https://github.com/actions/checkout/issues/272 - - name: Clone libtcod - run: | - git clone https://github.com/${{github....
board/common : Add conditional statement If MTD_SMART and FS_SMARTFS are not configure build error occurs. So I added the parentheses and the else conditional statement.
@@ -93,8 +93,11 @@ static void type_specific_initialize(FAR struct mtd_dev_s *mtd_part, int partno, snprintf(partref, sizeof(partref), "p%d", partno); smart_initialize(CONFIG_FLASH_MINOR, mtd_part, partref); - } + } else #endif + { + + } } static void move_to_next_part(const char **par)
pbio/iodev.h: Fix PBIO_IODEV_MODE_PUP_WEDO1_TILT_SENSOR__CAL
@@ -273,7 +273,7 @@ enum { PBIO_IODEV_MODE_PUP_WEDO2_TILT_SENSOR__ANGLE = 0, // read 2x int8_t PBIO_IODEV_MODE_PUP_WEDO2_TILT_SENSOR__DIR = 1, // read 1x int8_t PBIO_IODEV_MODE_PUP_WEDO2_TILT_SENSOR__CNT = 2, // read 3x int8_t - PBIO_IODEV_MODE_PUP_WEDO2_TILT_SENSOR__CAL = 2, // read 3x int8_t + PBIO_IODEV_MODE_PUP_WED...
chip/stm32/usb_dfu_runtime.c: Format with clang-format BRANCH=none TEST=none
@@ -23,8 +23,8 @@ const struct usb_interface_descriptor USB_IFACE_DESC(USB_IFACE_DFU) = { }; /* DFU Functional Descriptor. */ -const struct usb_runtime_dfu_functional_desc USB_CUSTOM_DESC_VAR(USB_IFACE_DFU, - dfu, dfu_func_desc) = { +const struct usb_runtime_dfu_functional_desc + USB_CUSTOM_DESC_VAR(USB_IFACE_DFU, dfu,...
Fix PTO calculation
@@ -2041,11 +2041,7 @@ static ngtcp2_duration conn_compute_pto(ngtcp2_conn *conn) { (conn->flags & NGTCP2_CONN_FLAG_HANDSHAKE_COMPLETED) ? conn->remote.transport_params.max_ack_delay : NGTCP2_DEFAULT_MAX_ACK_DELAY; - ngtcp2_duration timeout = - (ngtcp2_duration)(rcs->smoothed_rtt + var + (double)max_ack_delay); - timeo...
update dshot clock source define for timing
#ifdef DSHOT150 - #define DSHOT_BIT_TIME ((SYS_CLOCK_FREQ_HZ/1000/150)-1) + #define DSHOT_BIT_TIME ((PWM_CLOCK_FREQ_HZ/1000/150)-1) #define DSHOT_T0H_TIME (DSHOT_BIT_TIME * .375 ) #define DSHOT_T1H_TIME (DSHOT_BIT_TIME * .75 ) #endif #ifdef DSHOT300 - #define DSHOT_BIT_TIME ((SYS_CLOCK_FREQ_HZ/1000/300)-1) + #define DS...
remove float16 to float32 conversion
@@ -252,36 +252,8 @@ uint8_t* get_ptr(uint8_t* data, uint8_t bytes, uint16_t* idx) { } float _to_float(uint8_t* data) { - uint16_t h = *(uint16_t*)(data); - uint16_t h_exp, h_sig; - uint32_t f_sgn, f_exp, f_sig; - - h_exp = (h&0x7c00u); - f_sgn = ((uint32_t)h&0x8000u) << 16; - if (h_exp == 0x0000u) { /* 0 or subnormal ...
improve error message in device flow if agent is killed in between; fix
@@ -22,6 +22,9 @@ char* _pollDeviceCode(const char* json_device, size_t interval, json_device, only_at) : ipc_cryptCommunicate(remote, REQUEST_DEVICE, json_device, only_at); + if (NULL == res) { + return NULL; + } INIT_KEY_VALUE(IPC_KEY_STATUS, OIDC_KEY_ERROR, IPC_KEY_CONFIG, OIDC_KEY_ACCESSTOKEN); if (CALL_GETJSONVALU...
Windows CI: enable fips on shared 64 bit build
@@ -24,15 +24,15 @@ jobs: - name: config working-directory: _build run: | - if ( "${{ matrix.arch }}" -eq "win32" ) { $target = "VC-WIN32" } else { $target = "VC-WIN64A" } - perl ..\Configure --banner=Configured no-makedepend no-fips $target + if ( "${{ matrix.arch }}" -eq "win32" ) { $target = "VC-WIN32" ; $fips = "no...
cleanup janet_font
@@ -661,34 +661,26 @@ static Janet janet_exit(int32_t argc, Janet* argv) return janet_wrap_nil(); } -/* - * XXX I need to better understand this - */ static Janet janet_font(int32_t argc, Janet* argv) { -#if 0 - janet_arity(argc, 6, 8); - bool fixed = false; - int32_t scale = 1; - bool alt = false; + janet_arity(argc, ...
[kernel] compute output when adding interaction
@@ -95,15 +95,15 @@ void OneStepIntegrator::update_interaction_output(Interaction& inter, double tim } inter.swapInMemory(); } - // // Compute a first value for the output - // inter.computeOutput(time, 0); - - // // prepare the gradients - // inter.relation()->computeJach(time, inter); - // for(unsigned int i = 0; i <...
system/trace: Fix fprintf format warnings
@@ -295,7 +295,7 @@ static void trace_dump_header(FAR FILE *out, pid = ctx->cpu[cpu].current_pid; - fprintf(out, "%8s-%-3u [%d] %3u.%09u: ", + fprintf(out, "%8s-%-3u [%d] %3" PRIu32 ".%09" PRIu32 ": ", get_task_name(pid, ctx), get_pid(pid), cpu, #ifdef CONFIG_SCHED_INSTRUMENTATION_HIRES sec, nsec @@ -507,11 +507,11 @@ ...
ct6: use explicit type in api Type: fix
/* Define a simple enable-disable binary API to control the feature */ +option version = "1.0.0"; +import "vnet/interface_types.api"; autoreply define ct6_enable_disable { /* Client identifier, set from api_main.my_client_index */ @@ -9,12 +11,12 @@ autoreply define ct6_enable_disable { u32 context; /* Enable / disable...
parallelize make jobs in build-all.sh
source /opt/Xilinx/Vivado/2018.1/settings64.sh +JOBS=`nproc 2> /dev/null || echo 1` + +make -j $JOBS cores + make NAME=led_blinker all -for project in sdr_receiver_hpsdr sdr_transceiver sdr_transceiver_emb sdr_transceiver_hpsdr sdr_transceiver_wide sdr_transceiver_wspr mcpha pulsed_nmr scanner vna -do - make NAME=$proj...
Update: NAL.c: check fix which allows nested products to violate atom appears twice filter when derived
@@ -138,7 +138,10 @@ static bool NAL_AtomAppearsTwice(Term *conclusionTerm) return false; if(Narsese_copulaEquals(conclusionTerm->atoms[0], INHERITANCE) || Narsese_copulaEquals(conclusionTerm->atoms[0], SIMILARITY)) //similarity or inheritance { - if(!(Narsese_copulaEquals(conclusionTerm->atoms[1], PRODUCT) && Narsese_...
Fixed potential memory leak when error occurs in paranoid mode.
@@ -105,6 +105,15 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. break; \ } +// Make sure that the string pointer is within the rules arena. +#define ensure_within_rules_arena(x) \ + if (yr_arena_page_for_address(context->rules->arena, x) == NULL) \ + { \ + stop = true; \ + result = ERROR_INTERNAL_FATA...
Sockeye: Fix Identifier parsing
@@ -30,19 +30,10 @@ import qualified SockeyeASTFrontend as AST lexer = P.makeTokenParser ( javaStyle { {- list of reserved Names -} - P.reservedNames = [ - "module", - "input", "output", - "for", "in", - "as", "with", - "is", "are", - "accept", "map", - "over", - "to", "at" - ], + P.reservedNames = keywords, {- valid i...
king: replace use of deprecated network/socket address lookup
TODO How to detect socket closed during server run? -} -{-# OPTIONS_GHC -Wno-deprecations #-} - module Urbit.Vere.Eyre.Serv ( ServApi(..) , TlsConfig(..) @@ -140,8 +138,12 @@ openFreePort hos = do Right ps -> pure (Right ps) where doBind sok = do - adr <- Net.inet_addr hos - Net.bind sok (Net.SockAddrInet Net.defaultPo...
Optimization when rendering 0-width lines
@@ -202,7 +202,7 @@ namespace { void main(void) { int styleIndex = int(aVertexAttribs[0]); float width = uWidthTable[styleIndex] * uHalfResolution; - float roundedWidth = width + 1.0; + float roundedWidth = width + float(width > 0.0); float gamma = uGamma * aVertexAttribs[3]; #ifdef TRANSFORM vec3 pos = vec3(vec2(uTran...
fcrypt: code clean-up remove more obsolete code
@@ -38,8 +38,6 @@ enum FcryptGetState struct _fcryptState { enum FcryptGetState getState; - struct stat parentStat; - int parentStatOk; int tmpFileFd; char * tmpFilePath; char * originalFilePath; @@ -403,7 +401,6 @@ int ELEKTRA_PLUGIN_FUNCTION (ELEKTRA_PLUGIN_NAME, open) (Plugin * handle, KeySet } s->getState = PREGETS...
Handle window events only once visible This will avoid corner cases where we need to resize while no frame has been received yet.
@@ -184,7 +184,9 @@ handle_event(SDL_Event *event, const struct scrcpy_options *options) { } break; case SDL_WINDOWEVENT: + if (screen.has_frame) { screen_handle_window_event(&screen, &event->window); + } break; case SDL_TEXTINPUT: if (!options->control) {
Fixing http clean
@@ -247,7 +247,13 @@ static void acvp_http_user_agent_check_compiler_ver(ACVP_CTX *ctx, char *comp_st */ static void acvp_http_user_agent_string_clean(char *str) { int i = 0; + if (!str) { + return ACVP_INVALID_ARG; + } int len = strnlen_s(str, ACVP_USER_AGENT_STR_MAX); + if (len <= 0) { + return ACVP_INVALID_ARG; + } ...
docs - updated max value of max_connections guc
</thead> <tbody> <row> - <entry colname="col1">10-<i>n</i></entry> + <entry colname="col1">10 - 262143</entry> <entry colname="col2">250 on master<p>750 on segments</p></entry> <entry colname="col3">local<p>system</p><p>restart</p></entry> </row>
u3: detect snapshots from a larger loom, print and exit
@@ -1118,6 +1118,13 @@ u3e_live(c3_o nuu_o, c3_c* dir_c) _ce_patch_delete(); } + // detect snapshots from a larger loom + // + if ( (u3P.nor_u.pgs_w + u3P.sou_u.pgs_w + 1) >= u3a_pages ) { + fprintf(stderr, "boot: snapshot too big for loom\r\n"); + exit(1); + } + // mark all pages dirty (pages in the snapshot will be m...
flash_fp_mcu: Add support for Herobrine Add the logic to find the gpios on herobrine. BRANCH=None TEST=flash_fp_mcu on Herobrine
@@ -406,10 +406,12 @@ flash_fp_mcu_stm32() { gpio 0 "${gpio_boot0}" "${gpio_nrst}" gpio 1 "${gpio_nrst}" - # Give up GPIO control - # TODO(b/179839337): Remove this for Strongbad DVT, where we should have - # correct external pulls on these lines. - if [[ "${PLATFORM_NAME}" != "strongbad" ]]; then + # Give up GPIO cont...
additional Xresources item compatible with font2 patch
@@ -155,6 +155,7 @@ static unsigned int defaultattr = 11; */ ResourcePref resources[] = { { "font", STRING, &font }, + { "fontalt0", STRING, &font2[0] }, { "color0", STRING, &colorname[0] }, { "color1", STRING, &colorname[1] }, { "color2", STRING, &colorname[2] },
Remove bogus assert.
@@ -236,8 +236,6 @@ mktygeneric(Srcloc loc, Node *name, Type **param, size_t nparam, Type *base) bindtype(t->env, param[i]); if (!base->env) base->env = t->env; - else - assert(base->env->super == t->env || base->narg > 0); return t; }
runtimes/charliecloud: collapse to single package
@@ -39,8 +39,6 @@ BuildRequires: python34 BuildRequires: python3 %endif -%package test -Summary: Charliecloud examples and test suite Requires: %{name}%{?_isa} = %{version}-%{release} Requires: bats Requires: bash @@ -49,7 +47,7 @@ Requires: wget Requires: python34 %endif %if 0%{?sles_version} || 0%{?suse_version} -Bui...
mangle: increase slowness factor mutation rates
@@ -858,7 +858,7 @@ void mangle_mangleContent(run_t* run, unsigned slow_factor) { changesCnt = HF_MAX(run->global->mutate.mutationsPerRun, 10); break; default: - changesCnt = HF_MAX(run->global->mutate.mutationsPerRun, 15); + changesCnt = HF_MAX(run->global->mutate.mutationsPerRun, 20); break; }
biosnoop: Fixed the spelling mistake of quueued to queued
@@ -28,7 +28,7 @@ CONFIG_BPF and bcc. Print usage message. .TP \-Q -Include a column showing the time spent quueued in the OS. +Include a column showing the time spent queued in the OS. .SH EXAMPLES .TP Trace all block device I/O and print a summary line per I/O:
Fix missed driver wrapper tests
@@ -997,7 +997,7 @@ void aead_encrypt( int key_type_arg, data_t *key_data, input_data->x, input_data->len, output_data, output_size, &output_length ); - TEST_EQUAL( mbedtls_test_driver_aead_hooks.hits, 1 ); + TEST_EQUAL( mbedtls_test_driver_aead_hooks.hits_encrypt, 1 ); TEST_EQUAL( mbedtls_test_driver_aead_hooks.driver...
zephyr/projects/corsola/include/baseboard_usbc_config.h: Format with clang-format BRANCH=none TEST=none
void ppc_interrupt(enum gpio_signal signal); /* USB-A ports */ -enum usba_port { - USBA_PORT_A0 = 0, - USBA_PORT_COUNT -}; +enum usba_port { USBA_PORT_A0 = 0, USBA_PORT_COUNT }; /* USB-C ports */ -enum usbc_port { - USBC_PORT_C0 = 0, - USBC_PORT_C1, - USBC_PORT_COUNT -}; +enum usbc_port { USBC_PORT_C0 = 0, USBC_PORT_C1...
nommu: Turned on lazy mapping to reduce stack usage
@@ -103,13 +103,13 @@ int proc_start(void (*initthr)(void *), void *arg, const char *path) process->ports = NULL;*/ process->ports = NULL; - process->lazy = 0; process->sigpend = 0; process->sigmask = 0; process->sighandler = NULL; #ifndef NOMMU + process->lazy = 0; process->mapp = &process->map; process->amap = NULL; ...
fma: add AltiVec implementations of simde_mm_fmadd_{ps,pd}
@@ -46,6 +46,16 @@ simde__m128d simde_mm_fmadd_pd (simde__m128d a, simde__m128d b, simde__m128d c) { #if defined(SIMDE_X86_FMA_NATIVE) return _mm_fmadd_pd(a, b, c); + #elif defined(SIMDE_POWER_ALTIVEC_P5_NATIVE) + simde__m128d_private + a_ = simde__m128d_to_private(a), + b_ = simde__m128d_to_private(b), + c_ = simde__m...
test-suite: disable cafrun job launch test for opencoarrays which is not supported on all mpi variants/resource managers
@@ -33,6 +33,7 @@ ARGS=8 } @test "[libs/OpenCoarrays] hello_multiverse binary runs under resource manager using cafrun script ($rm/$LMOD_FAMILY_COMPILER/$LMOD_FAMILY_MPI)" { + skip "cafrun not supported for all MPI variants" if [ ! -s hello ];then flunk "hello binary does not exist" fi
pgraph/hwtest: Fix hung PGRAPH on bundle transmit.
@@ -32,6 +32,7 @@ namespace pgraph { static void adjust_orig_bundle(struct pgraph_state *state) { state->surf_unk800 = 0; + state->debug[6] &= 0xffcfffff; } static void pgraph_kelvin_check_err19(struct pgraph_state *state) {
fix and document $message-pump-state
== :: $message-pump-state: persistent state for |message-pump :: -:: next-message-num: sequence number of next message to send +:: Messages queue up in |message-pump's .unsent-messages until they +:: can be packetized and fed into |packet-pump for sending. When we +:: pop a message off .unsent-messages, we push as many...
only use frozen version of comgr for aomp 11
@@ -213,7 +213,8 @@ fi DEVICELIBS_ROOT=${DEVICELIBS_ROOT:-$AOMP_REPOS/$AOMP_LIBDEVICE_REPO_NAME} AOMP_COMGR_REPO_NAME=${AOMP_COMGR_REPO_NAME:-rocm-compilersupport} AOMP_COMGR_REPO_BRANCH=${AOMP_COMGR_REPO_BRANCH:-amd-stg-open} -if [ "$AOMP_VERSION" != "12.0" ] ; then +# Only set COMGR_REPO_SHA for aomp11 +if [ "$AOMP_V...
Examples/PPPoS: Warn about not supporting in v5.0
(See the README.md file in the upper level 'examples' directory for more information about examples.) +**Note:** This example uses an internal implementation of the [modem component](components/modem) that will not be maintained in `v5.0` and this example will be migrated to [esp-modem component](https://components.esp...
handle ducts through state
:: =< finalize :: + =+ [live when]=?~(date [& now] [| u.date]) + =/ build [when schematic] + :: + =: listeners.state + (~(put ju listeners.state) build [duct live]) + :: + builds-by-listener.state + (~(put by builds-by-listener.state) duct build) + == + :: ?~ date (execute [now schematic] live=&) (execute [u.date schem...
LISP: make data plane programming thread safe
@@ -518,6 +518,35 @@ dp_add_fwd_entry (lisp_cp_main_t * lcm, u32 src_map_index, u32 dst_map_index) fe - lcm->fwd_entry_pool); } +typedef struct +{ + u32 si; + u32 di; +} fwd_entry_mt_arg_t; + +static void * +dp_add_fwd_entry_thread_fn (void *arg) +{ + fwd_entry_mt_arg_t *a = arg; + lisp_cp_main_t *lcm = vnet_lisp_cp_ge...
added invocation -help
@@ -186,6 +186,10 @@ int main(int argc, char **argv) if (strcmp(*argv, "-none") == 0) { level = ACVP_LOG_LVL_NONE; } + if (strcmp(*argv, "-help") == 0) { + print_usage(); + return 1; + } argv++; argc--; }
extmod/modrobotics: rename start back to drive This is done for two reasons. This command is typically used in a loop for e.g. line following. In this context, start does not make sense. There are going to be two additional 'start'-like methods, so we can't use this generic name.
@@ -62,8 +62,8 @@ STATIC mp_obj_t robotics_DriveBase_make_new(const mp_obj_type_t *type, size_t n_ return MP_OBJ_FROM_PTR(self); } -// pybricks.robotics.DriveBase.start -STATIC mp_obj_t robotics_DriveBase_start(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) { +// pybricks.robotics.DriveBase.drive +STATIC m...
[stage 1]: Added missing noexcept specifiers.
@@ -611,13 +611,13 @@ public: deinitialize_buckets(buckets); } - size_type size() const { + size_type size() const noexcept { return num_elements; } - size_type max_size() const { + size_type max_size() const noexcept { return size_type(-1); } - bool empty() const { + bool empty() const noexcept { return size() == 0; }...
spi: suppress spi_bus_lock_touch log level The log in the spi_bus_lock_touch may be annoying. This commit suppress the log level, and make the log visible only when the device altered. Resolves
@@ -657,9 +657,10 @@ IRAM_ATTR bool spi_bus_lock_touch(spi_bus_lock_dev_handle_t dev_handle) { spi_bus_lock_dev_t* last_dev = dev_handle->parent->last_dev; dev_handle->parent->last_dev = dev_handle; - if (last_dev) { - ESP_DRAM_LOGD(TAG, "SPI dev changed from %d to %d", - dev_lock_get_id(last_dev), dev_lock_get_id(dev_...
SOVERSION bump to version 5.5.0
@@ -44,8 +44,8 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_ # Major version is changed with every backward non-compatible API/ABI change, minor version changes # with backward compatible change and micro version is connected with any internal change of the library. set(SYSREPO_MAJ...
p5_scrypt.c: fix error check of RAND_bytes() call
@@ -82,7 +82,7 @@ X509_ALGOR *PKCS5_pbe2_set_scrypt(const EVP_CIPHER *cipher, if (EVP_CIPHER_iv_length(cipher)) { if (aiv) memcpy(iv, aiv, EVP_CIPHER_iv_length(cipher)); - else if (RAND_bytes(iv, EVP_CIPHER_iv_length(cipher)) < 0) + else if (RAND_bytes(iv, EVP_CIPHER_iv_length(cipher)) <= 0) goto err; }
Support ASAN on Ubuntu 12, and add Clang 6 for Darwin.
}, "clang6": { "formula": { - "sandbox_id": [287097007], + "sandbox_id": [287306023, 287174722], "match": "CLANG" }, "executable": {
Do not add right padding to calendar label's x1 coordinate
@@ -787,7 +787,7 @@ static void draw_days(lv_obj_t * calendar, const lv_area_t * mask) } label_area.x1 = - calendar->coords.x1 + (w * day) / 7 + style_bg->body.padding.left + style_bg->body.padding.right; + calendar->coords.x1 + (w * day) / 7 + style_bg->body.padding.left; label_area.x2 = label_area.x1 + box_w - 1; /*D...
Use memmove instead of copying. Also some comment things, and re-add old code from linenoise. It seems to have a purpose for some keyboard layouts, so I will leave it.
@@ -642,12 +642,9 @@ static int line() { historymove(1); break; case 21: { /* ctrl-u */ - char *temp = sdup(&gbl_buf[gbl_pos]); - memcpy(temp, &gbl_buf[gbl_pos], sizeof(char) * (gbl_len - gbl_pos)); - memcpy(gbl_buf, temp, sizeof(char) * (gbl_len - gbl_pos)); - free(temp); - gbl_buf[gbl_len - gbl_pos] = '\0'; - gbl_len...
android: ndk16 works on different apis
@@ -56,7 +56,7 @@ end def setup_ndk(ndkpath,apilevel,abi) puts "setup_ndk(#{ndkpath}, #{apilevel}, #{abi})" if USE_TRACES - + $apilevel = apilevel ndk = NDKWrapper.new( ndkpath ) tools = ndk.detect_toolchain abi @@ -104,6 +104,7 @@ def cc_def_args args << "-DANDROID" args << "-DOS_ANDROID" args << "-DRHO_DEBUG" + args ...
Tests: Check availability of Cheetah
@@ -30,6 +30,14 @@ else exit fi +if /usr/bin/env python2 -c 'from Cheetah.Template import Template' 2> /dev/null +then + echo "Cheetah available" +else + echo "Cheetah not available" + exit +fi + [ -z "${CC}" ] && CC=gcc [ -z "${CXX}" ] && CXX=g++ if "${CC}" --version 2> /dev/null | grep -Eq '^gcc'
Improve WsCounters query performance (slightly), Remove unnecessary handles
@@ -822,17 +822,14 @@ static VOID PhpUpdateProcessNodeWsCounters( if (!(ProcessNode->ValidMask & PHPN_WSCOUNTERS)) { BOOLEAN success = FALSE; - HANDLE processHandle; - if (PH_IS_REAL_PROCESS_ID(ProcessNode->ProcessItem->ProcessId)) - { - if (NT_SUCCESS(PhOpenProcess(&processHandle, PROCESS_QUERY_INFORMATION, ProcessNod...
board/grunt/led.c: Format with clang-format BRANCH=none TEST=none
@@ -20,12 +20,9 @@ const int supported_led_ids_count = ARRAY_SIZE(supported_led_ids); */ struct pwm_led_color_map led_color_map[EC_LED_COLOR_COUNT] = { /* Amber, Blue */ - [EC_LED_COLOR_RED] = { 0, 0 }, - [EC_LED_COLOR_GREEN] = { 0, 0 }, - [EC_LED_COLOR_BLUE] = { 0, 100 }, - [EC_LED_COLOR_YELLOW] = { 0, 0 }, - [EC_LED_...
clap_event_header must be aligned by 8 at least
@@ -10,7 +10,7 @@ extern "C" { // event header // must be the first attribute of the event -typedef struct clap_event_header { +typedef struct alignas(8) clap_event_header { uint32_t size; // event size including this header, eg: sizeof (clap_event_note) uint32_t time; // time at which the event happens uint16_t space_...
FIXUP: board: Add CONFIG_ACCEL_FORCE_MODE_MASK for ALS when needed Enabled forced mode for BMI160 accelerometer on soraka by mistake. BRANCH=poppy TEST=Compile
@@ -269,7 +269,7 @@ void board_set_tcpc_power_mode(int port, int mode); void base_detect_interrupt(enum gpio_signal signal); /* Sensors without hardware FIFO are in forced mode */ -#define CONFIG_ACCEL_FORCE_MODE_MASK ((1 << LID_ACCEL) | (1 << LID_ALS)) +#define CONFIG_ACCEL_FORCE_MODE_MASK (1 << LID_ALS) #endif /* !__...
Simplify net_send_all() There is no need to declare the variable before the loop.
@@ -116,9 +116,8 @@ net_send(socket_t socket, const void *buf, size_t len) { ssize_t net_send_all(socket_t socket, const void *buf, size_t len) { size_t copied = 0; - ssize_t w = 0; while (len > 0) { - w = send(socket, buf, len, 0); + ssize_t w = send(socket, buf, len, 0); if (w == -1) { return copied ? (ssize_t) copie...
Skip curve check if sigalg doesn't specify a curve.
@@ -917,7 +917,7 @@ int tls12_check_peer_sigalg(SSL *s, uint16_t sig, EVP_PKEY *pkey) if (SSL_IS_TLS13(s)) { /* For TLS 1.3 check curve matches signature algorithm */ - if (curve != lu->curve) { + if (lu->curve != NID_undef && curve != lu->curve) { SSLerr(SSL_F_TLS12_CHECK_PEER_SIGALG, SSL_R_WRONG_CURVE); return 0; } @...
odissey: put add_subdirectory(sources) back
@@ -44,15 +44,17 @@ build_shapito() set(od_libraries ${od_libraries} ${SHAPITO_LIBRARIES}) include_directories(${SHAPITO_INCLUDE_DIRS}) -# debian build -option(BUILD_DEBIAN "Enable Debian Build" OFF) -if (BUILD_DEBIAN) - include(BuildDebian) -endif() - message (STATUS "") message (STATUS "Odissey (version: ${OD_VERSION...
driver/als_cm32183.c: Format with clang-format BRANCH=none TEST=none
@@ -77,14 +77,13 @@ static int cm32183_read(const struct motion_sensor_t *s, intv3_t v) return EC_SUCCESS; } -static int cm32183_set_range(struct motion_sensor_t *s, int range, - int rnd) +static int cm32183_set_range(struct motion_sensor_t *s, int range, int rnd) { return EC_SUCCESS; } -static int cm32183_set_data_rat...
Let jpm projects work better on windows. Handle paths with normal, forward slashes better.
# OS and shell helpers # +(def- path-splitter + "split paths on / and \\." + (peg/compile ~(any (* '(any (if-not (set `\/`) 1)) (set `\/`))))) + (def- filepath-replacer "Convert url with potential bad characters into a file path element." (peg/compile ~(% (any (+ (/ '(set "<>:\"/\\|?*") "_") '1))))) "Rename a janet sym...
Configurations/10-main.conf: omit redundant -lresolv from Solaris configs. GH#2816
@@ -179,7 +179,7 @@ sub vms_info { inherit_from => [ "BASE_unix" ], template => 1, cflags => "-DFILIO_H", - ex_libs => add("-lresolv -lsocket -lnsl -ldl"), + ex_libs => add("-lsocket -lnsl -ldl"), dso_scheme => "dlfcn", thread_scheme => "pthreads", shared_target => "solaris-shared",
fix aligment check when padding is enabled
@@ -25,15 +25,16 @@ static void* mi_heap_malloc_zero_aligned_at(mi_heap_t* const heap, const size_t const uintptr_t align_mask = alignment-1; // for any x, `(x & align_mask) == (x % alignment)` // try if there is a small block available with just the right alignment - if (mi_likely(size <= MI_SMALL_SIZE_MAX)) { - mi_pa...
goroh: support CBI TEST=cbi BRANCH=none Tested-by: Eric Yilun Lin
#define CONFIG_EXTPOWER_GPIO #define CONFIG_HIBERNATE_WAKE_PINS_DYNAMIC +/* EC defines */ +#define CONFIG_CBI_EEPROM + /* Chipset */ #define CONFIG_HOST_COMMAND_STATUS #define CONFIG_LOW_POWER_IDLE #define CONFIG_I2C_CONTROLLER #define CONFIG_I2C_PASSTHRU_RESTRICTED #define CONFIG_I2C_VIRTUAL_BATTERY +#define I2C_ADDR_...
TEMP speed up azimuth-tracker timeout
=* walk-loop $ ?: (gth number.state number.id.latest-block) ;< now=@da bind:m get-time:stdio - ;< ~ bind:m (wait-effect:stdio (add now ~m5)) + ;< ~ bind:m (wait-effect:stdio (add now ~s5)) (pure:m state) ;< =block bind:m (get-block-by-number url.state number.state) ;< [=new=pending-udiffs new-blocks=(lest ^block)] bind...
Fix PNG IDAT CRC;
@@ -121,7 +121,7 @@ void* png_encode(uint8_t* pixels, uint32_t w, uint32_t h, int32_t stride, size_t memcpy(p, (uint8_t[4]) { s2 >> 8, s2 >> 0, s1 >> 8, s1 >> 0 }, 4); } - crc = crc32(data + 8, idatSize); + crc = crc32(data + 4, idatSize + 4); memcpy(data + 8 + idatSize, (uint8_t[4]) { crc >> 24, crc >> 16, crc >> 8, c...
Update -Wno-aligned-allocation-unavailable for Clang 7. See
@@ -1284,7 +1284,11 @@ class GnuCompiler(Compiler): self.c_defines.append('-D_GNU_SOURCE') if self.target.is_ios: - self.c_defines.extend(['-D_XOPEN_SOURCE', '-D_DARWIN_C_SOURCE', '-D__IOS__=1', '-Wno-deprecated-declarations', '-Wno-aligned-allocation-unavailable']) + self.c_defines.extend(['-D_XOPEN_SOURCE', '-D_DARWI...
virtio: place the event fds on worker threads for pci device Type: improvement
@@ -225,6 +225,7 @@ virtio_vring_set_rx_queues (vlib_main_t *vm, virtio_if_t *vif) { vnet_main_t *vnm = vnet_get_main (); virtio_vring_t *vring; + u32 i = 0; vnet_hw_if_set_input_node (vnm, vif->hw_if_index, virtio_input_node.index); @@ -251,6 +252,16 @@ virtio_vring_set_rx_queues (vlib_main_t *vm, virtio_if_t *vif) vn...
[Bootloader] Subscribe to topic after BOOTLOADER_START reception
@@ -314,7 +314,10 @@ void LuosBootloader_SendCrc(bootloader_cmd_t response, uint8_t data) ready_msg.header.size = 2 * sizeof(uint8_t); ready_msg.data[0] = response; ready_msg.data[1] = data; - + node_t *node = Robus_GetNode(); + uint32_t tick = LuosHAL_GetSystick(); + while (LuosHAL_GetSystick() - tick < node->node_id)...
PHNT: Add RtlQueryTokenHostIdAsUlong64
@@ -7665,6 +7665,15 @@ RtlCheckTokenMembershipEx( _Out_ PBOOLEAN IsMember ); +// rev +NTSYSAPI +NTSTATUS +NTAPI +RtlQueryTokenHostIdAsUlong64( + _In_ HANDLE TokenHandle, + _Out_ PULONG64 HostId // (WIN://PKGHOSTID) + ); + // rev NTSYSAPI NTSTATUS
input_metric: use new api prototype for data ingestion
@@ -41,7 +41,8 @@ int flb_input_metrics_append(struct flb_input_instance *ins, } /* Append packed metrics */ - ret = flb_input_chunk_append_raw(ins, tag, tag_len, mt_buf, mt_size); + ret = flb_input_chunk_append_raw(ins, FLB_INPUT_METRICS, 0, + tag, tag_len, mt_buf, mt_size); cmt_encode_msgpack_destroy(mt_buf); return ...
BugID:17132091: [WhiteScan] Fix overrun issue for rtl8711b i2c_api.c
@@ -281,7 +281,7 @@ void i2c_init(i2c_t *obj, PinName sda, PinName scl) obj->I2Cx = I2C_DEV_TABLE[i2c_idx].I2Cx; /* Set I2C Device Number */ - if (obj->i2c_idx >= sizeof(I2CInitDat)) { + if (obj->i2c_idx >= (sizeof(I2CInitDat)/sizeof(I2C_InitTypeDef))) { return; }
Update xmake.lua Remove ".hpp" references
@@ -42,7 +42,7 @@ target("cyber_engine_tweaks") set_kind("shared") set_filename("cyber_engine_tweaks.asi") add_files("src/**.cpp") - add_headerfiles("src/**.h", "src/**.hpp", "build/CETVersion.h") + add_headerfiles("src/**.h", "build/CETVersion.h") add_includedirs("src/", "build/") add_syslinks("User32", "Version", "d3...
NetworkTools: Fix geoip status text
@@ -326,7 +326,7 @@ NTSTATUS GeoIPUpdateThread( while (PhHttpSocketReadData(httpContext, buffer, PAGE_SIZE, &bytesDownloaded)) { - // If we get zero bytes, the file was uploaded or there was an error. + // If we get zero bytes, the file was downloaded or there was an error. if (bytesDownloaded == 0) break; @@ -369,7 +3...
coro: simplify coroutine interface
@@ -62,12 +62,6 @@ struct flb_coro { cothread_t callee; void *data; - - /* - * Callback invoked before the thread is destroyed. Used to release - * any pending info in FLB_CORO_DATA(...). - */ - void (*cb_destroy) (void *); }; #ifdef FLB_CORO_STACK_SIZE @@ -90,9 +84,6 @@ static FLB_INLINE void flb_coro_yield(struct flb...
moba/optreg.c: use a scaling operator for isotropic TV
@@ -475,7 +475,30 @@ static void opt_reg_IRLL_configure(unsigned int N, const long dims[N], struct op auto grad = linop_grad_create(DIMS, img_dims, DIMS, regs[nr].xflags); + unsigned int flag_READ = (regs[nr].xflags & 1); + unsigned int flag_TIME = ((regs[nr].xflags >> 10) & 1); + unsigned int flag_TIME2 = ((regs[nr].x...
defconfig: enable IPv6 packet fragment option This patch enables IPv6 packet fragment option in artik053/nettest and sidk_s5jt200/ipv6 defconfigs. CONFIG_NET_IPv6_FRAG=y
@@ -586,7 +586,7 @@ CONFIG_NET_IPV4_REASS_MAXAGE=5 CONFIG_NET_IPv6=y CONFIG_NET_IPv6_NUM_ADDRESSES=3 # CONFIG_NET_IPv6_FORWARD is not set -# CONFIG_NET_IPv6_FRAG is not set +CONFIG_NET_IPv6_FRAG=y CONFIG_NET_IPv6_REASS=y CONFIG_NET_IPV6_REASS_MAXAGE=60 CONFIG_NET_IPv6_SEND_ROUTER_SOLICIT=y
Make number syntax a bit stricter - no leading underscores and no underscores in exponent.
@@ -308,8 +308,9 @@ int janet_scan_number( } else if (base == 10 && (*str == 'E' || *str == 'e')) { foundexp = 1; break; - } else if (*str != '_') { - /* underscores are ignored - can be used for separator */ + } else if (*str == '_') { + if (!seenadigit) goto error; + } else { int digit = digit_lookup[*str & 0x7F]; if...