Subject: lib/23960: xdr_stdio is broken on 64 bit platforms.
To: None <>
From: None <>
List: netbsd-bugs
Date: 01/03/2004 21:26:31
>Number:         23960
>Category:       lib
>Synopsis:       xdr_stdio is broken on 64 bit platforms.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jan 03 21:27:00 UTC 2004
>Originator:     Logan Gabriel
>Release:        Current
Corvus security group.
xdrstdio_getlong and xdrstdio_putlong do not correctly work if sizeof(int32_t) != sizeof(long).
I have written an example program that can be downloaded from:

However if for some reason that is not available just create a program that uses xdrstdio.  Write out a few bits of serialized data and get an md5.  The md5 will be different on 32 bit platforms than on 64 bit platforms.
Get (Its for freebsd sorry).

I think that patch should do the trick tho I have not completly tested it out.