From: Bruno Haible Date: Sun, 4 Nov 2018 19:20:10 +0000 (+0100) Subject: xgettext: Fix crash when parsing invalid \Uxxxxxxxx escape sequence. X-Git-Tag: v0.20~267 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99e57c0c82cb2d4e0e42b11d6c632094621a8bbd;p=thirdparty%2Fgettext.git xgettext: Fix crash when parsing invalid \Uxxxxxxxx escape sequence. * gettext-tools/src/x-c.c (phase3_pushback): Increase size to 9 characters. --- diff --git a/gettext-tools/src/x-c.c b/gettext-tools/src/x-c.c index 187f32998..3522bc8af 100644 --- a/gettext-tools/src/x-c.c +++ b/gettext-tools/src/x-c.c @@ -746,7 +746,7 @@ phase2_ungetc (int c) line. Basically, all you need to do is elide "\\\n" sequences from the input. */ -static unsigned char phase3_pushback[2]; +static unsigned char phase3_pushback[9]; static int phase3_pushback_length; @@ -770,7 +770,7 @@ phase3_getc () } -/* Supports 2 characters of pushback. */ +/* Supports 9 characters of pushback. */ static void phase3_ungetc (int c) {