nutanix / libvfio-user

framework for emulating devices in userspace
BSD 3-Clause "New" or "Revised" License
154 stars 49 forks source link

replace bcopy() with memcpy() #786

Closed jlevon closed 9 months ago

jlevon commented 9 months ago

For some unclear reason, clang-tidy believes bcopy() is insecure. Regardless, it is deprecated, so replace usages with memcpy().

Signed-off-by: John Levon john.levon@nutanix.com

jlevon commented 9 months ago

Hardly a "security" issue! All I can think is that they have instrumentation for ASAN and so on that they didn't bother doing for bcopy..