nutanix / libvfio-user

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

fix VFIO_USER_DEVICE_GET_REGION_IO_FDS allocation #785

Closed jlevon closed 1 year ago

jlevon commented 1 year ago

clang-tidy static analysis identified a zero-sized allocation in the case that no ioregionfds had been configured. Fix this issue and add a test for it.

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