diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-08-01 19:27:11 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-08-01 19:27:11 +0000 |
commit | 0562ff4f6e2ec555212d90f2f5b1751d5d576107 (patch) | |
tree | 359d1c40b4884a7794d7eb6c483aa0347378a144 /testing/resources | |
parent | d7e99cb5b8dc91fc0675fbee7a84e04eac758f26 (diff) | |
download | pdfium-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/resources')
-rw-r--r-- | testing/resources/pixel/bug_867501.pdf | bin | 0 -> 771 bytes |
-rw-r--r-- | testing/resources/pixel/bug_867501_expected.pdf.0.png | bin | 0 -> 1043 bytes |
2 files changed, 0 insertions, 0 deletions
diff --git a/testing/resources/pixel/bug_867501.pdf b/testing/resources/pixel/bug_867501.pdf Binary files differnew file mode 100644 index 0000000000..0b517b9c99 --- /dev/null +++ b/testing/resources/pixel/bug_867501.pdf diff --git a/testing/resources/pixel/bug_867501_expected.pdf.0.png b/testing/resources/pixel/bug_867501_expected.pdf.0.png Binary files differnew file mode 100644 index 0000000000..bd6f8c1cbb --- /dev/null +++ b/testing/resources/pixel/bug_867501_expected.pdf.0.png |