Task #55388 - fixed.err
back to task #55388download
Error: COMPILER_WARNING (CWE-477):
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:254: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.
# 254 | if ((dataset = spg_get_layer_dataset(
# | ~~~~~~~~~~~~~~~~~~~~~^
# 255 | (double (*)[3])lattice.data(), (double (*)[3])positions.data(),
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 256 | atom_types.data(), atom_types.size(), aperiodic_dir, symprec)) ==
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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(
# | ^~~~~~~~~~~~~~~~~~~~~
# 252| py::float_ symprec) {
# 253| SpglibDataset* dataset;
# 254|-> if ((dataset = spg_get_layer_dataset(
# 255| (double (*)[3])lattice.data(), (double (*)[3])positions.data(),
# 256| atom_types.data(), atom_types.size(), aperiodic_dir, symprec)) ==
Error: CPPCHECK_WARNING (CWE-457):
spglib-2.6.0/src/delaunay.c:95: warning[uninitvar]: Uninitialized variable: succeeded
# 93| }
# 94|
# 95|-> if (!succeeded) {
# 96| goto err;
# 97| }
Error: CPPCHECK_WARNING (CWE-457):
spglib-2.6.0/src/delaunay.c:388: warning[uninitvar]: Uninitialized variable: succeeded
# 386| }
# 387|
# 388|-> if (!succeeded) {
# 389| goto err;
# 390| }
Error: COMPILER_WARNING (CWE-457):
spglib-2.6.0/src/spacegroup.c:1064:17: warning[-Wmaybe-uninitialized]: ‘num_free_axes’ may be used uninitialized
# 1064 | if (match_hall_symbol_db_ortho(origin_shift, conv_lattice,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1065 | orig_lattice, hall_number, centering,
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1066 | symmetry, 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:996:19: note: ‘num_free_axes’ was declared here
# 996 | int is_found, num_free_axes;
# | ^~~~~~~~~~~~~
# 1062| }
# 1063|
# 1064|-> if (match_hall_symbol_db_ortho(origin_shift, conv_lattice,
# 1065| orig_lattice, hall_number, centering,
# 1066| symmetry, num_free_axes, symprec)) {
Error: CPPCHECK_WARNING (CWE-823):
spglib-2.6.0/src/spglib.c:218: error[arrayIndexOutOfBounds]: Array 'spglib_error_message[10]' accessed at index 99, which is out of bounds.
# 216|
# 217| for (i = 0; i < 100; i++) {
# 218|-> if (SPGERR_NONE == spglib_error_message[i].error) {
# 219| break;
# 220| }
Error: CPPCHECK_WARNING (CWE-476):
spglib-2.6.0/src/symmetry.c:531: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: copy_atoms_found
# 529|
# 530| for (initial_atom = 0; initial_atom < cell->size; initial_atom++) {
# 531|-> if (!copy_atoms_found[initial_atom]) {
# 532| continue;
# 533| }
Error: CPPCHECK_WARNING (CWE-476):
spglib-2.6.0/src/symmetry.c:774: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: copy_atoms_found
# 772|
# 773| for (initial_atom = 0; initial_atom < cell->size; initial_atom++) {
# 774|-> if (!copy_atoms_found[initial_atom]) {
# 775| continue;
# 776| }
Error: GCC_ANALYZER_WARNING (CWE-476):
spglib-2.6.0/src/symmetry.c:774:30: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘copy_atoms_found’
# 772|
# 773| for (initial_atom = 0; initial_atom < cell->size; initial_atom++) {
# 774|-> if (!copy_atoms_found[initial_atom]) {
# 775| continue;
# 776| }
Error: GCC_ANALYZER_WARNING (CWE-457):
spglib-2.6.0/src/symmetry.c:774:30: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
# 772|
# 773| for (initial_atom = 0; initial_atom < cell->size; initial_atom++) {
# 774|-> if (!copy_atoms_found[initial_atom]) {
# 775| continue;
# 776| }