Re: usb: gadger: f_fs: Do not copy past descriptor end.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 16 Jan 2017 15:30:15 +0200, Felipe Balbi
<felipe.balbi@xxxxxxxxxxxxxxx> wrote:
> so we need min() here? desc->bLength should always contain correct size.

It should, yes, there is a check when parsing descriptors.
I was a bit worried at removing the "natural" maximum size (the one
declared as part of the ioctl code). But if it is fine for you I'll
remove it.

Regards,
-- 
Vincent Pelletier

Attachment: pgptWMX490aFw.pgp
Description: Signature digitale OpenPGP


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux