message
stringlengths
6
474
diff
stringlengths
8
5.22k
stm32f4: Fix SBF clear bit The STM32F412 and STM32F446 reference manuals seem to indicate that the SBF clear bit is actually bit 3. BRANCH=hatch TEST=make buildall -j
#define STM32_PWR_RESET_CAUSE STM32_PWR_CSR #define RESET_CAUSE_SBF BIT(1) #define STM32_PWR_RESET_CAUSE_CLR STM32_PWR_CR -#define RESET_CAUSE_SBF_CLR BIT(2) +#define RESET_CAUSE_SBF_CLR BIT(3) /* --- Watchdogs --- */
Fix setting of IPV6_V6ONLY on Windows
@@ -175,8 +175,10 @@ int BIO_listen(int sock, const BIO_ADDR *addr, int options) return 0; # ifndef OPENSSL_SYS_WINDOWS - /* SO_REUSEADDR has different behavior on Windows than on - * other operating systems, don't set it there. */ + /* + * SO_REUSEADDR has different behavior on Windows than on + * other operating syst...
HV: change wake vector info to accommodate abl MRB bootloader is switched to ABL, so change platform acpi info accordingly to support system S3. Acked-by: Eddie Dong
@@ -48,7 +48,12 @@ const struct acpi_info host_acpi_info = { .val_pm1b = 0U, .reserved = 0U }, +#if 0 /* set to 0 if run with ABL, set to 1 if switch back to SBL; */ .wake_vector_32 = (uint32_t *)0x7A86BBDCUL, .wake_vector_64 = (uint64_t *)0x7A86BBE8UL +#else + .wake_vector_32 = (uint32_t *)0x7AEDCEFCUL, + .wake_vector...
Update build docs help in CONTRIBUTING.md
@@ -98,20 +98,21 @@ identify issues early on in their work. #### Documentation -HSE's public API is annotated with Doxygen and includes a few graphs that can be -rendered with Graphviz. Run the following to set it up: +HSE's public API documentation is generated from the source code with Doxygen. +The following command...
fixed filterlist bug - do not use filterlist if we transmit broadcast proberequests
@@ -50,7 +50,7 @@ static int fd_pcapng; static int fd_ippcapng; static int fd_weppcapng; -maclist_t *filterlist; +static maclist_t *filterlist; static int filterlist_len; maclist_t *beaconlist; @@ -414,6 +414,7 @@ static inline bool checkfilterlistentry(uint8_t *filtermac) static int c; static maclist_t * zeiger; + zei...
rune/skeleton: fix build failure due to wrong dependency to aesm.pb-c.c aesm.c requires aesm.pb-c.[ch] but they are not explicitly listed in the dependency. Fixes:
@@ -85,10 +85,10 @@ $(OUTPUT)/liberpal-skeleton-v3.o: liberpal-skeleton-v3.c liberpal-skeleton.c $(OUTPUT)/tls-server.o: tls-server.c $(CC) $(HOST_CFLAGS) -c $< -o $@ -$(OUTPUT)/aesm.o: aesm.c +$(OUTPUT)/aesm.o: aesm.c $(OUTPUT)/aesm.pb-c.c $(CC) $(HOST_CFLAGS) -c $< -o $@ -$(OUTPUT)/aesm.pb-c.o: aesm.pb-c.c +$(OUTPUT)...
tasty-lua: remove stack.yaml from extra-source-files
@@ -13,7 +13,6 @@ build-type: Simple extra-source-files: CHANGELOG.md , tasty.lua , test/test-tasty.lua - , stack.yaml cabal-version: >=1.10 tested-with: GHC == 8.0.2 , GHC == 8.2.2
HW: Setting SDRAM_SIZE to 1MB in case BRAM_USED=TRUE
@@ -33,6 +33,9 @@ else SDRAM_SIZE="x\"1000\"" fi fi +if [ "${BRAM_USED^^}" == "TRUE" ]; then + SDRAM_SIZE="x\"0001\"" +fi if [ "${DDRI_USED^^}" == "TRUE" ]; then DDRI_FILTER="\-\- only for DDRI_USED!=TRUE"
Rework __GLIBC_PREREQ checks to avoid breaking non-glibc builds
@@ -155,7 +155,6 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #ifdef DYNAMIC_ARCH gotoblas_t *gotoblas = NULL; #endif - extern void openblas_warning(int verbose, const char * msg); #ifndef SMP @@ -187,7 +186,7 @@ int i,n; #if !defined(__GLIBC_PREREQ) return nums; -#endif +#else #if !__GLI...
build: fix build for debian testing 1. add libelf-dev to default deb deps 2. Also use libffi7 instead of libffi6 for debian-testing Type: fix
@@ -72,7 +72,7 @@ DEB_DEPENDS += python3-venv # ensurepip DEB_DEPENDS += python3-dev # needed for python3 -m pip install psutil # python3.6 on 16.04 requires python36-dev -LIBFFI=libffi6 # works on all but 20.04 +LIBFFI=libffi6 # works on all but 20.04 and debian-testing ifeq ($(OS_VERSION_ID),18.04) DEB_DEPENDS += pyt...
ssh session CHANGE add error code to message
@@ -1316,7 +1316,7 @@ nc_ssh_bind_add_hostkeys(ssh_bind sbind, const char **hostkeys, uint8_t hostkey_ free(privkey_data); if (ret != SSH_OK) { - ERR("Failed to set hostkey \"%s\" (%s).", hostkeys[i], ssh_get_error(sbind)); + ERR("Failed to set hostkey \"%s\" (%d: %s).", hostkeys[i], ret, ssh_get_error(sbind)); return ...
Fixed an issue that supported later versions of mbedtls than mbedtls-2.6.1
#include "mbedtls/rsa.h" #include "mbedtls/asn1.h" +#include "mbedtls/version.h" #include "bootutil_priv.h" @@ -89,9 +90,18 @@ bootutil_parse_rsakey(mbedtls_rsa_context *ctx, uint8_t **p, uint8_t *end) return -4; } - if ((rc = mbedtls_rsa_check_pubkey(ctx)) != 0) { + /* The mbedtls version is more than 2.6.1 */ +#if MB...
raspberrypi3-64.conf: Don't use raspberrypi as MACHINEOVERRIDES The current setup broke the build for rpi3-64 when we wanted to port some changes from rpi3 to rpi0.
#@NAME: RaspberryPi 3 Development Board #@DESCRIPTION: Machine configuration for the RaspberryPi 3 in 64 bits mode -MACHINEOVERRIDES = "raspberrypi3:raspberrypi:${MACHINE}" +MACHINEOVERRIDES = "raspberrypi3:${MACHINE}" MACHINE_EXTRA_RRECOMMENDS += "linux-firmware-bcm43430"
Add missing double quotes to info statements in bv_mili.sh.
@@ -72,7 +72,7 @@ function bv_mili_ensure function apply_mili_151_darwin_patch1 { - info "Applying Mili 15.1 darwin patch 1. + info "Applying Mili 15.1 darwin patch 1." patch -p0 << \EOF diff -c mili/src/mesh_u.c mili.patched/src/mesh_u.c *** mili/src/mesh_u.c 2015-09-22 13:20:42.000000000 -0700 @@ -105,7 +105,7 @@ EOF...
add the comment of irq.c
* 2006-05-03 Bernard add IRQ_DEBUG * 2016-08-09 ArdaFu add interrupt enter and leave hook. * 2018-11-22 Jesven rt_interrupt_get_nest function add disable irq + * 2021-08-15 Supperthomas fix the comment */ #include <rthw.h> @@ -21,19 +22,26 @@ static void (*rt_interrupt_leave_hook)(void); /** * @ingroup Hook - * This fu...
hv: extend the vlapic_reset vlapic reset should also zero apic_page and pir_desc if pir is enabled. Acked-by: Eddie Dong
@@ -1491,10 +1491,15 @@ vlapic_write(struct vlapic *vlapic, int mmio_access, uint64_t offset, void vlapic_reset(struct vlapic *vlapic) { + uint32_t i; struct lapic_regs *lapic; + void *apic_page; lapic = vlapic->apic_page; - memset(lapic, 0, sizeof(struct lapic_regs)); + apic_page = (void *)vlapic->apic_page; + memset(...
misc: fix a trunccation on vhost dump feature is u64. We need to print it with %llx and enough precision to avoid truncation Type: fix
@@ -10199,10 +10199,9 @@ static void vl_api_sw_interface_vhost_user_details_t_handler (mp->features_last_32) << 32); - print (vam->ofp, "%-25s %3" PRIu32 " %6" PRIu32 " %8x %6d %7d %s", - (char *) mp->interface_name, - ntohl (mp->sw_if_index), ntohl (mp->virtio_net_hdr_sz), - features, mp->is_server, + print (vam->ofp,...
Reject zero-sized discard IOs to core
@@ -392,6 +392,11 @@ static void ocf_core_volume_submit_discard(struct ocf_io *io) OCF_CHECK_NULL(io); + if (io->bytes == 0) { + ocf_io_end(io, -OCF_ERR_INVAL); + return; + } + ret = ocf_core_validate_io(io); if (ret < 0) { ocf_io_end(io, ret);
Modify style checker for PKCS style types PKCS types may follow the format CK_TYPE_PTR or CK_TYPE_PTR_PTR. This change updates the style checker to recognize _PTR and _PTR_PTR line endings as pointer types. This change also allows variables to start with a number.
@@ -182,9 +182,20 @@ def get_prefix(line): prefix = "p" * indirection + "u" * unsigned + base_prefix return prefix +# PKCS #11 types may have the format +# CK_TYPE_PTR or CK_TYPE_PTR_PTR +def count_pkcs11_indirection(line): + base_prefix = get_base_type(line) + if (re.search("_PTR_PTR$", base_prefix)): + return 2 + eli...
Ignore param updates when the knob is being adjusted
@@ -55,6 +55,9 @@ void ParameterProxy::setValueFromUI(double value) { } void ParameterProxy::setValueFromPlugin(double value) { + if (_isAdjusting) + return; + value = clip(value); if (value == _value) return;
test/hdata_to_dt: fix build breakage caused by phys_map_get Fixes:
@@ -112,6 +112,7 @@ static bool spira_check_ptr(const void *ptr, const char *file, unsigned int line #include "../../core/chip.c" #include "../../test/dt_common.c" #include "../../core/fdt.c" +#include "../../hw/phys-map.c" #include <err.h> @@ -267,6 +268,8 @@ int main(int argc, char *argv[]) "Pipe to 'dtc -I dtb -O dt...
comments out failing cast in %eyre
:: ++ ire-ix |=(ire/ixor ~(. ix ire (~(got by wix) ire))) ++ dom-vi - |= {usr/knot dom/path} ^+ vi :: XX default to initialized user? + |= {usr/knot dom/path} + :: ^+ vi :: XX default to initialized user? ~(. vi [usr dom] (fall (~(get by sec) usr dom) *driv)) :: ++ ses-authed
[core] array keys are non-empty in key-value list
@@ -133,7 +133,11 @@ static int32_t array_get_index(const array * const a, const char * const k, cons while (lower != upper) { uint32_t probe = (lower + upper) / 2; const buffer * const b = a->data[a->sorted[probe]]->key; - int cmp = array_keycmp(k, klen, CONST_BUF_LEN(b)); + /* key is non-empty (0==b->used), though po...
BugID:19073842:http send size = 0 see as failed
@@ -218,7 +218,7 @@ static int ota_download_start(void *pctx) while (totalsend < nbytes) { send = ((isHttps) ? ota_ssl_send(ssl, (char *)(http_buffer + totalsend), (int)(nbytes - totalsend)) :ota_socket_send(sockfd, http_buffer + totalsend, nbytes - totalsend)); - if (send < 0) { + if (send <= 0) { ret = OTA_DOWNLOAD_W...
metadata-hook: fix syntax error
-: metadata-hook: allow syncing foreign metadata +:: metadata-hook: allow syncing foreign metadata :: :: watch paths: :: /group/%group-path all updates related to this group
Fix a bug with misnamed global variable in parser Oops! The name of the global variable the parser uses was wrong! This commit fixes that problem and also adds an extra assertion to ensure that the non-reentrant parser is never called recursively.
@@ -457,9 +457,13 @@ local grammar = re.compile([[ ]], defs) function parser.parse(filename, input) - THE_FILENAME = filename + -- Abort if someone calls this non-reentrant parser recursively + assert(type(filename) == "string") + assert(THIS_FILENAME == nil) + + THIS_FILENAME = filename local ast, err, errpos = gramma...
ptdev: bug fix on operating list Before using a node of list, initialize it.
@@ -166,6 +166,10 @@ alloc_entry(struct vm *vm, enum ptdev_intr_type type) ASSERT(entry, "alloc memory failed"); entry->type = type; entry->vm = vm; + + INIT_LIST_HEAD(&entry->softirq_node); + INIT_LIST_HEAD(&entry->entry_node); + atomic_clear_int(&entry->active, ACTIVE_FLAG); list_add(&entry->entry_node, &ptdev_list);...
misc: fix the physical memory segmentation UI issue Current physical memory segmentation UI have an redundant title when user select the advance mode, so we set the MemoryInfo element title to NULL to fix this issue.
@@ -401,7 +401,7 @@ Refer SDM 17.19.2 for details, and use with caution.</xs:documentation> </xs:annotation> </xs:element> <xs:element name="memory" type="MemoryInfo" minOccurs="0"> - <xs:annotation acrn:title="Memory allocation" acrn:views="basic, advanced" acrn:applicable-vms="pre-launched, post-launched"> + <xs:anno...
docs: disable mention of openmpi4-pmix-slurm; tested a rebuild of this package but basic job launch under latest slurm and pmix is not working
@@ -107,7 +107,11 @@ variant of MVAPICH2 instead: % ohpc_command fi % end_ohpc_run -An additional OpenMPI build variant is listed in Table~\ref{table:mpi} which -enables \href{https://pmix.github.io/pmix/}{\color{blue}{PMIx}} job launch -support for use with \SLURM{}. This optional variant is -available as \texttt{open...
Chande debug message in finished and rename finalize functions
@@ -852,7 +852,7 @@ cleanup: */ static int ssl_tls13_preprocess_finished_in( mbedtls_ssl_context *ssl ); -static int ssl_tls13_postprocess_finished_in( mbedtls_ssl_context *ssl ); +static int ssl_tls13_finalize_finished_in( mbedtls_ssl_context *ssl ); static int ssl_tls13_parse_finished_in( mbedtls_ssl_context *ssl, co...
Compilation of note documented in CONTRIBUTE
@@ -103,3 +103,28 @@ This may take some time to run in its entirety. If you changed the API, you may have to modify the tests to account for this. You should also add your own tests for any new functions or behaviors that were added. +Compiling the CCL note +-------------------------------------------- +After making ch...
CI: component_ut: fix esp_netif test path unmatch issue
@@ -5,7 +5,7 @@ import ttfw_idf @ttfw_idf.idf_component_unit_test(env_tag='COMPONENT_UT_GENERIC') def test_component_ut_esp_netif(env, extra_data): - dut = env.get_dut('esp_netif', 'components/esp_netif/test_app') + dut = env.get_dut('esp_netif', 'components/esp_netif/test_apps') dut.start_app() stdout = dut.expect('Te...
POWER10: Fix multithreading check when USE_THREAD=0 This patch fixes an issue when OpenBLAS is compiled for TARGET=POWER10 and the flag USE_THREAD is set to 0. The function `num_cpu_avail` is only available when USE_THREAD=1, so SMP is defined.
@@ -69,6 +69,7 @@ int CNAME(int transa, int transb, BLASLONG M, BLASLONG N, BLASLONG K, FLOAT alph #endif +#ifdef SMP // Multi-threading execution outperforms (or approaches) the execution of the // small kernel. if (num_cpu_avail(3) > 1) { @@ -77,6 +78,9 @@ int CNAME(int transa, int transb, BLASLONG M, BLASLONG N, BLA...
[dpos] fix pubnet block interval Ignore block interval parameter in a config file.
@@ -93,7 +93,7 @@ func New(cfg *config.ConsensusConfig, hub *component.ComponentHub, cdb consensus return nil, err } - Init(bpc.Size(), cfg.BlockInterval) + Init(bpc.Size()) quitC := make(chan interface{}) @@ -107,12 +107,12 @@ func New(cfg *config.ConsensusConfig, hub *component.ComponentHub, cdb consensus } // Init i...
Bump version to 13.1-0.
@@ -18,8 +18,8 @@ AOMP_COMPILER_NAME=${AOMP_COMPILER_NAME:-AOMP} ROCM_VERSION=${ROCM_VERSION:-4.0.0} # Set the AOMP VERSION STRING and AOMP_PROJECT_REPO_BRANCH. -AOMP_VERSION=${AOMP_VERSION:-"13.0"} -AOMP_VERSION_MOD=${AOMP_VERSION_MOD:-"6"} +AOMP_VERSION=${AOMP_VERSION:-"13.1"} +AOMP_VERSION_MOD=${AOMP_VERSION_MOD:-"0...
libc/hex2bin: Remove the unused declaration
@@ -157,42 +157,6 @@ int hex2mem(int fd, uint32_t baseaddr, uint32_t endpaddr, int fhex2mem(FAR FILE *instream, uint32_t baseaddr, uint32_t endpaddr, enum hex2bin_swap_e swap); -/**************************************************************************** - * Name: hex2bin_main - * - * Description: - * Main entry point...
Send TWAMP StopSessions as one packet Sending multiple chunks confuses twamp-gui responder
@@ -1932,17 +1932,24 @@ _OWPWriteStopSessions( buf[0] = OWPReqStopSessions; buf[1] = acceptval & 0xff; *(uint32_t*)&buf[4] = htonl(num_sessions); + _OWPSendHMACAdd(cntrl,buf,1); + if (cntrl->twoway) { /* - * Add 'header' into HMAC and send + * Complete WriteStopSessions by writing HMAC and send as one chunk. + */ + _OW...
py/malloc: Allow to use debug logging if !MICROPY_MALLOC_USES_ALLOCATED_SIZE. This is mostly a workaround for forceful rebuilding of mpy-cross on every codebase change. If this file has debug logging enabled (by patching), mpy-cross build failed.
@@ -147,7 +147,11 @@ void *m_realloc(void *ptr, size_t new_num_bytes) { MP_STATE_MEM(current_bytes_allocated) += diff; UPDATE_PEAK(); #endif + #if MICROPY_MALLOC_USES_ALLOCATED_SIZE DEBUG_printf("realloc %p, %d, %d : %p\n", ptr, old_num_bytes, new_num_bytes, new_ptr); + #else + DEBUG_printf("realloc %p, %d : %p\n", ptr...
Makefile: make_parallel_flags via env variable /proc/cpuinfo with container builds may lead to jenkins failures ability to pass in MAKE_PARALLEL_FLAGS via env directly for container builds
@@ -645,7 +645,7 @@ configure_check_timestamp = \ # for file presence and content; for now this will have to do. MAKE_PARALLEL_JOBS = -j $(if $(shell [ -f /proc/cpuinfo ] && head /proc/cpuinfo), \ $(shell grep -c ^processor /proc/cpuinfo), 2) -MAKE_PARALLEL_FLAGS = $(if $($(PACKAGE)_make_parallel_fails),,$(MAKE_PARALLE...
configure.ac: enabling gtk3 automatically disables gtk2 gtk2 is enabled by default so if you use --enable-gtk30 is because you really want to use the (broken) gtk3 ui
@@ -9,7 +9,7 @@ AC_GNU_SOURCE AC_USE_SYSTEM_EXTENSIONS AC_ARG_ENABLE(gtk20, - [ --disable-gtk20 Don't look for GTK+ 2.0 libraries], + [ --disable-gtk20 Do not look for GTK+ 2.0 libraries], enable_gtk20=$enableval, enable_gtk20="yes") @@ -205,8 +205,10 @@ if test "x$enable_gtkport" = "xyes" ; then if test "x$enable_gtk2...
out_stackdriver: clean up buffer before return
@@ -1275,6 +1275,7 @@ static int stackdriver_format(struct flb_config *config, ret = extract_local_resource_id(data, bytes, ctx, tag); if (ret != 0) { flb_plg_error(ctx->ins, "fail to construct local_resource_id"); + msgpack_sbuffer_destroy(&mp_sbuf); return -1; } }
iirdes/autotest: testing band-pass transformation on elliptic design
@@ -302,3 +302,44 @@ void autotest_iirdes_ellip_highpass() { iirfilt_crcf_destroy(q); } +// check elliptical filter design with band-pass transformation +void autotest_iirdes_ellip_bandpass() { + unsigned int n = 9; // filter order + float fc = 0.3; // filter cut-off + float f0 = 0.35; // filter center frequency + floa...
sub shm CHANGE handle timeout gracefully
@@ -2042,8 +2042,9 @@ cleanup: * @param[in] data Optional data to write after the structure. * @param[in] data_len Additional data length. * @param[in] err_code Optional error code if a callback failed. + * @return err_info, NULL on success. */ -static void +static sr_error_info_t * sr_shmsub_listen_write_event(sr_sub_...
Docs: Fixed BT4LEContinuityFixup name in kexts list
@@ -18,7 +18,7 @@ Kexts - [AirPortAtheros40.kext](https://i.applelife.ru/2018/12/442854_AirPortAtheros40.kext.zip) from 10.13.6 for 10.14+ - [AirportBrcmFixup.kext](https://github.com/acidanthera/AirportBrcmFixup) - [ATH9KFixup.kext](https://github.com/chunnann/ATH9KFixup) -- [BT4LEContiunityFixup.kext](https://github....
Add -std=c++11 to matrixmul makefile
@@ -75,7 +75,7 @@ ifeq (sm_,$(findstring sm_,$(TARGETS))) else AOMPHIP ?= $(AOMP) HIPLIBS = -L $(AOMPHIP)/hip -L $(AOMPHIP)/lib - CFLAGS += -x hip $(HIPLIBS) -lamdhip64 + CFLAGS += -x hip $(HIPLIBS) -lamdhip64 -std=c++11 endif # ----- Demo compile and link in one step, no object code saved
make example work for nvptx
@@ -58,9 +58,15 @@ ifeq ($(TARGETS),) TARGETS =-march=$(AOMP_GPU) endif +ifeq (sm_,$(findstring sm_,$(AOMP_GPU))) + AOMP_GPUTARGET = nvptx64-nvidia-cuda +else + AOMP_GPUTARGET = amdgcn-amd-amdhsa +endif + FORT =$(AOMP)/bin/flang LFLAGS = -FFLAGS = -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa -Xopenmp-target=amdgcn-amd-a...
Remove mostly useless mem context in storageRemoteInfoProtocolPut(). Maybe this once had a deeper purpose but now at least it is just used to avoid a few trivial allocations. If we really wanted to do that a flag would be better but it does not seem worth the trouble.
@@ -172,7 +172,6 @@ storageRemoteFeatureProtocol(PackRead *const param, ProtocolServer *const server /**********************************************************************************************************************************/ typedef struct StorageRemoteInfoProcotolWriteData { - MemContext *memContext; // Mem c...
refactor(devcontainer): reorder properties Reorder the file so that related properties are roughly grouped together and the order is more logical. PR:
{ "name": "ZMK Development", "dockerFile": "Dockerfile", - "extensions": ["ms-vscode.cpptools"], "runArgs": ["--security-opt", "label=disable"], "containerEnv": { "WORKSPACE_DIR": "${containerWorkspaceFolder}" }, + "mounts": ["type=volume,source=zmk-config,target=/workspaces/zmk-config"], + "extensions": ["ms-vscode.cp...
ts: Tuple doesn't do scoop anymore, so remove those checks. I might allow Tuple methods again, but I really doubt it. They weren't as useful as I hoped they would be when they existed.
@@ -343,48 +343,17 @@ static int check_misc(lily_type_system *ts, lily_type *left, lily_type *right, return ret; } + static int check_tuple(lily_type_system *ts, lily_type *left, lily_type *right, int flags) { - if (right->cls->id != LILY_ID_TUPLE) - return 0; - - if ((left->flags & TYPE_HAS_SCOOP) == 0) { - /* Do not ...
Include the file name to open and the fail error number Also fix issues reported by nxstyle
@@ -362,6 +362,7 @@ static void print_hex(uint8_t *data, int len) } } } + printf("\n"); } @@ -483,7 +484,8 @@ int main(int argc, FAR char *argv[]) fd = open(DEV_NAME, O_RDWR); if (fd < 0) { - printf("ERROR: Failed to open device!\n"); + int errcode = errno; + printf("ERROR: Failed to open device %s: %d\n", DEV_NAME, er...
Don't seek past end of data
@@ -663,7 +663,6 @@ static readstat_error_t dta_handle_rows(dta_ctx_t *ctx) { retval = READSTAT_ERROR_SEEK; goto cleanup; } - ctx->row_offset = 0; } for (i=0; i<ctx->row_limit; i++) { @@ -680,8 +679,8 @@ static readstat_error_t dta_handle_rows(dta_ctx_t *ctx) { } } - if (ctx->row_limit < ctx->nobs) { - if (io->seek(ctx...
apps/Makefile: Fix Windows native build patch extension.
# ############################################################################ -APPDIR = ${shell pwd} TOPDIR ?= $(APPDIR)/import - -include $(TOPDIR)/Make.defs + +ifeq ($(CONFIG_WINDOWS_NATIVE),y) + APPDIR = ${shell echo %CD%} +else + APPDIR = ${shell pwd} +endif + -include $(APPDIR)/Make.defs # Application Directories...
uwp: little appveyor fix
@@ -47,15 +47,14 @@ environment: - uwp_framework_spec: testable_application_repository: https://github.com/rhomobile/RMS-Testing.git - test_app_folder: C:\TAU\RMS-Testing - test_app_subfolder: \auto\feature_def\framework_spec\ + test_app_folder: C:\TAU\RMS-Testing\ + test_app_subfolder: auto\feature_def\framework_spec\...
[Rust] View allows removing a UI element
@@ -60,6 +60,21 @@ impl View { self.sub_elements.borrow_mut().push(elem); } + pub fn remove_component(self: Rc<Self>, elem: &Rc<dyn UIElement>) { + // No need to remove its link to the parent as it's a weak reference + // TODO(PT): Or do we need to remove it? + /* + Since a Weak reference does not count towards ownersh...
Add PLCT to contributors.
@@ -207,3 +207,8 @@ In chronological order: * Ilya Kurdyukov <https://github.com/ilyakurdyukov> * [2021-02-21] Add basic support for the Elbrus E2000 architecture + +* PLCT Lab, Institute of Software Chinese Academy of Sciences + * [2022-03] Support RISC-V Vector Intrinisc 1.0 version. + + \ No newline at end of file
fix(color) fix off-by-one error
@@ -358,8 +358,8 @@ lv_color_t lv_palette_darken(lv_palette_t p, uint8_t lvl) return lv_color_black(); } - if(lvl == 0 || lvl > 5) { - LV_LOG_WARN("Invalid level: %d. Must be 1..5", lvl); + if(lvl == 0 || lvl > 4) { + LV_LOG_WARN("Invalid level: %d. Must be 1..4", lvl); return lv_color_black(); }
Return MBEDTLS_ERR_SSL_BAD_INPUT_DATA if MAC algorithm isn't supported in ssl_tls.c
@@ -7300,7 +7300,7 @@ static int ssl_tls12_populate_transform( mbedtls_ssl_transform *transform, alg = mbedtls_psa_translate_md( ciphersuite_info->mac ); if( alg == 0 ) { - ret = psa_ssl_status_to_mbedtls( PSA_ERROR_NOT_SUPPORTED ); + ret = MBEDTLS_ERR_SSL_BAD_INPUT_DATA; MBEDTLS_SSL_DEBUG_RET( 1, "mbedtls_ssl_md_type_...
ExtendedTools: Fix etw session cleanup regression
@@ -140,12 +140,12 @@ VOID EtEtwMonitorUninitialization( { EtpEtwExiting = TRUE; - if (EtpEtwActive) + if (EtpSessionHandle != INVALID_PROCESSTRACE_HANDLE) { EtpStopEtwSession(); } - if (EtpEtwRundownActive) + if (EtpRundownSessionHandle != INVALID_PROCESSTRACE_HANDLE) { EtpStopEtwRundownSession(); }
Handle python2 not being installed, but python3 being present
@@ -45,11 +45,11 @@ endif() find_package(Python2 COMPONENTS Interpreter Development) find_package(Python3 COMPONENTS Interpreter Development) if(TARGET Python2::Python AND TARGET Python3::Python) - message(NOTICE ": Found Python ${Python2_VERSION} and ${Python3_VERSION}") + message(STATUS ": Found Python ${Python2_VERS...
Improve the printing of binaries with non-printable characters. This change makes printing of binaries more similar to OTP.
@@ -96,11 +96,13 @@ void term_display(FILE *fd, term t, const Context *ctx) for (int i = 0; i < len; i++) { if (!isprint(binary_data[i])) { is_printable = 0; + break; } } + fprintf(fd, "<<"); if (is_printable) { - fprintf(fd, "<<\"%.*s\">>", len, binary_data); + fprintf(fd, "\"%.*s\"", len, binary_data); } else { int d...
added optional argument to just update table for one category type; ascertain architecture type from path
use warnings; use strict; +use Getopt::Long; +use Cwd; + +sub usage { + print "\n"; + print "Usage: build_tables.pl [OPTIONS]\n\n"; + print " where available OPTIONS are as follows:\n\n"; + print " -h --help generate help message and exit\n"; + print " --category [name] update provided category table only\n"; + print "...
always parse :len bytes in +de:der
:: +de:der: decode atom to +spec:asn1 :: ++ de - =< |=([len=@ud dat=@ux] `(unit spec:asn1)`(rush dat parse)) + =< |= [len=@ud dat=@ux] + ^- (unit spec:asn1) + :: XX refactor into +parse + =/ a (rip 3 dat) + =/ b ~| %der-invalid-len + (sub len (lent a)) + (rust `(list @D)`(weld a (reap b 0)) parse) |% :: +parse:de:der: ...
use recent ruby 2.3 and 2.4 on travis
@@ -18,15 +18,15 @@ matrix: - os: osx rvm: 2.2.5 - os: linux - rvm: 2.3.1 + rvm: 2.3.5 - os: osx - rvm: 2.3.1 + rvm: 2.3.5 - os: linux - rvm: 2.4.0 + rvm: 2.4.2 env: - RUBYOPT="--enable-frozen-string-literal --debug=frozen-string-literal" - os: osx - rvm: 2.4.0 + rvm: 2.4.2 env: - RUBYOPT="--enable-frozen-string-litera...
Reduce max bucket size Turns out that we were spending a lot of time initializing buckets. Reducing the size of the bucket reduces max alloc latency significantly, since we're not spending tens of milliseconds initializing hundreds of thousands of slots.
@@ -30,7 +30,7 @@ pkg std = const Zslab = (0 : slab#) const Zchunk = (0 : chunk#) -const Slabsz = 4*MiB +const Slabsz = 512*KiB const Cachemax = 4 const Bktmax = 128*KiB /* a balance between wasted space and falling back to mmap */ const Pagesz = 4*KiB
fix for macOS M1 Monteray to check pointers in zone_size
@@ -43,7 +43,7 @@ extern malloc_zone_t* malloc_default_purgeable_zone(void) __attribute__((weak_im static size_t zone_size(malloc_zone_t* zone, const void* p) { MI_UNUSED(zone); - //if (!mi_is_in_heap_region(p)){ return 0; } // not our pointer, bail out + if (!mi_is_in_heap_region(p)){ return 0; } // not our pointer, b...
ocvalidate: Check for the length of PickerVariant
@@ -249,6 +249,13 @@ CheckMiscBoot ( DEBUG ((DEBUG_WARN, "Misc->Boot->PickerVariant cannot be empty!\n")); ++ErrorCount; } + // + // Check the length of path relative to OC directory. + // + if (StrLen (OPEN_CORE_IMAGE_PATH) + AsciiStrSize (PickerVariant) > OC_STORAGE_SAFE_PATH_MAX) { + DEBUG ((DEBUG_WARN, "Misc->Boot-...
Fix description in comment
@@ -283,7 +283,7 @@ namespace NCB { TRawObjectsData Data; }; - // for use while building and storing this part in TRawObjectsDataProvider + // for use while building and storing this part in TQuantizedObjectsDataProvider struct TQuantizedObjectsData { public: /* some feature holders can contain nullptr
identifies hash test failure printfs
@@ -15,42 +15,42 @@ static void _test_mug(void) { if ( 0x4d441035 != u3r_mug_string("Hello, world!") ) { - fprintf(stderr, "fail\r\n"); + fprintf(stderr, "fail (a)\r\n"); exit(1); } if ( 0x4d441035 != u3r_mug(u3i_string("Hello, world!")) ) { - fprintf(stderr, "fail\r\n"); + fprintf(stderr, "fail (b)\r\n"); exit(1); } i...
runtime: zero queueing delay when runningks is less than max
@@ -20,6 +20,10 @@ extern int runtime_init(const char *cfgpath, thread_fn_t main_fn, void *arg); extern struct congestion_info *runtime_congestion; +extern unsigned int maxks; +extern unsigned int guaranteedks; +extern atomic_t runningks; + /** * runtime_standing_queue_us - returns the us a queue has been left standing...
Stop vendoring libstdc++.so.*-gdb.py Existing code was globbing for libstdc++.so.* and copying it to gpdb lib, we are now ignoring the .py since that should not be vendored. * also cleaned up bash, no need for trailing '/.' on copy. Thanks d#!
@@ -105,9 +105,9 @@ function unittest_check_gpdb() { function include_zstd() { pushd ${GREENPLUM_INSTALL_DIR} if [ "${TARGET_OS}" == "centos" ] ; then - cp /usr/lib64/pkgconfig/libzstd.pc lib/pkgconfig/. - cp /usr/lib64/libzstd.so* lib/. - cp /usr/include/zstd*.h include/. + cp /usr/lib64/pkgconfig/libzstd.pc lib/pkgco...
VERSION bump version to 0.11.21
@@ -32,7 +32,7 @@ set(CMAKE_C_FLAGS_DEBUG "-g -O0") # set version set(LIBNETCONF2_MAJOR_VERSION 0) set(LIBNETCONF2_MINOR_VERSION 11) -set(LIBNETCONF2_MICRO_VERSION 20) +set(LIBNETCONF2_MICRO_VERSION 21) set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION}.${LIBNETCONF2_MICRO_VERSION}) set(L...
SCons: update hdiutil commands. Use detach instead of the poorly named unmount command. Add `-force` to ensure the volume gets unmounted without error.
@@ -65,13 +65,13 @@ def unpack_sdl2_darwin(env): return download_sdl2_darwin(env) print(env.subst("Extracting $SDL2_DMG_PATH to $DEPENDANCY_DIR")) - subprocess.check_call(["hdiutil", "mount", env.subst("$SDL2_DMG_PATH")]) + subprocess.check_call(["hdiutil", "attach", env.subst("$SDL2_DMG_PATH")]) shutil.copytree( "/Vol...
Fix test_latin1_umlauts() to work for
@@ -894,20 +894,30 @@ START_TEST(test_latin1_umlauts) "<?xml version='1.0' encoding='iso-8859-1'?>\n" "<e a='\xE4 \xF6 \xFC &#228; &#246; &#252; &#x00E4; &#x0F6; &#xFC; >'\n" " >\xE4 \xF6 \xFC &#228; &#246; &#252; &#x00E4; &#x0F6; &#xFC; ></e>"; - const char *utf8 = - "\xC3\xA4 \xC3\xB6 \xC3\xBC " - "\xC3\xA4 \xC3\xB6 ...
Markdown update missed in
@@ -189,21 +189,26 @@ This project implements variadic functions using macros (which are exempt from t ```c typedef struct StoragePathCreateParam { - VAR_PARAM_HEADER; bool errorOnExists; bool noParentCreate; mode_t mode; } StoragePathCreateParam; #define storagePathCreateP(this, pathExp, ...) \ - storagePathCreate(thi...
spi: fix micro SPI_HOST_MAX error Closes
@@ -19,7 +19,9 @@ typedef enum { //SPI1 can be used as GPSPI only on ESP32 SPI1_HOST=0, ///< SPI1 SPI2_HOST=1, ///< SPI2 +#if SOC_SPI_PERIPH_NUM > 2 SPI3_HOST=2, ///< SPI3 +#endif SPI_HOST_MAX, ///< invalid host value } spi_host_device_t;
apps/bletiny: Add svcvis command to change service visibility Service is identified by its starting handle.
@@ -4109,6 +4109,54 @@ cmd_svcchg(int argc, char **argv) return 0; } +/***************************************************************************** + * $svcvis * + *****************************************************************************/ + +static void +bletiny_svcvis_help(void) +{ +#if !MYNEWT_VAL(BLETINY_HELP) ...
dotprod_cccf/autotest: running explicit test for struct, run, run4
/* - * Copyright (c) 2007 - 2015 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 @@ -172,8 +172,6 @@ void autotest_dotprod_cccf_struct_lengths() ...
libhfuzz/instrument: add 1byte values to the dynamic const dict as well
@@ -252,6 +252,7 @@ void __sanitizer_cov_trace_cmp8(uint64_t Arg1, uint64_t Arg2) { /* Standard __sanitizer_cov_trace_const_cmp wrappers */ void __sanitizer_cov_trace_const_cmp1(uint8_t Arg1, uint8_t Arg2) { + instrumentAddConstMem(&Arg1, sizeof(Arg1), /* check_if_ro= */ false); hfuzz_trace_cmp1_internal((uintptr_t)__b...
Add constexpr specifier
@@ -50,7 +50,7 @@ namespace NSan { } // Determines if asan present - inline static bool ASanIsOn() noexcept { + inline constexpr static bool ASanIsOn() noexcept { #if defined(_asan_enabled_) return true; #else @@ -59,7 +59,7 @@ namespace NSan { } // Determines if tsan present - inline static bool TSanIsOn() noexcept { ...
Add (untested) pins for SPI.
scl-pin = <20>; }; +/* TODO: Needs testing */ +&spi0 { + compatible = "nordic,nrf-spi"; + /* Cannot be used together with i2c0. */ + /* status = "okay"; */ + sck-pin = <13>; + mosi-pin = <10>; + miso-pin = <11>; +}; + &flash0 { /* * For more information, see:
Ignore all Old Crypto Data
@@ -969,18 +969,9 @@ QuicCryptoProcessDataFrame( KeyType = QUIC_PACKET_KEY_1_RTT; // Treat them all as the same } - if (KeyType != Crypto->TlsState.ReadKey) { - if (QuicRecvBufferAlreadyReadData( - &Crypto->RecvBuffer, - Crypto->RecvEncryptLevelStartOffset + Frame->Offset, - (uint16_t)Frame->Length)) { - Status = QUIC_...
Update: maybe on Ubuntu the -lm is supposed to ooccur before the other flags, let's try
@@ -8,7 +8,7 @@ sudo rm /usr/lib/libONA.so Str=`ls src/*.c src/NetworkNAR/*.c | xargs` echo $Str echo "Compilation started:" -BaseFlags="-mfpmath=sse -msse2 -pthread -lpthread -D_POSIX_C_SOURCE=199506L -pedantic -std=c99 -lm" +BaseFlags="-mfpmath=sse -msse2 -pthread -lpthread -lm -D_POSIX_C_SOURCE=199506L -pedantic -st...
perfmon: check bundle is supported Add a check bundle is supported before futher activation. Enable different bundles with same name, supported on different platforms. Type: improvement
@@ -288,6 +288,21 @@ perfmon_stop (vlib_main_t *vm) return 0; } +static_always_inline u8 +is_bundle_supported (perfmon_bundle_t *b) +{ + perfmon_cpu_supports_t *supports = b->cpu_supports; + + if (!b->cpu_supports) + return 1; + + for (int i = 0; i < b->n_cpu_supports; ++i) + if (supports[i].cpu_supports ()) + return 1...
Test for timer creation error
@@ -82,8 +82,11 @@ static VALUE iodine_run_after(VALUE self, VALUE milliseconds) { if (block == Qnil) return Qfalse; Registry.add(block); - facil_run_every(milli, 1, iodine_run_task, (void *)block, - (void (*)(void *))Registry.remove); + if (facil_run_every(milli, 1, iodine_run_task, (void *)block, + (void (*)(void *))...
Add initial listview theme support
@@ -370,7 +370,9 @@ BOOLEAN CALLBACK PhpThemeWindowEnumChildWindows( } else if (PhEqualStringZ(className, L"SysListView32", FALSE)) { - NOTHING; + ListView_SetBkColor(WindowHandle, RGB(30, 30, 30)); + ListView_SetTextBkColor(WindowHandle, RGB(30, 30, 30)); + ListView_SetTextColor(WindowHandle, RGB(0xff, 0xff, 0xff)); }...
actions: explicitly export homebrew ruby and python paths
@@ -61,6 +61,8 @@ jobs: # and build directories, but this is only available with CMake 3.13 and higher. # The CMake binaries on the Github Actions machines are (as of this writing) 3.12 run: | + PATH="/usr/local/opt/ruby@2.7/bin:/usr/local/lib/ruby/gems/2.7.0/bin:$PATH" + PATH="/usr/local/opt/python@3.9/bin:$PATH" SYST...
hoon: better comment for +slab
=+ gun=(~(mint ut typ) %noun gen) [p.gun (slum q.gat q.sam)] :: -:: +slab states whether you can access an arm in a type -:: for reading, writing, or reading-and-writing. +:: +slab: states whether you can access an arm in a type. +:: +:: -- way: the access type ($vial): read, write, or read-and-write. +:: The fourth ca...
fix noborder for samesize clients
@@ -3318,7 +3318,7 @@ removesystrayicon(Client *i) void resize(Client *c, int x, int y, int w, int h, int interact) { - if (applysizehints(c, &x, &y, &w, &h, interact)) + if (applysizehints(c, &x, &y, &w, &h, interact) || selmon->clientcount == 1) resizeclient(c, x, y, w, h); }
options/posix: implement pthread_testcancel()
@@ -342,9 +342,13 @@ int pthread_setcancelstate(int state, int *oldstate) { return 0; } void pthread_testcancel(void) { - __ensure(!"Not implemented"); + auto self = reinterpret_cast<Tcb *>(mlibc::get_current_tcb()); + int value = self->cancelBits; + if (value & (tcbCancelEnableBit | tcbCancelTriggerBit)) { + __mlibc_d...
Remove stale comment: LDS fp atomics work correctly now.
@@ -89,13 +89,7 @@ template <typename T> int test_em() { red = 0.0; - // LDS, fast: this is not yet working as expected. - // The red_sh variable is passed to the parallel outlined function - // through a global variable. By the time it reaches the unsafeAtomicAdd - // we lost the information about the type. That said,...
Raise max ipc message size limit to 256 MB
@@ -668,7 +668,8 @@ bool ipc_send_reply(struct ipc_client *client, const char *payload, uint32_t pay client->write_buffer_size *= 2; } - if (client->write_buffer_size > (1 << 22)) { // 4 MB + // TODO: reduce the limit back to 4 MB when screenshooter is implemented + if (client->write_buffer_size > (1 << 28)) { // 256 M...
Enforce Java 11 in build gradle
@@ -5,9 +5,14 @@ plugins { id "com.diffplug.gradle.spotless" version "4.5.1" id 'maven-publish' id 'signing' + id 'java' } -apply plugin: 'java' +java { + toolchain { + languageVersion = JavaLanguageVersion.of(11) + } +} repositories { mavenCentral()
Update to ndk r21
@@ -23,12 +23,13 @@ jobs: choco install --no-progress -y android-sdk choco install --no-progress -y ninja new-item "C:\Users\runneradmin\.android\repositories.cfg" -ItemType "file" - echo yes | C:\Android\android-sdk\tools\bin\sdkmanager.bat "cmake;3.10.2.4988404" + echo yes | C:\Android\android-sdk\tools\bin\sdkmanage...
BugID:18853913: modification fot the description of lora menuconfig
@@ -7,11 +7,11 @@ menuconfig AOS_COMP_LORAWAN_4_4_2 if AOS_COMP_LORAWAN_4_4_2 # Configurations for comp lorawan_4_4_2 config AOS_CONFIG_ENABLE_CLASS_B - bool "This is config for LoRaWAN Class B feature" + bool "Enable Class B" default n config AOS_CONFIG_LORAWAN_VERSION_110 - bool "This is config for LoRaWAN Specificat...
YANG parser BUGFIX dereferencing NULL pointer
@@ -146,7 +146,11 @@ buf_add_char(struct ly_ctx *ctx, const char **input, size_t len, char **buf, siz *buf = ly_realloc(*buf, *buf_len); LY_CHECK_ERR_RET(!*buf, LOGMEM(ctx), LY_EMEM); } + if (*buf_used) { memcpy(&(*buf)[*buf_used], *input, len); + } else { + memcpy(*buf, *input, len); + } (*buf_used) += len; (*input) +...
main: support files in cwd
@@ -64,13 +64,20 @@ _main_repath(c3_c* pax_c) c3_c* dir_c; c3_w len_w; + c3_assert(pax_c); if ( 0 != (rel_c = realpath(pax_c, 0)) ) { return rel_c; } fas_c = strrchr(pax_c, '/'); if ( !fas_c ) { - fprintf(stderr, "invalid path %s\n", pax_c); - return 0; + c3_c* rec_c = c3_malloc(strlen(pax_c) + 3); + c3_c* ret_c; + + s...
Enable RCVINFO
@@ -316,7 +316,7 @@ main(void) #else pthread_t tid_c, tid_s; #endif - int cur_buf_size, snd_buf_size, rcv_buf_size; + int cur_buf_size, snd_buf_size, rcv_buf_size, on; socklen_t opt_len; struct sctp_sndinfo sndinfo; char *line; @@ -473,6 +473,12 @@ main(void) exit(EXIT_FAILURE); } printf("to %d.\n", cur_buf_size); + + ...
Pulled /reader diffs and rumors into their own structures.
++ range (unit {hed/place tal/(unit place)}) ::< inclusive msg range ++ place $%({$da @da} {$ud @ud}) ::< @ud/@da for range ++ prize ::> query result - $% $: $reader ::< /reader - gys/(jug char (set partner)) ::< glyph bindings - nis/(map ship cord) ::< nicknames - == :: + $% {$reader prize-reader} ::< /reader {$friend...
[Components][Drivers][USB Device]fix ep assign bug
@@ -1845,7 +1845,7 @@ static rt_err_t rt_usbd_ep_assign(udevice_t device, uep_t ep) while(device->dcd->ep_pool[i].addr != 0xFF) { if(device->dcd->ep_pool[i].status == ID_UNASSIGNED && - ep->ep_desc->bmAttributes == device->dcd->ep_pool[i].type) + ep->ep_desc->bmAttributes == device->dcd->ep_pool[i].type && (EP_ADDRESS(...
Recipes in java tests
@@ -579,6 +579,7 @@ def onjava_test(unit, *args): 'TAG': serialize_list(get_values_list(unit, 'TEST_TAGS_VALUE')), 'SIZE': unit.get('TEST_SIZE_NAME') or '', 'REQUIREMENTS': serialize_list(get_values_list(unit, 'TEST_REQUIREMENTS_VALUE')), + 'TEST-RECIPES': base64.b64encode(unit.get('RECIPE_COMMAND_VALUE') or ''), # JTE...