message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
doc: update manpage to fix CI error on master
only changed the date from December to July, as suggested by the CI | .\" generated with Ronn-NG/v0.10.1
.\" http://github.com/apjanke/ronn-ng/tree/0.10.1.pre1
-.TH "ELEKTRA\-LIBS" "7" "December 2022" ""
+.TH "ELEKTRA\-LIBS" "7" "July 2022" ""
.SH "NAME"
\fBelektra\-libs\fR \- libs overview
.IP "" 4
|
print warning on option --do_rcascan if packet injection possible not working by driver | @@ -92,6 +92,7 @@ static int gpsd_len;
static int errorcount;
static int maxerrorcount;
+static int injectioncount;
static unsigned long long int incommingcount;
static unsigned long long int outgoingcount;
@@ -532,9 +533,19 @@ for(c = 0; c < aplistcount; c++)
}
zeiger++;
}
+injectioncount++;
+if((injectioncount >= 20)... |
added github.com/xeipuuv/gojsonschema | @@ -225,6 +225,9 @@ ALLOW .* -> vendor/gopkg.in/yaml.v2
# INI file format
ALLOW .* -> vendor/gopkg.in/ini.v1
+# JSON Schema
+ALLOW .* -> vendor/github.com/xeipuuv/gojsonschema
+
# Go generated proto packages
ALLOW .* -> vendor/google.golang.org/genproto
|
apps: support param argument to init functions | @@ -606,11 +606,13 @@ static EVP_PKEY_CTX *init_ctx(const char *kdfalg, int *pkeysize,
switch (pkey_op) {
case EVP_PKEY_OP_SIGN:
- rv = EVP_DigestSignInit_ex(mctx, NULL, digestname, libctx, propq, pkey);
+ rv = EVP_DigestSignInit_ex(mctx, NULL, digestname, libctx, propq,
+ pkey, NULL);
break;
case EVP_PKEY_OP_VERIFY:
-... |
print error message if user tried to run hcxdumptool on NETLINK interface | @@ -253,7 +253,7 @@ if(fp)
pidptr = fgets(pidline, 1024, fp);
if(pidptr != NULL)
{
- printf("warning: %s is running with pid %s", &unwantedname[6], pidline);
+ fprintf(stderr, "warning: %s is running with pid %s", &unwantedname[6], pidline);
}
pclose(fp);
}
@@ -4658,7 +4658,7 @@ fd_socket_gpsd = 0;
checkallunwanted();
... |
docs/conf: Version 2.12.0.5. | @@ -74,7 +74,7 @@ copyright = '2014-2019, Damien P. George, Paul Sokolovsky, and contributors'
#
# We don't follow "The short X.Y version" vs "The full version, including alpha/beta/rc tags"
# breakdown, so use the same version identifier for both to avoid confusion.
-version = release = '2.12.0.4'
+version = release =... |
Remove unused local in osotrim() | @@ -212,8 +212,8 @@ size_t osoavail(oso const *s) {
void osotrim(oso *restrict s, char const *restrict cut_set) {
if (!s)
return;
- char *str, *start, *end, *start_pos, *end_pos;
- start_pos = start = str = (char *)s;
+ char *str, *end, *start_pos, *end_pos;
+ start_pos = str = (char *)s;
end_pos = end = str + OSO_HDR(... |
fixed vectorize function in pyccl | import ccllib as lib
-from pyutils import _vectorize_fn, _vectorize_fn2
+from pyutils import _vectorize_fn, _vectorize_fn2, _vectorize_fn3
def massfunc(cosmo, halo_mass, a, odelta):
"""Halo mass function.
@@ -8,7 +8,6 @@ def massfunc(cosmo, halo_mass, a, odelta):
Note: only Tinker (2010) is implemented right now.
TODO:... |
Add the ability for a server to receive a KeyUpdate message | @@ -132,6 +132,13 @@ static int ossl_statem_server13_read_transition(SSL *s, int mt)
return 1;
}
break;
+
+ case TLS_ST_OK:
+ if (mt == SSL3_MT_KEY_UPDATE) {
+ st->hand_state = TLS_ST_SR_KEY_UPDATE;
+ return 1;
+ }
+ break;
}
/* No valid transition found */
@@ -408,7 +415,8 @@ static WRITE_TRAN ossl_statem_server13_wri... |
added staticmethod on osr2mp4 class for getting setting jsons | @@ -293,3 +293,17 @@ class Osr2mp4:
self.previousprogress = estimated_progress
fileopen.close()
return min(99, estimated_progress * 100)
+
+ @staticmethod
+ def settings_json():
+ settings = {'config.json': None, 'ppsettings.json': None, 'settings.json': None, 'strainsettings.json': None}
+ real_dir = Path(__file__).pa... |
urbit-atom: don't run reference impl. on big benchmarks. | @@ -36,8 +36,7 @@ main = defaultMain
, bench "mai" $ whnf maiDump a64
]
- , bgroup "big-dump" [ bench "slo" $ whnf sloDump a32768
- , bench "gmp" $ whnf gmpDump a32768
+ , bgroup "big-dump" [ bench "gmp" $ whnf gmpDump a32768
, bench "mai" $ whnf maiDump a32768
]
@@ -46,8 +45,7 @@ main = defaultMain
, bench "mai" $ whn... |
Move code out of asserts | @@ -165,13 +165,19 @@ void *upstream_thread(void *arg)
char rbuf[1 * 1024 * 1024];
snprintf(path, sizeof(path), "/%s/_.sock", dirname);
int sd = socket(AF_UNIX, SOCK_STREAM, 0);
- assert(sd >= 0);
+ if (sd < 0) {
+ abort();
+ }
struct sockaddr_un addr;
memset(&addr, 0, sizeof(addr));
addr.sun_family = AF_UNIX;
strncpy(... |
OcAppleRamDiskLib: Fix result statement EFI_STATUS vs BOOLEAN | @@ -410,7 +410,7 @@ OcAppleRamDiskLoadFile (
Status = File->SetPosition (File, FilePosition);
if (EFI_ERROR (Status)) {
- return Status;
+ return FALSE;
}
for (Index = 0; FileSize > 0 && Index < ExtentTable->ExtentCount; ++Index) {
|
{AH} more cleaning up | @@ -66,7 +66,7 @@ class TestIndexing(unittest.TestCase):
def setUp(self):
- self.tmpfilename = "tmp_%i.gtf.gz" % id(self)
+ self.tmpfilename = get_temp_filename(suffix="gtf.gz")
shutil.copyfile(self.filename, self.tmpfilename)
def testIndexPreset(self):
@@ -86,8 +86,7 @@ class TestCompression(unittest.TestCase):
preset... |
Fix keyNew calls | @@ -1476,11 +1476,11 @@ static void test_keyCopy (void)
// check KEY_CP_NAME
- orig = keyNew ("user:/orig");
+ orig = keyNew ("user:/orig", KEY_END);
keySetString (orig, "orig");
keySetMeta (orig, "orig", "orig");
- copy = keyNew ("user:/copy");
+ copy = keyNew ("user:/copy", KEY_END);
keySetString (copy, "copy");
keyS... |
move macro stringification macros to the top of the main.c | // See config.json for stack sizes etc
#include "./config.h"
+// macro trick to stringify build-time #defines
+#define TO_STR(x) UNWRAP(x)
+#define UNWRAP(x) #x
+
static inline void blink(int pin) {
k_led_on(pin);
vTaskDelay(BLINK_MS / portTICK_RATE_MS);
@@ -247,14 +251,11 @@ static int build_info(struct slash *slash)
... |
Better luax_checkoption error messages; | @@ -164,7 +164,11 @@ int luax_checkoption(lua_State* L, int index, const StringEntry* map, const char
}
}
- return luaL_argerror(L, index, lua_pushfstring(L, "Invalid %s '%s'", label, string));
+ if (index > 0) {
+ return luaL_argerror(L, index, lua_pushfstring(L, "invalid %s '%s'", label, string));
+ } else {
+ return... |
bricks/ev3dev/messaging: simpler Mailbox inherit
Subclassing to allow for a different data type
becomes easier this way, as shown by the
Logic/Numeric/Text examples. Supplying encode
and decode as init arguments is also still
possible. | @@ -27,8 +27,18 @@ class Mailbox:
"""
self.name = name
self._connection = connection
- self._encode = encode
- self._decode = decode
+
+ if encode:
+ self.encode = encode
+
+ if decode:
+ self.decode = decode
+
+ def encode(self, value):
+ return value
+
+ def decode(self, payload):
+ return payload
def read(self):
"""... |
util/cbi-util: Check pointer before using it
Found-by: Coverity Scan
Commit-Ready: Patrick Georgi
Tested-by: Patrick Georgi | @@ -333,11 +333,13 @@ static void print_integer(const uint8_t *buf, enum cbi_data_tag tag)
{
uint32_t v;
struct cbi_data *d = cbi_find_tag(buf, tag);
- const char *name = d->tag < CBI_TAG_COUNT ? field_name[d->tag] : "???";
+ const char *name;
if (!d)
return;
+ name = d->tag < CBI_TAG_COUNT ? field_name[d->tag] : "???"... |
ford-fusion: test-cycle | tssg+[%dbug [/sur/foo/hoon [[1 1] [1 2]]] [%cnts ~[[%.y 1]] ~]]~
!> (parse-pile:(ford):fusion /sur/foo/hoon ".")
::
+++ test-cycle ^- tang
+ =/ source=@t
+ '''
+ /+ self
+ .
+ '''
+ =/ =ankh:clay
+ :- fil=~
+ %- ~(gas by *(map @tas ankh:clay))
+ :~ :+ %lib fil=~
+ %- ~(gas by *(map @tas ankh:clay))
+ :~ :+ %self fil=~
... |
Fix restore distribution verification behave step to account for relfilenode counter change.
The behave step assumed OID and relfilenode are equal. This was changed
in commit | @@ -840,7 +840,7 @@ def get_dist_policy_to_file(filename, dbname):
pg_class c \
INNER JOIN \
gp_distribution_policy p \
- ON (c.relfilenode = p.localoid) \
+ ON (c.oid = p.localoid) \
AND \
c.relstorage != 'x' \
ORDER BY c.relname"
|
Strip first flag check in LZW compression function for issue | @@ -307,7 +307,6 @@ gif_process_raster(
SIXELSTATUS status = SIXEL_FALSE;
unsigned char lzw_cs;
signed int len, code;
- unsigned int first;
signed int codesize, codemask, avail, oldcode, bits, valid_bits, clear;
gif_lzw *p;
@@ -321,7 +320,6 @@ gif_process_raster(
}
clear = 1 << lzw_cs;
- first = 1;
codesize = lzw_cs + ... |
PHP: logging in request context when possible. | @@ -1277,6 +1277,16 @@ static void
nxt_php_log_message(char *message TSRMLS_DC)
#endif
{
+ nxt_php_run_ctx_t *ctx;
+
+ ctx = SG(server_context);
+
+ if (ctx != NULL) {
+ nxt_unit_req_log(ctx->req, NXT_UNIT_LOG_NOTICE,
+ "php message: %s", message);
+
+ } else {
nxt_unit_log(nxt_php_unit_ctx, NXT_UNIT_LOG_NOTICE,
"php m... |
Update common_mips64.h | @@ -94,7 +94,7 @@ static inline unsigned int rpcc(void){
#define RPCC_DEFINED
#ifndef NO_AFFINITY
-#define WHEREAMI
+//#define WHEREAMI
static inline int WhereAmI(void){
int ret=0;
__asm__ __volatile__(".set push \n"
|
xenial -> bionic
Fix nits | -dist: xenial
-language: minimal
-sudo: required
+dist: bionic
+os: linux
+language: c
+
addons:
apt:
sources:
@@ -10,11 +11,11 @@ addons:
- cmake-data
- libssl-dev
- gdb
-matrix:
+jobs:
include:
- name: Linux (gcc-8)
os: linux
- dist: xenial
+ dist: bionic
addons:
apt:
sources:
@@ -27,20 +28,20 @@ matrix:
- EXTRA_LDFL... |
SOVERSION bump to version 2.24.22 | @@ -66,7 +66,7 @@ set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_
# set version of the library
set(LIBYANG_MAJOR_SOVERSION 2)
set(LIBYANG_MINOR_SOVERSION 24)
-set(LIBYANG_MICRO_SOVERSION 21)
+set(LIBYANG_MICRO_SOVERSION 22)
set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG... |
Fix typos on docs: colleciton->collection etc | @@ -69,7 +69,7 @@ Important start options are here.
- The scrub command is provided as an ASCII command extension.
To use the command, use `-X` to specify the location of ascii_scrub.so library.
-To see details on arcus-memcached start options, run memcache with -h option like below.
+To see details on arcus-memcached ... |
logger: reinit on config reload | @@ -835,7 +835,11 @@ parse_overlay_config(struct overlay_params *params,
else
HUDElements.text_column = 1;
- if(!logger) logger = std::make_unique<Logger>(HUDElements.params);
+ if(logger && logger->is_active()){
+ SPDLOG_DEBUG("Stopped logging because config reloaded");
+ logger->stop_logging();
+ }
+ logger = std::ma... |
cpu: Unconditionally cleanup TLBs on P9 in opal_reinit_cpus()
This can work around problems where Linux fails to properly
cleanup part or all of the TLB on kexec. | @@ -1191,11 +1191,20 @@ static int64_t opal_reinit_cpus(uint64_t flags)
else
req.clr_bits |= SPR_HID0_POWER9_RADIX;
- cleanup_global_tlb();
current_radix_mode = radix;
}
}
+ /* Cleanup the TLB. We do that unconditionally, this works
+ * around issues where OSes fail to invalidate the PWC in Radix
+ * mode for example. ... |
enhance demo to show use of OMP_TARGET_OFFLOAD environment variable | @@ -31,26 +31,38 @@ echo "==== COMPILES ===="
gpu=`$AOMP/bin/offload-arch`
cmd="$AOMP/bin/clang -fopenmp -o $tdir/gpu-offload $tmpcfile --offload-arch=$gpu"
echo "$cmd" ; $cmd
-cmd="$AOMP/bin/clang -fopenmp -o $tdir/host-offload $tmpcfile -fopenmp-targets=x86_64-pc-linux-gnu -Xopenmp-target=x86_64-pc-linux-gnu -march=z... |
instanceid BUGFIX uninitialized variable | @@ -183,7 +183,8 @@ lyplg_type_store_instanceid(const struct ly_ctx *ctx, const struct lysc_type *ty
LY_CHECK_GOTO(ret = lyplg_type_lypath_new(ctx, value, value_len, options, format, prefix_data, ctx_node,
unres, &path, err), cleanup);
- /* store resolved schema path */
+ /* store resolved schema path and init storage ... |
interpreters/ficl: add double include guard to nuttx.h | *
***************************************************************************/
+#ifndef __APPS_INTERPRETERS_FICL_SRC_NUTTX_H
+#define __APPS_INTERPRETERS_FICL_SRC_NUTTX_H
+
/***************************************************************************
* Included Files
*****************************************************... |
Fix error for entity author suggester name for EE | </arr>
</requestHandler>
- <requestHandler class="org.apache.solr.handler.component.SearchHandler" name="/suggestEntitytAuthors">
+ <requestHandler class="org.apache.solr.handler.component.SearchHandler" name="/suggestEntityAuthors">
<lst name="defaults">
<str name="suggest">true</str>
<str name="suggest.dictionary">su... |
Change made-up string argument to be more consistent. | @@ -183,7 +183,7 @@ def test_cosmology_init():
# Make sure error raised if incorrect type of Parameters object passed
assert_raises(TypeError, ccl.Cosmology, params=params.parameters)
- assert_raises(TypeError, ccl.Cosmology, params="xx")
+ assert_raises(TypeError, ccl.Cosmology, params="x")
# Make sure error raised if... |
Update comment for logging callback
Changed lv_log_register_print to lv_log_register_print_cb | @@ -225,7 +225,7 @@ typedef void * lv_indev_drv_user_data_t; /*Type of user data in the i
# define LV_LOG_LEVEL LV_LOG_LEVEL_WARN
/* 1: Print the log with 'printf';
- * 0: user need to register a callback with `lv_log_register_print`*/
+ * 0: user need to register a callback with `lv_log_register_print_cb`*/
# define L... |
build: conf: fix target definition for generated headers
Build system for static files is broken due to wrong custom command
definition.
This patch uses a custom target instead and fix dependencies for
'flb-static-conf' target.
note: this gist helped to solve the problem: | @@ -8,6 +8,7 @@ set(CONF_DIR ${PROJECT_SOURCE_DIR}/include/fluent-bit/conf/)
# Iterate list creating custom commands for each entry
set(OUT_FILES "")
+set(STATIC_DEPS "")
set(FLB_STATIC_CONF_ARR "")
set(FLB_STATIC_CONF_ARR_SIZE 0)
foreach(file ${files})
@@ -15,17 +16,18 @@ foreach(file ${files})
message(STATUS "Process... |
drv/virtual/simulation: Implement initial state.
Give each motor an initial time and random initial angle. | @@ -7,7 +7,9 @@ from ..drv.led import VirtualLed
from ..drv.clock import CountingClock
from ..drv.ioport import VirtualIOPort, PortId, IODeviceTypeId
-from numpy import array
+import numpy
+import random
+import math
from ..physics.motors import SimpleMotor as SimMotor
@@ -39,7 +41,7 @@ class VirtualMotorDriver:
# Simu... |
Style: changing preprocessor directives.
Using #if directives instead of #ifdef the same way as in other places. | @@ -246,24 +246,30 @@ nxt_sendfile(int fd, int s, off_t pos, size_t size)
{
ssize_t res;
-#ifdef NXT_HAVE_MACOSX_SENDFILE
+#if (NXT_HAVE_MACOSX_SENDFILE)
+
off_t sent = size;
int rc = sendfile(fd, s, pos, &sent, NULL, 0);
res = (rc == 0 || sent > 0) ? sent : -1;
-#endif
-#ifdef NXT_HAVE_FREEBSD_SENDFILE
+#elif (NXT_HAV... |
helloworld@starterkit can build through | @@ -44,7 +44,7 @@ GLOBAL_DEFINES += IOTX_WITHOUT_TLS MQTT_DIRECT
ifeq ($(COMPILER),armcc)
GLOBAL_LDFLAGS += -L --scatter=board/starterkit/STM32L433.sct
else ifeq ($(COMPILER),iar)
-GLOBAL_LDFLAGS += --config STM32L433.icf
+GLOBAL_LDFLAGS += --config board/starterkit/STM32L433.icf
else
GLOBAL_LDFLAGS += -T board/starter... |
Add citation to RFC 1951 (flate). | @@ -29,3 +29,8 @@ distance=2 back-reference decodes to "cdc", so the overall decoding is
000010 0x000A B 0x42 0b_0..._.... (lcode = 256) end of block
000011 0x000B . 0x00 0b_..00_0000
+
+This back-reference is valid, even though there is no prior data in that block,
+because there is prior data in previous blocks. RFC ... |
Open script after creating it | @@ -182,6 +182,11 @@ import SavannaKit
return importHandler(docURL, docURL != nil ? .copy : .none)
}
+ func documentBrowser(_ controller: UIDocumentBrowserViewController, didImportDocumentAt sourceURL: URL, toDestinationURL destinationURL: URL) {
+
+ openDocument(destinationURL, run: false)
+ }
+
// MARK: - Animation
/... |
hark-store: remove visions of future | state-2
state-3
state-4
+ state-5
==
+$ unread-stats
[indices=(set index:graph-store) last=@da]
+$ state-4
[%4 base-state]
::
++$ state-5
+ [%5 base-state]
+::
+$ inflated-state
- $: state-4
+ $: state-5
cache
==
:: $cache: useful to have precalculated, but can be derived from state
=| cards=(list card)
|^
?- -.old
- %... |
config_tools: CAT is no longer unchecked when CDP is unchecked
CAT is no longer unchecked when CDP is unchecked | @@ -282,8 +282,8 @@ export default {
break;
case 'CDP_ENABLED':
this.formDataProxy('SSRAM_ENABLED', 'n');
- this.formDataProxy('RDT_ENABLED', data);
if (data === 'y') {
+ this.formDataProxy('RDT_ENABLED', 'y');
this.formDataProxy('VCAT_ENABLED', 'n');
}
break;
|
Add LdrFindResource_U/LdrEnumResources | @@ -583,6 +583,50 @@ LdrAccessResource(
_Out_opt_ ULONG *ResourceLength
);
+typedef struct _LDR_RESOURCE_INFO
+{
+ ULONG_PTR Type;
+ ULONG_PTR Name;
+ ULONG_PTR Language;
+} LDR_RESOURCE_INFO, *PLDR_RESOURCE_INFO;
+
+#define RESOURCE_TYPE_LEVEL 0
+#define RESOURCE_NAME_LEVEL 1
+#define RESOURCE_LANGUAGE_LEVEL 2
+#defin... |
Update FAQ about Windows scaling behavior
Recommend to update to v1.22 before suggesting manual configuration.
Fixes <https://github.com/Genymobile/scrcpy/issues/3028>
PR <https://github.com/Genymobile/scrcpy/pull/3032> | @@ -150,22 +150,24 @@ screen, then you might get poor quality, especially visible on text (see [#40]).
[#40]: https://github.com/Genymobile/scrcpy/issues/40
-To improve downscaling quality, trilinear filtering is enabled automatically
-if the renderer is OpenGL and if it supports mipmapping.
+This problem should be fix... |
Fix mynewt assert reading header from scratch
For mynewt flash map only accepts values for slot 0 and 1. This
code was trying to read the image header on the scratch area using
the same interface and was segfaulting when slot0 and slot1 had
similarly sized images. | @@ -221,6 +221,26 @@ boot_previous_swap_type(void)
return BOOT_SWAP_TYPE_REVERT;
}
+static int
+boot_read_header_from_scratch(struct image_header *out_hdr)
+{
+ const struct flash_area *fap;
+ int rc;
+
+ rc = flash_area_open(FLASH_AREA_IMAGE_SCRATCH, &fap);
+ if (rc != 0) {
+ return BOOT_EFLASH;
+ }
+
+ rc = flash_are... |
Define sbgemm_r to fix DYNAMIC_ARCH builds | @@ -1824,6 +1824,13 @@ static void init_parameter(void) {
fprintf(stderr, "L2 = %8d DGEMM_P .. %d\n", l2, TABLE_NAME.dgemm_p);
#endif
+#if BUILD_BFLOAT16==1
+ TABLE_NAME.sbgemm_r = (((BUFFER_SIZE -
+ ((TABLE_NAME.sbgemm_p * TABLE_NAME.sbgemm_q * 4 + TABLE_NAME.offsetA
+ + TABLE_NAME.align) & ~TABLE_NAME.align)
+ ) / (T... |
string: rename strchr to runtime_strchr | #include <runtime.h>
char *
-strchr (const char *string, int _c)
+runtime_strchr (const char *string, int _c)
{
char c = _c;
@@ -22,7 +22,7 @@ strtok_r (char *s, const char *delimiters, char **save_ptr)
if (s == 0)
s = *save_ptr;
- while (strchr(delimiters, *s) != 0) {
+ while (runtime_strchr(delimiters, *s) != 0) {
if... |
Changed RPS RPM name to hawq-ranger-plugin_<version>
(closes | <configuration>
<copyright>ASL 2.0</copyright>
<group>org.apache.hawq.ranger</group>
+ <name>hawq-ranger-plugin_${hawq.name.version}</name>
<defaultUsername>gpadmin</defaultUsername>
<defaultGroupname>gpadmin</defaultGroupname>
<description>
HAWQ Ranger plugin.
</description>
- <release>${release.version}</release>
+ <... |
POST /rules should always create a new rule, not replace one similar | @@ -521,30 +521,9 @@ int DeRestPluginPrivate::createRule(const ApiRequest &req, ApiResponse &rsp)
updateEtag(rule.etag);
updateEtag(gwConfigEtag);
- {
- bool found = false;
- std::vector<Rule>::iterator ri = rules.begin();
- std::vector<Rule>::iterator rend = rules.end();
- for (; ri != rend; ++ri)
- {
- if (ri->action... |
Set cambus timing for H7. | @@ -21,7 +21,7 @@ int cambus_init()
/* Configure I2C */
I2CHandle.Instance = SCCB_I2C;
I2CHandle.Init.AddressingMode = I2C_ADDRESSINGMODE_7BIT;
- #if defined(STM32F765xx) || defined(STM32F769xx)
+ #if defined(MCU_SERIES_F7) || defined(MCU_SERIES_H7)
I2CHandle.Init.Timing = 0x40912732; // 100KHz
#else
I2CHandle.Init.Clo... |
HV: Fix coding style violation of MISRA in string.c
update 'strtol_deci()' & 'strtoul_hex()'
Acked-by: Eddie Dong | @@ -27,13 +27,17 @@ long strtol_deci(const char *nptr)
* Skip white space and pick up leading +/- sign if any.
*/
do {
- c = *s++;
+ c = *s;
+ s++;
} while (ISSPACE(c));
if (c == '-') {
neg = 1;
- c = *s++;
- } else if (c == '+')
- c = *s++;
+ c = *s;
+ s++;
+ } else if (c == '+') {
+ c = *s;
+ s++;
+ }
/*
* Compute th... |
added clock checking | #include <runtime.h>
-static struct pvclock_vcpu_time_info *vclock;
+static struct pvclock_vcpu_time_info *vclock = 0;
#define CPUID_LEAF_4 0x40000001
@@ -51,6 +51,11 @@ void init_clock(heap backed_virtual)
// xxx - figure out how to deal with cpu id so we can
// test for the presence of this feature
vclock = allocate(... |
Add CMD and BAT to the list of files with expected CRLF line
endings | *.vcxproj text eol=crlf
*.vcxproj.filters text eol=crlf
*.vcxproj.user text eol=crlf
+*.cmd text eol=crlf
+*.bat text eol=crlf
# Declare files that will always have LF line endings on checkout.
*.pem text eol=lf
|
MSR: Disable tests on Linux if ASAN is enabled | @@ -20,7 +20,6 @@ add_s_test (kdb-complete "${CMAKE_SOURCE_DIR}/doc/help/kdb-complete.md")
add_s_test (kdb-global-umount "${CMAKE_SOURCE_DIR}/doc/help/kdb-global-umount.md")
add_s_test (kdb-ls "${CMAKE_SOURCE_DIR}/doc/help/kdb-ls.md")
-add_plugin_shell_test (blockresolver)
add_plugin_shell_test (camel)
add_plugin_shell... |
WebPMemToUint32: remove ptr cast to int
this can result in an alignment hint on arm causing a SIGBUS. casting
the input ptr to anything aside from its type is unnecessary for memcpy
and is contrary to the intent of this function. | @@ -66,7 +66,7 @@ WEBP_EXTERN void WebPSafeFree(void* const ptr);
// memcpy() is the safe way of moving potentially unaligned 32b memory.
static WEBP_INLINE uint32_t WebPMemToUint32(const uint8_t* const ptr) {
uint32_t A;
- memcpy(&A, (const int*)ptr, sizeof(A));
+ memcpy(&A, ptr, sizeof(A));
return A;
}
static WEBP_IN... |
Fixed termination signal handlers in worker processes.
This closes issue on GitHub.
Thanks to Julian Brost. | @@ -42,8 +42,8 @@ nxt_port_handlers_t nxt_discovery_process_port_handlers = {
const nxt_sig_event_t nxt_worker_process_signals[] = {
nxt_event_signal(SIGHUP, nxt_worker_process_signal_handler),
nxt_event_signal(SIGINT, nxt_worker_process_sigterm_handler),
- nxt_event_signal(SIGQUIT, nxt_worker_process_sigterm_handler),... |
[passport/go] Fix linter warnings
Note: mandatory check (NEED_CHECK) was skipped | @@ -333,24 +333,6 @@ migrations:
- a.yandex-team.ru/noc/go-startrek_test
- a.yandex-team.ru/orgvisits/witness/client
- a.yandex-team.ru/orgvisits/witness/service
- - a.yandex-team.ru/passport/go/daemons/tvmtool/internal
- - a.yandex-team.ru/passport/go/daemons/tvmtool/internal/cli
- - a.yandex-team.ru/passport/go/daemo... |
external/mbedtls: fix build warnings.
Add type casting logic to avoid warning(or build error) messages. | @@ -428,7 +428,7 @@ int see_read_secure_storage(unsigned char *data, unsigned int *data_len, unsigne
return SEE_INVALID_INPUT_PARAMS;
}
- t_buf = malloc(SEE_MAX_DATA_SIZE);
+ t_buf = (unsigned char *)malloc(SEE_MAX_DATA_SIZE);
if (t_buf == NULL) {
return SEE_ALLOC_ERROR;
@@ -1202,8 +1202,8 @@ int see_generate_certifica... |
shm ext BUGFIX small iterator vars | @@ -1619,7 +1619,7 @@ sr_shmext_change_sub_check(sr_conn_ctx_t *conn, sr_mod_t *shm_mod, sr_datastore_
{
sr_error_info_t *err_info = NULL;
sr_mod_change_sub_t *subs;
- uint16_t i;
+ uint32_t i;
const char *mod_name, *xpath;
int valid;
@@ -1684,7 +1684,7 @@ sr_shmext_oper_sub_check(sr_conn_ctx_t *conn, sr_mod_t *shm_mod... |
engine: added downstream timeout handler call | @@ -129,8 +129,11 @@ static void cb_engine_sched_timer(struct flb_config *ctx, void *data)
{
(void) data;
- /* Upstream connections timeouts handling */
+ /* Upstream timeout handling */
flb_upstream_conn_timeouts(&ctx->upstreams);
+
+ /* Downstream timeout handling */
+ flb_downstream_conn_timeouts(&ctx->downstreams);... |
Update links to MINGW builds in INSTALL.md | @@ -146,8 +146,9 @@ brew install elektra
Installation for WSL is described [here](tutorials/contributing-windows.md).
-If you prefer native but in functionality limited version you can download MinGW builds from
-[here](https://build.libelektra.org/job/libelektra/job/master/lastSuccessfulBuild/artifact/artifacts/debian... |
Allow RSA PK Opaque keys for RSA-PSS signing | @@ -776,6 +776,8 @@ int mbedtls_pk_wrap_as_opaque( mbedtls_pk_context *pk,
psa_set_key_usage_flags( &attributes, PSA_KEY_USAGE_SIGN_HASH );
psa_set_key_algorithm( &attributes,
PSA_ALG_RSA_PKCS1V15_SIGN( hash_alg ) );
+ psa_set_key_enrollment_algorithm( &attributes,
+ PSA_ALG_RSA_PSS( hash_alg ) );
/* import private key... |
Send ECN without ngtcp2_rtb_entry for ECN capable path | @@ -648,7 +648,10 @@ static void conn_handle_tx_ecn(ngtcp2_conn *conn, ngtcp2_pkt_info *pi,
++pktns->tx.ecn.validation_pkt_sent;
+ if (prtb_entry_flags) {
*prtb_entry_flags |= NGTCP2_RTB_FLAG_ECN;
+ }
+
++pktns->tx.ecn.ect0;
return;
@@ -683,7 +686,9 @@ static void conn_handle_tx_ecn(ngtcp2_conn *conn, ngtcp2_pkt_info *... |
chip/npcx/fan.c: Format with clang-format
BRANCH=none
TEST=none | @@ -154,8 +154,8 @@ void mft_set_apb1_prescaler(int ch)
uint16_t prescaler_divider = 0;
/* Set clock prescaler divider to MFT module*/
- prescaler_divider = (uint16_t)(clock_get_apb1_freq()
- / fan_status[ch].mft_freq);
+ prescaler_divider =
+ (uint16_t)(clock_get_apb1_freq() / fan_status[ch].mft_freq);
if (prescaler_d... |
sr: fix added for configuring vlan sub interface as iif interface in End.AD.Flow localsid
Type: fix | @@ -94,14 +94,6 @@ srv6_ad_flow_localsid_creation_fn (ip6_sr_localsid_t *localsid)
return SID_CREATE_INVALID_IFACE_INDEX;
}
- vnet_sw_interface_t *sw =
- vnet_get_sw_interface (sm->vnet_main, ls_mem->sw_if_index_in);
- if (sw->type != VNET_SW_INTERFACE_TYPE_HARDWARE)
- {
- adj_unlock (ls_mem->nh_adj);
- clib_mem_free (... |
BugID:16944965: Update mcu/Config.in | @@ -11,7 +11,9 @@ source "platform/mcu/efm32gxx/Config.in"
source "platform/mcu/es8p508x/Config.in"
source "platform/mcu/esp32/Config.in"
source "platform/mcu/esp8266/Config.in"
+source "platform/mcu/fm33a0xx/Config.in"
source "platform/mcu/freedom-e/e310/Config.in"
+source "platform/mcu/hc32l136/Config.in"
source "pla... |
freertos: Fix configASSERT thread safety
This commit fixes thread safety issues with configASSERT() calls
regarding the value of uxSchedulerSuspended. A false negative
occurs if a context switch to the opposite core occurs in between
the getting the core ID and the assesment.
Closes | @@ -1301,7 +1301,7 @@ static void prvAddNewTaskToReadyList( TCB_t *pxNewTCB, TaskFunction_t pxTaskCode
//No mux; no harm done if this misfires. The deleted task won't get scheduled anyway.
if( pxTCB == pxCurrentTCB[ core ] ) //If task was currently running on this core
{
- configASSERT( uxSchedulerSuspended[ core ] == ... |
Disable GL clipping plane;
It was used for instanced stereo. | @@ -163,7 +163,6 @@ void lovrGraphicsCreateWindow(int w, int h, bool fullscreen, int msaa, const cha
glfwSwapInterval(0);
glEnable(GL_LINE_SMOOTH);
glEnable(GL_PROGRAM_POINT_SIZE);
- glEnable(GL_CLIP_DISTANCE0);
if (state.gammaCorrect) {
glEnable(GL_FRAMEBUFFER_SRGB);
} else {
|
Add Prerequisites installation instructions for centos | @@ -36,6 +36,10 @@ On Ubuntu, you can run:
bc. sudo apt-get install libmagickwand-dev
+On Centos, you can run:
+
+bc. sudo yum install gcc ImageMagick-devel make which
+
*Note to Windows users:* Please make sure that you choose an ImageMagick version that matches the bitness of your Ruby version.
h2(#install). Installi... |
Correct declaration of Windows.Storage | @@ -26,7 +26,6 @@ static const CLR_RT_MethodHandler method_lookup[] =
NULL,
NULL,
NULL,
- NULL,
Library_win_storage_native_Windows_Storage_FileIO::WriteBytes___STATIC__VOID__WindowsStorageIStorageFile__SZARRAY_U1,
Library_win_storage_native_Windows_Storage_FileIO::WriteText___STATIC__VOID__WindowsStorageIStorageFile__S... |
test/uitest.c's pem_password_cb returned 1 instead of the password length | @@ -24,7 +24,7 @@ char *default_config_file = NULL;
static int test_pem_password_cb(char *buf, int size, int rwflag, void *userdata)
{
OPENSSL_strlcpy(buf, (char *)userdata, (size_t)size);
- return 1;
+ return strlen(buf);
}
/*
|
doc: update doc for is closed as fix
during build, "TARGET_DIR=xxx" works well | @@ -274,7 +274,4 @@ of the acrn-hypervisor directory):
from XML files. If the ``TARGET_DIR`` is not specified, the original
configuration files of acrn-hypervisor would be overridden.
- In the 2.1 release, there is a known issue (:acrn-issue:`5157`) that
- ``TARGET_DIR=xxx`` does not work.
-
Follow the same instruction... |
Check that every dispensed temp var is used. | @@ -624,6 +624,9 @@ func (g *gen) writeFuncImpl(n *a.Func) error {
}
g.writes("}\n\n")
+ if g.perFunc.tempW != g.perFunc.tempR {
+ return fmt.Errorf("internal error: temporary variable count out of sync")
+ }
return nil
}
|
ARMv8: use ipi_cap invocation for coreboot. | #include "../../coreboot.h"
extern coreid_t my_arch_id;
-
+extern struct capref ipi_cap;
/// XXX: make this configurable...
#define ARMV8_KERNEL_STACK_SIZE (16 * 1024)
+
+static inline errval_t
+invoke_monitor_spawn_core(hwid_t core_id, enum cpu_type cpu_type,
+ genpaddr_t entry, genpaddr_t context)
+{
+ return cap_inv... |
Move variable declaration to prevent issue with old Microsoft compilers. | @@ -1442,6 +1442,7 @@ void dotnet_parse_tilde(
// number of rows being indexed into.
ROWS rows;
INDEX_SIZES index_sizes;
+ uint32_t heap_sizes;
// Default all rows to 0. They will be set to actual values later on, if
// they exist in the file.
@@ -1458,13 +1459,15 @@ void dotnet_parse_tilde(
if (!struct_fits_in_pe(pe, ... |
qlog: reflect the rename of the ack-delay probe | @@ -38,7 +38,7 @@ def handle_packet_received(events, idx):
if ev["type"] == "ack-block-received":
acked.append([ev["ack-block-begin"],ev["ack-block-end"]])
continue
- elif ev["type"] == "quictrace-recv-ack-delay":
+ elif ev["type"] == "ack-delay-received":
frames.append(render_ack_frame(acked))
continue
|
router_readconfig: remove ipv6 address formatting hack
Since we now properly print addresses, we don't have to do a formatting
hack, which actually adds inconsistency and screws with the statistics
metrics, as well as the duplicate detection. | @@ -768,15 +768,10 @@ router_readconfig(router *orig,
} else if (walk->ai_family == AF_INET6) {
if (inet_ntop(walk->ai_family,
&((struct sockaddr_in6 *)walk->ai_addr)->sin6_addr,
- hnbuf + 1, sizeof(hnbuf) - 2) != NULL)
- {
- hnbuf[0] = '[';
- /* space is reserved above */
- strcat(hnbuf, "]");
+ hnbuf, sizeof(hnbuf)) ... |
Simplify function calling LuaCallFunc instance | @@ -128,13 +128,11 @@ class LuaCallFunc a where
callFunc' :: String -> Lua () -> NumArgs -> a
instance (FromLuaStack a) => LuaCallFunc (Lua a) where
- callFunc' fnName x nargs = do
+ callFunc' fnName pushArgs nargs = do
getglobal' fnName
- x
- z <- pcall nargs 1 Nothing
- if z == OK
- then peek (-1) <* pop 1
- else thr... |
Fix NetBSD build. | @@ -853,7 +853,7 @@ pkg sys =
const close : (fd:fd -> int64)
const creat : (path:byte[:], mode:int64 -> fd)
const unlink : (path:byte[:] -> int)
- const rmdir : (path:byte[:] -> int)
+ const rmdir : (path:byte# -> int)
const read : (fd:fd, buf:byte[:] -> size)
const pread : (fd:fd, buf:byte[:], off : off -> size)
const... |
Don't try to build cooja from inside test makefiles | @@ -5,18 +5,14 @@ CONTIKI=../..
all: clean summary
-summary: cooja $(TESTLOGS)
+summary: $(TESTLOGS)
@cat *.testlog > summary
@echo "========== Summary =========="
@cat summary
-%.testlog: %.sh cooja
+%.testlog: %.sh
@echo "========== Running script test $(basename $@).sh =========="
@bash "$(basename $@).sh" "$(CONTIK... |
Changelog note for PR
Merge PR by gearnode: nsd-control-setup recreate certificates.
The '-r' option recreates certificates. Without it it creates them
if they do not exist, and does not modify them otherwise. | +7 April 2020: Wouter
+ - Merge PR #91 by gearnode: nsd-control-setup recreate certificates.
+ The '-r' option recreates certificates. Without it it creates them
+ if they do not exist, and does not modify them otherwise.
+
6 April 2020: Wouter
- Merge PR #90 by phicoh: O_CLOEXEC should be FD_CLOEXEC.
- Merge PR #92 by... |
update package counts from CI job | @@ -23,8 +23,8 @@ pre-packaged binary RPMs available per architecture type are summarized as follo
Base OS | aarch64 | x86_64 | noarch
:---: | :---: | :---: | :---:
-CentOS 7.4 | 344 | 552 | 35
-SLES 12 SP3 | 352 | 556 | 35
+CentOS 7.4 | 326 | 555 | 35
+SLES 12 SP3 | 334 | 558 | 35
A list of all available components is... |
Skip BOM when reading the config file
Fixes | @@ -194,6 +194,7 @@ static int def_load_bio(CONF *conf, BIO *in, long *line)
BUF_MEM *buff = NULL;
char *s, *p, *end;
int again;
+ int first_call = 1;
long eline = 0;
char btmp[DECIMAL_SIZE(eline) + 1];
CONF_VALUE *v = NULL, *tv;
@@ -243,6 +244,19 @@ static int def_load_bio(CONF *conf, BIO *in, long *line)
goto err;
p[... |
components/bt: Fix abort if call esp_spp_deinit without calling esp_spp_init | @@ -315,6 +315,7 @@ static void btc_spp_init(btc_spp_args_t *arg)
{
if (osi_mutex_new(&spp_local_param.spp_slot_mutex) != 0) {
BTC_TRACE_ERROR("%s osi_mutex_new failed\n", __func__);
+ return;
}
spp_local_param.spp_mode = arg->init.mode;
spp_local_param.spp_slot_id = 0;
@@ -323,6 +324,10 @@ static void btc_spp_init(btc... |
kiln: revive agents on upgrade (provisional) | =+ "kiln: merge into {here} failed, waiting for next revision"
%- (slog leaf/- p.p.syn)
..abet
- ~> %slog.0^leaf/"merge into {here} succeeded"
- ..abet
+ ~> %slog.0^leaf/"merge into {here} succeeded; reviving agents"
+ %- emil
+ %+ turn (get-apps loc)
+ |= =dude:gall
+ [/kiln/fade/[dude] %pass %arvo %g %fade dude %jolt... |
volteer: Increase LED PWM frequency
Prevent visible LED flicker by driving the LEDs at a higher frequency.
TEST=Observe LED not flickering
BRANCH=none | @@ -166,17 +166,17 @@ const struct pwm_t pwm_channels[] = {
[PWM_CH_LED1_BLUE] = {
.channel = 2,
.flags = PWM_CONFIG_ACTIVE_LOW | PWM_CONFIG_DSLEEP,
- .freq = 100,
+ .freq = 2400,
},
[PWM_CH_LED2_GREEN] = {
.channel = 0,
.flags = PWM_CONFIG_ACTIVE_LOW | PWM_CONFIG_DSLEEP,
- .freq = 100,
+ .freq = 2400,
},
[PWM_CH_LED3_... |
Type Checker: Fix minor typo in ReadMe | @@ -34,7 +34,7 @@ as well.
In order to use the type checker, mount a configuration specification along with this
plugin. There are already a lot of commonly used keywords supported out of the box specified
in the file [prelude.ini](/src/plugins/typechecker/typechecker/prelude.ini).
-Usually one wants to mount that file... |
example_test: using try block to pass the python style check | from __future__ import print_function
import os
import sys
+
+EXPECT_TIMEOUT = 20
+
+try:
+ import IDF
+except ImportError:
test_fw_path = os.getenv("TEST_FW_PATH")
if test_fw_path and test_fw_path not in sys.path:
sys.path.insert(0, test_fw_path)
-import TinyFW
import IDF
-EXPECT_TIMEOUT = 20
-
@IDF.idf_example_test(e... |
changes to NetCDF (FindNetCDF) | @@ -75,9 +75,8 @@ ecbuild_add_executable( TARGET gts_count
# grib to netcdf is optional
ecbuild_add_executable( TARGET grib_to_netcdf
SOURCES grib_to_netcdf.c
- INCLUDES ${NETCDF_INCLUDE_DIRS}
CONDITION HAVE_NETCDF
- LIBS grib_tools ${NETCDF_LIBRARIES} )
+ LIBS grib_tools NetCDF::NetCDF_C )
ecbuild_add_executable( TARG... |
ext shm BUGFIX ext SHM mapping data race | @@ -60,8 +60,9 @@ sr_shmext_conn_remap_lock(sr_conn_ctx_t *conn, sr_lock_mode_t mode, int ext_lock
if ((err_info = sr_file_get_size(conn->ext_shm.fd, &shm_file_size))) {
goto error_ext_remap_unlock;
}
- if (shm_file_size > conn->ext_shm.size) {
- /* ext SHM is larger now and we need to remap it */
+ if (shm_file_size !... |
Remove deprecated Arch Linux package
The `scrcpy-prebuiltserver` has been deprecated in favor of the `scrcpy`
package.
<https://aur.archlinux.org/cgit/aur.git/commit/?h=scrcpy-prebuiltserver&id=2ef4359b2e45fc278a191fae014d381b486ffcfe> | @@ -29,12 +29,10 @@ control it using keyboard and mouse.
On Linux, you typically need to [build the app manually][BUILD]. Don't worry,
it's not that hard.
-For Arch Linux, two [AUR] packages have been created by users:
-
- - [`scrcpy`](https://aur.archlinux.org/packages/scrcpy/)
- - [`scrcpy-prebuiltserver`](https://au... |
Fixed inclusion of eWeLink SmartPlug model SA-003-Zigbee | @@ -516,6 +516,7 @@ void LightNode::setHaEndpoint(const deCONZ::SimpleDescriptor &endpoint)
case DEV_ID_LEVEL_CONTROL_SWITCH: ltype = QLatin1String("Level control switch"); break;
case DEV_ID_ONOFF_OUTPUT: ltype = QLatin1String("On/Off output"); break;
case DEV_ID_LEVEL_CONTROLLABLE_OUTPUT: ltype = QLatin1String("Level... |
[arch][arm64] fix setting of UXN and PXN bits for NX permission
Previously would only set both UXN and PXN for no execute pages, but for
pages not marked no execute, neither bit was set. Change to mask out the
other privilege mode. | @@ -71,6 +71,13 @@ static pte_t mmu_flags_to_pte_attr(uint flags) {
if (flags & ARCH_MMU_FLAG_PERM_NO_EXECUTE) {
attr |= MMU_PTE_ATTR_UXN | MMU_PTE_ATTR_PXN;
+ } else {
+ // execute permissions, so set user or privileged XN based on which mode
+ if (flags & ARCH_MMU_FLAG_PERM_USER) {
+ attr |= MMU_PTE_ATTR_PXN;
+ } els... |
u3: correct u3m_soft() error result where +mook is unavailable | @@ -1290,20 +1290,32 @@ u3m_soft(c3_w mil_w,
return why;
}
else {
+ u3_noun tax, cod, pro;
+
+ switch ( u3h(why) ) {
+ case 2: {
+ cod = c3__exit;
+ tax = u3t(why);
+ } break;
+
+ case 3: {
+ cod = u3h(u3t(why));
+ tax = u3t(u3t(why));
+ } break;
+
// don't use .^ at the top level!
//
- c3_assert(1 != u3h(why));
+ defa... |
in_syslog: protect from tainted scalar (CID 161074) | @@ -42,7 +42,7 @@ int syslog_conn_event(void *data)
event = &conn->event;
if (event->mask & MK_EVENT_READ) {
available = (conn->buf_size - conn->buf_len);
- if (available < 1) {
+ if (available <= 1) {
if (conn->buf_size + ctx->chunk_size > ctx->buffer_size) {
flb_trace("[in_syslog] fd=%i incoming data exceed limit (%i... |
Show the commands using triple back-tick | @@ -29,21 +29,28 @@ INSTALLATION
1. Download ecCodes from https://software.ecmwf.int/wiki/display/ECC/Releases
2. Unpack distribution:
- > tar -xzf eccodes-x.y.z-Source.tar.gz
+ ```
+ tar -xzf eccodes-x.y.z-Source.tar.gz
+ ```
3. Create a separate directory where to build ecCodes:
- > mkdir build
- > cd build
+ ```
+ m... |
I added Mesa to the rztrona config site file. | @@ -55,6 +55,11 @@ VISIT_OPTION_DEFAULT(VISIT_DDT ON TYPE BOOL)
##############################################################
##
+##
+## Mesa
+##
+VISIT_OPTION_DEFAULT(VISIT_MESA_DIR ${VISITHOME}/mesa/7.10.2/${VISITARCH})
+
##
## Python
##
|
Fix OS_SDK=local and more GCC | @@ -969,7 +969,7 @@ class ToolchainOptions(object):
@property
def is_gcc(self):
- return self.type == 'gcc'
+ return self.type == 'gnu'
@property
def is_clang(self):
@@ -1149,6 +1149,7 @@ class GnuToolchain(Toolchain):
self.setup_tools(project='build/platform/cctools', var='${CCTOOLS_ROOT_RESOURCE_GLOBAL}', bin='bin', ... |
libhfuzz/performance: lower the reset ratio from 5 to 10 | #define HF_USEC_PER_SEC 1000000
#define HF_CHECK_INTERVAL_USECS (HF_USEC_PER_SEC * 20) /* Peform check every 20 sec. */
+#define HF_RESET_RATIO 10 /* Reset if currently n times slower that at the beginning */
static uint64_t iterCnt = 0;
static time_t firstInputUSecs = 0;
@@ -42,10 +43,10 @@ bool performanceTooSlow(voi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.