1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 07:48:12 +00:00

UserspaceEmulator: Don't scan text segment for malloc leaks

There will be no (true positive) malloc addresses in the text segment.
This commit is contained in:
Andreas Kling 2020-07-16 19:27:03 +02:00
parent 3dc1c80958
commit e50874621a
3 changed files with 8 additions and 0 deletions

View file

@ -63,6 +63,9 @@ public:
bool is_stack() const { return m_stack; }
void set_stack(bool b) { m_stack = b; }
bool is_text() const { return m_text; }
void set_text(bool b) { m_text = b; }
protected:
Region(u32 base, u32 size)
: m_base(base)
@ -75,6 +78,7 @@ public:
u32 m_size { 0 };
bool m_stack { false };
bool m_text { false };
};
u8 read8(X86::LogicalAddress);