Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | pkgdata.cpp: use LARGE_BUFFER_MAX_SIZE for cmd |
| 2 | |
| 3 | Use LARGE_BUFFER_MAX_SIZE for cmd rather than SMALL_BUFFER_MAX_SIZE, |
| 4 | otherwise there was a Segmentation fault error when the command line is |
| 5 | long, this should be a misplay since other cmd uses |
| 6 | LARGE_BUFFER_MAX_SIZE. |
| 7 | |
| 8 | Upstream-Status: Pending |
| 9 | |
| 10 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 11 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 12 | --- |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 13 | tools/pkgdata/pkgdata.cpp | 6 +++--- |
| 14 | 1 file changed, 3 insertions(+), 3 deletions(-) |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 15 | |
| 16 | diff --git a/tools/pkgdata/pkgdata.cpp b/tools/pkgdata/pkgdata.cpp |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 17 | index 60167dd..506dd32 100644 |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 18 | --- a/tools/pkgdata/pkgdata.cpp |
| 19 | +++ b/tools/pkgdata/pkgdata.cpp |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 20 | @@ -1084,7 +1084,7 @@ normal_symlink_mode: |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 21 | |
| 22 | static int32_t pkg_installLibrary(const char *installDir, const char *targetDir, UBool noVersion) { |
| 23 | int32_t result = 0; |
| 24 | - char cmd[SMALL_BUFFER_MAX_SIZE]; |
| 25 | + char cmd[LARGE_BUFFER_MAX_SIZE]; |
| 26 | |
| 27 | sprintf(cmd, "cd %s && %s %s %s%s%s", |
| 28 | targetDir, |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 29 | @@ -1152,7 +1152,7 @@ static int32_t pkg_installLibrary(const char *installDir, const char *targetDir, |
| 30 | |
| 31 | static int32_t pkg_installCommonMode(const char *installDir, const char *fileName) { |
| 32 | int32_t result = 0; |
| 33 | - char cmd[SMALL_BUFFER_MAX_SIZE] = ""; |
| 34 | + char cmd[LARGE_BUFFER_MAX_SIZE] = ""; |
| 35 | |
| 36 | if (!T_FileStream_file_exists(installDir)) { |
| 37 | UErrorCode status = U_ZERO_ERROR; |
| 38 | @@ -1184,7 +1184,7 @@ static int32_t pkg_installCommonMode(const char *installDir, const char *fileNam |
| 39 | #endif |
| 40 | static int32_t pkg_installFileMode(const char *installDir, const char *srcDir, const char *fileListName) { |
| 41 | int32_t result = 0; |
| 42 | - char cmd[SMALL_BUFFER_MAX_SIZE] = ""; |
| 43 | + char cmd[LARGE_BUFFER_MAX_SIZE] = ""; |
| 44 | |
| 45 | if (!T_FileStream_file_exists(installDir)) { |
| 46 | UErrorCode status = U_ZERO_ERROR; |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 47 | -- |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 48 | 1.9.1 |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 49 | |