Details
-
Bug
-
Resolution: Done
-
P2: Important
-
6.2.4, 6.3.0 Beta3, 6.4
-
None
-
-
3
-
61157c8354 (qt/qtbase/dev) 15919c5bda (qt/qtbase/6.3) fb19f77aa3 (qt/qtbase/6.2) fb19f77aa3 (qt/tqtc-qtbase/6.2) 15919c5bda (qt/tqtc-qtbase/6.3) 61157c8354 (qt/tqtc-qtbase/dev)
-
Team B Foundation Sprint 55
Description
When trying to write more than 2GiB of data to a QBuffer on 64-bit platforms, the write() call returns success, while the write is actually short:
const std::string input(2 * 1024 * 1024 * 1024 + 1, 42); auto r = buffer.write(input.data(), input.size()); // returns input.size() // but assert(buffer.buffer().size() == input.size()); // fails!
32-bit platforms don't support this operation, so it's a 64-bit-only issue.