Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.2.4, 6.3.1, 6.4.0 Beta2
-
None
-
13
-
fd48ce0b7 (dev)
-
Foundation Sprint 92, Foundation Sprint 93
Description
The code fails on 64-bit platforms:
QByteArray ba; const QString str = ~~~ more than 2Gi characters ~~~; QDataStream(&ba) << str; QString restored; QDataStream(ba) >> restored; assert(restored == str);
Ditto all other containers.
The problem seems to be that the serialisation format only allocates a four-octet length field.
There doesn't appear to be something you can do, unless you change the format to include a longer length indicator.
Attachments
Issue Links
- is required for
-
QTBUG-103541 Finish migration to qsizetype [qtbase/src/corelib/serialization]
- Open
- resulted from
-
QTBUG-103531 Finish migration to qsizetype [qtbase/src/corelib/text]
- Closed
- mentioned in
-
Page Loading...