jmimemagic icon indicating copy to clipboard operation
jmimemagic copied to clipboard

MP4 files cause heap space issues

Open arimus opened this issue 12 years ago • 1 comments

Moved from sf.net Rara (raprami)

When analysing the "Video029.mp4" file ( you can get it here : http://raphael.ramirez.free.fr/video029.mp4 ) with a custom magic.xml file (see attachement), MagicMatch match = Magic.getMagicMatch(file, true) breaks with a "java.lang.OutOfMemoryError: Java heap space".

arimus avatar Sep 10 '12 08:09 arimus

This may be the fix, but need to dig into it. Don't remember if the MP4 detection was a fixed position or regex based matcher.

https://github.com/arimus/jmimemagic/commit/bbcd4e04f0d9cb0e60ad7ec98c40383d39e024d3

arimus avatar Sep 10 '12 08:09 arimus