Skip to content

Commit

Permalink
Return empty string when de-referencing the register with value 0x0
Browse files Browse the repository at this point in the history
  • Loading branch information
xusheng6 committed Mar 8, 2023
1 parent e97d17d commit 205faea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/debuggercontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1910,6 +1910,10 @@ static std::string CheckForLiteralString(uint64_t address)

std::string DebuggerController::GetAddressInformation(uint64_t address)
{
// Avoid too many results in the register widget when the address is 0x0
if (address == 0)
return "";

const DataBuffer memory = ReadMemory(address, 128);
auto result = CheckForPrintableString(memory);
// If we can find a string at the address, return it
Expand Down

0 comments on commit 205faea

Please sign in to comment.