From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45233) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVfmG-0004BU-Ot for qemu-devel@nongnu.org; Tue, 16 Feb 2016 08:34:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aVfmD-0008ND-Jy for qemu-devel@nongnu.org; Tue, 16 Feb 2016 08:34:52 -0500 Received: from mx1.redhat.com ([209.132.183.28]:39270) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVfmD-0008N7-Ef for qemu-devel@nongnu.org; Tue, 16 Feb 2016 08:34:49 -0500 Message-ID: <1455629687.7504.93.camel@redhat.com> From: Gerd Hoffmann Date: Tue, 16 Feb 2016 14:34:47 +0100 In-Reply-To: <1455188480-14688-1-git-send-email-ppandit@redhat.com> References: <1455188480-14688-1-git-send-email-ppandit@redhat.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] usb: check USB configuration descriptor object List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: P J P Cc: Qinghao Tang , Qemu Developers , Prasad J Pandit On Do, 2016-02-11 at 16:31 +0530, P J P wrote: > When processing remote NDIS control message packets, the USB Net > device emulator checks to see if the USB configuration descriptor > object is of RNDIS type(2). But it does not check if it is null, > which leads to a null dereference error. Add check to avoid it. Added to usb queue. thanks, Gerd