On 32-bit targets (including WASM), the base message pointer was aligned to 4 instead of 8, causing reads to 8-byte fields to fail, since TypedArray does not support unaligned reads. The pointer was 4-byte aligned because upb adds the size of its "internal" pointer before returning the `upb_Message*`. We should probably stop doing this, and instead have the MiniTable offsets reflect their full and true offset from the pointer returned by `malloc()`. PiperOrigin-RevId: 552486609pull/13675/head^2
parent
1cd9076541
commit
7bde72661c
1 changed files with 7 additions and 1 deletions
Loading…
Reference in new issue