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-12-22 21:33:54 -05:00
2016-07-04 17:13:55 +01:00
2017-08-28 17:31:52 +02:00
2017-11-30 04:06:49 -06:00
2017-03-13 11:12:01 +01:00
2017-08-21 11:08:54 +02:00
2017-07-05 13:49:48 +02:00
2017-02-13 17:04:17 -05:00
2017-11-13 10:19:23 +01: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-30 11:55:27 +01:00
2016-07-04 17:13:55 +01:00
2017-11-14 10:18:30 +01:00
2017-11-30 04:06:49 -06:00
2017-11-30 07:00:45 +01: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
2016-01-04 12:57:31 -05: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
2015-08-03 09:54:33 +01:00