Details
Description
Here is a crappy sample how it happens:
if (QFile f(id); f.open(QIODevice::ReadOnly) && (dat = f.map({}, f.size(), QFileDevice::MapPrivateOption))) { *dat = {}; }
Will SEGV after a second resource (e.g.":/resource.png") is loaded in, but not the first. I used this method for lazy reading instead of loading a resouce into a QByteArray. I don't see how I could be responsible.
Attachments
For Gerrit Dashboard: QTBUG-124608 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
559134,1 | QResource: obey the MapPrivateOption option to provide RW memory | 6.7 | qt/qtbase | Status: NEW | +2 | 0 |