message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
parser: on exception release time offset (CID 300959) | @@ -582,6 +582,9 @@ int flb_parser_conf_file(const char *file, struct flb_config *config)
if (time_key) {
flb_sds_destroy(time_key);
}
+ if (time_offset) {
+ flb_sds_destroy(time_offset);
+ }
if (types_str) {
flb_sds_destroy(types_str);
}
|
ci: refactor pipeline to reduce copy-paste | -_pipeline: &pipeline
- info_script: |
- meson --version
- ninja --version
+.compile: &compile
submodule-update_script: git submodule update --init --recursive
configure_script: meson -Db_lundef=false build
compile_script: ninja -C build
+.test: &test
+ test_script: ninja -C build test
+
+.pipeline: &pipeline
+ info_sc... |
imports VERSION from version.py into setup.py | @@ -2,9 +2,24 @@ from setuptools import setup, find_packages
PACKAGE = 'catboost'
+def execfile(filepath, globals=None, locals=None):
+ if globals is None:
+ globals = {}
+ globals.update({
+ "__file__": filepath,
+ "__name__": "__main__",
+ })
+ with open(filepath, 'rb') as file:
+ exec(compile(file.read(), filepath, ... |
Report HealthState = Non-Functional if DDRT is not trained
On the ipmctl show -dimm display, we need to sometimes
override what the HealthState value is (from the FIS SMART and
Health Info command) due to other circumstances. This change adds
the non-functional property to these overriding values. | @@ -726,12 +726,15 @@ GetDimmInfo (
pDimmInfo->ErrorMask |= DIMM_INFO_ERROR_UID;
}
+ // Set defaults first
+ pDimmInfo->ManageabilityState = MANAGEMENT_VALID_CONFIG;
+ pDimmInfo->HealthState = HEALTH_UNKNOWN;
+ // Then change as needed.
if (!IsDimmManageable(pDimm)) {
pDimmInfo->ManageabilityState = MANAGEMENT_INVALID_... |
Floats working fro value mapping | @@ -241,8 +241,8 @@ int64_t _lv_pow(int64_t base, int8_t exp)
*/
LV_ATTRIBUTE_FAST_MEM int16_t _lv_map(int16_t x, float min_in, float max_in, float min, float max)
{
- int16_t slope = (max - min) / (max_in - min_in);
- int16_t bias = min - slope * min_in;
+ float slope = (max - min) / (max_in - min_in);
+ float bias = ... |
remove DTRACE_TESTS=1 from `asan` target | @@ -44,7 +44,6 @@ ossl3.0:
asan:
docker run $(DOCKER_RUN_OPTS) h2oserver/h2o-ci:ubuntu2004 \
- env DTRACE_TESTS=1 \
make -f $(SRC_DIR).ro/misc/docker-ci/check.mk _check \
CMAKE_ARGS='-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_FLAGS=-fsanitize=address -DCMAKE_CXX_FLAGS=-fsanitize=address' \
BUILD_AR... |
Change Tika server start command to include classpath (required to
declare and load additionnal packages like NER) | @@ -16,7 +16,7 @@ cmd_start() {
exit 1
fi
echo "Starting Tika Server"
- nohup "$JAVA_HOME/bin/java" -Dlog4j2.configurationFile=file:$TIKA_SERVER_HOME/conf/log4j2.properties.xml -Duser.timezone=UTC $TIKA_MEM -jar $TIKA_SERVER_HOME/bin/tika-server.jar -c $TIKA_SERVER_HOME/conf/tika-config.xml >/dev/null 2>&1 &
+ nohup "$... |
reduce page retire words to 32 | @@ -396,7 +396,7 @@ void _mi_page_retire(mi_page_t* page) {
// is the only page left with free blocks. It is not clear
// how to check this efficiently though... for now we just check
// if its neighbours are almost fully used.
- if (mi_likely(page->block_size <= MI_SMALL_SIZE_MAX)) {
+ if (mi_likely(page->block_size <... |
hv: fix potential NULL pointer reference in hc_assgin_ptdev
this patch validates input 'vdev->pdev' before
reference to avoid potenial hypervisor crash.
[v2] update:
Combine condition check for 'vdev' and 'vdev->pdev' | @@ -836,7 +836,7 @@ int32_t hcall_assign_ptdev(struct acrn_vm *vm, uint16_t vmid, uint64_t param)
spinlock_obtain(&vm->vpci.lock);
vdev = pci_find_vdev(&vm->vpci, bdf);
- if (vdev == NULL) {
+ if ((vdev == NULL) || (vdev->pdev == NULL)) {
pr_fatal("%s %x:%x.%x not found\n", __func__, bdf.bits.b, bdf.bits.d, bdf.bits.f)... |
Modify is_tls13_capable() to take account of the servername cb
A servername cb may change the available certificates, so if we have one
set then we cannot rely on the configured certificates to determine if we
are capable of negotiating TLSv1.3 or not.
Fixes | @@ -1515,8 +1515,8 @@ static int ssl_method_error(const SSL *s, const SSL_METHOD *method)
/*
* Only called by servers. Returns 1 if the server has a TLSv1.3 capable
- * certificate type, or has PSK or a certificate callback configured. Otherwise
- * returns 0.
+ * certificate type, or has PSK or a certificate callback ... |
Remove second cropping of multiple choice text | @@ -136,8 +136,8 @@ export const actorFramesPerDir = (spriteType, numFrames) => {
};
export const combineMultipleChoiceText = (args) => {
- const trueText = args.trueText.slice(0, 17) || "Choice A";
- const falseText = args.falseText.slice(0, 17) || "Choice B";
+ const trueText = args.trueText || "Choice A";
+ const fa... |
admin/lmod: clean up .spec to not use undefined %{luaver} | @@ -24,12 +24,14 @@ Url: https://github.com/TACC/Lmod
Source0: https://github.com/TACC/Lmod/archive/%{version}.tar.gz#$/%{pname}-%{version}.tar.gz
# Known dependencies
-Requires: lua >= %{luaver}
+Requires: lua
Requires: tcl
-BuildRequires: lua >= %{luaver}
-BuildRequires: lua-devel >= %{luaver}
+BuildRequires: lua
+Bu... |
"one statistics flush" throws assert when one counter not added | @@ -1289,6 +1289,9 @@ vnet_lisp_flush_stats (void)
vlib_combined_counter_main_t *cm = &lgm->counters;
u32 i;
+ if (cm->counters == NULL)
+ return 0;
+
for (i = 0; i < vlib_combined_counter_n_counters (cm); i++)
vlib_zero_combined_counter (cm, i);
|
VERSION bump to version 2.0.266 | @@ -61,7 +61,7 @@ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
# set version of the project
set(LIBYANG_MAJOR_VERSION 2)
set(LIBYANG_MINOR_VERSION 0)
-set(LIBYANG_MICRO_VERSION 265)
+set(LIBYANG_MICRO_VERSION 266)
set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION}... |
Fix find handles regex type filter | @@ -768,17 +768,12 @@ static BOOLEAN MatchTypeString(
_In_ PPH_HANDLE_SEARCH_CONTEXT Context,
_In_ PPH_STRINGREF Input
)
-{
- if (Context->SearchRegexCompiledExpression && Context->SearchRegexMatchData)
- return TRUE;
- else
{
if (PhEqualString2(Context->SearchTypeString, L"Everything", FALSE))
return TRUE;
return PhFi... |
CI: windows fixes again | @@ -48,7 +48,7 @@ jobs:
uses: microsoft/setup-msbuild@v1.1
- name: build
working-directory: ./projects/vs2019/
- run: msbuild ./wren_cli.vcxproj /property:Configuration=Release /property:Platform=64bit
+ run: msbuild ./wren_cli.sln /property:Configuration=Release /property:Platform=64bit
- uses: actions/upload-artifact... |
Fix build warning regarding define syntax in debug.h | @@ -137,7 +137,8 @@ Once LOGM is approved, each module should have its own index
#define LOGM_PRI (1)
#define LOGM_EN (2)
-#if defined(CONFIG_DEBUG_ERROR) && defined(CONFIG_LOGM)
+#ifdef CONFIG_DEBUG_ERROR
+#ifdef CONFIG_LOGM
#define dbg(format, ...) \
logm(LOGM_EN, LOGM_IDX, LOGM_PRI, EXTRA_FMT format EXTRA_ARG, ##__V... |
BugID:16179547: modified the uData queue stack size | #define UDATA_QUEUE_MAXSLOTS 8
+#ifndef UDATA_TASK_STACK_SIZE
#define UDATA_TASK_STACK_SIZE 4096 // 4kByte
+#endif
#define UDATA_TASK_PRIO \
(AOS_DEFAULT_APP_PRI - 2) // higher prio than normal app's
#define UDATA_QUEUE_MAX_MSG_SIZE (sizeof(sensor_msg_pkg_t))
|
Add tests for the effect of --extra-version-suffix
should append to both psql 'select version()' and also to 'gpssh --version' | @@ -9,3 +9,6 @@ ${CURRENT_DIR}/gpdb_src/concourse/scripts/setup_gpadmin_user.bash
su - gpadmin ${CURRENT_DIR}/gpdb_src/concourse/scripts/deb_init_cluster.bash
su - gpadmin ${CURRENT_DIR}/gpdb_src/concourse/scripts/deb_test_cluster.bash
+su - gpadmin -c "source /opt/gpdb/greenplum_path.sh && psql -t -U gpadmin template1... |
error messages should go to stderr | @@ -69,7 +69,7 @@ int grib_tool_init(grib_runtime_options* options)
options->dump_mode = "default";
if (opt > 1) {
- printf("%s: simultaneous j/O/D options not allowed\n", tool_name);
+ fprintf(stderr, "%s: simultaneous j/O/D options not allowed\n", tool_name);
exit(1);
}
|
appveyor.yml: Let 'nmake' do builds in parallel on all CPU cores | @@ -62,6 +62,7 @@ build_script:
- ps: >-
If ($env:Configuration -Match "shared" -or $env:EXTENDED_TESTS) {
cmd /c "%NMAKE% build_all_generated 2>&1"
+ # Unfortunately, CL=/MP would not have parallelizing effect
cmd /c "%NMAKE% PERL=no-perl 2>&1"
}
- cd ..
@@ -70,6 +71,7 @@ test_script:
- cd _build
- ps: >-
If ($env:Con... |
include/throttle_ap.h: Format with clang-format
BRANCH=none
TEST=none
Tricium: disable | @@ -62,8 +62,7 @@ struct prochot_cfg {
defined(CONFIG_THROTTLE_AP_ON_BAT_DISCHG_CURRENT) || \
defined(CONFIG_THROTTLE_AP_ON_BAT_VOLTAGE)
-void throttle_ap(enum throttle_level level,
- enum throttle_type type,
+void throttle_ap(enum throttle_level level, enum throttle_type type,
enum throttle_sources source);
/**
@@ -10... |
New ws test | @@ -41,6 +41,22 @@ coroutine void nohttp_client(int s) {
errno_assert(rc == 0);
}
+coroutine void http_client(int s) {
+ s = ws_attach_client(s, "/", "www.example.org", WS_BINARY, -1);
+ errno_assert(s >= 0);
+ int rc = msend(s, "ABC", 3, -1);
+ errno_assert(rc == 0);
+ char buf[3];
+ ssize_t sz = mrecv(s, buf, sizeof(... |
Fix test title in storage/remote test. | @@ -183,7 +183,7 @@ testRun(void)
TEST_RESULT_STR_Z(info.group, testGroup(), " check group");
// -------------------------------------------------------------------------------------------------------------------------
- TEST_TITLE("protocol output that is not tested elsewhere (basic)");
+ TEST_TITLE("protocol output t... |
HV: remove one lock for ctx->flags operation.
for ctx->flags is protected by scheduler lock, so not need
to set lock again.
Acked-by: Eddie Dong | @@ -112,7 +112,7 @@ void make_reschedule_request(uint16_t pcpu_id, uint16_t delmode)
{
struct sched_context *ctx = &per_cpu(sched_ctx, pcpu_id);
- bitmap_set_lock(NEED_RESCHEDULE, &ctx->flags);
+ bitmap_set_nolock(NEED_RESCHEDULE, &ctx->flags);
if (get_pcpu_id() != pcpu_id) {
switch (delmode) {
case DEL_MODE_IPI:
@@ -1... |
ci: increase parallel UT count for few jobs | @@ -478,7 +478,7 @@ UT_001:
UT_002:
extends: .unit_test_esp32_template
- parallel: 14
+ parallel: 15
tags:
- ESP32_IDF
- UT_T1_1
@@ -683,7 +683,7 @@ UT_S2_SDSPI:
UT_C3:
extends: .unit_test_esp32c3_template
- parallel: 32
+ parallel: 33
tags:
- ESP32C3_IDF
- UT_T1_1
|
remove info about .. spelling:: from last section | @@ -369,8 +369,6 @@ Things To Consider Going Forward
*zone*/*cell*/*element* and *node*/*point*/*vertex*
* Additional features of Sphinx to consider adopting...
- * Using ``.. spelling::`` directives to limit scope of special case words to
- the ``.rst`` files in which they occur.
* ``:guilable:`` role for referring to... |
Update Date string every second | @@ -45,12 +45,13 @@ static inline void add_date(http_s *r) {
if (!mod_hash)
mod_hash = fiobj_sym_hash("last-modified", 13);
- if (facil_last_tick().tv_sec >= last_date_added + 60) {
- FIOBJ tmp = fiobj_str_buf(32);
- fiobj_str_resize(
- tmp, http_time2str(fiobj_obj2cstr(tmp).data, facil_last_tick().tv_sec));
+ if (faci... |
Add unit test for ippDeleteValues. | @@ -18,6 +18,7 @@ Changes in CUPS v2.4.3 (TBA)
- Fixed invalid memory access during generating IPP Everywhere queue (Issue #466)
- Fixed memory leaks in `create_local_bg_thread()` (Issue #466)
- Fixed TLS certificate generation bugs.
+- `ippDeleteValues` would not delete the last value (Issue #556)
- Ignore some of IPP... |
Add actorGetPosition to codegen | @@ -1030,6 +1030,28 @@ class ScriptBuilder {
this._addNL();
};
+ actorGetPosition = (variableX: string, variableY: string) => {
+ const variableXAlias = this.getVariableAlias(variableX);
+ const variableYAlias = this.getVariableAlias(variableY);
+
+ this._addComment(`Store Position In Variables`);
+ this._actorGetPosit... |
CMSIS-DSP: Bug correction in SDF.
Problems with slidding buffer. | @@ -221,6 +221,7 @@ class SlidingBuffer: public GenericNode<IN,windowSize-overlap,IN,windowSize>
public:
SlidingBuffer(FIFOBase<IN> &src,FIFOBase<IN> &dst):GenericNode<IN,windowSize-overlap,IN,windowSize>(src,dst)
{
+ static_assert((windowSize-overlap)>0, "Overlap is too big");
memory.resize(overlap);
};
@@ -229,7 +230... |
[catboost/R] Fix S3 generic/method consistency warning
Fix this WARNING issued by R check:
* checking S3 generic/method consistency ... WARNING
print:
function(x, ...)
print.catboost.Pool:
function(pool, ...) | @@ -367,13 +367,13 @@ tail.catboost.Pool <- function(x, n = 10, ...) {
#'
#' Print dimensions of catboost.Pool.
#'
-#' @param pool a catboost.Pool object
+#' @param x a catboost.Pool object
#'
#' Default value: Required argument
#' @param ... not currently used
#' @export
-print.catboost.Pool <- function(pool, ...) {
-... |
make test: Stop downloading pip.
Use the installed version of pip. If a newer version of pip is needed,
it can be specified in requirements.txt. This is to improve idempotence
by providing some control over upstream changes. | @@ -79,7 +79,6 @@ PYTHON_DEPENDS=$(PYTHON_EXTRA_DEPENDS) -r requirements.txt
SCAPY_SOURCE=$(shell find $(VENV_PATH)/lib/$(PYTHON) -name site-packages)
BUILD_COV_DIR=$(TEST_DIR)/coverage
-GET_PIP_SCRIPT=$(TEST_RUN_DIR)/get-pip.py
PIP_INSTALL_DONE=$(TEST_RUN_DIR)/pip-install.done
PIP_PATCH_DONE=$(TEST_RUN_DIR)/pip-patch.... |
Align the "; Next union/fragment" comments with their symbols | @@ -469,9 +469,11 @@ static uint16_t writeMapBank(struct SortedSections const *sectList,
if (sect->nextu) {
// Announce the following "piece"
if (sect->nextu->modifier == SECTION_UNION)
- fprintf(mapFile, "\t\t; Next union\n");
+ fprintf(mapFile,
+ "\t ; Next union\n");
else if (sect->nextu->modifier == SECTION_FRAGMEN... |
pick up atomic bit clear fix | @@ -345,12 +345,12 @@ void kernel_unlock();
// wakeup
static inline void atomic_set_bit(u64 *target, u64 bit)
{
- __asm__("lock btsq %1, %0": "+m"(*target): "r"(bit));
+ asm volatile("lock btsq %1, %0": "+m"(*target): "r"(bit) : "memory");
}
static inline void atomic_clear_bit(u64 *target, u64 bit)
{
- __asm__("lock bt... |
replace fd with mmapfd in adc-test-server.c | @@ -42,8 +42,8 @@ int main ()
return 1;
}
- slcr = mmap(NULL, sysconf(_SC_PAGESIZE), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0xF8000000);
- axi_hp0 = mmap(NULL, sysconf(_SC_PAGESIZE), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0xF8008000);
+ slcr = mmap(NULL, sysconf(_SC_PAGESIZE), PROT_READ|PROT_WRITE, MAP_SHARED, mmapfd, 0x... |
netutils/netlib/netlib_getarptab.c: Do not initialize response buffer, it is write-only. Also add a check to assue that the sequence number in the response is the same as the sequence number in the request. | @@ -168,19 +168,7 @@ ssize_t netlib_get_arptable(FAR struct arp_entry_s *arptab, unsigned int nentrie
goto errout_with_socket;
}
- /* Initialize the response buffer.
- * REVISIT: Linux examples that I have seen just pass a raw buffer. I am
- * not sure how they associate the requested data to the recv() without a
- * s... |
hv:enable the O2 option for HV
commit removed O2 option improperly,
this patch re-enable it. | @@ -74,6 +74,7 @@ CFLAGS += -m64 -mno-mmx -mno-sse -mno-sse2 -mno-80387 -mno-fp-ret-in-387
CFLAGS += -mno-red-zone
CFLAGS += -nostdinc -nostdlib -fno-common
CFLAGS += -Werror
+CFLAGS += -O2
ifeq (y, $(CONFIG_RELOC))
CFLAGS += -fpie
else
|
Refactor Certificate | @@ -508,7 +508,7 @@ int mbedtls_ssl_tls13_parse_certificate( mbedtls_ssl_context *ssl,
MBEDTLS_SSL_CHK_BUF_READ_PTR( p, certificate_list_end, extensions_len );
extensions_end = p + extensions_len;
- handshake->received_extensions = MBEDTLS_SSL_EXT_NONE;
+ handshake->received_extensions = MBEDTLS_SSL_EXT_MASK_NONE;
whil... |
add Fedora building instructions | @@ -105,6 +105,18 @@ git clone --recursive https://github.com/nesbox/TIC-80 && cd TIC-80/build
cmake ..
make -j4
```
+
+### Fedora
+
+run the following commands in the Terminal
+```
+sudo dnf -y groupinstall "Development Tools"
+sudo dnf -y install git cmake libglvnd-devel libglvnd-gles freeglut-devel
+git clone --recu... |
dnsmasq: add support for ttl cache and filtering ipv6 record | @@ -184,6 +184,11 @@ return L.view.extend({
s.taboption('files', form.DynamicList, 'addnhosts',
_('Additional Hosts files')).optional = true;
+ o = s.taboption('advanced', form.Flag, 'filter_aaaa',
+ _('Disable IPv6 DNS forwards'),
+ _('Filter IPv6(AAAA) DNS Query Name Resolve'));
+ o.optional = true;
+
o = s.taboption... |
smaller window image | [](LICENSE.md)
[](https://bestpractices.coreinfrastructure.org/projects/2799)
-
+ {
int diff = 0;
const char *parsed_url = json_array_get_string(dependency_urls, k);
-
+ if (parsed_url) {
strcmp_s(oe->dependencies.deps[k]->url, ACVP_ATTR_URL_MAX,
parsed_url, &diff);
if (diff != 0) {
@@... |
Delete recently documented functions from missingcrypto | @@ -768,7 +768,6 @@ PKCS12_SAFEBAG_create_cert
PKCS12_SAFEBAG_create_crl
PKCS12_SAFEBAG_create_pkcs8_encrypt
PKCS12_SAFEBAG_get0_attr
-PKCS12_SAFEBAG_get0_attrs
PKCS12_SAFEBAG_get0_p8inf
PKCS12_SAFEBAG_get0_pkcs8
PKCS12_SAFEBAG_get0_safes
@@ -778,21 +777,14 @@ PKCS12_SAFEBAG_get1_crl
PKCS12_SAFEBAG_get_bag_nid
PKCS12_S... |
Ruby libtools: install kdbtools + fix build process | @@ -57,8 +57,29 @@ else()
set (CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_SWIG_OUTDIR}")
set (CMAKE_SWIG_FLAGS "-O;-autorename;-DSWIG_NO_EXPORT_ITERATOR_METHODS;-DSWIG_WITHOUT_OVERRIDE")
+ # specify the SWIG_TYPE_TABLE to use (has to be in sync with the ruby plugin)
+ set (SWIG_COMPILE_FLAGS "${SWIG_COMPILE_FLAGS} -DSWIG_... |
Reset iVerbose in examples/AtmEscKepler-36 to 0. | @@ -36,7 +36,7 @@ saOutputOrder Time -EnvelopeMass Radius
system = """#
sSystemName kepler36
-iVerbose 5
+iVerbose 0
bOverwrite 1
saBodyFiles star.in %s
sUnitMass solar
|
GCC 11 build fix
During Adafruit Bootloader compilation, I spotted bellow error which do not allow me build project.
``` c
inlined from 'hfclk_running' at lib/tinyusb/src/portable/nordic/nrf5x/dcd_nrf5x.c:785:13:
lib/tinyusb/src/portable/nordic/nrf5x/dcd_nrf5x.c:792:31: error: 'is_running' may be used uninitialized [-W... | @@ -787,7 +787,7 @@ static bool hfclk_running(void)
#ifdef SOFTDEVICE_PRESENT
if ( is_sd_enabled() )
{
- uint32_t is_running;
+ uint32_t is_running = 0;
(void) sd_clock_hfclk_is_running(&is_running);
return (is_running ? true : false);
}
|
BUFR encoding memory leaks (part 5) | @@ -2944,10 +2944,6 @@ static int process_elements(grib_accessor* a, int flag, long onlySubset, long st
grib_vsarray_delete(c, self->stringValues);
self->stringValues = NULL;
}
- // if (do_clean == 1 && self->tempDoubleValues) {
- // grib_vdarray_delete_content(c, self->tempDoubleValues);
- // grib_vdarray_delete(c, se... |
Parameter: Disable mpfit-velocity | @@ -92,7 +92,7 @@ typedef struct MPFITData {
int record_reprojection_error;
FLT current_bias, obj_up_variance, lh_up_variance, stationary_obj_up_variance;
- int model_velocity;
+ bool model_velocity;
bool globalDataAvailable;
struct survive_async_optimizer *async_optimizer;
@@ -100,7 +100,7 @@ typedef struct MPFITData ... |
config_tools: hide syntactic error message from configurator ui
hide syntactic error message from configurator ui | @@ -381,7 +381,7 @@ export default {
translateErrors(errors, scenarioData) {
let formErrors = {}
- let translate = error => {
+ let translate = errorType => error => {
error.paths.forEach(path => {
let formPath = path.split('/')[2];
// translate form path to scenario vmid
@@ -398,15 +398,17 @@ export default {
if (!for... |
globally disable tcp proxy in +http-config | ++ host (each turf @if) :: http host
++ hoke %+ each {$localhost ~} :: local host
?($.0.0.0.0 $.127.0.0.1) ::
- :: +http-config: full http-server configuration
- ::
- += http-config
- $: :: secure: PEM-encoded RSA private key and cert or cert chain
- ::
- secure=(unit [key=wain cert=wain])
- :: proxy: reverse TCP proxy... |
cc3200/mods: Include stream.h to get definition of mp_stream_p_t. | #ifndef MICROPY_INCLUDED_CC3200_MODS_MODUSOCKET_H
#define MICROPY_INCLUDED_CC3200_MODS_MODUSOCKET_H
+#include "py/stream.h"
+
extern const mp_obj_dict_t socket_locals_dict;
extern const mp_stream_p_t socket_stream_p;
|
Removing tabs and fixing doxygen formatting | @@ -421,7 +421,7 @@ int mbedtls_ecdsa_sign( mbedtls_ecp_group *grp, mbedtls_mpi *r, mbedtls_mpi *s,
/*
* Deterministic signature wrapper
*
- * \note The f_rng_blind parameter must not be \c NULL.
+ * note: The f_rng_blind parameter must not be NULL.
*
*/
static int ecdsa_sign_det_restartable( mbedtls_ecp_group *grp,
|
highlevel: fix memory leak | @@ -88,6 +88,7 @@ Elektra * elektraOpen (const char * application, KeySet * defaults, KeySet * con
{
keyDel (contractCut);
ksDel (highlevelContract);
+ ksDel (contract); // consume contract, like kdbEnsure would
return NULL;
}
}
|
IsFlat: inline when possible | @@ -977,7 +977,8 @@ static void SwapOut(VP8EncIterator* const it) {
SwapPtr(&it->yuv_out_, &it->yuv_out2_);
}
-static int IsFlat(const int16_t* levels, int num_blocks, int thresh) {
+static WEBP_INLINE int IsFlat(const int16_t* levels, int num_blocks,
+ int thresh) {
int score = 0;
while (num_blocks-- > 0) { // TODO(sk... |
fix llvm compilation error
The following changes from llvm 10
changed MCDisassembler::getInstruction() signature.
Do the corresponding change in bcc_debug.cc to fix the issue. | @@ -201,8 +201,13 @@ void SourceDebugger::dump() {
string src_dbg_str;
llvm::raw_string_ostream os(src_dbg_str);
for (uint64_t Index = 0; Index < FuncSize; Index += Size) {
+#if LLVM_MAJOR_VERSION >= 10
+ S = DisAsm->getInstruction(Inst, Size, Data.slice(Index), Index,
+ nulls());
+#else
S = DisAsm->getInstruction(Inst... |
bugfix for op_jmpuw. | @@ -923,15 +923,22 @@ static inline int op_jmpuw( mrbc_vm *vm, mrbc_value *regs )
// Check ensure
const mrbc_irep_catch_handler *handler = catch_handler_find(vm, 0, MRBC_CATCH_FILTER_ENSURE);
- if( handler ){
- vm->inst = vm->cur_irep->inst + bin_to_uint32(handler->target);
- vm->exc.tt = MRBC_TT_BREAK;
- vm->exc.jmpuw... |
OcAppleKernelLib: Consider positive replace count as successful and log replace mismatch | @@ -160,8 +160,16 @@ PatcherApplyGenericPatch (
Patch->Skip
);
- if ((ReplaceCount > 0 && Patch->Count == 0)
- || (ReplaceCount == Patch->Count && Patch->Count > 0)) {
+ if (ReplaceCount > 0 && Patch->Count > 0 && ReplaceCount != Patch->Count) {
+ DEBUG ((
+ DEBUG_INFO,
+ "Performed only %u replacements out of %u\n",
+... |
For integration tests, restore download from cdn.
This effectively undoes pull request | @@ -55,9 +55,9 @@ stages:
targetFolder: ${{ format('dl/scope/branch/{0}/', variables['Build.SourceBranchName']) }}
filesAcl: 'public-read'
- stage: integration_tests
- displayName: Run integraion tests
+ displayName: Run integration tests
dependsOn: build
- #condition: and(succeeded(), eq(variables['Build.SourceBranch'... |
BugID:17338742:delete old benchmarks and perf | @@ -9,9 +9,4 @@ GLOBAL_DEFINES += AOS_NO_WIFI
$(NAME)_COMPONENTS := yloop cli
-ifeq ($(BENCHMARKS),1)
-$(NAME)_COMPONENTS += benchmarks
-GLOBAL_DEFINES += CONFIG_CMD_BENCHMARKS
-endif
-
GLOBAL_INCLUDES += ./
|
FIXed KeyboardDisplayRequiresUserAction on CWebViewImpl | @@ -203,6 +203,9 @@ public:
//Android only
virtual void save( const rho::String& format, const rho::String& path, int tabIndex, rho::apiGenerator::CMethodResult& oResult){}
//
+
+ void getKeyboardDisplayRequiresUserAction(rho::apiGenerator::CMethodResult& oResult){}
+ void setKeyboardDisplayRequiresUserAction( bool key... |
docs; fix blog template missing links and wrong paths | <nav class="small">
<table>
<tr>
- <td><a href="getting-started.html">Getting Started</a></td>
- <td><a href="contributing.html">Contributing</a></td>
+ <td>
+ <ul>
+ <li><a href="../getting-started.html">Getting Started</a></li>
+ <li><a href="../contributing.html">Contributing</a></li>
+ <li><a href="../blog">Blog</a... |
Use SSL by default | @@ -54,6 +54,8 @@ DYLIB_MAKE_CMD=$(CC) -shared -Wl,-soname,$(DYLIB_MINOR_NAME) -o $(DYLIBNAME) $(L
STLIBNAME=$(LIBNAME).$(STLIBSUFFIX)
STLIB_MAKE_CMD=$(AR) rcs $(STLIBNAME)
+USE_SSL:=1
+
ifdef USE_SSL
# This is the prefix of openssl on my system. This should be the sane default
# based on the platform
|
Encrypt Coverity Scan variables for use with NLnet Labs repository | @@ -97,8 +97,8 @@ submit_to_coverity_scan: &submit_to_coverity_scan
"https://scan.coverity.com/builds"
env:
- COVERITY_EMAIL: ENCRYPTED[23892f3093e665828e3d67570ed20ee54c4740eb44b26770eb2e43b44427d3c2cf9452d829d6fc226553b0cf6f2a5192]
- COVERITY_SCAN_TOKEN: ENCRYPTED[58f70d80a6be95eb448c57f958c7d5f4b4d93a3c5bc6c5deff246... |
error: Removed strerror from method which does not set errno | @@ -75,8 +75,8 @@ int elektraPortInfo (Key * toCheck, Key * parentKey)
service = getservbyname (keyString (toCheck), NULL); // NULL means we accept both tcp and udp
if (service == NULL)
{
- ELEKTRA_SET_VALIDATION_SEMANTIC_ERRORF (parentKey, "Could not find service with name %s on key %s. Reason: %s",
- keyString (toChe... |
test for HTTPS added | @@ -21,6 +21,7 @@ tests_general.append([1, 0, workdir + 'client_http_get -u /cgi-bin/he -v 2 not.r
tests_general.append([1, 0, workdir + 'client_http_get -u /cgi-bin/he -v 2 buildbot.nplab.de'])
tests_general.append([0, 0, workdir + 'client_http_get -n 2 -u /files/4M bsd10.nplab.de'])
if (platform.system() == "FreeBSD"... |
Wii port now correctly exit to homebrew channel | @@ -41,7 +41,7 @@ char rootDir[MAX_FILENAME_LEN]; // note: this one ends with a slash
*/
char* getFullPath(char *relPath)
{
- static char filename[256];
+ static char filename[MAX_FILENAME_LEN];
strcpy(filename, rootDir);
strcat(filename, relPath);
return filename;
@@ -54,7 +54,7 @@ void borExit(int reset)
else if(rese... |
Update duckduckgo format | @@ -179,7 +179,7 @@ VOID PhAddDefaultSettings(
PhpAddIntegerSetting(L"SampleCount", L"200"); // 512
PhpAddIntegerSetting(L"SampleCountAutomatic", L"1");
PhpAddIntegerSetting(L"ScrollToNewProcesses", L"0");
- PhpAddStringSetting(L"SearchEngine", L"https://www.duckduckgo.com/?q=\"%s\"");
+ PhpAddStringSetting(L"SearchEng... |
docs: fix minor typo in COPY command. | @@ -400,13 +400,13 @@ COPY {table [(<varname>column</varname> [, ...])] | (<varname>query</varname>)}
with the <codeph>COPY TO</codeph> command. The <codeph>COPY</codeph> command might return
table distribution policy errors, if you attempt to restore table data and the table
distribution policy was changed after the <... |
Improve Luos engine compilation script prints | @@ -12,6 +12,8 @@ visited_key = "__LUOS_CORE_SCRIPT_CALLED"
global_env = DefaultEnvironment()
if not visited_key in global_env:
+ click.secho("")
+ click.secho("Luos engine build configuration:", underline=True)
# install pyluos
try:
import pyluos
@@ -19,7 +21,6 @@ if not visited_key in global_env:
except ImportError: ... |
out BUGFIX trim print and opque nodes
Fixes cesnet/netopeer2#952 | @@ -43,7 +43,7 @@ ly_should_print(const struct lyd_node *node, uint32_t options)
if (node->flags & LYD_DEFAULT) {
/* implicit default node/NP container with only default nodes */
return 0;
- } else if (node->schema->nodetype & LYD_NODE_TERM) {
+ } else if (node->schema && (node->schema->nodetype & LYD_NODE_TERM)) {
if ... |
README.md: add missing pointer to tools/mountsnoop.py
add missing pointer to tools/mountsnoop.py | @@ -118,8 +118,9 @@ pair of .c and .py files, and some are directories of files.
- tools/[killsnoop](tools/killsnoop.py): Trace signals issued by the kill() syscall. [Examples](tools/killsnoop_example.txt).
- tools/[llcstat](tools/llcstat.py): Summarize CPU cache references and misses by process. [Examples](tools/llcst... |
fixed touch for player 1 on android (multiple buttons bug) | @@ -589,6 +589,7 @@ void control_update(s_playercontrols ** playercontrols, int numplayers)
}
#ifdef ANDROID
+ if (player <= 0) {
for(i=0;i<JOY_MAX_INPUTS;i++)
{
t = touch_control.settings[i];
@@ -596,6 +597,7 @@ void control_update(s_playercontrols ** playercontrols, int numplayers)
if(keystate_def[t]) k |= (1<<i);
}
... |
BugId:19028262: Fix Config.in for mcu esp32 | @@ -2,12 +2,12 @@ config AOS_MCU_ESP32
bool
select AOS_COMP_LWIP
select AOS_COMP_ALICRYPTO
- select AOS_COMP_BT_HOST if BLE_CONFIG = 0
+ select AOS_COMP_BT_HOST if BLE_CONFIG != 0
select AOS_COMP_NETMGR
select AOS_COMP_IMBEDTLS
select AOS_ARCH_XTENSA_LX6 if OSAL_CONFIG = rhino
select AOS_COMP_RHINO if OSAL_CONFIG = rhi... |
doc: fix STDOUT for storage plugin tutorial and cleanup | @@ -230,9 +230,11 @@ kdb meta-ls /tests/hosts/ipv4/localhost
kdb meta-get /tests/hosts/ipv4/localhost 'comment/#0'
#> test comment
-```
-As you can see the Key that corresponds to the respective line in the hosts file has additional meta-information. This way comments in the configuration file can easily be imported in... |
Fix input color for ReactSelect in dark theme | @@ -242,6 +242,11 @@ textarea {
font-size: 11px;
}
+.FormField .ReactSelect__input {
+ color: var(--input-text-color);
+ font-size: 11px;
+}
+
.FormField .ReactSelect__control--is-focused {
border: 1px solid transparent !important;
box-shadow: 0 0 0px 2px var(--highlight-color);
|
[chainmaker][#436]add macro define | @@ -25,9 +25,11 @@ extern Suite *make_wallet_suite(void);
extern Suite *make_parameters_suite(void);
extern Suite *make_contract_suite(void);
-char chainmaker_sign_key_buf[1024];
-char chainmaker_sign_cert_buf[1024];
-char chainmaker_ca_cert_buf[1024];
+#define CERT_PRIKEY_LEN 1024
+
+char chainmaker_sign_key_buf[CERT_... |
Persistence configuration is optional if payment-processing is disabled and the pool is in relay-mode | @@ -502,10 +502,12 @@ namespace MiningCore
private static void ConfigurePersistence(ContainerBuilder builder)
{
- if (clusterConfig.Persistence == null)
+ if (clusterConfig.Persistence == null &&
+ clusterConfig.PaymentProcessing?.Enabled == true &&
+ string.IsNullOrEmpty(clusterConfig.ShareRelayPublisherUrl))
logger.T... |
fix: fix errors of 'LDS' and 'LES'. | @@ -903,16 +903,16 @@ _trace:
_0xC4: /* LES Gd,Ed */
nextop = F8;
GET_ED;
- emu->segs[_ES] = ED->word[0];
+ emu->segs[_ES] = *(__uint16_t*)(((char*)ED)+4);
emu->segs_serial[_ES] = 0;
- GD.dword[0] = *(uint32_t*)(((void*)ED)+2);
+ GD.dword[0] = *(uint32_t*)ED;
NEXT;
_0xC5: /* LDS Gd,Ed */
nextop = F8;
GET_ED;
- emu->seg... |
removed option -m (no longer needed) | @@ -438,7 +438,7 @@ eigenpfadname = strdupa(argv[0]);
eigenname = basename(eigenpfadname);
setbuf(stdout, NULL);
-while ((auswahl = getopt(argc, argv, "i:O:o:m:hv")) != -1)
+while ((auswahl = getopt(argc, argv, "i:O:o:hv")) != -1)
{
switch (auswahl)
{
|
BugID:18072832:starterkit debug feature porting | @@ -155,6 +155,7 @@ void SysTick_Handler(void)
krhino_intrpt_exit();
}
+#if (DEBUG_CONFIG_PANIC != 1)
void HardFault_Handler(void)
{
while (1)
@@ -164,6 +165,7 @@ void HardFault_Handler(void)
// #endif
}
}
+#endif
/**
* @brief Retargets the C library printf function to the USART.
|
make: enable parallel compilation | @@ -18,7 +18,7 @@ TARGET = riscv64
VERSION = 2.80
CORE_VERSION = 1.0
SRCDIR := $(CURDIR)
-MAKEFLAGS += --no-print-directory
+MAKEFLAGS += --no-print-directory --output-sync
SUBSYSTEMS = lib vm proc test
@@ -66,18 +66,13 @@ all: subsystems main.o syscalls.o $(EMBED) $(BIN)
printf " data=%-5d text=%-5d rodata=%-5d\n" $$d... |
[chainmaker] add wallet config struct | @@ -28,7 +28,8 @@ api_ethereum.h is header file for BoAT IoT SDK ethereum's interface.
/*! @defgroup eth-api boat ethereum-API
* @{
*/
-
+#define BOAT_CHAINMAKER_CERT_MAX_LEN 1024
+#define BOAT_CHAINMAKER_ROOTCA_MAX_NUM 3
typedef struct TBoatChainmakerSender {
// organization identifier of the member
char* orgId;
@@ -7... |
phb4: Split clearing REGB into new function
So others can call it. | @@ -1690,6 +1690,17 @@ static void phb4_rc_err_clear(struct phb4 *p)
0xffffffff);
}
+static void phb4_err_clear_regb(struct phb4 *p)
+{
+ uint64_t val64;
+
+ val64 = phb4_read_reg(p, PHB_REGB_ERR_STATUS);
+ phb4_write_reg(p, PHB_REGB_ERR_STATUS, val64);
+ phb4_write_reg(p, PHB_REGB_ERR1_STATUS, 0x0ul);
+ phb4_write_reg... |
Try fixing issue with Travis-CI by removing postgresql-9.3 package. | @@ -20,6 +20,7 @@ matrix:
install: |
sudo dpkg --add-architecture i386 && sudo rm -rf /etc/apt/sources.list.d/
sudo apt-get update
+ sudo apt-get remove postgresql-9.3
sudo apt-get upgrade -y gcc
sudo apt-get install -y gcc-multilib autoconf automake libtool libjansson-dev:i386 libmagic-dev:i386 libssl-dev:i386
- os: l... |
net/lwip: fix exception for prefix lifetime
The prefix will be immediately deleted when
it receives RA message with prefix lifetime 0 | @@ -2388,7 +2388,9 @@ static u8_t nd6_prefix_lifetime_isvalid(const struct nd6_prefix_list_entry *pref
if (prefix_entry == NULL)
return 0;
- if ((lifetime_ms > prefix_entry->invalidation_timer) || (lifetime_ms > TIME_HOUR_TO_MS(2))) {
+ if ((lifetime_ms > prefix_entry->invalidation_timer) ||
+ (lifetime_ms > TIME_HOUR_... |
TEST: added bop mget test case having key list with wrong delimiter. | #!/usr/bin/perl
use strict;
-use Test::More tests => 69;
+use Test::More tests => 70;
use FindBin qw($Bin);
use lib "$Bin/lib";
use MemcachedTest;
@@ -525,6 +525,13 @@ for ($kidx = 1; $kidx < $kcnt; $kidx += 1) {
$klen = length($val);
$cmd = "bop mget $klen $kcnt 0..1000 10";
mem_cmd_is($sock, $cmd, $val, $rst);
+$val ... |
out_file: use different API to do msgpack to json conversion | @@ -209,22 +209,23 @@ static void cb_file_flush(void *data, size_t bytes,
while (msgpack_unpack_next(&result, data, bytes, &off)) {
alloc_size = (off - last_off) + 128; /* JSON is larger than msgpack */
last_off = off;
- buf = (char *)flb_calloc(1, alloc_size);
- if (buf == NULL) {
- flb_errno();
- msgpack_unpacked_des... |
input: disable the skipFactor computation. It's uncertain how much it helps, so do proper testing first before re-enabling it | @@ -461,8 +461,16 @@ static inline int input_speedFactor(run_t* run, dynfile_t* dynfile) {
}
static inline int input_skipFactor(run_t* run, dynfile_t* dynfile, int* speed_factor) {
+ /*
+ * TODO: measure impact of the skipFactor on the speed of fuzzing.
+ * It's currently unsure how much it helps, so disable it for now... |
put changes in the correct file | },
"commanddir": {
"title": "commanddir",
- "description": "The directory in which the command that launched the scoped app was run.",
+ "description": "The directory AppScope polls for a `scope.<pid>` file, as explained in the Dynamic Configuration section of the Using the CLI page of the AppScope docs.",
"type": "str... |
Changelog entry for:
Merge PR from noloader: Make ICANN Update CA and DS Trust Anchor
static data. | - Merge PR #408 from fobser: Prevent a few more yacc clashes.
- Merge PR #275 from Roland van Rijswijk-Deij: Add feature to return the
original instead of a decrementing TTL ('serve-original-ttl')
+ - Merge PR #355 from noloader: Make ICANN Update CA and DS Trust Anchor
+ static data.
22 January 2022: Willem
- Padding ... |
fix compile test error | package chain
import (
+ "github.com/aergoio/aergo/contract"
"io/ioutil"
"math"
"os"
@@ -57,31 +58,31 @@ func TestErrorInExecuteTx(t *testing.T) {
tx := &types.Tx{}
- err := executeTx(bs, tx, 0, 0)
+ err := executeTx(bs, tx, 0, 0, contract.ChainService)
assert.EqualError(t, err, types.ErrTxFormatInvalid.Error(), "execu... |
Update unk_C0 member comment | @@ -43,7 +43,7 @@ typedef struct SceKblParam { // size is 0x100 or 0x200. must 0x200 on 3.60.
* 0x00000001:bsod reboot(or other serious factors)
* 0x00000010:bsod poweroff
* 0x00000400:always?
- * 0x00020000:unknown
+ * 0x00020000:maybe low battery
*/
uint32_t unk_C0;
uint32_t wakeup_factor;
|
[hardware] Change bitwise to logic operators | @@ -96,7 +96,7 @@ module tcdm_adapter
) i_metadata_register (
.clk_i (clk_i ),
.rst_ni (rst_ni ),
- .valid_i(in_valid_i & in_ready_o & !in_write_i),
+ .valid_i(in_valid_i && in_ready_o && !in_write_i),
.ready_o(meta_ready ),
.data_i (in_meta_i ),
.valid_o(meta_valid ),
@@ -131,12 +131,12 @@ module tcdm_adapter
// Ready... |
Express linop_reshape by operator_reshape | @@ -364,55 +364,18 @@ extern struct linop_s* linop_extract_create(unsigned int N, const long pos[N], c
return linop_create(N, out_dims, N, in_dims, CAST_UP(PTR_PASS(data)), extract_forward, extract_adjoint, NULL, NULL, extract_free);
}
-
-
-
-
-struct reshape_op_s {
-
- INTERFACE(linop_data_t);
-
- unsigned int N;
- co... |
Fix potential multi-threading consistency issues | @@ -187,7 +187,6 @@ namespace carto {
return _kineticEventHandler;
}
- // TODO: add explicit 'ViewState' argument to all calculateCameraEvent methods
void MapRenderer::calculateCameraEvent(CameraPanEvent& cameraEvent, float durationSeconds, bool updateKinetic) {
if (durationSeconds > 0) {
if (cameraEvent.isUseDelta()) ... |
Universal meson build. | project('urbit', 'c', meson_version: '>=0.29.0')
+legacy_meson = false
+
+if(meson.version() == '0.29.0')
+ legacy_meson = true
+elif(meson.version() != '0.45.0')
+ error('Meson 0.29.0 is last legacy version supported. Otherwise please upgrade to 0.45.0.')
+endif
+
jets_a_src = [
'jets/a/add.c',
'jets/a/dec.c',
@@ -221... |
gpio: Bugfix - Move esp_intr_free() out of the critical section in gpio_uninstall_isr_service()
Closes
Fix the bug that if the API was called from one core to free the interrupt source on the other core, it would trigger interrupt watchdog. | @@ -491,15 +491,21 @@ esp_err_t gpio_isr_handler_remove(gpio_num_t gpio_num)
void gpio_uninstall_isr_service(void)
{
+ gpio_isr_func_t *gpio_isr_func_free = NULL;
+ gpio_isr_handle_t gpio_isr_handle_free = NULL;
+ portENTER_CRITICAL(&gpio_context.gpio_spinlock);
if (gpio_context.gpio_isr_func == NULL) {
+ portEXIT_CRIT... |
change to use list_from_json | @@ -11,7 +11,7 @@ int main (int argc, char ** argv) {
char * json = orka_load_whole_file(argv[1], &len);
discord::guild::member::dati ** p;
- discord::guild::member::from_json_list(json, len, &p);
+ discord::guild::member::list_from_json(json, len, &p);
return 0;
}
|
Explicitely set the locale for time displayed in reports ; fixes | {
// Convert the date to a string
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
+
+ // Explicitely set the locale to avoid an iOS 8 bug
+ // http://stackoverflow.com/questions/29374181/nsdateformatter-hh-returning-am-pm-on-ios-8-device
+ [dateFormatter setLocale:[[NSLocale alloc] initWithLocaleIdenti... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.