Coverity Scan: QEMU

Project Name QEMU
Lines of code analyzed 2,898,633
On Coverity Scan since Apr 17, 2013
Last build analyzed 25 minutes 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-rc3

Dec 05, 2024
Last Analyzed
2,898,633
Lines of Code Analyzed
0.04
Defect Density

Defect changes since previous build dated Dec 04, 2024

0
Newly detected
0
Eliminated

Defects by status for current build

6,380
Total defects
126
Outstanding
4,074
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,342 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 169,786 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,643 0.00
hppa .*/qemu((/include)?/hw/hppa/.*|/target/hppa/.*) No 7,112 0.00
i386 .*/qemu((/include)?/hw/i386/.*|/target/i386/.*|/hw/intc/[^/]*apic[^/]*\.c) No 69,032 0.03
loongarch .*/qemu((/include)?/hw/(loongarch/.*|.*/loongarch.*)|/target/loongarch/.*) No 19,961 0.10
m68k .*/qemu((/include)?/hw/m68k/.*|/target/m68k/.*|(/include)?/hw(/.*)?/mcf.*|(/include)?/hw/nubus/.*) No 16,635 0.00
microblaze .*/qemu((/include)?/hw/microblaze/.*|/target/microblaze/.*) No 3,743 0.00
mips .*/qemu((/include)?/hw/mips/.*|/target/mips/.*) No 51,551 0.02
openrisc .*/qemu((/include)?/hw/openrisc/.*|/target/openrisc/.*) No 3,894 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,775 0.00
riscv .*/qemu((/include)?/hw/riscv/.*|/target/riscv/.*|/hw/.*/(riscv_|ibex_|sifive_).*) No 46,315 0.17
rx .*/qemu((/include)?/hw/rx/.*|/target/rx/.*) No 4,219 0.00
s390 .*/qemu((/include)?/hw/s390x/.*|/target/s390x/.*|/hw/.*/s390_.*) No 37,271 0.03
sh4 .*/qemu((/include)?/hw/sh4/.*|/target/sh4/.*) No 5,804 0.00
sparc .*/qemu((/include)?/hw/sparc(64)?.*|/target/sparc/.*|/hw/.*/grlib.*|/hw/display/cg3.c) No 16,064 0.00
tricore .*/qemu((/include)?/hw/tricore/.*|/target/tricore/.*) No 12,844 0.08
xtensa .*/qemu((/include)?/hw/xtensa/.*|/target/xtensa/.*) No 337,727 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,808 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,316 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,731 0.10
pci .*/qemu(/include)?/hw/(cxl/|pci).* No 29,040 0.03
qemu-ga .*/qemu(/qga/.*) No 5,534 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,473 0.06
user .*/qemu(/linux-user/.*|/bsd-user/.*|/user-exec\.c|/thunk\.c|/include/user/.*) No 44,492 0.11
util .*/qemu(/util/.*|/include/qemu/.*) No 27,017 0.00
vfio .*/qemu(/include)?/hw/vfio/.* No 10,883 0.00
virtio .*/qemu(/include)?/hw/virtio/.* No 26,535 0.23
xen .*/qemu(.*/xen.*) No 12,647 0.00
hvf .*/qemu(.*/hvf.*) No 37 0.00
kvm .*/qemu(.*/kvm.*) No 5,258 0.19
tcg .*/qemu(/accel/tcg|/replay|/tcg)/.* No 32,655 0.00
sysemu .*/qemu(/system/.*|/accel/.*) No 16,545 0.06
(headers) .*/qemu(/include/.*) No 32,780 0.00
testlibs .*/qemu(/tests/qtest(/libqos/.*|/libqtest.*|/libqmp.*)) No 11,969 0.00
tests .*/qemu(/tests/.*) No 85,305 0.75
Other .* No 1,166,887 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