avcodec/dvdsubdec: Fix buf_size check
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 26 Oct 2016 14:29:57 +0000 (16:29 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 26 Nov 2016 14:12:26 +0000 (15:12 +0100)
commit3177ea512f4b6cab403add5f17f38321a8bfd69f
tree93c8cb2a2da76fb94f71ef2818936fde8e85b0cb
parente25441912baf76d61ce216f6efc24ffcc83f707a
avcodec/dvdsubdec: Fix buf_size check

Fixes out of array access

Found-by: Thomas Garnier using libFuzzer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 25ab1a65f3acb5ec67b53fb7a2463a7368f1ad16)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/dvdsubdec.c