]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
media: tegra: camera: Fix stack overread
authorAmey Asgaonkar <aasgaonkar@nvidia.com>
Mon, 16 May 2016 23:33:15 +0000 (16:33 -0700)
committerMatthew Pedro <mapedro@nvidia.com>
Fri, 20 May 2016 17:59:01 +0000 (10:59 -0700)
commit14359cb871606ffefa4ca2070b7e9ccb08dcd378
treef7d4329077c0d401929e497b54e3e8a6a67b2539
parent029cec3ad88a18829e816ad56ed5c7da06955199
media: tegra: camera: Fix stack overread

We are not checking a variable which is user
controlled. This can lead to reading of the
stack data. Adding a check to ensure it is
less than the max possible value of the variable.

Bug 1763649

Change-Id: I395e882d030199bdd7684837906a9b5d60741650
Signed-off-by: Amey Asgaonkar <aasgaonkar@nvidia.com>
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/1150943
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
drivers/media/platform/tegra/cam_dev/virtual.c