avcodec/dvbsubdec: Check entry_id
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 11 May 2017 13:18:50 +0000 (15:18 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 20 May 2017 01:41:33 +0000 (03:41 +0200)
commit680157adb272d9afb7df119372b0a702206bcc1b
tree895718b5faaa9b44b3a7044d1a2ac8b70ff30dfd
parent1f8047adb8dcb970c7fc0fda581a4cbf11c062ef
avcodec/dvbsubdec: Check entry_id

Fixes: randomly writing over the array end
Fixes: 1473/clusterfuzz-testcase-minimized-5768907824562176

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 8a69f2602fea04b7ebae2db16f2581e8ff5ee0cd)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/dvbsubdec.c