This is an archive of the discontinued LLVM Phabricator instance.

[sanitizer] Fix Fuchsia ReadBinaryName not to crash when uninitialized
ClosedPublic

Authored by mcgrathr on May 1 2018, 6:35 PM.

Details

Summary

If the sanitizer runtime is loaded in a binary that doesn't really
support it, then __sanitizer_startup_hook will never have been
called to initialize StoredArgv. This case can't be supported, but
its failure mode shouldn't be to crash in sanitizer_common internals.

Diff Detail

Repository
rL LLVM

Event Timeline

mcgrathr created this revision.May 1 2018, 6:35 PM
cryptoad accepted this revision.May 1 2018, 6:46 PM
This revision is now accepted and ready to land.May 1 2018, 6:46 PM
This revision was automatically updated to reflect the committed changes.