vaapi/JEA: Assert encoded/output size validity.
This CL changes a couple of DCHECKs to CHECKs as a follow-up to CL:2554180. The reasoning is from the guideline in [1]: Use CHECK() if the consequence of a failed assertion would be a security vulnerability, where crashing the browser is preferable. The CHECKs should not be triggered, but at least one of them is not trivial to reason why from the existing validation. [1] https://chromium.googlesource.com/chromium/src/+/master/styleguide/c++/c++.md#check_dcheck_and-notreached Bug: b:171340559 Test: None Change-Id: I3e35b8f310f76bb74cde515e776b9ae00134df93 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2566722 Auto-Submit: Andres Calderon Jaramillo <andrescj@chromium.org> Reviewed-by:Wei Lee <wtlee@chromium.org> Commit-Queue: Andres Calderon Jaramillo <andrescj@chromium.org> Cr-Commit-Position: refs/heads/master@{#832226}
Showing
Please register or sign in to comment