message
stringlengths
6
474
diff
stringlengths
8
5.22k
Initialize marked_pid_zero_at_time in gp_replication unit test.
@@ -49,6 +49,12 @@ test_GetMirrorStatus_Pid_Zero(void **state) max_wal_senders = 1; WalSndCtl = &data; data.walsnds[0].pid = 0; + /* + * This would make sure Mirror is reported as DOWN, as grace period + * duration is taken into account. + */ + data.walsnds[0].marked_pid_zero_at_time = + ((pg_time_t) time(NULL)) - FTS_...
rune/libcontainer: Generate Enclave Device /dev/gsgx for graphene-sgx LibOS Support to automatically mount the /dev/gsgx to enclave container.
@@ -395,7 +395,7 @@ func createEnclaveDevices(devs []*configs.Device, etype string, fn func(dev *con func genEnclavePathTemplate(etype string) []string { switch etype { case configs.EnclaveHwIntelSgx: - return []string{"/dev/isgx", "/dev/sgx/enclave"} + return []string{"/dev/isgx", "/dev/sgx/enclave", "/dev/gsgx"} defa...
oc_obt discovery: explicitly check owned/un-owned
@@ -817,14 +817,18 @@ obt_check_owned(oc_client_response_t *data) { oc_remove_delayed_callback(data->user_data, free_device); - bool owned = false; + if (data->code >= OC_STATUS_BAD_REQUEST) { + return; + } + + int owned = -1; oc_rep_t *rep = data->payload; while (rep != NULL) { switch (rep->type) { case OC_REP_BOOL: i...
[ArgoBinding] fix remove observer
@@ -129,7 +129,7 @@ NSString *const kArgoConstString_Dot = @"."; NSObject<ArgoListenerProtocol> *object = (NSObject<ArgoListenerProtocol> *)self; [object removeListenerWithOBID:token.tokenID]; - for (int i = 1; i < paths.count; i++) { + for (int i = 0; i < paths.count; i++) { NSString *key = paths[i]; object = (id<Argo...
DOC:Fix typos in x509v3_config.pod CLA: trivial
@@ -60,7 +60,7 @@ The following sections describe each supported extension in detail. This is a multi valued extension which indicates whether a certificate is a CA certificate. The first (mandatory) name is B<CA> followed by B<TRUE> or -B<FALSE>. If B<CA> is B<TRUE> then an optional B<pathlen> name followed by an +B<F...
primus: modify fan rpm range BRANCH=none TEST=make -j BOARD=primus TEST=verified by thermal team
@@ -31,15 +31,12 @@ static const struct fan_conf fan_conf_0 = { }; /* - * TOOD(b/180681346): need to update for real fan - * - * Prototype fan spins at about 7200 RPM at 100% PWM. - * Set minimum at around 30% PWM. + * Set maximum rpm at 4800/ minimum rpm at 1800. */ static const struct fan_rpm fan_rpm_0 = { - .rpm_min...
client session BUGFIX do not write to NULL out
@@ -402,7 +402,7 @@ hostkey_not_known: break; case SSH_SERVER_ERROR: - fprintf(out, "SSH error: %s", ssh_get_error(session)); + ERR("SSH error: %s", ssh_get_error(session)); goto error; }
perf-tools/pdtoolkit: Revert "remove configure from %install (#624)" This reverts commit
@@ -61,6 +61,13 @@ make %{?_smp_mflags} %install %ohpc_setup_compiler +./configure -prefix=%buildroot%{install_path} \ +%if "%{compiler_family}" == "intel" + -icpc +%else + -GNU +%endif + export DONT_STRIP=1 make %{?_smp_mflags} install
remove unwanted argument to sprintf
@@ -22,7 +22,7 @@ func getStartUsage(version string) string { - Extraction of the filter input to /usr/lib/appscope/scope_filter or /tmp/appscope/scope_filter - Attach to all existing "allowed" processes defined in the filter file - Install etc/profile.d/scope.sh script to preload /usr/lib/appscope/%s/libscope.so if it...
machinarium: update system errno too on error
@@ -30,6 +30,9 @@ static inline void mm_errno_set(int value) { mm_scheduler_current(&mm_self->scheduler)->errno_ = value; + + /* update system errno as well */ + errno = value; } static inline int
core: updated the TLS management macros and added instance safe TLS initialization
#include <monkey/mk_info.h> +#define MK_INIT_INITIALIZE_TLS_UNIVERSAL() \ + /* mk_utils.c */ \ + pthread_key_create(&mk_utils_error_key, NULL); \ + /* mk_lib.c */ \ + pthread_key_create(&mk_server_fifo_key, NULL); + #ifdef MK_HAVE_C_TLS /* Use Compiler Thread Local Storage (TLS) */ /* mk_cache.c */ @@ -47,7 +53,10 @@ e...
VERSION bump to version 2.0.218
@@ -61,7 +61,7 @@ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) # set version of the project set(LIBYANG_MAJOR_VERSION 2) set(LIBYANG_MINOR_VERSION 0) -set(LIBYANG_MICRO_VERSION 217) +set(LIBYANG_MICRO_VERSION 218) set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION}...
dev-tools/hwloc: remove now-unused chmod that is commented out
@@ -98,9 +98,6 @@ autoreconf --force --install %install %{__make} install DESTDIR=%{buildroot} INSTALL="%{__install} -p" -#Fix wrong permition on file hwloc-assembler-remote => I have reported this to upstream already -#%{__chmod} 0755 %{buildroot}%{install_path}/bin/hwloc-assembler-remote - # We don't ship .la files. ...
external/stress_tool: remove unused variable remove unused variable
@@ -111,7 +111,6 @@ void _run_smoke(st_smoke *smoke) st_tc_result ret; st_func *unit = smoke->func; st_stability *stab = smoke->stability; - st_performance *perf = smoke->performance; print_smoke_title(smoke);
DEV: Basic cluster state, handle APS confirm
@@ -545,6 +545,14 @@ void DEV_BasicClusterStateHandler(Device *device, const Event &event) d->setState(DEV_GetDeviceDescriptionHandler); } } + else if (event.what() == REventApsConfirm) + { + Q_ASSERT(event.deviceKey() == device->key()); + if (d->readResult.apsReqId == EventApsConfirmId(event) && EventApsConfirmStatus(...
python test_table: update number messages
@@ -44,7 +44,7 @@ def test_table_count(): Test number of available messages to deserialize. """ - number_of_messages = 174 + number_of_messages = 182 assert len(_SBP_TABLE) == number_of_messages def test_table_unqiue_count():
nvmlSuccess default false
@@ -5,7 +5,7 @@ libnvml_loader nvml("libnvidia-ml.so.1"); nvmlReturn_t result; nvmlDevice_t nvidiaDevice; -bool nvmlSuccess; +bool nvmlSuccess = false; unsigned int nvidiaTemp; struct nvmlUtilization_st nvidiaUtilization;
re-ordered method
@@ -469,6 +469,14 @@ extern u16 windowWidthSft; */ void VDP_init(); +/** + * \brief + * Reset background plane and palette. + * + * Clear background plans, reset palette to grey / red / green / blue and reset scrolls. + */ +void VDP_resetScreen(); + /** * \brief * Get VDP register value. @@ -869,15 +877,7 @@ void VDP_w...
Small typo in manpage of x509(1) GH:
@@ -703,7 +703,7 @@ Display the "Subject Alternative Name" extension of a certificate: openssl x509 -in cert.pem -noout -ext subjectAltName -Display the more extensions of a certificate: +Display more extensions of a certificate: openssl x509 -in cert.pem -noout -ext subjectAltName,nsCertType
Updates comments in mbedtls_utils.c
/* - * Convert PEM to DER - * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * */ /** - * @file pem2der.c.c - * @brief Certificate conversion from PEM to DER format + * @file mbedtls_utils.c + * @brief Helper functions originating from mbedTLS. */ /* Standard includes....
Don't repeat tests iterscale times
@@ -578,7 +578,10 @@ bool proc_io_buffers(const char* (*codec_func)(wuffs_base__io_buffer*, } uint64_t n_bytes = 0; uint64_t i; - uint64_t iters = iters_unscaled * iterscale; + uint64_t iters = iters_unscaled; + if (bench) { + iters *= iterscale; + } for (i = 0; i < iters; i++) { got.meta.wi = 0; src.meta.ri = gt->src_...
[VFS] Use macro to control the aos uart instance - Add macro AOS_UART for the uart instance, this macro is uart_0 by default, application could define in board level to override it.
@@ -578,14 +578,18 @@ int aos_mkdir(const char *path) return ret; } -extern uart_dev_t uart_0; +#ifndef AOS_UART +#define AOS_UART uart_0 +#endif + +extern uart_dev_t AOS_UART; int32_t aos_uart_send(void *data, uint32_t size, uint32_t timeout) { - return hal_uart_send(&uart_0, data, size, timeout); + return hal_uart_se...
Fix header unit path in module mapper
@@ -36,11 +36,10 @@ function _get_module_mapper() return mapper_file end --- add a module or header unit into the mapper +-- add a module into the mapper -- -- e.g -- -fmodule-file=foo=build/.gens/Foo/rules/modules/cache/foo.ifc --- -fmodule-file=foo=build/.gens/Foo/rules/modules/cache/foo.ifc -- function _add_module_t...
Document nvm library is not threadsafe
* The version is formatted as MM.mm.hh.bbbb where MM is the 2-digit major version (00-99), mm is the 2-digit minor version (00-99), hh is the 2-digit hot fix number (00-99), and bbbb is the 4-digit build number (0000-9999). * The following C macros and interfaces are provided to retrieve the native API version informat...
daos: conditional compile daos_pool_connect A parameter is being removed from daos_pool_connect in an upcoming version. This conditionally compiles to work with both versions of daos.
@@ -132,8 +132,13 @@ int daos_connect( /* Connect to DAOS pool */ if (connect_pool) { daos_pool_info_t pool_info = {0}; +#if DAOS_API_VERSION_MAJOR < 1 rc = daos_pool_connect(pool_uuid, NULL, NULL, DAOS_PC_RW, poh, &pool_info, NULL); +#else + rc = daos_pool_connect(pool_uuid, NULL, DAOS_PC_RW, + poh, &pool_info, NULL);...
SOVERSION bump to version 2.24.4
@@ -66,7 +66,7 @@ set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_ # set version of the library set(LIBYANG_MAJOR_SOVERSION 2) set(LIBYANG_MINOR_SOVERSION 24) -set(LIBYANG_MICRO_SOVERSION 3) +set(LIBYANG_MICRO_SOVERSION 4) set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG_M...
(cargo-release) version 4.0.3
[package] name = "sbp2json" -version = "4.0.3-unreleased" +version = "4.0.3" description = "Rust native implementation of SBP (Swift Binary Protocol) to JSON conversion tools" authors = ["Swift Navigation <dev@swiftnav.com>"] edition = "2018" @@ -17,7 +17,7 @@ categories = ["parsing"] keywords = ["encoding", "parsing"]...
docs: include libibmad5 for sles/opa
@@ -7,7 +7,7 @@ support using base distro-provided drivers to the compute image. % ohpc_indent 5 \begin{lstlisting}[language=bash,literate={-}{-}1,keywords={},upquote=true] # Add OPA support and enable -[sms](*\#*) (*\chrootinstall*) opa-basic-tools +[sms](*\#*) (*\chrootinstall*) opa-basic-tools libibmad5 [sms](*\#*) ...
migrateGetSocket() cleanup.. I think parameter c is only useful to get client reply. Besides, other commands' host and port parameters may not be the at index 1 and 2.
@@ -6097,7 +6097,7 @@ migrateCachedSocket* migrateGetSocket(client *c, robj *host, robj *port, long ti /* Create the socket */ conn = server.tls_cluster ? connCreateTLS() : connCreateSocket(); - if (connBlockingConnect(conn, c->argv[1]->ptr, atoi(c->argv[2]->ptr), timeout) + if (connBlockingConnect(conn, host->ptr, ato...
Upgrade setup-java to v3
@@ -468,7 +468,7 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions/setup-java@v2 + - uses: actions/setup-java@v3 with: distribution: "adopt" java-version: ${{ matrix.java }}
analysis_enc.c: fix a dead store warning when threading is disabled; fixes: src/enc/analysis_enc.c:429:15: warning: Value stored to 'split_row' during its initialization is never read [deadcode.DeadStores] const int split_row = (9 * last_row + 15) >> 4; ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~
@@ -391,12 +391,14 @@ static int DoSegmentsJob(void* arg1, void* arg2) { return ok; } +#ifdef WEBP_USE_THREAD static void MergeJobs(const SegmentJob* const src, SegmentJob* const dst) { int i; for (i = 0; i <= MAX_ALPHA; ++i) dst->alphas[i] += src->alphas[i]; dst->alpha += src->alpha; dst->uv_alpha += src->uv_alpha; } ...
Change Perf Dashboard to Sheild
@@ -8,9 +8,7 @@ protocol. It is cross platform, written in C and designed to be a general purpos IETF Drafts: [Transport](https://tools.ietf.org/html/draft-ietf-quic-transport), [TLS](https://tools.ietf.org/html/draft-ietf-quic-tls), [Recovery](https://tools.ietf.org/html/draft-ietf-quic-recovery), [Datagram](https://t...
fix test register often fail error
@@ -447,10 +447,6 @@ static int32_t _core_http_recv_header(core_http_handle_t *http_handle, uint32_t if (timenow_ms > http_handle->sysdep->core_sysdep_time()) { timenow_ms = http_handle->sysdep->core_sysdep_time(); } - if (http_handle->sysdep->core_sysdep_time() - timenow_ms >= http_handle->recv_timeout_ms) { - res = S...
json BUGFIX logging info about unexpected character in JSON data There were several cases when an invalid character was detected and reported via error return code, but the error message was not logged.
@@ -117,11 +117,10 @@ lyjson_check_next(struct lyjson_ctx *jsonctx) if ((*jsonctx->in->current == ',') || (*jsonctx->in->current == ']')) { return LY_SUCCESS; } - } else { - LOGVAL(jsonctx->ctx, LYVE_SYNTAX, "Unexpected character \"%c\" after JSON %s.", - *jsonctx->in->current, lyjson_token2str(lyjson_ctx_status(jsonct...
changed logging for fail HE socked creation
@@ -5214,7 +5214,8 @@ neat_connect(struct neat_he_candidate *candidate, uv_poll_cb callback_fx) socket(candidate->pollable_socket->family, candidate->pollable_socket->type, protocol)) < 0) { - neat_log(ctx, NEAT_LOG_ERROR, "Failed to create he socket"); + neat_log(ctx, NEAT_LOG_DEBUG, "Failed to create he socket (famil...
foramt drv_clk
-#include "project.h" #include "binary.h" #include "defines.h" +#include "project.h" // the clock is already set, we turn pll off and set a new multiplier -void setclock(void) -{ +void setclock(void) { // turn on HSI RCC->CR |= 1; // wait for HSI ready - while((RCC->CR & RCC_CR_HSIRDY) == 0) - { + while ((RCC->CR & RCC...
meta-package contributions for centos/x86
@@ -6,7 +6,6 @@ ohpc-gnu7-io-libs Collection of IO library builds for use with GNU compiler tool ohpc-gnu7-mpich-parallel-libs Collection of parallel library builds for use with GNU compiler toolchain and the MPICH runtime ohpc-gnu7-mvapich2-parallel-libs Collection of parallel library builds for use with GNU compiler ...
increase liboidc-agent to 3
@@ -24,7 +24,7 @@ Depends: ${shlibs:Depends}, ${misc:Depends}, libmicrohttpd10 (>= 0.9.33) | libmicrohttpd12 (>=0.9.33), libseccomp2 (>=2.1.1), libsecret-1-0 (>= 0.18.4), - liboidc-agent2 (= ${binary:Version}) + liboidc-agent3 (= ${binary:Version}) Recommends: ssh-askpass | ssh-askpass-gnome Description: Commandline to...
Fixed a small spelling mistake Merges
@@ -93,10 +93,9 @@ A handler will never be called when disabled, while **its source may still be tr Sources attached to non-shared interrupt do not support this feature. -Though the framework support this feature, you have to use it *very carefully*. There usually exist 2 ways to stop a interrupt from being triggered: ...
haskell-build-fixes: cleanup travis cache before storing it
@@ -6,6 +6,13 @@ cache: $HOME/.cabal $HOME/elektra-cabal-sandbox +# don't cache our own libraries generated in the build +# so they always get rebuilt properly and to avoid init issues +before_cache: + - cd $HOME/elektra-cabal-sandbox + - cabal sandbox hc-pkg unregister spectranslator specelektra libfa libelektra-haske...
Allow examples to restrict their platforms in Makefile
@@ -85,6 +85,35 @@ else include $(target_makefile) endif +# Decide whether to build or to skip this target for this platform +ifneq ("", "$(PLATFORMS_ONLY)") + ifeq ("","$(filter $(TARGET), $(PLATFORMS_ONLY))") + PLATFORM_ACTION = skip + endif +endif + +ifneq ("", "$(PLATFORMS_EXCLUDE)") + ifneq ("","$(filter $(TARGET)...
misc/io: only warn for "incorrect" usage With options, opening an output for reading or an input for writing is clearly wrong. But with positional arguments, this can be legitimate, e.g. when overwriting a file: "bart slice 0 0 a.ra a.ra" is a legitimate use case. So for now, we just warn about it.
@@ -107,7 +107,7 @@ static void io_register(const char* name, bool out, bool open) } else { if (out != iop->out) - error("%s: Input opened for writing or output opened for reading!\n", name); + debug_printf(DP_WARN, "%s: Input opened for writing or output opened for reading (or overwriting file)!\n", name); iop->open =...
fix misbehavior system
@@ -1741,7 +1741,7 @@ void Misbehaving(NodeId pnode, int howmuch) { pn->nMisbehavior += howmuch; int banscore = GetArg("-banscore", 100); - if (pn->nMisbehavior >= banscore && pn->nMisbehavior - howmuch < banscore) + if (pn->nMisbehavior >= banscore) { printf("Misbehaving: %s (%d -> %d) BAN THRESHOLD EXCEEDED\n", pn->a...
pass in all args for rtl build
@@ -29,7 +29,7 @@ copy $LOCAL_VERILATOR_DIR/ $SERVER:$REMOTE_VERILATOR_DIR # enter the verisim directory and build the specific config on remote server run "cd $REMOTE_CHIPYARD_DIR && ./scripts/init-submodules-no-riscv-tools.sh" run "make -C $REMOTE_SIM_DIR clean" -run "export RISCV=\"$REMOTE_RISCV_DIR\"; make -C $REMO...
No use for strlen() in a loop
@@ -766,6 +766,7 @@ htp__callback_find_(evhtp_callbacks_t * cbs, unsigned int * start_offset, unsigned int * end_offset) { + size_t path_len; #ifndef EVHTP_DISABLE_REGEX regmatch_t pmatch[28]; #endif @@ -776,19 +777,16 @@ htp__callback_find_(evhtp_callbacks_t * cbs, return NULL; } + path_len = strlen(path); + TAILQ_FOR...
[Kernel] Correct the comments of DBG_ENABLE macro.
* header file. * * #define DBG_SECTION_NAME "[ MOD]" - * #define DEBUG_ENABLE // enable debug macro - * #define DEBUG_LEVEL DBG_INFO + * #define DBG_ENABLE // enable debug macro + * #define DBG_LEVEL DBG_INFO * #include <rtdbg.h> // must after of DEBUG_ENABLE or some other options * * Then in your C/C++ file, you can u...
Don't build ra-tls from top directory
.PHONY: all install clean uninstall package export INCLAVARE_CONTAINERS_VERSION := $(shell cat ./VERSION) -components := rune shim sgx-tools stub_enclave +components := rune shim sgx-tools dist_release_components := rune shim all:
it is enough to print signed (latest hcxpcaptool using custom pcapng) or not signed (older hcxpcaptool or third party capture tool or edited by third party thool)
@@ -543,7 +543,7 @@ void printcapstatus(char *pcaptype, char *pcapinname, int version_major, int ver int p; static char *hcxsignedinfo = "(signed)"; -static char *hcxunsignedinfo = "(not signed: old version or edited)"; +static char *hcxunsignedinfo = "(not signed)"; static char mintimestring[32]; static char maxtimest...
interop: Longer handshake timeout for multiconnect
@@ -51,7 +51,7 @@ if [ "$ROLE" == "client" ]; then REQUESTS=${REQS[@]:1} $CLIENT_BIN $CLIENT_ARGS $REQUESTS $CLIENT_PARAMS &>> $LOG elif [ "$TESTCASE" == "multiconnect" ]; then - CLIENT_ARGS="$CLIENT_ARGS --timeout=180s" + CLIENT_ARGS="$CLIENT_ARGS --timeout=180s --handshake-timeout=180s" for REQ in $REQUESTS; do echo ...
update vulkan-headers to 1.2.158-2
[wrap-file] directory = Vulkan-Headers-1.2.158 source_url = https://github.com/KhronosGroup/Vulkan-Headers/archive/v1.2.158.tar.gz -source_filename = v1.2.158.tar.gz +source_filename = vulkan-headers-1.2.158.tar.gz source_hash = 53361271cfe274df8782e1e47bdc9e61b7af432ba30acbfe31723f9df2c257f3 -patch_url = https://wrapd...
GM: using real ignition logic. Creedit to Jamezz
@@ -31,10 +31,11 @@ static void gm_rx_hook(CAN_FIFOMailBox_TypeDef *to_push) { addr = to_push->RIR >> 21; } - if (addr == 0x135 && bus_number == 0) { - //Gear selector (used for determining ignition) - int gear = to_push->RDLR & 0x7; - gm_ignition_started = gear > 0; //Park = 0. If out of park, we're "on." + if (addr =...
Whitelist Observe
@@ -65,7 +65,8 @@ static constexpr const char* s_cGlobalObjectsWhitelist[] = "WeakReference", "GetMod", "TweakDB", - "Override" + "Override", + "Observe" }; static constexpr const char* s_cGlobalTablesWhitelist[] =
[DOCS] - Replace aomp11 references with aomp13.
@@ -13,9 +13,9 @@ To build AOMP from source you must: 1. Install certain distribution packages, 2. ## Clone and Build AOMP ``` - cd $HOME ; mkdir -p git/aomp11 ; cd git/aomp11 + cd $HOME ; mkdir -p git/aomp13 ; cd git/aomp13 git clone https://github.com/rocm-developer-tools/aomp - cd $HOME/git/aomp11/aomp/bin + cd $HOM...
new dns seeds
@@ -1318,14 +1318,15 @@ void MapPort() // The second name should resolve to a list of seed addresses. static const char *strDNSSeed[][2] = { - {"seed.denariusexplorer.org", "seed.denariusexplorer.org"}, - {"107.181.154.106", "107.181.154.106"}, - {"chainz.cryptoid.info", "chainz.cryptoid.info"}, - {"hashbag.cc", "hashb...
Implement COMPILE_NLG macro in ymake.core.conf Instead of plugin-based implementation in
@@ -4102,6 +4102,16 @@ macro BUILD_PLNS(Src...) { .PEERDIR=kernel/relevfml library/sse } +### @usage: COMPILE_NLG(Src...) +### +### Generate and compile .nlg templates (Jinja2-based) and interface for megamind runtime. +### +### Alice-specific macro +macro COMPILE_NLG(Src...) { + PEERDIR(alice/nlg/runtime) + RUN_PROGRA...
+fresh-peer:+on-publ-full compiles
:: =. peers.ames-state (~(put by peers.ames-state) ship %known peer-state) event-core + :: +on-publ-sponsor: handle new or lost sponsor for peer + :: + :: TODO: handle sponsor loss :: ++ on-publ-sponsor |= [=ship sponsor=(unit ship)] ^+ event-core :: =/ =peer-state (got-peer-state ship) - :: TODO: handle sponsor loss :...
nimble/ll: Make sure there is no ADI field in AUX SCAN RSP This fixes LL/DDI/ADV/BV-25-C
@@ -1112,14 +1112,18 @@ ble_ll_adv_aux_calculate(struct ble_ll_adv_sm *advsm, aux->aux_data_offset = aux_data_offset; aux->aux_data_len = 0; aux->payload_len = 0; + aux->ext_hdr = 0; rem_aux_data_len = AUX_DATA_LEN(advsm) - aux_data_offset; chainable = !(advsm->props & BLE_HCI_LE_SET_EXT_ADV_PROP_CONNECTABLE); + hdr_le...
drivers/seclink: remove redundant " in Kconfig There is a typo in seclink Kconfig, three " in a line. This makes the warning as below: drivers/seclink/Kconfig:18:warning: multi-line strings not supported This commit removes redundant ".
@@ -15,7 +15,7 @@ if SECURITY_LINK_DRV source "$FRAMEWORK_DIR/src/seclink/Kconfig" config SECURITY_LINK_DRV_PROFILE - bool "Display security driver performance"" + bool "Display security driver performance" depends on TIMER default n ---help---
Improvements to the top of the code style config
+# Configuration options for Uncrustify specifying the Mbed TLS code style. +# +# Note: The code style represented by this file has not yet been introduced +# to Mbed TLS. +# # Copyright The Mbed TLS Contributors # SPDX-License-Identifier: Apache-2.0 # # See the License for the specific language governing permissions a...
Added sceLibMp4Recorder nids. Added sceLibMp4Recorder nids.
@@ -3067,6 +3067,23 @@ modules: unlink: 0x7BBCA340 kernel: false nid: 0x54 + SceLibMp4Recorder: + nid: 0x4AF7A4D1 + libraries: + SceLibMp4Recorder: + functions: + sceMp4RecCreateRecorder: 0x21053FDE + sceMp4RecAddAudioSample: 0x2C39D932 + sceMp4RecRecorderInit: 0x4045786D + sceMp4RecDeleteRecorder: 0x5EBA2AE2 + sceMp4R...
Fix `TemplateChooserTableViewController`
@@ -12,6 +12,9 @@ import UIKit class TemplateChooserTableViewController: UITableViewController, UIDocumentPickerDelegate { /// The function called to create the file. Passed from `UIDocumentBrowserViewController.documentBrowser(_:didRequestDocumentCreationWithHandler:)`. + var importHandler: ((URL?, UIDocumentBrowserVi...
stb: Enforce secure boot if called before libstb initialized
@@ -183,6 +183,7 @@ int secureboot_verify(enum resource_id id, void *buf, size_t len) if (!secure_init) { prlog(PR_WARNING, "container NOT VERIFIED, resource_id=%d " "secureboot not yet initialized\n", id); + secureboot_enforce(); return -1; }
Remove unsupported boards from CYpress manifest.
set( AFR_MANIFEST_SUPPORTED_BOARDS "CY8CKIT_064S0S2_4343W" - "CY8CPROTO_062_4343W" - "CY8CKIT_062S2_43012" - "CY8CKIT_062_WIFI_BT" CACHE INTERNAL "Supported boards list." ) @@ -14,8 +11,3 @@ set(AFR_MANIFEST_BOARD_DIR "boards") set(AFR_MANIFEST_BOARD_DIR_cypress43 "boards/CYW943907AEVAL1F") set(AFR_MANIFEST_BOARD_DIR_c...
Disable code style correction for bignum assembly The inline assembly defined in bn_mul.h confuses code style parsing, causing code style correction to fail. Disable code style correction for the whole section gated by "#if defined(MBEDTLS_HAVE_ASM)" to prevent this.
#endif /* bits in mbedtls_mpi_uint */ +/* *INDENT-OFF* */ #if defined(MBEDTLS_HAVE_ASM) -/* *INDENT-OFF* */ #ifndef asm #define asm __asm #endif -/* *INDENT-ON* */ /* armcc5 --gnu defines __GNUC__ but doesn't support GNU's extended asm */ #if defined(__GNUC__) && \ #endif /* MSVC */ #endif /* MBEDTLS_HAVE_ASM */ +/* *I...
M487: use macro for mac address length in main.c
#define mainLOGGING_TASK_STACK_SIZE ( configMINIMAL_STACK_SIZE * 5 ) #define mainLOGGING_MESSAGE_QUEUE_LENGTH ( 25 ) -extern uint8_t ucMACAddress[ 6 ]; +#if ( configENABLED_NETWORKS & AWSIOT_NETWORK_TYPE_ETH ) +extern uint8_t ucMACAddress[ ipMAC_ADDRESS_LENGTH_BYTES ]; +#endif /* The default IP and MAC address used by ...
Change to amend debug output
@@ -3754,8 +3754,9 @@ void DeRestPluginPrivate::checkSensorButtonEvent(Sensor *sensor, const deCONZ::A if (btnMapClusters.key(ind.clusterId()) != "") { - cluster = btnMapClusters.key(ind.clusterId()) + " (" + cluster + ")"; - QMap<QString, quint16> temp = btnMapClusterCommands.value(cluster); + QString val = btnMapClus...
VTL: Test against latest version of syslog_rfc5424_parser. The latest version moved to lark from pyparsing. The developers were kind enough to verify that their new grammar works with our tests.
@@ -10,4 +10,4 @@ pycodestyle # MIT (Expat license) https://pypi scapy==2.4.0; python_version >= '2.7' or python_version >= '3.4' # GPL2 https://github.com/secdev/scapy/blob/master/LICENSE six # MIT subprocess32 # PSF -syslog_rfc5424_parser>=0.2.0 # ISC +syslog_rfc5424_parser>=0.3.0 # ISC
sanitizers: if no request for sanitizers was made, allow for symbolization
"wrap_signals=0:print_stats=1" /* If no sanitzer support was requested, simply make it use abort() on errors */ -#define kSAN_REGULAR "abort_on_error=1:handle_segv=0:handle_sigbus=0:handle_abort=0:handle_sigill=0:handle_sigfpe=0:allocator_may_return_null=1:symbolize=0:detect_leaks=0:disable_coredump=0" +#define kSAN_RE...
doccords: dprint fix depth calculation stupid loobeans tripping me up
=+ hoon-type=(~(play ut sut) gen) =+ arm-prod=(arm-product-docs hoon-type name) ~? >> debug arm-prod - ^- [what what what] |^ - :: use arm-prod to determine how many layers to look into the type + :: check arm-prod to determine how many layers to look into the type :: for core docs - =/ depth=@ (add !=(~ +<.arm-prod) !...
test: add platon test case test_005ParametersSet_0001GetNonceFromNetworkSuccess fix the issue teambition task id
@@ -281,6 +281,26 @@ START_TEST(test_004ParametersInit_0011TxInitFailureLonghrp) } END_TEST +START_TEST(test_005ParametersSet_0001GetNonceFromNetworkSuccess) +{ + BSINT32 rtnVal; + BoatPlatONTx tx_ptr; + + BoatIotSdkInit(); + + rtnVal = platonWalletPrepare(); + ck_assert_int_eq(rtnVal, BOAT_SUCCESS); + + rtnVal = BoatP...
misc: checkstyle ignore .patch files in trailing whitespace check Type: fix
@@ -23,7 +23,7 @@ SUFFIX="-${CLANG_FORMAT_VER}" clang-format${SUFFIX} --version in=$(mktemp) -git diff ${GIT_DIFF_ARGS} > ${in} +git diff ${GIT_DIFF_ARGS} ':!*.patch' > ${in} line_count=$(sed -n '/^+.*\*INDENT-O[NF][F]\{0,1\}\*/p' ${in} | wc -l) if [ ${line_count} -gt 0 ] ; then
clk: fix regression in clock setting for SPIRAM with 80MHz config Support for HSPI to output clock for 4M SPIRAM introduced regression in clock configuration affecting SPIRAM access with 80MHz clock. This commit fixes the issue.
@@ -297,10 +297,10 @@ void esp_perip_clk_init(void) //a weird mode where clock to the peripheral is disabled but reset is also disabled, it 'hangs' //in a state where it outputs a continuous 80MHz signal. Mask its bit here because we should //not modify that state, regardless of what we calculated earlier. - if (!spico...
VERSION bump to version 2.0.219
@@ -61,7 +61,7 @@ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) # set version of the project set(LIBYANG_MAJOR_VERSION 2) set(LIBYANG_MINOR_VERSION 0) -set(LIBYANG_MICRO_VERSION 218) +set(LIBYANG_MICRO_VERSION 219) set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION}...
down-rev to 2.26.1 due to openmp runtime failures
Name: %{pname}-%{compiler_family}-%{mpi_family}%{PROJ_DELIM} -Version: 2.26.2p1 +Version: 2.26.1 Release: 1%{?dist} Summary: Tuning and Analysis Utilities Profiling Package License: Tuning and Analysis Utilities License
Fix the checks of EVP_PKEY_pairwise_check
@@ -399,7 +399,7 @@ static int test_fromdata_rsa(void) if (!TEST_int_gt(EVP_PKEY_check(key_ctx), 0) || !TEST_true(EVP_PKEY_public_check(key_ctx)) || !TEST_true(EVP_PKEY_private_check(key_ctx)) - || !TEST_true(EVP_PKEY_pairwise_check(key_ctx))) + || !TEST_int_gt(EVP_PKEY_pairwise_check(key_ctx), 0)) goto err; /* EVP_PKE...
Start migrating code to use `for x : iterable`. `in` is too good of a variable name to waste on a loop iterator specifier.
@@ -944,6 +944,8 @@ forstmt : Tfor optexprln loopcond optexprln block {$$ = mkloopstmt($1->loc, $2, $3, $4, $5);} | Tfor expr Tin exprln block {$$ = mkiterstmt($1->loc, $2, $4, $5);} + | Tfor expr Tcolon exprln block + {$$ = mkiterstmt($1->loc, $2, $4, $5);} | Tfor decl Tendln loopcond optexprln block { //Node *init; i...
Reformat CMake: Report errors of `cd` command
@@ -15,7 +15,10 @@ if [ -z "${CMAKE_FORMAT}" ] || [ "$CMAKE_FORMAT_VERSION" != "0.5.4" ]; then exit 1 fi -cd "$SOURCE" || exit 1 +cd "$SOURCE" || { + printf >&2 'Unable to change into source directory' + exit 1 +} output=$("${CMAKE_FORMAT}" 2>&1 CMakeLists.txt)
add brushed crazybee targets
{ "name": "crazybee_f4", "configurations": [ + { + "name": "brushed.frsky", + "defines": { + "BRUSHED_TARGET": "", + "RX_FRSKY_D8": "" + } + }, + { + "name": "brushed.redpine", + "defines": { + "BRUSHED_TARGET": "", + "RX_REDPINE": "" + } + }, { "name": "brushless.frsky", "defines": {
Added correct gyro cal for tracker
@@ -208,7 +208,8 @@ int survive_load_htc_config_format(SurviveObject *so, char *ct0conf, int len) { // From datasheet, can be 250, 500, 1000, 2000 deg/s range over 16 bits // FLT deg_per_sec = 250; if (so->gyro_scale) - scale3d(so->gyro_scale, so->gyro_scale, 3.14159 / 1800.); + scale3d(so->gyro_scale, so->gyro_scale, ...
increase MAC range to 0x10 and code cleanup
@@ -2107,10 +2107,9 @@ static char pskstring[PSKSTRING_LEN_MAX] = {}; me = macaddr &0xffffff; fprintf(fhout, "05%6d\n", me); - oui = macaddr &0xffffff000000L; -nic = (macaddr -0x0f) &0xffffffL; -for(c = 0; c < 0x10; c++) writebssid(fhout, oui +((nic +c) &0xffffffL)); +nic = (macaddr -0x10) &0xffffffL; +for(c = 0; c <= ...
Remove handling of KeyboardInterrupt exception KeyboardInterrupt exception is not handled anymore. It will be propagated and handled by the caller.
@@ -1041,7 +1041,6 @@ class BPF(object): fields (task, pid, cpu, flags, timestamp, msg) or None if no line was read (nonblocking=True) """ - try: while True: line = self.trace_readline(nonblocking) if not line and nonblocking: return (None,) * 6 @@ -1063,8 +1062,6 @@ class BPF(object): sym_end = line.find(b":") msg = l...
Fix state changes failing prematurely under rare conditions
@@ -107,7 +107,7 @@ StateChange::State StateChange::tick(Resource *r, deCONZ::ApsController *apsCtrl const auto readFunction = DA_GetReadFunction(ddfItem.readParameters); if (readFunction && ddfItem.isValid()) { - m_readResult = readFunction(r, item, apsCtrl, ddfItem.parseParameters); + m_readResult = readFunction(r, i...
exclude cjson and list from this package
@@ -6,7 +6,9 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all # USE CJSON # If set to 0 or 1 it will not use the shipped version, but the one # installed on the system instead -#export HAS_CJSON = 0 +USE_CJSON = 1 +USE_LIST = 1 + export BASEDIR = $(shell pwd)/debian/tmp export BIN_AFTER_INST_PATH = /usr
EVP: fix evp_keymgmt_util_match so that it actually tries cross export the other way if the first attempt fails Fixes CLA: trivial
@@ -370,7 +370,7 @@ int evp_keymgmt_util_match(EVP_PKEY *pk1, EVP_PKEY *pk2, int selection) * but also to determine if we should attempt a cross export * the other way. There's no point doing it both ways. */ - int ok = 1; + int ok = 0; /* Complex case, where the keymgmt differ */ if (keymgmt1 != NULL
fcrypt: update README.md Add an ASCIIcinema Link to the examples section.
@@ -94,6 +94,10 @@ But you can still access `/t/a` with `kdb get`: kdb get /t/a +If you are looking for a more interactive example, have a look at the following ASCIIcast at: + +[https://asciinema.org/a/136021](https://asciinema.org/a/136021) + ## Configuration ### Signatures
Whitspace and style changes.
@@ -502,7 +502,6 @@ static Janet cfun_string_pretty(int32_t argc, Janet *argv) { return janet_wrap_buffer(buffer); } - /* * code adapted from lua/lstrlib.c http://lua.org */ @@ -511,7 +510,11 @@ static Janet cfun_string_pretty(int32_t argc, Janet *argv) { #define FMT_FLAGS "-+ #0" #define MAX_FORMAT 32 -static const ch...
define WEBP_RESTRICT for MSVC __restrict is supported: + add a comment and simplify the __restrict__ check, clang defines __GNUC__
#include "src/dsp/dsp.h" #include "src/webp/types.h" -//------------------------------------------------------------------------------ -// restrict +#ifdef __cplusplus +extern "C" { +#endif -#if defined(__GNUC__) || defined(__clang__) +//------------------------------------------------------------------------------ +//...
android: adding randomization to camera file name
@@ -14,6 +14,7 @@ import java.util.Map; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.ArrayList; +import java.util.UUID; import android.annotation.SuppressLint; import android.app.Activity; @@ -49,7 +50,7 @@ import com.rho.camera.ICameraSingleton; public class Came...
Use sensor_strerror for sensor_reset error.
@@ -74,7 +74,10 @@ static mp_obj_t py_sensor__init__() static mp_obj_t py_sensor_reset() { - PY_ASSERT_FALSE_MSG(sensor_reset() != 0, "Reset Failed"); + int ret = sensor_reset(); + if (ret != 0) { + mp_raise_msg(&mp_type_RuntimeError, sensor_strerror(ret)); + } #if MICROPY_PY_IMU // +-10 degree dead-zone around pitch 9...
Updating prerequisite and boost lib name
@@ -129,7 +129,7 @@ The build has been tested on the following compilers: #### Dependencies -We strongly recommend to install most of the dependencies using the command `./install_dependencies.sh linux`, and help can be obtained with `./install_dependencies.sh --help`. Please install SQLite3 before running the script. ...
dnstap unbound-dnstap-sock, fixup signal handler exit.
@@ -957,8 +957,8 @@ int sig_quit = 0; /** signal handler for user quit */ static RETSIGTYPE main_sigh(int sig) { - if(!sig_base) return; verbose(VERB_ALGO, "exit on signal %d\n", sig); + if(sig_base) ub_event_base_loopexit(sig_base); sig_quit = 1; } @@ -996,6 +996,7 @@ setup_and_run(struct config_strlist_head* local_li...
Last second fix, base should not be in position format.
@@ -16460,9 +16460,9 @@ void draw_properties_entity(entity *entity, int offset_z, int color, s_drawmetho // XYZ output_label[DRAW_PROPERTIES_KEY_POS] = "X,Y,Z: "; output_value[DRAW_PROPERTIES_KEY_POS] = NULL; - str_size = snprintf(output_value[DRAW_PROPERTIES_KEY_POS], 0, output_format[DRAW_PROPERTIES_KEY_POS], (int)en...
cJSON: remove warning about prototype Some functions of cJSON did not have a prototype. This can sometimes cause a warning when building.
@@ -177,18 +177,18 @@ cJSON *cJSON_GetObjectItem(cJSON *object, const char *string); * Defined when cJSON_Parse() returns 0. 0 when cJSON_Parse() succeeds. */ -const char *cJSON_GetErrorPtr(); +const char *cJSON_GetErrorPtr(void); /* These calls create a cJSON item of the appropriate type. */ -cJSON *cJSON_CreateNull()...
Simplify platform CMake file
afr_module() set(inc_dir "${CMAKE_CURRENT_LIST_DIR}/include") +set(src_dir "${CMAKE_CURRENT_LIST_DIR}/freertos") set(test_dir "${CMAKE_CURRENT_LIST_DIR}/test") afr_module_sources( @@ -11,30 +12,6 @@ afr_module_sources( "${inc_dir}/platform/iot_network.h" "${inc_dir}/platform/iot_threads.h" "${inc_dir}/types/iot_platfor...
clarify the context
@@ -71,7 +71,7 @@ void rt_interrupt_enter(void) RT_OBJECT_HOOK_CALL(rt_interrupt_enter_hook,()); rt_hw_interrupt_enable(level); - RT_DEBUG_LOG(RT_DEBUG_IRQ, ("irq has come..., irq nest:%d\n", + RT_DEBUG_LOG(RT_DEBUG_IRQ, ("irq has come..., irq current nest:%d\n", rt_interrupt_nest)); } RTM_EXPORT(rt_interrupt_enter); @...
Corrected allocation size of HTTP response header.
@@ -626,8 +626,9 @@ nxt_h1p_request_header_send(nxt_task_t *task, nxt_http_request_t *r) status = &unknown_status; } - size = status->length + sizeof("\r\n"); - size += sizeof("\r\n"); /* Trailing CRLF. */ + size = status->length; + /* Trailing CRLF at the end of header. */ + size += sizeof("\r\n") - 1; http11 = (h1p->...
Dev user server with netconn updated comments
@@ -45,7 +45,7 @@ http_parse_uri(esp_pbuf_p p) { } pos_e = esp_pbuf_strfind(p, " ", pos_s + 1);/* Find second " " in request header */ if (pos_e == ESP_SIZET_MAX) { /* If there is no second " " */ - /** + /* * HTTP 0.9 request is "GET /\r\n" without * space between request URI and CRLF */
acl-plugin: the second and subsequent ACEs incorrect endianness when custom-dump and in VAT Add the missing function to convert the entire array of rules in the respective _endian functions, rather than just the first rule.
vl_print (handle, (char *)s); \ vec_free (s); +static inline void +vl_api_acl_rule_t_array_endian(vl_api_acl_rule_t *rules, u32 count) +{ + u32 i; + for(i=0; i<count; i++) { + vl_api_acl_rule_t_endian (&rules[i]); + } +} + +static inline void +vl_api_macip_acl_rule_t_array_endian(vl_api_macip_acl_rule_t *rules, u32 cou...
scarlet: Enable button command We'll need button command for FAFT. BRANCH=none TEST=confirm 'button' command is in 'help' command list Commit-Ready: Philip Chen Tested-by: Philip Chen
#define CONFIG_FORCE_CONSOLE_RESUME #define CONFIG_HOST_COMMAND_STATUS +/* Required for FAFT */ +#define CONFIG_CMD_BUTTON + /* By default, set hcdebug to off */ #undef CONFIG_HOSTCMD_DEBUG_MODE #define CONFIG_HOSTCMD_DEBUG_MODE HCDEBUG_OFF
Remove freeze menu check on Win10
@@ -679,7 +679,7 @@ VOID PhMwpInitializeProcessMenu( PhDestroyEMenuItem(item); } - if (PH_IS_REAL_PROCESS_ID(Processes[0]->ProcessId)) + if (WindowsVersion >= WINDOWS_11 && PH_IS_REAL_PROCESS_ID(Processes[0]->ProcessId)) { if (PhIsProcessStateFrozen(Processes[0]->ProcessId)) {