mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-21 22:58:24 +00:00
hyper-h2: catch IndexError as well
This commit is contained in:
parent
b41416b729
commit
cf32b18d2f
@ -139,7 +139,7 @@ class Http2Connection(HttpConnection):
|
||||
try:
|
||||
try:
|
||||
events = self.h2_conn.receive_data(event.data)
|
||||
except ValueError as e: # pragma: no cover
|
||||
except (ValueError, IndexError) as e: # pragma: no cover
|
||||
# this should never raise a ValueError, but we triggered one while fuzzing:
|
||||
# https://github.com/python-hyper/hyper-h2/issues/1231
|
||||
# this stays here as defense-in-depth.
|
||||
|
Loading…
Reference in New Issue
Block a user