Re: getargs problem on NULL
Guido.van.Rossum@cwi.nl
Fri, 06 Jan 1995 19:42:22 +0100
> I think getargs cannot be trusted with null inputs. Here is a sample
> symptom from the python core:
>
> Python 1.1 (Jan 6 1995)
> Copyright 1991-1994 Stichting Mathematisch Centrum, Amsterdam
> >>> D = {}
> >>> D.has_key()
> Segmentation fault
>
> Whoops. I looked at the getargs implementation, but its beyond me
> at the moment. This should either be fixed in getargs or all calls
> to getargs should be sure the input isn't NULL. Sorry if this is a
> repeat report. thanks. -a.
Apologies accepted. This was fixed in Python/getargs.c in version 1.1.1.
Get patch1.1.1 from ftp.cwi.nl (pub/python).
--Guido van Rossum, CWI, Amsterdam <mailto:Guido.van.Rossum@cwi.nl>
<http://www.cwi.nl/cwi/people/Guido.van.Rossum.html>