summaryrefslogtreecommitdiff
path: root/core/fpdfapi/font/cpdf_font.h
diff options
context:
space:
mode:
authornpm <npm@chromium.org>2016-10-04 13:00:37 -0700
committerCommit bot <commit-bot@chromium.org>2016-10-04 13:00:37 -0700
commit1c4b767e822a7537f2c6c19b42dddce840e033ee (patch)
tree80cc15996d0be9f757702e5fd5f4b1cc715593be /core/fpdfapi/font/cpdf_font.h
parentfb403875dd1bbf830d9325f10e6a5650db30c6fd (diff)
downloadpdfium-1c4b767e822a7537f2c6c19b42dddce840e033ee.tar.xz
Avoid crashing on CPDF_ToUnicodeMap::Load by using ValueOrDefault()
- Added private method to avoid duplicated code. - If the unicode calculation overflows, 0 is used instead of crashing. Review-Url: https://codereview.chromium.org/2392103002
Diffstat (limited to 'core/fpdfapi/font/cpdf_font.h')
0 files changed, 0 insertions, 0 deletions