[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openssl-dev
Subject:    bug report
From:       "Doug Hoover" <dhoover () zentek ! com>
Date:       2002-09-24 0:43:08
[Download RAW message or body]

In 
    openssl-0.9.6g,
 
file
 
    crypto/objects/obj_dat.c,
 
function
 
    ASN1_OBJECT *OBJ_txt2obj(const char *s, int no_name),
 
it appears that the line
 
    op=d2i_ASN1_OBJECT(NULL,&p,i);
 
needs to be
 
    op=d2i_ASN1_OBJECT(NULL,&p,j);
 
The test case 
 
    OBJ_txt2obj("2.5.29.15", 1);
 
demonstrates this.
 
Regards,
 
Doug Hoover
dhoover@zentek.com
 

[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>

<META content="MSHTML 6.00.2600.0" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=296063800-24092002><FONT face=Arial size=2>In 
</FONT></SPAN></DIV>
<DIV><SPAN class=296063800-24092002>&nbsp;&nbsp;&nbsp; <FONT face=Arial 
size=2>openssl-0.9.6g,</FONT></SPAN></DIV>
<DIV><SPAN class=296063800-24092002><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=296063800-24092002><FONT face=Arial 
size=2>file</FONT></SPAN></DIV>
<DIV><SPAN class=296063800-24092002><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=296063800-24092002>&nbsp;&nbsp;&nbsp; <FONT face=Arial 
size=2>crypto/objects/obj_dat.c,</FONT></SPAN></DIV>
<DIV><SPAN class=296063800-24092002><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=296063800-24092002><FONT face=Arial 
size=2>function</FONT></SPAN></DIV>
<DIV><SPAN class=296063800-24092002><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=296063800-24092002>&nbsp;&nbsp;&nbsp; <FONT face=Arial 
size=2>ASN1_OBJECT *OBJ_txt2obj(const char *s, int no_name),</FONT></SPAN></DIV>
<DIV><SPAN class=296063800-24092002><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=296063800-24092002><FONT face=Arial size=2>it appears that the 
line</FONT></SPAN></DIV>
<DIV><SPAN class=296063800-24092002><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=296063800-24092002><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; 
op=d2i_ASN1_OBJECT(NULL,&amp;p,i);</FONT></SPAN></DIV>
<DIV><SPAN class=296063800-24092002><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=296063800-24092002><FONT face=Arial size=2>needs to 
be</FONT></SPAN></DIV>
<DIV><SPAN class=296063800-24092002><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=296063800-24092002>
<DIV><SPAN class=296063800-24092002><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; 
op=d2i_ASN1_OBJECT(NULL,&amp;p,j);</FONT></SPAN></DIV>
<DIV><SPAN class=296063800-24092002><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=296063800-24092002><FONT face=Arial size=2>The test case 
</FONT></SPAN></DIV>
<DIV><SPAN class=296063800-24092002><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=296063800-24092002>&nbsp;&nbsp;&nbsp; <FONT face=Arial 
size=2>OBJ_txt2obj("2.5.29.15", 1);</FONT></SPAN></DIV>
<DIV><SPAN class=296063800-24092002><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=296063800-24092002><FONT face=Arial size=2>demonstrates 
this.</FONT></SPAN></DIV>
<DIV><SPAN class=296063800-24092002><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=296063800-24092002><FONT face=Arial 
size=2>Regards,</FONT></SPAN></DIV>
<DIV><SPAN class=296063800-24092002><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=296063800-24092002><FONT face=Arial size=2>Doug 
Hoover</FONT></SPAN></DIV>
<DIV><SPAN class=296063800-24092002><FONT face=Arial size=2><A 
href="mailto:dhoover@zentek.com">dhoover@zentek.com</A></FONT></SPAN></DIV>
<DIV><SPAN 
class=296063800-24092002></SPAN>&nbsp;</DIV></SPAN></DIV></BODY></HTML>

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       openssl-dev@openssl.org
Automated List Manager                           majordomo@openssl.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic