From 0562ff4f6e2ec555212d90f2f5b1751d5d576107 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Wed, 1 Aug 2018 19:27:11 +0000 Subject: 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 Commit-Queue: Tom Sepez --- testing/resources/pixel/bug_867501.pdf | Bin 0 -> 771 bytes testing/resources/pixel/bug_867501_expected.pdf.0.png | Bin 0 -> 1043 bytes 2 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 testing/resources/pixel/bug_867501.pdf create mode 100644 testing/resources/pixel/bug_867501_expected.pdf.0.png (limited to 'testing') diff --git a/testing/resources/pixel/bug_867501.pdf b/testing/resources/pixel/bug_867501.pdf new file mode 100644 index 0000000000..0b517b9c99 Binary files /dev/null and b/testing/resources/pixel/bug_867501.pdf differ diff --git a/testing/resources/pixel/bug_867501_expected.pdf.0.png b/testing/resources/pixel/bug_867501_expected.pdf.0.png new file mode 100644 index 0000000000..bd6f8c1cbb Binary files /dev/null and b/testing/resources/pixel/bug_867501_expected.pdf.0.png differ -- cgit v1.2.3