Reduced number of bytes read in WMF header (#8964)

This commit is contained in:
Hugo van Kemenade 2025-05-27 17:17:15 +03:00 committed by GitHub
commit 90f115cd33
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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