This is an archive of the discontinued LLVM Phabricator instance.

Add __sanitizer_get_allocation_bounds API and implementations
AbandonedPublic

Authored by thurston on Mar 27 2023, 4:55 PM.

Details

Reviewers
None
Summary

This function will return whether a pointer lies within an allocation, and if so,
the start and size of the allocation.

It will be useful for detecting dynamic TLS allocations in glibc >=2.25, which
uses malloc (see https://github.com/google/sanitizers/issues/1409#issuecomment-1214244142).

Diff Detail

Event Timeline

thurston created this revision.Mar 27 2023, 4:55 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 27 2023, 4:55 PM
Herald added a subscriber: Enna1. · View Herald Transcript
thurston requested review of this revision.Mar 27 2023, 4:55 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 27 2023, 4:55 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
thurston abandoned this revision.Mar 27 2023, 4:57 PM

Accidentally created this revision instead of updating https://reviews.llvm.org/D147005