History

avformat/apetag: Check APETAGEX

Fixes: Use of uninitialized value Fixes: 71074/clusterfuzz-testcase-minimized-ffmpeg_IO_DEMUXER_fuzzer-5697034877730816

Michael Niedermayer committed 2 years ago

Commit 796ff2d1 parent b08776e1 file · +2 −1Browse files

Unified · Split

libavformat/apetag.c+2−1
@@ -121,7 +121,8 @@ int64_t ff_ape_parse_tag(AVFormatContext *s) · 120 unmodified lines
121 121
122 avio_seek(pb, file_size - APE_TAG_FOOTER_BYTES, SEEK_SET);122 avio_seek(pb, file_size - APE_TAG_FOOTER_BYTES, SEEK_SET);
123 123
124 avio_read(pb, buf, 8); /* APETAGEX */124 if(avio_read(pb, buf, 8) != 8) /* APETAGEX */
125 return 0;
125 if (strncmp(buf, APE_TAG_PREAMBLE, 8)) {126 if (strncmp(buf, APE_TAG_PREAMBLE, 8)) {
126 return 0;127 return 0;
127 }128 }

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