This is an archive of the discontinued LLVM Phabricator instance.

Make vector asan annotations exception-friendly
ClosedPublic

Authored by kcc on Jun 17 2014, 1:38 AM.

Details

Reviewers
mclow.lists
Summary

Fix vector asan annotations with RAII.
Add a test.
Also, remove one dead function.

Diff Detail

Event Timeline

kcc updated this revision to Diff 10479.Jun 17 2014, 1:38 AM
kcc retitled this revision from to Make vector asan annotations exception-friendly.
kcc updated this object.
kcc edited the test plan for this revision. (Show Details)
kcc added a reviewer: mclow.lists.
kcc added a subscriber: Unknown Object (MLST).
mclow.lists accepted this revision.Sep 2 2014, 8:11 AM
mclow.lists edited edge metadata.

This looks good to me.
Sorry for the long delay.

test/containers/sequences/vector/asan_throw.pass.cc
84

I'm pretty sure that multi-element insertions do not have any exception guarantees.

This revision is now accepted and ready to land.Sep 2 2014, 8:11 AM
kcc closed this revision.Sep 2 2014, 4:53 PM

Committed: r216995.

BTW, asan annotations in libc++ are already finding bugs in Chromium:
https://code.google.com/p/chromium/issues/detail?id=409051