This is an archive of the discontinued LLVM Phabricator instance.

ASan: add backtrace_symbols test and clarify code is correct
ClosedPublic

Authored by thurston on May 12 2023, 5:01 PM.

Details

Summary

This is another patch for https://github.com/google/sanitizers/issues/321
(sanitizer interceptors can write to freed memory, causing corruption),
in this case for backtrace_symbols.

backtrace_symbols is already correct, hence this patch removes the
TODO note. Additionally, this patch adds a test case for it.

Diff Detail

Event Timeline

thurston created this revision.May 12 2023, 5:01 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 12 2023, 5:01 PM
Herald added a subscriber: Enna1. · View Herald Transcript
thurston requested review of this revision.May 12 2023, 5:01 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 12 2023, 5:01 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
vitalybuka accepted this revision.May 12 2023, 10:17 PM
This revision is now accepted and ready to land.May 12 2023, 10:17 PM