message
stringlengths 6
474
| diff
stringlengths 8
5.22k
|
---|---|
* Only ubuntu focal is supported for our PPA | @@ -28,8 +28,7 @@ set(CMAKE_XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY "")
set(PROJECT_VERSION_MAJOR ${CHANGELOG_LAST_VERSION_MAJOR})
set(PROJECT_VERSION_MINOR ${CHANGELOG_LAST_VERSION_MINOR})
set(PROJECT_VERSION_PATCH ${CHANGELOG_LAST_VERSION_PATCH})
-set(PROJECT_VERSION
- ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR})
+set(PROJECT_VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR})
set(${PROJECT_NAME}_VERSION ${PROJECT_VERSION})
set(${PROJECT_NAME}_VERSION_MAJOR ${PROJECT_VERSION_MAJOR})
set(${PROJECT_NAME}_VERSION_MINOR ${PROJECT_VERSION_MINOR})
@@ -60,7 +59,7 @@ set(PPA_DEBIAN_VERSION
CACHE STRING "PPA version suffix for debian packages")
set(PROJECT_PPA_DISTRIB_TARGET
- "focal;bionic"
+ "focal"
CACHE STRING "Ubuntu PPA distribution names")
set(ANDROID_ABIS
|
[net][netdev] fix IMEI spell mistake in ifconfig command | @@ -889,7 +889,7 @@ static void netdev_list_if(void)
}
else if (netdev->hwaddr_len == NETDEV_IFCONFIG_IEMI_MAX_LEN)
{
- rt_kprintf("IEMI: ");
+ rt_kprintf("IMEI: ");
for (index = 0; index < netdev->hwaddr_len; index++)
{
/* two numbers are displayed at one time*/
|
Get rid of extra compiler call for lsan suppressions: pass .cpp to link command since we always call compiler for linking | @@ -25,15 +25,6 @@ def gen_default_suppressions(inputs, output):
dst.write('}\n')
-def compile_file(src, dst, cmd):
- cmd = list(cmd)
- cmd = [a for a in cmd if not a.endswith((".a", ".o", ".obj"))]
- output_pos = cmd.index("-o")
- cmd[output_pos + 1] = dst
- cmd += ["-c", src, "-Wno-unused-command-line-argument"]
- return subprocess.call(cmd, shell=False, stderr=sys.stderr, stdout=sys.stdout)
-
-
if __name__ == '__main__':
cmd = sys.argv[1:]
supp, cmd = get_leaks_suppressions(cmd)
@@ -42,8 +33,5 @@ if __name__ == '__main__':
else:
src_file = "lsan_default_suppressions.cpp"
gen_default_suppressions(supp, src_file)
- obj_file = src_file + ".o"
- rc = compile_file(src_file, obj_file, cmd)
- if rc == 0:
- rc = subprocess.call(cmd + [obj_file], shell=False, stderr=sys.stderr, stdout=sys.stdout)
+ rc = subprocess.call(cmd + [src_file], shell=False, stderr=sys.stderr, stdout=sys.stdout)
sys.exit(rc)
|
downgrade to v1.2.3 for pmix for compatability with slurm | Summary: An extended/exascale implementation of PMI
Name: %{pname}%{PROJ_DELIM}
-Version: 2.0.1
+Version: 1.2.3
Release: 1%{?dist}
License: BSD
Group: Development/Libraries
@@ -25,9 +25,9 @@ Patch0: configure.patch
BuildRequires: libevent-devel
%global extraflags ""
-%ifarch aarch64
-%global extraflags "-mcmodel=large"
-%endif
+# %ifarch aarch64
+# %global extraflags "-mcmodel=large"
+# %endif
%global install_path %{OHPC_LIBS}/%{pname}/%version
@@ -52,7 +52,7 @@ This RPM contains all the tools necessary to compile and link against PMIx.
%prep
%setup -q -n %{pname}-%{version}
-%patch0
+#%patch0
%build
CFLAGS="%{optflags} %{extraflags}" ./configure --prefix=%{install_path}
|
Update test TCP client. | -#!/usr/bin/env python2
+#!/usr/bin/env python
# This file is part of the OpenMV project.
#
# Copyright (c) 2013-2019 Ibrahim Abdelkader <[email protected]>
#
# This work is licensed under the MIT license, see the file LICENSE for details.
#
-# An example sockets client.
+# An example TCP client for testing WiFi modules.
import time
import select
import socket
-ADDR=('192.168.1.101', 8000)
+
+UPLOAD_LEN = 5*1024
+DOWNLOAD_LEN = 10*1024
+ADDR=('192.168.1.103', 8080)
+
+def recvall(sock, n):
+ # Helper function to recv n bytes or return None if EOF is hit
+ data = bytearray()
+ while len(data) < n:
+ packet = sock.recv(n - len(data))
+ if not packet:
+ return None
+ data.extend(packet)
+ return data
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(ADDR)
-time.sleep(0.500)
-s.send("HelloWorld")
-time.sleep(0.500)
-print (s.recv(10))
-time.sleep(3)
-print ("closing")
+
+upload = 0
+download = 0
+while (True):
+ s.sendall(b'0' * UPLOAD_LEN)
+ buf = recvall(s, DOWNLOAD_LEN)
+ upload += UPLOAD_LEN
+ download += DOWNLOAD_LEN
+ print("Upload: %.3f MBytes Download: %.3f MBytes" %(upload/(1024*1024), download/(1024*1024)))
s.close()
|
Fix oculus_mobile api.h include; | @@ -219,7 +219,7 @@ bool lovrPlatformHasWindow() {
#include "luax.h"
#include "lib/sds/sds.h"
-#include "api.h"
+#include "api/api.h"
#include "lib/lua-cjson/lua_cjson.h"
#include "lib/lua-enet/enet.h"
#include "headset/oculus_mobile.h"
|
sur/hood: fix uninitialized foreign desk crash | =/ yon (scot %ud aeon)
::
=/ dom .^(dome cv/~[her syd yon])
- =/ tak (scot %uv (~(got by hit.dom) let.dom))
+ =/ yon (~(get by hit.dom) let.dom)
+ ?~ yon ~
+ =/ tak (scot %uv u.yon)
=/ yak .^(yaki cs/~[her syd yon %yaki tak])
- =/ lob (scot %uv (~(got by q.yak) /desk/bill))
+ =/ fil (~(get by q.yak) /desk/bill)
+ ?~ fil ~
+ =/ lob (scot %uv u.fil)
=/ bob .^(blob cs/~[her syd yon %blob lob])
::
;; (list dude)
|
Bump max BT connections for testing. | @@ -95,7 +95,7 @@ config ZMK_SPLIT_BLE_ROLE_CENTRAL
if ZMK_SPLIT_BLE_ROLE_CENTRAL
config BT_MAX_CONN
- default 2
+ default 5
endif
@@ -107,6 +107,10 @@ if ZMK_SPLIT_BLE_ROLE_PERIPHERAL
config ZMK_USB
default n
+
+config BT_MAX_CONN
+ default 5
+
endif
endchoice
|
Remove duplicated includes | #include "mbedtls/ecjpake.h"
#endif
-#if defined(MBEDTLS_USE_PSA_CRYPTO)
-#include "psa/crypto.h"
-#include "mbedtls/psa_util.h"
-#endif /* MBEDTLS_USE_PSA_CRYPTO */
-
#include "common.h"
#if ( defined(__ARMCC_VERSION) || defined(_MSC_VER) ) && \
|
fix close and dragging animations | @@ -1876,6 +1876,7 @@ killclient(const Arg *arg)
{
if (!selmon->sel || selmon->sel->islocked)
return;
+ if (animated)
animateclient(selmon->sel, selmon->sel->x, selmon->mh - 20, 0, 0, 10, 0);
if (!sendevent(selmon->sel->win, wmatom[WMDelete], NoEventMask, wmatom[WMDelete], CurrentTime, 0 , 0, 0)) {
XGrabServer(dpy);
@@ -2480,6 +2481,9 @@ dragmouse(const Arg *arg)
animated = 0;
togglefloating(NULL);
animated = 1;
+ getrootptr(&x, &y);
+ if (y > c->y + 20)
+ resize(c, c->x, y - 20, c->w, c->h, 1);
} else {
togglefloating(NULL);
}
|
[software] Add PACK to runtime builtins | @@ -13,7 +13,15 @@ typedef signed char v4s __attribute__((vector_size(4)));
typedef unsigned char v4u __attribute__((vector_size(4)));
/* Packing of scalars into vectors */
-#define __PACK2(x, y) __builtin_pulp_pack2((signed short)(x), (signed short)(y))
+
+inline v2s __PACK2(const int32_t x, const int32_t y) {
+ v2s output;
+ asm volatile("pv.pack.h %[z], %[x], %[y];"
+ : [z] "=r"(output)
+ : [x] "r"(x), [y] "r"(y));
+ return output;
+}
+
#define __PACKU2(x, y) \
__builtin_pulp_pack2((unsigned short)(x), (unsigned short)(y))
|
Add a list for supported blockchains and IoT modules. | @@ -25,15 +25,9 @@ The other method is, the IoT devices directly invoke on-chain smart contract via
The latter is the way **BoAT** is walking on. To ease off the effort that IoT device manufacturers have to take, *aitos.io* initiates and contributes to **BoAT**, the C-language blockchain application framework, enabling IoT device to easily access the blockchain.
-### Supported Blockchain
+### Supported Blockchains and IoT Modules
-This version supports:
-+ Ethereum
-+ PlatON Enterprise (PlatONE)
-+ FISCO-BCOS
-+ Hyperledger Fabric
-
-More blockchains are to be supported.
+See [Supported List](./SUPPORTED_LIST.md) for supported blockchains and IoT modules.
### Release
|
Fix menu icon | @@ -82,7 +82,7 @@ class MenuTableViewController: UITableViewController {
case 2:
image = UIImage(named: "pypi")
case 3:
- image = UIImage(systemName: "info.fill")
+ image = UIImage(systemName: "info.circle.fill")
case 4:
image = UIImage(systemName: "gear")
default:
|
BUG: Fix the loop range in ZHEEQUB.f | AVG = AVG / N
STD = 0.0D0
- DO I = N+1, N
+ DO I = N+1, 2*N
WORK( I ) = S( I-N ) * WORK( I-N ) - AVG
END DO
CALL ZLASSQ( N, WORK( N+1 ), 1, SCALE, SUMSQ )
|
removing sky130_pdk key from yaml | @@ -6,7 +6,6 @@ vlsi.core.max_threads: 12
# Technology paths
technology.sky130:
- sky130_pdk: "path-to-skywater-pdk/"
sky130A: "path-to-sky130A/"
sky130_nda: "path-to-skywater-src-nda/"
openram_lib: "path-to-sky130_sram_macros/"
|
test: add ethereum test case
test_002InitWallet_0009SetEIP155CompSuccess | @@ -231,6 +231,24 @@ START_TEST(test_001CreateWallet_0008CreateOneTimeWalletFailureProtocolUnknown)
}
END_TEST
+START_TEST(test_002InitWallet_0009SetEIP155CompSuccess)
+{
+ BSINT32 rtnVal;
+ BoatEthWallet *wallet_ptr = BoatMalloc(sizeof(BoatEthWallet));
+ BoatEthWalletConfig wallet_config = get_ethereum_wallet_settings();
+
+ /* 1. execute unit test */
+ rtnVal = BoatEthWalletSetEIP155Comp(wallet_ptr, wallet_config.eip155_compatibility);
+ /* 2. verify test result */
+ /* 2-1. verify the return value */
+ ck_assert_int_eq(rtnVal, BOAT_SUCCESS);
+
+ /* 2-2. verify the global variables that be affected */
+ ck_assert(wallet_ptr->network_info.eip155_compatibility == wallet_config.eip155_compatibility);
+
+}
+END_TEST
+
Suite *make_wallet_suite(void)
{
/* Create Suite */
@@ -250,6 +268,7 @@ Suite *make_wallet_suite(void)
tcase_add_test(tc_wallet_api, test_001CreateWallet_0006CreateOneTimeWalletFailureShortSize);
tcase_add_test(tc_wallet_api, test_001CreateWallet_0007CreateOneTimeWalletSuccessLongSize);
tcase_add_test(tc_wallet_api, test_001CreateWallet_0008CreateOneTimeWalletFailureProtocolUnknown);
+ tcase_add_test(tc_wallet_api, test_002InitWallet_0009SetEIP155CompSuccess);
return s_wallet;
}
|
Fixed langevin noise covariance | @@ -65,7 +65,7 @@ void AddLangevinNoiseToLeafDerivativesSum(
if (sum.SumWeights < 1e-9) {
continue;
}
- double scaledCoef = coef / sqrt(sum.SumWeights + scaledL2Regularizer);
+ double scaledCoef = coef * sqrt(sum.SumWeights + scaledL2Regularizer);
sum.SumDer += scaledCoef * StdNormalDistribution<double>(rng);
}
}
@@ -86,7 +86,7 @@ void AddLangevinNoiseToLeafDerivativesSum(
if (sum.SumWeights < 1e-9) {
continue;
}
- double scaledCoef = coef / sqrt(sum.SumWeights + scaledL2Regularizer);
+ double scaledCoef = coef * sqrt(sum.SumWeights + scaledL2Regularizer);
for (auto& der : sum.SumDer) {
der += scaledCoef * StdNormalDistribution<double>(rng);
}
|
RCQ: give emulation device custom name | @@ -352,6 +352,9 @@ cl_int pocl_accel_init(unsigned j, cl_device_id dev, const char *parameters) {
// accel devices are little endian by default, but the emulation device is host dependant
dev->endian_little = D->BaseAddress == 0xE ? !(WORDS_BIGENDIAN) : CL_TRUE;
+ if (D->BaseAddress == 0xE){
+ dev->long_name= (char *)"accel emulation device";
+ }
dev->builtin_kernel_list = strdup(supportedList.c_str());
dev->num_builtin_kernels = D->SupportedKernels.size();
|
bonding: feature arc may not be enabled for the slave interface
vnet_feature_enable_disable takes sw_if_index, not hw_if_index. If there
is a subinterface created prior to the slave interface is created,
sw_if_index and hw_if_index start to diverge and the problem will happen.
Type: fix | @@ -287,7 +287,7 @@ bond_delete_neighbor (vlib_main_t * vm, bond_if_t * bif, slave_if_t * sif)
bond_disable_collecting_distributing (vm, sif);
vnet_feature_enable_disable ("device-input", "bond-input",
- sif_hw->hw_if_index, 0, 0, 0);
+ sif->sw_if_index, 0, 0, 0);
/* Put back the old mac */
vnet_hw_interface_change_mac_address (vnm, sif_hw->hw_if_index,
@@ -703,7 +703,7 @@ bond_enslave (vlib_main_t * vm, bond_enslave_args_t * args)
}
args->rv = vnet_feature_enable_disable ("device-input", "bond-input",
- sif_hw->hw_if_index, 1, 0, 0);
+ sif->sw_if_index, 1, 0, 0);
if (args->rv)
{
|
disable huge page in MAC OS | @@ -129,7 +129,11 @@ void rx_init_flags(int is_full_mem, uint32_t init_thread_count) {
g_randomx_flags = randomx_get_flags();
+#if defined (__MACOS__) || defined (__APPLE__)
+#else
g_randomx_flags |= RANDOMX_FLAG_LARGE_PAGES;
+#endif
+
if (is_full_mem == 1) {
g_randomx_flags |= RANDOMX_FLAG_FULL_MEM;
}
|
added reverse note behavior for the right click | @@ -2112,6 +2112,30 @@ static void drawPianoNoteColumn(Music* music, s32 x, s32 y)
else row->note = NoteStart + n;
}
+ history_add(music->history);
+ }
+ else if(checkMouseClick(&rect, tic_mouse_right))
+ {
+ switch(row->note)
+ {
+ case NoteNone:
+ row->note = NoteStop;
+ row->octave = 0;
+ break;
+ case NoteStop:
+ row->note = NoteStart + n;
+ row->octave = music->last.octave;
+ tic_tool_set_track_row_sfx(row, music->last.sfx);
+ break;
+ default:
+ if(row->note - NoteStart == n)
+ {
+ row->note = NoteNone;
+ row->octave = 0;
+ }
+ else row->note = NoteStart + n;
+ }
+
history_add(music->history);
}
}
|
Add check for server command before executing it | @@ -1897,7 +1897,8 @@ espi_initiate_cmd(esp_msg_t* msg) {
case ESP_CMD_TCPIP_CIPSERVER: { /* Enable or disable server */
AT_PORT_SEND_BEGIN_AT();
AT_PORT_SEND_CONST_STR("+CIPSERVER=");
- if (msg->msg.tcpip_server.en) { /* Do we want to enable server? */
+ if (CMD_IS_DEF(ESP_CMD_TCPIP_CIPSERVER) && msg->msg.tcpip_server.en) {
+ AT_PORT_SEND_CONST_STR("1");
espi_send_port(msg->msg.tcpip_server.port, 0, 1);
} else { /* Disable server */
AT_PORT_SEND_CONST_STR("0");
@@ -1941,7 +1942,7 @@ espi_initiate_cmd(esp_msg_t* msg) {
return espERRNOIP;
}
- msg->msg.conn_start.num = 0; /* Start with max value = invalidated */
+ msg->msg.conn_start.num = 0;
for (int16_t i = ESP_CFG_MAX_CONNS - 1; i >= 0; --i) { /* Find available connection */
if (!esp.m.conns[i].status.f.active
|| !(esp.m.active_conns & (1 << i))) {
|
[doc]: Corrected C3 LEDC docs | @@ -287,7 +287,7 @@ This directive also supports the boolean operators 'and', 'or' and 'not'. Exampl
This functionality is provided by the `Sphinx selective exclude <https://github.com/pfalcon/sphinx_selective_exclude>`_ extension.
-A weakness in this extension is that it does not correctly handle the case were you exclude a section, and that is directly followed by a labeled new section. In these cases everything will render correctly, but the label will not correctly link to the section that follows. A temporary work-around for the cases were this can't be avoided is the following:
+A weakness in this extension is that it does not correctly handle the case where you exclude a section, that is directly followed by a labeled new section. In these cases everything will render correctly, but the label will not correctly link to the section that follows. A temporary work-around for the cases where this can't be avoided is the following:
.. code-block:: none
@@ -302,9 +302,9 @@ A weakness in this extension is that it does not correctly handle the case were
.. _section_2_label:
- .. only:: esp32s2
+ .. only:: not esp32
- _section_2_label:
+ .. _section_2_label:
Section 2
^^^^^^^^^
|
libhfuzz: exit early if no _HF_THREAD_NO_ENV is set | @@ -52,10 +52,10 @@ __attribute__((constructor)) static void initializeInstrument(void) {
char* my_thread_no_str = getenv(_HF_THREAD_NO_ENV);
if (my_thread_no_str == NULL) {
- LOG_W("The '%s' envvar is not set", _HF_THREAD_NO_ENV);
- } else {
- my_thread_no = atoi(my_thread_no_str);
+ LOG_D("The '%s' envvar is not set", _HF_THREAD_NO_ENV);
+ return;
}
+ my_thread_no = atoi(my_thread_no_str);
if (my_thread_no >= _HF_THREAD_MAX) {
LOG_F("Received (via envvar) my_thread_no > _HF_THREAD_MAX (%" PRIu32 " > %d)\n",
|
Solve minor bug in boostrap from node loader (load from memory). | @@ -67,16 +67,19 @@ function node_loader_trampoline_load_from_memory(name, buffer, opts) {
throw new Error('Load from memory buffer must be a string, not ' + typeof buffer);
}
+ /* TODO: Implement opts check properly */
+
const paths = Module._nodeModulePaths(path.dirname(name));
const parent = module.parent;
const m = new Module(name, parent);
m.filename = name;
+
+ /* TODO: Implement opts */
m.paths = [
- ...opts.prepend_paths || [],
- // eslint-disable-next-line no-underscore-dangle
- ...Module._nodeModulePaths(dirname(name)),
- ...opts.append_paths || [],
+ /*...opts.prepend_paths || [],*/
+ ...paths,
+ /*...opts.append_paths || [],*/
];
// eslint-disable-next-line no-underscore-dangle
m._compile(buffer, name);
|
oic; ble fragmentation was splitting packets too small. | @@ -299,7 +299,7 @@ oc_ble_frag(struct os_mbuf *m, uint16_t mtu)
if (os_mbuf_appendfrom(n, m, off, blk)) {
goto err;
}
- off -= blk;
+ off -= mtu;
os_mbuf_adj(m, -blk);
}
return 0;
|
crc/benchmark: scaling trials more appropriately | /*
- * Copyright (c) 2007 - 2015 Joseph Gaeddert
+ * Copyright (c) 2007 - 2021 Joseph Gaeddert
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@@ -42,7 +42,8 @@ void crc_bench(struct rusage *_start,
{
// normalize number of iterations
if (_crc != LIQUID_CRC_CHECKSUM)
- *_num_iterations /= 8;
+ *_num_iterations /= 100;
+ if (*_num_iterations < 1) *_num_iterations = 1;
unsigned long int i;
|
[CHAIN] add again incorrectly deleted code in commit
Tell add block response to RPCSvc | @@ -276,6 +276,7 @@ func (cs *ChainService) Receive(context actor.Context) {
BlockHash: block.BlockHash(),
Err: err,
})
+ cs.Hub().Tell(message.RPCSvc, block)
case *message.MemPoolDelRsp:
err := msg.Err
if err != nil {
|
doc:resolve the mismatch between doc and code
Default e820 mem map in hld-devicemodel.rst is
mismatched with sw_load_common.c,update the doc
to align with code. | @@ -216,14 +216,14 @@ DM Initialization
* map[0]:0~ctx->lowmem_limit & map[2]:4G~ctx->highmem for RAM
* ctx->highmem = request_memory_size - ctx->lowmem_limit
*
- * Begin End Type Length
- * 0: 0 - 0xef000 RAM 0xEF000
- * 1 0xef000 - 0x100000 (reserved) 0x11000
- * 2 0x100000 - lowmem RAM lowmem - 0x100000
- * 3: lowmem - bff_fffff (reserved) 0xc00_00000-lowmem
- * 4: 0xc00_00000 - dff_fffff PCI hole 512MB
- * 5: 0xe00_00000 - fff_fffff (reserved) 512MB
- * 6: 1_000_00000 - highmem RAM highmem-4G
+ * Begin Limit Type Length
+ * 0: 0 - 0xA0000 RAM 0xA0000
+ * 1 0x100000 - lowmem part1 RAM 0x0
+ * 2: SW SRAM_bot - SW SRAM_top (reserved) SOFTWARE_SRAM_MAX_SIZE
+ * 3: gpu_rsvd_bot - gpu_rsvd_top (reserved) 0x4004000
+ * 4: lowmem part2 - 0x80000000 (reserved) 0x0
+ * 5: 0xE0000000 - 0x100000000 MCFG, MMIO 512MB
+ * 6: HIGHRAM_START_ADDR - mmio64 start RAM ctx->highmem
*/
- **VM Loop Thread**: DM kicks this VM loop thread to create I/O
|
Fix test for new runtime: the runtime will round down to a multiple of wavesize. In this case, the num_threads ICV is set to 10 and the runtime selects 1 thread only for the parallel region | @@ -10,7 +10,8 @@ int main(int argc, char *argv[]) {
for(int dev = 0; dev < omp_get_num_devices(); ++dev)
{
- #pragma omp target device(dev) map(from:host[0:N])
+ int num_threads = -1;
+ #pragma omp target device(dev) map(from:host[0:N]) map(from:num_threads)
{
static __attribute__((address_space(3))) int A;
A = VALUE;
@@ -23,7 +24,8 @@ int main(int argc, char *argv[]) {
}
}
- for (int i = 0; i < N; ++i) {
+ // the runtime is free to choose the best number of threads <= num_threads value, related ICV, etc.
+ for (int i = 0; i < num_threads; ++i) {
if (host[i] != VALUE) {
printf("Failed on device %d host[%d]: %d (instead of %d)\n",dev,i,host[i],VALUE);
return 1;
@@ -35,5 +37,3 @@ int main(int argc, char *argv[]) {
return 0;
}
-
-
|
crypto-native: avoid overflow load on data
Type: improvement | @@ -119,7 +119,10 @@ aes_load_partial (u8x16u * p, int n_bytes)
__m128i zero = { };
return (u8x16) _mm_mask_loadu_epi8 (zero, (1 << n_bytes) - 1, p);
#else
- return aes_byte_mask (CLIB_MEM_OVERFLOW_LOAD (p), n_bytes);
+ u8x16 v = {};
+ CLIB_ASSUME (n_bytes < 16);
+ clib_memcpy_fast (&v, p, n_bytes);
+ return v;
#endif
}
|
import: Simplify lily_module_register. | @@ -690,17 +690,10 @@ void lily_module_register(lily_state *s, const char *name,
lily_parse_state *parser = s->gs->parser;
lily_module_entry *module = new_module(parser);
- module->loadname = lily_malloc(
- (strlen(name) + 1) * sizeof(*module->loadname));
- strcpy(module->loadname, name);
-
/* This special "path" is for vm and parser traceback. */
- lily_msgbuf *msgbuf = lily_mb_flush(parser->msgbuf);
- const char *msgbuf_path = lily_mb_sprintf(msgbuf, "[%s]", module->loadname);
- module->path = lily_malloc(
- (strlen(msgbuf_path) + 1) * sizeof(*module->path));
- strcpy(module->path, msgbuf_path);
+ const char *module_path = lily_mb_sprintf(parser->msgbuf, "[%s]", name);
+ add_path_to_module(module, name, module_path);
add_data_to_module(module, NULL, info_table, call_table);
module->cmp_len = 0;
module->flags |= MODULE_IS_REGISTERED;
|
Updated setup-buildtools-mac.sh | #!/bin/sh
+
+# TODO: it's not ideal experience, but we use have to use brew-provided deps.
+# Sometimes we might run into a situation where a different user takes over
+# control of the brew dirs. That causes the brew update to fail.
+# Temporarily allow the user to take over control of brew files.
+
+echo ***
+echo *** You may need to enter your admin password to update the brew files:
+echo ***
+
+sudo chown -R $(whoami) /usr/local/Cellar
+sudo chown -R $(whoami) /usr/local/Homebrew
+sudo chown -R $(whoami) /usr/local/var/homebrew
+sudo chown -R $(whoami) /usr/local/etc/bash_completion.d /usr/local/include /usr/local/lib/pkgconfig /usr/local/share/aclocal /usr/local/share/locale /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew/locks
+
brew install cmake
brew install wget
|
added test for LD39 and type eme | @@ -132,6 +132,15 @@ ${tools_dir}/grib_set -s localDefinitionNumber=49,type=35 $sample_g1 $temp
grib_check_key_equals $temp 'perturbationNumber,numberOfForecastsInEnsemble' '0 0'
+# Local Definition 39 and type 'eme' for GRIB2
+# --------------------------------------------
+${tools_dir}/grib_set -s \
+ setLocalDefinition=1,localDefinitionNumber=39,type=eme,stream=elda,componentIndex=11,offsetToEndOf4DvarWindow=12 \
+ $sample_g2 $temp
+grib_check_key_equals $temp 'mars.number,mars.anoffset' '11 12'
+${tools_dir}/grib_set -s setLocalDefinition=1,localDefinitionNumber=39,type=eme,stream=enda,componentIndex=11 $sample_g2 $temp
+grib_check_key_equals $temp 'mars.number' '11'
+
# Local Definition 18 (list of ascii keys)
# ----------------------------------------
|
Remove USE_YQL() macro and extra deps from YQL_UDF_STATIC. | @@ -1900,14 +1900,23 @@ otherwise {
YQL_UDF_LINK_PRG_CMD=$LINK_EXEC_DYN_LIB && ${tool:"yql/tools/udf_probe"} $TARGET ${kv;hide:"p UD"}
}
+### @usage: _ADD_YQL_UDF_DEPS()
+###
+### Add all needed PEERDIRs to a YQL_UDF.
+###
+### https://yql.yandex-team.ru/docs/yt/udf/cpp/
+macro _ADD_YQL_UDF_DEPS() {
+ PEERDIR(yql/library/udf)
+ PEERDIR(yql/library/udf/support)
+}
+
### @usage: _MAKE_YQL_UDF()
###
### Make module definition an YQL UDF: add all needed dependencies, properties and flags
###
### https://yql.yandex-team.ru/docs/yt/udf/cpp/
macro _MAKE_YQL_UDF() {
- PEERDIR(yql/library/udf)
- PEERDIR(yql/library/udf/support)
+ _ADD_YQL_UDF_DEPS()
SET_APPEND(USER_CXXFLAGS -DBUILD_UDF)
# For Windows using declspecs
DEFAULT(YQL_UDF_EXPORT ${ARCADIA_ROOT}/yql/library/udf/udfs_exports.exports)
@@ -1934,16 +1943,6 @@ module _YQL_UDF_PROGRAM_BASE: SO_PROGRAM {
_MAKE_YQL_UDF()
}
-### @usage USE_YQL()
-###
-### Add required PEERDIRs for YQL module.
-### Can be used for in-place module definition in user LIBRARY.
-macro USE_YQL() {
- PEERDIR(yql/library/udf)
- PEERDIR(yql/library/udf/support)
- PEERDIR(yql/library/udf/service/terminate_policy)
-}
-
### @usage: GLOBAL_SRCS(filenames...)
###
### Make all source files listed as GLOBAL.
@@ -2004,7 +2003,7 @@ multimodule YQL_UDF {
module YQL_UDF_STATIC: _DLL_COMPATIBLE_LIBRARY {
.ALIASES=SRCS=GLOBAL_SRCS
OBJ_SUF=.udfs
- USE_YQL()
+ _ADD_YQL_UDF_DEPS()
when ($MSVC == "yes" || $CYGWIN == "yes") {
MODULE_SUFFIX=.static.lib
}
|
Wrong attribute in xml | @@ -1471,7 +1471,7 @@ by the Poll Control Cluster Client.</description>
<value name="Use LED signalization except for access allowed events" value="0x01"></value>
<value name="Use LED signalization for all events" value="0x02"></value>
</attribute>
- <attribute id="0x0021" name="Auto Relock Time" type="u32" default="0" access="rw" required="o"></attribute>
+ <attribute id="0x0023" name="Auto Relock Time" type="u32" default="0" access="rw" required="o"></attribute>
<attribute id="0x0024" name="Sound Volume" type="u8" default="0" access="rw" required="o">
<value name="Silent Mode" value="0x00"></value>
<value name="Low Volume" value="0x01"></value>
|
Increase QNS Timeout to 25 min | @@ -17,14 +17,15 @@ jobs:
steps:
- checkout: none
- script: |
- sudo apt-get install -y cmake libglib2.0-dev libgcrypt20-dev flex bison \
- byacc libpcap-dev ninja-build
+ sudo apt-get install -y cmake libglib2.0-dev libgcrypt20-dev flex \
+ bison byacc libpcap-dev ninja-build
wget https://www.wireshark.org/download/src/wireshark-latest.tar.xz
tar -xvf wireshark-latest.tar.xz
rm wireshark-latest.tar.xz
mv ./wireshark-* ./wireshark
cd wireshark
- cmake -GNinja -DBUILD_wireshark=0 -DBUILD_sdjournal=0 -DBUILD_sshdump=0 -DBUILD_ciscodump=0 .
+ cmake -GNinja -DBUILD_wireshark=0 -DBUILD_sdjournal=0 \
+ -DBUILD_sshdump=0 -DBUILD_ciscodump=0 .
ninja
sudo ninja install
displayName: Install Wireshark
@@ -39,17 +40,13 @@ jobs:
- script: |
cd quic-interop-runner
- python3 run.py -s ${{ server }} -c ${{ client }} || true
+ python3 run.py -l ./logs -s ${{ server }} -c ${{ client }} || true
displayName: Run Tests
- timeoutInMinutes: 20
+ timeoutInMinutes: 25
continueOnError: true
- - script: |
- mv ./quic-interop-runner/logs_* $(Build.ArtifactStagingDirectory)
- displayName: Prepare Logs
-
- task: PublishPipelineArtifact@1
displayName: Upload Logs
inputs:
- targetPath: $(Build.ArtifactStagingDirectory)
+ targetPath: quic-interop-runner/logs/${{ server }}_${{ client }}
artifactName: qns_${{ server }}_${{ client }}
|
Fix linker file for ST_NUCLEO64_F091RC | */
MEMORY
{
- flash : org = 0x08002000, len = 256k - 8k - 68k /* flash size less the space reserved for nanoBooter and application deployment*/
+ flash : org = 0x08002800, len = 256k - 10k - 66k /* flash size less the space reserved for nanoBooter and application deployment*/
config : org = 0x00000000, len = 0 /* space reserved for configuration block */
- deployment : org = 0x0802F000, len = 68k /* space reserved for application deployment */
+ deployment : org = 0x0802F800, len = 66k /* space reserved for application deployment */
ramvt : org = 0x20000000, len = 0xC0 /* initial RAM address is reserved for a copy of the vector table */
ram0 : org = 0x200000C0, len = 32k - 0xC0 /* remaining RAM is free for use */
ram1 : org = 0x00000000, len = 0
|
Resolved segmentation fault on an empty vcf file | @@ -254,12 +254,21 @@ namespace ebi
{ { 120, -100 }, ZLIB }
};
+ /*
+ * First line of vcf file is having smaller size than 5 characters
+ * which will be a problem for std::equal to check its extension
+ * It will cause a segmentation fault.
+ * According to spec first line of vcf, file can't be smaller than 5 characters.
+ */
+ if(line.size() >=5){
for (auto & type : types) {
if (std::equal(type.first.begin(), type.first.end(), line.begin())) {
compressed_file_warning(type.second);
return type.second;
}
}
+ }
+
return NO_EXT;
}
|
qpilotsync: using FFT macro to select between internal and fftw | * THE SOFTWARE.
*/
-//
-// qpilotsync.c
-//
-// pilot injection
-//
+// symbol recovery with interleaved pilots
#include <stdlib.h>
#include <stdio.h>
@@ -49,7 +45,7 @@ struct qpilotsync_s {
unsigned int nfft; // FFT size
float complex * buf_time; // FFT time buffer
float complex * buf_freq; // FFT freq buffer
- fftplan fft; // transform object
+ FFT_PLAN fft; // transform object
float dphi_hat; // carrier frequency offset estimate
float phi_hat; // carrier phase offset estimate
@@ -101,7 +97,7 @@ qpilotsync qpilotsync_create(unsigned int _payload_len,
q->nfft = 1 << liquid_nextpow2(q->num_pilots + (q->num_pilots>>1));
q->buf_time = (float complex*) malloc(q->nfft*sizeof(float complex));
q->buf_freq = (float complex*) malloc(q->nfft*sizeof(float complex));
- q->fft = fft_create_plan(q->nfft, q->buf_time, q->buf_freq, LIQUID_FFT_FORWARD, 0);
+ q->fft = FFT_CREATE_PLAN(q->nfft, q->buf_time, q->buf_freq, FFT_DIR_FORWARD, 0);
// reset and return pointer to main object
qpilotsync_reset(q);
@@ -142,7 +138,7 @@ int qpilotsync_destroy(qpilotsync _q)
free(_q->buf_freq);
// destroy objects
- fft_destroy_plan(_q->fft);
+ FFT_DESTROY_PLAN(_q->fft);
// free main object memory
free(_q);
@@ -207,7 +203,7 @@ int qpilotsync_execute(qpilotsync _q,
}
// compute frequency offset by computing transform and finding peak
- fft_execute(_q->fft);
+ FFT_EXECUTE(_q->fft);
unsigned int i0 = 0;
float y0 = 0;
for (i=0; i<_q->nfft; i++) {
|
Increase the default security level to 2
OTC voted to increase the security level from 1 to 2 | @@ -28,7 +28,7 @@ extern "C" {
/* Default security level if not overridden at config time */
# ifndef OPENSSL_TLS_SECURITY_LEVEL
-# define OPENSSL_TLS_SECURITY_LEVEL 1
+# define OPENSSL_TLS_SECURITY_LEVEL 2
# endif
/* TLS*_VERSION constants are defined in prov_ssl.h */
|
Test attribute value with trailing CR | @@ -4781,6 +4781,16 @@ START_TEST(test_reject_unfinished_param_in_att_value)
}
END_TEST
+START_TEST(test_trailing_cr_in_att_value)
+{
+ const char *text = "<doc a='value\r'/>";
+
+ if (_XML_Parse_SINGLE_BYTES(parser, text, strlen(text),
+ XML_TRUE) == XML_STATUS_ERROR)
+ xml_failure(parser);
+}
+END_TEST
+
/*
* Namespaces tests.
@@ -8203,6 +8213,7 @@ make_suite(void)
tcase_add_test(tc_basic, test_restart_on_error);
tcase_add_test(tc_basic, test_reject_lt_in_attribute_value);
tcase_add_test(tc_basic, test_reject_unfinished_param_in_att_value);
+ tcase_add_test(tc_basic, test_trailing_cr_in_att_value);
suite_add_tcase(s, tc_namespace);
tcase_add_checked_fixture(tc_namespace,
|
Validate expected packet type | @@ -277,8 +277,9 @@ ssize_t ngtcp2_conn_send(ngtcp2_conn *conn, uint8_t *dest, size_t destlen) {
return rv;
}
-static int ngtcp2_conn_recv_cleartext(ngtcp2_conn *conn, const uint8_t *pkt,
- size_t pktlen, int server, int initial) {
+static int ngtcp2_conn_recv_cleartext(ngtcp2_conn *conn, uint8_t exptype,
+ const uint8_t *pkt, size_t pktlen,
+ int server, int initial) {
ssize_t nread;
ngtcp2_pkt_hd hd;
ngtcp2_frame fr;
@@ -304,6 +305,10 @@ static int ngtcp2_conn_recv_cleartext(ngtcp2_conn *conn, const uint8_t *pkt,
conn->conn_id = hd.conn_id;
}
+ if (exptype != hd.type) {
+ return NGTCP2_ERR_PROTO;
+ }
+
for (; pktlen;) {
nread = ngtcp2_pkt_decode_frame(&fr, pkt, pktlen);
if (nread < 0) {
@@ -359,27 +364,31 @@ int ngtcp2_conn_recv(ngtcp2_conn *conn, const uint8_t *pkt, size_t pktlen) {
switch (conn->state) {
case NGTCP2_CS_CLIENT_CI_SENT:
/* TODO Handle Version Negotiation */
- rv = ngtcp2_conn_recv_cleartext(conn, pkt, pktlen, 0, 1);
+ rv = ngtcp2_conn_recv_cleartext(conn, NGTCP2_PKT_SERVER_CLEARTEXT, pkt,
+ pktlen, 0, 1);
if (rv < 0) {
break;
}
conn->state = NGTCP2_CS_CLIENT_SC_RECVED;
break;
case NGTCP2_CS_CLIENT_SC_RECVED:
- rv = ngtcp2_conn_recv_cleartext(conn, pkt, pktlen, 0, 0);
+ rv = ngtcp2_conn_recv_cleartext(conn, NGTCP2_PKT_SERVER_CLEARTEXT, pkt,
+ pktlen, 0, 0);
if (rv < 0) {
break;
}
break;
case NGTCP2_CS_SERVER_INITIAL:
- rv = ngtcp2_conn_recv_cleartext(conn, pkt, pktlen, 1, 1);
+ rv = ngtcp2_conn_recv_cleartext(conn, NGTCP2_PKT_CLIENT_INITIAL, pkt,
+ pktlen, 1, 1);
if (rv < 0) {
break;
}
conn->state = NGTCP2_CS_SERVER_CI_RECVED;
break;
case NGTCP2_CS_SERVER_SC_SENT:
- rv = ngtcp2_conn_recv_cleartext(conn, pkt, pktlen, 1, 0);
+ rv = ngtcp2_conn_recv_cleartext(conn, NGTCP2_PKT_CLIENT_CLEARTEXT, pkt,
+ pktlen, 1, 0);
if (rv < 0) {
break;
}
|
Fix Environment.TickCount64 | @@ -10,11 +10,9 @@ HRESULT Library_nf_rt_native_System_Environment::get_TickCount64___STATIC__I8(CL
NATIVE_PROFILE_CLR_CORE();
NANOCLR_HEADER();
- CLR_RT_HeapBlock &ref = stack.PushValue();
+ int64_t ticksValue = CLR_RT_ExecutionEngine::GetUptime();
- // get pointer to object pushed to the stack
- // and set with value from EE
- ref.Dereference()->NumericByRef().s8 = CLR_RT_ExecutionEngine::GetUptime();
+ stack.SetResult_I8(ticksValue);
NANOCLR_NOCLEANUP_NOLABEL();
}
|
interface: fix interface_types.api enums
Unspecified c enums start at 0.
Unspecified api enums start at 1.
Type: fix | @@ -25,11 +25,10 @@ enum if_status_flags
/* Per protocol MTU */
enum mtu_proto
{
- MTU_PROTO_API_L3, /* Default payload MTU (without L2 headers) */
- MTU_PROTO_API_IP4, /* Per-protocol MTUs overriding default */
- MTU_PROTO_API_IP6,
- MTU_PROTO_API_MPLS,
- MTU_PROTO_API_N,
+ MTU_PROTO_API_L3 = 0, /* Default payload MTU (without L2 headers) */
+ MTU_PROTO_API_IP4 = 1, /* Per-protocol MTUs overriding default */
+ MTU_PROTO_API_IP6 = 2,
+ MTU_PROTO_API_MPLS = 3,
};
enum link_duplex
@@ -65,10 +64,10 @@ enum rx_mode
enum if_type
{
/* A hw interface. */
- IF_API_TYPE_HARDWARE,
+ IF_API_TYPE_HARDWARE = 0,
/* A sub-interface. */
- IF_API_TYPE_SUB,
- IF_API_TYPE_P2P,
- IF_API_TYPE_PIPE,
+ IF_API_TYPE_SUB = 1,
+ IF_API_TYPE_P2P = 2,
+ IF_API_TYPE_PIPE = 3,
};
|
apps/st_things : Fix kconfig syntax error.
It should have let each example select one. but it does contain the unnecessary. So I fix the syntax. | @@ -23,6 +23,20 @@ config EXAMPLES_ST_THINGS_LIGHT
---help---
This is a Light Sample.
+config EXAMPLES_ST_THINGS_BLINK
+ bool "BLINK"
+ select IOTBUS_GPIO
+ ---help---
+ This is a Blink Sample.
+
+config EXAMPLES_ST_THINGS_MSG_HANDLING
+ bool "Message Handling Example"
+ select IOTBUS_GPIO
+ ---help---
+ This is a Message handling Sample.
+
+endchoice
+
config RESET_BUTTON
bool "Reset_Button"
default y
@@ -38,24 +52,14 @@ config RESET_BUTTON_PIN_NUMBER
The default is the reset button pin number 44 for the ARTIK 053.
If you use another board, you can set the pin number for the board.
-config EXAMPLES_ST_THINGS_BLINK
- bool "BLINK"
- select IOTBUS_GPIO
- ---help---
- This is a Blink Sample.
-
-config EXAMPLES_ST_THINGS_MSG_HANDLING
- bool "Message Handling Example"
- select IOTBUS_GPIO
- ---help---
- This is a Message handling Sample.
config EXAMPLES_ST_THINGS_RED_LED_GPIO_NUM
int "GPIO number of RED LED"
default 45
+ depends on EXAMPLES_ST_THINGS_BLINK
---help---
This is a red led gpio num.
-endchoice
+
endif
config USER_ENTRYPOINT
|
parallel-libs/mumps: bump to v5.1.2 | %define PNAME %(echo %{pname} | tr [a-z] [A-Z])
Name: %{pname}-%{compiler_family}-%{mpi_family}%{PROJ_DELIM}
-Version: 5.1.1
+Version: 5.1.2
Release: 1%{?dist}
Summary: A MUltifrontal Massively Parallel Sparse direct Solver
License: CeCILL-C
|
Fix unable to close overlay when combo was bound | @@ -737,10 +737,13 @@ void VKBindings::ExecuteRecording(bool aLastKeyDown)
const auto& overlayToggleModBind = Bindings::GetOverlayToggleModBind();
const auto cetBind = possibleBind.ModName == overlayToggleModBind.ModName;
if (!cetBind && (!m_cpVm->IsInitialized() || CET::Get().GetOverlay().IsEnabled()))
+ {
+ if (bind->IsInput())
{
m_recordingResult = 0;
m_recording.fill(0);
m_recordingLength = 0;
+ }
return;
}
|
[BSP][STM32F107]Update Kconfig | @@ -9,3 +9,13 @@ config RT_USING_UART2
config RT_USING_UART3
bool "Enable UART3 (PC10/11)"
default n
+
+config BSP_USING_RTC
+ bool "Enable RTC"
+ select RT_USING_RTC
+ default n
+
+config BSP_USING_PIN
+ bool "Enable PIN device for GPIO"
+ select RT_USING_PIN
+ default y
|
Tools: Add missing DTR/RTS set before serial port open on reconnect when --no-reset is used
This makes sure --no-reset works correctly when the monitor reconnects the serial port. | @@ -76,6 +76,10 @@ class SerialReader(Reader):
while self.alive: # so that exiting monitor works while waiting
try:
time.sleep(RECONNECT_DELAY)
+ if not self.reset:
+ self.serial.dtr = low # Non reset state
+ self.serial.rts = high # IO0=HIGH
+ self.serial.dtr = self.serial.dtr # usbser.sys workaround
self.serial.open()
break # device connected
except serial.serialutil.SerialException:
|
nat: in2out/out2in handoff node index bugfix
This fixes a bug in the initialization of handoff_out2in_index and
handoff_in2out_index where the node index for out2in was set to the
in2out node, and vice versa.
Type: fix | @@ -4027,8 +4027,8 @@ snat_config (vlib_main_t * vm, unformat_input_t * input)
sm->worker_in2out_cb = snat_get_worker_in2out_cb;
sm->worker_out2in_cb = snat_get_worker_out2in_cb;
- sm->handoff_out2in_index = snat_in2out_node.index;
- sm->handoff_in2out_index = snat_out2in_node.index;
+ sm->handoff_out2in_index = snat_out2in_node.index;
+ sm->handoff_in2out_index = snat_in2out_node.index;
sm->handoff_in2out_output_index = snat_in2out_output_node.index;
sm->in2out_node_index = snat_in2out_node.index;
|
Check that the PSK extension is last
We need to check that the PSK extension in a ClientHello is the last one. | @@ -447,10 +447,14 @@ int tls_collect_extensions(SSL *s, PACKET *packet, unsigned int context,
}
/*
* Verify this extension is allowed. We only check duplicates for
- * extensions that we recognise.
+ * extensions that we recognise. We also have a special case for the
+ * PSK extension, which must be the last one in the ClientHello.
*/
if (!verify_extension(s, context, type, exts, raw_extensions, &thisex)
- || (thisex != NULL && thisex->present == 1)) {
+ || (thisex != NULL && thisex->present == 1)
+ || (type == TLSEXT_TYPE_psk
+ && (context & EXT_CLIENT_HELLO) != 0
+ && PACKET_remaining(&extensions) != 0)) {
SSLerr(SSL_F_TLS_COLLECT_EXTENSIONS, SSL_R_BAD_EXTENSION);
*al = SSL_AD_ILLEGAL_PARAMETER;
goto err;
|
vppinfra: fix sock init netns
Type: fix | @@ -560,7 +560,7 @@ clib_socket_init_netns (clib_socket_t *s, u8 *namespace)
return clib_socket_init (s);
clib_error_t *error;
- int old_netns_fd, nfd;
+ int old_netns_fd, nfd = -1;
old_netns_fd = clib_netns_open (NULL /* self */);
if ((nfd = clib_netns_open (namespace)) == -1)
@@ -580,8 +580,12 @@ clib_socket_init_netns (clib_socket_t *s, u8 *namespace)
done:
if (clib_setns (old_netns_fd) == -1)
clib_warning ("Cannot set old ns");
+
close (old_netns_fd);
+ if (-1 != nfd)
+ close (nfd);
+
return error;
}
|
Test automation documentation update only. | @@ -27,7 +27,6 @@ When running on Jenkins the test system will run these two test instances in seq
**NOTE:** It is important to note that the values set for the instances in [DATABASE.md](DATABASE.md) are used as input to the build, flash and test stage.
-
# Reading The Jenkins Output
You can follow the testing in realtime on Jenkins. You will get a nice overview in the BlueOcean UI:
@@ -144,6 +143,8 @@ When you switch version in `u_packages.yml` the package manager will first check
In `DATABASE.md` the CodeChecker is run by adding `CodeChecker:` prefix to the `Platform` field. All defines and configurations will be regarded exactly like building a firmware for the specific platform.
+If you are running CodeChecker locally you need to `pip3 install codechecker` and, on Windows, install at least [LLVM version 14](https://github.com/llvm/llvm-project/releases/tag/llvmorg-14.0.0), adding the `bin` directory to your path.
+
## Reports
As a general rule Clang Static Analyzer rarely gives you false positive so look closely at the feedback. Clang-tidy, on the other hand, is a Linter so there you will see some false positives.
|
spgram/autotest: adding debug script to export output to file | @@ -120,7 +120,21 @@ void testbench_spgramcf_signal(unsigned int _nfft, int _wtype, float _fc, float
// verify result
float psd[_nfft];
spgramcf_get_psd(q, psd);
- //for (i=0; i<_nfft; i++) { printf("%6u %8.2f\n", i, psd[i]); }
+#if 0
+ // debug
+ const char filename[] = "testbench_spgramcf_signal.m";
+ FILE * fid = fopen(filename,"w");
+ fprintf(fid,"clear all; close all; nfft=%u; f=[0:(nfft-1)]/nfft-0.5; psd=zeros(1,nfft);\n", _nfft);
+ fprintf(fid,"i0=%u; ns=%u; target=%f; tol=%f; idx=mod(round([1:ns]-1+i0-ns/2),nfft)+1;\n", i0, ns, psd_target, tol);
+ for (i=0; i<_nfft; i++) { fprintf(fid,"psd(%6u) = %8.2f;\n", i+1, psd[i]); }
+ fprintf(fid,"figure; xlabel('f/F_s'); ylabel('PSD [dB]'); hold on;\n");
+ fprintf(fid," plot(f(idx),target*ones(1,ns)+tol,'Color',[0.5 0 0]);\n");
+ fprintf(fid," plot(f(idx),target*ones(1,ns)-tol,'Color',[0.5 0 0]);\n");
+ fprintf(fid," plot(f,psd,'LineWidth',2,'Color',[0 0.3 0.5]);\n");
+ fprintf(fid,"hold off; grid on; axis([-0.5 0.5 %f %f]);\n", noise_floor-5, noise_floor+_SNRdB+5);
+ fclose(fid);
+ printf("debug file written to %s\n", filename);
+#endif
for (i=0; i<ns; i++) {
unsigned int index = (i0 + i + _nfft - ns/2) % _nfft;
CONTEND_DELTA(psd[index], psd_target, tol)
|
tests/run-perfbench.py: Add --emit option to select emitter for tests. | @@ -49,7 +49,7 @@ def run_script_on_target(target, script):
else:
# Run local executable
try:
- p = subprocess.run([target], stdout=subprocess.PIPE, stderr=subprocess.STDOUT, input=script)
+ p = subprocess.run(target, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, input=script)
output = p.stdout
except subprocess.CalledProcessError as er:
err = er
@@ -195,6 +195,7 @@ def main():
cmd_parser.add_argument('-p', '--pyboard', action='store_true', help='run tests via pyboard.py')
cmd_parser.add_argument('-d', '--device', default='/dev/ttyACM0', help='the device for pyboard.py')
cmd_parser.add_argument('-a', '--average', default='8', help='averaging number')
+ cmd_parser.add_argument('--emit', default='bytecode', help='MicroPython emitter to use (bytecode or native)')
cmd_parser.add_argument('N', nargs=1, help='N parameter (approximate target CPU frequency)')
cmd_parser.add_argument('M', nargs=1, help='M parameter (approximate target heap in kbytes)')
cmd_parser.add_argument('files', nargs='*', help='input test files')
@@ -215,7 +216,7 @@ def main():
target = pyboard.Pyboard(args.device)
target.enter_raw_repl()
else:
- target = MICROPYTHON
+ target = [MICROPYTHON, '-X', 'emit=' + args.emit]
if len(args.files) == 0:
tests_skip = ('benchrun.py',)
|
output: add missing declaration for flb_output_instance_init. | @@ -753,6 +753,7 @@ void flb_output_exit(struct flb_config *config);
void flb_output_set_context(struct flb_output_instance *ins, void *context);
int flb_output_instance_destroy(struct flb_output_instance *ins);
int flb_output_init_all(struct flb_config *config);
+int flb_output_instance_init(struct flb_output_instance *ins, struct flb_config *config);
int flb_output_check(struct flb_config *config);
int flb_output_log_check(struct flb_output_instance *ins, int l);
|
fix demo project location in cmake metadata | @@ -30,7 +30,7 @@ afr_set_board_metadata(RECOMMENDED_IDE "uVision")
afr_set_board_metadata(IDE_uVision_NAME "Keil uVision")
afr_set_board_metadata(IDE_uVision_COMPILER "ARMCC")
afr_set_board_metadata(IS_ACTIVE "TRUE")
-afr_set_board_metadata(IDE_uVision_PROJECT_LOCATION "${CMAKE_CURRENT_LIST_DIR}/aws_demos/keil")
+afr_set_board_metadata(IDE_uVision_PROJECT_LOCATION "${AFR_ROOT_DIR}/projects/nuvoton/numaker_iot_m487_wifi/uvision/aws_demos")
afr_set_board_metadata(AWS_DEMOS_CONFIG_FILES_LOCATION "${CMAKE_CURRENT_LIST_DIR}/aws_demos/config_files")
# -------------------------------------------------------------------------------------------------
|
Don't change CMAKE_MODULE_PATH | @@ -24,9 +24,6 @@ endif()
project(OpenEXRMetaProject)
-# Search for custom modules in our cmake directory
-list (APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
-
# An "official" way to make this a super-project
# basically overrides the find_package to not find anything
@@ -91,4 +88,4 @@ endif()
# Including this module will add a `clang-format` target to the build if
# the clang-format executable can be found.
-include(clang-format)
+include(cmake/clang-format)
|
Remove unused markdown link in README | @@ -828,8 +828,6 @@ ADB=/path/to/adb scrcpy
To override the path of the `scrcpy-server` file, configure its path in
`SCRCPY_SERVER_PATH`.
-[useful]: https://github.com/Genymobile/scrcpy/issues/278#issuecomment-429330345
-
To override the icon, configure its path in `SCRCPY_ICON_PATH`.
|
pdftops: Added NULL check and clean-up to the pdf_pages() function in pdf.cxx | @@ -93,13 +93,18 @@ extern "C" void pdf_free(pdf_t *pdf)
int pdf_pages(const char *filename)
{
QPDF *pdf = new QPDF();
+ if (pdf) {
try{
pdf->processFile(filename);
} catch(...) {
+ pdf_free(pdf);
return -1;
}
int pages = (pdf->getAllPages()).size();
+ pdf_free(pdf);
return pages;
+ } else
+ return -1;
}
|
fix warnings in doxygen | @@ -1821,18 +1821,6 @@ GENERATE_XML = NO
XML_OUTPUT = xml
-# The XML_SCHEMA tag can be used to specify a XML schema, which can be used by a
-# validating XML parser to check the syntax of the XML files.
-# This tag requires that the tag GENERATE_XML is set to YES.
-
-XML_SCHEMA =
-
-# The XML_DTD tag can be used to specify a XML DTD, which can be used by a
-# validating XML parser to check the syntax of the XML files.
-# This tag requires that the tag GENERATE_XML is set to YES.
-
-XML_DTD =
-
# If the XML_PROGRAMLISTING tag is set to YES doxygen will dump the program
# listings (including syntax highlighting and cross-referencing information) to
# the XML output. Note that enabling this will significantly increase the size
|
build-tester: fix another line | @@ -64,8 +64,6 @@ for target in $(jq -r '.[] | @base64' $TARGETS_FILE); do
if make -j32 -C "$SOURCE_FOLDER" MODE="$MODE" $TARGET_NAME &> /dev/null; then
cp "$BUILD_FOLDER/$MODE/quicksilver.$TARGET_NAME.$MODE.hex" "$OUTPUT_FOLDER/$BUILD_NAME.hex"
- echo "<div><a target=\"_blank\" href=\"$BUILD_NAME.hex\">$BUILD_NAME</a></div>" >> $INDEX_PAGE
-
echo -e "\e[32mSuccessfully\e[39m built target $BUILD_NAME"
else
echo -e "\e[31mError\e[39m building target $BUILD_NAME"
|
Initialize function pointer variables for suppressing warnings -Wmaybe-uninitialized | *
* ******************************************************************************
*
- * Copyright (c) 2014-2017 Hayaki Saito
+ * Copyright (c) 2014-2018 Hayaki Saito
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
@@ -1279,26 +1279,34 @@ sixel_quant_apply_palette(
switch (methodForDiffuse) {
case SIXEL_DIFFUSE_NONE:
f_diffuse = diffuse_none;
+ f_mask = mask_a;
break;
case SIXEL_DIFFUSE_ATKINSON:
f_diffuse = diffuse_atkinson;
+ f_mask = mask_a;
break;
case SIXEL_DIFFUSE_FS:
f_diffuse = diffuse_fs;
+ f_mask = mask_a;
break;
case SIXEL_DIFFUSE_JAJUNI:
f_diffuse = diffuse_jajuni;
+ f_mask = mask_a;
break;
case SIXEL_DIFFUSE_STUCKI:
f_diffuse = diffuse_stucki;
+ f_mask = mask_a;
break;
case SIXEL_DIFFUSE_BURKES:
f_diffuse = diffuse_burkes;
+ f_mask = mask_a;
break;
case SIXEL_DIFFUSE_A_DITHER:
+ f_diffuse = diffuse_none;
f_mask = mask_a;
break;
case SIXEL_DIFFUSE_X_DITHER:
+ f_diffuse = diffuse_none;
f_mask = mask_x;
break;
default:
@@ -1306,6 +1314,7 @@ sixel_quant_apply_palette(
" methodForDiffuse: %d\n",
methodForDiffuse);
f_diffuse = diffuse_none;
+ f_mask = mask_a;
break;
}
}
|
trying to fiix the writehelp to properly show the descriptions | @@ -255,6 +255,12 @@ void WriteHelpOption(OPTIONS *options, int bLong) {
// Properties
printf("%s\n",options->cName);
printf("================== ====================================\n");
+ if (!memcmp(options->cLongDescr,"null",4)) {
+ printf("\n**Overview**\n");
+ printf("%s\n",options->cLongDescr);
+ }
+ else
+ printf("**Description** %s\n", options->cDescr);
printf("**Type** ");
if (options->iType == 0) printf("Bool\n");
else if (options->iType == 1) printf("Int\n");
@@ -276,12 +282,12 @@ void WriteHelpOption(OPTIONS *options, int bLong) {
if (memcmp(options->cValues,"null",4)) {
printf("**Allowed values** %s\n", options->cValues);
}
- printf("**Description** %s\n", options->cDescr);
- // Long description
- if (memcmp(options->cLongDescr,"null",4)) {
- printf("\n**Overview**\n");
- printf("%s\n",options->cLongDescr);
- }
+ // printf("**Description** %s\n", options->cDescr);
+ // // Long description
+ // if (!memcmp(options->cLongDescr,"null",4)) {
+ // printf("\n**Overview**\n");
+ // printf("%s\n",options->cLongDescr);
+ // }
printf("================== ====================================\n\n");
}
}
|
bfd: remove source IP check from session add
Checking for existence of source address on interface prevents creating
session before assigning address to said interface. Removing this check
allows more flexibility when configuring BFD feature.
Type: improvement | @@ -601,8 +601,6 @@ bfd_udp_validate_api_input (u32 sw_if_index,
bfd_udp_main_t *bum = &bfd_udp_main;
vnet_sw_interface_t *sw_if =
vnet_get_sw_interface_or_null (bfd_udp_main.vnet_main, sw_if_index);
- u8 local_ip_valid = 0;
- ip_interface_address_t *ia = NULL;
if (!sw_if)
{
vlib_log_err (bum->log_class,
@@ -618,21 +616,6 @@ bfd_udp_validate_api_input (u32 sw_if_index,
"IP family mismatch (local is ipv4, peer is ipv6)");
return VNET_API_ERROR_INVALID_ARGUMENT;
}
- ip4_main_t *im = &ip4_main;
-
- /* *INDENT-OFF* */
- foreach_ip_interface_address (
- &im->lookup_main, ia, sw_if_index, 0 /* honor unnumbered */, ({
- ip4_address_t *x =
- ip_interface_address_get_address (&im->lookup_main, ia);
- if (x->as_u32 == local_addr->ip4.as_u32)
- {
- /* valid address for this interface */
- local_ip_valid = 1;
- break;
- }
- }));
- /* *INDENT-ON* */
}
else
{
@@ -642,44 +625,6 @@ bfd_udp_validate_api_input (u32 sw_if_index,
"IP family mismatch (local is ipv6, peer is ipv4)");
return VNET_API_ERROR_INVALID_ARGUMENT;
}
-
- if (ip6_address_is_link_local_unicast (&local_addr->ip6))
- {
- const ip6_address_t *ll_addr;
- ll_addr = ip6_get_link_local_address (sw_if_index);
- if (ll_addr && ip6_address_is_equal (ll_addr, &local_addr->ip6))
- {
- /* valid address for this interface */
- local_ip_valid = 1;
- }
- }
- else
- {
- ip6_main_t *im = &ip6_main;
- /* *INDENT-OFF* */
- foreach_ip_interface_address (
- &im->lookup_main, ia, sw_if_index, 0 /* honor unnumbered */, ({
- ip6_address_t *x =
- ip_interface_address_get_address (&im->lookup_main, ia);
- if (local_addr->ip6.as_u64[0] == x->as_u64[0] &&
- local_addr->ip6.as_u64[1] == x->as_u64[1])
- {
- /* valid address for this interface */
- local_ip_valid = 1;
- break;
- }
- }));
- /* *INDENT-ON* */
- }
- }
-
- if (!local_ip_valid)
- {
- vlib_log_err (bum->log_class,
- "local address %U not found on interface with index %u",
- format_ip46_address, local_addr, IP46_TYPE_ANY,
- sw_if_index);
- return VNET_API_ERROR_ADDRESS_NOT_FOUND_FOR_INTERFACE;
}
return 0;
|
Factorize screen_init() error management | @@ -307,8 +307,7 @@ screen_init(struct screen *screen, const struct screen_params *params) {
if (!fps_counter_init(&screen->fps_counter)) {
LOGE("Could not initialize FPS counter");
- video_buffer_destroy(&screen->vb);
- return false;
+ goto error_destroy_video_buffer;
}
screen->frame_size = params->frame_size;
@@ -347,19 +346,14 @@ screen_init(struct screen *screen, const struct screen_params *params) {
window_flags);
if (!screen->window) {
LOGC("Could not create window: %s", SDL_GetError());
- fps_counter_destroy(&screen->fps_counter);
- video_buffer_destroy(&screen->vb);
- return false;
+ goto error_destroy_fps_counter;
}
screen->renderer = SDL_CreateRenderer(screen->window, -1,
SDL_RENDERER_ACCELERATED);
if (!screen->renderer) {
LOGC("Could not create renderer: %s", SDL_GetError());
- SDL_DestroyWindow(screen->window);
- fps_counter_destroy(&screen->fps_counter);
- video_buffer_destroy(&screen->vb);
- return false;
+ goto error_destroy_window;
}
SDL_RendererInfo renderer_info;
@@ -408,22 +402,13 @@ screen_init(struct screen *screen, const struct screen_params *params) {
screen->texture = create_texture(screen);
if (!screen->texture) {
LOGC("Could not create texture: %s", SDL_GetError());
- SDL_DestroyRenderer(screen->renderer);
- SDL_DestroyWindow(screen->window);
- fps_counter_destroy(&screen->fps_counter);
- video_buffer_destroy(&screen->vb);
- return false;
+ goto error_destroy_renderer;
}
screen->frame = av_frame_alloc();
if (!screen->frame) {
LOGC("Could not create screen frame");
- SDL_DestroyTexture(screen->texture);
- SDL_DestroyRenderer(screen->renderer);
- SDL_DestroyWindow(screen->window);
- fps_counter_destroy(&screen->fps_counter);
- video_buffer_destroy(&screen->vb);
- return false;
+ goto error_destroy_texture;
}
// Reset the window size to trigger a SIZE_CHANGED event, to workaround
@@ -454,6 +439,19 @@ screen_init(struct screen *screen, const struct screen_params *params) {
#endif
return true;
+
+error_destroy_texture:
+ SDL_DestroyTexture(screen->texture);
+error_destroy_renderer:
+ SDL_DestroyRenderer(screen->renderer);
+error_destroy_window:
+ SDL_DestroyWindow(screen->window);
+error_destroy_fps_counter:
+ fps_counter_destroy(&screen->fps_counter);
+error_destroy_video_buffer:
+ video_buffer_destroy(&screen->vb);
+
+ return false;
}
static void
|
cache: temporary disable from default config | @@ -358,11 +358,11 @@ KeySet * elektraDefaultGlobalConfig (void)
// TODO: this is a poor way of detecting whether cache is compiled, but simply
// matching against cache might fail because of other plugins (e.g. "cachefilter")
- if (strstr (ELEKTRA_PLUGINS, ";cache;") != NULL)
- {
- ksAppendKey (config, keyNew ("system/elektra/globalplugins/postgetcache", KEY_VALUE, "cache", KEY_END));
- ksAppendKey (config, keyNew ("system/elektra/globalplugins/pregetcache", KEY_VALUE, "cache", KEY_END));
- }
+ // if (strstr (ELEKTRA_PLUGINS, ";cache;") != NULL)
+ // {
+ // ksAppendKey (config, keyNew ("system/elektra/globalplugins/postgetcache", KEY_VALUE, "cache", KEY_END));
+ // ksAppendKey (config, keyNew ("system/elektra/globalplugins/pregetcache", KEY_VALUE, "cache", KEY_END));
+ // }
return config;
}
|
Remove line missed in previous commit | @@ -606,7 +606,6 @@ sub upgradecheck
print "\nStarting new cluster\n\n";
@args = ('pg_ctl', '-l', "$logdir/postmaster2.log", 'start');
system(@args) == 0 or exit 1;
- system(@args) == 0 or exit 1;
print "\nDumping new cluster\n\n";
@args = ('pg_dumpall', '-f', "$tmp_root/dump2.sql");
system(@args) == 0 or exit 1;
|
SOVERSION bump to version 5.6.31 | @@ -54,7 +54,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_
# with backward compatible change and micro version is connected with any internal change of the library.
set(SYSREPO_MAJOR_SOVERSION 5)
set(SYSREPO_MINOR_SOVERSION 6)
-set(SYSREPO_MICRO_SOVERSION 30)
+set(SYSREPO_MICRO_SOVERSION 31)
set(SYSREPO_SOVERSION_FULL ${SYSREPO_MAJOR_SOVERSION}.${SYSREPO_MINOR_SOVERSION}.${SYSREPO_MICRO_SOVERSION})
set(SYSREPO_SOVERSION ${SYSREPO_MAJOR_SOVERSION})
|
LEDs work, but not timers yet | #include <led.h>
#include <timer.h>
-int main(void) {
+int main(void)
+{
// Ask the kernel how many LEDs are on this board.
int num_leds = led_count();
@@ -9,14 +10,10 @@ int main(void) {
// to the number of LEDs on the board.
for (int count = 0;; count++) {
for (int i = 0; i < num_leds; i++) {
- if (count & (1 << i)) {
- led_on(i);
- } else {
- led_off(i);
+ led_toggle(i);
}
+ /** delay_ms(250); */
}
// This delay uses an underlying timer in the kernel.
- delay_ms(250);
- }
}
|
system/spi: Print sent data in the same way as received.
This eases the comparison for testing SPI with looped back MOSI and MISO
signals. | @@ -132,6 +132,21 @@ int spicmd_exch(FAR struct spitool_s *spitool, int argc, FAR char **argv)
argndx += 1;
}
+ spitool_printf(spitool, "Sending:\t");
+ for (d = 0; d < spitool->count; d++)
+ {
+ if (spitool->width <= 8)
+ {
+ spitool_printf(spitool, "%02X ", txdata[d]);
+ }
+ else
+ {
+ spitool_printf(spitool, "%04X ", ((uint16_t *)txdata)[d]);
+ }
+ }
+
+ spitool_printf(spitool, "\n");
+
/* Get a handle to the SPI bus */
fd = spidev_open(spitool->bus);
@@ -168,7 +183,7 @@ int spicmd_exch(FAR struct spitool_s *spitool, int argc, FAR char **argv)
return ret;
}
- spitool_printf(spitool, "Received: ");
+ spitool_printf(spitool, "Received:\t");
for (d = 0; d < spitool->count; d++)
{
if (spitool->width <= 8)
|
[persistence] fix error at first checkpoint | @@ -450,6 +450,14 @@ void cmdlog_complete_dual_write(bool success)
log_BUFFER *logbuff = &log_gl.log_buffer;
pthread_mutex_lock(&log_gl.log_flush_lock);
+ do {
+ if (log_gl.log_file.next_fd == -1) {
+ /* next_fd == -1 means the first state without log file.
+ * created first log file by checkpoint.
+ * do not cleanup file fds.
+ */
+ break;
+ }
if (success) {
pthread_mutex_lock(&log_gl.log_write_lock);
if (logbuff->fque[logbuff->fend].nflush > 0) {
@@ -484,6 +492,7 @@ void cmdlog_complete_dual_write(bool success)
log_gl.log_file.prev_fd = log_gl.log_file.next_fd;
log_gl.log_file.next_fd = -1;
}
+ } while(0);
pthread_mutex_unlock(&log_gl.log_flush_lock);
}
|
rsa exp: move declarations before code | @@ -412,6 +412,8 @@ int RSAZ_mod_exp_x2_ifma256(BN_ULONG *out,
int exp_chunk_no = exp_bit_no / 64;
int exp_chunk_shift = exp_bit_no % 64;
+ BN_ULONG red_table_idx_0, red_table_idx_1;
+
/*
* If rem == 0, then
* exp_bit_no = modulus_bitsize - exp_win_size
@@ -423,8 +425,9 @@ int RSAZ_mod_exp_x2_ifma256(BN_ULONG *out,
OPENSSL_assert(rem != 0);
/* Process 1-st exp window - just init result */
- BN_ULONG red_table_idx_0 = expz[exp_chunk_no + 0 * (exp_digits + 1)];
- BN_ULONG red_table_idx_1 = expz[exp_chunk_no + 1 * (exp_digits + 1)];
+ red_table_idx_0 = expz[exp_chunk_no + 0 * (exp_digits + 1)];
+ red_table_idx_1 = expz[exp_chunk_no + 1 * (exp_digits + 1)];
+
/*
* The function operates with fixed moduli sizes divisible by 64,
* thus table index here is always in supported range [0, EXP_WIN_SIZE).
|
crypto_ia32: minor change logically
"break;" will never be run after "return;" | @@ -39,7 +39,6 @@ crypto_ia32_key_handler (vlib_main_t * vm, vnet_crypto_key_op_t kop,
break;
default:
return;
- break;
}
if (kop == VNET_CRYPTO_KEY_OP_DEL)
@@ -88,9 +87,9 @@ crypto_ia32_key_handler (vlib_main_t * vm, vnet_crypto_key_op_t kop,
aes_key_enc_to_dec (kd->decrypt_key, AESNI_KEY_256);
break;
default:
- return;
break;
}
+ return;
}
clib_error_t *
|
npu2: Fix typo
Change "brigde" to "bridge".
Fixes: ("npu2: Reset NVLinks when resetting a GPU") | @@ -537,7 +537,7 @@ static int __npu2_dev_bind_pci_dev(struct phb *phb __unused,
return 0;
}
-static int64_t npu2_gpu_brigde_sec_bus_reset(void *dev,
+static int64_t npu2_gpu_bridge_sec_bus_reset(void *dev,
struct pci_cfg_reg_filter *pcrf __unused,
uint32_t offset, uint32_t len,
uint32_t *data, bool write)
@@ -612,7 +612,7 @@ static void npu2_dev_bind_pci_dev(struct npu2_dev *dev)
pci_add_cfg_reg_filter(dev->nvlink.pd->parent,
PCI_CFG_BRCTL, 2,
PCI_REG_FLAG_WRITE,
- npu2_gpu_brigde_sec_bus_reset);
+ npu2_gpu_bridge_sec_bus_reset);
return;
}
}
|
Rounded up if needed | @@ -71,10 +71,11 @@ fingerprints.
To enhance protection against these risks, SCRAM integrates message padding
directly into the AEAD encryption layer. The caller indicates a desired 'frame
-size' and SCRAM will ensure that every encrypted message is rounded up to a
-whole number of frames. Frames can be aligned with network boundaries, such as
-record sizes or TCP segment sizes, or they can be aligned with storage
-boundaries such as page sizes or block sizes. It's up to the application.
+size' and SCRAM will ensure that every encrypted message is rounded up (if
+needed) to a whole number of frames. Frames can be aligned with network
+boundaries, such as record sizes or TCP segment sizes, or they can be aligned
+with storage boundaries such as page sizes or block sizes. It's up to the
+application.
By integrating padding, SCRAM handles the details that developers can sometimes
get wrong, for example many application developers mistakenly believe that a
|
Add test generation for mbedtls_mpi_mod_raw_add() | @@ -42,6 +42,25 @@ class BignumModRawTarget(test_data_generation.BaseTarget):
# BEGIN MERGE SLOT 5
+class BignumModRawAdd(bignum_common.ModOperationCommon,
+ BignumModRawTarget):
+ """Test cases for bignum mpi_mod_raw_add()."""
+ symbol = "+"
+ test_function = "mpi_mod_raw_add"
+ test_name = "mbedtls_mpi_mod_raw_add"
+ input_style = "fixed"
+ arity = 2
+
+ def arguments(self) -> List[str]:
+ return [bignum_common.quote_str(n) for n in [self.arg_a,
+ self.arg_b,
+ self.arg_n]
+ ] + self.result()
+
+ def result(self) -> List[str]:
+ result = (self.int_a + self.int_b) % self.int_n
+ return [self.format_result(result)]
+
# END MERGE SLOT 5
# BEGIN MERGE SLOT 6
|
Change https echo server domain | * This address MUST NOT start with http:// or https://.
*/
#ifndef IOT_TEST_HTTPS_SERVER_HOST_NAME
- #define IOT_TEST_HTTPS_SERVER_HOST_NAME "postman-echo.com"
+ #define IOT_TEST_HTTPS_SERVER_HOST_NAME "freertos-ci.ddnsfree.com"
#endif
/**
|
travis: use GCC 10 for AArch64 build
gcc-7 works, but is very slow. The bug seems to have been fixed
in gcc-8. | @@ -38,8 +38,20 @@ jobs:
- name: "aarch64"
if: branch != master OR type == pull_request
arch: arm64
+ compiler: gcc-10
env:
+ - C_COMPILER=gcc-10
+ - CXX_COMPILER=g++-10
- ARCH_FLAGS="-march=armv8-a+simd+crc"
+ - OPTIMIZATION_FLAGS="-O1"
+ addons:
+ apt:
+ sources:
+ - sourceline: "ppa:ubuntu-toolchain-r/test"
+ key_url: https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x60c317803a41ba51845e371a1e9377a2ba9ef27f
+ packages:
+ - gcc-10
+ - g++-10
- name: "ppc64le"
if: branch != master OR type == pull_request
|
Move setting initialized to inner function | @@ -106,7 +106,6 @@ static BOOL _initialized = false;
+(nullable ODWLogger *)initForTenant:(nonnull NSString *)tenantToken withConfig:(nullable NSDictionary *)config
{
ILogger *logger = [ODWLogManager initializeLogManager:tenantToken withConfig:config];
- _initialized = logger != NULL;
if (!logger) return nil;
@@ -194,6 +193,8 @@ static BOOL _initialized = false;
}
[ODWLogger traceException: e.what()];
}
+
+ _initialized = logger != NULL;
return logger;
}
|
Fix that auth-zone does not start the wait timer without checking
if the wait timer has already been started.
(the code is part of the previous commit). | - Tentative fix for permission denied on IPv6 address on FreeBSD.
- Fix that auth-zone master reply with current SOA serial does not
stop scan of masters for an updated zone.
+ - Fix that auth-zone does not start the wait timer without checking
+ if the wait timer has already been started.
21 June 2018: Wouter
- #4108: systemd reload hang fix.
|
Fix greyscale tiles not being converted to alpha. | @@ -101,9 +101,8 @@ class Tilesheet {
}
}
bool is_colored = false;
- for (ColorRGBA& pixel : tile) {
- if (tile.at(0, 0).r != pixel.r || tile.at(0, 0).g != pixel.g ||
- tile.at(0, 0).b != pixel.b) {
+ for (const ColorRGBA& pixel : tile) {
+ if (pixel.r != pixel.g || pixel.r != pixel.b) {
is_colored = true;
break;
}
|
Fix double-free | @@ -349,11 +349,11 @@ int ngtcp2_crypto_derive_and_install_tx_key(ngtcp2_conn *conn, uint8_t *key,
if (ngtcp2_conn_is_server(conn)) {
rv = ngtcp2_crypto_set_remote_transport_params(conn, tls);
if (rv != 0) {
- goto fail;
+ return rv;
}
if (crypto_set_local_transport_params(conn, tls) != 0) {
- goto fail;
+ return rv;
}
}
|
Use the container name instead of ID when enabling profiling
This is to prevent the situation when the containers might get reorderd. | @@ -666,8 +666,9 @@ func verbosityEnv(value uint) corev1.EnvVar {
}
func enableContainerProfiling(templateSpec *corev1.PodSpec, cID int) {
- switch cID {
- case bindata.ContainerIDSelinuxd:
+ containerName := templateSpec.Containers[cID].Name
+ switch containerName {
+ case bindata.SelinuxContainerNmae:
templateSpec.Containers[cID].Args = append(
templateSpec.Containers[cID].Args,
profilingArgsSelinuxd()...,
|
Minor wording changes in the 'previous releases' section of the readme.me file. | @@ -41,5 +41,5 @@ If you have downloaded the repo without using the `--recurse-submodules` argumen
git submodule update --init --recursive
```
-## Getting released versions
-Working snapshots of released versions could be downloaded under [releases](https://github.com/FreeRTOS/FreeRTOS/releases).
\ No newline at end of file
+## Previous releases
+Previous releases are available for download under [releases](https://github.com/FreeRTOS/FreeRTOS/releases).
\ No newline at end of file
|
Fixes dm dtor | @@ -31,7 +31,7 @@ namespace celix { namespace dm {
DependencyManager& mng;
DmActivator(DependencyManager& m) : mng(m) {}
public:
- ~DmActivator() = default;
+ virtual ~DmActivator() = default;
DependencyManager& manager() const { return this->mng; }
|
GtkUIManager Part 10: disable "remote" actions if not connected to "remote" host
I guess it can be done differently using gtk_ui_manager_get_widget(path)
+ gtk_widget_set_sensitive
see (GtkItemFactory) | @@ -223,12 +223,10 @@ update_window_info (void)
&& GFTP_IS_CONNECTED (window2.request));
}
-#if 0
static void
set_menu_sensitive (gftp_window_data * wdata, char *path, int sensitive)
{
GtkAction *tempwid = NULL;
-
if (menus) {
tempwid = gtk_action_group_get_action(menus, path);
}
@@ -236,7 +234,6 @@ set_menu_sensitive (gftp_window_data * wdata, char *path, int sensitive)
gtk_action_set_sensitive (tempwid, sensitive);
}
}
-#endif
char *
report_list_info(gftp_window_data * wdata)
@@ -331,28 +328,24 @@ update_window (gftp_window_data * wdata)
g_free (tempstr);
}
-#if 0
- if (wdata == &window1) {
- connected = GFTP_IS_CONNECTED (window1.request)
- set_menu_sensitive (NULL, "Local..,", connected);
- // ...
- }
- else {
- connected = GFTP_IS_CONNECTED (window2.request)
- set_menu_sensitive (NULL, "Remote...", connected);
- // ...
- }
-
- connected = GFTP_IS_CONNECTED (window1.request) && GFTP_IS_CONNECTED (window2.request);
- set_menu_sensitive (NULL, "TransferStart", connected);
- set_menu_sensitive (NULL, "TransferStop", connected);
- set_menu_sensitive (NULL, "TransferSkipCurrentFile", connected);
- set_menu_sensitive (NULL, "TransferRemoveFile", connected);
- set_menu_sensitive (NULL, "TransferMoveFileUp", connected);
- set_menu_sensitive (NULL, "TransferMoveFileDown", connected);
- set_menu_sensitive (NULL, "TransferRetrieveFiles", connected);
- set_menu_sensitive (NULL, "TransferPutFiles", connected);
-#endif
+ connected = GFTP_IS_CONNECTED (window2.request);
+ set_menu_sensitive (NULL, "RemoteDisconnect", connected);
+ set_menu_sensitive (NULL, "RemoteChangeFilespec", connected);
+ set_menu_sensitive (NULL, "RemoteShowSelected", connected);
+ set_menu_sensitive (NULL, "RemoteNavigateUp", connected);
+ set_menu_sensitive (NULL, "RemoteSelectAll", connected);
+ set_menu_sensitive (NULL, "RemoteSelectAllFiles", connected);
+ set_menu_sensitive (NULL, "RemoteDeselectAll", connected);
+ set_menu_sensitive (NULL, "RemoteSaveDirectoryListing", connected);
+ set_menu_sensitive (NULL, "RemoteSendSITECommand", connected);
+ set_menu_sensitive (NULL, "RemoteChangeDirectory", connected);
+ set_menu_sensitive (NULL, "RemotePermissions", connected);
+ set_menu_sensitive (NULL, "RemoteNewFolder", connected);
+ set_menu_sensitive (NULL, "RemoteRename", connected);
+ set_menu_sensitive (NULL, "RemoteDelete", connected);
+ set_menu_sensitive (NULL, "RemoteEdit", connected);
+ set_menu_sensitive (NULL, "RemoteView", connected);
+ set_menu_sensitive (NULL, "RemoteRefresh", connected);
connected = GFTP_IS_CONNECTED (window1.request) && GFTP_IS_CONNECTED (window2.request);
gtk_widget_set_sensitive (download_left_arrow, connected);
|
Fix loop __gc not being called
Closes | @@ -660,11 +660,13 @@ LUALIB_API int luaopen_luv (lua_State* L) {
lua_pushstring(L, "_loop");
loop = (uv_loop_t*)lua_newuserdata(L, sizeof(*loop));
- lua_rawset(L, -3); // ref to loop, avoid __gc early
-
- // setup the metatable for __gc
+ // setup the userdata's metatable for __gc
luaL_getmetatable(L, "uv_loop.meta");
lua_setmetatable(L, -2);
+ // create a ref to loop, avoid __gc early
+ // this puts the loop userdata into the _loop key
+ // in the returned luv table
+ lua_rawset(L, -3);
ctx->loop = loop;
ctx->L = L;
|
Update TiltedCore to 0.2.2 | @@ -3,7 +3,7 @@ set_xmakever("2.5.2")
set_languages("cxx20")
set_arch("x64")
-add_requires("spdlog", "nlohmann_json", "hopscotch-map", "minhook", "mem", "imgui 1.82", "sol2", "tiltedcore master", "sqlite3", "luajit")
+add_requires("spdlog", "nlohmann_json", "hopscotch-map", "minhook", "mem", "imgui 1.82", "sol2", "tiltedcore 0.2.2", "sqlite3", "luajit")
add_requireconfs("sol2", { configs = { includes_lua = false } })
local imguiUserConfig = path.absolute("src/imgui_impl/imgui_user_config.h")
|
testcase/kernel: add negative testcase of strtoumax and tidyup
Add two negative cases, invalid base and overflow | * Included Files
****************************************************************************/
#include <stdio.h>
+#include <stdint.h>
+#include <stdlib.h>
#include <inttypes.h>
+#include <errno.h>
#include "tc_internal.h"
-#define DECIMAL 10
-#define HEXADECIMAL 16
-#define BINARY 2
-#define NVAL1 1000
-#define NVAL2 12
+#define DECIMAL (10)
+#define HEXADECIMAL (16)
+#define BINARY (2)
+#define INVALID_BASE (-1)
+#define NVAL1 (1000)
+#define NVAL2 (12)
/**
* @fn :tc_libc_inttypes_imaxabs
@@ -131,6 +135,21 @@ static void tc_libc_inttypes_strtoumax(void)
const char str_ulnum[] = "201 0x60 1100 0x6f";
char *end_ptr;
uintmax_t ret_chk;
+#ifdef __INT64_DEFINED
+ const char str_uintmax_plus_1[21] = "18446744073709551616"; // UINT64_MAX + 1
+#else
+ const char str_uintmax_plus_1[11] = "4294967296"; // UINT32_MAX + 1
+#endif
+
+ /* Negative test with invalid base */
+
+ ret_chk = strtoumax(str_ulnum, &end_ptr, INVALID_BASE);
+ TC_ASSERT_EQ("strtoumax", ret_chk, 0);
+
+ /* Negative test with overflow */
+
+ ret_chk = strtoumax(str_uintmax_plus_1, &end_ptr, DECIMAL);
+ TC_ASSERT_EQ("strtoumax", ret_chk, (uintmax_t)UINTMAX_MAX);
/* ret_chk = 201 for string 201 in decimal */
|
+compilation fix | @@ -551,7 +551,7 @@ int main(int argc, char **argv) {
cheatcoin_mess("Initializing addresses...");
if (cheatcoin_address_init()) return -1;
cheatcoin_mess("Starting blocks engine...");
- if (cheatcoin_blocks_start(is_miner ? ~n_mining_threads : n_mining_threads), !!miner_address) return -1;
+ if (cheatcoin_blocks_start((is_miner ? ~n_mining_threads : n_mining_threads), !!miner_address)) return -1;
cheatcoin_mess("Starting pool engine...");
if (cheatcoin_pool_start(is_pool, pool_arg, miner_address)) return -1;
#ifndef CHEATCOINWALLET
|
[mod_scgi] fix unused_procs bidirectional-links | @@ -2879,8 +2879,9 @@ TRIGGER_FUNC(mod_scgi_handle_trigger) {
if (fp) {
if (fp == host->unused_procs) host->unused_procs = fp->next;
+ else fp->prev->next = fp->next;
- if (fp->next) fp->next->prev = NULL;
+ if (fp->next) fp->next->prev = fp->prev;
host->max_id++;
} else {
|
DOC: OSSL_PARAM_{set,get,construct}_BN() currently only supports nonnegative numbers | @@ -331,6 +331,12 @@ representable by the target type or parameter.
Apart from that, the functions must be used appropriately for the
expected type of the parameter.
+OSSL_PARAM_get_BN() and OSSL_PARAM_set_BN() currently only support
+nonnegative B<BIGNUM>s, and by consequence, only
+B<OSSL_PARAM_UNSIGNED_INTEGER>. OSSL_PARAM_construct_BN() currently
+constructs an B<OSSL_PARAM> structure with the data type
+B<OSSL_PARAM_UNSIGNED_INTEGER>.
+
For OSSL_PARAM_construct_utf8_ptr() and OSSL_PARAM_consstruct_octet_ptr(),
I<bsize> is not relevant if the purpose is to send the B<OSSL_PARAM> array
to a I<responder>, i.e. to get parameter data back.
|
refactor(editorconfig): Removed FreeRTOS tab rule
FreeRTOS used tabs before, but changed to spaces now.
This hasn't been reflected in the editorconfig file
and is fixed now. | @@ -19,14 +19,6 @@ trim_trailing_whitespace = false
indent_style = tab
indent_size = 2
-[*/freertos/**]
-indent_style = tab
-indent_size = 4
-
-[{*/freertos/**.S,**/FreeRTOSConfig.h}]
-indent_style = space
-indent_size = 4
-
[*.pem]
insert_final_newline = false
|
exclude usr dir from coveralls | @@ -24,7 +24,7 @@ jobs:
uses: imciner2/run-lcov@v1
with:
input_directory: '${{ runner.workspace }}'
- exclude: '"$GITHUB_WORKSPACE/test/*" "$GITHUB_WORKSPACE/linsys/external/*"'
+ exclude: '"$GITHUB_WORKSPACE/test/*" "$GITHUB_WORKSPACE/linsys/external/*" "/usr/include/x86_64-linux-gnu/bits/*"'
output_file: '${{ runner.workspace }}/coverage.info'
- name: Upload coverage
|
Fix incorrect version for new feature in CHANGELOG | # Changelog
-## v7.9.1 (Planned at 19.01.2020)
+## v7.9.2 (Planned for 02.02.2021)
### New features
- feat(indev) allow input events to be passed to disabled objects
+## v7.9.1
+
### Bugfixes
- fix(cpicker) fix division by zero
- fix(dropdown) fix selecting options after the last one
|
xtensa: Define COMMON_CTX_REGS for chips without FPU (e.g. ESP32-S2) | # define RESERVE_REGS 8
# define XCPTCONTEXT_REGS (COMMON_CTX_REGS + COPROC_CTX_REGS + RESERVE_REGS)
#else
+# define COMMON_CTX_REGS _REG_CP_START
# define RESERVE_REGS 8
-# define XCPTCONTEXT_REGS (_REG_CP_START + RESERVE_REGS)
+# define XCPTCONTEXT_REGS (COMMON_CTX_REGS + RESERVE_REGS)
#endif
#define XCPTCONTEXT_SIZE (4 * XCPTCONTEXT_REGS)
|
driver/temp_sensor/tmp112.c: Format with clang-format
BRANCH=none
TEST=none | @@ -35,8 +35,8 @@ static int raw_read16(int sensor, const int offset, int *data_ptr)
return EC_ERROR_NOT_POWERED;
#endif
return i2c_read16(tmp112_sensors[sensor].i2c_port,
- tmp112_sensors[sensor].i2c_addr_flags,
- offset, data_ptr);
+ tmp112_sensors[sensor].i2c_addr_flags, offset,
+ data_ptr);
}
static int raw_write16(int sensor, const int offset, int data)
@@ -49,8 +49,7 @@ static int raw_write16(int sensor, const int offset, int data)
return EC_ERROR_NOT_POWERED;
#endif
return i2c_write16(tmp112_sensors[sensor].i2c_port,
- tmp112_sensors[sensor].i2c_addr_flags,
- offset, data);
+ tmp112_sensors[sensor].i2c_addr_flags, offset, data);
}
static int get_reg_temp(int sensor, int *temp_ptr)
|
Address review comments and improve the design doc | -Attestation QPL Enforcement Support
+Attestation SGX QPL Enforcement Support
====
-This proposal is to make a change to `oe_verify_evidence`, so that it can support policy based QPL (Quote Provider Library) enhancement, such as allowing the API user to pass data to QPL for more advanced quote verification.
+This proposal is to make a change to `oe_verify_evidence`, so that it can support policy-based SGX QPL (Quote Provider Library) specific enhancement, such as allowing the API user to pass data to the SGX QPL for more advanced quote verification.
Motivation
----
-Intel SGX rolls out PCK certificate and collateral information about every six month. There is a scenario that a quote is signed by the last version of PCK certificate cannot be verified with the latest version of collateral information. This causes unnecessary attestation failures when new versions of PCK certificate and collateral information are rolled out. To deal with this issue, the QPL need to be able to return any version collateral information based on additional query parameters (referred as baselines). With that, a new API called `sgx_ql_get_quote_verification_collateral_with_params` is introduced in QPL. Changes are also needed at OE SDK to call this new API.
+Intel SGX rolls out PCK certificate and collateral information about every six month. There is a scenario that a quote is signed by the last version of PCK certificate cannot be verified with the latest version of collateral information. This causes unnecessary attestation failures when new versions of PCK certificate and collateral information are rolled out. To deal with this issue, the SGX QPL need to return any version collateral information based on additional query parameters (referred as baselines). With that, a new API called `sgx_ql_get_quote_verification_collateral_with_params` is introduced in the SGX QPL. Changes are also needed at OE SDK to call this new API.
Goals:
- - Verifier can call `oe_verify_evidence` and pass QPL specific parameters to do more advanced quote verification.
+ - Verifier can call `oe_verify_evidence` and pass SGX QPL specific parameters to do more advanced quote verification.
User Experience
----
-A new policy type `OE_POLICY_SGX_COLLATERAL_BASELINE` is added to current policy types. Quote verifier can pass multiple policies with this type, while OE SDK would pass all the policies down to the QPL API without interpreting the data content.
+A new policy type `OE_POLICY_SGX_COLLATERAL_BASELINE` is added to current policy types. Quote verifier can pass multiple policies with this type, while OE SDK would pass all the policies down to the SGX QPL API without interpreting the data content.
Specification
----
@@ -24,7 +24,7 @@ Specification
- `OE_POLICY_SGX_COLLATERAL_BASELINE` in `oe_policy_type_t`
- `oe_sgx_collateral_query_param`, which is defined as below,
```C
-// defined by QPL
+// defined by SGX QPL
#define MAX_PARAM_STRING_SIZE (255)
typedef struct _oe_sgx_collateral_query_param
{
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.