Skip to content

URIFilename doesn't detect underlying database has been closed #501

@rogerbinns

Description

@rogerbinns

URIFilename wraps a pointer passed in that is guaranteed valid for the lifetime of the sqlite3*. However the Python level object can outlive the connection (which may not even be an apsw owned one).

Accessing any of the methods on the URIFilename after the sqlite3* is closed results in use after free.

Either detect lifetime, or document not keeping it around like with the pragma wrapper.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions