message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Don't call conn_call_recv_pkt when ignoring a handshake packet | @@ -3491,6 +3491,19 @@ static int conn_recv_pkt(ngtcp2_conn *conn, const uint8_t *pkt, size_t pktlen,
if (conn->version != hd.version) {
return 0;
}
+
+ switch (hd.type) {
+ case NGTCP2_PKT_INITIAL:
+ case NGTCP2_PKT_HANDSHAKE:
+ /* TODO This is not much useful if client, and server are silent
+ after handshake establi... |
Use [[:blank:]] instead of \s for leading space matching in restore.
This is more accurate since we don't really want lf/cr anyway, though the lines have already been split so that's not possible in this code for lf.
Found on MacOS M1. FreeBSD also seems to be fine with the new expression. | @@ -1556,9 +1556,9 @@ restoreRecoveryWriteAutoConf(unsigned int pgVersion, const String *restoreLabel)
RegExp *recoveryExp =
regExpNew(
STRDEF(
- "^\\s*(" RECOVERY_TARGET "|" RECOVERY_TARGET_ACTION "|" RECOVERY_TARGET_INCLUSIVE "|" RECOVERY_TARGET_LSN
- "|" RECOVERY_TARGET_NAME "|" RECOVERY_TARGET_TIME "|" RECOVERY_TAR... |
virtio: fix the error return
Type: fix | @@ -673,7 +673,8 @@ virtio_pci_read_caps (vlib_main_t * vm, virtio_if_t * vif, void **bar)
if ((error = vlib_pci_read_config_u8 (vm, h, PCI_CAPABILITY_LIST, &pos)))
{
virtio_log_error (vif, "error in reading capabilty list position");
- clib_error_return (error, "error in reading capabilty list position");
+ return cli... |
Provide openssl location for osx travis build. | @@ -71,13 +71,6 @@ jobs:
arch: ppc64le
dist: bionic
-before_install:
- - |
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
- brew update
- brew install openssl
- fi
-
script:
- |
if [ "$TEST_UBSAN" = "yes" ]; then
@@ -86,6 +79,8 @@ script:
elif [ "$TEST_ASAN" = "yes" ]; then
export CFLAGS="-DNDEBUG -g2 -O3 -fsanitize=address"... |
Added missing compileas values to docs | @@ -10,6 +10,11 @@ compileas "value"
* `Default` - Compile based on file extensions that have been built into premake.
* `C` - Compile as a C source file.
* `C++` - Compile as a C++ source file.
+* `Objective-C` - Compile as an Objective-C source file.
+* `Objective-C++` - Compile as an Objective-C++ source file.
+* `M... |
enforces fake/not domain invariants in %jael | :: [%turf ~]
::
%turf
+ :: ships with real keys must have domains,
+ :: those with fake keys must not
+ ::
+ ?< =(fak.urb ?=(^ tuf.urb))
+>.$(moz [[hen %give %turf tuf.urb] moz])
::
:: watch private keys
|
Add generated copyright messages | +/* Copyright (C) 2015-2021 Swift Navigation Inc.
+ * Contact: https://support.swiftnav.com
+ *
+ * This source is subject to the license found in the file 'LICENSE' which must
+ * be be distributed together with this source. All other rights reserved.
+ *
+ * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRA... |
chip/stm32/usart_tx_dma.c: Format with clang-format
BRANCH=none
TEST=none | @@ -41,8 +41,8 @@ static void usart_tx_dma_start(struct usart_config const *config,
struct dma_option options = {
.channel = dma_config->channel,
.periph = (void *)&STM32_USART_TDR(base),
- .flags = (STM32_DMA_CCR_MSIZE_8_BIT |
- STM32_DMA_CCR_PSIZE_8_BIT),
+ .flags =
+ (STM32_DMA_CCR_MSIZE_8_BIT | STM32_DMA_CCR_PSIZE_... |
Syntax error in pyldns | @@ -315,7 +315,7 @@ specified in the (16-bit) type field with a value from ldns_rdf_type."
"""
rr = _ldns.ldns_rdf_new_frm_str(rr_type, string)
if (not rr) and raiseException:
- raise Exception("Can't create query packet"))
+ raise Exception("Can't create query packet")
return rr
#
|
chat-cli: set sane display width, if zero
Under mysterious conditions, chat-cli might get into a state where its
rendering width is set to zero. This makes sure we set it back to 80
if that's the case.
This commit is mostly just precaution. | ::
^- state-1
?- -.u.old
- %1 u.old(bound (~(gas by *(map target glyph)) ~(tap by bound.u.old)))
+ %1
+ =? width.u.old =(0 width.u.old) 80
+ u.old(bound (~(gas by *(map target glyph)) ~(tap by bound.u.old)))
::
?(~ ^)
:- %1
|
feat(venachain):Add venachain support in sdk/protocol | @@ -4,9 +4,9 @@ SOURCES = $(wildcard *.c)
OBJECTS_DIR = $(BOAT_BUILD_DIR)/sdk/protocol
OBJECTS = $(patsubst %.c,$(OBJECTS_DIR)/%.o,$(SOURCES))
-.PHONY: all rotocol_common protocol_ethereum protocol_platon protocol_platone protocol_fiscobcos protocol_hlfabric protocol_hw_bcs protocol_chainmaker
+.PHONY: all rotocol_comm... |
Remove README line about outdated documentation | @@ -81,7 +81,5 @@ Pull the latest code and run make:cli again, yarn link is only needed for the fi
## Documentation
-Documentation is not yet available for version 3.0, for previous builds refer to the following:
-
[GB Studio Documentation](https://www.gbstudio.dev/docs)
|
tools/gen-cpydiff: Clean output of CPython/uPy from memory addresses.
To avoid spurious changes in generated content on each run. | @@ -86,6 +86,12 @@ def uimports(code):
code = code.replace(uimport, b'u' + uimport)
return code
+
+def clean_output(output):
+ """ remove unimport, transient details from output, like memory addresses """
+ return re.sub(r"at 0x[0-9a-f]+", "at 0x7fffffff", output)
+
+
def run_tests(tests):
""" executes all tests """
re... |
Fix transform depth in early skip | @@ -1572,7 +1572,7 @@ static void search_pu_inter(encoder_state_t * const state,
cur_cu->inter.mv[0][1] = info.merge_cand[merge_idx].mv[0][1];
cur_cu->inter.mv[1][0] = info.merge_cand[merge_idx].mv[1][0];
cur_cu->inter.mv[1][1] = info.merge_cand[merge_idx].mv[1][1];
- kvz_lcu_set_trdepth(lcu, x, y, depth, depth);
+ kvz... |
i2ctrace: add safety check
Prevent NULL dereference coming from get_i2c_port
BRANCH=none
TEST=none
Code-Coverage: Zoss | @@ -67,7 +67,7 @@ static int command_i2ctrace_list(void)
i2c_port = get_i2c_port(trace_entries[i].port);
ccprintf("%-2zd %d %-8s 0x%X", i, trace_entries[i].port,
#ifndef CONFIG_ZEPHYR
- i2c_port->name,
+ i2c_port ? i2c_port->name : "invalid",
#else
"",
#endif /* CONFIG_ZEPHYR */
|
ansi: Implement strtoimax() | +#include <ctype.h>
#include <inttypes.h>
+#include <string.h>
+
#include <mlibc/ensure.h>
+static const char *__mlibc_digits = "0123456789abcdefghijklmnopqrstuvwxyz";
+
intmax_t imaxabs(intmax_t) {
__ensure(!"Not implemented");
__builtin_unreachable();
@@ -10,9 +15,56 @@ imaxdiv_t imaxdiv(intmax_t, intmax_t) {
__ensur... |
[Release] Update website to v0.5.0 | <section class="page-header">
<h1 class="project-name">libcbor</h1>
<h2 class="project-tagline">CBOR format implementation for C & others</h2>
- <h2 class="project-tagline">Latest release: v0.4.0</h2>
+ <h2 class="project-tagline">Latest release: v0.5.0</h2>
<a href="https://github.com/PJK/libcbor" class="btn">View... |
gimble: modify ectool control battery led
We will use ectool led battery <amber | white> to test if led is
working for factory automated testing.
BRANCH=none
TEST=make -j BOARD=gimble | @@ -78,6 +78,7 @@ __override void led_set_color_battery(enum ec_led_colors color)
/* Check which port is the charging port,
* and turn on the corresponding led.
*/
+ if (led_auto_control_is_enabled(EC_LED_ID_BATTERY_LED)) {
port = charge_manager_get_active_charge_port();
switch (port) {
case LED_SIDESEL_MB_PORT:
@@ -10... |
scripts: rephrase as suggested by | @@ -10,8 +10,8 @@ then
exit 0
fi
echo "The release notes were not extended correctly (with $linesChanged lines changed)."
- echo "Please make sure you added at least one line which says *(your name)* to"
- echo "make sure that your contribution is correctly attributed in the release notes."
+ echo "Please make sure you... |
servo_micro: Increase maximum I2C-over-USB write and read sizes.
BRANCH=none
TEST=This makes block_write_size up to 254B in iteflash work,
and makes 256B verification reads work. | #define CONFIG_USB_I2C
#define CONFIG_I2C
#define CONFIG_I2C_MASTER
+/*
+ * iteflash requires 256 byte reads for verifying ITE EC firmware. Without this
+ * the limit is CONFIG_I2C_CHIP_MAX_READ_SIZE which is 255 for STM32F0 due to an
+ * 8 bit field, per src/platform/ec/include/config.h comment.
+ */
+#define CONFIG_I... |
Get rid of unnecessary memory allocation in jsonb_subscript_assign()
Current code allocates memory for JsonbValue, but it could be placed locally. | @@ -283,7 +283,7 @@ jsonb_subscript_assign(ExprState *state,
*/
if (*op->resnull)
{
- JsonbValue *newSource = (JsonbValue *) palloc(sizeof(JsonbValue));
+ JsonbValue newSource;
/*
* To avoid any surprising results, set up an empty jsonb array in
@@ -292,17 +292,17 @@ jsonb_subscript_assign(ExprState *state,
*/
if (work... |
Android: Add global scene solver target | @@ -86,6 +86,18 @@ endif
include $(BUILD_SHARED_LIBRARY)
+# driver_global_scene_solver
+include $(CLEAR_VARS)
+LOCAL_MODULE := libsurvive-plugin-driver_global_scene_solver
+LOCAL_MODULE_CLASS := SHARED_LIBRARIES
+LOCAL_CFLAGS := $(COMMON_CFLAGS)
+LOCAL_C_INCLUDES := $(COMMON_C_INCLUDES)
+LOCAL_SHARED_LIBRARIES := libsu... |
net/lwip: modify rflag=0 handles in nd6, type NA
This commit fixes nd6(rflag) handling routine in NA
message. Removing a default router, we don't need to
clean up neighbor cache entry. | @@ -372,23 +372,12 @@ void nd6_input(struct pbuf *p, struct netif *inp)
neighbor_cache[i].isrouter = 0;
tmp = nd6_get_router(&neighbor_cache[i].next_hop_address, inp);
- if (tmp == 0) {
- /* TODO: error */
- }
+ if (tmp >= 0) {
/* RFC 4861, 6.3.5. Timing out Prefixes and Default Routers */
+ if (default_router_list[tmp... |
testcase/task_manager: Fix strncpy size which can lead to buffer overflow
when copying string value, the size should include null terminator. | @@ -80,7 +80,7 @@ static void sync_test_cb(tm_msg_t *info)
tm_msg_t reply_msg;
if (strncmp(info->msg, TM_SYNC_SEND_MSG, info->msg_size) == 0) {
- reply_msg.msg = malloc(strlen(TM_SYNC_RECV_MSG));
+ reply_msg.msg = malloc(strlen(TM_SYNC_RECV_MSG) + 1);
if (reply_msg.msg != NULL) {
reply_msg.msg_size = strlen(TM_SYNC_REC... |
Add buffer/fill. Address | @@ -182,6 +182,19 @@ static Janet cfun_buffer_new_filled(int32_t argc, Janet *argv) {
return janet_wrap_buffer(buffer);
}
+static Janet cfun_buffer_fill(int32_t argc, Janet *argv) {
+ janet_arity(argc, 1, 2);
+ JanetBuffer *buffer = janet_getbuffer(argv, 0);
+ int32_t byte = 0;
+ if (argc == 2) {
+ byte = janet_getinte... |
examples/modbus: Fix endianess, it was inverted | @@ -458,8 +458,8 @@ eMBErrorCode eMBRegInputCB(uint8_t *buffer, uint16_t address, uint16_t nregs)
index = (int)(address - CONFIG_EXAMPLES_MODBUS_REG_INPUT_START);
while (nregs > 0)
{
- *buffer++ = (uint8_t)(g_modbus.reginput[index] >> 8);
*buffer++ = (uint8_t)(g_modbus.reginput[index] & 0xff);
+ *buffer++ = (uint8_t)(g... |
threads: Fixed potential division by zero
JIRA: | @@ -766,7 +766,6 @@ void threads_canaryInit(thread_t *t, void *ustack)
int proc_threadCreate(process_t *process, void (*start)(void *), unsigned int *id, unsigned int priority, size_t kstacksz, void *stack, size_t stacksz, void *arg)
{
- /* TODO - save user stack and it's size in thread_t */
thread_t *t;
spinlock_ctx_t... |
vere: removed unnecessary exit(1) call
Previously exit(1) was called after calling u3_king_bail()
which was unnecessary, so removed it. | @@ -578,7 +578,6 @@ _boothack_doom(void)
if ( u3_nul == whu ) {
u3l_log("boot: malformed -F ship %s\r\n", u3_Host.ops_u.fak_c);
u3_king_bail();
- exit(1);
}
bot = u3nc(c3__fake, u3k(u3t(whu)));
|
[drivers/wlan] Fix the problem that the password is empty | @@ -117,7 +117,18 @@ int rt_wlan_softap(struct rt_wlan_device *device, struct rt_wlan_info *info, cha
rt_wlan_set_info(device, info);
}
+ if (password == NULL)
+ {
+ memset(device->key, 0, sizeof(device->key));
+ }
+ else
+ {
+ if (rt_strlen(password) > sizeof(device->key) - 1)
+ {
+ rt_kprintf("WARN input password is ... |
Removed ugly size_t less than zero check.
CLA: trivial. | @@ -162,7 +162,7 @@ void *CRYPTO_malloc(size_t num, const char *file, int line)
if (malloc_impl != NULL && malloc_impl != CRYPTO_malloc)
return malloc_impl(num, file, line);
- if (num <= 0)
+ if (num == 0)
return NULL;
FAILTEST();
|
sensors/ioctl: add common cmd for accelerators | #define SNIOC_READROMCODE _SNIOC(0x0067) /* Arg: uint64_t* pointer */
#define SNIOC_SETALARM _SNIOC(0x0068) /* Arg: struct ds18b20_alarm_s* */
+/* IOCTL commands for accelerators */
+
+#define SNIOC_SIMPLE_CHECK _SNIOC(0x0069) /* Simple check */
+#define SNIOC_FULL_CHECK _SNIOC(0x006a) /* Full check */
+#define SNIOC_F... |
chat: add exports to gulpfile
Added exports so that indigo-react can
be integrated into our workflow without error. | @@ -56,8 +56,9 @@ gulp.task('js-imports', function(cb) {
plugins: [
commonjs({
namedExports: {
- 'node_modules/react/index.js': [ 'Component' ],
- 'node_modules/react-is/index.js': [ 'isValidElementType' ],
+ 'node_modules/react/index.js': ['Component', 'cloneElement', 'createContext', 'createElement', 'useState', 'use... |
filter_kubernetes: fix memory leak on Pod record exclusion | @@ -480,6 +480,7 @@ static int cb_kube_filter(void *data, size_t bytes,
if (props.exclude == FLB_TRUE) {
*out_buf = NULL;
*out_bytes = 0;
+ flb_kube_meta_release(&meta);
flb_kube_prop_destroy(&props);
return FLB_FILTER_MODIFIED;
}
|
change the vq count and vendor id
Acked-by: Yu Wang | * Queue definitions.
* Audio mediator uses two queues: one for interrupt and the other for messages.
*/
-#define VIRTIO_AUDIO_VQ_NUM 2
+#define VIRTIO_AUDIO_VQ_NUM 4 /*2 currently we use 4 vq, may change later*/
const char *vbs_k_audio_dev_path = "/dev/vbs_k_audio";
@@ -334,11 +334,11 @@ virtio_audio_init(struct vmctx ... |
Add the missing CMake LIBRESSL option | @@ -13,7 +13,7 @@ endfunction()
set (ENABLE_SSL AUTO CACHE STRING
"Enable TLS connections and SCRAM-SHA-1 authentication.\ Options are
\"DARWIN\" to use Apple's Secure Transport, \"WINDOWS\" to use Windows
- Secure Channel, \"OPENSSL\", \"AUTO\",\ or \"OFF\". These options are
+ Secure Channel, \"OPENSSL\", \"LIBRESSL\... |
Fix gd32f4xx_dma.c:223:26: error: unused function 'gd32_dma_channel_get' [-Werror,-Wunused-function] | @@ -211,42 +211,6 @@ static void gd32_dma_clock_enable(uint32_t dmabase)
modifyreg32(regaddr, 0, rcu_en);
}
-/****************************************************************************
- * Name: gd32_dma_channel_get
- *
- * Description:
- * Get the g_dmachan table entry associated with a DMA controller and
- * a chan... |
remove int_en_wire from axi_bram_reader | @@ -45,7 +45,7 @@ module axi_bram_reader #
localparam integer ADDR_LSB = clogb2(AXI_DATA_WIDTH/8 - 1);
- wire int_arvalid_wire, int_rready_wire, int_en_wire;
+ wire int_arvalid_wire, int_rready_wire;
wire [AXI_ADDR_WIDTH-1:0] int_araddr_wire;
wire [AXI_ADDR_WIDTH-1:0] int_addr_wire;
|
Minor fix for VB header file
type is a reserved keyword in VB | @@ -234,12 +234,12 @@ Public Const EN_G_CURVE = 4 ' General\default curve
Declare Function ENgetcurve Lib "epanet2.dll" (ByVal curveIndex As Long, ByVal CurveID As String, nValues As Long, xValues As Any, yValues As Any) As Long
Declare Function ENgetheadcurveindex Lib "epanet2.dll" (ByVal pumpIndex As Long, curveIndex... |
Kconfig.debug: Populate USB Debug Features in menuconfig | @@ -736,6 +736,38 @@ config DEBUG_TTRACE
---help---
Enable T-trace debug Feature.
+config DEBUG_USB
+ bool "USB Debug Features"
+ default n
+ depends on USBDEV || USBHOST
+ ---help---
+ Enable USB debug features.
+
+if DEBUG_USB
+
+config DEBUG_USB_ERROR
+ bool "USB Error Output"
+ default n
+ depends on DEBUG_ERROR
+ ... |
Shell Recorder: Remove unnecessary export | @@ -29,7 +29,7 @@ if (ENABLE_KDB_TESTING)
endif (list_index EQUAL -1)
endif ()
- set (INCLUDE_COMMON "${INCLUDE_COMMON_FILE}export KDB=\"${KDB_COMMAND_BASENAME}\" PATH=\"${CMAKE_BINARY_DIR}/bin:$PATH\"")
+ set (INCLUDE_COMMON "${INCLUDE_COMMON_FILE}export PATH=\"${CMAKE_BINARY_DIR}/bin:$PATH\"")
configure_file ("${CMAK... |
hark-group-hook: add type checking to vase sent to %hark-store, fix | |= [=index:store =notification:store]
^- card
=- [%pass / %agent [our.bowl %hark-store] %poke -]
- hark-action+!>([%add index notification])
+ :- %hark-action
+ !> ^- action:store
+ [%add-note index notification]
--
::
++ on-peek on-peek:def
|
Support of custom QML2_IMPORT_PATH and auto-add output path to import custom qmlplugins | @@ -30,13 +30,18 @@ rule("qt.env")
qt = assert(find_qt(nil, {verbose = true}), "Qt SDK not found!")
target:data_set("qt", qt)
end
+
+ local qmlimportpath = target:get("qt.env.qmlimportpath") or {}
if target:is_plat("windows") or (target:is_plat("mingw") and is_host("windows")) then
target:add("runenvs", "PATH", qt.bind... |
wsman-soap-envelope: fix potential NULL pointer dereference
Bail out if strdup failed. | @@ -955,6 +955,8 @@ void wsman_get_fragment_type(char *fragstr, int *fragment_flag, char **element,
*index = 0;
if(fragstr == NULL) return;
dupstr = u_strdup(fragstr);
+ if (dupstr == NULL)
+ return;
p = strstr(dupstr, "/text()");
if(p) {
*p = '\0';
|
Separating out method to check if stlink is usable.
Adding a log macro.
Adding logs with stlink list. | #define APP_RESULT_INVALID_PARAMS 1
#define APP_RESULT_STLINK_NOT_FOUND 2
+#define LOG(SETTINGS, LEVEL, ARGS...) if (settings->logging_level >= LEVEL) printf(ARGS)
+
struct _st_settings_t
{
@@ -111,27 +113,36 @@ bool parse_options(int argc, char** argv, st_settings_t *settings) {
return true;
}
+static bool CompareStli... |
num/ops.c: make gpu-wrapper spam less | @@ -1186,7 +1186,7 @@ static void gpuwrp_fun(const operator_data_t* _data, unsigned int N, void* args[
assert(N == operator_nr_args(op));
- debug_printf(DP_DEBUG1, "GPU start.\n");
+ debug_printf(DP_DEBUG3, "GPU start.\n");
int nr_cuda_devices = MIN(cuda_num_devices(), MAX_CUDA_DEVICES);
int gpun = omp_get_thread_num()... |
phb4: Simplify calling phb4_retry_state()
phb4_retry_state() returns a good error code, so just use that rather
than complicating the caller. | @@ -2188,7 +2188,6 @@ static int64_t phb4_poll_link(struct pci_slot *slot)
{
struct phb4 *p = phb_to_phb4(slot->phb);
uint64_t reg;
- int64_t rc;
switch (slot->state) {
case PHB4_SLOT_NORMAL:
@@ -2220,12 +2219,7 @@ static int64_t phb4_poll_link(struct pci_slot *slot)
if (slot->retries-- == 0) {
PHBERR(p, "LINK: Timeout... |
Fix compile_cuda for g++-7 | @@ -66,6 +66,16 @@ def main():
for prefix in skip_prefix_list:
cflags = [i for i in cflags if not i.startswith(prefix)]
+ if not is_clang(command):
+ def good(arg):
+ if arg.startswith('--target='):
+ return False
+ if arg in ('-Wno-exceptions',
+ '-Wno-inconsistent-missing-override'):
+ return False
+ return True
+ cf... |
web-ui: allow restrict/write and restrict/remove for binary keys | @@ -300,6 +300,26 @@ export default class SettingsDialog extends Component {
/>
<SavedIcon saved={this.getSaved('restrict/binary')} />
</div>
+ <div style={{ display: 'initial', marginLeft: 24 }}>
+ <Checkbox
+ checked={fromElektraBool(this.getMeta('restrict/write', false))}
+ onCheck={(e, val) => this.handleEdit('rest... |
build BUGFIX properly get libssh version | @@ -189,7 +189,7 @@ endif()
if(ENABLE_SSH)
find_package(LibSSH 0.7.0 REQUIRED)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DNC_ENABLED_SSH")
- if(LibSSH_PACKAGE_FIND_VERSION LESS 0.8.0)
+ if(LibSSH_VERSION VERSION_LESS 0.8.0)
target_link_libraries(netconf2 "-L${LIBSSH_LIBRARY_DIR}" -lssh -lssh_threads -lcrypt)
else()
target_l... |
Add gas signal for hyundai EV | @@ -29,9 +29,10 @@ const int HYUNDAI_RX_CHECK_LEN = sizeof(hyundai_rx_checks) / sizeof(hyundai_rx_c
// older hyundai models have less checks due to missing counters and checksums
AddrCheckStruct hyundai_legacy_rx_checks[] = {
- {.msg = {{608, 0, 8, .check_checksum = true, .max_counter = 3U, .expected_timestep = 10000U}... |
linux-cp: fix infinite loop in CLI lcp default
CLI lcp default clear or lcp default netns hangs in an infinite while loop.
Type: fix | @@ -215,6 +215,7 @@ lcp_default_netns_command_fn (vlib_main_t *vm, unformat_input_t *input,
unformat_input_t _line_input, *line_input = &_line_input;
u8 *ns;
int r;
+ clib_error_t *error = NULL;
if (!unformat_user (input, unformat_line_input, line_input))
return 0;
@@ -227,9 +228,14 @@ lcp_default_netns_command_fn (vli... |
gppkg: add behave test for install/uninstall
Ensure that we can run install and uninstall gppkg on any gppkg filenames. | @gppkg
Feature: gppkg tests
+ @gppkg_setup
+ Scenario: gppkg environment does not have any gppkg
+ Given the database is running
+ Then the user runs "gppkg --remove sample"
Scenario: gppkg -u should prompt user when package is updated with -a option
Given the database is running
@@ -44,3 +48,45 @@ Feature: gppkg tests... |
Move variable definition to start of function | @@ -493,6 +493,7 @@ publish(void)
int len;
int remaining = APP_BUFFER_SIZE;
int i;
+ char def_rt_str[64];
seq_nr_value++;
@@ -519,7 +520,6 @@ publish(void)
buf_ptr += len;
/* Put our Default route's string representation in a buffer */
- char def_rt_str[64];
memset(def_rt_str, 0, sizeof(def_rt_str));
ipaddr_sprintf(def... |
Removed un-necessary return check. | @@ -143,10 +143,6 @@ fcb_getnext_sector_nolock(struct fcb *fcb, struct fcb_entry *loc)
if (rc == 0) {
return 0;
}
-
- if (rc != FCB_ERR_CRC) {
- return FCB_ERR_NEXT_SECT;
- }
}
return FCB_ERR_NEXT_SECT;
|
Use actual notation for tickets | !> =- -(network *uode)
%- full-wallet-from-ticket
:+ ~nec :: 1
- 4^0x1.0102 ::TODO .~doznec-marbud
+ 4^.~doznec-marbud
[0 ~]
::
++ test-generate-wallet-1
=- -(voting *node)
%- full-wallet-from-ticket
:+ ~matbyr :: 65.012
- 8^0x102.af04.0506.0798 ::TODO .~marbud-tidsev-litsut-hidfep
+ 8^.~marbud-tidsev-litsut-hidfep
[0 ... |
Improve the family/socktype/protocol-related docs a bit | @@ -1939,7 +1939,7 @@ Gets the current Window width and height.
Controls whether console virtual terminal sequences are processed by libuv or
console. Useful in particular for enabling ConEmu support of ANSI X3.64 and
Xterm 256 colors. Otherwise Windows10 consoles are usually detected
-automatically. State may be a fam... |
Fix bug by casting to unsigned char.
Higher unciode codepoints where being read as negative char values.
We need to cast to unsigned char before comparing to 0x20 to check
for unprintable characters. | @@ -763,6 +763,7 @@ static int line() {
switch (c) {
default:
+ if ((unsigned char) c < 0x20) break;
if (insert(c, 1)) return -1;
break;
case 1: /* ctrl-a */
|
fixes
On error the daos_read and daos_write call should set
errno then return negative one. | @@ -790,7 +790,7 @@ ssize_t daos_read(const char* file, void* buf, size_t size, mfu_file_t* mfu_file
MFU_LOG(MFU_LOG_ERR, "dfs_read %s failed (%d %s)",
file, rc, strerror(rc));
errno = rc;
- rc = -1;
+ return -1;
}
mfu_file->offset += (daos_off_t)got_size;
return (ssize_t)got_size;
@@ -892,7 +892,7 @@ ssize_t daos_writ... |
xive: Don't touch ESB masks unless masking/unmasking
Otherwise this can have the side effect of losing a queued
interrupt. | @@ -2296,6 +2296,7 @@ static int64_t xive_source_set_xive(struct irq_source *is, uint32_t isn,
uint16_t server, uint8_t prio)
{
struct xive_src *s = container_of(is, struct xive_src, is);
+ uint8_t old_prio;
int64_t rc;
/*
@@ -2316,18 +2317,24 @@ static int64_t xive_source_set_xive(struct irq_source *is, uint32_t isn,
... |
added warning (monitor mode on Realtek driver in combination with NETLINK) | @@ -5580,11 +5580,14 @@ printf("%s %s (C) %s ZeroBeat\n"
"\n"
"short options:\n"
"-i <interface> : interface (monitor mode will be enabled by hcxdumptool)\n"
- " can also be done manually:\n"
+ " some Realtek interfaces require NETLINK to set monitor mode\n"
+ " in this case try iw:\n"
" ip link set <interface> down\n"... |
NVIDIA compiler does not yet support POWER10 | @@ -10,9 +10,11 @@ USE_OPENMP = 1
endif
ifeq ($(CORE), POWER10)
+ifneq ($(C_COMPILER), PGI)
CCOMMON_OPT += -Ofast -mcpu=power10 -mtune=power10 -mvsx -fno-fast-math
FCOMMON_OPT += -O2 -frecursive -mcpu=power10 -mtune=power10 -fno-fast-math
endif
+endif
ifeq ($(CORE), POWER9)
ifneq ($(C_COMPILER), PGI)
|
chore(my_bot/Makefile): no need to include -lpthread | @@ -27,9 +27,8 @@ CFLAGS := -O0 -g -Wall -pthread \
# -ldiscord links against libdiscord.a
# -lcurl links against libcurl, a orca dependency
# -lcrypto links against OpenSSL, a libcurl dependency
-# -lpthread links against POSIX threads, a orca dependency
# -lm links against math.h, a orca dependency
-LDFLAGS := -L$(LI... |
jna/plugins: added plugin name and meta key definitions | @@ -6,12 +6,22 @@ import org.libelektra.KeySet;
import org.libelektra.Plugin;
import javax.annotation.Nonnull;
+import java.util.regex.Pattern;
public class SortedPlugin implements Plugin {
+
+ private static final String PLUGIN_NAME = "Sorted";
+ private static final Pattern META_SORTED = Pattern.compile("meta:/check/... |
updated on-peek for s3-store | --
::
++ on-leave on-leave:def
-++ on-peek on-peek:def
+++ on-peek
+ ~/ %s3-peek
+ |= =path
+ ^- (unit (unit cage))
+ ?> (team:title our.bowl src.bowl)
+ ?+ path (on-watch:def path)
+ [%x %credentials ~]
+ [~ ~ %s3-update !>(`noun`[%credentials credentials])]
+ [%x %configuration ~]
+ [~ ~ %s3-update !>(`noun`[%configu... |
Fix protocol error caused by redis-benchmark
The protocol error was caused by the buggy `writeHandler` in `redis-benchmark.c`,
which didn't handle one of the cases, thereby repeating data, leading to protocol errors
when the values being sent are very long.
This PR fixes issue introduced by | @@ -632,6 +632,9 @@ static void writeHandler(aeEventLoop *el, int fd, void *privdata, int mask) {
fprintf(stderr, "Error writing to the server: %s\n", strerror(errno));
freeClient(c);
return;
+ } else if (nwritten > 0) {
+ c->written += nwritten;
+ return;
}
} else {
aeDeleteFileEvent(el,c->context->fd,AE_WRITABLE);
|
%check breaks the build, try using %build | @@ -87,6 +87,7 @@ twamp server
%build
%configure --with-I2util=no
make
+make check
%install
%makeinstall
@@ -104,9 +105,6 @@ make
%{__install} -D -p -m 0644 conf/twampd.limits %{buildroot}%{_sysconfdir}/twamp-server/twamp-server.limits
%{__install} -D -p -m 0644 conf/twampd.limits %{buildroot}%{_sysconfdir}/twamp-serve... |
sys/log: Add storage info support to log_cbmem | @@ -206,6 +206,31 @@ err:
return (rc);
}
+#if MYNEWT_VAL(LOG_STORAGE_INFO)
+static int
+log_cbmem_storage_info(struct log *log, struct log_storage_info *info)
+{
+ struct cbmem *cbmem;
+ uint32_t size;
+ uint32_t used;
+
+ cbmem = (struct cbmem *)log->l_arg;
+
+ size = cbmem->c_buf_end - cbmem->c_buf;
+
+ used = (uint3... |
test(ethereum): Add 006GetBalance_0002GetSuccessNullAddress | @@ -42,6 +42,34 @@ START_TEST(test_006GetBalance_0001GetSuccess)
ck_assert_int_eq(result, BOAT_SUCCESS);
+ cur_balance_wei = BoatEthWalletGetBalance(g_ethereum_wallet_ptr, TEST_RECIPIENT_ADDRESS);
+ result = BoatEthParseRpcResponseStringResult(cur_balance_wei, &parse_result);
+
+ ck_assert_ptr_nonnull(parse_result.fiel... |
Ensure we excluse ec2m curves if ec2m is disabled | @@ -97,26 +97,34 @@ static const TLS_GROUP_CONSTANTS group_list[35] = {
static const OSSL_PARAM param_group_list[][10] = {
#ifndef OPENSSL_NO_EC
+# ifndef OPENSSL_NO_EC2M
TLS_GROUP_ENTRY("sect163k1", "sect163k1", "EC", 0),
+# endif
# ifndef FIPS_MODULE
TLS_GROUP_ENTRY("sect163r1", "sect163r1", "EC", 1),
# endif
+# ifnd... |
doc: add link to book | "APP.HOME.LABEL.ORIENTATION.1.HEADLINE": "Develop Custom Plugins",
"APP.HOME.LABEL.ORIENTATION.2.DETAILS": "Of course you can use Elektra also outside a C or C++ environment. Have a look at our <a href=\"/bindings/readme\">language bindings</a>! You can even write plugins in <a href=\"/plugins/jni\">Java</a>, <a href=\... |
Fixed alignment assumptions in SHA2 update.
Unaligned loads are a no-no on many architectures, the ESP8266 included. | *
*/
+/* ESP8266-specific tweaks by Johny Mattsson <jmattsson@dius.com.au> */
+
#include "user_config.h"
#ifdef SHA2_ENABLE
@@ -491,6 +493,13 @@ void ICACHE_FLASH_ATTR SHA256_Update(SHA256_CTX* context, const sha2_byte *data,
}
while (len >= SHA256_BLOCK_LENGTH) {
/* Process as many complete blocks as we can */
+ if ((... |
tests CHANGE use barriers instead of usleep to timeout | struct state {
sr_conn_ctx_t *conn;
volatile int cb_called, cb_called2;
- pthread_barrier_t barrier;
+ pthread_barrier_t barrier, barrier2;
};
static int
@@ -113,6 +113,7 @@ setup_f(void **state)
st->cb_called = 0;
st->cb_called2 = 0;
pthread_barrier_init(&st->barrier, NULL, 2);
+ pthread_barrier_init(&st->barrier2, NU... |
deprecate windows 2016 packaging ci jobs | @@ -54,12 +54,7 @@ try{
"1804 SGX1FLC Package Release" : { LinuxPackaging('1804', 'Release') },
"1804 SGX1FLC Package Release LVI" : { LinuxPackaging('1804', 'Release', 'ControlFlow') },
"1804 SGX1FLC Package RelWithDebInfo" : { LinuxPackaging('1804', 'RelWithDebInfo') },
- "1804 SGX1FLC Package RelWithDebInfo LVI" : {... |
Run Valgrind on more tests and generate suppressions. | #!/bin/bash
set -e
+export VALGRIND=""
+if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
+ VALGRIND="PYTHONMALLOC='malloc' valgrind --show-leak-kinds=definite --gen-suppressions=all --error-exitcode=0"
+fi
+
if [[ "$BUILD_TOOL" == "autotools" ]]; then
echo "#include <libtcod.h>" | $CC -xc -c -I$HOME/.local/include/libtcod -... |
Correct English Spelling
permision -> permission | @@ -420,7 +420,7 @@ error:
things_free(svrdb);
return OIC_SEC_ERROR;
} else {
- THINGS_LOG_E(TAG, "Can not open the [%s], Please make sure the access permision of file system.", SVR_DB_PATH);
+ THINGS_LOG_E(TAG, "Can not open the [%s], Please make sure the access permission of file system.", SVR_DB_PATH);
}
return res;... |
Add debian 8 support in extras/vagrant/build.sh | @@ -26,6 +26,12 @@ elif [ -f /etc/redhat-release ];then
DISTRIB_RELEASE=`lsb_release -sr`
DISTRIB_CODENAME=`lsb_release -sc`
DISTRIB_DESCRIPTION=`lsb_release -sd`
+elif [ -f /etc/os-release ];then
+ . /etc/os-release
+ DISTRIB_ID=$ID
+ DISTRIB_RELEASE=$VERSION_ID
+ DISTRIB_CODENAME=$VERSION
+ DISTRIB_DESCRIPTION=$PRETT... |
Reflect special `DEFAULT` behavior in ciphers(1)
Actual behavior of DEFAULT is different than currently described.
Rather than actinf as cipher string, DEFAULT cannot be combined using
logical operators, etc.
Fixes | @@ -168,19 +168,20 @@ The cipher string B<@SECLEVEL=n> can be used at any point to set the security
level to B<n>, which should be a number between zero and five, inclusive.
See L<SSL_CTX_set_security_level> for a description of what each level means.
+The cipher list can be prefixed with the B<DEFAULT> keyword, which ... |
Clean handshake secrets | @@ -1646,6 +1646,11 @@ static int ssl_tls13_flush_buffers( mbedtls_ssl_context *ssl )
*/
static int ssl_tls13_handshake_wrapup( mbedtls_ssl_context *ssl )
{
+ mbedtls_platform_zeroize( &ssl->handshake->tls1_3_master_secrets,
+ sizeof(ssl->handshake->tls1_3_master_secrets));
+ mbedtls_platform_zeroize( &ssl->handshake->... |
Makefile: adding directory creation | @@ -64,6 +64,7 @@ $(PREFIX_O)/programs.o.cpio: $(PREFIX_O)programs.o $(BUILD_DIR)/programs.cpio
$(PREFIX_PROG)phoenix-$(TARGET).elf: $(OBJS) $(PREFIX_O)/programs.o.cpio
+ @mkdir -p $(@D)
@(printf "LD %-24s\n" "$(@F)");
$(SIL)$(LD) $(LDFLAGS) -e _start --section-start .init=$(VADDR_KERNEL_INIT) -o $(PREFIX_PROG)phoenix-... |
netutils/ftpc: ftpc_connect: Fixed invalid socket close. | @@ -73,6 +73,10 @@ SESSION ftpc_connect(FAR union ftpc_sockaddr_u *server)
session->conntimeo = CONFIG_FTP_DEFTIMEO * CLOCKS_PER_SEC;
session->pid = getpid();
+ session->cmd.sd = -1;
+ session->data.sd = -1;
+ session->dacceptor.sd = -1;
+
/* Use the default port if the user specified port number zero */
#ifdef CONFIG_... |
py/mpprint: Fix "%x" vs "%X" regression introduced in previous commit. | @@ -511,7 +511,7 @@ int mp_vprintf(const mp_print_t *print, const char *fmt, va_list args) {
break;
case 'x':
case 'X': {
- char fmt_c = 'x' - *fmt + 'A';
+ char fmt_c = *fmt - 'X' + 'A';
mp_uint_t val;
if (long_arg) {
val = va_arg(args, unsigned long int);
|
bugID:17597281:[bt] Enlarge l2cap buffer to avoid buffer exhaust corner case. | */
#ifdef BLE_APP_RECONFIG_AISILOP
#undef CONFIG_BT_L2CAP_TX_BUF_COUNT
-#define CONFIG_BT_L2CAP_TX_BUF_COUNT 2
+#define CONFIG_BT_L2CAP_TX_BUF_COUNT 5
#else
#ifdef BLE_APP_RECONFIG_MESH_SRV
#undef CONFIG_BT_L2CAP_TX_BUF_COUNT
|
Remove duplicate pk_can_do_ext test | @@ -133,10 +133,6 @@ PK can do ext: ECDH/ECDSA(ANY), check ECDSA(SHA256)+DERIVE|SIGN
depends_on:MBEDTLS_ECDSA_C:MBEDTLS_ECP_DP_SECP256R1_ENABLED
pk_can_do_ext:PSA_KEY_TYPE_ECC_KEY_PAIR(PSA_ECC_FAMILY_SECP_R1):PSA_KEY_USAGE_DERIVE|PSA_KEY_USAGE_SIGN_HASH:PSA_ALG_ECDH:PSA_ALG_ECDSA(PSA_ALG_ANY_HASH):256:PSA_ALG_ECDSA(PSA... |
Adapt scaling for SMS data | @@ -128,17 +128,9 @@ int main_nlinv(int argc, char* argv[])
#else
double scaling = 100. / md_znorm(DIMS, ksp_dims, kspace_data);
- if (1 != ksp_dims[SLICE_DIM]) { // SMS
+ if (1 != ksp_dims[SLICE_DIM]) // SMS
+ scaling *= sqrt(ksp_dims[SLICE_DIM]);
- if (conf.noncart) {
-
- scaling *= sqrt(ksp_dims[SLICE_DIM]); // Sqrt... |
Use ARRAY_LEN() macro | @@ -306,7 +306,7 @@ execute_server(struct server *server, const struct server_params *params) {
// Port: 5005
// Then click on "Debug"
#endif
- return adb_execute(server->serial, cmd, sizeof(cmd) / sizeof(cmd[0]));
+ return adb_execute(server->serial, cmd, ARRAY_LEN(cmd));
}
static socket_t
|
Remove credid from /oic/sec/sp representation
Tested-by: IoTivity Jenkins | @@ -144,11 +144,6 @@ oc_sec_decode_sp(oc_rep_t *rep, size_t device)
sp[device].supported_profiles = supported_profiles;
}
break;
- case OC_REP_INT:
- if (len == 6 && memcmp("credid", oc_string(rep->name), 6) == 0) {
- sp[device].credid = rep->value.integer;
- }
- break;
default:
return false;
break;
@@ -196,9 +191,6 @@... |
Create the (failed) summary log even when sub-make fails | @@ -30,7 +30,7 @@ DOCDIR=../../tools/doxygen
all: clean summary
doxygen:
- @make -C $(DOCDIR) 2> doxygen.err > /dev/null
+ -@$(MAKE) -C $(DOCDIR) 2> doxygen.err > /dev/null
summary: doxygen
@( \
@@ -55,4 +55,4 @@ summary: doxygen
clean:
@rm -f summary doxygen.err
- @make -C $(DOCDIR) clean
+ @$(MAKE) -C $(DOCDIR) clean... |
Getting the MinSizeRel build working for the ESP32 | $splitOption = [System.StringSplitOptions]::RemoveEmptyEntries
$cmakeOptions = $env:BUILD_OPTIONS.Split($separator, $splitOption)
- &$cmake -G Ninja "-DTOOLCHAIN_PREFIX=$env:ESP32_TOOLCHAIN_PATH" "-DESP32_IDF_PATH=$env:ESP32_IDF_PATH" "-DESP32_LIBS_PATH=$env:ESP32_LIBS_PATH" "-DCMAKE_BUILD_TYPE=Debug" $cmakeOptions "-D... |
hv: vmcs: trap CR4.SMAP/SMEP/PKE setting
FuSa requires setting CR4.SMAP/SMEP/PKE will invalidate the TLB. However,
setting CR4.SMAP will invalidate the TLB on native while not in non-root mode.
To make sure this, we will trap CR4.SMAP/SMEP/PKE setting to invalidate the TLB
in root mode.
Acked-by: Anthony Xu | CR0_NE | CR0_ET | CR0_TS | CR0_EM | CR0_MP | CR0_PE)
/* CR4 bits hv want to trap to track status change */
-#define CR4_TRAP_MASK (CR4_PSE | CR4_PAE | CR4_VMXE | CR4_PCIDE)
+#define CR4_TRAP_MASK (CR4_PSE | CR4_PAE | CR4_VMXE | CR4_PCIDE | CR4_SMEP | CR4_SMAP | CR4_PKE)
#define CR4_RESERVED_MASK ~(CR4_VME | CR4_PVI | C... |
test: only build .hoon files
Previously it would fail to build .txt files and such. Now it filters
those out and doesn't try. | loop(bez t.bez, fiz (~(put in fiz) [i.bez(s (snoc s.i.bez %hoon)) ~]))
;< fez=(list path) bind:m (list-tree:strandio i.bez)
?. =(~ fez)
- =/ foz (turn fez |=(path [[-.i.bez +<] ~]))
+ =/ foz
+ %+ murn fez
+ |= p=path
+ ?. =(%hoon (rear p)) ~
+ (some [[-.i.bez p] ~])
loop(bez t.bez, fiz (~(gas in fiz) foz))
~| bad-test-... |
sharpen the issue template | NOTE:
A new issue should be about a bug verified with a minimized example or about a new feature request.
-Randomly opened "bug" or "feature" reports to debug your setup will be closed as "invalid".
+New "bug" or "feature" reports not satisfying these requirement will be closed as "invalid".
Questions should go to the ... |
Use immintrin.h rather then emmintrin.h... | #include <hse_util/timing.h>
+#include <immintrin.h>
+
#ifndef SMP_CACHE_BYTES
#define SMP_CACHE_BYTES (64)
#endif
@@ -60,8 +62,6 @@ raw_smp_processor_id(void)
#endif
-#include <emmintrin.h>
-
static HSE_ALWAYS_INLINE void
cpu_relax(void)
{
|
Clarified CPU_MODEL_JAKETOWN. | @@ -164,7 +164,7 @@ enum {
#define CPU_MODEL_WESTMERE 0x2C ///< Gulftown, Westmere-EP, Westmere-WS
#define CPU_MODEL_WESTMERE_EX 0x2F
#define CPU_MODEL_SANDYBRIDGE 0x2A ///< Sandy Bridge
-#define CPU_MODEL_JAKETOWN 0x2D ///< Sandy Bridge Xeon
+#define CPU_MODEL_JAKETOWN 0x2D ///< Sandy Bridge Xeon E5, Core i7 Extreme
#... |
BugID:23881073: update netmgr API use | @@ -35,7 +35,7 @@ static int events_executor(input_event_t *eventinfo, void *cb_para, int flag)
case CODE_WIFI_ON_GOT_IP:
done_flag |= flag;
netmgr_deinit();
- wifi_get_ip(ips);
+ netmgr_wifi_get_ip(ips);
return 0;
}
return -1;
|
Add git rev-parse options | @@ -58,8 +58,8 @@ class CodeSizeComparison:
@staticmethod
def validate_revision(revision):
- result = subprocess.run(["git", "rev-parse", "--verify", revision],
- check=False, stdout=subprocess.PIPE)
+ result = subprocess.check_output(["git", "rev-parse", "--verify",
+ revision + "^{commit}"], shell=False)
return resul... |
OnlineChecks: Add PhGenerateRandomNumber64 | @@ -406,7 +406,7 @@ NTSTATUS UploadFileThreadStart(
// HTTP request boundary string.
postBoundary = PhFormatString(
L"--%I64u",
- (ULONG64)RtlRandomEx(&httpPostSeed) | ((ULONG64)RtlRandomEx(&httpPostSeed) << 31)
+ PhGenerateRandomNumber64()
);
if (
|
Make grammar item namings clearer. | @@ -254,9 +254,10 @@ TABLE OF CONTENTS:
3.4. Packages and Uses
+ package: "pkg" ident = decl* ";;"
+ use: bareuse | quoteuse
bareuse: use ident
quoteuse: use "<quoted string>"
- pkgdef: "pkg" ident = decl* ";;"
There are two keywords for module system. 'use' is the simpler
@@ -487,7 +488,7 @@ TABLE OF CONTENTS:
4.5. De... |
Device::setState(): clarify code, no change in logic | @@ -760,20 +760,24 @@ void Device::setState(DeviceStateHandler state, DEV_StateLevel level)
{
m_state[level](this, Event(prefix(), REventStateLeave, level, key()));
}
+
m_state[level] = state;
- if (m_state[level] && level == StateLevel0)
+
+ if (m_state[level])
+ {
+ if (level == StateLevel0)
{
// invoke the handler i... |
hslua-classes: add package description | cabal-version: 2.2
name: hslua-classes
version: 2.0.0
-synopsis: Marshaling classes for HsLua
-description: FIXME!
+synopsis: Type classes for HsLua
+description: Type classes for convenient marshalling and calling of
+ Lua functions.
homepage: https://hslua.org/
bug-reports: https://github.com/hslua/hslua/issues
licen... |
Change fix for bug with scalar inputs to power spectrum functions | @@ -104,14 +104,14 @@ def _vectorize_fn2(fn, fn_vec, cosmo, x, z, returns_status=True):
# Access ccl_cosmology object
cosmo = _cosmology_obj(cosmo)
status = 0
+ scalar = False
+ # If a scalar was passed, convert to an array
if isinstance(x, float):
- # Use single-value function
- if returns_status:
- f, status = fn(cos... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.