mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-08-21 16:50:34 +08:00
d7153b7abb
- Size LogEntry.filepath to PX4_MAX_FILEPATH instead of hardcoded 60 bytes - Add width specifier to sscanf calls to prevent buffer overflow - Move platform defines from .cpp to .h for reuse - Add static_assert to enforce scanf width < buffer size at compile time Co-authored-by: Cavan O'Horo <cavan.ohoro@gmail.com> Signed-off-by: Ramon Roche <mrpollo@gmail.com>