nmh-workers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Ralph Corderoy
Subject: Re: [Nmh-workers] strncpy(3), die, die, die.
Date: Sat, 29 Oct 2016 22:15:33 +0100

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]