Bounds check in CFX_Font::LoadGlyphPath().
authorTom Sepez <tsepez@chromium.org>
Fri, 22 Aug 2014 23:07:58 +0000 (16:07 -0700)
committerTom Sepez <tsepez@chromium.org>
Fri, 22 Aug 2014 23:07:58 +0000 (16:07 -0700)
commit02132dcdf97674c223d9a3566c89df9f57029d5c
treede17985199667f0150098e000b546da6c8069c3a
parent48f26c5a67a321c61649405c1e241d4fc480cbb3
Bounds check in CFX_Font::LoadGlyphPath().

Add a check to CFX_Font::LoadGlyphPath() similar to the one that exists
in CFX_FaceCache::RenderGlyph().

Also replace some scattered magic numbers in the file with constants,
and make arrays not used outside this file be statically scoped.

BUG=406144
R=jun_fang@foxitsoftware.com

Review URL: https://codereview.chromium.org/497863002
core/src/fxge/ge/fx_ge_text.cpp