Skip to content

Sketchy useage of unsafe_wrap/unsafe_string #41

@oscardssmith

Description

@oscardssmith

This library makes heavy use of unsafe_wrap and unsafe_string, (see https://github.com/wildart/LMDB.jl/blob/bdc2df64debb30ffc4f43ae0c92107d35de0c8af/src/common.jl#L13) but doesn't seem to ensure that they aren't used on data that comes from Julia. The intention of these functions is that they are used on foreign memory only (since otherwise, you will get a double free when the original and wrapped version both get freed).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions