diff options
author | Lei Zhang <thestig@chromium.org> | 2017-12-05 20:26:33 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-12-05 20:26:33 +0000 |
commit | 099fc90d25059f19919471301f459949c566846f (patch) | |
tree | 581ffe03269c3192d1f8f55a803562bc96221d50 /core/fxge/dib/cstretchengine.cpp | |
parent | 12ec6760afd92b63d185854008a55762fe39f866 (diff) | |
download | pdfium-099fc90d25059f19919471301f459949c566846f.tar.xz |
Avoid integer overflows in CPDF_FixedMatrix::Transform().
Use floating point math and saturated_cast to calculate the transform.
Refactor CFX_BilinearMatrix::Transform() to share common code, instead
of using integer math and CheckedNumerics.
BUG=chromium:791048
Change-Id: Ib3812b3b3b9373a8eb3b1dde12cb28d424e0bb3e
Reviewed-on: https://pdfium-review.googlesource.com/20390
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fxge/dib/cstretchengine.cpp')
0 files changed, 0 insertions, 0 deletions