64bit fix for SunRPC

Thorsten Kukuk kukuk@suse.de
Fri Mar 5 04:51:00 GMT 1999


Hi,

I had some problems with seg.faults in the SunRPC code on 64bit
platforms the last days. The problem is, that under some rare
conditions the RPC code gives a pointer to a int32 to a function
which expects a pointer to a long. We casts all access to this
variables to 32 bit integers, but the upper bits will be zero'd,
and we never had allocated this memory.

I have implemented the solution Sun uses for 64bit Solaris 7.
It works fine here on the alphas, and solves my problems.

I hope it breaks nothing else.

 Thorsten
-- 
Thorsten Kukuk      http://www.suse.de/~kukuk/        kukuk@suse.de
SuSE GmbH           Schanzaeckerstr. 10             90443 Nuernberg
Linux is like a Vorlon.  It is incredibly powerful, gives terse,
cryptic answers and has a lot of things going on in the background.


More information about the Libc-hacker mailing list