[media] r820t: avoid potential memcpy buffer overflow in shadow_store()
authorGianluca Gennari <gennarone@gmail.com>
Sun, 2 Jun 2013 17:31:19 +0000 (14:31 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 19 Jun 2013 14:07:44 +0000 (11:07 -0300)
commit757d7ace565c06e1302ba7c9244d839455e13881
tree307d2f96f010575be995e2d1274b9cabf2debd46
parente2e324d70defce7ffc4668085dc3c8ae580074e5
[media] r820t: avoid potential memcpy buffer overflow in shadow_store()

The memcpy in shadow_store() could exceed buffer limits when r > 0.

Signed-off-by: Gianluca Gennari <gennarone@gmail.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/tuners/r820t.c