mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/movtextdec: run mov_text_cleanup() before overwriting pointers
Fixes: memleak Fixes: 741/clusterfuzz-testcase-586996200452915 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
e2a4f1a9eb
commit
bac9c03ed9
@ -459,6 +459,8 @@ static int mov_text_decode_frame(AVCodecContext *avctx,
|
||||
end = ptr + FFMIN(2 + text_length, avpkt->size);
|
||||
ptr += 2;
|
||||
|
||||
mov_text_cleanup(m);
|
||||
|
||||
tsmb_size = 0;
|
||||
m->tracksize = 2 + text_length;
|
||||
m->style_entries = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user