[1376] in Kerberos-V5-bugs
krb5.b5 ksu core dump
daemon@ATHENA.MIT.EDU (Wolfgang Rupprecht)
Tue May 9 15:17:34 1995
Date: Tue, 9 May 1995 12:16:45 -0700
From: wolfgang@wsrcc.com (Wolfgang Rupprecht)
To: krb5-bugs@MIT.EDU
ksu/heuristic.c: find_princ_in_list gets called with too few args
which leads to a bus error on the Sun.
diff -c heuristic.c~ heuristic.c
*** heuristic.c~ Tue May 9 12:14:28 1995
--- heuristic.c Tue May 9 12:14:38 1995
***************
*** 684,690 ****
for (i= 0; i < count; i ++){
if(princ_trials[i].p){
! if (retval= find_princ_in_list(princ_trials[i].p, aplist, &found)){
return retval;
}
--- 684,690 ----
for (i= 0; i < count; i ++){
if(princ_trials[i].p){
! if (retval= find_princ_in_list(context, princ_trials[i].p, aplist, &found)){
return retval;
}
The problem is context got added as the first arg to the function
definition of find_princ_in_list(), but wasn't added to the fuction
call.
More importantly WHY DIDN'T GCC gripe??? It happily compiles it
without a peep both with the correct and incorrect call!!! Time to
submit this as a gcc-2.6.1 bug too...
-wolfgang
--
Wolfgang Rupprecht <wolfgang@wsrcc.com> <http://www.wsrcc.com/>