diff options
Diffstat (limited to 'meta/recipes-support/icu/icu/icu-release-56-1-flagparser-fix.patch')
-rw-r--r-- | meta/recipes-support/icu/icu/icu-release-56-1-flagparser-fix.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/meta/recipes-support/icu/icu/icu-release-56-1-flagparser-fix.patch b/meta/recipes-support/icu/icu/icu-release-56-1-flagparser-fix.patch new file mode 100644 index 0000000000..1519d84696 --- /dev/null +++ b/meta/recipes-support/icu/icu/icu-release-56-1-flagparser-fix.patch | |||
@@ -0,0 +1,24 @@ | |||
1 | icu: Ticket #11959: pkgdata dies when compiled with lots'o'flags | ||
2 | |||
3 | See: http://bugs.icu-project.org/trac/ticket/11959 | ||
4 | |||
5 | The patch avoids premature failure which results in a segfault. | ||
6 | |||
7 | Upstream-Status: Backport of r38081 | ||
8 | Signed-off-by: Mike Crowe <mac@mcrowe.com> | ||
9 | |||
10 | Index: source/tools/toolutil/flagparser.c | ||
11 | =================================================================== | ||
12 | --- source/tools/toolutil/flagparser.c (revision 38046) | ||
13 | +++ source/tools/toolutil/flagparser.c (working copy) | ||
14 | @@ -96,8 +96,8 @@ | ||
15 | uprv_free(buffer); | ||
16 | |||
17 | T_FileStream_close(f); | ||
18 | - | ||
19 | - if (U_FAILURE(*status)) { | ||
20 | + | ||
21 | + if (U_FAILURE(*status) && *status != U_BUFFER_OVERFLOW_ERROR) { | ||
22 | return -1; | ||
23 | } | ||
24 | |||