Turn critical DCHECKs to CHECKs in NGOffsetMapping
This patch turns some DCHECKs in |NGOffsetMapping| to CHECKs when it could lead to out-of-bounds access. |NGOffsetMapping| uses |std::prev| or |std::next| after checking the pointer by DCHECKs. If these DCHECKs fail, |std::prev| or |std::next| will read out-of-bounds. Turning them to CHECKs will turn such cases into crashes. Bug: 1156988 Change-Id: I574ffd38636861c7d7aa9985d4a43852aabcbbc4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2579933Reviewed-by:Kent Tamura <tkent@chromium.org> Commit-Queue: Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/master@{#835144}
Showing
Please register or sign in to comment