This repository was archived by the owner on May 8, 2026. It is now read-only.
Commit 405f3a4
authored
Fix crash in Quiche when calling isClosed on freed connections (#798)
Motivation:
When QuicheQuicConnection is freed, it sets the connection reference to
-1. Unfortunately, it's possible to then inspect the native closed state
of this connection, which will crash in Quiche.
Modification:
Change the `assert connection != -1` to a real conditional in
`isClosed`, to avoid calling into Quiche on freed connections.
Result:
This fixes a JVM crash bug with our QUIC codec.1 parent 5d0ea1c commit 405f3a4
1 file changed
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| |||
216 | 217 | | |
217 | 218 | | |
218 | 219 | | |
219 | | - | |
220 | | - | |
| 220 | + | |
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
| |||
0 commit comments