]> git.ipfire.org Git - thirdparty/util-linux.git/commit
fsck.minix: fix "array subscript is above array bounds"
authorKarel Zak <kzak@redhat.com>
Thu, 21 Jul 2011 11:00:40 +0000 (13:00 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 21 Jul 2011 11:00:40 +0000 (13:00 +0200)
commit06c0375ce37cd78cd6e589fbc343a6e1cb240d26
tree0a7de9f857d708cc6601fda2f7c76019b369d712
parent0dca7bd54a961d08628e52bc17bee80ae10e19d5
fsck.minix: fix "array subscript is above array bounds"

fsck.minix.c: In function ‘map_block2’:
fsck.minix.c:486:9: warning: array subscript is above array bounds [-Warray-bounds]

The 'blknr' has to be bigger than 7 + 256 + (256 * 256) for i_zone[9].

Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/fsck.minix.c