[1772] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

rcp needs to use varargs...

daemon@ATHENA.MIT.EDU (epeisach@MIT.EDU)
Tue Jan 9 08:51:31 1996

From: epeisach@MIT.EDU
Date: Tue, 9 Jan 1996 08:51:16 -0500
To: krb5-bugs@MIT.EDU



Just sending this here so I don't forget....

If you try to rcp with the -r option to a directory ni which you don't
have write access, you get a core dump.

Reason: The function error is doing the following:

/*VARARGS1*/
error(fmt, a1, a2, a3, a4, a5)
     char *fmt;
     int a1, a2, a3, a4, a5;

Now, if you pass in a char *, int is not the right size and you lose.

Proper stdarg/varargs solves the problems. 

(This was just rediscovered by me in krb4 - but krb5 suffers as well)

	Ezra

home help back first fref pref prev next nref lref last post