Coverity Scan: Firefox

Project Name Firefox
Lines of code analyzed 10,505,850
On Coverity Scan since Feb 22, 2006
Last build analyzed 5 days 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

Oct 05, 2026
Last Analyzed
10,505,850
Lines of Code Analyzed
8,904,629
Lines of Code in Selected Components
0.37
Defect Density

Defect changes since previous build dated Oct 02, 2026

58
Newly detected
193
Eliminated

Defects by status for current build

50,404
Total defects
3,251
Outstanding
45,298
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 264,409 0.29
xpcom /xpcom/.* No 83,039 0.69
dom-indexedDB /dom/indexedDB/.* No 33,149 0.39
dom-workers /dom/workers/.* No 23,034 1.30
PSM /security/manager/.* No 28,759 1.67
image /image/.* No 35,412 0.42
nsprpub /nsprpub/.* No 37,611 1.65
parser /parser/.* No 53,767 0.20
security /security/.* No 364,597 0.83
storage /storage/.* No 9,998 1.40
docshell /docshell/.* No 27,207 0.62
editor /editor/.* No 86,034 0.19
accessible /accessible/.* No 47,209 0.13
extensions /extensions/.* No 26,099 0.42
memory /memory/.* No 11,300 2.21
brotli /modules/brotli/.* No 33,398 1.20
libmar /modules/libmar/.* No 2,985 3.69
modules /modules/.* No 37,007 0.62
toolkit /toolkit/.* No 332,058 0.52
widget /widget/.* No 85,725 0.34
xpfe /xpfe/.* No 4,610 0.00
generated-test-files .*/dom/bindings/Test*.cpp No 211,388 0.00
dom-canvas /dom/canvas/.* No 54,488 0.68
IPC-dom-plugin /dom/plugins/ipc/.* No 0 N/A
dom-plugins /dom/plugins/.* No 0 N/A
dom-html /dom/html/.* No 36,728 0.22
dom-xslt /dom/xslt/.* No 18,428 1.14
dom-media /dom/media/.* No 316,689 0.78
dom-promise /dom/promise/.* No 1,378 2.18
dom-svg /dom/svg/.* No 26,259 1.07
dom-crypto /dom/crypto/.* No 4,858 0.00
dom-xbl /dom/xbl/.* No 0 N/A
IPC-dom /dom/ipc/.* No 35,677 0.45
content /(content|dom)/.* No 463,108 0.46
JavaScript-jit /js/src/jit/.* No 211,382 0.18
JavaScript-asmjs /js/src/asmjs/.* No 0 N/A
JavaScript-xpconnect /js/xpconnect/.* No 29,378 0.44
JavaScript-ctypes /js/src/ctypes/.* No 14,605 0.75
JavaScript-frontend /js/src/frontend/.* No 56,223 0.14
JavaScript-jsapi-tests /js/src/jsapi-tests/.* Yes 0 N/A
JavaScript-proxy /js/src/proxy/.* No 3,621 0.00
JavaScript-shell /js/src/shell/.* No 0 N/A
JavaScript-vm /js/src/vm/.* No 113,033 0.23
IPC-js /js/ipc/.* No 0 N/A
JavaScript /js/.* No 344,426 0.27
gfx-cairo /gfx/cairo/.* Yes 100,133 N/A
skia /gfx/skia/skia/.* Yes 196,635 N/A
gfx-gl /gfx/gl/.* No 25,104 0.28
gfx-graphite2 /gfx/graphite2/.* No 12,227 0.98
IPC-gfx-layers /gfx/layers/ipc/.* No 12,131 0.58
gfx-layers /gfx/layers/.* No 54,909 0.64
gfx-thebes /gfx/thebes/.* No 53,990 0.72
gfx /gfx/.* No 224,569 1.62
network-cache /netwerk/cache/.* No 0 N/A
network-cache2 /netwerk/cache2/.* No 21,429 0.61
network-dns /netwerk/dns/.* No 13,152 0.53
network-websocket /netwerk/protocol/websocket/.* No 6,768 0.89
network-http /netwerk/protocol/http/.* No 62,690 0.61
IPC-netwerk /netwerk/ipc/.* No 8,135 0.61
netwerk-srtp /netwerk/srtp/.* No 0 N/A
network-sctp /netwerk/sctp/.* No 76,486 2.03
network /netwerk/.* No 79,593 0.60
media-libjpeg /media/libjpeg/.* No 28,088 1.03
media-libstagefright /media/libstagefright/.* No 0 N/A
media-libvorbis /media/libvorbis/.* No 50,047 0.14
media-mtransport /media/mtransport/.* No 0 N/A
media-libvpx /media/libvpx/.* Yes 126,063 N/A
intl-icu /intl/icu/.* Yes 243,931 N/A
aom-thirdparty /third_party/aom/.* Yes 296,409 N/A
media-libopus /media/libopus/.* Yes 43,540 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 273,661 0.34
intl /intl/.* No 19,444 0.05
IPC-chromium /ipc/chromium/.* No 27,217 0.85
IPC-glue /ipc/glue/.* No 17,641 0.40
IPC .*/ipc/.* No 584,608 0.01
tools-profiler /tools/profiler/.* No 24,561 1.34
uriloader /uriloader/.* No 10,599 0.94
view /view/.* No 0 N/A
caps /caps/.* No 5,583 0.54
hal /hal/.* No 1,432 0.00
embedding /embedding/.* No 0 N/A
testing /testing/.* No 1,400 2.86
headers /obj-x86_64-pc-linux-gnu/dist/include/.* No 936,180 0.21
build-time /obj-x86_64-pc-linux-gnu/.* No 1,543,299 0.04
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,999 0.14
webapprt /webapprt/.* No 0 N/A
build-unix /build/unix/.* No 528 9.47
browser /browser/.* No 2,332 3.00
config /config/.* No 545 5.50
tools /tools/.* No 1,158 0.86
mfbt /mfbt/tests/.* Yes 15,870 N/A
NSS /security/nss/.* Yes 0 N/A
system-header /usr/include/.* Yes 0 N/A
snappy /other-licenses/snappy/.* No 2,799 1.07
rdf /rdf/.* No 0 N/A
configure-gen .*conftest\..*.cpp Yes 0 N/A
jpeg-xl /third_party/jpeg-xl/.* No 0 N/A
lz4 /mfbt/lz4/.* No 0 N/A
mozglue /mozglue/.* No 38,369 0.29
glslopt /third_party/rust/glslopt/.* No 111,030 0.52
sqlite3 /third_party/sqlite3/.* No 202,110 0.34
wayland-proxy /third_party/wayland-proxy/.* No 1,070 4.67
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,248 0.00
startupcache /startupcache/.* No 976 0.00
protobuf *.pb.cc Yes 7,281 N/A
libwebrtc /third_party/libwebrtc/.* Yes 231,282 N/A
dav1d /third_party/dav1d/.* Yes 24,442 N/A
zucchini /third_party/zucchini/.* Yes 44,386 N/A
abseil-cpp /third_party/abseil-cpp/.* Yes 74,177 N/A
googletest /third_party/googletest/.* Yes 14,773 N/A
opentelemetry-cpp /third_party/opentelemetry-cpp/.* Yes 16,755 N/A
libepoxy /third_party/libepoxy/.* Yes 150,649 N/A
sipcc /third_party/sipcc/.* Yes 14,588 N/A
bsdiff /other-licenses/bsdiff/.* Yes 307 N/A
C++ include /root/.mozbuild/sysroot-x86_64-linux-gnu/usr/include/c++/.* Yes 0 N/A
Other .* No 625,163 0.29

CWE Top 25 defects

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