message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Be more elaborate on automatic closure | # Comment that will be sent if an issue is judged to be closed
-comment: "Hi there. Thank you for filing this issue. Unfortunately, we cannot help you, because the required information is missing. Please open a new issue, using the template to provide all information."
+comment: "Hi there. Thank you for filing this iss... |
Fix fuzz_privkey build without MBEDTLS_ENTROPY_C defined | //4 Kb should be enough for every bug ;-)
#define MAX_LEN 0x1000
-#if defined(MBEDTLS_PK_PARSE_C) && defined(MBEDTLS_CTR_DRBG_C)
+#if defined(MBEDTLS_PK_PARSE_C) && defined(MBEDTLS_CTR_DRBG_C) && defined(MBEDTLS_ENTROPY_C)
const char *pers = "fuzz_privkey";
-#endif // MBEDTLS_PK_PARSE_C && MBEDTLS_CTR_DRBG_C
+#endif //... |
runtime: nits | */
#include <sched.h>
-#include <signal.h>
-#include <stdlib.h>
-#include <string.h>
#include <base/stddef.h>
#include <base/lock.h>
@@ -308,6 +305,7 @@ again:
goto again;
l->parked = true;
+ l->detached = l->timern == 0;
spin_unlock(&l->lock);
/* did not find anything to run, park this kthread */
|
mark function as unused | @@ -327,6 +327,7 @@ static void nary_z2opd(struct nary_opt_data_s* data, void* ptr[])
(*(z2opd_t*)(((char*)data->ops) + offset))(data->size, ptr[0], ptr[1]);
}
+__attribute__((unused))
static void make_z2opd(size_t offset, unsigned int D, const long dim[D], const long ostr[D], complex double* optr, const long istr1[D],... |
More value types in AtkValue | @@ -7,8 +7,11 @@ namespace FFXIVClientStructs.FFXIV.Component.GUI
public enum ValueType
{
Int = 0x3,
+ Bool = 0x2,
UInt = 0x4,
- String = 0x6
+ Float = 0x5,
+ String = 0x6,
+ Vector = 0x9,
}
[StructLayout(LayoutKind.Explicit, Size = 0x10)]
@@ -20,5 +23,7 @@ namespace FFXIVClientStructs.FFXIV.Component.GUI
[FieldOffset(... |
stm32l4: Fix sleep, replace wfe with wfi
DONE: | @@ -375,10 +375,6 @@ time_t _stm32_pwrEnterLPStop(time_t us)
/* Set SLEEPDEEP bit of Cortex System Control Register */
*(stm32_common.scb + scb_scr) |= 1 << 2;
- /* Clear EXTI pending bits */
- *(stm32_common.exti + exti_pr1) |= 0xffffffff;
- *(stm32_common.exti + exti_pr2) |= 0xffffffff;
-
*(stm32_common.scb + syst_cs... |
HW: Don't clean pslse on hardware clean | @@ -486,9 +486,4 @@ clean:
echo -e " Error: [make "$@"] failed for action/application in $(ACTION_ROOT)"; exit -1; \
fi \
fi
- if [ -d "$(PSLSE_ROOT)" ]; then \
- for d in afu_driver/src pslse libcxl debug ; do \
- $(MAKE) -C $(PSLSE_ROOT)/$$d $@ ; \
- done \
- fi
@echo -e "[CLEAN ENVIRONMENT...] done `date +"%T %a %b ... |
rune/libenclave: preload libsgx_epid.so
The libsgx_epid.so is required for EPID-based remote attestation. | @@ -23,13 +23,16 @@ func loadLibrary(p string) {
// Due to the design of runelet, the Enclave Runtime PAL is loaded
// in host but launched in container. The fact that certain libraries
-// from Intel SGX PSW would use dlopen() to further load
-// libsgx_launch.so, which means the container has to have it. In
-// order... |
Add java ssl tests to azure. | @@ -96,6 +96,51 @@ stages:
parameters:
name: detect_proto
containerName: detect_proto
+
+ - template: test/testContainers/azure/it-test-job-template.yml
+ parameters:
+ name: java6
+ containerName: java6
+
+ - template: test/testContainers/azure/it-test-job-template.yml
+ parameters:
+ name: java7
+ containerName: java... |
Badger2040: Add text rotation to MicroPython
Bonus: Make rotation and scale arguments optional. | @@ -285,7 +285,8 @@ mp_obj_t Badger2040_glyph(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_
{ MP_QSTR_char, MP_ARG_REQUIRED | MP_ARG_INT },
{ MP_QSTR_x, MP_ARG_REQUIRED | MP_ARG_INT },
{ MP_QSTR_y, MP_ARG_REQUIRED | MP_ARG_INT },
- { MP_QSTR_scale, MP_ARG_REQUIRED | MP_ARG_OBJ }
+ { MP_QSTR_scale, MP_ARG_OBJ, ... |
fixup error print for local socket | @@ -197,6 +197,7 @@ contact_server(const char* svr, struct nsd_options* cfg, int statuscmd)
(void)strlcpy(usock->sun_path, svr, sizeof(usock->sun_path));
addrlen = (socklen_t)sizeof(struct sockaddr_un);
addrfamily = AF_LOCAL;
+ port = 0;
#endif
} else if(strchr(svr, ':')) {
struct sockaddr_in6 sa;
@@ -230,9 +231,12 @@ ... |
Add unit test for json metric output w/timestamps | @@ -159,7 +159,7 @@ mtcFormatEventForOutputNullFmtDoesntCrash(void** state)
}
static void
-mtcFormatEventForOutputHappyPath(void** state)
+mtcFormatEventForOutputHappyPathStatsd(void** state)
{
char* g_hostname = "myhost";
char* g_procname = "testapp";
@@ -199,6 +199,62 @@ mtcFormatEventForOutputHappyPath(void** state)... |
tweak resources links | # Pico Display Pack - MicroPython <!-- omit in toc -->
-Pico Display Pack is a vibrant 1.14", 240 x 135 pixel IPS LCD screen for your Raspberry Pi Pico, with four useful buttons and a RGB LED. [Click here](https://shop.pimoroni.com/products/pico-display-pack) to find out more!
+Pico Display Pack is a vibrant 1.14", 240... |
docs: Fix `Unknown group SceIofilemgr` in the CI | * \defgroup SceFcntl File Control Library
* Open, Rename, Read, Write files
*
- * \defgroup SceStat File Status Library
- * Make/Remove a dir, Read/Change the status of a file
- *
* \defgroup SceFios2Kernel File System Overlay Library
* Add/Remove file system overlay
+
+ * \defgroup SceIofilemgr File I/O Manager Librar... |
Removed some jobs related to website and webui. | @@ -1029,8 +1029,8 @@ def generateArtifactStages() {
def tasks = [:]
tasks << buildDebianPackage("buildPackage/debian/buster", DOCKER_IMAGES.buster)
// tasks << buildDebianPackage("buildPackage/debian/bionic", DOCKER_IMAGES.bionic)
- tasks << buildWebsite()
- tasks << buildWebUI()
+ // tasks << buildWebsite()
+ // task... |
BugID:19171926: Rework net-pressure-test command so user can specify the adv times as an argument. | @@ -677,6 +677,7 @@ static void bt_ready(int err)
#else
ret = bt_mesh_init(&prov, &comp, NULL);
#endif
+
if (ret) {
printk("Mesh initialization failed (err %d)\n", ret);
}
@@ -910,9 +911,11 @@ static int prepare_test_msg(struct net_buf_simple *msg)
return 0;
}
+#define DEFAULT_PKT_INTERVAL 100
+#define DEFAULT_PKT_CNT ... |
Sort keys when exporting to json | @@ -37,6 +37,7 @@ static void WriteJsonWithCatBoostPrecision(const TJsonValue& value, IOutputStrea
config.FormatOutput = true;
config.FloatNDigits = 9;
config.DoubleNDigits = 17;
+ config.SortKeys = true;
WriteJson(out, &value, config);
}
|
ci: fix python dependencies in travis | @@ -18,6 +18,7 @@ matrix:
- clang-format-3.9
- python3
- python3-pip
+ - python3-setuptools
- script: scripts/build-pypi.sh
install:
- python3 -m pip install --upgrade pip && python3 -m pip install --user pybind11 nose2
@@ -33,6 +34,10 @@ matrix:
- libtbb-dev
- uuid-dev
- doxygen
+ - python3
+ - python3-dev
+ - python3... |
User: Added a few definitions. | @@ -58,6 +58,8 @@ extern BOOLEAN _gPcd_FixedAtBuild_PcdImageLoaderSupportArmThumb;
extern BOOLEAN _gPcd_FixedAtBuild_PcdImageLoaderForceLoadDebug;
extern BOOLEAN _gPcd_FixedAtBuild_PcdImageLoaderTolerantLoad;
extern BOOLEAN _gPcd_FixedAtBuild_PcdImageLoaderSupportDebug;
+extern UINT8 _gPcd_FixedAtBuild_PcdUefiVariableD... |
Let the shared libs export their symbols. | @@ -89,6 +89,10 @@ ADD_LIBRARY (upnp_shared SHARED
ADD_LIBRARY (UPNP::SHARED ALIAS upnp_shared)
+SET_TARGET_PROPERTIES (upnp_shared PROPERTIES
+ WINDOWS_EXPORT_ALL_SYMBOLS TRUE
+)
+
TARGET_COMPILE_DEFINITIONS (upnp_shared
PRIVATE $<$<CONFIG:Debug>:STATS>
PUBLIC $<IF:$<CONFIG:Debug>,DEBUG UPNP_HAVE_DEBUG,NDEBUG>
|
Add docs for non-blocking netconn connection | *
* \include _example_netconn_server_threads.c
*
+ * \section sect_netconn_nonblocking Non-blocking receive
+ *
+ * \ref esp_netconn_receive data will block thread by default until connect data received or connection was closed by remote side.
+ * In order to allow further processing even if there is no data, you can e... |
schedule: add magic number at the bottom of schedule stack
Add this magic number to prevent potential overflow when dumping
host stack.
Acked-by: Eddie Dong | #include <schedule.h>
#include <security.h>
#include <virtual_cr.h>
+#include <init.h>
inline uint64_t vcpu_get_gpreg(const struct acrn_vcpu *vcpu, uint32_t reg)
{
@@ -637,6 +638,7 @@ static uint64_t build_stack_frame(struct acrn_vcpu *vcpu)
rsp &= ~(CPU_STACK_ALIGN - 1UL);
sp = (uint64_t *)rsp;
+ *sp-- = SP_BOTTOM_MAG... |
meta: ensure CI has ref | @@ -15,9 +15,10 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0
+ - run: git fetch --prune
- name: 'Setup root deps'
run: npm ci
- name: 'Setup dependencies'
run: npm run bootstrap
- name: 'Run tests'
- run: npm run test -- --since $GITHUB_BASE_REF --include-dependents
+ run: npm run test -- --since origin/$G... |
[io] fix syntax error | @@ -706,7 +706,7 @@ class ShapeCollection():
#hm.setInsideMargin(
# hm_data.attrs.get('insideMargin', np.min(dims) * 0.02))
hm.setInsideMargin(
- hm_data.attrs.get('insideMargin', 0)
+ hm_data.attrs.get('insideMargin', 0))
hm.setOutsideMargin(
hm_data.attrs.get('outsideMargin', 0))
|
Drop test for calling tointegerx on non-integers
The test succeedes with Lua 5.3 but fails with earlier versions, where
the number was just rounded in an unspecified way. | @@ -118,11 +118,6 @@ tests = testGroup "Haskell version of the C API"
res <- tointegerx (-1)
liftIO $ assertEqual "Not the correct number" (Just 451) res
- , testCase "tointegerx returns Nothing for non-integer numbers" . runLua $ do
- pushLuaExpr "4.5"
- res <- tointegerx (-1)
- liftIO $ assertEqual "Not the correct n... |
fuzz/span.h: Format with clang-format
BRANCH=none
TEST=none | #include <algorithm>
-namespace fuzz {
+namespace fuzz
+{
-template <typename T>
-class span {
+template <typename T> class span {
public:
typedef T value_type;
- constexpr span() : span<T>(nullptr, nullptr) {}
- constexpr span(T* begin, size_t size) : begin_(begin), end_(begin + size) {}
- constexpr span(T* begin, T* ... |
asymciphers: add FIPS error state handling
Check for provider being runnable in newctx, init, encrypt and decrypt. | #include "prov/providercommonerr.h"
#include "prov/provider_ctx.h"
#include "prov/implementations.h"
+#include "prov/providercommon.h"
#include <stdlib.h>
@@ -77,8 +78,11 @@ typedef struct {
static void *rsa_newctx(void *provctx)
{
- PROV_RSA_CTX *prsactx = OPENSSL_zalloc(sizeof(PROV_RSA_CTX));
+ PROV_RSA_CTX *prsactx;... |
add info print on failure | #include "scs.h"
#include "scs_blas.h"
+/* Not clear if this should just be 0. */
+#define ACCEL_REGULARIZATION (0.)
+
struct SCS_ACCEL {
#ifdef LAPACK_LIB_FOUND
scs_float *dF;
@@ -28,9 +31,6 @@ void BLAS(syrk)(const char *uplo, const char *trans, blasint *n, blasint *k,
void BLAS(posv) (const char *uplo, blasint * n, ... |
dgemv_kernel_4x4(Haswell): add missing clobbers for xmm0,xmm1,xmm2,xmm3
This fixes a crash in dblat2 when OpenBLAS is compiled using
march=znver1 -ftree-vectorize -O2
See also: | @@ -104,6 +104,7 @@ static void dgemv_kernel_4x4( BLASLONG n, FLOAT **ap, FLOAT *x, FLOAT *y, FLOAT
"r" (ap[3]), // 7
"r" (alpha) // 8
: "cc",
+ "%xmm0", "%xmm1", "%xmm2", "%xmm3",
"%xmm4", "%xmm5",
"%xmm6", "%xmm7",
"%xmm8", "%xmm9",
|
Initial attempt at proper cpu detection on RISCV | @@ -79,6 +79,29 @@ static char *cpuname[] = {
};
int detect(void){
+#ifdef __linux
+ FILE *infile;
+ char buffer[512], *p;
+
+ p = (char *)NULL;
+ infile = fopen("/proc/cpuinfo", "r");
+ while (fgets(buffer, sizeof(buffer), infile)){
+ if (!strncmp("isa", buffer, 3)){
+ p = strchr(buffer, '4') + 1; /* the 4 in rv64ima.... |
tap: fix coverity warning 205875
check the return result from fcntl, and if error, behave
the same way the expansion of _IOCTL macro does.
Type: fix | @@ -223,7 +223,12 @@ tap_create_if (vlib_main_t * vm, tap_create_if_args_t * args)
else
host_if_name = (char *) args->host_if_name;
- fcntl (tfd, F_SETFL, O_NONBLOCK);
+ if (fcntl (tfd, F_SETFL, O_NONBLOCK) < 0)
+ {
+ err = clib_error_return_unix (0, "fcntl(tfd, F_SETFL, O_NONBLOCK)");
+ tap_log_err (vif, "set nonblock... |
hw/drivers/spiflash: Fix write over page boundary
A typo... we were using invalid buffer pointer so each write operation
would write from the beginning of input buffer. | @@ -265,7 +265,7 @@ spiflash_write(const struct hal_flash *hal_flash_dev, uint32_t addr,
spiflash_cs_activate(dev);
hal_spi_txrx(dev->spi_num, cmd, NULL, sizeof cmd);
- hal_spi_txrx(dev->spi_num, (void *)buf, NULL, to_write);
+ hal_spi_txrx(dev->spi_num, (void *)u8buf, NULL, to_write);
spiflash_cs_deactivate(dev);
addr... |
dpdk: not having cryptodev resources should not produce warnings
Type: fix | @@ -1150,10 +1150,7 @@ dpdk_cryptodev_init (vlib_main_t * vm)
/* probe all cryptodev devices and get queue info */
if (cryptodev_probe (vm, n_workers) < 0)
- {
- error = clib_error_return (0, "Not enough cryptodev resources");
- goto err_handling;
- }
+ return 0;
vec_foreach (dev_inst, cmt->cryptodev_inst)
{
|
nimble/ll: Fix old DTM syscfg deprecation | @@ -344,6 +344,7 @@ syscfg.defs:
BLE_LL_DIRECT_TEST_MODE:
description: use BLE_LL_DTM instead
value: 0
+ deprecated: 1
# defunct settings (to be removed eventually)
BLE_DEVICE:
|
khan: wip use u3_moat instead of raw uv_pipe_t
This may be scrapped or redone as I grok newt.c. All that this
accomplishes is putting the different data structure in place, declaring
intent to use. | /* u3_chan: incoming control plane connection.
*/
typedef struct _u3_chan {
- uv_pipe_t pyp_u; // client stream handler
+ struct _u3_moat mot_u; // inbound message stream
c3_w coq_l; // connection number
struct _u3_shan* san_u; // server backpointer
struct _u3_chan* nex_u; // next in list
@@ -118,20 +118,20 @@ _khan_co... |
Fix Xcode indexing | DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
EXECUTABLE_PREFIX = lib;
- HEADER_SEARCH_PATHS = "$(SRCROOT)/../*/Include";
+ HEADER_SEARCH_PATHS = "$(SRCROOT)/../**";
MACOSX_DEPLOYMENT_TARGET = 10.14;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION ... |
the right mask probably helps | @@ -359,7 +359,7 @@ u3h_trim_to(u3p(u3h_root) har_p, c3_w n_w)
}
if ( c3n == har_u->arm_u.buc_o ) {
// lower 31 bits of increment (next mug)
- har_u->arm_u.mug_w = (har_u->arm_u.mug_w + 1) & 0x80000000;
+ har_u->arm_u.mug_w = (har_u->arm_u.mug_w + 1) & ((1 << 31) - 1);
har_u->arm_u.inx_w = 0;
}
}
|
the handle of double should be based on type | @@ -146,7 +146,7 @@ struct fmt_arg {
union {
void * ptr;
int integer;
- double real;
+ //double real;
}_;
};
struct action {
@@ -810,7 +810,7 @@ get_value_operand_addrs (struct value *v, struct operand_addrs *rec)
for (int i = 0; i < n; i++) {
//@todo analyze native format string
// to find out the argument types
- rec... |
Free pha_dgst in SSL_clear() | @@ -614,6 +614,9 @@ int SSL_clear(SSL *s)
s->key_update = SSL_KEY_UPDATE_NONE;
+ EVP_MD_CTX_free(s->pha_dgst);
+ s->pha_dgst = NULL;
+
/* Reset DANE verification result state */
s->dane.mdpth = -1;
s->dane.pdpth = -1;
|
wpa_supplicant: Saved message-type digest used in handshake for PRF operations | @@ -64,6 +64,7 @@ struct tls_connection {
tls_context_t *tls;
struct tls_data tls_io_data;
unsigned char randbytes[2 * TLS_RANDOM_LEN];
+ mbedtls_md_type_t mac;
};
static void tls_mbedtls_cleanup(tls_context_t *tls)
@@ -653,6 +654,7 @@ struct wpabuf * tls_connection_handshake(void *tls_ctx,
if (tls->ssl.handshake) {
os... |
IlmImfFuzzTest reports incorrect test names and missing files as errors rather than silently succeeding. | @@ -61,18 +61,39 @@ using std::string;
using std::cout;
using std::endl;
-#define TEST(x) if (helpMode) tests.insert(string(#x)); else if (argc < 2 || !strcmp (argv[1], #x)) x(argc==3 ? argv[2] : nullptr);
+#define TEST(x) \
+ if (helpMode) \
+ { \
+ tests.insert(string(#x)); \
+ } \
+ else if (argc < 2 || !strcmp (arg... |
(fix) Print results when running a single benchmark | @@ -99,19 +99,20 @@ local function benchmark(test_dir)
end
::continue::
end
- return results
-end
-local function run_all_benchmarks()
- for test in lfs.dir("benchmarks") do
- if not string.find(test, "^%.") then
- local test_dir = "benchmarks/" .. test
- local results = benchmark(test_dir)
table.sort(results, function... |
Correct documentation for Object module | @@ -33,7 +33,7 @@ Returns a Result and unwraps to an Object upon success.
```cs
class Test {}
-Object.getClassRef("Test"); // <Cls Test>
+Object.getClassRef("Test").unwrap(); // <Cls Test>
```
### Object.createFrom(string)
@@ -45,5 +45,5 @@ Returns a Result and unwraps to an Object upon success.
```cs
class Test {}
-Ob... |
[string] mark copy and substr as Y_WARN_UNUSED_RESULT | @@ -635,12 +635,12 @@ public:
return n;
}
- inline TDerived copy() const {
+ inline TDerived copy() const Y_WARN_UNUSED_RESULT {
return TDerived(Ptr(), Len());
}
// ~~~ Partial copy ~~~~
- TDerived substr(size_t pos, size_t n = npos) const {
+ TDerived substr(size_t pos, size_t n = npos) const Y_WARN_UNUSED_RESULT {
re... |
Update NuGet.exe in initialization script to new version.
NuGet.exe fails to restore packages. Updating to NuGet 4.4 instead
of 4.0 resolves the issue. | @@ -12,7 +12,7 @@ $toolsBetaDir = Join-Path -Resolve $repoRoot ".tools\beta"
# Ensure nuget.exe is up-to-date
$nugetDownloadName = "nuget.exe"
-. "$PSScriptRoot\Initialize-DownloadLatest.ps1" -OutDir $toolsDir -DownloadUrl "https://dist.nuget.org/win-x86-commandline/v4.0.0/nuget.exe" -DownloadName $nugetDownloadName -U... |
SOVERSION bump to version 7.11.4 | @@ -72,7 +72,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_
# with backward compatible change and micro version is connected with any internal change of the library.
set(SYSREPO_MAJOR_SOVERSION 7)
set(SYSREPO_MINOR_SOVERSION 11)
-set(SYSREPO_MICRO_SOVERSION 3)
+set(SYSREPO_MICRO_S... |
Run All: Improve output of command | @@ -5,6 +5,7 @@ echo RUN ALL TESTS
echo
check_version
+echo
cd "@CMAKE_INSTALL_PREFIX@/@TARGET_TOOL_EXEC_FOLDER@"
@@ -30,9 +31,7 @@ done
shift "$((OPTIND - 1))"
for t in test* check*; do
- echo "--- running $t ---"
- echo
- echo
+ echo "Running $t"
OUTPUT="$("$KDB" $t 2>&1)"
status=$?
@@ -47,6 +46,7 @@ for t in test* c... |
parser yang BUGFIX support for CRLF newlines
Fixes | @@ -689,6 +689,12 @@ get_keyword(struct lys_yang_parser_ctx *ctx, enum ly_stmt *kw, char **word_p, si
/* skip whitespaces (optsep) */
ctx->indent += Y_TAB_SPACES;
break;
+ case '\r':
+ /* possible CRLF endline */
+ if (ctx->in->current[1] == '\n') {
+ break;
+ }
+ /* fallthrough */
default:
/* either a keyword start or... |
test_fipsinstall: Fallback to config(FIPSKEY) for the FIPSKEY | @@ -27,7 +27,7 @@ plan skip_all => "Test only supported in a fips build" if disabled("fips");
plan tests => 29;
my $infile = bldtop_file('providers', platform->dso('fips'));
-my $fipskey = $ENV{FIPSKEY} // '00';
+my $fipskey = $ENV{FIPSKEY} // config('FIPSKEY') // '00';
# Read in a text $infile and replace the regular ... |
Get proper backtraces when using asan | @@ -20,11 +20,11 @@ option(ENABLE_UNDEFINED_SANITIZER "Enabled building with undefined behavior sani
if (ENABLE_ADDRESS_SANITIZER)
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
- set(CMAKE_C_FLAGS "-fsanitize=address ${CMAKE_C_FLAGS}")
- set(CMAKE_CXX_FLAGS "-fsanitize=address ${CMAKE_CXX_FLAGS}")
+ set(CMAKE_C_FLAGS... |
OcAppleDiskImage: Revert MemMap DP node fix as it's Apple-specific | @@ -199,7 +199,12 @@ InternalConstructDmgDevicePath (
DevPath->MemMap.Header.SubType = HW_MEMMAP_DP;
DevPath->MemMap.MemoryType = EfiACPIMemoryNVS;
DevPath->MemMap.StartingAddress = RamDmgAddress;
- DevPath->MemMap.EndingAddress = (RamDmgAddress + sizeof (RAM_DMG_HEADER) - 1);
+ //
+ // EndingAddress, per UEFI specific... |
Fix overflow in test
The serialized text is not nul-terminated (its size is explicitely
provided), but the input text in the event is a nul-terminated string.
The test was failing with ASAN enabled. | @@ -49,13 +49,14 @@ static void test_serialize_text_event(void) {
static void test_serialize_long_text_event(void) {
struct control_event event;
event.type = CONTROL_EVENT_TYPE_TEXT;
- char text[TEXT_MAX_LENGTH];
+ char text[TEXT_MAX_LENGTH + 1];
memset(text, 'a', sizeof(text));
+ text[TEXT_MAX_LENGTH] = '\0';
event.te... |
Fix the decoder start type handling
If an explicit decoder start type was provided then it wasn't being
handled correctly in all cases. Specifically if a PEM start type was
provided then the decoder would fail. | @@ -259,7 +259,7 @@ int OSSL_DECODER_CTX_add_extra(OSSL_DECODER_CTX *ctx,
* on top of this one, so we don't.
*/
if (ctx->start_input_type != NULL
- && strcasecmp(ctx->start_input_type, input_type) != 0)
+ && strcasecmp(ctx->start_input_type, input_type) == 0)
continue;
ERR_set_mark();
|
Reformat Source: Support future versions of LLVM | @@ -14,7 +14,7 @@ CLANG_FORMAT=$(which clang-format-$MIN_VERSION.0 || which clang-format)
if [ -n "$CLANG_FORMAT" ]; then
location="$CLANG_FORMAT"
version=$("$CLANG_FORMAT" --version 2> /dev/null)
- majorVersion=$(printf '%s' "$version" | sed -E 's/.* ([6-9]+)\.[0-9].[0-9][ -].*/\1/')
+ majorVersion=$(printf '%s' "$ver... |
SOVERSION bump to version 2.4.4 | @@ -63,7 +63,7 @@ set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_
# set version of the library
set(LIBYANG_MAJOR_SOVERSION 2)
set(LIBYANG_MINOR_SOVERSION 4)
-set(LIBYANG_MICRO_SOVERSION 3)
+set(LIBYANG_MICRO_SOVERSION 4)
set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG_MI... |
Sort by result in run_benchmarks | @@ -6,6 +6,12 @@ local lfs = require "lfs"
local util = require "titan-compiler.util"
+local p = argparse(arg[0], "Titan benchmarks")
+p:argument("test_dir", "Only benchmark a specific directory"):args("?")
+p:flag("--no-lua", "Do not run the (slow) lua benchmark")
+p:option("--sort", "Sort by name or result"):count("0... |
Bump Docker Version for | @@ -49,7 +49,7 @@ stages:
containerRegistry: '9196310f-afae-4a53-8e35-b9e753eeb0f3'
tags: |
latest
- v0.9.1.$(Build.BuildId)
+ v0.9.2.$(Build.BuildId)
- template: .\templates\run-qns.yml
parameters:
dependsOn: publish_docker
|
chat: settings pass 'groups' prop from permissions | @@ -214,6 +214,11 @@ export class SettingsScreen extends Component {
);
}
+ let groups = {};
+ Object.keys(props.permissions).forEach((pem) => {
+ groups[pem] = props.permissions[pem].who;
+ });
+
return (
<div>
<div className={"w-100 fl mt3"} style={{maxWidth: "29rem"}}>
@@ -223,7 +228,7 @@ export class SettingsScreen... |
Fixing OTA on TI | /* Standard include. */
#include <stdbool.h>
+#define IOT_NETWORK_SOCKET_POLL_MS ( 10000 )
+
/* MQTT demo configuration. */
#define IOT_DEMO_MQTT_PUBLISH_BURST_COUNT ( 10 )
#define IOT_DEMO_MQTT_PUBLISH_BURST_SIZE ( 2 )
|
ctype: fix plugins README | @@ -225,9 +225,9 @@ copied by the `spec` plugin just before):
- [network](network/) by using network APIs
- [ipaddr](ipaddr/) checks IP addresses using regular expressions
- [path](path/) by checking files on file system
-- [type](type/) using run-time type checking (CORBA types/)
+- [type](type/) obsolete plugin for r... |
Fixed online style updater ignoring style.json changes | @@ -24,17 +24,19 @@ namespace carto {
std::shared_ptr<MemoryAssetPackage> CartoAssetPackageUpdater::update(const std::shared_ptr<AssetPackage>& assetPackage) const {
std::string projectFileName = _styleName + ".json";
- std::shared_ptr<BinaryData> fileData1 = assetPackage->loadAsset(projectFileName);
- picojson::value ... |
ivshmem: fix possible 'event' NULL pointer dereference (CA)
Pointer event->event == NULL can be passed into ObDereferenceObject
in EvtDeviceReleaseHardware, so add the check. | @@ -290,7 +290,10 @@ NTSTATUS IVSHMEMEvtDeviceReleaseHardware(_In_ WDFDEVICE Device, _In_ WDFCMRESLIS
{
_Analysis_assume_(entry != NULL);
PIVSHMEMEventListEntry event = CONTAINING_RECORD(entry, IVSHMEMEventListEntry, ListEntry);
+ if (event->event)
+ {
ObDereferenceObject(event->event);
+ }
event->owner = NULL;
event->... |
Pass platform flags to the SFDL preprocessor
Preprocessing depends on platform flags: they introduce compiler predefined macros. Platform flags also affect whether additional compiler flags (passed by user in CFLAGS, e.g.) are recognized.
Note: mandatory check (NEED_CHECK) was skipped | @@ -2025,7 +2025,7 @@ macro _SRC("fml3", SRC, SRCFLAGS...) {
}
macro _SRC("sfdl", SRC, SRCFLAGS...) {
- .CMD=$CXX_COMPILER $CXXFLAGS $SFDL_FLAG ${SRCFLAGS} ${input:SRC} && ${tool:"tools/calcstaticopt"} -i ${tmp:SRC.tmp} -a $ARCADIA_ROOT ${output;stdout;noext;defext=.inc:SRC} ${kv;hide:"p SF"} ${kv;hide:"pc yellow"} $TO... |
Make it possible to choose between the POSIX and the Coffee backend for CFS on the native platform. | @@ -5,9 +5,22 @@ endif
CONTIKI_TARGET_DIRS = . dev
CONTIKI_TARGET_MAIN = ${addprefix $(OBJECTDIR)/,contiki-main.o}
+CONTIKI_TARGET_SOURCEFILES += platform.c clock.c xmem.c buttons.c
-CONTIKI_TARGET_SOURCEFILES += platform.c clock.c xmem.c
-CONTIKI_TARGET_SOURCEFILES += cfs-posix.c cfs-posix-dir.c buttons.c
+# The diffe... |
fix check for go std library path | @@ -2,7 +2,6 @@ import os
from _common import rootrel_arc_src
-go_root = os.path.join('contrib', 'go', '_std', 'src') + os.path.sep
runtime_cgo_path = os.path.join('runtime', 'cgo')
runtime_msan_path = os.path.join('runtime', 'msan')
runtime_race_path = os.path.join('runtime', 'race')
@@ -25,6 +24,7 @@ def on_go_proces... |
soc: minor header fix typo and include of sdkconfig | #define SOC_LOGV(tag, fmt, ...) ESP_EARLY_LOGV(tag, fmt, ##__VA_ARGS__)
#else
-
-#ifdef CONFIG_IDF_TARGET_ESPP32
+#include "sdkconfig.h"
+#ifdef CONFIG_IDF_TARGET_ESP32
#include "esp32/rom/ets_sys.h"
#elif CONFIG_IDF_TARGET_ESP32S2
#include "esp32s2/rom/ets_sys.h"
|
docs(scroll) add information about scroll coordinates | @@ -141,6 +141,29 @@ The following API functions allow manual scrolling of objects:
- `lv_obj_scroll_to_x(obj, x, LV_ANIM_ON/OFF)` scroll to bring the given coordinate to the left side
- `lv_obj_scroll_to_y(obj, y, LV_ANIM_ON/OFF)` scroll to bring the given coordinate to the top side
+From time to time you may need to ... |
Refactors some variable naming | this.bold = false;
this.fg = this.bg = null;
this._buffer = '';
- this._url_whitelist = { 'http': 1, 'https': 1 };
+ this._url_allow_list = { 'http': 1, 'https': 1 };
}
Object.defineProperty(AnsiUp.prototype, "use_classes", {
get: function () {
enumerable: true,
configurable: true
});
- Object.defineProperty(AnsiUp.pro... |
acrn-config: Remove "GUEST_FLAG_CLOS_REQUIRED" from offline tool
This patches removes the unused CLOS_required flag from the
offline guest configuration tool.
Acked-by: Victor Sun | @@ -17,8 +17,7 @@ HV_LICENSE_FILE = SOURCE_PATH + 'misc/acrn-config/library/hypervisor_license'
PY_CACHES = ["__pycache__", "../board_config/__pycache__", "../scenario_config/__pycache__"]
GUEST_FLAG = ["0UL", "GUEST_FLAG_SECURE_WORLD_ENABLED", "GUEST_FLAG_LAPIC_PASSTHROUGH",
- "GUEST_FLAG_IO_COMPLETION_POLLING", "GUES... |
Testing: failed on results diff (sappb/PGI) | @@ -38,7 +38,8 @@ level dtime dlat dlon pressure geopotH airTemp dewPtT windDir windSp sig
53 2578.0 0.015 0.018 15000.0 13835.0 207.93 17.32 316.00 8.70 65536
64 3087.0 -0.021 0.036 10000.0 16310.0 208.29 24.46 340.00 9.60 79872
EOF
-diff -w $tempRef $tempOut
+
+#diff -w $tempRef $tempOut
# Clean up
|
ur: refactors ur_bsw8 and ur_bsw_bytes internals | @@ -943,24 +943,26 @@ _bsw8_unsafe(ur_bsw_t *bsw, uint8_t len, uint8_t byt)
uint64_t fill = bsw->fill;
uint8_t off = bsw->off;
uint8_t rest = 8 - off;
- uint8_t old = bsw->bytes[fill];
+ uint8_t l, m;
+ // the least-significant bits of the input become the
+ // most-significant bits of a byte in the output stream
+ //
... |
Tweak integration logging | @@ -204,10 +204,17 @@ jobs:
for client in $CLIENTS; do
for server in $SERVERS; do
echo "# $client - $server"
- ./examples/$server localhost 4433 cert/server.key cert/server.crt &
+ ./examples/$server localhost 4433 cert/server.key cert/server.crt > sv.log 2>&1 &
+ SVPID="$!"
./examples/$client localhost 4433 https://lo... |
[components][libc] add extern "C" for header file | #define __PTHREAD_H__
#include <rtthread.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <posix_types.h>
#include <sched.h>
@@ -262,4 +267,8 @@ int pthread_barrier_init(pthread_barrier_t *barrier,
int pthread_barrier_wait(pthread_barrier_t *barrier);
+#ifdef __cplusplus
+}
+#endif
+
#endif
|
scripts: fix linesChanged, thanks to | git diff origin/master -- doc/news/_preparation_next_release.md | egrep "^\+.+\*\(.+\)\*"
if [ $? != "0" ]
then
- L=git diff origin/master -- doc/news/_preparation_next_release.md | egrep "^\+" | wc -l
- if [ "$L" -ge "5" ]
+ linesChanged=`git diff origin/master -- doc/news/_preparation_next_release.md | egrep "^\+" | ... |
sysrepo-plugind BUGFIX invalid return value check | @@ -357,10 +357,7 @@ write_pidfile(int pidfd)
return -1;
}
- if (snprintf(pid, sizeof(pid) - 1, "%ld\n", (long) getpid())) {
- error_print(0, "Failed to allocate memory for pid (%s).", strerror(errno));
- return -1;
- }
+ snprintf(pid, sizeof(pid) - 1, "%ld\n", (long) getpid());
pid_len = strlen(pid);
if (write(pidfd, ... |
Fix to check the proper list for recovery dimms and to ensure a NULL check is performed appropriately | @@ -495,10 +495,10 @@ Load(
for (Index = 0; Index < DimmTargetsNum; Index++) {
- if (pAllDimms[Index].HealthState == HEALTH_HEALTHY && TRUE == FlashSPI) {
+ if (pDimmTargets != NULL && pDimmTargets[Index].HealthState == HEALTH_HEALTHY && TRUE == FlashSPI) {
NvmCodes[Index] = NVM_ERR_DIMM_HEALTHY_FW_NOT_RECOVERABLE;
Ret... |
merge compil tests + switch (tmp) dashboard | @@ -13,7 +13,8 @@ set(CTEST_NIGHTLY_START_TIME "20:00:00 CET")
set(CTEST_DROP_METHOD "https")
set(CTEST_DROP_SITE "my.cdash.org/")
# set(CTEST_DROP_SITE "cdash-tripop.inrialpes.fr")
-set(CTEST_DROP_LOCATION "/submit.php?project=Siconos-Dashboard")
+#set(CTEST_DROP_LOCATION "/submit.php?project=Siconos-Dashboard")
+set(... |
Improve process AppId column (now shows the real AppUserModelId for all processes) | #include <phapp.h>
#include <proctree.h>
+#include <appresolver.h>
#include <cpysave.h>
#include <emenu.h>
#include <mapimg.h>
@@ -1125,12 +1126,30 @@ static VOID PhpUpdateProcessNodeAppId(
if (!(ProcessNode->ValidMask & PHPN_APPID))
{
ULONG windowFlags;
- PPH_STRING windowTitle;
+ PPH_STRING applicationUserModelId;
Ph... |
netkvm: fix initial link state report
When the device has 'failover=on' we need to report link state
as as 'disconnected' regardless bConnected field also when the
driver reports the link state at initialization time. | @@ -264,13 +264,19 @@ static NDIS_STATUS ParaNdis6_Initialize(
miniportAttributes.GeneralAttributes.LookaheadSize = pContext->MaxPacketSize.nMaxFullSizeOS;
miniportAttributes.GeneralAttributes.MaxXmitLinkSpeed =
miniportAttributes.GeneralAttributes.MaxRcvLinkSpeed = pContext->LinkProperties.Speed;
- miniportAttributes.... |
Added top-level page link to WiFi driver | @@ -34,6 +34,7 @@ The following CMSIS-Driver API groups are defined:
- \ref storage_interface_gr "Storage": Storage device interface driver.
- \ref usart_interface_gr "USART": Universal Synchronous and Asynchronous Receiver/Transmitter interface driver.
- \ref usb_interface_gr "USB": Interface driver for USB Host and U... |
Fix memory leak when deallocating prepared statement in postgres_fdw
The leak is minor, so no backpatch is done. Oversight in
Reported-by: Tom Lane | @@ -4063,6 +4063,7 @@ deallocate_query(PgFdwModifyState *fmstate)
if (PQresultStatus(res) != PGRES_COMMAND_OK)
pgfdw_report_error(ERROR, res, fmstate->conn, true, sql);
PQclear(res);
+ pfree(fmstate->p_name);
fmstate->p_name = NULL;
}
|
[ci][gcc] update main toolchain to gcc 12.2.0 | @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- toolchain-ver: [12.1.0, 7.5.0]
+ toolchain-ver: [12.2.0, 7.5.0]
debug: [2, 0]
project:
- qemu-virt-arm32-test
|
Improve tests of NodeJS port. | @@ -13,14 +13,36 @@ describe('metacall', () => {
});
describe('load', () => {
- it('metacall_load_from_file must load correctly', () => {
+ it('metacall_load_from_file (mock)', () => {
assert.strictEqual(metacall_load_from_file('mock', ['asd.mock']), undefined); /* TODO: Do not return undefined */
});
+ it('metacall_lo... |
output: set damage ring bounds to pixel values
Fixes: | @@ -840,8 +840,9 @@ static void handle_mode(struct wl_listener *listener, void *data) {
arrange_output(output);
transaction_commit_dirty();
- wlr_damage_ring_set_bounds(&output->damage_ring,
- output->width, output->height);
+ int width, height;
+ wlr_output_transformed_resolution(output->wlr_output, &width, &height);
... |
[chainmaker][#436]add exceed max name length test case | @@ -311,6 +311,32 @@ START_TEST(test_001CreateWallet_0009_CreateOneTimeWalletFailureLongNum)
END_TEST
+START_TEST(test_001CreateWallet_0010_CreateOneTimeWalletFailureLongName)
+{
+ BSINT32 rtnVal;
+ BoatHlchainmakerWallet *g_chaninmaker_wallet_ptr;
+ char chainmaker_name[4097];
+
+ for (int i = 0; i < 4097; i++)
+ {
+ ... |
Adapt to libyang's "Pass the original user_data to the deleter function" | @@ -460,9 +460,15 @@ retrieve_schema_data_getschema(const char *name, const char *rev, struct clb_dat
return model_data;
}
+static void free_with_user_data(void *data, void *user_data)
+{
+ free(data);
+ (void)user_data;
+}
+
static char *
retrieve_schema_data(const char *mod_name, const char *mod_rev, const char *subm... |
Plasma: Swap make_new/print functions for WS2812 module.
Fixes | @@ -68,8 +68,8 @@ MP_DEFINE_CONST_OBJ_TYPE(
PlasmaWS2812_type,
MP_QSTR_plasma_ws2812,
MP_TYPE_FLAG_NONE,
- make_new, PlasmaWS2812_print,
- print, PlasmaWS2812_make_new,
+ make_new, PlasmaWS2812_make_new,
+ print, PlasmaWS2812_print,
locals_dict, (mp_obj_dict_t*)&PlasmaWS2812_locals_dict
);
#else
|
Add a timestamp type and a soundpack location uri | @@ -70,6 +70,16 @@ enum clap_preset_discovery_flags {
CLAP_PRESET_DISCOVERY_IS_FAVORITE = 1 << 3,
};
+// TODO: move clap_timestamp_t, CLAP_TIMESTAMP_UNKNOWN and clap_plugin_id_t to parent files once we
+// settle with preset discovery
+
+// This type defines a timestamp: the number of seconds since UNIX EPOCH.
+// See ... |
enabling pmix build for mpich | BuildRequires: slurm-devel%{PROJ_DELIM} slurm%{PROJ_DELIM}
%endif
+%define with_pmix 1
+%if 0%{with_pmix}
+BuildRequires: pmix%{PROJ_DELIM}
+Provides: pmix_enabled
+%endif
+
# Base package name
%define pname mpich
@@ -49,9 +55,17 @@ Message Passing Interface (MPI) standard.
# OpenHPC compiler designation
%ohpc_setup_co... |
Fix cli tool build error.
random_seed was never added as an argument.
It should have been added in:
but it wasn't. | @@ -104,7 +104,7 @@ int main(int argc, char** argv) {
Usz max_ticks = (Usz)ticks;
for (Usz i = 0; i < max_ticks; ++i) {
orca_run(field.buffer, mbuf_r.buffer, field.height, field.width, i,
- &oevent_list, ORCA_PIANO_BITS_NONE);
+ &oevent_list, ORCA_PIANO_BITS_NONE, 0);
}
mbuf_reusable_deinit(&mbuf_r);
oevent_list_deinit... |
Check for None in keypoints script. | @@ -18,6 +18,7 @@ sensor.skip_frames(time = 2000)
sensor.set_auto_gain(False, value=100)
def draw_keypoints(img, kpts):
+ if kpts:
print(kpts)
img.draw_keypoints(kpts)
img = sensor.snapshot()
|
Print text fix | @@ -56,7 +56,7 @@ int main() {
}
}
else {
- printf("Encoder Potentiometer found :'(\n");
+ printf("Potentiometer not found :'(\n");
gpio_put(PICO_DEFAULT_LED_PIN, true);
}
|
neon/add: correct WASM implementation of vaddq_f64 | @@ -367,7 +367,7 @@ simde_vaddq_f64(simde_float64x2_t a, simde_float64x2_t b) {
#elif defined(SIMDE_POWER_ALTIVEC_P5_NATIVE)
return vec_add(a, b);
#elif defined(SIMDE_WASM_SIMD128_NATIVE)
- return wasm_f32x4_add(a, b);
+ return wasm_f64x2_add(a, b);
#else
simde_float64x2_private
r_,
|
rand: don't free an mis-set pointer on error
This is adding robustness to the code. The fix to not mis-set the pointer
is in
Fixes | @@ -459,9 +459,11 @@ int ossl_prov_drbg_instantiate(PROV_DRBG *drbg, unsigned int strength,
if (!drbg->instantiate(drbg, entropy, entropylen, nonce, noncelen,
pers, perslen)) {
+ cleanup_entropy(drbg, entropy, entropylen);
ERR_raise(ERR_LIB_PROV, PROV_R_ERROR_INSTANTIATING_DRBG);
goto end;
}
+ cleanup_entropy(drbg, ent... |
[core] STAILQ_* -> SIMPLEQ_* on OpenBSD
(thx brad) | @@ -221,6 +221,18 @@ lshpack_dec_set_max_capacity (struct lshpack_dec *, unsigned);
#include <sys/queue.h>
+#ifdef __OpenBSD__
+#define STAILQ_HEAD SIMPLEQ_HEAD
+#define STAILQ_ENTRY SIMPLEQ_ENTRY
+#define STAILQ_INIT SIMPLEQ_INIT
+#define STAILQ_INSERT_TAIL SIMPLEQ_INSERT_TAIL
+#define STAILQ_EMPTY SIMPLEQ_EMPTY
+#def... |
fix a usage message a bit | @@ -784,7 +784,7 @@ USAGE: h2olog -p PID
h2olog quic -p PID
h2olog quic -t event_type -p PID
h2olog quic -v -s response_header_name -p PID
- h2olog [-h] [-d] // help / debug
+ h2olog [-h] [-d] # help / debug
h2olog version %s
Platform: %s
|
Use default shader when drawing mirror texture; | @@ -651,7 +651,10 @@ void lovrHeadsetRenderTo(headsetRenderCallback callback, void* userdata) {
unsigned char r, g, b, a;
lovrGraphicsGetColor(&r, &g, &b, &a);
lovrGraphicsSetColor(255, 255, 255, 255);
+ Shader* lastShader = lovrGraphicsGetShader();
+ lovrGraphicsSetShader(NULL);
lovrGraphicsPlaneFullscreen(state.textu... |
HV: coding style cleanup in string.c
replaced blank space with tab
delete some confusing comments | * SPDX-License-Identifier: BSD-3-Clause
*/
-/* FIXME: It'd be nice to configure around these, but the include files are too
- * painful. These macros should at least be more portable than hardwired hex
- * constants.
- */
-
#include <hypervisor.h>
#define ULONG_MAX ((uint64_t)(~0UL)) /* 0xFFFFFFFF */
/*
* Convert a str... |
Update esp_eddystone_api.h
Change incorrect bitshifts in big_endian_read_32() function.
This was giving wrong values of of the 4 byte fieldswithin the eddystone TLM message, namely 'ADV_CNT' and 'SEC_CNT' | @@ -53,7 +53,7 @@ static inline uint16_t big_endian_read_16(const uint8_t *buffer, uint8_t pos)
static inline uint32_t big_endian_read_32(const uint8_t *buffer, uint8_t pos)
{
- return (((uint32_t)buffer[pos]) << 24) | (((uint32_t)buffer[(pos)+1]) >> 16) | (((uint32_t)buffer[(pos)+2]) >> 8) | ((uint32_t)buffer[(pos)+3]... |
fix issue with reading ipv6 routes. Handle space ahead of first line of route. | #include <string.h>
#include <assert.h>
#include <errno.h>
-
+#include <ctype.h>
#include <arpa/inet.h>
#include "netutils/netlib.h"
@@ -110,6 +110,7 @@ ssize_t netlib_read_ipv6route(FILE *stream,
char line[PROCFS_LINELEN];
FAR char *addr;
int ret;
+ int idx = 0;
DEBUGASSERT(stream != NULL && route != NULL);
@@ -131,9 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.