message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
acl-plugin: add MAINTAINERS entry | @@ -117,6 +117,11 @@ M: Keith Burns <alagalah@gmail.com>
M: Hongjun Ni <hongjun.ni@intel.com>
F: src/vnet/vxlan-gpe/
+Plugin - ACL
+M: Andrew Yourtchenko <ayourtch@gmail.com>
+F: src/plugins/acl/
+F: src/plugins/acl.am
+
Plugin - flowprobe
M: Ole Troan <otroan@employees.org>
F: src/plugins/flowprobe/
|
RHBZ#2075862: VirtIO-FS: rework VirtFsStop | @@ -134,6 +134,7 @@ struct VIRTFS
VIRTFS(ULONG DebugFlags, const std::wstring& MountPoint);
NTSTATUS Start();
+ VOID Stop();
NTSTATUS SubmitInitRequest();
NTSTATUS SubmitOpenRequest(UINT32 GrantedAccess,
VIRTFS_FILE_CONTEXT *FileContext);
@@ -275,17 +276,17 @@ static DWORD VirtFsRegDevHandleNotification(VIRTFS *VirtFs)... |
vnet/tcp/tcp.c: address a corner case.
Avoid possible null pointer dereference | @@ -1803,12 +1803,15 @@ tcp_scoreboard_replay (u8 * s, tcp_connection_t * tc, u8 verbose)
scoreboard_init (&dummy_tc->sack_sb);
dummy_tc->rcv_opts.flags |= TCP_OPTS_FLAG_SACK;
-#if TCP_SCOREBOARD_TRACE
+/* Since this is also accessible via decl. in tcp.h.
+ * Otherwise, it is gated earlier by cli parser.
+ */
+#if (!TC... |
Disable recv_host_interrupt test because it fails in travis CI
Filed issue to debug. | @@ -67,7 +67,8 @@ RECV_PIPE_NAME = test_harness.WORK_DIR + '/nyuzi_emulator_recvint'
SEND_PIPE_NAME = test_harness.WORK_DIR + '/nyuzi_emulator_sendint'
-@test_harness.test(['emulator'])
+# XXX disabled because it fails on Travis CI
+#@test_harness.test(['emulator'])
def recv_host_interrupt(*unused):
try:
os.remove(RECV... |
build - less verbose win scp command. | @@ -700,10 +700,10 @@ else
fi
ssh $(WIX_PACKAGER) 'if [ -d $(BLD_PACKAGING_PID) ]; then rm -rf $(BLD_PACKAGING_PID); fi'
ssh $(WIX_PACKAGER) 'mkdir -p $(BLD_PACKAGING_PID)/packaging/src/windows'
- scp -r client/install/src/windows/* $(WIX_PACKAGER):$(BLD_PACKAGING_PID)/packaging/src/windows/
- scp -r $(CLIENTINSTLOC) $... |
USB cleanup: make file consistent with k26 and lpc55s69 version | #include "util.h"
+//*** <<< Use Configuration Wizard in Context Menu >>> ***
+
+// ****
+// NOTE: The high speed packet sizes are set to the same size as full speed in this
+// USB configuration in order to increase the number of devices that can
+// simultaneously be connected to a single USB controller. With the max... |
misc: updating obs config for v1.3.8 | @@ -17,7 +17,7 @@ io-libs = ["hdf5","netcdf","netcdf-fortran","phdf5","pnetcdf"]
runtimes = ["singularity","ocr","charliecloud"]
rms = ["slurm","pbspro","pmix"]
serial-libs = ["R","openblas","plasma"]
-parallel-libs = ["boost","hypre","opencoarrays","petsc","slepc","superlu_dist"]
+parallel-libs = ["boost","hypre","mum... |
WRITEMEM_32BIT: removed checks limit | @@ -306,12 +306,6 @@ int _stlink_usb_write_mem32(stlink_t *sl, uint32_t addr, uint16_t len) {
unsigned char* const cmd = sl->c_buf;
int i, ret;
- if ((sl->version.jtag_api < STLINK_JTAG_API_V3 && len > 64) ||
- (sl->version.jtag_api >= STLINK_JTAG_API_V3 && len > 512)) {
- ELOG("WRITEMEM_32BIT: bulk packet limits excee... |
Add protection against successfully loading a 0x0 file | @@ -3451,6 +3451,14 @@ int main(int argc, char **argv) {
Field_load_error fle = field_load_file(osoc(t.file_name), &t.ged.field);
switch (fle) {
case Field_load_error_ok:
+ if (t.ged.field.height < 1 || t.ged.field.width < 1) {
+ // Opening an empty file or attempting to open a directory can lead us
+ // here.
+ field_... |
Lock the GIL when destroying the Python Loader. | @@ -3799,6 +3799,8 @@ int py_loader_impl_destroy(loader_impl impl)
/* Destroy children loaders */
loader_unload_children(impl, 0);
+ PyGILState_STATE gstate = PyGILState_Ensure();
+
/* Stop event loop for async calls */
PyObject *args_tuple = PyTuple_New(0);
PyObject_Call(py_impl->thread_background_stop, args_tuple, NU... |
taniks: rgbkbd: Add rgb keyboard type field
rgbkbd_type describes number of zones and LEDs supported.
BRANCH=none
TEST=make -j buildall
Cq-Depend: chromium:3732802 | @@ -66,8 +66,11 @@ const uint8_t rgbkbd_count = ARRAY_SIZE(rgbkbds);
const uint8_t rgbkbd_hsize = RGB_GRID0_COL;
const uint8_t rgbkbd_vsize = RGB_GRID0_ROW;
+const enum ec_rgbkbd_type rgbkbd_type = EC_RGBKBD_TYPE_FOUR_ZONES_40_LEDS;
+
#define LED(x, y) RGBKBD_COORD((x), (y))
#define DELM RGBKBD_DELM
+
const uint8_t rgb... |
docker: add opensuse dependencies for xerces plugin and io bindings | @@ -18,6 +18,7 @@ RUN zypper update -y && zypper install -y \
ghostscript \
git \
glib2 \
+ glib2-devel \
gzip \
gpgme-devel \
graphviz \
@@ -34,6 +35,7 @@ RUN zypper update -y && zypper install -y \
libqt5-qtdeclarative-devel \
libqt5-qtsvg-devel \
libuv-devel \
+ libxerces-c-devel \
libxml2-devel \
llvm \
lua-devel \... |
libhfcommon/files: bugaround for freebsd | @@ -453,7 +453,15 @@ void* files_mapSharedMem(size_t sz, int* fd, const char* name) {
*fd = -1;
return NULL;
}
- void* ret = mmap(NULL, sz, PROT_READ | PROT_WRITE, MAP_SHARED, *fd, 0);
+ int mmapflags = MAP_SHARED;
+#if defined(MAP_NOSYNC)
+ /*
+ * Some kind of bug in FreeBSD kernel. Without this flag, the shm_open() m... |
toml: Changes in lastScalar functions | @@ -17,6 +17,8 @@ static void driverNewCommentList (Driver * driver, const char * comment, size_t
static void driverClearCommentList (Driver * driver);
static void driverDrainCommentsToKey (Key * key, Driver * driver);
static void firstCommentAsInlineToPrevKey (Driver * driver);
+static void driverCommitLastScalarToPar... |
Increase FIR I2C GPIO speed. | @@ -179,7 +179,7 @@ void HAL_I2C_MspInit(I2C_HandleTypeDef *hi2c)
/* Configure FIR I2C GPIOs */
GPIO_InitTypeDef GPIO_InitStructure;
GPIO_InitStructure.Pull = GPIO_NOPULL;
- GPIO_InitStructure.Speed = GPIO_SPEED_LOW;
+ GPIO_InitStructure.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
GPIO_InitStructure.Mode = GPIO_MODE_AF_OD;
GPIO... |
Application.mk: fix generated empty Make.dep for SRCS with VPATH
resulted in generated empty
Make.dep for SRCS with VPATH. | @@ -220,11 +220,11 @@ else
context::
endif
-.depend: Makefile $(wildcard $(SRCS))
+.depend: Makefile $(SRCS)
ifeq ($(filter %$(CXXEXT),$(SRCS)),)
- $(Q) $(MKDEP) $(ROOTDEPPATH) "$(CC)" -- $(CFLAGS) -- $(filter-out Makefile,$^) >Make.dep
+ $(Q) $(MKDEP) $(ROOTDEPPATH) "$(CC)" -- $(CFLAGS) -- $(filter-out Makefile,$(wild... |
Reduce unacked ack backlog | @@ -52,7 +52,7 @@ int ngtcp2_acktr_init(ngtcp2_acktr *acktr, ngtcp2_log *log,
const ngtcp2_mem *mem) {
int rv;
- rv = ngtcp2_ringbuf_init(&acktr->acks, 128, sizeof(ngtcp2_acktr_ack_entry),
+ rv = ngtcp2_ringbuf_init(&acktr->acks, 32, sizeof(ngtcp2_acktr_ack_entry),
mem);
if (rv != 0) {
return rv;
|
s5j_dma: relocation of callback call in ISR.
In order to restat DMA from callback, entry poin is changed. | @@ -115,9 +115,9 @@ int pdma_irq_handler(int irq, FAR void *context, FAR void *arg)
for (i = 0; i < dma->max_ch_num; i++) {
if ((intstatus & (1 << i)) && (dma->dma_ch[i].task->callback)) {
- dma->dma_ch[i].task->callback(&dma->dma_ch[i], dma->dma_ch[i].task->arg, 0);
dma_clear_ch_interrupt(dma, i);
dma_disable_ch_inter... |
Fix CMakeLists.txt specifying a nonexistent pkgconfig package | @@ -408,7 +408,7 @@ generate_pkg_config ("${CMAKE_CURRENT_BINARY_DIR}/libbrotlienc.pc"
DESCRIPTION "Brotli encoder library"
VERSION "${BROTLI_VERSION_MAJOR}.${BROTLI_VERSION_MINOR}.${BROTLI_VERSION_REVISION}"
URL "https://github.com/google/brotli"
- DEPENDS_PRIVATE brotlicommon
+ DEPENDS_PRIVATE libbrotlicommon
LIBRARI... |
Testing setting timezone using tzFilespec | @@ -1960,23 +1960,23 @@ int DeRestPluginPrivate::modifyConfig(const ApiRequest &req, ApiResponse &rsp)
gwTimezone = timezone;
queSaveDb(DB_CONFIG, DB_SHORT_SAVE_DELAY);
changed = true;
-
#ifdef ARCH_ARM
- int rc = setenv("TZ", qPrintable(timezone), 1);
+ const QString tzFilespec = QString(":") + timezone;
+ int rc = se... |
Typo fix (thanks | @@ -176,7 +176,7 @@ To flash the firmware, first put your board into bootloader mode by double click
or the one that is part of your keyboard). The controller should appear in your OS as a new USB storage device.
Once this happens, copy the correct UF2 file (e.g. left or right if working on a split), and paste it onto ... |
Add automatic BearSSL and OpenSSL macros and linker flags | @@ -45,6 +45,15 @@ ifdef DEBUG
FLAGS:=$(FLAGS) DEBUG
endif
+# add BearSSL/OpenSSL library flags
+ifeq ($(shell printf "int main(void) {}" | gcc -lbearssl -xc -o /dev/null - >& /dev/null ; echo $$? ), 0)
+FLAGS:=$(FLAGS) HAVE_BEARSSL
+LINKER_FLAGS:=$(LINKER_FLAGS) -lbearssl
+else ifeq ($(shell printf "int main(void) {}"... |
unspecialize spawn proxy change | |= =^state:naive
=^ f1 state (init-bud state)
=^ f2 state (n state (owner-changed:l1 ~dopbud (key ~dopbud)))
- =^ f3 state (n state (changed-spawn-proxy:l1 ~dopbud))
+ =^ f3 state (n state (changed-spawn-proxy:l1 ~dopbud deposit-address:naive))
[:(welp f1 f2 f3) state]
::
:: ~marbud is for testing L2 ownership
(log bro... |
parser was wrong. | @@ -114,18 +114,20 @@ instance FromNoun UV where
Just uv -> pure (UV uv)
fromUV :: String -> Maybe Atom
-fromUV = go (0, 0)
+fromUV = \case
+ ('0':'v':cs) -> go (0, 0) (reverse cs)
+ _ -> Nothing
where
go (i, acc) [] = pure acc
go (i, acc) ('.' : cs) = go (i, acc) cs
go (i, acc) (c : cs) = do
n <- uvCharNum c
- go (i+1... |
decision: define false positives | @@ -74,6 +74,7 @@ Plugins relying on change tracking plugins (e.g. notification plugins) will howe
## Assumptions
1. False positives for change tracking algorithms are only a minor problem.
+ False positives are that changes are detected, even though nothing changed.
2. There is no reason to modify or delete existing `... |
Fix py_cpufreq. | @@ -97,8 +97,6 @@ mp_obj_t py_cpufreq_set_frequency(mp_obj_t cpufreq_idx_obj)
nlr_raise(mp_obj_new_exception_msg(&mp_type_OSError, "RCC CLK Initialization Error!!"));
}
- SystemCoreClockUpdate();
-
// Do a soft-reset ?
//nlr_raise(mp_obj_new_exception_msg(&mp_type_OSError, "Frequency is set!"));
return mp_const_true;
|
[persistence] fix ovflact text | @@ -101,7 +101,7 @@ static uint8_t get_it_link_updtype(uint8_t type)
static char *get_coll_ovflact_text(uint8_t ovflact)
{
- char *ovfarr[7] = { "error", "head_trim", "tail_trim",
+ char *ovfarr[8] = { "null", "error", "head_trim", "tail_trim",
"smallest_trim", "largest_trim",
"smallest_silent_trim", "largest_silent_tr... |
Add luarocks. | @@ -20,15 +20,15 @@ MIT License - see the LICENSE file in the source distribution.
Releases can be downloaded from the
[releases](https://github.com/msteinbeck/tinyspline/releases) page.
-You can also obtain packages from the following repositories:
+Packages can also be obtained from the following repositories:
-PyPI:... |
Fix wrong size in memmove | @@ -102,7 +102,7 @@ void compound_plugin_call(int message, void *parameters) {
if(context->selectorIndex == CETH_MINT){
// ETH amount 0x1234 is stored 0x12340000...000 instead of 0x00....001234, so we strip the following zeroes when copying
memset(context->amount, 0, sizeof(context->amount));
- memmove(context->amount ... |
Manually inline ascii_isspace() function into handle_in_table_text() | @@ -3382,19 +3382,6 @@ static bool handle_in_table(GumboParser* parser, GumboToken* token) {
}
}
-static bool ascii_isspace(unsigned char ch) {
- switch (ch) {
- case ' ':
- case '\f':
- case '\n':
- case '\r':
- case '\t':
- case '\v':
- return true;
- }
- return false;
-}
-
// https://html.spec.whatwg.org/multipage/p... |
Add FourCC comment | @@ -560,7 +560,17 @@ typedef struct wuffs_base__transform__output__struct {
// --------
-// FourCC constants.
+// FourCC constants. Four Character Codes are literally four ASCII characters
+// (sometimes padded with ' ' spaces) that pack neatly into a signed or
+// unsigned 32-bit integer. ASCII letters are conventiona... |
refactor: use json_extract in git-op so we can test it in use | #include "json-scanf.h"
#include "json-actor.h"
-#define Q
-
namespace github {
namespace config {
@@ -23,12 +21,17 @@ void
init(struct dati *data, char * username, char *file)
{
size_t len = 0;
- char *content = orka_load_whole_file(file, &len);
-
- json_scanf(content, len, "[owner]%?s [repo]%?s [default_branch]%?s",
... |
workflow/pr_basic_compilation_check: clean up | -name: Compile check
+name: Basic Compilation Check
-# Controls when the action will run. Triggers the workflow on push or pull request
on: pull_request
jobs:
- Compile:
+ basic_complication_check:
runs-on: ubuntu-18.04
container: inclavarecontainers/test:${{ matrix.tag }}
strategy:
matrix:
- tag: [compile-check-ubuntu... |
Feat:ADD function(dam_byte_pool_init) for boatplatform.c | #include "qapi_fibocom.h"
+
+#define TEST_BYTE_POOL_SIZE 30720*8
+
+uint32 free_memory_test[TEST_BYTE_POOL_SIZE/4];
+
TX_BYTE_POOL *byte_pool_test;
@@ -81,6 +86,32 @@ BOAT_RESULT BoatHash(const BoatHashAlgType type, const BUINT8 *input, BUINT32 i
}
+qapi_Status_t dam_byte_pool_init(void)
+{
+ int ret;
+
+ do
+ {
+ /* A... |
Add execinfo to the linked libraries, if it's present | @@ -58,6 +58,11 @@ __sync_add_and_fetch(&a, 1);
return 0;
}" ARCH_SUPPORTS_64BIT_ATOMICS)
+FIND_LIBRARY(LIBC_BACKTRACE_LIB "execinfo")
+IF (LIBC_BACKTRACE_LIB)
+ SET(CMAKE_REQUIRED_LIBRARIES ${LIBC_BACKTRACE_LIB})
+ LIST(APPEND EXTRA_LIBS ${LIBC_BACKTRACE_LIB})
+ENDIF()
CHECK_C_SOURCE_COMPILES("
#include <execinfo.h>
i... |
extmod/modiodevices: add power supply setter
Some PUP sensors require power for the lights. This adds the MicroPython method to access this functionality. | @@ -102,10 +102,24 @@ STATIC mp_obj_t iodevices_LUMPDevice_write(size_t n_args, const mp_obj_t *pos_ar
}
MP_DEFINE_CONST_FUN_OBJ_KW(iodevices_LUMPDevice_write_obj, 0, iodevices_LUMPDevice_write);
+// pybricks.iodevices.LUMPDevice.power
+STATIC mp_obj_t iodevices_LUMPDevice_power(size_t n_args, const mp_obj_t *pos_args,... |
OcBootManagementLib: Fix predefined Apple Boot variable idices | @@ -632,7 +632,7 @@ InternalGetBootOptionData (
STATIC
VOID
InternalDebugBootEnvironment (
- IN UINT16 *BootOrder,
+ IN CONST UINT16 *BootOrder,
IN UINTN BootOrderSize
)
{
@@ -648,8 +648,8 @@ InternalDebugBootEnvironment (
L"efi-apple-recovery-data"
};
- STATIC UINT16 ApplePredefinedVariables[] = {
- 80, 81, 82
+ STATI... |
CMSIS-DSP: Improved Helium implementation of fir q7. | while (blkCnt > 0); \
}
+
+static void arm_fir_q7_49_64_mve(const arm_fir_instance_q7 * S,
+ const q7_t * __restrict pSrc,
+ q7_t * __restrict pDst, uint32_t blockSize)
+{
+ #define NBTAPS 64
+ FIR_Q7_MAIN_CORE();
+ #undef NBTAPS
+}
+
+
+void arm_fir_q7_33_48_mve(const arm_fir_instance_q7 * S,
+ const q7_t * __restrict... |
Tests: retrying directory remove if resource is busy. | @@ -328,7 +328,14 @@ def run(request):
):
os.remove(path)
else:
+ for attempt in range(10):
+ try:
shutil.rmtree(path)
+ break
+ except OSError as err:
+ if err.errno != 16:
+ raise
+ time.sleep(1)
# check descriptors
|
Hotkeys are now stable | @@ -57,7 +57,8 @@ ScriptContext::ScriptContext(LuaSandbox& aLuaSandbox, const std::filesystem::pat
m_logger->error("Tried to register an unknown event '{}'!", acName);
};
- env["registerHotkey"] = [this, &env](const std::string& acID, const std::string& acDescription, sol::function aCallback)
+ env["registerHotkey"] = ... |
Fix the background color on the template chooser | @@ -81,6 +81,12 @@ class TemplateChooserTableViewController: UITableViewController, UIDocumentPicke
// MARK: - Table view controller
+ override func viewDidLoad() {
+ super.viewDidLoad()
+
+ tableView.backgroundColor = .systemGroupedBackground
+ }
+
override func viewDidDisappear(_ animated: Bool) {
super.viewDidDisapp... |
most of sponsor heartbeat compiles | :: message on a "forward flow" from a peer, originally passed from
:: one of the peer's vanes to the peer's Ames.
::
+:: Ames passes a %memo to itself to trigger a heartbeat message to
+:: our sponsor.
+::
+$ note
- $% $: %b
+ $% $: %a
+ $% [%memo sponsor=ship message=_[/a/ping ~]]
+ == ==
+ $: %b
$% [%wait date=@da]
[... |
libc/stdio/vsnprintf.c: add explicit fallthrough
silences recent GCC warning | @@ -164,6 +164,7 @@ print_format(char **buffer, size_t bufsize, const char *format, void *var)
break;
case 'X':
upper = true;
+ /* fallthrough */
case 'x':
sizec[i] = '\0';
value = (unsigned long) var & convert[length_mod];
|
Legrand test | @@ -1659,6 +1659,13 @@ void DeRestPluginPrivate::addLightNode(const deCONZ::Node *node)
lightNode.setHaEndpoint(*i);
}
+ //Test for Legrand din module
+ if ((node->nodeDescriptor().manufacturerCode() == VENDOR_LEGRAND) && (false) )
+ {
+ lightNode.setHaEndpoint(*i);
+ }
+
+
if (!i->inClusters().isEmpty())
{
|
[mod_magnet] lighty.c.hrtime high-resolution time | @@ -693,6 +693,16 @@ static int magnet_time(lua_State *L) {
}
+static int magnet_hrtime(lua_State *L) {
+ unix_timespec64_t ts;
+ if (0 != log_clock_gettime_realtime(&ts))
+ return 0;
+ lua_pushinteger(L, (lua_Integer)ts.tv_sec);
+ lua_pushinteger(L, (lua_Integer)ts.tv_nsec);
+ return 2;
+}
+
+
static int magnet_rand(l... |
diff MAINTENANCE non-null strdup arg
False-positive warning by Debian. | @@ -459,6 +459,7 @@ lyd_diff_attrs(const struct lyd_node *first, const struct lyd_node *second, uint
const char **orig_default, char **orig_value)
{
const struct lysc_node *schema;
+ const char *str_val;
assert(first || second);
@@ -526,7 +527,8 @@ lyd_diff_attrs(const struct lyd_node *first, const struct lyd_node *sec... |
npu2/tce: Fix page size checking
The page size is encoded in the TVT data [59:63] as but
the tce_kill handler does not do the math right; this fixes it.
Acked-By: Alistair Popple | @@ -1256,7 +1256,9 @@ static int64_t npu2_tce_kill(struct phb *phb, uint32_t kill_type,
sync();
switch(kill_type) {
case OPAL_PCI_TCE_KILL_PAGES:
- tce_page_size = GETFIELD(npu->tve_cache[pe_number], NPU2_ATS_IODA_TBL_TVT_PSIZE);
+ tce_page_size = 1ULL << (
+ 11 + GETFIELD(npu->tve_cache[pe_number],
+ NPU2_ATS_IODA_TBL... |
Fix incorrect argument check.
Could result in underflow if a negative value is specified. | @@ -1931,7 +1931,7 @@ int main(int argc, char** argv) {
} break;
case Argopt_seed: {
init_seed = atol(optarg);
- if (init_bpm < 1) {
+ if (init_seed < 1) {
fprintf(stderr,
"Bad seed argument %s.\n"
"Must be positive integer.\n",
|
remove spurious new variable
i added this while exploring possible solutions and didn't mean to
commit it | @@ -104,7 +104,6 @@ struct gmskframesync_s {
float dphi_hat; // carrier frequency offset estimate
float gamma_hat; // channel gain estimate
windowcf buffer; // pre-demod buffered samples, size: k*(pn_len+m)
- int buffer_index; // pre-demod buffer read index
nco_crcf nco_coarse; // coarse carrier frequency recovery
// p... |
dbus plugin: solution for | @@ -132,6 +132,7 @@ static DBusConnection * getDbusConnection (DBusBusType type)
printf ("connect: Failed to open connection to %s message bus: %s\n", (type == DBUS_BUS_SYSTEM) ? "system" : "session",
error.message);
dbus_error_free (&error);
+ dbus_shutdown ();
return NULL;
}
dbus_error_free (&error);
|
[update] openamp. | #ifdef BSP_USING_OPENAMP
+#include <finsh.h>
#include <drv_openamp.h>
#include <openamp.h>
#include <virt_uart.h>
@@ -235,7 +236,10 @@ int rt_hw_openamp_init(void)
rt_hw_openamp_register(&dev_openamp, "openamp", 0, NULL);
- rt_console_set_device("openamp");
+ if (RT_CONSOLE_DEVICE_NAME == "openamp")
+ {
+ rt_console_se... |
[mod_mbedtls] newer mbedTLS vers support TLSv1.3 | @@ -3580,11 +3580,20 @@ static void
mod_mbedtls_ssl_conf_proto (server *srv, plugin_config_socket *s, const buffer *b, int max)
{
int v = MBEDTLS_SSL_MINOR_VERSION_3; /* default: TLS v1.2 */
- if (NULL == b) /* default: min TLSv1.2, max TLSv1.2 */
+ if (NULL == b) /* default: min TLSv1.2, max TLSv1.3 */
+ #ifdef MBEDTL... |
Definitions: Fix code table title | -# CODE TABLE 10, Coefficient Storage Mode
+# CODE TABLE 10, Spectral data representation mode
1 1 The complex coefficients Xnm are stored for m>0 as pairs of real numbers
2 2 Spherical harmonics-complex packing
3 3 Spherical harmonics ieee packing
|
travis: Build esp32 firmware as part of Travis CI.
Toolchain installation and build takes about 3 minutes. | @@ -121,6 +121,23 @@ jobs:
- make ${MAKEOPTS} -C mpy-cross
- make ${MAKEOPTS} -C ports/windows CROSS_COMPILE=i686-w64-mingw32-
+ # esp32 port
+ - stage: test
+ env: NAME="esp32 port build"
+ install:
+ - sudo apt-get install python3-pip
+ - sudo pip3 install pyparsing
+ - wget https://dl.espressif.com/dl/xtensa-esp32-e... |
Disable warning C4324: structure padding | @@ -20,6 +20,10 @@ cmake_minimum_required(VERSION 3.15)
cmake_policy(SET CMP0069 NEW) # LTO support
cmake_policy(SET CMP0091 NEW) # MSVC runtime support
+if(MSVC)
+ add_compile_options("/wd4324") # Disable structure was padded due to alignment specifier
+endif()
+
project(astcencoder VERSION 3.0.0)
set(CMAKE_CXX_STANDA... |
Fix TBX_GENERIC/TBX_SAM/TBX_VCF/TBX_UCSC data types
These are bitmasks used with tbx_conf_t::preset, which is an int32_t.
In particular, TBX_UCSC's value does not fit in an int8_t. | @@ -1353,10 +1353,10 @@ cdef extern from "htslib/tbx.h" nogil:
# tbx.h definitions
int8_t TBX_MAX_SHIFT
- int8_t TBX_GENERIC
- int8_t TBX_SAM
- int8_t TBX_VCF
- int8_t TBX_UCSC
+ int32_t TBX_GENERIC
+ int32_t TBX_SAM
+ int32_t TBX_VCF
+ int32_t TBX_UCSC
ctypedef struct tbx_conf_t:
int32_t preset
|
LocalReducer: fix empty case of localStorage rehydration | @@ -8,7 +8,7 @@ type LocalState = Pick<StoreState, 'sidebarShown' | 'omniboxShown' | 'baseHash'
export default class LocalReducer<S extends LocalState> {
rehydrate(state: S) {
try {
- const json = JSON.parse(localStorage.getItem('localReducer') || '');
+ const json = JSON.parse(localStorage.getItem('localReducer') || '... |
NAT44: prohibit multiple static mappings for a single local address | @@ -785,6 +785,17 @@ int snat_add_static_mapping(ip4_address_t l_addr, ip4_address_t e_addr,
vrf_id = sm->inside_vrf_id;
}
+ if (!out2in_only)
+ {
+ m_key.addr = l_addr;
+ m_key.port = addr_only ? 0 : l_port;
+ m_key.protocol = addr_only ? 0 : proto;
+ m_key.fib_index = fib_index;
+ kv.key = m_key.as_u64;
+ if (!clib_b... |
session server BUGFIX release context only after session free | @@ -3464,7 +3464,7 @@ nc_server_ch_client_thread_session_cond_wait(struct nc_session *session, struct
/* CH UNLOCK */
pthread_mutex_unlock(&session->opts.server.ch_lock);
- /* session terminated, release its context */
+ /* session terminated, free it and release its context */
nc_session_free(session, NULL);
data->rel... |
Refactor: move element event handlers together | @@ -1192,6 +1192,14 @@ END_TEST
* Element event tests.
*/
+static void XMLCALL
+start_element_event_handler(void *userData,
+ const XML_Char *name,
+ const XML_Char **UNUSED_P(atts))
+{
+ CharData_AppendXMLChars((CharData *)userData, name, -1);
+}
+
static void XMLCALL
end_element_event_handler(void *userData, const XM... |
[core] explicitly return 0 instead of constant result | @@ -408,7 +408,7 @@ static int request_uri_is_valid_char(unsigned char c) {
return 1;
}
-static int http_request_missing_CR_before_LF(server *srv, connection *con) {
+static void http_request_missing_CR_before_LF(server *srv, connection *con) {
if (srv->srvconf.log_request_header_on_error) {
log_error_write(srv, __FILE... |
FireRedz AR fix
idk | +
# Circle
from PIL import Image
+import numpy as np
+
from osr2mp4 import logger
from osr2mp4.EEnum.EImageFrom import ImageFrom
from osr2mp4.ImageProcess import imageproc
@@ -27,13 +30,13 @@ def prepare_approach(scale, time_preempt, settings):
img = YImage(approachcircle, settings).img
approach_frames = []
interval = ... |
allow `tls://` in `connect`/`listen` service
(raw with encryption) | @@ -832,10 +832,22 @@ FIO_FUNC iodine_connection_args_s iodine_connect_args(VALUE s, uint8_t is_srv) {
r.service = IODINE_SERVICE_RAW;
if (service_str.data) {
switch (service_str.data[0]) {
+ case 't': /* overflow */
+ /* tcp or tls */
+ if (service_str.data[1] == 'l') {
+ char *local = NULL;
+ char buf[1024];
+ buf[10... |
Add new SLOTSRANGE to subcommands table | @@ -555,6 +555,9 @@ struct redisCommand clusterSubcommands[] = {
{"addslots",clusterCommand,-3,
"admin ok-stale random"},
+ {"addslotsrange",clusterCommand,-4,
+ "admin ok-stale random"},
+
{"bumpepoch",clusterCommand,2,
"admin ok-stale random"},
@@ -567,6 +570,9 @@ struct redisCommand clusterSubcommands[] = {
{"delslo... |
VERSION bump to version 1.1.16 | @@ -43,7 +43,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 15)
+set(LIBNETCONF2_MICRO_VERSION 16)
set(LIBNETCONF2_VERSION ${LIB... |
delete hal method rp2040 | @@ -49,27 +49,4 @@ void hal_init(void){
clocks_hw->sleep_en1 = CLOCKS_SLEEP_EN1_CLK_SYS_TIMER_BITS | CLOCKS_SLEEP_EN1_CLK_SYS_USBCTRL_BITS | CLOCKS_SLEEP_EN1_CLK_USB_USBCTRL_BITS;
}
-//================================================================
-/*!@brief
- Write
-
- @param fd dummy, but 1.
- @param buf pointer of... |
Bump xcode version to 10.1 to make sure it handles AVX512 | @@ -149,7 +149,7 @@ matrix:
- &test-macos
os: osx
- osx_image: xcode8.3
+ osx_image: xcode10.1
before_script:
- COMMON_FLAGS="DYNAMIC_ARCH=1 TARGET=NEHALEM NUM_THREADS=32"
- brew update
|
stats: strings in string vector are c strings
Type: fix | @@ -341,6 +341,7 @@ vlib_stats_set_string_vector (vlib_stats_string_vector_t *svp,
va_start (va, fmt);
s = va_format (s, fmt, &va);
va_end (va);
+ vec_add1 (s, 0);
e->string_vector[vector_index] = s;
|
doc/compiling.md: fix package name "devscripts"
the command 'debuild' is (and always was) part of the devscripts package | @@ -83,7 +83,7 @@ Options (do one of these before you plug it in)
### Build Debian Package
-To build the debian package you need the following extra packages: `debuild debhelper`.
+To build the debian package you need the following extra packages: `devscripts debhelper`.
```
$ git archive --prefix=$(git describe)/ HEAD... |
Fix review issues
Use git options to remove last commit from list to verify.
Check each line of a commit for a "Signed-off-by" line.
Exit with error in the event of no commits in PR! | MAIN_BRANCH=master
# ignores last commit because travis/gh creates a merge commit
-commits=$(git log --format=%h ${MAIN_BRANCH}..HEAD | tail -n +2)
+commits=$(git log --format=%h ${MAIN_BRANCH}..HEAD~1)
+has_commits=false
for sha in $commits; do
- actual=$(git show -s --format=%B ${sha} | sed '/^$/d' | tail -n 1)
expec... |
codegen: change tests for error debugging | @@ -39,7 +39,7 @@ do_tests() {
succeed_if "application didn't read empty menu correctly"
EXPECTED_MENU=$(mktemp)
- cat <<- 'EOF' | tr -d '\n' > "$EXPECTED_MENU"
+ cat <<- 'EOF'
Main Menu:
[1] Menu 1
@@ -73,9 +73,10 @@ do_tests() {
ACTUAL_MENU=$(mktemp)
- : | ./application | tr -d '\n' > "$ACTUAL_MENU"
+ : | ./applicati... |
Fix comment typos in command/expire unit test. | @@ -2325,7 +2325,7 @@ testRun(void)
HRN_STORAGE_PUT_EMPTY(storageRepoWrite(), STORAGE_REPO_BACKUP "/20181119-152900F/" BACKUP_MANIFEST_FILE);
HRN_STORAGE_PUT_EMPTY(storageRepoWrite(), STORAGE_REPO_BACKUP "/20181119-152900F_20181119-152600D/" BACKUP_MANIFEST_FILE);
- // Genreate archive for backups in backup.info
+ // G... |
Fix build for JAVA=1 | @@ -71,7 +71,7 @@ endif
ifeq ($(CLOUD),1)
EXTRA_FLAG += -DOC_CLOUD -DOC_TCP
- CLOUD_OBJ_DIR = $(PORT_OBJ_DIR)cloud/
+ CLOUD_OBJ_DIR = $(PORT_OBJ_DIR)cloud/*.o
endif
SRC = oc_uuid oc_endpoint oc_rep oc_collection oc_clock oc_storage \
@@ -127,7 +127,7 @@ build_jar: copy_java
$(JAR) -cfv $(IOTIVITY_LITE_JAVA_LIBS_DIR)$(J... |
Fix typo in plugin-template.c | @@ -142,7 +142,7 @@ static void my_plug_process_event(my_plug_t *plug, const clap_event_header_t *hd
case CLAP_EVENT_NOTE_OFF: {
const clap_event_note_t *ev = (const clap_event_note_t *)hdr;
- // TODO: handle note on
+ // TODO: handle note off
break;
}
|
Fix comment typo in rsa_sign_wrap() | @@ -222,7 +222,7 @@ static int rsa_sign_wrap( void *ctx, mbedtls_md_type_t md_alg,
if( sig_size < *sig_len )
return( MBEDTLS_ERR_PK_BUFFER_TOO_SMALL );
- /* mbedtls_pk_write_pubkey() expects a full PK context;
+ /* mbedtls_pk_write_key_der() expects a full PK context;
* re-construct one to make it happy */
key.pk_info ... |
OBJ_nid2sn(NID_sha256) is completely equivalent to OSSL_DIGEST_NAME_SHA2_256
The comment is bogus as that call for NID_sha256 does not do
anything else than looking up the string in an internal table. | @@ -4275,12 +4275,8 @@ const SSL_CIPHER *ssl3_choose_cipher(SSL *s, STACK_OF(SSL_CIPHER) *clnt,
if (prefer_sha256) {
const SSL_CIPHER *tmp = sk_SSL_CIPHER_value(allow, ii);
- /*
- * TODO: When there are no more legacy digests we can just use
- * OSSL_DIGEST_NAME_SHA2_256 instead of calling OBJ_nid2sn
- */
if (EVP_MD_is... |
Fix dark mode in conflict resolver | <?xml version="1.0" encoding="UTF-8"?>
-<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14460.31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="bbP-... |
Check that the web file content is well accessible. | @@ -1141,6 +1141,8 @@ int demo_file_access_test()
char const* bad_path = "/../etc/passwd";
size_t f_size = 0;
size_t echo_size = 0;
+ char buf[128];
+ const int nb_blocks = 16;
FILE* F = picoquic_file_open(path + 1, "wb");
@@ -1149,8 +1151,7 @@ int demo_file_access_test()
ret = -1;
}
else {
- char buf[128];
- for (int ... |
Add missing error return code | @@ -7335,6 +7335,7 @@ Finish:
RequestedCapacity = BlockCount * BlockSize;
if (RequestedCapacity > MaxSize) {
ResetCmdStatus(pCommandStatus, NVM_ERR_NOT_ENOUGH_FREE_SPACE);
+ ReturnCode = EFI_INVALID_PARAMETER;
goto Finish;
}
ReturnCode = ConvertUsableSizeToActualSize(BlockSize, RequestedCapacity, Mode,
|
ini draft feature complete, compiling, hopefully correct | @@ -78,30 +78,31 @@ extend handleNewBindings oldEnv = \case
extend1 :: Typ a -> Env a -> Env (Var () a)
extend1 t = extend \() -> t
-infer :: forall a. (a -> Typ a) -> Exp a -> Typ a
+type Typing = Maybe
+
+check :: Eq a => Env a -> Exp a -> Typ a -> Typing ()
+check env e t = do
+ t' <- infer env e
+ guard (t == t')
+... |
Docs: Replace ambiguous "it" in the description of ApfsTrimTimeout | @@ -2832,7 +2832,7 @@ blocking.
such that \texttt{apfs.kext} will remain untouched.
\emph{Note 2}: On macOS 12.0 and above, it is no longer possible to specify trim timeout.
- However, it can be disabled by setting \texttt{0}.
+ However, trim can be disabled by setting \texttt{0}.
\emph{Note 3}: Trim operations are \em... |
Test automation: Added SIGINT support for Linux | @@ -778,6 +778,9 @@ class ExeRun():
retry = 5
while (self._process.poll() is None) and (retry > 0):
# Try to stop with CTRL-C
+ if platform.system() == 'Linux':
+ self._process.send_signal(signal.SIGINT)
+ else:
self._process.send_signal(signal.CTRL_BREAK_EVENT)
sleep(1)
retry -= 1
|
Just for the sake of safety + cleanup | * This unit provides basic null terminated string operations and type conversions.
*/
-#if (ENABLE_NEWLIB == 1) && !defined(_NEWLIB_STRING_H_)
+#if (ENABLE_NEWLIB != 0) && !defined(_NEWLIB_STRING_H_)
#define _NEWLIB_STRING_H_
#include_next <string.h> // Include string.h from newlib
#undef _STRING_H_ // Will be defined ... |
hv:Unmap AP trampoline region from service VM's EPT
AP trampoline code should be accessible
to hypervisor only, this patch is to unmap
this region from service VM's EPT for security
reason.
Acked-by: Eddie Dong | #include <mmu.h>
#include <logmsg.h>
#include <vboot_info.h>
+#include <vboot.h>
#include <board.h>
#include <sgx.h>
#include <sbuf.h>
@@ -380,6 +381,14 @@ static void prepare_sos_vm_memmap(struct acrn_vm *vm)
ept_del_mr(vm, pml4_page, vm_config->memory.start_hpa, vm_config->memory.size);
}
}
+
+ /* unmap AP trampoline... |
build/tools: Update the Makefile of esptool.
1. Add esptool_py submodule checking.
2. Change some downloading peremeters to capital letter form. | @@ -52,6 +52,16 @@ ESPTOOLPY_SRC := $(CURRENTDIR)/esptool_py/esptool/esptool.py
ESPTOOLPY := $(PYTHON) $(ESPTOOLPY_SRC) --chip esp32
ESPTOOLPY_SERIAL := $(ESPTOOLPY) --port $(ESPPORT) --baud $(ESPBAUD) --before $(CONFIG_ESPTOOLPY_BEFORE) --after $(CONFIG_ESPTOOLPY_AFTER)
+#Check submodule
+ESPTOOLPY_SUBMODULE_PATH := e... |
Remove unused ngtcp2_iovec | @@ -2239,16 +2239,6 @@ NGTCP2_EXTERN int ngtcp2_conn_early_data_rejected(ngtcp2_conn *conn);
NGTCP2_EXTERN void ngtcp2_conn_get_rcvry_stat(ngtcp2_conn *conn,
ngtcp2_rcvry_stat *rcs);
-/**
- * @struct
- *
- * ngtcp2_iovec is a struct compatible to standard struct iovec.
- */
-typedef struct ngtcp2_iovec {
- void *iov_ba... |
[BSP] add -nostartfiles in lpc2148 bsp | @@ -39,9 +39,9 @@ if PLATFORM == 'gcc':
OBJCPY = PREFIX + 'objcopy'
DEVICE = ' -mcpu=arm7tdmi-s'
- CFLAGS = DEVICE + ' -DRT_USING_MINILIBC'
+ CFLAGS = DEVICE
AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp'
- LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread-lpc214x.map,-cref,-u,_start -T lpc2148_rom.ld'
+ LFLAGS =... |
Reduce size of node deps docker image. | # Configure MetaCall Depends node image
ARG METACALL_BASE_IMAGE
-# MetaCall Depends node image
-FROM ${METACALL_BASE_IMAGE} AS deps_node
+# MetaCall Depends node builder image
+FROM ${METACALL_BASE_IMAGE} AS builder
# Image descriptor
LABEL copyright.name="Vicente Eduardo Ferrer Garcia" \
@@ -57,3 +57,17 @@ RUN cmake \... |
jenkins: fix syntax error | @@ -188,7 +188,7 @@ def dockerImages() {
def retainNewestImages(image, n, withTag='', excludeTag='none') {
sh """docker images ${image} --format \"{{.Repository}} {{.Tag}}\" \
| grep -v \"${excludeTag}\" \
-| grep \"${withTag}\"
+| grep \"${withTag}\" \
| sort -k 2,2 \
| head -n -${n} \
| awk \'BEGIN{OFS=\":\"} {print ... |
Base 666: Use macro for return value | @@ -108,7 +108,7 @@ int elektraBase666Get (Plugin * handle ELEKTRA_UNUSED, KeySet * keySet, Key * pa
KeySet * contract = base666Contract ();
ksAppend (keySet, contract);
ksDel (contract);
- return 1;
+ return ELEKTRA_PLUGIN_STATUS_SUCCESS;
}
Key * key;
|
platform: Log error to BMC even if diag data is missing
Also fix "DESC" to ASCII conversion. | @@ -94,10 +94,10 @@ static int64_t opal_cec_reboot2(uint32_t reboot_type, char *diag)
"OPAL: Reboot requested due to Platform error.");
if (diag) {
/* Add user section "DESC" */
- log_add_section(buf, 0x44455350);
+ log_add_section(buf, 0x44455343);
log_append_data(buf, diag, strlen(diag));
- log_commit(buf);
}
+ log_c... |
oc_collection:exclude rts/rts-m unless defined | @@ -577,6 +577,7 @@ oc_handle_collection_request(oc_method_t method, oc_request_t *request,
oc_rep_start_root_object();
oc_process_baseline_interface(request->resource);
/* rts */
+ if (oc_list_length(collection->supported_rts) > 0) {
oc_rep_open_array(root, rts);
oc_rt_t *rtt = (oc_rt_t *)oc_list_head(collection->supp... |
acme: point acme to /~debug | ::
=/ =purl
:- [sec=| por=~ host=[%& turf.next]]
- [[ext=`~.udon path=/static] query=~]
+ [[ext=~ path=/'~debug'] query=~]
=/ =wire
(acme-wire try %validate-domain /idx/(scot %ud idx.next))
(emit (request wire purl %get ~ ~))
|
Enable clearing of alarm bit for Develco smoke, heat and water leak sensor | @@ -1985,6 +1985,52 @@ int DeRestPluginPrivate::setWarningDeviceState(const ApiRequest &req, ApiRespons
{
task.options = 0x00; // Warning mode 0 (no warning), No strobe, Low sound
task.duration = 0;
+
+ // Quickfix for clearing the alarm bit of Develco smoke, heat and water leak sensor
+ if (taskRef.lightNode->modelId(... |
Base64: Save test data below `/tests` | @@ -25,13 +25,13 @@ The values are decoded back to their original value after `kdb get` has read fro
To mount a simple backend that uses the Base64 encoding, you can use:
```sh
-sudo kdb mount test.ecf /examples/base64/test base64
+sudo kdb mount test.ecf /tests/base64/test base64
```
. To unmount the plugin use the fo... |
testing: fix a bug (incorrect " at end of line for "well-defined") and some
overmatching problems | @@ -26,7 +26,7 @@ s/([Ss])ummarise/\1ummarize/g
s/([Ss])ynchronisation/\1ynchronization/g
s/([Ss])ynchronised/\1ynchronized/g
s/\<([Uu]tili)s/\1z/g
-s/([Pp])rogramm(e)?(s)?/\1rogram\3/g
+s/^([Pp])rogramm(e)?(s)?$/\1rogram\3/g
# ==========
# = Brands =
@@ -93,16 +93,16 @@ s/\<[^-]symlink/symbolic link/g
s/\<([Mm])iddle[... |
Total number of nvic vectors now 48 as supported my nrf52840. Moved SPI3M to last vector | @@ -129,9 +129,11 @@ __isr_vector:
.long UARTE1_IRQHandler
.long QSPI_IRQHandler
.long CRYPTOCELL_IRQHandler
- .long SPIM3_IRQHandler
.long 0 /*Reserved */
.long PWM3_IRQHandler
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long SPIM3_IRQHandler
.size __isr_vector, . - __isr_vector
|
link ssp as static only for WIN32 | @@ -71,7 +71,11 @@ include(CheckLibraryExists)
CHECK_LIBRARY_EXISTS(ssp __stack_chk_fail "" _stack_chk_fail_exists)
if (_stack_chk_fail_exists)
+ if(WIN32)
set(SSP_LIB -static ssp)
+ else()
+ set(SSP_LIB -static ssp)
+ endif()
else ()
set(SSP_LIB "")
endif ()
|
jenkinsfile.release: add opensuse packaging and docker image publishing | @@ -209,6 +209,12 @@ def dockerInit() {
'./scripts/docker/fedora/34/Dockerfile'
)
+ DOCKER_IMAGES.opensuse_15_3 = dockerUtils.createDockerImageDesc(
+ "opensuse-15-3", dockerUtils.&idTesting,
+ "./scripts/docker/opensuse/15.3",
+ "./scripts/docker/opensuse/15.3/Dockerfile"
+ )
+
/* Install and test the built packages w... |
Don't free read control entries still on the stream queue. | #ifdef __FreeBSD__
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD: head/sys/netinet/sctputil.c 347975 2019-05-19 17:28:00Z tuexen $");
+__FBSDID("$FreeBSD: head/sys/netinet/sctputil.c 350011 2019-07-15 20:45:01Z tuexen $");
#endif
#include <netinet/sctp_os.h>
@@ -4948,12 +4948,14 @@ sctp_add_to_readq(struct sctp_inpcb *inp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.