diff options
author | npm <npm@chromium.org> | 2016-10-04 10:15:55 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-10-04 10:15:55 -0700 |
commit | 89f9ee3b8f3b4756f05ff48055f4bff7353201e2 (patch) | |
tree | 5f240641f202d041eef3424ed7db9e9492e49764 /fpdfsdk/fpdf_flatten.cpp | |
parent | 78c271dd9ee883f4e31e41a8adda8e615c84ad63 (diff) | |
download | pdfium-89f9ee3b8f3b4756f05ff48055f4bff7353201e2.tar.xz |
Use FX_SAFE_UINT32 on CPDF_ToUnicodeMap::Load
m_Map maps to unsigned integer, but m_MultiCharBuf.GetLength() returns
an integer. There will be integer overflow if the length is big, and
UBSAN will complain. Thus, using FX_SAFE_UINT32. Replacing with uint32
would work as well: the point is to consider the length as uint instead
of int.
BUG=chromium:652232
Review-Url: https://codereview.chromium.org/2393573002
Diffstat (limited to 'fpdfsdk/fpdf_flatten.cpp')
0 files changed, 0 insertions, 0 deletions