Commit 16a74ad
committed
http2: guard against null stream/req in OnStreamAfterReqFinished
When a stream is destroyed while a synchronous write is in flight
from StreamPipe::ProcessData, ReportWritesToJSStreamListener::
OnStreamAfterReqFinished can be called with a null stream_ or a
null req_wrap, causing a null pointer dereference. This race
becomes more likely with larger HTTP/2 windows (e.g., #38426)
because more data is in flight during session teardown.
Add early-return guards for both cases to prevent the crash.
Refs: #38426
Refs: #56825
Signed-off-by: Matteo Collina <hello@matteocollina.com>1 parent d0c68ba commit 16a74ad
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
752 | 752 | | |
753 | 753 | | |
754 | 754 | | |
| 755 | + | |
| 756 | + | |
755 | 757 | | |
756 | 758 | | |
757 | 759 | | |
| |||
0 commit comments