Fix suggested by @mclow.lists on D8109. Store the size of the un-poisoned vector upon construction instead of calculating it later.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Seems fine, but is it possible to add a test to
test/std/containers/sequences/vector/asan_throw.pass.cc
that will fail w/o this fix?
Comment Actions
Added a test case but I don't think it should be committed. It only fails because of an assertion in __sanitizer_annotate_contiguous_container.
Comment Actions
Assuming the test fails (or asan asserts) w/o the fix and the test passes w/ the fix -- looks great.