Windows crash in openssl call to i2d_X509().

This is a discussion on Windows crash in openssl call to i2d_X509(). within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi, I am using Openssl_0.9.7d with Apache 2 mod-ssl on windows. Windows crashed in the call for ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-25-2004
SharadChandra Chavali
 
Posts: n/a
Default Windows crash in openssl call to i2d_X509().

Hi,

I am using Openssl_0.9.7d with Apache 2 mod-ssl on windows. Windows
crashed in the call for i2d_X509(). Following is the code snippet in
authentication plugin for Apache 2 :

X509 *xs = NULL;
unsigned char *bytes, *p;
..
..
..
xs = sslconn->client_cert;
if (xs)
{
//Debugging shows the structure of xs is fine.
len=i2d_X509(xs, NULL);
// The value is len comes out to be around 5MB (figure is aroung
5xxxxxx).
if((bytes = (unsigned char *)malloc (len)) != NULL)
{
p=bytes;
//Debugging shows the structure of xs is fine till this point.
i2d_X509(xs, &p); //Windows crashed at this call.
}
..
..
..
}

While debugging we found that the statement len=i2d_X509(xs, NULL);
returned value of len to be around 5MB. Then the second call to
i2d_X509(xs, &p); crashed windows.

On site http://www.openssl.org/news/, The OpenSSL Security Advisory [4
November 2003] for "Denial of Service in ASN.1 parsing" mentions about
openssl error in parsing.

The Recommendations section says use 0.9.7c. I tried this but still
windows crashed.

The site mentions "Patches for this issue have been created by Dr
Stephen Henson (steve@openssl.org) of the OpenSSL core team.". How can
I get this patch.

Can anyone please help me in this regard.

thanks and regards,
Sharad.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:07 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0