Coverity Scan: QEMU

Project Name QEMU
Lines of code analyzed 2,885,512
On Coverity Scan since Apr 17, 2013
Last build analyzed 2 days ago
   
Language C/C++
Repository URL git://git.qemu.org/qemu.git
Homepage URL http://www.qemu.org/
License GPL (GNU General Public License version )

Want to view defects or help fix defects?

 Add me to project

Analysis Metrics

Version: v9.0.0-rc4

Apr 18, 2024
Last Analyzed
2,885,512
Lines of Code Analyzed
2,723,399
Lines of Code in Selected Components
0.05
Defect Density

Defect changes since previous build dated Apr 17, 2024

0
Newly detected
0
Eliminated

Defects by status for current build

5,988
Total defects
142
Outstanding
3,976
Fixed
See how defect density for 'QEMU' compares with defect density for other open source projects.  Learn more

Note: Defect density is measured by the number of defects per 1,000 lines of code.


Analysis Metrics per Components

Component Name Pattern Ignore Line of Code Defect density
alpha (/qemu)?((/include)?/hw/alpha/.*|/target/alpha/.*) No 0 N/A
arm (/qemu)?((/include)?/hw/arm/.*|(/include)?/hw/.*/(arm|allwinner-a10|bcm28|digic|exynos|imx|omap|stellaris|pxa2xx|versatile|zynq|cadence).*|/hw/net/xgmac.c|/hw/ssi/xilinx_spips.c|/target/arm/.*) No 0 N/A
avr (/qemu)?((/include)?/hw/avr/.*|/target/avr/.*) No 0 N/A
cris (/qemu)?((/include)?/hw/cris/.*|/target/cris/.*) No 0 N/A
hexagon-gen (/qemu)?(/target/hexagon/.*generated.*) Yes 162,113 N/A
hexagon (/qemu)?(/target/hexagon/.*) No 6,015 0.00
hppa (/qemu)?((/include)?/hw/hppa/.*|/target/hppa/.*) No 0 N/A
i386 (/qemu)?((/include)?/hw/i386/.*|/target/i386/.*|/hw/intc/[^/]*apic[^/]*\.c) No 0 N/A
loongarch (/qemu)?((/include)?/hw/(loongarch/.*|.*/loongarch.*)|/target/loongarch/.*) No 0 N/A
m68k (/qemu)?((/include)?/hw/m68k/.*|/target/m68k/.*|(/include)?/hw(/.*)?/mcf.*|(/include)?/hw/nubus/.*) No 0 N/A
microblaze (/qemu)?((/include)?/hw/microblaze/.*|/target/microblaze/.*) No 0 N/A
mips (/qemu)?((/include)?/hw/mips/.*|/target/mips/.*) No 0 N/A
nios2 (/qemu)?((/include)?/hw/nios2/.*|/target/nios2/.*) No 0 N/A
openrisc (/qemu)?((/include)?/hw/openrisc/.*|/target/openrisc/.*) No 0 N/A
ppc (/qemu)?((/include)?/hw/ppc/.*|/target/ppc/.*|/hw/pci-host/(uninorth.*|dec.*|prep.*|ppc.*)|/hw/misc/macio/.*|(/include)?/hw/.*/(xics|openpic|spapr).*) No 0 N/A
riscv (/qemu)?((/include)?/hw/riscv/.*|/target/riscv/.*|/hw/.*/(riscv_|ibex_|sifive_).*) No 0 N/A
rx (/qemu)?((/include)?/hw/rx/.*|/target/rx/.*) No 0 N/A
s390 (/qemu)?((/include)?/hw/s390x/.*|/target/s390x/.*|/hw/.*/s390_.*) No 121 0.00
sh4 (/qemu)?((/include)?/hw/sh4/.*|/target/sh4/.*) No 0 N/A
sparc (/qemu)?((/include)?/hw/sparc(64)?.*|/target/sparc/.*|/hw/.*/grlib.*|/hw/display/cg3.c) No 0 N/A
tricore (/qemu)?((/include)?/hw/tricore/.*|/target/tricore/.*) No 0 N/A
xtensa (/qemu)?((/include)?/hw/xtensa/.*|/target/xtensa/.*) No 0 N/A
9pfs (/qemu)?(/hw/9pfs/.*|/fsdev/.*) No 0 N/A
audio (/qemu)?((/include)?/(audio|hw/audio)/.*) No 0 N/A
block (/qemu)?(/block.*|(/include?)/(block|storage-daemon)/.*|(/include)?/hw/(block|ide|nvme)/.*|/qemu-(img|io).*|/util/(aio|async|thread-pool).*) No 1,850 0.00
char (/qemu)?(/qemu-char\.c|/include/sysemu/char\.h|(/include)?/hw/char/.*) No 0 N/A
crypto (/qemu)?((/include)?/crypto/.*|/hw/.*/.*crypto.*|(/include/sysemu|/backends)/cryptodev.*) No 0 N/A
disas (/qemu)?((/include)?/disas.*) No 0 N/A
fpu (/qemu)?((/include)?(/fpu|/libdecnumber)/.*) No 0 N/A
io (/qemu)?((/include)?/io/.*) No 0 N/A
ipmi (/qemu)?((/include)?/hw/ipmi/.*) No 0 N/A
migration (/qemu)?((/include)?/migration/.*) No 0 N/A
monitor (/qemu)?(/qapi.*|/qobject/.*|/monitor\..*|/[hq]mp\..*) No 97,943 0.00
nbd (/qemu)?(/nbd/.*|/include/block/nbd.*|/qemu-nbd\.c) No 0 N/A
net (/qemu)?((/include)?(/hw)?/(net|rdma)/.*) No 0 N/A
pci (/qemu)?(/include)?/hw/(cxl/|pci).* No 0 N/A
qemu-ga (/qemu)?(/qga/.*) No 8,064 0.00
scsi (/qemu)?(/scsi/.*|/hw/scsi/.*|/include/hw/scsi/.*) No 0 N/A
trace (/qemu)?(/.*trace.*\.[ch]) No 223,905 0.00
ui (/qemu)?((/include)?(/ui|/hw/display|/hw/input)/.*) No 21,665 0.00
usb (/qemu)?(/hw/usb/.*|/include/hw/usb/.*) No 0 N/A
user (/qemu)?(/linux-user/.*|/bsd-user/.*|/user-exec\.c|/thunk\.c|/include/exec/user/.*) No 0 N/A
util (/qemu)?(/util/.*|/include/qemu/.*) No 0 N/A
vfio (/qemu)?(/include)?/hw/vfio/.* No 0 N/A
virtio (/qemu)?(/include)?/hw/virtio/.* No 0 N/A
xen (/qemu)?(.*/xen.*) No 32,234 0.09
hvf (/qemu)?(.*/hvf.*) No 62 0.00
kvm (/qemu)?(.*/kvm.*) No 12,722 0.00
tcg (/qemu)?(/accel/tcg|/replay|/tcg)/.* No 0 N/A
sysemu (/qemu)?(/softmmu/.*|/accel/.*) No 0 N/A
testlibs (/qemu)?(/tests/qtest(/libqos/.*|/libqtest.*)) No 0 N/A
tests (/qemu)?(/tests/.*) No 7,259 0.00
(headers) (/qemu)?(/include/.*) No 0 N/A
Other .* No 2,311,559 0.06

CWE Top 25 defects

ID CWE-Name Number of Defects
120 Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') 1
190 Integer Overflow or Wraparound 13
Loading...

Loading...

Loading...

Loading...

Loading...

About Coverity Scan Static Analysis

Find and fix defects in your C/C++, Java, JavaScript or C# open source project for free.

Coverity Scan tests every line of code and potential execution path. The root cause of each defect is clearly explained, making it easy to fix bugs.

Would you like to view the project defects, or help improve its quality by fixing defects?

 Add me to project