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>
</B... |
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... |
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.... |
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... |
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... |
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 ou... |
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
-#... |
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 ... |
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 ... |
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 iow... |
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 r... |
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 re... |
[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[... |
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 read... |
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 h... |
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 ... |
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... |
[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 = O... |
`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... |
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
- s... |
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:gsu... |
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 *callbac... |
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... |
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 dire... |
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... |
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##*/} ... |
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")... |
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_... |
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
${... |
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 ... |
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... |
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)... |
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(O... |
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 ... |
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 @... |
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 frie... |
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()
-endi... |
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_t... |
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... |
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 *ob... |
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_... |
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 al... |
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:
@@ ... |
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 ha... |
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));
- rItemDescrip... |
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);
+ glfwWin... |
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 ... |
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 ... |
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_... |
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; Inde... |
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 install... |
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... |
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 (!CheckObject... |
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... |
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 preced... |
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 ... |
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_... |
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_lega... |
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 criteri... |
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.... |
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, APPL... |
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 ... |
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 (err... |
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)
#... |
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:
-
--  `L... |
[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 --versi... |
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(LI... |
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 %... |
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',
'ker... |
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], c... |
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 = $(ARC... |
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-sav... |
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... |
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... |
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... |
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)
+ * her... |
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( __... |
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-env... |
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... |
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/script... |
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... |
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... |
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_... |
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... |
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(si... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.