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 ts) {
ngtcp2_pkt_hd hd;
size_t pkt_num_bits;
@@ -1640,7 +1640,7 @@ static int conn_process_buffered_protected_pkt(ngtcp2_conn *conn,
ngtcp2_pkt_chain *pc = conn->buffed_rx_ppkts, *next;
for (; pc; pc = pc->next) {
- rv = conn_recv_packet(conn, pc->pkt, pc->pktlen, ts);
+ rv = conn_recv_pkt(conn, pc->pkt, pc->pktlen, ts);
if (rv != 0) {
return rv;
}
@@ -1720,7 +1720,7 @@ int ngtcp2_conn_recv(ngtcp2_conn *conn, uint8_t *pkt, size_t pktlen,
break;
case NGTCP2_CS_POST_HANDSHAKE:
case NGTCP2_CS_CLOSE_WAIT:
- rv = conn_recv_packet(conn, pkt, pktlen, ts);
+ rv = conn_recv_pkt(conn, pkt, pktlen, ts);
if (rv < 0) {
break;
}
|
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(addr), query, str_state( state ) );
search = searches_find_by_query( query );
@@ -194,6 +194,7 @@ void searches_debug(FILE *fp) {
search_counter = 0;
searches = &g_searches[0];
+
fprintf(fp, "Result buckets:\n");
while (*searches) {
search = *searches;
|
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
+ const XML_Char *expected = XCS("URI \xe0\xb8\x84");
+#endif
CharData storage;
CharData_Init(&storage);
|
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"`.in; \
- done ; \
- for x in providers/common/der/*.c; do \
- echo "$$x".in; \
- done ; \
for x in `cat sources-tmp/sources`; do \
if [ -f "$(SRCDIR)$$x" ]; then echo $$x | sed 's:^/::' ; fi ; \
done ; \
@@ -1235,7 +1229,8 @@ providers/fips.module.sources.new: \
crypto/ec/asm/*.pl \
crypto/modes/asm/*.pl \
crypto/sha/asm/*.pl \
- crypto/x86_64cpuid.pl; do \
+ crypto/x86_64cpuid.pl \
+ providers/common/der/*.in; do \
echo "$$x"; \
done \
) | sed -e 's:/[^/]*/[^/]*/[.][.]/[.][.]/:/:g' -e 's:/[^/]*/[.][.]/:/:g' \
|
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 = &_checksum,
|
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 "own" PDC entries, or does this manually so this
- * is never called for given pin.
- */
- i = da1469x_pdc_find(pin, MCU_PDC_MASTER_M33, 0);
- if (i < 0) {
- i = da1469x_pdc_add(pin, MCU_PDC_MASTER_M33, MCU_PDC_EN_XTAL);
- if (i < 0) {
- return -1;
- }
- da1469x_pdc_set(i);
- da1469x_pdc_ack(i);
- }
-#endif
-
hal_gpio_init_in(pin, pull);
switch (trig) {
@@ -407,6 +389,24 @@ hal_gpio_irq_init(int pin, hal_gpio_irq_handler_t handler, void *arg,
hal_gpio_irqs[i].func = handler;
hal_gpio_irqs[i].arg = arg;
+#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 "own" PDC entries, or does this manually so this
+ * is never called for given pin.
+ */
+ i = da1469x_pdc_find(pin, MCU_PDC_MASTER_M33, 0);
+ if (i < 0) {
+ i = da1469x_pdc_add(pin, MCU_PDC_MASTER_M33, MCU_PDC_EN_XTAL);
+ if (i < 0) {
+ return -1;
+ }
+ da1469x_pdc_set(i);
+ da1469x_pdc_ack(i);
+ }
+#endif
+
return 0;
}
|
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) : dump,no_copy,read_only;
|
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 * parentName = keyName (parentKey);
KeySet * config = elektraPluginGetConfig (handle);
const Key * channelKey = ksLookupByName (config, "/channel", KDB_O_NONE);
const char * channelName = keyString (channelKey);
- ELEKTRA_LOG_DEBUG ("using channel %s of parent %s\n", channelName, parentName);
+ ELEKTRA_LOG_DEBUG ("using channel %s of parent %s\n", channelName, keyName (parentKey));
XfconfChannel * channel = xfconf_channel_get (channelName);
if (channel == NULL)
|
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_dev_s *priv,
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;
@@ -482,7 +482,7 @@ static void bmi160_getregs(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;
|
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() and
|
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 deCONZ package
- sudo dpkg -i deconz-2.05.30-qt5.deb
+ sudo dpkg -i deconz-2.05.31-qt5.deb
**Important** this step might print some errors *that's ok* and will be fixed in the next step.
@@ -53,11 +53,11 @@ The deCONZ package already contains the REST API plugin, the development package
1. Download deCONZ development package
- wget http://www.dresden-elektronik.de/rpi/deconz-dev/deconz-dev-2.05.30.deb
+ wget http://www.dresden-elektronik.de/rpi/deconz-dev/deconz-dev-2.05.31.deb
2. Install deCONZ development package
- sudo dpkg -i deconz-dev-2.05.30.deb
+ sudo dpkg -i deconz-dev-2.05.31.deb
3. Install missing dependencies
@@ -72,7 +72,7 @@ The deCONZ package already contains the REST API plugin, the development package
2. Checkout related version tag
cd deconz-rest-plugin
- git checkout -b mybranch V2_05_30
+ git checkout -b mybranch V2_05_31
3. Compile the plugin
|
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 below cases. */
else if (single->ok_to_replicate &&
- single->bytes < other->bytes)
- CdbPathLocus_MakeReplicated(&single->move_to,
- CdbPathLocus_NumSegments(other->locus));
-
- /* Broadcast single rel if other rel has WorkTableScan */
- else if (single->ok_to_replicate && other->has_wts)
+ (other_immovable ||
+ single->bytes < other->bytes ||
+ other->has_wts))
CdbPathLocus_MakeReplicated(&single->move_to,
CdbPathLocus_NumSegments(other->locus));
- /* Last resort: Move all partitions of other rel to single QE. */
- else
+ /* Last resort: If possible, move all partitions of other rel to single QE. */
+ else if (!other_immovable)
other->move_to = single->locus;
} /* singleQE or entry */
|
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, macfrx->addr1, 6) != 0) continue;
if(memcmp(zeiger->client, macfrx->addr2, 6) != 0) continue;
@@ -1720,7 +1720,7 @@ if(fd_pcapng > 0)
if((pcapngframesout &PCAPNG_FRAME_EAP) == PCAPNG_FRAME_EAP) writeepb(fd_pcapng);
}
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(zeiger->message != HS_M2) continue;
if(zeiger->rc != (rc -1)) continue;
@@ -1764,7 +1764,7 @@ if(fd_pcapng > 0)
}
if((attackstatus &DISABLE_AP_ATTACKS) != DISABLE_AP_ATTACKS) send_ack();
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((zeiger->message &HS_M1) != HS_M1) continue;
if(zeiger->rc != rc) continue;
|
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) (poolHashesCountAccumulated / windowActual);
-
- messageBus.NotifyHashrateUpdated(pool.Config.Id, poolHashrate);
}
}
@@ -170,29 +167,9 @@ namespace Miningcore.Mining
pool.PoolStats.PoolHashrate = 0;
pool.PoolStats.SharesPerSecond = 0;
- messageBus.NotifyHashrateUpdated(pool.Config.Id, 0);
-
logger.Info(() => $"Reset performance stats for pool {poolId}");
}
- // persist
- await cf.RunTx(async (con, tx) =>
- {
- var mapped = new Persistence.Model.PoolStats
- {
- PoolId = poolId,
- Created = start
- };
-
- mapper.Map(pool.PoolStats, mapped);
- mapper.Map(pool.NetworkStats, mapped);
-
- await statsRepo.InsertPoolStatsAsync(con, tx, mapped);
- });
-
- if(result.Length == 0)
- continue;
-
// retrieve most recent miner/worker hashrate sample, if non-zero
var previousMinerWorkerHashrates = await cf.Run(async (con) =>
{
@@ -210,9 +187,12 @@ namespace Miningcore.Mining
var currentNonZeroMinerWorkers = new HashSet<string>();
// calculate & update miner, worker hashrates
+ var workerCount = 0;
+
foreach(var minerHashes in byMiner)
{
double minerTotalHashrate = 0;
+ workerCount += minerHashes.Count();
await cf.RunTx(async (con, tx) =>
{
@@ -254,6 +234,8 @@ namespace Miningcore.Mining
// identify and reset "orphaned" hashrates
var orphanedHashrateForMinerWorker = previousNonZeroMinerWorkers.Except(currentNonZeroMinerWorkers).ToArray();
+ if(orphanedHashrateForMinerWorker.Any())
+ {
await cf.RunTx(async (con, tx) =>
{
// reset
@@ -282,6 +264,27 @@ namespace Miningcore.Mining
}
});
}
+
+ // persist poolstats
+ pool.PoolStats.ConnectedMiners = workerCount;
+
+ await cf.RunTx(async (con, tx) =>
+ {
+ var mapped = new Persistence.Model.PoolStats
+ {
+ PoolId = poolId,
+ Created = start
+ };
+
+ mapper.Map(pool.PoolStats, mapped);
+ mapper.Map(pool.NetworkStats, mapped);
+
+ await statsRepo.InsertPoolStatsAsync(con, tx, mapped);
+ });
+
+ // broadcast
+ messageBus.NotifyHashrateUpdated(pool.Config.Id, pool.PoolStats.PoolHashrate);
+ }
}
private async Task PerformStatsGcAsync()
|
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, FAR const char *relpath,
FAR void **dir);
static int ufstest_closedir(FAR void *volinfo, FAR void *dir);
@@ -177,6 +179,7 @@ static const struct userfs_operations_s g_ufstest_ops =
ufstest_sync,
ufstest_dup,
ufstest_fstat,
+ ufstest_truncate,
ufstest_opendir,
ufstest_closedir,
ufstest_readdir,
@@ -416,6 +419,12 @@ static int ufstest_fstat(FAR void *volinfo, FAR void *openinfo,
return OK;
}
+static int ufstest_truncate(FAR void *volinfo, FAR void *openinfo,
+ off_t *length)
+{
+ return -ENOSYS;
+}
+
static int ufstest_opendir(FAR void *volinfo, FAR const char *relpath,
FAR void **dir)
{
|
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",
- run->global->io.crashDir, "SAN", (uint64_t)pc, run->backtrace, op, crashAddr,
+ "%s/%s.PC.%tx.STACK.%" PRIx64 ".CODE.%s.ADDR.%p.INSTR.%s.%s",
+ run->global->io.crashDir, "SAN", (uintptr_t)pc, run->backtrace, op, crashAddr,
"[UNKNOWN]", run->global->io.fileExtn);
} else {
/* If no stack hash available, all crashes treated as unique */
char localtmstr[PATH_MAX];
util_getLocalTime("%F.%H:%M:%S", localtmstr, sizeof(localtmstr), time(NULL));
snprintf(run->crashFileName, sizeof(run->crashFileName),
- "%s/%s.PC.%" PRIx64 ".STACK.%" PRIx64 ".CODE.%s.ADDR.%p.INSTR.%s.%s.%s",
- run->global->io.crashDir, "SAN", (uint64_t)pc, run->backtrace, op, crashAddr,
+ "%s/%s.PC.%tx.STACK.%" PRIx64 ".CODE.%s.ADDR.%p.INSTR.%s.%s.%s",
+ run->global->io.crashDir, "SAN", (uintptr_t)pc, run->backtrace, op, crashAddr,
"[UNKNOWN]", localtmstr, run->global->io.fileExtn);
}
}
|
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 @@ int flb_config_set_property(struct flb_config *config,
if (tmp) {
flb_free(tmp);
}
- flb_error("config parameter error");
return -1;
}
return 0;
|
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(), headerSize);
CB_ENSURE(
@@ -306,8 +308,10 @@ namespace NCB {
guidId[FeatureCalcerId[i]] = i;
}
+ for (ui32 i = 0; i < FeatureCalcerId.size(); i++) {
ui64 headerSize;
- while (TryLoad(in, headerSize)) {
+ ::Load(in, headerSize);
+
CB_ENSURE(
in->Avail() >= headerSize,
"Failed to deserialize: Failed to load collection part"
|
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
******************************************************************************/
/*
- * Copyright (c) 2009-2021 Arm Limited. All rights reserved.
+ * Copyright (c) 2009-2022 Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -459,23 +459,7 @@ __STATIC_FORCEINLINE uint32_t __ROR(uint32_t op1, uint32_t op2)
__STATIC_FORCEINLINE uint32_t __RBIT(uint32_t value)
{
uint32_t result;
-
-#if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \
- (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \
- (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) )
__ASM ("rbit %0, %1" : "=r" (result) : "r" (value) );
-#else
- int32_t s = (4U /*sizeof(v)*/ * 8U) - 1U; /* extra shift needed at end */
-
- result = value; /* r will be reversed bits of v; first get LSB of v */
- for (value >>= 1U; value; value >>= 1U)
- {
- result <<= 1U;
- result |= value & 1U;
- s--;
- }
- result <<= s; /* shift when v's highest bits are zero */
-#endif
return result;
}
|
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, "%s:%i, HTTP status=%i",
+ flb_plg_debug(ctx->ins, "%s:%i, HTTP status=%i",
ctx->tcp_host, ctx->tcp_port,
c->resp.status);
}
|
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 pd_power_role pr_role,
+__override void pd_check_pr_role(int port, enum pd_power_role pr_role,
int flags)
{
}
-__override void pd_check_dr_role(int port,
- enum pd_data_role dr_role,
- int flags)
+__override void pd_check_dr_role(int port, enum pd_data_role dr_role, int flags)
{
}
|
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_ARCH
ifndef NO_AVX512
CCOMMON_OPT += -march=skylake-avx512
ifneq ($(F_COMPILER), NAG)
@@ -62,10 +75,8 @@ endif
endif
endif
endif
-endif
ifeq ($(CORE), COOPERLAKE)
-ifndef DYNAMIC_ARCH
ifndef NO_AVX512
ifeq ($(C_COMPILER), GCC)
# cooperlake support was added in 10.1
@@ -88,7 +99,6 @@ endif
endif
endif
endif
-endif
ifdef HAVE_AVX2
ifndef NO_AVX2
@@ -120,6 +130,7 @@ endif
endif
endif
+endif
ifeq ($(OSNAME), Interix)
|
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 ret;
- if (!(ret = orka_str_bounds_check(name, EMBED_FIELD_NAME_LEN))) {
- log_warn("'name' exceeds %d characters, truncation will occur", EMBED_FIELD_NAME_LEN);
- snprintf(new_field.name, EMBED_FIELD_NAME_LEN, "%.*s(...)", \
- EMBED_FIELD_NAME_LEN-6, name);
+ if (!(ret = orka_str_bounds_check(name, sizeof(field->name)))) {
+ log_warn("'name' exceeds %d characters, truncation will occur", sizeof(field->name));
+ snprintf(field->name, sizeof(field->name), "%.*s(...)", \
+ (int)(sizeof(field->name)-6), name);
}
else {
- snprintf(new_field.name, EMBED_FIELD_NAME_LEN, "%.*s", \
- (int)ret, name);
+ snprintf(field->name, sizeof(field->name), "%s", name);
}
- if (!(ret = orka_str_bounds_check(value, EMBED_FIELD_VALUE_LEN))) {
- log_warn("'value' exceeds %d characters, truncation will occur", EMBED_FIELD_VALUE_LEN);
- snprintf(new_field.value, EMBED_FIELD_VALUE_LEN, "%.*s(...)", \
- EMBED_FIELD_VALUE_LEN-6, value);
+ if (!(ret = orka_str_bounds_check(value, sizeof(field->value)))) {
+ log_warn("'value' exceeds %d characters, truncation will occur", sizeof(field->value));
+ snprintf(field->value, sizeof(field->value), "%.*s(...)", \
+ (int)(sizeof(field->value)-6), value);
}
else {
- snprintf(new_field.value, EMBED_FIELD_VALUE_LEN, "%.*s", \
- (int)ret, value);
+ snprintf(field->value, sizeof(field->value), "%s", value);
}
- ntl_append2((ntl_t*)&embed->fields, sizeof(struct discord_embed_field), &new_field);
+ ntl_append2((ntl_t*)&embed->fields, sizeof(struct discord_embed_field), field);
+
+ discord_embed_field_free(field);
}
void
|
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,libv4l2.h))
@@ -321,6 +322,9 @@ endif
ifneq ($(USE_SNDIO),)
MODULES += sndio
endif
+ifneq ($(USE_SWSCALE),)
+MODULES += swscale
+endif
ifneq ($(USE_SYSLOG),)
MODULES += syslog
endif
|
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 pas) pon)) ~
- ?. (~(has in sources) pon) ~
- =- `[%tan rose+[", " `~]^- leaf+~(pr-full pr pon) ~]
+ |= {cir/circle gop/group} ^- (unit sole-effect)
+ ?. |(=(~ cis) (~(has in cis) cir)) ~
+ ?: =(%brown sec.con:(fall (~(get by mirrors) cir) *config)) ~
+ ?. (~(has in sources) cir) ~
+ =- `[%tan rose+[", " `~]^- leaf+~(pr-full pr cir) ~]
=< (murn (sort ~(tap by gop) aor) .)
|= {a/ship b/presence c/human} ^- (unit tank)
=? c =(han.c `(scot %p a)) [~ tru.c]
|
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);
+ od_atomic_u32_dec(&router->clients_routing);
break;
}
client->coroutine_id = coroutine_id;
|
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_SOVERSION 8)
set(SYSREPO_SOVERSION_FULL ${SYSREPO_MAJOR_SOVERSION}.${SYSREPO_MINOR_SOVERSION}.${SYSREPO_MICRO_SOVERSION})
set(SYSREPO_SOVERSION ${SYSREPO_MAJOR_SOVERSION})
|
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
+ }
}
f, err := os.OpenFile("/usr/lib/appscope/scope_filter", os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0755)
if err != nil {
if _, err := os.Stat("/tmp/appscope"); os.IsNotExist(err) {
os.MkdirAll("/tmp/appscope", 0777)
+ if err := os.Chmod("/tmp/appscope/", 0777); err != nil {
+ return f, err
+ }
}
f, err = os.OpenFile("/tmp/appscope/scope_filter", os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0755)
}
|
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 setNormalizedValueFromUI NOTIFY
+ valueChanged)
Q_PROPERTY(double modulation READ getModulation NOTIFY modulationChanged)
+ Q_PROPERTY(double normalizedModulation READ getNormalizedModulation)
Q_PROPERTY(double minValue READ getMinValue NOTIFY minValueChanged)
Q_PROPERTY(double maxValue READ getMaxValue NOTIFY maxValueChanged)
Q_PROPERTY(double defaultValue READ getDefaultValue NOTIFY defaultValueChanged)
@@ -27,9 +30,14 @@ public:
void setValueFromUI(double value);
void setValueFromPlugin(double value);
+ double getNormalizedValue() const { return normalize(getValue()); }
+ void setNormalizedValueFromUI(double value) { setValueFromUI(denormalize(value)); }
+
double getModulation() const { return modulation_; }
void setModulationFromPlugin(double mod);
+ double getNormalizedModulation() const { return normalize(getModulation()); }
+
bool isAdjusting() const { return isAdjusting_; }
void setIsAdjusting(bool isAdjusting);
@@ -40,6 +48,18 @@ public:
double getDefaultValue() const { return defaultValue_; }
void setDefaultValueFromPlugin(double defaultValue);
+ double normalize(double value) const {
+ double delta = maxValue_ - minValue_;
+ return delta != 0 ? (value - minValue_) / delta : 0;
+ }
+
+ double denormalize(double value) const {
+ Q_ASSERT(value >= 0);
+ Q_ASSERT(value <= 1);
+ double delta = maxValue_ - minValue_;
+ return minValue_ + value * delta;
+ }
+
signals:
void nameChanged();
void valueChanged();
|
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):startswith(value) then
_print_candidate(true, "--%s=%s", name, v)
@@ -269,14 +274,16 @@ function main(pos, config, ...)
local argv = os.argv(word)
+ if argv[1] then
+
-- normailize word to remove "xmake"
- if is_host("windows") and argv[1] == "xmake.exe" then
+ if is_host("windows") and argv[1]:lower() == "xmake.exe" then
argv[1] = "xmake"
end
-
if argv[1] == "xmake" then
table.remove(argv, 1)
end
+ end
if has_space then
_complete(argv, "")
|
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)
+ * run into one which does.
+ *
+ * As for the ICC check, unlike other compilers, merely using the
+ * AVX-512 types causes ICC to generate AVX-512 instructions. */
+#if (defined(_MM_CMPINT_GE) || defined(_MM_CMPINT_NLT)) && (defined(SIMDE_X86_AVX512F_NATIVE) || !defined(HEDLEY_INTEL_VERSION))
typedef __m512 simde__m512;
typedef __m512i simde__m512i;
typedef __m512d simde__m512d;
|
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, priorityMenu, ULONG_MAX);
if (ioPriorityMenu)
@@ -3148,6 +3150,7 @@ BOOLEAN PhHandleMiniProcessMenuItem(
case ID_PROCESS_TERMINATE:
case ID_PROCESS_SUSPEND:
case ID_PROCESS_RESUME:
+ case ID_PROCESS_RESTART:
case ID_PROCESS_PROPERTIES:
{
HANDLE processId = MenuItem->Context;
@@ -3166,6 +3169,9 @@ BOOLEAN PhHandleMiniProcessMenuItem(
case ID_PROCESS_RESUME:
PhUiResumeProcesses(PhMainWndHandle, &processItem, 1);
break;
+ case ID_PROCESS_RESTART:
+ PhUiRestartProcess(PhMainWndHandle, processItem);
+ break;
case ID_PROCESS_PROPERTIES:
ProcessHacker_ShowProcessProperties(PhMainWndHandle, processItem);
break;
|
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");
+ fprintf(stderr, " Set the cipher preference version string. Defaults to \"default\". See USAGE-GUIDE.md\n");
fprintf(stderr, " -e\n");
fprintf(stderr, " --echo\n");
fprintf(stderr, " Listen to stdin after TLS Connection is established and echo it to the Server\n");
@@ -96,6 +99,7 @@ int main(int argc, char *const *argv)
uint8_t insecure = 0;
s2n_status_request_type type = S2N_STATUS_REQUEST_NONE;
/* required args */
+ const char *cipher_prefs = "default";
const char *host = NULL;
struct verify_data unsafe_verify_data;
const char *port = "443";
@@ -103,6 +107,7 @@ int main(int argc, char *const *argv)
static struct option long_options[] = {
{"alpn", required_argument, 0, 'a'},
+ {"ciphers", required_argument, 0, 'c'},
{"echo", required_argument, 0, 'e'},
{"help", no_argument, 0, 'h'},
{"name", required_argument, 0, 'n'},
@@ -114,7 +119,7 @@ int main(int argc, char *const *argv)
};
while (1) {
int option_index = 0;
- int c = getopt_long(argc, argv, "ea:hn:sf:d:i", long_options, &option_index);
+ int c = getopt_long(argc, argv, "a:c:ehn:sf:d:i", long_options, &option_index);
if (c == -1) {
break;
}
@@ -122,6 +127,9 @@ int main(int argc, char *const *argv)
case 'a':
alpn_protocols = optarg;
break;
+ case 'c':
+ cipher_prefs = optarg;
+ break;
case 'e':
echo_input = 1;
break;
@@ -219,6 +227,11 @@ int main(int argc, char *const *argv)
exit(1);
}
+ if (s2n_config_set_cipher_preferences(config, cipher_prefs) < 0) {
+ print_s2n_error("Error setting cipher prefs");
+ exit(1);
+ }
+
if (s2n_config_set_status_request_type(config, type) < 0) {
print_s2n_error("OCSP validation is not supported by the linked libCrypto implementation. It cannot be set.");
exit(1);
|
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 }) => ({ previousValue: value }),
+ },
'SET_META_SUCCESS': {
action: ({ id, path, key }, { previousMeta }) =>
previousMeta
@@ -54,7 +57,10 @@ const undoMiddleware = createUndoMiddleware({
action: ({ id, path, key }, { previousMeta }) => createMetaKey(id, path, key, previousMeta),
createArgs: storePreviousMeta,
},
- 'CREATE_META_SUCCESS': ({ id, path, key }) => deleteMetaKey(id, path, key),
+ 'CREATE_META_SUCCESS': {
+ action: ({ id, path, key }) => deleteMetaKey(id, path, key),
+ createArgs: (state, { value }) => ({ previousMeta: value }),
+ },
'COPY_KEY_SUCCESS': {
action: ({ id, from, to }) => deleteKey(id, to),
createArgs: (state, { from, to }) => ({ from, to }),
|
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_debug("%s: prod %d, prod_end %d", __func__, prod, prod_end);
- u64 flags = spin_lock_irq(&xd->tx_fill_lock);
+
while (prod < prod_end) {
netif_tx_request_t *tx = RING_GET_REQUEST(&xd->tx_ring, prod);
xennet_tx_page txp = xennet_fill_tx_request(xd, tx);
@@ -358,16 +359,16 @@ static void xennet_populate_tx_ring(xennet_dev xd)
prod, txp, tx->offset, tx->size, tx->id, tx->flags, tx->gref);
prod++;
}
- spin_unlock_irq(&xd->tx_fill_lock, flags);
xd->tx_ring.req_prod_pvt = prod;
- xennet_debug("queueing done");
-
write_barrier();
int notify;
RING_PUSH_REQUESTS_AND_CHECK_NOTIFY(&xd->tx_ring, notify);
if (notify)
xen_notify_evtchn(xd->evtchn);
+
+ spin_unlock_irq(&xd->tx_fill_lock, flags);
+ xennet_debug("queueing done");
}
/* We could just walk the pages using pointers in the txb, but we need
|
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 = NtReadVirtualMemory(
ProcessHandle,
- PTR_ADD_OFFSET(basicInfo.PebBaseAddress, FIELD_OFFSET(PEB, ProcessParameters)),
+ PTR_ADD_OFFSET(basicInfo.PebBaseAddress, UFIELD_OFFSET(PEB, ProcessParameters)),
&processParameters,
sizeof(PVOID),
NULL
@@ -1138,7 +1138,7 @@ NTSTATUS PhGetProcessEnvironment(
if (!NT_SUCCESS(status = NtReadVirtualMemory(
ProcessHandle,
- PTR_ADD_OFFSET(processParameters, FIELD_OFFSET(RTL_USER_PROCESS_PARAMETERS, Environment)),
+ PTR_ADD_OFFSET(processParameters, UFIELD_OFFSET(RTL_USER_PROCESS_PARAMETERS, Environment)),
&environmentRemote,
sizeof(PVOID),
NULL
@@ -1158,7 +1158,7 @@ NTSTATUS PhGetProcessEnvironment(
if (!NT_SUCCESS(status = NtReadVirtualMemory(
ProcessHandle,
- PTR_ADD_OFFSET(peb32, FIELD_OFFSET(PEB32, ProcessParameters)),
+ PTR_ADD_OFFSET(peb32, UFIELD_OFFSET(PEB32, ProcessParameters)),
&processParameters32,
sizeof(ULONG),
NULL
@@ -1167,7 +1167,7 @@ NTSTATUS PhGetProcessEnvironment(
if (!NT_SUCCESS(status = NtReadVirtualMemory(
ProcessHandle,
- PTR_ADD_OFFSET(processParameters32, FIELD_OFFSET(RTL_USER_PROCESS_PARAMETERS32, Environment)),
+ PTR_ADD_OFFSET(processParameters32, UFIELD_OFFSET(RTL_USER_PROCESS_PARAMETERS32, Environment)),
&environmentRemote32,
sizeof(ULONG),
NULL
@@ -1187,11 +1187,11 @@ NTSTATUS PhGetProcessEnvironment(
)))
return status;
- environmentLength = (ULONG)(mbi.RegionSize -
- ((ULONG_PTR)environmentRemote - (ULONG_PTR)mbi.BaseAddress));
-
// Read in the entire region of memory.
+ environmentLength = (SIZE_T)PTR_SUB_OFFSET(mbi.RegionSize,
+ PTR_SUB_OFFSET(environmentRemote, mbi.BaseAddress));
+
environment = PhAllocatePage(environmentLength, NULL);
if (!environment)
@@ -1212,7 +1212,7 @@ NTSTATUS PhGetProcessEnvironment(
*Environment = environment;
if (EnvironmentLength)
- *EnvironmentLength = environmentLength;
+ *EnvironmentLength = (ULONG)environmentLength;
return status;
}
|
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 from stdin: %s", strerror(errno));
return -1;
|
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("(%s) ", application_hint) : NULL;
+ char* application_str = strValid(application_hint)
+ ? oidc_sprintf("(%s) ", application_hint)
+ : NULL;
char* msg =
oidc_sprintf(fmt, application_str ?: "", shortname, shortname, shortname);
secFree(application_str);
@@ -70,8 +71,9 @@ oidc_error_t askpass_getConfirmation(const char* shortname,
"Prompting user for confirmation of using config '%s'", shortname);
const char* const fmt = "An application %srequests an access token for '%s'. "
"Do you want to allow this usage?";
- char* application_str =
- application_hint ? oidc_sprintf("(%s) ", application_hint) : NULL;
+ char* application_str = strValid(application_hint)
+ ? oidc_sprintf("(%s) ", application_hint)
+ : NULL;
char* msg =
oidc_sprintf(fmt, application_str ?: "", shortname, shortname, shortname);
secFree(application_str);
|
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 doesn't know about it, send it to SCO */
if (!l2c_link_hci_disc_comp (handle, reason)) {
btm_sco_removed (handle, reason);
+ need_report = FALSE;
}
#else
+ l2c_link_hci_disc_comp(handle, reason);
+#endif /* BTM_SCO_INCLUDED */
+
+ if (need_report) {
/* Report BR/EDR ACL disconnection result to upper layer */
tACL_CONN *conn = btm_handle_to_acl(handle);
+ if (conn) {
#if BLE_INCLUDED == TRUE
if (conn->transport == BT_TRANSPORT_BR_EDR)
#endif
@@ -2677,9 +2685,9 @@ void btm_acl_disconnected(UINT16 handle, UINT8 reason)
bdcpy(evt_data.link_act.disconn_cmpl.bd_addr, conn->remote_addr);
btm_acl_link_stat_report(&evt_data);
}
+ }
+ }
- l2c_link_hci_disc_comp(handle, reason);
-#endif /* BTM_SCO_INCLUDED */
#if (SMP_INCLUDED == TRUE)
/* Notify security manager */
btm_sec_disconnected(handle, reason);
|
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, u_char *end)
size_t zero_groups, last_zero_groups, ipv6_bytes;
nxt_uint_t i, zero_start, last_zero_start;
- if (buf + NXT_INET6_ADDR_STR_LEN > end) {
+ const size_t max_inet6_length =
+ sizeof("ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff") - 1;
+
+ if (buf + max_inet6_length > end) {
return 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;
+ public bool IsVisible
+ {
+ get => (Flags & 0x20) == 0x20;
+ set => Flags = value ? Flags |= 0x20 : Flags &= 0xDF;
+ }
}
}
|
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 not be reported, and "
+ "should be handled by *SAN code internally");
arch_sigs[SIGSEGV].important = false;
arch_sigs[SIGBUS].important = false;
arch_sigs[SIGILL].important = false;
|
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) $(APP_FULL) $(PLATFORM)
- $(eval OUT_MSG := $(shell sh $(TOP_PATH)/platform/mcu/$(HOST_MCU_FAMILY)/script/manipulate_image.sh $(ota_idx) $(TOP_PATH) $(APP_FULL) $(PLATFORM)))
+ @echo $(HOST_OS) $(ota_offset) $(TOP_PATH) $(APP_FULL) $(PLATFORM)
+ $(eval OUT_MSG := $(shell sh $(TOP_PATH)/platform/mcu/$(HOST_MCU_FAMILY)/script/manipulate_image.sh $(ota_offset) $(TOP_PATH) $(APP_FULL) $(PLATFORM)))
endif
|
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_GetFlagStatus(uart->uart_device, USART_FLAG_ORE) == SET)
|
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 = subprocess.check_output(load_cmd.format(item), shell=True)
+ lc_rpaths = [ path for path in lc_rpaths.split("\n")[1:] if path.find(" path") != -1]
+ for lc_rpath in lc_rpaths:
+ invalid_path = lc_rpath.split()[1]
+ if invalid_path.find(home) != -1:
+ invalid_paths.append(invalid_path)
+ except:
+ print "[info: no invalid LC_RPATHS for '%s']" % item
+
+ del_rpath_cmd = "install_name_tool -delete_rpath {0} {1} 2>&1"
+ for invalid_path in invalid_paths:
+ subprocess.call(del_rpath_cmd.format(invalid_path, item), shell=True)
+
+ # Add rpaths relative to the bundle
deps_cmd = "otool -L {0}"
try:
dependencies = subprocess.check_output(deps_cmd.format(item), shell=True)
@@ -171,11 +190,10 @@ def fixup_items(items,lib_maps,prefix_path):
print "[warning: failed to obtain dependencies for '%s']" % item
dependencies = []
- rpath_base_cmd = "install_name_tool -add_rpath {0} {1} 2>&1"
-
# if we have an exe exe_rpaths[0]
# if we have a bundle exe_rpaths[1]
# it doens't hurt to add both for now
+ rpath_base_cmd = "install_name_tool -add_rpath {0} {1} 2>&1"
rpath_cmds = [rpath_base_cmd.format(rp, item) for rp in exe_rpaths]
for rp_cmd in rpath_cmds:
subprocess.call(rp_cmd,shell=True)
|
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_UART_A=-1 |
| 21 | WHRE board (NINA-W1), Cat M1 | 5 | ESP32 | | ESP-IDF | | SARA_R410M_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_UART_A=-1 |
| 22 | NINA-W1 + EVK, Cat M1 | 20 | ESP32 | esp32:esp32:nina_w10 | Arduino | ESP-IDF | SARA_R422 M8 | port network sock security cell mqtt_client gnss location | U_CFG_MONITOR_DTR_RTS_OFF U_CFG_1V8_SIM_WORKAROUND U_CFG_APP_PIN_CELL_ENABLE_POWER=-1 U_CFG_APP_PIN_CELL_VINT=-1 U_CFG_APP_PIN_CELL_PWR_ON=5 U_CFG_APP_PIN_CELL_TXD=14 U_CFG_TEST_PIN_A=-1 U_CFG_TEST_PIN_B=-1 U_CFG_TEST_PIN_C=-1 U_CFG_TEST_UART_A=-1 |
-| 23 | Windows + EVK, Cat M1 | 30 | WIN32 | | WINDOWS | MSVC | | port network sock ble wifi cell short_range security mqtt_client gnss location | U_CFG_SARA_R5_M8_WORKAROUND U_BLE_TEST_CFG_REMOTE_SPS_CENTRAL=2462ABB6CC42p U_CFG_TEST_SECURITY_C2C_TE_SECRET=\x00\x01\x02\x03\x04\x05\x06\x07\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8 |
+| x23 | Windows + EVK, Cat M1 | 30 | WIN32 | | WINDOWS | MSVC | | port network sock ble wifi cell short_range security mqtt_client gnss location | U_CFG_SARA_R5_M8_WORKAROUND U_BLE_TEST_CFG_REMOTE_SPS_CENTRAL=2462ABB6CC42p U_CFG_TEST_SECURITY_C2C_TE_SECRET=\x00\x01\x02\x03\x04\x05\x06\x07\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8 |
Notes:
- the #defines listed are *overrides* on the default values that are defined in the code or additional to those defined in the code; they are not a complete list,
|
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 ${__toolchain} CACHE INTERNAL "Toolchain to build Amazon FreeRTOS.")
+endif()
# Provide an option to enable tests. Also set an helper variable to use in generator expression.
option(AFR_ENABLE_TESTS "Build tests for Amazon FreeRTOS. Requires recompiling whole library." OFF)
|
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)
+ {
+ if (!(player.dir.x > 0 | player.dir.x < 0 | player.dir.y > 0 | player.dir.y < 0))
+ {
+ player.moving = FALSE;
+ player.dir.x = backup_dir.x;
+ player.dir.y = backup_dir.y;
+ }
+ }
+
tile_x = (player.pos.x + 4) >> 3;
tile_y = (player.pos.y) >> 3;
|
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 > 100,000. Lets just set 1 MB as the limit
+ sc.Buffer(make([]byte, 1024), 1024*1024)
for sc.Scan() {
entries, err := parseJSONArrayOutput(sc.Text(), normalize)
if err != nil {
|
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/hello_world/hello_kernel/hello_kernel.stb
+test/sreset_world/sreset_kernel/sreset_kernel.stb
zImage.epapr
vgcore.*
doc/_build
|
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_m3EnableOpTracing=1 \
-Dd_m3EnableStrace=1 \
-Dd_m3LogParse=1 \
|
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 build-essential cmake libassimp-dev libglfw-dev libphysfs-dev libfreetype6-dev libopenal-dev libode-dev luajit
+```
+
Then, build with CMake:
```sh
|
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_private(simde_mm512_xxx_epu64(simde__m512i_from_private(a), simde__m512i_from_private(b)));
printf(" { simde_x_mm512_set_epu64(UINT64_C(%20" PRIu64 "), UINT64_C(%20" PRIu64 "),\n"
" UINT64_C(%20" PRIu64 "), UINT64_C(%20" PRIu64 "),\n",
@@ -2234,7 +2234,7 @@ test_simde_mm512_xxx_epu64(const MunitParameter params[], void* data) {
return MUNIT_FAIL;
for (size_t i = 0 ; i < (sizeof(test_vec) / sizeof(test_vec[0])); i++) {
- simde__m512i r = simde_mm512_xxx_epi64(test_vec[i].a, test_vec[i].b);
+ simde__m512i r = simde_mm512_xxx_epu64(test_vec[i].a, test_vec[i].b);
simde_assert_m512i_i64(r, ==, test_vec[i].r);
}
|
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, year, Myr, Gyr
sUnitAngle d # Options: deg, rad
|
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(c,
+ "\t" "scan key <cursor> [count <count>] [match <pattern>] [type <type>]\\r\\n" "\n"
+#ifdef SCAN_PREFIX_COMMAND
+ "\t" "scan prefix <cursor> [count <count>] [match <pattern>]\\r\\n" "\n"
+#endif
+ );
+#endif
} else if (ntokens > 2 && strcmp(type, "admin") == 0) {
out_string(c,
"\t" "flush_all [<delay>] [noreply]\\r\\n" "\n"
@@ -9352,9 +9361,15 @@ static void process_help_command(conn *c, token_t *tokens, const size_t ntokens)
#endif
);
} else {
+#ifdef SCAN_COMMAND
+ out_string(c,
+ "\t" "* Usage: help [kv | list | set | map | btree | attr | scan | admin ]" "\n"
+ );
+#else
out_string(c,
"\t" "* Usage: help [kv | list | set | map | btree | attr | admin ]" "\n"
);
+#endif
}
}
|
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 }, // Konke Kit Pro-BS Temp Humidity Sensor ver.2
+ { VENDOR_KONKE, "3AFE220103020000", konkeMacPrefix }, // Konke Kit Pro-BS Temp Humidity Sensor ver ???
{ VENDOR_EMBER, "3AFE130104020015", konkeMacPrefix }, // Konke Kit Pro-Door Entry Sensor
{ VENDOR_NONE, "RICI01", tiMacPrefix}, // LifeControl smart plug
{ VENDOR_JENNIC, "VOC_Sensor", jennicMacPrefix}, // LifeControl Enviroment sensor
|
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.
* EFAULT One of the pointer arguments points outside the user address
* space.
* EINVAL 'source' had an invalid superblock.
@@ -244,6 +244,14 @@ int mount(FAR const char *source, FAR const char *target, FAR const char *filesy
ret = find_blockdriver(source, mountflags, &blkdrvr_inode);
if (ret < 0) {
+ /* find_blockdriver can fail for a couple of reasons, it may return:
+ *
+ * -EINVAL - pathname or pinode is NULL
+ * -ENOENT - No block driver of this name is registered
+ * -ENOTBLK - The inode associated with the pathname is not a block driver
+ * -EACCESS - The MS_RDONLY option was not set but this driver does not support write access
+ */
+
fdbg("ERROR: Failed to find block driver %s\n", source);
errcode = -ret;
goto errout;
|
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" if args.metalangle else "")
iosversion = '9.0'
frameworks = (["Metal", "MetalKit"] if args.metalangle else ["OpenGLES", "GLKit"]) + ["UIKit", "CoreGraphics", "CoreText", "CFNetwork", "Foundation"]
xcframeworks = []
|
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 != con->request_content_queue->bytes_in
+ && (con->mode == DIRECT || 0 == con->conf.stream_request_body)) {
+ con->keep_alive = 0;
} else {
con->keep_alive_idle = con->conf.max_keep_alive_idle;
}
|
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 HAVE_SSL_CTX_SET_TLSEXT_TICKET_KEY_EVP_CB
@@ -105,6 +106,7 @@ int tls_session_ticket_key_cb(SSL *s, unsigned char* key_name,
HMAC_CTX* hmac_ctx,
#endif
int enc);
+#endif /* HAVE_SSL */
/* returns true is string addr is an ip6 specced address */
int
@@ -1267,6 +1269,7 @@ int set_auth_name_on_ssl(void* ssl, char* auth_name, int use_sni)
}
#else
(void)ssl;
+ (void)use_sni;
#endif
#ifdef HAVE_SSL_SET1_HOST
SSL_set_verify(ssl, SSL_VERIFY_PEER, NULL);
@@ -1434,6 +1437,7 @@ int listen_sslctx_setup_ticket_keys(void* sslctx, struct config_strlist* tls_ses
}
+#ifdef HAVE_SSL
int tls_session_ticket_key_cb(SSL *ATTR_UNUSED(sslctx), unsigned char* key_name,
unsigned char* iv, EVP_CIPHER_CTX *evp_sctx,
#ifdef HAVE_SSL_CTX_SET_TLSEXT_TICKET_KEY_EVP_CB
@@ -1531,6 +1535,7 @@ int tls_session_ticket_key_cb(SSL *ATTR_UNUSED(sslctx), unsigned char* key_name,
return 0;
#endif
}
+#endif /* HAVE_SSL */
void
listen_sslctx_delete_ticket_keys(void)
|
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: scripts/west-commands.yml
\ No newline at end of file
|
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_AREA_GET_SECTORS", None);
@@ -65,6 +63,7 @@ fn main() {
conf.include("../../boot/zephyr/include");
conf.debug(true);
conf.flag("-Wall");
+ conf.flag("-Werror");
conf.compile("libbootutil.a");
|
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, "no-bias", &(network_resnet_default.bias), "do not use bias"),
+
+ OPTL_SELECT_DEF(0, "cardioid", enum ACTIVATION, &(network_resnet_default.activation), ACT_CARDIOID, ACT_RELU, "use cardioid as activation"),
};
const int N_res_block_opts = ARRAY_SIZE(res_block_opts);
|
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_id.path_id = QUICLY_MAX_PATH_ID;
}
- conn->_.egress.new_cid.max_path_id = conn->_.super.master_id.path_id;
+ conn->_.egress.new_cid.last_path_id = conn->_.super.master_id.path_id;
quicly_linklist_init(&conn->_.egress.new_cid.head);
conn->_.super.state = QUICLY_STATE_FIRSTFLIGHT;
if (server_name != NULL) {
@@ -3629,19 +3629,19 @@ static int update_traffic_key_cb(ptls_update_traffic_key_t *self, ptls_t *tls, i
/* NEW_CONNECTION_ID */
/** active CIDs the peer currently has */
- uint32_t n_cids_active = conn->egress.new_cid.max_path_id - conn->super.host.n_retired_cids;
+ uint32_t n_cids_active = conn->egress.new_cid.last_path_id - conn->super.host.n_retired_cids;
/** how many CIDs can we additionally offer to the peer? active_connection_id_limit is uint64_t, hence this too */
uint64_t cids_window = conn->super.peer.transport_params.active_connection_id_limit - n_cids_active;
/** new upper limit of path_id to which we can issue */
- uint64_t path_id_limit = conn->egress.new_cid.max_path_id + cids_window;
+ uint64_t path_id_limit = conn->egress.new_cid.last_path_id + cids_window;
if (path_id_limit > QUICLY_MAX_PATH_ID)
path_id_limit = QUICLY_MAX_PATH_ID;
- while (conn->egress.new_cid.max_path_id < path_id_limit) {
- int ret = schedule_new_connection_id(conn, conn->egress.new_cid.max_path_id);
+ while (conn->egress.new_cid.last_path_id < path_id_limit) {
+ int ret = schedule_new_connection_id(conn, conn->egress.new_cid.last_path_id);
if (ret != 0)
return ret;
- conn->egress.new_cid.max_path_id++;
+ conn->egress.new_cid.last_path_id++;
}
return 0;
|
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(me->i2c_port, IT5205H_SBU_I2C_ADDR_FLAGS, reg, mask,
+ action);
}
static int it5205h_sbu_field_update(const struct usb_mux *me, uint8_t reg,
uint8_t field_mask, uint8_t set_value)
{
- return i2c_field_update8(me->i2c_port, IT5205H_SBU_I2C_ADDR_FLAGS,
- reg, field_mask, set_value);
+ return i2c_field_update8(me->i2c_port, IT5205H_SBU_I2C_ADDR_FLAGS, reg,
+ field_mask, set_value);
}
struct mux_chip_id_t {
@@ -67,16 +67,16 @@ static int it5205_init(const struct usb_mux *me)
}
if (IS_ENABLED(CONFIG_USB_MUX_IT5205H_SBU_OVP)) {
- RETURN_ERROR(it5205h_sbu_field_update(me, IT5205H_REG_VSR,
- IT5205H_VREF_SELECT_MASK,
+ RETURN_ERROR(it5205h_sbu_field_update(
+ me, IT5205H_REG_VSR, IT5205H_VREF_SELECT_MASK,
IT5205H_VREF_SELECT_3_3V));
RETURN_ERROR(it5205h_sbu_field_update(me, IT5205H_REG_CSBUOVPSR,
IT5205H_OVP_SELECT_MASK,
IT5205H_OVP_3_68V));
- RETURN_ERROR(it5205h_sbu_update(me, IT5205H_REG_ISR,
- IT5205H_ISR_CSBU_MASK, MASK_CLR));
+ RETURN_ERROR(it5205h_sbu_update(
+ me, IT5205H_REG_ISR, IT5205H_ISR_CSBU_MASK, MASK_CLR));
RETURN_ERROR(it5205h_enable_csbu_switch(me, true));
}
@@ -86,8 +86,8 @@ static int it5205_init(const struct usb_mux *me)
enum ec_error_list it5205h_enable_csbu_switch(const struct usb_mux *me, bool en)
{
- return it5205h_sbu_update(me, IT5205H_REG_CSBUSR,
- IT5205H_CSBUSR_SWITCH, en ? MASK_SET : MASK_CLR);
+ return it5205h_sbu_update(me, IT5205H_REG_CSBUSR, IT5205H_CSBUSR_SWITCH,
+ en ? MASK_SET : MASK_CLR);
}
/* Writes control register to set switch mode */
|
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 \x00e4");
+#else
+ const XML_Char *expected = XCS("\xc3\xa4 \xc3\xa4");
+#endif
CharData storage;
CharData_Init(&storage);
|
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 follows.
+
+- A guest VM executes the ``vmcall`` instruction to trigger a hypercall.
+
+- Input parameters of a hypercall includes:
+
+ - An hypercall ID in register ``R8``, which specifies the kind of service
+ requested by the guest VM.
+
+ - The first parameter in register ``RDI`` and the second in register
+ ``RSI``. The semantics of those two parameters vary among different kinds of
+ hypercalls and are defined in the hypercall APIs reference. For hypercalls
+ requesting operations on a specific VM, the first parameter is typically the
+ ID of that VM.
+
+- The register ``RAX`` contains the return value of the hypercall after a guest
+ VM executes the ``vmcall`` instruction, unless the ``vmcall`` instruction
+ triggers an exception. Other general purpose registers are not modified by a
+ hypercall.
+
+- In case a hypercall parameter is defined as a pointer to a data structure,
+ fields in that structure can be either input, output or inout.
+
There are some restrictions for hypercall and upcall:
#. Only specific VMs (the Service VM and the VM with Trusty enabled)
|
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 ($(findstring pgcc,$(HOSTCC)),)
GETARCH_FLAGS += -march=native
endif
endif
|
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 address. */
rc = ble_hs_id_set_rnd(addr.val);
|
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_INT_T "long long")
elseif (HAVE_INT64_T)
set (JSON_INT_T int64_t)
|
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_no++)
+ for (stack_no = 0; stack_no < stacksize && stack_no < STACK_DEPTH_MAX; stack_no++)
{
/* initialize the string */
cmdresult[stack_no][0] = '\0';
@@ -3072,8 +3072,11 @@ append_stacktrace(PipeProtoChunk *buffer, StringInfo append, void *const *stacka
function = "<symbol not found>";
}
- /* check if lineInfo was retrieved */
- if (strchr(lineInfo, ':') == NULL)
+ // check if lineInfo was retrieved
+ // if lineinfo does not contain symbol ':' then the output of cmd contains the input address
+ // if lineinfo contains symbol '?' then the filename and line number cannot be determined (the output is ??:0)
+ if (strchr(lineInfo, ':') == NULL ||
+ strchr(lineInfo, '?') != NULL)
{
/* no line info, print offset in function */
symbol_len = snprintf(symbol,
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.