[krbdev.mit.edu #2914] size change in cache breaks alpha-dux40 for krb5-1.3, krb5-1.4

Quanah Gibson-Mount via RT rt-comment at krbdev.mit.edu
Thu Feb 10 19:35:31 EST 2005



--On Thursday, February 10, 2005 3:55 PM -0800 Quanah Gibson-Mount 
<quanah at stanford.edu> wrote:

>
>
> --On Friday, February 04, 2005 6:55 PM -0500 Ken Raeburn via RT
> <rt-comment at krbdev.mit.edu> wrote:
>
>> In the 1.2.7 sources I have lying around, and a 1.2.8 tree I just
>> checked out, the last thing written to the file by tf_save_cred in
>> lib/krb4/tf_util.c is one of the arguments declared "long issue_date",
>> and written using sizeof(long).  So I'm surprised that last field looks
>> like a four-byte timestamp.
>
> Ken,
>
> My 1.2.8 tree doesn't agree with you then.
>
> In diff'ing 1.2.8 with 1.3.6, I find:
>
> 527c519
> <     KRB4_32 issue_date;
> ---
>>     long issue_date;
>
> I bet on alpha this changed the size somehow.
>
> I'll poke further at that.

Looking at the des.h from 1.2.8, it appears that on alpha, the size is 
"int" not long:

#ifndef __alpha
#ifdef __sparcv9
/* On 64bit solaris long's are 64 bits, doh... */
#define KRB4_32 int
#else
#define KRB4_32 long
#endif
#else
#define KRB4_32 int
#endif


--Quanah

--
Quanah Gibson-Mount
Principal Software Developer
ITSS/Shared Services
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html

"These censorship operations against schools and libraries are stronger
than ever in the present religio-political climate. They often focus on
fantasy and sf books, which foster that deadly enemy to bigotry and blind
faith, the imagination." -- Ursula K. Le Guin




More information about the krb5-bugs mailing list