Subject: lib/23960: xdr_stdio is broken on 64 bit platforms.
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <gersh@sonn.com>
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
>Closed-Date:
>Last-Modified:
>Originator:     Logan Gabriel
>Release:        Current
>Organization:
Corvus security group.
>Environment:
n/a.
>Description:
xdrstdio_getlong and xdrstdio_putlong do not correctly work if sizeof(int32_t) != sizeof(long).
>How-To-Repeat:
I have written an example program that can be downloaded from:
http://deity.kaosol.net/xdrbug.tgz.

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.
>Fix:
Get deity.kaosol.net/xdr_stdio.c.patch (Its for freebsd sorry).

I think that patch should do the trick tho I have not completly tested it out.
>Release-Note:
>Audit-Trail:
>Unformatted: