[issue4460] The parameter of PyInt_AsSsize_t() is not checked to see if it is NULL

Mark Dickinson report at bugs.python.org
Sat Nov 29 18:43:51 CET 2008


Mark Dickinson <dickinsm at gmail.com> added the comment:

> abstract.c(PyNumber_AsSsize_t) shows this check of PyInt_AsSsize_t()'s
> parameter:

Yup.  And that's because 'value' is the return value from 
PyNumber_Index.  PyNumber_Index might return NULL, so the check is 
necessary.

Am closing this as invalid.

I appreciate that you're trying to help here;  may I suggest that you 
take some time to read through the various development docs available?

----------
resolution:  -> invalid
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4460>
_______________________________________


More information about the Python-bugs-list mailing list