Check use of unsafe stdio functions (sprintf(..)
, vsprintf(..)
, etc)
#80
Labels
Milestone
sprintf(..)
, vsprintf(..)
, etc)
#80
MotoROS2 uses quite a few of the functions in
stdio.h
which are involved in manipulating in-memory buffers, and potentially unsafe IO operations.Examples are:
printf(..)
,sprintf(..)
,snprintf(..)
,strcpy(..)
,strncpy(..)
, etc.The use of these functions should be audited and checked for any unsafe patterns that may have unintentionally ended up in MotoROS2. If needed, safer versions of these functions should be used.
A complicating factor might be that M+ does not always support the safer variants of these functions.
The text was updated successfully, but these errors were encountered: