Skip to content

Bug in get_device_name function: improper handling of prop.name #14

Open
@z1617

Description

https://github.com/ionet-official/io-net-official-setup-script/blob/main/self-check/checks.cu#L18

The function get_device_name has a critical issue. The line *result = prop.name; is incorrect because prop.name is a character array, and assigning it directly to a pointer without proper memory allocation will cause issues.

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