Author illume
Recipients
Date 2006-07-03.23:08:22
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=2042

Hello.

Relating to this bug, I think asserting not NULL in
Py_INCREF would have caught it.

Something like this?

// OLD.
#define Py_INCREF(op) (				\
	_Py_INC_REFTOTAL  _Py_REF_DEBUG_COMMA	\
	(op)->ob_refcnt++)

// NEW.
#define Py_INCREF(op) (				\
	assert((op) != NULL)	\
	_Py_INC_REFTOTAL  _Py_REF_DEBUG_COMMA	\
	(op)->ob_refcnt++)



Cheers.
History
Date User Action Args
2007-08-23 14:40:50adminlinkissue1512695 messages
2007-08-23 14:40:50admincreate