nutanix / libvfio-user

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

fix VFIO_USER_DEVICE_GET_REGION_IO_FDS allocation #785

Closed jlevon closed 9 months ago

jlevon commented 9 months 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