message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
always enable msp protocol | #include "drv_usb.h"
#include "project.h"
-#if defined(F405) && defined(USE_SERIAL_4WAY_BLHELI_INTERFACE)
+#if defined(F405)
#define MSP_API_VERSION 1 //out message
#define MSP_FC_VARIANT 2 //out message
@@ -137,6 +137,7 @@ void usb_process_msp() {
send_msp(code, data, 12);
break;
}
+#ifdef defined(USE_SERIAL_4WAY_BLHE... |
opae.admin: log exceptions when calling `setpci`
getting/setting aer involves calling `setpci`.
This change makes it so that getting/setting aer will log the error but
not crash the caller. | @@ -27,6 +27,7 @@ import glob
import os
import re
from contextlib import contextmanager
+from subprocess import CalledProcessError
from opae.admin.utils.process import call_process, DRY_RUN
from opae.admin.utils.log import loggable, LOG
@@ -266,13 +267,19 @@ class pci_node(sysfs_node):
@property
def aer(self):
+ try:
r... |
SensorAPI: Send sensor data over OIC
use valid URIs as per spec | #include <oic/oc_ri.h>
#include <oic/oc_api.h>
+static const char g_s_oic_dn[] = "x.mynewt.sensors.r.";
+
static int
sensor_oic_encode(struct sensor* sensor, void *arg, void *databuf)
{
@@ -456,19 +458,13 @@ sensor_oic_get_data(oc_request_t *request, oc_interface_mask_t interface)
int rc;
struct sensor *sensor;
struct ... |
EGL context creation fixes; | @@ -90,7 +90,7 @@ bool lovrPlatformCreateWindow(WindowFlags* flags) {
EGL_NONE
};
- EGLconfig config = 0;
+ EGLConfig config = 0;
for (EGLint i = 0; i < configCount && !config; i++) {
EGLint value, mask;
@@ -121,7 +121,7 @@ bool lovrPlatformCreateWindow(WindowFlags* flags) {
EGL_NONE
};
- if ((state.context = eglCreate... |
tls: fix tlsopenssl for remaining buffer
Type: fix
1. added additional checks for pending data in
openssl_ctx_read_tls().
2. fixed read/write typo issues. | @@ -475,7 +475,7 @@ openssl_ctx_read_tls (tls_ctx_t *ctx, session_t *tls_session)
{
openssl_ctx_t *oc = (openssl_ctx_t *) ctx;
session_t *app_session;
- int read, wrote = 0;
+ int read;
svm_fifo_t *f;
if (PREDICT_FALSE (SSL_in_init (oc->ssl)))
@@ -493,10 +493,11 @@ openssl_ctx_read_tls (tls_ctx_t *ctx, session_t *tls_s... |
http3: Use a temporary buffer when iterating over connection list
`conn` (which includes `node`) might be freed in the loop.
This error was introduced when bringing a similar logic from HTTP/2 code.
HTTP/2 code is fine. | @@ -1511,7 +1511,7 @@ static void graceful_shutdown_close_stragglers(h2o_timer_t *entry)
h2o_linklist_t *node, *next;
/* We've sent two GOAWAY frames, close the remaining connections */
- for (node = ctx->http3._conns.next; node != &ctx->http3._conns; node = node->next) {
+ for (node = ctx->http3._conns.next; node != &... |
Version of FoldCase that is actually branch-free on MSVC | @@ -78,8 +78,9 @@ void Log(LogLevel level, const char* fmt, ...);
inline int FoldCase(int c)
{
- int y = c | 0x20;
- return (c >= 'A' && c <= 'Z') ? y : c;
+ // This generates branch-free code on GCC, Clang and MSVC
+ int adjust = (c >= 'A' && c <= 'Z') ? 0x20 : 0;
+ return c | adjust;
}
// Compute 32-bit DJB-2 hash of... |
no $INCLUDE in this test. | @@ -34,14 +34,8 @@ example 3600 IN SOA dns.example.de. hostmaster.dns.example.de. (
3600 IN NS ns2.example.com.
$ORIGIN example.com.
www 3600 IN A 1.2.3.4
-mail 3600 IN A 1.2.3.5
- 3600 IN AAAA ::5
ns1 3600 IN A 1.2.3.4
ns2 3600 IN AAAA ::2
-$INCLUDE_TEMPFILE example.inc
-TEMPFILE_END
-TEMPFILE_CONTENTS example.inc
-ot... |
Add text/vtt for WebVTT. | @@ -103,6 +103,7 @@ MIMEMAP("ts", "video/mp2t")
MIMEMAP("ttc", "font/collection")
MIMEMAP("ttf", "font/ttf")
MIMEMAP("txt", "text/plain")
+MIMEMAP("vtt", "text/vtt")
MIMEMAP("war", "application/java-archive")
MIMEMAP("wasm", "application/wasm")
MIMEMAP("wbmp", "image/vnd.wap.wbmp")
|
Fix pipeline error on type mismatch | @@ -190,7 +190,7 @@ oc_locn_t
oc_str_to_enum_locn(oc_string_t locn_str, bool *oc_defined)
{
oc_locn_t locn = OCF_LOCN_UNKNOWN;
- for (int i = 0; i < (sizeof(oc_locns) / sizeof(char *)); i++) {
+ for (int i = 0; i < (int)(sizeof(oc_locns) / sizeof(char *)); i++) {
if (strcmp(oc_string(locn_str), oc_locns[i]) == 0) {
loc... |
Ensure that the requested memory size cannot exceed the limit imposed by a
size_t variable. | @@ -207,6 +207,8 @@ int EVP_PBE_scrypt(const char *pass, size_t passlen,
if (maxmem == 0)
maxmem = SCRYPT_MAX_MEM;
+ if (maxmem > SIZE_MAX)
+ maxmem = SIZE_MAX;
if (Blen + Vlen > maxmem) {
EVPerr(EVP_F_EVP_PBE_SCRYPT, EVP_R_MEMORY_LIMIT_EXCEEDED);
|
fancybar patch applied | @@ -784,10 +784,10 @@ dirtomon(int dir)
void
drawbar(Monitor *m)
{
- int x, w, sw = 0, stw = 0;
+ int x, w, sw = 0, tw = 0, stw = 0, mw, ew = 0;
int boxs = drw->fonts->h / 9;
int boxw = drw->fonts->h / 6 + 2;
- unsigned int i, occ = 0, urg = 0;
+ unsigned int i, occ = 0, urg = 0, n = 0;
Client *c;
if(showsystray && m =... |
macOS: remove augeas, oclint from arm builds on cirrus due to incompatibility | @@ -111,7 +111,6 @@ task:
brew install openjdk \
antlr \
antlr4-cpp-runtime \
- augeas \
bison \
clang-format \
dbus \
@@ -142,7 +141,6 @@ task:
yajl \
yaml-cpp \
zeromq
- brew install --cask oclint
- > # Try to install `checkbashisms` (The file server that hosts the package is unfortunately quite unreliable.)
brew ins... |
ExUtilInitCommandLineArguments: fix leak on error
argv_data would leak if the argv_ allocation failed or the MAX_ARGC cap
was hit
Tested:
for i in `seq 1 171`; do
export MALLOC_FAIL_AT=$i
./examples/img2webp jpeg_file -o /dev/null
./examples/img2webp -mixed jpeg_file -o /dev/null
done | @@ -103,7 +103,10 @@ int ExUtilInitCommandLineArguments(int argc, const char* argv[],
}
args->own_argv_ = 1;
args->argv_ = (const char**)WebPMalloc(MAX_ARGC * sizeof(*args->argv_));
- if (args->argv_ == NULL) return 0;
+ if (args->argv_ == NULL) {
+ ExUtilDeleteCommandLineArguments(args);
+ return 0;
+ }
argc = 0;
for ... |
make TSCH joining attempts to print fewer errors; increase the time discrepancy allowance for the joining timestamp | @@ -550,7 +550,7 @@ tsch_associate(const struct input_packet *input_eb, rtimer_clock_t timestamp)
if(input_eb == NULL || tsch_packet_parse_eb(input_eb->payload, input_eb->len,
&frame, &ies, &hdrlen, 0) == 0) {
- LOG_ERR("! failed to parse EB (len %u)\n", input_eb->len);
+ LOG_DBG("! failed to parse EB (len %u)\n", inpu... |
Initialize the local variable to fix the BLE_Unit_MQTT_Serialize hang-up issue during run time. | @@ -653,9 +653,9 @@ static void prvCreatePUBLISHPacket( uint8_t * pBuffer,
TEST( BLE_Unit_MQTT_Serialize, DeserializePUBLISH )
{
MQTTBLEStatus_t status;
- uint8_t buffer[ TEST_MESG_LEN ];
+ uint8_t buffer[ TEST_MESG_LEN ] = { 0 };
size_t length = TEST_MESG_LEN;
- MQTTBLEPublishInfo_t publishInfo;
+ MQTTBLEPublishInfo_t... |
ble_mesh: correct the return type [Zephyr] | @@ -741,7 +741,7 @@ static bool model_has_dst(struct bt_mesh_model *model, u16_t dst)
if (BLE_MESH_ADDR_IS_UNICAST(dst)) {
return (dev_comp->elem[model->elem_idx].addr == dst);
} else if (BLE_MESH_ADDR_IS_GROUP(dst) || BLE_MESH_ADDR_IS_VIRTUAL(dst)) {
- return bt_mesh_model_find_group(model, dst);
+ return !!bt_mesh_mo... |
CI: Cleanup copyright-ignore from pppos files | @@ -3190,23 +3190,6 @@ examples/protocols/openssl_client/main/openssl_client_example_main.c
examples/protocols/openssl_server/example_test.py
examples/protocols/openssl_server/main/openssl_server_example.h
examples/protocols/openssl_server/main/openssl_server_example_main.c
-examples/protocols/pppos_client/components/m... |
Fix options window crash | #include <phsettings.h>
#define WM_PH_CHILD_EXIT (WM_APP + 301)
+#define WM_PH_SHOWDIALOG (WM_APP + 302)
INT_PTR CALLBACK PhpOptionsGeneralDlgProc(
_In_ HWND hwndDlg,
@@ -134,6 +135,8 @@ VOID PhpSetDefaultTaskManager(
);
static HWND PhOptionsWindowHandle = NULL;
+static HANDLE PhOptionsWindowThreadHandle = NULL;
+stati... |
[STM32][RTC] Add timeval ops for STM32 platform Sub-second timestamp. | @@ -38,7 +38,7 @@ RT_WEAK void HAL_RTCEx_BKUPWrite(RTC_HandleTypeDef *hrtc, uint32_t BackupRegiste
return;
}
-static time_t get_rtc_timestamp(void)
+static void get_rtc_timeval(struct timeval *tv)
{
RTC_TimeTypeDef RTC_TimeStruct = {0};
RTC_DateTypeDef RTC_DateStruct = {0};
@@ -54,8 +54,11 @@ static time_t get_rtc_time... |
Implement reading from local variables | @@ -8,6 +8,7 @@ local coder = {}
local generate_program
local generate_stat
+local generate_var
local generate_exp
function coder.generate(filename, input, modname)
@@ -415,7 +416,39 @@ generate_stat = function(stat)
end
end
--- Returns (statements, value)
+-- @returns (statements, clvalue)
+generate_var = function(var... |
removing extra quotes from shell command | @@ -8,4 +8,4 @@ dependencies:
test:
override:
- - docker run -t --env CIRCLE_BRANCH='$CIRCLE_BRANCH' -v $PWD:$PWD kubostech/kubos-dev:latest python $PWD/test/integration/integration_test.py
+ - docker run -t --env CIRCLE_BRANCH=$CIRCLE_BRANCH -v $PWD:$PWD kubostech/kubos-dev:latest python $PWD/test/integration/integrat... |
clay: scry kernel source out of arvo for reef short-circuit | ++ deep
|= [pax=path src=cord]
^- ?
- :: XX scry into arvo
- ::
- :: //=//=/mod/fat
- :: =+ (~(get ^de fat) pax)
- :: &(?=(^ fil) ?=(%hoon p.fil) =(src q.fil))
- ::
- =/ our-lobe=lobe
- (page-to-lobe hoon/src)
- =/ =dome dom:(~(got by dos.rom) %home)
- =/ =yaki (~(got by hut.ran) (~(got by hit.dome) let.dome))
- =/ lob... |
tests CHANGE test description/reference refine in uses/grouping | @@ -2335,7 +2335,7 @@ test_refine(void **state)
"leaf-list ll {type mytype; default goodbye; max-elements 6;}"
"choice ch {default a; leaf a {type int8;}leaf b{type uint8;}}"
"leaf x {type mytype; mandatory true; must 1;}"
- "anydata a {mandatory false; if-feature f;}"
+ "anydata a {mandatory false; if-feature f; descr... |
baseboard/kukui: Increase UART TX buffer size to 8192
To keep buffer overflow logs.
TEST=make buildall
BRANCH=kukui
Tested-by: Nicolas Boichat | /* Increase tx buffer size, as we'd like to stream EC log to AP. */
#undef CONFIG_UART_TX_BUF_SIZE
-#define CONFIG_UART_TX_BUF_SIZE 4096
+#define CONFIG_UART_TX_BUF_SIZE 8192
/* To be able to indicate the device is in tablet mode. */
#define CONFIG_TABLET_MODE
|
Do not use ChaCha20 if not supported by OpenSSL version | @@ -1032,14 +1032,18 @@ void picoquic_crypto_context_free(picoquic_crypto_context_t * ctx)
/* Definition of supported key exchange algorithms */
-ptls_key_exchange_algorithm_t *picoquic_key_exchanges[] = { &ptls_openssl_secp256r1, &ptls_openssl_x25519, NULL };
+ptls_key_exchange_algorithm_t *picoquic_key_exchanges[] = ... |
Respect predefined defaults for AR, AS, LD and RANLIB | @@ -263,10 +263,10 @@ endif
ARFLAGS =
CPP = $(COMPILER) -E
-AR = $(CROSS_SUFFIX)ar
-AS = $(CROSS_SUFFIX)as
-LD = $(CROSS_SUFFIX)ld
-RANLIB = $(CROSS_SUFFIX)ranlib
+AR ?= $(CROSS_SUFFIX)ar
+AS ?= $(CROSS_SUFFIX)as
+LD ?= $(CROSS_SUFFIX)ld
+RANLIB ?= $(CROSS_SUFFIX)ranlib
NM = $(CROSS_SUFFIX)nm
DLLWRAP = $(CROSS_SUFFIX)d... |
tests/unit/tests/utils/utils_refcnt.c/utils_refcnt_register_zero_cb.c: fix typos | @@ -87,7 +87,7 @@ static void ocf_refcnt_register_zero_cb_test02(void **state)
expect_function_calls(zero_cb, 1);
expect_value(zero_cb, ctx, ptr);
- /* regiser callback */
+ /* register callback */
ocf_refcnt_register_zero_cb(&rc, zero_cb, ptr);
val = env_atomic_read(&rc.callback);
|
HotKeys: Add OC_INPUT_TYPING_CONFIRM | @@ -404,24 +404,12 @@ OcGetPickerKeyInfo (
}
//
- // Handle typing
+ // Handle typing chars.
//
- if (FilterForTyping) {
- if (UnicodeChar >= 32 && UnicodeChar < 128) {
+ if (FilterForTyping && UnicodeChar >= 32 && UnicodeChar < 128) {
PickerKeyInfo->TypingChar = (CHAR8)UnicodeChar;
}
- if (OcKeyMapHasKey (Keys, NumKey... |
Create config.powerup only for dresden elektronik FLS lights | @@ -2375,7 +2375,7 @@ void DeRestPluginPrivate::addLightNode(const deCONZ::Node *node)
QString uid = generateUniqueId(lightNode.address().ext(), lightNode.haEndpoint().endpoint(), 0);
lightNode.setUniqueId(uid);
- if (existDevicesWithVendorCodeForMacPrefix(node->address(), VENDOR_DDEL) && i->deviceId() != DEV_ID_CONFIG... |
libhfnetdriver: use TCP_NODELAY only if it and SOL_TCP is defined | @@ -123,10 +123,12 @@ static int netDriver_sockConnAddr(const struct sockaddr *addr, socklen_t socklen
if (setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &val, (socklen_t)sizeof(val)) == -1) {
PLOG_W("setsockopt(sock=%d, SOL_SOCKET, SO_REUSEADDR, 1)", sock);
}
+#if defined(SOL_TCP) && defined(TCP_NODELAY)
val = 1;
if (sets... |
fix issue of get absolute path | @@ -27,7 +27,7 @@ void xdag_init_path(char *path) {
if (*n != '/' && *n != '\\') {
char buf[PATH_MAX];
getcwd(buf, PATH_MAX);
- sprintf(g_xdag_current_path, "%s/%s", n, buf);
+ sprintf(g_xdag_current_path, "%s/%s", buf, n);
} else {
sprintf(g_xdag_current_path, "%s", n);
}
|
Getting rid of c_str for TStringBuf, p1. | @@ -83,14 +83,14 @@ struct TFixedString {
template <typename T>
TFixedString(const TStringBase<T, TCharType, TTraits>& s)
- : Start(s.c_str())
+ : Start(s.data())
, Length(s.size())
{
}
template <typename T, typename A>
TFixedString(const std::basic_string<TCharType, T, A>& s)
- : Start(s.c_str())
+ : Start(s.data())
,... |
Conditionals: Use fences for code blocks | @@ -32,7 +32,9 @@ Operations: `!=, ==, <, <=, =>, >, :=`, where:
### Assign Syntax
+```
(IF-condition) ? ('ThenValue') : ('ElseValue')
+```
Depending on if the condition is met, either 'ThenValue' or 'ElseValue' will be assigned as key value if the metakey `assign/condition` is used.
@@ -56,7 +58,9 @@ For multiple assi... |
doc: update security advisory for v1.6 release
Update mitigations for security vulnerabilities
for ACRN v.16 release. | Security Advisory
*****************
-We recommend that all developers upgrade to this v1.4 release, which addresses the following security
+We recommend that all developers upgrade to this v1.6 release, which addresses the following security
issues that were discovered in previous releases:
+Hypervisor Crashed When Fuz... |
Document AtkEventListener.ReceiveEvent | @@ -755,7 +755,9 @@ factory.register(0x14164F460, "Client::System::Framework::TaskManager", [], {
factory.register(0x14164F478, "Client::System::Configuration::SystemConfig", ["Common::Configuration::SystemConfig"], {})
factory.register(0x14164F498, "Client::System::Configuration::DevConfig", ["Common::Configuration::D... |
scope properties | @@ -380,7 +380,7 @@ sys_gui("set $var_scope_max_range $max_range\n");
sys_gui("set $var_scope_del $del\n");
sys_gui("set $var_scope_draw_style $draw_style\n");
// Receive
-sys_gui("if {$rcv == \"empty\"} {set $var_scope_rcv [format \"\"]} else {set $var_scope_rcv $rcv}\n");
+sys_gui("if {$rcv == \"empty\"} {set $var_sc... |
use error_return_t struct | @@ -135,11 +135,11 @@ uint8_t LuosBootloader_IsEnoughSpace(uint32_t binary_size)
uint32_t free_space = FLASH_END - APP_ADDRESS;
if (free_space > binary_size)
{
- return 0x01;
+ return SUCCEED;
}
else
{
- return 0x00;
+ return FAILED;
}
}
#endif
@@ -358,7 +358,7 @@ void LuosBootloader_Task(void)
// save binary length
me... |
[viostor] fail write request on readonly disk. | @@ -824,12 +824,11 @@ VirtIoStartIo(
case SCSIOP_WRITE:
case SCSIOP_WRITE16: {
if (CHECKBIT(adaptExt->features, VIRTIO_BLK_F_RO)) {
- PSENSE_DATA senseBuffer = (PSENSE_DATA) Srb->SenseInfoBuffer;
- ScsiStatus = SCSISTAT_CHECK_CONDITION;
- SRB_SET_SCSI_STATUS(((PSRB_TYPE)Srb), ScsiStatus);
- senseBuffer->SenseKey = SCSI... |
SW: Add one more linefeed | @@ -151,6 +151,7 @@ static void dnut_print_search_results(struct dnut_job *cjob, unsigned int run)
if (((i+1) % 3) == 0)
printf("\n");
}
+ printf("\n");
}
if (verbose_flag > 1) {
printf(PR_RED "Found: %016llx/%lld" PR_STD
|
Fix for "MemorySanitizer: use-of-uninitialized-value in __kmp_query_cpuid" | #include "kmp_str.h"
#include <float.h>
#include "kmp_i18n.h"
+#include <util/system/cpu_id.h>
/* ------------------------------------------------------------------------ */
/* ------------------------------------------------------------------------ */
@@ -284,20 +285,17 @@ __kmp_query_cpuid( kmp_cpuinfo_t *p )
{ // Pa... |
a concession for sipfyn-pidmex | =, format
;< breh=(list @tas) bind:m (buds (so:dejs u.know))
%- pure:m
-!>(`json`(frond:enjs 'buds' a+(turn breh |=(@tas s++<))))
+!>(`json`(frond:enjs 'buds' a+(turn breh |=(@tas s+[+<]))))
|
gall: fix /clear-huck handling | ?. (~(has by yokes.state) dap)
~> %slog.0^leaf/"gall: ignoring %nuke for {<dap>}, not running"
mo-core
+ ~> %slog.0^leaf/"gall: nuking {<dap>}"
=. mo-core ap-abet:ap-nuke:(ap-abed:ap dap `our)
mo-core(yokes.state (~(del by yokes.state) dap))
:: +mo-peek: call to +ap-peek (which is not accessible outside of +mo).
~&(%ga... |
Update: Minor adjustment for better usage | @@ -1405,6 +1405,8 @@ int main(int argc, char *argv[])
puts("YAN pong (starts Pong example)");
puts("YAN pong2 (starts Pong2 example)");
puts("YAN testchamber (starts Test Chamber multistep procedure learning example)");
+ puts("YAN alien (starts the alien example)");
+ puts("YAN shell (starts the interactive NAL shell... |
Fix for string object not being identified correctly | @@ -21,9 +21,9 @@ static void mp_obj_to_string(const mp_obj_t &obj, std::string &string_out) {
}
else if(mp_obj_is_float(obj))
mp_raise_TypeError("can't convert 'float' object to str implicitly");
- if(mp_obj_is_int(obj))
+ else if(mp_obj_is_int(obj))
mp_raise_TypeError("can't convert 'int' object to str implicitly");
... |
add mixin to sha3 config | @@ -149,6 +149,7 @@ class FireSimRocketChipOctaCoreConfig extends Config(
// SHA-3 accelerator config
class FireSimRocketChipSha3L2Config extends Config(
new WithInclusiveCache ++
+ new sha3.WithSha3Printf ++
new sha3.WithSha3Accel ++
new WithNBigCores(1) ++
new FireSimRocketChipConfig)
|
GBP: fix the runs before statement against the ACL node | @@ -726,7 +726,7 @@ VLIB_NODE_FUNCTION_MULTIARCH (gbp_4_node, gbp_4);
VNET_FEATURE_INIT (gbp_4_node, static) = {
.arc_name = "ip4-unicast",
.node_name = "gbp4",
- .runs_after = VNET_FEATURES ("acl-plugin-out-ip4-fa"),
+ .runs_after = VNET_FEATURES ("acl-plugin-in-ip4-fa"),
};
VLIB_REGISTER_NODE (gbp_6_node) = {
@@ -751... |
tests: Replace `fgrep` by `grep -f` | @@ -203,7 +203,7 @@ check_set_mv_rm() {
#
is_not_rw_storage() {
- echo $("$KDB" plugin-info "$PLUGIN" provides 2> /dev/null) | fgrep -qw "storage"
+ echo $("$KDB" plugin-info "$PLUGIN" provides 2> /dev/null) | grep -f -qw "storage"
if [ $? != 0 ]; then
return 0
fi
|
Add note that binaries come from last stable tag | @@ -57,6 +57,9 @@ and macOS (x64) are available here:
* [Binary directory](/Binary/).
+ These binaries are built from the latest stable tag, and therefore do not
+ necessarily represent the current state of the `master` branch source code.
+
# Building from source
Builds for Linux and macOS use GCC and Make, and are te... |
Update PKGBUILD-odroid | -# Maintainer: Jai-JAP <parjailu@gmail.com>, SpacingBat3 <git@spacingbat3.anonaddy.com>
+# Maintainer: Jai-JAP <jai.jap.318@gmail.com>, SpacingBat3 <git@spacingbat3.anonaddy.com>
# Author: Sebastien Chevalier <ptitseb@box86.org>
pkgname=box86-odroid-git
-pkgver=3494.bedacef
+pkgver=3858.5368285
pkgrel=1
pkgdesc="Linux ... |
dojo: reset =dir during migration
The base desk is the new default. If we leave the dir untouched, for
most users this means they remain on home, which gets rendered
explicitly in the prompt since it's no longer the default desk. | ++ session-6-to-7
|= old=session-6
~? ?=(^ poy.old) [dap.hid %cancelling-for-load]
- old(poy ~)
+ old(poy ~, -.dir [our.hid %base ud+0])
::
+$ house-5
[%5 egg=@u hoc=(map id session)]
|
Update test suite to timeout after 300 seconds, show error_log on failure in Github action. | @@ -18,13 +18,11 @@ jobs:
- name: configure
env:
CC: /usr/bin/gcc
- run: ./configure --enable-debug --enable-maintainer --enable-sanitizer
+ run: ./configure --enable-debug --enable-maintainer
- name: make
run: make
- name: test
- env:
- ASAN_OPTIONS: leak_check_at_exit=false
- run: make test
+ run: make test || cat te... |
server: Limit dynbuflen | @@ -62,6 +62,10 @@ namespace {
constexpr size_t TOKEN_RAND_DATALEN = 16;
} // namespace
+namespace {
+constexpr size_t MAX_DYNBUFLEN = 1024 * 1024;
+} // namespace
+
namespace {
auto randgen = util::make_mt19937();
} // namespace
@@ -502,6 +506,10 @@ int dyn_read_data(nghttp3_conn *conn, int64_t stream_id, const uint8_... |
uip: Corrects restoration of IEEE 802.15.4 short addresses from IIDs | @@ -600,7 +600,7 @@ uip_ds6_set_lladdr_from_iid(uip_lladdr_t *lladdr, const uip_ipaddr_t *ipaddr)
memcpy(lladdr, ipaddr->u8 + 8, UIP_LLADDR_LEN);
lladdr->addr[0] ^= 0x02;
#elif (UIP_LLADDR_LEN == 2)
- memcpy(lladdr, ipaddr->u8 + 6, UIP_LLADDR_LEN);
+ memcpy(lladdr, ipaddr->u8 + 8 + 6, UIP_LLADDR_LEN);
#else
#error uip-... |
test-suite: tweak extrae test for pbs | @@ -49,6 +49,18 @@ unset OMP_NUM_THREADS
run ls trace.prv
assert_success
+ # allow for some job output lag from pbs
+ for i in `seq 1 10`; do
+ if [ -s job.out ];then
+ break
+ else
+ sleep 0.2
+ fi
+ done
+
+ run ls job.out
+ assert_success
+
run tail -1 job.out
assert_output "mpi2prv: Congratulations! trace.prv has b... |
Updates GOPATH in README.macOS.bash
gpbackup and gpmigrate need the GOPATH to be set to the standard GOPATH
gpupgrade uses direnv to successfully set a custom GOPATH | @@ -87,8 +87,8 @@ EOF
# Step: GOPATH for Golang
cat >> ~/.bash_profile << EOF
-export GOPATH=\$HOME/workspace/gpdb/gpMgmt/go-utils
-export PATH=\$HOME/workspace/gpdb/gpMgmt/go-utils/bin:\$PATH
+export GOPATH=\$HOME/go
+export PATH=\$HOME/go/bin:\$PATH
EOF
# Step: speed up compile time (optional)
|
Correct processing of AES-SHA stitched ciphers
Fixes: | @@ -733,7 +733,7 @@ static int aesni_cbc_hmac_sha256_set_tls1_aad(void *vctx,
if (len < AES_BLOCK_SIZE)
return 0;
len -= AES_BLOCK_SIZE;
- p[aad_len] = len >> 8;
+ p[aad_len - 2] = len >> 8;
p[aad_len - 1] = len;
}
sctx->md = sctx->head;
|
util/ectool_i2c.c: Format with clang-format
BRANCH=none
TEST=none | @@ -20,8 +20,7 @@ int cmd_i2c_protect(int argc, char *argv[])
int rv;
if (argc != 2 && (argc != 3 || strcmp(argv[2], "status"))) {
- fprintf(stderr, "Usage: %s <port> [status]\n",
- argv[0]);
+ fprintf(stderr, "Usage: %s <port> [status]\n", argv[0]);
return -1;
}
@@ -56,9 +55,8 @@ int cmd_i2c_protect(int argc, char *ar... |
grid: Fix notification order in inbox | @@ -40,7 +40,8 @@ export const BasicNotification = ({ notification, lid }: BasicNotificationProps)
if (!first || !charge) {
return null;
}
- const contents = map(notification.body, 'content').filter((c) => c.length > 0);
+ const orderedByTime = notification.body.sort((a, b) => b.time - a.time);
+ const contents = map(o... |
Prototype do_active_block(entity *ent) function. Consolidate setting up flags, actions and animations when entity blocks actively (before an attack hits). | @@ -2806,9 +2806,10 @@ int is_frozen(entity *e);
void unfrozen(entity *e);
void adjust_bind(entity *e);
float binding_position(float position_default, float position_target, int offset, e_binding_positioning positioning);
+int check_bind_override(entity *ent, e_binding_overriding overriding);
// Blocking logic.
-int ch... |
Fix trimlines wasn't allowing extra character count when using global vars | @@ -3,12 +3,12 @@ const LINE_MIN = 2;
const CHARS_PER_LINE = 18;
const CHARS_MAX_TOTAL = 18 + 18 + 16;
-const varRegex = new RegExp("\\$[VLT][0-9]+\\$", "g");
-const varCharRegex = new RegExp("#[VLT][0-9]+#", "g");
+const varRegex = new RegExp("\\$[VLT]?[0-9]+\\$", "g");
+const varCharRegex = new RegExp("#[VLT]?[0-9]+#... |
Update the json config file for using git | {"bootstrap_visit":
{"version": "3.0.0b",
"build_types": ["release"],
+ "branch": "develop",
"arch": "darwin-x86_64",
"cert": "Developer ID Application: Kevin Griffin (K2QL7A77SW)",
"make_nthreads": 8,
+ "skip_checkout": "yes",
"boost_dir": "/Users/griffin28/Documents/WCI/ASQ/VisIt/third_party_pydv/boost/1_60_0/i386-ap... |
chore(docs) add missed makeindex step | @@ -60,6 +60,7 @@ cmd("cd ../scripts && doxygen Doxyfile")
cmd("sphinx-build -b latex . out_latex")
# Generate PDF
+cmd("cd out_latex && makeindex LVGL.idx")
cmd("cd out_latex && makeindex -s python.ist -o LVGL.ind LVGL.idx")
cmd("cd out_latex && xelatex -interaction=batchmode *.tex")
# Copy the result PDF to the main ... |
*Removed* line 1521 to remove default header | @@ -1509,7 +1509,6 @@ _cttp_ccon_fire(u3_ccon* coc_u, u3_creq* ceq_u)
_cttp_ccon_fire_str(coc_u, ceq_u->url_c);
_cttp_ccon_fire_str(coc_u, " HTTP/1.1\r\n");
_cttp_ccon_fire_str(coc_u, "User-Agent: urbit/vere.0.2\r\n");
- // _cttp_ccon_fire_str(coc_u, "Accept: */*\r\n");
// XX it's more painful than it's worth to deal w... |
SOVERSION bump to version 2.3.11 | @@ -63,7 +63,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 3)
-set(LIBYANG_MICRO_SOVERSION 10)
+set(LIBYANG_MICRO_SOVERSION 11)
set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG_... |
INTERNAL: Fix loop count bug in default_keyscan. | @@ -1238,52 +1238,56 @@ default_keyscan(const char cursor[], const uint32_t count, const char *pattern,
ENGINE_ITEM_TYPE type, item **item_array, int item_arrsz, int *item_count)
{
assert(count+100 <= item_arrsz); /* may scan more than count. */
- hash_item **scan_array = (hash_item**)item_array;
+ int iter_total = 0;
... |
jenkins: run checks also on master | @@ -776,7 +776,7 @@ def buildTodo() {
}]
}
-/* Stage checking if release notes have been updated */
+/* Stage checking if release notes have been updated (only on PRs, as it doesn't make sense on master) */
def buildCheckReleaseNotes() {
def stageName = "check-release-notes"
return [(stageName): {
@@ -789,11 +789,11 @@... |
Improve event autoLabel for direction fields | @@ -158,6 +158,18 @@ const ScriptEventTitle = ({ command, args = {} }: ScriptEventTitleProps) => {
}
return String(value);
};
+ const directionForValue = (value: unknown) => {
+ if (value === "left") {
+ return l10n("FIELD_DIRECTION_LEFT");
+ }
+ if (value === "right") {
+ return l10n("FIELD_DIRECTION_RIGHT");
+ }
+ if... |
out_stackdriver: fix private_key buffer allocation | @@ -150,7 +150,7 @@ static int read_credentials_file(const char *creds, struct flb_stackdriver *ctx)
tmp = flb_sds_create_len(val, val_len);
if (tmp) {
/* Unescape private key */
- ctx->private_key = flb_sds_create_size(flb_sds_alloc(tmp));
+ ctx->private_key = flb_sds_create_size(val_len);
flb_unescape_string(tmp, flb... |
linux-firmware-rpidistro: Update to 1:20210315-3+rpt7 release
This new revision comes with a lot of changes around the license. We
have two issues raised against upstream to clarify them: | @@ -24,17 +24,17 @@ LICENSE = "\
Firmware-broadcom_bcm43xx-rpidistro \
"
LIC_FILES_CHKSUM = "\
- file://debian/config/brcm80211/LICENSE;md5=8cba1397cda6386db37210439a0da3eb \
+ file://debian/config/brcm80211/copyright;md5=b0630b02d90e3da72206c909b6aecc8c \
"
# These are not common licenses, set NO_GENERIC_LICENSE for t... |
NAT44: fix coverity | @@ -2541,7 +2541,7 @@ nat44_ed_not_translate_output_feature (snat_main_t * sm, ip4_header_t * ip,
u32 thread_index, u32 sw_if_index)
{
clib_bihash_kv_16_8_t kv, value;
- snat_main_per_thread_data_t *tsm = tsm = &sm->per_thread_data[thread_index];
+ snat_main_per_thread_data_t *tsm = &sm->per_thread_data[thread_index];
... |
Do not use GOST sig algs in TLSv1.3 where possible
Fixes | @@ -1519,9 +1519,50 @@ static int tls12_sigalg_allowed(SSL *s, int op, const SIGALG_LOOKUP *lu)
|| lu->hash_idx == SSL_MD_MD5_IDX
|| lu->hash_idx == SSL_MD_SHA224_IDX))
return 0;
+
/* See if public key algorithm allowed */
if (ssl_cert_is_disabled(lu->sig_idx))
return 0;
+
+ if (lu->sig == NID_id_GostR3410_2012_256
+ |... |
Add oc_auto_assert_roles to Java | @@ -1103,6 +1103,7 @@ bool jni_assert_role(const char *role, const char *authority, oc_endpoint_t *end
#endif /* OC_SECURITY && OC_PKI */
}
%}
+%rename(autoAssertRoles) oc_auto_assert_roles;
%rename(assertAllRoles) oc_assert_all_roles;
%ignore oc_send_ping;
%rename(sendPing) jni_send_ping;
|
Changes from PR. | @@ -140,9 +140,10 @@ the benchmark, without measuring anything.
```sh
./benchmarks/run benchmarks/sieve/pallene.pln --mode=none
```
-It may be the case that your terminal will come with a time program, but will lack the `/usr/bin/time`, which will raise an assertion error in lua when you try to run a benchmark. In that... |
OCB: Add shutdown/restart voice over prompts to builtin picker | @@ -219,6 +219,7 @@ GetPickerEntryCursor (
VOID
UpdateTabContext (
IN BOOLEAN IsEntering,
+ IN OC_BOOT_CONTEXT *BootContext,
IN TAB_CONTEXT TabContext,
IN INTN ChosenEntry,
IN CHAR16 OldEntryCursor,
@@ -253,8 +254,16 @@ UpdateTabContext (
gST->ConOut->OutputString (gST->ConOut, Code);
if (TabContext == TAB_SHUTDOWN) {
... |
test: fix failure with FIPS and no-des configured. | @@ -96,8 +96,8 @@ SKIP: {
}
SKIP: {
- skip "Skipping legacy PKCS#12 test because RC2 is disabled in this build", 1
- if disabled("rc2") || disabled("legacy");
+ skip "Skipping legacy PKCS#12 test because the required algorithms are disabled", 1
+ if disabled("des") || disabled("rc2") || disabled("legacy");
# Test readi... |
super-rsu: call safe_rsu_boot for secure updates
There might be a bug in the fpgasupdate/max10 RoT flow that prevents
subsequent calls to fpgasupdate to succeed without rebooting the card.
This adds a call to safe_rsu_boot after every call to fpgasupdate if it
is determined that the board is secured. | @@ -742,6 +742,9 @@ class pac(object):
LOG.warning('%s exited with code: %s', task.cmd, p.returncode)
self._errors += 1
+ if self.is_secure:
+ self.fpga.safe_rsu_boot(self.boot_page)
+
LOG.debug('task completed in %s', timedelta(
seconds=time.time() - task.start_time))
|
Updated nrf51 to have the same reset cause as nrf52. | @@ -37,6 +37,8 @@ hal_reset_cause(void)
reason = HAL_RESET_SOFT;
} else if (reg & POWER_RESETREAS_RESETPIN_Msk) {
reason = HAL_RESET_PIN;
+ } else if (reg & POWER_RESETREAS_OFF_Msk) {
+ reason = HAL_RESET_SYS_OFF_INT;
} else {
reason = HAL_RESET_POR; /* could also be brownout */
}
|
Fix keypoint op. | @@ -72,7 +72,7 @@ static void py_kp_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind
mp_printf(print, "{\"size\":%d, \"threshold\":%d, \"normalized\":%d}", array_length(self->kpts), self->threshold, self->normalized);
}
-mp_obj_t py_kp_unary_op(mp_uint_t op, mp_obj_t self_in) {
+mp_obj_t py_kp_unary_op(mp... |
Work CD-CI
Add check for ***NO_CI*** in commit message for merges.
Change variable name to SKIP_BUILD to make it clearer. | @@ -36,16 +36,23 @@ jobs:
if( ($commit.commit.author.name -eq "nfbot") -and (($commit.commit.message -like "*[version update]*") -or ($commit.commit.message -like "***NO_CI***")) )
{
- echo "##vso[task.setvariable variable=IS_VERSION_UPDATE;isOutput=true]true"
+ echo "##vso[task.setvariable variable=SKIP_BUILD;isOutput... |
Test round-tripping of doubles through the stack | @@ -27,6 +27,7 @@ spec = do
describe "Random StackValues" $ do
it "can push/pop booleans" $ property prop_bool
it "can push/pop ints" $ property prop_int
+ it "can push/pop doubles" $ property prop_double
it "can push/pop bytestrings" $ property prop_bytestring
it "can push/pop lists of booleans" $ property prop_lists_... |
Make kubelet directory configurable via an environment variable | @@ -44,6 +44,9 @@ const (
// UserRootless is the user which runs the operator.
UserRootless = 65535
+ // DefaultKubeletPath specifies the default kubelet path.
+ DefaultKubeletPath = "/var/lib/kubelet"
+
// KubeletSeccompRootPath specifies the path where all kubelet seccomp
// profiles are stored.
KubeletSeccompRootPat... |
examples/openssl: print out contents of EVP_PKEY | @@ -21,6 +21,10 @@ int LLVMFuzzerTestOneInput(const uint8_t* buf, size_t len) {
EVP_PKEY* key = d2i_AutoPrivateKey(NULL, &buf, len);
if (key == NULL) {
fprintf(stderr, "%s", ERR_error_string(ERR_get_error(), NULL));
+ } else {
+ BIO* out = BIO_new_fp(stdout, BIO_NOCLOSE);
+ EVP_PKEY_print_private(out, key, 4, NULL);
+ ... |
input: update coverage bucketting map | @@ -473,15 +473,14 @@ static inline int input_skipFactor(run_t* run, dynfile_t* dynfile, int* speed_fa
{
/* Inputs with lower total coverage -> lower chance of being tested */
static const int scaleMap[200] = {
- [100 ... 199] = -20,
- [90 ... 99] = -15,
- [80 ... 89] = -10,
- [70 ... 79] = -5,
- [60 ... 69] = -2,
+ [9... |
replace 8.9 with 9.9 in helpers/build-debian.sh | @@ -4,16 +4,16 @@ source /opt/Xilinx/Vivado/2018.3/settings64.sh
make NAME=led_blinker all
-sudo sh scripts/image.sh scripts/debian.sh red-pitaya-debian-8.9-armhf-$DATE.img 1024
-zip red-pitaya-debian-8.9-armhf-$DATE.zip red-pitaya-debian-8.9-armhf-$DATE.img
+sudo sh scripts/image.sh scripts/debian.sh red-pitaya-debian... |
ECDSA_SIG: restore doc comments which were deleted accidentally
amends | @@ -1078,6 +1078,8 @@ const BIGNUM *ECDSA_SIG_get0_s(const ECDSA_SIG *sig);
/** Setter for r and s fields of ECDSA_SIG
* \param sig pointer to ECDSA_SIG structure
+ * \param r pointer to BIGNUM for r (may be NULL)
+ * \param s pointer to BIGNUM for s (may be NULL)
*/
int ECDSA_SIG_set0(ECDSA_SIG *sig, BIGNUM *r, BIGNUM... |
Fix typo in define in comment
This fixes error in check-names.sh test. | #if defined(MBEDTLS_PSA_CRYPTO_CONFIG)
#include "psa/crypto_config.h"
-#endif /* defined(MBEDTLS_PSAY_CRYPTO_CONFIG) */
+#endif /* defined(MBEDTLS_PSA_CRYPTO_CONFIG) */
#ifdef __cplusplus
extern "C" {
|
fix floating root hover resize | @@ -2041,11 +2041,11 @@ motionnotify(XEvent *e)
// leave small deactivator zone
if (ev->y_root >= bh - 3) {
// hover near floating sel, don't do it if desktop is covered
- if (selmon->sel && selmon->sel->isfloating) {
+ if (selmon->sel && ( selmon->sel->isfloating || NULL == selmon->lt[selmon->sellt]->arrange )) {
Clie... |
server: Send all post handshake data | @@ -948,8 +948,8 @@ int Handler::tls_handshake() {
// TODO Create stream 0 to send post-handshake data. Probably, we
// should feed data in recv_stream0_data as well.
auto stream = std::make_unique<Stream>(0);
- if (shandshake_idx_ != shandshake_.size()) {
- auto &v = shandshake_[shandshake_idx_++];
+ for (; shandshake... |
Badger2040: Fix fast partial update endless busy wait for | @@ -175,7 +175,7 @@ MICROPY_EVENT_POLL_HOOK
// Ensure blocking for the minimum amount of time
// in cases where "is_busy" is unreliable.
- while(self->badger2040->is_busy() || absolute_time_diff_us(t_end, get_absolute_time()) > 0) {
+ while(self->badger2040->is_busy() || absolute_time_diff_us(get_absolute_time(), t_end... |
Disabled 136 length AAD for aes-gmac | @@ -774,8 +774,10 @@ static int enable_aes(ACVP_CTX *ctx) {
CHECK_ENABLE_CAP_RV(rv);
rv = acvp_cap_sym_cipher_set_parm(ctx, ACVP_AES_GMAC, ACVP_SYM_CIPH_AADLEN, 128);
CHECK_ENABLE_CAP_RV(rv);
+#if 0 //OpenSSL FOM has compatibility issues with this
rv = acvp_cap_sym_cipher_set_parm(ctx, ACVP_AES_GMAC, ACVP_SYM_CIPH_AADL... |
Fixed inability to parse truncated logs.
This is a regression introduced on | @@ -782,7 +782,7 @@ perform_tail_follow (uint64_t * size1, const char *fn) {
size2 = file_size (fn);
/* file hasn't changed */
- if (size2 <= *size1)
+ if (size2 == *size1)
return;
if (!(fp = fopen (fn, "r")))
|
Address - don't process names passed to dlopen. | @@ -1183,9 +1183,7 @@ JANET_CORE_FN(janet_core_raw_native,
"Returns a `core/native`.") {
janet_arity(argc, 0, 1);
const char *path = janet_optcstring(argv, argc, 0, NULL);
- char *processed_name = (NULL == path) ? NULL : get_processed_name(path);
- Clib lib = load_clib(processed_name);
- if (NULL != path && path != pro... |
common/usb_host_command.c: Format with clang-format
BRANCH=none
TEST=none | @@ -38,26 +38,16 @@ struct producer const hostcmd_producer;
struct usb_stream_config const usbhc_stream;
/* RX (Host->EC) queue */
-static struct queue const usb_to_hostcmd = QUEUE_DIRECT(64,
- uint8_t,
- usbhc_stream.producer,
- hostcmd_consumer);
+static struct queue const usb_to_hostcmd =
+ QUEUE_DIRECT(64, uint8_t,... |
README.md: Use version 2.04.78 | @@ -17,26 +17,26 @@ Usage
Currently the compilation of the plugin is only supported for Raspbian Jessie distribution.
Packages for Qt4 and Raspbian Wheezy are available but not described here.
-##### Install Qt5 development libraries and tools
-
- sudo apt install qt5-default libqt5sql5 libqt5websockets5-dev libqt5seri... |
Avoid #include with inline function on C++Builder
Commit exposed a bug with C++Builder's Clang-based compilers,
which cause inline function definitions in C translation units to not
be found by the linker. Disable the inclusion of the triggering header. | */
# include <winsock2.h>
# include <ws2tcpip.h>
+ /*
+ * Clang-based C++Builder 10.3.3 toolchains cannot find C inline
+ * definitions at link-time. This header defines WspiapiLoad() as an
+ * __inline function. https://quality.embarcadero.com/browse/RSP-33806
+ */
+# if !defined(__BORLANDC__) || !defined(__clang__)
#... |
Add missing case from previous commit | @@ -984,6 +984,16 @@ LRESULT CALLBACK MainWndSubclassProc(
PhInsertEMenuItem(menu, PhCreateEMenuItem(0, PHAPP_ID_COMPUTER_SHUTDOWN, L"Shu&t down", NULL, NULL), -1);
PhInsertEMenuItem(menu, PhCreateEMenuItem(0, PHAPP_ID_COMPUTER_SHUTDOWNHYBRID, L"H&ybrid shut down", NULL, NULL), -1);
+ if (WindowsVersion < WINDOWS_8)
+ ... |
interface api: restore order of context value
vl_api_sw_interface_tx_placement_get_t_handler is autoendian.
So (contrary to most other uses) the context is in native order there.
Thus, send_interface_tx_placement_details needs to convert back
before using REPLY_MACRO_DETAILS5 macro.
Type: fix
Fixes: | @@ -1214,7 +1214,7 @@ out:
static void
send_interface_tx_placement_details (vnet_hw_if_tx_queue_t **all_queues,
u32 index, vl_api_registration_t *rp,
- u32 context)
+ u32 native_context)
{
vnet_main_t *vnm = vnet_get_main ();
vl_api_sw_interface_tx_placement_details_t *rmp;
@@ -1223,6 +1223,7 @@ send_interface_tx_place... |
Remove use of invalid print specifier
Removed invalid print specifer which were causing the print specifer (commonly 'hu')
to be printed rather than the expected number. Reported in the show -error command. | #define FORMAT_UINT32 L"%u"
#define FORMAT_UINT32_HEX L"%08x"
#define FORMAT_INT32 L"%d"
-#define FORMAT_UINT16 L"%hu"
+#define FORMAT_UINT16 L"%u"
#define FORMAT_UINT16_HEX L"%04x"
-#define FORMAT_INT16 L"%hi"
-#define FORMAT_UINT8 L"%hhu"
+#define FORMAT_INT16 L"%d"
+#define FORMAT_UINT8 L"%u"
#define FORMAT_UINT8_HE... |
Increase range of hinted search locations for libaec | #
# AEC_DIR - prefix path of the AEC installation
# AEC_PATH - prefix path of the AEC installation
+# LIBAEC_DIR
+# libaec_DIR
+# LIBAEC_PATH
+# libaec_PATH
find_path( AEC_INCLUDE_DIR szlib.h
- PATHS ${AEC_DIR} ${AEC_PATH} ENV AEC_DIR ENV AEC_PATH
+ PATHS ${AEC_DIR} ${AEC_PATH} ${LIBAEC_DIR} ${libaec_DIR} ${LIBAEC_PATH... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.