Preven OOB memory access in chrome_pdf::AlphaBlend().
commit8f07983fb62fb48fc8298b150e4548f92a374da1
authortsepez <tsepez@chromium.org>
Fri, 5 Sep 2014 05:42:28 +0000 (4 22:42 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 5 Sep 2014 05:44:07 +0000 (5 05:44 +0000)
tree846026a4dfbb29bfd195eb3ea67acdd8a7dffea4
parent37fac505ffd432f088abbc5056e7c72ca59ff017
Preven OOB memory access in chrome_pdf::AlphaBlend().

Similar to bug 398384, but perform the same bounds check we introduced to
chrome_pdf::CopyImage() in the chrome_pdf::AlphaBlend() function.

Also change the return value from bool to void, since AlphaBlend() always
returns true, and no-one was checking the return value anyways.

BUG=384891

Review URL: https://codereview.chromium.org/544863002

Cr-Commit-Position: refs/heads/master@{#293454}
pdf/draw_utils.cc
pdf/draw_utils.h