Derek Bailey
6dda43bbaa
Ensure embedded FlatBuffers binary schemas are 8-byte aligned ( #9425 )
...
In `src/idl_gen_cpp.cpp`, code generated by `flatc --bfbs-gen-embed` emits `static const uint8_t bfbsData[...] = { ... };`. Because `uint8_t` has 1-byte alignment, the array may be placed at an unaligned address in `.rodata`, triggering alignment traps under Clang UBSan on Arm when accessed via FlatBuffers root accessors.
Add `alignas(uint64_t)` to the generated `bfbsData` array declaration in `GenerateBinarySchema` so embedded binary schemas are 8-byte aligned across all architectures.
PiperOrigin-RevId: 1003962636
2026-10-21 13:37:51 -07:00
..
2025-09-23 21:19:33 -07:00
2025-09-23 21:50:27 -07:00
2026-02-04 13:05:08 +00:00
2025-09-23 21:50:27 -07:00
2026-01-20 16:06:07 -08:00
2025-09-23 21:50:27 -07:00
2025-09-23 21:50:27 -07:00
2025-09-23 21:50:27 -07:00
2026-03-18 22:54:46 -04:00
2025-09-23 21:50:27 -07:00
2025-12-03 04:37:06 +00:00
2025-09-23 21:19:33 -07:00
2025-12-19 10:42:57 -08:00
2025-12-03 04:37:06 +00:00
2025-12-03 04:37:06 +00:00
2026-02-04 15:15:05 +00:00
2025-09-23 21:19:33 -07:00
2025-12-03 04:37:06 +00:00
2023-01-25 09:05:48 -08:00
2026-10-21 13:37:51 -07:00
2023-01-25 09:05:48 -08:00
2026-02-04 23:13:32 +00:00
2023-01-25 09:05:48 -08:00
2026-05-24 21:13:42 -04:00
2023-01-25 09:05:48 -08:00
2026-03-18 22:01:23 -04:00
2023-04-28 13:40:38 -07:00
2026-01-20 16:06:07 -08:00
2023-01-25 09:05:48 -08:00
2025-12-03 04:37:06 +00:00
2026-01-20 16:06:07 -08:00
2023-01-25 09:05:48 -08:00
2025-12-03 04:37:06 +00:00
2023-01-25 09:05:48 -08:00
2026-01-20 16:06:07 -08:00
2026-01-20 16:06:07 -08:00
2023-05-26 11:00:33 -07:00
2025-12-03 04:37:06 +00:00
2023-01-25 09:05:48 -08:00
2025-12-03 04:37:06 +00:00
2023-01-25 09:05:48 -08:00
2026-04-17 16:50:03 -04:00
2023-01-25 09:05:48 -08:00
2026-03-18 22:01:23 -04:00
2023-01-25 09:05:48 -08:00
2026-05-06 04:39:53 +02:00
2023-01-25 09:05:48 -08:00
2025-12-03 04:37:06 +00:00
2023-01-31 09:35:34 -08:00
2026-03-18 22:01:23 -04:00
2023-01-25 09:05:48 -08:00
2024-06-18 16:02:57 -07:00
2026-04-02 08:03:03 +00:00
2024-06-18 16:02:57 -07:00
2026-04-02 10:14:27 +00:00
2025-09-23 21:19:33 -07:00