Files
Hrushiraj Gandhi aabe047f8b gcov: use strscpy() instead of strcpy() in init_node()
node->name is a flexible array member sized to exactly strlen(name) + 1
bytes at allocation time in new_node(), so this copy can never actually
overflow.  Still, prefer the bounded strscpy() over strcpy() on general
principle; pass the same strlen(name) + 1 bound the allocation used, since
sizeof() cannot be applied to a flexible array member.

No functional change.

Link: https://lore.kernel.org/[email protected]
Signed-off-by: Hrushiraj Gandhi <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Reviewed-by: Bradley Morgan <[email protected]>
Cc: Peter Oberparleiter <[email protected]>
2026-10-06 19:02:59 -07:00
..
2021-05-07 00:26:32 -07:00
2021-05-07 00:26:32 -07:00
2021-12-02 17:25:21 +09:00