Skip to content

QMessageLogContext bindings have undefined behavior #1410

@jnbooth

Description

@jnbooth

According to the safety documentation for CStr::from_ptr, it is undefined behavior for the pointer to be non-null. Currently, the functions for QMessageLogContext do not check for null pointers, even though Qt may use null pointers for some of those fields. I made a fix for this in #1399.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions