message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
docker: alpine release image add ALLUSERSPROFILE to env | @@ -96,6 +96,7 @@ RUN echo "%wheel ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
RUN echo "alias sudo='sudo -i' # in this image we do not need to be root" >> /etc/profile
RUN echo "export PS1='\u $ '" >> /etc/profile
RUN echo "export LD_LIBRARY_PATH=/usr/local/lib/elektra/" >> /etc/profile
+RUN echo "export ALLUSERSPROFILE=... |
Fix - POLLHUP should cause us to continue reading. | @@ -1614,8 +1614,7 @@ JanetAsyncStatus ev_machine_read(JanetListenerState *s, JanetAsyncEvent event) {
}
break;
#else
- case JANET_ASYNC_EVENT_ERR:
- case JANET_ASYNC_EVENT_HUP: {
+ case JANET_ASYNC_EVENT_ERR: {
if (state->bytes_read) {
janet_schedule(s->fiber, janet_wrap_buffer(state->buf));
} else {
@@ -1623,6 +1622,... |
dm: fix compilation issue with gcc10
Fix compilation issue when using gcc 10.x due to the "__packed"
attribute in acpi.h. Explicitly changing that to __attribute__((packed))
fixes the compilation error. | @@ -58,7 +58,7 @@ struct acpi_table_hdr {
char asl_compiler_id[4];
/* ASL compiler version */
uint32_t asl_compiler_revision;
-} __packed;
+} __attribute__((packed));
/* All dynamic table entry no. */
#define NHLT_ENTRY_NO 8
|
Release notes for bk-7.3.2
bk: 59c635b6EIHnee_62UirHluTAhslXQ | +# BitKeeper version 7.3.2 released Sep 23 2017
+
+A small collection of bugfixes
+
+- Improve the error message when bk fails to allocate a temp file
+ https://users.bitkeeper.org/t/read-only-file-system-causes-suboptimal-error-message/478
+
+- Clear BK_CONFIG before running regressions
+ https://users.bitkeeper.org/t... |
stm32g0431/441: update doc | @@ -550,6 +550,9 @@ static const struct stlink_chipid_params devices[] = {
.flash_type = STLINK_FLASH_TYPE_G4,
.flash_size_reg = 0x1FFF75E0, // Section 47.2
.flash_pagesize = 0x800, // 2K (sec 3.3.1)
+ // SRAM1 is 16k at 0x20000000
+ // SRAM2 is 6k at 0x20014000
+ // SRAM3/CCM is 10k at 0x10000000, aliased at 0x2001800... |
Test the default key length of the Blowfish ciphers | @@ -3267,6 +3267,31 @@ err:
}
#endif
+#ifndef OPENSSL_NO_BF
+static int test_evp_bf_default_keylen(int idx)
+{
+ int ret = 0;
+ static const char *algos[4] = {
+ "bf-ecb", "bf-cbc", "bf-cfb", "bf-ofb"
+ };
+ int ivlen[4] = { 0, 8, 8, 8 };
+ EVP_CIPHER *cipher = NULL;
+
+ if (lgcyprov == NULL)
+ return TEST_skip("Test r... |
Remove unused argument of ATAddForeignConstraint
Commit made this unused but forgot to remove it. Do so now.
Author: Amit Langote
Discussion: | @@ -477,7 +477,7 @@ static ObjectAddress ATAddCheckConstraint(List **wqueue,
bool recurse, bool recursing, bool is_readd,
LOCKMODE lockmode);
static ObjectAddress ATAddForeignKeyConstraint(List **wqueue, AlteredTableInfo *tab,
- Relation rel, Constraint *fkconstraint, Oid parentConstr,
+ Relation rel, Constraint *fkcon... |
fix(specs-gen): circular conflict caused by linking to a already included .c file | @@ -55,7 +55,6 @@ SPECSGEN_SRC := $(CEE_UTILS_DIR)/cee-utils.c \
$(CEE_UTILS_DIR)/ntl.c \
$(CEE_UTILS_DIR)/json-string.c \
$(CEE_UTILS_DIR)/json-scanf.c \
- $(CEE_UTILS_DIR)/json-struct.c \
$(CEE_UTILS_DIR)/json-printf.c \
$(CEE_UTILS_DIR)/log.c \
specs/specs-gen.c
|
Modified INSTALL to include matplotlib dependence. | @@ -5,8 +5,9 @@ simulate the examples in this repository.
1. Ensure you have installed the following:
A. A C compiler, e.g. gcc, clang, etc.
- B. Python 3.x [Note that this should be the python in your PATH]
+ B. Python 3.x [Note that this version should be the python in your PATH]
N.B. We recommend installing python v... |
docs/library/machine: Remove conditional docs for wake_reason function.
And instead list its availability explicitly. | @@ -74,12 +74,12 @@ Power related functions
to know that we are coming from `machine.DEEPSLEEP`. For wake up to actually happen,
wake sources should be configured first, like `Pin` change or `RTC` timeout.
-.. only:: port_wipy
-
.. function:: wake_reason()
Get the wake reason. See :ref:`constants <machine_constants>` f... |
pmconfig: add last state and modify current state to next state | @@ -180,7 +180,8 @@ int cmd_pmconfig(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
if (argc <= 2)
{
- int current_state;
+ int next_state;
+ int last_state;
int normal_count;
int idle_count;
int standby_count;
@@ -193,7 +194,11 @@ int cmd_pmconfig(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
ctrl.action = ... |
build: adding repology badge, callout to luzpaz | @@ -7,6 +7,7 @@ Software-Defined Radio Digital Signal Processing Library -
[](https://travis-ci.org/jgaeddert/liquid-dsp)
[](https://choosealicense.com/licenses/mit/)
... |
fix sawscript for bitfields | @@ -59,8 +59,18 @@ let config_cca_type config = (crucible_field config "client_cert_auth_type");
let ocsp_status_size cert_and_key =
crucible_field (crucible_field (cert_and_key) "ocsp_status") "size";
-//conn->config->use_tickets
-let config_use_tickets config = (crucible_field config "use_tickets");
+//conn->config->... |
examples/tls_server: fix svace warning
This commit fixes svace warning about UNREACHABLE_CODE. | @@ -1736,12 +1736,12 @@ usage:
#if defined(MBEDTLS_FS_IO)
if (opt.dhm_file != NULL) {
ret = mbedtls_ssl_conf_dh_param_ctx(&conf, &dhm);
- }
-#endif
if (ret != 0) {
mbedtls_printf(" failed\n mbedtls_ssl_conf_dh_param returned -0x%04X\n\n", -ret);
goto exit;
}
+ }
+#endif
#endif
if (opt.min_version != DFL_MIN_VERSION) {
|
Fix `make clean` issue with gp_replica_check
Author: Ashwin Agrawal
Author: Xin Zhang | @@ -3,9 +3,16 @@ DATA = gp_replica_check--0.0.1.sql
MODULES = gp_replica_check
SCRIPTS = gp_replica_check.py
+ifdef USE_PGXS
PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
+else
+subdir = contrib/gp_replica_check
+top_builddir = ../..
+include $(top_builddir)/src/Makefile.global
+include $(t... |
Documentation change only: document how to leave unwanted network types out (using the _stub.c files). | @@ -5,6 +5,9 @@ For any other operations the same handle as returned by the network API may be u
This is not a "manager", it is not smart, it solely exists to allow applications to obtain a connection without caring about the details of the connection other than making a choice between cellular, Wi-Fi etc. Note that th... |
Add flag for 519.clvleaf -Mx,201,2 | @@ -113,6 +113,9 @@ FPPPORTABILITY += -DSPEC_USE_MPIFH -I${MPI}/include/
513.soma_t,613.soma_s:
PORTABILITY += -DSPEC_NO_VAR_ARRAY_REDUCE
# OPTIMIZE += -fno-openmp-target-ignore-env-vars
+ 519.clvleaf_t:
+ FOPTIMIZE += -Mx,201,2 # workaround for map copy issue
+
%endif
%if %{model} eq 'omp_host_target'
|
[ivshmem] Fixed infinite loop when releasing the device | @@ -245,6 +245,8 @@ NTSTATUS IVSHMEMEvtDeviceReleaseHardware(_In_ WDFDEVICE Device, _In_ WDFCMRESLIS
event->owner = NULL;
event->event = NULL;
event->vector = 0;
+
+ entry = entry->Flink;
}
InitializeListHead(&deviceContext->eventList);
deviceContext->eventBufferUsed = 0;
|
reformat proposal | @@ -94,8 +94,7 @@ typedef struct
char * tmpFile;
} ElektraResolved;
-typedef enum
-{
+typedef enum {
ELEKTRA_RESOLVER_TEMPFILE_NONE,
ELEKTRA_RESOLVER_TEMPFILE_SAMEDIR,
ELEKTRA_RESOLVER_TEMPFILE_TMPDIR,
|
Named magic number. | %+ welp /circle/[inbox]/grams/config/group
?. =(0 last)
[(scot %ud last) ~]
- [(scot %da (sub now.bol ~d5)) ~]
+ =+ history-days=~d5
+ [(scot %da (sub now.bol history-days)) ~]
==
::
:> #
|
Date: update function name | @@ -399,7 +399,7 @@ static int rfc822StringValidation (const char * date)
return -1;
}
-static int validateDate (Key * key, Key * parentKey)
+static int validateKey (Key * key, Key * parentKey)
{
const Key * standard = keyGetMeta (key, "check/date");
const Key * formatStringMeta = keyGetMeta (key, "check/date/format");... |
lv_label effect area clip line space | @@ -1383,13 +1383,22 @@ static void lv_label_refr_text(lv_obj_t * label)
}
else {
lv_point_t p;
+ lv_coord_t y_overed;
p.x = lv_area_get_width(&txt_coords) -
(lv_font_get_glyph_width(font, '.', '.') + letter_space) *
LV_LABEL_DOT_NUM; /*Shrink with dots*/
p.y = lv_area_get_height(&txt_coords);
- p.y -= p.y %
+ y_overed... |
add missing ! for wl seat caps | @@ -193,7 +193,7 @@ static void seat_handle_capabilities(void *data, struct wl_seat *seat,
if ((caps & WL_SEAT_CAPABILITY_KEYBOARD) && !reg->keyboard) {
reg->keyboard = wl_seat_get_keyboard(reg->seat);
wl_keyboard_add_listener(reg->keyboard, &keyboard_listener, reg);
- } else if ((caps & WL_SEAT_CAPABILITY_KEYBOARD) &&... |
Symtab: The 'next_class_id' field should be 16, not 32. | @@ -26,11 +26,11 @@ typedef struct lily_symtab_ {
/* Each class gets a unique id. This is mostly for the builtin classes
which have some special behavior sometimes. */
- uint32_t next_class_id;
+ uint16_t next_class_id;
uint16_t next_global_id;
- uint16_t pad;
+ uint32_t pad;
/* These classes are used frequently throug... |
crypto_test: add a mutex to serialize prints
The concurrency test output is garbled and difficult
to read when the lines don't get printed completely.
Avoid this by using a mutex. | @@ -44,6 +44,8 @@ struct test_vectors {
struct vector_data vectors[];
};
+static struct os_mutex mtx;
+
/*
* Test vectors from "NIST Special Publication 800-38A"
*/
@@ -348,6 +350,24 @@ run_ctr_bench(struct crypto_dev *crypto, uint8_t iter)
}
#endif /* MYNEWT_VAL(CRYPTOTEST_BENCHMARK) */
+static void
+lock(void)
+{
+ i... |
testbench - create tasks after test reg
Creating the tasks early causes a crash. | @@ -358,8 +358,6 @@ main(int argc, char **argv)
conf_load();
- rc = init_tasks();
-
/*
* Register the tests that can be run by lookup
* - each test is added to the ts_suites slist
@@ -369,6 +367,8 @@ main(int argc, char **argv)
TEST_SUITE_REGISTER(testbench_sem);
TEST_SUITE_REGISTER(testbench_json);
+ rc = init_tasks()... |
Do not register nonexistent crypto providers during lookup
As per previous commit, but using a copy of the iterator
instead of a reference, in case of iterator lifetime issues.
Tested-by: Build Bot | @@ -88,8 +88,8 @@ static bool lcbcrypto_is_valid(lcbcrypto_PROVIDER *provider)
static lcbcrypto_PROVIDER *lcb_get_provider(const lcb_st *instance, const std::string &alg)
{
- const lcb_st::lcb_ProviderMap::iterator &iterator = (*instance->crypto).find(alg);
- return iterator != (*instance->crypto).end() ? iterator->sec... |
breakwater: update README | @@ -5,7 +5,75 @@ microseconds-level RPCs. This repo includes
Shenango implementation of Breakwater as a library of
RPC layer.
-## How to enable Breakwater
+## Reproducing results in the paper
+The results in the paper were generated with 11 machines
+(10 clients and 1 server) of
+xl170 in [Cloudlab](https://cloudlab.us... |
redis-cli: support for REDIS_REPLY_SET in CSV and RAW output.
Fixes Added support of REDIS_REPLY_SET in raw and csv output of `./redis-cli`
Test:
run commands to test:
./redis-cli -3 --csv COMMAND
./redis-cli -3 --raw COMMAND
Now they are returning resuts, were failing with: "Unknown reply type: 10" before the change. | @@ -1159,6 +1159,7 @@ static sds cliFormatReplyRaw(redisReply *r) {
case REDIS_REPLY_DOUBLE:
out = sdscatprintf(out,"%s",r->str);
break;
+ case REDIS_REPLY_SET:
case REDIS_REPLY_ARRAY:
case REDIS_REPLY_PUSH:
for (i = 0; i < r->elements; i++) {
@@ -1217,6 +1218,7 @@ static sds cliFormatReplyCSV(redisReply *r) {
out = sd... |
Update hyperlink for *Blockchain IoT Module Whitepaper* and *Blockchain IoT Module Technology and Application* | @@ -119,10 +119,10 @@ See [Supported List](./SUPPORTED_LIST.md) for supported blockchains and IoT modu
## Documentation
### Blockchain IoT Module Whitepaper
-See [BoAT Blockchain IoT Module Product White Paper](./docs/en-us/BoAT_Blockchain_IoT_Module_Product_White_Paper_en.pdf).
+See [BoAT Blockchain IoT Module Product... |
chat-cli: maintain sane glyph binding state
This ensures that `binds` is updated to match overwrites in `bounds`. | $: grams=(list mail) :: all messages
known=(set [target serial]) :: known message lookup
count=@ud :: (lent grams)
- bound=(map target char) :: bound circle glyphs
- binds=(jug char target) :: circle glyph lookup
+ bound=(map target glyph) :: bound circle glyphs
+ binds=(jug glyph target) :: circle glyph lookup
audienc... |
Update actuator.js
fix esp32 servo | @@ -17,7 +17,15 @@ Blockly.Arduino.servo_move = function() {
var code = 'servo_'+dropdown_pin+'.write('+value_degree+');\n'+'delay(' + delay_time + ');\n';
return code;
};
-
+Blockly.Arduino.servo_writeMicroseconds = function() {
+ var dropdown_pin = this.getFieldValue('PIN');
+ var value_degree = Blockly.Arduino.value... |
Update early data test cases | @@ -80,14 +80,14 @@ fi
if [ -n "${OPENSSL_NEXT:-}" ]; then
O_NEXT_SRV="$OPENSSL_NEXT s_server -www -cert data_files/server5.crt -key data_files/server5.key"
- O_NEXT_SRV_NO_WWW="$OPENSSL_NEXT s_server -cert data_files/server5.crt -key data_files/server5.key"
+ O_NEXT_SRV_EARLY_DATA="$OPENSSL_NEXT s_server -early_data -... |
reverting "fix" to GenericExecute method | @@ -163,10 +163,6 @@ vtkDataSetRemoveGhostCells::RequestData(
// Eric Brugger, Wed Jan 9 14:56:57 PST 2013
// Modified to inherit from vtkDataSetAlgorithm.
//
-// Mark C. Miller, Sun Jan 13 23:43:14 CST 2019
-// Fix to filter on GhostZoneTypesToRemove. Also add optimizations for
-// when GhostZoneTypesToRemove is 0xFF ... |
hslua-module-text: update copyright notices, it's 2021 | -Copyright (c) 2017-2020 Albert Krewinkel
+Copyright (c) 2017-2021 Albert Krewinkel
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
|
STORE: Use the same error avoidance criteria as for the DER->key decoder | @@ -101,7 +101,9 @@ static int der2obj_decode(void *provctx, OSSL_CORE_BIO *cin, int selection,
err = ERR_peek_last_error();
if (ERR_GET_LIB(err) == ERR_LIB_ASN1
&& (ERR_GET_REASON(err) == ASN1_R_HEADER_TOO_LONG
- || ERR_GET_REASON(err) == ERR_R_NESTED_ASN1_ERROR))
+ || ERR_GET_REASON(err) == ASN1_R_UNSUPPORTED_TYPE
+ ... |
Improve comments explaining stubs in DHCPProcess harness. | @@ -34,10 +34,14 @@ void *FreeRTOS_GetUDPPayloadBuffer( size_t xRequestedSizeBytes, TickType_t xBloc
}
/*
- * In this stub we allocate a buffer within the specified range
- * Note that the values for BUFFER_SIZE and prvProcessDHCPReplies.0
- * are correlated, and their current values have been adjusted in order
- * to ... |
Fix typo in DEBUG REPLYBUFFER RESIZING comment
This command is related with reply buffer, not replay buffer | @@ -489,7 +489,7 @@ void debugCommand(client *c) {
" In case NEVER is provided the last observed peak will never be reset",
" In case RESET is provided the peak reset time will be restored to the default value",
"REPLYBUFFER RESIZING <0|1>",
-" Enable or disable the replay buffer resize cron job",
+" Enable or disable ... |
chain_build(): Call verify_cb_cert() if a preliminary error has become final | @@ -352,7 +352,7 @@ static int check_issued(ossl_unused X509_STORE_CTX *ctx, X509 *x, X509 *issuer)
*/
if (err != X509_V_ERR_SUBJECT_ISSUER_MISMATCH)
ctx->error = err;
- return 0; /* Better call verify_cb_cert(ctx, x, ctx->error_depth, err) ? */
+ return 0;
}
/*
@@ -3282,10 +3282,17 @@ static int build_chain(X509_STORE... |
/oic/res needs to be discoverable.
Tested-by: Kishen Maloor | @@ -463,8 +463,8 @@ void
oc_create_discovery_resource(int resource_idx, int device)
{
oc_core_populate_resource(
- resource_idx, device, "oic/res", OC_IF_LL | OC_IF_BASELINE, OC_IF_LL, 0,
- oc_core_discovery_handler, 0, 0, 0, 1, "oic.wk.res");
+ resource_idx, device, "oic/res", OC_IF_LL | OC_IF_BASELINE, OC_IF_LL,
+ OC... |
Finally get it hopefully right. | KASSERT(pthread_rwlock_unlock(&SCTP_BASE_INFO(ipi_ep_mtx)) == 0, ("%s: ipi_ep_mtx not locked", __func__))
#define SCTP_INP_INFO_WUNLOCK() \
KASSERT(pthread_rwlock_unlock(&SCTP_BASE_INFO(ipi_ep_mtx)) == 0, ("%s: ipi_ep_mtx not locked", __func__))
-#define SCTP_INP_INFO_WLOCK_ASSERT() do { \
- int _retval = pthread_rwloc... |
X509_dup: Avoid duplicating the embedded EVP_PKEY
The EVP_PKEY will be recreated from scratch which is OK.
Fixes | @@ -104,23 +104,6 @@ static int x509_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it,
if (!ossl_x509_set0_libctx(ret, old->libctx, old->propq))
return 0;
- if (old->cert_info.key != NULL) {
- EVP_PKEY *pkey = X509_PUBKEY_get0(old->cert_info.key);
-
- if (pkey != NULL) {
- pkey = EVP_PKEY_dup(pkey);
- if (pkey ... |
Clean up parse function. | @@ -333,17 +333,13 @@ const uint8_t* picoquic_parse_new_connection_id_frame(const uint8_t* bytes, cons
uint64_t* sequence, uint64_t* retire_before, uint8_t* cid_length, const uint8_t** cnxid_bytes,
const uint8_t** secret_bytes)
{
- if ((bytes = picoquic_frames_varint_decode(bytes + 1, bytes_max, sequence)) != NULL) {
-... |
http-socket.h: include cc.h instead of re-defining MAX | #define HTTP_SOCKET_H
#include "tcp-socket.h"
+#include "sys/cc.h"
struct http_socket;
@@ -62,8 +63,6 @@ typedef void (* http_socket_callback_t)(struct http_socket *s,
const uint8_t *data,
uint16_t datalen);
-#define MAX(n, m) (((n) < (m)) ? (m) : (n))
-
#define HTTP_SOCKET_INPUTBUFSIZE UIP_TCP_MSS
#define HTTP_SOCKET_... |
Minor code formatting updates across several files. | @@ -990,8 +990,7 @@ print_horizontal_dash (WINDOW * win, int y, int x, int len) {
/* Render left-aligned column label. */
static void
-lprint_col (WINDOW * win, int y, int *x, int len, const char *str)
-{
+lprint_col (WINDOW * win, int y, int *x, int len, const char *str) {
GColors *color = get_color (COLOR_PANEL_COLS)... |
kernel/binary_manager: Add dependency of BCH driver
Binary manager uses block driver to access flash partitions.
So it needs BCH (Block-to-Character) driver support. | @@ -1094,7 +1094,7 @@ config BINARY_MANAGER
bool "Enable Binary Manager"
default n
depends on APP_BINARY_SEPARATION && BINFMT_LOADABLE && !DISABLE_MQUEUE
- depends on MTD_FTL && FLASH_PARTITION && MTD_PARTITION_NAMES
+ depends on BCH && MTD_FTL && FLASH_PARTITION && MTD_PARTITION_NAMES
---help---
This is kernel thread ... |
Make test_alloc_realloc_group_choice() robust vs allocation changes | @@ -9488,7 +9488,9 @@ START_TEST(test_alloc_realloc_group_choice)
if (_XML_Parse_SINGLE_BYTES(parser, text, strlen(text),
XML_TRUE) != XML_STATUS_ERROR)
break;
- XML_ParserReset(parser, NULL);
+ /* See comment in test_alloc_parse_xdecl() */
+ alloc_teardown();
+ alloc_setup();
}
if (i == 0)
fail("Parse succeeded despit... |
move the whole before install | @@ -58,9 +58,16 @@ matrix:
- UBUNTU_TRUSTY=1
php: '7.x'
before_install:
- <<: *bi
- sudo add-apt-repository --yes ppa:llvm-toolchain-trusty
- sudo apt-get install -y clang-5.0
+ - sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test
+ - sudo apt-add-repository --yes ppa:smspillaz/cmake-2.8.12
+ - sudo apt-get --ye... |
In OOM case try to force collect memory and retry the allocation. | @@ -790,6 +790,24 @@ static mi_page_t* mi_huge_page_alloc(mi_heap_t* heap, size_t size) {
}
+static mi_page_t *_mi_find_page(mi_heap_t* heap, size_t size) mi_attr_noexcept {
+ // huge allocation?
+ const size_t req_size = size - MI_PADDING_SIZE; // correct for padding_size in case of an overflow on `size`
+ if (mi_unli... |
avx512f: use SIMDE_ASSUME_ALIGNED for _mm512_load_si512 | @@ -2037,12 +2037,10 @@ simde_mm512_load_si512 (void const * mem_addr) {
#if defined(SIMDE_X86_AVX512F_NATIVE)
return _mm512_load_si512(HEDLEY_REINTERPRET_CAST(void const*, mem_addr));
- #elif defined(SIMDE_ARCH_AARCH64) && (defined(HEDLEY_GCC_VERSION) && !HEDLEY_GCC_VERSION_CHECK(8,0,0))
+ #else
simde__m512i r;
- simd... |
Document failure return for ECDSA_SIG_new
ECDSA_SIG_new() returns NULL on error. | @@ -121,6 +121,8 @@ returned as a newly allocated B<ECDSA_SIG> structure (or NULL on error).
=head1 RETURN VALUES
+ECDSA_SIG_new() returns NULL if the allocation fails.
+
ECDSA_SIG_set0() returns 1 on success or 0 on failure.
ECDSA_SIG_get0_r() and ECDSA_SIG_get0_s() return the corresponding value,
|
More external entity allocation failure coverage | @@ -3824,6 +3824,63 @@ START_TEST(test_alloc_external_entity)
}
END_TEST
+/* Test more allocation failure paths */
+static int XMLCALL
+external_entity_alloc_set_encoding(XML_Parser parser,
+ const XML_Char *context,
+ const XML_Char *UNUSED_P(base),
+ const XML_Char *UNUSED_P(systemId),
+ const XML_Char *UNUSED_P(publ... |
storage: remove unused variables | static void print_storage_info(struct flb_config *ctx, struct cio_ctx *cio)
{
- size_t size;
char *sync;
char *checksum;
struct flb_input_instance *in;
@@ -187,7 +186,6 @@ int flb_storage_create(struct flb_config *ctx)
{
int ret;
int flags;
- size_t size;
struct flb_input_instance *in = NULL;
struct cio_ctx *cio;
|
Rework SWO output | #error "ITM port is not available on Cortex-M0(+) cores. Need to set CMake option SWO_OUTPUT to OFF."
#else
+// number of attempts to write to the ITM port before quit
+#define ITM_WRITE_ATTEMPTS 10
+
extern "C" void SwoInit()
{
// set SWO pin (PB3) to alternate mode (0 == the status after RESET)
@@ -57,7 +60,30 @@ ext... |
xpath BUGFIX unresolved value is valid | @@ -3333,6 +3333,9 @@ warn_equality_value(const struct lyxp_expr *exp, struct lyxp_set *set, uint16_t
if (type->basetype != LY_TYPE_IDENT) {
rc = type->plugin->store(set->ctx, type, value, strlen(value), 0, set->format, set->prefix_data,
LYD_HINT_DATA, scnode, &storage, &err);
+ if (rc == LY_EINCOMPLETE) {
+ rc = LY_SU... |
dpdk:remove duplicate code
unify code from both branches | @@ -522,34 +522,26 @@ dpdk_lib_init (dpdk_main_t * dm)
xd->per_interface_next_index = ~0;
/* assign interface to input thread */
- dpdk_device_and_queue_t *dq;
int q;
if (devconf->hqos_enabled)
{
xd->flags |= DPDK_DEVICE_FLAG_HQOS;
+ int cpu;
if (devconf->hqos.hqos_thread_valid)
{
- int cpu = dm->hqos_cpu_first_index +... |
add / edit card.js toggle | @@ -183,3 +183,4 @@ export class NewScreen extends Component {
}
export default NewScreen
+
\ No newline at end of file
|
Added information about docker image | @@ -66,6 +66,22 @@ You can put this in your ``.bashrc`` or equivalent environment setup file to get
These variables need to be set for the ``make`` system to work properly.
+Pre-built Docker Image
+-------------------------------------------
+
+An alternative to setting up the Chipyard repository locally is to pull the... |
almost there with counter's madness | * For information on usage and redistribution, and for a DISCLAIMER OF ALL
* WARRANTIES, see the file, "LICENSE.txt," in this distribution. */
-/* This is an entirely rewritten version of Joseph A. Sarlo's code.
- The most important changes are listed in "pd-lib-notes.txt" file. */
+/* rewritten version of Joseph A. Sa... |
fix(obj): fixed warning when using clang compiler on macOS | @@ -27,8 +27,11 @@ extern "C" {
**********************/
/*Can't include lv_obj.h because it includes this header file*/
struct _lv_obj_t;
+
+#ifndef LV_OBJ_H
typedef uint32_t lv_part_t;
typedef uint16_t lv_state_t;
+#endif
typedef enum {
_LV_STYLE_STATE_CMP_SAME, /*The style properties in the 2 states are identical*/
|
Only reset the ctx when a cipher is given
This restores the 1.0.2 behaviour
GH: | @@ -50,6 +50,7 @@ void EVP_CIPHER_CTX_free(EVP_CIPHER_CTX *ctx)
int EVP_CipherInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher,
const unsigned char *key, const unsigned char *iv, int enc)
{
+ if (cipher != NULL)
EVP_CIPHER_CTX_reset(ctx);
return EVP_CipherInit_ex(ctx, cipher, NULL, key, iv, enc);
}
|
Fix fallthrough warning on GCC7 | @@ -575,6 +575,7 @@ int main(int argc, char *argv[])
#else
printf(" >>> Streaming method (%d) NOT IMPLEMENTED \n", method);
method = 1;
+ break;
#endif
default:
printf(" >>> Default: Naive method (%d) \n", method);
|
Add board ID of KW41Z to BOARD_ID_LOCKED_WHEN_ERASED | @@ -211,6 +211,7 @@ BOARD_ID_LOCKED_WHEN_ERASED = set([
0x0262, # FRDM-KL43Z
0x0291, # FRDM-KL82Z
0x1022, # RO359B (K24F)
+ 0x0201, # KW41Z
])
#Hack until these targets have an image with a valid vector table
|
[codecs] Move to library/cpp | This is a simple library for block data compression (this means data is compressed/uncompressed
-by whole blocks in memory). It's a lite-version of the `library/codecs`. Lite here means that it
+by whole blocks in memory). It's a lite-version of the `library/cpp/codecs`. Lite here means that it
provide only well-known ... |
af_xdp: change RLIMIT_MEMLOCK before load bpf program
default RLIMIT_MEMLOCK is 64. if we use multi af_xdp interfaces or
load complex bpf program, libbpf will return permission error.
root cause is default 64 is not large enough. So we change it before
load bpf program.
Type: fix | #include <linux/ethtool.h>
#include <linux/if_link.h>
#include <linux/sockios.h>
+#include <linux/limits.h>
#include <bpf/libbpf.h>
#include <vlib/vlib.h>
#include <vlib/unix/unix.h>
@@ -197,6 +198,12 @@ static int
af_xdp_load_program (af_xdp_create_if_args_t * args, af_xdp_device_t * ad)
{
int fd;
+ struct rlimit r = ... |
libhfuzz: disable fortify-source for linux | @@ -46,6 +46,7 @@ ifeq ($(OS),Linux)
ARCH_LDFLAGS := -L/usr/local/include \
-lpthread -lunwind-ptrace -lunwind-generic -lbfd -lopcodes -lrt -ldl
ARCH_SRCS := $(sort $(wildcard linux/*.c))
+ LIBS_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
ifeq ("$(wildcard /usr/include/bfd.h)","")
WARN_LIBRARY += binutils-devel
|
Python Tutorial: Instructions for installation | When programming in Python it is possible to access the kdb database, changing values of existing keys, adding and deleting keys and a few other things.
+## Installation
+
+Either [build](https://www.libelektra.org/bindings/swig_python) the package or install from a repository.
+
+### Alpine Linux
+The [python bindings... |
build: fixing trivial typo in comment in global header | @@ -1768,7 +1768,7 @@ int SPWATERFALL(_set_dims)(SPWATERFALL() _q, \
\
/* Push a single sample into the object, executing internal transform */ \
/* as necessary. */ \
-/* _q : spgram object */ \
+/* _q : spwaterfall object */ \
/* _x : input sample */ \
void SPWATERFALL(_push)(SPWATERFALL() _q, \
TI _x); \
|
fix TB_SOCKET_TYPE_ICMP comment | @@ -59,10 +59,10 @@ typedef enum __tb_socket_type_e
, TB_SOCKET_TYPE_UDP = TB_SOCKET_TYPE_SOCK_DGRAM | TB_SOCKET_TYPE_IPPROTO_UDP
#if defined(TB_CONFIG_OS_MACOSX) || defined(TB_CONFIG_OS_IOS)
- // socket for icmp, only need user permission on macOS
+ // socket for icmp, only need user permission on macOS/iOS
, TB_SOCKE... |
Fix assert position | @@ -728,8 +728,6 @@ void Luos_SendData(service_t *service, msg_t *msg, void *bin_data, uint16_t size
******************************************************************************/
int Luos_ReceiveData(service_t *service, msg_t *msg, void *bin_data)
{
- LUOS_ASSERT(msg != 0);
- LUOS_ASSERT(bin_data != 0);
// Manage buf... |
document how to save using debugger | @@ -26,7 +26,19 @@ make bart
gdb --args bart <command> [<options> ...] <arg1> ...
-4. Then type 'run' to start the process. After it fails,
-type 'bt' to get a backtrace.
+4. Then type 'run' to start the process.
+
+If it crashes, you are back in the debugger. You can also
+type CTRL-C to interrupt it at any time.
+
+I... |
SOVERSION bump to version 7.13.12 | @@ -73,7 +73,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 7)
set(SYSREPO_MINOR_SOVERSION 13)
-set(SYSREPO_MICRO_SOVERSION 11)
+set(SYSREPO_MICRO_... |
Add a test for cbor_serialize_tag edgecases | @@ -402,6 +402,22 @@ static void test_serialize_tags(void **_CBOR_UNUSED(_state)) {
cbor_decref(&one);
}
+static void test_serialize_tags_no_space(void **_CBOR_UNUSED(_state)) {
+ cbor_item_t *item = cbor_new_tag(21);
+ cbor_item_t *one = cbor_build_uint8(1);
+ cbor_tag_set_item(item, one);
+ assert_int_equal(cbor_seri... |
board/wormdingler/board.h: Format with clang-format
BRANCH=none
TEST=none | @@ -80,10 +80,7 @@ enum sensor_id {
SENSOR_COUNT,
};
-enum pwm_channel {
- PWM_CH_DISPLIGHT = 0,
- PWM_CH_COUNT
-};
+enum pwm_channel { PWM_CH_DISPLIGHT = 0, PWM_CH_COUNT };
/* List of possible batteries */
enum battery_type {
|
BugID:17158311:initialize spiffs if this component included; remove tftp ota funtion as it is abandoned | #include <pwrmgmt_api.h>
#endif
+#ifdef AOS_COMP_SPIFFS
+#include <aos_spiffs.h>
+#endif
+
+
#include <network/network.h>
#ifdef WITH_LWIP_TFTP
#include "lwip/ip_addr.h"
@@ -104,7 +109,6 @@ static void tftp_get_done(int error, int len)
}
extern tftp_context_t client_ctx;
-extern tftp_context_t ota_ctx;
void ota_get_don... |
restore name and group settings | @@ -134,11 +134,11 @@ BuildRequires: kernel-devel = %{centos_kernel}
%endif
Summary: Lustre File System
-Name: %{lustre_name}
+Name: %{lustre_name}%{PROJ_DELIM}
Version: %{version}
Release: 1%{?dist}
License: GPL
-Group: Utilities/System
+Group: %{PROJ_NAME}/lustre
Source: lustre-%{version}.tar.gz
Source1: kmp-lustre.p... |
Added test case for WM1 wands | @@ -19,6 +19,7 @@ add_test(NAME lh2_test_cal COMMAND $<TARGET_FILE:test_replays> ${CMAKE_CURRE
if(PCAP_LIBRARY)
add_test(NAME lh2_test_cal_usb COMMAND $<TARGET_FILE:test_replays> ${CMAKE_CURRENT_BINARY_DIR}/libsurvive-extras-data/tests/lh2_test_cal.pcap.gz)
+ add_test(NAME wm1_wand_test_cal_usb COMMAND $<TARGET_FILE:te... |
docs: Add documentation for local-gadget top file. | @@ -239,6 +239,20 @@ docker-init 167857 142428 0 /usr/bin/docker-init --version
...
```
+### Top/File
+
+```bash
+$ sudo local-gadget top file
+CONTAINER PID COMM READS WRITES RBYTES WBYTES T FILE
+test-top-file 139255 sh 0 1 0B 4B R bar
+```
+
+The above output is the result of observing the following test container:
... |
Fix name mangling for C
This patch force the header to be compiled as C.
This behavior allows to use this library in a C program. | #ifndef AMD_VULKAN_MEMORY_ALLOCATOR_H
#define AMD_VULKAN_MEMORY_ALLOCATOR_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/** \mainpage Vulkan Memory Allocator
\tableofcontents
@@ -1235,6 +1239,10 @@ void vmaDestroyImage(
/** @} */
+#ifdef __cplusplus
+}
+#endif
+
#endif // AMD_VULKAN_MEMORY_ALLOCATOR_H
// For Visual Stu... |
options/posix: fix double free in getservby{name,port}
If getservby{name,port} is called, it will deallocate the previous
stored strings, without setting the pointers to nullptr. If the lookup
then fails before a new pointer is allocated, a subsequent call to the
same function will cause a double free. | @@ -330,9 +330,15 @@ struct servent *getservbyname(const char *name, const char *proto) {
static struct servent ret;
if (ret.s_name) {
free(ret.s_name);
- for (char **alias = ret.s_aliases; *alias != NULL; alias++)
+ ret.s_name = nullptr;
+
+ for (char **alias = ret.s_aliases; *alias != NULL; alias++) {
free(*alias);
+... |
viofs-svc: use VirtFS device's tag as volume prefix. | @@ -587,25 +587,29 @@ static NTSTATUS GetFileInfoInternal(VIRTFS *VirtFs, uint64_t nodeid,
return Status;
}
-static NTSTATUS GetVolumeInfo(FSP_FILE_SYSTEM *FileSystem,
- FSP_FSCTL_VOLUME_INFO *VolumeInfo)
+static VOID GetVolumeName(HANDLE Device, PWSTR VolumeName,
+ DWORD VolumeNameSize)
{
- VIRTFS *VirtFs = FileSystem... |
Replace EVP_DigestFinal_ex with EVP_DigestFinal function for OpenSSL backend
The naming is confusing: actually EVP_DigestFinal does more than
EVP_DigestFinal_ex: it calls EVP_DigestFinal_ex internally, but also does some
additional cleanups and zeroing memory for security. This also brings this in
line with the BoringS... | @@ -92,7 +92,7 @@ soter_status_t soter_hash_final(soter_hash_ctx_t *hash_ctx, uint8_t* hash_value,
return SOTER_BUFFER_TOO_SMALL;
}
- if (EVP_DigestFinal_ex(hash_ctx->evp_md_ctx, hash_value, (unsigned int *)&md_length))
+ if (EVP_DigestFinal(hash_ctx->evp_md_ctx, hash_value, (unsigned int *)&md_length))
{
*hash_length ... |
RFE API: prefer direct connection | @@ -151,14 +151,13 @@ void serialport_close(int fd) {
}
int write_buffer(lms_device_t *dev, int fd, unsigned char* data, int size) {
- int result = 0;
- if (dev != NULL) {
- result = i2c_write_buffer(dev, data, size);
+ if (fd >= 0) { //prioritize direct connection
+ return write_buffer_fd(fd, data, size);
}
- else {
-... |
use go 18 instead of 18-rc following release | @@ -241,7 +241,7 @@ services:
context: .
dockerfile: ./go/Dockerfile
args:
- GO_IMAGE_VER: golang:1.18-rc
+ GO_IMAGE_VER: golang:1.18
<<: *scope-common
# no arm64 image
|
[awm2] Update and test bind_rect_to_screen_size | @@ -970,15 +970,24 @@ impl Desktop {
*/
let mut out = r;
let desktop_size = self.desktop_frame.size;
- out.origin.x = max(r.origin.x, 0);
- out.origin.y = max(r.origin.y, 0);
+ //println!("Max of {}, {}: {}", )
+ out.origin.x = max(r.origin.x, 0_isize);
+ out.origin.y = max(r.origin.y, 0_isize);
if out.max_x() > deskto... |
dm: create mevent's pipe in non-blocking mode
It was designed to be used in non-blocking mode to prevent the mevent
thread from blocking itself indefinitely, but it was created in
blocking mode.
Acked-by: Anthony Xu | #include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
+#include <fcntl.h>
#include <unistd.h>
#include <sys/epoll.h>
#include <sys/queue.h>
@@ -96,7 +97,7 @@ static void
mevent_pipe_read(int fd, enum ev_type type, void *param)
{
char buf[MEVENT_MAX];
- int status;
+ ssize_t status;
/*
* Drain the pipe read side. ... |
do not use libeatmydata for iOS | @@ -911,7 +911,7 @@ module _LINK_UNIT: _BASE_UNIT {
NOPLATFORM=yes
}
- when (($USE_EAT_MY_DATA == "yes") && ($WIN32 != "yes") && ($DARWIN != "yes") && ($OS_ANDROID != "yes")) {
+ when (($USE_EAT_MY_DATA == "yes") && ($WIN32 != "yes") && ($DARWIN != "yes") && ($OS_ANDROID != "yes") && ($OS_IOS != "yes")) {
PEERDIR+=cont... |
Fix Util::plugDestination bug | @@ -926,7 +926,7 @@ plugDestination(const MPlug &plug)
MStatus status;
MPlugArray connectedPlugs;
- plug.connectedTo(connectedPlugs, true, false, &status);
+ plug.connectedTo(connectedPlugs, false, true, &status);
CHECK_MSTATUS(status);
if(!connectedPlugs.length())
|
Tweak NGTCP2_CONN_FLAG_SERVER_ADDR_VERIFIED | @@ -4659,13 +4659,13 @@ static ngtcp2_ssize conn_recv_handshake_pkt(ngtcp2_conn *conn,
switch (fr->type) {
case NGTCP2_FRAME_ACK:
case NGTCP2_FRAME_ACK_ECN:
+ if (!conn->server && hd.type == NGTCP2_PKT_HANDSHAKE) {
+ conn->flags |= NGTCP2_CONN_FLAG_SERVER_ADDR_VERIFIED;
+ }
rv = conn_recv_ack(conn, pktns, &fr->ack, pkt... |
Reduce M487 WiFi CIPSEND AT command waiting time as 10 ms | @@ -863,7 +863,7 @@ ESP_WIFI_Status_t ESP_WIFI_Send( ESP_WIFI_Object_t * pxObj, ESP_WIFI_Conn_t * px
sprintf((char *)pxObj->CmdData + strlen((char *)pxObj->CmdData), "\r\n");
/* Must wait a period of time after the CIPSEND AT command */
- xRet = ESP_AT_Command(pxObj, pxObj->CmdData, 100);
+ xRet = ESP_AT_Command(pxObj,... |
doc: Update the grub part and add code for NVMe | @@ -117,7 +117,12 @@ the source code, build it, and install it on your device.
sudo umount /boot/efi
sudo lsblk
+
+ # For SATA
sudo mount /dev/sda1 /mnt
+ # For NVMe
+ sudo mount /dev/nvme0n1p1 /mnt
+
ls /mnt/EFI/ubuntu
You should see the following output:
@@ -136,9 +141,12 @@ the source code, build it, and install it ... |
Shorten the running time of gprecoverseg related test cases
Commit unexpectly cause test_fts_transitions_02 running
for a longer time, so revert related modification from it. | @@ -43,8 +43,6 @@ class GpRecoverseg():
pool = WorkerPool()
pool.addCommand(cmd)
- pool.join()
- pool.haltWork()
def run(self,option=' ', validate=True, results=True):
'''
|
INCLUDE: clap/ext/draft/file-reference.h: clarify that path should be absolute | @@ -39,8 +39,8 @@ typedef struct clap_file_reference {
size_t path_capacity; // [in] the number of bytes reserved in path
size_t path_size; // [out] the actual length of the path, can be bigger than path_capacity
- char *path; // [in,out] path to the file on the disk, must be null terminated, and may be
- // truncated ... |
add test for invalid key parameters | @@ -3012,6 +3012,17 @@ gCwL7Ksyj4posAc721Rv7qmAnShJkSs5DBUyvH4px2WPgXX65G80My/4e8qz5AZJ
uYV3hp2g6nGDU/ByJ1SIaRNkh2DRIr5nbg/Eg90g/8Mb2pajGWbJqi51rQPeR+HE
TwIDAQAB
-----END PUBLIC KEY-----
+# Key with invalid negative minimum salt length
+PublicKey = RSA-PSS-BAD
+-----BEGIN PUBLIC KEY-----
+MIIBJzASBgkqhkiG9w0BAQowBaIDAg... |
hv:add suffix(UL)for MACRO(SECURE_WORLD_ENABLED)
Now the MACRO SECURE_WORLD_ENABLED (1<<0)
Change it to 64 bit data
SECURE_WORLD_ENABLED (1UL<<0)
Acked-by: Eddie Dong | #define REQUEST_WRITE 1
/* Generic VM flags from guest OS */
-#define SECURE_WORLD_ENABLED (1<<0) /* Whether secure world is enabled */
+#define SECURE_WORLD_ENABLED (1UL<<0) /* Whether secure world is enabled */
/**
* @brief Hypercall
@@ -152,7 +152,7 @@ struct acrn_create_vm {
uint8_t GUID[16];
/* VM flag bits from G... |
py/gc: In gc_realloc, convert pointer sanity checks to assertions.
These checks are assumed to be true in all cases where gc_realloc is
called with a valid pointer, so no need to waste code space and time
checking them in a non-debug build. | @@ -628,27 +628,18 @@ void *gc_realloc(void *ptr_in, size_t n_bytes, bool allow_move) {
void *ptr = ptr_in;
- // sanity check the ptr
- if (!VERIFY_PTR(ptr)) {
- return NULL;
- }
-
- // get first block
- size_t block = BLOCK_FROM_PTR(ptr);
-
GC_ENTER();
- // sanity check the ptr is pointing to the head of a block
- if ... |
Event queue speedup event handling | @@ -15,8 +15,11 @@ void DeRestPluginPrivate::initEventQueue()
*/
void DeRestPluginPrivate::eventQueueTimerFired()
{
- DBG_Assert(!eventQueue.empty());
+ int maxEvents = 10;
+ while (maxEvents > 0 && !eventQueue.empty())
+ {
+ maxEvents--;
const Event &e = eventQueue.front();
if (e.resource() == RSensors)
@@ -40,7 +43,6... |
toml: Expected boolean values now stricter.
On writing, a `boolean` typed key must now be either 0 or 1, otherwise
an error will be emitted. | #include <string.h>
#include "error.h"
+#include "integer.h"
#include "node.h"
#include "prepare.h"
#include "type.h"
#include "utility.h"
#include "write.h"
-#include "integer.h"
typedef enum
{
@@ -75,7 +75,6 @@ static bool isListElement (Node * node);
static bool isLastChild (Node * node);
static bool hasInlineCommen... |
in_event_type: set correct span_id length and event type | #include <cmetrics/cmt_histogram.h>
#define CALLBACK_TIME 2
+#define OTEL_SPAN_ID_LEN 8
struct event_type {
int coll_fd;
int type;
};
+static struct ctrace_id *create_random_span_id()
+{
+ char *buf;
+ ssize_t ret;
+ struct ctrace_id *cid;
+
+ buf = calloc(1, OTEL_SPAN_ID_LEN);
+ if (!buf) {
+ ctr_errno();
+ return NUL... |
Have "wuffs gen" call "git rev-parse HEAD" | @@ -17,7 +17,6 @@ package main
import (
"bytes"
"fmt"
- "io/ioutil"
"os"
"os/exec"
"path/filepath"
@@ -26,8 +25,8 @@ import (
)
func genrelease(wuffsRoot string, langs []string, v cf.Version) error {
- revision := findRevision(wuffsRoot)
- gitRevListCount := findGitRevListCount(wuffsRoot)
+ revision := runGitCommand(wu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.