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