mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-03 03:13:04 +03:00
Reduced number of bytes read in WMF header (#8964)
This commit is contained in:
commit
90f115cd33
|
@ -81,7 +81,7 @@ class WmfStubImageFile(ImageFile.StubImageFile):
|
|||
|
||||
def _open(self) -> None:
|
||||
# check placable header
|
||||
s = self.fp.read(80)
|
||||
s = self.fp.read(44)
|
||||
|
||||
if s.startswith(b"\xd7\xcd\xc6\x9a\x00\x00"):
|
||||
# placeable windows metafile
|
||||
|
|
Loading…
Reference in New Issue
Block a user