[FFmpeg-devel] [PATCH] fix for malloc error (roundup issues 2480, 2479)
Thu Jan 6 10:50:20 CET 2011
On 5 January 2011 20:16, Kostya Shishkov <kostya.shishkov at gmail.com> wrote:
> On 5 January 2011 17:22, Michael Niedermayer <michaelni at gmx.at> wrote:
>> On Mon, Jan 03, 2011 at 01:01:17PM -0500, Daniel Kang wrote:
>>> I am a Google Code-In student, and as part of a task, I have zzufed
>>> several files. It seems for extraordinary large total frames, ffmpeg
>>> fails on mallocating memory. Both bugs have been reproduced, so it is
>>> not only a bug on my box.
> There's also a check on seektable/num frames mismatch but it will only
> print warning.
> I'll look at it tomorrow.
I believe it happens because seektable size is smaller and it causes
out of bounds access. Here's proof-of-concept patch for that.
I still don't know what to do when seek table size is zero but I'll wait till
there's such real sample.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 756 bytes
Desc: not available
More information about the ffmpeg-devel