This is an archive of the discontinued LLVM Phabricator instance.

[asan] Fix an overflow with an Allocator constant
ClosedPublic

Authored by wang0109 on Jun 13 2016, 2:18 PM.

Details

Summary

In asan on Windows 64-bit, this is one of the broken things
that makes allocation fail. "UL" is 32-bit and shift by 40 will make
the value overflow and become 0.

Diff Detail

Repository
rL LLVM

Event Timeline

wang0109 updated this revision to Diff 60608.Jun 13 2016, 2:18 PM
wang0109 retitled this revision from to [asan] Fix an overflow with an Allocator constant.
wang0109 updated this object.
wang0109 added reviewers: etienneb, rnk.
wang0109 added a subscriber: llvm-commits.
etienneb accepted this revision.Jun 14 2016, 7:49 AM
etienneb edited edge metadata.

lgtm

landing...

This revision is now accepted and ready to land.Jun 14 2016, 7:49 AM
This revision was automatically updated to reflect the committed changes.