message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
u3: print error msg if system page size is incompatible | @@ -1075,7 +1075,15 @@ u3e_live(c3_o nuu_o, c3_c* dir_c)
{
// require that our page size is a multiple of the system page size.
//
- c3_assert(0 == (1 << (2 + u3a_page)) % sysconf(_SC_PAGESIZE));
+ {
+ size_t sys_i = sysconf(_SC_PAGESIZE);
+
+ if ( pag_siz_i % sys_i ) {
+ fprintf(stderr, "loom: incompatible system page... |
Extend the threads test to add simple fetch from multi threads
Issue suggests that doing a simple fetch from multi-threads may
result in issues so we add a test for that. | @@ -267,7 +267,7 @@ static int test_atomic(void)
static OSSL_LIB_CTX *multi_libctx = NULL;
static int multi_success;
-static void thread_multi_worker(void)
+static void thread_general_worker(void)
{
EVP_MD_CTX *mdctx = EVP_MD_CTX_new();
EVP_MD *md = EVP_MD_fetch(multi_libctx, "SHA2-256", NULL);
@@ -342,16 +342,28 @@ st... |
ssse3: improve some NEON implementations
By removing some slow implementations. | @@ -369,9 +369,6 @@ simde_mm_hadd_epi16 (simde__m128i a, simde__m128i b) {
#else
#if defined(SIMDE_ARM_NEON_A64V8_NATIVE)
return vreinterpretq_s64_s16(vpaddq_s16(simde__m128i_to_private(a).neon_i16, simde__m128i_to_private(b).neon_i16));
- #elif defined(SIMDE_ARM_NEON_A32V7_NATIVE)
- return vreinterpretq_s64_s16(vcombi... |
Add chroma channels to variance calculation. | @@ -1257,21 +1257,22 @@ static void encoder_state_init_new_frame(encoder_state_t * const state, kvz_pict
double lcu_var = pixel_var(tmp, LCU_LUMA_SIZE);
- // UNCOMMENT AND CONTINUE HERE
- /*
if (has_chroma) {
// Add chroma variance if not monochrome
int32_t c_stride = state->tile->frame->source->stride >> 1;
- kvz_pixe... |
Fix typo in nsd.conf man-page | @@ -149,7 +149,7 @@ clause. There may only be one
clause.
.TP
.B ip\-address:\fR <ip4 or ip6>[@port]
-NSD will bind to the listed ip\-address. Can be give multiple times
+NSD will bind to the listed ip\-address. Can be given multiple times
to bind multiple ip\-addresses. Optionally, a port number can be given.
If none ... |
MuPDF API changes (again...) | /*
* ipptransform utility for converting PDF and JPEG files to raster data or HP PCL.
*
- * Copyright 2016-2017 by the IEEE-ISTO Printer Working Group.
+ * Copyright 2016-2018 by the IEEE-ISTO Printer Working Group.
*
* Licensed under Apache License v2.0. See the file "LICENSE" for more
* information.
@@ -2073,8 +2073,... |
macOS: try setup-python action | @@ -69,6 +69,9 @@ jobs:
steps:
- uses: actions/checkout@v3
+ - uses: actions/setup-python@v4
+ with:
+ python-version: '3.x'
- name: Install Dependencies
run: |
@@ -77,7 +80,7 @@ jobs:
# Unlink parallel package, because of conflict with moreutils
brew unlink parallel || >&2 printf 'Unlinking parallel failed.`\n'
# Unin... |
YAwn: Check plugin code with OCLint | @@ -28,7 +28,8 @@ oclint -p "@PROJECT_BINARY_DIR@" -enable-global-analysis -enable-clang-static-an
"src/plugins/yambi/"*.cpp \
"src/plugins/yamlcpp/"*.{c,cpp} \
"src/plugins/yamlsmith/"*.{c,cpp} \
- "src/plugins/yanlr/"*.{c,cpp}
+ "src/plugins/yanlr/"*.{c,cpp} \
+ "src/plugins/yawn/"*.cpp \
exit_if_fail "OCLint found p... |
Init block_mode before decimation_mode | @@ -949,6 +949,13 @@ static void construct_block_size_descriptor_2d(
}
auto& bm = bsd.block_modes[packed_bm_idx];
+
+ bm.decimation_mode = static_cast<uint8_t>(decimation_mode);
+ bm.quant_mode = static_cast<uint8_t>(quant_mode);
+ bm.is_dual_plane = static_cast<uint8_t>(is_dual_plane);
+ bm.weight_bits = static_cast<u... |
Fix USB device leak on connection error
If sc_usb_connect() failed, then the sc_usb_device was never destroyed.
The assignment was mistakenly removed by commit | @@ -89,6 +89,8 @@ scrcpy_otg(struct scrcpy_options *options) {
goto end;
}
+ usb_device_initialized = true;
+
LOGI("USB device: %s (%04" PRIx16 ":%04" PRIx16 ") %s %s",
usb_device.serial, usb_device.vid, usb_device.pid,
usb_device.manufacturer, usb_device.product);
|
u3: updates guard-page assertion to account for variable loom sizes | @@ -590,7 +590,7 @@ _ce_patch_compose(void)
sou_w = (swu_w + (pag_wiz_i - 1)) >> u3a_page;
c3_assert( ((gar_pag_p >> u3a_page) >= nor_w)
- && ((gar_pag_p >> u3a_page) <= (u3a_pages - (sou_w + 1))) );
+ && ((gar_pag_p >> u3a_page) <= (u3P.pag_w - (sou_w + 1))) );
}
#ifdef U3_SNAPSHOT_VALIDATION
|
Add some TODO notes into init.c
We should be seeking to move the OPENSSL_init_crypto and OPENSSL_cleanup
processing into OPENSSL_CTX instead. | @@ -468,6 +468,11 @@ void OPENSSL_cleanup(void)
OPENSSL_INIT_STOP *currhandler, *lasthandler;
CRYPTO_THREAD_LOCAL key;
+ /*
+ * TODO(3.0): This function needs looking at with a view to moving most/all
+ * of this into onfree handlers in OPENSSL_CTX.
+ */
+
/* If we've not been inited then no need to deinit */
if (!base... |
npl/riot: simplify ble_npl_hw_is_in_critical()
Recently the RIOT IRQ API was extended to support irq_is_enabled(),
so time to switch away from the hacked implementation of
ble_npl_hw_is_in_critical(). | @@ -38,8 +38,6 @@ extern "C" {
typedef uint32_t ble_npl_time_t;
typedef int32_t ble_npl_stime_t;
-extern volatile int ble_npl_in_critical;
-
struct ble_npl_event {
event_callback_t e;
void *arg;
@@ -257,27 +255,19 @@ ble_npl_time_delay(ble_npl_time_t ticks)
static inline uint32_t
ble_npl_hw_enter_critical(void)
{
- uin... |
vere: make note of litte-endianness dependency | @@ -388,6 +388,8 @@ _ames_serialize_packet(u3_panc* pac_u, c3_o dop_o)
| (hed_u->rac_y << 25)
| (hed_u->enc_o << 27);
+ // XX assumes little-endian
+ //
memcpy(pac_y, &hed_w, 4);
pac = u3i_bytes(4 + sen_y + rec_y + bod_u->con_w, pac_y);
|
Fix compilation error C4576 with C++ and MSVC 2019 (19.28.29913) | @@ -285,7 +285,7 @@ typedef struct
*/
AZ_NODISCARD AZ_INLINE az_json_writer_options az_json_writer_options_default()
{
- az_json_writer_options options = (az_json_writer_options) {
+ az_json_writer_options options = {
._internal = {
.unused = false,
},
@@ -623,7 +623,7 @@ typedef struct
*/
AZ_NODISCARD AZ_INLINE az_jso... |
nat: remove unused import
Type: style | @@ -5,7 +5,6 @@ from io import BytesIO
from random import randint
import scapy.compat
-from framework import tag_fixme_vpp_workers
from framework import VppTestCase, VppTestRunner
from scapy.data import IP_PROTOS
from scapy.layers.inet import IP, TCP, UDP, ICMP, GRE
|
Remove unused code from custom_io test | @@ -230,10 +230,6 @@ int main(int argc, char **argv)
EXPECT_NOT_EQUAL(fcntl(client_to_server[0], F_SETFL, fcntl(client_to_server[0], F_GETFL) | O_NONBLOCK), -1);
EXPECT_NOT_EQUAL(fcntl(server_to_client[1], F_SETFL, fcntl(server_to_client[1], F_GETFL) | O_NONBLOCK), -1);
- struct pollfd ufds[2];
- ufds[0].fd = client_to... |
uiplib: ensure string is null-terminated when printing unspecified address | @@ -250,9 +250,11 @@ uiplib_ipaddr_snprint(char *buf, size_t size, const uip_ipaddr_t *addr)
}
}
- if(n >= size - 1) {
- buf[size - 1] = '\0';
- }
+ /*
+ * Make sure the output string is always null-terminated.
+ */
+ buf[MIN(n, size - 1)] = '\0';
+
return n;
}
/*--------------------------------------------------------... |
iOS: fix issue with crash set_sleep on SDk >= 13.2 | @@ -228,7 +228,6 @@ namespace rho {
void SystemImplIphone::getScreenSleeping(rho::apiGenerator::CMethodResult& result)
{
-
boolean ret = [[UIApplication sharedApplication] isIdleTimerDisabled] ? false : true;
result.set(ret);
//result.setError("not implemented at iOS platform");
@@ -237,7 +236,10 @@ namespace rho {
voi... |
add stub for openat syscall | @@ -264,6 +264,7 @@ struct code syscall_codes[]= {
{SYS_inotify_add_watch, "inotify_add_watch"},
{SYS_inotify_rm_watch, "inotify_rm_watch"},
{SYS_migrate_pages, "migrate_pages"},
+ {SYS_openat, "SYS_openat"},
{SYS_mkdirat, "mkdirat"},
{SYS_mknodat, "mknodat"},
{SYS_fchownat, "fchownat"},
@@ -410,7 +411,6 @@ sysreturn o... |
isOpen() should return true when db is open | @@ -52,7 +52,7 @@ namespace ARIASDK_NS_BEGIN {
m_observer->OnStorageFailed("Database is not open");
return false;
}
- return false;
+ return true;
}
OfflineStorage_SQLite::OfflineStorage_SQLite(ILogManager & logManager, IRuntimeConfig& runtimeConfig, bool inMemory)
@@ -565,7 +565,10 @@ namespace ARIASDK_NS_BEGIN {
retu... |
Add missing flags fixing the markdown parser bug | @@ -225,7 +225,7 @@ conf_data = configuration_data()
conf_data.set('URBIT_VERSION', '"0.5.1"')
osdet = build_machine.system()
-os_c_flags = []
+os_c_flags = ['-funsigned-char','-ffast-math']
os_deps = []
os_link_flags = []
|
replace localtime with localtime_r | @@ -115,8 +115,14 @@ char* getDateString() {
return NULL;
}
time_t now = time(NULL);
- struct tm* t = localtime(&now);
+ struct tm* t = secAlloc(sizeof(struct tm));
+ if (localtime_r(&now, t) == NULL) {
+ oidc_setErrnoError();
+ secFree(t);
+ return NULL;
+ }
strftime(s, 10 + 1, "%F", t);
+ secFree(t);
return s;
}
|
Add comment about setting application_name. | @@ -233,6 +233,7 @@ dbOpen(Db *this)
}
MEM_CONTEXT_END();
+ // Set application name to help identify the backup session
if (this->pgVersion >= PG_VERSION_APPLICATION_NAME)
dbExec(this, strNewFmt("set application_name = '%s'", strPtr(this->applicationName)));
}
|
Guard MSC specific stuff with _MSC_VER | # define WIN32
#endif
-#ifdef WIN32
+#ifdef _MSC_VER
# pragma warning(push)
# pragma warning(disable : 4324)
#endif
# endif /* !BUILDING_NGTCP2 */
#endif /* !defined(WIN32) */
-#ifdef WIN32
+#ifdef _MSC_VER
# define NGTCP2_ALIGN(N) __declspec(align(N))
-#else /* !WIN32 */
+#else /* !_MSC_VER */
# define NGTCP2_ALIGN(N)... |
apps/examples/elf : change priority in /micomapp/Messaging.c
change priority in /micomapp/Messaging.c | @@ -251,7 +251,7 @@ static int multicast_recv_test(void)
int recv2_pid;
int recv3_pid;
- recv1_pid = task_create("multi_recv_nonblock", TASK_PRIO - 1, STACKSIZE, multi_recv_nonblock, NULL);
+ recv1_pid = task_create("multi_recv_nonblock", TASK_PRIO, STACKSIZE, multi_recv_nonblock, NULL);
if (recv1_pid < 0) {
printf("[M... |
Suppress printf. | ::
::
?: =(`@`0 dep)
- ~&(dep-empty+hen +>.$)
+ :: ~&(dep-empty+hen +>.$)
+ +>.$
?: =(dep 0vtest) :: upstream testing
+>.$(mow ?.(ask mow :_(mow [hen %give %news dep])))
::
|
short spinners dont give miss | @@ -311,7 +311,7 @@ class Check:
hitresult = 300
elif spinner["rot count"] > spinrequired:
hitresult = 100
- elif spinner["rot count"] > 0.1 * spinrequired:
+ elif spinner["rot count"] >= 0.1 * spinrequired:
hitresult = 50
else:
hitresult = 0
|
bugfix: use size_t also when GC is enabled | @@ -262,7 +262,7 @@ void * lv_mem_realloc(void * data_p, size_t new_size)
#else /* LV_ENABLE_GC */
-void * lv_mem_realloc(void * data_p, uint32_t new_size)
+void * lv_mem_realloc(void * data_p, size_t new_size)
{
void * new_p = LV_MEM_CUSTOM_REALLOC(data_p, new_size);
if(new_p == NULL) LV_LOG_WARN("Couldn't allocate me... |
shm main BUGFIX wrong size of subscriptions in ext shm
Refs | @@ -1098,10 +1098,10 @@ sr_shmmain_ext_get_size_main_shm(sr_shm_t *shm_main, char *ext_shm_addr)
assert(oper_subs[i].xpath);
shm_size += sr_strshmlen(ext_shm_addr + oper_subs[i].xpath);
}
- shm_size += SR_SHM_SIZE(shm_mod->oper_subs * sizeof *oper_subs);
+ shm_size += SR_SHM_SIZE(shm_mod->oper_sub_count * sizeof *oper_... |
Remove duplicate assignment. | @@ -949,7 +949,7 @@ static int strip_eol(char *linebuf, int *plen, int flags)
int len = *plen;
char *p, c;
int is_eol = 0;
- p = linebuf + len - 1;
+
for (p = linebuf + len - 1; len > 0; len--, p--) {
c = *p;
if (c == '\n')
|
ipsec: fix - crash in ipsec policy cli | @@ -344,6 +344,12 @@ ipsec_policy_add_del_command_fn (vlib_main_t * vm,
ipsec_main_t *im = &ipsec_main;
ipsec_sa_t *sa = 0;
p1 = hash_get (im->sa_index_by_sa_id, p.sa_id);
+ if (!p1)
+ {
+ error =
+ clib_error_return (0, "SA with index %u not found", p.sa_id);
+ goto done;
+ }
sa = pool_elt_at_index (im->sad, p1[0]);
i... |
publish: automatically continue lists
Fixes | @@ -10,6 +10,7 @@ import CodeMirror from "codemirror";
import "codemirror/mode/markdown/markdown";
import "codemirror/addon/display/placeholder";
+import "codemirror/addon/edit/continuelist";
import "codemirror/lib/codemirror.css";
import { Box } from "@tlon/indigo-react";
@@ -54,6 +55,7 @@ export function MarkdownEdit... |
tcprtt-manpage: Add missing options (-p, -P, -a, -A) in the SYNOPSIS section of the 'tcprtt' man page | .SH NAME
tcprtt \- Trace TCP RTT of established connections. Uses Linux eBPF/bcc.
.SH SYNOPSIS
-.B tcprtt [\-h] [\-T] [\-D] [\-m] [\-i INTERVAL] [\-d DURATION] [\-b] [\-B] [\-e] [\-4 | \-6]
+.B tcprtt [\-h] [\-T] [\-D] [\-m] [\-p LPORT] [\-P RPORT] [\-a LADDR] [\-A RADDR] [\-i INTERVAL] [\-d DURATION] [\-b] [\-B] [\-e]... |
Print traceback for lua code. | @@ -1222,6 +1222,39 @@ static bool initLua(tic_mem* tic, const char* code)
return true;
}
+/*
+** Message handler which appends stract trace to exceptions.
+** This function was extractred from lua.c.
+*/
+static int msghandler (lua_State *L) {
+ const char *msg = lua_tostring(L, 1);
+ if (msg == NULL) { /* is error ob... |
Implement next_time (nextthink) exposure. | @@ -90,6 +90,7 @@ int mapstrings_entity_property(ScriptVariant **varlist, int paramCount)
"spawn_type",
"speed_multiplier",
"stall_time",
+ "think_time",
"timestamp",
"toss_time",
};
@@ -652,6 +653,13 @@ HRESULT openbor_get_entity_property(ScriptVariant **varlist , ScriptVariant **pr
break;
+ case _ENTITY_THINK_TIME:
+... |
http_client: possible buffer overflow fixed when determining last header item to be written
closes | @@ -188,6 +188,7 @@ int http_header_generate_string(http_header_handle_t header, int index, char *bu
if (siz + 1 > *buffer_len - 2) {
ret_idx = idx - 1;
+ break;
}
}
|
Fix the comments to be correct. | /* vim: set sw=2 expandtab tw=80: */
+/* This application can operate in three modes: input, output
+ * or interrupt. The mode is set as a constant in main().
+ * - Output mode uses the pin connected to LED 0 (through the led()
+ * system call interface.
+ * - Input mode uses userspace GPIO pin 0 (the 0th pin made avai... |
fbo: fix pread/pwrite return handling
pread/pwrite return -1 on failure so we need to use a ssize_t
instead of a size_t. | @@ -1107,7 +1107,7 @@ static int fbo_read(struct tcmu_device *dev, uint8_t *cdb, struct iovec *iovec,
uint64_t offset;
int length = 0;
int remaining;
- size_t ret;
+ ssize_t ret;
int rc;
// TBD: If we simulate start/stop, then fail if stopped
@@ -1165,7 +1165,7 @@ static int fbo_do_verify(struct fbo_state *state, struc... |
Mark blocking wiki documented. | @@ -2474,8 +2474,7 @@ typedef struct entity
bool hitwall; // Blcoked by wall/platform/obstacle. ~~
bool getting; // Picking up item. ~~
bool turning; // Turning around. ~~
-
- int blocking;
+ bool blocking; // In blocking state. ~~
int falling;
int running; // Flag to determine if a player is running
int ducking; // in... |
Do not decrement resolv timer if already 0 | @@ -596,7 +596,7 @@ check_entries(void)
if(namemapptr->state == STATE_NEW || namemapptr->state == STATE_ASKING) {
etimer_set(&retry, CLOCK_SECOND / 4);
if(namemapptr->state == STATE_ASKING) {
- if(--namemapptr->tmr == 0) {
+ if(namemapptr->tmr == 0 || --namemapptr->tmr == 0) {
#if RESOLV_CONF_SUPPORTS_MDNS
if(++namemap... |
schema compile BUGFIX inserting node into choice
The cases in the choice can come not only from a choice and augment, but
also from groupings. It was overlooked and internal error was reported. | @@ -4155,7 +4155,7 @@ lys_compile_node_connect(struct lysc_ctx *ctx, struct lysc_node *parent, struct
*
* @param[in] ctx Compile context.
* @param[in] node_p Node image from the parsed tree. If the case is explicit, it is the LYS_CASE node, but in case of implicit case,
- * it is the LYS_CHOICE node or LYS_AUGMENT node... |
crypto: fix coverity warnings
Type: fix | @@ -207,7 +207,6 @@ generate_digest (vlib_main_t * vm,
static int
restore_engines (u32 * engs)
{
- return 0;
vnet_crypto_main_t *cm = &crypto_main;
u32 i;
vnet_crypto_engine_t *ce;
@@ -230,7 +229,6 @@ restore_engines (u32 * engs)
static int
save_current_engines (u32 * engs)
{
- return 0;
vnet_crypto_main_t *cm = &crypt... |
Release Channels in thread.getChannel; | @@ -60,6 +60,7 @@ int l_lovrThreadGetChannel(lua_State* L) {
const char* name = luaL_checkstring(L, 1);
Channel* channel = lovrThreadGetChannel(name);
luax_pushtype(L, Channel, channel);
+ lovrRelease(&channel->ref);
return 1;
}
|
Remove useless documentation link to Solr documentation into help page | The wildcard * is also allowed, which triggers a search for any word that starts with the same characters as the ones declared in the query. <br>
For instance, searching ret* will return documents containing words such as return, retired, retreat.
</p>
-<p>
- Examples and more operators are presented here: <br/>
- <a t... |
revert literal changes | @@ -569,6 +569,7 @@ macx:TARGET = "Denarius"
macx:QMAKE_CFLAGS_THREAD += -pthread
macx:QMAKE_LFLAGS_THREAD += -pthread
macx:QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.7
+macx:QMAKE_MAC_SDK = macosx10.11
macx:QMAKE_CXXFLAGS_THREAD += -pthread
macx:QMAKE_RPATHDIR = @executable_path/../Frameworks
|
fix tuple list | @@ -14,11 +14,11 @@ class GenerateSlider:
:param radius: float, size of slider
:param scale: float, current resolution with 512x384
"""
- self.sliderborder = sliderborder
+ self.sliderborder = list(sliderborder)
self.sliderborder[0], self.sliderborder[2] = self.sliderborder[2], self.sliderborder[0]
self.sliderborder = ... |
mesh: Fix gen_prov struct definition
Remove unnecessary const keywords (the entire struct is const) and use
bool instead of u8_t for the require_link member. | @@ -1459,9 +1459,9 @@ static void gen_prov_start(struct prov_rx *rx, struct os_mbuf *buf)
}
static const struct {
- void (*const func)(struct prov_rx *rx, struct os_mbuf *buf);
- const u8_t require_link;
- const u8_t min_len;
+ void (*func)(struct prov_rx *rx, struct os_mbuf *buf);
+ bool require_link;
+ u8_t min_len;
... |
increased inbound request and ward timeouts to 5 min | @@ -463,7 +463,7 @@ _http_rec_accept(h2o_handler_t* han_u, h2o_req_t* rec_u)
req_u->tim_u = c3_malloc(sizeof(*req_u->tim_u));
req_u->tim_u->data = req_u;
uv_timer_init(u3L, req_u->tim_u);
- uv_timer_start(req_u->tim_u, _http_req_timer_cb, 30 * 1000, 0);
+ uv_timer_start(req_u->tim_u, _http_req_timer_cb, 300 * 1000, 0);... |
divide huge pages more even | @@ -385,6 +385,7 @@ static bool mi_arena_add(mi_arena_t* arena) {
// reserve at a specific numa node
int mi_reserve_huge_os_pages_at(size_t pages, int numa_node) mi_attr_noexcept {
+ if (pages==0) return 0;
if (numa_node < -1) numa_node = -1;
if (numa_node >= 0) numa_node = numa_node % _mi_os_numa_node_count();
size_t ... |
Update README for MacOS dependencies | $ sudo apt-get install gcc cmake libsdl2-dev libsdl2-mixer-dev python3 inotify-tools
```
+### MacOS
+
+```console
+$ brew install gcc cmake sdl2 sdl2_mixer python3
+```
+
### NixOS
For [NixOS] we have a development environment defined in [default.nix]
|
linux/trace: pass pcRegSz to arch_getInstrStr | @@ -448,7 +448,7 @@ static size_t arch_getPC(pid_t pid, uint64_t* pc, uint64_t* status_reg HF_ATTR_U
}
static void arch_getInstrStr(
- pid_t pid, uint64_t pc, uint64_t status_reg HF_ATTR_UNUSED, char* instr) {
+ pid_t pid, uint64_t pc, uint64_t status_reg HF_ATTR_UNUSED, size_t pcRegSz HF_ATTR_UNUSED, char* instr) {
/*... |
docker: alpine release image add libgit2, tcl, configure to work without sudo | @@ -6,14 +6,13 @@ RUN apk update \
build-base \
cmake \
curl \
- diffutils \
- file \
+ libgit2 \
git \
ninja \
- ronn \
+ tcl \
yaml-cpp-dev
-# Google Test
+# Google Test (TODO: update before 0.9.2 to gtest 1.10.0, but does not work with elektra 0.9.1)
ENV GTEST_ROOT=/opt/gtest
ARG GTEST_VER=release-1.8.1
RUN mkdir -p... |
[DeviceDrivers]Fix continuous write page bug for spi_flash_at45dbxx driver | @@ -140,12 +140,12 @@ static rt_size_t AT45DB_flash_read_page_256(rt_device_t dev, rt_off_t pos, void*
{
uint32_t index, nr;
uint8_t * read_buffer = buffer;
+ uint32_t page = pos;
nr = size;
for (index = 0; index < nr; index++)
{
- uint32_t page = pos;
uint8_t send_buffer[8];
uint32_t i;
@@ -170,12 +170,12 @@ static rt... |
grib_accessor_classes_hash declared static | @@ -678,7 +678,7 @@ static const struct accessor_class_hash classes[] =
{"reference_value_error", &grib_accessor_class_reference_value_error}
};
-const struct accessor_class_hash *
+static const struct accessor_class_hash *
grib_accessor_classes_hash (const char *str, unsigned int len)
{
register const int key = grib_a... |
Update changelog for FreeRTOS kernel update | # Change Log for Amazon FreeRTOS
+### New Features
+#### FreeRTOS Kernel V10.2.1
+- Kernel version for Amazon FreeRTOS is updated to V10.2.1.
+- Add ARM Cortex-M23 (ARMv8-M) GCC/ARMclang and IAR ports.
+- Add support to automatically switch between 32-bit and 64-bit cores to RISC-V port.
+
### Updates
-### Demo specifi... |
[dpos] bug-fix: index out of range | @@ -292,8 +292,7 @@ func (pls *pLibStatus) rollbackPreLIB(c *confirmInfo) {
pls.plib[c.BPID] = newEntry
logger.Debug().
- Str("BPID", c.BPID).Uint64("block no", newEntry[len(newEntry)-1].BlockNo).
- Int("old len", oldLen).Int("new len", purgeBeg).
+ Str("BPID", c.BPID).Int("old len", oldLen).Int("new len", purgeBeg).
M... |
add dlls to path | @@ -5,6 +5,7 @@ init:
- cmd: call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars32.bat"
- cmd: set INCLUDE=C:\Libraries\boost_1_67_0;%INCLUDE%
- cmd: set LIB=C:\Libraries\boost_1_67_0\lib32-msvc-14.1;%LIB%
+ - cmd: set PATH=C:\projects\vcf-validator\lib\windows_specific;%PATH%
... |
Add support for aes_256_gcm | @@ -34,8 +34,9 @@ struct menc_sess {
struct menc_st {
/* one SRTP session per media line */
const struct menc_sess *sess;
- uint8_t key_tx[32];
- uint8_t key_rx[32];
+ uint8_t key_tx[32+12];
+ /* base64_decoding worst case encoded 32+12 key */
+ uint8_t key_rx[46];
struct srtp *srtp_tx, *srtp_rx;
bool use_srtp;
bool go... |
Added openssl init specifying no atexit in the tcp transpoprt. | @@ -368,6 +368,12 @@ establishTlsSession(transport_t *trans)
enterCriticalSection();
if (!g_tls_calls_are_safe) goto err;
+ static int init_called = FALSE;
+ if (!init_called) {
+ OPENSSL_init_ssl(OPENSSL_INIT_NO_ATEXIT, NULL);
+ init_called = TRUE;
+ }
+
trans->net.tls.ctx = SSL_CTX_new(TLS_method());
if (!trans->net.... |
Teach OpenSSL::ParseC about OPENSSL_EXPORT and OPENSSL_EXTERN | @@ -610,6 +610,12 @@ EOF
},
},
+ # OpenSSL's declaration of externs with possible export linkage
+ # (really only relevant on Windows)
+ { regexp => qr/OPENSSL_(?:EXPORT|EXTERN)/,
+ massager => sub { return ("extern"); }
+ },
+
# Spurious stuff found in the OpenSSL headers
# Usually, these are just macros that expand t... |
Change registry for Travis CI. | @@ -35,8 +35,8 @@ env:
- DOCKER_COMPOSE_VERSION: 1.22.0
- GHR_VERSION: 0.12.0
- GIT_SUBMODULE_STRATEGY: recursive
- - IMAGE_REGISTRY: registry.hub.docker.com
- - IMAGE_NAME: registry.hub.docker.com/$TRAVIS_REPO_SLUG
+ - IMAGE_REGISTRY: registry.gitlab.com
+ - IMAGE_NAME: registry.gitlab.com/$TRAVIS_REPO_SLUG
- ARTIFACT... |
CMSIS-DSP : Disabled some tests which are not passing yet. | @@ -638,19 +638,19 @@ group Root {
cifft_noisy_64_q15:test_cifft_q15
cifft_noisy_128_q15:test_cifft_q15
cifft_noisy_256_q15:test_cifft_q15
- cifft_noisy_512_q15:test_cifft_q15
- cifft_noisy_1024_q15:test_cifft_q15
- cifft_noisy_2048_q15:test_cifft_q15
- cifft_noisy_4096_q15:test_cifft_q15
+ disabled {cifft_noisy_512_q1... |
Move contrib/python/xmpppy in deprecated | @@ -234,3 +234,8 @@ ALLOW mail/python/huge_py2 -> contrib/deprecated/python/cyordereddict
ALLOW sprav/protos/model -> contrib/deprecated/python/cyordereddict
ALLOW yql/udfs/common/python/python_arc -> contrib/deprecated/python/cyordereddict
DENY .* -> contrib/deprecated/python/cyordereddict
+
+ALLOW contrib/deprecated/... |
Make test_alloc_realloc_many_attributes() robust vs allocations | @@ -8683,7 +8683,9 @@ START_TEST(test_alloc_realloc_many_attributes)
if (_XML_Parse_SINGLE_BYTES(parser, text, strlen(text),
XML_TRUE) != XML_STATUS_ERROR)
break;
- XML_ParserReset(parser, NULL);
+ /* See comment in test_alloc_parse_xdecl() */
+ alloc_teardown();
+ alloc_setup();
}
if (i == 0)
fail("Parse succeeded des... |
os/compression/compress_read.c : Declare decompression related global variables as static
Variables for compression header and decompression buffers are used only in this
file. So declaring them as static. | * Private Declarations
****************************************************************************/
-struct s_header *compression_header;
-struct s_buffer buffers;
+static struct s_header *compression_header;
+static struct s_buffer buffers;
/****************************************************************************... |
Module api doc generator, fixing issue with negative lookback terminating at "."
There is a little regex that wraps up all the free-floating functions in the doc-block
e.g. malloc() with backticks.
in case of `redis.call()`, it used to wrap just `call()` in backticks. | @@ -20,7 +20,7 @@ def markdown(s)
# Add backquotes around RedisModule functions and type where missing.
l = l.gsub(/(?<!`)RedisModule[A-z]+(?:\*?\(\))?/){|x| "`#{x}`"}
# Add backquotes around c functions like malloc() where missing.
- l = l.gsub(/(?<![`A-z])[a-z_]+\(\)/, '`\0`')
+ l = l.gsub(/(?<![`A-z.])[a-z_]+\(\)/, ... |
rp2/modutime: time_ns is not part of Pycopy API and not available.
Fixes build error. | @@ -106,7 +106,9 @@ STATIC const mp_rom_map_elem_t mp_module_time_globals_table[] = {
{ MP_ROM_QSTR(MP_QSTR_mktime), MP_ROM_PTR(&time_mktime_obj) },
{ MP_ROM_QSTR(MP_QSTR_time), MP_ROM_PTR(&time_time_obj) },
+ #if 0
{ MP_ROM_QSTR(MP_QSTR_time_ns), MP_ROM_PTR(&mp_utime_time_ns_obj) },
+ #endif
{ MP_ROM_QSTR(MP_QSTR_slee... |
Made sure we can get time from poserdata_sync | static uint32_t PoserData_timecode(PoserData *poser_data) {
switch (poser_data->pt) {
+ case POSERDATA_SYNC:
case POSERDATA_LIGHT: {
PoserDataLight *lightData = (PoserDataLight *)poser_data;
return lightData->timecode;
@@ -26,6 +27,7 @@ static uint32_t PoserData_timecode(PoserData *poser_data) {
return imuData->timecod... |
bugfix for TCPv6 send ok when sta disconnect | @@ -1101,7 +1101,9 @@ static esp_err_t esp_netif_down_api(esp_netif_api_msg_t *msg)
esp_netif_reset_ip_info(esp_netif);
}
-
+ for(int8_t i = 0 ;i < LWIP_IPV6_NUM_ADDRESSES ;i++) {
+ netif_ip6_addr_set(lwip_netif, i, IP6_ADDR_ANY6);
+ }
netif_set_addr(lwip_netif, IP4_ADDR_ANY4, IP4_ADDR_ANY4, IP4_ADDR_ANY4);
netif_set_d... |
Fix vendor options - wrong logic for ignoring standard options... | @@ -231,7 +231,7 @@ _papplMainloopAddOptions(
if ((value = cupsGetOption(name, num_options, options)) == NULL)
continue;
- if (strcmp(name, "copies") && strcmp(name, "finishings") && strcmp(name, "media") && strcmp(name, "orientation-requested") && strcmp(name, "print-color-mode") && strcmp(name, "print-content-optimiz... |
groups: autojoin checks for group first | @@ -18,21 +18,31 @@ export class JoinScreen extends Component {
}
componentDidMount() {
- // direct join from incoming URL
- if ((this.props.ship) && (this.props.name)) {
- const incomingGroup = `${this.props.ship}/${this.props.name}`;
+ this.componentDidUpdate();
+ }
+
+ componentDidUpdate(prevProps) {
+ const { props... |
BugID:17702301: Fix Bug of AES128 CFG with Linux HAL. | * Copyright (C) 2015-2018 Alibaba Group Holding Limited
*/
-
-
#include <string.h>
#include "iot_import.h"
#include "mbedtls/aes.h"
typedef struct {
mbedtls_aes_context ctx;
uint8_t iv[16];
+ uint8_t key[16];
} platform_aes_t;
p_HAL_Aes128_t HAL_Aes128_Init(
@@ -38,6 +37,7 @@ p_HAL_Aes128_t HAL_Aes128_Init(
if (ret == ... |
add timeout for vm | @@ -159,10 +159,6 @@ namespace "config" do
#TODO: windows path way
$virtualbox_path = ENV['VBOX_MSI_INSTALL_PATH']
Rake::Task["build:sailfish:startvm"].invoke()
- #if $virtualbox_path.empty?
- # raise "Please, set VirtualBox variable environment..."
- #end
- #system("\"" + File.join($virtualbox_path, "VBoxManage.exe") ... |
Fix OSRAM and Paulmann ZigBee 3.0 lights not registering to REST-API | @@ -1188,6 +1188,18 @@ void DeRestPluginPrivate::addLightNode(const deCONZ::Node *node)
// filter for supported devices
switch (i->deviceId())
{
+ case DEV_ID_Z30_ONOFF_PLUGIN_UNIT:
+ case DEV_ID_Z30_DIMMABLE_PLUGIN_UNIT:
+ case DEV_ID_Z30_EXTENDED_COLOR_LIGHT:
+ case DEV_ID_Z30_COLOR_TEMPERATURE_LIGHT:
+ {
+ if (hasSe... |
Change default margins to 2 | @@ -16,7 +16,7 @@ static void usage() {
"Usage: tui [options] [file]\n\n"
"Options:\n"
" --margins <number> Add cosmetic margins.\n"
- " Default: 0\n"
+ " Default: 2\n"
" -h or --help Print this message and exit.\n"
);
// clang-format on
@@ -360,7 +360,7 @@ int main(int argc, char** argv) {
{"help", no_argument, 0, 'h'... |
In cpp wrapper: added saving module raw data to module class | @@ -265,15 +265,15 @@ namespace wasm3 {
module(const std::shared_ptr<M3Environment> &env, std::istream &in_wasm) {
in_wasm.unsetf(std::ios::skipws);
- std::vector<uint8_t> in_bytes;
std::copy(std::istream_iterator<uint8_t>(in_wasm),
std::istream_iterator<uint8_t>(),
- std::back_inserter(in_bytes));
- parse(env.get(), i... |
refine wording per review | @@ -10,7 +10,7 @@ See the AppScope repo to view [all issues](https://github.com/criblio/appscope/i
2021-10-05 - Maintenance Pre-Release
-- **Improvement**: [#462](https://github.com/criblio/appscope/issues/462) Add support for Unix domain sockets with new `scope relay` command.
+- **Improvement**: [#462](https://github... |
Update token security attributes | #define TOKEN_SECURITY_ATTRIBUTE_DISABLED_BY_DEFAULT 0x0008
#define TOKEN_SECURITY_ATTRIBUTE_DISABLED 0x0010
#define TOKEN_SECURITY_ATTRIBUTE_MANDATORY 0x0020
+#define TOKEN_SECURITY_ATTRIBUTE_COMPARE_IGNORE 0x0040
#define TOKEN_SECURITY_ATTRIBUTE_VALID_FLAGS ( \
TOKEN_SECURITY_ATTRIBUTE_NON_INHERITABLE | \
|
Fix cast in sctp_findassociation_ep_addr
In AF_CONN case cast to sockaddr_conn instead of sockaddr_in6 | @@ -1487,7 +1487,7 @@ sctp_findassociation_ep_addr(struct sctp_inpcb **inp_p, struct sockaddr *remote,
#endif
#if defined(__Userspace__)
case AF_CONN:
- rport = (((struct sockaddr_in6 *)remote)->sin6_port);
+ rport = (((struct sockaddr_conn *)remote)->sconn_port);
break;
#endif
default:
|
add certificate path for freebsd | #
# The clients doing the lookup need to be provided with the appropiate CA certificates:
# --tls-client-cert /usr/share/ca-certificates/mozilla
-#
+# --tls-client-cert /usr/local/share/certs
# Note: --announce is only needed when KadNode does not do the authentication.
# As an alternative, create a secret/public key v... |
Fix LWIP-socket invalid error mapping
Solves | @@ -155,20 +155,19 @@ static const int err_to_errno_table[] = {
0, /* ERR_OK 0 No error, everything OK. */
ENOMEM, /* ERR_MEM -1 Out of memory error. */
ENOBUFS, /* ERR_BUF -2 Buffer error. */
- EWOULDBLOCK, /* ERR_TIMEOUT -3 Timeout */
+ ETIMEDOUT, /* ERR_TIMEOUT -3 Timeout */
EHOSTUNREACH, /* ERR_RTE -4 Routing probl... |
Fix pointer to emulator.cc in GenerateSimFiles | @@ -90,7 +90,7 @@ object GenerateSimFiles extends App with HasGenerateSimConfig {
"/vsrc/EICG_wrapper.v",
) ++ (sim match { // simulator specific files to include
case VerilatorSimulator => Seq(
- "/project-template/csrc/emulator.cc",
+ "/csrc/emulator.cc",
"/csrc/verilator.h",
)
case VCSSimulator => Seq(
|
Unbreak build when SPIFFS_CACHE==0. | #ifndef SPIFFS_CACHE_STATS
#define SPIFFS_CACHE_STATS 1
#endif
+#else
+// No SPIFFS_CACHE, also disable SPIFFS_CACHE_WR
+#ifndef SPIFFS_CACHE_WR
+#define SPIFFS_CACHE_WR 0
+#endif
#endif
// Always check header of each accessed page to ensure consistent state.
|
Attempted to make only processor 0 have data | @@ -240,18 +240,30 @@ avtRemapFilter::Execute(void)
int size = vars->GetNumberOfTuples();
double *varsDouble = (double*) vars->GetVoidPointer(0);
double *newBuff = new double[size];
- SumDoubleArrayAcrossAllProcessors(varsDouble, newBuff, size);
+ // SumDoubleArrayAcrossAllProcessors(varsDouble, newBuff, size);
+ SumDo... |
evp: fix coverity resource leak | @@ -313,6 +313,7 @@ static EVP_PKEY_CTX *int_ctx_new(OSSL_LIB_CTX *libctx,
if (propquery != NULL) {
ret->propquery = OPENSSL_strdup(propquery);
if (ret->propquery == NULL) {
+ OPENSSL_free(ret);
EVP_KEYMGMT_free(keymgmt);
return NULL;
}
|
unify name of make command to fetch version | @@ -338,7 +338,7 @@ install_shared_libs: err all make_install_dirs
install: install_soter_headers install_themis_headers install_static_libs install_shared_libs
-get_themis_version:
+get_version:
@echo $(THEMIS_VERSION)
THEMIS_DIST_FILENAME = $(THEMIS_VERSION).tar.gz
|
lower arena reset delay | @@ -81,7 +81,7 @@ static mi_option_desc_t options[_mi_option_last] =
#endif
{ 1, UNINIT, MI_OPTION(allow_decommit) }, // decommit pages when not eager committed
{ 250, UNINIT, MI_OPTION(reset_delay) }, // reset delay in milli-seconds
- { 1000, UNINIT, MI_OPTION(arena_reset_delay) }, // reset delay in milli-seconds
+ { ... |
Remove temporary files before running script | @@ -14,6 +14,7 @@ if __platform__ is iOS:
import _codecompletion
from pyto import *
from pyto import __isMainApp__
+ import os
if __host__ is not widget:
import builtins
@@ -156,6 +157,14 @@ def run_script(path, replMode=False, debug=False, breakpoints=[]):
if arg != "":
sys.argv.append(str(arg))
+ d=os.path.expanduser... |
Wrap profilerecorder collection errors
This allows us to better figure out where these errors came from. | @@ -161,7 +161,7 @@ func (r *RecorderReconciler) Reconcile(_ context.Context, req reconcile.Request)
if err := r.client.Get(ctx, req.NamespacedName, pod); err != nil {
if kerrors.IsNotFound(err) {
if err := r.collectProfile(ctx, req.NamespacedName); err != nil {
- return reconcile.Result{}, err
+ return reconcile.Resul... |
Fix derive_discontinuous_lines_ignoring_epsilon test | @@ -472,10 +472,10 @@ void derive_discontinuous_lines_ignoring_epsilon(CuTest *tc)
CuAssertIntEquals(tc, 2, (int)ts_deboornet_num_result(&net));
TS_CALL(try, status.code, ts_deboornet_result(
&net, &result, &status))
- CuAssertDblEquals(tc, 1.0, result[0], EPSILON);
- CuAssertDblEquals(tc, 1.0, result[1], EPSILON);
- C... |
nimble/ll: Improve getting advertising and target address
aux_data pointer contains valid advertiser and directed address from the
very beggining if it is available. Later on when getting address let's
make use of it and do not try to parse packet unless this is empty
beacon | @@ -1922,6 +1922,27 @@ ble_ll_scan_get_addr_from_ext_adv(uint8_t *rxbuf, struct ble_mbuf_hdr *ble_hdr,
return -1;
}
+ if (aux_data) {
+ /* If address has been provided, we do have it already in aux_data.*/
+ if (aux_data->flags & BLE_LL_AUX_HAS_ADDRA) {
+ *addr = aux_data->addr;
+ *addr_type = aux_data->addr_type;
+ }
... |
Tests: removed misleading comments in test_routing.t. | @@ -1993,12 +1993,12 @@ class TestRouting(TestApplicationProto):
self.get(url='/?Foo=bar')['status'],
404,
'match arguments case sensitive',
- ) # FAIL
+ )
self.assertEqual(
self.get(url='/?foo=Bar')['status'],
404,
'match arguments case sensitive 2',
- ) # FAIL
+ )
self.assertEqual(
self.get(url='/?foo=bar1')['status'... |
[catboost/tutorials] just comment -> just comment out | @@ -11,7 +11,7 @@ public class CatBoost4jPredictionTutorial {
// Load "adult.cbm" model that we trained withing Jupyter Notebook
adultModel = CatBoostModel.loadModel(ClassLoader.getSystemResourceAsStream("models/adult.cbm"));
- // You can also try to load your own model just comment the line above and uncomment two lin... |
imxrt1020-evk: Add download support for smartfs image
This patch adds support for downloading the smartfs image
onto the board. | @@ -98,6 +98,7 @@ function get_executable_name()
app) echo "tinyara_user.bin";;
micom) echo "micom";;
wifi) echo "wifi";;
+ userfs) echo "imxrt1020-evk_smartfs.bin";;
*) echo "No Binary Match"
exit 1
esac
@@ -111,6 +112,14 @@ function get_partition_index()
app | App | APP) echo "1";;
micom | Micom | MICOM) echo "2";;
w... |
Also clean src/utils/htslib/config.h
When built within bedtools, usually HTSlib's configure script will not
have been used (as detected via config.mk not existing), so clean should
also remove the generated config.h. | @@ -197,10 +197,13 @@ $(UTIL_SUBDIRS) $(SUBDIRS): $(OBJ_DIR) $(BIN_DIR)
@echo "- Building in $@"
@$(MAKE) --no-print-directory --directory=$@
+# Usually HTSlib's configure script has not been used (detected via config.mk
+# not existing), so clean should also remove the generated config.h.
clean:
@echo " * Cleaning up.... |
VERSION bump to version 0.12.46 | @@ -34,7 +34,7 @@ set(CMAKE_C_FLAGS_DEBUG "-g -O0")
# set version
set(LIBNETCONF2_MAJOR_VERSION 0)
set(LIBNETCONF2_MINOR_VERSION 12)
-set(LIBNETCONF2_MICRO_VERSION 45)
+set(LIBNETCONF2_MICRO_VERSION 46)
set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION}.${LIBNETCONF2_MICRO_VERSION})
set(L... |
unified_serial: fix RX_STATUS_DETECTED | @@ -26,7 +26,8 @@ typedef enum {
RX_STATUS_NONE = 0,
RX_STATUS_DETECTING = 100,
// RX_STATUS_DETECTING + RX_SERIAL_PROTOCOL_X = detecting proto X
- RX_STATUS_DETECTED = 200 + RX_SERIAL_PROTOCOL_MAX,
+ RX_STATUS_DETECTED = 200,
+ // RX_STATUS_DETECTED + RX_SERIAL_PROTOCOL_X = detected proto X
} rx_status_t;
void rx_seri... |
Tidied comments in halt.c. | @@ -32,10 +32,6 @@ int fiNumHalts(HALT *halt,MODULE *module,int iBody) {
iNumHalts++;
if (halt->bPosDeDt)
iNumHalts++;
-/* XXX not implemented yet.
- if (halt->dMinIntEn > 0)
- iNumHalts++;
-*/
for (iModule=0;iModule<module->iNumModules[iBody];iModule++)
module->fnCountHalts[iBody][iModule](halt,&iNumHalts);
@@ -77,7 +... |
Add devicename (ConBee, RaspBee, ...) to unauthorized config response | @@ -701,6 +701,10 @@ void DeRestPluginPrivate::basicConfigToMap(QVariantMap &map)
map["apiversion"] = QString(GW_API_VERSION);
map["name"] = gwName;
map["starterkitid"] = QLatin1String("");
+ if (!gwDeviceName.isEmpty())
+ {
+ map["devicename"] = gwDeviceName;
+ }
}
/*! GET /api/<apikey>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.