Should we add compiler warnings to diag_sprintf & diag_vsprintf ?

Chris Holgate <[email protected]>
Newsgroups gmane.os.ecos.devel
Message-ID <[email protected]>
Hi folks,

I've just had to add support for diag_vsnprintf to diag.h as part of
writing some logging code.  We all know that sprintf, vsprintf and their
 evil unchecked spawn are the source of lots of buffer overflow bugs -
so while I'm prepping a patch for this change is it worth adding
compiler warning attributes to diag_sprintf and diag_vsprintf to help
'discourage' their use?

Chris.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.