dvdsubdec: validate offset2 similar to offset1
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Tue, 10 Nov 2015 21:14:39 +0000 (22:14 +0100)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Thu, 26 Nov 2015 00:35:45 +0000 (01:35 +0100)
commitdf31acda644a83818f4be465c927329ddd9a9816
tree50e73613f3ffc2ce3df5ca75d412bcefbda8c987
parentd09fd0736a43b7a7df0873ca0ed99fbce9dc97ff
dvdsubdec: validate offset2 similar to offset1

If it is negative, it causes segmentation faults in decode_rle.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
(cherry picked from commit f621749d1181987b3f815c6766ea66d6c5d55198)
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
libavcodec/dvdsubdec.c