diff options
author | Nicolas Pena <npm@chromium.org> | 2017-05-24 13:40:46 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-05-24 17:53:20 +0000 |
commit | a38f7989beacdf0a73441e4096d9ce7a196b10d3 (patch) | |
tree | 1d8c7fb6300ac5e2a6d34696aed7f0b7f6f7fa0d /core/fpdfapi/page/cpdf_allstates.h | |
parent | e86d2f1acbd1e1d1ddae1a105b7c87f17b643f62 (diff) | |
download | pdfium-a38f7989beacdf0a73441e4096d9ce7a196b10d3.tar.xz |
Use CheckedNumeric in BiInterpolImpl
This CL splits up BiInterpolImpl into the three interpolations its made of. In
the interpolation, safe math is used, and a boolean keeps track of whether an
overflow has occurred. If it does, we consider the patch to be invalid and
immediately terminate the Draw method.
Bug: chromium:724885
Change-Id: I4944ee1d821d8dd46c04e6b145eabe19d2ad8a5a
Reviewed-on: https://pdfium-review.googlesource.com/5851
Commit-Queue: Nicolás Peña <npm@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fpdfapi/page/cpdf_allstates.h')
0 files changed, 0 insertions, 0 deletions