[PartitionAlloc] fix cookie tracking for large no-op reallocs
The new test case will trip an assert under debug builds prior to the patch: *cookie_ptr == kCookieValue[i] because a new cookie is not written, and the old location now is part of the space made available to the caller. Bug: 897585 Change-Id: I9cb0a0378bd692445580f7b8b796200154bc15c6 Reviewed-on: https://chromium-review.googlesource.com/c/1294724Reviewed-by:Kentaro Hara <haraken@chromium.org> Reviewed-by:
Chris Palmer <palmer@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org> Cr-Commit-Position: refs/heads/master@{#602042}
Showing
Please register or sign in to comment