Skip to content

Commit

Permalink
Quote and escape the string literals for the register annotation. Fix V…
Browse files Browse the repository at this point in the history
  • Loading branch information
xusheng6 committed Oct 21, 2024
1 parent 721e5ec commit 7595ec6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/debuggercontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2451,7 +2451,7 @@ static std::string CheckForLiteralString(uint64_t address)
}

if (ok)
return BinaryNinja::EscapeString(result);
return fmt::format("\"{}\"", BinaryNinja::EscapeString(result));

return "";
}
Expand Down Expand Up @@ -2835,6 +2835,7 @@ bool DebuggerController::ComputeExprValue(const LowLevelILInstruction &instr, ui
return true;
}
case LLIL_POP:
case LLIL_RET:
{
auto stackPointer = GetState()->StackPointer();
auto buffer = ReadMemory(stackPointer, instr.size);
Expand Down

0 comments on commit 7595ec6

Please sign in to comment.