Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#7 Segfault when dealing with X509Names

closed-fixed
nobody
None
5
2008-03-12
2004-11-17
Jp Calderone
No

Python will segfault when running this simple code:

exarkun@boson:~$ python
Python 2.3.4 (#2, Sep 24 2004, 08:39:09)
[GCC 3.3.4 (Debian 1:3.3.4-12)] on linux2
Type "help", "copyright", "credits" or "license" for
more information.
>>> from OpenSSL.crypto import *
>>> X509Req().get_subject().CN = 'foo'
Segmentation fault

X509Req seems to be managing its subject's X509Name
lifetime or refcount improperly.

Discussion

  • Jp Calderone
    Jp Calderone
    2008-03-07

    Logged In: YES
    user_id=366566
    Originator: YES

    I've applied a patch to my fork of pyOpenSSL at http://launchpad.net/pyopenssl which corrects this. The changeset is revision 30.

     
  • Jp Calderone
    Jp Calderone
    2008-03-12

    • status: open --> closed-fixed