Fix a bug that occurs when an object has the same object number with the root object
authorJUN FANG <jun_fang@foxitsoftware.com>
Wed, 17 Dec 2014 21:58:56 +0000 (13:58 -0800)
committerJUN FANG <jun_fang@foxitsoftware.com>
Wed, 17 Dec 2014 21:58:56 +0000 (13:58 -0800)
commitdba5bfd174589ad08c4231b039297b59fa2ccc3b
tree89bfb44bb54574587e95ecc5c67ddda3207f276c
parent7be67b2e4f496cb638b365264ce835e3b23a555e
Fix a bug that occurs when an object has the same object number with the root object

Before this fix, the root will be released when an indirect object has the
same object number with the root. However, the root object is loaded when
the trailer is parsed. It shall not be updated or replaced anymore.

BUG=425040
R=tsepez@chromium.org

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