Skip to content

Dangling pointer used in open_in_context() in the impl of UsbProperties #25

Open
@quitbug

Description

@quitbug

Hi, I hv noticed that there are two dangling pointers used in the function https://github.com/tanriol/ftdi-rs/blob/master/src/opener.rs#L45C8-L45C23. https://github.com/tanriol/ftdi-rs/blob/master/src/opener.rs#L45C8-L45C23 will generate two dangling pointers passed in ffi::ftdi_usb_open_desc_index(), which may result in a later Use-After-Free bug.

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