From: Phillip Lougher Subject: Re: [Patch] NULL pointer deref with corrupted squashfs image Date: Wed, 21 Jan 2009 12:31:38 +0000 Message-ID: <497715AA.1070701@lougher.demon.co.uk> References: <20090113124027.GB16333@alice> <20090116174525.GA31869@alice> <20090116190725.GA19453@logfs.org> <20090116230700.GP6710@smtp.west.cox.net> <20090117134916.GA29641@logfs.org> <20090120163957.GA21339@alice> <20090120184702.GB30203@smtp.west.cox.net> <20090121083418.GA5865@alice> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Tom Rini , =?UTF-8?B?SsO2cm4gRW5nZWw=?= , linux-fsdevel@vger.kernel.org, jacmet@sunsite.dk, rpurdie@rpsys.net, linuxppc-dev@ozlabs.org, chris@zankel.net To: Eric Sesterhenn Return-path: Received: from lon1-post-1.mail.demon.net ([195.173.77.148]:48839 "EHLO lon1-post-1.mail.demon.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757943AbZAUMac (ORCPT ); Wed, 21 Jan 2009 07:30:32 -0500 In-Reply-To: <20090121083418.GA5865@alice> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Eric Sesterhenn wrote: > Some callers of zlib_inflate() might accidentally pass a NULL > pointer in strm->next_out which zlib_inflate() should catch. > Others like the powerpc gunzip_partial expect to be able > to extract a zImage to memory location 0. This introduces > zlib_inflate_usafe() for those and adds a check for the rest > > > + These two wrappers decide wheter strm->next_out gets checked for NULL. "wheter" -> "whether" Apart from that looks OK to me. Phillip