message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
prov: update cmac to have additional init arguments | @@ -102,22 +102,28 @@ static size_t cmac_size(void *vmacctx)
return EVP_CIPHER_CTX_block_size(CMAC_CTX_get0_cipher_ctx(macctx->ctx));
}
-static int cmac_init(void *vmacctx)
+static int cmac_setkey(struct cmac_data_st *macctx,
+ const unsigned char *key, size_t keylen)
{
- struct cmac_data_st *macctx = vmacctx;
- int rv... |
host/mesh: logging public key in big endian
Local public key has been logged in little endian but
remote public key in big endian. That has been changed.
Both are logged in big endian to be able to compare in logs.
This is port of | @@ -248,14 +248,14 @@ static void send_pub_key(void)
return;
}
- BT_DBG("Local Public Key: %s", bt_hex(key, BT_PUB_KEY_LEN));
-
bt_mesh_prov_buf_init(buf, PROV_PUB_KEY);
/* Swap X and Y halves independently to big-endian */
sys_memcpy_swap(net_buf_simple_add(buf, BT_PUB_KEY_COORD_LEN), key, BT_PUB_KEY_COORD_LEN);
sys_m... |
fixup fd leakage in libtcmu_config.c | @@ -371,13 +371,12 @@ int tcmu_load_config(struct tcmu_config *cfg, const char *path)
}
len = tcmu_read_config(fd, buf, TCMU_MAX_CFG_FILE_SIZE);
+ close(fd);
if (len < 0) {
tcmu_err("Failed to read file '%s'\n", path);
return -1;
}
- close(fd);
-
buf[len] = '\0';
tcmu_parse_options(cfg, buf, len);
|
revise tls page per reviews | @@ -6,8 +6,8 @@ title: TLS
AppScope supports TLS over TCP connections:
+- AppScope can use TLS when connecting to LogStream or another application (including its events and metrics destinations).
- LogStream can use TLS when connecting to AppScope over TCP.
-- AppScope can use TLS when connecting to LogStream or anothe... |
make =| print as =|, not ;; | [%mcnt *] (rune ';/' ~ ~ (hoons ~[p]:x))
[%mcsg *] (rune ';~' `'==' ~ (hoons [p q]:x))
[%mcmc *] (rune ';;' ~ ~ (hoons ~[p q]:x))
- [%tsbr *] (rune ';;' ~ ~ ~[(spec p.x) (hn q.x)])
+ [%tsbr *] (rune '=|' ~ ~ ~[(spec p.x) (hn q.x)])
[%tscl *] (tiscol-to-plum p.x q.x)
[%tsnt *] (rune '=/' ~ ~ (skin p.x) (hn q.x) (hn r.x)... |
UI documentation fixup | =head1 NAME
UI_UTIL_read_pw_string, UI_UTIL_read_pw,
-*UI_UTIL_wrap_read_pem_callback - user interface utilities
+UI_UTIL_wrap_read_pem_callback - user interface utilities
=head1 SYNOPSIS
@@ -13,8 +13,7 @@ UI_UTIL_read_pw_string, UI_UTIL_read_pw,
int verify);
int UI_UTIL_read_pw(char *buf, char *buff, int size, const c... |
Change identifier name | @@ -87,7 +87,7 @@ FORMS = [
('v', 'i', '_mask')
]
-BINOPS = [
+INSTRUCTIONS = [
('or', False, lambda a, b: (a | b) & 0xffffffff),
('and', False, lambda a, b: (a & b) & 0xffffffff),
('xor', False, lambda a, b: (a ^ b) & 0xffffffff),
@@ -112,7 +112,7 @@ print('# This file auto-generated by ' + sys.argv[0] + '''. Do not e... |
hardware: remove define error | #include "target.h"
-#ifdef STM32F4
-
#ifdef STM32F411
#define SYS_CLOCK_FREQ_HZ 108000000
#define PWM_CLOCK_FREQ_HZ 108000000
#endif
-#if defined(STM32F411) && defined(STM32F405)
-#error "multiple chip types (STM32F411, STM32F405) defined!"
-#endif
-
-#endif
-
#ifdef STM32F7
-
#define SYS_CLOCK_FREQ_HZ 216000000
#defi... |
py/bitbox02: bump min/max supported version to only allow v8.0.0 | @@ -144,10 +144,10 @@ OP_NOISE_MSG = b"n"
RESPONSE_SUCCESS = b"\x00"
RESPONSE_FAILURE = b"\x01"
-MIN_SUPPORTED_BITBOX02_MULTI_FIRMWARE_VERSION = semver.VersionInfo(6, 1, 0)
-MIN_SUPPORTED_BITBOX02_BTCONLY_FIRMWARE_VERSION = semver.VersionInfo(6, 1, 0)
-MIN_UNSUPPORTED_BITBOX02_MULTI_FIRMWARE_VERSION = semver.VersionInf... |
OCSP_sendreq_bio: Avoid doublefree of mem BIO | @@ -58,13 +58,11 @@ OCSP_RESPONSE *OCSP_sendreq_bio(BIO *b, const char *path, OCSP_REQUEST *req)
if (ctx == NULL)
return NULL;
mem = OSSL_HTTP_REQ_CTX_exchange(ctx);
- resp = (OCSP_RESPONSE *)
- ASN1_item_d2i_bio(ASN1_ITEM_rptr(OCSP_RESPONSE), mem, NULL);
- BIO_free(mem);
+ /* ASN1_item_d2i_bio handles NULL bio gracefu... |
experiment with commit strategy on macOS | @@ -715,7 +715,7 @@ static bool mi_os_commitx(void* addr, size_t size, bool commit, bool conservativ
}
#elif defined(__wasi__)
// WebAssembly guests can't control memory protection
- #elif defined(MAP_FIXED)
+ #elif defined(MAP_FIXED) && !defined(__APPLE__)
if (!commit) {
// use mmap with MAP_FIXED to discard the exist... |
usb_pd_alt_mode_dfp: Move pd_set_svids_discovery
Place it next to the other SVIDs accessor functions.
TEST=make buildall
BRANCH=none | @@ -442,15 +442,6 @@ void pd_set_identity_discovery(int port, enum tcpm_transmit_type type,
pd->identity_discovery = disc;
}
-void pd_set_svids_discovery(int port, enum tcpm_transmit_type type,
- enum pd_discovery_state disc)
-{
- struct pd_discovery *pd = pd_get_am_discovery(port, type);
-
- pd->svids_discovery = disc... |
buffers: fix vlib_buffer_free_no_next
Type: fix
Fixes: | @@ -838,7 +838,7 @@ vlib_buffer_free_inline (vlib_main_t * vm, u32 * buffers, u32 n_buffers,
n_queue = 0;
}
- if (flags & VLIB_BUFFER_NEXT_PRESENT)
+ if (maybe_next && (flags & VLIB_BUFFER_NEXT_PRESENT))
{
bi = next;
goto next_in_chain;
|
Fix error when passing objects as thread arguments; | @@ -230,8 +230,7 @@ void _luax_pushtype(lua_State* L, const char* type, uint64_t hash, void* object)
// Allocate userdata
Proxy* p = (Proxy*) lua_newuserdata(L, sizeof(Proxy));
- luaL_getmetatable(L, type);
- lovrAssert(lua_istable(L, -1), "Unknown type '%s' (maybe its module needs to be required)", type);
+ luaL_newme... |
Update adc.c
check fun is NULL, error | @@ -46,7 +46,7 @@ static rt_err_t _adc_control(rt_device_t dev, int cmd, void *args)
rt_err_t result = RT_EOK;
rt_adc_device_t adc = (struct rt_adc_device *)dev;
- if (adc->ops->enabled != RT_NULL)
+ if (adc->ops->enabled == RT_NULL)
{
return -RT_ENOSYS;
}
|
if color representation is not valid use RGBA | @@ -1975,6 +1975,8 @@ OutputGeometryPart::computeMesh(
MFnMesh::MColorRepresentation colorRep = MFnMesh::MColorRepresentation::kRGBA;
if(useColorRep) {
if(layerIndex < (int) colorReps.length())
+ if(colorReps[layerIndex] == MFnMesh::MColorRepresentation::kRGB
+ || colorReps[layerIndex] == MFnMesh::MColorRepresentation:... |
acl-plugin: remove the clib_warning "ACL enabling..."
It was useful for debugging once upon a time...
but time to say goodbye to it...
Also remove the warning printed when sending ACL details. | @@ -563,9 +563,6 @@ acl_hook_l2_input_classify (acl_main_t * am, u32 sw_if_index)
rv =
vnet_l2_input_classify_set_tables (sw_if_index, ip4_table_index,
ip6_table_index, ~0);
- clib_warning
- ("ACL enabling on interface sw_if_index %d, setting tables to the following: ip4: %d ip6: %d\n",
- sw_if_index, ip4_table_index, ... |
update arm docker tag #no_auto_pr | @@ -257,7 +257,7 @@ make dist-python PYPI_USERNAME=swiftnav PYPI_PASSWORD=...
The Linux ARM build of libsbp can be done through docker via the following set
of commands:
```
-docker run -v libsbp-arm-root:/root -v $PWD:/work --rm -it swiftnav/libsbp-arm:2020.05.07 libsbp-arm /bin/bash
+docker run -v libsbp-arm-root:/ro... |
hoon: add +lure, for turning a singleton into a list | |* [a=(list) b=*]
(weld a ^+(a [b]~))
::
+:: +lure: List pURE
+++ lure
+ |* a=*
+ [i=a t=~]
+::
++ fand :: all indices
~/ %fand
|= [nedl=(list) hstk=(list)]
|
lib: use new coro init api | #include <fluent-bit/flb_filter.h>
#include <fluent-bit/flb_utils.h>
#include <fluent-bit/flb_time.h>
+#include <fluent-bit/flb_coro.h>
#include <fluent-bit/flb_callback.h>
#include <signal.h>
@@ -105,7 +106,7 @@ static inline struct flb_filter_instance *filter_instance_get(flb_ctx_t *ctx,
void flb_init_env()
{
- flb_c... |
* Added no-format-truncation CC flag | @@ -109,6 +109,7 @@ list(APPEND PUB_HDRS ${CMAKE_CURRENT_SOURCE_DIR}/ejdb2.h
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu11 -fsigned-char -pedantic -Wfatal-errors -Wall -Wextra \
-Wno-sign-compare -Wno-unused-parameter -Wno-unknown-pragmas -Wno-unused-function \
+ -Wno-format-truncation \
-Wno-missing-field-initializer... |
fix: reverts | @@ -14,7 +14,7 @@ json_escape_string (size_t * output_len_p, char * input, size_t input_len)
/*
* 1st iteration, output is NULL and count extra_bytes needed for escaping
- * 2st iteration, output is not NULL, and does escaping.
+ * 2st iteration, output is not NULL, and does escaing.
*/
second_iter:
for (char * s = inp... |
uart: cleaner way of handling error in a critical section
Some critical sections have also been added, making the code more
symetric accross the similar functions.
Closes | @@ -258,7 +258,9 @@ esp_err_t uart_set_stop_bits(uart_port_t uart_num, uart_stop_bits_t stop_bit)
esp_err_t uart_get_stop_bits(uart_port_t uart_num, uart_stop_bits_t *stop_bit)
{
ESP_RETURN_ON_FALSE((uart_num < UART_NUM_MAX), ESP_FAIL, UART_TAG, "uart_num error");
+ UART_ENTER_CRITICAL(&(uart_context[uart_num].spinlock... |
Fix handling of input for kdb_close | @@ -162,7 +162,7 @@ static ERL_NIF_TERM kdb_close (ErlNifEnv * env, int argc, const ERL_NIF_TERM arg
}
if (is_null_atom (env, argv[1]))
{
- handle_resource = NULL;
+ errorKey_resource = NULL;
}
else if (!enif_get_resource (env, argv[1], KEY_RESOURCE_TYPE, (void *) &errorKey_resource))
{
|
Tests: test_settings_header_read_timeout_update adjusted. | @@ -25,10 +25,11 @@ Connection: close
self.assertEqual(resp['status'], 408, 'status header read timeout')
- @unittest.expectedFailure
def test_settings_header_read_timeout_update(self):
self.load('empty')
+ r = None
+
self.conf({'http': { 'header_read_timeout': 4 }}, 'settings')
(resp, sock) = self.http(b"""GET / HTTP/... |
runtime: TCP - increase max size of out of order queue | #define TCP_TIME_WAIT_TIMEOUT (1 * ONE_SECOND) /* FIXME: should be 8 minutes */
#define TCP_RETRANSMIT_TIMEOUT (300 * ONE_MS) /* FIXME: should be dynamic */
#define TCP_FAST_RETRANSMIT_THRESH 3
-#define TCP_OOO_MAX_SIZE 16
+#define TCP_OOO_MAX_SIZE 2048
#define TCP_RETRANSMIT_BATCH 16
/* connecion states (RFC 793 Secti... |
h2olog: always call setuid() and setgid() on privdrop | @@ -129,7 +129,6 @@ static void show_process(pid_t pid)
static void drop_root_privilege(void)
{
if (getuid() == 0) {
- if (getgid() == 0) {
const char *sudo_gid = getenv("SUDO_GID");
if (sudo_gid == NULL) {
fprintf(stderr, "Error: failed to read the SUDO_GID env variable\n");
@@ -141,11 +140,10 @@ static void drop_root... |
motorcontrol: fix incorrect cast
fixes | @@ -417,7 +417,7 @@ pbio_error_t pbio_motor_run(pbio_port_t port, int32_t speed) {
if (mtr->state == PBIO_CONTROL_TIME_BACKGROUND &&
mtr->control.action == RUN &&
- ((uint32_t) (speed * mtr->counts_per_output_unit)) == mtr->control.trajectory.w1) {
+ ((int32_t) (speed * mtr->counts_per_output_unit)) == mtr->control.tra... |
parser json REFACTOR local variable is not needed | @@ -507,7 +507,7 @@ static LY_ERR
lydjson_metadata_finish(struct lyd_json_ctx *lydctx, struct lyd_node **first_p)
{
LY_ERR ret = LY_SUCCESS;
- struct lyd_node *node, *attr, *next, *start = *first_p, *meta_iter;
+ struct lyd_node *node, *attr, *next, *meta_iter;
uint64_t instance = 0;
const char *prev = NULL;
uint32_t l... |
travis: fix pip not being found on OS X builds | @@ -108,9 +108,9 @@ before_install:
- |
if [ "${TESTS:-ON}" = "ON" ]; then
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
- export PATH="$(python -m site --user-base)/bin:$PATH"
+ export PATH="$(python2 -m site --user-base)/bin:$PATH"
fi
- travis_retry pip install --user cram==0.7
+ travis_retry pip2 install --user cram==0.7
f... |
Add (void *) for pointer cast. | @@ -1004,7 +1004,7 @@ static bool dcd_write_packet_memory_ff(tu_fifo_t * ff, uint16_t dst, uint16_t wN
{
// Since PMA can accessed only 16 bit-wise we copy the last byte again
tu_fifo_backward_read_pointer(ff, 1); // Move one byte back and copy two bytes for the PMA
- tu_fifo_read_n(ff, &pma[PMA_STRIDE*(dst>>1)], 2); /... |
Fix error reporting after ioctl() call with pg_upgrade --clone
errno was not reported correctly after attempting to clone a file,
leading to incorrect error reports. While scanning through the code, I
have not noticed any similar mistakes.
Error introduced in
Author: Justin Pryzby
Discussion:
Backpatch-through: 12 | @@ -62,9 +62,11 @@ cloneFile(const char *src, const char *dst,
if (ioctl(dest_fd, FICLONE, src_fd) < 0)
{
+ int save_errno = errno;
+
unlink(dst);
pg_fatal("error while cloning relation \"%s.%s\" (\"%s\" to \"%s\"): %s\n",
- schemaName, relName, src, dst, strerror(errno));
+ schemaName, relName, src, dst, strerror(save... |
Fix home indicator issues | @@ -51,7 +51,7 @@ import SwiftUI
sceneDelegate?.sceneStateStore.reset()
let sidebar = makeSidebarNavigation(url: nil, run: false, isShortcut: false, restoreSelection: false)
- let vc = UIHostingController(rootView: AnyView(sidebar))
+ let vc = SidebarController(rootView: AnyView(sidebar))
vc.modalTransitionStyle = .cro... |
Add minus (hyphen) as neutral letter | @@ -119,7 +119,7 @@ bool lv_bidi_letter_is_rtl(uint32_t letter)
bool lv_bidi_letter_is_neutral(uint32_t letter)
{
uint16_t i;
- static const char neutrals[] = " \t\n\r.,:;'\"`!?%/\\=()[]{}<>@#&$|";
+ static const char neutrals[] = " \t\n\r.,:;'\"`!?%/\\-=()[]{}<>@#&$|";
for(i = 0; neutrals[i] != '\0'; i++) {
if(letter ... |
fix misra 5.3: check_ignition is intended as check_started and can't be used twice | // ********************* Serial debugging *********************
-bool check_ignition(void) {
+bool check_started(void) {
return current_board->check_ignition() || ignition_can;
}
@@ -84,10 +84,10 @@ void started_interrupt_handler(uint8_t interrupt_line) {
#ifdef EON
// set power savings mode here if on EON build
- int ... |
Fix httpbin useragent response format. | if result then
p.out(result)
test.capture(
- '{\n "user-agent": "Premake/' .. _PREMAKE_VERSION .. '"\n}'
+ '{"user-agent": "Premake/' .. _PREMAKE_VERSION .. '"}'
)
else
test.fail(err);
if result then
p.out(result)
test.capture(
- '{\n "user-agent": "Premake/' .. _PREMAKE_VERSION .. '"\n}'
+ '{"user-agent": "Premake/' .... |
Fix u-boot compilation for gcc10. | @@ -80,3 +80,13 @@ diff -rupN old/u-boot-xlnx-xilinx-v2020.1/include/phy.h u-boot-xlnx-xilinx-v2020
int phy_et1011c_init(void);
int phy_lxt_init(void);
int phy_marvell_init(void);
++++ old/u-boot-xlnx-xilinx-v2020.1/scripts/dtc/dtc-lexer.l
++++ u-boot-xlnx-xilinx-v2020.1/scripts/dtc/dtc-lexer.l
+@@ -38,7 +38,6 @@
+ #in... |
usdt: Have Context::addsem_probe() nop if pid not specified
This makes bcc_usdt_addsem*() more consistent with the bcc_usdt_enable*()
interface where if a USDT::Context was not constructed with a pid the
semaphore enablement nops. | @@ -359,9 +359,13 @@ bool Context::addsem_probe(const std::string &provider_name,
int16_t val) {
Probe *found_probe = get_checked(provider_name, probe_name);
- if (found_probe != nullptr)
+ if (found_probe != nullptr) {
+ if (found_probe->need_enable())
return found_probe->add_to_semaphore(val);
+ return true;
+ }
+
re... |
Add unittest to check realm object and realm this types
Make sure that realm object and realm this types are tested.
JerryScript-DCO-1.0-Signed-off-by: Peter Gal | @@ -124,6 +124,33 @@ main (void)
jerry_release_value (object_bigint);
}
+ if (jerry_is_feature_enabled (JERRY_FEATURE_REALM))
+ {
+ jerry_value_t new_realm = jerry_create_realm ();
+ jerry_value_t old_realm = jerry_set_realm (new_realm);
+
+ jerry_type_t new_realm_type = jerry_value_get_type (new_realm);
+ TEST_ASSERT ... |
flash: smarter offsets | @@ -133,12 +133,12 @@ void flash_save(void) {
cbor_encode_profile_t(&enc, &profile);
uint32_t *proxy = (uint32_t *)buffer;
- for (int i = 0; i < PROFILE_FLASH_SIZE / 8; i++) {
+ for (int i = 0; i < (PROFILE_FLASH_SIZE / 8); i++) {
writeword(i + 256, proxy[i]);
}
}
- writeword(512, FMC_HEADER);
+ writeword(256 + (PROFIL... |
adjust regularization | @@ -336,10 +336,10 @@ namespace NKernel {
if (col <= row) {
float val = __ldg(lower + row * (row + 1) / 2 + col);
if (col == row && val <= 1e-7f) {
- val += 10.0f;
+ val += trace / pseudoRank + 0.1f;
}
if (col == row) {
- val += 0.01 * trace / pseudoRank;
+ val += 0.05f * trace / pseudoRank + 1e-20f;
}
val += col < row... |
Put the CMAKE_MODULE_PATH line before find_package(ecbuild) | # -DCMAKE_MODULE_PATH=/path/to/ecbuild/cmake
cmake_minimum_required( VERSION 3.12 FATAL_ERROR )
+
+set( CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/../ecbuild/cmake" )
find_package( ecbuild 3.4 REQUIRED )
# Initialise project
project( eccodes VERSION 2.19.0 LA... |
change post-increment to pre-increment | @@ -48,10 +48,10 @@ namespace MAT_NS_BEGIN
void addData(json& object, std::vector<::CsProtocol::Data>& data)
{
std::vector<::CsProtocol::Data>::const_iterator it;
- for (it = data.begin(); it != data.end(); it++)
+ for (it = data.begin(); it != data.end(); ++it)
{
std::map<std::string, CsProtocol::Value>::const_iterato... |
[python] compile numerics in C | @@ -95,10 +95,10 @@ macro(add_siconos_swig_sub_module fullname)
set(${COMPONENT}_SWIG_DEFS "-I${_dir};${${COMPONENT}_SWIG_DEFS}")
endforeach()
- IF(WITH_CXX OR NOT ${COMPONENT} MATCHES "numerics")
+ IF(WITH_CXX AND NOT ${COMPONENT} MATCHES "numerics")
set_source_files_properties(${swig_file}
PROPERTIES SWIG_FLAGS "${${... |
cmdline: indicate that the default value for --linux_net_ns is 'no' and correctly return tristate_t from cmdlineParseTriState() | @@ -172,18 +172,18 @@ tristate_t cmdlineParseTriState(const char* optname, const char* optarg) {
}
if ((strcasecmp(optarg, "0") == 0) || (strcasecmp(optarg, "false") == 0) ||
(strcasecmp(optarg, "n") == 0) || (strcasecmp(optarg, "no") == 0)) {
- return false;
+ return HF_NO;
}
if ((strcasecmp(optarg, "1") == 0) || (str... |
Fix circle uvs;
After changing circle scale from diameter to radius, the uvs broke,
since they are calculated from the position. | @@ -1062,7 +1062,7 @@ void lovrGraphicsArc(DrawStyle style, ArcMode mode, Material* material, mat4 tra
for (int i = 0; i <= segments; i++) {
float x = cosf(theta);
float y = sinf(theta);
- memcpy(vertices, ((float[]) { x, y, 0.f, 0.f, 0.f, 1.f, x + .5f, 1.f - (y + .5f) }), 8 * sizeof(float));
+ memcpy(vertices, ((float... |
README: fix example code
The example has regressed during the recent formatter API changes. | @@ -66,10 +66,10 @@ int main()
// Print current instruction pointer.
printf("%016" PRIX64 " ", runtime_address);
- // Format & print the binary instruction structure to human readable format
+ // Format & print the binary instruction structure to human-readable format
char buffer[256];
ZydisFormatterFormatInstruction(&... |
unix_process/socket_user.c: fix memory leaks
This commit removes heap allocations of structures that were never
freed, adds buffer deallocation to the output buffer handler, and
replaces a heap allocation in the input handler with a stack
allocation. | @@ -430,19 +430,11 @@ static void fill_v4_sockaddr(struct sockaddr_in *in, u32 address, u16 port)
static void register_descriptor_write(heap h, notifier n, descriptor f, thunk each)
{
- registration r = allocate(h, sizeof(struct registration));
- assert(r != INVALID_ADDRESS);
- r->fd = f;
- r->a = each;
notifier_regist... |
Delete underlying OpenAL source when a channel is stopped. | @@ -142,11 +142,16 @@ public:
{
clRemoveChannel(this);
- if (!openal_is_shutdown && sourceId && playing())
+ if (!openal_is_shutdown && sourceId)
+ {
+ if (playing())
{
alSourceStop(sourceId);
check("stop");
}
+ alSourcei(sourceId, AL_BUFFER, 0);
+ alDeleteSources(1, &sourceId);
+ }
sourceId = 0;
if (soundObject)
|
KDF SSH
Updated per code review. | @@ -314,17 +314,26 @@ static ACVP_RESULT acvp_kdf135_ssh_init_tc(ACVP_CTX *ctx,
unsigned int tc_id,
ACVP_CIPHER alg_id,
unsigned int sha_type,
- unsigned int sh_sec_len,
- unsigned int iv_len,
- unsigned int key_len,
+ unsigned int sh_sec_len, //bites (spec)
+ unsigned int iv_len, //bites (spec)
+ unsigned int key_len,... |
SOVERSION bump to version 2.24.7 | @@ -66,7 +66,7 @@ set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_
# set version of the library
set(LIBYANG_MAJOR_SOVERSION 2)
set(LIBYANG_MINOR_SOVERSION 24)
-set(LIBYANG_MICRO_SOVERSION 6)
+set(LIBYANG_MICRO_SOVERSION 7)
set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG_M... |
[bsp][stm32][wdt] Optimize code style. | struct stm32_wdt_obj
{
+ rt_watchdog_t watchdog;
IWDG_HandleTypeDef hiwdg;
rt_uint16_t is_start;
};
static struct stm32_wdt_obj stm32_wdt;
static struct rt_watchdog_ops ops;
-static rt_watchdog_t watchdog;
static rt_err_t wdt_init(rt_watchdog_t *wdt)
{
@@ -116,9 +116,9 @@ int rt_wdt_init(void)
ops.init = &wdt_init;
ops... |
When creating a CLIP sensor set config/on to true if not specified | @@ -428,6 +428,9 @@ int DeRestPluginPrivate::createSensor(const ApiRequest &req, ApiResponse &rsp)
}
}
+ ResourceItem *item = sensor.item(RConfigOn);
+ item->setValue(true); // default
+
//setConfig optional
if (map.contains("config"))
{
@@ -449,7 +452,7 @@ int DeRestPluginPrivate::createSensor(const ApiRequest &req, A... |
Fix "terminate process" on Windows
CloseHandle() does not terminate the process. TerminateProcess() does. | @@ -28,7 +28,7 @@ HANDLE cmd_execute(const char *path, const char *const argv[]) {
}
SDL_bool cmd_terminate(HANDLE handle) {
- return CloseHandle(handle);
+ return TerminateProcess(handle, 1) && CloseHandle(handle);
}
SDL_bool cmd_simple_wait(HANDLE handle, DWORD *exit_code) {
|
sdio_slave: fix the ret_queue crash issue when being reset by the master | @@ -965,7 +965,7 @@ static esp_err_t send_flush_data()
if (context.in_flight) {
buf_desc_t *desc = context.in_flight;
while(desc != NULL) {
- xQueueSend(context.ret_queue, desc->arg, portMAX_DELAY);
+ xQueueSend(context.ret_queue, &desc->arg, portMAX_DELAY);
last = desc;
desc = STAILQ_NEXT(desc, qe);
}
@@ -980,7 +980,7... |
lwip/dhcps: fix improper use of inet_addr() | @@ -799,17 +799,17 @@ err_t dhcps_start(struct netif *netif)
pcb_dhcps = dhcps;
if (netif->ip_addr.addr == 0) {
- netif->ip_addr.addr = inet_addr("LWIP_DHCPS_SERVER_IP");
+ netif->ip_addr.addr = inet_addr(LWIP_DHCPS_SERVER_IP);
}
if (netif->gw.addr == 0) {
- netif->gw.addr = inet_addr("LWIP_DHCPS_SERVER_IP");
+ netif->... |
Travis: Quote added path. | @@ -31,7 +31,7 @@ script:
- if [ "$TRAVIS_OS_NAME" != "windows" ]; then cmake -DCMAKE_INSTALL_PREFIX=~/tinyspline .; fi;
- cmake --build .
- cmake --build . --target install
- - if [ "$TRAVIS_OS_NAME" == "windows" ]; then export PATH=C:/tinyspline/bin:$PATH; fi;
+ - if [ "$TRAVIS_OS_NAME" == "windows" ]; then export PA... |
dev-tools/cmake: bump version to v3.11.1 | %define pname cmake
-%define major_version 3.10
-%define minor_version 2
+%define major_version 3.11
+%define minor_version 1
Summary: CMake is an open-source, cross-platform family of tools designed to build, test and package software.
Name: %{pname}%{PROJ_DELIM}
|
Initialize ruby stack. | @@ -424,6 +424,10 @@ loader_impl_data rb_loader_impl_initialize(loader_impl impl, configuration confi
log_copy(host->log);
+ /* Initialize Ruby */
+ {
+ RUBY_INIT_STACK;
+
ruby_init();
ruby_init_loadpath();
@@ -443,6 +447,7 @@ loader_impl_data rb_loader_impl_initialize(loader_impl impl, configuration confi
}
log_write(... |
configure: use sdl-config if available
+ do a full link to ensure SDL_main is resolved if needed
fixes detection on OS X | @@ -443,31 +443,54 @@ AC_ARG_ENABLE([sdl],
@<:@default=auto@:>@]))
AS_IF([test "x$enable_sdl" != "xno"], [
CLEAR_LIBVARS([SDL])
+ AC_PATH_PROGS([LIBSDL_CONFIG], [sdl-config])
+ if test -n "$LIBSDL_CONFIG"; then
+ SDL_INCLUDES=`$LIBSDL_CONFIG --cflags`
+ SDL_LIBS="`$LIBSDL_CONFIG --libs`"
+ fi
+
WITHLIB_OPTION([sdl], [S... |
[sbt] Use tools/chisel3 not rocketchip/chisel3 | @@ -79,7 +79,7 @@ def isolateAllTests(tests: Seq[TestDefinition]) = tests map { test =>
// before launching sbt if any of the firrtl source files has been updated
// The jar is dropped in chipyard's lib/ directory, which is used as the unmanagedBase
// for all subprojects
-lazy val chisel = (project in rocketChipDir / ... |
misc: configurator: Apply pattern check to IVSHMEM name
This patch applies pattern check to IVSHMEM name. Report error if regex
does not match. | </label>
</b-col>
<b-col md="4">
- <b-form-input v-model="IVSHMEM_VMO.NAME" placeholder="Any string with no white spaces."/>
+ <b-form-input :state="validateIvshrgName(IVSHMEM_VMO.NAME)" v-model="IVSHMEM_VMO.NAME" placeholder="Must be 1-27 characters and only letters, digits and '_'."/>
+ <b-form-invalid-feedback>
+ Na... |
Fix the order of freeing memory | @@ -181,13 +181,13 @@ void mpi_mod_mul( char * input_A,
}
exit:
- mbedtls_mpi_mod_modulus_free( &m );
-
mbedtls_free( rA.p );
mbedtls_free( rB.p );
mbedtls_free( rR.p );
mbedtls_free( X );
mbedtls_free( (mbedtls_mpi_uint *) m.p );
+
+ mbedtls_mpi_mod_modulus_free( &m );
}
/* END_CASE */
@@ -233,14 +233,14 @@ void mpi_m... |
Fix typing error in max calculation | @@ -1314,7 +1314,7 @@ TMetricHolder TMultiClassMetric::EvalSingleThread(
GetMultiDimensionalApprox(k, approx, approxDelta, evaluatedApprox);
double maxApprox = std::numeric_limits<double>::min();
- for (int dim = 1; dim < approxDimension; ++dim) {
+ for (int dim = 0; dim < approxDimension; ++dim) {
if (evaluatedApprox[... |
Remove unnecessary priority and stacksize setting from env for built-in task | #include <tinyara/config.h>
#include <string.h>
#include <stdio.h>
-#ifndef CONFIG_DISABLE_ENVIRON
-#include <stdlib.h>
-#endif
#include <sys/types.h>
#include <sys/boardctl.h>
#include <apps/shell/tash.h>
@@ -160,10 +157,7 @@ static int tash_help(int argc, char **args)
}
}
printf("\n");
-#ifndef CONFIG_DISABLE_ENVIRON... |
Add missing LSM cleanup hook | @@ -1472,6 +1472,8 @@ class BPF(object):
self.detach_kfunc(k)
for k, v in list(self.kfunc_exit_fds.items()):
self.detach_kretfunc(k)
+ for k, v in list(self.lsm_fds.items()):
+ self.detach_lsm(k)
# Clean up opened perf ring buffer and perf events
table_keys = list(self.tables.keys())
|
Remove the severity: fips change label if fips checksum unchanged | @@ -41,7 +41,7 @@ jobs:
run: make update-fips-checksums
working-directory: ./build-pristine
- name: make diff-fips-checksums
- run: make diff-fips-checksums || echo "fips_changed=1" >> $GITHUB_ENV
+ run: make diff-fips-checksums && echo "fips_unchanged=1" >> $GITHUB_ENV || echo "fips_changed=1" >> $GITHUB_ENV
working-d... |
graph-update: sort indices correctly | @@ -109,7 +109,7 @@ const addNodes = (json, state) => {
let parNode = graph.get(index[0]);
if (!parNode) {
console.error('parent node does not exist, cannot add child');
- return;
+ return graph;
}
parNode.children = _addNode(parNode.children, index.slice(1), node);
graph.set(index[0], parNode);
@@ -134,7 +134,7 @@ con... |
Add -debug to version on DEBUG builds | @@ -833,7 +833,13 @@ void __noreturn __nomcount main_cpu_entry(const void *fdt)
/* Call library constructors */
do_ctors();
- prlog(PR_NOTICE, "OPAL %s starting...\n", version);
+ prlog(PR_NOTICE, "OPAL %s%s starting...\n", version,
+#ifdef DEBUG
+ "-debug"
+#else
+ ""
+#endif
+ );
prlog(PR_DEBUG, "initial console log ... |
Fixed health struct size. We should really get an automated test for this | @@ -346,7 +346,7 @@ class Panda(object):
# ******************* health *******************
def health(self):
- dat = self._handle.controlRead(Panda.REQUEST_IN, 0xd2, 0, 0, 28)
+ dat = self._handle.controlRead(Panda.REQUEST_IN, 0xd2, 0, 0, 33)
a = struct.unpack("IIIIIIBBBBBBBBB", dat)
return {
"uptime": a[0],
|
Fix pure TCP/IP example | @@ -501,35 +501,31 @@ Iodine allows custom TCP/IP server authoring, for those cases where we need raw
Here's a short and sweet echo server - No HTTP, just use `telnet`:
```ruby
-
require 'iodine'
# an echo protocol with asynchronous notifications.
class EchoProtocol
# `on_message` is an optional alternative to the `on_... |
docs: Mark protocols and provisioning related chapters as updated for C6 | @@ -71,11 +71,6 @@ api-guides/general-notes
api-reference
api-reference/api-conventions
api-reference/template
-api-reference/provisioning
-api-reference/provisioning/protocomm
-api-reference/provisioning/provisioning
-api-reference/provisioning/index
-api-reference/provisioning/wifi_provisioning
api-reference/storage
... |
YAMBi: Rephrase sentence about Bison dependency | @@ -17,7 +17,7 @@ This plugin uses Bison to generate a parser for the [YAML](http://yaml.org) seri
## Dependencies
-Currently this plugin requires that you install [Bison](https://www.gnu.org/software/bison/) (3.0 or later).
+The plugin requires [Bison](https://www.gnu.org/software/bison/) (3.0 or later).
## Examples
|
schema tree FEATURE macros to go through used structures | * Data structures and functions to manipulate and access schema tree.
*/
+/**
+ * @brief Helper macro to go through 0-terminated arrays
+ *
+ * Use with opening curly bracket '{'.
+ *
+ * @param[in] ARRAY Array to go through
+ * @param[out] ITER Numeric iterator storing available indexes of the ARRAY
+ */
+#define LY_A... |
docs/library: Update pyb.SPI init method to add descr about "ti" arg. | @@ -64,6 +64,7 @@ Methods
respectively.
- ``bits`` can be 8 or 16, and is the number of bits in each transferred word.
- ``firstbit`` can be ``SPI.MSB`` or ``SPI.LSB``.
+ - ``ti`` True indicates Texas Instruments, as opposed to Motorola, signal conventions.
- ``crc`` can be None for no CRC, or a polynomial specifier.
N... |
Output bank data ptrs array | @@ -109,6 +109,11 @@ const compile = async (
// Add scene data
const scenePtrs = precompiled.sceneData.map((scene, sceneIndex) => {
+ console.log("SCENE: " + sceneIndex, {
+ imageIndex: scene.imageIndex,
+ hi: hi(scene.imageIndex),
+ lo: lo(scene.imageIndex)
+ });
return banked.push(
[].concat(
hi(scene.imageIndex),
@@... |
Scripts: Change order of columns | # parameterNumber
# # The following are optional keys
# typeOfFirstFixedSurface
-# typeOfSecondFixedSurface
-# scaledValueOfFirstFixedSurface
# scaleFactorOfFirstFixedSurface
-# scaledValueOfSecondFixedSurface
+# scaledValueOfFirstFixedSurface
+# typeOfSecondFixedSurface
# scaleFactorOfSecondFixedSurface
+# scaledValue... |
README.md: Use version 2.05.01 | @@ -28,11 +28,11 @@ Raspbian Wheezy and Qt4 is no longer maintained.
### Install deCONZ
1. Download deCONZ package
- wget http://www.dresden-elektronik.de/rpi/deconz/beta/deconz-2.04.99-qt5.deb
+ wget http://www.dresden-elektronik.de/rpi/deconz/beta/deconz-2.05.01-qt5.deb
2. Install deCONZ package
- sudo dpkg -i deconz... |
publish: add back nav for mobile on new-post | @@ -99,8 +99,13 @@ export class NewPost extends Component {
let hiddenOnPopout = (props.popout)
? "" : "dib-m dib-l dib-xl";
+ let newIndex = props.location.pathname.indexOf("/new");
+ let backHref = props.location.pathname.slice(0, newIndex);
return (
<div className="f9 h-100 relative">
+ <div className="w-100 dn-m dn... |
Check empty string before strtol()
There is no need to call strtol() if the input string is empty. | @@ -65,8 +65,12 @@ static int parse_args(struct args *args, int argc, char *argv[]) {
}
case 'p': {
char *endptr;
+ if (*optarg == '\0') {
+ SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Invalid port parameter is empty");
+ return -1;
+ }
long value = strtol(optarg, &endptr, 0);
- if (*optarg == '\0' || *endptr != '\0') ... |
Simplify travis.yml a bit
Because our build matrix has only one case we can remove the build matrix and
the environment variables. | language: python
+os: linux
-matrix:
- include:
- - os: linux
- env:
- - LUA="lua=5.3"
cache:
directories:
- hrenv
before_install:
- pip install hererocks
- - hererocks hrenv -rlatest --$LUA
+ - hererocks hrenv --luarocks=latest --lua=5.3
- source hrenv/bin/activate
install:
|
Improve software memory handling | # Copyright 2018 Eotvos Lorand University, Budapest, Hungary
from utils.codegen import format_expr, format_statement, format_declaration
+from compiler_common import unique_everseen
#[ #include "stateful_memory.h"
#[ global_state_t global_smem;
+for stype in unique_everseen(smem.smem_type for table, smem in hlir.all_me... |
Reformat CMake: Ignore deleted Google test folder | @@ -33,7 +33,6 @@ fi
for file in $(find . \( -name 'CMakeLists.txt' -or -name '*.cmake' \) -and \
\( \
-not -regex '.*build/.*' \
- -not -regex '.*gtest.*' \
-not -regex '.*cmake/Modules/FindHaskell.cmake$' \
\));
do
|
Cut out the ':' in interop runner | @@ -65,7 +65,7 @@ if [ "$ROLE" == "client" ]; then
# point to the same server.
REQS=($REQUESTS)
REQ=${REQS[0]}
- SERVER=$(echo $REQ | cut -d'/' -f3)
+ SERVER=$(echo $REQ | cut -d'/' -f3 | cut -d':' -f1)
echo "Connecting to $SERVER"
if [ "$TESTCASE" == "multiconnect" ]; then
|
Remove Desired Version From Sample
No longer necessary. | @@ -747,15 +747,6 @@ ClientLoadConfiguration(
Settings.IdleTimeoutMs = IdleTimeoutMs;
Settings.IsSet.IdleTimeoutMs = TRUE;
- //
- // Default to using the draft-29 version for now, since it's more
- // universally supported by the TLS abstractions currently.
- //
- const uint32_t Version = 0xff00001dU; // IETF draft 29
... |
wpa_supplicant/dpp: Avoid deadlock while deleting DPP task
Closes | @@ -349,9 +349,7 @@ static void esp_dpp_task(void *pvParameters )
for (;;) {
if (xQueueReceive(s_dpp_evt_queue, &evt, portMAX_DELAY) == pdTRUE) {
- if (evt->id < SIG_DPP_MAX) {
- DPP_API_LOCK();
- } else {
+ if (evt->id >= SIG_DPP_MAX) {
os_free(evt);
continue;
}
@@ -394,7 +392,6 @@ static void esp_dpp_task(void *pvPar... |
Analysis workflow, set MAKESHELL. | @@ -304,6 +304,7 @@ jobs:
sed -e 's?^SHELL =.*$??' < tests/Makefile.orig > tests/Makefile
mv xmlwf/Makefile xmlwf/Makefile.orig
sed -e 's?^SHELL =.*$??' < xmlwf/Makefile.orig > xmlwf/Makefile
+ export MAKESHELL="/bin/sh"
echo "make"
make
echo "make install"
|
move location where the EDNS is added | @@ -506,12 +506,24 @@ read_entry(FILE* in, const char* name, int *lineno, uint32_t* default_ttl,
reading_hex_ednsdata = true;
} else if(str_keyword(&parse, "HEX_EDNSDATA_END")) {
+ ldns_buffer* edns = NULL;
if (!reading_hex_ednsdata) {
error("%s line %d: HEX_EDNSDATA_END read but no"
"HEX_EDNSDATA_BEGIN keyword seen", ... |
CCode: Use C++ style loop for write direction | #include "ccode.hpp"
+
+#include <kdb.hpp>
#include <kdblogger.h>
+using namespace ckdb;
+using CppKey = kdb::Key;
+using CppKeySet = kdb::KeySet;
+
namespace
{
@@ -132,7 +138,6 @@ void readConfig (CCodeData * const mapping, KeySet * const config, Key const * c
} // end namespace
-using namespace ckdb;
extern "C" {
/**... |
tests/run-multitests.py: Flush stdout for each line of trace output. | @@ -243,6 +243,7 @@ def trace_instance_output(instance_idx, line):
if cmd_args.trace_output:
t_ms = round((time.time() - trace_t0) * 1000)
print("{:6} i{} :".format(t_ms, instance_idx), line)
+ sys.stdout.flush()
def run_test_on_instances(test_file, num_instances, instances):
|
herb: expect * rather than @ | ::
++ export-app
|= [app=@tas our=@p now=@da]
- .^(@ %gx /(scot %p our)/[app]/(scot %da now)/export/noun)
+ .^(* %gx /(scot %p our)/[app]/(scot %da now)/export/noun)
++ export-all
|= [our=@p now=@da]
- ^- (list [@tas @])
+ ^- (list [@tas *])
%+ turn
^- (list @tas)
:~ %group-store
%invite-store
%chat-store
%chat-hook
- ... |
Cache only rebinds vertex/index buffers when needed; | @@ -3609,8 +3609,16 @@ static void flushBuffers(Pass* pass, Draw* draw) {
if (draw->hash) {
cache = &pass->shapeCache[draw->hash & (COUNTOF(pass->shapeCache) - 1)];
if (cache->hash == draw->hash) {
+ if (pass->vertexBuffer != cache->vertices) {
gpu_bind_vertex_buffers(pass->stream, &cache->vertices, NULL, 0, 1);
+ pass... |
Fixed issue where malformed lightcap packet could read out of mem | @@ -1731,7 +1731,7 @@ int parse_watchman_lightcap(struct SurviveContext *ctx, const char *codename, ui
// https://en.wikipedia.org/wiki/Variable-length_quantity
uint8_t codebyte = 0;
int codelength = 0;
- while ((codebyte & 0x80) == 0) {
+ while ((codebyte & 0x80) == 0 && mptr >= readdata) {
codebyte = *(mptr--);
time_... |
Add workaround for querying immersive process heaps | #include <phsettings.h>
#include <phsvccl.h>
#include <actions.h>
+#include <appresolver.h>
#include <emenu.h>
#include <mainwnd.h>
#include <procprv.h>
@@ -345,7 +346,7 @@ PPH_STRING PhGetProcessHeapFlagsText(
if (Flags & HEAP_CREATE_ALIGN_16)
PhAppendStringBuilder2(&stringBuilder, L"Align 16, ");
if (Flags & HEAP_CRE... |
YAMBi: Check if path to Homebrew Bison exists | @@ -22,11 +22,12 @@ function (check_dependencies)
return ()
endif (NOT HAVE_CODECVT)
- if (APPLE)
- # Add path to Homebrew version of Bison
+ # Add path to Homebrew version of Bison, if it exists.
+ set (USE_HOMEBREW_BISON ${APPLE} AND EXISTS /usr/local/opt/bison)
+ if (USE_HOMEBREW_BISON)
list (APPEND CMAKE_PREFIX_PAT... |
docs: add a timebase precision section
Type: docs | @@ -239,6 +239,26 @@ reference time, at the current clock tick rate:
* c->clocks_per_second;
```
+### Timebase precision
+
+Cognoscenti may notice that vlib/clib\_time\_now(...) return a 64-bit
+floating-point value; the number of seconds since vpp started.
+
+Please see [this Wikipedia
+article](https://en.wikipedia.o... |
Fix sphere winding; | @@ -1156,7 +1156,7 @@ void lovrGraphicsSphere(Material* material, mat4 transform, int segments) {
for (int j = 0; j < segments; j++) {
uint16_t i0 = offset0 + j;
uint16_t i1 = offset1 + j;
- memcpy(indices, ((uint16_t[]) { i0, i1, i0 + 1, i1, i1 + 1, i0 + 1 }), 6 * sizeof(uint16_t));
+ memcpy(indices, ((uint16_t[]) { i... |
hw: mcu: kinetis: remove custom systick
Remove custom systick implementation and allow Kinetis MCUs to use the
existing `SysTick_Handler` implementation already available for
Cortex-M4 MCUs. | #include "mcu/cmsis_nvic.h"
#include "fsl_clock.h"
-static void
-sys_tick_handler(void)
-{
- uint32_t sr;
-
- OS_ENTER_CRITICAL(sr);
- os_time_advance(1);
-
- OS_EXIT_CRITICAL(sr);
-}
-
void
os_tick_idle(os_time_t ticks)
{
@@ -65,7 +54,6 @@ os_tick_init(uint32_t os_ticks_per_sec, int prio)
/* Set isr in vector table an... |
feat: add more fields for slack at bot.config | "dump_json": {
"filename": "dump.json",
"enable": true,
- },
- "dump_curl": {
- "filename": "dump.curl",
- "enable": false,
}
},
"discord": {
"token":"YOUR-BOT-TOKEN"
},
"slack": {
- "token":YOUR-BOT-TOKEN"
+ "app-token":"YOUR-APP-TOKEN",
+ "bot-token":"YOUR-BOT-TOKEN",
+ "client-id":"YOUR-CLIENT-ID",
+ "client-secret"... |
cleaner test for mingw as host system | @@ -33,6 +33,7 @@ m4_undefine([expat_version])
AC_CONFIG_SRCDIR([Makefile.in])
AC_CONFIG_AUX_DIR([conftools])
AC_CONFIG_MACRO_DIR([m4])
+AC_CANONICAL_HOST
AM_INIT_AUTOMAKE
@@ -130,7 +131,14 @@ AC_ARG_WITH([tests], [
AS_HELP_STRING([--without-tests], [do not build tests @<:@default=included@:>@])], [], [with_tests=yes])... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.