[media] zr364xx: enforce minimum size when reading header
authorAlyssa Milburn <amilburn@zall.org>
Sat, 1 Apr 2017 17:34:08 +0000 (14:34 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 18 Apr 2017 15:57:29 +0000 (12:57 -0300)
commitee0fe833d96793853335844b6d99fb76bd12cbeb
tree9269034ee5ce117cbb6c6119226320e28d9cbf6a
parent821117dc21083a99dd99174c10848d70ff43de29
[media] zr364xx: enforce minimum size when reading header

This code copies actual_length-128 bytes from the header, which will
underflow if the received buffer is too small.

Signed-off-by: Alyssa Milburn <amilburn@zall.org>
Cc: stable@vger.kernel.org
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/usb/zr364xx/zr364xx.c