message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Leaf: Catch exceptions in `get`/`set` functions | #include <kdbhelper.h>
+using std::exception;
+
using elektra::LeafDelegate;
using CppKey = kdb::Key;
@@ -70,7 +72,16 @@ int elektraLeafGet (Plugin * handle ELEKTRA_UNUSED, KeySet * returned, Key * par
keys.release ();
return ELEKTRA_PLUGIN_STATUS_SUCCESS;
}
- int status = delegator::get (handle)->convertToDirectories ... |
kdb: factory add () | @@ -108,7 +108,7 @@ public:
m_factory.insert (std::make_pair ("umount", new Cnstancer<UmountCommand> ()));
m_factory.insert (std::make_pair ("file", new Cnstancer<FileCommand> ()));
m_factory.insert (std::make_pair ("sget", new Cnstancer<ShellGetCommand> ()));
- m_factory.insert (std::make_pair ("merge", new Cnstancer<... |
l2: Fix compile error on unused next_index
Type: fix | @@ -53,7 +53,6 @@ typedef struct
{
/* per-pkt trace data */
u8 dst_and_src[12];
- u32 next_index;
u32 sw_if_index;
u32 feat_mask;
} l2input_trace_t;
@@ -237,14 +236,12 @@ l2input_node_inline (vlib_main_t * vm,
int do_trace)
{
u32 n_left, *from;
- l2input_next_t next_index;
l2input_main_t *msm = &l2input_main;
vlib_buff... |
Fix library installation directory. | @@ -29,7 +29,7 @@ docker run \
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
- -DTINYSPLINE_INSTALL_LIBRARY_DIR=/lib \
+ -DTINYSPLINE_INSTALL_LIBRARY_DIR=lib \
-DTINYSPLINE_ENABLE_CSHARP=True \
-DTINYSPLINE_ENABLE_DLANG=True \
-DTINYSPLINE_ENABLE_GO=True \
|
Reformulate the if condition in tls_process_new_session_ticket
Improves readability | @@ -2566,9 +2566,8 @@ MSG_PROCESS_RETURN tls_process_new_session_ticket(SSL *s, PACKET *pkt)
&& (!PACKET_get_net_4(pkt, &age_add)
|| !PACKET_get_length_prefixed_1(pkt, &nonce)))
|| !PACKET_get_net_2(pkt, &ticklen)
- || (!SSL_IS_TLS13(s) && PACKET_remaining(pkt) != ticklen)
- || (SSL_IS_TLS13(s)
- && (ticklen == 0 || PA... |
Mark projectile wiki documented. | @@ -2552,7 +2552,7 @@ typedef struct entity
e_edge_state edge; // At an edge (unbalanced).
e_invincible_state invincible; // Attack invulnerability. ~~
e_direction normaldamageflipdir; // Used to reset backpain direction. ~~
- e_blasted_state projectile; // Blasted or tossed (bowl over other entities in fall).
+ e_blas... |
secure_boot_v2(doc): secure_boot_v2 key/s must be readable | -Subproject commit e39896e1243418c7e28e4e0c4532661f3c7c5d2d
+Subproject commit 9876dfe58353f01c873e1543dd0654c5b04314a4
|
removes orphaned telnet constants and forward declarations | #include "vere/vere.h"
static void _term_spinner_cb(void*);
-static void _term_read_tn_cb(uv_stream_t* tcp_u,
- ssize_t siz_i,
- const uv_buf_t * buf_u);
static void _term_read_cb(uv_stream_t* tcp_u,
ssize_t siz_i,
const uv_buf_t * buf_u);
static inline void _term_suck(u3_utty*, const c3_y*, ssize_t);
-
-#define _T_ECH... |
Add various glossary entries | # Glossary
+#### Axiom
+
+A named rule for asserting new facts. See the
+[assertions](/doc/note/assertions.md#axioms) note for more details.
+
+#### Assertion
+
+A compile-time directive that introduces a new fact (or fails to compile, if
+the assertion cannot be proved). See the [assertions](/doc/note/assertions.md)
+... |
rsa_test: add return value check
Fixes | @@ -231,7 +231,9 @@ static int pad_unknown(void)
static int rsa_setkey(RSA** key, unsigned char* ctext, int idx)
{
int clen = 0;
+
*key = RSA_new();
+ if (*key != NULL)
switch (idx) {
case 0:
clen = key1(*key, ctext);
|
fix building with empty LIBRESSL_INCLUDE_DIRS | @@ -109,7 +109,9 @@ if (NOT ENABLE_SSL STREQUAL OFF)
if (LIBRESSL_FOUND)
message ("-- Found ${LIBRESSL_LIBRARIES}")
set (SSL_LIBRARIES ${LIBRESSL_LIBRARIES})
+ if (${LIBRESSL_INCLUDE_DIRS})
include_directories ("${LIBRESSL_INCLUDE_DIRS}")
+ endif ()
link_directories ("${LIBRESSL_LIBRARY_DIRS}")
set (LIBRESSL 1)
else ()... |
Removing ROSS_MEMORY option from the build | @@ -99,13 +99,6 @@ IF(AVL_TREE)
SET(ross_srcs ${ross_srcs} avl_tree.h avl_tree.c)
ENDIF(AVL_TREE)
-# ROSS_MEMORY is either on or off depending on whether or not we desire
-# memory buffers. If it's not set to YES, it defaults to NO
-OPTION(ROSS_MEMORY "ROSS Memory Buffers (membufs)" OFF)
-IF(ROSS_MEMORY)
- SET(ross_src... |
do not terminate programm if channel can't be set | @@ -1173,11 +1173,7 @@ strncpy(wrq.ifr_name, interfacename , IFNAMSIZ);
if((sock = socket(AF_INET, SOCK_DGRAM, 0)) < 0)
{
fprintf(stderr, "socket open for ioctl() on '%s' failed with '%d'\n", interfacename, sock);
-#ifdef DOGPIOSUPPORT
- if(system("reboot") != 0)
- printf("can't reboot\n");
-#endif
- programmende(SIGIN... |
Fix vat_api_hookup name collision | @@ -214,8 +214,8 @@ _(udp_ping_add_del_req, "src <local IPv6 address> start-src-port <first local p
_(udp_ping_export_req, "export [disable]") \
-void
-vat_api_hookup (vat_main_t * vam)
+static void
+udp_ping_test_api_hookup (vat_main_t * vam)
{
udp_ping_test_main_t *sm = &udp_ping_test_main;
/* Hook up handlers for re... |
CMakeLists.txt,cosmetics: normalize if() formatting
+ break a long line | @@ -329,7 +329,8 @@ if(WEBP_BUILD_IMG2WEBP)
parse_Makefile_am(${CMAKE_CURRENT_SOURCE_DIR}/examples "IMG2WEBP_SRCS"
"img2webp")
add_executable(img2webp ${IMG2WEBP_SRCS})
- target_link_libraries(img2webp exampleutil imagedec imageioutil webp libwebpmux)
+ target_link_libraries(img2webp exampleutil imagedec imageioutil we... |
Ignore `ts_bspline_insert_knot` in R. | %ignore tinyspline::BSpline::operator=;
%ignore tinyspline::DeBoorNet::operator=;
%ignore tinyspline::Domain::operator=;
+%ignore ts_bspline_insert_knot;
%ignore ts_deboornet_result;
// Map std::vector<tinyspline::real> to R vector.
|
rust/bitbox02: unit test strlen_ptr | @@ -104,6 +104,14 @@ mod tests {
assert_eq!(truncate_str("test", 6), "test");
}
+ #[test]
+ fn test_strlen_ptr() {
+ assert_eq!(unsafe { strlen_ptr(b"\0".as_ptr()) }, 0);
+ assert_eq!(unsafe { strlen_ptr(b"a\0".as_ptr()) }, 1);
+ assert_eq!(unsafe { strlen_ptr(b"abcdef\0".as_ptr()) }, 6);
+ assert_eq!(unsafe { strlen_p... |
fix passing testkdb_ensure test | @@ -88,10 +88,10 @@ buildelektra-sid
After starting the container, you should be automatically inside it in the working directory `/home/jenkins/workspace`.
-Create folder for building the project, `cd` to it and create another folder where Elektra will be installed like this:
+Create folder folder where Elektra will b... |
fix tests/client_get_linux compile fail error.
Tested-by: IoTivity Jenkins | @@ -80,7 +80,7 @@ check_resource_cb(oc_client_response_t *data)
static oc_discovery_flags_t
discovery_cb(const char *di, const char *uri, oc_string_array_t types,
- oc_interface_mask_t interfaces, oc_server_handle_t *server,
+ oc_interface_mask_t interfaces, oc_endpoint_t *server,
oc_resource_properties_t bm, void *use... |
pass correct verilator root | @@ -13,6 +13,9 @@ source $SCRIPT_DIR/defaults.sh
# call clean on exit
trap clean EXIT
+cd $LOCAL_CHIPYARD_DIR
+./scripts/init-submodules-no-riscv-tools.sh
+
# set stricthostkeychecking to no (must happen before rsync)
run "echo \"Ping $SERVER\""
@@ -27,9 +30,8 @@ copy $LOCAL_CHIPYARD_DIR/ $SERVER:$REMOTE_CHIPYARD_DIR
c... |
Update PyPI cache at runtime if it wasn't downloaded | @@ -13,6 +13,13 @@ import Combine
func search(for package: String) -> [String] {
let index = Bundle.main.url(forResource: "pypi_index", withExtension: "html") ?? FileManager.default.urls(for: .libraryDirectory, in: .allDomainsMask)[0].appendingPathComponent("pypi_index.html")
+ guard FileManager.default.fileExists(atPa... |
NetKVM: fix possible 'Nbl' NULL pointer usage (CA)
Protect NdisSendNetBufferLists from passing Nbl == NULL. | @@ -1162,7 +1162,7 @@ static void RetrieveSourceHandle(PNET_BUFFER_LIST start, PNET_BUFFER_LIST stopAt
bool CProtocolBinding::Send(PNET_BUFFER_LIST Nbl, ULONG Count)
{
- if (!m_TxStateMachine.RegisterOutstandingItems(Count))
+ if (Nbl == NULL || !m_TxStateMachine.RegisterOutstandingItems(Count))
{
return false;
}
|
add radius var | @@ -193,11 +193,16 @@ void fromProcessing(String data)
float init_arg[2] = {move_time, ACTUATOR_CONTROL_TIME};
void *p_init_arg = init_arg;
+ static float radius = 0.005f;
+
SCARA.drawInit(CIRCLE, p_init_arg);
- SCARA.setRadiusForDrawing(CIRCLE, 0.050);
+ SCARA.setRadiusForDrawing(CIRCLE, radius);
SCARA.setTimeForDrawi... |
Clone submodules as well, otherwise building fails | @@ -9,7 +9,10 @@ A modification of the Mesa Vulkan overlay. Including GUI improvements, temperatu
First, clone this repository and cd into it:
-`git clone https://github.com/flightlessmango/MangoHud.git; cd MangoHud`
+```
+git clone --recurse-submodules https://github.com/flightlessmango/MangoHud.git
+cd MangoHud
+```
... |
ci: coverage: skip ra.[ly] files | @@ -67,8 +67,8 @@ if [[ "$FLB_OPT" =~ COVERAGE ]]
then
mkdir -p coverage
find lib -name "*.gcda" -o -name "*.gcno" -print0 | xargs -0 -r rm
- gcovr -e "build/sql.l" -e "build/sql.y" -p -r .. . | cut -c1-100
- gcovr -e "build/sql.l" -e "build/sql.y" --html --html-details -p -r .. -o coverage/index.html .
+ gcovr -e "bui... |
lib/utils/pyexec: Add missing MP_ERROR_TEXT when compiler disabled. | @@ -96,7 +96,7 @@ STATIC int parse_compile_execute(const void *source, mp_parse_input_kind_t input
mp_parse_tree_t parse_tree = mp_parse(lex, input_kind);
module_fun = mp_compile(&parse_tree, source_name, exec_flags & EXEC_FLAG_IS_REPL);
#else
- mp_raise_msg(&mp_type_RuntimeError, "script compilation not supported");
+... |
Do not use obsolete API for OpenSSL 3.0 | #include <openssl/engine.h>
#include <openssl/conf.h>
#include <openssl/ssl.h>
+#if !defined(LIBRESSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x30000000L
+#include <openssl/provider.h>
+#endif
#include <stdio.h>
#include <string.h>
#include "picoquic_unified_log.h"
@@ -132,11 +135,15 @@ static void picoquic_init_o... |
fix ambiguous usages | @@ -215,10 +215,10 @@ void MasternodeManager::updateNodeList()
rankItem->setData(Qt::UserRole, GetMasternodeRank(mn.vin, pindexBest->nHeight));
rankItem->setData(Qt::DisplayRole, QString::number(GetMasternodeRank(mn.vin, pindexBest->nHeight)));
SortedWidgetItem *activeSecondsItem = new SortedWidgetItem();
- activeSecon... |
interface: fixed variable name | @@ -101,7 +101,7 @@ export default function index(associations, apps, currentGroup) {
app.charAt(0).toUpperCase() + app.slice(1),
cite(shipStart.slice(0, shipStart.indexOf('/')))
);
- groups.push(obj);
+ landscape.push(obj);
} else {
const app = each.metadata.module || each['app-name'];
const obj = result(
|
wsman-xml-serialize: use right sscanf parameters
struct tm members are signed, so use %d instead of %u in sscanf | @@ -1869,7 +1869,7 @@ int ws_deserialize_datetime(const char *text, XML_DATETIME * tmx)
}
bzero(tmx, sizeof(XML_DATETIME));
- r = sscanf(text, "%u-%u-%uT%u:%u:%u%d:%u", &tmx->tm.tm_year,
+ r = sscanf(text, "%d-%d-%dT%d:%d:%d%d:%d", &tmx->tm.tm_year,
&tmx->tm.tm_mon, &tmx->tm.tm_mday,
&tmx->tm.tm_hour, &tmx->tm.tm_min, ... |
Relaxing interface | @@ -97,14 +97,14 @@ namespace celix {
* @param closeFunction
* @return builder style same object
*/
- [[nodiscard]] PushStream<T>& onClose(CloseFunction closeFunction);
+ PushStream<T>& onClose(CloseFunction closeFunction);
/**
* Given method will be called on error
* @param errorFunction
* @return builder style same o... |
Correct a couple of typos in the release notes. | @@ -29,7 +29,7 @@ enhancements and bug-fixes that were added to this release.</p>
<li>Fixed a bug with the Pixie reader when it read 3D curvilinear meshes in parallel.</li>
<li>Fixed a bug where the parallel engine crashed when creating ghost zones from global ids.</li>
<li>Fixed a bug with the progress dialog staying ... |
Dedup conflicting use statements. | @@ -24,6 +24,7 @@ static Node *unpickle(FILE *fd);
/* type fixup list */
static Htab *tydeduptab; /* map from name -> type, contains all Tynames loaded ever */
+static Htab *trdeduptab; /* map from name -> type, contains all Tynames loaded ever */
static Htab *tidmap; /* map from tid -> type */
static Htab *trmap; /* m... |
improved detection if hashcat --nonce-error-corrections is working on that file | @@ -102,6 +102,14 @@ replaycount = be64toh(eap->replaycount);
return replaycount;
}
/*===========================================================================*/
+int sort_by_nonce_ap(const void *a, const void *b)
+{
+hcx_t *ia = (hcx_t *)a;
+hcx_t *ib = (hcx_t *)b;
+
+return memcmp(ia->nonce_ap, ib->nonce_ap, 32);
+... |
oc_oscore:return BAD_OPTION if req lacks 'kid' | #include "oc_oscore.h"
#include "oc_oscore_crypto.h"
#include "oc_oscore_context.h"
+#include "oc_pstat.h"
#include "api/oc_events.h"
#include "util/oc_process.h"
#include "oc_store.h"
@@ -148,7 +149,7 @@ oc_oscore_recv_message(oc_message_t *message)
} else {
/* OSCORE message is request and lacks kid, return error */
... |
update armlibc/stdio.c | @@ -64,12 +64,28 @@ int libc_stdio_get_console(void)
}
int libc_stdio_read(void *buffer, size_t size)
+{
+ if (std_fd >= 0)
{
return read(std_fd, buffer, size);
}
+ else
+ {
+ rt_kprintf("Illegal stdio input!\n");
+ return 0;
+ }
+}
int libc_stdio_write(const void *buffer, size_t size)
+{
+ if (std_fd >= 0)
{
return wr... |
Fix range limit exceeding data size in last step | @@ -246,6 +246,7 @@ int CNAME(BLASLONG n, BLASLONG k, FLOAT *alpha, FLOAT *a, BLASLONG lda, FLOAT *x
range_m[MAX_CPU_NUMBER - num_cpu - 1] = range_m[MAX_CPU_NUMBER - num_cpu] - width;
range_n[num_cpu] = num_cpu * (((n + 15) & ~15) + 16);
+ if (range_n[num_cpu] > n) range_n[num_cpu] = n;
queue[num_cpu].mode = mode;
queu... |
Dedicate motion sensor to Sengled PAR38 bulp | @@ -4128,7 +4128,8 @@ void DeRestPluginPrivate::addSensorNode(const deCONZ::Node *node, const deCONZ::
modelId.startsWith(QLatin1String("902010/22")) || // Bitron motion sensor
modelId.startsWith(QLatin1String("SN10ZW")) || // ORVIBO motion sensor
modelId.startsWith(QLatin1String("MOSZB-130")) || // Develco motion sens... |
tools:acrn-crashlog:fix potential issue
this patch fix potential issue of initialization
about local variable in fsutils.c
Acked-by: Chen, Gang | @@ -1014,7 +1014,7 @@ fail_open:
int read_file(const char *path, unsigned long *size, void **data)
{
- char tmp[1024] = "\0";
+ char tmp[1024];
int len = 0;
int fd = 0;
int memsize = 1; /* for '\0' */
|
adds additional replacement events
%hole (negative ack) and %warn (%crud failed) | @@ -388,10 +388,50 @@ _worker_send_slog(u3_noun hod)
static void
_worker_lame(c3_d evt_d, u3_noun ovo, u3_noun why, u3_noun tan)
{
- // %crud will be sent on the original wire.
+ u3_noun rep;
+ u3_noun wir, tag, cad;
+
+ u3x_trel(ovo, &wir, &tag, &cad);
+
+ // a deterministic error (%exit) in a network packet (%hear)
+... |
Avoid crash when flist has no type field
When the flist has no type field, BAYER_TYPE_UNKNOWN should be
used as the type. | @@ -148,6 +148,11 @@ static void list_elem_decode(char* buf, elem_t* elem)
elem->detail = 0;
const char* type = strtok(NULL, "|");
+ if (type == NULL) {
+ elem->type = BAYER_TYPE_UNKNOWN;
+ return;
+ }
+
char c = type[0];
if (c == 'F') {
elem->type = BAYER_TYPE_FILE;
|
Changed default element-count from 0 to 1 | @@ -989,7 +989,6 @@ static void ZydisSetOperandSizeAndElementInfo(ZydisDecoderContext* context,
ZYDIS_ASSERT(definition->size[context->eoszIndex] == 0);
operand->size = info->addressWidth;
operand->elementType = ZYDIS_ELEMENT_TYPE_INT;
- operand->elementCount = 1;
} else
{
ZYDIS_ASSERT(definition->size[context->eoszInd... |
Fix C# code for operator overloading (2.0). | %ignore tinyspline::Vec3::operator*;
%typemap(cscode) tinyspline::Vec3 %{
- public static Vec3 operator+(Vec3 a, Vec3 b) => a.Add(b);
- public static Vec3 operator-(Vec3 a, Vec3 b) => a.Subtract(b);
- public static Vec3 operator*(Vec3 vec, double val) => vec.Multiply(val);
- public static Vec3 operator*(Vec3 vec, float... |
Add missing OpenVR pointer actions; | "actions" : [
{ "name" : "/actions/lovr/in/leftHandPose", "type" : "pose" },
{ "name" : "/actions/lovr/in/rightHandPose", "type" : "pose" },
+ { "name" : "/actions/lovr/in/leftHandPoint", "type" : "pose" },
+ { "name" : "/actions/lovr/in/rightHandPoint", "type" : "pose" },
{ "name" : "/actions/lovr/in/leftElbowPose", "... |
HLS search : enable irq | @@ -409,7 +409,7 @@ int main(int argc, char *argv[])
goto out_error1;
}
- action = snap_attach_action(card, SEARCH_ACTION_TYPE, 0, 60);
+ action = snap_attach_action(card, SEARCH_ACTION_TYPE, action_irq, 60);
if (action == NULL) {
fprintf(stderr, "err: failed to attach action %u: %s\n",
card_no, strerror(errno));
|
fsp/lxvpd: Print more LXVPD slot information
Useful to know since it changes the behaviour of the slot core. | @@ -149,6 +149,9 @@ void lxvpd_extract_info(struct pci_slot *slot, struct lxvpd_pci_slot *s)
slot->card_desc = s->card_desc;
slot->card_mech = s->card_mech;
slot->wired_lanes = s->wired_lanes;
+
+ prlog(PR_DEBUG, "[%s]: pluggable: %d power_ctrl: %d\n",
+ s->label, (int) s->pluggable, (int) s->power_ctl);
}
static struc... |
[cmake] remove unneeded lib | @@ -34,31 +34,8 @@ find_path(UMFPACK_INCLUDE_DIR
find_library(UMFPACK_LIBRARIES umfpack PATHS $ENV{UMFPACKDIR})
-if(UMFPACK_LIBRARIES)
-
- if (NOT UMFPACK_LIBDIR)
- get_filename_component(UMFPACK_LIBDIR ${UMFPACK_LIBRARIES} PATH)
- endif(NOT UMFPACK_LIBDIR)
-
- find_library(COLAMD_LIBRARY colamd PATHS ${UMFPACK_LIBDIR}... |
tweak tar assembly options for src tarball | @@ -170,7 +170,7 @@ foreach my $distro (@distros) {
# $tar_args .= " $tmp_dir/$distro";
$tar_args .= " $distro";
print "\nCreating dist tarball for $distro:$arch -- \n";
- print "tar command -> tar $tar_args\n";
+ print "tar command -> tar $tar_args\n\n";
system("tar $tar_args");
my $md5sum;
@@ -186,7 +186,7 @@ foreach... |
HAL: fix - use HAL_GPIO_INDEX to know the pin number | @@ -162,10 +162,11 @@ hal_gpio_deinit(int pin)
{
uint32_t conf;
NRF_GPIO_Type *port;
+ int pin_index = HAL_GPIO_INDEX(pin);
conf = GPIO_PIN_CNF_INPUT_Disconnect << GPIO_PIN_CNF_INPUT_Pos;
port = HAL_GPIO_PORT(pin);
- port->PIN_CNF[pin] = conf;
+ port->PIN_CNF[pin_index] = conf;
port->DIRCLR = HAL_GPIO_MASK(pin);
return... |
test-ipmi-hiomap: Add erase-one-block-twice test
Cc: stable | @@ -1328,6 +1328,66 @@ static void test_hiomap_protocol_erase_two_blocks(void)
scenario_exit();
}
+static const struct scenario_event
+scenario_hiomap_protocol_erase_one_block_twice[] = {
+ { .type = scenario_event_p, .p = &hiomap_ack_call, },
+ { .type = scenario_event_p, .p = &hiomap_get_info_call, },
+ { .type = sce... |
SOVERSION bump to version 4.1.4 | @@ -35,7 +35,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_
# with backward compatible change and micro version is connected with any internal change of the library.
set(SYSREPO_MAJOR_SOVERSION 4)
set(SYSREPO_MINOR_SOVERSION 1)
-set(SYSREPO_MICRO_SOVERSION 3)
+set(SYSREPO_MICRO_SO... |
Test public external parameter entity in little-endian | @@ -6605,6 +6605,44 @@ START_TEST(test_entity_public_utf16_be)
}
END_TEST
+START_TEST(test_entity_public_utf16_le)
+{
+ const char text[] =
+ /* <!DOCTYPE d [ */
+ "<\0!\0D\0O\0C\0T\0Y\0P\0E\0 \0d\0 \0[\0\n\0"
+ /* <!ENTITY % e PUBLIC 'foo' 'bar.ent'> */
+ "<\0!\0E\0N\0T\0I\0T\0Y\0 \0%\0 \0e\0 \0P\0U\0B\0L\0I\0C\0 \0"
... |
MQTT parse_publish_vhdr: added missing check of topic length | @@ -881,7 +881,11 @@ parse_publish_vhdr(struct mqtt_connection *conn,
conn->in_packet.topic_len |= input_data_ptr[(*pos)++];
conn->in_packet.byte_counter++;
conn->in_packet.topic_len_received = 1;
-
+ /* Abort if topic is longer than our topic buffer */
+ if(conn->in_packet.topic_len > MQTT_MAX_TOPIC_LENGTH) {
+ DBG("M... |
critical sections during oldest_message computing | @@ -268,26 +268,34 @@ static inline void MsgAlloc_OldestMsgCandidate(msg_t *oldest_stack_msg_pt)
if ((uint32_t)oldest_stack_msg_pt > (uint32_t)current_msg)
{
// The oldest task is between `data_end_estimation` and the end of the buffer
+ LuosHAL_SetIrqState(false);
stack_delta_space = (uint32_t)oldest_stack_msg_pt - (u... |
VERSION bump to version 2.1.59 | @@ -64,7 +64,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 1)
-set(SYSREPO_MICRO_VERSION 58)
+set(SYSREPO_MICRO_VERSION 59)
set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI... |
Speed up the test suite with GNU Parallel
If GNU Parallel is installed we use it to run multiple test scripts at the same time. This cuts
the time it takes to run the test suite roughly in half. | -#!/bin/sh
-
-# We encourage our developers to use busted --no-keep-going by default. Sometimes the test suite
-# is failing because of something silly such as forgetting to run make and in those cases there is
-# a desire to interrupt the test suite with Ctrl-C. With --keep-going (the default busted behavior)
-# you n... |
[ya.conf.json] update yt tool to r3346082
via | },
"yt": {
"formula": {
- "sandbox_id": 135978941,
+ "sandbox_id": 204320868,
"match": "YT"
},
"executable": {
|
Better masking for ELM mode | @@ -11,8 +11,8 @@ static int elm327_tx_hook(CAN_FIFOMailBox_TypeDef *to_send) {
//Check valid 29 bit send addresses for ISO 15765-4
//Check valid 11 bit send addresses for ISO 15765-4
- if ((addr != 0x18DB33F1) && ((addr & 0x1FFF00FF) != 0x18DA00F1) &&
- ((addr != 0x7DF) && ((addr & 0x7F8) != 0x7E0))) {
+ if ((addr != ... |
Fix stats update in cleaner.
Core is not assigned to request in cleaner, so to increase it's stats it has to
be retrieved from mapping. | @@ -616,11 +616,12 @@ static void _ocf_cleaner_cache_io_cmpl(struct ocf_io *io, int error)
{
struct ocf_map_info *map = io->priv1;
struct ocf_request *req = io->priv2;
+ ocf_core_t core = ocf_cache_get_core(req->cache, map->core_id);
if (error) {
map->invalid |= 1;
_ocf_cleaner_set_error(req);
- ocf_core_stats_cache_er... |
More effective implementation of nxt_popcount().
This method requires as many iterations as there are set bits,
while the previous one has to shift up to the position of the
highest bit. | @@ -143,8 +143,8 @@ nxt_popcount(unsigned int x)
{
int count;
- for (count = 0; x != 0; x >>= 1) {
- count += (x & 1);
+ for (count = 0; x != 0; count++) {
+ x &= x - 1;
}
return count;
|
Call unmodified on project load, wasn't firing on page refresh before | store.dispatch(actions.setSection(section))
});
- let modified = false;
+ let modified = true;
store.subscribe(() => {
const state = store.getState();
if(!modified && state.document.modified) {
|
once more version of -l flag | @@ -325,7 +325,6 @@ static int out_balances_callback(void *data, cheatcoin_hash_t hash, cheatcoin_am
}
memcpy(d->blocks + d->nblocks, &f, sizeof(struct cheatcoin_field));
d->nblocks++;
- if (!(d->nblocks % 10000)) printf("blocks: %u\n", d->nblocks);
return 0;
}
@@ -335,15 +334,19 @@ static int out_sort_callback(const v... |
Fix GUID generator | @@ -24,6 +24,7 @@ HRESULT Library_corlib_native_System_Guid::GenerateNewGuid___STATIC__SZARRAY_U1(
NANOCLR_CHECK_HRESULT(CLR_RT_HeapBlock_Array::CreateInstance( top, 16, g_CLR_RT_WellKnownTypes.m_UInt8 ));
buf = top.DereferenceArray()->GetFirstElement();
+ rand.Initialize();
rand.NextBytes(buf, 16); // fill with random... |
More sorting of run_epsdb | @@ -36,21 +36,22 @@ echo $aompdir
echo
set -x
-sort -f $aompdir/test/smoke/passing-tests.txt > $$ptests
-cat $aompdir/bin/epsdb/epsdb_passes.txt
+sort -f -d $aompdir/test/smoke/passing-tests.txt > $$ptests
+sort -f -d $aompdir/bin/epsdb/epsdb_passes.txt > $$etests
+cat $$etests
cat $$ptests
set +x
-epasses=`diff $aompd... |
stm32/main: Make board-defined UART REPL use a static object and buffer.
This way the UART REPL does not need the MicroPython heap and exists
outside the MicroPython runtime, allowing characters to still be received
during a soft reset. | @@ -73,6 +73,14 @@ STATIC pyb_thread_t pyb_thread_main;
STATIC fs_user_mount_t fs_user_mount_flash;
#endif
+#if defined(MICROPY_HW_UART_REPL)
+#ifndef MICROPY_HW_UART_REPL_RXBUF
+#define MICROPY_HW_UART_REPL_RXBUF (64)
+#endif
+STATIC pyb_uart_obj_t pyb_uart_repl_obj;
+STATIC uint8_t pyb_uart_repl_rxbuf[MICROPY_HW_UART... |
acrn-config: removed_nested returns None instead return Error
qemu xml has no devices list. Tool will receive the empty devices
list while parsing the "platform" xml. Remove the error of resolved
nested mmio address window that the input couldn't be None. Simply
return an None list. | @@ -235,7 +235,7 @@ def get_mmio_windows_with_key(keywords):
def removed_nested(list1, list2):
if not list1 or not list2:
- raise ValueError("Invalid inputs: None, list1 is {}, \list2 is {}".format (list1, list2))
+ return list1
resolvedList = list1[:]
for w1 in resolvedList:
@@ -265,6 +265,10 @@ def merged_windows(win... |
fix RWFromMem of sdl/audio_test.go
* fix RWFromMem of sdl/audio_test.go
* ci: improve Travis CI script, using Xvfb for Headless SDL test
using libsdl2-dev from dist
* using xenial dist
* freetype/raster test failed
* reverse CI patch | @@ -66,10 +66,7 @@ func TestAudioInitQuit(t *testing.T) {
func TestLoadWAVRW(t *testing.T) {
// load WAV from *RWOps pointing to WAV data
- src, err := RWFromMem(squareWave)
- if err != nil {
- t.Errorf("LoadWAVRW() returned error %v", err)
- }
+ src, _ := RWFromMem(squareWave)
buf, spec := LoadWAVRW(src, false)
// tes... |
tests/print_exception: Test user exception with __str__ in traceback. | @@ -79,6 +79,22 @@ try:
except Exception as e:
print_exc(e)
+
+# For user exceptions, printing traceback should use __str__, not __repr__
+class MyException(Exception):
+ def __repr__(self):
+ return "repr"
+
+ def __str__(self):
+ return "str"
+
+
+try:
+ raise MyException
+except Exception as e:
+ print_exc(e)
+
+
# ... |
[chainmaker]add request struct | @@ -58,6 +58,26 @@ typedef struct TBoatChainmakerTxHeader {
} BoatChainmakerTxHeader;
+typedef struct TKeyValuePair {
+ char* key;
+ char* value;
+} KeyValuePair;
+
+typedef struct TBoatChainmakerTransactPayload {
+
+ char* contractName;
+ char* method;
+ KeyValuePair* Parameters;
+} BoatChainmakerTransactPayload;
+
+/... |
Update documentation for qaut_from_vecs | @@ -32,6 +32,7 @@ Functions:
#. :c:func:`glm_quat`
#. :c:func:`glm_quatv`
#. :c:func:`glm_quat_copy`
+#. :c:func:`glm_quat_from_vecs`
#. :c:func:`glm_quat_norm`
#. :c:func:`glm_quat_normalize`
#. :c:func:`glm_quat_normalize_to`
@@ -123,6 +124,20 @@ Functions documentation
| *[in]* **q** source quaternion
| *[out]* **de... |
fix lv_align_y/mid_y to align y and not x | @@ -984,7 +984,7 @@ void lv_obj_align_y(lv_obj_t * obj, const lv_obj_t * base, lv_align_t align, lv_
LV_ASSERT_OBJ(base, LV_OBJX_NAME);
- obj_align_core(obj, base, align, true, false, 0, y_ofs);
+ obj_align_core(obj, base, align, false, true, 0, y_ofs);
}
/**
@@ -1058,7 +1058,7 @@ void lv_obj_align_mid_y(lv_obj_t * obj... |
landscape: loosen owner check in popover
Fixes urbit/landscape#960 | @@ -31,7 +31,7 @@ export function PopoverRoutes(
const groupSize = props.group.members.size;
- const owner = resourceFromPath(props.association.group).ship.slice(1) === window.ship;
+ const owner = resourceFromPath(props.association?.group ?? '~zod/group').ship.slice(1) === window.ship;
const admin = props.group?.tags?... |
SOVERSION bump to version 3.3.3 | @@ -67,7 +67,7 @@ set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION
# with backward compatible change and micro version is connected with any internal change of the library.
set(LIBNETCONF2_MAJOR_SOVERSION 3)
set(LIBNETCONF2_MINOR_SOVERSION 3)
-set(LIBNETCONF2_MICRO_SOVERSION 2)
+set(LIBN... |
Parse 'errors' field of online tile service and report the errors in the log | @@ -109,11 +109,16 @@ namespace carto {
std::shared_ptr<BinaryData> responseData;
if (!NetworkUtils::GetHTTP(url, responseData, Log::IsShowDebug())) {
- Log::Error("CartoOnlineTileDataSource: Failed to fetch tile source configuration");
- return false;
+ Log::Warnf("CartoOnlineTileDataSource: Failed to fetch tile sourc... |
sys/socket/scm: return NULL when cmsg_len is zero | @@ -348,11 +348,12 @@ static inline FAR struct cmsghdr *__cmsg_nxthdr(FAR void *__ctl,
unsigned int __size,
FAR struct cmsghdr *__cmsg)
{
- FAR struct cmsghdr *__ptr;
+ size_t len = CMSG_ALIGN(__cmsg->cmsg_len);
+ FAR struct cmsghdr *__ptr =
+ (FAR struct cmsghdr *)(((FAR char *)__cmsg) + len);
- __ptr = (FAR struct cm... |
pyapi CHANGE ignore server hostkey in serverinfo example | @@ -12,6 +12,9 @@ def interactive_auth(name, instruct, prompt, data):
def password_auth(user, host, data):
return getpass.getpass((user if user else os.getlogin()) + '@' + host + ' password : ')
+def hostkey_check(hostname, state, keytype, hexa, priv):
+ return True
+
#
# get know where to connect
#
@@ -31,6 +34,7 @@ e... |
test-suite: include compiler/mpi family designation in names for several TAU tests | @@ -21,7 +21,7 @@ setup() {
module load $module
}
-@test "[$testname] Verify $module module is loaded and matches rpm version" {
+@test "[$testname] Verify $module module is loaded and matches rpm version ($LMOD_FAMILY_COMPILER/$LMOD_FAMILY_MPI)" {
module list $module | grep "1) $module" >& .cmd_output || exit 1
run gr... |
Update secure_comparator_t.h
Some refinements of a comment | @@ -31,7 +31,8 @@ typedef themis_status_t (*secure_compare_handler)(secure_comparator_t *comp_ctx,
* secret -> value to compare of each peer (x - for Alice, y - for Bob)
* rand, rand2, rand3 -> random values of each peer(r, a2, a3 - for Alice; s, b2, b3 - for Bob)
* g2, g3, P, Q -> intermediate parameters of each peer ... |
crypto: tutorial correction | @@ -66,14 +66,14 @@ An example backend configuration is given as follows:
kdb mount test.ini user/test crypto_gcrypt "crypto/key=DDEBEF9EE2DC931701338212DAF635B17F230E8D" base64 ini
-We recommend to add the `base64` plugin to the backend, because `crypto` will output binary data.
+We recommend adding the `base64` plugi... |
Add AARCH64 architecture to default seccomp profile | {
"defaultAction": "SCMP_ACT_ERRNO",
- "architectures": ["SCMP_ARCH_X86_64", "SCMP_ARCH_X86", "SCMP_ARCH_X32"],
+ "architectures": ["SCMP_ARCH_X86_64", "SCMP_ARCH_X86", "SCMP_ARCH_X32", "SCMP_ARCH_AARCH64"],
"syscalls": [
{
"names": [
|
Update with 0.3.7 changes | OpenBLAS ChangeLog
+====================================================================
+Version 0.3.7
+11-Aug 2019
+
+common:
+ * having the gmake special variables TARGET_ARCH or TARGET_MACH
+ defined no longer causes build failures in ctest or utest
+ * defining NO_AFFINITY or USE_TLS to 0 in gmake builds no longer... |
added much better suggestion
mess | |= {gol/goal mod/dojo-model} ^- dojo-command
[[%poke gol] [0 [%ge mod(q.p [q.gol q.p.mod])]]]
::
- ++ dp-command-line ;~(sfix dp-command (just '\0a'))
+ ++ dp-command-line ;~(sfix dp-command (star ace) (just '\0a'))
++ dp-variable :: %verb or %brev
|* {sym/rule src/rule}
%+ cook
++ he-duke :: ++he-dope variant
|= txt/t... |
Improve documentation for Callback and AnyValue | @@ -21,7 +21,8 @@ import Control.Exception (IOException, try)
import Foreign.Lua (Lua, NumResults(..), Peekable, Pushable, StackIndex)
import qualified Foreign.Lua as Lua
--- | Lua callback function
+-- | Lua callback function. This type is similar to @'AnyValue'@, and
+-- the same caveats apply.
newtype Callback = Cal... |
Typo: USE_NOFITY_POLL -> USE_NOTIFY_POLL | #if !defined(CONFIG_DISABLE_SIGNALS) && !defined(CONFIG_DISABLE_POLL)
# define USE_NOTIFY_SIGNAL 1
#else
-# define USE_NOFITY_POLL 1
+# define USE_NOTIFY_POLL 1
#endif
#ifndef CONFIG_BUTTONS_NPOLLWAITERS
|
Test with both 32-bits and 64-bits on AppVeyor | build: off
+clone_folder: "c:\\hslua"
+
+environment:
+ matrix:
+ - STACK_VERSION: "windows-i386"
+ STACK_ROOT: "c:\\sr32"
+ STACK: "%STACK_ROOT%\\stack.exe"
+ STACK_FLAGS: "--flag hslua:lua_32bits"
+ - STACK_VERSION: "windows-x86_64"
+ STACK_ROOT: "c:\\sr64"
+ STACK: "%STACK_ROOT%\\stack.exe"
+ STACK_FLAGS: ""
+
+matr... |
Node.js: changed the 'data' event calling sequence for the request.
The problem is caused by Promises' inconsistency.
The 'date' event could have been triggered before the user has started
listening for it. To resolve the issue, we override the 'on' method of
the request's emitter. | @@ -288,6 +288,28 @@ ServerRequest.prototype.resume = function resume() {
return [];
};
+/*
+ * The "on" method is overridden to defer reading data until user code is
+ * ready, that is (ev === "data"). This can occur after req.emit("end") is
+ * executed, since the user code can be scheduled asynchronously by Promises... |
Fix GetFrequency() check for TDD mode | @@ -1297,12 +1297,16 @@ double LMS7_Device::GetFrequency(bool tx, unsigned chan) const
if (!tx)
{
+ const uint8_t mac = lms->Get_SPI_Reg_bits(LMS7_MAC);
lms->Modify_SPI_Reg_bits(LMS7_MAC, 2);
- if (lms->Get_SPI_Reg_bits(LMS7_PD_LOCH_T2RBUF)==0);
+ if (lms->Get_SPI_Reg_bits(LMS7_PD_LOCH_T2RBUF)==0)
+ {
lms->Modify_SPI_R... |
Add name to program too large error message
Add name to program too large error message | @@ -481,8 +481,8 @@ int bpf_prog_load(enum bpf_prog_type prog_type, const char *name,
if (attr.insn_cnt > BPF_MAXINSNS) {
errno = EINVAL;
fprintf(stderr,
- "bpf: %s. Program too large (%u insns), at most %d insns\n\n",
- strerror(errno), attr.insn_cnt, BPF_MAXINSNS);
+ "bpf: %s. Program %s too large (%u insns), at most... |
Add note about USB/serial adapters
[ci skip] | @@ -10,10 +10,10 @@ In addition to the packages listed in the top level README, this also requires
## Setup
1. This loads programs onto the board over the serial port, so your development
-machine must be connected to the FPGA board with a serial cable.
+machine must be connected to the FPGA board with a serial cable.<... |
input: don't show backbutton when it doesn't do anything | @@ -208,7 +208,11 @@ static void _render(component_t* component)
data->confirm_component->f->render(data->confirm_component);
}
if (!confirm_gesture_active) {
+ if (data->string_index != 0 ||
+ trinary_input_char_in_progress(data->trinary_char_component) ||
+ data->cancel_cb != NULL) {
data->left_arrow_component->f->re... |
Remove Hard Coded Alias and WI from Ingest PR | @@ -53,8 +53,6 @@ class CheckinBranch {
[string]$name;
[string]$completePR = "False";
[string]$pullRequestTitle;
- [string]$workitem = "37338822"
- [string]$optionalReviewers = "nibanks@microsoft.com"
[CheckinFile[]]$CheckinFiles;
CheckinBranch($ManifestFile, $BranchToPushTo, $PRTitle) {
|
Simplified UB tag output in collapseUMI 1MM_All using unordered_map. | @@ -317,10 +317,10 @@ void SoloFeature::collapseUMI(uint32 iCB, uint32 *umiArray)
const uint32 bitTopMask=~(1<<31);
vector<array<uint32,2>> umiBest(graphN,{0,0});
- uint32 umiCorrN=0;//number of umi to error-correct
+ unordered_map<uintUMI,uint32> umiCorrColor;
for (uint32 iu=0; iu<umiArrayStride*nU0; iu+=umiArrayStrid... |
Changelog entry for client side XoT | +9 July 2021: Willem
+ - Client side DNS Zone Transfer-over-TLS (XoT) support as per
+ draft-ietf-dprive-xfr-over-tls
+
29 June 2021: Willem
- Fix #168: Buffer overflow in the dname_to_string() function
|
Remove IAS enrollment check
Covered already by IAS zone refactor | @@ -2901,11 +2901,6 @@ bool DeRestPluginPrivate::checkSensorBindingsForAttributeReporting(Sensor *senso
val.maxInterval -= 5; // report before going presence: false
}
}
-
- if (sensor->manufacturer() == QLatin1String("Immax"))
- {
- checkIasEnrollmentStatus(sensor);
- }
}
else if (*i == VENDOR_CLUSTER_ID)
{
|
avf: free spinlock on txq removal
Type: fix | @@ -304,6 +304,7 @@ avf_txq_init (vlib_main_t * vm, avf_device_t * ad, u16 qid, u16 txq_size)
{
qid = qid % ad->num_queue_pairs;
txq = vec_elt_at_index (ad->txqs, qid);
+ ASSERT (txq->lock == 0);
clib_spinlock_init (&txq->lock);
ad->flags |= AVF_DEVICE_F_SHARED_TXQ_LOCK;
return 0;
@@ -1529,6 +1530,7 @@ avf_delete_if (v... |
fix issue with splitting big queries in dynamic boosting | @@ -256,7 +256,7 @@ namespace NCatboostCuda {
for (ui32 i = 0; i < devCount; ++i) {
const ui64 devSize = (i + 1 != devCount ? docsPerDevice : (docCount - total));
- ui64 nextDevDoc = samplesGrouping.NextQueryOffsetForLine(total + devSize - 1);
+ ui64 nextDevDoc = samplesGrouping.NextQueryOffsetForLine(Min<ui32>(total +... |
OCSP_resp_find_status.pod: Slightly improve the documentation of various flags | @@ -121,24 +121,25 @@ signed and that the signer certificate can be validated. It takes I<st> as
the trusted store and I<certs> as a set of untrusted intermediate certificates.
The function first tries to find the signer certificate of the response
in I<certs>. It then searches the certificates the responder may have i... |
Added --process-and-exit command line option to the man page. | @@ -536,6 +536,9 @@ Ensure clients send the specified origin header upon the WebSocket handshake.
Specify the port to use. By default GoAccess' WebSocket server listens on port
7890.
.TP
+\fB\-\-process-and-exit
+Parse log and exit without outputting data.
+.TP
\fB\-\-real-os
Display real OS names. e.g, Windows XP, Sno... |
Year increment | -Copyright 2017-2018 YANDEX LLC
+Copyright 2017-2019 YANDEX LLC
Apache License
Version 2.0, January 2004
|
website-frontend: ... | @@ -408,6 +408,7 @@ plugins, bindings and tools are always up to date. Furthermore, we changed:
- The Website now lives in the folders [website-frontend](/src/tools/website-frontend) and [website-backend](/src/tools/website-backend) to avoid confusion with the REST backend of the Web-UI. _(Markus Raab)_
- Renamed the s... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.