message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Change strip html tag to false in HTML connector | "stage_specification": {
"striphtml": {
"_value_": "",
- "_attribute_value": "true"
+ "_attribute_value": "false"
},
"includefilter": {
"_value_": "",
|
esp32c3-devkit: Remove not needed -msmall-data-limit=0 compilation flag | @@ -37,8 +37,6 @@ endif
ARCHSCRIPT += $(BOARD_DIR)$(DELIM)scripts$(DELIM)esp32c3_rom.ld
-ARCHCFLAGS += -msmall-data-limit=0
-ARCHCXXFLAGS += -msmall-data-limit=0
ARCHPICFLAGS = -fpic
CFLAGS := $(ARCHCFLAGS) $(ARCHOPTIMIZATION) $(ARCHCPUFLAGS) $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS) -pipe
|
Fix misspelled resumption_label for CHARSET_EBCDIC
The resumption_label variable when CHARSET_EBCDIC was enabled, was misspelled.
Instead of evaluating to 'res binder' as expected, it evaluated to 'red binder'.
CLA: trivial | @@ -1446,7 +1446,7 @@ int tls_psk_do_binder(SSL *s, const EVP_MD *md, const unsigned char *msgstart,
unsigned char finishedkey[EVP_MAX_MD_SIZE], tmpbinder[EVP_MAX_MD_SIZE];
unsigned char *early_secret;
#ifdef CHARSET_EBCDIC
- static const unsigned char resumption_label[] = { 0x72, 0x65, 0x64, 0x20, 0x62, 0x69, 0x6E, 0x... |
Remove useless bounds check.
We already do it when packing the value. | @@ -39,7 +39,6 @@ generic putbe8 = {buf, v; -> putbe(buf, (v : uint64), 1)}
const putbe = {buf, val, n
var k
- iassert(buf.len >= n, "buffer too small")
for var i = 0; i < n; i++
k = val >> (8*(n-i-1))
buf[i] = (k & 0xff: byte)
@@ -48,7 +47,6 @@ const putbe = {buf, val, n
}
const putle = {buf, val, n
- iassert(buf.len ... |
baseboard/guybrush/baseboard.c: Format with clang-format
BRANCH=none
TEST=none | @@ -145,8 +145,6 @@ const struct i2c_port_t i2c_ports[] = {
};
const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports);
-
-
const struct charger_config_t chg_chips[] = {
{
.i2c_port = I2C_PORT_CHARGER,
@@ -389,8 +387,7 @@ DECLARE_HOOK(HOOK_INIT, setup_mux, HOOK_PRIO_INIT_I2C);
int board_set_active_charge_port(int por... |
os; add a #ifdef for asserting on duplicate free. | * @defgroup OSMempool Memory Pools
* @{
*/
+/*
+#define OS_CHECK_DUP_FREE 1
+*/
#define OS_MEMPOOL_TRUE_BLOCK_SIZE(bsize) OS_ALIGN(bsize, OS_ALIGNMENT)
@@ -202,6 +205,11 @@ os_memblock_put(struct os_mempool *mp, void *block_addr)
return OS_INVALID_PARM;
}
+#ifdef OS_CHECK_DUP_FREE
+ SLIST_FOREACH(block, mp, mb_next) {
... |
HV: Use the CPUID(0x16) to obtain tsc_hz when zero tsc_hz is returned by 0x15 cpuid
Sometimes the CPUID(0x15) still returns the zero tsc frequency. In such case
the base frequency of cpuid(0x16) is used as tsc frequency.
Acked-by: Eddie Dong | @@ -278,10 +278,12 @@ static uint64_t pit_calibrate_tsc(uint32_t cal_ms_arg)
}
/*
- * Determine TSC frequency via CPUID 0x15
+ * Determine TSC frequency via CPUID 0x15 and 0x16.
*/
static uint64_t native_calibrate_tsc(void)
{
+ uint64_t tsc_hz = 0;
+
if (boot_cpu_data.cpuid_level >= 0x15U) {
uint32_t eax_denominator, e... |
iokernel: fix completion overflow q bug | @@ -150,6 +150,7 @@ static int drain_overflow_queue(struct proc *p, int n)
while (p->nr_overflows > 0 && i < n) {
if (!rx_send_to_runtime(p, i, RX_NET_COMPLETE,
p->overflow_queue[--p->nr_overflows])) {
+ p->nr_overflows++;
break;
}
i++;
|
Minor fix in UBSan. | @@ -157,11 +157,11 @@ static int64_t get_signed_val(FAR struct type_descriptor *type,
{
if (is_inline_int(type))
{
- unsigned extra_bits = sizeof(int64_t) * 8 - type_bit_width(type);
- uint64_t mask = (1llu << extra_bits) - 1;
+ unsigned bits = type_bit_width(type);
+ uint64_t mask = (1llu << bits) - 1;
uint64_t ret = ... |
set PICO_TINYUSB_PATH for when building from within tinyusb without pico-sdk/tinyusb submodule | @@ -20,6 +20,10 @@ if (NOT TARGET _rp2040_family_inclusion_marker)
set(TOP "../../..")
get_filename_component(TOP "${TOP}" REALPATH)
+ if (NOT PICO_TINYUSB_PATH)
+ set(PICO_TINYUSB_PATH ${TOP})
+ endif()
+
# tinyusb_additions will hold our extra settings libraries
add_library(tinyusb_additions INTERFACE)
|
Update high level interrupt command | @@ -31,13 +31,13 @@ Using these symbols is done by creating an assembly file (suffix .S) and definin
rsr a0, EXCSAVE_5
rfi 5
- For a real-life example, see the :component_file:`{IDF_TARGET_PATH_NAME}/dport_panic_highint_hdl.S` file; the panic handler interrupt is implemented there.
+For a real-life example, see the :co... |
YAMBi: Move dependency checking code into function | include (LibAddMacros)
-if (DEPENDENCY_PHASE)
+# ~~~
+# This functions checks if the dependencies for the YAMBi plugin are available.
+#
+# If they are, the function sets the variable `FOUND_DEPENDENCIES` to `TRUE`. The function then also sets:
+#
+# - BISON_YAMBI_OUTPUT_SOURCE to the path of the source files generated... |
build: add env variable to pass extra cmake args
If VPP_EXTRA_CMAKE_ARGS is set, its content will be
appended to the vpp cmake command cli
Type: feature | @@ -42,6 +42,10 @@ ifneq ($(wildcard /opt/rh/devtoolset-7/enable),)
vpp_cmake_args += -DCMAKE_PROGRAM_PATH:PATH="/opt/rh/devtoolset-7/root/bin"
endif
+ifneq ($(VPP_EXTRA_CMAKE_ARGS),)
+vpp_cmake_args += $(VPP_EXTRA_CMAKE_ARGS)
+endif
+
vpp_configure_depend += external-install
vpp_configure = \
cd $(PACKAGE_BUILD_DIR) &... |
publish: loosen validator | :: revisions are numbered by the revision count
:: starting at one
[@ %1 @ ~]
- ?> ?=([* * ~] contents.p.ip)
+ ?> ?=([* * *] contents.p.ip)
?> ?=(%text -.i.contents.p.ip)
- ?> ?=(%text -.i.t.contents.p.ip)
ip
:: container for comments
[@ %2 ~]
|
Update Console.ex port calls
Updates the port calls to work properly.
Closes issue | #
defmodule Console do
+ @compile {:no_warn_undefined, [AVMPort]}
+
def puts(device \\ :stdio, item) do
pid =
case :erlang.whereis(device) do
:undefined ->
case device do
:stdio ->
- new_pid = :erlang.open_port({:spawn, "console"}, [])
+ new_pid = AVMPort.open({:spawn, "console"}, [])
:erlang.register(:stdio, new_pid)
... |
Clean up JNI references/arrays in lovrPlatformGetBundlePath; | @@ -297,20 +297,24 @@ size_t lovrPlatformGetBundlePath(char* buffer, size_t size, const char** root) {
jclass class = (*state.jni)->GetObjectClass(state.jni, activity);
jmethodID getPackageCodePath = (*state.jni)->GetMethodID(state.jni, class, "getPackageCodePath", "()Ljava/lang/String;");
if (!getPackageCodePath) {
+ ... |
zephyr/emul/emul_flash.c: Format with clang-format
BRANCH=none
TEST=none | @@ -98,7 +98,6 @@ static int cros_flash_emul_get_status(const struct device *dev, uint8_t *sr1,
return -EINVAL;
}
-
static const struct cros_flash_driver_api emul_cros_flash_driver_api = {
.init = cros_flash_emul_init,
.physical_write = cros_flash_emul_write,
@@ -119,16 +118,14 @@ static int flash_emul_init(const struc... |
io-glib binding: add supression rules for glib 2.42 | ...
fun:g_main_loop_run
}
+{
+ glib context global state
+ Memcheck:Leak
+ match-leak-kinds: reachable
+ fun:*alloc
+ ...
+ fun:g_slice_alloc
+ fun:g_slist_prepend
+ fun:g_once_init_enter
+ fun:g_main_context_new
+}
|
out_forward: initialize the array with `{0}` not `{}`.
Namely C99 requires programmers to use `{0}` to initialize an array.
The syntax `{}` is only for C++ and causes an compilation error on
VC++ (GCC accepts it, though). | @@ -218,7 +218,7 @@ static int secure_forward_ping(struct flb_upstream_conn *u_conn,
static int secure_forward_pong(char *buf, int buf_size)
{
int ret;
- char msg[32] = {};
+ char msg[32] = {0};
size_t off = 0;
msgpack_unpacked result;
msgpack_object root;
|
update config-sites | @@ -54,7 +54,7 @@ VISIT_OPTION_DEFAULT(VISIT_MESAGL_DIR ${VISITHOME}/mesagl/17.1.9/${VISITARCH})
##
## Python
##
-VISIT_OPTION_DEFAULT(VISIT_PYTHON_DIR ${VISITHOME}/python/2.7.11/${VISITARCH})
+VISIT_OPTION_DEFAULT(VISIT_PYTHON_DIR ${VISITHOME}/python/2.7.14/${VISITARCH})
##
## Qt
@@ -139,7 +139,7 @@ VISIT_OPTION_DEFAU... |
Added reference to drop protocol | @@ -55,7 +55,8 @@ ALTER PROTOCOL <varname>name</varname> OWNER TO <varname>newowner</varname></cod
<section>
<title>See Also</title>
<p><codeph><xref href="CREATE_EXTERNAL_TABLE.xml#topic1"/></codeph>, <codeph><xref
- href="CREATE_PROTOCOL.xml#topic1"/></codeph></p>
+ href="CREATE_PROTOCOL.xml#topic1"/></codeph>, <code... |
Windows: Add m2w64-ntldd-git for debugging | @@ -48,13 +48,11 @@ install:
m2-sed ^
m2-gawk ^
m2-diffutils ^
- m2-perl
+ m2-perl ^
+ m2w64-ntldd-git
- # get the latest version of cmake
- - cmd: conda install -c conda-forge cmake
-
- # other deps
- - cmd: conda install libnetcdf
+ # get deps
+ - cmd: conda install -c conda-forge cmake libnetcdf
#-------------------... |
shelter/README: fix typos | @@ -78,7 +78,7 @@ shelter help
--version, -v print the version
```
-2. remote attestation for sgx-ra & sgx-la
+2. remote attestation for sgx-ra, sgx-la, and sgx-ecdsa
```shell
OPTIONS:
@@ -98,8 +98,8 @@ For example:
shelter remoteattestation --ip 127.0.0.1 --port 1234
shelter remoteattestation --tls wolfssl
shelter rem... |
Use byteread_vlen in logreader.c | @@ -130,25 +130,22 @@ static int binlog_convert_event(bytestream * s, void * ptr)
while (ret == 0 && bytestream_remain(s) > 0) {
- uint64_t len_read = 0;
- ret |= byteread_vint(s, &len_read);
-
- size_t len = (size_t)len_read;
- if (len != len_read) {
- ret = -1;
- break;
- }
+ size_t len = 0;
+ ret = byteread_vlen(s, ... |
[Kernel] Serial output is blocked by a spinlock | @@ -62,8 +62,17 @@ void serial_puts_int(char* str, bool print_prefix) {
char prefix[32] = {0};
snprintf(prefix, sizeof(prefix), "Cpu[%d],Clk[%d]: ", cpu_id(), tick_count());
+ // Hold a lock, so we don't get output intermixed from other cores
+ // Note that the lock is held before our two 'inner' calls, rather than wit... |
ikev2: fix non-matching SPIs during rekey
Type:fix | @@ -1541,6 +1541,8 @@ ikev2_add_tunnel_from_main (ikev2_add_ipsec_tunnel_args_t * a)
vec_add1 (sas_in, a->remote_sa_id);
if (a->is_rekey)
{
+ ipsec_tun_protect_del (sw_if_index, NULL);
+
/* replace local SA immediately */
ipsec_sa_unlock_id (a->local_sa_id);
|
haskell-cabal-sandboxing: exclude cpp bindings from haskell build (not required), remove nonexistent plugin | @@ -139,8 +139,8 @@ before_script:
CMAKE_OPT+=("-DCOMMON_FLAGS=-Werror")
fi
# use a minimal configuration for the haskell bindings to give it enough time to compile dependencies
- - if [[ $HASKELL == ON ]]; then bindings="cpp;haskell"; fi
- - if [[ $HASKELL == ON ]]; then plugins="resolver_fm_hpu_b;dump;ini;dini;sync;e... |
update to latest download path for valgrind | @@ -21,7 +21,7 @@ License: GPL
URL: http://www.valgrind.org/
DocDir: %{OHPC_PUB}/doc/contrib
Group: %{PROJ_NAME}/dev-tools
-Source: http://valgrind.org/downloads/%{pname}-%{version}.tar.bz2
+Source: https://sourceware.org/pub/%{pname}/%{pname}-%{version}.tar.bz2
Source1: OHPC_macros
%ifarch aarch64
Patch1: revVEX3352.p... |
fix ngtcp2.h: '@function' command should be used in a comment attached to a function declaration [-Werror,-Wdocumentation] | @@ -736,7 +736,7 @@ typedef ssize_t (*ngtcp2_send_client_handshake)(ngtcp2_conn *conn,
void *user_data);
/**
- * @function
+ * @functypedef
*
* :type:`ngtcp2_recv_client_initial` is invoked when Client Initial
* packet is received. An server application must implement this
|
berknip: update thermal setting
This patch update thermal setting.
BRANCH=zork
TEST=verify thermal setting as thermal team request. | @@ -426,11 +426,11 @@ BUILD_ASSERT(ARRAY_SIZE(temp_sensors) == TEMP_SENSOR_COUNT);
const static struct ec_thermal_config thermal_thermistor_soc = {
.temp_host = {
- [EC_TEMP_THRESH_HIGH] = C_TO_K(70),
- [EC_TEMP_THRESH_HALT] = C_TO_K(73),
+ [EC_TEMP_THRESH_HIGH] = C_TO_K(62),
+ [EC_TEMP_THRESH_HALT] = C_TO_K(66),
},
.t... |
tools: funclatency use atomic_increment | @@ -143,10 +143,8 @@ int trace_func_return(struct pt_regs *ctx)
u32 lat = 0;
u32 cnt = 1;
- u64 *sum = avg.lookup(&lat);
- if (sum) lock_xadd(sum, delta);
- u64 *cnts = avg.lookup(&cnt);
- if (cnts) lock_xadd(cnts, 1);
+ avg.atomic_increment(lat, delta);
+ avg.atomic_increment(cnt);
FACTOR
|
Enable ARM64 build in build-all.bat | @@ -26,3 +26,8 @@ call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\Too
msbuild %SOLUTION% /target:zlib,sqlite-uwp,win10-cs,win10-dll /p:BuildProjectReferences=true /maxcpucount:%MAXCPUCOUNT% /p:Configuration=Debug /p:Platform=ARM
msbuild %SOLUTION% /target:zlib,sqlite-uwp,win10-cs,win10-dll ... |
fix pair-based CPU metrics on GPU | @@ -63,14 +63,17 @@ namespace NCatboostCuda {
TVector<TVector<TCompetitor>> CreateQueryCompetitors(ui32 localQid) const {
const auto queriesGrouping = dynamic_cast<const TQueriesGrouping*>(Grouping);
CB_ENSURE(queriesGrouping && queriesGrouping->GetFlatQueryPairs().size());
- const ui32 firstPair = GetQid(localQid);
- ... |
Documentation rectifications
PR <https://github.com/Genymobile/scrcpy/pull/1151> | @@ -189,7 +189,7 @@ The client uses 4 threads:
recording,
- the **controller** thread, sending _control messages_ to the server,
- the **receiver** thread (managed by the controller), receiving _device
- messages_ from the client.
+ messages_ from the server.
In addition, another thread can be started if necessary to h... |
add numcellused for rx cell. | @@ -167,6 +167,10 @@ void uinject_task_cb(void) {
numCellsUsed = msf_getPreviousNumCellsUsed(CELLTYPE_TX);
pkt->payload[0] = numCellsUsed;
+ packetfunctions_reserveHeaderSize(pkt,sizeof(uint8_t));
+ numCellsUsed = msf_getPreviousNumCellsUsed(CELLTYPE_RX);
+ pkt->payload[0] = numCellsUsed;
+
packetfunctions_reserveHeade... |
Update OfflineStorage_SQLite.cpp
Fix security warnings by converting both arguments to size_t using function cast | @@ -864,7 +864,7 @@ namespace MAT_NS_BEGIN {
}
pageCountStmt.getRow(pageCount);
pageCountStmt.reset();
- return pageCount * m_pageSize;
+ return size_t(pageCount) * size_t(m_pageSize);
}
size_t OfflineStorage_SQLite::GetRecordCountUnsafe(EventLatency latency) const
|
Added Android 10 to the list of Android codenames. | @@ -121,7 +121,9 @@ static const char *os[][2] = {
static char *
get_real_android (const char *droid)
{
- if (strstr (droid, "9"))
+ if (strstr (droid, "10"))
+ return alloc_string ("Android 10");
+ else if (strstr (droid, "9"))
return alloc_string ("Pie 9");
else if (strstr (droid, "8.1"))
return alloc_string ("Oreo 8... |
fix inconsistent flen check in rsa_pk1 and rsa_oaep
Fixes | @@ -161,7 +161,7 @@ int RSA_padding_check_PKCS1_type_2(unsigned char *to, int tlen,
unsigned int good, found_zero_byte, mask;
int zero_index = 0, msg_index, mlen = -1;
- if (tlen < 0 || flen < 0)
+ if (tlen <= 0 || flen <= 0)
return -1;
/*
|
Add length checks to avoid pointer wraparound (Issue | @@ -1239,7 +1239,11 @@ asn1_get_integer(
if (length > sizeof(int))
{
+ if (length > (unsigned)(bufend - *buffer))
+ *buffer = bufend;
+ else
(*buffer) += length;
+
return (0);
}
@@ -1275,7 +1279,11 @@ asn1_get_length(unsigned char **buffer, /* IO - Pointer in buffer */
if ((count = length & 127) > sizeof(unsigned))
{
+... |
Use the real var for ixml | @@ -44,7 +44,7 @@ set_target_properties (ixml_shared PROPERTIES
OUTPUT_NAME ixml
EXPORT_NAME IXML::Shared
VERSION ${IXML_SOMAJOR}
- SOVERSION ${IXML_VERSION_MAJOR}
+ SOVERSION ${IXML_SOVERSION}
PUBLIC_HEADER "${IXML_HEADERS}"
)
|
Fixup paths for WSL invoking Tiled.exe | @@ -4,6 +4,7 @@ import argparse
import sys
import pathlib
import subprocess
+import os
def command_tiled2csv(args):
@@ -26,7 +27,25 @@ def command_tiled2csv(args):
print(f'Refusing to write to {args.out} (File exists!)')
elif tool_path is not None:
print(f"Writing {args.out}")
- subprocess.run(f"\"{tool_path}\" --expor... |
sdio_slave: update version read from CCCR to 2.0 | @@ -533,6 +533,7 @@ static inline esp_err_t sdio_slave_hw_init(sdio_slave_config_t *config)
SLC.rx_dscr_conf.slc0_token_no_replace = 1;
HINF.cfg_data1.highspeed_enable = 1;
+ HINF.cfg_data1.sdio_ver = 0x232;
switch(config->timing) {
case SDIO_SLAVE_TIMING_PSEND_PSAMPLE:
|
added BROADCOM authentication header | @@ -679,10 +679,22 @@ struct radius_frame_t
uint16_t length;
uint8_t authenticator[RADIUS_AUTHENTICATOR_LENGTH];
uint8_t attrs[RADIUS_MAX_SIZE -RADIUS_HEADER_LENGTH];
+ uint8_t data[1];
} __attribute__ ((packed));
-typedef struct radius_frame radius_t;
+typedef struct radius_frame_t radius_t;
#define RADIUS_SIZE offset... |
Suggest --record-format instead of -F on error
The short option -F has been deprecated by
On error, suggest the long
option --record-format instead. | @@ -962,7 +962,8 @@ scrcpy_parse_args(struct scrcpy_cli_args *args, int argc, char *argv[]) {
if (opts->record_filename && !opts->record_format) {
opts->record_format = guess_record_format(opts->record_filename);
if (!opts->record_format) {
- LOGE("No format specified for \"%s\" (try with -F mkv)",
+ LOGE("No format sp... |
example: Update on the README file to change from ESP32-S3-Addax-1 to ESP32-S3-DevKitC-1 | @@ -23,7 +23,7 @@ Some development boards use an addressable LED instead of a regular one. These d
| ESP32-C3-DevKitM-1 | Addressable | GPIO8 |
| ESP32-S2-DevKitM-1 | Addressable | GPIO18 |
| ESP32-S2-Saola-1 | Addressable | GPIO18 |
-| ESP32-S3-Addax-1 | Addressable | GPIO48 |
+| ESP32-S3-DevKitC-1 | Addressable | GPI... |
Update options window with option to enable image coherency checks | @@ -1245,6 +1245,7 @@ typedef enum _PHP_OPTIONS_INDEX
PHP_OPTIONS_INDEX_ENABLE_NETWORK_RESOLVE,
PHP_OPTIONS_INDEX_ENABLE_NETWORK_RESOLVE_DOH,
PHP_OPTIONS_INDEX_ENABLE_INSTANT_TOOLTIPS,
+ PHP_OPTIONS_INDEX_ENABLE_IMAGE_COHERENCY,
PHP_OPTIONS_INDEX_ENABLE_STAGE2,
PHP_OPTIONS_INDEX_ENABLE_SERVICE_STAGE2,
PHP_OPTIONS_INDEX... |
added md5 sum for the new FGT PSL_DCP | export PSL_DCP_TYPE="UNKNOWN"
PSL_MD5=`md5sum $1 | cut -d " " -f 1`
-if [ "$PSL_MD5" = "d051aa72ce08b60fd587a74a5146bf88" ]; then
+if [ "$PSL_MD5" = "d051aa72ce08b60fd587a74a5146bf88" ] ||
+ [ "$PSL_MD5" = "5bf24f90f52e6959e8e6082245a2ac3c" ]; then
export PSL_DCP_TYPE="FGT"
elif [ "$PSL_MD5" = "1b1526c0d3cb61815c886f83... |
refactors %jael identity, moves structures to +state-relative | == ::
$= own :: vault (vein)
$: yen/(set duct) :: trackers
+ :: XX use this ::
+ our=ship ::
+ :: XX reconcile with .dns.eth ::
+ tuf=(list turf) :: domains
+ fak/_| :: fake keys
lyf/life :: version
jaw/(map life ring) :: private keys
== ::
++ state-absolute :: absolute urbit
$: pry/(map ship (map ship safe)) :: promis... |
BugID:26071177:[umesh2] add rssi threshold config | #define __UMESH_H__
#include <string.h>
#include <stdint.h>
+
+#define UMESH_RSSI_THRESHOLD (-80)
/* User Input: 0x0100 ~ 0x01FF */
#define UMESH_ERR_BASE (-0x1000)
/*peer err */
#define UMESH_ERR_PEER_MISSING (UMESH_ERR_BASE - 0x0101)
#define UMESH_PEER_ADD_FAILED (UMESH_ERR_BASE - 0x0102)
-#define UMESH_PEER_ADD_INPR... |
Remove an unnecessary cast in the param to BUF_MEM_grow | @@ -205,7 +205,7 @@ int asn1parse_main(int argc, char **argv)
num = 0;
for (;;) {
- if (!BUF_MEM_grow(buf, (int)num + BUFSIZ))
+ if (!BUF_MEM_grow(buf, num + BUFSIZ))
goto end;
i = BIO_read(in, &(buf->data[num]), BUFSIZ);
if (i <= 0)
|
common CHANGE if process existence check fails, assume it exists
Otherwise we can have a process that is not authorized
to check the existence of the process, it assumes it
does not exist and clears whatever connection data it
has the permission for, resulting in the other process
crashing. | @@ -1900,7 +1900,8 @@ sr_process_exists(pid_t pid)
}
if (errno != ESRCH) {
- SR_LOG_WRN("Failed to check existence of process with PID %ld (%s).", (long)pid, strerror(errno));
+ SR_LOG_INF("Failed to check existence of process with PID %ld (%s).", (long)pid, strerror(errno));
+ return 1;
}
return 0;
|
PHP: fixed segfault on initialization.
PHP SAPI can call log handler while initializing. Particularly, that happens
if there's a problem in loading some extension specified in php.ini file.
On this stage server context is empty, so now nxt_thread_log_error() is used. | @@ -38,11 +38,11 @@ static int nxt_php_startup(sapi_module_struct *sapi_module);
static int nxt_php_send_headers(sapi_headers_struct *sapi_headers);
static char *nxt_php_read_cookies(void);
static void nxt_php_register_variables(zval *track_vars_array);
-static void nxt_php_log_message(char *message
#ifdef NXT_HAVE_PHP... |
simplify pyside2-uic.py | import sys
-from subprocess import Popen, PIPE
+import subprocess as sp
cmd = ['uic', '-g', 'python'] + sys.argv[1:]
-proc = Popen(cmd, stderr=PIPE, shell=True)
-out, err = proc.communicate()
-sys.exit(proc.returncode)
+sys.exit(sp.run(cmd, stderr = sp.PIPE, shell = True).returncode)
|
Add SPDX identifier to xoroshiro.h | +/* SPDX-License-Identifier: CC0-1.0 */
/*
- * Copyright (C) 2015-2018 Micron Technology, Inc. All rights reserved.
+ * Copyright (C) 2015-2020 Micron Technology, Inc. All rights reserved.
*/
#ifndef HSE_XOROSHIRO_H
*/
static inline uint64_t
-rotl(const uint64_t x, int k)
+xoroshiro_rotl(const uint64_t x, int k)
{
retu... |
OSSL_HTTP_REQ_CTX_nbio(): fix copy&paste glitch calling BIO_should_retry(rctx-rbio) | @@ -574,7 +574,7 @@ int OSSL_HTTP_REQ_CTX_nbio(OSSL_HTTP_REQ_CTX *rctx)
if (rctx->req != NULL && !BIO_eof(rctx->req)) {
n = BIO_read(rctx->req, rctx->buf, rctx->buf_size);
if (n <= 0) {
- if (BIO_should_retry(rctx->rbio))
+ if (BIO_should_retry(rctx->req))
return -1;
ERR_raise(ERR_LIB_HTTP, HTTP_R_FAILED_READING_DATA);... |
Now outputing tests/EarthClimate in verbose mode. | @@ -10,7 +10,7 @@ def test_EarthClimate():
# Remove old log file
subprocess.run(['rm', 'solarsys.log'], cwd=cwd)
# Run vplanet
- subprocess.run(['vplanet', 'vpl.in'], cwd=cwd)
+ subprocess.run(['vplanet', 'vpl.in', '-v'], cwd=cwd)
files = os.listdir(cwd)
print (files)
|
vere: swaps out cue implementation in ivory pill boot | #include <curl/curl.h>
#include <unistd.h>
#include <uv.h>
+
#include "all.h"
#include "vere/vere.h"
+#include "ur/ur.h"
#include "ivory.h"
@@ -711,7 +713,17 @@ _king_boot_ivory(void)
}
{
- u3_noun pil = u3ke_cue(u3i_bytes(len_d, byt_y));
+ ur_dict32_t dic_u = {0};
+ u3_noun pil;
+
+ ur_dict32_grow((ur_root_t*)0, &dic_... |
Fix uninitialized value "useHeapMultiInsert"
```
>>> Using uninitialized value "useHeapMultiInsert".
4130 if (useHeapMultiInsert)
```
Also, refine the lines to make it clear. | @@ -3613,6 +3613,10 @@ CopyFrom(CopyState cstate)
{
useHeapMultiInsert = false;
}
+ else
+ {
+ useHeapMultiInsert = true;
+ }
/* Prepare to catch AFTER triggers. */
AfterTriggerBeginQuery();
@@ -3992,11 +3996,9 @@ CopyFrom(CopyState cstate)
if (useHeapMultiInsert)
{
char relstorage = RelinfoGetStorage(resultRelInfo);
-... |
req: detect a bad choice of digest early
This is a regression against 1.1.1 when an unknown digest was detected
early.
Fixes | @@ -242,6 +242,7 @@ int req_main(int argc, char **argv)
X509 *new_x509 = NULL, *CAcert = NULL;
X509_REQ *req = NULL;
EVP_CIPHER *cipher = NULL;
+ EVP_MD *md = NULL;
int ext_copy = EXT_COPY_UNSET;
BIO *addext_bio = NULL;
char *extensions = NULL;
@@ -527,7 +528,15 @@ int req_main(int argc, char **argv)
if (!add_oid_secti... |
internal/sockets.h: Ensure errno.h included when necessary | @@ -113,6 +113,11 @@ struct servent *PASCAL getservbyname(const char *, const char *);
# include <sys/select.h>
# endif
+# ifdef OPENSSL_SYS_UNIX
+# include <sys/poll.h>
+# include <errno.h>
+# endif
+
# ifndef VMS
# include <sys/ioctl.h>
# else
|
doc: fix binprot header example | @@ -537,7 +537,7 @@ Key length (2,3) : 0x0005
Extra length (4) : 0x04
Data type (5) : 0x00
Status (6,7) : 0x0000
-Total body (8-11) : 0x00000009
+Total body (8-11) : 0x0000000E
Opaque (12-15): 0x00000000
CAS (16-23): 0x0000000000000001
Extras :
|
filter_kubernetes: connect to API server using HTTP/1.1 | @@ -166,7 +166,7 @@ static int get_api_server_info(struct flb_kube *ctx,
/* Compose HTTP Client request */
c = flb_http_client(u_conn, FLB_HTTP_GET,
uri,
- NULL, 0, NULL, 0, NULL, FLB_HTTP_10);
+ NULL, 0, NULL, 0, NULL, 0);
flb_http_add_header(c, "User-Agent", 10, "Fluent-Bit", 10);
flb_http_add_header(c, "Connection",... |
Update version to 3.5.321.1 | #define MAT_VERSION_HPP
// WARNING: DO NOT MODIFY THIS FILE!
// This file has been automatically generated, manual changes will be lost.
-#define BUILD_VERSION_STR "3.5.270.1"
-#define BUILD_VERSION 3,5,270,1
+#define BUILD_VERSION_STR "3.5.321.1"
+#define BUILD_VERSION 3,5,321,1
#ifndef RESOURCE_COMPILER_INVOKED
#incl... |
CMSIS RTOS2: updated osDelayUntil longest delay limited (2^31-1) | @@ -53,7 +53,7 @@ The function \b osDelayUntil waits until an absolute time (specified in kernel \
The corner case when the kernel tick counter overflows is handled by \b osDelayUntil. Thus it is absolutely legal
to provide a value which is lower than the current tick value, i.e. returned by \ref osKernelGetTickCount. ... |
chip/stm32/flash-stm32f0.c: Format with clang-format
BRANCH=none
TEST=none | @@ -65,8 +65,7 @@ uint32_t crec_flash_physical_get_protect_flags(void)
/* Default: RW. */
int region = FLASH_REGION_RW;
- if (i >= WP_BANK_OFFSET &&
- i < WP_BANK_OFFSET + WP_BANK_COUNT)
+ if (i >= WP_BANK_OFFSET && i < WP_BANK_OFFSET + WP_BANK_COUNT)
region = FLASH_REGION_RO;
#ifdef CONFIG_ROLLBACK
if (i >= ROLLBACK_B... |
docs: Updated description of ULP FSM shift operations
This commit updates the documentation for ULP FSM LSH and RSH
operations.
Closes | @@ -281,6 +281,9 @@ The detailed description of all instructions is presented below:
**Description**
The instruction does a logical shift to left of the source register by the number of bits from another source register or a 16-bit signed value and stores the result to the destination register.
+.. note::
+ Shift opera... |
Improve exponential cone projection slightly. | @@ -293,10 +293,11 @@ static scs_int is_simple_semi_definite_cone(scs_int *s, scs_int ssize) {
static scs_float exp_newton_one_d(scs_float rho, scs_float y_hat,
scs_float z_hat, scs_float w) {
- scs_float t = MAX(w - z_hat, MAX(-z_hat, 1e-9));
- scs_float f, fp;
+ scs_float t_prev, t = MAX(w - z_hat, MAX(-z_hat, 1e-9))... |
Consolidated things as per suggestion :) | @@ -62,7 +62,7 @@ namespace blit {
const int char_size = font.char_w * height_bytes;
size_t char_off = 0;
- uint8_t fixwidth = 0;
+
for (char chr : message) {
// draw character
@@ -74,10 +74,12 @@ namespace blit {
const uint8_t* font_chr = &font.data[chr_idx * char_size];
// If this is a narrow character in fixed-width... |
sp: on grouped aggregation, just create string once in node | @@ -1492,21 +1492,7 @@ static int sp_process_data_aggr(char *buf_data, size_t buf_size,
}
else if (val.type == MSGPACK_OBJECT_STR) {
nums[key_id].type = FLB_SP_STRING;
-
- /* Check if a previous content already exists */
- if (nums[key_id].string != NULL) {
- /* If pre-existent value is different, replace */
- if (flb_... |
replaces zig with lerp | @@ -245,7 +245,7 @@ static void oper_poke_and_stun(Glyph* restrict gbuffer, Mark* restrict mbuffer,
_('W', movement) \
_('X', teleport) \
_('Y', yump) \
- _('Z', zig)
+ _('Z', lerp)
#define MOVEMENT_CASES \
'N' : case 'n' : case 'E' : case 'e' : case 'S' : case 's' : case 'W' \
@@ -747,26 +747,21 @@ BEGIN_OPERATOR(yump... |
Upgrade meson to 0.46.1 | @@ -28,7 +28,7 @@ before_install:
install:
# pwd: ~/urbit
- - pip3 install --user -I meson==0.44.1
+ - pip3 install --user -I meson==0.46.1
- git clone https://github.com/urbit/arvo
- cd ./arvo
- git checkout $(cat ../.travis/pin-arvo-commit.txt)
|
Have JSON fuzzer segfault on internal errors | @@ -441,6 +441,7 @@ class Callbacks : public wuffs_aux::DecodeJsonCallbacks {
std::string Pop(uint32_t flags) override {
m_depth--;
if (m_depth < 0) {
+ fprintf(stderr, "negative depth\n");
intentional_segfault();
}
return "";
@@ -449,7 +450,15 @@ class Callbacks : public wuffs_aux::DecodeJsonCallbacks {
void Done(wuff... |
docs; string; clarify indexOf(_,_) to be clearer | @@ -148,8 +148,9 @@ It is a runtime error if `search` is not a string.
### **indexOf**(search, start)
Returns the index of the first byte matching `search` in the string or `-1` if
-`search` was not found, starting a byte offset `start`. The start can be
-negative to count backwards from the end of the string.
+`search... |
ARMv8: use mackerel functions to read SP_EL0 reagister | #include <wakeup.h>
#include <irq.h>
#include <arch/arm/gic.h>
+#include <dev/armv8_dev.h>
void handle_user_page_fault(lvaddr_t fault_address,
arch_registers_state_t* save_area,
@@ -210,7 +211,7 @@ void handle_irq(arch_registers_state_t* save_area, uintptr_t fault_pc,
save_area->named.x1 = x1;
save_area->named.x2 = x2;... |
news: make template more merge-friendly | @@ -16,7 +16,7 @@ syntax: ", thanks to <myname>".
We are proud to release Elektra 0.8.<<VERSION>>.
-<<`scripts/git-release-stats 0.8.VERSION`>>
+<<`scripts/git-release-stats 0.8.<<VERSION>>`>>
## What is Elektra?
@@ -53,12 +53,32 @@ You can also read the news [on our website](https://www.libelektra.org/news/0.8.
We add... |
Fix the handling of invalid parameters in ASCONF chunks.
Thanks to Mark Wodrich from Google for reporting the issue in
for the userland stack. | #ifdef __FreeBSD__
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD: head/sys/netinet/sctp_asconf.c 350745 2019-08-08 08:23:27Z tuexen $");
+__FBSDID("$FreeBSD: head/sys/netinet/sctp_asconf.c 352550 2019-09-20 08:20:20Z tuexen $");
#endif
#include <netinet/sctp_os.h>
@@ -720,6 +720,7 @@ sctp_handle_asconf(struct mbuf *m, uns... |
tests CHANGE extend choice/case test | @@ -653,7 +653,8 @@ test_node_choice(void **state)
assert_int_equal(LY_SUCCESS, ly_ctx_new(NULL, LY_CTX_DISABLE_SEARCHDIRS, &ctx));
assert_non_null(mod = lys_parse_mem(ctx, "module a {namespace urn:a;prefix a;feature f;"
- "choice ch {default a:b; case a {leaf a {type string;}}leaf b {type string;}}}", LYS_IN_YANG));
+... |
Fix PhMapViewOfEntireFile flags for RS2 store apps | @@ -221,7 +221,7 @@ NTSTATUS PhMapViewOfEntireFile(
SECTION_ALL_ACCESS,
NULL,
&size,
- ReadOnly ? PAGE_EXECUTE_READ : PAGE_EXECUTE_READWRITE,
+ ReadOnly ? PAGE_READONLY : PAGE_READWRITE,
SEC_COMMIT,
FileHandle
);
@@ -244,7 +244,7 @@ NTSTATUS PhMapViewOfEntireFile(
&viewSize,
ViewShare,
0,
- ReadOnly ? PAGE_EXECUTE_READ... |
add Extended DNS Errors for NSEC3 | #include "answer.h"
#include "udbzone.h"
#include "options.h"
-#include "query.h"
#define NSEC3_RDATA_BITMAP 5
@@ -978,8 +977,11 @@ nsec3_add_nonexist_proof(struct query* query, struct answer* answer,
VERBOSITY(3, (LOG_ERR, "nsec3 hash collision for name=%s hash=%s reverse=%s",
dname_to_string(to_prove, NULL), hashbuf,... |
README: Added additional dependecies required by Arch | @@ -110,7 +110,7 @@ Prerequisites
**Arch**:
```
- $ sudo pacman -Syu riscv64-elf-gcc riscv32-elf-newlib
+ $ sudo pacman -Syu riscv64-elf-gcc riscv32-elf-newlib arm-none-eabi-newlib riscv64-elf-newlib
```
**newlib-nano**:
|
Update README.md
Fixes a minor typo that would cause the linker to complain about not finding -lFuzzer
CLA: trivial | @@ -37,7 +37,7 @@ Configure for fuzzing:
$ CC=clang ./config enable-fuzz-libfuzzer \
--with-fuzzer-include=../../svn-work/Fuzzer \
- --with-fuzzer-lib=../../svn-work/Fuzzer/libFuzzer \
+ --with-fuzzer-lib=../../svn-work/Fuzzer/libFuzzer.a \
-DPEDANTIC enable-asan enable-ubsan no-shared \
-DFUZZING_BUILD_MODE_UNSAFE_FOR... |
Tweak valgrind. | @@ -11,4 +11,4 @@ jobs:
- run: sudo apt-get install libopenblas-dev liblapack-dev valgrind
- run: make
- run: make test
- - run: valgrind test/run_tests
+ - run: valgrind --leak-check=full --show-reachable=yes --error-exitcode=1 test/run_tests
|
doc: tn13: Reword hybrid solution section | @@ -1530,30 +1530,34 @@ Use a sequencer. This will order whole operations.
\subsection{Hybrid}
-We can, of course, to combine facets of each of the previously discussed
+We can, of course, combine facets of each of the previously discussed
approaches to build a hybrid approach which combines some (or all) of them.
-The... |
pvpanic: Remove code for legacy OSes | <DriverType>KMDF</DriverType>
<DriverTargetPlatform>Desktop</DriverTargetPlatform>
</PropertyGroup>
- <PropertyGroup Label="PropertySheets" Condition="'$(PlatformToolset)'=='v141_xp'">
- <UseLegacyDDK>true</UseLegacyDDK>
- <ConfigurationType>Application</ConfigurationType>
- <GenerateManifest>false</GenerateManifest>
-... |
config_tools: add * in cpu_affinity widget first line of pcpu config
add * in cpu_affinity widget first line of pcpu config | </b-row>
<b-row class="align-items-center"
v-for="(cpu,index) in defaultVal.pcpu">
- <b-col>pCPU ID</b-col>
+ <b-col>
+ <span v-if="index===0" style="color: red; margin-left: -10px;margin-right: 4px">*</span>
+ pCPU ID
+ </b-col>
<b-col>
<b-form-select v-model="cpu.pcpu_id" :options="pcpuid_enum"></b-form-select>
</b-c... |
CHANGELOG: Document motor updates. | ## [Unreleased]
+### Added
+- Added `DriveBase.curve()` method to drive an arc segment.
+- Added `then` and `wait` arguments to `DriveBase` methods ([support#57]).
+
### Changed
- Dropped `integral_range` argument from `Control.pid()`. This setting was
ineffective and never used. When set incorrectly, the motor could g... |
Fix user activities at app startup | @@ -79,6 +79,10 @@ import UIKit
self.scene(scene, openURLContexts: connectionOptions.urlContexts)
}
+ if connectionOptions.userActivities.count > 0 {
+ self.scene(scene, continue: connectionOptions.userActivities.first!)
+ }
+
if let restorationActivity = session.stateRestorationActivity {
if let data = restorationActi... |
ELM327: Undoing erroneous log | @@ -455,7 +455,10 @@ static enum at_cmd_ids_t ICACHE_FLASH_ATTR elm_parse_at_cmd(char *cmd, uint16_t
static void ICACHE_FLASH_ATTR elm_process_at_cmd(char *cmd, uint16_t len) {
uint8_t tmp;
- os_printf("AT COMMAND: %.*s\r\n", len, cmd);
+
+ os_printf("AT COMMAND ");
+ for(int i = 0; i < len; i++) os_printf("%c", cmd[i]... |
Prevent iov leak | @@ -76,6 +76,7 @@ od_relay_start(od_relay_t *relay,
relay->on_read_arg = on_read_arg;
relay->base = base;
+ if (relay->iov == NULL)
relay->iov = machine_iov_create();
if (relay->iov == NULL)
return OD_EOOM;
|
matekf765se: enable osd | #define MPU6XXX_SPI_PORT SPI_PORT4
#define MPU6XXX_NSS PIN_E11
#define MPU6XXX_INT PIN_C13
-#define DISABLE_GYRO_CHECK
#define SENSOR_FLIP_180
#define SENSOR_ROTATE_90_CW
-#define GYRO_ID_1 0x68
-#define GYRO_ID_2 0x73
-#define GYRO_ID_3 0x78
-#define GYRO_ID_4 0x71
+#define GYRO_ID_1 0x47
// RADIO
#define SOFTSPI_NONE... |
fix load test pool in GPU multiclass | @@ -525,9 +525,9 @@ namespace NCatboostCuda {
dataProviderBuilder.SetTargetHelper(targetHelper);
}
- NCB::TTargetConverter targetConverter = NCB::MakeTargetConverter(catBoostOptions);
{
+ NCB::TTargetConverter targetConverter = NCB::MakeTargetConverter(catBoostOptions);
CATBOOST_DEBUG_LOG << "Loading features..." << En... |
do not skip empty channels if disable_ap_attacks is activated | @@ -3300,6 +3300,8 @@ while(1)
if(FD_ISSET(fd_gps, &readfds)) process_gps();
else if(FD_ISSET(fd_socket, &readfds)) process_packet();
else
+ {
+ if((attackstatus &DISABLE_AP_ATTACKS) != DISABLE_AP_ATTACKS)
{
cpa++;
if(channelscanlist[cpa] == 0) cpa = 0;
@@ -3308,8 +3310,9 @@ while(1)
errorcount++;
continue;
}
+ send_pr... |
Makefile: fix a couple of wrong variable assignments
Fix a couple of wrong assignments to D_SRCS and C_SRCS. | @@ -85,8 +85,8 @@ D_SRCS += debug/serial.c
D_SRCS += debug/uart16550.c
D_SRCS += debug/console.c
D_SRCS += debug/sbuf.c
-C_SRCS += debug/printf.c
-D_SRCS += boot/acpi.c
+D_SRCS += debug/printf.c
+C_SRCS += boot/acpi.c
C_SRCS += boot/dmar_parse.c
C_SRCS += arch/x86/ioapic.c
C_SRCS += arch/x86/intr_lapic.c
|
Packages: perl-ExtUtils-Embed added to unit-perl dependencies on CentOS. | @@ -12,9 +12,14 @@ MODULE_INSTARGS_perl= perl-install
MODULE_SOURCES_perl= unit.example-perl-app \
unit.example-perl-config
-BUILD_DEPENDS_perl= perl-devel perl-libs
+BUILD_DEPENDS_perl= perl-devel perl-libs perl-ExtUtils-Embed
BUILD_DEPENDS+= $(BUILD_DEPENDS_perl)
+define MODULE_DEFINITIONS_perl
+BuildRequires: $(BUIL... |
[core] 200 for OPTIONS /non-existent/path HTTP/1.1 (fixes
200 for OPTIONS /non-existent/path HTTP/1.1 when a module,
such as mod_webdav, has set Allow response header
x-ref:
"OPTIONS should return 2xx status for non-existent resources if Allow is set" | @@ -138,6 +138,12 @@ static handler_t http_response_physical_path_check(server *srv, connection *con)
case ENAMETOOLONG:
/* file name to be read was too long. return 404 */
case ENOENT:
+ if (con->request.http_method == HTTP_METHOD_OPTIONS
+ && NULL != http_header_response_get(con, HTTP_HEADER_OTHER, CONST_STR_LEN("All... |
Fix borderless check box (Issue | @@ -1512,7 +1512,7 @@ media_chooser(
if (driver_data->borderless)
{
- papplClientHTMLPrintf(client, " <input type=\"checkbox\" name=\"%s-borderless\" value=\"%s\"> Borderless\n", name, (!media->bottom_margin && !media->left_margin && !media->right_margin && !media->top_margin) ? "checked" : "");
+ papplClientHTMLP... |
Fix docs on inspector | @@ -78,7 +78,7 @@ class InspectorTableViewController: UITableViewController {
}
str += type+"\n\n"
}
- var doc = String(describing: dict["__doc__"] ?? "")
+ var doc = String(describing: dict["__doc__"] ?? "").replacingOccurrences(of: "\\n", with: "\n").replacingOccurrences(of: "\\'", with: "''")
if doc.hasPrefix("'") &... |
Cache and instrument ++play. | return ret;
}
+#if 0
+ static u3_noun
+ _play_loc_term(u3_noun van,
+ u3_noun loc)
+ {
+ u3_noun fop = u3kb_flop(u3k(u3h(loc)));
+ u3_noun nam = ((0 == fop) ? c3__none : u3k(u3h(fop)));
+ u3_noun lys = u3nt(u3k(u3h(u3t(loc))), u3k(u3t(u3t(loc))), u3_nul);
+ u3_noun rup = u3nc(nam, lys);
+ c3_c* pre_c = u3m_pretty(rup);... |
Fix offset calc for multi documents
Also simplify the rpc debug helper | iov.iov_len = __l; \
break; \
case 1: \
- memcpy (&__l, rpc->_name[_i].payload.sequence.bson_documents, 4); \
- __l = BSON_UINT32_FROM_LE (__l); \
iov.iov_base = (void *) &rpc->_name[_i].payload.sequence.size; \
iov.iov_len = 4; \
header->msg_len += (int32_t) iov.iov_len; \
iov.iov_base = \
(void *) rpc->_name[_i].payl... |
libhfuzz/memorycmp: allow for *cmp() functions to return negative values | @@ -25,7 +25,7 @@ static inline int HF_strcmp(const char* s1, const char* s2, uintptr_t addr) {
instrumentAddConstMem(s1, strlen(s1), /* check_if_ro= */ true);
instrumentAddConstMem(s2, strlen(s2), /* check_if_ro= */ true);
- return ((unsigned char)s1[i] - (unsigned char)s2[i]);
+ return ((int)s1[i] - (int)s2[i]);
}
st... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.