]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_io: don't read garbage stack contents if INUMBERS goes nuts
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 26 Apr 2019 20:40:05 +0000 (15:40 -0500)
committerEric Sandeen <sandeen@redhat.com>
Fri, 26 Apr 2019 20:40:05 +0000 (15:40 -0500)
commitae2883e3422b72c92af189a2d7361e0f01ffd8a5
tree8c8ce46a7dafd67dedfa7fcbe08288fbe8bf01c5
parent8872c2a515a958d137da591920349489705966c3
xfs_io: don't read garbage stack contents if INUMBERS goes nuts

In theory INUMBERS will never return an ocount of zero, but on the off
chance it ever does we'll negative index the igroup array and return
stack contents for an inode number.  Don't do that.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
io/open.c