Merge pull request #17303 from Snuffleupagus/issue-17302
Throw a `JpegError` when a JPEG image has no frame data (issue 17302)
This commit is contained in:
commit
086a5921dc
@ -1073,6 +1073,9 @@ class JpegImage {
|
||||
offset += 2;
|
||||
}
|
||||
|
||||
if (!frame) {
|
||||
throw new JpegError("JpegImage.parse - no frame data found.");
|
||||
}
|
||||
this.width = frame.samplesPerLine;
|
||||
this.height = frame.scanLines;
|
||||
this.jfif = jfif;
|
||||
|
Loading…
x
Reference in New Issue
Block a user