[859] in Kerberos-V5-bugs

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

Re: appl/bsd patches....

daemon@ATHENA.MIT.EDU (Theodore Ts'o)
Fri Oct 14 13:11:29 1994

Date: Fri, 14 Oct 1994 13:11:20 +0500
From: Theodore Ts'o <tytso@MIT.EDU>
To: Ken Raeburn <raeburn@cygnus.com>
Cc: "Theodore Ts'o" <tytso@MIT.EDU>, krb5-bugs@MIT.EDU
In-Reply-To: Ken Raeburn's message of Fri, 14 Oct 1994 09:20:56 -0400,
	<9410141320.AA09316@>

   From: Ken Raeburn <raeburn@cygnus.com>
   Date: Fri, 14 Oct 1994 09:20:56 -0400

   The comparison is against a value read from a char array and sign- or
   zero-extended.  The bytes stored in the array must be correct, and the
   signedness must be consistent.

   If we assume bytes are eight bits, then whether you initialize the array
   elements with "255" or "-1" doesn't matter.

.... except that if chars are signed, GCC will flame if you try to
initialize the array with 255, and if they are unsigned, GCC will flame
if you try to initialize them with -1.

						- Ted

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