You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we need to use heap_caps_aligned_calloc and request 8-byte alignment, since alignof(cam_frame_t) is 8 bytes.
(The code "works" as is, but would trigger UBSAN if it was enabled (-fsanitize=undefined) and is also resulting in the unaligned pointer error on Rust side, since the pointer returned by heap_caps_calloc may not meet the alignment requirements.)
The text was updated successfully, but these errors were encountered:
From the discussion in esp-rs/esp-idf-sys#278 and esp-rs/rust#195:
In this line:
esp32-camera/driver/cam_hal.c
Line 268 in dba8da9
we need to use
heap_caps_aligned_calloc
and request 8-byte alignment, sincealignof(cam_frame_t)
is 8 bytes.(The code "works" as is, but would trigger UBSAN if it was enabled (
-fsanitize=undefined
) and is also resulting in the unaligned pointer error on Rust side, since the pointer returned by heap_caps_calloc may not meet the alignment requirements.)The text was updated successfully, but these errors were encountered: