Newly introduced findings

List of Findings

Error: COMPILER_WARNING (CWE-477): [#def1]
spglib-2.6.0/python/py_bindings.cpp: scope_hint: In function ‘pybind11::dict spglib::layer_dataset(const Lattice&, const Positions&, const AtomTypes&, pybind11::int_, pybind11::float_)’
spglib-2.6.0/python/py_bindings.cpp:361: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.
#  361 |     if ((dataset = spg_get_layer_dataset(lattice.data(), positions.data(),
#      |                    ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  362 |                                          atom_types.data(), atom_types.n_atoms,
#      |                                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  363 |                                          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:212:24: note: declared here
#  212 | SPG_API SpglibDataset *spg_get_layer_dataset(
#      |                        ^~~~~~~~~~~~~~~~~~~~~
#  359|                                  py::int_ aperiodic_dir, py::float_ symprec) {
#  360|       SpglibDataset* dataset;
#  361|->     if ((dataset = spg_get_layer_dataset(lattice.data(), positions.data(),
#  362|                                            atom_types.data(), atom_types.n_atoms,
#  363|                                            aperiodic_dir, symprec)) == nullptr)

Error: COMPILER_WARNING (CWE-477): [#def2]
spglib-2.6.0/python/py_bindings.cpp: scope_hint: In function ‘pybind11::int_ spglib::symmetry(Rotations&, Translations&, const Lattice&, const Positions&, const AtomTypes&, pybind11::float_, pybind11::float_)’
spglib-2.6.0/python/py_bindings.cpp:476:30: warning[-Wdeprecated-declarations]: ‘int spgat_get_symmetry(int (*)[3][3], double (*)[3], int, const double (*)[3], const double (*)[3], const int*, int, double, double)’ is deprecated: Use the variables from SpglibDataset (rotations, translations)
#  476 |     return spgat_get_symmetry(rotations.data(), translations.data(),
#      |            ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  477 |                               rotations.n_operations, lattice.data(),
#      |                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  478 |                               positions.data(), atom_types.data(),
#      |                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  479 |                               atom_types.n_atoms, symprec, angle_tolerance);
#      |                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
spglib-2.6.0/include/spglib.h:254:13: note: declared here
#  254 | SPG_API int spgat_get_symmetry(int rotation[][3][3], double translation[][3],
#      |             ^~~~~~~~~~~~~~~~~~
#  474|                             AtomTypes const& atom_types, py::float_ symprec,
#  475|                             py::float_ angle_tolerance) {
#  476|->     return spgat_get_symmetry(rotations.data(), translations.data(),
#  477|                                 rotations.n_operations, lattice.data(),
#  478|                                 positions.data(), atom_types.data(),

Error: COMPILER_WARNING (CWE-477): [#def3]
spglib-2.6.0/python/py_bindings.cpp: scope_hint: In function ‘pybind11::int_ spglib::hall_number_from_symmetry(const Rotations&, const Translations&, pybind11::float_)’
spglib-2.6.0/python/py_bindings.cpp:609:45: 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)
#  609 |     return spg_get_hall_number_from_symmetry(
#      |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
#  610 |         rotations.data(), translations.data(), rotations.n_operations, symprec);
#      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
spglib-2.6.0/include/spglib.h:327:13: note: declared here
#  327 | SPG_API int spg_get_hall_number_from_symmetry(int const rotation[][3][3],
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  607|                                              Translations const& translations,
#  608|                                              py::float_ symprec) {
#  609|->     return spg_get_hall_number_from_symmetry(
#  610|           rotations.data(), translations.data(), rotations.n_operations, symprec);
#  611|   }

Scan Properties

analyzer-version-clippy1.88.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.88.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-126.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.20250521.132812.g8eff701.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namespglib-2.6.0-1.20250622063357247745.develop.23.gf255fca
diffbase-store-results-to/tmp/tmp7xwve2uh/spglib-2.6.0-1.20250622063357247745.develop.23.gf255fca.tar.xz
diffbase-time-created2025-07-22 12:47:39
diffbase-time-finished2025-07-22 12:49:48
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,shellcheck,cppcheck,clippy,gcc' '-o' '/tmp/tmp7xwve2uh/spglib-2.6.0-1.20250622063357247745.develop.23.gf255fca.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmp7xwve2uh/spglib-2.6.0-1.20250622063357247745.develop.23.gf255fca.src.rpm'
diffbase-tool-versioncsmock-3.8.2-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-126.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namespglib-2.6.0-1.20250722123826216908.pr579.30.g41c6c8a
store-results-to/tmp/tmpjeiozs6e/spglib-2.6.0-1.20250722123826216908.pr579.30.g41c6c8a.tar.xz
time-created2025-07-22 12:50:03
time-finished2025-07-22 12:51:51
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,shellcheck,cppcheck,clippy,gcc' '-o' '/tmp/tmpjeiozs6e/spglib-2.6.0-1.20250722123826216908.pr579.30.g41c6c8a.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpjeiozs6e/spglib-2.6.0-1.20250722123826216908.pr579.30.g41c6c8a.src.rpm'
tool-versioncsmock-3.8.2-1.el9