Skip to content
This repository was archived by the owner on Jul 25, 2020. It is now read-only.
This repository was archived by the owner on Jul 25, 2020. It is now read-only.

Cursor::get_text() is not safe #100

Closed
@apoelstra

Description

@apoelstra

In https://www.sqlite.org/c3ref/column_blob.html it is explained that pointers allocated by the sqlite3_column_blob is invalidated by a call to sqlite3_column_text() on the same column. Since this memory is owned by the Cursor, get_text() must take a mutable reference.

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