avcodec/hevcdec: do not let updated extradata corrupt state
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 4 Jul 2017 20:33:52 +0000 (22:33 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 5 Jul 2017 02:37:57 +0000 (04:37 +0200)
commitc8cfbc6629c1fe5755b59a3bcfd95ad08b843a07
treebb939013688aceae72426076796779aad8d89802
parent24bb7db4037876c5722b0eecf7412502e7225634
avcodec/hevcdec: do not let updated extradata corrupt state

Fixes: out of array access
Fixes: 2451/clusterfuzz-testcase-minimized-4781613957251072

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Hendrik Leppkes <h.leppkes@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/hevcdec.c