diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2012-06-29 09:45:26 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-07-03 14:54:56 +0100 |
commit | 7449260c75c9d67ac501cf6a8c5311a13c22ac78 (patch) | |
tree | 61c41e3dd2ee93a6c6c90c2684a1c15c41c08ea6 /meta/recipes-support/icu/files | |
parent | 44fe9de20d62fd01d0ea9602b9ce633ce66ea322 (diff) | |
download | poky-7449260c75c9d67ac501cf6a8c5311a13c22ac78.tar.gz |
icu 3.6: do_install failed: Segmentation fault
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>
Diffstat (limited to 'meta/recipes-support/icu/files')
-rw-r--r-- | meta/recipes-support/icu/files/larger-cmd-size.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/meta/recipes-support/icu/files/larger-cmd-size.patch b/meta/recipes-support/icu/files/larger-cmd-size.patch new file mode 100644 index 0000000000..74a84f17ba --- /dev/null +++ b/meta/recipes-support/icu/files/larger-cmd-size.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | Allocate a larger memory size for cmd | ||
2 | |||
3 | The length of the command line can be longer than 1024 sometimes, | ||
4 | which will cause a "Segmentation fault" error. | ||
5 | |||
6 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> | ||
7 | |||
8 | Upstream-Status: Pending | ||
9 | --- | ||
10 | tools/pkgdata/pkgdata.c | 2 +- | ||
11 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
12 | |||
13 | diff --git a/tools/pkgdata/pkgdata.c b/tools/pkgdata/pkgdata.c | ||
14 | --- a/tools/pkgdata/pkgdata.c | ||
15 | +++ b/tools/pkgdata/pkgdata.c | ||
16 | @@ -439,7 +439,7 @@ main(int argc, char* argv[]) { | ||
17 | /* POSIX - execute makefile */ | ||
18 | static int executeMakefile(const UPKGOptions *o) | ||
19 | { | ||
20 | - char cmd[1024]; | ||
21 | + char cmd[2048]; | ||
22 | /*char pwd[1024];*/ | ||
23 | const char *make; | ||
24 | int rc; | ||
25 | -- | ||
26 | 1.7.10.2 | ||
27 | |||