message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
OcMainLib: typo | @@ -342,7 +342,7 @@ OcMiscGetVersionString (
STATIC_ASSERT (
L_STR_LEN (OPEN_CORE_TARGET) == 3,
- "OPEN_CORE_TARGET must XYZ format, where XYZ is build target."
+ "OPEN_CORE_TARGET must follow XYZ format, where XYZ is build target."
);
STATIC CHAR8 mOpenCoreVersion[] = {
|
vere: when scry crashes, produce fake result of ~
In the long term, we don't want to pretend we got "no result", and
handle crashes by whatever behavior is appropriate.
In the short term, we don't want to burden callsites with crash
handling, so we punt on the problem by producing ~. | @@ -349,6 +349,8 @@ _lord_plea_peek_bail(u3_lord* god_u, u3_peek* pek_u, u3_noun dud)
{
u3_pier_punt_goof("peek", dud);
+ pek_u->fun_f(pek_u->ptr_v, u3_nul);
+
u3z(pek_u->now);
u3z(pek_u->gan);
u3z(pek_u->ful);
|
pybricks.common.LightMatrix: reset on start
This fixes the orientation not resetting in between program runs. | @@ -329,6 +329,7 @@ mp_obj_t pb_type_Lightmatrix_obj_new(pbio_light_matrix_t *light_matrix) {
common_Lightmatrix_obj_t *self = m_new_obj(common_Lightmatrix_obj_t);
self->base.type = &pb_type_Lightmatrix;
self->light_matrix = light_matrix;
+ pbio_light_matrix_set_orientation(light_matrix, PBIO_SIDE_TOP);
return self;
}
|
filter_parser: fix return value | @@ -185,6 +185,7 @@ static int cb_parser_filter(void *data, size_t bytes,
msgpack_object_kv *kv;
int i;
int ret = FLB_FILTER_NOTOUCH;
+ int parse_ret = -1;
int map_num;
char *key_str;
int key_len;
@@ -254,10 +255,10 @@ static int cb_parser_filter(void *data, size_t bytes,
mk_list_foreach(head, &ctx->parsers) {
fp = mk_... |
Added ability to change opt level in makefile | @@ -12,6 +12,7 @@ PREFIX?=/usr/local
@echo "USE_ASAN?=$(USE_ASAN)" > .options
@echo "LINUX_USE_HIDAPI?=$(LINUX_USE_HIDAPI)" >> .options
@echo "MINIMAL?=$(MINIMAL)" >> .options
+ @echo "OPT?=$(OPT)" >> .options
.PHONY : help clean buildfolders plugins all install uninstall .options
@@ -19,15 +20,17 @@ OBJDIR:=build
LIBD... |
serf: fix incorrect structure in %peek response | @@ -791,7 +791,7 @@ u3_serf_play(u3_serf* sef_u, c3_d eve_d, u3_noun lit)
u3_noun
u3_serf_peek(u3_serf* sef_u, c3_w mil_w, u3_noun sam)
{
- u3_noun wen, pat, gon, pro;
+ u3_noun wen, pat, pro;
// stash the previous date and set current
//
@@ -805,14 +805,19 @@ u3_serf_peek(u3_serf* sef_u, c3_w mil_w, u3_noun sam)
u3A->... |
stm32/modnetwork: Fix arg indexing in generic ifconfig method. | @@ -136,7 +136,7 @@ mp_obj_t mod_network_nic_ifconfig(struct netif *netif, size_t n_args, const mp_o
netutils_format_ipv4_addr((uint8_t*)&dns, NETUTILS_BIG),
};
return mp_obj_new_tuple(4, tuple);
- } else if (args[1] == MP_OBJ_NEW_QSTR(MP_QSTR_dhcp)) {
+ } else if (args[0] == MP_OBJ_NEW_QSTR(MP_QSTR_dhcp)) {
// Start t... |
move start message back
If kadnode is configured to be quiet, then output should happen after the configuration has been read. | @@ -188,6 +188,7 @@ const char *verbosity_str(int verbosity)
void conf_info(void)
{
+ log_info("Starting %s", kadnode_version_str);
log_info("Net Mode: %s", str_af(gconf->af));
log_info("Run Mode: %s", gconf->is_daemon ? "daemon" : "foreground");
@@ -670,8 +671,6 @@ int conf_setup(int argc, char **argv)
#endif
});
- lo... |
Map getblockchain response to correct type. Fixes | @@ -371,7 +371,7 @@ namespace MiningCore.Blockchain.Bitcoin
protected override async Task<bool> AreDaemonsHealthy()
{
- var responses = await daemon.ExecuteCmdAllAsync<Info>(BitcoinCommands.GetBlockchainInfo);
+ var responses = await daemon.ExecuteCmdAllAsync<BlockchainInfo>(BitcoinCommands.GetBlockchainInfo);
if (resp... |
Allocate outbuffer of size avail_in * 5 | @@ -513,15 +513,16 @@ void AriaDecoderV3::InflateVector(std::vector<uint8_t> &in, std::vector<uint8_t>
zs.next_in = (Bytef *)in.data();
zs.avail_in = (uInt)in.size();
int ret;
- // FIXME: [MG] - ideally we should allocate the decompression buffer on heap,
- // not on stack. The problem with 32K is that it's too small a... |
parser: make config reader format case-unsensitive | @@ -134,10 +134,10 @@ struct flb_parser *flb_parser_create(char *name, char *format,
p->decoders = decoders;
/* Format lookup */
- if (strcmp(format, "regex") == 0) {
+ if (strcasecmp(format, "regex") == 0) {
p->type = FLB_PARSER_REGEX;
}
- else if (strcmp(format, "json") == 0) {
+ else if (strcasecmp(format, "json") =... |
groupSwitcher: prevent text clipping | @@ -162,7 +162,7 @@ export function GroupSwitcher(props: {
>
<Row width='100%' minWidth='0' flexShrink={0}>
<Row justifyContent="space-between" mr={1} flexShrink={0} width='100%' minWidth='0'>
- <Text lineHeight="1" fontSize='2' fontWeight="700" overflow='hidden' display='inline-block' flexShrink='1' style={{ textOverf... |
ssl.h: adapt guards for MBEDTLS_SSL_TLS1_3_TICKET_RESUMPTION_KEY_LEN | #define MBEDTLS_SSL_SRV_CIPHERSUITE_ORDER_SERVER 0
#if defined(MBEDTLS_SSL_PROTO_TLS1_3) && defined(MBEDTLS_SSL_SESSION_TICKETS)
-#if defined(MBEDTLS_SHA384_C)
+#if ( !defined(MBEDTLS_USE_PSA_CRYPTO) && \
+ defined(MBEDTLS_MD_C) && defined(MBEDTLS_SHA256_C) ) || \
+ ( defined(MBEDTLS_USE_PSA_CRYPTO) && defined(PSA_WANT... |
Address double error and OSSLzu comments. | @@ -45,9 +45,9 @@ static int test_tbl_standard()
return 1;
}
- TEST_error("asn1 tbl_standard: out of order");
+ TEST_info("asn1 tbl_standard: out of order");
for (tmp = tbl_standard, i = 0; i < OSSL_NELEM(tbl_standard); i++, tmp++)
- TEST_note("asn1 tbl_standard: Index %" OSSLzu ", NID %d, Name=%s",
+ TEST_note("asn1 t... |
crypto: fix contract.h | * @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*/
+#define ELEKTRA_CRYPTO_CONTRACT_XSTR_VAL(s) #s
+#define ELEKTRA_CRYPTO_CONTRACT_STR_VAL(s) ELEKTRA_CRYPTO_CONTRACT_XSTR_VAL (s)
+
keyNew ("system/elektra/modules/" ELEKTRA_PLUGIN_NAME, KEY_VALUE, "crypto plugin waits for your orders", KEY_END),... |
Fix resource for newly added CS tinc jobs. | @@ -402,7 +402,7 @@ jobs:
params: {submodules: none}
passed: [compile_gpdb_centos6]
- get: bin_gpdb
- resource: bin_gpdb_centos
+ resource: bin_gpdb_centos6
passed: [compile_gpdb_centos6]
trigger: true
- get: centos-gpdb-dev-6
@@ -420,7 +420,7 @@ jobs:
params: {submodules: none}
passed: [compile_gpdb_centos6]
- get: bi... |
add cuda 2.0 and tiny unroll config tuning in pointwise histogram | @@ -345,7 +345,10 @@ namespace NKernel
if (USE_64_BIT_LOAD)
{
- #if __CUDA_ARCH__ <= 350
+ #if __CUDA_ARCH__ < 300
+ const int INNER_UNROLL = (INNER_HIST_BITS_COUNT + OUTER_HIST_BITS_COUNT) == 0 ? 4 : 2;
+ const int OUTER_UNROLL = 2;
+ #elif __CUDA_ARCH__ <= 350
const int INNER_UNROLL = (INNER_HIST_BITS_COUNT + OUTER_H... |
Fix invalid function references in a few comments
These appear to have been forgotten when the functions were renamed in
Backpatch-through: 13, where the functions were renamed | @@ -545,11 +545,11 @@ pg_lltoa(int64 value, char *a)
* The intended use-case for this function is to build strings that contain
* multiple individual numbers, for example:
*
- * str = pg_ltostr_zeropad(str, hours, 2);
+ * str = pg_ultostr_zeropad(str, hours, 2);
* *str++ = ':';
- * str = pg_ltostr_zeropad(str, mins, 2)... |
netkvm: workaround for SDV of DDK 1809
The SDV build (msbuild /t:sdv /inputs:"/check") crashes
on this line. This looks like a bug of SDV, but we change
it in order to make transition to 2017 faster. | @@ -52,7 +52,7 @@ public:
VOID CreateNBL(USHORT *IPV6);
VOID SendNBLs();
static void NblCompletionCallback(PNET_BUFFER_LIST NBL);
- static const ULONG cloneFlags = NDIS_CLONE_FLAGS_USE_ORIGINAL_MDLS;
+ enum { cloneFlags = NDIS_CLONE_FLAGS_USE_ORIGINAL_MDLS };
private:
VOID CreateNBL(PVOID packet, UINT size, bool isIPV4... |
BugID:16967023:[examples] delelte weak func set_iotx_info in app_entry | #include <stdarg.h>
#include "app_entry.h"
-void __attribute__((weak)) set_iotx_info()
-{
-
-}
int main(int argc, char **argv)
{
@@ -19,9 +15,6 @@ int main(int argc, char **argv)
paras.argc = argc;
paras.argv = argv;
-#ifdef WIFI_PROVISION_ENABLED
- set_iotx_info();
-#endif
linkkit_main((void *)¶s);
return 0;
}
|
Check whether cargo exists and disable the blazesym feature.
refs: | @@ -18,8 +18,13 @@ ARCH := $(shell uname -m | sed 's/x86_64/x86/' | sed 's/aarch64/arm64/' \
| sed 's/riscv64/riscv/' | sed 's/loongarch.*/loongarch/')
BTFHUB_ARCHIVE ?= $(abspath btfhub-archive)
ifeq ($(ARCH),x86)
+CARGO ?= $(shell which cargo)
+ifeq ($(strip $(CARGO)),)
+USE_BLAZESYM ?= 0
+else
USE_BLAZESYM ?= 1
endi... |
Rollback "make -d" | @@ -70,7 +70,7 @@ jobs:
name: macbuild
environment:
NANOS_TARGET_ROOT: target-root
- command: make -d
+ command: make
- run: curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-240.0.0-darwin-x86_64.tar.gz
- run: tar xzf google-cloud-sdk*.tar.gz
|
Tweak some code for style consistency. | @@ -257,11 +257,11 @@ func (q *checker) tcheckAssign(n *a.Assign) error {
switch n.Operator().Key() {
case t.KeyShiftLEq, t.KeyShiftREq:
- if rTyp.IsNumTypeOrIdeal() {
- return nil
- }
+ if !rTyp.IsNumTypeOrIdeal() {
return fmt.Errorf("check: assignment %q: shift %q, of type %q, does not have numeric type",
n.Operator(... |
Directory Value: Fix semantics of Doxygen comment | @@ -288,8 +288,8 @@ KeySetPair splitEmptyArrayParents (CppKeySet const & arrayParents)
/**
* @brief This function changes an array index of the given array element by one.
*
- * @param parent This key set stores an array parent of `element`. The function will change the index of `element` that is directly below
- * thi... |
reduce noise, and tabs | @@ -29,17 +29,19 @@ static const char help_str[] = "Analytical simulation tool.";
static void get_signal(const struct signal_model* parm, int N, complex float* out, const complex float* in)
{
complex float sum = 0.;
+ int av_spokes = parm->averaged_spokes;
- debug_printf(DP_INFO, "Spoke Averaging: %d\n", parm->averaged... |
add bar_number | @@ -158,6 +158,7 @@ typedef struct clap_event_jump {
double song_pos_seconds; // position in seconds
double bar_start; // start pos of the current bar
+ int32_t bar_number; // bar at song pos 0 has the number 0
} clap_event_jump;
typedef struct clap_event_tsig {
|
Fix memory leak when viewing plugin options | @@ -200,8 +200,9 @@ PPH_PLUGIN_TREE_ROOT_NODE AddPluginsNode(
pluginNode->PluginInstance = Plugin;
pluginNode->PluginOptions = Plugin->Information.HasOptions;
pluginNode->InternalName = PhCreateString2(&Plugin->Name);
+ if (Plugin->Information.DisplayName)
pluginNode->Name = PhCreateString(Plugin->Information.DisplayNa... |
Fix call to match in run-context | (while parser-not-done
(if (env :exit) (break))
(buffer/clear buf)
- (match (= (chunks buf p))
+ (match (chunks buf p)
:cancel
(do
# A :cancel chunk represents a cancelled form in the REPL, so reset.
|
NetBIOS Datagrams is port 138, not 128 | @@ -1403,8 +1403,8 @@ QuicBindingDropBlockedSourcePorts(
500, // IKE
389, // CLDAP
161, // SNMP
+ 138, // NETBIOS Datagram Service
137, // NETBIOS Name Service
- 128, // NETBIOS Datagram Service
123, // NTP
111, // Portmap
53, // DNS
|
io-libs/netcdf: bump version to v4.6.3 | @@ -23,7 +23,7 @@ Name: %{pname}-%{compiler_family}-%{mpi_family}%{PROJ_DELIM}
Summary: C Libraries for the Unidata network Common Data Form
License: NetCDF
Group: %{PROJ_NAME}/io-libs
-Version: 4.6.2
+Version: 4.6.3
Release: 1%{?dist}
Url: http://www.unidata.ucar.edu/software/netcdf/
Source0: https://github.com/Unidat... |
build: bump to v1.9.0 | @@ -3,7 +3,7 @@ project(fluent-bit)
# Fluent Bit Version
set(FLB_VERSION_MAJOR 1)
-set(FLB_VERSION_MINOR 8)
+set(FLB_VERSION_MINOR 9)
set(FLB_VERSION_PATCH 0)
set(FLB_VERSION_STR "${FLB_VERSION_MAJOR}.${FLB_VERSION_MINOR}.${FLB_VERSION_PATCH}")
|
perf(non-null judgment):
add non-null judgment of "layoutCfg" in BoatHlfabricDiscoverySubmit() | @@ -925,6 +925,10 @@ BOAT_RESULT BoatHlfabricDiscoverySubmit(BoatHlfabricTx *tx_ptr, const BoatHlfabr
}
tx_ptr->wallet_ptr->network_info.endorserLayoutNum = discoverResult.cc_res.num;
tx_ptr->wallet_ptr->network_info.layoutCfg = BoatMalloc(tx_ptr->wallet_ptr->network_info.endorserLayoutNum * sizeof(BoatHlfabricNodeLayo... |
landscape/groupSwitcher: link to group with row
Previously, you had to click the text inside the recent groups menu.
This makes the entire row clickable. | @@ -49,7 +49,8 @@ function RecentGroups(props: { recent: string[]; associations: Associations }) {
const assoc = associations.contacts[g];
const color = uxToHex(assoc?.metadata?.color || "0x0");
return (
- <Row key={g} px={1} pb={2} alignItems="center">
+ <Link key={g} style={{ minWidth: 0 }} to={`/~landscape${g}`}>
+ ... |
Fix failing container unit-test
JerryScript-DCO-1.0-Signed-off-by: Bela Toth | @@ -49,7 +49,7 @@ create_array_from_container_handler (const jerry_call_info_t *call_info_p,
bool is_key_value_pairs = false;
jerry_value_t result = jerry_get_array_from_container (args_p[0], &is_key_value_pairs);
- TEST_ASSERT (is_key_value_pairs == jerry_get_boolean_value (args_p[1]));
+ TEST_ASSERT (is_key_value_pai... |
use kad socket | @@ -54,7 +54,7 @@ struct bob_resource {
IP addr;
};
-static int bob_socket = -1;
+static int g_dht_socket = -1;
static struct key_t *g_keys = NULL;
static time_t g_send_challenges = 0;
static struct bob_resource g_bob_resources[8];
@@ -259,19 +259,19 @@ void bob_trigger_auth( void ) {
resource->challenges_send = 0;
byt... |
Corrected the read of the loader string from .interp to use the offset and not vaddr. This was found to be required on Debian 8. | #define DEFAULT_BIN_FNAME "ldscopedyn"
#define LIBMUSL "musl"
#define ALWAYSEXTRACT 0
-#define DEBUG 0
+#define DEBUG 1
typedef struct libscope_info_t {
char *path;
@@ -204,7 +204,7 @@ get_loader(char *exe)
for (i = 0; i < elf->e_phnum; i++) {
if ((phead[i].p_type == PT_INTERP)) {
- char *exld = (char *)&buf[phead[i].p... |
Clear the IPD parsing in case of manual TCP receive | @@ -298,6 +298,8 @@ espi_parse_ipd(const char* str) {
/*
* Data read procedure may only happen in case there is
* data packet available, otherwise do nothing further about this information
+ *
+ * This check should be always positive when ESP_CFG_CONN_MANUAL_TCP_RECEIVE is disabled
*/
if (is_data_ipd) { /* Shall we sta... |
board/lantis/board.h: Format with clang-format
BRANCH=none
TEST=none | #define CONFIG_CHARGER_OTG
#undef CONFIG_CHARGER_SINGLE_CHIP
#define CONFIG_OCPC
-#define CONFIG_OCPC_DEF_RBATT_MOHMS 21 /* R_DS(on) 10.7mOhm + 10mOhm sns rstr */
+#define CONFIG_OCPC_DEF_RBATT_MOHMS 21 /* R_DS(on) 10.7mOhm + 10mOhm sns rstr \
+ */
/* PWM */
#define CONFIG_PWM
@@ -104,12 +105,7 @@ enum pwm_channel {
};... |
input_thread: added cleanup and timeout management | #include <fluent-bit/flb_event_loop.h>
#include <fluent-bit/flb_utils.h>
#include <fluent-bit/flb_scheduler.h>
+#include <fluent-bit/flb_downstream.h>
#include <fluent-bit/flb_input.h>
#include <fluent-bit/flb_input_plugin.h>
#include <fluent-bit/flb_input_thread.h>
static int input_thread_instance_set_status(struct fl... |
SOVERSION bump to version 4.2.2 | @@ -39,7 +39,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 2)
-set(SYSREPO_MICRO_SOVERSION 1)
+set(SYSREPO_MICRO_SO... |
AMD FP6: Correct array size
The value CONFIG_USB_PD_PORT_MAX_COUNT is the standard one to use for
arrays representing PD ports.
BRANCH=None
TEST=make -j buildall | @@ -34,7 +34,7 @@ static struct {
const struct usb_mux *mux;
uint8_t val;
bool write_pending;
-} saved_mux_state[USBC_PORT_COUNT];
+} saved_mux_state[CONFIG_USB_PD_PORT_MAX_COUNT];
static int amd_fp6_mux_port0_read(const struct usb_mux *me, uint8_t *val)
{
|
Rename several lines to remove repeated ones
Was breaking the build
care to check these? | #define LINE_RST4 PAL_LINE(GPIOD, 0U)
#define LINE_CS4 PAL_LINE(GPIOD, 1U)
-#define LINE_CS4 PAL_LINE(GPIOD, 2U)
+#define LINE_CS5 PAL_LINE(GPIOD, 2U)
#define LINE_GPIO11 PAL_LINE(GPIOD, 3U)
#define LINE_GPIO12 PAL_LINE(GPIOD, 4U)
-#define LINE_CS4 PAL_LINE(GPIOD, 5U)
+#define LINE_CS6 PAL_LINE(GPIOD, 5U)
#define LINE_... |
fix bug: timeout triggered session event deleting lead to crash | @@ -1621,6 +1621,7 @@ static int session_attach(request_t* r)
session->active_segids[r->segid] = 1; /* mark this segid as active */
session->maxsegs = r->totalsegs;
session->requests = apr_hash_make(pool);
+ event_set(&session->ev, 0, 0, 0, 0);
if (session->tid == 0 || session->path == 0 || session->key == 0)
gfatal(r,... |
Add off animation and correct initial switch state | @@ -165,6 +165,28 @@ void lv_sw_off(lv_obj_t * sw)
if(!lv_sw_get_state(sw)) return; /*Do nothing is already turned off*/
lv_sw_ext_t * ext = lv_obj_get_ext_attr(sw);
+#if USE_LV_ANIMATION
+ if(lv_sw_get_anim_time(sw) > 0) {
+ if(ext->anim_act) {
+ lv_anim_del(sw, NULL);
+ ext->anim_act = 0;
+ }
+ ext->cur_anim.var = sw... |
alua: fails when the access status/type is invalid | @@ -280,8 +280,10 @@ tcmu_get_tgt_port_grp(struct tcmu_device *dev, const char *name)
group->status = ALUA_STAT_ALTERED_BY_EXPLICIT_STPG;
else if (!strcmp(str_val, "Altered by Implicit ALUA"))
group->status = ALUA_STAT_ALTERED_BY_IMPLICIT_ALUA;
- else
+ else {
tcmu_err("Invalid ALUA status %s", str_val);
+ goto free_st... |
Restore :source property to keep import* working at REPL | (file/read stdin :line buf))
(def env (make-env))
(when-let [profile.janet (dyn :profilepath)]
- (def new-env (dofile profile.janet :exit true :env env))
- (merge-module env new-env "" false))
+ (def src (env :source))
+ (def new-env (dofile profile.janet :exit true :source "profile.janet"))
+ (merge-module env new-env... |
Replace csched sampling asserts with defensive checks... | @@ -1330,16 +1330,23 @@ sp3_prune_trees(struct sp3 *sp)
sp3_log_samp_one_tree(tree);
sp3_log_samp_overall(sp);
+#ifdef HSE_BUILD_DEBUG
assert(sp->samp.i_alen >= tree->ct_samp.i_alen);
assert(sp->samp.r_alen >= tree->ct_samp.r_alen);
assert(sp->samp.r_wlen >= tree->ct_samp.r_wlen);
assert(sp->samp.l_alen >= tree->ct_sam... |
remove unecessary changes in t/ | @@ -30,8 +30,6 @@ my $quic_port = empty_port({ host => "0.0.0.0", proto => "udp" });
# start server1 at 0.0.0.0, check that it is up
my $server1 = spawn("0.0.0.0", 1);
-system("sudo build/h2olog quic -p '$server1->{pid}' -d -w server1.json &");
-sleep 3;
is do {my $fh = fetch(""); local $/; join "", <$fh> }, "server=1"... |
YAML CPP: Log read key set | */
#include "read.hpp"
+#include "log.hpp"
#include "yaml-cpp/yaml.h"
#include <kdb.hpp>
@@ -229,5 +230,9 @@ void yamlcpp::yamlRead (KeySet & mappings, Key & parent)
#endif
convertNodeToKeySet (config, mappings, parent);
- ELEKTRA_LOG_DEBUG ("Added %zd key%s", mappings.size (), mappings.size () == 1 ? "" : "s");
+
+#if... |
server session BUFGIX try to prevent invalid mutex destruction
It does not seem to have worked, though... | @@ -1463,6 +1463,8 @@ nc_server_add_endpt(const char *name, NC_TRANSPORT_IMPL ti)
server_opts.endpts[server_opts.endpt_count - 1].name = lydict_insert(server_opts.ctx, name, 0);
server_opts.endpts[server_opts.endpt_count - 1].ti = ti;
+ pthread_mutex_init(&server_opts.endpts[server_opts.endpt_count - 1].lock, NULL);
+
... |
changing daemon log path | {
"cnc": {
- "daemon_log_path": "\"/var/log.daemon.log\"",
+ "daemon_log_path": "\"/home/var/log.daemon.log\"",
"registry_dir": "\"/usr/local/kubos\"",
"daemon_rx_pipe": "\"/usr/local/kubos/client-to-server\"",
"daemon_tx_pipe": "\"/usr/local/kubos/server-to-client\""
|
Fix fast array array hole initialization
This patch eliminates the valgrind error: "Conditional jump or move depends on uninitialised value(s)".
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik | @@ -86,6 +86,7 @@ ecma_op_new_array_object (ecma_length_t length) /**< length of the new array */
ecma_extended_object_t *ext_obj_p = (ecma_extended_object_t *) object_p;
ext_obj_p->u.array.length = length;
+ ext_obj_p->u.array.u.hole_count = 0;
ext_obj_p->u.array.u.length_prop = ECMA_PROPERTY_FLAG_WRITABLE | ECMA_PROP... |
Makefile: Add -Werror to try-cflag so it works on clang
Clangs prints warnings when it sees unknown command line options. Adding
Werror to the command line to upgrade them to errors results in clang
exiting with exit code 1 which is what try-cflag expects. | @@ -20,8 +20,8 @@ try = $(shell set -e; if ($(1)) >/dev/null 2>&1; \
then echo "$(2)"; \
else echo "$(3)"; fi )
-try-cflag = $(call try,$(1) $(2) -x c -c /dev/null -o /dev/null,$(2))
-test_cflag = $(call try,$(1) $(2) -x c -c /dev/null -o /dev/null,1,0)
+try-cflag = $(call try,$(1) -Werror $(2) -x c -c /dev/null -o /de... |
chat: prevent reflow from image loading
Sets a static height on inline images in chat to prevent loss of scroll
position.
Fixes | @@ -87,8 +87,8 @@ export class Message extends Component {
className="o-80-d"
src={letter.url}
style={{
- width: '50%',
- maxWidth: '250px'
+ height: 'min(250px, 20vh)',
+ maxWidth: '80vw'
}}
></img>
);
|
admin/meta-packages: restore install of singularity with runtimes metapackage | @@ -351,6 +351,7 @@ Collection of python3 related library builds for use with GNU compiler toolchain
%package -n %{PROJ_NAME}-%{compiler_family}-runtimes
Summary: OpenHPC runtimes for GNU
Requires: charliecloud%{PROJ_DELIM}
+Required: singularity
%description -n %{PROJ_NAME}-%{compiler_family}-runtimes
Collection of ru... |
restyled: fix clang-format commant to use our style file | @@ -8,6 +8,10 @@ restylers:
include:
- "!tests/shell/gen/**/*"
- "!**/*.js"
+ command:
+ - clang-format
+ - "-i"
+ - "--style=file"
- prettier:
image: restyled/restyler-prettier:v2.3.2
- prettier-markdown:
|
MuPDF build changes... | @@ -35,7 +35,7 @@ parts:
mupdf:
plugin: make
make-install-var: prefix
- make-parameters: [HAVE_X11=no, HAVE_GLFW=no]
+ make-parameters: [HAVE_X11=no, HAVE_GLFW=no, HAVE_GLUT=no]
source: https://mupdf.com/downloads/mupdf-1.12.0-source.tar.gz
prime:
- -bin/mu*
|
PicoGraphics: Only consider used palette entries for dither. | @@ -99,10 +99,16 @@ namespace pimoroni {
void PicoGraphics_PenP4::set_pixel_dither(const Point &p, const RGB &c) {
if(!bounds.contains(p)) return;
+ uint used_palette_entries = 0;
+ for(auto i = 0u; i < palette_size; i++) {
+ if(!used[i]) break;
+ used_palette_entries++;
+ }
+
if(!cache_built) {
for(uint i = 0; i < 512... |
sysdeps/managarm: Convert sys_setgid to bragi | @@ -218,37 +218,26 @@ gid_t sys_getgid() {
int sys_setgid(gid_t gid) {
SignalGuard sguard;
- HelAction actions[3];
- globalQueue.trim();
- managarm::posix::CntRequest<MemoryAllocator> req(getSysdepsAllocator());
- req.set_request_type(managarm::posix::CntReqType::SET_GID);
- req.set_uid(gid);
+ managarm::posix::SetGidR... |
BugID:17795330:g_idle_count++ do not need int disalbe | void idle_task(void *arg)
{
- CPSR_ALLOC();
-
#if (RHINO_CONFIG_CPU_NUM > 1)
+ CPSR_ALLOC();
klist_t *head;
ktask_t *task_del;
head = &task_del_head;
@@ -34,9 +33,7 @@ void idle_task(void *arg)
}
RHINO_CPU_INTRPT_ENABLE();
#endif
- RHINO_CPU_INTRPT_DISABLE();
g_idle_count[cpu_cur_get()]++;
- RHINO_CPU_INTRPT_ENABLE();
... |
interface: remove notifications redirect causing crash
Fixes urbit/landscape#1188 | @@ -104,8 +104,7 @@ export function JoinGroup(props: JoinGroupProps): ReactElement {
history.push(`/~landscape${group}`);
}
} catch (e) {
- // drop them into inbox to show join request still pending
- history.push('/~notifications');
+ console.error(e);
}
}, [waiter, history, associations, groups]);
|
transport_ws: Stop connecting when the parent's connect call has failed
Merges | @@ -80,7 +80,8 @@ static int ws_connect(esp_transport_handle_t t, const char *host, int port, int
{
transport_ws_t *ws = esp_transport_get_context_data(t);
if (esp_transport_connect(ws->parent, host, port, timeout_ms) < 0) {
- ESP_LOGE(TAG, "Error connect to ther server");
+ ESP_LOGE(TAG, "Error connect to the server")... |
IssueID:1832:Fix the return value of hal_uart_recv_II
[Detail]
hal_uart_recv_II returns 0 if no data received, instead of returning EIO.
[Verified Cases]
Build Pass: eduk1_demo
Test Pass: eduk1_demo | @@ -564,11 +564,6 @@ int32_t hal_uart_recv_II(uart_dev_t *uart, void *data, uint32_t expect_size,
} while (1);
- /*haven't get any data from fifo */
- if (recved_len == 0) {
- return EIO;
- }
-
if (recv_size != NULL) {
*recv_size = recved_len;
}
|
driver/sensor: sync set buffer number to remote proc | @@ -149,6 +149,7 @@ struct sensor_rpmsg_advsub_s
struct sensor_rpmsg_cell_s
{
uint64_t cookie;
+ uint32_t nbuffer;
uint32_t len;
char data[0];
};
@@ -799,6 +800,8 @@ static void sensor_rpmsg_push_event_one(FAR struct sensor_rpmsg_dev_s *dev,
cell->len = ret;
cell->cookie = stub->cookie;
+ cell->nbuffer = dev->lower.nbu... |
Correct qlog packet_type | @@ -166,17 +166,26 @@ static void write_trailer(picoquic_cnx_t *cnx, qlog_t *q) {
static char *ptype(picoquic_packet_type_enum ptype) {
- if (ptype == picoquic_packet_initial)
+ switch (ptype) {
+ case picoquic_packet_error:
+ return "error";
+ case picoquic_packet_initial:
return "initial";
- else if (ptype == picoqui... |
README: add caution of menuconfig in Docker env
"make menuconfig" applies only in Kconfig-frontend installed env,
not in Docker env. But beginner of TizenRT could not know it.
Let's guide it in first README. | @@ -58,6 +58,9 @@ After basic configuration by [3. Configuration](#3-configuration), you can custo
./dbuild.sh menuconfig
```
+**Note**: In Docker environment, ```make menuconfig``` command from other README files should be replaced with this command.
+ It applies only in manual setup build environment.
+
This command ... |
stm32/boards/NUCLEO_F429ZI: Incr CPU freq to 168MHz to get USB working.
At the original frequency of 90MHz there's no way to get a 48MHz USB clock.
These new setting mirror those of the STM32F429DISC board. | // HSE is 8MHz
#define MICROPY_HW_CLK_PLLM (8)
-#define MICROPY_HW_CLK_PLLN (180)
+#define MICROPY_HW_CLK_PLLN (336)
#define MICROPY_HW_CLK_PLLP (RCC_PLLP_DIV2)
-#define MICROPY_HW_CLK_PLLQ (4)
+#define MICROPY_HW_CLK_PLLQ (7)
// From the reference manual, for 2.7V to 3.6V
// 151-180 MHz => 5 wait states
|
out_forward: add debug message when authorization fails | @@ -215,6 +215,7 @@ static int secure_forward_pong(char *buf, int buf_size,
struct flb_out_forward_config *ctx)
{
int ret;
+ char msg[32] = {};
size_t off = 0;
msgpack_unpacked result;
msgpack_object root;
@@ -253,6 +254,11 @@ static int secure_forward_pong(char *buf, int buf_size,
msgpack_unpacked_destroy(&result);
re... |
set erroraction to stop | # Invoke-Expression (Invoke-Webrequest <my location> -UseBasicParsing).Content
$ver='v2.1.3'
-Invoke-Webrequest "https://github.com/tboox/xmake/releases/download/$ver/xmake-$ver.exe" -OutFile "$pid-xmake-installer.exe"
-Start-Process -FilePath "$pid-xmake-installer.exe" -ArgumentList '/S /D=C:\xmake' -Wait
+Invoke-Webr... |
Factorize out redundant computation | @@ -118,7 +118,6 @@ static void compute_angular_offsets(
// Arrays are multiple of SIMD width (ANGULAR_STEPS), safe to overshoot max
vfloat mult = vfloat(1.0f / (2.0f * astc::PI));
- vfloat rcp_stepsize = vfloat::lane_id() + vfloat(1.0f);
for (int i = 0; i < max_angular_steps; i += ASTCENC_SIMD_WIDTH)
{
@@ -133,10 +132... |
tools/ci.sh: Pin black version to 20.8b1 for now. | @@ -20,7 +20,7 @@ function ci_gcc_arm_setup {
function ci_code_formatting_setup {
sudo apt-add-repository --yes --update ppa:pybricks/ppa
sudo apt-get install uncrustify
- pip3 install black
+ pip3 install black==20.8b1
uncrustify --version
black --version
}
|
Added support for new-type STM32F407 board; fixed errors | @@ -30,6 +30,7 @@ import serial
import spidev
import argparse
import datetime
+import magic
def allDone():
'''Free all the pins and exit the script.'''
@@ -284,10 +285,18 @@ def flashBinaryPyBoard(binfile, binpath):
sleep(0.5)
return 1
+def determineFileType(binfile):
+ '''Returns file type and useful info about the bi... |
Debounce, longer hold time | @@ -47,6 +47,8 @@ bool needs_render = true;
uint32_t flip_cycle_count = 0;
float volume_log_base = 2.0f;
+const uint32_t long_press_exit_time = 1000;
+
uint32_t home_button_pressed_time = 0;
__attribute__((section(".persist"))) Persist persist;
@@ -88,7 +90,7 @@ void blit_tick() {
blit::tick(blit::now());
- if(home_but... |
simde-features: fix C&P error | #endif
#endif
-#if !defined(SIMDE_ZARCH_ZVECTOR_15_NATIVE) && !defined(SIMDE_ZARCH_ZVECTOR_15_NO_NATIVE) && !defined(SIMDE_ZARCH_ZVECTOR_15_NO_NATIVE)
+#if !defined(SIMDE_ZARCH_ZVECTOR_15_NATIVE) && !defined(SIMDE_ZARCH_ZVECTOR_15_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
#if SIMDE_ARCH_ZARCH_CHECK(13) && defined(SIMDE_A... |
Correctly handle most numbers | */
#include <string.h>
+#include <math.h>
+#include <float.h>
#include <cjson/cJSON.h>
#include "cbor.h"
#include "cbor/internal/builder_callbacks.h"
@@ -24,37 +26,14 @@ typedef void(*cbor_load_callback_t)(cJSON *, const struct cbor_callbacks *, void
cbor_item_t * cjson_cbor_load(void *source, cbor_load_callback_t cbor... |
input: dynamic corpus dbg messages | @@ -312,7 +312,7 @@ bool input_prepareDynamicInput(run_t* run, bool needs_mangle) {
MX_SCOPED_RWLOCK_WRITE(&run->global->io.dynfileq_mutex);
if (run->global->io.dynfileqCnt == 0) {
- LOG_E("The dynamic file corpus is empty. This shouldn't happen");
+ LOG_F("The dynamic file corpus is empty. This shouldn't happen");
}
i... |
options/ansi: fix fgets writing past destination buffer | @@ -725,6 +725,11 @@ int fgetc(FILE *stream) {
char *fgets(char *__restrict buffer, size_t max_size, FILE *__restrict stream) {
__ensure(max_size > 0);
for(size_t i = 0; ; i++) {
+ if (i == max_size - 1) {
+ buffer[i] = 0;
+ return buffer;
+ }
+
auto c = fgetc(stream);
// If fgetc() fails, there is either an EOF or an ... |
build: remove duplicate entry in makefile
close | @@ -58,7 +58,6 @@ cglm_HEADERS = include/cglm/version.h \
include/cglm/ease.h \
include/cglm/curve.h \
include/cglm/bezier.h \
- include/cglm/bezier.h \
include/cglm/applesimd.h
cglm_calldir=$(includedir)/cglm/call
|
added additional info about rolling release and sync to hashcat beta | @@ -3,8 +3,8 @@ hcxtools
Small set of tools to capture and convert packets from wlan devices
for the use with latest hashcat. The tools are 100% compatible to hashcat
-and recommended by hashcat (that means hcxtools and latest hashcat beta are pretty
-closely synced).
+and recommended by hashcat. This branch is pretty ... |
admin/meta-packages: remove ocr from metapackages | @@ -360,7 +360,7 @@ Collection of python3 related library builds for use with GNU compiler toolchain
%package -n %{PROJ_NAME}-%{compiler_family}-runtimes
Summary: OpenHPC runtimes for GNU
-Requires: ocr-%{compiler_family}%{PROJ_DELIM}
+#Requires: ocr-%{compiler_family}%{PROJ_DELIM}
Requires: charliecloud%{PROJ_DELIM}
R... |
os/board/rtl8721csm: fix bssid last character missing issue
Fix the issue: bssid last character missing in printed scan result | @@ -105,7 +105,7 @@ rtw_result_t app_scan_result_handler(rtw_scan_handler_result_t *malloced_scan_re
scan_list->ap_info.channel = record->channel;
strncpy(scan_list->ap_info.ssid, (const char *)record->SSID.val, record->SSID.len);
scan_list->ap_info.ssid_length = record->SSID.len;
- snprintf((char *)scan_list->ap_info.... |
testcase/libc_string: Add round function for comparing float/double variable
because of limitation for float/double expression, compare the result with round function | @@ -869,12 +869,12 @@ static void tc_libc_string_strtof(void)
str = "123.456TizenRT";
value = strtof(str, &ptr);
- TC_ASSERT_LEQ("strtof", fabsf(value - 123.456f), FLT_EPSILON);
+ TC_ASSERT_LEQ("strtof", roundf((fabsf(value - 123.456f) * 1000) / 1000), FLT_EPSILON);
TC_ASSERT_EQ("strtof", strncmp(ptr, "TizenRT", strlen... |
Bump gcc requirement for NeoverseN2 and V1 to 10.4 | @@ -89,11 +89,11 @@ endif
endif
# Use a72 tunings because Neoverse-V1 is only available
-# in GCC>=9.4
+# in GCC>=10.4
ifeq ($(CORE), NEOVERSEV1)
ifeq (1, $(filter 1,$(GCCVERSIONGTEQ7) $(ISCLANG)))
-ifeq ($(GCCVERSIONGTEQ9), 1)
-ifeq (1, $(filter 1,$(GCCMINORVERSIONGTEQ4) $(GCCVERSIONGTEQ10)))
+ifeq ($(GCCVERSIONGTEQ10... |
rewritten parse_utils to use string splitter
rewritten parse_utils to use string splitter
([arc::pullid] 50a641fb-9a92992a-9ad47f8c-d62ebf06) | #include <util/generic/hash.h>
#include <util/generic/strbuf.h>
#include <util/string/split.h>
-#include <util/string/delim_string_iter.h>
+#include <util/string/iterator.h>
#include <util/charset/utf8.h>
////////////////////////////////////
@@ -59,9 +59,9 @@ void AddToNameValueHash(TStringBuf input, TMapType& nameValu... |
Acquire PersistentObjLock in gp_delete_persistent_*_node_entry()
gp_delete_persistent_*_node_entry() are currently only used for testing but with
asserts enabled fail as do not acquire PersistentObjLock. Since they are
modifying the persistent tables should be protected by `PersistentObjLock`. | @@ -251,6 +251,7 @@ gp_delete_persistent_filespace_node_entry(PG_FUNCTION_ARGS)
PersistentFileSysObjData *fileSysObjData;
PersistentFileSysObjSharedData *fileSysObjSharedData;
ItemPointer tid;
+ WRITE_PERSISTENT_STATE_ORDERED_LOCK_DECLARE;
/* Must be super user */
if (!superuser())
@@ -267,11 +268,14 @@ gp_delete_persi... |
hv: config.h fix "Nested comment found."
The config.h generated by kconfiglib,the header contain "https://"
which will cause the static scan tool report "Nested comment found."
Remove it.
Acked-by: Anthony Xu | @@ -76,6 +76,7 @@ def main():
usage()
sys.exit(1)
+ header = "/* Generated by Kconfiglib */\n"
kconfig_path = sys.argv[1]
if not os.path.isfile(kconfig_path):
sys.stderr.write("Cannot find file %s\n" % kconfig_path)
@@ -88,7 +89,7 @@ def main():
kconfig = Acrn_config(kconfig_path)
kconfig.load_config(config_path)
- kco... |
DNS URLs don't use `v`
closes | @@ -101,8 +101,8 @@ without the extension. Example URLs below.
* <https://cdn.cribl.io/dl/scope/latest>
* <https://cdn.cribl.io/dl/scope/next/linux/scope>
-* <https://cdn.cribl.io/dl/scope/v0.6.1/linux/scope>
-* <https://cdn.cribl.io/dl/scope/v0.7.0-rc2/linux/scope>
+* <https://cdn.cribl.io/dl/scope/0.6.1/linux/scope>
... |
change ansi to unicode functions | #include <Wincrypt.h>
#include <WinInet.h>
-#include <atlconv.h>
+#include <atlbase.h>
+#include <atlstr.h>
#include <algorithm>
#include <memory>
@@ -173,16 +174,16 @@ class WinInetRequestWrapper
}
DispatchEvent(OnConnecting);
- URL_COMPONENTSA urlc;
+ URL_COMPONENTSW urlc;
memset(&urlc, 0, sizeof(urlc));
urlc.dwStruc... |
update autotools path | @@ -47,7 +47,7 @@ is made available under an '%{testuser}' user account.
%build
-export PATH=/opt/ohpc/pub/autotools/bin:$PATH
+export PATH=/opt/ohpc/utils/autotools/bin:$PATH
cd tests
./bootstrap
|
Support old versions. | # include <pango/pangofc-fontmap.h>
# include <fontconfig/fontconfig.h>
#endif
+#ifndef PANGO_VERSION_CHECK
+# define PANGO_VERSION_CHECK(a, b, c) 0
+#endif
#ifdef USE_ICONV
# ifdef HAVE_LANGINFO_H
@@ -113,7 +116,12 @@ void StartupFonts(void)
#ifdef USE_PANGO
font_map = pango_xft_get_font_map(display, rootScreen);
+# i... |
add missing key in the local time template | @@ -31,6 +31,9 @@ codetable[1] indicatorOfUnitForForecastTime ('4.4.table',masterDir,localDir)=1 ;
# Length of the time range over which statistical processing is done, in units defined by the previous octet
unsigned[4] forecastTime=0 ;
+# Number of time increments of Forecast used in Local Time
+unsigned[1] numberOfTi... |
board/stm32f446e-eval/board.c: Format with clang-format
BRANCH=none
TEST=none | @@ -43,20 +43,16 @@ struct dwc_usb usb_ctl = {
/* I2C ports */
const struct i2c_port_t i2c_ports[] = {
- {
- .name = "i2c1",
+ { .name = "i2c1",
.port = I2C_PORT_0,
.kbps = 100,
.scl = GPIO_I2C1_SCL,
- .sda = GPIO_I2C1_SDA
- },
- {
- .name = "fmpi2c4",
+ .sda = GPIO_I2C1_SDA },
+ { .name = "fmpi2c4",
.port = FMPI2C_POR... |
validate uuid->size in ocf_volume_init
Optional uuid parameter to ocf_volume_init() points to UUID object
initialized by the user. We should verify it is not excesively large
as we attempt to allocate a buffer to store a copy of the UUID. | @@ -93,6 +93,9 @@ int ocf_volume_init(ocf_volume_t volume, ocf_volume_type_t type,
if (!volume || !type)
return -OCF_ERR_INVAL;
+ if (uuid && uuid->size > OCF_VOLUME_UUID_MAX_SIZE)
+ return -OCF_ERR_INVAL;
+
priv_size = type->properties->volume_priv_size;
volume->priv = env_zalloc(priv_size, ENV_MEM_NORMAL);
if (!volum... |
Fix var name for config block | @@ -36,7 +36,7 @@ __nanoImage_size__ = LENGTH(flash);
__nanoImage_end__ = __nanoImage_start__ + __nanoImage_size__;
__nanoConfig_start__ = ORIGIN(config);
__nanoConfig_size__ = LENGTH(config);
-__nanoConfig_end__ = __nanoImage_start__ + __nanoConfig_size__;
+__nanoConfig_end__ = __nanoConfig_start__ + __nanoConfig_size... |
Add sending /orca/bpm n over OSC | @@ -869,6 +869,14 @@ void send_control_message(Oosc_dev* oosc_dev, char const* osc_address) {
oosc_send_int32s(oosc_dev, osc_address, NULL, 0);
}
+void send_num_message(Oosc_dev* oosc_dev, char const* osc_address, I32 num) {
+ if (!oosc_dev)
+ return;
+ I32 nums[1];
+ nums[0] = num;
+ oosc_send_int32s(oosc_dev, osc_add... |
QUIC RXFC: Don't emit a MAX_STREAM_DATA frame if we have a final size | @@ -230,7 +230,11 @@ static int rxfc_cwm_bump_desired(QUIC_RXFC *rxfc)
*/
threshold = rxfc->cur_window_size / 2;
- return window_rem <= threshold;
+ /*
+ * No point emitting a new MAX_STREAM_DATA frame if the stream has a final
+ * size.
+ */
+ return !rxfc->is_fin && window_rem <= threshold;
}
static int rxfc_should_b... |
Add missing updates to changelog | @@ -12,6 +12,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add full color support, each scene can contain up to six 4-color palette (24 colors per scene) and seven different sprite palettes.
- Add additional genres to Scene Type dropdown, "Platformer", "Shoot Em' Up", "Point an... |
fix litecoin partial chain sync | @@ -163,7 +163,7 @@ static int ltcMainNetVerifyDifficulty(const BRBitcoinMerkleBlock *block, const B
target |= (uint64_t)size << 24;
if (target > LTC_MAX_PROOF_OF_WORK) target = LTC_MAX_PROOF_OF_WORK; // limit to LTC_MAX_PROOF_OF_WORK
- if (block->target != target) r = 0;
+ if (b && block->target != target) r = 0;
}
el... |
Do not make nested symlinks | @@ -106,6 +106,7 @@ end
ext_dir = File.dirname(__FILE__)
gumbo_src = File.join(ext_dir, 'gumbo_src')
+FileUtils.rm(gumbo_src, force: true)
FileUtils.ln_s('../../gumbo-parser/src', gumbo_src, force: true)
Dir.chdir(ext_dir) do
|
kasan: fix kasan race-condition | * Included Files
****************************************************************************/
-#include <nuttx/mutex.h>
+#include <nuttx/spinlock.h>
#include <assert.h>
#include <debug.h>
@@ -68,7 +68,7 @@ struct kasan_region_s
* Private Data
****************************************************************************... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.