I've a segfault for a non return.

sipParseErr is NULL but is checked agains Py_None which is different
from NULL.

> PyObject *sipParseErr = NULL;
> 
> ...
> 
> Py_XDECREF(sipParseErr);
> 
> if (sipParseErr == Py_None)
>     return NULL;
> 
> /* Raise an exception if the arguments couldn't be parsed. */
> sipNoMethod(sipParseErr, sipName_TestSipErr, sipName___getitem__, NULL);

A simple solution is to check for (sipParseErr == NULL || sipParseErr == 
Py_None).
Or set PyObject *sipParseErr = Py_None;

-- 
Matteo Bertozzi - [email protected]
Develer S.r.l. - http://www.develer.com/

Attachment: sip-null-pynone.tar.bz2
Description: application/bzip-compressed-tar

_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to