Fatal Memory Allocation Error - quicktime module

Think you found a bug in getID3()? Post here with details.
Post Reply
filmo
User
Posts: 22
Joined: Fri Dec 08, 2006 7:16 pm
Location: Los Angeles

Fatal Memory Allocation Error - quicktime module

Post by filmo » Thu May 23, 2013 5:21 pm

I got:

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 77971484 bytes) in /home/product/phpinc/getid3-1.9.5-20130220/getid3/module.audio-video.quicktime.php on line 116

when using 1.9.5

File was created using some sort of Skype or Chat recording software (Don't know for sure how the file was created. But I suspect it was created by this software: https://www.ecamm.com/mac/callrecorder/index.html ) I've seen a bit of this recently, these 'chat' recorders instead of creating one stereo audio channel, create 2 completely separate MONO channels and then encase them in a Quicktime Wrapper.

QuickTime Properties
1 video channel at 120x90 @ 5 fps H.264
2 separate MONO channels of AAC @ 44.1 khz

79.9 MB, 1 hour and 14 minutes long. (79,936,811 bytes)

(If you PM me, I can provide you a link to file if you want to test it.)

It's failing at line 116:

$info['quicktime'][$atomname] = $this->QuicktimeParseAtom($atomname, $atomsize, fread($this->getid3->fp, $atomsize), $offset, $atomHierarchy, $this->ParseAllPossibleAtoms);

My guess is that it's not checking to make sure the $atomsize or $offset are sane values. (Seems to be trying to read the entire file or a portion of it that is close to 77MB in size.)

Image
Image

James Heinrich
getID3() v1 developer
Posts: 1430
Joined: Fri May 04, 2001 4:00 pm
Are you a spambot?: no
Location: Northern Ontario, Canada
Contact:

Re: Fatal Memory Allocation Error - quicktime module

Post by James Heinrich » Thu May 23, 2013 5:33 pm

Please email or PM me a link to this file for testing.

Post Reply