message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Correct index for timeout | @@ -269,7 +269,7 @@ static Value post(DictuVM *vm, int argCount, Value *args) {
return EMPTY_VAL;
}
- timeout = (long) AS_NUMBER(args[2]);
+ timeout = (long) AS_NUMBER(args[3]);
argCount--;
}
|
Updated dockerfile to skip tescontainers tests | @@ -38,7 +38,7 @@ COPY . .
#COPY datafari-ee/README.txt datafari-ee/README.txt
#COPY datafari-ee/pom.xml datafari-ee/pom.xml
#COPY .git .git
-RUN mvn -f pom.xml -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B clean install
+RUN mvn -f pom.xml -DfailIfNoTests=false -Dtest='!... |
Prevent adding ioclass with the same id twice | @@ -31,6 +31,8 @@ int ocf_mngt_add_partition_to_cache(struct ocf_cache *cache,
uint32_t max_size, uint8_t priority, bool valid)
{
uint32_t size;
+ struct ocf_lst_entry *iter;
+ uint32_t iter_id;
if (!name)
return -OCF_ERR_INVAL;
@@ -51,6 +53,14 @@ int ocf_mngt_add_partition_to_cache(struct ocf_cache *cache,
return -OCF... |
BugID:18933644: add posix/cmsis in menuconfig | @@ -31,6 +31,8 @@ source "drivers/Config.in"
menu "Kernel Configuration"
source "kernel/Config.in"
source "osal/aos/Config.in"
+source "osal/posix/Config.in"
+source "osal/cmsis/Config.in"
endmenu
menu "Middleware Configuration"
|
ChangeLog: update for issue263 | * [Issue #262](https://github.com/grobian/carbon-c-relay/issues/262)
DNS round-robin on any\_of cluster doesn't rotate and causes lots of
hung connections
+* [Issue #263](https://github.com/grobian/carbon-c-relay/issues/263)
+ parser fails on `%` in regular expressions
# 3.0 (2017-04-07)
|
params: fix coverity unchecked return values | @@ -29,6 +29,7 @@ static int prepare_from_text(const OSSL_PARAM *paramdefs, const char *key,
{
const OSSL_PARAM *p;
size_t buf_bits;
+ int r;
/*
* ishex is used to translate legacy style string controls in hex format
@@ -49,11 +50,11 @@ static int prepare_from_text(const OSSL_PARAM *paramdefs, const char *key,
case OSS... |
Cleaned up the conf.py file a bit, removing some commented out lines. | @@ -37,7 +37,6 @@ if on_rtd:
return MagicMock()
MOCK_MODULES = ["_ccllib","numpy","ccllib"]
- #['pyccl','pyccl.background','pyccl.ccllib','pyccl.cls','pyccl.core','pyccl.constants','pyccl.correlation','pyccl.lsst_specs','pyccl.massfunction','pyccl.power','pyccl.pyutils']
sys.modules.update((mod_name, Mock()) for mod_na... |
mesh: Virtual address memory leak
Fixes a memory leak when a virtual address subscription is added for a
model that either has this VA already, or the model has no more space
for subscription addresses.
this is port of | @@ -36,6 +36,10 @@ static struct bt_mesh_cfg_srv *conf;
static struct label labels[CONFIG_BT_MESH_LABEL_COUNT];
+#if CONFIG_BT_MESH_LABEL_COUNT > 0
+static uint8_t va_del(uint8_t *label_uuid, uint16_t *addr);
+#endif
+
static int comp_add_elem(struct os_mbuf *buf, struct bt_mesh_elem *elem,
bool primary)
{
@@ -230,6 +2... |
Minor optimization for mempool.c
1. Improve code readability, unify the variable name in functions "rt_hw_interrupt_enable(level);" and "rt_hw_interrupt_enable(level);",
so changed variable "temp" to "level"; | @@ -134,7 +134,7 @@ RTM_EXPORT(rt_mp_init);
rt_err_t rt_mp_detach(struct rt_mempool *mp)
{
struct rt_thread *thread;
- register rt_ubase_t temp;
+ register rt_ubase_t level;
/* parameter check */
RT_ASSERT(mp != RT_NULL);
@@ -145,7 +145,7 @@ rt_err_t rt_mp_detach(struct rt_mempool *mp)
while (!rt_list_isempty(&(mp->sus... |
Print config.log when configure fails in Gitlab CI | @@ -7,8 +7,8 @@ build-kvazaar:
stage: build
script:
- ./autogen.sh
- - ./configure --enable-werror
- - make --jobs=2 V=1
+ - ./configure --enable-werror || (cat config.log && false)
+ - make --jobs=8 V=1
artifacts:
paths:
- src/kvazaar
|
Don't write files to disk during testing.
While doing our golden testing, we shouldn't write result files to
the filesystem. They are temporary and can fail. Use the in memory
comparisson function instead. | module HoonMapSetTests (tests) where
-import UrbitPrelude
import RIO.Directory
+import UrbitPrelude hiding (encodeUtf8)
+import Data.Text.Lazy.Encoding (encodeUtf8)
+import Numeric.Natural (Natural)
import Test.QuickCheck hiding ((.&.))
import Test.Tasty
import Test.Tasty.Golden as G
import Test.Tasty.QuickCheck
import... |
modules/tools/DataLog: allow appending if exists
Add ability to append data to an existing data log. | @@ -8,7 +8,7 @@ from utime import localtime, ticks_us
class DataLog():
- def __init__(self, *headers, name='log', timestamp=True, extension='csv'):
+ def __init__(self, *headers, name='log', timestamp=True, extension='csv', append=False):
# Make timestamp of the form yyyy_mm_dd_hh_mm_ss_uuuuuu
if timestamp:
@@ -18,8 +1... |
sysdeps/managarm: return error on invalid handle instead of panicking | @@ -203,6 +203,8 @@ int sys_mkdir(const char *path) {
resp.ParseFromArray(recv_resp->data, recv_resp->length);
if(resp.error() == managarm::posix::Errors::ALREADY_EXISTS) {
return EEXIST;
+ } else if(resp.error() == managarm::posix::Errors::ILLEGAL_ARGUMENTS) {
+ return EINVAL;
}else{
__ensure(resp.error() == managarm:... |
ec3po: run_tests.sh uses python3 to run unittest
BRANCH=master
TEST=run_tests.sh pass | # found in the LICENSE file.
# Discover all the unit tests in the ec3po directory and run them.
-python2 -m unittest discover -b -s util/ec3po/ -p *_unittest.py \
+python3 -m unittest discover -b -s util/ec3po/ -p "*_unittest.py" \
&& touch util/ec3po/.tests-passed
|
rsaz_avx2_eligible doesn't take parameters
GH: | @@ -28,7 +28,7 @@ void RSAZ_1024_mod_exp_avx2(BN_ULONG result[16],
const BN_ULONG exponent[16],
const BN_ULONG m_norm[16], const BN_ULONG RR[16],
BN_ULONG k0);
-int rsaz_avx2_eligible();
+int rsaz_avx2_eligible(void);
void RSAZ_512_mod_exp(BN_ULONG result[8],
const BN_ULONG base_norm[8], const BN_ULONG exponent[8],
|
Separate parameter gesture into specific events | @@ -25,14 +25,8 @@ enum clap_event_flags {
// indicate a live momentary event
CLAP_EVENT_IS_LIVE = 1 << 0,
- // live user adjustment begun
- CLAP_EVENT_BEGIN_ADJUST = 1 << 1,
-
- // live user adjustment ended
- CLAP_EVENT_END_ADJUST = 1 << 2,
-
// should record this event be recorded?
- CLAP_EVENT_SHOULD_RECORD = 1 << ... |
fix: supress 'implicit enum conversion' warning | @@ -52,7 +52,7 @@ close_opcode_name(enum ws_close_code discord_opcode)
CASE_RETURN_STR(WS_CLOSE_DISALLOWED_INTENTS);
default:
{
- enum cws_close_reason normal_opcode = discord_opcode;
+ enum cws_close_reason normal_opcode = (enum cws_close_reason)discord_opcode;
switch (normal_opcode) {
CASE_RETURN_STR(CWS_CLOSE_REASON... |
Bump version in preperation for ldns-1.7.2 | @@ -6,7 +6,7 @@ sinclude(acx_nlnetlabs.m4)
# must be numbers. ac_defun because of later processing.
m4_define([VERSION_MAJOR],[1])
m4_define([VERSION_MINOR],[7])
-m4_define([VERSION_MICRO],[1])
+m4_define([VERSION_MICRO],[2])
AC_INIT(ldns, m4_defn([VERSION_MAJOR]).m4_defn([VERSION_MINOR]).m4_defn([VERSION_MICRO]), libd... |
tls13:server:Add prepare write_server_hello | @@ -730,10 +730,70 @@ cleanup:
/*
* StateHanler: MBEDTLS_SSL_SERVER_HELLO
*/
+static int ssl_tls13_prepare_server_hello( mbedtls_ssl_context *ssl )
+{
+ int ret = 0;
+
+ if( ssl->conf->f_rng == NULL )
+ {
+ MBEDTLS_SSL_DEBUG_MSG( 1, ( "no RNG provided" ) );
+ return( MBEDTLS_ERR_SSL_NO_RNG );
+ }
+
+ if( ( ret = ssl->c... |
Yajl: Fix next release notes | @@ -90,7 +90,7 @@ The following section lists news about the [modules](https://www.libelektra.org/
- The plugin signifies arrays with the metakey array according to the [array decision](../../doc/decisions/array.md). _(Philipp Gackstatter)_
-- The plugin no longer produces additional `___dirdata` entries for empty arra... |
modcustomdevices: read all uart if no length given
This makes it convenient to read all available data:
>>> uart.read() | @@ -359,13 +359,22 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_1(customdevices_UARTDevice_waiting_obj, customdev
STATIC mp_obj_t customdevices_UARTDevice_read(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) {
PB_PARSE_ARGS_METHOD(n_args, pos_args, kw_args,
- PB_ARG_DEFAULT_INT(length, 1)
+ PB_ARG_DEFAULT_NONE(length)... |
ra: initialize variable (CID 251470) | @@ -293,7 +293,7 @@ flb_sds_t flb_ra_translate(struct flb_record_accessor *ra,
msgpack_object map)
{
int found;
- flb_sds_t tmp;
+ flb_sds_t tmp = NULL;
flb_sds_t buf;
struct mk_list *head;
struct flb_ra_parser *rp;
|
dtostrf revised | */
#include <stdio.h>
+#include <stdlib.h>
+#include <math.h>
char *dtostrf (double val, signed char width, unsigned char prec, char *sout) {
- char fmt[20];
- sprintf(fmt, "%%%d.%df", width, prec);
- sprintf(sout, fmt, val);
+ int val_int = (int)val;
+ int decimal_value = (int)(val * pow(10, prec)) - val_int * pow(10,... |
Add missing closing parenthesis in rubydoc | @@ -679,7 +679,7 @@ module Nokogiri
#
# To save indented with two dashes:
#
- # node.write_to(io, :indent_text => '-', :indent => 2
+ # node.write_to(io, :indent_text => '-', :indent => 2)
#
def write_to io, *options
options = options.first.is_a?(Hash) ? options.shift : {}
|
fixing sr_from_macro global symbol conflict | @@ -97,7 +97,7 @@ extern "C" {
/**
* @brief Macro for entering into a critical section.
*/
-os_sr_t sr_from_macro;
+static os_sr_t sr_from_macro __attribute__((unused));
#define NRFX_CRITICAL_SECTION_ENTER() OS_ENTER_CRITICAL(sr_from_macro);
|
collector_runner: intialise function pointers to help compiler
GCC believes the function pointers may be uninitialised. | @@ -68,17 +68,17 @@ collector_runner(void *s)
char metric[METRIC_BUFSIZ];
char *m = NULL;
size_t sizem = 0;
- size_t (*s_ticks)(server *);
- size_t (*s_metrics)(server *);
- size_t (*s_stalls)(server *);
- size_t (*s_dropped)(server *);
- size_t (*d_ticks)(dispatcher *);
- size_t (*d_metrics)(dispatcher *);
- size_t (*... |
[CUDA] Disable Workgroup pass for CUDA devices
This currently breaks because the CUDA get_* functions use extern
global variables which are nuked by privatizeContext(). Replacing
these variables with placeholder intrinsic functions would probably
fix it. | @@ -1404,6 +1404,8 @@ static PassManager& kernel_compiler_passes
}
// Add the work group launcher functions and privatize the pseudo variable
// (local id) accesses.
+ // TODO: get the workgroup pass working with CUDA?
+ if (strcmp(device->ops->device_name, "CUDA"))
passes.push_back("workgroup");
// Attempt to move all... |
[hardware] :bug: Remove non-standard void cast of void function | @@ -284,7 +284,7 @@ module mempool_tb;
void'($value$plusargs("PRELOAD=%s", binary));
if (binary != "") begin
// Read ELF
- void'(read_elf(binary));
+ read_elf(binary);
$display("Loading %s", binary);
while (get_section(address, length)) begin
// Read sections
|
machinarium: add c++ import declaration | -#ifndef MACHINARIUM_H_
-#define MACHINARIUM_H_
+#ifndef MACHINARIUM_H
+#define MACHINARIUM_H
/*
* machinarium.
* cooperative multitasking engine.
*/
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
@@ -234,4 +238,8 @@ machine_write(machine_io_t*, char *buf, int siz... |
Encoding of spherical harmonics sub-truncation using (IEEE part) | @@ -384,40 +384,29 @@ unsigned long grib_ieee_to_long(double x)
#ifdef IEEE
+
+/*
+ * To make these two routines consistent to grib_ieee_to_long and grib_long_to_ieee,
+ * we should not do any byte swapping but rather perform a raw copy.
+ * Byte swapping is actually implemented in grib_decode_unsigned_long and
+ * gri... |
Linux/ip: reset ifchange_initialized on shutdown
Tested-by: IoTivity Jenkins | @@ -208,7 +208,10 @@ oc_network_event_handler_mutex_unlock(void)
pthread_mutex_unlock(&mutex);
}
-void oc_network_event_handler_mutex_destroy(void) {
+void
+oc_network_event_handler_mutex_destroy(void)
+{
+ ifchange_initialized = false;
close(ifchange_sock);
remove_all_ip_interface();
remove_all_network_interface_cbs()... |
Improve bindings for certain clusters | @@ -2550,6 +2550,22 @@ bool DeRestPluginPrivate::checkSensorBindingsForAttributeReporting(Sensor *senso
{
val = sensor->getZclValue(*i, 0x0000); // Local temperature
}
+ else if (*i == THERMOSTAT_UI_CONFIGURATION_CLUSTER_ID)
+ {
+ val = sensor->getZclValue(*i, 0x0001); // Keypad lockout
+ }
+ else if (*i == DIAGNOSTICS... |
SoundData stream lua API | @@ -78,7 +78,12 @@ static int l_lovrDataNewSoundData(lua_State* L) {
uint32_t sampleRate = luaL_optinteger(L, 3, 44100);
SampleFormat format = luax_checkenum(L, 4, SampleFormat, "i16");
Blob* blob = luax_totype(L, 5, Blob);
- SoundData* soundData = lovrSoundDataCreateRaw(frames, channels, sampleRate, format, blob);
+ S... |
hoon: remove comment on batch arm docs above chap
this might actually be undesirable, don't want to leave this as a trap
for somebody in the future thinking we knew it was definitely the right
answer. having batch comments follow the chapter declaration does make a
certain amount of sense, stylistically | ==
::
++ whip :: chapter declare
- ::TODO: handle arm batch comments written above chapter declaration
%+ cook
|= [[a=whit b=term c=note] d=(map term hoon)]
^- [whit (pair term (map term hoon))]
|
UT: add a timeout-tag to make the esp_flash UT ci pass | @@ -147,7 +147,7 @@ typedef void (*flash_test_func_t)(const esp_partition_t *part);
#else //CONFIG_SPIRAM
#if !CONFIG_IDF_TARGET_ESP32C3
#define FLASH_TEST_CASE_3(STR, FUNC_TO_RUN) \
- TEST_CASE(STR", 3 chips", "[esp_flash_3][test_env=UT_T1_ESP_FLASH]") {flash_test_func(FUNC_TO_RUN, TEST_CONFIG_NUM);}
+ TEST_CASE(STR",... |
Update cli/Makefile | @@ -62,10 +62,10 @@ clean:
$(RM) -r build/*
$(RM) run/bundle.go $(SCOPE)
$(RM) coverage.out coverage.html
- rm -rf -- .gocache/*/
- rm -rf -- .gomod/*/
- rm -rf -- .gobin/x86_64/go*
- rm -rf -- .gobin/aarch64/go*
+ $(RM) -rf -- .gocache/*/
+ $(RM) -rf -- .gomod/*/
+ $(RM) -rf -- .gobin/x86_64/go*
+ $(RM) -rf -- .gobin/... |
Add SKYLAKEX to DYNAMIC_CORE list only if AVX512 is available | @@ -477,7 +477,12 @@ ifneq ($(NO_AVX), 1)
DYNAMIC_CORE += SANDYBRIDGE BULLDOZER PILEDRIVER STEAMROLLER EXCAVATOR
endif
ifneq ($(NO_AVX2), 1)
-DYNAMIC_CORE += HASWELL ZEN SKYLAKEX
+DYNAMIC_CORE += HASWELL ZEN
+endif
+ifneq ($(NO_AVX512), 1)
+ifneq ($(NO_AVX2), 1)
+DYNAMIC_CORE += SKYLAKEX
+endif
endif
endif
|
Force linking of ipptransform to zlib. | @@ -117,7 +117,7 @@ ippproxy: ippproxy.o ../libcups/cups/libcups3.a
ipptransform: ipptransform.o ipp-options.o ../libcups/cups/libcups3.a
echo Linking $@...
- $(CC) $(LDFLAGS) -o $@ ipptransform.o ipp-options.o $(LIBS)
+ $(CC) $(LDFLAGS) -o $@ ipptransform.o ipp-options.o $(LIBS) -lz
#
|
Avoid memory leak in s2n_array | @@ -44,11 +44,14 @@ struct s2n_array *s2n_array_new(size_t element_size)
struct s2n_blob mem = {0};
GUARD_PTR(s2n_alloc(&mem, sizeof(struct s2n_array)));
- struct s2n_array initilizer = {.mem = {0}, .num_of_elements = 0, .capacity = 0, .element_size = element_size};
struct s2n_array *array = (void *) mem.data;
- *array... |
OTP Tool: Comment about BSP Specific commands.
Update comment about Cmds. For application/custom BSP specific
commands, define them in the custom BSP this module. Commands
can be assigned starting at an offset so that this command set
can be expanded if required. | @@ -33,7 +33,10 @@ sys.path.append(os.path.join(os.getcwd(), "repos", "mcuboot", "scripts",
"imgtool"))
import keys as keys
-
+# Cmds that apply for the dialog BSP are defined here.
+# Custom Commands are defined in the custom BSP starting
+# at a different offset so that the default command set
+# can be expanded if n... |
Do client receive more often | @@ -425,6 +425,7 @@ int quic_client(const char* ip_address_text, int server_port,
int bytes_recv;
int bytes_sent;
uint64_t current_time = 0;
+ uint64_t loop_time = 0;
int client_ready_loop = 0;
int client_receive_loop = 0;
int established = 0;
@@ -613,6 +614,8 @@ int quic_client(const char* ip_address_text, int server_... |
Fix Solaris aes_hw_t4 compile issue | @@ -17,14 +17,15 @@ static int cipher_hw_aes_t4_initkey(PROV_CIPHER_CTX *dat,
{
int ret, bits;
PROV_AES_CTX *adat = (PROV_AES_CTX *)dat;
+ AES_KEY *ks = &adat->ks.ks;
- dat->ks = &adat->ks.ks;
+ dat->ks = (const void *)ks; /* used by cipher_hw_generic_XXX */
bits = keylen * 8;
if ((dat->mode == EVP_CIPH_ECB_MODE || dat... |
Allow timer for serial booting | @@ -165,6 +165,11 @@ hal_bsp_init(void)
hal_timer_init(2, TIM11);
#endif
+#if (MYNEWT_VAL(OS_CPUTIME_TIMER_NUM) >= 0)
+ rc = os_cputime_init(MYNEWT_VAL(OS_CPUTIME_FREQ));
+ assert(rc == 0);
+#endif
+
#if MYNEWT_VAL(SPI_0_MASTER)
rc = hal_spi_init(0, &spi0_cfg, HAL_SPI_TYPE_MASTER);
assert(rc == 0);
|
Clarify that a leak is negligible at h2o_hpack_decode_header
This addressed Coverity CID | @@ -301,6 +301,11 @@ int h2o_hpack_decode_header(h2o_mem_pool_t *pool, void *_hpack_header_table, h2o
int64_t index = 0;
int value_is_indexed = 0, do_index = 0;
+ /* This function might "leak" newly allocated memory block, assuming that the memory is from the pool and will be freed
+ * soon at pool destruction.
+ * Thi... |
Add freetype download command to MAINTAINING.md | @@ -89,6 +89,9 @@ curl -O http://www.ferzkopp.net/Software/SDL2_gfx/SDL2_gfx-1.0.4.tar.gz
# for SDL2_mixer
curl -O https://www.mpg123.de/download/mpg123-1.26.4.tar.bz2 # MP3 support
+
+# for SDL2_ttf
+curl -O -L https://download.savannah.gnu.org/releases/freetype/freetype-2.10.4.tar.gz
```
3. Set up `LDFLAGS` and `C_IN... |
activate repositories at boot | @@ -21,6 +21,8 @@ DOCKER_YUM_GROUPS_DEVELTOOLS = "RUN yum -y groupinstall \"Development tools\"
DOCKER_YUM_EPEL_RELEASE = "RUN yum -y install epel-release"
DOCKER_YUM_REMI_RELEASE = "RUN dnf -y install https://rpms.remirepo.net/enterprise/remi-release-8.rpm"
DOCKER_YUM_ENABLE_POWERTOOLS = "RUN dnf config-manager --set-... |
hslua-marshalling: add pushIterator for use with generic for loops | @@ -11,10 +11,11 @@ Tests that any data type can be pushed to Lua as userdata.
-}
module HsLua.Marshalling.UserdataTests (tests) where
+import Control.Monad (when)
import Data.Data (Data)
import Data.Word (Word64)
import Data.Typeable (Typeable)
-import HsLua.Marshalling.Userdata (metatableName, pushAny, toAny)
+import... |
lv_conf_checker: Update lv_conf_checker so it is ESP-IDF aware.
* lv_conf_checker: Update lv_conf_checker so it is ESP-IDF aware.
Include ESP-IDF headers and lv_conf_kconfig.h when using the ESP-IDF framework.
Also remove the CONFIG_LV_CONF_SKIP as it is not generated by the Kconfig file.
* lv_conf_checker: Always incl... | @@ -27,11 +27,18 @@ fout.write(
#define LV_CONF_INTERNAL_H
/* clang-format off */
+#include <stdint.h>
+
+/* Add ESP-IDF related includes */
+#if defined (ESP_PLATFORM)
+# include "sdkconfig.h"
+# include "esp_attr.h"
+#endif
+
/* Handle special Kconfig options */
#include "lv_conf_kconfig.h"
-#include <stdint.h>
-
+/*... |
Added JWt refresh | @@ -1325,6 +1325,12 @@ ACVP_RESULT acvp_resume_test_session(ACVP_CTX *ctx, const char *request_filename
val = NULL;
obj = NULL;
+ rv = acvp_refresh(ctx);
+ if (rv != ACVP_SUCCESS) {
+ ACVP_LOG_ERR("Failed to refresh login with ACVP server");
+ goto end;
+ }
+
rv = acvp_retrieve_vector_set_result(ctx, ctx->session_url);... |
User: Added sydr-fuzz target, which uses Sydr tool | .DEFAULT_GOAL := all
+.ONESHELL:
+
LCOV ?= lcov
GENHTML ?= genhtml
CC ?= gcc
@@ -115,6 +117,11 @@ else
STRIPFLAGS ?= -x
endif
+ifeq ($(SYDR),1)
+ SUFFIX := _SYDR$(SUFFIX)
+ OUT_SUFFIX := _SYDR
+endif
+
#
# Search Paths.
#
@@ -233,7 +240,7 @@ OBJS += UserFile.o UserPseudoRandom.o
# Directory where objects will be produc... |
motion_sense: Remove global fifo_flush_needed, redundant
Instead, use the event flag.
BRANCH=scarlet,poppy
TEST=Compile.
Commit-Ready: ChromeOS CL Exonerator Bot | @@ -93,8 +93,6 @@ static void print_spoof_mode_status(int id);
/* Need to wake up the AP */
static int wake_up_needed;
-/* Need to send flush events */
-static int fifo_flush_needed;
/* Number of element the AP should collect */
static int fifo_queue_count;
static int fifo_int_enabled;
@@ -750,7 +748,6 @@ static int mo... |
MSR: Restructure code | #!/bin/bash
-INFILE="$1"
@INCLUDE_COMMON@
-BLOCKS=$(sed -n '/```sh/,/```\n/p' "$1")
-BUF=
-SHELL_RECORDER_ERROR=0
+# -- Functions -----------------------------------------------------------------------------------------------------------------------------
resetGlobals()
{
@@ -106,8 +103,14 @@ translate()
rm "$TMPFILE"
... |
documentation: release note added | @@ -333,6 +333,7 @@ This section keeps you up-to-date with the multi-language support provided by El
- <<TODO>>
- Fix warning parsing in shell recorder _(@Joni1993)_
- <<TODO>>
+- Replaced `egrep` by `grep -E` _(@0x6178656c and @janldeboer)_
- <<TODO>>
- <<TODO>>
- Add audit-dependencies script to check for vulnerabili... |
test spack build with clang | @@ -30,3 +30,12 @@ setup() {
spack install libelf
assert_success
}
+
+@test "[spack] build with llvm" {
+ module load llvm4
+ spack compiler find
+ assert_success
+
+ spack install libelf%clang
+ assert_success
+}
|
copy config to ./scope/libscope directory | @@ -187,6 +187,9 @@ func (rc *Config) createWorkDir(cmd string) {
histDir := HistoryDir()
err := os.MkdirAll(histDir, 0755)
util.CheckErrSprintf(err, "error creating history dir: %v", err)
+ libScopeConfDir := LibScopeConfigDir()
+ err = os.MkdirAll(libScopeConfDir, 0755)
+ util.CheckErrSprintf(err, "error creating lib... |
crsf: ensure non-zero packets | @@ -291,7 +291,7 @@ crsf_do_more:
if (!circular_buffer_read(&rx_ring, &frame_length)) {
break;
}
- if (frame_length <= 64) {
+ if (frame_length > 0 && frame_length <= 64) {
parser_state = CRSF_PAYLOAD;
goto crsf_do_more;
}
|
Remove an unused comment | @@ -296,7 +296,7 @@ static inline int op_loadself( mrbc_vm *vm, uint32_t code, mrbc_value *regs )
int ra = GETARG_A(code);
mrbc_release(®s[ra]);
- mrbc_dup(®s[0]); // TODO: Need?
+ mrbc_dup(®s[0]);
regs[ra] = regs[0];
return 0;
|
Add ksceGzipDecompress
Add ksceGzipDecompress | @@ -70,6 +70,16 @@ int ksceHmacSha1Digest(const unsigned char *key, uint32_t key_len, const void *p
int ksceHmacSha224Digest(const unsigned char *key, uint32_t key_len, const void *plain, uint32_t len, char *result);
int ksceHmacSha256Digest(const unsigned char *key, uint32_t key_len, const void *plain, uint32_t len, c... |
Renamed variable in ccl_power.c from k_NL to PL_integral. | @@ -812,7 +812,7 @@ double ccl_kNL(ccl_cosmology *cosmo,double a,int *status) {
gsl_function F;
F.function=&kNL_integrand;
F.params=∥
- double k_NL;
+ double PL_integral;
workspace = gsl_integration_cquad_workspace_alloc(cosmo->gsl_params.N_ITERATION);
if (workspace == NULL) {
@@ -821,7 +821,7 @@ double ccl_kNL(ccl... |
ixfr-out, fix to copy more data during name compression rdata field steps. | @@ -322,10 +322,7 @@ static int ixfr_write_rr_pkt(struct query* query, struct buffer* packet,
break;
case RDATA_WF_UNCOMPRESSED_DNAME:
case RDATA_WF_LITERAL_DNAME:
- copy_len = dname_length(rr, rdlen);
- if(copy_len == 0) {
- return 1; /* assert, or skip malformed */
- }
+ copy_len = rdlen;
break;
case RDATA_WF_BYTE:
c... |
Add rotary state | @@ -55,7 +55,7 @@ enum {
LV_ROTARY_STATE_CHECKED_DISABLED = LV_BTN_STATE_CHECKED_DISABLED,
_LV_ROTARY_STATE_LAST = _LV_BTN_STATE_LAST, /* Number of states*/
};
-typedef uint8_t lv_btn_state_t;
+typedef uint8_t lv_rotary_state_t;
/*Data of rotary*/
typedef struct {
|
scope start add configuration TODO note | @@ -74,6 +74,7 @@ func (rc *Config) Start() error {
for _, procToAttach := range allProcToAttach {
fmt.Println("Following Process", alllowProc.Procname, "PID", procToAttach.Pid, "will be attached")
if !procToAttach.Scoped {
+ // TODO we need to pass configuration file but handle this not via file location
err := rc.Att... |
show sensor: include high errors in FwErrorCount
Was only displaying the low level errors logs. | @@ -5329,22 +5329,42 @@ FwCmdGetErrorCount(
if (pMediaLogCount != NULL) {
InputPayload.LogParameters.Separated.LogType = ErrorLogTypeMedia;
+
+ InputPayload.LogParameters.Separated.LogLevel = 0;
ReturnCode = FwCmdGetErrorLog(pDimm, &InputPayload, &OutputPayload, sizeof(OutputPayload), NULL, 0);
if (EFI_ERROR(ReturnCode... |
Add extern_init smoke test to known fails in check_smoke.sh | @@ -36,7 +36,7 @@ echo " A non-zero exit code means a failure occured." >> check
echo "Tests that need to be visually inspected: devices, pfspecify, pfspecify_str, stream" >> check-smoke.txt
echo "***********************************************************************************" >> check-smoke.txt
-known_fails="reduc... |
build: add determineBuildTarget | @@ -94,16 +94,7 @@ TEST_INSTALL = 'install'
NOW = new Date()
// # Determine what needs to be build #
-target = ".*"
-
-matcher = /jenkins build jenkinsfile(?:\[(.*)\])? please/
-new_target = (env.ghprbCommentBody =~ matcher)[0][1]
-if(new_target) {
- // if we specify a new target we degrade the build to unstable
- // t... |
Document the core_thread_start upcall
The core_thread_start upcall previously had a placeholder in the docs. | @@ -18,8 +18,11 @@ provider-base
/* Functions offered by libcrypto to the providers */
const OSSL_ITEM *core_gettable_params(const OSSL_CORE_HANDLE *handle);
int core_get_params(const OSSL_CORE_HANDLE *handle, OSSL_PARAM params[]);
+
+ typedef void (*OSSL_thread_stop_handler_fn)(void *arg);
int core_thread_start(const ... |
Fix java home into Dockerfile | @@ -77,7 +77,7 @@ RUN apt-get update && apt-get install --allow-unauthenticated -y \
&& rm -rf /var/lib/apt/lists/*
# For dev
RUN echo "export LANG=C.UTF-8" >> /etc/profile
-RUN echo "export JAVA_HOME=/usr/local/openjdk-8" >> /etc/profile
+RUN echo "export JAVA_HOME=/usr/local/openjdk-11" >> /etc/profile
RUN echo "expo... |
Improve error handling in pk7_doit
If a mem allocation failed we would ignore it. This commit fixes it to
always check. | @@ -316,16 +316,18 @@ BIO *PKCS7_dataInit(PKCS7 *p7, BIO *bio)
}
if (bio == NULL) {
- if (PKCS7_is_detached(p7))
+ if (PKCS7_is_detached(p7)) {
bio = BIO_new(BIO_s_null());
- else if (os && os->length > 0)
+ } else if (os && os->length > 0) {
bio = BIO_new_mem_buf(os->data, os->length);
- if (bio == NULL) {
+ } else {
... |
in_windows_exporter_metrics: Proceed perflib operation at least 1 perf_object is existing | @@ -750,7 +750,7 @@ static int we_perflib_process_instance(struct we_perflib_context *context,
offset = 0;
- if (perflib_object->instance_count > 1) {
+ if (perflib_object->instance_count >= 1) {
perf_instance_definition = (PERF_INSTANCE_DEFINITION *) input_data_block;
if (perf_instance_definition->NameLength > 0) {
|
Minimize duplicated code in cross devices settings UX flow | @@ -57,73 +57,67 @@ UX_FLOW(ux_idle_flow,
&ux_idle_flow_4_step,
FLOW_LOOP);
-#if defined(TARGET_NANOS)
-
// clang-format off
UX_STEP_CB(
ux_settings_flow_blind_signing_step,
+#ifdef TARGET_NANOS
bnnn_paging,
- switch_settings_blind_signing(),
- {
- .title = "Blind signing",
- .text = strings.common.fullAddress,
- });
-... |
pbio/angle: Use rounding when scaling down.
For example, this ensures that 750 mdeg will round to 1 deg instead of 0. | #include <stdbool.h>
#include <pbio/angle.h>
+#include <pbio/int_math.h>
// Millidegrees per rotation
#define MDEG_PER_ROT (360000)
@@ -129,13 +130,12 @@ int32_t pbio_angle_to_low_res(pbio_angle_t *a, int32_t scale) {
}
// Scale down rotations component.
- int32_t rotations_scaled = a->rotations * (MDEG_PER_ROT / scale... |
agc/example: consolidating plots into one figure | @@ -96,25 +96,21 @@ int main(int argc, char*argv[])
fprintf(fid,"n = %u;\n", num_samples);
fprintf(fid,"clear all;\n");
fprintf(fid,"close all;\n\n");
-
- // print results
for (i=0; i<num_samples; i++) {
fprintf(fid," x(%4u) = %12.4e + j*%12.4e;\n", i+1, crealf(x[i]), cimagf(x[i]));
fprintf(fid," y(%4u) = %12.4e + j*%1... |
ofs_cpeng: add all registers for completeness | @@ -45,6 +45,35 @@ drivers:
image_complete()
return 0
registers:
+ - !!ofs/register
+ - [CE_FEATURE_DFH, 0x0000, 0x1000000010001001, CE Feature DFH]
+ - - [FeatureType, [63, 60], RO, 0x1, Feature Type = AFU]
+ - [Reserved, [59, 41], RsvdZ, 0x0, Reserved]
+ - [EndOfList, [40], RO, 0x0, End Of List]
+ - [NextDfhByteOffse... |
Expand ConnectionClose doc. | @@ -23,7 +23,11 @@ The valid handle to an open connection object.
# Remarks
-**TODO**
+`ConnectionClose` cleans up and frees all resources allocated for the connection in `ConnectionOpen`.
+
+A caller should shutdown an active connection via `ConnectionShutdown` before calling `ConnectionClose`; calling `ConnectionClos... |
README,cosmetics: fix a couple typos | @@ -113,7 +113,7 @@ make install
CMake:
------
-With CMake, you can compile libwebp, cwebp, dwebp, gif2web, img2webp, webpinfo
+With CMake, you can compile libwebp, cwebp, dwebp, gif2webp, img2webp, webpinfo
and the JS bindings.
Prerequisites:
@@ -429,7 +429,7 @@ Prerequisites:
1) OpenGL & OpenGL Utility Toolkit (GLUT)... |
Test entity substitution in attributes big-endian | @@ -6453,6 +6453,24 @@ START_TEST(test_unknown_encoding_bad_ignore)
}
END_TEST
+START_TEST(test_entity_in_utf16_be_attr)
+{
+ const char text[] =
+ /* <e a='ä'></e> */
+ "\0<\0e\0 \0a\0=\0'\0&\0#\0\x32\0\x32\0\x38\0;\0'\0>\0<\0/\0e\0>";
+ const XML_Char *expected = "\xc3\xa4";
+ CharData storage;
+
+ CharData_Init... |
harness: call hake with a proper architecture | @@ -51,7 +51,7 @@ class HakeBuildBase(Build):
print archs
if not os.path.isabs(srcdir):
srcdir = os.path.relpath(srcdir, self.build_dir)
- debug.checkcmd([os.path.join(srcdir, "hake", "hake.sh"), "--source-dir", srcdir],
+ debug.checkcmd([os.path.join(srcdir, "hake", "hake.sh"), "--source-dir", srcdir, "-a", archs[0]],... |
Add more tests
Test
directory
filename
is_absolute
is_relative | @@ -19,6 +19,70 @@ return {
end),
},
+ group 'directory' {
+ test('directory from file path', function ()
+ print(path.join{'/', '2020', 'img', 'mask.jpg'})
+ assert.are_equal(
+ path.directory(path.join{'/', '2020', 'img', 'mask.jpg'}),
+ path.join{'/', '2020', 'img'}
+ )
+ end),
+ test('drops trailing path sep', func... |
Fix invalid alloc size when invalidating caches
In AddInvalidationMessage() a new chunk always has double size of last
chunk, but once the size exceeds 1GB, the max allowed alloc size, an
error like "invalid memory alloc request size 1,342,177,300" will be
thrown.
Fixed by limiting the chunk size. | @@ -248,6 +248,14 @@ AddInvalidationMessage(InvalidationChunk **listHdr,
/* Need another chunk; double size of last chunk */
int chunksize = 2 * chunk->maxitems;
+ /*
+ * Keep in mind: the max allowed alloc size is about 1GB, for
+ * simplification we set the upper limit to half of that.
+ */
+#define MAXCHUNKSIZE (Max... |
Call completion if failed to perform cleaning | @@ -256,18 +256,22 @@ static inline void ocf_cleaning_perform_cleaning(ocf_cache_t cache,
{
ocf_cleaning_t policy;
- if (unlikely(!ocf_refcnt_inc(&cache->cleaner.refcnt)))
+ if (unlikely(!ocf_refcnt_inc(&cache->cleaner.refcnt))) {
+ cmpl(&cache->cleaner, 1000);
return;
+ }
policy = cache->cleaner.policy;
ENV_BUG_ON(pol... |
Adapt cutest for query_create() and query_add_optional() | @@ -40,6 +40,7 @@ static void init_dname_compr(nsd_type* nsd)
/* create the answer to one query */
static int run_query(query_type* q, nsd_type* nsd, buffer_type* in, int bsz)
{
+ uint32_t now = 0;
int received;
query_reset(q, bsz, 0);
/* recvfrom, in q->packet */
@@ -47,9 +48,9 @@ static int run_query(query_type* q, n... |
app/system/utils: Modify ping not to use LwIP API directly
Modify lwip_freeaddrinfo to freeaddrinfo libc | @@ -479,7 +479,7 @@ int ping_process(int count, const char *taddr, int size)
}
}
- lwip_freeaddrinfo(result);
+ freeaddrinfo(result);
close(s);
printf("--- %s ping statistics ---\n", taddr);
@@ -490,7 +490,7 @@ int ping_process(int count, const char *taddr, int size)
return OK;
err_out:
- lwip_freeaddrinfo(result);
+ f... |
added initial image support to udon parser | {$code p/tape} :: code literal
{$text p/tape} :: text symbol
{$link p/(list graf) q/tape} :: URL
+ {$mage p/tape q/tape} :: image
{$expr p/tuna:hoot} :: interpolated hoon
==
--
[[lin `~] +<.^$]
[[lin ~] eat-newline]
::
- ++ look :: inspedt line
+ ++ look :: inspect line
^- (unit trig)
%+ bind (wonk (look:parse loc txt)... |
HV: Corrected return type of two static functions
hv: vtd: corrected the return type of get_qi_queue and get_ir_table to
void *
Acked-by: Eddie Dong | @@ -167,16 +167,16 @@ static inline uint8_t *get_ctx_table(uint32_t dmar_index, uint8_t bus_no)
/*
* @pre dmar_index < CONFIG_MAX_IOMMU_NUM
*/
-static inline uint8_t *get_qi_queue(uint32_t dmar_index)
+static inline void *get_qi_queue(uint32_t dmar_index)
{
static struct page qi_queues[CONFIG_MAX_IOMMU_NUM] __aligned(P... |
TCPMv2: PD Timers - Add PE SourceCap to framework
BRANCH=none
TEST=make runtests
Tested-by: Denis Brockus | @@ -588,15 +588,6 @@ static struct policy_engine {
uint32_t vdm_data[VDO_HDR_SIZE + VDO_MAX_SIZE];
uint8_t vdm_ack_min_data_objects;
- /* Timers */
-
- /*
- * Prior to a successful negotiation, a Source Shall use the
- * SourceCapabilityTimer to periodically send out a
- * Source_Capabilities Message.
- */
- uint64_t s... |
Removes unused macros | @@ -295,9 +295,6 @@ typedef enum acvp_rsa_param {
#define RSA_SIG_TYPE_PKCS1V15_NAME "PKCS1v1.5"
#define RSA_SIG_TYPE_PKCS1PSS_NAME "PSS"
-#define PROB_PRIME_TEST_2 2
-#define PROB_PRIME_TEST_3 3
-
#define PRIME_TEST_TBLC2_NAME "tblC2"
#define PRIME_TEST_TBLC3_NAME "tblC3"
|
hv: modify SOS i915 plane setting for hybrid scenario
Change i915.domain_plane_owners and i915.avail_planes_per_pipe for
hybrid scenario;because some User vm(like:Ubuntu/Debian and WaaG)
doesn't support plane restriction; it will use PipeA by default. | "no_timer_check " \
"quiet loglevel=3 " \
"i915.nuclear_pageflip=1 " \
- "i915.avail_planes_per_pipe=0x01010F " \
- "i915.domain_plane_owners=0x011111110000 " \
+ "i915.avail_planes_per_pipe=0x010700 " \
+ "i915.domain_plane_owners=0x011100001111 " \
"i915.enable_gvt=1 " \
SOS_BOOTARGS_DIFF
|
options/posix: Enable SIGIO and SIGPWR in strsignal | @@ -69,9 +69,8 @@ char *strsignal(int sig) {
CASE_FOR(SIGSEGV)
CASE_FOR(SIGTERM)
CASE_FOR(SIGPROF)
-// TODO: Uncomment these after fixing the ABI.
-// CASE_FOR(SIGIO)
-// CASE_FOR(SIGPWR)
+ CASE_FOR(SIGIO)
+ CASE_FOR(SIGPWR)
CASE_FOR(SIGALRM)
CASE_FOR(SIGBUS)
CASE_FOR(SIGCHLD)
|
Move add_subdirectory for shaders and VmaReplay to the end of the file | -if(VMA_BUILD_EXAMPLE_APP_SHADERS)
- add_subdirectory(Shaders)
-endif()
-
-if(VMA_BUILD_REPLAY_APP)
- add_subdirectory(VmaReplay)
-endif()
-
set(VMA_LIBRARY_SOURCE_FILES
VmaUsage.cpp
)
@@ -79,3 +71,11 @@ if (VMA_BUILD_EXAMPLE_APP)
message(STATUS "VmaExample application is not supported to Linux")
endif()
endif()
+
+if(... |
docs: enable openhpc repo in chroot for leap | @@ -48,5 +48,6 @@ default location for this example is in
[sms](*\#*) mkdir -m 755 $CHROOT/dev # create chroot /dev dir
[sms](*\#*) mknod -m 666 $CHROOT/dev/zero c 1 5 # create /dev/zero device
[sms](*\#*) wwmkchroot -v opensuse-15.1 $CHROOT # create base image
+[sms](*\#*) cp -p /etc/zypp/repos.d/OpenHPC.repo $CHROOT/... |
debian: bump to v0.12.4 | +td-agent-bit (0.12.4) stable; urgency=low
+
+ * Based on Fluent Bit v0.12.4
+
+ -- Eduardo Silva <eduardo@treasure-data.com> Fri, 29 Sep 2017 22:00:00 -0600
+
td-agent-bit (0.12.3) stable; urgency=low
* Based on Fluent Bit v0.12.3
|
odissey: include total sent/recv bytes in console stats | @@ -142,12 +142,14 @@ od_console_show_stats_add(shapito_stream_t *stream,
return -1;
/* total_received */
- rc = shapito_be_write_data_row_add(stream, offset, "0", 1);
+ data_len = snprintf(data, sizeof(data), "%" PRIu64, total->bytes_recv);
+ rc = shapito_be_write_data_row_add(stream, offset, data, data_len);
if (rc =... |
testcase/le_tc: AF_PACKET domain tests fixes
add checking that AF_PACKET is set, before AF_PACKET tests | @@ -377,6 +377,7 @@ static void tc_net_socket_af_ax25_sock_stream_n(void)
}
#endif
+#ifdef AF_PACKET
/**
* @testcase tc_net_socket_af_packet_sock_stream_n
* @brief
@@ -394,6 +395,7 @@ static void tc_net_socket_af_packet_sock_stream_n(void)
close(fd);
}
+#endif
#ifdef AF_UNIX
/**
@@ -1111,6 +1113,7 @@ static void tc_net... |
DataHubTest: Fix compilation | @@ -48,7 +48,7 @@ STATIC GUID SystemUUID = {0x5BC82C38, 0x4DB6, 0x4883, {0x85, 0x2E, 0xE7, 0x8D, 0
STATIC UINT8 BoardRevision = 1;
STATIC UINT64 StartupPowerEvents = 0;
STATIC UINT64 InitialTSC = 0;
-STATIC UINT8 DevicePathsSupported = 1;
+STATIC UINT32 DevicePathsSupported = 1;
STATIC UINT8 SmcRevision[OC_SMC_REVISION... |
Fix CMakeLists.txt file. | @@ -536,7 +536,7 @@ endif()
# TINYSPLINE_LIBRARY_C_FLAGS
# TINYSPLINE_LIBRARY_CXX_FLAGS
# TINYSPLINE_BINDING_CXX_FLAGS
-if(BUILD_SHARED_LIBS and ${TINYSPLINE_PLATFORM_IS_WINDOWS})
+if(BUILD_SHARED_LIBS AND ${TINYSPLINE_PLATFORM_IS_WINDOWS})
# Add TINYSPLINE_SHARED to the list of compiler definitions in order to
# expor... |
improve package.tools.cmake | @@ -116,6 +116,11 @@ function _get_cflags(package, opt)
table.join2(result, opt.cxflags)
end
table.join2(result, _get_cflags_from_packagedeps(package, opt))
+ for i, flag in ipairs(result) do
+ if flag:match(" ") then
+ result[i] = '"' .. flag .. '"'
+ end
+ end
if #result > 0 then
return table.concat(result, ' ')
end
... |
board/kinox/sensors.c: Format with clang-format
BRANCH=none
TEST=none | @@ -63,30 +63,22 @@ BUILD_ASSERT(ARRAY_SIZE(adc_channels) == ADC_CH_COUNT);
/* Temperature sensor configuration */
const struct temp_sensor_t temp_sensors[] = {
- [TEMP_SENSOR_1_CPU] = {
- .name = "CPU",
+ [TEMP_SENSOR_1_CPU] = { .name = "CPU",
.type = TEMP_SENSOR_TYPE_BOARD,
.read = get_temp_3v3_30k9_47k_4050b,
- .idx... |
[tests] fix test_mcp2 | @@ -6,7 +6,7 @@ import numpy as np
# import siconos.numerics * fails with py.test!
import siconos.numerics as SN
-def mcp_function(n1, n2, z, F):
+def mcp_function(n, z, F):
M = np.array([[2., 1.],
[1., 2.]])
@@ -14,7 +14,7 @@ def mcp_function(n1, n2, z, F):
F[:] = np.dot(M,z) + q
pass
-def mcp_Nablafunction (n1, n2, z... |
Mention AutoAdb in README | @@ -261,6 +261,16 @@ scrcpy -s 192.168.0.1:5555 # short version
You can start several instances of _scrcpy_ for several devices.
+#### Autostart on device connection
+
+You could use [AutoAdb]:
+
+```bash
+autoadb scrcpy -s '{}'
+```
+
+[AutoAdb]: https://github.com/rom1v/usbaudio
+
#### SSH tunnel
To connect to a remo... |
Protocol 21213 | @@ -24,23 +24,23 @@ extern const std::string CLIENT_DATE;
//
// database format versioning
//
-static const int DATABASE_VERSION = 31213;
+static const int DATABASE_VERSION = 21213;
//
// network protocol versioning
//
-static const int PROTOCOL_VERSION = 31213; //Old Version 21213
+static const int PROTOCOL_VERSION = ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.