message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
replace two internal_recurse usages with peerdir; | @@ -120,7 +120,7 @@ def onjava_module(unit, *args):
for dm_paths in data['DEPENDENCY_MANAGEMENT']:
for p in dm_paths:
- unit.oninternal_recurse(p)
+ unit.onpeerdir(p)
for java_srcs_args in data['JAVA_SRCS']:
external = None
@@ -143,7 +143,7 @@ def onjava_module(unit, *args):
external = ex
if external:
- unit.oninternal... |
Xiaomi re-add event/awake on special report | @@ -58,6 +58,17 @@ void DeRestPluginPrivate::handleZclAttributeReportIndicationXiaomiSpecial(const
return;
}
+ Device *device = nullptr;
+ const DeviceKey deviceKey = ind.srcAddress().ext();
+ if (ind.srcAddress().hasExt())
+ {
+ device = DEV_GetDevice(m_devices, deviceKey);
+ if (device)
+ {
+ enqueueEvent(Event(devic... |
Ensure TLS secrets code path doesn't read null pointer | @@ -463,6 +463,7 @@ CxPlatTlsSetEncryptionSecretsCallback(
TlsContext->TlsSecrets->SecretLength = (uint8_t)SecretLen;
switch (KeyType) {
case QUIC_PACKET_KEY_HANDSHAKE:
+ CXPLAT_FRE_ASSERT(ReadSecret != NULL && WriteSecret != NULL);
if (TlsContext->IsServer) {
memcpy(TlsContext->TlsSecrets->ClientHandshakeTrafficSecret... |
hv: save registers on exception
This patch is for crashmode/ramdump. when exception occur:
1) save registers;
2) flush cache
Acked-by: Eddie Dong | @@ -44,6 +44,9 @@ static const char *const excp_names[] = {
[31] = "Intel Reserved"
};
+/* Global variable for save registers on exception */
+struct intr_excp_ctx *crash_ctx;
+
static void dump_guest_reg(struct vcpu *vcpu)
{
struct run_context *cur_context =
@@ -283,4 +286,8 @@ void dump_exception(struct intr_excp_ctx... |
tash/cat : Prevent infinite write
some logic is missed, so there was infinite write in redirection case | @@ -380,6 +380,8 @@ static int tash_cat(int argc, char **args)
written_size = write(destfd, fscmd_buffer + written_size, read_size);
if (written_size != read_size) {
read_size -= written_size;
+ } else {
+ break;
}
}
} while (read_size > 0);
|
rm unused window argument in errhand; | @@ -226,7 +226,7 @@ function lovr.errhand(message, traceback)
local width, lines = font:getWidth(message, wrap)
local height = 2.6 + lines
local y = math.min(height / 2, 10)
- local function render(window)
+ local function render()
lovr.graphics.print('Error', -width / 2, y, -20, 1.6, 0, 0, 0, 0, nil, 'left', 'top')
lo... |
Don't continue parsing configs if process is blacklisted | #include "config.h"
#include "string_utils.h"
#include "hud_elements.h"
+#include "blacklist.h"
#include "mesa/util/os_socket.h"
#ifdef HAVE_X11
@@ -655,6 +656,9 @@ parse_overlay_config(struct overlay_params *params,
// if (env && read_cfg)
// parse_overlay_env(params, env);
+ if (is_blacklisted())
+ return;
+
if (para... |
Run SDV tests only ones
No need to run SDV for Windows 8. We build DVL logs for Windows 8
using results from Windows 10. | @@ -19,9 +19,9 @@ call tools\build.bat virtio-win.sln "Win8 Win8.1 Win10" %*
if errorlevel 1 goto :fail
call tools\build.bat NetKVM\NetKVM-VS2015.vcxproj "Win10_SDV" %*
if errorlevel 1 goto :fail
-call tools\build.bat vioscsi\vioscsi.vcxproj "Win8_SDV Win10_SDV" %*
+call tools\build.bat vioscsi\vioscsi.vcxproj "Win10_S... |
unix/file: Closing already closed file should not lead to an error. | @@ -110,6 +110,12 @@ STATIC mp_uint_t fdfile_write(mp_obj_t o_in, const void *buf, mp_uint_t size, in
STATIC mp_uint_t fdfile_ioctl(mp_obj_t o_in, mp_uint_t request, uintptr_t arg, int *errcode) {
mp_obj_fdfile_t *o = MP_OBJ_TO_PTR(o_in);
+
+ // It should be possible to close already closed file without error.
+ if (re... |
Escaping in grep | @@ -21,7 +21,7 @@ TAG_NAME="v$1"
cd $DIR
echo ">>>>> Checking changelog"
-grep -A 5 $1 CHANGELOG.md || true
+grep -A 5 -F $1 CHANGELOG.md || true
prompt "Is the changelog correct and complete?"
echo ">>>>> Checking Doxyfile"
|
u3: rewrites u3i_chubs() for efficiency | @@ -117,19 +117,64 @@ u3_atom
u3i_chubs(c3_w a_w,
const c3_d* b_d)
{
- // XX efficiency
+ // Strip trailing zeroes.
//
- c3_w *b_w = u3a_malloc(a_w * 8);
- c3_w i_w;
- u3_atom p;
+ while ( a_w && !b_d[a_w - 1] ) {
+ a_w--;
+ }
- for ( i_w = 0; i_w < a_w; i_w++ ) {
- b_w[(2 * i_w)] = b_d[i_w] & 0xffffffffULL;
- b_w[(2 *... |
py/obj.h: Use 32-bit shift in MP_OBJ_NEW_QSTR calc for obj-repr D.
The qst value is always small enough to fit in 31-bits (even less) and
using a 32-bit shift rather than a 64-bit shift reduces code size by about
300 bytes. | @@ -178,7 +178,7 @@ static inline bool mp_obj_is_small_int(mp_const_obj_t o)
static inline bool mp_obj_is_qstr(mp_const_obj_t o)
{ return ((((uint64_t)(o)) & 0xffff000000000000) == 0x0002000000000000); }
#define MP_OBJ_QSTR_VALUE(o) ((((uint32_t)(o)) >> 1) & 0xffffffff)
-#define MP_OBJ_NEW_QSTR(qst) ((mp_obj_t)((((mp_u... |
Correct a typo in the web site 3.1.3 release notes. | @@ -32,7 +32,7 @@ enhancements and bug-fixes that were added to this release.</p>
<li>Fixed a bug with the Pixie reader when it read 3D curvilinear meshes in parallel.</li>
<li>Fixed a bug where the parallel engine crashed when creating ghost zones from global ids.</li>
<li>Fixed a bug with the progress dialog staying ... |
Create OpenBLASConfig.cmake from cmake as well | @@ -20,6 +20,7 @@ option(BUILD_WITHOUT_LAPACK "Without LAPACK and LAPACKE (Only BLAS or CBLAS)" ON
endif()
option(BUILD_WITHOUT_CBLAS "Without CBLAS" OFF)
option(DYNAMIC_ARCH "Build with DYNAMIC_ARCH" OFF)
+option(DYNAMIC_OLDER "Support older cpus with DYNAMIC_ARCH" OFF)
option(BUILD_RELAPACK "Build with ReLAPACK (recu... |
refactor: improve the format of generated code | @@ -226,16 +226,16 @@ gen_default(FILE * fp, char * type)
fprintf(fp, " struct %s * p= (struct %s*)malloc(sizeof(struct %s));\n", type, type, type);
fprintf(fp, " init_%s((void*)p);\n", type);
fprintf(fp, " return p;\n");
- fprintf(fp, "}\n");
+ fprintf(fp, "}\n\n");
fprintf(fp, "void release(struct %s *p) {\n", type);... |
Correct the UnsafeLegacyServerConnect docs
This option is no longer set by default from OpenSSL 3.0. | @@ -496,7 +496,6 @@ Equivalent to B<SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION>.
B<UnsafeLegacyServerConnect>: permits the use of unsafe legacy renegotiation
for OpenSSL clients only. Equivalent to B<SSL_OP_LEGACY_SERVER_CONNECT>.
-Set by default.
B<EncryptThenMac>: use encrypt-then-mac extension, enabled by
default. Inv... |
rm AttachmentTypes; DepthFormats; | @@ -71,7 +71,6 @@ extern const luaL_Reg lovrWorld[];
// Enums
extern const char* ArcModes[];
-extern const char* AttachmentTypes[];
extern const char* AttributeTypes[];
extern const char* BlendAlphaModes[];
extern const char* BlendModes[];
@@ -80,6 +79,7 @@ extern const char* CompareModes[];
extern const char* Controll... |
add comment to update info about cascading keys | @@ -1268,6 +1268,7 @@ ssize_t ksCopyInternal (KeySet * ks, size_t to, size_t from)
return ret;
}
+// TODO: update the part about cascading keys when cascading keys are banned from keysets
/**
* Searches for the start and optionally end of the key hierarchy rooted at @p root in @p ks.
* The hierarchy will only contain k... |
docs: disable llvm discussion for 2.x until it is available | \OHPC{} presently packages the \GNU{} compiler toolchain integrated with the
-underlying modules-environment system in a hierarchical fashion. The modules
+underlying Lmod modules system in a hierarchical fashion. The modules
system will conditionally present compiler-dependent software based on the
toolchain currently... |
Try a different set of poll events. | @@ -64,7 +64,7 @@ _papplPrinterRunUSB(
return (NULL);
}
- data.events = POLLIN | POLLERR | POLLHUP;
+ data.events = POLLIN | POLLRDNORM;
papplLogPrinter(printer, PAPPL_LOGLEVEL_INFO, "Monitoring USB for incoming print jobs.");
|
neon/recpe: add some additional implementations stolen from SSE | @@ -44,6 +44,27 @@ simde_vrecpe_f32(simde_float32x2_t a) {
r_,
a_ = simde_float32x2_to_private(a);
+ #if defined(SIMDE_IEEE754_STORAGE)
+ /* https://stackoverflow.com/questions/12227126/division-as-multiply-and-lut-fast-float-division-reciprocal/12228234#12228234 */
+ SIMDE_VECTORIZE
+ for (size_t i = 0 ; i < (sizeof(r... |
[toolchain] Build GCC in build folder | @@ -58,9 +58,8 @@ toolchain: tc-riscv-gcc tc-llvm
tc-riscv-gcc:
mkdir -p $(GCC_INSTALL_DIR)
- cd $(CURDIR)/toolchain/riscv-gnu-toolchain && \
- ./configure --prefix=$(GCC_INSTALL_DIR) --with-arch=rv32im --with-cmodel=medlow --enable-multilib && \
- make clean && \
+ cd $(CURDIR)/toolchain/riscv-gnu-toolchain && rm -rf ... |
Check for parameters types in 'pyto_core' | @@ -78,6 +78,9 @@ def show_view(view: ui.View, mode: ui.PRESENTATION_MODE):
:param mode: The presentation mode to use. The value will be ignored on a widget. See `Presentation Mode <constants.html#presentation-mode>`_ constants for possible values.
"""
+ check(view, "view", [ui.View])
+ check(mode, "mode", [int])
+
def... |
Early return for renderNode; | @@ -9,6 +9,7 @@ static void renderNode(Model* model, int nodeIndex) {
Material* currentMaterial = lovrGraphicsGetMaterial();
bool useMaterials = currentMaterial->isDefault;
+ if (node->primitives.length > 0) {
lovrGraphicsPush();
lovrGraphicsMatrixTransform(MATRIX_MODEL, model->globalNodeTransforms + 16 * nodeIndex);
@... |
Add simd clause to demonstrate warning from flang | @@ -27,7 +27,7 @@ subroutine foo(a,b,c)
PARAMETER (nsize=10000)
real a(nsize,nsize), b(nsize,nsize), c(nsize,nsize)
integer i,j,k,omp_get_num_threads,omp_get_thread_num,omp_get_max_threads
-!$omp target teams distribute parallel do map(from:a) map(to:b,c) private(i,j,k)
+!$omp target teams distribute parallel do simd m... |
Use $OS to determine whether running on windows or not. | @@ -34,9 +34,8 @@ common_file_to_load () {
# Also check if $COMSPEC is set or not.
#
windows_detect() {
- BUILD_OS=`uname`
WINDOWS=0
- if [ $BUILD_OS = "Windows_NT" ]; then
+ if [ $OS = "Windows_NT" ]; then
WINDOWS=1
fi
if [ $WINDOWS -eq 1 -a -z "$COMSPEC" ]; then
|
Update changelog with a few fixes. | # Changelog
All notable changes to this project will be documented in this file.
+## Unreleased - ???
+- Fix printing issue in `doc` macro.
+- Numerous updates to function docstrings
+- Add `defdyn` aliases for various dynamic bindings used in core.
+- Install `janet.h` symlink to make Janet native libraries and applic... |
Add all.sh component to test with code style
Run the main test suites after running code style correction to check
that code style correction does not break these tests. | @@ -3537,6 +3537,26 @@ support_test_psa_compliance () {
[ "$ver_major" -eq 3 ] && [ "$ver_minor" -ge 10 ]
}
+component_test_corrected_code_style () {
+ ./scripts/code_style.py --fix
+
+ msg "build: make, default config (out-of-box), corrected code style"
+ make
+
+ msg "test: main suites make, default config (out-of-bo... |
RTX5: added automatic setup of external Tick Timer interrupt | @@ -281,6 +281,7 @@ osStatus_t svcRtxKernelStart (void) {
// Setup and Enable System Timer
osRtxInfo.tick_irqn = osRtxSysTimerSetup();
if (osRtxInfo.tick_irqn >= 0) {
+ ExtTick_SetupIRQ (osRtxInfo.tick_irqn);
ExtTick_EnableIRQ(osRtxInfo.tick_irqn);
}
osRtxSysTimerEnable();
|
Fix builds when MsQuic is a submodule of another project. | # Licensed under the MIT License.
# Disable in-source builds to prevent source tree corruption.
-if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}")
+if("${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}")
message(FATAL_ERROR "
FATAL: In-source builds are not allowed.
You should create a separate director... |
show memoryresources: Use correct delimiter '=' | @@ -98,36 +98,36 @@ ShowMemoryResources(
SetDisplayInfo(L"MemoryResources", ListView);
ReturnCode = MakeCapacityString(MemoryResourcesInfo.RawCapacity, UnitsToDisplay, TRUE, &pCapacityStr);
- Print(FORMAT_STR L": " FORMAT_STR_NL,DISPLAYED_CAPACITY_STR, pCapacityStr);
+ Print(FORMAT_STR L"=" FORMAT_STR_NL,DISPLAYED_CAPA... |
npcx/fan: Avoid turning on disabled fans
Fan enable state is controlled in common/fan.c. This patch prevents
npcx fan driver from enabling it.
BRANCH=none
TEST=Verify no 'Fan 0 stalled' is printed in S3 and S5. Verify the
fan spins in S0. | @@ -346,8 +346,11 @@ void fan_tick_func(void)
/* Make sure rpm mode is enabled */
if (p_status->fan_mode != TACHO_FAN_RPM) {
p_status->auto_status = FAN_STATUS_STOPPED;
+ /* Why isn't this 'continue'? */
return;
}
+ if (!fan_get_enabled(ch))
+ continue;
/* Get actual rpm */
p_status->rpm_actual = mft_fan_rpm(ch);
/* Do... |
Apply 2 suggestions by Marius Vikhammer | @@ -1672,9 +1672,9 @@ The Wi-Fi multiple antennas selecting can be depicted as following picture::
Up to four GPIOs are connected to the four active high antenna_select pins. {IDF_TARGET_NAME} can select the antenna by control the GPIO[0:3]. The API :cpp:func:`esp_wifi_set_ant_gpio()` is used to configure which GPIOs a... |
sceAppUtilRecieveAppEvent -> sceAppUtilReceiveAppEvent | @@ -154,7 +154,7 @@ int sceAppUtilInit(SceAppUtilInitParam *initParam, SceAppUtilBootParam *bootPara
int sceAppUtilShutdown();
//! Receive app event
-int sceAppUtilRecieveAppEvent(SceAppUtilAppEventParam *eventParam);
+int sceAppUtilReceiveAppEvent(SceAppUtilAppEventParam *eventParam);
//! Create savedata slot
int sceA... |
build: Add documentation to CMAKE_FLAGS | @@ -57,7 +57,11 @@ DOCKER_IMAGES = [
]
]
-// Define reusable cmake Flag globals
+/* Define reusable cmake Flag globals
+ *
+ * They can be passed to many of the test helper functions and the cmake
+ * function and represent flags usually passed to cmake.
+ */
CMAKE_FLAGS_BASE = [
'SITE': '${STAGE_NAME}',
'KDB_DB_SYSTEM... |
dpdk: fix cryptodev offset update
Type: fix
This patch fixes the missed crypto and integ offset update for
every packet. Previously the offset is updated only when the
key is changed. This is ok for encryption but not always true
for decryption. | @@ -472,7 +472,6 @@ cryptodev_frame_linked_algs_enqueue (vlib_main_t * vm,
u32 n_elts;
cryptodev_key_t *key;
u32 last_key_index = ~0;
- union rte_crypto_sym_ofs cofs;
i16 min_ofs;
u32 max_end;
int status;
@@ -490,13 +489,11 @@ cryptodev_frame_linked_algs_enqueue (vlib_main_t * vm,
vec = cet->vec;
b = cet->b;
-
fe = fra... |
py/dynruntime.h: Fix up mp_store_name/mp_store_global for external modules.
For compatibility with modules intended for MicroPython, don't add third
is_const param, but assume it's "false". | @@ -168,8 +168,8 @@ static inline mp_obj_t mp_obj_len_dyn(mp_obj_t o) {
#define mp_load_attr(base, attr) (mp_fun_table.load_attr((base), (attr)))
#define mp_load_method(base, attr, dest) (mp_fun_table.load_method((base), (attr), (dest)))
#define mp_load_super_method(attr, dest) (mp_fun_table.load_super_method((attr), (... |
dwarf: Fix warning about -Wmaybe-uninitialized.
```
src/dwarf/Gfind_proc_info-lsb.c:536:16: warning: 'eh_frame' may be used uninitialized in this function [-Wmaybe-uninitialized]
Elf_W (Addr) eh_frame;
^
```
Introduced-in: | @@ -533,7 +533,7 @@ dwarf_find_eh_frame_section(struct dl_phdr_info *info)
int fd;
Elf_W (Ehdr) ehdr;
Elf_W (Half) shstrndx;
- Elf_W (Addr) eh_frame;
+ Elf_W (Addr) eh_frame = 0;
unsigned int i;
const char *file = info->dlpi_name;
char secname[EH_FRAME_LEN];
|
Add link in README to EFB integration guide. | @@ -28,6 +28,8 @@ Tested weather/traffic displays:
* ForeFlight 7+ - weather, traffic. AHRS not functional.
* Avare
+Other EFBs? See the [app vendor integration guide](https://github.com/cyoung/stratux/blob/master/notes/app-vendor-integration.md).
+
Dangerzone builds (AHRS display):
* ForeFlight 7+ - weather, traffic, ... |
little bit o' spit 'n polish | @@ -1190,7 +1190,7 @@ static Point SolveForLighthouse(TrackedObject *obj, char doLogOutput)
printf("(%4.4f, %4.4f, %4.4f) Dist: %8.8f Fit:%4f ", refinedEstimateGd.x, refinedEstimateGd.y, refinedEstimateGd.z, distance, fitGd);
- if (fitGd > 5)
+ //if (fitGd > 5)
{
FLT distance = FLT_SQRT(SQUARED(refinedEstimateGd.x) + S... |
doc: restore wording from recent patch "rolled back to"
Reported-by: Tom Lane
Discussion:
Backpatch-through: 9.5 - 12 | @@ -1041,7 +1041,7 @@ ERROR: could not serialize access due to read/write dependencies among transact
<para>
Once acquired, a lock is normally held until the end of the transaction. But if a
lock is acquired after establishing a savepoint, the lock is released
- immediately if the savepoint is rolled back. This is cons... |
process: remove unused code | @@ -213,11 +213,6 @@ int elektraProcessGet (Plugin * handle, KeySet * returned, Key * parentKey)
return ELEKTRA_PLUGIN_STATUS_ERROR;
}
- // Now adjust the infos to the proxied plugin, the exports have to remain as it is so the proxy gets closed
- Key * infosKey = keyNew ("system/elektra/modules/", KEY_END);
- keyAddBas... |
use the Fortran REPEAT statement | program bufr_encode
use eccodes
implicit none
- integer :: iret
- integer :: outfile
+ integer :: iret, outfile
integer :: ibufr
integer, parameter :: max_strsize = 100
- character(len=max_strsize) , dimension(:),allocatable :: svalues
+ character (len=1), parameter :: missing_char = char(255)
character(9) :: missing_s... |
Fixed bsearch size of list elements. [sizeof(uint32_t*) --> sizeof(uint32_t)] | @@ -225,7 +225,7 @@ const uint8_t * lv_font_get_bitmap_sparse(const lv_font_t * font, uint32_t unico
pUnicode = bsearch(&unicode_letter,
(uint32_t*) font->unicode_list,
font->glyph_cnt,
- sizeof(uint32_t*),
+ sizeof(uint32_t),
lv_font_codeCompare);
if (pUnicode != NULL) {
@@ -269,7 +269,7 @@ int16_t lv_font_get_width_s... |
host/gatts: Show local included services | @@ -133,6 +133,18 @@ ble_gatt_show_local_chr(const struct ble_gatt_svc_def *svc,
}
}
+static void
+ble_gatt_show_local_inc_svc(const struct ble_gatt_svc_def *svc, char *uuid_buf)
+{
+ const struct ble_gatt_svc_def *inc_svc;
+
+ console_printf("%" FIELD_INDENT "s %" FIELD_NAME_LEN "s ", " ", "includes");
+ for (inc_svc ... |
Update Vagrant box version. | @@ -15,7 +15,7 @@ Vagrant.configure(2) do |config|
#-------------------------------------------------------------------------------------------------------------------------------
config.vm.define "default", primary: true do |default|
default.vm.box = "ubuntu/bionic64"
- default.vm.box_version = "20180719.0.0"
+ defaul... |
[software] Clarify allocation in sequential region | @@ -11,10 +11,9 @@ ENTRY(_start)
SECTIONS {
/* Sequential region on L1 */
+ /* Use dynamic allocation with `domain_malloc` */
.l1_seq (NOLOAD): {
. = __seq_end;
- *(.l1_seq);
- __l1_seq_alloc_base = ALIGN(0x10);
} > l1
/* Interleaved region on L1 */
|
Added in dynamic XML types. | :: with normal hoon rules. multipass parsing is the tax
:: humans have to pay for simple but human-friendly syntax.)
::
+
+|%
+++ dynamic
+ |%
+ ++ mane $@(@tas {@tas @tas}) :: XML name+space
+ ++ manx {g/marx c/marl} :: XML node
+ ++ marl (list $^(manx tuna)) :: XML node list
+ ++ mart (list {n/mane v/(list beer)}) ::... |
stm32/mpconfigport.h: Enable math.factorial, optimised version. | #define MICROPY_OPT_COMPUTED_GOTO (1)
#define MICROPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE (0)
#define MICROPY_OPT_MPZ_BITWISE (1)
+#define MICROPY_OPT_MATH_FACTORIAL (1)
// Python internal features
#define MICROPY_READER_VFS (1)
#define MICROPY_PY_COLLECTIONS_DEQUE (1)
#define MICROPY_PY_COLLECTIONS_ORDEREDDICT (1)
#defin... |
consistently use IPv4/IPv6 | @@ -349,7 +349,7 @@ ip\-transparent option is also available.
The value of the Differentiated Services Codepoint (DSCP) in the
differentiated services field (DS) of the outgoing IP packet headers.
The field replaces the outdated IPv4 Type-Of-Service field and the
-IPV6 traffic class field.
+IPv6 traffic class field.
.T... |
stm32/mpconfigport.h: Enable MICROPY_PY_REVERSE_SPECIAL_METHODS.
It's a useful core feature. | #define MICROPY_PY_BUILTINS_SLICE_INDICES (1)
#define MICROPY_PY_BUILTINS_ROUND_INT (1)
#define MICROPY_PY_ALL_SPECIAL_METHODS (1)
+#define MICROPY_PY_REVERSE_SPECIAL_METHODS (1)
#define MICROPY_PY_BUILTINS_COMPILE (MICROPY_ENABLE_COMPILER)
#define MICROPY_PY_BUILTINS_EXECFILE (MICROPY_ENABLE_COMPILER)
#define MICROPY_... |
web ui: fix error when no search results | @@ -173,6 +173,7 @@ const ls = (path) =>
const find = (query) =>
safeExec(escapeValues`${KDB_COMMAND} find -0 ${query}`)
.then(stdout => stdout && stdout.split('\0'))
+ .then(res => res || [])
// get value from given `path`
const get = (path) =>
|
test stress in windows pipeline | @@ -40,6 +40,8 @@ jobs:
# cd $(BuildType)
# ctest --verbose --timeout 120
# displayName: CTest
+ - script: $(BuildType)\$(BuildType)\mimalloc-test-stress
+ displayName: TestStress
#- upload: $(Build.SourcesDirectory)/$(BuildType)
# artifact: mimalloc-windows-$(BuildType)
|
Better style in TBufferedOutputBase | @@ -368,35 +368,23 @@ TBufferedOutputBase::~TBufferedOutputBase() {
}
size_t TBufferedOutputBase::DoNext(void** ptr) {
- if (Impl_.Get()) {
+ Y_ENSURE(Impl_.Get(), "cannot call next in finished stream");
return Impl_->Next(ptr);
- } else {
- ythrow yexception() << "cannot call next in finished stream";
- }
}
void TBuff... |
hcxpcapngtool is default conversion tool, now | @@ -38,15 +38,15 @@ Detailed description
--------------
| Tool | Description |
-| -------------- | -------------------------------------------------------------------------------------------------------------------- |
+| -------------- | ----------------------------------------------------------------------------------... |
remove unneeded reset | @@ -94,8 +94,7 @@ static int s2n_sslv3_mac_init(struct s2n_hmac_state *state, s2n_hmac_algorithm a
GUARD(s2n_hash_update(&state->outer_just_key, key, klen));
GUARD(s2n_hash_update(&state->outer_just_key, state->xor_pad, state->xor_pad_size));
- /* Copy inner_just_key to inner */
- return s2n_hmac_reset(state);
+ return... |
fix MISRA-C 243S
Included file not protected with #define, this
feature is required. | * $FreeBSD$
*/
+#ifndef INSTR_EMUL_WRAPPER_H
+#define INSTR_EMUL_WRAPPER_H
#include <cpu.h>
struct vie_op {
@@ -186,3 +188,4 @@ int vm_get_seg_desc(struct vcpu *vcpu, int reg,
int vm_set_seg_desc(struct vcpu *vcpu, int reg,
struct seg_desc *desc);
int vm_restart_instruction(struct vcpu *vcpu);
+#endif
|
Add comgr 3.2 patch to control file | roct-thunk-interface: roct_ppc.patch roct_cmake.patch roct_ppc_fmm.patch
rocr-runtime: rocr-runtime.patch rocr-runtime-ppcpages.patch rocr_include.patch rocr_define_ndebug.patch
rocm-device-libs: devicelibs_2-10_revert_1d2127c.patch
-rocm-compilersupport: useOldSectionNameMethod.patch comgr_2-10_revert_15854f1_2d67c80_... |
feat: add prikey generation function for defaut crypto | @@ -508,8 +508,51 @@ void BoatClose(BSINT32 sockfd, void* tlsContext, void* rsvd)
static BOAT_RESULT sBoatPort_keyCreate_intern_generation( const BoatWalletPriKeyCtx_config* config,
BoatWalletPriKeyCtx* pkCtx )
{
+ /* Valid private key value (as a UINT256) for Ethereum is [1, n-1], where n is
+ 0xFFFFFFFF FFFFFFFF FFFF... |
Fix definition of HOME key on Android
There are two HOME keys defined in keycodes.h, the previously used
doesn't work and is labeled with the following comment: "This key
is handled by the framework and is never delivered to applications." | @@ -90,7 +90,7 @@ static int32_t onInputEvent(struct android_app* app, AInputEvent* event) {
case AKEYCODE_DPAD_DOWN: key = KEY_DOWN; break;
case AKEYCODE_DPAD_LEFT: key = KEY_LEFT; break;
case AKEYCODE_DPAD_RIGHT: key = KEY_RIGHT; break;
- case AKEYCODE_HOME: key = KEY_HOME; break;
+ case AKEYCODE_MOVE_HOME: key = KEY... |
BugID:20791250: Fix the timeout calculation issue in dns. | @@ -1060,6 +1060,10 @@ dns_check_entry(u8_t i)
break;
} else {
entry->tmr = 1 << entry->retries;
+ /**
+ * entry->tmr is of uint8_t type, so we handle 8 and above
+ * left-shift operation carefully here.
+ **/
if ((entry->tmr > DNS_MAX_RETRY_INTERVAL) || (entry->retries > 7)) {
entry->tmr = DNS_MAX_RETRY_INTERVAL;
}
|
Changed chart interpolation to monotone.
This should avoid the issue where the interpolated curve has a bend into the
negative space.
Fixes | @@ -100,20 +100,20 @@ function AreaChart(dualYaxis) {
.orient('left');
var area0 = d3.svg.area()
- .interpolate('cardinal')
+ .interpolate('monotone')
.x(X)
.y(Y0);
var area1 = d3.svg.area()
- .interpolate('cardinal')
+ .interpolate('monotone')
.x(X)
.y(Y1);
var line0 = d3.svg.line()
- .interpolate('cardinal')
+ .inter... |
Apply suggestions from code review
Commit changes | Attestation SGX QPL Enforcement Support
====
-This proposal is to make a change to `oe_verify_evidence`, so that it can support policy-based SGX QPL (Quote Provider Library) specific enhancement, such as allowing the OE SDK applications to pass third party cloud specific parameters to the SGX QPL for more advanced quot... |
tools/webd: add trailing slash to encodePath | import fetch from "node-fetch";
-const encodePath = (path) => path.split("/").map(encodeURIComponent).join("/");
+const encodePath = (path) => path.split("/").map(encodeURIComponent).join("/") + "/";
const version = (host) => fetch(`${host}/version`).then((res) => res.json());
|
gall: roundtrip through arvo to revive %hood and %dojo | ++ mo-core .
++ mo-abed |=(hun=duct mo-core(hen hun))
++ mo-abet [(flop moves) gall-payload]
- ++ mo-pass |=(p=[wire note-arvo] mo-core(moves [[hen pass+p] moves]))
++ mo-give |=(g=gift mo-core(moves [[hen give+g] moves]))
+ ++ mo-pass |=(p=[wire note-arvo] mo-core(moves [[hen pass+p] moves]))
+ ++ mo-slip |=(p=note-ar... |
Makefile: Fix building natively on ppc64le
When on ppc64le and CROSS is not set by the environment, make assumes
ppc64 and sets a default CROSS. Check for ppc64le as well, so that
'make' works out of the box on ppc64le. | @@ -9,11 +9,11 @@ ARCH = $(shell uname -m)
ifdef CROSS_COMPILE
CROSS ?= $(CROSS_COMPILE)
endif
-ifeq ("$(ARCH)", "ppc64")
- CROSS ?=
-else
+ifneq ("$(ARCH)", "ppc64")
+ifneq ("$(ARCH)", "ppc64le")
CROSS ?= powerpc64-linux-
endif
+endif
#
# Main debug switch
|
Corrected 7za arguments for unzip configuration files during backup import under windows | @@ -11409,8 +11409,7 @@ bool DeRestPluginPrivate::importConfiguration()
args.append("e");
args.append("-y");
args.append(path + "/deCONZ.tar");
- args.append("-o");
- args.append(path);
+ args.append("-o" + path);
zipProcess->start(cmd, args);
#endif
#ifdef Q_OS_LINUX
|
[ci] dispatch tasks out of vm2 which is down | @@ -192,24 +192,25 @@ known_tasks = {'siconos---vm0':
siconos_gcc_asan,
siconos_gcc_asan_latest,
siconos_ubuntu_15_10_with_mechanisms,
- siconos_debian_mechanisms),
+ siconos_debian_mechanisms,
+ siconos_ubuntu_15_10),
'siconos---vm1':
(siconos_documentation,
siconos_numerics_only,
siconos_clang,
siconos_clang_asan,
- ... |
Ensure Safari has priority over most crawlers except the ones that are known to have it. | @@ -151,23 +151,27 @@ static const char *browsers[][2] = {
{"CriOS", "Chrome"},
- /* Crawlers/Bots */
+ /* Crawlers/Bots (Possible Safari based) */
{"bingbot", "Crawlers"},
- {"msnbot", "Crawlers"},
+ {"AppleBot", "Crawlers"},
{"Yandex", "Crawlers"},
+ {"msnbot", "Crawlers"},
{"Baiduspider", "Crawlers"},
- {"Ezooms", "... |
Change the irq_detach argument from isr to irq
irq_detach API expects irq as argument but naming it as isr
is confusing. Change it to appropriate name as irq | */
#ifndef __ASSEMBLY__
-#define irq_detach(isr) irq_attach(isr, NULL, NULL)
+#define irq_detach(irq) irq_attach(irq, NULL, NULL)
#endif
/****************************************************************************
|
hoon: use +pow instead of handrolled loop in +ox-co:co | ++ ox-co
|= {{bas/@ gop/@} dug/$-(@ @)}
%+ em-co
- [|-(?:(=(0 gop) 1 (mul bas $(gop (dec gop))))) 0]
+ [(pow bas gop) 0]
|= {top/? seg/@ res/tape}
%+ weld
?:(top ~ `tape`['.' ~])
|
past: set doesn't clear | * WARRANTIES, see the file, "LICENSE.txt," in this distribution. */
// Derek Kwan 2017 - pretty much entirely redone
-//old behiavor (i believe) had it where it the first arg only really mattered...
-//which was the max behavior but completely wrong according to the max docs
-//this breaks backwards compat by making th... |
villager: add PANASONIC AP19A5K battery
supports panasonic ap19a5k battery
BRANCH=None
TEST=Built the villager, herobrine, and hoglin images. | / {
batteries {
- default_battery: ap19a8k {
+ default_battery: ap19a5k {
+ compatible = "panasonic,ap19a5k", "battery-smart";
+ };
+ ap19a8k {
compatible = "lgc,ap19a8k", "battery-smart";
};
};
|
Fix failure in flake8 due to incorrect NimBLE path | @@ -147,7 +147,7 @@ exclude =
components/libsodium/libsodium,
components/mbedtls/mbedtls,
components/nghttp/nghttp2,
- components/nimble/nimble,
+ components/bt/host/nimble/nimble,
components/unity/unity,
examples/build_system/cmake/import_lib/main/lib/tinyxml2,
# other third-party libraries
|
remove inline flags | CC ?= gcc
-CFLAGS ?= -Os -Wall -Wwrite-strings -pedantic -finline-small-functions -findirect-inlining
+CFLAGS ?= -Os -Wall -Wwrite-strings -pedantic
CFLAGS += -std=gnu99 -I/usr/local/include
LFLAGS += -L/usr/local/lib -lc
-FEATURES ?= cmd dns tls #bob nss lpd natpmp upnp web
+FEATURES ?= cmd dns tls bob #nss lpd natpmp... |
aqua: cache results of booting ships from pill
This gives us much higher cycle times when retrying tests over and over,
since we can just fast-forward past the boot sequence, which never
changes unless we change the pill. | pil=$>(%pill pill)
assembled=*
tym=@da
+ fresh-piers=(map ship [=pier boths=(list unix-both)])
fleet-snaps=(map term fleet)
piers=fleet
==
~& pill-size=(met 3 (jam snap))
..abet-pe
::
+ :: store post-pill ship for later re-use
+ ::
+ ++ ahoy
+ =? fresh-piers !(~(has by fresh-piers) who)
+ %+ ~(put by fresh-piers) who
+... |
vm: After exception dynaload, resync vm->readonly_table. | @@ -688,6 +688,12 @@ static void vm_error(lily_vm_state *vm, uint8_t id, const char *message)
build classes here. */
c = lily_dynaload_exception(vm->parser,
names[id - LILY_EXCEPTION_ID]);
+
+ /* The above will store at least one new function. It's extremely rare,
+ but possible, for that to trigger a grow of symtab's ... |
build: trivial edits to makefile.in comments on targets | -# Copyright (c) 2007 - 2017 Joseph Gaeddert
+# Copyright (c) 2007 - 2018 Joseph Gaeddert
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
#
# Targets:
# all : dynamic shared-library object (e.g. libliquid.so... |
removed fixme tag as the changes have no impact
Removed as there is no functional difference after removing the older
query. No reg is found from 6x to 7x. | @@ -3221,12 +3221,6 @@ def checkcatReport():
# Expand partition tables
db = connect2(GV.cfg[GV.coordinator_dbid], utilityMode=False)
- # GPDB_12_MERGE_FIXME: We used to have a query here, to fetch
- # some extra informationa about partitioned tables. I (Heikki)
- # didn't understand what it did. I ripped it out, and in... |
Restore miner stats update interval | @@ -344,7 +344,7 @@ namespace MiningCore.Blockchain.Monero
base.SetupStats();
// Pool Hashrate
- var poolHashRateSampleIntervalSeconds = 60 * 5;// * 10;
+ var poolHashRateSampleIntervalSeconds = 60 * 10;
disposables.Add(validSharesSubject
.Buffer(TimeSpan.FromSeconds(poolHashRateSampleIntervalSeconds))
|
Fix for boot_read_swap_state_by_id to close flash area on errors | @@ -286,14 +286,10 @@ boot_read_swap_state_by_id(int flash_area_id, struct boot_swap_state *state)
}
rc = boot_read_swap_state(fap, state);
- if (rc) {
flash_area_close(fap);
return rc;
}
- return 0;
-}
-
int
boot_write_magic(const struct flash_area *fap)
{
|
Create RaptureTextModule.cs | @@ -29,6 +29,9 @@ namespace FFXIVClientStructs.FFXIV.Client.UI
and so on...
*/
+ [VirtualFunction(6)]
+ public partial RaptureTextModule* GetRaptureTextModule();
+
[VirtualFunction(7)]
public partial RaptureAtkModule* GetRaptureAtkModule();
|
Fixed memory leaks in xfpga sysfs tests. | @@ -560,6 +560,7 @@ TEST_P(sysfs_c_mock_p, make_sysfs) {
res = make_sysfs_group(tok->sysfspath, "errors", &obj, FPGA_OBJECT_GLOB,
handle_);
EXPECT_EQ(res, FPGA_OK);
+ EXPECT_EQ(xfpga_fpgaDestroyObject(&obj), FPGA_OK);
res = make_sysfs_group(const_cast<char *>(invalid_path.c_str()), "errors",
&obj, 0, handle_);
@@ -583,... |
Bump version indicator | @@ -11,7 +11,7 @@ Feel free to copy, use and enjoy according to the license provided.
#define H_FACIL_H
#define FACIL_VERSION_MAJOR 0
#define FACIL_VERSION_MINOR 5
-#define FACIL_VERSION_PATCH 4
+#define FACIL_VERSION_PATCH 6
#ifndef FACIL_PRINT_STATE
/**
|
esp_bignum: move check for supported MPI bits at start of API
This can allow hardware MPI API to return as soon as it identifies
that it can handle require bitlength operation. | @@ -276,19 +276,23 @@ cleanup2:
static int esp_mpi_exp_mod( mbedtls_mpi *Z, const mbedtls_mpi *X, const mbedtls_mpi *Y, const mbedtls_mpi *M, mbedtls_mpi *_Rinv )
{
int ret = 0;
+
+ mbedtls_mpi Rinv_new; /* used if _Rinv == NULL */
+ mbedtls_mpi *Rinv; /* points to _Rinv (if not NULL) othwerwise &RR_new */
+ mbedtls_mp... |
Correct info about determining the optimizer being used
* Correct info on determining optimizer being used
* Update query-piv-opt-fallback.xml
Minor edit. | <p>You can examine the <codeph>EXPLAIN</codeph> query plan for the query determine which query
optimizer was used by Greenplum Database to execute the query:<ul
id="ul_vc2_xbh_1t">
- <li>When GPORCA generates the query plan, the setting
- <codeph>optimizer=on</codeph> and GPORCA version are displayed at
- the end of th... |
Fixes Ctrl+C and Cmd+C copying | @@ -131,7 +131,7 @@ Session.setDefault("flat", false);
// keyboard shortcuts
window.onkeydown = function(e) {
- if (!$(e.target).is("input")) e.preventDefault();
+ if (!$(e.target).is("input") && !((e.ctrlKey || e.metaKey) && e.keyCode === 67)) e.preventDefault();
//p(e.keyCode);
//p(e);
if (e.ctrlKey == true) return;
|
Add keyword/slice and symbol/slice tests | @@ -328,4 +328,8 @@ neldb\0\0\0\xD8\x05printG\x01\0\xDE\xDE\xDE'\x03\0marshal_tes/\x02
# Inline 3 argument get
(assert (= 10 (do (var a 10) (set a (get '{} :a a)))) "inline get 1")
+# Keyword and Symbol slice
+(assert (= :keyword (keyword/slice "some_keyword_slice" 5 12)) "keyword slice")
+(assert (= 'symbol (symbol/sl... |
Definitions: raise parameter limit: cumulative fluxes can easily reach the value +1e12 | constant default_min_val = -1e9 : double_type, hidden;
-constant default_max_val = +1e9 : double_type, hidden;
+constant default_max_val = +1e13 : double_type, hidden;
concept param_value_min(default_min_val) {
-150 = { paramId=165; }
|
Have Verilator build with unused simulation files | @@ -46,9 +46,21 @@ debug: $(sim_debug)
#########################################################################################
# simulaton requirements
#########################################################################################
+# past emulator.cc and verilator.h, the other files may not be used in the ... |
file_optical: Fix lba from uint32 to uint64. | @@ -1244,7 +1244,7 @@ static int fbo_synchronize_cache(struct tcmu_device *dev, uint8_t *cdb,
}
static int fbo_check_lba_and_length(struct fbo_state *state, uint8_t *cdb,
- uint8_t *sense, uint32_t *plba, int *plen)
+ uint8_t *sense, uint64_t *plba, int *plen)
{
uint64_t lba;
uint32_t num_blocks;
@@ -1267,7 +1267,7 @@ ... |
esp32h2beta2:disable FPGA mode for esp32h2beta2 | @@ -13,7 +13,6 @@ mainmenu "Espressif IoT Development Framework Configuration"
config IDF_ENV_FPGA
# This option is for internal use only
bool
- default "y" if IDF_TARGET_ESP32H2_BETA_VERSION_2 # ESP32H2-TODO: IDF-3378
option env="IDF_ENV_FPGA"
config IDF_TARGET_ARCH_RISCV
|
Remove length checks to a number of core functions.
This lets them be more generic and implemented over a wider range of
data types, such as fibers. | (defn true? "Check if x is true." [x] (= x true))
(defn false? "Check if x is false." [x] (= x false))
(defn nil? "Check if x is nil." [x] (= x nil))
-(defn empty? "Check if xs is empty." [xs] (= (length xs) 0))
+(defn empty? "Check if xs is empty." [xs] (= nil (next xs nil)))
# For macros, we define an imcomplete odd?... |
stm32/mboot: After sig verify, only write firmware-head if latter valid.
So that mboot can be used to program encrypted/signed firmware to regions
of flash that are not the main application, eg that are the filesystem. | @@ -61,10 +61,14 @@ static uint8_t uncompressed_buf[MBOOT_PACK_GZIP_BUFFER_SIZE] __attribute__((alig
// that a double-word write to flash can only be done once (due to ECC).
static uint8_t firmware_head[8];
+// Flag to indicate that firmware_head contains valid data.
+static bool firmware_head_valid;
+
void mboot_pack_... |
io CHANGE improve ssl IO error handling
Refs cesnet/netopeer2#358 | @@ -112,9 +112,10 @@ nc_read(struct nc_session *session, char *buf, size_t count, uint32_t inact_time
/* read via OpenSSL */
r = SSL_read(session->ti.tls, buf + readd, count - readd);
if (r <= 0) {
- int x;
- switch (x = SSL_get_error(session->ti.tls, r)) {
+ int e;
+ switch (e = SSL_get_error(session->ti.tls, r)) {
ca... |
Fix server Initial ACK has PADDING | @@ -1755,9 +1755,9 @@ static ssize_t conn_write_handshake_ack_pkt(ngtcp2_conn *conn, uint8_t *dest,
*/
static ssize_t conn_write_handshake_ack_pkts(ngtcp2_conn *conn, uint8_t *dest,
size_t destlen,
- int require_padding,
ngtcp2_tstamp ts) {
ssize_t res = 0, nwrite = 0;
+ int require_padding;
if (conn->hs_pktns.crypto.t... |
enable CLEANUP of tmpdir, remove debugging | @@ -77,7 +77,7 @@ if (! -d $tmp_path) {
File::Path::make_path($tmp_path) || die("Unable to create $tmp_path\n");
}
-my $tmp_dir = File::Temp::tempdir(CLEANUP => 0, DIR=> $tmp_path) || MYERROR("Unable to create temporary directory");
+my $tmp_dir = File::Temp::tempdir(CLEANUP => 1, DIR=> $tmp_path) || MYERROR("Unable to... |
zephyr/include/emul/tcpc/emul_tcpci_partner_drp.h: Format with clang-format
BRANCH=none
TEST=none | @@ -55,8 +55,8 @@ struct tcpci_drp_emul_data {
*
* @return Pointer to USB-C DRP extension
*/
-struct tcpci_partner_extension *tcpci_drp_emul_init(
- struct tcpci_drp_emul_data *data,
+struct tcpci_partner_extension *
+tcpci_drp_emul_init(struct tcpci_drp_emul_data *data,
struct tcpci_partner_data *common_data,
enum pd_... |
Throw assert error if extension string is too long
See function pocl_cl_name_to_str in clGetPlatformInfo.c | @@ -154,7 +154,10 @@ pocl_cl_name_version_to_str (char *output, size_t limit)
// space + NULL
size_t len = strlen (pocl_platform_extensions[i].name);
if (len + 2 > remain)
+ {
+ assert (!"platform extension name does not fit into output array");
break;
+ }
if (i > 0)
{
|
correct jq compile error path | @@ -276,11 +276,13 @@ apr_byte_t oidc_authz_match_claims_expr(request_rec *r,
const char * const attr_spec, const json_t * const claims) {
apr_byte_t rv = FALSE;
- oidc_debug(r, " ### enter: '%s' ###", attr_spec);
+ oidc_debug(r, "enter: '%s'", attr_spec);
jq_state *jq = jq_init();
- if (jq_compile(jq, attr_spec) == 0)... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.