Restrict index not be greater than row_size in TIFF_PredictLine
authorBo Xu <bo_xu@foxitsoftware.com>
Wed, 27 Aug 2014 23:01:41 +0000 (16:01 -0700)
committerBo Xu <bo_xu@foxitsoftware.com>
Wed, 27 Aug 2014 23:01:41 +0000 (16:01 -0700)
commitfdcc8744f8f7d807bf0dbc761cdc8d6a6e0798cb
treed2393aaf980ab24d1093be27dddf4f262c120458
parent405478d3870693fbaf8f17758a760abfd276b2ee
Restrict index not be greater than row_size in TIFF_PredictLine

There is not strict way to limit invalid value of |Colors| from dictionary. We can make sure |index| does not go out of boundary of row_size.

BUG=407614
R=tsepez@chromium.org

Review URL: https://codereview.chromium.org/509993003
core/src/fxcodec/codec/fx_codec_flate.cpp