Skip to content

String constructor can segfault #16470

@vtjnash

Description

@vtjnash
julia> String(convert(Ptr{UInt8}, 1))
Segmentation fault: 11

expected result: MethodError, "Ptr{UInt8}(1)", anything but crashing?

Julia constructors shouldn't segfault, only methods that can should have unsafe_ in the name

Metadata

Metadata

Assignees

No one assigned

    Labels

    regressionRegression in behavior compared to a previous version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions