Error: COMPILER_WARNING (CWE-457): [#def1] spglib-2.5.0-build/spglib-2.5.0/src/pointgroup.c:752:22: warning[-Wmaybe-uninitialized]: ‘axes’ may be used uninitialized # 752 | if (rot_axes[axes[0]][aperiodic_axis] == 1 || # | ~~~~^~~ 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 # 382 | int axes[3]; # | ^~~~ # 750| } # 751| # 752|-> if (rot_axes[axes[0]][aperiodic_axis] == 1 || # 753| rot_axes[axes[0]][aperiodic_axis] == -1) { # 754| /* For Monoclinic/Oblique. */ Error: COMPILER_WARNING (CWE-457): [#def2] spglib-2.5.0-build/spglib-2.5.0/src/pointgroup.c:1038:46: warning[-Wmaybe-uninitialized]: ‘axes’ may be used uninitialized # 1038 | tmat[i][j] = s[j] * rot_axes[axes[j] % NUM_ROT_AXES][i]; # | ~~~~^~~ 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 # 382 | int axes[3]; # | ^~~~ # 1036| for (i = 0; i < 3; i++) { # 1037| for (j = 0; j < 3; j++) { # 1038|-> tmat[i][j] = s[j] * rot_axes[axes[j] % NUM_ROT_AXES][i]; # 1039| } # 1040| } Error: COMPILER_WARNING (CWE-457): [#def3] 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 # 272 | vector_res[s] += vector_tmp[s] - cell->tensors[3 * i + s]; # | ^~ spglib-2.5.0-build/spglib-2.5.0/src/spin.c:198:51: note: ‘vector_res[0]’ was declared here # 198 | double pos_tmp[3], pos_res[3], vector_tmp[3], vector_res[3]; # | ^~~~~~~~~~ # 270| with_time_reversal, is_axial); # 271| for (s = 0; s < 3; s++) { # 272|-> vector_res[s] += vector_tmp[s] - cell->tensors[3 * i + s]; # 273| } # 274| } Error: COMPILER_WARNING (CWE-457): [#def4] spglib-2.5.0-build/spglib-2.5.0/src/spin.c:272:35: warning[-Wmaybe-uninitialized]: ‘vector_res[1]’ may be used uninitialized # 272 | vector_res[s] += vector_tmp[s] - cell->tensors[3 * i + s]; # | ^~ spglib-2.5.0-build/spglib-2.5.0/src/spin.c:198:51: note: ‘vector_res[1]’ was declared here # 198 | double pos_tmp[3], pos_res[3], vector_tmp[3], vector_res[3]; # | ^~~~~~~~~~ # 270| with_time_reversal, is_axial); # 271| for (s = 0; s < 3; s++) { # 272|-> vector_res[s] += vector_tmp[s] - cell->tensors[3 * i + s]; # 273| } # 274| } Error: COMPILER_WARNING (CWE-457): [#def5] spglib-2.5.0-build/spglib-2.5.0/src/spin.c:272:35: warning[-Wmaybe-uninitialized]: ‘vector_res[2]’ may be used uninitialized # 272 | vector_res[s] += vector_tmp[s] - cell->tensors[3 * i + s]; # | ^~ spglib-2.5.0-build/spglib-2.5.0/src/spin.c:198:51: note: ‘vector_res[2]’ was declared here # 198 | double pos_tmp[3], pos_res[3], vector_tmp[3], vector_res[3]; # | ^~~~~~~~~~ # 270| with_time_reversal, is_axial); # 271| for (s = 0; s < 3; s++) { # 272|-> vector_res[s] += vector_tmp[s] - cell->tensors[3 * i + s]; # 273| } # 274| }
| 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 |
| diffbase-analyzer-version-clippy | 1.84.0 |
| diffbase-analyzer-version-cppcheck | 2.16.2 |
| diffbase-analyzer-version-gcc | 15.0.1 |
| diffbase-analyzer-version-gcc-analyzer | 15.0.1 |
| diffbase-analyzer-version-shellcheck | 0.10.0 |
| diffbase-analyzer-version-unicontrol | 0.0.2 |
| diffbase-enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| diffbase-exit-code | 0 |
| diffbase-host | ip-172-16-1-169.us-west-2.compute.internal |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | spglib-2.5.0-1.20250130131433443769.pr548.68.g517e57e |
| diffbase-store-results-to | /tmp/tmppc61iyku/spglib-2.5.0-1.20250130131433443769.pr548.68.g517e57e.tar.xz |
| diffbase-time-created | 2025-01-30 13:21:53 |
| diffbase-time-finished | 2025-01-30 13:23:27 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,clippy,shellcheck,gcc,unicontrol' '-o' '/tmp/tmppc61iyku/spglib-2.5.0-1.20250130131433443769.pr548.68.g517e57e.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '/tmp/tmppc61iyku/spglib-2.5.0-1.20250130131433443769.pr548.68.g517e57e.src.rpm' |
| diffbase-tool-version | csmock-3.8.0-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-169.us-west-2.compute.internal |
| mock-config | fedora-rawhide-x86_64 |
| project-name | spglib-2.5.0-1.20250130113722923930.develop.61.gdc75238 |
| store-results-to | /tmp/tmpw5oebl4a/spglib-2.5.0-1.20250130113722923930.develop.61.gdc75238.tar.xz |
| time-created | 2025-01-30 13:19:29 |
| time-finished | 2025-01-30 13:21:35 |
| title | Fixed findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,clippy,shellcheck,gcc,unicontrol' '-o' '/tmp/tmpw5oebl4a/spglib-2.5.0-1.20250130113722923930.develop.61.gdc75238.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '/tmp/tmpw5oebl4a/spglib-2.5.0-1.20250130113722923930.develop.61.gdc75238.src.rpm' |
| tool-version | csmock-3.8.0-1.el9 |