Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.8.0
-
None
-
macOS 10.12, xcode 8.2.1
-
-
b8dbde10a065c3ba95b794b6d53ff62e8ca22ee7
Description
if you take the attached file which was created with the following code
QVariant value = QByteArray::fromBase64("RBxVAAsDVsO/"); QSettings settings("/tmp/toto.plist", QSettings::NativeFormat); settings.setValue("fwPasswordData", value);
Put it in /tmp and then run the following code:
QSettings settings("/tmp/toto.plist", QSettings::NativeFormat); qDebug() << "RES" << settings.value("fwPasswordData").toByteArray();
For me the result is that it says:
RES "\x00\x00\x00\x00\x00\x00\x00\xF0\x00"
But that's clearly not the right value.
Attachments
For Gerrit Dashboard: QTBUG-58531 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
184004,7 | Fix data corruption when reading byte arrays from QSettings | 5.8 | qt/qtbase | Status: MERGED | +2 | 0 |