mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:28:12 +00:00
UserspaceEmulator: When auditing accesses, show nearest mallocation
Instead of always showing the preceding mallocation, prefer showing the following one *if* it's closer to the audited address. This makes it easier to find bugs where the access is just before an allocation instead of just after it.
This commit is contained in:
parent
3a2727844c
commit
ddc5ce1800
2 changed files with 37 additions and 8 deletions
|
@ -64,6 +64,7 @@ private:
|
|||
|
||||
Mallocation* find_mallocation(FlatPtr);
|
||||
Mallocation* find_mallocation_before(FlatPtr);
|
||||
Mallocation* find_mallocation_after(FlatPtr);
|
||||
bool is_reachable(const Mallocation&) const;
|
||||
|
||||
Vector<Mallocation> m_mallocations;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue