Re: [ecasound] Buffer too small for map-ladspa-list

From: Kai Vehmanen <kvehmanen@email-addr-hidden>
Date: Thu Oct 27 2005 - 00:53:49 EEST

Hi,

On Mon, 24 Oct 2005, Stuart Allie wrote:

> While playing with my embryonic front-end to ecasound, I found that
> calling 'map-ladpsa-list' produces the warning:
[...]
> "(ecasoundc_sa) WARNING! Parsing buffer overflowed!"

that's a good catch -- definitely a bug!

> The cause is the static buffer size defined in ecasoundc_sa.c:
> #define ECI_MAX_PARSER_BUF_SIZE 65536
> With enough ladspa plugins installed (I have the swh, cmt, cap, and tap
> sets) it is easy to go over this buffer limit by calling
> map-ladspa-list. I get around 140,000 bytes returned, so it's probably
> worth increasing this buffer to 256k, or even 512k to be safe.

Yes, very true, having this type of limits is just lazy coding.
The parser should really dynamically allocate more memory. Hmm,
I'll try to fix this to the next release.

--
  links, my public keys, etc at http://eca.cx/kv
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Ecasound-list mailing list
Ecasound-list@email-addr-hidden
https://lists.sourceforge.net/lists/listinfo/ecasound-list
Received on Thu Oct 27 04:15:08 2005

This archive was generated by hypermail 2.1.8 : Thu Oct 27 2005 - 04:15:08 EEST