message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
plugins: in_tcp: updated the transport constant name | @@ -85,7 +85,7 @@ static int in_tcp_init(struct flb_input_instance *in,
port = (unsigned short int) strtoul(ctx->tcp_port, NULL, 10);
- ctx->downstream = flb_downstream_create(FLB_DOWNSTREAM_TYPE_TCP,
+ ctx->downstream = flb_downstream_create(FLB_TRANSPORT_TCP,
in->flags,
ctx->listen,
port,
|
changed esc to launcher key combo | @@ -71,7 +71,7 @@ def launcher():
ih.clear_button_leds()
ih.led_warn.off()
-if ih.pressed() == ih.inky_frame.button_a and ih.pressed() == ih.inky_frame.button_e:
+if ih.pressed() == ih.inky_frame.button_e:
launcher()
ih.clear_button_leds()
|
Directory Value: Make `isArrayParent` faster
This commit closes | @@ -154,6 +154,40 @@ CppKey convertToDirectChild (CppKey const & parent, CppKey const & child)
return directChild;
}
+/**
+ * @brief This function checks if `element` is an array element of `parent`.
+ *
+ * @pre The key `child` must be below `parent`.
+ *
+ * @param parent This parameter specifies a parent key.
+ * @p... |
Remove deprecated step and fix conflicting name | @@ -71,25 +71,19 @@ def update_production_azure_gallery_images(String image_name) {
}
stage("Update production Azure managed image: ${image_name}") {
sh """
- IMAGE_ID=\$(az sig image-version show \
+ SOURCE_ID=\$(az sig image-version show \
--resource-group ${params.RESOURCE_GROUP} \
--gallery-name "${params.E2E_IMAGE... |
Try quoting a few values. | @@ -27,10 +27,10 @@ jobs:
${{ runner.os }}-build-
${{ runner.os }}-
- name: West Init
- uses: docker://docker.pkg.github.com/zmkfirmware/zephyr-west-action/zephyr-west-action:latest
+ uses: 'docker://docker.pkg.github.com/zmkfirmware/zephyr-west-action/zephyr-west-action:latest'
id: west-init
with:
- args: 'init' '-l a... |
nimble/ll: Fix units in comparison
This likely just works by accident as we subtract ticks from HCI val... | @@ -1155,6 +1155,9 @@ ble_ll_scan_window_chk(struct ble_ll_scan_sm *scansm, uint32_t cputime)
uint32_t dt;
uint32_t win_start;
struct ble_ll_scan_params *scanphy = &scansm->phy_data[scansm->cur_phy];
+#ifdef BLE_XCVR_RFCLK
+ uint32_t itvl;
+#endif
win_start = ble_ll_scan_get_scan_win(scanphy, cputime);
@@ -1163,7 +1166... |
Concourse: Link the gphdfs jobs with more pipeline flow
use a sync_tools tarball that's passed compilation, not necessarily
the latest
use a binary that's passed packaging, not necessarily the latest | @@ -698,8 +698,10 @@ jobs:
passed: [gpdb_rc_packaging_centos]
trigger: true
- get: sync_tools_gpdb
+ passed: [compile_gpdb_centos6]
resource: sync_tools_gpdb_centos
- get: bin_gpdb
+ passed: [gpdb_rc_packaging_centos]
resource: bin_gpdb_centos
- get: centos-gpdb-dev-6
- task: regression_tests_gphdfs
|
Fix typo on STM32 i2c driver
On STM32 discovery board build fails due to
a typo on chip/stm32/i2c-stm32l.c in assignement | @@ -169,7 +169,7 @@ int chip_i2c_xfer(const int port,
const uint8_t *out, int out_bytes,
uint8_t *in, int in_bytes, int flags)
{
- int addr_8bit == I2C_GET_ADDR(slave_addr_flags) << 1;
+ int addr_8bit = I2C_GET_ADDR(slave_addr_flags) << 1;
int started = (flags & I2C_XFER_START) ? 0 : 1;
int rv = EC_SUCCESS;
int i;
|
pyocf: default range for int16 | @@ -28,6 +28,7 @@ class Range:
class DefaultRanges(Range, enum.Enum):
UINT8 = 0, c_uint8(-1).value
+ INT16 = int(-c_uint16(-1).value / 2) - 1, int(c_uint16(-1).value / 2)
UINT16 = 0, c_uint16(-1).value
UINT32 = 0, c_uint32(-1).value
UINT64 = 0, c_uint64(-1).value
|
Add test for the BIO_get_mem_ptr() regression | @@ -18,25 +18,53 @@ static int test_bio_memleak(void)
int ok = 0;
BIO *bio;
BUF_MEM bufmem;
- const char *str = "BIO test\n";
+ static const char str[] = "BIO test\n";
char buf[100];
bio = BIO_new(BIO_s_mem());
- if (bio == NULL)
+ if (!TEST_ptr(bio))
goto finish;
- bufmem.length = strlen(str) + 1;
+ bufmem.length = si... |
Updated IPv6 anonymizer example (man page). | @@ -519,7 +519,9 @@ Only if configured with --enable-tcb=btree
\fB\-\-anonymize-ip
Anonymize the client IP address. The IP anonymization option sets the last
octet of IPv4 user IP addresses and the last 80 bits of IPv6 addresses to
-zeros. e.g., 192.168.20.100 => 192.168.20.0
+zeros.
+e.g., 192.168.20.100 => 192.168.20... |
[cmake] FindMUMPS: try to be more robust | @@ -15,32 +15,43 @@ INCLUDE(FindPackageHandleStandardArgs)
IF(IDONTWANTMPI)
SET(__MUMPS_NAMES dmumps_seq dmumps)
ELSE(IDONTWANTMPI)
+# on debian systems one may have mumps+[pt]scotch packages also
SET(__MUMPS_NAMES dmumps_ptscotch dmumps_scotch dmumps)
ENDIF(IDONTWANTMPI)
IF(MUMPS_LIBRARY_DIRECTORY)
+ MESSAGE(STATUS "S... |
[Kernel] Fix the compiling warning | @@ -147,7 +147,7 @@ static void _signal_deliver(rt_thread_t tid)
rt_sighandler_t rt_signal_install(int signo, rt_sighandler_t handler)
{
- rt_sighandler_t old;
+ rt_sighandler_t old = RT_NULL;
rt_thread_t tid = rt_thread_self();
if (!sig_valid(signo)) return SIG_ERR;
|
Add debug functions to janet.h
Update version to 0.2.0 for next release.
Fix whitespace in build_win.bat | @@ -29,7 +29,7 @@ extern "C" {
/***** START SECTION CONFIG *****/
-#define JANET_VERSION "0.1.0"
+#define JANET_VERSION "0.2.0"
#ifndef JANET_BUILD
#define JANET_BUILD "local"
@@ -938,6 +938,13 @@ JANET_API Janet janet_scan_number(const uint8_t *src, int32_t len);
JANET_API int32_t janet_scan_integer(const uint8_t *str... |
Prepare tarball in dist directory
We changed directory to the wrong directory.
This change also separates the preparation phase from the tarball
building phase. | @@ -691,17 +691,17 @@ tar:
excl_re="^(fuzz/corpora|`echo $$excl_re | sed -e 's/ /$$|/g'`\$$)"; \
echo "$$excl_re"; \
git ls-tree -r --name-only --full-tree HEAD \
- | grep -v -E "$$excl_re" \
+ | egrep -v "$$excl_re" \
| while read F; do \
mkdir -p $$TMPDIR/$$DISTDIR/`dirname $$F`; \
cp $$F $$TMPDIR/$$DISTDIR/$$F; \
do... |
lwip: removed ASSERT in dhcp as the error might occur in runtime if packet is altered | @@ -1712,7 +1712,7 @@ decode_next:
offset_max -= q->len;
if ((offset < offset_max) && offset_max) {
q = q->next;
- LWIP_ASSERT("next pbuf was null", q);
+ LWIP_ERROR("offset pointed to next pbuf which is null", q , return ERR_VAL;);
options = (u8_t*)q->payload;
} else {
/* We've run out of bytes, probably no end marker... |
fix(draw border):border draw error if border width > radius | @@ -1080,7 +1080,7 @@ void draw_border_generic(const lv_area_t * clip_area, const lv_area_t * outer_ar
{
opa = opa >= LV_OPA_COVER ? LV_OPA_COVER : opa;
- if(rout == 0 || rin == 0) {
+ if(rout == 0 && rin == 0) {
draw_border_simple(clip_area, outer_area, inner_area, color, opa);
return;
}
|
ch_addnode: check before dereferencing ring | @@ -229,12 +229,13 @@ ch_addnode(ch_ring *ring, server *s)
{
int i;
char buf[256];
- ch_ring_entry *entries = &ring->entrylist[ring->entrycnt];
+ ch_ring_entry *entries;
char *instance = server_instance(s);
int (*cmp)(const void *, const void *) = NULL;
if (ring == NULL)
return NULL;
+ entries = &ring->entrylist[ring->... |
zephyr/drivers/cros_system/cros_system_xec.c: Format with clang-format
BRANCH=none
TEST=none | @@ -46,8 +46,8 @@ struct cros_system_xec_data {
static int system_xec_watchdog_stop(void)
{
if (IS_ENABLED(CONFIG_WATCHDOG)) {
- const struct device *wdt_dev = DEVICE_DT_GET(
- DT_NODELABEL(wdog));
+ const struct device *wdt_dev =
+ DEVICE_DT_GET(DT_NODELABEL(wdog));
if (!device_is_ready(wdt_dev)) {
LOG_ERR("Error: dev... |
Added support for ESP32-S3 chip in controller_hci_uart_esp32c3's README | -| Supported Targets | ESP32-C3 |
-| ----------------- | -------- |
+| Supported Targets | ESP32-C3 | ESP32-S3 |
+| ----------------- | -------- | -------- |
ESP-IDF UART HCI Controller
=================================
@@ -60,20 +60,19 @@ See the Getting Started Guide for full steps to configure and use ESP-IDF to bui... |
Fix nodemcu.ld | @@ -112,6 +112,7 @@ SECTIONS
*libphy.a:*( .literal .literal.* .text .text.*)
*libpp.a:*( .literal .literal.* .text .text.*)
*libgcc.a:*( .literal .literal.* .text .text.*)
+ *libnet80211.a:*(.literal .text )
/*
* The following SDK libraries have .literal and .text sections, but are
* either not used in NodeMCU or are s... |
extent uninited field wasn't being initialized | @@ -65,6 +65,7 @@ static inline extent allocate_extent(heap h, range init_range, u64 block_start,
rmnode_init(&e->node, init_range);
e->block_start = block_start;
e->allocated = allocated;
+ e->uninited = false;
return e;
}
|
Removed compilation for mac os x | @@ -4,10 +4,6 @@ python:
- "2.7"
- "3.6"
-os:
- - linux
- - osx
-
addons:
apt:
packages:
@@ -17,20 +13,11 @@ addons:
- cmake
- libgsl0-dev
- swig
- - python3-numpy
- - python-numpy
-
-# Installs system level dependencies
-before_install:
- - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
- - if [[ "$TRAVIS_... |
external/mambo: Mambo hack to add trace-imc nodes in the device-tree
Update skiboot.tcl device tree to include trace-imc node to help
test the code path in mambo. | @@ -508,6 +508,27 @@ if { $default_config == "P9" } {
mysim of addprop $thread string "scale" "512"
mysim of addprop $thread int "events" $ct_et
mysim of addprop $thread int "type" 1
+
+ #Add a common trace event node
+ set tr_et [mysim of addchild $imc_c "trace-events" ""]
+ mysim of addprop $tr_et int "#address-cells... |
Tests: added test for ASGI with UNIX socket. | @@ -60,6 +60,16 @@ custom-header: BLAH
}, 'headers'
assert resp['body'] == body, 'body'
+ def test_asgi_application_unix(self, temp_dir):
+ self.load('empty')
+
+ addr = temp_dir + '/sock'
+ assert 'success' in self.conf(
+ {"unix:" + addr: {"pass": "applications/empty"}}, 'listeners'
+ )
+
+ assert self.get(sock_type=... |
changed Tfreezing condition on land for sims without ice sheets | @@ -3013,7 +3013,7 @@ void AreaIceCovered(BODY *body, int iBody) {
body[iBody].dAreaIceCov = 0;
for (iLat=0;iLat<body[iBody].iNumLats;iLat++) {
- if (body[iBody].daIceMass[iLat] > 0 || body[iBody].daTempMaxLand[iLat] <= -10.) {
+ if (body[iBody].daIceMass[iLat] > 0 || body[iBody].daTempMaxLand[iLat] <= -2.0) {
body[iBo... |
for arm1 replace RPM_OPT_FLAGS | @@ -56,6 +56,9 @@ Docu can be found on http://www.netlib.org.
%build
%ohpc_setup_compiler
+%if "%{compiler_family}" == "arm1"
+%{__sed} -i -e 's#$(RPM_OPT_FLAGS)#-O3 -fsimdmath#g' make.inc
+%endif
make lib
|
Remove bogus package reference. | @@ -290,7 +290,6 @@ xcopy /I/Y "$(TargetPath)"
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
- <Import Project="packages\zlib-vc140-static-64.1.2.11\build\native\zlib-vc140-static-64.targets" Condition="Exists('packages\zlib-vc140-static-64.1.2.11\build\... |
doc: removed VahallaOnline references from routing.md | @@ -87,7 +87,7 @@ The following _Online Routing_ and _Offline Routing_ procedures demonstrate the
Online routing requires that you create a simple call and request to calculate the route.
-1) Create the `ValhallaOnlineRoutingService` call
+1) Create the `CartoOnlineRoutingService` call
<div class="js-TabPanes">
<ul cla... |
nimble/host/ble_sm: add restriciton for SC Only
This mode requires MITM and SC to be on, and SM_LEGACY must be off. | @@ -104,6 +104,9 @@ syscfg.defs:
value: 0
restrictions:
- 'BLE_SM_SC_LVL == 4 if 1'
+ - BLE_SM_MITM
+ - 'BLE_SM_SC if 1'
+ - '!BLE_SM_LEGACY if 1'
BLE_SM_SC_LVL:
description: >
|
pocl_driver_supports_binary: bugfix
for failure, return 0 instead of CL_BUILD_PROGRAM_FAILURE | @@ -751,15 +751,20 @@ pocl_driver_supports_binary (cl_device_id device, size_t length,
#endif
#ifdef ENABLE_SPIR
- /* SPIR binary is supported */
+ /* SPIR binary is supported if the device has cl_khr_spir */
if (bitcode_is_triple (binary, length, "spir"))
{
- POCL_RETURN_ERROR_ON (
- (strstr (device->extensions, "cl_k... |
fixed small FCS bug | @@ -1274,7 +1274,7 @@ while(1)
continue;
rth = (const rth_t*)packet;
fcsl = 0;
- field = 12;
+ field = 8;
if((rth->it_present & 0x01) == 0x01)
field += 8;
if((rth->it_present & 0x80000000) == 0x80000000)
|
Steam version fix | @@ -62,8 +62,8 @@ void GetMemoryAddresses()
{
RsGlobal = *hook::pattern("8B 0D ? ? ? ? 6A 00 6A 00 52 50").count(1).get(0).get<RsGlobalType *>(2); //0x8F4360
CDraw::pfScreenAspectRatio = *hook::pattern("FF 35 ? ? ? ? EB 0B").count(1).get(0).get<float*>(2); //0x5F53C0
- pfScreenAspectRatioSkin = *hook::pattern("DD D9 FF... |
Only render connections to/from selected scene | @@ -158,7 +158,8 @@ class Connections extends Component {
scenesLookup,
actorsLookup,
triggersLookup,
- dragging
+ dragging,
+ selectedSceneId
} = this.props;
const connections = scenes.reduce((memo, scene) => {
@@ -167,6 +168,7 @@ class Connections extends Component {
const entity = actorsLookup[entityId];
const trans... |
Disable the internal session cache in BoringSSL | @@ -101,7 +101,7 @@ int TLSClientContext::init(const char *private_key_file,
if (config.session_file) {
SSL_CTX_set_session_cache_mode(
- ssl_ctx_, SSL_SESS_CACHE_CLIENT | SSL_SESS_CACHE_NO_INTERNAL_STORE);
+ ssl_ctx_, SSL_SESS_CACHE_CLIENT | SSL_SESS_CACHE_NO_INTERNAL);
SSL_CTX_sess_set_new_cb(ssl_ctx_, new_session_cb... |
kernel/init: compare the sp of the idle to tcb values
The os_start sets idle thread's stack informations. But they are
just calculated values, not real core stack pointer.
This commit adds comparision real stack pointer to tcb values. | @@ -365,10 +365,13 @@ void os_start(void)
g_idletcb.argv = g_idleargv;
/* Fill the stack information to Idle task's tcb */
+
g_idletcb.cmn.adj_stack_size = CONFIG_IDLETHREAD_STACKSIZE;
g_idletcb.cmn.stack_alloc_ptr = (void *)(g_idle_topstack - CONFIG_IDLETHREAD_STACKSIZE);
g_idletcb.cmn.adj_stack_ptr = (void *)(g_idle_... |
Reset script control to false on scene load | @@ -268,6 +268,7 @@ void LoadScene(UINT16 index) {
actors[i].hit_3_ptr.offset = *(data_ptr++) + (*(data_ptr++) * 256);
actors[i].movement_ctx = 0;
+ actors[i].script_control = FALSE;
}
actors_active[0] = 0;
|
Updated ChangeLog with v1.2 changes. | +Changes to GoAccess 1.2 - Tuesday, March 07, 2017
+
+ - Added a Dockerfile.
+ - Added Amazon S3 bucket name as virtualhost (server block).
+ - Added a replacement for GNU getline() to dynamically expand line buffer
+ while maintaining real-time output.
+ - Added --daemonize command line option to run GoAccess as daemo... |
dpdk: disable 16-bit descriptors for X710/XL710
This fixes issue with rx packet drops on VF. | @@ -26,7 +26,7 @@ DPDK_MLX5_PMD ?= n
B := $(DPDK_BUILD_DIR)
I := $(DPDK_INSTALL_DIR)
DPDK_VERSION ?= 17.05
-PKG_SUFFIX ?= vpp2
+PKG_SUFFIX ?= vpp3
DPDK_BASE_URL ?= http://fast.dpdk.org/rel
DPDK_TARBALL := dpdk-$(DPDK_VERSION).tar.xz
DPDK_TAR_URL := $(DPDK_BASE_URL)/$(DPDK_TARBALL)
@@ -125,7 +125,6 @@ $(B)/custom-config... |
precision for capture | #include "hammer/file.h"
#define CAPTURE_DEFSIZE 512
-#define CAPTURE_DEFPREC 64 //default precision
+#define CAPTURE_DEFPREC 4 //default precision
+#define CAPTURE_MAXPREC 99 //
#define CAPTURE_MINPREC 1 //minimum preision
//not sure what's planned for precision Matt but i'll just put 64 here for 64 bits for now
//and... |
Solve minor bug in RapidJSON CMakeFile. | @@ -138,7 +138,7 @@ set_target_properties(${target}
PROPERTIES
${DEFAULT_PROJECT_OPTIONS}
FOLDER "${IDE_FOLDER}"
- COMPILE_FLAGS ${RAPIDJSON_CXX_FLAGS} # RapidJSON compile flags
+ COMPILE_FLAGS "${RAPIDJSON_CXX_FLAGS}" # RapidJSON compile flags
)
#
|
Fix side channel in the ecp_nistz256.c reference implementation
This is only used if configured with
./config -DECP_NISTZ256_REFERENCE_IMPLEMENTATION | @@ -358,16 +358,47 @@ static void ecp_nistz256_point_add(P256_POINT *r,
ecp_nistz256_sub(H, U2, U1); /* H = U2 - U1 */
/*
- * This should not happen during sign/ecdh, so no constant time violation
+ * The formulae are incorrect if the points are equal so we check for
+ * this and do doubling if this happens.
+ *
+ * Po... |
Add a note in CHANGES | Changes between 1.1.0e and 1.1.1 [xx XXX xxxx]
+ *) Add the ASN.1 types INT32, UINT32, INT64, UINT64 and variants prefixed
+ with Z. These are meant to replace LONG and ZLONG and to be size safe.
+ The use of LONG and ZLONG is discouraged and scheduled for deprecation
+ in OpenSSL 1.2.0.
+ [Richard Levitte]
+
*) Add th... |
Remove duplicate SCM handle | @@ -89,7 +89,6 @@ typedef struct _PH_SERVICE_QUERY_S1_DATA
{
PH_SERVICE_QUERY_DATA Header;
- PPH_STRING FileName;
HICON SmallIcon;
HICON LargeIcon;
} PH_SERVICE_QUERY_S1_DATA, *PPH_SERVICE_QUERY_S1_DATA;
@@ -442,13 +441,44 @@ VOID PhpUpdateServiceItemConfig(
ULONG returnLength;
PSERVICE_TRIGGER_INFO triggerInfo;
- conf... |
framesync64/autotest: testing copy() method | @@ -82,3 +82,60 @@ void autotest_framesync64()
framesync64_destroy(fs);
}
+// test copying from one object to another
+void autotest_framesync64_copy()
+{
+ unsigned int i;
+ int frames_recovered_0 = 0;
+ int frames_recovered_1 = 0;
+
+ // create objects
+ framegen64 fg = framegen64_create();
+ framesync64 fs0 = frames... |
correct typo on where to find typeOfLevelConcept.def | @@ -24,7 +24,7 @@ unsigned[4] scaledValueOfSecondFixedSurface = missing() : can_be_missing,dump,no
transient pressureUnits="hPa";
-concept_nofail vertical.typeOfLevel (unknown,"typeOfLevelConcept.def",conceptsLocalMarsDirAll,conceptsMasterMarsDir);
+concept_nofail vertical.typeOfLevel (unknown,"typeOfLevelConcept.def",... |
new sur for display of posts | $~ :: /. compatibility
== ::
:: ::
+++ topicshow
+ $: top/topicful
+ snip/{hed/marl tal/marl}
+ $~
+ ==
++ config ::
$: desc/cord :: description
publ/? :: public or private
|
Remove spurious names from EXTERNAL list
Remove unused (and nonexistent) ZHETRD_SY2SB and ZHETRD_SB2ST | $ ZHET22, ZHPEV, ZHPEVD, ZHPEVX, ZLACPY, ZLASET,
$ ZHEEVD_2STAGE, ZHEEVR_2STAGE, ZHEEVX_2STAGE,
$ ZHEEV_2STAGE, ZHBEV_2STAGE, ZHBEVD_2STAGE,
- $ ZHBEVX_2STAGE, ZHETRD_2STAGE, ZHETRD_SY2SB,
- $ ZHETRD_SB2ST, ZLATMR, ZLATMS
+ $ ZHBEVX_2STAGE, ZHETRD_2STAGE, ZLATMR, ZLATMS
* ..
* .. Intrinsic Functions ..
INTRINSIC ABS, D... |
fix solaris compilation error
don't normally exercise the UMEM code :( sorry! | #include <umem.h>
#define cache_t umem_cache_t
#define cache_alloc(a) umem_cache_alloc(a, UMEM_DEFAULT)
+#define do_cache_alloc(a) umem_cache_alloc(a, UMEM_DEFAULT)
#define cache_free(a, b) umem_cache_free(a, b)
+#define do_cache_free(a, b) umem_cache_free(a, b)
#define cache_create(a,b,c,d,e) umem_cache_create((char*)... |
fix code text upload with microbit[py] | @@ -11,7 +11,12 @@ function doSave(){
}
function getHexFile(firmware) {
- var code = Blockly.Python.workspaceToCode(Blockly.mainWorkspace) || '';
+ var code = "";
+ if(document.getElementById('tab_arduino').className == 'tabon'){
+ code = document.getElementById('content_arduino').value;
+ }else{
+ code = Blockly.Pytho... |
changing the address for iulian | @@ -219,7 +219,7 @@ case $1 in
;;
# Iulian Grindeanu
"iulian")
- emaddr=iulian@mcs.anl.gov
+ emaddr=iulian@anl.gov
;;
"gmorriso")
emaddr=gmorriso@uoregon.edu
|
[core] read files into mem when framed for HTTP/2 | @@ -2430,6 +2430,42 @@ h2_send_cqdata (request_st * const r, connection * const con, chunkqueue * const
const uint32_t fsize = h2c->s_max_frame_size;
uint32_t sent = 0;
do {
+ if (cq->first->type == FILE_CHUNK) {
+ /* combine frame header and data into single mem chunk buffer
+ * and adjust to fit efficiently into powe... |
fix(png): free png_data on error | @@ -157,11 +157,14 @@ static lv_res_t decoder_open(lv_img_decoder_t * decoder, lv_img_decoder_dsc_t *
if(strcmp(lv_fs_get_ext(fn), "png") == 0) { /*Check the extension*/
/*Load the PNG file into buffer. It's still compressed (not decoded)*/
- unsigned char * png_data; /*Pointer to the loaded data. Same as the original ... |
vppinfra: add MAX macros for clib types
Type: improvement | @@ -125,6 +125,24 @@ typedef u64 clib_address_t;
typedef u32 clib_address_t;
#endif
+#define CLIB_I8_MAX __INT8_MAX__
+#define CLIB_I16_MAX __INT16_MAX__
+#define CLIB_I32_MAX __INT32_MAX__
+#define CLIB_I64_MAX __INT64_MAX__
+
+#define CLIB_U8_MAX __UINT8_MAX__
+#define CLIB_U16_MAX __UINT16_MAX__
+#define CLIB_U32_MA... |
Fix macro stringification for one-arg math functions | @@ -256,7 +256,7 @@ JANET_CORE_FN(janet_srand,
}
#define JANET_DEFINE_MATHOP(name, fop, doc)\
-JANET_CORE_FN(janet_##name, "(math/##name x)", doc) {\
+JANET_CORE_FN(janet_##name, "(math/" #name " x)", doc) {\
janet_fixarity(argc, 1); \
double x = janet_getnumber(argv, 0); \
return janet_wrap_number(fop(x)); \
|
document string range indexing for substring | @@ -40,6 +40,15 @@ var hPosition = metalBand.indexOf("h")
System.print(metalBand[hPosition]) //> h
</pre>
+A string can also be indexed with a [Range](range.html), which will return a
+new string as a substring of the original.
+
+<pre class="snippet">
+var example = "hello wren"
+System.print(example[0...5]) //> hello... |
[openssl] Fix msan warning in aesni_cbc_cipher
([arc::pullid] fc768489-e087a3e-6f2ff9af-f59bf75f) | @@ -305,6 +305,7 @@ static int aesni_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
aesni_cbc_encrypt(in, out, len, &EVP_C_DATA(EVP_AES_KEY,ctx)->ks.ks,
EVP_CIPHER_CTX_iv_noconst(ctx),
EVP_CIPHER_CTX_encrypting(ctx));
+ __msan_unpoison(out, len);
return 1;
}
|
Switch deprecation method for RC4 | @@ -30,12 +30,14 @@ typedef struct rc4_key_st {
RC4_INT data[256];
} RC4_KEY;
# endif
-
-DEPRECATEDIN_3_0(const char *RC4_options(void))
-DEPRECATEDIN_3_0(void RC4_set_key(RC4_KEY *key, int len,
- const unsigned char *data))
-DEPRECATEDIN_3_0(void RC4(RC4_KEY *key, size_t len, const unsigned char *indata,
- unsigned ch... |
stm32/pyb_can: Handle timeout arg for FDCAN in pyb_can_send.
Following the documented pyb can_send behavior in pyb.CAN docs. | @@ -432,6 +432,20 @@ STATIC mp_obj_t pyb_can_send(size_t n_args, const mp_obj_t *pos_args, mp_map_t *
HAL_StatusTypeDef status;
#if MICROPY_HW_ENABLE_FDCAN
+ uint32_t timeout_ms = args[ARG_timeout].u_int;
+ uint32_t start = HAL_GetTick();
+ while (HAL_FDCAN_GetTxFifoFreeLevel(&self->can) == 0) {
+ if (timeout_ms == 0) ... |
Fix display floating point numbers | @@ -1136,6 +1136,14 @@ YR_API void yr_object_print_data(
switch(object->type)
{
+ case OBJECT_TYPE_FLOAT:
+ if (object->value.d != UNDEFINED)
+ printf(" = %f", object->value.d);
+ else
+ printf(" = UNDEFINED");
+
+ break;
+
case OBJECT_TYPE_INTEGER:
if (object->value.i != UNDEFINED)
|
hw/mcu/dialog: Disable PD_COM and PD_PER by default
Both are enabled automatically by peripherals which need it. | @@ -116,8 +116,4 @@ void SystemInit(void)
/* Latch all pins. We will unlatch them when initialized to do something. */
CRG_TOP->P0_RESET_PAD_LATCH_REG = CRG_TOP_P0_PAD_LATCH_REG_P0_LATCH_EN_Msk;
CRG_TOP->P1_RESET_PAD_LATCH_REG = CRG_TOP_P1_PAD_LATCH_REG_P1_LATCH_EN_Msk;
-
- /* XXX temporarily enable PD_COM and PD_PER s... |
Modified INSTALL. | @@ -9,20 +9,34 @@ simulate the examples in this repository.
N.B. We recommend installing python via anaconda
C. matplotlib v1.4.0 or higher
-2. Clone the repository from GitHub.
- Compile the code: > make opt
+2. Clone the repository from GitHub:
+ > git clone https://github.com/VirtualPlanetaryLaboratory/vplanet.git
+... |
Reword the documentation for deprecation
Change the wording of the section of CONTRIBUTING.md on function
deprecation to make it easier to understand. | @@ -34,11 +34,9 @@ The project aims to minimise the impact on users upgrading to newer versions of
To minimise such disruption to users, where a change to the interface is required, all changes to the ABI or API, even on the main development branch where new features are added, need to be justifiable by either being a ... |
Add stationary mode to simulator later | @@ -346,8 +346,9 @@ void apply_attractors(struct SurviveContext *ctx, SurviveDriverSimulator *driver
FLT s = 1.;
LinmathVec3d attractors[] = {{1, 1, 1}, {-1, 0, 1}, {0, -1, .5}};
- size_t attractor_cnt = survive_configi(ctx, "attractors", SC_GET, sizeof(attractors) / sizeof(LinmathVec3d));
- if (attractor_cnt > sizeof(... |
Bump upper bound of hslua to "< 0.10" | @@ -25,7 +25,7 @@ library
build-depends: base >= 4.7 && < 5
, aeson >= 0.11 && < 1.3
, hashable >= 1.2 && < 1.3
- , hslua >= 0.8 && < 0.9
+ , hslua >= 0.8 && < 0.10
, scientific >= 0.3 && < 0.4
, text >= 1.1.1.0 && < 1.3
, unordered-containers >= 0.2 && < 0.3
|
distro-packages/python-Cython: test proj_delim | %{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define oldpython python
-Name: python-Cython
+Name: python-Cython%{PROJ_DELIM}
Version: 0.26.1
Release: 0
Url: http://www.cython.org
|
Use correct parser to signal failure in external_entity_loader() | @@ -1068,7 +1068,7 @@ external_entity_loader(XML_Parser parser,
fail("Could not create external entity parser.");
if ( _XML_Parse_SINGLE_BYTES(extparser, text, strlen(text), XML_TRUE)
== XML_STATUS_ERROR) {
- xml_failure(parser);
+ xml_failure(extparser);
return XML_STATUS_ERROR;
}
return XML_STATUS_OK;
|
Fix SEGV in Webhook implementation
QBuffer needs to be valid until request has finished. | @@ -1623,11 +1623,20 @@ int DeRestPluginPrivate::handleWebHook(const RuleAction &action)
{
QNetworkRequest req(QUrl(action.address()));
- QBuffer data;
- data.setData(action.body().toUtf8());
+ QBuffer *data = new QBuffer(this);
+ DBG_Assert(data);
+ if (!data)
+ {
+ return REQ_NOT_HANDLED;
+ }
+
+ data->setData(action... |
Update _TZ3000_n2egfsli_door_sensor.json
Add _TZ3000_7tbsruql variation | {
"schema": "devcap1.schema.json",
- "manufacturername": ["_TZ3000_n2egfsli", "_TZ3000_oxslv1c9"],
- "modelid": ["TS0203", "TS0203"],
+ "manufacturername": ["_TZ3000_n2egfsli", "_TZ3000_oxslv1c9", "_TZ3000_7tbsruql"],
+ "modelid": ["TS0203", "TS0203", "TS0203"],
"vendor": "Tuya",
"product": "Smart Zigbee Door Window Co... |
Add TINYSPLINE_RUNTIME_LIBRARIES option. | @@ -211,6 +211,10 @@ set(TINYSPLINE_PLATFORM
#
# TINYSPLINE_ENABLE_ALL_INTERFACES
# If set, all interfaces are enabled automatically.
+#
+# TINYSPLINE_RUNTIME_LIBRARIES
+# List of compiler specific runtime libraries that mus be included into
+# distribution artifacts.
###################################################... |
Avoid freeing the conf lhashes in X509_V3_EXT*_add_conf
Fixes | @@ -487,6 +487,7 @@ X509_EXTENSION *X509V3_EXT_conf(LHASH_OF(CONF_VALUE) *conf, X509V3_CTX *ctx,
return NULL;
CONF_set_nconf(ctmp, conf);
ret = X509V3_EXT_nconf(ctmp, ctx, name, value);
+ CONF_set_nconf(ctmp, NULL);
NCONF_free(ctmp);
return ret;
}
@@ -501,6 +502,7 @@ X509_EXTENSION *X509V3_EXT_conf_nid(LHASH_OF(CONF_VA... |
increase time between packets | @@ -214,6 +214,7 @@ while(c >= 0)
c--;
}
+rctime = 10;
zeiger = zeigerakt;
c = cakt;
while(c >= 0)
@@ -270,6 +271,7 @@ while(c >= 0)
c--;
}
+rctime = 10;
zeiger = zeigerakt;
c = cakt;
while(c >= 0)
@@ -326,6 +328,7 @@ while(c >= 0)
c--;
}
+rctime = 10;
zeiger = zeigerakt;
c = cakt;
while(c >= 0)
@@ -387,6 +390,8 @@ whi... |
Add log verbose macro
This was the only log priority missing. | #include <SDL2/SDL_log.h>
+#define LOGV(...) SDL_LogVerbose(SDL_LOG_CATEGORY_APPLICATION, __VA_ARGS__)
#define LOGD(...) SDL_LogDebug(SDL_LOG_CATEGORY_APPLICATION, __VA_ARGS__)
#define LOGI(...) SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION, __VA_ARGS__)
#define LOGW(...) SDL_LogWarn(SDL_LOG_CATEGORY_APPLICATION, __VA_ARGS_... |
Removed gauge and line meter value typedef | @@ -488,8 +488,6 @@ typedef void * lv_obj_user_data_t;
/*Gauge (dependencies:lv_bar, lv_linemeter)*/
#define LV_USE_GAUGE 1
-/*Type for gauge min, max, value*/
-typedef int16_t lv_gauge_value_t;
/*Image (dependencies: lv_label*/
#define LV_USE_IMG 1
@@ -539,8 +537,6 @@ typedef int16_t lv_gauge_value_t;
/*Line meter (de... |
__dealloc__ really can't call methods, since doing so will revive the object. | @@ -300,7 +300,9 @@ cdef class HTSFile(object):
self.htsfile = NULL
def __dealloc__(self):
- self.close()
+ if self.htsfile:
+ hts_close(self.htsfile)
+ self.htsfile = NULL
def __enter__(self):
return self
|
Configure: Improve warning if no random seed source was configured
The new Configure summary box (41349b5e6db) now hides the warning
about the missing seed source (2805ee1e095) too much. To make it
more visible again, add warning markers. | @@ -1013,13 +1013,18 @@ if (scalar(@seed_sources) == 0) {
if (scalar(grep { $_ eq 'none' } @seed_sources) > 0) {
die "Cannot seed with none and anything else" if scalar(@seed_sources) > 1;
warn <<_____ if scalar(@seed_sources) == 1;
-You have selected the --with-rand-seed=none option, which effectively disables
-automa... |
Improve test for thread status
Follow the one-assertion-per-test guideline. | @@ -213,17 +213,20 @@ tests = testGroup "Haskell version of the C API"
luaSt2 <- liftIO newstate
return (luaSt1 /= luaSt2)
- , testCase "thread status" . run $ do
- status >>= liftIO . assertEqual "base status should be OK" OK
+ , testGroup "thread status"
+ [ "OK is base thread status" =:
+ OK `shouldBeResultOf` statu... |
libhfuzz: check for whether guard value is 0 | @@ -192,6 +192,9 @@ void __sanitizer_cov_trace_pc_guard_init(uint32_t * start, uint32_t * stop)
void __sanitizer_cov_trace_pc_guard(uint32_t * guard)
{
+ if (*guard == 0U) {
+ return;
+ }
bool prev = ATOMIC_XCHG(feedback->pcGuardMap[*guard], true);
if (prev == false) {
ATOMIC_PRE_INC_RELAXED(feedback->pidFeedbackPc[my_... |
Minor update of test_spglib.py | @@ -46,9 +46,12 @@ class TestSpglib(unittest.TestCase):
def setUp(self):
self._filenames = []
+ self._spgnum_ref = []
for d in dirnames:
dirname = os.path.join(data_dir, "data", d)
filenames = os.listdir(dirname)
+ self._spgnum_ref += [int(fname.split('-')[1])
+ for fname in filenames]
self._filenames += [os.path.join(... |
travis: don't build master branch
master is protected, so if something made it into master it has already
passed through CI. There is no need to build it again. | @@ -3,7 +3,8 @@ dist: bionic
cache: ccache
branches:
except:
- - /^(wip\/)?(appveyor)(\-.+)?$/
+ - master
+ - /^(wip\/)?(appveyor|drone|gh\-actions|azure|circleci)(\-.+)?$/
env:
global:
@@ -212,7 +213,6 @@ jobs:
local_dir: amalgamated
github_token: $GITHUB_TOKEN
skip_cleanup: true
- keep_history: true
- name: emscripte... |
news: improve elektrad highlight | @@ -22,7 +22,7 @@ You can also read the news [on our website](https://www.libelektra.org/news/0.9.
### `elektrad` rewritten in Go
-[elektrad](../../src/tools/elektrad/README.md) is completely rewritten in Go, which drastically improves the performance by leveraging the new [go-elektra](https://github.com/ElektraInitiat... |
Bootstrap.sh: t4p4s-16 branch cloning changed to master | @@ -37,7 +37,7 @@ git clone --recursive https://github.com/p4lang/p4c && cd p4c && git checkout $P
WAITPROC_P4C="$!"
[ $PARALLEL_INSTALL -ne 0 ] || wait "$WAITPROC_P4C"
-[ -d t4p4s-16 ] || git clone --recursive -b t4p4s-16 https://github.com/P4ELTE/t4p4s t4p4s-16 &
+[ -d t4p4s-16 ] || git clone --recursive https://gith... |
fix: delect "chainType" | @@ -616,7 +616,6 @@ __BOATSTATIC BOAT_RESULT BoatHlfabricDiscoveryExec(BoatHlfabricTx *tx_ptr,
// BoatLog_hexasciidump(BOAT_LOG_NORMAL, "http2SubmitRequest :",
// tx_ptr->wallet_ptr->http2Context_ptr->sendBuf.field_ptr,
// tx_ptr->wallet_ptr->http2Context_ptr->sendBuf.field_len);
- tx_ptr->wallet_ptr->http2Context_ptr-... |
CMakeLists.txt: set in configure_file() calls
this matches the behavior in autoconf and avoids expanding the ${var}
references in the files; the .pc files now match the autoconf install.
pointed out by in: | @@ -159,7 +159,7 @@ endif()
function(configure_pkg_config FILE)
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/${FILE}.in"
- "${CMAKE_CURRENT_BINARY_DIR}/${FILE}")
+ "${CMAKE_CURRENT_BINARY_DIR}/${FILE}" @ONLY)
if(HAVE_MATH_LIBRARY)
# MSVC doesn't have libm
@@ -226,7 +226,7 @@ endforeach()
# Generate the config.h file.
co... |
collections: fix mobile overflow on detail view | @@ -24,7 +24,7 @@ export function LinkDetail(props: LinkDetailProps) {
<LinkBlockItem minWidth="0" minHeight="0" height={['50%', '50%', '100%']} width={['100%', '100%', 'calc(100% - 350px)']} flexGrow={0} border={0} node={node} />
<Col
minHeight="0"
- flexShrink={0}
+ flexShrink={1}
width={['100%', '100%', '350px']}
fl... |
tools: Don't generate pyc files | @@ -37,8 +37,12 @@ from collections import Counter, OrderedDict
from importlib import import_module
from pkgutil import iter_modules
-from idf_py_actions.errors import FatalError
-from idf_py_actions.tools import (executable_exists, idf_version, merge_action_lists, realpath)
+# pyc files remain in the filesystem when s... |
CHANGES.md: Update the style to match makesrcdist script | -Changes in OpenPrinting CUPS
-============================
+CHANGES - OpenPrinting CUPS 2.4b1 - 2021-10-27
+==============================================
Changes in CUPS v2.4b1 (27th October 2021)
------------------------------------------
|
opae.io: fix walk to use bitfield | @@ -312,7 +312,7 @@ def dfh_walk(region, offset=0, header=None, guid=None):
h = dfh1(region, offset)
if header:
h = header(region, offset, h.value)
- elif h.dfh_version == 0:
+ elif h.bits.dfh_version == 0:
h = dfh0(region, offset, h.value)
if guid is None or guid == read_guid(region, offset+0x8):
yield offset, h
|
docs: dns: Update guide to reflect query type output. | @@ -17,7 +17,7 @@ Start the dns gadget:
```bash
$ kubectl gadget dns -n demo
-POD TYPE NAME
+POD TYPE QTYPE NAME
```
Run a pod on a different terminal and perform some DNS requests:
@@ -32,22 +32,22 @@ $ kubectl -n demo run mypod -it --image=praqma/network-multitool -- /bin/sh
The requests will be logged by the DNS gad... |
io-libs/phdf5: bump to v1.10.6; disable patches that are no longer applicable | Summary: A general purpose library and file format for storing scientific data
Name: p%{pname}-%{compiler_family}-%{mpi_family}%{PROJ_DELIM}
-Version: 1.10.5
+Version: 1.10.6
Release: 1%{?dist}
License: Hierarchical Data Format (HDF) Software Library and Utilities License
Group: %{PROJ_NAME}/io-libs
@@ -48,9 +48,6 @@ g... |
When reporting ERROR or ABORT chunks, don't use more data
that is guaranteed to be contigous.
Thanks to Felix Weinrank for finding and reporting this bug
by fuzzing the usrsctp stack. | #ifdef __FreeBSD__
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD: head/sys/netinet/sctputil.c 328028 2018-01-15 21:59:20Z tuexen $");
+__FBSDID("$FreeBSD: head/sys/netinet/sctputil.c 333382 2018-05-08 18:48:51Z tuexen $");
#endif
#include <netinet/sctp_os.h>
@@ -2779,6 +2779,13 @@ sctp_notify_assoc_change(uint16_t state, ... |
Document a configuration constraint | //
// Configurable parameters
+// - THREADS_PER_CORE must be 2 or greater.
// - Number of cache ways must be 1, 2, 4, or 8 (TLB_WAYS does not have
// this constraint). This is a limitation in the cache_lru module.
// - L1D_WAYS/L1I_WAYS must be greater than or equal to THREADS_PER_CORE,
|
Check system uptime before SDR startup delay.
Throw a system error in developer mode if the uptime is greater than
120s and `sdrWatcher()` is restarted (usually a systemd restart). | package main
import (
+ "fmt"
"log"
"os/exec"
"regexp"
@@ -17,6 +18,7 @@ import (
"strings"
"sync"
"sync/atomic"
+ "syscall"
"time"
"../godump978"
@@ -471,7 +473,21 @@ func sdrWatcher() {
prevUATEnabled := false
prevESEnabled := false
+ // Get the system (RPi) uptime.
+ info := syscall.Sysinfo_t{}
+ err := syscall.Sysi... |
docs: include networkmanger config option to avoid re-writing /etc/resolv.conf
file (observed to cause issues with xCAT recipe) | @@ -40,9 +40,12 @@ naming as appropriate if system contains dual-ported or multiple HCAs).
[sms](*\#*) perl -pi -e "s/master_ipoib/${sms_ipoib}/" /etc/sysconfig/network-scripts/ifcfg-ib0
[sms](*\#*) perl -pi -e "s/ipoib_netmask/${ipoib_netmask}/" /etc/sysconfig/network-scripts/ifcfg-ib0
-# Verify NetworkManager is runn... |
added option -u to save found usernames to file (starting with CISCO) | @@ -77,6 +77,7 @@ char *hcxoutname = NULL;
char *netntlmv1outname = NULL;
char *wdfhcxoutname = NULL;
char *nonwdfhcxoutname = NULL;
+char *usernameoutname = NULL;
hcx_t oldhcxrecord;
@@ -91,6 +92,7 @@ return;
void addleap(uint8_t *mac_1, uint8_t *mac_2, eapext_t *eapext)
{
FILE *fhnetntlmv1 = NULL;
+FILE *fhuser = NUL... |
Tweak CVS import testcase to allow a cvsadmin group.
This is easier to maintain.
bk: 5bf5596e84UFFI0yBCFpNGefWexgYQ | @@ -34,8 +34,8 @@ cvs --version | grep -q '^Concurrent.*(CVS) 1\.1' || {
# Any test that runs cvs admin will fail if there is a cvsadmin group
# and you are not in it.
# Easiest thing is to error on that.
-echo $N Check that there is no cvsadmin group .......................$NL
-grep -q cvsadmin /etc/group && fail Get ... |
Initialize t_self and t_tableOid in statext_expressions_load
The function is building a fake heap tuple, but left some of the header
fields (tid and table OID) uninitialized. Per Coverity report.
Reported-by: Ranier Vilela
Discussion: | @@ -2420,6 +2420,8 @@ statext_expressions_load(Oid stxoid, int idx)
/* Build a temporary HeapTuple control structure */
tmptup.t_len = HeapTupleHeaderGetDatumLength(td);
+ ItemPointerSetInvalid(&(tmptup.t_self));
+ tmptup.t_tableOid = InvalidOid;
tmptup.t_data = td;
tup = heap_copytuple(&tmptup);
|
Fix path for Windows test log. | @@ -64,4 +64,4 @@ jobs:
- name: msbuild
run: cd vcnet; msbuild pappl.sln
- name: test
- run: cd vcnet; ./copy-dlls.bat x64\Debug; cd x64\Debug; ./testpappl -c -l testpappl.log -L debug -o testpappl.output -t all || type testpappl.log
+ run: cd vcnet; ./copy-dlls.bat x64\Debug; cd x64\Debug; ./testpappl -c -l testpappl.... |
time: new flb_time_from_double() composer | @@ -66,6 +66,12 @@ static inline void flb_time_copy(struct flb_time *dst, struct flb_time *src)
dst->tm.tv_nsec = src->tm.tv_nsec;
}
+static inline void flb_time_from_double(struct flb_time *dst, double d)
+{
+ dst->tm.tv_sec = (int) d;
+ dst->tm.tv_nsec = (d - dst->tm.tv_sec) * 1000000000L;
+}
+
int flb_time_get(struc... |
Support group state/any_on in rule conditions | @@ -9834,6 +9834,10 @@ Resource *DeRestPluginPrivate::getResource(const char *resource, const QString &
{
return getSensorNodeForId(id);
}
+ else if (resource == RGroups)
+ {
+ return getGroupForId(id);
+ }
else if (resource == RConfig)
{
return 0; // TODO
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.