Coverity Scan: Firefox

Project Name Firefox
Lines of code analyzed 9,540,297
On Coverity Scan since Feb 22, 2006
Last build analyzed 6 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

Jan 16, 2025
Last Analyzed
9,540,297
Lines of Code Analyzed
8,521,777
Lines of Code in Selected Components
0.61
Defect Density

Defect changes since previous build dated Jan 14, 2025

13
Newly detected
4
Eliminated

Defects by status for current build

47,698
Total defects
5,205
Outstanding
42,090
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,238 0.38
xpcom /xpcom/.* No 75,850 0.41
dom-indexedDB /dom/indexedDB/.* No 31,301 0.35
dom-workers /dom/workers/.* No 20,934 0.48
PSM /security/manager/.* No 25,992 1.08
image /image/.* No 33,631 0.42
nsprpub /nsprpub/.* No 35,521 1.72
parser /parser/.* No 50,488 0.36
security /security/.* No 347,529 0.83
storage /storage/.* No 9,497 0.32
docshell /docshell/.* No 26,772 0.56
editor /editor/.* No 77,506 0.21
accessible /accessible/.* No 44,502 0.49
extensions /extensions/.* No 23,683 1.01
memory /memory/.* No 9,592 2.92
brotli /modules/brotli/.* No 11,559 0.43
libmar /modules/libmar/.* No 2,943 4.42
modules /modules/.* No 36,308 0.50
toolkit /toolkit/.* No 276,081 1.05
widget /widget/.* No 77,783 0.51
xpfe /xpfe/.* No 4,789 0.00
generated-test-files .*/dom/bindings/Test*.cpp No 206,529 0.66
dom-canvas /dom/canvas/.* No 49,088 0.77
IPC-dom-plugin /dom/plugins/ipc/.* No 0 N/A
dom-plugins /dom/plugins/.* No 0 N/A
dom-html /dom/html/.* No 42,340 0.97
dom-xslt /dom/xslt/.* No 18,390 0.22
dom-media /dom/media/.* No 297,910 0.97
dom-promise /dom/promise/.* No 1,175 1.70
dom-svg /dom/svg/.* No 25,545 1.02
dom-crypto /dom/crypto/.* No 4,400 0.00
dom-xbl /dom/xbl/.* No 0 N/A
IPC-dom /dom/ipc/.* No 31,910 0.50
content /(content|dom)/.* No 411,014 0.57
JavaScript-jit /js/src/jit/.* No 199,695 0.18
JavaScript-asmjs /js/src/asmjs/.* No 0 N/A
JavaScript-xpconnect /js/xpconnect/.* No 30,225 0.56
JavaScript-ctypes /js/src/ctypes/.* No 12,999 1.08
JavaScript-frontend /js/src/frontend/.* No 56,145 0.39
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 105,892 0.28
IPC-js /js/ipc/.* No 0 N/A
JavaScript /js/.* No 316,205 0.30
gfx-cairo /gfx/cairo/.* Yes 127,256 N/A
skia /gfx/skia/skia/.* Yes 190,999 N/A
gfx-gl /gfx/gl/.* No 15,579 0.32
gfx-graphite2 /gfx/graphite2/.* No 12,225 1.39
IPC-gfx-layers /gfx/layers/ipc/.* No 11,257 0.53
gfx-layers /gfx/layers/.* No 51,621 0.70
gfx-thebes /gfx/thebes/.* No 52,673 0.87
gfx /gfx/.* No 317,811 0.93
network-cache /netwerk/cache/.* No 0 N/A
network-cache2 /netwerk/cache2/.* No 18,668 0.48
network-dns /netwerk/dns/.* No 12,560 0.16
network-websocket /netwerk/protocol/websocket/.* No 6,556 0.31
network-http /netwerk/protocol/http/.* No 71,135 0.51
IPC-netwerk /netwerk/ipc/.* No 7,654 0.65
netwerk-srtp /netwerk/srtp/.* No 0 N/A
network-sctp /netwerk/sctp/.* No 76,099 2.02
network /netwerk/.* No 76,287 0.42
media-libjpeg /media/libjpeg/.* No 27,692 0.94
media-libstagefright /media/libstagefright/.* No 0 N/A
media-libvorbis /media/libvorbis/.* No 49,852 0.14
media-mtransport /media/mtransport/.* No 0 N/A
media-libvpx /media/libvpx/.* Yes 126,639 N/A
intl-icu /intl/icu/.* Yes 243,946 N/A
aom-thirdparty /third_party/aom/.* Yes 276,918 N/A
media-libopus /media/libopus/.* Yes 37,170 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,071 0.38
intl /intl/.* No 19,637 0.20
IPC-chromium /ipc/chromium/.* No 42,573 0.89
IPC-glue /ipc/glue/.* No 17,271 0.81
IPC .*/ipc/.* No 546,575 0.01
tools-profiler /tools/profiler/.* No 23,587 1.23
uriloader /uriloader/.* No 10,473 0.86
view /view/.* No 1,702 1.18
caps /caps/.* No 5,606 0.36
hal /hal/.* No 1,383 1.45
embedding /embedding/.* No 0 N/A
testing /testing/.* No 1,404 3.56
headers /obj-x86_64-pc-linux-gnu/dist/include/.* No 894,257 0.58
build-time /obj-x86_64-pc-linux-gnu/.* No 1,437,504 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,231 0.00
webapprt /webapprt/.* No 0 N/A
build-unix /build/unix/.* No 522 9.58
browser /browser/.* No 1,971 2.54
config /config/.* No 529 9.45
tools /tools/.* No 882 1.13
mfbt /mfbt/tests/.* Yes 15,592 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.64
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,065 0.70
glslopt /third_party/rust/glslopt/.* No 111,014 0.51
sqlite3 /third_party/sqlite3/.* No 186,694 0.36
wayland-proxy /third_party/wayland-proxy/.* No 894 5.59
zstd /third_party/zstd/.* No 12,354 0.57
lmdb-rkv-sys /third_party/rust/lmdb-rkv-sys/.* No 8,217 1.10
chrome /chrome/.* No 1,317 0.00
startupcache /startupcache/.* No 934 1.07
Other .* No 764,351 0.50

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 119
676 Use of Potentially Dangerous Function 22
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