message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
the short address is txed in the correct order | @@ -211,8 +211,8 @@ owerror_t openserial_printData(uint8_t* buffer, uint8_t length) {
openserial_vars.outputBufFilled = TRUE;
outputHdlcOpen();
outputHdlcWrite(SERFRAME_MOTE2PC_DATA);
- outputHdlcWrite(idmanager_getMyID(ADDR_16B)->addr_16b[1]);
outputHdlcWrite(idmanager_getMyID(ADDR_16B)->addr_16b[0]);
+ outputHdlcWrit... |
Normalize path in 'getfileinfo' for local host. | if info.what == "C" then
return "C function"
else
- return string.format("%s(%d)", info.short_src, info.currentline)
+ local sep = iif(os.ishost('windows'), '\\', '/')
+ return string.format("%s(%d)", path.translate(info.short_src, sep), info.currentline)
end
end
|
lovr.graphics.newShader accepts Blobs; | @@ -1031,15 +1031,21 @@ int l_lovrGraphicsNewModel(lua_State* L) {
}
int l_lovrGraphicsNewShader(lua_State* L) {
- for (int i = 0; i < 2; i++) {
- if (lua_isnoneornil(L, i + 1)) continue;
- const char* source = luaL_checkstring(L, i + 1);
+ for (int i = 1; i <= 2; i++) {
+ if (lua_isnoneornil(L, i)) continue;
+ Blob** ... |
OcAppleBootPolicyLib: Initial fix to multiple os | @@ -924,6 +924,7 @@ BootPolicyGetBootFileEx (
)
{
EFI_STATUS Status;
+ EFI_STATUS TmpStatus;
EFI_SIMPLE_FILE_SYSTEM_PROTOCOL *FileSystem;
EFI_FILE_PROTOCOL *Root;
@@ -953,10 +954,14 @@ BootPolicyGetBootFileEx (
if (!EFI_ERROR (Status)) {
Status = EFI_NOT_FOUND;
if ((VolumeInfo->Role & APPLE_APFS_VOLUME_ROLE_PREBOOT) !=... |
dwarf: error in unmap size arguments
This patch fixes an error in the unmapping of
hash table memory when the dwarf hash table is resized. | @@ -524,9 +524,11 @@ dwarf_flush_rs_cache (struct dwarf_rs_cache *cache)
cache->log_size = DWARF_DEFAULT_LOG_UNW_CACHE_SIZE;
} else {
if (cache->hash && cache->hash != cache->default_hash)
- munmap(cache->hash, DWARF_UNW_HASH_SIZE(cache->prev_log_size));
+ munmap(cache->hash, DWARF_UNW_HASH_SIZE(cache->prev_log_size)
+... |
Cavium OcteonTX: cache line fix
According to Nitin Saxena ThunderX2 machine has 64B cache line whilst
all others are 128B. According to Damjan, Nitin's previous patch broke
compilation for all non-Cavium machines. This patch should make
everything happy again. | @@ -32,11 +32,15 @@ if(CMAKE_SYSTEM_PROCESSOR MATCHES "^(aarch64.*|AARCH64.*)")
endforeach()
# Implementer 0x43 - Cavium
# Part 0x0af - ThunderX2 is 64B, rest all are 128B
- if (${CPU_IMPLEMENTER} STREQUAL "0x43" AND ${CPU_PART} STREQUAL "0x0af")
+ if (${CPU_IMPLEMENTER} STREQUAL "0x43")
+ if (${CPU_PART} STREQUAL "0x0... |
[Kernel] Neuture kernel-mode annotated prints
These cause crashes on real hardware | @@ -316,6 +316,7 @@ int printk(const char* format, ...) {
}
static int print_annotated_common(print_destination dest, const char* prefix, const char* suffix, const char* format, va_list va) {
+ return 0;
int total_len = 0;
total_len += print_common(dest, prefix, NULL);
@@ -327,6 +328,7 @@ static int print_annotated_com... |
CCode: Simplify code | @@ -75,18 +75,15 @@ int elektraCcodeOpen (Plugin * handle, Key * key ELEKTRA_UNUSED)
d->decode['\''] = '\'';
d->decode['"'] = '\"';
d->decode['0'] = '\0';
+
+ return 0;
}
- else
- {
+
Key * cur = 0;
while ((cur = ksNext (config)) != 0)
{
- /* ignore all keys not direct below */
- if (keyRel (root, cur) == 1)
- {
- /* i... |
Add doxygen for ttrace APIs | @@ -109,10 +109,53 @@ struct trace_packet { // total 44 byte(message), 12byte(uid)
#if defined(__cplusplus)
extern "C" {
#endif
+
+/**
+ * @ingroup TTRACE_LIBC
+ * @brief writes a trace log with string to indicate that a event has begun
+ * @param[in] number for tag
+ * @param[in] unique strings like function name for ... |
MEMFS: no need to use binary mode for output | @@ -69,7 +69,7 @@ for directory in dirs:
fcount += 1
opath = get_outfile_name(output_file_base, fcount)
print("MEMFS: Generating output:", opath)
- buffer = open(opath, 'wb')
+ buffer = open(opath, "w")
full = "%s/%s" % (dirpath, name)
_, ext = os.path.splitext(full)
@@ -89,7 +89,7 @@ for directory in dirs:
SIZES[name]... |
[numerics] Set MIN_RELATIVE_SCALING to sqrt(DBL_EPSILON). | /* #define DEBUG_MESSAGES */
#include "siconos_debug.h"
-#define MIN_RELATIVE_SCALING 1e300
+#define MIN_RELATIVE_SCALING sqrt(DBL_EPSILON)
int gfc3d_compute_error(GlobalFrictionContactProblem* problem,
double* reaction, double* velocity,
@@ -296,6 +296,7 @@ int gfc3d_compute_error_convex(GlobalFrictionContactProblem* ... |
New attack collision command accepts legacy burn, freeze, shock, and steal types. Only changes the type applied - not behavior. | @@ -11061,7 +11061,29 @@ s_model *load_cached_model(char *name, char *owner, char unload)
attack.steal = GET_INT_ARG(1);
break;
case CMD_MODEL_COLLISION_DAMAGE_TYPE:
- attack.attack_type = GET_INT_ARG(1);
+
+ value = GET_ARG(1);
+
+ if (stricmp(value, "burn") == 0)
+ {
+ attack.attack_type = ATK_BURN;
+ }
+ else if(str... |
VERSION bump to version 2.2.19 | @@ -65,7 +65,7 @@ endif()
# micro version is changed with a set of small changes or bugfixes anywhere in the project.
set(SYSREPO_MAJOR_VERSION 2)
set(SYSREPO_MINOR_VERSION 2)
-set(SYSREPO_MICRO_VERSION 18)
+set(SYSREPO_MICRO_VERSION 19)
set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI... |
Avoid clipboard synchronization loop
The Android device listens for clipboard changes to synchronize with the
computer clipboard.
However, if the change comes from scrcpy (for example via Ctrl+Shift+v),
do not notify the change. | @@ -13,6 +13,8 @@ import android.os.IBinder;
import android.view.IRotationWatcher;
import android.view.InputEvent;
+import java.util.concurrent.atomic.AtomicBoolean;
+
public final class Device {
public static final int POWER_MODE_OFF = SurfaceControl.POWER_MODE_OFF;
@@ -31,6 +33,7 @@ public final class Device {
privat... |
fixed dipdap boards entries to test info
Affected: lpc11u35_dipdap_sdt52832b_if lpc11u35_dipdap_sdt32429b_if lpc11u35_dipdap_sdt32439b_if lpc11u35_dipdap_std64b_if lpc11u35_dipdap_sdt51822b_if | @@ -95,9 +95,11 @@ PROJECT_RELEASE_INFO = {
('lpc11u35_mtb_wise1570_if', False, 0x0000, "bin" ),
('lpc11u35_mtb_laird_bl652_if', False, 0x0000, "bin" ),
('lpc11u35_mtb_usi_wm_bn_bm_22_if', False, 0x0000, "bin" ),
- ('lpc11u35_dipdap_nrf52832_if', False, 0x0000, "bin" ),
- ('lpc11u35_dipdap_stm32f429zi_if', False, 0x000... |
network/netmgr: fix svace issue 637315
fix svace issue 637315 | @@ -91,6 +91,7 @@ int netdev_req_handle(const char *msg, size_t msg_len)
switch (dev->type) {
case NM_WIFI:
*res = netdev_handle_wifi(dev, lmsg->req_type, lmsg->data, lmsg->data_len);
+ break;
case NM_ETHERNET:
*res = netdev_handle_ethernet(dev, lmsg->req_type, lmsg->data, lmsg->data_len);
break;
|
docs: update helper functions of BPF_PROG_TYPE_SOCKET_FILTER | @@ -292,7 +292,7 @@ The list of program types and supported helper functions can be retrieved with:
|Program Type| Helper Functions|
|------------|-----------------|
-|`BPF_PROG_TYPE_SOCKET_FILTER`|`BPF_FUNC_get_current_uid_gid()` <br> `Base functions`|
+|`BPF_PROG_TYPE_SOCKET_FILTER`|`BPF_FUNC_skb_load_bytes()` <br> `... |
{AH} add htslib conda dependencies explicitely to install section | @@ -26,7 +26,7 @@ bash Miniconda3.sh -b
# Create a new conda environment with the target python version
~/miniconda3/bin/conda install conda-build -y
-~/miniconda3/bin/conda create -q -y --name testenv python=$CONDA_PY cython numpy pytest psutil pip xz curl bzip2
+~/miniconda3/bin/conda create -q -y --name testenv pyth... |
[fal] PKG_USING_FAL -> RT_USING_FAL | #ifdef BSP_USING_ON_CHIP_FLASH
#include "drv_flash.h"
-#if defined(PKG_USING_FAL)
+#if defined(RT_USING_FAL)
#include "fal.h"
#endif
@@ -171,7 +171,7 @@ __exit:
return size;
}
-#if defined(PKG_USING_FAL)
+#if defined(RT_USING_FAL)
static int fal_flash_read(long offset, rt_uint8_t *buf, rt_uint32_t size);
static int fal... |
khan: fix pointer reference
Using offsetof is very gross and probably suggests something is wrong
somewhere. Maybe we should store the server configuration on a separate
object from the khan configuration? But in the case of khan there isn't
really a concept of multiple servers...
N.B. We still have memory corruption. | @@ -95,11 +95,11 @@ _khan_read_cb(uv_stream_t* cli_u, ssize_t red_i, const uv_buf_t* buf_u)
static void
_khan_conn_cb(uv_stream_t* sem_u, c3_i tas_i)
{
- u3_khan* cop_u = (u3_khan*)sem_u;
+ u3_khan* cop_u = (u3_khan*)(sem_u - offsetof(u3_khan, pyp_u));
u3_chan* can_u;
c3_i err_i;
- can_u = c3_malloc(sizeof(u3_chan));
+... |
Add missing fclose state | @@ -1746,6 +1746,7 @@ static void libc_stdio_freopen_tc(void)
/* A case with NULL filename, valid stream and mode flag */
fp = freopen(NULL, "r", fp);
+ fclose(fp);
TC_ASSERT_NEQ("freopen", fp, NULL);
/* A negative case with NULL path, valid stream and invalid mode. It will return NULL */
|
core: list: removed flawed condition in mk_list_entry_is_orphan | @@ -175,8 +175,7 @@ static inline void mk_list_entry_init(struct mk_list *list)
static inline int mk_list_entry_is_orphan(struct mk_list *head)
{
if (head->next != NULL &&
- head->prev != NULL &&
- head->next != head->prev) {
+ head->prev != NULL) {
return MK_FALSE;
}
|
Darn it, missed another mis-spell of rxml (was rexml). | @@ -27,7 +27,7 @@ VALUE rxml_wrap_schema_element(xmlSchemaElementPtr xelem)
return class;
}
-static VALUE rexml_schema_element_node(VALUE self)
+static VALUE rxml_schema_element_node(VALUE self)
{
xmlSchemaElementPtr xelem;
@@ -36,7 +36,7 @@ static VALUE rexml_schema_element_node(VALUE self)
return rxml_node_wrap(xelem... |
engine: on shutdown, stop stream processor before plugins | @@ -473,7 +473,6 @@ int flb_engine_start(struct flb_config *config)
/* Signal that we have started */
flb_engine_started(config);
-
while (1) {
mk_event_wait(evl);
mk_event_foreach(event, evl) {
@@ -536,6 +535,12 @@ int flb_engine_shutdown(struct flb_config *config)
config->is_running = FLB_FALSE;
flb_input_pause_all(c... |
Correct typo in LMS config check | #endif
#if defined(MBEDTLS_LMS_C) && \
- ! ( defined(MBEDTLS_PSA_CRYPTO_C) && defined(PSA_WANT_ALG_SHA256) )
-#error "MBEDTLS_LMS_C requires MBEDTLS_PSA_CRYPTO_C and PSA_WANT_ALG_SHA256"
+ ! ( defined(MBEDTLS_PSA_CRYPTO_C) && defined(PSA_WANT_ALG_SHA_256) )
+#error "MBEDTLS_LMS_C requires MBEDTLS_PSA_CRYPTO_C and PSA_W... |
add nfs v3 support to nfsdist.py
add nfs v3 support to nfsdist.py | @@ -137,16 +137,21 @@ b = BPF(text=bpf_text)
# common file functions
b.attach_kprobe(event="nfs_file_read", fn_name="trace_entry")
b.attach_kprobe(event="nfs_file_write", fn_name="trace_entry")
-b.attach_kprobe(event="nfs4_file_open", fn_name="trace_entry")
b.attach_kprobe(event="nfs_file_open", fn_name="trace_entry")
... |
Update header guards IEEE802154.h | -#ifndef __IEEE802154_H
-#define __IEEE802154_H
+#ifndef OPENWSN_IEEE802154_H
+#define OPENWSN_IEEE802154_H
/**
\addtogroup MAClow
@@ -162,4 +162,4 @@ void ieee802154_retrieveHeader (OpenQueueEntry_t* msg,
\}
*/
-#endif
+#endif /* OPENWSN_IEEE802154_H */
|
Use printer serial number, if available. | @@ -168,12 +168,17 @@ _papplPrinterRegisterDNSSDNoLock(
// Rename the service as needed...
if (printer->dns_sd_collision)
{
- char new_dns_sd_name[256]; /* New DNS-SD name */
+ char new_dns_sd_name[256]; // New DNS-SD name
+ const char *serial = strstr(printer->device_uri, "?serial=");
+ // Serial number
const char *uu... |
new sedem tool
Note: mandatory check (NEED_CHECK) was skipped | },
"sedem": {
"formula": {
- "sandbox_id": 492221962,
+ "sandbox_id": 492340123,
"match": "SEDEM archive"
},
|
Add documentation for rename workspace | @@ -223,6 +223,9 @@ set|plus|minus <amount>
*reload*
Reloads the sway config file and applies any changes.
+*rename workspace* [<old_name>] to <new_name>
+ Rename either <old_name> or the focused workspace to the <new_name>
+
*resize* shrink|grow width|height [<amount> [px|ppt]]
Resizes the currently focused container ... |
OcBootManagementLib: Fix the use of uninitialised value | @@ -82,6 +82,7 @@ ExpandShortFormBootPath (
// volume.
//
PrevDevicePath = NULL;
+ IsDirectory = FALSE;
do {
FullDevicePath = OcGetNextLoadOptionDevicePath (
DevicePath,
|
add bsp/ls2k window compilation instructions | @@ -9,7 +9,7 @@ from building import *
TARGET = 'rtthread.' + rtconfig.TARGET_EXT
-rtconfig.AFLAGS += ' -I' + str(Dir('#'))
+rtconfig.AFLAGS += ' -I' + str(Dir('#')) + ' -I ' + RTT_ROOT + '/libcpu/mips/common/'
DefaultEnvironment(tools=[])
env = Environment(tools = ['mingw'],
|
Add attack type member. | @@ -1656,6 +1656,7 @@ typedef struct s_damage_recursive
int rate; // Tick delay.
unsigned int tick; // Time of next tick.
unsigned int time; // Time to expire.
+ int type; // Attack type.
struct entity *owner; // Entity that caused the recursive damage.
struct s_damage_recursive *next; // Next node of linked list.
} s_... |
[NFSU] framelimit bugfix | @@ -1028,7 +1028,15 @@ void Init()
injector::WriteMemory(dword_40A744, FrameTime, true);
// something related to framerate and/or seconds. This value has to be an integer multiple of 60, otherwise the game can freeze. This affects some gameplay features such as NOS and menus.
uint32_t* dword_6CC8B0 = *hook::pattern("83... |
ci: tell AppVeyor to generate Windows installers
With this patch, AppVeyor automatically generates Windows installers
on each CI build. Something like below:
td-agent-bit-1.1.0-win32.exe
td-agent-bit-1.1.0-win64.exe
These installers are downloadable from the "Artifacts" tab in the
build detail page, and retained for 6 ... | @@ -7,8 +7,7 @@ platform:
- x64
configuration:
- - Debug
- # - Release # TODO
+ - Release
before_build:
- cmd: if "%platform%"=="Win32" set msvc=Visual Studio 15 2017
@@ -16,3 +15,9 @@ before_build:
build_script:
- powershell ".\ci\do-ut.ps1;exit $LASTEXITCODE"
+ - cd build
+ - cpack -C "%configuration%"
+
+artifacts:
... |
libcupsfilters: Add page log message in rastertops() filter function | @@ -60,6 +60,8 @@ writeStartPage(int page, /* I - Page to write */
int length, /* I - Page length in points */
rastertops_doc_t *doc) /* I - Document information */
{
+ if (doc->logfunc) doc->logfunc(doc->logdata, FILTER_LOGLEVEL_CONTROL,
+ "PAGE: %d %d\n", page, 1);
fprintf(doc->outputfp, "%%%%Page: %d %d\n", page, pa... |
BugID:2484327:fix gpio_map table declaration for stm32f429zi-necleo | @@ -44,12 +44,12 @@ uart_dev_t uart_0;
const gpio_mapping_t gpio_mapping_table[TOTAL_GPIO_NUM] =
{
- {ON_BOARD_LED01, GPIOB, GPIO_PIN_0, /*IRQ_NULL,*/GPIO_SPEED_FREQ_LOW, GPIO_PULLUP},
- {ON_BOARD_LED02, GPIOB, GPIO_PIN_7, /*IRQ_NULL,*/GPIO_SPEED_FREQ_LOW, GPIO_PULLUP},
- {ON_BOARD_LED03, GPIOB, GPIO_PIN_14, /*IRQ_NULL... |
gfni: remove erroneous semicolons from a couple macro definitions | @@ -464,7 +464,7 @@ simde__m128i simde_mm_gf2p8mul_epi8 (simde__m128i a, simde__m128i b) {
#endif
}
#if defined(SIMDE_X86_GFNI_NATIVE) && defined(SIMDE_X86_AVX512VL_NATIVE)
- #define simde_mm_gf2p8mul_epi8(a, b) _mm_gf2p8mul_epi8(a, b);
+ #define simde_mm_gf2p8mul_epi8(a, b) _mm_gf2p8mul_epi8(a, b)
#endif
#if defined(S... |
Update README.md for 2.0 release | @@ -25,17 +25,6 @@ This project is licensed under the Apache 2.0 license. By downloading any
component from this repository you acknowledge that you accept terms specified
in the [LICENSE.txt](LICENSE.txt) file.
-# Branches
-
-The `master` branch is an active development branch for the next major release
-of the compre... |
may use ==. typo. | @@ -584,7 +584,7 @@ int h2o_hpack_parse_response_headers(h2o_mem_pool_t *pool, int *status, h2o_head
h2o_hpack_header_table_t *header_table, const uint8_t *src, size_t len, const char **err_desc)
{
assert(*status == 0);
- assert(*content_length = SIZE_MAX);
+ assert(*content_length == SIZE_MAX);
const uint8_t *src_end ... |
add sm_30 to default NVPTX gpus, also add gpus that are the default set in CMakeLists.txt for building nvptx deviceRTLS | @@ -80,8 +80,6 @@ AOMP_STANDALONE_BUILD=${AOMP_STANDALONE_BUILD:-1}
if [ "$AOMP_PROC" == "ppc64le" ] ; then
AOMP_BUILD_CUDA=1
AOMP_STANDALONE_BUILD=1
-else
- AOMP_BUILD_CUDA=0
fi
if [ $AOMP_STANDALONE_BUILD == 1 ] ; then
# Default is to build nvptx for STANDALONE build
@@ -118,7 +116,7 @@ fi
# Set list of default nvptx... |
improve and add comments to matrix decompositions | @@ -328,6 +328,7 @@ glm_uniscaled(mat4 m) {
/*!
* @brief decompose rotation matrix (mat4) and scale vector [Sx, Sy, Sz]
+ * DON'T pass projected matrix here
*
* @param[in] m affine transform
* @param[out] r rotation matrix
@@ -352,18 +353,21 @@ glm_decompose_rs(mat4 m, mat4 r, vec3 s) {
glm_vec4_scale(r[1], 1.0f/s[1], ... |
updated `qt.qrc` rule
The rule should now be able to cache resources files version and rebuild resources if something changed. | @@ -57,6 +57,14 @@ rule("qt.qrc")
batchcmds:vrunv(rcc, {"-name", path.basename(sourcefile_qrc), sourcefile_qrc, "-o", sourcefile_cpp})
batchcmds:compile(sourcefile_cpp, objectfile)
+ -- get qrc resources files
+ local outdata = os.iorunv(rcc, {"-name", path.basename(sourcefile_qrc), sourcefile_qrc, "-list"})
+
+ -- add... |
Use UINT64_MAX instead of defining case-specific sentinel | * up to how many RETIRE_CONNECTION_IDs to keep for retransmission
*/
#define QUICLY_RETIRE_CONNECTION_ID_LIMIT (QUICLY_LOCAL_ACTIVE_CONNECTION_ID_LIMIT * 2)
-/**
- * indicates there's nothing to send in this retire CID slot
- * see quicly_conn_t::egress::retire_cid
- */
-#define QUICLY_PENDING_RETIRE_CID_EMPTY UINT64_M... |
Silence unused parameter warning in gumbo_debug() function
When compiling without GUMBO_DEBUG defined. | @@ -82,5 +82,5 @@ void gumbo_debug(const char* format, ...) {
fflush(stdout);
}
#else
-void gumbo_debug(const char* format, ...) {}
+void gumbo_debug(const char* UNUSED(format), ...) {}
#endif
|
YAML CPP: Simplify code to determine array index | @@ -146,21 +146,18 @@ NameIterator relativeKeyIterator (Key const & key, Key const & parent)
}
/**
- * @brief This function checks if a key name specifies an array key.
- *
- * If the key name contains a valid array index that is smaller than `unsigned long long`, then the function will also return this index.
+ * @bri... |
Add missing test for interface being up.
Thanks to Dave Taht. | @@ -1172,6 +1172,9 @@ really_send_update(struct interface *ifp, const unsigned char *id,
unsigned short seqno, unsigned short metric,
unsigned char *channels, int channels_len)
{
+ if(!if_up(ifp))
+ return;
+
if((ifp->flags & IF_UNICAST) != 0) {
struct neighbour *neigh;
FOR_ALL_NEIGHBOURS(neigh) {
|
Micro framework it is... | -# facil.io - a mini-framework for C web applications
+# facil.io - a micro-framework for C web applications
[](https://github.com/boazsegev/facil.io)
[](https://travis-ci.org/... |
Replace field access with getter (u). | @@ -782,7 +782,7 @@ void ts_internal_bspline_eval(const tsBSpline *spline, tsReal u,
i = fst + r;
for (; i <= lst; i++) {
ui = spline->pImpl->knots[i];
- a = (_deBoorNet_->pImpl->u - ui) /
+ a = (ts_deboornet_knot(_deBoorNet_) - ui) /
(spline->pImpl->knots[i+deg-r+1] - ui);
a_hat = 1.f-a;
@@ -1120,7 +1120,7 @@ void ts_... |
synthetic: tweaks to the warmup routine | @@ -302,20 +302,22 @@ fn run_client(
let mut last = 100_000_000;
let mut send_schedule: Vec<u64> = Vec::with_capacity(packets);
+ let mut rng = rand::thread_rng();
/* Climb in 100ms increments */
for t in 1..(10 * ramp_up_seconds) {
let rate = t * packets_per_second / (ramp_up_seconds * 10);
let ns_per_packet = 1000_00... |
hkdf zeroization fix | @@ -281,6 +281,7 @@ static unsigned char *HKDF_Expand(const EVP_MD *evp_md,
unsigned char *okm, size_t okm_len)
{
HMAC_CTX *hmac;
+ unsigned char *ret = NULL;
unsigned int i;
@@ -330,11 +331,10 @@ static unsigned char *HKDF_Expand(const EVP_MD *evp_md,
done_len += copy_len;
}
-
- HMAC_CTX_free(hmac);
- return okm;
+ re... |
Update 5.json with catalog changes (amgetmulti -> amgetbitmap)
To update 5.json, we ran:
cat src/include/catalog/*.h | perl src/backend/catalog/process_foreign_keys.pl > gpMgmt/bin/gppylib/data/5.json | {
"__comment" : "Generated by process_foreign_keys.pl",
- "__info" : { "CATALOG_VERSION_NO" : "301705051" },
+ "__info" : { "CATALOG_VERSION_NO" : "301709131" },
"gp_distribution_policy" : {
"foreign_keys" : [
[ ["localoid"], "pg_class", ["oid"] ]
[ ["aminsert"], "pg_proc", ["oid"] ],
[ ["ambeginscan"], "pg_proc", ["oi... |
Log handshake_count | @@ -4833,8 +4833,8 @@ ssize_t ngtcp2_conn_on_loss_detection_alarm(ngtcp2_conn *conn,
}
ngtcp2_log_info(&conn->log, NGTCP2_LOG_EVENT_RCV,
- "tlp_count=%zu rto_count=%zu", rcs->tlp_count,
- rcs->rto_count);
+ "handshake_count=%zu tlp_count=%zu rto_count=%zu",
+ rcs->handshake_count, rcs->tlp_count, rcs->rto_count);
ngtcp... |
Unset memory table entry, not just the temporary pointer to it on shutdown
to fix crash with multiple instances of OpenBLAS, | @@ -1279,7 +1279,7 @@ void blas_shutdown(void){
struct alloc_t *alloc_info = local_memory_table[thread][pos];
if (alloc_info) {
alloc_info->release_func(alloc_info);
- alloc_info = (void *)0;
+ local_memory_table[thread][pos] = (void *)0;
}
}
}
|
nshlib/nsh_console.h: Fix copy paste errors. Some Kconfig configuration names needed CONFIG_ prefix. | #if CONFIG_NFILE_STREAMS > 0
# ifdef CONFIG_NSH_ALTCONDEV
-# if !defined(CONFIG_NSH_ALTSTDIN) && !defined(NSH_ALTSTDOUT) && \
- !defined(CONFIGNSH_ALTSTDERR)
+# if !defined(CONFIG_NSH_ALTSTDIN) && !defined(CONFIG_NSH_ALTSTDOUT) && \
+ !defined(CONFIG_NSH_ALTSTDERR)
# error CONFIG_NSH_ALTCONDEV selected but CONFIG_NSH_A... |
Support NVIDIA HPC compiler | @@ -48,7 +48,7 @@ OPENBLAS_COMPLEX_FLOAT CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x, FLOAT *y, BLA
dot[0]=0.0;
dot[1]=0.0;
-#if !defined(__PPC__) && !defined(__SunOS)
+#if !defined(__PPC__) && !defined(__SunOS) && !defined(__PGI)
CREAL(result) = 0.0 ;
CIMAG(result) = 0.0 ;
#else
@@ -73,7 +73,7 @@ OPENBLAS_COMPLEX_FLOAT... |
kdb-complete: fix infinite loop with escaped key names | @@ -116,6 +116,8 @@ void CompleteCommand::completeNormal (const string argument, const Key parsedArg
const int offset = distance (root.begin (), root.end ()) - rootExists + shallShowNextLevel (argument);
const auto nameFilter = root.isCascading () ? filterCascading : filterName;
+ // Let elektra handle the escaping of ... |
board/dood/led.c: Format with clang-format
BRANCH=none
TEST=none | @@ -20,16 +20,23 @@ __override const int led_charge_lvl_2 = 100;
/* Dood: Note there is only LED for charge / power */
__override struct led_descriptor
led_bat_state_table[LED_NUM_STATES][LED_NUM_PHASES] = {
- [STATE_CHARGING_LVL_2] = {{EC_LED_COLOR_AMBER, LED_INDEFINITE} },
- [STATE_CHARGING_FULL_CHARGE] = {{EC_LED_CO... |
Remove short pyserial timeout.
Timeout was causing console to disconnect during Piksi Multi restart.
Timeout made serial driver not equivalent in behavior to file driver or network driver | @@ -46,7 +46,7 @@ class PySerialDriver(BaseDriver):
try:
handle = serial.serial_for_url(port)
handle.baudrate = baud
- handle.timeout = 1
+ handle.timeout = None
handle.rtscts = rtscts
super(PySerialDriver, self).__init__(handle)
except (OSError, serial.SerialException) as e:
|
Documentation: Fix Markdown list | @@ -6,8 +6,10 @@ There should be no scripts top-level but only in sub directories.
These files are installed on the target system.
-- [kdb](kdb): for scripts to be used with `kdb <script>`. -[ffconfig](ffconfig): to configure firefox.
+- [kdb](kdb): for scripts to be used with `kdb <script>`.
+- [ffconfig](ffconfig): t... |
Fix missing pointer operator in dcd_nuc505.c | @@ -183,7 +183,7 @@ static void dcd_userEP_in_xfer(struct xfer_ctl_t *xfer, USBD_EP_T *ep)
/* provided buffers are thankfully 32-bit aligned, allowing most data to be transfered as 32-bit */
if (xfer->ff)
{
- tu_fifo_read_n(xfer->ff, (void *) (ep->EPDAT_BYTE), bytes_now);
+ tu_fifo_read_n(xfer->ff, (void *) (&ep->EPDAT... |
Remove TCOD_sys_init_sdl2_renderer_ function. | @@ -168,12 +168,6 @@ TCOD_PUBLIC struct SDL_Renderer* TCOD_sys_get_sdl_renderer(void);
*/
TCOD_PUBLIC int TCOD_sys_accumulate_console(const TCOD_Console* console);
TCOD_PUBLIC int TCOD_sys_accumulate_console_(const TCOD_Console* console, const struct SDL_Rect* viewport);
-TCOD_PUBLIC TCOD_NODISCARD int TCOD_sys_init_sd... |
docs: fix typo in get-started chapter | @@ -83,7 +83,7 @@ For boards with an installed USB-to-UART bridge, the connection between the pers
shape = line;
style = dotted;
color = "#FF0000";
- label = "Developmment Board\n\n\n";
+ label = "Development Board\n\n\n";
BRIDGE; CHIP;
}
}
@@ -121,7 +121,7 @@ Sometimes the USB-to-UART bridge is external. This is often... |
Configurations/10-main.conf: Don't inherit assembler in Cygwin-common
The targets Cygwin-x86 and Cygwin-x86_64 are the ones that should do
this.
Fixes | @@ -1431,7 +1431,7 @@ my %targets = (
#### Cygwin
"Cygwin-common" => {
- inherit_from => [ "BASE_unix", asm("x86_asm") ],
+ inherit_from => [ "BASE_unix" ],
template => 1,
CC => "gcc",
|
Add INVALID_ACTION alias | @@ -11,6 +11,8 @@ typedef uint8_t packet_data_t;
#include <rte_spinlock.h>
typedef rte_spinlock_t lock_t;
+#define INVALID_ACTION -1
+
#define INVALID_TABLE_ENTRY false
#define VALID_TABLE_ENTRY true
|
tests: internal: pack: use new last_byte field for byte check | @@ -176,7 +176,6 @@ void test_json_pack_mult_iter()
int out_size;
msgpack_unpacked result;
msgpack_object root;
- jsmntok_t *t;
struct flb_pack_state state;
data1 = mk_file_to_buffer(JSON_SINGLE_MAP1);
@@ -211,10 +210,9 @@ void test_json_pack_mult_iter()
ret = flb_pack_json_state(buf, i, &out_buf, &out_size, &state);
i... |
Changed an include from gl4es to gles | #ifndef _GL4ES_VERTEXATTRIB_H_
#define _GL4ES_VERTEXATTRIB_H_
-#include "gl4es.h"
+#include "gles.h"
-// actual definition of vertexattrib_t is in buffer.h, has they are part of VAO...
+// actual definition of vertexattrib_t is in buffer.h, as they are part of VAO...
void gl4es_glVertexAttribPointer(GLuint index, GLint... |
nrf/boards/microbit: Update docs on top level tick low pri callback. | @@ -357,8 +357,7 @@ static void microbit_display_update(void) {
#define GREYSCALE_MASK ((1<<MAX_BRIGHTNESS)-2)
-/* This is the top-level animation/display callback. It is not a registered
- * callback. */
+/* This is the top-level animation/display registered callback. */
void microbit_display_tick(void) {
/* Do nothin... |
[hardware] Register the DMA metadata | @@ -45,8 +45,10 @@ module mempool_cluster
logic [NumCores-1:0] wake_up_q;
`FF(wake_up_q, wake_up_i, '0, clk_i, rst_ni);
- ro_cache_ctrl_t ro_cache_ctrl_q;
- `FF(ro_cache_ctrl_q, ro_cache_ctrl_i, ro_cache_ctrl_default, clk_i, rst_ni);
+ ro_cache_ctrl_t [NumGroups-1:0] ro_cache_ctrl_q;
+ for (genvar g = 0; unsigned'(g) <... |
driver: lsm6dsm: Allow roundup to work below 13Hz
Recalculate ODR properly after rounding up the requested rate.
TEST=Check ODR is set properly
BRANCH=none | @@ -444,7 +444,7 @@ static int set_data_rate(const struct motion_sensor_t *s, int rate, int rnd)
if (rnd && (normalized_rate < rate)) {
reg_val++;
- normalized_rate *= 2;
+ normalized_rate = LSM6DSM_REG_TO_ODR(reg_val);
}
if (normalized_rate == 0)
return EC_RES_INVALID_PARAM;
|
Add reconnect test | @@ -12652,11 +12652,12 @@ requires_config_enabled MBEDTLS_SSL_CLI_C
requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE
run_test "TLS 1.3: NewSessionTicket: Basic check, m->O" \
"$O_NEXT_SRV -msg -tls1_3 -no_resume_ephemeral -no_cache " \
- "$P_CLI debug_level=4" \
+ "$P_CLI debug_level=4 reco_mode=1 reconnec... |
docs - clarify gp_toolkit.gp_stats_missing smirecs description | </row>
<row class="- topic/row ">
<entry colname="col1" class="- topic/entry ">smirecs </entry>
- <entry colname="col2" class="- topic/entry ">Number of rows in the table.</entry>
+ <entry colname="col2" class="- topic/entry ">The total number of columns in
+ the table that have statistics recorded.</entry>
</row>
</tb... |
Fix db.yml SceDeci4pUserp | @@ -1497,8 +1497,8 @@ modules:
sceDTraceClientOpen: 0x761062E9
sceDTraceHelperIoctl: 0x413C420E
sceDTraceRemoveHelperDof: 0xF2C9207A
- SceDeci4p:
- nid: 0x00000027
+ SceDeci4pUserp:
+ nid: 0xE24F5181
libraries:
SceDeci4pUserp:
kernel: false
|
Deletion email account by default for alerts | @@ -4,13 +4,13 @@ PORT=27017
ALERTS=on
DATABASE=Datafari
HOURLYDELAY=31/07/2015/08\:42
-user=datafari.test@gmail.com
-smtp=smtp.gmail.com
+user=
+smtp=
DAILYDELAY=02/07/2015/16\:10
WEEKLYDELAY=21/07/2015/10\:55
COLLECTION=Alerts
Daily=06/04/2016/15\:10
-from=datafari.test@gmail.com
+from=
HOST=127.0.0.1
-pass=Datafari1... |
Disable cubic test for Linux for nwo. | @@ -240,7 +240,9 @@ static const picoquic_test_def_t test_table[] = {
{ "bdp_ip", bdp_ip_test },
{ "bdp_rtt", bdp_rtt_test },
{ "bdp_reno", bdp_reno_test },
+#if 0
{ "bdp_cubic", bdp_cubic_test },
+#endif
{ "cid_length", cid_length_test },
{ "optimistic_ack", optimistic_ack_test },
{ "optimistic_hole", optimistic_hole_... |
Disbale dec-prim successful test, hangs UT | @@ -140,6 +140,7 @@ end:
if (ctx) teardown();
}
+#if 0 /* Cannot test a successful decrypt prim because it can take a long time */
/*
* Test the KAT handler API.
* The ctx is empty (no capabilities), expecting failure.
@@ -163,6 +164,7 @@ Test(RSA_DECPRIM_API, pass) {
end:
if (ctx) teardown();
}
+#endif
/*
* Test the K... |
[chainmaker][#436]modify test14 function | @@ -442,18 +442,18 @@ START_TEST(test_001CreateWallet_0013_CreateOneTimeWalletSucessHostNameMaxLen)
}
END_TEST
-START_TEST(test_001CreateWallet_0014_CreateOneTimeWalletFailureChainIdLenExceed)
+START_TEST(test_001CreateWallet_0014_CreateOneTimeWalletSucessChainIdMaxLen)
{
BSINT32 rtnVal;
BoatHlchainmakerWallet *g_chani... |
Update ias_ace.cpp | @@ -57,7 +57,7 @@ const std::array<KeyMap, 7> RConfigArmModeValues = { { {QLatin1String("disarmed"
const std::array<KeyMap, 11> RConfigPanelValues = { { {QLatin1String("disarmed")}, {QLatin1String("armed_stay")}, {QLatin1String("armed_night")}, {QLatin1String("armed_away")},
- {QLatin1String("exit_delay")}, {QLatin1Str... |
blackbox: do not record during turtle | @@ -75,7 +75,7 @@ uint8_t blackbox_update() {
data_flash_finish();
blackbox_enabled = 0;
return 0;
- } else if ((flags.arm_switch && rx_aux_on(AUX_BLACKBOX)) && blackbox_enabled == 0) {
+ } else if ((flags.arm_switch && flags.turtle_ready == 0 && rx_aux_on(AUX_BLACKBOX)) && blackbox_enabled == 0) {
if (data_flash_resta... |
Do the ToDo list and iterate over the Paths pointer | -use crate::{c_char, c_int, c_void};
-// use crate::{c_char, c_int, c_void, CStr};
+use crate::{c_char, c_int, c_void, CStr};
#[no_mangle]
pub extern "C" fn rs_loader_impl_load_from_file(
_loader_impl: *mut c_void,
- _paths: *const *mut c_char,
- _size: usize,
+ paths: *const *mut c_char,
+ size: usize,
) -> *mut c_voi... |
msgbuf: Remove impossible code (only generics use generic pos). | @@ -242,19 +242,6 @@ static void add_type(lily_msgbuf *msgbuf, lily_type *type)
lily_mb_add(msgbuf, type->cls->name);
if (type->cls->id == LILY_ID_FUNCTION) {
- if (type->generic_pos) {
- int i;
- char ch = 'A';
- lily_mb_add(msgbuf, "[");
- for (i = 0;i < type->generic_pos - 1;i++, ch++) {
- lily_mb_add_char(msgbuf, c... |
Fix cleanup when DeepScanLineInputFile constructor throws | @@ -955,7 +955,6 @@ DeepScanLineInputFile::DeepScanLineInputFile
:
_data (new Data (numThreads))
{
- _data->_streamData = new InputStreamMutex();
_data->_deleteStream = true;
OPENEXR_IMF_INTERNAL_NAMESPACE::IStream* is = 0;
@@ -965,12 +964,29 @@ DeepScanLineInputFile::DeepScanLineInputFile
readMagicNumberAndVersionFiel... |
Fix bootstrap version computing with custom bc
When i have ~/.bc configuration file with content:
scale=2
which is changing default behaviour (scale=0), bootstrap is not working. | @@ -17,16 +17,16 @@ fi
BROTLI_ABI_HEX=`sed -n 's/#define BROTLI_ABI_VERSION 0x//p' c/common/version.h`
BROTLI_ABI_INT=`echo "ibase=16;$BROTLI_ABI_HEX" | bc`
-BROTLI_ABI_CURRENT=`echo "$BROTLI_ABI_INT / 16777216" | bc`
-BROTLI_ABI_REVISION=`echo "$BROTLI_ABI_INT / 4096 % 4096" | bc`
-BROTLI_ABI_AGE=`echo "$BROTLI_ABI_IN... |
capture floating point exception checking logic for future use | #include <string>
#include <vector>
+#ifdef FECHECKS
+#include <fenv.h>
+#endif
+
using std::string;
using std::vector;
using std::ostringstream;
@@ -219,6 +223,8 @@ avtFilter::UpdateProgress(int current, int total)
// Take memory measurements on BGQ so we can get an idea of how much
// memory is used/left.
//
+// Mark... |
file-server: print a warning when binding fails | ?+ +<.sign (on-arvo:def wire sign)
%bound
?: accepted.sign [~ this]
+ ~& [dap.bowl %failed-to-bind path.binding.sign]
[~ this(serving (~(del by serving) path.binding.sign))]
==
::
|
RTX5: typo correction in documentation | @@ -1209,7 +1209,7 @@ RTX does not implement any confidence test for memory validation. This should be
Keil RTX v5 kernel functions are executed in handler mode (using PendSV/SysTick/SVC) and the tables below lists the maximum stack requirements for the Main Stack (MSP) that the user
should consider.
-The stack for the... |
apps/system/dhcpc: Add missing argument of fprintf. | static void dhcpc_showusage(FAR const char *progname, int exitcode)
{
- fprintf(stderr, "Usage: %s <device-name>\n");
+ fprintf(stderr, "Usage: %s <device-name>\n", progname);
exit(exitcode);
}
|
Added the ability to parse IPs enclosed within brackets (e.g., IPv6).
This fixes were it was unable to parse both IPv4/v6 coming from Caddy. | @@ -931,6 +931,10 @@ parse_specifier (GLogItem * logitem, char **str, const char *p, const char *end)
case 'h':
if (logitem->host)
return 0;
+ /* per https://datatracker.ietf.org/doc/html/rfc3986#section-3.2.2 */
+ /* square brackets are possible */
+ if (*str[0] == '[' && (*str += 1) && **str)
+ end = "]";
if (!(tkn =... |
GetObjectStatus call added to the SetAlarmThresholds func | @@ -2113,7 +2113,6 @@ SetAlarmThresholds (
PT_PAYLOAD_ALARM_THRESHOLDS *pPayloadAlarmThresholds = NULL;
UINT32 Index = 0;
#ifdef OS_BUILD
- LIST_ENTRY *pObjectStatusNode = NULL;
OBJECT_STATUS *pObjectStatus = NULL;
#endif // OS_BUILD
@@ -2178,16 +2177,7 @@ SetAlarmThresholds (
}
}
- for ((Index = 0)
-#ifdef OS_BUILD
- ... |
driver/retimer/ps8811.c: Format with clang-format
BRANCH=none
TEST=none | @@ -15,9 +15,7 @@ int ps8811_i2c_read(const struct usb_mux *me, int page, int offset, int *data)
{
int rv;
- rv = i2c_read8(me->i2c_port,
- me->i2c_addr_flags + page,
- offset, data);
+ rv = i2c_read8(me->i2c_port, me->i2c_addr_flags + page, offset, data);
return rv;
}
@@ -26,9 +24,7 @@ int ps8811_i2c_write(const struc... |
Doc: fixing the intel_pstate kernel command line setting
There seems to be a typo in the documentation. | @@ -177,7 +177,7 @@ Tip: Disable the Intel processor C-State and P-State of the RTVM.
Power management of a processor could save power, but it could also impact
the RT performance because the power state is changing. C-State and P-State
PM mechanism can be disabled by adding ``processor.max_cstate=0
- intel_idle.max_cs... |
macserial: Fix build with emcc | @@ -124,7 +124,7 @@ static bool verify_mlb_checksum(const char *mlb, size_t len) {
// I am not positive what is better to use here (especially on Windows).
// Fortunately we only need something only looking random.
static uint32_t pseudo_random(void) {
- #ifdef __GNUC__
+#if defined(__GNUC__) && !defined(__EMSCRIPTEN__... |
zephyr/shim/chip/mchp/system_external_storage.c: Format with clang-format
BRANCH=none
TEST=none | #define MCHP_ECRW_WORD 0x57524345u /* ASCII ECRW */
#define MCHP_PCR_NODE DT_INST(0, microchip_xec_pcr)
-#define GET_BBRAM_OFS(node) \
- DT_PROP(DT_PATH(named_bbram_regions, node), offset)
+#define GET_BBRAM_OFS(node) DT_PROP(DT_PATH(named_bbram_regions, node), offset)
#define GET_BBRAM_SZ(node) DT_PROP(DT_PATH(named_b... |
perf(non-null judgment):
add non-null judgment of "message.args" in "boathlfabric_discovery.c" | @@ -264,6 +264,10 @@ __BOATSTATIC BOAT_RESULT hlfabricDiscoveryPayloadDataPacked(BoatHlfabricTx *tx_p
message.n_args = 1;
message.args = BoatMalloc((message.n_args) * sizeof(ProtobufCBinaryData));
+ if(message.args == NULL){
+ BoatLog(BOAT_LOG_CRITICAL, "Fail to allocate message.args buffer.");
+ boat_throw(BOAT_ERROR_... |
Bug fix for daoSent update. | @@ -644,7 +644,6 @@ void icmpv6rpl_timer_DAO_task() {
// send DAO
sendDAO();
- icmpv6rpl_vars.daoSent = TRUE;
// arm the DAO timer with this new value
daoPeriod = icmpv6rpl_vars.daoPeriod - 0x80 + (openrandom_get16b()&0xff);
@@ -814,6 +813,7 @@ void sendDAO() {
//===== send
if (icmpv6_send(msg)==E_SUCCESS) {
icmpv6rpl_... |
Add tests for version/ciphersuite sanity checks
The previous commits added sanity checks for where the max enabled protocol
version does not have any configured ciphersuites. We should check that we
fail in those circumstances. | @@ -129,6 +129,37 @@ sub generate_version_tests {
}
}
}
+ return @tests if disabled("tls1_3") || disabled("tls1_2") || $dtls;
+
+ #Add some version/ciphersuite sanity check tests
+ push @tests, {
+ "name" => "ciphersuite-sanity-check-client",
+ "client" => {
+ #Offering only <=TLSv1.2 ciphersuites with TLSv1.3 should f... |
fix bug in ksLookupByName where invalid names have not been checked | @@ -2740,7 +2740,10 @@ Key * ksLookupByName (KeySet * ks, const char * name, elektraLookupFlags options
struct _Key key;
key.meta = NULL;
keyInit (&key);
- keySetName (&key, name);
+ if (keySetName (&key, name) == -1)
+ {
+ return 0;
+ }
found = ksLookup (ks, &key, options);
keyNameDel (key.keyName, true);
|
nimble/ll: Fix overwriting conn stats with DTM enabled | @@ -742,7 +742,9 @@ ble_ll_count_rx_stats(struct ble_mbuf_hdr *hdr, uint16_t len, uint8_t pdu_type)
#if MYNEWT_VAL(BLE_LL_DTM)
/* Reuse connection stats for DTM */
+ if (!connection_data) {
connection_data = (BLE_MBUF_HDR_RX_STATE(hdr) == BLE_LL_STATE_DTM);
+ }
#endif
if (crcok) {
|
process: exclude from kdb check test, process wont work without a config | @@ -49,6 +49,10 @@ do
# exclude due to issue 1781
continue
;;
+ "process")
+ # does not work without an existing plugin to proxy
+ continue
+ ;;
esac
# The following checks fail on an ASAN enabled build
|
MSR: Support double quotes in standard output | @@ -4,7 +4,7 @@ replace_newline_return () {
regex_escape () {
sed 's/\\/\\\\/g' | sed 's/\[/\\\[/g' | sed 's/\]/\\\]/g' | sed 's/\./\\\./g' | sed 's/\*/\\\*/g' | sed 's/\?/\\\?/g' \
- | sed 's/(/\\\(/g' | sed 's/)/\\\)/g'
+ | sed 's/(/\\\(/g' | sed 's/)/\\\)/g' | sed 's/"/\\"/g'
}
if [ -z "@USE_CMAKE_KDB_COMMAND@" ]; t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.