Merge to XFA: Add PositionIsInBounds to CPDF_StreamParser
authorDan Sinclair <dsinclair@chromium.org>
Wed, 28 Oct 2015 17:05:52 +0000 (13:05 -0400)
committerDan Sinclair <dsinclair@chromium.org>
Wed, 28 Oct 2015 17:05:52 +0000 (13:05 -0400)
commit90c90059131c0412ebefddb6a97084c4776a3c4e
tree25a75672be2ce7b7bceb377ef04624ea5f149229
parentaad3828aea84b504f98ddc94a11d88907f3144d9
Merge to XFA: Add PositionIsInBounds to CPDF_StreamParser

This Cl moves all of the m_Size <= m_Pos and m_Pos >= m_Size checks to an
PositionIsInBounds() helper.

TBR=tsepez@chromium.org

Review URL: https://codereview.chromium.org/1412793008 .

(cherry picked from commit b9d06fb2186d7002d6231d1805bcf97fc60144c5)

Review URL: https://codereview.chromium.org/1414163007 .
core/src/fpdfapi/fpdf_page/fpdf_page_parser_old.cpp
core/src/fpdfapi/fpdf_page/pageint.h