Coverity Scan: QEMU

Project Name QEMU
Lines of code analyzed 2,250,537
On Coverity Scan since Apr 17, 2013
Last build analyzed about 3 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-rc3-11-gcc29723541

Nov 30, 2020
Last Analyzed
2,250,537
Lines of Code Analyzed
2,151,501
Lines of Code in Selected Components
0.10
Defect Density

Defect changes since previous build dated Nov 29, 2020

0
Newly detected
0
Eliminated

Defects by status for current build

2,038
Total defects
214
Outstanding
1,285
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,395 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 152,558 0.00
avr (/qemu)?((/include)?/hw/avr/.*|/target/avr/.*) No 3,340 0.00
cris (/qemu)?((/include)?/hw/cris/.*|/target/cris/.*) No 6,158 0.00
hppa (/qemu)?(/target/hppa/.*) No 5,451 0.00
i386 (/qemu)?((/include)?/hw/i386/.*|/target/i386/.*|/hw/intc/[^/]*apic[^/]*\.c) No 53,010 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,305 0.20
microblaze (/qemu)?((/include)?/hw/microblaze/.*|/target/microblaze/.*) No 0 N/A
mips (/qemu)?((/include)?/hw/mips/.*|/target/mips/.*) No 51,786 0.00
nios2 (/qemu)?((/include)?/hw/nios2/.*|/target/nios2/.*) No 2,312 0.43
ppc (/qemu)?((/include)?/hw/ppc/.*|/target/ppc/.*|/hw/pci-host/(uninorth.*|dec.*|prep.*|ppc.*)|/hw/misc/macio/.*|(/include)?/hw/.*/(xics|openpic|spapr).*) No 82,098 0.02
riscv (/qemu)?((/include)?/hw/riscv/.*|/target/riscv/.*) No 18,285 0.00
rx (/qemu)?((/include)?/hw/rx/.*|/target/rx/.*) No 4,353 0.00
s390 (/qemu)?((/include)?/hw/s390x/.*|/target/s390x/.*|/hw/.*/s390_.*) No 34,849 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,637 0.06
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,767 0.00
audio (/qemu)?((/include)?/(audio|hw/audio)/.*) No 17,783 0.00
block (/qemu)?(/block.*|(/include?)(/hw)?/(block|storage-daemon)/.*|(/include)?/hw/ide/.*|/qemu-(img|io).*|/util/(aio|async|thread-pool).*) No 86,144 0.01
char (/qemu)?(/qemu-char\.c|/include/sysemu/char\.h|(/include)?/hw/char/.*) No 8,939 0.00
capstone (/qemu)?(/capstone/.*) No 0 N/A
crypto (/qemu)?((/include)?/crypto/.*|/hw/.*/crypto.*) No 8,861 0.00
disas (/qemu)?((/include)?/disas.*) No 64,650 0.00
fpu (/qemu)?((/include)?(/fpu|/libdecnumber)/.*) No 15,991 0.00
io (/qemu)?((/include)?/io/.*) No 4,515 0.00
ipmi (/qemu)?((/include)?/hw/ipmi/.*) No 4,031 0.00
libvixl (/qemu)?(/disas/libvixl/.*) No 0 N/A
migration (/qemu)?((/include)?/migration/.*) No 19,595 0.00
monitor (/qemu)?(/qapi.*|/qobject/.*|/monitor\..*|/[hq]mp\..*) No 69,096 0.00
nbd (/qemu)?(/nbd/.*|/include/block/nbd.*|/qemu-nbd\.c) No 4,277 0.00
net (/qemu)?((/include)?(/hw)?/(net|rdma)/.*) No 56,239 0.02
pci (/qemu)?(/hw/pci.*|/include/hw/pci.*) No 16,558 0.00
qemu-ga (/qemu)?(/qga/.*) No 11,379 0.00
scsi (/qemu)?(/scsi/.*|/hw/scsi/.*|/include/hw/scsi/.*) No 19,364 0.00
slirp (/qemu)?(/.*slirp.*) No 10,214 0.00
tcg (/qemu)?(/accel/tcg/.*|/replay/.*|/(.*/)?softmmu.*) No 23,676 0.00
trace (/qemu)?(/.*trace.*\.[ch]) No 134,469 0.00
ui (/qemu)?((/include)?(/ui|/hw/display|/hw/input)/.*) No 61,580 0.00
usb (/qemu)?(/hw/usb/.*|/include/hw/usb/.*) No 32,603 0.00
user (/qemu)?(/linux-user/.*|/bsd-user/.*|/user-exec\.c|/thunk\.c|/include/exec/user/.*) No 43,788 0.05
util (/qemu)?(/util/.*|/include/qemu/.*) No 24,224 0.00
xen (/qemu)?(.*/xen.*) No 16,922 0.00
virtiofsd (/qemu)?(/tools/virtiofsd/.*) No 7,462 0.00
(headers) (/qemu)?(/include/.*) No 30,874 0.00
testlibs (/qemu)?(/tests/qtest(/libqos/.*|/libqtest.*)) No 8,836 0.11
tests (/qemu)?(/tests/.*) Yes 99,036 N/A
Other .* No 868,400 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 5
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