Coverity Scan: QEMU

Project Name QEMU
Lines of code analyzed 2,272,898
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: v5.2.0-1342-gf7e591b2b0

Jan 24, 2021
Last Analyzed
2,272,898
Lines of Code Analyzed
2,172,832
Lines of Code in Selected Components
0.06
Defect Density

Defect changes since previous build dated Jan 23, 2021

0
Newly detected
3
Eliminated

Defects by status for current build

2,048
Total defects
140
Outstanding
1,304
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,399 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 154,099 0.00
avr (/qemu)?((/include)?/hw/avr/.*|/target/avr/.*) No 3,342 0.00
cris (/qemu)?((/include)?/hw/cris/.*|/target/cris/.*) No 6,160 0.00
hppa (/qemu)?(/target/hppa/.*) No 5,452 0.00
i386 (/qemu)?((/include)?/hw/i386/.*|/target/i386/.*|/hw/intc/[^/]*apic[^/]*\.c) No 53,284 0.00
lm32 (/qemu)?((/include)?/hw/lm32/.*|/target/lm32/.*|/hw/.*/(milkymist|lm32).*) No 0 N/A
m68k (/qemu)?((/include)?/hw/m68k/.*|/target/m68k/.*|(/include)?/hw(/.*)?/mcf.*) No 15,578 0.00
microblaze (/qemu)?((/include)?/hw/microblaze/.*|/target/microblaze/.*) No 0 N/A
mips (/qemu)?((/include)?/hw/mips/.*|/target/mips/.*) No 52,704 0.00
nios2 (/qemu)?((/include)?/hw/nios2/.*|/target/nios2/.*) No 2,290 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 81,774 0.00
riscv (/qemu)?((/include)?/hw/riscv/.*|/target/riscv/.*) No 18,388 0.00
rx (/qemu)?((/include)?/hw/rx/.*|/target/rx/.*) No 4,354 0.00
s390 (/qemu)?((/include)?/hw/s390x/.*|/target/s390x/.*|/hw/.*/s390_.*) No 34,867 0.00
sh4 (/qemu)?((/include)?/hw/sh4/.*|/target/sh4/.*) No 6,085 0.00
sparc (/qemu)?((/include)?/hw/sparc(64)?.*|/target/sparc/.*|/hw/.*/grlib.*|/hw/display/cg3.c) No 16,728 0.00
tilegx (/qemu)?(/target/tilegx/.*) No 0 N/A
tricore (/qemu)?((/include)?/hw/tricore/.*|/target/tricore/.*) No 12,642 0.00
unicore32 (/qemu)?((/include)?/hw/unicore32/.*|/target/unicore32/.*) No 0 N/A
9pfs (/qemu)?(/hw/9pfs/.*|/fsdev/.*) No 10,811 0.00
audio (/qemu)?((/include)?/(audio|hw/audio)/.*) No 17,986 0.00
block (/qemu)?(/block.*|(/include?)(/hw)?/(block|storage-daemon)/.*|(/include)?/hw/ide/.*|/qemu-(img|io).*|/util/(aio|async|thread-pool).*) No 86,952 0.01
char (/qemu)?(/qemu-char\.c|/include/sysemu/char\.h|(/include)?/hw/char/.*) No 9,041 0.00
capstone (/qemu)?(/capstone/.*) No 0 N/A
crypto (/qemu)?((/include)?/crypto/.*|/hw/.*/crypto.*) No 8,883 0.00
disas (/qemu)?((/include)?/disas.*) No 64,656 0.00
fpu (/qemu)?((/include)?(/fpu|/libdecnumber)/.*) No 15,991 0.00
io (/qemu)?((/include)?/io/.*) No 4,576 0.00
ipmi (/qemu)?((/include)?/hw/ipmi/.*) No 4,032 0.00
libvixl (/qemu)?(/disas/libvixl/.*) No 0 N/A
migration (/qemu)?((/include)?/migration/.*) No 19,864 0.00
monitor (/qemu)?(/qapi.*|/qobject/.*|/monitor\..*|/[hq]mp\..*) No 70,294 0.00
nbd (/qemu)?(/nbd/.*|/include/block/nbd.*|/qemu-nbd\.c) No 4,408 0.00
net (/qemu)?((/include)?(/hw)?/(net|rdma)/.*) No 57,546 0.00
pci (/qemu)?(/hw/pci.*|/include/hw/pci.*) No 16,660 0.00
qemu-ga (/qemu)?(/qga/.*) No 11,468 0.00
scsi (/qemu)?(/scsi/.*|/hw/scsi/.*|/include/hw/scsi/.*) No 19,735 0.00
slirp (/qemu)?(/.*slirp.*) No 10,220 0.00
tcg (/qemu)?(/accel/tcg/.*|/replay/.*|/(.*/)?softmmu.*) No 24,081 0.00
trace (/qemu)?(/.*trace.*\.[ch]) No 144,592 0.00
ui (/qemu)?((/include)?(/ui|/hw/display|/hw/input)/.*) No 62,025 0.00
usb (/qemu)?(/hw/usb/.*|/include/hw/usb/.*) No 34,093 0.00
user (/qemu)?(/linux-user/.*|/bsd-user/.*|/user-exec\.c|/thunk\.c|/include/exec/user/.*) No 43,973 0.00
util (/qemu)?(/util/.*|/include/qemu/.*) No 24,602 0.00
xen (/qemu)?(.*/xen.*) No 16,953 0.00
virtiofsd (/qemu)?(/tools/virtiofsd/.*) No 7,371 0.00
(headers) (/qemu)?(/include/.*) No 31,256 0.00
testlibs (/qemu)?(/tests/qtest(/libqos/.*|/libqtest.*)) No 8,834 0.00
tests (/qemu)?(/tests/.*) Yes 100,066 N/A
Other .* No 868,682 0.01

CWE Top 25 defects

ID CWE-Name Number of Defects
120 Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') 2
190 Integer Overflow or Wraparound 9
676 Use of Potentially Dangerous Function 6
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