It is illegal (UB?) to pass a shorter array to a function argument
that takes a fixed-length array. Do a runtime check for names that
are too long via strlen() instead.
Reported by: GCC -Wstringop-overread
Differential D39211
bhyve: Accept a variable-length string name for qemu_fwcfg_add_file. jhb on Mar 22 2023, 6:01 PM. Authored by Tags None Referenced Files
Details It is illegal (UB?) to pass a shorter array to a function argument Reported by: GCC -Wstringop-overread
Diff Detail
|