Coverity Scan: QEMU

Project Name QEMU
Lines of code analyzed 2,514,779
On Coverity Scan since Apr 17, 2013
Last build analyzed about 16 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: v6.2.0-1129-g2b4ee7eb74

Jan 28, 2022
Last Analyzed
2,514,779
Lines of Code Analyzed
0.05
Defect Density

Defect changes since previous build dated Jan 11, 2022

6
Newly detected
1
Eliminated

Defects by status for current build

4,506
Total defects
121
Outstanding
3,677
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,460 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,582 0.00
avr (/qemu)?((/include)?/hw/avr/.*|/target/avr/.*) No 3,339 0.00
cris (/qemu)?((/include)?/hw/cris/.*|/target/cris/.*) No 6,168 0.00
i386 (/qemu)?((/include)?/hw/i386/.*|/target/i386/.*|/hw/intc/[^/]*apic[^/]*\.c) No 55,785 0.00
m68k (/qemu)?((/include)?/hw/m68k/.*|/target/m68k/.*|(/include)?/hw(/.*)?/mcf.*) No 16,022 0.00
mips (/qemu)?((/include)?/hw/mips/.*|/target/mips/.*) No 50,461 0.06
nios2 (/qemu)?((/include)?/hw/nios2/.*|/target/nios2/.*) No 2,268 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 83,628 0.02
rx (/qemu)?((/include)?/hw/rx/.*|/target/rx/.*) No 4,326 0.00
s390 (/qemu)?((/include)?/hw/s390x/.*|/target/s390x/.*|/hw/.*/s390_.*) No 36,080 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,629 0.00
tricore (/qemu)?((/include)?/hw/tricore/.*|/target/tricore/.*) No 13,034 0.00
9pfs (/qemu)?(/hw/9pfs/.*|/fsdev/.*) No 10,890 0.00
audio (/qemu)?((/include)?/(audio|hw/audio)/.*) No 18,014 0.00
block (/qemu)?(/block.*|(/include?)(/hw)?/(block|storage-daemon)/.*|(/include)?/hw/ide/.*|/qemu-(img|io).*|/util/(aio|async|thread-pool).*) No 89,104 0.04
char (/qemu)?(/qemu-char\.c|/include/sysemu/char\.h|(/include)?/hw/char/.*) No 9,759 0.00
crypto (/qemu)?((/include)?/crypto/.*|/hw/.*/crypto.*) No 8,476 0.00
disas (/qemu)?((/include)?/disas.*) No 64,781 0.00
fpu (/qemu)?((/include)?(/fpu|/libdecnumber)/.*) No 14,911 0.00
io (/qemu)?((/include)?/io/.*) No 4,653 0.00
ipmi (/qemu)?((/include)?/hw/ipmi/.*) No 4,030 0.00
libvixl (/qemu)?(/disas/libvixl/.*) No 0 N/A
migration (/qemu)?((/include)?/migration/.*) No 21,312 0.00
monitor (/qemu)?(/qapi.*|/qobject/.*|/monitor\..*|/[hq]mp\..*) No 86,687 0.02
nbd (/qemu)?(/nbd/.*|/include/block/nbd.*|/qemu-nbd\.c) No 4,680 0.00
net (/qemu)?((/include)?(/hw)?/(net|rdma)/.*) No 59,144 0.02
pci (/qemu)?(/hw/pci.*|/include/hw/pci.*) No 18,986 0.00
qemu-ga (/qemu)?(/qga/.*) No 11,589 0.00
scsi (/qemu)?(/scsi/.*|/hw/scsi/.*|/include/hw/scsi/.*) No 20,212 0.00
slirp (/qemu)?(/.*slirp.*) No 95 0.00
trace (/qemu)?(/.*trace.*\.[ch]) No 199,690 0.00
ui (/qemu)?((/include)?(/ui|/hw/display|/hw/input)/.*) No 65,198 0.00
usb (/qemu)?(/hw/usb/.*|/include/hw/usb/.*) No 34,252 0.00
user (/qemu)?(/linux-user/.*|/bsd-user/.*|/user-exec\.c|/thunk\.c|/include/exec/user/.*) No 44,144 0.02
util (/qemu)?(/util/.*|/include/qemu/.*) No 25,865 0.08
xen (/qemu)?(.*/xen.*) No 16,988 0.00
virtiofsd (/qemu)?(/tools/virtiofsd/.*) No 7,749 0.00
(headers) (/qemu)?(/include/.*) No 32,865 0.00
testlibs (/qemu)?(/tests/qtest(/libqos/.*|/libqtest.*)) No 9,506 0.11
tests (/qemu)?(/tests/.*) No 106,935 0.91
hppa (/qemu)?((/include)?/hw/hppa/.*|/target/hppa/.*) No 6,570 0.00
hexagon (/qemu)?(/target/hexagon/.*) No 108,455 0.00
hvf (/qemu)?(.*/hvf.*) No 0 N/A
kvm (/qemu)?(.*/kvm.*) No 4,911 0.00
sysemu (/qemu)?(/softmmu/.*|/accel/.*) No 23,451 0.00
tcg (/qemu)?(/accel/tcg/|/replay/|tcg/).* No 1,676 0.00
microblaze (/qemu)?((/include)?/hw/microblaze/.*|/target/microblaze/.*) No 3,729 0.00
capstone (/qemu)?(/capstone/.*) No 0 N/A
Other .* No 907,511 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 9
676 Use of Potentially Dangerous Function 1
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