[PyQt] QDataStream shouldn't accept str as first argument

Phil Thompson phil at riverbankcomputing.com
Sat May 3 14:52:08 BST 2008


On Thursday 01 May 2008, İsmail Dönmez wrote:
> Hi,
>
> Following code will crash with PyQt4 snapshot and older versions :
> >>> a = str("")
> >>> b = QDataStream(a, QIODevice.ReadOnly)
> >>> b.readDouble()
>
> zsh: segmentation fault  python

Fixed in tonight's snapshot.

Thanks,
Phil



More information about the PyQt mailing list