diff options
author | Lei Zhang <thestig@chromium.org> | 2018-07-18 00:56:29 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-07-18 00:56:29 +0000 |
commit | 89063ecda876e3be7df5935860235eb5f8199ded (patch) | |
tree | cdcad994bbe691e6073c45aef4603f8f5b40be24 /core/fpdfapi/render/cpdf_imagerenderer.h | |
parent | 091c0c77fe0e590ecaea993fb0d9e7fb62c8150b (diff) | |
download | pdfium-89063ecda876e3be7df5935860235eb5f8199ded.tar.xz |
Improve image size validation in CPDF_ScaledRenderBuffer.
In CPDF_ScaledRenderBuffer::Initialize(), use the existing
CFX_DIBitmap::CalculatePitchAndSize() function to figure out the pitch
and size. Unlike the existing code, CalculatePitchAndSize() does a
better job of checking for integer overflows.
BUG=pdfium:1123
Change-Id: Ic8fe7226bc56fed0456486d88e02a7af2928bc94
Reviewed-on: https://pdfium-review.googlesource.com/38010
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fpdfapi/render/cpdf_imagerenderer.h')
0 files changed, 0 insertions, 0 deletions