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 132 - QString implementation of buffer interface can cause memory corruption
: QString implementation of buffer interface can cause memory corruption
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: PySide
: HEAD
: All All
: P1 critical
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2010-01-21 15:35 EET by Hugo Parente Lima
Modified: 2010-03-24 16:10 EET (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hugo Parente Lima 2010-01-21 15:35:11 EET
QString implementation of buffer interface can cause memory corruption, because
it delivery to Python a pointer of the internal data of a QByteArray which will
be deleted at the end of scope.

Following our internal discussions, the fix will be not support buffer
interface on QStrings.
Comment 1 Hugo Parente Lima 2010-01-21 17:38:43 EET
fixed on commit: 5db74d4fa2e15f46005e0bf0951ee0197c1a4c87