Coverity Scan: QEMU

Project Name QEMU
Lines of code analyzed 2,900,906
On Coverity Scan since Apr 17, 2013
Last build analyzed about 22 hours 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.2.0-477-g9863d46a5a

Dec 20, 2024
Last Analyzed
2,900,906
Lines of Code Analyzed
0.04
Defect Density

Defect changes since previous build dated Dec 19, 2024

0
Newly detected
0
Eliminated

Defects by status for current build

6,383
Total defects
126
Outstanding
4,078
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 5,343 0.00
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 168,128 0.01
avr .*/qemu((/include)?/hw/avr/.*|/target/avr/.*) No 3,216 0.00
cris .*/qemu((/include)?/hw/cris/.*|/target/cris/.*) No 0 N/A
hexagon-gen .*/qemu(/target/hexagon/.*generated.*) Yes 0 N/A
hexagon .*/qemu(/target/hexagon/.*) No 22,476 0.00
hppa .*/qemu((/include)?/hw/hppa/.*|/target/hppa/.*) No 7,115 0.00
i386 .*/qemu((/include)?/hw/i386/.*|/target/i386/.*|/hw/intc/[^/]*apic[^/]*\.c) No 69,065 0.03
loongarch .*/qemu((/include)?/hw/(loongarch/.*|.*/loongarch.*)|/target/loongarch/.*) No 20,114 0.10
m68k .*/qemu((/include)?/hw/m68k/.*|/target/m68k/.*|(/include)?/hw(/.*)?/mcf.*|(/include)?/hw/nubus/.*) No 16,640 0.00
microblaze .*/qemu((/include)?/hw/microblaze/.*|/target/microblaze/.*) No 3,744 0.00
mips .*/qemu((/include)?/hw/mips/.*|/target/mips/.*) No 51,567 0.02
openrisc .*/qemu((/include)?/hw/openrisc/.*|/target/openrisc/.*) No 3,895 0.00
ppc .*/qemu((/include)?/hw/ppc/.*|/target/ppc/.*|/hw/pci-host/(uninorth.*|dec.*|prep.*|ppc.*)|/hw/misc/macio/.*|(/include)?/hw/.*/(xics|openpic|spapr).*) No 91,786 0.00
riscv .*/qemu((/include)?/hw/riscv/.*|/target/riscv/.*|/hw/.*/(riscv_|ibex_|sifive_).*) No 46,314 0.17
rx .*/qemu((/include)?/hw/rx/.*|/target/rx/.*) No 4,220 0.00
s390 .*/qemu((/include)?/hw/s390x/.*|/target/s390x/.*|/hw/.*/s390_.*) No 37,593 0.03
sh4 .*/qemu((/include)?/hw/sh4/.*|/target/sh4/.*) No 5,806 0.00
sparc .*/qemu((/include)?/hw/sparc(64)?.*|/target/sparc/.*|/hw/.*/grlib.*|/hw/display/cg3.c) No 16,058 0.00
tricore .*/qemu((/include)?/hw/tricore/.*|/target/tricore/.*) No 12,845 0.08
xtensa .*/qemu((/include)?/hw/xtensa/.*|/target/xtensa/.*) No 337,732 0.00
9pfs .*/qemu(/hw/9pfs/.*|/fsdev/.*) No 8,980 0.00
audio .*/qemu((/include)?/(audio|hw/audio)/.*) No 21,186 0.05
block .*/qemu(/block.*|(/include?)/(block|storage-daemon)/.*|(/include)?/hw/(block|ide|nvme)/.*|/qemu-(img|io).*|/util/(aio|async|thread-pool).*) No 115,794 0.03
char .*/qemu((/include)?/hw/char/.*) No 9,810 0.00
chardev .*/qemu((/include)?/chardev/.*) No 6,891 0.00
crypto .*/qemu((/include)?/crypto/.*|/hw/.*/.*crypto.*|(/include/sysemu|/backends)/cryptodev.*|/host/include/.*/host/crypto/.*) No 13,361 0.00
disas .*/qemu((/include)?/disas.*) No 36,324 0.00
fpu .*/qemu((/include)?(/fpu|/libdecnumber)/.*) No 15,163 0.00
io .*/qemu((/include)?/io/.*) No 5,317 0.00
ipmi .*/qemu((/include)?/hw/ipmi/.*) No 4,044 0.00
migration .*/qemu((/include)?/migration/.*) No 23,482 0.04
monitor .*/qemu((/include)?/(qapi|qobject|monitor)/.*|/job-qmp.c) No 10,482 0.00
nbd .*/qemu(/nbd/.*|/include/block/nbd.*|/qemu-nbd\.c) No 5,215 0.00
net .*/qemu((/include)?(/hw)?/(net|rdma)/.*) No 66,843 0.10
pci .*/qemu(/include)?/hw/(cxl/|pci).* No 29,085 0.03
qemu-ga .*/qemu(/qga/.*) No 5,550 0.00
scsi .*/qemu(/scsi/.*|/hw/scsi/.*|/include/hw/scsi/.*) No 20,958 0.14
trace .*/qemu(/.*trace.*\.[ch]) No 4,880 0.00
ui .*/qemu((/include)?(/ui|/hw/display|/hw/input)/.*) No 64,857 0.09
usb .*/qemu(/hw/usb/.*|/include/hw/usb/.*) No 32,468 0.06
user .*/qemu(/linux-user/.*|/bsd-user/.*|/user-exec\.c|/thunk\.c|/include/user/.*) No 44,493 0.11
util .*/qemu(/util/.*|/include/qemu/.*) No 27,018 0.00
vfio .*/qemu(/include)?/hw/vfio/.* No 10,883 0.00
virtio .*/qemu(/include)?/hw/virtio/.* No 26,542 0.23
xen .*/qemu(.*/xen.*) No 12,647 0.00
hvf .*/qemu(.*/hvf.*) No 37 0.00
kvm .*/qemu(.*/kvm.*) No 5,264 0.19
tcg .*/qemu(/accel/tcg|/replay|/tcg)/.* No 32,656 0.00
sysemu .*/qemu(/system/.*|/accel/.*) No 16,564 0.06
(headers) .*/qemu(/include/.*) No 32,948 0.00
testlibs .*/qemu(/tests/qtest(/libqos/.*|/libqtest.*|/libqmp.*)) No 11,980 0.00
tests .*/qemu(/tests/.*) No 85,816 0.75
Other .* No 1,169,863 0.01

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 200
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