message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Rename conn_recv_packet as conn_recv_pkt | @@ -1522,7 +1522,7 @@ static int conn_recv_stream(ngtcp2_conn *conn, const ngtcp2_stream *fr) {
return ngtcp2_conn_close_stream_if_shut_rdwr(conn, strm);
}
-static int conn_recv_packet(ngtcp2_conn *conn, uint8_t *pkt, size_t pktlen,
+static int conn_recv_pkt(ngtcp2_conn *conn, uint8_t *pkt, size_t pktlen,
ngtcp2_tstamp... |
extend debug output | @@ -156,7 +156,7 @@ void searches_set_auth_state( const char query[], const IP *addr, const int stat
struct search_t *search;
struct result_t *result;
- log_debug( "Searches: Set authentication state for %s: %s", query, str_state( state ) );
+ log_debug( "Searches: Set authentication state for %s (%s): %s", str_addr(ad... |
Fix test_ns_utf16_element_leafname() to work in builds | @@ -7780,7 +7780,11 @@ START_TEST(test_ns_utf16_element_leafname)
* where {KHO KHWAI} = U+0E04 = 0xe0 0xb8 0x84 in UTF-8
*/
"\0<\0n\0:\x0e\x04\0 \0x\0m\0l\0n\0s\0:\0n\0=\0'\0U\0R\0I\0'\0/\0>";
- const XML_Char *expected = "URI \xe0\xb8\x84";
+#ifdef XML_UNICODE
+ const XML_Char *expected = XCS("URI \x0e04");
+#else
+ c... |
generate_fips_sources: properly include providers/common/der/*.in | @@ -1220,12 +1220,6 @@ providers/fips.module.sources.new: \
| sed -e 's/^.*: *//' -e 's/ */ /g' \
| fgrep -f sources-tmp/sources | tr ' ' '\n' \
| sed -E -e '/^include/s:$$:.in:' -e 's:^ *([.][.]/)*$(SRCDIR)::' -e 's:^/::' ; \
- for x in providers/common/include/prov/*.h; do \
- echo providers/common/der/`basename "$$x... |
dds: simplifying code to ensure filter length is 4m+1 | @@ -108,9 +108,8 @@ DDS() DDS(_create)(unsigned int _num_stages,
if ((q->h_len[i] % 2) == 0) q->h_len[i]++;
// ensure h_len[i] is of form 4*m+1
- unsigned int m = (q->h_len[i]-1)/4;
- if (m < 1) m = 1;
- q->h_len[i] = 4*m+1;
+ while ((q->h_len[i]-1)%4)
+ q->h_len[i]++;
// update carrier, bandwidth parameters
fc *= 0.5f... |
configure.ac: export an empty lib_prefix variable
this fixes the pkg-config files after:
*.pc.in: add lib prefix to lib names w/MSVC | @@ -749,6 +749,8 @@ fi
dnl =========================
+dnl Add an empty lib_prefix variable for use in *.pc.in.
+AC_SUBST([lib_prefix])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([src/webp/config.h])
AC_CONFIG_FILES([Makefile src/Makefile man/Makefile \
|
pbio/platform/essential_hub: Don't optimize firmware info away.
Fixes | @@ -38,7 +38,7 @@ typedef struct {
// defined in linker script
extern const uint32_t _checksum;
-const lego_fw_info_t __attribute__((section(".fw_info"))) fw_info = {
+const lego_fw_info_t __attribute__((section(".fw_info"), used)) fw_info = {
// These values are not used.
.fw_ver = PBIO_VERSION_STR,
.checksum = &_chec... |
mcu/dialog: Fix gpio irq init with deep sleep enabled
Routine which adds PCC entry overwrites 'i' value so needs to be done
after interrupt struct is initialized, otherwise things will not work
as expected. | @@ -370,24 +370,6 @@ hal_gpio_irq_init(int pin, hal_gpio_irq_handler_t handler, void *arg,
return -1;
}
-#if MYNEWT_VAL(MCU_DEEP_SLEEP)
- /*
- * There should be no PDC entry, but let's check it just in case to avoid
- * creating duplicated entry. We assume that someone either uses hal_gpio
- * to control pins so we "ow... |
Move runs-on under strategy | @@ -4,8 +4,6 @@ on: [push, pull_request]
jobs:
build:
- runs-on: ${{ matrix.os }}
-
strategy:
matrix:
os: [ubuntu-22.04, macos-11]
@@ -33,6 +31,8 @@ jobs:
- os: macos-11
openssl: openssl3
+ runs-on: ${{ matrix.os }}
+
steps:
- uses: actions/checkout@v3
- name: Startup
|
BUFR key section1Padding: bufr_dump -O gives erroneous length=4 instead of 5 | @@ -26,7 +26,7 @@ unsigned[1] typicalMonth : dump;
unsigned[1] typicalDay : dump;
unsigned[1] typicalHour : dump;
unsigned[1] typicalMinute : dump;
-unsigned[1] spare; # ???
+# unsigned[1] spare; # See ECC-978
transient typicalSecond=0;
meta ls.typicalDate sprintf("%.4d%.2d%.2d",typicalYear,typicalMonth,typicalDay) : d... |
xfconf-binding: Directly fetch keynames in debug macros instead of declaring a new variable | @@ -126,11 +126,10 @@ int elektraXfconfGet (Plugin * handle ELEKTRA_UNUSED, KeySet * returned, Key * p
int elektraXfconfSet (Plugin * handle ELEKTRA_UNUSED, KeySet * returned ELEKTRA_UNUSED, Key * parentKey ELEKTRA_UNUSED)
{
ELEKTRA_LOG_DEBUG ("issued set with parent %s\n", keyName (parentKey));
- const char * parentNa... |
sensors/bmi160.c: fix i2C read and write behavior
There is a problem with the original driver reading and writing behavior, refer to the driver of mpu60x0 to make corresponding changes. | @@ -303,7 +303,7 @@ static uint8_t bmi160_getreg8(FAR struct bmi160_dev_s *priv, uint8_t regaddr)
msg[0].frequency = priv->freq;
msg[0].addr = priv->addr;
- msg[0].flags = 0;
+ msg[0].flags = I2C_M_NOSTOP;
msg[0].buffer = ®addr;
msg[0].length = 1;
@@ -422,7 +422,7 @@ static uint16_t bmi160_getreg16(FAR struct bmi160... |
Clear FizzleFade screen properly on init | @@ -43,7 +43,9 @@ void init() {
screen.alpha = 255;
screen.mask = nullptr;
- screen.pen = fade_to[FADE_STEPS - 1];
+ Pen p = fade_to[FADE_STEPS - 1];
+ p.a = 255;
+ screen.pen = p;
screen.clear();
screen.pen = fade_to[0];
|
Add static to a variable in Qemu mps2 demo | @@ -186,7 +186,7 @@ static void prvReloadModeTestTimerCallback( TimerHandle_t xTimer );
/* The variable into which error messages are latched. */
static char * pcStatusMessage = "OK: No errors";
-int xErrorCount = 1;
+static int xErrorCount = 1;
/* This semaphore is created purely to test using the vSemaphoreDelete() a... |
README.md: Use version 2.05.31 | @@ -34,11 +34,11 @@ https://github.com/dresden-elektronik/deconz-rest-plugin/wiki/Supported-Devices
### Install deCONZ
1. Download deCONZ package
- wget http://www.dresden-elektronik.de/rpi/deconz/beta/deconz-2.05.30-qt5.deb
+ wget http://www.dresden-elektronik.de/rpi/deconz/beta/deconz-2.05.31-qt5.deb
2. Install deCON... |
Stop client from sending Certificate message when not requested
In a non client-auth renegotiation where the original handshake *was*
client auth, then the client will send a Certificate message anyway
resulting in a connection failure.
Fixes | @@ -355,6 +355,7 @@ static int state_machine(SSL *s, int server)
s->hit = 0;
s->s3->tmp.cert_request = 0;
+ s->s3->tmp.cert_req = 0;
if (SSL_IS_DTLS(s)) {
st->use_timer = 1;
|
Do not create motion when it's not allowed in cdbpath_motion_for_join(). | @@ -1325,22 +1325,16 @@ cdbpath_motion_for_join(PlannerInfo *root,
other->move_to.numsegments = CdbPathLocus_NumSegments(other->locus);
}
- /*
- * No usable equijoin preds, or caller imposed restrictions on motion.
- * Replicate single rel if cheaper than bottlenecking other rel.
- */
+ /* Broadcast single rel for belo... |
Madoo: Lock EC
Remove CONFIG_SYSTEM_UNLOCKED for production.
BRANCH=dedede
TEST=make BOARD
Tested-by: Aseda Aboagye | #define VARIANT_DEDEDE_EC_NPCX796FC
#include "baseboard.h"
-/*
- * Keep the system unlocked in early development.
- * TODO(b/151264302): Make sure to remove this before production!
- */
-#define CONFIG_SYSTEM_UNLOCKED
-
/* Charger */
#define CONFIG_CHARGER_RAA489000
#define CONFIG_CHARGER_SENSE_RESISTOR_AC 10
|
speed up handshake detection | @@ -1657,7 +1657,7 @@ if(fd_pcapng > 0)
}
qsort(handshakelist, HANDSHAKELIST_MAX, HANDSHAKELIST_SIZE, sort_handshakelist_by_time);
-for(zeiger = handshakelist; zeiger < handshakelist +HANDSHAKELIST_MAX; zeiger++)
+for(zeiger = handshakelist +1; zeiger < handshakelist +HANDSHAKELIST_MAX; zeiger++)
{
if(memcmp(zeiger->ap... |
Number of Miners reported by Pool Stats now represents number of workers instead just miners | @@ -155,11 +155,8 @@ namespace Miningcore.Mining
var poolHashrate = pool.HashrateFromShares(poolHashesAccumulated, windowActual) * HashrateBoostFactor;
// update
- pool.PoolStats.ConnectedMiners = byMiner.Length;
pool.PoolStats.PoolHashrate = (ulong) Math.Ceiling(poolHashrate);
pool.PoolStats.SharesPerSecond = (int) (p... |
refactor(hid): Replace `0x01` with `HID_USAGE_CONSUMER_CONSUMER_CONTROL`
This should've changed alongside: | @@ -103,7 +103,7 @@ static const u8_t zmk_hid_report_desc[] = {
HID_USAGE_CONSUMER,
/* USAGE (Consumer Control) */
HID_LI_USAGE,
- 0x01,
+ HID_USAGE_CONSUMER_CONSUMER_CONTROL,
/* Consumer Page */
HID_MI_COLLECTION,
COLLECTION_APPLICATION,
|
examples/userfs: Add truncate() support for userfs | @@ -114,6 +114,8 @@ static int ufstest_dup(FAR void *volinfo, FAR void *oldinfo,
FAR void **newinfo);
static int ufstest_fstat(FAR void *volinfo, FAR void *openinfo,
FAR struct stat *buf);
+static int ufstest_truncate(FAR void *volinfo, FAR void *openinfo,
+ off_t *length);
static int ufstest_opendir(FAR void *volinfo,... |
linux/trace: make it compile with -m32 | @@ -1009,16 +1009,16 @@ static void arch_traceExitSaveData(run_t* run, pid_t pid) {
/* Keep the crashes file name format identical */
if (run->backtrace != 0ULL && run->global->io.saveUnique) {
snprintf(run->crashFileName, sizeof(run->crashFileName),
- "%s/%s.PC.%" PRIx64 ".STACK.%" PRIx64 ".CODE.%s.ADDR.%p.INSTR.%s.%s... |
config: set missing return value when reading parsers file | @@ -344,7 +344,7 @@ int flb_config_set_property(struct flb_config *config,
else if (!strncasecmp(key, FLB_CONF_STR_PARSERS_FILE, 32)) {
#ifdef FLB_HAVE_REGEX
tmp = flb_env_var_translate(config->env, v);
- flb_parser_conf_file(tmp, config);
+ ret = flb_parser_conf_file(tmp, config);
#endif
}
else {
@@ -377,7 +377,6 @@ i... |
Fix serialization of embedding features structures in the model. | @@ -274,8 +274,10 @@ namespace NCB {
guidId[FeatureCalcerId[i]] = i;
}
+ for (ui32 i = 0; i < FeatureCalcerId.size(); i++) {
ui64 headerSize;
- while (TryLoad(stream, headerSize)) {
+ ::Load(stream, headerSize);
+
TArrayHolder<ui8> buffer(new ui8[headerSize]);
const ui32 loadedBytes = stream->Load(buffer.Get(), headerS... |
Core(A): Fixed __RBIT implementation (issue | /**************************************************************************//**
* @file cmsis_gcc.h
* @brief CMSIS compiler specific macros, functions, instructions
- * @version V1.3.1
- * @date 05. May 2021
+ * @version V1.3.2
+ * @date 24. March 2022
*******************************************************************... |
out_loki: change log level to suppress status log | @@ -1140,12 +1140,12 @@ static void cb_loki_flush(const void *data, size_t bytes,
}
else {
if (c->resp.payload) {
- flb_plg_info(ctx->ins, "%s:%i, HTTP status=%i\n%s",
+ flb_plg_debug(ctx->ins, "%s:%i, HTTP status=%i\n%s",
ctx->tcp_host, ctx->tcp_port,
c->resp.status, c->resp.payload);
}
else {
- flb_plg_info(ctx->ins,... |
board/host/usb_pd_policy.c: Format with clang-format
BRANCH=none
TEST=none | @@ -41,22 +41,18 @@ __override int pd_check_power_swap(int port)
return 1;
}
-__override int pd_check_data_swap(int port,
- enum pd_data_role data_role)
+__override int pd_check_data_swap(int port, enum pd_data_role data_role)
{
/* Always allow data swap */
return 1;
}
-__override void pd_check_pr_role(int port,
- enum... |
Fix spillover of host-specific build flags into the shared part of DYNAMIC_ARCH builds with gmake
for | @@ -8,6 +8,20 @@ endif
endif
endif
+
+ifndef DYNAMIC_ARCH
+define ADD_CPUFLAGS
+1
+endef
+else
+ifdef TARGET_CORE
+define ADD_CPUFLAGS
+1
+endef
+endif
+endif
+
+ifdef ADD_CPUFLAGS
ifdef HAVE_SSE3
CCOMMON_OPT += -msse3
ifneq ($(F_COMPILER), NAG)
@@ -44,7 +58,6 @@ endif
endif
ifeq ($(CORE), SKYLAKEX)
-ifndef DYNAMIC_ARC... |
fix: use sizeof instead of macro | @@ -322,32 +322,31 @@ discord_embed_add_field(struct discord_embed *embed, char name[], char value[],
return;
}
- struct discord_embed_field new_field;
- discord_embed_field_init(&new_field);
- new_field.Inline = Inline;
+ struct discord_embed_field *field = discord_embed_field_alloc();
+ field->Inline = Inline;
size_t... |
hv: modify printf "not support the vuart index parameter" in vuart_register_io_handler
call vuart_register_io_handler function, when the parameter vuart_idx is greater
than or equal to 2, print the vuart index value which will not register the vuart. | @@ -534,7 +534,7 @@ static bool vuart_register_io_handler(struct acrn_vm *vm, uint16_t port_base, ui
pio_idx = UART_PIO_IDX1;
break;
default:
- printf("Not support vuart index %d, will not register \n");
+ printf("Not support vuart index %d, will not register \n", vuart_idx);
ret = false;
}
if (ret != 0U) {
|
make: detect and add swscale module in modules.mk | @@ -106,6 +106,7 @@ ifneq ($(HAVE_SPEEXDSP),)
USE_MPA := $(shell $(call CC_TEST_AND,twolame.h,lame/lame.h))
endif
endif
+USE_SWSCALE := $(shell $(call CC_TEST,libswscale/swscale.h))
USE_SYSLOG := $(shell $(call CC_TEST,syslog.h))
USE_MQTT := $(shell $(call CC_TEST,mosquitto.h))
HAVE_LIBV4L2 := $(shell $(call CC_TEST,li... |
ngtcp2(.h): remove typo on comment about nghttp2 | @@ -125,7 +125,7 @@ typedef void *(*ngtcp2_realloc)(void *ptr, size_t size, void *mem_user_data);
* }
*
* void conn_new() {
- * nghttp2_mem mem = {NULL, my_malloc_cb, my_free_cb, my_calloc_cb,
+ * ngtcp2_mem mem = {NULL, my_malloc_cb, my_free_cb, my_calloc_cb,
* my_realloc_cb};
*
* ...
|
Don't print presence lists for mailboxes. | ::+|
::
++ who ::< %who
- ::> prints presence lists for {pas} or all.
+ ::> prints presence lists for {cis} or all.
::
- |= pas/(set circle) ^+ ..sh-work
+ |= cis/(set circle) ^+ ..sh-work
=< (sh-fact %mor (murn (sort ~(tap by remotes) aor) .))
- |= {pon/circle gop/group} ^- (unit sole-effect)
- ?. |(=(~ pas) (~(has in... |
Fix leaking routing counter | @@ -23,6 +23,7 @@ od_worker(void *arg)
{
od_worker_t *worker = arg;
od_instance_t *instance = worker->global->instance;
+ od_router_t *router = worker->global->router;
for (;;) {
machine_msg_t *msg;
@@ -48,6 +49,7 @@ od_worker(void *arg)
"failed to create coroutine");
od_io_close(&client->io);
od_client_free(client);
+... |
ya tool: update sandbox and vmexec | "sandboxctl": {
"formula": {
"sandbox_id": [
- 667697280
+ 667856972
],
"match": "tools/sandboxctl/bin/sandboxctl"
},
"vmexec": {
"formula": {
"sandbox_id": [
- 667779708
+ 667857814
],
"match": "infra/qemu/vmexec/vmexec"
},
|
SOVERSION bump to version 7.11.8 | @@ -73,7 +73,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_
# with backward compatible change and micro version is connected with any internal change of the library.
set(SYSREPO_MAJOR_SOVERSION 7)
set(SYSREPO_MINOR_SOVERSION 11)
-set(SYSREPO_MICRO_SOVERSION 7)
+set(SYSREPO_MICRO_S... |
add chmod after mkdir | @@ -347,12 +347,18 @@ func createFilterFile() (*os.File, error) {
// Try to create AppScope directory in /usr/lib if it not exists yet
if _, err := os.Stat("/usr/lib/appscope/"); os.IsNotExist(err) {
os.MkdirAll("/usr/lib/appscope/", 0755)
+ if err := os.Chmod("/usr/lib/appscope/", 0755); err != nil {
+ return nil, err... |
We actually want to use normalized values in QML | @@ -10,7 +10,10 @@ class ParameterProxy : public QObject {
Q_PROPERTY(QString name READ getName NOTIFY nameChanged)
Q_PROPERTY(QString module READ getModule)
Q_PROPERTY(double value READ getValue WRITE setValueFromUI NOTIFY valueChanged)
+ Q_PROPERTY(double normalizedValue READ getNormalizedValue WRITE setNormalizedVal... |
fix boolean complete | @@ -100,6 +100,11 @@ function _complete_option_kv(options, current, completing)
if type(values) == "function" then
values = values(value)
end
+ if values == nil and type(opt[4]) == "boolean" then
+ values = { "y", "n" }
+ -- ignore existing input
+ value = ""
+ end
for _, v in ipairs(values) do
if tostring(v):startswit... |
avx512f: work around ICC generating AVX-512F instructions improperly
If you use __m512/__m512i/__m512d ICC will generate AVX-512F
instructions even if you haven't targeted AVX-512F. This just
prevents us from using the types in ICC unless AVX-512F is
enabled. | @@ -260,8 +260,11 @@ typedef union {
* all compilers I've looked at use an object-like macro for
* _MM_CMPINT_GE, which is defined to _MM_CMPINT_NLT. _MM_CMPINT_NLT
* is included in case a compiler does the reverse, though I haven't
- * run into one which does. */
-#if defined(_MM_CMPINT_GE) || defined(_MM_CMPINT_NLT)
... |
make os.nuldev() return os._NULDEV directly
prev commit fixed process redirect
so that this can simply redirect to nuldev | @@ -627,12 +627,8 @@ end
-- get the system null device
function os.nuldev()
- if os.isroot() then
- return os.tmpfile()
- else
return xmake._NULDEV
end
-end
-- check run command as root
function os.isroot()
|
Add restart process option to tray icon menu | @@ -3129,6 +3129,8 @@ VOID PhAddMiniProcessMenuItems(
if (isPartiallySuspended)
PhInsertEMenuItem(Menu, PhCreateEMenuItem(0, ID_PROCESS_RESUME, L"Res&ume", NULL, ProcessId), ULONG_MAX);
+ PhInsertEMenuItem(Menu, PhCreateEMenuItem(0, ID_PROCESS_RESTART, L"Res&tart", NULL, ProcessId), ULONG_MAX);
+
PhInsertEMenuItem(Menu... |
Added -c --ciphers option to s2nc | @@ -39,6 +39,9 @@ void usage()
fprintf(stderr, " -a [protocols]\n");
fprintf(stderr, " --alpn [protocols]\n");
fprintf(stderr, " Sets the application protocols supported by this client, as a comma separated list.\n");
+ fprintf(stderr, " -c [version_string]\n");
+ fprintf(stderr, " --ciphers [version_string]\n");
+ fpr... |
web-ui: fix redo-ing create actions | @@ -39,7 +39,10 @@ const undoMiddleware = createUndoMiddleware({
: createKey(id, path, previousValue),
createArgs: storePreviousValue,
},
- 'CREATE_KEY_SUCCESS': ({ id, path }) => deleteKey(id, path),
+ 'CREATE_KEY_SUCCESS': {
+ action: ({ id, path }) => deleteKey(id, path),
+ createArgs: (state, { value }) => ({ previ... |
fix tx populate race | @@ -344,11 +344,12 @@ static xennet_tx_page xennet_fill_tx_request(xennet_dev xd, netif_tx_request_t *
static void xennet_populate_tx_ring(xennet_dev xd)
{
+ u64 flags = spin_lock_irq(&xd->tx_fill_lock);
+
RING_IDX prod = xd->tx_ring.req_prod_pvt;
RING_IDX prod_end = xd->tx_ring.rsp_cons + XENNET_TX_RING_SIZE;
-
xennet... |
Update environment length macro | @@ -1115,7 +1115,7 @@ NTSTATUS PhGetProcessEnvironment(
PVOID environmentRemote;
MEMORY_BASIC_INFORMATION mbi;
PVOID environment;
- ULONG environmentLength;
+ SIZE_T environmentLength;
if (!(Flags & PH_GET_PROCESS_ENVIRONMENT_WOW64))
{
@@ -1129,7 +1129,7 @@ NTSTATUS PhGetProcessEnvironment(
if (!NT_SUCCESS(status = NtR... |
libhfuzz/persistent.c: actually read from in_fd | @@ -96,7 +96,7 @@ int main(int argc, char **argv)
LOG_I("Accepting input from '%s'\n"
"Usage for fuzzing: honggfuzz -P [flags] -- %s", fname, argv[0]);
- ssize_t len = files_readFromFd(STDIN_FILENO, buf, sizeof(buf));
+ ssize_t len = files_readFromFd(in_fd, buf, sizeof(buf));
if (len < 0) {
LOG_E("Couldn't read data fr... |
improve autoload password prompt message when application does not send application_hint | @@ -47,8 +47,9 @@ char* askpass_getPasswordForAutoload(const char* shortname,
"An application %srequests an access token for '%s'. This configuration "
"is currently not loaded.\nTo load '%s' into oidc-agent please enter "
"the encryption password for '%s':";
- char* application_str =
- application_hint ? oidc_sprintf(... |
webdojo: preserve whitespace in output
These aren't <pre>, so need explicit styling to preserve leading,
trailing, and "gratuitous" whitespace. | @@ -15,7 +15,7 @@ export class History extends Component {
{this.props.commandLog.map((text, index) => {
return (
<p className="mono" key={index}
- style={{ overflowWrap: 'break-word' }}
+ style={{ overflowWrap: 'break-word', whiteSpace: 'pre' }}
>
{text}
</p>
|
Fixed crash caused by accessing nullptr in `btm_acl_disconnected` | @@ -2657,14 +2657,22 @@ void btm_acl_connected(BD_ADDR bda, UINT16 handle, UINT8 link_type, UINT8 enc_mo
*******************************************************************************/
void btm_acl_disconnected(UINT16 handle, UINT8 reason)
{
+ BOOLEAN need_report = TRUE;
+
#if BTM_SCO_INCLUDED == TRUE
/* If L2CAP does... |
Fixed INET6 sockaddr processing in nxt_sockaddr_text(). | @@ -222,7 +222,7 @@ nxt_sockaddr_text(nxt_sockaddr_t *sa)
offset = offsetof(nxt_sockaddr_t, u) + sizeof(struct sockaddr_in6);
sa->start = offset;
- sa->address_start = offset;
+ sa->address_start = offset + 1;
start = nxt_pointer_to(sa, offset);
p = start;
@@ -483,7 +483,10 @@ nxt_inet6_ntop(u_char *addr, u_char *buf, ... |
Add setter to IsVisible in AtkUnitBase | @@ -33,6 +33,10 @@ namespace FFXIVClientStructs.FFXIV.Component.GUI
[FieldOffset(0x1D8)] public AtkCollisionNode** CollisionNodeList; // seems to be all collision nodes in tree, may be something else though
[FieldOffset(0x1E0)] public uint CollisionNodeListCount;
- public bool IsVisible => (Flags & 0x20) == 0x20;
+ pub... |
Make sure that the hash in the file integrity check was actually read from the file. | @@ -996,7 +996,11 @@ int yr_arena_load_stream(
}
}
- yr_stream_read(&file_hash, sizeof(file_hash), 1, stream);
+ if (yr_stream_read(&file_hash, sizeof(file_hash), 1, stream) != 1)
+ {
+ yr_arena_destroy(new_arena);
+ return ERROR_CORRUPT_FILE;
+ }
if (file_hash != real_hash)
{
|
linux/trace: debug msg | @@ -1384,8 +1384,8 @@ void arch_traceSignalsInit(honggfuzz_t* hfuzz) {
/* Let *SAN handle it, if it's enabled */
if (hfuzz->sanitizer.enable) {
- LOG_I("Sanitizer support enabled. SIGSEGV/SIGBUS/SIGILL/SIGFPE should be handled by *SAN "
- "code");
+ LOG_I("Sanitizer support enabled. SIGSEGV/SIGBUS/SIGILL/SIGFPE will no... |
make the flash address of image2_all_ota1.bin can be modified. | @@ -26,7 +26,7 @@ ifneq ($(findstring $(HOST_OS),Win32 Win64),)
@echo $(HOST_OS) $(ota_offset) $(BIN_DIR) $(APP_FULL) $(PLATFORM)
$(eval OUT_MSG := $(shell cmd /c %cd%\platform\mcu\$(HOST_MCU_FAMILY)\script\postbuild_img2.bat $(ota_offset) %cd% $(APP_FULL) $(PLATFORM)))
else
- @echo $(HOST_OS) $(ota_idx) $(TOP_PATH) $(... |
correct stm32f10x txisr error | @@ -262,7 +262,7 @@ static void uart_isr(struct rt_serial_device *serial) {
{
rt_hw_serial_isr(serial, RT_SERIAL_EVENT_TX_DONE);
}
- USART_ITConfig(uart->uart_device, USART_IT_RXNE, DISABLE);
+ USART_ITConfig(uart->uart_device, USART_IT_TC, DISABLE);
USART_ClearITPendingBit(uart->uart_device, USART_IT_TC);
}
if (USART_... |
Resolves Removes paths (that begin with the User home directory) that could potentially execute outside of the bundle and
causes Gatekeeper to fail. | @@ -163,6 +163,25 @@ def fixup_items(items,lib_maps,prefix_path):
id_cmd = id_cmd.format(item.replace(prefix_path,""), item)
subprocess.call(id_cmd,shell=True)
+ # Remove rpaths containing user home directory
+ load_cmd = "otool -l {0}"
+ home = os.path.expanduser("~")
+ invalid_paths = []
+ try:
+ lc_rpaths = subproce... |
Windows: grib_to_netcdf ctest works now | @@ -299,7 +299,7 @@ endif()
ecbuild_add_test( TARGET eccodes_t_grib_to_netcdf
TYPE SCRIPT
- CONDITION HAVE_NETCDF AND ENABLE_EXTRA_TESTS AND NOT ECCODES_ON_WINDOWS
+ CONDITION HAVE_NETCDF AND ENABLE_EXTRA_TESTS
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/grib_to_netcdf.sh
TEST_DEPENDS eccodes_download_gribs
)
|
Test automation change only: temporarily disable instance 23 (Windows).
Temporarily disable instance 23 while HW is worked on. | @@ -46,7 +46,7 @@ The table below defines the instances of test hardware available on the `ubxlib`
| 20 | WHRE board (NINA-W1), Cat M1 | 5 | ESP32 | | ESP-IDF | | SARA_R412M_02B | cell mqtt_client | U_CFG_APP_FILTER=cellMqtt.mqttClient.exampleMqtt U_CFG_TEST_PIN_A=-1 U_CFG_TEST_PIN_B=-1 U_CFG_TEST_PIN_C=-1 U_CFG_TEST_U... |
Allow AFR_TOOLCHAIN to be passed from outside | @@ -51,7 +51,11 @@ else()
set(__toolchain "${CMAKE_C_COMPILER_ID}")
string(TOLOWER "${__toolchain}" __toolchain)
endif()
+# This variable can be passed from outside to overwrite the default value. Required by IDE project
+# generator and Amazon FreeRTOS console.
+if(NOT DEFINED CACHE{AFR_TOOLCHAIN})
set(AFR_TOOLCHAIN $... |
Make ecbuild min version 2.7.2 (due to ECBUILD_INSTALL_FORTRAN_MODULES) | @@ -24,7 +24,7 @@ set( CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH}
include( ecbuild_system NO_POLICY_SCOPE )
-ecbuild_requires_macro_version( 2.6 )
+ecbuild_requires_macro_version( 2.7.2 )
###############################################################################
# local project
|
[kernel] fix name of FC2D_NSGS solver | <!-- One Step NS Problem of th Simulation-->
<OneStepNSProblems_List>
<FrictionContact Type="2">
- <NonSmoothSolver Name="F2D_NSGS">
+ <NonSmoothSolver Name="FC2D_NSGS">
<iparam vectorSize='5'>101 0 0 0 0</iparam>
<dparam vectorSize='5'>1e-5 0 0 0 0</dparam>
</NonSmoothSolver>
|
Fix restore direction if player not moving and on wall
Not very elegent, but it works for now. | @@ -60,6 +60,9 @@ void Update_Adventure() {
player.dir.x = 0;
}
+ backup_dir.x = player.dir.x;
+ backup_dir.y = player.dir.y;
+
tile_x = (player.pos.x + 4 + player.dir.x) >> 3; // Add Left right Bias for Moving=True
tile_y = (player.pos.y + 7) >> 3;
@@ -109,6 +112,16 @@ void Update_Adventure() {
}
}
+ if (player.moving... |
integration/helpers: Set a maximum limit of 1 MB for the scan buffer | @@ -70,7 +70,10 @@ func parseJSONArrayOutput[T any](output string, normalize func(*T)) ([]*T, error
func parseMultipleJSONArrayOutput[T any](output string, normalize func(*T)) ([]*T, error) {
allEntries := make([]*T, 0)
+
sc := bufio.NewScanner(strings.NewReader(output))
+ // On ARO we saw arrays with charcounts of > 1... |
gitignore: Add stb test kernel files | @@ -87,11 +87,14 @@ libflash/test/test-ecc
libflash/test/test-mbox
libflash/test/test-flash-gcov
libstb/create-container
+libstb/print-container
libstb/test/run-stb-container
libstb/test/print-stb-container
libstb/test/*-gcov
test/hello_world/hello_kernel/hello_kernel
test/sreset_world/sreset_kernel/sreset_kernel
+test... |
coral: removing unused CONFIG_USB_PD_TCPC_BOARD_INIT
BRANCH=none
TEST=none | #define CONFIG_USB_PD_MAX_SINGLE_SOURCE_CURRENT TYPEC_RP_3A0
#define CONFIG_USB_PD_PORT_COUNT 2
#define CONFIG_USB_PD_VBUS_DETECT_CHARGER
-#define CONFIG_USB_PD_TCPC_BOARD_INIT
#define CONFIG_USB_PD_TCPC_LOW_POWER
#define CONFIG_USB_PD_TCPM_MUX /* for both PS8751 and ANX3429 */
#define CONFIG_USB_PD_TCPM_ANX74XX
|
Use clang for "build-as-cpp" tests | @@ -528,7 +528,7 @@ jobs:
run: |
mkdir build
cd build
- g++ -xc++ -Dd_m3HasWASI \
+ clang -xc++ -Dd_m3HasWASI \
-I../source ../source/*.c ../platforms/app/main.c \
-O3 -g0 -lm \
-o wasm3
@@ -546,7 +546,7 @@ jobs:
run: |
mkdir build
cd build
- g++ -xc++ -Dd_m3HasWASI -DDEBUG \
+ clang -xc++ -Dd_m3HasWASI -DDEBUG \
-Dd_m... |
Add package list for debian/ubuntu to COMPILING; | @@ -75,12 +75,20 @@ lovr /path/to/myGame
Linux
---
-On Arch Linux, first install necessary dependencies:
+First, install the dependencies using your package manager of choice.
+
+#### Arch Linux
```sh
pacman -S assimp glfw-x11 luajit physfs freetype2 openal ode
```
+#### Debian/Ubuntu
+
+```sh
+sudo apt-get install bui... |
skel.c: updated simde_mm512_xxx_epu64 | @@ -2210,7 +2210,7 @@ test_simde_mm512_xxx_epu64(const MunitParameter params[], void* data) {
munit_rand_memory(sizeof(a), (uint8_t*) &a);
munit_rand_memory(sizeof(b), (uint8_t*) &b);
- r = simde__m512i_to_private(simde_mm512_xxx_epi64(simde__m512i_from_private(a), simde__m512i_from_private(b)));
+ r = simde__m512i_to_... |
fixed incorrect capitalisation | @@ -33,7 +33,7 @@ def launcher():
graphics.set_pen(4)
graphics.rectangle(30, 60, WIDTH - 100, 50)
graphics.set_pen(1)
- graphics.text("A. NASA Picture Of the Day", 35, 75, 600, 3)
+ graphics.text("A. NASA Picture of the Day", 35, 75, 600, 3)
graphics.set_pen(6)
graphics.rectangle(30, 120, WIDTH - 150, 50)
|
[hardware] Increase DMA buffer depth
With 4 tiles per DMA, we need to buffer four request to avoid creating
back pressure in one of the tiles. | @@ -517,7 +517,7 @@ module mempool_group
.IdWidth (AxiTileIdWidth ),
.AxReqFifoDepth (2 ),
.TransFifoDepth (1 ),
- .BufferDepth (3 ),
+ .BufferDepth (4 ),
.axi_req_t (axi_tile_req_t ),
.axi_res_t (axi_tile_resp_t),
.burst_req_t (dma_req_t ),
|
Configure Dependabot to also update docker tags
This ensures that we get some automation for bumping docker tags. | @@ -16,3 +16,11 @@ updates:
labels:
- "release-note-none"
- "ok-to-test"
+- package-ecosystem: docker
+ directory: "/"
+ schedule:
+ interval: weekly
+ labels:
+ - "release-note-none"
+ - "ok-to-test"
+ open-pull-requests-limit: 10
\ No newline at end of file
|
Changed "AU" back to "aU" | @@ -7,7 +7,7 @@ saBodyFiles sun.in venus1.in venus2.in venus3.in
# Input/Output Units
sUnitMass solar # Options: gram, kg, Earth, Neptune, Jupiter, solar
-sUnitLength AU # Options: cm, m, km, Earth, Jupiter, solar, AU
+sUnitLength aU # Options: cm, m, km, Earth, Jupiter, solar, AU
sUnitTime YEARS # Options: sec, day, y... |
DOC: Add scan command document and help scan command. | @@ -9281,6 +9281,15 @@ static void process_help_command(conn *c, token_t *tokens, const size_t ntokens)
"\t" "getattr <key> [<attribute name> ...]\\r\\n" "\n"
"\t" "setattr <key> <name>=<value> [<name>=value> ...]\\r\\n" "\n"
);
+#ifdef SCAN_COMMAND
+ } else if (ntokens > 2 && strcmp(type, "scan") == 0) {
+ out_string(... |
Konke correction | @@ -306,6 +306,7 @@ static const SupportedDevice supportedDevices[] = {
{ VENDOR_KONKE, "3AFE28010402000D", ikea2MacPrefix }, // Konke Kit Pro-BS Motion Sensor ver.2
{ VENDOR_EMBER, "3AFE140103020000", konkeMacPrefix }, // Konke Kit Pro-FT Temp Humidity Sensor
{ VENDOR_KONKE, "3AFE220103020000", ikea2MacPrefix }, // Ko... |
ci: always run check-codeowners | @@ -71,6 +71,7 @@ repos:
name: Validate Codeowner File
entry: tools/ci/check_codeowners.py ci-check
language: python
+ always_run: true
files: '\.gitlab/CODEOWNERS'
pass_filenames: false
- id: check-rules-yml
|
Add and Modify comment about returned value in fs mount function | @@ -205,7 +205,7 @@ static FAR const struct mountpt_operations *mount_findfs(FAR const struct fsmap_
*
* EACCES A component of a path was not searchable or mounting a read-only
* filesystem was attempted without giving the MS_RDONLY flag.
- * EBUSY 'source' is already mounted.
+ * EEXIST 'source' is already mounted.
* ... |
BugID:17025300:[ota] skip build ota_coap-example | @@ -49,11 +49,6 @@ ifneq (,$(filter -DOTA_ENABLED,$(CFLAGS)))
SRCS_ota_mqtt-example := ota/ota_mqtt-example.c
endif
- ifneq (,$(filter -DCOAP_COMM_ENABLED,$(CFLAGS)))
- TARGET += ota_coap-example
- SRCS_ota_mqtt-example := ota/ota_coap-example.c
- endif
-
endif
# ifneq (,$(filter -DHTTP_COMM_ENABLED,$(CFLAGS)))
|
fix NULL array re-initialization | @@ -209,9 +209,9 @@ FIO_FUNC inline void fio_ary_new(fio_ary_s *ary, size_t capa) {
FIO_FUNC inline void fio_ary_free(fio_ary_s *ary) {
if (ary) {
free(ary->arry);
- }
*ary = FIO_ARY_INIT;
}
+}
/* *****************************************************************************
Array memory management
|
Init remote control params even if blacklisted | @@ -284,6 +284,8 @@ static struct instance_data *new_instance_data(VkInstance instance)
struct instance_data *data = new instance_data();
data->instance = instance;
data->control_client = -1;
+ data->params = {};
+ data->params.control = -1;
map_object(HKEY(data->instance), data);
return data;
}
|
Fix typo is iOS build script | @@ -210,7 +210,7 @@ def buildIOSCocoapod(args, buildpackage):
distDir = getDistDir('ios')
version = args.buildversion
distName = 'sdk4-ios-%s%s.zip' % (version, "-metal" if args.metalangle else "")
- frameworkName 'CartoMobileSDK%s' % ("-Metal" if args.metalangle else "")
+ frameworkName = 'CartoMobileSDK%s' % ("-Metal... |
require selinux utils for post | @@ -40,6 +40,7 @@ BuildRequires: libattr-devel
BuildRequires: libuuid-devel
BuildRequires: device-mapper-devel
BuildRequires: xz-devel
+Requires: policycoreutils
%if 0%{?_cross_compile}
%if "%{_arch}" == "x86_64"
|
[core] send Connection: close if reqbody not read (fixes
send Connection: close if it is known that request body has not finished
being read and will not finish being read
x-ref:
"Suboptimal keep-alive handling when request body is not read" | @@ -36,6 +36,10 @@ int http_response_write_header(server *srv, connection *con) {
/* disable keep-alive if requested */
if (con->request_count > con->conf.max_keep_alive_requests || 0 == con->conf.max_keep_alive_idle) {
con->keep_alive = 0;
+ } else if (0 != con->request.content_length
+ && con->request.content_length ... |
Fix libnettle compile for session ticket key callback function
changes. | @@ -97,6 +97,7 @@ static struct tls_session_ticket_key {
* @return 0 on no ticket, 1 for okay, and 2 for okay but renew the ticket
* (the ticket is decrypt only). and <0 for failures.
*/
+#ifdef HAVE_SSL
int tls_session_ticket_key_cb(SSL *s, unsigned char* key_name,
unsigned char* iv, EVP_CIPHER_CTX *evp_ctx,
#ifdef HA... |
ZONEMD is digests of RRs in canonical wireformat | @@ -1500,7 +1500,7 @@ zone_digester_update(zone_digester *zd, ldns_rr *rr)
buf._fixed = 1;
buf._status = LDNS_STATUS_OK;
- if ((st = ldns_rr2buffer_wire(&buf, rr, LDNS_SECTION_ANSWER)))
+ if ((st = ldns_rr2buffer_wire_canonical(&buf, rr, LDNS_SECTION_ANSWER)))
return st;
if (zd->simple_sha384)
|
build(west): add clone-depth = 1 to zephyr and uf2
This reduces zephyr's footprint to 33% and dramatically reduces the cloning times (west update).
PR: | @@ -10,6 +10,7 @@ manifest:
- name: zephyr
remote: petejohanson
revision: zmk-v2.3.0-with-fixes
+ clone-depth: 1
import:
# TODO: Rename once upstream offers option like `exclude` or `denylist`
name-blacklist:
@@ -36,5 +37,6 @@ manifest:
- name: uf2
remote: microsoft
path: tools/uf2
+ clone-depth: 1
self:
west-commands:... |
sim: Enable -Werror
Enable -Werror in the build of the C code (also remove an unneeded TODO
comment). | @@ -13,8 +13,6 @@ fn main() {
let sig_ecdsa = env::var("CARGO_FEATURE_SIG_ECDSA").is_ok();
let overwrite_only = env::var("CARGO_FEATURE_OVERWRITE_ONLY").is_ok();
- // TODO: Force clang if we are requestion fuzzing.
-
let mut conf = gcc::Config::new();
conf.define("__BOOTSIM__", None);
conf.define("MCUBOOT_USE_FLASH_ARE... |
Fix documentation for defer. | ~(let (,;accum) ,;body))
(defmacro defer
- "Run form unconditionally after form, even if the body throws an error."
+ "Run form unconditionally after body, even if the body throws an error."
[form & body]
(with-syms [f r]
~(do
|
update ya tool arc
fix condition of reporting deleted elements | },
"arc": {
"formula": {
- "sandbox_id": [340877288],
+ "sandbox_id": [341040186],
"match": "arc"
},
"executable": {
|
add cardioid activation as option to resnet | #include "networks/cnn.h"
#include "network.h"
+#include "nn/activation.h"
struct network_s* get_default_network(enum NETWORK_SELECT net)
{
@@ -40,6 +41,8 @@ struct opt_s res_block_opts[] = {
OPTL_CLEAR(0, "no-batch-normalization", &(network_resnet_default.batch_norm), "do not use batch normalization"),
OPTL_CLEAR(0, "... |
Rename max_path_id to last_path_id for clarification | @@ -311,7 +311,7 @@ struct st_quicly_conn_t {
/**
* maximum number of path ID issued so far
*/
- uint32_t max_path_id;
+ uint32_t last_path_id;
/**
* list of struct st_quicly_new_cid_t
*/
@@ -1755,7 +1755,7 @@ static quicly_conn_t *create_connection(quicly_context_t *ctx, const char *serve
} else {
conn->_.super.master... |
driver/usb_mux/it5205.c: Format with clang-format
BRANCH=none
TEST=none | @@ -25,15 +25,15 @@ static int it5205_write(const struct usb_mux *me, uint8_t reg, uint8_t val)
static int it5205h_sbu_update(const struct usb_mux *me, uint8_t reg,
uint8_t mask, enum mask_update_action action)
{
- return i2c_update8(me->i2c_port, IT5205H_SBU_I2C_ADDR_FLAGS,
- reg, mask, action);
+ return i2c_update8(m... |
Fix test_entity_in_utf16_be_attr() to work in builds | @@ -6799,7 +6799,11 @@ START_TEST(test_entity_in_utf16_be_attr)
/* <e a='ä ä'></e> */
"\0<\0e\0 \0a\0=\0'\0&\0#\0\x32\0\x32\0\x38\0;\0 "
"\0&\0#\0x\0\x30\0\x30\0E\0\x34\0;\0'\0>\0<\0/\0e\0>";
- const XML_Char *expected = "\xc3\xa4 \xc3\xa4";
+#ifdef XML_UNICODE
+ const XML_Char *expected = XCS("\x00e4 \x00e... |
brya: disable debug accessory control on port C0
This will release Burnside Bridge from reset and fix the issue when
Servo's USB hub disappears after Servo was reset.
BRANCH=none
TEST=running deployment in the lab | @@ -45,7 +45,8 @@ const struct tcpc_config_t tcpc_config[] = {
.addr_flags = NCT38XX_I2C_ADDR1_1_FLAGS,
},
.drv = &nct38xx_tcpm_drv,
- .flags = TCPC_FLAGS_TCPCI_REV2_0,
+ .flags = TCPC_FLAGS_TCPCI_REV2_0 |
+ TCPC_FLAGS_NO_DEBUG_ACC_CONTROL,
},
[USBC_PORT_C1] = {
.bus_type = EC_BUS_TYPE_I2C,
|
doc: add hypercall ABI in the HLD
The application binary interface (ABI) is an important aspect of
hypercalls. But unfortunately it is not yet defined anywhere in the current
HLD.
This patch adds the current ABI specification to the hypercall section of
HLD. | @@ -9,6 +9,29 @@ is from the hypervisor to the guest VM. The hypervisor supports
hypercall APIs for VM management, I/O request distribution, interrupt injection,
PCI assignment, guest memory mapping, power management, and secure world switch.
+The application binary interface (ABI) of ACRN hypercalls is defined as foll... |
Fix PGI compiler detection for getarch | @@ -142,9 +142,9 @@ endif
endif
-# On x86_64 build getarch with march=native. This is required to detect AVX512 support in getarch.
+# On x86_64 build getarch with march=native unless the compiler is PGI. This is required to detect AVX512 support in getarch.
ifeq ($(ARCH), x86_64)
-ifneq ($(C_COMPILER), PGI)
+ifeq ($(f... |
nimble/host: no random address fix
The app didn't build on dialog_da1469x-dk-pro board.
Couldn't load random address. | @@ -55,9 +55,14 @@ ble_hs_util_ensure_rand_addr(void)
/* Otherwise, try to load a random address. */
rc = ble_hs_util_load_rand_addr(&addr);
+
+ if (rc != 0) {
+ /* If it didn't work, generate random address */
+ rc = ble_hs_id_gen_rnd(0, &addr);
if (rc != 0) {
return rc;
}
+ }
/* Configure nimble to use the random add... |
CMakeLists.txt: Remove extra parenthesis
Fixes | @@ -250,7 +250,7 @@ endif ()
# detect what to use for the 64 bit type.
# Note: I will prefer long long if I can get it, as that is what the automake system aimed for.
if (NOT DEFINED JSON_INT_T)
- if (HAVE_LONG_LONG_INT AND ((${LONG_LONG_INT}) EQUAL 8))
+ if (HAVE_LONG_LONG_INT AND (${LONG_LONG_INT} EQUAL 8))
set (JSON... |
Remove errno check in append_stacktrace | @@ -3004,12 +3004,12 @@ append_stacktrace(PipeProtoChunk *buffer, StringInfo append, void *const *stacka
cmdresult[0][0] = '\0';
fd = popen(cmd,"r");
- if (fd != NULL && errno == 0)
+ if (fd != NULL)
fd_ok = true;
if (fd_ok)
{
- for (stack_no = 0; stack_no < stacksize && stack_no < STACK_DEPTH_MAX && errno == 0; stack_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.