Re: Stack growth direction to thwart buffer overflow attacks
From: Frank Cusack (fcusack_at_fcusack.com)
Date: Tue, 19 Aug 2003 06:49:20 -0700
On 19 Aug 2003 09:24:38 GMT firstname.lastname@example.org (Nick Maclaren) wrote:
> If the above descriptions are correct, then the FreeBSD implementation
> may not be standard conforming. Whether or not it is, I believe that
> pre-C90 implementations of strncpy did NOT always pad the result to
> the full length. I believe that some DID always null-terminate, too,
> if the length was greater than zero.
Do you mean C99? I'm aware of C89 and C99 only, but it may just be
too early in the AM for me.
You are correct, early implementations varied on their behavior.