Subject: lib/23960: xdr_stdio is broken on 64 bit platforms.
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <email@example.com>
Date: 01/03/2004 21:26:31
>Synopsis: xdr_stdio is broken on 64 bit platforms.
>Arrival-Date: Sat Jan 03 21:27:00 UTC 2004
>Originator: Logan Gabriel
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 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.