Segmentation fault in art.c linh 853

fjpc at ccom.uminho.pt fjpc at ccom.uminho.pt
Tue Oct 5 22:35:40 UTC 1999


My innd server 2.2 started core dumping whith seg fault. I upgraded to 2.2.1 but the seg. fault continued.
I debugged de core and found out that it was trying to memcpy to a null address.
A _very_ quick browse through the code lead me to the (probably absurd) patch bellow applied to art.c in the innd.
Can anyone please check if there is a better way to solve this problem?

Thankyou.

852a853,859
> 
> // I may be adding a memory leak in here... But I'm quite desperate... FJPC - 19991005
>     if(! hp->Value)
>     {
>	hp->Value = (char *) malloc((SIZE_T)(i + 1));
>     }

-- 
# Fernando Jose Pires de Carvalho  ##  E-mail: fjpc at ccom.uminho.pt  #
# PGP fingerprint: 7B 3E 34 A5 8E 30 17 A0  5D EE 82 92 1E 93 2A FD #

-- Attached file included as plaintext by Listar --

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia

iQCVAwUBN/p9O9/WqCkUb/DJAQHlEAP+JBOd1QXkJuE4+gaDPfNEn1ufbS7RLl32
NM0tkAazySCX4xinvlbQoCp2qjA8hKDeSjRi6nZTj9GSo/bZO5FFA6ZEiGrWe9Fl
ZqI5ncxxMdtSg6Vp+bIvFXIL0Lwpv1Z/N282dNAzSsGZo+Na/JwAFO4QwzyNt+zf
LYEwpxmTQq4=
=feAP
-----END PGP SIGNATURE-----




More information about the inn-bugs mailing list