[CELT-dev] memory violation in mode_create() -- SOLVED.

Marko celt at platax.de
Fri Dec 3 08:27:07 PST 2010


hi Jean-Marc,


the memory after the allocated space is definitely destroyed. It took me some
time to find out why. I expected local arrays to be allocated on stack, not on
the heap. The function get_required_bits allocates a local array uint32[] which
will be located on heap right after the array fromcompute_pulse_cache(), what
made me think it was written behind its end.


I am sorry for the panic !

 
best regards,
Marko.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/opus/attachments/20101203/bfc08af7/attachment-0002.htm 


More information about the celt-dev mailing list