Skip to main content.
home | support | download

Back to List Archive

Re: swish-e core dump while indexing XML documents

From: Bill Moseley <moseley(at)not-real.hank.org>
Date: Thu Apr 08 2004 - 00:57:39 GMT
On Wed, Apr 07, 2004 at 01:50:37PM -0700, Bill Schell wrote:
> I finally got back to this problem after being pulled off on something else
> for a couple weeks.
> 
> There is a bug on line 253 of src/file.c (in swish-e-2.4.2).
> That line reads:
> buffer[bytes_read+1] = '\0';  /* hopfully doesn't read more than filelen bytes;) */
> 
> it should read:
> buffer[bytes_read] = '\0';  /* hopefully doesn't read more than filelen bytes;) */

Yet another reason to get rid of the old built-in parsers!

Thanks for that catch.

-- 
Bill Moseley
moseley@hank.org
Received on Wed Apr 7 17:57:39 2004