message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
acl: correct acl vat help message
"ipv4"/"ipv6" option is not supported in acl_add_replace and
macip_acl_add_replace vat api.
Update its help message per actual api usage.
Type: fix | @@ -110,7 +110,7 @@ manual_print manual_endian define acl_add_replace
string tag[64]; /* What gets in here gets out in the corresponding tag field when dumping the ACLs. */
u32 count;
vl_api_acl_rule_t r[count];
- option vat_help = "<acl-idx> [<ipv4|ipv6>] <permit|permit+reflect|deny|action N> [src IP/plen] [dst IP/ple... |
revert build.sh | @@ -171,7 +171,10 @@ make package
if [ -f /usr/bin/dpkg ]; then
# Install new package
[[ -z "$NOROOT" ]] && sudo dpkg -i *.deb || echo "No root: skipping package deployment."
-elif [ -f /usr/bin/rpmbuild ]; then
+fi
+
+# RedHat / CentOS
+if [ -f /usr/bin/rpmbuild ]; then
[[ -z "$NOROOT" ]] && sudo rpm -i --force -v *.r... |
fix dependencies when building static | @@ -243,11 +243,11 @@ IF (OPENEXR_BUILD_STATIC)
ENDIF ()
iF (BUILD_DWALOOKUPS)
- ADD_DEPENDENCIES ( IlmImf b44ExpLogTable )
+ ADD_DEPENDENCIES ( IlmImf_static b44ExpLogTable )
ENDIF ()
IF (BUILD_B44EXPLOGTABLE)
- ADD_DEPENDENCIES ( IlmImf dwaLookups )
+ ADD_DEPENDENCIES ( IlmImf_static dwaLookups )
ENDIF()
ENDIF ()
|
Rename unused field
The flag is used only in the server_start() implementation, there is no
need to store it in the structure. | @@ -16,7 +16,6 @@ struct server {
uint16_t local_port;
bool tunnel_enabled;
bool tunnel_forward; // use "adb forward" instead of "adb reverse"
- bool send_frame_meta; // request frame PTS to be able to record properly
};
#define SERVER_INITIALIZER { \
@@ -28,7 +27,6 @@ struct server {
.local_port = 0, \
.tunnel_enabled... |
pem: fix indentation and replace assert after | */
#include "libssh2_priv.h"
-#include <assert.h>
static int
readline(char *line, int line_size, FILE * fp)
@@ -140,22 +139,24 @@ _libssh2_pem_parse(LIBSSH2_SESSION * session,
ret = -1;
goto out;
}
+
all_methods = libssh2_crypt_methods();
while ((cur_method = *all_methods++)) {
if (*cur_method->pem_annotation &&
- memc... |
try it with apt | @@ -31,7 +31,7 @@ env:
# unoptimized routines. See https://www.openssl.org/docs/man1.1.0/crypto/OPENSSL_ia32cap.html
- S2N_LIBCRYPTO=openssl-1.1.0 OPENSSL_ia32cap="~0x200000200000000" BUILD_S2N=true TESTS=integration GCC6_REQUIRED=true
- S2N_LIBCRYPTO=openssl-1.1.0 LATEST_CLANG=true TESTS=fuzz
- - TESTS=sawHMAC SAW_HMA... |
in_random: use new input chunk registration calls | @@ -50,6 +50,8 @@ static int in_random_collect(struct flb_input_instance *i_ins,
int fd;
int ret;
uint64_t val;
+ msgpack_packer mp_pck;
+ msgpack_sbuffer mp_sbuf;
struct flb_in_random_config *ctx = in_context;
if (ctx->samples == 0) {
@@ -74,19 +76,21 @@ static int in_random_collect(struct flb_input_instance *i_ins,
c... |
GM ignition: remove signal with noise and false positives | @@ -29,7 +29,6 @@ extern int can_silent;
// Ignition detected from CAN meessages
bool ignition_can = false;
-bool ignition_cadillac = false;
uint32_t ignition_can_cnt = 0U;
#define ALL_CAN_SILENT 0xFF
@@ -197,16 +196,9 @@ void ignition_can_hook(CANPacket_t *to_push) {
if (bus == 0) {
// GM exception
- // TODO: verify o... |
better logic with StringSplitter | @@ -483,12 +483,12 @@ static inline TStringSplitter<It> StringSplitter(It begin, size_t len) {
return {begin, begin + len};
}
-template <class Str>
+template <class Str, std::enable_if_t<!std::is_pointer<std::remove_cv_t<std::remove_reference_t<Str>>>::value, int> = 0>
static inline auto StringSplitter(Str& s) {
return... |
openssl-dsa.pod.in: Fix glitch: pvk-string -> pvk-strong | @@ -38,7 +38,7 @@ B<openssl> B<dsa>
[B<-pubout>]
{- $OpenSSL::safe::opt_engine_synopsis -}{- $OpenSSL::safe::opt_provider_synopsis -}
-=for openssl ifdef pvk-string pvk-weak pvk-none engine
+=for openssl ifdef pvk-strong pvk-weak pvk-none engine
=head1 DESCRIPTION
|
SW: Adding fake queue mode support | @@ -92,6 +92,8 @@ struct snap_card {
size_t errinfo_size; /* Size of errinfo */
void *errinfo; /* Err info Buffer */
struct cxl_event event; /* Buffer to keep event from IRQ */
+ unsigned int attach_timeout_sec;
+ unsigned int queue_length; /* unused */
};
/* To be used for software simulation, use funcs provided by ac... |
Always run tty check. | @@ -139,7 +139,7 @@ class Command(BaseCommand):
executable = os.path.join(options['server_root'], 'apachectl')
name = executable.ljust(len(options['process_name']))
- if options['isatty'] and sys.stdout.isatty():
+ if sys.stdout.isatty():
process = None
def handler(signum, frame):
|
Compiler warning (format overflow) | @@ -72,8 +72,8 @@ static grib_handle* grib_sections_copy_internal(grib_handle* hfrom,grib_handle*
long section_offset[MAX_NUM_SECTIONS]={0,};
long off=0;
grib_handle* h;
- char section_length_str[]="section0Length";
- char section_offset_str[]="offsetSection0";
+ char section_length_str[64]="section0Length";
+ char sec... |
links: prevents title from being overwritten
fixes | @@ -83,11 +83,11 @@ export class LinkSubmit extends Component<LinkSubmitProps, LinkSubmitState> {
fetch(`https://noembed.com/embed?url=${linkValue}`)
.then(response => response.json())
.then((result) => {
- if (result.title) {
+ if (result.title && !this.state.linkTitle) {
this.setState({ linkTitle: result.title });
}
... |
Function name needs to be CNAME, set from outside to allow suffixing for dynamic_arch | @@ -825,7 +825,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
int __attribute__ ((noinline))
-dgemm_kernel(BLASLONG m, BLASLONG n, BLASLONG k, double alpha, double * __restrict__ A, double * __restrict__ B, double * __restrict__ C, BLASLONG ldc)
+CNAME(BLASLONG m, BLASLONG n, BLASLONG k, ... |
Remove extra mem_size line [ci skip] | @@ -49,7 +49,7 @@ if out != "":
# loop through available nodes, selecting the node with the most free mem
for i in avail_nodes:
cpu_line = lines[line_idx]
- mem_size_line = lines[line_idx + 1]
+ # mem. size unused. skip and use mem. free
mem_free_line = lines[line_idx + 2]
line_idx += 3
|
uname: Document errors | @@ -27,6 +27,11 @@ This plugin defines following keynames below its mount point:
- version
- machine
+## Errors
+
+The only documented error in `uname(2)` is when an invalid buffer is passed to it.
+As this is an implementation error only, this plugin should not run into errors.
+
## Restrictions
This plugin is read-on... |
poly/tests: printing only real value of polynomial to screen (verbose) | /*
- * Copyright (c) 2007 - 2015 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
@@ -328,7 +328,7 @@ void autotest_polyf_findroots()
if (liquid_a... |
fix(style): reset style lookup table after gc sweep/lv_deinit | @@ -169,6 +169,9 @@ void lv_style_reset(lv_style_t * style)
lv_style_prop_t lv_style_register_prop(uint8_t flag)
{
+ if(LV_GC_ROOT(_lv_style_custom_prop_flag_lookup_table) == NULL) {
+ _lv_style_custom_prop_flag_lookup_table_size = 0;
+ }
/*
* Allocate the lookup table if it's not yet available.
*/
|
add move constructor and assignment operator | @@ -99,8 +99,24 @@ class SimdAlignedBuffer64
return *this;
}
+#if __cplusplus >= 201103L
+ SimdAlignedBuffer64(SimdAlignedBuffer64 &&rhs) noexcept
+ : _handle(rhs._handle), _buffer(rhs._buffer)
+ {
+ rhs._handle = nullptr;
+ rhs._buffer = nullptr;
+ }
+
+ SimdAlignedBuffer64 &operator=(SimdAlignedBuffer64 &&rhs) noexce... |
gftpui.c: show only gftp version & url in log window
When running the gftp-gtk or gtfp-text, this msg is displayed:
gFTP 2.0.19 | @@ -154,8 +154,7 @@ gftpui_common_about (gftp_logging_func logging_function, gpointer logdata)
{
char *str;
- logging_function (gftp_logging_misc, logdata, "%s, Copyright (C) 1998-2008 Brian Masney <masneyb@gftp.org>. If you have any questions, comments, or suggestions about this program, please feel free to email them... |
hv:irq: avoid out-of-range access to irq_alloc_bitmap[]
Logically, out-of-range access won't happen at these places. However, it
depends on the behaviour of other codes.
This commit makes changes to explicitly eliminate the possibility in these
functions. | @@ -41,10 +41,11 @@ uint32_t alloc_irq_num(uint32_t req_irq)
if (irq == IRQ_INVALID) {
/* if no valid irq num given, find a free one */
irq = ffz64_ex(irq_alloc_bitmap, NR_IRQS);
- irq = (irq == NR_IRQS) ? IRQ_INVALID : irq;
}
- if (irq != IRQ_INVALID) {
+ if (irq >= NR_IRQS) {
+ irq = IRQ_INVALID;
+ } else {
bitmap_se... |
enable CRT shader in the exported builds, fix | @@ -1036,7 +1036,7 @@ if(BUILD_STUB)
target_include_directories(tic80${SCRIPT} PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
if(BUILD_SDLGPU)
- target_compile_definitions(tic80studio PUBLIC CRT_SHADER_SUPPORT)
+ target_compile_definitions(tic80${SCRIPT} PRIVATE CRT_SHADER_SUPPORT)
endif()
if(MINGW)
|
refactor: dont rebuild sqlite3 | @@ -15,7 +15,7 @@ file(GLOB ADAPTER_CODE "*.h" "*.c")
file(GLOB SPECS_CODE "specs-code/*.h" "specs-code/*.c")
file(GLOB MUJS_CODE "mujs/*.h" "mujs/*.c")
-file(GLOB SQLITE3_CODE "sqlite3/*.h" "sqlite3/*.c")
+#file(GLOB SQLITE3_CODE "sqlite3/*.h" "sqlite3/*.c")
include_directories(${CMAKE_SOURCE_DIR})
include_directories... |
Change the start position check on INCBIN
Currently INCBIN gives an error if your start position == file size.
This means you cannot include an empty file.
It also means the text of the error message is incorrect
(as the start is not greater, but equal to the length of the file) | @@ -774,7 +774,7 @@ void out_BinaryFile(char const *s, int32_t startPos)
if (fseek(f, 0, SEEK_END) != -1) {
fsize = ftell(f);
- if (startPos >= fsize) {
+ if (startPos > fsize) {
error("Specified start position is greater than length of file\n");
fclose(f);
return;
@@ -841,7 +841,7 @@ void out_BinaryFileSlice(char cons... |
dpdk: detect also | @@ -10,7 +10,7 @@ git submodule update --recursive
patch -p 1 -d dpdk/ < ixgbe_18_11.patch
-if lspci | grep -q 'ConnectX-5'; then
+if lspci | grep -q 'ConnectX-[4,5]'; then
patch -p 1 -d dpdk/ < mlx5_18_11.patch
elif lspci | grep -q 'ConnectX-3'; then
patch -p 1 -d dpdk/ < mlx4_18_11.patch
|
add ctrl+R shortcut in the Surf mode | @@ -1520,6 +1520,10 @@ static void processShortcuts()
}
else if(keyWasPressedOnce(tic_key_f7)) setCoverImage();
else if(keyWasPressedOnce(tic_key_f8)) takeScreenshot();
+ else if(keyWasPressedOnce(tic_key_r))
+ {
+ if(ctrl) runProject();
+ }
#if !defined(__EMSCRIPTEN__)
else if(keyWasPressedOnce(tic_key_f9)) startVideo... |
changelog: added 2.3.1 changes | +2017-02-07 Franklin "Snaipe" Mathieu <franklinmathieu@gmail.com>
+
+ * criterion: version 2.3.1
+ * Fix: correctly handle malformed --debug parameter
+ * Fix: replaced the cryptic message when the debugger is not present with a more explicit one.
+ * Fix: cache section limits on report hooks for significantly better p... |
libhfcommon: use #error comment | @@ -158,7 +158,7 @@ static int execCC(int argc, char** argv) {
char* getIncPaths(void) {
#if !defined(_HFUZZ_INC_PATH)
#error \
- "You need to define _HFUZZ_INC_PATH to a directory containing directrory 'includes' with libhfcommon/libhfuzz/libhfnetdriver includes"
+ "You need to define _HFUZZ_INC_PATH to a directory wi... |
fixup: missing , | @@ -181,7 +181,7 @@ def generate_elektra_builds_fast() {
tasks << build_and_test(
"debian-stable-fast",
DOCKER_IMAGES.stretch,
- CMAKE_FLAGS_BUILD_ALL
+ CMAKE_FLAGS_BUILD_ALL,
[TEST_NOKDB]
)
tasks << build_and_test(
|
Typo in SSL_CONF_CTX_set_flags.pod | =head1 NAME
-SSL_CONF_CTX_set_flags, SSL_CONF_CTX_clear_flags - Set of clear SSL configuration context flags
+SSL_CONF_CTX_set_flags, SSL_CONF_CTX_clear_flags - Set or clear SSL configuration context flags
=head1 SYNOPSIS
|
Fixes bad multi-screen value behaviour | @@ -133,7 +133,13 @@ void ui_712_new_field(const void *const field_ptr, const uint8_t *const data,
default:
PRINTF("Unhandled type\n");
}
- ux_flow_prev();
+
+ // not pretty, manually changes the internal state of the UX flow
+ // so that we always land on the first screen of a paging step without any visible
+ // scre... |
Make HGetall and HKeys local only | @@ -753,6 +753,7 @@ redis_parse_req(struct msg *r)
case 5:
if (str5icmp(m, 'h', 'k', 'e', 'y', 's')) {
r->type = MSG_REQ_REDIS_HKEYS;
+ r->msg_routing = ROUTING_LOCAL_NODE_ONLY;
r->is_read = 1;
break;
}
@@ -1015,6 +1016,7 @@ redis_parse_req(struct msg *r)
if (str7icmp(m, 'h', 'g', 'e', 't', 'a', 'l', 'l')) {
r->type = ... |
Use the frag_context variable only when SICSLOWPAN_CONF_FRAG is set. | @@ -1959,6 +1959,7 @@ input(void)
int req_size = uncomp_hdr_len + (uint16_t)(frag_offset << 3)
+ packetbuf_payload_len;
if(req_size > sizeof(uip_buf)) {
+#if SICSLOWPAN_CONF_FRAG
LOG_ERR(
"input: packet and fragment context %u dropped, minimum required IP_BUF size: %d+%d+%d=%d (current size: %u)\n",
frag_context,
@@ -1... |
use relaxed load for last search position in an arena | @@ -103,9 +103,9 @@ static size_t mi_block_count_of_size(size_t size) {
----------------------------------------------------------- */
static bool mi_arena_alloc(mi_arena_t* arena, size_t blocks, mi_bitmap_index_t* bitmap_idx)
{
- size_t idx = mi_atomic_load_acquire(&arena->search_idx); // start from last search
+ size... |
Fix make test scapy python patch issue, | @@ -23,6 +23,7 @@ $(PIP_INSTALL_DONE):
$(PIP_PATCH_DONE): $(PIP_INSTALL_DONE)
@echo --- patching ---
+ @sleep 1 # Ensure python recompiles patched *.py files -> *.pyc
for f in $(CURDIR)/patches/scapy-2.3.3/*.patch ; do \
echo Applying patch: $$(basename $$f) ; \
patch -p1 -d $(SCAPY_SOURCE) < $$f ; \
|
decision: specify that mmapstorage frees data on kdbSet | @@ -194,7 +194,7 @@ ksRemoveByName (cowMeta, "meta:/type");
keyString(copiedKey); // Error! Original value has been deleted. Pointer to data in copiedKey points to potentially freed memory
```
- The same problems in principle exist for `mmapstorage`, however this is just a storage plugin and the user does not have any ... |
Travis: Always consider exit status of `run_all`
This commit fixes | @@ -163,7 +163,6 @@ script:
# Unfortunately the Haskell tests do not work currently:
# https://github.com/ElektraInitiative/libelektra/issues/1631
if [[ "$HASKELL" != "ON" ]]; then
- ninja run_all
- kdb run_all
+ ninja run_all && kdb run_all
fi
fi
|
Squashed 'opae-libs/' changes from 7552df61..7052a77c
Move OPAE version back to 1.4.0.
git-subtree-dir: opae-libs
git-subtree-split: | @@ -29,7 +29,7 @@ project(opae-libs)
set(OPAE_VERSION_MAJOR 1 CACHE STRING "OPAE major version" FORCE)
set(OPAE_VERSION_MINOR 4 CACHE STRING "OPAE minor version" FORCE)
-set(OPAE_VERSION_REVISION 1 CACHE STRING "OPAE revision version" FORCE)
+set(OPAE_VERSION_REVISION 0 CACHE STRING "OPAE revision version" FORCE)
set(O... |
enclave-tls/dist: add the postun rules in the rpm spec | %global _missing_build_ids_terminate_build 0
%global PROJECT inclavare-containers
+%global ENCLAVE_TLS_ROOTDIR /opt/enclave-tls
+%global ENCLAVE_TLS_BINDIR /usr/share/enclave-tls/samples
+
Name: enclave-tls
Version: 0.6.1
Release: %{centos_base_release}%{?dist}
@@ -51,9 +54,12 @@ popd
%install
pushd %{name}
-Enclave_Tl... |
util/usb_if.h: Format with clang-format
BRANCH=none
TEST=none | @@ -34,9 +34,8 @@ int usb_findit(const char *serialno, uint16_t vid, uint16_t pid,
* pointer, if provided along with 'allow_less', lets the caller know how many
* bytes were received.
*/
-int usb_trx(struct usb_endpoint *uep, void *outbuf, int outlen,
- void *inbuf, int inlen, int allow_less,
- size_t *rxed_count);
+in... |
Add cached GetDlgItem | @@ -314,28 +314,31 @@ INT_PTR CALLBACK PhSipMemoryDialogProc(
{
PPH_LAYOUT_ITEM graphItem;
PPH_LAYOUT_ITEM panelItem;
+ HWND totalPhysicalLabel;
PhSipInitializeMemoryDialog();
MemoryDialog = hwndDlg;
+ totalPhysicalLabel = GetDlgItem(hwndDlg, IDC_TOTALPHYSICAL);
+
PhInitializeLayoutManager(&MemoryLayoutManager, hwndDlg... |
io-libs/netcdf-cxx: bump to v4.3.1 | @@ -21,7 +21,7 @@ Name: %{pname}-%{compiler_family}-%{mpi_family}%{PROJ_DELIM}
Summary: C++ Libraries for the Unidata network Common Data Form
License: NetCDF
Group: %{PROJ_NAME}/io-libs
-Version: 4.3.0
+Version: 4.3.1
Release: 1%{?dist}
Url: http://www.unidata.ucar.edu/software/netcdf/
Source0: https://github.com/Unid... |
options/internal: Fix file_window mmap() path bug | @@ -19,7 +19,7 @@ struct file_window {
#ifdef MLIBC_MAP_FILE_WINDOWS
if(mlibc::sys_vm_map(nullptr, (size_t)info.st_size, PROT_READ, MAP_PRIVATE,
- fd, 0, &global_tzinfo_buffer))
+ fd, 0, &_ptr))
mlibc::panicLogger() << "mlibc: Error mapping TZinfo" << frg::endlog;
#else
_ptr = getAllocator().allocate(info.st_size);
|
gpu: macOS also tries linking to MoltenVK; | @@ -1837,6 +1837,7 @@ bool gpu_init(gpu_config* config) {
PFN_vkGetInstanceProcAddr vkGetInstanceProcAddr = (PFN_vkGetInstanceProcAddr) GetProcAddress(state.library, "vkGetInstanceProcAddr");
#elif __APPLE__
state.library = dlopen("libvulkan.1.dylib", RTLD_NOW | RTLD_LOCAL);
+ if (!state.library) state.library = dlopen... |
VERSION bump to version 1.1.22 | @@ -45,7 +45,7 @@ set(CMAKE_C_FLAGS_PACKAGE "-g -O2 -DNDEBUG")
# micro version is changed with a set of small changes or bugfixes anywhere in the project.
set(LIBNETCONF2_MAJOR_VERSION 1)
set(LIBNETCONF2_MINOR_VERSION 1)
-set(LIBNETCONF2_MICRO_VERSION 21)
+set(LIBNETCONF2_MICRO_VERSION 22)
set(LIBNETCONF2_VERSION ${LIB... |
Do not start TSCH EB sending process when the TSCH_EB_PERIOD is set to zero | @@ -1181,8 +1181,10 @@ turn_on(void)
tsch_is_started = 1;
/* Process tx/rx callback and log messages whenever polled */
process_start(&tsch_pending_events_process, NULL);
+ if(TSCH_EB_PERIOD > 0) {
/* periodically send TSCH EBs */
process_start(&tsch_send_eb_process, NULL);
+ }
/* try to associate to a network or start... |
configfs: fix index out of bounds | @@ -101,8 +101,12 @@ uint64_t tcmu_cfgfs_dev_get_info_u64(struct tcmu_device *dev, const char *name,
strerror(errno));
*fn_ret = -EINVAL;
return 0;
+ } else if (ret == 0) {
+ tcmu_err("Invalid device info.\n");
+ *fn_ret = -EINVAL;
+ return 0;
}
- buf[sizeof(buf)-1] = '\0'; /* paranoid? Ensure null terminated */
+ buf[... |
Trivial: test_container.py
First argument of a classmethod should be named 'cls'. | @@ -26,11 +26,11 @@ class ContainerIntegrationTestCase(VppTestCase):
""" Container integration extended testcases """
@classmethod
- def setUpClass(self):
- super(ContainerIntegrationTestCase, self).setUpClass()
+ def setUpClass(cls):
+ super(ContainerIntegrationTestCase, cls).setUpClass()
# create pg0 and pg1
- self.c... |
make fpuPresent and mpuPresent optional | <!-- V1.1: Endian specifies the endianess of the processor/device -->
<xs:element name="endian" type="endianType"/>
<!-- V1.1: mpuPresent specifies whether or not a memory protection unit is physically present -->
- <xs:element name="mpuPresent" type="xs:boolean"/>
+ <xs:element name="mpuPresent" type="xs:boolean" minO... |
tools: fix static code analysis overflow of the buffer
Width is not specified for 's' conversion specifier.
This can result in an overflow of the buffer provided in argument 3 of a call to 'fscanf' | @@ -173,7 +173,7 @@ STATIC fpga_result parse_perf_attributes(struct udev_device *dev,
globfree(&pglob);
return FPGA_EXCEPTION;
}
- if (fscanf(file, "%s", attr_value) != 1) {
+ if (fscanf(file, "%127s", attr_value) != 1) {
OPAE_ERR("Failed to read %s", pglob.gl_pathv[i]);
goto out;
}
|
coap: Take ownership over the packet before calling reserveHeader. | @@ -968,6 +968,9 @@ void coap_sock_handler(sock_udp_t *sock, sock_async_flags_t type, void *arg) {
return;
}
+ // take ownership over the packet
+ msg->owner = COMPONENT_OPENCOAP;
+
if (packetfunctions_reserveHeader(&msg, COAP_MAX_MSG_LEN) == E_FAIL) {
openserial_printf("Could not reserve header\n");
return;
|
Patch tinycthread to work with Visual Studio C11; | @@ -162,6 +162,8 @@ int _tthread_timespec_get(struct timespec *ts, int base);
#endif
#elif defined(__GNUC__) && defined(__GNUC_MINOR__) && (((__GNUC__ << 8) | __GNUC_MINOR__) < ((4 << 8) | 9))
#define _Thread_local __thread
+#elif defined(_MSC_VER) && (!defined(STDC_NO_THREADS) || defined(STDC_NO_THREADS) && STDC_NO_TH... |
added configUSE_TICKLESS_IDLE | * See http://www.freertos.org/a00110.html
*----------------------------------------------------------*/
+#define configUSE_TICKLESS_IDLE 0
#define configUSE_PREEMPTION 1
#define configUSE_IDLE_HOOK 0
#define configUSE_TICK_HOOK 1
|
[fix] Bad bash syntax in github action | @@ -38,6 +38,7 @@ runs:
using: 'composite'
steps:
- name: Commit the changes
+ id: commit
run: |
git config --global user.name ${{ inputs.name }}
ORIGIN="$(pwd)"
@@ -48,17 +49,20 @@ runs:
if [ -z "${CHANGES}" ]; \
then \
echo "No changes, stopping now"; \
- cd ${origin} \
+ echo "::save-state name=COMMIT::NO"; \
+ cd "... |
Call stream_close before removing stream from map | @@ -12232,15 +12232,15 @@ int ngtcp2_conn_is_in_draining_period(ngtcp2_conn *conn) {
int ngtcp2_conn_close_stream(ngtcp2_conn *conn, ngtcp2_strm *strm) {
int rv;
- rv = ngtcp2_map_remove(&conn->strms, (ngtcp2_map_key_type)strm->stream_id);
+ rv = conn_call_stream_close(conn, strm);
if (rv != 0) {
- assert(rv != NGTCP2_... |
file_optical: remove unused mutex
Forgot to remove completion mutex when file_optical was
converted to runner's threading. | @@ -78,7 +78,6 @@ struct fbo_state {
uint8_t event_op_ch_code;
uint8_t async_cache_count;
pthread_mutex_t state_mtx;
- pthread_mutex_t completion_mtx;
int curr_handler;
};
@@ -231,7 +230,6 @@ static int fbo_open(struct tcmu_device *dev)
tcmu_dbg("FBO Open: fd %d\n", state->fd);
pthread_mutex_init(&state->state_mtx, NUL... |
quic: add -v and -s to filter response headers | @@ -710,6 +710,9 @@ def handle_quic_event(cpu, data, size):
if allowed_quic_event and ev.type != allowed_quic_event:
return
+ if allowed_res_header_name and ev.type == "send_response_header" and ev.h2o_header_name != allowed_res_header_name:
+ return
+
res = OrderedDict()
load_common_fields(res, ev)
@@ -767,9 +770,12 @... |
test: fix typo in comment in threadstest.c | @@ -366,7 +366,7 @@ static void thread_provider_load_unload(void)
* Test 2: Simple fetch worker
* Test 3: Worker downgrading a shared EVP_PKEY
* Test 4: Worker using a shared EVP_PKEY
- * Test 5: Workder loading and unloading a provider
+ * Test 5: Worker loading and unloading a provider
*/
static int test_multi(int id... |
rbd: fix llu vs PRIu64 use for len/off
Should be using PRIu64 for off/len because they are uint64_t. | @@ -1367,7 +1367,8 @@ static int tcmu_rbd_aio_caw(struct tcmu_device *dev, struct tcmulib_cmd *cmd,
goto out_free_bounce_buffer;
}
- tcmu_dev_dbg(dev, "Start CAW off:%llu, len:%llu\n", off, len);
+ tcmu_dev_dbg(dev, "Start CAW off: %"PRIu64", len: %"PRIu64"\n",
+ off, len);
ret = rbd_aio_compare_and_write(state->image,... |
nimble/host: Start extended scan if possible
While enabling scan for mesh, appropriate scan type should be use. | @@ -369,6 +369,16 @@ done:
int bt_mesh_scan_enable(void)
{
+#if MYNEWT_VAL(BLE_EXT_ADV)
+ struct ble_gap_ext_disc_params uncoded_params =
+ { .itvl = MESH_SCAN_INTERVAL, .window = MESH_SCAN_WINDOW,
+ .passive = 1 };
+
+ BT_DBG("");
+
+ return ble_gap_ext_disc(g_mesh_addr_type, 0, 0, 0, 0, 0,
+ &uncoded_params, NULL, NU... |
Re-enable combined fw image for factory programming. | @@ -630,6 +630,10 @@ endif
# This target generates the uvc, bootloader and firmware images.
$(OPENMV): $(BOOTLOADER) $(UVC) $(CM4) $(FIRMWARE)
ifeq ($(OMV_ENABLE_BL), 1)
+ # Generate a contiguous firmware image for factory programming
+ $(OBJCOPY) -Obinary --pad-to=$(MAIN_APP_ADDR) --gap-fill=0xFF $(FW_DIR)/$(BOOTLOADE... |
Fix count variable calculation in typedarray copyWithin
Fixes
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi | @@ -1873,16 +1873,16 @@ ecma_builtin_typedarray_prototype_copy_within (ecma_value_t this_arg, /**< this
}
}
- int32_t distance = (int32_t) (end - start);
- int32_t offset = (int32_t) (info.typedarray_length - target);
- int32_t count = JERRY_MIN (distance, offset);
-
if (target >= info.typedarray_length || start >= end... |
Implement UPDATE_MARK_UPDATE_ANIMATION. | @@ -21427,7 +21427,7 @@ void update_animation()
if(self->animating)
{
//self->nextanim = _time + (self->animation->delay[f]);
- self->update_mark |= 1; // frame updated, mark it
+ self->update_mark |= UPDATE_MARK_UPDATE_ANIMATION; // frame updated, mark it
// just switch frame to f, if frozen, expand_time will deal wit... |
Add message on successful save | @@ -1460,10 +1460,13 @@ void app_input_cmd(App_state* a, App_input_cmd ev) {
}
bool app_hacky_try_save(App_state* a) {
- if (!a->filename) return false;
- if (a->field.height == 0 || a->field.width == 0) return false;
+ if (!a->filename)
+ return false;
+ if (a->field.height == 0 || a->field.width == 0)
+ return false;... |
Fix 80 characters indentation in rsa_verify_wrap() | @@ -178,7 +178,8 @@ static int rsa_verify_wrap( void *ctx, mbedtls_md_type_t md_alg,
int key_len;
unsigned char buf[MBEDTLS_PK_RSA_PUB_DER_MAX_BYTES];
mbedtls_pk_info_t pk_info = mbedtls_rsa_info;
- psa_algorithm_t psa_alg_md = PSA_ALG_RSA_PKCS1V15_SIGN( mbedtls_psa_translate_md( md_alg ) );
+ psa_algorithm_t psa_alg_m... |
Images path fix | @@ -2,10 +2,11 @@ import subprocess
import pysurvive
import sys
+import os
from gooey import Gooey, GooeyParser
@Gooey(tabbed_groups=True,
- image_dir="images",
+ image_dir=os.path.dirname(os.path.realpath(__file__)) + "/images",
use_cmd_args=True,
program_name="pysurvive",
richtext_controls=True,
|
libcupsfilters: Silenced warning in rastertopdf() filter function | @@ -1178,18 +1178,16 @@ void pdf_set_line(struct pdf_info * info, unsigned line_n, unsigned char *line,
return;
}
- switch(info->outformat)
- {
- case OUTPUT_FORMAT_PDF:
- memcpy((info->page_data->getBuffer()+(line_n*info->line_bytes)), line, info->line_bytes);
- break;
- case OUTPUT_FORMAT_PCLM:
+ if (info->outformat ... |
Fix OP_SETGV in output_code | @@ -2456,7 +2456,7 @@ void output_opcode( uint8_t opcode )
"LOADI_6", "LOADI_7", "LOADSYM", "LOADNIL",
// 0x10
"LOADSELF","LOADT", "LOADF", "GETGV",
- 0, 0, 0, "GETIV",
+ "SETGV", 0, 0, "GETIV",
"SETIV", 0, 0, "GETCONST",
"SETCONST",0, 0, "GETUPVAR",
// 0x20
|
targets: zephyr: Follow Zephyr 1.7-pre on console refactors.
JerryScript-DCO-1.0-Signed-off-by: Paul Sokolovsky | #include <zephyr.h>
#include <uart.h>
+#include <drivers/console/console.h>
#include <drivers/console/uart_console.h>
#include "getline-zephyr.h"
/* While app processes one input line, Zephyr will have another line
buffer to accumulate more console input. */
-static struct uart_console_input line_bufs[2];
+static struc... |
feat(venachain):Modify demo main Makefile to adapt demo_venachain | # Generate sub-directory list
OBJECTS_DIR = $(BOAT_BUILD_DIR)/demo
-.PHONY: all demo_ethereum demo_platon demo_platone demo_fiscobcos demo_fabric demo_hw_bcs demo_chainmaker
-all: $(OBJECTS_DIR) demo_ethereum demo_platon demo_platone demo_fiscobcos demo_fabric demo_hw_bcs demo_chainmaker
+.PHONY: all demo_ethereum demo... |
plugins type BUGFIX use after free | @@ -2166,7 +2166,7 @@ ly_type_store_union(const struct ly_ctx *ctx, const struct lysc_type *type, cons
/* store format-specific data for later prefix resolution */
subvalue->format = format;
- subvalue->prefix_data = ly_type_union_store_prefix_data(ctx, value, value_len, format, prefix_data);
+ subvalue->prefix_data = ... |
use absolute view geometry to calculate position | @@ -346,23 +346,23 @@ swayc_t *new_floating_view(wlc_handle handle) {
view->sticky = false;
// Set the geometry of the floating view
- struct wlc_geometry geometry;
- wlc_view_get_visible_geometry(handle, &geometry);
+ const struct wlc_geometry *geometry = wlc_view_get_geometry(handle);
// give it requested geometry, b... |
system/uorb: simply orb_check by SNIOC_UPDATED | #include <errno.h>
#include <fcntl.h>
#include <limits.h>
-#include <poll.h>
#include <stdio.h>
#include <sys/ioctl.h>
#include <unistd.h>
@@ -228,20 +227,7 @@ int orb_get_state(int fd, FAR struct orb_state *state)
int orb_check(int fd, FAR bool *updated)
{
- struct pollfd fds[1];
- int ret;
-
- fds[0].fd = fd;
- fds[0... |
POWER10: Use POWER9 as a fallback
If the toolchain is too old, or the mma features isn't set on a POWER10
fall back to the POWER9 loops. | @@ -52,6 +52,9 @@ static gotoblas_t *get_coretype(void) {
if (__builtin_cpu_supports ("arch_3_1") && __builtin_cpu_supports ("mma"))
return &gotoblas_POWER10;
#endif
+ /* Fall back to the POWER9 implementation if the toolchain is too old or the MMA feature is not set */
+ if (__builtin_cpu_is("power10"))
+ return &goto... |
Use bool return type | @@ -217,7 +217,7 @@ static bool try_quantize_rgb_blue_contract(
*
* @return Returns @c false on failure, @c true on success.
*/
-static int try_quantize_rgba_blue_contract(
+static bool try_quantize_rgba_blue_contract(
vfloat4 color0,
vfloat4 color1,
uint8_t output[8],
|
spiffs: restore dependency of flash targets on spiffs images
Closes | @@ -47,14 +47,16 @@ function(spiffs_create_partition_image partition base_dir)
ADDITIONAL_MAKE_CLEAN_FILES
${image_file})
-
idf_component_get_property(main_args esptool_py FLASH_ARGS)
idf_component_get_property(sub_args esptool_py FLASH_SUB_ARGS)
esptool_py_flash_target(${partition}-flash "${main_args}" "${sub_args}")
... |
{AH} add __all__ statement | @@ -823,3 +823,11 @@ cdef class VCFProxy(NamedTupleProxy):
idx, f = self.map_key2field[key]
TupleProxy._setindex(self, idx, str(value))
+
+__all__ = [
+ "TupleProxy",
+ "NamedTupleProxy",
+ "GTFProxy",
+ "GFF3Proxy",
+ "BedProxy",
+ "VCFProxy"]
|
app/mediarecorder : change logic of mediarecorder error handling
Modify to check whether the return value is error
Modify the 'isPlaying' update logic that it is updated in started or finished callback | @@ -83,6 +83,7 @@ public:
void onPlaybackStarted(MediaPlayerObserverInterface::Id id)
{
std::cout << "onPlaybackStarted" << std::endl;
+ isPlaying = true;
}
void onPlaybackFinished(MediaPlayerObserverInterface::Id id)
@@ -234,28 +235,27 @@ public:
return;
}
- mp.setObserver(shared_from_this());
- mp.setDataSource(std::... |
pg: add support for ip mode through cli
Type: improvement | @@ -689,6 +689,7 @@ create_pg_if_cmd_fn (vlib_main_t * vm,
unformat_input_t _line_input, *line_input = &_line_input;
u32 if_id, gso_enabled = 0, gso_size = 0, coalesce_enabled = 0;
clib_error_t *error = NULL;
+ pg_interface_mode_t mode = PG_MODE_ETHERNET;
if (!unformat_user (input, unformat_line_input, line_input))
ret... |
Override Intel build status | @@ -48,5 +48,7 @@ try{
GLOBAL_ERROR = e
throw e
} finally {
- currentBuild.result = (GLOBAL_ERROR != null) ? 'FAILURE' : "SUCCESS"
+ // As builds are failing out of our control, unblock E2E builds by overriding build result to success
+ // currentBuild.result = (GLOBAL_ERROR != null) ? 'FAILURE' : "SUCCESS"
+ currentBu... |
Added support for converting 16 bits-per-component UIImages | @@ -62,7 +62,7 @@ namespace carto {
CGColorSpaceGetColorTable(colorSpace, colorTable.data());
}
- if (bytesPerComponent != 1) {
+ if (bytesPerComponent != 1 && bytesPerComponent != 2) {
Log::Errorf("BitmapUtils::CreateBitmapFromUImage: Failed to create Bitmap, unsupported bytes per component parameter: %u", bytesPerCom... |
multi-page tables for manifest | +%\newcommand{\firstColWidth}{2.3cm}
+%\newcommand{\secondColWidth}{1.25cm}
+
\input{common/manifest_intro}
-\newcommand{\firstColWidth}{4.9cm}
+\newcommand{\firstColWidth}{4.95cm}
\newcommand{\secondColWidth}{1.25cm}
\vspace*{1.0cm}
\vspace*{\tabSpaceBot{}}
\end{table}
+\renewcommand{\firstColWidth}{4.1cm}
+\renewcomm... |
Fix up line length. | @@ -82,10 +82,14 @@ namespace ARIASDK_NS_BEGIN {
throw std::invalid_argument("nullptr passed for viewer name");
}
- return m_dataViewerCollection.end() != std::find_if(m_dataViewerCollection.begin(), m_dataViewerCollection.end(), [&viewerName](std::shared_ptr<IDataViewer> viewer)
+ auto lookupResult = std::find_if(m_da... |
TCPMv2: pe_send_soft_reset_run should use pe_sender_response_run
BRANCH=none
TEST=run through new attach to get soft reset condition
Tested-by: Denis Brockus | @@ -3655,6 +3655,12 @@ static void pe_send_soft_reset_entry(int port)
prl_reset_soft(port);
pe_sender_response_msg_entry(port);
+
+ /*
+ * Mark the temporary timer PE_TIMER_TIMEOUT as expired to limit
+ * to sending a single SoftReset message.
+ */
+ pd_timer_enable(port, PE_TIMER_TIMEOUT, 0);
}
static void pe_send_sof... |
Remove fprintf() in tests
It was committed by mistake. | @@ -91,7 +91,6 @@ static void test_adb_devices_daemon_start_mixed() {
struct sc_adb_device *device = &devices[0];
assert(!strcmp("0123456789abcdef", device->serial));
assert(!strcmp("unauthorized", device->state));
- fprintf(stderr, "==== [%s]\n", device->model);
assert(!device->model);
device = &devices[1];
|
printer tree MAINTENANCE priv pointer abstraction | @@ -695,8 +695,20 @@ struct trt_tree_ctx {
const struct lysc_node *cn; /**< Actual pointer to compiled node. */
};
+/**
+ * @brief Check if lysp node is available from
+ * the current compiled node.
+ *
+ * Use only if trt_tree_ctx.lysc_tree is set to true.
+ */
+#define TRP_TREE_CTX_LYSP_NODE_PRESENT(CN) \
+ (CN->priv... |
vere/aes_siv: check claimed length | @@ -330,6 +330,9 @@ u3qea_sivc_de(u3_atom key,
if ( u3r_met(3, key) > 64 ) {
return u3_none;
}
+ if ( c3y == u3qa_gth(u3r_met(3, txt), len) ) {
+ return u3_none;
+ }
u3r_bytes_reverse(0, 64, key_y, key);
return _siv_de(key_y, 64, ads, iv, len, txt);
|
plugins: register new custom plugins | #define FLB_PLUGINS_H
#include <monkey/mk_core.h>
+#include <fluent-bit/flb_custom.h>
#include <fluent-bit/flb_input.h>
#include <fluent-bit/flb_output.h>
#include <fluent-bit/flb_filter.h>
int flb_plugins_register(struct flb_config *config)
{
+ struct flb_custom_plugin *custom;
struct flb_input_plugin *in;
struct flb_... |
Makefile add pkg libs/includes for NetBSD | @@ -142,11 +142,12 @@ else ifeq ($(OS),NetBSD)
ARCH := NETBSD
ARCH_SRCS := $(sort $(wildcard netbsd/*.c))
- ARCH_CFLAGS := -std=c11 -I/usr/local/include \
+ ARCH_CFLAGS := -std=c11 -I/usr/local/include -I/usr/pkg/include \
-Wextra -Wno-override-init \
-funroll-loops -D_KERNTYPES
- ARCH_LDFLAGS := -L/usr/local/include \... |
A couple comments. | ++ abet :: complete cycle
^- {(each (list ovum) seed) _sys}
?^ but.gut
+ ::
+ :: cycle has ordered a reboot; report it
+ ::
[[%| u.but.gut] sys]
+ ::
+ :: no reboot; flush output
+ ::
[[%& (flop out.gut)] sys(out.gut ~)]
:: :: ++boot:le
++ boot :: reboot
|
BugID:18962832:Refine netmgr connect API with timeout param | @@ -52,7 +52,7 @@ uint32_t auth_req_times = 0;
uint32_t auth_req_fail_times = 0;
uint32_t auth_rsp_times = 0;
#endif
-char ota_server_name[CONFIG_HTTPC_SERVER_NAME_SIZE] = "http://mjfile-test.smartmidea.net:80/";
+char ota_server_name[CONFIG_HTTPC_SERVER_NAME_SIZE] = "https://mjfile-test.smartmidea.net:80";
uint32_t ot... |
rms/slurm: save use_interactive_step option to example config file | @@ -473,7 +473,7 @@ echo "PartitionName=normal Nodes=c[1-4] Default=YES MaxTime=24:00:00 State=UP Ov
# 5/5/2020 karl@oden.utexas.edu - enable configless option
echo "SlurmctldParameters=enable_configless" >> $RPM_BUILD_ROOT/%{_sysconfdir}/slurm.conf.ohpc
# 11/9/2021 karl@oden.utexas.edu - setup interactive jobs for sal... |
Fix return code when CLI is passed too many args | @@ -119,6 +119,27 @@ void nvm_current_cmd(struct Command Command)
g_cur_command = Command;
}
+//temp, until uefi and os validation agree to
+//return code unification.
+EFI_STATUS uefi_to_os_ret_val(EFI_STATUS uefi_rc)
+{
+ EFI_STATUS rc = EFI_SUCCESS;
+ switch (uefi_rc)
+ {
+ case (0):
+ break;
+ case (2):
+ rc = 201;... |
`fio_write` schedule flush event directly | @@ -2014,7 +2014,7 @@ void fio_force_event(intptr_t uuid, enum fio_io_event ev) {
fio_defer_push_task(deferred_ping, (void *)uuid, NULL);
break;
case FIO_EVENT_ON_READY:
- fio_defer_push_task(deferred_on_ready, (void *)uuid, NULL);
+ fio_defer_push_urgent(deferred_on_ready, (void *)uuid, NULL);
break;
}
}
@@ -2547,10 +... |
grid: fixing readme and contributor docs | @@ -6,7 +6,7 @@ Landscape is built primarily using [React], [Typescript], and [Tailwind CSS]. [V
## Getting Started
-To get started using Landscape first you need to run, `npm run bootstrap` at the top level of the greater urbit repo. This will install your npm dependencies and correctly link the current implementation... |
touch_sensor: add esp_timer error check | @@ -457,12 +457,11 @@ esp_err_t touch_pad_filter_start(uint32_t filter_period_ms)
ESP_RETURN_ON_FALSE(filter_period_ms >= portTICK_PERIOD_MS, ESP_ERR_INVALID_ARG, TOUCH_TAG, "Touch pad filter period error");
ESP_RETURN_ON_FALSE(rtc_touch_mux, ESP_ERR_INVALID_STATE, TOUCH_TAG, "Touch pad not initialized");
+ esp_err_t r... |
kernel/init: call fs_initialize before clock_initialize to initialize semaphore for inode
clock_initialize use the semahpore for inode, g_inode_sem before initialization.
A semaphore shouldn't be used without initialization.
So we need to call fs_initilize function which initializes inode semaphore before that. | @@ -434,6 +434,12 @@ void os_start(void)
wd_initialize();
}
+#if CONFIG_NFILE_DESCRIPTORS > 0
+ /* Initialize the file system (needed to support device drivers) */
+
+ fs_initialize();
+#endif
+
/* Initialize the POSIX timer facility (if included in the link) */
#ifdef CONFIG_HAVE_WEAKFUNCTIONS
@@ -484,12 +490,6 @@ voi... |
nucleo-f401re; fix build for bootloader. | #include <syscfg/syscfg.h>
#include <os/os_dev.h>
+#if MYNEWT_VAL(UART_0)
#include <uart/uart.h>
#include <uart_hal/uart_hal.h>
+#endif
#include <hal/hal_bsp.h>
#include <hal/hal_gpio.h>
@@ -110,6 +112,8 @@ hal_bsp_init(void)
{
int rc;
+ (void)rc;
+
#if MYNEWT_VAL(UART_0)
rc = os_dev_create((struct os_dev *) &hal_uart0... |
only set heartbeat lost when in a car safety mode | @@ -142,6 +142,12 @@ void set_safety_mode(uint16_t mode, int16_t param) {
can_init_all();
}
+bool is_car_safety_mode(uint16_t mode) {
+ return (mode != SAFETY_SILENT) &&
+ (mode != SAFETY_NOOUTPUT) &&
+ (mode != SAFETY_ELM327);
+}
+
// ***************************** USB port *****************************
int get_health_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.