This is an archive of the discontinued LLVM Phabricator instance.

[asan and libcxx] Add missing instrumentation in vector::insert
ClosedPublic

Authored by zaks.anna on Jun 30 2015, 7:58 PM.

Details

Summary

Ensures that the vector::insert's specialization for non-forward_iterators is instrumented with ASan.

Diff Detail

Event Timeline

zaks.anna updated this revision to Diff 28839.Jun 30 2015, 7:58 PM
zaks.anna retitled this revision from to [asan and libcxx] Add missing instrumentation in vector::insert.
zaks.anna updated this object.
zaks.anna edited the test plan for this revision. (Show Details)
zaks.anna added reviewers: mclow.lists, samsonov.
zaks.anna added subscribers: kcc, Unknown Object (MLST).
EricWF accepted this revision.Jun 30 2015, 8:09 PM
EricWF added a reviewer: EricWF.
EricWF added a subscriber: EricWF.

Thanks for the patch, it LGTM.

test/std/containers/sequences/vector/asan.pass.cpp
24
This revision is now accepted and ready to land.Jun 30 2015, 8:09 PM
mclow.lists accepted this revision.Jul 1 2015, 9:18 AM
mclow.lists edited edge metadata.

I can commit this (with changes to the test to use our test iterators) if you want.

include/vector
1913

This looks exactly right.

I can commit this (with changes to the test to use our test iterators) if you want.

That would be great!
Thanks.

@mclow.lists ping? It would be nice if this made it into 3.7.

EricWF closed this revision.Jul 18 2015, 11:22 AM

Committed as r242617. Thanks.