summaryrefslogtreecommitdiff
path: root/core/fpdfapi/page/cpdf_textstate.cpp
diff options
context:
space:
mode:
authorRyan Harrison <rharrison@chromium.org>2018-06-21 18:29:44 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-06-21 18:29:44 +0000
commitd52a0afaa3e4374dee469e41db4389bf9c61c4a9 (patch)
tree9bf0ea17ca09ee83462665bea96f9afe1a2cbab4 /core/fpdfapi/page/cpdf_textstate.cpp
parent3d8131535e6b127c7ededdbd2e76662688997272 (diff)
downloadpdfium-d52a0afaa3e4374dee469e41db4389bf9c61c4a9.tar.xz
Use the length of calculated string instead of source
In this function a string is converted to UTF8, if there are non-printing characters in the original string, the generated string will be shorter. Thus using the original string length for iteration range will cause an OOB read. BUG=chromium:854623 Change-Id: I338005476c3de529709f3eae6892d27a6c7f2263 Reviewed-on: https://pdfium-review.googlesource.com/35810 Commit-Queue: Ryan Harrison <rharrison@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fpdfapi/page/cpdf_textstate.cpp')
0 files changed, 0 insertions, 0 deletions