Coverity Scan: Firefox

Project Name Firefox
Lines of code analyzed 10,075,310
On Coverity Scan since Feb 22, 2006
Last build analyzed about 6 hours ago
   
Language C/C++
Repository URL https://hg.mozilla.org/mozilla-central
Homepage URL https://www.mozilla.org
License MPL (Mozilla Public License )

Want to view defects or help fix defects?

 Add me to project

Analysis Metrics

Version: Version

Mar 22, 2026
Last Analyzed
10,075,310
Lines of Code Analyzed
9,042,207
Lines of Code in Selected Components
0.50
Defect Density

Defect changes since previous build dated Mar 21, 2026

1
Newly detected
2
Eliminated

Defects by status for current build

49,845
Total defects
4,527
Outstanding
43,971
Fixed
See how defect density for 'Firefox' 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
layout /layout/.* No 259,922 0.41
xpcom /xpcom/.* No 80,027 0.50
dom-indexedDB /dom/indexedDB/.* No 31,716 0.38
dom-workers /dom/workers/.* No 22,186 0.72
PSM /security/manager/.* No 27,458 1.46
image /image/.* No 34,462 0.41
nsprpub /nsprpub/.* No 34,964 1.74
parser /parser/.* No 52,966 0.26
security /security/.* No 360,041 0.78
storage /storage/.* No 9,282 0.11
docshell /docshell/.* No 27,017 0.81
editor /editor/.* No 85,160 0.21
accessible /accessible/.* No 46,432 0.24
extensions /extensions/.* No 24,218 0.91
memory /memory/.* No 10,376 2.60
brotli /modules/brotli/.* No 33,348 1.11
libmar /modules/libmar/.* No 2,942 4.42
modules /modules/.* No 36,328 0.61
toolkit /toolkit/.* No 324,424 0.62
widget /widget/.* No 79,452 0.37
xpfe /xpfe/.* No 4,814 0.00
generated-test-files .*/dom/bindings/Test*.cpp No 209,366 0.08
dom-canvas /dom/canvas/.* No 53,556 0.65
IPC-dom-plugin /dom/plugins/ipc/.* No 0 N/A
dom-plugins /dom/plugins/.* No 0 N/A
dom-html /dom/html/.* No 34,276 0.93
dom-xslt /dom/xslt/.* No 18,425 1.41
dom-media /dom/media/.* No 297,996 0.98
dom-promise /dom/promise/.* No 1,297 2.31
dom-svg /dom/svg/.* No 26,010 1.00
dom-crypto /dom/crypto/.* No 4,480 0.00
dom-xbl /dom/xbl/.* No 0 N/A
IPC-dom /dom/ipc/.* No 33,016 0.48
content /(content|dom)/.* No 443,552 0.48
JavaScript-jit /js/src/jit/.* No 207,423 0.23
JavaScript-asmjs /js/src/asmjs/.* No 0 N/A
JavaScript-xpconnect /js/xpconnect/.* No 29,362 0.58
JavaScript-ctypes /js/src/ctypes/.* No 13,011 1.00
JavaScript-frontend /js/src/frontend/.* No 56,348 0.43
JavaScript-jsapi-tests /js/src/jsapi-tests/.* Yes 0 N/A
JavaScript-proxy /js/src/proxy/.* No 3,632 0.28
JavaScript-shell /js/src/shell/.* No 0 N/A
JavaScript-vm /js/src/vm/.* No 111,655 0.42
IPC-js /js/ipc/.* No 0 N/A
JavaScript /js/.* No 333,622 0.34
gfx-cairo /gfx/cairo/.* Yes 127,680 N/A
skia /gfx/skia/skia/.* Yes 196,512 N/A
gfx-gl /gfx/gl/.* No 24,649 0.32
gfx-graphite2 /gfx/graphite2/.* No 12,219 1.31
IPC-gfx-layers /gfx/layers/ipc/.* No 11,729 0.94
gfx-layers /gfx/layers/.* No 53,158 0.66
gfx-thebes /gfx/thebes/.* No 53,266 0.83
gfx /gfx/.* No 344,774 0.97
network-cache /netwerk/cache/.* No 0 N/A
network-cache2 /netwerk/cache2/.* No 20,540 0.54
network-dns /netwerk/dns/.* No 12,558 0.24
network-websocket /netwerk/protocol/websocket/.* No 6,583 0.61
network-http /netwerk/protocol/http/.* No 78,809 0.46
IPC-netwerk /netwerk/ipc/.* No 7,910 0.63
netwerk-srtp /netwerk/srtp/.* No 0 N/A
network-sctp /netwerk/sctp/.* No 76,447 2.03
network /netwerk/.* No 76,913 0.33
media-libjpeg /media/libjpeg/.* No 27,692 0.94
media-libstagefright /media/libstagefright/.* No 0 N/A
media-libvorbis /media/libvorbis/.* No 49,853 0.14
media-mtransport /media/mtransport/.* No 0 N/A
media-libvpx /media/libvpx/.* Yes 125,519 N/A
intl-icu /intl/icu/.* Yes 243,755 N/A
aom-thirdparty /third_party/aom/.* Yes 282,226 N/A
media-libopus /media/libopus/.* Yes 41,938 N/A
media-webrtc /media/webrtc/.* Yes 0 N/A
sqlite-thirdparty /db/sqlite3/.* Yes 0 N/A
media-mtransport-thirdparty /media/mtransport/third_party/.* Yes 0 N/A
media /media/.* No 259,234 0.34
intl /intl/.* No 20,694 0.10
IPC-chromium /ipc/chromium/.* No 42,767 0.80
IPC-glue /ipc/glue/.* No 17,263 0.46
IPC .*/ipc/.* No 568,403 0.68
tools-profiler /tools/profiler/.* No 24,139 1.24
uriloader /uriloader/.* No 10,645 0.19
view /view/.* No 0 N/A
caps /caps/.* No 5,572 0.00
hal /hal/.* No 1,384 1.45
embedding /embedding/.* No 0 N/A
testing /testing/.* No 1,400 3.57
headers /obj-x86_64-pc-linux-gnu/dist/include/.* No 912,550 0.45
build-time /obj-x86_64-pc-linux-gnu/.* No 1,507,218 0.09
hunspell /extensions/spellcheck/hunspell/.* No 0 N/A
google-breakpad /toolkit/crashreporter/google-breakpad/.* No 0 N/A
protocol-buffer /toolkit/components/protobuf/src/google/protobuf/.* No 0 N/A
devtools /devtools/.* No 6,214 0.16
webapprt /webapprt/.* No 0 N/A
build-unix /build/unix/.* No 521 11.52
browser /browser/.* No 1,956 2.56
config /config/.* No 529 9.45
tools /tools/.* No 1,144 4.37
mfbt /mfbt/tests/.* Yes 15,473 N/A
NSS /security/nss/.* Yes 0 N/A
system-header /usr/include/.* Yes 0 N/A
snappy /other-licenses/snappy/.* No 2,626 0.76
rdf /rdf/.* No 0 N/A
configure-gen .*conftest\..*.cpp Yes 0 N/A
jpeg-xl /third_party/jpeg-xl/.* No 0 N/A
libwebrtc /third_parth/libwebrtc/.* No 0 N/A
dav1d /third_parth/dav1d/.* No 0 N/A
lz4 /mfbt/lz4/.* No 0 N/A
mozglue /mozglue/.* No 37,766 0.50
glslopt /third_party/rust/glslopt/.* No 111,014 0.53
sqlite3 /third_party/sqlite3/.* No 198,310 0.35
wayland-proxy /third_party/wayland-proxy/.* No 874 8.01
zstd /third_party/zstd/.* No 12,394 0.56
lmdb-rkv-sys /third_party/rust/lmdb-rkv-sys/.* No 0 N/A
chrome /chrome/.* No 1,291 0.00
startupcache /startupcache/.* No 967 1.03
Other .* No 977,632 0.67

CWE Top 25 defects

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