mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 06:47:45 +00:00
1c7c759f5b
There are few places where a virPCIDeviceAddress typed variable is allocated on the stack but it's not initialized. This can lead to random values of its members which in turn can lead to a random behaviour. Generated with help of the following spatch: @@ identifier I; @@ - virPCIDeviceAddress I; + virPCIDeviceAddress I = { 0 }; And then fixing bhyveAssignDevicePCISlots() which does declare the variable and then explicitly zero it by calling memset() only to set a specific member afterwards. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Jiri Denemark <jdenemar@redhat.com> |
||
---|---|---|
.. | ||
bhyve_capabilities.c | ||
bhyve_capabilities.h | ||
bhyve_command.c | ||
bhyve_command.h | ||
bhyve_conf.c | ||
bhyve_conf.h | ||
bhyve_device.c | ||
bhyve_device.h | ||
bhyve_domain.c | ||
bhyve_domain.h | ||
bhyve_driver.c | ||
bhyve_driver.h | ||
bhyve_firmware.c | ||
bhyve_firmware.h | ||
bhyve_monitor.c | ||
bhyve_monitor.h | ||
bhyve_parse_command.c | ||
bhyve_parse_command.h | ||
bhyve_process.c | ||
bhyve_process.h | ||
bhyve_utils.h | ||
bhyve.conf | ||
libvirtd_bhyve.aug | ||
meson.build | ||
test_libvirtd_bhyve.aug.in |