libvirt/src/bhyve
Michal Privoznik 1c7c759f5b src: Initialize stack allocated virPCIDeviceAddress variables
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>
2022-02-11 15:01:19 +01:00
..
bhyve_capabilities.c bhyve: refactor bhyveProbeCapsFromHelp 2021-12-13 18:20:45 +01:00
bhyve_capabilities.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
bhyve_command.c bhyve: handle all enum values in switches 2022-01-21 18:20:58 +01:00
bhyve_command.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
bhyve_conf.c bhyve_driver: Use automatic mutex management 2022-02-11 11:04:07 +01:00
bhyve_conf.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
bhyve_device.c src: Initialize stack allocated virPCIDeviceAddress variables 2022-02-11 15:01:19 +01:00
bhyve_device.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
bhyve_domain.c lib: Drop intermediary return variables 2021-10-25 12:48:46 +02:00
bhyve_domain.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
bhyve_driver.c bhyve_driver: Use automatic mutex management 2022-02-11 11:04:07 +01:00
bhyve_driver.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
bhyve_firmware.c lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
bhyve_firmware.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
bhyve_monitor.c lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
bhyve_monitor.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
bhyve_parse_command.c lib: Drop some needless labels 2021-12-03 17:19:35 +01:00
bhyve_parse_command.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
bhyve_process.c bhyve: use g_auto in virBhyveProcessStop 2021-12-13 18:20:45 +01:00
bhyve_process.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
bhyve_utils.h bhyve_driver: Use automatic mutex management 2022-02-11 11:04:07 +01:00
bhyve.conf bhyve: add config file support 2017-03-14 20:46:05 +04:00
libvirtd_bhyve.aug src: fix word spell typos 2020-07-09 10:01:41 +02:00
meson.build bhyve: add <os firmware='efi'> support 2021-03-20 07:53:45 +04:00
test_libvirtd_bhyve.aug.in build: use @CONFIG@ instead of ::CONFIG:: in augeas tests 2019-08-09 14:06:31 +01:00