Skip to main content.
home | support | download

Back to List Archive

Re: SWISH-E 2.4.4 filters can not locate files

From: Ludovic Drolez <ldrolez(at)not-real.debian.org>
Date: Wed Oct 18 2006 - 15:33:49 GMT
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
Received on Wed Oct 18 08:35:35 2006