Re: SWISH-E 2.4.4 filters can not locate files

Ludovic Drolez <[email protected]> Wed, 18 Oct 2006 08:33:35 -0700 (PDT)
Newsgroups gmane.comp.web.swish-e
Message-ID <[email protected]>
On Tue, Oct 17, 2006 at 02:56:35PM -0700, Gertjan Hofman wrote:
> Hmmm.... when I use either single or double quotes in
> the config file I get a seg fault. The trace back is:
> (gdb) where
> #0  0xb7ea2320 in free () from
> /lib/tls/i686/cmov/libc.so.6
> #1  0xb7fb7b97 in efree (ptr=0x73702e65) at mem.c:115
> #2  0x0805bc19 in stringQuote (str=0x80fd543 "") at

Thanks ! 

I've found your bug:
- copy is incremented before being freed: 
 
   ...
   *str++ = *copy++;
   ...
   efree(copy);
   
I really don't understand why it works 99% of the time ?! It should always
crash...

Cheers,

-- 
Ludovic Drolez.

http://zaurus.palmopensource.com       - The Zaurus Open Source Portal
http://www.drolez.com      - Personal site - Linux, Zaurus and PalmOS stuff