This is an archive of the discontinued LLVM Phabricator instance.

[asan] Update a vector's storage annotation during destruction.
ClosedPublic

Authored by bobsayshilol on Jul 31 2018, 1:32 PM.

Details

Summary

This allows a user replaced operator delete to modify or reuse returned memory in the case where the size and capacity of a vector do not match upon destruction and hence leave a portion of the memory poisoned.
This consequently also balances annotate_delete() calls with those of annotate_new().

Diff Detail

Event Timeline

bobsayshilol created this revision.Jul 31 2018, 1:32 PM
mclow.lists accepted this revision.Jul 31 2018, 6:54 PM

I'm OK with this.

This revision is now accepted and ready to land.Jul 31 2018, 6:54 PM

Thanks! I don't have write access to svn so I can't commit the patch myself, but assuming that I've read the docs correctly if anyone is able to take it I'd be grateful.

Pinging this as it's been "Ready to Land" for a while and I want to check that that's not because I've forgotten to do something?

mclow.lists closed this revision.Sep 7 2018, 8:50 AM

landed as revision 341671.