Priority: P1: Critical
Affects Version/s: 6.0.0 Beta4
Component/s: Core: I/O
Environment:Ubuntu 20.04 LTS 64 bit
Built with qmake
Commits:9a55f40937d037d06e00b09465d8dad0554692fc (qt/qtbase/dev) 3caacb2f2bbd3947f79d9351b7c9af4517271875 (qt/qtbase/6.0)
- To visualize the problem without a debugger or memory limits, add the attached patch.
It just adds a qDebug() to show which value is being passed into QByteArray::resize().
- Build Qt with that patch.
- Build the attached project on this build of Qt.
- Run the resulting program with the attached input.
Allocating 2 GiB of memory doesn't seem appropriate for an 8 byte file.
This is a regression from Qt 5.15. There, you'll only see: