message
stringlengths 6
474
| diff
stringlengths 8
5.22k
|
|---|---|
interface: prevent comment crash by sanity checking size
|
@@ -165,7 +165,7 @@ export const LinkItem = (props: LinkItemProps): ReactElement => {
style={{ cursor: node.post.pending ? 'default' : 'pointer' }}>
<Box display='flex'>
<Icon color={commColor} icon='Chat' />
- <Text color={commColor} ml={1}>{node.children.size}</Text>
+ <Text color={commColor} ml={1}>{size}</Text>
</Box>
</Link>
</Box>
|
Fix Collider:addShape and Collider:removeShape;
|
@@ -17,14 +17,14 @@ static int l_lovrColliderGetWorld(lua_State* L) {
static int l_lovrColliderAddShape(lua_State* L) {
Collider* collider = luax_checktype(L, 1, Collider);
- Shape* shape = luax_checktype(L, 2, Shape);
+ Shape* shape = luax_checkshape(L, 2);
lovrColliderAddShape(collider, shape);
return 0;
}
static int l_lovrColliderRemoveShape(lua_State* L) {
Collider* collider = luax_checktype(L, 1, Collider);
- Shape* shape = luax_checktype(L, 2, Shape);
+ Shape* shape = luax_checkshape(L, 2);
lovrColliderRemoveShape(collider, shape);
return 0;
}
|
Luos msg handling only if we are the target service
|
@@ -212,6 +212,11 @@ static error_return_t Luos_MsgHandler(service_t *service, msg_t *input)
time_luos_t time;
uint16_t base_id = 0;
+ if ((((input->header.target_mode == IDACK) || (input->header.target_mode == ID)) && (input->header.target != service->ll_service->id)))
+ {
+ return FAILED;
+ }
+
switch (input->header.cmd)
{
case ASSERT:
|
component/bt: retrieve disconnection reason in AVDT when ACL-U link is disconnected
|
@@ -412,6 +412,7 @@ void avdt_l2c_disconnect_ind_cback(UINT16 lcid, BOOLEAN ack_needed)
{
tAVDT_TC_TBL *p_tbl;
UINT16 disc_rsn = AVDT_DISC_RSN_NORMAL;
+ tAVDT_CCB *p_ccb;
AVDT_TRACE_DEBUG("avdt_l2c_disconnect_ind_cback lcid: %d, ack_needed: %d\n",
lcid, ack_needed);
/* look up info for this channel */
@@ -420,7 +421,13 @@ void avdt_l2c_disconnect_ind_cback(UINT16 lcid, BOOLEAN ack_needed)
/* send L2CAP disconnect response */
L2CA_DisconnectRsp(lcid);
} else {
+ if ((p_ccb = avdt_ccb_by_idx(p_tbl->ccb_idx)) != NULL) {
+ UINT16 rsn = L2CA_GetDisconnectReason(p_ccb->peer_addr, BT_TRANSPORT_BR_EDR);
+ if (rsn != 0 && rsn != HCI_ERR_PEER_USER) {
disc_rsn = AVDT_DISC_RSN_ABNORMAL;
+ AVDT_TRACE_EVENT("avdt link disc rsn 0x%x", rsn);
+ }
+ }
}
avdt_ad_tc_close_ind(p_tbl, disc_rsn);
|
doc: tweak known-issues for PDF processing
Update known-issues pattern for PDF processing to also work with updated
xelatex tools from Ubuntu 20.04
|
#
#
^WARNING: Not copying tabs assets! Not compatible with latex builder
-^Latexmk: Run number 1 of rule 'pdflatex'
-^This is XeTeX, Version .* \(preloaded format=xelatex\)
-^ restricted \\write18 enabled.
-^entering extended mode
+#
^Latexmk: Summary of warnings:
^ Latex failed to resolve [0-9]+ reference\(s\)
^ Latex failed to resolve [0-9]+ citation\(s\)
#
-^Latexmk: Run number 1 of rule 'makeindex acrn.idx'
-^Latexmk: calling xindy\( -L english -C utf8 -M sphinx.xdy -q -o acrn.ind acrn.idx \)
-#
-^Latexmk: Run number [2-4] of rule 'pdflatex'
+^Latexmk: Run number [1-4] of rule 'pdflatex'
^This is XeTeX, Version .* \(preloaded format=xelatex\)
^ restricted \\write18 enabled.
^entering extended mode
#
-^Latexmk: Run number [2-4] of rule 'makeindex acrn.idx'
+^Latexmk: Run number [1-4] of rule 'makeindex acrn.idx'
+#
^Latexmk: calling xindy\( -L english -C utf8 -M sphinx.xdy -q -o acrn.ind acrn.idx \)
#
+^Latexmk: Summary of warnings from last run of \(pdf\)latex:
+^ =====Latex reported missing or unavailable character\(s\).
+^=====See log file for details.
+#
|
do not use locked coins for staking
|
@@ -1484,7 +1484,7 @@ void CWallet::AvailableCoinsForStaking(vector<COutput>& vCoins, unsigned int nSp
for (unsigned int i = 0; i < pcoin->vout.size(); i++)
if (!(pcoin->IsSpent(i)) && IsMine(pcoin->vout[i]) && pcoin->vout[i].nValue >= nMinimumInputValue
- && pcoin->vout[i].nValue != GetMNCollateral()*COIN // ignore outputs that are valid for MN
+ && !IsLockedCoin((*it).first, i) // ignore outputs that are locked for MNs
)
//vCoins.push_back(COutput(pcoin, i, nDepth));
vCoins.push_back(COutput(pcoin, i, nDepth, true));
|
Make sure we use the libctx when creating an EVP_PKEY_CTX in libssl
We should use EVP_PKEY_CTX_new_from_pkey() to ensure we use the correct
libctx.
|
@@ -4728,19 +4728,33 @@ EVP_PKEY *ssl_generate_pkey_group(SSL *s, uint16_t id)
*/
# ifndef OPENSSL_NO_DH
if (gtype == TLS_GROUP_FFDHE)
+# if 0
+ pctx = EVP_PKEY_CTX_new_from_name(s->ctx->libctx, "DH", s->ctx->propq);
+# else
pctx = EVP_PKEY_CTX_new_id(EVP_PKEY_DH, NULL);
+# endif
# ifndef OPENSSL_NO_EC
else
-# endif
-# endif
+# endif /* OPENSSL_NO_EC */
+# endif /* OPENSSL_NO_DH */
# ifndef OPENSSL_NO_EC
{
+ /*
+ * TODO(3.0): When provider based EC key gen is present we can enable
+ * this code.
+ */
if (gtype == TLS_GROUP_CURVE_CUSTOM)
pctx = EVP_PKEY_CTX_new_id(ginf->nid, NULL);
else
+# if 0
+ pctx = EVP_PKEY_CTX_new_from_name(s->ctx->libctx, "EC",
+ s->ctx->propq);
+# else
pctx = EVP_PKEY_CTX_new_id(EVP_PKEY_EC, NULL);
- }
# endif
+
+ }
+# endif /* OPENSSL_NO_EC */
if (pctx == NULL) {
SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_F_SSL_GENERATE_PKEY_GROUP,
ERR_R_MALLOC_FAILURE);
@@ -4806,7 +4820,11 @@ EVP_PKEY *ssl_generate_param_group(SSL *s, uint16_t id)
EVP_PKEY_CTX *pctx = NULL;
EVP_PKEY *pkey = NULL;
const TLS_GROUP_INFO *ginf = tls1_group_id_lookup(id);
+#if 0
+ const char *pkey_ctx_name;
+#else
int pkey_ctx_id;
+#endif
if (ginf == NULL)
goto err;
@@ -4824,9 +4842,16 @@ EVP_PKEY *ssl_generate_param_group(SSL *s, uint16_t id)
* s->ctx->libctx and s->ctx->propq when paramgen has been updated to be
* provider aware.
*/
+#if 0
+ pkey_ctx_name = (ginf->flags & TLS_GROUP_FFDHE) != 0 ? "DH" : "EC";
+ pctx = EVP_PKEY_CTX_new_from_name(s->ctx->libctx, pkey_ctx_name,
+ s->ctx->propq);
+#else
pkey_ctx_id = (ginf->flags & TLS_GROUP_FFDHE)
? EVP_PKEY_DH : EVP_PKEY_EC;
pctx = EVP_PKEY_CTX_new_id(pkey_ctx_id, NULL);
+#endif
+
if (pctx == NULL)
goto err;
if (EVP_PKEY_paramgen_init(pctx) <= 0)
|
ames: style fixes
|
:: +stale-flows: prints number of ames flows that can be closed
::
-:: |stale-flows, =veb %0 :: TODO
:: |stale-flows, =veb %1 :: flows from nacking initial subscriptions
:: |stale-flows, =veb %2 :: stale flows that keep (re)trying to connect
:: |stale-flows, =veb %21 :: ... per app (only forward)
:: |stale-flows, =veb %3 :: stale resubscriptions
-:: |stale-flows, =veb %31 :: (TODO) ... per app
::
=> |%
+$ subs (jar path [ship bone @])
+$ pags (jar app=term [dst=term =ship =path]) :: per-agent
+$ naks (set [ship bone])
- :: verbosity:
- ::
-
+ :: verbosity
::
+$ veb ?(%0 %1 %2 %21 %3 %31)
::
|
add section about usage with ssh
|
@@ -155,3 +155,25 @@ to create a new account configuration, it is enough to run:
```
oidc-gen <shortname> --reauthenticate
```
+
+## Usage with SSH
+
+`oidc-agent` supports your work on remote hosts in two ways:
+
+### Create an agent account configuration on a remote host
+
+On remote hosts you usually have no way to start a web browser for
+authentication. In such scenarios, the **device flow** can be used, but
+adding the `flow=device` option to `oidc-gen`:
+```
+oidc-gen --flow=device<shortname>
+```
+
+### Agent Forwarding
+
+To use on oidc-agent on one host (typically your workstation or laptop)
+from ssh-logins to other a remote host, you need to forward the local
+socket of `oidc-agent` to the remote side, and there point the `OIDC_SOCK`
+environment variable to the forwarded socket. Details for what we call
+"agent-forwarding", are described [here in the gitbook](https://indigo-dc.gitbook.io/oidc-agent/configuration/forwarding).
+
|
out_nats: register upstream with instance
|
@@ -62,6 +62,7 @@ static int cb_nats_init(struct flb_output_instance *ins, struct flb_config *conf
}
ctx->u = upstream;
ctx->ins = ins;
+ flb_output_upstream_set(ctx->u, ins);
flb_output_set_context(ins, ctx);
return 0;
|
* Added warning comment on ejdb_close() related to
|
@@ -198,8 +198,10 @@ IW_EXPORT WUR iwrc ejdb_open(const EJDB_OPTS *opts, EJDB *ejdbp);
/**
* @brief Closes storage and frees up all resources.
- * @param [in,out] ejdbp Pointer to storage handle, will set to zero oncompletion.
+ * @warning Please ensure what all of application threads stopped
+ * calling ejdb.h and iowow API before ejdb_close().
*
+ * @param [in,out] ejdbp Pointer to storage handle, will set to zero oncompletion.
* @return `0` on success.
* Any non zero error codes.
*/
|
Example is not anymore ESP8266-only related
|
</head>
<body>
<div class="container">
- <h1>Welcome to web server hosted by ESP8266 Wi-Fi module!</h1>
+ <h1>Welcome to web server hosted by ESP Wi-Fi module!</h1>
</div>
<footer>
<div class="container">
- Copyright © 2017. All rights reserved. Webserver is hosted on ESP8266.
+ Copyright © 2019. All rights reserved. Webserver is hosted on ESP module.
</div>
</footer>
</body>
|
Device: Fixed ARMv81MML partition file to recognize MVE usage.
When __ARM_FEATURE_MVE is defined the security settings for CP10/CP11
need to be set similar to FPU usage.
|
* @file partition_ARMv81MML.h
* @brief CMSIS-CORE Initial Setup for Secure / Non-Secure Zones for Armv8.1-M Mainline
* @version V1.0.1
- * @date 20. March 2020
+ * @date 26. March 2020
******************************************************************************/
/*
* Copyright (c) 2009-2020 Arm Limited. All rights reserved.
@@ -1177,8 +1177,9 @@ __STATIC_INLINE void TZ_SAU_Setup (void)
((SCB_AIRCR_BFHFNMINS_VAL << SCB_AIRCR_BFHFNMINS_Pos) & SCB_AIRCR_BFHFNMINS_Msk);
#endif /* defined (SCB_CSR_AIRCR_INIT) && (SCB_CSR_AIRCR_INIT == 1U) */
- #if defined (__FPU_USED) && (__FPU_USED == 1U) && \
- defined (TZ_FPU_NS_USAGE) && (TZ_FPU_NS_USAGE == 1U)
+ #if (((defined (__FPU_USED) && (__FPU_USED == 1U)) || \
+ (defined (__ARM_FEATURE_MVE) && (__ARM_FEATURE_MVE > 0))) && \
+ (defined (TZ_FPU_NS_USAGE) && (TZ_FPU_NS_USAGE == 1U)))
SCB->NSACR = (SCB->NSACR & ~(SCB_NSACR_CP10_Msk | SCB_NSACR_CP11_Msk)) |
((SCB_NSACR_CP10_11_VAL << SCB_NSACR_CP10_Pos) & (SCB_NSACR_CP10_Msk | SCB_NSACR_CP11_Msk));
|
[mod_indexfile] reduce copying of base path
|
@@ -97,48 +97,51 @@ URIHANDLER_FUNC(mod_indexfile_subrequest) {
log_error(r->conf.errh, __FILE__, __LINE__, "URI : %s", r->uri.path.ptr);
}
- /* indexfile */
- buffer * const b = r->tmp_buf;
for (uint32_t k = 0; k < p->conf.indexfiles->used; ++k) {
const data_string * const ds = (data_string *)p->conf.indexfiles->data[k];
-
- if (ds->value.ptr[0] == '/') {
+ buffer * const b = (ds->value.ptr[0] != '/')
+ ? &r->physical.path
+ : &r->physical.doc_root; /* index file relative to doc_root */
/* if the index-file starts with a prefix as use this file as
* index-generator */
- buffer_copy_buffer(b, &r->physical.doc_root);
- } else {
- buffer_copy_buffer(b, &r->physical.path);
- }
+
+ /* temporarily append to base-path buffer to check existence */
+ const uint32_t len = buffer_string_length(b);
buffer_append_path_len(b, CONST_BUF_LEN(&ds->value));
- if (NULL == stat_cache_path_stat(b)) {
- if (errno == EACCES) {
+ const stat_cache_st * const st = stat_cache_path_stat(b);
+
+ buffer_string_set_length(b, len);
+
+ if (NULL == st) {
+ switch (errno) {
+ case ENOENT:
+ case ENOTDIR:
+ continue;
+ case EACCES:
r->http_status = 403;
return HANDLER_FINISHED;
- }
-
- if (errno != ENOENT &&
- errno != ENOTDIR) {
+ default:
/* we have no idea what happened. let's tell the user so. */
r->http_status = 500;
log_perror(r->conf.errh, __FILE__, __LINE__,
- "file not found ... or so: %s -> %s",
+ "index file error for request: %s -> %s",
r->uri.path.ptr, r->physical.path.ptr);
return HANDLER_FINISHED;
}
- continue;
}
+ /* found */
if (ds->value.ptr[0] == '/') {
/* replace uri.path */
buffer_copy_buffer(&r->uri.path, &ds->value);
http_header_env_set(r, CONST_STR_LEN("PATH_TRANSLATED_DIRINDEX"), CONST_BUF_LEN(&r->physical.path));
+ buffer_copy_buffer(&r->physical.path, &r->physical.doc_root);
} else {
/* append to uri.path the relative path to index file (/ -> /index.php) */
buffer_append_string_buffer(&r->uri.path, &ds->value);
}
-
- buffer_copy_buffer(&r->physical.path, b);
+ buffer_append_string_buffer(&r->physical.path, &ds->value);
return HANDLER_GO_ON;
}
|
add partial-Fourier trajectory
|
@@ -35,6 +35,7 @@ int main_traj(int argc, char* argv[])
{
int X = 128;
int Y = 128;
+ int D = -1;
int mb = 1;
int turns = 1;
float rot = 0.;
@@ -55,6 +56,7 @@ int main_traj(int argc, char* argv[])
OPT_INT('x', &X, "x", "readout samples"),
OPT_INT('y', &Y, "y", "phase encoding lines"),
+ OPT_INT('d', &D, "d", "full readout samples"),
OPT_INT('a', &conf.accel, "a", "acceleration"),
OPT_INT('t', &turns, "t", "turns"),
OPT_INT('m', &mb, "mb", "SMS multiband factor"),
@@ -105,6 +107,12 @@ int main_traj(int argc, char* argv[])
dims[1] = X;
dims[2] = (conf.radial ? Y : (Y / conf.accel));
+ if (-1 == D)
+ D = X;
+
+ if (D < X)
+ error("actual readout samples must be less than full samples");
+
// Variables for z-undersampling
long z_reflines = z_usamp[0];
long z_acc = z_usamp[1];
@@ -189,7 +197,7 @@ int main_traj(int argc, char* argv[])
* for symmetric trajectory [DC between between sample no. X/2-1 and X/2, zero-based indexing]
* or asymmetric trajectory [DC component at sample no. X/2, zero-based indexing]
*/
- double read = (float)i + (conf.asym_traj ? 0 : 0.5) - (float)X / 2.;
+ double read = (float)(i + D - X) + (conf.asym_traj ? 0 : 0.5) - (float)D / 2.;
if (conf.golden_partition)
base_angle[SLICE_DIM] = (m > 0) ? (fmod(angle_atom * m / golden_ratio, angle_atom) / m) : 0;
|
Remove hard-coded "\connect postgres" from pg_dumpall.
This doesn't appear to accompish anything useful, and does make the
restore fail if the postgres database happens to have been dropped.
|
@@ -489,7 +489,12 @@ main(int argc, char *argv[])
if (verbose)
dumpTimestamp("Started on");
- fprintf(OPF, "\\connect postgres\n\n");
+ /*
+ * We used to emit \connect postgres here, but that served no purpose
+ * other than to break things for installations without a postgres
+ * database. Everything we're restoring here is a global, so whichever
+ * database we're connected to at the moment is fine.
+ */
/* Replicate encoding and std_strings in output */
fprintf(OPF, "SET client_encoding = '%s';\n",
|
py/runtime: When tracing unary/binary ops, output op (method) name.
E.g.:
>>> 1+1
binary 26 __add__ 3 3
Output is similar to bytecode dump (numeric code, then op name).
|
@@ -214,7 +214,7 @@ void mp_delete_global(qstr qst) {
}
mp_obj_t mp_unary_op(mp_unary_op_t op, mp_obj_t arg) {
- DEBUG_OP_printf("unary " UINT_FMT " %p\n", op, arg);
+ DEBUG_OP_printf("unary " UINT_FMT " %q %p\n", op, mp_unary_op_method_name[op], arg);
if (op == MP_UNARY_OP_NOT) {
// "not x" is the negative of whether "x" is true per Python semantics
@@ -275,7 +275,7 @@ mp_obj_t mp_unary_op(mp_unary_op_t op, mp_obj_t arg) {
}
mp_obj_t mp_binary_op(mp_binary_op_t op, mp_obj_t lhs, mp_obj_t rhs) {
- DEBUG_OP_printf("binary " UINT_FMT " %p %p\n", op, lhs, rhs);
+ DEBUG_OP_printf("binary " UINT_FMT " %q %p %p\n", op, mp_binary_op_method_name[op], lhs, rhs);
// TODO correctly distinguish inplace operators for mutable objects
// lookup logic that CPython uses for +=:
|
Improve error message when glyph is not found;
|
@@ -60,7 +60,7 @@ bool lovrRasterizerHasGlyphs(Rasterizer* rasterizer, const char* str) {
void lovrRasterizerLoadGlyph(Rasterizer* rasterizer, uint32_t character, Glyph* glyph) {
int glyphIndex = stbtt_FindGlyphIndex(&rasterizer->font, character);
- lovrAssert(glyphIndex, "Error loading glyph");
+ lovrAssert(glyphIndex, "No font glyph found for character code %d, try using Rasterizer:hasGlyphs", character);
// Trace glyph outline
stbtt_vertex* vertices;
|
[rtdbg] Add for cpp support.
|
#include <rtconfig.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* the debug log will force enable when RT_DEBUG macro is defined */
#if defined(RT_DEBUG) && !defined(DBG_ENABLE)
#define DBG_ENABLE
#endif /* defined(RT_USING_ULOG) && define(DBG_ENABLE) */
+#ifdef __cplusplus
+}
+#endif
+
#endif /* RT_DBG_H__ */
|
Case insensitve compare for bigdecimal encoding
|
@@ -14,13 +14,13 @@ class RailsJuice < Minitest::Test
json = Oj.dump(bd)
Oj.default_options = orig
- assert_equal('0.123e3', json)
+ assert_equal('0.123e3', json.downcase)
json = Oj.dump(bd, mode: :rails, bigdecimal_as_decimal: false)
- assert_equal('"0.123e3"', json)
+ assert_equal('"0.123e3"', json.downcase)
json = Oj.dump(bd, mode: :rails, bigdecimal_as_decimal: true)
- assert_equal('0.123e3', json)
+ assert_equal('0.123e3', json.downcase)
end
end
|
`REX.R` and `REX.B` is ignored for non-GPR/VR/CR/DR registers
|
@@ -920,9 +920,21 @@ static uint8_t ZydisCalcRegisterId(ZydisDecoderContext* context,
{
ZYDIS_ASSERT(instruction->raw.modrm.isDecoded);
uint8_t value = instruction->raw.modrm.reg;
- if (registerClass != ZYDIS_REGCLASS_MASK)
+ switch (registerClass)
{
+ case ZYDIS_REGCLASS_GPR8:
+ case ZYDIS_REGCLASS_GPR16:
+ case ZYDIS_REGCLASS_GPR32:
+ case ZYDIS_REGCLASS_GPR64:
+ case ZYDIS_REGCLASS_XMM:
+ case ZYDIS_REGCLASS_YMM:
+ case ZYDIS_REGCLASS_ZMM:
+ case ZYDIS_REGCLASS_CONTROL:
+ case ZYDIS_REGCLASS_DEBUG:
value |= (context->cache.R << 3);
+ break;
+ default:
+ break;
}
// R' only exists for EVEX and MVEX. No encoding check needed
switch (registerClass)
@@ -954,9 +966,21 @@ static uint8_t ZydisCalcRegisterId(ZydisDecoderContext* context,
{
ZYDIS_ASSERT(instruction->raw.modrm.isDecoded);
uint8_t value = instruction->raw.modrm.rm;
- if (registerClass != ZYDIS_REGCLASS_MASK)
+ switch (registerClass)
{
+ case ZYDIS_REGCLASS_GPR8:
+ case ZYDIS_REGCLASS_GPR16:
+ case ZYDIS_REGCLASS_GPR32:
+ case ZYDIS_REGCLASS_GPR64:
+ case ZYDIS_REGCLASS_XMM:
+ case ZYDIS_REGCLASS_YMM:
+ case ZYDIS_REGCLASS_ZMM:
+ case ZYDIS_REGCLASS_CONTROL:
+ case ZYDIS_REGCLASS_DEBUG:
value |= (context->cache.B << 3);
+ break;
+ default:
+ break;
}
// We have to check the instruction-encoding, because the extension by X is only valid
// for EVEX and MVEX instructions
|
Renamed cli parsers to match new terminology.
|
==
==
::
- ++ stat ::< local circle
+ ++ cire ::< local circle
;~(pfix cen sym)
::
- ++ stan ::< circle
+ ++ circ ::< circle
;~ pose
(cold [our.bol inbox] col)
;~(pfix cen (stag our.bol sym))
::
++ parn ::< partner
;~ pose
- (stag %& stan)
+ (stag %& circ)
(stag %| pasp)
==
::
::
;~ (glue ace) (perk %create ~)
pore
- stat
+ cire
qut
==
::
==
==
::
- ;~((glue ace) (perk %depict ~) stat qut)
+ ;~((glue ace) (perk %depict ~) cire qut)
::
- ;~((glue ace) (perk %source ~) stat parz)
+ ;~((glue ace) (perk %source ~) cire parz)
::
- ;~((glue ace) (perk %invite ~) stat shiz)
+ ;~((glue ace) (perk %invite ~) cire shiz)
::
- ;~((glue ace) (perk %banish ~) stat shiz)
+ ;~((glue ace) (perk %banish ~) cire shiz)
::
- ;~((glue ace) (perk %enlist ~) stat shiz)
+ ;~((glue ace) (perk %enlist ~) cire shiz)
::
- ;~((glue ace) (perk %retire ~) stat shiz)
+ ;~((glue ace) (perk %retire ~) cire shiz)
::
- ;~((glue ace) (perk %burden ~) stan)
+ ;~((glue ace) (perk %burden ~) circ)
::
:: displaying info
::
|
fix double quote escape for defines
|
@@ -42,6 +42,10 @@ function _translate_arguments(arguments)
arg = arg:gsub("[%-/]external:I", "-I")
elseif arg:find("[%-/]external:W") or arg:find("[%-/]experimental:external") then
arg = nil
+ -- escape '"' for the defines
+ -- https://github.com/xmake-io/xmake/issues/1506
+ elseif arg:find("^-D") then
+ arg = arg:gsub("\"", "\\\"")
end
-- @see use msvc-style flags for msvc to support language-server better
-- https://github.com/xmake-io/xmake/issues/1284
|
Make stdin select callback configurable
|
#define SELECT_TIMEOUT 1000
#endif
+#ifdef SELECT_CONF_STDIN
+#define SELECT_STDIN SELECT_CONF_STDIN
+#else
+#define SELECT_STDIN 1
+#endif
+
static const struct select_callback *select_callback[SELECT_MAX];
static int select_max = 0;
@@ -122,6 +128,7 @@ select_set_callback(int fd, const struct select_callback *callback)
return 0;
}
/*---------------------------------------------------------------------------*/
+#if SELECT_STDIN
static int
stdin_set_fd(fd_set *rset, fd_set *wset)
{
@@ -141,6 +148,7 @@ stdin_handle_fd(fd_set *rset, fd_set *wset)
const static struct select_callback stdin_fd = {
stdin_set_fd, stdin_handle_fd
};
+#endif /* SELECT_STDIN */
/*---------------------------------------------------------------------------*/
static void
set_lladdr(void)
@@ -246,7 +254,9 @@ platform_init_stage_three()
void
platform_main_loop()
{
+#if SELECT_STDIN
select_set_callback(STDIN_FILENO, &stdin_fd);
+#endif /* SELECT_STDIN */
while(1) {
fd_set fdr;
fd_set fdw;
|
Documentation update to address comments.
|
@@ -51,7 +51,7 @@ PDT_ProductAndServiceUsage 0x0000000002000000u
PDT_SoftwareSetupAndInventory 0x0000000080000000u
```
-The tag set on your event will show it the field ext.metadata.privTags. You can validate that using [Telemetry Real Time Tool (TRTT)](https://osgwiki.com/wiki/Telemetry_Real-Time_Tool_(TRTT))
+The tag set on your event will show it the field `EventInfo.PrivTags`. You can validate that using [Telemetry Real Time Tool (TRTT)](https://osgwiki.com/wiki/Telemetry_Real-Time_Tool_(TRTT))

@@ -62,10 +62,10 @@ The C++ SDK has an API feature to filter events using the diagnostic level assoc
```cpp
DIAG_LEVEL_REQUIRED 1
DIAG_LEVEL_OPTIONAL 2
-DIAG_LEVEL_REQUIREDSERVICEDATA 110
-DIAG_LEVEL_REQUIREDSERVICEDATAFORESSENTIALSERVICES 120
+DIAG_LEVEL_REQUIREDSERVICEDATA 3
+DIAG_LEVEL_REQUIREDSERVICEDATAFORESSENTIALSERVICES 4
```
-
+The level set on your event will show up in the field `EventInfo.Level`.
There are different ways you can make your diagnostic levels filtering work:
@@ -119,7 +119,7 @@ for (auto filter : filters)
// Create an event and set level to REQUIRED
// This overrides the logger level for filtering
EventProperties requiredEvent("My.RequiredEvent");
- requiredEvent.SetLevel(DIAG_LEVEL_required);
+ requiredEvent.SetLevel(DIAG_LEVEL_REQUIRED);
logger->LogEvent(requiredEvent);
// Create an event and set level to OPTIONAL
|
add jsonrpc to contrib
|
@@ -209,6 +209,8 @@ def check_imports(no_check=None, extra=[], skip_func=None):
"hypothesis.extra.*",
+ "jsonrpc.backend.*",
+
] + list(no_check or [])
if sys.version_info.major == 3:
|
Minor comment edits.
|
@@ -2277,8 +2277,8 @@ typedef struct
int sortid; // Relative binding sortid. Default = -1
s_axis_principal_int enable; // Toggle binding on X, Y and Z axis.
s_axis_principal_int offset; // x,y,z offset.
- e_direction_adjust direction; // Direction force
- struct entity *ent; // Entity to bind.
+ e_direction_adjust direction; // Direction force.
+ struct entity *ent; // Entity subject will bind itself to.
} s_bind;
typedef struct
|
clEnqueueNDRange: move the local-must-divide-global check
Again, the requirement should be checked on the user-specified local
work size, we should never produce a lws that doesn't fit.
|
@@ -138,6 +138,15 @@ POname(clEnqueueNDRangeKernel)(cl_command_queue command_queue,
(local_z > command_queue->device->max_work_item_sizes[2]),
CL_INVALID_WORK_ITEM_SIZE,
"local_work_size.z > device's max_workitem_sizes[2]\n");
+
+ /* TODO For full 2.x conformance the 'local must divide global'
+ * requirement will have to be limited to the cases of kernels compiled
+ * with the -cl-uniform-work-group-size option
+ */
+ POCL_RETURN_ERROR_COND((global_x % local_x != 0), CL_INVALID_WORK_GROUP_SIZE);
+ POCL_RETURN_ERROR_COND((global_y % local_y != 0), CL_INVALID_WORK_GROUP_SIZE);
+ POCL_RETURN_ERROR_COND((global_z % local_z != 0), CL_INVALID_WORK_GROUP_SIZE);
+
}
/* If the kernel has the reqd_work_group_size attribute, then the local
@@ -257,9 +266,10 @@ POname(clEnqueueNDRangeKernel)(cl_command_queue command_queue,
assert(local_y <= command_queue->device->max_work_item_sizes[1]);
assert(local_z <= command_queue->device->max_work_item_sizes[2]);
- POCL_RETURN_ERROR_COND((global_x % local_x != 0), CL_INVALID_WORK_GROUP_SIZE);
- POCL_RETURN_ERROR_COND((global_y % local_y != 0), CL_INVALID_WORK_GROUP_SIZE);
- POCL_RETURN_ERROR_COND((global_z % local_z != 0), CL_INVALID_WORK_GROUP_SIZE);
+ /* See TODO above for 'local must divide global' */
+ assert(global_x % local_x == 0);
+ assert(global_y % local_y == 0);
+ assert(global_z % local_z == 0);
POCL_RETURN_ERROR_COND((event_wait_list == NULL && num_events_in_wait_list > 0),
CL_INVALID_EVENT_WAIT_LIST);
|
Add qa.sh modes for library and application coverage stats
|
@@ -45,7 +45,7 @@ main() {
local CXX="${GCC_CXX}"
BASE_FLAGS+=" -g -fsanitize=address -fno-omit-frame-pointer"
;;
- coverage)
+ coverage | lib-coverage | app-coverage)
local CC="${GCC_CC}"
local CXX="${GCC_CXX}"
BASE_FLAGS+=" --coverage --no-inline"
@@ -71,7 +71,7 @@ main() {
;;
*)
echo "Usage:" 1>&2
- echo " ${0##*/} (address|coverage|egypt|memory|ncc|undefined)" 1>&2
+ echo " ${0##*/} (address|coverage|lib-coverage|app-coverage|egypt|memory|ncc|undefined)" 1>&2
exit 1
;;
esac
@@ -104,6 +104,12 @@ main() {
coverage)
find -name '*.gcda' | sort | xargs gcov
;;
+ lib-coverage)
+ find lib -name '*.gcda' | sort | xargs gcov
+ ;;
+ app-coverage)
+ find lib xmlwf -name '*.gcda' | sort | xargs gcov
+ ;;
egypt)
local DOT_FORMAT="${DOT_FORMAT:-svg}"
local o="callgraph.${DOT_FORMAT}"
|
Update README.md
Add Masters of The Universe preview video.
|
OpenBOR is a continuation of the Beats Of Rage 2D game engine, which was originally
created by the wonderful folks over at [Senile Team](http://www.senileteam.com).
-
+[](https://www.youtube.com/watch?v=GOsYJkdqbOk&t=2m41s "Masters of The Universe")
[](https://www.youtube.com/watch?v=TbZD1pWsJeI "Streets of Rage2X Preview")
|
Include PID in page faults
|
@@ -1036,7 +1036,7 @@ static void page_fault(const register_state_t* regs) {
//if execution reaches here, recovery failed or recovery wasn't possible
printf("|----------------|\n");
- printf("| Page Fault |\n");
+ printf("| Page Fault %d |\n", getpid());
printf("|- 0x%08x -|\n", faulting_address);
if (reserved) printf_err("Overwrote CPU-resereved bits of page entry");
|
gen: fix error on non-Debian systems
maybe to be reverted, to be checked if Debian Package
still builds
|
@@ -26,10 +26,6 @@ if (PYTHON2INTERP_FOUND)
\"${CMAKE_CURRENT_SOURCE_DIR}/util/util.cpp\"
-o \"${CMAKE_CURRENT_BINARY_DIR}/cpp_util.py\")")
- if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
- set (INSTALL_OPTIONS "--install-layout=deb")
- endif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
-
install(CODE "execute_process(COMMAND
${PYTHON2_EXECUTABLE} \"${SETUP_PY}\"
--no-user-cfg
|
Add ld/binutils version check for POWER10 support
|
@@ -641,6 +641,7 @@ DYNAMIC_CORE += POWER8
ifneq ($(C_COMPILER), GCC)
DYNAMIC_CORE += POWER9
DYNAMIC_CORE += POWER10
+CCOMMON_OPT += -DHAVE_P10_SUPPORT
endif
ifeq ($(C_COMPILER), GCC)
ifeq ($(GCCVERSIONGT5), 1)
@@ -648,11 +649,14 @@ DYNAMIC_CORE += POWER9
else
$(info, OpenBLAS: Your gcc version is too old to build the POWER9 kernels.)
endif
-ifeq ($(GCCVERSIONGTEQ11), 1)
+LDVERSIONGTEQ35 := $(shell expr ld --version | head -1 | cut -f2 -d "." | cut -f1 -d "-" >= 35)
+ifeq ($(GCCVERSIONGTEQ11)$(LDVERSIONGTEQ35), 11)
DYNAMIC_CORE += POWER10
+CCOMMON_OPT += -DHAVE_P10_SUPPORT
else ifeq ($(GCCVERSIONGTEQ10), 1)
-ifeq ($(GCCMINORVERSIONGTEQ2), 1)
+ifeq ($(GCCMINORVERSIONGTEQ2)$(LDVERSIONGTEQ35), 11)
DYNAMIC_CORE += POWER10
+CCOMMON_OPT += -DHAVE_P10_SUPPORT
endif
else
$(info, OpenBLAS: Your gcc version is too old to build the POWER10 kernels.)
|
Fix , add error handling to example.
|
@@ -156,19 +156,21 @@ int main(void) {
/* test system allocations */
fprintf(stderr, "===== Performance Testing system memory allocator "
"(please wait):\n ");
- pthread_create(&thread2, NULL, test_system_malloc, NULL);
+ FIO_ASSERT(pthread_create(&thread2, NULL, test_system_malloc, NULL) == 0,
+ "Couldn't spawn thread.");
size_t system = test_mem_functions(malloc, calloc, realloc, free);
- pthread_join(thread2, &thrd_result);
+ FIO_ASSERT(pthread_join(thread2, &thrd_result) == 0, "Couldn't join thread");
system += (uintptr_t)thrd_result;
fprintf(stderr, "Total Cycles: %zu\n", system);
/* test facil.io allocations */
fprintf(stderr, "\n===== Performance Testing facil.io memory allocator "
"(please wait):\n");
- pthread_create(&thread2, NULL, test_facil_malloc, NULL);
+ FIO_ASSERT(pthread_create(&thread2, NULL, test_facil_malloc, NULL) == 0,
+ "Couldn't spawn thread.");
size_t fio =
test_mem_functions(fio_malloc, fio_calloc, fio_realloc, fio_free);
- pthread_join(thread2, &thrd_result);
+ FIO_ASSERT(pthread_join(thread2, &thrd_result) == 0, "Couldn't join thread");
fio += (uintptr_t)thrd_result;
fprintf(stderr, "Total Cycles: %zu\n", fio);
|
rowan: enable CONFIG_CHARGE_MANAGER_EXTERNAL_POWER_LIMIT
BRANCH=master
TEST=EC_FIRMWARE=rowan emerge-rowan chromeos-ec
Commit-Ready: Patrick Berny
Tested-by: Patrick Berny
|
#define CONFIG_BATTERY_PRESENT_GPIO GPIO_BAT_PRESENT_L
#define CONFIG_BATTERY_SMART
#define CONFIG_CHARGE_MANAGER
+#define CONFIG_CHARGE_MANAGER_EXTERNAL_POWER_LIMIT
#define CONFIG_CHARGER
#define CONFIG_CHARGER_INPUT_CURRENT 512
#define CONFIG_CHARGE_RAMP_HW
|
fix on sendanon commands
|
@@ -6529,14 +6529,12 @@ bool CWallet::SendAnonToDnr(CStealthAddress& sxAddress, int64_t nValue, int nRin
CReserveKey reservekey(this);
int64_t nFeeRequired;
std::string sError2;
- /*
if (!AddAnonInputs(nRingSize == 1 ? RING_SIG_1 : RING_SIG_2, nValue, nRingSize, vecSend, vecChange, wtxNew, nFeeRequired, false, sError2))
{
printf("SendAnonToDnr() AddAnonInputs failed %s.\n", sError2.c_str());
sError = "AddAnonInputs() failed: " + sError2;
return false;
};
- */
if (!CommitTransaction(wtxNew, reservekey))
{
|
esp32/Makefile: Make sure that directory exists for sdkconfig.h.
|
@@ -234,6 +234,7 @@ SRC_QSTR_AUTO_DEPS +=
$(SDKCONFIG_H): $(SDKCONFIG)
$(ECHO) "GEN $@"
+ $(Q)$(MKDIR) -p $(dir $@)
$(Q)$(PYTHON) $(ESPIDF)/tools/kconfig_new/confgen.py \
--output header $@ \
--config $< \
|
opae-sdk:change version to 2.0.11
|
@@ -96,7 +96,7 @@ endif()
set(OPAE_VERSION_LOCAL "" CACHE STRING "OPAE local version")
set(OPAE_VERSION_MAJOR 2 CACHE STRING "OPAE major version" FORCE)
set(OPAE_VERSION_MINOR 0 CACHE STRING "OPAE minor version" FORCE)
-set(OPAE_VERSION_REVISION 10${OPAE_VERSION_LOCAL} CACHE STRING "OPAE revision version" FORCE)
+set(OPAE_VERSION_REVISION 11${OPAE_VERSION_LOCAL} CACHE STRING "OPAE revision version" FORCE)
set(OPAE_VERSION ${OPAE_VERSION_MAJOR}.${OPAE_VERSION_MINOR}.${OPAE_VERSION_REVISION}
CACHE STRING "OPAE version" FORCE)
|
Extract command argv building
This simplifies adb_execute_p().
|
@@ -111,19 +111,16 @@ show_adb_err_msg(enum sc_process_result err, const char *const argv[]) {
free(buf);
}
-static sc_pid
-adb_execute_p(const char *serial, const char *const adb_cmd[],
- size_t len, sc_pipe *pout) {
- int i;
- sc_pid pid;
-
+static const char **
+adb_create_argv(const char *serial, const char *const adb_cmd[], size_t len) {
const char **argv = malloc((len + 4) * sizeof(*argv));
if (!argv) {
LOG_OOM();
- return SC_PROCESS_NONE;
+ return NULL;
}
argv[0] = get_adb_command();
+ int i;
if (serial) {
argv[1] = "-s";
argv[2] = serial;
@@ -134,6 +131,18 @@ adb_execute_p(const char *serial, const char *const adb_cmd[],
memcpy(&argv[i], adb_cmd, len * sizeof(const char *));
argv[len + i] = NULL;
+ return argv;
+}
+
+static sc_pid
+adb_execute_p(const char *serial, const char *const adb_cmd[], size_t len,
+ sc_pipe *pout) {
+ const char **argv = adb_create_argv(serial, adb_cmd, len);
+ if (!argv) {
+ return SC_PROCESS_NONE;
+ }
+
+ sc_pid pid;
enum sc_process_result r =
sc_process_execute_p(argv, &pid, NULL, pout, NULL);
if (r != SC_PROCESS_SUCCESS) {
|
stm32: spi: fix link to bug in comments
Wrong link makes it harder to find the issue at hand, fix the URL
BRANCH=none
TEST=none
|
@@ -99,7 +99,7 @@ static const uint8_t out_preamble[4] = {
* times in order to make sure it actually stays at the repeating byte after DMA
* ends.
*
- * See crbug.com/31390
+ * See crosbug.com/p/31390
*/
#if defined(CHIP_FAMILY_STM32F0) || defined(CHIP_FAMILY_STM32L4)
#define EC_SPI_PAST_END_LENGTH 4
@@ -424,7 +424,7 @@ static void spi_send_response_packet(struct host_packet *pkt)
((uint8_t *)pkt->response)[pkt->response_size + 0] = EC_SPI_PAST_END;
#if defined(CHIP_FAMILY_STM32F0) || defined(CHIP_FAMILY_STM32L4)
/* Make sure we are going to be outputting it properly when the DMA
- * ends due to the TX FIFO bug on the F0. See crbug.com/31390
+ * ends due to the TX FIFO bug on the F0. See crosbug.com/p/31390
*/
((uint8_t *)pkt->response)[pkt->response_size + 1] = EC_SPI_PAST_END;
((uint8_t *)pkt->response)[pkt->response_size + 2] = EC_SPI_PAST_END;
@@ -563,7 +563,7 @@ void spi_event(enum gpio_signal signal)
#ifdef CHIP_FAMILY_STM32F0
CPRINTS("WARNING: Protocol version 2 is not supported on the F0"
- " line due to crbug.com/31390");
+ " line due to crosbug.com/p/31390");
#endif
args.version = in_msg[0] - EC_CMD_VERSION0;
|
Sensor creation config/on default = true
|
@@ -302,6 +302,7 @@ static Resource *DEV_InitSensorNodeFromDescription(Device *device, const DeviceD
sensor.setType(DeviceDescriptions::instance()->constantToString(sub.type));
sensor.setUniqueId(uniqueId);
sensor.setNode(const_cast<deCONZ::Node*>(device->node()));
+ sensor.item(RConfigOn)->setValue(true);
QString friendlyName = sensor.type();
if (friendlyName.startsWith("ZHA") || friendlyName.startsWith("ZLL"))
|
tests: workaround for t/watcher.t race
need better option for this.. seems to fix this one thing.
|
@@ -79,6 +79,7 @@ if ($res eq "STORED\r\n") {
my $conn_server = new_memcached('-m 60 -o watcher_logbuf_size=8');
my $conn_watcher = $conn_server->new_sock;
+ sleep 1;
print $conn_watcher "watch connevents\n";
$res = <$conn_watcher>;
is($res, "OK\r\n", 'connevents watcher enabled');
|
[compiler-rt] Reverting r367962 due to Fuchsia bot build-breakage.
|
@@ -132,13 +132,6 @@ endforeach()
include_directories(..)
include_directories(../../include)
-if(COMPILER_RT_USE_LIBCXX)
- if (SANITIZER_CXX_ABI_LIBNAME STREQUAL "libc++")
- if (HAVE_LIBCXX)
- set(SANITIZER_COMMON_CFLAGS "${SANITIZER_COMMON_CFLAGS} -isystem ${COMPILER_RT_LIBCXX_PATH}/include")
- endif()
- endif()
-endif()
set(XRAY_CFLAGS ${SANITIZER_COMMON_CFLAGS})
set(XRAY_COMMON_DEFINITIONS XRAY_HAS_EXCEPTIONS=1)
|
Coverity: fix 272011 resource leak
|
@@ -3529,6 +3529,7 @@ static int do_multi(int multi, int size_num)
if ((f = fdopen(fds[n], "r")) == NULL) {
BIO_printf(bio_err, "fdopen failure with 0x%x\n",
errno);
+ OPENSSL_free(fds);
return 1;
}
while (fgets(buf, sizeof(buf), f)) {
|
Pull request "Fix EvalMetricsResult.get_metric()" by from
MERGED FROM
|
@@ -5248,7 +5248,7 @@ class EvalMetricsResult:
def get_metric(self, metric_description):
key = _metric_description_or_str_to_str(metric_description)
- return self._metric_descriptions[metric_description]
+ return self._metric_descriptions[key]
def get_result(self, metric_description):
key = _metric_description_or_str_to_str(metric_description)
|
Fix another domain check in the unit tests.
|
@@ -1249,12 +1249,12 @@ test_api(pappl_system_t *system) // I - System
papplSystemSetHostname(system, NULL);
if (!papplSystemGetHostname(system, get_str, sizeof(get_str)))
{
- puts("FAIL (got NULL, expected '*.local')");
+ puts("FAIL (got NULL, expected '*.domain')");
pass = false;
}
- else if (!strstr(get_str, ".local"))
+ else if (!strchr(get_str, '.'))
{
- printf("FAIL (got '%s', expected '*.local')\n", get_str);
+ printf("FAIL (got '%s', expected '*.domain')\n", get_str);
pass = false;
}
else
|
docs/uselect: Describe more aspects of poll.register/modify behavior.
E.g., register() can be called again for the same object, while modify()
will raise exception if object was not register()ed before.
|
@@ -45,13 +45,18 @@ Methods
*eventmask* defaults to ``uselect.POLLIN | uselect.POLLOUT``.
+ It is OK to call this function multiple times for the same *obj*.
+ Successive calls will update *obj*'s eventmask to the value of
+ *eventmask* (i.e. will behave as `modify()`).
+
.. method:: poll.unregister(obj)
Unregister *obj* from polling.
.. method:: poll.modify(obj, eventmask)
- Modify the *eventmask* for *obj*.
+ Modify the *eventmask* for *obj*. If *obj* is not registered, `OSError`
+ is raised with error of ENOENT.
.. method:: poll.poll(timeout=-1)
|
Implement key match functionality for ECX keys
This makes EVP_PKEY_cmp work for provider side ECX keys.
|
@@ -47,6 +47,7 @@ static OSSL_OP_keymgmt_gettable_params_fn x448_gettable_params;
static OSSL_OP_keymgmt_gettable_params_fn ed25519_gettable_params;
static OSSL_OP_keymgmt_gettable_params_fn ed448_gettable_params;
static OSSL_OP_keymgmt_has_fn ecx_has;
+static OSSL_OP_keymgmt_match_fn ecx_match;
static OSSL_OP_keymgmt_import_fn ecx_import;
static OSSL_OP_keymgmt_import_types_fn ecx_imexport_types;
static OSSL_OP_keymgmt_export_fn ecx_export;
@@ -104,6 +105,36 @@ static int ecx_has(void *keydata, int selection)
return ok;
}
+static int ecx_match(const void *keydata1, const void *keydata2, int selection)
+{
+ const ECX_KEY *key1 = keydata1;
+ const ECX_KEY *key2 = keydata2;
+ int ok = 1;
+
+ if ((selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) != 0)
+ ok = ok && key1->type == key2->type;
+ if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) {
+ if ((key1->privkey == NULL && key2->privkey != NULL)
+ || (key1->privkey != NULL && key2->privkey == NULL)
+ || key1->type != key2->type)
+ ok = 0;
+ else
+ ok = ok && (key1->privkey == NULL /* implies key2->privkey == NULL */
+ || CRYPTO_memcmp(key1->privkey, key2->privkey,
+ key1->keylen) == 0);
+ }
+ if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) {
+ if (key1->haspubkey != key2->haspubkey
+ || key1->type != key2->type)
+ ok = 0;
+ else
+ ok = ok && (key1->haspubkey == 0 /* implies key2->haspubkey == 0 */
+ || CRYPTO_memcmp(key1->pubkey, key2->pubkey,
+ key1->keylen) == 0);
+ }
+ return ok;
+}
+
static int ecx_import(void *keydata, int selection, const OSSL_PARAM params[])
{
ECX_KEY *key = keydata;
@@ -420,6 +451,7 @@ static void ecx_gen_cleanup(void *genctx)
{ OSSL_FUNC_KEYMGMT_GET_PARAMS, (void (*) (void))alg##_get_params }, \
{ OSSL_FUNC_KEYMGMT_GETTABLE_PARAMS, (void (*) (void))alg##_gettable_params }, \
{ OSSL_FUNC_KEYMGMT_HAS, (void (*)(void))ecx_has }, \
+ { OSSL_FUNC_KEYMGMT_MATCH, (void (*)(void))ecx_match }, \
{ OSSL_FUNC_KEYMGMT_IMPORT, (void (*)(void))ecx_import }, \
{ OSSL_FUNC_KEYMGMT_IMPORT_TYPES, (void (*)(void))ecx_imexport_types }, \
{ OSSL_FUNC_KEYMGMT_EXPORT, (void (*)(void))ecx_export }, \
|
Decrement Ref Count before Uninitializing Binding
|
@@ -1569,6 +1569,7 @@ NewBinding:
"[bind][%p] ERROR, %s.",
*NewBinding,
"Binding ephemeral port reuse encountered");
+ (*NewBinding)->RefCount--;
QuicBindingUninitialize(*NewBinding);
*NewBinding = NULL;
Status = QUIC_STATUS_INTERNAL_ERROR;
@@ -1579,6 +1580,7 @@ NewBinding:
"[bind][%p] ERROR, %s.",
Binding,
"Binding already in use");
+ (*NewBinding)->RefCount--;
QuicBindingUninitialize(*NewBinding);
*NewBinding = NULL;
Status = QUIC_STATUS_ADDRESS_IN_USE;
|
travis: don't depend on environment variables for C/CXXFLAGS
|
@@ -13,7 +13,7 @@ env:
- BUILD_CPP_TESTS=ON
- CMAKE_GENERATOR='Ninja'
- RUN_TESTS=true
- - OPTIMIZATION_FLAGS='-O3'
+ - OPTIMIZATION_FLAGS=''
jobs:
include:
@@ -23,6 +23,7 @@ jobs:
- C_COMPILER=gcc-9
- CXX_COMPILER=g++-9
- COMPILER_FLAGS='-fsanitize=address,undefined'
+ - OPTIMIZATION_FLAGS=''
addons:
apt:
sources:
@@ -260,10 +261,6 @@ before_install:
if [ -n "${CXX_COMPILER}" ]; then
export CXX="${CXX_COMPILER}"
fi
- if [ -n "${COMPILER_FLAGS}" ]; then
- export CFLAGS="${ARCH_FLAGS} ${OPTIMIZATION_FLAGS} ${COMPILER_FLAGS} ${CFLAGS}"
- export CXXFLAGS="${ARCH_FLAGS} ${OPTIMIZATION_FLAGS} ${COMPILER_FLAGS} ${CXXFLAGS}"
- fi
script:
- mkdir "${TRAVIS_BUILD_DIR}/test/build" && cd "${TRAVIS_BUILD_DIR}/test/build"
@@ -274,6 +271,8 @@ script:
-DBUILD_CPP_TESTS=${BUILD_CPP_TESTS} \
-DCMAKE_CROSSCOMPILING_EMULATOR="${TEST_WRAPPER}" \
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
+ -DCMAKE_C_FLAGS="${ARCH_FLAGS} ${OPTIMIZATION_FLAGS} ${COMPILER_FLAGS} ${CFLAGS}" \
+ -DCMAKE_CXX_FLAGS="${ARCH_FLAGS} ${OPTIMIZATION_FLAGS} ${COMPILER_FLAGS} ${CXXFLAGS}" \
${CMAKE_ARGS}
- ${BUILD_WRAPPER} cmake --build .
- |
|
doc: small changes for cxx code style
|
@@ -194,7 +194,7 @@ The same rules as for C apply. Where they are not enough, apply the following ru
File Naming
^^^^^^^^^^^^
-C++ Header files have the extension ``.h``. C++ source files have the extension ``.cpp``, which is important for the compiler to distiguish them from normal C source files.
+C++ Header files have the extension ``.hpp``. C++ source files have the extension ``.cpp``. The latter is important for the compiler to distiguish them from normal C source files.
Naming
^^^^^^
@@ -202,11 +202,39 @@ Naming
* **Class and struct** names shall be written in ``CamelCase`` with a capital letter as beginning. Member variables and methods shall be in ``snake_case``.
* **Namespaces** shall be in lower ``snake_case``.
* **Templates** are specified in the line above the function declaration.
+* Interfaces in terms of Object-Oriented Programming shall be named without the suffix ``...Interface``. Later, this makes it easier to extract interfaces from normal classes and vice versa without making a breaking change.
Member Order in Classes
^^^^^^^^^^^^^^^^^^^^^^^
+In order of precedence:
-First put the public members, then the protected, then private ones. Omit public, protected or private sections without any members.
+* First put the public members, then the protected, then private ones. Omit public, protected or private sections without any members.
+* First put constructors/destructors, then member functions, then member variables.
+
+For example:
+
+::
+
+ class ForExample {
+ public:
+ // first constructors, then default constructor, then destructor
+ ForExample(double example_factor_arg);
+ ForExample();
+ ~ForExample();
+
+ // then remaining pubic methods
+ set_example_factor(double example_factor_arg);
+
+ // then public member variables
+ uint32_t public_data_member;
+
+ private:
+ // first private methods
+ void internal_method();
+
+ // then private member variables
+ double example_factor;
+ };
Spacing
^^^^^^^
|
Make config.offset range more general from [-500,500] to [INT16_MIN,INT16_MAX]
|
@@ -232,7 +232,7 @@ void initResourceDescriptors()
rItemDescriptors.emplace_back(ResourceItemDescriptor(DataTypeString, RConfigLong));
rItemDescriptors.emplace_back(ResourceItemDescriptor(DataTypeUInt8, RConfigLevelMin));
rItemDescriptors.emplace_back(ResourceItemDescriptor(DataTypeString, RConfigMode));
- rItemDescriptors.emplace_back(ResourceItemDescriptor(DataTypeInt16, RConfigOffset, -500, 500));
+ rItemDescriptors.emplace_back(ResourceItemDescriptor(DataTypeInt16, RConfigOffset, INT16_MIN, INT16_MAX));
rItemDescriptors.emplace_back(ResourceItemDescriptor(DataTypeBool, RConfigOn));
rItemDescriptors.emplace_back(ResourceItemDescriptor(DataTypeUInt8, RConfigPending));
rItemDescriptors.emplace_back(ResourceItemDescriptor(DataTypeUInt32, RConfigPowerup));
|
Use glfw constants instead of opengl constants for window hints;
|
@@ -88,9 +88,9 @@ void lovrGraphicsCreateWindow(int w, int h, bool fullscreen, int msaa, const cha
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
- glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE);
+ glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GLFW_TRUE);
glfwWindowHint(GLFW_SAMPLES, msaa);
- glfwWindowHint(GLFW_RESIZABLE, GL_FALSE);
+ glfwWindowHint(GLFW_RESIZABLE, GLFW_FALSE);
glfwWindowHint(GLFW_SRGB_CAPABLE, state.gammaCorrect);
#else
glfwWindowHint(GLFW_CLIENT_API, GLFW_OPENGL_ES_API);
|
Shell Recorder: Add note about default working dir
|
@@ -26,7 +26,7 @@ is `0`.
Before we use the Shell Recorder we need to [build Elektra](/doc/COMPILE.md). If we assume that we built Elektra in the root of the
repository in a folder called `build`, then the Shell Recorder is located at `build/tests/shell/shell_recorder/shell_recorder.sh`. To start
-our test we call the Shell Recorder from the root of the repository and specify our test file as argument:
+our test we call the Shell Recorder from the root of the repository. The root directory of the repo is also the **default working directory** for tests (`*.esr`) located in this folder. We specify our test file as argument for the Shell Recorder:
```sh
build/tests/shell/shell_recorder/shell_recorder.sh ~/Documents/test.esr
|
corrects public-key retrieval for (parent of) moons
|
@@ -1292,14 +1292,42 @@ _sist_dawn(u3_noun sed)
// XX leaks nock
{
+ // XX check parent if moon
+ // +hull:constitution:ethe: on-chain state
+ u3_noun hul;
+
+ {
+ if ( c3__pawn == rac ) {
+ // irrelevant, just bunt +hull
+ hul = u3v_wish("*hull:constitution:ethe");
+ }
+ else {
+ u3_noun oct;
+
+ if ( c3__earl == rac ) {
+ u3_noun seg = u3do("^sein:title", u3k(who));
+ u3_noun ges = u3dc("scot", 'p', u3k(seg));
+ c3_c* seg_c = u3r_string(ges);
+
+ fprintf(stderr, "boot: retrieving %s's public keys (for %s)\r\n",
+ seg_c, u3_Host.ops_u.who_c);
+ oct = u3do("hull:give:dawn", u3k(seg));
+
+ free(seg_c);
+ u3z(seg); u3z(ges);
+ }
+ else {
fprintf(stderr, "boot: retrieving %s's public keys\r\n",
u3_Host.ops_u.who_c);
+ oct = u3do("hull:give:dawn", u3k(who));
+ }
- // XX check parent if moon
- // +hull:constitution:ethe: on-chain state
- u3_noun oct = u3do("hull:give:dawn", u3k(who));
u3_noun luh = _sist_eth_rpc(url_c, u3k(oct));
- u3_noun hul = u3dc("hull:take:dawn", u3k(who), u3k(luh));
+ hul = u3dc("hull:take:dawn", u3k(who), u3k(luh));
+
+ u3z(oct); u3z(luh);
+ }
+ }
// +live:dawn: network state
// XX actually make request
@@ -1321,7 +1349,7 @@ _sist_dawn(u3_noun sed)
// produced by +veri:dawn to avoid coupling to +hull structure
pon = u3k(u3t(sas));
- u3z(oct); u3z(luh); u3z(hul); u3z(liv); u3z(sas);
+ u3z(hul); u3z(liv); u3z(sas);
}
// XX leaks nock
|
log_reboot:resolve conflict by recent commit
|
@@ -247,21 +247,21 @@ log_reboot_write(const struct log_reboot_info *info)
cbor_encode_int(&map, info->pc);
}
- state_flags = imgmgr_state_flags(boot_current_slot);
+ state_flags = img_mgmt_state_flags(boot_current_slot);
cbor_encode_text_stringz(&map, "flags");
off = 0;
buf[0] = '\0';
- if (state_flags & IMGMGR_STATE_F_ACTIVE) {
+ if (state_flags & IMG_MGMT_STATE_F_ACTIVE) {
off += snprintf(buf + off, sizeof buf - off, "%s ", "active");
}
if (!(flags & IMAGE_F_NON_BOOTABLE)) {
off += snprintf(buf + off, sizeof buf - off, "%s ", "bootable");
}
- if (state_flags & IMGMGR_STATE_F_CONFIRMED) {
+ if (state_flags & IMG_MGMT_STATE_F_CONFIRMED) {
off += snprintf(buf + off, sizeof buf - off, "%s ", "confirmed");
}
- if (state_flags & IMGMGR_STATE_F_PENDING) {
+ if (state_flags & IMG_MGMT_STATE_F_PENDING) {
off += snprintf(buf + off, sizeof buf - off, "%s ", "pending");
}
if (off > 1) {
|
OpenCoreUefi: Simplify connect all code
|
@@ -156,11 +156,10 @@ OcConnectDrivers (
UINTN HandleCount;
EFI_HANDLE *HandleBuffer;
UINTN Index;
- VOID *DriverBinding;
Status = gBS->LocateHandleBuffer (
- AllHandles,
- NULL,
+ ByProtocol,
+ &gEfiDevicePathProtocolGuid,
NULL,
&HandleCount,
&HandleBuffer
@@ -170,19 +169,6 @@ OcConnectDrivers (
}
for (Index = 0; Index < HandleCount; ++Index) {
- Status = gBS->HandleProtocol (
- HandleBuffer[Index],
- &gEfiDevicePathProtocolGuid,
- &DriverBinding
- );
-
- if (EFI_ERROR (Status)) {
- //
- // Calling ConnectController on non-driver results in freezes on APTIO IV.
- //
- continue;
- }
-
gBS->ConnectController (HandleBuffer[Index], NULL, NULL, TRUE);
}
|
publish-js: avoid unnecessary scrollbars on note view
the root container had height: 100% but also a margin-top set on it. This
caused unnecessary scrollbars to appear when the content did not
actually overflow the container.
|
@@ -201,7 +201,7 @@ export class Note extends Component {
ref={el => {
this.scrollElement = el;
}}>
- <div className="h-100 flex flex-column items-center mt4 ph4 pb4">
+ <div className="h-100 flex flex-column items-center pa4">
<div className="w-100 flex justify-center pb6">
<SidebarSwitcher
popout={props.popout}
|
Added more details on which tools are initialized in the docker image
|
@@ -69,7 +69,7 @@ These variables need to be set for the ``make`` system to work properly.
Pre-built Docker Image
-------------------------------------------
-An alternative to setting up the Chipyard repository locally is to pull the pre-built Docker image from Docker Hub. The image comes with all dependencies installed, Chipyard cloned, and toolchains initialized. Each image comes with a tag that corresponds to the version of Chipyard cloned/set-up in that image. Not including a tag during the pull will pull the image with the latest version of Chipyard.
+An alternative to setting up the Chipyard repository locally is to pull the pre-built Docker image from Docker Hub. The image comes with all dependencies installed, Chipyard cloned, and toolchains initialized. This image sets up baseline Chipyard (not including FireMarshal, FireSim, and Hammer initializations). Each image comes with a tag that corresponds to the version of Chipyard cloned/set-up in that image. Not including a tag during the pull will pull the image with the latest version of Chipyard.
First, pull the Docker image. Run:
.. code-block:: shell
|
driver(spi): fix flag check in bus initialization
The current flag check in the SPI bus initialization is wrong and
causes exceptions when using certain SPI hosts in quad transfert mode.
|
@@ -654,7 +654,7 @@ esp_err_t spicommon_bus_initialize_io(spi_host_device_t host, const spi_bus_conf
gpio_hal_iomux_func_sel(GPIO_PIN_MUX_REG[bus_config->sclk_io_num], FUNC_GPIO);
}
#if SOC_SPI_SUPPORT_OCT
- if (flags & SPICOMMON_BUSFLAG_OCTAL) {
+ if ((flags & SPICOMMON_BUSFLAG_OCTAL) == SPICOMMON_BUSFLAG_OCTAL) {
int io_nums[] = {bus_config->data4_io_num, bus_config->data5_io_num, bus_config->data6_io_num, bus_config->data7_io_num};
uint8_t io_signals[4][2] = {{spi_periph_signal[host].spid4_out, spi_periph_signal[host].spid4_in},
{spi_periph_signal[host].spid5_out, spi_periph_signal[host].spid5_in},
|
LuaRED Converter - check object type for non numbers
|
#include "common/Meta.h"
-template<class T, FixedString REDName>
+template<class T, FixedString REDName, bool CheckObjectType = !std::is_arithmetic_v<T>>
struct LuaRED
{
static constexpr char const* Name = REDName;
@@ -16,10 +16,13 @@ struct LuaRED
{
RED4ext::CStackType result;
result.type = m_pRtti;
+ if (!CheckObjectType || aObject.is<T>())
+ {
if (aObject != sol::nil)
result.value = apAllocator->New<T>(aObject.as<T>());
else
result.value = apAllocator->New<T>();
+ }
return result;
}
|
Fix variable length blob size offset
Refs
|
@@ -185,7 +185,7 @@ BLOB_PARSE_RESULT dotnet_parse_blob_entry(
(*(offset + 1) << 16) |
(*(offset + 2) << 8) |
*(offset + 3);
- result.size = 3;
+ result.size = 4;
}
else
{
|
tools/build_llsp: write vector to second firmware
|
@@ -87,7 +87,7 @@ if int.from_bytes(firmware_boot_vector, 'little') > PYBRICKS_BASE:
firmware_boot_vector = flash_read(pybricks_start - 4)[0:4]
if firmware_boot_vector == FF*4:
- raise ValueError("Could not find reset vector.")
+ raise ValueError('Could not find reset vector.')
# Original firmware starts directly after bootloader. This is where flash_read
# has index 0.
@@ -188,6 +188,11 @@ while True:
# Decode and write
decoded = a2b_base64(base64)
+
+ # In the first block, override the boot vector
+ if bytes_done == 0:
+ decoded = decoded[0:4] + firmware_boot_vector + decoded[8:]
+
appl_image_store(decoded)
# Show progress
|
Fixed priority of mandatory-prefixes
|
@@ -61,8 +61,9 @@ typedef struct ZydisDecoderContext_
/**
* @brief Contains the prefix that should be traited as the mandatory-prefix, if the current
* instruction needs one.
- * 0x66 has precedence over 0xF3/0xF2 and the last 0xF3/0xF2 has precedence over
- * previous ones.
+ *
+ * The last 0xF3/0xF2 prefix has precedence over previous ones and 0xF3/0xF2 in
+ * general has precedence over 0x66.
*/
uint8_t mandatoryCandidate;
/**
@@ -462,6 +463,7 @@ static ZydisStatus ZydisDecodeMVEX(ZydisDecoderContext* context, ZydisInstructio
context->cache.B = 0x01 & ~info->details.mvex.B;
context->cache.R2 = 0x01 & ~info->details.mvex.R2;
context->cache.V2 = 0x01 & ~info->details.mvex.V2;
+ context->cache.LL = 2;
context->cache.v_vvvv =
((0x01 & ~info->details.mvex.V2) << 4) | (0x0F & ~info->details.mvex.vvvv);
@@ -706,17 +708,11 @@ static ZydisStatus ZydisCollectOptionalPrefixes(ZydisDecoderContext* context,
++info->details.prefixes.hasF0;
break;
case 0xF2:
- if (context->mandatoryCandidate != 0x66)
- {
context->mandatoryCandidate = 0xF2;
- }
++info->details.prefixes.hasF2;
break;
case 0xF3:
- if (context->mandatoryCandidate != 0x66)
- {
context->mandatoryCandidate = 0xF3;
- }
++info->details.prefixes.hasF3;
break;
case 0x2E:
@@ -744,7 +740,10 @@ static ZydisStatus ZydisCollectOptionalPrefixes(ZydisDecoderContext* context,
context->lastSegmentPrefix = 0x65;
break;
case 0x66:
+ if (!context->mandatoryCandidate)
+ {
context->mandatoryCandidate = 0x66;
+ }
++info->details.prefixes.has66;
info->attributes |= ZYDIS_ATTRIB_HAS_OPERANDSIZE;
break;
@@ -2401,10 +2400,6 @@ static void ZydisSetAVXInformation(ZydisDecoderContext* context,
/* ---------------------------------------------------------------------------------------------- */
-// TODO: Update attributes after a valid instruction was found
-
-/* ---------------------------------------------------------------------------------------------- */
-
static ZydisStatus ZydisNodeHandlerXOP(ZydisInstructionInfo* info, uint16_t* index)
{
ZYDIS_ASSERT(info);
@@ -2625,7 +2620,6 @@ static ZydisStatus ZydisNodeHandlerOpcode(ZydisDecoderContext* context,
}
break;
case ZYDIS_INSTRUCTION_ENCODING_3DNOW:
- // TODO: We need to change this
// All 3DNOW (0x0F 0x0F) instructions are using the same operand encoding. We just
// decode a random (pi2fw) instruction and extract the actual opcode later.
*index = 0x0C;
|
Clarified the scope of CMSIS for Arm Cortex-based microcontrollers
|
\mainpage Introduction
The <b>Cortex Microcontroller Software Interface Standard</b> (CMSIS) is a vendor-independent
-hardware abstraction layer for the Cortex®-M processor series and defines generic tool
+hardware abstraction layer for microcontrollers that are based on Arm® Cortex® processors and defines generic tool
interfaces. The CMSIS enables consistent device support and
simple software interfaces to the processor and the peripherals, simplifying software re-use,
reducing the learning curve for microcontroller developers, and reducing the time to market for new devices.
|
test: add ethereum test case
test_005ParametersSet_0006SetValueSuccessNullvalue
|
@@ -385,6 +385,25 @@ START_TEST(test_005ParametersSet_0005SetValueFailureNullTx)
}
END_TEST
+START_TEST(test_005ParametersSet_0006SetValueSuccessNullvalue)
+{
+ BSINT32 rtnVal;
+ BoatEthTx tx_ptr;
+ rtnVal = ethereumWalletPrepare();
+ ck_assert_int_eq(rtnVal, BOAT_SUCCESS);
+
+ rtnVal = BoatEthTxInit(g_ethereum_wallet_ptr, &tx_ptr, TEST_IS_SYNC_TX, TEST_GAS_PRICE,
+ TEST_GAS_LIMIT, TEST_RECIPIENT_ADDRESS);
+ ck_assert(rtnVal == BOAT_SUCCESS);
+
+ rtnVal = BoatEthTxSetValue(&tx_ptr, NULL);
+ ck_assert(rtnVal == BOAT_SUCCESS);
+ ck_assert_int_eq(tx_ptr.rawtx_fields.value.field_len, 0);
+
+ BoatIotSdkDeInit();
+}
+END_TEST
+
Suite *make_parameters_suite(void)
{
/* Create Suite */
@@ -413,6 +432,7 @@ Suite *make_parameters_suite(void)
tcase_add_test(tc_param_api, test_005ParametersSet_0003SetNonceFailureNullTx);
tcase_add_test(tc_param_api, test_005ParametersSet_0004SetValueSuccess);
tcase_add_test(tc_param_api, test_005ParametersSet_0005SetValueFailureNullTx);
+ tcase_add_test(tc_param_api, test_005ParametersSet_0006SetValueSuccessNullvalue);
return s_param;
}
|
Fix check on legacy
|
@@ -163,11 +163,11 @@ static int iterate_reduced_gaussian_subarea_legacy(grib_iterator* iter, grib_han
long ilon_first, ilon_last, i;
grib_iterator_gaussian_reduced* self = (grib_iterator_gaussian_reduced*)iter;
get_reduced_row_proc get_reduced_row = &grib_get_reduced_row;
- get_reduced_row = &grib_get_reduced_row_legacy; /* switch to legacy algorithm */
+ get_reduced_row = &grib_get_reduced_row_legacy; /* legacy algorithm */
if (h->context->debug) {
const size_t np = count_subarea_points(h, get_reduced_row, pl, plsize, lon_first, lon_last);
- printf("ECCODES DEBUG grib_iterator_class_gaussian_reduced: sub-area num points=%ld\n", (long)np);
+ printf("ECCODES DEBUG grib_iterator_class_gaussian_reduced: Legacy sub-area num points=%ld\n", (long)np);
}
/*find starting latitude */
@@ -186,7 +186,7 @@ static int iterate_reduced_gaussian_subarea_legacy(grib_iterator* iter, grib_han
if(iter->e >= iter->nv){
size_t np = count_subarea_points(h, get_reduced_row, pl, plsize, lon_first, lon_last);
grib_context_log(h->context,GRIB_LOG_ERROR,
- "Reduced Gaussian iterator (sub-area). Num points=%ld, size(values)=%ld", np, iter->nv);
+ "Reduced Gaussian iterator (sub-area legacy). Num points=%ld, size(values)=%ld", np, iter->nv);
return GRIB_WRONG_GRID;
}
@@ -258,9 +258,14 @@ static int iterate_reduced_gaussian_subarea_algorithm2(grib_iterator* iter, grib
}
if (iter->e != iter->nv) {
- // Fewer counted points in the sub-area than the number of data values.
- // Either inconsistent GRIB or Legacy (produced by PRODGEN/LIBEMOS)
+ /* Fewer counted points in the sub-area than the number of data values */
+ const size_t legacy_count = count_subarea_points(h, grib_get_reduced_row_legacy, pl, plsize, lon_first, lon_last);
+ if (iter->nv == legacy_count) {
+ /* Legacy (produced by PRODGEN/LIBEMOS) */
return iterate_reduced_gaussian_subarea_legacy(iter, h, lat_first, lon_first, lat_last, lon_last, lats, pl, plsize);
+ } else {
+ /* TODO: A gap exists! Not all values can be mapped. Inconsistent grid or error in calculating num. points! */
+ }
}
return err;
}
|
Small fix for CB/UB BAM tags. Compiles and runs for 1-lane dataset. CBs agree with CellRanger, however, UB is not error corrected.
|
@@ -118,6 +118,7 @@ void SoloReadFeature::inputRecords(uint32 **cbP, uint32 cbPstride, uint32 *cbRea
cbP[cb]+=cbPstride;
} else {//no feature - record readInfo
readInfo[iread].cb=cb;
+ readInfo[iread].umi=umi;
};
};
} else {
|
Update the share directory location
This location depends on the initial install directory of automake. Eg, it can be installed inside /usr/local instead of /usr
|
# copy TAP driver into build-aux
automake_ver=$(automake --version | \grep -E -o '[0-9]\.[0-9]{2}')
+automake_dir=$(dirname $(which automake))/..
mkdir -p build-aux
-cp -f /usr/share/automake-$automake_ver/tap-driver.sh build-aux
+cp -f $automake_dir/share/automake-$automake_ver/tap-driver.sh build-aux
# create criterion TAP log compiler
# this is necessary to print TAP (and only TAP) on the standard output,
|
Tests: fixed double stop() call for some tests.
|
@@ -201,6 +201,8 @@ class TestUnit(unittest.TestCase):
self._print_log()
exit("Could not start unit")
+ self._started = True
+
self.skip_alerts = [
r'read signalfd\(4\) failed',
r'sendmsg.+failed',
@@ -209,7 +211,7 @@ class TestUnit(unittest.TestCase):
self.skip_sanitizer = False
def tearDown(self):
- stop_errs = self.stop()
+ self.stop()
# detect errors and failures for current test
@@ -244,18 +246,21 @@ class TestUnit(unittest.TestCase):
else:
self._print_log()
- self.assertListEqual(stop_errs, [None, None], 'stop errors')
+ self.assertListEqual(self.stop_errors, [None, None], 'stop errors')
def stop(self):
- errors = []
+ if not self._started:
+ return
+
+ self.stop_errors = []
- errors.append(self._stop())
+ self.stop_errors.append(self._stop())
- errors.append(self.stop_processes())
+ self.stop_errors.append(self.stop_processes())
atexit.unregister(self.stop)
- return errors
+ self._started = False
def _stop(self):
if self._p.poll() is not None:
|
intelrvp: convert HOOK_INIT to SYS_INIT
Convert all HOOK_INIT calls to the equivalent SYS_INIT.
BRANCH=none
TEST=zmake testall
|
#include "gpio.h"
#include "hooks.h"
-static void board_init(void)
+static int board_init(const struct device *unused)
{
+ ARG_UNUSED(unused);
/* Enable SOC SPI */
gpio_pin_set_dt(GPIO_DT_FROM_NODELABEL(ec_spi_oe_mecc), 1);
+
+ return 0;
}
-DECLARE_HOOK(HOOK_INIT, board_init, HOOK_PRIO_LAST);
+SYS_INIT(board_init, APPLICATION, HOOK_PRIO_LAST);
|
80-test_cmp_http.t: Fix handling of empty HTTP proxy string
Fixes
|
@@ -42,8 +42,8 @@ sub chop_dblquot { # chop any leading and trailing '"' (needed for Windows)
return $str;
}
-my $proxy = "<EMPTY>";
-$proxy = chop_dblquot($ENV{http_proxy} // $ENV{HTTP_PROXY} // $proxy);
+my $proxy = chop_dblquot($ENV{http_proxy} // $ENV{HTTP_PROXY} // "");
+$proxy = "<EMPTY>" if $proxy eq "";
$proxy =~ s{^https?://}{}i;
my $no_proxy = $ENV{no_proxy} // $ENV{NO_PROXY};
|
Ignore EINTR.
|
@@ -164,7 +164,7 @@ recv_function_route(void *arg)
}
}
if (ret < 0) {
- if (errno == EAGAIN) {
+ if (errno == EAGAIN || errno == EINTR) {
continue;
} else {
break;
@@ -211,7 +211,7 @@ recv_function_route(void *arg)
len = recvmsg(SCTP_BASE_VAR(userspace_route), &msg, 0);
if (len < 0) {
- if (errno == EAGAIN) {
+ if (errno == EAGAIN || errno == EINTR) {
continue;
} else {
break;
|
Remove duplicated check for `argc`
`rb_scan_args(argc, argv, "11", NULL, &ropts);` ensures `argc`
is 1 or 2, so we do not need to check `argc` here.
|
@@ -507,7 +507,7 @@ mimic_parse_core(int argc, VALUE *argv, VALUE self, bool bang) {
pi.options.mode = CompatMode;
pi.max_depth = 100;
- if (2 <= argc && Qnil != ropts) {
+ if (Qnil != ropts) {
VALUE v;
if (T_HASH != rb_type(ropts)) {
|
spi: support slave mode and master mode runtime config
support slave mode and master mode runtime config.
|
@@ -43,7 +43,7 @@ extern "C"{
#define RT_SPI_MODE_2 (RT_SPI_CPOL | 0) /* CPOL = 1, CPHA = 0 */
#define RT_SPI_MODE_3 (RT_SPI_CPOL | RT_SPI_CPHA) /* CPOL = 1, CPHA = 1 */
-#define RT_SPI_MODE_MASK (RT_SPI_CPHA | RT_SPI_CPOL | RT_SPI_MSB)
+#define RT_SPI_MODE_MASK (RT_SPI_CPHA | RT_SPI_CPOL | RT_SPI_MSB | RT_SPI_SLAVE)
#define RT_SPI_BUS_MODE_SPI (1<<0)
#define RT_SPI_BUS_MODE_QSPI (1<<1)
|
On Linux, set _DEFAULT_SOURCE to see required struct members.
Without some feature test that sets __USE_MISC, tm.tm_gmtoff and
tm.tm_zone are hidden under other names.
|
@@ -10,6 +10,7 @@ defines = {
aix = {_ALL_SOURCE = 1},
bsd = {_BSD_SOURCE = 1},
freebsd = {__BSD_VISIBLE = 1},
+ linux = {_DEFAULT_SOURCE = 1},
macosx = {_DARWIN_C_SOURCE = 1},
-- QNX is only POSIX 2001, but _XOPEN_SOURCE turns off other functions
-- luaposix can bind.
|
docs(display) remove built-in color list as they no longer exist in this manner
|
@@ -168,31 +168,6 @@ To describe opacity the `lv_opa_t` type is created as a wrapper to `uint8_t`. So
You can also use the `LV_OPA_*` defines in `lv_color_mix()` as a *ratio*.
-### Built-in colors
-
-The color module defines the most basic colors such as:
-
--  `LV_COLOR_WHITE`
--  `LV_COLOR_BLACK`
--  `LV_COLOR_GRAY`
--  `LV_COLOR_SILVER`
--  `LV_COLOR_RED`
--  `LV_COLOR_MAROON`
--  `LV_COLOR_LIME`
--  `LV_COLOR_GREEN`
--  `LV_COLOR_OLIVE`
--  `LV_COLOR_BLUE`
--  `LV_COLOR_NAVY`
--  `LV_COLOR_TEAL`
--  `LV_COLOR_CYAN`
--  `LV_COLOR_AQUA`
--  `LV_COLOR_PURPLE`
--  `LV_COLOR_MAGENTA`
--  `LV_COLOR_ORANGE`
--  `LV_COLOR_YELLOW`
-
-as well as `LV_COLOR_WHITE` (fully white).
-
## API
|
[run_rocm_test] - Add more sanity checks at beginning.
|
@@ -31,7 +31,6 @@ totalunexpectedfails=0
EPSDB=1 ./clone_test.sh > /dev/null
AOMP_TEST_DIR=${AOMP_TEST_DIR:-"$HOME/git/aomp-test"}
-
# Set AOMP to point to rocm symlink or newest version.
if [ -L /opt/rocm ]; then
AOMP=${AOMP:-"/opt/rocm/llvm"}
@@ -49,6 +48,8 @@ if [ $? -ne 0 ]; then
exit 1
fi
+$AOMP/bin/flang1 --version
+
clangversion=`$AOMP/bin/clang --version`
aomp=0
if [[ "$clangversion" =~ "AOMP_STANDALONE" ]]; then
@@ -81,9 +82,8 @@ $AOMPROCM/bin/rocm_agent_enumerator
if [ "$AOMP_GPU" == "" ]; then
AOMP_GPU=$($AOMPROCM/bin/rocm_agent_enumerator | grep -m 1 -E gfx[^0]{1}.{2})
fi
-# mygpu will eventually relocate to /opt/rocm/bin, support both cases for now.
-echo AOMP_GPU= $AOMP_GPU
+# mygpu will eventually relocate to /opt/rocm/bin, support both cases for now.
if [ "$AOMP_GPU" != "" ]; then
echo "AOMP_GPU set with rocm_agent_enumerator."
else
@@ -98,8 +98,17 @@ if [ "$AOMP_GPU" == "" ]; then
echo "Error: AOMP_GPU was not able to be set with RAE or mygpu."
exit 1
fi
+echo AOMP_GPU=$AOMP_GPU
export AOMP_GPU
+# Run quick sanity test
+echo
+echo "Helloworld sanity test:"
+cd "$aompdir"/test/smoke/helloworld
+make clean > /dev/null
+OMP_TARGET_OFFLOAD=MANDATORY VERBOSE=1 make run > hello.log 2>&1
+sed -n -e '/ld.lld/,$p' hello.log
+
# Determines ROCm version and openmp-extras version to choose which set
# of expected passes to use. Example ROCm 4.3 build installed but
# openmp-extras version is 4.2. This can happen in mainline builds. Do not expect
|
VERSION bump to version 0.7.49
|
@@ -38,7 +38,7 @@ set(CMAKE_C_FLAGS_DEBUG "-g -O0")
# set version
set(LIBNETCONF2_MAJOR_VERSION 0)
set(LIBNETCONF2_MINOR_VERSION 7)
-set(LIBNETCONF2_MICRO_VERSION 48)
+set(LIBNETCONF2_MICRO_VERSION 49)
set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION}.${LIBNETCONF2_MICRO_VERSION})
set(LIBNETCONF2_SOVERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION})
|
dojo: re-add support for /+, /- ford runes
|
::
;~ pfix fas
;~ pose
- (parse-variable (cold %sur hep) ;~(pfix gap parse-cables))
- (parse-variable (cold %lib lus) ;~(pfix gap parse-cables))
+ (parse-variable (cold %sur hep) ;~(pfix gap (parse-ford %sur)))
+ (parse-variable (cold %lib lus) ;~(pfix gap (parse-ford %lib)))
==
==
::
(stag %show (cook $?(%1 %2 %3 %4 %5) (cook lent (stun [1 5] wut))))
==
::
- ++ parse-cables
- %+ cook
+ ++ parse-ford
+ |= base-path=@ta
+ %- cook :_ (most ;~(plug com gaw) parse-cable)
|= cables=(list cable:clay)
- :+ 0 %ex
- ^- hoon
+ :+ 0 %tu
::
- :- %clsg
%+ turn cables
|= cable=cable:clay
- ^- hoon
+ ^- dojo-source
+ :: TODO: The following *does* properly add faces to imported cores,
+ :: but discards all their type information, making them hard to
+ :: work with
::
- :+ %clhp
- ?~ face.cable
- [%rock %n ~]
- [%clhp [%rock %n ~] [%sand %tas u.face.cable]]
- [%sand %tas file-path.cable]
- (most ;~(plug com gaw) parse-cable)
+ :: =+ add-face=?~(face.cable "|=(n=* n)" ;:(weld "|=(n=* ^=(" (trip u.face.cable) " n))"))
+ :: :^ 0 %do (scan add-face parse-hoon)
+ :+ 0 %dv [-.dir `path`[base-path file-path.cable ~]]
::
++ parse-cable
%+ cook |=(a=cable:clay a)
=. var (~(del by var) p.mad)
=< dy-amok
?+ p.mad .
- %lib .(lib ~)
- %sur .(sur ~)
+ :: %lib .(lib ~)
+ :: %sur .(sur ~)
%dir .(dir [[our.hid %base ud+0] /])
==
=+ cay=(~(got by rez) p.q.mad)
~| bad-set+[p.p.mad p.q.cay]
=< dy-amok
?+ p.p.mad .
- %lib
- %_ .
- lib
- ((dy-cast (list cable:clay) !>(*(list cable:clay))) q.cay)
- ==
- ::
- %sur
- %_ .
- sur
- ((dy-cast (list cable:clay) !>(*(list cable:clay))) q.cay)
- ==
+ :: %lib
+ :: %_ .
+ :: lib
+ :: ((dy-cast (list cable:clay) !>(*(list cable:clay))) q.cay)
+ :: ==
+ :: ::
+ :: %sur
+ :: %_ .
+ :: sur
+ :: ((dy-cast (list cable:clay) !>(*(list cable:clay))) q.cay)
+ :: ==
::
%dir =+ ^= pax ^- path
=+ pax=((dy-cast path !>(*path)) q.cay)
|
Do not require sqlalchemy for celery
It was added in r4621639 to satisfy import tests.
Note: mandatory check (NEED_CHECK) was skipped
|
@@ -19,6 +19,7 @@ def check_imports(no_check=None, extra=[], skip_func=None):
'boto.*',
+ 'celery.backends.database.*', # needs optional dependency sqlalchemy
'click._winconsole',
'common.*', # sandbox.common
@@ -35,6 +36,7 @@ def check_imports(no_check=None, extra=[], skip_func=None):
'gensim.similarities.index',
'kernel.*', # skynet/kernel
+ 'kombu.transport.sqlalchemy.*',
'IPython.*',
'lxml.cssselect',
'lxml.html.ElementSoup',
|
remove teams that cause this to fail on nvidia
|
@@ -11,17 +11,16 @@ static int colstat[NZ];
int main(){
colstat[0]=-1;
#pragma omp target map(alloc:colstat[0:NZ])
-#pragma omp teams
{
colstat[1] = 1111;
}
#pragma omp target map(alloc:colstat[:0])
-#pragma omp teams
{
colstat[2] = 2222;
}
+ fprintf(stderr, "BEFORE colstat[0..2] %d %d %d \n", colstat[0], colstat[1], colstat[2]);
#pragma omp target update from(colstat)
- printf("colstat[0..2] %d %d %d \n", colstat[0], colstat[1], colstat[2]);
- return 0;
+ fprintf(stderr, "AFTER colstat[0..2] %d %d %d \n", colstat[0], colstat[1], colstat[2]);
+ return 0; // RON FIXME:
}
|
Fix potentially wrong HOSTARCH definition in cross-compilation
|
@@ -9,11 +9,10 @@ ifndef TOPDIR
TOPDIR = .
endif
- # If ARCH is not set, we use the host system's architecture for getarch compile options.
-ifndef ARCH
+# we need to use the host system's architecture for getarch compile options even especially when cross-compiling
HOSTARCH := $(shell uname -m)
-else
-HOSTARCH = $(ARCH)
+ifeq ($(HOSTARCH), amd64)
+HOSTARCH=x86_64
endif
HAVE_GAS := $(shell as -v < /dev/null 2>&1 | grep GNU 2>&1 >/dev/null)
|
goad: %force in +on-load
|
|= force=?
:~ [%pass /gall %arvo %g %goad force ~]
==
+ +$ state
+ $@ ~
+ [%0 ~]
--
|_ =bowl:gall
+* this .
++ on-fail on-fail:def
++ on-init on-init:def
++ on-leave on-leave:def
-++ on-load on-load:def
+++ on-load
+ |= =vase
+ =+ !<(old=state vase)
+ ?^ old `this
+ [(goad &) this]
+::
++ on-peek on-peek:def
-++ on-save on-save:def
+++ on-save !>([%0 ~])
++ on-watch on-watch:def
--
|
Check if item exits before adding to blacklist
|
@@ -62,7 +62,13 @@ bool is_blacklisted(bool force_recheck) {
}
void add_blacklist(std::string new_item) {
+ // check if item exits in blacklist before adding new item
+ if(std::find(blacklist.begin(), blacklist.end(), new_item) != blacklist.end()) {
+ return;
+ }
+
blacklist.push_back (new_item);
is_blacklisted(true);
}
+
|
fix: make use of update ANSI macros
|
@@ -669,7 +669,7 @@ static void*
dispatch_run(void *p_cxt)
{
struct _event_cxt *cxt = p_cxt;
- log_info(ANSICOLOR("pthread %u is running to serve %s", 31),
+ log_info(ANSICOLOR("pthread %u is running to serve %s", ANSI_FG_RED),
cxt->tid, cxt->p_gw->payload.event_name);
(*cxt->on_event)(cxt->p_gw, &cxt->data);
@@ -680,7 +680,7 @@ dispatch_run(void *p_cxt)
&cxt->p_gw->sb_bot,
&cxt->data);
- log_info(ANSICOLOR("pthread %u exit to serve %s", 31),
+ log_info(ANSICOLOR("pthread %u exit to serve %s", ANSI_FG_RED),
cxt->tid, cxt->p_gw->payload.event_name);
free(cxt->data.start);
free(cxt);
@@ -913,7 +913,7 @@ on_close_cb(void *p_gw, enum ws_close_reason wscode, const char *reason, size_t
enum discord_gateway_close_opcodes opcode = \
(enum discord_gateway_close_opcodes)wscode;
- log_warn(ANSICOLOR("%s",31)" (code: %4d) : %zd bytes,"
+ log_warn(ANSICOLOR("%s",ANSI_FG_RED)" (code: %4d) : %zd bytes,"
"REASON: '%s'",
close_opcode_print(opcode), opcode, len,
reason);
@@ -964,7 +964,7 @@ on_text_cb(void *p_gw, const char *text, size_t len)
gw->payload.seq_number = seq_number;
}
- log_trace(ANSICOLOR("%s", 93)", EVENT:%s, SEQ:%d, DATA:%s%.*s",
+ log_trace(ANSICOLOR("%s", ANSI_FG_BRIGHT_YELLOW)", EVENT:%s, SEQ:%d, DATA:%s%.*s",
opcode_print(gw->payload.opcode),
*gw->payload.event_name ? gw->payload.event_name : "NULL",
gw->payload.seq_number,
|
Fixing invalid references to gpfs_hdfs_tell in elog statements.
|
@@ -662,7 +662,7 @@ gpfs_hdfs_truncate(PG_FUNCTION_ARGS)
/* Must be called via the filesystem manager */
if (!CALLED_AS_GPFILESYSTEM(fcinfo)) {
- elog(WARNING, "cannot execute gpfs_hdfs_tell outside filesystem manager");
+ elog(WARNING, "cannot execute gpfs_hdfs_truncate outside filesystem manager");
retval = -1;
errno = EINVAL;
PG_RETURN_INT32(retval);
@@ -717,7 +717,7 @@ gpfs_hdfs_getpathinfo(PG_FUNCTION_ARGS)
/* Must be called via the filesystem manager */
if (!CALLED_AS_GPFILESYSTEM(fcinfo)) {
- elog(WARNING, "cannot execute gpfs_hdfs_tell outside filesystem manager");
+ elog(WARNING, "cannot execute gpfs_hdfs_getpathinfo outside filesystem manager");
retval = -1;
errno = EINVAL;
PG_RETURN_INT32(retval);
@@ -757,7 +757,7 @@ gpfs_hdfs_freefileinfo(PG_FUNCTION_ARGS)
/* Must be called via the filesystem manager */
if (!CALLED_AS_GPFILESYSTEM(fcinfo)) {
- elog(WARNING, "cannot execute gpfs_hdfs_tell outside filesystem manager");
+ elog(WARNING, "cannot execute gpfs_hdfs_freefileinfo outside filesystem manager");
retval = -1;
errno = EINVAL;
PG_RETURN_INT64(retval);
|
VPP-API: Cancel timeout thread without sending READ_TIMEOUT message.
This caused a spurious message to be sent on the API ring causing debug messages.
|
@@ -72,6 +72,7 @@ vac_main_t vac_main;
vac_callback_t vac_callback;
u16 read_timeout = 0;
bool rx_is_running = false;
+bool timeout_thread_cancelled = false;
/* Set to true to enable memory tracing */
bool mem_trace = false;
@@ -248,7 +249,7 @@ vac_timeout_thread_fn (void *arg)
rv = pthread_cond_timedwait (&pm->timeout_cancel_cv,
&pm->timeout_lock, &ts);
pthread_mutex_unlock(&pm->timeout_lock);
- if (rv == ETIMEDOUT)
+ if (rv == ETIMEDOUT && !timeout_thread_cancelled)
{
ep = vl_msg_api_alloc (sizeof (*ep));
ep->_vl_msg_id = ntohs(VL_API_MEMCLNT_READ_TIMEOUT);
@@ -404,8 +405,8 @@ vac_disconnect (void)
}
if (pm->timeout_thread_handle) {
/* cancel, wake then join the timeout thread */
- clib_warning("vac_disconnect cancel");
pm->timeout_loop = 0;
+ timeout_thread_cancelled = true;
set_timeout(0);
pthread_join(pm->timeout_thread_handle, (void **) &junk);
}
@@ -451,14 +452,11 @@ vac_read (char **p, int *l, u16 timeout)
u16 msg_id = ntohs(*((u16 *)msg));
switch (msg_id) {
case VL_API_RX_THREAD_EXIT:
- printf("Received thread exit\n");
vl_msg_api_free((void *) msg);
return -1;
case VL_API_MEMCLNT_RX_THREAD_SUSPEND:
- printf("Received thread suspend\n");
goto error;
case VL_API_MEMCLNT_READ_TIMEOUT:
- printf("Received read timeout %ds\n", timeout);
goto error;
case VL_API_MEMCLNT_KEEPALIVE:
/* Handle an alive-check ping from vpp. */
@@ -480,7 +478,7 @@ vac_read (char **p, int *l, u16 timeout)
msgbuf = (msgbuf_t *)(((u8 *)msg) - offsetof(msgbuf_t, data));
*l = ntohl(msgbuf->data_len);
if (*l == 0) {
- printf("Unregistered API message: %d\n", msg_id);
+ fprintf(stderr, "Unregistered API message: %d\n", msg_id);
goto error;
}
}
@@ -490,7 +488,7 @@ vac_read (char **p, int *l, u16 timeout)
unset_timeout();
} else {
- printf("Read failed with %d\n", rv);
+ fprintf(stderr, "Read failed with %d\n", rv);
}
return (rv);
@@ -532,7 +530,7 @@ vac_write (char *p, int l)
q = am->shmem_hdr->vl_input_queue;
rv = svm_queue_add(q, (u8 *)&mp, 0);
if (rv != 0) {
- clib_warning("vpe_api_write fails: %d\n", rv);
+ fprintf(stderr, "vpe_api_write fails: %d\n", rv);
/* Clear message */
vac_free(mp);
}
|
hv: Check ept rwx misconfigurations
Check ept rwx misconfigurations when config memory attribute,
if misconfig it will assert.
Acked-by: Eddie Dong
|
@@ -947,6 +947,19 @@ static int modify_paging(struct map_params *map_params, void *paddr,
}
attr = config_page_table_attr(map_params, flags);
+ /* Check ept misconfigurations,
+ * rwx misconfiguration in the following conditions:
+ * - write-only
+ * - write-execute
+ * - execute-only(if capability not support)
+ * here attr & 0x7, rwx bit0:2
+ */
+ ASSERT(!((map_params->page_table_type == PTT_EPT) &&
+ (((attr & 0x7) == IA32E_EPT_W_BIT) ||
+ ((attr & 0x7) == (IA32E_EPT_W_BIT | IA32E_EPT_X_BIT)) ||
+ (((attr & 0x7) == IA32E_EPT_X_BIT) &&
+ !cpu_has_vmx_ept_cap(VMX_EPT_EXECUTE_ONLY)))),
+ "incorrect memory attribute set!\n");
/* Loop until the entire block of memory is appropriately
* MAP/UNMAP/MODIFY
*/
|
Detect support for unaligned memory access
|
@@ -69,6 +69,18 @@ extern void (*mbedtls_test_hook_test_fail)( const char * test, int line, const c
*/
#define MBEDTLS_ALLOW_PRIVATE_ACCESS
+/** Detect architectures where unaligned memory accesses are safe and performant.
+ *
+ * This list is incomplete.
+ */
+#if defined(__i386__) || defined(__amd64__) || defined( __x86_64__) \
+ || defined(__ARM_FEATURE_UNALIGNED) \
+ || defined(__aarch64__) \
+ || defined(__ARM_ARCH_8__) || defined(__ARM_ARCH_8A__) || defined(__ARM_ARCH_8M__) \
+ || defined(__ARM_ARCH_7A__)
+#define MBEDTLS_ALLOW_UNALIGNED_ACCESS
+#endif
+
/** Byte Reading Macros
*
* Given a multi-byte integer \p x, MBEDTLS_BYTE_n retrieves the n-th
@@ -404,6 +416,7 @@ extern void (*mbedtls_test_hook_test_fail)( const char * test, int line, const c
*/
static inline void mbedtls_xor( unsigned char* r, unsigned char const *a, unsigned char const *b, size_t n )
{
+#if defined(MBEDTLS_ALLOW_UNALIGNED_ACCESS)
uint32_t *a32 = (uint32_t*)a;
uint32_t *b32 = (uint32_t*)b;
uint32_t *r32 = (uint32_t*)r;
@@ -415,6 +428,12 @@ static inline void mbedtls_xor( unsigned char* r, unsigned char const *a, unsign
{
r[i] = a[i] ^ b[i];
}
+#else
+ for ( size_t i = 0; i < n; i++ )
+ {
+ r[i] = a[i] ^ b[i];
+ }
+#endif
}
/* Fix MSVC C99 compatible issue
|
Remove direct RSA metadata accessor
This changes the s2n_rsa_is_private_key method in s2n_rsa_pss.c
to use RSA_get0_key instead of RSA_get0_d.
|
@@ -55,7 +55,10 @@ static int s2n_rsa_pss_size(const struct s2n_pkey *key)
static int s2n_rsa_is_private_key(RSA *rsa_key)
{
- if (RSA_get0_d(rsa_key)) {
+ const BIGNUM *d = NULL;
+ RSA_get0_key(rsa_key, NULL, NULL, &d);
+
+ if (d != NULL) {
return 1;
}
return 0;
|
SampleApplication: Disable the schroot mapping.
Disable the schroot mapping data from native env to the
chroot env.
|
@@ -100,7 +100,7 @@ function copy_and_enlarge_image() {
qemu-img convert -f qcow2 -O raw ${source_image} ${dest_image} && \
qemu-img resize -f raw ${dest_image} ${size_modifier} && \
- growpart ${dest_image} 1
+ LANG=C growpart ${dest_image} 1
}
function dump_proxy() {
@@ -147,6 +147,7 @@ personality=linux
preserve-environment=true
EOF
+ sudo sed -i -e '3,9 s/^/#/' /etc/schroot/default/nssdatabases && \
sudo mv ${temp_file} /etc/schroot/chroot.d/acrn-guest && \
sudo chown root:root /etc/schroot/chroot.d/acrn-guest
}
|
remove last compile warning
|
@@ -1266,7 +1266,6 @@ int tls_api_one_scenario_init(
uint32_t proposed_version,
picoquic_tp_t * client_params, picoquic_tp_t * server_params)
{
- uint64_t loss_mask = 0;
int ret = tls_api_init_ctx(p_test_ctx,
(proposed_version == 0) ? PICOQUIC_INTERNAL_TEST_VERSION_1 : proposed_version,
PICOQUIC_TEST_SNI, PICOQUIC_TEST_ALPN, simulated_time, NULL, 0, 1, 0);
|
Generate Sandbox task code
ISSUE:
|
@@ -4377,7 +4377,7 @@ TASKLET_REG_INCLUDES= \
${output_include;hide:"tasklet/runtime/lib/registry.h"}
macro TASKLET_REG(Name, Lang, Impl, Includes...) {
- PEERDIR(tasklet/runtime/lib sandbox/bin sandbox/taskbox/worker)
+ PEERDIR(tasklet/domain sandbox/bin sandbox/taskbox/worker)
.CMD=$YMAKE_PYTHON ${input:"build/scripts/gen_tasklet_reg.py"} $Name --$Lang $Impl ${output;noauto:Name.task.cpp} $Includes ${output_include;hide:Includes} $TASKLET_REG_INCLUDES ${kv;hide:"p TL"} ${kv;hide:"pc yellow"}
SRCS(GLOBAL $Name.task.cpp)
|
Fade in checkmark for material theme
|
@@ -620,6 +620,9 @@ static void checkbox_init(void)
lv_style_set_radius(&styles->cb_bullet, LV_STATE_DEFAULT, LV_DPX(4));
lv_style_set_pattern_image(&styles->cb_bullet, LV_STATE_CHECKED, LV_SYMBOL_OK);
lv_style_set_pattern_recolor(&styles->cb_bullet, LV_STATE_CHECKED, LV_COLOR_WHITE);
+ lv_style_set_pattern_opa(&styles->cb_bullet, LV_STATE_DEFAULT, LV_OPA_TRANSP);
+ lv_style_set_pattern_opa(&styles->cb_bullet, LV_STATE_CHECKED, LV_OPA_COVER);
+ lv_style_set_transition_prop_3(&styles->cb_bullet, LV_STATE_DEFAULT, LV_STYLE_PATTERN_OPA);
lv_style_set_text_font(&styles->cb_bullet, LV_STATE_CHECKED, theme.font_small);
lv_style_set_pad_left(&styles->cb_bullet, LV_STATE_DEFAULT, LV_DPX(3));
lv_style_set_pad_right(&styles->cb_bullet, LV_STATE_DEFAULT, LV_DPX(3));
|
VMS rand: assign before check, not the other way around
items->ile3$w_code was checked before it was assigned its value...
|
@@ -277,13 +277,13 @@ static size_t prepare_item_list(const struct item_st *items_input,
for (; items_input_num-- > 0; items_input++, items++) {
+ items->ile3$w_code = items_input->code;
/* Special treatment of JPI$_FINALEXC */
if (items->ile3$w_code == JPI$_FINALEXC)
items->ile3$w_length = 4;
else
items->ile3$w_length = items_input->length;
- items->ile3$w_code = items_input->code;
items->ile3$ps_bufaddr = databuffer;
items->ile3$ps_retlen_addr = 0;
|
Bump firmware version to 0x26270500
filter neighbor route cost to 1
filter link route cost to 3
|
@@ -71,7 +71,7 @@ DEFINES += GIT_COMMMIT=\\\"$$GIT_COMMIT\\\" \
# Minimum version of the RaspBee firmware
# which shall be used in order to support all features for this software release (case sensitive)
DEFINES += GW_AUTO_UPDATE_FW_VERSION=0x260b0500
-DEFINES += GW_MIN_RPI_FW_VERSION=0x26240500
+DEFINES += GW_MIN_RPI_FW_VERSION=0x26270500
# Minimum version of the deRFusb23E0X firmware
# which shall be used in order to support all features for this software release
|
Add sklearn.utils.* to exceptions
|
@@ -136,6 +136,8 @@ def check_imports(no_check=None, extra=[], skip_func=None):
"raven.handlers.logbook",
"raven.utils.testutils",
+ "sklearn.utils.*",
+
"subvertpy.ra_svn", # can only be imported after subvertpy.ra
"superfcgi.*",
|
libhfuzz: use ATOMIC_PRE_INC when updating localcovmap
|
@@ -612,7 +612,7 @@ static uint8_t const instrumentCntMap[256] = {
[65 ... 255] = 1U << 7,
};
-HF_REQUIRE_SSE42_POPCNT void __sanitizer_cov_trace_pc_guard(uint32_t* guard) {
+HF_REQUIRE_SSE42_POPCNT void __sanitizer_cov_trace_pc_guard(uint32_t* guard_ptr) {
#if defined(__ANDROID__)
/*
* ANDROID: Bionic invokes routines that Honggfuzz wraps, before either
@@ -644,18 +644,20 @@ HF_REQUIRE_SSE42_POPCNT void __sanitizer_cov_trace_pc_guard(uint32_t* guard) {
}
#endif /* defined(__ANDROID__) */
- const uint8_t v = ++(localCovFeedback->pcGuardMap[*guard]);
+ const uint32_t guard = *guard_ptr;
+ const uint8_t v = ATOMIC_PRE_INC(localCovFeedback->pcGuardMap[guard]);
const uint8_t newval = instrumentCntMap[v];
- if (ATOMIC_GET(globalCovFeedback->pcGuardMap[*guard]) < newval) {
- const uint8_t oldval = ATOMIC_POST_OR(globalCovFeedback->pcGuardMap[*guard], newval);
+ if (ATOMIC_GET(globalCovFeedback->pcGuardMap[guard]) < newval) {
+ const uint8_t oldval = ATOMIC_POST_OR(globalCovFeedback->pcGuardMap[guard], newval);
if (!oldval) {
ATOMIC_PRE_INC(globalCovFeedback->pidNewEdge[my_thread_no]);
} else if (oldval < newval) {
ATOMIC_POST_ADD(globalCovFeedback->pidNewCmp[my_thread_no], newval);
}
- wmb();
}
+
+ wmb();
}
/* Support up to 256 DSO modules with separate 8bit counters */
|
Bugfix to tempfile creation in default case. Better error reporting if permission issues or simmilar is encoutered during tmpfile creation.
|
#include <stdlib.h>
#include <stdint.h>
#include "memory.h"
+#include "log.h"
#if defined(_WIN32) || defined(_WIN64)
@@ -41,6 +42,7 @@ int xdag_free_all(void)
#include <unistd.h>
#include <pthread.h>
#include <sys/mman.h>
+#include <errno.h>
#define MEM_PORTION ((size_t)1 << 25)
@@ -73,10 +75,10 @@ int xdag_mem_init(size_t size)
size++;
printf("%s , %s\n",g_tmpfile_path, g_tmpname);
- sprintf(tmpfilename, "%s/%s", g_tmpfile_path, g_tmpname);
+ sprintf(tmpfilename, "%s%s", g_tmpfile_path, g_tmpname);
g_fd = mkstemp(tmpfilename);
if (g_fd < 0) {
- /* - error logging to go here - */
+ xdag_fatal("Unable to create temporary file %s errno:%d", tmpfilename, errno);
return -1;
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.