nutanix / libvfio-user

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

replace bcopy() with memcpy() #786

Closed jlevon closed 1 year ago

jlevon commented 1 year 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 1 year 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..