mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-25 18:03:50 +00:00
fix #4957
This commit is contained in:
parent
ace07e7e3c
commit
ca646ebd40
@ -171,7 +171,7 @@ def load(file_handle: typing.IO[bytes]) -> TSerializable:
|
||||
data_length = b""
|
||||
while c.isdigit():
|
||||
data_length += c
|
||||
if len(data_length) > 9:
|
||||
if len(data_length) > 12:
|
||||
raise ValueError("not a tnetstring: absurdly large length prefix")
|
||||
c = file_handle.read(1)
|
||||
if c != b":":
|
||||
|
Loading…
Reference in New Issue
Block a user