message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Aggressively remove SBT plugins that may no longer be needed | -addSbtPlugin("net.virtual-void" % "sbt-dependency-graph" % "0.9.2")
-addSbtPlugin("com.typesafe.sbt" % "sbt-ghpages" % "0.6.2")
-addSbtPlugin("com.typesafe.sbt" % "sbt-site" % "1.3.1")
-addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.10.0")
-addSbtPlugin("org.xerial.sbt" % "sbt-pack" % "0.9.3")
-addSbtPlugin("com.e... |
Rollback: r6448830, r6448741
[diff-resolver:workfork] Sandbox task:
Task author: workfork@
Description: Revert r6448741 due to dramatic slow down of configure stage, and its complementary r6448830 to be reverted too.
Note: mandatory check (NEED_CHECK) was skipped | @@ -23,9 +23,6 @@ def macro_calls_to_dict(unit, calls):
unit.message(['error', 'Invalid variables specification "{}": value expected to be in form %name%=%value% (with no spaces)'.format(arg)])
return None
- if kv[1] == 'true':
- kv[1] = 'yes'
-
return kv
return dict(filter(None, map(split_args, calls)))
@@ -53,19 +50,... |
gdbstub: added task state information on qThreadExtraInfo command | @@ -177,6 +177,15 @@ static bool get_task_handle(size_t index, TaskHandle_t *handle)
return true;
}
+static eTaskState get_task_state(size_t index)
+{
+ if (index >= s_scratch.task_count) {
+ return eInvalid;
+ }
+
+ return s_scratch.tasks[index].eState;
+}
+
/** Get the index of the task running on the current CPU, an... |
Add Struct tests
This patch will improve coverage of rmstruct.c
* Before
- Line coverage : 62.6 %
- Functions : 57.1 %
* After
- Line coverage : 94.9 %
- Functions : 100.0 % | @@ -5,8 +5,41 @@ require 'test/unit'
require 'test/unit/ui/console/testrunner' unless RUBY_VERSION[/^1\.9|^2/]
class StructUT < Test::Unit::TestCase
+ def test_chromaticity_to_s
+ image = Magick::Image.new(10, 10)
+ assert_match(/red_primary=\(x=.+,y=.+\) green_primary=\(x=.+,y=.+\) blue_primary=\(x=.+,y=.+\) white_poi... |
fix: replace typo of endpoint /ban/%llu with /bans/%llu | @@ -384,7 +384,7 @@ remove(client *client, const uint64_t guild_id, const uint64_t user_id, const ch
NULL,
&req_body,
HTTP_DELETE,
- "/guilds/%llu/ban/%llu", guild_id, user_id);
+ "/guilds/%llu/bans/%llu", guild_id, user_id);
}
} // namespace ban
|
Add carriage return to Windows output to dump -system -config command | @@ -36,9 +36,16 @@ WriteDumpFileHeader(
goto Finish;
}
+#ifdef _MSC_VER
+ // file is open in binary mode so have to include carriage return in Windows version
+ AsciiSPrint(pHeaderBuffer, MAX_LINE_BYTE_LENGTH, "#SocketID,DimmHandle,Capacity,MemorySize,"
+ "AppDirect1Size,AppDirect1Format,AppDirect1Mirrored,AppDirect1In... |
Fix gpactivatestandby to respect -d flag
The gpactivatestandby utility always used $MASTER_DATA_DIRECTORY
environment variable, even when the -d flag was populated by the user.
Fix the issue by actually using the directory path supplied by the user. | @@ -292,16 +292,16 @@ def check_or_start_standby(options):
with open(promote_file, 'w') as f:
f.write('')
- start_master()
+ start_master(options)
return False
#-------------------------------------------------------------------------
-def start_master():
+def start_master(options):
"""Starts the master."""
logger.info... |
PROV: Fix encoding of MDWithRSAEncryption signature AlgorithmID
All {MD}WithRSAEncryption signature AlgorithmID have the parameters
being NULL, according to PKCS#1. We didn't. Now corrected.
This bug was the topic of this thread on | @@ -58,7 +58,9 @@ int ossl_DER_w_algorithmIdentifier_MDWithRSAEncryption(WPACKET *pkt, int tag,
}
return ossl_DER_w_begin_sequence(pkt, tag)
- /* No parameters (yet?) */
+ /* PARAMETERS, always NULL according to current standards */
+ && ossl_DER_w_null(pkt, -1)
+ /* OID */
&& ossl_DER_w_precompiled(pkt, -1, precompile... |
Fix WSL memory leak | @@ -172,7 +172,7 @@ BOOLEAN PhInitializeLxssImageVersionInfo(
if (PhEqualString2(lxssFileName, L"/init", FALSE))
{
- PhMoveReference(&lxssFileName, PhCreateString(L"/sbin/init"));
+ PhMoveReference(&lxssFileName, PhCreateString(L"init"));
}
PhMoveReference(&lxssCommandLine, PhFormatString(
@@ -208,6 +208,7 @@ BOOLEAN P... |
Android: fix loading image issue | @@ -171,15 +171,12 @@ public class SplashScreen implements MainView{
int loading_id = RhoExtManager.getResourceId("drawable.loading");
loading_bitmap = BitmapFactory.decodeResource(activity.getResources(), loading_id);
if (loading_bitmap != null) {
- type = 2;
+ type = 55;
}
}
catch (Throwable e) {
Logger.E(TAG, e);
}
... |
initialize the clock gating control signal of each modem clock domain | #include "soc/i2s_reg.h"
#include "esp_cpu.h"
#include "hal/wdt_hal.h"
+#include "esp_private/esp_modem_clock.h"
#include "esp_private/periph_ctrl.h"
#include "esp_private/esp_clk.h"
#include "esp_rom_uart.h"
@@ -178,6 +179,7 @@ void rtc_clk_select_rtc_slow_clk(void)
*/
__attribute__((weak)) void esp_perip_clk_init(voi... |
[swig] Do not assume (in)SiconosMatrix& is not SP | @@ -788,6 +788,10 @@ struct IsDense : public Question<bool>
void * swig_argp;
int swig_res = SWIG_ConvertPtr(obj, &swig_argp, $descriptor(SiconosMatrix *), 0 | 0);
+ if (!SWIG_IsOK(swig_res))
+ {
+ swig_res = SWIG_ConvertPtr(obj, &swig_argp, $descriptor(SP::SiconosMatrix *), 0 | 0);
+
if (!SWIG_IsOK(swig_res))
{
SP::Si... |
[mod_mbedtls] lift size check out of DN loop
lift size check out of client Subject DN loop
move loop invariant into for() declaration | @@ -2401,16 +2401,15 @@ https_add_ssl_client_subject (request_st * const r, const mbedtls_x509_name *nam
{
/* add components of client Subject DN */
/* code block is similar to mbedtls_x509_dn_gets() */
+ /* code block specialized for creating env vars of Subject DN components
+ * and splits multi-valued RDNs into sepa... |
made NAT64 address prefix configurable | #define LOG_MODULE "IPv6"
#define LOG_LEVEL LOG_LEVEL_NONE
+/*
+ * By defult we do use the well-known-prefix for the IP64 address prefix, see
+ * RFC6052, https://tools.ietf.org/html/rfc6052#section-2.1 .
+ * To make use of ::ffff:<IPv4> define IP64_NAT64_USE_WELL_KNOWN_PREFIX to zero.
+ */
+#ifndef IP64_NAT64_USE_WELL... |
docs: update copyright date range | \vspace*{0.5cm}
-\noindent Copyright {\small\copyright} 2016-2019, OpenHPC, a Linux Foundation
+\noindent Copyright {\small\copyright} 2016-2020, OpenHPC, a Linux Foundation
Collaborative Project. All rights reserved. \\
\vspace*{0.1cm}
|
add fpgainfo verbose command test case | @@ -1357,5 +1357,23 @@ TEST_P(fpgainfo_c_p, main_6) {
EXPECT_NE(fpgainfo_main(4, argv), 0);
}
+/**
+ * @test main_7
+ * @brief Test: fpgainfo_main
+ * @details When passed with valid option, the fn <br>
+ * returns 0. <br>
+ */
+TEST_P(fpgainfo_c_p, main_7) {
+ char zero[20];
+ char one[20];
+ char two[20];
+ char *arg... |
Do not issue JTAG reset on stlink-v1 | @@ -92,10 +92,12 @@ int main(int ac, char** av)
}
if (o.reset){
+ if (sl->version.stlink_v > 1) {
if (stlink_jtag_reset(sl, 2)) {
printf("Failed to reset JTAG\n");
goto on_error;
}
+ }
if (stlink_reset(sl)) {
printf("Failed to reset device\n");
@@ -185,10 +187,12 @@ int main(int ac, char** av)
}
} else if (o.cmd == CMD... |
Check return from BN_sub | @@ -339,7 +339,8 @@ static int rsa_ossl_private_encrypt(int flen, const unsigned char *from,
goto err;
if (padding == RSA_X931_PADDING) {
- BN_sub(f, rsa->n, ret);
+ if (!BN_sub(f, rsa->n, ret))
+ goto err;
if (BN_cmp(ret, f) > 0)
res = f;
else
|
test/recipes/30-test_evp_data/evppkey.txt
Tests that go through provider cannot recognise PKEY_CTRL_INVALID from
PKEY_CTRL_ERROR any more, because provided implementations' param
setting functions return 0 or 1. | @@ -414,7 +414,7 @@ Reason = operation not supported for this keytype
Sign = RSA-2048
Availablein = default
Ctrl = rsa_mgf1_md:sha1
-Result = PKEY_CTRL_INVALID
+Result = PKEY_CTRL_ERROR
Reason = invalid mgf1 md
# RSA PSS key tests
|
VirtIOFS: fix use-after-free in Create handler
FspPosixDeletePath(fullpath) shouldn't be called until last use of
'filename' because it points to the same buffer. | @@ -1361,7 +1361,6 @@ static NTSTATUS Create(FSP_FILE_SYSTEM *FileSystem, PWSTR FileName,
Status = FspPosixMapWindowsToPosixPath(FileName + 1, &fullpath);
if (!NT_SUCCESS(Status))
{
- FspPosixDeletePath(fullpath);
return Status;
}
@@ -1372,13 +1371,12 @@ static NTSTATUS Create(FSP_FILE_SYSTEM *FileSystem, PWSTR FileNam... |
dispatcher: fix crash introduced by last commit | @@ -638,8 +638,11 @@ dispatch_addconnection(int sock, listener *lsnr)
}
/* setup decompressor */
+ if (lsnr == NULL) {
+ /* do nothing, catch case only */
+ }
#ifdef HAVE_GZIP
- if ((lsnr->transport & 0xFFFF) == W_GZIP) {
+ else if ((lsnr->transport & 0xFFFF) == W_GZIP) {
z_strm *zstrm = malloc(sizeof(z_strm));
if (zst... |
bricks/ev3dev/pbdevice: get mode on init
This ensures the mode and mode info is available when we call pbdevice_get_info | @@ -56,10 +56,7 @@ static pbio_error_t get_device(pbdevice_t **pbdev, pbio_iodev_type_id_t valid_id
pbdevice_t *_pbdev = &iodevices[port - PBIO_PORT_1];
- *pbdev = _pbdev;
-
_pbdev->port = port;
- _pbdev->mode = 255;
pbio_error_t err;
@@ -76,6 +73,20 @@ static pbio_error_t get_device(pbdevice_t **pbdev, pbio_iodev_type... |
in_event_type: use flb_ versions for malloc and free | @@ -45,7 +45,7 @@ static struct ctrace_id *create_random_span_id()
ssize_t ret;
struct ctrace_id *cid;
- buf = calloc(1, OTEL_SPAN_ID_LEN);
+ buf = flb_malloc(OTEL_SPAN_ID_LEN);
if (!buf) {
ctr_errno();
return NULL;
@@ -53,12 +53,12 @@ static struct ctrace_id *create_random_span_id()
ret = ctr_random_get(buf, OTEL_SPAN... |
Reduce RTT list for General WAN Perf | @@ -77,7 +77,7 @@ stages:
protocol: ('QUIC','TCPTLS')
bottleneckQueueRatio: (0.2,1,5)
rateMbps: 5
- rttMs: (10,20,50,100,200)
+ rttMs: (20,50,100)
randomLossDenominator: (0,1000,10000)
randomReorderDenominator: (0,1000,10000)
reorderDelayDeltaMs: (5,10)
@@ -93,7 +93,7 @@ stages:
protocol: ('QUIC','TCPTLS')
bottleneckQu... |
BugID:17920924:add pthread attr support and testcase 4 | */
#include <k_api.h>
-#include "pthread.h"
+#include "posix/pthread.h"
+
+extern pthread_key_list_t pthread_key_list_head;
#if (RHINO_CONFIG_USER_HOOK > 0)
void krhino_idle_hook(void)
|
doc: sort title in developer HLD section
We've got enough docs now that it would be better to put them in sorted
order by title. | @@ -19,17 +19,17 @@ specific areas within the ACRN hypervisor system.
.. toctree::
:maxdepth: 1
- memmgt-hld.rst
- virtio-hld.rst
- virtio-console.rst
- uart-virtualization.rst
ACPI-virt-hld.rst
- interrupt-hld.rst
APL_GVT-g-hld.rst
GVT-g-porting.rst
+ interrupt-hld.rst
+ memmgt-hld.rst
+ network-virt-hld.rst
security-... |
eyre: send warp to warm %c cache for any mark that gets used | $% [%rest p=@da]
[%wait p=@da]
== ==
+ $: %c
+ $>(%warp task:clay)
+ ==
:: %d: to dill
::
$: %d
:: since conversion failure also gets caught during first receive.
:: we can't do anything about this, so consider it unsupported.
?~ sign=(channel-event-to-sign channel-event) $
- ?~ json=(sign-to-json request-id u.sign) $
... |
ORB: Don't scale the first octave | @@ -380,10 +380,16 @@ array_t *orb_find_keypoints(image_t *img, bool normalized, int threshold, rectan
break;
}
+ if (octave == 1) {
+ // Don't have to copy and scale the first octave
+ img_scaled.w = img->w;
+ img_scaled.h = img->h;
+ img_scaled.pixels = img->pixels;
+ } else {
img_scaled.pixels = fb_alloc(img_scaled.... |
[libc] fix a warning squelch for some locally defined routines | /* some cruft we have to define when using the linux toolchain */
#include <unwind.h>
-#pragma GCC diagnostic ignored "-Wmissing-declarations"
+#pragma GCC diagnostic ignored "-Wmissing-prototypes"
void *__dso_handle;
|
Add Android to build and target platforms.
Describe Android as supported for Office applications, add oteldiscuss
as the first point of contact for Android in Office. | @@ -36,6 +36,7 @@ To build the SDK, please refer to [How to build the SDK](CONTRIBUTING.md#How_to_
| Ubuntu 14.04.* LTS | GCC 4.8.*, 4.9.4 |
| Ubuntu 14.04.1 LTS | GCC 5.x.x |
| Ubuntu 16.04 LTS | GCC 5.x.x (armv7l) |
+ | Windows 10 | Android Studio/Gradle |
| Windows Server 2016 | Visual Studio 2017 |
</details>
@@ -4... |
docs: temporarily perform yum installs with --skip-broken to account for
meta-packages that have broken builds | \newcommand{\chrootaddrepo}{wget -P \$CHROOT/etc/yum.repos.d}
\newcommand{\clean}{yum clean expire-cache}
\newcommand{\chrootclean}{yum --installroot=\$CHROOT clean expire-cache}
-\newcommand{\install}{yum -y install}
+\newcommand{\install}{yum -y --skip-broken install}
\newcommand{\chrootinstall}{yum -y --installroot=... |
More cleanly detect if emulator isn't running in a terminal
Supress annoying messages in this case, skip other terminal initialization. | @@ -171,7 +171,7 @@ int main(int argc, char *argv[])
const char *shared_memory_file = NULL;
struct stat st;
bool random_thread_sched = false;
- struct termios tconfig;
+ struct termios new_tconfig;
enum
{
@@ -373,14 +373,12 @@ int main(int argc, char *argv[])
enable_random_thread_sched(proc);
// Set up terminal for unb... |
ViewProfile: clone contact groups array
Fixes urbit/landscape#682 | @@ -62,7 +62,7 @@ export function ViewProfile(props: any): ReactElement {
<Col gapY='3' mb='3' mt='6' alignItems='flex-start'>
<Text gray>Pinned Groups</Text>
<Col>
- {contact?.groups.sort(lengthOrder).map((g) => (
+ {contact?.groups.slice().sort(lengthOrder).map((g) => (
<GroupLink
api={api}
resource={g}
|
Properly initialize pipeline structures
We weren't setting simple fields to 0/NULL, causing reads from
uninitialized memory
Tested-by: Build Bot | @@ -543,6 +543,15 @@ int
mcreq_pipeline_init(mc_PIPELINE *pipeline)
{
nb_SETTINGS settings;
+
+ /* Initialize all members to 0 */
+ memset(&pipeline->requests, 0, sizeof pipeline->requests);
+ pipeline->parent = NULL;
+ pipeline->flush_start = NULL;
+ pipeline->index = 0;
+ memset(&pipeline->ctxqueued, 0, sizeof pipeli... |
Support Monero Stratum keepalived requests | @@ -299,7 +299,8 @@ namespace MiningCore.Blockchain.Monero
break;
case MoneroStratumMethods.KeepAlive:
- // ignored
+ // recognize activity
+ client.Context.LastActivity = DateTime.UtcNow;
break;
default:
|
stm32f4discovery; allow building bootloader without uart0. | #include <syscfg/syscfg.h>
#include <os/os_dev.h>
+#if MYNEWT_VAL(UART_0)
#include <uart/uart.h>
#include <uart_hal/uart_hal.h>
+#endif
#include <hal/hal_bsp.h>
#include <hal/hal_gpio.h>
@@ -88,6 +90,8 @@ hal_bsp_init(void)
{
int rc;
+ (void)rc;
+
#if MYNEWT_VAL(UART_0)
rc = os_dev_create((struct os_dev *) &hal_uart0, ... |
build: adds microbenchmark for virtualized cue | @@ -296,6 +296,64 @@ _cue_bench(void)
u3z(vat);
}
+static u3_noun
+_cue_loop(u3_atom a)
+{
+ c3_w i_w, max_w = 20000;
+
+ for ( i_w = 0; i_w < max_w; i_w++ ) {
+ u3z(u3s_cue(a));
+ }
+
+ return u3_blip;
+}
+
+static u3_noun
+_cue_atom_loop(u3_atom a)
+{
+ c3_w i_w, max_w = 20000;
+
+ for ( i_w = 0; i_w < max_w; i_w++ )... |
revert writing to DDR for all actions, since this works only on hdl_example | step "$SNAP_ROOT/software/tools/snap_maint -m1 -c1 -vvv"
t="$SNAP_ROOT/software/tools/snap_peek 0x18 "; r=$($t|grep ']'|awk '{print $2}');echo -e "$t result=$r # statusreg 0x100=exploration done 1action, 0x111=2action"
fi
- if (( dram > 0 ));then echo -e "write FPGA memory to prevent reading unwritten adr 0"
- step "$A... |
use long key fingerprint to prevent collisions | @@ -57,7 +57,7 @@ The stable and the nightly packages are built for Ubuntu Xenial (16.04), Ubuntu
**Stable and Signed Packages**
```bash
-sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys D4284CDD
+sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4052245BD4284CDD
echo "deb https://repo.iovisor.... |
push-hook: use store-name.config correctly | =/ wire
(make-wire /store)
:_ state
- [%pass wire %agent [our.bowl %group-store] %poke update-mark.config vase]~
+ [%pass wire %agent [our.bowl store-name.config] %poke update-mark.config vase]~
::
++ poke-hook-action
|= =action
|
[core] replace folding whitespace with a single space
previously the leading whitespace from folded lines was kept
also ignore lines without any data | @@ -1067,7 +1067,18 @@ int http_request_parse(server *srv, connection *con) {
goto failure;
}
+ if (value_len > 0) {
+ /* strip leading whitespace; trailing was already removed, so can't be empty */
+ while (value_len > 0 && (value[0] == ' ' || value[0] == '\t')) {
+ value++;
+ --value_len;
+ }
+
+ if (buffer_string_le... |
[dpos] revert the LIB formula to the original | @@ -129,7 +129,8 @@ func (pls *pLibStatus) calcLIB() *blockInfo {
return libInfos[i].blockNo < libInfos[j].blockNo
})
- lib := libInfos[(len(libInfos)-1)/(3*int(bpConsensusCount))]
+ // TODO: check the correctness of the formula.
+ lib := libInfos[(len(libInfos)-1)/3]
if lib != nil {
for _, l := range pls.plib {
if l.b... |
docs: add limitation of path lenght for Windows Installer | @@ -22,6 +22,8 @@ For this Getting Started we're going to use the Command Prompt, but after ESP-ID
Previous versions of ESP-IDF used the :doc:`Legacy GNU Make Build System<../get-started-legacy/windows-setup>` and MSYS2_ Unix compatibility environment. This is no longer required, ESP-IDF can be used from the Windows Co... |
Block the USD_Ops plugin | @@ -197,7 +197,7 @@ set(
# Block out Houdini plugins that would load Houdini's UI libraries.
set(
houdini_dso_exclude_pattern
- "HOUDINI_DSO_EXCLUDE_PATTERN={ROP_OpenGL,CHOP_Mouse3D,COP2_GPULighting,COP2_GPUFog,COP2_GPUEnvironment,COP2_GPUZComposite,COP2_EnableGPU,SHOP_OGL,SOP_VDBUI,OBJ_ReLight,VEX_OpRender}*"
+ "HOUDI... |
[mod_magnet] avoid infinite loop in atpanic (fixes
(thx axe34)
Be more careful inside the atpanic handler to avoid an infinite loop
that repeats the call to the atpanic handler
x-ref:
"Segmentation Fault due to Empty String on Mod Magnet" | @@ -365,9 +365,9 @@ static int magnet_stat(lua_State *L) {
static int magnet_atpanic(lua_State *L) {
- const_buffer cb = magnet_checkconstbuffer(L, 1);
request_st * const r = magnet_get_request(L);
- log_error(r->conf.errh, __FILE__, __LINE__, "(lua-atpanic) %s", cb.ptr);
+ log_error(r->conf.errh, __FILE__, __LINE__, "... |
Upgrade Alpine version + use multistage Docker build | -FROM alpine:3.6
+FROM alpine:3.10 AS builder
-MAINTAINER Fabian Groffen
+ADD . /opt/carbon-c-relay-build
+WORKDIR /opt/carbon-c-relay-build
-RUN mkdir -p /opt/carbon-c-relay-build
+RUN \
+ apk add --no-cache git bc build-base curl automake autoconf && \
+ ./configure && make
-RUN mkdir /etc/carbon-c-relay
+FROM alpine... |
added os x 10.12 | @@ -128,7 +128,8 @@ function bv_qt_info
if [[ "${MACOSX_DEPLOYMENT_TARGET}" == "10.8" ||
"${MACOSX_DEPLOYMENT_TARGET}" == "10.9" ||
"${MACOSX_DEPLOYMENT_TARGET}" == "10.10" ||
- "${MACOSX_DEPLOYMENT_TARGET}" == "10.11" ]]; then
+ "${MACOSX_DEPLOYMENT_TARGET}" == "10.11" ||
+ "${MACOSX_DEPLOYMENT_TARGET}" == "10.12" ]];... |
[arch][arm-m] dont set up unused vectors on armv6m cores
Just saves a few hundred bytes of unused code. | * license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT
*/
+#include <arch/arm/cm.h>
#include <lk/compiler.h>
#include <stdint.h>
@@ -30,15 +31,22 @@ extern void _systick(void);
extern struct __debugger_info__ _debugger_info;
#endif
+// ARMv7m+ have more vectors than armv6m
+#if (__C... |
[contract] add tx fee test for the chain version 3 | @@ -5816,6 +5816,8 @@ func TestBF(t *testing.T) {
if err != nil {
t.Error(err)
}
+
+ feeTest := func(expectedFee uint64) {
bal := state.GetBalanceBigInt().Uint64()
tx := NewLuaTxCall("ktlee", "op", 0, `{"Name": "main"}`)
err = bc.ConnectBlock(tx)
@@ -5823,7 +5825,6 @@ func TestBF(t *testing.T) {
t.Error(err)
}
r := bc.... |
This should fix the test replay | @@ -25,7 +25,7 @@ RUN mkdir /openpilot
WORKDIR /openpilot
RUN git clone https://github.com/commaai/cereal.git || true
WORKDIR /openpilot/cereal
-RUN git checkout f7043fde062cbfd49ec90af669901a9caba52de9
+RUN git checkout bb2cc7572de99becce1bfbae63f3b38d5464e162
COPY . /openpilot/panda
WORKDIR /openpilot/panda/tests/saf... |
router: do not connect direct on match_regex | @@ -182,7 +182,12 @@ int flb_router_io_set(struct flb_config *config)
i_ins = mk_list_entry_first(&config->inputs, struct flb_input_instance, _head);
o_ins = mk_list_entry_first(&config->outputs, struct flb_output_instance, _head);
- if (!o_ins->match) {
+ if (!o_ins->match
+#ifdef FLB_HAVE_REGEX
+ && !o_ins->match_reg... |
luci-app-firewall: add option for Fullcone NAT | @@ -42,6 +42,7 @@ return L.view.extend({
o = s.option(form.Flag, 'syn_flood', _('Enable SYN-flood protection'));
o = s.option(form.Flag, 'drop_invalid', _('Drop invalid packets'));
+ o = s.option(form.Flag, 'fullcone', _('Enable FullCone NAT'));
var p = [
s.option(form.ListValue, 'input', _('Input')),
|
oic; fix build when compiling with sys/log/stub. | @@ -33,6 +33,7 @@ oc_log_endpoint(uint16_t lvl, struct oc_endpoint *oe)
char tmp[46 + 6];
(void)tmp;
+ (void)str;
switch (oe->oe.flags) {
#if (MYNEWT_VAL(OC_TRANSPORT_IP) == 1)
@@ -73,6 +74,7 @@ oc_log_bytes(uint16_t lvl, void *addr, int len, int print_char)
int i;
uint8_t *p = (uint8_t *)addr;
+ (void)p;
log_printf(&o... |
added Renee to volunteer list | @@ -58,7 +58,7 @@ In preparation for constraining cosmology with the Large Synoptic Survey Telesco
%-------------------------------------------------------------------------------
\section{Cosmological models and observables}
-\vol{?}
+\vol{Renee}
\todo{Range of validity of the predictions.}
@@ -78,7 +78,7 @@ Not all f... |
Adds missing clean target for gpmapreduce | @@ -79,7 +79,7 @@ uninstall:
rm -f '$(DESTDIR)$(bindir)/gpmapreduce$(X)'
clean distclean maintainer-clean: clean-lib
- rm -f gpmapreduce$(X) $(MAPREDOBJS) $(GENOBJS)
+ rm -f gpmapreduce$(X) $(MAPREDOBJS) $(GENOBJS) $(OBJS)
# Other dependencies
$(SRCDIR)/yaml_parse.c : $(INCDIR)/parser.h $(INCDIR)/mapred.h
|
Do not accept a NAT binding if the regular path responds faster. | @@ -3327,7 +3327,7 @@ uint8_t* picoquic_decode_path_response_frame(picoquic_cnx_t* cnx, uint8_t* bytes
}
}
if (found_challenge) {
- if (cnx->path[i]->alt_challenge_required) {
+ if (cnx->path[i]->alt_challenge_required && !cnx->path[i]->challenge_verified) {
/* Promote the alt address to valid address */
cnx->path[i]->... |
compile-error fix for 'clang50-linux-x86_64 CXX_RT=glibcxx_dynamic OS_SDK=ubuntu-16 USE_STL_SYSTEM=yes pic'; | @@ -56,10 +56,10 @@ namespace NEnumSerializationRuntime {
}
} else {
for (const TEnumStringPair& it : namesInitializer) {
- mapValueToName.emplace(it.Key, it.Name);
+ mapValueToName.emplace(it.Key, TString(it.Name));
}
for (const TEnumStringPair& it : valuesInitializer) {
- mapNameToValue.emplace(it.Name, it.Key);
+ ma... |
Upgrade platform-tools (33.0.1) for Windows
PR <https://github.com/Genymobile/scrcpy/pull/3206> | @@ -6,10 +6,10 @@ cd "$DIR"
mkdir -p "$PREBUILT_DATA_DIR"
cd "$PREBUILT_DATA_DIR"
-DEP_DIR=platform-tools-31.0.3
+DEP_DIR=platform-tools-33.0.1
-FILENAME=platform-tools_r31.0.3-windows.zip
-SHA256SUM=0f4b8fdd26af2c3733539d6eebb3c2ed499ea1d4bb1f4e0ecc2d6016961a6e24
+FILENAME=platform-tools_r33.0.1-windows.zip
+SHA256SUM... |
lib/libc/string0: Add simple implementations of strspn and strcspn.
They are needed for littlefs. | @@ -217,3 +217,19 @@ char *strstr(const char *haystack, const char *needle)
return (char *) haystack;
return 0;
}
+
+size_t strspn(const char *s, const char *accept) {
+ const char *ss = s;
+ while (*s && strchr(accept, *s) != NULL) {
+ ++s;
+ }
+ return s - ss;
+}
+
+size_t strcspn(const char *s, const char *reject) {... |
build: saving artifacts from build for use in check/bench jobs | image: gcc
stages:
+ - build
- test
-autotest:
- stage: test
+compile:
+ stage: build
script:
- ./bootstrap.sh
- ./configure
+ - make -j4
+ artifacts:
+ paths:
+ - makefile
+ - configure
+ - config.h
+ - libliquid*
+ - src/*/src/*.o
+
+check:
+ stage: test
+ script:
- make -j4 check
artifacts:
paths:
- autotest.json
ex... |
Remove hardcoded directories in testcase/Makefile
Using wildcard, all Make.defs are included | @@ -76,23 +76,18 @@ ifeq ($(WINTOOL),y)
INCDIROPT = -w
endif
-include le_tc/drivers/Make.defs
-include le_tc/filesystem/Make.defs
-include le_tc/kernel/Make.defs
-include le_tc/network/Make.defs
-include le_tc/ttrace/Make.defs
-include ta_tc/systemio/utc/Make.defs
-include ta_tc/systemio/itc/Make.defs
-include ta_tc/ar... |
Fixed jshint warning 'dataItems' is already defined. | @@ -1484,7 +1484,7 @@ GoAccess.Tables = {
if (!table)
return;
- var dataItems = this.getPage(panel, dataItems, page);
+ dataItems = this.getPage(panel, dataItems, page);
var rows = [];
this.renderRows(rows, panel, ui, dataItems);
if (rows.length == 0)
|
minor typo fixes on README | @@ -9,12 +9,12 @@ A tool for [transpiling](https://en.wikipedia.org/wiki/Source-to-source_compiler
Milestone of project:
-1. Tranpiling project [GNU GSL](https://www.gnu.org/software/gsl/).
-2. Tranpiling project [GTK+](https://www.gtk.org/).
+1. Transpiling project [GNU GSL](https://www.gnu.org/software/gsl/).
+2. Tra... |
ip6-local: fix uninitialized variable error | @@ -1158,7 +1158,7 @@ ip6_local_inline (vlib_main_t * vm, vlib_node_runtime_t * node,
VNET_BUFFER_F_OFFLOAD_TCP_CKSUM |
VNET_BUFFER_F_OFFLOAD_UDP_CKSUM);
- u32 udp_offset[2];
+ u32 udp_offset[2] = { };
u8 is_tcp_udp[2];
is_tcp_udp[0] =
ip6_next_proto_is_tcp_udp (b[0], ip[0], &udp_offset[0]);
|
sse2: add NEON implementation of simde_mm_movemask_epi8 | @@ -3342,7 +3342,17 @@ simde_mm_movemask_epi8 (simde__m128i a) {
int32_t r = 0;
simde__m128i_private a_ = simde__m128i_to_private(a);
- #if defined(SIMDE_ARM_NEON_A32V7_NATIVE)
+ #if defined(SIMDE_ARM_NEON_A32V8_NATIVE)
+ uint8x16_t input = a_.neon_u8;
+ const int8_t xr[16] = {-7, -6, -5, -4, -3, -2, -1, 0, -7, -6, -5,... |
doc: remove required link | @@ -224,7 +224,6 @@ copied by the `spec` plugin just before):
- [type](type/) type checking (CORBA types) with enum functionality
- [mathcheck](mathcheck/) by mathematical expressions using key values as operands
- [conditionals](conditionals/) by using if-then-else like statements
-- [required](required/) rejects non-... |
doc: add 3.1 release docs to menu choice | @@ -198,6 +198,7 @@ html_context = {
'docs_title': docs_title,
'is_release': is_release,
'versions': ( ("latest", "/latest/"),
+ ("3.1", "/3.1/"),
("3.0", "/3.0/"),
("2.7", "/2.7/"),
("2.6", "/2.6/"),
|
Update prerequisites info | @@ -24,13 +24,15 @@ ImageMagick image processing library.
h2(#prereq). Prerequisites
+These prerequisites are required for the latest DEVELOPMENT version of RMagick. To see prerequisites for the latest RELEASED version of the gem, switch to the master branch.
+
*O/S* Linux, *BSD, OS X, Windows 2000, XP, Vista, oth... |
OpenSSL SSL_VERIFY_PEER enabled | @@ -465,7 +465,7 @@ neat_security_install(neat_ctx *ctx, neat_flow *flow)
if (isClient) {
private->ctx = SSL_CTX_new(DTLS_client_method());
if (!flow->skipCertVerification) {
- SSL_CTX_set_verify(private->ctx, SSL_VERIFY_NONE, NULL);
+ SSL_CTX_set_verify(private->ctx, SSL_VERIFY_PEER, NULL);
tls_init_trust_list(private... |
%depth-first has pattern-matching issue
support a `%depth-first` scry constructed as follows `.^(* %gx /=graph-store=/graph/<ship of resource>/<name of resource>/depth-first/<count>/<start>/graph-update-3)` | --
::
[%depth-first @ @ ~]
- =/ count=(unit atom) (rush i.t.t.t.t.path dem:ag)
- =/ start=(unit atom) (rush i.t.t.t.t.t.path dem:ag)
+ =/ count=(unit atom) (rush i.t.t.t.t.t.path dem:ag)
+ =/ start=(unit atom) (rush i.t.t.t.t.t.t.path dem:ag)
?: ?=(~ count)
[~ ~]
:- ~ :- ~ :- mar
|
Keep stream frame for retransmit after reset. | @@ -2964,12 +2964,6 @@ int picoquic_reset_cnx(picoquic_cnx_t* cnx, uint64_t current_time)
}
}
- /* Delete stream frames queued for retransmission */
- while (cnx->stream_frame_retransmit_queue != NULL) {
- picoquic_delete_misc_or_dg(&cnx->stream_frame_retransmit_queue, &cnx->stream_frame_retransmit_queue_last,
- cnx->s... |
ble_mesh: Remove boolean type definitions | @@ -28,20 +28,6 @@ typedef unsigned long long u64_t;
typedef int bt_mesh_atomic_t;
-#ifndef __cplusplus
-#ifndef bool
-#define bool int8_t
-#endif
-
-#ifndef false
-#define false 0
-#endif
-
-#ifndef true
-#define true 1
-#endif
-#endif
-
#ifndef PRIu64
#define PRIu64 "llu"
#endif
|
Add warning about LV_INDEV_DRAG_THROW | * DEFINES
*********************/
+#if LV_INDEV_DRAG_THROW <= 0
+#warning "LV_INDEV_DRAG_THROW must be greater than 0"
+#endif
+
/**********************
* TYPEDEFS
**********************/
|
Compiler generates better inserts | @@ -58,6 +58,9 @@ def replace_insert(insert):
# replace $$[light][text1]{expr}{text2} inserts, where all parts except {expr} are optional
m = re.match(r'(?P<type>\$\$?)(\[(?P<light>[^\]]+)\])?(\[(?P<text1>[^\]]+)\])?{\s*(?P<expr>[^}]*)\s*}({(?P<text2>[^}]+)})?', insert)
+ if not m:
+ yield insert
+ return
light = m.gro... |
fix x86 warnings | @@ -331,7 +331,7 @@ int quicperf_init_streams_from_scenario(picoquic_cnx_t* cnx, quicperf_ctx_t* ctx
{
int ret = 0;
- for (int i = 0; ret == 0 && i < ctx->nb_scenarios; i++) {
+ for (size_t i = 0; ret == 0 && i < ctx->nb_scenarios; i++) {
if (ctx->scenarios[i].previous_stream_id == stream_id) {
uint64_t repeat_nb = 0;
... |
Improve dependency checks | @@ -35,7 +35,7 @@ pangocairo = dependency('pangocairo')
gdk_pixbuf = dependency('gdk-pixbuf-2.0', required: false)
pixman = dependency('pixman-1')
libcap = dependency('libcap')
-libinput = dependency('libinput')
+libinput = dependency('libinput', version: '>=1.6.0')
libpam = cc.find_library('libpam')
math = cc.find_lib... |
4.2.1RC1 changelog | +CARTO Mobile SDK 4.2.1RC1
+-------------------
+
+### Changes/fixes:
+
+* The SDK can now be used without calling registerLicense method of MapView class if CARTO basemap services are not needed. In 4.2.1 and later versions we are showing normal CARTO watermark instead of evaluation watermark in this case.
+* Added Ma... |
Add print message for dev | @@ -160,6 +160,7 @@ input_thread(void* arg) {
esp_dhcp_configure(1, 0, 1, NULL, NULL, 1);
} else if (IS_LINE("listap")) {
esp_sta_list_ap(NULL, aps, ESP_ARRAYSIZE(aps), &aps_count, NULL, NULL, 1);
+ printf("Detected %d number of access points\r\n", (int)aps_count);
} else if (IS_LINE("getapinfo")) {
esp_sta_info_ap_t a... |
hv: mmio_read: add `const` qualifier
This patch fixes the MISRA-C violations related to mmio_read**
* add `const` qualifier in implementation of mmio_read**
`const` qualifier shall be added | @@ -144,7 +144,7 @@ static inline void mmio_write8(uint8_t value, void *addr)
*/
static inline uint64_t mmio_read64(const void *addr)
{
- return *((volatile uint64_t *)addr);
+ return *((volatile const uint64_t *)addr);
}
/** Reads a 32 bit value from a memory mapped IO device.
@@ -155,7 +155,7 @@ static inline uint64_... |
rune: Add the sgx devices according to the actual situation
If the enclave devices doesn't exist, don't add them into the default device list and cgroup whitelist. | @@ -17,6 +17,7 @@ import (
dbus "github.com/godbus/dbus/v5"
"github.com/opencontainers/runc/libcontainer/cgroups"
"github.com/opencontainers/runc/libcontainer/configs"
+ "github.com/opencontainers/runc/libcontainer/devices"
"github.com/opencontainers/runc/libcontainer/seccomp"
libcontainerUtils "github.com/opencontaine... |
only checkout shakey for repos that have it set, also remove duplicate pull before the correct checkout | @@ -63,8 +63,6 @@ if [ -d $repodirname ] ; then
if [ "$STASH_BEFORE_PULL" == "YES" ] ; then
git stash -u
fi
- echo "git pull "
- git pull
echo "cd $repodirname ; git checkout $COBRANCH"
git checkout $COBRANCH
echo "git pull "
@@ -78,8 +76,8 @@ else
cd $repodirname
git checkout $COBRANCH
fi
-if [ "$AOMP_LIBDEVICE_REPO_S... |
workflows: automatically create release during the release process | @@ -430,7 +430,6 @@ jobs:
environment: release
needs:
- staging-release-packages-server
- - staging-release-images
steps:
- name: Checkout code
uses: actions/checkout@v3
@@ -467,3 +466,34 @@ jobs:
shell: bash
env:
IMAGE_TAG: ${{ github.event.inputs.version }}
+
+ staging-release-create-release:
+ name: Create the Githu... |
HV: flush L1 cache when switching to normal world
-to avoid information leaking from secure world to
normal world on platform affected by L1TF. | @@ -306,11 +306,15 @@ void switch_world(struct vcpu *vcpu, int next_world)
copy_smc_param(&arch_vcpu->contexts[!next_world].run_ctx,
&arch_vcpu->contexts[next_world].run_ctx);
- /* load EPTP for next world */
if (next_world == NORMAL_WORLD) {
+ /* load EPTP for next world */
exec_vmwrite64(VMX_EPT_POINTER_FULL,
hva2hpa... |
refactor: we dont intend to recover from user-defined function error, this will simplify the code a lot | @@ -155,8 +155,6 @@ ntl_to_buf(char *buf, size_t size, void **p, struct ntl_str_delimiter * d,
for(i = 0; p[i]; i++) {
bool is_last = (NULL == p[i+1]);
psize = (*x)(buf, size, p[i]);
- if ((long long)psize < 0) // error happens
- return -1;
if(start) {
buf += psize; // move to next available byte
|
config-tools: ivshmem support to be shared by multiple vms
Loosen the restriction of IVSHMEM_REGION of xsd validation. An ivshmem
region can be shared by more than two vms. | @@ -130,7 +130,7 @@ Read more about the available scheduling options in :ref:`cpu_sharing`.</xs:docu
<xs:simpleType name="IVSHMEMRegionPattern">
<xs:restriction base="xs:string">
- <xs:pattern value="hv:/\w+,\s?\d+\s?,\s?\d\s?:\s?\d\s?" />
+ <xs:pattern value="hv:/\w+,\s?\d+\s?,\s?\d\s?(:\s?\d\s?)+" />
</xs:restriction... |
[hardware] Fix circular counter in reorder buffer | @@ -47,7 +47,7 @@ module reorder_buffer #(
logic [NumWords-1:0] valid_n, valid_q;
// Status flags
- assign full_o = (status_cnt_q == IdWidth) ;
+ assign full_o = (status_cnt_q == NumWords-1);
assign id_o = write_pointer_q;
// Read and Write logic
@@ -66,7 +66,7 @@ module reorder_buffer #(
// Request an ID.
if (id_req_i... |
Modify transport test
for scope cli disable cribl backend via environment variable
when using `-m` or `-e` | @@ -106,7 +106,7 @@ echo ===========================================================================
echo "Testing Event/TCP Transport"
if [ "$(wait_for_port 10070)" ]; then
rm -rf /tmp/out/tcpjson:in_tcp_json
- scope run -e tcp://127.0.0.1:10070 -- curl -Lso /dev/null https://cribl.io
+ SCOPE_CRIBL_ENABLE=false scope ... |
BugID:18819601: select mbedtls in Config.in
This should be done in fine-grained config that depends on mbedtls aes
and sha256. | @@ -3,6 +3,7 @@ menuconfig AOS_COMP_BREEZE
default n
select AOS_COMP_CHIP_CODE
select AOS_COMP_BT_BREEZE_HAL if AOS_CONFIG_BT_STACK
+ select AOS_COMP_MBEDTLS
help
AliOS things Breeze SDK
|
system/hex2bin: Fix compilation error
Avoid overwrite the PROGNAME. | @@ -46,7 +46,7 @@ endif
ifeq ($(CONFIG_SYSTEM_HEX2MEM_BUILTIN),y)
MAINSRC += hex2mem_main.c
- PROGNAME = hex2mem
+ PROGNAME += hex2mem
STACKSIZE += $(CONFIG_SYSTEM_HEX2MEM_STACKSIZE)
PRIORITY += $(CONFIG_SYSTEM_HEX2MEM_PRIORITY)
endif
|
Extend comments for event | @@ -64,7 +64,7 @@ def_callback(esp_evt_t* evt) {
* \brief Init and prepare ESP stack
* \note When \ref ESP_CFG_RESET_ON_INIT is enabled, reset sequence will be sent to device.
* In this case, `blocking` parameter indicates if we shall wait or not for response
- * \param[in] evt_func: Event callback function
+ * \param[... |
[component][at] Add some #ifdef on source code. | #define LOG_TAG "at.skt"
#include <at_log.h>
+#ifdef AT_USING_SOCKET
+
#define HTONS_PORT(x) ((((x) & 0x00ffUL) << 8) | (((x) & 0xff00UL) >> 8))
#define NIPQUAD(addr) \
((unsigned char *)&addr)[0], \
@@ -1175,3 +1177,5 @@ void at_socket_device_register(const struct at_device_ops *ops)
RT_ASSERT(ops->at_set_event_cb);
a... |
Configure: warn about duplicate GENERATE declarations in build.info files
This sort of duplication is permitted, as the end result will be a single
item anyway, but we might as well warn to avoid future confusion. | @@ -2325,7 +2325,7 @@ EOF
if ($generate{$gen}) {
$generator[0] = cleanfile($buildd, $gen, $blddir);
}
- $check_generate{$ddest}->{$generator[0]} = 1;
+ $check_generate{$ddest}->{$generator[0]}++;
$unified_info{generate}->{$ddest} = [ @generator ];
}
@@ -2439,6 +2439,9 @@ EOF
warn "$_ is GENERATEd by more than one gener... |
made all functions local | @@ -337,34 +337,32 @@ avtDatasetExaminer::GetDataExtents(avtDataset_p &ds, double *de,
const char *varname,
bool connectedNodesOnly)
{
- if (*ds == NULL || *(ds->GetDataTree()) == NULL)
- return false;
+ bool foundExtents = false;
- if (varname == NULL)
+ de[0] = +DBL_MAX;
+ de[1] = -DBL_MAX;
+
+ if (*ds != NULL && *(d... |
enable all -Wunused- warnings | @@ -27,7 +27,7 @@ LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS} -lm
# flags
CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=200809L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
#CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
-CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarati... |
Don't freeze the app when the main thread crashes | @@ -88,7 +88,8 @@ func Py_DecodeLocale(_: UnsafePointer<Int8>!, _: UnsafeMutablePointer<Int>!) ->
}
#if MAIN
- Python.pythonShared?.perform(#selector(PythonRuntime.runCode(_:)), with: """
+
+ var code = """
import traceback
import threading
from pyto import PyOutputHelper, Python
@@ -108,8 +109,22 @@ func Py_DecodeLoca... |
libnss: re-add remvoed code for freebsd | @@ -243,3 +243,42 @@ _nss_kadnode_gethostbyaddr_r (const void* addr,
//NOTE we allow to leak this into DNS so no NOTFOUND
return NSS_STATUS_UNAVAIL;
}
+
+#ifdef __FreeBSD__
+static NSS_METHOD_PROTOTYPE(__nss_compat_gethostbyname2_r);
+
+static ns_mtab methods[] = {
+ { NSDB_HOSTS, "gethostbyname_r", __nss_compat_gethos... |
set_hex() behaviour change | #define SIZE (512)
#define BSIZE (8*1024)
-static int set_hex(char *in, unsigned char *out, int size);
+static int set_hex(const char *in, unsigned char *out, int size);
static void show_ciphers(const OBJ_NAME *name, void *bio_);
struct doall_enc_ciphers {
@@ -461,7 +461,7 @@ int enc_main(int argc, char **argv)
int siz... |
Docs: Add more contributors | @@ -17,7 +17,10 @@ OpenCore bootloader front end.
- The HermitCrabs Lab
- All projects providing third-party code (refer to file headers)
+- [al3xtjames](https://github.com/al3xtjames)
+- [Andrey1970AppleLife](https://github.com/Andrey1970AppleLife)
- [Download-Fritz](https://github.com/Download-Fritz)
- [Goldfish64](h... |
libnet: bugfixes in dhcp module | @@ -43,15 +43,14 @@ static void dhcpd_timer_callback(void *data)
dhcp_fine_tmr();
-
-
if ((st->dhcp_ticks % (DHCP_COARSE_TIMER_MSECS / DHCP_FINE_TIMER_MSECS)) == 0) {
dhcp_coarse_tmr();
}
if (!ip_addr_cmp(&st->netif.ip_addr, IP_ADDR_ANY) && st->dhcp_done == 0) {
- debug_printf("setting ip record\n");
+ NETDEBUG("settin... |
Fix walletpassphrase RPC for staking only | @@ -1734,11 +1734,15 @@ Value walletpassphrase(const Array& params, bool fHelp)
//nWalletUnlockTime = GetTime() + pnSleepTime;
NewThread(ThreadCleanWalletPassphrase, pnSleepTime);
- fWalletUnlockStakingOnly = false;
+ //fWalletUnlockStakingOnly = false;
// Denarius: if user OS account compromised prevent trivial sendmo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.