]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
From PR:
authorEric Anholt <anholt@FreeBSD.org>
Wed, 7 Jan 2004 05:28:57 +0000 (05:28 +0000)
committerEric Anholt <anholt@FreeBSD.org>
Wed, 7 Jan 2004 05:28:57 +0000 (05:28 +0000)
commit624a58b6e6a029e1a0cabe8e163e00a4a54cb1b3
tree945fb410115f157204938f1a2f0c6a5fe171c800
parentdba7bc6a65a30afb011390fda06100c2bda61f01
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@fafoe.narf.at>
usr.sbin/fdformat/fdformat.c