spglib-2.5.0-1.20250129215050679880.pr499.47.g5a8bd83
List of Findings
Error: COMPILER_WARNING (CWE-563): [#def1]
spglib-2.5.0-build/spglib-2.5.0/python/_spglib.c:446:19: warning[-Wunused-variable]: unused variable ‘len_list’
Error: COMPILER_WARNING (CWE-477): [#def2]
spglib-2.5.0-build/spglib-2.5.0/python/_spglib.c: scope_hint: In function ‘py_get_layerdataset’
spglib-2.5.0-build/spglib-2.5.0/python/_spglib.c:475:5: warning[-Wdeprecated-declarations]: ‘spg_get_layer_dataset’ is deprecated: Experimental interface. May be removed in next major release.
spglib-2.5.0-build/spglib-2.5.0/python/_spglib.c:39: included_from: Included from here.
spglib-2.5.0-build/spglib-2.5.0/include/spglib.h:242:24: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def3]
spglib-2.5.0-build/spglib-2.5.0/python/_spglib.c: scope_hint: In function ‘py_get_symmetry’
spglib-2.5.0-build/spglib-2.5.0/python/_spglib.c:1080:5: warning[-Wdeprecated-declarations]: ‘spgat_get_symmetry’ is deprecated: Use the variables from SpglibDataset (rotations, translations)
spglib-2.5.0-build/spglib-2.5.0/include/spglib.h:284:13: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def4]
spglib-2.5.0-build/spglib-2.5.0/python/_spglib.c: scope_hint: In function ‘py_get_hall_number_from_symmetry’
spglib-2.5.0-build/spglib-2.5.0/python/_spglib.c:1491:9: warning[-Wdeprecated-declarations]: ‘spg_get_hall_number_from_symmetry’ is deprecated: Use the variable from SpglibSpacegroupType instead (hall_number)
spglib-2.5.0-build/spglib-2.5.0/include/spglib.h:357:13: note: declared here
Error: GCC_ANALYZER_WARNING (CWE-688): [#def5]
spglib-2.5.0-build/spglib-2.5.0/redhat-linux-build/test/functional/fortran/fortran_test.c: scope_hint: In function ‘main’
spglib-2.5.0-build/spglib-2.5.0/redhat-linux-build/test/functional/fortran/fortran_test.c:205:31: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
spglib-2.5.0-build/spglib-2.5.0/redhat-linux-build/test/functional/fortran/fortran_test.c:35:38: note: in definition of macro ‘CM_CAST’
<built-in>: note: argument 2 of ‘__builtin_strstr’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def6]
spglib-2.5.0-build/spglib-2.5.0/redhat-linux-build/test/functional/fortran/fortran_test.c:205:31: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
spglib-2.5.0-build/spglib-2.5.0/redhat-linux-build/test/functional/fortran/fortran_test.c:35:38: note: in definition of macro ‘CM_CAST’
<built-in>: note: argument 1 of ‘__builtin_strstr’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-457): [#def7]
spglib-2.5.0-build/spglib-2.5.0/redhat-linux-build/test/functional/fortran/fortran_test.c:205:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
spglib-2.5.0-build/spglib-2.5.0/redhat-linux-build/test/functional/fortran/fortran_test.c:35:38: note: in definition of macro ‘CM_CAST’
/usr/include/string.h:350:14: note: argument 1 of ‘strstr’ must be a pointer to a null-terminated string
Error: GCC_ANALYZER_WARNING (CWE-457): [#def8]
spglib-2.5.0-build/spglib-2.5.0/redhat-linux-build/test/functional/fortran/fortran_test.c:205:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*arg’
spglib-2.5.0-build/spglib-2.5.0/redhat-linux-build/test/functional/fortran/fortran_test.c:35:38: note: in definition of macro ‘CM_CAST’
spglib-2.5.0-build/spglib-2.5.0/redhat-linux-build/test/functional/fortran/fortran_test.c:4: included_from: Included from here.
/usr/include/string.h:350:14: note: argument 2 of ‘strstr’ must be a pointer to a null-terminated string
Error: GCC_ANALYZER_WARNING (CWE-688): [#def9]
spglib-2.5.0-build/spglib-2.5.0/redhat-linux-build/test/functional/fortran/fortran_test.c:209:38: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
spglib-2.5.0-build/spglib-2.5.0/redhat-linux-build/test/functional/fortran/fortran_test.c:35:38: note: in definition of macro ‘CM_CAST’
/usr/include/string.h:156:12: note: argument 2 of ‘strcmp’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def10]
spglib-2.5.0-build/spglib-2.5.0/redhat-linux-build/test/functional/fortran/fortran_test.c:209:38: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
spglib-2.5.0-build/spglib-2.5.0/redhat-linux-build/test/functional/fortran/fortran_test.c:35:38: note: in definition of macro ‘CM_CAST’
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-457): [#def11]
spglib-2.5.0-build/spglib-2.5.0/src/cell.c: scope_hint: In function ‘cel_free_cell’
spglib-2.5.0-build/spglib-2.5.0/src/cell.c:125:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*cell.position’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def12]
spglib-2.5.0-build/spglib-2.5.0/src/cell.c:133:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*cell.tensor_rank’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def13]
spglib-2.5.0-build/spglib-2.5.0/src/cell.c:133:51: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*cell.tensors’
Error: CPPCHECK_WARNING (CWE-457): [#def14]
spglib-2.5.0-build/spglib-2.5.0/src/delaunay.c:125: warning[uninitvar]: Uninitialized variable: succeeded
Error: CPPCHECK_WARNING (CWE-457): [#def15]
spglib-2.5.0-build/spglib-2.5.0/src/delaunay.c:418: warning[uninitvar]: Uninitialized variable: succeeded
Error: GCC_ANALYZER_WARNING (CWE-476): [#def16]
spglib-2.5.0-build/spglib-2.5.0/src/kpoint.c: scope_hint: In function ‘get_point_group_reciprocal_with_q’
spglib-2.5.0-build/spglib-2.5.0/src/kpoint.c:388:61: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘rot_reciprocal’
Error: CPPCHECK_WARNING (CWE-457): [#def17]
spglib-2.5.0-build/spglib-2.5.0/src/niggli.c:135: error[uninitvar]: Uninitialized variable: p
Error: GCC_ANALYZER_WARNING (CWE-401): [#def18]
spglib-2.5.0-build/spglib-2.5.0/src/niggli.c: scope_hint: In function ‘get_metric’
spglib-2.5.0-build/spglib-2.5.0/src/niggli.c:515:34: warning[-Wanalyzer-malloc-leak]: leak of ‘get_transpose(M)’
Error: GCC_ANALYZER_WARNING (CWE-131): [#def19]
spglib-2.5.0-build/spglib-2.5.0/src/overlap.c: scope_hint: In function ‘overlap_checker_alloc’
spglib-2.5.0-build/spglib-2.5.0/src/overlap.c:530:25: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
Error: CPPCHECK_WARNING (CWE-457): [#def20]
spglib-2.5.0-build/spglib-2.5.0/src/pointgroup.c:408: warning[uninitvar]: Uninitialized variables: pointgroup.holohedry, pointgroup.laue
Error: COMPILER_WARNING (CWE-457): [#def21]
spglib-2.5.0-build/spglib-2.5.0/src/pointgroup.c:752:22: warning[-Wmaybe-uninitialized]: ‘axes’ may be used uninitialized
spglib-2.5.0-build/spglib-2.5.0/src/pointgroup.c: scope_hint: In function ‘ptg_get_transformation_matrix’
spglib-2.5.0-build/spglib-2.5.0/src/pointgroup.c:382:9: note: ‘axes’ declared here
Error: COMPILER_WARNING (CWE-457): [#def22]
spglib-2.5.0-build/spglib-2.5.0/src/pointgroup.c:1038:46: warning[-Wmaybe-uninitialized]: ‘axes’ may be used uninitialized
spglib-2.5.0-build/spglib-2.5.0/src/pointgroup.c: scope_hint: In function ‘ptg_get_transformation_matrix’
spglib-2.5.0-build/spglib-2.5.0/src/pointgroup.c:382:9: note: ‘axes’ declared here
Error: GCC_ANALYZER_WARNING (CWE-476): [#def23]
spglib-2.5.0-build/spglib-2.5.0/src/primitive.c: scope_hint: In function ‘get_primitive_in_translation_space’
spglib-2.5.0-build/spglib-2.5.0/src/primitive.c:686:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def24]
spglib-2.5.0-build/spglib-2.5.0/src/site_symmetry.c: scope_hint: In function ‘set_Wyckoffs_labels’
spglib-2.5.0-build/spglib-2.5.0/src/site_symmetry.c:372:29: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘nums_equiv_atoms’
Error: COMPILER_WARNING (CWE-457): [#def25]
spglib-2.5.0-build/spglib-2.5.0/src/spacegroup.c:1094:17: warning[-Wmaybe-uninitialized]: ‘num_free_axes’ may be used uninitialized
spglib-2.5.0-build/spglib-2.5.0/src/spacegroup.c: scope_hint: In function ‘search_hall_number’
spglib-2.5.0-build/spglib-2.5.0/src/spacegroup.c:1026:19: note: ‘num_free_axes’ was declared here
Error: COMPILER_WARNING (CWE-457): [#def26]
spglib-2.5.0-build/spglib-2.5.0/src/spacegroup.c: scope_hint: In function ‘match_hall_symbol_db_monocli’
spglib-2.5.0-build/spglib-2.5.0/src/spacegroup.c:1146:51: warning[-Wmaybe-uninitialized]: ‘j’ may be used uninitialized
Error: CPPCHECK_WARNING (CWE-786): [#def27]
spglib-2.5.0-build/spglib-2.5.0/src/spacegroup.c:1249: error[negativeIndex]: Array 'all_origin_shifts[36][3]' accessed at index -1, which is out of bounds.
Error: CPPCHECK_WARNING (CWE-786): [#def28]
spglib-2.5.0-build/spglib-2.5.0/src/spacegroup.c:1250: error[negativeIndex]: Array 'all_conv_lattices[36][3][3]' accessed at index -1, which is out of bounds.
Error: CPPCHECK_WARNING (CWE-823): [#def29]
spglib-2.5.0-build/spglib-2.5.0/src/spglib.c:248: error[arrayIndexOutOfBounds]: Array 'spglib_error_message[10]' accessed at index 99, which is out of bounds.
Error: CPPCHECK_WARNING (CWE-401): [#def30]
spglib-2.5.0-build/spglib-2.5.0/src/spin.c:212: error[memleak]: Memory leak: inv_perm
Error: CPPCHECK_WARNING (CWE-401): [#def31]
spglib-2.5.0-build/spglib-2.5.0/src/spin.c:220: error[memleak]: Memory leak: inv_perm
Error: GCC_ANALYZER_WARNING (CWE-457): [#def32]
spglib-2.5.0-build/spglib-2.5.0/src/spin.c: scope_hint: In function ‘spn_get_idealized_cell’
spglib-2.5.0-build/spglib-2.5.0/src/spin.c:246:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
Error: COMPILER_WARNING (CWE-457): [#def33]
spglib-2.5.0-build/spglib-2.5.0/src/spin.c: scope_hint: In function ‘spn_get_idealized_cell’
spglib-2.5.0-build/spglib-2.5.0/src/spin.c:272:35: warning[-Wmaybe-uninitialized]: ‘vector_res[0]’ may be used uninitialized
spglib-2.5.0-build/spglib-2.5.0/src/spin.c:198:51: note: ‘vector_res[0]’ was declared here
Error: COMPILER_WARNING (CWE-457): [#def34]
spglib-2.5.0-build/spglib-2.5.0/src/spin.c:272:35: warning[-Wmaybe-uninitialized]: ‘vector_res[1]’ may be used uninitialized
spglib-2.5.0-build/spglib-2.5.0/src/spin.c:198:51: note: ‘vector_res[1]’ was declared here
Error: COMPILER_WARNING (CWE-457): [#def35]
spglib-2.5.0-build/spglib-2.5.0/src/spin.c:272:35: warning[-Wmaybe-uninitialized]: ‘vector_res[2]’ may be used uninitialized
spglib-2.5.0-build/spglib-2.5.0/src/spin.c:198:51: note: ‘vector_res[2]’ was declared here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def36]
spglib-2.5.0-build/spglib-2.5.0/src/spin.c: scope_hint: In function ‘get_symmetry_permutations’
spglib-2.5.0-build/spglib-2.5.0/src/spin.c:614:47: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘scalar’
Error: COMPILER_WARNING (CWE-457): [#def37]
spglib-2.5.0-build/spglib-2.5.0/src/spin.c:614:47: warning[-Wmaybe-uninitialized]: ‘scalar’ may be used uninitialized
spglib-2.5.0-build/spglib-2.5.0/src/spin.c: scope_hint: In function ‘spn_get_operations_with_site_tensors’
spglib-2.5.0-build/spglib-2.5.0/src/spin.c:563:12: note: ‘scalar’ was declared here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def38]
spglib-2.5.0-build/spglib-2.5.0/src/spin.c:618:60: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘vector[0]’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def39]
spglib-2.5.0-build/spglib-2.5.0/src/symmetry.c: scope_hint: In function ‘search_layer_pure_translations’
spglib-2.5.0-build/spglib-2.5.0/src/symmetry.c:800:29: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘copy_atoms_found’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def40]
spglib-2.5.0-build/spglib-2.5.0/src/symmetry.c:804:30: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘copy_atoms_found’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def41]
spglib-2.5.0-build/spglib-2.5.0/src/symmetry.c:804:30: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
Error: COMPILER_WARNING (CWE-477): [#def42]
spglib-2.5.0-build/spglib-2.5.0/test/functional/c/test_dataset_access.cpp: scope_hint: In member function ‘virtual void DatasetAccess_test_spg_get_hall_number_from_symmetry_Test::TestBody()’
spglib-2.5.0-build/spglib-2.5.0/test/functional/c/test_dataset_access.cpp:37:52: warning[-Wdeprecated-declarations]: ‘int spg_get_hall_number_from_symmetry(const int (*)[3][3], const double (*)[3], int, double)’ is deprecated: Use the variable from SpglibSpacegroupType instead (hall_number)
spglib-2.5.0-build/spglib-2.5.0/test/functional/c/test_dataset_access.cpp:4: included_from: Included from here.
spglib-2.5.0-build/spglib-2.5.0/include/spglib.h:357:13: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def43]
spglib-2.5.0-build/spglib-2.5.0/test/functional/c/test_magnetic_symmetry.cpp: scope_hint: In member function ‘virtual void MagneticSymmetry_test_spg_get_symmetry_with_tensors_rough_symprec_Test::TestBody()’
spglib-2.5.0-build/spglib-2.5.0/test/functional/c/test_magnetic_symmetry.cpp:224:28: warning[-Wdeprecated-declarations]: ‘int spg_get_symmetry(int (*)[3][3], double (*)[3], int, const double (*)[3], const double (*)[3], const int*, int, double)’ is deprecated: Use the variables from SpglibDataset (rotations, translations)
spglib-2.5.0-build/spglib-2.5.0/test/functional/c/test_magnetic_symmetry.cpp:4: included_from: Included from here.
spglib-2.5.0-build/spglib-2.5.0/include/spglib.h:278:13: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def44]
spglib-2.5.0-build/spglib-2.5.0/test/functional/c/test_spacegroup_type_search.cpp: scope_hint: In member function ‘virtual void SpacegroupTypeSearch_test_spg_get_international_Test::TestBody()’
spglib-2.5.0-build/spglib-2.5.0/test/functional/c/test_spacegroup_type_search.cpp:20:30: warning[-Wdeprecated-declarations]: ‘int spg_get_international(char*, const double (*)[3], const double (*)[3], const int*, int, double)’ is deprecated: Use the variables from SpglibDataset (spacegroup_number, international_symbol)
spglib-2.5.0-build/spglib-2.5.0/test/functional/c/test_spacegroup_type_search.cpp:4: included_from: Included from here.
spglib-2.5.0-build/spglib-2.5.0/include/spglib.h:398:13: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def45]
spglib-2.5.0-build/spglib-2.5.0/test/functional/c/test_spacegroup_type_search.cpp: scope_hint: In member function ‘virtual void SpacegroupTypeSearch_test_spg_get_schoenflies_Test::TestBody()’
spglib-2.5.0-build/spglib-2.5.0/test/functional/c/test_spacegroup_type_search.cpp:38:28: warning[-Wdeprecated-declarations]: ‘int spg_get_schoenflies(char*, const double (*)[3], const double (*)[3], const int*, int, double)’ is deprecated: Use the variables from SpglibDataset (spacegroup_number, international_symbol)
spglib-2.5.0-build/spglib-2.5.0/include/spglib.h:414:13: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def46]
spglib-2.5.0-build/spglib-2.5.0/test/functional/c/test_symmetry_search.cpp: scope_hint: In member function ‘virtual void SymmetrySearch_test_spg_get_symmetry_Test::TestBody()’
spglib-2.5.0-build/spglib-2.5.0/test/functional/c/test_symmetry_search.cpp:33:28: warning[-Wdeprecated-declarations]: ‘int spg_get_symmetry(int (*)[3][3], double (*)[3], int, const double (*)[3], const double (*)[3], const int*, int, double)’ is deprecated: Use the variables from SpglibDataset (rotations, translations)
spglib-2.5.0-build/spglib-2.5.0/test/functional/c/test_symmetry_search.cpp:4: included_from: Included from here.
spglib-2.5.0-build/spglib-2.5.0/include/spglib.h:278:13: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def47]
spglib-2.5.0-build/spglib-2.5.0/test/functional/c/test_symmetry_search.cpp: scope_hint: In member function ‘virtual void SymmetrySearch_test_spg_get_multiplicity_Test::TestBody()’
spglib-2.5.0-build/spglib-2.5.0/test/functional/c/test_symmetry_search.cpp:81:32: warning[-Wdeprecated-declarations]: ‘int spg_get_multiplicity(const double (*)[3], const double (*)[3], const int*, int, double)’ is deprecated: Use the variables from SpglibDataset (n_operations)
spglib-2.5.0-build/spglib-2.5.0/include/spglib.h:384:13: note: declared here
Error: GCC_ANALYZER_WARNING (CWE-476): [#def48]
spglib-2.5.0-build/spglib-2.5.0/test/utils.c: scope_hint: In function ‘sub_spg_standardize_cell’
spglib-2.5.0-build/spglib-2.5.0/test/utils.c:159:16: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘typ’
Scan Properties
analyzer-version-clippy | 1.84.0 |
analyzer-version-cppcheck | 2.16.2 |
analyzer-version-gcc | 15.0.1 |
analyzer-version-gcc-analyzer | 15.0.1 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-226.us-west-2.compute.internal |
mock-config | fedora-rawhide-x86_64 |
project-name | spglib-2.5.0-1.20250129215050679880.pr499.47.g5a8bd83 |
store-results-to | /tmp/tmpo9orywph/spglib-2.5.0-1.20250129215050679880.pr499.47.g5a8bd83.tar.xz |
time-created | 2025-01-29 22:02:25 |
time-finished | 2025-01-29 22:04:12 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,unicontrol,clippy,cppcheck,gcc' '-o' '/tmp/tmpo9orywph/spglib-2.5.0-1.20250129215050679880.pr499.47.g5a8bd83.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '/tmp/tmpo9orywph/spglib-2.5.0-1.20250129215050679880.pr499.47.g5a8bd83.src.rpm' |
tool-version | csmock-3.8.0-1.el9 |