message
stringlengths
6
474
diff
stringlengths
8
5.22k
Fix fwUpdateState use before initialisation
@@ -68,6 +68,7 @@ void DeRestPluginPrivate::initConfig() gwFirmwareVersionUpdate = ""; gwBridgeId = "0000000000000000"; gwConfig["websocketport"] = 443; + fwUpdateState = FW_Idle; // offical dresden elektronik sd-card image? {
[.github] create cmake.yml for github actions
@@ -17,6 +17,33 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Install dependencies + run: | + sudo apt-get update -y + sudo apt install -y -qq \ + git-core \ + libboost-dev \ + libboost-serialization-dev \ + libboost-filesystem-dev \ + libboost-timer-dev \ + libboost-chrono-dev \ + libgmp-dev \ + gcc \ + gfortr...
Fail early when a test doesn't succeed
@@ -31,5 +31,9 @@ module.exports = { "**/?(*.)+(ispec|test).[tj]s?(x)", ], - setupFilesAfterEnv: ['<rootDir>/setupTests.js'] + // Path of the file where tests can be """decorated""" + setupFilesAfterEnv: ['<rootDir>/setupTests.js'], + + // Stop immediatly when a test fail + bail: true, };
test-suite: update spack test to choose package which builds on aarch64 (bats)
@@ -27,17 +27,17 @@ setup() { } @test "[spack] test build" { - spack install pkgconf + spack install bats assert_success } -@test "[spack] build with llvm" { +@test "[spack] build add llvm compiler" { module load llvm5 spack compiler find assert_success - spack install pkgconf%clang - assert_success +# spack install pk...
config.h: remove unused CONFIG_POWER_IGNORE_LID_OPEN there is no implementation or reference to CONFIG_POWER_IGNORE_LID_OPEN, so remove it. BRANCH=none TEST=verified there are no references to CONFIG_POWER_IGNORE_LID_OPEN
/* Compile common code for AP power state machine */ #undef CONFIG_POWER_COMMON -/* Disable the power-on transition when the lid is opened */ -#undef CONFIG_POWER_IGNORE_LID_OPEN - /* Enable a task-safe way to control the PP5000 rail. */ #undef CONFIG_POWER_PP5000_CONTROL
Update: set reduction is fine for now, can be refined later
@@ -78,13 +78,9 @@ ReduceTerm( (A & A), A ) ReduceTerm( (A | A), A ) //Extensional set ReduceTerm( ({A} & {B}), {A B} ) -ReduceTerm( ({A X} & {B}), {A (B . X)} ) -ReduceTerm( ({A X} & {B Y}), {A (B . (X . Y))} ) ReduceTerm( {A A}, {A} ) //Intensional set ReduceTerm( ([A] & [B]), [A B] ) -ReduceTerm( ([A X] & [B]), [A (...
macOS: unintall old python versions due to conflicts
@@ -76,6 +76,8 @@ jobs: brew config # Unlink parallel package, because of conflict with moreutils brew unlink parallel || >&2 printf 'Unlinking parallel failed.`\n' + # Uninstall old Python versions due to file conflicts + brew remove python@3.10 || >&2 printf 'Uninstalling old python versions failed.`\n' brew install ...
Add missing session timeout calc Fixes Add missing session timeout calculation in `ssl_get_new_session()`
@@ -437,6 +437,7 @@ int ssl_get_new_session(SSL *s, int session) ss->timeout = SSL_get_default_timeout(s); else ss->timeout = s->session_ctx->session_timeout; + ssl_session_calculate_timeout(ss); SSL_SESSION_free(s->session); s->session = NULL;
Only create instances of code editors when they are displayed
@@ -10,6 +10,57 @@ import SwiftUI // TODO: Localize +/// A code editor view. +/// +/// Use it as a `NavigationLink` for opening a code editor. The code editor is only created when this view appears so it works a lot faster and uses less memory than directly linking a `ViewController`. +@available(iOS 14.0, *) +struct E...
Added macro LV_USE_GROUP_FOCUS_PARENT to automatic tests
@@ -58,6 +58,7 @@ minimal_monochrome = { "LV_VER_RES_MAX":64, "LV_COLOR_DEPTH":1, "LV_USE_GROUP":0, + "LV_USE_GROUP_FOCUS_PARENT":0, "LV_USE_ANIMATION":0, "LV_ANTIALIAS":0, "LV_GPU":0, @@ -137,6 +138,7 @@ all_obj_minimal_features = { "LV_VER_RES_MAX":240, "LV_COLOR_DEPTH":8, "LV_USE_GROUP":0, + "LV_USE_GROUP_FOCUS_PARE...
arch/risc-v/src/mpfs/Kconfig: Add configuration flags for DDR type selection
@@ -126,6 +126,37 @@ config MPFS_DDR_INIT ---help--- Initializes and performs DDR training on the associated DDR memory. +choice + prompt "Choose DDR type" + depends on MPFS_DDR_INIT + default MPFS_DDR_TYPE_LPDDR4 + +config MPFS_DDR_TYPE_DDR3 + bool "Use DDR3" + +config MPFS_DDR_TYPE_DDR3L + bool "Use DDR3L" + +config ...
Further fix for CVE-2020-28935, so the chown is omitted when the pidfile fails due to a symlink.
@@ -337,8 +337,9 @@ readpid (const char* file) /** write pid to file. * @param pidfile: file name of pid file. * @param pid: pid to write to file. + * @return false on failure */ -static void +static int writepid (const char* pidfile, pid_t pid) { int fd; @@ -353,7 +354,7 @@ writepid (const char* pidfile, pid_t pid) , ...
SCons: Silence SDL already downloaded msg with '-s'.
@@ -34,6 +34,7 @@ def download_sdl2_win32(env): def unpack_sdl2_win32(env): """Unpack an SDL2 zip/tar file.""" if env.Dir('$SDL2_PATH').exists(): + if not GetOption('silent'): print(env.subst('SDL2 already exists at $SDL2_PATH')) return download_sdl2_win32(env)
check the return of calloc
@@ -536,6 +536,9 @@ SDB_API SdbKv* sdbkv_new2(const char *k, int kl, const char *v, int vl) { return NULL; } kv = R_NEW0 (SdbKv); + if (!kv) { + return NULL; + } kv->base.key_len = kl; kv->base.key = malloc (kv->base.key_len + 1); if (!kv->base.key) { @@ -740,6 +743,9 @@ static bool sdb_foreach_match_cb(void *user, con...
Mercator: clear rxpk_buf before getting a received frame
@@ -467,6 +467,7 @@ void cb_endFrame(PORT_TIMER_WIDTH timestamp) { if (mercator_vars.status == ST_RX){ // get packet from radio + memset(mercator_vars.rxpk_buf, 0, sizeof(mercator_vars.rxpk_buf)); radio_getReceivedFrame( mercator_vars.rxpk_buf, &mercator_vars.rxpk_len,
CORE: renumber OSSL_FUNC_KEYMGMT macros An amount of upcoming work does this to make space for new functions in different groups.
@@ -380,10 +380,10 @@ OSSL_CORE_MAKE_FUNC(const OSSL_PARAM *, OP_keymgmt_gettable_domparam_params, (void)) /* Key creation and destruction */ -# define OSSL_FUNC_KEYMGMT_IMPORTKEY 10 -# define OSSL_FUNC_KEYMGMT_GENKEY 11 -# define OSSL_FUNC_KEYMGMT_LOADKEY 12 -# define OSSL_FUNC_KEYMGMT_FREEKEY 13 +# define OSSL_FUNC_K...
Updated WiFi Driver API 1.0.0-beta Minor change (added const to config parameter in function Activate)
* See the License for the specific language governing permissions and * limitations under the License. * - * $Date: 21. May 2019 + * $Date: 31. May 2019 * $Revision: V1.0 (beta) * * Project: WiFi (Wireless Fidelity Interface) Driver definitions @@ -626,7 +626,7 @@ typedef struct { int32_t (*SetOption) (uint32_t interfa...
Change a line to make the CI happy
@@ -541,7 +541,7 @@ mounted, use `kdb gen -F <plugin>:<file> elektra <parentKey> <outputName>` to lo - For beginners we added a [tutorial](../tutorials/contributing-clion.md) that guides them through the process of contributing to libelektra. _(Thomas Bretterbauer)_ - Added a section on `elektraPluginGetGlobalKeySet` i...
copy-pasting is bad
* @return String that is associated with the matched environment variable or empty string if * such variable is missing. * - * @note Use it only in pair with `SetEnv` as there may be inconsistensy in their behaviour + * @note Use it only in pair with `SetEnv` as there may be inconsistency in their behaviour * otherwise...
fuzz CHANGE rename fuzz regression tests to start with regress_fuzz_ prefix
@@ -23,10 +23,10 @@ if (ENABLE_BUILD_TESTS) set(fuzz_regression_tests lys_parse_mem lyd_parse_mem) foreach(target_name IN LISTS fuzz_regression_tests) file(COPY ${CMAKE_SOURCE_DIR}/tests/fuzz/corpus/${target_name} DESTINATION ${CMAKE_BINARY_DIR}/tests/fuzz/) - add_executable(fuzz_${target_name}_test ${target_name}.c ma...
double cast of pointer to remove error
@@ -241,7 +241,7 @@ static void prepare_setup_packet(uint8_t rhport) static void edpt_reset(uint8_t rhport, uint8_t ep_id) { - const uint32_t offset = get_buf_offset((void*)dummy); + const uint32_t offset = get_buf_offset((void*)(uint32_t)dummy); tu_memclr(&_dcd.ep[ep_id], sizeof(_dcd.ep[ep_id])); if (_dcd_controller[r...
editing halt
@@ -276,71 +276,6 @@ void VerifyHalts(BODY *body,CONTROL *control,MODULE *module,OPTIONS *options) { } } } - - - - - /* Now make sure all set halts apply to the selected modules - XXX This sounds nice, but for now, it is left out - if (control->Halt.bMerge) { - if (!module->iEqtide) { - if (control->Io.iVerbose > 3) - ...
Add brew todo to README
@@ -70,4 +70,5 @@ echo "Add the release to GitHub at https://github.com/PJK/libcbor/releases/new * prompt "Have you added the release to https://github.com/PJK/libcbor/releases/tag/$TAG_NAME?" echo "Update the Hombrew formula (https://github.com/Homebrew/homebrew-core/blob/master/Formula/libcbor.rb) *now*" +echo "HOWTO...
OpenCoreKernel: Don't match kernels in .kext bundles
@@ -887,7 +887,7 @@ OcKernelFileOpen ( if (OpenMode == EFI_FILE_MODE_READ && OcStriStr (FileName, L"kernel") != NULL && StrCmp (FileName, L"System\\Library\\Kernels\\kernel") != 0 - && OcStriStr (FileName, L".kext") == NULL + && OcStriStr (FileName, L".kext\\") == NULL && OcStriStr (FileName, L".im4m") == NULL) { OcKer...
ra: translate map as a string
#include <fluent-bit/flb_mem.h> #include <fluent-bit/flb_env.h> #include <fluent-bit/flb_log.h> +#include <fluent-bit/flb_pack.h> #include <fluent-bit/flb_record_accessor.h> #include <fluent-bit/flb_ra_key.h> #include <fluent-bit/record_accessor/flb_ra_parser.h> @@ -427,8 +428,9 @@ static flb_sds_t ra_translate_string(...
registers_t is typedef'd to register_state_t
#include "std_base.h" #include <stdint.h> +#include <kernel/interrupts/idt_structures.h> __BEGIN_DECLS @@ -12,14 +13,8 @@ __BEGIN_DECLS #define kernel_begin_critical() __asm__("cli"); #define kernel_end_critical() __asm__("sti"); -//if the memory layout of this changes, kernel/util/interrupts/interrupt.s must be change...
dev-tools/hwloc: bump to v2.7
%define pname hwloc Name: %{pname}%{PROJ_DELIM} -Version: 2.5.0 +Version: 2.7.0 Release: 1%{?dist} Summary: Portable Hardware Locality License: BSD-3-Clause
util/ec_sb_firmware_update: Add NULL check BRANCH=none TEST=make buildall
@@ -368,6 +368,9 @@ static void dump_data(uint8_t *data, int offset, int size) { int i = 0; + if (data == NULL) + return; + printf("Offset:0x%X\n", offset); for (i = 0; i < size; i++) { if ((i%16) == 0)
BugID:16952476: Improve iotx_log
@@ -42,7 +42,7 @@ void LITE_syslog(char *m, const char *f, const int l, const int level, const #if (CONFIG_RUNTIME_LOG_LEVEL <= LOG_DEBUG_LEVEL) #define log_debug(mod, ...) LITE_syslog(mod, __FUNCTION__, __LINE__, LOG_DEBUG_LEVEL, __VA_ARGS__) #else -#define log_debug(mod, ...) LITE_printf("[dbg] "), LITE_printf(__VA_A...
Fix return value from shell.c
@@ -1011,11 +1011,12 @@ int main(int argc, char **argv) { JanetFiber *fiber = janet_fiber(janet_unwrap_function(mainfun), 64, 1, mainargs); fiber->env = env; status = janet_continue(fiber, janet_wrap_nil(), &out); - if (status != JANET_SIGNAL_OK && status < JANET_SIGNAL_USER0) { + if (status != JANET_SIGNAL_OK && statu...
README.md: Use version 2.04.91
@@ -19,11 +19,11 @@ Raspbian Wheezy and Qt4 is no longer maintained. ### Install deCONZ 1. Download deCONZ package - wget http://www.dresden-elektronik.de/rpi/deconz/beta/deconz-2.04.90-qt5.deb + wget http://www.dresden-elektronik.de/rpi/deconz/beta/deconz-2.04.91-qt5.deb 2. Install deCONZ package - sudo dpkg -i deconz...
Fix unused variable warnings in s2n_cleanup_test These variables are not intended to be used. Not moving the S2N_CLEANUP macro outside of this unit test since we do not expect to have cases where variables are unused outside of unit tests. fixes
#include "utils/s2n_mem.h" +#define S2N_UNUSED(x) do { (void) x; } while (0) + struct foo { int x; @@ -38,6 +40,7 @@ DEFINE_TRIVIAL_CLEANUP_FUNC(struct foo*, foo_free); int check_cleanup_obj_on_fn_exit() { DEFER_CLEANUP(struct foo x = {0}, foo_free); + S2N_UNUSED(x); return 0; } @@ -45,6 +48,8 @@ int check_cleanup_poin...
Fix custom update processor misplaced declaration in solrconfig
<updateRequestProcessorChain name="datafari" processor="datafariUpdateProcessor"> + <!-- ////////////////////////// --> + <!-- Includes additional updateProcessors --> + &custom_update_processors; + <processor class="org.apache.solr.update.processor.LangDetectLanguageIdentifierUpdateProcessorFactory"> <str name="langid...
util/copy.pl: work around glob quirk in some of earlier 5.1x Perl versions. In earlier 5.1x Perl versions quoting globs works only if there is white space. If there is none, it's looking for names starting with ".
@@ -26,7 +26,8 @@ foreach $arg (@ARGV) { next; } $arg =~ s|\\|/|g; # compensate for bug/feature in cygwin glob... - foreach (glob qq("$arg")) + $arg = qq("$arg") if ($arg =~ /\s/); # compensate for bug in 5.10... + foreach (glob $arg) { push @filelist, $_; }
audio: don't uninit device on stop in case initing a device is expensive, don't do it unnecessarily, and treat 'stop' as more of a 'pause'.
@@ -162,6 +162,9 @@ void lovrAudioDestroy() { if (!state.initialized) return; lovrAudioStop(AUDIO_PLAYBACK); lovrAudioStop(AUDIO_CAPTURE); + for(int i = 0; i < AUDIO_TYPE_COUNT; i++) { + ma_device_uninit(&state.devices[i]); + } ma_mutex_uninit(&state.playbackLock); ma_context_uninit(&state.context); @@ -242,19 +245,23 ...
swaynag: remove buffer destruction condition An address of a variable can never be NULL, so checking it doesn't make sense; and `destroy_buffer()` can operate on already destroyed buffers anyway. Fixes
@@ -511,13 +511,8 @@ void swaynag_destroy(struct swaynag *swaynag) { swaynag_seat_destroy(seat); } - if (&swaynag->buffers[0]) { destroy_buffer(&swaynag->buffers[0]); - } - - if (&swaynag->buffers[1]) { destroy_buffer(&swaynag->buffers[1]); - } if (swaynag->outputs.prev || swaynag->outputs.next) { struct swaynag_output...
SensorAPI - BNO055 needs delay on mode changes
@@ -79,7 +79,7 @@ STATS_SECT_DECL(bno055_stat_section) g_bno055stats; #endif #if MYNEWT_VAL(BNO055_LOG) -#define LOG_MODULE_BNO055 (303) +#define LOG_MODULE_BNO055 (305) #define BNO055_INFO(...) LOG_INFO(&_log, LOG_MODULE_BNO055, __VA_ARGS__) #define BNO055_ERR(...) LOG_ERROR(&_log, LOG_MODULE_BNO055, __VA_ARGS__) stat...
base: add an efficient bitmap popcnt method
@@ -53,6 +53,23 @@ static inline bool bitmap_test(unsigned long *bits, int pos) return (bits[BITMAP_POS_IDX(pos)] & (1ul << BITMAP_POS_SHIFT(pos))) != 0; } +/** + * bitmap_popcount - calculates the bit weight of the bitmap + * @bits: the bitmap + * @nbits: the number of bits in the bitmap + * + * Returns the bit weight...
Add alios-studio 'upload' hardware programming for atsame54-xpro board.
@@ -128,6 +128,25 @@ def upload_esp8266(target, aos_path): log("---host_os:%s\n" % host_os) return ret +def upload_atsam(target, aos_path): + '''Prerequisite to use this function: + 1. Atmel Studio 7 installed + 2. Add atprogram.exe file path (<AS7 install folder>/Atmel/Studio/7.0/atbackend) to Windows PATH environment...
doc: add debugging instructions for macOS
@@ -63,6 +63,27 @@ and run the test with ``continue`` To use a different port use ``--debug --debug-transport=<protocol>:<port>`` +Debugging on macOS +------------------ + +macOS has its own LLVM-based debugger called ``debugserver``. +Make sure the debugger server is available in your PATH (by default, it is not). + +...
Switch vpack tasks to use public azp image
jobs: - job: Package displayName: Package for Windows OS - pool: Package ES CodeHub Lab E + pool: + vmImage: windows-latest variables: - runCodesignValidationInjection: false + - name: runCodesignValidationInjection + value: false + - group: VPackDeploymentKeys steps: - task: DownloadBuildArtifacts@0 displayName: Downl...
core: add params argument to DRBG instantiate call
@@ -415,7 +415,8 @@ OSSL_CORE_MAKE_FUNC(void,rand_freectx, (void *vctx)) OSSL_CORE_MAKE_FUNC(int,rand_instantiate, (void *vdrbg, unsigned int strength, int prediction_resistance, - const unsigned char *pstr, size_t pstr_len)) + const unsigned char *pstr, size_t pstr_len, + const OSSL_PARAM params[])) OSSL_CORE_MAKE_FUN...
publish: set max width on new note title input
@@ -42,8 +42,8 @@ export function PostForm(props: PostFormProps) { validateOnBlur > <Form style={{ display: "contents" }}> - <Row flexDirection={["column-reverse", "row"]} mb={4} gapX={4}> - <Input flexGrow={1} placeholder="Post Title" id="title" /> + <Row flexDirection={["column-reverse", "row"]} mb={4} gapX={4} justi...
Fix CUDA 10.1 build for Windows
@@ -2582,6 +2582,7 @@ class Cuda(object): def cuda_windows_host_compiler(self): vc_version = { + '10.1': '14.13.26128', # (not latest) '10.0': '14.13.26128', # (not latest) '9.2': '14.13.26128', '9.1': '14.11.25503',
Fix accessing previous frame that didn't exist
@@ -682,12 +682,12 @@ void kvz_set_ctu_qp_lambda(encoder_state_t * const state, vector2d_t pos) { // In case wpp is used the previous ctus may not be ready from above rows const int ctu_limit = encoder->cfg.wpp ? pos.y * encoder->in.width_in_lcu : 0; - est_lambda = alpha * pow(bpp, beta); + est_lambda = alpha * pow(bpp...
freertos: extend snapshot test to check return status of `vTaskGetSnapshot`
@@ -138,7 +138,8 @@ TEST_CASE("Task snapshot: Iterate", "[freertos]") TaskHandle_t cur_task_handle = pxTaskGetNext(NULL); while (cur_task_handle != NULL) { // Get the task's snapshot - vTaskGetSnapshot(cur_task_handle, &task_snapshots[num_snapshots]); + BaseType_t Result = vTaskGetSnapshot(cur_task_handle, &task_snapsh...
Allowing users to customize CDash drop site/location via environment variables.
@@ -10,6 +10,14 @@ set (CTEST_PROJECT_NAME "PIO") set (CTEST_NIGHTLY_START_TIME "00:00:00 EST") set (CTEST_DROP_METHOD "http") +if (DEFINED ENV{PIO_DASHBOARD_DROP_SITE}) + set (CTEST_DROP_SITE "$ENV{PIO_DASHBOARD_DROP_SITE}") +else () set (CTEST_DROP_SITE "my.cdash.org") +endif () +if (DEFINED ENV{PIO_DASHBOARD_PROJECT...
Just type the test log.
@@ -64,4 +64,4 @@ jobs: - name: msbuild run: cd vcnet; msbuild pappl.sln - name: test - run: cd vcnet; ./copy-dlls.bat x64\Debug; cd x64\Debug; ./testpappl -c -l testpappl.log -L debug -o testpappl.output -t all || type ..\..\..\testsuite\testpappl.log + run: cd vcnet; ./copy-dlls.bat x64\Debug; cd x64\Debug; ./testpap...
removing pre bip68 testing as it is always active
@@ -28,21 +28,6 @@ class BIP68Test(RavenTestFramework): # Generate some coins self.nodes[0].generate(110) - self.log.info("Running test disable flag") - self.test_disable_flag() - - self.log.info("Running test sequence-lock-confirmed-inputs") - self.test_sequence_lock_confirmed_inputs() - - self.log.info("Running test ...
dpdk: prefetch 2nd cacheline of rte_mbuf during tx
@@ -307,7 +307,7 @@ dpdk_prefetch_buffer_by_index (vlib_main_t * vm, u32 bi) struct rte_mbuf *mb; b = vlib_get_buffer (vm, bi); mb = rte_mbuf_from_vlib_buffer (b); - CLIB_PREFETCH (mb, CLIB_CACHE_LINE_BYTES, LOAD); + CLIB_PREFETCH (mb, 2 * CLIB_CACHE_LINE_BYTES, STORE); CLIB_PREFETCH (b, CLIB_CACHE_LINE_BYTES, LOAD); }...
Give the PRCI widgets valnames to clean up module naming
@@ -29,8 +29,6 @@ case object ChipyardPRCIControlKey extends Field[ChipyardPRCIControlParams](Chip trait HasChipyardPRCI { this: BaseSubsystem with InstantiatesTiles => require(p(SubsystemDriveAsyncClockGroupsKey).isEmpty, "Subsystem asyncClockGroups must be undriven") - implicit val n = ValName("chipyardPRCI") - val p...
common/spi_flash_reg.c: Format with clang-format BRANCH=none TEST=none
@@ -107,8 +107,9 @@ int spi_flash_reg_to_protect(uint8_t sr1, uint8_t sr2, unsigned int *start, cmp = (sr2 & SPI_FLASH_SR2_CMP) ? 1 : 0; sec = (sr1 & SPI_FLASH_SR1_SEC) ? 1 : 0; tb = (sr1 & SPI_FLASH_SR1_TB) ? 1 : 0; - bp = (sr1 & (SPI_FLASH_SR1_BP2 | SPI_FLASH_SR1_BP1 | SPI_FLASH_SR1_BP0)) - >> 2; + bp = (sr1 & + (SPI...
set active to false when closing a connection ; don't 0 the entire net object
@@ -2364,7 +2364,7 @@ doClose(int fd, const char *func) // report everything before the info is lost reportFD(fd, EVENT_BASED); - if (ninfo) scope_memset(ninfo, 0, sizeof(struct net_info_t)); + if (ninfo) ninfo->active = FALSE; if (fsinfo) scope_memset(fsinfo, 0, sizeof(struct fs_info_t)); if (guard_enabled) while (!at...
ci: Add spiffs, fatfs host runs to CI Adds running the fatfs, spiffs sanity check to CI.
@@ -285,6 +285,26 @@ test_wl_on_host: - cd components/wear_levelling/test_wl_host - make test +test_fatfs_on_host: + stage: test + image: $CI_DOCKER_REGISTRY/esp32-ci-env$BOT_DOCKER_IMAGE_TAG + tags: + - wl_host_test + dependencies: [] + script: + - cd components/fatfs/test_fatfs_host/ + - make test + +test_spiffs_on_h...
doc: fix link in /doc/contrib/documentation.md
@@ -134,4 +134,4 @@ In general we use [arc42.org](https://arc42.org/) but we use specialized templat - [libs](/src/libs/template/README.md) - [bindings](/src/bindings/template/README.md) - [tools](/src/tools/template/README.md) -- [decisions](/doc/decisions/template.md) +- [decisions](/doc/decisions/TEMPLATE.md)
Fix incorrect tags.
</release-item> <release-item> - <p>Add <id>exists()</id> to remote storage.</p> + <p>Add <code>exists()</code> to remote storage.</p> </release-item> <release-item> </release-item> <release-item> - <p>Add <id>storageHelperFree()</id> to storage helper.</p> + <p>Add <code>storageHelperFree()</code> to storage helper.</...
fixed stages names
stages: - stage: build + displayName: Build Scope application jobs: - job: BuildInVM timeoutInMinutes: 10 @@ -53,10 +54,12 @@ stages: ${{ if ne(variables['Build.SourceBranchName'], 'master') }}: targetFolder: ${{ format('dl/scope/branch/{0}/', variables['Build.SourceBranchName']) }} filesAcl: 'public-read' - - stage: i...
Do not add ADD_CHECK_PY_IMPORTS to libraries with PY_MAIN Libraries are allowed to specify the entry point of the programs that link with them, but they can not have import tests.
@@ -484,6 +484,8 @@ def onpy_register(unit, *args): def py_main(unit, arg): + is_program = unit.get('MODULE_TYPE') == 'PROGRAM' + if is_program: py_program(unit, is_py3(unit)) unit.onresource(['-', 'PY_MAIN={}'.format(arg)])
Add LARGE_INTEGER_128
@@ -75,6 +75,11 @@ typedef USHORT RTL_ATOM, *PRTL_ATOM; typedef LARGE_INTEGER PHYSICAL_ADDRESS, *PPHYSICAL_ADDRESS; +typedef struct _LARGE_INTEGER_128 +{ + LONGLONG QuadPart[2]; +} LARGE_INTEGER_128, *PLARGE_INTEGER_128; + // NT status macros #define NT_SUCCESS(Status) (((NTSTATUS)(Status)) >= 0)
examples/thttpd: Don't touch task_tcb_s::argv field since it move to task_info_s now
/**************************************************************************** - * apps/examples/thttpd/tasks/tasks.c + * apps/examples/thttpd/content/tasks/tasks.c * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with @@ -90,62 +90,...
display: don't specify lower scrolling region boundary
@@ -264,7 +264,7 @@ static void display_displayLocked(honggfuzz_t* hfuzz) { display_put("\n---------------------------------- [ " ESC_BOLD "LOGS" ESC_RESET " ] ------------------/ " ESC_BOLD "%s %s " ESC_RESET "/-", PROG_NAME, PROG_VERSION); - display_put(ESC_SCROLL_REGION(13, 500) ESC_NAV_HORIZ(1) ESC_NAV_DOWN(500)); ...
Install wget early.
FROM debian:stable-slim +RUN apt-get -y update && \ + apt-get -y upgrade && \ + apt-get install --no-install-recommends -y \ + wget + ARG ZSDK_VERSION=0.11.2 RUN wget -q "https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v${ZSDK_VERSION}/zephyr-sdk-${ZSDK_VERSION}-setup.run" && \ sh "zephyr-sdk-${ZSDK_VERS...
HV: Fix wrong comment of trace_entry size sizeof trace_entry is 4 * 64bit No functional change. Acked-by: Eddie Dong
#define TRACE_FUNC_EXIT 0xFE #define TRACE_STR 0xFF -/* sizeof(trace_entry) == 3 x 64bit */ +/* sizeof(trace_entry) == 4 x 64bit */ struct trace_entry { uint64_t tsc; /* TSC */ uint64_t id;
linux-rasbperrypi: Update to 4.9.27
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:" -LINUX_VERSION ?= "4.9.23" +LINUX_VERSION ?= "4.9.27" -SRCREV = "53460a0a50f3dd5e60266e945d0ac794ce0eca77" +SRCREV = "9a5f215eda12bad29b35040dff00d0346fe517e2" SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-4.9.y \ " require linux-raspberry...
Appease perlcritic Food for the gods must always be found somehow, even when the land starves.
@@ -192,6 +192,7 @@ sub advance_wal { $node->safe_psql('postgres', "CREATE TABLE t (); DROP TABLE t; SELECT pg_switch_wal();"); } + return; } # return the size of logfile of $node in bytes
Removes some unused imports.
// Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. -#include <assets/assets.h> -#include <wallet/wallet.h> -#include <base58.h> +#include "assets/assets.h" #include "script.h" #include "tinyformat.h"
hslua-classes: use unsafe next when peeking lists/key-value pairs
@@ -34,6 +34,7 @@ import qualified Control.Monad.Catch as Catch import qualified Data.Set as Set import qualified Data.Text as T import qualified Data.ByteString.Lazy as BL +import qualified HsLua.Core.Unsafe as Unsafe import qualified HsLua.Marshalling as Peek -- | Use @test@ to check whether the value at stack index ...
fix for seekg
@@ -190,6 +190,7 @@ namespace ebi { unsigned char magic[9]; input.read((char*)magic, sizeof(magic)); + input.clear(); input.seekg(0); std::vector<std::pair<std::vector<unsigned char>, std::string>> types = {
s5j/rtc: fix missing brackets for RTC alarm registers
#define RTC_RTCALM_HOUREN_ENABLE (1 << RTC_RTCALM_HOUREN_SHIFT) #define RTC_RTCALM_MINEN_SHIFT 1 -#define RTC_RTCALM_MINEN_MASK (1 << RTC_RTCALM_MINEN_SHIFT -#define RTC_RTCALM_MINEN_DISABLE (0 << RTC_RTCALM_MINEN_SHIFT -#define RTC_RTCALM_MINEN_ENABLE (1 << RTC_RTCALM_MINEN_SHIFT +#define RTC_RTCALM_MINEN_MASK (1 << R...
GitHub CI: Add 'check-update' and 'check-docs' 'check-update' runs a 'make update' to check that it wasn't forgotten. 'check-docs' runs 'make doc-nits'. We have that as a separate job to make it more prominent.
@@ -12,6 +12,30 @@ on: [pull_request, push] # - make="make -s" jobs: + check_update: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: config + run: ./config --strict-warnings && perl configdata.pm --dump + - name: make build_generated + run: make -s build_generated + - name: make update + run: ...
doc: remove reference to the predecessor of
@@ -79,9 +79,6 @@ SHA512_DIGEST_LENGTH). Also note that, as for the SHA1() function above, the SHA224(), SHA256(), SHA384() and SHA512() functions are not thread safe if B<md> is NULL. -The predecessor of SHA-1, SHA, is also implemented, but it should be -used only when backward compatibility is required. - =head1 RETU...
fix moving clients over tag 20
@@ -3808,6 +3808,10 @@ tagtoleft(const Arg *arg) { int oldx; Client *c; + + if (selmon->pertag->curtag == 1) + return; + if (!selmon->sel) return; @@ -3878,6 +3882,9 @@ tagtoright(const Arg *arg) { int oldx; Client *c; + if (selmon->pertag->curtag == 20) + return; + if (!selmon->sel) return;
revert PtrToStringAnsi add fallback in tostring
@@ -113,7 +113,7 @@ namespace SLua public static string lua_typenamestr(IntPtr luaState, LuaTypes type) { IntPtr p = lua_typename(luaState, (int)type); - return Marshal.PtrToStringAuto(p); + return Marshal.PtrToStringAnsi(p); } public static string luaL_typename(IntPtr luaState, int stackPos) { @@ -533,12 +533,19 @@ na...
[CI] Dummy commit to build valid toolchain
@@ -37,7 +37,7 @@ jobs: path: | x86_64-toolchain axle-sysroot - key: libc-and-toolchain-2 + key: libc-and-toolchain - name: Build libc and toolchain shell: bash @@ -46,29 +46,3 @@ jobs: python3 scripts/install_dependencies.py python3 scripts/build_os_toolchain.py echo "Toolchain built successfully" - - - name: Build Ru...
parallel-libs/opencoarrays: bump to v2.8.0
@@ -21,7 +21,7 @@ Name: %{pname}-%{compiler_family}-%{mpi_family}%{PROJ_DELIM} Summary: ABI to leverage the parallel programming features of the Fortran 2018 DIS License: BSD-3-clause Group: %{PROJ_NAME}/parallel-libs -Version: 2.6.3 +Version: 2.8.0 Release: 1%{?dist} Source0: https://github.com/sourceryinstitute/OpenC...
king: 1 TiB mapsize for event log
@@ -100,7 +100,7 @@ rawOpen :: MonadIO m => FilePath -> m Env rawOpen dir = io $ do env <- mdb_env_create mdb_env_set_maxdbs env 3 - mdb_env_set_mapsize env (100 * 1024 * 1024 * 1024) + mdb_env_set_mapsize env (1024 * 1024 * 1024 * 1024) mdb_env_open env dir [] pure env
perfmon: enable pmc event before reading rdpmc index
@@ -161,6 +161,12 @@ enable_current_events (perfmon_main_t * pm) else p = 0; + if (ioctl (fd, PERF_EVENT_IOC_RESET, 0) < 0) + clib_unix_warning ("reset ioctl"); + + if (ioctl (fd, PERF_EVENT_IOC_ENABLE, 0) < 0) + clib_unix_warning ("enable ioctl"); + /* * Software event counters - and others not capable of being * read...
Document x ray query blueprint output metadata
@@ -534,9 +534,11 @@ XRay Image +------------------+------------------------------------------------------+ | *normal* | The view normal. The default is (0., 0., 1.). | +------------------+------------------------------------------------------+ - | *view_angle* | The view angle. The default is 30. | + | *view_angle* | ...
pybricks.parameters.Color: fix hsv print mp_printf uses fixed, platform-independent specifiers. This fixes statements like print(Color.RED) not working correctly on some platforms.
#if PYBRICKS_PY_PARAMETERS -#include <inttypes.h> - #include <pbio/color.h> #include "py/objstr.h" @@ -160,7 +158,7 @@ STATIC mp_obj_t pb_type_Color_make_new(const mp_obj_type_t *type, size_t n_args, void pb_type_Color_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind) { pb_type_Color_obj_t *self = ...
sysdeps/linux: convert sys_setres{uid,gid} to MLIBC_CHECK_OR_ENOSYS
@@ -1113,11 +1113,7 @@ char *ctermid(char *s) { } int setresuid(uid_t ruid, uid_t euid, uid_t suid) { - if(!mlibc::sys_setresuid) { - MLIBC_MISSING_SYSDEP(); - errno = ENOSYS; - return -1; - } + MLIBC_CHECK_OR_ENOSYS(mlibc::sys_setresuid, -1); if(int e = mlibc::sys_setresuid(ruid, euid, suid); e) { errno = e; return -1...
arch/arm/imxrt/chip/imxrt_enet.h : Modify CONFIG_ARCH_FAMILY_IMXRT102x to CONFIG_ARCH_CHIP_FAMILY_IMXRT102x There is no definition of CONFIG_ARCH_FAMILY_IMXRT102x, but there is CONFIG_ARCH_CHIP_FAMILY_IMXRT102x. So modified it.
#include <tinyara/config.h> #include "chip.h" -#if defined(CONFIG_ARCH_FAMILY_IMXRT102x) +#if defined(CONFIG_ARCH_CHIP_FAMILY_IMXRT102x) #include "chip/imxrt102x_config.h" -#elif defined(CONFIG_ARCH_FAMILY_IMXRT105x) +#elif defined(CONFIG_ARCH_CHIP_FAMILY_IMXRT105x) #include "chip/imxrt105x_config.h" #else #error Unrec...
OpenCoreUefi: Prohibit unsigned DMG loading with secure boot
@@ -379,6 +379,18 @@ OcLoadAppleSecureBoot ( SecureBootPolicy = AppleImg4SbModeMedium; } + // + // We blindly trust DMG contents after signature verification + // essentially skipping secure boot in this case. + // Do not allow enabling one but not the other. + // + if (SecureBootPolicy != AppleImg4SbModeDisabled + && ...
Add assertion for runtime exception thrown by debugulator For empty format column generated when all duplicates are removed
@@ -314,6 +314,18 @@ namespace ebi util::string_split(output.str(), "\t", columns); CHECK(columns[8] == "GT:GH"); } + SECTION("Fix FORMAT duplicate field, throw exception if format column gets empty (because of different values)") + { + size_t line_number = 8; + std::string message{"error message mock: Duplicate format...
info.c (tagcompare): use a locale-insensitive toupper() see:
#include <stdlib.h> #include <string.h> -#include <ctype.h> #include <ogg/ogg.h> #include "vorbis/codec.h" #include "codec_internal.h" @@ -47,6 +46,10 @@ static void _v_readstring(oggpack_buffer *o,char *buf,int bytes){ } } +static int _v_toupper(int c) { + return (c >= 'a' && c <= 'z') ? (c & ~('a' - 'A')) : c; +} + v...
Increase LastShutdownTime max string length
@@ -99,7 +99,7 @@ typedef struct { #define FW_BUILD_STR_LEN 17 #define FW_COMMIT_ID_LEN 40 #define FW_COMMIT_ID_STR_LEN 41 -#define DATE_STR_LEN 25 +#define DATE_STR_LEN 29 #define SW_TRIG_ENABLED_DETAILS_LEN 120 /** DIMM UID length, including null terminator **/
Remove some out of date text inadvertently left behind
@@ -62,17 +62,6 @@ If a server does not request a certificate this option has no effect. The syntax of B<value> is identical to B<-sigalgs>. If not set then the value set for B<-sigalgs> will be used instead. -=item B<-curves> - -This sets the supported elliptic curves. For clients the curves are -sent using the suppor...
YAwn: Use `ELEKTRA_UNUSED`
#include <memory> #include <string> +#include <kdbconfig.h> + #include <yaep.h> #include "error_listener.hpp" @@ -52,9 +54,8 @@ ErrorListener::ErrorListener (std::string const & errorSource) * @param recoveredTokenData This variable stores the data contained in * `recoveredToken`. */ -void ErrorListener::syntaxError (i...
Increase initial buffer size for compiler's arena.
@@ -213,7 +213,7 @@ YR_API int yr_compiler_create( if (result == ERROR_SUCCESS) result = yr_arena_create( - YR_NUM_SECTIONS, 64, &new_compiler->arena); + YR_NUM_SECTIONS, 1048576, &new_compiler->arena); if (result == ERROR_SUCCESS) result = yr_ac_automaton_create(
Updating discord_set_presence function
@@ -553,6 +553,9 @@ discord_set_presence(struct discord *client, struct discord_presence_status *presence) { memcpy(client->gw.id.presence, presence, sizeof *presence); + if (client->gw.session->is_ready) { + discord_gateway_send_presence_update(&client->gw); + } } int
fix login crash
# try to obtain a temp dir unique to the user, to enable # instantOS xsessions for concurrent users on the same machine RTD="$(instantruntimedir)" -RTD="${RTD:/tmp/instantos}" + +if [ -z "$RTD" ]; then + mkdir -p /tmp/instantos + RTD="/tmp/instantos" +fi echo $$ >"${RTD}"/instantosrunning @@ -27,7 +31,7 @@ if iconf wmn...
Add :load-hex REPL command
#include <stdio.h> #include <stdlib.h> #include <time.h> +#include <ctype.h> #include "m3.h" #include "m3_api_wasi.h" @@ -52,6 +53,50 @@ M3Result repl_load (IM3Runtime runtime, const char* fn) return result; } +M3Result repl_load_hex (IM3Runtime runtime, u32 fsize) +{ + M3Result result = m3Err_none; + + if (fsize < 8) ...
extmod/modbluetooth_nimble: Use random addr if public isn't available.
@@ -277,7 +277,30 @@ STATIC void reset_cb(int reason) { } STATIC void sync_cb(void) { - ble_hs_util_ensure_addr(0); // prefer public address + int rc; + ble_addr_t addr; + + rc = ble_hs_util_ensure_addr(0); // prefer public address + if (rc != 0) { + // https://mynewt.apache.org/latest/tutorials/ble/eddystone.html#conf...
do not build libllvmopencl.so by default, no longer used since 0.14
@@ -349,7 +349,7 @@ endif() # for libpocl.so set(POCL_INSTALL_PUBLIC_LIBDIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}" CACHE PATH "POCL public libdir") -# for llvmopencl.so +# for libpocl-devices-*.so set(POCL_INSTALL_PRIVATE_LIBDIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/pocl" CACHE PATH "POCL private ...
ORIGIN from SOA owner, also in SOA rdata fields
@@ -582,10 +582,12 @@ ldns_rr_new_frm_str_internal(ldns_rr **newrr, const char *str, LDNS_RDF_TYPE_DNAME, ".") ); - } else if (r && rd_strlen >= 1 && origin && - !ldns_dname_str_absolute(rd)) { + } else if (r && rd_strlen >= 1 + && (origin || rr_type == LDNS_RR_TYPE_SOA) + && !ldns_dname_str_absolute(rd)) { - status = ...
That was unnecessary
@@ -359,7 +359,7 @@ struct clap_plugin_entry { }; /* Entry point */ -CLAP_EXPORT extern const struct clap_plugin_entry *clap_plugin_entry; +CLAP_EXPORT extern const struct clap_plugin_entry clap_plugin_entry; #ifdef __cplusplus }
notify: rework subscription wires and rewatch
?- -.old :: %2 - =/ =wire /hark/updates + =/ upd=wire /hark/updates + =/ not=wire /hark/notes =/ =dock [our.bowl %hark-store] - =? cards !(~(has by wex.bowl) [wire dock]) - :_(cards [%pass wire %agent dock %watch /updates]) + =? cards !(~(has by wex.bowl) [upd dock]) :: rewatch notes + :_(cards [%pass upd %agent dock %...
update error message for learning without GPU module
@@ -806,7 +806,7 @@ void TrainModel(const NJson::TJsonValue& plainJsonParams, if (isGpuDeviceType && TTrainerFactory::Has(ETaskType::GPU)) { modelTrainerHolder = TTrainerFactory::Construct(ETaskType::GPU); } else { - CB_ENSURE(!isGpuDeviceType, "Can't load GPU learning library. Module was not compiled or CUDA version/d...
Add PIE/ASLR flag option for build tool
@@ -21,6 +21,7 @@ Options: -d Enable compiler safeguards like -fstack-protector. You should probably do this if you plan to give the compiled binary to other people. + -p Enable PIE (ASLR) -s Print statistics about compile time and binary size. -h or --help Print this message and exit. EOF @@ -40,8 +41,9 @@ cc_exe="${C...
[consensus] make the log message consistent
@@ -264,7 +264,7 @@ func (bf *BlockFactory) rejected() *chain.RejTxInfo { } func (bf *BlockFactory) setRejected(rej *chain.RejTxInfo) { - logger.Warn().Str("hash", enc.ToString(rej.Hash())).Msg("mark timeout tx for rescheduling") + logger.Warn().Str("hash", enc.ToString(rej.Hash())).Msg("timeout tx reserved for resched...
Have h2get build its own mruby if when needed
@@ -555,10 +555,6 @@ ENDIF (WITH_BUNDLED_SSL) include(ExternalProject) -IF (WITH_MRUBY) - SET(H2GET_MRUBY_OPTS "-DWITH_MRUBY_LIB=${CMAKE_CURRENT_BINARY_DIR}/mruby/host/lib/libmruby.a -DWITH_MRUBY_INCLUDE=${CMAKE_CURRENT_SOURCE_DIR}/deps/mruby/include") -ENDIF () - IF (WITH_BUNDLED_SSL) SET(H2GET_SSL_ROOT_DIR "${CMAKE_C...