mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-29 02:57:19 +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:
|
||||||
try:
|
try:
|
||||||
events = self.h2_conn.receive_data(event.data)
|
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:
|
# this should never raise a ValueError, but we triggered one while fuzzing:
|
||||||
# https://github.com/python-hyper/hyper-h2/issues/1231
|
# https://github.com/python-hyper/hyper-h2/issues/1231
|
||||||
# this stays here as defense-in-depth.
|
# this stays here as defense-in-depth.
|
||||||
|
Loading…
Reference in New Issue
Block a user