Re: Segfault in libpspell


Subject: Re: Segfault in libpspell
From: Sam TH (sam@uchicago.edu)
Date: Tue Nov 14 2000 - 23:48:44 CST


On Tue, Nov 14, 2000 at 07:29:43PM -0500, Kevin Atkinson wrote:
> On Tue, 14 Nov 2000, Matt Brubeck wrote:
>
> > Also, pspell_manager_check() should not segfault when passed a null
> > pointer as its first argument. This is a bug in Pspell.
>
> Um, Why? You are violating an implied precondition of passing in a valid
> pointer.
>

Because programs shouldn't segfault. This is certainly our fault,
for passing the NULL pointer. However, it is preferable to check
that, than to just segfault.

           
        sam th
        sam@uchicago.edu
        http://www.abisource.com/~sam/
        GnuPG Key:
        http://www.abisource.com/~sam/key




This archive was generated by hypermail 2b25 : Tue Nov 14 2000 - 23:48:51 CST