Skip to content

SmtpClient::sendMessage() use-after-free if called twice #23

@rrendec

Description

@rrendec

SmtpClient::sendMessage() closes the message body stream and deallocates its data structure but the pointer to it still persists in the stream property of the object. If the method is called twice, it will use a dangling pointer the second time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions