Make CFX_StockFontArray more robust.
authorLei Zhang <thestig@chromium.org>
Thu, 16 Apr 2015 23:42:51 +0000 (16:42 -0700)
committerLei Zhang <thestig@chromium.org>
Thu, 16 Apr 2015 23:42:51 +0000 (16:42 -0700)
commitee2fe42f9bf3ac6afc4f05f79629a3e34179a2b9
tree0049c6a523c1c18ee1d50a5355a929e242233111
parent5c357a5d3d873be6b0ab01d7bec82f79d0a09f0e
Make CFX_StockFontArray more robust.

- Check bounds when accessing array.
- Remove potential memory leak.
- Merge duplicate code.

R=tsepez@chromium.org

Review URL: https://codereview.chromium.org/1094763002
core/src/fpdfapi/fpdf_font/font_int.h
core/src/fpdfapi/fpdf_font/fpdf_font.cpp