libkern stack_protector

Joerg Sonnenberger joerg at
Sun Jan 30 08:25:28 PST 2005

On Sat, Jan 29, 2005 at 11:45:53AM -0800, Matthew Dillon wrote:
>     Why aren't all the bytes non-zero?  Because we also want the guard
>     to provide at least one zero byte for string termination.  And there
>     are a few other reasons too.  It's mostly inconsequential but there is
>     a method behind the madness.

I guess because both 0xff and 0x0a (new line) have been historically used
as line terminations.


More information about the Kernel mailing list