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>
Mon, 5 Dec 2016 17:29:12 +0000 (18:29 +0100)
commitb7940ecb5a9467066f7c1228b059588f539807bf
tree02e5c417c85f85b71bbc929b4ed178fd4dbb6a04
parent2dcc0bce3924ebc96ed7f4956b007d4b84a99750
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