anchao commented on issue #21467:
URL: https://github.com/apache/nuttx/issues/21467#issuecomment-6648471987

   @casaroli @xiaoxiang781216 
   I'd also like to share a slightly different view on the Safety part. For a 
foundational function like printf, making it resilient against every kind of 
malformed argument would require adding a lot of defensive/security-redundant 
code in all the boundary cases. For IoT devices that care about flash size and 
code footprint, that's kind of a nightmare. I think if a system crash or hang 
is caused by the user passing wrong arguments, then the developer who wrote 
that code should bear the consequences — rather than pushing that cost onto 
every device that links in printf.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to