Skip to content

collect on negative unsigned step pointer ranges segfaults #29810

Closed

Description

julia> start_=reinterpret(Ptr{Nothing},10); stop_=reinterpret(Ptr{Nothing},20); step_=2%UInt;

julia> collect(start_:step_:stop_)
6-element Array{Ptr{Nothing},1}:
 Ptr{Nothing} @0x000000000000000a
 Ptr{Nothing} @0x000000000000000c
 Ptr{Nothing} @0x000000000000000e
 Ptr{Nothing} @0x0000000000000010
 Ptr{Nothing} @0x0000000000000012
 Ptr{Nothing} @0x0000000000000014

julia> collect(reverse(start_:step_:stop_))

signal (11): Segmentation fault
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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