Use read_int in vfscanf
commit726d48ec96f8b8a27e17cffaacb83588589e2f78
authorGabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
Tue, 20 Sep 2016 17:19:27 +0000 (20 14:19 -0300)
committerGabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
Wed, 26 Oct 2016 11:56:24 +0000 (26 09:56 -0200)
tree49ab897e23e6c65b2a01b5b4500744f252f1d1fe
parente863cce57bff6cb795e6aad745ddf6235bca21ce
Use read_int in vfscanf

The function read_int, from printf-parse.h, parses an integer from a string
while avoiding overflows.  It is used by other functions, such as vfprintf,
to avoid undefined behavior.

The function vfscanf (_IO_vfwscanf) parses an integer from the format
string, and can use read_int.
ChangeLog
stdio-common/vfscanf.c