[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Crash in lib/roken/getifaddrs.c



I have some client kerberos code that uses heimdal, and if I let it
run for about 100-200 authentications over and over, it will
eventually crash.

To fix the problem I changed
lib/roken/getifaddrs.c::ifa_make_sockaddr() function.
I added this to the beginning:

if ( len > ifa_sa_len( family, len ) )
{
printf( "BAD!\n" );
return;
}

And now there are no more crashes. This seems like a hack versus a
real fix, but getifaddrs() is a complicated function and I couldn't
find any "real fixes".

Any ideas?

-- 
- Jeremiah Martell
http://inlovewithGod.com