mirror of
https://git.yoctoproject.org/poky
synced 2026-03-30 17:02:22 +02:00
There is a "Segmentation fault" error when the tmpdir is longer than 470 (or less), this is because it used "char cmd[1024]" which is not enough for the command line. Allocate a larger memory size should fix this problem. [YOCTO #2664] (From OE-Core rev: 3fd5d0334439b6231a6afd2a544a16b87ae81c99) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
28 lines
697 B
Diff
28 lines
697 B
Diff
Allocate a larger memory size for cmd
|
|
|
|
The length of the command line can be longer than 1024 sometimes,
|
|
which will cause a "Segmentation fault" error.
|
|
|
|
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
|
|
|
|
Upstream-Status: Pending
|
|
---
|
|
tools/pkgdata/pkgdata.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/tools/pkgdata/pkgdata.c b/tools/pkgdata/pkgdata.c
|
|
--- a/tools/pkgdata/pkgdata.c
|
|
+++ b/tools/pkgdata/pkgdata.c
|
|
@@ -439,7 +439,7 @@ main(int argc, char* argv[]) {
|
|
/* POSIX - execute makefile */
|
|
static int executeMakefile(const UPKGOptions *o)
|
|
{
|
|
- char cmd[1024];
|
|
+ char cmd[2048];
|
|
/*char pwd[1024];*/
|
|
const char *make;
|
|
int rc;
|
|
--
|
|
1.7.10.2
|
|
|