Re: Segfault in libpspell

Subject: Re: Segfault in libpspell
From: Kevin Atkinson (
Date: Wed Nov 15 2000 - 16:15:47 CST

On Wed, 15 Nov 2000, Dom Lachowicz wrote:

> Sam TH said:
> >Well, as far as I can tell from Dom's code, pspell_manager_check() returns
> >1 if found, 0 if not found, and -1 on error. Therefore, if it was passed
> >a null pointer, it could return -1. The following patch does just that
> >(actually it checks both arguments, which should be the right thing to do):

> Just to clarify, I don't think that pspell_manager_check() returns -1 on
> error.

Actually in can return an error. In the case the the module is ispell and
the pipe dies it will return -1 and will set the error number to
PERROR_PROCESS_DIED. If it says that it can return an error I mean that
in some cases it can.

Kevin Atkinson
kevina at users sourceforge net

This archive was generated by hypermail 2b25 : Wed Nov 15 2000 - 16:06:15 CST