This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: scanf() is not working properly with latest snapshot of newlib.
- From: Eric Blake <ebb9 at byu dot net>
- To: Bhushan Attarde <Bhushan dot Attarde at kpitcummins dot com>
- Cc: newlib at sources dot redhat dot com
- Date: Mon, 20 Aug 2007 06:11:38 -0600
- Subject: Re: scanf() is not working properly with latest snapshot of newlib.
- References: <7B5265FF85A78C4BB9DAD0EE699C4760020BC1C8@sohm.kpit.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Bhushan Attarde on 8/20/2007 12:59 AM:
> int main ( void )
> {
> char string[10];
>
> while(1)
> {
> scanf("%s",&string);
Unrelated to your report, but please fix your bug. Don't go reading
unlimited length strings into a fixed-width buffer using scanf.
>
> Anyone have any idea about this?
What platform are you targetting?
- --
Don't work too hard, make some time for fun as well!
Eric Blake ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGyYT684KuGfSFAYARAkazAKDDZnsbHakJtsMriI/y4T5NGJca3gCgorBA
cSY2ugTOKRRhOOtwS5LUwlU=
=e4r+
-----END PGP SIGNATURE-----