lavc/utvideodec: prevent possible signed overflow
authorGanesh Ajjanagadde <gajjanag@gmail.com>
Tue, 23 Feb 2016 04:21:58 +0000 (23:21 -0500)
committerGanesh Ajjanagadde <gajjanag@gmail.com>
Wed, 24 Feb 2016 01:37:11 +0000 (20:37 -0500)
commite86444b19d0b63c098298243fb20fd577f34cf34
tree74439a4450a2cb0373f85ed16f94f995fa3f4acf
parent67e5bd0c501f7568fc8d93284d0f7eb40663ab06
lavc/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>
libavcodec/utvideodec.c