Squashfs: Fix oops when reading fsfuzzer corrupted filesystems
authorPhillip Lougher <phillip@lougher.demon.co.uk>
Thu, 5 Mar 2009 00:31:12 +0000 (00:31 +0000)
committerPhillip Lougher <phillip@lougher.demon.co.uk>
Thu, 5 Mar 2009 00:31:12 +0000 (00:31 +0000)
commit1b26edb029201fe2755a3781c2fb50135ab186e0
tree3c497ad9fcc5a459de9d75a688bb78c5220e8dd5
parentda9ab76086120526aef10bf54e302046219797b1
Squashfs: Fix oops when reading fsfuzzer corrupted filesystems

This fixes a code regression caused by the recent mainlining changes.
The recent code changes call zlib_inflate repeatedly, decompressing into
separate 4K buffers, this code didn't check for the possibility that
zlib_inflate might ask for too many buffers when decompressing corrupted
data.

Signed-off-by: Phillip Lougher <phillip@lougher.demon.co.uk>
fs/squashfs/block.c
fs/squashfs/cache.c
fs/squashfs/squashfs.h
fs/squashfs/super.c