]> git.ipfire.org Git - thirdparty/mdadm.git/commit
mdopen: fix gcc 8.1 string overflow error
authorJes Sorensen <jsorensen@fb.com>
Thu, 31 May 2018 17:11:21 +0000 (13:11 -0400)
committerJes Sorensen <jsorensen@fb.com>
Thu, 31 May 2018 17:11:21 +0000 (13:11 -0400)
commitc1b78589cf042221e22a014332b195b2309cb178
treeb765a153cc74489c7e219dcdf07edbe9e4f67c4c
parent975898395951835f5a8051441af21cc995921f8c
mdopen: fix gcc 8.1 string overflow error

We already cut symlinks longer than 1000, so rely on this calling
readlink and error out if we are able to read more than 1000 bytes.

Signed-off-by: Jes Sorensen <jsorensen@fb.com>
mdopen.c