message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Add the link to java files | @@ -36,7 +36,7 @@ Here we will look into, how can we write Java Plugins using - `JNA Binding`.
### Writing a Plugin
-Under the path: `/path/to/libelektra/src/bindings/jna/libelektra4j/src/main/java/org/libelektra` you can find the examples of already existing plugins and you can look into libelektra Java library, which... |
Remove special case for TLS 1.3.
We now set the server certificate in tls_choose_sigalg() so there is
no need for a special case for TLS 1.3 any more. | @@ -171,8 +171,8 @@ static int get_cert_verify_tbs_data(SSL *s, unsigned char *tls13tbs,
int tls_construct_cert_verify(SSL *s, WPACKET *pkt)
{
- EVP_PKEY *pkey;
- const EVP_MD *md;
+ EVP_PKEY *pkey = s->cert->key->privatekey;
+ const EVP_MD *md = s->s3->tmp.md[s->cert->key - s->cert->pkeys];
EVP_MD_CTX *mctx = NULL;
EV... |
Better check of return values from app_isdir and app_access
[extended tests] | @@ -676,13 +676,13 @@ int opt_next(void)
/* Just a string. */
break;
case '/':
- if (app_isdir(arg) >= 0)
+ if (app_isdir(arg) > 0)
break;
BIO_printf(bio_err, "%s: Not a directory: %s\n", prog, arg);
return -1;
case '<':
/* Input file. */
- if (strcmp(arg, "-") == 0 || app_access(arg, R_OK) >= 0)
+ if (strcmp(arg, "-")... |
Typo fixes in Markdown | @@ -159,8 +159,8 @@ vector is unit length.
To encode this we need to store only two input components in the compressed
data, and therefore use the `rrrg` coding swizzle to align the data with the
-ASTC lumiance+alpha endpoint. We can sample this in shader code using the `.ga`
-sampling swizzle, and reconstruct the Z va... |
multifile: added exporting of the commit function to contract
Related to issue | @@ -614,6 +614,7 @@ int elektraMultifileGet (Plugin * handle, KeySet * returned, Key * parentKey ELE
keyNew ("system/elektra/modules/multifile/exports/close", KEY_FUNC, elektraMultifileClose, KEY_END),
keyNew ("system/elektra/modules/multifile/exports/get", KEY_FUNC, elektraMultifileGet, KEY_END),
keyNew ("system/elekt... |
sgml docs - create resource group page - memory_auditor limit | @@ -28,6 +28,7 @@ where group_attribute is:
[ CONCURRENCY=integer ]
[ MEMORY_SHARED_QUOTA=integer ]
[ MEMORY_SPILL_RATIO=integer ]
+ [ MEMORY_AUDITOR= {vmtracker | cgroup} ]
</synopsis>
</refsynopsisdiv>
|
Use IDE specific linker script in cmake, infineon | @@ -106,7 +106,7 @@ target_compile_options(
#Linker script path
-set( linker_script "${xmclib_dir}/CMSIS/Infineon/XMC4800_series/Source/GCC/XMC4800x2048.ld" )
+set( linker_script "${xmc4800_aws_dir}/dave4/XMC4800x2048.ld" )
#All linker options
set( linker_flags
|
Fix an unclosed file and unfreed memory in out_BinaryFileSlice
Use 'goto cleanup' in both out_BinaryFileSlice and out_BinaryFile | @@ -781,8 +781,7 @@ void out_BinaryFile(char const *s, int32_t startPos)
if (startPos > fsize) {
error("Specified start position is greater than length of file\n");
- fclose(f);
- return;
+ goto cleanup;
}
fseek(f, startPos, SEEK_SET);
@@ -805,6 +804,7 @@ void out_BinaryFile(char const *s, int32_t startPos)
if (ferror(... |
VERSION bump to version 1.1.23 | @@ -45,7 +45,7 @@ set(CMAKE_C_FLAGS_PACKAGE "-g -O2 -DNDEBUG")
# micro version is changed with a set of small changes or bugfixes anywhere in the project.
set(LIBNETCONF2_MAJOR_VERSION 1)
set(LIBNETCONF2_MINOR_VERSION 1)
-set(LIBNETCONF2_MICRO_VERSION 22)
+set(LIBNETCONF2_MICRO_VERSION 23)
set(LIBNETCONF2_VERSION ${LIB... |
Enum: update validation function | @@ -181,14 +181,20 @@ static int validateWithArray (Key * key)
return 1;
}
-static int validateKey (Key * key)
+static int validateKey (Key * key, Key *parentKey)
{
+ int rc = 0;
const Key * meta = keyGetMeta (key, "check/enum");
- if (!meta) return 1;
if (keyString (meta)[0] != '#')
- return validateWithList (key);
+ ... |
Add traceback printout for addError | @@ -24,8 +24,13 @@ warnings = []
def addError(where, msg):
+ import traceback
+ import itertools
+ sb = traceback.extract_stack()
+ res = list(itertools.dropwhile(lambda (mod, line, fun, code): mod == 'src/compiler.py', sb))
+
global errors
- errors += ["ERROR: " + msg + " (While " + where + ").\n"]
+ errors += ["ERROR... |
add -V (version), -h (help), and -d (debug) | #
# Copyright 2019 Fastly, Toru Maesaka
-from bcc import BPF, USDT
+from bcc import BPF, USDT, __version__ as bcc_version
from collections import OrderedDict
-import binascii, getopt, json, sys, time, os
+import binascii, getopt, json, sys, time, os, platform
+
+version = "0.0.1"
# sudo itself if it is not running as r... |
Docs: increase max of extra_float_digits to 3 | <body>
<p>Adjusts the number of digits displayed for floating-point values, including float4, float8,
and geometric data types. The parameter value is added to the standard number of digits. The
- value can be set as high as 2, to include partially-significant digits; this is especially
+ value can be set as high as 3,... |
tests: add support for ports published via Docker for Windows | @@ -231,6 +231,14 @@ static int open_socket_to_container(char *container_id)
ret = -1;
}
+ /* 0.0.0.0 is returned by Docker for Windows, because the container
+ is reachable from anywhere. But we cannot connect to 0.0.0.0,
+ instead we assume localhost and try to connect to 127.0.0.1. */
+ if(ip_address && strcmp(ip_ad... |
Check size of visit_dist_data.tar.xz before deciding to untar.
* Check size of visit_dist_data.tar.xz before deciding to untar.
Prevent untar failure during build_visit with the file is the lfs'd version not the real one.
* Update src/tools/data/datagen/CMakeLists.txt | #
# Mark C. Miller, Wed Mar 23 21:12:34 PDT 2022
# Elim use of 7z in favor of vanilla tar
+#
+# Kathleen Biagas, Fri Mar 25 11:41:48 PDT 2022
+# Test the size of visit_dist_data.tar.xz to ensure its the real one
+# and not the lfs'd version. Otherwise untar will fail.
+#
#***********************************************... |
Add assembly test. | (assert (= 1 (try (map) ([err] 1))) "bad arity 4")
(assert (= 1 (try (not) ([err] 1))) "bad arity 5")
+# Assembly test
+# Fibonacci sequence, implemented with naive recursion.
+(def fibasm (asm '{
+ arity 1
+ bytecode [
+ (ltim 1 0 0x2) # $1 = $0 < 2
+ (jmpif 1 :done) # if ($1) goto :done
+ (lds 1) # $1 = self
+ (addim... |
spi: Fix SPI Slave TX/RX bitlen configuring wrong registers
The maximum input length for the SPI Slave should be applied to the read
buffer configuration, not for the write buffer. Similarly, the output
configuration should also target the write buffer. | @@ -744,7 +744,7 @@ static inline void spi_ll_set_mosi_bitlen(spi_dev_t *hw, size_t bitlen)
*/
static inline void spi_ll_slave_set_rx_bitlen(spi_dev_t *hw, size_t bitlen)
{
- hw->slv_wrbuf_dlen.bit_len = bitlen - 1;
+ hw->slv_rdbuf_dlen.bit_len = bitlen - 1;
}
/**
@@ -755,7 +755,7 @@ static inline void spi_ll_slave_set... |
[bsp/nrf5x] Fix the Kconfig of nrf52832 | @@ -229,7 +229,7 @@ menu "On-chip Peripheral Drivers"
default 1
config BSP_USING_I2C0
bool "Enable I2C0 bus"
- default n
+ default y
if BSP_USING_I2C0
config NRFX_TWIM0_ENABLED
int
|
Use TLSEXT_KEYNAME_LENGTH in tls_decrypt_ticket. | @@ -1252,8 +1252,8 @@ TICKET_RETURN tls_decrypt_ticket(SSL *s, const unsigned char *etick,
}
/* Attempt to decrypt session data */
/* Move p after IV to start of encrypted ticket, update length */
- p = etick + 16 + EVP_CIPHER_CTX_iv_length(ctx);
- eticklen -= 16 + EVP_CIPHER_CTX_iv_length(ctx);
+ p = etick + TLSEXT_KE... |
dohclient memory leak fix | @@ -227,6 +227,7 @@ make_query(char* qname, char* qtype, char* qclass)
qinfo.local_alias = NULL;
qinfo_query_encode(buf, &qinfo); /* flips buffer */
+ free(qinfo.qname);
sldns_buffer_write_u16_at(buf, 0, 0x0000);
sldns_buffer_write_u16_at(buf, 2, BIT_RD);
memset(&edns, 0, sizeof(edns));
@@ -401,6 +402,7 @@ http2_sessio... |
zero allocated memory | @@ -246,7 +246,7 @@ static char * parse_path_specifier (char * format, struct extractor_specifier *
format ++; // eat up ']'
if (*format == '[') {
format ++;
- struct path_specifier * next_path = malloc(sizeof(*next_path));
+ struct path_specifier * next_path = calloc(1, sizeof(*next_path));
curr_path->next = next_path... |
sys/log: Fix build issue with cli and no slot1 | #include "cbmem/cbmem.h"
#include "log/log.h"
+#if MYNEWT_VAL(LOG_FCB_SLOT1)
#include "log/log_fcb_slot1.h"
+#endif
#include "shell/shell.h"
#include "console/console.h"
@@ -99,6 +101,7 @@ err:
return (rc);
}
+#if MYNEWT_VAL(LOG_FCB_SLOT1)
int
shell_log_slot1_cmd(int argc, char **argv)
{
@@ -131,6 +134,7 @@ shell_log_s... |
examples/conformance/CMakeLists.txt: fix dependencies of spirv-binaries custom target | @@ -114,8 +114,10 @@ if(HAVE_SPIRV_TOOLS)
"-l" "${SPIRV_VAL}"
DEPENDS "${TS_SRCDIR}/spirv_new/spirv_asm/atomic_inc_global.spvasm64"
VERBATIM)
- add_custom_target(opencl_cts_spirv_binaries DEPENDS "${TS_BUILDDIR}/spirv_new/spirv_bin/atomic_inc_global.spv64")
- add_dependencies(${TS_NAME} opencl_cts_spirv_binaries)
+ add... |
tests/basics/iter1.py: Add more tests for walking a user-defined iter.
Some code in mp_iternext() was only tested by the native emitter, so the
tests added here test this function using just the bytecode emitter. | @@ -68,3 +68,12 @@ except StopIteration:
for i in myiter(32):
print(i)
+
+# repeat some of the above tests but use tuple() to walk the iterator (tests mp_iternext)
+print(tuple(myiter(5)))
+print(tuple(myiter(12)))
+print(tuple(myiter(32)))
+try:
+ tuple(myiter(22))
+except TypeError:
+ print('raised TypeError')
|
Fix default borders for PrecisionAt and RecallAt metrics. | @@ -3162,7 +3162,7 @@ namespace {
void GetBestValue(EMetricBestValue* valueType, float* bestValue) const override;
private:
const int TopSize;
- const double TargetBorder = GetDefaultTargetBorder();
+ const double TargetBorder = 0.0;
};
}
@@ -3171,8 +3171,7 @@ THolder<IMetric> MakePrecisionAtKMetric(int topSize) {
}
TP... |
Travis: Remove macOS 10.11 build job | @@ -45,10 +45,6 @@ matrix:
osx_image: xcode8.3
compiler: clang
- - os: osx
- osx_image: xcode7.3
- compiler: clang
-
- os: linux
compiler: gcc
@@ -129,7 +125,6 @@ before_script:
if [[ "$TRAVIS_OS_NAME" == "linux" && "$CC" == "clang" || "$TRAVIS_OS_NAME" == "osx" && "${CC:0:3}" == "gcc" ]]; then
CMAKE_OPT+=("-DCOMMON_FL... |
Fix tests for the new UI hierarchy | @@ -35,11 +35,18 @@ class PytoTests: XCTestCase {
if !Python.shared.isScriptRunning(url!.path) {
timer.invalidate()
- let splitVC = keyWindow?.topViewController as? EditorSplitViewController
+ let splitVC: EditorSplitViewController?
+
+ if #available(iOS 14.0, *), let scene = keyWindow?.windowScene {
+ splitVC = Editor... |
refactor: Fix errors in comments
issue | /**
@brief platform interface
-@file boatPlatform.h contains boat platform port interface functions.
+@file boatplatform.h contains boat platform port interface functions.
*/
#ifndef __BOATPLATFORM_H__
@@ -92,7 +92,7 @@ void *BoatMalloc(size_t size);
* \n It typically wraps calloc() in a linux or Windows system.
* \n F... |
Fix typalign in rangetypes statistics
introduces multirange types, whose typanalyze function shares
infrastructure with range types typanalyze function. Since
information about type gathered by statistics is filled from typcache.
But typalign is mistakenly always set to double. This commit fixes this
oversight. | @@ -330,7 +330,7 @@ compute_range_stats(VacAttrStats *stats, AnalyzeAttrFetchFunc fetchfunc,
stats->statypid[slot_idx] = typcache->type_id;
stats->statyplen[slot_idx] = typcache->typlen;
stats->statypbyval[slot_idx] = typcache->typbyval;
- stats->statypalign[slot_idx] = 'd';
+ stats->statypalign[slot_idx] = typcache->t... |
added warning: If hcxpsktool recovered your password, you should change it immediately! | @@ -1220,6 +1220,8 @@ printf("%s %s (C) %s ZeroBeat\n"
"--wpskeys : include complete WPS keys\n"
"--help : show this help\n"
"--version : show version\n"
+ "\n"
+ "If hcxpsktool recovered your password, you should change it immediately!\n"
"\n", eigenname, VERSION, VERSION_JAHR, eigenname);
exit(EXIT_SUCCESS);
}
|
Add -U_OPENMP as a temporary? workaround for ROCm3.0 hip headers | @@ -80,7 +80,7 @@ HIPFLAGS = -x hip $(PLATFORM) -O2 --offload-arch=$(AOMP_GPU) -target $(AOMP_CPUT
# These OMP_TARGET_FLAGS added to HIPFLAGS provide HIP+OpenMP with GPU target offload
OMP_TARGET_FLAGS = -fopenmp-targets=$(TRIPLE) -Xopenmp-target=$(TRIPLE) -march=$(AOMP_GPU)
-CFLAGS = $(HIPFLAGS) $(OMP_TARGET_FLAGS)
+C... |
ECS sample had an older stale netcore dependency and invalid cert path | <MinimumVisualStudioVersion>14</MinimumVisualStudioVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- <PackageCertificateKeyFile>ecsclient-cs_TemporaryKey.pfx</PackageCertificateKeyFile>
+ <PackageCertificateKe... |
debian: set right version v0.11.0 | -td-agent-bit (0.11.0-dev) stable; urgency=low
+td-agent-bit (0.11.0) stable; urgency=low
- * Based on Fluent Bit v0.11.0-dev
+ * Based on Fluent Bit v0.11.0
- -- Eduardo Silva <eduardo@treasure-data.com> Mon, 13 Mar 2017 09:00:00 -0600
+ -- Eduardo Silva <eduardo@treasure-data.com> Fri, 24 Mar 2017 09:00:00 -0600
td-a... |
hw/bus/spi: Make sure node config is set before init | @@ -208,11 +208,6 @@ bus_spi_node_init_func(struct os_dev *odev, void *arg)
BUS_DEBUG_POISON_NODE(node);
- rc = bus_node_init_func(odev, node_cfg);
- if (rc) {
- return rc;
- }
-
node->pin_cs = cfg->pin_cs;
node->mode = cfg->mode;
node->data_order = cfg->data_order;
@@ -221,5 +216,10 @@ bus_spi_node_init_func(struct os... |
net/lwip : ND6 Redirect, create a new desctination cache
This commit is patch to create a new desctination cache
- As per RFC 4861, 8.3 Host specification
If no Destination Cache entry exists for the destination,
an implementation SHOULD create such an entry | @@ -905,11 +905,23 @@ void nd6_input(struct pbuf *p, struct netif *inp)
return;
}
} else {
- /* Destination not in cache, drop packet. */
+ /* Destination not in cache, create new destination cache entry. */
+ /* As per RFC 4861, 8.3 Host specification
+ * If no Destination Cache entry exists for the destination, an im... |
Fix test_ext_entity_latin1_utf16le_bom2() to work in builds | @@ -6240,8 +6240,12 @@ START_TEST(test_ext_entity_latin1_utf16le_bom2)
NULL,
EE_PARSE_FULL_BUFFER
};
+#ifdef XML_UNICODE
+ const XML_Char *expected = XCS("\x00ff\x00feL ");
+#else
/* In UTF-8, y-diaeresis is 0xc3 0xbf, lowercase thorn is 0xc3 0xbe */
- const XML_Char *expected = "\xc3\xbf\xc3\xbeL ";
+ const XML_Char *... |
fixup: port debian package stage to new withDockerEnv function | @@ -564,6 +564,9 @@ def generateArtifactStages() {
}
def buildPackageDebianStretch() {
+ def stageName = "buildPackage/debian/stretch"
+ return [(stageName): {
+ stage(stageName) {
return withDockerEnv(DOCKER_IMAGES.stretch, [DOCKER_OPTS.MOUNT_MIRROR]) {
withCredentials([file(credentialsId: 'jenkins-key', variable: 'KE... |
newSource: typecheck second arg;
Errors when using old syntax instead of silently working/failing | @@ -222,7 +222,9 @@ static int l_lovrAudioNewSource(lua_State* L) {
bool spatial = true;
bool decode = false;
- if (lua_istable(L, 2)) {
+ if (lua_gettop(L) >= 2) {
+ luaL_checktype(L, 2, LUA_TTABLE);
+
lua_getfield(L, 2, "spatial");
spatial = lua_isnil(L, -1) || lua_toboolean(L, -1);
lua_pop(L, 1);
|
Updated change log for 2.5 | @@ -9,16 +9,36 @@ clocked at 4.2 GHz, running astcenc using 6 threads.
<!-- ---------------------------------------------------------------------- -->
## 2.5
-**Status:** In development
+**Status:** In development, due late March 2021
-The 2.5 release is the sixth release in the 2.x series. For this release
-onwards th... |
Fix break on console key checks. | @@ -130,9 +130,11 @@ LRESULT APIENTRY Overlay::WndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lP
case WM_SYSKEYUP:
if (wParam == Options::Get().ConsoleKey)
return 0;
+ break;
case WM_CHAR:
if (Options::Get().ConsoleChar && wParam == Options::Get().ConsoleChar)
return 0;
+ break;
}
if (s_pOverlay->IsEnabled())
|
dso: remove TODOs | @@ -437,7 +437,6 @@ static int dlfcn_pathbyaddr(void *addr, char *path, int sz)
return len;
}
- /* TODO: what error report does this attach to? */
ERR_add_error_data(2, "dlfcn_pathbyaddr(): ", dlerror());
# endif
return -1;
|
system/trace: expand dump string | @@ -640,15 +640,16 @@ static int trace_dump_one(trace_dump_t type, FAR FILE *out, FAR uint8_t *p,
trace_dump_unflatten(&ip, nst->nst_ip, sizeof(ip));
if (type == TRACE_TYPE_ANDROID &&
- strlen(nst->nst_data) > 2 &&
- (memcmp(nst->nst_data, "B|", 2) == 0 ||
- memcmp(nst->nst_data, "E|", 2) == 0))
+ nst->nst_data[1] == '... |
Add TODO to think about a std/zlib directory. | @@ -18,6 +18,13 @@ pub error "invalid zlib parity check"
pub error "TODO: unsupported zlib preset dictionary"
+// TODO: move this file from std/flate to std/zlib? In doing so, we could
+// rename both of "struct flate_decoder" and "struct zlib_decoder" to just
+// "struct decoder", to avoid stutter in the fully qualifi... |
Disabled ec11 since it's an optional configuration | # Uncomment to enable encoder
-CONFIG_EC11=y
-CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y
\ No newline at end of file
+#CONFIG_EC11=y
+#CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y
\ No newline at end of file
|
Fix location of root CMake file. | @@ -16,6 +16,6 @@ BUILD_DIR_FIXED="$SCRIPT_DIR/$BUILD_DIR"
# Build all targets.
mkdir -p "$BUILD_DIR_FIXED"
pushd "$BUILD_DIR_FIXED"
- cmake "$SCRIPT_DIR/.." $CMAKE_FLAGS
+ cmake "$SCRIPT_DIR/../.." $CMAKE_FLAGS
cmake --build .
popd
|
Short range fix only: use uAtClientIgnoreAsync().
One more spot where uAtClientIgnoreAsync() should be called, this time in short range. | @@ -177,6 +177,7 @@ void uShortRangeTestPrivatePostamble(uShortRangeTestPrivate_t *pParameters)
{
uPortLog("U_SHORT_RANGE_TEST_PRIVATE: deinitialising short range API...\n");
// Let uShortRangeDeinit() remove the short range handle
+ uAtClientIgnoreAsync(NULL);
uShortRangeDeinit();
if (pParameters->edmStreamHandle >= 0... |
set bcdDevice to hardware type | @@ -123,7 +123,7 @@ uint8_t device_desc[] = {
0xFF, 0xFF, 0xFF, 0x40, // Class, Subclass, Protocol, Max Packet Size
TOUSBORDER(USB_VID), // idVendor
TOUSBORDER(USB_PID), // idProduct
- 0x00, 0x23, // bcdDevice
+ 0x00, 0x00, // bcdDevice
0x01, 0x02, // Manufacturer, Product
0x03, 0x01 // Serial Number, Num Configuration... |
Update ffxiv_idarename.py
copy paste error | @@ -1326,7 +1326,7 @@ factory.register(0x141824628, "Client::Game::Object::AreaObject", "Client::Game:
factory.register(0x141823E08, "Client::Game::Object::EventObject", "Client::Game::Object::GameObject", {})
factory.register(0x14186A7D0, "Client::Game::Object::HousingObject", "Client::Game::Object::GameObject", {})
f... |
extmod/modbuiltins/Control: expose scale
This scale is the number of integer counts per output unit for the given controller.
For example, for single motors this is the gear ratio (and on EV3 it is x2 because of double count resolution.) | @@ -123,6 +123,7 @@ mp_obj_t builtins_Light_obj_make_new(pbdevice_t *pbdev, const mp_obj_type_t *typ
typedef struct _builtins_Control_obj_t {
mp_obj_base_t base;
pbio_control_t *control;
+ mp_obj_t scale;
} builtins_Control_obj_t;
// pybricks.builtins.Control.__init__/__new__
@@ -133,6 +134,12 @@ mp_obj_t builtins_Cont... |
tools: acrn-crashlog: check the pointer after getting sender
get_sender_from_name would return NULL if the name of sender is not
configured in acrnprobe.xml.
This patch check the return value of it.
Acked-by: Chen Gang | @@ -463,7 +463,7 @@ free_class:
static void telemd_send_uptime(void)
{
- struct sender_t *telemd;
+ struct sender_t *telemd = get_sender_by_name("telemd");
struct uptime_t *uptime;
char *class;
char boot_time[UPTIME_SIZE];
@@ -472,12 +472,14 @@ static void telemd_send_uptime(void)
static int uptime_hours;
static int lo... |
Turn on dynamic command processing. | @@ -138,10 +138,10 @@ dynConfig(pid_t pid)
if ((fs = g_fn.fopen(path, "r")) == NULL) return -1;
// Modify the static config from the command file
- //cfgProcessCommands(g_staticfg, fs);
+ cfgProcessCommands(g_staticfg, fs);
// Apply the config
- //doConfig(g_staticfg);
+ doConfig(g_staticfg);
g_fn.fclose(fs);
unlink(pa... |
To use default MBEDTLS_SSL_MAX_CONTENT_LEN for non-TLS ext | /* SSL options */
-#if defined(MBEDTLS_SSL_MAX_CONTENT_LEN)
-#undef MBEDTLS_SSL_MAX_CONTENT_LEN
-#endif
-#define MBEDTLS_SSL_MAX_CONTENT_LEN 6144 //6144 //5120 //8192 /**< Maximum fragment length in bytes, determines the size of each of the two internal I/O buffers */
+/* Below configuration could be enabled as while S... |
retries authorization finalization failures | ~(tap in `(set turf)`u.pen)
|=(a=turf [%o (my type+s+'dns' value+s+(join '.' a) ~)])
==
+ :: +cancel-order: cancel failed order, set retry timer
+ ::
+ ++ cancel-order
+ ^+ this
+ ~| %cancel-order-effect-fail
+ ?> ?=(^ rod)
+ :: save failed order for future autopsy
+ ::
+ =. fal.hit [u.rod fal.hit]
+ :: copy order doma... |
stm32: add stm32l431 ec in chip/stm32 : watchdog
stm32l431 related driver: watchdog.
The stm32l476g-eval is the only board which would be impacted.
BRANCH=main
TEST=make buildall | * value large enough that we reload before the worst-case watchdog delay
* (fastest LSI clock).
*/
+#ifdef CHIP_FAMILY_STM32L4
+#define LSI_CLOCK 34000
+#else
#define LSI_CLOCK 56000
+#endif
+
+/* The timeout value is multiplied by 1000 to be converted into ms */
+#define HAL_IWDG_DEFAULT_TIMEOUT ((6UL * 256UL * 1000UL... |
test: Fix test case false expectations
issue | @@ -513,7 +513,7 @@ START_TEST(test_002InitWallet_0014InitEthWalletWithWrongGenMode)
rtnVal = BoatEthWalletInit(&walletConfig, sizeof(BoatEthWalletConfig));
/* 2. verify test result */
/* 2-1. verify the return value */
- ck_assert_ptr_nonnull(rtnVal);
+ ck_assert_ptr_null(rtnVal);
/* 2-2. verify the global variables t... |
Removed an extra comment from ccl_background. | @@ -345,10 +345,6 @@ static int a_of_chi(double chi, ccl_cosmology *cosmo, int* stat, double *a_old,
/* ----- ROUTINE: ccl_cosmology_compute_distances ------
INPUT: cosmology
TASK: if not already there, make a table of comoving distances and of E(a)
-
-IN PROGRESS - Tom is reworking this function to have a single retur... |
Reduce scope of temp variables for readability. | @@ -221,9 +221,11 @@ scanForHttpHeader(http_state_t *httpstate, char *buf, size_t len, httpId_t *http
// We need to handle "double interception" when ssl is involved, e.g.
// intercepting an SSL_write(), then intercepting the write() it calls.
// We use the isSSL flag to prevent interleaving ssl and non-ssl data.
+ {
i... |
dwarf: do not allocate in load_debug_frame
load_debug_frame calls malloc() in a couple spots, use mmap via
GET_MEMORY instead. These call paths are infrequent, and are never
freed.
Found by running tcmalloc unit tests on aarch64, when DEBUG_FRAME support is on. | @@ -119,7 +119,7 @@ load_debug_frame (const char *file, char **buf, size_t *bufsize, int is_local)
}
*bufsize = shdr->sh_size;
- *buf = malloc (*bufsize);
+ GET_MEMORY(*buf, *bufsize);
memcpy(*buf, shdr->sh_offset + ei.image, *bufsize);
@@ -208,7 +208,7 @@ locate_debug_info (unw_addr_space_t as, unw_word_t addr, const ... |
86 xcat beegfs | @@ -202,9 +202,6 @@ repository, which is shipped with CentOS and is enabled by default.
\paragraph{Enable ssh control via resource manager}
\input{common/slurm_pam}
-\paragraph{Add \beegfs{}} \label{sec:add_beegfs}
-\input{common/install_beegfs_client_centos}
-
\paragraph{Add \Lustre{} client} \label{sec:lustre_client}... |
hslua: fix pushModule, also push fields | @@ -114,6 +114,10 @@ pushModule mdl = do
pushText name
Call.pushDocumentedFunction fn
rawset (nth 3)
+ forM_ (moduleFields mdl) $ \field -> do
+ pushText (fieldName field)
+ fieldPushValue field
+ rawset (nth 3)
-- | Renders module documentation as Markdown.
render :: Module e -> Text
|
Add RPM to package generation | @@ -440,7 +440,7 @@ else(CMAKE_BUILD_TYPE MATCHES Release)
message(" ${CMAKE_C_FLAGS_RELEASE}")
endif()
-set (CPACK_GENERATOR DEB)
+set (CPACK_GENERATOR "DEB;RPM")
set (CPACK_PACKAGE_NAME "libevhtp")
set (CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
set (CPACK_PACKAGE_VERSION_MAJOR ${PROJECT_MAJOR_VERSION})
|
[gitarc] Speed up
Pull-request for branch users/ilezhankin/git-fuse | "rem-tool": { "description": "Run REM cli client" },
"afl-fuzz": { "description": "Run afl-fuzz" },
"horadric": { "description": "Run horadric generator" },
- "run_python_udf": {"description": "run_python_udf tool"}
+ "run_python_udf": {"description": "run_python_udf tool"},
+ "gitarc": { "description": "Run git-like c... |
Expand date/time to milliseconds in debug mode. | @@ -264,7 +264,7 @@ write_log(pappl_system_t *system, // I - System
char buffer[2048], // Output buffer
*bufptr, // Pointer into buffer
*bufend; // Pointer to end of buffer
- time_t curtime; // Current time
+ struct timeval curtime; // Current time
struct tm curdate; // Current date
static const char *prefix = "DIWEF";... |
Fix TLV sizes for signed images
TLV types don't need to list KEYHASH because it's already added by any
signature TLV.
Total sizes were missing the KEYHASH amount.
Add a new TLV for images signed with RSA and encrypted with RSA-OAEP. | @@ -61,8 +61,8 @@ impl TlvGen {
pub fn new_rsa_pss() -> TlvGen {
TlvGen {
flags: 0,
- kinds: vec![TlvKinds::SHA256, TlvKinds::KEYHASH, TlvKinds::RSA2048],
- size: 4 + 32 + 4 + 256,
+ kinds: vec![TlvKinds::SHA256, TlvKinds::RSA2048],
+ size: 4 + 32 + 4 + 32 + 4 + 256,
payload: vec![],
}
}
@@ -71,8 +71,8 @@ impl TlvGen {... |
Support IKEA remote 'setup' button then large button is pressed for 6-10 s | @@ -135,6 +135,7 @@ static const Sensor::ButtonMap ikeaRemoteMap[] = {
// mode ep cluster cmd param button name
// big button
{ Sensor::ModeColorTemperature, 0x01, 0x0006, 0x02, 0, S_BUTTON_1 + S_BUTTON_ACTION_SHORT_RELEASED, "Toggle" },
+ { Sensor::ModeColorTemperature, 0x01, 0x0005, 0x07, 2, S_BUTTON_1 + S_BUTTON_ACT... |
Avoid redefinition warning | @@ -97,9 +97,11 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#if defined(__x86_64__) || defined(_M_X64)
#if (( defined(__GNUC__) && __GNUC__ > 6 && defined(__AVX2__)) || (defined(__clang__) && __clang_major__ >= 6))
#else
+#ifndef NO_AVX512
#define NO_AVX512
#endif
#endif
+#endif
/* #defi... |
omnibox: fix click handler | @@ -340,7 +340,7 @@ export function Omnibox(props: OmniboxProps): ReactElement {
subtext={result.host}
link={result.link}
cursor={leapCursor}
- navigate={() => navigate(result.app, result.link)}
+ navigate={() => navigate(result.app, result.link, false)}
setSelection={() => setSelection(result.app, result.link)}
select... |
Very confusing; travis is just running rake now | @@ -45,5 +45,7 @@ env:
before_script:
- if [ "$WITH_LIBXML" = "false" ]; then sudo apt-get remove libxml2-dev; fi
- cd test && git clone --depth 1 --branch fix-noscript --single-branch https://github.com/stevecheckoway/html5lib-tests
+script:
+ - bundle exec rake
sudo: required
cache: bundler
|
quic: Add missing session_migrate_callback
Type: fix | @@ -1599,6 +1599,12 @@ quic_session_reset_callback (session_t * s)
clib_warning ("UDP session reset???");
}
+static void
+quic_session_migrate_callback (session_t * s, session_handle_t new_sh)
+{
+ QUIC_DBG (2, "Quic session migrate callback");
+}
+
int
quic_session_accepted_callback (session_t * udp_session)
{
@@ -208... |
sys/socket.h: Add sockaddr_storage struct | @@ -20,7 +20,10 @@ struct sockaddr {
char sa_data[];
};
-//MISSING: struct sockaddr_storage
+struct sockaddr_storage {
+ sa_family_t ss_family;
+ char __padding[128 - sizeof(sa_family_t)];
+};
struct msghdr {
void *msg_name;
|
Use mbedtls_xor in Camellia | @@ -526,7 +526,6 @@ int mbedtls_camellia_crypt_cbc( mbedtls_camellia_context *ctx,
const unsigned char *input,
unsigned char *output )
{
- int i;
unsigned char temp[16];
if( mode != MBEDTLS_CAMELLIA_ENCRYPT && mode != MBEDTLS_CAMELLIA_DECRYPT )
return MBEDTLS_ERR_CAMELLIA_BAD_INPUT_DATA;
@@ -541,8 +540,7 @@ int mbedtls... |
fix cpp binding | @@ -105,7 +105,7 @@ public:
inline void operator-- (int) const;
inline void operator-- () const;
- inline ssize_t getReferenceCounter () const;
+ inline uint16_t getReferenceCounter () const;
// basic methods
@@ -692,7 +692,7 @@ void Key::operator-- () const
/**
* @copydoc keyGetRef
*/
-inline ssize_t Key::getReference... |
Fix BPFModule error when RW Engine is disabled
Fix BPFModule error when RW Engine is disabled | @@ -89,7 +89,7 @@ class MyMemoryManager : public SectionMemoryManager {
BPFModule::BPFModule(unsigned flags, TableStorage *ts, bool rw_engine_enabled,
const std::string &maps_ns)
: flags_(flags),
- rw_engine_enabled_(rw_engine_enabled),
+ rw_engine_enabled_(rw_engine_enabled && bpf_module_rw_engine_enabled()),
used_b_l... |
Do not bypass search on skip cu if early_skip is not enabled | @@ -506,7 +506,7 @@ static double search_cu(encoder_state_t * const state, int x, int y, int depth,
cur_cu->type = CU_INTER;
}
- if (!cur_cu->skipped) {
+ if (!(ctrl->cfg.early_skip && cur_cu->skipped)) {
// Try SMP and AMP partitioning.
static const part_mode_t mp_modes[] = {
// SMP
@@ -541,7 +541,7 @@ static double s... |
[numerics] replace numerics_error by numerics_warning to avoid abort in NM_nnz | @@ -5167,7 +5167,7 @@ size_t NM_nnz(const NumericsMatrix* M)
return NSM_nnz(NSM_get_origin(M->matrix2));
}
default:
- numerics_error("NM_nnz", "Unsupported matrix type %d in %s", M->storageType);
+ numerics_warning("NM_nnz", "Unsupported matrix type %d in %s", M->storageType, "NM_nnz");
return SIZE_MAX;
}
}
|
libc/stdio: Let STDIO_DISABLE_BUFFERING depends on FILE_STREAM | @@ -7,6 +7,7 @@ menu "Standard C I/O"
config STDIO_DISABLE_BUFFERING
bool "Disable STDIO Buffering"
+ depends on FILE_STREAM
default n
---help---
Tiny systems may need to disable all support for I/O buffering in
|
sse: add simde_x_mm_round_ps with lax_rounding argument | @@ -385,12 +385,15 @@ simde_mm_setcsr (uint32_t a) {
SIMDE_FUNCTION_ATTRIBUTES
simde__m128
-simde_mm_round_ps (simde__m128 a, int rounding)
- SIMDE_REQUIRE_CONSTANT_RANGE(rounding, 0, 15) {
+simde_x_mm_round_ps (simde__m128 a, int rounding, int lax_rounding)
+ SIMDE_REQUIRE_CONSTANT_RANGE(rounding, 0, 15)
+ SIMDE_REQUI... |
[contract] check for block height | @@ -502,7 +502,9 @@ func toLuaTable(L *LState, tab map[string]interface{}) error {
for k := range tab {
keys = append(keys, k)
}
+ if HardforkConfig.IsV3Fork(blockNo) {
sort.Strings(keys)
+ }
for _, k := range keys {
v := tab[k]
if len(tab) == 1 && strings.EqualFold(k, "_bignum") {
|
Add a guard for SSE 4.2 feature | @@ -35,8 +35,12 @@ have_func('rb_hash_bulk_insert', 'ruby.h') unless '2' == version[0] && '6' == ve
dflags['OJ_DEBUG'] = true unless ENV['OJ_DEBUG'].nil?
if with_config('--with-sse42')
+ if try_cflags('-msse4.2')
$CPPFLAGS += ' -msse4.2'
dflags['OJ_USE_SSE4_2'] = 1
+ else
+ warn 'SSE 4.2 is not supported on this platfo... |
[docsbuild] fix selective checkout of docs_dir | @@ -37,7 +37,7 @@ def generate_dart(unit, as_lib=False):
docs_dir = (unit.get('DOCSDIR') or '').rstrip('/')
if docs_dir:
docs_dir = os.path.normpath(docs_dir)
- unit.onsrcdir(docs_dir)
+ unit.set(['SRCDIR', docs_dir])
else:
docs_dir = module_dir
|
keyRel2: fix handling of meta namespace | @@ -233,6 +233,13 @@ Key * keyAsCascading (const Key * key)
}
else
{
+ elektraNamespace ns = keyGetNamespace (key);
+ if (ns == KEY_NS_META || ns == KEY_NS_EMPTY || ns == KEY_NS_NONE)
+ {
+ Key * cKey = keyNew ("/", KEY_CASCADING_NAME, KEY_END);
+ keyAddName (cKey, keyName (key));
+ return cKey;
+ }
const char * name =... |
fix(lv_textarea) fix crash while delete non-ascii character in pwd mode | @@ -259,8 +259,7 @@ void lv_textarea_del_char(lv_obj_t * obj)
}
if(ta->pwd_mode != 0) {
- uint32_t byte_pos = _lv_txt_encoded_get_byte_id(ta->pwd_tmp, ta->cursor.pos - 1);
- _lv_txt_cut(ta->pwd_tmp, ta->cursor.pos - 1, _lv_txt_encoded_size(&ta->pwd_tmp[byte_pos]));
+ _lv_txt_cut(ta->pwd_tmp, ta->cursor.pos - 1, 1);
ta-... |
macos clear_history workaround | @@ -48,6 +48,9 @@ tb_int_t xm_readline_clear_history(lua_State* lua)
// call clear_history (will crash on macOS)
#ifndef TB_CONFIG_OS_MACOSX
clear_history();
+#else
+ for (tb_int_t i = history_length - 1; i >= 0; --i)
+ remove_history(i);
#endif
// ok
|
fix func names when H2O_USE_DTRACE is not defined | @@ -1793,7 +1793,7 @@ uint64_t h2o_socket_ebpf_lookup_flags(h2o_loop_t *loop, int (*init_key)(h2o_ebpf
#else
-int h2o_socket_ebpf_prepare_maps(void)
+int h2o_socket_ebpf_setup(void)
{
return 0;
}
@@ -1803,7 +1803,7 @@ int h2o_socket_ebpf_init_key_raw(struct st_h2o_ebpf_map_key_t *key, int sock_typ
h2o_fatal("unimplemen... |
Make all private functions in e_afalg.c static | @@ -79,7 +79,7 @@ static int afalg_create_sk(afalg_ctx *actx, const char *ciphertype,
static int afalg_destroy(ENGINE *e);
static int afalg_init(ENGINE *e);
static int afalg_finish(ENGINE *e);
-const EVP_CIPHER *afalg_aes_cbc(int nid);
+static const EVP_CIPHER *afalg_aes_cbc(int nid);
static cbc_handles *get_cipher_han... |
BugID:24882677:[umesh2app]add app version | @@ -30,4 +30,11 @@ if AOS_APP_UMESH2APP
repeated testing
endmenu
+
+config SYSINFO_APP_VERSION
+ string "Firmware Version"
+ default "app-1.0.0-20200316.000000"
+ help
+ application main firmware version
+
endif
|
eaa/verdictd: use the empty intance names by default
Now rats-tls is capable of select the appropriate instance
automatically. So it is not necessary to hardcode any default
instances. | @@ -138,19 +138,19 @@ async fn main() {
};
let tls_type = match matches.is_present("tls") {
true => matches.value_of("tls").unwrap().to_string(),
- false => "openssl".to_string(),
+ false => "".to_string(),
};
let crypto = match matches.is_present("crypto") {
true => matches.value_of("crypto").unwrap().to_string(),
- f... |
docs/HowToUseSmartFS: add the content of making SmartFS image
There is the documentation to say the way of making SmartFS image already.
This commit adds the sub-content in how to use SmartFS doc to know it easily. | @@ -6,6 +6,7 @@ new target board.
- [About SmartFS](#about-smartfs)
- [SmartFS Code Layering](#smartfs-code-layering)
- [How to Enable SmartFS on New Board](#how-to-enable-smartfs-on-new-board)
+- [How to make SmartFS user image](#how-to-make-smartfs-user-image)
## About SmartFS
@@ -252,3 +253,8 @@ Smart FS can also be... |
YAML CPP: Ignore warnings in source of `yaml-cpp` | @@ -18,6 +18,6 @@ add_plugin (yamlcpp
read.cpp
write.hpp
write.cpp
- INCLUDE_DIRECTORIES ${YAML-CPP_INCLUDE_DIRS}
+ INCLUDE_SYSTEM_DIRECTORIES ${YAML-CPP_INCLUDE_DIRS}
LINK_LIBRARIES ${YAML-CPP_LIBRARIES}
LINK_ELEKTRA elektra-ease)
|
Minor fixes for SUSE builds | @@ -39,6 +39,7 @@ Conflicts: warewulf-provision
Conflicts: warewulf-ipmi
BuildRequires: make
+BuildRequires: /etc/os-release
%if 0%{?suse_version} || 0%{?sle_version}
BuildRequires: systemd-rpm-macros
@@ -98,6 +99,13 @@ make
export NO_BRP_STALE_LINK_ERROR=yes
make install DESTDIR=%{buildroot}
+# For SUSE, move dhcp.con... |
interface: update ChannelPermissions to use arrays
A previous change updated group state to use arrays instead of sets, due
to the ease of (de)serialisation. This was not total, and resulted in a
bug in the ChannelPermissions component | @@ -74,7 +74,7 @@ export function GraphPermissions(props: GraphPermissionsProps) {
const writers = _.get(
group?.tags,
['graph', association.resource, 'writers'],
- new Set()
+ []
);
let [, , hostShip] = association.resource.split('/');
@@ -91,7 +91,7 @@ export function GraphPermissions(props: GraphPermissionsProps) {
... |
Switch submodules to https | url = https://github.com/ucb-bar/esp-tools.git
[submodule "vlsi/hammer"]
path = vlsi/hammer
- url = git@github.com:ucb-bar/hammer.git
+ url = https://github.com/ucb-bar/hammer.git
[submodule "vlsi/hammer-cad-plugins"]
path = vlsi/hammer-cad-plugins
- url = git@github.com:ucb-bar/hammer-cad-plugins
+ url = https://githu... |
cmake: Enable C++11 | -cmake_minimum_required( VERSION 2.8.12 )
+cmake_minimum_required( VERSION 3.1 )
project( Maya )
@@ -97,6 +97,12 @@ set_target_properties(
SUFFIX "${plugin_suffix}"
)
+set_target_properties(
+ plugin
+ PROPERTIES
+ CXX_STANDARD 11
+ )
+
# Compile definitions
set( compile_definitions )
if ( ${CMAKE_SYSTEM_NAME} STREQUAL... |
Core(M): Adopted GCC __cmsis_startup scatter loading to be clib independent. | #ifndef __PROGRAM_START
-#include <string.h>
-
/**
\brief Initializes data and bss sections
\details This default implementations initialized all data and additional bss
__STATIC_FORCEINLINE __NO_RETURN void __cmsis_start(void)
{
extern void _start(void) __NO_RETURN;
- extern uint32_t __copy_table_start__;
- extern uin... |
Use constant string for known booleans
Boolean options explicitly passed to the server are statically known. | @@ -188,7 +188,6 @@ execute_server(struct sc_server *server,
} \
cmd[count++] = p; \
}
-#define STRBOOL(v) (v ? "true" : "false")
ADD_PARAM("log_level=%s", log_level_to_server_string(params->log_level));
ADD_PARAM("bit_rate=%" PRIu32, params->bit_rate);
@@ -204,23 +203,23 @@ execute_server(struct sc_server *server,
par... |
slot allocator fix | @@ -178,9 +178,11 @@ M3Result AllocateSlotsWithinRange (IM3Compilation o, u16 * o_slot, u8 i_type,
u16 numSlots = GetTypeNumSlots (i_type);
u16 searchOffset = numSlots - 1;
+ AlignSlotIndexToType (& i_startSlot, i_type);
+
// search for 1 or 2 consecutive slots in the execution stack
u16 i = i_startSlot;
- while (i < i... |
sha: dont enable/disable GDMA when enable/disable SHA module
Enabling and disabling of the GDMA module is done by the GDMA driver. | @@ -181,10 +181,10 @@ static inline uint32_t periph_ll_get_rst_en_mask(periph_module_t periph, bool en
case PERIPH_SHA_MODULE:
if (enable == true) {
// Clear reset on digital signature and HMAC, otherwise SHA is held in reset
- return (SYSTEM_CRYPTO_SHA_RST | SYSTEM_CRYPTO_DS_RST | SYSTEM_CRYPTO_HMAC_RST | SYSTEM_DMA_R... |
WIP improved auto label for eventText | @@ -3,10 +3,14 @@ const l10n = require("../helpers/l10n").default;
const id = "EVENT_TEXT";
const groups = ["EVENT_GROUP_DIALOGUE"];
-const autoLabel = (fetchArg) => {
+const autoLabel = (fetchArg, args) => {
+ if (args.text.join()) {
return l10n("FIELD_TEXT_LABEL", {
text: fetchArg("text"),
});
+ } else {
+ l10n("EVEN... |
hw: bsp: pic32mz2048_wi-fire: Define buttons | @@ -47,6 +47,10 @@ extern uint8_t _ccram_start;
#define LED_4 MCU_GPIO_PORTG(15)
#define LED_BLINK_PIN LED_1
+/* Buttons */
+#define BUTTON_1 MCU_GPIO_PORTA(5)
+#define BUTTON_2 MCU_GPIO_PORTA(4)
+
/* UART */
#define UART_CNT (6)
|
include/console.h: Format with clang-format
BRANCH=none
TEST=none | @@ -54,10 +54,9 @@ struct hex_buffer_params {
uint16_t size;
};
-#define HEX_BUF(_buffer, _size) (&(const struct hex_buffer_params){ \
- .buffer = (_buffer), \
- .size = (_size) \
-})
+#define HEX_BUF(_buffer, _size) \
+ (&(const struct hex_buffer_params){ .buffer = (_buffer), \
+ .size = (_size) })
/*
* Define paramet... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.