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: Ken Hornstein
Subject: Re: [Nmh-workers] strncpy(3), die, die, die.
Date: Sat, 29 Oct 2016 17:40:58 -0400

>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



reply via email to

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