Bug in get_device_name function: improper handling of prop.name #14
Open
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
Labels
No labels