message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
add target for mips xbuild | @@ -267,7 +267,7 @@ jobs:
include:
- target: mips64el
triple: mips64el-linux-gnuabi64
- opts: DYNAMIC_ARCH=1
+ opts: DYNAMIC_ARCH=1 TARGET=GENERIC
- target: riscv64
triple: riscv64-linux-gnu
opts: TARGET=RISCV64_GENERIC
|
in_tail: use kv interface to query properties | #include <fluent-bit/flb_info.h>
#include <fluent-bit/flb_config.h>
+#include <fluent-bit/flb_kv.h>
#include "tail_config.h"
#include "tail_multiline.h"
@@ -49,7 +50,7 @@ int flb_tail_mult_create(struct flb_tail_config *ctx,
const char *tmp;
struct mk_list *head;
struct flb_parser *parser;
- struct flb_config_prop *p;
... |
zephyr/subsys/ap_pwrseq/include/ap_power_host_sleep.h: Format with clang-format
BRANCH=none
TEST=none | @@ -22,8 +22,8 @@ void ap_power_set_active_wake_mask(void);
*
* @return 0 for success; -EINVAL if power state is not S3/S5/S0ix
*/
-int ap_power_get_lazy_wake_mask(
- enum power_states_ndsx state, host_event_t *mask);
+int ap_power_get_lazy_wake_mask(enum power_states_ndsx state,
+ host_event_t *mask);
#if CONFIG_AP_PW... |
Fix copy/paste mistake in ev/take docs | @@ -735,7 +735,7 @@ JANET_CORE_FN(cfun_channel_push,
JANET_CORE_FN(cfun_channel_pop,
"(ev/take channel)",
- "Write a value to a channel, suspending the current fiber if the channel is full."
+ "Read from a channel, suspending the current fiber if no value is available."
) {
janet_fixarity(argc, 1);
JanetChannel *channe... |
chip/host/system.c: Format with clang-format
BRANCH=none
TEST=none | @@ -44,8 +44,7 @@ static void ramdata_get_persistent(void)
FILE *f = get_persistent_storage("ramdata", "rb");
if ((f == NULL) || (fread(__ram_data, RAM_DATA_SIZE, 1, f) != 1)) {
- fprintf(stderr,
- "No RAM data found. Initializing to 0x00.\n");
+ fprintf(stderr, "No RAM data found. Initializing to 0x00.\n");
memset(__r... |
[chainmaker][#428]check parammters Null pointer | @@ -266,7 +266,7 @@ BOAT_RESULT BoatHlChainmakerTxInit(const BoatHlchainmakerWallet* wallet_ptr, BCH
BUINT32 stringLen;
BOAT_RESULT result = BOAT_SUCCESS;
- if ((tx_ptr == NULL) || (wallet_ptr == NULL))
+ if ((tx_ptr == NULL) || (wallet_ptr == NULL) || (chain_id == NULL) || (org_id == NULL))
{
BoatLog(BOAT_LOG_CRITICAL... |
test/cec.c: Format with clang-format
BRANCH=none
TEST=none | @@ -18,7 +18,6 @@ struct overflow_msg {
BUILD_ASSERT(offsetof(struct overflow_msg, overflow_detector) ==
offsetof(struct cec_msg_transfer, buf) + MAX_CEC_MSG_LEN);
-
struct overflow_queue {
struct cec_rx_queue queue;
uint8_t overflow_detector[CEC_RX_BUFFER_SIZE];
@@ -60,8 +59,6 @@ static int test_msg_overflow(void)
ret... |
Fixed state transitions for the HTML version of the life_cycle-kdf.pod.
The MAN version was fine and so are kdf.dot and lifecycles.ods from doc/life-cycles
CLA: trivial | @@ -103,19 +103,19 @@ This is the canonical list.
<td style="border:1px solid"></td></tr>
<tr><th style="border:1px solid" align="left">EVP_KDF_derive</th>
<td style="border:1px solid" align="center"></td>
- <td style="border:1px solid" align="center">newed</td>
<td style="border:1px solid" align="center">deriving</td>... |
Remove redundant cst duplication when per cc obj is disabled | @@ -425,8 +425,8 @@ PlutoConstraints *get_permutability_constraints(PlutoProg *prog) {
}
/* Subsequent calls can just use the old ones */
- PlutoConstraints *newcst = pluto_constraints_dup(dep->cst);
if (options->per_cc_obj) {
+ PlutoConstraints *newcst = pluto_constraints_dup(dep->cst);
int num_cols_to_add = (npar + 1... |
Fixed issues in pack manifest file. | @@ -35,9 +35,10 @@ glob:
- CMSIS/Pack/**/*
- CMSIS/RTOS/**/*
- CMSIS/RTOS2/**/*
- - CMSIS/Utilities/ARM_Example.*: CMSIS/SVD/
+ - CMSIS/Utilities/ARM_Example.*: CMSIS/SVD/ARM_Example.
- CMSIS/Utilities/CMSIS-SVD.xsd
- CMSIS/Utilities/PACK.xsd
+ - CMSIS/Utilities/PackIndex.xsd
- CMSIS/Utilities/Win32/**/*
- CMSIS/Utilit... |
feat: add source to actor-gen | @@ -14,7 +14,8 @@ SPECS_H := $(SPECS:%.json=%.h)
ACTOR_GEN_SRC = common/orka-utils.c common/json-actor.c \
common/ntl.c common/json-string.c common/json-scanf.c \
- common/json-printf.c test/test-json-struct-gen.c
+ common/json-struct.c common/json-printf.c \
+ test/test-json-struct-gen.c
ACTOR_GEN_OBJS := $(ACTOR_GEN_... |
ble_mesh: stack: Add a check if the appkey is bound to the model.
For case MESH/NODE/CFG/MP/BI-03-C | @@ -197,6 +197,21 @@ static bool app_key_is_valid(uint16_t app_idx)
return false;
}
+static bool mod_pub_app_key_bound(struct bt_mesh_model *model,
+ uint16_t app_idx)
+{
+ int i;
+
+ for (i = 0; i < ARRAY_SIZE(model->keys); i++) {
+ if (model->keys[i] == app_idx) {
+ return true;
+ }
+ }
+
+ BT_ERR("Appkey(0x%02x) not... |
Add 'WriteFlag::kWriteNoEscapeSlashFlag' to rapidjson
[1]
[2]
Note: mandatory check (NEED_CHECK) was skipped | @@ -66,6 +66,7 @@ enum WriteFlag {
kWriteNoFlags = 0, //!< No flags are set.
kWriteValidateEncodingFlag = 1, //!< Validate encoding of JSON strings.
kWriteNanAndInfFlag = 2, //!< Allow writing of Infinity, -Infinity and NaN.
+ kWriteNoEscapeSlashFlag = 4, //!< Disable escaping of '/'.
kWriteDefaultFlags = RAPIDJSON_WRI... |
tests: prime ford %reef cache | ::
=/ test-pit=vase !>(..zuse)
=/ ford-gate (ford-vane test-pit)
-:: load %reef into .ford-gate so we don't have to rerun it on each test
+:: prime %reef cache in .ford-gate so we don't have to rebuild the kernel
::
-=< ~& %test-reef-loading
+=< ~& %test-reef-priming
+ =/ co (by-clock:contain compiler-cache-key:ford-ga... |
tools: Add a script to fix up empty prototypes | @@ -39,6 +39,7 @@ tools/ci/check_idf_version.sh
tools/ci/check_ut_cmake_make.sh
tools/ci/checkout_project_ref.py
tools/ci/envsubst.py
+tools/ci/fix_empty_prototypes.sh
tools/ci/get-full-sources.sh
tools/ci/get_supported_examples.sh
tools/ci/mirror-submodule-update.sh
|
Build: Use new-style syntax in link-libraries
Migrate to new syntax where the PUBLIC attribute is explicitly defined.
Avoids issues caused sometimes where cmake does not allow the mixing of
old-style and new-style syntax | @@ -180,29 +180,29 @@ endif()
if(USE_STATIC_MBEDTLS_LIBRARY)
add_library(${mbedcrypto_static_target} STATIC ${src_crypto})
set_target_properties(${mbedcrypto_static_target} PROPERTIES OUTPUT_NAME mbedcrypto)
- target_link_libraries(${mbedcrypto_static_target} ${libs})
+ target_link_libraries(${mbedcrypto_static_target}... |
examples/apache: disable compilation of test/httpdunit | @@ -42,6 +42,19 @@ index 0000000..6fbf9e9
+
+make -j`nproc`
+make install
+diff --git a/configure.in b/configure.in
+index ef7bd02..27fca57 100644
+--- a/configure.in
++++ b/configure.in
+@@ -712,7 +712,7 @@ AC_MSG_CHECKING([for Check to enable unit tests])
+ if test "x$PKGCONFIG" != "x" && `$PKGCONFIG --atleast-versio... |
Use list to search for WAL segments to preserve in queueNeed().
The regular expression predates strLstFind() on sorted lists. Using the list is both simpler and faster. | @@ -309,15 +309,13 @@ queueNeed(const String *walSegment, bool found, uint64_t queueSize, size_t walSe
walSegmentQueueTotal = 2;
// Build the ideal queue -- the WAL segments we want in the queue after the async process has run
- StringList *idealQueue = walSegmentRange(walSegmentFirst, walSegmentSize, pgVersion, walSeg... |
fixed compilation error on some platforms (missing parameter name) | @@ -401,8 +401,8 @@ static void updateEditor(Code* code)
static inline bool islineend(char c) {return c == '\n' || c == '\0';}
static inline bool isalpha_(char c) {return isalpha(c) || c == '_';}
-static inline bool isopenparen_(Code*, char c) {return c == '(' || c == '{' || c == '[';}
-static inline bool iscloseparen_... |
on_req_body_done, simplify by moving the ack before consume | @@ -374,7 +374,6 @@ static int write_body_chunk(void *priv, h2o_iovec_t body_chunk, int is_end, h2o_
static void on_req_body_done(h2o_socket_t *sock, const char *err)
{
struct st_h2o_http1client_private_t *client = sock->data;
- size_t to_ack = 0;
if (err) {
on_send_request(client->super.sock, err);
@@ -382,21 +381,17 ... |
resolver: cleanup | @@ -586,7 +586,7 @@ int ELEKTRA_PLUGIN_FUNCTION (get) (Plugin * handle, KeySet * returned, Key * par
pk->mtime.tv_nsec = ELEKTRA_STAT_NANO_SECONDS (buf);
/* Persist modification times for cache */
- if ((global = elektraPluginGetGlobalKeySet (handle)) != NULL)
+ if (global != NULL)
{
ELEKTRA_LOG_DEBUG ("global-cache: a... |
Protecting the response. | @@ -67,10 +67,12 @@ void opencoap_receive(OpenQueueEntry_t* msg) {
uint8_t rcvdKidLen;
oscoap_security_context_t* blindContext;
coap_code_t securityReturnCode;
+ coap_option_class_t class;
// init options len
coap_incomingOptionsLen = MAX_COAP_OPTIONS;
coap_outgoingOptionsLen = 0;
+ class = COAP_OPTION_CLASS_ALL;
// in... |
DH_check_pub_key_ex was accidentally calling DH_check,
so results were undefined. | @@ -176,7 +176,8 @@ int DH_check_pub_key_ex(const DH *dh, const BIGNUM *pub_key)
{
int errflags = 0;
- (void)DH_check(dh, &errflags);
+ if (!DH_check_pub_key(dh, pub_key, &errflags))
+ return 0;
if ((errflags & DH_CHECK_PUBKEY_TOO_SMALL) != 0)
DHerr(DH_F_DH_CHECK_PUB_KEY_EX, DH_R_CHECK_PUBKEY_TOO_SMALL);
|
Added test for time pick's return value. | # Alister Maguire, Tue Oct 17 16:54:48 PDT 2017
# Added TestPickRangeTimeQuery
#
+# Alister Maguire, Wed May 9 10:13:26 PDT 2018
+# Added TestReturnValue.
+#
# ----------------------------------------------------------------------------
RequiredDatabasePlugin(("PDB", "Mili", "SAMRAI"))
@@ -649,6 +652,24 @@ def TestPick... |
filter_lua: fix null dereference (CID 183996) | @@ -64,6 +64,7 @@ struct lua_filter *lua_config_create(struct flb_filter_instance *ins,
flb_free(lf);
return NULL;
}
+ script = tmp;
/* Compose path */
ret = stat(tmp, &st);
@@ -79,9 +80,6 @@ struct lua_filter *lua_config_create(struct flb_filter_instance *ins,
script = buf;
}
}
- else {
- script = tmp;
- }
/* Validate... |
Fixed formatting of sign-extended immediate operands | @@ -468,11 +468,8 @@ static ZydisStatus ZydisFormatterPrintImmediateIntel(ZydisInstructionFormatter*
return ZYDIS_STATUS_INVALID_PARAMETER;
}
}
- switch (operand->size)
+ switch (info->operandSize)
{
- case 8:
- return ZydisStringBufferAppendFormat(buffer, bufferLen,
- ZYDIS_STRBUF_APPEND_MODE_DEFAULT, "0x%02"PRIX8, op... |
Add more ScePower NIDs | @@ -4100,6 +4100,9 @@ modules:
kscePowerGetWakeupFactor: 0x9F26222A
kscePowerRequestColdReset: 0x0442D852
kscePowerRequestHibernate: 0x08951418
+ kscePowerRequestSoftReset: 0x2875994B
+ kscePowerRequestStandby: 0x2B7C7CF4
+ kscePowerRequestSuspend: 0xAC32C9CC
kscePowerSetBatteryFakeStatus: 0x0C6973B8
kscePowerSetMipsCl... |
Ignore build output | @@ -333,3 +333,17 @@ ASALocalRun/
# Object files and other build cruft
*.o
lib32blit.a
+
+build.*/
+build/
+
+# STM32 CubeMX Project Output (should be manually synced to 32blit-stm32 tree)
+.vscode/
+hardware/.mxproject
+hardware/Drivers/
+hardware/Inc/
+hardware/Makefile
+hardware/Middlewares/
+hardware/STM32H750VBTx_... |
test_usart: Add manually generated test-cases.
Add a test checking that usart_frame.c is able to
properly decode a few packets, without the additional complexity
of random payloads etc., to make sure that the test itself is working as
expected. | @@ -34,7 +34,9 @@ bool __wrap_usb_processing_enqueue(
uint32_t cid)
{
check_expected(ctx);
+ if (length > 0) {
check_expected(buf);
+ }
check_expected(length);
check_expected(cmd);
(void)cid;
@@ -240,6 +242,32 @@ static void test_short_msgs(void** state)
usart_frame_process_rx(short_msgs, sizeof(short_msgs));
}
+/**
+ ... |
Fix builds which disabled C++11.
Fixed template used in R typemaps.
Disable Octave if C++11 is disabled | @@ -744,6 +744,13 @@ if(TINYSPLINE_CXX_AVAILABLE AND TARGET_SUPPORTS_SHARED_LIBS)
unset(OCTAVE_VERSION_STRING)
unset(OCTAVE_INCLUDE_DIRS)
unset(OCTAVE_LIBRARIES)
+ elseif(TINYSPLINE_DISABLE_CXX11_FEATURES)
+ message(STATUS "Octave requires C++11")
+ # Clear Octave related variables used in summary.
+ set(OCTAVE_FOUND F... |
bump adios to v1.12.0 | Summary: The Adaptable IO System (ADIOS)
Name: %{pname}-%{compiler_family}-%{mpi_family}%{PROJ_DELIM}
-Version: 1.11.0
+Version: 1.12.0
Release: 1%{?dist}
License: BSD-3-Clause
Group: %{PROJ_NAME}/io-libs
|
ssc: fixed errors test | @@ -140,8 +140,11 @@ def test_tkkssc_errors():
# No normalization for number counts profile
with pytest.raises(ValueError):
ccl.halos.halomod_Tk3D_SSC(COSMO, hmc, P2, normprof1=False)
+ with pytest.raises(ValueError):
ccl.halos.halomod_Tk3D_SSC(COSMO, hmc, P1, prof2=P2, normprof2=False)
+ with pytest.raises(ValueError)... |
fib: fib_entry_flags_update takes a vector of paths
Type: fix
Fixes: | @@ -1608,7 +1608,6 @@ fib_entry_src_action_path_swap (fib_entry_t *fib_entry,
{
fib_node_index_t old_path_list, fib_entry_index;
fib_path_list_flags_t pl_flags;
- const fib_route_path_t *rpath;
fib_entry_src_t *esrc;
esrc = fib_entry_src_find(fib_entry, source);
@@ -1655,10 +1654,7 @@ fib_entry_src_action_path_swap (fi... |
Fix for stream reuse, fix linking when touching the
tcp_reuse LRU list. | @@ -753,6 +753,9 @@ reuse_tcp_lru_touch(struct outside_network* outnet, struct reuse_tcp* reuse)
/* insert at the front */
reuse->lru_prev = NULL;
reuse->lru_next = outnet->tcp_reuse_first;
+ if(outnet->tcp_reuse_first) {
+ outnet->tcp_reuse_first->lru_prev = reuse;
+ }
log_assert(reuse->lru_next != reuse);
/* since it... |
Fixup init-vlsi.sh | +#!/usr/bin/env bash
+# exit script if any command fails
+set -e
+set -o pipefail
+
+
+
# Initialize HAMMER and CAD-plugins
git submodule update --init --recursive vlsi/hammer
git submodule update --init --recursive vlsi/hammer-cad-plugins
|
ames: kill timers on breach | :: Abandon all pretense of continuity and delete all messaging state
:: associated with .ship, including sent and unsent messages.
::
- :: TODO: cancel all timers? otherwise we'll get spurious firings
- :: from behn
- ::
- :: TODO: cancel gall subscriptions on breach
- ::
++ on-publ-breach
|= =ship
^+ event-core
::
=/ ... |
Fix environment variable configuration in FAQ
In bash, the variable is set using "export". | @@ -103,7 +103,7 @@ You could overwrite the `adb` binary in the other program, or ask _scrcpy_ to
use a specific `adb` binary, by setting the `ADB` environment variable:
```bash
-set ADB=/path/to/your/adb
+export ADB=/path/to/your/adb
scrcpy
```
|
t: test the response header probe | @@ -50,10 +50,11 @@ if ($tracer_pid == 0) {
open STDOUT, ">", "$tempdir/trace.out"
or die "failed to create temporary file:$tempdir/trace.out:$!";
if ($^O eq 'linux') {
- exec qw(bpftrace -v -B none -p), $server->{pid}, "-e", <<'EOT';
+ exec qw(bpftrace -B none -p), $server->{pid}, "-e", <<'EOT';
usdt::h2o:receive_requ... |
Fix PhCreateNamedPipe error on Win7 | @@ -6562,7 +6562,7 @@ NTSTATUS PhCreateNamedPipe(
)
{
NTSTATUS status;
- PACL pipeAcl;
+ PACL pipeAcl = NULL;
HANDLE pipeHandle;
PPH_STRING pipeName;
LARGE_INTEGER pipeTimeout;
@@ -6588,7 +6588,6 @@ NTSTATUS PhCreateNamedPipe(
RtlCreateSecurityDescriptor(&securityDescriptor, SECURITY_DESCRIPTOR_REVISION);
RtlSetDaclSec... |
refactor add/sub code | @@ -854,18 +854,6 @@ static void mangle_AddSubPrintable(run_t* run) {
util_turnToPrintable((uint8_t *)&run->dynamicFile[off], varLen);
}
-static void addPrintable(uint8_t *byte) {
- *byte = ((*byte) - 32 + 1) % 95 + 32;
-}
-
-static void decPrintable(uint8_t *byte) {
- *byte = ((*byte) - 32 + 94) % 95 + 32;
-}
-
-stati... |
Update list of US Letter countries. | @@ -169,12 +169,18 @@ papplLocGetDefaultMediaSizeName(void)
if ((country = strchr(name, '_')) != NULL)
{
- // Argentina (AR), Brazil (BR), Canada (CA), Chile (CL), Colombia (CO),
- // Mexico (MX), Phillippines (PH), Puerto Rico (PR), USA (US), and
- // Venezuela (VE) all apparently mostly use US Letter these days, ever... |
Fix qlog .raw.length | @@ -690,12 +690,12 @@ static void qlog_pkt_write_end(ngtcp2_qlog *qlog, const ngtcp2_pkt_hd *hd,
}
/*
- * ],"header":,"raw":{"packet_size":0000000000000000000}}}
+ * ],"header":,"raw":{"length":0000000000000000000}}}
*
* plus, terminating LF
*/
#define NGTCP2_QLOG_PKT_WRITE_END_OVERHEAD \
- (1 + 55 + NGTCP2_QLOG_PKT_HD... |
fixup larger than 2**31 case. | @@ -1235,7 +1235,11 @@ subtract_1918(uint32_t a, uint32_t b)
if(a < b && b - a < cutoff) {
return b-a;
}
- return a-b;
+ if(a > b && a - b > cutoff) {
+ return ((uint32_t)0xffffffff) - (a-b);
+ }
+ /* wrong case, b smaller than a */
+ return 0;
}
/** check rrsig dates */
|
Use full semver in package name | @@ -219,9 +219,7 @@ if(PACKAGE)
string(TOLOWER ${CMAKE_SYSTEM_NAME} PKG_OS)
endif()
- set(PKG_VER ${CMAKE_PROJECT_VERSION_MAJOR}.${CMAKE_PROJECT_VERSION_MINOR})
-
- set(CPACK_PACKAGE_FILE_NAME "astcenc-${PKG_VER}-${PKG_OS}-${PACKAGE}")
+ set(CPACK_PACKAGE_FILE_NAME "astcenc-${CMAKE_PROJECT_VERSION}-${PKG_OS}-${PACKAGE}... |
Disable pg_isready test. | use strict;
use warnings;
use TestLib;
-use Test::More tests => 10;
+use Test::More tests => 9;
program_help_ok('pg_isready');
program_version_ok('pg_isready');
program_options_handling_ok('pg_isready');
-command_fails(['pg_isready'], 'fails with no server running');
+#
+# Disable temporarily. This test expects the ser... |
actually fix include dirs | @@ -55,7 +55,10 @@ endif()
add_library(iotivity-port INTERFACE)
-target_include_directories(iotivity-port INTERFACE BEFORE ${PORT_DIR})
+target_include_directories(iotivity-port INTERFACE
+ ${PORT_DIR}
+ ${PROJECT_SOURCE_DIR}/port
+)
target_sources(iotivity-port INTERFACE
${PORT_DIR}/abort.c
|
Make sure externalgettup_custom() doesn't reach an unexpected state
pstate->raw_buf_len should never be less than zero because it's the
length of unprocessed data in externalgettup_custom(). Add an assert to
make sure this. | @@ -900,6 +900,7 @@ externalgettup_custom(FileScanDesc scan)
MemoryContext oldctxt = CurrentMemoryContext;
Assert(formatter);
+ Assert(pstate->raw_buf_len >= 0);
/* while didn't finish processing the entire file */
/* raw_buf_len was set to 0 in BeginCopyFrom() or external_rescan() */
@@ -922,7 +923,7 @@ externalgettup... |
Missed removing a sim dependency | @@ -8,7 +8,7 @@ AXE=$(AXE_DIR)/axe
$(AXE): $(wildcard $(AXE_DIR)/*.[ch]) $(AXE_DIR)/make.sh
cd $(AXE_DIR) && ./make.sh
-$(output_dir)/tracegen.out: $(sim)
+$(output_dir)/tracegen.out:
mkdir -p $(output_dir) && $(sim) $(PERMISSIVE_ON) $(SIM_FLAGS) $(EXTRA_SIM_FLAGS) $(SEED_FLAG) $(VERBOSE_FLAGS) $(PERMISSIVE_OFF) none <... |
Only update battery stats if a battery is present | @@ -22,7 +22,9 @@ std::vector<logData> graph_data;
void update_hw_info(struct swapchain_stats& sw_stats, struct overlay_params& params, uint32_t vendorID)
{
+ if (Battery_Stats.numBattery() > 0 ) {
Battery_Stats.update();
+ }
if (params.enabled[OVERLAY_PARAM_ENABLED_cpu_stats] || logger->is_active()) {
cpuStats.UpdateC... |
mpi-families/mpich: revert back to standard ch3 build; singleton
execution not working with ch4 in latest release | @@ -73,7 +73,7 @@ export CPATH=${PMIX_INC}
%endif
./configure --prefix=%{install_path} \
- --with-device=ch4:ofi,ucx \
+# --with-device=ch4:ofi,ucx \
%if 0%{with_slurm}
--with-pm=no --with-pmi=slurm \
%endif
|
doc: add esp32c2 calibration notes | @@ -33,7 +33,7 @@ The ADC calibration driver provides ADC calibration scheme(s). From calibration
For those users who use their custom ADC calibration schemes, you could either modify this function :cpp:func:`adc_cali_check_scheme`, or just skip this step and call your custom creation function.
-.. only:: esp32 or esp3... |
adds auras to +spec:asn1 | ++ asn1 :: at least, a little
=> |%
+= spec
- $% [%int p=@]
- [%oct p=@]
+ $% [%int p=@u]
+ [%oct p=@ux]
[%nul ~]
- [%obj p=@]
+ [%obj p=@ux]
[%seq p=(list spec)]
==
::
|
clear method for vectral~ | @@ -139,6 +139,7 @@ static void vectral_dsp(t_vectral *x, t_signal **sp)
int nblock = sp[0]->s_n;
if (nblock > x->x_bufsize)
nblock = x->x_bufsize; /* CHECKME */
+ memset(x->x_lastframe, 0, nblock * sizeof(*x->x_lastframe));
dsp_add(vectral_perform, 6, x, nblock,
sp[0]->s_vec, sp[1]->s_vec, sp[2]->s_vec, sp[3]->s_vec);... |
headset_openxr fix; | @@ -789,8 +789,6 @@ static void openxr_renderTo(void (*callback)(void*), void* userdata) {
XrSwapchainImageWaitInfo waitInfo = { XR_TYPE_SWAPCHAIN_IMAGE_WAIT_INFO, .timeout = 1e9 };
if (XR(xrWaitSwapchainImage(state.swapchain, &waitInfo)) != XR_TIMEOUT_EXPIRED) {
- Camera camera = { .canvas = state.canvases[state.image... |
Improve Java 8 detection m4 script to deal with pre-set JAVA_HOME | @@ -4,7 +4,21 @@ AC_DEFUN([AX_VPP_FIND_JDK8],
[
while true
do
- test "${JAVA_HOME+set}" = set && break
+ if test "${JAVA_HOME+set}" = set ; then
+ AC_MSG_CHECKING([${JAVA_HOME} for Java 8 compiler])
+ JAVAC=${JAVA_HOME}/bin/javac
+ JAVAH=${JAVA_HOME}/bin/javah
+ JAR=${JAVA_HOME}/bin/jar
+ JAVA_VERSION=$(${JAVA_HOME}/bi... |
Don't check errno if ktls_read_record() returned 0.
errno is only valid if ktls_read_record() fails with a negative return
value. | @@ -213,7 +213,7 @@ int ssl3_get_record(SSL *s)
num_recs == 0 ? 1 : 0, &n);
if (rret <= 0) {
#ifndef OPENSSL_NO_KTLS
- if (!BIO_get_ktls_recv(s->rbio))
+ if (!BIO_get_ktls_recv(s->rbio) || rret == 0)
return rret; /* error or non-blocking */
switch (errno) {
case EBADMSG:
|
ARMv8: setting stack top and number of pages to reserve properly | @@ -42,6 +42,9 @@ static struct global global_temp;
*/
struct armv8_core_data *armv8_glbl_core_data = NULL;
+lpaddr_t kernel_stack = 0;
+lpaddr_t kernel_stack_top = 0;
+
#define MSG(format, ...) printk( LOG_NOTE, "ARMv8-A: "format, ## __VA_ARGS__ )
/*
@@ -61,7 +64,7 @@ static struct cmdarg cmdargs[] = {
static void mma... |
install-config-file: Make mount error message more verbose | @@ -52,7 +52,7 @@ fi
if [ -z "$contentOfElektraPath" ]; then
$kdbBinary mount --with-recommends $their $our $format
if ! [ $? -eq 0 ]; then
- echo "Could not mount file $their." >&2
+ echo "Could not mount file $their to $our with $format." >&2
exit 31
fi
resolvedLocation=$($kdbBinary file $our)
|
build: explicitly override h2o build platforms to support darwin | @@ -9,6 +9,7 @@ in {
version = final.sources.h2o.rev;
src = final.sources.h2o;
outputs = [ "out" "dev" "lib" ];
+ meta.platforms = prev.lib.platforms.linux ++ prev.lib.platforms.darwin;
});
secp256k1 = prev.secp256k1.overrideAttrs (_attrs: {
|
removes superfluous seeding of the openssl prng | @@ -729,21 +729,6 @@ main(c3_i argc,
SSL_library_init();
SSL_load_error_strings();
- {
- c3_i rad;
- c3_y buf[4096];
-
- // RAND_status, at least on OS X, never returns true.
- // 4096 bytes should be enough entropy for anyone, right?
- rad = open("/dev/urandom", O_RDONLY);
- if ( 4096 != read(rad, &buf, 4096) ) {
- pe... |
update gcc args in the comments | * Load and run static executables
*
* objcopy -I binary -O elf64-x86-64 -B i386 ./lib/linux/libscope.so ./lib/linux/libscope.o
- * gcc -Wall -g src/scope.c -ldl -o scope ./lib/linux/libscope.o
+ * gcc -Wall -g src/scope.c -ldl -lrt -o scope ./lib/linux/libscope.o
*/
#define _GNU_SOURCE
|
Conform to new generic scoping on plan 9. | @@ -270,19 +270,19 @@ generic check = {e : @a::(integral, numeric) -> result(@b, errno)
}
/* duplicated code to break dependency cycle */
-generic _getle16 = {buf
+generic _getle16 = {buf -> @a::(numeric,integral)
-> ((buf[0] : @a::(numeric,integral)) << 0) | \
((buf[1] : @a::(numeric,integral)) << 8)
}
-generic _getle... |
clarify dependencies in readme file | @@ -31,7 +31,7 @@ This will update the required dependencies.
For systems that cannot reach the Internet use another system to download the following rpms required to install ipmctl and then copy them to the original system (e.g. via thumb drive).
-> ipmctl.rpm, libipmctl.rpm, libsafec.rpm, ndctl, ndctl-libs, json-c.rp... |
[ProStreet] Make `WriteSettingsToFile` compatible with a lazy hook | @@ -620,22 +620,15 @@ void Init()
}; injector::MakeInline<DeadzoneHookY>(pattern.get_first(18 + 0), pattern.get_first(18 + 6));
}
- auto GetFolderPathpattern = hook::pattern("50 6A 00 6A 00 68 ? 80 00 00 6A 00");
- if (bWriteSettingsToFile && injector::GetBranchDestination(GetFolderPathpattern.get(0).get<uintptr_t>(14)... |
mpi-families/openmpi: CI tests highlighted a namespace conflict in
that latest ompi provides a prun binary; rename to prun.ompi | @@ -169,6 +169,8 @@ make %{?_smp_mflags} DESTDIR=$RPM_BUILD_ROOT install
rm $RPM_BUILD_ROOT/%{install_path}/lib/*.la
+# rename prun to avoid namespace conflict with ohpc
+%{__mv} $RPM_BUILD_ROOT/%{install_path}/bin/prun $RPM_BUILD_ROOT/%{install_path}/bin/prun.ompi
# OpenHPC module file
%{__mkdir_p} %{buildroot}/%{OHPC... |
tests: receiver gall gives %done to ames | [%give %unto %watch-ack ~]
==
==
- :- t6 |. :- %& ~
+ :- t6 |. :- %|
+ =^ t7 gall.bud
+ %: gall-check-take:v gall.bud
+ [~1111.1.2 0xbeef.dead *roof]
+ :+ /sys/req/~nec/pub ~[/bone/~nec/0/1 //unix]
+ [%gall %unto %watch-ack ~]
+ :~ :- ~[/bone/~nec/0/1 //unix] [%give %done ~]
+ ==
+ ==
+ :- t7 |. :- %& ~
--
|
omnibox: update for new metadata | @@ -114,7 +114,7 @@ export default function index(contacts, associations, apps, currentGroup, groups
};
if (each['app-name'] === 'graph') {
- app = each.metadata.module;
+ app = each.metadata.config.graph;
}
const shipStart = each.resource.substr(each.resource.indexOf('~'));
@@ -128,7 +128,7 @@ export default function ... |
correct dependencies for runs | @@ -171,6 +171,7 @@ workflows:
# Prepare the verilator builds
- prepare-example:
requires:
+ - install-riscv-toolchain
- install-verilator
# Run the respective tests
@@ -178,5 +179,5 @@ workflows:
# Run the example tests
- example-run-benchmark-tests:
requires:
- - prepare-example
- install-riscv-toolchain
+ - prepare-... |
unescape strings according to JSON RFC | @@ -85,6 +85,20 @@ jsoneq(const char *json, jsmntok_t *tok, const char *str)
return -1;
}
+static char * copy_over_string (size_t * new_size, char * str, size_t len)
+{
+ char * new_str = NULL;
+ if (json_unescape_string(&new_str, new_size, str, len)) {
+ return new_str;
+ }
+ else {
+ // ill formed string
+ char * p =... |
Add process token tab font settings | @@ -589,6 +589,7 @@ INT_PTR CALLBACK PhpTokenPageProc(
PhAddListViewGroup(tokenPageContext->ListViewHandle, PH_PROCESS_TOKEN_CATEGORY_PRIVILEGES, L"Privileges");
PhAddListViewGroup(tokenPageContext->ListViewHandle, PH_PROCESS_TOKEN_CATEGORY_GROUPS, L"Groups");
ListView_SetImageList(tokenPageContext->ListViewHandle, tok... |
Add dump command to dfu tool
This commit adds a "dump" command to the dfu tool, allowing you to extract the contained .bin files.
Run with ./dfu dump --force filename.dfu and one or more DFU files will be creasted with the target/address in their filename. | @@ -131,6 +131,8 @@ if __name__ == '__main__':
subparsers = parser.add_subparsers(help='Commands', dest='command')
parser_build = subparsers.add_parser('build', help='Build a DFU image')
parser_read = subparsers.add_parser('read', help='Read a DFU image')
+ parser_dump = subparsers.add_parser('dump', help='Dump binary ... |
[tech_cells_generic] Remove 'string' parameter from tc_sram for Vivado compliance | @@ -22,7 +22,7 @@ module tc_sram #(
parameter int unsigned ByteWidth = 32'd8, // Width of a data byte (in bits)
parameter int unsigned NumPorts = 32'd2, // Number of read and write ports
parameter int unsigned Latency = 32'd1, // Latency when the read data is available
- parameter string SimInit = "zeros", // Simulatio... |
YAwn: Improve debug output of lexer | @@ -493,13 +493,11 @@ int Lexer::nextToken (void ** attribute)
fetchTokens ();
}
#ifdef HAVE_LOGGER
- string output;
- output += "\n\nTokens:\n";
+ ELEKTRA_LOG_DEBUG ("Tokens:");
for (auto const & token : tokens)
{
- output += "\t" + to_string (*token) + "\n";
+ ELEKTRA_LOG_DEBUG ("\t%s\n", to_string (*token).c_str ())... |
Destroy screen once stream is finished
The screen receives callbacks from the decoder, fed by the stream.
The decoder is run from the stream thread, so waiting for the end of
stream is sufficient to avoid possible use-after-destroy. | @@ -430,10 +430,6 @@ scrcpy(const struct scrcpy_options *options) {
LOGD("quit...");
end:
- if (screen_initialized) {
- screen_destroy(&screen);
- }
-
// stop stream and controller so that they don't continue once their socket
// is shutdown
if (stream_started) {
@@ -459,6 +455,13 @@ end:
if (stream_started) {
stream_j... |
fix bugs on socket timeout tv usec calculation | @@ -197,7 +197,7 @@ int win32_getsockopt(SOCKET sockfd, int level, int optname, void *optval, sockle
socklen_t dwlen = 0;
ret = getsockopt(sockfd, level, optname, (char *)&timeout, &dwlen);
tv->tv_sec = timeout / 1000;
- tv->tv_usec = timeout * 1000;
+ tv->tv_usec = (timeout * 1000) % 1000000;
} else {
ret = WSAEFAULT;... |
Fix missing actual mode | @@ -250,6 +250,7 @@ esp_set_wifi_mode(esp_mode_t mode,
ESP_MSG_VAR_ALLOC(msg, blocking);
ESP_MSG_VAR_SET_EVT(msg, evt_fn, evt_arg);
ESP_MSG_VAR_REF(msg).cmd_def = ESP_CMD_WIFI_CWMODE;
+ ESP_MSG_VAR_REF(msg).msg.wifi_mode.mode = mode;
return espi_send_msg_to_producer_mbox(&ESP_MSG_VAR_REF(msg), espi_initiate_cmd, 1000);... |
engine: move out initialization routine for collectors | @@ -307,12 +307,9 @@ static int flb_engine_started(struct flb_config *config)
int flb_engine_start(struct flb_config *config)
{
- int fd;
int ret;
- struct mk_list *head;
struct mk_event *event;
struct mk_event_loop *evl;
- struct flb_input_collector *collector;
/* HTTP Server */
#ifdef FLB_HAVE_HTTP
@@ -377,36 +374,8 ... |
cirrus: set DBUS_LAUNCHD_SESSION_BUS_SOCKET manually as workaround | @@ -168,6 +168,7 @@ mac_task:
brew services restart dbus
launchctl getenv DBUS_LAUNCHD_SESSION_BUS_SOCKET
ls -l /private/tmp/com.apple.launchd*
+ export DBUS_LAUNCHD_SESSION_BUS_SOCKET=$(find /private/tmp/com.apple.launchd*/unix_domain_listener | xargs ls -Art | tail -n1) # workaround for cirrus
- | # Install Python
br... |
Fixed leak in sysobject api sample. | @@ -320,7 +320,7 @@ out_free:
if (metrics)
free(metrics);
- while (--cleanup_size > 0) {
+ while (cleanup_size-- > 0) {
if ((res = cleanup[cleanup_size].fn(
cleanup[cleanup_size].param))
!= FPGA_OK) {
|
net: adding missing dependency | @@ -1230,7 +1230,7 @@ data LibDepTree = LibDep String | LibDeps [LibDepTree] deriving (Show,Eq)
libposixcompat_deps = LibDeps [ LibDep "posixcompat",
(libvfs_deps_all "vfs"), LibDep "term_server" ]
liblwip_deps = LibDeps $ [ LibDep x | x <- deps ]
- where deps = ["lwip" ,"net_if_raw" ,"timer" ,"hashtable"]
+ where deps... |
[numerics] remove failed test flag for some NSN test | @@ -67,12 +67,12 @@ int main (int argc, char *argv[])
#ifdef TEST_NSN_COLLECTION_1
// expected to fail
- collection[2].will_fail = 1; // GFC3D_NSN_AC, on ./data/GFC3D_Example00_badly_scaled.dat
- collection[5].will_fail = 1; // GFC3D_NSN_AC, on ./data/GFC3D_TwoRods1.dat
- collection[3].will_fail = 1; // NSN_AC on data/... |
display: display percentage of paths hit | @@ -251,9 +251,10 @@ static void display_displayLocked(honggfuzz_t* hfuzz) {
uint64_t softCntPc = ATOMIC_GET(hfuzz->linux.hwCnts.softCntPc);
uint64_t softCntEdge = ATOMIC_GET(hfuzz->linux.hwCnts.softCntEdge);
uint64_t softCntCmp = ATOMIC_GET(hfuzz->linux.hwCnts.softCntCmp);
+ uint64_t guardNb = ATOMIC_GET(hfuzz->feedba... |
avx512/cvtt: _mm_cvttpd_epi64 is only available on x86_64
Fixes | @@ -43,7 +43,7 @@ simde_mm_cvttpd_epi64 (simde__m128d a) {
simde__m128i_private r_;
simde__m128d_private a_ = simde__m128d_to_private(a);
- #if defined(SIMDE_X86_SSE2_NATIVE)
+ #if defined(SIMDE_X86_SSE2_NATIVE) && defined(SIMDE_ARCH_AMD64)
r_.n =
_mm_set_epi64x(
_mm_cvttsd_si64(_mm_unpackhi_pd(a_.n, a_.n)),
|
Pull whitelists out of functions for easier modification in future | #include <Utils.h>
-LuaSandbox::LuaSandbox(sol::state_view aStateView)
- : m_lua(aStateView)
-{
-}
-
-void LuaSandbox::Initialize(sol::state_view aStateView)
-{
- // initialize state + environment first
- m_lua = aStateView;
- m_env = { aStateView, sol::create };
-
- // copy whitelisted things from global table
- const... |
Remove fprintfs from the poly1305 internal test but keep the test number
information.
The framework will display the non-matching memory. | @@ -35,15 +35,6 @@ typedef struct {
*
***/
-/* TODO : hex decoder / encoder should be implemented in testutil.c */
-static void hexdump(const unsigned char *a, size_t len)
-{
- size_t i;
-
- for (i = 0; i < len; i++)
- fprintf(stderr, "%02x", a[i]);
-}
-
static void benchmark_poly1305()
{
# ifdef OPENSSL_CPUID_OBJ
@@ -... |
kukui: Remap DMA channel 6/7 to SPI2
BRANCH=none
TEST=Flash kukui, see that UART and eMMC emulation work. | @@ -241,11 +241,13 @@ void board_config_pre_init(void)
{
STM32_RCC_AHBENR |= STM32_RCC_HB_DMA1;
/*
- * Remap USART1:
+ * Remap USART1 and SPI2 DMA:
*
* Ch4: USART1_TX / Ch5: USART1_RX (1000)
+ * Ch6: SPI2_RX / Ch7: SPI2_TX (0011)
*/
- STM32_DMA_CSELR(STM32_DMAC_CH4) = (8 << 12) | (8 << 16);
+ STM32_DMA_CSELR(STM32_DMAC... |
Remove C030_R412M board (instance 14). | @@ -22,7 +22,7 @@ The platform field must match a unique platform name from under one of the `plat
| 12 | ESP32-DevKitC + EVK, Cat M1 | ESP32 | ESP-IDF | SARA_R5 | port cell sock network short_range security | U_CFG_APP_PIN_CELL_TXD=21 U_CFG_APP_PIN_CELL_RXD=19 U_CFG_APP_PIN_CELL_VINT=-1 U_CFG_APP_PIN_CELL_ENABLE_POWER... |
plugins types BUGFIX missing dynamic/fixed value check | @@ -137,7 +137,7 @@ lyplg_type_store_ipv6_prefix(const struct ly_ctx *ctx, const struct lysc_type *t
}
/* store/allocate value */
- if (options & LYPLG_TYPE_STORE_DYNAMIC) {
+ if ((options & LYPLG_TYPE_STORE_DYNAMIC) && LYPLG_TYPE_VAL_IS_DYN(val)) {
storage->dyn_mem = (void *)value;
options &= ~LYPLG_TYPE_STORE_DYNAMIC... |
Update `Startup.py` | @@ -40,6 +40,16 @@ from pip import BUNDLED_MODULES
logging.basicConfig(level=logging.INFO)
def __send_warnings_to_log__(message, category, filename, lineno, file=None, line=None):
+ try:
+ warnings
+ except:
+ import warnings
+
+ try:
+ pyto
+ except:
+ import pyto
+
_message = warnings.formatwarning(message, category,... |
Update lib/common/udp_tunnel.c | @@ -189,7 +189,6 @@ h2o_tunnel_t *h2o_open_udp_tunnel_from_sa(h2o_loop_t *loop, struct sockaddr *add
.destroy = tunnel_on_destroy,
.write_ = tunnel_on_write,
.proceed_read = tunnel_proceed_read,
- .on_read = NULL,
},
.len = len,
.loop = loop,
|
dm: mei: set addresses in the hbm disconnect reply
MEI HBM the disconnect replay doesn't have the address set,
breaking the protocol, fix the issue.
Acked-by: Wang, Yu1 | @@ -1257,6 +1257,8 @@ vmei_hbm_handler(struct virtio_mei *vmei, const void *data)
memset(&disconnect_res, 0, sizeof(disconnect_res));
disconnect_res.hbm_cmd.cmd = MEI_HBM_CLIENT_DISCONNECT;
disconnect_res.hbm_cmd.is_response = 1;
+ disconnect_res.me_addr = disconnect_req->me_addr;
+ disconnect_res.host_addr = disconnec... |
fixes the wget links | 1. Download the two files;
```
- wget https://github.com/cee-studio/orca/cee/release/cee.h
- wget https://github.com/cee-studio/orca/cee/release/cee.c
+ wget https://raw.githubusercontent.com/cee-studio/orca/master/cee/release/cee.h
+ wget https://raw.githubusercontent.com/cee-studio/orca/master/cee/release/cee.c
```
2... |
Fix Travis builds
It seems that we can no longer use ${} in the env var fields so remove
them to get our Travis builds green again.
Reference: | @@ -59,16 +59,14 @@ install:
env:
- APR=apr-1.6.2
APR_UTIL=apr-util-1.6.0
- APR_TAR=${APR}.tar.gz
- APR_UTIL_TAR=${APR_UTIL}.tar.gz
before_script:
- export PATH=${TRAVIS_BUILD_DIR}/tools/bin:$PATH
- cd ${TRAVIS_BUILD_DIR}
- - wget http://ftp.jaist.ac.jp/pub/apache/apr/${APR_TAR}
- - wget http://ftp.jaist.ac.jp/pub/apac... |
Update wrong rhh setup | @@ -155,7 +155,8 @@ espr_t
esp_rest_execute(esp_rest_p* rh, esp_http_method_t m, const char* uri, esp_rest_resp_t* r) {
esp_netconn_p nc;
espr_t res;
- esp_pbuf_p pbuf, rhh;
+ esp_pbuf_p pbuf;
+ esp_rest_p rhh;
ESP_ASSERT("rh != NULL && *rh != NULL", rh != NULL && *rh != NULL); /* Check input parameters */
ESP_ASSERT("... |
nrf/Makefile: Don't use -fno-builtin for Cortex-M0 builds.
So that error string compression is optimised correctly (it needs strcmp to
be optimised away by the compiler). | @@ -99,7 +99,7 @@ CFLAGS_MCU_m33 = $(CFLAGS_CORTEX_M) -mcpu=cortex-m33 -march=armv8-m.main+dsp -mc
CFLAGS_MCU_m4 = $(CFLAGS_CORTEX_M) -mtune=cortex-m4 -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard
-CFLAGS_MCU_m0 = $(CFLAGS_CORTEX_M) -fshort-enums -mtune=cortex-m0 -mcpu=cortex-m0 -mfloat-abi=soft -fno-builtin
+CFLA... |
test_fpgad: use sched_yield instead of pthread_yield | -// Copyright(c) 2018-2019, Intel Corporation
+// Copyright(c) 2018-2022, Intel Corporation
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
#endif // HAVE_CONFIG_H
#include <dlfcn.h>
+#include <sched.h>
#include "mon... |
SOVERSION bump to version 2.21.3 | @@ -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 21)
-set(LIBYANG_MICRO_SOVERSION 2)
+set(LIBYANG_MICRO_SOVERSION 3)
set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG_M... |
Add ruler spacing controls | @@ -441,6 +441,8 @@ int main(int argc, char** argv) {
Tui_cursor tui_cursor;
tui_cursor_init(&tui_cursor);
Usz tick_num = 0;
+ Usz ruler_spacing_y = 8;
+ Usz ruler_spacing_x = 8;
for (;;) {
int term_height = getmaxy(stdscr);
int term_width = getmaxx(stdscr);
@@ -448,13 +450,15 @@ int main(int argc, char** argv) {
(void... |
btshell: use strlcpy and strlcat to avoid buffer overflow | @@ -99,22 +99,26 @@ parse_dev_addr(const char *prefix, const struct kv_pair *addr_types,
char name[32];
int rc;
- /* XXX string operations below are not quite safe, but do we care? */
-
if (!prefix) {
name[0] = '\0';
} else {
- strcpy(name, prefix);
+ if (strlcpy(name, prefix, sizeof(name)) >= sizeof(name)) {
+ return ... |
s390x/DYNAMIC_ARCH: define a HW_CAP flag to support slightly older glibc versions
Enable building DYNAMIC_ARCH support with older versions of glibc that
do not know about the hwcap flag HWCAP_S390_VXE yet. | @@ -65,6 +65,10 @@ char* gotoblas_corename(void) {
return corename[0];
}
+#ifndef HWCAP_S390_VXE
+#define HWCAP_S390_VXE 8192
+#endif
+
/**
* Detect the fitting set of kernels by retrieving the CPU features supported by
* OS from the auxiliary value AT_HWCAP and choosing the set of kernels
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.