message
stringlengths
6
474
diff
stringlengths
8
5.22k
process.c: fixed array index checking
@@ -603,7 +603,7 @@ int process_load(process_t *process, vm_object_t *o, offs_t base, size_t size, v paddr = (char *)ehdr + phdr->p_offset; } - if (j > sizeof(reloc) / sizeof(reloc[0])) + if (j >= sizeof(reloc) / sizeof(reloc[0])) return -ENOMEM; reloc[j].vbase = (void *)phdr->p_vaddr;
fix storage_test compiler warning
@@ -21,6 +21,10 @@ static void main_handler(void *arg) log_info("num blocks: %lu", storage_num_blocks()); log_info("block size: %u", block_size); log_info("writing 'hello world' to device..."); + if (block_size == 0) { + log_info("storage support is disabled, skipping test"); + return; + } buf = malloc(block_size); BUG...
Fix regression escaping empty columns from commit
* Authors: * * wj32 2010-2012 - * dmex 2018-2020 + * dmex 2018-2023 * */ @@ -30,6 +30,7 @@ VOID PhpEscapeStringForCsv( length = String->Length / sizeof(WCHAR); runStart = NULL; + runLength = 0; for (i = 0; i < length; i++) { @@ -326,12 +327,13 @@ PPH_STRING PhGetTreeNewText( PhInitializeEmptyStringRef(&getCellText.Text...
core: feed resolvers a handle to keyset with file modification times Resolvers can use the handle to put file modification times into a keyset. This is then compared with the cached modification times, to check whether the cache needs to be rebuilt.
@@ -456,7 +456,7 @@ int kdbClose (KDB * handle, Key * errorKey) * @retval 0 no update needed * @retval number of plugins which need update */ -static int elektraGetCheckUpdateNeeded (Split * split, Key * parentKey) +static int elektraGetCheckUpdateNeeded (Split * split, Key * parentKey, KeySet * modTimes) { int updateN...
missing PMTT is not an error
@@ -4390,8 +4390,10 @@ initAcpiTables( Find the Differentiated System Description Table (DSDT) from EFI_SYSTEM_TABLE **/ ReturnCode = GetAcpiTables(gST, &pNfit, &pPcat, &pPMTT); - if (EFI_ERROR(ReturnCode)) { - NVDIMM_WARN("Failed to get NFIT or PCAT or PMTT table."); + // The PMTT is optional, in that case the pointer...
Add struct for gpu color change data
@@ -927,6 +927,17 @@ int change_on_load_temp (int info, int high, int med) { } } + +struct LOAD_DATA { + ImVec4 color_high; + ImVec4 color_med; + ImVec4 color_low; + unsigned high_load; + unsigned med_load; +}; + + + void render_imgui(swapchain_stats& data, struct overlay_params& params, ImVec2& window_size, bool is_vu...
fixed missing break statement in py_net_search.
@@ -206,16 +206,19 @@ STATIC mp_obj_t py_net_search(uint n_args, const mp_obj_t *args, mp_map_t *kw_ar int pixel = COLOR_BINARY_TO_GRAYSCALE(IMAGE_GET_BINARY_PIXEL(arg_img, a, b)); sum += pixel; sum_2 += pixel * pixel; + break; } case IMAGE_BPP_GRAYSCALE: { int pixel = IMAGE_GET_GRAYSCALE_PIXEL(arg_img, a, b); sum += p...
Fix showing swversion of DDF devices in Node List
@@ -671,11 +671,12 @@ void DEV_PublishToCore(Device *device) const char *mapped; }; - std::array<CoreItem, 3> coreItems = { + std::array<CoreItem, 4> coreItems = { { { RAttrName, "name" }, { RAttrModelId, "modelid" }, - { RAttrManufacturerName, "vendor" } + { RAttrManufacturerName, "vendor" }, + { RAttrSwVersion, "vers...
Fix minor typo in nodeIncrementalSort.c. Author: Vignesh C Backpatch-through: 13, where it was introduced Discussion:
* into the second mode if we believe it's beneficial. * * Sorting incrementally can potentially use less memory, avoid fetching - * and sorting all tuples in the the dataset, and begin returning tuples - * before the entire result set is available. + * and sorting all tuples in the dataset, and begin returning tuples b...
Add BUILD_SINGLE etc
@@ -277,5 +277,10 @@ COMMON_PROF = -pg # If you want to enable the experimental BFLOAT16 support # BUILD_HALF = 1 # +# the below is not yet configurable, use cmake if you need to build only select types +BUILD_SINGLE = 1 +BUILD_DOUBLE = 1 +BUILD_COMPLEX = 1 +BUILD_COMPLEX16 = 1 # End of user configuration #
apps/system/poweroff: add a dependancy with BOARDCTL_POWEROFF Poweroff application can be enabled when board supports poweroff functionality. This commit fixs below: /os/../build/output/libraries/libapps.a(poweroff.o): In function `poweroff_main': /apps/system/poweroff/poweroff.c:68: undefined reference to `board_power...
config SYSTEM_POWEROFF bool "Power-Off command" default n + depends on BOARDCTL_POWEROFF ---help--- Enable support for the TASH poweroff command. NOTE: This option provides the TASH power-off command only. It requires board-specific
Make the c_compiler variables private As always in life, it's better to make things private by default
@@ -16,12 +16,12 @@ local util = require "pallene.util" local c_compiler = {} -c_compiler.CC = "cc" -c_compiler.CPPFLAGS = "-I./vm/src" -c_compiler.CFLAGS_BASE = "-std=c99 -g -fPIC" -c_compiler.CFLAGS_WARN = "-Wall -Wundef -Wpedantic -Wno-unused" -c_compiler.S_FLAGS = "-fverbose-asm" -c_compiler.USER_CFlAGS = os.getenv...
Adding deliberate ASAN violation for testing script
@@ -105,6 +105,11 @@ picoquic_alpn_enum picoquic_parse_alpn_nz(char const* alpn, size_t len) code = alpn_list[i].alpn_code; break; } +#if 1 + /* Deliberate access violation, to test ASAN reports */ + int x = alpn_list[i].alpn_val[64]; + DBG_PRINTF("ASAN should block this, x=0x%02x", x); +#endif } }
[toolchain] Add Makefile targets for GCC and LLVM toolchains
@@ -3,26 +3,23 @@ SHELL = bash INSTALL_PREFIX ?= install INSTALL_DIR ?= ${ROOT_DIR}/${INSTALL_PREFIX} -LLVM_INSTALL_DIR ?= ${INSTALL_DIR}/llvm -HALIDE_INSTALL_DIR ?= ${INSTALL_DIR}/halide -GCC_INSTALL_DIR ?= ${INSTALL_DIR}/riscv-gcc -CMAKE ?= cmake -CC ?= gcc -CXX ?= g++ +CMAKE ?= cmake-3.7.1 +CC ?= gcc-8.2.0 +CXX ?= g...
fix invalid value of rec_config for media_framework Did not specify the period_size and period_count values of rec_config, and an error caused by the garbage value occured.
@@ -142,6 +142,9 @@ record_result_t media_record_set_config(int channel, int sample_rate, int pcm_fo g_rc.rec_config->channels = channel; g_rc.rec_config->rate = sample_rate; g_rc.rec_config->format = pcm_format; + //TO-DO we should discussion for default value or user value and then will change. + g_rc.rec_config->per...
Fix snprintf() format specifiers for unsigned value
@@ -5171,7 +5171,7 @@ Image_deskew(int argc, VALUE *argv, VALUE self) case 2: width = NUM2ULONG(argv[1]); memset(auto_crop_width, 0, sizeof(auto_crop_width)); - snprintf(auto_crop_width, sizeof(auto_crop_width), "%ld", width); + snprintf(auto_crop_width, sizeof(auto_crop_width), "%lu", width); SetImageArtifact(image, "...
Avoid __GNUC__ warnings when defining DECLARE_DEPRECATED We need to check that __GNUC__ is defined before trying to use it. This demands a slightly different way to define DECLARE_DEPRECATED.
@@ -68,10 +68,12 @@ extern "C" { * still won't see them if the library has been built to disable deprecated * functions. */ +#define DECLARE_DEPRECATED(f) f; +#ifdef __GNUC__ # if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 0) +# undef DECLARE_DEPRECATED # define DECLARE_DEPRECATED(f) f __attribute__ ((deprecate...
Fix issue with change provider button not triggering modal
@@ -8,6 +8,7 @@ const Settings = () => { const changeProvider = () => { api.btcWalletCommand({ 'set-provider': null }); + window.location.reload(); }; const replaceWallet = () => {
cmake: xerces fix include libraries
@@ -86,7 +86,7 @@ if(NOT XercesC_LIBRARY) find_library(XercesC_LIBRARY_DEBUG NAMES "xerces-cd" "xerces-c_3D" "xerces-c_3_1D" DOC "Xerces-C++ libraries (debug)") - include(${CMAKE_CURRENT_LIST_DIR}/SelectLibraryConfigurations.cmake) + include(SelectLibraryConfigurations) select_library_configurations(XercesC) mark_as_ad...
iokernel: add compile-time flag to disable hyperthreads
#include "defs.h" +/*#define CORES_NOHT 1*/ + unsigned int nr_avail_cores = 0; DEFINE_BITMAP(avail_cores, NCPU); struct core_assignments core_assign; @@ -336,6 +338,7 @@ static int pick_core_for_proc(struct proc *p) struct thread *t; struct proc *buddy_proc, *core_proc; +#ifndef CORES_NOHT /* try to allocate a hyperthr...
[ZARCH] Restore detect() function
@@ -45,9 +45,29 @@ static char *cpuname_lower[] = { int detect(void) { - // return CPU_GENERIC; - return CPU_Z14; + FILE *infile; + char buffer[512], *p; + p = (char *)NULL; + infile = fopen("/proc/sysinfo", "r"); + while (fgets(buffer, sizeof(buffer), infile)){ + if (!strncmp("Type", buffer, 4)){ + p = strchr(buffer, ...
Fix evaluation of overlapping sets of features; log additionally ignored features
@@ -552,14 +552,14 @@ static TVector<TTrainingDataProviders> UpdateIgnoredFeaturesInLearn( if (featureEvalMode == NCB::EFeatureEvalMode::OthersVsAll) { ignoredFeatures = testedFeatures[testedFeatureSetIdx]; } else { - for (ui32 featureSetIdx : xrange(testedFeatures.size())) { - if (featureSetIdx != testedFeatureSetIdx)...
Turned off fscanf. It caused a crash in mongod. If we want to turn it back on, will need to determine how many fargs are needed?
@@ -4312,7 +4312,7 @@ fputwc(wchar_t wc, FILE *stream) IOSTREAMPOST(fputwc, 1, WEOF, (enum event_type_t)EVENT_FS); } -EXPORTON int +EXPORTOFF int fscanf(FILE *stream, const char *format, ...) { struct FuncArgs fArgs;
Corrects outstanding documentation issues Commit removes any remaining superfluous documentation that was not yet removed.
@@ -573,10 +573,6 @@ int mbedtls_rsa_private( mbedtls_rsa_context *ctx, * It is the generic wrapper for performing a PKCS#1 encryption * operation. * - * \note Alternative implementations of RSA need not support - * mode being set to #MBEDTLS_RSA_PRIVATE and might instead - * return #MBEDTLS_ERR_PLATFORM_FEATURE_UNSUPP...
l2: fix vrrp prefix mac comparison VRRP prefix length is 5 bytes, doesn't make sense to compare with 6 bytes mac address Type: fix
@@ -332,8 +332,8 @@ arp_term_l2bd (vlib_main_t * vm, || ethernet_address_cast (arp0->ip4_over_ethernet[0].mac.bytes)) { /* VRRP virtual MAC may be different to SMAC in ARP reply */ - if (!ethernet_mac_address_equal - (arp0->ip4_over_ethernet[0].mac.bytes, vrrp_prefix)) + if (clib_memcmp (arp0->ip4_over_ethernet[0].mac....
simd128: add some implementations of convert functions
@@ -6562,7 +6562,18 @@ simde_wasm_f32x4_convert_i32x4 (simde_v128_t a) { a_ = simde_v128_to_private(a), r_; - #if defined(SIMDE_CONVERT_VECTOR_) + #if defined(SIMDE_X86_SSE2_NATIVE) + r_.sse_m128 = _mm_cvtepi32_ps(a_.sse_m128i); + #elif defined(SIMDE_ARM_NEON_A32V7) + r_.neon_f32 = vcvtq_f32_s32(a_.neon_i32); + #elif d...
update windows shell check url to azure cache due to deprecation
@@ -16,7 +16,7 @@ Param( [string]$Clang7Hash = '672E4C420D6543A8A9F8EC5F1E5F283D88AC2155EF4C57232A399160A02BFF57', [string]$IntelPSWURL = 'http://registrationcenter-download.intel.com/akdlm/IRC_NAS/16766/Intel%20SGX%20PSW%20for%20Windows%20v2.8.100.2.exe', [string]$IntelPSWHash = '02E5A3E376B450A502F7D79B79A0CCFBCAFA1A...
framework/media: Fix a bulid warning in MediaUtils Change from int to unsigned int.
@@ -357,7 +357,7 @@ bool header_parsing(FILE *fp, audio_type_t audioType, unsigned int *channel, uns bool header_parsing(unsigned char *buffer, unsigned int bufferSize, audio_type_t audioType, unsigned int *channel, unsigned int *sampleRate, audio_format_type_t *pcmFormat) { - int headPoint; + unsigned int headPoint; u...
freertos: Fix CONFIG_SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY description This commit fixes the ambiguity in the description of the SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY configuration option.
@@ -208,10 +208,11 @@ menu "ESP32-specific" help Because some bits of the ESP32 code environment cannot be recompiled with the cache workaround, normally tasks cannot be safely run with their stack residing in external memory; for this reason - xTaskCreate and friends always allocate stack in internal memory and xTaskC...
channel-js: ensure lastEventId is an integer, and correctly set lastAckedEvent
@@ -203,7 +203,7 @@ class Channel { // let payload = [ ...this.outstandingJSON, - {action: "ack", "event-id": parseInt(this.lastEventId)} + {action: "ack", "event-id": this.lastEventId} ]; if (j) { payload.push(j) @@ -211,7 +211,7 @@ class Channel { let x = JSON.stringify(payload); req.send(x); - this.lastEventId = thi...
pkg/types: move column template registration into init() instead of the manually called Init(nodeName)
@@ -25,9 +25,7 @@ type EventType string var node string -func Init(nodeName string) { - node = nodeName - +func init() { // Register column templates columns.MustRegisterTemplate("comm", "maxWidth:16") columns.MustRegisterTemplate("pid", "minWidth:7") @@ -40,6 +38,10 @@ func Init(nodeName string) { columns.MustRegister...
wasm compilation fix (it's strange, but emscripten doesn't want to build with this include definition)
@@ -432,7 +432,6 @@ target_include_directories(sdlgpu PRIVATE ${THIRDPARTY_DIR}/sdl-gpu/src/external target_include_directories(sdlgpu PRIVATE ${THIRDPARTY_DIR}/sdl-gpu/src/externals/glew/GL) target_include_directories(sdlgpu PRIVATE ${THIRDPARTY_DIR}/sdl-gpu/src/externals/stb_image) target_include_directories(sdlgpu P...
update versions in listchanges
#!/bin/bash -t_old="obs/OpenHPC_1.1.1_Factory" -t_new="obs/OpenHPC_1.2_Factory" +t_old="obs/OpenHPC_1.2_Factory" +t_new="obs/OpenHPC_1.2.1_Factory" f_all=pkg-ohpc.all f_add=pkg-ohpc.chglog-add @@ -15,10 +15,13 @@ f_new=pkg-ohpc.new rm -f ${f_add} ${f_del} ${f_upd} rm -f ${f_dif} ${f_old} ${f_new} -#git diff ${t_old} ${...
Change import of Foreign.C which confused GHC 7.10
@@ -31,7 +31,8 @@ module Foreign.Lua.Core.Auxiliary import Control.Exception (IOException, try) import Data.ByteString (ByteString) -import Foreign.C (CChar, CInt (CInt), CSize (CSize), CString, withCString) +import Foreign.C ( CChar, CInt (CInt), CSize (CSize), CString + , withCString, peekCString ) import Foreign.Lua...
rdma: print device info from PCI VPD in 'show hardware' output Type: improvement
@@ -75,13 +75,27 @@ format_rdma_bit_flag (u8 * s, va_list * args) u8 * format_rdma_device (u8 * s, va_list * args) { + vlib_main_t *vm = vlib_get_main (); u32 i = va_arg (*args, u32); rdma_main_t *rm = &rdma_main; rdma_device_t *rd = vec_elt_at_index (rm->devices, i); + vlib_pci_device_info_t *d; u32 indent = format_ge...
groups: tabs use cursor: pointer
@@ -90,6 +90,7 @@ const Tab = ({ selected, id, label, setSelected }) => ( borderBottom={selected === id ? 1 : 0} borderBottomColor="black" mr={2} + cursor='pointer' onClick={() => setSelected(id)} > <Text color={selected === id ? "black" : "gray"}>{label}</Text>
Fix bad error code handling
@@ -2207,18 +2207,11 @@ ssize_t ngtcp2_conn_write_pkt(ngtcp2_conn *conn, uint8_t *dest, size_t destlen, nwrite = conn_write_handshake_ack_pkts(conn, dest, destlen, ts); if (nwrite < 0) { - if (nwrite != NGTCP2_ERR_NOMEM) { + if (nwrite != NGTCP2_ERR_NOBUF) { return nwrite; } - nwrite = 0; } else { - if ((size_t)nwrite ...
chat-view: crash on joining own chat
~[(chat-hook-poke %add-synced ship.act app-path.act ask-history.act)] =/ rid=resource (de-path:resource ship+app-path.act) + ?< =(our.bol entity.rid) =/ =cage :- %group-update !> ^- action:group-store
Add Nucleo-L432 pinout to readme
@@ -46,11 +46,11 @@ Implementation of low-level part (together with memory allocation for library) i Use connector **CN2** to connect ESP-01 module with the board ``` -Detailed pinout on STM32F769I-Discovery board +Detailed pinout for STM32F769I-Discovery board ESP-01 connection -- ESP_TX: PC12 -- ESP_RX: PD2 +- ESP_RX...
out_kafka: upgrade librdkafka path v1.7.0
@@ -4,10 +4,10 @@ FLB_OPTION(RDKAFKA_BUILD_EXAMPLES Off) FLB_OPTION(RDKAFKA_BUILD_TESTS Off) FLB_OPTION(ENABLE_LZ4_EXT Off) -add_subdirectory(librdkafka-1.6.0 EXCLUDE_FROM_ALL) +add_subdirectory(librdkafka-1.7.0 EXCLUDE_FROM_ALL) # librdkafka headers -include_directories(librdkafka-1.6.0/src/) +include_directories(libr...
sailfish: better be slowly, but tested
@@ -158,7 +158,7 @@ QtMainWindow::QtMainWindow(QObject *parent) : QObject(parent), commitWebViewsList(); //qDebug() << "Available cameras: " + QString::number(QCameraInfo::availableCameras().size()); - QTimer::singleShot(500, [&](){this->showEvent()}) + QTimer::singleShot(500, [&](){this->showEvent();}); qDebug() << "E...
restyled: update formatters
@@ -26,12 +26,12 @@ restylers: - "-i" - "--style=file" - prettier: - image: restyled/restyler-prettier:v2.3.2 + image: restyled/restyler-prettier:v2.5.1 - prettier-markdown: - image: restyled/restyler-prettier:v2.3.2 + image: restyled/restyler-prettier:v2.5.1 arguments: [] - shfmt: - image: restyled/restyler-shfmt:v3.3...
Partially reversed SceGxmTexture struct.
@@ -1022,7 +1022,32 @@ typedef struct SceGxmVertexStream { } SceGxmVertexStream; typedef struct SceGxmTexture { - unsigned int controlWords[4]; + // Control Word 0 + uint32_t unk0 : 3; + uint32_t vaddr_mode : 3; + uint32_t uaddr_mode : 3; + uint32_t mip_filter : 1; + uint32_t min_filter: 2; + uint32_t mag_filter : 2; +...
firdes/autotest: adding test for freqrespf and freqrespcf
@@ -359,3 +359,60 @@ void autotest_firdes_doppler() liquid_autotest_verbose ? "autotest_firdes_doppler.m" : NULL); } +// check frequency response (real-valued coefficients) +void autotest_liquid_freqrespf() +{ + // design filter + unsigned int h_len = 41; + float h[h_len]; + liquid_firdes_kaiser(h_len, 0.27f, 80.0f, 0....
Set SWITCH_RATIO for Arm(R) Neoverse(TM) V1 CPUs From testing this yields better results than the default of `2`.
@@ -3367,6 +3367,8 @@ is a big desktop or server with abundant cache rather than a phone or embedded d #elif defined(NEOVERSEV1) +#define SWITCH_RATIO 16 + #define SGEMM_DEFAULT_UNROLL_M 16 #define SGEMM_DEFAULT_UNROLL_N 4
fix Twitter link in README Twitter broke their JS-style links.
@@ -67,7 +67,7 @@ See [{file:CHANGELOG.md}](CHANGELOG.md) - *RubyGems* *repo*: https://rubygems.org/gems/oj -Follow [@peterohler on Twitter](http://twitter.com/#!/peterohler) for announcements and news about the Oj gem. +Follow [@peterohler on Twitter](http://twitter.com/peterohler) for announcements and news about the...
haskell-cabal-sandboxing: adjust travis file for after the rebase
@@ -138,7 +138,7 @@ before_script: fi # use a minimal configuration for the haskell bindings to give it enough time to compile dependencies - if [[ $HASKELL == ON ]]; then bindings="cpp;haskell"; fi - - if [[ $HASKELL == ON ]]; then plugins="resolver_fm_hpu_b;dump;haskell;ini;sync;error;list;ipaddr;hosts;spec"; fi + - ...
TEST: fix the blocked test when KEY_MAX_LENGTH is increased.
@@ -13488,7 +13488,7 @@ static int try_read_command(conn *c) { el = memchr(c->rcurr, '\n', c->rbytes); if (!el) { - if (c->rbytes >= (32* 1024)) { + if (c->rbytes > 1024) { /* * We didn't have a '\n' in the first k. This _has_ to be a * large multiget, if not we should just nuke the connection. @@ -13497,7 +13497,6 @@ ...
crypto: fix error handling in forked child process See and .
@@ -787,7 +787,7 @@ int CRYPTO_PLUGIN_FUNCTION (gpgCall) (KeySet * conf, Key * errorKey, Key * msgKe if (dup (pipe_stdin[0]) < 0) { ELEKTRA_SET_ERROR (ELEKTRA_ERROR_CRYPTO_GPG, errorKey, "failed to redirect stdin."); - return -2; + exit (42); } } close (pipe_stdin[0]); @@ -797,7 +797,7 @@ int CRYPTO_PLUGIN_FUNCTION (gp...
doc: explain dependencies in more details
@@ -200,8 +200,8 @@ The minimal set of plugins you should add: (e.g. an empty value). See [kdb-mount(1)](/doc/help/kdb-mount.md). -By default nearly all plugins are added. Only experimental plugins -will be omitted: +By default CMake adds nearly all plugins if the dependencies are present. +Only experimental plugins wi...
VERSION bump to version 2.1.92
@@ -64,7 +64,7 @@ endif() # micro version is changed with a set of small changes or bugfixes anywhere in the project. set(SYSREPO_MAJOR_VERSION 2) set(SYSREPO_MINOR_VERSION 1) -set(SYSREPO_MICRO_VERSION 91) +set(SYSREPO_MICRO_VERSION 92) set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI...
clangcl.exe - Add default inititalizer
@@ -1447,8 +1447,8 @@ void compress_block( // find best blocks for 2, 3 and 4 partitions for (int partition_count = 2; partition_count <= max_partitions; partition_count++) { - int partition_indices_1plane[2]; - int partition_index_2planes; + int partition_indices_1plane[2] { 0, 0 }; + int partition_index_2planes = 0; ...
remove accidental define
@@ -8,8 +8,6 @@ terms of the MIT license. A copy of the license can be found in the file #define _DEFAULT_SOURCE // ensure mmap flags are defined #endif -#define MI_USE_SBRK - #if defined(__sun) // illumos provides new mman.h api when any of these are defined // otherwise the old api based on caddr_t which predates the...
Fixes Docfilter connector : add default values for exclude filters
@@ -368,8 +368,25 @@ public class DocFilter extends org.apache.manifoldcf.agents.transformation.BaseT final List<String> includeFilters = new ArrayList<>(); final List<String> excludeFilters = new ArrayList<>(); + if (os.getChildCount() == 0) { + excludeFilters.add("\\/~.*"); + excludeFilters.add("\\.(?i)pst(?-i)$"); +...
Remove _assigned and _used from typechecker This should be replaced by a more powerful lifetime analysis, in a separate pass.
@@ -288,10 +288,6 @@ check_stat = function(node, errors) elseif texp._tag == types.T.Function then type_error(errors, node.loc, "trying to assign to a function") else - -- mark this declared variable as assigned to - if node.var._tag == ast.Var.Name and node.var._decl then - node.var._decl._assigned = true - end if nod...
FIB: remove assert from adj src this is the case when the ADJ fib is in the non-forwarding trie
@@ -292,7 +292,6 @@ fib_entry_src_adj_deactivate (fib_entry_src_t *src, /* * remove the depednecy on the covering entry */ - ASSERT(FIB_NODE_INDEX_INVALID != src->u.adj.fesa_cover); cover = fib_entry_get(src->u.adj.fesa_cover); fib_entry_cover_untrack(cover, src->u.adj.fesa_sibling);
Fix reference to wrong view in release notes The estimate of total backup size effects the view pg_stat_progress_basebackup, not pg_stat_progress_analyze.
@@ -2319,7 +2319,7 @@ Author: Author: Fujii Masao <fujii@postgresql.org> <para> This computation allows <link - linkend="monitoring-stats-dynamic-views-table"><structname>pg_stat_progress_analyze</structname></link> + linkend="monitoring-stats-dynamic-views-table"><structname>pg_stat_progress_basebackup</structname></l...
Listening sockets remaining from the previous configuration were not updated with new parameters.
@@ -1532,6 +1532,7 @@ nxt_router_listen_socket_update(nxt_task_t *task, void *obj, void *data) old = listen->socket.data; listen->socket.data = joint; + listen->listen = &joint->socket_conf->listen; job->work.next = NULL; job->work.handler = nxt_router_conf_wait;
decision: add thoughts of regarding splitting key into key name and key data
@@ -319,6 +319,14 @@ struct _Key { }; ``` +@mpranj's thoughts regarding moving name and data to separate structures: + +> 1. If they [key name and data] are a separate entity, `mmapstorage` will need a flag once again for each of those. +> This is used to mark whether the data is in an mmap region or not. (or we find s...
Updates zlib download url to 1.2.10, the previous used version is no longer available.
@@ -87,9 +87,9 @@ RUN curl -L -O http://downloads.sourceforge.net/libuuid/libuuid-1.0.3.tar.gz && # zlib -RUN curl -L -O http://zlib.net/zlib-1.2.8.tar.gz && \ - tar -xvzf zlib-1.2.8.tar.gz && \ - cd zlib-1.2.8 && \ +RUN curl -L -O http://zlib.net/zlib-1.2.10.tar.gz && + tar -xvzf zlib-*.tar.gz && \ + cd zlib-* && \ ./...
ESP32 example: return value fixes
@@ -131,6 +131,7 @@ static esp_err_t mqtt_event_handler(esp_mqtt_event_handle_t event) Logger.Error("MQTT event UNKNOWN"); break; } + return ESP_OK; } static void initializeIoTHubClient() @@ -214,7 +215,7 @@ static uint32_t getEpochTimeInSecs() return (uint32_t)time(NULL); } -static int establishConnection() +static vo...
create soft link for libpmi.so -> libpmix.so
@@ -55,6 +55,11 @@ CFLAGS="%{optflags}" ./configure --prefix=%{install_path} %install %{__make} install DESTDIR=${RPM_BUILD_ROOT} +# PMIx provides PMI1 and PMI2 interfaces in libmpix, but many packages check +# linkage against libpmi.so directly - create soft link to libpmix.so + +%{__ln_s} ${RPM_BUILD_ROOT}/%{install_...
luatable can set negative/zeor int as key
@@ -1022,19 +1022,17 @@ end internal object getObject(int reference, int index) { if (index >= 1) { - int oldTop = LuaDLL.lua_gettop (L); LuaDLL.lua_getref (L, reference); LuaDLL.lua_rawgeti (L, -1, index); object returnValue = getObject (L, -1); - LuaDLL.lua_settop (L, oldTop); + LuaDLL.lua_pop (L, 1); return returnVa...
baseboard/volteer/charger.c: Format with clang-format BRANCH=none TEST=none
@@ -30,8 +30,7 @@ const struct charger_config_t chg_chips[] = { int board_set_active_charge_port(int port) { - int is_valid_port = (port >= 0 && - port < CONFIG_USB_PD_PORT_MAX_COUNT); + int is_valid_port = (port >= 0 && port < CONFIG_USB_PD_PORT_MAX_COUNT); int i; if (port == CHARGE_PORT_NONE) { @@ -52,7 +51,6 @@ int ...
cirrus: remove jobs migrated to github actions
@@ -32,7 +32,7 @@ jobs: CC: clang CXX: clang++ ENABLE_LOGGER: ON - TOOLS: ALL;web + TOOLS: NODEP PLUGINS: ALL BINDINGS: ALL;-rust - name: Clang ASAN @@ -155,7 +155,7 @@ jobs: -GNinja -DPLUGINS="${PLUGINS:-ALL}" -DBINDINGS="${BINDINGS:-ALL}" - -DTOOLS="${TOOLS:-DEFAULT}" + -DTOOLS="${TOOLS:-NODEP}" -DBUILD_FULL="${BUILD...
[http3] Support macOS in 40http3-forward-initial
@@ -51,9 +51,6 @@ This will generate quic-nondecryptable-initial.bin. check_dtrace_availability(); -plan skip_all => 'This test only supports Linux' - unless $^O eq 'linux'; - plan skip_all => 'python3 not found' unless prog_exists('python3'); @@ -100,18 +97,30 @@ if ($tracer_pid == 0) { close STDOUT; open STDOUT, ">",...
input_manager: fix potential memory leak on text Fix potential memory leak when controller_push_event failed.
@@ -144,6 +144,7 @@ void input_manager_process_text_input(struct input_manager *input_manager, return; } if (!controller_push_event(input_manager->controller, &control_event)) { + SDL_free(control_event.text_event.text); LOGW("Cannot send text event"); } }
DM USB: add libusb error conversion function Add a function to covert libusb error to the common USB core error type. Acked-by: Eddie Dong
static struct usb_dev_sys_ctx_info g_ctx; +static inline int +usb_dev_err_convert(int err) +{ + switch (err) { + case LIBUSB_ERROR_TIMEOUT: return USB_ERR_TIMEOUT; + case LIBUSB_ERROR_PIPE: return USB_ERR_STALLED; + case LIBUSB_ERROR_NO_DEVICE: return USB_ERR_INVAL; + case LIBUSB_ERROR_BUSY: return USB_ERR_IN_USE; + ca...
GIF loader: check bad image separator, ensure left/top offset of image don't reach image margins
@@ -275,7 +275,7 @@ gif_out_code( return; } - g->out[g->cur_x + g->cur_y * g->line_size] = g->codes[code].suffix; + g->out[g->cur_x + g->cur_y * g->max_x] = g->codes[code].suffix; if (g->cur_x >= g->actual_width) { g->actual_width = g->cur_x + 1; } @@ -433,7 +433,7 @@ gif_load_next( y = gif_get16le(s); /* Image Top Pos...
Utilities: CreateVault optimized with ShellCheck
@@ -45,13 +45,11 @@ cd "${OCPath}" || abort "Failed to reach ${OCPath}" /usr/libexec/PlistBuddy -c "Add Version integer 1" vault.plist || abort "Failed to set vault.plist version" echo "Hashing files in ${OCPath}..." -## ShellCheck Exception(s) -## https://github.com/koalaman/shellcheck/wiki/SC2162 -# shellcheck disabl...
frsky: delay STATE_UPDATE by one loop to allow for late frame
@@ -447,11 +447,10 @@ static uint8_t frsky_d_handle_packet() { cc2500_strobe(CC2500_SRX); } - if ((debug_timer_micros() - telemetry_time) < SYNC_DELAY_MAX) { - break; - } - + if ((debug_timer_micros() - telemetry_time) >= SYNC_DELAY_MAX) { protocol_state = STATE_UPDATE; + } + break; //fallthrough case STATE_UPDATE: fra...
Update PhCreateFile return status for filenames
@@ -8209,7 +8209,7 @@ NTSTATUS PhCreateFile( _Out_ PHANDLE FileHandle, _In_ PPH_STRING FileName, _In_ ACCESS_MASK DesiredAccess, - _In_opt_ ULONG FileAttributes, + _In_ ULONG FileAttributes, _In_ ULONG ShareAccess, _In_ ULONG CreateDisposition, _In_ ULONG CreateOptions @@ -8222,7 +8222,7 @@ NTSTATUS PhCreateFile( IO_ST...
Added param 'arch'
@@ -63,6 +63,7 @@ extern "C" { OVERLAY_PARAM_BOOL(io_write) \ OVERLAY_PARAM_BOOL(gpu_mem_clock) \ OVERLAY_PARAM_BOOL(gpu_core_clock) \ + OVERLAY_PARAM_BOOL(arch) \ OVERLAY_PARAM_CUSTOM(fps_sampling_period) \ OVERLAY_PARAM_CUSTOM(output_file) \ OVERLAY_PARAM_CUSTOM(font_file) \
Removing more leftovers
#include "utils.h" #include "inject.h" -#define DEVMODE 0 -#define _MFD_CLOEXEC 0x0001U -#define PARENT_PROC_NAME "start_scope" #define GO_ENV_VAR "GODEBUG" #define GO_ENV_SERVER_VALUE "http2server" #define GO_ENV_CLIENT_VALUE "http2client" @@ -154,15 +151,6 @@ main(int argc, char **argv, char **env) showUsage(basename...
Adjust ARMV8 SGEMM unrolling when using the C fallback kernel_2x2 for IOS
@@ -2590,8 +2590,13 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #define GEMM_DEFAULT_OFFSET_B 0 #define GEMM_DEFAULT_ALIGN 0x03fffUL +#if defined(OS_DARWIN) && defined(CROSS) +#define SGEMM_DEFAULT_UNROLL_M 2 +#define SGEMM_DEFAULT_UNROLL N 2 +#else #define SGEMM_DEFAULT_UNROLL_M 4 #defi...
refactoring for issue
@@ -48,7 +48,7 @@ u32 GetTypeNumSlots (u8 i_type) } i16 GetStackTopIndex (IM3Compilation o) -{ +{ d_m3Assert (o->stackIndex > 0); return o->stackIndex - 1; } @@ -100,13 +100,19 @@ i16 GetNumBlockValues (IM3Compilation o) } +bool IsStackIndexInRegister (IM3Compilation o, u16 i_stackIndex) +{ d_m3Assert (i_stackIndex < o...
[DeviceDrivers] Add critical_work for wqueue.
@@ -86,6 +86,28 @@ rt_err_t rt_workqueue_dowork(struct rt_workqueue* queue, struct rt_work* work) return RT_EOK; } +rt_err_t rt_workqueue_critical_work(struct rt_workqueue* queue, struct rt_work* work) +{ + RT_ASSERT(queue != RT_NULL); + RT_ASSERT(work != RT_NULL); + + rt_enter_critical(); + /* NOTE: the work MUST be i...
Update update_latest.yml to fix variable namespace issues.
@@ -42,7 +42,7 @@ jobs: - name: Check Tag run: | - if [[ ${{needs.info.outputs.tag}} == '' || ${{needs.info.outputs.prerelease}} != '' ]]; then + if [[ ${{ steps.tag.outputs.tag }} == '' || ${{ steps.version.outputs.prerelease }} != '' ]]; then echo "The git version ${{ steps.version.outputs.version }} is not usable......
ci: add imxrt1064 runner
@@ -68,9 +68,9 @@ jobs: _boot rootfs-${{ matrix.target }}.tar - test: + test-emu: needs: build - name: run tests + name: run tests on emulators runs-on: ubuntu-latest strategy: matrix: @@ -104,3 +104,39 @@ jobs: uses: ./.github/actions/phoenix-runner with: target: ${{ matrix.target }} + + test-hw: + needs: build + name...
shim/runtime: Store inclavare-containers configuration
@@ -93,6 +93,7 @@ func New(ctx context.Context, id string, publisher shim.Publisher, shutdown func ep: ep, cancel: shutdown, containers: make(map[string]*runc.Container), + config: make(map[string]*containerConfiguration), } go s.processExits() runcC.Monitor = reaper.Default @@ -104,6 +105,11 @@ func New(ctx context.Co...
Removes const from field (deleted move ctor)
@@ -128,8 +128,8 @@ namespace celix { namespace dm { */ std::size_t getNrOfComponents() const; private: - const std::shared_ptr<celix_bundle_context_t> context; - const std::shared_ptr<celix_dependency_manager_t> cDepMan; + std::shared_ptr<celix_bundle_context_t> context; + std::shared_ptr<celix_dependency_manager_t> c...
Fix sysinfo window keyboard accelerator drawing when inactive
@@ -1510,7 +1510,7 @@ VOID PhSipDefaultDrawPanel( stateId = -1; - if (Section->GraphHot || Section->PanelHot || Section->HasFocus) + if (Section->GraphHot || Section->PanelHot || (Section->HasFocus && !Section->HideFocus)) { if (Section == CurrentSection) stateId = TREIS_HOTSELECTED;
Apache Mynewt 1.5.0 release
@@ -35,8 +35,8 @@ repo.versions: "1.4.1": "mynewt_1_4_1_tag" "1.5.0": "mynewt_1_5_0_tag" - "0-latest": "1.4.1" - "1-latest": "1.4.1" + "0-latest": "1.5.0" + "1-latest": "1.5.0" "0-dev": "0.0.0" # master "0.8-latest": "0.8.0" @@ -57,6 +57,9 @@ repo.newt_compatibility: # Core 1.1.0+ requires newt 1.1.0+ (feature: self-ov...
common: implement flash check error for l0 and f0
#define FLASH_L0_OPTKEY2 0x24252627 #define FLASH_SR_BSY 0 +#define FLASH_SR_PG_ERR 2 +#define FLASH_SR_WRPRT_ERR 4 #define FLASH_SR_EOP 5 +#define FLASH_SR_ERROR_MASK ((1 << FLASH_SR_PG_ERR) | (1 << FLASH_SR_WRPRT_ERR)) + #define FLASH_CR_PG 0 #define FLASH_CR_PER 1 #define FLASH_CR_MER 2 +#define FLASH_CR_OPTPG 4 #de...
Add NETGEAR weak candidate based on wpa-sec founds
@@ -192,8 +192,8 @@ static const char *firstword[] = "pastel", "perfect", "phobic", "pink", "polite", "precious", "purple", "quaint", "quick", "quiet", "rapid", "red", "rocky", "round", "royal", "rustic", -"shiny", "silent", "silky", "silly", "slow", "smiley", "smiling", "smooth", -"strong", "sunny", "sweet", +"savage"...
file_close(): deallocate file descriptor closures. This fixes a memory leak that was occurring when a file is opened and then closed.
@@ -925,6 +925,12 @@ closure_function(2, 2, sysreturn, file_close, } if (ret == 0) { + deallocate_closure(f->f.read); + deallocate_closure(f->f.write); + deallocate_closure(f->f.sg_read); + deallocate_closure(f->f.sg_write); + deallocate_closure(f->f.events); + deallocate_closure(f->f.close); release_fdesc(&f->f); unix...
py/emitnative: Simplify viper mode handling in emit_native_import_name.
@@ -1170,32 +1170,16 @@ STATIC void emit_native_import_name(emit_t *emit, qstr qst) { DEBUG_printf("import_name %s\n", qstr_str(qst)); // get arguments from stack: arg2 = fromlist, arg3 = level - // if using viper types these arguments must be converted to proper objects - if (emit->do_viper_types) { - // fromlist shou...
Adjust m3_CallWithArgs to be used with spec tests
@@ -403,7 +403,7 @@ M3Result m3_CallWithArgs (IM3Function i_function, i32 i_argc, ccstr_t * i_argv IM3FuncType ftype = i_function->funcType; -_ (Module_EnsureMemorySize (module, & i_function->module->memory, 3000000)); +//_ (Module_EnsureMemorySize (module, & i_function->module->memory, 3000000)); u8 * linearMemory = m...
fix doc names
@@ -98,8 +98,8 @@ typedef NS_ENUM(NSInteger, ODWSessionState) /*! @brief Logs a diagnostic trace event to help you troubleshoot problems. - @param aLevel The level of the trace as one of the ::ODWTraceLevel enumeration values. - @param aMessage A string that contains a description of the trace. + @param traceLevel The ...
Support loading 16 bit images; With 1, 2, or 4 channels;
@@ -494,7 +494,26 @@ TextureData* lovrTextureDataInitFromBlob(TextureData* textureData, Blob* blob, b int width, height; int length = (int) blob->size; stbi_set_flip_vertically_on_load(flip); - if (stbi_is_hdr_from_memory(blob->data, length)) { + if (stbi_is_16_bit_from_memory(blob->data, length)) { + int channels; + t...
Bump API version to 1.16.0 Some apps won't work with older API version.
@@ -65,7 +65,7 @@ GIT_COMMIT = $$system("git rev-list HEAD --max-count=1") # Version Major.Minor.Build # Important: don't change the format of this line since it's parsed by scripts! DEFINES += GW_SW_VERSION=\\\"2.05.40\\\" -DEFINES += GW_API_VERSION=\\\"1.0.9\\\" +DEFINES += GW_API_VERSION=\\\"1.16.0\\\" DEFINES += GI...
Add ICU support for FindNodeJS on version 18.
@@ -452,6 +452,8 @@ if(NOT NodeJS_LIBRARY) message(STATUS "Configure NodeJS shared library") # Select the ICU library depending on the NodeJS version + if("${NodeJS_VERSION_MAJOR}" GREATER_EQUAL "18") + set(ICU_URL "https://github.com/unicode-org/icu/releases/download/release-71-1/icu4c-71_1-src.zip") if("${NodeJS_VERS...
Fix support for "which-jobs" = 'fetchable' (Issue For ippserver, any pending job is fetchable.
@@ -4009,6 +4009,11 @@ ipp_get_jobs(server_client_t *client) /* I - Client */ job_comparison = 0; job_state = IPP_JSTATE_STOPPED; } + else if (!strcmp(which_jobs, "fetchable") && client->printer->pinfo.proxy_group != SERVER_GROUP_NONE) + { + job_comparison = 0; + job_state = IPP_JSTATE_PENDING; + } else { serverRespond...
Add STM32F412xx to supported CPUs by PWM
@@ -175,7 +175,7 @@ int Library_win_dev_pwm_native_Windows_Devices_Pwm_PwmPin::GetChannel (int pin, break; } #endif -#if defined(STM32F411xx) || defined(STM32F401xx) +#if defined(STM32F411xx) || defined(STM32F412xx) || defined(STM32F401xx) switch (timerId) { case 1 :
MEMFS: Add actual count to assert statement
@@ -113,7 +113,9 @@ for directory in dirs: totsize = 0 g.close() -assert fcount == 3 +# The number of generated C files is hard coded. +# See memfs/CMakeLists.txt +assert fcount == 3, fcount opath = output_file_base + "_final.c" print('MEMFS: Generating output: ', opath) g = open(opath, "w")
Stop shifting from extending past genome boundaries When provided with a genome file, shift was still creating intervals that extended past the last base pair. See issue
@@ -70,7 +70,7 @@ void BedShift::AddShift(BED &bed) { if ((bed.end + shift) <= 0) bed.end = 1; - else if ((bed.start + shift) > chromSize) + else if ((bed.end + shift) > chromSize) bed.end = chromSize; else bed.end = bed.end + shift;
IsFlat: use int for thresh thresh is defined by FLATNESS_LIMIT_* which ranges from 2-10. score_t is int64 which is a touch overkill.
@@ -977,8 +977,8 @@ static void SwapOut(VP8EncIterator* const it) { SwapPtr(&it->yuv_out_, &it->yuv_out2_); } -static int IsFlat(const int16_t* levels, int num_blocks, score_t thresh) { - score_t score = 0; +static int IsFlat(const int16_t* levels, int num_blocks, int thresh) { + int score = 0; while (num_blocks-- > 0)...
improve quat_look
@@ -646,15 +646,12 @@ glm_quat_slerp(versor from, versor to, float t, versor dest) { CGLM_INLINE void glm_quat_look(vec3 eye, versor ori, mat4 dest) { - CGLM_ALIGN(16) vec4 t; - /* orientation */ glm_quat_mat4t(ori, dest); /* translate */ - glm_vec4(eye, 1.0f, t); - glm_mat4_mulv(dest, t, t); - glm_vec_flipsign_to(t, d...
Fixing one sentence in photo-z section.
@@ -399,7 +399,7 @@ This function is directly implemented in {\tt CCL} as well as a specific $\sigma \subsection{Photo-$z$ implementation} \label{sec:photoz} -LSST galaxy redshifts will be obtained using photometry. However, analytic forms of galaxy redshift distributions are usually known in terms of spectroscopic red...
Use cached local variable instead using accessor
@@ -395,7 +395,7 @@ static int __redisGetSubscribeCallback(redisAsyncContext *ac, redisReply *reply, cb->pending_subs -= 1; } - memcpy(dstcb,dictGetEntryVal(de),sizeof(*dstcb)); + memcpy(dstcb,cb,sizeof(*dstcb)); /* If this is an unsubscribe message, remove it. */ if (strcasecmp(stype+pvariant,"unsubscribe") == 0) {