From: Liubov Dmitrieva Date: Wed, 19 Dec 2012 14:56:40 +0000 (+0400) Subject: Buffer overrun detected by Intel MPX in stdio-common/scanf13.c. Fixed. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b9f19a28fc9d6a5c2b21df41e7b9b6f725915fd;p=thirdparty%2Fglibc.git Buffer overrun detected by Intel MPX in stdio-common/scanf13.c. Fixed. --- diff --git a/stdio-common/scanf13.c b/stdio-common/scanf13.c index 720224aa05f..aa58dd5d4ab 100644 --- a/stdio-common/scanf13.c +++ b/stdio-common/scanf13.c @@ -59,6 +59,7 @@ main (void) } memset (buf, '/', sizeof (buf)); + buf[sizeof(buf) - 1] = 0; buf[0] = '\t'; buf[1] = ' '; buf[2] = 0xc3;