message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
honggfuzz 1.9 - changelog | +2019-05-22 - Version 1.9
+ - Don't include netdriver if not needed
+ - Updated examples (bind/openssl)
+ - Add missing TEMP_FAILURE_RETRY() wrappers
+ - Add additional _HF_STATE_DYNAMIC_SWITCH_TO_MAIN state
+
2019-02-23 - Version 1.8
- Native support for NetBSD
- Multiple smaller changes wrt threading - e.g. introduci... |
h2olog: fix UBSan errors in http_tracer.c
amending | */
#include "h2olog.h"
+#include <memory.h>
+#include <assert.h>
const char *HTTP_BPF = R"(
#include <linux/sched.h>
@@ -149,31 +151,35 @@ typedef struct st_http_event_t {
class h2o_http_tracer : public h2o_tracer
{
protected:
- virtual void do_handle_event(const void *data, int len)
+ virtual void do_handle_event(cons... |
make vsxmake slnfile consistent | @@ -351,11 +351,10 @@ function main(outputdir, vsinfo)
vsinfo.projectdir = project.directory()
vsinfo.sln_projectfile = path.relative(project.rootfile(), vsinfo.solution_dir)
local projectfile = path.filename(project.rootfile())
- vsinfo.slnfile = path.filename(project.directory())
+ vsinfo.slnfile = project.name() or ... |
nimble/hci: Modifying ACL Buf size based on BLE 5.1 Standard | @@ -407,13 +407,17 @@ ble_hs_hci_rx_evt(uint8_t *hci_ev, void *arg)
}
/**
- * Calculates the largest ACL payload that the controller can accept. This is
- * everything in an ACL data packet except for the ACL header.
+ * Calculates the largest ACL payload that the controller can accept.
*/
static uint16_t
ble_hs_hci_ma... |
BugID:17624007:[http2-exaple] upload file with external paras file name | #define HTTP2_DEVICE_SECRET "q4tiwQuICYfr6JQ8aUFjWxocuXJ5ruEx"
#endif
-#define FILE_NAME "test.tar.gz"
+//#define FILE_NAME "test.tar.gz2"
#define EXAMPLE_TRACE(fmt, ...) \
do { \
@@ -69,7 +69,7 @@ void upload_file_result(const char * path,int result, void * user_data)
upload_end =1;
}
-static int http2_stream_test()
+... |
Fixed build with GCC under FreeBSD. | @@ -5669,6 +5669,7 @@ nt_connect(struct neat_he_candidate *candidate, uv_poll_cb callback_fx)
return -1; // Unavailable on other platforms
#endif
// Fallthrough to case NEAT_STACK_SCTP:
+ /* FALLTHRU */
case NEAT_STACK_SCTP:
candidate->pollable_socket->write_limit = candidate->pollable_socket->write_size / 4;
if (nt_pr... |
web ui: allow drag & copy with alt or ctrl | @@ -79,7 +79,8 @@ export default class TreeView extends React.Component {
const { instanceId, moveKey, copyKey } = this.props
const { selection } = inputs
- const action = (evt && evt.altKey) // alt pressed -> copy
+ // alt or ctrl pressed -> copy
+ const action = (evt && (evt.altKey || evt.ctrlKey))
? copyKey
: moveKe... |
os_web fixes; | @@ -159,7 +159,7 @@ static EM_BOOL onKeyEvent(int type, const EmscriptenKeyboardEvent* data, void* u
default: return false;
}
- ButtonAction action = type == EMSCRIPTEN_EVENT_KEYDOWN ? BUTTON_PRESSED : BUTTON_RELEASED;
+ os_button_action action = type == EMSCRIPTEN_EVENT_KEYDOWN ? BUTTON_PRESSED : BUTTON_RELEASED;
stat... |
[stat_cache] FAM: use entry hash index as userdata
Upon receipt of FAM event, validate that entry exists in splaytree
instead of blindly accessing memory through the pointer returned in
userdata by FAM | @@ -159,13 +159,15 @@ static handler_t stat_cache_handle_fdevent(server *srv, void *_fce, int revent)
for (i = 0; i < events; i++) {
FAMEvent fe;
- fam_dir_entry *fam_dir;
splay_tree *node;
int ndx;
if (FAMNextEvent(&scf->fam, &fe) < 0) break;
-
- /* handle event */
+ scf->dirs = splaytree_splay(scf->dirs, (int)(intptr... |
Bugfix in OP_APOST | @@ -1478,18 +1478,20 @@ static inline int op_apost( mrbc_vm *vm, mrbc_value *regs )
if( src.tt != MRBC_TT_ARRAY ){
src = mrbc_array_new(vm, 1);
src.array->data[0] = regs[a];
+ src.array->n_stored = 1;
}
int pre = b;
int post = c;
int len = src.array->n_stored;
- if( len >= pre + post ){
- int ary_size = len-pre-post+1;... |
Build: Fix CMake to pass -Wwrite-string compiler flag if enabled | @@ -74,6 +74,10 @@ if(CONFIG_COMPILER_DISABLE_GCC8_WARNINGS)
"-Wno-int-in-bool-context")
endif()
+if(CONFIG_COMPILER_WARN_WRITE_STRINGS)
+ list(APPEND compile_options "-Wwrite-strings")
+endif()
+
if(CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_DISABLE)
list(APPEND compile_definitions "-DNDEBUG")
endif()
|
docs: document disabled tests when using ASAN | @@ -76,6 +76,17 @@ trailingslashes in TMPDIR?
- using kdb shell
- using kdb mount spec
+## asan
+
+ASAN disables the following parts during cmake as they throw errors:
+- bindings:
+ - SWIG
+ - GLIB
+ - HASKELL
+ - IO (+async notification example)
+- plugins:
+ - crypto_botan
+
## bindings
- swig_ruby excluded due to f... |
docs/library/micropython: Update for the Pycopy project. | -:mod:`micropython` -- access and control MicroPython internals
-==============================================================
+:mod:`pycopy` -- access and control Pycopy internals
+====================================================
-.. module:: micropython
- :synopsis: access and control MicroPython internals
+.. m... |
Realized I should have left the freeze/unfreeze in with an expected assertion | @@ -515,20 +515,19 @@ class RestrictedAssetsTest(RavenTestFramework):
assert_raises_rpc_error(None, "Invalid Raven change address", n0.freezerestrictedasset, asset_name, "garbagechangeaddress")
n0.freezerestrictedasset(asset_name, rvn_change_address) # Can only freeze once!
+ assert_raises_rpc_error(-26, "Freezing tran... |
nat: fix broken test
Type: fix | @@ -1389,6 +1389,19 @@ class MethodHolder(VppTestCase):
class TestNAT44(MethodHolder):
""" NAT44 Test Cases """
+ max_translations = 10240
+ max_users = 10240
+
+ @classmethod
+ def setUpConstants(cls):
+ super(TestNAT44, cls).setUpConstants()
+ cls.vpp_cmdline.extend([
+ "nat", "{",
+ "max translations per thread %d" ... |
session BUGFIX missing SSH-exclusive macros | @@ -713,7 +713,7 @@ static void
nc_session_free_transport(struct nc_session *session, int *multisession)
{
int connected; /* flag to indicate whether the transport socket is still connected */
- int sock = -1, r;
+ int sock = -1;
struct nc_session *siter;
*multisession = 0;
@@ -738,7 +738,9 @@ nc_session_free_transport... |
doc: add v1.2 to the release navigation picker | @@ -189,10 +189,10 @@ else:
html_context = {
'current_version': current_version,
'versions': ( ("latest", "/latest/"),
+ ("1.2", "/1.2/"),
("1.1", "/1.1/"),
("1.0", "/1.0/"),
("0.8", "/0.8/"),
- ("0.7", "/0.7/"),
)
}
|
publish: blend stranger sigils
If a user is a member of a group, but not a contact,
blend their sigil, unstyled, into the background. | @@ -42,20 +42,23 @@ export class CommentItem extends Component {
let name = commentData.author;
let color = "#000000";
+ let classes = "mix-blend-diff";
if (contact) {
name = (contact.nickname.length > 0)
? contact.nickname : commentData.author;
color = `#${uxToHex(contact.color)}`;
+ classes = "";
}
return (
<div>
- <... |
Attempt to get benchmarks more stable | @@ -11,8 +11,8 @@ SLUSH_PERCENTAGE = 0.25
# How much faster Rust should be than other implementations
RATIOS_SBP2JSON = {
- "haskell": 1.42,
- "python": 17.48,
+ "haskell": 2.17,
+ "python": 21.93,
}
RATIOS_JSON2SBP = {
@@ -20,7 +20,7 @@ RATIOS_JSON2SBP = {
}
RATIOS_JSON2JSON = {
- "haskell": 1.65,
+ "haskell": 2.56,
}... |
Display negative ack range in qlog | @@ -1021,6 +1021,8 @@ void qlog_ack_frame(uint64_t ftype, FILE * f, bytestream* s)
fprintf(f, ", \"acked_ranges\": [");
for (uint64_t i = 0; i <= num; i++) {
uint64_t skip = 0;
+ int64_t start_range;
+
if (i != 0) {
byteread_vint(s, &skip);
skip++;
@@ -1031,7 +1033,9 @@ void qlog_ack_frame(uint64_t ftype, FILE * f, byt... |
[component][ulog] Fix a memory leak problem. | @@ -790,6 +790,7 @@ int ulog_tag_lvl_filter_set(const char *tag, rt_uint32_t level)
{
/* remove current tag's level filter when input level is the lowest level */
rt_slist_remove(&ulog.filter.tag_lvl_list, &tag_lvl->list);
+ rt_free(tag_lvl);
}
else
{
|
CCode: Add roundtrip test | @@ -27,10 +27,11 @@ using ckdb::ksDel;
using ckdb::Plugin;
-string const encodedString = "a\\wvalue\\nwith\\e\\s\\r\\wand\\w\\b\\witself";
-string const decodedString = "a value\nwith=;# and \\ itself";
-
-TEST (type, config)
+void testRoundTrip (string const decodedString, string const encodedString = "")
+#ifdef __ll... |
install.md: use iovisor.org hosted link to netperf rpm
The old link to netperf is dead, but a copy exists in the iovisor repo
(for the buildbots to use). | @@ -276,7 +276,7 @@ sudo dnf install -y bison cmake ethtool flex git iperf libstdc++-static \
elfutils-libelf-devel
sudo dnf install -y luajit luajit-devel # for Lua support
sudo dnf install -y \
- http://pkgs.repoforge.org/netperf/netperf-2.6.0-1.el6.rf.x86_64.rpm
+ http://repo.iovisor.org/yum/extra/mageia/cauldron/x8... |
ExtendedTools: Fix showing multiple warnings when removing multiple objects | @@ -1574,6 +1574,45 @@ INT_PTR CALLBACK EtReparseDlgProc(
{
case 1:
{
+ BOOLEAN delete = TRUE;
+
+ switch (context->MenuItemIndex)
+ {
+ case ID_REPARSE_POINTS:
+ {
+ if (PhGetIntegerSetting(L"EnableWarnings") && !PhShowConfirmMessage(
+ hwndDlg,
+ L"remove",
+ L"the repase point",
+ L"The repase point will be permanen... |
Prevent flash of world help appearing while loading project | @@ -122,7 +122,7 @@ class World extends Component {
render() {
const {
- scenes = [],
+ scenes,
settings,
tool,
showConnections,
@@ -169,14 +169,16 @@ class World extends Component {
onClick={this.props.selectWorld}
/>
- {scenes.length === 0 && <WorldHelp />}
+ {scenes && scenes.length === 0 && <WorldHelp />}
- {scenes... |
Free token restricted SIDs when destroying the token property page. | @@ -624,6 +624,7 @@ INT_PTR CALLBACK PhpTokenPageProc(
PhSaveListViewColumnsToSetting(L"TokenPrivilegesListViewColumns", tokenPageContext->PrivilegesListViewHandle);
if (tokenPageContext->Groups) PhFree(tokenPageContext->Groups);
+ if (tokenPageContext->RestrictedSids) PhFree(tokenPageContext->RestrictedSids);
if (toke... |
SOVERSION bump to version 2.1.14 | @@ -63,7 +63,7 @@ set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION
# with backward compatible change and micro version is connected with any internal change of the library.
set(LIBNETCONF2_MAJOR_SOVERSION 2)
set(LIBNETCONF2_MINOR_SOVERSION 1)
-set(LIBNETCONF2_MICRO_SOVERSION 13)
+set(LIB... |
Fix Android LTO
Pull-request for branch users/somov/fix_android_clang50_lto | @@ -1563,6 +1563,9 @@ class LD(Linker):
self.ld_flags.extend(['-ldl', '-lrt', '-Wl,--no-as-needed'])
if target.is_android:
self.ld_flags.extend(['-ldl', '-Wl,--no-as-needed'])
+ if is_positive('USE_LTO'):
+ # https://github.com/android-ndk/ndk/issues/498
+ self.ld_flags.append('-Wl,-plugin-opt,-emulated-tls')
if target... |
Doxygen: Added missing ISR-callable note to CMSIS RTOSv1 osMailPut. | @@ -3546,6 +3546,8 @@ Put the memory block specified with \a mail into the mail queue specified by \a
- \em osOK: the message is put into the queue.
- \em osErrorValue: \a mail was previously not allocated as memory slot.
- \em osErrorParameter: a parameter is invalid or outside of a permitted range.
+
+\note \ref CMSI... |
Remove minor warning in windows. | @@ -74,10 +74,9 @@ int metacall_initialize()
/* Initialize logs by default to stdout if none has been defined */
if (metacall_log_null_flag != 0 && log_size() == 0)
{
- struct metacall_log_stdio_type log_stdio =
- {
- stdout
- };
+ struct metacall_log_stdio_type log_stdio;
+
+ log_stdio.stream = stdout;
if (metacall_lo... |
BugID:17361603: Add seti/geti kv cli command option support | @@ -868,6 +868,7 @@ int aos_kv_get(const char *key, void *buffer, int *buffer_len)
/* CLI Support */
#ifdef CONFIG_AOS_CLI
#include "aos/cli.h"
+#include <stdlib.h>
static int __item_print_cb(kv_item_t *item, const char *key)
{
@@ -952,12 +953,36 @@ static void handle_kv_cmd(char *pwbuf, int blen, int argc, char **argv... |
BugID:16731946:add lock for tlsf | #include "tlsf.h"
+static kmutex_t tlsf_mutex;
+static uint8_t once;
+
#if defined(__cplusplus)
#define tlsf_decl inline
#else
@@ -1097,6 +1100,11 @@ tlsf_t tlsf_create(void* mem)
tlsf_t tlsf_create_with_pool(void* mem, size_t bytes)
{
+ if (once == 0u) {
+ krhino_mutex_create(tlsf_mutex, "tlsf_mutex");
+ once = 1u;
+ ... |
apps/system/i2c/i2c_get.c: Fix i2c_msg freq initialization problem. Typo prevent I2C frequency initialization in a struct i2c_msg. | @@ -188,7 +188,7 @@ int i2ctool_get(FAR struct i2ctool_s *i2ctool, int fd, uint8_t regaddr,
msg[0].buffer = ®addr;
msg[0].length = 1;
- msg[0].frequency = i2ctool->freq;
+ msg[1].frequency = i2ctool->freq;
msg[1].addr = i2ctool->addr;
msg[1].flags = I2C_M_READ;
|
Add EARLY_DATA guard to the early data extension in session ticket | @@ -2541,6 +2541,7 @@ static int ssl_tls13_parse_new_session_ticket_exts( mbedtls_ssl_context *ssl,
switch( extension_type )
{
+#if defined(MBEDTLS_SSL_EARLY_DATA)
case MBEDTLS_TLS_EXT_EARLY_DATA:
if( extension_data_len != 4 )
{
@@ -2555,6 +2556,7 @@ static int ssl_tls13_parse_new_session_ticket_exts( mbedtls_ssl_conte... |
++ta-action no longer requires a bone it doesn't even use. | ::> inbox.
::
|= msg/tape
- %^ ta-action 0 %phrase
+ %+ ta-action %phrase
:- [[our.bol %inbox] ~ ~]
[%app dap.bol %lin | (crip msg)]~
::
[%journal %public 'visible activity']
==
|= {{typ/security nom/naem des/cord} _ta}
- %+ ta-action ost.bol
- [%create nom des typ]
+ (ta-action [%create nom des typ])
%- ta-deltas
:: i... |
Produce dylibs on macOS | @@ -58,6 +58,7 @@ UNAME:=$(shell uname -s)
ifeq ($(UNAME), Darwin)
CLIBS:=$(CLIBS) -ldl
SONAME_SETTER:=-Wl,-install_name,
+ JANET_LIBRARY=build/libjanet.dylib
LDCONFIG:=true
else ifeq ($(UNAME), Linux)
CLIBS:=$(CLIBS) -lrt -ldl
@@ -165,7 +166,11 @@ build/c/janet.c: build/janet_boot src/boot/boot.janet
##### Amalgamatio... |
roll back commit on `alignment >= size` as it breaks assertions in tensorflow | @@ -17,10 +17,10 @@ terms of the MIT license. A copy of the license can be found in the file
static void* mi_heap_malloc_zero_aligned_at(mi_heap_t* heap, size_t size, size_t alignment, size_t offset, bool zero) mi_attr_noexcept {
// note: we don't require `size > offset`, we just guarantee that
// the address at offset... |
path: refactored group fetching code | @@ -163,23 +163,25 @@ static int validatePermission (Key * key, Key * parentKey)
}
}
-
- gid_t * groups = (gid_t *) elektraMalloc (1 * sizeof (gid_t));
- int numberOfGroups = 1;
-
- // The following loop is used to get all groups for a user.
- // 4294967296 is max number of possible groups in Linux Kernel >= 2.6.3, we ... |
u3: bump road heap offset before allocating cellblock | @@ -719,8 +719,9 @@ u3a_cellblock(c3_w num_w)
return c3n;
}
else {
- u3_post hat_p = u3R->hat_p;
u3_post cel_p = u3R->all.cel_p;
+ u3_post hat_p = u3R->hat_p;
+ u3R->hat_p += (num_w * u3a_minimum);
for ( i_w = 0; i_w < num_w; i_w++) {
u3_post all_p = hat_p;
@@ -744,7 +745,7 @@ u3a_cellblock(c3_w num_w)
u3to(u3a_fbox, f... |
Make refcount 64 bits to avoid alignment issues;
There may be a better way to solve this, but I can't think of one
that doesn't also violate strict aliasing. | // Thread module is off, don't use atomics
-typedef uint32_t Ref;
-static inline uint32_t ref_inc(Ref* ref) { return ++*ref; }
-static inline uint32_t ref_dec(Ref* ref) { return --*ref; }
+typedef uint64_t Ref;
+static inline uint64_t ref_inc(Ref* ref) { return ++*ref; }
+static inline uint64_t ref_dec(Ref* ref) { retu... |
fugu: new error code if the attempted map operation had insufficient rights | @@ -102,6 +102,7 @@ errors kernel SYS_ERR_ {
failure VM_ALREADY_MAPPED "This cap copy is already mapped",
failure VM_MAP_SIZE "Mapping size too large",
failure VM_MAP_OFFSET "Mapping offset too large",
+ failure VM_MAP_RIGHTS "Requested mapping rights too high",
failure VM_RETRY_SINGLE "Mapping overlaps multiple leaf p... |
OcAppleRamDiskLib: Fix disk reading | @@ -396,13 +396,11 @@ OcAppleRamDiskLoadFile (
)
{
EFI_STATUS Status;
- BOOLEAN Result;
-
UINTN FileBufferSize;
- VOID *FileBuffer;
-
- UINTN CurrentSize;
UINT64 FilePosition;
+ UINT32 Index;
+ UINTN RequestedSize;
+ UINTN ReadSize;
ASSERT (ExtentTable != NULL);
INTERNAL_ASSERT_EXTENT_TABLE_VALID (ExtentTable);
@@ -411... |
Conditionals: Remove side effect of MSR test | @@ -99,6 +99,10 @@ sudo kdb umount /examples/conditionals
Global plugin example:
```sh
+# Backup old list of global plugins
+kdb set user/examples/msr $(mktemp)
+kdb export system/elektra/globalplugins > $(kdb get user/examples/msr)
+
sudo kdb mount main.ini /examples/conditionals ni
sudo kdb mount sub.ini /examples/co... |
driverless: Suppress stderr output of cupsBackendDeviceURI() function | @@ -509,19 +509,30 @@ generate_ppd (const char *raw_uri)
ipp_t *request, *response = NULL;
ipp_attribute_t *attr;
char buffer[65536], ppdname[1024];
- int i, fd, bytes;
+ int i, fd1, fd2, bytes;
static const char * const pattrs[] =
{
"all",
"media-col-database"
};
+ /* Eliminate any output to stderr, to get rid of the ... |
external/grpc: Name grpc threads for debugging purposes, and understandability
Name grpc pthreads for debugging purposes, and understandability | @@ -112,6 +112,8 @@ int gpr_thd_new(gpr_thd_id* t, const char* thd_name,
/* don't use gpr_free, as this was allocated using malloc (see above) */
free(a);
dec_thd_count();
+ } else {
+ pthread_setname_np(thread_started, a->name);
}
*t = (gpr_thd_id)p;
return thread_started;
|
arvo: improves move type specialization (by spec'ing incrementally) | ?. ((sane %tas) lal) ~
%+ biff ((soft path) p.q.caq)
|= pax/path
- =^ yav worm.vane (~(spot wa worm.vane) 15 caq)
+ =^ xav worm.vane (~(spot wa worm.vane) 7 caq)
+ =^ yav worm.vane (~(spot wa worm.vane) 3 xav)
%+ bind (song yav)
|= {hil/mill vel/worm}
[%& [%pass pax lal hil] vel]
%+ biff ((soft @) p.q.caq)
|= lal/@tas
... |
Fix works fine without keep-alive.
While here, remove user agent and decrease redirects to 5 | @@ -44,9 +44,7 @@ if((fhoui = fopen(ouiname, "w")) == NULL)
hnd = curl_easy_init ();
curl_easy_setopt(hnd, CURLOPT_URL, "http://standards-oui.ieee.org/oui.txt");
curl_easy_setopt(hnd, CURLOPT_NOPROGRESS, 1L);
-curl_easy_setopt(hnd, CURLOPT_USERAGENT, "curl/7.35.0");
-curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L);
-curl... |
fix bug - align days[] and months[] to 4 bytes | * 2021-02-07 Meco Man fixed gettimeofday()
* 2021-02-08 Meco Man add settimeofday() stime()
* 2021-02-10 Meco Man add ctime_r() and re-implement ctime()
+ * 2021-02-11 Meco Man fix bug #3183 - align days[] and months[] to 4 bytes
*/
#include <sys/time.h>
@@ -39,8 +40,9 @@ const short __spm[13] =
(31 + 28 + 31 + 30 + 31... |
Comment why an unbound prefix in getContext is believed impossible
Also add comment tags so that lcov can ignore unreachable code | @@ -6148,8 +6148,15 @@ getContext(XML_Parser parser)
PREFIX *prefix = (PREFIX *)hashTableIterNext(&iter);
if (!prefix)
break;
- if (!prefix->binding)
- continue;
+ if (!prefix->binding) {
+ /* This test appears to be (justifiable) paranoia. There does
+ * not seem to be a way of injecting a prefix without a binding
+ *... |
make it easier to discover the reference documentation | @@ -52,6 +52,10 @@ See [INSTALL.md](INSTALL.md) for installation steps on your platform.
See [FAQ.txt](FAQ.txt) for the most common troubleshoot questions.
+## Reference guide
+
+See [docs/reference_guide.md](docs/reference_guide.md) for the reference guide to the bcc and bcc/BPF APIs.
+
## Contents
Some of these are s... |
close wal after txn cleanup | @@ -1780,8 +1780,6 @@ ikvdb_close(struct ikvdb *handle)
if (ev(err))
ret = ret ?: err;
- wal_close(self->ikdb_wal);
-
mutex_unlock(&self->ikdb_lock);
ikvdb_txn_fini(self);
@@ -1795,6 +1793,8 @@ ikvdb_close(struct ikvdb *handle)
viewset_destroy(self->ikdb_cur_viewset);
viewset_destroy(self->ikdb_txn_viewset);
+ wal_clos... |
WINC1500: Fix open security bug. | @@ -153,7 +153,9 @@ static mp_obj_t py_winc_start_ap(mp_uint_t n_args, const mp_obj_t *pos_args, mp_
nlr_raise(mp_obj_new_exception_msg(&mp_type_OSError, "Missing WEP key!"));
}
+ if (security != M2M_WIFI_SEC_OPEN) {
key = mp_obj_str_get_str(args[1].u_obj);
+ }
// get channel
mp_uint_t channel = args[3].u_int;
|
Add DECLSPEC_ALLOCATOR for RtlHeap | @@ -4116,10 +4116,11 @@ RtlDestroyHeap(
_In_ _Post_invalid_ PVOID HeapHandle
);
+NTSYSAPI
_Must_inspect_result_
_Ret_maybenull_
_Post_writable_byte_size_(Size)
-NTSYSAPI
+DECLSPEC_ALLOCATOR
PVOID
NTAPI
RtlAllocateHeap(
@@ -4192,6 +4193,10 @@ RtlUnlockHeap(
);
NTSYSAPI
+_Must_inspect_result_
+_Ret_maybenull_
+_Post_writ... |
Disable address ownership validation | @@ -689,8 +689,8 @@ namespace MiningCore.Blockchain.Bitcoin
if (!validateAddressResponse.IsValid)
logger.ThrowLogPoolStartupException($"Daemon reports pool-address '{poolConfig.Address}' as invalid", LogCat);
- if (clusterConfig.PaymentProcessing?.Enabled == true && !validateAddressResponse.IsMine)
- logger.ThrowLogPoo... |
Fix timing-related null pointer crash when tile calculations are invoked before rendering surface is created | @@ -381,6 +381,10 @@ namespace carto {
_visibleTiles.clear();
_preloadingTiles.clear();
+ if (!_tileTransformer) {
+ return;
+ }
+
// Recursively calculate visible tiles
calculateVisibleTilesRecursive(cullState, MapTile(0, 0, 0, _frameNr), _dataSource->getDataExtent());
if (auto options = _options.lock()) {
|
system/ramspeed: skip cases where time too short | @@ -344,7 +344,7 @@ static void print_rate(FAR const char *name, size_t bytes,
printf(RAMSPEED_PREFIX
"Time-consuming is too short,"
" please increase the <repeat number>\n");
- exit(EXIT_FAILURE);
+ return;
}
rate = (uint64_t)bytes * 1000 / cost_time / 1024;
@@ -377,11 +377,12 @@ static void memcpy_speed_test(FAR void... |
Adjust tolerance for gen1/gen2 detection | @@ -54,9 +54,12 @@ bool handle_lightcap(SurviveObject *so, const LightcapElement *_le) {
// would have a hard time generating this signature.
bool isOOTXPulseLength = _le->length >= 3000 && _le->length < 6500;
if (isOOTXPulseLength) {
+ bool firstPulse = dv->last_pulse_times[_le->sensor_id] == 0;
+
uint32_t pulse_dist ... |
Add CC2538 GPIO conversion macro | * number.
*/
#define GPIO_PORT_TO_BASE(PORT) (GPIO_A_BASE + ((PORT) << 12))
+
+/**
+ * \brief Converts a port/pin pair to GPIO HAL pin number
+ * \param PORT The port number in the range 0 - 3 (GPIO_n_NUM).
+ * \param PIN The pin number in the range 0 - 7.
+ * \return The pin representation using GPIO HAL semantics
+ *... |
OpenCoreUefi: Perform output setup after driver connection
This avoids issues with macs performing drawing during connection | @@ -673,7 +673,6 @@ OcLoadUefiSupport (
OcUnblockUnmountedPartitions ();
}
- OcLoadUefiOutputSupport (Config);
OcMiscUefiQuirksLoaded (Config);
if (Config->Uefi.ConnectDrivers) {
@@ -690,4 +689,6 @@ OcLoadUefiSupport (
} else {
OcLoadDrivers (Storage, Config, NULL);
}
+
+ OcLoadUefiOutputSupport (Config);
}
|
Make sure that the persistent signature is never optimized # better func to call (cmp) | @@ -24,7 +24,7 @@ int main(int argc, char** argv) {
* signature, to prevent optimizing it out by clever compiler/link
* optimizers
*/
- if (time(NULL) == 0) {
+ if (time(NULL) == -10) {
return (int)strlen(LIBHFUZZ_module_main);
}
return HonggfuzzMain(argc, argv);
|
Extract control event String parsing
Parsing a String from a serialized control event, encoded as length (2
bytes) + data, will be necessary in several events.
Extract it to a separate method. | @@ -92,7 +92,7 @@ public class ControlEventReader {
return ControlEvent.createKeycodeControlEvent(action, keycode, metaState);
}
- private ControlEvent parseTextControlEvent() {
+ private String parseString() {
if (buffer.remaining() < 2) {
return null;
}
@@ -101,7 +101,14 @@ public class ControlEventReader {
return nu... |
board/fleex/led.c: Format with clang-format
BRANCH=none
TEST=none | @@ -20,21 +20,30 @@ __override const int led_charge_lvl_2 = 100;
/* Fleex: Note there is only LED for charge / power */
__override struct led_descriptor
led_bat_state_table[LED_NUM_STATES][LED_NUM_PHASES] = {
- [STATE_CHARGING_LVL_1] = {{EC_LED_COLOR_AMBER, 1 * LED_ONE_SEC},
+ [STATE_CHARGING_LVL_1] = { { EC_LED_COLOR_... |
fix(???) zl_len_count fn | @@ -379,7 +379,7 @@ static void zl_join(t_zl *x, int natoms, t_atom *buf, int banged){
// ************************* LEN *********************************
static int zl_len_count(t_zl *x){
- return(0);
+ return(x->x_inbuf1.d_max);
}
static void zl_len(t_zl *x, int natoms, t_atom *buf, int banged){
|
Amend changelog entry | Bugfix
- * Fix a bug present in multiple example programs where running the program
- from the shell without any command line argument results argv[1] being
- accessed. The above was fixed for the following: pem2der.c, cert_req.c,
- cert_app.c, cert_write.c, req_app.c, crl_app.c, dh_genprime.c, key_app.c,
- gen_key.c, ... |
Test: Fix broken CMake function call | @@ -26,7 +26,7 @@ endfunction (add_kdb_test suffix)
add_kdb_test (allplugins)
add_kdb_test (conflict REQUIRED_PLUGINS error)
add_kdb_test (error REQUIRED_PLUGINS error list spec)
-add_kdb_test (nested REQUIRED_PLUGINS)
+add_kdb_test (nested REQUIRED_PLUGINS error)
add_kdb_test (simple REQUIRED_PLUGINS error)
set_source... |
Fix noise instrument name not editable | @@ -114,7 +114,7 @@ export const SongEditor = () => {
let action;
if (type === "duty") action = trackerDocumentActions.editDutyInstrument;
if (type === "wave") action = trackerDocumentActions.editWaveInstrument;
- if (type === "noise") action = trackerDocumentActions.editWaveInstrument;
+ if (type === "noise") action =... |
[Fix] Send to Bootloader MsgHandler and drop messages that may stay saved like END_DETECTION msg | @@ -165,7 +165,14 @@ void Luos_Loop(void)
}
else
{
+#ifdef BOOTLOADER
+ if (MsgAlloc_PullMsgFromLuosTask(remaining_msg_number, &returned_msg) == SUCCEED)
+ {
+ LuosBootloader_MsgHandler(returned_msg);
+ }
+#else
remaining_msg_number++;
+#endif
}
}
}
|
Print newline for a message that doesn't have one in the string | @@ -1298,7 +1298,7 @@ EFI_STATUS PrinterProcessSetBuffer(
if (BUFF_STR_TYPE == BufferedObject->Type) {
BUFFERED_STR *pTempBs = (BUFFERED_STR *)BufferedObject->Obj;
if (PRINT_XML != PrinterMode) {
- Print(pTempBs->pStr);
+ PrintTextWithNewLine(pTempBs->pStr);
}
FREE_POOL_SAFE(pTempBs->pStr);
pPrintCtx->BufferedMsgCnt--;... |
Fix Image#resize to use blur option properly with ImageMagick 7
Fix | @@ -12220,7 +12220,9 @@ resize(int bang, int argc, VALUE *argv, VALUE self)
// Set up defaults
filter = image->filter;
-#if defined(IMAGEMAGICK_6)
+#if defined(IMAGEMAGICK_7)
+ blur = 1.0;
+#else
blur = image->blur;
#endif
rows = image->rows;
@@ -12262,7 +12264,9 @@ resize(int bang, int argc, VALUE *argv, VALUE self)
e... |
Add debug print to hole test | @@ -5765,8 +5765,8 @@ int optimistic_ack_test_one(int shall_spoof_ack)
if (test_ctx->cnx_server != NULL) {
picoquic_packet_t * packet = test_ctx->cnx_server->pkt_ctx[picoquic_packet_context_application].retransmit_oldest;
- while (packet != NULL) {
- if (packet->is_ack_trap && packet->sequence_number > hole_number) {
+... |
CID API usage errors | @@ -304,10 +304,8 @@ static int test_property(void)
for (i = 0; i < OSSL_NELEM(queries); i++) {
OSSL_PROPERTY_LIST *pq = NULL;
- if (!TEST_true(ossl_property_read_lock(store))
- || !TEST_true(ossl_method_store_fetch(store, queries[i].nid,
+ if (!TEST_true(ossl_method_store_fetch(store, queries[i].nid,
queries[i].prop, ... |
Refactor functions in postgres/interface module and fix leak.
pgLsnFromWalSegment() leaked two Strings.
Refactor pgLsnRangeToWalSegmentList() to create the StringList in the calling context rather than moving it later. | @@ -498,7 +498,7 @@ pgLsnToWalSegment(uint32_t timeline, uint64_t lsn, unsigned int walSegmentSize)
}
uint64_t
-pgLsnFromWalSegment(const String *walSegment, unsigned int walSegmentSize)
+pgLsnFromWalSegment(const String *const walSegment, const unsigned int walSegmentSize)
{
FUNCTION_TEST_BEGIN();
FUNCTION_TEST_PARAM(... |
test: driver-only: fix disparities in random | @@ -177,7 +177,6 @@ TASKS = {
'ecdsa', # the software implementation that's excluded
# the following lines should not be needed,
# they will be removed by upcoming work
- 'random', # #6856
'pk', # #6857
'x509parse', # #6858
'x509write', # #6858
@@ -185,6 +184,9 @@ TASKS = {
'ssl', # #6860
],
'ignored_tests': {
+ 'test_... |
Patch for tools/tcpaccept.py
fix socket protocol reading | @@ -82,7 +82,37 @@ int kretprobe__inet_csk_accept(struct pt_regs *ctx)
// check this is TCP
u8 protocol = 0;
// workaround for reading the sk_protocol bitfield:
- bpf_probe_read(&protocol, 1, (void *)((long)&newsk->sk_wmem_queued) - 3);
+
+ // Following comments add by Joe Yin:
+ // Unfortunately,it can not work since ... |
pflash: Fix makefile dependency issue
Otherwise we could end up trying to build files before the links
are created.
Let's use a heavy handed approach and not build *anything* until
we have the links.
Reported-by: Brad Bishop | @@ -37,17 +37,17 @@ version.c: .version
echo "const char version[] = \"$(PFLASH_VERSION)\";" ;\
fi) > $@
-%.o : %.c
+%.o : %.c | links
$(Q_CC)$(CC) $(CFLAGS) -c $< -o $@
$(LIBFLASH_SRC): | links
$(CCAN_SRC): | links
-$(LIBFLASH_OBJS): libflash-%.o : libflash/%.c
+$(LIBFLASH_OBJS): libflash-%.o : libflash/%.c | links
$(... |
fix vs output encoding | </Target>
<Target Name="_XmakeConfig" DependsOnTargets="_XmakeProjCheck">
<Message Text="$xmake config $(_XmakeCommonFlags) $(_XmakeConfigFlags)" Importance="High" Condition="'$(XmakeDefault)' != 'false'" />
- <Exec StdOutEncoding="utf-8" StdErrEncoding="utf-8" Command="$(_XmakeEnv)
+ <Exec Command="$(_XmakeEnv)
$(_Xma... |
xive: Properly register escalation interrupts
Otherwise get_xive/set_xive won't work | #define IC_PAGE_SIZE 0x10000
#define TM_PAGE_SIZE 0x10000
#define IPI_ESB_SHIFT (16 + 1)
+#define EQ_ESB_SHIFT (16 + 1)
#define IC_BAR_DEFAULT 0x30203100000ull
#define IC_BAR_SIZE (8 * IC_PAGE_SIZE)
@@ -387,6 +388,9 @@ struct xive {
/* Embedded source IPIs */
struct xive_src ipis;
+
+ /* Embedded escalation interrupts ... |
HLS: Removing attempt to get rid of some warnings | @@ -90,7 +90,6 @@ static void read_table1(snap_membus_t *mem, table1_t t1[TABLE1_SIZE],
for (i = 0; i < t1_used_bytes/sizeof(table1_t); i++) {
*t1[i].name = mem[j](0, 511);
t1[i].age = mem[j + 1](0, 31);
- memset(t1[i].reserved, 0, sizeof(t1[i].reserved));
j += 2;
}
}
|
out_newrelic: fix timestamp value | @@ -94,7 +94,7 @@ static int package_record(struct flb_time *ts, msgpack_object *map,
/* Pack timestamp */
msgpack_pack_str(mp_pck, 9);
msgpack_pack_str_body(mp_pck, "timestamp", 9);
- msgpack_pack_uint64(mp_pck, timestamp_ms / 1000);
+ msgpack_pack_uint64(mp_pck, timestamp_ms);
/* Keep 'log' over 'message' */
if (log ... |
ShipSearch: update for flattened contacts | @@ -48,16 +48,16 @@ const getNicknameForShips = (groups: Groups, contacts: Rolodex): readonly [strin
}
}
- const groupContacts = contacts[path];
+ const groupContacts = contacts;
if (groupContacts) {
const groupEntries = group.members.values();
for (const member of groupEntries) {
- if (groupContacts[member]) {
+ if (g... |
vere: refactors _term_it_show_cursor() | @@ -439,24 +439,28 @@ _term_it_show_blank(u3_utty* uty_u)
static void
_term_it_show_cursor(u3_utty* uty_u, c3_w cur_w)
{
+ c3_w cus_w = uty_u->tat_u.mir.cus_w;
+ c3_w dif_w;
+
//NOTE assumes all styled text precedes the cursor. drum enforces this.
//
- cur_w = cur_w + uty_u->tat_u.mir.sap_w;
+ cur_w += uty_u->tat_u.mir... |
Build: Adjust dependency | @@ -22,6 +22,11 @@ hardware_subdirs = $(addsuffix /hw,$(subdirs))
# all HLS code synthesizes well.
all: software_all
+software_all: software
+
+software:
+ $(MAKE) -C ../software
+
software_all: $(software_subdirs)
hardware_all: $(hardware_subdirs)
|
update the format grammar | @@ -342,7 +342,9 @@ static struct extractor_specifier * format_parse(char *format, size_t * n) {
/*
* format grammar:
- * ([key1]|[][number])+(%<d|ld\lld|f\lf|b\s\S>)
+ * ([key1]|[]|[<n>])+%(d|ld|lld|f|lf|b|<n>s|<n>S)
+ *
+ * n is an integer
*
* usage:
* json_scanf2(str, "[k1][k2]%d", &i);
|
Update readme to reflect implementation status | @@ -4,7 +4,7 @@ MsQuic
MsQuic is a Microsoft implementation of the [IETF QUIC](https://datatracker.ietf.org/wg/quic/about/)
protocol. It is cross platform, written in C and designed to be a general purpose QUIC library.
-> **Important** The QUIC protocol is currently in IETF last call (not RFC quite yet). MsQuic implem... |
NetKVM: Docs: Add log instructions for log gathering | @@ -40,6 +40,23 @@ Disabling the WPP tracing and using plain "kdprint" can be done by simply commen
10. Click the **>>** to the right of **Set Flags and Level**.
11. Put the right values, follow the "Obtaining the providers control GUID, enabled flags and level" section.
+## Getting Driver Binary Traces using Logman (f... |
BugID:16725637:fix compile error | @@ -314,9 +314,10 @@ int HAL_GetFirmwareVesion(_OU_ char *version)
return strlen(version);
}
-#if 0
+#if 1
void *HAL_SemaphoreCreate(void)
{
+ #if 0
sem_t *sem = (sem_t *)malloc(sizeof(sem_t));
if (NULL == sem) {
return NULL;
@@ -328,21 +329,28 @@ void *HAL_SemaphoreCreate(void)
}
return sem;
+ #endif
+ return NULL;
}
... |
Added gauge label format function | @@ -84,6 +84,7 @@ lv_obj_t * lv_gauge_create(lv_obj_t * par, const lv_obj_t * copy)
ext->values = NULL;
ext->needle_colors = NULL;
ext->label_count = LV_GAUGE_DEF_LABEL_COUNT;
+ ext->value_format_cb = NULL;
ext->needle_img = 0;
ext->needle_img_pivot.x = 0;
@@ -118,6 +119,7 @@ lv_obj_t * lv_gauge_create(lv_obj_t * par, ... |
BugID:18712794: open debug feature on esp8266 | @@ -21,6 +21,14 @@ config BSP_SUPPORT_FLASH
bool "BSP_SUPPORT_FLASH"
default y
+config DEBUG_CONFIG_PANIC
+ int "DEBUG_CONFIG_PANIC"
+ default 1
+
+config DEBUG_CONFIG_BACKTRACE
+ int "DEBUG_CONFIG_BACKTRACE"
+ default 1
+
endmenu
endif
|
Fix typo in feature arc constraint
Also, increase ip6 address field width in "show ip6 conn verbose"
output | @@ -293,7 +293,7 @@ VNET_FEATURE_INIT (ct6in2out, static) =
{
.arc_name = "interface-output",
.node_name = "ct6-in2out",
- .runs_before = VNET_FEATURES ("interface-output"),
+ .runs_before = VNET_FEATURES ("interface-tx"),
};
/* *INDENT-ON */
@@ -316,12 +316,12 @@ format_ct6_session (u8 * s, va_list * args)
if (s0 == 0... |
Add _estimator_type to fix using sklearn StratifiedKFold | @@ -2087,6 +2087,7 @@ class CatBoostClassifier(CatBoost):
if key not in not_params and value is not None:
params[key] = value
+ self._estimator_type = 'classifier'
super(CatBoostClassifier, self).__init__(params)
@property
@@ -2453,6 +2454,7 @@ class CatBoostRegressor(CatBoost):
if key not in not_params and value is no... |
make test: tidy worker subprocess output | @@ -1152,6 +1152,6 @@ class Worker(Thread):
self.logger.info(single_line_delim)
self.logger.info("Executable `%s' wrote to stderr:" % executable)
self.logger.info(single_line_delim)
- self.logger.error(err)
+ self.logger.info(err)
self.logger.info(single_line_delim)
self.result = self.process.returncode
|
Surpress warning C4996 (sprintf_s) | #include <stdexcept>
#include <cstdio>
+// Surpress warning C4996 (sprintf_s).
+#ifdef _MSC_VER
+ #define _CRT_SECURE_NO_WARNINGS
+#endif
+
/******************************************************************************
* *
* DeBoorNet *
|
improved example using pwm_chan_config | #include <os/os.h>
#include <pwm/pwm.h>
#include <pwm_nrf52/pwm_nrf52.h>
+#include <bsp/bsp.h>
static struct os_dev dev;
int arg = 0;
struct pwm_dev *pwm;
static int value = 400;
-//static bool down = false;
-
-/* static void test_handler(nrf_drv_pwm_evt_type_t event_type) */
-/* { */
-/* if (event_type == NRF_DRV_PWM_... |
aws_iot: add support for MQTT TLS over port 443 | @@ -236,6 +236,15 @@ IoT_Error_t iot_tls_connect(Network *pNetwork, TLSConnectParams *params) {
mbedtls_ssl_conf_read_timeout(&(tlsDataParams->conf), pNetwork->tlsConnectParams.timeout_ms);
+ /* Use the AWS IoT ALPN extension for MQTT, if port 443 is requested */
+ if (pNetwork->tlsConnectParams.DestinationPort == 443)... |
Use CMSIS cache functions if custom callback is not registered | /**********************
* STATIC PROTOTYPES
**********************/
+static void invalidate_cache(void);
static void dma2d_wait(void);
/**********************
@@ -82,7 +83,7 @@ void lv_gpu_stm32_dma2d_init(void)
*/
void lv_gpu_stm32_dma2d_fill(lv_color_t * buf, lv_coord_t buf_w, lv_color_t color, lv_coord_t fill_w, lv_... |
Allow pen comparisons | @@ -74,6 +74,7 @@ namespace blit {
uint8_t b = 0;
uint8_t a = 0;
+ inline bool operator ==(const Pen rhs) {return r == rhs.r && g == rhs.g && b == rhs.b && a == rhs.a;};
Pen() = default;
Pen(int a) : a(a) {}
Pen(float a) : a((uint8_t)(a * 255.0f)) {}
|
Remove redundant check for core id | @@ -76,7 +76,7 @@ bool ocf_core_is_valid(ocf_cache_t cache, ocf_core_id_t id)
{
OCF_CHECK_NULL(cache);
- if (id > OCF_CORE_ID_MAX || id < OCF_CORE_ID_MIN)
+ if (id > OCF_CORE_ID_MAX)
return false;
if (!env_bit_test(id, cache->conf_meta->valid_core_bitmap))
|
Fixed issue where T.X. Amount metrics were not shown when data was piped.
The report could be generated with zero data so the definitions would
not contain the t.x. Amount. This is especially the case when no data is
available to read from the pipe. | @@ -910,13 +910,15 @@ set_time_format_str (const char *oarg) {
conf.time_format = fmt;
}
-/* Determine if time-served data was set through log-format. */
+/* Determine if some global flags were set through log-format. */
static void
-contains_usecs (void) {
- conf.serve_usecs = 0; /* flag */
+contains_specifier (void) ... |
Disable R on Mac OSX. | @@ -36,9 +36,9 @@ before_script:
- export CMAKE_FLAGS="$CMAKE_FLAGS -DTINYSPLINE_ENABLE_JAVA=TRUE"
- export CMAKE_FLAGS="$CMAKE_FLAGS -DTINYSPLINE_ENABLE_LUA=TRUE"
- export CMAKE_FLAGS="$CMAKE_FLAGS -DTINYSPLINE_ENABLE_PYTHON=TRUE"
- - export CMAKE_FLAGS="$CMAKE_FLAGS -DTINYSPLINE_ENABLE_R=TRUE"
- export CMAKE_FLAGS="$... |
abort on "test unexpectedly fixed" warning | require! <[ stream stream-snitch colors escape-string-regexp ]>
pty = require \pty.js
-export ERROR = /(ford: |\r\x1b\[K\/~)/
+export ERROR = /((ford|warn): |\r\x1b\[K\/~)/
export class Urbit
(args)->
@stdout = process.stdout # overridable
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.