[heap] Fix out-of-bounds read in LiveObjectIterator::Next
We need to check whether advancing the iterator moved us beyong the end of the bitmap. This has not been flushed out as our inlined bitmap is still in valid memory. In practice this is not a problem because the value is never used as we are at the end of the bitmap. Asan rightfully complains when using an external bitmap though. BUG=chromium:651354 Change-Id: I8b141a467e9552f8ac2287dd62a725a14a289a37 Reviewed-on: https://chromium-review.googlesource.com/452497Reviewed-by: Ulan Degenbaev <ulan@chromium.org> Reviewed-by: Hannes Payer <hpayer@chromium.org> Commit-Queue: Michael Lippautz <mlippautz@chromium.org> Cr-Commit-Position: refs/heads/master@{#43696}
Showing
Please
register
or
sign in
to comment