1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00
1999-08-13  Ulrich Drepper  <drepper@cygnus.com>

	* stdio-common/vfscanf.c: Don't recognize hexadecimal floats with
	exponent.

1999-08-10  Andreas Schwab  <schwab@suse.de>

	* elf/dl-load.c (_dl_map_object_from_fd): Fix check for valid elf
	header.
This commit is contained in:
Ulrich Drepper
1999-08-13 19:41:35 +00:00
parent e79137b2fb
commit c8bb15ce8c
2 changed files with 12 additions and 2 deletions

View File

@ -1410,8 +1410,8 @@ __vfscanf (FILE *s, const char *format, va_list argptr)
/* Have we read any character? If we try to read a number
in hexadecimal notation and we have read only the `0x'
prefix this is an error. */
if (wpsize == 0 || (is_hexa && wpsize == 2))
prefix or no exponent this is an error. */
if (wpsize == 0 || (is_hexa && (wpsize == 2 || ! got_e)))
conv_error ();
scan_float: