Coverity Scan: Firefox

Project Name Firefox
Lines of code analyzed 11,032,543
On Coverity Scan since Feb 22, 2006
Last build analyzed 8 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

Jul 18, 2024
Last Analyzed
11,032,543
Lines of Code Analyzed
10,100,815
Lines of Code in Selected Components
0.68
Defect Density

Defect changes since previous build dated Jul 17, 2024

578
Newly detected
522
Eliminated

Defects by status for current build

46,117
Total defects
6,832
Outstanding
38,882
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 237,834 0.47
xpcom /xpcom/.* No 72,538 0.85
dom-indexedDB /dom/indexedDB/.* No 15,708 0.19
dom-workers /dom/workers/.* No 20,126 1.14
PSM /security/manager/.* No 26,541 2.03
image /image/.* No 32,971 1.15
nsprpub /nsprpub/.* No 38,232 1.36
parser /parser/.* No 50,521 0.42
security /security/.* No 304,545 0.67
storage /storage/.* No 9,294 0.75
docshell /docshell/.* No 26,656 2.14
editor /editor/.* No 73,968 0.47
accessible /accessible/.* No 43,799 0.43
extensions /extensions/.* No 23,644 1.73
memory /memory/.* No 9,284 1.18
brotli /modules/brotli/.* No 11,559 0.26
libmar /modules/libmar/.* No 2,941 4.08
modules /modules/.* No 25,976 1.15
toolkit /toolkit/.* No 1,552,136 0.53
widget /widget/.* No 73,853 0.87
xpfe /xpfe/.* No 4,853 1.65
generated-test-files .*/dom/bindings/Test*.cpp No 204,664 0.67
dom-canvas /dom/canvas/.* No 48,620 1.01
IPC-dom-plugin /dom/plugins/ipc/.* No 0 N/A
dom-plugins /dom/plugins/.* No 0 N/A
dom-html /dom/html/.* No 35,148 1.17
dom-xslt /dom/xslt/.* No 18,370 0.38
dom-media /dom/media/.* No 278,649 1.44
dom-promise /dom/promise/.* No 1,168 2.57
dom-svg /dom/svg/.* No 25,521 1.33
dom-crypto /dom/crypto/.* No 4,258 0.00
dom-xbl /dom/xbl/.* No 0 N/A
IPC-dom /dom/ipc/.* No 17,414 1.32
content /(content|dom)/.* No 348,925 1.57
JavaScript-jit /js/src/jit/.* No 176,135 1.14
JavaScript-asmjs /js/src/asmjs/.* No 0 N/A
JavaScript-xpconnect /js/xpconnect/.* No 30,000 1.03
JavaScript-ctypes /js/src/ctypes/.* No 12,942 0.77
JavaScript-frontend /js/src/frontend/.* No 51,257 0.39
JavaScript-jsapi-tests /js/src/jsapi-tests/.* Yes 0 N/A
JavaScript-proxy /js/src/proxy/.* No 3,623 0.28
JavaScript-shell /js/src/shell/.* No 0 N/A
JavaScript-vm /js/src/vm/.* No 87,586 0.37
IPC-js /js/ipc/.* No 0 N/A
JavaScript /js/.* No 271,939 0.40
gfx-cairo /gfx/cairo/.* Yes 119,616 N/A
skia /gfx/skia/skia/.* Yes 161,922 N/A
gfx-gl /gfx/gl/.* No 23,766 0.46
gfx-graphite2 /gfx/graphite2/.* No 12,225 1.06
IPC-gfx-layers /gfx/layers/ipc/.* No 11,208 1.34
gfx-layers /gfx/layers/.* No 45,382 1.34
gfx-thebes /gfx/thebes/.* No 51,081 0.90
gfx /gfx/.* No 300,068 0.92
network-cache /netwerk/cache/.* No 0 N/A
network-cache2 /netwerk/cache2/.* No 18,676 0.59
network-dns /netwerk/dns/.* No 6,866 3.20
network-websocket /netwerk/protocol/websocket/.* No 6,585 2.28
network-http /netwerk/protocol/http/.* No 70,330 1.96
IPC-netwerk /netwerk/ipc/.* No 5,483 3.65
netwerk-srtp /netwerk/srtp/.* No 0 N/A
network-sctp /netwerk/sctp/.* No 76,020 1.97
network /netwerk/.* No 74,899 2.06
media-libjpeg /media/libjpeg/.* No 27,383 0.44
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 117,765 N/A
intl-icu /intl/icu/.* Yes 213,495 N/A
aom-thirdparty /third_party/aom/.* Yes 267,468 N/A
media-libopus /media/libopus/.* Yes 37,168 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 229,966 0.32
intl /intl/.* No 14,973 0.47
IPC-chromium /ipc/chromium/.* No 43,057 0.72
IPC-glue /ipc/glue/.* No 16,382 1.59
IPC .*/ipc/.* No 431,102 0.01
tools-profiler /tools/profiler/.* No 23,589 0.98
uriloader /uriloader/.* No 10,407 2.40
view /view/.* No 1,827 0.55
caps /caps/.* No 5,567 1.26
hal /hal/.* No 1,383 1.45
embedding /embedding/.* No 0 N/A
testing /testing/.* No 1,405 2.85
headers /obj-x86_64-pc-linux-gnu/dist/include/.* No 837,129 0.62
build-time /obj-x86_64-pc-linux-gnu/.* No 1,299,594 0.11
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,237 0.16
webapprt /webapprt/.* No 0 N/A
build-unix /build/unix/.* No 522 11.49
browser /browser/.* No 1,107,760 0.22
config /config/.* No 529 9.45
tools /tools/.* No 877 2.28
mfbt /mfbt/tests/.* Yes 14,294 N/A
NSS /security/nss/.* Yes 0 N/A
system-header /usr/include/.* Yes 0 N/A
snappy /other-licenses/snappy/.* No 2,593 0.77
rdf /rdf/.* No 0 N/A
configure-gen .*conftest\..*.cpp Yes 0 N/A
jpeg-xl /third_party/jpeg-xl/.* No 28,845 4.06
libwebrtc /third_parth/libwebrtc/.* No 0 N/A
dav1d /third_parth/dav1d/.* No 0 N/A
lz4 /mfbt/lz4/.* No 8,666 0.69
mozglue /mozglue/.* No 33,141 0.51
glslopt /third_party/rust/glslopt/.* No 111,014 0.45
sqlite3 /third_party/sqlite3/.* No 183,573 0.34
wayland-proxy /third_party/wayland-proxy/.* No 718 5.57
zstd /third_party/zstd/.* No 12,354 0.49
lmdb-rkv-sys /third_party/rust/lmdb-rkv-sys/.* No 8,217 0.97
chrome /chrome/.* No 1,317 7.59
startupcache /startupcache/.* No 935 5.35
Other .* No 717,141 0.52

CWE Top 25 defects

ID CWE-Name Number of Defects
120 Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') 12
190 Integer Overflow or Wraparound 57
676 Use of Potentially Dangerous Function 53
798 Use of Hard-coded Credentials 18
829 Inclusion of Functionality from Untrusted Control Sphere 42
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