message
stringlengths
6
474
diff
stringlengths
8
5.22k
Fix format of Reboot Required status in BSR
@@ -215,7 +215,7 @@ ShowRegister( Print(L" [63:35] Rsvd ----------------- = 0x%x\n\n", Bsr.Separated_FIS_1_4.Rsvd1); } else { Print(L" [28:27] DR (DRAM Ready(AIT)) --= 0x%x (0:Not trained,Not Loaded; 1:Trained,Not Loaded; 2:Error; 3:Trained,Loaded(Ready))\n", Bsr.Separated_Current_FIS.DR); - Print(L" [29] RR (Reboot Re...
Remove GPS power save mode.
@@ -325,50 +325,6 @@ func initGPSSerial() bool { p.Write(makeUBXCFG(0x06, 0x01, 8, []byte{0xF1, 0x03, 0x00, 0x05, 0x00, 0x05, 0x00, 0x00})) // Ublox,3 p.Write(makeUBXCFG(0x06, 0x01, 8, []byte{0xF1, 0x04, 0x00, 0x0A, 0x00, 0x0A, 0x00, 0x00})) // Ublox,4 - // Power save mode. - - // UBX-CFG-PM2. - pm2 := make([]byte, 44)...
Improve bootstrap.ts from ts loader.
@@ -126,11 +126,15 @@ const getTranspileOptions = (moduleName: string, path: string) => { const getMetacallExportTypes = ( p: ts.Program, + paths: string[] = [], cb: (sourceFile: ts.SourceFile, metacallType: MetacallExports) => void = () => { }, ) => { const exportTypes: MetacallExports = {}; - const sourceFiles = p.ge...
Fix unwanted word merge in netgear generator
@@ -121,7 +121,7 @@ static const char *adjectiv[] = { "absurd", "ancient", "antique", "aquatic", "safe", "salute", "sandy", "sharp", "shiny", "short", "silent", "silky", "silly", "slender", "slow", "slower", "small", "smart", "smiley", "smiling", "smooth", "snug", "soft", "sour", "stealth", "strange", "strong", "sunny"...
add interrupt to blink example
#include <aos/aos.h> #include <hal/soc/soc.h> -#define BLINK_GPIO 5 +/** + * Brief: + * This test code shows how to configure gpio and how to use gpio interrupt. + * + * GPIO status: + * GPIO18: output + * GPIO4: output + * GPIO5: input, pulled up, interrupt from rising edge and falling edge + * + * Test: + * Connect G...
input: update scaleMap
@@ -366,16 +366,19 @@ static size_t input_numTests(size_t idx, size_t total) { if (idx > total) { LOG_F("idx (%zu) > total (%zu)", idx, total); } - size_t percentile = (idx * 100) / total; - static size_t const scaleMap[101] = { - [0 ... 90] = 1, - [91 ... 92] = 2, - [93 ... 94] = 3, - [95 ... 96] = 4, - [97 ... 98] = ...
fix bug that phy_enter_critical cannot effect on dual-core Sometimes, libphy.a call phy_enter_critical() to protect accessing critical sections, such like operating on I2C, but it may not effect when both the CPU core call it. It may cause accessing I2C blocking and cannot recover by esp_restart(), until do HW reboot.
@@ -75,14 +75,28 @@ static _lock_t s_modem_sleep_lock; static int64_t s_phy_rf_en_ts = 0; #endif +static DRAM_ATTR portMUX_TYPE s_phy_int_mux = portMUX_INITIALIZER_UNLOCKED; + uint32_t IRAM_ATTR phy_enter_critical(void) { - return portENTER_CRITICAL_NESTED(); + if (xPortInIsrContext()) { + portENTER_CRITICAL_ISR(&s_phy...
apps_ui.c: Correct handling of empty password from -passin This is done in analogy to commit
static UI_METHOD *ui_method = NULL; static const UI_METHOD *ui_fallback_method = NULL; - static int ui_open(UI *ui) { int (*opener)(UI *ui) = UI_method_get_opener(ui_fallback_method); @@ -72,7 +71,8 @@ static int ui_write(UI *ui, UI_STRING *uis) { const char *password = ((PW_CB_DATA *)UI_get0_user_data(ui))->password; ...
Attempt to use pyvenv.cfg hack on Windows.
@@ -2172,7 +2172,7 @@ void wsgi_python_init(apr_pool_t *p) } } -#if defined(WIN32) +#if defined(WIN32_OBSOLETE_VENV_SETUP) /* * Check for Python HOME being overridden. This is only being * used on Windows for now. For UNIX systems we actually do @@ -2301,7 +2301,11 @@ void wsgi_python_init(apr_pool_t *p) #if PY_MAJOR_V...
fix TreeView React class
import React, { PropTypes } from 'react' export default class TreeView extends React.Component { - getInitialState () { - return { collapsed: this.props.defaultCollapsed } + constructor (props) { + super(props) + this.state = { + collapsed: this.props.defaultCollapsed, + } } handleClick (...args) { @@ -33,6 +36,7 @@ ex...
[Detection] Increase Network Timeout
@@ -33,7 +33,7 @@ typedef struct __attribute__((__packed__)) }; } node_bootstrap_t; -#define NETWORK_TIMEOUT 1000 // timeout to detect a failed detection +#define NETWORK_TIMEOUT 3000 // timeout to detect a failed detection static error_return_t Robus_MsgHandler(msg_t *input); static error_return_t Robus_DetectNextNode...
cmake: allow calling get component property in early expansion
+cmake_minimum_required(VERSION 3.5) include("${BUILD_PROPERTIES_FILE}") include("${COMPONENT_PROPERTIES_FILE}") @@ -18,6 +19,38 @@ function(__component_get_property var component_target property) set(${var} ${${_property}} PARENT_SCOPE) endfunction() +# +# Given a component name or alias, get the corresponding compone...
Update README.md Added to the readme file. See:
@@ -56,6 +56,7 @@ awesome list of [YARA-related stuff](https://github.com/InQuest/awesome-yara). ## Who's using YARA +* [0x101 Cyber Security](https://0x101-cyber-security.de) * [ActiveCanopy](https://activecanopy.com/) * [Adlice](https://www.adlice.com/) * [AlienVault](https://otx.alienvault.com/)
Small fix in Array#sort
@@ -83,7 +83,7 @@ class Array v_i = self[i] v_j = self[j] if block - next if block.call(v_i, v_j) <= 0 + next if block.call(v_i, v_j) < 0 else next if v_i < v_j end
add comment on #if ending
@@ -491,8 +491,8 @@ static bool mi_getenv(const char* name, char* result, size_t result_size) { return false; } } -#endif -#endif +#endif // !MI_USE_ENVIRON +#endif // !MI_NO_GETENV static void mi_option_init(mi_option_desc_t* desc) { // Read option value from the environment
layer.conf: add dunfell to compat layer
@@ -9,7 +9,7 @@ BBFILE_COLLECTIONS += "raspberrypi" BBFILE_PATTERN_raspberrypi := "^${LAYERDIR}/" BBFILE_PRIORITY_raspberrypi = "9" -LAYERSERIES_COMPAT_raspberrypi = "sumo thud warrior zeus" +LAYERSERIES_COMPAT_raspberrypi = "sumo thud warrior zeus dunfell" # Additional license directories. LICENSE_PATH += "${LAYERDIR}...
gard: enable building with -DDEBUG for ccan list
@@ -5,7 +5,10 @@ OBJS = version.o gard.o LIBFLASH_FILES := libflash.c libffs.c ecc.c blocklevel.c file.c LIBFLASH_OBJS := $(addprefix libflash-, $(LIBFLASH_FILES:.c=.o)) LIBFLASH_SRC := $(addprefix libflash/,$(LIBFLASH_FILES)) -OBJS += $(LIBFLASH_OBJS) +CCAN_FILES := list.c +CCAN_OBJS := $(addprefix ccan-list-, $(CCAN_...
Lock metadata mutexes in case they are cleared by inotify thread
@@ -466,8 +466,15 @@ parse_overlay_config(struct overlay_params *params, #ifdef HAVE_DBUS if (params->enabled[OVERLAY_PARAM_ENABLED_media_player]) { + // lock mutexes for config file change notifier thread + { + std::lock_guard<std::mutex> lk(main_metadata.mutex); main_metadata.clear(); + } + { + std::lock_guard<std::m...
Add portable fix for the lack of UNREFERENCED_PARAMETER prior to including winnnt.h
#include "Version.hpp" #include "Enums.hpp" -#include "ctmacros.hpp" +#include <tuple> #include <map> #include <string> #include <vector> @@ -502,9 +502,10 @@ namespace ARIASDK_NS_BEGIN /// <param name="size">HTTP client implementation-specific data structure size (optional)</param> virtual void OnHttpStateEvent(HttpSt...
Fix missing encryption levels
@@ -3,7 +3,7 @@ import json import base64 from pprint import pprint -epoch = ["ENCRYPTION_INITIAL", "ENCRYPTION_0RTT", "ENCRYPTION_UNKNOWN", "ENCRYPTION_1RTT"] +epoch = ["ENCRYPTION_INITIAL", "ENCRYPTION_0RTT", "ENCRYPTION_HANDSHAKE", "ENCRYPTION_1RTT"] def transform(inf, outf, cid): start = -1 @@ -37,6 +37,7 @@ def tr...
[numerics] add an assert for sparse storage that is not implemented
@@ -69,7 +69,7 @@ int reformulationIntoLocalProblem(GlobalFrictionContactProblem* problem, Frictio return info; } - if (M->storageType == 0) + if (M->storageType == NM_DENSE) { @@ -145,7 +145,7 @@ int reformulationIntoLocalProblem(GlobalFrictionContactProblem* problem, Frictio } - else + else if (M->storageType == NM_S...
Fix setting ZHAOpenClose sensor state/lastupdated
@@ -3236,12 +3236,12 @@ void DeRestPluginPrivate::updateSensorNode(const deCONZ::NodeEvent &event) if (item->toBool() != open) { item->setValue(open); - i->setNeedSaveDatabase(true); - queSaveDb(DB_SENSORS, DB_HUGE_SAVE_DELAY); - } Event e(RSensors, item->descriptor().suffix, i->id()); enqueueEvent(e); } + i->setNeedSa...
Update change log for 3.3 release
@@ -4,7 +4,42 @@ This page summarizes the major functional and performance changes in each release of the 3.x series. All performance data on this page is measured on an Intel Core i5-9600K -clocked at 4.2 GHz, running astcenc using AVX2 and 6 threads. +clocked at 4.2 GHz, running `astcenc` using AVX2 and 6 threads. + ...
rastertops- added handling of empty input
@@ -366,8 +366,8 @@ main(int argc, /* I - Number of command-line arguments */ FILE *input = NULL; /* File pointer to raster document */ int fd, /* File descriptor for raster document */ num_options, /* Number of options */ - count, /* count for writing the postscript */ Canceled = 0, /* variable for job cancellation */...
tests: improve ASSERTIFY
@@ -70,7 +70,21 @@ typedef struct test_entry_t { #define ASSERT_CHOOSER(...) ASSERT_ARG3(__VA_ARGS__, ASSERT_ARG2, ASSERT_ARG1) #define ASSERT(...) do { ASSERT_CHOOSER(__VA_ARGS__)(__VA_ARGS__) } while(0); -#define ASSERTIFY(expr) ASSERT((expr).status == 1, (expr).msg) +#define ASSERTIFY(expr) do { \ + test_status_t ts...
Replace tls12_get_pkey_idx The functiontls12_get_pkey_idx is only used to see if a certificate index is enabled: call ssl_cert_is_disabled instead.
@@ -1398,43 +1398,6 @@ TICKET_RETURN tls_decrypt_ticket(SSL *s, const unsigned char *etick, return ret; } -static int tls12_get_pkey_idx(int sig_nid) -{ - switch (sig_nid) { -#ifndef OPENSSL_NO_RSA - case EVP_PKEY_RSA: - return SSL_PKEY_RSA; - /* - * For now return RSA key for PSS. When we support PSS only keys - * thi...
ci(pytest): move to class plugin
@@ -147,18 +147,39 @@ def pytest_addoption(parser: pytest.Parser) -> None: ) -@pytest.hookimpl(tryfirst=True) -def pytest_sessionstart(session: Session) -> None: - if session.config.option.target: - session.config.option.target = session.config.getoption('target').lower() +_idf_pytest_embedded_key = pytest.StashKey['Id...
gitlab: make "Related" subsection visible in the minimal template
<!-- Add description of the change here --><!-- Mandatory --> -<!-- ## Related --><!-- Optional --> +## Related <!-- Optional --> <!-- Related Jira issues and Github issues --> ## Release notes <!-- Mandatory -->
[stage] Make config concatenation actually work
@@ -11,7 +11,12 @@ private[stage] object UnderscoreDelimitedConfigsAnnotation extends HasShellOptio override val options = Seq( new ShellOption[String]( longOption = "legacy-configs", - toAnnotationSeq = a => Seq(new ConfigsAnnotation(a.split("_"))), + toAnnotationSeq = a => { + val split = a.split('.') + val packageNa...
sched: Fix a bug in sched_idle_on_core.
@@ -216,7 +216,7 @@ int sched_idle_on_core(uint32_t mwait_hint, unsigned int core) } /* setup the requested idle state */ - ksched_idle_hint(mwait_hint, core); + ksched_idle_hint(core, mwait_hint); /* issue the command to idle the core */ return __sched_run(s, NULL, core);
Optimize filter sync register list
@@ -102,8 +102,9 @@ int LMS7002M::TuneRxFilter(float_type rx_lpf_freq_RF) return ReportError(-1, "MCU error code(%i): %s", status, MCU_BD::MCUStatusMessage(status)); } //sync registers to cache - for (int a = 0x010c; a <= 0x0114; a++) this->SPI_read(a, true); - for (int a = 0x0115; a <= 0x011b; a++) this->SPI_read(a, t...
CI: Include quicklz in the Enterprise GPDB tarball
@@ -116,6 +116,14 @@ function include_zstd() { popd } +function include_quicklz() { + pushd ${GREENPLUM_INSTALL_DIR} + if [ "${TARGET_OS}" == "centos" ] ; then + cp /usr/lib64/libquicklz.so* lib/. + fi + popd +} + function export_gpdb() { TARBALL="${GPDB_ARTIFACTS_DIR}/${GPDB_BIN_FILENAME}" pushd ${GREENPLUM_INSTALL_DI...
system: fix brownout ISR triggering assert on single-core configs. ISR handler was incorrectly calling stall other cpu even on single core systems Closes
@@ -41,8 +41,14 @@ IRAM_ATTR static void rtc_brownout_isr_handler(void *arg) * cleared manually. */ brownout_hal_intr_clear(); + // Stop the other core. - esp_cpu_stall(!esp_cpu_get_core_id()); +#if !CONFIG_ESP_SYSTEM_SINGLE_CORE_MODE + const uint32_t core_id = esp_cpu_get_core_id(); + const uint32_t other_core_id = (c...
[kernel] same init behavior s in LagrangianDS
@@ -433,9 +433,7 @@ NewtonEulerDS::NewtonEulerDS(SP::SiconosVector Q0, SP::SiconosVector Twist0, void NewtonEulerDS::_init() { _p.resize(3); - _p[0].reset(new SiconosVector()); _p[1].reset(new SiconosVector(_n)); // Needed in NewtonEulerR - _p[2].reset(new SiconosVector()); _zeroPlugin(); //assert(0);
[numerics] add MPI comm & MUMPS id copy in NM_gemm
@@ -2271,6 +2271,11 @@ NumericsMatrix * NM_multiply(NumericsMatrix* A, NumericsMatrix* B) NumericsMatrix * C = NM_new(); + /* should we copy the whole internal data ? */ + /*NM_internalData_copy(A, C);*/ + NM_MPI_copy(A, C); + NM_MUMPS_copy(A, C); + /* At the time of writing, we are able to transform anything into NM_S...
Add all test-* files to .gitignore.
@@ -61,26 +61,7 @@ libyara/yara.pc .DS_Store # Files generated by tests -test-alignment -test-api -test-arena -test-arena-stream -test-async -test-atoms -test-bitmask -test-elf -test-exception -test-rules-pass-1 -test-rules-pass-2 -test-rules-pass-3 -test-rules.yarc -test-pb -test-pe -test-re-split -test-stack -test-ma...
don't auto-parse comments inside markdown
:: either a one-line header or a paragraph %. [p.u.lub yex] ?- p.cur - $rule (full ;~(pfix gay hrul)):parse + $rule (full ;~(pfix (punt whit) hrul)):parse $expr expr:parse $head head:parse @ para:parse :: [arbitrary *content*](url) :: %+ stag %link - ;~ (glue gay) + ;~ (glue (punt whit)) (ifix [sel ser] (cool (cash ser...
Hey Travis do you want to run?
@@ -61,7 +61,7 @@ before_script: - if [ "$CHECK" == "cppcheck" ]; then ./ci/build_cppcheck.sh; fi - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6'; fi script: - # Now build picoquic examples and test + # Now build picoquic examples and run tests - echo $CC - ech...
Add test for codelite libdirs
codelite.project.linker(cfg) test.capture [[ <Linker Required="yes" Options=""> + <LibraryPath Value="test"/> + <LibraryPath Value="test2"/> </Linker> ]] end
test/evp_test.c: Add check for OPENSSL_strdup As the potential failure of the OPENSSL_strdup(), it should be better to check the return value and return error if fails.
@@ -1256,7 +1256,7 @@ static int mac_test_parse(EVP_TEST *t, return parse_bin(value, &mdata->salt, &mdata->salt_len); if (strcmp(keyword, "Algorithm") == 0) { mdata->alg = OPENSSL_strdup(value); - if (!mdata->alg) + if (mdata->alg == NULL) return -1; return 1; } @@ -1268,9 +1268,13 @@ static int mac_test_parse(EVP_TEST...
test: qemu-debian-jessie boot: fix qemu-img We can just use whatever qemu-img binary that's laying around, including the distro one.
@@ -36,7 +36,7 @@ D=`mktemp --tmpdir debian-jessie-install.qcow2.XXXXXXXXXX` # In future we should do full install: # FIXME: -append "DEBIAN_FRONTEND=text locale=en_US keymap=us hostname=OPALtest domain=unassigned-domain rescue/enable=true" -$QEMU_PATH/../qemu-img create -f qcow2 $D 128G 2>&1 > $T +qemu-img create -f q...
[scripts] Echo warning when using with deprecated patches
@@ -10,6 +10,11 @@ if [[ ! -f $app ]]; then exit -1 fi +echo "This benchmark script and the patches it relies on have not been updated \ +to match the latest hardware changes!" +echo "Abort" +exit 1 + # Create log mailfile=email_$1
Draw studio popup after everything else Fixes
@@ -1769,8 +1769,6 @@ static void renderStudio() default: break; } - drawPopup(); - if(getConfig()->noSound) memset(tic->ram.registers, 0, sizeof tic->ram.registers); @@ -1911,6 +1909,8 @@ static void studioTick() } + drawPopup(); + impl.studio.text = '\0'; }
Refreshing of wallet balance is updated
@@ -88,8 +88,8 @@ struct connection_pool_data { uint8_t data_size; uint8_t block_size; struct pollfd connection_descriptor; - struct miner_pool_data *miner; // More than one connection may lead to the same miner, it is needed to track - int balance_sent; // this behaviour to avoid potential exploit of the service. + st...
oc_pstat: set POST response length to zero Tested-by: IoTivity Jenkins
@@ -511,6 +511,7 @@ post_pstat(oc_request_t *request, oc_interface_mask_t interface, void *data) int device = request->resource->device; if (oc_sec_decode_pstat(request->request_payload, false, device)) { oc_send_response(request, OC_STATUS_CHANGED); + request->response->response_buffer->response_length = 0; oc_sec_dum...
docu: small improvement
@@ -284,7 +284,7 @@ int keyIsBelowOrSame (const Key * key, const Key * check) /** - * Check if the key check is direct below the key key or not. + * Check whether the key `check` is directly below the key `key`. * @verbatim Example:
riscv/addrenv_shm: Add missing sanity check to up_shmdt() A missing sanity check, make sure the last level page table actually exists before trying to clear entries from it.
@@ -159,6 +159,10 @@ int up_shmdt(uintptr_t vaddr, unsigned int npages) paddr = mmu_pte_to_paddr(mmu_ln_getentry(ptlevel, ptprev, vaddr)); ptlast = riscv_pgvaddr(paddr); + if (!ptlast) + { + return -EFAULT; + } /* Then wipe the reference */
Adding brackets at IPv6 address When we get IPv6 address using inet_ntop, there are not include [(prefix) and ](suffix). So added them when we get IPv6 address. Tested-by: IoTivity Jenkins
@@ -1627,12 +1627,16 @@ oc_dns_lookup(const char *domain, oc_string_t *addr, enum transport_flags flags) int ret = getaddrinfo(domain, NULL, &hints, &result); if (ret == 0) { - char address[INET6_ADDRSTRLEN]; + char address[INET6_ADDRSTRLEN + 2] = { 0 }; const char *dest = NULL; if (flags & IPV6) { struct sockaddr_in6 ...
Fix trace with unicode for PY3TEST Fix trace with unicode for PY3TEST ISSUE: ([arc::pullid] 7bf16ed0-f1a048-df9eab7a-2cddc568)
@@ -14,6 +14,7 @@ import _pytest import _pytest.mark import signal import inspect +import six try: import resource @@ -699,7 +700,7 @@ class DeselectedTestItem(CustomTestItem): class TraceReportGenerator(object): def __init__(self, out_file_path): - self.File = open(out_file_path, 'w') + self.File = open(out_file_path,...
Fix v4l2 AVPacket memory leak on error Unref v4l2 AVPacket even if writing failed.
@@ -92,11 +92,11 @@ encode_and_write_frame(struct sc_v4l2_sink *vs, const AVFrame *frame) { // A packet was received bool ok = write_packet(vs, packet); + av_packet_unref(packet); if (!ok) { LOGW("Could not send packet to v4l2 sink"); return false; } - av_packet_unref(packet); } else if (ret != AVERROR(EAGAIN)) { LOGE(...
fix boundary case for _dictNextPower
@@ -940,7 +940,7 @@ static unsigned long _dictNextPower(unsigned long size) { unsigned long i = DICT_HT_INITIAL_SIZE; - if (size >= LONG_MAX) return LONG_MAX; + if (size >= LONG_MAX) return LONG_MAX + 1LU; while(1) { if (i >= size) return i;
sds: add type cast
@@ -300,7 +300,7 @@ flb_sds_t flb_sds_cat_utf8 (flb_sds_t *sds, const char *str, int str_len) cp = 0; for (b = 0; b < hex_bytes; b++) { p = (const unsigned char *) str + i + b; - if (p >= (str + str_len)) { + if (p >= (unsigned char *) (str + str_len)) { break; } ret = flb_utf8_decode(&state, &cp, *p);
graph-store: backup overwritten graphs to clay
=/ old-graph=(unit marked-graph:store) (~(get by graphs) resource) ?> (validate-graph graph mark) + =/ clay-backup=(list card) + ?~ old-graph ~ + =/ =wire + backup+(en-path:res resource) + =/ =update:store + [%0 now.bowl %add-graph resource p.u.old-graph q.u.old-graph %.y] + =/ =cage + graph-update+!>(update) + =/ =sob...
esp32c2: Remove assert check on len for SHA calculation
@@ -24,7 +24,11 @@ bootloader_sha256_handle_t bootloader_sha256_start() void bootloader_sha256_data(bootloader_sha256_handle_t handle, const void *data, size_t data_len) { assert(handle != NULL); - assert(data_len % 4 == 0); + /* C2 secure boot key field consists of 1 byte of curve identifier and 64 bytes of ECDSA publ...
VERSION bump version to 0.9.0
@@ -27,8 +27,8 @@ set(CMAKE_C_FLAGS_DEBUG "-g -O0") # set version set(LIBNETCONF2_MAJOR_VERSION 0) -set(LIBNETCONF2_MINOR_VERSION 8) -set(LIBNETCONF2_MICRO_VERSION 61) +set(LIBNETCONF2_MINOR_VERSION 9) +set(LIBNETCONF2_MICRO_VERSION 0) set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION}.${...
sim compiler: add -lm flag.
@@ -34,6 +34,7 @@ compiler.flags.debug: [compiler.flags.base, -O0] compiler.as.flags: [-x, assembler-with-cpp] compiler.ld.mapfile: false compiler.ld.binfile: false +compiler.ld.flags: -lm # Linux. compiler.flags.base.LINUX: >
Cellular test change only: fix wrong cast. When we moved to using uDeviceHandle_t there was a bit of test code under conditional compilation which wasn't updated properly, resulting in a compilation warning; now fixed.
@@ -421,7 +421,7 @@ static void powerSaving3gppCallback(uDeviceHandle_t cellHandle, bool onNotOff, int32_t periodicWakeupSeconds, void *pParameter) { - if (cellHandle != *((int32_t *) pParameter)) { + if (cellHandle != *((uDeviceHandle_t *) pParameter)) { gCallbackErrorCode = 2; }
test: format code style
@@ -27,7 +27,8 @@ int main(int argc, char **argv) } t_color.value = 0xffaa5500; Graph_FillRect(&g_src, t_color, NULL, false); - Logger_Info("%-20s%-20s%s\n", "image size\\method", "Graph_Zoom()", "Graph_ZoomBilinear()"); + Logger_Info("%-20s%-20s%s\n", "image size\\method", "Graph_Zoom()", + "Graph_ZoomBilinear()"); fo...
testcase/wifi_manager: WiFi Manager UTC bug fix Add mutex wait/send signal for scanning function Test functions to save/get/reset AP info in file system after the connection is successfully finished Modify return type verification for utc_wifi_manager_save_config_n
@@ -81,6 +81,7 @@ void wifi_scan_ap_done(wifi_manager_scan_info_s **scan_info, wifi_manager_scan_r */ if (res == WIFI_SCAN_FAIL) { printf("WiFi scan failed\n"); + WIFITEST_SIGNAL; return; } wifi_manager_scan_info_s *wifi_scan_iter = *scan_info; @@ -90,6 +91,7 @@ void wifi_scan_ap_done(wifi_manager_scan_info_s **scan_in...
Fix broken formatting Fixes:
@@ -13,7 +13,7 @@ also simple to reason about. The branches and their corresponding moons that comprise the stages of the release pipeline are: - +``` ---------------------------------------------------------------------------------------------- Branch | Moon | Target audience | Contains -------------------------------...
Fixed recursive reparsers to not dig: over.
|% ::TODO these first few should maybe make their way :: into the stdlib... + ++ re ::> recursive reparsers + |* {gar/* sef/_|.(fist)} + |= jon/json + ^- (unit _gar) + =- ~! gar ~! (need -) - + ((sef) jon) + :: ++ as ::> array as set |* a/fist (cu ~(gas in *(set _(need *a))) (ar a)) :: ++ dank ::> tank ^- $-(json (unit...
sdl/events: fix SDL_JoyBatteryEvent not defined when using SDL2 older than 2.24.0
@@ -162,6 +162,28 @@ typedef struct DropEvent #endif #define SDL_JOYBATTERYUPDATED (1543) + +#if !defined(SDL_JoystickPowerLevel) +typedef enum +{ + SDL_JOYSTICK_POWER_UNKNOWN = -1, + SDL_JOYSTICK_POWER_EMPTY, + SDL_JOYSTICK_POWER_LOW, + SDL_JOYSTICK_POWER_MEDIUM, + SDL_JOYSTICK_POWER_FULL, + SDL_JOYSTICK_POWER_WIRED, ...
Remove savedata.soundbits, savedata.soundrate from sound_start_playback() in PSP menu.c. This fixes compile error but I don't have a PSP to test functionality.
@@ -764,7 +764,7 @@ void menu(char *path) //getAllPreviews(); packfile_music_read(filelist, dListTotal); sound_init(12); - sound_start_playback(savedata.soundbits, savedata.soundrate); + sound_start_playback(); pControl = ControlMenu; drawMenu();
Validate parameters to XML_GetInputContext
@@ -2045,6 +2045,8 @@ const char * XMLCALL XML_GetInputContext(XML_Parser parser, int *offset, int *size) { #ifdef XML_CONTEXT_BYTES + if (parser == NULL || offset == NULL || size == NULL) + return NULL; if (eventPtr && buffer) { *offset = (int)(eventPtr - buffer); *size = (int)(bufferEnd - buffer);
bugfix for top level return.
#include "c_hash.h" -/***** Macros ***************************************************************/ -/* - Top-level return immediately stops the program (task) and - doesn't handle its arguments - */ -#define STOP_IF_TOPLEVEL() \ - do { \ - if( vm->callinfo_tail == NULL ) { \ - vm->flag_preemption = 1; \ - return -1; \...
Improved arrows for voice assistant
#define OC_MENU_DISK_IMAGE L" (dmg)" #define OC_MENU_EXTERNAL L" (external)" -#define OC_VOICE_OVER_IDLE_TIMEOUT_MS 500 ///< Experimental, less is problematic. +#define OC_VOICE_OVER_IDLE_TIMEOUT_MS 700 ///< Experimental, less is problematic. #define OC_VOICE_OVER_SIGNAL_NORMAL_MS 200 ///< From boot.efi, constant. #def...
SipHash: make it possible to control the hash size through string controls
@@ -167,6 +167,12 @@ static int pkey_siphash_ctrl_str(EVP_PKEY_CTX *ctx, { if (value == NULL) return 0; + if (strcmp(type, "digestsize") == 0) { + size_t hash_size = atoi(value); + + return pkey_siphash_ctrl(ctx, EVP_PKEY_CTRL_SET_DIGEST_SIZE, hash_size, + NULL); + } if (strcmp(type, "key") == 0) return EVP_PKEY_CTX_st...
fix focal-debsource
@@ -754,6 +754,8 @@ focal-debsource: distclean preparedeb @cat debian/rules.bck \ | sed s/^"export USE_CJSON_SO = 1"/"export USE_CJSON_SO = 0"/ \ > debian/rules + @chmod 755 debian/rules + dpkg-source -b . .PHONY: bionic-debsource bionic-debsource: distclean preparedeb
add shared library env for windows
@@ -299,7 +299,9 @@ function _target_addenvs(envs) if target:is_binary() then _addenvs(envs, "PATH", target:targetdir()) elseif target:is_shared() then - if is_host("macosx") then + if is_host("windows") then + _addenvs(envs, "PATH", target:targetdir()) + elseif is_host("macosx") then _addenvs(envs, "LD_LIBRARY_PATH", ...
HV: add volatile declaration to pointer parameter Add a volatile declaration to pointer parameter to avoid compiler to optimize it by using old value saved in register instead of accessing system memory. Acked-by: Eddie Dong
@@ -145,7 +145,7 @@ static inline int clz64(unsigned long value) * (*addr) |= (1UL<<nr); */ #define build_bitmap_set(name, lock, nr, addr) \ -static inline void name(int nr, unsigned long *addr) \ +static inline void name(int nr, volatile unsigned long *addr) \ { \ asm volatile(lock "orq %1,%0" \ : "+m" (*addr) \ @@ -1...
Fix key identifier passed in AAD of OSCOAP.
@@ -188,8 +188,14 @@ owerror_t openoscoap_protect_message( requestSeq = &partialIV[AES_CCM_16_64_128_IV_LEN - 2]; requestSeqLen = openoscoap_convert_sequence_number(sequenceNumber, &requestSeq); + if (is_request(code)) { requestKid = context->senderID; requestKidLen = context->senderIDLen; + } + else { + requestKid = c...
Update build-gtest.sh
@@ -6,6 +6,8 @@ if [ -f /etc/os-release ]; then source /etc/os-release # Use new Google Test on latest Ubuntu 20.04 : old one no longer compiles on 20 if [ "$VERSION_ID" == "20.04" ]; then + echo Running on Ubuntu 20.04 + echo Clone googletest from google/googletest:master ... rm -rf googletest git clone https://github...
Turn off norm scaling for acc
@@ -67,7 +67,7 @@ STRUCT_CONFIG_SECTION(SurviveKalmanTracker) STRUCT_CONFIG_ITEM("kalman-zvu-stationary", "", 1e-4, t->zvu_stationary_var) STRUCT_CONFIG_ITEM("kalman-zvu-no-light", "", 1e-4, t->zvu_no_light_var) - STRUCT_CONFIG_ITEM("imu-acc-norm-penalty", "", 1, t->acc_norm_penalty) + STRUCT_CONFIG_ITEM("imu-acc-norm-...
Validate that shared page tables are in-sync on task switch Add missing change to previous commit
@@ -202,16 +202,14 @@ void tasking_goto_task(task_small_t* new_task) { // Any time that page table is updated, we update all the users of the page table's allocation state bitmaps vmm_page_directory_t* vmm_kernel = boot_info_get()->vmm_kernel; vmm_page_directory_t* vmm_preempted = vmm_active_pdir(); - //vmm_validate_sh...
[CUDA] Fix max clock frequency
@@ -137,8 +137,6 @@ pocl_cuda_init (cl_device_id dev, const char *parameters) cuDeviceGetAttribute ((int *)&dev->max_compute_units, CU_DEVICE_ATTRIBUTE_MULTIPROCESSOR_COUNT, data->device); - cuDeviceGetAttribute ((int *)&dev->max_clock_frequency, - CU_DEVICE_ATTRIBUTE_CLOCK_RATE, data->device); cuDeviceGetAttribute ((i...
iokernel: numa policy fix for no hyperthreads
@@ -210,6 +210,7 @@ static unsigned int numa_choose_core(struct proc *p) DEFINE_BITMAP(core_subset, NCPU); /* first try to find a matching active hyperthread */ + if (!cfg.noht) { sched_for_each_allowed_core(core, tmp) { unsigned int sib = sched_siblings[core]; if (cores[core] != sd) @@ -220,6 +221,7 @@ static unsigned...
v2.0.18 landed
-ejdb2 (2.0.18) UNRELEASED; urgency=medium +ejdb2 (2.0.18) testing; urgency=medium * Limit one time file allocation step to 2G iowow v1.3.18 * Added Docker image (#249) * Better qsort_t detection, build ok with `musl` - -- Anton Adamansky <adamansky@gmail.com> Wed, 12 Jun 2019 00:49:49 +0700 + -- Anton Adamansky <adama...
reverted to old long-poll system but with 8 second fixed era length
{$poll p/{i/@uvH t/(list @uvH)}} {$spur p/spur} {$subs p/?($put $delt) q/{dock $json wire path}} - ::{$view p/ixor q/{$~ u/@ud}} - {$view p/ixor q/{$~ u/@ud} r/(unit @dr)} + {$view p/ixor q/{$~ u/@ud}} + ::{$view p/ixor q/{$~ u/@ud} r/(unit @dr)} == :: ++ perk-auth :: parsed auth (turn dep |=({a/@tas $~} (slav %uv a)))...
Add Debian Jessie support in toplevel makefile
@@ -43,6 +43,9 @@ DEB_DEPENDS += lcov chrpath autoconf nasm indent DEB_DEPENDS += python-all python-dev python-virtualenv python-pip libffi6 ifeq ($(OS_VERSION_ID),14.04) DEB_DEPENDS += openjdk-8-jdk-headless +else ifeq ($(OS_ID)-$(OS_VERSION_ID),debian-8) + DEB_DEPENDS += openjdk-8-jdk-headless + APT_ARGS = -t jessie-...
usecases: update template formatting
## Summary -Title: <Title, e.g. Authenticate> -Scope: <Scope, e.g. Authentication> -Level: <Level, e.g. User Goal> -Actors: <Actors, e.g. Anonymous User> -Brief: <Short explanation, e.g. User authenticates against the service to gain more privilegues> +- **Title:** <Title, e.g. Authenticate> +- **Scope:** <Scope, e.g. ...
Address deprecated time.clock()
@@ -56,6 +56,7 @@ class BartView(object): self.im = self.readcfl(self.cflname) self.im_unsqueeze_shape = np.where( np.array(self.im.shape) > 1 )[0] self.im = self.im.squeeze() + if sys.version_info.major==3 and sys.version_info.minor < 8: t1 = time.clock() # Reorder image
hw/drivers/lps33thw: Fix CLI build Broken by another build fix (4a82c33c) so fixing again. Now it should build fine with and without bus driver...
@@ -123,6 +123,7 @@ lps33thw_shell_cmd(int argc, char **argv) return lps33thw_shell_help(); } +#if MYNEWT_VAL(BUS_DRIVER_PRESENT) if (!g_sensor_itf.si_dev) { g_sensor_itf.si_dev = os_dev_open(MYNEWT_VAL(LPS33THW_SHELL_NODE_NAME), 0, NULL); @@ -133,6 +134,7 @@ lps33thw_shell_cmd(int argc, char **argv) return 0; } } +#en...
Fix formatting. Run make format.
@@ -422,8 +422,7 @@ static JanetSlot janetc_call(JanetFopts opts, JanetSlot *slots, JanetSlot fun) { /* Check for bad arity type if fun is a constant */ switch (janet_type(fun.constant)) { - case JANET_FUNCTION: - { + case JANET_FUNCTION: { JanetFunction *f = janet_unwrap_function(fun.constant); int32_t min = f->def->m...
add some prefix for doc urls to make BOT recognize the preview doc url
@@ -80,10 +80,13 @@ def main(): deploy(version, tarball_path, docs_path, docs_server) print("Docs URLs:") + doc_deploy_type = os.getenv('TYPE') for vurl in version_urls: + language, _, target = vurl.split('/') + tag = '{}_{}'.format(language, target) url = "{}/{}/index.html".format(url_base, vurl) # (index.html needed ...
Python: Specify language for code block in ReadMe
@@ -63,6 +63,7 @@ Access to **kdb** can be retrieved using the Python import An example script that prints some information for each method call would be: +```py class ElektraPlugin(object): def open(self, config, errorKey): print("Python script method 'open' called") @@ -83,6 +84,7 @@ An example script that prints som...
Ensure thread 0 always has work to do
@@ -68,8 +68,11 @@ int main(){ printf("Thread %d continuing into for loop\n", omp_get_thread_num()); fflush(stdout); - // on host: nowait is necessary to prevent an implicit barrier with the target region - #pragma omp for nowait schedule(dynamic) + // on host + // - nowait is necessary to prevent an implicit barrier w...
+test-send-rcv-message through %aver and timer cancellation
%- call:alice-core [~[/alice] *type %buzz ~doznec-doznec /g/talk [%first %post]] :: - ~& res1=-.res1 + ::~& res1=-.res1 :: =+ ^- [=lane:alef =blob:alef] =- ?> ?=([%give %send *] ->) %- call:bob-core [~[/bob] *type %hear lane blob] :: - ~& res2=-.res2 + ::~& res2=-.res2 :: - ~ + =. bob-core (+.res2 ~doznec-doznec 0xbeef...
docs: Git fix spelling
@@ -165,5 +165,5 @@ To resolve merge conflicts, edit the files that need to be merged manually. You ## Further resources -- [GIT Book](https://git-scm.com/book/en/v2) +- [Git Book](https://git-scm.com/book/en/v2) - [GitHub Docs](https://docs.github.com/en)
Update: narsese_to_english.py: Translation to English also for copulas
@@ -49,8 +49,8 @@ if "noColors" in sys.argv: narseseToEnglish_noColors() def narseseToEnglish(line): - line = line.rstrip().replace("#1","it").replace("$1","it").replace("#2","thing").replace("$2","thing") COLOR = GREEN + line = line.rstrip().replace("(! ", CYAN + "not " + COLOR).replace("#1","it").replace("$1","it").r...
interface: deduplicate InviteSearch results
@@ -395,7 +395,7 @@ export class InviteSearch extends Component< ); }); - const shipResults = state.searchResults.ships.map((ship) => { + const shipResults = Array.from(new Set(state.searchResults.ships)).map((ship) => { const nicknames = (this.state.contacts.get(ship) || []) .filter((e) => { return !(e === '');
android sdk 26 -> 29
@@ -8,13 +8,13 @@ else { } android { - compileSdkVersion 26 + compileSdkVersion 29 defaultConfig { if (buildAsApplication) { applicationId "com.nesbox.tic" } minSdkVersion 16 - targetSdkVersion 26 + targetSdkVersion 29 versionCode 9000 versionName "0.90.00" externalNativeBuild {
Examples: Do not ignore return value of `scanf`
#include <kdb.h> #include <stdio.h> +#include <stdlib.h> typedef enum { @@ -21,7 +22,11 @@ int showElektraErrorDialog (Key * parentKey, Key * problemKey) { printf ("dialog for %s and %s\n", keyName (parentKey), keyName (problemKey)); int a; - scanf ("%d", &a); + if (scanf ("%d", &a) != 1) + { + fprintf (stderr, "Unable...
raspberrypi0-wifi.conf: Use linux-firmware-raspbian package
@@ -6,7 +6,7 @@ DEFAULTTUNE ?= "arm1176jzfshf" require conf/machine/include/tune-arm1176jzf-s.inc include conf/machine/include/rpi-base.inc -MACHINE_EXTRA_RRECOMMENDS += "linux-firmware-bcm43430" +MACHINE_EXTRA_RRECOMMENDS += "linux-firmware-raspbian-bcm43430" SDIMG_KERNELIMAGE ?= "kernel.img" UBOOT_MACHINE ?= "rpi_0_w...
doc: remove Travis from release notes
@@ -156,25 +156,19 @@ you up to date with the multi-language support provided by Elektra. ## Infrastructure -### Cirrus - -- <<TODO>> -- <<TODO>> -- <<TODO>> - -### GitHub Actions +### Jenkins - <<TODO>> - <<TODO>> - <<TODO>> -### Jenkins +### Cirrus - <<TODO>> - <<TODO>> - <<TODO>> -### Travis +### GitHub Actions - <<...
examples/elf: Fix error: unused variable 'desc' [-Werror=unused-variable]
@@ -202,11 +202,13 @@ int main(int argc, FAR char *argv[]) { #ifdef CONFIG_EXAMPLES_ELF_FSREMOVEABLE struct stat buf; +#endif +#ifdef CONFIG_EXAMPLES_ELF_ROMFS + struct boardioc_romdisk_s desc; #endif FAR char *args[1]; int ret; int i; - struct boardioc_romdisk_s desc; /* Initialize the memory monitor */
Align with version 1.58 on cvsweb.openbsd.org
/* * ChaCha based random number generator for OpenBSD. */ -#define REKEY_BASE (1024*1024) //base 2 + #include <fcntl.h> #include <limits.h> #include <signal.h> #define BLOCKSZ 64 #define RSBUFSZ (16*BLOCKSZ) +#define REKEY_BASE (1024*1024) /* NB. should be a power of 2 */ + /* Marked MAP_INHERIT_ZERO, so zero'd out in ...
Apply fortmatting
@@ -14,7 +14,8 @@ typedef struct { int log_stdout; } od_arguments_t; -static enum { OD_OPT_CONSOLE = 10001, // >= than any utf symbol like -q -l etc +static enum { + OD_OPT_CONSOLE = 10001, // >= than any utf symbol like -q -l etc OD_OPT_SILENT, OD_OPT_VERBOSE, OD_OPT_LOG_STDOUT,
dice: dont print %failed logs in tx-effects
:: /- *dice /+ naive, *naive-transactions, ethereum, azimuth +:: verbose bit +:: +=| verb=? :: |% :: orp: ordered points in naive state by parent ship |= [=diff:naive nas=_nas indices=_indices] ?. ?=([%tx *] diff) [nas indices] =< [nas indices] - (apply-raw-tx | chain-t raw-tx.diff nas indices) + %- %*(. apply-raw-tx v...
Add 02 preffix to transaction
@@ -25,7 +25,7 @@ test("Transfer nanos eip1559", async () => { await sim.start(sim_options_nanos); let transport = await sim.getTransport(); - let buffer = Buffer.from("02058000002c8000003c800000000000000000000000f88d0101808207d0871000000000000094cccccccccccccccccccccccccccccccccccccccc80a4693c6139000000000000000000000...
Use PEERDIR instead of INTERNAL_RECURSE at JTEST_FOR(). Note: mandatory check (NEED_CHECK) was skipped
@@ -1672,7 +1672,7 @@ module TESTNG: JAVA_PLACEHOLDER { ### ### Documentation: https://wiki.yandex-team.ru/yatool/test/#testynajava module JTEST_FOR: JTEST { SET(MODULE_TYPE JTEST_FOR) - INTERNAL_RECURSE($UNITTEST_DIR) + PEERDIR($UNITTEST_DIR) SET(REALPRJNAME jtest) JAVA_TEST() }