Re: [Qemu-devel] [PATCH] usb: ccid: check ccid apdu length

2017-02-03 Thread Gerd Hoffmann
On Fr, 2017-02-03 at 00:52 +0530, P J P wrote: > From: Prasad J Pandit > > 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 als

[Qemu-devel] [PATCH] usb: ccid: check ccid apdu length

2017-02-02 Thread P J P
From: Prasad J Pandit 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_gu