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 519 - Improper overflow exception using QDataStream.writeInt32
: Improper overflow exception using QDataStream.writeInt32
Status: CLOSED INVALID
Product: PySide
Classification: Unclassified
Component: PySide
: HEAD
: All All
: P3 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2010-12-02 14:20 EET by Marcelo Lira
Modified: 2011-01-06 16:25 EET (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 2010-12-02 14:20:00 EET
The following code causes an improper overflow exception

from PySide.QtCore import QDataStream
out = QDataStream()
out.writeInt32(0xA0B0C0D0)
Comment 1 Matti Airas 2010-12-03 04:33:14 EET
Thanks for the report! P3 unless this blocks something.
Comment 2 Hugo Parente Lima 2010-12-27 19:00:23 EET
Why improper?

0xA0B0C0D0 is 2,695,938,256 in decimal, so there is an overflow because
2,695,938,256 > (2^31 - 1).
Comment 3 renato filho 2011-01-06 16:25:22 EET
released on beta3