Skip to content

Commit 90f115c

Browse files
authored
Reduced number of bytes read in WMF header (#8964)
2 parents 086e05f + 4eb89f8 commit 90f115c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PIL/WmfImagePlugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class WmfStubImageFile(ImageFile.StubImageFile):
8181

8282
def _open(self) -> None:
8383
# check placable header
84-
s = self.fp.read(80)
84+
s = self.fp.read(44)
8585

8686
if s.startswith(b"\xd7\xcd\xc6\x9a\x00\x00"):
8787
# placeable windows metafile

0 commit comments

Comments
 (0)