Received: from eggs.gnu.org ([2001:4830:134:3::10]:42597) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cZZzx-0005p1-O1 for qemu-devel@nongnu.org; Fri, 03 Feb 2017 04:17:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cZZzt-0003c8-Op for qemu-devel@nongnu.org; Fri, 03 Feb 2017 04:17:41 -0500 Received: from mx1.redhat.com ([209.132.183.28]:53194) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cZZzt-0003bL-J4 for qemu-devel@nongnu.org; Fri, 03 Feb 2017 04:17:37 -0500 Message-ID: <1486113454.16444.13.camel@redhat.com> From: Gerd Hoffmann Date: Fri, 03 Feb 2017 10:17:34 +0100 In-Reply-To: <20170202192228.10847-1-ppandit@redhat.com> References: <20170202192228.10847-1-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: ccid: check ccid apdu length List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: P J P Cc: Qemu Developers , Li Qiang , Prasad J Pandit On Fr, 2017-02-03 at 00:52 +0530, P J P wrote: > From: Prasad J Pandit >=20 > CCID device emulator uses Application Protocol Data Units(APDU) > to exchange command and responses to and from the host. > The length in these units couldn't be greater than 65536. Add > check to ensure the same. It'd also avoid potential integer > overflow in emulated_apdu_from_guest. >=20 > Reported-by: Li Qiang > Signed-off-by: Prasad J Pandit Added to usb queue. thanks, Gerd