Coverity Scan: Firefox

Project Name Firefox
Lines of code analyzed 9,621,056
On Coverity Scan since Feb 22, 2006
Last build analyzed about 18 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

Apr 27, 2025
Last Analyzed
9,621,056
Lines of Code Analyzed
8,597,277
Lines of Code in Selected Components
0.62
Defect Density

Defect changes since previous build dated Apr 26, 2025

0
Newly detected
0
Eliminated

Defects by status for current build

48,193
Total defects
5,298
Outstanding
42,492
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 260,331 0.39
xpcom /xpcom/.* No 79,884 0.43
dom-indexedDB /dom/indexedDB/.* No 31,341 0.35
dom-workers /dom/workers/.* No 22,098 0.54
PSM /security/manager/.* No 25,626 1.09
image /image/.* No 33,527 0.42
nsprpub /nsprpub/.* No 35,521 1.72
parser /parser/.* No 51,426 0.27
security /security/.* No 347,825 0.82
storage /storage/.* No 9,508 0.32
docshell /docshell/.* No 27,147 0.59
editor /editor/.* No 81,742 0.22
accessible /accessible/.* No 44,613 0.49
extensions /extensions/.* No 23,793 1.01
memory /memory/.* No 9,905 2.83
brotli /modules/brotli/.* No 11,559 0.43
libmar /modules/libmar/.* No 2,943 4.42
modules /modules/.* No 36,314 0.50
toolkit /toolkit/.* No 281,493 0.74
widget /widget/.* No 78,653 0.53
xpfe /xpfe/.* No 4,778 0.00
generated-test-files .*/dom/bindings/Test*.cpp No 204,929 0.66
dom-canvas /dom/canvas/.* No 49,563 0.87
IPC-dom-plugin /dom/plugins/ipc/.* No 0 N/A
dom-plugins /dom/plugins/.* No 0 N/A
dom-html /dom/html/.* No 42,642 1.52
dom-xslt /dom/xslt/.* No 18,343 0.22
dom-media /dom/media/.* No 275,815 1.06
dom-promise /dom/promise/.* No 1,241 1.61
dom-svg /dom/svg/.* No 25,698 1.01
dom-crypto /dom/crypto/.* No 4,416 0.00
dom-xbl /dom/xbl/.* No 0 N/A
IPC-dom /dom/ipc/.* No 32,155 0.50
content /(content|dom)/.* No 415,952 0.63
JavaScript-jit /js/src/jit/.* No 198,808 0.18
JavaScript-asmjs /js/src/asmjs/.* No 0 N/A
JavaScript-xpconnect /js/xpconnect/.* No 28,975 0.66
JavaScript-ctypes /js/src/ctypes/.* No 12,999 1.08
JavaScript-frontend /js/src/frontend/.* No 55,875 0.41
JavaScript-jsapi-tests /js/src/jsapi-tests/.* Yes 0 N/A
JavaScript-proxy /js/src/proxy/.* No 3,628 0.28
JavaScript-shell /js/src/shell/.* No 0 N/A
JavaScript-vm /js/src/vm/.* No 106,002 0.27
IPC-js /js/ipc/.* No 0 N/A
JavaScript /js/.* No 319,273 0.31
gfx-cairo /gfx/cairo/.* Yes 127,310 N/A
skia /gfx/skia/skia/.* Yes 193,455 N/A
gfx-gl /gfx/gl/.* No 15,565 0.32
gfx-graphite2 /gfx/graphite2/.* No 12,219 1.39
IPC-gfx-layers /gfx/layers/ipc/.* No 11,527 0.52
gfx-layers /gfx/layers/.* No 51,793 0.70
gfx-thebes /gfx/thebes/.* No 52,744 0.87
gfx /gfx/.* No 329,125 0.97
network-cache /netwerk/cache/.* No 0 N/A
network-cache2 /netwerk/cache2/.* No 18,769 0.48
network-dns /netwerk/dns/.* No 12,377 0.16
network-websocket /netwerk/protocol/websocket/.* No 6,559 0.30
network-http /netwerk/protocol/http/.* No 70,943 0.55
IPC-netwerk /netwerk/ipc/.* No 7,712 0.65
netwerk-srtp /netwerk/srtp/.* No 0 N/A
network-sctp /netwerk/sctp/.* No 76,099 2.02
network /netwerk/.* No 77,290 0.43
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 126,604 N/A
intl-icu /intl/icu/.* Yes 245,250 N/A
aom-thirdparty /third_party/aom/.* Yes 277,267 N/A
media-libopus /media/libopus/.* Yes 38,246 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 250,305 0.40
intl /intl/.* No 20,249 0.10
IPC-chromium /ipc/chromium/.* No 42,558 0.87
IPC-glue /ipc/glue/.* No 17,014 0.65
IPC .*/ipc/.* No 554,838 0.01
tools-profiler /tools/profiler/.* No 23,615 1.23
uriloader /uriloader/.* No 10,546 0.85
view /view/.* No 1,694 1.18
caps /caps/.* No 5,597 0.36
hal /hal/.* No 1,399 1.43
embedding /embedding/.* No 0 N/A
testing /testing/.* No 1,399 3.57
headers /obj-x86_64-pc-linux-gnu/dist/include/.* No 882,209 0.59
build-time /obj-x86_64-pc-linux-gnu/.* No 1,434,437 0.10
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,229 0.00
webapprt /webapprt/.* No 0 N/A
build-unix /build/unix/.* No 0 N/A
browser /browser/.* No 1,942 2.57
config /config/.* No 529 9.45
tools /tools/.* No 897 5.57
mfbt /mfbt/tests/.* Yes 15,647 N/A
NSS /security/nss/.* Yes 0 N/A
system-header /usr/include/.* Yes 0 N/A
snappy /other-licenses/snappy/.* No 2,593 1.16
rdf /rdf/.* No 0 N/A
configure-gen .*conftest\..*.cpp Yes 0 N/A
jpeg-xl /third_party/jpeg-xl/.* No 32,963 3.97
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 43,314 0.65
glslopt /third_party/rust/glslopt/.* No 111,014 0.51
sqlite3 /third_party/sqlite3/.* No 195,591 0.37
wayland-proxy /third_party/wayland-proxy/.* No 894 5.59
zstd /third_party/zstd/.* No 12,394 0.56
lmdb-rkv-sys /third_party/rust/lmdb-rkv-sys/.* No 8,217 1.10
chrome /chrome/.* No 1,317 0.00
startupcache /startupcache/.* No 935 1.07
Other .* No 815,975 0.54

CWE Top 25 defects

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