message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
klocwork error issue | @@ -199,6 +199,7 @@ DumpDebugCommand(
else {
PRINTER_SET_MSG(pPrinterCtx, ReturnCode, L"Failed to dump FW Debug logs to file (" FORMAT_STR L")\n", pDumpUserPath);
}
+ FREE_POOL_SAFE(pDumpUserPath);
}
else {
PRINTER_SET_MSG(pPrinterCtx, ReturnCode, L"Successfully dumped FW Debug logs to file (" FORMAT_STR L"). (%lu) MiB... |
Allow to *just* print key and IV of unstreamable modes when no input files | @@ -334,7 +334,7 @@ int enc_main(int argc, char **argv)
buff = app_malloc(EVP_ENCODE_LENGTH(bsize), "evp buffer");
if (infile == NULL) {
- if (!streamable) {
+ if (!streamable && printkey != 2) { /* if just print key and exit, it's ok */
BIO_printf(bio_err, "Unstreamable cipher mode\n");
goto end;
}
|
Fix sanitizer builds | @@ -642,7 +642,7 @@ tasks:
params:
working_dir: "mongoc"
script: |
- PATH=/usr/lib/llvm-3.8/bin:$PATH DEBUG=1 CC='clang-3.8' MARCH='${MARCH}' CHECK_LOG=yes CFLAGS='-fsanitize=address' sh .evergreen/compile.sh
+ PATH=/usr/lib/llvm-3.8/bin:$PATH DEBUG=1 CC='clang-3.8' MARCH='${MARCH}' CHECK_LOG=yes CFLAGS='-fsanitize=add... |
Cleanup after myself, register with psk for kdf135_ikev1 | @@ -1505,7 +1505,7 @@ static int enable_kdf (ACVP_CTX *ctx) {
CHECK_ENABLE_CAP_RV(rv);
rv = acvp_enable_kdf135_ikev1_cap_param(ctx, ACVP_KDF_IKEv1_HASH_ALG, ACVP_KDF135_SHA1);
CHECK_ENABLE_CAP_RV(rv);
- rv = acvp_enable_kdf135_ikev1_cap_param(ctx, ACVP_KDF_IKEv1_AUTH_METHOD, ACVP_KDF135_IKEV1_AMETH_DSA);
+ rv = acvp_en... |
Updated Changelog for the latest release changes. | +Changes to GoAccess 1.5.2 - Tuesday, September 28, 2021
+
+ - Added .avi to the list of static requests/extensions.
+ - Changed label from 'Init. Proc. Time' to 'Log Parsing Time'.
+ - Fixed issue where lengthy static-file extension wouldn't account certain
+ valid requests.
+ - Fixed possible buffer underflow when ch... |
Actually detect network type in payout handler | @@ -196,10 +196,15 @@ namespace MiningCore.Blockchain.Monero
// update request
request.Destinations = page
.Where(x => x.Amount > 0)
- .Select(x => new TransferDestination
+ .Select(x =>
+ {
+ ExtractAddressAndPaymentId(x.Address, out var address, out var paymentId);
+
+ return new TransferDestination
{
- Address = x.A... |
Minor multihit glitch fix
Added all necessary codes to the attack boxes memorization, used together with the multihit glitch fix | @@ -20356,6 +20356,11 @@ void do_attack(entity *e)
self->modeldata.animation[current_follow_id]->attackone = self->animation->attackone;
}
ent_set_anim(self, current_follow_id, 0);
+
+ // Kratus (20-04-21) used by the multihit glitch memorization
+ self->attack_id_incoming4 = self->attack_id_incoming3;
+ self->attack_i... |
Fix issue where extra destination markers get drawn when switching between connected scenes | @@ -274,6 +274,7 @@ class Connections extends Component {
y: y2,
direction,
eventId,
+ sceneId,
className: "Connections__Destination",
onMouseDown: this.onDragDestinationStart(
eventId,
|
[mod_openssl] issue error trace if < openssl 1.1.1 | @@ -2916,6 +2916,14 @@ SETDEFAULTS_FUNC(mod_openssl_set_defaults)
mod_openssl_merge_config(&p->defaults, cpv);
}
+ #if OPENSSL_VERSION_NUMBER < 0x10101000L \
+ && !defined(LIBRESSL_VERSION_NUMBER)
+ log_error(srv->errh, __FILE__, __LINE__, "SSL:"
+ "openssl library version is outdated and has reached end-of-life. "
+ "... |
no more nest fails | =^ ban fox (kick hen)
[:(weld bin p.ban next) fox]
=/ fro=(list ship) (saxo-scry our)
- =^ bun fox zork:zank:(thaw fro):(ho:um i.neb)
+ =/ hoz (ho:um i.neb)
+ =^ bun fox zork:zank:(thaw:hoz fro)
$(neb t.neb, bin (weld p.bun bin))
::
++ wise :: wise:am
=/ seg (sein-scry her)
=^ pax diz (zuul:diz now seg [%back cop dam ~... |
Tightens readme | @@ -81,11 +81,10 @@ make install
# Bring in greenplum environment into your running shell
source /usr/local/gpdb/greenplum_path.sh
-# Start demo cluster (gpdemo-env.sh is created which contain
-# __PGPORT__ and __MASTER_DATA_DIRECTORY__ values)
-cd gpAux/gpdemo
+# Start demo cluster
make create-demo-cluster
-source gpd... |
quic: support the quictrace_sent probe | @@ -104,6 +104,7 @@ struct quic_event_t {
u64 stream_id;
u64 packet_num;
u64 packet_len;
+ u8 packet_type;
u32 ack_only;
u64 largest_acked;
u64 bytes_acked;
@@ -463,6 +464,26 @@ int trace_stream_data_blocked_receive(struct pt_regs *ctx) {
return 0;
}
+
+int trace_quictrace_sent(struct pt_regs *ctx) {
+ void *pos = NULL... |
hv: refine strncpy_s to only one exit point
Fix procedure has more than one exit point
Acked-by: Eddie Dong | @@ -203,28 +203,28 @@ char *strncpy_s(char *d_arg, size_t dmax, const char *s_arg, size_t slen_arg)
{
const char *s = s_arg;
char *d = d_arg;
- char *dest_base;
+ char *pret;
size_t dest_avail;
uint64_t overlap_guard;
size_t slen = slen_arg;
if ((d == NULL) || (s == NULL)) {
pr_err("%s: invlaid src or dest buffer", __f... |
Update CMakeLists.txt
Add Network framework to unittest | @@ -108,7 +108,7 @@ else()
set (PLATFORM_LIBS "")
# Add flags for obtaining system UUID via IOKit
if (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
- set (PLATFORM_LIBS "-framework CoreFoundation -framework IOKit -framework SystemConfiguration -framework Foundation")
+ set (PLATFORM_LIBS "-framework CoreFoundation -framework IO... |
Fix gfir coefficient sync using chip->GUI when gfir was not written before | @@ -44,6 +44,30 @@ void LMS7002M_RegistersMap::InitializeDefaultValues(const std::vector<const LMS7
mChannelB[addr + i + 0x0200].defaultValue = 0;
mChannelB[addr + i + 0x0200].value = 0;
}
+
+ //add GFIRS
+ std::vector<std::pair<uint16_t, uint16_t> > intervals = {
+ {0x0280, 0x02A7},
+ {0x02C0, 0x02E7},
+ {0x0300, 0x03... |
updated info about wlandump-ng (no longer understatement) | @@ -22,8 +22,8 @@ Detailed description
| Tool | Description |
| ------------- | -----------------------------------------------------------------------------------------------------|
-| wlandump-ng | Small, fast and simple but powerfull WLAN scanner |
-| wlanresponse | Extreme fast deauthentication/authentication/respo... |
format: fix js format | @@ -31,12 +31,14 @@ getVersions()
error(`are you sure you have libelektra and kdb installed?`);
process.exit(1);
} else {
- const { major, minor, micro } = versions.elektra
- const versionSupported = major >= 0 && minor >= 9 && micro >= 0
+ const { major, minor, micro } = versions.elektra;
+ const versionSupported = ma... |
odissey: extend periodic stats | @@ -71,17 +71,20 @@ od_periodic_stats(od_router_t *router)
{
int stream_count = 0;
int stream_count_allocated = 0;
+ int stream_total_allocated = 0;
shapito_cache_stat(&instance->stream_cache, &stream_count,
- &stream_count_allocated);
-
+ &stream_count_allocated, &stream_total_allocated);
int count_machine = 0;
int co... |
nrf: Use --gc-sections to reduce code size
This saves about 6-7kB. | @@ -65,7 +65,7 @@ NRF_DEFINES += -DCONFIG_GPIO_AS_PINRESET
CFLAGS_CORTEX_M = -mthumb -mabi=aapcs -fsingle-precision-constant -Wdouble-promotion
-CFLAGS_MCU_m4 = $(CFLAGS_CORTEX_M) -mtune=cortex-m4 -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections
+CFLAGS_MCU_m4 = $(CFLAGS_CORTEX_M) ... |
Update macros.
Use TLS_MAX_SIGALGCNT for the maximum number of entries in the
signature algorithms array.
Use TLS_MAX_SIGSTRING_LEN for the maxiumum length of each signature
component instead of a magic number. | @@ -1715,11 +1715,12 @@ int SSL_get_shared_sigalgs(SSL *s, int idx,
return (int)s->cert->shared_sigalgslen;
}
-#define MAX_SIGALGLEN (TLSEXT_hash_num * TLSEXT_signature_num * 2)
+/* Maximum possible number of unique entries in sigalgs array */
+#define TLS_MAX_SIGALGCNT (OSSL_NELEM(sigalg_lookup_tbl) * 2)
typedef struc... |
libhfuzz: make __sanitizer_cov_trace_const_cmp* symbols weak aliases temporarily for Darwin | @@ -140,16 +140,20 @@ ATTRIBUTE_X86_REQUIRE_SSE42 void __sanitizer_cov_trace_cmp8(uint64_t Arg1, uint6
/*
* Const versions of trace_cmp, we don't use any special handling for these (for
- * now)
+ * now).
+ *
+ * TODO: This should be a non-weak alias (a regular function), so it can overload symbols provided
+ * in lib*... |
Fix issue loading incorrect sprites for some actors | @@ -66,10 +66,12 @@ void MoveActors_b()
sprites[k].pos.x = screen_x;
sprites[k].pos.y = screen_y;
+ if(actors[a].sprite_type != SPRITE_STATIC) {
+
// Increase frame based on facing direction
- if (IS_NEG(actors[i].dir.y))
+ if (IS_NEG(actors[a].dir.y))
{
- fo = 1 + (actors[i].sprite_type == SPRITE_ACTOR_ANIMATED);
+ fo... |
Do not apply empty model | @@ -21,6 +21,9 @@ namespace NCB::NModelEvaluation {
const size_t blockSize = Min(FORMULA_EVALUATION_BLOCK_SIZE, docCount);
auto calcTrees = GetCalcTreesFunction(trees, blockSize);
std::fill(results.begin(), results.end(), 0.0);
+ if (trees.GetTreeCount() == 0) {
+ return;
+ }
TVector<TCalcerIndexType> indexesVec(blockS... |
netbench: avoid panic on ESHUTDOWN | @@ -52,7 +52,7 @@ void ServerWorker(rt::UdpConn *c) {
// Receive a network response.
ssize_t ret = c->Read(&buf, sizeof(buf));
if (ret <= 0 || ret > static_cast<ssize_t>(sizeof(buf))) {
- if (ret == 0) break;
+ if (ret == -ESHUTDOWN) break;
panic("udp read failed, ret = %ld", ret);
}
@@ -170,7 +170,7 @@ std::vector<dou... |
NN: Define ARM_MATH_DSP and ARM_NN_TRUNCATE. | @@ -75,8 +75,10 @@ endif
# Compiler Flags
include $(OMV_BOARD_CONFIG_DIR)/omv_boardconfig.mk
CFLAGS += -std=gnu99 -Wall -Werror -Warray-bounds -mthumb -nostartfiles -mabi=aapcs-linux -fdata-sections -ffunction-sections
-CFLAGS += -D$(MCU) -D$(CFLAGS_MCU) -D$(ARM_MATH) -fsingle-precision-constant -Wdouble-promotion -mcp... |
Minor enhancements in build_linux.sh. | -#!/bin/bash
+#!/bin/sh
set -e
SCRIPT_DIR=$( cd $(dirname $0); pwd -P)
@@ -9,7 +9,7 @@ mkdir -p ${DIST_DIR}
# Docker image repository.
REPOSITORY="tinyspline"
-STRETCH_SETUP_CMDS=$(cat << END
+APT_GET_CMDS=$(cat << END
RUN apt-get update && apt-get install -y --no-install-recommends cmake swig
COPY . /tinyspline
WORKDI... |
Check psa_destroy_key() return in rsa_encrypt_wrap() | @@ -298,7 +298,10 @@ static int rsa_encrypt_wrap( void *ctx,
ret = 0;
cleanup:
- psa_destroy_key( key_id );
+ status = psa_destroy_key( key_id );
+ if( ret == 0 && status != PSA_SUCCESS )
+ ret = mbedtls_psa_err_translate_pk( status );
+
return( ret );
}
#else
|
misc: Add maintainer entry for ipfix-export
Type: improvement
Add Ole as a maintainer for the ipfix-export code | @@ -789,6 +789,11 @@ I: vat2
M: Ole Troan <ot@cisco.com>
F: src/vat2/
+VNET Ipfix Export
+I: ipfix-export
+M: Ole Troan <ot@cisco.com>
+F: src/vnet/ipfix-export/
+
THE REST
I: misc
M: vpp-dev Mailing List <vpp-dev@fd.io>
|
fix up rx_dsm | @@ -170,24 +170,24 @@ void rx_spektrum_bind(void) {
}
#endif
GPIO_InitTypeDef GPIO_InitStructure;
- GPIO_InitStructure.GPIO_Pin = SERIAL_RX_SPEKBIND_BINDTOOL_PIN;
+ GPIO_InitStructure.GPIO_Pin = usart_port_defs[RX_USART].rx_pin;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_OUT;
GPIO_InitStructure.GPIO_OType = GPIO_OType_PP... |
hoon: leb/reb to kel/ker | ==
:: :: ++obje:de-json:html
++ obje :: object list
- %+ ifix [(wish leb) (wish reb)]
+ %+ ifix [(wish kel) (wish ker)]
(more (wish com) pear)
:: :: ++obox:de-json:html
++ obox :: object
|
osc operator = redesign | @@ -370,23 +370,23 @@ BEGIN_OPERATOR(midi)
END_OPERATOR
BEGIN_OPERATOR(osc)
- PORT(0, -2, IN | PARAM);
- PORT(0, -1, IN | PARAM);
- Usz len = index_of(PEEK(0, -1)) + 1;
+ PORT(0, 2, IN | PARAM);
+ PORT(0, 1, IN | PARAM);
+ Usz len = index_of(PEEK(0, 1)) + 1;
if (len > Oevent_osc_int_count)
len = Oevent_osc_int_count;
f... |
add alienwhoop_v3 to targets | }
]
},
+ {
+ "name": "alienwhoop_v3",
+ "configurations": [
+ {
+ "name": "brushed.serial",
+ "defines": {
+ "BRUSHED_TARGET": "",
+ "RX_UNIFIED_SERIAL": ""
+ }
+ }
+ ]
+ },
{
"name": "matekf411rx",
"configurations": [
|
libhfuzz/instrument: ignore const values which are of len=0 | @@ -465,6 +465,9 @@ void instrumentClearNewCov() {
}
static inline void instrumentAddConstMemInternal(const void* mem, size_t len) {
+ if (len == 0) {
+ return;
+ }
if (len > sizeof(cmpFeedback->valArr[0].val)) {
len = sizeof(cmpFeedback->valArr[0].val);
}
@@ -494,6 +497,9 @@ void instrumentAddConstMem(const void* mem,... |
Fix test_misc_alloc_create_parser_with_encoding() to work in | @@ -7910,7 +7910,7 @@ START_TEST(test_misc_alloc_create_parser_with_encoding)
/* Try several levels of allocation */
for (i = 0; i < max_alloc_count; i++) {
allocation_count = i;
- parser = XML_ParserCreate_MM("us-ascii", &memsuite, NULL);
+ parser = XML_ParserCreate_MM(XCS("us-ascii"), &memsuite, NULL);
if (parser != ... |
improved identity handling | @@ -432,6 +432,8 @@ if(eapidentity->eaptype != EAP_TYPE_ID)
idlen = htons(eapidentity->eaplen) -5;
if((idlen > 0) && (idlen <= 256))
{
+ if(eapidentity->identity[0] == 0)
+ return;
memset(idstring, 0, 258);
memcpy(&idstring, eapidentity->identity, idlen);
if(usernameoutname != NULL)
@@ -1880,7 +1882,7 @@ while((pcapsta... |
Basic-Flow update | @@ -148,7 +148,7 @@ Additionally, some Hammer process technology plugins do not provide default valu
Place-and-route tools are very sensitive to process technologes (significantly more sensitive than synthesis tools), and different process technologies may work only on specific tool versions. It is recommended to check... |
netkvm: defines for USO feature
Define the feature bit and GSO type according to the spec. | #define VIRTIO_NET_F_GUEST_RSC4_DONT_USE 41 /* reserved */
#define VIRTIO_NET_F_GUEST_RSC6_DONT_USE 42 /* reserved */
+#define VIRTIO_NET_F_HOST_USO 56 /* Host can handle USO in. */
#define VIRTIO_NET_F_HASH_REPORT 57
#define VIRTIO_NET_F_RSS 60
#define VIRTIO_NET_F_RSC_EXT 61
@@ -145,6 +146,7 @@ struct virtio_net_hdr_... |
Fix EnableDebug patch not working | @@ -106,12 +106,12 @@ void EnableDebugPatch(const Image* apImage)
if (i == 0)
{
RealRegisterScriptFunction = reinterpret_cast<TRegisterScriptFunction*>(pCallLocation + offset);
- MH_CreateHook(&RealRegisterScriptFunction, &HookRegisterScriptFunction, reinterpret_cast<void**>(&RealRegisterScriptFunction));
+ MH_CreateHo... |
Work CI-CD
Fix version composing for WIN32 job.
***NO_CI*** | @@ -698,8 +698,7 @@ jobs:
inputs:
targetType: 'inline'
script: |
- Write-Host "$("##vso[task.setvariable variable=TARGET_BUILD_COUNTER]")$version"
- Write-Host "$("##vso[task.setvariable variable=WINCLR_PACKAGE_VERSION]")$(NBGV_VersionMajor).$(NBGV_VersionMinor).$(NBGV_BuildNumber).$version"
+ Write-Host "$("##vso[task... |
document in manpage that port 0 is off.
issue | @@ -62,7 +62,7 @@ caches, so consult the README and memcached homepage for configuration
suggestions.
.TP
.B \-p, --port=<num>
-Listen on TCP port <num>, the default is port 11211.
+Listen on TCP port <num>, the default is port 11211. 0 means off.
.TP
.B \-U, --udp-port=<num>
Listen on UDP port <num>, the default is po... |
libbpf-tools: update drsnoop for libbpf 1.0
Switch to libbpf 1.0 mode and adapt libbpf API usage accordingly. | @@ -147,7 +147,6 @@ int main(int argc, char **argv)
.parser = parse_arg,
.doc = argp_program_doc,
};
- struct perf_buffer_opts pb_opts;
struct perf_buffer *pb = NULL;
struct ksyms *ksyms = NULL;
const struct ksym *ksym;
@@ -159,14 +158,9 @@ int main(int argc, char **argv)
if (err)
return err;
+ libbpf_set_strict_mode(L... |
SLW: Add opal_slw_set_reg support for power9
This OPAL call is made from Linux to OPAL to configure values in
various SPRs after wakeup from a deep idle state. | #include <libfdt/libfdt.h>
#include <opal-api.h>
+#include <p9_stop_api.H>
#include <p8_pore_table_gen_api.H>
#include <sbe_xip_image.h>
@@ -1402,15 +1403,26 @@ int64_t opal_slw_set_reg(uint64_t cpu_pir, uint64_t sprn, uint64_t val)
struct cpu_thread *c = find_cpu_by_pir(cpu_pir);
struct proc_chip *chip;
- void *image;... |
Add new files to the rockspec
As well as some old files that were also missing... | @@ -19,26 +19,30 @@ dependencies = {
build = {
type = "builtin",
modules = {
+ ["pallene.assignment_conversion"] = "pallene/assignment_conversion.lua",
["pallene.ast"] = "pallene/ast.lua",
["pallene.builtins"] = "pallene/builtins.lua",
["pallene.C"] = "pallene/C.lua",
["pallene.c_compiler"] = "pallene/c_compiler.lua",
... |
fixing bang on 3rd outlet in threaded mode | @@ -2090,7 +2090,8 @@ static void *coll_new(t_symbol *s, int argc, t_atom *argv)
//used to be only for threaded, now make it anyways
//needed for bang on instantiate - DK
x->x_clock = clock_new(x, (t_method)coll_tick);
- if (x->x_threaded == 1)
+// if (x->x_threaded == 1) - there's something here that needs to be done ... |
window_update_motif_hints: Do not assert that the property will always be there
Fixes | @@ -459,7 +459,9 @@ static border_style_t border_style_from_motif_value(uint32_t value) {
*
*/
bool window_update_motif_hints(i3Window *win, xcb_get_property_reply_t *prop, border_style_t *motif_border_style) {
- assert(prop != NULL);
+ if (prop == NULL) {
+ return false;
+ }
assert(motif_border_style != NULL);
if (xcb... |
Adding missing metadata to use_setuptools==False branch of setup.py. | @@ -144,7 +144,10 @@ if use_setuptools:
else:
setup(name='spglib',
version=version,
+ license='BSD-3-Clause',
description='This is the spglib module.',
+ long_description=open('README.rst', 'rb').read().decode('utf-8'),
+ long_description_content_type='text/x-rst',
author='Atsushi Togo',
author_email='atz.togo@gmail.co... |
Clean up ceremony | (punt zero-ux)
(punt zero-ux)
::
- ?. live
- (punt ;~(plug zero-ux ;~(pfix com zero-ux)))
- (stag ~ ;~(plug zero-ux ;~(pfix com zero-ux)))
+ =+ ;~(plug zero-ux ;~(pfix com zero-ux))
+ ?. live (punt -)
+ (stag ~ -)
:: %. ;~(plug zero-ux ;~(pfix com zero-ux))
+ :: ^- $-(rule rule)
:: ?. live punt
:: (cury stag ~)
==
[%ui... |
BugID:17646749:[build-rules] fix -fuse-linker-plugin warnings when build mk3060 | @@ -171,6 +171,7 @@ clean:
-or -name "*.o" \
-or -name "*.d" \
-or -name "*.gc*" \
+ | grep -v '$(OUTPUT_DIR)/compiler' \
2>/dev/null)
distclean:
|
website: two more small fixes at homepage | "APP.HOME.LABEL.KEYFACT.4.HEADLINE": "Batteries Included",
"APP.HOME.LABEL.KEYFACT.5.DETAILS": "<a href=\"/tutorials/validate-configuration\">Validate configuration</a> immediately on changes, eliminate your configuration duplicates with the help of symbolic links or compute configuration parameters from other configur... |
Update common.go for ops lepton refactoring | @@ -7,14 +7,15 @@ import (
"os"
"sort"
"strings"
- "time"
"testing"
+ "time"
- "github.com/nanovms/ops/lepton"
+ "github.com/nanovms/ops/config"
+ "github.com/nanovms/ops/qemu"
)
-func defaultConfig() lepton.Config {
- var c lepton.Config
+func defaultConfig() config.Config {
+ var c config.Config
c.Boot = "../../outpu... |
Unix Makefile: Rework the assignment of CXX and AS
If the configured value is the empty string, give them a sane default.
Otherwise, give them the configured value prefix with $(CROSS_COMPILE) | @@ -191,7 +191,7 @@ CPPFLAGS={- our $cppflags = join(" ",
CPPFLAGS_Q={- $cppflags =~ s|([\\"])|\\$1|g; $cppflags -}
CC= $(CROSS_COMPILE){- $config{cc} -}
CFLAGS={- join(' ', @{$config{cflags}}) -}
-CXX= $(CROSS_COMPILE){- $config{cxx} -}
+CXX={- $config{cxx} ? "\$(CROSS_COMPILE)$config{cxx}" : '' -}
CXXFLAGS={- join(' ... |
Add PP type validation | @@ -63,6 +63,9 @@ ocf_error_t ocf_promotion_set_policy(ocf_promotion_policy_t policy,
ocf_cache_t cache = policy->owner;
ocf_promotion_t prev_policy;
+ if (type >= ocf_promotion_max)
+ return -OCF_ERR_INVAL;
+
prev_policy = cache->conf_meta->promotion_policy_type;
if (ocf_promotion_policies[prev_policy].deinit)
|
Update unit-tests script. | @@ -18,13 +18,10 @@ def print_result(test, passed):
padding = "."*(60-len(s))
print(s + padding + ("PASSED" if passed == True else "FAILED"))
-for module in sorted(os.listdir(SCRIPT_DIR)):
- mod_path = "/".join((SCRIPT_DIR, module))
-
- for test in sorted(os.listdir(mod_path)):
+for test in sorted(os.listdir(SCRIPT_DIR... |
[voting-reward] substract voting power only for effective voters | @@ -561,7 +561,7 @@ func (v *vpr) add(id types.AccountID, addr []byte, power *big.Int) {
}
func (v *vpr) sub(id types.AccountID, addr []byte, power *big.Int) {
- if v == nil {
+ if v == nil || v.voters.powers[id] == nil {
return
}
|
Fix ModelData pointer alignment;
ModelData manages a single allocation and creates pointers into
that allocation. These pointers were tightly packed, creating
alignment issues which triggered undefined behavior. Now, the
pointers are all aligned to 8 byte boundaries. | @@ -33,18 +33,19 @@ void lovrModelDataDestroy(void* ref) {
void lovrModelDataAllocate(ModelData* model) {
size_t totalSize = 0;
size_t sizes[13];
- totalSize += sizes[0] = model->blobCount * sizeof(Blob*);
- totalSize += sizes[1] = model->bufferCount * sizeof(ModelBuffer);
- totalSize += sizes[2] = model->textureCount ... |
Fix minor type warnings and risk of memory leak in testutil/driver.c
Discussion is in | @@ -40,7 +40,7 @@ static int seed = 0;
*/
static int num_test_cases = 0;
-void add_test(const char *test_case_name, int (*test_fn) ())
+void add_test(const char *test_case_name, int (*test_fn) (void))
{
assert(num_tests != OSSL_NELEM(all_tests));
all_tests[num_tests].test_case_name = test_case_name;
@@ -105,7 +105,7 @@... |
ledc: fixed check to s_ledc_fade_rec array | /*
- * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD
+ * SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -1035,7 +1035,7 @@ esp_err_t ledc_set_fade_with_step(ledc_mode_t speed_mode, ledc_channel_t channel
esp_err_t ledc_fade_sta... |
Update BOOM URL in README.md | @@ -78,7 +78,7 @@ These additional publications cover many of the internal components used in Chip
[berkeley]: https://berkeley.edu
[riscv]: https://riscv.org/
[rocket-chip]: https://github.com/freechipsproject/rocket-chip
-[boom]: https://github.com/ucb-bar/riscv-boom
+[boom]: https://github.com/riscv-boom/riscv-boom
... |
Better parse arguments | @@ -10,6 +10,7 @@ import tempfile
import hashlib
from base64 import urlsafe_b64encode
+from argparse import ArgumentParser
sys.dont_write_bytecode = True
@@ -300,16 +301,10 @@ if __name__ == '__main__':
arc_root = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', '..'))
out_root = tempfile.... |
update bc target order in pq-crypto Makefile | @@ -18,14 +18,14 @@ OBJS=$(SRCS:.c=.o)
BCS_11=pq_random.bc
BCS1=$(addprefix $(BITCODE_DIR), $(BCS_11))
-.PHONY : bc
-bc: $(BCS1)
- $(MAKE) -C sike bc
-
.PHONY : all
all: $(OBJS)
$(MAKE) -C sike
+.PHONY : bc
+bc: $(BCS1)
+ $(MAKE) -C sike bc
+
.PHONY : clean
clean: decruft
${MAKE} -C sike decruft
|
Increment version to 4.9.4.dev1. | #define MOD_WSGI_MAJORVERSION_NUMBER 4
#define MOD_WSGI_MINORVERSION_NUMBER 9
-#define MOD_WSGI_MICROVERSION_NUMBER 3
-#define MOD_WSGI_VERSION_STRING "4.9.3"
+#define MOD_WSGI_MICROVERSION_NUMBER 4
+#define MOD_WSGI_VERSION_STRING "4.9.4.dev1"
/* ------------------------------------------------------------------------... |
Investigate options for ack delay and gap | @@ -1910,6 +1910,15 @@ uint64_t picoquic_compute_ack_gap(picoquic_cnx_t* cnx, uint64_t data_rate)
uint64_t packet_rate_times_1M = (data_rate * 1000000) / cnx->path[0]->send_mtu;
nb_packets = packet_rate_times_1M / cnx->path[0]->smoothed_rtt;
}
+#if 1
+ if (cnx->path[0]->smoothed_rtt < 4 * PICOQUIC_ACK_DELAY_MIN) {
+ ui... |
porting: cleanup porting_init()
code simplification
add some more comments
call ble_hci_ram_init() before ble_ll_init() to make sure the
buffers are intialized before they are potentially used | #include "nimble/nimble_port.h"
#if NIMBLE_CFG_CONTROLLER
#include "controller/ble_ll.h"
+#include "transport/ram/ble_hci_ram.h"
#endif
static struct ble_npl_eventq g_eventq_dflt;
+extern void os_msys_init(void);
+
void
nimble_port_init(void)
{
- void os_msys_init(void);
-
-#if NIMBLE_CFG_CONTROLLER
- void ble_hci_ram_... |
Fixed regression from early refactor | @@ -1437,7 +1437,7 @@ static Point SolveForLighthouse(FLT posOut[3], FLT quatOut[4], TrackedObject *ob
SurvivePose lighthousePose;
FLT invRot[4];
- quatgetreciprocal(invRot, lighthousePose.Rot);
+ quatgetreciprocal(lighthousePose.Rot, rotQuat);
lighthousePose.Pos[0] = refinedEstimateGd.x;
lighthousePose.Pos[1] = refine... |
Give HarnessRAM implicit clock/reset in SerialTiedOff | @@ -238,30 +238,24 @@ class WithTiedOffDebug extends OverrideHarnessBinder({
})
-class WithSerialAdapterTiedOff(asyncQueue: Boolean = false) extends OverrideHarnessBinder({
+class WithSerialAdapterTiedOff extends OverrideHarnessBinder({
(system: CanHavePeripheryTLSerial, th: HasHarnessSignalReferences, ports: Seq[Clock... |
doc: Adds note about pre-burned eFuses for Blocks with a coding scheme | eFuse Manager
=============
+{IDF_TARGET_CODING_SCHEMES:default="Reed-Solomon", esp32="3/4 or Repeat"}
+
Introduction
------------
@@ -215,6 +217,12 @@ Supported coding scheme
To write some fields into one block, or different blocks in one time, you need to use ``the batch writing mode``. Firstly set this mode through ... |
[chainamker]remove response struct | @@ -138,13 +138,6 @@ typedef struct TBoatHlchainamkerResult {
} BoatHlchainamkerResult;
-typedef struct TBoatHlchainmakerResponse {
-
- BoatHlchainamkerResult http_result;
- BUINT32 httpResLen;
- BUINT8 *http2Res;
-}BoatHlchainmakerResponse;
-
// chainmaker wallet config structure
typedef struct TBoatHlchainmakerWallet... |
Define Extended DNS Errors | #include "nsec3.h"
#include "tsig.h"
+/* The Extended DNS Error codes (RFC8914) we use */
+#define EDE_OTHER 0
+#define EDE_NOT_READY 14
+#define EDE_PROHIBITED 18
+#define EDE_NOT_AUTHORITATIVE 20
+#define EDE_NOT_SUPPORTED 21
+
+
/* [Bug #253] Adding unnecessary NS RRset may lead to undesired truncation.
* This funct... |
[numerics] remove computation of problem info and add debug output | #include "numerics_verbose.h"
#include "NumericsVector.h"
#include "float.h"
-#include "debug.h"
-#include "float.h"
#include "JordanAlgebra.h"
#include "CSparseMatrix.h"
#include "NumericsSparseMatrix.h"
+
+/* #define DEBUG_MESSAGES */
+/* #define DEBUG_STDOUT */
+#include "debug.h"
+
+
const char* const SICONOS_GLOBA... |
Add additional passing tests to epsdb_passes.txt. | @@ -5,6 +5,8 @@ atomic_double
class
collapse
complex
+complex2
+d2h_slow_copy
data_enter_issue01
data_issue_59
data_share1
@@ -23,23 +25,34 @@ flags 5
flags 6
flags 7
flags 8
+flang_blkdata-g
flang_char_kind
+flang_gen_sptr_prob
flang_isystem_prob
flang_math
flang_omp_map
+flang_omp_red_3d
flang_real16_prob
+flang_redu... |
plugins: in_mqtt: added optional TLS flag | @@ -157,5 +157,5 @@ struct flb_input_plugin in_mqtt_plugin = {
.cb_flush_buf = NULL,
.cb_exit = in_mqtt_exit,
.config_map = config_map,
- .flags = FLB_INPUT_NET,
+ .flags = FLB_INPUT_NET | FLB_IO_OPT_TLS,
};
|
Handling char ** in SWIG to get json_stats from NEAT to use in Python front-end | #include "neat.h"
%}
+// This input typemap declares that char** requires no input parameter.
+// Instead, the address of a local char* is used to call the function.
+%typemap(in,numinputs=0) char** (char* tmp) %{
+$1 = &tmp;
+%}
+
+// After the function is called, the char** parameter contains a malloc'ed char* pointe... |
perf-tools/dimemas: fix package name | %define PNAME %(echo %{pname} | tr [a-z] [A-Z])
Summary: Dimemas tool
-Name: %{pname}-%{compiler_family}%{PROJ_DELIM}
+Name: %{pname}-%{compiler_family}-%{mpi_family}%{PROJ_DELIM}
Version: 5.3.4
Release: 5
License: GNU
|
Restore the correct condition | @@ -42,7 +42,7 @@ typedef struct clap_plugin_audio_ports_activation {
// It is only possible to activate and de-activate on the audio-thread if
// can_activate_while_processing() returns true.
//
- // [can_activate_while_processing ? audio-thread : main-thread]
+ // [active ? audio-thread : main-thread]
void(CLAP_ABI *... |
doc: finalize criteria | @@ -54,15 +54,20 @@ But why not also learn about plugins while creating a new plugin?
Elektra's documentation must fulfill:
- It is self-contained.
- It is not enough to link to some paper and an external page to explain, e.g., decisions.
+ It is not enough to link to some paper and an external page as explanation.
All... |
Add message for symbol end events | * thread stack viewer
*
* Copyright (C) 2010-2016 wj32
- * Copyright (C) 2017-2021 dmex
+ * Copyright (C) 2017-2022 dmex
*
* This file is part of Process Hacker.
*
@@ -1575,15 +1575,12 @@ VOID PhpSymbolProviderEventCallbackHandler(
statusMessage = PhReferenceObject(event->EventMessage);
break;
case PH_SYMBOL_EVENT_TYPE... |
[mempool] :memo: Add DATE paper to the README | @@ -205,3 +205,20 @@ We use the following RISC-V tools to parse simulation traces and keep opcodes co
The open-source simulator [Verilator](https://www.veripool.org/verilator) can be used for RTL simulation.
- `toolchain/verilator` is licensed under GPL. See [Verilator's license](https://github.com/verilator/verilator/... |
Testing: Add tests for large constant fields (GRIB1 and GRIBEX mode) | @@ -142,5 +142,12 @@ grib_check_key_equals $temp const,bitsPerValue,section7Length '1 0 5'
${tools_dir}/grib_set -s produceLargeConstantFields=1 -d1 $input $temp
grib_check_key_equals $temp const,bitsPerValue,section7Length '1 16 997'
+# GRIB1: when GRIBEX mode is enabled, we also get a large constant field
+input=${da... |
Set status for new links in EN_addlink
Status is OPEN for pumps\pipes\CV and ACTIVE for valves. Closes | @@ -4806,6 +4806,7 @@ int DLLEXPORT EN_addlink(EN_ProjectHandle ph, char *id, EN_LinkType linkType, ch
link->Type = linkType;
link->N1 = N1;
link->N2 = N2;
+ link->Stat = OPEN;
if (linkType == EN_PUMP) {
link->Kc = 1.0; // Speed factor
@@ -4821,23 +4822,14 @@ int DLLEXPORT EN_addlink(EN_ProjectHandle ph, char *id, EN_L... |
fix scratchpad super + scroll | @@ -5550,6 +5550,8 @@ shiftview(const Arg *arg)
} while (!visible && ++count < 10);
if (count < 10) {
+ if (nextseltags & (1 << 20))
+ nextseltags = nextseltags ^ (1<<20);
a.i = nextseltags;
view(&a);
}
|
[MLN] 1.0.0.6.beta | Pod::Spec.new do |s|
s.name = 'MLN'
- s.version = '1.0.0.5.beta'
+ s.version = '1.0.0.6.beta'
s.summary = 'A lib of Momo Lua Native.'
# This description is used to generate tags and improve search results.
|
Change display message to unsupported when there is no PMTT
Reported-By: Robert Elliott | @@ -116,7 +116,10 @@ EFI_STATUS showAcpi(struct Command *pCmd) {
if (ChosenAcpiSystem == AcpiAll || ChosenAcpiSystem == AcpiPMTT) {
ReturnCode = pNvmDimmConfigProtocol->GetAcpiPMTT(pNvmDimmConfigProtocol, &pPMTT);
- if (EFI_ERROR(ReturnCode) || pPMTT == NULL) {
+ if (ReturnCode == EFI_NOT_FOUND) {
+ Print(L"PMTT table ... |
Use proper conditional for software DES
When converting definitions to use the new PSA defines, one erroneously
was conditionalized on the WANT macro instead of on the BUILTIN macro. | @@ -5063,7 +5063,7 @@ exit:
return( status );
}
-#if defined(PSA_WANT_KEY_TYPE_DES)
+#if defined(MBEDTLS_PSA_BUILTIN_KEY_TYPE_DES)
static void psa_des_set_key_parity( uint8_t *data, size_t data_size )
{
if( data_size >= 8 )
@@ -5073,7 +5073,7 @@ static void psa_des_set_key_parity( uint8_t *data, size_t data_size )
if( ... |
viostor: Remove code for legacy OSes | <ConfigurationType>Driver</ConfigurationType>
<DriverType>Miniport</DriverType>
</PropertyGroup>
- <PropertyGroup Label="PropertySheets" Condition="'$(PlatformToolset)'=='v141_xp'">
- <UseLegacyDDK>true</UseLegacyDDK>
- <ConfigurationType>Application</ConfigurationType>
- <GenerateManifest>false</GenerateManifest>
- </... |
or-map: fix specific assertion that should have been general | (del-span tre %end end)
?~ end
(del-span tre %start start)
- ?> (lth u.start u.end)
+ ?> (compare u.start u.end)
=. tre (del-span tre %start start)
(del-span tre %end end)
::
|
refactor(memory check):
"keypair" should check non-null in UtilityPKCS2Native() | @@ -939,6 +939,12 @@ BOAT_RESULT UtilityPKCS2Native(BCHAR *input, KeypairNative *keypair)
{
// (*keypair).prikey = TLV_Level_2.data;
(*keypair).prikey = BoatMalloc(TLV_Level_2.len);
+ if(NULL == (*keypair).prikey){
+ if((*keypair).pubkey != NULL){
+ BoatFree((*keypair).pubkey);
+ }
+ return BOAT_ERROR;
+ }
memcpy((*key... |
board/kukui_scp/venc.h: Format with clang-format
BRANCH=none
TEST=none | @@ -22,7 +22,8 @@ struct venc_msg {
unsigned char msg[288];
};
-BUILD_ASSERT(member_size(struct venc_msg, msg) <= CONFIG_IPC_SHARED_OBJ_BUF_SIZE);
+BUILD_ASSERT(member_size(struct venc_msg, msg) <=
+ CONFIG_IPC_SHARED_OBJ_BUF_SIZE);
/* Functions provided by private overlay. */
void venc_h264_msg_handler(void *data);
|
doc: mention the pg_locks lock names in parentheses
Reported-by: Troy Frericks
Discussion:
Backpatch-through: 10 | @@ -875,7 +875,7 @@ ERROR: could not serialize access due to read/write dependencies among transact
<title>Table-Level Lock Modes</title>
<varlistentry>
<term>
- <literal>ACCESS SHARE</literal>
+ <literal>ACCESS SHARE</literal> (<literal>AccessShareLock</literal>)
</term>
<listitem>
<para>
@@ -893,7 +893,7 @@ ERROR: co... |
Add --ignore-qemu flag to toolchains | Prepare QEMU when it builds | @@ -20,6 +20,7 @@ usage() {
echo "Options"
echo " --prefix PREFIX : Install destination. If unset, defaults to $(pwd)/riscv-tools-install"
echo " or $(pwd)/esp-tools-install"
+ echo " --ignore-qemu : Ignore installing QEMU"
echo " --help -h : Display this message"
exit "$1"
}
@@ -34,6 +35,7 @@ die() {
TOOLCHAIN="riscv-... |
Fix BOARDS string in srf06-cc26xx platform makefile to accurately reflect all valid values of the BOARD variable | @@ -6,7 +6,7 @@ endif
### Board and BSP selection
BOARD ?= srf06/cc26xx
-BOARDS = srf06/cc26xx srf06/cc13xx launchpad/cc26xx launchpad/cc13xx sensortag/cc26xx sensortag/cc13xx
+BOARDS = srf06/cc26xx srf06/cc13xx launchpad/cc2650 launchpad/cc1310 launchpad/cc1350 sensortag/cc2650 sensortag/cc1350
CONTIKI_TARGET_DIRS += ... |
Refactor ccp_create using anchor | @@ -706,12 +706,7 @@ jobs:
- get: centos-gpdb-dev-6
- put: terraform
params:
- action: create
- delete_on_failure: true
- generate_random_name: true
- terraform_source: ccp_src/aws/
- vars:
- aws_instance-node-instance_type: t2.medium
+ <<: *ccp_create_params
- task: gen_cluster
file: ccp_src/ci/tasks/gen_cluster.yml
o... |
mmu: replace ASSERT with panic in fetch_page_table_offset
all callers for fetch_page_table_offset should already make sure
it will not come to an unknown table_leve, so just panic here. | @@ -325,8 +325,10 @@ static uint32_t fetch_page_table_offset(void *addr, uint32_t table_level)
break;
default:
- pr_err("Wrong page table level = 0x%lx", table_level);
- ASSERT(false, "Wrong page table level");
+ /* all callers should already make sure it will not come
+ * to here
+ */
+ panic("Wrong page table level")... |
Replace elif without condition with else | @@ -293,7 +293,7 @@ void initArgv(VM *vm, Table *table, int argc, const char *argv[]) {
void initPlatform(VM *vm, Table *table) {
#ifdef _WIN32
defineNativeProperty(vm, table, "platform", OBJ_VAL(copyString(vm, "windows", 7)));
-#elif
+#else
struct utsname u;
if (-1 == uname(&u)) {
defineNativeProperty(vm, table, "plat... |
Fix signed/unsigned issue. | @@ -306,7 +306,8 @@ main(int argc, char *argv[])
SCTP_PEER_ADDR_CHANGE,
SCTP_SEND_FAILED_EVENT};
char buffer[80];
- int i, n;
+ unsigned int i;
+ int n;
if (argc < 3) {
printf("%s", "Usage: client remote_addr remote_port local_port local_encaps_port remote_encaps_port\n");
@@ -381,7 +382,7 @@ main(int argc, char *argv[... |
Add unit test for float encoding
PR <https://github.com/Genymobile/scrcpy/pull/3369> | @@ -67,6 +67,17 @@ static void test_read64be(void) {
assert(val == 0xABCD1234567890EF);
}
+static void test_float_to_u16fp(void) {
+ assert(sc_float_to_u16fp(0.0f) == 0);
+ assert(sc_float_to_u16fp(0.03125f) == 0x800);
+ assert(sc_float_to_u16fp(0.0625f) == 0x1000);
+ assert(sc_float_to_u16fp(0.125f) == 0x2000);
+ asse... |
Make sure that a cert with extensions gets version number 2 (v3)
Fixes | @@ -1735,7 +1735,6 @@ static int do_body(X509 **xret, EVP_PKEY *pkey, X509 *x509,
/* Lets add the extensions, if there are any */
if (ext_sect) {
X509V3_CTX ctx;
- X509_set_version(ret, 2);
/* Initialize the context structure */
if (selfsign)
@@ -1790,6 +1789,15 @@ static int do_body(X509 **xret, EVP_PKEY *pkey, X509 *... |
Scorecard Write-All Permission | @@ -9,18 +9,13 @@ on:
pull_request:
branches: [ main ]
-# Declare default permissions as read only.
-permissions: read-all
+# Declare default permissions as write.
+permissions: write-all
jobs:
analysis:
name: Scorecards analysis
runs-on: ubuntu-latest
- permissions:
- # Needed to upload the results to code-scanning da... |
out_prometheus_exporter: disable http stop on exit | @@ -106,7 +106,7 @@ static int cb_prom_exit(void *data, struct flb_config *config)
{
struct prom_exporter *ctx = data;
- prom_http_server_stop(ctx->http);
+ //FIXME: prom_http_server_stop(ctx->http);
prom_http_server_destroy(ctx->http);
flb_free(ctx);
|
pbio/drivebase: include motor ratio in geometry
This way, all geometry is captured in the same variable (the control unit scaler) and all control can be performed as counts. | @@ -179,34 +179,53 @@ static pbio_error_t pbio_drivebase_setup(pbio_drivebase_t *db,
return err;
}
- // Individual servos
- db->left = left;
- db->right = right;
-
// Drivebase geometry
if (wheel_diameter <= 0 || axle_track <= 0) {
return PBIO_ERROR_INVALID_ARG;
}
+ // Assert that both motors have the same gearing
+ if... |
proxy: fix flushing partial writes
If we got a partial write while flushing commands to the backend it was
not advancing the IOV pointer properly and re-flushing the same data.
This would usually lead to a "CLIENT_ERROR bad data chunk" from the
server for set commands.
I super love/hate scatter/gather code... | @@ -970,6 +970,7 @@ static int _flush_pending_write(mcp_backend_t *be) {
iov->iov_len = 0;
} else {
iov->iov_len -= sent;
+ iov->iov_base = (char *)iov->iov_base + sent;
sent = 0;
flushed = false;
break;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.