libmaxminddb-1.10.0-1.fc41

List of Defects

Error: CPPCHECK_WARNING: [#def1]
libmaxminddb-1.10.0-build/libmaxminddb-1.10.0/bin/mmdblookup.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2]
libmaxminddb-1.10.0-build/libmaxminddb-1.10.0/src/data-pool.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-1164): [#def3]
libmaxminddb-1.10.0-build/libmaxminddb-1.10.0/src/maxminddb-compat-util.h:46:1: warning[-Wunused-function]: 'mmdb_memmem' defined but not used
#   46 | mmdb_memmem(const void *l, size_t l_len, const void *s, size_t s_len) {
#      | ^~~~~~~~~~~
#   44|    */
#   45|   static const void *
#   46|-> mmdb_memmem(const void *l, size_t l_len, const void *s, size_t s_len) {
#   47|       const char *cur, *last;
#   48|       const char *cl = (const char *)l;

Error: COMPILER_WARNING (CWE-1164): [#def4]
libmaxminddb-1.10.0-build/libmaxminddb-1.10.0/t/maxminddb_test_helper.h:12: included_from: Included from here.
libmaxminddb-1.10.0-build/libmaxminddb-1.10.0/t/maxminddb_test_helper.c:1: included_from: Included from here.
libmaxminddb-1.10.0-build/libmaxminddb-1.10.0/src/maxminddb-compat-util.h:138:14: warning[-Wunused-function]: 'mmdb_strdup' defined but not used
#  138 | static char *mmdb_strdup(const char *str) {
#      |              ^~~~~~~~~~~
#  136|    * SUCH DAMAGE.
#  137|    */
#  138|-> static char *mmdb_strdup(const char *str) {
#  139|       size_t len;
#  140|       char *copy;

Error: CPPCHECK_WARNING: [#def5]
libmaxminddb-1.10.0-build/libmaxminddb-1.10.0/src/maxminddb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-404): [#def6]
libmaxminddb-1.10.0-build/libmaxminddb-1.10.0/t/libtap/tap.c: scope_hint: In function ‘bail_out’
libmaxminddb-1.10.0-build/libmaxminddb-1.10.0/t/libtap/tap.c:284:1: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
#  282|       exit(255);
#  283|       return 0;
#  284|-> }
#  285|   
#  286|   void

Error: CPPCHECK_WARNING: [#def7]
libmaxminddb-1.10.0-build/libmaxminddb-1.10.0/t/maxminddb_test_helper.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def8]
libmaxminddb-1.10.0-build/libmaxminddb-1.10.0/t/maxminddb_test_helper.c:113:16: warning[core.NullDereference]: Access to field 'file_size' results in a dereference of a null pointer (loaded from variable 'mmdb')
#  111|       }
#  112|   
#  113|->     is_ok = ok(mmdb->file_size > 0,
#  114|                  "mmdb struct has been set for %s - %s",
#  115|                  db_file,

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-147.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namelibmaxminddb-1.10.0-1.fc41
store-results-to/tmp/tmpsk26z68g/libmaxminddb-1.10.0-1.fc41.tar.xz
time-created2024-07-03 14:53:16
time-finished2024-07-03 14:54:19
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpsk26z68g/libmaxminddb-1.10.0-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpsk26z68g/libmaxminddb-1.10.0-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9