Commit 2409f7c
Harden JNI exception handling in Android AEAD breadcrumb path
Guard GetStringUTFChars with an ExceptionCheck after getMessage() and clear
any pending JNI exception before returning, so the fallback diagnostic path
never leaves a stray Java exception for the caller (which raises the managed
AuthenticationTagMismatchException next). No memory or gref leaks: only local
refs are created and all are released.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 2a59360 commit 2409f7c
1 file changed
Lines changed: 7 additions & 1 deletion
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
| 115 | + | |
115 | 116 | | |
116 | 117 | | |
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
120 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
121 | 127 | | |
122 | 128 | | |
123 | 129 | | |
| |||
0 commit comments