PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 871 - Shiboken should prevent custom code on virtual methods to cause infinite recursion.
: Shiboken should prevent custom code on virtual methods to cause infinite recu...
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: Shiboken
: HEAD
: PC Linux
: P2 normal
Assigned To: Marcelo Lira
:
:
:
  Show dependency treegraph
 
Reported: 2011-05-31 20:28 EEST by Marcelo Lira
Modified: 2011-06-22 20:14 EEST (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcelo Lira 2011-05-31 20:28:27 EEST
Joel B. Mohler reported that a call to QtGui.QIntValidator.validate was causing
an infinite recursion[1], and I found out that the problem is in the way
Shiboken preprocess type system variables for a custom code inserted in
QIntValidator.validate.

The solution is to insert the proper check when replacing occurrences of
"%CPPSELF.%FUNCTION_NAME()" by the actual call.

[1] http://lists.pyside.org/pipermail/pyside/2011-May/002554.html
Comment 1 Hugo Parente Lima 2011-05-31 20:39:42 EEST
Prioritizing as P2, it's a basic feature that may affect all inject codes on
virtual methods.
Comment 2 Marcelo Lira 2011-06-13 19:56:41 EEST
Fixed in Shiboken/527efdee and PySide/1be25c54.
Comment 3 renato filho 2011-06-22 20:14:11 EEST
release 1.0.4