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:37:33 +0000 (01:37 +0100)
commitd5009d6b6d9f1e0e2b3b158a1c1b72e68c786d1e
tree8885bb430ffc78ac33ddcdc91319cc5560ecdc99
parent4dc7e2dd82891679b71a4d71b2df8cdf944ba056
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