summaryrefslogtreecommitdiff
path: root/samples/pdfium_test.cc
diff options
context:
space:
mode:
authorJun Fang <jun_fang@foxitsoftware.com>2014-09-15 21:50:59 -0700
committerJun Fang <jun_fang@foxitsoftware.com>2014-09-15 21:50:59 -0700
commit4481496892d3d9555556df54edd6f98e9f63645e (patch)
tree042acb7e85bd22461b39fe0828026bd2b68c6457 /samples/pdfium_test.cc
parent4cce875b219ea772da8d528287b0e6431dcda48e (diff)
downloadpdfium-4481496892d3d9555556df54edd6f98e9f63645e.tar.xz
Add a boundary check before accessing the table of 'Index to Location'
Before this fix, only |gindex < face->num_locations| is checked. However, the pointer, p, will be moved to next location in the first FT_NEXT_ULONG or FT_NEXT_USHORT. It may cause a crashier. So a boundary check is needed before the second FT_NEXT_ULONG or FT_NEXT_USHORT. BUG=412457 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/571833002
Diffstat (limited to 'samples/pdfium_test.cc')
0 files changed, 0 insertions, 0 deletions