message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Update ping to report analytics as analytics service
The ping operation reports any analytics ping results as being
the query service. It needs to report analytics ping results as
the analytics service.
Tested-by: Build Bot | @@ -291,6 +291,8 @@ static const char *svc_to_string(const lcb_PING_SERVICE type)
return "n1ql";
case LCB_PING_SERVICE_SEARCH:
return "fts";
+ case LCB_PING_SERVICE_ANALYTICS:
+ return "cbas";
default:
return "unknown";
}
@@ -496,6 +498,11 @@ static void handle_fts(lcb_INSTANCE *instance, int, const lcb_RESPBASE *resp)... |
Fix ifeq condition (thanks | @@ -59,7 +59,7 @@ uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
USE_SSL?=0
-ifdef USE_SSL
+ifeq ($(USE_SSL),1)
# This is the prefix of openssl on my system. This should be the sane default
# based on the platform
ifeq ($(uname_S),Linux)
|
CMSIS-DSP: Corrected little issue in benchmarking code for Pooling. | outp);
}
+
}
output.create(ref.nbSamples(),PoolingBench::OUTPUT_S8_ID,mgr);
tmpInput.create(input.nbSamples(),PoolingBench::TEMPINPUT_S8_ID,mgr);
- q7_t *tmpin = tmpInput.ptr();
const q7_t *inp = input.ptr();
- memcpy(tmpin,inp,input.nbSamples());
- tmpin = tmpInput.ptr();
- outp = output.ptr();
- tempp = temp.ptr();
+... |
ToolStatus: Fix statusbar redraw issue on win7 classic | @@ -547,7 +547,7 @@ VOID NTAPI LayoutPaddingCallback(
// Adjust the PH client area and exclude the StatusBar width.
layoutPadding->Padding.bottom += statusBarRect.bottom;
- //InvalidateRect(StatusBarHandle, NULL, TRUE);
+ InvalidateRect(StatusBarHandle, NULL, TRUE);
}
}
|
Network socket listen(): fix setting of backlog value
The backlog value supplied by the user should be used as is, up to
a maximum value beyond which it should be truncated. | @@ -1858,7 +1858,7 @@ static sysreturn netsock_listen(struct sock *sock, int backlog)
netsock s = (netsock) sock;
sysreturn rv;
lwip_lock();
- backlog = MAX(backlog, SOCK_QUEUE_LEN);
+ backlog = MIN(backlog, SOCK_QUEUE_LEN);
if (s->sock.type != SOCK_STREAM) {
rv = -EOPNOTSUPP;
goto unlock_out;
|
fix so run.sh can really be called from anywhere | @@ -28,7 +28,7 @@ curdir=$PWD
# Get the directory where the example scripts and source are located
# This can be read-only. Nothing is wrtten to the examples directory
_zero_dir=`dirname $0`
-cd _zero_dir
+cd $_zero_dir
RO_SHELL_DIR=$PWD
# This is the test run directory in /tmp
|
opae.io: fix dump for binary format
Convert register values to bytes when dumping to binary format. | @@ -310,7 +310,7 @@ def dump(region, start=0, output=sys.stdout, fmt='hex', count=None):
if fmt == 'hex':
output.write(f'0x{offset:04x}: 0x{value:016x}\n')
else:
- output.write(value)
+ output.write(value.to_bytes(8, 'little'))
offset += 8
|
Update map->immutable check to be consistent with the rest of the file. | @@ -136,9 +136,7 @@ int s2n_map_add(struct s2n_map *map, struct s2n_blob *key, struct s2n_blob *valu
int s2n_map_put(struct s2n_map *map, struct s2n_blob *key, struct s2n_blob *value)
{
- if (map->immutable) {
- S2N_ERROR(S2N_ERR_MAP_IMMUTABLE);
- }
+ S2N_ERROR_IF(map->immutable, S2N_ERR_MAP_IMMUTABLE);
if (map->capaci... |
Reorder nrmse command in wshfl.mk | -tests/test-wshfl: wavepsf fft resize transpose squeeze poly join wshfl nrmse $(TESTS_OUT)/shepplogan.ra $(TESTS_OUT)/shepplogan_coil_ksp.ra $(TESTS_OUT)/coils.ra
+tests/test-wshfl: wavepsf fmac fft resize transpose squeeze poly join wshfl nrmse $(TESTS_OUT)/shepplogan.ra $(TESTS_OUT)/shepplogan_coil_ksp.ra $(TESTS_OUT... |
Updates to rotation calculation of tracked object | @@ -1366,14 +1366,24 @@ static Point SolveForLighthouse(FLT posOut[3], FLT quatOut[4], TrackedObject *ob
wcPos[2] += so->ctx->bsd[lh].Pose.Pos[2];
FLT newOrientation[4];
- //quatrotateabout(newOrientation, rotQuat, so->ctx->bsd[lh].Pose.Rot);
- quatrotateabout(newOrientation, so->ctx->bsd[lh].Pose.Rot, rotQuat);
+ //qu... |
Fix script builder camera tests | @@ -645,7 +645,7 @@ test("Should set camera move speed flag", () => {
}
});
sb.cameraMoveTo(5, 6, 2);
- expect(output).toEqual([cmd(CAMERA_MOVE_TO), 5, 6, 35]);
+ expect(output).toEqual([cmd(CAMERA_MOVE_TO), 5, 6, 33]);
});
test("Should be able to lock camera to player position", () => {
@@ -659,7 +659,7 @@ test("Shoul... |
CoreValidation: Fixed rtebuild settings for Cortex-A5neon. | @@ -4,7 +4,7 @@ config:
default: FVP
FVP:
mcpu : cortex-a5
- cpu : Cortex-A5
+ cpu : Cortex-A5.neon
mfpu : neon-vfpv4
fpu : vfpv4
target: ARM:82/ARMCA5/Cortex-A5
|
[ctest] add path to component binary dir so plugin loading works | @@ -612,6 +612,10 @@ if (CMAKE_SKIP_RPATH)
FOREACH(_C ${COMPONENTS})
LIST(APPEND LDLIBPATH "${CMAKE_BINARY_DIR}/${_C}")
ENDFOREACH()
+else()
+ # Otherwise, still need the path to current component dir for tests
+ # that load plugins.
+ LIST(APPEND LDLIBPATH "${CMAKE_BINARY_DIR}/${COMPONENT}")
endif()
LIST(APPEND LDLIBP... |
metadata: prevent crash | ?: ?=(%s -.jon)
[%graph p.jon]
?> ?=(%o -.jon)
- =/ jin
+ =/ jin=json
(~(got by p.jon) %group)
- ?> ?=(%o -.jon)
+ ?> ?=(%o -.jin)
:+ %group ~
?. ?& (~(has by p.jin) 'app-name')
(~(has by p.jin) 'resource')
|
Document endianness of `dw` and `dl` | @@ -1386,6 +1386,12 @@ Alternatively, you can use
to store a list of words (16-bit) or
.Ic DL
to store a list of double-words/longs (32-bit).
+Both of these write their data in little-endian byte order; for example,
+.Ql dw $CAFE
+is equivalent to
+.Ql db $FE, $CA
+and not
+.Ql db $CA, $FE .
.Pp
Strings are handled a l... |
Clarify sensniff doc: It is also distributed as part of Contiki-NG | @@ -2,7 +2,8 @@ sensniff Contiki Project
========================
This example can be used to create an IEEE 802.15.4 wireless sniffer firmware,
meant to be used in parallel with
-[sensniff](https://github.com/g-oikonomou/sensniff).
+[sensniff](https://github.com/g-oikonomou/sensniff). Sensniff is distributed
+standalo... |
[GB] System steps even when CPU is awaiting an interrupt | @@ -69,8 +69,15 @@ impl GameBoy {
pub fn step(&self) {
self.interrupt_controller.step(self);
// TODO(PT): Handle when CPU is halted?
- let instr_info = self.cpu.borrow_mut().step(self);
- for i in 0..instr_info.cycle_count {
+ let clocks_to_step = {
+ if self.cpu.borrow().is_halted {
+ 1
+ } else {
+ self.cpu.borrow_mu... |
Feat:Update boatconfig.h for demo | #define PROTOCOL_USE_FISCOBCOS 0
#define PROTOCOL_USE_HLFABRIC 0
#define PROTOCOL_USE_HWBCS 0
+#define PROTOCOL_USE_CHAINMAKER 0
#define DISCOVERY_PEER_QUERY 0
#define RPC_USE_FIBOCOMHTTPPORT 1
|
Add comments to for-audit created source files | @@ -116,6 +116,6 @@ echo "#define SOTER_ERROR_OUT(message)
#define THEMIS_CHECK__(cond, on_fail_call) do{if(!(cond)){on_fail_call;}}while(0)
" > /tmp/code.c
grep -Pv '^\s*#\s*include\b' $file_name >> /tmp/code.c
-gcc -I src -E /tmp/code.c | grep -v ^# > /tmp/preprocessed.c
+gcc -I src -E -CC /tmp/code.c | grep -v ^# > ... |
include/power: Add dummy power_get_state if no CHIPSET task
BRANCH=none
TEST=make BOARD=krane -j tests | @@ -167,7 +167,13 @@ void power_set_state(enum power_state new_state);
*
* @return Current chipset power state
*/
+#ifdef HAS_TASK_CHIPSET
enum power_state power_get_state(void);
+#else
+static inline enum power_state power_get_state(void) {
+ return POWER_G3;
+}
+#endif
/*
* Set the wake mask according to the current ... |
Readability improvements for nextplayermodeln and previousmodeln. | @@ -5052,7 +5052,7 @@ s_model *nextplayermodel(s_model *current)
return NULL;
}
-s_model *nextplayermodeln(s_model *current, int p)
+s_model *nextplayermodeln(s_model *current, int player_index)
{
int i;
s_set_entry *set = levelsets + current_set;
@@ -5069,18 +5069,22 @@ s_model *nextplayermodeln(s_model *current, int ... |
sse2: add NEON implementation of simde_mm_cvtss_sd
Partially fixes | @@ -2779,6 +2779,9 @@ simde__m128d
simde_mm_cvtss_sd (simde__m128d a, simde__m128 b) {
#if defined(SIMDE_X86_SSE2_NATIVE)
return _mm_cvtss_sd(a, b);
+ #elif defined(SIMDE_ARM_NEON_A64V8_NATIVE)
+ float64x2_t temp = vcvt_f64_f32(vset_lane_f32(vgetq_lane_f32(simde__m128_to_private(b).neon_f32, 0), vdup_n_f32(0), 0));
+ r... |
openocd script remove unused file | @@ -102,7 +102,6 @@ openocd_debug () {
echo "mon reset halt" >> $GDB_CMD_FILE
fi
echo "$EXTRA_GDB_CMDS" >> $GDB_CMD_FILE
- echo "FILENAME" $FILE_NAME >>out
if [ $WINDOWS -eq 1 ]; then
FILE_NAME=`echo $FILE_NAME | sed 's/\//\\\\/g'`
|
use long for index in gridding code | @@ -233,7 +233,7 @@ void grid2H(const struct grid_conf_s* conf, unsigned int D, const long trj_dims[
}
-typedef void CLOSURE_TYPE(grid_update_t)(int ind, float d);
+typedef void CLOSURE_TYPE(grid_update_t)(long ind, float d);
#ifndef __clang__
#define VLA(x) x
@@ -283,7 +283,7 @@ static void grid_point_gen(int N, const... |
Count pred mode bit | @@ -628,6 +628,7 @@ static double search_cu(encoder_state_t * const state, int x, int y, int depth,
copy_cu_info(x_local, y_local, cu_width, &work_tree[depth + 1], lcu);
}
}
+ cost += CTX_ENTROPY_FBITS(&state->search_cabac.ctx.cu_pred_mode_model, 0) * state->lambda;
}
}
@@ -654,6 +655,9 @@ static double search_cu(encod... |
sysrepocfg CHANGE support for recent datastores | @@ -50,9 +50,9 @@ help_print(void)
"\n"
"Available other-options:\n"
" -d, --datastore <datastore> Datastore to be operated on, \"running\" by default (\"running\", \"startup\",\n"
- " or \"operational\") (edit, import, export op).\n"
+ " \"candidate\", \"operational\", or \"state\") (import, export, edit, merge op).\n... |
gso: fix the test case
Type: fix
Fixes: | @@ -162,7 +162,6 @@ class TestGSO(VppTestCase):
rxs = self.send_and_expect(self.pg2, [p43], self.pg1, 119)
size = 0
for rx in rxs:
- rx.show()
self.assertEqual(rx[Ether].src, self.pg1.local_mac)
self.assertEqual(rx[Ether].dst, self.pg1.remote_mac)
self.assertEqual(rx[IP].src, self.pg2.remote_ip4)
|
docker/Dockerfile: Use netselect-apt to speed up image build
netselect-apt runs and selects the best debian mirror automatically
according to the region. This can significantly improves package
manager's download speeds.
Fixes | @@ -6,6 +6,13 @@ FROM debian:${release}-slim
ARG DEBIAN_FRONTEND=noninteractive
+RUN \
+ apt-get update -y && \
+ apt-get install -y netselect-apt && \
+ if netselect-apt -n ${release}; then \
+ mv sources.list /etc/apt/sources.list; \
+ fi
+
COPY docker/bin /tmp/simde-bin
RUN \
for script in simde-reset-build.sh; do \... |
Add installer to distribution archive on windows. | @@ -20,9 +20,10 @@ init:
install:
- build_win
- build_win test
- - build_win dist
- choco install nsis -y -pre
- call "C:\Program Files (x86)\NSIS\makensis.exe" janet-installer.nsi
+ - build_win dist
+ - copy janet-install.exe doc\janet-install.exe
build: off
|
add docs for repo structure | @@ -23,6 +23,7 @@ With this in mind, there are many tenants or principles that we follow in order
- [Table of Contents](#table-of-contents)
- [Documentation](#documentation)
- [The GitHub Repository](#the-github-repository)
+ - [Structure](#structure)
- [Master Branch](#master-branch)
- [Release Branches and Release Ta... |
mpi: reduce RSA generate key test key size
Reduce key size to make the test run faster in CI, reduce the chance of timeouts. | @@ -529,7 +529,7 @@ TEST_CASE("mbedtls RSA Generate Key", "[mbedtls][timeout=60]")
mbedtls_entropy_context entropy;
mbedtls_ctr_drbg_context ctr_drbg;
- const unsigned int key_size = 3072;
+ const unsigned int key_size = 2048;
const int exponent = 65537;
#if CONFIG_MBEDTLS_MPI_USE_INTERRUPT
|
full tree traverse in "mark" dashboard | ::
=, gall
=, ford
+=, format
|_ {bowl $~}
++ peek _~
++ peer-scry-x
$| v
==
::
+++ made-a-core
+ |= {a/spur @uvH b/gage}
+ :_ +>.$
+ ?> ?=([%tabl ^ ~] b)
+ =/ cur p.i.p.b
+ %- %- slog
+ ?+ -.cur !!
+ %| (flop p.cur)
+ %& ~ ::[(sell q.p.cur)]~
+ ==
+ =/ nex/(list spur)
+ =<(p ;;(,[%& %cont * p=(list spur)] q.i.p.b))
+ ... |
[CI] disables deployment of tagged builds | @@ -45,13 +45,13 @@ addons:
- unzip
- gdb
# before_deploy: "make deb" # TODO
-deploy:
- skip_cleanup: true
- provider: releases
- prerelease: true # turn this off for official releases
- api_key:
- secure: V4E7784ECSS3MO6ZIRtang9XwibDyvDYGb0MoSaP2CTlmzIAhdokr4KJFM0qM4KRaaajCdQuqi0lojgOjwdxs7e0GkAwScb33LFxQ7Chj/QkFOY7V1... |
Missing SDL audio initialization | @@ -1034,6 +1034,12 @@ public:
SDLMusic(const unsigned char *inData, int len)
{
IncRef();
+
+ if(!Init()) {
+ mMusic = 0;
+ return;
+ }
+
loaded = true;
reso.resize(len);
|
Safely display SNI (just in case)
Thanks to Hubert Kario for pointing this out. | @@ -459,9 +459,17 @@ static int ssl_servername_cb(SSL *s, int *ad, void *arg)
{
tlsextctx *p = (tlsextctx *) arg;
const char *servername = SSL_get_servername(s, TLSEXT_NAMETYPE_host_name);
- if (servername != NULL && p->biodebug != NULL)
- BIO_printf(p->biodebug, "Hostname in TLS extension: \"%s\"\n",
- servername);
+
... |
external/libcxx-test: Update Thread Testcases
Try lock may not always get succeeded.
Hence, few try lock tc's might fail sometimes.
So, few tc's are not required. | @@ -36,7 +36,6 @@ extern "C"
tc_libcxx_thread_thread_lock_unique_cons_mutex_defer_lock();
tc_libcxx_thread_thread_lock_unique_cons_mutex_duration();
tc_libcxx_thread_thread_lock_unique_cons_mutex_time_point();
- tc_libcxx_thread_thread_lock_unique_cons_mutex_try_to_lock();
tc_libcxx_thread_thread_lock_unique_locking_lo... |
A nicer `fio_list_for_each` | @@ -51,9 +51,9 @@ fio_list_remove(fio_list_s *item) {
/** iterates the whole list. */
#define fio_list_for_each(type, member, var, head) \
- for (fio_list_s *pos = (head).next; \
- pos != &(head) && ((var) = fio_list_object(type, member, pos)) && \
- (pos = pos->next);)
+ for (fio_list_s *pos = (head).next->next; \
+ &... |
meson.build: make mlibc-config.h respect no headers option | @@ -180,7 +180,7 @@ configure_file(input: 'internal-config.h.in',
configure_file(input: 'mlibc-config.h.in',
output: 'mlibc-config.h',
configuration: mlibc_conf,
- install: true,
+ install: not no_headers,
install_dir: get_option('includedir'))
internal_sources = [
|
esp32/modsocket: Fix usocket.send to accept anything with buffer proto. | @@ -466,9 +466,9 @@ int _socket_send(socket_obj_t *sock, const char *data, size_t datalen) {
STATIC mp_obj_t socket_send(const mp_obj_t arg0, const mp_obj_t arg1) {
socket_obj_t *sock = MP_OBJ_TO_PTR(arg0);
- mp_uint_t datalen;
- const char *data = mp_obj_str_get_data(arg1, &datalen);
- int r = _socket_send(sock, data,... |
only deploy master builds to demo | DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+if [ $GITHUB_REF == "refs/heads/master" ]; then
echo $SCOPECI_TOKEN | docker login -u scopeci --password-stdin
cd ${DIR}
docker build -t cribl/scope-demo -f demo/Dockerfile .
docker push cribl/scope-demo
+fi
\ No newline at end of file
|
handle !_ wrappers | %+ cook
|= {a/whit b/term c/whit d/foot}
=+ e=(glom a c)
- =^ boy/what p.d
- ?. ?=(?(%halo %help) -.p.d)
- [boy.e ?~(boy.e p.d [%help boy.e p.d])] ::REVIEW %halo for mold?
- [?^(boy.e boy.e p.p.d) p.d(p ?^(p.p.d p.p.d boy.e))]
- [b boy d]
+ =? boy.e =(~ boy.e)
+ |-(?+(-.p.d ~ $dbug $(p.d q.p.d), ?(%halo %help) p.p.d))
... |
vpp-swan: Fix segfault for multiple addresses
In order to loop over the list of `vl_api_ip_address_details_t`,
increment the pointer by one instead of `i`.
Type: fix | @@ -563,8 +563,8 @@ update_addrs (private_kernel_vpp_net_t *this, iface_t *entry)
tmp = (vl_api_ip_address_details_t *) out;
for (i = 0; i < num; i++)
{
- tmp += i;
rmp = tmp;
+ tmp += 1;
host = host_create_from_chunk (
AF_INET, chunk_create (rmp->prefix.address.un.ip4, 4), 0);
addrs->insert_last (addrs, host);
@@ -582... |
remove no support OS parts and add whl build | @@ -70,7 +70,7 @@ Install the necessary tools for the following systems:
$ sudo swupd bundle-add os-clr-on-clr os-core-dev python3-basic
$ pip3 install --user kconfiglib
-* Ubuntu/Debian development system:
+* Ubuntu development system:
.. code-block:: none
@@ -111,57 +111,6 @@ Install the necessary tools for the follo... |
Fix create goal error message format | @@ -127,7 +127,7 @@ typedef struct _CMD_DISPLAY_OPTIONS {
#define CLI_ERR_VALUES_APPDIRECT_INDECES_USED_TOGETHER L"Syntax Error: Option values AppDirectIndex and AppDirect1Index can not be used together"
#define CLI_ERR_PROPERTIES_CAPACITY_BLOCKCOUNT_USED_TOGETHER L"Syntax Error: Properties Capacity and BlockCount can ... |
geneve: tests support python3
Type: fix | @@ -137,7 +137,7 @@ class TestGeneve(BridgeDomain, VppTestCase):
ip_range_end = ip_range_start + n_distinct_dst_tunnels
for dest_ip4 in ip4_range(cls.mcast_ip4, ip_range_start,
ip_range_end):
- vni = bytearray(dest_ip4)[3]
+ vni = int(dest_ip4.split('.')[3])
cls.vapi.geneve_add_del_tunnel(local_address=cls.pg0.local_ip... |
Update travis toolchain | @@ -19,10 +19,10 @@ addons:
apt:
sources:
- ubuntu-toolchain-r-test
- - llvm-toolchain-trusty-5.0
+ - llvm-toolchain-trusty-7
packages:
- - g++-7
- - clang-5.0
+ - g++-8
+ - clang-7
- autoconf
- automake
- autotools-dev
@@ -37,7 +37,7 @@ addons:
before_install:
- $CC --version
- if [ "$TRAVIS_OS_NAME" == "linux" ]; the... |
Ensure create_data_examples is built on Windows when using a NO_ALLBUILD build. | @@ -361,9 +361,6 @@ ENDIF(SILO_FOUND)
#-----------------------------------------------------------------------------
# Setup the Data Generation Target.
#-----------------------------------------------------------------------------
-# We have a single target "testdata" that generates all of our test data.
-# This untar... |
esp32/network_ppp: Add a timeout for closing PPP connection.
This also fixes deleting the PPP task, since eTaskGetState() never returns
eDeleted.
A limitation with this patch: once the PPP is deactivated (ppp.active(0))
it cannot be used again. A new PPP instance must be created instead. | #include "lwip/dns.h"
#include "netif/ppp/pppapi.h"
+#define PPP_CLOSE_TIMEOUT_MS (4000)
+
typedef struct _ppp_if_obj_t {
mp_obj_base_t base;
bool active;
bool connected;
+ volatile bool clean_close;
ppp_pcb *pcb;
mp_obj_t stream;
SemaphoreHandle_t inactiveWaitSem;
- TaskHandle_t client_task_handle;
+ volatile TaskHand... |
qword: Add gethostname sysdep | namespace mlibc {
+int sys_gethostname(char *buffer, size_t bufsize) {
+ int ret;
+ asm volatile ("syscall" : "=a"(ret)
+ : "a"(36), "D"(buffer), "S"(bufsize)
+ : "rcx", "r11", "rdx");
+ return ret;
+}
+
void sys_libc_log(const char *message) {
unsigned long res;
asm volatile ("syscall" : "=a"(res)
|
Fix silly misplacement of definition in CMakeLists | @@ -51,10 +51,6 @@ if(APPLE)
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.13" CACHE STRING "Minimum OS X deployment version" FORCE)
endif()
-if(RPI)
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99")
-endif()
-
project(TIC-80 VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_REVISION} LANGUAGES C CXX)
message("Building for ta... |
tests: runtime: filter_grep: extend sleep time | /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
#include <fluent-bit.h>
+#include <fluent-bit/flb_time.h>
#include "flb_tests_runtime.h"
/* Test data */
@@ -49,7 +50,7 @@ void flb_test_filter_grep_regex(void)
TEST_CHECK(bytes == strlen(p));
}
- sleep(1); /* waiting flush */
+ flb_time_msle... |
Add MQTT severe debug report | #define ESP_CFG_DBG_MQTT_API_TRACE (ESP_CFG_DBG_MQTT_API | ESP_DBG_TYPE_TRACE)
#define ESP_CFG_DBG_MQTT_API_STATE (ESP_CFG_DBG_MQTT_API | ESP_DBG_TYPE_STATE)
#define ESP_CFG_DBG_MQTT_API_TRACE_WARNING (ESP_CFG_DBG_MQTT_API | ESP_DBG_TYPE_TRACE | ESP_DBG_LVL_WARNING)
+#define ESP_CFG_DBG_MQTT_API_TRACE_SEVERE (ESP_CFG_D... |
[state] Fix bug: save block state of genesis block | @@ -142,10 +142,16 @@ func (sdb *ChainStateDB) Close() error {
}
func (sdb *ChainStateDB) SetGenesis(genesisBlock *types.Block) error {
- sdb.latest = &BlockInfo{
+ gbInfo := &BlockInfo{
BlockNo: 0,
BlockHash: types.ToBlockID(genesisBlock.Hash),
}
+ sdb.latest = gbInfo
+
+ // save state of genesis block
+ bstate := New... |
pkg/local-gadget: Update comment
There is not anymore a poll on the runcnotify package, however 2 seconds
seems like a good timeout to use there, so the value is not changed. | @@ -47,11 +47,9 @@ var rootTest = flag.Bool("root-test", false, "enable tests requiring root")
const (
// The product of these to contansts defines the maximum wait
// time before failing the checkFdList condition. These should
- // be large enough to allow all resources to be freeded. There
- // is a poll interval of ... |
86 OHPC_UTILS from files | @@ -402,7 +402,6 @@ rm -rf "$RPM_BUILD_ROOT"
%defattr(-,root,root)
%doc COPYING README NEWS DISCLAIMER.LLNS DISCLAIMER.UC
%doc README.KRB4 README.modules
-%{OHPC_HOME}
%{OHPC_PUB}
%{_bindir}/pdsh
%{_bindir}/dshbak
|
fix WeakDictionary.cs | @@ -53,7 +53,7 @@ namespace SLua
get{
int cnt = 0;
foreach (var pair in _dict) {
- if (pair.Value.IsAlive) {
+ if (pair.Value.IsAlive && ((V)pair.Value.Target)!=null) {
cnt++;
}
}
@@ -61,7 +61,6 @@ namespace SLua
}
}
-
public ICollection<K> Keys
{
get
@@ -112,7 +111,7 @@ namespace SLua
if (_dict.TryGetValue(key, out w)... |
improve time control in pha-start.c | #include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
+#include <string.h>
#include <signal.h>
#include <errno.h>
#include <time.h>
@@ -63,7 +64,7 @@ int main(int argc, char *argv[])
FILE *fp;
SOCKET sock;
struct sockaddr_in addr;
- fd_set writefds;
+ fd_set readfds, writefds;
struct timeval timeout;
int result;
c... |
Add feature support for block modes to PSA crypto config
Add support for supported block modes using the PSA crypto config.
These are mapped to Mbed TLS config options as best as possible. | @@ -244,6 +244,37 @@ extern "C" {
#endif /*!MBEDTLS_PSA_ACCEL_KEY_TYPE_DES */
#endif /* PSA_WANT_KEY_TYPE_DES */
+#if defined(PSA_WANT_ALG_STREAM_CIPHER)
+ /* Nothing to define */
+#endif /* PSA_WANT_ALG_STREAM_CIPHER */
+
+#if defined(PSA_WANT_ALG_CTR)
+#define MBEDTLS_CIPHER_MODE_CTR
+#endif /* PSA_WANT_ALG_CTR */
+
... |
Simplify handling of connection errors in wrap.c. | @@ -106,15 +106,10 @@ remoteConfig()
do {
numtries++;
rc = g_fn.recv(fds.fd, buf, sizeof(buf), MSG_DONTWAIT);
- if (rc == 0) {
- // The remote side has closed the connection
+ if (rc <= 0) {
+ // Something has happened to our connection
ctlClose(g_ctl);
break;
- } else if (rc < 0) {
- // Our own application has closed ... |
profile: allow line breaks in description | @@ -7,6 +7,7 @@ import {
Text,
Row,
Button,
+ Col
} from "@tlon/indigo-react";
import { AsyncButton } from "~/views/components/AsyncButton";
import RichText from "~/views/components/RichText";
@@ -37,16 +38,17 @@ export function ViewProfile(props: any) {
<Text mono color="darkGray">{ship}</Text>
</Center>
</Row>
- <Row... |
Address - prevent sigpipe on client connections.
We erroneously did not set SO_NOSIGPIPE on connections aquired with
net/connect, only those quired thorugh net/server. This meant that
failed writes by a client could send sigpipe. | @@ -497,6 +497,18 @@ static struct addrinfo *janet_get_addrinfo(Janet *argv, int32_t offset) {
* C Funs
*/
+static void nosigpipe(JSock s) {
+#ifdef SO_NOSIGPIPE
+ int enable = 1;
+ if (setsockopt(s, SOL_SOCKET, SO_NOSIGPIPE, &enable, sizeof(int)) < 0) {
+ JSOCKCLOSE(s);
+ janet_panic("setsockopt(SO_NOSIGPIPE) failed")... |
rpi-base.inc: handle empty/undefined KERNEL_DEVICETREE
This patch is based on an analog patch from Christopher Boyd committed at meta-freescale.
(see https://github.com/Freescale/meta-freescale/commit/954d7a7d7afc3ad4950eb0fd354a6f4bd06d911a) | @@ -119,6 +119,10 @@ def make_dtb_boot_files(d):
# KERNEL_DEVICETREE.
alldtbs = d.getVar('KERNEL_DEVICETREE')
+ # DTBs may be built out of kernel with devicetree.bbclass
+ if not alldtbs:
+ return ''
+
def transform(dtb):
base = os.path.basename(dtb)
if dtb.endswith('dtbo') or base == 'overlay_map.dtb':
|
Build fix for MMU targets | @@ -873,9 +873,12 @@ int proc_fileSpawn(const char *path, char **argv, char **envp)
int proc_syspageSpawnName(const char *map, const char *name, char **argv)
{
- int i, j;
+ int j;
syspage_program_t *prog;
+#ifdef NOMMU
+ int i;
+
for (i = 0; i < syspage->mapssz; ++i) {
/* TODO: check map's attributes; take into accoun... |
readme.md: Add references to the Espressif IDF port. | @@ -37,6 +37,7 @@ Instructions for different operating systems can be found here:
- [RIOT](docs/readme-riot.md)
- [Mbed-OS](docs/readme-mbed.md)
- [NuttX](docs/readme-nuttx.md)
+- [Espressif IDF](docs/readme-espressif.md)
- [Simulator](sim/README.rst)
## Roadmap
@@ -64,6 +65,7 @@ For more information in the source, her... |
examples/timer_gpio: fix compilation | @@ -184,7 +184,6 @@ static int timer_gpio_daemon(int argc, char *argv[])
notify.event.sigev_notify = SIGEV_SIGNAL;
notify.event.sigev_signo = CONFIG_EXAMPLES_TIMER_GPIO_SIGNO;
notify.event.sigev_value.sival_ptr = NULL;
- notify.oneshot = false;
ret = ioctl(fd_timer, TCIOC_NOTIFICATION,
(unsigned long)((uintptr_t)¬if... |
Remove stray ',' from error message. | @@ -981,11 +981,12 @@ verifytraits(Node *ctx, Type *a, Type *b)
n = 0;
*traitbuf = 0;
for (i = 0; bsiter(abs, &i); i++) {
- if (!bshas(bbs, i))
+ if (!bshas(bbs, i)) {
n += bprintf(traitbuf + n, sizeof(traitbuf) - n, "%s%s", sep,
namestr(traittab[i]->name));
sep = ",";
}
+ }
tyfmt(abuf, sizeof abuf, a);
tyfmt(bbuf, siz... |
Use conditional in strPtr() to encourage inlining.
This construct is logically equivalent but it seems to make the compiler more likely to inline the function, probably because the compiled code is slightly smaller. | @@ -721,12 +721,7 @@ strPtr(const String *this)
FUNCTION_TEST_PARAM(STRING, this);
FUNCTION_TEST_END();
- char *result = NULL;
-
- if (this != NULL)
- result = this->buffer;
-
- FUNCTION_TEST_RETURN(result);
+ FUNCTION_TEST_RETURN(this == NULL ? NULL : this->buffer);
}
/*************************************************... |
out_flowcounter: add missing semi-colon | @@ -148,7 +148,7 @@ static int out_fcount_init(struct flb_output_instance *ins, struct flb_config *c
ret = configure(ctx, ins, config);
if (ret < 0) {
flb_free(ctx);
- return -1
+ return -1;
}
flb_output_set_context(ins, ctx);
|
upstream: improved timeout reporting
upstream: updated connection initialization code | @@ -499,7 +499,7 @@ static int destroy_conn(struct flb_connection *u_conn)
mk_list_del(&u_conn->_head);
- flb_free(u_conn);
+ flb_connection_destroy(u_conn);
return 0;
}
@@ -513,19 +513,14 @@ static struct flb_connection *create_conn(struct flb_upstream *u)
coro = flb_coro_get();
- conn = flb_calloc(1, sizeof(struct fl... |
Move reg exp to match decomp files to a var
Moving the regular expression used to match the name of pio
decomposition files to a separate global variable. | @@ -9,6 +9,9 @@ my $exe="";
my $nargs = 0;
my $verbose = 0;
+# Reg expression that match the pio decomposition file names
+my $PIO_DECOMP_FNAMES = "^piodecomp";
+
# Remove duplicate decomposition files in "dirname"
sub rem_dup_decomp_files
{
@@ -18,12 +21,13 @@ sub rem_dup_decomp_files
# decomposition files
opendir(F,$... |
apps/speed: allow to continue tests after any init failure handling.
previouly the exit(1) call was aborting the whole execution.
Improve error message. | @@ -2396,6 +2396,8 @@ int speed_main(int argc, char **argv)
count = run_benchmark(async_jobs, EVP_Digest_MDC2_loop, loopargs);
d = Time_F(STOP);
print_result(D_MDC2, testnum, count, d);
+ if (count < 0)
+ break;
}
}
#endif
@@ -2409,6 +2411,8 @@ int speed_main(int argc, char **argv)
count = run_benchmark(async_jobs, EVP... |
Update header paths in Xcode project | HEADER_SEARCH_PATHS = (
"$(SRCROOT)/UDK/MdePkg/Include/X64",
"$(SRCROOT)/UDK/MdeModulePkg/Include",
+ "$(SRCROOT)/UDK/OpenCorePkg/Include/Acidanthera",
+ "$(SRCROOT)/UDK/OpenCorePkg/Include/Apple/X64",
+ "$(SRCROOT)/UDK/OpenCorePkg/Include/Apple",
+ "$(SRCROOT)/UDK/OpenCorePkg/Include/Generic",
+ "$(SRCROOT)/UDK/OpenCo... |
apps/nshlib/nsh_parse.c: Correct an error found in build testing. Commit was insufficient. It was a mistake to revert Xiang's change of commit But we are on a different vector now. | # define NSH_MEMLIST_FREE(m)
#endif
+/* Do we need g_nullstring[]? */
+
+#undef NEED_NULLSTRING
+#if defined(NSH_HAVE_VARS) || defined(CONFIG_NSH_CMDPARMS)
+# define NEED_NULLSTRING 1
+#elif !defined(CONFIG_NSH_ARGCAT) || !defined(HAVE_MEMLIST)
+# define NEED_NULLSTRING 1
+#endif
+
/************************************... |
conditionals: Use ni instead of ini in the example | @@ -106,7 +106,7 @@ kdb set user/tests/msr $(mktemp)
kdb export system/elektra/globalplugins > $(kdb get user/tests/msr)
sudo kdb mount main.ini /tests/conditionals ni
-sudo kdb mount sub.ini /tests/conditionals/sub ini
+sudo kdb mount sub.ini /tests/conditionals/sub ni
# mount conditionals as global plugin
sudo kdb gl... |
update fork height in RandomX.md | @@ -121,7 +121,7 @@ in rx_hash.h
#define SEEDHASH_EPOCH_TESTNET_LAG 32
// fork seed height, (time frame of RANDOMX_FORK_HEIGHT) + SEEDHASH_EPOCH_LAG = fork time frame
-#define RANDOMX_FORK_HEIGHT 1339392
+#define RANDOMX_FORK_HEIGHT 1540096
// (time frame of RANDOMX_TESTNET_FORK_HEIGHT) + SEEDHASH_EPOCH_TESTNET_LAG = t... |
cloud: fix cis initialization
Table: 13 | @@ -295,7 +295,9 @@ cloud_store_load_internal(const char *store_name, oc_cloud_store_t *store)
void
cloud_store_initialize(oc_cloud_store_t *store)
{
- cloud_set_string(&store->ci_server, NULL, 0);
+#define DEFAULT_CLOUD_CIS "coaps+tcp://127.0.0.1"
+ cloud_set_string(&store->ci_server, DEFAULT_CLOUD_CIS,
+ strlen(DEFAU... |
Ensure we initialized the locale before evp_pkey_name2type
Fixes | #include <openssl/dh.h>
#include <openssl/rsa.h>
#include <openssl/kdf.h>
-#include "internal/cryptlib.h"
+#include "crypto/cryptlib.h"
#ifndef FIPS_MODULE
# include "crypto/asn1.h"
#endif
@@ -199,6 +199,7 @@ static EVP_PKEY_CTX *int_ctx_new(OSSL_LIB_CTX *libctx,
}
#ifndef FIPS_MODULE
if (keytype != NULL) {
+ OPENSSL_i... |
type: fix memleak | @@ -214,9 +214,12 @@ static kdb_long_long_t readBooleanRestore (KeySet * config)
kdb_long_long_t size;
if (!elektraKeyToLongLong (restoreKey, &size))
{
+ keyDel (restoreKey);
return -2;
}
+ keyDel (restoreKey);
+
return size;
}
|
Improve error messages when using bad metadata
Print metadata value as well as binding name. | static JanetSlot janetc_quote(JanetFopts opts, int32_t argn, const Janet *argv) {
if (argn != 1) {
- janetc_cerror(opts.compiler, "expected 1 argument");
+ janetc_cerror(opts.compiler, "expected 1 argument to quote");
return janetc_cslot(janet_wrap_nil());
}
return janetc_cslot(argv[0]);
@@ -40,7 +40,7 @@ static JanetS... |
misc: improve pcap drop trace output
Append <nodename>: <error-string> to pcap drop traces.
The data displays perfectly fine in [vanilla] wireshark, and makes it
100% obvious which node dropped the packet, and why.
Type: feature
Ticket: | @@ -1177,6 +1177,7 @@ pcap_drop_trace (vlib_main_t * vm,
u32 bi0;
i16 save_current_data;
u16 save_current_length;
+ vlib_error_main_t *em = &vm->error_main;
from = vlib_frame_vector_args (f);
@@ -1222,6 +1223,59 @@ pcap_drop_trace (vlib_main_t * vm,
else if (b0->current_data > 0)
vlib_buffer_advance (b0, (word) - b0->c... |
migrate from deprecated ubuntu-16.04 vmImage | @@ -19,7 +19,7 @@ jobs:
# of gcc / glibc
- job: manylinux1_gcc
pool:
- vmImage: 'ubuntu-16.04'
+ vmImage: 'ubuntu-latest'
steps:
- script: |
echo "FROM quay.io/pypa/manylinux1_x86_64
@@ -35,7 +35,7 @@ jobs:
displayName: Run manylinux1 docker build
- job: Intel_SDE_skx
pool:
- vmImage: 'ubuntu-16.04'
+ vmImage: 'ubuntu-... |
Don't elog when reading backup label file
Otherwise the backup label file generated from pg_rewind will fail pg_ctl
start. This is also a step getting closer to upstream code | @@ -6391,8 +6391,6 @@ StartupXLOG(void)
/* Activate recovery in standby mode */
StandbyMode = true;
- Assert(backupEndRequired);
-
/*
* When a backup_label file is present, we want to roll forward from
* the checkpoint it identifies, rather than using pg_control.
@@ -11107,20 +11105,12 @@ read_backup_label(XLogRecPtr *... |
os/binfmt: Set name of main task as binary name
The name of a main task is set as binary name when loading binary. | @@ -172,6 +172,9 @@ int load_binary(FAR const char *filename, load_attr_t *load_attr)
}
tcb->ram_start = (uint32_t)start_addr;
tcb->ram_size = size;
+ /* Set task name as binary name */
+ strncpy(tcb->name, load_attr->bin_name, CONFIG_TASK_NAME_SIZE);
+ tcb->name[CONFIG_TASK_NAME_SIZE] = '\0';
#endif
#if defined(CONFIG... |
fix(warning):
warnings in api_hw_bcs.c | @@ -140,7 +140,7 @@ __BOATSTATIC BOAT_RESULT BoatHwbcsTxExec(BoatHwbcsTx *tx_ptr,
BoatLog(BOAT_LOG_CRITICAL, "[%s]:packed failed.", tx_ptr->var.args.args[0]);
boat_throw(BOAT_ERROR_COMMON_PROTO_PACKET_FAIL, BoatHwbcsTxProposal_exception);
}
- if (tx_ptr->var.type == HWBCS_TYPE_PROPOSAL)
+ if (tx_ptr->var.type == (BoatH... |
updated to v3.6.0 | @@ -3,8 +3,8 @@ hcxtools
Small set of tools to capture and convert packets from wlan devices
for the use with latest hashcat. The tools are 100% compatible to hashcat
-and recommended by hashcat (that means hcxtools 3.5.0 working with
-hashcat 3.5.0). After capturing, upload the "uncleaned" cap
+and recommended by hash... |
use kernel style for code defines | #define VERBOSITY_VERBOSE LOG_INFO
#define VERBOSITY_QUIET LOG_WARNING
-#define log_err(...) { log_print( LOG_ERR, __VA_ARGS__ ); }
-#define log_info(...) if( gconf->verbosity >= LOG_INFO ) { log_print( LOG_INFO, __VA_ARGS__ ); }
-#define log_warn(...) if( gconf->verbosity >= LOG_WARNING ) { log_print( LOG_WARNING, __V... |
Improved direction picker style | .DirectionPicker__Button {
flex: 1;
- margin-top: 5px;
width: 23px;
height: 23px;
background: var(--input-bg-color);
border-bottom-right-radius: 4px;
}
-.DirectionPicker__Button:hover {
- /* background-color: #f1f1f1; */
-}
-
.DirectionPicker__Button--Active,
.DirectionPicker__Button--Active:hover {
- /*background: #03... |
vere: properly free nouns when not forwarding | @@ -744,11 +744,16 @@ _ames_recv_cb(uv_udp_t* wax_u,
c3_d rec_d[2];
u3r_chubs(0, 2, rec_d, rec);
- // if we are not the recipient, attempt to forward statelessly
+ // if we are the recipient, simply let it pass the filter
//
- if ( (rec_d[0] != sam_u->pir_u->who_d[0])
- || (rec_d[1] != sam_u->pir_u->who_d[1]) )
+ if ( ... |
Fix dead assignments in Si5351C::FindVCO | @@ -458,15 +458,12 @@ void Si5351C::FindVCO(Si5351_Channel *clocks, Si5351_PLL *plls, const unsigned l
{
availableFrequenciesPLLA.insert( pair<unsigned long, int> (*it, 0) );
}
- clk6satisfied = true;
- clk7satisfied = true;
}
else //if clocks 6 and 7 can't share pll, assign pllA to clk6 and pllB to clk7
{
if(!clk6sati... |
allow -o output to stdout | +23.02.2021
+==========
+hcxdumptool: allow output to stdout
+-o <dump file> : output file in pcapng format, filename '-' outputs to stdout
+ including radiotap header (LINKTYPE_IEEE802_11_RADIOTAP)
+
+
14.02.2021
==========
sll_pkttype = PACKET_OUTGOING is completey ingnored in promiscuous mode
|
Add procedure ids for mcu calibration with external loopback | #include "typedefs.h"
-bool extLoopback = true;
bool runProcedure = false;
uint8_t currentInstruction;
extern float_type RefClk;
@@ -110,10 +109,10 @@ void main() //main routine
// P1 = MCU_IDLE;
// break;
case 1: //CalibrateTx
- P1 = MCU_IDLE | CalibrateTx(extLoopback);
+ P1 = MCU_IDLE | CalibrateTx(false);
break;
cas... |
Hide TCOD_PUBLIC definition in docs. | @@ -2127,6 +2127,8 @@ PREDEFINED = TCODLIB_API= \
"TCOD_DEPRECATED(msg)= " \
TCOD_DEPRECATED_NOMESSAGE= \
TCOD_NODISCARD= \
+ TCOD_PUBLIC= \
+ TCOD_PRIVATE= \
__cplusplus
# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this
|
Get rid of the Seq datatype
It is no longer being used, now that Cmd.Seq and Cmd.Nop exist. | @@ -182,11 +182,6 @@ local ir_cmd_constructors = {
}
declare_type("Cmd", ir_cmd_constructors)
-declare_type("Seq", {
- -- This level of indirection on top of a "list of commands" helps when
- -- editing the command list in-place
- Seq = {"cmds"}
-})
local src_fields = {
"src", "src1", "src2",
@@ -373,7 +368,7 @@ functi... |
Remove superfluous memset from pgstat_recv_resetslrucounter
The extra memset meant pg_stat_reset_slru() always reset all the entries
even when reset of a single entry was requested, but the timestamp was
left uninitialized.
Reported-by: Atsushi Torikoshi
Discussion: | @@ -6233,8 +6233,6 @@ pgstat_recv_resetslrucounter(PgStat_MsgResetslrucounter *msg, int len)
int i;
TimestampTz ts = GetCurrentTimestamp();
- memset(&slruStats, 0, sizeof(slruStats));
-
for (i = 0; i < SLRU_NUM_ELEMENTS; i++)
{
/* reset entry with the given index, or all entries (index is -1) */
|
improve the function doc for h2o_file_mktemp() | @@ -28,7 +28,7 @@ h2o_iovec_t h2o_file_read(const char *fn);
/**
* creates a temporary file using the fn_template param.
- * This is a wrapper to mkstemp(3), but there's no way to access the actual filename.
+ * This is a wrapper to mkstemp(3), but the file is unlinked before returning from the function. Therefore, the... |
common: whitespace fixes | @@ -1100,7 +1100,7 @@ int stlink_load_device_params(stlink_t *sl) {
sl->chip_id = 0x413;
}
- params = stlink_chipid_get_params(sl->chip_id); // chipid.c
+ params = stlink_chipid_get_params(sl->chip_id);
if (params == NULL) {
WLOG("unknown chip id! %#x\n", chip_id);
return -1;
|
provider: fix coverity uninitialised lock use
This actually fixes a more subtle problem that wasn't detected which could
cause memory leaks. | @@ -306,7 +306,6 @@ static OSSL_PROVIDER *provider_new(const char *name,
#ifndef HAVE_ATOMICS
|| (prov->refcnt_lock = CRYPTO_THREAD_lock_new()) == NULL
#endif
- || !ossl_provider_up_ref(prov) /* +1 One reference to be returned */
|| (prov->opbits_lock = CRYPTO_THREAD_lock_new()) == NULL
|| (prov->flag_lock = CRYPTO_THR... |
Test all sprintf BUFR keys | @@ -14,15 +14,34 @@ REDIRECT=/dev/null
label="bufr_ecc-1195-test"
temp1=temp.$label.bufr
temp2=temp.$label.txt
+sample_bufr3=$ECCODES_SAMPLES_PATH/BUFR3_local.tmpl
sample_bufr4=$ECCODES_SAMPLES_PATH/BUFR4_local.tmpl
-
+should_fail_setting()
+{
+ _keyvals=$1
+ _sample=$2
set +e
-${tools_dir}/bufr_set -s localDate=201401... |
Reconstruction of the right hand side of the second linear system in case of scaling + no reduction + symmetrization. | @@ -1031,7 +1031,7 @@ void gfc3d_IPM(GlobalFrictionContactProblem* restrict problem, double* restrict
double * d_reaction_t = data->tmp_vault_nd[13];
double * velocity_t_inv = data->tmp_vault_nd[14];
double * Qp_velocity_t_inv = data->tmp_vault_nd[15];
- double * tmp1 = data->tmp_vault_nd[16];
+ //double * tmp1 = data-... |
chat-fe: autodismiss mentions whilst in channel | @@ -182,6 +182,7 @@ export default class ChatWindow extends Component<ChatWindowProps, ChatWindowSta
if (this.props.unreadCount === 0) return;
this.props.api.chat.read(this.props.station);
this.props.api.hark.readIndex({ chat: { chat: this.props.station, mention: false }});
+ this.props.api.hark.readIndex({ chat: { cha... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.