Truncated focused memory regions in value annotations, when configured as signed integers and the size exceeds 8 bytes.

This commit is contained in:
Nav
2022-02-02 22:37:40 +00:00
parent d23277f4ab
commit 6d9b29d1bc

View File

@@ -72,7 +72,6 @@ void ValueAnnotationItem::refreshLabelText() {
break;
}
if (valueSize <= 8) {
std::int64_t integerValue = 0;
for (const auto& byte : this->value) {
integerValue = (integerValue << 8) | byte;
@@ -81,7 +80,6 @@ void ValueAnnotationItem::refreshLabelText() {
this->labelText = QString::number(integerValue);
break;
}
}
case MemoryRegionDataType::ASCII_STRING: {
// Replace non-ASCII chars with '?'
auto asciiData = this->value;