Crash in python bindings when opening a connection

Thomas Leonard tal00r at ecs.soton.ac.uk
Sat Aug 28 11:07:48 PDT 2004


Opening a connection causes a crash, apparently due to using an
uninitialised variable (dbus_bindings.pyx):

cdef class Connection:
    cdef DBusConnection *conn
    
    def __init__(self, address=None, Connection _conn=None):
        cdef DBusConnection *c_conn
        cdef char *c_address
        c_conn=NULL
        if (_conn != None):
            c_conn = _conn.conn

        if (address != None or _conn != None):
            self.__cinit__(c_address, c_conn)

'address' is only checked for None and then not used. The uninitialised
c_address is passed instead.


-- 
Thomas Leonard			http://rox.sourceforge.net
tal00r at ecs.soton.ac.uk	tal197 at users.sourceforge.net
GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1


More information about the dbus mailing list