acadia-newlib/newlib/libc
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
..
argz Regenerate newlib Makefiles 2016-07-04 17:13:55 +01:00
ctype Bump release to 2.5.0 for yearly snapshot. 2016-12-22 21:33:54 -05:00
errno Regenerate newlib Makefiles 2016-07-04 17:13:55 +01:00
iconv Fix compile error due to new strnstr() 2017-08-28 17:31:52 +02:00
include string: add wmempcpy 2017-11-30 04:06:49 -06:00
locale Fix duplocale (libc/locale/duplocale.c) which fails to properly call __loadlocale 2017-03-13 11:12:01 +01:00
machine Change license to FreeBSD License for RISC-V 2017-08-21 11:08:54 +02:00
misc Add ffsl(), ffsll(), fls(), flsl(), flsll() 2017-07-05 13:49:48 +02:00
posix Only define static locks in multithreaded mode 2017-02-13 17:04:17 -05:00
reent newlib/.../getreent.c: Allow to be provided by host and do so for RTEMS 2017-11-13 10:19:23 +01:00
search Regenerate newlib Makefiles 2016-07-04 17:13:55 +01:00
signal Regenerate newlib Makefiles 2016-07-04 17:13:55 +01:00
ssp ssp: add build infrastructure 2017-11-29 11:25:46 -06:00
stdio newlib: vf[w]scanf: add validity checks 2017-11-30 11:55:27 +01:00
stdio64 Regenerate newlib Makefiles 2016-07-04 17:13:55 +01:00
stdlib newlib/libc/stdlib/realloc.c: fix variable name 2017-11-14 10:18:30 +01:00
string string: add wmempcpy 2017-11-30 04:06:49 -06:00
sys RTEMS: Add semaphore <sys/lock.h> functions 2017-11-30 07:00:45 +01:00
syscalls Regenerate newlib Makefiles 2016-07-04 17:13:55 +01:00
time Remove harmful casts in gmtime_r() 2017-09-07 15:39:34 +02:00
unix Regenerate newlib Makefiles 2016-07-04 17:13:55 +01:00
xdr Regenerate newlib Makefiles 2016-07-04 17:13:55 +01:00
Makefile.am ssp: add build infrastructure 2017-11-29 11:25:46 -06:00
Makefile.in ssp: add build infrastructure 2017-11-29 11:25:46 -06:00
aclocal.m4 Fix up errors in regenerated files for 2.3.0 release. 2016-01-04 12:57:31 -05:00
configure ssp: add build infrastructure 2017-11-29 11:25:46 -06:00
configure.in ssp: add build infrastructure 2017-11-29 11:25:46 -06:00
libc.in.xml ssp: add documentation 2017-11-29 11:25:45 -06:00
libc.texinfo ssp: add documentation 2017-11-29 11:25:45 -06:00
saber
sys.tex Don't include stdio64 functions in reentrant syscalls menu when not bulding stdio64. 2015-08-03 09:54:33 +01:00