aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorSakari Ailus <[email protected]>2019-01-10 07:43:19 -0500
committerMauro Carvalho Chehab <[email protected]>2019-01-16 11:12:10 -0500
commit9048b2e15b11c591c649cc6edc7a64fa62c15419 (patch)
treeb2db22dae3e4800d48dffe3303ae09e97c7ac70b /tools/perf/scripts/python/export-to-postgresql.py
parentdd91642ac71208fe972a9c577ed52b6b3ba7b732 (diff)
media: v4l: ioctl: Validate num_planes before using it
The for loop to reset the memory of the plane reserved fields runs over num_planes provided by the user without validating it. Ensure num_planes is no more than VIDEO_MAX_PLANES before the loop. Fixes: 4e1e0eb0e074 ("media: v4l2-ioctl: Zero v4l2_plane_pix_format reserved fields") Signed-off-by: Sakari Ailus <[email protected]> Reviewed-by: Thierry Reding <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions