Coverity Scan: Firefox

Project Name Firefox
Lines of code analyzed 10,044,750
On Coverity Scan since Feb 22, 2006
Last build analyzed about 11 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

Feb 23, 2026
Last Analyzed
10,044,750
Lines of Code Analyzed
9,009,018
Lines of Code in Selected Components
0.52
Defect Density

Defect changes since previous build dated Feb 22, 2026

0
Newly detected
0
Eliminated

Defects by status for current build

49,758
Total defects
4,728
Outstanding
43,643
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,864 0.43
xpcom /xpcom/.* No 79,750 0.53
dom-indexedDB /dom/indexedDB/.* No 31,736 0.38
dom-workers /dom/workers/.* No 22,136 0.72
PSM /security/manager/.* No 26,838 1.49
image /image/.* No 34,260 0.53
nsprpub /nsprpub/.* No 34,964 1.74
parser /parser/.* No 52,776 0.27
security /security/.* No 360,385 0.78
storage /storage/.* No 9,464 0.11
docshell /docshell/.* No 29,418 0.68
editor /editor/.* No 84,688 0.21
accessible /accessible/.* No 46,092 0.24
extensions /extensions/.* No 23,780 0.93
memory /memory/.* No 10,336 2.61
brotli /modules/brotli/.* No 33,348 1.11
libmar /modules/libmar/.* No 2,942 4.42
modules /modules/.* No 36,211 0.61
toolkit /toolkit/.* No 323,939 0.63
widget /widget/.* No 79,134 0.39
xpfe /xpfe/.* No 4,814 0.00
generated-test-files .*/dom/bindings/Test*.cpp No 206,106 0.08
dom-canvas /dom/canvas/.* No 53,585 0.71
IPC-dom-plugin /dom/plugins/ipc/.* No 0 N/A
dom-plugins /dom/plugins/.* No 0 N/A
dom-html /dom/html/.* No 34,201 0.96
dom-xslt /dom/xslt/.* No 18,422 1.41
dom-media /dom/media/.* No 297,512 1.00
dom-promise /dom/promise/.* No 1,297 2.31
dom-svg /dom/svg/.* No 26,013 1.00
dom-crypto /dom/crypto/.* No 4,480 0.00
dom-xbl /dom/xbl/.* No 0 N/A
IPC-dom /dom/ipc/.* No 32,893 0.49
content /(content|dom)/.* No 440,173 0.51
JavaScript-jit /js/src/jit/.* No 208,084 0.22
JavaScript-asmjs /js/src/asmjs/.* No 0 N/A
JavaScript-xpconnect /js/xpconnect/.* No 29,288 0.58
JavaScript-ctypes /js/src/ctypes/.* No 13,011 1.00
JavaScript-frontend /js/src/frontend/.* No 56,346 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,530 0.40
IPC-js /js/ipc/.* No 0 N/A
JavaScript /js/.* No 332,028 0.35
gfx-cairo /gfx/cairo/.* Yes 127,680 N/A
skia /gfx/skia/skia/.* Yes 196,349 N/A
gfx-gl /gfx/gl/.* No 24,644 0.37
gfx-graphite2 /gfx/graphite2/.* No 12,219 1.31
IPC-gfx-layers /gfx/layers/ipc/.* No 12,149 0.99
gfx-layers /gfx/layers/.* No 52,812 0.85
gfx-thebes /gfx/thebes/.* No 53,125 0.83
gfx /gfx/.* No 332,135 1.00
network-cache /netwerk/cache/.* No 0 N/A
network-cache2 /netwerk/cache2/.* No 20,463 0.54
network-dns /netwerk/dns/.* No 12,605 0.16
network-websocket /netwerk/protocol/websocket/.* No 6,571 0.61
network-http /netwerk/protocol/http/.* No 76,754 0.48
IPC-netwerk /netwerk/ipc/.* No 7,882 0.63
netwerk-srtp /netwerk/srtp/.* No 0 N/A
network-sctp /netwerk/sctp/.* No 76,447 2.03
network /netwerk/.* No 76,862 0.34
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,433 N/A
intl-icu /intl/icu/.* Yes 247,764 N/A
aom-thirdparty /third_party/aom/.* Yes 280,930 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,258 0.34
intl /intl/.* No 20,876 0.10
IPC-chromium /ipc/chromium/.* No 42,767 0.80
IPC-glue /ipc/glue/.* No 17,260 0.46
IPC .*/ipc/.* No 567,061 0.67
tools-profiler /tools/profiler/.* No 24,313 1.23
uriloader /uriloader/.* No 10,646 0.19
view /view/.* No 0 N/A
caps /caps/.* No 5,569 0.00
hal /hal/.* No 1,402 1.43
embedding /embedding/.* No 0 N/A
testing /testing/.* No 1,400 3.57
headers /obj-x86_64-pc-linux-gnu/dist/include/.* No 909,962 0.64
build-time /obj-x86_64-pc-linux-gnu/.* No 1,500,604 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,955 2.56
config /config/.* No 529 9.45
tools /tools/.* No 1,143 4.37
mfbt /mfbt/tests/.* Yes 15,638 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,890 0.50
glslopt /third_party/rust/glslopt/.* No 111,014 0.53
sqlite3 /third_party/sqlite3/.* No 198,297 0.34
wayland-proxy /third_party/wayland-proxy/.* No 894 7.83
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 950 1.05
Other .* No 974,542 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 345
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