Coverity Scan: QEMU

Project Name QEMU
Lines of code analyzed 2,598,753
On Coverity Scan since Apr 17, 2013
Last build analyzed about 5 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: v7.1.0-rc1-49-g1ef91d9cf1

Aug 09, 2022
Last Analyzed
2,598,753
Lines of Code Analyzed
2,587,610
Lines of Code in Selected Components
0.06
Defect Density

Defect changes since previous build dated Aug 08, 2022

1
Newly detected
3
Eliminated

Defects by status for current build

4,754
Total defects
163
Outstanding
3,786
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,457 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 172,949 0.00
avr (/qemu)?((/include)?/hw/avr/.*|/target/avr/.*) No 3,328 0.00
cris (/qemu)?((/include)?/hw/cris/.*|/target/cris/.*) No 6,167 0.00
i386 (/qemu)?((/include)?/hw/i386/.*|/target/i386/.*|/hw/intc/[^/]*apic[^/]*\.c) No 56,633 0.09
m68k (/qemu)?((/include)?/hw/m68k/.*|/target/m68k/.*|(/include)?/hw(/.*)?/mcf.*) No 16,062 0.00
mips (/qemu)?((/include)?/hw/mips/.*|/target/mips/.*) No 50,611 0.06
nios2 (/qemu)?((/include)?/hw/nios2/.*|/target/nios2/.*) No 2,633 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 86,217 0.01
rx (/qemu)?((/include)?/hw/rx/.*|/target/rx/.*) No 4,335 0.00
s390 (/qemu)?((/include)?/hw/s390x/.*|/target/s390x/.*|/hw/.*/s390_.*) No 36,647 0.00
sh4 (/qemu)?((/include)?/hw/sh4/.*|/target/sh4/.*) No 5,965 0.00
sparc (/qemu)?((/include)?/hw/sparc(64)?.*|/target/sparc/.*|/hw/.*/grlib.*|/hw/display/cg3.c) No 16,627 0.00
tricore (/qemu)?((/include)?/hw/tricore/.*|/target/tricore/.*) No 13,031 0.00
9pfs (/qemu)?(/hw/9pfs/.*|/fsdev/.*) No 11,078 0.00
audio (/qemu)?((/include)?/(audio|hw/audio)/.*) No 17,984 0.00
block (/qemu)?(/block.*|(/include?)(/hw)?/(block|storage-daemon)/.*|(/include)?/hw/ide/.*|/qemu-(img|io).*|/util/(aio|async|thread-pool).*) No 91,185 0.02
char (/qemu)?(/qemu-char\.c|/include/sysemu/char\.h|(/include)?/hw/char/.*) No 9,764 0.00
crypto (/qemu)?((/include)?/crypto/.*|/hw/.*/crypto.*) No 8,937 0.00
disas (/qemu)?((/include)?/disas.*) No 39,459 0.00
fpu (/qemu)?((/include)?(/fpu|/libdecnumber)/.*) No 15,088 0.00
io (/qemu)?((/include)?/io/.*) No 4,971 0.20
ipmi (/qemu)?((/include)?/hw/ipmi/.*) No 4,044 0.25
migration (/qemu)?((/include)?/migration/.*) No 21,834 0.00
monitor (/qemu)?(/qapi.*|/qobject/.*|/monitor\..*|/[hq]mp\..*) No 91,111 0.00
nbd (/qemu)?(/nbd/.*|/include/block/nbd.*|/qemu-nbd\.c) No 4,728 0.00
net (/qemu)?((/include)?(/hw)?/(net|rdma)/.*) No 59,565 0.03
pci (/qemu)?(/hw/pci.*|/include/hw/pci.*) No 20,715 0.05
qemu-ga (/qemu)?(/qga/.*) No 13,315 0.00
scsi (/qemu)?(/scsi/.*|/hw/scsi/.*|/include/hw/scsi/.*) No 20,376 0.00
trace (/qemu)?(/.*trace.*\.[ch]) No 207,343 0.00
ui (/qemu)?((/include)?(/ui|/hw/display|/hw/input)/.*) No 66,058 0.08
usb (/qemu)?(/hw/usb/.*|/include/hw/usb/.*) No 34,279 0.00
user (/qemu)?(/linux-user/.*|/bsd-user/.*|/user-exec\.c|/thunk\.c|/include/exec/user/.*) No 45,128 0.00
util (/qemu)?(/util/.*|/include/qemu/.*) No 26,260 0.00
xen (/qemu)?(.*/xen.*) No 17,065 0.00
virtiofsd (/qemu)?(/tools/virtiofsd/.*) No 8,178 0.24
(headers) (/qemu)?(/include/.*) No 36,055 0.00
testlibs (/qemu)?(/tests/qtest(/libqos/.*|/libqtest.*)) No 9,571 0.10
tests (/qemu)?(/tests/.*) No 112,727 0.85
hppa (/qemu)?((/include)?/hw/hppa/.*|/target/hppa/.*) No 5,824 0.00
hexagon (/qemu)?(/target/hexagon/.*) No 108,429 0.00
hvf (/qemu)?(.*/hvf.*) No 0 N/A
kvm (/qemu)?(.*/kvm.*) No 5,340 0.37
sysemu (/qemu)?(/softmmu/.*|/accel/.*) No 23,879 0.04
tcg (/qemu)?(/accel/tcg/|/replay/|tcg/).* No 1,656 0.00
microblaze (/qemu)?((/include)?/hw/microblaze/.*|/target/microblaze/.*) No 3,730 0.00
capstone (/qemu)?(/capstone/.*) No 0 N/A
loongarch (/qemu)?((/include)?/hw/(loongarch/.*|.*/loongarch.*)|/target/loongarch/.*) No 7,684 0.00
slirp (/qemu)?(/slirp/.*) Yes 11,143 N/A
Other .* No 957,744 0.02

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