Newly introduced findings

List of Findings

Error: COMPILER_WARNING (CWE-477): [#def1]
spglib-2.6.0/python/py_bindings.cpp: scope_hint: In function ‘std::optional<pybind11::list> spglib::layer_dataset(array_double, array_double, array_int, pybind11::int_, pybind11::float_)’
spglib-2.6.0/python/py_bindings.cpp:256:41: warning[-Wdeprecated-declarations]: ‘SpglibDataset* spg_get_layer_dataset(const double (*)[3], const double (*)[3], const int*, int, int, double)’ is deprecated: Experimental interface. May be removed in next major release.
#  256 |     if ((dataset = spg_get_layer_dataset((double (*)[3])lattice.data(),
#      |                    ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  257 |                                          (double (*)[3])positions.data(),
#      |                                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  258 |                                          atom_types.data(), atom_types.size(),
#      |                                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  259 |                                          aperiodic_dir, symprec)) == nullptr)
#      |                                          ~~~~~~~~~~~~~~~~~~~~~~~
spglib-2.6.0/python/py_bindings.cpp:4: included_from: Included from here.
spglib-2.6.0/include/spglib.h:213:1: note: declared here
#  213 | spg_get_layer_dataset(double const lattice[3][3], double const position[][3],
#      | ^~~~~~~~~~~~~~~~~~~~~
#  254|                                                 py::float_ symprec) {
#  255|       SpglibDataset *dataset;
#  256|->     if ((dataset = spg_get_layer_dataset((double (*)[3])lattice.data(),
#  257|                                            (double (*)[3])positions.data(),
#  258|                                            atom_types.data(), atom_types.size(),

Error: COMPILER_WARNING (CWE-457): [#def2]
spglib-2.6.0/src/spacegroup.c:1066:13: warning[-Wmaybe-uninitialized]: ‘num_free_axes’ may be used uninitialized
# 1066 |         if (match_hall_symbol_db_ortho(origin_shift, conv_lattice, orig_lattice,
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1067 |                                        hall_number, centering, symmetry,
#      |                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1068 |                                        num_free_axes, symprec)) {
#      |                                        ~~~~~~~~~~~~~~~~~~~~~~~
spglib-2.6.0/src/spacegroup.c: scope_hint: In function ‘search_hall_number’
spglib-2.6.0/src/spacegroup.c:999:19: note: ‘num_free_axes’ was declared here
#  999 |     int is_found, num_free_axes;
#      |                   ^~~~~~~~~~~~~
# 1064|           }
# 1065|   
# 1066|->         if (match_hall_symbol_db_ortho(origin_shift, conv_lattice, orig_lattice,
# 1067|                                          hall_number, centering, symmetry,
# 1068|                                          num_free_axes, symprec)) {

Scan Properties

analyzer-version-clippy1.86.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.1.1
analyzer-version-gcc-analyzer15.1.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.86.0
diffbase-analyzer-version-cppcheck2.17.1
diffbase-analyzer-version-gcc15.1.1
diffbase-analyzer-version-gcc-analyzer15.1.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-95.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20250509.165649.g41c6174.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namespglib-2.6.0-1.20250512100432049770.develop.10.gcff3a27
diffbase-store-results-to/tmp/tmpnosjbvfn/spglib-2.6.0-1.20250512100432049770.develop.10.gcff3a27.tar.xz
diffbase-time-created2025-05-12 17:26:08
diffbase-time-finished2025-05-12 17:28:17
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpnosjbvfn/spglib-2.6.0-1.20250512100432049770.develop.10.gcff3a27.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpnosjbvfn/spglib-2.6.0-1.20250512100432049770.develop.10.gcff3a27.src.rpm'
diffbase-tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-95.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250509.165649.g41c6174.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namespglib-2.6.0-1.20250512171525796309.pr581.12.g5dd9a84
store-results-to/tmp/tmpbqg2ucnh/spglib-2.6.0-1.20250512171525796309.pr581.12.g5dd9a84.tar.xz
time-created2025-05-12 17:28:31
time-finished2025-05-12 17:30:17
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpbqg2ucnh/spglib-2.6.0-1.20250512171525796309.pr581.12.g5dd9a84.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpbqg2ucnh/spglib-2.6.0-1.20250512171525796309.pr581.12.g5dd9a84.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9