libphonenumber-8.13.37-1.fc41

List of Defects

Error: CPPCHECK_WARNING: [#def1]
libphonenumber-8.13.37-build/libphonenumber-8.13.37/cpp/src/phonenumbers/base/strings/string_piece.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2]
libphonenumber-8.13.37-build/libphonenumber-8.13.37/cpp/src/phonenumbers/geocoding/mapping_file_provider.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def3]
libphonenumber-8.13.37-build/libphonenumber-8.13.37/cpp/src/phonenumbers/phonenumbermatcher.cc:687:5: warning[deadcode.DeadStores]: Value stored to 'index' is never read
#  685|       }
#  686|   
#  687|->     index = static_cast<int>(start + candidate.length());
#  688|       --max_tries_;
#  689|     }

Error: CLANG_WARNING: [#def4]
libphonenumber-8.13.37-build/libphonenumber-8.13.37/cpp/src/phonenumbers/utf/unicodetext.cc:150:3: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  148|   void UnicodeText::Repr::Copy(const char* data, int size) {
#  149|     resize(size);
#  150|->   memcpy(data_, data, size);
#  151|   }
#  152|   

Error: CLANG_WARNING: [#def5]
libphonenumber-8.13.37-build/libphonenumber-8.13.37/cpp/src/phonenumbers/utf/unicodetext.cc:172:3: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  170|   void UnicodeText::Repr::append(const char* bytes, int byte_length) {
#  171|     reserve(size_ + byte_length);
#  172|->   memcpy(data_ + size_, bytes, byte_length);
#  173|     size_ += byte_length;
#  174|   }

Error: CPPCHECK_WARNING: [#def6]
libphonenumber-8.13.37-build/libphonenumber-8.13.37/tools/cpp/src/cpp-build/generate_geocoding_data.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

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
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-70.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namelibphonenumber-8.13.37-1.fc41
store-results-to/tmp/tmpr3rb8mi3/libphonenumber-8.13.37-1.fc41.tar.xz
time-created2024-07-03 15:54:08
time-finished2024-07-03 15:57:51
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpr3rb8mi3/libphonenumber-8.13.37-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpr3rb8mi3/libphonenumber-8.13.37-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9