message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Use ROCM_LLVM for examples in run_rocm_test.sh. | @@ -42,9 +42,13 @@ fi
# Parent dir should be ROCm base dir.
AOMPROCM=$AOMP/..
export AOMPROCM
-unset ROCM_PATH
echo AOMPROCM= $AOMPROCM
+# Set ROCM_LLVM for examples
+export ROCM_LLVM=$AOMP
+
+#unset ROCM_PATH
+
# Use bogus path to avoid using target.lst, a user-defined target list
# used by rocm_agent_enumerator.
expo... |
Add more SceKernelAllocMemBlockAttr info | @@ -25,24 +25,40 @@ typedef enum SceKernelMemBlockType {
SCE_KERNEL_MEMBLOCK_TYPE_RW_UNK0 = 0x6020D006
} SceKernelMemBlockType;
-#define SCE_KERNEL_ALLOC_MEMBLOCK_ATTR_HAS_PADDR 0x00000002U
-#define SCE_KERNEL_ALLOC_MEMBLOCK_ATTR_HAS_ALIGNMENT 0x00000004U
-#define SCE_KERNEL_ALLOC_MEMBLOCK_ATTR_HAS_MIRROR_BLOCKID 0x000... |
Call the proper GLES2Loader in GLES; | @@ -911,8 +911,13 @@ static void lovrGpuSetViewports(float* viewport, uint32_t count) {
// GPU
void lovrGpuInit(bool srgb, getProcAddressProc getProcAddress) {
-#ifndef LOVR_WEBGL
+#ifdef LOVR_GL
gladLoadGLLoader((GLADloadproc) getProcAddress);
+#elif defined(LOVR_GLES)
+ gladLoadGLES2Loader((GLADloadproc) getProcAddre... |
bugfix: correct typo in maxbytes option | @@ -76,7 +76,7 @@ stats -> cflags += -DT4P4S_STATS=${stats}
p4rt -> cflags += -DT4P4S_P4RT
lineno -> cflags += -DT4P4S_DEBUG_LINENO
lto -> cflags += -Dflto=thin
-maxbytes -> cflags += -DT4P4S_DEBUG_PKT_MAXBYTES={maxbytes}
+maxbytes -> cflags += -DT4P4S_DEBUG_PKT_MAXBYTES=${maxbytes}
consts -> cflags += -DTEST_CONST_ENT... |
Get the number of polygons during sync | #include <maya/MFnDagNode.h>
#include <maya/MFnIntArrayData.h>
+#include <maya/MFnMesh.h>
#include <maya/MFnNumericAttribute.h>
#include <maya/MFnSingleIndexedComponent.h>
#include <maya/MFnStringArrayData.h>
@@ -302,13 +303,19 @@ SyncOutputGeometryPart::createOutputMesh(
// extra attributes.
partMeshFn.findPlug("outMe... |
ci: add cancellation job to github action | @@ -10,6 +10,11 @@ env:
HOMEBREW_NO_INSTALL_CLEANUP: 1
jobs:
+ cancel:
+ name: auto-cancellation-running-action
+ runs-on: macos-11
+ steps:
+ - uses: fauguste/auto-cancellation-running-action@0.1.4
build:
# The CMake configure and build commands are platform agnostic and should work equally
# well on Windows or Mac. Y... |
Fix cmake-configure failure if VISIT_VTKH_DIR not defined. | @@ -1435,7 +1435,9 @@ IF(NOT VISIT_BUILD_MINIMAL_PLUGINS OR VISIT_SELECTED_DATABASE_PLUGINS)
INCLUDE(${VISIT_SOURCE_DIR}/CMake/FindVisus.cmake)
# Configure VTKh support.
+ if(VISIT_VTKH_DIR)
INCLUDE(${VISIT_VTKH_DIR}/lib/VTKhConfig.cmake)
+ endif()
# Configure GFortran support.
INCLUDE(${VISIT_SOURCE_DIR}/CMake/FindGFo... |
precert doesn't work when configured no-ct, don't try to test it then | @@ -13,6 +13,7 @@ use warnings;
use POSIX;
use File::Path 2.00 qw/rmtree/;
use OpenSSL::Test qw/:DEFAULT cmdstr srctop_file/;
+use OpenSSL::Test::Utils;
setup("test_ca");
@@ -42,6 +43,9 @@ plan tests => 5;
ok(run(perlapp(["CA.pl", "-verify", "newcert.pem"])),
'verifying new certificate');
+ skip "CT not configured, can... |
Fix an issue in OTA Agent task event loop | @@ -2393,7 +2393,7 @@ static void prvOTAAgentTask( void * pvUnused )
for( ; ; )
{
/* Receive the next event form the OTA event queue to process . */
- if( xQueueReceive( xOTA_Agent.xOTA_EventQueue, &xEventMsg, 0 ) == pdTRUE )
+ if( xQueueReceive( xOTA_Agent.xOTA_EventQueue, &xEventMsg, portMAX_DELAY ) == pdTRUE )
{
/* ... |
http_client: validate header key/val lengths | @@ -660,6 +660,10 @@ int flb_http_add_header(struct flb_http_client *c,
int new_size;
char *tmp;
+ if (key_len < 1 || val_len < 1) {
+ return -1;
+ }
+
/*
* The new header will need enough space in the buffer:
*
|
mbedTLS: Remove some C99-style intermingled variable declarations | @@ -376,6 +376,7 @@ _libssh2_mbedtls_rsa_new_private(libssh2_rsa_ctx **rsa,
{
int ret;
mbedtls_pk_context pkey;
+ mbedtls_rsa_context *pk_rsa;
*rsa = (libssh2_rsa_ctx *) LIBSSH2_ALLOC(session, sizeof(libssh2_rsa_ctx));
if(*rsa == NULL)
@@ -393,7 +394,7 @@ _libssh2_mbedtls_rsa_new_private(libssh2_rsa_ctx **rsa,
return -... |
build - less verbose gphdfs ivy retrieve | description="--> Retrieve Ivy-managed artifacts for the compile configurations">
<ivy:settings id="basic.settings" file="ivysettings.xml" />
<ivy:retrieve settingsRef="basic.settings" pattern="${build.ivy.lib.dir}/${ivy.artifact.retrieve.pattern}"
- sync="true" conf="${gpgnet.configuration}"/>
+ sync="true" log="quiet"... |
dm: fix memory free issue for xhci
remove uninitialized variable "dir", then make sure
"xfer->data","xfer->data[i].hcb","xfer->reqs" free correctly.
Acked-by: Yu Wang | @@ -1555,7 +1555,7 @@ pci_xhci_alloc_usb_xfer(struct pci_xhci_dev_emu *dev, int epid)
struct usb_xfer *xfer;
struct xhci_dev_ctx *dev_ctx;
struct xhci_endp_ctx *ep_ctx;
- int dir, max_blk_cnt, i = 0;
+ int max_blk_cnt, i = 0;
uint8_t type;
if (!dev)
@@ -1585,8 +1585,8 @@ pci_xhci_alloc_usb_xfer(struct pci_xhci_dev_emu ... |
Perl: fixed IO-Object duplication bug. | @@ -259,25 +259,16 @@ nxt_perl_psgi_layer_stream_arg(pTHX_ PerlIO * f,
CLONE_PARAMS *param, int flags)
{
SV *var;
- nxt_perl_psgi_io_arg_t *arg;
nxt_perl_psgi_layer_stream_t *unit_stream;
unit_stream = PerlIOSelf(f, nxt_perl_psgi_layer_stream_t);
-
- arg = (nxt_perl_psgi_io_arg_t *) (intptr_t) SvIV(SvRV(unit_stream->va... |
faster docker build for safety replay | @@ -8,13 +8,3 @@ cd capnproto-c++-0.6.1
make -j4
make install
-cd ..
-git clone https://github.com/commaai/c-capnproto.git
-cd c-capnproto
-git checkout 2e625acacf58a5f5c8828d8453d1f8dacc700a96
-git submodule update --init --recursive
-autoreconf -f -i -s
-CFLAGS="-fPIC" ./configure --prefix=/usr/local
-make -j4
-make ... |
config-tools: board inspector does not exit if a usb device is unplugged
Board inspector may throw an error if a usb device is unplugged or
disconnected while extracting usb device information. Print out the
debug message and continue parsing. | # SPDX-License-Identifier: BSD-3-Clause
#
-import os, re
+import os, re, logging
from extractors.helpers import add_child, get_node
@@ -17,6 +17,7 @@ def extract(args, board_etree):
if m:
d = m.group(0)
devpath = os.path.join(USB_DEVICES_PATH, d)
+ try:
with open(os.path.join(devpath, 'devnum'), 'r') as f:
devnum = f.r... |
common/usb_port_power_dumb.c: Format with clang-format
BRANCH=none
TEST=none | @@ -75,14 +75,13 @@ usb_port_command_set_mode(struct host_cmd_handler_args *args)
{
const struct ec_params_usb_charge_set_mode *p = args->params;
- if (usb_charge_set_mode(p->usb_port_id, p->mode,
- p->inhibit_charge) != EC_SUCCESS)
+ if (usb_charge_set_mode(p->usb_port_id, p->mode, p->inhibit_charge) !=
+ EC_SUCCESS)
... |
Fortran: Bug in grib_f_get_error_string | @@ -2181,7 +2181,7 @@ int grib_f_get_error_string_(int* err, char* buf, int len){
const char* err_msg = grib_get_error_message(*err);
const size_t erlen = strlen(err_msg);
if( len < erlen) return GRIB_ARRAY_TOO_SMALL;
- strncpy(buf, err_msg,(size_t)len);
+ strncpy(buf, err_msg, (size_t)erlen); /* ECC-1488 */
return GRI... |
fix doc/dev/README.md | @@ -10,7 +10,7 @@ It complements the man pages found [here](/doc/help).
## Concepts
-- [KDB Contracts](contracts.md)
+- [KDB Contracts](kdb-contracts.md)
- [Logging](logging.md)
- [Error Handling](error-handling.md)
- [Error Message](error-message.md)
|
docs: Use wbitt/network-multitool for dns guide.
Docker image praqma/network-multitool name changed to wbitt/network-multitool.
To be future proof, we change the name in the guide.
[0] | @@ -23,7 +23,7 @@ POD TYPE QTYPE NAME
Run a pod on a different terminal and perform some DNS requests:
```bash
-$ kubectl -n demo run mypod -it --image=praqma/network-multitool -- /bin/sh
+$ kubectl -n demo run mypod -it --image=wbitt/network-multitool -- /bin/sh
# nslookup www.microsoft.com
# nslookup www.google.com
#... |
check the whole 32bit address. | @@ -29,13 +29,24 @@ class program_over_testbed(object):
# check bootload backdoor is configured correctly
bootloader_backdoor_enabled = False
+ extended_linear_address_found = False
with open(image_path,'r') as f:
for line in f:
+
+ # looking for data at address 0027FFD4
+ # refer to: https://en.wikipedia.org/wiki/Inte... |
Update test_sysfs.py | -# Copyright(c) 2019, Intel Corporation
+# Copyright(c) 2020, Intel Corporation
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
|
svml: fix portable fallback for simde_x_mm512_deg2rad_{pd,ps} | @@ -2190,8 +2190,8 @@ simde_x_mm512_deg2rad_ps(simde__m512 a) {
r_.f32 = a_.f32 * SIMDE_MATH_PI_OVER_180F;
#else
SIMDE_VECTORIZE
- for (size_t i = 0 ; i < (sizeof(r_.m256) / sizeof(r_.m256[0])) ; i++) {
- r_.m256[i] = simde_x_mm256_deg2rad_ps(a_.m256[i]);
+ for (size_t i = 0 ; i < (sizeof(r_.f32) / sizeof(r_.f32[0])) ;... |
enabling more notifications for Travis. We can turn off successes later afte we know things are working | @@ -25,4 +25,5 @@ notifications:
email:
recipients:
- istopwg-ippsample-dev@pwg.org
-
\ No newline at end of file
+ on_success: always # default: change
+ on_failure: always # default: always
\ No newline at end of file
|
gre: update gre.api with explicit types
Type: refactor | option version = "2.0.0";
+import "vnet/interface_types.api";
import "vnet/ip/ip_types.api";
/** \brief A GRE tunnel type
@@ -42,13 +43,11 @@ typedef gre_tunnel
{
u32 client_index;
u32 context;
- u8 is_add;
- u8 is_ipv6;
u16 session_id;
vl_api_gre_tunnel_type_t type;
u32 instance;
u32 outer_fib_id;
- u32 sw_if_index;
+... |
Utilities: Unmount ESP after copying for more security | @@ -67,6 +67,7 @@ UUID="$("${nvram}" 4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:boot-path | /usr/bin/sed
if [ "$(printf "${UUID}" | /usr/bin/wc -c)" -eq 36 ] && [ -z "$(echo "${UUID}" | /usr/bin/sed 's/[-0-9A-F]//g')" ]; then
/usr/sbin/diskutil mount "${UUID}" || abort "Failed to mount ${UUID}!"
/bin/cp ./nvram.plist "$(/usr... |
neon: fix vec4_muladds (critical) | @@ -602,7 +602,7 @@ glm_vec4_muladds(vec4 a, float s, vec4 dest) {
_mm_set1_ps(s))));
#elif defined(CGLM_NEON_FP)
vst1q_f32(dest, vaddq_f32(vld1q_f32(dest),
- vsubq_f32(vld1q_f32(a),
+ vmulq_f32(vld1q_f32(a),
vdupq_n_f32(s))));
#else
dest[0] += a[0] * s;
|
options/ansi: Implement mktime | @@ -48,9 +48,8 @@ double difftime(time_t a, time_t b) {
return a - b;
}
-time_t mktime(struct tm *) {
- __ensure(!"Not implemented");
- __builtin_unreachable();
+time_t mktime(struct tm *tm) {
+ return timegm(tm);
}
/* There is no other implemented value than TIME_UTC; all other values
|
OcBootManagementLib: Sync with EfiPkg | @@ -988,7 +988,7 @@ OcFillBootEntry (
if (!IsLoadHandle) {
Status = BootPolicy->GetBootFileEx (
Handle,
- APPLE_BOOT_POLICY_MODE_1,
+ BootPolicyOk,
&DevicePath
);
} else {
@@ -1105,7 +1105,7 @@ InternalGetFirstDeviceBootFilePath (
Status = BootPolicy->GetBootFileEx (
HandleBuffer[Index],
- APPLE_BOOT_POLICY_MODE_1,
+ B... |
time: fix CI error | @@ -35,7 +35,7 @@ static int is_valid_format(int fmt)
static int _flb_time_get(flb_time *tm)
{
-#if __STDC_VERSION__ >= 201112L
+#if __STDC_VERSION__ >= 201112L && defined TIME_UTC
/* C11 supported! */
return timespec_get(tm, TIME_UTC);
#else /* __STDC_VERSION__ */
|
I've seen this test fail a few times in the past, but only on CI...
adding prints to see what we get, so we may find the issue in the future. | local f = field.get("flags")
configset.store(cset, f, { "Symbols", "WinMain", "MFC" })
configset.remove(cset, f, { "WinMain" })
- test.isequal({ "Symbols", "MFC" }, configset.fetch(cset, f, {}))
+
+ local result = configset.fetch(cset, f, {})
+ test.print(table.tostring(result))
+ test.isequal({ "Symbols", "MFC" }, res... |
amend from 5_MS to 4_MS. I had misunderstanding that Linux kernel constant HZ is 100, 200 or 1000. But it should have been 100, 250 or 1000 | #if !defined(MRBC_TICK_UNIT)
#define MRBC_TICK_UNIT_1_MS 1
#define MRBC_TICK_UNIT_2_MS 2
-#define MRBC_TICK_UNIT_5_MS 5
+#define MRBC_TICK_UNIT_4_MS 4
#define MRBC_TICK_UNIT_10_MS 10
// You may have to configure 2 ms or larger if you use
// POSIX or microcontroller whose native tick time is
|
[hg] revert hg client release
Note: mandatory check (NEED_CHECK) was skipped | },
"hg": {
"formula": {
- "sandbox_id": [335981402, 335981414, 74450064],
+ "sandbox_id": [302223618, 302223634, 74450064],
"match": "Hg"
},
"executable": {
|
kernel: x86_64: fix offset calculation in page_mappings_modify_flags | @@ -770,6 +770,8 @@ errval_t page_mappings_modify_flags(struct capability *mapping, size_t offset,
return SYS_ERR_VNODE_TYPE;
}
assert(type_is_vnode(leaf_pt->cap.type));
+ // add first pte location from mapping cap to user supplied offset
+ offset += info->entry;
errval_t err;
err = generic_modify_flags(leaf_pt, offset... |
Added per file rtti generation for VS | m.basicRuntimeChecks,
m.exceptionHandling,
m.compileAsManaged,
+ m.runtimeTypeInfo,
}
else
return {
end
end
- function m.runtimeTypeInfo(cfg)
+ function m.runtimeTypeInfo(cfg, condition)
if cfg.rtti == p.OFF and cfg.clr == p.OFF then
- m.element("RuntimeTypeInfo", nil, "false")
+ m.element("RuntimeTypeInfo", condition,... |
pydiag: Restore help option in argparse usage
Check for --help and print help message.
Also add a small description + epilog indicating which mode is currently
chosen. Default mode is lpbk1. | @@ -228,6 +228,14 @@ class diagtest(object):
parser = self._parser.add_argument_group(self._mode)
self.add_arguments(parser)
self.args, _ = self._parser.parse_known_args(in_args)
+ if self.args.help:
+ self._parser.description = '''
+ fpgadiag testing tool for NLB (native loopback) accelerator.'''
+ self._parser.epilog... |
[CI] Add license | -# Copyright 2019 ETH Zurich and University of Bologna.
+# Copyright 2020 ETH Zurich and University of Bologna.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
|
Initialize animation track alphas properly; | @@ -30,6 +30,7 @@ Animator* lovrAnimatorCreate(AnimationData* animationData) {
.time = 0,
.speed = 1,
.priority = 0,
+ .alpha = 1,
.playing = false,
.looping = false
};
@@ -184,9 +185,11 @@ bool lovrAnimatorEvaluate(Animator* animator, const char* bone, mat4 transform)
}
}
+ if (touched) {
mat4_translate(transform, mix... |
bio: add a malloc failed error to BIO_print | @@ -835,9 +835,12 @@ doapr_outch(char **sbuffer,
*sbuffer = NULL;
} else {
char *tmpbuf;
+
tmpbuf = OPENSSL_realloc(*buffer, *maxlen);
- if (tmpbuf == NULL)
+ if (tmpbuf == NULL) {
+ ERR_raise(ERR_LIB_BIO, ERR_R_MALLOC_FAILURE);
return 0;
+ }
*buffer = tmpbuf;
}
}
@@ -929,6 +932,5 @@ int BIO_vsnprintf(char *buf, size_t... |
hdata: Make FSPv1 work again
One less thing to work around for those crazy enough to try. | @@ -55,6 +55,7 @@ static enum sp_type find_service_proc_type(const struct HDIF_common_hdr *spss,
flags = be16_to_cpu(sp_impl->func_flags);
switch (hw_ver) {
+ case 0x1:
case 0x2: /* We only support FSP2 */
sp_type = SP_FSP;
break;
|
Update doc/tutorials/using_partition_mode_on_nuc.rst | @@ -161,7 +161,7 @@ Update ACRN Hypervisor Image
.. code-block:: none
- $ make hypervisor BOARD_FILE=whl-ipc-i7 SCENARIO_FILE=logical_partition RELEASE=0
+ $ make hypervisor BOARD=whl-ipc-i7 SCENARIO=logical_partition RELEASE=0
.. note::
The ``acrn.bin`` will be generated to ``./build/hypervisor/acrn.bin``.
|
An abstract-based version of URLVariables for v4. Hopefully fixes | package nme.net;
-#if (!flash)
-
+#if (!flash && (haxe_ver<4))
@:nativeProperty
-class URLVariables #if (haxe_ver<4) implements Dynamic #end
+class URLVariables implements Dynamic
{
public function new(?inEncoded:String)
{
@@ -42,6 +41,80 @@ class URLVariables #if (haxe_ver<4) implements Dynamic #end
}
}
+#elseif (!fla... |
nimble/ll: Use RPA regardless of address resolution state when scanning
When scanning and local IRK is present we should use RPA regardless
of address resolution state (as this controls peer's address resolution
not local RPA generation). | @@ -353,10 +353,12 @@ ble_ll_scan_req_pdu_prepare(struct ble_ll_scan_sm *scansm, uint8_t *adv_addr,
rl = &g_ble_ll_resolv_list[rpa_index];
}
} else {
- if (ble_ll_resolv_enabled()) {
+ /* we look for RL entry to generate local RPA regardless if
+ * resolving is enabled or not (as this is is for local RPA
+ * not peer R... |
tests: add compiler test for masked floating point block vector store | #include <stdint.h>
#include <stdio.h>
-veci16_t global_vec;
+veci16_t global_ivec;
+vecf16_t global_fvec;
int main()
{
- veci16_t source_vals = {
+ veci16_t isource_vals = {
0xf9b831b8,
0x9f7b4265,
0xa70a45a2,
@@ -40,9 +41,9 @@ int main()
0xdf8d2b3a
};
- __builtin_nyuzi_block_storei_masked(&global_vec, source_vals, 0x... |
core/cache: remove unused parameter and fix parameter name | @@ -764,7 +764,7 @@ static void elektraCacheCutMeta (KDB * handle)
keyDel (parentKey);
}
-static void elektraCacheLoad (KDB * handle, Split * split, KeySet * cache, Key * parentkey, Key * initialParent, Key * cacheParent)
+static void elektraCacheLoad (KDB * handle, Split * split, KeySet * cache, Key * parentKey, Key *... |
Add debug message. Also evaluate grib_handle_of_accessor once | @@ -185,10 +185,10 @@ static int pack_double(grib_accessor* a, const double* val, size_t* len)
{
grib_accessor_g2latlon* self = (grib_accessor_g2latlon*)a;
int ret = 0;
-
double grid[6];
size_t size = 6;
double new_val = *val;
+ grib_handle* hand = grib_handle_of_accessor(a);
if (*len < 1) {
ret = GRIB_ARRAY_TOO_SMALL;... |
fix Error: include/graphics/twm4nx/apps/ccalibration.hxx:149:34: error: private field 'm_stop' is not used [-Werror,-Wunused-private-field] | @@ -146,7 +146,6 @@ namespace Twm4Nx
struct nxgl_point_s m_touchPos; /**< This is the last touch position */
volatile uint8_t m_calthread; /**< Current calibration display state (See ECalibThreadState)*/
uint8_t m_calphase; /**< Current calibration display state (See ECalibrationPhase)*/
- bool m_stop; /**< True: We ha... |
bump hdf5 to 1.10.1 | Summary: A general purpose library and file format for storing scientific data
Name: %{pname}-%{compiler_family}%{PROJ_DELIM}
-Version: 1.10.0
+Version: 1.10.1
Release: 1%{?dist}
License: Hierarchical Data Format (HDF) Software Library and Utilities License
Group: %{PROJ_NAME}/io-libs
URL: http://www.hdfgroup.org/HDF5
... |
fix memory leak on DeepTiledInput files: compressor for sample count table wasn't deleted | @@ -288,6 +288,7 @@ DeepTiledInputFile::Data::Data (int numThreads):
multiPartBackwardSupport(false),
numThreads(numThreads),
memoryMapped(false),
+ sampleCountTableComp(NULL),
_streamData(NULL),
_deleteStream(false)
{
@@ -313,6 +314,8 @@ DeepTiledInputFile::Data::~Data ()
for (size_t i = 0; i < slices.size(); i++)
del... |
sched_getaffinity(2) should return number of bytes written - glibc zeroes out the rest. | @@ -1236,11 +1236,10 @@ sysreturn eventfd2(unsigned int count, int flags)
sysreturn sched_getaffinity(int pid, u64 cpusetsize, cpu_set_t *mask)
{
- if (cpusetsize < sizeof(u64))
- return -EINVAL;
- if (mask)
- mask->mask[0] = 1ull; /* always cpu 0 */
- return 0;
+ if (!mask || cpusetsize < sizeof(mask->mask[0]))
+ retu... |
trace: fix style in flb_filter. | @@ -160,7 +160,9 @@ void flb_filter_do(struct flb_input_chunk *ic,
/* reset data content length */
#ifdef FLB_TRACE
- if (ic->trace) flb_trace_chunk_filter(ic->trace, &tm_start, &tm_finish, (void *)f_ins, "", 0);
+ if (ic->trace) {
+ flb_trace_chunk_filter(ic->trace, &tm_start, &tm_finish, (void *)f_ins, "", 0);
+ }
#e... |
Fix more critical regions. Cleans tests. | @@ -353,7 +353,9 @@ update_cache(struct module_qstate *qstate, int id)
log_err("Subnet cache insertion failed");
return;
}
+ lock_quick_lock(&sne->alloc.lock);
rep = reply_info_copy(qstate->return_msg->rep, &sne->alloc, NULL);
+ lock_quick_unlock(&sne->alloc.lock);
if (!rep) {
if (acquired_lock) lock_rw_unlock(&lru_ent... |
export.fish: set IDF_PATH without changing current working directory | @@ -6,15 +6,13 @@ function unset
end
function __main
+ set script_dir (dirname (readlink -m (status -f)))
+
if not set -q IDF_PATH
- set -gx IDF_PATH (cd (dirname (status -f)); and pwd)
+ set -gx IDF_PATH $script_dir
echo "Setting IDF_PATH to '$IDF_PATH'"
end
- set script_dir (cd (dirname (status -f)); and pwd)
- if te... |
Add description of good starting values for WSGIDaemonProcess options. | @@ -598,6 +598,37 @@ host, the following could be used::
...
</VirtualHost>
+For historical reasons and the inability to change existing behaviour when
+adding or changing features, many of the options to ``WSGIDaemonProcess``,
+especially those related to timeouts are not enabled by default. It is
+strongly recommende... |
Max width parameter; | @@ -56,9 +56,10 @@ void lovrFontPrint(Font* font, const char* str, float x, float y, float z, float
FontAtlas* atlas = &font->atlas;
float cx = 0;
- float cy = -lovrFontGetHeight(font);
+ float cy = -lovrFontGetHeight(font) / 2;
float u = atlas->width;
float v = atlas->height;
+ float scale = h / font->fontData->height... |
mtd Kconfig: Fix trivial typo | @@ -60,7 +60,7 @@ config MTD_PROGMEM
Those interfaces must be exported by chip-specific logic.
config MTD_FTL
- bool "Elable MTD ftl layer"
+ bool "Enable MTD ftl layer"
default n
---help---
Enable to support a MTD FTL layer.
|
Router: increased HTTP connection related limits. | @@ -1521,11 +1521,11 @@ nxt_router_conf_create(nxt_task_t *task, nxt_router_temp_conf_t *tmcf,
skcf->large_header_buffer_size = 8192;
skcf->large_header_buffers = 4;
skcf->body_buffer_size = 16 * 1024;
- skcf->max_body_size = 2 * 1024 * 1024;
- skcf->idle_timeout = 65000;
- skcf->header_read_timeout = 5000;
- skcf->bod... |
Update: further adjustments: | @@ -38,7 +38,7 @@ def pick_with_feedback(pickobj=None):
forward()
elif y_real_temp > closer_to_gripper:
forward()
- forward()
+ forward(0.2)
forward(0.2)
success = close_gripper() #gripper feedback
if success:
@@ -47,6 +47,8 @@ def pick_with_feedback(pickobj=None):
break
else:
print("//pick failed")
+ open_gripper()
+ ... |
status bar: replace ourContact prop | @@ -28,8 +28,9 @@ import useSettingsState, { selectCalmState } from '~/logic/state/settings';
const localSel = selectLocalState(['toggleOmnibox']);
const StatusBar = (props) => {
- const { ourContact, api, ship } = props;
+ const { api, ship } = props;
const history = useHistory();
+ const ourContact = useContactState(... |
Make sure object isn't a number before testing for the Hash flag | @@ -237,7 +237,7 @@ Object Type Identification
#endif
#define FIOBJ_IS_ALLOCATED(o) \
- ((o) && ((o)&1) == 0 && \
+ ((o) && ((o)&FIOBJECT_NUMBER_FLAG) == 0 && \
((o)&FIOBJECT_PRIMITIVE_FLAG) != FIOBJECT_PRIMITIVE_FLAG)
#define FIOBJ2PTR(o) ((void *)((o)&FIOBJECT_TYPE_MASK))
@@ -266,21 +266,22 @@ FIO_INLINE size_t fiobj... |
Add undocumented RunFileDlg flags (Vista+) | @@ -20,8 +20,10 @@ typedef BOOL (WINAPI *_IsImmersiveProcess)(
#define RFF_CALCDIRECTORY 0x0004
#define RFF_NOLABEL 0x0008
#define RFF_NOSEPARATEMEM 0x0020
+#define RFF_OPTRUNAS 0x0040
#define RFN_VALIDATE (-510)
+#define RFN_LIMITEDRUNAS (-511)
typedef struct _NMRUNFILEDLGW
{
|
moved away from deprecated XTAL_32768 | @@ -59,7 +59,7 @@ syscfg.vals:
NFFS_FLASH_AREA: FLASH_AREA_NFFS
COREDUMP_FLASH_AREA: FLASH_AREA_IMAGE_1
MCU_DCDC_ENABLED: 1
- XTAL_32768: 1
+ MCU_LFCLK_SOURCE: LFXO
BOOT_SERIAL_DETECT_PIN: 2 # Button BT_WAKE_UP
syscfg.vals.BLE_CONTROLLER:
|
Handle the getStringArray function
Tested-by: IoTivity Jenkins | @@ -1418,7 +1418,47 @@ const double* jni_rep_get_double_array(oc_rep_t *rep, const char *key, size_t *d
}
%}
%rename(repGetByteStringArray) oc_rep_get_byte_string_array;
-%rename(repGetStringArray) oc_rep_get_string_array;
+
+%typemap(in, numinputs=0, noblock=1) size_t *string_array_size {
+ size_t temp_string_array_si... |
Download fixed release | #!/usr/bin/env sh
+CATBOOST_RELEASE="0.24.4"
+
if [ ! -f "../../ya" ]
then
- git clone https://github.com/catboost/catboost && \
- CATBOOST_SRC_PATH="./catboost" ./build_model.sh && \
- rm -rf ./catboost && \
+ curl -L https://github.com/catboost/catboost/archive/v${CATBOOST_RELEASE}.tar.gz --output ./catboost.tar.gz &... |
ixfr-out, fix assertion for clang analyzer. | @@ -981,6 +981,8 @@ void ixfr_store_finish_data(struct ixfr_store* ixfr_store)
{
if(ixfr_store->data_trimmed)
return;
+ if(!ixfr_store->data)
+ return; /* data should be nonNULL, we are not cancelled */
ixfr_store->data_trimmed = 1;
/* put new serial SOA record after delrrs and addrrs */
|
tigertool: Migrate tigertool.py to python2/3 compatible
BRANCH=master
TEST=None | -#!/usr/bin/env python2
+#!/usr/bin/env python
# Copyright 2017 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Script to control tigertail USB-C Mux board."""
+# Note: This is a py2/3 compatible file.
+
import argpar... |
Remove unmatched braces in MessageBuffer pre tags | @@ -630,7 +630,7 @@ typedef void * MessageBufferHandle_t;
/**
* message_buffer.h
* <pre>
- * BaseType_t xMessageBufferIsFull( MessageBufferHandle_t xMessageBuffer ) );
+ * BaseType_t xMessageBufferIsFull( MessageBufferHandle_t xMessageBuffer );
* </pre>
*
* Tests to see if a message buffer is full. A message buffer is ... |
analysis workflow, install libevent for test. | @@ -26,6 +26,7 @@ jobs:
# clang_analysis: "yes"
- name: Clang on Linux, libevent, clang-analysis
os: ubuntu-latest
+ install_libevent: "yes"
config: "CC=clang --enable-debug --disable-flto --with-libevent"
make_test: "yes"
clang_analysis: "yes"
@@ -45,6 +46,9 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: false... |
testing: Check for render importing a file with an end tag. | @@ -283,6 +283,19 @@ class TestBadImport < TestCase
import tag_at_end
""")
+ # bad imported file (end tag from render origin)
+
+ t = Interpreter.with_targets(
+ @t_tag_at_end
+ )
+
+ assert_render_fails(t, """\
+ SyntaxError: Unexpected token '?>'.\n \
+ from tag_at_end.lily:1:\n\
+ """,
+ """<?lily import tag_at_end
... |
seq_cutoff: Ignore invalid streams | @@ -31,6 +31,12 @@ static int ocf_seq_cutoff_stream_cmp(struct ocf_rb_node *n1,
struct ocf_seq_cutoff_stream *stream2 = container_of(n2,
struct ocf_seq_cutoff_stream, node);
+ if (stream1->valid < stream2->valid)
+ return -1;
+
+ if (stream1->valid > stream2->valid)
+ return 1;
+
if (stream1->rw < stream2->rw)
return -... |
INI: fix formating | @@ -1154,7 +1154,8 @@ static void iniWriteMeta (FILE * fh, Key * key)
{
Key * meta = (Key *)keyCurrentMeta (key);
const char * name = keyName (meta);
- if (strncmp (name, "internal/", 9) && strcmp (name, "internal/ini/section") && strncmp (name, "comment", 7) && strncmp(name, "warnings/", 9) && strncmp(name, "error/", ... |
docs(key-press): Update for standardized keys
Replace existing HID Usage Tables link with links to the new codes documentation. | @@ -8,7 +8,18 @@ sidebar_label: Key Press
The most basic of behaviors, is the ability to send certain keycode presses and releases in response to activating
a certain key.
-For reference on keycode values, see pages 83-89 of the [USB HID Usage Tables](https://www.usb.org/document-library/hid-usage-tables-12).
+The cate... |
nimble/ll: Fix chanmap initialization | @@ -1642,7 +1642,8 @@ ble_ll_reset(void)
/* Enable all channels in channel map */
g_ble_ll_data.chan_map_num_used = BLE_PHY_NUM_DATA_CHANS;
- memset(g_ble_ll_data.chan_map, 0xff, BLE_LL_CHAN_MAP_LEN);
+ memset(g_ble_ll_data.chan_map, 0xff, BLE_LL_CHAN_MAP_LEN - 1);
+ g_ble_ll_data.chan_map[4] = 0x1f;
#if MYNEWT_VAL(BLE... |
Fix ifdef in capi.c for janet_getuinteger64 and janet_getinteger64 | @@ -260,7 +260,7 @@ int32_t janet_getinteger(const Janet *argv, int32_t n) {
}
int64_t janet_getinteger64(const Janet *argv, int32_t n) {
-#ifdef JANET_INTTYPES
+#ifdef JANET_INT_TYPES
return janet_unwrap_s64(argv[n]);
#else
Janet x = argv[n];
@@ -272,7 +272,7 @@ int64_t janet_getinteger64(const Janet *argv, int32_t n)... |
readme DOC mention transition manual | @@ -14,6 +14,12 @@ providing API) in C. The library is used e.g. in [libnetconf2](https://github.co
If you are interested in future plans announcements, please subscribe to the
[Future Plans issue](https://github.com/CESNET/libyang/issues/880).
+## Migration from libyang version 1 or older
+
+Look into the documentatio... |
Fix undefined behaviour in X509_NAME_cmp()
If the lengths of both names is 0 then don't attempt to do a memcmp.
Issue reported by Simon Friedberger, Robert Merget and Juraj Somorovsky. | @@ -173,7 +173,7 @@ int X509_NAME_cmp(const X509_NAME *a, const X509_NAME *b)
ret = a->canon_enclen - b->canon_enclen;
- if (ret)
+ if (ret != 0 || a->canon_enclen == 0)
return ret;
return memcmp(a->canon_enc, b->canon_enc, a->canon_enclen);
|
pmix: add project URL | @@ -17,6 +17,7 @@ Name: %{pname}%{PROJ_DELIM}
Version: 1.2.3
Release: 1%{?dist}
License: BSD
+URL: https://pmix.github.io/pmix/
Group: %{PROJ_NAME}/rms
Source: https://github.com/pmix/pmix/releases/download/v%{version}/pmix-%{version}.tar.bz2
Source1: OHPC_macros
|
Validate parser parameter to XML_SetUnparsedEntityDeclHandler | @@ -1500,6 +1500,7 @@ void XMLCALL
XML_SetUnparsedEntityDeclHandler(XML_Parser parser,
XML_UnparsedEntityDeclHandler handler)
{
+ if (parser != NULL)
unparsedEntityDeclHandler = handler;
}
|
OcConsoleLib: Replace invalid GOP on ConOut as seen on MacPro5,1 | @@ -405,14 +405,78 @@ OcProvideConsoleGop (
)
{
EFI_STATUS Status;
- VOID *Gop;
+ EFI_GRAPHICS_OUTPUT_PROTOCOL *OriginalGop;
+ EFI_GRAPHICS_OUTPUT_PROTOCOL *Gop;
+ UINTN HandleCount;
+ EFI_HANDLE *HandleBuffer;
+ UINTN Index;
- Gop = NULL;
- Status = gBS->HandleProtocol (gST->ConsoleOutHandle, &gEfiGraphicsOutputProtoc... |
Fix unit tests for mainUtils
Commit replaced too many usages
of "with self.lock as l" with "with self.lock"
This commit corrects the missing "with self.lock as l" problems to
ensure the unit tests pass
Authored-by: Tyler Ramer | @@ -24,7 +24,7 @@ class MainUtilsTestCase(GpTestCase):
self.assertEquals(False, os.path.exists(self.lockfile))
def test_lock_owned_by_parent(self):
- with self.lock:
+ with self.lock as l:
self.assertEquals(l.read_pid(), self.ppid)
@@ -34,7 +34,7 @@ class MainUtilsTestCase(GpTestCase):
self.lock.acquire()
def test_chil... |
Storing pointer to next buffer in chain before free the buffer.
This is required to avoid dereference of freed memory.
Found by Coverity (CID 353372). | @@ -172,11 +172,12 @@ nxt_buf_pool_free(nxt_buf_pool_t *bp, nxt_buf_t *b)
void
nxt_buf_pool_destroy(nxt_buf_pool_t *bp)
{
- nxt_buf_t *b;
+ nxt_buf_t *b, *n;
bp->destroy = 1;
- for (b = bp->free; b != NULL; b = b->next) {
+ for (b = bp->free; b != NULL; b = n) {
+ n = b->next;
nxt_buf_free(bp->mem_pool, b);
}
|
zoul: fix format specifiers | @@ -124,7 +124,7 @@ PROCESS_THREAD(test_remote_pm, ev, data)
*/
cycles = pm_get_num_cycles();
- printf("PM: cycle number %lu\n", cycles);
+ printf("PM: cycle number %" PRIu32 "\n", cycles);
if((cycles % 2) == 0) {
/* Set the timeout */
@@ -133,7 +133,7 @@ PROCESS_THREAD(test_remote_pm, ev, data)
TEST_LEDS_FAIL;
}
- pri... |
when flag is RT_DEVICE_FLAG_STREAM, paser '\n' break! | @@ -221,8 +221,11 @@ rt_inline int _serial_poll_rx(struct rt_serial_device *serial, rt_uint8_t *data,
*data = ch;
data ++; length --;
+ if(serial->parent.open_flag & RT_DEVICE_FLAG_STREAM)
+ {
if (ch == '\n') break;
}
+ }
return size - length;
}
|
Keep the imported classes sorted | @@ -19,7 +19,7 @@ This module is entirely based on the PSA API.
# limitations under the License.
import re
-from typing import Iterable, Optional, Tuple, Dict
+from typing import Dict, Iterable, Optional, Tuple
from mbedtls_dev.asymmetric_key_data import ASYMMETRIC_KEY_DATA
|
Expose signal, type, and status name arrays.
Makes it easier to print status stuff. | @@ -1261,6 +1261,9 @@ JANET_API int janet_verify(JanetFuncDef *def);
/* Pretty printing */
#define JANET_PRETTY_COLOR 1
JANET_API JanetBuffer *janet_pretty(JanetBuffer *buffer, int depth, int flags, Janet x);
+JANET_API const char *const janet_type_names[16];
+JANET_API const char *const janet_signal_names[14];
+JANET_... |
Clarify the gui::get_preferred_api const char** argument use
The const char** should be explicitly assigned from one of the
global choices. | @@ -100,6 +100,8 @@ typedef struct clap_plugin_gui {
// Returns true if the plugin has a preferred api.
// The host has no obligation to honor the plugin preferrence, this is just a hint.
+ // The const char **api variable should be explicitly assigned as a pointer to
+ // one of the CLAP_WINDOW_API_ constants defined ... |
Fix bad check of fee_amount_length | @@ -12,7 +12,7 @@ void copy_transaction_parameters(create_transaction_parameters_t* sign_transacti
memset(&stack_data, 0, sizeof(stack_data));
strncpy(stack_data.fullAddress, sign_transaction_params->destination_address, sizeof(stack_data.fullAddress));
if ((stack_data.fullAddress[sizeof(stack_data.fullAddress) - 1] !=... |
make clear that kadnode-ctl ping needs an ip-address | @@ -41,7 +41,7 @@ static const char* g_server_usage =
" status\n"
" lookup <query>\n"
" announce [<query>[:<port>] [<minutes>]]\n"
- " ping <addr>\n";
+ " ping <ip-addr>\n";
const char* g_server_usage_debug =
" blacklist <addr>\n"
|
Workaround for Tuya | @@ -545,6 +545,7 @@ const std::vector<Sensor::ButtonMap> Sensor::buttonMap(const QMap<QString, std::
if (m_buttonMap.empty())
{
const QString &modelid = item(RAttrModelId)->toString();
+ const QString &manufacturer = item(RAttrManufacturerName)->toString();
for (auto i = buttonMapForModelId.constBegin(); i != buttonMap... |
vppinfra: correct clib_bitmap_set() return comment
Fix a copy-n-paste issue that left clib_bitmap_set()'s return
type documentation incorrect. Chnage it to indicate that
the function returns a new pointer for the bitmap that could
be different due to a possible reallocation.
Type: docs | @@ -178,7 +178,7 @@ clib_bitmap_set_no_check (uword * a, uword i, uword new_value)
@param ai - pointer to the bitmap
@param i - the bit position to interrogate
@param value - new value for the bit
- @returns the old value of the bit
+ @returns the (possibly reallocated) bitmap object pointer
*/
always_inline uword *
cl... |
travis BUGFIX running commands in sudo login shell
With login shell (-i) it moves to root's home directory, so before
calling make command, it is necessaro to go into the previsou directory | @@ -60,7 +60,7 @@ jobs:
- cd cmocka-1.1.2 && mkdir build && cd build && cmake .. && make -j2 && sudo make install && cd ../..
- wget https://ftp.pcre.org/pub/pcre/pcre2-10.30.tar.gz
- tar -xzf pcre2-10.30.tar.gz
- - cd pcre2-10.30 && ./configure && make -j2 && sudo -i make install && cd ..
+ - cd pcre2-10.30 && ./confi... |
admin/docs: enable pbspro doc build on aarch64/sles | @@ -107,6 +107,9 @@ make ; %{parser} steps.tex > recipe.sh ; popd
pushd docs/recipes/install/sles12/aarch64/warewulf/slurm
make ; %{parser} steps.tex > recipe.sh ; popd
+pushd docs/recipes/install/sles12/aarch64/warewulf/pbspro
+make ; %{parser} steps.tex > recipe.sh ; popd
+
%install
%{__mkdir_p} %{buildroot}%{OHPC_PU... |
docs : updata BoAT_User_Guide_en.md
updata BoAT_User_Guide_en.md | @@ -364,6 +364,7 @@ The smart contract used by the demo and its ABI JSON file are placed in:
Before running Ethereum's Demo, you need to install the Ethereum node simulator ganache, as well as the Ethereum smart contract compilation deployment tool truffle, could visit this website: https://truffleframework.com .
+
Gan... |
Change PhAddListViewColumn DPI | @@ -98,7 +98,7 @@ INT PhAddListViewColumn(
LVCOLUMN column;
LONG dpiValue;
- dpiValue = PhGetDpiValue(ListViewHandle, NULL);
+ dpiValue = PhGetWindowDpi(ListViewHandle);
memset(&column, 0, sizeof(LVCOLUMN));
column.mask = LVCF_FMT | LVCF_WIDTH | LVCF_TEXT | LVCF_SUBITEM | LVCF_ORDER;
|
MPLS tunnel: don't reuse hw-indices
this is the same behaviour as other tunnel types | */
static mpls_tunnel_t *mpls_tunnel_pool;
-/**
- * @brief Pool of free tunnel SW indices - i.e. recycled indices
- */
-static u32 * mpls_tunnel_free_hw_if_indices;
-
/**
* @brief DB of SW index to tunnel index
*/
@@ -594,7 +589,8 @@ vnet_mpls_tunnel_del (u32 sw_if_index)
mt->mt_sibling_index);
dpo_reset(&mt->mt_l2_lb)... |
Minor fixes of lwre | @@ -689,7 +689,7 @@ void re_release(struct re *re)
{
if (re->matches) RE_FREE(re, re->matches);
if (re->code.first) re_program_free(re, &re->code);
- memset(re, 0, sizeof(re));
+ memset(re, 0, sizeof(*re));
}
void re_reset(struct re *re, char *expression)
@@ -708,11 +708,14 @@ void re_free(struct re *re)
static int re_... |
evp_test: use correct deallocation for EVP_CIPHER | @@ -568,7 +568,7 @@ static void cipher_test_cleanup(EVP_TEST *t)
for (i = 0; i < AAD_NUM; i++)
OPENSSL_free(cdat->aad[i]);
OPENSSL_free(cdat->tag);
- EVP_CIPHER_meth_free(cdat->fetched_cipher);
+ EVP_CIPHER_free(cdat->fetched_cipher);
}
static int cipher_test_parse(EVP_TEST *t, const char *keyword,
|
fix orc table create information bug | @@ -2050,7 +2050,11 @@ CreateCommandTag(Node *parsetree)
break;
case T_CreateExternalStmt:
- tag = "CREATE EXTERNAL TABLE";
+ {
+ CreateExternalStmt *stmt = (CreateExternalStmt *) parsetree;
+
+ tag = (stmt->isexternal) ? "CREATE EXTERNAL TABLE" : "CREATE TABLE";
+ }
break;
case T_CreateForeignStmt:
|
filter_rewrite_tag: add NULL check(#4246) | @@ -181,9 +181,14 @@ static int process_config(struct flb_rewrite_tag *ctx)
static int is_wildcard(char* match)
{
- size_t len = strlen(match);
+ size_t len;
size_t i;
+ if (match == NULL) {
+ return 0;
+ }
+ len = strlen(match);
+
/* '***' should be ignored. So we check every char. */
for (i=0; i<len; i++) {
if (match... |
GitHub Action runner started suddenly experiencing hang on build of Google Benchmark | @@ -52,9 +52,9 @@ if ERRORLEVEL 1 (
)
REM Install it
-vcpkg integrate install
vcpkg install gtest:x64-windows
-vcpkg install --overlay-ports=%~dp0\ports benchmark:x64-windows
+REM Temporarily disable the build of Google Benchmark due to GitHub Actions runner 'hang' on it
+REM vcpkg install --overlay-ports=%~dp0\ports b... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.