message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Remove ktls specific code from tls_setup_write_buffers
The KTLS code no longer calls this function so this is not necessary. | @@ -158,8 +158,8 @@ int tls_setup_write_buffer(OSSL_RECORD_LAYER *rl, size_t numwpipes,
thiswb->buf = NULL; /* force reallocation */
}
- if (thiswb->buf == NULL) {
- if (rl->bio == NULL || !BIO_get_ktls_send(rl->bio)) {
+ p = thiswb->buf;
+ if (p == NULL) {
p = OPENSSL_malloc(len);
if (p == NULL) {
if (rl->numwpipes < ... |
Simplify sub argument(s) | @@ -45,9 +45,9 @@ function _translate_arguments(arguments)
arg = arg .. ".exe"
end
if arg:startswith("-isystem-after", 1, true) then
- arg = "-I" .. arg:sub(15, -1)
+ arg = "-I" .. arg:sub(15)
elseif arg:startswith("-isystem", 1, true) then
- arg = "-I" .. arg:sub(9, -1)
+ arg = "-I" .. arg:sub(9)
elseif arg:find("[%-/... |
common/battery_v2.c: Format with clang-format
BRANCH=none
TEST=none | @@ -135,8 +135,7 @@ host_command_battery_get_static(struct host_cmd_handler_args *args)
return EC_RES_SUCCESS;
}
-DECLARE_HOST_COMMAND(EC_CMD_BATTERY_GET_STATIC,
- host_command_battery_get_static,
+DECLARE_HOST_COMMAND(EC_CMD_BATTERY_GET_STATIC, host_command_battery_get_static,
EC_VER_MASK(0) | EC_VER_MASK(1));
static ... |
use bold on API name | @@ -952,7 +952,7 @@ prefering throughput will use large record sizes that minimize overhead.
-Connections default to an 8k outgoing maximum
**s2n_connection_set_dynamic_record_threshold**
-provides a smooth transition from s2n_connection_prefer_low_latency to s2n_connection_prefer_throughput
+provides a smooth transiti... |
[viogpudo] fix sdv warning | @@ -2210,6 +2210,8 @@ PBYTE VioGpuAdapter::GetEdidData(UINT Id)
VOID VioGpuAdapter::CreateResolutionEvent(VOID)
{
+ PAGED_CODE();
+
if (m_ResolutionEvent != NULL &&
m_ResolutionEventHandle != NULL)
{
@@ -2242,6 +2244,8 @@ VOID VioGpuAdapter::CreateResolutionEvent(VOID)
VOID VioGpuAdapter::NotifyResolutionEvent(VOID)
{
... |
log: allow log level 'warn' and 'warning' | @@ -179,7 +179,7 @@ int flb_log_get_level_str(char *str)
else if (strcasecmp(str, "error") == 0) {
return FLB_LOG_ERROR;
}
- else if (strcasecmp(str, "warn") == 0) {
+ else if (strcasecmp(str, "warn") == 0 || strcasecmp(str, "warning") == 0) {
return FLB_LOG_WARN;
}
else if (strcasecmp(str, "info") == 0) {
|
Remove bogus OCObt.shutdown() call | @@ -22,7 +22,6 @@ public class CloudCertTestsMain {
quit = true;
System.out.println("Calling mainShutdown.");
OCMain.mainShutdown();
- OCObt.shutdown();
scanner.close();
mainThread.interrupt();
}
|
Removed stretch deb build as it's no longer supported. | @@ -19,8 +19,6 @@ jobs:
distro: ubuntu18.04
- arch: arm32v7
distro: ubuntu22.04
- - arch: arm32v7
- distro: stretch
- arch: arm32v7
distro: bullseye
- arch: aarch64
@@ -31,16 +29,10 @@ jobs:
distro: ubuntu20.04
- arch: aarch64
distro: ubuntu22.04
- - arch: aarch64
- distro: stretch
- arch: aarch64
distro: buster
- arch... |
Download Project: Reformat CMake code | +# ~~~
# Distributed under the OSI-approved MIT License. See accompanying
# file LICENSE or https://github.com/Crascit/DownloadProject for details.
#
#
# add_subdirectory(${googletest_SOURCE_DIR} ${googletest_BINARY_DIR})
#
-#========================================================================================
-
+# ... |
install-config-file: Remove rm .../installing.ini
This is a leftover from previous versions and the keys have piled up. | @@ -33,7 +33,6 @@ You have to enter the paths accordingly.
Read the tutorials on mounting and namespaces if you are not sure what this means.
```sh
-kdb set user/tests/tempfiles/
kdb set user/tests/tempfiles/secondFile $(echo $(mktemp -d)/$(basename $(kdb get user/tests/tempfiles/firstFile)))
echo -e "keyA=a\nkeyB=b\nk... |
hooks: implement hack to avoid plugins setting errors | @@ -1000,6 +1000,15 @@ KDB * kdbOpen (const KeySet * contract, Key * errorKey)
}
// TODO (atmaxinger): improve
+ bool existingError = keyGetMeta (errorKey, "error") != NULL;
+
+ if (!existingError)
+ {
+ // set a dummy value to block errors
+ // any errors that occur will be converted into warnings
+ keySetMeta (errorK... |
zephyr: Make makefile clearer about configuration
Separate the signature selection blocks, so that it is clearer to add
another config option for the boot verification. | # Makefile for building mcuboot as a Zephyr project.
-# These are the main configuration choices, mainly having to do with
-# what signature algorithm is desired. Choose one of the blocks
-# below, and uncomment the settings after it.
+# Configuration choices.
+
+#####################
+# Signature algorithm
+##########... |
Interlocked WIP | @@ -74,7 +74,8 @@ namespace MiningCore.Blockchain
protected string NextJobId(string format = null)
{
- var value = Interlocked.Increment(ref jobId);
+ Interlocked.Increment(ref jobId);
+ var value = Interlocked.CompareExchange(ref jobId, 0, Int32.MinValue);
if (format != null)
return value.ToString(format);
|
memcheck: generate suppressions | @@ -370,7 +370,7 @@ set (LIB_SUFFIX
CACHE STRING
"Optional suffix to use on lib folders (e.g. 64 for lib64)")
-set (MEMORYCHECK_COMMAND_OPTIONS "--trace-children=yes --leak-check=full --error-exitcode=1")
+set (MEMORYCHECK_COMMAND_OPTIONS "--trace-children=yes --leak-check=full --gen-suppressions=all --error-exitcode=1... |
filter_modify: remove dead code (CID 183644) | @@ -387,8 +387,6 @@ static inline bool helper_msgpack_object_matches_regex(msgpack_object * obj,
if (obj->type == MSGPACK_OBJECT_BIN) {
return false;
- key = (char *) obj->via.bin.ptr;
- len = obj->via.bin.size;
}
else if (obj->type == MSGPACK_OBJECT_STR) {
key = (char *) obj->via.str.ptr;
|
time: when retrieving timestamp from record, always validate the data type | @@ -181,6 +181,10 @@ int flb_time_pop_from_msgpack(struct flb_time *time, msgpack_unpacked *upk,
return -1;
}
+ if (upk->data.type != MSGPACK_OBJECT_ARRAY) {
+ return -1;
+ }
+
obj = upk->data.via.array.ptr[0];
*map = &upk->data.via.array.ptr[1];
|
wordlist -> --dict | @@ -284,7 +284,7 @@ bool cmdlineParse(int argc, char *argv[], honggfuzz_t * hfuzz)
{{"extension", required_argument, NULL, 'e'}, "Input file extension (e.g. 'swf'), (default: 'fuzz')"},
{{"workspace", required_argument, NULL, 'W'}, "Workspace directory to save crashes & runtime files (default: '.')"},
{{"covdir", requi... |
faster BigIntOrderedMap size accessor | @@ -26,7 +26,10 @@ export default class BigIntOrderedMap<V> implements Iterable<[BigInteger, V]> {
}
get size() {
- return Object.keys(this.root).length;
+ if(this.cachedIter) {
+ return this.cachedIter.length;
+ }
+ return this.generateCachedIter().length;
}
|
sysdeps/managarm: Impl. sys_inotify_add_watch() | @@ -1314,6 +1314,46 @@ int sys_inotify_create(int flags, int *fd) {
return 0;
}
+int sys_inotify_add_watch(int ifd, const char *path, uint32_t mask, int *wd) {
+ SignalGuard sguard;
+ HelAction actions[3];
+ globalQueue.trim();
+
+ managarm::posix::CntRequest<MemoryAllocator> req(getSysdepsAllocator());
+ req.set_reque... |
Check GC after string.char
string.char may allocate strings so it should be followed with a GC check. | @@ -360,6 +360,7 @@ function ToIR:exp_to_assignment(cmds, dst, exp)
elseif bname == "string_char" then
assert(#xs == 1)
table.insert(cmds, ir.Cmd.BuiltinStringChar(loc, dst, xs[1]))
+ table.insert(cmds, ir.Cmd.CheckGC())
elseif bname == "tofloat" then
assert(#xs == 1)
table.insert(cmds, ir.Cmd.BuiltinToFloat(loc, dst, ... |
build: maybeRegexStage -> maybeStage | @@ -519,8 +519,9 @@ def trackCoverage(do_track, cl) {
* @param cl A closure that should be run inside the docker image
*/
def withDockerEnv(stage_name, image, cl) {
+ def run_stage = (stage_name =~ BUILD_TARGET) as boolean
return [(stage_name): {
- maybeRegexStage(stage_name) {
+ maybeStage(stage_name, run_stage) {
nod... |
tools/ci.sh: ci_unix_minimal_run_tests: Exclude subclass_native6.
It can't work due to "self" arg typechecking for native methods being
disabled. | @@ -294,7 +294,9 @@ function ci_unix_minimal_build {
}
function ci_unix_minimal_run_tests {
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/pycopy-minimal ./run-tests -e exception_chain -e self_type_check -e subclass_native_init -e class_slots_ -d basics)
+ (cd tests && MICROPY_CPYTHON3=python... |
Fail for types not of size 2, 4 or 8 | @@ -383,6 +383,8 @@ int main( int argc, char *argv[] )
#define CHECK_PADDING_SIGNED(TYPE, NAME) \
do \
{ \
+ if( sizeof( TYPE ) == 2 || sizeof( TYPE ) == 4 || \
+ sizeof( TYPE ) == 8 ) { \
if( ( sizeof( TYPE ) == 2 && \
(int16_t) NAME ## _MAX != 0x7FFF ) || \
( sizeof( TYPE ) == 4 && \
@@ -393,6 +395,12 @@ int main( in... |
Only ask users to install requirements-base.txt. | @@ -155,7 +155,7 @@ west zephyr-export
#### Install Zephyr Python Dependencies
```bash
-pip3 install --user -r zephyr/scripts/requirements.txt
+pip3 install --user -r zephyr/scripts/requirements-base.txt
```
### Environment Variables
|
[snitch] Make ro-cache's address region ports packed arrays | @@ -35,8 +35,8 @@ module snitch_read_only_cache #(
input logic enable_i,
input logic flush_valid_i,
output logic flush_ready_o,
- input logic [AxiAddrWidth-1:0] start_addr_i [NrAddrRules],
- input logic [AxiAddrWidth-1:0] end_addr_i [NrAddrRules],
+ input logic [NrAddrRules-1:0][AxiAddrWidth-1:0] start_addr_i,
+ input ... |
board/dojo/led.c: Format with clang-format
BRANCH=none
TEST=none | @@ -142,18 +142,20 @@ static void board_led_set_battery(void)
break;
case PWR_STATE_DISCHARGE:
if (charge_get_percent() <= 10) {
- battery_led_blink_cycle = battery_ticks %
- (2 * TIMES_TICK_ONE_SEC);
+ battery_led_blink_cycle =
+ battery_ticks % (2 * TIMES_TICK_ONE_SEC);
if (led_auto_control_is_enabled(EC_LED_ID_RIGHT... |
Update QUIC_CREDENTIAL_CONFIG.md | @@ -62,7 +62,7 @@ Only valid for OpenSSL.
`QUIC_CREDENTIAL_TYPE_CERTIFICATE_PKCS12`
Provide an in-memory ASN.1 blob of a PKCS12 (PFX) certificate and private, with optional private key password, pointed to by the `CertificatePkcs12` member.
-Not currently supported.
+Only valid for OpenSSL.
#### `Flags`
|
Add comment for get_environ_ptr why this API is in stdlib.h | @@ -190,6 +190,8 @@ int rand(void);
/**
* @ingroup STDLIB_LIBC
* @brief Return a pointer to the thread specific environ variable
+ * @details This API is not a standard API. But another APIs which are related to ENV are in Stdlib,
+ * so this API is in Stdlib for ease.
* @param[in] A pointer to notify a size of environ... |
Build matrix with nice_nano and proton_c boards. | @@ -6,6 +6,9 @@ jobs:
build:
runs-on: ubuntu-latest
name: Build Test
+ strategy:
+ matrix:
+ board: [proton_c, nice_nano]
steps:
# To use this repository's private action,
# you must check out the repository
@@ -27,27 +30,27 @@ jobs:
${{ runner.os }}-build-
${{ runner.os }}-
- name: West Init
- uses: 'docker://zmkfirmw... |
Fix QEMU link once again | @@ -211,9 +211,11 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Install QEMU
+ env:
+ QEMU_DEB: "qemu-user-static_4.2-3ubuntu5_amd64.deb"
run: |
- wget http://archive.ubuntu.com/ubuntu/pool/universe/q/qemu/qemu-user-static_4.2-3ubuntu5_amd64.deb
- sudo dpkg -i qemu-user-static_4.2-3ubuntu4_amd64.deb
+ wget http:/... |
Disable GHC optimizations | @@ -83,7 +83,7 @@ library
if impl(ghc < 7.10)
hs-source-dirs: prelude
other-modules: Prelude
- ghc-options: -Wall -O2
+ ghc-options: -Wall
extensions: CPP
if flag(system-lua) || flag(luajit) || flag(lua501) || flag(lua502)
c-sources: safer-api/safer-api.c
|
Fix crash in X509_STORE_CTX_get_by_subject
If using a custom X509_LOOKUP_METHOD then calls to
X509_STORE_CTX_get_by_subject may crash due to an incorrectly initialised
X509_OBJECT being passed to the callback get_by_subject function.
Fixes | @@ -297,6 +297,9 @@ int X509_STORE_CTX_get_by_subject(X509_STORE_CTX *vs, X509_LOOKUP_TYPE type,
if (ctx == NULL)
return 0;
+ stmp.type = X509_LU_NONE;
+ stmp.data.ptr = NULL;
+
CRYPTO_THREAD_write_lock(ctx->lock);
tmp = X509_OBJECT_retrieve_by_subject(ctx->objs, type, name);
CRYPTO_THREAD_unlock(ctx->lock);
|
zonemd, nsec3 rr iterator is type int, like other nsec3 code. | @@ -7575,11 +7575,11 @@ static int zonemd_dnssec_verify_rrset(struct auth_zone* z,
static int nsec3_of_param_has_type(struct auth_rrset* nsec3, int algo,
size_t iter, uint8_t* salt, size_t saltlen, uint16_t rrtype)
{
- size_t i;
+ int i, count = (int)nsec3->data->count;
struct ub_packed_rrset_key pk;
memset(&pk, 0, siz... |
netkvm: do not complete packets in sending path
Complete packets (i.e. get buffers from TX queue and
process waiting list) only when called from DPC (on
TX completion DPC or RX DPC). According to the tests
thos solves assertion "pCurrentNetBufferList" in the
NDPROT630 driver. | @@ -424,11 +424,22 @@ void CParaNdisTX::NBLMappingDone(CNBL *NBLHolder)
if (NBLHolder->MappingSucceeded() && m_VirtQueue.Alive())
{
m_SendQueue.Enqueue(NBLHolder);
+ // do not do anything if there is dpc processing for this TX
+ if (m_DpcWaiting) {
+ return;
+ }
- if (m_DpcWaiting == 0)
- {
+#if defined(ENABLE_COMPLETE... |
mmapstorage: fix overflow with exclusive upper bound | @@ -96,34 +96,32 @@ static char * elektraMmapstorageMapFile (void * addr, FILE * fp, size_t mmapSize
static int findOrInsert (const size_t key, DynArray * dynArray)
{
size_t l = 0;
- size_t h = (dynArray->size)-1;
- size_t m;
+ size_t h = dynArray->size;
+ //size_t m;
ELEKTRA_LOG_WARNING ("l: %zu", l);
ELEKTRA_LOG_WARN... |
tsch: remove TSCH_LINK_NEIGHBOR_CALLBACK definition
This macro is no longer used nor referred. | #define LOG_MODULE "TSCH"
#define LOG_LEVEL LOG_LEVEL_MAC
-/* Use to collect link statistics even on Keep-Alive, even though they were
- * not sent from an upper layer and don't have a valid packet_sent callback */
-#ifndef TSCH_LINK_NEIGHBOR_CALLBACK
-#if NETSTACK_CONF_WITH_IPV6
-void uip_ds6_link_neighbor_callback(in... |
CI: add Clang 15
We have to use the PPA provided by LLVM because Clang 15 isn't
officially part of Ubuntu 22.04 (or any other Ubuntu release yet),
see for details. | @@ -63,6 +63,10 @@ jobs:
}, {
cc: clang-14,
distro: ubuntu-22.04
+ }, {
+ cc: clang-15,
+ distro: ubuntu-22.04,
+ llvm-ppa-name: jammy
}
]
# We set per-compiler now to allow testing with both older and newer sets
@@ -72,8 +76,29 @@ jobs:
steps:
- name: install packages
run: |
+ llvm_ppa_name="${{ matrix.zoo.llvm-ppa-na... |
router_printconfig: match output with actual config syntax | @@ -1732,11 +1732,12 @@ router_printconfig(router *rtr, FILE *f, char pmode)
fprintf(f, "listen\n");
for (walk = rtr->listeners; walk != NULL; walk = walk->next) {
if (walk->lsnrtype == T_LINEMODE) {
- fprintf(f, " linemode%s%s%s\n",
+ fprintf(f, " type linemode%s%s%s\n",
walk->transport == W_PLAIN ? "" :
- walk->trans... |
Fix vcregress.pl's ancient misspelling of --max-connections.
I copied the existing spelling of "--max_connections", but
that's just wrong :-(. Evidently setting $ENV{MAX_CONNECTIONS}
has never actually worked in this script. Given the lack of
complaints, it's probably not worth back-patching a fix.
Per buildfarm.
Dis... | @@ -71,7 +71,7 @@ else
}
my $maxconn = "";
-$maxconn = "--max_connections=$ENV{MAX_CONNECTIONS}"
+$maxconn = "--max-connections=$ENV{MAX_CONNECTIONS}"
if $ENV{MAX_CONNECTIONS};
my $temp_config = "";
@@ -109,7 +109,7 @@ sub installcheck_internal
# for backwards compatibility, "serial" runs the tests in
# parallel_schedu... |
BugID:23241672: add ulocation qianxun app support board | @@ -24,23 +24,28 @@ The **ulocation.qianxunapp** shows ulocation component use qianxun location ser
* this sample use the qianxun location service , if you want to use it, you must go to the
https://www.qxwz.com/ to get the APPKEY and APPSECRET .
-### Build
+### Supported Boards
+
+- stm32f429zi-nucleo
+
+### Build & F... |
Fixed incorrect else statement | @@ -567,7 +567,7 @@ void celix_arrayList_clear(celix_array_list_t *list) {
#if defined(__APPLE__)
static int celix_arrayList_compare(void *arg, const void * a, const void *b) {
-#elif
+#else
static int celix_arrayList_compare(const void * a, const void *b, void *arg) {
#endif
const celix_array_list_entry_t *aEntry = a;... |
Make test_nsalloc_long_namespace() robust vs allocation pattern changes | @@ -11147,34 +11147,16 @@ START_TEST(test_nsalloc_long_namespace)
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789AZ"
":e>";
int i;
-#define MAX_ALLOC_COUNT 10
- int repeat = 0;
+#define MAX_ALLOC_COUNT 40
for (i = 0; i < MAX_ALLOC_COUNT; i++) {
- /* Repeat some counts to defeat cached allocations */
- i... |
Fix shadowing of variable in print | @@ -237,8 +237,8 @@ impl RunStatus {
// Let's try an image halfway through.
for i in 1 .. total_count {
info!("Try interruption at {}", i);
- let (fl3, total_count) = try_upgrade(&flash, &areadesc, Some(i));
- info!("Second boot, count={}", total_count);
+ let (fl3, count) = try_upgrade(&flash, &areadesc, Some(i));
+ i... |
Get exact request count at time of getting utilization for period. | @@ -45,7 +45,8 @@ static apr_time_t wsgi_utilization_last = 0;
apr_thread_mutex_t* wsgi_monitor_lock = NULL;
-static double wsgi_utilization_time(int adjustment)
+static double wsgi_utilization_time(int adjustment,
+ apr_uint64_t* request_count)
{
apr_time_t now;
double utilization = wsgi_thread_utilization;
@@ -71,6 +... |
out_td: use new api for time management | #include <assert.h>
#include <errno.h>
-#include <msgpack.h>
+#include <fluent-bit/flb_info.h>
#include <fluent-bit/flb_output.h>
#include <fluent-bit/flb_utils.h>
#include <fluent-bit/flb_network.h>
#include <fluent-bit/flb_pack.h>
#include <fluent-bit/flb_http_client.h>
+#include <fluent-bit/flb_time.h>
+#include <ms... |
[catboost] add test that shows that --random-strengths doesn't work for plain boosting on CPU;
[catboost] don't fix loss function
([arc::mergeid] 74733626-50692a09-5977f566-a3e18096) | #include <library/unittest/registar.h>
#include <util/folder/tempdir.h>
+#include <util/generic/array_ref.h>
+#include <util/random/fast.h>
#include <limits>
+template <typename Prng>
+static void FillWithRandom(TArrayRef<TVector<float>> matrix, Prng& prng) {
+ for (auto& row : matrix) {
+ for (auto& cell : row) {
+ ce... |
lib-push-hook: fix behaviour of %remove
%remove did not properly iterate over the paths and as such did not
return a complete list of paths to kick.
Fixes | |= rid=resource
=/ pax=path
[%resource (en-path:resource rid)]
- =/ paths=(list path)
+ =/ paths=(set path)
+ %- sy
%+ turn
(incoming-subscriptions pax)
- |=([ship pox=path] pax)
+ |=([ship pox=path] pox)
=. sharing
(~(del in sharing) rid)
:_ state
- [%give %kick ~[pax] ~]~
+ [%give %kick ~(tap in paths) ~]~
::
++ revo... |
fix source paths in sdr_transceiver_emb_122_88 | @@ -144,7 +144,7 @@ cell xilinx.com:ip:util_vector_logic not_0 {
create_bd_port -dir IO -from 3 -to 0 exp_n_alex
module alex {
- source projects/sdr_transceiver_emb/alex.tcl
+ source projects/sdr_transceiver_emb_122_88/alex.tcl
}
# RX 0
@@ -164,7 +164,7 @@ cell pavel-demin:user:port_slicer cfg_slice_0 {
}
module rx_0 {... |
Cirrus: Disable failing test for `mozprefs` plugin | @@ -16,4 +16,4 @@ task:
- ninja
tests_script:
- - cd build && ctest --output-on-failure -E 'pluginprocess|testmod_network'
+ - cd build && ctest --output-on-failure -E 'pluginprocess|testshell_markdown_mozprefs|testmod_network'
|
webui_base: build elektra parallel | @@ -27,7 +27,7 @@ ADD . /home/elektra/libelektra/
# build & install libelektra
RUN mkdir /home/elektra/libelektra/build
WORKDIR /home/elektra/libelektra/build
-RUN cmake .. -DTOOLS="kdb;web" && make && make install
+RUN cmake .. -DTOOLS="kdb;web" && make -j ${PARALLEL} && make install
# prepare user and home dir
RUN gr... |
use throw instead of Writer-Error | Set-StrictMode -Version 3.0
$errorActionPreference="stop"
-if($PSVersionTable.PSEdition -ne "Core")
-{
- Write-Error "This script requires Powershell Core. Please install Powershell Core at aka.ms/pscore6."
+if ($PSVersionTable.PSEdition -ne "Core") {
+ throw "This script requires Powershell Core. Please install Powers... |
le_tc/kernel: Remove tc_clock_clock_systimer64
Removes 'tc_clock_clock_systimer64' which is same as 'tc_clock_clock_systimer'. | @@ -197,24 +197,6 @@ static void tc_clock_clock_systimer(void)
TC_SUCCESS_RESULT();
}
-/**
-* @fn :tc_clock_clock_systimer64
-* @brief :Returns the current value of 64 bit system timer counter
-* @scenario :Returns the current value of 64 bit system timer counter
-* API's covered :clock_systimer64
-* Preconditions :non... |
Update MLNDevTool to 0.1.1 | Pod::Spec.new do |s|
s.name = 'MLNDevTool'
- s.version = '0.1.0'
+ s.version = '0.1.1'
s.summary = 'Debug Tool of MLN.'
# This description is used to generate tags and improve search results.
@@ -49,7 +49,7 @@ Pod::Spec.new do |s|
'MLNDevTool_Util' => 'MLN-iOS/MLNDevTool/Classes/DevTool/Util/**/Assets/*.{png,lua,xib,st... |
vppinfra: add 512-bit vector definitions and types | #define CLIB_HAVE_VEC128
#endif
+#if defined (__AVX__)
+#define CLIB_HAVE_VEC256
+#endif
+
+#if defined (__AVX512F__)
+#define CLIB_HAVE_VEC512
+#endif
+
/* 128 implies 64 */
#ifdef CLIB_HAVE_VEC128
#define CLIB_HAVE_VEC64
@@ -116,6 +124,23 @@ typedef f32 f32x8 _vector_size (32);
typedef f64 f64x4 _vector_size (32);
#e... |
Add safety for recursion calls for native functions in python (still failing). | @@ -644,8 +644,6 @@ function_return function_py_interface_invoke(function func, function_impl impl,
type ret_type = signature_get_return(s);
- PyObject * tuple_args = PyTuple_New(args_size);
-
PyObject * result = NULL;
size_t args_count;
@@ -654,6 +652,18 @@ function_return function_py_interface_invoke(function func, f... |
server session BUGFIX duplicate variable init | @@ -718,8 +718,6 @@ nc_server_destroy(void)
if (server_opts.content_id_data && server_opts.content_id_data_free) {
server_opts.content_id_data_free(server_opts.content_id_data);
}
- server_opts.passwd_auth_data = NULL;
- server_opts.passwd_auth_data_free = NULL;
#if defined (NC_ENABLED_SSH) || defined (NC_ENABLED_TLS)
... |
build/configs: update loadable_elf_apps defconfig for imxrt1020 board.
A new partition for smartfs is added.
File system TC exmaples are enabled.
File read/write test is also enabled. | @@ -311,7 +311,7 @@ CONFIG_BOARDCTL_RESET=y
CONFIG_IMXRT_NORFLASH=y
CONFIG_IMXRT_AUTOMOUNT=y
CONFIG_IMXRT_AUTOMOUNT_USERFS=y
-CONFIG_IMXRT_AUTOMOUNT_USERFS_DEVNAME="/dev/smart0p1"
+CONFIG_IMXRT_AUTOMOUNT_USERFS_DEVNAME="/dev/smart0p6"
CONFIG_IMXRT_AUTOMOUNT_USERFS_MOUNTPOINT="/mnt"
# CONFIG_IMXRT_AUTOMOUNT_SSSRW is not... |
utils: allow MALLOC_LIMIT to indicate a max
in addition to checking the environment for "MALLOC_LIMIT"; the
environment will still take precedence.
this is in preparation for adding extreme config value coverage to
advanced_api_fuzzer | @@ -101,6 +101,9 @@ static void Increment(int* const v) {
#if defined(MALLOC_LIMIT)
{
const char* const malloc_limit_str = getenv("MALLOC_LIMIT");
+#if MALLOC_LIMIT > 1
+ mem_limit = (size_t)MALLOC_LIMIT;
+#endif
if (malloc_limit_str != NULL) {
mem_limit = atoi(malloc_limit_str);
}
@@ -175,7 +178,7 @@ static int CheckS... |
Simplify `tostring` function definition. | @@ -199,11 +199,8 @@ atpanic = c_lua_atpanic
tostring :: LuaState -> Int -> IO B.ByteString
tostring l n = alloca $ \lenPtr -> do
cstr <- c_lua_tolstring l (fromIntegral n) lenPtr
- len <- F.peek lenPtr
- -- Lua string may change or get garbage collected, copy it
- cstr' <- mallocBytes (fromIntegral len)
- copyArray cs... |
Fix for const assignment | @@ -372,7 +372,8 @@ def gen_do_assignment(dst, src):
#[ dbg_bytes(&($srcexpr), $size, " : Set " T4LIT(%s,header) "." T4LIT(%s,field) "/" T4LIT(%dB) " = " T4LIT(%s,header) " = ", "$hdrname", "$fldname", $size, "$srctxt");
#[ MODIFY_BYTEBUF_BYTEBUF_PACKET(pd, HDR($hdrname), FLD($hdrname,$fldname), &$tmpvar, $size);
else:... |
add pointer validity check on malloc_size when overriding on macOSX; issue | @@ -51,11 +51,17 @@ typedef struct mi_nothrow_s { int _tag; } mi_nothrow_t;
#define MI_FORWARD02(fun,x,y) { fun(x,y); }
#endif
+
#if defined(__APPLE__) && defined(MI_SHARED_LIB_EXPORT) && defined(MI_OSX_INTERPOSE)
// define MI_OSX_IS_INTERPOSED as we should not provide forwarding definitions for
// functions that are i... |
Update tests results badge links in the README
JerryScript-DCO-1.0-Signed-off-by: Robert Sipka | @@ -22,9 +22,9 @@ Memory usage and Binary footprint are measured at [here](https://jerryscript-pro
The following table shows the latest results on the devices:
-| STM32F4-Discovery | [](https://jerryscript-project.... |
Add more tests for Datetime.strftime() | @@ -18,3 +18,9 @@ assert(Datetime.strftime("%d", 1577836800) == "01");
assert(Datetime.strftime("%a", 1577836800) == "Wed");
assert(Datetime.strftime("%A", 1577836800) == "Wednesday");
assert(Datetime.strftime("%u", 1577836800) == "3");
+
+assert(Datetime.strftime("%H", 1577836800) == "00");
+assert(Datetime.strftime("... |
nimble/ll: Remove not needed NULL check
scansm cannot be NULL here and was already dereferenced few lines
above. | @@ -3077,9 +3077,6 @@ ble_ll_init_rx_isr_end(uint8_t *rxbuf, uint8_t crcok,
#if MYNEWT_VAL(BLE_LL_CFG_FEAT_LL_EXT_ADV)
if (pdu_type == BLE_ADV_PDU_TYPE_ADV_EXT_IND) {
- if (!scansm) {
- goto init_rx_isr_exit;
- }
if (!scansm->ext_scanning) {
goto init_rx_isr_exit;
}
|
release: get last release properly | @@ -19,7 +19,7 @@ RELEASE_NOTE_FILENAME="$CURRENT_DATE"_"$KDB_VERSION".md
RELEASE_NOTE_PATH="$NEWS_DIR/$RELEASE_NOTE_FILENAME"
# get previous release version from git tags
-PREVIOUS_RELEASE=$(git tag -l '[0-9].[0-9].[0-9]' | tail -n2 | head -n1)
+PREVIOUS_RELEASE=$(git tag -l '[0-9].[0-9].[0-9]' | tail -n1 | head -n1)
... |
Fixed build issues on MSYS on Windows. | #define RAND48_MULT_2 (0x0005)
#define RAND48_ADD (0x000b)
-unsigned short _rand48_seed[3];
-
-unsigned short _rand48_mult[3];
-
-unsigned short _rand48_add;
-
void _dorand48(unsigned short xseed[3]);
double erand48(unsigned short xseed[3]);
|
Fix build break in VS2017 15.3 | @@ -37,7 +37,7 @@ unsigned int TextField::c_borderCornerRadius = 8;
Platform::Boolean TextField::s_dependencyPropertiesRegistered = false;
template <typename T>
-T TextField::FindTemplateChild(FrameworkElement^ source, Platform::String^ name) {
+static T FindTemplateChild(FrameworkElement^ source, Platform::String^ nam... |
swapped G and base parameter orders | @@ -386,9 +386,9 @@ function Coder:pallene_entry_point_declaration(f_id)
local args = {} -- { {ctype, name , comment} }
table.insert(args, {"lua_State *" , "L", ""})
- table.insert(args, {"Udata *" , "G", ""})
table.insert(args, {"StackValue *", "base", ""})
- table.insert(args, {"TValue*", "U", C.comment("upvalues")})... |
BugID:18537056: fix the whitescan problem in LoRaMacCrypto.c | @@ -1554,7 +1554,7 @@ LoRaMacCryptoStatus_t LoRaMacCryptoDeriveMcKEKey( void )
if( retval != SECURE_ELEMENT_SUCCESS )
{
- return retval;
+ return (LoRaMacCryptoStatus_t)retval;
}
SecureElementSetKey( MC_ROOT_KEY, rootkey );
@@ -1563,7 +1563,7 @@ LoRaMacCryptoStatus_t LoRaMacCryptoDeriveMcKEKey( void )
if( retval != SEC... |
Some readability changes | @@ -400,7 +400,8 @@ static Key keys[] = {
TAGKEYS(XK_6, 5)
TAGKEYS(XK_7, 6)
TAGKEYS(XK_8, 7)
- TAGKEYS(XK_9, 8){MODKEY | ShiftMask | ControlMask, XK_q, quit, {0}},
+ TAGKEYS(XK_9, 8)
+ {MODKEY|ShiftMask|ControlMask, XK_q, quit, {0}},
{0, XF86XK_MonBrightnessUp, spawn, {.v = upbright}},
{0, XF86XK_MonBrightnessDown, spa... |
download-sde: be more tolerant of changes on Intel's web site | #!/bin/sh
FRAGMENT="$(curl -sL 'https://software.intel.com/content/www/us/en/develop/articles/pre-release-license-agreement-for-intel-software-development-emulator-accept-end-user-license-agreement-and-download.html' | \
- grep -oP '/content/dam/develop/external/us/en/documents/sde-external-([0-9\.\-]+)-lin.tar.bz2' | ... |
[CI] always print vere arguments | @@ -8,6 +8,8 @@ export class Urbit
@pty = pty.spawn \urbit args
@pty.on \data ~> @stdout.write it # TODO pipe?
console.log "FIXME Running Ubuntu 14.04, which causes a libtinfo version info warning. Should update to 16.04."
+ console.log "starting vere with the following arguments:"
+ console.log args
#
@last-output = D... |
Fix sorting modules by service name | @@ -746,6 +746,12 @@ BEGIN_SORT_FUNCTION(OriginalName)
}
END_SORT_FUNCTION
+BEGIN_SORT_FUNCTION(ServiceName)
+{
+ sortResult = PhCompareStringWithNull(node1->ServiceText, node2->ServiceText, TRUE);
+}
+END_SORT_FUNCTION
+
BOOLEAN NTAPI PhpModuleTreeNewCallback(
_In_ HWND hwnd,
_In_ PH_TREENEW_MESSAGE Message,
@@ -813,7... |
links: fix direct loading of link entry
If you go directly to a link's page, it will never load, because we
don't look for 'link-update' in our data, post-global store. This checks
properly. | @@ -44,8 +44,8 @@ export default class LinksApi extends BaseApi<StoreState> {
this.fetchLink(
endpoint,
(res) => {
- if (res.data.submission) {
- callback(res.data.submission);
+ if (res.data?.['link-update']?.submission) {
+ callback(res.data?.['link-update']?.submission);
} else {
console.error('unexpected submission... |
Update devtools/import.py to include htslib/hts_probe_cc.sh
Use `locate(..., exclude)` so that test*/**/*.sh are excluded. | @@ -152,10 +152,10 @@ if len(sys.argv) >= 1:
locate("version.sh", srcdir, exclude_htslib=True))
if dest == "htslib":
- # Add build files, including *.ac *.in *.mk *.m4
+ # Add build files, including *.ac *.in *.mk *.m4 *.sh
mfiles = itertools.chain(mfiles, locate("Makefile", srcdir),
locate("configure", srcdir),
- loca... |
[build.sh] Re-add Deepin | @@ -22,7 +22,7 @@ for os_release in ${OS_RELEASE_FILES[@]} ; do
if [[ ! -e "${os_release}" ]]; then
continue
fi
- DISTRO=$(sed -rn 's/^ID(_LIKE)*=(.+)/\2/p' ${os_release} | sed 's/"//g')
+ DISTRO=$(sed -rn 's/^ID(_LIKE)*=(.+)/\L\2/p' ${os_release} | sed 's/"//g')
done
dependencies() {
@@ -74,7 +74,7 @@ dependencies() {... |
fix(docs): Typo EC11_CONFIG
This should be CONFIG_EC11 | @@ -11,7 +11,7 @@ Encoders are currently only support on the left/central sides of splits. For pro
## Enabling EC11 Encoders
-To enable encoders for boards that have existing encoder support, uncomment the `EC11_CONFIG=y` and `CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y` lines in your board's .conf file in your `zmk-config/con... |
fix multiplace patch | @@ -2121,28 +2121,3 @@ struct multiplace_array_s* md_move_multiplace(unsigned int D, const long dimensi
}
-int md_max_idx(unsigned long flags)
-{
- int i = -1;
-
- for ( ; 0 != flags; i++)
- flags /= 2;
-
- return i;
-}
-
-int md_min_idx(unsigned long flags)
-{
- if (0 == flags)
- return -1;
-
- int i = 0;
-
- for ( ; ... |
build BUGFIX use repository include files with highest priority | @@ -183,6 +183,10 @@ target_link_libraries(sysrepo-plugind sysrepo dl)
# include custom Modules
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/CMakeModules/")
+# include repository files with highest priority
+include_directories("${PROJECT_SOURCE_DIR}/src")
+include_directories(${PROJECT_BINARY_DIR})
... |
tests: runtime: filter_rewrite_tag: add test case reported on | @@ -505,6 +505,53 @@ static void flb_test_issue_4518()
filter_test_destroy(ctx);
}
+/* $TAG as a key of rule causes SIGSEGV */
+static void flb_test_issue_5846()
+{
+ struct flb_lib_out_cb cb_data;
+ struct filter_test *ctx;
+ int ret;
+ int not_used = 0;
+ int bytes;
+ char *p = "[0, {\"key\":\"rewrite\"}]";
+
+ /* Pr... |
Test parameter entity marked PUBLIC but with no ID | @@ -6755,6 +6755,18 @@ START_TEST(test_bad_entity_2)
}
END_TEST
+START_TEST(test_bad_entity_3)
+{
+ const char *text =
+ "<!DOCTYPE doc [\n"
+ " <!ENTITY % foo PUBLIC>\n"
+ "]>\n"
+ "<doc/>";
+ expect_failure(text, XML_ERROR_SYNTAX,
+ "Parameter ENTITY without Public ID is not rejected");
+}
+END_TEST
+
/*
* Namespaces... |
Remove line that got into the wrong place | @@ -75,7 +75,6 @@ This only affects TLS users who explicitly enabled `MBEDTLS_SSL_PROTO_SSL3`
and relied on that version in order to communicate with peers that are not up
to date. If one of your peers is in that case, please try contacting them and
encouraging them to upgrade their software.
-`0`.
Strengthen default a... |
out_es: fix setting generate_id where it creates corrupted JSON output | #include <inttypes.h>
#define ES_BULK_CHUNK 4096 /* Size of buffer chunks */
-#define ES_BULK_HEADER 128 /* ES Bulk API prefix line */
+#define ES_BULK_HEADER 165 /* ES Bulk API prefix line */
#define ES_BULK_INDEX_FMT "{\"index\":{\"_index\":\"%s\",\"_type\":\"%s\"}}\n"
#define ES_BULK_INDEX_FMT_ID "{\"index\":{\"_ind... |
Changed name of kernel thread to [idle] | @@ -1401,7 +1401,7 @@ int proc_threadsList(int n, threadinfo_t *info)
}
else {
map = threads_common.kmap;
- hal_memcpy(info[i].name, "idle thread", sizeof("idle thread"));
+ hal_memcpy(info[i].name, "[idle]", sizeof("[idle]"));
}
info[i].vmem = 0;
|
trace: free unpacked msgpack result. | @@ -424,7 +424,7 @@ int flb_trace_chunk_filter(struct flb_trace_chunk *tracer, void *pfilter, struct
rc = msgpack_unpack_next(&result, buf, buf_size, &off);
if (rc != MSGPACK_UNPACK_SUCCESS) {
flb_error("unable to unpack record");
- goto sbuffer_error;
+ goto unpack_error;
}
records++;
} while (rc == MSGPACK_UNPACK_SUC... |
Add note to use box64 to run x86_64 applications | @@ -3,7 +3,7 @@ _TwisterOS users: Wine, winetricks, and Box86 are already installed in TwisterOS
_Raspberry Pi users: Wine requires a 3G/1G split memory kernel. Raspberry Pi OS for the Pi 4 already has a 3G/1G split kernel and works with Wine, but **the Pi 3B+ and earlier models have a 2G/2G kernel and require a custom... |
nimble/ll/css: Simplify slot move | @@ -463,15 +463,12 @@ ble_ll_conn_css_move(struct ble_ll_conn_sm *connsm, uint16_t slot_idx)
(slot_idx != BLE_LL_CONN_CSS_NO_SLOT));
slot_diff = slot_idx - connsm->css_slot_idx;
-
- if (slot_diff > 0) {
- offset = slot_diff * ble_ll_sched_css_get_slot_us() /
- BLE_LL_CONN_ITVL_USECS;
- } else {
- offset = (ble_ll_sched... |
remove lock on grib_action_notify_change | @@ -162,20 +162,20 @@ int grib_action_notify_change( grib_action* a, grib_accessor *observer, grib_acc
{
grib_action_class *c = a->cclass;
- GRIB_MUTEX_INIT_ONCE(&once,&init_mutex);
- GRIB_MUTEX_LOCK(&mutex1);
+ /*GRIB_MUTEX_INIT_ONCE(&once,&init_mutex);*/
+ /*GRIB_MUTEX_LOCK(&mutex1);*/
init(c);
while(c)
{
if(c->notif... |
Travis: Disable Python setup on `FAST` macOS build | @@ -173,7 +173,7 @@ before_script:
tools="kdb"
fi
- |
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
+ if [[ "$TRAVIS_OS_NAME" == "osx" && "$FAST" != "ON" ]]; then
python2_ver=$(python2 -c 'import sys; print(".".join(map(str, sys.version_info[:2])))') && \
CMAKE_OPT+=("-DPYTHON2_INCLUDE_DIR:PATH=$(python2-config --prefix)... |
chat-cli: absolute parity wrt "shortcodes"
Downgrades unmanaged chat paths to their uglified versions, as used by
web chat. Removes "group-based" indicators and makes them implicit in
shorter paths instead. | ++ tag |*(a=@tas (cold a (jest a))) ::TODO into stdlib
++ ship ;~(pfix sig fed:ag)
++ path ;~(pfix net ;~(plug urs:ab (easy ~))) ::NOTE short only, tmp
+ :: +mang: un/managed indicator prefix
+ ::
+ ++ mang
+ ;~ pose
+ (cold %| (jest '~/'))
+ (cold %& (easy ~))
+ ==
:: +tarl: local target, as /path
::
++ tarl (stag our... |
Add ADC feature check mark for STM32F429I-DISCOVERY | @@ -68,7 +68,7 @@ The above firmware builds include support for the class libraries and features m
| Target | Gpio | Spi | I2c | Pwm | Adc | Serial | Events | SWO | Networking | Large Heap |
|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|
| ST_STM32F4_DISCOVERY | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mar... |
Add RoMac / non-split template support | @@ -38,7 +38,7 @@ echo ""
echo "Keyboard Shield Selection:"
prompt="Pick an keyboard:"
-options=("Kyria" "Lily58" "Corne" "Splitreus62" "Sofle" "Iris")
+options=("Kyria" "Lily58" "Corne" "Splitreus62" "Sofle" "Iris" "RoMac")
PS3="$prompt "
# TODO: Add support for "Other" and linking to docs on adding custom shields in ... |
clay: remove stray print | =. ank.dom ankh
=^ mim ford-cache.args
(checkout-mime args deletes ~(key by changes))
- ~& mim+~(key by mim)
=. mim.dom (apply-changes-to-mim mim.dom mim)
=. fod.dom ford-cache.args
::
|
Improve minify test script | #!/bin/bash
-./astcenc/astcenc-avx2-good -tl in.png out-good.png 6x6 -medium
+BLOCK_SIZE=6x6
+QUALITY=-thorough
-./astcenc/astcenc-avx2 -tl in.png out-bad.png 6x6 -medium
+./astcenc/astcenc-avx2-good -tl in.png out-good.png ${BLOCK_SIZE} ${QUALITY} -silent
-./astcenc/astc_test_autoextract 6x6 in.png out-good.png out-ba... |
Ensure we display goaccess' version and config file on bad format error. | @@ -1447,7 +1447,8 @@ output_logerrors (void) {
if (!glog->log_erridx)
continue;
- fprintf (stderr, "==%d== GoAccess - Copyright (C) 2009-2020 by Gerardo Orellana\n", pid);
+ fprintf (stderr, "==%d== GoAccess - version %s - %s %s\n", pid, GO_VERSION, __DATE__, __TIME__);
+ fprintf (stderr, "==%d== Config file: %s\n", p... |
Add defines for AES registers. | @@ -648,6 +648,9 @@ enum radio_irqstatus_enum {
# define RG_RX_CTRL (0x0a)
//controls the sensitivity of the antenna diversity mode
+# define RG_AES_STATE_KEY (0x84)
+# define RG_AES_CTRL (0x83)
+# define RG_AES_STATUS (0x82)
//=========================== typedef =========================================
//============... |
options/elf: Fix unused parameter warnings | #include <bits/ensure.h>
#include <mlibc/debug.hpp>
-int dl_iterate_phdr(int (*callback)(struct dl_phdr_info*, size_t, void*), void* data){
+int dl_iterate_phdr(int (*callback)(struct dl_phdr_info*, size_t, void*), void *) {
+ (void)callback;
mlibc::infoLogger() << "mlibc: dl_iterate_phdr is a stub" << frg::endlog;
ret... |
Fix cut and paste error. Type should be uint32_t | @@ -74,7 +74,7 @@ static uint32_t
log_shell_cbor_reader_get32(struct cbor_decoder_reader *d, int offset)
{
struct log_shell_cbor_reader *cbr = (struct log_shell_cbor_reader *)d;
- uint8_t val = 0;
+ uint32_t val = 0;
(void)log_read_body(cbr->log, cbr->dptr, &val, offset, sizeof(val));
@@ -331,5 +331,3 @@ shell_log_stor... |
openssl-config: add example libssl system-defaults
Provide a "simple" example for affecting the systemwide default behavior
of libssl. The large number of mandatory nested sections makes this
less simple than the main description might suggest. | @@ -469,6 +469,22 @@ Simple OpenSSL library configuration example to enter FIPS mode:
Note: in the above example you will get an error in non FIPS capable versions
of OpenSSL.
+Simple OpenSSL library configuration to make TLS 1.3 the system-default
+minimum TLS version:
+
+ # Toplevel section for openssl (including lib... |
neutils/thttpd: Remove CONFIG_SDCLONE_DISABLE
since this option doesn't exist anymore | #undef CONFIG_THTTPD
#if defined(CONFIG_NET) && defined(CONFIG_NET_TCP) && \
- defined(CONFIG_NET_TCPBACKLOG) && !defined(CONFIG_DISABLE_ENVIRON) && \
- !defined(CONFIG_SDCLONE_DISABLE)
+ defined(CONFIG_NET_TCPBACKLOG) && !defined(CONFIG_DISABLE_ENVIRON)
# define CONFIG_THTTPD 1
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.