diff options
author | Lei Zhang <thestig@chromium.org> | 2017-11-03 18:37:35 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-11-03 18:37:35 +0000 |
commit | ff63663ce08c31efa416bc797c2d3ef96759f780 (patch) | |
tree | 3df06355d62efac59b2123d2b4bb5abd7c536022 /core/fpdfapi/edit/cpdf_creator.cpp | |
parent | d7999f6a794207842544214d015af6f06322157c (diff) | |
download | pdfium-ff63663ce08c31efa416bc797c2d3ef96759f780.tar.xz |
The component count in CPDF_IndexedCS should be unsigned.
Since the source of the component count is unsigned. Adjust related
variables to also be unsigned. In CPDF_IndexedCS::GetRGB(), switch
integer overflow code to use FX_SAFE_SIZE_T, and write to the out params
correctly on failure.
Change-Id: If7405b4c5e9022ba1992fff2be2bcc1a7826adf4
Reviewed-on: https://pdfium-review.googlesource.com/17770
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fpdfapi/edit/cpdf_creator.cpp')
0 files changed, 0 insertions, 0 deletions