message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Add slide selection modal to commands help | @@ -1965,6 +1965,7 @@ void push_controls_msg(void) {
{"' (quote)", "Rectangle Selection Mode"},
{"Shift+Arrow Keys", "Adjust Rectangle Selection"},
{"Alt+Arrow Keys", "Slide Selection"},
+ {"` (grave) or ~", "Toggle Slide Selection Mode"},
{"Escape", "Return to Normal Mode or Deselect"},
{"( and )", "Resize Grid (Horiz... |
tools: remove dependency of idf-python and idf-python-wheels
Closes
Closes | }
}
]
- },
- {
- "description": "Embeddable Python distribution",
- "export_paths": [],
- "export_vars": {},
- "info_url": "https://github.com/espressif/esp-idf/tree/master/tools/windows/",
- "install": "never",
- "license": "PSF License",
- "name": "idf-python",
- "platform_overrides": [
- {
- "install": "on_request",... |
cleaner: Don't check for valid if cache line is not dirty | @@ -920,7 +920,7 @@ void ocf_cleaner_fire(struct ocf_cache *cache,
skip = true;
}
- if (!metadata_test_valid_any(cache, cache_line)) {
+ if (!skip && !metadata_test_valid_any(cache, cache_line)) {
OCF_DEBUG_MSG(cache, "No any valid");
/*
|
pbio/test/trajectory: Check speed and position change. | @@ -88,7 +88,8 @@ static void walk_trajectory(pbio_trajectory_t *trj) {
}
// Loop over all trajectory points and assert results.
- for (uint32_t t = 1; t < duration; t += 500) {
+ const uint32_t increment = 50;
+ for (uint32_t t = increment; t < duration; t += increment) {
// Get current reference.
uint32_t now = t + t... |
Add debug checks for dialog destructor | @@ -79,7 +79,9 @@ DeRestWidget::DeRestWidget(QWidget *parent) :
/*! Deconstructor. */
DeRestWidget::~DeRestWidget()
{
+ Q_ASSERT(ui);
delete ui;
+ ui = nullptr;
}
/*! Returns true if the plugin is active. */
|
libhfuzz: slight implementation wrt guards | @@ -172,7 +172,8 @@ void __sanitizer_cov_trace_pc_guard_init(uint32_t * start, uint32_t * stop)
fprintf(stderr, "This process has too many PC guards\n");
exit(1);
}
- *x = n;
+ /* If the corresponding PC was already hit, map this specific guard as non-interesting (0) */
+ *x = ATOMIC_GET(feedback->pcGuardMap[n]) ? 0U :... |
improve package.tools.meson on windows | @@ -41,6 +41,19 @@ function _get_configs(package, configs, opt)
local configs = configs or {}
table.insert(configs, "--prefix=" .. package:installdir())
+ -- set build type
+ table.insert(configs, "--buildtype=" .. (package:debug() and "debug" or "release"))
+
+ -- add -fpic
+ if package:is_plat("linux") and package:co... |
DM: compare unsigned numbers to avoid overflow.
compare the two unsigned numbers to avoid delta calculation overflow.
It could happen during UOS warm root, which can trigger a "fake"
interrupt storm.
Acked-by: Anthony Xu | @@ -121,6 +121,10 @@ static void *intr_storm_monitor_thread(void *arg)
if (hdr->buffer[i] != intr_cnt_buf[i])
continue;
+ /* avoid delta overflow */
+ if (hdr->buffer[i + 1] < intr_cnt_buf[i + 1])
+ continue;
+
delta = hdr->buffer[i + 1] - intr_cnt_buf[i + 1];
if (delta > INTR_STORM_THRESHOLD) {
#ifdef INTR_MONITOR_DBG... |
health: use input coroutine flag to correctly use async network i/o. | @@ -129,7 +129,7 @@ static int in_health_collect(struct flb_input_instance *ins,
flb_input_chunk_append_raw(ins, NULL, 0, mp_sbuf.data, mp_sbuf.size);
msgpack_sbuffer_destroy(&mp_sbuf);
- return 0;
+ FLB_INPUT_RETURN(0);
}
static int in_health_init(struct flb_input_instance *in,
@@ -254,5 +254,5 @@ struct flb_input_plu... |
add output.avi when output path is a folder | @@ -98,7 +98,8 @@ class Osr2mp4:
data = read(filedata)
if filesettings is not None:
gameplaysettings = read(filesettings)
-
+ if os.path.isdir(data["Output path"]):
+ data["Output path"] = os.path.join(data["Output path"], "output.avi")
self.data = data
replaypath = data[".osr path"]
starttime = data["Start time"]
|
folding in internal ILM changes - conditional delete in exception catch block. | @@ -678,9 +678,16 @@ OutputFile::OutputFile
catch (IEX_NAMESPACE::BaseExc &e)
{
// ~OutputFile will not run, so free memory here
+ if (_data)
+ {
+ if (_data->_streamData)
+ {
delete _data->_streamData->os;
delete _data->_streamData;
+ }
+
delete _data;
+ }
REPLACE_EXC (e, "Cannot open image file "
"\"" << fileName << ... |
remove openssl patch attempt from picotls build | # Build at a known-good commit
$COMMIT_ID="9accdf4af580e2ad883c929f8ca7a4cc58f15379"
-# Match expectations of picotlsvs project.
-mkdir $dir\include\
-foreach ($dir in "$Env:OPENSSLDIR","$Env:OPENSSL64DIR") {
- if ($dir) {
- cp "$dir\lib\libcrypto.lib" "$dir"
- cp C:\OpenSSL-Win32\include\openssl\applink.c "$dir\includ... |
benchmark: adding command-line option for fast run | /*
- * Copyright (c) 2007 - 2017 Joseph Gaeddert
+ * Copyright (c) 2007 - 2019 Joseph Gaeddert
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@@ -98,6 +98,7 @@ void usage()
printf(" -h : display this help a... |
Add module_restart_next definition to swig file | @@ -1128,6 +1128,7 @@ struct delegpt {
%rename ("MODULE_STATE_INITIAL") "module_state_initial";
%rename ("MODULE_WAIT_REPLY") "module_wait_reply";
%rename ("MODULE_WAIT_MODULE") "module_wait_module";
+%rename ("MODULE_RESTART_NEXT") "module_restart_next";
%rename ("MODULE_WAIT_SUBQUERY") "module_wait_subquery";
%rename... |
Rename conn_encode_handshake_pkt as conn_write_handshake_pkt | @@ -831,7 +831,7 @@ static ssize_t conn_retransmit(ngtcp2_conn *conn, uint8_t *dest, size_t destlen,
}
/*
- * conn_encode_handshake_pkt writes handshake packet in the buffer
+ * conn_write_handshake_pkt writes handshake packet in the buffer
* pointed by |dest| whose length is |destlen|. |type| specifies long
* packet t... |
armv8: setting all_spawnd_up in kaluga | static errval_t armv8_startup_common(void)
{
errval_t err = SYS_ERR_OK;
+
+ // Since we don't seem to be able to boot cores on the ARMv8 platforms yet,
+ // we just set all_spawnds_up here. -RA,2017-02-24.
+ err = oct_set("all_spawnds_up { iref: 0 }");
+ assert(err_is_ok(err));
+
// We need to run on core 0
// (we are ... |
LIS2DH12: fix build issues after merging recent PR | @@ -71,10 +71,10 @@ static int
lis2dh12_sensor_set_trigger_thresh(struct sensor *, sensor_type_t,
struct sensor_type_traits *);
static const struct sensor_driver g_lis2dh12_sensor_driver = {
- lis2dh12_sensor_read,
- lis2dh12_sensor_get_config,
+ .sd_read = lis2dh12_sensor_read,
+ .sd_get_config = lis2dh12_sensor_get_c... |
Test invalid character in a hex character reference | @@ -5227,6 +5227,19 @@ START_TEST(test_invalid_character_entity)
}
END_TEST
+START_TEST(test_invalid_character_entity_2)
+{
+ const char *text =
+ "<!DOCTYPE doc [\n"
+ " <!ENTITY entity '&#xg0;'>\n"
+ "]>\n"
+ "<doc>&entity;</doc>";
+
+ expect_failure(text, XML_ERROR_INVALID_TOKEN,
+ "Out of range character reference ... |
add github.com/pkg/sftp [SKIP_STRONG] | @@ -382,6 +382,9 @@ ALLOW .* -> vendor/github.com/siddontang/go-mysql/replication
ALLOW .* -> vendor/github.com/siddontang/go-mysql/canal
ALLOW .* -> vendor/github.com/siddontang/go-mysql/mysql
+# CONTRIB-1656 golang sftp server library
+ALLOW .* -> vendor/github.com/pkg/sftp
+
#
# Temporary exceptions.
#
|
readme: update for new build structure | @@ -14,18 +14,16 @@ git clone https://github.com/abelay/shenango
cd shenango
```
-2) Setup DPDK, SPDK, and rdma-core.
+2) Set up submodules (e.g., DPDK, SPDK, and rdma-core).
```
-./dpdk.sh
-./spdk.sh
-./rdma-core.sh
+./build/init_submodules.sh
```
-(3) Build the IOKernel, the Shenango runtime, and Ksched and perform s... |
Add application/wasm for WebAssembly. | @@ -104,6 +104,7 @@ MIMEMAP("ttc", "font/collection")
MIMEMAP("ttf", "font/ttf")
MIMEMAP("txt", "text/plain")
MIMEMAP("war", "application/java-archive")
+MIMEMAP("wasm", "application/wasm")
MIMEMAP("wbmp", "image/vnd.wap.wbmp")
MIMEMAP("webm", "video/webm")
MIMEMAP("webp", "image/webp")
|
(esp_wifi) : Adds improvements to esp_wps.c to cover up potential memory leaks. | @@ -1462,6 +1462,9 @@ _err:
sm->dev = NULL;
}
if (sm->wps_ctx) {
+ if (sm->wps_ctx->dh_privkey) {
+ wpabuf_free(sm->wps_ctx->dh_privkey);
+ }
os_free(sm->wps_ctx);
sm->wps_ctx = NULL;
}
@@ -1511,6 +1514,9 @@ wifi_station_wps_deinit(void)
sm->dev = NULL;
}
if (sm->wps_ctx) {
+ if (sm->wps_ctx->dh_privkey) {
+ wpabuf_fre... |
notifications: prevent safari shrinkage | @@ -92,7 +92,7 @@ function NotificationWrapper(props: {
const changeMuteDesc = isMuted ? "Unmute" : "Mute";
return (
- <Row alignItems="top" justifyContent="space-between">
+ <Row flexShrink={0} alignItems="top" justifyContent="space-between">
{children}
<Row gapX="2" p="2" pt='3' alignItems="top">
<StatelessAsyncActio... |
event: rename macros for logs, metrics and traces | #include <fluent-bit/flb_input_chunk.h>
/* Event types */
-#define FLB_EVENT_TYPE_LOG FLB_INPUT_CHUNK_TYPE_LOG
-#define FLB_EVENT_TYPE_METRIC FLB_INPUT_CHUNK_TYPE_METRIC
+#define FLB_EVENT_TYPE_LOGS FLB_INPUT_CHUNK_TYPE_LOGS
+#define FLB_EVENT_TYPE_METRICS FLB_INPUT_CHUNK_TYPE_METRICS
+#define FLB_EVENT_TYPE_TRACES FLB... |
DRBG: Fix the renamed functions after the EVP_MAC name reversal
[extended tests] | @@ -64,7 +64,7 @@ static int do_hmac(PROV_DRBG_HMAC *hmac, unsigned char inbyte,
*params = OSSL_PARAM_construct_octet_string(OSSL_MAC_PARAM_KEY, hmac->K,
hmac->blocklen);
- if (!EVP_MAC_set_ctx_params(ctx, params)
+ if (!EVP_MAC_CTX_set_params(ctx, params)
|| !EVP_MAC_init(ctx)
/* K = HMAC(K, V || inbyte || [in1] || [i... |
Correct hyperlink syntax | @@ -603,7 +603,7 @@ current ones.
### Strengthen default algorithm selection for X.509
-This is described in the section (Strengthen default algorithm selection for X.509 and TLS)[strengthen-default-algorithm-selection-for-x.509-and-tls].
+This is described in the section [Strengthen default algorithm selection for X.5... |
input_chunk: honor 'down' state of a forced 'up' chunk | @@ -567,7 +567,7 @@ int flb_input_chunk_destroy(struct flb_input_chunk *ic, int del)
/* Return or create an available chunk to write data */
static struct flb_input_chunk *input_chunk_get(const char *tag, int tag_len,
struct flb_input_instance *in,
- size_t chunk_size)
+ size_t chunk_size, int *set_down)
{
int id;
int ... |
Removed ForDriver prefix | @@ -230,7 +230,7 @@ void ksceKernelCpuIcacheAndL2WritebackInvalidateRange(const void *ptr, SceSize l
*
* @param[in] lock Spinlock to acquire
*/
-void ksceKernelSpinlockLowLockForDriver(SceKernelSpinlock *lock);
+void ksceKernelSpinlockLowLock(SceKernelSpinlock *lock);
/**
* @brief Attempt to acquire a spinlock
@@ -240,... |
net/netmgr: fix logging value in lwip func ioctl
fix logging value in lwip func ioctl | @@ -343,7 +343,7 @@ static int lwip_func_ioctl(int s, int cmd, void *arg)
req->msg.netdb.serv_name,
req->msg.netdb.ai_hint, &res);
if (req->req_res != 0) {
- NET_LOGE(TAG, "lwip_getaddrinfo() returned with the error code: %d\n", ret);
+ NET_LOGE(TAG, "lwip_getaddrinfo() returned with the error code: %d\n", req->req_res... |
fix developerkit spiffs mount fail bug | @@ -61,8 +61,10 @@ extern void _spiffs_unlock(struct spiffs_t *fs);
#else
//gravity lite use 512k for fs
-#if defined(STM32L496xx) || defined (CONFIG_MX108)
+#if defined (CONFIG_MX108)
#define CFG_SPIFFS_PHYS_SZ (1024 * 256)
+#elif defined(STM32L496xx)
+#define CFG_SPIFFS_PHYS_SZ (1024 * 128)
#else
#define CFG_SPIFFS_P... |
sysdeps/lemon: Added get{e}gid stubs for binutils, etc. | @@ -120,6 +120,16 @@ namespace mlibc{
return -syscall(SYS_SETEUID, euid, 0, 0, 0, 0);
}
+ int sys_getgid(){
+ mlibc::infoLogger() << "mlibc: sys_getgid is a stub" << frg::endlog;
+ return 0;
+ }
+
+ int sys_getegid(){
+ mlibc::infoLogger() << "mlibc: sys_getegid is a stub" << frg::endlog;
+ return 0;
+ }
+
void sys_yie... |
testcase/kernel/pthread: tidyup
1. remove unncessary variables
2. make global vairables to static
3. remove including unnecessary header, group.h
4. add titles at each section | #include <pthread.h>
#include <errno.h>
#include <sys/types.h>
-#include "../../../../../os/kernel/group/group.h"
#include "tc_internal.h"
+/****************************************************************************
+ * Definitions
+ ****************************************************************************/
+
#def... |
remove .gitignore from packaging | @@ -57,6 +57,7 @@ cd tests
cd tests
%{__mkdir_p} %{buildroot}/home/%{testuser}/tests
cp -a * %{buildroot}/home/%{testuser}/tests
+find %{buildroot}/home/%{testuser}/tests -name .gitignore -exec rm {} \;
%clean
rm -rf $RPM_BUILD_ROOT
|
Implemented IDisposable interface | @@ -31,7 +31,7 @@ namespace CatBoostNet
/// If you need to implement a custom model code, use <see cref="CatBoostModelEvaluator"/>
/// as the basic building block.
/// </summary>
- public class CatBoostModel : ITransformer
+ public class CatBoostModel : ITransformer, IDisposable
{
private CatBoostModelEvaluator Evaluat... |
Use a hardcoded 1k rather than the unrelated stdio.h provided BUFSIZ | @@ -120,8 +120,8 @@ h2o_compress_context_t *h2o_compress_brotli_open(h2o_mem_pool_t *pool, int quali
self->buf_capacity = estimated_content_length;
if (self->buf_capacity > 65536)
self->buf_capacity = 65536;
- if (self->buf_capacity < BUFSIZ)
- self->buf_capacity = BUFSIZ;
+ if (self->buf_capacity < 1024)
+ self->buf_c... |
kernel/messaging : Fix copy size and add '\0' to the end of string
Fix string copy size and add '\0' to the end of string array for security issue. | @@ -217,7 +217,8 @@ int messaging_save_receiver(char *port_name, pid_t recv_pid, int recv_prio)
}
/* Fill the port node information except sender_pid. */
- strncpy(port_node->port_name, port_name, strlen(port_name) + 1);
+ strncpy(port_node->port_name, port_name, MSG_MAX_PORT_NAME - 1);
+ port_node->port_name[MSG_MAX_P... |
OcAppleCompatLib: Drop memory map size warning
On some firmwares, namely MP5,1 memory map is very large (8880 bytes),
but XNU compatible. Printing this will make ExitBootServices fail. | @@ -491,10 +491,6 @@ OcGetMemoryMap (
// during hibernate wake to be able to iterate memory map.
//
BootCompat->ServiceState.MemoryMapDescriptorSize = *DescriptorSize;
-
- if (*MemoryMapSize > EFI_PAGE_SIZE) {
- DEBUG ((DEBUG_INFO, "OCABC: Memory map exceeds 4K - %u, booting may fail\n", (UINT32) *MemoryMapSize));
- }
... |
Add q_len file. | @@ -369,6 +369,15 @@ enable_usb_printer(
cupsFilePrintf(fp, "%s\n", printer->device_id);
cupsFileClose(fp);
+ snprintf(filename, sizeof(filename), "%s/functions/printer.g_printer0/q_len", gadget_dir);
+ if ((fp = cupsFileOpen(filename, "w")) == NULL)
+ {
+ papplLogPrinter(printer, PAPPL_LOGLEVEL_ERROR, "Unable to creat... |
Make 'tests' depend on a generated 'providers/fipsmodule.cnf'
providers/fipsmodule.cnf is generated using 'openssl fipsinstall' with
the openssl program in the build directory.
Fixes | @@ -142,6 +142,16 @@ IF[{- !$disabled{fips} -}]
# statements, the final build file will not have a trace of it.
MODULES{fips}=$FIPSGOAL
LIBS{noinst}=$LIBFIPS
+
+ # For tests that try to use the FIPS module, we need to make a local fips
+ # module installation. We have the output go to standard output, because
+ # the g... |
Update Drone conf | @@ -25,22 +25,13 @@ pipeline:
event: tag
notify:
image: drillster/drone-email
- from : noreply@github.com
+ from : noreply@datafari.com
skip_verify: true
when:
status: [ success, failure ]
secrets: [ email_username, email_password, email_port, email_host, email_recipients ]
- rancher:
- image: peloton/drone-rancher
- u... |
Adds pthread.h include in bunlde_archive.c to try to remove compile error in travis for mac osx | #include <string.h>
#include <time.h>
#include <sys/stat.h>
+
+#ifdef __APPLE__
+//FIXME: compiling using travix and max osx is giving compile error for unknown type name '__darwin_pthread_mutex_t'
+//including pthread.h to remove compile error
+#include <pthread.h>
+#endif
+
#include <dirent.h>
#include <unistd.h>
|
py/objtype: Keep function type not subclassable.
We use a heuristic where types without a constructor can't be subclassed,
while with - can. As bytecode function type now can have a costructor,
prohibit subclassing it explicitly, to adhere to CPython behavior (and
keep existing tests happy). | @@ -1146,8 +1146,11 @@ mp_obj_t mp_obj_new_type(qstr name, mp_obj_t bases_tuple, mp_obj_t locals_dict)
mp_raise_TypeError(NULL);
}
mp_obj_type_t *t = MP_OBJ_TO_PTR(bases_items[i]);
- // TODO: Verify with CPy, tested on function type
- if (t->make_new == NULL) {
+ // CPython raises this exception if a base type lacks sp... |
Remove github CNAME file. | @@ -179,7 +179,6 @@ eval
executeTest("cp ${strDocHtml}/* ${strDeployPath}");
executeTest("cp ${strDocPath}/../README.md ${strDeployPath}");
executeTest("cp ${strDocPath}/../LICENSE ${strDeployPath}");
- executeTest("echo 'pgbackrest.org' > ${strDeployPath}/CNAME");
}
# Update permissions
|
viostor: Remove all uses of virtio_set_queue_event_suppression()
The function has no effect and will be removed. | @@ -534,9 +534,7 @@ VirtIoPassiveInitializeRoutine (
static BOOLEAN InitializeVirtualQueues(PADAPTER_EXTENSION adaptExt)
{
- ULONG index;
NTSTATUS status;
- BOOLEAN useEventIndex = CHECKBIT(adaptExt->features, VIRTIO_RING_F_EVENT_IDX);
ULONG numQueues = adaptExt->num_queues;
RhelDbgPrint(TRACE_LEVEL_FATAL, ("Initialize... |
add iperf to ya tool | "bpftrace": {
"description": "High-level tracing language for Linux eBPF"
},
+ "iperf": {
+ "description": "network load tester"
+ },
"lkvm": {
"description": "kvmtool is a userland tool for creating and controlling KVM guests"
},
}
]
},
+ "iperf": {
+ "tools": {
+ "iperf": {
+ "bottle": "iperf",
+ "executable": "iperf... |
pool-group-hook: cleaner, more standard thread id
Also removes lingering line of debug code. | --
::
|_ =bowl:gall
-++ five 5
++ poke-spider
|= [=path =cage]
^- card
++ new-tid
|= eny=@uv
^- @t
- :((cury cat 3) dap.bowl '--' (scot %uv eny))
+ %+ scot %ta
+ :((cury cat 3) dap.bowl '_' (scot %uv eny))
::
++ start-contract-read
|= [=wire req=proto-read-request:rpc:ethereum]
|
fix a debug message that read outside of buffers | @@ -81,6 +81,7 @@ static void show_process(pid_t pid)
}
size_t nread = fread(cmdline, 1, sizeof(cmdline), f);
fclose(f);
+ nread--; // skip trailing nul
for (size_t i = 0; i < nread; i++) {
if (cmdline[i] == '\0') {
cmdline[i] = ' ';
|
sse3: add WASM implementation of simde_mm_move{l,h}dup_ps,mm_movedup_pd | @@ -409,6 +409,8 @@ simde_mm_movedup_pd (simde__m128d a) {
float64_t a0 = vgetq_lane_f64(a_.neon_f64, 0);
simde_float64 data[2] = { a0, a0 };
r_.neon_f64 = vld1q_f64(data);
+ #elif defined(SIMDE_WASM_SIMD128_NATIVE)
+ r_.wasm_v128 = wasm_v64x2_shuffle(a_.wasm_v128, a_.wasm_v128, 0, 0);
#else
r_.f64[0] = a_.f64[0];
r_.f... |
Move Slotinfo values into Images struct
So that this can be stored in its own structure, make it own the slot
info (which is only two usize values). | @@ -206,8 +206,8 @@ impl RunStatus {
// upgraded to
let mut bad_flash = flash.clone();
let bad_slot1_image = Images {
- slot0: &slot0,
- slot1: &slot1,
+ slot0: slot0.clone(),
+ slot1: slot1.clone(),
primary: install_image(&mut bad_flash, slot0_base, 32784, false),
upgrade: install_image(&mut bad_flash, slot1_base, 419... |
Keep handshake key forever on server side. | @@ -1354,8 +1354,11 @@ int picoquic_incoming_client_handshake(
}
}
}
- else if (cnx->cnx_state < picoquic_state_ready) {
- /* Require an acknowledgement if the packet contains ackable frames */
+ else if (cnx->cnx_state <= picoquic_state_ready) {
+ /* Because the client is never guaranteed to discard handshake keys,
+ ... |
Update SolverOptions double pointer. | @@ -40,7 +40,7 @@ void siconos_io(Archive& ar, SolverOptions&v, unsigned int version)
{
v.iparam = (int *) malloc(v.iSize * sizeof(int));
v.dparam = (double *) malloc(v.dSize * sizeof(double));
- v.internalSolvers = (SolverOptions *) malloc(v.numberOfInternalSolvers * sizeof(SolverOptions));
+ v.internalSolvers = (Solv... |
Remove 'usz_clamp()', no longer needed | @@ -90,6 +90,7 @@ ORCA_PURE static bool oper_has_neighboring_bang(Glyph const* gbuf, Usz h, Usz w,
return false;
}
+// Returns UINT8_MAX if not a valid note.
static U8 midi_note_number_of(Glyph g) {
switch (g) {
case 'C':
@@ -155,15 +156,6 @@ static void oper_poke_and_stun(Glyph* restrict gbuffer, Mark* restrict mbuffe... |
hv:fix reference to uninitialized variable in vmsi_remap()
'info.pmsi_addr' may be written to physicall device's
PCI configuration field without initialization when
'enable' is false in 'vmsi_remap()'.
this patch is to fix above issues, 'PCIR_MSI_ADDR'
and 'PCIR_MSI_ADDR_HIGH' only be programmed when
'enable' is true. | @@ -78,17 +78,20 @@ static int32_t vmsi_remap(const struct pci_vdev *vdev, bool enable)
ret = ptirq_msix_remap(vm, vdev->bdf.value, pbdf.value, 0U, &info);
if (ret == 0) {
/* Update MSI Capability structure to physical device */
- pci_pdev_write_cfg(pbdf, capoff + PCIR_MSI_ADDR, 0x4U, (uint32_t)info.pmsi_addr.full);
if... |
Fix focus ring on html select element | @@ -22,7 +22,7 @@ const GlobalStyle = createGlobalStyle`
z-index: 10000;
}
- .js-focus-visible :focus:not(.focus-visible) {
+ .js-focus-visible :focus:not(.focus-visible):not(select) {
outline: none;
box-shadow: none !important;
}
|
convert listpatterns to meta-packages | @@ -5,29 +5,13 @@ rm -f ${logfile}.*
echo ++++ search and log OpenHPC patterns
-if [ -e /etc/redhat-release ];then
- for pattern in `yum grouplist | grep -e "ohpc-" | sort`; do
- echo "parsing $pattern"
- info=`yum groupinfo $pattern | grep Description: | sed s/Description://`
+for meta_package in `rpm -qa | grep -e "o... |
pe_vdm_request_run: Refactor NAK/BUSY handling
Eliminate a redundant layer of checks.
TEST=make buildall
BRANCH=none | @@ -4923,14 +4923,10 @@ static void pe_vdm_request_run(int port)
if (PD_VDO_CMDT(payload[0]) == CMDT_RSP_ACK) {
set_state_pe(port, PE_VDM_ACKED);
return;
- } else if (PD_VDO_CMDT(payload[0]) == CMDT_RSP_NAK ||
- PD_VDO_CMDT(payload[0]) == CMDT_RSP_BUSY) {
- if (PD_VDO_CMDT(payload[0]) == CMDT_RSP_NAK)
- PE_SET_FLAG(por... |
usb_host: Don't build CDC host driver for unsupported targets | -idf_component_register(SRCS "cdc_acm_host.c"
- INCLUDE_DIRS "include"
- REQUIRES usb)
+set(srcs)
+set(include)
+# As CONFIG_USB_OTG_SUPPORTED comes from Kconfig, it is not evaluated yet
+# when components are being registered.
+set(require usb)
+
+if(CONFIG_USB_OTG_SUPPORTED)
+ list(APPEND srcs "cdc_acm_host.c")
+ lis... |
io: always set file descriptor number on event structure | @@ -95,6 +95,7 @@ FLB_INLINE int flb_io_net_connect(struct flb_upstream_conn *u_conn,
return -1;
}
u_conn->fd = fd;
+ u_conn->event.fd = fd;
/*
* If we use co-routines flushing method, make sure socket
@@ -124,7 +125,7 @@ FLB_INLINE int flb_io_net_connect(struct flb_upstream_conn *u_conn,
return -1;
}
- MK_EVENT_NEW(&u... |
rp2/machine_adc: Only initialise the ADC periph if not already enabled.
Otherwise it resets the ADC peripheral each time a new ADC object is
constructed, which can reset other state that has already been set up.
See issue | @@ -78,7 +78,10 @@ STATIC mp_obj_t machine_adc_make_new(const mp_obj_type_t *type, size_t n_args, s
}
}
+ // Initialise the ADC peripheral if it's not already running.
+ if (!(adc_hw->cs & ADC_CS_EN_BITS)) {
adc_init();
+ }
if (ADC_IS_VALID_GPIO(channel)) {
// Configure the GPIO pin in ADC mode.
|
fix compilation warning on init
The pid variable is only used when TASH or User Workqueue is enabled. | @@ -82,7 +82,9 @@ int main(int argc, FAR char *argv[])
int preapp_start(int argc, char *argv[])
#endif
{
+#if defined(CONFIG_LIB_USRWORK) || defined(CONFIG_TASH)
int pid;
+#endif
#ifdef CONFIG_BUILD_PROTECTED
#if !defined(CONFIG_DISABLE_MOUNTPOINT) && defined(CONFIG_FS_PROCFS)
@@ -122,6 +124,10 @@ int preapp_start(int ... |
Update `main.m` | @@ -40,7 +40,7 @@ NSBundle* mainBundle() {
void BandHandle(NSString *fkTitle, NSArray *nameArray, NSArray *keyArray, bool staticlib) {
- if (!staticlib) {
+ if (staticlib) {
void *handle = dlopen(NULL, RTLD_LAZY);
for( int i=0; i<nameArray.count; i++){
NSString *fkey = [keyArray objectAtIndex:i];
@@ -89,7 +89,7 @@ void... |
[BSP] add -nostartfiles in mini2440 bsp | @@ -47,7 +47,7 @@ if PLATFORM == 'gcc':
DEVICE = ' -mcpu=arm920t'
CFLAGS = DEVICE
AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp' + ' -DTEXT_BASE=' + TextBase
- LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread_mini2440.map,-cref,-u,_start -T mini2440_ram.ld' + ' -Ttext ' + TextBase
+ LFLAGS = DEVICE + ' -Wl,--gc-... |
Fix usage string for aergosvr init
and change votestat default count to 23 | @@ -23,7 +23,7 @@ var revert bool
func init() {
rootCmd.AddCommand(voteStatCmd)
voteStatCmd.Flags().StringVar(&address, "address", "", "address of account")
- voteStatCmd.Flags().Uint64Var(&number, "count", 1, "the number of elected")
+ voteStatCmd.Flags().Uint64Var(&number, "count", 23, "the number of elected (default... |
VERSION bump version to 0.10.14 | @@ -28,7 +28,7 @@ set(CMAKE_C_FLAGS_DEBUG "-g -O0")
# set version
set(LIBNETCONF2_MAJOR_VERSION 0)
set(LIBNETCONF2_MINOR_VERSION 10)
-set(LIBNETCONF2_MICRO_VERSION 13)
+set(LIBNETCONF2_MICRO_VERSION 14)
set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION}.${LIBNETCONF2_MICRO_VERSION})
set(L... |
doc: prettify OPAL_PCI_SET_PELTV | +.. _OPAL_PCI_SET_PELTV:
+
OPAL_PCI_SET_PELTV
==================
-::
+
+.. code-block:: c
#define OPAL_PCI_SET_PELTV 32
+ int64_t opal_pci_set_peltv(uint64_t phb_id, uint32_t parent_pe,
+ uint32_t child_pe, uint8_t state);
+
**WARNING:** This documentation comes from an old source and is possibly not up
to date with OP... |
test-suite: add max runlimit of 20s for charliecloud image execution | @@ -42,7 +42,7 @@ echo "-------------------------------------------------------"
run ls -l $image_dir/img
assert_success
- run ch-run $image_dir/img -- cat /etc/os-release
+ run timeout 20s ch-run $image_dir/img -- cat /etc/os-release
assert_success
}
@@ -51,7 +51,7 @@ echo "--------------------------------------------... |
MSR: Save data for ReadMe test below `/tests` | @@ -9,33 +9,33 @@ Snippets are shell commands inside a syntax block with additional checks (such a
Let us look at a simple example first:
```sh
-kdb set /examples/markdown/napalm death
-#> Using name user/examples/markdown/napalm
-#> Create a new key user/examples/markdown/napalm with string "death"
+kdb set /tests/mar... |
don't allow allocations larger than PTRDIFF_MAX, issue | @@ -741,7 +741,7 @@ void* _mi_malloc_generic(mi_heap_t* heap, size_t size) mi_attr_noexcept
// huge allocation?
mi_page_t* page;
if (mi_unlikely(size > MI_LARGE_OBJ_SIZE_MAX)) {
- if (mi_unlikely(size >= (SIZE_MAX - MI_MAX_ALIGN_SIZE))) {
+ if (mi_unlikely(size > PTRDIFF_MAX)) { // we don't allocate more than PTRDIFF_M... |
MicroPython: Add slots to pimoroni.py | @@ -5,6 +5,10 @@ from machine import Pin, PWM, ADC
BREAKOUT_GARDEN_I2C_PINS = {"sda": 4, "scl": 5}
PICO_EXPLORER_I2C_PINS = {"sda": 20, "scl": 21}
+BREAKOUT_GARDEN_SPI_SLOT_FRONT = 0
+BREAKOUT_GARDEN_SPI_SLOT_BACK = 1
+PICO_EXPLORER_SPI_ONBOARD = 2
+
class Analog:
def __init__(self, pin, amplifier_gain=1, resistor=0):
|
king: fix test (daaad) | @@ -70,7 +70,7 @@ treeRTMug inp = do
non <- cueBSExn byt
tee <- fromNounExn non
mug <- evaluate $ mug $ toNoun $ treeTestsIdentity tee
- pure $ Text.Lazy.Encoding.encodeUtf8 $ tlshow (mug :: Natural)
+ pure $ Text.Lazy.Encoding.encodeUtf8 $ tlshow mug
goldenPill
:: TestName
|
mount: fix memleak with empty positions | @@ -301,13 +301,18 @@ int elektraMountGlobalsLoadPlugin (Plugin ** plugin, KeySet * referencePlugins,
ELEKTRA_NOT_NULL (config);
// config holds a newly allocated KeySet
const char * pluginName = keyString (cur);
- if (!pluginName || pluginName[0] == '\0') return 0;
+ if (!pluginName || pluginName[0] == '\0')
+ {
+ ksD... |
Better check for ecn_accounting | @@ -1848,7 +1848,7 @@ int picoquic_find_incoming_path(picoquic_cnx_t* cnx, picoquic_packet_header* ph,
void picoquic_ecn_accounting(picoquic_cnx_t* cnx,
unsigned char received_ecn, picoquic_packet_context_enum pc, picoquic_local_cnxid_t * l_cid)
{
- picoquic_ack_context_t* ack_ctx = (pc == picoquic_packet_context_appli... |
log: Check for ISR context and use proper API to get Tick Count | @@ -99,7 +99,8 @@ uint32_t esp_log_timestamp(void)
if (base == 0 && xPortGetCoreID() == 0) {
base = esp_log_early_timestamp();
}
- return base + xTaskGetTickCount() * (1000 / configTICK_RATE_HZ);
+ TickType_t tick_count = xPortInIsrContext() ? xTaskGetTickCountFromISR() : xTaskGetTickCount();
+ return base + tick_count... |
Fix STA disabled compile error | @@ -333,13 +333,13 @@ espi_reset_everything(uint8_t forced) {
/* Step 1: Close all connections in memory */
reset_connections(forced);
- esp.m.sta.has_ip = 0;
#if ESP_CFG_MODE_STATION
+ esp.m.sta.has_ip = 0;
if (esp.m.sta.is_connected) {
espi_send_cb(ESP_EVT_WIFI_DISCONNECTED);
}
-#endif /* ESP_CFG_MODE_STATION */
esp.... |
fix jael +vent-pass recursion | =+ yez=~(tap in yen)
|- ^+ ..vent-pass
?~ yez ..vent-pass
+ =. ..vent-pass
=* d i.yez
?> ?=([[%a @ @ *] *] d)
=+ our=(slav %p i.t.i.d)
/(scot %p our)/vent-result
^- note
[%a %want who /j/(scot %p our)/vent-result %vent-result res]
+ $(yez t.yez)
::
++ extract-snap :: extract rewind point
^- snapshot
|
Disable SC1004 and SC2016 | @@ -82,6 +82,7 @@ find "${LINUX_X86_64}" -name '*.nupkg' -print0 | \
# Fix file permissions set by `dotnet pack'.
find "${NUPKG_TMP_DIR}" -type f -exec chmod 644 -- {} +
# Add 'lib' prefix to the native library of the Linux/OSX .so file.
+# shellcheck disable=SC1004,SC2016
find "${SCRIPT_DIR}/nuget/runtimes/" \
-name '... |
board/crota/board.h: Format with clang-format
BRANCH=none
TEST=none | @@ -222,18 +222,9 @@ enum temp_sensor_id {
TEMP_SENSOR_COUNT
};
-enum sensor_id {
- LID_ACCEL = 0,
- BASE_ACCEL,
- BASE_GYRO,
- SENSOR_COUNT
-};
+enum sensor_id { LID_ACCEL = 0, BASE_ACCEL, BASE_GYRO, SENSOR_COUNT };
-enum ioex_port {
- IOEX_C0_NCT38XX = 0,
- IOEX_C1_NCT38XX,
- IOEX_PORT_COUNT
-};
+enum ioex_port { IOE... |
tests/thread: Make stress_create.py test run on esp32.
The esp32 port needs to be idle for finished threads and their resources to
be freed up. | # stress test for creating many threads
try:
- import utime as time
+ import utime
+
+ sleep_ms = utime.sleep_ms
except ImportError:
import time
+
+ sleep_ms = lambda t: time.sleep(t / 1000)
import _thread
@@ -16,9 +20,11 @@ while thread_num < 500:
try:
_thread.start_new_thread(thread_entry, (thread_num,))
thread_num +... |
try merge bugfix into contrib/requests from
Pull-request for branch users/faustkun/VHSUP-8556 | @@ -260,6 +260,30 @@ class HTTPConnectionPool(ConnectionPool, RequestMethods):
if conn:
conn.close()
+
+ def _cleanup_conn(self, conn, replace_conn=False):
+ """
+ Close an invalidated connection and keep the pool replenished if
+ requested. Returns ``None``.
+
+ :param conn:
+ Connection object for the current host an... |
Set `bundler-cache: true' | @@ -563,6 +563,7 @@ jobs:
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
+ bundler-cache: true
- name: Download Packages
uses: actions/download-artifact@v2
@@ -584,5 +585,4 @@ jobs:
- name: Run Tests
run: |
cd $GITHUB_WORKSPACE/test/ruby
- bundle install
ruby tests.rb
|
modify contents of libraries's README
modify legacy explanations and add a method to add external libraries | -lib/ README File
-================
+build/output/libraries/ README File
+===================================
-This directory is reserved for libraries generated during the NuttX build process
+This directory is reserved for libraries generated during the TinyAra build process
+How to add external libraries
+==========... |
Add license statement. | +/*-
+ * Copyright (c) 2019 -2020 Felix Weinrank
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, t... |
[build/plugins] Enable PEERDIR variable substitution in docs | @@ -72,13 +72,10 @@ def generate_dart(unit, as_lib=False):
'DOCSVARS': macro_calls_to_dict(unit, extract_macro_calls(unit, 'DOCSVARS')),
'DOCSINCLUDESOURCES': includes,
'DOCSLIB': as_lib,
- 'PEERDIRS': [d[3:] for d in unit.get_module_dirs('PEERDIRS')],
+ 'PEERDIRS': '${PEERDIR}',
'DOCSBUILDER': build_tool,
}
- if build... |
Remove test/warning about CMake version < 3.11
The top-level CMakeLists.txt already requires 3.12, so the test is
unnecessary and confusing. | @@ -260,9 +260,6 @@ find_package(Imath QUIET)
set(CMAKE_IGNORE_PATH)
if(NOT TARGET Imath::Imath AND NOT Imath_FOUND)
- if (${CMAKE_VERSION} VERSION_LESS "3.11.0")
- message(FATAL_ERROR "CMake 3.11 or newer is required for FetchContent, you must manually install Imath if you are using an earlier version of CMake")
- end... |
[mod_magnet] lighty.c.stat high precision time
lighty.c.stat returns high precision timestamps, when available | @@ -573,12 +573,40 @@ static int magnet_stat_field(lua_State *L) {
lua_pushinteger(L, TIME64_CAST(sce->st.st_atime));
return 1;
}
+ if (0 == strcmp(k.ptr, "st_atim")) {
+ lua_pushinteger(L, TIME64_CAST(sce->st.st_atime));
+ #ifdef st_atime /* high-precision timestamp if available */
+ #if defined(__APPLE__) && defined(... |
Fix metrics_c valgrind leak | @@ -479,9 +479,11 @@ TEST_P(metrics_afu_c_p, test_afc_metric_01) {
*/
TEST_P(metrics_afu_c_p, test_afc_metric_02) {
uint64_t num_metrics = 0;
+ auto handle = (struct _fpga_handle*)handle_;
EXPECT_NE(FPGA_OK, xfpga_fpgaGetNumMetrics(handle_, &num_metrics));
printf("num_metrics =%ld \n", num_metrics);
+ EXPECT_EQ(FPGA_OK... |
fix Klockwork issue in createnamespace.
Wrong index. | @@ -6386,7 +6386,6 @@ Finish:
BOOLEAN FailFlag = FALSE;
CHAR16 *pTempName16 = NULL;
DIMM_REGION *pDimmRegion = NULL;
- INT32 DimmForBlockNSIndex = -1;
UINT64 ISAvailableCapacity = 0;
BOOLEAN CapacitySpecified = FALSE;
UINT64 RequestedCapacity = 0;
@@ -6644,7 +6643,7 @@ Update NAMESPACE_INDEX with NAMESPACE_LABEL(s)
if ... |
fix RX1 and RX2 reset in diversity mode | @@ -657,6 +657,7 @@ int main(int argc, char *argv[])
addr_ep6.sin_port = addr_from[i].sin_port;
enable_thread = 1;
active_thread = 1;
+ rx_sync_data = 0;
/* reset all los */
*lo_rst &= ~15;
*lo_rst |= 15;
@@ -771,35 +772,35 @@ void process_ep2(uint8_t *frame)
case 5:
/* set rx phase increment */
freq = ntohl(*(uint32_t... |
Removed old ip, updated new one | 120.79.95.7:12563
139.99.101.187:13655
52.191.198.174:13655
-66.11.125.30:888
45.77.35.21:8900
148.251.139.197:16800
139.99.124.121:8900
115.159.64.173:13654
81.174.251.23:55555
109.196.45.218:3355
+142.44.143.234:888
|
asurada_scp: enable basic IPI
BRANCH=none
TEST=make BOARD=asurada_scp | #define CONFIG_IPC_SHARED_OBJ_ADDR \
(ICACHE_BASE - \
(CONFIG_IPC_SHARED_OBJ_BUF_SIZE + 2 * 4 /* int32_t */) * 2)
+#define CONFIG_IPI
+
+#define SCP_IPI_INIT 0
+#define SCP_IPI_VDEC_H264 1
+#define SCP_IPI_VDEC_VP8 2
+#define SCP_IPI_VDEC_VP9 3
+#define SCP_IPI_VENC_H264 4
+#define SCP_IPI_VENC_VP8 5
+#define SCP_IPI_M... |
Read-repair enabled messages should update read/write metrics correctly
The rewritten messages all got tracked as write messages since we
didn't adopt the 'is_read' parameter from the original 'msg'
object.
Confirmed that reads/writes are correct with this patch. | @@ -934,7 +934,10 @@ rstatus_t redis_rewrite_query_with_timestamp_md(struct msg *orig_msg, struct con
update_total_num_tokens(&orig_msg->msg_info);
ret_status = finalize_repair_msg(ctx, orig_msg->owner, &orig_msg->msg_info, new_msg_ptr);
+
if (ret_status != DN_OK) goto error;
+ (*new_msg_ptr)->is_read = orig_msg->is_re... |
Added test cases for readable compressed files | @@ -49,6 +49,21 @@ namespace ebi
}
}
+ TEST_CASE("Compressed files that do not throw std::invalid_argument", "[compressed]")
+ {
+ auto folder = boost::filesystem::path("test/input_files/v4.3/compressed_files/readable");
+ std::vector<boost::filesystem::path> v;
+ copy(boost::filesystem::directory_iterator(folder), boo... |
OcResetSystemLib: Perform cold reset when shitdown fails
Fixes issues with DUET shutdown. | @@ -57,7 +57,10 @@ ResetShutdown (
0,
NULL
);
- CpuDeadLoop ();
+ //
+ // Perform cold reset when shutdown fails (e.g. DUET).
+ //
+ ResetCold ();
}
VOID
@@ -77,7 +80,6 @@ InternalResetPlatformSpecific (
ResetCold ();
}
-
VOID
EFIAPI
ResetPlatformSpecific (
|
BugID:21247580:[WhiteScan] Avoid constant expression result | @@ -89,7 +89,8 @@ static size_t prv_encodeInt(int64_t data,
length = 4;
utils_copyValue(data_buffer, &value, length);
}
- else if (data >= INT64_MIN && data <= INT64_MAX)
+ /* Data is in the range (INT64_MIN, INT64_MAX) */
+ else
{
length = 8;
utils_copyValue(data_buffer, &data, length);
|
Fix incorrect test title. | @@ -787,7 +787,7 @@ testRun(void)
" '18072658121562454734'");
// -------------------------------------------------------------------------------------------------------------------------
- TEST_TITLE("pg version does not match archive.info");
+ TEST_TITLE("pg system id does not match archive.info");
HRN_STORAGE_PUT(
st... |
Fix path for blemesh app | @@ -9,7 +9,7 @@ no need for configuring public address.
::
newt target create blemesh
- newt target set blemesh app=@apache-mynewt-core/apps/blemesh
+ newt target set blemesh app=@apache-mynewt-nimble/apps/blemesh
newt target set blemesh bsp=@apache-mynewt-core/hw/bsp/nrf52840pdk
newt target set blemesh build_profile=o... |
Optimized VmaBlockMetadata_Buddy - using VmaPoolAllocator to allocate nodes | @@ -5585,6 +5585,8 @@ private:
VkDeviceSize m_UsableSize;
uint32_t m_LevelCount;
+ VmaPoolAllocator<Node> m_NodeAllocator;
+
Node* m_Root;
struct {
Node* front;
@@ -10651,6 +10653,8 @@ void VmaBlockMetadata_Linear::CleanupAfterFree()
VmaBlockMetadata_Buddy::VmaBlockMetadata_Buddy(const VkAllocationCallbacks* pAllocatio... |
Use HSE/HSI/CSI state defined in board config file. | @@ -214,13 +214,13 @@ void SystemClock_Config(void)
/* Enable HSE Oscillator and activate PLL with HSE as source */
#if defined(OMV_OSC_HSE_STATE)
- RCC_OscInitStruct.HSEState = RCC_HSE_ON;
+ RCC_OscInitStruct.HSEState = OMV_OSC_HSE_STATE;
#endif
#if defined(OMV_OSC_HSI_STATE)
- RCC_OscInitStruct.HSIState = RCC_HSI_OFF... |
include root_cbf cost | @@ -2016,10 +2016,15 @@ void kvz_cu_cost_inter_rd2(encoder_state_t * const state,
false);
double bits = 0;
+ int cbf = cbf_is_set_any(cur_cu->cbf, depth);
+ *inter_bitcost += CTX_ENTROPY_FBITS(&state->cabac.ctx.cu_qt_root_cbf_model, !!cbf);
+
+ if(cbf) {
*inter_cost = kvz_cu_rd_cost_luma(state, SUB_SCU(x), SUB_SCU(y), ... |
chat-hook: fix poke-import issue | ^- (quip card _state)
=/ sty=state-10
:* %10
- (remake-map ;;((tree [path ship]) -.arc))
- ;;(? +<.arc)
- (remake-map ;;((tree [path ?]) +>.arc))
+ (remake-map ;;((tree [path ship]) +<.arc))
+ ;;(? +<-.arc)
+ (remake-map ;;((tree [path ?]) +>+.arc))
==
:_ sty
%+ turn ~(tap by synced.sty)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.