Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler.
Number of rules (primarily dangerous function names) in C/C++ ruleset: 223
Examining data/libvirt-glib-3.0.0/tests/test-events.c
Examining data/libvirt-glib-3.0.0/tests/test-gconfig.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-capabilities-host.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-object.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-address-usb.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-xml-doc.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-channel.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-disk.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-hostdev.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-capabilities.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-cpu.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-timer-hpet.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-redirdev.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-chardev.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/tests/test-domain-parse.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/tests/test-domain-create.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/tests/test-capabilities-parse.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-storage-vol-backing-store.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-controller.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-smartcard-host-certificates.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-cpu-feature.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-capabilities-cpu-feature.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-graphics-desktop.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-filesys.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-object.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-capabilities.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-clock.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-capabilities.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-controller-usb.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-storage-vol-target.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-storage-pool-target.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-chardev-source-spicevmc.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-storage-vol.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-capabilities-cpu-feature.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-smartcard-passthrough.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-hostdev-pci.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-os.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-interface-filterref-parameter.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-secret.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-capabilities-cpu-model.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-interface.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-network-filter.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-graphics-sdl.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-capabilities-cpu.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-private.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-chardev-source-unix.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-compat.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-storage-pool-target.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-redirdev.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-helpers.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-smartcard-host.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-main.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-timer-rtc.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-storage-pool.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-graphics-sdl.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-interface.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-interface-filterref.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-address-pci.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-device.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-graphics-desktop.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-graphics-spice.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-snapshot.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-channel.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-chardev-source-unix.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-network.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-chardev.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-interface-filterref-parameter.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-graphics-vnc.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-node-device.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-smartcard-host-certificates.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-capabilities-guest-feature.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-timer.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-chardev-source-spiceport.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-video.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-capabilities-cpu-model.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-interface.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-capabilities-guest.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-graphics-vnc.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-interface-user.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-snapshot-private.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-memballoon.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-helpers.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-clock.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-parallel.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-chardev-source-pty.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-capabilities-cpu-topology.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-storage-pool-source.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-smartcard-passthrough.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-graphics.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-address.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-interface-bridge.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-graphics-spice.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-storage-vol.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-disk-driver.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-cpu-model.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-os.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-timer-rtc.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-capabilities-cpu.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-helpers-private.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-capabilities-os.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-storage-permissions.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-chardev-source.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-seclabel.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-storage-pool-source.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-interface-filterref.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-capabilities-host-secmodel.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-capabilities-guest-feature.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-timer-pit.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-capabilities-guest.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-power-management.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-timer-hpet.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-capabilities-os.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-seclabel.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-interface-bridge.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-cpu.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-smartcard.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-capabilities.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-node-device.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-device.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-main.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-serial.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-graphics-rdp.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-capabilities-host.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-capabilities-guest-arch.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-interface.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-controller-usb.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-sound.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-address-pci.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-device-private.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-power-management.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-graphics-rdp.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-address-usb.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-input.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-parallel.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-timer.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-capabilities-guest-arch.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-capabilities-guest-domain.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-chardev-source-pty.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-network-filter.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-hostdev.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-console.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-secret.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-memballoon.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-interface-user.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-sound.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-storage-vol-backing-store.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-network.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-storage-vol-target.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-controller.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-xml-doc.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-video.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-smartcard.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-snapshot-disk.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-capabilities-cpu-private.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-graphics.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-hostdev-pci.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-address.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-input.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-object-private.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-interface-network.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-capabilities-host-secmodel.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-disk.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-capabilities-guest-domain.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-filesys.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-storage-permissions.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-chardev-source.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-console.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-capabilities-cpu-topology.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-chardev-source-spicevmc.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-storage-pool.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-timer-pit.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-interface-network.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-cpu-feature.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-disk-driver.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-serial.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-chardev-source-private.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-snapshot-disk.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-chardev-source-spiceport.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-cpu-model.c
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-snapshot.h
Examining data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-domain-smartcard-host.c
Examining data/libvirt-glib-3.0.0/examples/event-test.c
Examining data/libvirt-glib-3.0.0/examples/conn-test.c
Examining data/libvirt-glib-3.0.0/libvirt-glib/libvirt-glib-main.h
Examining data/libvirt-glib-3.0.0/libvirt-glib/libvirt-glib-event.c
Examining data/libvirt-glib-3.0.0/libvirt-glib/libvirt-glib-event.h
Examining data/libvirt-glib-3.0.0/libvirt-glib/libvirt-glib-error.h
Examining data/libvirt-glib-3.0.0/libvirt-glib/libvirt-glib-main.c
Examining data/libvirt-glib-3.0.0/libvirt-glib/libvirt-glib-error.c
Examining data/libvirt-glib-3.0.0/libvirt-glib/libvirt-glib.h
Examining data/libvirt-glib-3.0.0/libvirt-gobject/libvirt-gobject-node-device.h
Examining data/libvirt-glib-3.0.0/libvirt-gobject/libvirt-gobject-domain-device.c
Examining data/libvirt-glib-3.0.0/libvirt-gobject/libvirt-gobject-manager.h
Examining data/libvirt-glib-3.0.0/libvirt-gobject/libvirt-gobject-manager.c
Examining data/libvirt-glib-3.0.0/libvirt-gobject/libvirt-gobject-interface.h
Examining data/libvirt-glib-3.0.0/libvirt-gobject/libvirt-gobject-stream.h
Examining data/libvirt-glib-3.0.0/libvirt-gobject/libvirt-gobject-network.c
Examining data/libvirt-glib-3.0.0/libvirt-gobject/libvirt-gobject-network-dhcp-lease.c
Examining data/libvirt-glib-3.0.0/libvirt-gobject/libvirt-gobject-node-device.c
Examining data/libvirt-glib-3.0.0/libvirt-gobject/libvirt-gobject-secret.c
Examining data/libvirt-glib-3.0.0/libvirt-gobject/libvirt-gobject-input-stream.c
Examining data/libvirt-glib-3.0.0/libvirt-gobject/libvirt-gobject-network-dhcp-lease-private.h
Examining data/libvirt-glib-3.0.0/libvirt-gobject/libvirt-gobject-domain-disk.c
Examining data/libvirt-glib-3.0.0/libvirt-gobject/libvirt-gobject-domain-interface.h
Examining data/libvirt-glib-3.0.0/libvirt-gobject/libvirt-gobject-storage-pool-private.h
Examining data/libvirt-glib-3.0.0/libvirt-gobject/libvirt-gobject-domain-interface.c
Examining data/libvirt-glib-3.0.0/libvirt-gobject/libvirt-gobject-domain-disk.h
Examining data/libvirt-glib-3.0.0/libvirt-gobject/libvirt-gobject-connection.c
Examining data/libvirt-glib-3.0.0/libvirt-gobject/libvirt-gobject-main.h
Examining data/libvirt-glib-3.0.0/libvirt-gobject/libvirt-gobject-output-stream.h
Examining data/libvirt-glib-3.0.0/libvirt-gobject/libvirt-gobject.h
Examining data/libvirt-glib-3.0.0/libvirt-gobject/libvirt-gobject-compat.h
Examining data/libvirt-glib-3.0.0/libvirt-gobject/libvirt-gobject-network-filter.c
Examining data/libvirt-glib-3.0.0/libvirt-gobject/libvirt-gobject-storage-pool.h
Examining data/libvirt-glib-3.0.0/libvirt-gobject/libvirt-gobject-secret.h
Examining data/libvirt-glib-3.0.0/libvirt-gobject/libvirt-gobject-domain.c
Examining data/libvirt-glib-3.0.0/libvirt-gobject/libvirt-gobject-network-dhcp-lease.h
Examining data/libvirt-glib-3.0.0/libvirt-gobject/libvirt-gobject-storage-vol.h
Examining data/libvirt-glib-3.0.0/libvirt-gobject/libvirt-gobject-storage-pool.c
Examining data/libvirt-glib-3.0.0/libvirt-gobject/libvirt-gobject-storage-vol.c
Examining data/libvirt-glib-3.0.0/libvirt-gobject/libvirt-gobject-main.c
Examining data/libvirt-glib-3.0.0/libvirt-gobject/libvirt-gobject-domain-device-private.h
Examining data/libvirt-glib-3.0.0/libvirt-gobject/libvirt-gobject-interface.c
Examining data/libvirt-glib-3.0.0/libvirt-gobject/libvirt-gobject-compat.c
Examining data/libvirt-glib-3.0.0/libvirt-gobject/libvirt-gobject-network-filter.h
Examining data/libvirt-glib-3.0.0/libvirt-gobject/libvirt-gobject-connection.h
Examining data/libvirt-glib-3.0.0/libvirt-gobject/libvirt-gobject-input-stream.h
Examining data/libvirt-glib-3.0.0/libvirt-gobject/libvirt-gobject-stream.c
Examining data/libvirt-glib-3.0.0/libvirt-gobject/libvirt-gobject-domain-snapshot.h
Examining data/libvirt-glib-3.0.0/libvirt-gobject/libvirt-gobject-output-stream.c
Examining data/libvirt-glib-3.0.0/libvirt-gobject/libvirt-gobject-domain.h
Examining data/libvirt-glib-3.0.0/libvirt-gobject/libvirt-gobject-domain-snapshot.c
Examining data/libvirt-glib-3.0.0/libvirt-gobject/libvirt-gobject-domain-device.h
Examining data/libvirt-glib-3.0.0/libvirt-gobject/libvirt-gobject-network.h

FINAL RESULTS:

data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-main.c:75:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv("LIBVIRT_GCONFIG_DEBUG"))
data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-main.c:79:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (!getenv("LIBVIRT_GCONFIG_DEBUG"))
data/libvirt-glib-3.0.0/libvirt-glib/libvirt-glib-main.c:160:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv("LIBVIRT_GLIB_DEBUG"))
data/libvirt-glib-3.0.0/libvirt-glib/libvirt-glib-main.c:164:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (!getenv("LIBVIRT_GLIB_DEBUG"))
data/libvirt-glib-3.0.0/libvirt-gobject/libvirt-gobject-main.c:83:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv("LIBVIRT_GOBJECT_DEBUG"))
data/libvirt-glib-3.0.0/libvirt-gobject/libvirt-gobject-main.c:87:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (!getenv("LIBVIRT_GOBJECT_DEBUG"))
data/libvirt-glib-3.0.0/libvirt-gobject/libvirt-gobject-connection.c:643:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    return open;
data/libvirt-glib-3.0.0/tests/test-events.c:101:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    watch_fd = open("/dev/null", O_RDONLY);
data/libvirt-glib-3.0.0/libvirt-gconfig/libvirt-gconfig-helpers.c:145:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    doc = xmlParseMemory(xml, strlen(xml));

ANALYSIS SUMMARY:

Hits = 9
Lines analyzed = 35490 in approximately 0.92 seconds (38722 lines/second)
Physical Source Lines of Code (SLOC) = 21257
Hits@level = [0]   9 [1]   1 [2]   2 [3]   6 [4]   0 [5]   0
Hits@level+ = [0+]  18 [1+]   9 [2+]   8 [3+]   6 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 0.84678 [1+] 0.42339 [2+] 0.376347 [3+] 0.28226 [4+]   0 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.