On 5 Oct 2011, at 06:00, Phil Pennock wrote:
>> OpenBSD also suggests:
>>
>> strcpy() is almost always misused, please use strlcpy()
>> sprintf() is often misused, please use snprintf()
>> strcat() is almost always misused, please use strlcat()
>>
>> in a few places. Details on request.
>
> Is often mis-used, but is not in Exim. They've been very carefully
> checked, on multiple occasions. strlcpy/strlcat are excellent functions
> which I use myself in new code, where I'm prepared to state "the porter
> has to provide a libc with them, or add the functions". In this case,
> Exim is handling the strings just fine.
Is there a magic comment form that we can put around those areas of code to let
the compiler/checker know we did mean this and its OK (ie turning off lint)?
If so is it worth us quieting this particular build noisiness?
Nigel.
--
[ Nigel Metheringham ------------------------------ [email protected] ]
[ Ellipsis Intangible Technologies ]
--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/