4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-22 08:46:17 +08:00
Corinna Vinschen 0fd2c9bd12 newlib: vf[w]scanf: add validity checks
POSIX requires that directive characters appear in a certain sequence:

1. '%' or '%<n>$'
2. optional '*'
3. optional field width digits
4. optional 'm' (not yet implemented)
5. optional length modifier ('l', 'L', 'll', 'h', 'hh', 'j', 't', 'z')
6. conversion specifier ('d', 's', etc)

Add a few basic validity checks to that effect, otherwise reject
directive as match failure.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2017-11-30 11:55:27 +01:00
..
2016-07-04 17:13:55 +01:00
2016-07-04 17:13:55 +01:00
2017-11-30 04:06:49 -06:00
2016-07-04 17:13:55 +01:00
2016-07-04 17:13:55 +01:00
2017-11-29 11:25:46 -06:00
2016-07-04 17:13:55 +01:00
2017-11-30 04:06:49 -06:00
2016-07-04 17:13:55 +01:00
2017-09-07 15:39:34 +02:00
2016-07-04 17:13:55 +01:00
2016-07-04 17:13:55 +01:00
2017-11-29 11:25:46 -06:00
2017-11-29 11:25:46 -06:00
2017-11-29 11:25:45 -06:00
2017-11-29 11:25:45 -06:00
2017-11-29 11:25:46 -06:00
2017-11-29 11:25:46 -06:00