This is the mail archive of the libc-alpha@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [stda@enea.se] libc/1623: buggs in XDR functions


>>>>> Sten Dahlgren writes:

Sten> Hello !
Sten> The sad thing is that i found that the same bugg is in xdr_hyper
Sten> ie the sign extension problem.

Sten> I'll try to fix this in the original source when at home and send you a 
Sten> proper diff on monday

Do you mean this?

Thanks,
Andreas

2000-03-03  Andreas Jaeger  <aj@suse.de>

	* sunrpc/xdr.c (xdr_hyper): Correctly handle lower half of llp.

============================================================
Index: sunrpc/xdr.c
--- sunrpc/xdr.c	1999/04/08 02:09:55	1.16
+++ sunrpc/xdr.c	2000/03/03 17:39:39
@@ -200,7 +200,7 @@
 xdr_hyper (XDR *xdrs, quad_t *llp)
 {
   long t1;
-  long t2;
+  unsigned long int t2;
 
   if (xdrs->x_op == XDR_ENCODE)
     {

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.rhein-neckar.de

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]