Truncated focused memory regions in value annotations, when configured as signed integers and the size exceeds 8 bytes.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user