message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Try Francois travis fix | @@ -18,9 +18,11 @@ matrix:
python: 3.6
env: TOXENV=py36
- os: osx
+ osx_image: xcode8.3
language: generic
env: TOXENV=py27
- os: osx
+ osx_image: xcode8.3
language: generic
env: TOXENV=py36
install:
|
Modify flash type for sssrw mount to smartfs for artik055s
Set sssrw mount devname to proper point
Mdofiy partition name from none to smartfs properly | @@ -236,7 +236,7 @@ CONFIG_ARTIK05X_AUTOMOUNT_USERFS=y
CONFIG_ARTIK05X_AUTOMOUNT_USERFS_DEVNAME="/dev/smart0p8"
CONFIG_ARTIK05X_AUTOMOUNT_USERFS_MOUNTPOINT="/mnt"
CONFIG_ARTIK05X_AUTOMOUNT_SSSRW=y
-CONFIG_ARTIK05X_AUTOMOUNT_SSSRW_DEVNAME="/dev/smart0p10"
+CONFIG_ARTIK05X_AUTOMOUNT_SSSRW_DEVNAME="/dev/smart0p11"
CONFIG_... |
fix mman.h ref | @@ -23,7 +23,12 @@ terms of the MIT license. A copy of the license can be found in the file
#include <sys/mman.h> // mmap
#include <unistd.h> // sysconf
#if defined(__linux__)
+#include <features.h>
+#if defined(__GLIBC__)
#include <linux/mman.h> // linux mmap flags
+#else
+#include <sys/mman.h>
+#endif
#endif
#if defi... |
use a static commit hash instead of `master` for *.d files | @@ -5,6 +5,8 @@ SET(CMAKE_CXX_STANDARD 11)
SET(CMAKE_CXX_STANDARD_REQUIRED ON)
SET(CMAKE_CXX_EXTENSIONS OFF)
+SET(H2O_COMMIT "fb0d55a")
+
PROJECT(h2olog)
IF(NOT CMAKE_BUILD_TYPE)
@@ -38,13 +40,13 @@ SET(SOURCE_FILES
ADD_CUSTOM_COMMAND(
OUTPUT "${CMAKE_SOURCE_DIR}/quicly-probes.d"
- COMMAND curl -sLf 'https://raw.github... |
dm: Remove hardcode vm_config size from vm_get_config()
vm_config size can be calced by platform_info.sw.max_vms *
platform_info.sw.vm_config_size.
Change vm_get_config() to call IOCTL ACRN_IOCTL_GET_PLATFORM_INFO
twice, first to get platform_info, second to get the vm_configs
content. | @@ -673,29 +673,36 @@ vm_irqfd(struct vmctx *ctx, struct acrn_irqfd *args)
int
vm_get_config(struct vmctx *ctx, struct acrn_vm_config_header *vm_cfg, struct acrn_platform_info *plat_info)
{
-#define VM_CFG_BUFF_SIZE 0x8000
int i, err = 0;
- uint8_t *configs_buff;
+ int configs_size;
+ uint8_t *configs_buff = NULL;
stru... |
Fix widget bugs | @@ -199,10 +199,12 @@ struct Provider: IntentTimelineProvider {
executingScripts.remove(at: i)
}
ProcessInfo.processInfo.performExpiringActivity(withReason: "Because I want to") { (expired) in
- if widgetsQueue <= 0 {
+
if !expired {
Thread.sleep(forTimeInterval: 3)
}
+
+ if widgetsQueue <= 0 {
exit(0)
}
}
@@ -240,7 +2... |
Run CI scripts without AVM_DISABLE_FP=on with OTP-22+ | @@ -93,19 +93,15 @@ jobs:
- otp: "21"
elixir_version: "1.7"
- cmake_opts: ""
- otp: "22"
elixir_version: "1.8"
- cmake_opts: "-DAVM_DISABLE_FP=on"
- otp: "23"
- elixir_version: "1.10.4"
- cmake_opts: "-DAVM_DISABLE_FP=on"
+ elixir_version: "1.11"
- otp: "24"
- elixir_version: "1.11"
- cmake_opts: "-DAVM_DISABLE_FP=on"
... |
Core: allow NULL argument to stored_namemap_free(). | @@ -72,10 +72,12 @@ static void stored_namemap_free(void *vnamemap)
{
OSSL_NAMEMAP *namemap = vnamemap;
+ if (namemap != NULL) {
/* Pretend it isn't stored, or ossl_namemap_free() will do nothing */
namemap->stored = 0;
ossl_namemap_free(namemap);
}
+}
static const OPENSSL_CTX_METHOD stored_namemap_method = {
stored_na... |
Fix symbol shadow | @@ -117,16 +117,16 @@ static void parseit(void)
static int shouldfail(void)
{
int roll = (int)(random() % 100);
- int shouldfail = roll < md_fail_percent;
+ int shoulditfail = roll < md_fail_percent;
char buff[80];
if (md_tracefd > 0) {
BIO_snprintf(buff, sizeof(buff),
"%c C%ld %%%d R%d\n",
- shouldfail ? '-' : '+', md... |
[mod_auth] http_auth_const_time_memeq improvement
employ volatile, which might matter with some compilers (or might not)
explicitly check that string lengths match
(or else might match string where last char of short string matches
repeated chars in longer string) | @@ -56,11 +56,22 @@ int http_auth_const_time_memeq (const char *a, const size_t alen, const char *b,
/* constant time memory compare, unless compiler figures it out
* (similar to mod_secdownload.c:const_time_memeq()) */
/* round to next multiple of 64 to avoid potentially leaking exact
- * password length when subject ... |
Clarify homebrew installation under OSX
homebrew/science needs to be tapped first. | @@ -70,12 +70,12 @@ Charles for doing this.
apt-get install bedtools
-
**Homebrew**. Carlos Borroto has made BEDTools available on the bedtools
package manager for OSX.
.. code-block:: bash
+ brew tap homebrew/science
brew install bedtools
**MacPorts**. Alternatively, the MacPorts ports system can be used to install BE... |
Rollback d3d12 custom hooking :( | @@ -164,8 +164,7 @@ void D3D12::Hook()
}
else
{
- m_realPresentD3D12 = (decltype(m_realPresentD3D12))ApplyHook(kiero::getSwapChainVtable(), 8, &Present);
- if (m_realPresentD3D12 == nullptr)
+ if (kiero::bind(140, reinterpret_cast<void**>(&m_realPresentD3D12), &Present) != kiero::Status::Success)
{
spdlog::error("{0} P... |
nrf/gccollect: Use the SP register instead of MSP.
Using the current stack pointer directly saves 8 bytes of code.
We need the *current* register anyway for GC (which is always MSP). | #include "py/gc.h"
#include "gccollect.h"
-static inline uint32_t get_msp(void)
-{
- register uint32_t result;
- __asm volatile ("MRS %0, msp\n" : "=r" (result) );
- return(result);
+static inline uintptr_t get_sp(void) {
+ uintptr_t result;
+ __asm__ ("mov %0, sp\n" : "=r" (result) );
+ return result;
}
void gc_collec... |
When initializing all the CAN busses, make sure the are also cleared
Thanks to 4vanetten | @@ -165,6 +165,7 @@ bool can_set_speed(uint8_t can_number) {
void can_init_all(void) {
bool ret = true;
for (uint8_t i=0U; i < CAN_MAX; i++) {
+ can_clear(can_queues[i]);
ret &= can_init(i);
}
UNUSED(ret);
|
test-suite: update numpy test for multiple module files | @@ -7,13 +7,21 @@ if [ -s ./common/TEST_ENV ];then
source ./common/TEST_ENV
fi
+declare -A python_module_prefixes=( ["python2"]="py2" ["python3"]="py3")
+if [ "x$DISTRO_FAMILY" == "xCentOS" -o "x$DISTRO_FAMILY" == "xRHEL" ];then
+ declare -A python_package_prefixes=( ["python2"]="python" ["python3"]="python34")
+else
+... |
vere: scry out next behn timer for backstop
Instead of potentially waiting ten minutes in the problematic case, we
scry out the next timer from behn and set to that (if we haven't set
a new timer while we were waiting for the scry). | c3_o alm; // alarm
} u3_behn;
+static void _behn_scry_cb(void* vod_p, u3_noun nun);
+
/* _behn_time_cb(): timer callback.
*/
static void
@@ -27,7 +29,7 @@ _behn_time_cb(uv_timer_t* tim_u)
u3_behn* teh_u = tim_u->data;
teh_u->alm = c3n;
- // start another timer for 10 minutes
+ // take initiative to start the next timer... |
ipmi-watchdog: Simplify our completion function
This makes no functional changes, just refactors the completion function
to be used for reset only, since it does nothing but free the message
for set calls. This will be useful for future changes to reduce nesting
depth. | @@ -48,27 +48,18 @@ static struct timer wdt_timer;
static bool wdt_stopped;
static bool wdt_ticking;
-static void ipmi_wdt_complete(struct ipmi_msg *msg)
-{
- if (msg->cmd == IPMI_CMD(IPMI_RESET_WDT) && wdt_ticking)
- schedule_timer(&wdt_timer, msecs_to_tb(
- (WDT_TIMEOUT - WDT_MARGIN)*100));
-
- ipmi_free_msg(msg);
-}... |
handle behn error in acme | :: +wake: timer wakeup event
::
++ wake
- |= [wir=wire ~]
+ |= [wir=wire error=(unit tang)]
^- (quip move _this)
+ ?^ error ~| %acme-timer-failed !!
?> ?=([%acme *] wir)
abet:(retry:event t.wir)
:: +poke-acme-order: create new order for a set of domains
|
Fix bug with calc importance of empty nodes | @@ -185,8 +185,8 @@ TVector<double> CalcEffect(
TVector<double> parentAvrg;
for(int dimension = 0; dimension < approxDimension; dimension++) {
- const double val1 = leftInfo.Values[dimension];
- const double val2 = rightInfo.Values[dimension];
+ const double val1 = count1 ? leftInfo.Values[dimension] : 0;
+ const doubl... |
doc: fix kdb validate shell recorder test | @@ -308,43 +308,25 @@ To check if an existing set of keys can be read and written with the current val
```sh
# mount test config file and set a value
-sudo kdb mount test.ini user:/tests/validate range dump
+sudo kdb mount testvalidate.ini /tests/validate range dump
kdb set user:/tests/validate/x 10
# add range check t... |
mangle: remove resize as resizing is done by inflate/deflate | @@ -828,11 +828,6 @@ static void mangle_CloneByte(run_t* run) {
run->dynamicFile[off2] = tmp;
}
-static void mangle_Resize(run_t* run) {
- size_t sz = util_rndGet(1, run->global->mutate.maxFileSz);
- input_setSize(run, sz);
-}
-
static void mangle_Expand(run_t* run) {
size_t off = util_rndGet(0, run->dynamicFileSz - 1)... |
fix:fix ethereum test case(test_002InitWallet_0005SetNodeUrlSuccess) | @@ -668,7 +668,7 @@ START_TEST(test_002InitWallet_0005SetNodeUrlSuccess)
/* 2-2. verify the global variables that be affected */
ck_assert_str_eq(wallet_ptr->network_info.node_url_ptr, wallet.node_url_str);
- BoatIotSdkDeInit();
+ BoatEthWalletDeInit(wallet_ptr);
}
END_TEST
|
lyd mods BUGFIX use correct context with errors | @@ -224,7 +224,6 @@ sr_lydmods_add_op_deps(struct lyd_node *sr_mod, const struct lysc_node *op_root)
struct lyd_node *sr_op_deps, *ly_cur_deps;
struct ly_set *set = NULL;
char *data_path = NULL, *xpath = NULL;
- const struct ly_ctx *ly_ctx = op_root->module->ctx;
struct sr_lydmods_deps_dfs_arg dfs_arg;
int is_rpc;
@@ -... |
CI: Fix cache key on Linux lane | @@ -49,9 +49,9 @@ jobs:
uses: actions/cache@v1
with:
path: ./build-ImageMagick
- key: v1-imagemagick-${{ matrix.imagemagick-version.full }}
+ key: v1-linux-imagemagick-${{ matrix.imagemagick-version.full }}
restore-keys: |
- v1-imagemagick-${{ matrix.imagemagick-version.full }}
+ v1-linux-imagemagick-${{ matrix.imagema... |
kas: remove 'image-mklibs' from USER_CLASSES list
mklibs is no longer supported, see [1]
[1] | @@ -45,7 +45,7 @@ local_conf_header:
CONF_VERSION = "1"
PACKAGE_CLASSES = "package_rpm"
SDKMACHINE = "x86_64"
- USER_CLASSES = "buildstats image-mklibs image-prelink"
+ USER_CLASSES = "buildstats image-prelink"
PATCHRESOLVE = "noop"
debug-tweaks: |
EXTRA_IMAGE_FEATURES = "debug-tweaks"
|
Fix library version only being set on library unload | @@ -51,6 +51,10 @@ MsQuicLibraryLoad(
CxPlatListInitializeHead(&MsQuicLib.Bindings);
QuicTraceRundownCallback = QuicTraceRundown;
MsQuicLib.Loaded = TRUE;
+ MsQuicLib.Version[0] = VER_MAJOR;
+ MsQuicLib.Version[1] = VER_MINOR;
+ MsQuicLib.Version[2] = VER_PATCH;
+ MsQuicLib.Version[3] = VER_BUILD_ID;
}
}
@@ -68,10 +72,... |
fix one more compiler warning | #include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
+
#include <limits.h>
+#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
+
#include <netdb.h>
#include <errno.h>
|
tcpm: it83xx: Add support for TYPEC_CC_OPEN
BRANCH=None
TEST=Verify compilation on it83xx w/ IT83XX_PD_EVB = 1.
Commit-Ready: Shawn N
Tested-by: Shawn N | @@ -234,6 +234,14 @@ static void it83xx_enable_vconn(enum usbpd_port port, int enabled)
}
}
+static void it83xx_enable_cc(enum usbpd_port port, int enable)
+{
+ if (enable)
+ CLEAR_MASK(IT83XX_USBPD_CCGCR(port), (1 << 4));
+ else
+ SET_MASK(IT83XX_USBPD_CCGCR(port), (1 << 4));
+}
+
static void it83xx_set_power_role(enu... |
Skyrim: Remove unconnected pin
This pin is NC on more recent board versions.
BRANCH=None
TEST=zmake build skyrim | gpios = <&gpioa 5 GPIO_INPUT>;
};
/* TODO: Add interrupt handler */
- sc_0_int_l {
- gpios = <&gpio6 3 GPIO_INPUT_PULL_UP>;
- };
- /* TODO: Add interrupt handler */
usb_hub_fault_q_odl {
gpios = <&gpioe 5 GPIO_INPUT_PULL_UP>;
};
|
parallel-libs/superlu_dist: add optional MKL support | @@ -78,6 +78,9 @@ module load metis ptscotch
%if "%{compiler_family}" != "intel"
module load openblas
+%define blas_lib -lopenblas
+%else
+%define blas_lib -L$MKL_LIB_PATH -lmkl_intel_ilp64 -lmkl_sequential -lmkl_core -lpthread -lm -ldl
%endif
make SuperLUroot=$(pwd)
@@ -87,7 +90,7 @@ mkdir tmp
mpif90 -z muldefs -share... |
YAML CPP: Stop using namespace `ckdb` for all code | #include <kdbplugin.h>
-using namespace ckdb;
extern "C" {
-int elektraYamlcppGet (Plugin * handle, KeySet * ks, Key * parentKey);
-int elektraYamlcppSet (Plugin * handle, KeySet * ks, Key * parentKey);
+int elektraYamlcppGet (ckdb::Plugin * handle, ckdb::KeySet * ks, ckdb::Key * parentKey);
+int elektraYamlcppSet (ckd... |
readme: add python3 and cmake to requirements | @@ -19,6 +19,8 @@ For convenience, you can alternatively run the `make.sh` script.
### For building h2olog
- LLVM and clang (>= 3.7.1)
+- CMake for generating the build files
+- Python 3 for the [code generator](https://github.com/toru/h2olog/blob/v2/misc/gen-bpf.py)
- [BCC](https://iovisor.github.io/bcc/) (>= 0.11.0) ... |
Add documentation mentioning init-software | @@ -13,6 +13,15 @@ official RISC-V ISA reference implementation. Qemu is a high-performance
functional simulator that can run nearly as fast as native code, but can be
challenging to modify.
+To initialize additional software repositories, such as wrappers for Coremark,
+SPEC2017, and workloads for the NVDLA, run the f... |
Fix policy for jaeger client.
Note: mandatory check (NEED_CHECK) was skipped | @@ -279,6 +279,7 @@ ALLOW .* -> vendor/github.com/go-cmd/cmd
ALLOW .* -> vendor/github.com/NVIDIA/gpu-monitoring-tools/bindings/go
# Opentracing interface and implementation.
+ALLOW .* -> vendor/github.com/uber/jaeger-client-go
ALLOW .* -> vendor/github.com/jaegertracing/jaeger-client-go
ALLOW .* -> vendor/github.com/o... |
Add references to sway-output(5) in sway(5)
update ref in the swaybg_command description
add ref to sway-output(5) in See Also
add an `output` command description | @@ -69,7 +69,7 @@ The following commands may only be used in the configuration file.
*swaybg\_command* <command>
Executes custom background _command_. Default is _swaybg_. Refer to
- *output* below for more information.
+ *sway-output*(5) for more information.
It can be disabled by setting the command to a single dash:... |
Correct bootloader | @@ -154,7 +154,7 @@ SUPPORTED_CONFIGURATIONS = [
( 0x8080, 'lpc11u35_ff1705_l151_if', None, None ), # TODO - set target to 'L-TEK-FF1705' when mbed-os supports this
( 0x8081, 'lpc11u35_ff_lpc546xx_if', None, None ), # TODO - set target to 'L-TEK-FF-LPC546XX' when mbed-os supports this
( 0x700, 'stm32f103xb_stm32f103rb_... |
Update token capabilities page with capability guid name | @@ -2017,6 +2017,7 @@ INT_PTR CALLBACK PhpTokenCapabilitiesPageProc(
}
else if (subAuthoritiesCount == SECURITY_CAPABILITY_RID_COUNT)
{
+ PPH_STRING capabilityName;
GUID capabilityGuid;
ULONG firstPart;
ULONG secondPart;
@@ -2034,7 +2035,13 @@ INT_PTR CALLBACK PhpTokenCapabilitiesPageProc(
*((PULONG)&capabilityGuid.Dat... |
zephyr: Fix 'edefines' typo
Fix a typo that crept into the Kconfig.
BRANCH=none
TEST=build for volteer | @@ -32,7 +32,7 @@ config ZEPHYR
config.h not being available in some headers.
# Define PLATFORM_EC_... options to enable EC features. Each Kconfig should be
-# matched by a line in zephyr/shim/include/config_chip.h which #edefines the
+# matched by a line in zephyr/shim/include/config_chip.h which #defines the
# corres... |
Display version info
Show version info from metadata, instead of number of blocks. | @@ -393,12 +393,7 @@ void render(uint32_t time) {
screen.text(wrapped_desc, minimal_font, desc_rect);
screen.text(selected_game_metadata.author, minimal_font, Point(172, 208));
-
- int num_blocks = calc_num_blocks(game_list[persist.selected_menu_item].size);
- char buf[20];
- snprintf(buf, 20, "%i block%s", num_blocks,... |
Docs: Cleaning of fields Generic for SampleCustom.plist because aren't used | <key>AdviseWindows</key>
<false/>
<key>MLB</key>
- <string>M0000000000000001</string>
+ <string></string>
<key>ProcessorType</key>
<integer>0</integer>
<key>ROM</key>
- <data>ESIzRFVm</data>
+ <data></data>
<key>SpoofVendor</key>
- <true/>
+ <false/>
<key>SystemProductName</key>
- <string>iMac19,1</string>
+ <string></... |
Remove changelog description of UPX to remove from 0.7.4. | @@ -12,9 +12,6 @@ See the AppScope repo to view [all issues](https://github.com/criblio/appscope/i
- **Fix**: [#264](https://github.com/criblio/appscope/issues/264),[#525](https://github.com/criblio/appscope/issues/525) `scope k8s` now (1) supports specifying the namespace to install into, and (2) when the [ConfigMap](... |
Enable TMPFS and NSH_QUOTE to get CONFIG_NSH_CMDPARMS working | @@ -125,8 +125,9 @@ config NSH_QUOTE
config NSH_CMDPARMS
bool "Enable commands as parameters"
- default !DEFAULT_SMALL
+ default !DEFAULT_SMALL && NSH_QUOTE
depends on !DISABLE_MOUNTPOINT
+ depends on FS_TMPFS
---help---
If selected, then the output from commands, from file applications, and
from NSH built-in commands ... |
[catboost/py] add epsilon dataset to storage;
[catboost/py] add epsilon dataset to storage;
([arc::pullid] b1d19b2b-1f1a64bf-6c97a784-30946227) | @@ -73,7 +73,7 @@ def _get_cache_path():
return os.path.join(os.getcwd(), 'catboost_cached_datasets')
-def _cached_dataset_load(url, md5, dataset_name, train_file, test_file, header='infer'):
+def _cached_dataset_load(url, md5, dataset_name, train_file, test_file, sep=',', header='infer'):
dir_path = os.path.join(_get_... |
Fix typo in comment of syncrep.c
Author: Kyotaro Horiguchi
Discussion: | @@ -1065,8 +1065,8 @@ SyncRepUpdateSyncStandbysDefined(void)
/*
* If synchronous_standby_names has been reset to empty, it's futile
- * for backends to continue to waiting. Since the user no longer
- * wants synchronous replication, we'd better wake them up.
+ * for backends to continue waiting. Since the user no longe... |
OpenCore: Fix kernel version comparison | @@ -24,8 +24,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include <Library/PrintLib.h>
#include <Library/UefiBootServicesTableLib.h>
-#include <Protocol/DevicePath.h>
-
STATIC OC_STORAGE_CONTEXT *mOcStorage;
STATIC OC_GLOBAL_CONFIG *mOcConfiguration;
@@ -58,6 +56,8 @@ OcKernelRead... |
VFS: fix possible memory leak in UART | @@ -89,6 +89,8 @@ static esp_line_endings_t s_rx_mode =
ESP_LINE_ENDINGS_LF;
#endif
+static void uart_end_select();
+
// Functions used to write bytes to UART. Default to "basic" functions.
static tx_func_t s_uart_tx_func[UART_NUM] = {
&uart_tx_char, &uart_tx_char, &uart_tx_char
@@ -337,25 +339,25 @@ static esp_err_t u... |
riscv: use far jump to init/fini | .hidden __mlibc_do_dtors
.section .init
- j __mlibc_do_ctors
+ tail __mlibc_do_ctors
.section .fini
- j __mlibc_do_dtors
+ tail __mlibc_do_dtors
.section .ctors
.hidden __CTOR_END__
|
Jenkins: Add `-Werror` to `debian-stable-minimal` | @@ -563,7 +563,8 @@ def generateFullBuildStages() {
tasks << buildAndTest(
"debian-stable-minimal",
DOCKER_IMAGES.stretch_minimal,
- ['PLUGINS': 'NODEP'],
+ ['PLUGINS': 'NODEP'] +
+ CMAKE_FLAGS_WERROR,
[TEST.ALL]
)
|
rewrote the script section | @@ -36,7 +36,11 @@ git:
lfs_skip_smudge: true
script:
- - if [ "$TRAVIS_BRANCH" = "master" ]; then make coverage; else; pytest -v -s tests; fi
+ - if [ "$TRAVIS_BRANCH" = "master" ]; then
+ make coverage;
+ else;
+ pytest -v -s tests;
+ fi
after_success:
|
Undefine ASMNAME/NAME/CNAME before defining them
to avoid redefinition warning when environment variables like CFLAGS are being used (fixes | @@ -1154,6 +1154,7 @@ KERNELDIR = $(TOPDIR)/kernel/$(ARCH)
include $(TOPDIR)/Makefile.$(ARCH)
+CCOMMON_OPT += -UASMNAME -UASMFNAME -UNAME -UCNAME -UCHAR_NAME -UCHAR_CNAME
CCOMMON_OPT += -DASMNAME=$(FU)$(*F) -DASMFNAME=$(FU)$(*F)$(BU) -DNAME=$(*F)$(BU) -DCNAME=$(*F) -DCHAR_NAME=\"$(*F)$(BU)\" -DCHAR_CNAME=\"$(*F)\"
ifeq... |
forward strdup, strndup, and realpath too | @@ -50,10 +50,10 @@ terms of the MIT license. A copy of the license can be found in the file
MI_INTERPOSE_MI(malloc),
MI_INTERPOSE_MI(calloc),
MI_INTERPOSE_MI(realloc),
+ MI_INTERPOSE_MI(free),
MI_INTERPOSE_MI(strdup),
MI_INTERPOSE_MI(strndup),
- MI_INTERPOSE_MI(realpath),
- MI_INTERPOSE_MI(free)
+ MI_INTERPOSE_MI(real... |
Fix Font atlas expansion; | @@ -1776,22 +1776,22 @@ Font* lovrFontCreate(FontInfo* info) {
map_init(&font->glyphLookup, 36);
map_init(&font->kerning, 36);
+ font->pixelDensity = lovrRasterizerGetHeight(info->rasterizer);
+ font->lineSpacing = 1.f;
+ font->padding = (uint32_t) ceil(info->spread / 2.);
+
// Initial atlas size must be big enough to ... |
Sort points vertically in ticLine | @@ -967,8 +967,15 @@ void tic_api_circb(tic_mem* memory, s32 xm, s32 ym, s32 radius, u8 color)
typedef void(*linePixelFunc)(tic_mem* memory, s32 x, s32 y, u8 color);
static void ticLine(tic_mem* memory, s32 x0, s32 y0, s32 x1, s32 y1, u8 color, linePixelFunc func)
{
+ if (y1 < y0)
+ {
+ s32 swap;
+ swap=x0; x0=x1; x1=s... |
Ignore result from AT+CIPSERVERMAXCONN as not all AT versions support this yet. | @@ -625,7 +625,7 @@ espi_parse_received(esp_recv_t* rcv) {
*/
if (IS_CURR_CMD(ESP_CMD_TCPIP_CIPSEND)) {
if (esp.msg->msg.conn_send.conn == conn) {
- /** \todo: Find better idea */
+ /** \todo: Find better idea to handle what to do in this case */
//is_error = 1; /* Set as error to stop processing or waiting for connect... |
modem/autotest: adding negative test cases to types | @@ -149,5 +149,12 @@ void autotest_modemcf_types()
CONTEND_EQUALITY(liquid_modem_is_specific(LIQUID_MODEM_ARB256OPT), 1);
CONTEND_EQUALITY(liquid_modem_is_specific(LIQUID_MODEM_ARB64VT), 1);
#endif
+
+ // test some negative cases
+ CONTEND_EQUALITY(liquid_modem_is_psk (LIQUID_MODEM_QPSK), 0);
+ CONTEND_EQUALITY(liquid_... |
Increase "adb forward" connection attempts
5 seconds might not be sufficient:
<https://github.com/Genymobile/scrcpy/issues/213>
Increase to 10 seconds (it does not harm). | @@ -207,7 +207,7 @@ socket_t server_connect_to(struct server *server) {
if (!server->tunnel_forward) {
server->device_socket = net_accept(server->server_socket);
} else {
- Uint32 attempts = 50;
+ Uint32 attempts = 100;
Uint32 delay = 100; // ms
server->device_socket = connect_to_server(server->local_port, attempts, de... |
nimble/ll: Fix race in scan stop
We should better disable PHY before cleaning up scansm. This way we
avoid e.g. scenario when extended scanner was active, but PDU was
received after ext_scanning flag was cleared so such PDU would be
marked incorrectly. | @@ -1125,6 +1125,22 @@ ble_ll_scan_sm_stop(int chk_disable)
scansm = &g_ble_ll_scan_sm;
os_cputime_timer_stop(&scansm->scan_timer);
+ /* Only set state if we are currently in a scan window */
+ if (chk_disable) {
+ OS_ENTER_CRITICAL(sr);
+ lls = ble_ll_state_get();
+
+ if ((lls == BLE_LL_STATE_SCANNING) ||
+ (lls == BL... |
Fix add NULL check for `group->obj_focus` | @@ -218,7 +218,7 @@ void lv_group_focus_obj(lv_obj_t * obj)
if(g->frozen != 0) return;
- if(obj == *g->obj_focus) return;
+ if(g->obj_focus != NULL && obj == *g->obj_focus) return;
/*On defocus edit mode must be leaved*/
lv_group_set_editing(g, false);
|
FURYF4OSD: add blackbox defintion | #define MAX7456_SPI_PORT SPI_PORT2
#define MAX7456_NSS PIN_B12
+#define USE_M25P16
+#define M25P16_SPI_PORT SPI_PORT3
+#define M25P16_NSS_PIN PIN_B3
+
// VOLTAGE DIVIDER
#define VBAT_PIN PIN_C1
#define VBAT_DIVIDER_R1 10000
|
Use wildcards in nuspec for platform-independent packaging. | </metadata>
<files>
<file src="lib/TinySpline.dll" target="lib/net45" />
- <file src="lib/libtinysplinecsharp.so" target="runtimes/@TINYSPLINE_PLATFORM@/lib/native" />
+ <file src="lib/*tinysplinecsharp.*" target="runtimes/@TINYSPLINE_PLATFORM@/lib/native" />
</files>
</package>
|
Work CD-CI
Improve output of GCC toolchain being downloaded. | @@ -7,8 +7,6 @@ steps:
targetType: 'inline'
script: |
- Write-Host "Downloading ARM GNU GCC toolchain..."
-
if("$(GccArm_Version)" -ne "")
{
if("$(GccArm_Version)" -eq "5-2016-q3-update")
@@ -29,6 +27,8 @@ steps:
$url = "https://bintray.com/nfbot/internal-build-tools/download_file?file_path=gcc-arm-none-eabi-7-2018-q2-... |
apps/system/utils : Modify heapinfo explanation in README.md
Heapinfo was expanded to show kernel, user and specific binary heap information.
Add explanation about target for heapinfo. | @@ -325,11 +325,18 @@ This command shows heap memory usages per thread. This has arguments which confi
```bash
TASH>>heapinfo --help
-Usage: heapinfo [OPTIONS]
+Usage: heapinfo [-TARGET] [-OPTION]
Display information of heap memory
Options:
- -i Initialize the heapinfo
+[-TARGET]
+ -k Kernel Heap
+ (-k target is availa... |
Fix gall scry
cf. fixes | ==
::
++ scry
- |= {fur/(unit (set monk)) ren/@tas who/ship syd/desk lot/coin tyl/path}
+ |= {fur/(unit (set monk)) ren/@tas why/shop syd/desk lot/coin tyl/path}
^- (unit (unit cage))
+ ?. ?=($& -.why) ~
+ =* his p.why
?: ?& =(%u ren)
=(~ tyl)
=([%$ %da now] lot)
- (~(has by pol.all) who)
- (~(has by bum:(~(got by pol.... |
[iovisor/bcc] trace: Incorrect symbol offsets when using build_id
Fix - bcc_bsymcache API returned absolute address instead of
offset from start of the symbol | @@ -424,7 +424,7 @@ bool BuildSyms::Module::resolve_addr(uint64_t offset, struct bcc_symbol* sym,
sym->name = (*it).name->c_str();
if (demangle)
sym->demangle_name = sym->name;
- sym->offset = (*it).start;
+ sym->offset = offset - (*it).start;
sym->module = module_name_.c_str();
return true;
}
|
Fix memory leak on lookup failure | @@ -129,6 +129,9 @@ static EVP_PKEY_CTX *int_ctx_new(EVP_PKEY *pkey, ENGINE *e, int id)
pmeth = EVP_PKEY_meth_find(id);
if (pmeth == NULL) {
+#ifndef OPENSSL_NO_ENGINE
+ ENGINE_finish(e);
+#endif
EVPerr(EVP_F_INT_CTX_NEW, EVP_R_UNSUPPORTED_ALGORITHM);
return NULL;
}
|
chore(docs) add "v" prefix | {% block footer %}
+<style>
+ .wy-side-nav-search > div[role="search"] {
+ color: black;
+ }
+</style>
<script type="text/javascript">
$(document).ready(function() {
$(".toggle > *").hide();
@@ -22,7 +27,7 @@ function add_version_selector()
const versions = text.split("\n").filter(version => version.trim().length > 0);... |
Set "Maintenance Req'd" bit in GDL90 heartbeat when there exists a system error. | @@ -574,6 +574,11 @@ func makeHeartbeat() []byte {
}
msg[1] = msg[1] | 0x10 //FIXME: Addr talkback.
+ // "Maintenance Req'd". Add flag if there are any current critical system errors.
+ if len(globalStatus.Errors) > 0 {
+ msg[1] = msg[1] | 0x40
+ }
+
nowUTC := time.Now().UTC()
// Seconds since 0000Z.
midnightUTC := tim... |
arch: fix typo in MSVC x86_64 detection
Fixes | /* AMD64 / x86_64
<https://en.wikipedia.org/wiki/X86-64> */
-#if defined(__amd64__) || defined(__amd64) || defined(__x86_64__) || defined(__x86_64) || defined(_M_X66) || defined(_M_AMD64)
+#if defined(__amd64__) || defined(__amd64) || defined(__x86_64__) || defined(__x86_64) || defined(_M_X64) || defined(_M_AMD64)
# de... |
[core] reduce trace on Upgrade backend connection
reduce trace on Upgrade'd backend connection when ECONNRESET received,
which, for example, apparently might occur if a backend calls close()
on socket without first calling shutdown(fd, SHUT_WR) -- seen on Linux
kernel 5.16.15 where lighttpd received ECONNRESET when try... | @@ -2412,7 +2412,8 @@ static handler_t gw_recv_response_error(gw_handler_ctx * const hctx, request_st
"socket: %s for %s?%.*s, closing connection",
(long long)hctx->wb.bytes_out, proc->connection_name->ptr,
r->uri.path.ptr, BUFFER_INTLEN_PTR(&r->uri.query));
- } else if (!light_btst(r->resp_htags, HTTP_HEADER_UPGRADE))... |
update ci to exit at the end instead of partway through | fix flattened toolchain repos | @@ -21,29 +21,66 @@ git config submodule.vlsi/hammer-synopsys-plugins.update none
git submodule update --init
status=$(git submodule status)
+all_names=()
+
search () {
for submodule in "${submodules[@]}"
do
echo "Running check on submodule $submodule in $dir"
- hash=$(echo "$status" | grep $submodule | awk '{print$1}'... |
cmd/kubectl: Add possible sort values for filetop CLI. | @@ -101,7 +101,7 @@ var filetopCmd = &cobra.Command{
func init() {
filetopCmd.Flags().IntVarP(&maxRows, "maxrows", "r", 20, "Maximum rows to print")
- filetopCmd.Flags().StringVarP(&sortByStr, "sort", "", "rbytes", "Sort column")
+ filetopCmd.Flags().StringVarP(&sortByStr, "sort", "", "rbytes", fmt.Sprintf("Sort column... |
contact-store: enforce timestamp ordering on %initial | |= [rolo=rolodex:store is-public=?]
^- (quip card _state)
=/ our-contact (~(got by rolodex) our.bowl)
- =. rolodex (~(uni by rolodex) rolo)
+ ::
+ =/ diff-rolo=rolodex:store
+ %- ~(gas by *rolodex:store)
+ %+ skim ~(tap in rolo)
+ |= [=ship =contact:store]
+ ?~ local-con=(~(get by rolodex) ship) %.y
+ (gth last-updated... |
lib: msgpack-c: do not install static library | @@ -230,7 +230,7 @@ ENDIF ()
IF (MSGPACK_ENABLE_SHARED)
SET (MSGPACK_INSTALLTARGETS msgpackc msgpackc-static)
ELSE()
- SET (MSGPACK_INSTALLTARGETS msgpackc-static)
+ # SET (MSGPACK_INSTALLTARGETS msgpackc-static)
ENDIF ()
INSTALL (TARGETS ${MSGPACK_INSTALLTARGETS} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
Blacklist support
Initial blacklist: Battle.net.exe, EpicGamesLauncher.exe, IGOProxy.exe, IGOProxy64.exe, Origin.exe, Steam.exe | @@ -2457,8 +2457,45 @@ static const struct {
#undef ADD_HOOK
};
+static bool checkBlacklisted()
+{
+ std::vector<std::string> blacklist {
+ "Battle.net.exe",
+ "EpicGamesLauncher.exe",
+ "IGOProxy.exe",
+ "IGOProxy64.exe",
+ "Origin.exe",
+ "OriginThinSetupInternal.exe",
+ "Steam.exe",
+ };
+
+#ifdef _GNU_SOURCE_OFF
+ ... |
Update USAGE-GUIDE.md for multicert | @@ -559,6 +559,8 @@ int s2n_config_add_cert_chain_and_key_to_store(struct s2n_config *config,
**s2n_config_add_cert_chain_and_key_to_store** is the preferred method of associating a certificate chain and private key pair with an **s2n_config** object. At present, this may only be called once for each config object. It ... |
Add ommitted assignment for fd in dup2 tc
Although negative tc is failed below, fd1 can be positive value because of tc success before
So fd should be assigned as negative value | @@ -425,24 +425,25 @@ static void fs_vfs_dup2_tc(void)
/* now fd1 points fd2 */
ret = dup2(fd2, fd1);
- TC_ASSERT_GEQ_CLEANUP("dup2", ret, 0, close(fd2));
+ close(fd2);
+ TC_ASSERT_NEQ("dup2", ret, ERROR);
+ TC_ASSERT_GEQ("dup2", fd1, 0);
len = strlen(VFS_TEST_CONTENTS_3);
ret = write(fd1, str, len);
close(fd1);
- TC_A... |
Expost static and dynamic Swift packages | @@ -14,6 +14,16 @@ let package = Package(
name: "TrustKit",
targets: ["TrustKit"]
),
+ .library(
+ name: "TrustKitDynamic",
+ type: .dynamic,
+ targets: ["TrustKit"]
+ ),
+ .library(
+ name: "TrustKitStatic",
+ type: .static,
+ targets: ["TrustKit"]
+ ),
],
dependencies: [
],
|
Use MEM_CONTEXT_BEGIN() block instead of memContextSwitch().
This is the standard pattern but was missed here. | @@ -827,12 +827,12 @@ storageS3PathRemoveCallback(StorageS3 *this, void *callbackData, const String *n
// If there is something to delete then create the request
if (data->xml == NULL)
{
- MemContext *memContextOld = memContextSwitch(data->memContext);
-
+ MEM_CONTEXT_BEGIN(data->memContext)
+ {
data->xml = xmlDocument... |
Fix state restoration | @@ -102,15 +102,16 @@ extension SceneDelegate {
_ = Timer.scheduledTimer(withTimeInterval: 0.1, repeats: true, block: { (timer) in
if let doc = self.documentBrowserViewController, doc.view.window != nil {
- let sidebar = doc.makeSidebarNavigation(url: url, run: false, isShortcut: false)
- let vc = UIHostingController(r... |
all: sets scrollbar colors
fixes urbit/landscape#87 | @@ -39,6 +39,24 @@ const Root = styled.div`
}
display: flex;
flex-flow: column nowrap;
+
+ * {
+ scrollbar-width: thin;
+ scrollbar-color: ${ p => p.theme.colors.gray } ${ p => p.theme.colors.white };
+ }
+
+ /* Works on Chrome/Edge/Safari */
+ *::-webkit-scrollbar {
+ width: 12px;
+ }
+ *::-webkit-scrollbar-track {
+ ... |
timer_reset: do not do anything if the timer has not expired | @@ -74,9 +74,8 @@ timer_set(struct timer *t, clock_time_t interval)
* given to the timer_set() function. The start point of the interval
* is the exact time that the timer last expired. Therefore, this
* function will cause the timer to be stable over time, unlike the
- * timer_restart() function.
- *
- * \note Must no... |
extstore: make ext_recache_rate=0 work
would divide by zero before :) now short circuits whole function. | @@ -642,8 +642,10 @@ conn *conn_new(const int sfd, enum conn_states init_state,
static void recache_or_free(conn *c, io_wrap *wrap) {
item *it;
it = (item *)wrap->io.buf;
+ bool do_free = true;
// If request was ultimately a miss, unlink the header.
if (wrap->miss) {
+ do_free = false;
size_t ntotal = ITEM_ntotal(wrap-... |
Install prerequisites | @@ -14,6 +14,8 @@ jobs:
steps:
- uses: actions/checkout@v1
+ - name: Install prerequisites
+ run: sudo apt-get install gcc-multilib
- name: Run CMake
env:
CC: ${{ matrix.compiler }}
|
Enable node modules in bootstrap again, Guix will try to copy them manually from cherow. | @@ -59,12 +59,8 @@ install(FILES
COMPONENT runtime
)
-if(NOT OPTION_BUILD_GUIX)
- # In Guix Bootstrap dependencies (aka Cherow
- # at the moment of writting) must be installed manually
install(DIRECTORY
${LOADER_LIBRARY_PATH}/node_modules
DESTINATION ${INSTALL_LIB}
COMPONENT runtime
)
-endif()
|
Have raczlib check the dictionary TTag | @@ -316,7 +316,7 @@ func (r *Reader) nextChunk() error {
dict := []byte(nil)
if !chunk.CSecondary.Empty() {
- if dict, err = r.loadDictionary(chunk.CSecondary); err != nil {
+ if dict, err = r.loadDictionary(chunk.CSecondary, chunk.TTag); err != nil {
return err
}
}
@@ -358,15 +358,15 @@ func (r *Reader) nextChunk() er... |
Turn fsync off for behave terraform tests
This should speed up the tests a bit, since they are currently spending a significant amount of time in createdb statements. | @@ -7,5 +7,7 @@ export PGPORT=5432
export MASTER_DATA_DIRECTORY=/data/gpdata/master/gpseg-1
export PGDATABASE=gptest
createdb gptest
+gpconfig --skipvalidation -c fsync -v off
+gpstop -u
cd /home/gpadmin/gpdb_src/gpMgmt
make -f Makefile.behave behave flags="$BEHAVE_FLAGS"
|
Fix pattern set/check rollover | @@ -58,15 +58,15 @@ u32 pat_redzone = 0xcafefade;
static void set_pattern(void *v, bytes sz, void *p, bytes psz)
{
u8 *bp = v;
- for (; sz > 0; sz -= psz, bp += psz)
- runtime_memcpy(bp, p, MIN(psz, sz));
+ for (s64 ssz = sz; ssz > 0; ssz -= psz, bp += psz)
+ runtime_memcpy(bp, p, MIN(psz, ssz));
}
static boolean check... |
merged changes and updated news line | @@ -280,6 +280,8 @@ you up to date with the multi-language support provided by Elektra.
- `kdb get -v` now displays if the resulting value is a default-value defined by the metadata of the key. _(Thomas Bretterbauer)_
- `kdb cp` now succeeds if target-keys already have the same values as the source-keys. _(Thomas Brett... |
fix (encrypt-async): remove crypto node from test-async-encrypt example | @@ -167,7 +167,7 @@ test-encrypt@test @nonic ctr=off x_crypto
test-gen-encrypt@test @nonic ctr=off x_crypto
test-ipsec@test @nonic ctr=off x_crypto async=pd crypto_burst_size=1
-test-async-encrypt@test @nonic ctr=off x_crypto async=pd crypto_burst_size=1 cores=1 crypto_node=openssl
+test-async-encrypt@test @nonic ctr=o... |
Configure: recognize div3w modules and add -DBN_DIV3W. | @@ -1354,6 +1354,7 @@ unless ($disabled{asm}) {
push @{$config{lib_defines}}, "OPENSSL_BN_ASM_MONT" if ($target{bn_asm_src} =~ /-mont/);
push @{$config{lib_defines}}, "OPENSSL_BN_ASM_MONT5" if ($target{bn_asm_src} =~ /-mont5/);
push @{$config{lib_defines}}, "OPENSSL_BN_ASM_GF2m" if ($target{bn_asm_src} =~ /-gf2m/);
+ p... |
compiler-families/intel-compilers-devel: include mkl-devel, needed for certain package builds | @@ -35,7 +35,7 @@ Source2: oneAPI.repo
Requires: gcc libstdc++-devel
Requires(pre): intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic >= %{min_intel_ver}
Requires: intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic >= %{min_intel_ver}
-Requires: intel-oneapi-mkl
+Requires: intel-oneapi-mkl intel-oneapi-mkl-devel
Requires: i... |
Provide lastupdated attribute in event for sensor state updates | @@ -1050,6 +1050,13 @@ void DeRestPluginPrivate::handleSensorEvent(const Event &e)
map["id"] = e.id();
QVariantMap state;
state[e.what() + 6] = item->toVariant();
+
+ item = sensor->item(RStateLastUpdated);
+ if (item)
+ {
+ state["lastupdated"] = item->toVariant();
+ }
+
map["state"] = state;
webSocketServer->broadcas... |
Update file modified and file size process' tree columns to native paths | @@ -1244,8 +1244,8 @@ static VOID PhpUpdateProcessNodeFileAttributes(
{
FILE_NETWORK_OPEN_INFORMATION networkOpenInfo;
- if (ProcessNode->ProcessItem->FileName && NT_SUCCESS(PhQueryFullAttributesFileWin32(
- ProcessNode->ProcessItem->FileName->Buffer,
+ if (ProcessNode->ProcessItem->FileName && NT_SUCCESS(PhQueryFullAt... |
Using $(CURDIR) to fix the absolute path issue | @@ -44,7 +44,7 @@ RPM:
mkdir -p RPMS SOURCES
cp $(TARBALL) SOURCES/vpp-$(VERSION)-$(RELEASE).tar.xz
rpmbuild -bb \
- --define "_topdir $(PWD)" \
+ --define "_topdir $(CURDIR)" \
--define "_version $(VERSION)" \
--define "_release $(RELEASE)" \
vpp-suse.spec
|
vlib: chdir to runtime_dir
Type: improvement | @@ -513,6 +513,9 @@ unix_config (vlib_main_t * vm, unformat_input_t * input)
if (error)
return error;
+ if (chdir ((char *) um->runtime_dir) < 0)
+ return clib_error_return_unix (0, "chdir('%s')", um->runtime_dir);
+
error = setup_signal_handlers (um);
if (error)
return error;
|
Fix build error on Linux/Windows. | @@ -3260,23 +3260,23 @@ test_network_get_cb(
test_networks[i].up = true;
test_networks[i].config4 = PAPPL_NETCONF_DHCP;
- test_networks[i].addr4.sin_len = sizeof(struct sockaddr_in);
+// test_networks[i].addr4.sin_len = sizeof(struct sockaddr_in);
test_networks[i].addr4.sin_family = AF_INET;
test_networks[i].addr4.sin_... |
config_tools: remove ivshmem region id from ui
remove ivshmem region id from ui. | <div class="IVSH_REGIONS" v-if="defaultVal && defaultVal.length>0">
<div class="IVSH_REGION" v-for="(IVSHMEM_VMO, index) in defaultVal">
<div class="IVSH_REGION_CONTENT">
- <b style="margin-bottom: 2rem">InterVM shared memory region {{ index + 1 }}</b>
+ <b style="margin-bottom: 2rem">InterVM shared memory region</b>
<... |
Add size check for PhGetMappedImageDataEntry | @@ -522,7 +522,7 @@ NTSTATUS PhGetMappedImageDataEntry(
dataDirectory = &optionalHeader->DataDirectory[Index];
- if (dataDirectory->VirtualAddress)
+ if (dataDirectory->VirtualAddress && dataDirectory->Size)
{
*Entry = dataDirectory;
return STATUS_SUCCESS;
@@ -540,14 +540,14 @@ NTSTATUS PhGetMappedImageDataEntry(
dataD... |
Fixed Copy/Paste errors of "Snap redux" (PR
Some variable declarations got lost by the changes which made the code
not building. | @@ -1960,6 +1960,8 @@ check_admin_access(cupsd_client_t *con) // I - Client connection
SnapdClient *client = NULL; // Data structure of snapd access
GError *error = NULL; // Glib error
int ret = 1; // Return value
+ SnapdSnap *snap = NULL; // Data structure of client Snap
+ SnapdClient *snapd = NULL; // Data structure ... |
optimized_nop: make clang happy with D=0 case | @@ -529,6 +529,8 @@ static void nary_opt(void* _data, void* ptr[])
}
+
+
/**
* Optimized n-op.
*
@@ -544,6 +546,25 @@ static void nary_opt(void* _data, void* ptr[])
*/
void optimized_nop(unsigned int N, unsigned int io, unsigned int D, const long dim[D], const long (*nstr[N])[D], void* const nptr[N], size_t sizes[N], m... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.