This is an archive of the discontinued LLVM Phabricator instance.

asan: fix overflows in isSafeAccess
ClosedPublic

Authored by dvyukov on Mar 10 2015, 3:24 AM.

Details

Reviewers
nlopes
Summary

As pointed out in http://reviews.llvm.org/D7583
The current checks can cause overflows when object size/access offset cross Quintillion bytes.

Diff Detail

Event Timeline

dvyukov updated this revision to Diff 21558.Mar 10 2015, 3:24 AM
dvyukov retitled this revision from to asan: fix overflows in isSafeAccess.
dvyukov updated this object.
dvyukov edited the test plan for this revision. (Show Details)
dvyukov added a reviewer: nlopes.
dvyukov added a subscriber: Unknown Object (MLST).
nlopes accepted this revision.Mar 14 2015, 11:32 AM
nlopes edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Mar 14 2015, 11:32 AM

committed as 232358.