summaryrefslogtreecommitdiff
path: root/fxjs
diff options
context:
space:
mode:
authornpm <npm@chromium.org>2016-10-04 10:15:55 -0700
committerCommit bot <commit-bot@chromium.org>2016-10-04 10:15:55 -0700
commit89f9ee3b8f3b4756f05ff48055f4bff7353201e2 (patch)
tree5f240641f202d041eef3424ed7db9e9492e49764 /fxjs
parent78c271dd9ee883f4e31e41a8adda8e615c84ad63 (diff)
downloadpdfium-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 'fxjs')
0 files changed, 0 insertions, 0 deletions