Merge to XFA: 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 21:15:47 +0000 (14:15 -0700)
commitb739aab3e0345afc22c325ed62e226df6b1e3965
treedc4a6e796ecd4d88d69ba21073d589a983269931
parent441932f7f17435a4385a4ca0a384b9e763ddb3bc
Merge to XFA: 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