message
stringlengths
6
474
diff
stringlengths
8
5.22k
BugID:17865306: Update security Config.in
+## --- Generated Automatically --- source "security/alicrypto/Config.in" source "security/id2/Config.in" source "security/irot/Config.in" @@ -9,3 +10,4 @@ source "security/isst/Config.in" source "security/itls/Config.in" source "security/mbedtls/Config.in" source "security/prov/Config.in" +## --- End ---
Update target mbedos5 README. JerryScript-DCO-1.0-Signed-off-by: Marko Fabo
@@ -44,52 +44,31 @@ instructions above. make is used to automate the process of fetching dependencies, and making sure that mbed-cli is called with the correct arguments. -### (optional) jshint +### nodejs -jshint is used to statically check your JavaScript code, as part of the build process. -This ensures that pins yo...
[util/generic/yexception.h] comment fix: doxygen style Made after note by elric@ in
@@ -121,17 +121,20 @@ class TIoSystemError: public TSystemError, public TIoException { class TFileError: public TIoSystemError { }; -// TBadArgumentException should be thrown when an argument supplied to some function (or constructor) -// is invalid or incorrect. -// -// NOTE: a special case when such argument is given...
build: requires cmake >= 3.0
# Let's have fun! -cmake_minimum_required(VERSION 2.8) +cmake_minimum_required(VERSION 3.0) project(monkey C) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/") set(CMAKE_INCLUDE_DIRECTORIES_BEFORE ON)
mention make bootstrap as a potential step
@@ -10,8 +10,14 @@ applications, to embedded systems and potentially even kernel development. ## Build -Compile with ./configure --prefix="/home/wherever/I/want" && make && make install -The result will be among other things, the binaries 6m and mbld +If you are building from development then issue `make bootstrap` aft...
interface: add tsc to precommit hook
"license": "MIT", "lint-staged": { "*.js": "eslint --cache --fix", - "*.ts": "eslint --cache --fix", - "*.tsx": "eslint --cache --fix" + "*.{ts,tsx}": ["eslint --cache --fix", "sh -c 'tsc --project tsconfig.json --noEmit'"] } }
Update test skip file
-# You may list a test case on each line in this file. -# These cases will be skipped by run_tests.py -# - the cases may be prefixed with a dash -# - you can paste part or all of the summary output of run_tests.py -# Lines can be commented out using # +You may list a test case on each line in this file. +The test cases...
peview: make filetimes consistent
@@ -1057,7 +1057,7 @@ PPH_STRING PvGetRelativeTimeString( PhLargeIntegerToLocalSystemTime(&timeFields, &time); timeString = PhaFormatDateTime(&timeFields); - return PhaFormatString(L"%s ago (%s)", timeRelativeString->Buffer, timeString->Buffer); + return PhaFormatString(L"%s (%s ago)", timeString->Buffer, timeRelativeS...
more robust exit code handling
@@ -15,12 +15,15 @@ urbit.on \exit (code)-> process.on \exit -> urbit.write '\04' # send EOF to gracefully checkpoint +exit-code = 0 + on-next = (re,cb)-> urbit.pipe (new stream-snitch re).on \match once cb on-next /\r\x1b\[K(\/~|ford: )/ -> console.log "\n\n---\nnode: detected error, exiting in ~s30\n---\n\n" + exit-c...
[hardware] Disable `sram` reset for Verilator Verilator cannot handle delayed assignments in for-loops unless it unrolls them. This is not really an option here, so we can just deactivate the sram's reset.
@@ -124,9 +124,11 @@ module tc_sram #( // write memory array always_ff @(posedge clk_i or negedge rst_ni) begin if (!rst_ni) begin + `ifndef VERILATOR for (int unsigned i = 0; i < NumWords; i++) begin sram[i] <= init_val[i]; end + `endif for (int i = 0; i < NumPorts; i++) begin r_addr_q[i] <= {AddrWidth{1'b0}}; // init...
Meta: Fix minor spelling mistakes
@@ -561,7 +561,7 @@ cleanup: * but the gid of the the key, has full access. * * 0007 decides about the world permissions. This is taken into - * account when neighter the uid nor the gid matches. So that + * account when neither the uid nor the gid matches. So that * example would allow everyone with a different uid an...
unix/fatfs_port: Fix month offset in timestamp calculation.
@@ -5,7 +5,7 @@ DWORD get_fattime(void) { time_t now = time(NULL); struct tm *tm = localtime(&now); return ((1900 + tm->tm_year - 1980) << 25) - | (tm->tm_mon << 21) + | ((tm->tm_mon + 1) << 21) | (tm->tm_mday << 16) | (tm->tm_hour << 11) | (tm->tm_min << 5)
Fix for older compilers
@@ -85,7 +85,8 @@ void TCOD_map_compute_fov_restrictive_shadowcasting_quadrant (map_t *m, int play ) { visible = false; } else { - for (int idx = 0; idx < obstacles_in_last_line && visible; ++idx) { + int idx; + for (idx = 0; idx < obstacles_in_last_line && visible; ++idx) { if ( start_slope <= end_angle[idx] && end_sl...
pyocf: fix cache device config
@@ -75,6 +75,7 @@ class CacheAttachConfig(Structure): ("_open_cores", c_bool), ("_force", c_bool), ("_discard_on_start", c_bool), + ("_volume_params", c_void_p), ] @@ -447,8 +448,8 @@ class Cache: _cache_line_size=cache_line_size if cache_line_size else self.cache_line_size, - _force=force, _open_cores=True, + _force=f...
fix BEEP PCM LSB+MSB 2
@@ -414,7 +414,11 @@ static void IOOUTCALL pit_o77(UINT port, REG8 dat) { break; case 0x30: beep_mode_bit = 2; +#if !defined(__LIBRETRO__) && !defined(MSC_VER) beep_mode_freq = 112; +#else + beep_mode_freq = 56; +#endif break; } beep_mode_bit_c = 0;
CI: sonarqube: unmatched variable name always skip the job
@@ -435,7 +435,7 @@ code_quality_check: - export CI_MR_IID=$(python ${CI_PROJECT_DIR}/tools/ci/ci_get_mr_info.py id ${CI_COMMIT_BRANCH}) - export CI_MR_COMMITS=$(python ${CI_PROJECT_DIR}/tools/ci/ci_get_mr_info.py commits ${CI_COMMIT_BRANCH} | tr '\n' ',') # test if this branch have merge request, if not, exit 0 - - te...
adds assertions to protect u3r_mug against stack overflow
@@ -1603,6 +1603,17 @@ static inline mugframe* _mug_push(c3_ys mov, c3_ys off, u3_noun veb) { u3R->cap_p += mov; + + // ensure we haven't overflowed the stack + // (off==0 means we're on a north road) + // + if ( 0 == off ) { + c3_assert(u3R->cap_p > u3R->hat_p); + } + else { + c3_assert(u3R->cap_p < u3R->hat_p); + } +...
ci: make cache hash independent of input parameter
@@ -80,7 +80,7 @@ jobs: zephyr/ bootloader/ zmk/ - key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('${{ inputs.config_path }}/west.yml') }} + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/west.yml', '**/build.yaml') }} restore-keys: | ${{ runner.os }}-build-${{ env.cache-name }}- $...
Fix video/max7456.c:775:19: error: unused function '__mx7_write_reg__dmm' video/max7456.c:792:19: error: unused function '__mx7_write_reg__dmdi' video/max7456.c:809:19: error: unused function '__mx7_write_reg__dmah' video/max7456.c:826:19: error: unused function '__mx7_write_reg__dmal'
@@ -761,74 +761,6 @@ static inline int __mx7_read_reg__cmdo(FAR struct mx7_dev_s *dev) return val; } -/**************************************************************************** - * Name: __mx7_read_reg__dmm - * - * Description: - * Returns the contents of DMM. A simple helper around __mx7_read_reg(). - * - * Returne...
Update CMakeLists.txt fix CMake to define ChibiOS default branch when the CHIBIOS_VERSION option isn't set at all
@@ -351,11 +351,14 @@ if(RTOS_CHIBIOS_CHECK) message(FATAL_ERROR "error: could not find Git, make sure you have it installed.") endif() + # ChibiOS version + set(CHIBIOS_VERSION_EMPTY TRUE) + # check if build was requested with a specifc ChibiOS version if(DEFINED CHIBIOS_VERSION) - - if("${CHIBIOS_VERSION}" STREQUAL "...
Drop NeoverseN2 to armv8.2-a on OSX to make it build with gcc11 too
@@ -127,7 +127,7 @@ ifeq (1, $(filter 1,$(GCCMINORVERSIONGTEQ4) $(GCCVERSIONGTEQ10))) ifneq ($(OSNAME), Darwin) CCOMMON_OPT += -march=armv8.5-a+sve+sve2+bf16 -mtune=neoverse-n2 else -CCOMMON_OPT += -march=armv8.5-a+sve -mtune=neoverse-n2 +CCOMMON_OPT += -march=armv8.2-a -mtune=cortex-a72 endif ifneq ($(F_COMPILER), NAG...
add update qml sailfish
@@ -590,12 +590,12 @@ namespace 'project' do mkdir_p File.join($project_path, $final_name_app, "rpm") mkdir_p File.join($project_path, $final_name_app, "privileges") - if !File.exists?(File.join($project_path, $final_name_app, "qml")) + #if !File.exists?(File.join($project_path, $final_name_app, "qml")) cp_r File.join(...
test for the string array and replication
@@ -54,7 +54,7 @@ diff $tempRef1 $tempText # -------------------------------------------------------- -# Test 2 +# Test 2: percentConfidence # -------------------------------------------------------- bufrFile=amv2_87.bufr cat > $tempRules <<EOF @@ -69,7 +69,36 @@ grep -q '^48 54 59.*91 97' $tempText # -----------------...
phantom: for random tubes, use full background and tweak tube size
@@ -547,6 +547,8 @@ void calc_phantom_tubes(const long dims[DIMS], complex float* out, bool kspace, if (random) { + unsigned int max_count = 10000; + // background circle position and radius float sx_bg = .9; float px_bg = 0.; @@ -557,8 +559,8 @@ void calc_phantom_tubes(const long dims[DIMS], complex float* out, bool k...
fix bug for netif add crash
@@ -50,7 +50,7 @@ esp_err_t esp_event_send_legacy(system_event_t *event) return ESP_ERR_INVALID_STATE; } - return esp_event_post(SYSTEM_EVENT, event->event_id, event, sizeof(*event), 0); + return esp_event_post(SYSTEM_EVENT, event->event_id, event, sizeof(*event), portMAX_DELAY); } esp_err_t esp_event_loop_init(system_...
kubectl-gadget: Print error when undeploy command timeouts The undeploy command wasn't printing any error when there was a timeout trying to remove the gadget namespace. It was misleading as Inspektor Gadget was not actually removed and the command exited with 0.
@@ -234,12 +234,15 @@ again: ctx, cancel := context.WithTimeout(context.Background(), time.Duration(timeout)*time.Second) defer cancel() - watchtools.Until(ctx, list.ResourceVersion, watcher, conditionFunc) + _, err := watchtools.Until(ctx, list.ResourceVersion, watcher, conditionFunc) + if err != nil { + errs = append...
Utilities: Fix TestExt4Dxe build after recent Ext4Pkg changes
@@ -9,7 +9,7 @@ PRODUCT = $(PROJECT)$(INFIX)$(SUFFIX) OBJS = $(PROJECT).o OBJS += BaseUcs2Utf8Lib.o BaseOrderedCollectionRedBlackTreeLib.o OBJS += BlockGroup.o BlockMap.o Collation.o Directory.o DiskUtil.o -OBJS += Ext4Dxe.o Extents.o File.o Inode.o Partition.o Superblock.o +OBJS += Ext4Dxe.o Extents.o File.o Inode.o P...
Figured out purpose of some Niko specific attributes
@@ -3843,14 +3843,20 @@ Outdoor Temp to Display Timeout: set 30 for 'off' and 10800 for 'on'</descriptio <!-- NIKO --> <cluster id="0xfc00" name="Niko specific" mfcode="0x125f"> - <description>Niko specific attributes.</description> + <description>Niko specific attributes. + +LED color: 0 - off, 255 - white, 65280 - bl...
out_lib: fix "data size is unknown" error on MSVC Right now, VC++ fails to compile out_lib due to the following error. C2036: 'void *' unknown size This patch fixes it by adding a explicit type cast to a char pointer.
@@ -143,7 +143,7 @@ static void out_lib_flush(void *data, size_t bytes, FLB_OUTPUT_RETURN(FLB_ERROR); } - memcpy(data_for_user, data + last_off, alloc_size); + memcpy(data_for_user, (char *) data + last_off, alloc_size); data_size = alloc_size; break; case FLB_OUT_LIB_FMT_JSON:
Fixed issue 1550
@@ -322,7 +322,10 @@ static void pe_parse_debug_directory(PE* pe) pcv_hdr_offset = pe_rva_to_offset( pe, yr_le32toh(debug_dir->AddressOfRawData)); } - else if (debug_dir->PointerToRawData != 0) + + // Give it chance to read it from the RAW offset + // Sample: 735f72b3fcd72789f01e923c9de2a9ab5b5ffbece23633da81d976ad0ad1...
chat: restore shortcode links to groups
import React, { Component } from 'react'; +import { Link } from 'react-router-dom'; import { OverlaySigil } from './overlay-sigil'; import { uxToHex, cite, writeText } from '../../../../lib/util'; import moment from 'moment'; import ReactMarkdown from 'react-markdown'; import RemarkDisableTokenizers from 'remark-disabl...
Do not touch Dictionary keys during JSON serialization
@@ -41,7 +41,13 @@ namespace Miningcore builder.RegisterInstance(new JsonSerializerSettings { - ContractResolver = new CamelCasePropertyNamesContractResolver() + ContractResolver = new DefaultContractResolver + { + NamingStrategy = new CamelCaseNamingStrategy + { + ProcessDictionaryKeys = false + } + } }); builder.Regi...
Fix typo in comment it -> if in mimalloc-types.h
@@ -270,7 +270,7 @@ typedef struct mi_segment_s { struct mi_segment_s* prev; size_t abandoned; // abandoned pages (i.e. the original owning thread stopped) (`abandoned <= used`) - size_t abandoned_visits; // count how often this segment is visited in the abandoned list (to force reclaim it it is too long) + size_t aban...
Check group any on when light reachable state changes
@@ -1568,7 +1568,7 @@ void DeRestPluginPrivate::handleLightEvent(const Event &e) webSocketServer->broadcastTextMessage(Json::serialize(map)); - if (e.what() == RStateOn && !lightNode->groups().empty()) + if ((e.what() == RStateOn || e.what() == RStateReachable) && !lightNode->groups().empty()) { std::vector<GroupInfo>:...
Improve checker.check comment
@@ -17,7 +17,16 @@ local check_field -- Type-check a Titan module -- --- Sets a _type field on some nodes. TODO: what nodes? +-- Sets a _type field on some AST nodes: +-- - Value declarations: +-- - ast.Toplevel.Func +-- - ast.Toplevel.Var +-- - ast.Decl.Decl +-- - ast.Exp +-- - ast.Var +-- +-- Sets a _field_types fiel...
Update the limited of function esp_ble_get_sendable_packets_num.
@@ -51,11 +51,21 @@ esp_err_t esp_ble_gatt_set_local_mtu (uint16_t mtu) #if (BLE_INCLUDED == TRUE) extern UINT16 L2CA_GetFreePktBufferNum_LE(void); +/** + * @brief This function is called to get currently sendable packets number on controller, + * the function is called only in BLE running core now. + * + * @return + *...
qword: Implement dup()
@@ -343,7 +343,28 @@ int sys_access(const char *path, int mode) { return 0; } -int sys_dup(int fd, int flags, int *newfd) STUB_ONLY +static int internal_dup(int fd, int *newfd, ...) { + va_list l; + va_start(l, newfd); + int ret; + int sys_errno = sys_fcntl(fd, F_DUPFD, l, &ret); + va_end(l); + if (sys_errno) + return ...
sh not show in the mfib flags commands
@@ -176,7 +176,7 @@ mfib_show_route_flags (vlib_main_t * vm, /* *INDENT-OFF* */ VLIB_CLI_COMMAND (mfib_route_flags_command, static) = { - .path = "sh mfib route flags", + .path = "show mfib route flags", .short_help = "Flags applicable to an MFIB route", .function = mfib_show_route_flags, .is_mp_safe = 1, @@ -205,7 +20...
Docs: removed reference to update pg_class
@@ -149,11 +149,6 @@ Segment 12 - gpfdist 4</screen></p> <codeph>gp_autostats_mode</codeph> configuration parameter to <codeph>NONE</codeph>.</li> <li>External tables are not intended for frequent or ad hoc access.</li> - <li>External tables have no statistics to inform the optimizer. You can set rough estimates - for ...
VERSION bump version to 0.9.2
@@ -28,7 +28,7 @@ set(CMAKE_C_FLAGS_DEBUG "-g -O0") # set version set(LIBNETCONF2_MAJOR_VERSION 0) set(LIBNETCONF2_MINOR_VERSION 9) -set(LIBNETCONF2_MICRO_VERSION 1) +set(LIBNETCONF2_MICRO_VERSION 2) set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION}.${LIBNETCONF2_MICRO_VERSION}) set(LIBN...
Build verilator on knight/ferry
@@ -104,14 +104,24 @@ jobs: - name: Build extra tests run: .github/scripts/build-extra-tests.sh - install-verilator: - name: install-verilator - runs-on: self-hosted + install-verilator-knight: + name: install-verilator-knight + runs-on: knight + needs: cancel-prior-workflows + steps: + - name: Checkout + uses: actions...
upload travis builds to server (fix)
@@ -10,6 +10,7 @@ matrix: osx_image: xcode9.3 env: - OS_FOLDER=mac + - EXE_FILE=tic80.app - os: linux addons: @@ -19,8 +20,9 @@ matrix: - libasound2-dev env: - OS_FOLDER=linux + - EXE_FILE=tic80 after_success: - - BUILDS_SERVER_PATH=${BUILD_SERVER}/files/$TRAVIS_BRANCH/$(date +%Y.%m.%d)/$OS_FOLDER/ - - tar -cvzf tic80....
Add `Walker.exhaust(Dirs|Files|All)`
@@ -35,9 +35,10 @@ class Walker { return [current, dirs, files]; } - // Convenience method to perform a full traversal. Be careful with this, as it can infinitely - // loop if there are cycles in the file system (e.g. with symbolic links), and consume a large - // amount of time and memory. + // Convenience methods to ...
[io] do not output joints as rows in the contact points matrix
@@ -309,7 +309,7 @@ SP::SimpleMatrix MechanicsIO::contactPoints(const NonSmoothDynamicalSystem& nsds unsigned int current_row; result->resize(graph.vertices_number(), 14); for(current_row=0, std11::tie(vi,viend) = graph.vertices(); - vi!=viend; ++vi, ++current_row) + vi!=viend; ++vi) { DEBUG_PRINTF("process interaction...
Backport changes from protobuf 3.5
@@ -720,14 +720,17 @@ int MapReflectionFriend::MessageMapSetItem(PyObject* _self, PyObject* key, map_key, &value); ScopedPyObjectPtr key(PyLong_FromVoidPtr(value.MutableMessageValue())); - // PyDict_DelItem will have key error if the key is not in the map. We do - // not want to call PyErr_Clear() which may clear other...
update call to \OHPCVersion macro to allow pdf link
@@ -30,7 +30,7 @@ available updates, and one containing a repository of source RPMS. The tar file also contains a small bash script to configure the package manager to use the local repository after download. To use, simply unpack the tarball where you would like to host the local repository and execute the make\_repo....
updates %eyre to ignore css %auth redirects
$red =+ url=(en-purl hat pok(p [~ %html]) quy) ?+ p.pok ~|(bad-redirect+[p.pok url] !!) + :: ignore css + :: + {~ $css} !! + :: {~ $js} $(pez [%js auth-redir:js]) + :: {~ $json} =/ red (pairs:enjs ok+b+| red+(tape:enjs url) ~)
Add missing options reference
@@ -1088,7 +1088,7 @@ NTSTATUS PhpSetExploitProtectionEnabled( { if (PhSplitStringRefAtString(&keypath->sr, &replacementToken, TRUE, &stringBefore, &stringAfter)) { - PhMoveReference(&keypath, PhConcatStringRef2(&wow6432Token, &stringAfter)); + PhMoveReference(&keypath, PhConcatStringRef3(&stringBefore, &wow6432Token, ...
dm: Fix potential overflow bug Fix a potential overflow problem in get_more_acpi_dev_info where ch_read might have a value greater than 32.
@@ -165,7 +165,7 @@ int get_mmio_hpa_resource(char *name, uint64_t *res_start, uint64_t *res_size) */ int get_more_acpi_dev_info(char *hid, uint32_t instance, struct acpi_dev_pt_ops *ops) { - char pathbuf[128], line[64]; + char pathbuf[128], line[32]; int ret = -1; size_t ch_read; FILE *fp;
Travis: merge all build tests in one job
@@ -50,7 +50,7 @@ before_install: # The directory will need created unconditionally so we can always chgrp and # mount it, even if empty. Checkout a pre-defined version. - mkdir -p $OUT_OF_TREE_TEST_PATH - - if [ ${TEST_NAME} = "out-of-tree-build" ] ; then + - if [ ${TEST_NAME} = "Out-of-tree builds" ] ; then git clone...
dont compare actual branch to expected branch if branch/revision is a hash value
@@ -44,9 +44,11 @@ for repodirname in `ls $AOMP_REPOS` ; do cd $fulldirname HASH=`git log -1 --numstat --format="%h" |head -1` flag="" + is_hash=0 get_branch_name abranch=`git branch | awk '/\*/ { print $2; }'` if [ "$abranch" == "(HEAD" ] ; then + is_hash=1 abranch=`git branch | awk '/\*/ { print $5; }' | cut -d")" -f...
Updated <release> documentation
@@ -614,11 +614,11 @@ The latest release version is always listed on top. \b Example: \code <releases> - <release version="1.1.1">Fixed a problem with the feature xyz. + <release version="1.1.1" date="2020-05-12">Fixed a problem with the feature xyz. </release> - <release version="1.1.0">Introduces a new feature xyz. +...
Update README handle_cmd comments Update REAMDE handle_cmd comments about the handle_cmd passthrough support for handlers that also implement read/write/flush callouts.
@@ -75,8 +75,8 @@ difference is who is responsible for the event loop. There are two different ways to write a tcmu-runner plugin handler: 1. one can register .handle_cmd to take the full control of command handling -2. or else one can register .{read, write, flush, ...} to only handle storage - IO stuff. +2. or else o...
webp-lossless-bitstream-spec: fix 'simple code' snippet based on &
@@ -858,25 +858,29 @@ stream. This may be inefficient, but it is allowed by the format. **(i) Simple Code Length Code:** -This variant is used in the special case when only 1 or 2 Huffman code lengths -are non-zero, and are in the range of \[0..255\]. All other Huffman code lengths +This variant is used in the special ...
ames: gate "fragment crashed" printf on msg.veb
=/ =bone bone.shut-packet :: ?: ?=(%& -.meat.shut-packet) - =+ ?~ dud ~ + =+ ?. &(?=(^ dud) msg.veb) ~ %. ~ - %+ slog + %- slog + :_ tang.u.dud leaf+"ames: {<her.channel>} fragment crashed {<mote.u.dud>}" - ?.(msg.veb ~ tang.u.dud) (run-message-sink bone %hear lane shut-packet ?=(~ dud)) :: Just try again on error, pri...
Modify sandbox whitelist
@@ -64,8 +64,7 @@ static constexpr const char* s_cGlobalObjectsWhitelist[] = "ToTweakDBID", "WeakReference", "GetMod", - "__Game", - "__Type", + "TweakDB" }; static constexpr const char* s_cGlobalTablesWhitelist[] =
dockerfile: adjust distroless version
@@ -56,7 +56,7 @@ COPY conf/fluent-bit.conf \ conf/plugins.conf \ /fluent-bit/etc/ -FROM gcr.io/distroless/cc-debian10:fd0d99e8c54d7d7b2f3dd29f5093d030d192cbbc +FROM gcr.io/distroless/cc-debian10 LABEL maintainer="Eduardo Silva <eduardo@treasure-data.com>" LABEL Description="Fluent Bit docker image" Vendor="Fluent Orga...
Perhaps maintain m_size correctly
@@ -232,6 +232,8 @@ namespace ARIASDK_NS_BEGIN { auto &v = *it; if (matcher(v, whereFilter)) { + size_t recordSize = v.blob.size() + sizeof(v); + m_size -= std::min(m_size, recordSize); it = records.erase(it); continue; } @@ -296,6 +298,8 @@ namespace ARIASDK_NS_BEGIN { { // record id appears once only, so remove from ...
restores deterministic +test entropy seed
@@ -42,7 +42,8 @@ urb ./ship -p test -d ':- %renders /' urb ./ship -d '~& %finish-test-renders ~' # Run the test generator -urb ./ship -d '+test' | tee test-generator-output +urb ./ship -d '+test, =seed `@uvI`(shaz %reproducible)' | + tee test-generator-output shutdown
kernel/task : Add ifndef condition for task_sigchild task_exithook.c fails to link if signals are disabled because was unconditionally trying to send the SIGCHLD signal to the parent in certain configurations. commit from Nuttx
@@ -293,7 +293,7 @@ static inline void task_groupexit(FAR struct task_group_s *group) * ****************************************************************************/ -#ifdef CONFIG_SCHED_HAVE_PARENT +#if defined(CONFIG_SCHED_HAVE_PARENT) && !defined(CONFIG_DISABLE_SIGNALS) #ifdef HAVE_GROUP_MEMBERS static inline void t...
specload: exit child process on error
#include <kdbmodule.h> #include <kdbproposal.h> #include <stdio.h> +#include <stdlib.h> #include <unistd.h> // keep #ifdef in sync with kdb export @@ -379,8 +380,7 @@ bool loadSpec (KeySet * returned, const char * app, char * argv[], Key * parentK // child if (dup2 (fd[1], STDOUT_FILENO) == -1) { - ELEKTRA_SET_ERRORF (...
fix regions_count tracking in case of concurrent region allocations
@@ -184,6 +184,7 @@ static bool mi_region_commit_blocks(mem_region_t* region, size_t idx, size_t bit // note: we don't need to increment the region count, this will happen on another allocation for(size_t i = 1; i <= 4 && idx + i < MI_REGION_MAX; i++) { if (mi_atomic_cas_strong(&regions[idx+i].info, info, 0)) { + mi_at...
SOVERSION bump to version 5.6.27
@@ -54,7 +54,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_ # with backward compatible change and micro version is connected with any internal change of the library. set(SYSREPO_MAJOR_SOVERSION 5) set(SYSREPO_MINOR_SOVERSION 6) -set(SYSREPO_MICRO_SOVERSION 26) +set(SYSREPO_MICRO_S...
runtime: steal from a parked thread on thread_yield
@@ -186,10 +186,9 @@ static bool work_available(struct kthread *k) static bool steal_work(struct kthread *l, struct kthread *r) { thread_t *th; - uint32_t i, avail, rq_tail; + uint32_t i, avail, rq_tail, lrq_head, lrq_tail; assert_spin_lock_held(&l->lock); - assert(l->rq_head == 0 && l->rq_tail == 0); if (!work_availab...
Update Cirrus CI FreeBSD release to 12.2.
@@ -11,7 +11,7 @@ auto_cancellation: $CIRRUS_BRANCH != 'integration' # ---------------------------------------------------------------------------------------------------------------------------------- freebsd_12_task: freebsd_instance: - image_family: freebsd-12-1 + image_family: freebsd-12-2 cpu: 4 memory: 4G
rune/README: clarify the depenencies to libsgx-dcap-quote-verify-dev/libsgx-dcap-quote-verify-devel Fixes:
Additionally, `rune` by default enables seccomp support as [runc](https://github.com/opencontainers/runc#building) so you need to install libseccomp on your platform. -Besides, `rune` depends on [SGX DCAP](https://github.com/intel/SGXDataCenterAttestationPrimitives). Please download and install the rpm(centos) or deb(u...
Add `make clang-format`
SUBDIRS = lib tests ACLOCAL_AMFLAGS = -I m4 + +# Format source files using clang-format. Don't format source files +# under third-party directory since we are not responsible for thier +# coding style. +clang-format: + CLANGFORMAT=`git config --get clangformat.binary`; \ + test -z $${CLANGFORMAT} && CLANGFORMAT="clang-...
Disable Lua popen support in emscripten;
@@ -128,6 +128,7 @@ unset(LIB_SUFFIX CACHE) if(EMSCRIPTEN) option(LUA_USE_RELATIVE_LOADLIB OFF) option(LUA_USE_ULONGJMP OFF) + option(LUA_USE_POPEN OFF) add_subdirectory(deps/lua lua) set_target_properties(lua luac liblua liblua_static PROPERTIES EXCLUDE_FROM_ALL 1) include_directories(deps/lua/src ${CMAKE_BINARY_DIR}/...
Don't set rpath
@@ -24,16 +24,6 @@ mark_as_advanced(BROTLI_BUNDLED_MODE) include(GNUInstallDirs) -# When building shared libraries it is important to set the correct rpath. -# See https://cmake.org/Wiki/CMake_RPATH_handling#Always_full_RPATH -set(CMAKE_SKIP_BUILD_RPATH FALSE) -set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE) -set(CMAKE_INSTA...
fix(obj_class): fix possible memory leak when the default disp is NULL
@@ -56,6 +56,7 @@ lv_obj_t * lv_obj_class_create_obj(const lv_obj_class_t * class_p, lv_obj_t * pa lv_disp_t * disp = lv_disp_get_default(); if(!disp) { LV_LOG_WARN("No display created yet. No place to assign the new screen"); + lv_mem_free(obj); return NULL; }
runtime: more egress packet buffers, smaller iokernel queues Now that we have backpressure, we don't need enormous queues. However, we weren't reserving enough egress packets buffers to fill up all the TXQs completely.
#include "defs.h" -#define PACKET_QUEUE_MCOUNT 8192 -#define COMMAND_QUEUE_MCOUNT 8192 +#define PACKET_QUEUE_MCOUNT 1024 +#define COMMAND_QUEUE_MCOUNT 512 +/* the egress buffer pool must be large enough to fill all the TXQs entirely */ +#define EGRESS_POOL_SIZE(nks) \ + (PACKET_QUEUE_MCOUNT * MBUF_DEFAULT_LEN * (nks) *...
common/ioexpander.c: Format with clang-format BRANCH=none TEST=none
@@ -107,8 +107,8 @@ int ioex_get_flags(enum ioex_signal signal, int *flags) if (g == NULL) return EC_ERROR_BUSY; - return ioex_config[g->ioex].drv->get_flags_by_mask(g->ioex, - g->port, g->mask, flags); + return ioex_config[g->ioex].drv->get_flags_by_mask(g->ioex, g->port, + g->mask, flags); } int ioex_set_flags(enum i...
make sure tester script can be run from repo root
@@ -15,11 +15,13 @@ DEFINES=( "RX_BAYANG_PROTOCOL_TELEMETRY_AUTOBIND" "RX_FRSKY" ) -SCRIPT_FOLDER="$(dirname "$0")" OUTPUT_FOLDER="output" +SCRIPT_FOLDER="$(dirname "$0")" +SOURCE_FOLDER="$SCRIPT_FOLDER/.." +BUILD_FOLDER="$SOURCE_FOLDER/build" INDEX_PAGE="$OUTPUT_FOLDER/quicksilver.html" -CONFIG_FILE="src/main/config/c...
Fix leak in `h2o_http2_scheduler_relocate` if `src` has no children
@@ -267,8 +267,10 @@ void h2o_http2_scheduler_relocate(h2o_http2_scheduler_openref_t *dst, h2o_http2_ h2o_linklist_insert_list(&dst->node._all_refs, &src->node._all_refs); /* node._queue */ dst->node._queue = src->node._queue; - src->node._queue = NULL; + } else { + free(src->node._queue); } + src->node._queue = NULL; ...
plugins: in_opentelemetry: updated decoder interface
@@ -96,22 +96,33 @@ static int process_payload_metrics(struct flb_opentelemetry *ctx, struct http_co struct mk_http_session *session, struct mk_http_request *request) { - struct cmt *decoded_context; + struct cfl_list decoded_contexts; + struct cfl_list *iterator; + struct cmt *context; size_t offset; int result; offse...
board/dewatt/led.c: Format with clang-format BRANCH=none TEST=none
@@ -46,18 +46,27 @@ DECLARE_HOOK(HOOK_INIT, led_pwm_ch_init, HOOK_PRIO_INIT_PWM - 1); __override struct led_descriptor led_bat_state_table[LED_NUM_STATES][LED_NUM_PHASES] = { - [STATE_CHARGING_LVL_1] = {{EC_LED_COLOR_AMBER, LED_INDEFINITE} }, - [STATE_CHARGING_LVL_2] = {{EC_LED_COLOR_AMBER, LED_INDEFINITE} }, - [STATE_...
examples/dnsclient_test : remove log of official hostname This commit is to remove log of official hostname - gethostbyname API doesn't return official hostname and alias - so to prevent user confusion, remove log
@@ -154,7 +154,6 @@ int dnsclient_main(int argc, char *argv[]) return -1; } else { printf("DNS results\n"); - printf(" Official hostname : %s\n", shost->h_name); printf(" IP Address : %s\n", ip_ntoa((ip_addr_t *)shost->h_addr_list[0])); }
mdns: fix memory leak in pbuf if tcpipadapter failed to get netif
@@ -301,6 +301,7 @@ static err_t _mdns_udp_pcb_write_api(struct tcpip_api_call_data *api_call_msg) mdns_pcb_t * _pcb = &_mdns_server->interfaces[msg->tcpip_if].pcbs[msg->ip_protocol]; esp_err_t err = tcpip_adapter_get_netif(msg->tcpip_if, &nif); if (err) { + pbuf_free(msg->pbt); msg->err = err; return err; }
nva: Fix typo
/* - * Copyright 2011,2016 Roy Spliet <nouveau@spliet.org> + * Copyright 2020 Roy Spliet <nouveau@spliet.org> * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a void help() { - printf("Retreives PMU from the GPU.\nJust run, and pipe output to" + printf("Retrieves PMU from...
[BACKPORT] s32k3xx:EDMA fix DMAMUX1 access violation apache/nuttx#7757
@@ -1061,7 +1061,7 @@ DMACH_HANDLE s32k3xx_dmach_alloc(uint16_t dmamux, uint8_t dchpri) /* Make sure that the channel is disabled. */ - putreg8(EDMA_CH_INT, S32K3XX_EDMA_TCD[dmach->chan] + + putreg32(EDMA_CH_INT, S32K3XX_EDMA_TCD[dmach->chan] + S32K3XX_EDMA_CH_INT_OFFSET); /* Disable the associated DMAMUX for now */ @@...
ethernet: Fix node ordering on ARP feautre ARC Type: fix Fixes: this improves the tracing for dropped ARP packets
@@ -460,6 +460,8 @@ arp_enable (ethernet_arp_main_t * am, u32 sw_if_index) am->ethernet_arp_by_sw_if_index[sw_if_index].enabled = 1; vnet_feature_enable_disable ("arp", "arp-reply", sw_if_index, 1, NULL, 0); + vnet_feature_enable_disable ("arp", "arp-disabled", sw_if_index, 0, NULL, + 0); } static int @@ -478,6 +480,8 ...
Shell Recorder: Improve usage message
@@ -308,7 +308,7 @@ rm -f ./stdout ./stderr if [ "$#" -lt '1' ] || [ "$#" -gt '2' ]; then - printf 'Usage: ./shell_recorder input_script [protocol to compare]\n' + printf 'Usage: %s input_script [protocol to compare]\n' "$0" rm "$OutFile" exit 0 fi
drivers/audio/cs4344: fix configure function when setting mclk
@@ -602,6 +602,7 @@ cs4344_configure(FAR struct audio_lowerhalf_s *dev, { audwarn("WARNING: MCLK could not be set on lower half\n"); priv->mclk_freq = 0; + ret = OK; } }
added CTRL+[0...7] to switch bank
@@ -805,7 +805,13 @@ static void drawBankIcon(s32 x, s32 y) if(i == impl.bank.indexes[mode]) tic_api_rect(tic, rect.x, rect.y, rect.w, rect.h, tic_color_red); - tic_api_print(tic, (char[]){'0' + i, '\0'}, rect.x+1, rect.y+1, i == impl.bank.indexes[mode] ? tic_color_white : over ? tic_color_red : tic_color_light_grey, f...
update for PIN 3.7 and g++-7
@@ -5,14 +5,14 @@ cd "$(dirname "$0")/pin" case "`uname`" in Linux) if test -d pin-latest; then true; else - curl -L https://software.intel.com/sites/landingpage/pintool/downloads/pin-2.14-71313-gcc.4.4.7-linux.tar.gz | tar xz - ln -s pin-2.14-71313-gcc.4.4.7-linux pin-latest + curl -L https://software.intel.com/sites/...
Solve minor bug in cxx port.
@@ -9,7 +9,8 @@ endif() # Target name set(target cxx_port) -set(target_name ${META_PROJECT_NAME}) +string(TOLOWER ${META_PROJECT_NAME} target_name) + set(target_export "${META_PROJECT_NAME}-cxx") # Exit here if required dependencies are not met
support writing pipe files & delete read pipe files
@@ -288,7 +288,19 @@ complex float* create_cfl(const char* name, int D, const long dimensions[D]) switch (type) { case FILE_TYPE_PIPE: - error("stdout not supported\n"); + + ; + + const char* filename = tempnam(NULL, "bart-"); + + debug_printf(DP_DEBUG1, "Temp file for pipe: %s\n", filename); + + complex float* ptr = s...
fix fedora spec file modules -update spec file with module name.so.* %{_libdir}/libopae-c.so.* %{_libdir}/libbitstream.so.* %{_libdir}/libopae-cxx-core.so.* %{_libdir}/libopae-c++-utils.so.* %{_libdir}/libopae-c++-nlb.so.* %{_libdir}/libfpgad-api.so.*
@@ -169,25 +169,14 @@ done %license %{_datadir}/opae/LICENSE %license %{_datadir}/opae/COPYING -%{_libdir}/libopae-c.so.%{version} -%{_libdir}/libopae-c.so.2 -%{_libdir}/libbitstream.so.%{version} -%{_libdir}/libbitstream.so.2 -%{_libdir}/libopae-cxx-core.so.%{version} -%{_libdir}/libopae-cxx-core.so.2 -%{_libdir}/libo...
RTX5: register access order changed (SVC_Initialize)
@@ -592,8 +592,11 @@ __STATIC_INLINE void SVC_Initialize (void) { } SCB->SHPR[7] = (uint8_t)(0xFEU << n); #elif (__ARM_ARCH_8M_BASE__ == 1U) - SCB->SHPR[1] |= 0x00FF0000U; - SCB->SHPR[0] |= (SCB->SHPR[1] << (8+1)) & 0xFC000000U; + uint32_t n; + + n = SCB->SHPR[1] | 0x00FF0000U; + SCB->SHPR[1] = n; + SCB->SHPR[0] |= (n ...
jna: fix formatting
@@ -50,8 +50,7 @@ public class HelloElektra { ka = Key.create("user:/cutpoint/hello", "hiback"), kb = Key.create("user:/cutpoint/hello2", "hellotoo"), kc = Key.create("user:/different/hello", "hellothere"); - KeySet whole = KeySet.create(ka, kb, kc), - cut = whole.cut(cutpoint); + KeySet whole = KeySet.create(ka, kb, k...
gimble: set 90% input current limit BRANCH=none TEST=make -j BOARD=gimble Tested-by: Scott Chao
#include "battery.h" #include "button.h" #include "charge_ramp.h" +#include "charge_state_v2.h" #include "charger.h" #include "common.h" #include "compile_time_macros.h" @@ -112,3 +113,17 @@ enum battery_present battery_hw_present(void) /* The GPIO is low when the battery is physically present */ return gpio_get_level(...
Remove references to old header file from cmake file
@@ -250,7 +250,7 @@ target_include_directories(ipmctl_os_interface PUBLIC src/os/nvm_api src/os/s_string ) -# TODO: Remove the backup winioctl.h file when the 17650+ Windows SDK is publicly released + if (MSVC) string(REGEX REPLACE "([0-9]+)\\.[0-9]+\\.[0-9]+\\.[0-9]+" "\\1" sdk_version_major $ENV{WindowsSDKVersion}) s...
netutils/webclient: combine similar code from http_client_send_request Two functions that is 'http_client_send_request' and 'http_client_send_request' are very similar code. This commit combines similar codes from two functions.
@@ -1286,19 +1286,16 @@ errret: return -1; } -int http_client_send_request(struct http_client_request_t *request, +static int http_client_send_requests(struct http_client_request_t *request, void *ssl_config, - struct http_client_response_t *response) + struct http_client_response_t *response, + wget_callback_t cb) { #...
[add]Add nrf52833 support for Bluetooth protocol stack
@@ -91,6 +91,25 @@ if BSP_USING_UART depends on BSP_USING_UART0 endif +choice +prompt "BLE STACK" +default BLE_STACK_USING_NULL +help + Select the ble stack + +config BLE_STACK_USING_NULL + bool "not use the ble stack" + +config BSP_USING_SOFTDEVICE + select PKG_USING_NRF5X_SDK + bool "Nordic softdevice(perpheral)" + +...
VERSION bump to version 1.4.17
@@ -31,7 +31,7 @@ endif() # micro version is changed with a set of small changes or bugfixes anywhere in the project. set(SYSREPO_MAJOR_VERSION 1) set(SYSREPO_MINOR_VERSION 4) -set(SYSREPO_MICRO_VERSION 16) +set(SYSREPO_MICRO_VERSION 17) set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI...
update gitbook help output
@@ -12,6 +12,12 @@ oidc-add -- A client for adding and removing accounts to the oidc-agent -l, --list Lists the available account configurations -p, --print Prints the encrypted account configuration and exits + --pw-cmd=CMD Command from which the agent can read the + encryption password + --pw-keyring Stores the used ...
updated buffer size too small for popular carrier in India Airtel -> airtelgprs.com Merges
@@ -101,7 +101,7 @@ err: esp_err_t esp_modem_dce_define_pdp_context(modem_dce_t *dce, uint32_t cid, const char *type, const char *apn) { modem_dte_t *dte = dce->dte; - char command[32]; + char command[64]; int len = snprintf(command, sizeof(command), "AT+CGDCONT=%d,\"%s\",\"%s\"\r", cid, type, apn); DCE_CHECK(len < siz...
Docs: Fix jumplinks in UEFI section
@@ -4548,7 +4548,7 @@ functioning. Feature highlights: \item Audio path is the base filename corresponding to a file identifier. For macOS bootloader audio paths refer to \href{https://github.com/acidanthera/OpenCorePkg/blob/master/Include/Apple/Protocol/AppleVoiceOver.h}{\texttt{APPLE\_VOICE\_OVER\_AUDIO\_FILE} defini...
compiler: Add 'speed' profile for M33
@@ -28,6 +28,7 @@ compiler.path.objcopy: arm-none-eabi-objcopy compiler.flags.base: -mcpu=cortex-m33 -mthumb-interwork -mthumb -Wall -Werror -fno-exceptions -ffunction-sections -fdata-sections compiler.flags.default: [compiler.flags.base, -O1, -ggdb] compiler.flags.optimized: [compiler.flags.base, -Os, -ggdb] +compiler...
core/cortex-m/llsr.c: Format with clang-format BRANCH=none TEST=none
@@ -38,13 +38,11 @@ static int command_llsr(int argc, char **argv) const struct { uint32_t shift_by; uint64_t result; - } cases[] = { - {0, start}, + } cases[] = { { 0, start }, { 16, 0x123456789ABCull }, { 32, 0x12345678u }, { 48, 0x1234u }, - {64, 0u} - }; + { 64, 0u } }; for (x = 0; x < ARRAY_SIZE(cases); ++x) { if ...