media/gpu/test: Fix video decoder tests reading out-of-bounds data from video.
This CL changes the video_decode_accelerator_(perf_)tests to not read data beyond the end of the test video file, by adding proper bounds checking. TEST=./video_decode_accelerator_tests \ vda_sanity-vp90_2_17_show_existing_frame_20190109.vp9 BUG=None Change-Id: I486eb6eb89fd13d9985ee518178b65dadf158e64 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1775944Reviewed-by:Hirokazu Honda <hiroh@chromium.org> Commit-Queue: Hirokazu Honda <hiroh@chromium.org> Cr-Commit-Position: refs/heads/master@{#693681}
Showing
Please register or sign in to comment