CHECK that bitmaps from the renderer are N32 format in detection code
The detection code makes a COM SoftwareBitmap from an SkBitmap, and has a DCHECK to verify the bitmap is N32 format, but the mojom allows other formats. We add CHECKs to ensure that a malicious renderer can not produce an incorrectly sized Buffer. R=reillyg@chromium.org Bug: 1156854 Change-Id: Iecfddbf4512f69bb7102378379ff7129426c488a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2580027Reviewed-by:Reilly Grant <reillyg@chromium.org> Commit-Queue: danakj <danakj@chromium.org> Cr-Commit-Position: refs/heads/master@{#834971}
Showing
Please register or sign in to comment