message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
esp32/modsocket: Convert EADDRINUSE error code from lwip return value. | @@ -155,7 +155,9 @@ void usocket_events_handler(void) {
NORETURN static void exception_from_errno(int _errno) {
// Here we need to convert from lwip errno values to MicroPython's standard ones
- if (_errno == EINPROGRESS) {
+ if (_errno == EADDRINUSE) {
+ _errno = MP_EADDRINUSE;
+ } else if (_errno == EINPROGRESS) {
_e... |
examples/trace: update enable script to work with new API endpoint. | set -eu
REMOTE_HOST=${REMOTE_HOST:-127.0.0.1}
if command -v http; then
- http -v $REMOTE_HOST:2020/api/v1/trace input=dummy.0 output=stdout prefix=trace. enable:=true params:='{"format":"json"}'
+ http -v $REMOTE_HOST:2020/api/v1/trace/dummy.0 output=stdout prefix=trace. params:='{"format":"json"}'
elif command -v curl... |
doc: add blacklist plugin to plugin README.md | @@ -216,6 +216,7 @@ copied by the `spec` plugin just before) to validate values:
- [network](network/) by using network APIs
- [path](path/) by checking files on file system
- [unit](unit/) validates and normalizes units of memory (e.g. 20KB to 20000 Bytes)
+- [blacklist](blacklist/) blacklist and reject values
The sam... |
adding io configuration | @@ -12,7 +12,6 @@ using namespace CoreML::Specification;
void NCatboost::NCoreML::ConfigureTrees(const TFullModel& model, TreeEnsembleParameters* ensemble) {
const auto classesCount = static_cast<size_t>(model.ObliviousTrees.ApproxDimension);
- CB_ENSURE(!model.HasCategoricalFeatures(), "model with only float features ... |
Disable most logs by default | // m3log (...) --------------------------------------------------------------------
-# define d_m3LogParse 1
-# define d_m3LogCompile 1
+# define d_m3LogParse 0
+# define d_m3LogCompile 0
# define d_m3LogStack 0
# define d_m3LogEmit 0
# define d_m3LogCodePages 0
# define d_m3LogModule 0
# define d_m3LogRuntime 1
-# def... |
btc: do not show `bech32` in receive screen
It is redundant and possibly confusing, especially since the BitBoxApp
has unified accounts (only one Bitcoin account) by default. | @@ -106,27 +106,7 @@ static commander_error_t _btc_pub_address_simple(
}
if (request->display) {
const char* coin = btc_common_coin_name(request->coin);
- char title[100] = {0};
- int n_written;
- switch (request->output.script_config.config.simple_type) {
- case BTCScriptConfig_SimpleType_P2WPKH_P2SH:
- n_written = sn... |
Fixed issue where fisher would return '-nan' or 'nan' in different environments by making explicit test for NaN and using '-nan' (as epected by the test script) | @@ -85,8 +85,17 @@ void Fisher::giveFinalReport(RecordOutputMgr *outputMgr)
printf("# p-values for fisher's exact test\n");
printf("left\tright\ttwo-tail\tratio\n");
+
+ /* Some implementations report NAN as negative, some as positive. To ensure
+ * we get consistent output from each compiler, we should do our own test... |
Default multi file test to 64 | @@ -2059,7 +2059,7 @@ static void demo_test_multi_scenario_free(picoquic_demo_stream_desc_t** scenario
}
}
-size_t picohttp_test_multifile_number = 1999;
+size_t picohttp_test_multifile_number = 64;
#define MULTI_FILE_CLIENT_BIN "multi_file_client_trace.bin"
#define MULTI_FILE_SERVER_BIN "multi_file_server_trace.bin"
|
toml: Another README restyle | @@ -182,7 +182,7 @@ kdb rm -r user/tests/storage
sudo kdb umount user/tests/storage
```
-# Comments/Empty Lines
+# Comments and Empty Lines
The plugin preserves all comments with only one limitation for arrays. The amount of whitespace in front of a comment is also saved.
For this purpose, each tab will get translated ... |
Moving all pre-built libraries to LFS. | # Set the default behavior, in case people don't have core.autocrlf set.
* text=auto
-
# Explicitly declare text files you want to always be normalized and converted
# to native line endings on checkout.
*.c text
*.pdsc text
*.svd text
*.bat text
-
# Declare files that will always have CRLF line endings on checkout.
*.... |
Emit HashrateNotification for miner's total hashrate | @@ -197,6 +197,7 @@ namespace Miningcore.Mining
await cf.RunTx(async (con, tx) =>
{
stats.Miner = minerHashes.Key;
+ double minerTotalHashrate = 0;
foreach(var item in minerHashes)
{
@@ -206,6 +207,7 @@ namespace Miningcore.Mining
if (windowActual >= MinHashrateCalculationWindow)
{
var hashrate = pool.HashrateFromShare... |
Use COMPACT_EXTENDED_LIST when handling allocation lists | #define COMPACT_LARGE_ATOM 10
#define COMPACT_LARGE_YREG 12
+#define COMPACT_EXTENDED_LIST 0x37
#define COMPACT_EXTENDED_LITERAL 0x47
#define COMPACT_LARGE_IMM_MASK 0x18
@@ -424,7 +425,7 @@ typedef union
}
#define IS_EXTENDED_ALLOCATOR(code_chunk, base_index, off) \
- ((code_chunk[(base_index) + (off)]) & 0xF) == COMPA... |
test/accel_cal.c: Format with clang-format
BRANCH=none
TEST=none | @@ -29,12 +29,12 @@ struct accel_cal cal = {
static bool accumulate(float x, float y, float z, float temperature)
{
- return accel_cal_accumulate(&cal, 0, x, y, z, temperature)
- || accel_cal_accumulate(&cal, 200 * MSEC, x, y, z, temperature)
- || accel_cal_accumulate(&cal, 400 * MSEC, x, y, z, temperature)
- || accel_... |
Update Tools.md
I might be wrong with pillow, but for me it kicked off with `ERROR: No matching distribution found for PIL` which was resolved with installing pillow.
In my very limited experience with python though, I seem to remember pillow being deprecated.. ? Either way, this fixed my error. | @@ -11,7 +11,7 @@ Have a look into the script for further details regarding the formats.
### Prerequisites:
``` shell
-sudo python3 -m pip install construct bitarray bitstring
+sudo python3 -m pip install construct bitarray bitstring pillow
```
### Usage:
|
Simplify the appveyor script. | @@ -34,8 +34,8 @@ test_script:
- ps: if ($Env:Platform -eq "x64") { cd x64 }
- ps: cd "$Env:Configuration"
- ps: vstest.console /logger:Appveyor UnitTest1.dll
- # Alternative to UnitTest1 (apparently running the same tests):
- - ps: .\picoquic_t -n -r -x fuzz_initial
+ # Alternative to UnitTest1 (running the same tests... |
dont calc sprite_index unless needed | @@ -700,13 +700,14 @@ void SceneRenderActors_b()
{
LOG("CHECK FOR REDRAW Actor %u\n", i);
- sprite_index = MUL_2(i);
redraw = actors[i].redraw;
// If just landed on new tile or needs a redraw
if (redraw)
{
+ sprite_index = MUL_2(i);
+
flip = FALSE;
frame = actors[i].sprite;
|
esp_prov: added support for session cookie in SoftAP mode | @@ -39,6 +39,13 @@ class Transport_HTTP(Transport):
try:
self.conn.request('POST', path, tobytes(data), self.headers)
response = self.conn.getresponse()
+ # While establishing a session, the device sends the Set-Cookie header
+ # with value 'session=cookie_session_id' in its first response of the session to the tool.
+... |
esp32/modsocket: Make socket.read return when socket closes.
socket.read(n) will try to read exactly the requested number of bytes. In
blocking mode the read will only stop if the socket is closed, which is
indicated by lwip by returning a zero-byte read. This patch makes sure the
uPy socket code handles such a case. | @@ -365,7 +365,7 @@ STATIC mp_uint_t socket_stream_read(mp_obj_t self_in, void *buf, mp_uint_t size,
// XXX Would be nicer to use RTC to handle timeouts
for (int i=0; i<=sock->retries; i++) {
int x = lwip_recvfrom_r(sock->fd, buf, size, 0, NULL, NULL);
- if (x > 0) return x;
+ if (x >= 0) return x;
if (x < 0 && errno !... |
py/asmxtensa: Handle function entry/exit when stack use larger than 127. | @@ -69,7 +69,12 @@ void asm_xtensa_entry(asm_xtensa_t *as, int num_locals) {
// adjust the stack-pointer to store a0, a12, a13, a14 and locals, 16-byte aligned
as->stack_adjust = (((4 + num_locals) * WORD_SIZE) + 15) & ~15;
+ if (SIGNED_FIT8(-as->stack_adjust)) {
asm_xtensa_op_addi(as, ASM_XTENSA_REG_A1, ASM_XTENSA_REG... |
Use sockaddr length from fuzzer
Commit made major changes and introduced the
"HonggfuzzNetDriverServerAddress" function which can be defined by
a fuzzer. Unfortunately the connection attempt didn't use the
fuzzer-provided length and thus truncated longer socket address
structures such as "sockaddr_un". | @@ -288,7 +288,7 @@ static bool netDriver_checkIfServerReady(int argc, char **argv) {
socklen_t slen = HonggfuzzNetDriverServerAddress(&addr);
if (slen > 0) {
/* User provided specific destination address */
- int fd = netDriver_sockConnAddr(addr, sizeof(addr));
+ int fd = netDriver_sockConnAddr(addr, slen);
if (fd >= ... |
Set default reference to 2.1 | @@ -333,7 +333,7 @@ def parse_command_line():
parser.add_argument("--encoder", dest="encoders", default="avx2",
choices=coders, help="test encoder variant")
- parser.add_argument("--reference", dest="reference", default="ref-2.0-avx2",
+ parser.add_argument("--reference", dest="reference", default="ref-2.1-avx2",
choic... |
Post the next recv when we pass maxreqh steps
We need to wait for the oldest recv and post the next recv when
we pass maxreqh steps (i.e., istep > maxreqh - 1).
Without the fix the code will hang when using flow control with
handshake | @@ -321,7 +321,7 @@ int pio_swapm(void *sendbuf, int *sendcounts, int *sdispls, MPI_Datatype *sendty
/* We did comms in sets of size max_reqs, if istep > maxreqh
* then there is a remainder that must be handled. */
- if (istep > maxreqh)
+ if (istep > maxreqh - 1)
{
p = istep - maxreqh;
if (rcvids[p] != MPI_REQUEST_NUL... |
UI docs: Rephrase the UI method function return value description
It seems the =item isn't supposed to have pure numbers, or so tells me
perldoc. | @@ -85,28 +85,13 @@ by closing the channel to the tty, maybe by destroying a dialog box.
=back
-All of these functions are expected to return one of these values:
-
-=over 4
-
-=item 0
-
-on error.
-
-=item 1
-
-on success.
-
-=item -1
-
-on out-off-band events, for example if some prompting has been
-cancelled (by pre... |
doc/news: remove duplicate entries in next release news | @@ -140,10 +140,6 @@ The text below summarizes updates to the [C (and C++)-based libraries](https://w
- Removed mentions of VERBOSE and replaced debug prints with the logger _(@mandoway)_
-### Core
-
-- Removed mentions of VERBOSE and replaced debug prints with the logger _(@mandoway)_
-
### <<Library>>
- <<TODO>>
@@ -... |
release: git add alpine release image | @@ -814,6 +814,8 @@ def buildRelease(stageName, image, packageRevision='1',
sh "scripts/release/populate-release-notes.sh ${RELEASE_VERSION} ../${RELEASE_VERSION}/"
sh "git add doc/news"
sh "git commit -m 'release: add hashsums and statistics to release notes'"
+ sh "git add scripts/docker/alpine"
+ sh "git commit -m '... |
Fix Quick Start to AOMP development
clone_aomp.sh script is located in bin directory. | @@ -89,6 +89,7 @@ To build and clone all components using the latest development sources, first cl
cd aomp
git checkout aomp-dev
git pull
+ cd bin
./clone_aomp.sh
```
The first time you run ./clone_aomp.sh, it could take a long time to clone the repositories.
|
ip: fix build without vector unit
Type: fix | @@ -99,7 +99,9 @@ static inline u32
check_adj_port_range_x1 (const protocol_port_range_dpo_t * ppr_dpo,
u16 dst_port, u32 next)
{
+#ifdef CLIB_HAVE_VEC128
u16x8 key = u16x8_splat (dst_port);
+#endif
int i;
if (NULL == ppr_dpo || dst_port == 0)
@@ -107,9 +109,20 @@ check_adj_port_range_x1 (const protocol_port_range_dpo_... |
Slightly reduce lock usage
Locking the frame_buffer mutex to reference the input frame into the
tmp_frame is unnecessary.
This also fixes the missing unlock on error. | @@ -51,8 +51,6 @@ swap_frames(AVFrame **lhs, AVFrame **rhs) {
bool
sc_frame_buffer_push(struct sc_frame_buffer *fb, const AVFrame *frame,
bool *previous_frame_skipped) {
- sc_mutex_lock(&fb->mutex);
-
// Use a temporary frame to preserve pending_frame in case of error.
// tmp_frame is an empty frame, no need to call av... |
Add a missing break statement when determining compression in exr2aces | @@ -137,6 +137,7 @@ exr2aces (const char inFileName[],
case B44_COMPRESSION:
case B44A_COMPRESSION:
h.compression() = B44A_COMPRESSION;
+ break;
default:
h.compression() = PIZ_COMPRESSION;
|
avx512/abs: add SSE2 implementation of _mm_abs_epi64 | @@ -125,6 +125,9 @@ simde__m128i
simde_mm_abs_epi64(simde__m128i a) {
#if defined(SIMDE_X86_AVX512VL_NATIVE)
return _mm_abs_epi64(a);
+ #elif defined(SIMDE_X86_SSE2_NATIVE)
+ const __m128i m = _mm_srai_epi32(_mm_shuffle_epi32(a, 0xF5), 31);
+ return _mm_sub_epi64(_mm_xor_si128(a, m), m);
#else
simde__m128i_private
r_,
... |
Fix doc regarding aliasing of modulus input to mbedtls_mpi_core_montmul() | @@ -273,8 +273,8 @@ mbedtls_mpi_uint mbedtls_mpi_core_montmul_init( const mbedtls_mpi_uint *N );
* \param[in] N Little-endian presentation of the modulus.
* This must be odd, and have exactly the same number
* of limbs as \p A.
- * It must not alias or otherwise overlap any of the
- * other parameters.
+ * It may alias... |
Add step test-ruby | @@ -531,3 +531,41 @@ jobs:
- name: Run Tests
shell: bash
run: python $GITHUB_WORKSPACE/test/python/tests.py
+
+ test-ruby:
+ needs: [package]
+ runs-on: ${{ matrix.os }}
+ strategy:
+ matrix:
+ os: [ubuntu-latest]
+ ruby: ['2.3', '2.4', '2.5', '2.6', '2.7', '3.0', '3.1']
+
+ steps:
+ - uses: actions/checkout@v2
+ - use... |
Update Debian version needed | @@ -16,9 +16,8 @@ The complete documentation (for users, admins and developers) is available here
Requirements:
-- Debian7 or higher Environment 64 bits (a Docker image is available if you are on Windows environment)
-Recommended version is Debian 8
-(if you are on Debian 7 you will need to add the testing repo in /etc... |
change yp_util resource
Note: mandatory check (NEED_CHECK) was skipped | },
"yp-util": {
"formula": {
- "sandbox_id": [401046412],
+ "sandbox_id": [413413694],
"match": "yp_util"
},
"executable": {
|
hv: vlapic: minor fix for update_msr_bitmap_x2apic_apicv
Shouldn't trap TPR since we always enable "Use TPR shadow" | @@ -640,10 +640,11 @@ void update_msr_bitmap_x2apic_apicv(const struct acrn_vcpu *vcpu)
* writes to them are virtualized with Register Virtualization
* Refer to Section 29.1 in Intel SDM Vol. 3
*/
- enable_msr_interception(msr_bitmap, MSR_IA32_EXT_APIC_TPR, INTERCEPT_DISABLE);
enable_msr_interception(msr_bitmap, MSR_IA... |
Add a few more type casting | @@ -220,7 +220,7 @@ size_t picoquic_decode_transport_param_prefered_address(uint8_t * bytes, size_t
byte_index += 2;
cnx_id_length = bytes[byte_index++];
if (cnx_id_length > 0 && cnx_id_length <= PICOQUIC_CONNECTION_ID_MAX_SIZE &&
- byte_index + cnx_id_length + 16 <= bytes_max &&
+ byte_index + (size_t)cnx_id_length + ... |
hls_intersect: a minor change to getopt list | @@ -197,7 +197,7 @@ int main(int argc, char *argv[])
};
ch = getopt_long(argc, argv,
- "C:i:o:m:n:l:t:XVIvh",
+ "C:i:o:m:n:l:t:VIvh",
long_options, &option_index);
if (ch == -1)
break;
|
Constants: Add missing variable to MSR test | @@ -36,6 +36,7 @@ kdb ls user/examples/constants
#> user/examples/constants/cmake/BUILTIN_EXEC_FOLDER
#> user/examples/constants/cmake/BUILTIN_PLUGIN_FOLDER
#> user/examples/constants/cmake/CMAKE_INSTALL_PREFIX
+#> user/examples/constants/cmake/ENABLE_ASAN
#> user/examples/constants/cmake/ENABLE_DEBUG
#> user/examples/... |
Add inertia timeout; | @@ -58,6 +58,9 @@ static void enableMouselook(GLFWwindow* window) {
static void disableMouselook(GLFWwindow* window) {
state.mouselook = false;
+ if (glfwGetTime() - state.prevMove > .25) {
+ state.vYaw = state.vPitch = 0;
+ }
}
static void window_focus_callback(GLFWwindow* window, int focused) {
|
VERSION bump to version 2.0.64 | @@ -58,7 +58,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 63)
+set(LIBYANG_MICRO_VERSION 64)
set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION})
... |
Add Windows OpenSSL build dependency | @@ -186,11 +186,24 @@ SOURCES = air_quality.cpp \
win32 {
+ OPENSSL_PATH = E:/Qt/Tools/OpenSSL/Win_x86
+
+ exists($$OPENSSL_PATH) {
+ message(OpenSLL detected $$OPENSSL_PATH)
+
+ LIBS += -L$$OPENSSL_PATH/bin \
+ -llibcrypto-1_1 \
+ -llibssl-1_1
+ INCLUDEPATH += $$OPENSSL_PATH/include
+ DEFINES += HAS_OPENSSL
+ }
+
LIBS... |
Fix pbuf docs | @@ -178,7 +178,8 @@ esp_pbuf_chain(esp_pbuf_p head, esp_pbuf_p tail) {
/**
* \brief Unchain first pbuf from list and return second one
*
- * `tot_len` and `len` fields are adjusted to reflect new values and reference counter is as is
+ * `tot_len` and `len` fields are adjusted to reflect new values and reference counte... |
add cloc back to run list, and control with EPSDB=1 | @@ -23,7 +23,12 @@ echo " A non-zero exit code means a failure occured."
echo "************************************************************************************"
#Loop over all directories and run the check script
-for directory in ./fortran hip openmp/; do
+cloc=""
+if [ "$EPSDB" != "1" ]; then
+ CLOC=cloc
+fi
+
+f... |
speed: Always reset the outlen when calling EVP_PKEY_derive
Fixes | @@ -880,11 +880,14 @@ static int FFDH_derive_key_loop(void *args)
loopargs_t *tempargs = *(loopargs_t **) args;
EVP_PKEY_CTX *ffdh_ctx = tempargs->ffdh_ctx[testnum];
unsigned char *derived_secret = tempargs->secret_ff_a;
- size_t outlen = MAX_FFDH_SIZE;
int count;
- for (count = 0; COND(ffdh_c[testnum][0]); count++)
+ ... |
Docs: avoid confusing use of the word "synchronized"
It's misleading to call the data directory the "synchronized data
directory" when discussing a crash scenario when using pg_rewind's
no-sync option. Here we just remove the word "synchronized" to avoid
any possible confusion.
Author: Justin Pryzby
Discussion:
Backpa... | @@ -182,8 +182,8 @@ PostgreSQL documentation
to be written safely to disk. This option causes
<command>pg_rewind</command> to return without waiting, which is
faster, but means that a subsequent operating system crash can leave
- the synchronized data directory corrupt. Generally, this option is
- useful for testing bu... |
Use BIT4 instead of BIT3 for PCAT MixMode capability based on spec | @@ -336,8 +336,9 @@ union {
UINT8 OneLm : 1;
UINT8 Memory : 1;
UINT8 AppDirect : 1;
+ UINT8 Reserved1 : 1;
UINT8 MixedMode : 1;
- UINT8 Reserved : 4;
+ UINT8 Reserved2 : 3;
} MemoryModesFlags;
} SUPPORTED_MEMORY_MODE3;
|
WIP: Move ++cast-thou to turbo, but it's a no-op in practice. | ::
::
$thou
+ ~& %axon-thou
?+ -.tee !!
$ay (ames-gram (slav %p p.tee) got+~ (slav %uv q.tee) |2.sih)
$hi (cast-thou q.tee httr+!>(p.sih))
==
::
$made
+ =. our (need hov) :: XX
+ =| ses/(unit hole)
+ |- ^+ ..axon
:: hack: we must disambiguate between %f and %t %made responses
::
?: ?=([%t %made *] sih)
- ?> ?=([%se ^] ... |
halo mass func | @@ -101,7 +101,46 @@ double ccl_sigmaR(ccl_cosmology *cosmo, double R);
double ccl_sigma8(ccl_cosmology *cosmo);
````
These and other functions for different matter power spectra can be found in file *include/ccl_power.h*.
+<<<<<<< b57cc2940e42eed4b11c528eafdbabca66c1460b
### Example code
+=======
+
+### Angular power ... |
[hg] update client for linux and mac
Pull-request for branch users/nslus/arcadia/869/client | },
"hg": {
"formula": {
- "sandbox_id": [302223618, 302223634, 74450064],
+ "sandbox_id": [335981402, 335981414, 74450064],
"match": "Hg"
},
"executable": {
|
Make ctest suitable for multi-core machines. | @@ -68,7 +68,7 @@ sub_build() {
# Tests (coverage needs to run the tests)
if [ $BUILD_TESTS = 1 ] || [ $BUILD_COVERAGE = 1 ]; then
- ctest -VV -C $BUILD_TYPE
+ ctest -j$(getconf _NPROCESSORS_ONLN) --output-on-failure -C $BUILD_TYPE
fi
# Coverage
|
load_key_certs_crls: Avoid reporting any spurious errors
When there is other PEM data in between certs the OSSL_STORE_load
returns NULL and reports error. Avoid printing that error unless
there was nothing read at all.
Fixes | @@ -871,9 +871,6 @@ int load_key_certs_crls_suppress(const char *uri, int format, int maybe_stdin,
OSSL_PARAM itp[2];
const OSSL_PARAM *params = NULL;
- if (suppress_decode_errors)
- ERR_set_mark();
-
if (ppkey != NULL) {
*ppkey = NULL;
cnt_expectations++;
@@ -971,10 +968,6 @@ int load_key_certs_crls_suppress(const cha... |
FIX: -Wformat-security compile error. | @@ -136,7 +136,7 @@ static void do_lqdetect_write(char client_ip[], char *key,
if (keylen > 250) { /* long key string */
keylen = snprintf(keybuf, sizeof(keybuf), "%.*s...%.*s", 124, key, 123, (key+(keylen - 123)));
} else { /* short key string */
- keylen = snprintf(keybuf, sizeof(keybuf), key);
+ keylen = snprintf(ke... |
update ya tool arc
enable stash
arc/diff add diff-format selector support
arc/action: add root command | },
"arc": {
"formula": {
- "sandbox_id": [374170017],
+ "sandbox_id": [376680307],
"match": "arc"
},
"executable": {
|
Add Rx filter update before spur cancelation | @@ -1532,7 +1532,8 @@ int LMS7002M::SetFrequencySX(bool tx, float_type freq_Hz, SX_details* output)
*/
int LMS7002M::SetFrequencySXWithSpurCancelation(bool tx, float_type freq_Hz, float_type BW)
{
- BW += 2e6; //offset to avoid ref clock on BW edge
+ const float BWOffset = 2e6;
+ BW += BWOffset; //offset to avoid ref c... |
Error out on invalid empty prototypes
This way, a function prototype like `glms_mat3_identity()` will not
compile, instead you have to change it to the proper
`glms_mat3_identity(void)`. | @@ -12,7 +12,8 @@ AM_CFLAGS = -Wall \
-O3 \
-Wstrict-aliasing=2 \
-fstrict-aliasing \
- -pedantic
+ -pedantic \
+ -Werror=strict-prototypes
lib_LTLIBRARIES = libcglm.la
libcglm_la_LDFLAGS = -no-undefined -version-info 0:1:0
|
kdb: put the string which was set under quotes | @@ -70,7 +70,7 @@ int SetCommand::execute (Cmdline const & cl)
key = Key (name, KEY_END);
if (!nullValue)
{
- toprint << " with string " << value << endl;
+ toprint << " with string \"" << value << '"' << endl;
key.setString (value);
}
else
@@ -89,7 +89,7 @@ int SetCommand::execute (Cmdline const & cl)
{
if (!nullValue... |
examples:dns_matching: accept args from user
Accepts arguments from user. This change makes it slightly more
interactive. usage is show with -h option, so no extra documentation
required for understanding the usage. | @@ -9,6 +9,7 @@ import socket
import os
import struct
import dnslib
+import argparse
def encode_dns(name):
@@ -35,6 +36,15 @@ def add_cache_entry(cache, name):
leaf.p = (c_ubyte * 4).from_buffer(bytearray(4))
cache[key] = leaf
+
+parser = argparse.ArgumentParser(usage='For detailed information about usage,\
+ try with ... |
CHANGELOG: mark v9.10.0 | @@ -8,11 +8,11 @@ customers cannot upgrade their bootloader, its changes are recorded separately.
### [Unreleased]
+### 9.10.0 [2022-03-10]
- Bitcoin: add support for BIP-86: receive to taproot addresses and sign transactions with taproot inputs
- Ethereum: add support for the Binance Smart Chain, Optimism, Polygon, Fa... |
fix: is_running is accessed as int in curl which is 4 bytes instead of 1 byte | @@ -384,7 +384,7 @@ _ws_perform(struct websockets *ws)
ws->now_tstamp = orka_timestamp_ms(); //update our concept of now
pthread_mutex_unlock(&ws->lock);
- bool is_running;
+ int is_running;
CURLMcode mcode = curl_multi_perform(ws->mhandle, (int*)&is_running);
ASSERT_S(CURLM_OK == mcode, curl_multi_strerror(mcode));
|
Explain meaning of lighting checkbox | Common Controls
~~~~~~~~~~~~~~~
-There are a number of attributes of plots that are common to
-many, if not all plots. These include such things as **Color table**,
-**Foreground** and **Background** colors, **Opacity**,
-**Line style** and **Point type**, **Log** or **Linear** scaling,
-the **Legend** checkbox and oth... |
pkg/columns: reset kind and columnType after stringer
Symptoms:
panic: reflect: call of reflect.Value.Int on string Value | @@ -224,11 +224,16 @@ func (ci *Column[T]) parseTagInfo(tagInfo []string) error {
}
ci.template = params[1]
case "stringer":
+ if ci.Extractor != nil {
+ break
+ }
stringer := reflect.TypeOf((*fmt.Stringer)(nil)).Elem()
if ci.Type().Implements(stringer) {
ci.Extractor = func(t *T) string {
return ci.getRawField(reflect... |
Explicitly add cast to uint32_t before shifting uint8 to left | @@ -135,7 +135,7 @@ static void _tu_fifo_write_to_const_dst_ptr(void * dst, const void * src, uint16
// Pushing full available 32 bit words to FIFO
uint16_t full_words = len >> 2;
for(uint16_t i = 0; i < full_words; i++){
- *tx_fifo = (src_u8[3] << 24) | (src_u8[2] << 16) | (src_u8[1] << 8) | src_u8[0];
+ *tx_fifo = ((... |
Reformat md file | @@ -21,7 +21,8 @@ Information about the syntax:
- Can contain multiple keys with different locales (`keyName[en]` and `keyName[de]`)
- Cannot contain multiple keys with different metadata (either `keyname[$a]` or `keyname[$b]`).
- If a key `keyname[$metavalue]` is parsed, it will be represented as a Key with name `pare... |
Fix Coverity & uninitised value
Both are false positives, but better to be rid of them forever than ignoring
them and having repeats. | @@ -212,7 +212,7 @@ static int test_explicit_EVP_MD_fetch_by_X509_ALGOR(int idx)
int ret = 0;
X509_ALGOR *algor = make_algor(NID_sha256);
const ASN1_OBJECT *obj;
- char id[OSSL_MAX_NAME_SIZE];
+ char id[OSSL_MAX_NAME_SIZE] = { 0 };
if (algor == NULL)
return 0;
@@ -328,7 +328,7 @@ static int test_explicit_EVP_CIPHER_fet... |
chip/mec1322/lpc.c: Format with clang-format
BRANCH=none
TEST=none | @@ -375,8 +375,7 @@ DECLARE_IRQ(MEC1322_IRQ_ACPIEC0_IBF, acpi_0_interrupt, 1);
void acpi_1_interrupt(void)
{
uint8_t st = MEC1322_ACPI_EC_STATUS(1);
- if (!(st & EC_LPC_STATUS_FROM_HOST) ||
- !(st & EC_LPC_STATUS_LAST_CMD))
+ if (!(st & EC_LPC_STATUS_FROM_HOST) || !(st & EC_LPC_STATUS_LAST_CMD))
return;
/* Set the busy... |
mactime: remove unnecessary function declaration
Type: fix | #include <vppinfra/time_range.h>
#include <vnet/ethernet/ethernet.h>
-uword vat_unformat_sw_if_index (unformat_input_t * input, va_list * args);
-
/* Declare message IDs */
#include <mactime/mactime.api_enum.h>
#include <mactime/mactime.api_types.h>
|
perfmon: added bundle to measure pci bandwidth
Added an Intel Ice Lake specific bundles to measure pci bandwidth through the
Intel IO PMU. The "PCI" bundle measures read/writes from pci devices. The "CPU"
bundle measure read/writes from cpus to pci devices.
Type: improvement | @@ -32,6 +32,7 @@ add_vpp_plugin(perfmon
intel/bundle/power_license.c
intel/bundle/topdown_metrics.c
intel/bundle/topdown_tremont.c
+ intel/bundle/iio_bw.c
COMPONENT
vpp-plugin-devtools
|
Do not copy string in elektraGetString | @@ -75,8 +75,7 @@ const char * elektraGetString (Elektra * elektra, const char * name)
{
READ_KEY
- char * value = elektraMalloc (keyGetValueSize(resultKey));
- strcpy (value, string);
+ const char * value = string;
RETURN_VALUE
}
|
router_readconfig: don't prefix error messages with timestamps
Parse errors will be almost instant, and the relay will terminate, so no
need to add useless information here. | @@ -1191,13 +1191,13 @@ router_readconfig(router *orig,
ret->parser_err.msg = NULL;
if (router_yyparse(lptr, ret) != 0) {
if (ret->parser_err.msg == NULL) {
- logerr("parsing %s failed\n", path);
+ fprintf(stderr, "parsing %s failed\n", path);
} else if (ret->parser_err.line != 0) {
char *line;
char *p;
char *carets;
s... |
fixed issue with unit test linking on windows with SSL | @@ -50,7 +50,8 @@ SET_TARGET_PROPERTIES(hiredis
PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS TRUE
VERSION "${HIREDIS_SONAME}")
IF(WIN32 OR MINGW)
- TARGET_LINK_LIBRARIES(hiredis PRIVATE ws2_32)
+ TARGET_LINK_LIBRARIES(hiredis PUBLIC ws2_32 crypt32)
+ TARGET_LINK_LIBRARIES(hiredis_static PUBLIC ws2_32 crypt32)
ENDIF()
TARGET_I... |
Build: -e is better than -d let us try that | @@ -484,7 +484,7 @@ clean:
echo -e " Error: [make "$@"] failed for action/application in $(ACTION_ROOT)"; exit -1; \
fi \
fi
- if [ -d $(PSLSE_ROOT) ]; then \
+ if [ -e $(PSLSE_ROOT) ]; then \
for d in afu_driver/src pslse libcxl debug ; do \
$(MAKE) -C $(PSLSE_ROOT)/$$d $@ ; \
done \
|
version T13.818 for pools: xfer from pool fixed | -/* cheatcoin main, T13.654-T13.816 $DVS:time$ */
+/* cheatcoin main, T13.654-T13.818 $DVS:time$ */
#include <stdio.h>
#include <stdlib.h>
@@ -126,7 +126,7 @@ static int xfer_callback(void *data, cheatcoin_hash_t hash, cheatcoin_amount_t a
cheatcoin_amount_t todo = d->remains;
int i;
if (!amount) return -1;
- if (g_is_... |
Mild renamings. | +$ deco ?($bl $br $un $~) :: text decoration
+$ date {{a/? y/@ud} m/@ud t/tarp} :: parsed date
+$ knot @ta :: ASCII text
-++ noun * :: any noun
-++ path (list knot) :: like unix path
-++ stud :: standard name
- $@ @tas :: auth=urbit
++$ noun * :: any noun
++$ path (list knot) :: like unix path
++$ stud :: standard name... |
cups-browsed.c: revert silence the compiler warning
Revert the commit because it puts back the invalid memory error, and just recast 'uuid' to 'char*'. | @@ -3615,7 +3615,7 @@ new_local_printer (const char *device_uri,
{
local_printer_t *printer = g_malloc (sizeof (local_printer_t));
printer->device_uri = strdup (device_uri);
- printer->uuid = (uuid ? strdup (uuid) : NULL);
+ printer->uuid = (char*)uuid;
printer->cups_browsed_controlled = cups_browsed_controlled;
return... |
Retry to check if walsender is gone after standby stop.
Tests stops standby and checks if walsender is gone along with other checks, but
walsender may take some time to go away, hence add retry for checking. This
makes test robust, as failurs were seen some times in CI. | @@ -127,8 +127,14 @@ class neg_test(StandbyRunMixin, MPPTestCase):
# Stop the standby as its of no use anymore
self.standby.stop()
- # Verify that the wal sender died
+ # Verify that the wal sender died, max within 1 min
+ for retry in range(1,30):
num_walsender = self.count_walsender()
+ if num_walsender == 0:
+ break... |
Changelog note for
Merge from FGasper: Support OpenSSLs that lack
SSL_get0_alpn_selected. | +22 April 2021: Wouter
+ - Merge #466 from FGasper: Support OpenSSLs that lack
+ SSL_get0_alpn_selected.
+
13 April 2021: George
- Fix documentation comment for files previously residing in checkconf/.
- Remove unused functions worker_handle_reply and libworker_handle_reply.
|
Fixed a small bug on PCM command play (thanks to hsk for notification about it) | @@ -2067,7 +2067,7 @@ com_pcm_p0_ch1 ; 51 ' 80
com_pcm_p1_ch1 ; 55 ' 80
LD C, 1 ; C = prio ' 7 |
- JP com_pcm_ch0 ; execute PCM com ' 10 | 17 (97)
+ JP com_pcm_ch1 ; execute PCM com ' 10 | 17 (97)
com_pcm_p2_ch1 ; 59 ' 80
LD C, 2 ; C = prio ' 7 |
|
Improve BufString interface and performance | @@ -22,24 +22,24 @@ constexpr size_t BufStringOverHead = 2; // length + null termintor
template <size_t Size>
class BufString
{
- char buf[Size] = { };
+ char buf[Size]{ };
static_assert (Size <= (255 + BufStringOverHead), "Size too large");
public:
- BufString()
+ constexpr BufString()
{ clear(); }
- BufString(const c... |
acme: load custom cert from base desk, not home
Small patch for the ancient workaround. | ~& [%failed-order-history fal.hit]
this
::
- :: install privkey and cert .pem from /=home=/acme, ignores app state
+ :: install privkey and cert .pem from /=base=/acme, ignores app state
::TODO refactor this out of %acme, see also arvo#1151
::
%install-from-clay
- =/ bas=path /(scot %p our.bow)/home/(scot %da now.bow)/... |
link-view: in pagination logic, only +lent once
Also just use +swag instead of chaining +scag and +slag manually. | ::
++ page-size 25
++ get-paginated
- |* [p=(unit @ud) l=(list)]
- ^- [total=@ud pages=@ud page=_l]
- :+ (lent l)
- %+ add (div (lent l) page-size)
- (min 1 (mod (lent l) page-size))
- ?~ p l
- %+ scag page-size
- %+ slag (mul u.p page-size)
- l
+ |* [page=(unit @ud) list=(list)]
+ ^- [total=@ud pages=@ud page=_list]
+... |
filter_lua: rename c_int_key to type_int_key | @@ -98,7 +98,7 @@ struct lua_filter *lua_config_create(struct flb_filter_instance *ins,
}
lf->l2c_types_num = 0;
- tmp = flb_filter_get_property("c_int_key", ins);
+ tmp = flb_filter_get_property("type_int_key", ins);
if (tmp) {
split = flb_utils_split(tmp, ' ', L2C_TYPES_NUM_MAX);
mk_list_foreach_safe(head, tmp_list, ... |
gpcheckperf: fix python3 errors in multidd | @@ -23,7 +23,7 @@ import sys
def usage(exitarg):
- print __doc__
+ print(__doc__)
sys.exit(exitarg)
@@ -132,20 +132,20 @@ pfile = []
blocksz = opt['-B']
cnt = int(math.ceil(opt['-S'] / blocksz))
totalBytes = 0
-for i in xrange(len(opt['-i'])):
+for i in range(len(opt['-i'])):
ifile = opt['-i'][i]
ofile = opt['-o'][i]
c... |
Update the README.md in apps/builtin
Developer can set the priority and stacksize for builtin-app | @@ -24,7 +24,7 @@ Application Configuration -> Support builtin applications to y
1. Add calling REGISTER at context tab
```bash
$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
- $(call REGISTER,$(APPNAME),$(FUNCNAME),$(THREADEXEC))
+ $(call REGISTER,$(APPNAME),$(FUNCNAME),$(THREADEXEC),$(PRIORITY... |
fs/mtd: fix malformed output of /proc/partitions
Output of /proc/partitions is malformed due to incorrect buffer
handling. This commit fixes it. | @@ -531,15 +531,8 @@ static ssize_t part_procfs_read(FAR struct file *filep, FAR char *buffer, size_t
attr = (FAR struct part_procfs_file_s *)filep->f_priv;
DEBUGASSERT(attr);
- /* If we are at the end of the list, then return 0 signifying the
- * end-of-file. This also handles the special case when there are
- * no re... |
Add scePowerRequestDisplayOn() | @@ -209,6 +209,13 @@ int scePowerRequestStandby(void);
*/
int scePowerRequestSuspend(void);
+/**
+ * Request display on
+ *
+ * @return always 0
+ */
+int scePowerRequestDisplayOn(void);
+
/**
* Request display off
*
|
Fix endless reading of sw build id on Ubisys devices | @@ -3530,7 +3530,11 @@ bool DeRestPluginPrivate::processZclAttributes(LightNode *lightNode)
}
}
- if ((processed < 2) && lightNode->mustRead(READ_SWBUILD_ID) && tNow > lightNode->nextReadTime(READ_SWBUILD_ID))
+ if (lightNode->manufacturerCode() == VENDOR_UBISYS)
+ {
+ lightNode->clearRead(READ_SWBUILD_ID); // Ubisys d... |
Update create and update gpdb_main pipelines. | @@ -26,7 +26,7 @@ configure workflow.
The following workflow should be followed:
* Edit the template file (`templates/gpdb-tpl.yml`).
-* Generate the pipeline. During this step, the pipeline release jobs will be validated.
+* Generate the pipelines. During this step, the pipeline release jobs will be validated.
* Use t... |
Fix SELinux capabilities. Creating a tap interface with 'tap connect' was returning an error when VPP was launched as a service (tested on CentOS 7.3). Adding 'net_admin' to SELinux capabilities for VPP solves the issue. | @@ -43,9 +43,9 @@ files_tmp_file(vpp_tmp_t)
# vpp local policy
#
-allow vpp_t self:capability { dac_override ipc_lock setgid sys_rawio net_raw sys_admin }; # too benefolent
+allow vpp_t self:capability { dac_override ipc_lock setgid sys_rawio net_raw sys_admin net_admin }; # too benevolent
dontaudit vpp_t self:capabili... |
Enhance computation of first normal in RMF | @@ -1611,9 +1611,6 @@ ts_bspline_compute_rmf(const tsBSpline *spline,
frames[0].normal,
frames[0].normal);
ts_vec_norm(frames[0].normal, 3, frames[0].normal);
- ts_vec3_cross(frames[0].tangent,
- frames[0].normal,
- frames[0].normal);
} else {
/* Never trust user input! */
ts_vec_norm(frames[0].normal, 3, frames[0].nor... |
btc: fix b158 test | ::
++ check-all-match
|= v=match-vector
+ =/ b=hexb (from-cord:hxb (crip blockhash.v))
+ =/ inc=(list [address hexb]) (turn inc-spks.v |=(h=hexb [*address h]))
+ =/ exc=(list [address hexb]) (turn exc-spks.v |=(h=hexb [*address h]))
%+ expect-eq
- !>(`(set hexb)`(sy [*address inc-spks.v]))
- !> ^- (set hexb)
- %: all-m... |
l10n for tracker fields | "FIELD_LINK_CLOSE": "Close the current link session.",
"FIELD_LINK_JOIN": "Join a link session.",
"FIELD_LINK_HOST": "Host a link session.",
+ "FIELD_TEST_INSTRUMENT": "Test Instrument (C5)",
"// 7": "Asset Viewer ---------------------------------------------",
"ASSET_SEARCH": "Search...",
"EVENT_LINK_CLOSE": "Link: Cl... |
C comment: clarify why psql's help/exit/quit must alone
Document why no indentation and why no non-whitespace postfix is
supported.
Backpatch-through: master | @@ -237,7 +237,13 @@ MainLoop(FILE *source)
bool found_exit_or_quit = false;
bool found_q = false;
- /* Search for the words we recognize; must be first word */
+ /*
+ * The assistance words, help/exit/quit, must have no
+ * whitespace before them, and only whitespace after, with an
+ * optional semicolon. This prevent... |
Enforce proper memory alignment on APDU buffer for response status words | @@ -28,7 +28,9 @@ void handle_eip712_return_code(bool success) {
} else if (apdu_response_code == APDU_RESPONSE_OK) { // somehow not set
apdu_response_code = APDU_RESPONSE_ERROR_NO_INFO;
}
- *(uint16_t *) G_io_apdu_buffer = __builtin_bswap16(apdu_response_code);
+
+ G_io_apdu_buffer[0] = (apdu_response_code >> 8) & 0xf... |
Reset buffer and add comment with reason for this action | @@ -407,6 +407,14 @@ send_data(esp_mqtt_client_p client) {
ESP_DEBUGF(ESP_CFG_DBG_MQTT_TRACE_WARNING,
"[MQTT] Cannot send data with error: %d\r\n", (int)res);
}
+ } else {
+ /*
+ * If buffer is empty, reset it to default state (read & write pointers)
+ * This is to make sure everytime function needs to send data,
+ * i... |
common/mock/battery_mock.c: Format with clang-format
BRANCH=none
TEST=none | @@ -164,7 +164,8 @@ void set_battery_device_name(char *new_value)
}
#define MAX_DEVICE_CHEMISTRY_LENGTH 40
-static char battery_device_chemistry_value[MAX_DEVICE_CHEMISTRY_LENGTH+1] = "?";
+static char battery_device_chemistry_value[MAX_DEVICE_CHEMISTRY_LENGTH + 1] =
+ "?";
int battery_device_chemistry(char *dest, int ... |
uv binding for socket_is_closed | @@ -25,6 +25,7 @@ struct st_h2o_uv_socket_t {
uv_handle_t *handle;
uv_close_cb close_cb;
h2o_timer_t write_cb_timer;
+ int is_closed;
union {
struct {
union {
@@ -147,10 +148,17 @@ void do_dispose_socket(h2o_socket_t *_sock)
void do_close_socket(h2o_socket_t *_sock)
{
struct st_h2o_uv_socket_t *sock = (struct st_h2o_uv... |
in_serial: fix packer | @@ -63,7 +63,8 @@ static inline int process_line(msgpack_packer *mp_pck, char *line, int len,
return 0;
}
-static inline int process_pack(struct flb_in_serial_config *ctx,
+static inline int process_pack(msgpack_packer *mp_pck,
+ struct flb_in_serial_config *ctx,
char *pack, size_t size)
{
size_t off = 0;
@@ -75,13 +76... |
Only use the encoding attribute for MathML annotation-xml elements
Extremely minor optimization. The encoding attribute only matters
when parsing fragments with a context element that is a MathML
annotation-xml. | @@ -501,7 +501,8 @@ error:
}
// Encoding.
- if (RSTRING_LEN(tag_name) == 14
+ if (ctx_ns == GUMBO_NAMESPACE_MATHML
+ && RSTRING_LEN(tag_name) == 14
&& !st_strcasecmp(ctx_tag, "annotation-xml")) {
VALUE enc = rb_funcall(ctx, rb_intern_const("[]"),
1,
|
Remove recursion in data processing
There is a recursion between process_connection() ->
connection_desctructor(). This could potentially lead to infinite
recursion under some situations. Replace recursion with simple
iteration. | @@ -1073,7 +1073,6 @@ static void
process_connection(struct conn *c, int remote_ready, int local_ready)
{
again:
-
/* Read from remote end if it is ready */
if (remote_ready && io_space_len(&c->rem.io))
read_stream(&c->rem);
@@ -1103,6 +1102,7 @@ again:
(c->rem.flags & FLAG_CLOSED) ||
((c->loc.flags & FLAG_CLOSED) && !... |
features: don't define __wasm_unimplemented_simd128__
This is meant to be defined by the compiler when you pass
munimplemented-simd128. I think previously there were some functions
which were implemented in the header (as opposed to calling __builtin_*
functions) protected by this macro, so I thought you could just de... | #endif
#endif
#if defined(SIMDE_WASM_SIMD128_NATIVE)
- #if !defined(__wasm_unimplemented_simd128__)
- HEDLEY_DIAGNOSTIC_PUSH
- SIMDE_DIAGNOSTIC_DISABLE_RESERVED_ID_MACRO_
- #define __wasm_unimplemented_simd128__
- HEDLEY_DIAGNOSTIC_POP
- #endif
#include <wasm_simd128.h>
#endif
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.