Received: from eggs.gnu.org ([2001:4830:134:3::10]:46517) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YtBG5-0005NP-Mm for qemu-devel@nongnu.org; Fri, 15 May 2015 04:46:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YtBG0-0004zP-Ab for qemu-devel@nongnu.org; Fri, 15 May 2015 04:46:17 -0400 From: Alberto Garcia In-Reply-To: <1431678966-16470-2-git-send-email-famz@redhat.com> References: <1431678966-16470-1-git-send-email-famz@redhat.com> <1431678966-16470-2-git-send-email-famz@redhat.com> Date: Fri, 15 May 2015 10:45:30 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] [PATCH v2 1/2] block: Detect multiplication overflow in bdrv_getlength List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng , qemu-devel@nongnu.org Cc: Kevin Wolf , armbru@redhat.com, qemu-block@nongnu.org On Fri 15 May 2015 10:36:05 AM CEST, Fam Zheng wrote: > Bogus image may have a large total_sectors that will overflow the > multiplication. For cleanness, fix the return code so the error message > will be meaningful. > > Reported-by: Richard W.M. Jones > Signed-off-by: Fam Zheng Reviewed-by: Alberto Garcia Berto