CVE-2015-1472: wscanf allocates too little memory
commit4d54424420c6300efbf57a7b9aa8635a8b8c1942
authorPaul Pluzhnikov <ppluzhnikov@google.com>
Fri, 6 Feb 2015 05:30:42 +0000 (6 00:30 -0500)
committerMike Frysinger <vapier@gentoo.org>
Mon, 16 Feb 2015 10:26:49 +0000 (16 05:26 -0500)
treeb87845b3970fac459cae136a751a5c0e1f7816ca
parent1bf9d48aec087062e2a14b77cb5ee1fa81be334c
CVE-2015-1472: wscanf allocates too little memory

BZ #16618

Under certain conditions wscanf can allocate too little memory for the
to-be-scanned arguments and overflow the allocated buffer.  The
implementation now correctly computes the required buffer size when
using malloc.

A regression test was added to tst-sscanf.

(cherry picked from commit 5bd80bfe9ca0d955bfbbc002781bc7b01b6bcb06)

Conflicts:
ChangeLog
NEWS
ChangeLog
NEWS
stdio-common/tst-sscanf.c
stdio-common/vfscanf.c