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


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
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 for more information
Ecasound-list mailing 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