Repository navigation
Commit 86a3c0f
committed
Motivation:
A double DeleteLocalRef on the same local reference is present in both the OpenSSL and BoringSSL cert-verify callbacks in sslcontext.c. The NETTY_JNI_UTIL_DELETE_LOCAL macro does not null out the pointer after deleting
, so a second delete on the same stale handle is real UB per the JNI spec — it can corrupt the local-ref table and crash later in an unrelated JNI call.
This regression was introduces by 990751e
Modifications:
Remove deletion of local ref when its already done
Result:
No more UB1 parent 3bf8d04 commit 86a3c0f
1 file changed
Lines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1637 | 1637 | | |
1638 | 1638 | | |
1639 | 1639 | | |
1640 | | - | |
1641 | | - | |
1642 | 1640 | | |
1643 | 1641 | | |
1644 | 1642 | | |
| |||
1769 | 1767 | | |
1770 | 1768 | | |
1771 | 1769 | | |
1772 | | - | |
1773 | | - | |
1774 | 1770 | | |
1775 | 1771 | | |
1776 | 1772 | | |
| |||
0 commit comments