Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
Qt Creator 4.7.0-beta1
-
None
Description
As recently discussed on the dev mailing list, this is dangerous because QDataStream cannot deal with short reads from the underlying device. We either need to catch the short reads somewhere, or we need to buffer the input. We might mmap the file and then wrap a custom QIODevice around the resulting memory region.