mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 19:53:33 +08:00
board_identity: Fix UUID format function buffer overflow bug
- Previously, not having a proper boundary check caused overflows in the buffer (wrong memory access) - Moreoever, negative size values getting introduced to snprintf & strncat were also being truncated to unsigned value, hence causing overflow, so index check needed to be added before both functions - Fixed typo in board_common.h
This commit is contained in:
committed by
Daniel Agar
parent
facf01d69d
commit
f5215e8207
@@ -946,7 +946,7 @@ int board_get_mfguid_formated(char *format_buffer, int size); // DEPRICATED use
|
||||
int board_get_px4_guid(px4_guid_t guid);
|
||||
|
||||
/************************************************************************************
|
||||
* Name: board_get_mfguid_formated
|
||||
* Name: board_get_px4_guid_formated
|
||||
*
|
||||
* Description:
|
||||
* All boards either provide a way to retrieve a formatted string of the
|
||||
|
||||
Reference in New Issue
Block a user