Coverity Scan: QEMU

Project Name QEMU
Lines of code analyzed 2,901,906
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.2.0-746-g2b7a80e07a

Dec 29, 2024
Last Analyzed
2,901,906
Lines of Code Analyzed
0.04
Defect Density

Defect changes since previous build dated Dec 27, 2024

0
Newly detected
2
Eliminated

Defects by status for current build

6,382
Total defects
127
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,348 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,094 0.01
avr .*/qemu((/include)?/hw/avr/.*|/target/avr/.*) No 3,219 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,202 0.00
hppa .*/qemu((/include)?/hw/hppa/.*|/target/hppa/.*) No 7,123 0.00
i386 .*/qemu((/include)?/hw/i386/.*|/target/i386/.*|/hw/intc/[^/]*apic[^/]*\.c) No 69,074 0.03
loongarch .*/qemu((/include)?/hw/(loongarch/.*|.*/loongarch.*)|/target/loongarch/.*) No 20,152 0.10
m68k .*/qemu((/include)?/hw/m68k/.*|/target/m68k/.*|(/include)?/hw(/.*)?/mcf.*|(/include)?/hw/nubus/.*) No 16,636 0.00
microblaze .*/qemu((/include)?/hw/microblaze/.*|/target/microblaze/.*) No 3,748 0.00
mips .*/qemu((/include)?/hw/mips/.*|/target/mips/.*) No 51,586 0.02
openrisc .*/qemu((/include)?/hw/openrisc/.*|/target/openrisc/.*) No 3,900 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,756 0.00
riscv .*/qemu((/include)?/hw/riscv/.*|/target/riscv/.*|/hw/.*/(riscv_|ibex_|sifive_).*) No 47,059 0.17
rx .*/qemu((/include)?/hw/rx/.*|/target/rx/.*) No 4,224 0.00
s390 .*/qemu((/include)?/hw/s390x/.*|/target/s390x/.*|/hw/.*/s390_.*) No 37,943 0.03
sh4 .*/qemu((/include)?/hw/sh4/.*|/target/sh4/.*) No 5,811 0.00
sparc .*/qemu((/include)?/hw/sparc(64)?.*|/target/sparc/.*|/hw/.*/grlib.*|/hw/display/cg3.c) No 16,070 0.00
tricore .*/qemu((/include)?/hw/tricore/.*|/target/tricore/.*) No 12,842 0.08
xtensa .*/qemu((/include)?/hw/xtensa/.*|/target/xtensa/.*) No 337,732 0.00
9pfs .*/qemu(/hw/9pfs/.*|/fsdev/.*) No 8,979 0.00
audio .*/qemu((/include)?/(audio|hw/audio)/.*) No 21,170 0.05
block .*/qemu(/block.*|(/include?)/(block|storage-daemon)/.*|(/include)?/hw/(block|ide|nvme)/.*|/qemu-(img|io).*|/util/(aio|async|thread-pool).*) No 115,775 0.03
char .*/qemu((/include)?/hw/char/.*) No 9,782 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,107 0.00
disas .*/qemu((/include)?/disas.*) No 36,324 0.00
fpu .*/qemu((/include)?(/fpu|/libdecnumber)/.*) No 15,176 0.00
io .*/qemu((/include)?/io/.*) No 5,317 0.00
ipmi .*/qemu((/include)?/hw/ipmi/.*) No 4,039 0.00
migration .*/qemu((/include)?/migration/.*) No 23,477 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,808 0.10
pci .*/qemu(/include)?/hw/(cxl/|pci).* No 29,049 0.03
qemu-ga .*/qemu(/qga/.*) No 5,550 0.00
scsi .*/qemu(/scsi/.*|/hw/scsi/.*|/include/hw/scsi/.*) No 20,949 0.14
trace .*/qemu(/.*trace.*\.[ch]) No 4,880 0.00
ui .*/qemu((/include)?(/ui|/hw/display|/hw/input)/.*) No 64,824 0.09
usb .*/qemu(/hw/usb/.*|/include/hw/usb/.*) No 32,438 0.06
user .*/qemu(/linux-user/.*|/bsd-user/.*|/user-exec\.c|/thunk\.c|/include/user/.*) No 44,587 0.11
util .*/qemu(/util/.*|/include/qemu/.*) No 27,024 0.00
vfio .*/qemu(/include)?/hw/vfio/.* No 10,948 0.09
virtio .*/qemu(/include)?/hw/virtio/.* No 26,528 0.23
xen .*/qemu(.*/xen.*) No 12,631 0.00
hvf .*/qemu(.*/hvf.*) No 37 0.00
kvm .*/qemu(.*/kvm.*) No 5,280 0.19
tcg .*/qemu(/accel/tcg|/replay|/tcg)/.* No 32,745 0.00
sysemu .*/qemu(/system/.*|/accel/.*) No 16,580 0.06
(headers) .*/qemu(/include/.*) No 33,135 0.00
testlibs .*/qemu(/tests/qtest(/libqos/.*|/libqtest.*|/libqmp.*)) No 11,980 0.00
tests .*/qemu(/tests/.*) No 85,824 0.75
Other .* No 1,169,903 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 202
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