message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Decisions: Reformat text about internal cache | @@ -41,10 +41,14 @@ internal caches lead to duplication of memory consumption
in some cases caches cannot be avoided?
-> filesys, databases?
-cache discussion:
-+ not more keys than needed
-+ kdbGet avoids IO even if done somewhere else
-+ KDB handles could be more locally
+### Cache Discussion
+
+**Pros:**
+- not more... |
Check argc>0 before strcasecmp. Should shortcircuit | @@ -921,19 +921,13 @@ struct cmd_results *cmd_move(int argc, char **argv) {
--argc; ++argv;
}
- if (strcasecmp(argv[0], "window") == 0 ||
- strcasecmp(argv[0], "container") == 0) {
- --argc;
- if (argc > 0) {
- ++argv;
- }
+ if (argc > 0 && (strcasecmp(argv[0], "window") == 0 ||
+ strcasecmp(argv[0], "container") == 0)... |
CMake: Update next release notes | @@ -419,7 +419,7 @@ This section keeps you up-to-date with the multi-language support provided by El
- Fix warning for CMP0115 _(0x6178656c)_
- <<TODO>>
-- <<TODO>>
+- Fix developer warning for package DISCOUNT. _(Dennis Toth @dtdirect)_
- Pass `--stacktrace` to gradle for the JNA builds. _(Maximilian Irlinger @atmaxin... |
test_psa_compliance.py: checkout fix-pr-5139 tag | @@ -47,7 +47,7 @@ EXPECTED_FAILURES = {
#
# Web URL: https://github.com/bensze01/psa-arch-tests/tree/fixes-for-mbedtls-3
PSA_ARCH_TESTS_REPO = 'https://github.com/bensze01/psa-arch-tests.git'
-PSA_ARCH_TESTS_REF = 'fix-pr-5272'
+PSA_ARCH_TESTS_REF = 'fix-pr-5139-2'
#pylint: disable=too-many-branches,too-many-statements... |
fix(discord.h): remove dead comment | @@ -797,13 +797,6 @@ void* discord_set_data(struct discord *client, void *data);
*/
void* discord_get_data(struct discord *client);
-/**
- * @brief Replace the Client presence with a struct discord_presence_status
- *
- * @note discord_set_presence() is a more comprehensible alternative
- * @see discord_set_presence()
... |
Add payload marker within opencoap_send instead of in the app. | @@ -485,6 +485,11 @@ owerror_t opencoap_send(
tokenPos+=2;
}
+ if (msg->length > 0 ) { // contains payload, add payload marker
+ packetfunctions_reserveHeaderSize(msg,1);
+ msg->payload[0] = COAP_PAYLOAD_MARKER;
+ }
+
// fake run of opencoap_options_encode in order to get the necessary length
packetfunctions_reserveHea... |
vtx: fix pitmode write | @@ -270,7 +270,7 @@ static void tramp_set_power_level(vtx_power_level_t power) {
}
static void tramp_set_pit_mode(vtx_pit_mode_t pit_mode) {
- serial_tramp_send_payload('I', pit_mode == VTX_PIT_MODE_ON ? 1 : 0);
+ serial_tramp_send_payload('I', pit_mode == VTX_PIT_MODE_ON ? 0 : 1);
tramp_settings.frequency = 0;
}
|
show weak candidate on start | @@ -3188,6 +3188,7 @@ snprintf(servermsg, SERVERMSG_MAX, "\e[?25l\nstart capturing (stop with ctrl+c)\
"FILTERLIST ACCESS POINT.: %d entries\n"
"FILTERLIST CLIENT.......: %d entries\n"
"FILTERMODE..............: %d\n"
+ "WEAK CANDIDATE..........: %s\n"
"PREDEFINED ACCESS POINT.: %d entries\n"
"MAC ACCESS POINT........:... |
Check OpenGL error code before texture allocation.
This will make sure that the MacOS error I've been having is actually
caused by this code. | @@ -73,6 +73,8 @@ static int upload_gl_tile(struct TCOD_TilesetAtlasOpenGL* atlas, int tile_id) {
*/
TCOD_NODISCARD
static int prepare_gl_atlas(struct TCOD_TilesetAtlasOpenGL* atlas) {
+ GLenum gl_error = glGetError();
+ if (gl_error) return TCOD_set_errorvf("Unexpected OpenGL error before texture allocation: %u", gl_e... |
examples/jpg: increase maximum img size | @@ -36,7 +36,7 @@ static const char* const cdjpeg_message_table[] = {
NULL
};
-static uint64_t max_total_pixels = 100000000ULL; /* 100M */
+static uint64_t max_total_pixels = 1000000000ULL; /* 1G */
int LLVMFuzzerInitialize(int* argc, char*** argv) {
null_fd = open("/dev/null", O_WRONLY);
|
Make FPGA targets build properly out-of-tree
[ci skip] | project(de2_115)
+# The working directory for these is the source dir, which means these will
+# put output files in the source hierarchy even if this is an out-of-tree
+# build. This is because the Quartus project file specifies relative paths.
+# XXX it might be cleaner to have this generate the .qsf file.
+
add_cust... |
adding highlights section to top of ChangeLog | -Version 1.3.1 (June 2017)
+# -*- mode: sh; fill-column: 120; -*-
+
+Version 1.3.1 (16 June 2017)
+
+[Important Highlights/Notices]
+
+ * A new compiler variant (gnu7) is introduced with this release. In the case of a fresh install, OpenHPC recipes
+ default to installing the new variant along with matching runtimes an... |
lyd mods BUFGIX recursive implemented dependency check
Fixes | @@ -1188,6 +1188,37 @@ cleanup:
return err_info;
}
+/**
+ * @brief Check data dependencies of a module and all its implemented imports, recursively.
+ *
+ * @param[in] ly_mod Libyang module to check.
+ * @param[in] sr_mods Sysrepo module data.
+ * @param[out] fail Whether any dependant module was not implemented.
+ * @... |
Disable pcap to file by default: accidentally enabled in | @@ -352,7 +352,8 @@ PCI_BUS= pci.0
endif
QEMU_TAP= -netdev tap,id=n0,ifname=tap0,script=no,downscript=no
QEMU_NET= -device $(NETWORK)$(NETWORK_BUS),mac=7e:b8:7e:87:4a:ea,netdev=n0 $(QEMU_TAP)
-QEMU_USERNET= -device $(NETWORK)$(NETWORK_BUS),netdev=n0 -netdev user,id=n0,hostfwd=tcp::8080-:8080,hostfwd=tcp::9090-:9090,hos... |
Fix SDL2_net.framework installation on Mac | @@ -179,6 +179,7 @@ function(blit_executable NAME SOURCES)
# install the SDL frameworks
install(DIRECTORY ${SDL2_LIBRARIES} DESTINATION "bin/$<TARGET_FILE_NAME:${NAME}>.app/Contents/Frameworks")
install(DIRECTORY ${SDL2_IMAGE_LIBRARY} DESTINATION "bin/$<TARGET_FILE_NAME:${NAME}>.app/Contents/Frameworks")
+ install(DIRE... |
in_cpu: parenthesis to protect division by zero | @@ -106,13 +106,7 @@ static inline double CPU_METRIC_SYS_AVERAGE(unsigned long pre, unsigned long now
}
diff = ULL_ABS(now, pre);
-
- if (ctx->interval_sec > 0) {
- total = ((diff / ctx->cpu_ticks) * 100) / ctx->n_processors / ctx->interval_sec;
- }
- else {
- total = ((diff / ctx->cpu_ticks) * 100) / ctx->n_processors... |
dawn: fix /lib/vere compilation errors | ~&([%czar-take-dawn %invalid-json] ~)
:- ~
%+ roll u.res
- |= $: [id=@t deet=[rift life =pass]]
+ |= $: [id=@t deet=[=rift =life =pass]]
kyz=(map ship [=rift =life =pass])
==
^+ kyz
=/ jon=(unit json) (de-json:html q.rep)
?~ jon
~&([%point-take-dawn %invalid-json] ~)
- =; ^= res
- %- unit
- $: [spawn=@ own=[@ @ @ @]]
-... |
Fix typo in comment
The peek result is now called 'err', not just 'e'. | @@ -169,7 +169,7 @@ int pkey_main(int argc, char **argv)
while ((err = ERR_peek_error()) != 0) {
BIO_printf(out, "Detailed error: %s\n",
ERR_reason_error_string(err));
- ERR_get_error(); /* remove e from error stack */
+ ERR_get_error(); /* remove err from error stack */
}
}
EVP_PKEY_CTX_free(ctx);
|
CI/CD: add "no-epm" option testing | @@ -69,5 +69,14 @@ jobs:
sed -i '145 c \"enclave.runtime.path\": \"/var/run/rune/liberpal-skeleton-v3.so\",' config.json;
rune --debug run ra"
+ - name: Run skeleton v3 with no epm
+ if: always()
+ run: docker exec $rune_test bash -c "docker run -i --rm --runtime=rune -e ENCLAVE_TYPE=intelSgx -e ENCLAVE_RUNTIME_PATH=/u... |
stm32/sdcard: Fix H7 build when using SDMMC2.
Changes are:
Fix missing IRQ handler when SDMMC2 is used instead of SDMMC1 with H7
MCUs.
Removed outdated H7 series compatibility macros.
Defined common IRQ handler macro for F4 series. | #if defined(MICROPY_HW_SDMMC2_CK)
#define SDIO SDMMC2
+#define SDMMC_IRQHandler SDMMC2_IRQHandler
#define SDMMC_CLK_ENABLE() __HAL_RCC_SDMMC2_CLK_ENABLE()
#define SDMMC_CLK_DISABLE() __HAL_RCC_SDMMC2_CLK_DISABLE()
#define SDMMC_IRQn SDMMC2_IRQn
#define SDMMC_DMA dma_SDMMC_2
#else
#define SDIO SDMMC1
+#define SDMMC_IRQH... |
sudo for macOS to cp xmake | @@ -26,7 +26,7 @@ script:
- echo 'require("luacov")' > tmp
- cat xmake/core/_xmake_main.lua >> tmp
- mv tmp xmake/core/_xmake_main.lua
- - cp core/build/xmake $(which xmake)
+ - cp core/build/xmake $(which xmake) || sudo cp core/build/xmake $(which xmake)
- tests/tests
after_success:
|
Work CD-CI
Fix prepare release task. | @@ -94,17 +94,9 @@ jobs:
git checkout develop
- cd source
-
# prepare release and capture output
$release = nbgv prepare-release
- # get commit message for the merge
- $commitMessage = git log -1 --pretty=%B
-
- # amend commit message to skip build
- git commit --amend -m "$commitMessage" -m "***NO_CI***" > $null
-
# p... |
add ctime_r() and re-implement ctime() | * 2021-02-05 Meco Man add timegm()
* 2021-02-07 Meco Man fixed gettimeofday()
* 2021-02-08 Meco Man add settimeofday() stime()
+ * 2021-02-10 Meco Man add ctime_r() and re-implement ctime()
*/
#include <sys/time.h>
@@ -149,9 +150,15 @@ char* asctime(const struct tm *timeptr)
return asctime_r(timeptr, buf);
}
-char* cti... |
Update the Mynewt slack join URL | @@ -109,7 +109,7 @@ want to talk to a human about what you're working on, you can contact us via the
[developers mailing list](mailto:dev@mynewt.apache.org).
Although not a formal channel, you can also find a number of core developers
-on the #mynewt channel on Freenode IRC or #general channel on [Mynewt Slack](https:/... |
Don't try to force TERM to a fixed value in tab-completion test.
Right at the moment, this is making things worse not better in the
buildfarm. I'm not happy with anything about the current state,
but let's at least try to have a green buildfarm report while further
investigation continues.
Discussion: | @@ -41,9 +41,6 @@ $ENV{PSQL_HISTORY} = $historyfile;
# Debug investigation
note "TERM is set to '" . ($ENV{TERM} || "<undef>") . "'";
-# Ensure that readline/libedit puts out xterm escapes, not something else.
-$ENV{TERM} = 'xterm';
-
# regexp to match one xterm escape sequence (CSI style only, for now)
my $escseq = "(... |
Support demangling lambdas with auto params. | @@ -144,6 +144,9 @@ void display(__node* x, int indent = 0)
#endif
+__node __t_lambda_node;
+__node* __t_lambda = &__t_lambda_node;
+
class __vtable
: public __node
{
@@ -6923,7 +6926,14 @@ __demangle_tree::__parse_unnamed_type_name(const char* first, const char* last)
}
else
{
+ // Demangle all T_ within lambda type s... |
Fix segfault when running foomatic-rip by hand and env PRINTER is missing | @@ -94,7 +94,6 @@ void init_cups(list_t *arglist, dstr_t *filelist, jobparams_t *job)
CUPS puts the print queue name into the PRINTER environment variable
when calling filters. */
strncpy(job->printer, getenv("PRINTER"), 256);
- if (strlen(getenv("PRINTER")) > 255)
job->printer[255] = '\0';
free(cups_options);
|
ip: fix the punt redirect for ip4
Type: fix | @@ -334,10 +334,10 @@ ip4_punt_redirect_cmd (vlib_main_t * vm,
vlib_cli_command_t * cmd)
{
unformat_input_t _line_input, *line_input = &_line_input;
- fib_route_path_t *rpaths = NULL, rpath;
- dpo_proto_t payload_proto;
+ ip46_address_t nh = { 0 };
clib_error_t *error = 0;
u32 rx_sw_if_index = ~0;
+ u32 tx_sw_if_index ... |
better description.
- harden-algo-downgrade: no also makes unbound more lenient about
digest algorithms in DS records. | 10 April 2017: Wouter
- - harden algo downgrade also makes unbound more lenient about digest
- algorithms in DS records.
+ - harden-algo-downgrade: no also makes unbound more lenient about
+ digest algorithms in DS records.
10 April 2017: Ralph
- Remove ECS option after REFUSED answer.
|
provisioning/warewulf-vnfs: include correct firmware patch | ---- a/etc/bootstrap.conf 2018-07-12 10:18:54.000000000 -0700
-+++ b/etc/bootstrap.conf 2018-07-12 10:33:29.000000000 -0700
-@@ -32,6 +32,10 @@
- modprobe += xhci-hcd, sl811-hcd, sd_mod
- # modprobe += ib_ipoib
+--- a/etc/bootstrap.conf.orig 2020-04-01 15:40:31.760000000 +0000
++++ b/etc/bootstrap.conf 2020-04-01 15:40... |
Convert .align to .p2align for OSX compatibility | @@ -99,7 +99,7 @@ static void dscal_kernel_inc_8(BLASLONG n, FLOAT *alpha, FLOAT *x, BLASLONG inc_
"leaq (%1,%4,4), %2 \n\t"
- ".align 16 \n\t"
+ ".p2align 4 \n\t"
"1: \n\t"
"movsd (%1) , %%xmm4 \n\t"
|
fix cv with cat_features param | @@ -2934,6 +2934,12 @@ def cv(pool=None, params=None, dtrain=None, iterations=None, num_boost_round=Non
else:
assert nfold is None or nfold == fold_count
+ if 'cat_features' in params:
+ if set(pool.get_cat_feature_indices()) != set(params['cat_features']):
+ raise CatboostError("categorical features in params are diff... |
Free memory in test | @@ -193,6 +193,8 @@ static void test_bytestring_add_chunk(void **state) {
((struct cbor_indefinite_string_data *)bytestring->data)
->chunk_capacity,
0);
+ cbor_decref(&chunk);
+ cbor_decref(&bytestring);
},
5, MALLOC, MALLOC, MALLOC, MALLOC, REALLOC_FAIL);
}
|
Corrected offsets in OS Configuration Structure. | <member name="robin_timeout" type="uint32_t" offset="8" info="Round Robim timeout tick"/>
<member name="isr_queue_data" type="uint32_t" offset="12" info="ISR post processing queue (value is void **)"/>
- <member name="isr_queue_max" type="uint16_t" offset="14" info="Maximum data"/>
- <member name="isr_queue_padding" ty... |
[core] reload c after chunkqueue_compact_mem()
reload c = cq->first after calling chunkqueue_compact_mem() | @@ -616,8 +616,10 @@ static int connection_handle_read_state(connection * const con) {
if (NULL == c) continue;
clen = buffer_string_length(c->mem) - c->offset;
if (0 == clen) continue;
- if (c->offset > USHRT_MAX) /*(highly unlikely)*/
+ if (c->offset > USHRT_MAX) { /*(highly unlikely)*/
chunkqueue_compact_mem(cq, cle... |
Parameter: Update process noise model | @@ -59,12 +59,12 @@ STRUCT_CONFIG_SECTION(SurviveKalmanTracker)
STRUCT_CONFIG_ITEM("lightcap-rampin-length",
"Number of lightcap measures to ramp in variance", 5000, t->light_rampin_length)
- STRUCT_CONFIG_ITEM("process-weight-acc", "Acc variance per second", 1e-1, t->params.process_weight_acc)
- STRUCT_CONFIG_ITEM("pr... |
fskmodem/example: cleaning up memory like a good developer | @@ -112,6 +112,10 @@ int main(int argc, char*argv[])
spgramcf_write(periodogram, buf_rx, k);
}
+ // destroy modulator/demodulator pair
+ fskmod_destroy(mod);
+ fskdem_destroy(dem);
+
printf("symbol errors: %u / %u\n", num_symbol_errors, num_symbols);
// compute power spectral density of received signal
|
test(ethereum): Fix an ambiguous judgment | @@ -264,7 +264,7 @@ START_TEST(test_001CreateWallet_0009CreateWalletWithInternalGeneration)
rtnVal = BoatWalletCreate(BOAT_PROTOCOL_ETHEREUM, NULL, &wallet, sizeof(BoatEthWalletConfig));
/* 2. verify test result */
/* 2-1. verify the return value */
- ck_assert_int_eq(rtnVal, BOAT_SUCCESS);
+ ck_assert_int_eq(rtnVal, 0... |
sdl/surface: fix sdl.Surface.Set() on PIXELFORMAT_ARGB8888 surface displaying wrong color | @@ -569,9 +569,9 @@ func (surface *Surface) Set(x, y int, c color.Color) {
switch surface.Format.Format {
case PIXELFORMAT_ARGB8888:
col := surface.ColorModel().Convert(c).(color.RGBA)
- pix[i+0] = col.R
+ pix[i+0] = col.B
pix[i+1] = col.G
- pix[i+2] = col.B
+ pix[i+2] = col.R
pix[i+3] = col.A
case PIXELFORMAT_ABGR8888... |
ip: indent format typo fix
Type: style | @@ -245,14 +245,12 @@ ip6_link_delegate_flush (ip6_link_t * il)
{
ip6_link_delegate_t *ild;
- /* *INDET-OFF* */
- FOREACH_IP6_LINK_DELEGATE (ild, il, (
- {
- il_delegate_vfts[ild->
- ild_type].ildv_disable
- (ild->ild_index);
+ /* *INDENT-OFF* */
+ FOREACH_IP6_LINK_DELEGATE (ild, il,
+ ({
+ il_delegate_vfts[ild->ild_ty... |
use relaxed load for region count as that is monotonic | @@ -240,7 +240,7 @@ static bool mi_region_is_suitable(const mem_region_t* region, int numa_node, boo
static bool mi_region_try_claim(int numa_node, size_t blocks, bool allow_large, mem_region_t** region, mi_bitmap_index_t* bit_idx, mi_os_tld_t* tld)
{
// try all regions for a free slot
- const size_t count = mi_atomic_... |
admin/clustershell: update to v1.8.2 | %define pname clustershell
Name: clustershell%{PROJ_DELIM}
-Version: 1.8.1
+Version: 1.8.2
Release: 1%{?dist}
Summary: Python framework for efficient cluster administration
|
Update py_import_test.
Note: mandatory check (NEED_CHECK) was skipped | from __future__ import print_function
-import itertools
import os
import re
import sys
@@ -24,6 +23,7 @@ def check_imports(no_check=(), extra=(), skip_func=None):
exceptions = list(no_check)
for key, _ in __res.iter_keys(b'py/no_check_imports/'):
exceptions += str_(__res.find(key)).split()
+ if exceptions:
exceptions.s... |
py/dynruntime: Implement uint new/get, mp_obj_len and mp_obj_subscr. | @@ -97,6 +97,7 @@ static inline void *m_realloc_dyn(void *ptr, size_t new_num_bytes) {
#define mp_obj_new_bool(b) ((b) ? (mp_obj_t)mp_fun_table.const_true : (mp_obj_t)mp_fun_table.const_false)
#define mp_obj_new_int(i) (mp_fun_table.native_to_obj(i, MP_NATIVE_TYPE_INT))
+#define mp_obj_new_int_from_uint(i) (mp_fun_tabl... |
Reorder Logger() constructor args
Currently the order varies across the struct and constructor. As a nice
reminder GCC will throw a lovely warning at us. Fix the ordering. | @@ -150,9 +150,9 @@ void logging(){
}
Logger::Logger(overlay_params* in_params)
- : m_logging_on(false),
- m_values_valid(false),
- m_params(in_params)
+ : m_params(in_params),
+ m_logging_on(false),
+ m_values_valid(false)
{
m_log_end = Clock::now() - 15s;
SPDLOG_DEBUG("Logger constructed!");
|
api: set the UNMAP fields when needed | @@ -211,6 +211,7 @@ void tcmu_zero_iovec(struct iovec *iovec, size_t iov_cnt)
iov_cnt--;
}
}
+
/*
* Copy data into an iovec, and consume the space in the iovec.
*
@@ -621,6 +622,7 @@ finish_page83:
/* Optimal xfer length */
memcpy(&data[12], &val32, 4);
+ if (rhandler->unmap) {
/* MAXIMUM UNMAP LBA COUNT */
val32 = hto... |
dev-tools/scipy: enable multi-build macros | @@ -41,6 +41,12 @@ Requires: openblas-%{compiler_family}%{PROJ_DELIM}
%define pname scipy
%define PNAME %(echo %{pname} | tr [a-z] [A-Z])
+%if 0%{?sles_version} || 0%{?suse_version}
+%define python_module() python-%{**} python3-%{**}
+%else
+%define python_module() python-%{**} python34-%{**}
+%endif
+
Name: python-%{p... |
Add test case for comment inside hex string.
Also move all comments-related tests to the test_comments function. | @@ -626,26 +626,6 @@ static void test_hex_strings()
condition: $a }",
"1234567890");
- assert_true_rule(
- "rule test { \
- strings: $a = { 31 32 [-] // Inline comment\n\r \
- 38 39 } \
- condition: $a }",
- "1234567890");
-
- assert_true_rule(
- "rule test { \
- strings: $a = { 31 32 /* Inline comment */ [-] 38 39 } \... |
use static_cast in error test | @@ -571,7 +571,7 @@ MultiPartInputFile::Data::chunkOffsetReconstruction(OPENEXR_IMF_INTERNAL_NAMESPA
- if(partNumber<0 || partNumber>int(parts.size()))
+ if(partNumber<0 || partNumber> static_cast<int>(parts.size()))
{
throw IEX_NAMESPACE::IoExc("part number out of range");
}
|
Fix segfault from unsafe NULL pointer | @@ -247,6 +247,7 @@ const char* findMatchedDelim(Code* code, const char* current)
code->syntax[current - start] == SyntaxTypeString) continue;
if(*current == seeking) return current;
if(*current == initial) current = findMatchedDelim(code, current);
+ if(!current) break;
}
return NULL;
|
add patients dataset generation | @@ -103,6 +103,27 @@ def generate_concatenated_random_labeled_dataset(nrows, nvals, labels, seed=2018
feature = prng.random_sample([nrows, nvals])
return np.concatenate([label, feature], axis=1)
+def generate_patients_datasets(train_path, test_path):
+ samples = 237
+
+ for samples, path in zip([237, 154], [train_path,... |
Add command to configure model in userland driver | @@ -31,6 +31,7 @@ int ltc294x_configure(ltc294x_model_e model,
interrupt_pin_conf_e int_pin,
uint16_t prescaler,
vbat_alert_adc_mode_e vbat) {
+ int rc;
uint8_t M = 0;
if (model == LTC2941 || model == LTC2942) {
// ltc2941/2 expects log_2 of prescaler value
@@ -52,6 +53,10 @@ int ltc294x_configure(ltc294x_model_e model... |
fix rule for $(OUT)/run_from_file_gpu_indirect | @@ -75,7 +75,7 @@ $(OUT)/run_from_file_direct: test/run_from_file.c $(OUT)/libscsdir.a
$(OUT)/run_from_file_indirect: test/run_from_file.c $(OUT)/libscsindir.a
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
-$(OUT)/run_from_file_gpu: test/run_from_file.c $(OUT)/libscsgpuindir.a
+$(OUT)/run_from_file_gpu_indirect: test/run_from_fi... |
tree data UPDATE allow insert top-level ext siblings | @@ -759,7 +759,6 @@ lyd_insert_sibling(struct lyd_node *sibling, struct lyd_node *node, struct lyd_n
struct lyd_node *iter;
LY_CHECK_ARG_RET(NULL, node, LY_EINVAL);
- LY_CHECK_CTX_EQUAL_RET(sibling ? LYD_CTX(sibling) : NULL, LYD_CTX(node), LY_EINVAL);
if (sibling) {
LY_CHECK_RET(lyd_insert_check_schema(NULL, sibling->s... |
Updated Travis token.
See advisory: | @@ -9,7 +9,7 @@ notifications:
on_success: change
on_failure: always
env:
- - secure: "0kkcYHaW88jKB9/nvZKJIsmDv4KALyy4DrcWs3wncRa4rAp0Wk4Ge/2o5GgubcowswiX9EZFawVRoM3h8nOf+awPu/gO6OkZx1LhYwQa/5lo7/LYq5Bzf2NNM+1xmNSgRKP+84/gi8pm/Ytv81+4hDmlN2APSMMq9u6UMzQCkVM="
+ - secure: "BbB1KVY0Yb6DJwxdfFDF1PJwSx9euNfNX94oDKftiH8LE0... |
VERSION bump to version 0.12.23 | @@ -32,7 +32,7 @@ set(CMAKE_C_FLAGS_DEBUG "-g -O0")
# set version
set(LIBNETCONF2_MAJOR_VERSION 0)
set(LIBNETCONF2_MINOR_VERSION 12)
-set(LIBNETCONF2_MICRO_VERSION 22)
+set(LIBNETCONF2_MICRO_VERSION 23)
set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION}.${LIBNETCONF2_MICRO_VERSION})
set(L... |
[FRDMKL27 IAR]Fix IAR project linker file issue
Shall use relative path, not absolute path for linker file. | </option>
<option>
<name>IlinkIcfFile</name>
- <state>D:\code\alios-things\platform\mcu\mkl27z644\iar\MKL27Z64xxx4_flash.icf</state>
+ <state>$PROJ_DIR$\..\..\..\platform\mcu\mkl27z644\iar\MKL27Z64xxx4_flash.icf</state>
</option>
<option>
<name>IlinkIcfFileSlave</name>
</option>
<option>
<name>IlinkIcfFile</name>
- <st... |
Updated wait command to use update fn | @@ -154,6 +154,14 @@ UBYTE ScriptUpdate_AwaitFade() { return !IsFading(); }
UBYTE ScriptUpdate_AwaitUIClosed() { return UIIsClosed(); }
+UBYTE ScriptUpdate_Wait() {
+ if (wait_time == 0) {
+ return TRUE;
+ }
+ wait_time--;
+ return FALSE;
+}
+
/*
* Command: Noop
* ----------------------------
@@ -373,7 +381,7 @@ void S... |
os/os_trace: remove os_trace_task_* defs | @@ -45,36 +45,6 @@ os_trace_isr_exit(void)
{
}
-static inline void
-os_trace_task_info(const struct os_task *t)
-{
-}
-
-static inline void
-os_trace_task_create(const struct os_task *t)
-{
-}
-
-static inline void
-os_trace_task_start_exec(const struct os_task *t)
-{
-}
-
-static inline void
-os_trace_task_stop_exec(v... |
regex: fix counter of matching captures | @@ -128,7 +128,7 @@ ssize_t flb_regex_do(struct flb_regex *r, unsigned char *str, size_t slen,
result->region = region;
result->str = str;
- return region->num_regs;
+ return (region->num_regs - 1);
}
int flb_regex_parse(struct flb_regex *r, struct flb_regex_search *result,
|
sctp: sctp_output.c failed to compile when VLIB_BUFFER_TRACE_TRAJECTORY is enabled
Fixed a typo in sctp_push_header(). It was inherited from tcp_output.c | @@ -1381,7 +1381,7 @@ sctp_push_header (transport_connection_t * trans_conn, vlib_buffer_t * b)
sctp_push_hdr_i (sctp_conn, b, SCTP_STATE_ESTABLISHED);
- sctp_trajectory_add_start (b0, 3);
+ sctp_trajectory_add_start (b, 3);
return 0;
}
|
chip/npcx/espi.c: Format with clang-format
BRANCH=none
TEST=none | @@ -164,8 +164,7 @@ static void espi_vw_config_in(const struct vwevms_config_t *config)
if (index == config->idx) {
/* Get Wire field */
val = NPCX_VWEVMS(i) & 0x0F;
- val |= VWEVMS_FIELD(config->idx,
- config->idx_en,
+ val |= VWEVMS_FIELD(config->idx, config->idx_en,
config->pltrst_en,
config->int_en,
config->espirst... |
[core] config mallopt(M_ARENA_MAX, 2)
Preemptively cap the max number of arenas that might be created by glibc
Each thread attempts to use the previously-used arena.
lighttpd is single-threaded, so in general, only one arena is used.
x-ref:
"Memory fragmentation with HTTP/2 enabled" | @@ -65,6 +65,15 @@ static const buffer default_server_tag = { CONST_STR_LEN(PACKAGE_DESC)+1, 0 };
# include <sys/prctl.h>
#endif
+#ifdef HAVE_MALLOC_H
+#ifndef LIGHTTPD_STATIC
+#ifdef HAVE_DLFCN_H
+#include <dlfcn.h>
+#endif
+#endif
+#include <malloc.h>
+#endif
+
#include "sys-crypto.h"
#if defined(USE_OPENSSL_CRYPTO) ... |
VERSION bump to version 0.7.43 | @@ -38,7 +38,7 @@ set(CMAKE_C_FLAGS_DEBUG "-g -O0")
# set version
set(LIBNETCONF2_MAJOR_VERSION 0)
set(LIBNETCONF2_MINOR_VERSION 7)
-set(LIBNETCONF2_MICRO_VERSION 42)
+set(LIBNETCONF2_MICRO_VERSION 43)
set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION}.${LIBNETCONF2_MICRO_VERSION})
set(LI... |
Forcing UI SPI transfers to be synchronous | @@ -185,7 +185,11 @@ void InternalSendBytes(CLR_UINT8 *data, CLR_UINT32 length, bool sendAsync)
SPI_WRITE_READ_SETTINGS wrc;
wrc.Bits16ReadWrite = false;
- wrc.callback = sendAsync ? spi_callback : 0;
+
+ // setting this to 0 forces the transfer to be synchronous
+ // reverting to this for the time being until a defini... |
min dragging distance on slop | @@ -2369,7 +2369,8 @@ void drawwindow(const Arg *arg) {
c = selmon->sel;
- if (width > 50 && height > 50 && x > -40 && y > -40 && width < selmon->mw + 40 && height < selmon->mh + 40) {
+ if (width > 50 && height > 50 && x > -40 && y > -40 && width < selmon->mw + 40 && height < selmon->mh + 40 &&
+ (abs(c->w - width) > ... |
Use a slightly clearer example of the `doc` fun in README | @@ -58,9 +58,9 @@ Documentation is also available locally in the REPL.
Use the `(doc symbol-name)` macro to get API
documentation for symbols in the core library. For example,
```
-(doc doc)
+(doc apply)
```
-Shows documentation for the doc macro.
+Shows documentation for the `apply` function.
To get a list of all bind... |
doc: explain how to use perf with skb programs
explain how to use perf with skb programs | @@ -521,6 +521,8 @@ Return: 0 on success
A method of a BPF_PERF_OUTPUT table, for submitting custom event data to user space. See the BPF_PERF_OUTPUT entry. (This ultimately calls bpf_perf_event_output().)
+The ```ctx``` parameter is provided in [kprobes](#1-kprobes) or [kretprobes](#2-kretprobes). For ```SCHED_CLS``` ... |
Add device model_numbers | @@ -282,7 +282,8 @@ struct key_value model_number_subtypes[] = {
{"Knuckles Left", SURVIVE_OBJECT_SUBTYPE_KNUCKLES_L}, {"Knuckles EV3.0 Left", SURVIVE_OBJECT_SUBTYPE_KNUCKLES_L},
{"Utah MP", SURVIVE_OBJECT_SUBTYPE_INDEX_HMD}, {"Vive Controller MV", SURVIVE_OBJECT_SUBTYPE_WAND},
{"Vive. Controller MV", SURVIVE_OBJECT_SU... |
sdio_slave: fix the recv crash when trans finish and load at the same time | @@ -1143,9 +1143,12 @@ static void sdio_intr_recv(void* arg)
// This may cause the ``cur_ret`` pointer to be NULL, indicating the list is empty,
// in this case the ``tx_done`` should happen no longer until new desc is appended.
// The app is responsible to place the pointer to the right place again when appending new ... |
[mod_auth] include unistd.h for crypt() on Mac OS | #elif defined(__linux__)
/* linux needs _XOPEN_SOURCE */
# define _XOPEN_SOURCE
+#elif defined(__APPLE__) && defined(__MACH__)
+#include <unistd.h>
#endif
#if defined(HAVE_LIBCRYPT) && !defined(HAVE_CRYPT)
|
fix issue when SSL_read/SSL_write are not funchooked when attaching to a running process (i.e node js process) | @@ -1048,20 +1048,6 @@ load_func(const char *module, const char *func)
return addr;
}
-static int
-findLibscopePath(struct dl_phdr_info *info, size_t size, void *data)
-{
- int len = strlen(info->dlpi_name);
- int libscope_so_len = 11;
-
- if(len > libscope_so_len && !strcmp(info->dlpi_name + len - libscope_so_len, "li... |
Adds link to blocking issue to enable upload to coveralls | @@ -41,6 +41,7 @@ jobs:
make coverage
lcx="lcov --output-file=coverage.info " && for i in `find . -name "*.info.cleaned"`; do lcx+=" --add-tracefile=$i"; done && $lcx
# NOTE For now disabled, need to be able to configure coveralls thresholds
+# See https://github.com/lemurheavy/coveralls-public/issues/1431
# - name: Co... |
fix: reset discord_gateway states after complete shutdown | @@ -1123,6 +1123,10 @@ discord_gateway_run(struct discord_gateway *gw)
++gw->reconnect.attempt;
log_info("Reconnect attempt #%d", gw->reconnect.attempt);
}
+ // reset if set
+ gw->is_resumable = false;
+ gw->reconnect.enable = false;
+ gw->reconnect.attempt = 0;
log_error("Could not reconnect to Discord Gateway after %... |
extmod/moducryptolib: Use "static" not "STATIC" for inline functions. | @@ -89,7 +89,7 @@ typedef struct _mp_obj_aes_t {
uint8_t key_type: 2;
} mp_obj_aes_t;
-STATIC inline bool is_ctr_mode(int block_mode) {
+static inline bool is_ctr_mode(int block_mode) {
#if MICROPY_PY_UCRYPTOLIB_CTR
return block_mode == UCRYPTOLIB_MODE_CTR;
#else
@@ -97,7 +97,7 @@ STATIC inline bool is_ctr_mode(int blo... |
ci: Fix build error | @@ -69,7 +69,7 @@ jobs:
./ci/build_nghttp3.sh
- name: Setup environment variables
run: |
- PKG_CONFIG_PATH="$PWD/openssl/build/lib/pkgconfig:$PWD/nghttp3/build/lib/pkgconfig:$PWD/gnutls-3.7.2/build/lib/pkgconfig:$PWD/nettle-3.6/build/lib64/pkgconfig"
+ PKG_CONFIG_PATH="$PWD/openssl/build/lib/pkgconfig:$PWD/openssl/buil... |
[Kernel] amc allows the Rust file manager to launch files | @@ -148,7 +148,12 @@ static void _trampoline(const char* program_name, void* buf, uint32_t buf_size)
static void _amc_core_file_manager_exec_buffer(const char* source_service, void* buf, uint32_t buf_size) {
// Only file_manager is allowed to invoke this code!
- assert(!strncmp(source_service, "com.axle.file_manager", ... |
SOVERSION bump to version 4.3.14 | @@ -39,7 +39,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_
# with backward compatible change and micro version is connected with any internal change of the library.
set(SYSREPO_MAJOR_SOVERSION 4)
set(SYSREPO_MINOR_SOVERSION 3)
-set(SYSREPO_MICRO_SOVERSION 13)
+set(SYSREPO_MICRO_S... |
hv: serializng: use mfence to ensure trampoline code was updated
Using the MFENCE to make sure trampoline code
has been updated (clflush) into memory beforing start APs. | @@ -322,6 +322,10 @@ static void start_pcpu(uint16_t pcpu_id)
write_trampoline_stack_sym(pcpu_id);
clac();
+ /* Using the MFENCE to make sure trampoline code
+ * has been updated (clflush) into memory beforing start APs.
+ */
+ cpu_memory_barrier();
send_startup_ipi(pcpu_id, startup_paddr);
/* Wait until the pcpu with ... |
Ensure all node identifers are compiled to Prolog atoms | @@ -35,7 +35,7 @@ instance PrologGenerator AST.NetSpec where
in predicate "net" [atom, node] ++ "."
instance PrologGenerator AST.NodeId where
- generate (AST.NodeId id) = map toLower id
+ generate (AST.NodeId id) = quotes $ map toLower id
instance PrologGenerator AST.NodeSpec where
generate nodeSpec = predicate "node" ... |
bonding: fix packet trace in bond-input | @@ -331,15 +331,11 @@ VLIB_NODE_FN (bond_input_node) (vlib_main_t * vm,
sw_if_index = sw_if_indices;
next = nexts;
bond_packet_trace_t *t0;
- uword n_trace = vlib_get_trace_count (vm, node);
- while (n_left && n_trace)
+ while (n_left)
{
if (PREDICT_FALSE (b[0]->flags & VLIB_BUFFER_IS_TRACED))
{
- vlib_trace_buffer (vm... |
nimble/gap: Fix error code on closing already closed periodic sync | @@ -3423,10 +3423,8 @@ ble_gap_periodic_adv_terminate_sync(uint16_t sync_handle)
* the app wants to terminate that sync handle */
psync = ble_hs_periodic_sync_find(sync_handle);
if (!psync) {
- /* Sync already terminated. TODO: Not sure what error code
- * describes this scnario the best */
- rc = BLE_HS_EALREADY;
- go... |
ci/integration-tests: Install fixed versions of SPOv0.4.2 and CertManagerv1.7.2
Use the latest releases and do not patch the
security-profiles-operator-webhook was removed in | @@ -92,9 +92,9 @@ var deploySPO *command = &command{
// security-profiles-operator-webhook to be started, hence the long
// timeout
cmd: `
- kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v1.7.1/cert-manager.yaml
+ kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/... |
Avoid flushing amid packet on sudden connection termination | @@ -384,7 +384,7 @@ od_relay_flush(od_relay_t *relay)
if (relay->dst == NULL)
return OD_OK;
- if (! machine_iov_pending(relay->iov))
+ if (! machine_iov_pending(relay->iov) && (relay->packet == 0))
return OD_OK;
int rc;
@@ -392,7 +392,7 @@ od_relay_flush(od_relay_t *relay)
if (rc != OD_OK)
return rc;
- if (! machine_io... |
Make auxiliary function static | @@ -467,7 +467,7 @@ exit:
return( status );
}
-void aead_multipart_decrypt_internal( int key_type_arg, data_t *key_data,
+static void aead_multipart_decrypt_internal( int key_type_arg, data_t *key_data,
int alg_arg,
data_t *nonce,
data_t *additional_data,
|
Move special cases of config to separate function | #include "recon.h"
+static void set_bloch_conf(enum mdb_t mode, struct mdb_irgnm_l1_conf* conf2, struct moba_conf_s* data)
+{
+
+ // T2 estimation turned off for IR FLASH Simulation
+
+ if (MDB_BLOCH == mode) {
+
+ assert(NULL != data);
+
+ if (SEQ_IRFLASH == data->sim.seq.seq_type) {
+
+ conf2->constrained_maps = 1; /... |
Fix assertion failure in ngtcp2_conn_loss_detection_timer
Don't reset cstat->last_tx_pkt_ts which makes assert(earliest_pktns)
fail. | @@ -514,16 +514,22 @@ static int ts_retired_less(const ngtcp2_pq_entry *lhs,
}
static void conn_reset_conn_stat(ngtcp2_conn *conn, ngtcp2_conn_stat *cstat) {
- memset(cstat, 0, sizeof(*cstat));
+ cstat->latest_rtt = 0;
+ cstat->min_rtt = UINT64_MAX;
cstat->smoothed_rtt = NGTCP2_DEFAULT_INITIAL_RTT;
cstat->rttvar = NGTC... |
Compile triggers | @@ -111,17 +111,6 @@ const compile = async (
// Add scene data
const scenePtrs = precompiled.sceneData.map((scene, sceneIndex) => {
- // console.log("SCENE: " + sceneIndex, {
- // imageIndex: scene.imageIndex,
- // hi: hi(scene.imageIndex),
- // lo: lo(scene.imageIndex),
- // spriteLen: scene.sprites.length,
- // sprti... |
Update PORT_LIBRARY.md | @@ -66,21 +66,7 @@ When the extension compiled, see the content of the `build/lib[..]`. You should
Now, if you have many `.so` files, this will be hard. `.so` files cannot be directly embedded on the app bundle because the App Store will automatically reject that.
We have to make frameworks from those binaries.
-`cd` i... |
s390x assembly pack: fix x448 handling of non-canonical values
The s390x x448 implementation does not correctly reduce non-canonical
values i.e., u-coordinates >= p = 2^448 - 2^224 - 1. | @@ -907,11 +907,9 @@ static void s390x_x448_mod_p(unsigned char u[56])
c >>= 8;
}
- if (u_red[0] & 0x80) {
- u_red[0] &= 0x7f;
+ if (c)
memcpy(u, u_red, sizeof(u_red));
}
-}
static int s390x_x25519_mul(unsigned char u_dst[32],
const unsigned char u_src[32],
@@ -966,7 +964,7 @@ static int s390x_x448_mul(unsigned char u_... |
constrain replace | @@ -25,7 +25,7 @@ import("core.project.project")
function _get_builtinvars(target, installdir)
return {TARGETNAME = target:name(),
PROJECTNAME = project.name() or target:name(),
- TARGETFILENAME = path.filename(target:targetfile()):replace("dll", "lib"),
+ TARGETFILENAME = is_plat("windows", "mingw") and path.filename(... |
add unit test for YAML anchors | @@ -2402,6 +2402,68 @@ cfgReadCustomOrder(void **state)
cfgDestroy(&config);
}
+static void
+cfgReadCustomAnchor(void **state)
+{
+ const char *yamlText =
+ // define a config using an anchor
+ "disable-metrics: &disable-metrics\n"
+ " metric:\n"
+ " enable: false\n"
+ "custom:\n"
+ " eg1:\n"
+ " filter:\n"
+ " procnam... |
[mod_webdav] ignore PROPFIND Depth for files
(thx meeb5)
ignore PROPFIND "Depth" request header for files (non-collections)
RFC4918 10.2. Depth Header
"If a resource does not have internal members, then the Depth header MUST be ignored."
x-ref:
"Webdav + rclone backup" | @@ -4014,9 +4014,8 @@ mod_webdav_propfind (request_st * const r, const plugin_config * const pconf)
http_status_set_error(r, 403);
return HANDLER_FINISHED;
}
- else if (0 != pb.depth) {
- http_status_set_error(r, 403);
- return HANDLER_FINISHED;
+ else {
+ pb.depth = 0;
}
pb.proplist.ptr = NULL;
|
Enable CRT_SHADER_SUPPORT and SDLGPU in wasm build | @@ -78,6 +78,10 @@ if(NOT BUILD_SDL)
set(BUILD_SDLGPU OFF)
endif()
+if (EMSCRIPTEN)
+ set(BUILD_SDLGPU ON)
+endif()
+
message("BUILD_SDLGPU: ${BUILD_SDLGPU}")
message("BUILD_TOUCH_INPUT: ${BUILD_TOUCH_INPUT}")
@@ -746,6 +750,10 @@ if(BUILD_SDLGPU)
target_compile_definitions(tic80studio PUBLIC CRT_SHADER_SUPPORT)
endif(... |
Style fixed for keyboard.c | * Update the shortcut model state in response to new input
*/
static void update_shortcut_model(struct sway_shortcut_state *state,
- struct wlr_event_keyboard_key * event,
- uint32_t new_key,
+ struct wlr_event_keyboard_key *event, uint32_t new_key,
bool last_key_was_a_modifier) {
if (event->state == WLR_KEY_PRESSED) {... |
Bundle step for source | @@ -34,6 +34,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ - name: Bundle
+ working-directory: ${{runner.workspace}}/libsurvive
+ run: 7z a ${{runner.workspace}}/${{ steps.bundle.outputs.BUNDLE_FILE_NAME }} ${{runner.workspace}}/libsurvive
+
- uses: actions/upload-artifact@v2
name: Upload
with:
|
BugID:17784971:move kernel/hal to osal 5 | @@ -27,7 +27,7 @@ $(NAME)_SOURCES-y += interfaces/netmgr_net.c
GLOBAL_INCLUDES-y += ../include/hal/
endif
-$(NAME)_COMPONENTS-y += kernel.fs.kv yloop kernel.hal
+$(NAME)_COMPONENTS-y += kernel.fs.kv yloop
GLOBAL_INCLUDES-y += include ../../middleware/alink/protocol/os/platform/
|
symbols: Add libelektra_1.0 as new version | @@ -9,6 +9,9 @@ libelektra_0.8 {
libelektra_0.9 {
} libelektra_0.8;
+libelektra_1.0 {
+} libelektra_0.9;
+
# This is used for private symbols, which shall only be used by Elektra itself.
# In future this may be used for ABI-checking tools.
#
|
tests: runtime: filter_parser: fix test case, use new double timestamp | @@ -101,7 +101,7 @@ void flb_test_filter_parser_extract_fields()
TEST_CHECK_(output != NULL, "Expected output to not be NULL");
if (output != NULL) {
/* check timestamp */
- expected = "[\"\\x56\\x54\\xffffffe1\\xffffff8c\\x00\\x00\\x00\\x00\", {";
+ expected = "[1448403340.000000, {";
TEST_CHECK_(strstr(output, expect... |
HyperV storage driver: use LUN as volume attachment point
The Azure API allows specifying a LUN (Logical Unit Number) when
attaching a volume to an instance, thus the LUN value can be used
in the disk driver to identify the volume attachment point. | @@ -732,7 +732,7 @@ closure_function(5, 0, void, storvsc_read_capacity_done,
block_io in = closure(s->general, storvsc_read, s);
block_io out = closure(s->general, storvsc_write, s);
- apply(bound(a), storage_init_req_handler(&s->req_handler, in, out), s->capacity, -1);
+ apply(bound(a), storage_init_req_handler(&s->re... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.