[FFmpeg-trac] #185(avformat:new): ffmpeg segfaults with large ogg/vorbis files

FFmpeg trac at avcodec.org
Tue May 10 23:55:59 CEST 2011

#185: ffmpeg segfaults with large ogg/vorbis files
 Reporter:  Philius              |        Type:  defect
   Status:  new                  |    Priority:  normal
Component:  avformat             |     Version:  unspecified
 Keywords:  segfault ogg/vorbis  |  Blocked By:
 Blocking:                       |  Reproduced:  0
 Analyzed:  0                    |
 I've got a 2.7GB ogg/vorbis file I want to convert to an AVI.
 I recorded it with cheese.
 I built a debugging version of ffmpeg 0.6.1 and ran it under kdbg to track
 it down.
 The problem is in oggdec.c line 282.
 It's trying to double the buffer size and that allocation fails, but this
 isn't checked.

 I think mmap() is the only way to go with such large files.
 Question: can ffmpeg or some other program split up a large file before
 ffmpeg would need to be aware of this for two-pass processing.
 I downloaded ffmpeg-0.7-rc1 and the problem in oggdec.c is still there.

Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/185>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list