From: Bruno Haible Date: Sun, 29 Sep 2019 14:50:15 +0000 (+0200) Subject: libxml: Fix buffer overrun. X-Git-Tag: v0.20.2~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=334ecb292a776950283684efd3370e012db3ac5d;p=thirdparty%2Fgettext.git libxml: Fix buffer overrun. Reported by GCC 8 -Wformat-truncation warning. * gnulib-local/lib/libxml/parser.c (xmlParseReference): Increase size of buffer 'out' to 12 bytes. --- diff --git a/gnulib-local/lib/libxml/parser.c b/gnulib-local/lib/libxml/parser.c index 5813a6643..486c16d40 100644 --- a/gnulib-local/lib/libxml/parser.c +++ b/gnulib-local/lib/libxml/parser.c @@ -7009,7 +7009,7 @@ xmlParseReference(xmlParserCtxtPtr ctxt) { */ if (NXT(1) == '#') { int i = 0; - xmlChar out[10]; + xmlChar out[12]; int hex = NXT(2); int value = xmlParseCharRef(ctxt);