Re: AIFF audio file causing endless loop

13 views
Skip to first unread message

Brian Whitman

unread,
May 17, 2013, 9:56:15 AM5/17/13
to echo...@googlegroups.com
It's a bug in SubbandAnalysis -- _NumFrames is a uint, but we do 

    _NumFrames = (_NumSamples - C_LEN + 1)/SUBBANDS;

That sound is 16 samples long, so NumFrames overflows and the assert on the next line doesn't fire. I would put a check earlier on to not allow any sound under 5*11025 samples or so , but even a C_LEN+2 (130) sample sound should at least go without crashing.





On Wed, May 15, 2013 at 5:22 AM, Freebit <to...@freebits.de> wrote:
Hello,

I'm using the echoprint codegen version 4.12 and have compiled it for Mac OS X. It works well for most of my audio files but now I found a file that's causing problems. The file "noise.aif" I attached is a very short AIFF based audio file taken from the test suite of taglib-1.8. (tests/data/ directory) If I run codegen on this file it will eat up all of my memory and all of my CPU. (8GB and 199% CPU on my system) No result will be shown and it appears to be stuck in an endless loop.

Is this a known problem?

Greetings,
Marcel.

--
You received this message because you are subscribed to the Google Groups "echoprint" group.
To unsubscribe from this group and stop receiving emails from it, send an email to echoprint+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages