forked from qt-creator/qt-creator
CdbExt: Fix dump of QString when array size equals full size.
Task-number: QTCREATORBUG-10679 Change-Id: I594e52297cd65b15eabb5a5f29363c925708f00b Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
@@ -1534,7 +1534,7 @@ bool readQt5StringData(const SymbolGroupValue &dV, int qtMajorVersion,
|
||||
if (!memory)
|
||||
return false;
|
||||
*array = reinterpret_cast<CharType *>(memory);
|
||||
if ((*arraySize < *fullSize) && zeroTerminated)
|
||||
if ((*arraySize <= *fullSize) && zeroTerminated)
|
||||
*(*array + *arraySize) = CharType(0);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user