mirrored from https://chromium.googlesource.com/webm/libvpx
-
Notifications
You must be signed in to change notification settings - Fork 339
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Motion vectors are now clamped in vp8_find_best_sub_pixel_step_iteratively, vp8_find_best_sub_pixel_step, vp8_find_best_half_pixel_step, vp8_full_search_sad, vp8_refining_search_sadx4 and vp8_refining_search_sad_c (the rtcd for other optimizations are redirects to vp8_refining_search_sadx4). The difference of valid motion vectors may still go beyond the range of the MVcount array, however, so additional checks are added to rd_update_mvcount() and update_mvcount(). Note the test source and settings (speed 1 and GOOD quality mode) come from the issue report; additional coverage is added for realtime. The realtime path does not trigger the error without the fix, but as it's similar to the rd path, the same clamp is done to be safe. Fixes: vp8/encoder/rdopt.c:1579:5: runtime error: index 17467 out of bounds for type 'unsigned int[2047]' Bug: oss-fuzz:69906 Change-Id: Ia8bd087cfe4475ab09ba711ed806fbcbaa72e552
- Loading branch information
Showing
6 changed files
with
118 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters