Commit 2bfdedd
committed
fix: Use uint64_t for RustBuffer fields to fix 32-bit ARM ABI
RustBuffer must use uint64_t (not size_t) for capacity/len fields
to match UniFFI's C ABI on all platforms. Using size_t causes
stack corruption on 32-bit ARM (armeabi-v7a) where size_t is 4 bytes
but Rust expects 8-byte u64.
Fixes crash in constructor marshalling on Amazon Fire TV.
References:
- https://mozilla.github.io/uniffi-rs/0.27/internals/api/uniffi/struct.RustBuffer.html
- mozilla/uniffi-rs#26811 parent 0360155 commit 2bfdedd
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
| 14 | + | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
0 commit comments