Thanks for the clue it is working now.

Problem is my kerberos is linking to the openssl library where custom memory 
management was implemented hence it was crashing in the free.

Then linked to the default openssl now it is working fine

Thanks a lot.

Best Regards,

B.Sasikumar.


From: Greg Hudson <ghud...@mit.edu>
Sent: Thu, 23 May 2013 20:46:25 
To: sasikumar bodathula <sasikuma...@rediffmail.com>
Cc: kerberos <kerberos@mit.edu>
Subject: Re: Crash while freeing data.
On 05/23/2013 02:46 AM, sasikumar bodathula wrote:

> In the function cms_signeddata_create we have a pointer called abuf

> which is initialized to NULL.

> 

> FileName :- plugins/preauth/pkinit/pkinit_crypto_openssl.c Line number

> 1121 "ASN1_item_i2d" following function is called with abuf as one of

> the argument.

> 

> After this function abuf is pointer to the invalid pointer this leads to

> the crash in same file line number 1195 free(abuf).



Looking at the OpenSSL code, ASN1_item_i2d should only fill in abuf with

a pointer returned by CRYPTO_malloc(), which is usually equivalent to

malloc(), unless something has called CRYPTO_set_mem_functions() or

similar.  Unless you're doing that in your application, I don't see how

this can explain the crash.



________________________________________________
Kerberos mailing list           Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos

Reply via email to