Commit 300aa78
Compare only the bytes actually read from each stream instead of the
entire 8192-byte buffer in contentsEquals(). When the final chunk is
smaller than the buffer, stale bytes from the previous iteration could
cause a false mismatch, preventing the native library from loading.
Uses a byte-by-byte loop instead of Arrays.equals() to maintain JDK 8
compatibility.
Fixes #317
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c20d88f commit 300aa78
1 file changed
Lines changed: 4 additions & 3 deletions
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
| |||
158 | 157 | | |
159 | 158 | | |
160 | 159 | | |
161 | | - | |
162 | | - | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
163 | 164 | | |
164 | 165 | | |
165 | 166 | | |
| |||
0 commit comments