diff options
author | Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz> | 2013-07-04 18:42:29 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-04 20:22:46 +0200 |
commit | 3ebacb05044f82c5f0bb456a894eb9dc57d0ed90 (patch) | |
tree | bb53d02c15568b0932c2f5ef5e758955b4fa69d0 /fs/hpfs/file.c | |
parent | Linux 3.10 (diff) | |
download | linux-3ebacb05044f82c5f0bb456a894eb9dc57d0ed90.tar.xz linux-3ebacb05044f82c5f0bb456a894eb9dc57d0ed90.zip |
hpfs: better test for errors
The test if bitmap access is out of bound could errorneously pass if the
device size is divisible by 16384 sectors and we are asking for one bitmap
after the end.
Check for invalid size in the superblock. Invalid size could cause integer
overflows in the rest of the code.
Signed-off-by: Mikulas Patocka <mpatocka@artax.karlin.mff.cuni.cz>
Cc: stable@kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/hpfs/file.c')
0 files changed, 0 insertions, 0 deletions