aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/icu/icu/icu-release-56-1-flagparser-fix.patch
blob: 1519d84696dffbdf697a42038ea197abdcbbb349 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
icu: Ticket #11959: pkgdata dies when compiled with lots'o'flags

See: http://bugs.icu-project.org/trac/ticket/11959

The patch avoids premature failure which results in a segfault.

Upstream-Status: Backport of r38081
Signed-off-by: Mike Crowe <mac@mcrowe.com>

Index: source/tools/toolutil/flagparser.c
===================================================================
--- source/tools/toolutil/flagparser.c	(revision 38046)
+++ source/tools/toolutil/flagparser.c	(working copy)
@@ -96,8 +96,8 @@
     uprv_free(buffer);
 
     T_FileStream_close(f);
-    
-    if (U_FAILURE(*status)) {
+
+    if (U_FAILURE(*status) && *status != U_BUFFER_OVERFLOW_ERROR) {
         return -1;
     }