Add PositionIsInBounds to CPDF_StreamParser
authorDan Sinclair <dsinclair@chromium.org>
Wed, 28 Oct 2015 16:57:00 +0000 (12:57 -0400)
committerDan Sinclair <dsinclair@chromium.org>
Wed, 28 Oct 2015 16:57:00 +0000 (12:57 -0400)
commitb9d06fb2186d7002d6231d1805bcf97fc60144c5
tree5f267e5000316f144bb1607ab1dc41cdda44f2db
parente3e5675bcdd26b8df7286e10a42d585df6d2321d
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.

R=tsepez@chromium.org

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