Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.13.2
-
None
-
- Manjaro Linux (Linux 5.3.12-1-MANJARO x86_64 18.1.3 Juhraya)
- Qt 5.13.2
-
-
1f592da7f175aa75726eece2fab8f5c1edde193f (qt/qtbase/5.14)
Description
When assign a value to a QCborValueRef that has a different type as the value it is currently holding, a completely different value is assigned. This can happen when accessing a QCborMap or QCborArray via operator[]:
QCborMap testMap; testMap[0] = QStringLiteral("value"); testMap[0] = 42; qDebug() << testMap.value(0); // returns "QCborValue(1)"
This does not happen when assigning a value of a different type to a QCborValue. It also works correctly if assigning a value of the same type.
Attachments
For Gerrit Dashboard: QTBUG-80342 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
282764,2 | QCborValue: fix replacing of elements with byte data with ones without | 5.14 | qt/qtbase | Status: MERGED | +2 | 0 |