mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
Fix a read past end of buffer crash in the mp3 probe
Originally committed as revision 16693 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
7eb68edba7
commit
38cef58404
@ -364,7 +364,7 @@ static int mp3_read_probe(AVProbeData *p)
|
||||
|
||||
max_frames = 0;
|
||||
buf = buf0;
|
||||
end = buf + p->buf_size - sizeof(uint32_t);
|
||||
end = p->buf + p->buf_size - sizeof(uint32_t);
|
||||
|
||||
for(; buf < end; buf= buf2+1) {
|
||||
buf2 = buf;
|
||||
|
Loading…
Reference in New Issue
Block a user