pdfium/testing/resources/bug_1591.pdf
Lei Zhang 23963509e2 Ignore inline images without EI operators
If content stream parsing is handling the BI operator and it does not
find an EI operator before reaching the end of the stream, then the
inline image is invalid and should not be displayed.

- Add a pixel test for this to demonstrate this corner case.
- Fix bug_1591.in so it has enough image data. The existing file did not
  take the image pitch into account and was reading "\nEI" as part of
  the image data.
- Temporarily suppress bug_1236805.in pixel test, which uses inline
  images and is very sensitive to these changes.

Bug: 412524377
Change-Id: Icaa7089fb14f0e74c613f7f1461f0d1ead19d656
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/130930
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
2025-04-22 14:28:27 -07:00

1.3 KiB