Skip to content
Snippets Groups Projects
Verified Commit fa172a9b authored by Andrei Gherzan's avatar Andrei Gherzan :penguin:
Browse files

ptest-runner: Drop 2.4.0 patch as later versions have the argv issue fixed


oe-core comes with version 2.4.2 which has the issue fixed. We can now
safely drop the patch.

Signed-off-by: Andrei Gherzan's avatarAndrei Gherzan <andrei.gherzan@huawei.com>
parent c9df67e3
No related branches found
No related tags found
1 merge request!30flavours/zephyr/local.conf.sample: Bump CONF_VERSION
From bernhard.rosenkraenzer.ext@huawei.com Thu Sep 2 10:54:01 2021
From: Bernhard Rosenkraenzer <bernhard.rosenkraenzer.ext@huawei.com>
Date: Thu, 2 Sep 2021 10:54:01 +0100
Subject: [PATCH] Fix bogus allocation
argv needs to hold 2 character pointers, not just 2 characters.
Signed-off-by: Bernhard Rosenkraenzer <bernhard.rosenkraenzer.ext@huawei.com>
Upstream-Status: Inappropriate [fixed differently upstream]
diff -up git/utils.c.omv~ git/utils.c
--- git/utils.c.omv~ 2021-09-02 10:18:46.061467114 +0200
+++ git/utils.c 2021-09-02 10:21:13.011651255 +0200
@@ -268,7 +268,7 @@ close_fds(void)
static inline void
run_child(char *run_ptest, int fd_stdout, int fd_stderr)
{
- char **argv = malloc(sizeof(char) * 2);
+ char **argv = malloc(sizeof(char*) * 2);
chdir(dirname(strdup(run_ptest)));
argv[0] = run_ptest;
# SPDX-FileCopyrightText: Huawei Inc.
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Huawei Inc.
# SPDX-License-Identifier: Apache-2.0
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
SRC_URI_append = " file://ptest-runner-fix-incorrect-allocation.patch"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment