Fix a stack overflow in CPDF_Parser::LoadCrossRefV5
authorJUN FANG <jun_fang@foxitsoftware.com>
Fri, 10 Apr 2015 20:45:43 +0000 (13:45 -0700)
committerJUN FANG <jun_fang@foxitsoftware.com>
Fri, 10 Apr 2015 20:45:43 +0000 (13:45 -0700)
commit1569728e9f5a60b033e530ee1d4cd99e467649da
tree516d4e5625d98ddd6493fe416810dae54cf1cc1a
parente45a2e4ff91a672d555951963e329cf224d486d6
Fix a stack overflow in CPDF_Parser::LoadCrossRefV5

A stack overflow was triggered by checked_cast due to
invalid index in pdf files like 'Index[45 -1661]'.

BUG=473400
R=tsepez@chromium.org

Review URL: https://codereview.chromium.org/1054303005
core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp