From 334ecb292a776950283684efd3370e012db3ac5d Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 29 Sep 2019 16:50:15 +0200 Subject: [PATCH] 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. --- gnulib-local/lib/libxml/parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.47.2