DescriptionAvoid OOB memcpy in chrome_pdf::CopyImage.
This is a re-work of palmer's patch at https://codereview.chromium.org/515023002/ which has more context, but comes down to stricter bounds checking.
We also correct an arithmetic bug when copying the image behind a control that is positioned before the origin of the image.
BUG=398384
Committed: https://crrev.com/d734d197bb5462a65c37b17594a8c8d07dd79bc1
Cr-Commit-Position: refs/heads/master@{#293213}
Patch Set 1 #Patch Set 2 : Fix repaint issue. #Patch Set 3 : Fix underlying math bug. #
Total comments: 1
Patch Set 4 : Don't muck with public API. #Patch Set 5 : Rename function for clarity. #Messages
Total messages: 17 (2 generated)
|