Merge to XFA: Make CFX_StockFontArray more robust.
authorLei Zhang <thestig@chromium.org>
Thu, 7 May 2015 20:05:44 +0000 (13:05 -0700)
committerLei Zhang <thestig@chromium.org>
Thu, 7 May 2015 20:05:44 +0000 (13:05 -0700)
commit2f2c1183e68ef4e9d5484bfeec00e19019454c84
tree5f794c38b616063aaaeddacd0474c6ee44be7e87
parent9c55287c168eb6a469fd59ad77e8a58b93d67649
Merge to XFA: 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

(cherry picked from commit ee2fe42f9bf3ac6afc4f05f79629a3e34179a2b9)

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