summaryrefslogtreecommitdiff
path: root/testing/test_support.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-08-01 19:27:11 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-08-01 19:27:11 +0000
commit0562ff4f6e2ec555212d90f2f5b1751d5d576107 (patch)
tree359d1c40b4884a7794d7eb6c483aa0347378a144 /testing/test_support.cpp
parentd7e99cb5b8dc91fc0675fbee7a84e04eac758f26 (diff)
downloadpdfium-0562ff4f6e2ec555212d90f2f5b1751d5d576107.tar.xz
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. 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>
Diffstat (limited to 'testing/test_support.cpp')
0 files changed, 0 insertions, 0 deletions