summaryrefslogtreecommitdiff
path: root/fxjs/cjs_annot.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-07-18 00:56:29 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-07-18 00:56:29 +0000
commit89063ecda876e3be7df5935860235eb5f8199ded (patch)
treecdcad994bbe691e6073c45aef4603f8f5b40be24 /fxjs/cjs_annot.h
parent091c0c77fe0e590ecaea993fb0d9e7fb62c8150b (diff)
downloadpdfium-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 'fxjs/cjs_annot.h')
0 files changed, 0 insertions, 0 deletions