message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Prevent the same client from running the same callback for the same channel concurrently | @@ -82,6 +82,8 @@ typedef struct {
void *udata1;
/** Opaque user data#2 .. using two allows some allocations to be avoided. */
void *udata2;
+ /** Task lock (per client-channel combination */
+ spn_lock_i lock;
} client_s;
typedef struct {
@@ -436,6 +438,10 @@ static void msg_wrapper_free(msg_wrapper_s *m) {
void pubsu... |
spgram: adding tests for various size transforms | void testbench_spgramcf_noise(unsigned int _nfft,
float _noise_floor)
{
- unsigned int num_samples = 2e6; // number of samples to generate
+ unsigned int num_samples = 2000*_nfft; // number of samples to generate
float nstd = powf(10.0f,_noise_floor/20.0f); // noise std. dev.
float tol = 0.5f; // error tolerance [dB]
@... |
PeerDisplayName
* PeerDisplayName
Get peerdisplayname when available.
* travis need space | @@ -130,13 +130,18 @@ int event_encode_dict(struct odict *od, struct ua *ua, enum ua_event ev,
const char *dir;
const char *call_identifier;
+ const char *peerdisplayname;
dir = call_is_outgoing(call) ? "outgoing" : "incoming";
err |= odict_entry_add(od, "direction", ODICT_STRING, dir);
err |= odict_entry_add(od, "peer... |
libmemif: verify length of transmitted buffers
In memif_tx_burst verify that total buffer size
(data_offset + data_len) does not exceed buffer
size. If not valid returns MEMIF_ERR_INVAL_ARG.
Type: fix | @@ -2496,11 +2496,12 @@ memif_tx_burst (memif_conn_handle_t conn, uint16_t qid,
data_offset = b0->data - (d->offset + c->regions[d->region].addr);
if (data_offset != 0)
{
- /* verify data offset */
+ /* verify data offset and buffer length */
if ((data_offset < 0) ||
- (data_offset > (d->offset + offset_mask)))
+ ((dat... |
Remove packages and sorted | @@ -20,18 +20,14 @@ RUN apk add --no-cache \
build-base \
clang \
clang-static \
- cmake \
gettext-dev \
gettext-static \
- git \
+ libmaxminddb-dev \
+ libressl-dev \
linux-headers \
ncurses-dev \
ncurses-static \
- rsync \
- tzdata \
- libmaxminddb-dev \
- libressl-dev \
- xz
+ tzdata
# GoAccess
COPY . /goaccess
|
driver/ioexpander/pca9534.c: Format with clang-format
BRANCH=none
TEST=none | #include "i2c.h"
#include "pca9534.h"
-static int pca9534_pin_read(const int port, const uint16_t addr_flags,
- int reg, int pin, int *val)
+static int pca9534_pin_read(const int port, const uint16_t addr_flags, int reg,
+ int pin, int *val)
{
int ret;
ret = i2c_read8(port, addr_flags, reg, val);
@@ -17,8 +17,8 @@ stat... |
[chore] Remove useless table creation | @@ -474,9 +474,8 @@ static int db_prepare(lua_State *L)
int lua_db_release_resource(lua_State *L)
{
- if (luaL_findtable(L, LUA_REGISTRYINDEX, RESOURCE_RS_KEY, 0) != NULL) {
- luaL_error(L, "cannot find the environment of the db module");
- }
+ lua_getfield(L, LUA_REGISTRYINDEX, RESOURCE_RS_KEY);
+ if (lua_istable(L, -... |
Just one initial packet | @@ -1848,7 +1848,42 @@ int tls_api_connect_test()
}
if (ret == 0) {
- ret = tls_api_connection_loop(test_ctx, NULL, 0, &simulated_time);
+ int nb_trials = 0;
+ int nb_inactive = 0;
+
+ test_ctx->c_to_s_link->loss_mask = NULL;
+ test_ctx->s_to_c_link->loss_mask = NULL;
+
+ test_ctx->c_to_s_link->queue_delay_max = 0;
+ t... |
Docs - clarifying server-side TLS version supported on Ubuntu systems | Database that is running large workloads to hang in the workload. The Greenplum Database
issue is caused by Linux kernel bugs. <p>RHEL 7.3 and CentOS 7.3 resolves the
issue.</p></note>
- <p>Greenplum Database supports TLS V2.</p>
+ <p>Greenplum Database server supports TLS version 1.2 on RHEL/CentOS systems, and TLS ve... |
arm: handle more faults | @@ -193,7 +193,8 @@ void *hal_exceptionsFaultAddr(unsigned int n, exc_context_t *ctx)
}
if (status != EXC_ACCESS_SECTION && status != EXC_ACCESS_PAGE &&
- status != EXC_PERM_SECTION && status != EXC_PERM_PAGE)
+ status != EXC_PERM_SECTION && status != EXC_PERM_PAGE &&
+ status != EXC_TRANSLATION_PAGE)
return NULL;
retu... |
fs/tmpfs: Fix tmpfs_ioctl() logic
Fixes the logic in tmpfs_ioctl() that extracts the priv state structure from the file system structures.
It was not getting the right value and causing mmap() to fail.
This patch is back-ported from Nuttx. | @@ -1635,7 +1635,7 @@ static int tmpfs_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
/* Recover our private data from the struct file instance */
- tfo = filep->f_inode->i_private;
+ tfo = filep->f_priv;
DEBUGASSERT(tfo != NULL);
|
unlock gil for calc_fstr | @@ -2432,12 +2432,16 @@ cdef class _CatBoost:
cdef TVector[TVector[double]] fstr
cdef TVector[TVector[TVector[double]]] fstr_multi
-
+ cdef TDataProviderPtr dataProviderPtr
+ if pool:
+ dataProviderPtr = pool.__pool
+ cdef TString fstr_type_name_str = TString(<const char*>fstr_type_name)
if fstr_type_name == b'ShapValu... |
jenkinsfile.release: move mingw build step to release stage | @@ -388,6 +388,10 @@ def generateReleaseStages() {
true // use placeholder dirs
)
+ tasks << buildAndTestMingwW64_x86_64()
+
+ tasks << buildAndTestMingwW64_i686()
+
return tasks
}
@@ -572,10 +576,6 @@ def generatePublishStages() {
params.fedora_revision
)
- tasks << buildAndTestMingwW64_x86_64()
-
- tasks << buildAndT... |
fix apply on permuted dataset with empty unneeded columns | @@ -525,6 +525,26 @@ void TFullModel::CalcFlatTransposed(
ObliviousTrees.GetFlatFeatureVectorExpectedSize() <= transposedFeatures.size(),
"Not enough features provided"
);
+ TMaybe<size_t> docCount;
+ CB_ENSURE(!ObliviousTrees.FloatFeatures.empty() || !ObliviousTrees.CatFeatures.empty(),
+ "Both float features and cate... |
CBLK: Get more debug data on still occuring timeouts | #define CONFIG_COMPLETION_THREADS 1 /* 1 works best */
#define CONFIG_MAX_RETRIES 0 /* 5 is good, 0: no retries */
-#define CONFIG_BUSY_TIMEOUT_SEC 5
-#define CONFIG_REQ_TIMEOUT_SEC 2
+#define CONFIG_BUSY_TIMEOUT_SEC 10
+#define CONFIG_REQ_TIMEOUT_SEC 5
#define CONFIG_REQ_DURATION_USEC 100000 /* usec */
static int cblk... |
slingscold and paperapps | @@ -77,13 +77,17 @@ static const Layout layouts[] = {
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
static const char *dmenucmd[] = {"dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL};
static const char *termcm... |
Retry socket select operation if it fails with EINTR
reference: | @@ -705,7 +705,7 @@ static void *start_socket_srv(void *args)
do {
FD_SET(sock_fd, &readfds);
- res = select(sock_fd+1, &readfds, NULL, NULL, &tv);
+ res = TEMP_FAILURE_RETRY(select(sock_fd+1, &readfds, NULL, NULL, &tv));
if (res < 0) {
ASE_ERR("SIM-C : select error=%s\n", strerror(errno));
err_cnt++;
|
Update SSDT-AWAC | @@ -14,6 +14,15 @@ DefinitionBlock ("", "SSDT", 2, "ACDT", "AWAC", 0x00000000)
Scope (_SB)
{
+ /*
+ * Uncomment if your ACPI have method _INI an AWAC device.
+ */
+ /*
+ If (_OSI ("Darwin"))
+ {
+ STAS = One
+ }
+ */
Method (_INI, 0, NotSerialized) // _INI: Initialize
{
If (_OSI ("Darwin"))
|
Fix kernel syscon sorting order | @@ -8178,10 +8178,10 @@ modules:
functions:
ksceSysconBatteryExecBLCommand: 0x74B2AB55
ksceSysconBatteryReadBLCommand: 0x448DAFF1
+ ksceSysconBatterySWReset: 0x87DA378D
ksceSysconBatterySetBLCommand: 0xE4F29744
ksceSysconBatteryStartBLMode: 0x2CEF078E
ksceSysconBatteryStopBLMode: 0xE4AE7852
- ksceSysconBatterySWReset: ... |
set hawq_rm_stmt_vseg_memory to 256mb by default | @@ -8805,7 +8805,7 @@ static struct config_string ConfigureNamesString[] =
NULL
},
&rm_stmt_vseg_mem_str,
- "128mb", assign_hawq_rm_stmt_vseg_memory, NULL
+ "256mb", assign_hawq_rm_stmt_vseg_memory, NULL
},
{
|
memif: 14 bytes extra overhead issue fixed.
Type: fix | @@ -596,7 +596,7 @@ memif_device_input_zc_inline (vlib_main_t * vm, vlib_node_runtime_t * node,
d0 = &ring->desc[s0];
hb = b0 = vlib_get_buffer (vm, bi0);
b0->current_data = start_offset;
- b0->current_length = start_offset + d0->length;
+ b0->current_length = d0->length;
n_rx_bytes += d0->length;
if (0 && memif_desc_i... |
doc/tutorials/webui: removed "using different kdb executable" section and added reference to docker build in getting started (docker) section | @@ -33,6 +33,7 @@ To build Elektra with the elektra-web tool:
- Create and run a new docker container: `docker run -d -it -p 33333:33333 -p 33334:33334 elektra/web`
- You can now access the client on: [http://localhost:33334](http://localhost:33334)
+- You can also build it yourself in `scripts/docker/web/` (see [Build... |
Load OpenSSL symbols from libcrypto not libssl
Otherwise it doesn't resolve on Windows.
Tested also under Linux. | @@ -55,12 +55,12 @@ GpKey_t GP_DecryptSecurityKey(quint32 sourceID, const GpKey_t &securityKey)
unsigned long openSslVersion = 0;
auto _OpenSSL_version_num = reinterpret_cast<unsigned long (*)(void)>(libCrypto.resolve("OpenSSL_version_num"));
- const auto _EVP_CIPHER_CTX_new = reinterpret_cast<EVP_CIPHER_CTX*(*)(void)>... |
Fix UnlockedCompanionsBitmask in UIState
New offset, documented the name and stable-sig | @@ -31,7 +31,10 @@ public unsafe partial struct UIState
// No idea why this isn't its own thing, but I can't find any trace of any member functions or anything worthy of
// making this its own struct.
- [FieldOffset(0x169C2)] public fixed byte UnlockedCompanionsBitmask[0x3A]; //??
+ // Ref: g_Client::Game::UI::Unlocked... |
Disable Doxygen preprocessing | @@ -2011,7 +2011,7 @@ PERLMOD_MAKEVAR_PREFIX =
# C-preprocessor directives found in the sources and include files.
# The default value is: YES.
-ENABLE_PREPROCESSING = YES
+ENABLE_PREPROCESSING = NO
# If the MACRO_EXPANSION tag is set to YES, doxygen will expand all macro names
# in the source code. If set to NO, only ... |
move version string output to make sure it is printed first | @@ -188,7 +188,6 @@ const char *verbosity_str(int verbosity)
void conf_info(void)
{
- log_info("Starting %s", kadnode_version_str);
log_info("Net Mode: %s", str_af(gconf->af));
log_info("Run Mode: %s", gconf->is_daemon ? "daemon" : "foreground");
@@ -671,6 +670,8 @@ int conf_setup(int argc, char **argv)
#endif
});
+ lo... |
build: add libmemif as part of build-coverity target
Type: improvement | @@ -535,6 +535,7 @@ debug:
.PHONY: build-coverity
build-coverity:
$(call make,$(PLATFORM)_coverity,install-packages)
+ @make -C build-root PLATFORM=vpp TAG=vpp_coverity libmemif-install
.PHONY: debug-release
debug-release:
|
in_tail:fix redundant procedure | @@ -161,26 +161,20 @@ static int append_record_to_map(char **data, size_t *data_size,
msgpack_packer_init(&pck, sbuf, msgpack_sbuffer_write);
msgpack_unpacked_init(&result);
- while (msgpack_unpack_next(&result, *data, *data_size, &off)) {
+ msgpack_unpack_next(&result, *data, *data_size, &off);
root = result.data;
ret... |
zephyr: volteer: Delete configs set to NPCX defaults
Delete the Kconfig options that are now setup by default for the NPCX7
chipset.
BRANCH=none
TEST=zmake testall
TEST=boot zephyr on volteer | @@ -34,48 +34,14 @@ CONFIG_CLOCK_CONTROL=y
# WATCHDOG configuration
CONFIG_WATCHDOG=y
-# Set the delay time for printing panic data.
-# 1 cycle is about 32ms. 500ms is about 16 cycles.
-CONFIG_WDT_NPCX_DELAY_CYCLES=16
-
-# PLL configuration
-CONFIG_CLOCK_NPCX_OSC_CYCLES_PER_SEC=90000000
-CONFIG_CLOCK_NPCX_APB1_PRESCALE... |
s390x: only build kernels supported by gcc with dynamic arch support
When building with dynamic arch support, only build kernels for
architectures that are supported by the gcc we are building with. | @@ -564,8 +564,26 @@ endif
ifeq ($(ARCH), zarch)
DYNAMIC_CORE = ZARCH_GENERIC
+
+# Z13 is supported since gcc-5.2, gcc-6, and in RHEL 7.3 and newer
+GCC_GE_52 := $(subst 0,,$(shell expr `$(CC) -dumpversion` \>= "5.2"))
+
+ifeq ($(wildcard /etc/redhat-release), /etc/redhat-release)
+RHEL_WITH_Z13 := $(subst 0,,$(shell s... |
integration: Added generalized form of PodCommand | @@ -481,40 +481,52 @@ func (c *Command) Stop(t *testing.T) {
c.Started = false
}
-// BusyboxPodRepeatCommand returns a Command that creates a pod and runs
-// "cmd" each 0.1 seconds inside the pod.
-func BusyboxPodRepeatCommand(namespace, cmd string) *Command {
- cmdStr := fmt.Sprintf("while true; do %s ; sleep 0.1; do... |
[dpos] remove BP member snapshot from the chain DB | @@ -10,7 +10,6 @@ import (
"fmt"
"sync"
- "github.com/aergoio/aergo-lib/db"
"github.com/aergoio/aergo-lib/log"
"github.com/aergoio/aergo/consensus"
"github.com/aergoio/aergo/contract/system"
@@ -86,33 +85,8 @@ func (c *Cluster) init() error {
// remains the same.
c.size = uint16(len(genesisBpList))
- /*
- var (
- bestB... |
Updated README.md for v1.4.5. | @@ -74,6 +74,7 @@ not limited to:
* Apache virtual hosts
* Squid Native Format.
* W3C format (IIS).
+* Caddy's JSON Structured format.
## Why GoAccess? ##
GoAccess was designed to be a fast, terminal-based log analyzer. Its core idea
@@ -96,9 +97,9 @@ GoAccess can be compiled and used on *nix systems.
Download, extract... |
ames: ignore encrypted packets from alien comets | =/ sndr-state (~(get by peers.ames-state) sndr.packet)
:: if we don't know them, maybe enqueue a jael %public-keys request
::
+ :: Ignore encrypted packets from alien comets.
+ :: TODO: maybe crash?
+ ::
?. ?=([~ %known *] sndr-state)
+ ?: =(%pawn (clan:title sndr.packet))
+ event-core
(enqueue-alien-todo sndr.packet |... |
Small tweak. Using axis/angle | @@ -729,7 +729,7 @@ static void RefineRotationEstimate(FLT *rotOut, Point lhPoint, FLT *initialEstim
// in fact, it probably could probably be 1 without any issue. The main place where g is decremented
// is in the block below when we've made a jump that results in a worse fitness than we're starting at.
// In those ca... |
Avoid piling data if repeat is in progress | @@ -3066,6 +3066,7 @@ int picoquic_prepare_packet_ready(picoquic_cnx_t* cnx, picoquic_path_t* path_x,
size_t length = 0;
size_t checksum_overhead = picoquic_get_checksum_length(cnx, picoquic_epoch_1rtt);
size_t send_buffer_min_max = (send_buffer_max > path_x->send_mtu) ? path_x->send_mtu : send_buffer_max;
+ int split_... |
pybricks.hubs.PrimeHub: rename Light Matrix instance object | typedef struct _hubs_PrimeHub_obj_t {
mp_obj_base_t base;
mp_obj_t light;
- mp_obj_t grid;
+ mp_obj_t display;
} hubs_PrimeHub_obj_t;
STATIC mp_obj_t hubs_PrimeHub_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *args) {
hubs_PrimeHub_obj_t *self = m_new_obj(hubs_PrimeHub_obj_t);
self->ba... |
Description rendering fix. | @@ -19,19 +19,18 @@ TString BuildDescriptionFromParams(ELossFunction lossFunction, const TLossParams
return buffer;
}
buffer << ":";
- size_t currentParamIdx = 0;
+
+ TVector<std::pair<TString, TString>> keyAndValues;
for (const auto& key: params.userSpecifiedKeyOrder) {
auto it = params.paramsMap.find(key);
if (it == ... |
kiln: combine toros | abet:(spam leaf+mez ~)
abet:(emit:(spam leaf+mez ~) %pass /kiln %arvo %c [%info u.tor])
::
-++ poke-infos
- |= [mez=tape mor=(list (unit toro))]
- =< abet
- %- emil:(spam leaf+mez ~)
- %+ murn mor
- |= tor=(unit toro)
- ?~ tor ~
- `[%pass /kiln %arvo %c [%info u.tor]]
-::
++ poke-install
|= [loc=desk her=ship rem=desk]... |
Make test_alloc_attribute_whitespace() robust vs allocation changes | @@ -9607,26 +9607,16 @@ START_TEST(test_alloc_attribute_whitespace)
{
const char *text = "<doc a=' '></doc>";
int i;
-#define MAX_ALLOC_COUNT 10
- int repeat = 0;
+#define MAX_ALLOC_COUNT 15
for (i = 0; i < MAX_ALLOC_COUNT; i++) {
- /* Repeat some counts to defeat cached allocations */
- if (i == 3 && repeat == 1) {
- ... |
[tests] use generated date in HTTP If conditionals
replace hard-coded date in HTTP If conditional tests
x-ref:
"Make tests pass after 2035"
github: closes | @@ -460,10 +460,12 @@ EOF
$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 400 } ];
ok($tf->handle_http($t) == 0, 'OPTIONS for RTSP');
+my $nextyr = (gmtime(time()))[5] + 1900 + 1;
+
$t->{REQUEST} = ( <<EOF
GET /index.html HTTP/1.0
-If-Modified-Since: Sun, 01 Jan 2036 00:00:02 GMT
-If-Modified-Since... |
Update mbedTLS based PKCS to have dependency on aws_ota_codesigner_certificate.h | @@ -8,7 +8,8 @@ afr_module_include_dirs(
PUBLIC "${inc_dir}"
# Requires standard/common/include/private/aws_default_root_certificates.h
PRIVATE "${AFR_MODULES_C_SDK_DIR}/standard/common/include/private"
-
+ # Requires aws_ota_codesigner_certificate.h
+ "$<IF:${AFR_IS_TESTING},${AFR_MODULES_FREERTOS_PLUS_DIR}/aws/ota/te... |
Add tests for halo bias | @@ -195,6 +195,10 @@ def check_massfunc(cosmo):
assert_raises(TypeError, ccl.sigmaM, cosmo, mhalo_lst, a_arr)
assert_raises(TypeError, ccl.sigmaM, cosmo, mhalo_arr, a_arr)
+ # halo_bias
+ assert_( all_finite(ccl.halo_bias(cosmo, mhalo_scl, a)) )
+ assert_( all_finite(ccl.halo_bias(cosmo, mhalo_lst, a)) )
+ assert_( all... |
Reduced size of README introduction | -# vcf-validator
+# vcf-validator | [](https://travis-ci.org/EBIvariation/vcf-validator) [](https://ci.appveyor.com/project/ebivariation-... |
Retry Validate-Job operation as needed (OpenPrinting | @@ -75,6 +75,7 @@ Changes in CUPS v2.3.5
- `httpUpdate` did not reset the socket file descriptor when the TLS
negotiation failed (Apple #5915)
- The `ippeveprinter` tool now automatically uses an available port.
+- The IPP backend now retries Validate-Job requests (OpenPrinting #132)
- Removed support for the (long dep... |
doc: prettify OPAL_PCI_MAP_PE_MMIO_WINDOW | +.. _OPAL_PCI_MAP_PE_MMIO_WINDOW:
+
OPAL_PCI_MAP_PE_MMIO_WINDOW
===========================
-::
+
+.. code-block:: c
#define OPAL_PCI_MAP_PE_MMIO_WINDOW 29
- static int64_t opal_pci_map_pe_mmio_window(uint64_t phb_id,
+ int64_t opal_pci_map_pe_mmio_window(uint64_t phb_id,
uint64_t pe_number,
uint16_t window_type,
uint1... |
do not require make for docs | @@ -36,7 +36,6 @@ BuildRequires: texlive-trimspaces
BuildRequires: texlive-amsmath
BuildRequires: latexmk
BuildRequires: git
-Requires: make
%if 0%{?rhel_version} || 0%{?centos_version}
Requires: net-tools
|
Switch to main test reference | @@ -302,7 +302,7 @@ def parse_command_line():
parser.add_argument("--encoder", dest="encoders", default="avx2",
choices=coders, help="test encoder variant")
- parser.add_argument("--reference", dest="reference", default="ref-4.2-avx2",
+ parser.add_argument("--reference", dest="reference", default="ref-main-avx2",
choi... |
disable CN-GPU AVX impl in libcryptonight | @@ -884,11 +884,15 @@ inline void cryptonight_single_hash_gpu(const uint8_t *__restrict__ input, size_
fesetround(FE_TONEAREST);
# endif
+#if true // OW: always use ssse3 to circumvent build problems with CN-GPU AVX impl on some linux systems without AVX2 support
+ cn_gpu_inner_ssse3<props.iterations(), props.mask()>(c... |
VERSION bump to version 1.2.3 | @@ -27,7 +27,7 @@ endif()
# micro version is changed with a set of small changes or bugfixes anywhere in the project.
set(SYSREPO_MAJOR_VERSION 1)
set(SYSREPO_MINOR_VERSION 2)
-set(SYSREPO_MICRO_VERSION 2)
+set(SYSREPO_MICRO_VERSION 3)
set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MICR... |
Add '#' token to the lexer
We had forgotten to add it the first time around. | @@ -53,7 +53,7 @@ end
local symbol = P(false)
do
-- Ordered by decreasing length, to prioritize the longest match.
- local strs = "... .. // << >> == ~= <= >= :: -> + - * / % ^ & | ~ < > = ( ) [ ] { } ; , . :"
+ local strs = "... .. // << >> == ~= <= >= :: -> + - * / % ^ & | ~ # < > = ( ) [ ] { } ; , . :"
for s in stri... |
Fixing Haskell | @@ -43,6 +43,7 @@ library
, SwiftNav.SBP.Piksi
, SwiftNav.SBP.Sbas
, SwiftNav.SBP.Settings
+ , SwiftNav.SBP.Ssr
, SwiftNav.SBP.System
, SwiftNav.SBP.Tracking
, SwiftNav.SBP.User
|
gso: clear the offload flags from segmented buffers
Type: fix | @@ -744,6 +744,7 @@ vnet_gso_node_inline (vlib_main_t * vm,
{
sbi0 = to_next[0] = from_seg[0];
sb0 = vlib_get_buffer (vm, sbi0);
+ vnet_buffer_offload_flags_clear (sb0, 0x7F);
ASSERT (sb0->current_length > 0);
to_next += 1;
from_seg += 1;
|
signv4: restored original logic I messed up previously | @@ -574,6 +574,7 @@ static flb_sds_t flb_signv4_canonical_request(struct flb_http_client *c,
int i;
int len;
int items;
+ int post_params = FLB_FALSE;
int result;
size_t size;
char *val;
@@ -717,6 +718,7 @@ static flb_sds_t flb_signv4_canonical_request(struct flb_http_client *c,
}
cr = tmp;
flb_sds_destroy(params);
+ p... |
Added basic install rules to CMakeLists | cmake_minimum_required(VERSION 3.1)
include(GenerateExportHeader)
+include(GNUInstallDirs)
project(Zydis VERSION 2.0)
-set_property(GLOBAL PROPERTY USE_FOLDERS ON)
# =============================================================================================== #
# Overridable options #
@@ -26,9 +26,6 @@ option(ZYDIS_F... |
Stylecheck for plgo/pkg/playlist/ | @@ -533,10 +533,6 @@ migrations:
- a.yandex-team.ru/strm/plgo/pkg/live_test
- a.yandex-team.ru/strm/plgo/pkg/pinger
- a.yandex-team.ru/strm/plgo/pkg/pinger_test
- - a.yandex-team.ru/strm/plgo/pkg/playlist/live/hls
- - a.yandex-team.ru/strm/plgo/pkg/playlist/live/hls_test
- - a.yandex-team.ru/strm/plgo/pkg/playlist/requ... |
Use sail for page once again, and use one message for the static page. | %- en-xml:html
;html
;head
- ;title:"Hello, {<(trip name)>}"
+ ;title:"Hello, {(trip name)}"
==
;body
- ;h1:"Hello, {<(trip name)>}"
+ ;h1:"Hello, {(trip name)}"
+ ;p
+ ; Time is
+ ;span#time;
+ ==
+ ;script:'''
+ var evtSource = new EventSource("/~server/stream",
+ { withCredentials: true } );
+
+ evtSource.onmessage ... |
Use a faster random number generator in unit tests | @@ -70,10 +70,7 @@ validate_random_buffer(void *buf, size_t len, unsigned int seed)
u32
generate_random_u32(u32 min, u32 max)
{
- const double r = (double)rand() / (double)RAND_MAX;
- const double tmp = (double)min + r * (double)(max - min);
-
- return (u32)tmp;
+ return (xrand64_tls() % (max - min + 1)) + min;
}
void
|
Fixes ignore-referer-report wasn't released under that name
This feature has been released as hide-referer and is already documented in another line. | @@ -18,8 +18,6 @@ Changes to GoAccess 1.3 - Friday, November 23, 2018
- Added --hide-referer command line option to hide referers from report.
- Added HTTP status code 429 (TOO MANY REQUESTS).
- Added IGNORE_LEVEL_PANEL and IGNORE_LEVEL_REQ definitions.
- - Added --ignore-referer-report command line option to hide refe... |
Update lv_kb.h | @@ -48,6 +48,14 @@ enum {
};
typedef uint8_t lv_kb_mode_t;
+/** Shift states */
+enum {
+ LV_KB_SHIFT_LOWER = 0,
+ LV_KB_SHIFT_UPPER,
+ LV_KB_SHIFT_SYMBOL,
+};
+typedef uint8_t lv_kb_shift_t;
+
/*Data of keyboard*/
typedef struct
{
@@ -55,6 +63,7 @@ typedef struct
/*New data for this type */
lv_obj_t * ta; /*Pointer to... |
[numerics] mark test in fc3d_TEST_NSN_COLLECTION_2 as failed
Since commit that renders
explicit the truncation in NM_zentry, the test # 5
(FC3D_NSN_AC, on ./data/KaplasTower-i1061-4.hdf5.dat) is unstable | @@ -67,10 +67,11 @@ TestCase * build_test_collection(int n_data, const char ** data_collection, int*
collection[current].filename = data_collection[d];
collection[current].options = solver_options_create(solvers[s]);
collection[current].options->dparam[SICONOS_DPARAM_TOL] = 1e-3;
- collection[current].options->iparam[S... |
YAy PEG: Update list of limitations | @@ -131,4 +131,20 @@ sudo kdb umount user/tests/yaypeg
## Limitations
-The plugin has the same limitations as [YAMBi ](../yambi/).
+- The plugin does **not support**
+
+ - **block scalars**,
+ - **flow collections**,
+ - **tags**,
+ - **anchors & aliases**, and
+ - **multiple documents**
+
+ .
+
+### Comments
+
+While ... |
get-gcp-token: error messages
Don't dump extra console output on thread failure. Say 'gcp' in failures
to aid debugging. | %+ scry:strandio ?
/gx/settings-store/has-entry/gcp-store/[key]/noun
?. has
- (strand-fail:strandio %no-setting key ~)
+ (strand-fail:strandio (rap 3 %gcp-missing- key ~) ~)
;< =data:settings bind:m
%+ scry:strandio
data:settings
take-client-response:strandio
?> ?=(%finished -.rep)
?~ full-file.rep
- (strand-fail:stran... |
fixed a OUT transfer did not completed multiple of the max packet size | @@ -261,7 +261,7 @@ static int write_fifo(volatile void *fifo, pipe_state_t* pipe, unsigned mps)
return 0;
}
-/* 1 if the number of bytes read is less than 64 bytes
+/* 1 if the number of bytes read is less than mps bytes
* 0 otherwise */
static int read_fifo(volatile void *fifo, pipe_state_t* pipe, unsigned mps, size_... |
Fix walk processing of %ktcn. | $dtts (lead -.gen %.(+.gen dubs))
$dtwt (lead -.gen %.(+.gen expr))
$ktbr (lead -.gen %.(+.gen expr))
+ $ktcn (lead -.gen %.(+.gen expr))
$ktdt (lead -.gen %.(+.gen dubs))
$ktls (lead -.gen %.(+.gen dubs))
$kthp (lead -.gen %.(+.gen dubs))
|
Drop the set -e from travis scripts | @@ -16,7 +16,6 @@ matrix:
before_script: &common-before
- COMMON_FLAGS="DYNAMIC_ARCH=1 TARGET=NEHALEM NUM_THREADS=32"
script:
- - set -e
- make QUIET_MAKE=1 $COMMON_FLAGS $BTYPE
- make -C test $COMMON_FLAGS $BTYPE
- make -C ctest $COMMON_FLAGS $BTYPE
@@ -108,7 +107,6 @@ matrix:
- sudo sh alpine-chroot-install -p 'build... |
added dlerror() function for more verbose errors | @@ -189,7 +189,7 @@ struct flb_plugin_proxy *flb_plugin_proxy_create(const char *dso_path, int type,
/* Load shared library */
handle = dlopen(dso_path, RTLD_LAZY);
if (!handle) {
- fprintf(stderr, "[proxy] error opening %s\n", dso_path);
+ fprintf(stderr, "[proxy] error opening %s: %s\n", dso_path, dlerror());
return ... |
Restore ability to enter interactive REPL in Python3 via Y_PYTHON_ENTRY_POINT=:repl
Restore ability to enter interactive REPL in Python3 via Y_PYTHON_ENTRY_POINT=:repl
([arc::pullid] 75a70893-b57d1aba-6b4ba233-f0cc7c) | @@ -159,6 +159,9 @@ int main(int argc, char** argv) {
colon[0] = '\0';
func_name = colon + 1;
}
+ if (module_name[0] == '\0') {
+ module_name = "library.python.runtime_py3.entry_points";
+ }
if (!func_name) {
sts = RunModule(module_name);
|
Fine, 8 is better... maybe... | @@ -569,7 +569,7 @@ static const char *HTTP1_SERVICE_STR = "http1_protocol_facil_io";
static inline void http1_consume_data(intptr_t uuid, http1pr_s *p) {
ssize_t i = 0;
size_t org_len = p->buf_len;
- int pipeline_limit = 4;
+ int pipeline_limit = 8;
do {
i = http1_fio_parser(.parser = &p->parser,
.buffer = p->buf + (o... |
BugID:19125898: Change SAL send mode from async mode to sync mode | #define SAL_UDP_CLIENT_ENABLED SAL_OPT_ENABLED
/* asynchronized send mode support. */
-#define SAL_PACKET_SEND_MODE_ASYNC SAL_OPT_ENABLED
+#define SAL_PACKET_SEND_MODE_ASYNC SAL_OPT_DISABLED
/* debug, assert, error log support */
#define SAL_USE_DEBUG SAL_OPT_DISABLED
|
RISC-V support for yield-no-wait. | @@ -61,6 +61,7 @@ void yield_for(bool *cond) {
#if defined(__thumb__)
+
void yield(void) {
if (task_cur != task_last) {
tock_task_t task = task_queue[task_cur];
@@ -142,18 +143,6 @@ int yield_no_wait(void) {
}
}
-void yield_no_return(void) {
- // Because yield-no-return doesn't return, we don't need to worry
- // about... |
Trying for a better match with CR3. This works worse than the previous. | @@ -12,11 +12,11 @@ inline int funCompareSolo1 (const void *a, const void *b) {
uint32 *va= (uint32*) a;
uint32 *vb= (uint32*) b;
- if (va[1]>vb[1]) {
+ if (va[1]>vb[1]) {//ascending for 1st (counts)
return 1;
} else if (va[1]<vb[1]) {
return -1;
- } else if (va[0]>vb[0]){
+ } else if (va[0]>vb[0]){//ascending for 0th ... |
af_packet: fix coverity error
Fix coverity error associated with fd. | @@ -212,6 +212,13 @@ af_packet_interface_admin_up_down (vnet_main_t * vnm, u32 hw_if_index,
int rv, fd = socket (AF_UNIX, SOCK_DGRAM, 0);
struct ifreq ifr;
+ if (0 > fd)
+ {
+ clib_unix_warning ("af_packet_%s could not open socket",
+ apif->host_if_name);
+ return 0;
+ }
+
/* if interface is a bridge ignore */
if (apif... |
bcc: Allow KFUNC_PROBE to instrument function without arguments
Update KFUNC_PROBE and its family to allow instrument kernel
function without specifying arguments. Sometimes, we don't need
to bookkeep arguments at function entry, just store a timestamp.
This fix would allow this use case. | @@ -1309,16 +1309,16 @@ int name(unsigned long long *ctx) \
static int ____##name(unsigned long long *ctx, ##args)
#define KFUNC_PROBE(event, args...) \
- BPF_PROG(kfunc__ ## event, args)
+ BPF_PROG(kfunc__ ## event, ##args)
#define KRETFUNC_PROBE(event, args...) \
- BPF_PROG(kretfunc__ ## event, args)
+ BPF_PROG(kretf... |
soc: change region in mpu test
Previously, the test uses region 3 for the illegal access test
(0x60000000 - 0x7fffffff). This caused issues with there being
peripherals located in that memory range. Change to use region 4
(0x8000000 - 0x9fffffff) instead). | @@ -11,17 +11,24 @@ volatile static int RTC_NOINIT_ATTR access = 0;
static void trigger_illegal_access(void)
{
access = 0;
- intptr_t addr = 0x60000000;
+ intptr_t addr = 0x80000000; // MPU region 4
volatile int __attribute__((unused)) val = 0;
+ // Marked as an illegal access region at startup in ESP32, ESP32S2.
+ // ... |
Update library-using.md
At Donn's suggestion, added 3rd env var option, at bottom of doc:
"...
or:
`SCOPE_CRIBL=tcp://host:port`
" | @@ -95,3 +95,5 @@ You must also tell AppScope where to deliver events. This can be accomplished by
- `SCOPE_CONF_PATH=lib/scope.yml`
or:
- `SCOPE_EVENT_DEST=tcp://localhost:9999`
+or:
+- `SCOPE_CRIBL=tcp://host:port`
|
missed ctor; | @@ -20,6 +20,12 @@ public:
inline TSet() {
}
+ template <typename TAllocParam>
+ inline explicit TSet(TAllocParam* allocator)
+ : TBase(TKeyCompare(), allocator)
+ {
+ }
+
template <class It>
inline TSet(It f, It l)
: TBase(f, l)
|
Documentation update only: better guidance on when to [not] use the cellular examples. | # Introduction
-These directories provide examples that are specific to u-blox cellular modules, e.g. SARA-U201, SARA-R4 and SARA-R5.
+These directories provide examples that are specific to u-blox cellular modules, e.g. SARA-U201, SARA-R4 and SARA-R5. For basic things, e.g. powering up a cellular module, using a cellu... |
Fix platform thread set priority test | * @file iot_test_platform_threads.c
* @brief Tests for the functions in iot_threads.h
*/
+#include "FreeRTOS.h"
+#include "task.h"
#include "iot_config.h"
#include "unity_fixture.h"
#include "platform/iot_threads.h"
-#include "task.h"
/*-----------------------------------------------------------*/
@@ -139,21 +140,8 @@ ... |
Fix virtual table access for NULL and primitives | @@ -182,7 +182,8 @@ int fiobj_iseq____internal_complex__(FIOBJ o, FIOBJ o2) {
o2 = (FIOBJ)fio_ary_pop(&right);
if (!fiobj_iseq_simple(o, o2))
goto unequal;
- if (FIOBJECT2VTBL(o)->each && FIOBJECT2VTBL(o)->count(o)) {
+ if (FIOBJ_IS_ALLOCATED(o) && FIOBJECT2VTBL(o)->each &&
+ FIOBJECT2VTBL(o)->count(o)) {
fio_ary_push(... |
qword: Add socket() and bind() sysdeps | @@ -545,10 +545,36 @@ int sys_fcntl(int fd, int request, va_list args, int *result) {
return 0;
}
-int sys_socket(int family, int type, int protocol, int *fd) STUB_ONLY
+int sys_socket(int family, int type, int protocol, int *fd) {
+ int ret;
+ int sys_errno;
+
+ asm volatile ("syscall"
+ : "=a"(ret), "=d"(sys_errno)
+... |
ci: add esp32c6 target | @@ -30,6 +30,7 @@ USUAL_TO_FORMAL = {
'esp32c3': 'ESP32-C3',
'esp32h2': 'ESP32-H2',
'esp32c2': 'ESP32-C2',
+ 'esp32c6': 'ESP32-C6',
'linux': 'Linux',
}
@@ -40,6 +41,7 @@ FORMAL_TO_USUAL = {
'ESP32-C3': 'esp32c3',
'ESP32-H2': 'esp32h2',
'ESP32-C2': 'esp32c2',
+ 'ESP32-C6': 'esp32c6',
'Linux': 'linux',
}
|
HardwareDevices: Add static namespace string | @@ -306,10 +306,12 @@ VOID InitializeNetAdapterId(
_In_ PPH_STRING InterfaceGuid
)
{
+ static PH_STRINGREF nativeNamespacePath = PH_STRINGREF_INIT(L"\\??\\");
+
Id->InterfaceIndex = InterfaceIndex;
Id->InterfaceLuid = InterfaceLuid;
PhSetReference(&Id->InterfaceGuid, InterfaceGuid);
- Id->InterfacePath = PhConcatString... |
[catboost] Fix eval_metric docs from util
Note: mandatory check (NEED_CHECK) was skipped | @@ -74,8 +74,8 @@ def eval_metric(label, approx, metric, weight=None, group_id=None, thread_count=
approx : list or numpy.arrays or pandas.DataFrame or pandas.Series
Object approxes.
- metrics : list of strings
- List of eval metrics.
+ metric : string
+ Metric name.
weight : list or numpy.array or pandas.DataFrame or ... |
test: close loop handles
Without closing the handles here they don't get cleaned up on PyPy,
causing this test to fail. | @@ -12,6 +12,7 @@ class HandlesTest(TestCase):
def test_handles(self):
timer = pyuv.Timer(self.loop)
self.assertTrue(timer in self.loop.handles)
+ timer.close()
timer = None
self.loop.run()
self.assertFalse(self.loop.handles)
|
Documenting the options deprecating in CHANGES.md | @@ -23,6 +23,12 @@ OpenSSL 3.0
### Changes between 1.1.1 and 3.0 [xx XXX xxxx]
+ * The -cipher-commands and -digest-commands options of the command line
+ utility list has been deprecated.
+ Instead use the -cipher-algorithms and -digest-algorithms options.
+
+ *Dmitry Belyavskiy*
+
* Deprecated all the libcrypto and l... |
Update lwesp_sys_freertos_os.c | * Version: v1.1.0-dev
* Author: Adrian Carpenter (FreeRTOS port)
*/
-
#include "system/lwesp_sys.h"
#include "FreeRTOS.h"
#include "task.h"
@@ -52,7 +51,7 @@ lwesp_sys_init(void) {
uint32_t
lwesp_sys_now(void) {
- return xTaskGetTickCount();
+ return xTaskGetTickCount() * portTICK_PERIOD_MS;
}
uint8_t
|
iOS: fix build from XCode - not use switch_app old command | @@ -17,18 +17,10 @@ RHO_BUNDLE_ALREADY_BUILDED="NO"
. ~/.profile
cd ../..
-echo "START Prepare build bundle - switch app"
-
ruby --version
-rake switch_app
-
-echo "FINISH Prepare build bundle - switch app"
-
TARGET_RHODESLIBS_DIR=${SRCROOT}
-cd <%= rhodes_root_path %>
-
echo "START build bundle ..."
rake build:iphone:... |
spi: fix the issue that spi cannot be used when flash is disabled
The dma configuration function called in the ISR should be put into the IRAM.
Fixes | @@ -330,7 +330,7 @@ void spicommon_cs_free_io(int cs_gpio_num)
}
//Set up a list of dma descriptors. dmadesc is an array of descriptors. Data is the buffer to point to.
-void spicommon_setup_dma_desc_links(lldesc_t *dmadesc, int len, const uint8_t *data, bool isrx)
+void IRAM_ATTR spicommon_setup_dma_desc_links(lldesc_... |
cnat: fix cnat_translation_cli_add_del
Make the command scriptable, use unformat_line_input.
"paths" never needed to be a pool, it's used as a vector. Pools *are*
vectors so no harm but... use vec_add2(...) instead.
Type: fix | @@ -481,27 +481,37 @@ cnat_translation_cli_add_del (vlib_main_t * vm,
cnat_endpoint_t vip;
u8 flags = CNAT_FLAG_EXCLUSIVE;
cnat_endpoint_tuple_t tmp, *paths = NULL, *path;
+ unformat_input_t _line_input, *line_input = &_line_input;
+ clib_error_t *e = 0;
- while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
+... |
Enable compiling with multiple processes for VmaReplay | @@ -10,6 +10,9 @@ if (WIN32)
add_executable(VmaReplay ${VMA_REPLAY_SOURCE_FILES})
+ # Enable multithreaded compiling
+ target_compile_options(VmaReplay PRIVATE "/MP")
+
target_link_libraries(
VmaReplay
|
Ensuring if fcb->scratch is initialized to NULL, it stays that way. | @@ -48,8 +48,9 @@ fcb_rotate(struct fcb *fcb)
fcb->f_active.fe_elem_off = sizeof(struct fcb_disk_area);
fcb->f_active_id++;
}
+ if(fcb->f_scratch) {
fcb->f_scratch = fcb->f_oldest;
-
+ }
fcb->f_oldest = fcb_getnext_area(fcb, fcb->f_oldest);
out:
os_mutex_release(&fcb->f_mtx);
|
TCP_ECHO_CLIENT_DEMO app fix for CLang/IAR builds
ARM CLang and IAR linkers have issues when
external demoGetMqttSerializer symbol is declared and
not defined (i.e. TCP_ECHO_CLIENT_DEMO application) | /* Provide a function to retrieve the serializer function pointers in the MQTT demo. */
typedef struct IotMqttSerializer IotMqttSerializer_t;
+
+#if defined (MQTT_DEMO_TYPE_ENABLED)
extern const IotMqttSerializer_t * demoGetMqttSerializer( void );
#define IOT_DEMO_MQTT_SERIALIZER demoGetMqttSerializer()
+#endif
/* Incl... |
fix: run_cmd | @@ -75,7 +75,7 @@ function run_cmd() {
if [[ $ret -eq 0 ]]; then
info "==> '\$ ${cmd}' succeeded in ${runtime} seconds."
return 0
- echo
+ else
error "==> '\$ ${cmd}' failed (${ret}) in ${runtime} seconds."
return $ret
fi
|
lis2ds12: lis2ds12_set_freefall bit mask fix | @@ -989,7 +989,7 @@ int lis2ds12_set_freefall(struct sensor_itf *itf, uint8_t dur, uint8_t ths)
}
reg &= ~LIS2DS12_WAKE_DUR_FF_DUR;
- reg |= dur & 0x10 ? LIS2DS12_WAKE_DUR_FF_DUR : 0;
+ reg |= dur & 0x20 ? LIS2DS12_WAKE_DUR_FF_DUR : 0;
return lis2ds12_write8(itf, LIS2DS12_REG_WAKE_UP_DUR, reg);
}
|
set lin alg vars to ohpc versions | @@ -126,15 +126,15 @@ EOF
%if "%{compiler_family}" != "intel"
module load openblas
+module load fftw
%endif
module load numpy
CFLAGS="%{optflags} -fno-strict-aliasing" \
-ATLAS=%{_libdir}/atlas \
-FFTW=%{_libdir}
-BLAS=%{_libdir} \
-LAPACK=%{_libdir} \
+FFTW=$FFTW_LIB \
+BLAS=$OPENBLAS_LIB \
+LAPACK=$OPENBLAS_LIB \
%if... |
Fix changes to the red background channel not being detected. | @@ -425,8 +425,9 @@ static TCOD_Error TCOD_sdl2_render(
const TCOD_ConsoleTile tile = normalize_tile_for_drawing(console->tiles[console->w * y + x], atlas->tileset);
if (cache) {
TCOD_ConsoleTile* cached = &cache->tiles[cache->w * y + x];
- // True if there changes to the BG color.
- const bool bg_changed = tile.bg.g !... |
[update] ignore dir path check. | @@ -54,7 +54,9 @@ class CheckOut:
except Exception as e:
logging.error(e)
continue
-
+ logging.debug("ignore file path: {}".format(ignore_file_path))
+ logging.debug("file_ignore: {}".format(file_ignore))
+ logging.debug("dir_ignore: {}".format(dir_ignore))
try:
# judge file_path in the ignore file.
for file in file_ig... |
cache: write about kdb cache tool | @@ -25,11 +25,18 @@ POSIX compliant system (including XSI extensions).
The plugin is only compiled if the plugins `resolver` and `mmapstorage`
are also available.
+## Location of Cache
+
+The cache files are located in the user's home directory below `~/.cache/elektra/` and
+shall not be altered, otherwise the behavior... |
predictor_enc: fix build w/--disable-near-lossless | @@ -261,6 +261,8 @@ static WEBP_INLINE void GetResidual(
// x is never 0 here so we do not need to update upper_row like below.
}
#else
+ (void)max_diffs;
+ (void)height;
(void)max_quantization;
(void)used_subtract_green;
residual = VP8LSubPixels(current_row[x], predict);
@@ -324,9 +326,7 @@ static int GetBestPredictor... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.