Revert "Revert "Redo range check in CPDF_SampledFunc::v_Call().""
authorTom Sepez <tsepez@chromium.org>
Wed, 1 Jul 2015 23:14:29 +0000 (16:14 -0700)
committerTom Sepez <tsepez@chromium.org>
Wed, 1 Jul 2015 23:14:29 +0000 (16:14 -0700)
commit0b0f2130e403aaa558a04ffa664e6f4f0f38d1b1
tree0a1961ed42939add5824cb88101a8e26d426b0db
parentae195a4242a81899708eb58e109fd0d1a9cbbeeb
Revert "Revert "Redo range check in CPDF_SampledFunc::v_Call().""

This reverts commit 327080bacabb3d90094144e66ae57037d4a8d8e6.
This re-lands the patch, but removes the tests which would require
512MB buffers to be reliably allocatable on small bots. It
also adds
small fixes accumulated while diagnosing it.

R=sanqingsong@gmail.com

Review URL: https://codereview.chromium.org/1214403002.
core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp
core/src/fpdfapi/fpdf_page/fpdf_page_func.cpp