1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 11:17:43 +00:00

UserspaceEmulator: Don't audit accesses in calloc() and libsystem.so

These generate a lot of false positives and nothing of value.
This commit is contained in:
Andreas Kling 2021-03-09 13:24:03 +01:00
parent a457b90733
commit 38fc522f5d
3 changed files with 20 additions and 1 deletions

View file

@ -214,7 +214,7 @@ void MallocTracer::audit_read(const Region& region, FlatPtr address, size_t size
if (!m_auditing_enabled)
return;
if (m_emulator.is_in_malloc_or_free()) {
if (m_emulator.is_in_malloc_or_free() || m_emulator.is_in_libsystem()) {
return;
}