Skip to content

Possible out-of-bound access for nb_neighbor function #4177

@sunyinqi0508

Description

@sunyinqi0508

Hello, I noticed the nb_neighbor function is not bound checked, and this function is directly accessible in the Python API where out-of-bound access will return raw memory contents without any warning or error message.

I think this is quite dangerous especially in APIs for memory managed languages where people usually assume bound checks.

Image

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