message
stringlengths
6
474
diff
stringlengths
8
5.22k
fs/partiton: add sanity check mmcsd_spi don't support ioctl when blocksize is zero, will cause crash.
@@ -155,10 +155,12 @@ int parse_block_partition(FAR const char *path, state.mtd = NULL; - ret = state.blk->u.i_bops->ioctl( - state.blk, MTDIOC_GEOMETRY, (unsigned long)(uintptr_t)&mgeo); - if (ret >= 0) + if (state.blk->u.i_bops->ioctl != NULL && + state.blk->u.i_bops->ioctl(state.blk, MTDIOC_GEOMETRY, + (unsigned lon...
dm-hook: mutate screened before giving fact Fixes an issue where the subscription update would contain stale data
?> =(1 ~(wyt by nodes)) =/ ship-screen (~(get ju screened) src.bowl) =. ship-screen (~(uni in ship-screen) (normalize-incoming nodes)) - :_ state(screened (~(put by screened) src.bowl ship-screen)) + =. screened (~(put by screened) src.bowl ship-screen) + :_ state =/ =action:hook [%pendings ~(key by screened)] :- (fact...
Replace transformation of warnings to errors in elektra.c with elektra_error.c
#include "kdbhelper.h" #include "kdblogger.h" #include "kdbprivate.h" -#include <stdio.h> #include <stdlib.h> #ifdef __cplusplus @@ -119,36 +118,20 @@ Elektra * elektraOpen (const char * application, KeySet * defaults, KeySet * con const int kdbGetResult = kdbGet (kdb, config, parentKey); - // Look for warnings in the ...
opae.io: fix subsystem device ID for d5005 It was errneously set to 0x138f. It should be 0x138d.
@@ -427,7 +427,7 @@ fpga_devices = { pci.make_id(0x8086, 0xbcce, 0x8086, 0x17d4): "Intel C6100 ADP", pci.make_id(0x8086, 0xbccf, 0x8086, 0x17d4): "Intel C6100 ADP VF", pci.make_id(0x8086, 0xbcce, 0x8086, 0x138d): "Intel D5005 ADP", - pci.make_id(0x8086, 0xbccf, 0x8086, 0x138e): "Intel D5005 ADP VF", + pci.make_id(0x808...
Fix mesh attributes;
#include "graphics/mesh.h" #include "graphics/graphics.h" #include <stdlib.h> +#include <stdio.h> static void lovrMeshBindAttributes(Mesh* mesh) { Shader* shader = lovrGraphicsGetShader(); @@ -17,7 +18,8 @@ static void lovrMeshBindAttributes(Mesh* mesh) { vec_foreach(&mesh->format, attribute, i) { int location = lovrSh...
Fix dirtied sittingToStanding matrix;
@@ -21,8 +21,9 @@ static void onRequestAnimationFrame(void* userdata) { float projection[16]; float transform[16]; + float sittingToStanding[16]; - mat4 sittingToStanding = emscripten_vr_get_sitting_to_standing_matrix(); + mat4_set(sittingToStanding, emscripten_vr_get_sitting_to_standing_matrix()); mat4_invert(sittingT...
[core] fix bug in FastCGI uploads (thx zoon01 and ms49434) x-ref: "Memory Growth with PUT and full buffered streams"
@@ -2110,11 +2110,12 @@ handler_t gw_handle_subrequest(request_st * const r, void *p_d) { if ((0 != hctx->wb.bytes_in || -1 == hctx->wb_reqlen) && !chunkqueue_is_empty(&r->reqbody_queue)) { - if (hctx->stdin_append - && chunkqueue_length(&hctx->wb) < 65536 - 16384) { + if (hctx->stdin_append) { + if (chunkqueue_length(...
doc: add v1.0 doc menu to master Update the /latest documents with a menu choice for the 1.0 release docs.
@@ -189,6 +189,7 @@ else: html_context = { 'current_version': current_version, 'versions': ( ("latest", "/latest/"), + ("1.0", "/1.0/"), ("0.8", "/0.8/"), ("0.7", "/0.7/"), ("0.6", "/0.6/"),
ci: update cmake for travis
@@ -5,7 +5,13 @@ compiler: os: - linux - osx - +addons: + apt: + sources: + - george-edison55-precise-backports # cmake 3.2.3 / doxygen 1.8.3 + packages: + - cmake + - cmake-data env: - FLB_MEM="-DFLB_JEMALLOC=On" - FLB_MEM="-DFLB_JEMALLOC=Off"
gk110: Add missing flags for addop3b LIMM form Results from nvdisasm: 41000000: IADD32I.X R0, R0, 0x0 40800000: IADD32I R0.CC, R0, 0x0
@@ -895,6 +895,7 @@ F1(acout32, 0x32, CC) F1(acout37, 0x37, CC) F1(acin2e, 0x2e, CC) F1(acin34, 0x34, CC) +F1(acin38, 0x38, CC) F1(acin3c, 0x3c, CC) F1(shiftamt, 0x2c, N("shiftamt")) @@ -1585,7 +1586,7 @@ static struct insn tabm[] = { }; static struct insn tabi[] = { - { 0x4000000000000001ull, 0xf580000000000003ull, T(...
include/wireless.h: Format with clang-format BRANCH=none TEST=none
#include "common.h" /* Wireless power state for wireless_set_state() */ -enum wireless_power_state { - WIRELESS_OFF, - WIRELESS_SUSPEND, - WIRELESS_ON -}; +enum wireless_power_state { WIRELESS_OFF, WIRELESS_SUSPEND, WIRELESS_ON }; /** * Set wireless power state. @@ -23,7 +19,9 @@ enum wireless_power_state { #ifdef CONF...
Improve Windows build.
@@ -103,7 +103,7 @@ read_random(void *buf, size_t size) position = 0; while (position < size) { if (rand_s(&randval) == 0) { - remaining = MIN(count - i, sizeof(unsigned int)); + remaining = MIN(size - position, sizeof(unsigned int)); memcpy((char *)buf + position, &randval, remaining); position += sizeof(unsigned int)...
chat: fix station string format
@@ -44,7 +44,10 @@ export class ChatScreen extends Component { componentDidUpdate(prevProps, prevState) { const { props, state } = this; - const station = `/${props.match.params.ship}/${props.match.params.station}` + const station = + props.match.params[1] === undefined ? + `/${props.match.params.ship}/${props.match.pa...
Add minor changes to `pyto_ui`
@@ -4039,7 +4039,7 @@ class TextField(Control): """ The text contained in the Text Field. - :rtype: + :rtype: str """ return str(self.__py_view__.text) @@ -4258,8 +4258,7 @@ def __pil_image_from_ui_image__(image): img_str = str(image.data.base64EncodedStringWithOptions(0)) msg = base64.b64decode(img_str) - with io.Byte...
merge pull request call `SSL_CTX_set_ecdh_auto` only when available
@@ -194,7 +194,10 @@ static int setup_ssl(const char *cert_file, const char *key_file, const char *ci 86400); h2o_socket_ssl_async_resumption_setup_ctx(accept_ctx.ssl_ctx); } + +#ifdef SSL_CTX_set_ecdh_auto SSL_CTX_set_ecdh_auto(accept_ctx.ssl_ctx, 1); +#endif /* load certificate and private key */ if (SSL_CTX_use_cert...
Plugin Ordering: Improve formatting of table
@@ -52,16 +52,18 @@ names to be referred to in the contract. Here you see a table that contains all names: - 0 prerollback getresolver setresolver - 1 prerollback pregetstorage presetstorage - 2 prerollback pregetstorage presetstorage - 3 prerollback pregetstorage presetstorage - 4 prerollback pregetstorage presetstora...
Updating aomp_common_vars for 11.5-1 dev.
@@ -19,18 +19,10 @@ ROCM_VERSION=${ROCM_VERSION:-3.5.0} # Set the AOMP VERSION STRING and AOMP_PROJECT_REPO_BRANCH. AOMP_VERSION=${AOMP_VERSION:-"11.5"} -AOMP_VERSION_MOD=${AOMP_VERSION_MOD:-"0"} +AOMP_VERSION_MOD=${AOMP_VERSION_MOD:-"1"} AOMP_VERSION_STRING=${AOMP_VERSION_STRING:-"$AOMP_VERSION-$AOMP_VERSION_MOD"} exp...
Enhance description for MBEDTLS_PSA_CRYPTO_CONFIG Provided detailed description for MBEDTLS_PSA_CRYPTO_CONFIG so that it is more clear to the user when the feature should be enabled or disabled. It also mentions where to look for PSA crypto config settings; include/psa/crypto_config.h. Removed some other related commen...
* * Enable support for the experimental PSA crypto driver interface. * - * Requires: MBEDTLS_PSA_CRYPTO_C or MBEDTLS_PSA_CRYPTO_CONFIG + * Requires: MBEDTLS_PSA_CRYPTO_C * * \warning This interface is experimental and may change or be removed * without notice. /** * \def MBEDTLS_PSA_CRYPTO_CONFIG * - * This setting sho...
modnxtdevices: measure only temperature A temperature sensor measures temperature, not celcius/fahrenheit/kelvin.
@@ -366,38 +366,18 @@ STATIC mp_obj_t nxtdevices_TemperatureSensor_make_new(const mp_obj_type_t *type, return MP_OBJ_FROM_PTR(self); } -static float nxtdevices_TemperatureSensor_read(pbdevice_t *pbdev) { - int32_t celcius_scaled; - pbdevice_get_values(pbdev, PBIO_IODEV_MODE_NXT_TEMPERATURE_SENSOR_CELCIUS, &celcius_scal...
Shader flags can start with flag_; It will be ignored for matching purposes.
@@ -1557,6 +1557,7 @@ static void lovrShaderInit(Shader* shader) { for (uint32_t i = 0; i < shader->info.flagCount; i++) { ShaderFlag* flag = &shader->info.flags[i]; uint32_t hash = flag->name ? (uint32_t) hash64(flag->name, strlen(flag->name)) : 0; + for (uint32_t j = 0; j < shader->flagCount; j++) { if (hash ? (hash ...
Fixed wrong argument number in lookup's GETFROMSTACK
@@ -480,7 +480,7 @@ int syscalls_lookup(void *ustack) GETFROMSTACK(ustack, char *, name, 0); GETFROMSTACK(ustack, oid_t *, file, 1); - GETFROMSTACK(ustack, oid_t *, dev, 1); + GETFROMSTACK(ustack, oid_t *, dev, 2); return proc_portLookup(name, file, dev); }
[account] Bugfix, miss init account list
@@ -27,7 +27,6 @@ type AccountService struct { func NewAccountService(cfg *cfg.Config) *AccountService { actor := &AccountService{ cfg: cfg, - accounts: []*types.Account{}, } actor.BaseComponent = component.NewBaseComponent(message.AccountsSvc, actor, log.NewLogger("account")) @@ -36,6 +35,15 @@ func NewAccountService(...
minor edit for bos section
@@ -6,7 +6,7 @@ master} host. Alternatively, if choosing to use a pre-installed server, please verify that it is provisioned with the required \baseOS{} distribution. \\ Prior to beginning the installation process of \OHPC{} components, several additional -considerations are noted here for the local host configuration....
Match gl PushPopStyle count with vulkan's
@@ -136,7 +136,7 @@ void imgui_render() position_layer(params, window_size, vp[2], vp[3]); render_imgui(sw_stats, params, window_size, vp[2], vp[3]); - ImGui::PopStyleVar(2); + ImGui::PopStyleVar(3); ImGui::Render(); ImGui_ImplOpenGL3_RenderDrawData(ImGui::GetDrawData());
chat-editor: actually use controlled component
@@ -5,7 +5,7 @@ import 'codemirror/addon/hint/show-hint'; import 'codemirror/lib/codemirror.css'; import 'codemirror/mode/markdown/markdown'; import React, { useRef, ClipboardEvent, useEffect, useImperativeHandle } from 'react'; -import { UnControlled as CodeEditor } from 'react-codemirror2'; +import { Controlled as Co...
Don't add default autoconf flags to build By default, it adds something like `-O2 -g` to the cflags. That conflicts with the flags in Makefile.am, which specifies -O3. This commit removes the default flags so we only get what we actually specify.
@@ -10,6 +10,9 @@ AC_PREREQ([2.69]) AC_INIT([cglm], [0.6.1], [info@recp.me]) AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects serial-tests]) +# Don't use the default cflags (-O2 -g), we set ours manually in Makefile.am. +: ${CFLAGS=""} + AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_SRCDIR([src/]) AC_CONFIG_HEADERS([config...
Improved build instructions, add extra install phase with environment variable for home in order to work with rustup properly.
@@ -615,9 +615,12 @@ In order to end this section, here's a list of ideas that are not completely imp Follow these steps to build and install **METACALL** manually. ``` sh -git clone --recursive https://github.com/metacall/core.git +git clone https://github.com/metacall/core.git mkdir core/build && cd core/build cmake ...
Libtarget.mk: deliver external folder path at buiding external EXTDIR definition is used in external folder so that we should deliver it when external is building.
@@ -170,7 +170,7 @@ $(LIBRARIES_DIR)$(DELIM)libframework$(LIBEXT): $(FRAMEWORK_LIB_DIR)$(DELIM)libfr $(Q) install $(FRAMEWORK_LIB_DIR)$(DELIM)libframework$(LIBEXT) $(LIBRARIES_DIR)$(DELIM)libframework$(LIBEXT) $(EXTDIR)$(DELIM)libexternal$(LIBEXT): context - $(Q) $(MAKE) -C $(EXTDIR) TOPDIR="$(TOPDIR)" libexternal$(LIB...
node: prettify node type names
@@ -18,13 +18,13 @@ void node_init(struct sway_node *node, enum sway_node_type type, void *thing) { const char *node_type_to_str(enum sway_node_type type) { switch (type) { case N_ROOT: - return "N_ROOT"; + return "root"; case N_OUTPUT: - return "N_OUTPUT"; + return "output"; case N_WORKSPACE: - return "N_WORKSPACE"; +...
machinarium: avoid errno setting to reduce __errno_location() calls
@@ -32,9 +32,6 @@ static inline void mm_errno_set(int value) { mm_scheduler_current(&mm_self->scheduler)->errno_ = value; - - /* update system errno as well */ - errno = value; } static inline int
GraphContentWide: type guard with conditionals
@@ -24,8 +24,7 @@ function GraphContentWideInner( return ( <Box {...rest}> {post.contents.map((content: Content, i) => { - switch (Object.keys(content)[0]) { - case 'text': + if ('text' in content) { return ( <TextContent key={i} @@ -35,9 +34,9 @@ function GraphContentWideInner( content={content} /> ); - case 'code': +...
Addiitional check - same conditions
@@ -1046,7 +1046,7 @@ void static ProcessGetData(CNode* pfrom, const Consensus::Params& consensusParam // chain if they are valid, and no more than a max reorg depth than the best header // chain we know about. send = mi->second->IsValid(BLOCK_VALID_SCRIPTS) && - StaleBlockRequestAllowed(mi->second, consensusParams) &&...
Avoid use of deprecated BIGNUM API.
# include <ifaddrs.h> #endif // !_WIN32 #ifdef HAVE_OPENSSL +# include <openssl/bn.h> # include <openssl/err.h> # include <openssl/ssl.h> # include <openssl/x509.h> @@ -1916,7 +1917,7 @@ tls_make_certificate( # ifdef HAVE_OPENSSL bool result = false; // Result of operations EVP_PKEY *pkey; // Private key - BIGNUM bn; /...
more of cycle
@@ -10,9 +10,11 @@ void cycle() Concept *c = Memory_getClosestConcept(&e); FIFO *fifo = e->type == EVENT_TYPE_BELIEF ? &c->event_beliefs : &c->event_goals; FIFO_AddAndRevise(e, fifo); - // e->attention = Attention_forgetTask(&e->attention); - // PriorityQueue_Push(&events, e-> - //todo there is more that needs to happe...
Fix palette select button preview when set to global default and global is DMG palette
@@ -8,6 +8,7 @@ import { SelectMenu, selectMenuStyleProps } from "../ui/form/Select"; import { RelativePortal } from "../ui/layout/RelativePortal"; import { PaletteSelect } from "./PaletteSelect"; import navigationActions from "../../store/features/navigation/navigationActions"; +import { DMG_PALETTE } from "../../cons...
fixed memory bug in output.c
@@ -1556,7 +1556,7 @@ void WriteOutput(BODY *body,CONTROL *control,FILES *files,OUTPUT *output,SYSTEM fprintf(fp,"\n"); fclose(fp); } - // XXX Module-specific output should NOT be present in this file + // XXX Pizza should NOT be present in this file /* Grid outputs, currently only set up for POISE */ if (body[iBody].b...
mqtt/docs: Mention removal of user_context in 5.x migration guide update CN for migration-guides/release-5.x/5.0/protocols.rst Closes
@@ -177,9 +177,11 @@ Most common configurations are listed below: - Security related to broker verification in :cpp:member:`esp_mqtt_client_config_t::broker::verification` - Client username is set in :cpp:member:`esp_mqtt_client_config_t::credentials::username` +- :cpp:type:`esp_mqtt_client_config_t` no longer supports...
utests MAINTAINCE add test for anydata containing character <.
@@ -166,8 +166,19 @@ test_anydata(void **state) " </cont>\n" "</any>\n"; CHECK_LYD_STRING(tree, LYD_PRINT_WITHSIBLINGS, data); + lyd_free_all(tree); + data = "<any xmlns=\"urn:tests:types\">\n" + " <cont>\n" + " <elem1 xmlns=\"urn:tests:defs\" attr=\"&lt;test\">\n" + " ahoj jak se vede &lt; how are you" + " </elem1>\n"...
Update tests/suites/test_suite_ecdsa.function
@@ -479,9 +479,7 @@ void ecdsa_verify( int grp_id, char * x, char * y, char * r, char * s, data_t * mbedtls_mpi_init( &sig_s ); /* Prepare ECP group context */ - curve_info = mbedtls_ecp_curve_info_from_grp_id( grp_id ); - TEST_ASSERT( curve_info != NULL ); - TEST_EQUAL( mbedtls_ecp_group_load( &ctx.grp, curve_info->gr...
Fixing syntax error in makefile Fixing syntax issue in Makefile.power added by recent commit
@@ -12,7 +12,7 @@ endif ifeq ($(CORE), POWER10) ifneq ($(C_COMPILER), PGI) CCOMMON_OPT += -Ofast -mcpu=power10 -mtune=power10 -mvsx -fno-fast-math -ifeq ($(F_COMPILER, IBM) +ifeq ($(F_COMPILER), IBM) FCOMMON_OPT += -O2 -qrecur -qnosave else FCOMMON_OPT += -O2 -frecursive -mcpu=power10 -mtune=power10 -fno-fast-math
Install espresso in build-toolchain-extra.sh
@@ -102,6 +102,14 @@ CC= CXX= module_all riscv-pk --prefix="${RISCV}" --host=riscv${XLEN}-unknown-elf echo '==> Installing RISC-V tests' module_all riscv-tests --prefix="${RISCV}/riscv${XLEN}-unknown-elf" --with-xlen=${XLEN} +echo '==> Installing espresso logic minimizer' +( + cd $RDIR + git submodule update --init --c...
stm32/powerctrl: Disable RTC write protection before changing flags.
@@ -689,6 +689,10 @@ void powerctrl_enter_standby_mode(void) { // save RTC interrupts uint32_t save_irq_bits = RTC->CR & CR_BITS; + // disable register write protection + RTC->WPR = 0xca; + RTC->WPR = 0x53; + // disable RTC interrupts RTC->CR &= ~CR_BITS; @@ -714,6 +718,9 @@ void powerctrl_enter_standby_mode(void) { //...
sign method rework for native message bytes
@@ -626,9 +626,6 @@ public final class WalletConnector { return Result.failure(WalletConnectorError(core: status)) } - let digestData = Data(bytes: digestBytes!, count: digestLength) - return digestData.withUnsafeBytes { (digestDataBytes: UnsafeRawBufferPointer) -> Result<(digest: Digest?, signature: Signature), Wallet...
bumping openmpi version to v1.10.6
@@ -66,7 +66,7 @@ Name: %{pname}-psm2-%{compiler_family}%{PROJ_DELIM} Name: %{pname}-%{compiler_family}%{PROJ_DELIM} %endif -Version: 1.10.4 +Version: 1.10.6 Release: 1 License: BSD-3-Clause Group: %{PROJ_NAME}/mpi-families
Add missing ECN handling for delayed handshake packets
@@ -6794,10 +6794,10 @@ static int conn_recv_non_probing_pkt_on_new_path(ngtcp2_conn *conn, * Frame that is not allowed in Handshake packet is received. */ static int -conn_recv_delayed_handshake_pkt(ngtcp2_conn *conn, const ngtcp2_pkt_hd *hd, - size_t pktlen, const uint8_t *payload, - size_t payloadlen, ngtcp2_tstamp ...
pybricks.hubs.MoveHub.imu: implement up
@@ -138,6 +138,49 @@ static void motion_get_acceleration(int8_t *data) { data[1] = -data[1]; } +// This is an integer version of pybricks._common.IMU.up +STATIC mp_obj_t hubs_MoveHub_IMU_up(mp_obj_t self_in) { + + int8_t values[3]; + motion_get_acceleration(values); + + // Find index and sign of maximum component + int...
Check shaderblock offset exists before reading. Prevents a segfault
@@ -19,8 +19,9 @@ static int l_lovrShaderBlockGetSize(lua_State* L) { static int l_lovrShaderBlockGetOffset(lua_State* L) { ShaderBlock* block = luax_checktype(L, 1, ShaderBlock); - const char* field = luaL_checkstring(L, 2); - const Uniform* uniform = lovrShaderBlockGetUniform(block, field); + const char* name = luaL_...
app_http_tls_cb: Fix double-free in case TLS not used
@@ -2464,9 +2464,10 @@ static const char *tls_error_hint(void) /* HTTP callback function that supports TLS connection also via HTTPS proxy */ BIO *app_http_tls_cb(BIO *bio, void *arg, int connect, int detail) { - if (connect && detail) { /* connecting with TLS */ APP_HTTP_TLS_INFO *info = (APP_HTTP_TLS_INFO *)arg; SSL_...
add 'c' to 'msqui'
@@ -4,7 +4,7 @@ lttng destroy msquic 2> /dev/null dirname="msquic_lttng" num=`find ./* -maxdepth 0 -name "$dirname*" | wc -l` -mkdir $dirname$num && lttng create msqui -o=./$dirname$num && sessionCreated=$? && lttng enable-event --userspace "CLOG_*" && lttng add-context --userspace --type=vpid --type=vtid && lttng star...
Bitcoin Accounts are deprecated and should not be used.
@@ -227,13 +227,10 @@ namespace MiningCore.Blockchain.Bitcoin return; logger.Info(() => $"[{LogCategory}] Paying out {FormatAmount(balances.Sum(x => x.Amount))} to {balances.Length} addresses"); - var addressName = poolConfig.Extra?.ContainsKey("addressName") == true - ? poolConfig.Extra["addressName"] //name of accoun...
Use one mutex to lock both concept file and template
@@ -728,16 +728,16 @@ static grib_action* grib_parse_stream(grib_context* gc, const char* filename) grib_concept_value* grib_parse_concept_file( grib_context* gc,const char* filename) { GRIB_MUTEX_INIT_ONCE(&once,&init); - GRIB_MUTEX_LOCK(&mutex_concept); + GRIB_MUTEX_LOCK(&mutex_file); gc = gc ? gc : grib_context_get_...
Fix main heap cookie on macOS
@@ -364,7 +364,9 @@ void mi_process_init(void) mi_attr_noexcept { _mi_heap_main.thread_id = _mi_thread_id(); _mi_verbose_message("process init: 0x%zx\n", _mi_heap_main.thread_id); uintptr_t random = _mi_random_init(_mi_heap_main.thread_id) ^ (uintptr_t)h; + #ifndef __APPLE _mi_heap_main.cookie = (uintptr_t)&_mi_heap_ma...
CC1200 set_channel: compute channel within bounds from any input channel
@@ -2115,6 +2115,9 @@ set_channel(uint8_t channel) uint8_t was_off = 0; uint32_t freq; + channel %= (CC1200_RF_CFG.max_channel - CC1200_RF_CFG.min_channel + 1); + channel += CC1200_RF_CFG.min_channel; + #if 0 /* * We explicitly allow a channel update even if the channel does not change.
fix acceleration_interval 0 bug
@@ -739,6 +739,10 @@ static scs_int validate(const ScsData *d, const ScsCone *k, scs_printf("scale must be positive (1 works well).\n"); return -1; } + if (stgs->acceleration_interval <= 0) { + scs_printf("acceleration_interval must be positive (10 works well).\n"); + return -1; + } return 0; } #endif
Remove -x from cibuild.sh call in CI since this will abort the build on first error and we do not want that.
@@ -162,7 +162,7 @@ jobs: with: run: | cd sources/testing - ./cibuild.sh -x testlist/${{matrix.boards}}.dat + ./cibuild.sh testlist/${{matrix.boards}}.dat macOS: runs-on: macos-10.15 @@ -202,4 +202,4 @@ jobs: - name: Run Builds run: | cd sources/testing - ./cibuild.sh -i -x testlist/${{matrix.boards}}.dat + ./cibuild.s...
i2c: modify internal impl to ensure the cmd will not be modified related to:
@@ -1142,9 +1142,9 @@ static void IRAM_ATTR i2c_master_cmd_begin_static(i2c_port_t i2c_num) #if CONFIG_SPIRAM_USE_MALLOC //Check whether read or write buffer in cmd_link is internal. -static bool is_cmd_link_buffer_internal(i2c_cmd_link_t *link) +static bool is_cmd_link_buffer_internal(const i2c_cmd_link_t *link) { - i...
Limit the reporting of closed streams, so as to reduce the number of printf calls.
@@ -361,11 +361,13 @@ int picoquic_demo_client_callback(picoquic_cnx_t* cnx, if (fin_or_event == picoquic_callback_stream_fin) { if (picoquic_demo_client_close_stream(ctx, stream_ctx)) { fin_stream_id = stream_id; + if (stream_id <= 64) { fprintf(stdout, "Stream %d ended after %d bytes\n", (int)stream_id, (int)stream_c...
Change default value of INCLUDE_xTaskGetCurrentTaskHandle
#endif #ifndef INCLUDE_xTaskGetCurrentTaskHandle - #define INCLUDE_xTaskGetCurrentTaskHandle 0 + #define INCLUDE_xTaskGetCurrentTaskHandle 1 #endif #if configUSE_CO_ROUTINES != 0
add minimal firesim configs for testing fpga sims
@@ -62,12 +62,8 @@ class WithNIC extends icenet.WithIceNIC(inBufFlits = 8192, ctrlQueueDepth = 64) class WithNVDLALarge extends nvidia.blocks.dla.WithNVDLA("large") class WithNVDLASmall extends nvidia.blocks.dla.WithNVDLA("small") -// Non-frequency tweaks that are generally applied to all firesim configs -class WithFir...
Changed order of struct initializer to avoid compiler error
@@ -86,8 +86,8 @@ typedef struct .depth = _depth, \ .item_size = sizeof(_type), \ .overwritable = _overwritable, \ - .max_pointer_idx = 2*(_depth)-1, \ .non_used_index_space = UINT16_MAX - (2*(_depth)-1), \ + .max_pointer_idx = 2*(_depth)-1, \ } #define TU_FIFO_DEF(_name, _depth, _type, _overwritable) \
[libcpu]modify GPL license to Apache 2.0
#ifndef __ARMV7_H__ #define __ARMV7_H__ /* - * COPYRIGHT (C) 2013-2014, Shanghai Real-Thread Technology Co., Ltd + * Copyright (c) 2006-2021, RT-Thread Development Team * - * All rights reserved. + * SPDX-License-Identifier: Apache-2.0 * - * This program is free software; you can redistribute it and/or modify - * it un...
More phtread fixes
@@ -683,7 +683,7 @@ static void picoquic_set_abs_delay(struct timespec* ts, uint64_t microsec_wait) clock_gettime(CLOCK_REALTIME, ts); ts->tv_sec += (unsigned long)(microsec_wait / 1000000); ts->tv_nsec += (unsigned long)((microsec_wait % 1000000)*1000); - if (ts->tv_usec > 1000000000) { + if (ts->tv_nsec > 1000000000)...
Add Julia installation docs
Julia ===== -TODO + +Install SCS via the Julia package manager: + +.. code:: julia + + import Pkg + Pkg.add("SCS") + +This will install the `SCS.jl <https://github.com/jump-dev/SCS.jl>`_ +package, along with the necessary SCS binary for your system. + +For instructions on how to use a custom version of SCS, consult the...
cmake : Allow projects outside AFR source tree to link IDF component libraries This should also fix support for adding extra components by setting IDF_EXTRA_COMPONENT_DIRS Also corrected IDF_PATH supplied to `monitor` target
@@ -255,13 +255,28 @@ set(IDF_BUILD_ARTIFACTS_DIR ${CMAKE_BINARY_DIR}) set(CMAKE_STATIC_LIBRARY_PREFIX "lib") +# If external project is set do not link IDF components to aws target +if (NOT IDF_PROJECT_EXECUTABLE) + set(IDF_PROJECT_EXECUTABLE ${exe_target}) +endif() + +set_property(GLOBAL PROPERTY IDF_PROJECT_EXECUTABL...
remove comments in Chinese and keep the code style
/* - * Copyright (c) 2006-2019, RT-Thread Development Team + * Copyright (c) 2006-2020, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 *
chore(docs) handle version names without dots
@@ -20,10 +20,11 @@ function add_version_selector() .then(res => res.text()) .then(text => { const versions = text.split("\n").filter(version => version.trim().length > 0); - p = document.getElementById("rtd-search-form").parentElement; + let p = document.getElementById("rtd-search-form").parentElement; + const version...
vlib: remove unused simple counters fields Type: improvement
typedef struct { counter_t **counters; /**< Per-thread u64 non-atomic counters */ - counter_t *value_at_last_serialize; /**< Values as of last serialize. */ - u32 last_incremental_serialize_index; /**< Last counter index - serialized incrementally. */ - char *name; /**< The counter collection's name. */ char *stat_segm...
Simplify futures.
use std -use "mutex" -use "condvar" -use "atomic" +use "sem" pkg thread = type future(@a) = struct - mtx : mutex - cv : cond - set : bool + sem : sem val : @a ;; generic mkfut : (-> future(@a)#) generic futput : (fut : future(@a)#, val : @a -> void) generic futget : (fut : future(@a)# -> @a) - generic futpeek : (fut : ...
Add container name to docker compose.
@@ -8,6 +8,7 @@ version: "3" services: deps: image: metacall/core:deps + container_name: metacall_core_deps build: context: tools dockerfile: Dockerfile.deps @@ -21,6 +22,7 @@ services: core: image: metacall/core + container_name: metacall_core build: context: . dockerfile: Dockerfile
Rename -nokvm to -noaccel. Add support for hvf acceleration on macOS
@@ -61,17 +61,17 @@ distclean: clean ############################################################################## # tests -.PHONY: test test-nokvm +.PHONY: test test-noaccel -test test-nokvm: mkfs boot stage3 +test test-noaccel: mkfs boot stage3 $(Q) $(MAKE) -C test test $(Q) $(MAKE) runtime-tests$(subst test,,$@) RU...
fixed typo in create_ip: set BLOCK_RAM B port to 256
@@ -76,7 +76,7 @@ if { $ddr3_used == TRUE } { if { $bram_used == TRUE } { #create BlockRAM create_ip -name blk_mem_gen -vendor xilinx.com -library ip -version 8.3 -module_name block_RAM -dir $ip_dir - set_property -dict [list CONFIG.Interface_Type {AXI4} CONFIG.Write_Width_A {256} CONFIG.AXI_ID_Width $axi_id_width CONF...
gtpu: don't register udp ports unless a tunnel is created
@@ -620,6 +620,17 @@ int vnet_gtpu_add_del_tunnel if (sw_if_indexp) *sw_if_indexp = sw_if_index; + if (a->is_add) + { + /* register udp ports */ + if (!is_ip6 && !udp_is_valid_dst_port (UDP_DST_PORT_GTPU, 1)) + udp_register_dst_port (gtm->vlib_main, UDP_DST_PORT_GTPU, + gtpu4_input_node.index, /* is_ip4 */ 1); + if (is...
flash_fp_mcu: Add config for guybrush BRANCH=none TEST=None.
@@ -384,6 +384,22 @@ config_zork() { readonly GPIO_PWREN=-1 } +config_guybrush() { + check_gpio_chip_exists "gpiochip320" + + readonly TRANSPORT="UART" + + readonly DEVICE="/dev/ttyS1" + + # FPMCU RST_ODL is on AGPIO 11 = 320 + 11 = 331 + readonly GPIO_NRST=331 + # FPMCU BOOT0 is on AGPIO 144 = 320 + 144 = 464 + readon...
BugID:23251508: Fix newlibc does not define HAVE_FCNTL
@@ -729,6 +729,8 @@ static inline int eventfd(unsigned int initval, int flags) #define select(maxfdp1,readset,writeset,exceptset,timeout) lwip_select(maxfdp1,readset,writeset,exceptset,timeout) /** @ingroup socket */ #define ioctlsocket(s,cmd,argp) lwip_ioctl(s,cmd,argp) +/* This is a fix for newlibc does not define HA...
Add support for expandNotificationsPanel() variant Some custom vendor ROM added an int as a parameter. Fixes <https://github.com/Genymobile/scrcpy/issues/2551>
@@ -11,6 +11,7 @@ public class StatusBarManager { private final IInterface manager; private Method expandNotificationsPanelMethod; + private boolean expandNotificationPanelMethodCustomVersion; private Method expandSettingsPanelMethod; private boolean expandSettingsPanelMethodNewVersion = true; private Method collapsePa...
NN: apply q7 fix from upstream.
* Title: arm_softmax_q7.c * Description: Q7 softmax function * - * $Date: 17. January 2018 + * $Date: 20. February 2018 * $Revision: V.1.0.0 * * Target Processor: Cortex-M cores @@ -64,43 +64,56 @@ void arm_softmax_q7(const q7_t * vec_in, const uint16_t dim_vec, q7_t * p_out) { q31_t sum; int16_t i; - q15_t min, max; -...
STM32F042K6 Board reported to work, by
@@ -47,6 +47,7 @@ STLink v2-1 (as found on the Nucleo boards), known working targets: * Nucleo-L152RE board * [Nucleo-L476RG board](http://www.st.com/en/evaluation-tools/nucleo-l476rg.html) * STM32L452RET6 (STM32 Nucleo-L452RE board) +* STM32F042K6 (STM32 Nucleo-32 Board) Please report any and all known working combina...
fixed stereo volume regs
@@ -1255,8 +1255,8 @@ static void sfx(tic_mem* memory, s32 index, s32 note, s32 pitch, tic_channel_dat const tic_waveform* waveform = &machine->sound.sfx->waveforms.items[wave]; memcpy(reg->waveform.data, waveform->data, sizeof(tic_waveform)); - tic_tool_poke4(&memory->ram.stereo.data, channelIndex*2, channel->volume.l...
travis: fix CMake using only macOS internal SDK bug
@@ -250,7 +250,7 @@ before_script: - | cd $TRAVIS_BUILD_DIR if [ "$TRAVIS_OS_NAME" = 'linux' ]; then - CMAKE_OPT+=(-DCMAKE_INSTALL_PREFIX="$PWD/install") + CMAKE_OPT+=(-DCMAKE_INSTALL_PREFIX="$PWD/install" -DCMAKE_OSX_SYSROOT="" -DCMAKE_OSX_DEPLOYMENT_TARGET="") export PATH=$PATH:"$PWD/install/bin" export LD_LIBRARY_PA...
Report resource usage at the end of recovery Reporting this has been rather useful in some recent recovery speedup work. It also seems like something that will be useful to the average DBA too. Author: David Rowley Discussion:
#include "utils/memutils.h" #include "utils/ps_status.h" #include "utils/relmapper.h" +#include "utils/pg_rusage.h" #include "utils/snapmgr.h" #include "utils/timestamp.h" @@ -7169,6 +7170,9 @@ StartupXLOG(void) { ErrorContextCallback errcallback; TimestampTz xtime; + PGRUsage ru0; + + pg_rusage_init(&ru0); InRedo = tr...
chat: prevent overlay panel from expanding
@@ -46,7 +46,7 @@ export class ProfileOverlay extends Component { if (!(top || bottom)) { bottom = `-${Math.round(OVERLAY_HEIGHT / 2)}px`; } - const containerStyle = { top, bottom, left: '100%' }; + const containerStyle = { top, bottom, left: '100%', maxWidth: '160px' }; const isOwn = window.ship === ship; @@ -79,7 +79...
Fix comment in heap.c The description of InsertPgAttributeTuple() does not match its handling of pg_attribute contents with NULL values for a long time, with making things more inconsistent. This adjusts the description to match the reality. Author: Daniel Gustafsson Discussion:
@@ -714,8 +714,8 @@ CheckAttributeType(const char *attname, * Construct and insert a new tuple in pg_attribute. * * Caller has already opened and locked pg_attribute. new_attribute is the - * attribute to insert. attcacheoff is always initialized to -1, attacl and - * attoptions are always initialized to NULL. + * attr...
nimble/ll: Fix own_addr_type when scanning Make sure scansm->own_addr_type is set corretly when scanning is enabling This fixes LL/DDI/SCN/BV-16
@@ -2923,6 +2923,10 @@ ble_ll_scan_set_enable(uint8_t *cmd, uint8_t ext) if (scansm->cur_phy == PHY_NOT_CONFIGURED) { scansm->cur_phy = i; + /* Take own_addr_type from the first configured PHY. + * Note: All configured PHYs shall have the same own_addr_type + */ + scansm->own_addr_type = scanphy->own_addr_type; } else ...
lets fit it in one 4k page
@@ -183,7 +183,7 @@ extern "C" { #define ALLOCA_ALIGN 63UL -#define NUM_BUFFERS MAX(64,(MAX_CPU_NUMBER * 2 * MAX_PARALLEL_NUMBER)) +#define NUM_BUFFERS MAX(50,(MAX_CPU_NUMBER * 2 * MAX_PARALLEL_NUMBER)) #ifdef NEEDBUNDERSCORE #define BLASFUNC(FUNC) FUNC##_
Fix alphabetization;
@@ -18,12 +18,12 @@ int l_lovrTimerInit(lua_State* L); extern const luaL_Reg lovrAnimator[]; extern const luaL_Reg lovrAudio[]; extern const luaL_Reg lovrBallJoint[]; +extern const luaL_Reg lovrBlob[]; extern const luaL_Reg lovrBoxShape[]; extern const luaL_Reg lovrCanvas[]; extern const luaL_Reg lovrCapsuleShape[]; ex...
remove duplicate/broken link
@@ -35,7 +35,6 @@ install the OpenSSL command line utility prior to using the script. ``` - To use the samples, we use [Eclipse Paho MQTT C client][Eclipse_Paho]. You can use the directions [here][VCPKG_DIRECTIONS] to set up VCPKG to download and manage linking the dependency. -- If you are having trouble with any of t...
clay: refactors +cancel-request, consistently accounting for TMI
:: we remove it from `ref` and tell the foreign ship to cancel as well. :: ++ cancel-request :: release request - ^+ . + ^+ ..cancel-request =^ wos/(list wove) qyx :_ (~(run by qyx) |=(a/(set duct) (~(del in a) hen))) %- ~(rep by qyx) |= {{a/wove b/(set duct)} c/(list wove)} ?.((~(has in b) hen) c [a c]) + :: ?~ ref =>...
let NET_CAN_RAW_FILTER_MAX depends on NET_CANPROTO_OPTIONS to prevent compiler errors
@@ -94,7 +94,7 @@ config NET_CAN_RAW_DEFAULT_TX_DEADLINE config NET_CAN_RAW_FILTER_MAX int "CAN_RAW_FILTER max filter count" default 32 - depends on NET_CAN_SOCK_OPTS + depends on NET_CANPROTO_OPTIONS ---help--- Maximum number of CAN_RAW filters that can be set per CAN connection.
meson: build with -Wno-unused-parameter Otherwise we get a ton of warnings about unused function parameters. The existing -Qunused-arguments seems to be clang specific.
@@ -123,8 +123,8 @@ c_args = [] foreach a : ['-Werror=implicit-function-declaration', '-Werror=missing-prototypes', '-Werror=return-type', '-Werror=incompatible-pointer-types', - '-fno-math-errno', - '-fno-trapping-math', '-Qunused-arguments'] + '-Wno-unused-parameter', '-Qunused-arguments', + '-fno-math-errno', '-fno-...
Adding CFLAGS to link commands to pass flags required by AddressSanitizer.
@@ -116,7 +116,7 @@ cat << END >> $NXT_MAKEFILE $NXT_BUILD_DIR/lib_unit_test: \$(NXT_LIB_UNIT_TEST_OBJS) \\ $NXT_BUILD_DIR/$NXT_LIB_STATIC \$(NXT_LIB_DEPS) \$(NXT_EXEC_LINK) -o $NXT_BUILD_DIR/lib_unit_test \\ - \$(NXT_LIB_UNIT_TEST_OBJS) \\ + \$(CFLAGS) \$(NXT_LIB_UNIT_TEST_OBJS) \\ $NXT_BUILD_DIR/$NXT_LIB_STATIC \\ $N...
[chainmaker][#436]remove BoatHlchainamkerClient struct
@@ -118,13 +118,6 @@ typedef struct TBoatTransactionPara { BoatKeyValuePair parameters[BOAT_HLCHAINMAKER_ARGS_MAX_NUM]; } BoatTransactionPara; - -typedef struct TBoatHlchainamkerClient { - - BCHAR* chain_id; - BCHAR* org_id; -} BoatHlchainamkerClient; - typedef struct TBoatHlchainamkerResult { BUINT32 code; char* messa...
use stack allocated memory to prevent accidental memory leaks
@@ -176,7 +176,7 @@ static void tls_server_handler( int rc, int sock ) { } // Get the CN field of an certificate -static char *get_common_name( const mbedtls_x509_crt *crt ) { +static int get_common_name( char buf[], size_t len, const mbedtls_x509_crt *crt ) { const mbedtls_x509_name *name; const char *short_name; int ...
Remove Hardcoded interface numbers from video descriptors Removing the Hardcoded interface numbers from the video descriptors allow the user to add other interfaces before or after the Video Control Interface and Video Streaming Interface
#define FRAME_RATE 10 enum { - ITF_NUM_VIDEO_CONTROL = 0, + ITF_NUM_VIDEO_CONTROL, ITF_NUM_VIDEO_STREAMING, ITF_NUM_TOTAL }; @@ -74,19 +74,19 @@ enum { TUD_VIDEO_DESC_CS_VS_FMT_UNCOMPR(_fmtidx, _numfmtdesc, TUD_VIDEO_GUID_I420, 12, _frmidx, _asrx, _asry, _interlace, _cp) #define TUD_VIDEO_CAPTURE_DESCRIPTOR(_stridx, _e...
ruby: remove module name from ELEKTRA_PLUGIN_FUNCTION See for details.
#define RUBY_PLUGIN_NAME ruby #define RUBY_PLUGIN_NAME_STR "ruby" -#define RUBY_PLUGIN_FUNCTION(func) ELEKTRA_PLUGIN_FUNCTION (Ruby, func) +#define RUBY_PLUGIN_FUNCTION(func) ELEKTRA_PLUGIN_FUNCTION (func) extern "C" { #include <kdbplugin.h>
Update README with correct -ldflags value when building on Windows without Command Prompt window
@@ -135,7 +135,7 @@ You can also cross-compile to another OS. For example, to Windows: `CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc GOOS=windows GOARCH=amd64 go build -tags static -ldflags "-s -w"` -On Windows, if you would like to hide the Command Prompt window when running the statically-compiled program, you could appen...
lindar: define GPIO CCD_MODE_ODL Define PIN(E,5) CCD_MODE_ODL to input. BRANCH=firmware-volteer-13672.B TEST=make buildall -j
@@ -95,6 +95,7 @@ UNIMPLEMENTED(USB_C1_LS_EN) /* Misc Signals */ GPIO(EC_H1_PACKET_MODE, PIN(7, 5), GPIO_OUT_LOW) /* H1 Packet Mode */ +GPIO(CCD_MODE_ODL, PIN(E, 5), GPIO_INPUT) /* Case Closed Debug Mode */ /* * Determine the polarity of these SSD signals and whether
distro-packages/python-rpm-macros: testing
local spec_name_prefix = "python" -- modname from name local name = modname -@@ -53,18 +53,18 @@ - end - - -- find the spec file -- specpath = rpm.expand("%_specfile") -+-- specpath = rpm.expand("%_specfile") - - -- search possible locations - shouldn't be necessary anymore ---- local locations = { rpm.expand("%_source...
bumping go
@@ -3,7 +3,7 @@ jobs: build-pc: docker: # specify the version - - image: cimg/go:1.16 + - image: cimg/go:1.20.0 steps: - checkout - run: sudo apt-get update @@ -43,7 +43,7 @@ jobs: build-pc-debug: docker: # specify the version - - image: cimg/go:1.16 + - image: cimg/go:1.20.0 steps: - checkout - run: sudo apt-get updat...
add interrupt check back in to factorization
#include "qdldl.h" +#include "ctrlc.h" #define QDLDL_UNKNOWN (-1) #define QDLDL_USED (1) @@ -138,6 +139,10 @@ QDLDL_int QDLDL_factor(const QDLDL_int n, //Start from 1 here. The upper LH corner is trivially 0 //in L b/c we are only computing the subdiagonal elements for(k = 1; k < n; k++){ + if(scs_is_interrupted()) { +...
Fix int32 overflow bugs with deep images A 32k x 32k image * 8 byte pointers leads to an overflow when trying to find the sample count of a deep pixel.
@@ -99,7 +99,7 @@ inline int& sampleCount(char* base, int xStride, int yStride, int x, int y) { - char* ptr = base + y * yStride + x * xStride; + char* ptr = base + y * ptrdiff_t(yStride) + x * ptrdiff_t(xStride); int* intPtr = (int*) ptr; return *intPtr; @@ -110,7 +110,7 @@ inline const int& sampleCount(const char* ba...