From 2b9f19a28fc9d6a5c2b21df41e7b9b6f725915fd Mon Sep 17 00:00:00 2001 From: Liubov Dmitrieva Date: Wed, 19 Dec 2012 18:56:40 +0400 Subject: [PATCH] Buffer overrun detected by Intel MPX in stdio-common/scanf13.c. Fixed. --- stdio-common/scanf13.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.47.2