message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
pylint ignore import error | @@ -140,7 +140,7 @@ check_py () {
fi
echo -e "\n===== pylint -E ====="
- $PYLINT -E -f parseable --ignore=__init__.py --ignore-patterns="test_.*.py" $FILES
+ $PYLINT -E -f parseable --disable=E0401 --ignore=__init__.py --ignore-patterns="test_.*.py" $FILES
if [ $? -ne 0 ]; then
echo "test-codingstyle-py FAILED"
popd >/... |
lib/utils: Expose pyb_set_repl_info function public
The patch enables the possibility to disable or initialize the repl
info from outside of the module. Can also be used to initialize the
repl_display_debugging_info in pyexec.c if not startup file is clearing
.bss segment. | @@ -50,6 +50,7 @@ int pyexec_frozen_module(const char *name);
void pyexec_event_repl_init(void);
int pyexec_event_repl_process_char(int c);
extern uint8_t pyexec_repl_active;
+mp_obj_t pyb_set_repl_info(mp_obj_t o_value);
MP_DECLARE_CONST_FUN_OBJ_1(pyb_set_repl_info_obj);
|
Fix Description header | @@ -4,7 +4,9 @@ Logging
Mynewt log package supports logging of information within a Mynewt
application. It allows packages to define their own log streams with
separate names. It also allows an application to control the output
-destination of logs. ### Description
+destination of logs.
+
+### Description
In the Mynewt... |
[DeviceDriver][Serial] Fix serial open flag lost when device reopen. | @@ -641,6 +641,13 @@ static rt_err_t rt_serial_open(struct rt_device *dev, rt_uint16_t oflag)
serial->serial_rx = RT_NULL;
}
}
+ else
+ {
+ if (oflag & RT_DEVICE_FLAG_DMA_RX)
+ dev->open_flag |= RT_DEVICE_FLAG_DMA_RX;
+ else if (oflag & RT_DEVICE_FLAG_INT_RX)
+ dev->open_flag |= RT_DEVICE_FLAG_INT_RX;
+ }
if (serial->s... |
use a UTC timestamp for POCL_BUILD_TIMESTAMP
this will be reproducible if SOURCE_DATE_EPOCH is set,
regardless of any TZ setting | @@ -1043,7 +1043,7 @@ endif()
set_expr(POCL_KERNEL_CACHE_DEFAULT KERNEL_CACHE_DEFAULT)
-string(TIMESTAMP POCL_BUILD_TIMESTAMP "%d%m%Y%H%M%S")
+string(TIMESTAMP POCL_BUILD_TIMESTAMP "%d%m%Y%H%M%S" UTC)
file(WRITE "${CMAKE_BINARY_DIR}/pocl_build_timestamp.h" "#define POCL_BUILD_TIMESTAMP \"${POCL_BUILD_TIMESTAMP}\"")
###... |
Fixed off-by-one error when doing %lin wrapping. | =/ txt (tuba (trip msg.sep))
|- ^- (list tape)
?~ txt ~
- =/ end
- ?: (lte (lent txt) wyd) (lent txt)
+ =+ ^- {end/@ud nex/?}
+ ?: (lte (lent txt) wyd) [(lent txt) &]
=+ ace=(find " " (flop (scag +(wyd) `(list @c)`txt)))
- ?~ ace wyd
- (sub wyd u.ace)
+ ?~ ace [wyd |]
+ [(sub wyd u.ace) &]
:- (weld pef (tufa (scag end ... |
add batch methods into libbpf.h | @@ -151,6 +151,12 @@ int bcc_iter_attach(int prog_fd, union bpf_iter_link_info *link_info,
int bcc_iter_create(int link_fd);
int bcc_make_parent_dir(const char *path);
int bcc_check_bpffs_path(const char *path);
+int bpf_lookup_batch(int fd, __u32 *in_batch, __u32 *out_batch, void *keys,
+ void *values, __u32 *count);
... |
Cleanup valuesEqual | @@ -389,17 +389,25 @@ bool valuesEqual(Value a, Value b) {
#ifdef NAN_TAGGING
if (IS_OBJ(a) && IS_OBJ(b)) {
- if (AS_OBJ(a)->type == OBJ_LIST && AS_OBJ(b)->type == OBJ_LIST) {
+ if (AS_OBJ(a)->type != AS_OBJ(b)->type) return false;
+
+ switch (AS_OBJ(a)->type) {
+ case OBJ_LIST: {
return listComparison(a, b);
}
- if (A... |
[make] tweak the way top level modules are included and add a few comments
No functional change. | @@ -144,11 +144,17 @@ $(error couldn't find target or target doesn't define platform)
endif
include platform/$(PLATFORM)/rules.mk
+ifndef ARCH
+$(error couldn't find arch or platform doesn't define arch)
+endif
+include arch/$(ARCH)/rules.mk
+
$(info PROJECT = $(PROJECT))
$(info PLATFORM = $(PLATFORM))
$(info TARGET = ... |
Added python unit test for emulator cosmology w/neutrinos | @@ -33,9 +33,12 @@ def reference_models():
p6=ccl.Parameters(Omega_c=0.27, Omega_b=0.022/0.67**2, h=0.67, sigma8=0.8, n_s=0.96,N_nu_rel=3.04,N_nu_mass=0.,m_nu=0.)
cosmo6 = ccl.Cosmology(p6,transfer_function='emulator',matter_power_spectrum='emu')
+ # Emulator Pk w/neutrinos
+ p7=ccl.Parameters(Omega_c=0.27, Omega_b=0.0... |
YAwn: Rebuild grammar header after grammar update | @@ -57,6 +57,9 @@ function (check_dependencies)
file (WRITE ${SOURCE_FILE_GRAMMAR}
${GRAMMAR})
+ # Make sure the build system recreates the header for the grammar, if we modify `yaml.bnf`
+ set_source_files_properties (${SOURCE_FILE_GRAMMAR} PROPERTIES GENERATED TRUE)
+
set (SOURCE_FILES
${SOURCE_FILES_INPUT}
${SOURCE_... |
fix the order of functions in main.c | @@ -2492,6 +2492,16 @@ static void on_accept(h2o_socket_t *listener, const char *err)
} while (--num_accepts != 0);
}
+struct init_ebpf_key_info_t {
+ struct sockaddr *local, *remote;
+};
+
+static int init_ebpf_key_from_info(h2o_ebpf_map_key_t *key, void *_info)
+{
+ struct init_ebpf_key_info_t *info = _info;
+ return... |
review: getSpatial > isSpatial | @@ -51,7 +51,7 @@ static int l_lovrSourceSetVolume(lua_State* L) {
return 0;
}
-static int l_lovrSourceGetSpatial(lua_State* L) {
+static int l_lovrSourceIsSpatial(lua_State* L) {
Source* source = luax_checktype(L, 1, Source);
lua_pushboolean(L, lovrSourceGetSpatial(source));
return 1;
@@ -120,7 +120,7 @@ const luaL_Re... |
Make ZydisWinKernel compatible with Clang | @@ -58,10 +58,13 @@ RtlImageNtHeader(
_In_ PVOID ImageBase
);
+#if defined(ZYDIS_CLANG) || defined(ZYDIS_GNUC)
+__attribute__((section("INIT")))
+#endif
DRIVER_INITIALIZE
DriverEntry;
-#ifdef ALLOC_PRAGMA
+#if defined(ALLOC_PRAGMA) && !(defined(ZYDIS_CLANG) || defined(ZYDIS_GNUC))
#pragma alloc_text(INIT, DriverEntry)
... |
options/ansi: Implement proper setvbuf() | @@ -570,9 +570,29 @@ int fflush(FILE *file_base) {
return fflush_unlocked(file_base);
}
-int setvbuf(FILE *__restrict stream, char *__restrict buffer, int mode, size_t size) {
- // TODO: Honor the buffering mode.
- mlibc::infoLogger() << "\e[35mmlibc: setvbuf() is ignored\e[39m" << frg::endlog;
+int setvbuf(FILE *file_... |
os/include/pthread.h : Change pthread_set/getname_np's prctl option
To set/get the name through prctl, PR_SET/GET_NAME_BYPID option should be used. | * @since TizenRT v1.0
*/
#define pthread_setname_np(thread, name) \
- prctl((int)PR_SET_NAME, (char*)name, (int)thread)
+ prctl((int)PR_SET_NAME_BYPID, (char*)name, (int)thread)
/**
* @ingroup PTHREAD_KERNEL
* @since TizenRT v1.0
*/
#define pthread_getname_np(thread, name) \
- prctl((int)PR_GET_NAME, (char*)name, (int)... |
* ejdb2 release preparations | MIT License
-Copyright (c) 2012-2018 Softmotions Ltd <info@softmotions.com>
+Copyright (c) 2012-2019 Softmotions Ltd <info@softmotions.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
|
odissey: allocate default config string values | @@ -526,7 +526,9 @@ od_config_parse_user(od_config_t *config, od_schemedb_t *db)
if (! od_config_next_keyword(config, &od_config_keywords[OD_LDEFAULT]))
return -1;
user->is_default = 1;
- user->user = "default";
+ user->user = strdup("default");
+ if (user->user == NULL)
+ return -1;
}
user->db = db;
user->user_len = s... |
oc_acl:update DOC access policy for doxm | @@ -388,6 +388,19 @@ oc_sec_check_acl(oc_method_t method, oc_resource_t *resource,
}
}
+ if ((pstat->s == OC_DOS_RFPRO || pstat->s == OC_DOS_RFNOP ||
+ pstat->s == OC_DOS_SRESET) &&
+ !(endpoint->flags & SECURED)) {
+ /* anonp-clear requests to /oic/sec/doxm while the
+ * dos is RFPRO, RFNOP or SRESET should not be aut... |
sched/wqueue: do work_cancel when worker is not null | @@ -118,7 +118,10 @@ int work_queue(int qid, FAR struct work_s *work, worker_t worker,
/* Remove the entry from the timer and work queue. */
+ if (work->worker != NULL)
+ {
work_cancel(qid, work);
+ }
/* Initialize the work structure. */
|
quic: fix tests
Reduce the amount of data sent to avoid a hang in the QUIC stack when
the fifos get full. This fixes the QUIC tests in debug mode while
is not merged.
Type: test | @@ -131,7 +131,7 @@ class QUICEchoInternalTransferTestCase(QUICEchoInternalTestCase):
@unittest.skipUnless(running_extended_tests, "part of extended tests")
def test_quic_internal_transfer(self):
self.server()
- self.client("no-output", "mbytes", "10")
+ self.client("no-output", "mbytes", "2")
class QUICEchoInternalSer... |
Correction of too restrictive ssl cli minor check | @@ -1952,7 +1952,7 @@ static int ssl_parse_hello_verify_request( mbedtls_ssl_context *ssl )
p += 2;
if( major_ver < MBEDTLS_SSL_MAJOR_VERSION_3 ||
- minor_ver < MBEDTLS_SSL_MINOR_VERSION_3 ||
+ minor_ver < MBEDTLS_SSL_MINOR_VERSION_2 ||
major_ver > ssl->conf->max_major_ver ||
minor_ver > ssl->conf->max_minor_ver )
{
|
bq25720: add more options for VSYS_UVP
BRANCH=none
TEST=make -j BOARD=taeko | #define BQ25720_CHARGE_OPTION_4_VSYS_UVP_SHIFT 13
#define BQ25720_CHARGE_OPTION_4_VSYS_UVP_BITS 3
#define BQ25720_CHARGE_OPTION_4_VSYS_UVP__2P4 0
+#define BQ25720_CHARGE_OPTION_4_VSYS_UVP__3P2 1
#define BQ25720_CHARGE_OPTION_4_VSYS_UVP__4P0 2
+#define BQ25720_CHARGE_OPTION_4_VSYS_UVP__4P8 3
+#define BQ25720_CHARGE_OPTI... |
Fix print call arguments | @@ -5050,7 +5050,7 @@ void DeRestPluginPrivate::processTasks()
int dt = idleTotalCounter - j->sendTime;
if (dt < 5 || onAir >= maxOnAir)
{
- DBG_Printf(DBG_INFO, "request %u send time %d, cluster 0x%04X, onAir %d\n", j->sendTime, j->req.clusterId(), onAir);
+ DBG_Printf(DBG_INFO, "request %u send time %d, cluster 0x%04... |
[tests] fix Python3 print form in test_dynamical_systems.py | @@ -34,7 +34,7 @@ def test_ds_interface():
class_name = args
attr = ds_classes[args]
ds = class_name(*attr)
- print class_name, attr[0]
+ print(class_name, attr[0])
ds.initializeNonSmoothInput(1)
ds.resetAllNonSmoothParts()
ds.resetNonSmoothPart(1)
|
Yardoc: Fix unexpected syntax in tag | @@ -718,7 +718,7 @@ Draw_stroke_eq(VALUE self, VALUE stroke)
*
* @!attribute [w] stroke_pattern
* @param pattern [Magick::Image] the stroke pattern
- * @return pattern [Magick::Image] the given pattern
+ * @return [Magick::Image] the given pattern
* @see #fill_pattern
*/
VALUE
|
inproved help | @@ -5690,10 +5690,10 @@ printf("%s %s (C) %s ZeroBeat\n"
" 100 = M3+M4, EAPOL from M3 (authorized) - unused\n"
" 101 = M3+M4, EAPOL from M4 if not zeroed (authorized)\n"
"3: reserved\n"
- "4: ap-less attack (set to 1) - no nonce-error-corrections necessary\n"
- "5: LE router detected (set to 1) - nonce-error-correction... |
Fix small typo
In test/ssl_test, parsing ExpectedClientSignHash ended up in the
expected_server_sign_hash field. | @@ -509,7 +509,7 @@ __owur static int parse_expected_server_sign_hash(SSL_TEST_CTX *test_ctx,
__owur static int parse_expected_client_sign_hash(SSL_TEST_CTX *test_ctx,
const char *value)
{
- return parse_expected_sign_hash(&test_ctx->expected_server_sign_hash,
+ return parse_expected_sign_hash(&test_ctx->expected_clien... |
vere: replaces obsolete references to u3v_numb and u3A->sen | @@ -781,9 +781,22 @@ static u3_noun
_pier_wyrd_card(u3_pier* pir_u)
{
u3_lord* god_u = pir_u->god_u;
+ u3_noun sen;
_pier_work_time(pir_u);
- u3v_numb();
+
+ {
+ c3_l sev_l;
+ u3_noun now;
+ struct timeval tim_u;
+ gettimeofday(&tim_u, 0);
+
+ now = u3_time_in_tv(&tim_u);
+ sev_l = u3r_mug(now);
+ sen = u3dc("scot", c3... |
Don't rely on mac address to filter XAL nodes | @@ -908,10 +908,11 @@ bool DeRestPluginPrivate::sendConfigureReportingRequest(BindingTask &bt)
rq.minInterval = 5;
rq.maxInterval = 180;
}
- else if ((bt.restNode->address().ext() & macPrefixMask) == xalMacPrefix)
+ else if ((bt.restNode->address().ext() & macPrefixMask) == xalMacPrefix ||
+ bt.restNode->node()->nodeDe... |
test: print test output immediately and decrease indenting | @@ -28,21 +28,20 @@ echo "Running $testcase:"
west build -d build/$testcase -b native_posix -- -DZMK_CONFIG="$(pwd)/$testcase" > /dev/null 2>&1
if [ $? -gt 0 ]; then
- echo "FAILED: $testcase did not build" >> ./build/tests/pass-fail.log
+ echo "FAILED: $testcase did not build" | tee -a ./build/tests/pass-fail.log
exit... |
Fix issue where if only some colors we overriden project wouldn't compile | @@ -13,7 +13,11 @@ export default {
settings: {
showCollisions: true,
showConnections: true,
- sidebarWidth: 300
+ sidebarWidth: 300,
+ customColorsWhite: "E0F8D0",
+ customColorsLight: "88C070",
+ customColorsDark: "306850",
+ customColorsBlack: "081820"
}
},
world: {},
|
Check for return value in the ftruncate call | @@ -758,7 +758,10 @@ static int gen_gperf(MainOptions *mo, const char *file, const char *name) {
if (wd == -1) {
wd = open (out, O_RDWR | O_CREAT, 0644);
} else {
- ftruncate (wd, 0);
+ if (ftruncate (wd, 0) == -1) {
+ close (wd);
+ return -1;
+ }
}
int rc = -1;
if (wd != -1) {
@@ -781,6 +784,9 @@ static int gen_gperf(... |
sse: add compile time range checks | @@ -1674,7 +1674,8 @@ simde_mm_div_ss (simde__m128 a, simde__m128 b) {
SIMDE__FUNCTION_ATTRIBUTES
int16_t
-simde_mm_extract_pi16 (simde__m64 a, const int imm8) {
+simde_mm_extract_pi16 (simde__m64 a, const int imm8)
+ HEDLEY_REQUIRE_MSG((imm8 & 3) == imm8, "imm8 must be in range [0, 3]") {
return simde__m64_to_private(... |
h2olog: explain -dd in the help message | @@ -39,7 +39,7 @@ Usage: h2olog -p PID
h2olog quic -s response_header_name -p PID
Other options:
-h Print this help and exit
- -d Print debugging information
+ -d Print debugging information (-dd shows more)
-w Path to write the output (default: stdout)
)",
H2O_VERSION);
|
rsa/rsa_ossl.c: make RSAerr call in rsa_ossl_private_decrypt unconditional. | #include "internal/cryptlib.h"
#include "internal/bn_int.h"
#include "rsa_locl.h"
+#include "internal/constant_time_locl.h"
static int rsa_ossl_public_encrypt(int flen, const unsigned char *from,
unsigned char *to, RSA *rsa, int padding);
@@ -479,8 +480,8 @@ static int rsa_ossl_private_decrypt(int flen, const unsigned ... |
change cblk args -n32 for -b32 | #
if [[ "$t0l" == "10140001" || "${env_action}" == "hdl_nvme_example" ]];then echo -e "$del\ntesting hdl_nvme_example"
step "snap_cblk -h" # write max 2blk, read max 32blk a 512B
- options="-n4 -t1" # 512B blocks, one thread
+ options="-n32 -t1" # 512B blocks, one thread
export CBLK_BUSYTIMEOUT=350
export CBLK_REQTIMEO... |
Posix: fix build failure
Fixes: ("Posix Port: Comment and remove unused variables (#230)")
Authored-by: Thomas Pedersen | @@ -525,7 +525,7 @@ int iRet;
* will be unblocked.
*/
(void)pthread_sigmask( SIG_SETMASK, &xAllSignals,
- *&xSchedulerOriginalSignalMask );
+ &xSchedulerOriginalSignalMask );
/* SIG_RESUME is only used with sigwait() so doesn't need a
handler. */
|
SharePointRESTConnector: fix delete attachments | <field name="sp_site" type="string" indexed="true" stored="true" multiValued="false"/>
<field name="sp_item" type="string" indexed="true" stored="true" multiValued="false"/>
<field name="sp_parentids" type="string" indexed="true" stored="true" multiValued="true"/>
+ <field name="sp_attachments" type="string" indexed="t... |
Match ledion's requested json format of _raw field.
Adds _metric, _metric_type, and _value fields. | @@ -418,6 +418,25 @@ addJsonFields(format_t* fmt, event_field_t* fields, yaml_emitter_t* emitter)
return TRUE;
}
+static const char*
+metricTypeStr(data_type_t type)
+{
+ switch (type) {
+ case DELTA:
+ return "counter";
+ case CURRENT:
+ return "gauge";
+ case DELTA_MS:
+ return "timer";
+ case HISTOGRAM:
+ return "hi... |
perfmon: fixes for cache hierarchy
Account for occasional instances with the misses rates between caches
are inconsistent.
Type: fix | @@ -27,24 +27,28 @@ format_intel_core_cache_hit_miss (u8 *s, va_list *args)
switch (row)
{
case 0:
- s = format (s, "%.2f", (f64) ns->value[0] / ns->n_packets);
+ s = format (s, "%0.2f", (f64) ns->value[0] / ns->n_packets);
break;
case 1:
- s = format (s, "%.2f", (f64) ns->value[1] / ns->n_packets);
+ s = format (s, "%... |
Add support for MLOCK_ONFAULT to secure arena | # include <unistd.h>
# include <sys/types.h>
# include <sys/mman.h>
+# if defined(OPENSSL_SYS_LINUX)
+# include <sys/syscall.h>
+# include <linux/mman.h>
+# include <errno.h>
+# endif
# include <sys/param.h>
# include <sys/stat.h>
# include <fcntl.h>
@@ -433,8 +438,19 @@ static int sh_init(size_t size, int minsize)
if ... |
use highest MP value | @@ -1502,7 +1502,7 @@ for(c = 0; c < 20; c ++)
if(memcmp(zeiger->eapol, handshakelistptr->eapol, handshakelistptr->eapauthlen) != 0) continue;
if(zeiger->timestampgap > handshakelistptr->timestampgap) zeiger->timestampgap = handshakelistptr->timestampgap;
if(zeiger->rcgap > handshakelistptr->rcgap) zeiger->rcgap = hand... |
aqua: revert erroneously committed changes
These changes, part of optimization experiments, had snuck in somewhere. | 1
lyfe
==
- ::NOTE if you use this separately, add spam-logs call here maybe?
- :: =/ =pass pub:ex:(get-keys:aqua-azimuth who lyfe)
- :: (inject-udiffs [who [0x0 0] %keys [lyfe 1 pass] |] ~)
- [~ state]
+ state
::
++ breach
|= who=@p
- ^- (quip card:agent:gall _state)
- ~& [%aqua-breach who]
- =^ * state (cycle-keys wh... |
Add run-binary-hex docs | @@ -150,6 +150,12 @@ The ``.hex`` file should be a text file with a hexadecimal number on each line.
Each line uses little-endian order, so this file would produce the bytes "ef be ad de 01 23". ``LOADMEM_ADDR`` specifies which address in memory (in hexadecimal) to write the first byte to. The default is 0x81000000.
+A... |
.ticp project loads from command line | @@ -1564,9 +1564,11 @@ static void onConsoleExportCommand(Console* console, const char* param)
#if defined(TIC80_PRO)
+static const char ProjectExt[] = ".ticp";
+
static const char* getProjectName(const char* name)
{
- return getName(name, ".ticp");
+ return getName(name, ProjectExt);
}
static void buf2str(const void* ... |
Fix the "uri-security-supported" value to be based on the current connection
(Issue | @@ -45,6 +45,7 @@ Changes in CUPS v2.3.3op1
- Fixed remote access to the cupsd.conf and log files (Issue #24)
- Fixed fax phone number handling with GNOME (Issue #40)
- Fixed potential rounding error in rastertopwg filter (Issue #41)
+- Fixed the "uri-security-supported" value from the scheduler (Issue #42)
- Fixed IPP... |
Profiling: Mention filename convention | @@ -42,7 +42,19 @@ ninja
### Profiling the Code
-We use the tool [`benchmark_plugingetset`](../../benchmarks/README.md) to profile the execution time of [YAy PEG][]. The file [`test.yaml`](../../benchmarks/data/test.yaml) serves as input file for the plugin. First we call `benchmark_plugingetset` directly to make sure ... |
in_http: memory leak correction | @@ -261,6 +261,10 @@ int http_conn_del(struct http_conn *conn)
ctx = conn->ctx;
+ if (conn->session.channel != NULL) {
+ mk_channel_release(conn->session.channel);
+ }
+
mk_event_del(ctx->evl, &conn->event);
mk_list_del(&conn->_head);
flb_socket_close(conn->fd);
|
afalg: fix coverity improper use of negative value | @@ -544,7 +544,7 @@ static int afalg_cipher_init(EVP_CIPHER_CTX *ctx, const unsigned char *key,
const unsigned char *iv, int enc)
{
int ciphertype;
- int ret;
+ int ret, len;
afalg_ctx *actx;
const char *ciphername;
@@ -588,8 +588,9 @@ static int afalg_cipher_init(EVP_CIPHER_CTX *ctx, const unsigned char *key,
if (ret ... |
Add undocumented PSM functions | * Process Hacker -
* Appmodel support functions
*
- * Copyright (C) 2017-2018 dmex
+ * Copyright (C) 2017-2019 dmex
*
* This file is part of Process Hacker.
*
@@ -73,6 +73,34 @@ static HRESULT (WINAPI* AppPolicyGetWindowingModel_I)(
_Out_ AppPolicyWindowingModel *ProcessWindowingModelPolicy
) = NULL;
+// rev
+static NT... |
Fix typo to create only 1 switch resource for Namron switches | @@ -5142,7 +5142,7 @@ void DeRestPluginPrivate::addSensorNode(const deCONZ::Node *node, const deCONZ::
modelId.startsWith(QLatin1String("ICZB-RM")) || // icasa remote
modelId.startsWith(QLatin1String("ZGRC-KEY")) || // Sunricher remote
modelId.startsWith(QLatin1String("ED-1001")) || // EcoDim switches
- modelId.startsW... |
Changed lv_dropdown_add_option parameter from int to uint16_t | @@ -119,10 +119,10 @@ void lv_dropdown_set_static_options(lv_obj_t * ddlist, const char * options);
/**
* Add an options to a drop down list from a string. Only works for dynamic options.
* @param ddlist pointer to drop down list object
- * @param options a string without '\n'. E.g. "Four"
- * @param position the inser... |
CMakeLists: update libwally (and secp256k1)
Pulled in libwally and rebased our patches, and put them into the
bitbox02-firmare branch of
(reviously firmware_v2
branch). | @@ -23,7 +23,7 @@ if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/libwally-core-${TARGET_CODE}-build/.li
file(MAKE_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/libwally-core-${TARGET_CODE}-build/)
ExternalProject_Add(libwally-core
GIT_REPOSITORY https://github.com/shiftdevices/libwally-core.git
- GIT_TAG firmware_v2
+ GIT_TAG bitbo... |
Fixed the talk command mark to be cool with recent changes to the structures. | ::
++ audi
^- $-(json (unit audience))
- (op parn memb)
- ::
- ++ memb (ot [envelope+lope delivery+(ci (soft delivery) so) ~])
- ++ lope (ot [visible+bo sender+(mu (su parn)) ~])
+ (as (su parn))
::
++ parn
^- $-(nail (like partner))
::
++ speech-or-eval $?(speech {$eval p/@t} {$mor ses/(list speech-or-eval)})
++ eval
... |
Documentation: Use bold font to emphasize word | @@ -32,7 +32,7 @@ plugin that was used to mount the configuration data. `kdbSet()` calls `elektraP
that allow the plug-in to work:
- `elektraPluginOpen()` is designed to allow each plug-in to do initialization if necessary.
-- `elektraPluginGet()` is designed to turn information from a configuration file into a usable ... |
CHANGE valgrind tests return 1 on error | @@ -17,7 +17,7 @@ if (ENABLE_VALGRIND_TESTS)
find_program(valgrind_FOUND valgrind)
if (valgrind_FOUND)
foreach (test_name IN LISTS tests)
- add_test(${test_name}_valgrind valgrind --leak-check=full ${CMAKE_BINARY_DIR}/tests/${test_name})
+ add_test(${test_name}_valgrind valgrind --leak-check=full --error-exitcode=1 ${C... |
SOVERSION bump to version 1.3.15 | @@ -48,7 +48,7 @@ set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION
# with backward compatible change and micro version is connected with any internal change of the library.
set(LIBNETCONF2_MAJOR_SOVERSION 1)
set(LIBNETCONF2_MINOR_SOVERSION 3)
-set(LIBNETCONF2_MICRO_SOVERSION 14)
+set(LIB... |
ipc_type -> dill_ipc_type | @@ -37,7 +37,7 @@ static int dill_ipc_resolve(const char *addr, struct sockaddr_un *su);
static int dill_ipc_makeconn(int fd, void *mem);
dill_unique_id(ipc_listener_type);
-dill_unique_id(ipc_type);
+dill_unique_id(dill_ipc_type);
/******************************************************************************/
/* UNIX... |
wuffs gen -version=0.2.0-alpha.27 | @@ -50,13 +50,14 @@ extern "C" {
// forwards compatibility guarantees.
//
// WUFFS_VERSION was overridden by "wuffs gen -version" on 2018-12-29 UTC,
-// based on revision 314b1209edcd2c7d02a10064fc299ec6a22b3ea2.
+// based on revision 2b631202bcd9cd86eec387bd98c1c2eb4b4afd50.
#define WUFFS_VERSION ((uint64_t)0x00000000... |
Joxer: reduce battery I2C frequency to 50 kHz
Follow CL:3721954 to reduce battery I2C frquency.
BRANCH=none
TEST=make sure EC can read battery info and battery can be charged. | &i2c1 {
label = "I2C_BATTERY";
- clock-frequency = <I2C_BITRATE_STANDARD>;
+ clock-frequency = <50000>;
pinctrl-0 = <&i2c1_clk_gpc1_default
&i2c1_data_gpc2_default>;
pinctrl-names = "default";
|
fixed set_false_path for the nvme_reset_n_q signal | ############################################################################
##
-set_false_path -from [get_ports sys_rst_n]
+set_false_path -from [get_pins nvme_reset_n_q*/C] -to [get_clocks pcie_clk?]
+
# ------------------------------
# Pin Locations & I/O Standards
# ------------------------------
|
fix segfault if no plugin is provided | @@ -2331,6 +2331,11 @@ protoop_transaction_t *get_next_transaction(picoquic_cnx_t *cnx, protoop_transac
/* This implements a deficit round robin with bursts */
void picoquic_frame_fair_reserve(picoquic_cnx_t *cnx)
{
+ /* If there is no transaction, there is no frame to reserve! */
+ if (!cnx->transactions) {
+ return;
... |
GRIB2: Implement Lambert Azimuthal geoiterator on oblate spheroid (First working version) | @@ -257,7 +257,7 @@ static int init_oblate(grib_handle* h,
xy_x /= Q__dd;
xy_y *= Q__dd;
rho = hypot(xy_x, xy_y);
- Assert(rho >= EPS10); // TODO
+ Assert(rho >= EPS10); // TODO(masn): check
sCe = 2. * asin(.5 * rho / Q__rq);
cCe = cos(sCe);
sCe = sin(sCe);
@@ -274,7 +274,8 @@ static int init_oblate(grib_handle* h,
//p... |
refactors effect iteration in arvo +poke | ^- [(list ovum) *]
=> .(+< ((hard ,[now=@da ovo=ovum]) +<))
=^ ova +>+.$ (^poke now ovo)
+ =| out=(list ovum)
|- ^- [(list ovum) *]
?~ ova
- [~ +>.^$]
+ [(flop out) +>.^$]
:: upgrade the kernel -- %vega here is an effect from a vane
::
?: ?=(%vega -.q.i.ova)
:: and passing the rest through as output
::
=^ vov +>+.^$ (f... |
ADDING FEC - fix the get of the offset for packet header | @@ -885,9 +885,9 @@ protoop_arg_t get_ph(picoquic_packet_header *ph, access_key_t ak)
case PH_AK_DESTINATION_CNXID:
return (protoop_arg_t) &ph->dest_cnx_id;
case PH_AK_OFFSET:
- return (protoop_arg_t) &ph->offset;
+ return (protoop_arg_t) ph->offset;
case PH_AK_PAYLOAD_LENGTH:
- return (protoop_arg_t) &ph->payload_leng... |
Display uuid of client certification app for automation purpose | */
#include "oc_api.h"
+#include "oc_core_res.h"
#include "port/oc_clock.h"
#include "oc_pki.h"
#include "oc_introspection.h"
@@ -505,6 +506,15 @@ factory_presets_cb(size_t device, void *data)
#endif /* OC_SECURITY && OC_PKI */
}
+void
+display_device_uuid(void)
+{
+ char buffer[OC_UUID_LEN];
+ oc_uuid_to_str(oc_core_g... |
stm32/moduos: Add VfsLfs1 and VfsLfs2 to uos module, if enabled. | #include "extmod/misc.h"
#include "extmod/vfs.h"
#include "extmod/vfs_fat.h"
+#include "extmod/vfs_lfs.h"
#include "genhdr/mpversion.h"
#include "rng.h"
#include "usb.h"
@@ -174,6 +175,12 @@ STATIC const mp_rom_map_elem_t os_module_globals_table[] = {
#if MICROPY_VFS_FAT
{ MP_ROM_QSTR(MP_QSTR_VfsFat), MP_ROM_PTR(&mp_fa... |
poly1305/poly1305_ieee754.c: add support for MIPS. | /*
- * Copyright 2016 The OpenSSL Project Authors. All Rights Reserved.
+ * Copyright 2016-20018 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
@@ -101,6 +101,8 @@ static c... |
msgSend: Check if msg != NULL
JIRA: | @@ -310,11 +310,16 @@ int proc_send(u32 port, msg_t *msg)
thread_t *sender;
spinlock_ctx_t sc;
+ if (msg == NULL)
+ return -EINVAL;
+
if ((p = proc_portGet(port)) == NULL)
return -EINVAL;
sender = proc_current();
+ /* TODO - check if msg pointer belongs to user vm_map */
+
hal_memcpy(&kmsg.msg, msg, sizeof(msg_t));
kms... |
h2olog: remove a redundant http_version variable | @@ -32,7 +32,6 @@ BPF_PERF_OUTPUT(reqbuf);
int trace_receive_req(struct pt_regs *ctx) {
struct req_line_t line = {};
uint64_t conn_id, req_id;
- uint32_t http_version;
bpf_usdt_readarg(1, ctx, &line.conn_id);
bpf_usdt_readarg(2, ctx, &line.req_id);
|
rename tls options | @@ -121,9 +121,9 @@ const char *kadnode_usage_str = "KadNode - A P2P name resolution daemon.\n"
" --fwd-disable Disable UPnP/NAT-PMP to forward router ports.\n\n"
#endif
#ifdef TLS
-" --tls-client-entry <path> Path to file or folder of CA certificates to authenticate addresses.\n"
+" --tls-client-cert <path> Path to fi... |
Fix leak with no-ec config | @@ -1195,9 +1195,9 @@ void SSL_free(SSL *s)
#ifndef OPENSSL_NO_EC
OPENSSL_free(s->ext.ecpointformats);
OPENSSL_free(s->ext.peer_ecpointformats);
+#endif /* OPENSSL_NO_EC */
OPENSSL_free(s->ext.supportedgroups);
OPENSSL_free(s->ext.peer_supportedgroups);
-#endif /* OPENSSL_NO_EC */
sk_X509_EXTENSION_pop_free(s->ext.ocsp... |
max payne fov update | @@ -601,7 +601,8 @@ DWORD WINAPI Init(LPVOID bDelay)
//FOV
static auto FOVHook = [](uintptr_t _this, uintptr_t edx) -> float
{
- Screen.fFieldOfView = GetFOV2(*(float*)(_this + 88), Screen.fAspectRatio) * Screen.fFOVFactor;
+ float f = AdjustFOV(*(float*)(_this + 0x58) * 57.295776f, Screen.fAspectRatio) * Screen.fFOVFa... |
dotprod_crcf/autotest: running explicit test for struct, run, run4 | /*
- * Copyright (c) 2007 - 2015 Joseph Gaeddert
+ * Copyright (c) 2007 - 2021 Joseph Gaeddert
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@@ -139,21 +139,38 @@ void runtest_dotprod_crcf(unsigned int _n)... |
Close file handle in any case | @@ -3124,16 +3124,14 @@ ts_bspline_load(const char *path,
}
value = json_parse_file(path);
if (!value) {
- TS_RETURN_0(status, TS_PARSE_ERROR,
+ TS_THROW_0(try, err, status, TS_PARSE_ERROR,
"invalid json input")
}
TS_CALL(try, err, ts_int_bspline_parse_json(
value, spline, status))
TS_FINALLY
- if (file)
- fclose(file)... |
placed the warning in check_readability_of_stream.
here we can say that the file you provided is empty. | @@ -132,6 +132,10 @@ namespace ebi
{
std::string compression_type = ebi::vcf::get_compression_from_magic_num(line);
+ if (line.size() == 0) {
+ BOOST_LOG_TRIVIAL(warning) << "The VCF file provided is empty";
+ }
+
if (compression_type != NO_EXT) {
throw std::invalid_argument{"Input file should not be compressed twice"}... |
nimble/ll: Fix start point for supervision timeout
We should count supervision timeout from the end of last reveived packet
and not the beginning. | @@ -3615,7 +3615,7 @@ ble_ll_conn_rx_isr_end(uint8_t *rxbuf, struct ble_mbuf_hdr *rxhdr)
uint8_t rem_bytes;
uint8_t opcode = 0;
uint8_t rx_pyld_len;
- uint32_t endtime;
+ uint32_t begtime;
uint32_t add_usecs;
struct os_mbuf *txpdu;
struct ble_ll_conn_sm *connsm;
@@ -3652,7 +3652,7 @@ ble_ll_conn_rx_isr_end(uint8_t *rxb... |
session CHANGE increase PS queue timeout
On slower systems 1 s was too little,
changed to 5 s.
Fixes cesnet/netopeer2#465 | @@ -323,9 +323,8 @@ struct nc_server_opts {
/**
* Timeout in msec for a thread to wait for its turn to work with a pollsession structure.
- *
*/
-#define NC_PS_QUEUE_TIMEOUT 1000
+#define NC_PS_QUEUE_TIMEOUT 5000
/**
* Time slept in msec if no endpoint was created for a running Call Home client.
|
webp-lossless-bitstream-spec: add amendment note
for recent changes to color transform, simple code length code, image
structure and details of decoding prefix codes | @@ -16,6 +16,8 @@ _Jyrki Alakuijala, Ph.D., Google, Inc., 2012-06-19_
Paragraphs marked as \[AMENDED\] were amended on 2014-09-16.
+Paragraphs marked as \[AMENDED2\] were amended on 2022-05-13.
+
Abstract
--------
@@ -367,6 +369,7 @@ the predicted value for the left-topmost pixel of the image is
0xff000000, L-pixel for... |
board/primus/board.c: Format with clang-format
BRANCH=none
TEST=none | @@ -93,8 +93,8 @@ int board_is_vbus_too_low(int port, enum chg_ramp_vbus_state ramp_state)
}
if (voltage < BC12_MIN_VOLTAGE) {
- CPRINTS("%s: port %d: vbus %d lower than %d", __func__,
- port, voltage, BC12_MIN_VOLTAGE);
+ CPRINTS("%s: port %d: vbus %d lower than %d", __func__, port,
+ voltage, BC12_MIN_VOLTAGE);
retur... |
Fix process map parsing when freeing bcc memory
This fixes the format string used to parse the major and minor
device fields in /proc/self/maps. These fields have hexadecimal
values and hence cannot be parsed as unsigned integers.
Fixes: ("implement free_bcc_memory() API (#2097)")
Reported-by: Nageswara R Sastry | @@ -863,7 +863,7 @@ int bcc_free_memory() {
int path_start = 0, path_end = 0;
unsigned int devmajor, devminor;
char perms[8];
- if (sscanf(line, "%lx-%lx %7s %lx %u:%u %lu %n%*[^\n]%n",
+ if (sscanf(line, "%lx-%lx %7s %lx %x:%x %lu %n%*[^\n]%n",
&addr_start, &addr_end, perms, &offset,
&devmajor, &devminor, &inode,
&pat... |
out_counter: summarize all records | #include <fluent-bit/flb_time.h>
#include <fluent-bit/flb_output.h>
+struct flb_counter_ctx {
+ uint64_t total;
+};
+
int cb_counter_init(struct flb_output_instance *ins,
struct flb_config *config,
void *data)
@@ -30,7 +34,16 @@ int cb_counter_init(struct flb_output_instance *ins,
(void) ins;
(void) config;
(void) data... |
Reduce YR_ATOMS_PER_RULE_WARNING_THRESHOLD. | @@ -82,7 +82,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// If a rule generates more than this number of atoms a warning is shown.
#ifndef YR_ATOMS_PER_RULE_WARNING_THRESHOLD
-#define YR_ATOMS_PER_RULE_WARNING_THRESHOLD 30000
+#define YR_ATOMS_PER_RULE_WARNING_THRESHOLD 15000
#endif
// Maximum num... |
Improve error message if there're no good features after quantization. | @@ -558,7 +558,7 @@ namespace NCB {
CB_ENSURE(
featuresLayout->HasAvailableAndNotIgnoredFeatures(),
- "No available and not ignored features has remained after quantization"
+ "All features are either constant or ignored."
);
data->ObjectsData.QuantizedFeaturesInfo = quantizedFeaturesInfo;
|
add some more comments + fix indentation | @@ -379,6 +379,7 @@ javaReadClass(const unsigned char* classData)
classInfo->major_version = be16toh(*((uint16_t *)off)); off += 2;
classInfo->constant_pool_count = be16toh(*((uint16_t *)off)); off += 2;
classInfo->_constant_pool_count = classInfo->constant_pool_count;
+ //allocate memory for existing constant pool ent... |
add preethi to codeowners for iot | @@ -23,11 +23,11 @@ sdk/src/azure/core/ @ahsonkhan @antkmsft @rickwinter @vhvb1989 @gearam
sdk/tests/core/ @ahsonkhan @antkmsft @rickwinter @vhvb1989 @gearama
# IoT
-sdk/docs/iot/ @CIPop @danewalton @ericwol-msft @ewertons @jspaith @momuno
-sdk/inc/azure/iot/ @CIPop @danewalton @ericwol-msft @ewertons @jspaith @momuno
... |
viofs-svc: Write now handle WriteToEndOfFile flag. | @@ -1027,14 +1027,23 @@ static NTSTATUS Write(FSP_FILE_SYSTEM *FileSystem, PVOID FileContext0,
ConstrainedIo);
DBG("fh: %Iu nodeid: %Iu", FileContext->FileHandle, FileContext->NodeId);
- if (ConstrainedIo)
+ // Both these cases requires knowing the actual file size.
+ if ((WriteToEndOfFile == TRUE) || (ConstrainedIo ==... |
sse: add _MM_TRANSPOSE4_PS macro.
Fixes | @@ -2505,6 +2505,19 @@ simde_mm_setcsr (uint32_t a) {
#endif
}
+#define _MM_TRANSPOSE4_PS(row0, row1, row2, row3) \
+ do { \
+ simde__m128 tmp3, tmp2, tmp1, tmp0; \
+ tmp0 = simde_mm_unpacklo_ps((row0), (row1)); \
+ tmp2 = simde_mm_unpacklo_ps((row2), (row3)); \
+ tmp1 = simde_mm_unpackhi_ps((row0), (row1)); \
+ tmp3 =... |
sysrepo DOC clarify rcp output params
Refs cesnet/netopeer2#767 | @@ -1473,8 +1473,7 @@ typedef int (*sr_rpc_cb)(sr_session_ctx_t *session, const char *xpath, const sr_
* @param[in] input Data tree of input parameters. Always points to the __RPC/action__ itself, even for nested operations.
* @param[in] event Type of the callback event that has occurred.
* @param[in] request_id Reques... |
Add arcs to g meter between max and min. | @@ -149,8 +149,20 @@ function gMeterRenderer(locationId, plim, nlim) {
el.addClass('marks')
.rotate((i-1)/this.nticks*360, 0, 0);
}
- card.line(-140, 0, -190, 0).addClass('marks limit').rotate((plim-10)/this.nticks*360, 0, 0);
- card.line(-140, 0, -190, 0).addClass('marks limit').rotate((nlim-10)/this.nticks*360, 0, 0)... |
Clarify some things about application_name | @@ -255,9 +255,13 @@ MangoHud comes with a config file which can be used to set configuration options
1. `/path/to/application/dir/MangoHud.conf`
2. Per-application configuration in ~/.config/MangoHud:
- 1. `$HOME/.config/MangoHud/application_name.conf`
- 2. `$HOME/.config/MangoHud/wine-application_name.conf` for wine/... |
garg: add HDMI SKU ID again
BRANCH=octopus
TEST=make buildall -j | @@ -299,7 +299,7 @@ void board_overcurrent_event(int port, int is_overcurrented)
__override uint8_t board_get_usb_pd_port_count(void)
{
/* HDMI SKU has one USB PD port */
- if (sku_id == 9 || sku_id == 19 || sku_id == 50)
+ if (sku_id == 9 || sku_id == 19 || sku_id == 50 || sku_id == 52)
return CONFIG_USB_PD_PORT_MAX_C... |
Add debug info for bootstrap copy phase. | @@ -53,6 +53,7 @@ if(NOT OPTION_BUILD_GUIX)
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/lib/package.json ${CMAKE_CURRENT_BINARY_DIR}
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/lib/package-lock.json ${CMAKE_CURRENT_BINARY_DIR}
COMMAND ${NPM_EXECUTABLE} --prefix ${CMAKE_CURRENT_BINARY_D... |
twping: Add zero-addresses option to twping manpage | @@ -100,6 +100,16 @@ SO_BINDTODEVICE.
Unspecified (sockets not bound to a particular interface).
.RE
.TP
+\fB\-Z\fR
+.br
+Do not specify sender and receiver IP addresses for tests packets when
+creating a TWAMP session. This allows the UDP test packets to pass through
+some types of NAT. This option is not available fo... |
doc: add Chef Cookbook highlight | @@ -38,7 +38,7 @@ You can also read the news [on our website](https://www.libelektra.org/news/0.8.
## Highlights
- Type system preview
-- <<HIGHLIGHT2>>
+- Chef Cookbook
- <<HIGHLIGHT3>>
@@ -63,6 +63,39 @@ For more details see the
Thanks to Armin Wurzinger.
+
+### Chef Cookbook
+
+Next to the [Puppet Resource Type](htt... |
gdl90Report uses Gyro_heading. | @@ -1818,11 +1818,10 @@ func makeAHRSGDL90Report() {
if isAHRSValid() {
pitch = roundToInt16(mySituation.Pitch * 10)
roll = roundToInt16(mySituation.Roll * 10)
- hdg = roundToInt16(mySituation.Gyro_heading * 10)
+ hdg = roundToInt16(mySituation.Gyro_heading * 10) // TODO westphae: switch to Mag_heading?
slip_skid = rou... |
Change how thread flags are handled | @@ -104,9 +104,10 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/SystemResources.in.cpp
${CMAKE_CURRENT_BINARY_DIR}/SystemResources.cpp @ONLY)
list(APPEND LIME_SUITE_SOURCES ${CMAKE_CURRENT_BINARY_DIR}/SystemResources.cpp)
-if(CMAKE_COMPILER_IS_GNUCXX)
- list(APPEND LIME_SUITE_LIBRARIES -pthread)
-endif(CMAKE_COMPILER_I... |
Add info on static runtime loader | @@ -90,7 +90,12 @@ At a minimum, you must set the `LD_PRELOAD` environment variable in your Lambda
LD_PRELOAD=libscope.so
```
-You must also tell AppScope where to deliver events. This can be accomplished by setting one of the following in the environment variables:
+For static executables (like the Go runtime), set `S... |
ShareRecorder cleanup | @@ -458,6 +458,12 @@ namespace MiningCore.Mining
}
}
+ catch (ObjectDisposedException)
+ {
+ logger.Info($"Exiting monitoring thread for external stratum {url}/[{string.Join(", ", topics)}]");
+ break;
+ }
+
catch (Exception ex)
{
logger.Error(ex);
@@ -493,11 +499,8 @@ namespace MiningCore.Mining
{
logger.Info(() => "S... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.