message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Improve bootstrap install | @@ -10,6 +10,11 @@ echo Requesting root access...
sudo echo -n ""
echo Root access granted, starting...
+if [ ! `which curl` ] || [ ! `which git` ]; then
+ echo -e "Installing ${cc}curl$nn and ${cc}git$nn"
+ sudo apt-get -y install curl git
+fi
+
# Set sensible defaults
export PARALLEL_INSTALL=${PARALLEL_INSTALL-1}
exp... |
WEBP_DEP_LIBRARIES: use Threads::Threads | @@ -45,7 +45,7 @@ if(WEBP_USE_THREAD)
}
" FLAG_HAVE_PTHREAD_PRIO_INHERIT)
set(HAVE_PTHREAD_PRIO_INHERIT ${FLAG_HAVE_PTHREAD_PRIO_INHERIT})
- list(APPEND WEBP_DEP_LIBRARIES ${CMAKE_THREAD_LIBS_INIT})
+ list(APPEND WEBP_DEP_LIBRARIES Threads::Threads)
endif()
set(WEBP_USE_THREAD ${Threads_FOUND})
endif()
|
arch/xtensa: Enble 10 bits slave address in I2C driver.
Enable 10 bits slave address in I2C driver. | ****************************************************************************/
#define I2C_NUM_MAX 2
+#define I2C_ADDRESS_TENBITS (10)
#define I2C_IO_INIT_LEVEL (1)
#define ESP32_DEFAULT_I2CXFER_CLOCK (100 * 1000) /* 100Khz */
#define ESP32_DEFAULT_I2C_TIMEOUT (500)
@@ -144,6 +145,7 @@ struct esp32_i2c_priv_s {
int xfer... |
update code for mode=2 | @@ -46,10 +46,8 @@ static void cancel_job(int sig);
static int
compare_service_uri(char *a, char *b)
{
- size_t size_a = strlen(a);
- size_t size_b = strlen(b);
- size_t size = (size_a>size_b ? size_b+1 :size_a +1);
- return (memcmp(a,b, size));
+
+ return (strcmp(a,b));
}
void
listPrintersInArray(int post_proc_pipe[],... |
Remove glog exception for infra/nanny2 | @@ -324,9 +324,6 @@ ALLOW .* -> vendor/google.golang.org/api/option
# Temporary exceptions.
#
-# MIGRATION-289. responsible: nekto0n@. deadline: 30.06.2019
-ALLOW infra/nanny2 -> vendor/github.com/golang/glog
-
# CONTRIB-1244. resposible: gzuykov@
ALLOW cloud -> vendor/github.com/rcrowley/go-metrics
|
nibba all fixed i believe | @@ -54,7 +54,7 @@ rate, z = read('Tengaku.mp3')
rateM, m = read('miss1.wav')
ratesb, b = read('spinnerbonus.wav')
ratesc, c = read('spinnerspin.wav')
-rateS, s = read('slider.wav')
+#rateS, s = read('slider.wav')
spinSound = AudioSegment.from_wav("spinnerspin.wav")
slider12 = AudioSegment.from_wav("slider.wav")
@@ -82,... |
landscape/useS3: restore behaviour on ios | @@ -75,6 +75,7 @@ const useS3 = (s3: S3State, { accept = '*' } = { accept: '*' }): IuseS3 => {
const fileSelector = document.createElement('input');
fileSelector.setAttribute('type', 'file');
fileSelector.setAttribute('accept', accept);
+ fileSelector.style.visibility = 'hidden';
fileSelector.addEventListener('change',... |
nimble/ll: Fix for LE connection parameter request
If host mask out HCI Remote Connection Parameters Request event, LL
shall reject LL Connection Parameter request | @@ -325,11 +325,18 @@ conn_parm_req_do_indicate:
* need to know before we indicate to the host that they are acceptable.
*/
if (indicate) {
+ /* If Host masked out Remote Connection Parameter Request Event, we need to
+ * send Reject back to the remote device
+ */
+ if (!ble_ll_hci_is_le_event_enabled(BLE_HCI_LE_SUBEV_... |
fix proj syntax | <ClInclude Include="$(ProjectDir)..\common\SocketTools.hpp" />
<ClInclude Include="CheckForExceptionOrAbort.hpp" />
</ItemGroup>
- <ImportGroup Condition = "exists('$(ProjectDir)..\..\lib\modules\exp')">
+ <ItemGroup Condition = "exists('$(ProjectDir)..\..\lib\modules\exp')">
<ClInclude Include="$(ProjectDir)..\..\lib\... |
YAy PEG: Remove byte position from error message | @@ -1136,7 +1136,12 @@ struct errors : public tao::TAO_PEGTL_NAMESPACE::normal<Rule>
template <typename Input, typename... States>
static void raise (const Input & input, States &&...)
{
- throw tao::TAO_PEGTL_NAMESPACE::parse_error (errorMessage, input);
+ tao::TAO_PEGTL_NAMESPACE::position pos = input.position ();
+ ... |
system/gcov: add show usage | @@ -57,6 +57,11 @@ int main(int argc, FAR char *argv[])
{
int option;
+ if (argc < 2)
+ {
+ show_usage(argv[0]);
+ }
+
while ((option = getopt(argc, argv, "drh")) != ERROR)
{
switch (option)
|
Print element index too | @@ -711,7 +711,7 @@ static int encode_double_array(grib_context* c,grib_buffer* buff,long* pos, bufr
long localReference=0,localWidth=0,modifiedWidth,modifiedReference;
long reference,allone;
double localRange,modifiedFactor,inverseFactor;
- size_t ii;
+ size_t ii, index_of_min, index_of_max;
int nvals = 0;
double min=... |
fix check topsize type | @@ -432,7 +432,7 @@ private:
class TQueryAverage : public TQuerywiseAdditiveMetric {
public:
- explicit TQueryAverage(int topSize) : TopSize(topSize) {
+ explicit TQueryAverage(float topSize) : TopSize(topSize) {
CB_ENSURE(topSize > 0, "top size for QueryAverage should be greater than 0");
CB_ENSURE(topSize == (int)top... |
skate: moving filename check to SkateChecker module | @@ -33,8 +33,8 @@ import qualified SkateBackendCode
import qualified SkateBackendHeader
import qualified SkateBackendLatex
import qualified SkateBackendWiki
-import qualified SkateTools
import qualified SkateSchema
+import qualified SkateChecker
@@ -167,15 +167,7 @@ parseFile fname = do
Left err -> ioError $ userError ... |
bugfix allways request with get method | @@ -139,7 +139,7 @@ namespace carto {
}
// Configure connection parameters
- jenv->CallVoidMethod(conn, _HttpURLConnectionClass->setRequestMethod, jenv->NewStringUTF("GET"));
+ jenv->CallVoidMethod(conn, _HttpURLConnectionClass->setRequestMethod, jenv->NewStringUTF(request.method.c_str())));
jenv->CallVoidMethod(conn, ... |
soc: fix unit tests not included in the build
Regression from | @@ -2,7 +2,7 @@ idf_build_get_property(soc_name IDF_TARGET)
get_filename_component(soc_test "${CMAKE_CURRENT_SOURCE_DIR}/../${soc_name}/test" ABSOLUTE)
if(EXISTS "${soc_test}")
- set(srcs "${soc_test}")
+ set(src_dirs "${soc_test}")
set(include_dirs "${soc_test}")
endif()
|
fix(bluetooth): Delete any previously stored name. | @@ -347,6 +347,8 @@ static int zmk_ble_init(struct device *_arg)
#endif
#if IS_ENABLED(CONFIG_ZMK_BLE_CLEAR_BONDS_ON_START)
+ settings_delete("bt/name");
+
for (int i = 0; i < 10; i++) {
bt_unpair(i, NULL);
}
|
build: add cmake dependency from test plugin to api
Type: fix | @@ -78,6 +78,9 @@ macro(add_vpp_plugin name)
add_library(${test_plugin_name} SHARED ${PLUGIN_API_TEST_SOURCES}
${api_includes})
set_target_properties(${test_plugin_name} PROPERTIES NO_SONAME 1)
+ if(PLUGIN_API_FILES)
+ add_dependencies(${test_plugin_name} ${plugin_name}_api_headers)
+ endif()
if(NOT VPP_EXTERNAL_PROJEC... |
Additional CullWorker fixes | @@ -160,13 +160,15 @@ namespace carto {
cglib::vec2<float> screenPos = screenPoses[i] + (screenPoses[j] - screenPoses[i]) * (static_cast<float>(n) / tesselationLevel);
cglib::vec3<double> pos0 = cglib::transform_point(cglib::vec3<double>(screenPos(0), screenPos(1), -1), invMVPMat);
cglib::vec3<double> pos1 = cglib::tra... |
jenkins-release: extend paramter docu | @@ -19,7 +19,7 @@ properties([
),
booleanParam(
defaultValue: false,
- description: 'If activated, changes to repositories are bundled. Can be combined with git_publish.',
+ description: 'If activated, changes to the ftp and doc repositories are bundled and archived in the publish stages. Can be combined with git_publi... |
Remove unwanted stacktrace from gpstate warning
Since this is a warning, the stack trace is excessive. | @@ -902,10 +902,10 @@ class GpSystemStateProgram:
)
rewinding = result > 0
- except pgdb.InternalError as ie:
+ except pgdb.InternalError:
logger.warning('could not query segment {} ({}:{})'.format(
primary.dbid, primary.hostname, primary.port
- ), exc_info=ie)
+ ))
return
# Successfully queried pg_stat_replication. If... |
Enable fallback to software implementation in psa_sign/verify_message driver | @@ -126,7 +126,7 @@ psa_status_t psa_driver_wrapper_sign_message(
default:
/* Key is declared with a lifetime not known to us */
(void)status;
- return( PSA_ERROR_INVALID_ARGUMENT );
+ break;
}
return( psa_sign_message_builtin( attributes,
@@ -198,7 +198,7 @@ psa_status_t psa_driver_wrapper_verify_message(
default:
/* ... |
PHP: added "--lib-static" configure option.
The libraries returned by "php-config --libs" are required to link with
static libphp.a. Dynamic libphp.so contains the required libraries names. | @@ -17,6 +17,7 @@ for nxt_option; do
--config=*) NXT_PHP_CONFIG="$value" ;;
--module=*) NXT_PHP_MODULE="$value" ;;
--lib-path=*) NXT_PHP_LIB_PATH="$value" ;;
+ --lib-static) NXT_PHP_LIB_STATIC=yes ;;
--help)
cat << END
@@ -24,6 +25,7 @@ for nxt_option; do
--config=FILE set php-config filename
--module=NAME set unit php... |
Fix integer division and refactor if statement | @@ -189,6 +189,7 @@ get_wg_index_range (kernel_run_command *k, unsigned *start_index,
const unsigned scaled_max_wgs = POCL_PTHREAD_MAX_WGS * num_threads;
const unsigned scaled_min_wgs = POCL_PTHREAD_MIN_WGS * num_threads;
+ unsigned limit;
unsigned max_wgs;
POCL_FAST_LOCK (k->lock);
if (k->remaining_wgs == 0)
@@ -205,1... |
mangle: simplify mangle_ConstCmpFeedback | @@ -406,32 +406,32 @@ static void mangle_Magic(run_t* run, bool printable) {
}
static void mangle_ConstCmpFeedback(run_t* run, bool printable) {
- if (!run->global->feedback.cmpFeedback) {
+ cmpfeedback_t* cmpf = run->global->feedback.cmpFeedbackMap;
+ if (!cmpf) {
mangle_Magic(run, printable);
return;
}
- uint32_t len... |
Fix a crash from a non-embedded foreign library needing a loader.
Embedded libraries go through a different path, so their loader will
get registered. Dynamically-opened libraries weren't being checked for
a loader, so relying on one would result in a crash. | @@ -525,7 +525,7 @@ static lily_module_entry *load_file(lily_parse_state *parser, const char *path)
}
static lily_module_entry *load_library(lily_parse_state *parser,
- const char *path)
+ const char *path, const char *name)
{
lily_module_entry *result = NULL;
lily_library *library = lily_library_load(path);
@@ -533,6 ... |
Update versioning.md
Fix spelling | @@ -85,7 +85,7 @@ Due to various arising practical needs it may be necessary to update `VER_MINOR`
## Release schedule for 2021H2
-A separate feature branch may be needed to accomodate the integration with
+A separate feature branch may be needed to accommodate the integration with
[OpenTelemetry C++ SDK](https://githu... |
Fix Issue OSS-Fuzz: Branch on uninitialized memory (in ccm code).
This would also happen for aes-ccm. There was one branch path where it just returned 1
without setting *padlen, It now branches so that the value is set to 0.
Fixes | @@ -349,7 +349,7 @@ static int ccm_cipher_internal(PROV_CCM_CTX *ctx, unsigned char *out,
/* EVP_*Final() doesn't return any data */
if (in == NULL && out != NULL)
- return 1;
+ goto finish;
if (!ctx->iv_set)
goto err;
@@ -388,6 +388,7 @@ static int ccm_cipher_internal(PROV_CCM_CTX *ctx, unsigned char *out,
}
}
olen = ... |
Add receive timeout setting in default settings | * Author: Tilen MAJERLE <tilen@majerle.eu>
*/
#ifndef __ESP_DEFAULT_CONFIG_H
-#define __ESP_DEFAULT_CONFIG_H 100
+#define __ESP_DEFAULT_CONFIG_H
/**
* \defgroup ESP_CONF Configuration
* to accept mbox only when first data packet arrives to device,
* otherwise it will be immediately written to receive mbox.
*/
-#ifndef ... |
lot of places expect resolve_cstring to return a zero when the file is not found, but current code returns roor | @@ -81,7 +81,11 @@ static inline tuple resolve_cstring(tuple root, char *f)
push_character(a, y);
}
}
- if (buffer_length(a)) t = lookup(t, intern(a));
+
+ if (buffer_length(a)) {
+ t = lookup(t, intern(a));
return t;
}
+ return 0;
+}
|
fixes bad merge in %clay (+read-p sample) | :: we default to fully private (empty whitelist).
::
++ read-p
- |= {aeon pax/path}
+ |= pax/path
^- (unit (unit (each cage lobe)))
=- [~ ~ %& %noun !>(-)]
:- (read-p-in pax per.red)
|
Allow to load a map of tiles of any length, not only 32kb | @@ -1349,15 +1349,21 @@ static void onImportSprites(const char* name, const void* buffer, size_t size, v
commandDone(console);
}
+static void injectMap(Console* console, const void* buffer, s32 size)
+{
+ enum {Size = sizeof(tic_map)};
+
+ SDL_memset(&console->tic->cart.gfx.map, 0, Size);
+ SDL_memcpy(&console->tic->ca... |
framework/mqtt: add a missed description of doxygen in mqtt
add a brief section in mqtt for doxygen. | ****************************************************************************/
/**
* @defgroup MQTT MQTT Client
+ * @brief Provides APIs for MQTT Client
* @ingroup NETWORK
* @{
*/
|
LimeSuiteGUI: fix NCO phase readback in TxTSP tab | @@ -419,7 +419,7 @@ void lms7002_pnlTxTSP_view::UpdateNCOinputs()
{
float_type phase[16] = { 0 };
float_type fcw = 0;
- if (LMS_GetNCOPhase(lmsControl, LMS_CH_TX, ch - 1, phase, &fcw) != 0)
+ if (LMS_GetNCOPhase(lmsControl, LMS_CH_TX, ch, phase, &fcw) != 0)
return;
for (size_t i = 0; i < txtNCOinputs.size(); ++i)
{
|
simd128: fix portable fallback for wasm_i8x16_swizzle
I broke it in the previous commit; it didn't properly account for the
possibility of the index being negative.
This also adds another set of braces in the NEON implementation, as the
old version didn't work on GCC on armv8. | @@ -5389,7 +5389,7 @@ simde_wasm_i8x16_swizzle (simde_v128_t a, simde_v128_t b) {
r_;
#if defined(SIMDE_ARM_NEON_A32V7_NATIVE)
- int8x8x2_t tmp = { vget_low_s8(a_.neon_i8), vget_high_s8(a_.neon_i8) };
+ int8x8x2_t tmp = { { vget_low_s8(a_.neon_i8), vget_high_s8(a_.neon_i8) } };
r_.neon_i8 = vcombine_s8(
vtbl2_s8(tmp, v... |
os/board/rtl8721csm : Add rtc initialize | @@ -256,6 +256,19 @@ void board_initialize(void)
amebad_timer_initialize(path, i);
}
#endif
+
+#ifdef CONFIG_RTC_DRIVER
+ struct rtc_lowerhalf_s *rtclower;
+ int ret;
+
+ rtclower = amebad_rtc_lowerhalf();
+ if (rtclower) {
+ ret = rtc_initialize(0, rtclower);
+ if (ret < 0) {
+ lldbg("Failed to register the RTC driver... |
4way: bail for arm on read/write settings | @@ -422,6 +422,10 @@ serial_esc4way_ack_t serial_4way_read_settings(blheli_settings_t *settings, uint
quic_debugf("ERROR ESC4WAY_DEVICE_INIT_FLASH 0x%x", ack);
return ack;
}
+ if (device.mode == ESC4WAY_ARM_BLB) {
+ return ESC4WAY_ACK_D_GENERAL_ERROR;
+ }
+
time_delay_us(500); // give the device some time to wake up
ui... |
Avoid core dump in pg_dump when dumping from pre-8.3 server.
Commit missed adding a tgisinternal output column
to getTriggers' query for pre-8.3 servers. Back-patch to v11,
like that commit. | @@ -7799,6 +7799,7 @@ getTriggers(Archive *fout, TableInfo tblinfo[], int numTables)
"SELECT tgname, "
"tgfoid::pg_catalog.regproc AS tgfname, "
"tgtype, tgnargs, tgargs, tgenabled, "
+ "false as tgisinternal, "
"tgisconstraint, tgconstrname, tgdeferrable, "
"tgconstrrelid, tginitdeferred, tableoid, oid, "
"tgconstrrel... |
Fix test to fail if DNSSEC lookup fails! | @@ -58,7 +58,6 @@ PORT=`cat $TMPF1 | grep Listening | cut -d " " -f 4`
echo "../../drill/drill -p $PORT -k test2-key -S @localhost ok.ok.test.jelte.nlnetlabs.nl"
../../drill/drill -p $PORT -k test2-key -S @localhost ok.ok.test.jelte.nlnetlabs.nl> $TMPF2
-cat $TMPF2
if [[ $? -ne 0 ]]; then
cat $TMPF2
|
Cache the hash used for JSON serialization | @@ -25,6 +25,7 @@ static FIOBJ HTTP_HEADER_SERVER;
static FIOBJ HTTP_VALUE_SERVER;
static FIOBJ JSON_KEY;
static FIOBJ JSON_VALUE;
+static FIOBJ JSON_HASH;
/* *****************************************************************************
Routing
@@ -66,6 +67,8 @@ int main(int argc, char const *argv[]) {
/* JSON values t... |
v2.0.47 landed | -ejdb2 (2.0.47) UNRELEASED; urgency=medium
+ejdb2 (2.0.47) testing; urgency=medium
* Added ability to specify constraints on internal primary key in query #281
* Added `jbn_copy_paths` (jbl.h)
- -- Anton Adamansky <adamansky@gmail.com> Thu, 07 May 2020 01:28:14 +0700
+ -- Anton Adamansky <adamansky@gmail.com> Fri, 08 M... |
Fix logging of retry packets in draft-17 | @@ -426,14 +426,14 @@ void picoquic_log_retry_packet(FILE* F, uint64_t log_cnxid64,
int token_length = 0;
uint8_t odcil;
uint8_t unused_cil;
- int payload_length = (int)(length - ph->offset);
-
- picoquic_parse_packet_header_cnxid_lengths(bytes[byte_index++], &unused_cil, &odcil);
+ int payload_length = (int)(ph->paylo... |
build.sh: fix copy/paste error, install mako too | @@ -50,7 +50,7 @@ dependencies() {
DEPS="{gcc,g++,gcc-multilib,g++-multilib,ninja-build,python3-pip,python3-setuptools,python3-wheel,pkg-config,mesa-common-dev,libx11-dev:i386}"
install
- if [[ $(sudo pip3 show meson; echo $?) == 1 || $(sudo pip3 show meson; echo $?) == 1 ]]; then
+ if [[ $(sudo pip3 show meson; echo $... |
bash: fix pip install issue with jjb-sandbox-env function
In a new system (e.g. ubuntu 18.04 docker image), the pip3
installation of jenkins-job-builder fails unless pip3 wheel
is completed on a previous pip3 install command.
Type: fix | @@ -229,7 +229,8 @@ jjb-sandbox-env()
rm -rf $VENV_DIR \
&& python3 -m venv $VENV_DIR \
&& source $VENV_DIR/bin/activate \
- && pip3 install wheel jenkins-job-builder==3.0.2
+ && pip3 install wheel \
+ && pip3 install jenkins-job-builder==3.0.2
alias jjsb='jenkins-jobs --conf $JENKINS_INI'
function jjsb-test() {
|
update doc/build.info | @@ -4131,6 +4131,10 @@ DEPEND[html/man7/EVP_KDF-SSHKDF.html]=man7/EVP_KDF-SSHKDF.pod
GENERATE[html/man7/EVP_KDF-SSHKDF.html]=man7/EVP_KDF-SSHKDF.pod
DEPEND[man/man7/EVP_KDF-SSHKDF.7]=man7/EVP_KDF-SSHKDF.pod
GENERATE[man/man7/EVP_KDF-SSHKDF.7]=man7/EVP_KDF-SSHKDF.pod
+DEPEND[html/man7/EVP_KDF-TLS13_KDF.html]=man7/EVP_KD... |
Add cmake option -DOFFLOAD_ARCH_STR if not on an amdgpu | @@ -111,6 +111,20 @@ if [ "$1" != "nocmake" ] && [ "$1" != "install" ] ; then
-DROCCLR_PATH=$ROCclr_DIR \
-DROCM_PATH=$ROCM_PATH"
+ # If this machine does not have an actvie amd GPU, tell hipamd
+ # to use first in GFXLIST or gfx90a if no GFXLIST
+ if [ -f $AOMP/bin/amdgpu-arch ] ; then
+ $AOMP/bin/amdgpu-arch >/dev/nu... |
fixed crash in send_beaconclone | @@ -1495,7 +1495,7 @@ static const uint8_t broadcastbeacondata[] =
};
#define BROADCASTBEACON_SIZE sizeof(broadcastbeacondata)
-static uint8_t packetout[HDRRT_SIZE +MAC_SIZE_NORM +CAPABILITIESAP_SIZE +BROADCASTBEACON_SIZE +1];
+static uint8_t packetout[HDRRT_SIZE +MAC_SIZE_NORM +CAPABILITIESAP_SIZE +BROADCASTBEACON_SIZ... |
permalinks: uniform appearance for comments and posts (post + groupfeed)
fixes urbit/landscape#759 | @@ -68,13 +68,15 @@ function TranscludedComment(props: {
return (
<Col>
<Author
- p="2"
+ pt='12px'
+ pl='12px'
+ size='24'
showImage
ship={comment.post.author}
date={comment.post?.["time-sent"]}
group={group}
/>
- <Box p="2">
+ <Box pl="44px" pt='1'>
<GraphContentWide
api={api}
transcluded={transcluded}
@@ -103,16 +10... |
mangoapp: hide hud by default | @@ -620,7 +620,9 @@ parse_overlay_config(struct overlay_params *params,
params->fps_value = { 30, 60 };
params->round_corners = 0;
params->battery_color =0xff9078;
+#ifdef MANGOAPP
params->no_display = 1;
+#endif
#ifdef HAVE_X11
params->toggle_hud = { XK_Shift_R, XK_F12 };
|
Fix former deleted lights won't be added again
Maybe related issues: | @@ -1124,6 +1124,14 @@ void DeRestPluginPrivate::addLightNode(const deCONZ::Node *node)
if (lightNode2)
{
+ if (lightNode2->state() == LightNode::StateDeleted)
+ {
+ if (permitJoinFlag)
+ {
+ lightNode2->setState(LightNode::StateNormal);
+ }
+ }
+
if (lightNode2->node() != node)
{
lightNode2->setNode(const_cast<deCONZ:... |
Remove OPENSSL_assert() from crypto/threads_none.c | @@ -25,19 +25,22 @@ CRYPTO_RWLOCK *CRYPTO_THREAD_lock_new(void)
int CRYPTO_THREAD_read_lock(CRYPTO_RWLOCK *lock)
{
- OPENSSL_assert(*(unsigned int *)lock == 1);
+ if (!ossl_assert(*(unsigned int *)lock == 1))
+ return 0;
return 1;
}
int CRYPTO_THREAD_write_lock(CRYPTO_RWLOCK *lock)
{
- OPENSSL_assert(*(unsigned int *)l... |
renames list-addressing regression test cases | /+ *test
|%
::
-++ test-hang
+++ test-addr-no-hang
%- expect-fail
|. &33:~[[%leaf p="syntax error"] [%leaf p="\{1 11}"]]
::
-++ test-vere-bail
+++ test-addr-no-bail
%- expect-fail
|. &33:~
--
|
Disable DEBUG_TEST_TRACE when NDEBUG defined.
The underlying functions used by the FUNCTION_TEST*() macros will not be able when NDEBUG is defined so disable them.
It would be better to change #ifndef NDEBUG to #ifdef DEBUG_TEST_TRACE where needed to bring these into alignment but that will be a larger effort best unde... | @@ -293,10 +293,18 @@ Macros to return function results (or void)
/***********************************************************************************************************************************
Function Test Macros
-In debug builds these macros will update the stack trace with function names and parameters but not... |
Use MacOS 10.15 for x86_64 build.
This version is better supported by GitHub. | @@ -14,7 +14,7 @@ jobs:
include:
- os: 'macos-11.0'
scons-options: 'ARCH=universal2'
- - os: 'macos-11.0'
+ - os: 'macos-10.15'
scons-options: 'ARCH=x86_64'
steps:
|
mimxrt/machine_rtc: Maintain microsecond offset.
The supplied value for microseconds in datetime() will be treated as a
starting value for the reported microseconds. Due to internal processing
in setting the time, there is an offset about 1 ms. | @@ -37,6 +37,7 @@ typedef struct _machine_rtc_obj_t {
// Singleton RTC object.
STATIC const machine_rtc_obj_t machine_rtc_obj = {{&machine_rtc_type}};
+uint32_t us_offset = 0;
// Calculate the weekday from the date.
// The result is zero based with 0 = Monday.
@@ -70,7 +71,7 @@ STATIC mp_obj_t machine_rtc_datetime_help... |
math: add special case for detecting libc++'s (from LLVM) broken math.h
Fixes | #if defined(HUGE_VAL)
/* Looks like <math.h> or <cmath> has already been included. */
- #if defined(isnan)
+
+ /* The math.h from libc++ (yes, the C header from the C++ standard
+ * library) will define an isnan function, but not an isnan macro
+ * like the C standard requires. So, we detect the header guards
+ * macro... |
ip: check if interface has link-local address
Type: fix | @@ -102,7 +102,12 @@ fib_sas6_get (u32 sw_if_index,
*/
if (ip6_address_is_link_local_unicast (dst))
{
- ip6_address_copy (src, ip6_get_link_local_address (sw_if_index));
+ const ip6_address_t *ll = ip6_get_link_local_address (sw_if_index);
+ if (NULL == ll)
+ {
+ return (false);
+ }
+ ip6_address_copy (src, ll);
return... |
filter_parser: fix timestamp handling on failure scenario | @@ -262,11 +262,17 @@ static int cb_parser_filter(void *data, size_t bytes,
(void **) &out_buf, &out_size,
&parsed_time);
if (parse_ret >= 0) {
- if (flb_time_to_double(&parsed_time) == 0) {
- flb_time_get(&parsed_time);
- }
-
+ /*
+ * If the parser succeeded we need to check the
+ * status of the parsed time. If the t... |
Add comments for some forbidden aliasing in bignum | @@ -758,11 +758,11 @@ int mbedtls_mpi_mul_int( mbedtls_mpi *X, const mbedtls_mpi *A,
*
* \param Q The destination MPI for the quotient.
* This may be \c NULL if the value of the
- * quotient is not needed.
+ * quotient is not needed. This must not alias A or B.
* \param R The destination MPI for the remainder value.
* ... |
Fixed logic so that the _expr_<varname> expression is updated instead of added when pre-existing. | @@ -1184,6 +1184,10 @@ CreateViewInfoFromViewAttributes(avtViewInfo &vi, const View3DAttributes &view)
// Kathleen Biagas, Thu Mar 20 14:58:49 PDT 2014
// Surround var with '<>' when used in expression. (Log and Skew scaling).
//
+// Kathleen Biagas, Fri Jun 23 08:29:29 PDT 2017
+// Modify how expressions are setup, to... |
Change 1 ip
145.239.232.52:13655 >> 14.152.81.132.13655 | 5.189.132.84:16775
+14.152.81.132.13655
24.234.35.55:31333
45.76.37.252:13654
47.100.202.206:56600
139.99.124.162:16775
142.44.143.234:888
144.202.120.160:13655
-145.239.232.52:13655
148.251.139.197:16800
148.251.189.108:13655
172.94.63.18:9797
195.201.168.17:16775
195.201.168.17:17775
195.201.169.202:16775
+
|
Make gradlew executable | @@ -249,6 +249,9 @@ class AndroidPlatform extends Platform
{
var assemble = (project.certificate != null) ? "assembleRelease" : "assembleDebug";
+ if(PlatformHelper.hostPlatform==Platform.MAC)
+ ProcessHelper.runCommand(outputDir, 'chmod', ['+x', './gradlew']);
+
var exe = PlatformHelper.hostPlatform==Platform.WINDOWS ... |
fix(lv_flex): simplify mem alloc approach | @@ -349,19 +349,15 @@ static int32_t find_track_end(lv_obj_t * cont, flex_t * f, int32_t item_start_id
t->grow_item_cnt++;
t->track_fix_main_size += item_gap;
if(t->grow_dsc_calc) {
- grow_dsc_t * new_dsc = lv_malloc(sizeof(grow_dsc_t) * (t->grow_item_cnt));
+ grow_dsc_t * new_dsc = lv_realloc(t->grow_dsc, sizeof(grow_... |
[#1116]modify error_ethereum_node_url err | @@ -709,7 +709,7 @@ START_TEST(test_002InitWallet_0008SetNodeUrlFailureNodeUrlOutOfLimit)
/* 1. execute unit test */
wallet_ptr->network_info.node_url_ptr = NULL;
- rtnVal = BoatEthWalletSetNodeUrl(wallet_ptr, error_ethereum_node_url);
+ rtnVal = BoatEthWalletSetNodeUrl(wallet_ptr, error_platon_node_url);
/* 2. verify ... |
Little fix for kdf135_tls macro | @@ -221,7 +221,7 @@ ACVP_RESULT acvp_kdf135_tls_kat_handler (ACVP_CTX *ctx, JSON_Object *obj) {
}
if (strnlen(pm_secret, pm_len) != pm_len/8) {
ACVP_LOG_ERR("pmLen(%d) or pmSecret length(%d) incorrect",
- pm_len/8, strnlen(pm_secret, ACVP_KDF135_TLS_PMSECRET_HEX_MAX));
+ pm_len/8, strnlen(pm_secret, ACVP_KDF135_TLS_PMS... |
common BUGFIX comparison typo | @@ -2342,7 +2342,7 @@ sr_chmodown(const char *path, const char *owner, const char *group, mode_t perm)
/* apply permission changes, if any */
if (((int)perm != -1) && (chmod(path, perm) == -1)) {
- if ((errno == EACCES) || (errno = EPERM)) {
+ if ((errno == EACCES) || (errno == EPERM)) {
err_code = SR_ERR_UNAUTHORIZED;... |
permission-group-hook: support /lib/dbug interface | :: mirror the ships in specified groups to specified permission paths
::
/- *group-store, *permission-group-hook
-/+ *permission-json, default-agent, verb
+/+ *permission-json, default-agent, verb, dbug
::
|%
+$ state
=* state -
::
%+ verb |
+%- agent:dbug
^- agent:gall
=<
|_ =bowl:gall
|
prom: fix coverity 277312, 277317
If one attempts to add a pattern with zero length, first time
it will succeed, and the second time it will cause an invalid memcmp call.
Solution: do not allow to add zero-length patterns.
Type: fix | @@ -305,6 +305,8 @@ prom_stat_patterns_add (u8 **patterns)
{
found = 0;
len = vec_len (*pattern);
+ if (len == 0)
+ continue;
vec_foreach (existing, pm->stats_patterns)
{
if (vec_len (*existing) != len)
|
neon/cvt: cast result of float/double comparison
Fixes | @@ -184,7 +184,7 @@ simde_vcvt_u32_f32(simde_float32x2_t a) {
#if defined(SIMDE_CONVERT_VECTOR_) && defined(SIMDE_VECTOR_SCALAR)
SIMDE_CONVERT_VECTOR_(r_.values, a_.values);
- r_.values &= (a_.values >= SIMDE_FLOAT32_C(0.0));
+ r_.values &= HEDLEY_REINTERPRET_CAST(__typeof__(r_.values), (a_.values >= SIMDE_FLOAT32_C(0.... |
esp32/machine_i2c: Allow boards to configure I2C pins using new macros.
Following how SPI is configured (and how stm32 does it). | #include "driver/i2c.h"
-#define I2C_0_DEFAULT_SCL (GPIO_NUM_18)
-#define I2C_0_DEFAULT_SDA (GPIO_NUM_19)
+#ifndef MICROPY_HW_I2C0_SCL
+#define MICROPY_HW_I2C0_SCL (GPIO_NUM_18)
+#define MICROPY_HW_I2C0_SDA (GPIO_NUM_19)
+#endif
+
+#ifndef MICROPY_HW_I2C1_SCL
#if CONFIG_IDF_TARGET_ESP32
-#define I2C_1_DEFAULT_SCL (GPIO... |
contact-push-hook: kick on set-private, share on set-public | |= =vase
^- [(list card) agent]
=/ =update:store !<(update:store vase)
- ?. ?=(%disallow -.update) [~ this]
+ ?+ -.update [~ this]
+ %disallow
:_ this
[%give %kick ~[resource+(en-path:res [our.bowl %''])] ~]~
+ ::
+ %set-public
+ :_ this
+ ?. public.update
+ [%give %kick ~[resource+(en-path:res [our.bowl %''])] ~]~
+ %... |
Sync nsd-control-setup with unbound-control-setup
Make nsd-control-setup add x509v3 SAN extensions to generated
certificates by essentially syncing this script with unbound's
unbound-control-setup, which already includes these extensions in
generated certificates. | @@ -43,7 +43,7 @@ SERVERNAME=nsd
CLIENTNAME=nsd-control
# validity period for certificates
-DAYS=3650
+DAYS=7200
# size of keys in bits
BITS=3072
@@ -86,9 +86,7 @@ fatal() {
usage() {
cat <<EOF
usage: $0 OPTIONS
-
OPTIONS
-
-d <dir> used directory to store keys and certificates (default: $DESTDIR)
-h show help notice
-... |
BugID:17988925: modify kernel/mm component of mk/config.in/readme | @@ -340,7 +340,7 @@ endif
# MBINS build support
ifeq ($(MBINS),app)
COMPONENTS += mbins.umbins
-COMPONENTS += rhino.mm
+COMPONENTS += mm
COMPONENTS += uspace
AOS_SDK_DEFINES += BUILD_APP
AOS_SDK_LDFLAGS += -Wl,-wrap,vprintf -Wl,-wrap,fflush -nostartfiles
|
added deauthentication and disassociation counter | @@ -126,6 +126,8 @@ static long int beaconerrorcount;
static long int proberesponsecount;
static long int proberequestcount;
static long int proberequestdirectedcount;
+static long int deauthenticationcount;
+static long int disassociationcount;
static long int authenticationcount;
static long int authopensystemcount;
... |
Fix incorrect chipid params comparison
The current chipid params comparison code is based on a simple
memcmp. This doesn't work since the structure contains a string
pointer. Replace it with a simple field-by-field comparison. | @@ -916,6 +916,22 @@ void dump_a_chip (FILE *fp, struct stlink_chipid_params *dev) {
fprintf(fp, "flags %d\n\n", dev->flags);
}
+static int chipid_params_eq(struct stlink_chipid_params *p1, struct stlink_chipid_params *p2)
+{
+ return p1->chip_id == p2->chip_id &&
+ p1->description && p2->description &&
+ strcmp(p1->de... |
[dbg] add dlog macro | @@ -46,6 +46,13 @@ extern "C" {
#define DBG_COLOR
#endif
+/* for dlog */
+#ifdef PKG_USING_DLOG
+#include <dlog.h>
+#else
+#define DLOG(...)
+#endif
+
#if defined(RT_USING_ULOG)
/* using ulog compatible with rtdbg */
#include <ulog.h>
|
Add ksceNetConnect | @@ -545,6 +545,7 @@ typedef struct SceNetIcmpHeader {
int ksceNetSocket(const char *name, int domain, int type, int protocol);
int ksceNetAccept(int s, SceNetSockaddr *addr, unsigned int *addrlen);
int ksceNetBind(int s, const SceNetSockaddr *addr, unsigned int addrlen);
+int ksceNetConnect(int s, const SceNetSockaddr ... |
mINI: Support equal signs in keys and values | @@ -17,6 +17,10 @@ The minimal INI plugin (`mini`) is a very simple storage plugin based on the [IN
## Examples
+### Basic Usage
+
+The following example shows basic usage of the `mini` plugin.
+
```sh
# Mount mini plugin to cascading namespace `/examples/mini`
kdb mount mini.ini /examples/mini mini
@@ -54,6 +58,33 @@ ... |
Acknowledgements and following TRD. | @@ -19,11 +19,13 @@ const int COM_CHAN = 3;
const int COM_POWER = 4;
const int COM_TX = 5;
const int COM_READY = 6;
+const int COM_COMMIT = 7;
const int EVT_TX = 0;
const int EVT_RX = 1;
+const int EVT_CFG = 2;
-int radio_init(void) {
+int radio_init() {
while (!radio_ready()) {}
return 0;
} // Do nothing for now
@@ -4... |
stm32/usb: Use correct type for USB HID object. | @@ -588,7 +588,7 @@ STATIC mp_obj_t pyb_usb_hid_recv(size_t n_args, const mp_obj_t *args, mp_map_t *
};
// parse args
- pyb_usb_vcp_obj_t *self = MP_OBJ_TO_PTR(args[0]);
+ pyb_usb_hid_obj_t *self = MP_OBJ_TO_PTR(args[0]);
mp_arg_val_t vals[MP_ARRAY_SIZE(allowed_args)];
mp_arg_parse_all(n_args - 1, args + 1, kw_args, MP... |
add $ to end of regex for better compatability | @@ -48,7 +48,7 @@ static const std::regex UNIQUE_INDICATOR("^[^#]+#[^#]+$");
static const std::regex CHANNEL_INDICATOR("^[^~]+~[^~]+$");
static const std::regex OWNER_INDICATOR("^[^!]+!$");
-static const std::regex RAVEN_NAMES("^RVN|^RAVEN|^RAVENCOIN|^RAVENC0IN|^RAVENCO1N|^RAVENC01N");
+static const std::regex RAVEN_NA... |
Prettify mutex code a bit.
The if statements at the start were a touch odd. | @@ -60,17 +60,19 @@ const mtxtrylock = {mtx
const mtxunlock = {mtx
/*
+ Either the lock is contended or it's uncontended. Any other
+ state is a bug.
+
Uncontended case: If the mutex state is not contended, and we still
are uncontended by the xchg() call, then it's safe to simply return;
nobody was waiting for us.
*/
-... |
MCF updated to 2.12 | official repo : http://archive.apache.org/dist/manifoldcf/apache-manifoldcf-${mcf.version}/apache-manifoldcf-${mcf.version}-bin.tar.gz
Datafari repo : http://repomcf.datafari.com/mcf/apache-manifoldcf-${mcf.version}-dev-bin-${mcf.commit.number}.tar.gz
-->
- <url>http://repomcf.datafari.com/mcf/apache-manifoldcf-${mcf.v... |
fix typo in x509 documentation | @@ -429,7 +429,7 @@ the CA certificate file.
Sets the CA serial number file to use.
When the B<-CA> option is used to sign a certificate it uses a serial
-number specified in a file. This file consist of one line containing
+number specified in a file. This file consists of one line containing
an even number of hex dig... |
yet more error messages | @@ -207,7 +207,7 @@ int picoquic_socket_set_ecn_options(SOCKET_TYPE sd, int af, int * recv_set, int
/* Request receiving TOS reports in recvmsg */
if (setsockopt(sd, IPPROTO_IP, IP_RECVTOS, &set, sizeof(set)) < 0) {
- DBG_PRINTF("setsockopt IPv6 IPRECVTOS (0x%x) fails, errno: %d\n", set, errno);
+ DBG_PRINTF("setsockop... |
odissey: update INTERNALS documentation | Odissey heavily depends on two libraries, which were originally created during its
development: Machinarium and Shapito.
-**Machinarium**
+#### Machinarium
Machinarium extensively used for organization of multi-thread processing, cooperative multi-tasking
and networking IO. All Odissey threads are run in context of mac... |
crunch: Check CSV path mark at start of generator | :- %say
|= [[now=@da * bec=beak] [csv-path=path from=@da ~] [to=@da groups=(list path) content=(unit ?) ~]]
=/ our=@p p.bec
+:: check given path has `csv` mark
+::
+?> =(%csv (snag (dec (lent csv-path)) csv-path))
:: get all graph associations ship is a part of
::
=/ associations=associations:ms
|
posix poll: fix timeout overflow error | @@ -1832,13 +1832,13 @@ int posix_poll(struct pollfd *fds, nfds_t nfds, int timeout_ms)
if (!n) {
if (timeout_ms > 0)
- proc_threadSleep(timeout_ms * 1000);
+ proc_threadSleep(timeout_ms * 1000LL);
return 0;
}
if (timeout_ms >= 0) {
proc_gettime(&timeout, &unused);
- timeout += timeout_ms * 1000 + !timeout_ms;
+ timeou... |
ci: deploy to preview as soon as build doc jobs are done | @@ -158,7 +158,6 @@ build_docs_pdf:
tags:
- deploy
- shiny
- dependencies: []
script:
- add_doc_server_ssh_keys $DOCS_DEPLOY_PRIVATEKEY $DOCS_DEPLOY_SERVER $DOCS_DEPLOY_SERVER_USER
- export GIT_VER=$(git describe --always ${PIPELINE_COMMIT_SHA} --)
@@ -174,10 +173,13 @@ deploy_docs_preview:
- <<: *if-label-docs
- <<: *... |
Put extra jtag commands at end of command line so previous args can be overridden | @@ -53,7 +53,7 @@ jlink_load () {
# downloading somewhere in the flash. So need to figure out how to tell it
# not to do that, or report failure if gdb fails to write this file
#
- echo "shell sh -c \"trap '' 2; $JLINK_GDB_SERVER $EXTRA_JTAG_CMD -device $JLINK_DEV -speed 4000 -if SWD -port 3333 -singlerun &\" " > $GDB_... |
doc CHANGE changes updated | - sr_*_item flag SR_EDIT_NON_RECURSIVE not supported for sr_delete_item()
-- sr_commit() renamed to sr_apply_changes()
- sr_node_t -> struct lyd_node *
- sr_get_subtree(s) removed opts (no iterative retrieval)
- sr_unsubscribe first parameter removed
- deleting a leaf does not check the value/it can be empty! but other... |
fix ble compilation error | @@ -568,7 +568,6 @@ void controller_sleep_deinit(void)
if (s_pm_lock != NULL) {
esp_pm_lock_release(s_pm_lock);
}
- s_pm_lock_acquired = false;
}
if (!s_btdm_allow_light_sleep) {
|
zephyr/test/drivers/src/lis2dw12.c: Format with clang-format
BRANCH=none
TEST=none | @@ -425,8 +425,8 @@ ZTEST(lis2dw12, test_lis2dw12_read)
* output
*/
- expected_sample[i] = fake_sample[i] *
- (1 << (16 - LIS2DW12_RESOLUTION));
+ expected_sample[i] =
+ fake_sample[i] * (1 << (16 - LIS2DW12_RESOLUTION));
}
i2c_common_emul_set_read_fail_reg(i2c_emul,
|
remove creation of configuration | @@ -42,12 +42,7 @@ CLIENT_OBJECTS := $(OBJDIR)/$(CLIENT).o $(OBJDIR)/utils/cleaner.o
API_OBJECTS := $(OBJDIR)/api.o $(OBJDIR)/ipc/ipc.o $(OBJDIR)/ipc/communicator.o $(OBJDIR)/json.o $(OBJDIR)/utils/cleaner.o $(OBJDIR)/utils/stringUtils.o $(OBJDIR)/utils/colors.o $(OBJDIR)/utils/listUtils.o
rm = rm -f
-all: dependencies... |
BUFR: Changing the subtype in the local section has effect on other keys | @@ -60,9 +60,9 @@ if (section2Present && bufrHeaderCentre==98 && section2Length==52) {
meta localLongitude2 bits(keyMore,0,26,-18000000,100000) : dump,no_copy;
meta localLatitude2 bits(keyMore,32,25,-9000000,100000) : dump,no_copy;
- if (rdbSubtype > 255 || numberOfSubsets>255 ||
- ( rdbSubtype>=121 && rdbSubtype <=130... |
nvbios/mem v1: pre-document some table names
This is taken from | @@ -40,7 +40,13 @@ parse_at(struct envy_bios *bios, struct envy_bios_mem *mem,
int idx, int offset, const char ** name)
{
struct M_known_tables m1_tbls[] = {
+ /* { 0x00, &mem->trestrict, "RESET" }, */
+ /* 0x01 Memory Strap Data Count */
{ 0x03, &mem->trestrict, "RESTRICT" },
+ /* { 0x05, &mem->, "DATA VREF" }, */
+ /... |
Completely remove legacy mitigation policy | @@ -119,8 +119,6 @@ INT WINAPI wWinMain(
return 1;
if (!PhInitializeNamespacePolicy())
return 1;
- if (!PhInitializeMitigationPolicy())
- return 1;
if (!PhInitializeComPolicy())
return 1;
@@ -844,55 +842,10 @@ BOOLEAN PhInitializeNamespacePolicy(
return TRUE;
}
-BOOLEAN PhInitializeMitigationPolicy(
- VOID
- )
-{
- // ... |
Fix metadata_io_page_lock_acquired typo | @@ -296,7 +296,7 @@ static void metadata_io_io_end(struct metadata_io_request *m_req, int error)
metadata_io_req_complete(m_req);
}
-static void matadata_io_page_lock_acquired(struct ocf_request *req)
+static void metadata_io_page_lock_acquired(struct ocf_request *req)
{
ocf_engine_push_req_front(req, true);
}
@@ -319,... |
[CI] Do not lint patches | @@ -44,6 +44,6 @@ done
# Check for trailing whitespaces and tabs
echo "Checking for trailing whitespaces and tabs"
-git diff --check $base HEAD -- ':(exclude)**.def' || EXIT_STATUS=$?
+git diff --check $base HEAD -- ':(exclude)**.def' ':(exclude)**.patch' || EXIT_STATUS=$?
exit $EXIT_STATUS
|
Remove test due to C++ compilation problems | @@ -61,7 +61,6 @@ TESTS = definitions.sh \
grib_jpeg.sh \
grib_ccsds.sh \
md5.sh \
- grib_util_set_spec.sh \
grib_neg_fctime.sh \
bufr_ecc-197.sh \
bufr_ecc-286.sh \
@@ -76,7 +75,7 @@ download_data:
noinst_PROGRAMS = packing_check gauss_sub read_any grib_double_cmp packing pack_unpack \
multi_from_message julian read_i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.