]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Grow.c: Fix classic readlink() buffer overflow
authorJes Sorensen <Jes.Sorensen@redhat.com>
Tue, 24 Feb 2015 21:00:36 +0000 (16:00 -0500)
committerNeilBrown <neilb@suse.de>
Tue, 24 Feb 2015 21:06:45 +0000 (08:06 +1100)
commit9eb5ce5ae298a13af29f2c85f33ef75773e852ee
treed3c89fd9b9ecab5917256bfc8f453d581c3422c5
parent7a862a020f04b10f17f6dcae23bf60c52cbe190b
Grow.c: Fix classic readlink() buffer overflow

The buffer passed on to readlink() needs to contain space for the
terminating \0. See 'man 3 readlink' for details.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Grow.c