cvs commit: src/usr.sbin/fdformat fdformat.c
Eric Anholt
anholt at FreeBSD.org
Tue Jan 6 21:28:58 PST 2004
anholt 2004/01/06 21:28:57 PST
FreeBSD src repository
Modified files:
usr.sbin/fdformat fdformat.c
Log:
From PR:
In fdformat.c a closing parenthesis is at the wrong place. Instead of
adding sizeof _PATH_DEV + 1 to the length of argv[optind], the length of the
string starting (sizeof _PATH_DEV + 1) characters after argv[optind]'s
beginning (accessing junk memory if we jump over the terminating null
character) is passed to malloc().
PR: bin/60026
Submitted by: Stefan Farfeleder <stefan at fafoe.narf.at>
Revision Changes Path
1.21 +1 -1 src/usr.sbin/fdformat/fdformat.c
More information about the cvs-src
mailing list