avcodec/ccaption_dec: Use simple array instead of AVBuffer
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 9 Sep 2016 08:26:15 +0000 (10:26 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 28 Sep 2016 12:23:06 +0000 (14:23 +0200)
commit65c10f0f5c5212f903feb30a5f65700caa6f0b2e
tree2eaa33f2203d639201387a453419f37b78e09be0
parented1c6f701a7861c77e89530d081e87da6fb3d3a7
avcodec/ccaption_dec: Use simple array instead of AVBuffer

This is simpler and fixes an out of array read, fixing it with AVBuffers
would be more complex

Fixes: e00d9e6e50e5495cc93fea41147b97bb/asan_heap-oob_12dcdbb_8798_b32a97ea722dd37bb5066812cc674552.mov

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 752e6dfa3ea97e7901870bdd9e5a51f860607240)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/ccaption_dec.c