glibc/stdio-common
Florian Weimer 9dd87afbf1 vfscanf: Avoid multiple reads of multi-byte character width
This avoids a race condition if the process-global locale is changed
while vfscanf is running.  MB_LEN_MAX is always larger than MB_CUR_MAX,
so we might realloc earlier than necessary (but even MB_CUR_MAX could
be larger than the minimum required space).

The existing length was a bit questionable because str + MB_LEN_MAX
might point past the end of the buffer.
2016-09-02 15:59:34 +02:00
..
2013-06-05 20:44:03 +00:00
2012-05-24 21:30:43 -06:00
2013-10-12 14:47:50 +02:00
2012-03-08 03:02:24 -05:00
2014-02-28 11:07:43 -08:00