
Accessing an invalid iterator can sometimes be a security issue and these checks are cheap, so upgrade to CHECKs. For this CL instances were located with a weggli query of `DCHECK(_ != _.end());` and some filtering of paths. This CL was uploaded by git cl split. R=tbarzic@chromium.org Bug: 351745839 Change-Id: I49ce7351c56fb8248979e3474989ff33dbc01a5c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5685182 Auto-Submit: Alex Gough <ajgo@chromium.org> Commit-Queue: Alex Gough <ajgo@chromium.org> Reviewed-by: Toni Barzic <tbarzic@chromium.org> Cr-Commit-Position: refs/heads/main@{#1324632}