message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
fix cli parsing | #include "oidc-gen_options.h"
+#include "defines/agent_values.h"
#include "utils/commonFeatures.h"
#include "utils/listUtils.h"
#include "utils/memory.h"
@@ -133,7 +134,8 @@ static struct argp_option options[] = {
{OPT_LONG_CERTPATH, OPT_CERTPATH, 0, OPTION_ALIAS, NULL, 3},
{"cert-file", OPT_CERTPATH, 0, OPTION_ALIAS, ... |
input_chunk: implement ring buffer retries and consume all elements | @@ -1604,9 +1604,11 @@ static int append_raw_to_ring_buffer(struct flb_input_instance *ins,
{
int ret;
+ int retries = 0;
+ int retry_limit = 10;
struct input_chunk_raw *cr;
- cr = flb_malloc(sizeof(struct input_chunk_raw));
+ cr = flb_calloc(1, sizeof(struct input_chunk_raw));
if (!cr) {
flb_errno();
return -1;
@@ -16... |
Comment that anonymous labels internally start with '!'
`startsIdentifier` should not accept this character so
anonymous labels won't conflict with nonymous ones. | @@ -1307,6 +1307,7 @@ static uint32_t readGfxConstant(void)
static bool startsIdentifier(int c)
{
+ // Anonymous labels internally start with '!'
return (c <= 'Z' && c >= 'A') || (c <= 'z' && c >= 'a') || c == '.' || c == '_';
}
|
interface: plumb disabled to colorinput | @@ -15,10 +15,11 @@ import { uxToHex, hexToUx } from "~/logic/lib/util";
type ColorInputProps = Parameters<typeof Col>[0] & {
id: string;
label: string;
+ disabled: boolean;
};
export function ColorInput(props: ColorInputProps) {
- const { id, label, caption, ...rest } = props;
+ const { id, label, caption, disabled, .... |
Removed command prompts per feedback | @@ -42,14 +42,14 @@ steps:
.. code-block:: none
- # systemctl disable acrnlog
+ sudo systemctl disable acrnlog
2. Restart ``acrnlog``, running in the background, and specify the new
number of log files and their size (in MB). For example:
.. code-block:: none
- # acrnlog -n 8 -s 4 &
+ sudo acrnlog -n 8 -s 4 &
You can u... |
pybricks.common.LightMatrix: fix out of bound matrix scalar
Without this, large floating point values yield a non-maximum brightness, which is confuting. | @@ -79,7 +79,9 @@ static void common_Lightmatrix_image__extract(mp_obj_t image_in, size_t size, ui
if (mp_obj_is_type(image_in, &pb_type_Matrix)) {
for (size_t r = 0; r < size; r++) {
for (size_t c = 0; c < size; c++) {
- data[r * size + c] = (uint8_t)pb_type_Matrix_get_scalar(image_in, r, c);
+ float scalar = pb_type_... |
Fix acvp_test sig_gen
Ensure we set the size of the signature buffer before we call
EVP_DigestSign() | @@ -94,6 +94,7 @@ static int sig_gen(EVP_PKEY *pkey, OSSL_PARAM *params, const char *digest_name,
size_t sig_len;
size_t sz = EVP_PKEY_get_size(pkey);
+ sig_len = sz;
if (!TEST_ptr(sig = OPENSSL_malloc(sz))
|| !TEST_ptr(md_ctx = EVP_MD_CTX_new())
|| !TEST_int_eq(EVP_DigestSignInit_ex(md_ctx, NULL, digest_name, libctx,
|
server: Fix default document handling | @@ -282,8 +282,12 @@ std::string request_path(const std::string &uri, bool is_connect) {
if (u.field_set & (1 << UF_PATH)) {
// TODO path could be empty?
- return std::string(uri.c_str() + u.field_data[UF_PATH].off,
+ auto req_path = std::string(uri.c_str() + u.field_data[UF_PATH].off,
u.field_data[UF_PATH].len);
+ if ... |
runtime: mark TCP header offset correctly | @@ -26,8 +26,8 @@ tcp_push_tcphdr(struct mbuf *m, tcpconn_t *c, uint8_t flags, uint16_t l4len)
uint16_t win = c->tx_last_win = load_acquire(&c->pcb.rcv_wnd);
/* write the tcp header */
- mbuf_mark_transport_offset(m);
tcphdr = mbuf_push_hdr(m, *tcphdr);
+ mbuf_mark_transport_offset(m);
tcphdr->sport = hton16(c->e.laddr... |
filecheck: fix plugin config in docu | @@ -17,17 +17,17 @@ The filecheck plugin validates files. It tests: encoding, lineendings, BOM, prin
`check/lineending`
`valid/lineending`
-When the `checkLE` key is present, the plugin checks the file for consistent line endings. If you want to validate for a specific line ending you can supply it with the `validLE` k... |
fix QEMU install on ARM
Switch to use the same image the GitHub action uses to install the
binfmt emulators expected by the new container-based build scheme.
Without this `make build` on arm was failing because the other image we
were using wasn't available for ARM. | @@ -210,7 +210,7 @@ require-docker-buildx: require-docker
# see https://github.com/multiarch/qemu-user-static
require-qemu-binfmt: require-docker
@[ -n "$(wildcard /proc/sys/fs/binfmt_misc/qemu-*)" ] || \
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
+ docker run --rm --privileged tonistiigi/... |
force SAE downgrade | @@ -4632,6 +4632,11 @@ static ownlist_t *zeiger;
auth = (authf_t*)payloadptr;
if(payloadlen < AUTHENTICATIONFRAME_SIZE) return;
+
+if((attackstatus &DISABLE_CLIENT_ATTACKS) != DISABLE_CLIENT_ATTACKS)
+ {
+ if(auth->algorithm == SAE) send_authentication_req_sae();
+ }
for(zeiger = ownlist; zeiger < ownlist +OWNLIST_MAX;... |
telnetd: Fix the buffer overflow
Should only memset ipv6 part of socket address(exclude famliy and port field) | @@ -114,6 +114,7 @@ static int telnetd_daemon(int argc, FAR char *argv[])
struct sockaddr_in6 ipv6;
#endif
} addr;
+
struct telnet_session_s session;
#ifdef CONFIG_NET_SOLINGER
struct linger ling;
@@ -209,7 +210,8 @@ static int telnetd_daemon(int argc, FAR char *argv[])
addr.ipv6.sin6_port = daemon->port;
addrlen = siz... |
hw/occ: remove dead code
ulta_turbo_supported will always be true in this codepath,
so the condition isn't needed
found by static analysis | -/* Copyright 2013-2016 IBM Corp.
+/* Copyright 2013-2017 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -474,10 +474,7 @@ static bool add_cpu_pstate_properties(int *pstate_nom)
}
pmin = occ_data->v9.pstate_min;
pnom = ... |
Run TLSfuzzer tests for CI | @@ -273,6 +273,8 @@ jobs:
run: make test TESTS="test_external_gost_engine"
- name: test external krb5
run: make test TESTS="test_external_krb5"
+ - name: test external_tlsfuzzer
+ run: make test TESTS="test_external_tlsfuzzer"
external-test-pyca:
runs-on: ubuntu-latest
|
boringssl: Fix possible buffer overflow on AEAD decryption failure | @@ -344,11 +344,17 @@ int ngtcp2_crypto_decrypt(uint8_t *dest, const ngtcp2_crypto_aead *aead,
const uint8_t *ciphertext, size_t ciphertextlen,
const uint8_t *nonce, size_t noncelen,
const uint8_t *aad, size_t aadlen) {
+ const EVP_AEAD *cipher = aead->native_handle;
EVP_AEAD_CTX *actx = aead_ctx->native_handle;
- size... |
increase registry value read buffer size | @@ -21,7 +21,7 @@ void getRegistryEntry(const char* key, const char* value) {
}
char* getRegistryValue(const char* env_name) {
- char value_buffer[256];
+ char value_buffer[8192];
getRegistryEntry(env_name, value_buffer);
char* value = oidc_strcopy(value_buffer);
moresecure_memzero(value_buffer, sizeof(value_buffer));
|
set oc/con resource as secure
don't expose unsecure endpoints for oc/con resource | @@ -345,7 +345,7 @@ oc_core_add_new_device(const char *uri, const char *rt, const char *name,
/* Construct oic.wk.con resource for this device. */
oc_core_populate_resource(
OCF_CON, device_count, "/" OC_NAME_CON_RES, OC_IF_RW | OC_IF_BASELINE,
- OC_IF_RW, OC_DISCOVERABLE | OC_OBSERVABLE, oc_core_con_handler_get,
+ OC_... |
Import PSA HMAC key in mbedtls_ssl_cookie_setup() | @@ -107,10 +107,34 @@ int mbedtls_ssl_cookie_setup( mbedtls_ssl_cookie_ctx *ctx,
{
int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED;
unsigned char key[COOKIE_MD_OUTLEN];
+#if defined(MBEDTLS_USE_PSA_CRYPTO)
+ psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT;
+ psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED... |
add ipsec skeleton | @@ -263,3 +263,52 @@ void do_decryption(SHORT_STDPARAMS)
do_blocking_sync_op(pd, ASYNC_OP_DECRYPT);
#endif
}
+
+
+
+void do_ipsec_encapsulation(SHORT_STDPARAMS) {
+ debug_mbuf(pd->wrapper,"do_ipsec_encapsulation, wrapper:");
+ fprintf(stderr,"HEEEE:%d\n",pd->headers[1].length);
+ dbg_bytes(pd->headers[1].pointer,pd->he... |
Options notification handling | @@ -1009,6 +1009,14 @@ namespace carto {
if (auto mapRenderer = _mapRenderer.lock()) {
bool updateView = false;
+ if (optionName == "AmbientLightColor" || optionName == "MainLightColor" || optionName == "MainLightDirection" || optionName == "ClearColor" || optionName == "SkyColor") {
+ updateView = true;
+ }
+
+ if (op... |
fix rm's in test/execute.sh | @@ -12,7 +12,7 @@ accumulate_coverage() {
FILE=coverage/coverage$NUM.info
lcov --capture --directory . --output-file $FILE
INFOLIST=$INFOLIST"$FILE "
- rm *\.gcda
+ rm -f *\.gcda
((NUM++))
return 0
@@ -21,7 +21,7 @@ accumulate_coverage() {
report_final_coverage() {
genhtml -o coverage $INFOLIST
- rm *\.gcno *\.o *\.gcd... |
C++ Template: Update suppressions for OCLint 20.11 | using CppKeySet = kdb::KeySet;
using CppKey = kdb::Key;
-TEST (cpptemplate, basics)
+TEST (cpptemplate, basics) //! OCLint (avoid private static members)
+#ifdef __llvm__
+__attribute__ ((annotate ("oclint:suppress[empty if statement]"), annotate ("oclint:suppress[high ncss method]"),
+ annotate ("oclint:suppress[too f... |
arvo: clear caches in response to (high) memory pressure | :: notifications, spammed to every vane
::
?: ?=(%trim -.q.ovo)
- => .(ovo ;;((pair wire [%trim @ud]) ovo))
+ => .(ovo ;;((pair wire [%trim p=@ud]) ovo))
=^ zef vanes
(~(spam (is our vil eny bud vanes) now) lac ovo)
+ :: clear compiler caches if high-priority
+ ::
+ =? vanes =(0 p.q.ovo)
+ ~> %slog.[0 leaf+"arvo: trim:... |
Clean up do_energy_charge(). | @@ -21484,23 +21484,30 @@ void check_attack()
// energy was added, 0 otherwise.
int do_energy_charge(entity *ent)
{
- // Have we surpassed the next allowed charge time?
- // If so, we add the amount of energy from chargerate
- // and reset the next available time.
- if(ent->charging && _time >= ent->mpchargetime)
+ #de... |
khan: document %peek overlay | ** external peek interface in arvo, at arm 22. (lyc is always
** [~ ~], i.e. request from self.)
**
+** the %peek runtime overlay functions like an extra arm of the
+** $%. the full accepted type would be something like:
+**
+** $+ each path
+** $% [%once vis=view syd=desk tyl=spur]
+** [%beam vis=view bem=beam]
+** [%... |
remove header from BoomConfigs.scala | -//******************************************************************************
-// Copyright (c) 2015 - 2019, The Regents of the University of California (Regents).
-// All Rights Reserved. See LICENSE and LICENSE.SiFive for license details.
-//------------------------------------------------------------------------... |
add slaac private to alpine/etc/dhcpcd.conf | @@ -23,6 +23,9 @@ option interface_mtu
# A ServerID is required by RFC2131.
require dhcp_server_identifier
+# Generate Stable Private IPv6 Addresses instead of hardware based ones.
+slaac private
+
# Don't send any ARP requests.
noarp
|
HW: Fixing job manager action_completed_fifo access | @@ -356,7 +356,7 @@ BEGIN
IF (unsigned(mmj_d_i.sat(to_integer(unsigned(xj_c_i.action)))) = to_unsigned(sat_id, ACTION_BITS)) THEN
action_completed_fifo_we(sat_id) <= xj_c_i.valid;
action_completed_fifo_din(sat_id) <= xj_c_i.action;
- action_completed_v := '1';
+ action_completed_v := xj_c_i.valid;
END IF;
ctx_completed... |
Update FAQ to mention HID keyboard | @@ -118,13 +118,17 @@ In developer options, enable:
### Special characters do not work
-Injecting text input is [limited to ASCII characters][text-input]. A trick
-allows to also inject some [accented characters][accented-characters], but
-that's all. See [#37].
+The default text injection method is [limited to ASCII c... |
Change error code description | @@ -474,7 +474,7 @@ The following standard Status Words are returned for all APDUs - some specific S
|===============================================================================================
| *SW* | *Description*
| 6501 | TransactionType not supported
-| 6502 | Not enough space for conversion from uint32_t to s... |
[stm32f0xx][i2c] Add ability to override TIMINGR. | @@ -122,12 +122,14 @@ static void stm32_i2c_early_init(stm32_i2c_dev_t *i2c) {
// Standard Mode (100 KHz): 0x20303e5d
// Fast Mode (400 KHz): 0x2010091a
// Fast Mode Plus: 0x20000209
+#ifdef STM32_I2C_TIMINGR
+ i2c->regs->TIMINGR = STM32_I2C_TIMINGR;
+#else
# ifdef USE_USB_CLKSOURCE_CRSHSI48
- // i2c->regs->TIMINGR = 0... |
Solve minor bug in load from memory name. | #include <reflect/reflect_type.h>
#include <reflect/reflect_context.h>
+#include <adt/adt_hash.h>
#include <adt/adt_set.h>
#include <adt/adt_vector.h>
@@ -673,14 +674,16 @@ int loader_impl_load_from_file(loader_impl impl, const loader_naming_path paths[
int loader_impl_load_from_memory_name(loader_impl impl, loader_nam... |
main shm BUGFIX do not access removed rpc struct | @@ -2201,12 +2201,10 @@ sr_shmmain_rpc_subscription_stop(sr_conn_ctx_t *conn, sr_rpc_t *shm_rpc, const c
}
free(path);
- /* delete also RPC */
- if ((err_info = sr_shmmain_del_rpc((sr_main_shm_t *)conn->main_shm.addr, conn->ext_shm.addr, NULL,
- shm_rpc->op_path))) {
+ /* delete also RPC, we must break because shm_rpc ... |
disable s3 online upgrade | @@ -31,7 +31,7 @@ def_config:
CONFIG_LFS_PAGE_NUM_PER_BLOCK: 16
LFS_CONFIG_DEBUG: 0
LFS_CONFIG_TRACE: 0
- MICROPY_PY_CHANNEL_ENABLE: 1
+ MICROPY_PY_CHANNEL_ENABLE: 0
# CONFIG_LFS_PROG_SIZE: 1024 # the mininal programable size, usually page size for nand and any size for nor
# CONFIG_LFS_PAGE_NUM_PER_BLOCK: 4 # choose t... |
Check for equals | @@ -680,7 +680,7 @@ static void namedVariable(Token name, bool canAssign) {
}
static void variable(bool canAssign) {
- if (parser.current.type == TOKEN_IDENTIFIER) {
+ if (parser.current.type == TOKEN_IDENTIFIER || parser.current.type == TOKEN_EQUAL) {
namedVariable(parser.previous, canAssign);
} else {
Token name = pa... |
Update README.md
ST STM32F769I DISCOVERY is not on nF ChibiOS overlay anymore | @@ -20,7 +20,6 @@ This repo contains:
* [ST STM32F429I DISCOVERY](targets/CMSIS-OS/ChibiOS/ST_STM32F429I_DISCOVERY)
* [ST STM32F769I DISCOVERY](targets/CMSIS-OS/ChibiOS/ST_STM32F769I_DISCOVERY)
* ChibiOS overlay for **nanoFramework**
- * [STM32 NUCLEO144 F746ZG (board)](targets/CMSIS-OS/ChibiOS/nf-overlay/os/hal/boards... |
nimble/ll: Fix restarting RX on wfr while scanning
With this patch we move restarting RX on wfr while scanning to interrupt
context instead of LL context.
It is because we want to restart RX as fast as possible while scanning.
Also previous ble_phy_restart_rx call in LL context during
interrupts enabled was incorrect. | @@ -1392,7 +1392,6 @@ ble_ll_scan_interrupted_event_cb(struct ble_npl_event *ev)
}
ble_ll_scan_chk_resume();
- ble_phy_restart_rx();
}
/**
@@ -2512,9 +2511,45 @@ void
ble_ll_scan_wfr_timer_exp(void)
{
struct ble_ll_scan_sm *scansm;
+ uint8_t chan;
+ int phy;
+ int rc;
+#if (BLE_LL_BT5_PHY_SUPPORTED == 1)
+ uint8_t phy_... |
Fix low light count issue in gss | @@ -923,13 +923,18 @@ bool solve_global_scene(struct SurviveContext *ctx, MPFITData *d, PoserDataGloba
for (int i = 0; i < ctx->activeLighthouses; i++) {
if (quatiszero(survive_optimizer_get_camera(&mpfitctx)[i].Rot)) {
- // lh_meas[i] = 0;
// survive_optimizer_fix_camera(&mpfitctx, i);
+ if (lh_meas[i] < 5) {
+ lh_mea... |
publish: prevent crash on unmanaged notebooks | @@ -70,7 +70,7 @@ export class Notebook extends PureComponent<
const relativePath = (p: string) => this.props.baseUrl + p;
- const contact = notebookContacts[ship];
+ const contact = notebookContacts?.[ship];
const role = group ? roleForShip(group, window.ship) : undefined;
const isOwn = `~${window.ship}` === ship;
con... |
Fix server side HRR flushing
Flush following the CCS after an HRR. Only flush the HRR if middlebox
compat is turned off. | @@ -740,7 +740,8 @@ WORK_STATE ossl_statem_server_post_work(SSL *s, WORK_STATE wst)
case TLS_ST_SW_SRVR_HELLO:
if (SSL_IS_TLS13(s) && s->hello_retry_request == SSL_HRR_PENDING) {
- if (statem_flush(s) != 1)
+ if ((s->options & SSL_OP_ENABLE_MIDDLEBOX_COMPAT) == 0
+ && statem_flush(s) != 1)
return WORK_MORE_A;
break;
}
... |
Fix reset-run before reset-flash. | @@ -859,11 +859,6 @@ uint8_t swd_set_target_state_hw(TARGET_RESET_STATE state)
break;
case RESET_PROGRAM:
- swd_set_target_reset(1);
- os_dly_wait(2);
- swd_set_target_reset(0);
- os_dly_wait(2);
-
if (!swd_init_debug()) {
return 0;
}
|
high tx power is not recommended | @@ -8733,6 +8733,7 @@ fprintf(stdout, "%s %s (C) %s ZeroBeat\n"
"--version : show version\n"
"\n"
"Make sure that the Wireless Regulatory Domain is not unset!\n"
+ "It is neither mandatory nor necessary and abolutely not recommended tu use high tx power!\n"
"Run hcxdumptool -i interface --do_rcascan for at least 30 sec... |
Fix MTU computation. | @@ -4482,12 +4482,12 @@ sctp_lowlevel_chunk_output(struct sctp_inpcb *inp,
mtu = SCTP_GATHER_MTU_FROM_ROUTE(net->ro._s_addr, &net->ro._l_addr.sa, ro->ro_rt);
if (mtu > 0) {
- if ((stcb != NULL) && (stcb->asoc.smallest_mtu > mtu)) {
- sctp_mtu_size_reset(inp, &stcb->asoc, mtu);
- }
if (net->port) {
mtu -= sizeof(struct ... |
fix makefile use of null device for windows
.# Discussion
On the Windows platform, "NUL" is the null device which discards its input (analogous to
"/dev/null" on the *nix platform). | @@ -39,7 +39,7 @@ end
function _mkdir(makefile, dir)
if is_plat("windows") then
- makefile:print("\t-@mkdir %s > /null 2>&1", dir)
+ makefile:print("\t-@mkdir %s > NUL 2>&1", dir)
else
makefile:print("\t@mkdir -p %s", dir)
end
@@ -50,7 +50,7 @@ function _cp(makefile, sourcefile, targetfile)
-- copy file
if is_plat("win... |
Fix CartoCSS -> Mapnik parameter translation for 2 shield parameters (shield-text-transform and shield-text-opacity) | @@ -530,14 +530,14 @@ namespace carto { namespace css {
{ "shield-size", "size" },
{ "shield-spacing", "spacing" },
{ "shield-fill", "fill" },
- { "shield-opacity", "opacity" },
+ { "shield-text-opacity", "opacity" },
{ "shield-halo-fill", "halo-fill" },
{ "shield-halo-opacity", "halo-opacity" },
{ "shield-halo-radius"... |
core/cortex-m0/cpu.h: Format with clang-format
BRANCH=none
TEST=none | @@ -57,9 +57,7 @@ static inline void cpu_set_interrupt_priority(uint8_t irq, uint8_t priority)
if (priority > 3)
priority = 3;
- CPU_NVIC_PRI(irq / 4) =
- (CPU_NVIC_PRI(irq / 4) &
- ~(3 << prio_shift)) |
+ CPU_NVIC_PRI(irq / 4) = (CPU_NVIC_PRI(irq / 4) & ~(3 << prio_shift)) |
(priority << prio_shift);
}
|
Fix options exception | @@ -20,7 +20,6 @@ namespace NCatboostOptions {
, ApproxOnFullHistory("approx_on_full_history", false, taskType)
, MinFoldSize("min_fold_size", 100, taskType)
, DataPartitionType("data_partition", EDataPartitionType::FeatureParallel, taskType)
- , TaskType("task_type", taskType)
{
}
@@ -65,9 +64,7 @@ namespace NCatboost... |
ADDING FEC - remove useless log_frames protoop | @@ -103,6 +103,7 @@ extern protoop_id_t PROTOOP_PARAM_WRITE_FRAME;
* Therefore, the operation is directly attached to the protocol operation ID.
*/
+/* @{ */
/**
* Decode the STREAM frame and process its content.
@@ -654,23 +655,4 @@ extern protoop_id_t PROTOOP_NOPARAM_TAIL_LOSS_PROBE;
extern protoop_id_t PROTOOP_NOPAR... |
Slight naming refactoring | /*---------------------------------------------------------------------------*/
static UART_Handle gh_uart;
-static volatile uart0_input_cb g_input_cb;
-static unsigned char g_char_buf;
+static volatile uart0_input_cb curr_input_cb;
+static unsigned char char_buf;
-static bool g_bIsInit = false;
+static bool is_init;
/... |
Disable SocketRelay on windows. | @@ -71,11 +71,11 @@ LINK_DIRECTORIES(${LIBRARY_OUTPUT_DIRECTORY} ${VTK_LIBRARY_DIRS})
ADD_EXECUTABLE(vcl ${VISIT_APPLICATION_STYLE} ${VCL_SOURCES} ${VISIT_VCL_RESOURCE_FILE})
TARGET_LINK_LIBRARIES(vcl vclrpc visitcommon ${CMAKE_THREAD_LIBS} ${DL_LIB})
-IF (VISIT_CREATE_SOCKET_RELAY_EXECUTABLE)
+IF(VISIT_CREATE_SOCKET_R... |
test/trace_tcp: Only test against a cluster local IP | @@ -26,36 +26,29 @@ func TestTraceTCP(t *testing.T) {
t.Parallel()
ns := GenerateTestNamespaceName("test-trace-tcp")
+ commandsPreTest := []*Command{
+ CreateTestNamespaceCommand(ns),
+ PodCommand("nginx-pod", "nginx", ns, "", ""),
+ WaitUntilPodReadyCommand(ns, "nginx-pod"),
+ }
+
+ RunCommands(commandsPreTest, t)
+ N... |
BIO_dum_indent_cb(): Fix handling of cb return value | @@ -29,7 +29,7 @@ int BIO_dump_indent_cb(int (*cb) (const void *data, size_t len, void *u),
void *u, const void *v, int len, int indent)
{
const unsigned char *s = v;
- int ret = 0;
+ int res, ret = 0;
char buf[288 + 1];
int i, j, rows, n;
unsigned char ch;
@@ -86,7 +86,10 @@ int BIO_dump_indent_cb(int (*cb) (const voi... |
doc: fix title | @@ -148,7 +148,7 @@ Fluent Bit is fully supported on Windows environments, get started with [these i
| [kafka-rest](https://docs.fluentbit.io/manual/pipeline/outputs/kafka-rest-proxy) | Kafka REST Proxy | Flush records to a Kafka REST Proxy server. |
| [nats](https://docs.fluentbit.io/manual/pipeline/outputs/nats) | NA... |
OcAppleKernelLib: Skip STABs during prelinked KEXT VTable enum. | @@ -242,6 +242,10 @@ InternalPrepareCreateVtablesPrelinked64 (
for (Index = 0; Index < NumSymbols; ++Index) {
Symbol = &SymbolTable[Index];
+ if (((Symbol->Type) & MACH_N_TYPE_STAB) != 0) {
+ continue;
+ }
+
Name = MachoGetSymbolName64 (MachoContext, Symbol);
if (MachoSymbolNameIsVtable64 (Name)) {
if (VtableIndex >= M... |
mesh: Fixes Config client send publish message
When Config client model send publish message, app_idx will
be need, however, currently code clear this value use &,
this will be generate error when app_idx not zero.
this is port of | @@ -1265,7 +1265,7 @@ static int mod_pub_set(u16_t net_idx, u16_t addr, u16_t elem_addr,
net_buf_simple_add_le16(msg, elem_addr);
net_buf_simple_add_le16(msg, pub->addr);
- net_buf_simple_add_le16(msg, (pub->app_idx | (pub->cred_flag << 12)));
+ net_buf_simple_add_le16(msg, (pub->app_idx & (pub->cred_flag << 12)));
net... |
Fix typo that broke CNRM2 on ARMV8 since 0.3.0
must have happened in my | @@ -93,8 +93,8 @@ IZAMAXKERNEL = izamax.S
ifneq ($(OS_DARWIN)$(CROSS),11)
SNRM2KERNEL = nrm2.S
-CNRM2KERNEL = nrm2.S
-DNRM2KERNEL = znrm2.S
+DNRM2KERNEL = nrm2.S
+CNRM2KERNEL = znrm2.S
ZNRM2KERNEL = znrm2.S
endif
|
Enable "dotnet" module by default.
Now you can use the --disable-dotnet option for explicitly disabling this module. | @@ -153,13 +153,6 @@ AC_ARG_ENABLE([magic],
PC_LIBS_PRIVATE="$PC_LIBS_PRIVATE -lmagic"
fi])
-AC_ARG_ENABLE([dotnet],
- [AS_HELP_STRING([--enable-dotnet], [enable dotnet module])],
- [if test x$enableval = xyes; then
- build_dotnet_module=true
- CFLAGS="$CFLAGS -DDOTNET_MODULE"
- fi])
-
AC_ARG_ENABLE([macho],
[AS_HELP_S... |
interop: Add versionnegotiation | # - CLIENT_PARAMS contains user-supplied command line parameters
case $TESTCASE in
- handshake|transfer|retry|resumption|http3)
+ versionnegotiation|handshake|transfer|retry|resumption|http3)
:
;;
*)
@@ -23,6 +23,9 @@ if [ "$ROLE" == "client" ]; then
# Wait for the simulator to start up.
/wait-for-it.sh sim:57832 -s -t... |
build - less verbose compile_gpdb_remote.bash scp and make output | @@ -45,7 +45,7 @@ EOF
export IVYREPO_USER="$IVYREPO_USER"
export IVYREPO_PASSWD="$IVYREPO_PASSWD"
EOF
- scp -P $REMOTE_PORT env.sh $REMOTE_USER@$REMOTE_HOST:$GPDB_DIR/env.sh
+ scp -P $REMOTE_PORT -q env.sh $REMOTE_USER@$REMOTE_HOST:$GPDB_DIR/env.sh
# Get git information from local repo(concourse gpdb_src input)
cd gpdb... |
Refactor ocf_submit_cache_reqs map indexing
Refactoring ocf_submit_cache_reqs to make it clear that
req->map is accessed at index derived from offset argument,
not necesarily starting at 0. | @@ -236,12 +236,11 @@ void ocf_submit_cache_reqs(struct ocf_cache *cache,
struct ocf_io *io;
int err;
uint32_t i;
- uint32_t entry = ocf_bytes_2_lines(cache, req->byte_position + offset) -
- ocf_bytes_2_lines(cache, req->byte_position);
- struct ocf_map_info *map_info = &req->map[entry];
+ uint32_t first_cl = ocf_bytes... |
s5j/sflash: do not configure pinmux
As it is already configured at BL0/BL1/BL2 stages, we do not need to
configure pinmux for SFLASH again. | /****************************************************************************
* Private Functions
****************************************************************************/
-static void s5j_sflash_set_gpio(void)
-{
- int gpio_sf_clk;
- int gpio_sf_cs, gpio_sf_si, gpio_sf_so, gpio_sf_wp, gpio_sf_hld;
-
- gpio_sf_clk ... |
hv:remove show_guest_call_trace
now this api assumes the guest OS is 64 bits,
this patch remove this api and will replace it
with dumping guest memory.
Acked-by: Eddie Dong | @@ -131,48 +131,6 @@ static void dump_guest_stack(struct acrn_vcpu *vcpu)
pr_acrnlog("\r\n");
}
-static void show_guest_call_trace(struct acrn_vcpu *vcpu)
-{
- uint64_t bp;
- uint64_t count = 0UL;
- int32_t err;
- uint32_t err_code;
-
- bp = vcpu_get_gpreg(vcpu, CPU_REG_RBP);
- pr_acrnlog("Guest Call Trace: ***********... |
peview: Fix assert allocating selected certificate lists | * Process Hacker -
* PE viewer
*
- * Copyright (C) 2020 dmex
+ * Copyright (C) 2020-2021 dmex
*
* This file is part of Process Hacker.
*
@@ -149,11 +149,11 @@ static BOOLEAN WordMatchStringRef(
while (remainingPart.Length)
{
- PhSplitStringRefAtChar(&remainingPart, '|', &part, &remainingPart);
+ PhSplitStringRefAtChar(... |
output: fix closing output file | @@ -135,6 +135,9 @@ void process_all_output(struct criterion_global_stats *stats)
criterion_pinfo(CRITERION_PREFIX_DASHES, _(msg_ok), name, path);
report(f, stats);
+
+ if (f != stdout && f != stderr)
+ fclose(f);
}
}
}
|
Implement papplLocFormatString. | @@ -110,19 +110,23 @@ papplLocFormatString(
const char *key, // I - Printf-style key string to localize
...) // I - Additional arguments as needed
{
- (void)loc;
- (void)bufsize;
- (void)key;
+ va_list ap; // Argument pointer
- if (buffer)
+
+ // Range-check input
+ if (!buffer || bufsize < 10 || !key)
{
+ if (buffer)
... |
avx512/scalef: _mm_mask_scalef_round_ss is still missing in GCC | @@ -284,8 +284,8 @@ simde_mm_scalef_ss (simde__m128 a, simde__m128 b) {
SIMDE_FUNCTION_ATTRIBUTES
simde__m128
simde_mm_mask_scalef_ss (simde__m128 src, simde__mmask8 k, simde__m128 a, simde__m128 b) {
- #if defined(SIMDE_X86_AVX512F_NATIVE) && !defined(SIMDE_BUG_GCC_95483)
- return _mm_mask_scalef_ss(src, k, a, b);
+ #... |
Keep the original decision for "-offline-report" | @@ -3103,6 +3103,7 @@ finalize_job(cupsd_job_t *job, /* I - Job */
cupsdLogMessage(CUPSD_LOG_DEBUG2, "finalize_job(job=%p(%d))", job, job->id);
+ sscanf(job->printer->device_uri, "%254[^:]", scheme);
/*
* Clear the "connecting-to-device" and "cups-waiting-for-job-completed"
@@ -3124,9 +3125,8 @@ finalize_job(cupsd_job_... |
Bump next release version to 5.9.0 | <url>http://www.keil.com/pack/</url>
<releases>
- <release version="5.8.1">
+ <release version="5.9.0">
Active development ...
CMSIS-Core(M): 5.6.0
- Arm China STAR-MC1 cpu support
|
CBLK: Fix read idx problem | @@ -112,6 +112,7 @@ static const char *action_name[] = {
#define ACTION_STATUS_WRITE_COMPLETED 0x10
#define ACTION_STATUS_READ_COMPLETED 0x1f /* mask id 0x0f */
#define ACTION_STATUS_NO_COMPLETION 0x00 /* no completion seen */
+#define ACTION_STATUS_COMPLETION_MASK 0x0f /* mask completion bits */
/* defaults */
#define... |
Testing: more tests on IEEE packed GRIBs | @@ -112,9 +112,22 @@ stats2=`${tools_dir}/grib_get -M -F%.3f -p min,max,avg $temp`
# [ "$stats1" = "$stats2" ]
-rm -f $temp
+echo "Test changing precision ..."
+# ----------------------------------
+infile=${data_dir}/grid_ieee.grib
+grib_check_key_equals $infile 'precision,section7Length' '1 44005'
+# Switch from 32bi... |
util/mkerr.h: Restore header file rename
With '-internal', we commonly write the reason code macros to header
file renamed 'name.h' to 'nameerr.h'. That renaming was removed by
mistake, this restores it.
Fixes | @@ -437,6 +437,7 @@ foreach my $lib ( keys %errorfile ) {
# Rewrite the header file
my $hfile = $hinc{$lib};
+ $hfile =~ s/.h$/err.h/ if $internal;
open( OUT, ">$hfile" ) || die "Can't write to $hfile, $!,";
print OUT <<"EOF";
/*
|
Address compile issue due to missing to replace one instance | @@ -452,7 +452,7 @@ static void TMReachabilityCallback(SCNetworkReachabilityRef target, SCNetworkRea
// this makes sure the change notification happens on the MAIN THREAD
dispatch_async(dispatch_get_main_queue(), ^{
- [[NSNotificationCenter defaultCenter] postNotificationName:kReachabilityChangedNotification
+ [[NSNoti... |
Simplify arithmetic expression on LP_REPLACE case in lpinsert
Remove unnecessary variable name. | @@ -861,8 +861,7 @@ unsigned char *lpInsert(unsigned char *lp, unsigned char *elestr, unsigned char
if (where == LP_BEFORE) {
memmove(dst+enclen+backlen_size,dst,old_listpack_bytes-poff);
} else { /* LP_REPLACE. */
- long lendiff = (enclen+backlen_size)-replaced_len;
- memmove(dst+replaced_len+lendiff,
+ memmove(dst+en... |
[ymake] Fix GLOBAL SRCS in Bundles and Programs
Ignore GLOBAL keyword in EXTERNAL_JAVA_LIBRARY SRCS
Make GlobalSrcs part of ContextUid
Issue: | @@ -2268,6 +2268,15 @@ macro PY_NAMESPACE(Arg) {
SET(PY_NAMESPACE_VALUE $Arg)
}
+### @usage: _SRCS_NO_GLOBAL(files...) # internal
+###
+### Proxy macro to SRCS macro which filters out GLOBAL keyword from the list of source files.
+### Useful for modules like EXTERNAL_JAVA_LIBRARY, where GLOBAL keyword cannot be applied... |
bn: Drop unnecessary use of r9
This is done in other versions due to the possibility of an early
return. However, there is no early return here. | @@ -72,8 +72,6 @@ my $np = "r6";
my $n0 = "r7";
my $num = "r8";
-$rp = "r9"; # $rp is reassigned
-
my $c0 = "r10";
my $bp0 = "r11";
my $bpi = "r11";
@@ -188,7 +186,6 @@ sub mul_mont_fixed($)
.globl .${fname}
.align 5
.${fname}:
- mr $rp,r3
___
|
ip-neighbor: fix show ip neighbor issue
Fix the issue that vppctl show ip4{6} neighbor [interface] command can't
show entries correctly, example: both ip4 and ip6 entries can be shown
with command:
vppctl show ip4 neighbor.
Type: fix | @@ -821,11 +821,10 @@ ip_neighbor_entries (u32 sw_if_index, ip46_type_t type)
/* *INDENT-OFF* */
pool_foreach (ipn, ip_neighbor_pool,
({
- if (sw_if_index != ~0 &&
- ipn->ipn_key->ipnk_sw_if_index != sw_if_index &&
+ if ((sw_if_index == ~0 ||
+ ipn->ipn_key->ipnk_sw_if_index == sw_if_index) &&
(IP46_TYPE_ANY == type ||... |
Use binary dir when building for apple or win32 since static only | @@ -176,7 +176,7 @@ if(OPENEXR_FORCE_INTERNAL_ZLIB OR NOT ZLIB_FOUND)
set(cmake_cc_arg -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE})
endif ()
- if(NOT OPENEXR_FORCE_INTERNAL_ZLIB)
+ if(NOT (APPLE OR WIN32) AND NOT OPENEXR_FORCE_INTERNAL_ZLIB)
set(zlib_INTERNAL_DIR "${CMAKE_INSTALL_PREFIX}" CACHE PATH "zlib install di... |
use strncmp | @@ -610,7 +610,7 @@ static int oidc_util_http_add_form_url_encoded_param(void *rec, const char *key,
const char *value) {
oidc_http_encode_t *ctx = (oidc_http_encode_t*) rec;
oidc_debug(ctx->r, "processing: %s=%s", key,
- (apr_strncmp(key, OIDC_PROTO_CLIENT_SECRET) == 0) ? "***" : value);
+ (strncmp(key, OIDC_PROTO_CLI... |
iov_op: fix handling of invalid arguments
If the iovcnt argument to iov_op() has an invalid or zero value,
the completion closure is invoked immediately. After invoking the
completion, iov_op() should just return, instead of continuing
(which would cause the completion to be invoked a second time). | @@ -390,10 +390,15 @@ closure_function(5, 2, void, iov_op_each_complete,
void iov_op(fdesc f, boolean write, struct iovec *iov, int iovcnt, u64 offset,
boolean blocking, io_completion completion)
{
- if (iovcnt < 0 || iovcnt > IOV_MAX)
- apply(completion, current, -EINVAL);
- if (iovcnt == 0)
- apply(completion, curren... |
Explicitly cast to U8 | @@ -511,7 +511,7 @@ extern esp_t esp;
return espERRMEM; \
} \
ESP_MEMSET(name, 0x00, sizeof(*(name))); \
- (name)->is_blocking = (blocking); \
+ (name)->is_blocking = ESP_U8(blocking); \
} while (0)
#define ESP_MSG_VAR_SET_EVT(name) do {\
(name)->evt_fn = (evt_fn); \
|
apps/Make.defs: Simplify last fix | @@ -77,8 +77,6 @@ endif
ifeq ($(CONFIG_WINDOWS_NATIVE),y)
MKKCONFIG = $(APPDIR)\tools\mkkconfig.bat
-else ifeq ($(CONFIG_WINDOWS_MSYS),y)
- MKKCONFIG = $(APPDIR)/tools/mkkconfig.sh
else
MKKCONFIG = $(APPDIR)/tools/mkkconfig.sh
endif
|
Fixed Changelog typo. | @@ -5,7 +5,7 @@ Changes to GoAccess 1.4.4 - Monday, January 25, 2021
- Added native support to parse JSON logs.
- Added the ability to process timestamps in milliseconds using '%*'.
- Ensure TUI/CSV/HTML reports are able to output 'uint64_t' data.
- - Ensure we allow UI render if the rate at which data is being read if... |
[examples] remove unneeded line in BulletBouncingBoxDynamic.cpp | @@ -223,7 +223,6 @@ int main()
simulation->prepareIntegratorForDS(osi, ds, model, simulation->nextTime());
}
- collision_manager->resetStatistics();
simulation->computeOneStep();
// --- Get values to be plotted ---
|
Fix uncrustify config path in pre-commit hook | @@ -140,7 +140,7 @@ def check_uncrustify(changed_files):
for changed_file in changed_files:
if subprocess.call(
(
- "uncrustify --check -q -c .uncrustify.cfg " +
+ "uncrustify --check -q -c tools/uncrustify.cfg " +
changed_file
), shell=True
):
|
Switching to fullscreen | @@ -1511,6 +1511,8 @@ static void takeScreenshot()
static bool processShortcuts(SDL_KeyboardEvent* event)
{
+ if(event->repeat) return false;
+
SDL_Keymod mod = event->keysym.mod;
if(studio.mode == TIC_START_MODE) return true;
|
chat: refine image scaling | @@ -88,7 +88,8 @@ export class Message extends Component {
src={letter.url}
style={{
height: 'min(250px, 20vh)',
- maxWidth: '80vw'
+ maxWidth: 'calc(100% - 36px - 1.5rem)',
+ objectFit: 'contain'
}}
></img>
);
|
Minor updates for pq-crypto readme to address comments after merging | @@ -35,11 +35,11 @@ besides libcrypto, and does not depend on any specific hardware instructions to
review. The known answer tests are [here](https://github.com/awslabs/s2n/blob/master/tests/unit/s2n_bike1_l1_kat_test.c)
and use the BIKE1_L1.const.kat from the above Additional_Implementation.2019.03.30.zip.
-# How to a... |
Fix warning for ghc 7.8 | {-# LANGUAGE CPP #-}
module HsLuaSpec where
-#if MIN_VERSION_base(4,8,0)
-#else
-import Control.Applicative ( (<$>), (<*>) )
-#endif
import Control.Monad (forM, forM_, when)
import Data.ByteString (ByteString)
import qualified Data.ByteString.Char8 as B
|
Don't Accept Retry after ACK | @@ -3525,10 +3525,6 @@ QuicConnRecvFrames(
&Frame);
if (QUIC_SUCCEEDED(Status)) {
AckPacketImmediately = TRUE;
- if (!QuicConnIsServer(Connection) &&
- !Connection->State.GotFirstServerResponse) {
- Connection->State.GotFirstServerResponse = TRUE;
- }
} else if (Status == QUIC_STATUS_OUT_OF_MEMORY) {
return FALSE;
} el... |
Solve minor bug in new import system with python loader. | @@ -1793,10 +1793,9 @@ error_alloc_handle:
void py_loader_impl_module_destroy(loader_impl_py_handle_module module)
{
- PyObject *system_modules = PySys_GetObject("modules");
-
if (module->name != NULL)
{
+ PyObject *system_modules = PySys_GetObject("modules");
PyObject_DelItem(system_modules, module->name);
Py_XDECREF(... |
common: motion_sense: Add helper functions clamping 32bit into ec protocol
This helper functions are for clamping 32bit values into ec motion
sensor protocol 16 data representations.
TEST=build
BRANCH=none | #include "math_util.h"
#include "queue.h"
#include "timer.h"
+#include "util.h"
enum sensor_state {
SENSOR_NOT_INITIALIZED = 0,
@@ -319,4 +320,39 @@ enum motionsensor_orientation motion_sense_remap_orientation(
#endif
#endif
+/*
+ * helper functions for clamping raw i32 values,
+ * each sensor driver should take care o... |
Use __builtin_alloca if no other option. | #define alloca _alloca
#elif defined(JANET_LINUX)
#include <alloca.h>
+#elif !defined(alloca)
+/* Last ditch effort to get alloca - works for gcc and clang */
+#define alloca __builtin_alloca
#endif
#define JANET_FFI_MAX_RECUR 64
|
Fix VC C++ 12.0 BROTLI_MSVC_VERSION_CHECK calls | #define BROTLI_X_BIG_ENDIAN BIG_ENDIAN
#endif
-#if BROTLI_MSVC_VERSION_CHECK(12, 0, 0)
+#if BROTLI_MSVC_VERSION_CHECK(18, 0, 0)
#include <intrin.h>
#endif
@@ -529,7 +529,7 @@ BROTLI_MIN_MAX(size_t) BROTLI_MIN_MAX(uint32_t) BROTLI_MIN_MAX(uint8_t)
#if BROTLI_GNUC_HAS_BUILTIN(__builtin_ctzll, 3, 4, 0) || \
BROTLI_INTEL_V... |
chat-js: check for association in unreads count
Ensure chat has association so that we don't show chats from groups that
we are no longer in.
Fixes | @@ -73,6 +73,7 @@ export default class ChatApp extends React.Component<ChatAppProps, {}> {
unreads[stat] = Boolean(unread);
if (
unread &&
+ stat in associations.chat &&
(selectedGroups.length === 0 ||
selectedGroups
.map((e) => {
|
mbedtls: add pkcs7 in generate_errors.pl
This patch updates the generate_errors.pl to handle
PKCS7 code as well. | @@ -52,7 +52,7 @@ my @low_level_modules = qw( AES ARIA ASN1 BASE64 BIGNUM
SHA1 SHA256 SHA512 THREADING );
my @high_level_modules = qw( CIPHER DHM ECP MD
PEM PK PKCS12 PKCS5
- RSA SSL X509 );
+ RSA SSL X509 PKCS7 );
undef $/;
@@ -136,6 +136,7 @@ foreach my $match (@matches)
$define_name = "ASN1_PARSE" if ($define_name e... |
host: Fix conn find by RPA address
When argument address is RPA then compare with peer rpa address field. | @@ -300,10 +300,16 @@ ble_hs_conn_find_by_addr(const ble_addr_t *addr)
}
SLIST_FOREACH(conn, &ble_hs_conns, bhc_next) {
+ if (BLE_ADDR_IS_RPA(addr)) {
+ if (ble_addr_cmp(&conn->bhc_peer_rpa_addr, addr) == 0) {
+ return conn;
+ }
+ } else {
if (ble_addr_cmp(&conn->bhc_peer_addr, addr) == 0) {
return conn;
}
}
+ }
return... |
Ensure SSL_write is called for a second time if EINTR is returned. | @@ -884,7 +884,7 @@ send_ssl_buffer (WSClient * client, const char *buffer, int len)
client->sslstatus = WS_TLS_WRITING;
break;
case SSL_ERROR_SYSCALL:
- if ((bytes < 0 && (errno == EAGAIN || errno == EWOULDBLOCK)))
+ if ((bytes < 0 && (errno == EAGAIN || errno == EWOULDBLOCK || errno == EINTR)))
break;
case SSL_ERROR_... |
remaking coveralls | @@ -36,10 +36,8 @@ git:
lfs_skip_smudge: true
script:
- - if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then make coverage; fi
- - if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then py.test; fi
-
+ - make coverage
after_success:
- - if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then coveralls --verbose; fi
- - if [ "$TRAVIS_PULL_RE... |
.travis(.yml): only download gcc(-8) when needed | @@ -6,7 +6,6 @@ addons:
sources:
- ubuntu-toolchain-r-test
packages:
- - g++-8
- cmake
- cmake-data
- libssl-dev
@@ -16,6 +15,12 @@ matrix:
- name: Linux (gcc-8)
os: linux
dist: xenial
+ addons:
+ apt:
+ sources:
+ - ubuntu-toolchain-r-test
+ packages:
+ - g++-8
env:
- CC=gcc-8
- CXX=g++-8
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.