message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Add streaming comments and check | @@ -182,8 +182,11 @@ uint16_t Stream_AddAvailableSampleNB(streaming_channel_t *stream, uint16_t size)
******************************************************************************/
uint16_t Stream_RmvAvailableSampleNB(streaming_channel_t *stream, uint16_t size)
{
+ LUOS_ASSERT(Stream_GetAvailableSampleNB(stream) >= si... |
wpa_supplicant: Add missing cflag for legacy makefile | @@ -71,7 +71,7 @@ ifneq ($(CONFIG_WPA_11KV_SUPPORT), y)
esp_supplicant/src/esp_scan.o
endif
-CFLAGS += -DCONFIG_DPP -DCONFIG_IEEE80211W -DESP_SUPPLICANT -DIEEE8021X_EAPOL -DEAP_PEER_METHOD -DEAP_TLS -DEAP_TTLS -DEAP_PEAP -DEAP_MSCHAPv2 -DUSE_WPA2_TASK -DCONFIG_WPS2 -DCONFIG_WPS_PIN -DUSE_WPS_TASK -DESPRESSIF_USE -DESP3... |
[lr] fix AtatiJoypad | @@ -59,7 +59,8 @@ REG8 fmboard_getjoy(POPNA opna)
ret = 0xff;
if (!(opna->s.reg[15] & 0x40))
{
- ret &= (joymng_getstat() | (s_rapids & 0x30));
+// ret &= (joymng_getstat() | (s_rapids & 0x30));
+ ret &= joymng_getstat();
if (np2cfg.KEY_MODE == 1)
{
ret &= keystat_getjoy();
|
tests/sprintf: add tests for float zero padding | @@ -64,6 +64,10 @@ int main() {
assert(!strcmp(buf, " INF") || !strcmp(buf, "INFINITY"));
sprintf(buf, "%4F", NAN);
assert(!strcmp(buf, " NAN"));
+ sprintf(buf, "%05.2f", 1.0);
+ assert(!strcmp(buf, "01.00"));
+ sprintf(buf, "%09f", INFINITY); // 0 ignored when padding infs
+ assert(!strcmp(buf, " inf") || !strcmp(buf,... |
SOVERSION bump to version 4.1.11 | @@ -38,7 +38,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_
# with backward compatible change and micro version is connected with any internal change of the library.
set(SYSREPO_MAJOR_SOVERSION 4)
set(SYSREPO_MINOR_SOVERSION 1)
-set(SYSREPO_MICRO_SOVERSION 10)
+set(SYSREPO_MICRO_S... |
BugID:18621764:OTA clean code according to the latest specifications | @@ -277,7 +277,8 @@ ERR:
ota_reboot();
}
-int ota_upgrade_cb(void* pctx, char *json) {
+int ota_upgrade_cb(void* pctx, char *json)
+{
ota_service_t* ctx = pctx;
if (!ctx || !json) {
return -1;
@@ -297,7 +298,8 @@ int ota_upgrade_cb(void* pctx, char *json) {
return 0;
}
-int ota_service_init(ota_service_t *ctx) {
+int o... |
enclave-tls/wolfssl-sgx: print the debug message with ETLS_DEBUG | * SPDX-License-Identifier: Apache-2.0
*/
+#include <enclave-tls/log.h>
#include "../wolfssl/oid.c"
#include "../wolfssl/un_negotiate.c"
@@ -18,6 +19,6 @@ size_t ocall_send(int sockfd, const void *buf, size_t len, int flags)
int ocall_verify_certificate(uint8_t *der_crt, uint32_t der_crt_len)
{
- printf ("der_crt %p, de... |
add one more rule for 103/1/15 to map sfc for Metoffice | 'sfc' = {typeOfFirstFixedSurface=102; typeOfSecondFixedSurface=255;}
'hl' = {typeOfFirstFixedSurface=103; typeOfSecondFixedSurface=255;}
'sfc' = {typeOfFirstFixedSurface=103; scaleFactorOfFirstFixedSurface=0; scaledValueOfFirstFixedSurface=0; typeOfSecondFixedSurface=255;}
+'sfc' = {typeOfFirstFixedSurface=103; scaleFa... |
add make release target | @@ -72,6 +72,15 @@ ifneq ($(NANOS_TARGET_ROOT),)
TARGET_ROOT_OPT= -r $(NANOS_TARGET_ROOT)
endif
+UNAME_S := $(shell uname -s)
+ifeq ($(UNAME_S),Linux)
+OS = linux
+endif
+
+ifeq ($(UNAME_S),Darwin)
+OS = darwin
+endif
+
STORAGE = -drive if=none,id=hd0,format=raw,file=$(IMAGE)
STORAGE+= -device virtio-blk,drive=hd0
#STO... |
net: drop LUA_GCSTOP/GCRESTART dance | @@ -142,10 +142,9 @@ static void net_err_cb(void *arg, err_t err) {
lua_call(L, 2, 0);
}
if (ud->client.wait_dns == 0) {
- lua_gc(L, LUA_GCSTOP, 0);
- luaL_unref(L, LUA_REGISTRYINDEX, ud->self_ref);
+ int selfref = ud->self_ref;
ud->self_ref = LUA_NOREF;
- lua_gc(L, LUA_GCRESTART, 0);
+ luaL_unref(L, LUA_REGISTRYINDEX,... |
Add checkoss step in workflow | @@ -22,6 +22,7 @@ jobs:
sudo apt-get install libmongoc-1.0-0 libbson-1.0-0 libssl-dev libsasl2-dev
python3 -m pip install --user setuptools_rust wheel
python3 -m pip install --user poetry
+
- uses: actions/checkout@v2
- name: Setup python environment to run branch
@@ -60,6 +61,7 @@ jobs:
sudo dnf install -y python-pip ... |
Increased max pos of camera | @@ -290,7 +290,7 @@ export const EventFields = {
label: "X",
type: "number",
min: 0,
- max: 11,
+ max: 12,
width: "50%",
defaultValue: 0
},
@@ -299,7 +299,7 @@ export const EventFields = {
label: "Y",
type: "number",
min: 0,
- max: 13,
+ max: 14,
width: "50%",
defaultValue: 0
},
|
Don't overwrite an unchanged generated file. | @@ -130,10 +130,14 @@ func genDir(puffsRoot string, dirname string, filenames []string, langs []string
return fmt.Errorf("%s: %v", command, err)
}
outFilename := filepath.Join(puffsRoot, "gen", lang, filepath.Base(dirname)+"."+lang)
+ if existing, err := ioutil.ReadFile(outFilename); err == nil && bytes.Equal(existing,... |
Ignore model_guid in model comparator | #include <catboost/libs/options/json_helper.h>
#include <library/getopt/small/last_getopt.h>
+#include <util/generic/set.h>
+#include <util/string/split.h>
+
#include <cmath>
@@ -83,7 +86,7 @@ TFullModel ReadModelAny(const TString& fileName) {
return model;
}
-static bool CompareModelInfo(const THashMap<TString, TStrin... |
don't die if F is null | @@ -1836,6 +1836,7 @@ void picoquic_log_transport_extension(FILE* F, picoquic_cnx_t* cnx, int log_cnxi
void picoquic_log_congestion_state(FILE* F, picoquic_cnx_t* cnx, uint64_t current_time)
{
+ if (F != NULL) {
picoquic_path_t * path_x = cnx->path[0];
fprintf(F, "%" PRIx64 ": ", picoquic_val64_connection_id(picoquic_g... |
Remove broken import. | @@ -6,7 +6,6 @@ sidebar_label: Installing ZMK
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
-import Image from '@theme/IdealImage';
Unlike other keyboard firmwares, ZMK Firmware has been built from the ground up to allow users to manage
their own keyboard configurations, including keymaps, speci... |
tree data BUGFIX handle any nodes without value | @@ -1336,6 +1336,11 @@ all_children_compare:
case LYD_ANYDATA_STRING:
case LYD_ANYDATA_XML:
case LYD_ANYDATA_JSON:
+ if ((!any1->value.str && any2->value.str) || (any1->value.str && !any2->value.str)) {
+ return LY_ENOT;
+ } else if (!any1->value.str && !any2->value.str) {
+ return LY_SUCCESS;
+ }
len1 = strlen(any1->v... |
sse: use simde_mm_set1_ps as a fallback for simde_mm_load1_ps
This is just so we can take advantage of optimized implementations
of simde_mm_set1_ps. | @@ -1900,11 +1900,7 @@ simde_mm_load_ps1 (simde_float32 const* mem_addr) {
#if defined(SIMDE_SSE_NEON)
r_.neon_f32 = vld1q_dup_f32(mem_addr);
#else
- const simde_float32 v = *mem_addr;
- SIMDE__VECTORIZE
- for (size_t i = 0 ; i < (sizeof(r_.i32) / sizeof(r_.i32[0])) ; i++) {
- r_.f32[i] = v;
- }
+ r_ = simde__m128_to_p... |
error format BUGFIX missing period | @@ -62,7 +62,7 @@ sr_session_set_netconf_error(sr_session_ctx_t *session, const char *error_type,
}
/* generic error message */
- sr_session_set_error_message(session, "NETCONF error occurred");
+ sr_session_set_error_message(session, "NETCONF error occurred.");
/* error format */
sr_session_set_error_format(session, "... |
Removed the silly op-code thing from rdrand, and let the compiler pick the registers to make the code more portable accross compiler versions. Addresses issue | @@ -308,12 +308,7 @@ int s2n_cpu_supports_rdrand()
return 0;
}
-/* Due to the need to support some older assemblers,
- * we cannot use either the compiler intrinsics or
- * the RDRAND assembly mnemonic. For this reason,
- * we're using the opcode directly (0F C7/6). This
- * stores the result in eax.
- *
+/*
* volatile... |
Test allocation failures when creating parser with encoding | @@ -1948,6 +1948,26 @@ START_TEST(test_misc_alloc_create_parser)
}
END_TEST
+/* Test memory allocation failures for a parser with an encoding */
+START_TEST(test_misc_alloc_create_parser_with_encoding)
+{
+ XML_Memory_Handling_Suite memsuite = { duff_allocator, realloc, free };
+ unsigned int i;
+
+ /* Try several leve... |
Fix memory leak caused by casting error.
janet_abstract_end improperly modified a gc tag. | @@ -35,7 +35,7 @@ void *janet_abstract_begin(const JanetAbstractType *atype, size_t size) {
}
void *janet_abstract_end(void *x) {
- janet_gc_settype((void *)(janet_gc_header(x)), JANET_MEMORY_ABSTRACT);
+ janet_gc_settype((void *)(janet_abstract_head(x)), JANET_MEMORY_ABSTRACT);
return x;
}
|
update Makefile to include CPPFLAGS
needed for debian package | CC ?= gcc
CFLAGS ?= -Os -Wall -Wwrite-strings -pedantic
-CFLAGS += -std=gnu99 -I/usr/local/include
-LDFLAGS += -L/usr/local/lib -lc
+CFLAGS += -std=gnu99 -I/usr/local/include $(CPPFLAGS)
+LDFLAGS += -L/usr/local/lib -lc $(CPPFLAGS)
FEATURES ?= dns lpd tls bob cmd debug nss #natpmp upnp
OBJS = build/searches.o build/kad... |
Exit 0 if no grep match | @@ -71,7 +71,7 @@ stage("Compare changes") {
// Check if git diff vs origin/master contains changes outside of ignored directories
gitChanges = sh (
script: """
- git diff --name-only testremote/${BRANCH_NAME} origin/master | grep --invert-match --extended-regexp \'${IGNORED_DIRS}\' --no-messages
+ git diff --name-only... |
[riscv-isa-sim] Rely on system's `dtc` installation | @@ -82,9 +82,6 @@ tc-llvm:
riscv-isa-sim: update_opcodes
cd toolchain/riscv-isa-sim && mkdir -p build && cd build; \
- [ -d dtc ] || git clone git://git.kernel.org/pub/scm/utils/dtc/dtc.git && cd dtc; \
- make install SETUP_PREFIX=$(ISA_SIM_INSTALL_DIR) PREFIX=$(ISA_SIM_INSTALL_DIR) && \
- PATH=$(ISA_SIM_INSTALL_DIR)/b... |
fix the %mean nest-fail in nest | ?. tel |
:: ~_ (dunk %need)
:: ~_ (dunk(sut ref) %have)
- ~>(%mean.[%leaf "nest-fail"] !!)
+ ~_ [%leaf "nest-fail"]
+ !!
?: =(sut ref) &
?- sut
$void sint
|
apps/nshlib: Fix compile error when CONFIG_NSH_DISABLESCRIPT is not defined. The field np_flags does not exist if scripting is disabled. | /****************************************************************************
* apps/nshlib/nsh_parse.c
*
- * Copyright (C) 2007-2013, 2014, 2017 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2007-2013, 2014, 2017-2018 Gregory Nutt. All rights
+ * reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribu... |
Fix Save and Restore of PositionBit set | @@ -119,6 +119,7 @@ void config_read_lighthouse(config_group* lh_config, BaseStationData* bsd, uint8
config_read_float_array(cg, "fcalcurve", bsd->fcalcurve, defaults, 2);
config_read_float_array(cg, "fcalgibpha", bsd->fcalgibpha, defaults, 2);
config_read_float_array(cg, "fcalgibmag", bsd->fcalgibmag, defaults, 2);
+ ... |
evp_extra_test: Avoid potential double free of params
Fixes | @@ -688,6 +688,7 @@ static int test_EC_priv_pub(void)
if (!test_fromdata("EC", params))
goto err;
OSSL_PARAM_free(params);
+ params = NULL;
OSSL_PARAM_BLD_free(bld);
/* Test priv and !pub */
@@ -704,6 +705,7 @@ static int test_EC_priv_pub(void)
if (!test_fromdata("EC", params))
goto err;
OSSL_PARAM_free(params);
+ para... |
Clamp trigger coordinates to scene bounds when using editor sidebar | @@ -125,7 +125,7 @@ class TriggerEditor extends Component {
value={trigger.x}
placeholder={0}
min={0}
- max={31}
+ max={scene.width - trigger.width}
onChange={this.onEdit("x")}
/>
</label>
@@ -140,7 +140,7 @@ class TriggerEditor extends Component {
value={trigger.y}
placeholder={0}
min={0}
- max={31}
+ max={scene.heigh... |
Fix bug in example Python code in README file | @@ -430,12 +430,9 @@ Below is a simple example Python script that creates a new **Cosmology** object,
import pyccl as ccl
import numpy as np
-# Create new Parameters object, containing cosmo parameter values
-p = ccl.Parameters(Omega_c=0.27, Omega_b=0.045, h=0.67, A_s=1e-10, n_s=0.96)
-
-# Create new Cosmology object w... |
Fix tomcat-dev | <target name="tomcat-dev" depends="copyBinaries">
<copy todir="${project.dir}/tomcat-dev">
- <fileset dir="${debian.dist.dir}/tomcat"/>
+ <fileset dir="${installer.build.dir}/datafari/opt/datafari/tomcat"/>
</copy>
<replace file="${project.dir}/tomcat-dev/conf/server.xml" >
<replacefilter>
|
odissey: rollback off: auto-drop server connection on active txn | @@ -321,6 +321,13 @@ int od_bereset(od_server_t *server)
od_serverpool_set(&route->server_pool, server,
OD_SRESET);
+ /* support route rollback off */
+ if (server->is_transaction && !route->scheme->rollback) {
+ od_debug(&pooler->od->log, server->io,
+ "S (reset): in active transaction, dropping");
+ goto drop;
+ }
+
... |
[chain] initialize hardfork config to fix broken chainhandle test | @@ -12,6 +12,7 @@ import (
"github.com/aergoio/aergo-lib/db"
"github.com/aergoio/aergo/account/key"
+ "github.com/aergoio/aergo/config"
"github.com/aergoio/aergo/contract"
"github.com/aergoio/aergo/contract/system"
"github.com/aergoio/aergo/internal/common"
@@ -38,6 +39,8 @@ func initTest(t *testing.T, testmode bool) {... |
schema MAINTENANCE code formatting | @@ -1416,7 +1416,7 @@ lysp_schema_nodeid_match(const struct lyxp_expr *exp, const struct lysp_module *
if (pnode) {
/* compare on the last parsed-only node */
- if (pnode_mod != mod || ly_strncmp(pnode->name, name, name_len)) {
+ if ((pnode_mod != mod) || ly_strncmp(pnode->name, name, name_len)) {
return 0;
}
} else {
|
Move the new avcodec implementation before the old
The API to decode the video frames is different depending on the
libavcodec version.
Move the new API usage to the #if-block. | @@ -94,7 +94,19 @@ static int run_decoder(void *data) {
while (!av_read_frame(format_ctx, &packet) && !avio_ctx->eof_reached) {
// the new decoding/encoding API has been introduced by:
// <http://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=7fc329e2dd6226dfecaa4a1d7adf353bf2773726>
-#if LIBAVCODEC_VERSION_INT < AV_VER... |
interface: group unread counts match spec | @@ -64,7 +64,7 @@ function Group(props: GroupProps) {
<Col height="100%" justifyContent="space-between">
<Text>{title}</Text>
{unreads > 0 &&
- (<Text gray>{unreads} unread{unreads !== 1 && 's'} </Text>)
+ (<Text color="blue" gray>{unreads} update{unreads !== 1 && 's'} </Text>)
}
</Col>
</Tile>
|
LimeSDR-Mini: Clear FDTI buffer on connect
avoid potential read errors after closing device incorectly | @@ -245,6 +245,7 @@ int Connection_uLimeSDR::Open(const unsigned index, const int vid, const int pid
}
lime::debug("Claimed Interface");
+ FT_FlushPipe(0x82); //clear ctrl ep rx buffer
FT_SetStreamPipe(0x82,64);
FT_SetStreamPipe(0x02,64);
isConnected = true;
|
Hosts: Use fences for code snippets | @@ -41,24 +41,34 @@ _not_ preserved.
Mount the plugin:
- $ sudo kdb mount --with-recommends /etc/hosts system/hosts hosts
+```bash
+sudo kdb mount --with-recommends /etc/hosts system/hosts hosts
+```
Print out all known hosts and their aliases:
- $ kdb ls system/hosts
+```bash
+kdb ls system/hosts
+```
Get IP address o... |
Using correct task for connection initialization. | @@ -217,11 +217,11 @@ nxt_conn_accept(nxt_task_t *task, nxt_listen_event_t *lev, nxt_conn_t *c)
//c->socket.read_ready = 1;
// lev->listen->handler(task, c, lev->socket.data);
nxt_work_queue_add(c->read_work_queue, lev->listen->handler,
- task, c, lev->socket.data);
+ &c->task, c, lev->socket.data);
} else {
nxt_work_q... |
openssl support tls/ssl neo | @@ -377,7 +377,7 @@ tb_ssl_ref_t tb_ssl_init(tb_bool_t bserver)
ssl->timeout = 30000;
// init ctx
- ssl->ctx = SSL_CTX_new(SSLv3_method());
+ ssl->ctx = SSL_CTX_new(SSLv23_method());
tb_assert_and_check_break(ssl->ctx);
// make ssl
|
io: remove unnecessary errno message | @@ -168,7 +168,6 @@ static int net_io_connect_async(struct flb_upstream *u,
*/
err = flb_socket_error(u_conn->fd);
if (!FLB_EINPROGRESS(err) && err != 0) {
- flb_errno();
flb_error("[io] connection #%i failed to: %s:%i",
u_conn->fd, u->tcp_host, u->tcp_port);
return -1;
|
Jenkins: Fix minor spelling mistakes | @@ -1379,7 +1379,7 @@ def abortPreviousRun() {
/* Helper that modifies file permissions before executing the passed closure.
* Restores the permissions after the closure has run.
* @param listOfFiles List representing directories and files that should be
- * made unwriteable.
+ * made unwritable.
* Files must exist or ... |
Test XML_SetBase() and XML_GetBase() return consistent results | @@ -1450,6 +1450,25 @@ START_TEST(test_set_foreign_dtd)
}
END_TEST
+/* Test XML Base is set and unset appropriately */
+START_TEST(test_set_base)
+{
+ const XML_Char *old_base;
+ const XML_Char *new_base = "/local/file/name.xml";
+
+ old_base = XML_GetBase(parser);
+ if (XML_SetBase(parser, new_base) != XML_STATUS_OK)
... |
Backend: Fix build instructions for LibJWT | @@ -80,8 +80,8 @@ Now we can also install LibJWT:
- Download the (latest) source from [GitHub](https://github.com/benmcollins/libjwt/releases)
- Extract the archive: `tar -xjf v1.x.x && cd libjwt-1.x.x` (replace 1.x.x with your version)
-- Configure the build: `mkdir build && cd build && cmake ..`
-- Execute the build ... |
Fix Xiaomi vibration sensor
The Door Lock cluster attributes aren't using manufacturer specific code.
Since a stricter check is used for these in 2.5.86 they didn't trigger attribute events.
Issue | @@ -1490,10 +1490,10 @@ by the Poll Control Cluster Client.</description>
</attribute>
</attribute-set>
<attribute-set id="0x0050" description="Xiaomi Special" mfcode="0x1037">
- <attribute id="0x0055" name="Event Type" type="u16" access="r" required="o" mfcode="0x1037"></attribute>
- <attribute id="0x0503" name="Tilt ... |
Fix sway_log using non initialised output_config pointer
This fixes a crash where the `oc->name` would be accessed by sway_log()
even when `oc` was NULL. | @@ -334,7 +334,7 @@ bool apply_output_config(struct output_config *oc, struct sway_output *output) {
}
if (!oc || oc->dpms_state != DPMS_OFF) {
- sway_log(SWAY_DEBUG, "Turning on output %s", oc->name);
+ sway_log(SWAY_DEBUG, "Turning on output %s", wlr_output->name);
wlr_output_enable(wlr_output, true);
if (oc && oc->w... |
don't use the len field in 17/18 strings | @@ -224,12 +224,26 @@ devnull(const char* fmt, ...)
}
#endif
+void
+free_str(char* str) {
+ // Go 17 and higher use null terminated strings instead of a string and a length
+ if (g_go_major_ver > 16) {
+ return;
+ }
+ if(str) scope_free(str);
+}
+
// c_str() is provided to convert a go-style string to a c-style string.... |
android: and again trace for travis | @@ -1854,7 +1854,7 @@ namespace "build" do
args = ['-f', "\"#{File.join($builddir,'Rakefile')}\"", "link:#{abi}"]
args << '--trace' #if USE_TRACES
- cc_run('rake', args, nil, false, nil, USE_TRACES) or raise "Build failed: rhodes"
+ cc_run('rake', args, nil, false, nil, true) or raise "Build failed: rhodes"
#Jake.run3(... |
iommu: fix compilation | @@ -985,8 +985,8 @@ errval_t driverkit_iommu_alloc_frame(struct iommu_client *cl, size_t bytes,
struct capref *retframe)
{
if (cl == NULL) {
- return frame_alloc(retcap, bytes, NULL);
- } else
+ return frame_alloc(retframe, bytes, NULL);
+ } else {
return iommu_alloc_ram_for_frame(cl, bytes, retframe);
}
}
|
Use X509_get_signature_info to get signature strength. | @@ -2203,20 +2203,19 @@ static int ssl_security_cert_key(SSL *s, SSL_CTX *ctx, X509 *x, int op)
static int ssl_security_cert_sig(SSL *s, SSL_CTX *ctx, X509 *x, int op)
{
/* Lookup signature algorithm digest */
- int secbits = -1, md_nid = NID_undef, sig_nid;
+ int secbits, nid, pknid;
/* Don't check signature if self s... |
py/modio: Make iobase_singleton object const so it goes in ROM. | @@ -44,7 +44,7 @@ extern const mp_obj_type_t mp_type_textio;
STATIC const mp_obj_type_t mp_type_iobase;
-STATIC mp_obj_base_t iobase_singleton = {&mp_type_iobase};
+STATIC const mp_obj_base_t iobase_singleton = {&mp_type_iobase};
STATIC mp_obj_t iobase_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, con... |
board/cret/board.h: Format with clang-format
BRANCH=none
TEST=none | #undef CONFIG_USBC_VCONN_SWAP_DELAY_US
#define CONFIG_USBC_VCONN_SWAP_DELAY_US 787 /* us */
-
/* I2C configuration */
#define I2C_PORT_EEPROM NPCX_I2C_PORT7_0
#define I2C_PORT_BATTERY NPCX_I2C_PORT5_0
#define CONFIG_ACCEL_FIFO_SIZE 256 /* Must be a power of 2 */
#define CONFIG_ACCEL_FIFO_THRES (CONFIG_ACCEL_FIFO_SIZE /... |
Optimize code
Replace enqueue code with marcro vlib_validate_buffer_enqueue_x1 | @@ -188,15 +188,10 @@ ip4_icmp_input (vlib_main_t * vm,
next0 = im->ip4_input_next_index_by_type[type0];
p0->error = node->errors[ICMP4_ERROR_UNKNOWN_TYPE];
- if (PREDICT_FALSE (next0 != next))
- {
- vlib_put_next_frame (vm, node, next, n_left_to_next + 1);
- next = next0;
- vlib_get_next_frame (vm, node, next, to_next... |
Clean up error reporting with SDL2 rendering. | @@ -171,12 +171,14 @@ static TCOD_Error setup_cache_console(
struct TCOD_Console** cache)
{
if (!atlas) {
- TCOD_set_errorv("Atlas can not be NULL."); return TCOD_E_INVALID_ARGUMENT;
+ TCOD_set_errorv("Atlas can not be NULL.");
+ return TCOD_E_INVALID_ARGUMENT;
}
if (!console) {
- TCOD_set_errorv("Console can not be NU... |
make reading from pipe robust | @@ -196,6 +196,10 @@ void io_unlink_if_opened(const char* name)
error("Failed to unlink shared memory segment %s\n", name);
break;
+
+ case FILE_TYPE_PIPE:
+ break;
+
#ifdef USE_MEM_CFL
case FILE_TYPE_MEM:
break;
@@ -261,10 +265,21 @@ int read_cfl_header(int fd, char** file, int n, long dimensions[n])
char header[4097]... |
handle %wake error case | ~|([%bad-channel-wire wire] !!)
::
%timeout
+ ?> ?=([%b %wake *] sign)
+ =? moves ?=(^ error.sign)
+ [[duct %d %flog %crud %wake error.sign] moves]
=/ on-channel-timeout
on-channel-timeout:by-channel:(per-server-event event-args)
=^ moves server-state.ax
|
spkac: Check return values of NETSCAPE_SPKI functions
Fixes silently producing an invalid SPKAC with non-RSA keys. | @@ -145,8 +145,15 @@ int spkac_main(int argc, char **argv)
if (challenge != NULL)
ASN1_STRING_set(spki->spkac->challenge,
challenge, (int)strlen(challenge));
- NETSCAPE_SPKI_set_pubkey(spki, pkey);
- NETSCAPE_SPKI_sign(spki, pkey, EVP_md5());
+ if (!NETSCAPE_SPKI_set_pubkey(spki, pkey)) {
+ BIO_printf(bio_err, "Error s... |
training app checkpoint: many small bugfixes | @@ -219,6 +219,15 @@ public:
return TArrayRef<T>(Impl_->Data_, Impl_->Size_);
}
+ TArrayRef<T> AsMaybeNullptrArrayRef() {
+ return Impl_ ? TArrayRef<T>(Impl_->Data_, Impl_->Size_)
+ : TArrayRef<T>((T*)nullptr, (ui64)0);
+ }
+
+ TArrayRef<const T> AsMaybeNullptrArrayRef() const {
+ return Impl_ ? TArrayRef<const T>(Impl... |
Add Intel Denverton
for | @@ -1359,6 +1359,8 @@ int get_cpuname(void){
return CPUTYPE_NEHALEM;
case 12:
// Apollo Lake
+ case 15:
+ // Denverton
return CPUTYPE_NEHALEM;
}
break;
@@ -1378,7 +1380,7 @@ int get_cpuname(void){
case 9:
case 8:
switch (model) {
- case 14: // Kaby Lake
+ case 14: // Kaby Lake and refreshes
if(support_avx2())
return CP... |
[components][dfs] Fix fd error in command list_fd | @@ -537,7 +537,7 @@ int list_fd(void)
if (fd && fd->fops)
{
- rt_kprintf("%2d ", index);
+ rt_kprintf("%2d ", index + DFS_FD_OFFSET);
if (fd->type == FT_DIRECTORY) rt_kprintf("%-7.7s ", "dir");
else if (fd->type == FT_REGULAR) rt_kprintf("%-7.7s ", "file");
else if (fd->type == FT_SOCKET) rt_kprintf("%-7.7s ", "socket"... |
doc: Update sdc reference in overview hld
Clarify that sdc predefined scenario is no longer supported
Minor cleanup | @@ -4,17 +4,17 @@ ACRN High-Level Design Overview
###############################
ACRN is an open-source reference hypervisor (HV) that runs on top of
-:ref:`Intel platforms <hardware>` for heterogeneous scenarios such as the
-Software-defined Cockpit (SDC), or the In-vehicle Experience (IVE) for
-automotive, or HMI & ... |
fixes typo in +cue comment | @@ -73,7 +73,7 @@ u3qe_cue(u3_atom a)
off = ( c3y == nor_o ? 0 : -wis_y );
}
- // initialize a hash table for dereference backrefs
+ // initialize a hash table for dereferencing backrefs
//
u3p(u3h_root) har_p = u3h_new();
|
better to not hack here | @@ -36,6 +36,8 @@ import java.util.Set;
import javax.imageio.ImageIO;
+import com.sun.org.apache.xalan.internal.xsltc.cmdline.Compile;
+
/**
* Image utilities class.
*
@@ -1335,9 +1337,8 @@ public class ImageUtil
}
// remove palette data
- // TODO: uncomment for release
-// if (cropPalette)
-// result = getSubImage(res... |
server session BUGFIX uninitialized variable | @@ -1392,6 +1392,7 @@ nc_ps_poll(struct nc_pollsession *ps, int timeout, struct nc_session **session)
} else if (ps->sessions[i].state == NC_PS_STATE_BUSY) {
/* it definitely should not be busy because we have the lock */
ERRINT;
+ ret = NC_PSPOLL_ERROR;
}
/* keep the session locked only in this one case */
|
tools/pydfu.py: Support DFU files with elements of zero size.
Instead of raising a ZeroDivisionError, this tool now just skips any
elements in the DFU file that have zero size. | @@ -521,7 +521,7 @@ def write_elements(elements, mass_erase_used, progress=None):
data = elem["data"]
elem_size = size
elem_addr = addr
- if progress:
+ if progress and elem_size:
progress(elem_addr, 0, elem_size)
while size > 0:
write_size = size
|
Fix compile failures on Linux. | @@ -1800,10 +1800,10 @@ register_printer(
ipp_txt = NULL;
ipp_txt = avahi_string_list_add_printf(ipp_txt, "rp=%s", printer->resource + 1);
- ipp_txt = avahi_string_list_add_printf(ipp_txt, "ty=%s %s", make, model);
+ ipp_txt = avahi_string_list_add_printf(ipp_txt, "ty=%s %s", printer->pinfo.make, printer->pinfo.model);... |
Applied namespace renaming and formatting to PHP. | %module tinysplinephp
-// std::vector<ts::rational> to php native array
-%typemap(out) std::vector<ts::rational> * {
+// Map std::vector<tinyspline::rational> to PHP native array.
+%typemap(out) std::vector<tinyspline::rational> * {
const int size = $1->size();
array_init_size($result, size);
for (int i = 0; i < size; ... |
Add SceUsbd to docs/definitions.dox | * \defgroup SerialCommunication Serial Communication
* USB, MTP, ...
* \{
+ * \defgroup SceUsbd USB Driver Library
+ * Control USB driver interface
+ *
* \defgroup SceUdcd USB Device Controller Driver Library
* Setting, control UDCD
*
|
Export errorMsg, peekKeyValuePairs from module Peek | @@ -12,6 +12,7 @@ Functions which marshal and push Haskell values onto Lua's stack.
module Foreign.Lua.Peek
( Peeker
, PeekError (..)
+ , errorMsg
, force
, toPeeker
-- * Primitives
@@ -24,6 +25,7 @@ module Foreign.Lua.Peek
, peekString
, peekText
-- * Collections
+ , peekKeyValuePairs
, peekList
, peekMap
, peekSet
|
appveyor: ok, I agree, we don't need to install boundler | @@ -104,8 +104,8 @@ install:
- gem install rest-client --no-document -f
- gem install listen --no-document -f
- gem install zip --no-document -f
- - gem install bundler --quiet --no-ri --no-rdoc -f
- - bundler --version
+# - gem install bundler --quiet --no-ri --no-rdoc -f
+# - bundler --version
before_test:
- ruby -v
|
Mark rising wiki documented. | @@ -2503,7 +2503,7 @@ typedef struct entity
e_animating animating; // Animation status (none, forward, reverse). ~~
e_attacking_state attacking; // ~~
e_duck_state ducking; // In or transitioning to/from duck. ~~
- e_rising_status rising; // Rise/Rise attacking.
+ e_rising_status rising; // Rise/Rise attacking. ~~
int ... |
dm: remove GUEST_CFG_OFFSET
Per commit GUEST_CFG_OFFSET is
no longer needed.
Acked-by: Yin Fengwei | @@ -448,18 +448,6 @@ struct acrn_vm_pci_msix_remap {
uint32_t vector_ctl;
} __aligned(8);
-/**
- * @brief The guest config pointer offset.
- *
- * It's designed to support passing DM config data pointer, based on it,
- * hypervisor would parse then pass DM defined configuration to GUEST VCPU
- * when booting guest VM.
... |
Compatibility with Haxe 3.4.7 | @@ -7,8 +7,13 @@ import nme.events.ProgressEvent;
import nme.events.HTTPStatusEvent;
import nme.utils.ByteArray;
import haxe.Http;
+#if haxe4
import sys.thread.Mutex;
import sys.thread.Thread;
+#else
+import cpp.vm.Mutex;
+import cpp.vm.Thread;
+#end
private class OutputWatcher extends haxe.io.BytesOutput
{
@@ -75,8 +8... |
Boolean: Use correct key name for meta key | @@ -138,7 +138,7 @@ static void normalize (Key * key, Key * parentKey, BoolData * data)
"Key %s with value %s is not a valid boolean. Defaulting to %s.", keyName (key),
keyString (key), data->true);
}
- keySetMeta (key, "originalvalue", keyString (key));
+ keySetMeta (key, "origvalue", keyString (key));
keySetString (k... |
[lighttpd-angel] remove unused includes | #include <sys/wait.h>
-#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
-#include <unistd.h>
-#include <time.h>
#include <signal.h>
#define BINPATH SBIN_DIR"/lighttpd"
|
Ignore PKCS1 based sig algs in TLSv1.3
In TLSv1.3 we must use PSS based sig algs for RSA signing. Ignore any
shared sig algs which are PKCS1 based. | @@ -1617,6 +1617,13 @@ int tls1_process_sigalgs(SSL *s)
for (i = 0, sigptr = c->shared_sigalgs;
i < c->shared_sigalgslen; i++, sigptr++) {
+ /* Ignore PKCS1 based sig algs in TLSv1.3 */
+ if (SSL_IS_TLS13(s)
+ && (sigptr->rsigalg == TLSEXT_SIGALG_rsa_pkcs1_sha1
+ || sigptr->rsigalg == TLSEXT_SIGALG_rsa_pkcs1_sha256
+ |... |
Documentation change only: add LARA-R6 to table on main README.md. | @@ -68,7 +68,7 @@ If your MCU is not on the list:
Peripherals are u-blox modules which accept commands (e.g. AT-commands) over a serial interface and have no open MCU environment. To run the APIs they need to be attached to a host which runs `ubxlib`. For example in the [test farm](/port/platform/common/automation/DATA... |
Toggle comments on multiple lines | @@ -1259,18 +1259,47 @@ fileprivate func parseArgs(_ args: inout [String]) {
/// Comments / Uncomments line.
@objc func toggleComment() {
- guard var line = textView.contentTextView.currentLine else {
+
+ guard textView.contentTextView.isFirstResponder else {
return
}
- let currentLine = line
+ guard let selected = tex... |
no more debuging for sprintf | #include "m_pd.h"
#include "common/loud.h"
-#ifdef KRZYSZCZ
-//#define SPRINTF_DEBUG
-#endif
-
/* Pattern types. These are the parsing routine's return values.
If returned value is >= SPRINTF_MINSLOTTYPE, then another slot
is created (i.e. an inlet, and a proxy handling it). */
@@ -125,16 +121,10 @@ static void sprintf... |
Improve instructions for rebuilding pgbackrest during stress testing. | Once the stress test has been run, it is common to perform some additional tests with a custom/debug build.
- To initialize the build, run the following. This only needs to be done once per doc build, though running it more that once only costs additional time:
- ssh build 'mkdir -p /build/dev && cd /build/dev && /pgba... |
Do not modify options.standby_datadir
Prefer to keep the options immutable after flag parsing
See which uses a local variable
for the standby_datadir -- that proposed pattern is parallel to the original
filespace code.
Author: C.J. Jameson
Author: Shoaib Lari | @@ -363,9 +363,6 @@ def create_standby(options):
logger.error('Failed to retrieve configuration information from the master.')
raise GpInitStandbyException(ex)
- if options.standby_datadir is None:
- options.standby_datadir = array.master.getSegmentDataDirectory()
-
# validate
validate_standby_init(options, array)
|
zephyr: cmake: Remove obsolete code
set_conf is not used anymore.
This functionality was replaced. | cmake_minimum_required(VERSION 3.8)
-# The default top-level application configuration is prj.conf.
-# You can place additional board-specific files in boards/${BOARD}.conf,
-# and they will be merged into the configuration along with prj.conf.
-macro(set_conf_file)
- if(EXISTS ${APPLICATION_SOURCE_DIR}/boards/${BOARD}... |
Solve minor bug with node port when defining size of files to be loaded. | @@ -768,7 +768,6 @@ napi_value metacall_node_call(napi_env env, napi_callback_info info)
return result;
}
-// this function is the handler of the "metacall_load_from_file"
napi_value metacall_node_load_from_file(napi_env env, napi_callback_info info)
{
const size_t args_size = 2;
@@ -794,7 +793,7 @@ napi_value metacall... |
libbpf-tools: update exitsnoop for libbpf 1.0
Switch to libbpf 1.0 mode and adapt libbpf API usage accordingly. | @@ -140,7 +140,6 @@ int main(int argc, char **argv)
.parser = parse_arg,
.doc = argp_program_doc,
};
- struct perf_buffer_opts pb_opts;
struct perf_buffer *pb = NULL;
struct exitsnoop_bpf *obj;
int err;
@@ -149,11 +148,7 @@ int main(int argc, char **argv)
if (err)
return err;
- err = bump_memlock_rlimit();
- if (err) {... |
forwarding: Remove assumption on cjoin metadata. | @@ -463,7 +463,7 @@ owerror_t forwarding_send_internal_RoutingTable(
open_addr_t temp_prefix64btoWrite;
// retrieve the next hop from the routing table
- if (msg->is_cjoin_response || msg->creator == COMPONENT_CJOIN) {
+ if (packetfunctions_isLinkLocal(&msg->l3_destinationAdd)) {
if (neighbors_isStableNeighbor(&(msg->l... |
unix/mpconfigport_dev.h: Enable MICROPY_PY_CLASS_BASES. | #define MICROPY_WARNINGS_CATEGORY (1)
#define MICROPY_WARNINGS_LOC (1)
#define MICROPY_MODULE_GETATTR (1)
+#define MICROPY_PY_CLASS_BASES (1)
#define MICROPY_PY_DELATTR_SETATTR (1)
#define MICROPY_PY_REVERSE_SPECIAL_METHODS (1)
#define MICROPY_PY_BUILTINS_HELP (1)
|
qlog: support the stream_data_blocked frame type | @@ -186,6 +186,20 @@ def handle_streams_blocked_send(event):
"limit": event["limit"]
}
+def handle_stream_data_blocked_receive(event):
+ return {
+ "frame_type": "stream_data_blocked",
+ "stream_id": event["stream-id"],
+ "limit": event["limit"]
+ }
+
+def handle_stream_data_blocked_send(event):
+ return {
+ "frame_typ... |
addTaskSetColorTemperature() handle ctmin/ctmax clipping
Needed so that taskToLocalData() can pickup the right values. | @@ -356,9 +356,6 @@ bool DeRestPluginPrivate::addTaskSetColorTemperature(TaskItem &task, uint16_t ct
return ret;
}
- task.taskType = TaskSetColorTemperature;
- task.colorTemperature = ct;
-
if (task.lightNode)
{
ResourceItem *ctMin = task.lightNode->item(RConfigCtMin);
@@ -400,8 +397,13 @@ bool DeRestPluginPrivate::add... |
pressed_date getter deceleration
A declaration added for pressed_date getter function. | @@ -107,7 +107,6 @@ lv_obj_t * lv_calendar_create(lv_obj_t * par, const lv_obj_t * copy);
/*=====================
* Setter functions
*====================*/
-
/**
* Set a function to call when a calendar event happens
* @param calendar pointer to a calendar object
@@ -137,6 +136,7 @@ void lv_calendar_set_showed_date(lv... |
Fix obsolete executable name | "wine-msvc2017-x86_64": {
"name": "msvc2017",
"tools": {
- "cc": { "bottle": "msvc2017", "executable": "cross_msvc" },
- "c++": { "bottle": "msvc2017", "executable": "cross_msvc" }
+ "cc": { "bottle": "msvc2017", "executable": "msvc" },
+ "c++": { "bottle": "msvc2017", "executable": "msvc" }
},
"platforms": [{"host": {... |
[CUDA] driver can tell us if the memory is unified | @@ -218,6 +218,7 @@ pocl_cuda_init (unsigned j, cl_device_id dev, const char *parameters)
dev->max_clock_frequency /= 1000;
GET_CU_PROP (TEXTURE_ALIGNMENT, dev->mem_base_addr_align);
dev->mem_base_addr_align *= 8;
+ GET_CU_PROP (INTEGRATED, dev->host_unified_memory);
}
if (CUDA_CHECK_ERROR (result, "cuDeviceGetAttribut... |
Fix storage on Windows
Added missing separator betweeen storage path and filename.
Tested-by: Kishen Maloor | @@ -31,11 +31,20 @@ static bool path_set = false;
int
oc_storage_config(const char *store)
{
+ if (!store || !*store)
+ return -EINVAL;
store_path_len = strlen(store);
if (store_path_len >= STORE_PATH_SIZE)
return -ENOENT;
strncpy(store_path, store, store_path_len);
+ if (store_path[store_path_len - 1] != '/' &&
+ stor... |
Fix issue when LV_USE_BIDI is 0 | @@ -155,8 +155,12 @@ void lv_table_set_cell_value(lv_obj_t * table, uint16_t row, uint16_t col, const
else {
if(base_dir == LV_BIDI_DIR_LTR) format.s.align = LV_LABEL_ALIGN_LEFT;
else if(base_dir == LV_BIDI_DIR_RTL) format.s.align = LV_LABEL_ALIGN_RIGHT;
- else if(base_dir == LV_BIDI_DIR_AUTO) format.s.align = lv_bidi_... |
[bsp/stm32/stm32l496] add I2C config | @@ -57,6 +57,44 @@ menu "On-chip Peripheral Drivers"
default n
endif
+ menuconfig BSP_USING_I2C
+ bool "Enable I2C BUS"
+ default n
+ select RT_USING_I2C
+ select RT_USING_I2C_BITOPS
+ select RT_USING_PIN
+ if BSP_USING_I2C
+ menuconfig BSP_USING_I2C3
+ bool "Enable I2C3 BUS"
+ default y
+ if BSP_USING_I2C3
+ comment "... |
Fix sequence_number type in Solr schema | <field name="quality" type="string" indexed="true" stored="true" multiValued="true"/>
<field name="meta_save_date" type="tdate" indexed="true" stored="true" multiValued="true"/>
<field name="color_space" type="string" indexed="true" stored="true" multiValued="true"/>
- <field name="sequence_number" type="int" indexed="... |
fixed function prototype | #include <string.h>
#include <tests_plugin.h>
-static void test_memoryvalueplugin ();
-int main (int argc, char ** argv)
-{
-
- test_memoryvalueplugin ();
- print_result ("testmod_memoryvalue");
- return nbError;
-}
static void test_memoryvalue (const char * memoryvalue, const int expected_ret)
{
@@ -52,3 +44,11 @@ sta... |
Update: Cycle.c apply subs to derived goal | @@ -177,7 +177,14 @@ static void Cycle_ProcessInputGoalEvents(long currentTime)
j--;
continue;
}
- Event newGoal = Inference_GoalDeduction(&c->goal_spike, imp);
+ Term postcondition = Term_ExtractSubterm(&imp->term, 2);
+ Substitution subs = Variable_Unify(&postcondition, &c->goal_spike.term);
+ Implication updated_imp... |
horadric update (327818112)
Note: mandatory check (NEED_CHECK) was skipped | },
"horadric":{
"formula": {
- "sandbox_id": 319605234,
+ "sandbox_id": 327818112,
"match": "horadric"
},
"executable": {
|
Fix invalid handle use in PhpSymbolCallbackFunction
There is no point to provide "fake" handle to system API.
Moreover it could cause crashes if "Strict handle check" mitigation is
enabled. | @@ -379,6 +379,8 @@ BOOL CALLBACK PhpSymbolCallbackFunction(
{
PIMAGEHLP_CBA_READ_MEMORY callbackData = (PIMAGEHLP_CBA_READ_MEMORY)CallbackData;
+ if (symbolProvider->IsRealHandle)
+ {
if (NT_SUCCESS(NtReadVirtualMemory(
ProcessHandle,
(PVOID)callbackData->addr,
@@ -390,6 +392,7 @@ BOOL CALLBACK PhpSymbolCallbackFuncti... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.