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 |
556988,4 | QResource: obey the MapPrivateOption option to provide RW memory | dev | qt/qtbase | Status: MERGED | +2 | 0 |
559134,2 | QResource: obey the MapPrivateOption option to provide RW memory | 6.7 | qt/qtbase | Status: MERGED | +2 | 0 |
561584,2 | QResource: obey the MapPrivateOption option to provide RW memory | tqtc/lts-6.5 | qt/tqtc-qtbase | Status: MERGED | +2 | +1 |