We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 313969c commit 7341e70Copy full SHA for 7341e70
1 file changed
src/PIL/PcxImagePlugin.py
@@ -54,7 +54,7 @@ def _open(self) -> None:
54
# header
55
assert self.fp is not None
56
57
- s = self.fp.read(128)
+ s = self.fp.read(68)
58
if not _accept(s):
59
msg = "not a PCX file"
60
raise SyntaxError(msg)
@@ -66,7 +66,7 @@ def _open(self) -> None:
66
67
logger.debug("BBox: %s %s %s %s", *bbox)
68
69
- offset = self.fp.tell()
+ offset = self.fp.tell() + 60
70
71
# format
72
version = s[1]
0 commit comments