message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Hash no longer caches keys when empty | @@ -435,7 +435,7 @@ FIO_INLINE void fiobj_free(FIOBJ o) {
return;
if (fiobj_ref_dec(o))
return;
- if (FIOBJECT2VTBL(o)->each) /* testing obj count ignores hash key caching */
+ if (FIOBJECT2VTBL(o)->each && FIOBJECT2VTBL(o)->count(o))
fiobj_free_complex_object(o);
else
FIOBJECT2VTBL(o)->dealloc(o, NULL, NULL);
|
nlinv: fix noncart ENLIVE
Commit rewrote part of the image size estimation for
noncartesian nlinv, and overwrote the number of maps in the `dims`
array, breaking noncartesian ENLIVE. | @@ -139,7 +139,6 @@ int main_nlinv(int argc, char* argv[argc])
long dims[DIMS];
md_copy_dims(DIMS, dims, ksp_dims);
- dims[MAPS_DIM] = nmaps;
complex float* traj = NULL;
long trj_dims[DIMS];
@@ -162,6 +161,9 @@ int main_nlinv(int argc, char* argv[argc])
md_copy_dims(DIMS - 3, dims + 3, ksp_dims + 3);
}
+ // for ENLIVE ... |
iphone: Ruby VM make time_t unsigned to expand date capacity | #define NUM2GIDT(v) NUM2UINT(v)
#define PRI_GIDT_PREFIX PRI_INT_PREFIX
#define rb_time_t time_t
-#define SIGNEDNESS_OF_TIME_T -1
+#define SIGNEDNESS_OF_TIME_T 1
#define TIMET2NUM(v) LONG2NUM(v)
#define NUM2TIMET(v) NUM2LONG(v)
#define PRI_TIMET_PREFIX PRI_LONG_PREFIX
|
pmalloc: tolerate move_pages failure on numa node
Type: fix | @@ -309,7 +309,8 @@ pmalloc_map_pages (clib_pmalloc_main_t * pm, clib_pmalloc_arena_t * a,
to support non-numa kernels */
clib_mem_get_page_stats (va, CLIB_MEM_PAGE_SZ_DEFAULT, 1, &stats);
- if (stats.per_numa[numa_node] != 1)
+ if (stats.per_numa[numa_node] != 1 &&
+ !(numa_node == 0 && stats.unknown == 1))
{
u16 allo... |
Tool for integration tests of protobuf jaeger UDP protocol. | @@ -326,5 +326,6 @@ ALLOW yt/jaeger/plugin -> vendor/github.com/uber/jaeger-lib
ALLOW yt/jaeger/plugin -> vendor/github.com/uber/jaeger-client-go
ALLOW yt/jaeger/plugin -> vendor/github.com/spf13/viper
ALLOW yt/jaeger/plugin -> vendor/github.com/gorilla
+ALLOW yt/jaeger/plugin -> vendor/github.com/gogo
DENY .* -> vendo... |
net:netlib fix vulerability while parsing malicious URLs
netlib_parsehttpurl() should be returned when error is detected | @@ -119,7 +119,7 @@ int netlib_parsehttpurl(const char *url, uint16_t *port, char *hostname, int hos
*dest++ = *src++;
bytesleft--;
} else {
- ret = -E2BIG;
+ return -E2BIG;
}
}
*dest = '\0';
@@ -140,7 +140,7 @@ int netlib_parsehttpurl(const char *url, uint16_t *port, char *hostname, int hos
/* The rest of the line is ... |
os/dbuild.sh : Refactor dbuild.sh
I changed the hardcoded part of the dbuild.sh to read board-specific predefined options.
In addition, it provide board-specific options to the user with a menu | @@ -112,7 +112,7 @@ function SELECT_OPTION()
read SELECTED_START
fi
- case ${SELECTED_START} in
+ case ${SELECTED_START,,} in
1|build)
BUILD
;;
@@ -294,40 +294,78 @@ function SELECT_CONFIG()
CONFIGURE ${BOARD}/${CONFIG} || exit 1
}
+function get_selected_board
+{
+ if [ "${CONFIG_ARCH_BOARD_ARTIK053}" == "y" ]; then
+ ... |
allows -N without -F (temporary, revisit) | @@ -218,8 +218,8 @@ _main_getopt(c3_i argc, c3_c** argv)
// XX revisit
if ( (0 == u3_Host.ops_u.fak_c) && (c3y == u3_Host.ops_u.net) ) {
- fprintf(stderr, "-N only makes sense with -F\n");
- return c3n;
+ // fprintf(stderr, "-N only makes sense with -F\n");
+ u3_Host.ops_u.net = c3n;
} else if ( (0 == u3_Host.ops_u.fak... |
improved NC detection | @@ -1201,8 +1201,8 @@ for(zeigerhs = zeigerhsakt; zeigerhs < handshakelistptr; zeigerhs++)
}
if(memcmp(zeigermac->addr, zeigerhs->ap, 6) == 0)
{
- if((zeigerhs->status &ST_APLESS) != ST_APLESS) getnc(zeigerhs);
eapolmpbestcount++;
+ if((zeigerhs->status &ST_APLESS) != ST_APLESS) getnc(zeigerhs);
if((zeigerhs->status &S... |
kernel/os/test - Prevent unused-but-set warning | @@ -117,6 +117,11 @@ sem_test_basic_handler(void *arg)
struct os_sem *sem;
os_error_t err;
+ /* Prevent unused-but-set-variable warning when system assert is
+ * enabled.
+ */
+ (void)t;
+
sem = &g_sem1;
t = os_sched_get_current_task();
|
Moved debugging code for clarity. | @@ -2524,8 +2524,8 @@ ws_broadcast_fifo (void *value, void *user_data) {
return 0;
}
+ LOG ((" - Sending...\n"));
ws_send_data (client, packet->type, packet->data, packet->size);
- LOG ((" - Sent\n"));
return 0;
}
|
Fix clang warning (-Wsometimes-uninitialized) | @@ -647,7 +647,7 @@ static int unpack_double(grib_accessor* a, double* val, size_t *len)
int isp;
- bif_trunc_t * bt;
+ bif_trunc_t * bt = NULL;
long count = 0;
@@ -749,7 +749,7 @@ static int pack_double(grib_accessor* a, const double* val, size_t *len)
long hpos = 0;
long lpos = 0;
int isp;
- bif_trunc_t * bt;
+ bif_t... |
u3: check for road stack overflow on every nock %2 and %9 | @@ -1838,6 +1838,23 @@ _n_kale(u3_noun a)
return a;
}
+/* _n_sane(): check for stack overflow
+*/
+static inline void
+_n_sane(c3_ys off_ys)
+{
+ if ( !off_ys ) {
+ if( !(u3R->cap_p > u3R->hat_p) ) {
+ u3m_bail(c3__meme);
+ }
+ }
+ else {
+ if( !(u3R->cap_p < u3R->hat_p) ) {
+ u3m_bail(c3__meme);
+ }
+ }
+}
+
typedef s... |
Optimize get_jsonb_path_all avoiding an iterator
Instead of creating an iterator object at each step down the JSONB
object/array, we can just just examine its object/array flags, which is
faster. Also, use the recently introduced JsonbValueAsText instead of
open-coding the same thing, for code simplicity.
Author: Niki... | @@ -1329,7 +1329,6 @@ get_jsonb_path_all(FunctionCallInfo fcinfo, bool as_text)
{
Jsonb *jb = PG_GETARG_JSONB_P(0);
ArrayType *path = PG_GETARG_ARRAYTYPE_P(1);
- Jsonb *res;
Datum *pathtext;
bool *pathnulls;
int npath;
@@ -1337,7 +1336,6 @@ get_jsonb_path_all(FunctionCallInfo fcinfo, bool as_text)
bool have_object = fa... |
Tweak random docs. | @@ -63,7 +63,7 @@ typedef enum {
TCOD_DISTRIBUTION_GAUSSIAN_RANGE_INVERSE
} TCOD_distribution_t;
-/* Pseudorandom number generator toolkit, all attributes are private. */
+// Old RNG, this struct and its attribute are private.
struct TCOD_Random_MT_CMWC {
TCOD_random_algo_t algorithm; // algorithm identifier
TCOD_distr... |
actions MAINTENANCE minor improvements | @@ -39,7 +39,6 @@ jobs:
- {
name: "Release, Ubuntu 18.04, gcc",
os: "ubuntu-18.04",
- branches: "all",
build-type: "Release",
dep-build-type: "Release",
cc: "gcc",
@@ -52,7 +51,6 @@ jobs:
- {
name: "Release, Ubuntu 18.04, clang",
os: "ubuntu-18.04",
- branches: "all",
build-type: "Release",
dep-build-type: "Release",
c... |
zeromq plugins: fix typo | @@ -13,7 +13,7 @@ if (ZMQ_FOUND)
set (SOURCES ${ADAPTER_SRC_FILES})
add_library (${ADAPTER_OBJECT} OBJECT ${SOURCES})
- target_include_directories (${ADAPTER_OBJECT} SYSTEM PUBLIC ${ZMQ_INCLUDE_DIR})
+ target_include_directories (${ADAPTER_OBJECT} SYSTEM PUBLIC ${ZMQ_INCLUDE_DIRS})
# NOTE CMAKE_POSITION_INDEPENDENT_COD... |
chat-cli: address style issues | =^ char state.cli
(~(transmit sole-lib state.cli) [%ins send-pos `@c`i.to-send])
$(moves [(effect:sh-out %det char) moves], send-pos +(send-pos), to-send t.to-send)
-
-
:: +edit: apply sole edit
::
:: called when typing into the cli prompt.
|= options=(list [cord tank])
^- move
(effect %tab options)
-
:: +print: puts s... |
Fixed STM32F407VE sectors_info type. | @@ -53,10 +53,10 @@ static const uint32_t flash_size = 0x00080000;
* The last pair in the list will have sectors starting at that address and ending
* at address flash_start + flash_size.
*/
-static const uint32_t sectors_info[] = {
- 0x08000000, 0x00004000,
- 0x08010000, 0x00010000,
- 0x08020000, 0x00020000,
+static c... |
common MAINTENANCE sanity assert | @@ -4471,6 +4471,7 @@ _sr_rwlock(sr_rwlock_t *rwlock, int timeout_ms, sr_lock_mode_t mode, sr_cid_t ci
if (!wr_urged) {
rwlock->writer = cid;
}
+ assert(rwlock->writer == cid);
} else if (mode == SR_LOCK_READ_UPGR) {
/* READ UPGR lock */
|
FIX: update _run_memcached_solo.sh script | #!/bin/sh
-./memcached -E .libs/default_engine.so -X .libs/syslog_logger.so -X .libs/ascii_scrub.so $@
+CURRENT_DIR_PATH=`pwd`
+
+ ./memcached -E $CURRENT_DIR_PATH/.libs/default_engine.so -X $CURRENT_DIR_PATH/.libs/syslog_logger.so -X $CURRENT_DIR_PATH/.libs/ascii_scrub.so $@
|
Fixing direct member variable access in CGGradient.
CGGradient's initializer access CGColorSpace's colorSpacemodel var, it should use CGColorSpaceGetModel | @@ -51,12 +51,8 @@ __CGGradient::~__CGGradient() {
}
void __CGGradient::initWithColorComponents(const float* components, const float* locations, size_t count, CGColorSpaceRef colorspace) {
- __CGColorSpace* cs = (__CGColorSpace*)colorspace;
DWORD componentCount = 0;
-
- _colorSpaceModel = cs->colorSpaceModel;
-
- switc... |
Added intermediate key for ini
Because a null-key has a different value than a key with a value, this test fails using ini... | @@ -56,6 +56,7 @@ This command will return the following values as an exit status:
kdb set user/tests/cp/examples/kdb-cp/key key1
kdb set user/tests/cp/examples/kdb-cp/key/first key
kdb set user/tests/cp/examples/kdb-cp/key/second key
+kdb set user/tests/cp/examples/kdb-cp/cpkey key1
kdb set user/tests/cp/examples/kdb-... |
Link -lm or -lm_hard for Android ARMv7. | @@ -493,6 +493,14 @@ else
CCOMMON_OPT += -mfloat-abi=hard
FCOMMON_OPT += -mfloat-abi=hard
endif
+
+ifeq ($(OSNAME), Android)
+ifeq ($(ARM_SOFTFP_ABI), 1)
+EXTRALIB += -lm
+else
+EXTRALIB += -Wl,-lm_hard
+endif
+endif
endif
ifeq ($(ARCH), arm64)
|
[kernel] raise exception instead of calling exit | @@ -134,8 +134,7 @@ int AVI::compute(double time)
if (_numerics_problem->size != _sizeOutput)
{
- std::cout << "AVI::compute - size mismatch between AVI size and and the current size" << std::endl;
- std::exit(EXIT_FAILURE);
+ RuntimeException::selfThrow("AVI::compute - size mismatch between AVI size and and the curren... |
stm32/boards/NUCLEO_L432KC: Specify L4 OpenOCD config file for this MCU. | @@ -2,3 +2,4 @@ MCU_SERIES = l4
CMSIS_MCU = STM32L432xx
AF_FILE = boards/stm32l432_af.csv
LD_FILES = boards/stm32l432.ld boards/common_basic.ld
+OPENOCD_CONFIG = boards/openocd_stm32l4.cfg
|
Set stream handle to 0 in LMS_DestroyStream()
should handle attempts to use stream after closing in nicer manner | @@ -731,12 +731,19 @@ API_EXPORT int CALL_CONV LMS_DestroyStream(lms_device_t *device, lms_stream_t *s
{
if(stream == nullptr)
{
- lime::error("stream cannot be NULL.");
+ lime::error("Stream cannot be NULL.");
+ return -1;
+ }
+ if (stream->handle == 0)
+ {
+ lime::error("Invalid stream handle");
return -1;
}
- lime::... |
Have util/mktar.sh display the absolute path to the tarball | @@ -30,4 +30,7 @@ if [ -z "$TARFILE" ]; then TARFILE="$NAME.tar"; fi
git archive --worktree-attributes --format=tar --prefix="$NAME/" -v HEAD \
| gzip -9 > "$TARFILE.gz"
-ls -l "$TARFILE.gz"
+# Good old way to ensure we display an absolute path
+td=`dirname $TARFILE`
+tf=`basename $TARFILE`
+ls -l "`cd $td; pwd`/$tf.gz... |
configs/rtl8721csm/loadable_apps : Enable CONFIG_MM_ASSERT_ON_FAIL | @@ -982,7 +982,7 @@ CONFIG_KMM_REGIONS=3
CONFIG_KMM_NHEAPS=2
# CONFIG_KMM_FORCE_ALLOC_AT is not set
# CONFIG_GRAN is not set
-# CONFIG_MM_ASSERT_ON_FAIL is not set
+CONFIG_MM_ASSERT_ON_FAIL=y
#
# Work Queue Support
|
highlevel: try to get symver working | @@ -111,13 +111,13 @@ Elektra * elektraOpen (const char * application, KeySet * defaults, KeySet * con
return elektra;
}
-ELEKTRA_SYMVER_DECLARE ("libelektra_0.8", elektraOpen, v1);
-
Elektra * ELEKTRA_SYMVER (elektraOpen, v1) (const char * application, KeySet * defaults, ElektraError ** error)
{
return elektraOpen (ap... |
JPEGDEC/PicoGraphics: Add support for RGB888 target.
Fixes | @@ -137,6 +137,9 @@ MICROPY_EVENT_POLL_HOOK
// Dithered output to RGB332
current_graphics->set_pixel_dither({pDraw->x + x, pDraw->y + y}, (RGB565)(pDraw->pPixels[i]));
}
+ } else if (current_graphics->pen_type == PicoGraphics::PEN_RGB888) {
+ current_graphics->set_pen(RGB((RGB565)pDraw->pPixels[i]).to_rgb888());
+ curr... |
Remove a test which is unsafe | @@ -14784,13 +14784,6 @@ out_unlocked:
if (free_cnt_applied) {
atomic_subtract_int(&asoc->refcnt, 1);
}
-#ifdef INVARIANTS
-#if defined(__FreeBSD__) && !defined(__Userspace__)
- if (mtx_owned(&stcb->tcb_mtx)) {
- panic("Leaving with tcb mtx owned?");
- }
-#endif
-#endif
}
if (top != NULL) {
sctp_m_freem(top);
|
SOVERSION bump to version 2.2.8 | @@ -63,7 +63,7 @@ set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_
# set version of the library
set(LIBYANG_MAJOR_SOVERSION 2)
set(LIBYANG_MINOR_SOVERSION 2)
-set(LIBYANG_MICRO_SOVERSION 7)
+set(LIBYANG_MICRO_SOVERSION 8)
set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG_MI... |
ELM327: Fixed dreaded double response bug (tcp connection allocation issue). | @@ -119,10 +119,11 @@ static uint16_t elm_mode_keepalive_period = ELM_MODE_KEEPALIVE_PERIOD_DEFAULT;
// All ELM operations are global, so send data out to all connections
void ICACHE_FLASH_ATTR elm_tcp_tx_flush() {
if(!rsp_buff_len) return; // Was causing small error messages
+
for(elm_tcp_conn_t *iter = connection_lis... |
peview: Remove SetWindowSubclass | @@ -51,6 +51,7 @@ typedef struct _EDIT_CONTEXT
HBRUSH BrushNormal;
HBRUSH BrushPushed;
HBRUSH BrushHot;
+ WNDPROC DefaultWindowProc;
} EDIT_CONTEXT, *PEDIT_CONTEXT;
HICON PhpSearchBitmapToIcon(
@@ -421,12 +422,16 @@ LRESULT CALLBACK PhpSearchWndSubclassProc(
_In_ HWND hWnd,
_In_ UINT uMsg,
_In_ WPARAM wParam,
- _In_ LP... |
fix case sensitivity for properties | @@ -291,6 +291,7 @@ class NEATProperty(object):
"""
The basic unit for representing properties in NEAT. NEATProperties are (key,value) tuples.
+ NEATProperty keys are always in lower case
"""
IMMUTABLE = 2
@@ -298,7 +299,7 @@ class NEATProperty(object):
BASE = 0
def __init__(self, key_val, precedence=OPTIONAL, score=0,... |
fix(README) improve grammar
The real intent is to kick CI to test a MicroPython build. | </p>
<p align="center">
-LVGL provides everything you need to create embedded GUI with easy-to-use graphical elements, beautiful visual effects and low memory footprint.
+LVGL provides everything you need to create an embedded GUI with easy-to-use graphical elements, beautiful visual effects and a low memory footprint.... |
CLEANUP: add error handling for auto_scrub | @@ -1282,11 +1282,13 @@ static void sm_check_and_scrub_stale(bool *retry)
/* remove stale items after zk_timeout have passed
* since a new node is added to the cluster
*/
- if (arcus_memcached_scrub_stale() != 0) {
+ if (arcus_memcached_scrub_stale() == 0) {
+ sm_info.node_added_time = 0;
+ } else {
arcus_conf.logger->... |
Fix include UART names | @@ -44,15 +44,15 @@ struct hal_uart_irq {
volatile uint32_t ui_cnt;
};
-#if defined(USART8_BASE)
+#if defined(UART8_BASE)
static struct hal_uart_irq uart_irqs[8];
-#elif defined(USART7_BASE)
+#elif defined(UART7_BASE)
static struct hal_uart_irq uart_irqs[7];
#elif defined(USART6_BASE)
static struct hal_uart_irq uart_ir... |
Match Check: Save test data below `/tests` | @@ -27,17 +27,17 @@ Keynames are all either relative to to-be-tested key (starting with `./` or `../
Full example:
```sh
-# Backup-and-Restore:/examples/mathcheck
+# Backup-and-Restore:/tests/mathcheck
-sudo kdb mount mathcheck.dump /examples/mathcheck mathcheck
+sudo kdb mount mathcheck.dump /tests/mathcheck mathcheck... |
chore(file_explorer): use the correct example path | Simple File Explorer
"""""""""""""""""""""""""
-.. lv_example:: others/ime/lv_example_file_explorer_1
+.. lv_example:: others/file_explorer/lv_example_file_explorer_1
:language: c
Control File Explorer
"""""""""""""""""""""""""
-.. lv_example:: others/ime/lv_example_file_explorer_2
+.. lv_example:: others/file_explorer... |
Update size for base64 buffer | @@ -13,7 +13,7 @@ static Value encode(VM *vm, int argCount, Value *args) {
ObjString *string = AS_STRING(args[0]);
- int size = b64e_size(string->length + 1);
+ int size = b64e_size(string->length) + 1;
char *buffer = ALLOCATE(vm, char, size);
int actualSize = b64_encode((unsigned char*)string->chars, string->length, (... |
hdata/memory: ignore homer and occ reserved ranges
We populate these from the HOMER BARs in the PBA directly. There's no
need to take the hostboot supplied values so just ignore the
corresponding reserved ranges. | @@ -457,6 +457,12 @@ static void get_hb_reserved_mem(struct HDIF_common_hdr *ms_vpd)
if (label_size > 64)
label_size = 64;
+ /* these are broken, just ignore them */
+ if (!strncmp(hb_resv_mem->label, "ibm,homer-image", label_size))
+ continue;
+ if (!strncmp(hb_resv_mem->label, "ibm,occ-common-area", label_size))
+ co... |
Avoid nxt_port_mmap_header_t redefinition warning. | #include <nxt_main.h>
#include <nxt_port_memory_int.h>
-typedef struct nxt_port_mmap_header_s nxt_port_mmap_header_t;
-
#ifndef _NXT_GO_PROCESS_T_DEFINED_
#define _NXT_GO_PROCESS_T_DEFINED_
typedef struct nxt_go_process_s nxt_go_process_t;
#endif
-nxt_port_mmap_header_t *
+struct nxt_port_mmap_header_s *
nxt_go_port_mm... |
py/objenumerate: Check for valid args in enumerate constructor.
For the case where MICROPY_CPYTHON_COMPAT is disabled. This fix makes
basics/fun_error2.py pass and not crash the interpreter. | @@ -59,7 +59,7 @@ STATIC mp_obj_t enumerate_make_new(const mp_obj_type_t *type, size_t n_args, siz
o->iter = mp_getiter(arg_vals.iterable.u_obj, NULL);
o->cur = arg_vals.start.u_int;
#else
- (void)n_kw;
+ mp_arg_check_num(n_args, n_kw, 1, 2, false);
mp_obj_enumerate_t *o = m_new_obj(mp_obj_enumerate_t);
o->base.type = ... |
ACRN:DM:VGPU: Fix the incorrect use after free
It still tries to access the gpu->vdpy_handel after the gpu
is free. This is incorrect.
Acked-by: Wang Yu | @@ -1680,12 +1680,13 @@ virtio_gpu_deinit(struct vmctx *ctx, struct pci_vdev *dev, char *opts)
}
}
+ vdpy_deinit(gpu->vdpy_handle);
+
if (gpu) {
pthread_mutex_destroy(&gpu->mtx);
free(gpu);
}
virtio_gpu_device_cnt--;
- vdpy_deinit(gpu->vdpy_handle);
}
uint64_t
|
highlevel: fix error handling | @@ -205,7 +205,14 @@ void elektraSaveKey (Elektra * elektra, Key * key, ElektraError ** error)
if (ret == -1)
{
ElektraError * kdbSetError = elektraErrorCreateFromKey (elektra->parentKey);
- if (elektraErrorCode (kdbSetError) != 30) // ELEKTRA_ERROR_CONFLICT = 30
+ if (elektraErrorCode (kdbSetError) != ELEKTRA_ERROR_CO... |
don't allocate more than PTRDIFF_MAX on aligned allocations | @@ -19,7 +19,7 @@ static void* mi_heap_malloc_zero_aligned_at(mi_heap_t* heap, size_t size, size_t
// the address at offset is aligned regardless of the allocated size.
mi_assert(alignment > 0 && alignment % sizeof(uintptr_t) == 0);
if (alignment <= sizeof(uintptr_t)) return _mi_heap_malloc_zero(heap,size,zero);
- if (... |
.travis.yml: esp32: Use Pycopy fork of mbedtls.
Also, for debugging, dump mbedtls git revs. | @@ -332,7 +332,10 @@ jobs:
script:
- make ${MAKEOPTS} -C mpy-cross
- git -C esp-idf checkout $(grep "ESPIDF_SUPHASH_V3 :=" ports/esp32/Makefile | cut -d " " -f 3)
- - git -C esp-idf submodule update --init components/json/cJSON components/esp32/lib components/esptool_py/esptool components/expat/expat components/lwip/lw... |
Create rules from bindings only for supported devices | @@ -1056,6 +1056,11 @@ void DeRestPluginPrivate::bindingToRuleTimerFired()
for (; i != end; ++i)
{
+ if (!i->modelId().startsWith(QLatin1String("FLS-NB")))
+ {
+ continue;
+ }
+
if (bnd.srcAddress == i->address().ext())
{
if (bnd.srcEndpoint == i->fingerPrint().endpoint)
|
examples/term: use different fd for read/write, exclude more characters | #define ARRAYSIZE(x) (sizeof(x) / sizeof(*x))
-static int fd_tty;
+static int fd_tty_write;
+static int fd_tty_read;
static int fd_log;
int LLVMFuzzerInitialize(int* argc, char*** argv)
{
- fd_tty = open("/dev/tty", O_RDWR | O_NONBLOCK);
- if (fd_tty == -1) {
- perror("open('/dev/tty')");
+ fd_tty_write = open("/dev/tt... |
tramp: add state to wait for serial to be ready | @@ -20,6 +20,7 @@ typedef enum {
PARSER_READ_MAGIC,
PARSER_READ_PAYLOAD,
PARSER_READ_CRC,
+ PRASER_WAIT_FOR_READY
} tramp_parser_state_t;
tramp_settings_t tramp_settings;
@@ -163,8 +164,8 @@ vtx_update_result_t serial_tramp_update() {
parser_state = PARSER_READ_MAGIC;
return VTX_WAIT;
} else {
- parser_state = PARSER_I... |
add bootsrap updater to post | @@ -167,12 +167,24 @@ systemctl restart httpd.service >/dev/null 2>&1 || :
systemctl enable tftp-server.socket >/dev/null 2>&1 || :
systemctl restart tftp-server.socket >/dev/null 2>&1 || :
+if [ ! -d %{_localstatedir}/warewulf/bootstrap ];then
+bootstraps=`wwsh bootstrap list | tail -n +2 | awk '{print $1}'`
+
+for bo... |
Moving notify check after the no time check
CLA: trivial | @@ -1018,14 +1018,14 @@ static int check_crl_time(X509_STORE_CTX *ctx, X509_CRL *crl, int notify)
time_t *ptime;
int i;
- if (notify)
- ctx->current_crl = crl;
if ((ctx->param->flags & X509_V_FLAG_USE_CHECK_TIME) != 0)
ptime = &ctx->param->check_time;
else if ((ctx->param->flags & X509_V_FLAG_NO_CHECK_TIME) != 0)
retur... |
HW: Adding TODO for master access | @@ -503,7 +503,7 @@ BEGIN
mmio_read_ack_q0 <= '1';
mmio_master_read_q0 <= mmio_read_master_access_q;
- CASE to_integer(unsigned(ha_mm_r_q.ad(13 DOWNTO 5))) IS
+ CASE to_integer(unsigned(ha_mm_r_q.ad(13 DOWNTO 5))) IS -- TODO: master access with bits 22:14 not zero?
-- for DEBUG (TODO: remove)
--
-- AFU DEBUG REGISTER R... |
microphone: less throwy, more MAX()y | @@ -46,13 +46,12 @@ SoundData* lovrMicrophoneGetData(Microphone* microphone, size_t samples) {
return NULL;
}
- size_t maxSamples = lovrMicrophoneGetSampleCount(microphone);
- if (maxSamples == 0) {
+ size_t availableSamples = lovrMicrophoneGetSampleCount(microphone);
+ if (availableSamples == 0) {
return NULL;
}
- lov... |
rms/pbspro: remove ref to patches that are not being applied | @@ -31,8 +31,6 @@ Name: %{pbs_name}%{PROJ_DELIM}
Version: %{pbs_version}
Release: %{pbs_release}
Source0: https://github.com/PBSPro/pbspro/releases/download/v%{version}/%{pbs_name}-%{version}.tar.gz
-Patch1: systemd.patch
-Patch2: pbs.null.patch
License: AGPLv3 with exceptions
URL: https://github.com/PBSPro/pbspro
Pref... |
Place NaN and Infinity ins Strings (promise validity) | @@ -244,12 +244,12 @@ re_rooted:
break;
case FIOBJ_T_FLOAT:
if (isnan(obj2float(obj)->f))
- fiobj_str_write(data->buffer, "NaN", 3);
+ fiobj_str_write(data->buffer, "\"NaN\"", 5);
else if (isinf(obj2float(obj)->f)) {
if (obj2float(obj)->f > 0)
- fiobj_str_write(data->buffer, "Infinity", 8);
+ fiobj_str_write(data->buff... |
Update arm_offset_q31.c
It seems that there is __QADD instruction in all cases. Can we just use __QADD here, like you did in arm_add_q31.c . | @@ -114,29 +114,13 @@ void arm_offset_q31(
/* C = A + offset */
/* Add offset and store result in destination buffer. */
-#if defined (ARM_MATH_DSP)
*pDst++ = __QADD(*pSrc++, offset);
-#else
- *pDst++ = (q31_t) clip_q63_to_q31((q63_t) * pSrc++ + offset);
-#endif
-#if defined (ARM_MATH_DSP)
*pDst++ = __QADD(*pSrc++, off... |
Fix SVACE defect in IoT.js (fs.scandir) | @@ -407,6 +407,12 @@ static ssize_t uv__fs_scandir(uv_fs_t* req) {
cnt++;
}
+ if (cnt > 0 && dents == NULL) {
+ closedir(dir);
+ cnt = -1;
+ goto error;
+ }
+
/* Allcoate memory for the directory entries. */
dents = (uv__dirent_t**) malloc(sizeof (uv__dirent_t*) * cnt);
|
docs: remove duplicate step in WW to add overlay drivers (closses | @@ -22,9 +22,6 @@ of the bootstrap image based on the running kernel.
[sms](*\#*) export WW_CONF=/etc/warewulf/bootstrap.conf
[sms](*\#*) echo "drivers += updates/kernel/" >> $WW_CONF
-# (Optional) Include overlayfs drivers; needed by Singularity
-[sms](*\#*) echo "drivers += overlay" >> $WW_CONF
-
# Build bootstrap im... |
core: define SSIZE_MAX if not available | #include <inttypes.h>
#include <sys/types.h>
+#ifndef SSIZE_MAX
+#ifdef _POSIX_SSIZE_MAX
+#define SSIZE_MAX _POSIX_SSIZE_MAX
+#else
+#define SSIZE_MAX ((ssize_t) (SIZE_MAX / 2U))
+#endif
+#endif
+
/**KDB_MAX_PATH_LENGTH will be the value for longest
* possible filenames on the system.*/
|
ReadWebP: fix for big-endian | //
// WebP decode.
+#ifdef HAVE_CONFIG_H
+#include "webp/config.h"
+#endif
+
#include "./webpdec.h"
#include <stdio.h>
@@ -150,7 +154,11 @@ int ReadWebP(const uint8_t* const data, size_t data_size,
break;
}
if (pic->use_argb) {
+#ifdef WORDS_BIGENDIAN
+ output_buffer->colorspace = MODE_ARGB;
+#else
output_buffer->color... |
vector indicies walk in reverse | @@ -191,6 +191,10 @@ for (var = vec_end (vec) - 1; var >= (vec); var--)
/** \brief Iterate over vector indices. */
#define vec_foreach_index(var,v) for ((var) = 0; (var) < vec_len (v); (var)++)
+/** \brief Iterate over vector indices (reverse). */
+#define vec_foreach_index_backwards(var,v) \
+ for ((var) = vec_len((v)... |
doc: shell recorder TESTING | ## Introduction
Libraries need a pervasive testing for continuous improvement. Any
-problem found and behaviour described must be written down as test and
-integrated so that after running all tests in the build directory:
+problem found and behaviour described must be written down as test
+so that it is assured that n... |
Update key usage determination for exercise key tests | @@ -923,14 +923,20 @@ psa_key_usage_t mbedtls_test_psa_usage_to_exercise( psa_key_type_t type,
psa_algorithm_t alg )
{
if( PSA_ALG_IS_MAC( alg ) || PSA_ALG_IS_SIGN( alg ) )
+ {
+ if( PSA_ALG_IS_HASH_AND_SIGN( alg ) )
{
if( PSA_ALG_SIGN_GET_HASH( alg ) )
return( PSA_KEY_TYPE_IS_PUBLIC_KEY( type ) ?
PSA_KEY_USAGE_VERIFY_... |
Add test from "Fix re-signing certificates with different key sizes"
Tests for and | @@ -16,7 +16,7 @@ use OpenSSL::Test qw/:DEFAULT srctop_file/;
setup("test_x509");
-plan tests => 21;
+plan tests => 28;
# Prevent MSys2 filename munging for arguments that look like file paths but
# aren't
@@ -146,3 +146,58 @@ ok(run(app(["openssl", "x509", "-noout", "-dates", "-dateopt", "iso_8601",
ok(!run(app(["open... |
extmod/modbuiltins/Control: add limit get/set | @@ -35,11 +35,30 @@ STATIC mp_obj_t builtins_Control_limits(size_t n_args, const mp_obj_t *pos_args,
PB_PARSE_ARGS_METHOD(n_args, pos_args, kw_args,
builtins_Control_obj_t, self,
- PB_ARG_REQUIRED(test)
+ PB_ARG_DEFAULT_NONE(speed),
+ PB_ARG_DEFAULT_NONE(acceleration),
+ PB_ARG_DEFAULT_NONE(actuation)
);
- (void) self;... |
Fix setjmp/longjmp implementation for thumb mode (i.e.: tiva, which is Cortex M3, based on armv7-m architecture).
Compiles for armv7-a/r in both arm and thumb modes and for armv7-m. | @@ -151,12 +151,19 @@ longjmp:
ldr r14, [r0, #((_JB_REG_R14 - _JB_REG_R4) * 4)]
#endif
+#ifndef __thumb__
/* Validate sp and r14 */
teq sp, #0
it ne
teqne r14, #0
it eq
beq botch
+#else
+ cmp sp, #0
+ beq botch
+ cmp lr, #0
+ beq botch
+#endif
/* Set return value */
movs r0, r1
|
fill errBuffer to avoid junk | @@ -1010,9 +1010,6 @@ static JANET_CFUN(janet_fset)
static void reportError(tic_core* core, Janet result)
{
janet_stacktrace(GameFiber, result);
- /* printf("\n\n"); */
- /* printf(errBuffer.data); */
- /* printf("\n\n"); */
core->data->error(core->data->data, errBuffer.data);
}
@@ -1048,7 +1045,7 @@ static bool initJa... |
tm: Only varargs is relevant when looking up a type. | @@ -93,8 +93,9 @@ static lily_type *lookup_type(lily_type *input_type)
while (iter_type) {
if (iter_type->subtype_count == input_type->subtype_count &&
- (iter_type->flags & ~BUBBLE_FLAGS) ==
- (input_type->flags & ~BUBBLE_FLAGS)) {
+ /* All other type-based flags are irrelevant to equality. */
+ (iter_type->flags & TY... |
derive_output test: fix output key bit length | @@ -7109,10 +7109,6 @@ void derive_output( int alg_arg,
if( derive_type == 1 ) // output key
{
psa_status_t expected_status = PSA_ERROR_NOT_PERMITTED;
- size_t bits = 48; // default for Mix-PSK-to-MS
-
- if( PSA_ALG_IS_HKDF_EXTRACT( alg ) || PSA_ALG_IS_HKDF_EXPAND( alg ))
- bits = PSA_HASH_LENGTH( alg );
/* For output ... |
Added shutdown command to the timer to achieve low power mode. | @@ -704,6 +704,7 @@ hal_timer_deinit(int timer_num)
hwtimer = (NRF_TIMER_Type *)bsptimer->tmr_reg;
hwtimer->INTENCLR = NRF_TIMER_INT_MASK(NRF_TIMER_CC_INT);
hwtimer->TASKS_STOP = 1;
+ hwtimer->TASKS_SHUTDOWN = 1;
}
bsptimer->tmr_enabled = 0;
bsptimer->tmr_reg = NULL;
|
Test: Remove unnecessary `rewindMeta` | @@ -58,7 +58,6 @@ using namespace kdb;
testing::AssertionResult & operator<< (testing::AssertionResult & stream, kdb::Key & key)
{
stream << key.getName () << ": " << (key.isString () ? key.getString () : (key.getBinarySize () == 0 ? "NULL" : "BINARY"));
- key.rewindMeta ();
key.rewindMeta ();
while (key.nextMeta ())
|
Tools makefile: remove unrelated clean commands | @@ -3,27 +3,6 @@ all: tunslip6
CFLAGS += -Wall -Werror
tunslip6: tools-utils.c tunslip6.c
+
clean:
rm -f *.o tunslip6
-
-gitclean:
- @git clean -d -x -n ..
- @echo "Enter yes to delete these files";
- @read response;if [[ "$$response" = "yes" ]]; then git clean -d -f -x ..;fi;
-
-distclean: cleanobj cleanfiles cleantar... |
[CI] Try a different action to upload release | @@ -57,9 +57,9 @@ jobs:
python3 scripts/build_kernel.py --no_run
- name: Update nightly release
- uses: eine/tip@master
+ uses: meeDamian/github-release@2.0
with:
- tag: nightly
- rm: false
token: ${{ secrets.GITHUB_TOKEN }}
- files: ./axle.iso
+ tag: nightly
+ files: axle.iso
+ allow_override: true
|
RTX5: corrected OS control blocks sections when using ARMCC5 (used for debug with Component Viewer) | @@ -496,6 +496,8 @@ __asm void os_cb_sections_wrapper (void) {
os_cb_sections
DCD ||.bss.os.thread.cb$$Base||
DCD ||.bss.os.thread.cb$$Limit||
+ DCD ||.bss.os.timer.cb$$Base||
+ DCD ||.bss.os.timer.cb$$Limit||
DCD ||.bss.os.evflags.cb$$Base||
DCD ||.bss.os.evflags.cb$$Limit||
DCD ||.bss.os.mutex.cb$$Base||
|
adding an addition register_syscall() | @@ -1371,6 +1371,7 @@ void register_file_syscalls(void **map)
register_syscall(map, SYS_sched_getaffinity, sched_getaffinity);
register_syscall(map, SYS_sched_setaffinity, sched_setaffinity);
register_syscall(map, SYS_getuid, getuid);
+ register_syscall(map, SYS_geteuid, geteuid);
}
void *linux_syscalls[SYS_MAX];
|
moba T1: bug fix (thanks to Moritz) | @@ -113,8 +113,8 @@ static void T1_fun(const nlop_data_t* _data, complex float* dst, const complex f
// t*exp(-t.*scaling_R1s*R1s):
md_zmul2(data->N, data->out_dims, data->out_strs, data->tmp_exp, data->out_strs, data->tmp_exp, data->TI_strs, data->TI);
- // scaling_M0:*exp(-t.*scaling_R1s.*R1s).*t
- md_zsmul(data->N, ... |
trace: up TRACE_COREID_LIMIT to 10 and reduce TRACE_MAX_EVENTS to 8000 | struct trace_buffer;
-#define TRACE_COREID_LIMIT 4
+#define TRACE_COREID_LIMIT 10
#define TRACE_EVENT_SIZE 16
-#define TRACE_MAX_EVENTS 30000 // max number of events
+#define TRACE_MAX_EVENTS 8000 // max number of events
#define TRACE_MAX_APPLICATIONS 128
//#define TRACE_PERCORE_BUF_SIZE 0x1ff00
#define TRACE_PERCORE_B... |
Use sein to find comet sponsor | ::
?. ?=(%1 lyf.seed)
[%| %invalid-life]
- [%& ~marzod] ::TODO how to do comet sponsorship?
+ [%& (^sein:title who.seed)]
::
%earl
:: a moon must be signed by the parent
|
JsThemis 0.12.0 | {
"name": "jsthemis",
- "version": "0.11.2",
+ "version": "0.12.0",
"description": "Themis is a data security library, providing users with high-quality security services for secure messaging of any kinds and flexible data storage. Themis is aimed at modern developers, with high level OOP wrappers for Ruby, Python, PHP... |
fpgaotsu: log the flash control / shorten filename
Instead of always printing "Writing flash@0x0000..", change flash
to the actual name of the 'type' key in the flash config object.
Shorten filenames to basename when printing. | @@ -253,8 +253,8 @@ class otsu_updater(object):
if obj.get('erase_start') is not None:
erase_start = to_int(obj['erase_start'])[1]
erase_end = to_int(obj['erase_end'])[1]
- LOG.info('Erasing flash@0x%x for %d bytes',
- erase_start, (erase_end + 1) - erase_start)
+ LOG.info('Erasing %s@0x%x for %d bytes',
+ obj['type'],... |
Fix runas error check | @@ -2033,7 +2033,7 @@ PPH_STRING PhpQueryRunFileParentDirectory(
}
}
-NTSTATUS PhpCustomShellExecute(
+NTSTATUS PhpRunAsShellExecute(
_In_ HWND hWnd,
_In_ PWSTR FileName,
_In_opt_ PWSTR Parameters,
@@ -2214,7 +2214,7 @@ NTSTATUS PhpRunFileProgram(
// If the file doesn't exist its probably a URL with http, https, www (d... |
Improve tests for the Scientific StackValue instance | @@ -33,6 +33,7 @@ test-suite hslua-aeson-test
, quickcheck-instances
, hslua
, hslua-aeson
+ , ieee754
, scientific
ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall
default-language: Haskell2010
|
configurator: update configurator version to 0.3.0
update configurator version to 0.3.0 | {
"name": "acrn-configurator",
"private": true,
- "version": "0.2.1",
+ "version": "0.3.0",
"author": {
"name": "Feng, Weiyi",
"email": "weiyix.feng@intel.com",
|
Send NON discovery responses as CONfirmable | @@ -236,7 +236,8 @@ coap_receive(oc_message_t *msg)
OC_DBG(" QUERY: %.*s", (int)message->uri_query_len, message->uri_query);
OC_DBG(" Payload: %.*s", (int)message->payload_len, message->payload);
#endif
-
+ const char *href;
+ size_t href_len = coap_get_header_uri_path(message, &href);
#ifdef OC_TCP
if (msg->endpoint.f... |
test: include the prerelease string from libgit2 if it exists | @@ -529,7 +529,7 @@ index 94aaae8..af8f41d 100644
+_file1.txt_
file1.txt
--
-libgit2 #{Rugged.libgit2_version.join('.')}
+libgit2 #{Rugged.libgit2_version.join('.')}#{Rugged.libgit2_prerelease ? "-" : ""}#{Rugged.libgit2_prerelease}
EOS
end
@@ -572,7 +572,7 @@ index 0000000..9435022
+file3
+file3
--
-libgit2 #{Rugged.l... |
[core] fix crash on master after graceful restart
(bug on master branch; never released)
(thx nate) | @@ -574,6 +574,10 @@ static void show_help (void) {
__attribute_cold__
static void server_sockets_save (server *srv) { /* graceful_restart */
+ for (uint32_t i = 0; i < srv->srv_sockets.used; ++i)
+ srv->srv_sockets.ptr[i]->srv = NULL; /* srv will shortly be invalid */
+ for (uint32_t i = 0; i < srv->srv_sockets_inheri... |
rollback ya tool deploy | },
"deploy": {
"formula": {
- "sandbox_id": 243231127,
+ "sandbox_id": 227505422,
"match": "DEPLOY"
},
"executable": {
|
add keycloak authz realm "unit test" | @@ -1391,13 +1391,17 @@ static char * test_authz_worker(request_rec *r) {
rc = oidc_authz_worker24(r, json, require_args, oidc_authz_match_claim);
TST_ASSERT("auth status (8: nested non-array)", rc == AUTHZ_DENIED);
+ require_args = "Require claim realm_access.roles:someRole1";
+ rc = oidc_authz_worker24(r, json, requi... |
docs: update description of jtag pins for esp32s3 and esp32c3 | @@ -192,20 +192,30 @@ The board can be reset by entering ``mon reset`` or ``mon reset halt`` into GDB.
.. _jtag-debugging-tip-jtag-pins-reconfigured:
-Do not use JTAG pins for something else
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+Can JTAG pins be used for other purposes?
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+... |
fix bugs on ref address incorrect on sockcompact with getsockopt | @@ -192,9 +192,8 @@ int win32_getsockopt(SOCKET sockfd, int level, int optname, void *optval, sockle
int ret = 0;
if ((level == SOL_SOCKET) && ((optname == SO_RCVTIMEO) || (optname == SO_SNDTIMEO))) {
struct timeval *tv = (struct timeval *)optval;
- DWORD timeout = 0;
- socklen_t dwlen = 0;
- ret = getsockopt(sockfd, l... |
tests: extra logging in reassembly tests
Type: test | @@ -836,6 +836,11 @@ class TestIPv4MWReassembly(VppTestCase):
for send_if in self.send_ifs:
send_if.assert_nothing_captured()
+ self.logger.debug(self.vapi.ppcli("show trace"))
+ self.logger.debug(self.vapi.ppcli("show ip4-full-reassembly details"))
+ self.logger.debug(self.vapi.ppcli("show buffers"))
+ self.vapi.cli("... |
ADJ: crash in format/show | @@ -179,7 +179,7 @@ format_ip_adjacency (u8 * s, va_list * args)
s = format (s, "\n counts:[%Ld:%Ld]", counts.packets, counts.bytes);
s = format (s, "\n locks:%d", adj->ia_node.fn_locks);
s = format(s, "\n delegates:\n ");
- adj_delegate_format(s, adj);
+ s = adj_delegate_format(s, adj);
s = format(s, "\n children:");
... |
vere: remove stale function declarations | void
u3_walk_save(c3_c* pas_c, u3_noun tim, u3_atom pad, c3_c* bas_c, u3_noun pax);
- /* u3_sync_reck(): traverse filesystem for changes -> lamb
- */
- u3_noun
- u3_sync_reck(void);
-
/* u3_walk(): traverse `dir_c` to produce an arch, updating `old`.
*/
u3_noun
c3_c*
u3_path(c3_o fyl, u3_noun pax);
- /** Filesystem (ol... |
update uart isr ore-flag handle error bug. | @@ -270,7 +270,7 @@ static void uart_isr(struct rt_serial_device *serial) {
}
if (USART_GetFlagStatus(uart->uart_device, USART_FLAG_ORE) == SET)
{
- stm32_getc(serial);
+ USART_ReceiveData(uart->uart_device);
}
}
|
bump gcc to 6.3 | # Define subcomponent versions required for build
-%define gmp_version 6.1.1
+%define gmp_version 6.1.2
%define mpc_version 1.0.3
-%define mpfr_version 3.1.4
+%define mpfr_version 3.1.5
Summary: The GNU C Compiler and Support Files
Name: %{pname}%{PROJ_DELIM}
-Version: 5.4.0
+Version: 6.3
Release: 1
License: GNU GPL
Gr... |
Docker: Remove unnecessary `sudo` command | @@ -126,7 +126,7 @@ RUN cd /tmp \
# PEGTL
ARG PEGTL_VERSION=2.7.1
RUN git clone --branch ${PEGTL_VERSION} --depth 1 https://github.com/taocpp/PEGTL.git \
- && sudo cp -R PEGTL/include/tao /usr/local/include
+ && cp -R PEGTL/include/tao /usr/local/include
# YAEP
ARG YAEP_VERSION=550de4cc5600d5f6109c7ebcfbacec51bf80d8d3
|
config_tools: add assert to check if the scenario is valid
Add assert for below invalid scenario:
1. Two or more pre-launched RTVM
2. One pre-launched RTVM and one or more post-launched RTVM | @@ -52,4 +52,20 @@ https://github.com/projectacrn/acrn-hypervisor/issues if you meet this.</xs:docu
</xs:annotation>
</xs:assert>
+ <xs:assert test="(count(vm[vm_type = 'PRE_RT_VM']) = 1 and count(vm[vm_type='POST_RT_VM']) = 0)
+ or (count(vm[vm_type='PRE_RT_VM']) = 0 and count(vm[vm_type='POST_RT_VM']) >= 0)">
+ <x... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.