This is an archive of the discontinued LLVM Phabricator instance.

Add __sanitizer_get_allocation_bounds API and implementations
AbandonedPublic

Authored by thurston on Mar 28 2023, 9:51 AM.

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 28 2023, 9:51 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 28 2023, 9:51 AM
Herald added a subscriber: Enna1. · View Herald Transcript
thurston requested review of this revision.Mar 28 2023, 9:51 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 28 2023, 9:51 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript