message
stringlengths 6
474
| diff
stringlengths 8
5.22k
|
---|---|
nimble/ll: Fix sca hci command parsing | @@ -1619,7 +1619,7 @@ ble_ll_conn_req_peer_sca(const uint8_t *cmdbuf, uint8_t len,
const struct ble_hci_le_request_peer_sca_cp *params = (const void *)cmdbuf;
struct ble_ll_conn_sm *connsm;
- connsm = ble_ll_conn_find_active_conn(params->conn_handle);
+ connsm = ble_ll_conn_find_active_conn(le16toh(params->conn_handle));
if (!connsm) {
return BLE_ERR_UNK_CONN_ID;
}
|
Added keymap update to encoder docs | @@ -203,7 +203,7 @@ Further documentation on behaviors and bindings is forthcoming, but a summary of
### Encoders
-EC11 encoder support can be added to your board or shield by adding the appropriate lines to your board/shield's configuration (.conf), device tree (.dtsi), and overlay (.overlay) files.
+EC11 encoder support can be added to your board or shield by adding the appropriate lines to your board/shield's configuration (.conf), device tree (.dtsi), overlay (.overlay), and keymap (.keymap) files.
<Tabs
defaultValue="conf"
@@ -211,6 +211,7 @@ values={[
{label: '.conf', value: 'conf'},
{label: '.dtsi', value: 'dtsi'},
{label: '.overlay', value: 'overlay'},
+{label: '.keymap', value: 'keymap'},
]}>
<TabItem value="conf">
@@ -271,6 +272,15 @@ Add the following lines to your overlay file(s) to enable the encoder:
For split keyboards, make sure to add left hand encoders to the left .overlay file and right hand encoders to the right .overlay file.
:::
+</TabItem>
+<TabItem value = "keymap">
+Add the following line to your keymap file to add default encoder behavior bindings:
+
+```
+sensor-bindings = <&inc_dec_cp M_VOLU M_VOLD>;
+```
+Add additional bindings as necessary to match the default number of encoders on your board. See the [Encoders](/docs/feature/encoders) and [Keymap](/docs/feature/keymaps) feature documentation for more details.
+
</TabItem>
</Tabs>
|
Fix +has:in in hall | ~/ %hall-action-create
|= {nom/name des/cord typ/security}
^+ ..ta-action
- ?. (~(has in stories) nom)
+ ?. (~(has by stories) nom)
%^ impact nom %new
:* [[[our.bol nom] ~] ~ ~]
des
::
~/ %hall-action-design
|= {nom/name cof/config}
- ?. (~(has in stories) nom)
+ ?. (~(has by stories) nom)
(impact nom %new cof)
(ta-evil (crip "{(trip nom)}: already exists"))
::
==
::
?: =(wat ~) &
- %- ~(has in wat)
- ?+ -.det %hasnot
- $gram %grams
- $new %config-l
- $remove %config-l
+ ?+ -.det |
+ $gram (~(has in wat) %grams)
+ $new (~(has in wat) %config-l)
+ $remove (~(has in wat) %config-l)
$config ?: =(cir.det [our.bol nom])
- %config-l %config-r
+ (~(has in wat) %config-l)
+ (~(has in wat) %config-r)
$status ?: =(cir.det [our.bol nom])
- %group-l %group-r
+ (~(has in wat) %group-l)
+ (~(has in wat) %group-r)
==
==
::
|
custom_calyptia: update documentation for pipeline_id config. | @@ -392,7 +392,7 @@ static struct flb_config_map config_map[] = {
{
FLB_CONFIG_MAP_STR, "pipeline_id", NULL,
0, FLB_TRUE, offsetof(struct calyptia, pipeline_id),
- "Custom machine_id to be used when registering agent"
+ "Pipeline ID for reporting to calyptia cloud."
},
#endif /* FLB_HAVE_CHUNK_TRACE */
|
Add peak_rss_mb metrics | @@ -192,13 +192,18 @@ static void printSummary(honggfuzz_t* hfuzz) {
uint64_t guardNb = ATOMIC_GET(hfuzz->feedback.feedbackMap->guardNb);
uint64_t branch_percent_cov =
guardNb ? ((100 * ATOMIC_GET(hfuzz->linux.hwCnts.softCntEdge)) / guardNb) : 0;
+ struct rusage usage;
+ if (getrusage(RUSAGE_CHILDREN, &usage)){
+ PLOG_F("getrusage failed");
+ }
LOG_I("Summary iterations:%zu time:%" PRIu64 " speed:%" PRIu64 " "
"crashes_count:%zu timeout_count:%zu new_units_added:%zu "
- "slowest_unit_ms:%" PRId64 " guard_nb:%" PRIu64 " branch_coverage_percent:%" PRIu64,
+ "slowest_unit_ms:%" PRId64 " guard_nb:%" PRIu64 " branch_coverage_percent:%" PRIu64 " "
+ "peak_rss_mb:%zu",
hfuzz->cnts.mutationsCnt, elapsed_sec, exec_per_sec, hfuzz->cnts.crashesCnt,
hfuzz->cnts.timeoutedCnt, hfuzz->io.newUnitsAdded,
hfuzz->timing.timeOfLongestUnitInMilliseconds, hfuzz->feedback.feedbackMap->guardNb,
- branch_percent_cov);
+ branch_percent_cov, usage.ru_maxrss);
}
static void pingThreads(honggfuzz_t* hfuzz) {
|
Overflow cases done | @@ -176,7 +176,6 @@ static Fraction_type fraction_operator_divide(Fraction_type self, Fraction_type
double d1 = fraction_operator_double(self);
double d2 = fraction_operator_double(other);
Fraction_type f1 = fraction_construct_from_double(d1/d2);
- Assert( 0 );
return f1;
}
}
@@ -192,7 +191,6 @@ static Fraction_type fraction_operator_multiply(Fraction_type self, Fraction_typ
if (!overflow) {
return fraction_construct(top, bottom);
} else {
- Assert(0);
/* Fallback option */
/*return Fraction(double(*this) * double(other));*/
double d1 = fraction_operator_double(self);
@@ -207,9 +205,10 @@ static int fraction_operator_less_than(Fraction_type self, Fraction_type other)
int overflow = 0;
int result = fraction_mul(&overflow, self.top_, other.bottom_) < fraction_mul(&overflow, other.top_, self.bottom_);
if (overflow) {
- Assert(0);
- return 0;
- /* TODO: return double(*this) < double(other); */
+ double d1 = fraction_operator_double(self);
+ double d2 = fraction_operator_double(other);
+ return (d1<d2);
+ /* return double(*this) < double(other); */
}
return result;
}
@@ -219,9 +218,10 @@ static int fraction_operator_greater_than(Fraction_type self, Fraction_type othe
int overflow = 0;
int result = fraction_mul(&overflow, self.top_, other.bottom_) > fraction_mul(&overflow, other.top_, self.bottom_);
if (overflow) {
- Assert(0);
- return 0;
- /*TODO: return double(*this) > double(other);*/
+ double d1 = fraction_operator_double(self);
+ double d2 = fraction_operator_double(other);
+ return (d1>d2);
+ /* return double(*this) > double(other);*/
}
return result;
}
|
Attempts multi-os compilation | language: c
# Compiler selection
+os:
+ - linux
+ - osx
+
compiler:
- - clang
- gcc
+ - clang
+
+addons:
+ apt:
+ packages:
+ - fftw3
+ - fftw3-dev
+ - pkg-config
+ - cmake
+ - libgsl0-dev
+ - swig
+ - python3-numpy
+
# Installs system level dependencies
before_install:
- - sudo apt-get update -qq
- - sudo apt-get install -qq fftw3 fftw3-dev pkg-config cmake libgsl0-dev swig python3-numpy
+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install cmake fftw gsl swig numpy; fi
install: true
|
Refactor macro-spanning ifs in ssl_client.c | @@ -376,9 +376,11 @@ static int ssl_write_client_hello_cipher_suites(
/*
* Add TLS_EMPTY_RENEGOTIATION_INFO_SCSV
*/
+ int renegotiating = 0;
#if defined(MBEDTLS_SSL_RENEGOTIATION)
- if( ssl->renego_status == MBEDTLS_SSL_INITIAL_HANDSHAKE )
+ renegotiating = ( ssl->renego_status != MBEDTLS_SSL_INITIAL_HANDSHAKE );
#endif
+ if( !renegotiating )
{
MBEDTLS_SSL_DEBUG_MSG( 3, ( "adding EMPTY_RENEGOTIATION_INFO_SCSV" ) );
MBEDTLS_SSL_CHK_BUF_PTR( p, end, 2 );
@@ -790,9 +792,11 @@ static int ssl_prepare_client_hello( mbedtls_ssl_context *ssl )
* RFC 5077 section 3.4: "When presenting a ticket, the client MAY
* generate and include a Session ID in the TLS ClientHello."
*/
+ int renegotiating = 0;
#if defined(MBEDTLS_SSL_RENEGOTIATION)
- if( ssl->renego_status == MBEDTLS_SSL_INITIAL_HANDSHAKE )
+ renegotiating = ( ssl->renego_status != MBEDTLS_SSL_INITIAL_HANDSHAKE );
#endif
+ if( !renegotiating )
{
if( ( ssl->session_negotiate->ticket != NULL ) &&
( ssl->session_negotiate->ticket_len != 0 ) )
|
ARMv8: adding switch case for PSCI boot protocol | @@ -115,12 +115,10 @@ arch_init(uint32_t magic, void *pointer, uintptr_t stack) {
global = &global_temp;
memset(&global->locks, 0, sizeof(global->locks));
- // initialize the core id
- my_core_id = sysreg_get_cpu_id();
-
switch (magic) {
case MULTIBOOT2_BOOTLOADER_MAGIC:
{
+ my_core_id = 0;
struct multiboot_header *mbhdr = pointer;
uint32_t size = mbhdr->header_length;
@@ -167,8 +165,30 @@ arch_init(uint32_t magic, void *pointer, uintptr_t stack) {
break;
}
+ case ARMV8_BOOTMAGIC_PSCI :
+ //serial_init(serial_console_port, false);
+
+ serial_init(serial_console_port, false);
+
+ struct armv8_core_data *core_data = (struct armv8_core_data*)pointer;
+ armv8_glbl_core_data = core_data;
+ global = (struct global *)core_data->kernel_global;
+
+ kernel_stack = stack;
+ my_core_id = core_data->dst_core_id;
+
+ MSG("ARMv8 Core magic...\n");
+
+ break;
default: {
+ serial_init(serial_console_port, false);
+
+ serial_console_putchar('x');
+ serial_console_putchar('x');
+ serial_console_putchar('\n');
+
panic("Implement AP booting!");
+ __asm volatile ("wfi":::);
break;
}
}
|
filter: adjust cio api call | @@ -144,7 +144,8 @@ void flb_filter_do(struct flb_input_chunk *ic,
out_buf, out_size);
/* Point back the 'data' pointer to the new address */
bytes = out_size;
- data = cio_chunk_get_content(ic->chunk, &cur_size);
+ ret = cio_chunk_get_content(ic->chunk,
+ data, &cur_size);
data += content_size;
flb_free(out_buf);
}
|
examples/bind: additional length check to avoid SIGBUF | @@ -98,6 +98,10 @@ diff -Nur ORIG.bind-9.13.5-W1/bin/named/main.c bind-9.13.5-W1/bin/named/main.c
+ close(nfd);
+ continue;
+ }
++ if (rbuf < 1) {
++ close(nfd);
++ continue;
++ }
+
+ /* It's a response, so set QR bit to 1 */
+ uint8_t qr = rbuf[0] | 0x80;
|
examples/openssl: disable psk code for openssl-1.1 in client | @@ -497,7 +497,7 @@ int LLVMFuzzerInitialize(int* argc, char*** argv) {
SSL_CTX_set_verify(ctx, SSL_VERIFY_PEER, NULL);
SSL_CTX_set_verify_depth(ctx, 10);
-#if !defined(HF_SSL_IS_LIBRESSL)
+#if !defined(HF_SSL_IS_LIBRESSL) && !defined(HF_SSL_IS_OPENSSL_GE_1_1)
SSL_CTX_set_psk_client_callback(ctx, psk_callback);
ret = SSL_CTX_use_psk_identity_hint(ctx, "ABCDEFUZZ");
assert(ret == 1);
|
tests: internal: fuzzer: remove test message | @@ -10,7 +10,6 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size){
/* target the conversion of raw msgpack to json */
flb_sds_t record;
record = flb_msgpack_raw_to_json_sds(data, size);
- printf("=> %s\n", record);
flb_sds_destroy(record);
return 0;
|
Recognize newer Zhaoxin/Centaur cpus as Nehalem | @@ -1631,7 +1631,9 @@ int get_cpuname(void){
case 0x6:
return CPUTYPE_NANO;
break;
-
+ case 0x7:
+ return CPUTYPE_NEHALEM;
+ break;
}
return CPUTYPE_VIAC3;
}
@@ -2285,6 +2287,9 @@ int get_coretype(void){
case 0x6:
return CORE_NANO;
break;
+ case 0x7:
+ return CORE_NEHALEM;
+ break;
}
return CORE_VIAC3;
}
|
tests: vcl: add missing host stack echo test
Type: test | @@ -450,6 +450,14 @@ class VCLThruHostStackEcho(VCLTestCase):
self.thru_host_stack_tear_down()
super(VCLThruHostStackEcho, self).tearDown()
+ def test_vcl_thru_host_stack_echo(self):
+ """ run VCL IPv4 thru host stack echo test """
+
+ self.thru_host_stack_test("vcl_test_server",
+ self.server_args,
+ "vcl_test_client",
+ self.client_echo_test_args)
+
def show_commands_at_teardown(self):
self.logger.debug(self.vapi.cli("show app server"))
self.logger.debug(self.vapi.cli("show session verbose"))
|
vlib: avoid crash if fill_free_list returns 0 buffers | @@ -304,7 +304,8 @@ vlib_buffer_alloc_from_free_list (vlib_main_t * vm,
if (PREDICT_FALSE (len < n_buffers))
{
bm->cb.vlib_buffer_fill_free_list_cb (vm, fl, n_buffers);
- len = vec_len (fl->buffers);
+ if (PREDICT_FALSE ((len = vec_len (fl->buffers)) == 0))
+ return 0;
/* even if fill free list didn't manage to refill free list
we should give what we have */
|
{AH} add comment that level is not computed and should not be used, fixes | @@ -2446,7 +2446,8 @@ cdef class PileupRead:
return self._indel
property level:
- """the level of the read in the "viewer" mode"""
+ """the level of the read in the "viewer" mode. Note that this value
+ is currently not computed."""
def __get__(self):
return self._level
|
Add steering safety check for cr-v | @@ -61,7 +61,7 @@ int safety_tx_hook(CAN_FIFOMailBox_TypeDef *to_send, int hardwired) {
}
// STEER: safety check
- if ((to_send->RIR>>21) == 0xE4) {
+ if ((to_send->RIR>>21) == 0xE4 || (to_send->RIR>>21) == 0x194) {
if (controls_allowed) {
to_send->RDLR &= 0xFFFFFFFF;
} else {
|
VERSION bump to version 0.8.31 | @@ -28,7 +28,7 @@ set(CMAKE_C_FLAGS_DEBUG "-g -O0")
# set version
set(LIBNETCONF2_MAJOR_VERSION 0)
set(LIBNETCONF2_MINOR_VERSION 8)
-set(LIBNETCONF2_MICRO_VERSION 30)
+set(LIBNETCONF2_MICRO_VERSION 31)
set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION}.${LIBNETCONF2_MICRO_VERSION})
set(LIBNETCONF2_SOVERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION})
|
declare gpio as uint8_t in sdr-transceiver.c | volatile uint64_t *rx_data, *tx_data;
volatile uint32_t *rx_freq, *tx_freq;
-volatile uint16_t *gpio, *rx_rate, *rx_cntr, *tx_rate, *tx_cntr;
-volatile uint8_t *rx_rst, *rx_sync, *tx_rst, *tx_sync;
+volatile uint16_t *rx_rate, *rx_cntr, *tx_rate, *tx_cntr;
+volatile uint8_t *gpio, *rx_rst, *rx_sync, *tx_rst, *tx_sync;
const uint32_t freq_min = 0;
const uint32_t freq_max = 62500000;
@@ -81,7 +81,7 @@ int main(int argc, char *argv[])
break;
}
- gpio = ((uint16_t *)(cfg + 2));
+ gpio = ((uint8_t *)(cfg + 2));
rx_rst = ((uint8_t *)(cfg + 0));
rx_freq = ((uint32_t *)(cfg + 4));
|
Fix commit s390x build breakage | @@ -42,14 +42,14 @@ static int s390x_aes_gcm_setiv(PROV_GCM_CTX *ctx, const unsigned char *iv,
actx->plat.s390x.areslen = 0;
actx->plat.s390x.kreslen = 0;
- if (ivlen == AES_GCM_IV_DEFAULT_SIZE) {
+ if (ivlen == GCM_IV_DEFAULT_SIZE) {
memcpy(&kma->j0, iv, ivlen);
kma->j0.w[3] = 1;
kma->cv.w = 1;
} else {
unsigned long long ivbits = ivlen << 3;
size_t len = S390X_gcm_ivpadlen(ivlen);
- unsigned char iv_zero_pad[S390X_gcm_ivpadlen(AES_GCM_IV_MAX_SIZE)];
+ unsigned char iv_zero_pad[S390X_gcm_ivpadlen(GCM_IV_MAX_SIZE)];
/*
* The IV length needs to be zero padded to be a multiple of 16 bytes
* followed by 8 bytes of zeros and 8 bytes for the IV length.
@@ -93,7 +93,7 @@ static int s390x_aes_gcm_cipher_final(PROV_GCM_CTX *ctx, unsigned char *tag)
OPENSSL_cleanse(out, actx->plat.s390x.mreslen);
if (ctx->enc) {
- ctx->taglen = AES_GCM_TAG_MAX_SIZE;
+ ctx->taglen = GCM_TAG_MAX_SIZE;
memcpy(tag, kma->t.b, ctx->taglen);
rc = 1;
} else {
|
Fix compilation and logical or warning
Related PR: | @@ -4818,7 +4818,7 @@ void DeRestPluginPrivate::addSensorNode(const deCONZ::Node *node, const deCONZ::
case COMMISSIONING_CLUSTER_ID:
{
- if (modelId == QLatin1String("ZYCT-202" || modelId == QLatin1String("ZLL-NonColorController") && i->endpoint() != 0x01)
+ if ((modelId == QLatin1String("ZYCT-202") || modelId == QLatin1String("ZLL-NonColorController")) && i->endpoint() != 0x01)
{
// ignore second endpoint
}
|
Add fixed image sizes | @@ -3049,8 +3049,8 @@ VOID PhProcessImageListInitialization(
PhImageListItemType = PhCreateObjectType(L"ImageListItem", 0, PhpImageListItemDeleteProcedure);
- PhProcessLargeImageList = ImageList_Create(PhLargeIconSize.X, PhLargeIconSize.Y, ILC_MASK | ILC_COLOR32, 100, 100);
- PhProcessSmallImageList = ImageList_Create(PhSmallIconSize.X, PhSmallIconSize.Y, ILC_MASK | ILC_COLOR32, 100, 100);
+ PhProcessLargeImageList = ImageList_Create(32, 32, ILC_MASK | ILC_COLOR32, 100, 100);
+ PhProcessSmallImageList = ImageList_Create(16, 16, ILC_MASK | ILC_COLOR32, 100, 100);
PhGetStockApplicationIcon(&iconSmall, &iconLarge);
ImageList_AddIcon(PhProcessLargeImageList, iconLarge);
|
components/bt: fixed the invalid workqueue number for BTU thread in Bluedroid
There should be only one workqueue for BTU task. The queue length for the second workqueue of BTU can be uninitialized and caused memory overflow and corruption.
Closes | #define BTU_TASK_STACK_SIZE (BT_BTU_TASK_STACK_SIZE + BT_TASK_EXTRA_STACK_SIZE)
#define BTU_TASK_PRIO (BT_TASK_MAX_PRIORITIES - 5)
#define BTU_TASK_NAME "BTU_TASK"
-#define BTU_TASK_WORKQUEUE_NUM (2)
+#define BTU_TASK_WORKQUEUE_NUM (1)
#define BTU_TASK_WORKQUEUE0_LEN (0)
hash_map_t *btu_general_alarm_hash_map;
|
fix he-lpbk interleave pattern command line help | @@ -309,9 +309,9 @@ public:
app_.add_option("-d,--delay", he_delay_, "Enables random delay insertion between requests")->default_val(false);
// Configure interleave requests in Throughput mode
- app_.add_option("--interleave", he_interleave_, "Interleave requests {0, 1, 2} in Throughput mode \
- Request value:0-Rd,Wr,Rd,Wr Request value:1-Rd, Rd,Wr,Wr \
- Request value:2-Rd,Rd,Rd,Rd,Wr,Wr,Wr,Wr ")
+ app_.add_option("--interleave", he_interleave_, "Interleave requests pattern in Throughput mode {0, 1, 2} \
+ Interleave pattern:0 rd-wr-rd-wr Interleave pattern:1 rd-rd-wr-wr \
+ Interleave pattern:2 rd-rd-rd-rd-wr-wr-wr-Wr ")
->default_val(0);
}
|
Add proc.cpu_perc which reports a floating point % of 1 core | @@ -712,6 +712,7 @@ doProcMetric(enum metric_t type, long long measurement)
{
switch (type) {
case PROC_CPU:
+ {
{
event_field_t fields[] = {
PROC_FIELD(g_cfg.procname),
@@ -722,6 +723,28 @@ doProcMetric(enum metric_t type, long long measurement)
};
event_t e = INT_EVENT("proc.cpu", measurement, DELTA, fields);
sendEvent(g_out, &e);
+ }
+
+ // Avoid div by zero
+ unsigned interval = g_thread.interval;
+ if (!interval) break;
+
+ {
+ event_field_t fields[] = {
+ PROC_FIELD(g_cfg.procname),
+ PID_FIELD(g_cfg.pid),
+ HOST_FIELD(g_cfg.hostname),
+ UNIT_FIELD("percent"),
+ FIELDEND
+ };
+ // convert measurement to double and scale to percent
+ // convert interval from seconds to microseconds
+ //
+ // TBD: switch from using the configured to a measured interval
+ double val = measurement * 100.0 / (interval*1000000.0);
+ event_t e = FLT_EVENT("proc.cpu_perc", val, CURRENT, fields);
+ sendEvent(g_out, &e);
+ }
break;
}
|
Ensure we initialize dns resolver conditions and mutexes before they're used.
This should address some possible Mutex reinitialization warnings
when calling fast_forward_client() early on. | @@ -1467,6 +1467,9 @@ initializer (void) {
parsing_spinner->processed = &(logs->processed);
parsing_spinner->filename = &(logs->filename);
+ /* init reverse lookup thread */
+ gdns_init ();
+
/* init random number generator */
srand (getpid ());
init_pre_storage (logs);
@@ -1617,8 +1620,6 @@ main (int argc, char **argv) {
logs->offset = *logs->processed;
parsing_spinner->label = "RENDERING";
- /* init reverse lookup thread */
- gdns_init ();
parse_initial_sort ();
allocate_holder ();
|
add ifmtarg package | @@ -42,7 +42,8 @@ tlmgr install \
xspace \
xifthen \
helvetic \
- ulem
+ ulem \
+ ifmtarg
# Keep no backups (not required, simply makes cache bigger)
tlmgr option -- autobackup 0
|
Fix typos in quick-controls.h | // This extensions provides a set a pages, where each page contains up to 8 controls.
// Those controls are param_id, and they are meant to be mapped onto a physical controller.
-// We chose 8 because this what most controllers offers, and it is more or less a standard.
+// We chose 8 because this what most controllers offer, and it is more or less a standard.
static CLAP_CONSTEXPR const char CLAP_EXT_QUICK_CONTROLS[] = "clap.quick-controls.draft/0";
|
Make test_nsalloc_long_attr_prefix() robust vs allocation pattern changes | @@ -10765,29 +10765,9 @@ START_TEST(test_nsalloc_long_attr_prefix)
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789AZ"
};
int i;
-#define MAX_ALLOC_COUNT 15
- int repeated = 0;
+#define MAX_ALLOC_COUNT 40
for (i = 0; i < MAX_ALLOC_COUNT; i++) {
- /* Repeat some counts to flush out cached allocations */
- if ((i == 4 && (repeated == 3 || repeated == 6)) ||
- (i == 7 && repeated == 9) ||
- (i == 10 && repeated == 12)) {
- i -= 2;
- repeated++;
- }
- else if ((i == 2 && repeated < 2) ||
- (i == 3 &&
- (repeated == 2 ||
- repeated == 4 ||
- repeated == 5 ||
- repeated == 7)) ||
- (i == 5 && repeated == 8) ||
- (i == 6 && repeated == 10) ||
- (i == 8 && repeated == 11)) {
- i--;
- repeated++;
- }
allocation_count = i;
XML_SetReturnNSTriplet(parser, XML_TRUE);
XML_SetUserData(parser, elemstr);
@@ -10797,7 +10777,9 @@ START_TEST(test_nsalloc_long_attr_prefix)
if (_XML_Parse_SINGLE_BYTES(parser, text, strlen(text),
XML_TRUE) != XML_STATUS_ERROR)
break;
- XML_ParserReset(parser, NULL);
+ /* See comment in test_nsalloc_xmlns() */
+ nsalloc_teardown();
+ nsalloc_setup();
}
if (i == 0)
fail("Parsing worked despite failing allocations");
|
iOS: remove keys because now they not produced into Info.plist | @@ -61,8 +61,6 @@ iphone:
#info_plist_data:
# LSApplicationQueriesSchemes: ['scheme1', 'scheme2']
# NSAppTransportSecurity:
- # NSAllowsArbitraryLoads: true
- # NSAllowsArbitraryLoadsInWebContent: true
# NSExceptionDomains:
# domain1.com:
# NSIncludesSubdomains: true
|
corrects reference-counting in _boothack_doom() | @@ -410,7 +410,7 @@ _boothack_doom(void)
}
else if ( 0 != u3_Host.ops_u.fak_c ) {
u3_noun fak = u3i_string(u3_Host.ops_u.fak_c);
- u3_noun whu = u3dc("slaw", 'p', fak);
+ u3_noun whu = u3dc("slaw", 'p', u3k(fak));
if ( u3_nul == whu ) {
fprintf(stderr, "boot: malformed -F ship %s\r\n", u3_Host.ops_u.fak_c);
|
docker: use python3, swig 4.0 on debian sid | @@ -49,12 +49,12 @@ RUN apt-get update && apt-get -y install \
ninja-build \
npm \
pkg-config \
- python3.7-dev \
+ python3-dev \
python3-pip \
ronn \
ruby2.5-dev \
sloccount \
- swig3.0 \
+ swig4.0 \
systemd \
tclcl-dev \
valgrind \
|
bindings/kotlin: fixed next release notes | @@ -174,13 +174,14 @@ you up-to-date with the multi-language support provided by Elektra.
### Kotlin
- Added new JNA subproject which builds an Elektra extension library for Kotlin _(@mandoway & @Gratla)_
-- Added get(), getOrNull(), getOrDefault(), getOrElse() extension with type inference for primitive types _(@mandoway)_
+- Added get(), getOrNull() extension with type inference for primitive types _(@mandoway)_
- Added set() extension with type inference for primitive types _(@mandoway)_
-- Added keySet serialization capabilities (to JSON and data classes, with array support) _(@mandoway)_
+- Added keySet serialization capabilities (to any format and data classes, with array support) _(@mandoway)_
- Added keyOf() extension and keyOf{} builder for key creation _(@Gratla)_
- Added keySetOf() extension and keySetOf{} builder for keySet creation _(@Gratla)_
- Added withKDB() extension which wraps the try block _(@Gratla)_
-- Added forEachKeyName() extension which iterates like in keyNameIterator _(@mandoway)_
+- Added nameParts extension value which provides a sequence of key name parts _(@mandoway)_
+- Added various utility functions like Key.isEmpty, Key.getMetaOrNull, ... _(@Gratla & @mandoway)_
## Tools
|
temporary fix to avoid micropython locking up on subsequent runs with unicorn | @@ -198,6 +198,14 @@ namespace pimoroni {
gpio_set_function(pin::X, GPIO_FUNC_SIO); gpio_set_dir(pin::X, GPIO_IN); gpio_pull_up(pin::X);
gpio_set_function(pin::Y, GPIO_FUNC_SIO); gpio_set_dir(pin::Y, GPIO_IN); gpio_pull_up(pin::Y);
+ // todo: shouldn't need to do this if things were cleaned up properly but without
+ // this any attempt to run a micropython script twice will fail
+ static bool already_init = false;
+
+ if(already_init) {
+ return;
+ }
+
// setup dma transfer for pixel data to the pio
dma_channel = dma_claim_unused_channel(true);
dma_channel_config config = dma_channel_get_default_config(dma_channel);
@@ -212,6 +220,8 @@ namespace pimoroni {
dma_channel_set_trans_count(dma_channel, BITSTREAM_LENGTH / 4, false);
dma_channel_set_read_addr(dma_channel, bitstream, true);
+
+ already_init = true;
}
void PicoUnicorn::clear() {
|
edit diff BUGFIX merging create into delete
One must be careful in case there were default
values because then they were in-use and
value must be compared with the default one.
Actually, the deleted node value has no meaning
at all. | @@ -2022,6 +2022,7 @@ sr_diff_merge_create(struct lyd_node *diff_match, enum edit_op cur_op, int cur_o
{
sr_error_info_t *err_info = NULL;
struct lyd_node *child;
+ const struct lys_node_leaf *sleaf;
int ret;
switch (cur_op) {
@@ -2030,19 +2031,33 @@ sr_diff_merge_create(struct lyd_node *diff_match, enum edit_op cur_op, int cur_o
if (cur_own_op) {
sr_edit_del_attr(diff_match, "operation");
}
- if (val_equal) {
+
+ if (diff_match->schema->nodetype == LYS_LEAF) {
+ sleaf = (struct lys_node_leaf *)diff_match->schema;
+ } else {
+ sleaf = NULL;
+ }
+
+ if (sleaf && sleaf->dflt && !strcmp(sleaf->dflt, sr_ly_leaf_value_str(src_node))) {
+ /* we deleted it, so a default value was in-use, and it matches the created value -> operation NONE */
+ if ((err_info = sr_edit_set_oper(diff_match, "none"))) {
+ return err_info;
+ }
+ } else if (val_equal) {
/* deleted + created -> operation NONE */
if ((err_info = sr_edit_set_oper(diff_match, "none"))) {
return err_info;
}
} else {
- assert(diff_match->schema->nodetype == LYS_LEAF);
+ assert(sleaf);
/* we deleted it, but it was created with a different value -> operation REPLACE */
if ((err_info = sr_edit_set_oper(diff_match, "replace"))) {
return err_info;
}
+ }
- /* correctly modify the node, current value is previous one (attr) and the default value is new */
+ if (!val_equal) {
+ /* correctly modify the node, current value is previous one (attr) */
if (!lyd_insert_attr(diff_match, NULL, SR_YANG_MOD ":orig-value", sr_ly_leaf_value_str(diff_match))) {
sr_errinfo_new_ly(&err_info, lyd_node_module(diff_match)->ctx);
return err_info;
|
When deprecated symbols are removed, ensure liblegacy has WHIRLPOOL
The legacy module implements WHIRLPOOL, so we must ensure it has the
full functionality, even when libcrypto stops exporting the symbols. | @@ -17,13 +17,21 @@ IF[{- !$disabled{asm} -}]
ENDIF
ENDIF
-SOURCE[../../libcrypto]=wp_dgst.c $WPASM
-
# Implementations are now spread across several libraries, so the defines
# need to be applied to all affected libraries and modules.
-DEFINE[../../libcrypto]=$WPDEF
DEFINE[../../providers/libimplementations.a]=$WPDEF
+SOURCE[../../libcrypto]=wp_dgst.c $WPASM
+DEFINE[../../libcrypto]=$WPDEF
+
+# When all deprecated symbols are removed, libcrypto doesn't export the
+# WHIRLPOOL functions, so we must include them directly in liblegacy.a
+IF[{- $disabled{"deprecated"}
+ && (defined $config{"api"} && $config{"api"} >= 30000) -}]
+ SOURCE[../../providers/liblegacy.a]=wp_dgst.c $WPASM
+ DEFINE[../../providers/liblegacy.a]=$WPDEF
+ENDIF
+
GENERATE[wp-mmx.s]=asm/wp-mmx.pl
DEPEND[wp-mmx.s]=../perlasm/x86asm.pl
|
tests: policer test check unformat return values
Keep coverity happy by checking the return value of unformat calls.
Type: test | @@ -30,10 +30,12 @@ policer_test (vlib_main_t *vm, unformat_input_t *input,
policer_t *pol;
vnet_policer_main_t *pm = &vnet_policer_main;
- unformat (input, "index %d", &policer_index); /* policer to use */
- unformat (input, "rate %u", &rate_kbps); /* rate to send at in kbps */
- unformat (input, "burst %u", &burst); /* burst to send in ms */
- unformat (input, "colour %u", &input_colour); /* input colour if aware */
+ if (!unformat (input, "index %d", &policer_index) || /* policer to use */
+ !unformat (input, "rate %u", &rate_kbps) || /* rate to send at in kbps */
+ !unformat (input, "burst %u", &burst) || /* burst to send in ms */
+ !unformat (input, "colour %u",
+ &input_colour)) /* input colour if aware */
+ return clib_error_return (0, "Policer test failed to parse params");
total_bytes = (rate_kbps * burst) / 8;
num_pkts = total_bytes / PKT_LEN;
|
Fix use of TOS in BSd sockets. | @@ -182,8 +182,8 @@ int picoquic_socket_set_ecn_options(SOCKET_TYPE sd, int af, int * recv_set, int
else {
#if defined(IP_TOS)
{
- unsigned int ecn = 2;
- /* Request setting ECN_1 in outgoing packets */
+ unsigned int ecn = 1;
+ /* Request setting ECN_0 in outgoing packets */
if (setsockopt(sd, IPPROTO_IP, IP_TOS, &ecn, sizeof(ecn)) < 0) {
DBG_PRINTF("setsockopt IPv4 IP_TOS (0x%x) fails, errno: %d\n", ecn, errno);
*send_set = 0;
@@ -680,7 +680,7 @@ int picoquic_recvmsg(SOCKET_TYPE fd,
}
}
#endif
- else if (cmsg->cmsg_type == IP_TOS && cmsg->cmsg_len > 0) {
+ else if ((cmsg->cmsg_type == IP_TOS || cmsg->cmsg_type == IP_RECVTOS) && cmsg->cmsg_len > 0) {
if (received_ecn != NULL) {
*received_ecn = *((unsigned char *)CMSG_DATA(cmsg));
}
|
Update README to document minimal console | # Console
-There are two versions of this library;
- * full - contains actual implemetation
- * stub - has stubs for the API
+There are three versions of this library;
+ * minimal - contains an implementation which allows for output, optional
+ input, supports UART and RTT, and has support for `newtmgr` protocol.
+ * full - contains all minimal features and adds formatted output through
+ `console_printf`, console editing and BLE monitor.
+ * stub - has stubs for the API.
You can write a package which uses ```console_printf()```, and builder of a
project can select which one they'll use.
For the package, list in the pkg.yml console as the required capability.
Project builder will then include either sys/console/full or
-sys/console/stub as their choice.
+sys/console/minimal or sys/console/stub as their choice.
|
doc: update intro link to project roadmap
Instead of linking to a specific doc on projectacrn.org, update to just
link to the area on projectacrn.org/#resources where the roadmap doc can
be found. Also remove mention of 2020 to keep it generic so it won't
need updating in 2021. | @@ -23,11 +23,12 @@ partitioning hypervisors. The ACRN hypervisor architecture partitions
the system into different functional domains, with carefully selected
user VM sharing optimizations for IoT and embedded devices.
-ACRN Open Source Roadmap 2020
-*****************************
+ACRN Open Source Roadmap
+************************
-Stay informed on what's ahead for ACRN in 2020 by visiting the
-`ACRN 2020 Roadmap <https://projectacrn.org/wp-content/uploads/sites/59/2020/03/ACRN-Roadmap-External-2020.pdf>`_.
+Stay informed on what's ahead for ACRN by visiting the
+`ACRN Project Roadmap <https://projectacrn.org/#resources>`_ on the
+projectacrn.org website.
For up-to-date happenings, visit the `ACRN blog <https://projectacrn.org/blog/>`_.
|
Add missing ksceUsbdGetEndpointId NID | @@ -5467,6 +5467,7 @@ modules:
ksceUsbdUnregisterDriver: 0x216F108D
ksceUsbdSuspendPhase2: 0xD7AA730D
ksceUsbdGetDescriptor: 0xBC3EF82B
+ ksceUsbdGetEndpointId: 0x1CDBFF9F
ksceUsbdControlTransfer: 0x2E05660F
SceUsbSerial:
nid: 0xF8D9930F
|
travis: remove -fsanitize=address,undefined from clang-3.8 flags
We already have them on the clang-10 build, so they're not adding
anything, and they make the build *very* slow. | @@ -56,7 +56,6 @@ jobs:
env:
- C_COMPILER=clang-3.8
- CXX_COMPILER=clang++-3.8
- - COMPILER_FLAGS='-fsanitize=address,undefined'
- DIAGNOSTIC_FLAGS='-Weverything -Werror -Wno-c++98-compat-pedantic -Wno-newline-eof'
- ARCH_FLAGS='-mavx2'
addons:
|
in_tail: use new CFL hashing interface | #include "win32.h"
#endif
-#include <xxhash.h>
+#include <cfl/cfl.h>
static inline void consume_bytes(char *buf, int bytes, int length)
{
@@ -77,7 +77,7 @@ static int stat_to_hash_bits(struct flb_tail_config *ctx, struct stat *st,
len = snprintf(tmp, sizeof(tmp) - 1, "%" PRIu64 ":%" PRIu64,
st_dev, st->st_ino);
- *out_hash = XXH3_64bits(tmp, len);
+ *out_hash = cfl_hash_64bits(tmp, len);
return 0;
}
|
BugID:17633002:modyfied the amebaz_dev board OTA partion | @@ -22,7 +22,7 @@ const hal_logic_partition_t hal_partitions[] =
.partition_owner = HAL_FLASH_EMBEDDED,
.partition_description = "Application",
.partition_start_addr = 0xB000,
- .partition_length = 0xF2000, //568k bytes
+ .partition_length = 0xF2000, //968k bytes
.partition_options = PAR_OPT_READ_EN | PAR_OPT_WRITE_EN,
},
@@ -49,7 +49,7 @@ const hal_logic_partition_t hal_partitions[] =
.partition_owner = HAL_FLASH_EMBEDDED,
.partition_description = "OTA Storage",
.partition_start_addr = 0x100000,
- .partition_length = 0x8E000, //568k bytes
+ .partition_length = 0xF2000, //968k bytes
.partition_options = PAR_OPT_READ_EN | PAR_OPT_WRITE_EN,
},
[HAL_PARTITION_PARAMETER_3] =
|
Do not dump (binary) meta for special files. | #include <gdb.h>
#include <virtio.h>
-void print_tuple_noparents(buffer b, tuple z)
+// copied from print_tuple()
+void print_root(buffer b, tuple z)
{
table t = valueof(z);
boolean sub = false;
@@ -15,14 +16,13 @@ void print_tuple_noparents(buffer b, tuple z)
push_character(b, ' ');
}
bprintf(b, "%b:", symbol_string((symbol)n));
- if (n == sym_this(".") || n == sym_this(".."))
- continue;
- // xxx print value
+ if (n != sym_this(".") && n != sym_this("..") && n != sym_this("special")) {
if (tagof(v) == tag_tuple) {
- print_tuple_noparents(b, v);
+ print_root(b, v);
} else {
bprintf(b, "%b", v);
}
+ }
sub = true;
}
bprintf(b, ")");
@@ -36,7 +36,7 @@ static void read_program_complete(process kp, tuple root, buffer b)
rprintf("gitversion: %s ", gitversion);
buffer b = allocate_buffer(transient, 64);
- print_tuple_noparents(b, root);
+ print_root(b, root);
debug(b);
deallocate_buffer(b);
rprintf("\n");
|
Return an immutable tuple instead | (case (length ,results)
0 nil
1 (,results 0)
- ,results))))
+ (tuple ;,results)))))
(defmacro ->
"Threading macro. Inserts x as the second value in the first form
|
links: unread count positioned at top of item
Fixes | @@ -11,12 +11,12 @@ export class ChannelsItem extends Component {
: 'pointer hover-bg-gray5 hover-bg-gray1-d';
const unseenCount = props.unseenCount > 0
- ? <span className="dib white bg-gray3 bg-gray2-d fw6 br1" style={{ padding: '1px 5px' }}>{props.unseenCount}</span>
+ ? <span className="dib white bg-gray3 bg-gray2-d fw6 br1 absolute" style={{ padding: '1px 5px', right: 8 }}>{props.unseenCount}</span>
: null;
return (
<Link to={makeRoutePath(props.link)}>
- <div className={'w-100 v-mid f9 ph4 z1 pv1 ' + selectedClass}>
+ <div className={'w-100 v-mid f9 ph4 z1 pv1 relative ' + selectedClass}>
<p className="f9 dib">{props.name}</p>
<p className="f9 dib fr">
{unseenCount}
|
don't show Freeze asset on the menu for Maya 2016 or earlier since it relies on features added in maya 2016.5 | @@ -771,6 +771,8 @@ houdiniEngineCreateUI()
-imageOverlayLabel "BA"
-annotation "Tear off a copy of the asset's current output nodes"
-command "houdiniEngine_bakeSelectedAssets";
+ int $intVersion = $mayaVersion;
+ if($intVersion > 2016) {
menuItem -label "Freeze Asset"
-imageOverlayLabel "BA"
-version $mayaVersion
@@ -781,6 +783,7 @@ houdiniEngineCreateUI()
-version $mayaVersion
-annotation "Reconnect the asset's output nodes and mark the asset unfrozen"
-command "houdiniEngine_unfreezeSelectedAssets";
+ }
menuItem -label "Remove Asset From History"
-imageOverlayLabel "RAH"
-annotation "Remove this asset and its inputGeometry nodes and reconnect history across the gap"
|
Add make to BuildRequires | @@ -40,7 +40,7 @@ Requires: perl-CGI
Requires: %{name}-initramfs-%{_arch} = %{version}-%{release}
Conflicts: warewulf < 3
BuildRequires: autoconf
-BuildRequires: automake
+BuildRequires: automake, make
BuildRequires: which
BuildRequires: warewulf-common%{PROJ_DELIM}
BuildRequires: libselinux-devel, libacl-devel, libattr-devel
|
Release v3.4.276 | #define MAT_VERSION_HPP
// WARNING: DO NOT MODIFY THIS FILE!
// This file has been automatically generated, manual changes will be lost.
-#define BUILD_VERSION_STR "3.4.269.1"
-#define BUILD_VERSION 3,4,269,1
+#define BUILD_VERSION_STR "3.4.276.1"
+#define BUILD_VERSION 3,4,276,1
#ifndef RESOURCE_COMPILER_INVOKED
#include <stdint.h>
@@ -44,7 +44,7 @@ namespace MAT_NS_BEGIN {
uint64_t const Version =
((uint64_t)3 << 48) |
((uint64_t)4 << 32) |
- ((uint64_t)269 << 16) |
+ ((uint64_t)276 << 16) |
((uint64_t)1);
} MAT_NS_END
|
bin: write signal type on signal handler event | @@ -196,11 +196,27 @@ static void flb_banner()
printf("%sCopyright (C) Treasure Data%s\n\n", ANSI_BOLD ANSI_YELLOW, ANSI_RESET);
}
+#define flb_print_signal(X) case X: \
+ write (STDERR_FILENO, #X ")\n" , sizeof(#X ")\n")-1); \
+ break;
static void flb_signal_handler(int signal)
{
- write(STDERR_FILENO, "[engine] caught signal\n", 23);
+ char s[] = "[engine] caught signal (";
+
+ /* write signal number */
+ write(STDERR_FILENO, s, sizeof(s) - 1);
+ switch (signal) {
+ flb_print_signal(SIGINT);
+#ifndef _WIN32
+ flb_print_signal(SIGQUIT);
+ flb_print_signal(SIGHUP);
+#endif
+ flb_print_signal(SIGTERM);
+ flb_print_signal(SIGSEGV);
+ };
+ /* Signal handlers */
switch (signal) {
case SIGINT:
#ifndef _WIN32
|
docs: add nimble mesh to the doxygen search path | @@ -790,7 +790,8 @@ WARN_LOGFILE =
# Note: If this tag is empty the current directory is searched.
INPUT = kernel/os \
- sys/console/full
+ sys/console/full \
+ net/nimble/host/mesh/include/mesh
# This tag can be used to specify the character encoding of the source files
# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
|
viofs-svc: add few more errno translations. | @@ -286,9 +286,21 @@ static NTSTATUS VirtFsFuseRequest(HANDLE Device, LPVOID InBuffer,
case -EBADF:
Status = STATUS_OBJECT_NAME_INVALID;
break;
+ case -ENOMEM:
+ Status = STATUS_INSUFFICIENT_RESOURCES;
+ break;
case -EINVAL:
Status = STATUS_INVALID_PARAMETER;
break;
+ case -ENAMETOOLONG:
+ Status = STATUS_NAME_TOO_LONG;
+ break;
+ case -ENOSYS:
+ Status = STATUS_NOT_IMPLEMENTED;
+ break;
+ case -EOPNOTSUPP:
+ Status = STATUS_NOT_SUPPORTED;
+ break;
default:
Status = STATUS_UNSUCCESSFUL;
break;
|
Fix : recursive_replace_bool for first level boolean properties | @@ -363,7 +363,7 @@ def update_plist_procedure
info_plist_data = $app_config["iphone"]["info_plist_data"]
if info_plist_data.kind_of?(Hash)
info_plist_data.each do |key, value|
- recursive_replace_bool(value)
+ value = recursive_replace_bool(value)
recursive_merge_hash(hash, key, value)
end
end
|
fix build by using sudo $(xmake) | @@ -22,14 +22,14 @@ function main(argv)
os.exec("xmake f --cc=gcc --cxx=g++")
os.exec("xmake m buildtest")
if os.host() ~= "windows" then
- os.exec("sudo xmake install")
- os.exec("sudo xmake uninstall")
+ os.exec("sudo \"$(xmake)\" install")
+ os.exec("sudo \"$(xmake)\" uninstall")
end
os.exec("xmake f --cc=clang --cxx=clang++ --ld=clang++ --verbose --backtrace")
os.exec("xmake m buildtest")
if os.host() ~= "windows" then
- os.exec("sudo xmake install --all -v --backtrace")
- os.exec("sudo xmake uninstall -v --backtrace")
+ os.exec("sudo \"$(xmake)\" install --all -v --backtrace")
+ os.exec("sudo \"$(xmake)\" uninstall -v --backtrace")
end
os.exec("xmake m -d buildtest")
|
Add dedent to core.
Makes longstrings easier to use - can be combined with comptime
for overhead free long strings. | (if (not= i len) (array/push ret (slicer ind i)))
ret)
+(defn dedent
+ "Remove indentation after concatenating the arguments. Works by removing
+ leading whitespace, and then removing that same pattern of whitepsace after
+ new lines."
+ [& xs]
+ (def x (string ;xs))
+ (def first-letter (find-index (fn [c] (and (not= c (chr "\n"))
+ (not= c (chr " "))
+ (not= c (chr "\t"))
+ (not= c (chr "\r")))) x))
+ (if (not first-letter) (break ""))
+ (def leading-whitespace (string/slice x 0 first-letter))
+ (def indent (last (string/split "\n" leading-whitespace)))
+ (if (and indent (not= indent ""))
+ (let [y (string/replace-all (string "\n" indent) "\n" (string/replace indent "" x))]
+ # Remove trailing newline to mimic long string newline omission.
+ (if (= (chr "\n") (last y))
+ (slice y 0 -2)
+ y))
+ x))
+
###
###
### IO Helpers
|
tools/webui: add colon to namespaces, so they are only shown once | @@ -18,7 +18,7 @@ import TreeView from "../../containers/ConnectedTreeView";
import TreeSearch from "../../containers/ConnectedTreeSearch";
import InstanceError from "../InstanceError.jsx";
-const NAMESPACES = ["user", "system", "spec", "dir"];
+const NAMESPACES = ["user:", "system:", "spec:", "dir:"];
// create tree structure from kdb ls result (list of available keys)
const partsTree = (acc, parts) => {
|
It's sys/socket.h OR ws2tcpip.h, not MAYBE AND. | @@ -193,9 +193,7 @@ check_include_file (ws2tcpip.h HAVE_WS2TCPIP_H)
if (HAVE_SOCKET_H)
list (APPEND CMAKE_EXTRA_INCLUDE_FILES sys/socket.h)
-endif()
-
-if (HAVE_WS2TCPIP_H)
+elseif (HAVE_WS2TCPIP_H)
list (APPEND CMAKE_EXTRA_INCLUDE_FILES ws2tcpip.h)
endif()
|
Ruby adding missing IO methods | @@ -84,6 +84,9 @@ extern void init_rhoext_Signature();
extern void Init_encdb(void);
extern void ruby_init_prelude(void);
extern void Init_transcode(void);
+extern void Init_IO(void);
+extern void Init_wait(void);
+extern void Init_nonblock(void);
//RhoSupport extension
@@ -196,6 +199,11 @@ void RhoRubyStart()
#endif
ruby_init();
+
+ Init_IO();
+ Init_wait();
+ Init_nonblock();
+
Init_encdb();
#if defined(OS_MACOSX) || defined(OS_ANDROID)
Init_transcode();
|
docs - update postgis package name | @@ -422,7 +422,7 @@ export POSTGIS_GDAL_ENABLED_DRIVERS=DISABLE_ALL</codeblock>
<p>After PostGIS support has been removed from all databases in the Greenplum Database
system, you can remove the PostGIS extension package. For example this
<codeph>gppkg</codeph> command removes the PostGIS extension package.
- <codeblock>gppkg -r postgis-ossv2.1.5_pv2.1_gpdb5.0</codeblock></p>
+ <codeblock>gppkg -r postgis-2.1.5+pivotal.2</codeblock></p>
<p>Restart Greenplum Database after removing the package.</p>
<codeblock>gpstop -r</codeblock>
<p dir="ltr">Ensure that these lines for PostGIS Raster support are removed from the
|
x509: fix a dangling pointer
If object was pointer was passed and an error occured the object was freed & the
pointer returned. Fix this to NULL out the caller's pointer before returning.
Fixes | @@ -131,8 +131,10 @@ X509 *d2i_X509(X509 **a, const unsigned char **in, long len)
/* Only cache the extensions if the cert object was passed in */
if (cert != NULL && a != NULL) { /* then cert == *a */
if (!ossl_x509v3_cache_extensions(cert)) {
- if (free_on_error)
+ if (free_on_error) {
+ *a = NULL;
X509_free(cert);
+ }
cert = NULL;
}
}
|
docs(grid) fix missing article | The Grid layout is a subset of [CSS Flexbox](https://css-tricks.com/snippets/css/complete-guide-grid/).
-It can arrange items into 2D "table" that has rows or columns (tracks). The item can span through multiple columns or rows.
+It can arrange items into a 2D "table" that has rows or columns (tracks). The item can span through multiple columns or rows.
The track's size can be set in pixel, to the largest item (`LV_GRID_CONTENT`) or in "Free unit" (FR) to distribute the free space proportionally.
To make an object a grid container call `lv_obj_set_layout(obj, LV_LAYOUT_GRID)`.
|
Removing the fix me comment for bound in tuplesort_mk.
This is fixed with the commit | -/*
- * GPDB_83_MERGE_FIXME: PostgreSQL 8.3 added "bounded" sort support to
- * tuplesort.c. It has not been ported to tuplesort_mk.c yet
- */
/*-------------------------------------------------------------------------
*
* tuplesort.c
|
README tweaks and buildbot badge test. | @@ -20,6 +20,8 @@ list to ask questions, github issues aren't seen by everyone!
* libevent, https://www.monkey.org/~provos/libevent/ (libevent-dev)
* libseccomp, (optional, experimental, linux) - enables process restrictions for
better security. Tested only on x86_64 architectures.
+* openssl, (optional) - enables TLS support. need relatively up to date
+ version.
## Environment
@@ -28,13 +30,18 @@ dangerous when using a large cache. Just make sure the memcached machines
don't swap. memcached does non-blocking network I/O, but not disk. (it
should never go to disk, or you've lost the whole point of it)
+## Build status
+
+[](https://build.memcached.org/#/builders)
+[](https://build.memcached.org/#/builders)
+
## Bug reports
Feel free to use the issue tracker on github.
**If you are reporting a security bug** please contact a maintainer privately.
We follow responsible disclosure: we handle reports privately, prepare a
-patch, allow notifications to vendor lists, then run a fix release and your
+patch, allow notifications to vendor lists. Then we push a fix release and your
bug can be posted publicly with credit in our release notes and commit
history.
|
test/powerdemo.c: Format with clang-format
BRANCH=none
TEST=none | @@ -23,7 +23,6 @@ static volatile enum {
POWER_STATE_DOWN2 /* Assert output for 2ms */
} state = POWER_STATE_IDLE;
-
/* Stops the timer. */
static void __stop_timer(void)
{
@@ -33,7 +32,6 @@ static void __stop_timer(void)
LM4_TIMER_ICR(7) = LM4_TIMER_RIS(7);
}
-
/* Starts the timer with the specified delay. If the timer is already
* started, resets it. */
static void __start_timer(int usec)
@@ -46,7 +44,6 @@ static void __start_timer(int usec)
LM4_TIMER_CTL(7) |= 0x01;
}
-
static void __set_state(int new_state, int pin_value, int timeout)
{
LM4_GPIO_DATA(LM4_GPIO_D, 0x08) = (pin_value ? 0x08 : 0);
@@ -57,7 +54,6 @@ static void __set_state(int new_state, int pin_value, int timeout)
state = new_state;
}
-
int power_demo_init(void)
{
volatile uint32_t scratch __attribute__((unused));
@@ -102,7 +98,6 @@ int power_demo_init(void)
return EC_SUCCESS;
}
-
/* GPIO interrupt handler */
static void __gpio_d_interrupt(void)
{
@@ -125,7 +120,6 @@ static void __gpio_d_interrupt(void)
DECLARE_IRQ(LM4_IRQ_GPIOD, __gpio_d_interrupt, 1);
-
/* Timer interrupt handler */
static void __timer_w1_interrupt(void)
{
|
SOVERSION bump to version 2.23.1 | @@ -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 23)
-set(LIBYANG_MICRO_SOVERSION 0)
+set(LIBYANG_MICRO_SOVERSION 1)
set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG_MINOR_SOVERSION}.${LIBYANG_MICRO_SOVERSION})
set(LIBYANG_SOVERSION ${LIBYANG_MAJOR_SOVERSION})
|
test-suite: python from latest mvapich2 version requires disablement
of on-demand connection management | @@ -26,6 +26,11 @@ module load $python_module_prefix-mpi4py
flunk "helloworld.py does not exist"
fi
+ if [ "$LMOD_FAMILY_MPI" == "mvapich2" ];then
+ export MV2_SUPPORT_DPM=1
+ fi
+
+
run_mpi_binary "${_python} helloworld.py" $ARGS $NODES $TASKS
assert_success
}
|
Initialize the env eagerly.
This prevents potential allocations when getting the
PATH environment variable. | @@ -25,10 +25,13 @@ const Zenvp = (0 : byte#)
var envduped : bool = false
var environ : byte#[:]
+const __init__ = {
+ envinit()
+}
+
const getenv = {name
var n, env
- envinit()
for envp : environ
if envp != Zenvp
env = cstrconvp(envp)
@@ -51,8 +54,6 @@ const getenvv = {name, default
const setenv = {name, val
var n, e, env, idx, found
- envinit()
-
idx = 0
found = false
e = fmt("{}={}\0", name, val)
|
chip/ish/system_state_subsys.c: Format with clang-format
BRANCH=none
TEST=none | #define CPRINTF(format, args...)
#endif
-
/* the following "define"s and structures are from host driver
* and they are slightly modified for look&feel purpose.
*/
@@ -126,8 +125,7 @@ static int ss_subsys_resume(void)
/*
* Restore VNN power request from before suspend.
*/
- if (IS_ENABLED(CHIP_FAMILY_ISH5) &&
- cached_vnn_request) {
+ if (IS_ENABLED(CHIP_FAMILY_ISH5) && cached_vnn_request) {
/* Request all cached power rails that are not already on. */
PMU_VNN_REQ = cached_vnn_request & ~PMU_VNN_REQ;
/* Wait for power request to get acknowledged */
|
zephyr/shim/src/mkbp_event.c: Format with clang-format
BRANCH=none
TEST=none | const struct mkbp_event_source *zephyr_find_mkbp_event_source(uint8_t type)
{
- STRUCT_SECTION_FOREACH(mkbp_event_source, evtsrc) {
+ STRUCT_SECTION_FOREACH(mkbp_event_source, evtsrc)
+ {
if (evtsrc->event_type == type)
return evtsrc;
}
|
config-tools: assign a fixed address to log area start address
Reserve the log area in [VIRT_ACPI_NVS_ADDR + 0xB0000, 0x7FFF0000) | @@ -59,8 +59,12 @@ PCI_VUART_VBAR1_SIZE = 4 * SIZE_K
# Constants for vmsix bar
VMSIX_VBAR_SIZE = 4 * SIZE_K
-# Constants for tpm2 log area minimum length
-LOG_AREA_MIN_LEN = 256 * SIZE_K
+# Constant for VIRT_ACPI_NVS_ADDR
+"""
+VIRT_ACPI_NVS_ADDR needs to be consistant with the layout of hypervisor\arch\x86\guest\ve820.c
+"""
+VIRT_ACPI_NVS_ADDR = 0x7FF00000
+RESERVED_NVS_AREA = 0xB0000
class MmioWindow(namedtuple(
"MmioWindow", [
@@ -356,15 +360,13 @@ def allocate_log_area(board_etree, scenario_etree, allocation_etree):
return
if common.get_node("//capability[@id='log_area']", board_etree) is not None:
- # VIRT_ACPI_DATA_ADDR
- log_area_min_len = int(common.get_node(f"//log_area_minimum_length/text()", board_etree), 16)
- log_area_end_address = 0x7FFF0000
- log_area_start_address = log_area_end_address - log_area_min_len
+ log_area_min_len_native = int(common.get_node(f"//log_area_minimum_length/text()", board_etree), 16)
+ log_area_start_address = common.round_up(VIRT_ACPI_NVS_ADDR, 0x10000) + RESERVED_NVS_AREA
allocation_vm_node = common.get_node(f"/acrn-config/vm[@id = '0']", allocation_etree)
if allocation_vm_node is None:
allocation_vm_node = common.append_node("/acrn-config/vm", None, allocation_etree, id = '0')
common.append_node("./log_area_start_address", hex(log_area_start_address).upper(), allocation_vm_node)
- common.append_node("./log_area_minimum_length", hex(log_area_min_len).upper(), allocation_vm_node)
+ common.append_node("./log_area_minimum_length", hex(log_area_min_len_native).upper(), allocation_vm_node)
"""
Pre-launched VM gpa layout:
|
link: adjust sigil size to 38 | @@ -65,7 +65,7 @@ export class LinkItem extends Component {
<div className="w-100 pv3 flex bg-white bg-gray0-d">
<Sigil
ship={"~" + props.ship}
- size={36}
+ size={38}
color={"#" + props.color}
classes={(member ? "mix-blend-diff" : "")}
/>
|
keep return_map_fd opened in h2o_socket_ebpf_setup() | @@ -1613,6 +1613,8 @@ static int ebpf_map_delete(int fd, const void *key)
return syscall(__NR_bpf, BPF_MAP_DELETE_ELEM, &attr, sizeof(attr));
}
+static int return_map_fd = -1; // for h2o_return
+
int h2o_socket_ebpf_setup(void)
{
int success = 0;
@@ -1645,9 +1647,9 @@ int h2o_socket_ebpf_setup(void)
h2o_perror("BPF_OBJ_PIN failed");
}
} else {
+ return_map_fd = fd;
success = 1;
}
- close(fd); // each worker thread has its own fd
Exit:
return success;
}
@@ -1738,14 +1740,6 @@ int h2o_socket_ebpf_init_key(h2o_ebpf_map_key_t *key, void *_sock)
return h2o_socket_ebpf_init_key_raw(key, sock_type, (void *)&local, (void *)&remote);
}
-static int get_return_map_fd(h2o_loop_t *loop)
-{
- static __thread int fd = -1;
- static __thread uint64_t last_attempt = 0;
- get_map_fd(loop, H2O_EBPF_RETURN_MAP_PATH, &fd, &last_attempt);
- return fd;
-}
-
static void on_track_ebpf_lookup_timer(h2o_timer_t *timeout);
struct {
@@ -1793,8 +1787,7 @@ uint64_t h2o_socket_ebpf_lookup_flags(h2o_loop_t *loop, int (*init_key)(h2o_ebpf
if (tracing_map_fd >= 0)
ebpf_map_lookup(tracing_map_fd, &key, &flags);
- int return_map_fd;
- if (H2O__PRIVATE_SOCKET_LOOKUP_FLAGS_ENABLED() && (return_map_fd = get_return_map_fd(loop)) >= 0) {
+ if (H2O__PRIVATE_SOCKET_LOOKUP_FLAGS_ENABLED() && return_map_fd >= 0) {
pid_t tid = gettid();
/* Make sure a possible old flags is not set, otherwise the subsequent logic will be unreliable. */
|
Add USE_WINDOWS_PROC define to Visual Studio project. | </PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
- <PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;CUCKOO_MODULE;HASH_MODULE;DOTNET_MODULE;HAVE_LIBCRYPTO</PreprocessorDefinitions>
+ <PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;CUCKOO_MODULE;HASH_MODULE;DOTNET_MODULE;HAVE_LIBCRYPTO;USE_WINDOWS_PROC</PreprocessorDefinitions>
<AdditionalIncludeDirectories>..\..\..\libyara;..\..\..\libyara\include;..\..\..;..\packages\YARA.Jansson.x86.1.1.0\include;..\packages\YARA.OpenSSL.x86.1.1.0\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<DisableSpecificWarnings>4005;4273;4090</DisableSpecificWarnings>
<CompileAs>CompileAsCpp</CompileAs>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
- <PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;CUCKOO_MODULE;HASH_MODULE;DOTNET_MODULE;HAVE_LIBCRYPTO</PreprocessorDefinitions>
+ <PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;CUCKOO_MODULE;HASH_MODULE;DOTNET_MODULE;HAVE_LIBCRYPTO;USE_WINDOWS_PROC</PreprocessorDefinitions>
<AdditionalIncludeDirectories>..\..\..\libyara;..\..\..\libyara\include;..\..\..;..\packages\YARA.Jansson.x64.1.1.0\include;..\packages\YARA.OpenSSL.x64.1.1.0\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<DisableSpecificWarnings>4005;4273;4090</DisableSpecificWarnings>
<CompileAs>CompileAsCpp</CompileAs>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
- <PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;CUCKOO_MODULE;HASH_MODULE;DOTNET_MODULE;HAVE_LIBCRYPTO</PreprocessorDefinitions>
+ <PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;CUCKOO_MODULE;HASH_MODULE;DOTNET_MODULE;HAVE_LIBCRYPTO;USE_WINDOWS_PROC</PreprocessorDefinitions>
<AdditionalIncludeDirectories>..\..\..\libyara;..\..\..\libyara\include;..\..\..;..\packages\YARA.Jansson.x86.1.1.0\include;..\packages\YARA.OpenSSL.x86.1.1.0\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<DisableSpecificWarnings>4005;4273;4090</DisableSpecificWarnings>
<CompileAs>CompileAsCpp</CompileAs>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
- <PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;CUCKOO_MODULE;HASH_MODULE;DOTNET_MODULE;HAVE_LIBCRYPTO</PreprocessorDefinitions>
+ <PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;CUCKOO_MODULE;HASH_MODULE;DOTNET_MODULE;HAVE_LIBCRYPTO;USE_WINDOWS_PROC</PreprocessorDefinitions>
<AdditionalIncludeDirectories>..\..\..\libyara;..\..\..\libyara\include;..\..\..;..\packages\YARA.Jansson.x64.1.1.0\include;..\packages\YARA.OpenSSL.x64.1.1.0\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<DisableSpecificWarnings>4005;4273;4090</DisableSpecificWarnings>
<CompileAs>CompileAsCpp</CompileAs>
|
Apply the coding rule in things_sss_manager.c
Each variable shall be declared in the new line. | @@ -185,7 +185,8 @@ static int things_set_cert_chains(void)
return ret;
}
- int cnt = 0, i = 0;
+ int cnt = 0;
+ int i = 0;
uint8_t *ptr = buf;
// Artik Certificate Order : rootCA -> subCA -> deviceCA
for (i = 0; i < buflen - 2; i++) {
|
Use TS functions to parse tsconfig | @@ -81,8 +81,18 @@ class TypeScriptLanguageServiceHost {
getCompilationSettings(currentDirectory) {
if (currentDirectory) {
- const tsconfig = path.join(currentDirectory, 'tsconfig.json');
- return node_require(tsconfig);
+ const configFileName = ts.findConfigFile(
+ currentDirectory,
+ ts.sys.fileExists,
+ 'tsconfig.json'
+ );
+ const configFile = ts.readConfigFile(configFileName, ts.sys.readFile);
+ const compilerOptions = ts.parseJsonConfigFileContent(
+ configFile.config,
+ ts.sys,
+ './'
+ );
+ return compilerOptions.raw;
}
const options = {
|
h2olog/quic: support the cc_congestion probe | @@ -105,6 +105,7 @@ struct quic_event_t {
u64 largest_acked;
u64 bytes_acked;
u64 inflight;
+ u64 max_lost_pn;
u32 cwnd;
u8 first_octet;
u32 newly_acked;
@@ -303,6 +304,26 @@ int trace_cc_ack_received(struct pt_regs *ctx) {
return 0;
}
+int trace_cc_congestion(struct pt_regs *ctx) {
+ void *pos = NULL;
+ struct quic_event_t event = {};
+ struct st_quicly_conn_t conn = {};
+ sprintf(event.type, "cc_congestion");
+
+ bpf_usdt_readarg(1, ctx, &pos);
+ bpf_probe_read(&conn, sizeof(conn), pos);
+ event.master_conn_id = conn.master_id;
+ bpf_usdt_readarg(2, ctx, &event.at);
+ bpf_usdt_readarg(3, ctx, &event.max_lost_pn);
+ bpf_usdt_readarg(4, ctx, &event.inflight);
+ bpf_usdt_readarg(5, ctx, &event.cwnd);
+
+ if (events.perf_submit(ctx, &event, sizeof(event)) < 0)
+ bpf_trace_printk("failed to perf_submit\\n");
+
+ return 0;
+}
+
int trace_new_token_send(struct pt_regs *ctx) {
void *pos = NULL;
struct quic_event_t event = {};
@@ -408,6 +429,9 @@ def handle_quic_event(cpu, data, size):
elif line.type == "cc_ack_received":
for k in ["largest_acked", "bytes_acked", "cwnd", "inflight"]:
rv[k] = getattr(line, k)
+ elif line.type == "cc_congestion":
+ for k in ["max_lost_pn", "inflight", "cwnd"]:
+ rv[k] = getattr(line, k)
elif line.type == "new_token_send":
for k in ["token_preview", "len", "token_generation"]:
rv[k] = getattr(line, k)
@@ -478,6 +502,7 @@ if sys.argv[1] == "quic":
u.enable_probe(probe="packet_acked", fn_name="trace_packet_acked")
u.enable_probe(probe="packet_lost", fn_name="trace_packet_lost")
u.enable_probe(probe="cc_ack_received", fn_name="trace_cc_ack_received")
+ u.enable_probe(probe="cc_congestion", fn_name="trace_cc_congestion")
u.enable_probe(probe="new_token_send", fn_name="trace_new_token_send")
u.enable_probe(probe="new_token_acked", fn_name="trace_new_token_acked")
u.enable_probe(probe="new_token_receive", fn_name="trace_new_token_receive")
|
OpenCanopy: Update to use existing utility method | @@ -1914,12 +1914,7 @@ BootPickerViewInitialize (
mBootPickerVersionLabel.Obj.OffsetY = 0;
} else {
DestLen = AsciiStrLen (GuiContext->PickerContext->TitleSuffix);
- UString = AllocateZeroPool ((DestLen + 1) * sizeof(CHAR16));
- if (UString == NULL) {
- return EFI_OUT_OF_RESOURCES;
- }
-
- AsciiStrToUnicodeStrS (GuiContext->PickerContext->TitleSuffix, UString, DestLen + 1);
+ UString = AsciiStrCopyToUnicode (GuiContext->PickerContext->TitleSuffix, DestLen);
Result = GuiGetLabel (
&mVersionLabelImage,
|
interface: change Read text to Dismiss | @@ -100,7 +100,7 @@ function NotificationWrapper(props: {
</StatelessAsyncAction>
{!props.archived && (
<StatelessAsyncAction name={time.toString()} onClick={onArchive} backgroundColor="transparent">
- Read
+ Dismiss
</StatelessAsyncAction>
)}
</Row>
|
documentation: here satellite/map url | @@ -780,7 +780,7 @@ The DataSource constructor uses the following URL patterns. It requires a minimu
let url = "http://your-url-with-placeholders-see-below"
let tileDataSource = NTHTTPTileDataSource(minZoom: 0, maxZoom: 18, baseURL: url)
- let layer = NTRasterTileLayer(tileDataSource)
+ let layer = NTRasterTileLayer(dataSource: tileDataSource)
{% endhighlight %}
</div>
@@ -800,6 +800,18 @@ The DataSource constructor uses the following URL patterns. It requires a minimu
<br/><br/>
The following sections provide the code for rester tile basemap urls, and a sample image.
+### HERE Satellite Tiles
+
+[`https://1.aerial.maps.api.here.com/maptile/2.1/maptile/newest/satellite.day/{z}/{x}/{y}/512/jpg?lg=eng&token=A7tBPacePg9Mj_zghvKt9Q&app_id=KuYppsdXZznpffJsKT24`](https://carto.com/location-data-services/basemaps/)
+
+<img src=https://1.aerial.maps.api.here.com/maptile/2.1/maptile/newest/satellite.day/4/4/4/256/jpg?lg=eng&token=A7tBPacePg9Mj_zghvKt9Q&app_id=KuYppsdXZznpffJsKT24"/>
+
+### HERE Map Tiles
+
+[`https://1.base.maps.api.here.com/maptile/2.1/maptile/newest/normal.day/{z}/{x}/{y}/256/png8?lg=eng&token=A7tBPacePg9Mj_zghvKt9Q&app_id=KuYppsdXZznpffJsKT24`](https://carto.com/location-data-services/basemaps/)
+
+<img src="https://1.base.maps.api.here.com/maptile/2.1/maptile/newest/normal.day/4/4/4/256/png8?lg=eng&token=A7tBPacePg9Mj_zghvKt9Q&app_id=KuYppsdXZznpffJsKT24"/>
+
### CARTO Positron Tiles
[`http://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png`](https://carto.com/location-data-services/basemaps/)
|
apps/examples: CONFIG_QENCODER was renamed to CONFIG_SENSORS_QENCODER: update README.txt | @@ -1565,7 +1565,7 @@ examples/qencoder
This test depends on these specific QE/NSH configurations settings (your
specific PWM settings might require additional settings).
- CONFIG_QENCODER - Enables quadrature encoder support (upper-half driver).
+ CONFIG_SENSORS_QENCODER - Enables quadrature encoder support (upper-half driver).
CONFIG_NSH_BUILTIN_APPS - Build the QE test as an NSH built-in function.
Default: Built as a standalone progrem.
|
peview: Fix symbol tab crash | @@ -2299,8 +2299,11 @@ NTSTATUS PeDumpFileSymbols(
PPH_STRING dbghelpPath;
PPH_STRING symsrvPath;
- dbghelpPath = PvFindDbghelpPath(FALSE);
- symsrvPath = PvFindDbghelpPath(TRUE);
+ if (!(dbghelpPath = PvFindDbghelpPath(FALSE)))
+ return 1;
+ if (!(symsrvPath = PvFindDbghelpPath(TRUE)))
+ return 1;
+
dbghelpHandle = LoadLibrary(dbghelpPath->Buffer);
symsrvHandle = LoadLibrary(symsrvPath->Buffer);
|
libneat-devel requires libuv-devel, due to include of uv.h in neat.h. | @@ -35,6 +35,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: NEAT (Core API Development Files)
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
+Requires: libuv-devel
%description devel
The NEAT project wants to achieve a complete redesign of the way in which
|
news: fix release notes format | @@ -48,7 +48,7 @@ If you rely on specific behaviour of Elektra's Keynames and have already taken t
### Debian Packaging with CPack
-We are now using CPack to generate modular Debian and Ubuntu packages. This simplifies the packaging process and solves problems where a PR that introduces changes to installed files, fails. We can now also set distribution specifc dependencies with CPack, which is needed for some packages. _Robert Sowula_
+- We are now using CPack to generate modular Debian and Ubuntu packages. This simplifies the packaging process and solves problems where a PR that introduces changes to installed files, fails. We can now also set distribution specifc dependencies with CPack, which is needed for some packages. _(Robert Sowula)_
### <<HIGHLIGHT3>>
|
Use non-hardcoded endpoint while writing attributes
The corresponding switch sensors should have been manually pinned to endpoint 1, so using `sensor->fingerPrint().endpoint` should be fine | @@ -16373,13 +16373,13 @@ void DeRestPluginPrivate::delayedFastEnddeviceProbe(const deCONZ::NodeEvent *eve
DBG_Printf(DBG_INFO, "Write Aqara switch 0x%016llX mode attribute 0x0009 = 1\n", sensor->address().ext());
deCONZ::ZclAttribute attr(0x0009, deCONZ::Zcl8BitUint, QLatin1String("mode"), deCONZ::ZclReadWrite, false);
attr.setValue(static_cast<quint64>(1));
- writeAttribute(sensor, 0x01, XIAOMI_CLUSTER_ID, attr, VENDOR_XIAOMI);
+ writeAttribute(sensor, sensor->fingerPrint().endpoint, XIAOMI_CLUSTER_ID, attr, VENDOR_XIAOMI);
// Activate multiclick mode
DBG_Printf(DBG_INFO, "Write Aqara switch 0x%016llX multiclick mode attribute 0x0125 = 2\n", sensor->address().ext());
deCONZ::ZclAttribute attr2(0x0125, deCONZ::Zcl8BitUint, QLatin1String("multiclick mode"), deCONZ::ZclReadWrite, false);
attr2.setValue(static_cast<quint64>(2));
- writeAttribute(sensor, 0x01, XIAOMI_CLUSTER_ID, attr2, VENDOR_XIAOMI);
+ writeAttribute(sensor, sensor->fingerPrint().endpoint, XIAOMI_CLUSTER_ID, attr2, VENDOR_XIAOMI);
item->setValue(item->toNumber() & ~R_PENDING_MODE);
}
|
explicitly name the path for the autoconf-generated files in .gitignore. | Makefile
Makefile.in
autom4te.cache
-aclocal.m4
config.guess
config.sub
+config.status
configure
depcomp
install-sh
ltmain.sh
missing
test-driver
+libtool
compile
+stamp-h1
stamp-h2
-IlmBaseConfigInternal.h
-OpenEXRConfigInternal.h
+IlmBase/config/IlmBaseConfigInternal.h
+IlmBase/HalfTest/HalfTest
+IlmBase/IexTest/IexTest
+IlmBase/ImathTest/ImathTest
+PyIlmBase/config/PyIlmBaseConfig.h
+PyIlmBase/PyIlmBase.pc
+PyIlmBase/PyIexTest/pyIexTest
+PyIlmBase/PyImathNumpyTest/pyImathNumpyTest
+PyIlmBase/PyImathTest/pyImathTest
+OpenEXR/config/OpenEXRConfigInternal.h
+OpenEXR/IlmImfTest/IlmImfTest
+OpenEXR/IlmImfUtilTest/IlmImfUtilTest
+OpenEXR/IlmImfFuzzTest/IlmImfFuzzTest
b44ExpLogTable.h
dwaLookups.h
eLut
@@ -36,12 +49,6 @@ toFloat.h
*.project
*.cproject
.DS_Store
-HalfTest/
-IexTest/
-ImathTest/
-IlmImfTest/
-IlmImfUtilTest/
-IlmImfFuzzTest/
build/
build-win/
build-nuget/
|
BugID:18002569:Rm bt_controller in mk | @@ -25,12 +25,6 @@ $(NAME)_SOURCES-y := host/uuid.c \
$(NAME)_SOURCES-y += host/hci_ecc.c
-bt_controller?=0
-ifeq ($(bt_controller), 1)
-$(NAME)_COMPONENTS-y += platform.mcu.nrf52xxx.bt_controller
-GLOBAL_DEFINES-y += CONFIG_BT_CTLR
-endif
-
ifeq ($(hci_h4),1)
$(NAME)_SOURCES-y += hci_driver/h4.c
endif
|
Minor tweaks to billboard culling | @@ -438,6 +438,11 @@ namespace carto {
// Billboard is attached to another billboard, calculate position before sorting
cglib::vec3<double> baseBillboardPos = baseBillboardDrawData->getPos();
+ cglib::vec3<float> baseBillboardTranslate = cglib::vec3<float>::convert(baseBillboardPos - viewState.getCameraPos());
+ if (cglib::dot_product(baseBillboardDrawData->getZAxis(), baseBillboardTranslate) > 0) {
+ return false;
+ }
+
float halfSize = baseBillboardDrawData->getSize() * 0.5f;
cglib::vec2<float> labelAnchorVec(((drawData->getAttachAnchorPointX() - baseBillboardDrawData->getAnchorPointX()) * halfSize),
((drawData->getAttachAnchorPointY() - baseBillboardDrawData->getAnchorPointY()) / baseBillboardDrawData->getAspect() * halfSize));
@@ -470,9 +475,9 @@ namespace carto {
CalculateBillboardAxis(*baseBillboardDrawData, viewState, xAxis, yAxis);
// Calculate delta, update position
- cglib::vec3<float> delta = xAxis * labelAnchorVec(0) + yAxis * labelAnchorVec(1);
+ cglib::vec3<double> delta = cglib::vec3<double>::convert(xAxis * labelAnchorVec(0) + yAxis * labelAnchorVec(1));
if (std::shared_ptr<ProjectionSurface> projectionSurface = viewState.getProjectionSurface()) {
- drawData->setPos(baseBillboardPos + cglib::vec3<double>::convert(delta), *projectionSurface);
+ drawData->setPos(baseBillboardPos + delta, *projectionSurface);
}
return true;
}
|
Update BOOTLOADER_UPDATES.md
Fix spacing and sizing.
Delete accidental duplication. | DAPLink has the ability to bundle the bootloader firmware with the interface firmware and apply a bootloader update on the first boot of the interface. This allows bootloader updates to occur at the same time as interface updates and without any special instructions for the user.
-### Enabling bootloader updates
+## Enabling bootloader updates
To enable bootloader updates for a board or interface circuit, you must define the value ```DAPLINK_BOOTLOADER_UPDATE```. Once you define it, you can use the normal release process, which the [developers guide](DEVELOPERS-GUIDE.md) documents, to create firmware for all targets.
-### Safety when updating the bootloader
+## Safety when updating the bootloader
The interface firmware erases and updates the vector table when updating the bootloader. Because of this, there is a small window of time during which the device will be in a nonbootable state if the device loses power. The cause of this is the lack of a valid vector table. To minimize the time without a valid vector table and to reduce risk, interface firmware replaces the bootloader's vector table with its own before performing the update. This way, while the bulk of the bootloader is being loaded, there is a valid vector table, and a loss of power event does not prevent the device from booting. The update process is below. The critical sections during which the device cannot lose power are in bold:
+
1. **Erase the boot vector table, and program the intenterface's vector table to this location**.
1. Erase and program each sector of the bootloader with the new firmware.
1. **Erase the boot vector table, and program the new bootloader's vector table to this location**.
Other checks
-* The interface firmware will not downgrade the bootloader. If the current bootloader has a valid signature and a version greater than the the interface's copy of the bootloader then the interface will not replace the bootloader.
+* The interface firmware will not downgrade the bootloader. If the current bootloader has a valid signature and a version greater than the interface's copy of the bootloader then the interface will not replace the bootloader.
* The interface firmware does a checksum over itself to check for any corruption. If it finds itself to be corrupt, it will not apply the bootloader update. In addition, an assert will appear on the on mass storage.
* Before attempting to update the bootloader the interface firmware compares its internal copy of the bootloader to the curent bootloader. If they are the same then it does not apply an update.
-### Dangers
+## Dangers
+
* The DAPLink bootloader has a fixed location for where the interface firmware is loaded (typically an offset of 0x8000 from the start of ROM). If you update to a bootloader that has a different offset then you will no longer be able to use the same interface firmware. Instead, you must use interface firmware built for the new offset.
-If the bootloader you updated from had a different offset than the interface firmware you used with that bootloader will no longer work. You must use interface firmware built for the new offset.
* This mechanism does not support downgrading or loading third party bootloaders. To do this, you must use a debugger or create a custom build of DAPLink.
* The LPC11U35 does not have a bootloader, so you cannot use bootloader updates on this interface.
|
BugID:19810330:fix rtl8710bn wdg | @@ -18,7 +18,7 @@ static bool is_enable_handler = FALSE;
void watchdog_irq_handler(uint32_t callback_id)
{
printf("watchdog_irq_handler, callback_id: %d\n", callback_id);
-// sys_reset( ) ;
+ sys_reset( ) ;
}
void watchdog_irq_set(void)
{
|
Add comment on exiting early from mbedtls_gcm_update(). | @@ -454,7 +454,9 @@ int mbedtls_gcm_update( mbedtls_gcm_context *ctx,
*output_length = input_length;
/* Exit early if input_length==0 so that we don't do any pointer arithmetic
- * on a potentially null pointer. */
+ * on a potentially null pointer.
+ * Returning early also means that the last partial block of AD remains
+ * untouched for mbedtls_gcm_finish */
if( input_length == 0 )
return( 0 );
|
[CI] Build kernel headers before building C userspace programs | @@ -63,6 +63,8 @@ jobs:
python3 scripts/install_dependencies.py
# Build userspace headers as the kernel depends on file_manager definitions
python3 scripts/build_userspace_headers.py
+ # Build kernel headers as userspace programs depend on these
+ python3 scripts/build_kernel_headers.py
# Rust libc depends on libutils, so ensure that's built first
python3 scripts/build_meson_projects.py
# Now we can build the Rust toolchain
|
Add adjust_to_sea_pressure function
Now describe_pressure() gives meaningful insights if you set the altitude | @@ -22,6 +22,9 @@ TEMPERATURE_OFFSET = 3
BRIGHTNESS = 0.8
+# change this to adjust pressure based on your altitude
+altitude = 0
+
# light the LED red if the gas reading is less than 50%
GAS_ALERT = 0.5
@@ -46,6 +49,18 @@ def graphic_equaliser():
led.set_rgb(0, ms, 0)
+def adjust_to_sea_pressure(pressure_hpa, temperature, altitude):
+ """
+ Adjust pressure based on your altitude.
+
+ credits to @cubapp https://gist.github.com/cubapp/23dd4e91814a995b8ff06f406679abcf
+ """
+
+ # Adjusted-to-the-sea barometric pressure
+ adjusted_hpa = pressure_hpa + ((pressure_hpa * 9.80665 * altitude) / (287 * (273 + temperature + (altitude / 400))))
+ return adjusted_hpa
+
+
def describe_pressure(pressure_hpa):
"""Convert pressure into barometer-type description."""
if pressure_hpa < 970:
@@ -213,6 +228,9 @@ while True:
# convert pressure into hpa
pressure_hpa = pressure / 100
+ # correct pressure
+ pressure_hpa = adjust_to_sea_pressure(pressure_hpa, corrected_temperature, altitude)
+
# read LTR559
ltr_reading = ltr.get_reading()
lux = ltr_reading[BreakoutLTR559.LUX]
|
Fix REPL issues | @@ -161,13 +161,14 @@ def __runREPL__(repl_name="", namespace={}, banner=None):
sys.excepthook = excepthook
sys.displayhook = displayhook
- __namespace__ = {"clear":ClearREPL()}
- __namespace__.update(namespace)
- __repl_namespace__[repl_name] = __namespace__
+ __repl_namespace__[repl_name] = {"clear":ClearREPL(), "__name__":repl_name.split(".")[0], "__file__":repl_name}
+ __repl_namespace__[repl_name].update(namespace)
+
+ __namespace__ = __repl_namespace__[repl_name]
def read(prompt):
import console
- console.__repl_namespace__[repl_name] = __namespace__
+ __namespace__.update(console.__repl_namespace__[repl_name])
return input(prompt, highlight=True)
@@ -183,7 +184,7 @@ def __runREPL__(repl_name="", namespace={}, banner=None):
# MARK: - Running
-def __clear_mods__(is_widget=False):
+def __clear_mods__():
try:
del sys.modules["pip"]
except KeyError:
@@ -221,7 +222,6 @@ def __clear_mods__(is_widget=False):
except KeyError:
pass
- if not is_widget:
try:
del sys.modules["widgets"]
except KeyError:
@@ -265,6 +265,8 @@ def __clear_mods__(is_widget=False):
pass
+__widget_id__ = None
+
if "widget" not in os.environ:
__script__ = None
@@ -277,7 +279,7 @@ if "widget" not in os.environ:
__are_breakpoints_set__ = True
- def run_script(path, replMode=False, debug=False, breakpoints=[], is_widget=False):
+ def run_script(path, replMode=False, debug=False, breakpoints=[], runREPL=True):
"""
Run the script at given path catching exceptions.
@@ -288,10 +290,11 @@ if "widget" not in os.environ:
replMode: If set to `True`, errors will not be handled.
debug: Set to `True` for debugging.
breakpoints: Lines to break if debugging.
+ runREPL: Set it to `True` for running the REPL.
"""
__repl_namespace__[path.split("/")[-1]] = {}
- __clear_mods__(is_widget)
+ __clear_mods__()
python = Python.shared
python.addScriptToList(path)
@@ -354,10 +357,6 @@ if "widget" not in os.environ:
except PermissionError:
pass
- if Python.shared.widgetLink is not None:
- import widgets
- widgets.link = str(Python.shared.widgetLink)
-
# Kill the REPL running for this script
global __repl_threads__
if path in __repl_threads__:
@@ -549,7 +548,7 @@ if "widget" not in os.environ:
Python.shared.isScriptRunning = False
Python.shared.removeScriptFromList(path)
- if path.endswith(".repl.py"): # Is REPL
+ if path.endswith(".repl.py") or not runREPL:
return
if type(t) is tuple and len(t) == 3 and not is_watch_script:
|
added warning: If hcxdumptool captured your password from WiFi traffic, you should check all your devices immediately! | @@ -4709,6 +4709,8 @@ printf("%s %s (C) %s ZeroBeat\n"
"--poweroff : once hcxdumptool terminated, power off system\n"
"--help : show this help\n"
"--version : show version\n"
+ "\n"
+ "If hcxdumptool captured your password from WiFi traffic, you should check all your devices immediately!\n"
"\n",
eigenname, VERSION, VERSION_JAHR, eigenname, eigenname, TIME_INTERVAL, ERRORMAX, EAPOLTIMEOUT, DEAUTHENTICATIONINTERVALL,
DEAUTHENTICATIONINTERVALL, APATTACKSINTERVALL, APATTACKSINTERVALL, FILTERLIST_LINE_LEN, FILTERLIST_MAX,
|
[persistence] Do not decrease refcount after allocating an element. | @@ -10392,11 +10392,11 @@ item_apply_list_elem_insert(hash_item *it, const int nelems, const int index,
ret = do_list_elem_insert(it, index, elem, NULL);
if (ret != ENGINE_SUCCESS) {
+ do_list_elem_free(elem);
logger->log(EXTENSION_LOG_WARNING, NULL, "item_apply_list_elem_insert failed."
" key=%.*s index=%d code=%d\n",
it->nkey, key, index, ret);
}
- do_list_elem_release(elem);
} while(0);
if (ret != ENGINE_SUCCESS) { /* Remove inconsistent hash_item */
@@ -10480,11 +10480,11 @@ item_apply_set_elem_insert(hash_item *it, const char *value, const uint32_t nbyt
ret = do_set_elem_insert(it, elem, NULL);
if (ret != ENGINE_SUCCESS) {
+ do_set_elem_free(elem);
logger->log(EXTENSION_LOG_WARNING, NULL, "item_apply_set_elem_insert failed."
" key=%.*s code=%d\n",
it->nkey, key, ret);
}
- do_set_elem_release(elem);
} while(0);
if (ret != ENGINE_SUCCESS) { /* Remove inconsistent hash_item */
@@ -10560,11 +10560,11 @@ item_apply_map_elem_insert(hash_item *it, const char *data, const uint32_t nfiel
ret = do_map_elem_insert(it, elem, true /* replace_if_exist */, NULL);
if (ret != ENGINE_SUCCESS) {
+ do_map_elem_free(elem);
logger->log(EXTENSION_LOG_WARNING, NULL, "item_apply_map_elem_insert failed."
" key=%.*s nfield=%d field=%.*s code=%d\n",
it->nkey, key, nfield, nfield, data + it->nkey, ret);
}
- do_map_elem_release(elem);
} while(0);
if (ret != ENGINE_SUCCESS) { /* Remove inconsistent has_item */
@@ -10653,11 +10653,11 @@ item_apply_btree_elem_insert(hash_item *it, const char *data, const uint32_t nbk
ret = do_btree_elem_insert(it, elem, true /* replace_if_exist */,
&replaced, NULL, NULL, NULL);
if (ret != ENGINE_SUCCESS) {
+ do_btree_elem_free(elem);
logger->log(EXTENSION_LOG_WARNING, NULL, "item_apply_btree_elem_insert failed."
" key=%.*s nbkey=%d bkey=%.*s code=%d\n",
it->nkey, key, nbkey, nbkey, (data + it->nkey), ret);
}
- do_btree_elem_release(elem);
} while(0);
if (ret != ENGINE_SUCCESS) { /* Remove inconsistent has_item */
|
CMake do not differenciate between source- and header-files | @@ -16,7 +16,7 @@ include_directories(src/)
include_directories(${SDL2_INCLUDE_DIR})
include_directories(${SDL2_MIXER_INCLUDE_DIR})
-set(SOURCE_FILES
+add_executable(nothing
src/color.c
src/game.c
src/game/camera.c
@@ -58,9 +58,6 @@ set(SOURCE_FILES
src/str.c
src/ui/history.c
src/game/level/region.c
-)
-
-set(HEADER_FILES
src/color.h
src/game.h
src/game/camera.h
@@ -106,7 +103,6 @@ set(HEADER_FILES
src/game/level/region.h
)
-add_executable(nothing ${SOURCE_FILES} ${HEADER_FILES})
add_executable(repl
src/script/builtins.c
src/script/builtins.h
|
apps/mediarecorder: modify filepath from ramfs to tmp.
Since ramfs is not uesd, correct it. | @@ -116,11 +116,11 @@ public:
mr.create();
mr.setObserver(shared_from_this());
if (test == TEST_PCM) {
- filePath = "/ramfs/record.pcm";
+ filePath = "/tmp/record.pcm";
mr.setDataSource(unique_ptr<FileOutputDataSource>(
new FileOutputDataSource(2, 16000, AUDIO_FORMAT_TYPE_S16_LE, filePath)));
} else if (test == TEST_OPUS) {
- filePath = "/ramfs/record.opus";
+ filePath = "/tmp/record.opus";
mr.setDataSource(unique_ptr<FileOutputDataSource>(
new FileOutputDataSource(2, 16000, AUDIO_FORMAT_TYPE_S16_LE, filePath)));
}
|
Fix memory leak in handle_layer_shell_surface | @@ -325,12 +325,6 @@ void handle_layer_shell_surface(struct wl_listener *listener, void *data) {
layer_surface->client_pending.margin.bottom,
layer_surface->client_pending.margin.left);
- struct sway_layer_surface *sway_layer =
- calloc(1, sizeof(struct sway_layer_surface));
- if (!sway_layer) {
- return;
- }
-
if (!layer_surface->output) {
// Assign last active output
struct sway_container *output = NULL;
@@ -352,6 +346,12 @@ void handle_layer_shell_surface(struct wl_listener *listener, void *data) {
layer_surface->output = output->sway_output->wlr_output;
}
+ struct sway_layer_surface *sway_layer =
+ calloc(1, sizeof(struct sway_layer_surface));
+ if (!sway_layer) {
+ return;
+ }
+
sway_layer->surface_commit.notify = handle_surface_commit;
wl_signal_add(&layer_surface->surface->events.commit,
&sway_layer->surface_commit);
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.