utvideodec: Prevent possible signed overflow
authorGanesh Ajjanagadde <gajjanag@gmail.com>
Tue, 23 Feb 2016 04:21:58 +0000 (23:21 -0500)
committerLuca Barbato <lu_zero@gentoo.org>
Thu, 13 Apr 2017 11:37:10 +0000 (13:37 +0200)
commit1fe858136b315796dd5349f3b4448a29d1bd6fa1
tree07a2f8645e901321eea3e072f30303919f7c2168
parent4d4d7cf9d539a053f531f662a972b23d335738eb
utvideodec: Prevent possible signed overflow

Doing slice_end - slice_start is unsafe and can lead to undefined behavior
until slice_end has been properly sanitized.

Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: Ganesh Ajjanagadde <gajjanag@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavcodec/utvideodec.c