[PATCH] Fix snprintf
Ulrich Drepper
drepper@redhat.com
Tue May 27 07:40:00 GMT 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jakub Jelinek wrote:
> ATM sprintf creates at most 64M string, furthermore although snprintf
> is given size_t for max length, it is casted to int and thus it might be
> much smaller limit than the one given by the user (consider e.g.
> sprintf (buf, 0x100000010, fmt, args)).
I've applied the patch. Thanks,
- --
- --------------. ,-. 444 Castro Street
Ulrich Drepper \ ,-----------------' \ Mountain View, CA 94041 USA
Red Hat `--' drepper at redhat.com `---------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+0xY72ijCOnn/RHQRAsqSAKCA8D14F/k6iTgxGH60EMKiCaazxQCgnFyy
hBcBC+KZWL5fjGJtmWoJhho=
=A7Dw
-----END PGP SIGNATURE-----
More information about the Libc-hacker
mailing list