History

avformat/oggparsevorbis: Error out on double init of vp

Fixes: memleak Fixes: 19949/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5743636058210304

Michael Niedermayer committed 6 years ago

Commit 2a3bbc01 parent 62680341 file · +6 −1Browse files

Showing the changes to libavformat (1 of 1 file). Show all

Unified · Split

libavformat/oggparsevorbis.c+6−1
@@ -385,7 +385,12 @@ static int vorbis_header(AVFormatContext *s, int idx) · 384 unmodified lines
385 }385 }
386 }386 }
387 } else {387 } else {
388 int ret = fixup_vorbis_headers(s, priv, &st->codecpar->extradata);388 int ret;
389
390 if (priv->vp)
391 return AVERROR_INVALIDDATA;
392
393 ret = fixup_vorbis_headers(s, priv, &st->codecpar->extradata);
389 if (ret < 0) {394 if (ret < 0) {
390 st->codecpar->extradata_size = 0;395 st->codecpar->extradata_size = 0;
391 return ret;396 return ret;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t