This is an archive of the discontinued LLVM Phabricator instance.

[MSan] fix the types of RegSaveAreaPtrPtr and OverflowArgAreaPtrPtr
ClosedPublic

Authored by glider on Mar 15 2018, 8:00 AM.

Details

Summary

Despite their names, RegSaveAreaPtrPtr and OverflowArgAreaPtrPtr used to be i8* instead of i8**.
This is important, because these pointers are dereferenced twice (first in CreateLoad(), then in getShadowOriginPtr()), but for some reason MSan allowed this - most certainly because it was possible to optimize getShadowOriginPtr() away at compile time.

Diff Detail

Repository
rL LLVM

Event Timeline

glider created this revision.Mar 15 2018, 8:00 AM
eugenis accepted this revision.Mar 16 2018, 4:15 PM
This revision is now accepted and ready to land.Mar 16 2018, 4:15 PM
This revision was automatically updated to reflect the committed changes.