nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] strncpy(3), die, die, die.

2016-10-29 16:15:48
Hi Ken,

If this is what I think it is ... you know, I think this truncation
is benign.

What if benign truncations were trunccpy(), instead of the strncpy dance
where the reader is unsure if it's benign or not, and then abortcpy()
could be the strncpy() replacement that aborts on truncation, with all
the previously mentioned get-a-rounds?  Obviously, abortcpy is bad and
should be sought and destroyed over time, but meanwhile it puts strncpy
into one of two camps, with the remaining strncpy standing out as still
needing analysis.

-- 
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy

_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>