aboutsummaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <[email protected]>2012-05-08 11:46:44 -0300
committerMauro Carvalho Chehab <[email protected]>2012-05-15 16:14:01 -0300
commit67e86524b907ed2189f4875cdbe7a5249c71ebb2 (patch)
tree024321e97d066467df8b25fe92d59b6f2d244b9e /scripts/patch-kernel
parentfc13baff743cf9fa49035974471c17378bfe6146 (diff)
[media] V4L: mx2-camera: avoid overflowing 32-bits
In mx2_camera_try_fmt(), when applying i.MX25 restrictions to frame sizes, the height is checked to be <= 0xffff. But later an integer multiplication height * 4 * 0x3ffff is performed, which will overflow even for bounded height values. This patch switches to using 64-bit multiplication and division to avoid overflowing. Signed-off-by: Guennadi Liakhovetski <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions