]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
xgettext: Fix crash when parsing invalid \Uxxxxxxxx escape sequence.
authorBruno Haible <bruno@clisp.org>
Sun, 4 Nov 2018 19:20:10 +0000 (20:20 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 4 Nov 2018 23:25:33 +0000 (00:25 +0100)
* gettext-tools/src/x-c.c (phase3_pushback): Increase size to 9 characters.

gettext-tools/src/x-c.c

index 187f32998dde514b1c8e82807ceb1f6c9811f666..3522bc8afab28030ea82c6fce3cf8f68691c3b01 100644 (file)
@@ -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)
 {