nmh-workers
[Top] [All Lists]

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

2016-10-29 16:41:11
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.

Sounds great to me.

--Ken

_______________________________________________
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>