[PyQt] [SIP][BUG] CoreDump if scope is NULL when instantiating template (no namespace used)

Alexis Boutillier alexis.boutillier at arteris.com
Tue Dec 15 15:33:35 GMT 2009


sip version : 4.9.3

Hi,

To effectively instantiate a template to use it in python, you need to 
add a typedef with the name.
The related code only work if you are in a scope (scope!=NULL) otherwise 
it crash here :

line 3984 of parser.y:
     cd->iff = findIfaceFile(pt, mod, fqname, class_iface,
             scope->iff->api_range, NULL);
because scope can be NULL.
later in the code of instantiateClassTemplate you correctly check for 
scope!=NULL before using it.

Regards,


-- 
Boutillier Alexis
Methodology engineer

Arteris SA
The Network-on-Chip Company TM
www.arteris.net

6 par Ariane Immeuble Mercure
78284 Guyancourt Cedex
France
Office: (+33) 1 61 37 38 71
Fax:    (+33) 1 61 37 38 41
Alexis.Boutillier at arteris.net


More information about the PyQt mailing list