Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Jan 2004 11:11:47 -0800 (PST)
From:      Logan Gabriel <gersh@sonn.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/60901: XDR stdio is broken on 64 bit platforms.
Message-ID:  <200401041911.i04JBln7099290@www.freebsd.org>
Resent-Message-ID: <200401041920.i04JKDkx024279@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         60901
>Category:       bin
>Synopsis:       XDR stdio is broken on 64 bit platforms.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 04 11:20:13 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Logan Gabriel
>Release:        5.2-CURRENT
>Organization:
Corvus security group
>Environment:
n/a
>Description:
XDR stdio is broken on 64 bit platforms.  If sizeof(int32_t) != sizeof(long) xdrstdio_putlong and xdrstdio_getlong will read/write incorrect values.
>How-To-Repeat:
I have written an example program that may be obtained at:
http://deity.kaosol.net/xdrbug.tgz.

If for some reason that is not available just create an xdrstdio stream and serialize a few values into it.  Compare a md5 of that output on a 64 bit platform with the output on a 32 bit platform and they will differ.
>Fix:
NetBSD has already fixed this issue per PR lib/23960.  See 

http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/rpc/xdr_stdio.c


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401041911.i04JBln7099290>