Newly introduced defects

List of Defects

Error: COMPILER_WARNING (CWE-457): [#def1]
mozjs115-115.12.0-build/firefox-115.12.0/js/src/dist/include/mozilla/Maybe.h:349:55: warning[-Wmaybe-uninitialized]: ‘MEM[(struct Maybe &)aDst_311 + 16].D.223081’ may be used uninitialized
#  349 | class MOZ_INHERIT_TYPE_ANNOTATIONS_FROM_TEMPLATE_ARGS Maybe
#      |                                                       ^~~~~
#  347|    */
#  348|   template <class T>
#  349|-> class MOZ_INHERIT_TYPE_ANNOTATIONS_FROM_TEMPLATE_ARGS Maybe
#  350|       : private detail::MaybeStorage<T>,
#  351|         public detail::Maybe_CopyMove_Enabler<T> {

Error: COMPILER_WARNING (CWE-457): [#def2]
mozjs115-115.12.0-build/firefox-115.12.0/js/src/dist/include/mozilla/Maybe.h:444:42: warning[-Wmaybe-uninitialized]: ‘MEM[(const struct Maybe *)aDst_311 + 16B].D.223081.mIsSome’ may be used uninitialized
#  444 |   constexpr bool isSome() const { return mIsSome; }
#      |                                          ^~~~~~~
#  442|     /* Methods that check whether this Maybe contains a value */
#  443|     constexpr explicit operator bool() const { return isSome(); }
#  444|->   constexpr bool isSome() const { return mIsSome; }
#  445|     constexpr bool isNothing() const { return !mIsSome; }
#  446|   

Error: COMPILER_WARNING (CWE-457): [#def3]
mozjs115-115.12.0-build/firefox-115.12.0/js/src/gc/Barrier.h:704:74: warning[-Wmaybe-uninitialized]: ‘MEM[(const struct HeapPtr &)aDst_153].D.259306’ may be used uninitialized
#  704 |   MOZ_IMPLICIT HeapPtr(const HeapPtr<T>& other) : WriteBarriered<T>(other) {
#      |                                                                          ^
#  702|     }
#  703|   
#  704|->   MOZ_IMPLICIT HeapPtr(const HeapPtr<T>& other) : WriteBarriered<T>(other) {
#  705|       this->post(JS::SafelyInitialized<T>::create(), this->value);
#  706|     }

Error: COMPILER_WARNING (CWE-457): [#def4]
mozjs115-115.12.0-build/firefox-115.12.0/js/src/gc/Barrier.h:704:74: warning[-Wmaybe-uninitialized]: ‘MEM[(const struct HeapPtr &)aDst_178 + 8].D.259306’ may be used uninitialized
#  704 |   MOZ_IMPLICIT HeapPtr(const HeapPtr<T>& other) : WriteBarriered<T>(other) {
#      |                                                                          ^
#  702|     }
#  703|   
#  704|->   MOZ_IMPLICIT HeapPtr(const HeapPtr<T>& other) : WriteBarriered<T>(other) {
#  705|       this->post(JS::SafelyInitialized<T>::create(), this->value);
#  706|     }

Error: COMPILER_WARNING (CWE-457): [#def5]
mozjs115-115.12.0-build/firefox-115.12.0/js/src/gc/Barrier.h:704:74: warning[-Wmaybe-uninitialized]: ‘MEM[(const struct HeapPtr &)aDst_178].D.259437’ may be used uninitialized
#  704 |   MOZ_IMPLICIT HeapPtr(const HeapPtr<T>& other) : WriteBarriered<T>(other) {
#      |                                                                          ^
#  702|     }
#  703|   
#  704|->   MOZ_IMPLICIT HeapPtr(const HeapPtr<T>& other) : WriteBarriered<T>(other) {
#  705|       this->post(JS::SafelyInitialized<T>::create(), this->value);
#  706|     }

Error: COMPILER_WARNING (CWE-457): [#def6]
mozjs115-115.12.0-build/firefox-115.12.0/js/src/gc/Barrier.h:704:74: warning[-Wmaybe-uninitialized]: ‘MEM[(const struct HeapPtr &)aDst_199 + 8].D.259306’ may be used uninitialized
#  704 |   MOZ_IMPLICIT HeapPtr(const HeapPtr<T>& other) : WriteBarriered<T>(other) {
#      |                                                                          ^
#  702|     }
#  703|   
#  704|->   MOZ_IMPLICIT HeapPtr(const HeapPtr<T>& other) : WriteBarriered<T>(other) {
#  705|       this->post(JS::SafelyInitialized<T>::create(), this->value);
#  706|     }

Error: COMPILER_WARNING (CWE-457): [#def7]
mozjs115-115.12.0-build/firefox-115.12.0/js/src/gc/Barrier.h:704:74: warning[-Wmaybe-uninitialized]: ‘MEM[(const struct HeapPtr &)aDst_199].D.259437’ may be used uninitialized
#  704 |   MOZ_IMPLICIT HeapPtr(const HeapPtr<T>& other) : WriteBarriered<T>(other) {
#      |                                                                          ^
#  702|     }
#  703|   
#  704|->   MOZ_IMPLICIT HeapPtr(const HeapPtr<T>& other) : WriteBarriered<T>(other) {
#  705|       this->post(JS::SafelyInitialized<T>::create(), this->value);
#  706|     }

Error: COMPILER_WARNING (CWE-457): [#def8]
mozjs115-115.12.0-build/firefox-115.12.0/js/src/gc/Barrier.h:704:74: warning[-Wmaybe-uninitialized]: ‘MEM[(const struct HeapPtr &)aDst_418].D.259306’ may be used uninitialized
#  704 |   MOZ_IMPLICIT HeapPtr(const HeapPtr<T>& other) : WriteBarriered<T>(other) {
#      |                                                                          ^
#  702|     }
#  703|   
#  704|->   MOZ_IMPLICIT HeapPtr(const HeapPtr<T>& other) : WriteBarriered<T>(other) {
#  705|       this->post(JS::SafelyInitialized<T>::create(), this->value);
#  706|     }

Error: COMPILER_WARNING (CWE-457): [#def9]
mozjs115-115.12.0-build/firefox-115.12.0/js/src/wasm/WasmValidate.cpp:2013:19: warning[-Wmaybe-uninitialized]: ‘MEM[(struct Vector *)&initExpr + 8B].mTail.D.251250.mCapacity’ may be used uninitialized
# 2011|     }
# 2012|   
# 2013|->   Maybe<InitExpr> initExpr;
# 2014|     if (initExprPresent) {
# 2015|       InitExpr initializer;

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-clang18.1.7
diffbase-analyzer-version-cppcheck2.14.2
diffbase-analyzer-version-gcc14.1.1
diffbase-analyzer-version-gcc-analyzer14.1.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-enabled-pluginsclang, cppcheck, gcc, shellcheck
diffbase-exit-code0
diffbase-hostip-172-16-1-34.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namemozjs115-115.7.0-1.fc40
diffbase-store-results-to/tmp/tmp3_h0u3hh/mozjs115-115.7.0-1.fc40.tar.xz
diffbase-time-created2024-07-03 16:15:51
diffbase-time-finished2024-07-03 16:30:17
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp3_h0u3hh/mozjs115-115.7.0-1.fc40.tar.xz' '--gcc-analyze' '/tmp/tmp3_h0u3hh/mozjs115-115.7.0-1.fc40.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-34.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namemozjs115-115.12.0-1.fc41
store-results-to/tmp/tmpaz90rf9c/mozjs115-115.12.0-1.fc41.tar.xz
time-created2024-07-03 16:31:37
time-finished2024-07-03 16:46:00
titleNewly introduced defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpaz90rf9c/mozjs115-115.12.0-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpaz90rf9c/mozjs115-115.12.0-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9