message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
NSH: Add conditions so that ifconfig and ifup will not be disabled if we are using only PF_IEEE802154 | */
#if !defined(CONFIG_NET_ETHERNET) && !defined(CONFIG_NET_6LOWPAN) && \
- !defined(CONFIG_NET_LOOPBACK) && !defined(CONFIG_NET_SLIP) && \
- !defined(CONFIG_NET_TUN)
+ !defined(CONFIG_NET_IEEE802154) && !defined(CONFIG_NET_LOOPBACK) && \
+ !defined(CONFIG_NET_SLIP) && !defined(CONFIG_NET_TUN)
/* No link layer protocol... |
Better check for window | @@ -8,9 +8,11 @@ import "../utils/font-awesome";
const searchIndices = [{ name: `Pages`, title: `Pages` }];
const DARK_MODE_KEY = 'DARK_MODE';
+// Check if window is defined (so if in the browser or in node.js).
+const isBrowser = typeof window !== 'undefined';
export default function DocsNav() {
- const isDarkMode = w... |
nimble/ll: Minor fix for missing static | @@ -526,7 +526,7 @@ ble_ll_ctrl_proc_unk_rsp(struct ble_ll_conn_sm *connsm, uint8_t *dptr, uint8_t *
*
* @param arg Pointer to connection state machine.
*/
-void
+static void
ble_ll_ctrl_proc_rsp_timer_cb(struct ble_npl_event *ev)
{
/* Control procedure has timed out. Kill the connection */
@@ -889,7 +889,7 @@ ble_ll_c... |
Corrected reporting configuration for other thermostats | @@ -1046,7 +1046,7 @@ bool DeRestPluginPrivate::sendConfigureReportingRequest(BindingTask &bt)
rq6.reportableChange24bit = 1; // recommended value
rq6.manufacturerCode = VENDOR_JENNIC;
- return sendConfigureReportingRequest(bt, {rq, rq2, rq3, rq4}) ||
+ return sendConfigureReportingRequest(bt, {rq, rq2, rq3, rq4}) || /... |
Build the C# binding for Android ARM. | @@ -23,6 +23,20 @@ docker run \
--volume "${VOLUME}:${STORAGE}" \
${IMAGE_NAME} /bin/bash -c \
"source ~/.bashrc && \
+ mkdir -p ${STORAGE}/android-arm && \
+ chown $(id -u):$(id -g) ${STORAGE}/android-arm && \
+ mkdir android-arm && pushd android-arm && \
+ cmake .. \
+ -DCMAKE_TOOLCHAIN_FILE=/opt/android/android-ndk-... |
Add -a to gpstop in walrep test.
With commit gpstop -m now behaves
similar to without -m, hence add -a to tests so that it doesn't prompt. | @@ -204,7 +204,7 @@ class neg_test(StandbyRunMixin, MPPTestCase):
os.remove(os.path.join(orig_master.datadir ,'wal_rcv.pid'))
logger.info('Stop the original master...')
- cmd = Command("gpstop", "gpstop -im")
+ cmd = Command("gpstop", "gpstop -aim")
cmd.run()
self.assertEqual(cmd.get_results().rc, 0, str(cmd))
|
websocket_client: fix URI parsing to include also query part in websocket connection path
closes | @@ -382,9 +382,16 @@ esp_err_t esp_websocket_client_set_uri(esp_websocket_client_handle_t client, con
}
- if (puri.field_data[UF_PATH].len) {
+ if (puri.field_data[UF_PATH].len || puri.field_data[UF_QUERY].len) {
free(client->config->path);
+ if (puri.field_data[UF_QUERY].len == 0) {
asprintf(&client->config->path, "%.... |
replace general rolling heap with mcache | @@ -141,12 +141,13 @@ static void read_kernel_syms(heap h, heap virtual, heap pages)
}
}
-static void init_service_new_stack(heap pages, heap physical, heap backed, heap backed_2M, heap virtual)
+static void __attribute__((noinline))
+init_service_new_stack(heap bootstrap, heap pages, heap physical, heap backed, heap b... |
go back to "vbank1 is always on top" | @@ -541,12 +541,12 @@ static inline void memset4(void* dst, u32 val, u32 dwords)
static inline tic_vram* vbank0(tic_core* core)
{
- return &core->memory.ram.vram;
+ return core->state.vbank.id ? &core->state.vbank.mem : &core->memory.ram.vram;
}
static inline tic_vram* vbank1(tic_core* core)
{
- return &core->state.vba... |
Import backuped homebridge data during deconz backup import | @@ -15359,6 +15359,33 @@ bool DeRestPluginPrivate::importConfiguration()
}
}
+#ifdef Q_OS_LINUX
+ // clean up old homebridge backup files
+ QStringList filters;
+ filters << "AccessoryInfo*";
+ filters << "IdentifierCache*";
+
+ QDir appDir(path);
+ QStringList files = appDir.entryList(filters);
+
+ for (QString f : fi... |
[catboost/py] no need to explicitly close file, file is already opened with context manager | @@ -3495,7 +3495,6 @@ def execute_dist_train(cmd):
with open(hosts_path, 'w') as hosts:
hosts.write('localhost:' + str(port0) + '\n')
hosts.write('localhost:' + str(port1) + '\n')
- hosts.close()
worker0 = yatest.common.execute((CATBOOST_PATH, 'run-worker', '--node-port', str(port0), ), wait=False)
worker1 = yatest.com... |
reorganize bands and pins in misc_write | @@ -221,17 +221,17 @@ inline int lower_bound(int *array, int size, int value)
void misc_write()
{
- uint16_t code, data = 0;
- int i, freqs[20] = {1700000, 2100000, 3400000, 4100000, 6900000, 7350000, 9950000, 10200000, 13850000, 14500000, 18000000, 18250000, 20850000, 21650000, 24700000, 25150000, 27000000, 30000000, ... |
Clarify --no-display usage with v4l2 | @@ -303,7 +303,8 @@ To start scrcpy using a v4l2 sink:
```bash
scrcpy --v4l2-sink=/dev/videoN
-scrcpy --v4l2-sink=/dev/videoN -N # --no-display to disable mirroring window
+scrcpy --v4l2-sink=/dev/videoN --no-display # disable mirroring window
+scrcpy --v4l2-sink=/dev/videoN -N # short version
```
(replace `N` by the d... |
zephyr: Drop duplicate IS_BIT_SET()
This gives a warning about a duplicate definition since it is defined
in Zephyr now.
BRANCH=none
TEST=warning is gone | #define NPCX_FWCTRL_FW_SLOT 1
#define SET_BIT(reg, bit) ((reg) |= (0x1 << (bit)))
#define CLEAR_BIT(reg, bit) ((reg) &= (~(0x1 << (bit))))
+
+/* TODO(b:179900857) Clean this up too */
+#undef IS_BIT_SET
#define IS_BIT_SET(reg, bit) (((reg) >> (bit)) & (0x1))
void system_jump_to_booter(void)
|
Update documentation on new build-time requirements (Python3) | @@ -13,11 +13,13 @@ tools:
* Latest released version of LLVM & Clang
* development files for LLVM & Clang + their transitive dependencies
(e.g. libclang-dev, libllvm-dev, zlib1g-dev, libtinfo-dev...)
+ * CMake
* GNU make or ninja
+ * pkg-config
* pthread (should be installed by default)
* Optional: hwloc v1.0 or newer ... |
Remove inf file from fresh FS. | @@ -90,10 +90,6 @@ static const char fresh_main_py[] =
" time.sleep(600)\n"
;
-static const char fresh_openmv_inf[] =
-#include "genhdr/openmv_inf.h"
-;
-
static const char fresh_readme_txt[] =
"This is a Micro Python board\r\n"
"\r\n"
@@ -264,11 +260,6 @@ static void make_flash_fs()
f_write(&fp, fresh_main_py, sizeof(... |
Resolve STRSUB("<N-char string>", N, 0) will not warn "Position N is past the end of the string" | @@ -461,7 +461,7 @@ static void strsubUTF8(char *dest, const char *src, uint32_t pos, uint32_t len)
srcIndex++;
}
- if (!src[srcIndex])
+ if (!src[srcIndex] && len)
warning(WARNING_BUILTIN_ARG, "STRSUB: Position %lu is past the end of the string",
(unsigned long)pos);
|
fixes for DWA uncompress: sanity check unknown data reading, off-by-one error on max suffix string length | @@ -268,8 +268,9 @@ struct DwaCompressor::Classifier
" (truncated rule).");
{
- char suffix[Name::SIZE];
- memset (suffix, 0, Name::SIZE);
+ // maximum length of string plus one byte for terminating NULL
+ char suffix[Name::SIZE+1];
+ memset (suffix, 0, Name::SIZE+1);
Xdr::read<CharPtrIO> (ptr, std::min(size, Name::SIZ... |
Added comments on other nRF boards | @@ -134,6 +134,10 @@ static void nrf_prerun_board_config(void)
// EXTERNAL TARGET DETECTION
// - only for nRF51-DK and nRF52-DK, so far
+ // - nRF51-Dongle (discontinued) has no external target lines
+ // - nRF51822-mKIT (discontinued), no external target lines
+ // - nRF52840-DK has external/shielf SWD lines and is co... |
[kernel] avoid double free on _numericsMatrix->matrix0 | #include "ioMatrix.hpp" // for read
#include "Tools.hpp" // for toString
#include "bindings_utils.hpp" // for fill
-
+#include "NumericsMatrix.h"
using namespace Siconos;
namespace siconosBindings = boost::numeric::bindings::blas;
using std::cout;
@@ -380,7 +380,15 @@ SimpleMatrix::SimpleMatrix(const std::string &file,... |
apps/mac: avoid need for two ^D when using stdin from a terminal
Fixes | @@ -150,10 +150,11 @@ opthelp:
goto err;
}
- for (;;) {
+ while (BIO_pending(in) || !BIO_eof(in)) {
i = BIO_read(in, (char *)buf, BUFSIZE);
if (i < 0) {
BIO_printf(bio_err, "Read Error in '%s'\n", infile);
+ ERR_print_errors(bio_err);
goto err;
}
if (i == 0)
|
register wallets properly again | @@ -120,6 +120,10 @@ void RegisterWallet(CWallet* pwalletIn) {
g_signals.SetBestChain.connect(boost::bind(&CWallet::SetBestChain, pwalletIn, _1));
g_signals.Inventory.connect(boost::bind(&CWallet::Inventory, pwalletIn, _1));
g_signals.Broadcast.connect(boost::bind(&CWallet::ResendWalletTransactions, pwalletIn, _1));
+ ... |
Fix a read off the end of the input buffer
when building with OPENSSL_SMALL_FOOTPRINT defined. | @@ -174,7 +174,7 @@ void WHIRLPOOL_BitUpdate(WHIRLPOOL_CTX *c, const void *_inp, size_t bits)
goto reconsider;
} else
#endif
- if (bits >= 8) {
+ if (bits > 8) {
b = ((inp[0] << inpgap) | (inp[1] >> (8 - inpgap)));
b &= 0xff;
if (bitrem)
@@ -191,7 +191,7 @@ void WHIRLPOOL_BitUpdate(WHIRLPOOL_CTX *c, const void *_inp, s... |
Add RT_SENSOR_VENDOR_MELEXIS in sensor_cmd.c
* Add RT_SENSOR_VENDOR_MELEXIS in sensor_cmd.c
print vendor information of Melexis in the function sensor() | @@ -360,6 +360,9 @@ static void sensor(int argc, char **argv)
case RT_SENSOR_VENDOR_MAXIM:
rt_kprintf("vendor :Maxim Integrated\n");
break;
+ case RT_SENSOR_VENDOR_MELEXIS:
+ rt_kprintf("vendor :Melexis\n");
+ break;
}
rt_kprintf("model :%s\n", info.model);
switch (info.unit)
|
hostservices: Silence special wakeup assert/release logs
During `opal-prd pm-complex reset` OPAL msglog is filled
with these logs.. which are not useful for debugging. And
Hence lets silence these logs.
Cc: Vaidyanathan Srinivasan
Cc: Gautham R. Shenoy | @@ -561,7 +561,7 @@ int hservice_wakeup(uint32_t i_core, uint32_t i_mode)
cpu = find_cpu_by_pir(i_core);
if (!cpu)
return OPAL_PARAMETER;
- prlog(PR_DEBUG, "HBRT: Special wakeup assert for core 0x%x,"
+ prlog(PR_TRACE, "HBRT: Special wakeup assert for core 0x%x,"
" count=%d\n", i_core, cpu->hbrt_spec_wakeup);
if (cpu->... |
Try to use stable standard port for websocket server, fallback to random if port is used | #include "deconz/dbg_trace.h"
#include "websocket_server.h"
+#define MAX_ATTEMPS 50
+#define WS_PORT 20877
+
/*! Constructor.
*/
WebSocketServer::WebSocketServer(QObject *parent) :
@@ -12,17 +15,30 @@ WebSocketServer::WebSocketServer(QObject *parent) :
{
srv = new QWebSocketServer("deconz", QWebSocketServer::NonSecureM... |
install-config-file: Detect binary | @@ -23,6 +23,19 @@ else
exit 1
fi
+
+# different binaries are installed depending on the build options
+if command -v kdb ; then
+ binary=$(command -v kdb)
+elif command -v kdb-static ; then
+ binary=$(command -v kdb-static)
+elif command -v kdb-full ; then
+ binary=$(command -v kdb-full)
+else
+ echo "ERROR: Could not... |
recommit zzl | @@ -68,6 +68,6 @@ Blockly.Python.serial_softserial = function () {
Blockly.Python.serial_begin = function () {
Blockly.Python.definitions_['import_microbit_*'] = 'from microbit import *';
var baudrate = this.getFieldValue('baudrate');
- return "uart.init(baudrate=" + baudrate + ")\n";
+ return "uart.init(" + baudrate +... |
fix(memory leak):
free "ecPrikey" of BoatSignature() in linux-default/src/port_mbedtls/boatplatform_internal.c | @@ -431,6 +431,9 @@ BOAT_RESULT BoatSignature(BoatWalletPriKeyCtx prikeyCtx,
mbedtls_pk_free(&mbedtls_pkCtx);
if (prikeyCtx.prikey_format != BOAT_WALLET_PRIKEY_FORMAT_PKCS){
mbedtls_ecp_keypair_free(ecPrikey);
+ if(ecPrikey != NULL){
+ BoatFree(ecPrikey);
+ }
}
return result;
@@ -988,9 +991,7 @@ static BOAT_RESULT sBoa... |
tls: changed the code that gets the remote host address to pull it on
demand so it's not cached | @@ -426,8 +426,8 @@ int flb_tls_session_create(struct flb_tls *tls,
session->ptr = tls->api->session_create(tls, connection->fd);
if (session == NULL) {
- flb_error("[tls] could not create TLS session for %s:%i",
- connection->remote_host, connection->remote_port);
+ flb_error("[tls] could not create TLS session for %s... |
bootloader/rust: avoid compiler regression that increases the bin size
For now we just remove the one instance of .unwrap() that is used in
the bootloader, removing most of the bootloader size increase. | @@ -39,7 +39,12 @@ pub extern "C" fn rust_util_validate_name(cstr: CStr, max_len: size_t) -> bool {
pub extern "C" fn rust_util_uint8_to_hex(buf: Bytes, mut out: CStrMut) {
let min_len = buf.len * 2;
out.write(min_len, |out| {
- hex::encode_to_slice(&buf, out).unwrap();
+ // Avoid .unwrap() here until the following com... |
Ensure updated metrics can be sorted in the terminal output. | @@ -1812,13 +1812,13 @@ load_sort_win (WINDOW * main_win, GModule module, GSort * sort)
sort->field = SORT_BY_VISITORS;
else if (strcmp ("Data", menu->items[i].name) == 0)
sort->field = SORT_BY_DATA;
- else if (strcmp ("Bandwidth", menu->items[i].name) == 0)
+ else if (strcmp ("Tx. Amount", menu->items[i].name) == 0)
s... |
netkvm/NDIS5: Remove all uses of virtio_set_queue_event_suppression()
The function has no effect and will be removed. | @@ -1106,7 +1106,7 @@ static int PrepareReceiveBuffers(PARANDIS_ADAPTER *pContext)
static NDIS_STATUS FindNetQueues(PARANDIS_ADAPTER *pContext)
{
struct virtqueue *queues[3];
- unsigned i, nvqs = pContext->bHasControlQueue ? 3 : 2;
+ unsigned nvqs = pContext->bHasControlQueue ? 3 : 2;
NTSTATUS status;
// We work with t... |
make the denarius.daemon app run as system service | @@ -14,14 +14,11 @@ apps:
daemon:
command: bin/denariusd
plugs: [network, network-bind]
- environment:
- XDG_DATA_DIRS: $SNAP_USER_DATA:$SNAP/usr/share:$XDG_DATA_DIRS
+ daemon: forking
denarius:
command: desktop-launch $SNAP/bin/Denarius
plugs: [home, network, network-bind, unity7]
desktop: denarius.desktop
- environme... |
Subaru: remove GM leftover | @@ -12,7 +12,6 @@ int subaru_cruise_engaged_last = 0;
int subaru_rt_torque_last = 0;
int subaru_desired_torque_last = 0;
uint32_t subaru_ts_last = 0;
-int subaru_supercruise_on = 0;
struct sample_t subaru_torque_driver; // last few driver torques measured
@@ -86,7 +85,7 @@ static int subaru_tx_hook(CAN_FIFOMailBox_Type... |
lhash: Avoid 32 bit right shift of a 32 bit value
Fixes | @@ -383,7 +383,8 @@ unsigned long OPENSSL_LH_strhash(const char *c)
v = n | (*c);
n += 0x100;
r = (int)((v >> 2) ^ v) & 0x0f;
- ret = (ret << r) | (ret >> (32 - r));
+ /* cast to uint64_t to avoid 32 bit shift of 32 bit value */
+ ret = (ret << r) | (unsigned long)((uint64_t)ret >> (32 - r));
ret &= 0xFFFFFFFFL;
ret ^=... |
mesh: Update seqnum when re-encrypting for friend
Sets the sequence number when re-encrypting messages from the friend to
the lpn.
this is port of | @@ -442,7 +442,8 @@ static int unseg_app_sdu_prepare(struct bt_mesh_friend *frnd,
return 0;
}
- BT_DBG("Re-encrypting friend pdu");
+ BT_DBG("Re-encrypting friend pdu (SeqNum %06x -> %06x)",
+ meta.crypto.seq_num, bt_mesh.seq);
err = unseg_app_sdu_decrypt(frnd, buf, &meta);
if (err) {
@@ -450,6 +451,8 @@ static int uns... |
[io] add an option to skip the last updateInput | @@ -777,6 +777,7 @@ class MechanicsHdf5Runner_run_options(dict):
d['start_run_iteration_hook']=None
d['end_run_iteration_hook']=None
d['skip_last_update_output']=False
+ d['skip_last_update_input']=False
d['osns_assembly_type']= None
@@ -2213,6 +2214,7 @@ class MechanicsHdf5Runner(siconos.io.mechanics_hdf5.MechanicsHdf... |
serial-libs/openblas: update version to v0.3.5 | %define pname openblas
Name: %{pname}-%{compiler_family}%{PROJ_DELIM}
-Version: 0.3.0
+Version: 0.3.5
Release: 1%{?dist}
Summary: An optimized BLAS library based on GotoBLAS2
License: BSD-3-Clause
|
tools/ramdump: modify README for summary and subsection
1. Add summary at top of doc
2. Split subsection into build and upload from upload
3. Change subsection titles to "how to" format
4. Fix typo | # How to Use Ramdump
+Here we explain how to enable build support for RAMDUMP upload,
+and how to actually upload and parse it in the event of a crash during runtime.
## Contents
-> [Ramdump Upload Steps](#ramdump-upload-steps)
-> [Ramdump Parsing Steps](#ramdump-parsing-steps)
+> [Build Steps](#how-to-enable-ramdump)
... |
don't convert to john or cap if message_pair bit 8 is set | @@ -19,7 +19,6 @@ build:
$(CC) $(CFLAGS) $(CFLAGS1) -o wlanhcxmnc wlanhcxmnc.c
$(CC) $(CFLAGS) $(CFLAGS1) -o whoismac whoismac.c -lcurl
-
install: build
install -D -m 0755 wlandump $(INSTALLDIR)/wlandump
install -D -m 0755 wlanscan $(INSTALLDIR)/wlanscan
|
Base 666: Update return values for en/decoding | @@ -15,7 +15,7 @@ int decode (Key * key, Key * parent)
{
const char * strVal = keyString (key);
- if (keyIsString (key) == 0 || !keyGetMeta (key, "type") || strcmp (keyValue (keyGetMeta (key, "type")), "binary")) return 1;
+ if (keyIsString (key) == 0 || !keyGetMeta (key, "type") || strcmp (keyValue (keyGetMeta (key, "... |
Trying to solve bug in windows node async handles (again). | @@ -4968,8 +4968,6 @@ int64_t node_loader_impl_user_async_handles_count(loader_impl_node node_impl)
return active_handles - node_impl->base_active_handles - node_impl->extra_active_handles.load() + (int64_t)(node_impl->thread_loop->active_reqs.count) + closing;
}
-/* TODO: Remove async handle logging temporally */
-/*
... |
tests: internal: ra: add unit test for lookup order | @@ -533,6 +533,89 @@ void cb_dot_and_slash_key()
msgpack_unpacked_destroy(&result);
}
+static int order_lookup_check(char *buf, size_t size,
+ char *fmt, char *expected_out)
+{
+ size_t off = 0;
+ char *fmt_out;
+ flb_sds_t str;
+ msgpack_unpacked result;
+ msgpack_object map;
+ struct flb_record_accessor *ra;
+
+ /* C... |
fixup! netutil/ifconfig: enable ipv6 autoconfig | @@ -282,8 +282,10 @@ int cmd_ifconfig(int argc, char **argv)
netif = netif_find(intf);
if (netif) {
+#ifdef CONFIG_NET_IPv6_AUTOCONFIG
+ /* enable IPv6 address stateless autoconfiguration */
netif_set_ip6_autoconfig_enabled(netif, 1);
-
+#endif
/* To auto-config linklocal address, netif should have mac address already ... |
pkg/container-collection: Notify subscribers before removing container
This change is particularly useful in the network-graph trace gadget as,
during the deletion notification (detacher), it uses the
LookupContainersByNetns to check how many containers are using a given
network namespace. | @@ -119,9 +119,10 @@ func (cc *ContainerCollection) GetContainer(id string) *Container {
return container
}
-// RemoveContainer removes a container from the collection.
+// RemoveContainer removes a container from the collection, but only after
+// notifying all the subscribers.
func (cc *ContainerCollection) RemoveCon... |
flounder: sending the right bind/bind-reply message types | @@ -901,7 +901,7 @@ tx_bind_msg p ifn =
[C.Return (C.Variable "FLOUNDER_ERR_TX_BUSY")] [],
C.SBlank,
C.Ex $ C.Call "flounder_stub_ump_control_fill"
- [chanst, ctrladdr, C.Variable $ msg_enum_elem_name ifn "__bind"],
+ [chanst, ctrladdr, C.Variable $ "FL_UMP_BIND" ],
-- C.StmtList
-- [C.Ex $ C.Assignment (msgword n) (fr... |
fix --no-url-call not working; close | @@ -109,11 +109,13 @@ char* gen_parseResponse(char* res, const struct arguments* arguments) {
no_statelookup = 1;
}
secFree(redirect_uri);
+ if (!arguments->noUrlCall) {
char* cmd = oidc_sprintf(URL_OPENER " \"%s\"", _uri);
if (system(cmd) != 0) {
logger(NOTICE, "Cannot open url");
}
secFree(cmd);
+ }
if (no_statelooku... |
kernel/binary_manager: Remove unnessasary sched_lock/unlock
It is not nessasary to call sched_lock/unlock here. | #include <string.h>
#include <signal.h>
#include <stdlib.h>
-#include <tinyara/sched.h>
#include <tinyara/binary_manager.h>
#include "binary_manager.h"
@@ -163,8 +162,6 @@ int binary_manager(int argc, char *argv[])
continue;
}
- sched_lock();
-
bmvdbg("Recevied Request msg : cmd = %d\n", request_msg);
switch (request_m... |
Update: Encode.h: Description | #ifndef H_SCALARENCODER
#define H_SCALARENCODER
-//////////////////////////////
-// Scalar and term encoder //
-//////////////////////////////
-//Supports to encode a value in HTM way:
-//https://www.youtube.com/watch?v=V3Yqtpytif0&list=PL3yXMgtrZmDqhsFQzwUC9V8MeeVOQ7eZ9&index=6
+/////////////////////
+// Narsese encod... |
Bump firmware version to 0x262d0500
improve routing, use route recond messages
improve Philips hue motion sensor and dimmer outtakes | @@ -71,7 +71,7 @@ DEFINES += GIT_COMMMIT=\\\"$$GIT_COMMIT\\\" \
# Minimum version of the RaspBee firmware
# which shall be used in order to support all features for this software release (case sensitive)
DEFINES += GW_AUTO_UPDATE_FW_VERSION=0x260b0500
-DEFINES += GW_MIN_RPI_FW_VERSION=0x262b0500
+DEFINES += GW_MIN_RPI_... |
Prevent unused variable if passed to STUBL | }
/** non-fatal stub implementation of wayland interface method. */
-#define STUBL(x) wlc_log(WLC_LOG_WARN, "%s @ line %d is not implemented", __PRETTY_FUNCTION__, __LINE__)
+#define STUBL(x) { \
+ (void)x; \
+ wlc_log(WLC_LOG_WARN, "%s @ line %d is not implemented", __PRETTY_FUNCTION__, __LINE__); \
+}
/** length macr... |
proc: proc_threadPriority(-1) fix (implicit integer promotion)
JIRA: | @@ -929,7 +929,11 @@ int proc_threadPriority(int priority)
spinlock_ctx_t sc;
int ret;
- if ((priority < -1) || (priority >= sizeof(threads_common.ready) / sizeof(threads_common.ready[0]))) {
+ if (priority < -1) {
+ return -EINVAL;
+ }
+
+ if ((priority >= 0) && (priority >= sizeof(threads_common.ready) / sizeof(threa... |
Fix CGCatalog filters
Fix CGCatalog's project filters for SBResourceCopy on reference images. | </ClangCompile>
<SBInfoPlistCopy Include="..\..\CGCatalog\Info.plist" />
<SBResourceCopy Include="..\..\CGCatalog\Resources\AddArc.png">
+ <Filter>CGCatalog\Resources</Filter>
+ </SBResourceCopy>
<SBResourceCopy Include="..\..\CGCatalog\Resources\AddArcToPoint.png">
+ <Filter>CGCatalog\Resources</Filter>
+ </SBResource... |
libhfuzz/persistent: in case there are arguments to main(), use the last argument as an input file | @@ -82,8 +82,19 @@ int main(int argc, char **argv)
}
if (fcntl(_HF_PERSISTENT_FD, F_GETFD) == -1 && errno == EBADF) {
- LOG_I("Accepting input from stdin\n"
- "Usage for fuzzing: honggfuzz -P [flags] -- %s", argv[0]);
+ int in_fd = STDIN_FILENO;
+ const char *fname = "[STDIN]";
+ if (argc > 1) {
+ fname = argv[argc - 1... |
{AH} return None in get_forward_sequence if sequence not defined, fixes | @@ -1835,7 +1835,11 @@ cdef class AlignedSegment:
Reads mapping to the reverse strand will be reverse
complemented.
+
+ Returns None if the record has no query sequence.
"""
+ if self.query_sequence is None:
+ return None
s = force_str(self.query_sequence)
if self.is_reverse:
s = s.translate(maketrans("ACGTacgtNnXx", "... |
Simplify JsonReaderException logging | @@ -237,7 +237,7 @@ namespace MiningCore.Stratum
case JsonReaderException jsonEx:
// ban clients sending junk
- logger.Error(() => $"[{LogCat}] [{client.ConnectionId}] Connection json error state: {ex.Message}, path: {jsonEx.Path}");
+ logger.Error(() => $"[{LogCat}] [{client.ConnectionId}] Connection json error state:... |
Fix bgwriter_checkpoint test case
Since we start standby master if WITH_MIRRORS=true. The element number
in gp_segment_configuration changes, and result in change of answer file
Author: Max Yang
Author: Xiaoran Wang | @@ -59,6 +59,7 @@ NOTICE: Success:
NOTICE: Success:
NOTICE: Success:
NOTICE: Success:
+NOTICE: Success:
NOTICE: Success:
gp_inject_fault
-----------------
@@ -69,7 +70,8 @@ NOTICE: Success:
t
t
t
-(7 rows)
+ t
+(8 rows)
-- Start with a clean slate (no dirty buffers).
checkpoint;
@@ -226,6 +228,7 @@ NOTICE: Success:
NOT... |
Add default circle ci 2.0 file | -machine:
- xcode:
- version: 9.2.0
-test:
- override:
- # iOS 10.0 platform with iOS 11.2 SDK
- - xcodebuild clean test
- CODE_SIGNING_REQUIRED=NO
- CODE_SIGN_IDENTITY=
- -destination 'platform=iOS Simulator,name=iPhone 5,OS=10.3.1'
- -sdk iphonesimulator11.2
- -scheme "TrustKit"
+version: 2
+jobs:
+ build-and-test:
+... |
improve histogram loading and display in mcpha.tcl | @@ -365,7 +365,7 @@ namespace eval ::mcpha {
}
blt::vector create [my varname xvec](16385)
- blt::vector create [my varname yvec](16384)
+ blt::vector create [my varname yvec](16385)
# fill one vector for the x axis with 16385 points
[my varname xvec] seq -0.5 16383.5
@@ -1079,7 +1079,13 @@ namespace eval ::mcpha {
tk_... |
correcting ticker | @@ -37,7 +37,7 @@ static const network_info_t NETWORK_MAPPING[] = {
{.chain_id = 199, .name = "BTTC", .ticker = "BTT"},
{.chain_id = 1030, .name = "Conflux", .ticker = "CFX"},
{.chain_id = 61, .name = "Ethereum Classic", .ticker = "ETC"},
- {.chain_id = 246, .name = "EnergyWebChain", .ticker = "EWC"},
+ {.chain_id = 24... |
out_file: fix leaks when exiting on exception (CID 185662, 185672) | @@ -227,6 +227,7 @@ static void cb_file_flush(void *data, size_t bytes,
tag_buf = flb_malloc(tag_len + 1);
if (!tag_buf) {
flb_errno();
+ fclose(fp);
FLB_OUTPUT_RETURN(FLB_RETRY);
}
memcpy(tag_buf, tag, tag_len);
@@ -256,6 +257,7 @@ static void cb_file_flush(void *data, size_t bytes,
else {
msgpack_unpacked_destroy(&re... |
Fix minor markdown formatting issue
[ci skip] | @@ -51,7 +51,7 @@ arguments with a plus sign):
| +autoflushl2 | Copy dirty data in the L2 cache to system memory at the end of simulation before writing to file (used with +memdump...) |
| +profile=*filename* | Periodically write the program counters to a file. Use with tools/misc/profile.py |
| +block=*filename* | Rea... |
docs: Forward-port missing 17.01 release notes | # Release Notes {#release_notes}
* @subpage release_notes_1704
+* @subpage release_notes_17011
* @subpage release_notes_1701
* @subpage release_notes_1609
* @subpage release_notes_1606
@todo Release 17.04 needs release notes.
+
+@page release_notes_17011 Release notes for VPP 17.01.1
+
+This is bug fix release.
+
+For ... |
fputest: new, better test | #include <math.h>
#include <inttypes.h>
#include <barrelfish/barrelfish.h>
+#include <barrelfish/systime.h>
static const char *progname = NULL;
static int fpu_thread(void *arg)
{
- double save = 0.0, lastsave = 0.0;
+ double save;
+ volatile double lastsave;
int n = (uintptr_t)arg;
int j = 0;
-
+ save = systime_now();
... |
Update valgrind.yml
Continue the workflow even when tests fail.
Run every Sunday at midnight. | @@ -3,7 +3,7 @@ name: valgrind OPAE tests
on:
schedule:
- - cron: '8 0 * * *'
+ - cron: '0 7 * * 0'
jobs:
build:
@@ -24,6 +24,7 @@ jobs:
- name: set hugepages
run: sudo sysctl -w vm.nr_hugepages=8
- name: test
+ continue-on-error: true
run: cd ${{ github.workspace }}/.build && ${{ github.workspace }}/scripts/valgrind $... |
Zero AES key when marking invalid | @@ -326,6 +326,7 @@ boot_enc_mark_keys_invalid(struct enc_key_data *enc_state)
size_t slot;
for (slot = 0; slot < BOOT_NUM_SLOTS; ++slot) {
+ memset(&enc_state[slot].aes, 0, sizeof(enc_state[slot].aes));
enc_state[slot].valid = 0;
}
}
|
increase total heap limit to 1GB | @@ -9,7 +9,7 @@ static size_t allocated_mem = 0;
static std::unordered_map<void*, size_t> allocated_len_map;
void *limited_malloc(size_t size) {
- if (size + allocated_mem > 1 << 24) {
+ if (size + allocated_mem > 1 << 30) {
return nullptr;
}
void* m = malloc(size);
|
system/i2c: Fix fd leak in i2ccmd_reset | #include <nuttx/config.h>
+#include <unistd.h>
+
#include <nuttx/i2c/i2c_master.h>
#include "i2ctool.h"
@@ -60,6 +62,12 @@ int i2ccmd_reset(FAR struct i2ctool_s *i2ctool, int argc, char **argv)
i2ctool_printf(i2ctool, "Failed to send the reset command\n");
}
+ ret = close(fd);
+ if (ret < 0)
+ {
+ i2ctool_printf(i2ctoo... |
Make set_enclave_tests_properties consistent with add_enclave_test | @@ -96,10 +96,12 @@ endfunction (enclave_link_libraries)
# Wrapper of `set_tests_properties`
macro (set_enclave_tests_properties NAME PROPERTIES PROP)
+ if (UNIX OR USE_CLANGW OR ADD_WINDOWS_ENCLAVE_TESTS)
set_tests_properties(${NAME} PROPERTIES ${PROP} "${ARGN}")
if (TEST ${NAME}-lvi-cfg)
set_tests_properties(${NAME}-... |
vere: make import flow not use base64 encoding | @@ -85,18 +85,11 @@ _fore_inject(u3_auto* car_u, c3_c* pax_c)
static void
_fore_import(u3_auto* car_u, c3_c* pax_c)
{
- // With apologies
u3_noun arc = u3ke_cue(u3m_file(pax_c));
- u3_noun b64 = u3do("crip", u3do("en-base64:mimes:html", arc));
- c3_c * b64_c = u3r_string(b64);
+ u3_noun imp = u3do("cat", u3nt(u3i_word(... |
kernel: add a BINARY_MANAGER dependency in USERMAIN_STACKSIZE
Under APP_BINARY_SEPARATION and BINARY_MANAGER conditionals,
user main task is not launching from os_bringup. so that
USERMAIN_STACKSIZE is not necessary.
This commit makes it disapeared under conditionals above. | @@ -1112,6 +1112,7 @@ config IDLETHREAD_STACKSIZE
config USERMAIN_STACKSIZE
int "Main thread stack size"
default 2048
+ depends on !BINARY_MANAGER
---help---
The size of the stack to allocate for the user initialization thread
that is started as soon as the OS completes its initialization.
|
CMSIS-Core(M): updated documentation.
- Added missing SecureFault to the list of exceptions in __getIPSR() description. | @@ -102,7 +102,8 @@ void __set_CONTROL(uint32_t control);
- = 4 MemManage
- = 5 BusFault
- = 6 UsageFault
- - = 7-10 Reserved
+ - = 7 SecureFault
+ - = 8-10 Reserved
- = 11 SVC
- = 12 Reserved for Debug
- = 13 Reserved
|
no-op instead of crash on spurious :dns binding creation retries | ++ do-create
|= [him=ship for=ship try=@ud]
^+ this
- =/ tar (~(got by pen.nam) him)
+ =/ pending (~(get by pen.nam) him)
+ ?~ pending
+ this
+ =* tar u.pending
=/ =wire
(http-wire try /create/(scot %p him)/for/(scot %p for))
=/ pre=(unit [id=@ta tar=target])
|
Add ATOM_FLAG_GLOBAL | @@ -3912,6 +3912,9 @@ NtAddAtom(
);
#if (PHNT_VERSION >= PHNT_WIN8)
+
+#define ATOM_FLAG_GLOBAL 0x2
+
// rev
NTSYSCALLAPI
NTSTATUS
@@ -3922,6 +3925,7 @@ NtAddAtomEx(
_Out_opt_ PRTL_ATOM Atom,
_In_ ULONG Flags
);
+
#endif
NTSYSCALLAPI
|
[core] perf: buffer_string_append_len()
buffer_string_append_len() short-circuit common case,
but preserve blank-string initialization side-effect
if buffer is empty | @@ -128,6 +128,9 @@ char* buffer_string_prepare_copy(buffer *b, size_t size) {
char* buffer_string_prepare_append(buffer *b, size_t size) {
force_assert(NULL != b);
+ if (b->used && size < b->size - b->used)
+ return b->ptr + b->used - 1;
+
if (buffer_string_is_empty(b)) {
return buffer_string_prepare_copy(b, size);
} ... |
s32k1xx: reserve MSG_DATA extra space only when needed by config. | #define POOL_SIZE 1
+#if defined(CONFIG_NET_CAN_RAW_TX_DEADLINE) || defined(CONFIG_NET_TIMESTAMP)
#define MSG_DATA sizeof(struct timeval)
+#else
+#define MSG_DATA 0
+#endif
/* CAN bit timing values */
#define CLK_FREQ 80000000
|
Make the project browser work with the new navigation | @@ -272,6 +272,7 @@ public class FileBrowserViewController: UITableViewController, UIDocumentPickerD
editor.document?.editor = nil
editor.save { (_) in
+ editor.document?.close(completionHandler: { (_) in
let document = PyDocument(fileURL: url)
document.open { (_) in
@@ -281,6 +282,7 @@ public class FileBrowserViewCont... |
[mod_webdav] webdav_reqbody_type_xml() fixes
webdav_reqbody_type_xml() must check request headers (behavior fix)
protect webdav_reqbody_type_xml() with USE_PROPPATCH (compile fix) | @@ -2319,12 +2319,13 @@ webdav_405_no_db (request_st * const r)
#endif
+#ifdef USE_PROPPATCH
__attribute_pure__
static int
webdav_reqbody_type_xml (request_st * const r)
{
const buffer * const vb =
- http_header_response_get(r, HTTP_HEADER_CONTENT_TYPE,
+ http_header_request_get(r, HTTP_HEADER_CONTENT_TYPE,
CONST_STR_L... |
fix doxygen annotation | @@ -779,7 +779,7 @@ chaos_replystr(sldns_buffer* pkt, char** str, int num, struct edns_data* edns,
* Create CH class trustanchor answer.
* @param pkt: buffer
* @param edns: edns reply information.
- * @param worker: worker with scratch region.
+ * @param w: worker with scratch region.
*/
static void
chaos_trustanchor(s... |
Use rint directly | @@ -241,7 +241,7 @@ d_m3UnaryOp_f (f32, Ceil, ceilf); d_m3UnaryOp_f (f64, Ceil,
d_m3UnaryOp_f (f32, Floor, floorf); d_m3UnaryOp_f (f64, Floor, floor);
d_m3UnaryOp_f (f32, Trunc, truncf); d_m3UnaryOp_f (f64, Trunc, trunc);
d_m3UnaryOp_f (f32, Sqrt, sqrtf); d_m3UnaryOp_f (f64, Sqrt, sqrt);
-d_m3UnaryOp_f (f32, Nearest, n... |
[CUDA] Add POCL_DEBUG_PTX to dump IR after transforms | #include "common.h"
#include "pocl.h"
+#include "pocl_runtime_config.h"
#include "pocl-ptx-gen.h"
#include "llvm/Bitcode/ReaderWriter.h"
@@ -80,7 +81,8 @@ int pocl_ptx_gen(const char *bc_filename,
pocl_gen_local_mem_args(module->get());
pocl_insert_ptx_intrinsics(module->get());
pocl_add_kernel_annotations(module->get(... |
Update ls_new API
In radare source coude there was a bad usage of ls_* because of this | #define LS_MERGE_DEPTH 50
SDB_API SdbList *ls_newf(SdbListFree freefn) {
- SdbList *list = R_NEW (SdbList);
- if (!list) {
- return NULL;
- }
- list->head = NULL;
- list->tail = NULL;
- list->free = freefn; // HACK
- list->length = 0;
+ SdbList *list = ls_new ();
+ list->free = freefn;
return list;
}
SDB_API SdbList *l... |
Update loop documentation. | A very common and essential operation in all programming is looping. Most
languages support looping of some kind, either with explicit loops or recursion.
-Janet supports both recursion and a primitve `while` loop. While recursion is
+Janet supports both recursion and a primitive `while` loop. While recursion is
useful... |
Fix Ilumra FoH dual rocker switch vendor prefix check
Related PR:
F | @@ -1528,7 +1528,9 @@ void DeRestPluginPrivate::gpDataIndication(const deCONZ::GpDataIndication &ind)
Sensor sensorNode;
sensorNode.setType("ZGPSwitch");
- if (gpdDeviceId == deCONZ::GpDeviceIdOnOffSwitch && options.byte == 0x81 && ind.payload().size() == 27 && (ind.gpdSrcId() & 0x01700000) == 0x01700000)
+ // https://... |
Fix typo. .
Note: mandatory check (NEED_CHECK) was skipped | @@ -127,7 +127,7 @@ ALLOW .* -> vendor/github.com/prometheus/common
# ZooKeeper client
ALLOW .* -> vendor/github.com/samuel/go-zookeeper
-# Test diffing.
+# Text diffing.
ALLOW .* -> vendor/github.com/pmezard/go-difflib
# statsd client library
|
Fix another EVP_DigestVerify() instance
Following on from the previous commit this fixes another instance where
we need to treat a -ve return from EVP_DigestVerify() as a bad signature. | @@ -459,10 +459,7 @@ MSG_PROCESS_RETURN tls_process_cert_verify(SSL *s, PACKET *pkt)
}
} else {
j = EVP_DigestVerify(mctx, data, len, hdata, hdatalen);
- if (j < 0) {
- SSLerr(SSL_F_TLS_PROCESS_CERT_VERIFY, ERR_R_EVP_LIB);
- goto f_err;
- } else if (j == 0) {
+ if (j <= 0) {
al = SSL_AD_DECRYPT_ERROR;
SSLerr(SSL_F_TLS_... |
fix segfault when the host has an addressless interface | @@ -1633,6 +1633,8 @@ int picoquic_getaddrs_v4(struct sockaddr_in *sas, int sas_length)
}
for (ifa = ifaddr; ifa != NULL; ifa = ifa->ifa_next) {
+ /* What if an interface has no IP address? */
+ if (ifa->ifa_addr) {
family = ifa->ifa_addr->sa_family;
if (family == AF_INET) {
struct sockaddr_in *sai = (struct sockaddr_i... |
fix runtime binding | @@ -30,11 +30,10 @@ typedef m3ret_t (* M3ArgPusher) (d_m3BindingArgList, M3State * i_state);
typedef f64 (* M3ArgPusherFpReturn) (d_m3BindingArgList, M3State * i_state);
-m3ret_t PushArg_module (d_m3BindingArgList, M3State * _state)
+m3ret_t PushArg_runtime (d_m3BindingArgList, M3State * _state)
{
- void ** ptr = (void... |
remove extraneous seting of --wqrocm-path | @@ -19,7 +19,7 @@ export AOMPROCM=$AOMP/..
# mygpu will eventually relocate to /opt/rocm/bin, support both cases for now.
if [ -a $AOMP/bin/mygpu ]; then
export AOMP_GPU=`$AOMP/bin/mygpu`
- export EXTRA_OMP_FLAGS=--rocm-path=$AOMP/
+# export EXTRA_OMP_FLAGS=--rocm-path=$AOMP/
else
export AOMP_GPU=`$AOMP/../bin/mygpu`
f... |
M487 WiFi Demo code support key and certificate provisioning | @@ -180,6 +180,11 @@ int main( void )
configPRINTF( ( "FreeRTOS_IPInit\n" ) );
xTaskCreate( vCheckTask, "Check", mainCHECK_TASK_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );
+ /* A simple example to demonstrate key and certificate provisioning in
+ * microcontroller flash using PKCS#11 interface. This should be re... |
Fix TINYSPLINE_CSHARP_FRAMEWORK_NAME | @@ -1477,6 +1477,9 @@ if(DEFINED TINYSPLINE_CSHARP_FRAMEWORK_VERSION)
endif()
string(REPLACE "." "" TINYSPLINE_CSHARP_FRAMEWORK_NAME
${TINYSPLINE_CSHARP_FRAMEWORK_VERSION})
+ # Currently, only .NET Framework is supported.
+ set(TINYSPLINE_CSHARP_FRAMEWORK_NAME
+ "net${TINYSPLINE_CSHARP_FRAMEWORK_NAME}")
set(TINYSPLINE_... |
ble_mesh: stack: Make mesh buf debug option invisible | @@ -269,7 +269,7 @@ if BLE_MESH
advertising bearer.
config BLE_MESH_NET_BUF_POOL_USAGE
- bool "BLE Mesh net buffer pool usage tracking"
+ bool
default y
help
Enable BLE Mesh net buffer pool tracking. This option is used to introduce another
|
hfuzz_cc: add -Wl,-z,muldefs to ldmode | @@ -172,6 +172,7 @@ static int ldMode(int argc, char **argv)
int j = 0;
args[j++] = getClangCC();
+ args[j++] = "-Wl,-z,muldefs";
args[j++] = "-Wl,--whole-archive";
args[j++] = LHFUZZ_A_PATH;
args[j++] = "-Wl,--no-whole-archive";
|
Don't pass along unused parameter | @@ -705,12 +705,11 @@ rpz_data_delete_rr(struct local_zone* z, uint8_t* policydname,
* @param rr_type: RR type of RR to remove
* @param rdata: rdata of RR to remove
* @param rdatalen: length of rdata
- * @param region: RPZ's repsip_set region
* @return: 1 if zone must be removed after RR deletion
*/
static int
rpz_rrse... |
removed some unneccessary code | @@ -921,7 +921,6 @@ for(d = 0; d < apstaessidcount; d++)
zeiger->replaycount_sta = zeigerea->replaycount;
memcpy(zeiger->nonce, zeigerno->nonce, 32);
zeiger->authlen = zeigerea->authlen;
- memset(zeiger->eapol, 0, 256);
memcpy(zeiger->eapol, zeigerea->eapol, zeigerea->authlen);
zeiger->essidlen = zeigeressid->essidlen;... |
haskell-cabal-sandboxing: don't let the haskell plugin write to stdout | @@ -13,27 +13,27 @@ import Elektra.Plugin
import Foreign.Ptr
elektraHaskellOpen :: Plugin -> Key -> IO PluginStatus
-elektraHaskellOpen p k = putStrLn "haskell elektraHaskellOpen" >> return Success
+elektraHaskellOpen p k = keySetMeta k "/plugins/haskell" "elektraHaskellOpen" >> return Success
hs_elektraHaskellOpen = e... |
Marvell manifest. | set(
AFR_MANIFEST_SUPPORTED_BOARDS
- "mw320_rd"
+ mw300_rd
+ mw320_rd
CACHE INTERNAL "Supported boards list."
)
set(AFR_MANIFEST_BOARD_DIR "boards")
+set(AFR_MANIFEST_BOARD_DIR_mw300_rd "boards/mw320_rd")
+set(AFR_MANIFEST_BOARD_DIR_mw320_rd "boards/mw320_rd")
|
properly embed test_dnrm2 | @@ -369,6 +369,38 @@ CTEST(dsdot,dsdot_n_1)
}
+#if defined(BUILD_DOUBLE)
+CTEST(dnrm2,dnrm2_inf)
+{
+#ifndef INFINITY
+#define INFINITY HUGE_VAL
+#endif
+ int i;
+ double x[29];
+ blasint incx=1;
+ blasint n=28;
+ double res1=0.0f, res2=INFINITY;
+
+ for (i=0;i<n;i++)x[i]=0.0f;
+ x[10]=-INFINITY;
+ res1=BLASFUNC(dnrm2)... |
board/quackingstick/board.h: Format with clang-format
BRANCH=none
TEST=none | @@ -82,10 +82,7 @@ enum adc_channel {
ADC_CH_COUNT
};
-enum temp_sensor_id {
- TEMP_SENSOR_SYS2,
- TEMP_SENSOR_COUNT
-};
+enum temp_sensor_id { TEMP_SENSOR_SYS2, TEMP_SENSOR_COUNT };
/* Motion sensors */
enum sensor_id {
@@ -94,10 +91,7 @@ enum sensor_id {
SENSOR_COUNT,
};
-enum pwm_channel {
- PWM_CH_DISPLIGHT = 0,
- ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.