avformat/avidec: Ignore duplicate GAB2
Fixes: memleak Fixes: 398401912/clusterfuzz-testcase-minimized-ffmpeg_dem_AVI_fuzzer-4669849976766464 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
1a5ed492e5
commit
6a47046981
@ -1122,6 +1122,10 @@ static int read_gab2_sub(AVFormatContext *s, AVStream *st, AVPacket *pkt)
|
||||
int size;
|
||||
AVProbeData pd;
|
||||
unsigned int desc_len;
|
||||
|
||||
if (ast->sub_ctx)
|
||||
return 0;
|
||||
|
||||
AVIOContext *pb = avio_alloc_context(pkt->data + 7,
|
||||
pkt->size - 7,
|
||||
0, NULL, NULL, NULL, NULL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user