message
stringlengths
6
474
diff
stringlengths
8
5.22k
[tcp] remove extra printf
@@ -994,7 +994,6 @@ status_t tcp_connect(tcp_socket_t **handle, uint32_t addr, uint16_t port) { // XXX add some entropy to try to better randomize things lk_bigtime_t t = current_time_hires(); - printf("%lld\n", t); rand_add_entropy(&t, sizeof(t)); // set up the socket for outgoing connections
[github][ci] add qemu-virt-m68k-test to the build matrix
@@ -84,6 +84,9 @@ jobs: - project: pc-x86-64-test toolchain: x86_64-elf-7.5.0-Linux-x86_64 debug: 2 + - project: qemu-virt-m68k-test + toolchain: m68k-elf-7.5.0-Linux-x86_64 + debug: 2 # build some in release mode (DEBUG=0) - project: qemu-virt-arm32-test toolchain: arm-eabi-7.5.0-Linux-x86_64
fix overly restrictive assertion
@@ -688,6 +688,6 @@ mi_page_t* _mi_segment_page_alloc(size_t block_size, mi_segments_tld_t* tld, mi_ page = mi_segment_large_page_alloc(tld, os_tld); else page = mi_segment_huge_page_alloc(block_size,tld,os_tld); - mi_assert_expensive(mi_segment_is_valid(_mi_page_segment(page))); + mi_assert_expensive(page == NULL || m...
nxos/base/drivers/i2c: Supress unused variable warning. The comment indicates that this read operation is intentional, so keep it. Instead just cast to void to suppress: base/drivers/i2c.c:410:16: error: variable 'dummy' set but not used [-Werror=unused-but-set-variable] 410 | volatile U32 dummy; | ^~~...
@@ -417,6 +417,7 @@ static void i2c_isr(void) { * interrupt handler to be called again. */ dummy = *AT91C_TC0_SR; + (void)dummy; for (sensor=0; sensor<NXT_N_SENSORS; sensor++) { const nx__sensors_pins *pins = nx__sensors_get_pins(sensor);
fixes possible segfault by wrong argument type (see for details)
@@ -4641,7 +4641,7 @@ void DeRestPluginPrivate::checkSensorButtonEvent(Sensor *sensor, const deCONZ::A if (dt > 0 && dt < 500) { - DBG_Printf(DBG_INFO, "[INFO] - Button %u %s, discard too fast event (dt = %d) %s\n", buttonMap.button, qPrintable(cmd), dt, qPrintable(sensor->modelId())); + DBG_Printf(DBG_INFO, "[INFO] - ...
tests/run-perfbench.py: Skip complex tests if target doesn't enable it.
@@ -77,13 +77,17 @@ def run_benchmark_on_target(target, script): return -1, -1, 'CRASH: %r' % err def run_benchmarks(target, param_n, param_m, n_average, test_list): + skip_complex = run_feature_test(target, 'complex') != 'complex' skip_native = run_feature_test(target, 'native_check') != '' for test_file in sorted(tes...
Update: NAR_language.py: allow starting with generic tokenization, which needs to introduce word token combinations first to make it recognize words, making it slightly less data-efficient but more general
import NAR import json +import sys NAR.AddInput("*volume=100") #NAL truth functions @@ -234,7 +235,7 @@ def newSentence(sentence): global words, localist_tokens if " " not in sentence: localist_tokens = True - if localist_tokens: + if localist_tokens and not "genericTokenization" in sys.argv: words = sentence.split(" "...
mbedtls: Fix Z->s in mbedtls_mpi_exp_mod() Z->s should never be zero, only 1 or -1. Added additional checks for X, Y and M args to correctly set Z->s. Closes: Closes: Closes:
@@ -359,6 +359,18 @@ int mbedtls_mpi_exp_mod( mbedtls_mpi* Z, const mbedtls_mpi* X, const mbedtls_mpi mbedtls_mpi *Rinv; /* points to _Rinv (if not NULL) othwerwise &RR_new */ mbedtls_mpi_uint Mprime; + if (mbedtls_mpi_cmp_int(M, 0) <= 0 || (M->p[0] & 1) == 0) { + return MBEDTLS_ERR_MPI_BAD_INPUT_DATA; + } + + if (mbed...
more optimize code
@@ -16099,21 +16099,6 @@ prebuild_temp_table(Relation rel, RangeVar *tmpname, DistributedBy *distro, rel->rd_rel->relhasindex) cs->buildAoBlkdir = true; - if (RelationIsAoCols(rel)) - { - ListCell *lc; - - foreach(lc, opts) - { - DefElem *de = lfirst(lc); - - cs->options = lappend(cs->options, de); - } - if (useExistin...
Work CI-CD Add missing triggers configs to yaml. Add missing templates. ***NO_CI***
+trigger: none +pr: none + +# add nf-tools repo to resources (for Azure Pipelines templates) +resources: + repositories: + - repository: templates + type: github + name: nanoframework/nf-tools + endpoint: nanoframework + - repository: esp32_idf + type: github + name: espressif/esp-idf + endpoint: nanoframework + ref: r...
libhfuzz: make libraries more backwards-compatible with the honggfuzz binary
@@ -71,9 +71,9 @@ static bool initializeCovFeedback(void) { if (fstat(_HF_COV_BITMAP_FD, &st) == -1) { return false; } - if (st.st_size != sizeof(feedback_t)) { - LOG_W("Size of the feedback structure mismatch: st.size != sizeof(feedback_t) (%zu != " - "%zu). Link your fuzzed binaries with the newest honggfuzz and hfuz...
Report SkylakeX as Haswell if compiler does not support AVX512 ... or make was invoked with NO_AVX512=1
@@ -91,6 +91,10 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include <unistd.h> #endif +#if (( defined(__GNUC__) && __GNUC__ > 6 && defined(__AVX2__)) || (defined(__clang__) && __clang_major__ >= 6)) +#else +#define NO_AVX512 +#endif /* #define FORCE_P2 */ /* #define FORCE_KATMAI */ /* #...
remove commented out bits in favor of calling add_repo_file()
@@ -180,29 +180,6 @@ foreach my $distro (@distros) { my $isSrcRepo=0; add_repo_file("$tmp_dir/OpenHPC.local.repo",$micro,$base_release,$release,$distro,$isSrcRepo); -### my $repoFile="$tmp_dir/OpenHPC.local.repo"; -### -### print "Adding [base] repofile contents -> $repoFile\n"; -### -### File::Copy::copy("repo.base.in...
options/linux: Implement the utmpx family as musl does
#include <bits/ensure.h> +#include <stddef.h> +#include <errno.h> #include <utmpx.h> void updwtmpx(const char *, const struct utmpx *) { - __ensure(!"Not implemented"); - __builtin_unreachable(); + // Empty as musl does } void endutxent(void) { - __ensure(!"Not implemented"); - __builtin_unreachable(); + // Empty as mu...
HV: switch launch LaaG with OVMF by default OVMF will open source for V1.2, so enable launch LaaG with OVMF.
@@ -102,16 +102,22 @@ acrn-dm -A -m $mem_size -c $2 -s 0:0,hostbridge \ -s 3,virtio-blk,/home/clear/uos/uos.img \ -s 4,virtio-net,tap0 \ -s 7,virtio-rnd \ + --ovmf ./OVMF.fd \ $logger_setting \ --mac_seed $mac_seed \ - -k /usr/lib/kernel/default-iot-lts2018 \ - -B "root=/dev/vda3 rw rootwait maxcpus=$2 nohpet console=t...
Show all suggestions if no word is selected
@@ -223,7 +223,7 @@ class EditorViewController: UIViewController, SyntaxTextViewDelegate, InputAssis func updateSuggestions() { guard let selectedWord = textView.contentTextView.currentWord, !selectedWord.isEmpty else { - self.suggestions = [] + self.suggestions = EditorViewController.suggestions return inputAssistant....
fuzz: pthread_setname_np is not available with many OSes
@@ -632,12 +632,6 @@ static void* fuzz_threadNew(void* arg) { unsigned int fuzzNo = ATOMIC_POST_INC(hfuzz->threads.threadsActiveCnt); LOG_I("Launched new fuzzing thread, no. #%" PRId32, fuzzNo); - char tname[16]; - snprintf(tname, sizeof(tname), "HFUZZ-%" PRId32, fuzzNo); - if (pthread_setname_np(pthread_self(), tname)...
encoding/json: Remove unnecessary reads when parsing This caused the library to skip some characters after parsing an object from a list. When it encountered a character it didn't expect the library returned an error. We don't need to consume white space here because it is done after returning from this function.
@@ -494,8 +494,7 @@ json_internal_read_object(struct json_buffer *jb, } else if (c == ',') { state = await_attr; } else if (c == '}') { - c = jb->jb_read_next(jb); - goto good_parse; + return 0; } else { return JSON_ERR_BADTRAIL; } @@ -503,10 +502,6 @@ json_internal_read_object(struct json_buffer *jb, } } - good_parse:...
Disable heap reflection by default since reflected processes don't include port heaps
@@ -36,7 +36,7 @@ VOID PhAddDefaultSettings( PhpAddIntegerSetting(L"EnableCycleCpuUsage", L"1"); PhpAddIntegerSetting(L"EnableImageCoherencySupport", L"0"); PhpAddIntegerSetting(L"EnableInstantTooltips", L"0"); - PhpAddIntegerSetting(L"EnableHeapReflection", L"1"); + PhpAddIntegerSetting(L"EnableHeapReflection", L"0");...
work on physics stuff
@@ -1445,6 +1445,14 @@ factory.register(0x141829CE0, "Client::Game::Camera", "Client::Game::CameraBase" factory.register(0x14182B780, "Client::Graphics::Culling::OcclusionCullingManager", "Client::Graphics::Singleton", {}) factory.register(0x14182B790, "Client::Graphics::Streaming::StreamingManager_Client::Graphics::Jo...
extmod/modbuiltins/Speaker: add wait function Allow a user to pause the program until a background sound completes.
#include "py/obj.h" #include "py/runtime.h" #include "py/mpconfig.h" +#include "py/mphal.h" #include "modbuiltins.h" #include "pberror.h" typedef struct _builtins_Speaker_obj_t { mp_obj_base_t base; uint8_t volume; - uint8_t foo; + uint8_t foo; // DELETEME } builtins_Speaker_obj_t; // pybricks.builtins.Speaker.__init__...
CI: Force Wasmer version 0.15.0
@@ -108,7 +108,7 @@ jobs: - name: Install Wasienv run: curl https://raw.githubusercontent.com/wasienv/wasienv/master/install.sh | sh - name: Install Wasmer - run: curl https://get.wasmer.io -sSfL | sh + run: curl https://get.wasmer.io -sSfL | sh -s --version 0.15.0 - name: Run CMake run: | source $HOME/.wasienv/wasienv...
If buffer overflow remove the oldest message instead of rejecting new message
@@ -19,12 +19,16 @@ char mngr_message_available(void) { } void mngr_set(module_t* module, msg_t* msg) { - if ((module_msg_available+1 > MSG_BUFFER_SIZE) || (module->message_available+1 > MSG_BUFFER_SIZE)) { - // This new message doesn't fit into buffer, don't save it - return; - } + if ((module_msg_available+1 < MSG_BU...
Fix restart cookie on wasm;
@@ -21,6 +21,8 @@ typedef struct { static void emscriptenLoop(void*); #endif +static Variant cookie; + int main(int argc, char** argv) { if (argc > 1 && (!strcmp(argv[1], "--version") || !strcmp(argv[1], "-v"))) { lovrPlatformOpenConsole(); @@ -32,8 +34,6 @@ int main(int argc, char** argv) { int status; bool restart; -...
new tarball hieracrhy
@@ -84,7 +84,7 @@ rm -rf %{buildroot} %debug_package %{nil} %install -cd build +cd beegfs_client_module/build echo "mkdir RPM_BUILD_ROOT (${RPM_BUILD_ROOT})" mkdir -p ${RPM_BUILD_ROOT} make RELEASE_PATH=${RPM_BUILD_ROOT}/opt/beegfs/src/client \
apps/system/critmon/Makefile: Stack size and priority reversed.
# Stack Monitor Application -CONFIG_SYSTEM_CRITMONITOR_PRIORITY ?= 2048 -CONFIG_SYSTEM_CRITMONITOR_STACKSIZE ?= SCHED_DAEMON_PRIORITY_DEFAULT +CONFIG_SYSTEM_CRITMONITOR_PRIORITY ?= SCHED_PRIORITY_DEFAULT +CONFIG_SYSTEM_CRITMONITOR_STACKSIZE ?= 2048 PRIORITY = $(CONFIG_SYSTEM_CRITMONITOR_PRIORITY) STACKSIZE = $(CONFIG_S...
add make targets: common, discord, github, orka
@@ -2,17 +2,23 @@ CC ?= gcc OBJDIR := obj LIBDIR := lib -SRC := $(wildcard \ +COMMON_SRC := $(wildcard \ curl-websocket.c \ http-common.c \ orka-utils.c \ - github-*.cpp \ - discord-*.cpp \ - orka-*.cpp \ ntl.c json-*.c) -_OBJS := $(filter %.o,$(SRC:.cpp=.o) $(SRC:.c=.o)) -OBJS := $(addprefix $(OBJDIR)/, $(_OBJS)) + +D...
Add missing nothrow specifier to new operator as code suggests
@@ -165,9 +165,9 @@ extern "C" celix_status_t bundleActivator_create(celix_bundle_context_t *context int status = CELIX_SUCCESS; \ \ BundleActivatorData* data = nullptr; \ - data = new BundleActivatorData{}; \ + data = new (std::nothrow) BundleActivatorData{}; \ if (data != nullptr) { \ - data->mng = std::shared_ptr<ce...
hslua-module-zip: fix tests Do not create a new file on each run.
@@ -19,16 +19,18 @@ return { test('archive with file', function () system.with_tmpdir('archive', function (tmpdir) + system.with_wd(tmpdir, function () local filename = 'greetings.txt' local fh = io.open(filename, 'w') fh:write('Hi Mom!\n') fh:close() assert.are_equal( - type(zip.create(tmpdir .. '/' .. filename)), + t...
Add lte_check hostname size before memcpy for cert map lookup
@@ -228,6 +228,7 @@ int s2n_conn_find_name_matching_certs(struct s2n_connection *conn) } const char *name = conn->server_name; struct s2n_blob hostname_blob = { .data = (uint8_t *) (uintptr_t) name, .size = strlen(name) }; + lte_check(hostname_blob.size, S2N_MAX_SERVER_NAME); char normalized_hostname[S2N_MAX_SERVER_NAM...
qcow: Clarify bad magic error message Previously, if you mapped a raw file using user:qcow, it would display an error message saying "bad magic" with a stale errno message. Now make it clear that this may be expected if it's a raw file.
@@ -319,7 +319,7 @@ static int qcow2_probe(struct bdev *bdev, int dirfd, const char *pathname) goto err; } if (be32toh(head.magic) != QCOW_MAGIC) { - perror("bad magic"); + tcmu_warn("not qcow: will treat as raw: %s", pathname); goto err; } if (be32toh(head.version) < 2) {
Document requirement for an erlang compiler.
@@ -10,6 +10,7 @@ Dependencies * CMake ([CMake build system](https://cmake.org/)) is required to build AtomVM. * gperf ([GNU Perfect Hash Function Generator](https://www.gnu.org/software/gperf/manual/gperf.html)) is required to build AtomVM. +* erlc ([erlang compiler](https://www.erlang.org/)) is required to build Atom...
router_readconfig: avoid use after free found by Coverity
@@ -1096,6 +1096,7 @@ router_readconfig(router *orig, if (router_yylex_init(&lptr) != 0) { logerr("lex init failed\n"); router_free(ret); + return NULL; } /* copies buf due to modifications, we need orig for error reporting */ router_yy_scan_string(buf, lptr);
adds and corrects some raft comments
@@ -1952,7 +1952,10 @@ _raft_crop(void) } } -/* _raft_pop_roe(): pop the next [(list effects) event] pair of the queue +/* _raft_pop_roe(): pop the next [~ event] off the queue. +** +** effects are no longer stored on u3A->roe; the head of +** each pair is always null. */ static u3_weak _raft_pop_roe(void) @@ -1973,17 ...
remove unneeded mkdir from sdr_transceiver_emb/app/Makefile
@@ -8,7 +8,6 @@ WDSP_URL = https://github.com/g0orx/wdsp/archive/$(WDSP_TAG).tar.gz all: sdr-transceiver-emb $(WDSP_TAR): - mkdir -p $(@D) curl -L $(WDSP_URL) -o $@ $(WDSP_DIR): $(WDSP_TAR)
Documentation change only: correction to uHttpClientGetRequest()/uHttpClientHeadRequest(). The pSize field in the uHttpClientGetRequest()/uHttpClientHeadRequest() functions doesn't need to remain valid until the callback is called (i.e. the non-blocking case) since the callback is given its own responseSize number.
@@ -339,8 +339,8 @@ int32_t uHttpClientPostRequest(uHttpClientContext_t *pContext, * * Only one HTTP request, of any kind, may be outstanding at a time. * - * IMPORTANT: see warning below about the validity of the pResponseBody, pSize - * and pContentType pointers. + * IMPORTANT: see warning below about the validity of...
invert target check
# each directory represents a target TARGETS := $(sort $(notdir $(shell sh -c 'find src/targets/ -type d'))) -TARGET := $(strip $(foreach dir,$(TARGETS),$(findstring $(dir),$(MAKECMDGOALS)))) +TARGET := $(strip $(foreach dir,$(MAKECMDGOALS),$(findstring $(dir),$(TARGETS)))) ifeq ($(TARGET),) # default to build AWv2
Feat:Add MA510 log function include path
@@ -26,6 +26,9 @@ boatLogConfig.h defines options for compiling. #include "boattypes.h" #include "qflog_utils.h" +/* MA510 log function Include ----------------------------------------------------------*/ +#include "odm_ght_log.h" + //! BOAT LOG LEVEL DEFINITION //! Log level is used to control the detail of log output...
fix(Kconfig): change the type of LV_FS_STDIO_LETTER from string to int
@@ -881,7 +881,8 @@ menu "LVGL configuration" config LV_USE_FS_STDIO bool "File system on top of stdio API" config LV_FS_STDIO_LETTER - string "Set an upper cased letter on which the drive will accessible (e.g. 'A' i.e. 65 )" + int "Set an upper cased letter on which the drive will accessible (e.g. 'A' i.e. 65 )" + def...
expect_continuation_of_headers efficiency fix If a frame is going to make the request exceed H2O_MAX_REQLEN, avoid allocating the memory for it, and reject the stream right away, instead of doing the alloc and memcpy.
@@ -392,11 +392,11 @@ static ssize_t expect_continuation_of_headers(h2o_http2_conn_t *conn, const uint return H2O_HTTP2_ERROR_PROTOCOL; } + if (conn->_headers_unparsed->size + frame.length <= H2O_MAX_REQLEN) { h2o_buffer_reserve(&conn->_headers_unparsed, frame.length); memcpy(conn->_headers_unparsed->bytes + conn->_hea...
export: mruby -> ruby
@@ -678,7 +678,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - script: [lua, moon, fennel, mruby, js, wren, squirrel] + script: [lua, moon, fennel, ruby, js, wren, squirrel] steps: - name: Download Windows XP artifact
output: allow instance name up to 32 bytes
@@ -113,7 +113,7 @@ struct flb_output_plugin { */ struct flb_output_instance { uint64_t mask_id; /* internal bitmask for routing */ - char name[16]; /* numbered name (cpu -> cpu.0) */ + char name[32]; /* numbered name (cpu -> cpu.0) */ char *alias; /* alias name for the instance */ int flags; /* inherit flags from plug...
workflows: add available labels 'long-term' add 'long-term' to the workflows readme.
| ok-to-merge | run mergebot and merge (rebase) current PR | | ci/integration-docker-ok | integration test is able to build docker image | | ci/integration-gcp-ok | integration test is able to run on GCP | +| long-term | long running pull request, don't close |
bricks/stm32: disable array and bytearray movehub fw size -1800
#define MICROPY_BUILTIN_METHOD_CHECK_SELF_ARG (0) #define MICROPY_PY_ASYNC_AWAIT (0) #define MICROPY_MULTIPLE_INHERITANCE (0) -#define MICROPY_PY_BUILTINS_BYTEARRAY (1) +#define MICROPY_PY_ARRAY (0) +#define MICROPY_PY_BUILTINS_BYTEARRAY (0) #define MICROPY_PY_BUILTINS_MEMORYVIEW (0) #define MICROPY_PY_BUILTINS_ENUMERA...
network/lwIP: fix reachable time kconfig fix reachable time kconfig which is mapping to anycast.
#endif #ifdef CONFIG_NET_IPv6_ND_REACHABLE_TIME -#define LWIP_ND6_MAX_ANYCAST_DELAY_TIME CONFIG_NET_IPv6_ND_REACHABLE_TIME +#define LWIP_ND6_REACHABLE_TIME CONFIG_NET_IPv6_ND_REACHABLE_TIME #endif #ifdef CONFIG_NET_IPv6_ND_RETRANS_TIMER #define LWIP_RANDOMIZE_INITIAL_LOCAL_PORTS CONFIG_NET_RANDOMIZE_INITIAL_LOCAL_PORTS...
Fixed 1.3.2 release file size, checksum.
}, "url": "https://github.com/ROBOTIS-GIT/OpenCR/releases/download/1.3.2/opencr_core_1.3.2.tar.bz2", "archiveFileName": "opencr_core_1.3.2.tar.bz2", - "checksum": "SHA-256:3eae31de2a3e0cb321fca97c4bb7c8ce9f5806f9d5644f108b019463de748b5c", - "size": "3141420", + "checksum": "SHA-256:9ed36bcc86666c12292e13d7e82cf9b41f6d4...
CMSIS-DSP: Update to pdsc so that CMSIS-DSP source is becoming default variant. Update to version number of CMSIS-DSP binary variant since it has not been updated.
@@ -3092,7 +3092,7 @@ and 8-bit Java bytecodes in Jazelle state. </component> <!-- CMSIS-DSP component --> - <component Cclass="CMSIS" Cgroup="DSP" Cvariant="Library" Cversion="1.8.0" isDefaultVariant="true" condition="CMSIS DSP"> + <component Cclass="CMSIS" Cgroup="DSP" Cvariant="Library" Cversion="1.7.0" condition="C...
Added 'Nmap Scripting Engine' to the list of browsers.
@@ -273,6 +273,7 @@ static const char *browsers[][2] = { {"XoviBot", "Crawlers"}, {"X-CAD-SE", "Crawlers"}, {"Safeassign", "Crawlers"}, + {"Nmap Scripting Engine", "Crawlers"}, /* Podcast fetchers */ {"Downcast", "Podcasts"},
Add wernerd/GoRTP
@@ -348,4 +348,7 @@ ALLOW yt/jaeger/plugin -> vendor/github.com/spf13/viper ALLOW yt/jaeger/plugin -> vendor/github.com/gorilla ALLOW yt/jaeger/plugin -> vendor/github.com/gogo +# CONTRIB-1496 RTP/RTCP stack for Go. responsible: rmcf@ +ALLOW yabs/telephony/platform/internal/rtp -> vendor/github.com/wernerd/GoRTP + DENY...
Fix incomplete BIO_dup_state() error check BIO_dup_state() returns an error code <= 0 according to my analysis tool and the documentation. Currently only == 0 is checked. Fix it by changing the check condition. CLA: trivial
@@ -886,7 +886,7 @@ BIO *BIO_dup_chain(BIO *in) /* This will let SSL_s_sock() work with stdin/stdout */ new_bio->num = bio->num; - if (!BIO_dup_state(bio, (char *)new_bio)) { + if (BIO_dup_state(bio, (char *)new_bio) <= 0) { BIO_free(new_bio); goto err; }
linux/arch: remove TODO
@@ -351,9 +351,6 @@ bool arch_archInit(honggfuzz_t* hfuzz) { } LOG_D("Glibc version:'%s', OK", gversion); hfuzz->linux.useClone = false; - - /* TODO - REMOVE */ - hfuzz->linux.useClone = true; break; }
filter: precompute order correction
#define M_PI_F 3.14159265358979323846f +// equation is 1 / sqrtf(powf(2, 1.0f / ORDER) - 1); +#define ORDER1_CORRECTION 1 +#define ORDER2_CORRECTION 1.55377397403f +#define ORDER3_CORRECTION 1.9614591767f + // calculates the coefficient for lpf filter, times in the same units float lpfcalc(float sampleperiod, float fil...
Added Joseph to the TSC members, and updated Nick's affiliation.
@@ -108,8 +108,9 @@ represents the project at ASWF TAC meetings. * Larry Gritz - Sony Pictures ImageWorks * Peter Hillman - Weta Digital, Ltd. * Kimball Thurston - Weta Digital, Ltd. -* Nick Porcino - Oculus +* Nick Porcino - Pixar Animation Studios * Christina Tempelaar-Lietz - Epic Games +* Joseph Goldstone - ARRI * ...
add pt3 to osd
@@ -940,11 +940,12 @@ void osd_display() { "NONE", " PT1", " PT2", + " PT3", }; osd_menu_select(4, 4, "PASS 1 TYPE"); if (osd_menu_select_enum(18, 4, profile.filter.gyro[0].type, filter_type_labels)) { - profile.filter.gyro[0].type = osd_menu_adjust_int(profile.filter.gyro[0].type, 1, 0, FILTER_LP_PT2); + profile.filte...
xml parser BUGFIX restore parser after skipping attributes Fixes cesnet/netopeer2#915
@@ -340,7 +340,11 @@ lydxml_data_check_opaq(struct lyd_xml_ctx *lydctx, const struct lysc_node **snod return LY_SUCCESS; } - if ((*snode)->nodetype & (LYD_NODE_TERM | LYS_LIST)) { + if (!((*snode)->nodetype & (LYD_NODE_TERM | LYD_NODE_INNER))) { + /* nothing to check */ + return LY_SUCCESS; + } + /* backup parser */ pr...
[Kernel] Update Kconfig to fix memory heap option.
@@ -5,7 +5,8 @@ config RT_NAME_MAX range 2 32 default 8 help - Each kernel object, such as thread, timer, semaphore etc, has a name, the RT_NAME_MAX is the maximal size of this object name. + Each kernel object, such as thread, timer, semaphore etc, has a name, + the RT_NAME_MAX is the maximal size of this object name....
Add --help as an option
<b>gpcheckcat</b> <b>-l</b> -<b>gpcheckcat</b> <b>-?</b> +<b>gpcheckcat</b> <b>-? | --help</b> </codeblock> </section> <section id="section3"> <pd>The user connecting to Greenplum Database.</pd> </plentry> <plentry> - <pt>-? (help)</pt> + <pt>-? | --help</pt> <pd>Displays the online help.</pd> </plentry> <plentry>
Move sles iwc job downstream from compile
@@ -398,10 +398,10 @@ jobs: plan: - aggregate: - get: gpdb_src - #passed: [compile_gpdb_sles11] + passed: [compile_gpdb_sles11] - get: bin_gpdb resource: bin_gpdb_sles11 - #passed: [compile_gpdb_sles11] + passed: [compile_gpdb_sles11] trigger: true - get: sles-gpdb-dev-11-beta - task: ic_gpdb @@ -796,15 +796,11 @@ jobs...
fftw.spec: fix typo & enable sse2/avx/avx2
@@ -72,10 +72,10 @@ rm -f config.cache for i in %{precision_list} ; do LOOPBASEFLAGS=${BASEFLAGS} - if [[ "${i} == "single" || "${i} == "double" ]]; then + if [[ "${i}" == "single" || "${i}" == "double" ]]; then # taken from https://src.fedoraproject.org/rpms/fftw/blob/master/f/fftw.spec %ifarch x86_64 - LOOPBASEFLAGS=...
Release semaphore only if valid command
@@ -920,7 +920,7 @@ espi_parse_received(esp_recv_t* rcv) { } else { esp.msg->i++; /* Number of continue calls */ } - } + /* * When the command is finished, * release synchronization semaphore @@ -931,6 +931,7 @@ espi_parse_received(esp_recv_t* rcv) { } } } +} #if !ESP_CFG_INPUT_USE_PROCESS || __DOXYGEN__ /**
board/nipperkin/thermal.c: Format with clang-format BRANCH=none TEST=none
@@ -103,8 +103,7 @@ static const struct fan_step fan_step_table[] = { #define NUM_FAN_LEVELS ARRAY_SIZE(fan_step_table) -BUILD_ASSERT(ARRAY_SIZE(fan_step_table) == - ARRAY_SIZE(fan_step_table)); +BUILD_ASSERT(ARRAY_SIZE(fan_step_table) == ARRAY_SIZE(fan_step_table)); int fan_table_to_rpm(int fan, int *temp) { @@ -135,8...
wireless/gs2200m: Fix freeing uninitialized memory Add initialize local variable and check the buffer is allocated before free().
@@ -846,6 +846,8 @@ static int recvfrom_request(int fd, FAR struct gs2200m_s *priv, gs2200m_printf("%s: start (req->max_buflen=%d) \n", __func__, req->max_buflen); + memset(&rmsg, 0, sizeof(rmsg)); + /* Check if this socket exists. */ usock = gs2200m_socket_get(priv, req->usockid); @@ -864,7 +866,6 @@ static int recvfr...
bn/bn_mont.c: improve readability of post-condition code.
@@ -130,15 +130,14 @@ static int BN_from_montgomery_word(BIGNUM *ret, BIGNUM *r, BN_MONT_CTX *mont) */ ap = &(r->d[nl]); + carry -= bn_sub_words(rp, ap, np, nl); /* - * |v| is one if |ap| - |np| underflowed or zero if it did not. Note |v| - * cannot be -1. That would imply the subtraction did not fit in |nl| words, - *...
OcMachoLib: Clearify assumptions in InternalGetExternalRelocationByOffset().
@@ -87,7 +87,9 @@ InternalGetExternalRelocationByOffset ( ASSERT (Context != NULL); MachoContext = (OC_MACHO_CONTEXT *)Context; - + // + // Assumption: 64-bit. + // if ((MachoContext->SymbolTable == NULL) && !InternalRetrieveSymtabs64 (MachoContext)) { return NULL; @@ -104,9 +106,14 @@ InternalGetExternalRelocationByOf...
Update .semaphore/semaphore.yml
@@ -61,7 +61,7 @@ blocks: jobs: - name: FV Test matrix commands: - - " make check-wireguard" + - make check-wireguard - make fv FV_BATCHES_TO_RUN="${SEMAPHORE_JOB_INDEX}" FV_NUM_BATCHES=${SEMAPHORE_JOB_COUNT} parallelism: 3 epilogue:
Fix for change request
-// #include <aos/aos.h> #include "driver/ledc.h" #include <hal/soc/pwm.h> #include "math.h" #define DEFAULT_LEDC_CHANNEL_DUTY_DEPTH LEDC_TIMER_10_BIT #define LEDC_CHANNEL_MAX_DUTY (pow(2, DEFAULT_LEDC_CHANNEL_DUTY_DEPTH) - 1) -int8_t slots[4] = {0, 0, 0, 0}; +static int8_t slots[4] = {0, 0, 0, 0}; static int8_t get_av...
Test SSL_shutdown() with async writes As well as SSL_shutdown() itself this excercises the async write paths in ssl3_dispatch_alert().
@@ -8148,6 +8148,82 @@ static int test_shutdown(int tst) return testresult; } +/* + * Test that sending close_notify alerts works correctly in the case of a + * retryable write failure. + */ +static int test_async_shutdown(void) +{ + SSL_CTX *cctx = NULL, *sctx = NULL; + SSL *clientssl = NULL, *serverssl = NULL; + int ...
tutorial: update mainnet location
@@ -120,11 +120,11 @@ module.exports = { plugins: [ new UrbitShipPlugin(urbitrc), new webpack.DefinePlugin({ - 'process.env.TUTORIAL_HOST': JSON.stringify('~hastuc-dibtux'), + 'process.env.TUTORIAL_HOST': JSON.stringify('~difmex-passed'), 'process.env.TUTORIAL_GROUP': JSON.stringify('beginner-island'), - 'process.env.T...
parallel-libs/mfem: build with fPIC
@@ -67,6 +67,7 @@ module load superlu_dist make config \ PREFIX=%{install_path} \ + CXXFLAGS="-O3 -fPIC" \ MFEM_USE_MPI=YES \ MFEM_USE_LAPACK=NO \ HYPRE_OPT=-I$HYPRE_INC HYPRE_LIB="-L$HYPRE_LIB -lHYPRE" \
Fix tinyalsa issues during testing Set apb flags, nbytes, curbyte before enque
@@ -480,6 +480,9 @@ int pcm_writei(struct pcm *pcm, const void *data, unsigned int frame_count) #ifdef CONFIG_AUDIO_MULTI_SESSION bufdesc.session = pcm->session; #endif + apb->nbytes = nbytes; + apb->curbyte = 0; + apb->flags = 0; bufdesc.numbytes = apb->nbytes; bufdesc.u.pBuffer = apb; if (ioctl(pcm->fd, AUDIOIOC_ENQU...
Client cannot include SRT in its transport parameters
@@ -288,6 +288,13 @@ int ngtcp2_decode_transport_params(ngtcp2_transport_params *params, p += sizeof(uint16_t); break; case NGTCP2_TRANSPORT_PARAM_STATELESS_RESET_TOKEN: + switch (exttype) { + case NGTCP2_TRANSPORT_PARAMS_TYPE_ENCRYPTED_EXTENSIONS: + case NGTCP2_TRANSPORT_PARAMS_TYPE_NEW_SESSION_TICKET: + break; + defa...
Fix crypto/dso/dso_vms.c In the "Stop raising ERR_R_MALLOC_FAILURE in most places" commit, some fixes of this file weren't done quite right, leading to a symbol being undeclared depending on building circumstances.
@@ -106,9 +106,12 @@ static int vms_load(DSO *dso) # pragma pointer_size save # pragma pointer_size 32 # endif /* __INITIAL_POINTER_SIZE == 64 */ +# endif /* __INITIAL_POINTER_SIZE && defined + * _ANSI_C_SOURCE */ DSO_VMS_INTERNAL *p = NULL; +# if __INITIAL_POINTER_SIZE && defined _ANSI_C_SOURCE # if __INITIAL_POINTER_...
py/repl: Use mp_load_method_protected to prevent leaking of exceptions. This patch fixes the possibility of a crash of the REPL when tab-completing an object which raises an exception when its attributes are accessed. See issue
@@ -158,7 +158,7 @@ size_t mp_repl_autocomplete(const char *str, size_t len, const mp_print_t *print // lookup will fail return 0; } - mp_load_method_maybe(obj, q, dest); + mp_load_method_protected(obj, q, dest, true); obj = dest[0]; // attribute, method, or MP_OBJ_NULL if nothing found if (obj == MP_OBJ_NULL) { @@ -18...
[catboost/gpu] remove profiling from PowVector unittest
@@ -320,9 +320,6 @@ Y_UNIT_TEST_SUITE(TTransformTest) { auto tmp = TStripeBuffer<float>::Create(mapping); tmp.Write(exponents); - TCudaProfiler profiler(EProfileMode::ImplicitLabelSync); - const auto guard = profiler.Profile("PowVector"); - PowVector(tmp, base); TVector<float> gpuPow;
doc: add some rules related to language extensions This patch adds some rules related to language extensions.
@@ -3310,3 +3310,47 @@ The number of bytes in an object is implementation-defined, according to J.3.13 item 2 in C99. For ACRN hypervisor, char is 1 byte, short is 2 bytes, int is 4 bytes, long is 8 bytes, and long long is not used. +Language Extensions +******************* + + +LE-01: Use of inline Assembly language i...
better adding of _estimator_type
@@ -1730,6 +1730,9 @@ class CatBoost(_CatBoostBase): class CatBoostClassifier(CatBoost): + + _estimator_type = 'classifier' + """ Implementation of the scikit-learn API for CatBoost classification. @@ -2087,7 +2090,6 @@ class CatBoostClassifier(CatBoost): if key not in not_params and value is not None: params[key] = va...
dm: virtio-gpio: avoid flood messages in virtio_irq_evt_notify To avoid flood messages in virtio_irq_evt_notify.
@@ -1221,7 +1221,7 @@ static void virtio_irq_evt_notify(void *vdev, struct virtio_vq_info *vq) { /* The front-end driver does not make a kick, just avoid warning */ - WPRINTF(("%s", "virtio gpio irq_evt_notify\n")); + DPRINTF(("%s", "virtio gpio irq_evt_notify\n")); } static void
Add hsig files for Haskell
@@ -42,7 +42,7 @@ lang_spec_t langs[] = { { "groovy", { "groovy", "gtmpl", "gpp", "grunit", "gradle" } }, { "haml", { "haml" } }, { "handlebars", { "hbs" } }, - { "haskell", { "hs", "lhs" } }, + { "haskell", { "hs", "hsig", "lhs" } }, { "haxe", { "hx" } }, { "hh", { "h" } }, { "html", { "htm", "html", "shtml", "xhtml" ...
bootloader_support: Adds better logs for virtual efuses Close
@@ -313,6 +313,10 @@ esp_err_t esp_flash_encrypt_enable(void) ESP_LOGI(TAG, "Flash encryption completed"); +#if CONFIG_EFUSE_VIRTUAL + ESP_LOGW(TAG, "Flash encryption not really completed. Must disable virtual efuses"); +#endif + return err; }
Added additional deb packaging distros.
-name: .deb packaging +name: arm64 .deb packaging on: workflow_dispatch: @@ -21,6 +21,14 @@ jobs: distro: ubuntu20.04 - arch: aarch64 distro: ubuntu22.04 + - arch: aarch64 + distro: jessie + - arch: aarch64 + distro: stretch + - arch: aarch64 + distro: buster + - arch: aarch64 + distro: bullseye steps: - uses: actions/...
plugins types BUGFIX empty dynamic value leak
@@ -1311,7 +1311,7 @@ ly_type_store_boolean(const struct ly_ctx *ctx, const struct lysc_type *type, co */ static LY_ERR ly_type_store_empty(const struct ly_ctx *ctx, const struct lysc_type *type, const char *value, size_t value_len, - uint32_t UNUSED(options), LY_PREFIX_FORMAT UNUSED(format), void *UNUSED(prefix_data),...
snap_env: Fixing typo in condition for if statement
@@ -148,7 +148,7 @@ while [ -z "$SETUP_DONE" ]; do ####### checking path to PSLSE (only if simulation is enabled) # Note: SIMULATOR is defined via snap_config - if [ $SIMULATOR != "nosim" ]; then + if [ "$SIMULATOR" != "nosim" ]; then echo "=====Simulation setup: Setting up PSLSE version==========" if [ "$FPGACARD" == ...
add option to build with thread sanitizer
@@ -19,6 +19,7 @@ option(MI_BUILD_SHARED "Build shared library" ON) option(MI_BUILD_STATIC "Build static library" ON) option(MI_BUILD_OBJECT "Build object library" ON) option(MI_BUILD_TESTS "Build test executables" ON) +option(MI_DEBUG_TSAN "Build with thread sanitizer (needs clang)" OFF) option(MI_CHECK_FULL "Use full...
config: allow for grace to be set to -1 for a clean shutdown
@@ -47,7 +47,12 @@ struct flb_config { int is_shutting_down; /* is the service shutting down ? */ int is_running; /* service running ? */ double flush; /* Flush timeout */ - int grace; /* Maximum grace time on shutdown */ + + /* + * Maximum grace time on shutdown. If set to -1, the engine will + * shutdown when all rem...
rails mode: read initial escape_html from active_support
@@ -1071,6 +1071,8 @@ rails_set_encoder(VALUE self) { rb_undef_method(encoding, "use_standard_json_time_format="); rb_define_module_function(encoding, "use_standard_json_time_format=", rails_use_standard_json_time_format, 1); + pv = rb_iv_get(encoding, "@escape_html_entities_in_json"); + escape_html = Qtrue == pv; rb_u...
printer json BUGFIX handle hint masks
@@ -410,11 +410,14 @@ json_print_attribute(struct jsonpr_ctx *pctx, const struct lyd_node_opaq *node, for (attr = node->attr; attr; attr = attr->next) { json_print_member2(pctx, &node->node, attr->format, &attr->name, 0); - if (attr->hints & (LYD_VALHINT_BOOLEAN | LYD_VALHINT_DECNUM)) { + if (attr->hints & (LYD_VALHINT...
Add test for SCOPE_LOG_LEVEL=trace
@@ -89,6 +89,21 @@ ERR+=$? endtest +# +# trace log level +# + +starttest trace_level_test + +SCOPE_LOG_LEVEL=trace ldscope ps -ef +if [ $? -ne 0 ]; then + ERR+=1 +fi + +evaltest + +endtest + unset SCOPE_PAYLOAD_ENABLE unset SCOPE_PAYLOAD_HEADER
remove hexadecimal from readme
@@ -4,7 +4,7 @@ KadNode is a small and decentralized DNS resolver that can use existing public k KadNode can intercept .p2p domain queries on the systems level and resolve them using a decentralized network. [TLS](https://de.wikipedia.org/wiki/Transport_Layer_Security) authentication can be used to make sure the correc...
Leaf: Fix bug in `splitArrayParentsOther`
@@ -120,6 +120,11 @@ TEST (leaf, splitArrayParentsOther) CppKeySet arrays; tie (arrays, ignore) = splitArrayParentsOther (input); compare_keyset (expected, arrays); + + input = CppKeySet{ 10, keyNew (PREFIX "key", KEY_END), KS_END }; + expected = input.dup (); + tie (ignore, input) = splitArrayParentsOther (input); + c...
DmveEnum is changed according to specification
21. November 2019: v1.6.3 - added attribute 'uninit' to <memory> element to replace deprecated 'init' attribute + - DmveEnum is changed according to specification 05. November 2019: v1.6.2 - added <accessportV1> and <accessportV2> to describe CoreSight access port parameters. <xs:restriction base="xs:token"> <xs:enumer...
have unified consistency about error code setting Tinyara uses get_errno and set_errno. So I modified the logic consistently for the error code
* to sem_trywait(). * * Return Value: - * Zero (OK) is returned on success. A negated errno value is returned on - * failure. -ETIMEDOUT is returned on the timeout condition. + * Zero (OK) is returned on success. + * On failure, -1 (ERROR) is returned and the errno + * is set appropriately: + * + * ETIMEDOUT The semaph...
Be aggressive with setting SO_NOSIGPIPE on BSD/Apple.
@@ -139,6 +139,19 @@ static int janet_stream_close(void *p, size_t s) { return 0; } + +static void nosigpipe(JSock s) { +#ifdef SO_NOSIGPIPE + int enable = 1; + if (setsockopt(s, SOL_SOCKET, SO_NOSIGPIPE, &enable, sizeof(int)) < 0) { + JSOCKCLOSE(s); + janet_panic("setsockopt(SO_NOSIGPIPE) failed"); + } +#else + (void)...
Include mcuboot_config.h from sign_key.h to fix MCUBOOT_HW_KEY compilation
#include <stddef.h> #include <stdint.h> +/* mcuboot_config.h is needed for MCUBOOT_HW_KEY to work */ +#include "mcuboot_config/mcuboot_config.h" + #ifdef __cplusplus extern "C" { #endif
sub shm CHANGE better message if a callback times out
@@ -184,8 +184,9 @@ sr_shmsub_notify_finish_wrunlock(sr_sub_shm_t *sub_shm, size_t shm_struct_size, } /* event timeout */ + sr_errinfo_new(cb_err_info, SR_ERR_TIME_OUT, NULL, "Callback event \"%s\" with ID %u processing timed out.", + sr_ev2str(sub_shm->event), sub_shm->request_id); sub_shm->event = SR_SUB_EV_ERROR; - ...
logs.c: Include <android/log.h> if building for Android
#include "logs.h" #include "init.h" #include <stdarg.h> +#ifdef ANDROID +#include <android/log.h> +#endif //---------------------------------------------------------------------------- static const char * const log_prefix="LIBGL: "; //----------------------------------------------------------------------------
os/Makefile.unix: Verify undefined symbols in common binary Check for undefined symbols in common binary and print error message.
@@ -464,6 +464,12 @@ ifeq ($(CONFIG_BUILD_2PASS),y) $(Q) $(MAKE) -C $(LOADABLE_APPDIR) TOPDIR="$(TOPDIR)" LOADABLEDIR="${LOADABLE_APPDIR}" LIBRARIES_DIR="$(LIBRARIES_DIR)" USERLIBS="$(USERLIBS)" all KERNEL=n ifeq ($(CONFIG_SUPPORT_COMMON_BINARY),y) $(Q) $(LD) -r -o $(OUTBIN_DIR)/$(CONFIG_COMMON_BINARY_NAME) -T $(TOPDIR...
dpdk: bump to DPDK 17.02
@@ -24,13 +24,14 @@ DPDK_MLX5_PMD ?= n B := $(DPDK_BUILD_DIR) I := $(DPDK_INSTALL_DIR) -DPDK_VERSION ?= 16.11 -PKG_SUFFIX ?= vpp5 +DPDK_VERSION ?= 17.02 +PKG_SUFFIX ?= vpp1 DPDK_BASE_URL ?= http://fast.dpdk.org/rel DPDK_TARBALL := dpdk-$(DPDK_VERSION).tar.xz DPDK_TAR_URL := $(DPDK_BASE_URL)/$(DPDK_TARBALL) DPDK_16.07_T...
regex: header to be used only if FLB_HAVE_REGEX is set
#ifndef FLB_REGEX_H #define FLB_REGEX_H +#include <fluent-bit/flb_info.h> + +#ifdef FLB_HAVE_REGEX + #include <fluent-bit/flb_compat.h> #include <stdlib.h> @@ -56,3 +60,5 @@ int flb_regex_destroy(struct flb_regex *r); void flb_regex_exit(); #endif + +#endif
physmem: fix bug in detection of cross page boundary allocations
@@ -85,8 +85,8 @@ unix_physmem_alloc_aligned (vlib_main_t * vm, vlib_physmem_region_index_t idx, /* Make sure allocation does not span DMA physical chunk boundary. */ hi_offset = lo_offset + n_bytes - 1; - if ((lo_offset >> pr->log2_page_size) == - (hi_offset >> pr->log2_page_size)) + if (((pointer_to_uword (pr->heap) ...
[CUDA] Skip corrupt kernels in opencl.kernels
@@ -134,6 +134,9 @@ void pocl_add_kernel_annotations(llvm::Module *module) nvvm_annotations = module->getOrInsertNamedMetadata("nvvm.annotations"); for (auto K = md_kernels->op_begin(); K != md_kernels->op_end(); K++) { + if (!(*K)->getOperand(0)) + continue; + llvm::ConstantAsMetadata *cam = llvm::dyn_cast<llvm::Const...