mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Merge pull request #12842 from Snuffleupagus/issue-12841
Improve handling of JPEG images without an EOI marker (issue 12841)
This commit is contained in:
commit
f85b8721d1
4 changed files with 8 additions and 1 deletions
|
@ -1063,7 +1063,7 @@ var JpegImage = (function JpegImageClosure() {
|
|||
offset = nextFileMarker.offset;
|
||||
break;
|
||||
}
|
||||
if (offset >= data.length - 1) {
|
||||
if (!nextFileMarker || offset >= data.length - 1) {
|
||||
warn(
|
||||
"JpegImage.parse - reached the end of the image data " +
|
||||
"without finding an EOI marker (0xFFD9)."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue