message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
api/trace: remove debugging. | @@ -396,7 +396,6 @@ error:
static void cb_traces(mk_request_t *request, void *data)
{
- printf("CANT TRACES TIME\n");
flb_sds_t out_buf;
msgpack_sbuffer mp_sbuf;
msgpack_packer mp_pck;
@@ -458,10 +457,8 @@ static void cb_traces(mk_request_t *request, void *data)
goto unpack_error;
}
- printf("PACK MAP: 2\n");
msgpack_p... |
bugID:19181246:[linkkitapp] enlarge reset task stack to 6144 for some extreme situation | @@ -280,11 +280,7 @@ extern int awss_report_reset();
static void do_awss_reset()
{
#ifdef WIFI_PROVISION_ENABLED
-#if defined(SUPPORT_ITLS)
- aos_task_new("reset", (void (*)(void *))awss_report_reset, NULL, 4096); // stack taken by iTLS is more than taken by TLS.
-#else
- aos_task_new("reset", (void (*)(void *))awss_re... |
webp-container-spec.txt: update 'key words' text
RFC 2119 was updated by RFC 8174; use the text from there
+ change INFORMATIVE to informative to avoid confusion with the key
words in the RFCs | @@ -46,9 +46,10 @@ for:
* **Animation.** An image may have multiple frames with pauses between them,
making it an animation.
-The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
-"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
-document are to be interpreted as described in [RFC 211... |
NetKVM: SM: Move completion check to a separate function | @@ -51,11 +51,16 @@ public:
{
NETKVM_ASSERT(m_State != FlowState::Stopped);
LONG value = m_Counter.Release(NumItems);
- if (value == StoppedMask)
+ CheckCompletion(value);
+ }
+
+ virtual void CheckCompletion(LONG Value)
+ {
+ if (Value == StoppedMask)
{
CompleteStopping();
}
- else if (value)
+ else if (Value)
{
// co... |
docs: Fix macos clang-format docs
Type: docs | @@ -15,7 +15,7 @@ This is a first attempt to support Cross compilation of VPP on MacOS for develop
$ pip3 install ply pyyaml jsonschema
$ brew install gnu-sed pkg-config ninja crosstool-ng
-* You'll also need to install ``clang-format 10.0.0`` to be able to ``make checkstyle``. This can be done with :ref:`this doc<inst... |
Add one more element
Turns out there could be one more consumption at most.
This is a fixup to | @@ -684,7 +684,7 @@ static void on_connection_ready(struct st_h2o_http1client_t *client)
return;
}
- h2o_iovec_t reqbufs[4];
+ h2o_iovec_t reqbufs[5]; /* 5 should be the maximum possible elements used */
size_t reqbufcnt = 0;
if (props.proxy_protocol->base != NULL)
reqbufs[reqbufcnt++] = *props.proxy_protocol;
@@ -708,... |
system/spi: Fix NxStyle issues | @@ -71,10 +71,12 @@ int spicmd_exch(FAR struct spitool_s *spitool, int argc, FAR char **argv)
{
0
};
+
uint8_t rxdata[MAX_XDATA] =
{
0
};
+
uint8_t *txdatap = txdata;
struct spi_trans_s trans;
struct spi_sequence_s seq;
@@ -111,7 +113,6 @@ int spicmd_exch(FAR struct spitool_s *spitool, int argc, FAR char **argv)
return... |
Correct description of BN_mask_bits
CLA: trivial
Correct right shift to left shift.
Pseudo code `a&=~((~0)>>n)` means "get higher n-bits of a", but actually crypto lib gives lower n-bits. | @@ -33,7 +33,7 @@ error occurs if B<a> is shorter than B<n> bits.
BN_is_bit_set() tests if bit B<n> in B<a> is set.
BN_mask_bits() truncates B<a> to an B<n> bit number
-(C<a&=~((~0)E<gt>E<gt>n)>). An error occurs if B<a> already is
+(C<a&=~((~0)E<lt>E<lt>n)>). An error occurs if B<a> already is
shorter than B<n> bits.
... |
Fix meson.build codestyle | @@ -156,18 +156,18 @@ tests = [
['test_control_event_serialize', [
'tests/test_control_msg_serialize.c',
'src/control_msg.c',
- 'src/util/str_util.c'
+ 'src/util/str_util.c',
]],
['test_device_event_deserialize', [
'tests/test_device_msg_deserialize.c',
- 'src/device_msg.c'
+ 'src/device_msg.c',
]],
['test_queue', [
't... |
Cirrus: Add test workaround for FreeBSD build
This update closes | @@ -11,12 +11,13 @@ task:
script:
- mkdir build && cd build
- # - The tests for the process plugin and library stall on FreeBSD: https://issues.libelektra.org/2323
# - The test for the network plugin fails on FreeBSD: https://issues.libelektra.org/2322
- - cmake -GNinja -DPLUGINS='ALL;-process;-network' -DTARGET_PLUGIN... |
Ordering of globals | @@ -24,8 +24,8 @@ globals:
0x141D682D8: g_ResidentResourceManager
0x141D6A7E0: g_CullingManager
0x141D6A800: g_TaskManager
- 0x141D6FA90: g_ResourceManager
0x141D6F6F0: g_EnvRenderController # Client::Graphics::Environment::EnvRenderController not a ptr
+ 0x141D6FA90: g_ResourceManager
0x141D81AA0: g_OcclusionCullingMa... |
Fix doc of region example in glossary | @@ -24,7 +24,7 @@ Glossary
are 0-based, half-open intervals, i.e., the position 10,000 is
part of the interval, but 20,000 is not. An exception are
:term:`samtools` compatible region strings such as
- 'chr1:10000:20000', which are closed, i.e., both positions 10,000
+ 'chr1:10000-20000', which are closed, i.e., both po... |
brick: update getstate command description | @@ -28,7 +28,7 @@ func (c *getStateAccount) Usage() string {
}
func (c *getStateAccount) Describe() string {
- return "create an account with a given amount of balance"
+ return "get the current state of an account"
}
func (c *getStateAccount) Validate(args string) error {
@@ -44,7 +44,7 @@ func (c *getStateAccount) Va... |
[Kernel] Fix the object find issue when enable MODULE | * 2007-01-28 Bernard rename RT_OBJECT_Class_Static to RT_Object_Class_Static
* 2010-10-26 yi.qiu add module support in rt_object_allocate and rt_object_free
* 2017-12-10 Bernard Add object_info enum.
+ * 2018-01-25 Bernard Fix the object find issue when enable MODULE.
*/
#include <rtthread.h>
@@ -254,7 +255,7 @@ void r... |
Test reading from lua tables via API functions | @@ -26,6 +26,7 @@ module Foreign.LuaTest (tests) where
import Prelude hiding (concat)
import Data.ByteString (ByteString)
+import Data.Monoid ((<>))
import Foreign.Lua
import Test.HsLua.Util (pushLuaExpr)
import Test.Tasty (TestTree, testGroup)
@@ -66,4 +67,24 @@ tests = testGroup "lua integration tests"
-- delete refe... |
use long for tenmul_dims | @@ -1017,12 +1017,12 @@ void md_zfloat2double(unsigned int D, const long dims[D], complex double* dst, c
*/
void md_tenmul_dims(unsigned int D, long max_dims[D], const long out_dims[D], const long in1_dims[D], const long in2_dims[D])
{
- md_max_dims(D, ~0u, max_dims, in1_dims, out_dims);
+ md_max_dims(D, ~0lu, max_dims... |
[mod_cml] use cached time from log_epoch_secs | @@ -279,7 +279,7 @@ int cache_parse_lua(request_st * const r, plugin_data * const p, const buffer *
if (ret == 0) {
const buffer *vb = http_header_response_get(r, HTTP_HEADER_LAST_MODIFIED, CONST_STR_LEN("Last-Modified"));
if (NULL == vb) { /* no Last-Modified specified */
- if (0 == mtime) mtime = time(NULL); /* defau... |
Make '!=' not hard coded as evaluating to '==' for enum unions.
Oops. | @@ -386,7 +386,12 @@ comparecomplex(Flattenctx *s, Node *n, Op op)
r = mkexpr(n->loc, Outag, rval(s, n->expr.args[1]), NULL);
l->expr.type = mktype(n->loc, Tyuint32);
r->expr.type = mktype(n->loc, Tyuint32);
+ if (op == Oeq)
e = mkexpr(n->loc, Oueq, l, r, NULL);
+ else if (op == One)
+ e = mkexpr(n->loc, Oune, l, r, NU... |
Travis: Fix caching directive
The `directories` key requires a list of directories (not a scalar) as
value. See also: | @@ -4,10 +4,10 @@ osx_image: xcode10.1
cache:
directories:
- $HOME/.m2
- $HOME/.cabal
- $HOME/elektra-cabal-sandbox
- $HOME/Library/Caches/Homebrew
+ - $HOME/.m2
+ - $HOME/.cabal
+ - $HOME/elektra-cabal-sandbox
+ - $HOME/Library/Caches/Homebrew
# don't cache our own libraries generated in the build
# so they always get... |
Disable -Wpsabi on GCC 7.
I can't find any documentation on -Wpsabi until GCC 8, but I'm seeing
the warning on GCC 7, so I guess it was just undocumented for a while. | @@ -433,7 +433,7 @@ HEDLEY_STATIC_ASSERT(sizeof(simde_float64) == 8, "Unable to find 64-bit floating
#if \
HEDLEY_HAS_WARNING("-Wtautological-compare") || \
- HEDLEY_GCC_VERSION_CHECK(8,0,0)
+ HEDLEY_GCC_VERSION_CHECK(7,0,0)
# if defined(__cplusplus)
# if (__cplusplus >= 201402L)
# define SIMDE_TAUTOLOGICAL_COMPARE_(ex... |
Enable basic built-in modules for OPENMV2. | +include("$(MPY_DIR)/extmod/uasyncio/manifest.py")
+freeze ("$(MPY_LIB_DIR)/", "bno055.py")
+freeze ("$(MPY_LIB_DIR)/", "modbus.py")
+freeze ("$(MPY_LIB_DIR)/", "mqtt.py")
+freeze ("$(MPY_LIB_DIR)/", "mutex.py")
+freeze ("$(MPY_LIB_DIR)/", "pid.py")
+freeze ("$(MPY_LIB_DIR)/", "rpc.py")
+freeze ("$(MPY_LIB_DIR)/", "rts... |
rewrite 'for' loop initial declarations.
'for' loop initial declarations are not allowed some (old) compiler. | @@ -931,7 +931,8 @@ static inline int op_super( mrbc_vm *vm, mrbc_value *regs )
mrbc_value value = regs[a+1];
mrbc_dup( &value );
int argc = value.array->n_stored;
- for( int i=0 ; i<argc ; i++ ){
+ int i;
+ for( i = 0; i < argc; i++ ) {
mrbc_release( ®s[a+1+i] );
regs[a+1+i] = value.array->data[i];
}
@@ -1021,7 +10... |
enable bob and tls by default for openwrt | @@ -19,12 +19,12 @@ config KADNODE_ENABLE_DNS
config KADNODE_ENABLE_TLS
bool "Enable TLS authentication support"
depends on PACKAGE_kadnode
- default n
+ default y
config KADNODE_ENABLE_BOB
bool "Enable BOB authentication support"
depends on PACKAGE_kadnode
- default n
+ default y
config KADNODE_ENABLE_UPNP
bool "Enabl... |
macrecovery: Switch Latest Version to Mac-B4831CEBD52A0C4C
This makes macrecovery download Ventura instead of Monterey. | @@ -44,5 +44,5 @@ Default version
./macrecovery.py -b Mac-E43C1C25D4880AD6 -m <real MLB> -os default (newer)
Latest version
-./macrecovery.py -b Mac-E43C1C25D4880AD6 -m 00000000000000000 -os latest
-./macrecovery.py -b Mac-E43C1C25D4880AD6 -m <real MLB> -os latest
+./macrecovery.py -b Mac-B4831CEBD52A0C4C -m 0000000000... |
Add a signal handler to ippeveprinter. | @@ -342,6 +342,9 @@ static void run_printer(ippeve_printer_t *printer);
static int show_media(ippeve_client_t *client);
static int show_status(ippeve_client_t *client);
static int show_supplies(ippeve_client_t *client);
+#ifndef _WIN32
+static void signal_handler(int signum);
+#endif // !_WIN32
static char *time_string... |
API: Format documentation about namespaces | @@ -121,33 +121,39 @@ which appears like a tree on its own.
See @ref cascading in the documentation of ksLookupByName() on how the selection
of keys works.
-- The `spec` tree\n
+- The `spec` tree
+
This tree specifies how the lookup should take place and also allows us to
define defaults or document a key.
The metadata... |
sometimes pthread_t is a long int | @@ -45,7 +45,7 @@ static void iodine_join_io_thread(void) {
if (fio_atomic_sub(&sock_io_thread, 1) == 0) {
sock_io_thread = 0;
pthread_join(sock_io_pthread, NULL);
- sock_io_pthread = NULL;
+ sock_io_pthread = (pthread_t)NULL;
}
}
|
line 0 in compute prefix; | @@ -116,7 +116,8 @@ const char* lovrShaderFragmentSuffix = ""
"}";
const char* lovrShaderComputePrefix = ""
-"#version 420 \n";
+"#version 420 \n"
+"#line 0 \n";
const char* lovrShaderComputeSuffix = ""
"void main() { \n"
|
Resolved issue with quotes in exception check | @@ -2914,7 +2914,7 @@ def test_compare(test_case):
try:
model.compare(**kwargs)
except ImportError as ie:
- pytest.xfail(str(ie)) if str(ie) == "No module named 'widget'" \
+ pytest.xfail(str(ie)) if str(ie) == "No module named widget" \
else pytest.fail(str(ie))
|
Example orion/client: use the same LPM configuration as in orion/ip64-router | /*---------------------------------------------------------------------------*/
#ifndef PROJECT_CONF_H_
#define PROJECT_CONF_H_
+
+/* Prevent the router from dropping below LPM2 to avoid RAM overflow */
+#define LPM_CONF_MAX_PM 0
+
/*---------------------------------------------------------------------------*/
/* Use e... |
UnjoinedResource: fix crash | @@ -24,9 +24,9 @@ function isJoined(path: string) {
return function (
props: Pick<UnjoinedResourceProps, 'graphKeys'>
) {
- const graphKeys = useGraphState(state => state.graphKeys);
+
const graphKey = path.substr(7);
- return graphKeys.has(graphKey);
+ return props.graphKeys.has(graphKey);
};
}
@@ -35,11 +35,12 @@ exp... |
[protobuf] Fix ubsan error in text_format | @@ -1216,7 +1216,7 @@ class TextFormat::Printer::TextGenerator
Write(text + pos, size - pos);
} else {
Write(text, size);
- if (text[size - 1] == '\n') {
+ if (size > 0 && text[size - 1] == '\n') {
at_start_of_line_ = true;
}
}
|
Correct string length for memcpy | @@ -175,7 +175,7 @@ static bool replaceString(int argCount) {
tmp = pos + len;
}
- memcpy(newStr + stringLength, tmp, tmpLength);
+ memcpy(newStr + stringLength, tmp, strlen(tmp));
ObjString *newString = copyString(newStr, length - 1);
push(OBJ_VAL(newString));
@@ -397,7 +397,7 @@ static bool formatString(int argCount)... |
grid: can unsync system OTAs from notifications
When shown the Base Blocked notification, the user can opt to disable
updates so as to continue using out-of-date apps. | @@ -51,14 +51,23 @@ export const BaseBlockedNotification = () => {
const [b, u] = partition(Object.entries(s.pikes), ([, pike]) => pikeIsBlocked(newKelvin, pike));
return [b.map(([d]) => d), u.map(([d]) => d)] as const;
});
+ const { toggleInstall } = useKilnState();
const blockedCharges = Object.values(pick(charges, b... |
zephyr/shim/src/power_host_sleep_api.c: Format with clang-format
BRANCH=none
TEST=none | #include <ap_power/ap_power_interface.h>
#include <power_host_sleep.h>
-static enum power_state translate_ap_power_state(
- enum power_states_ndsx ap_power_state)
+static enum power_state
+translate_ap_power_state(enum power_states_ndsx ap_power_state)
{
switch (ap_power_state) {
case SYS_POWER_STATE_S5:
@@ -24,8 +24,8... |
Jenkinsfile: disable memcheck for Release builds | @@ -630,13 +630,18 @@ def generateFullBuildStages() {
// 'RelWithDebInfo' is build in the debian-stable-full build
for(buildType in ['Debug', 'Release']) {
def testName = "debian-stable-multiconf[buildType=${buildType}]"
+ // TODO: add memory tests to release builds when #2320 is fixed
+ def tests = [TEST.ALL]
+ if (bu... |
nimble/host: Fix cleaning conn when sync transfer enabled
When host is waiting for the sync transfer, conn->psync is allocated.
If ACL disconnection happen before sync is established, make sure to
free it. | @@ -28,6 +28,11 @@ ble_hs_atomic_conn_delete(uint16_t conn_handle)
conn = ble_hs_conn_find(conn_handle);
if (conn != NULL) {
ble_hs_conn_remove(conn);
+#if MYNEWT_VAL(BLE_PERIODIC_ADV_SYNC_TRANSFER)
+ if (conn->psync) {
+ ble_hs_periodic_sync_free(conn->psync);
+ }
+#endif
ble_hs_conn_free(conn);
}
|
little adjust on safe_strncpy() | @@ -541,6 +541,7 @@ char* safe_strncpy(char* dest, const char* source, size_t size)
char src[size + 1];
memset(src,'\0',size + 1);
strncpy(src,source,size);
+ src[size] = '\0';
strncpy(dest,src,size);
return dest;
}
|
oc_oscore:do not protect request if dos != RFNOP | @@ -399,6 +399,12 @@ oc_oscore_send_message(oc_message_t *msg)
coap_pkt->code == CSM_7_01
#endif /* OC_TCP */
) {
+ oc_sec_pstat_t *pstat = oc_sec_get_pstat(message->endpoint.device);
+ if (pstat->s != OC_DOS_RFNOP) {
+ OC_ERR("### device not in RFNOP; stop further processing ###");
+ goto oscore_send_error;
+ }
+
OC_D... |
improve test for pics with weights | @@ -54,20 +54,21 @@ tests/test-pics-pics: traj scale phantom pics nrmse $(TESTS_OUT)/shepplogan.ra
-# test that weights =1 have no effect
+# test that weights =0.5 have no effect
tests/test-pics-weights: phantom pics ones nrmse $(TESTS_OUT)/shepplogan.ra $(TESTS_OUT)/shepplogan_coil.ra
set -e; mkdir $(TESTS_TMP) ; cd $... |
Build tests on musl | @@ -96,7 +96,7 @@ _test_trace_log (_mongocrypt_tester_t *tester)
mongocrypt_destroy (crypt);
}
-#ifndef _WIN32
+#if defined(__GLIBC__) || defined(__APPLE__)
static void
_test_no_log (_mongocrypt_tester_t *tester)
{
@@ -131,7 +131,7 @@ _mongocrypt_tester_install_log (_mongocrypt_tester_t *tester)
{
INSTALL_TEST (_test_l... |
Decouple ABI version from release version.
Until now the release version has been used as the ABI version, but that's not recommended at all. Start tracking the ABI version with its own version number, starting with 8 in order to make clear that this number is not tied to the release version. | +# ABI_VERSION is passed to libtool as --version-number $(ABI_VERSION). This is
+# not related to YARA's release version, this is used for tracking changes in
+# the ABI, not in the project as a whole.
+#
+# The three number mean [current]:[revision]:[age], and they should updated as
+# follow:
+#
+# 1. With every rele... |
Fix bugs with slice header
These fixes allow more than one slice to be used to code a picture.
Use correct number of bits to code the slice segment address.
Don't offset_len_minus1 for slices without substreams. | @@ -695,18 +695,23 @@ void kvz_encoder_state_write_bitstream_slice_header(
#ifdef KVZ_DEBUG
printf("=========== Slice ===========\n");
#endif
- WRITE_U(stream, (state->slice->start_in_rs == 0), 1, "first_slice_segment_in_pic_flag");
+
+ bool first_slice_segment_in_pic = (state->slice->start_in_rs == 0);
+
+ WRITE_U(str... |
linux-raspberrypi-dev: Bump to 4.13.y series | @@ -7,8 +7,8 @@ python __anonymous() {
FILESEXTRAPATHS_prepend := "${THISDIR}/linux-raspberrypi:"
-LINUX_VERSION ?= "4.12"
-LINUX_RPI_DEV_BRANCH ?= "rpi-4.12.y"
+LINUX_VERSION ?= "4.13"
+LINUX_RPI_DEV_BRANCH ?= "rpi-4.13.y"
SRCREV = "${AUTOREV}"
SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=${LI... |
initalize usb_motor_test_t for safety | #define quic_errorf(cmd, args...) send_quic_strf(cmd, QUIC_FLAG_ERROR, args)
-usb_motor_test_t usb_motor_test;
+usb_motor_test_t usb_motor_test = {
+ .active = 0,
+ .value = {0, 0, 0, 0},
+};
extern profile_t profile;
extern profile_t default_profile;
|
Update Mac Network Detection Logic
Updated Mac Network Detection Logic to be on par with iOS
Initialized network cost before starting monitor, otherwise mac frequently reports unknown | @@ -84,7 +84,7 @@ namespace PAL_NS_BEGIN {
NetworkInformation::~NetworkInformation() noexcept
{
- if (@available(iOS 12.0, *))
+ if (@available(macOS 10.14, iOS 12.0, *))
{
if (m_isNetDetectEnabled)
{
@@ -105,7 +105,36 @@ namespace PAL_NS_BEGIN {
{
auto weak_this = std::weak_ptr<NetworkInformation>(shared_from_this());... |
Fixed scroll focus when object is out of the page in twi sides. | @@ -499,7 +499,7 @@ void lv_page_focus(lv_obj_t * page, const lv_obj_t * obj, uint16_t anim_time)
scrlable_y += page_h - obj_h;
}
/*Out of the page on the left*/
- else if((obj_w <= page_w && left_err > 0) ||
+ if((obj_w <= page_w && left_err > 0) ||
(obj_w > page_w && left_err < right_err)) {
/*Calculate a new positio... |
BugID:19864463: reboot -> reboot repeat | @@ -177,6 +177,7 @@ void sys_adc_calibration(u8 write, u16 *offset, u16 *gain)
*/
void sys_reset(void)
{
+ while(1) {
rtc_backup_timeinfo();
/* Set processor clock to default(2: 31.25MHz) before system reset */
@@ -187,6 +188,8 @@ void sys_reset(void)
SCB->AIRCR = ((0x5FA << SCB_AIRCR_VECTKEY_Pos) | // VECTKEY
(SCB->AI... |
tls: enable TLS OpenSSL plugin works in 3.0.0
Type: fix | @@ -831,7 +831,12 @@ tls_init_ca_chain (void)
return -1;
}
+#if OPENSSL_VERSION_NUMBER >= 0x30000000L
+ rv = X509_STORE_load_file (om->cert_store, tm->ca_cert_path);
+#else
rv = X509_STORE_load_locations (om->cert_store, tm->ca_cert_path, 0);
+#endif
+
if (rv < 0)
{
clib_warning ("failed to load ca certificate");
|
cmdline: correct *pritnf arguments | @@ -71,7 +71,7 @@ static bool cmdlineCheckIfPersistent(const char* fname) {
ret = true;
}
if (munmap(map, fileSz) == -1) {
- PLOG_W("munmap(%p, %zu)", map, fileSz);
+ PLOG_W("munmap(%p, %zu)", map, (size_t)fileSz);
}
close(fd);
return ret;
|
Simplify chaining with null_op (refactored, M.U.) | @@ -416,6 +416,16 @@ struct linop_s* linop_null_create(unsigned int NO, const long odims[NO], unsigne
*/
struct linop_s* linop_chain(const struct linop_s* a, const struct linop_s* b)
{
+ if ( operator_zero_or_null_p(a->forward)
+ || operator_zero_or_null_p(b->forward)) {
+
+ auto dom = linop_domain(a);
+ auto cod = lin... |
Yan LR: Explain ASan plugin removal reason | @@ -47,6 +47,9 @@ function (check_dependencies)
set (ANTLR4CPP_LIBRARIES ${ANTLR4CPP_LIBRARIES} PARENT_SCOPE)
set (ANTLR4CPP_INCLUDE_DIRS ${ANTLR4CPP_INCLUDE_DIRS} PARENT_SCOPE)
+ # AdressSanitizer enabled builds of the plugin report runtime errors about member calls, which do not point to an object of type
+ # `_Sp_co... |
Pass ArrayRefs to lambda by value. | @@ -1003,7 +1003,7 @@ namespace NCB {
TArrayRef<TString> target = Data.TargetData.Target[flatTargetIdx];
LocalExecutor->ExecRange(
- [&](int objectIdx) {
+ [=](int objectIdx) {
target[objectIdx] = ToString(value[objectIdx]);
},
*ObjectCalcParams,
|
Fix crash when freeing the last allocated bitmap | @@ -141,7 +141,7 @@ bool GraphicsMemoryHeap::Release(void *pHeapBlockData)
currentBlk->status = blockFree;
// If the next block is free, then subsume next block into current including data length and block header
- if (nextBlock->status == blockFree) // end block status is always heap_end
+ if ((nextBlock != NOT_APPLIC... |
github/ci: adding ldconfig only in Linux tests | @@ -37,9 +37,11 @@ jobs:
run: make -j 2 check
- name: make install
- run: |
- sudo make install
- sudo ldconfig
+ run: sudo make install
+
+ - name: ldconfig (Linux)
+ if: runner.os == 'Linux'
+ run: sudo ldconfig
- name: make check-link
run: make check-link
|
input: added input plugin flag for plugins that expose listeners | #define FLB_INPUT_PRIVATE 256 /* plugin is not published/exposed */
#define FLB_INPUT_NOTAG 512 /* plugin might don't have tags */
#define FLB_INPUT_THREADED 1024 /* plugin must run in a separate thread */
+#define FLB_INPUT_NET_SERVER 8 /* Input address may set host and port.
+ * In addition, if TLS is enabled then a
... |
test: verify that TLS and X509 are independent from mbedtls_ecp_curve functions | @@ -939,6 +939,19 @@ component_test_full_cmake_gcc_asan () {
msg "test: context-info.sh (full config, ASan build)" # ~ 15 sec
tests/context-info.sh
+
+ # Verify that TLS and X509 libraries have no dipendency from
+ # "mbedtls_ecp_curve" symbols.
+ msg "test: verify that TLS and X509 have no dependency from mbedtls_ecp_... |
Add documentation regarding keyword args for Lineout. Resolves | @@ -3925,20 +3925,24 @@ const char *visit_Lineout_doc =
"Lineout(start, end, variables) -> integer\n"
"Lineout(start, end, samples) -> integer\n"
"Lineout(start, end, variables, samples) -> integer\n"
+"Lineout(keywordarg1=arg1, keywrdarg2=arg2,...,keywordargn=argn ) -> integer\n"
"\n"
"\n"
"Arguments:\n"
"\n"
-"start\... |
fix proper handling of BED12 records with 1 block that differs from main interval. | @@ -80,10 +80,6 @@ void GetBedBlocks(const BED &bed, bedVector &bedBlocks) {
cerr << "Input error: found interval having <= 0 blocks." << endl;
exit(1);
}
- else if ( blockCount == 1 ) {
- //take a short-cut for single blocks
- bedBlocks.push_back(bed);
- }
else {
// get the comma-delimited strings for the BED12 block ... |
mkdir for Snap | @@ -90,4 +90,7 @@ parts:
fi
qmake "USE_UPNP=1" "USE_QRCODE=1" "${MF}" OPENSSL_INCLUDE_PATH=/usr/local/ssl/include OPENSSL_LIB_PATH=/usr/local/ssl/lib denarius-qt.pro
OPENSSL_INCLUDE_PATH=/usr/local/ssl/include OPENSSL_LIB_PATH=/usr/local/ssl/lib make -j4
+ sudo mkdir $SNAP/usr/local/bin
+ sudo chmod +x $SNAP/usr/local/... |
fix: remove the useless check | @@ -253,7 +253,7 @@ orka_str_to_ntl(
long long
orka_str_bounds_check(const char *str, const size_t threshold_len)
{
- if (!str || threshold_len > LLONG_MAX)
+ if (!str)
return -1; // Missing string or overflow
for (long long i=0; i < threshold_len; ++i) {
|
test frame work pump thread exit: set flag then wake | @@ -83,7 +83,7 @@ def pump_output(testclass):
""" pump output from vpp stdout/stderr to proper queues """
stdout_fragment = ""
stderr_fragment = ""
- while not testclass.pump_thread_stop_flag.wait(0):
+ while not testclass.pump_thread_stop_flag.is_set():
readable = select.select([testclass.vpp.stdout.fileno(),
testclas... |
CMake: Fix msdfgen target name; | @@ -121,11 +121,11 @@ endif()
# MSDF
if(LOVR_ENABLE_DATA)
- add_subdirectory(deps/msdfgen lib_msdfgen)
+ add_subdirectory(deps/msdfgen)
include_directories(deps/msdfgen)
- set(LOVR_MSDF lib_msdfgen)
+ set(LOVR_MSDF msdfgen)
if(APPLE)
- set_target_properties(lib_msdfgen PROPERTIES MACOSX_RPATH ON)
+ set_target_propertie... |
Add error check to gpiodriver_set_int
Instead of always returning an OK_ATOM there is now a check to return
an ERROR_ATOM if setting the interrupt fails.
Closes Issue | @@ -348,7 +348,10 @@ static term gpiodriver_set_int(Context *ctx, Context *target, term cmd)
gpio_set_direction(gpio_num, GPIO_MODE_INPUT);
gpio_set_intr_type(gpio_num, interrupt_type);
- gpio_isr_handler_add(gpio_num, gpio_isr_handler, data);
+ esp_err_t ret = gpio_isr_handler_add(gpio_num, gpio_isr_handler, data);
+ ... |
print clang version after updating path | @@ -122,7 +122,7 @@ script:
- if [[ "$TRAVIS_OS_NAME" == "osx" && "$TESTS" == "integration" ]]; then scan-build --status-bugs -o /tmp/scan-build make -j8; STATUS=$?; test $STATUS -ne 0 && cat /tmp/scan-build/*/* ; [ "$STATUS" -eq "0" ] ; fi
- if [[ "$TESTS" == "integration" ]]; then make clean; make integration ; fi
- ... |
bignum_core.h: Comment update for mbedtls_mpi_core_get_mont_R2_unsafe | @@ -413,11 +413,12 @@ void mbedtls_mpi_core_montmul( mbedtls_mpi_uint *X,
mbedtls_mpi_uint mm, mbedtls_mpi_uint *T );
/**
- * \brief Calculate initialisation value for fast Montgomery modular
- * multiplication
+ * \brief Calculate the square of the Montgomery constant. (Needed
+ * for conversion and operations in Mont... |
doc: add additional functions scheduled for removal | @@ -27,6 +27,9 @@ iterators for 1.0 and only the external instead.
- ksSetCursor
- ksHead
- ksTail
+ - keyRewindMeta
+ - keyNextMeta
+ - keyCurrentMeta
- change `ksAtCursor` to `ksAt`
- add implementation / documentation / tests for the external iterator
- start using external iterators in new code
|
Use package builder script. | @@ -22,11 +22,13 @@ jobs:
python-version: "${{ matrix.python-version }}"
- name: Install extra dependencies
run: sudo apt install -y apache2-dev
- - name: "Update pip"
- run: python -m pip install --upgrade pip setuptools
+ - name: "Update pip installation"
+ run: python -m pip install --upgrade pip setuptools wheel
+ ... |
RTX5: moved Timer Thread creation to osKernelStart (Part 2) | @@ -146,12 +146,6 @@ osTimerId_t svcRtxTimerNew (osTimerFunc_t func, osTimerType_t type, void *argume
uint8_t flags;
const char *name;
- // Check Timer Thread and MessageQueue
- if ((osRtxInfo.timer.thread == NULL) || (osRtxInfo.timer.mq == NULL)) {
- EvrRtxTimerError(NULL, osErrorResource);
- return NULL;
- }
-
// Che... |
Status table in README.md | # Portable SDK for UPnP\* Devices (libupnp)
-
-
-<!---
-
-
return EC_SUCCESS;
}
+static int read_temp(const struct motion_sensor_t *s, int *temp_ptr)
+{
+ return bmi160_get_sensor_temp(s - motion_sensors, temp_ptr);
+}
+
static int init(const struct motion_sensor_t *s)
{
int ret = 0, tmp, i;
@@ ... |
CMSIS-DSP: Added automatic detection of MVE support. | @@ -398,14 +398,34 @@ extern "C"
#include <arm_neon.h>
#endif
+#if __ARM_FEATURE_MVE
+ #if !defined(ARM_MATH_MVEI)
+ #define ARM_MATH_MVEI
+ #endif
+#endif
+
+#if (__ARM_FEATURE_MVE & 2)
+ #if !defined(ARM_MATH_MVEF)
+ #define ARM_MATH_MVEF
+ #endif
+ #if !defined(ARM_MATH_FLOAT16)
+ #define ARM_MATH_FLOAT16
+ #endif
+... |
[RPC] If a block is found by hash, make sure that the block is in the main chain. | @@ -41,7 +41,15 @@ func (cs *ChainService) getBlockByNo(blockNo types.BlockNo) (*types.Block, error
}
func (cs *ChainService) getBlock(blockHash []byte) (*types.Block, error) {
- return cs.cdb.getBlock(blockHash)
+ block, err := cs.cdb.getBlock(blockHash)
+ if err != nil {
+ return nil, err
+ }
+ blockInMainChain, err ... |
Documentation: Add missing newline | @@ -185,7 +185,8 @@ within the mountpoint configuration provided by the administrator.
Example for a mountpoint configuration:
- system/elektra/mountpoints system/elektra/mountpoints/fstab
+ system/elektra/mountpoints
+ system/elektra/mountpoints/fstab
system/elektra/mountpoints/fstab/config
system/elektra/mountpoints/... |
[Rust] AwmWindow runs sizers when an element is added to the hierarchy | @@ -84,6 +84,8 @@ impl AwmWindow {
}
pub fn add_component(&self, elem: Rc<dyn UIElement>) {
+ // Ensure the component has a frame by running its sizer
+ elem.handle_superview_resize(*self.current_size.borrow());
self.ui_elements.borrow_mut().push(elem);
}
|
T166: fix cowbench to work with array-based pmap | @@ -32,9 +32,16 @@ static errval_t alloc_vnode_noalloc(struct pmap_x86 *pmap, struct vnode *root,
// The VNode meta data
newvnode->is_vnode = true;
newvnode->entry = entry;
+#ifdef PMAP_LL
newvnode->next = root->u.vnode.children;
root->u.vnode.children = newvnode;
newvnode->u.vnode.children = NULL;
+#elif defined(PMAP_... |
sixtop: stop redefining typedef
Redefinition of a typedef is a C11 feature.
These typedefs are identical, so remove one
of them. | /**
* \brief 6P Transaction Data Structure (for internal use)
*/
-typedef struct sixp_trans {
+struct sixp_trans {
struct sixp_trans *next;
const sixtop_sf_t *sf;
linkaddr_t peer_addr;
@@ -68,7 +68,7 @@ typedef struct sixp_trans {
uint16_t arg_len;
} callback;
struct ctimer timer;
-} sixp_trans_t;
+};
static void handl... |
os/tools: modify a way to get the path of .config
Hard coded path "/root/..." is valid only in some environment. We should not
use it. And there are many duplicated getting config path.
This commit removes duplicated and get the path of .config file from TOPDIR env. | @@ -23,7 +23,7 @@ import sys
import struct
import string
-CONFIG_DIR = '/root/tizenrt/os'
+cfg_path = os.path.dirname(__file__) + '/../.config'
# User Binary Format
ELF = 1
@@ -90,7 +90,6 @@ def get_static_ram_size(bin_type):
# If CONFIG_OPTIMIZE_APP_RELOAD_TIME is enabled, then we will make a copy
# of the data sectio... |
clock bug
change to APB1 | @@ -513,7 +513,7 @@ rt_err_t stm32_i2c_register(I2C_TypeDef *I2C, rt_uint32_t bitrate,
if(I2C == I2C1)
{
pi2c = &stm32_i2c1;
- RCC_APB2PeriphClockCmd(RCC_APB1Periph_I2C1, ENABLE);
+ RCC_APB1PeriphClockCmd(RCC_APB1Periph_I2C1, ENABLE);
}
else
#endif /*RT_USING_I2C1*/
|
BugID:17029597: [AWSS] Remove debug information about passwd. | @@ -397,7 +397,7 @@ int wifimgr_process_switch_ap_request(void *ctx, void *resource, void *remote, v
awss_dev_bind_notify_stop();
awss_debug("Sending message to app: %s", msg);
- awss_debug("switch to ap: '%s' '%s'", ssid, passwd);
+ awss_debug("switch to ap: '%s'", ssid);
char topic[TOPIC_LEN_MAX] = {0};
awss_build_to... |
nat: test dynamic translation between two vrfs
Adding test for NAT44-ED subplugin.
Type: test | @@ -94,7 +94,6 @@ class NAT44EDTestCase(VppTestCase):
cls.create_and_add_ip4_table(i, table_id)
i.admin_up()
- i.unconfig_ip4()
i.config_ip4()
i.resolve_arp()
@@ -3331,6 +3330,45 @@ class TestNAT44EDMW(TestNAT44ED):
sessions = self.vapi.nat44_user_session_dump(self.pg0.remote_ip4, 0)
self.assertEqual(len(sessions) - se... |
add callbacks to CatBoostRegressor | @@ -5156,7 +5156,7 @@ class CatBoostRegressor(CatBoost):
def fit(self, X, y=None, cat_features=None, sample_weight=None, baseline=None, use_best_model=None,
eval_set=None, verbose=None, logging_level=None, plot=False, column_description=None,
verbose_eval=None, metric_period=None, silent=None, early_stopping_rounds=Non... |
Refine the server name compare logic | @@ -876,19 +876,11 @@ static int ssl_prepare_client_hello( mbedtls_ssl_context *ssl )
if( ssl->tls_version == MBEDTLS_SSL_VERSION_TLS1_3 &&
ssl->handshake->resume )
{
- int hostname_mismatch = 0;
- if( ssl->session_negotiate->hostname != NULL )
- {
- if( ssl->hostname != NULL )
- {
- if( strcmp( ssl->hostname, ssl->ses... |
Coding: Add guidelines for Markdown headers | @@ -189,6 +189,8 @@ Most notably use:
- Fences with sh are for the [shell recorder syntax](/tests/shell/shell_recorder/tutorial_wrapper)
- `README.md` and tutorials should be written exclusively with shell recorder syntax
so that we know that the code in the tutorial produces output as expected
+- Please use [**title-c... |
[bsp][stm32] add new bsp ci | @@ -90,6 +90,7 @@ env:
- RTT_BSP='stm32/stm32f429-armfly-v6' RTT_TOOL_CHAIN='sourcery-arm'
- RTT_BSP='stm32/stm32f429-atk-apollo' RTT_TOOL_CHAIN='sourcery-arm'
- RTT_BSP='stm32/stm32f429-fire-challenger' RTT_TOOL_CHAIN='sourcery-arm'
+ - RTT_BSP='stm32/stm32f446-st-nucleo' RTT_TOOL_CHAIN='sourcery-arm'
- RTT_BSP='stm32... |
[dpos] show BPs from consensus info right after boot | @@ -8,9 +8,10 @@ package dpos
import (
"encoding/json"
"fmt"
- "github.com/aergoio/aergo/p2p/p2pkey"
"time"
+ "github.com/aergoio/aergo/p2p/p2pkey"
+
"github.com/aergoio/aergo-lib/log"
"github.com/aergoio/aergo/config"
"github.com/aergoio/aergo/consensus"
@@ -252,18 +253,24 @@ func (dpos *DPoS) getBpInfo(now time.Time)... |
[build] fix typo in SConstruct (fixes
(thx eryretqwewrqr)
x-ref:
"NameError ins SConstruct" | @@ -523,7 +523,7 @@ if 1:
LIBDBI = 'dbi',
)
- if env['with_fam'] and not self.CheckCHeader('sys/inotify.h'):
+ if env['with_fam'] and not autoconf.CheckCHeader('sys/inotify.h'):
if not autoconf.CheckLibWithHeader('fam', 'fam.h', 'C'):
fail("Couldn't find fam")
autoconf.env.Append(
|
Fix assert_equals of ChordLengths | @@ -29,7 +29,7 @@ assert_equals(CuTest *tc,
}
// Values
- vector<real> lengths1 = cl2.lengths();
+ vector<real> lengths1 = cl1.lengths();
vector<real> lengths2 = cl2.lengths();
CuAssertIntEquals(tc,
(int) lengths1.size(),
|
vere: fixes up get next version | #include <curl/curl.h>
#include <uv.h>
+// XX use a new GCP bucket?
+//
+// static const c3_c* ver_hos_c = "https://bootstrap.urbit.org/vere";
+static const c3_c* ver_hos_c = "http://localhost:8000";
+
// stash config flags for worker
//
static c3_w sag_w;
@@ -305,27 +310,32 @@ _king_get_next(c3_c** out_c)
c3_y* hun_y;... |
update blog + video page | title: Other Resources
---
-To learn more about AppScope, see these resources from Cribl:
+To learn more about AppScope, see these resources from Cribl.
# Blog Posts
-We have a growing number of AppScope-related [blog posts](https://cribl.io/blog/?s=appscope):
+Learn why the team created AppScope:
-- [AppScope from an ... |
Remove obsolete function prototypes | @@ -323,25 +323,6 @@ spi_status_t spi_arch_transfer(const spi_device_t *dev,
uint8_t *buf, int rlen,
int ignore_len);
-/**
- * \brief Selects an SPI device
- * \param dev An SPI device configuration that specifies the CS pin.
- * \return SPI return code
- *
- * Clears the CS pin. It should work only if the device has a... |
VERSION bump to version 2.0.57 | @@ -58,7 +58,7 @@ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
# set version of the project
set(LIBYANG_MAJOR_VERSION 2)
set(LIBYANG_MINOR_VERSION 0)
-set(LIBYANG_MICRO_VERSION 56)
+set(LIBYANG_MICRO_VERSION 57)
set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION})
... |
Replaces use of snprintf for asprint in deployment_admin.c | * specific language governing permissions and limitations
* under the License.
*/
-/**
- * deployment_admin.c
- *
- * \date Nov 7, 2011
- * \author <a href="mailto:dev@celix.apache.org">Apache Celix Project Team</a>
- * \copyright Apache License, Version 2.0
- */
#include <stddef.h>
#include <stdlib.h>
@@ -136,16 +129,... |
OcMemoryLib: Handle appending entries from MMAP to MAT end | @@ -192,6 +192,7 @@ OcExpandAttributesByMap (
UINTN MatIndex;
EFI_PHYSICAL_ADDRESS LastAddress;
BOOLEAN DoneWithMat;
+ BOOLEAN LastMat;
MatIndex = 0;
Status = EFI_NOT_FOUND;
@@ -204,13 +205,14 @@ OcExpandAttributesByMap (
DoneWithMat = FALSE;
while (MatIndex < MemoryAttributesTable->NumberOfEntries && !DoneWithMat) {
+... |
scripts: website: use wait time better
see | @@ -53,15 +53,15 @@ netstat -tlpen
# then start the backend; succeed if it was not started before..
kdb stop-rest-backend || /bin/true
+# cleanup /tmp files from build
+find /tmp -mindepth 1 -delete
+
# avoid 'address already in use'
while netstat -tlpen | grep "$IP:$PORT"
do
sleep 1 # keep waiting (=downtime) short
do... |
error: oom kdbmerge fixed | @@ -709,7 +709,7 @@ static char * getValuesAsArray (KeySet * ks, const Key * arrayStart, Key * infor
}
if (elektraRealloc ((void **) &buffer, bufferSize) < 0)
{
- ELEKTRA_SET_OUT_OF_MEMORY_ERROR (informationKey, "Memory allocation failed.");
+ ELEKTRA_SET_OUT_OF_MEMORY_ERROR (informationKey);
elektraFree (buffer);
keyD... |
remove vulkan from public releases for ios devices | @@ -289,6 +289,10 @@ when ($MAPSMOBI_BUILD_TARGET && $OS_IOS) {
when ($MAPS_MOBILE_EXPORT_OBJC_API) {
YRT_EXPORT=__attribute__((visibility(\"default\")))
}
+ when(!$MAPS_MOBILE_PUBLIC_API || $OS_IOSSIM) {
+ CFLAGS+=-DBUILDING_WITH_VULKAN_IOS
+ BUILDING_WITH_VULKAN_IOS=yes
+ }
}
when ($MAPSMOBI_BUILD_TARGET && $OS_LINUX... |
py/runtime: Optimise to not create temp float for int to power negative. | @@ -456,8 +456,7 @@ mp_obj_t mp_binary_op(mp_binary_op_t op, mp_obj_t lhs, mp_obj_t rhs) {
case MP_BINARY_OP_INPLACE_POWER:
if (rhs_val < 0) {
#if MICROPY_PY_BUILTINS_FLOAT
- lhs = mp_obj_new_float(lhs_val);
- goto generic_binary_op;
+ return mp_obj_float_binary_op(op, lhs_val, rhs);
#else
mp_raise_ValueError("negative... |
Reset material in lovr.graphics.reset; | @@ -60,6 +60,7 @@ void lovrGraphicsReset() {
lovrGraphicsSetDefaultFilter((TextureFilter) { .mode = FILTER_TRILINEAR });
lovrGraphicsSetDepthTest(COMPARE_LEQUAL);
lovrGraphicsSetFont(NULL);
+ lovrGraphicsSetMaterial(NULL);
lovrGraphicsSetLineWidth(1);
lovrGraphicsSetPointSize(1);
lovrGraphicsSetShader(NULL);
|
phb4: Use phb4_ioda_sel() more
Use phb4_ioda_sel() in phb4_read_phb_status() rather than re-implementing it. | @@ -1795,7 +1795,6 @@ static void phb4_read_phb_status(struct phb4 *p,
{
uint16_t val = 0;
uint32_t i;
- uint64_t val64 = 0;
uint64_t *pPEST;
memset(stat, 0, sizeof(struct OpalIoPhb4ErrorData));
@@ -1905,17 +1904,13 @@ static void phb4_read_phb_status(struct phb4 *p,
* resident tables.
*/
pPEST = (uint64_t *)p->tbl_pes... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.