message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Fix missing Denarius bin | @@ -90,3 +90,4 @@ parts:
fi
qmake "USE_UPNP=1" "USE_QRCODE=1" "${MF}" OPENSSL_INCLUDE_PATH=/usr/local/ssl/include OPENSSL_LIB_PATH=/usr/local/ssl/lib denarius-qt.pro
OPENSSL_INCLUDE_PATH=/usr/local/ssl/include OPENSSL_LIB_PATH=/usr/local/ssl/lib make -j4
+ sudo cp Denarius $SNAP/usr/local/bin/
|
docs/ure: Emphasize not supported features more.
Plus, additional descriptions/formatting. | @@ -15,8 +15,9 @@ Supported operators are:
``'.'``
Match any character.
-``'[]'``
- Match set of characters. Individual characters and ranges are supported.
+``'[...]'``
+ Match set of characters. Individual characters and ranges are supported,
+ including negated sets (e.g. ``[^a-c]``).
``'^'``
@@ -36,12 +37,13 @@ Sup... |
tools/upip: Upgrade upip to 1.5.1. | #
# upip - Package manager for Pycopy https://github.com/pfalcon/pycopy
#
-# Copyright (c) 2015-2019 Paul Sokolovsky
+# Copyright (c) 2015-2020 Paul Sokolovsky
#
# Licensed under the MIT license.
#
@@ -288,7 +288,7 @@ Usage: pycopy -m upip install [-p <path>] <package>... | -r <requirements.txt>
import upip; upip.insta... |
Avoid use of deprecated RSA key generation API. | @@ -1916,6 +1916,7 @@ tls_make_certificate(
# ifdef HAVE_OPENSSL
bool result = false; // Result of operations
EVP_PKEY *pkey; // Private key
+ BIGNUM bn; // Public exponent for RSA keys
RSA *rsa = NULL; // RSA key pair
EC_KEY *ecdsa = NULL; // ECDSA key pair
X509 *cert; // Certificate
@@ -2051,11 +2052,26 @@ tls_make_c... |
linux/trace: use longer description for the report | @@ -893,6 +893,8 @@ static int arch_parseAsanReport(run_t* run, pid_t pid, funcs_t* funcs, void** cr
"==%d==ERROR: AddressSanitizer: %" HF_XSTR(
PATH_MAX) "[^ ] on address 0x%p at pc 0x%p",
&reportpid, description, pc, crashAddr);
+ sscanf(lineptr, "==%d==ERROR: AddressSanitizer: %" HF_XSTR(PATH_MAX) "[^\n]",
+ &report... |
conf: document HTTP server interface (disabled by default) | # Specify an optional 'Parsers' configuration file
Parsers_File parsers.conf
+ # HTTP Server
+ # ===========
+ # Enable/Disable the built-in HTTP Server for metrics
+ HTTP_Server Off
+ HTTP_Listen 0.0.0.0
+ HTTP_Port 2020
+
[INPUT]
Name cpu
Tag cpu.local
|
Increase memory limit on TsChecker | @@ -6,7 +6,8 @@ const CopyPlugin = require("copy-webpack-plugin");
module.exports = [
// new HardSourceWebpackPlugin(),
new ForkTsCheckerWebpackPlugin({
- async: false
+ async: false,
+ memoryLimit: 4096
}),
new webpack.DefinePlugin({
VERSION: JSON.stringify(require("./package.json").version)
|
graph-join: crash on backoff and fix scry mold | (en-path:resource rid)
=/ hold=@dr ~s0..8000
|- ^- form:m
+ ?> (lte hold ~m5)
=* loop $
;< u-group=(unit group) bind:m
(scry:strandio ,(unit group) (weld /gx/group-store/groups (snoc pax %noun)))
?^ u-group
(pure:m ~)
;< ~ bind:m (sleep:strandio hold)
- =. hold (min (mul hold 2) ~m5)
+ =. hold (mul hold 2)
loop
::
++ w... |
BugID:17023357:[WhiteScan] [563420]:fix Waiting while holding a lock | @@ -1669,8 +1669,7 @@ static int iotx_mc_handle_recv_PUBLISH(iotx_mc_client_t *c)
if ((time_curr - time_prev) <= (uint64_t)50) {
mqtt_info("MQTT over threshould");
return SUCCESS_RETURN;
- }
- else {
+ } else {
time_prev = time_curr;
}
}
@@ -3560,7 +3559,7 @@ int IOT_MQTT_Yield(void *handle, int timeout_ms)
iotx_time_i... |
Add LittleFS sources to ignored style check | @@ -13,3 +13,9 @@ net/mqtt/eclipse
hw/mcu/nxp/kinetis/MK64F12/src
hw/mcu/nxp/kinetis/MK8xF/MK82F
hw/bsp/frdm-k82f/src
+
+# Skip upstream LittleFS code but check Mynewt glue
+fs/littlefs/include/littlefs/lfs.h
+fs/littlefs/include/littlefs/lfs_util.h
+fs/littlefs/src/lfs.c
+fs/littlefs/src/lfs_util.c
|
nimble/ll: Fix host controlled features handling
We should not allow to set subrating feature if controller does not
support subrating. | @@ -289,7 +289,11 @@ extern STATS_SECT_DECL(ble_ll_stats) ble_ll_stats;
#define BLE_LL_CONN_CLEAR_FEATURE(connsm, feature) (connsm->conn_features &= ~(feature))
/* All the features which can be controlled by the Host */
+#if MYNEWT_VAL(BLE_LL_CFG_FEAT_LL_ENHANCED_CONN_UPDATE)
#define BLE_LL_HOST_CONTROLLED_FEATURES (BL... |
Added warning messages for nvctrl | @@ -19,7 +19,11 @@ bool checkXNVCtrl()
if (nvctrl.IsLoaded()) {
nvctrlSuccess = nvctrl.XNVCTRLIsNvScreen(display, 0);
return nvctrlSuccess;
+ } else {
+ printf("MANGOHUD: XNVCtrl failed to load");
}
+ if (!nvctrlSuccess)
+ printf("MANGOHUD: XNVCtrl didn't find the correct display")
return false;
}
|
viofs: Check ActionFlags before request unmark | @@ -417,11 +417,18 @@ VOID VirtFsEvtIoStop(IN WDFQUEUE Queue,
TraceEvents(TRACE_LEVEL_VERBOSE, DBG_IOCTL,
"--> %!FUNC! Request: %p ActionFlags: 0x%08x", Request, ActionFlags);
- if (WdfRequestUnmarkCancelable(Request) == STATUS_CANCELLED)
+ if (ActionFlags & WdfRequestStopRequestCancelable)
+ {
+ NTSTATUS status = WdfR... |
tls: openssl: only try to shutdown active connection | struct tls_session {
SSL *ssl;
+ int fd;
};
/* OpenSSL library context */
@@ -271,6 +272,7 @@ static void *tls_session_create(struct flb_tls *tls,
return NULL;
}
session->ssl = ssl;
+ session->fd = u_conn->fd;
SSL_set_fd(ssl, u_conn->fd);
/*
@@ -297,7 +299,9 @@ static int tls_session_destroy(void *session)
return 0;
}
... |
Add compiler options for sse/sse2/ssse3/sse4.1 | @@ -70,9 +70,21 @@ if (DEFINED TARGET)
set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -mavx2")
endif()
endif()
+ if (DEFINED HAVE_SSE)
+ set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -msse")
+ endif()
+ if (DEFINED HAVE_SSE2)
+ set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -msse2")
+ endif()
if (DEFINED HAVE_SSE3)
se... |
Update Ubuntu 18 build documentation | @@ -78,7 +78,8 @@ cmake -G "MinGW Makefiles"
mingw32-make -j4
```
-## Linux (Ubuntu 14.04)
+## Linux
+### Ubuntu 14.04
run the following commands in the Terminal
```
sudo apt-get install git cmake libgtk-3-dev libgles1-mesa-dev libglu-dev -y
@@ -92,6 +93,15 @@ wget "https://cmake.org/files/v3.12/cmake-3.12.0-Linux-x86_... |
style(platform): remove unused functions | @@ -89,20 +89,6 @@ static LRESULT CALLBACK WndProc( HWND hwnd, UINT msg,
return 0;
}
-static LCUI_BOOL WIN_PostTask( LCUI_Task task )
-{
- return PostMessage( win.main_hwnd, WM_LCUI_TASK, 0, (LPARAM)task );
-}
-
-static LCUI_BOOL WIN_WaitEvent( void )
-{
- MSG msg;
- if( PeekMessage( &msg, NULL, 0, 0, PM_NOREMOVE ) ) {... |
tests: make check_meta errors more verbose | @@ -20,7 +20,7 @@ do
for META in $PLUGIN_META;
do
grep -Eq "^\\[${META}\\]$" "$META_FILE"
- succeed_if "Metadata $META of plugin $PLUGIN not present in METADATA.ini"
+ succeed_if "Metadata $META is in infos/metadata of ${PLUGINS_DIR}/$PLUGIN/README.md, but not present in $META_FILE for $PLUGIN"
done
USED_BY=$(awk "/use... |
Was overflowing drivername for playback | @@ -491,7 +491,7 @@ int DriverRegPlayback(SurviveContext *ctx) {
}
size_t len = strlen(configStart);
- SurviveObject *so = survive_create_device(ctx, "Playback", sp, dev, 0);
+ SurviveObject *so = survive_create_device(ctx, "replay", sp, dev, 0);
if (ctx->configfunction(so, configStart, len) == 0) {
SV_INFO("Found %s i... |
docs: Fix reference to QSTR_GEN_CFLAGS Makefile flag. | @@ -51,7 +51,7 @@ Processing happens in the following stages:
through the C pre-processor. This means that any conditionally disabled code
will be removed, and macros expanded. This means we don't add strings to the
pool that won't be used in the final firmware. Because at this stage (thanks
- to the ``NO_QSTR`` macro ... |
Constrain fast cost estimation to QPs we have weights for | @@ -209,14 +209,12 @@ uint32_t kvz_get_coeff_cost(const encoder_state_t * const state,
int32_t type,
int8_t scan_mode)
{
- if (state->qp >= state->encoder_control->cfg.fast_residual_cost_limit) {
- return get_coeff_cabac_cost(state, coeff, width, type, scan_mode);
-
- } else {
- // Estimate coeff coding cost based on Q... |
Renamed some variable values | @@ -3158,19 +3158,19 @@ int DeRestPluginPrivate::putWifiUpdated(const ApiRequest &req, ApiResponse &rsp)
}
bool changed = false;
- if (gwWifiName != "undefined")
+ if (gwWifiName != "invalid")
{
- gwWifiName = "undefined";
+ gwWifiName = "invalid";
changed = true;
}
- if (gwWifiPw != "undefined")
+ if (gwWifiPw != "inv... |
update poly1305 to have additional init arguments | @@ -77,10 +77,28 @@ static size_t poly1305_size(void)
return POLY1305_DIGEST_SIZE;
}
-static int poly1305_init(void *vmacctx)
+static int poly1305_setkey(struct poly1305_data_st *ctx,
+ const unsigned char *key, size_t keylen)
{
+ if (keylen != POLY1305_KEY_SIZE) {
+ ERR_raise(ERR_LIB_PROV, PROV_R_INVALID_KEY_LENGTH);
... |
In tab-completion test, print out the value of TERM before changing it.
I'm curious to see what values are prevailing in the buildfarm.
Discussion: | @@ -38,6 +38,9 @@ $node->safe_psql('postgres',
my $historyfile = "${TestLib::log_path}/010_psql_history.txt";
$ENV{PSQL_HISTORY} = $historyfile;
+# Debug investigation
+note "TERM is set to '" . ($ENV{TERM} || "<undef>") . "'";
+
# Ensure that readline/libedit puts out xterm escapes, not something else.
$ENV{TERM} = 'x... |
Make 'make errors' work again
util/mkerr.pl detects if a header is now a '.in' template, and adjusts
the header file it reads accordingly. | @@ -263,7 +263,9 @@ while ( ( my $hdr, my $lib ) = each %libinc ) {
my $linenr = 0;
my $cpp = 0;
- open(IN, "<$hdr") || die "Can't open $hdr, $!,";
+ open(IN, "<$hdr")
+ || open(IN, "<$hdr.in")
+ || die "Can't open $hdr or $hdr.in, $!,";
while ( <IN> ) {
$linenr++;
@@ -435,7 +437,6 @@ foreach my $lib ( keys %errorfile ... |
[kernel] revert the location of computation of _isNewtonConverge (to be fixed) | @@ -612,12 +612,17 @@ void TimeStepping::newtonSolve(double criterion, unsigned int maxStep)
updateInput();
updateState();
- _isNewtonConverge = newtonCheckConvergence(criterion);
-
+ // -- VA 01/07/2021
+ // The fact that we compute _isNewtonConverge after is a bit curious,
+ // it seems related to the fact that we do... |
Lock acquisition in plancache.c should behave like CdbTryOpenRelation()
ExclusiveLock should be acquired in place of RowExclusiveLock for DMLs on user
tables. If RowExclusiveLock is acquired, we may have a local deadlock on QD
when concurrent UPDATE statements are executed from within UDFs.
The problem is described in... | @@ -757,7 +757,20 @@ AcquireExecutorLocks(List *stmt_list, bool acquire)
* acquire a non-conflicting lock.
*/
if (list_member_int(plannedstmt->resultRelations, rt_index))
+ {
+ /*
+ * RowExclusiveLock is acquired in PostgreSQL here. Greenplum
+ * acquires ExclusiveLock to avoid distributed deadlock due to
+ * concurren... |
Update links to docs for ending forward slash | @@ -9,7 +9,7 @@ If you are only interested in using module and not writing firmware for it, you
Follow documentation for more information on implementation and details.
-<h3><a href="https://docs.majerle.eu/projects/esp-at-lib">Documentation</a></h3>
+<h3><a href="https://docs.majerle.eu/projects/esp-at-lib/">Documenta... |
Dynamically allocate iv in dec_empty_buf tests | @@ -571,8 +571,9 @@ void dec_empty_buf( int cipher,
int expected_finish_ret )
{
unsigned char key[32];
- unsigned char iv[16];
- size_t iv_len = sizeof(iv);
+
+ unsigned char *iv = NULL;
+ size_t iv_len = 16;
mbedtls_cipher_context_t ctx_dec;
const mbedtls_cipher_info_t *cipher_info;
@@ -583,7 +584,6 @@ void dec_empty_... |
OcMachoLib: Make MachoGetNextSegment safer. | @@ -380,19 +380,16 @@ MachoGetNextSection64 (
IN CONST MACH_SECTION_64 *Section
)
{
- MACH_SECTION_64 *FirstSection;
-
ASSERT (Segment != NULL);
ASSERT (Section != NULL);
- DEBUG_CODE (
- FirstSection = MachoGetFirstSection64 (Segment);
- ASSERT (
- ((UINTN)(Section - FirstSection) + 1) < Segment->NumberOfSections
- );... |
Fix a missing type hint warning | @@ -355,7 +355,7 @@ class OpFail:
dependencies[i] = '!' + dep
tc.set_dependencies(dependencies)
tc.set_function(category.name.lower() + '_fail')
- arguments = []
+ arguments = [] # type: List[str]
if kt:
key_material = kt.key_material(kt.sizes_to_test()[0])
arguments += [key_type, test_case.hex_string(key_material)]
|
typo in xot.tdir | @@ -27,7 +27,7 @@ zone:
zonefile: example.org.tertiary
allow-notify: 0.0.0.0/0 xot.
# Should fail because we have not configured the correct CA
- request-xfr: 127.0.0.1@@TPKG_PRI_PORT@ xot. primary.example.org
+ request-xfr: 127.0.0.1@@TPKG_PRI_PORT_TLS@ xot. primary.example.org
zone:
name: example.net
|
MSR: Simplify regular expressions | @@ -127,8 +127,8 @@ MOUNTPOINTS_BACKUP=$("$KDBCOMMAND" mount)
while read -r line;
do
- grep -Eq '(\s)*```sh$' <<< "$line" && { INBLOCK=1; continue; }
- grep -Eq '(\s)*```$' <<< "$line" && INBLOCK=0
+ grep -Eq '\s*```sh$' <<< "$line" && { INBLOCK=1; continue; }
+ grep -Eq '\s*```$' <<< "$line" && INBLOCK=0
[ $INBLOCK -e... |
ds lyb BUGFIX forgotten debug message
Fixes | @@ -748,7 +748,6 @@ srpds_lyb_running_flush_cached(sr_cid_t cid)
/* consolidate the cache */
--data_cache.cache_count;
if (i < data_cache.cache_count) {
- SRPLG_LOG_ERR(srpds_name, "arg1 %p, arg2 %p, arg3 %u", data_cache.caches + i, data_cache.caches + i + 1, (data_cache.cache_count - i) * sizeof *data_cache.caches);
m... |
fix for php test | @@ -19,6 +19,5 @@ echo -e "\n >>>> secure cell tests <<<<\\n"
php -c php.ini ./vendor/phpunit/phpunit/phpunit scell_test.php
echo -e "\n >>>> secure message tests <<<<\n"
php -c php.ini ./vendor/phpunit/phpunit/phpunit smessage_test.php
-php -c php.ini echo -e "\n >>>> secure token tests <<<<\n"
-# todo:
-./vendor/phpu... |
Cirrus: Install Python on macOS | @@ -49,6 +49,9 @@ mac_task:
ninja
openssl
pkg-config
+ - | # Install Python
+ brew install python@2; brew link --overwrite python@2
+ brew install python || brew upgrade python
- | # Install Ruby
brew install ruby@2.5
export PATH="/usr/local/opt/ruby@2.5/bin:$PATH"
|
netconsole_config(): fix usage of NULL-terminated IP address string
The existing code is NULL-terminating the wrong character buffer
instead of the `b` array whose purpose is to provide a
NULL-terminated string. | @@ -63,8 +63,8 @@ static void netconsole_config(void *_d, tuple r)
char b[IPADDR_STRLEN_MAX+1];
runtime_memcpy(b, s, len);
- s[len] = 0;
- if (!ipaddr_aton(s, &nd->dst_ip)) {
+ b[len] = 0;
+ if (!ipaddr_aton(b, &nd->dst_ip)) {
msg_err("%s: failed to translate ip address\n");
return;
}
|
fix(fabric test):
add fabric test case "TxInvokeFail_Args_Lack1" | @@ -421,6 +421,34 @@ START_TEST(test_002Transaction_0018TxInvokeFail_Args_NULL)
}
END_TEST
+START_TEST(test_002Transaction_0019TxInvokeFail_Args_Lack1)
+{
+ BSINT32 rtnVal;
+ BoatHlfabricTx tx_ptr;
+ BoatHlfabricWallet *g_fabric_wallet_ptr = NULL;
+ BoatHlfabricWalletConfig wallet_config = get_fabric_wallet_settings();... |
VERSION bump to version 2.0.250 | @@ -61,7 +61,7 @@ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
# set version of the project
set(LIBYANG_MAJOR_VERSION 2)
set(LIBYANG_MINOR_VERSION 0)
-set(LIBYANG_MICRO_VERSION 249)
+set(LIBYANG_MICRO_VERSION 250)
set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION}... |
parser: logfmt: fix handling of empty string and null value | @@ -78,6 +78,7 @@ static int logfmt_parser(struct flb_parser *parser,
const unsigned char *end = c + in_size;
int last_byte;
int do_pack = FLB_TRUE;
+ int value_str = FLB_FALSE;
int value_escape = FLB_FALSE;
/* if map_size is 0 only count the number of k:v */
@@ -101,6 +102,7 @@ static int logfmt_parser(struct flb_pars... |
configdata.pm: ensure $prefix is defined
Fixes | @@ -2444,6 +2444,7 @@ _____
my $prefix = '';
$prefix = $config{cross_compile_prefix}
if grep { $var eq $_ } @user_crossable;
+ $prefix //= '';
print ' ',$var,' ' x (16 - length $var),'= ',
(ref $config{$makevars{$var}} eq 'ARRAY'
? join(' ', @{$config{$makevars{$var}}})
|
Switch to BIO_snprintf to avoid missing symbol problems on Windows | @@ -143,7 +143,7 @@ char *opt_appname(const char *arg0)
size_t len = strlen(prog);
if (arg0 != NULL)
- snprintf(prog + len, sizeof(prog) - len - 1, " %s", arg0);
+ BIO_snprintf(prog + len, sizeof(prog) - len - 1, " %s", arg0);
return prog;
}
|
t: bogus ack frame decode test needs a bigger buffer | @@ -90,7 +90,7 @@ static void test_ack_decode(void)
}
{ /* Bogus ACK Frame larger than the internal buffer */
- uint8_t pat[528], *pos = pat;
+ uint8_t pat[1024], *pos = pat;
const uint8_t *src = pat;
int i;
quicly_ack_frame_t decoded;
|
Fix mistake in Yices installation cause by merge | @@ -32,7 +32,7 @@ cd $DOWNLOAD_DIR
#download z3 and yices
curl https://s3-us-west-2.amazonaws.com/s2n-public-test-dependencies/z3-2017-04-04-Ubuntu14.04-64 > z3
-curl https://saw.galois.com/builds/yices/yices_smt2-linux-static > yices_smt2
+curl https://saw.galois.com/builds/yices/yices_smt2-linux-static > yices-smt2
s... |
Properly fixed some comments. | @@ -93,10 +93,10 @@ typedef enum SceMsgDialogFontSize {
typedef struct SceMsgDialogButtonsParam {
const char* msg1; //!< Text of the first button
SceInt32 fontSize1; //!< Font size of the first button (one of ::SceMsgDialogFontSize)
- const char* msg2; //!< Text of the first button
+ const char* msg2; //!< Text of the ... |
hark-store: rebuild cache on inconsistency, instead of crashing
Addresses although the root cause of the cache inconsistency is
still at large. | |= [read=? time=@da =index:store]
poke-core(+.state (^upd-cache read time index))
::
+ ++ rebuild-cache
+ poke-core(+.state (inflate-cache -.state))
+ ::
++ put-notifs
|= [time=@da =timebox:store]
poke-core(notifications (put:orm notifications time timebox))
(~(put by archive-box) index notification(read %.y))
(give %a... |
[snitch] Augment reorder buffer size when using the traffic generator | @@ -8,7 +8,8 @@ package snitch_pkg;
localparam DataWidth = 32;
localparam StrbWidth = DataWidth/8;
localparam int NumFPOutstandingLoads = 4;
- localparam int NumIntOutstandingLoads = 8;
+ // Use a high number of outstanding loads, if running a latency-throughput analysis
+ localparam int NumIntOutstandingLoads = `ifdef... |
cts/common/cts_common.h: Format with clang-format
BRANCH=none
TEST=none | #define CPUTS(outstr) cputs(CC_SYSTEM, outstr)
#define CPRINTF(format, args...) cprintf(CC_SYSTEM, format, ##args)
#define CPRINTS(format, args...) cprints(CC_SYSTEM, format, ##args)
-#define CPRINTL(format, args...) CPRINTS("%s:%d: "format, \
- __func__, __LINE__, ## args)
+#define CPRINTL(format, args...) \
+ CPRINTS... |
Unroll SSE SAD for 8-wide blocks to process 4 lines at once | @@ -51,29 +51,42 @@ static INLINE uint32_t reg_sad_w8(const kvz_pixel * const data1, const kvz_pixel
uint64_t result = 0;
int32_t y;
- const int32_t height_xmm_bytes = height & ~1;
- const int32_t height_parity = height & 1;
+ const int32_t height_fourline_groups = height & ~3;
+ const int32_t height_residual_lines = h... |
[mod_magnet] use blank str for nil (do not panic)
substitute blank string for nil param (instead of lua script panic) | @@ -392,7 +392,12 @@ typedef struct {
static const_buffer magnet_checkconstbuffer(lua_State *L, int idx) {
const_buffer cb;
+ if (!lua_isnil(L, idx))
cb.ptr = luaL_checklstring(L, idx, &cb.len);
+ else {
+ cb.ptr = NULL;
+ cb.len = 0;
+ }
return cb;
}
@@ -400,7 +405,7 @@ static const buffer* magnet_checkbuffer(lua_Stat... |
Remove comment that does not make sense
The function in question does not have a onlyCheck attribute | @@ -3892,7 +3892,6 @@ groupMemOnDumpForCgroup(ResGroupData *group, StringInfo str)
/*
* Parse cpuset to bitset
- * if onlyCheck is true, the function only check whether cpuset is valid
* If cpuset is "1,3-5", Bitmapset 1,3,4,5 are set.
*/
Bitmapset *
|
Remove --no-pie from Makefile of test/pkg | -CC=gcc
-CXX=g++
+CC=cc
+CXX=c++
all: testc testcxx
.PHONY: all
testc:
- ${CC} test.c --no-pie `pkg-config --cflags --libs tinyspline` -Wl,-rpath `pkg-config --variable=libdir tinyspline` -o testc
+ ${CC} test.c `pkg-config --cflags --libs tinyspline` -Wl,-rpath `pkg-config --variable=libdir tinyspline` -o testc
testcx... |
cr50_rma_open: raise an error if cr50 is too old
At this point images with testlab support are available. Fail if cr50 is
running a prod image that is too old.
BRANCH=none
TEST=none | @@ -462,8 +462,8 @@ class RMAOpen(object):
logging.info('%s RMA support added in: %s',
'prePVT' if self.is_prepvt else 'prod', rma_support)
if not self.is_prepvt and self._running_version_is_older(TESTLAB_PROD):
- logging.warning('No testlab support in old prod images')
- logging.warning('Update to %s to enable testlab... |
Code cleanup in bindings.cpp | @@ -1106,7 +1106,8 @@ bool DeRestPluginPrivate::sendConfigureReportingRequest(BindingTask &bt)
rq.dataType = deCONZ::Zcl8BitUint;
rq.attributeId = 0x0021; // battery percentage remaining
- if (sensor && sensor->modelId().startsWith(QLatin1String("SML00"))) // Hue motion sensor
+ if (sensor && (sensor->modelId().startsW... |
use atomic ops for the expire field; passes TSAN now | @@ -135,7 +135,7 @@ static bool mi_arena_alloc(mi_arena_t* arena, size_t blocks, mi_bitmap_index_t*
typedef struct mi_cache_slot_s {
void* p;
size_t memid;
- mi_msecs_t expire;
+ _Atomic(mi_msecs_t) expire;
bool is_committed; // TODO: use bit from p to reduce size?
} mi_cache_slot_t;
@@ -179,7 +179,7 @@ static void* mi... |
blockquote: Remove unnecessary log of quote contents | @@ -120,7 +120,6 @@ function blockquote(eat, value, silent) {
exit = self.enterBlock()
contents = self.tokenizeBlock(contents.join(lineFeed), now)
- console.log(values);
exit()
const added = add({type: 'blockquote', children: contents})
|
Link libc functions in iOS example. | #include "wasm3.h"
#include "m3_config.h"
+#include "m3_api_libc.h"
#include "coremark_minimal.wasm.h"
@@ -43,6 +44,9 @@ void run_wasm()
result = m3_LoadModule (runtime, module);
if (result) FATAL("m3_LoadModule: %s", result);
+ result = m3_LinkLibC (module);
+ if (result) FATAL("m3_LinkLibC: %s", result);
+
IM3Functio... |
IssueID:1651: modify uln2003 input from pullup to pushpull.
[Detail]
none
[Verified Cases]
Build Pass:<none>
Test Pass: <none> | @@ -134,28 +134,28 @@ while 1:
"type": "GPIO",
"port": 19,
"dir": "output",
- "pull": "pullup"
+ "pull": "pushpull"
},
"uln2003_a_": {
"type": "GPIO",
"port": 27,
"dir": "output",
- "pull": "pullup"
+ "pull": "pushpull"
},
"uln2003_b": {
"type": "GPIO",
"port": 0,
"dir": "output",
- "pull": "pullup"
+ "pull": "pushpull... |
Map some trap names | # ./run-spec-test.py --exec ../custom_build/wasm3
#
-# TODO Get more tests from:
-# https://github.com/microsoft/ChakraCore/tree/master/test/WasmSpec
+# TODO
+# - Get more tests from: https://github.com/microsoft/ChakraCore/tree/master/test/WasmSpec
+# - Fix "Empty Stack" check
+# - Check Canonical NaN and Arithmetic N... |
move init_queue back, remove explicit init of num_drops | @@ -163,7 +163,6 @@ static void init_queue(struct queue_t *q)
q->ring.tail = 0;
q->ring.elements = malloc(sizeof(q->ring.elements[0]) * q->ring.depth);
assert(q->ring.elements != NULL);
- q->num_drops = 0;
}
static void emit_queue(struct queue_t *q, int up, int64_t now)
@@ -251,9 +250,6 @@ int main(int argc, char **arg... |
Tools: Set key 'file' for bufr_get | @@ -88,6 +88,11 @@ int grib_tool_new_handle_action(grib_runtime_options* options, grib_handle* h)
exit(err);
}
+ if (options->current_infile && options->current_infile->name) {
+ size_t size = strlen(options->current_infile->name);
+ grib_set_string(h, "file", options->current_infile->name, &size);
+ }
+
return 0;
}
|
[dev][bus][pci] fixed type1_read_byte API bug
It should invoke type1_read_byte() rather than type1_read_half. | @@ -82,7 +82,7 @@ pci_type1 *pci_type1::detect() {
int pci_type1::read_config_byte(const pci_location_t state, uint32_t reg, uint8_t *value) {
LTRACEF_LEVEL(2, "state bus %#hhx dev %#hhx %#hhx reg %#x\n", state.bus, state.dev, state.fn, reg);
- *value = type1_read_half(state.bus, state.dev, state.fn, reg);
+ *value = t... |
Work CD-CI
Fix Azure pipeline job formating. | @@ -19,7 +19,8 @@ steps:
- task: PowerShell@2
inputs:
targetType: 'inline'
- script: Write-Host "$("##vso[task.setvariable variable=NBGV_Version]")0.0.0"
- script: Write-Host "$("##vso[task.setvariable variable=NBGV_VersionHeight]")$env:System_PullRequest_PullRequestNumber"
+ script: |
+ Write-Host "$("##vso[task.setva... |
Use #ifdef instead of #if | @@ -66,7 +66,7 @@ int ugly_log(int level, const char *tag, const char *format, ...) {
* - LIBUSB_LOG_LEVEL_DEBUG (4) : debug and informational messages are printed to stderr
*/
int ugly_libusb_log_level(enum ugly_loglevel v) {
-#if __FreeBSD__
+#ifdef __FreeBSD__
// FreeBSD includes its own reimplementation of libusb.
... |
Tentative changes for building on AIX | @@ -36,6 +36,9 @@ FCOMMON_OPT += -O2 -frecursive -mcpu=power8 -mtune=power8 -malign-power -DUSE_OP
else
COMMON_OPT += -Ofast -mcpu=power8 -mtune=power8 -mvsx -malign-power -fno-fast-math
FCOMMON_OPT += -O2 -frecursive -mcpu=power8 -mtune=power8 -malign-power -fno-fast-math
+ifeq ($(OSNAME), AIX)
+FCOMMON_OPT += -O1 -fr... |
Use proper length for shake mct md zeroize | @@ -316,7 +316,7 @@ static ACVP_RESULT acvp_hash_shake_mct(ACVP_CTX *ctx,
unsigned int leftmost_bytes = 0;
unsigned int min_xof_bytes = (min_xof_bits / 8);
unsigned int max_xof_bytes = (max_xof_bits / 8);
- unsigned int range = 0;
+ unsigned int range = max_xof_bytes - min_xof_bytes + 1;
/*
* Initial Outputlen = (floor... |
additional info for compilation document | @@ -47,6 +47,22 @@ If it's the first install, you also need:
sudo systemctl restart systemd-binfmt
```
+#### for LoongArch
+
+Using a 64bits OS:
+
+```
+git clone https://github.com/ptitSeb/box64
+cd box64
+mkdir build; cd build; cmake .. -DLARCH64=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo
+make -j4
+sudo make install
+```
+... |
zonemd, review comments, check qname for zonemd dnskey lookup. | @@ -8090,6 +8090,7 @@ void auth_zonemd_dnskey_lookup_callback(void* arg, int rcode, sldns_buffer* buf,
memset(&rq, 0, sizeof(rq));
rep = parse_reply_in_temp_region(buf, temp, &rq);
if(rep && rq.qtype == wanted_qtype &&
+ query_dname_compare(z->name, rq.qname) == 0 &&
FLAGS_GET_RCODE(rep->flags) == LDNS_RCODE_NOERROR) {... |
coap-example: made endpoint static in process | @@ -81,7 +81,7 @@ client_chunk_handler(coap_message_t *response)
}
PROCESS_THREAD(er_example_client, ev, data)
{
- coap_endpoint_t server_ep;
+ static coap_endpoint_t server_ep;
PROCESS_BEGIN();
static coap_message_t request[1]; /* This way the packet can be treated as pointer as usual. */
|
Support eth_getBlockByNumber Ethereum RPC call | adr=(list address)
top=(list ?(@ux (list @ux)))
==
+ [%eth-get-block-by-number bon=@ud txs=?]
[%eth-get-filter-logs fid=@ud]
$: %eth-get-logs
fro=(unit block)
:+ ~ 'topics'
(topics-to-json top.req)
==
+ ::
+ %eth-get-block-by-number
+ :- 'eth_getBlockByNumber'
+ :~ (tape (num-to-hex bon.req))
+ b+txs.req
+ ==
::
%eth-g... |
interface: show channels, since channel-count doesn't work | @@ -152,7 +152,7 @@ export function JoinGroup(props: JoinGroupProps) {
<GroupSummary
metadata={preview.metadata}
memberCount={preview?.members}
- channelCount={preview?.["channel-count"]}
+ channelCount={preview?.channels?.length}
>
{ Object.keys(preview.channels).length > 0 && (
<Col
|
unix: remove extra layer of conditional | @@ -167,9 +167,7 @@ _unix_knot_to_string(u3_atom pon)
|| c3_s2('.','.') == pon );
c3_c* ret_c = c3_malloc(met_w + add_w + 1);
- if ( add_w ) {
- memcpy(ret_c, "~.", 2);
- }
+ memcpy(ret_c, "~.", add_w);
u3r_bytes(0, met_w, (c3_y*)ret_c + add_w, pon);
ret_c[met_w + add_w] = 0;
// |(((sane %ta) '/') ((sane %ta) '\\')) ->... |
Add feed reader clients
This PR adds more RSS feed readers to the list of browsers:
[Fever](https://feedafever.com/)
[FreshRSS](https://freshrss.org)
[Tiny Tiny RSS](http://tt-rss.org/)
[Winds](https://getstream.io/winds/) | @@ -243,10 +243,14 @@ static const char *browsers[][2] = {
{"com.apple.Safari.WebFeedParser", "Feeds"},
{"FeedDemon", "Feeds"},
{"Feedy", "Feeds"},
+ {"Fever", "Feeds"},
+ {"FreshRSS", "Feeds"},
{"Liferea", "Feeds"},
{"NetNewsWire", "Feeds"},
{"RSSOwl", "Feeds"},
+ {"Tiny Tiny RSS", "Feeds"},
{"Thunderbird", "Feeds"},
... |
fix MISRA test bug and coverage | PANDA_DIR=../..
mkdir /tmp/misra || true
+ERROR_CODE=0
# generate coverage matrix
#python tests/misra/cppcheck/addons/misra.py -generate-table > tests/misra/coverage_table
@@ -45,12 +46,12 @@ python /usr/share/cppcheck/addons/misra.py $PANDA_DIR/board/pedal/main.c.dump 2>
cppcheck_pedal_output=$( cat /tmp/misra/cppchec... |
Fix txt->content memory leak | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <errno.h>
#include <LCUI_Build.h>
#include <LCUI/LCUI.h>
#include <LCUI/font.h>
@@ -399,9 +400,16 @@ int TextView_SetTextW( LCUI_Widget w, const wchar_t *text )
{
LCUI_TextView txt = GetData( w );
wchar_t *newtext = malloc( wcssize( text ) );
- txt->c... |
patch-check: Add shellcheck
Shellcheck is expected to be installed because depot_tools does not
provide the tool. | @@ -36,6 +36,7 @@ details on the presubmit API built into depot_tools.
import subprocess2
USE_PYTHON3 = True
+_INCLUDE_BASH_FILES_ONLY = [r".*\.sh$"]
_INCLUDE_MAN_FILES_ONLY = [r"man/.+\.1$"]
_LIBWEBP_MAX_LINE_LENGTH = 80
@@ -69,11 +70,39 @@ def _CheckManFiles(input_api, output_api):
return results
+def _RunShellCheckC... |
more style edits | You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
-==============================
-Documentation for mpiFileUtils
-==============================
+**Documentation for mpiFileUtils**
+**********************************
Overview
*************
|
schema tree REFACTOR do not use freed pointer | @@ -1029,9 +1029,8 @@ lys_unres_glob_revert(struct ly_ctx *ctx, struct lys_glob_unres *unres)
for (i = 0; i < unres->creating.count; ++i) {
m = unres->creating.objs[i];
- /* remove the module from the context and free it */
+ /* remove the module from the context */
ly_set_rm(&ctx->list, m, NULL);
- lys_module_free(m);... |
Update: greenplant.nal: make example more intuitive | *volume=0
+
<{inst1} --> plant>.
<{inst1} --> [green]>. %0.7%
-100
+10
<{inst2} --> plant>.
<{inst2} --> [green]>. %0.8%
-100
+10
//How green are plants?
<plant --> [green]>?
//expected: Answer: <plant --> [green]>. Truth: frequency=0.750000, confidence=0.618321
+<{ocean1} --> ocean>.
<{ocean1} --> [green]>. %0.1%
10
-... |
dbug fe: render result count alongside list filter | @@ -36,16 +36,14 @@ export class SearchableList extends Component {
return match && item.key.includes(query);
}, true);
})
- if (items.length === 0) {
- items = 'none';
- } else {
- items = items.map(item => (<div key={item.key} style={{marginTop: '4px'}}>{item.jsx}</div>));
- }
+ items = items.map(item =>
+ (<div key=... |
jenkinsfile: add missing generateDockerBuildStages stage | @@ -204,6 +204,16 @@ def generateDockerPullStages() {
return tasks
}
+def generateDockerBuildStages() {
+ def tasks = [:]
+ DOCKER_IMAGES.each { key, image ->
+ if(image.autobuild && !image.exists) {
+ tasks << buildImageStage(image)
+ }
+ }
+ return tasks
+}
+
/* Returns a stage that tries to pull an image
*
* Also se... |
board_inspector: fix returning nested local variables
Local variables can be assigned with formal arguments in AML. As a result
when interpreting a DefReturn node, the interpreter shall unwrap multiple
layers of argument/local variable wrappings until a concrete value is
found. This patch implements this logic. | @@ -357,7 +357,7 @@ class ConcreteInterpreter(Interpreter):
def DefReturn(self, tree):
obj = self.interpret(tree.children[0])
- if isinstance(obj, (self.Argument, self.LocalVariable)):
+ while isinstance(obj, (self.Argument, self.LocalVariable)):
obj = obj.get_obj()
self.stack[-1].return_value = obj
raise MethodReturn(... |
Added getppid sysdep | @@ -305,8 +305,11 @@ pid_t sys_getpid() {
return pid;
}
pid_t sys_getppid() {
- mlibc::infoLogger() << "mlibc: " << __func__ << " is a stub!" << frg::endlog;
- return 0;
+ pid_t ppid;
+ asm volatile ("syscall" : "=a"(ppid)
+ : "a"(14)
+ : "rcx", "r11");
+ return ppid;
}
#endif // MLIBC_BUILDING_RTDL
|
Fixed failure to update test_analysis.cpp | @@ -25,7 +25,7 @@ BOOST_FIXTURE_TEST_CASE(test_anlys_getoption, FixtureOpenClose)
double array[13];
std::vector<double> test;
- std::vector<double> ref = {40.0, 0.001, 0.01, 0.5, 1.0, 0.0, 0.0, 1.0, 0.0, 75.0, 0.0, 0.0, 0.0};
+ std::vector<double> ref = {40.0, 0.001, 0.01, 0.5, 1.0, 0.0, 0.0, 0.0, 75.0, 0.0, 0.0, 0.0};... |
docs - add memory control group to resgroup cgroup config | @@ -296,9 +296,12 @@ rg_perseg_mem = ((RAM * (vm.overcommit_ratio / 100) + SWAP) * gp_resource_group_
}
cpuacct {
}
+ memory {
+ }
} </codeblock>
<p>This content configures CPU and CPU accounting control groups managed by the
- <codeph>gpadmin</codeph> user.</p>
+ <codeph>gpadmin</codeph> user. The <i>memory</i> contro... |
Adding branch coverage support and reporting. | @@ -227,14 +227,14 @@ function(setup_target_for_coverage_lcov)
COMMAND ${Coverage_EXECUTABLE} ${Coverage_EXECUTABLE_ARGS}
# Capturing lcov counters and generating report
- COMMAND ${LCOV_PATH} ${Coverage_LCOV_ARGS} --gcov-tool ${GCOV_PATH} --directory . -b ${BASEDIR} --capture --output-file ${Coverage_NAME}.capture
+ C... |
Make a test endure log_error_verbosity=verbose. | @@ -84,7 +84,7 @@ sub test_recovery_wal_level_minimal
# Confirm that the archive recovery fails with an expected error
my $logfile = slurp_file($recovery_node->logfile());
ok( $logfile =~
- qr/FATAL: WAL was generated with wal_level=minimal, cannot continue recovering/,
+ qr/FATAL: .* WAL was generated with wal_level=m... |
Convert uses of snprintf to BIO_snprintf
Fixes | @@ -362,7 +362,7 @@ static int do_dir(const char *dirname, enum Hash h)
numfiles = sk_OPENSSL_STRING_num(files);
for (n = 0; n < numfiles; ++n) {
filename = sk_OPENSSL_STRING_value(files, n);
- if (snprintf(buf, buflen, "%s%s%s",
+ if (BIO_snprintf(buf, buflen, "%s%s%s",
dirname, pathsep, filename) >= buflen)
continue;... |
Use pattern key when loading/saving uge files
Fixes bug where uge files v5 weren't loading correctly in GBS if the pattern keys weren't consecutive.
It also tries to fix the case when uge files where saved in GBS without using unique pattern keys and where failing to open in hUGETracker. | @@ -22,7 +22,7 @@ export const loadUGESong = (data: ArrayBuffer): Song | null => {
// TODO: Use `DataView` object instead of loads of Uint32Arrays
let offset = 0;
const version = new Uint32Array(data.slice(offset, offset + 4))[0];
- console.log(`uge version: ${version}`);
+ console.log(`! uge version: ${version}`);
if ... |
gh-actions: use GCC 10 to compile native aliases test | @@ -65,13 +65,13 @@ jobs:
with:
submodules: recursive
- name: Install APT Dependencies
- run: sudo apt-get update && sudo apt-get -yq install libxml2-utils ninja-build python3-pip python3-setuptools python3-wheel
+ run: sudo add-apt-repository ppa:ubuntu-toolchain-r/test && sudo apt-get update && sudo apt-get -yq insta... |
fix wlan_dev bug | @@ -639,7 +639,7 @@ static rt_err_t _rt_wlan_dev_control(rt_device_t dev, int cmd, void *args)
{
int level = *((int *)args);
- LOG_D("%s %d cmd[%d]:%s run......", __FUNCTION__, __LINE__, RT_WLAN_CMD_POWERSAVE, "RT_WLAN_CMD_SET_POWERSAVE");
+ LOG_D("%s %d cmd[%d]:%s run......", __FUNCTION__, __LINE__, RT_WLAN_CMD_SET_PO... |
tc_perf_event.py command fix | @@ -77,7 +77,7 @@ try:
parent="ffff:fff3", classid=1, direct_action=True)
b["skb_events"].open_perf_buffer(print_skb_event)
- print('Try: "ping -6 ff02::1%me"\n')
+ print('Try: "ping6 ff02::1%me"\n')
print("%-3s %-32s %-12s %-10s" % ("CPU", "SRC IP", "DST IP", "Magic"))
while True:
b.perf_buffer_poll()
|
fixed bug in proberesponse handling | @@ -1650,7 +1650,7 @@ else if(auth->authentication_algho == OPEN_SYSTEM)
{
if(auth->authentication_seq == 1)
{
- if(memcmp(macfrx->addr2, mac_mysta, 6) != 0)
+ if(memcmp(macfrx->addr2, &mac_mysta, 6) != 0)
{
send_authenticationresponseopensystem();
}
@@ -1789,7 +1789,6 @@ if(attackapflag == false)
if(memcmp(&mac_mysta,... |
implement X509TrustManagerExtensions | @@ -54,6 +54,7 @@ import javax.net.ssl.SSLSocketFactory;
import javax.net.ssl.TrustManager;
import javax.net.ssl.TrustManagerFactory;
import javax.net.ssl.X509TrustManager;
+import android.net.http.X509TrustManagerExtensions;
import android.util.Base64;
@@ -109,10 +110,14 @@ public class SSLImpl {
private static class ... |
Remove redundant Cirrus-CI branch filter. | @@ -10,8 +10,6 @@ auto_cancellation: $CIRRUS_BRANCH != 'integration'
# FreeBSD 12
# ----------------------------------------------------------------------------------------------------------------------------------
freebsd_12_task:
- only_if: $CIRRUS_BRANCH == 'integration' || $CIRRUS_BRANCH =~ '.*-ci$' || $CIRRUS_BRAN... |
test that created data keys insert with majority writeConcern | @@ -177,7 +177,7 @@ module.exports = function(modules) {
this._client
.db(dbName)
.collection(collectionName)
- .insertOne(dataKey, (err, result) => {
+ .insertOne(dataKey, { w: 'majority' }, (err, result) => {
if (err) {
cb(err, null);
return;
|
taeko: add vivaldi keyboard support
BRANCH=main
TEST=make -j BOARD=taeko | */
#include "common.h"
-
+#include "ec_commands.h"
#include "keyboard_scan.h"
#include "timer.h"
@@ -23,3 +23,26 @@ __override struct keyboard_scan_config keyscan_config = {
0xa4, 0xff, 0xfe, 0x55, 0xfa, 0xca /* full set */
},
};
+
+static const struct ec_response_keybd_config taeko_kb = {
+ .num_top_row_keys = 10,
+ .... |
Point out that ninja must not be run as root
See | @@ -199,6 +199,12 @@ cd x
ninja
```
+_Note: `ninja` [must][ninja-user] be run as a non-root user (only `ninja
+install` must be run as root)._
+
+[ninja-user]: https://github.com/Genymobile/scrcpy/commit/4c49b27e9f6be02b8e63b508b60535426bd0291a
+
+
### Run
To run without installing:
|
Fix widgets bugs | @@ -222,6 +222,11 @@ def __clear_mods__():
except KeyError:
pass
+ try:
+ del sys.modules["widgets"]
+ except KeyError:
+ pass
+
try:
del sys.modules["turtle"]
except KeyError:
|
Fix PSA_PAKE_OUTPUT_MAX_SIZE/PSA_PAKE_INPUT_MAX_SIZE commment about parameters to PSA_PAKE_OUTPUT_SIZE/PSA_PAKE_INPUT_SIZE | @@ -1826,21 +1826,21 @@ psa_status_t psa_pake_abort(psa_pake_operation_t * operation);
*/
#define PSA_PAKE_INPUT_SIZE(alg, primitive, input_step) 0
-/** Output buffer size for psa_pake_output() for any of the supported cipher
- * suites and PAKE algorithms.
+/** Output buffer size for psa_pake_output() for any of the s... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.