diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-08-07 17:55:39 +0000 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2018-08-07 17:55:39 +0000 |
commit | ace0c8cfa6ccc97e32e083b4d7ca9d026772c585 (patch) | |
tree | aa636f0f9868e1847505b3a795fc9af14921defe /third_party/libtiff/tif_predict.h | |
parent | abf9829bc4112e5d25e4d0e2f57341fac22daccd (diff) | |
download | pdfium-ace0c8cfa6ccc97e32e083b4d7ca9d026772c585.tar.xz |
Merge to M69: Bounds check lineSrc in JBig2_Image.cpp.
No matter how the dimensions might be determined, we know the
hard end of the source line, and can use it for a bounds check.
We expect the size is quantized to a multiple of m_stride, so
as long as each block operates within an m_stride, the initial
check should be sufficient.
TBR=thestig@chromium.org
Bug: 867501
Change-Id: Iaf9936557b856f3eb09fef522f3e6738aa4f38f0
Reviewed-on: https://pdfium-review.googlesource.com/39310
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
(cherry picked from commit 0562ff4f6e2ec555212d90f2f5b1751d5d576107)
Reviewed-on: https://pdfium-review.googlesource.com/39570
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'third_party/libtiff/tif_predict.h')
0 files changed, 0 insertions, 0 deletions