[2535] in Kerberos_V5_Development

home help back first fref pref prev next nref lref last post

Re: Should realm's be NULL terminated...

daemon@ATHENA.MIT.EDU (Ken Raeburn)
Thu Oct 9 20:01:54 1997

To: "Theodore Y. Ts'o" <tytso@MIT.EDU>
Cc: Marc Horowitz <marc@cygnus.com>, epeisach@MIT.EDU, krbdev@MIT.EDU
From: Ken Raeburn <raeburn@cygnus.com>
Date: 09 Oct 1997 20:01:42 -0400
In-Reply-To: "Theodore Y. Ts'o"'s message of "Mon, 6 Oct 1997 20:53:09 -0400"

"Theodore Y. Ts'o" <tytso@MIT.EDU> writes:

> Nothing *should* be assuming that the realm is null-terminated.  I
> believe the library was for a while continueing to allocate an extra
> byte and null-terminating things just to be sure nothing would break.  
> 
> Of course, then there's the school of thought which states that it's
> better if programs breaks obviously, instead of having silent bugs.....

So maybe the code should allocate an extra byte, and make sure it
*isn't* 0, but some printable character....  1/2 :-)

home help back first fref pref prev next nref lref last post