Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.15.8, 6.2.4, 6.3.0 RC
-
None
-
-
5
-
4bc85b9850 (qt/qtbase/dev) 4bc85b9850 (qt/tqtc-qtbase/dev) ceb236954a (qt/qtbase/6.2) 2a6bd54cfa (qt/qtbase/6.3) ceb236954a (qt/tqtc-qtbase/6.2) 2a6bd54cfa (qt/tqtc-qtbase/6.3) da52a120dc (qt/tqtc-qtbase/5.15)
-
Team B Foundation Sprint 55
Description
When {{seek()}}ing a QBuffer to more than INT_MAX, the seek() call duly fails, but will have changed the underlying QByteArray:
QBuffer buffer; buffer.open(QIODevice::WriteOnly); assert(buffer.buffer().size() == 0); assert(!buffer.seek(qint64(INT_MAX) + 1)); // SUCCEEDS assert(buffer.buffer().size() == 0); // FAILS
Attachments
For Gerrit Dashboard: QTBUG-102274 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
404286,5 | QBuffer: fail early in seek() beyond QByteArray's max capacity | dev | qt/qtbase | Status: MERGED | +2 | 0 |
404658,2 | QBuffer: fail early in seek() beyond QByteArray's max capacity | 6.2 | qt/qtbase | Status: MERGED | +2 | 0 |
404659,2 | QBuffer: fail early in seek() beyond QByteArray's max capacity | 6.3 | qt/qtbase | Status: MERGED | +2 | 0 |
404682,3 | QBuffer: fail early in seek() beyond QByteArray's max capacity | tqtc/lts-5.15 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |
409544,3 | QBuffer: add missing <limits> include | dev | qt/qtbase | Status: MERGED | +2 | 0 |
409776,2 | QBuffer: add missing <limits> include | 6.3 | qt/qtbase | Status: MERGED | +2 | 0 |
409782,1 | QBuffer: add missing <limits> include | tqtc/lts-5.15 | qt/tqtc-qtbase | Status: ABANDONED | +2 | 0 |
409783,2 | QBuffer: add missing <limits> include | tqtc/lts-6.2 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |