Skip to content

CStr::from_ptr should be documented to not allow strings bigger than isize::MAX #63590

Closed
@KamilaBorowska

Description

@KamilaBorowska

In #53784, slice::from_raw_parts was documented to not allow slices larger than isize::MAX bytes. However, CStr::from_ptr is not documented to have the same requirement, despite allowing the user to obtain a slice larger than isize::MAX bytes with its to_bytes method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-FFIArea: Foreign function interface (FFI)A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions