Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
This repository was archived by the owner on May 5, 2023. It is now read-only.

rust_str_to_c_str is dangerous #7

@Stebalien

Description

@Stebalien

It will panic if it hits a null byte. Unfortunately, this is called on a bunch of error messages and error messages are notorious for containing user data. We likely need a "nice" version of this function for errors that just "fixes" the string, and a strict version that returns a Result for anything else.

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