]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
[PATCH] Check input buffer size in zisofs
authorLinus Torvalds <torvalds@osdl.org>
Sat, 6 Aug 2005 18:33:11 +0000 (11:33 -0700)
committerChris Wright <chrisw@osdl.org>
Mon, 15 Aug 2005 00:20:09 +0000 (17:20 -0700)
commit49f8907fb9de31d3a0a099fef0f42ccdcdc9c7e7
tree8e98567f28ce0d153ed8b6e0dc33d7ebce523f0d
parent885605316d76c3fdce23dffe9c59e20539287c6b
[PATCH] Check input buffer size in zisofs

Add fakey 'deflateBound()' function to the in-kernel zlib routines

It's not the real deflateBound() in newer zlib libraries, partly because
the upcoming usage of it won't have the "stream" available, so we can't
have the same interfaces anyway.

This uses the new deflateBound() thing to sanity-check the input to the
zlib decompressor before we even bother to start reading in the blocks.

Problem noted by Tim Yamin <plasmaroo@gentoo.org>

Signed-off-by: Chris Wright <chrisw@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
fs/isofs/compress.c
include/linux/zlib.h