2025-05-08 03:06 ftp://ftp.de.debian.org/debian/pool/main/s/spglib/spglib_2.6.0.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=googletest --library=ruby --library=python --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.8.0-59-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.17.0 head-info: ebc80c0 (2025-05-07 18:59:31 +0200) count: 171 171 elapsed-time: 14.3 14.3 head-timing-info: old-timing-info: head results: spglib-2.6.0/python/_spglib.c:396:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] spglib-2.6.0/python/_spglib.c:426:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_RuntimeError [valueFlowBailoutIncompleteVar] spglib-2.6.0/python/_spglib.c:494:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] spglib-2.6.0/python/_spglib.c:664:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] spglib-2.6.0/python/_spglib.c:714:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] spglib-2.6.0/python/_spglib.c:781:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] spglib-2.6.0/python/_spglib.c:833:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] spglib-2.6.0/python/_spglib.c:881:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] spglib-2.6.0/python/_spglib.c:1222:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NPY_UINTP [valueFlowBailoutIncompleteVar] spglib-2.6.0/python/_spglib.c:1279:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NPY_UINTP [valueFlowBailoutIncompleteVar] spglib-2.6.0/python/_spglib.c:1327:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] spglib-2.6.0/python/_spglib.c:1364:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] spglib-2.6.0/python/_spglib.c:1466:65: style: Parameter 'args' can be declared as pointer to const. However it seems that 'py_get_error_message' is a callback function, if 'args' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spglib-2.6.0/python/_spglib.c:113:23: note: You might need to cast the function pointer here spglib-2.6.0/python/_spglib.c:1466:65: note: Parameter 'args' can be declared as pointer to const spglib-2.6.0/python/_spglib.c:416:19: style: Unused variable: len_list [unusedVariable] spglib-2.6.0/ruby/getspg.c:318:55: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] spglib-2.6.0/src/delaunay.c:55:32: style:inconclusive: Function 'del_delaunay_reduce' argument 1 names different: declaration 'lattice_new' definition 'min_lattice'. [funcArgNamesDifferent] spglib-2.6.0/src/delaunay.h:11:45: note: Function 'del_delaunay_reduce' argument 1 names different: declaration 'lattice_new' definition 'min_lattice'. spglib-2.6.0/src/delaunay.c:55:32: note: Function 'del_delaunay_reduce' argument 1 names different: declaration 'lattice_new' definition 'min_lattice'. spglib-2.6.0/src/delaunay.c:332:41: style:inconclusive: Function 'del_layer_delaunay_reduce_2D' argument 1 names different: declaration 'min_lattice' definition 'red_lattice'. [funcArgNamesDifferent] spglib-2.6.0/src/delaunay.h:31:41: note: Function 'del_layer_delaunay_reduce_2D' argument 1 names different: declaration 'min_lattice' definition 'red_lattice'. spglib-2.6.0/src/delaunay.c:332:41: note: Function 'del_layer_delaunay_reduce_2D' argument 1 names different: declaration 'min_lattice' definition 'red_lattice'. spglib-2.6.0/src/delaunay.c:95:10: warning: Uninitialized variable: succeeded [uninitvar] spglib-2.6.0/src/delaunay.c:86:18: note: Assuming condition is false spglib-2.6.0/src/delaunay.c:95:10: note: Uninitialized variable: succeeded spglib-2.6.0/src/delaunay.c:388:10: warning: Uninitialized variable: succeeded [uninitvar] spglib-2.6.0/src/delaunay.c:379:18: note: Assuming condition is false spglib-2.6.0/src/delaunay.c:388:10: note: Uninitialized variable: succeeded spglib-2.6.0/src/hall_symbol.c:9219:43: style:inconclusive: Function 'is_match_database' argument 2 names different: declaration 'shift' definition 'origin_shift'. [funcArgNamesDifferent] spglib-2.6.0/src/hall_symbol.c:8552:66: note: Function 'is_match_database' argument 2 names different: declaration 'shift' definition 'origin_shift'. spglib-2.6.0/src/hall_symbol.c:9219:43: note: Function 'is_match_database' argument 2 names different: declaration 'shift' definition 'origin_shift'. spglib-2.6.0/src/kpoint.c:679:47: style: The if condition is the same as the previous if condition [duplicateCondition] spglib-2.6.0/src/kpoint.c:674:47: note: First condition spglib-2.6.0/src/kpoint.c:679:47: note: Second condition spglib-2.6.0/src/kpoint.c:533:39: style: Parameter 'ir_mapping_table' can be declared as const array [constParameter] spglib-2.6.0/src/kpoint.c:479:20: style: int result is assigned to long variable. If the variable is long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] spglib-2.6.0/src/magnetic_spacegroup.c:563:6: warning: Either the condition 'spacegroup==NULL' is redundant or there is possible null pointer dereference: spacegroup. [nullPointerRedundantCheck] spglib-2.6.0/src/magnetic_spacegroup.c:585:20: note: Assuming that condition 'spacegroup==NULL' is not redundant spglib-2.6.0/src/magnetic_spacegroup.c:563:6: note: Null pointer dereference spglib-2.6.0/src/magnetic_spacegroup.c:566:39: warning: Either the condition 'spacegroup==NULL' is redundant or there is possible null pointer dereference: spacegroup. [nullPointerRedundantCheck] spglib-2.6.0/src/magnetic_spacegroup.c:585:20: note: Assuming that condition 'spacegroup==NULL' is not redundant spglib-2.6.0/src/magnetic_spacegroup.c:566:39: note: Null pointer dereference spglib-2.6.0/src/magnetic_spacegroup.c:579:30: warning: Either the condition 'spacegroup==NULL' is redundant or there is possible null pointer dereference: spacegroup. [nullPointerRedundantCheck] spglib-2.6.0/src/magnetic_spacegroup.c:585:20: note: Assuming that condition 'spacegroup==NULL' is not redundant spglib-2.6.0/src/magnetic_spacegroup.c:579:30: note: Null pointer dereference spglib-2.6.0/src/magnetic_spacegroup.c:580:30: warning: Either the condition 'spacegroup==NULL' is redundant or there is possible null pointer dereference: spacegroup. [nullPointerRedundantCheck] spglib-2.6.0/src/magnetic_spacegroup.c:585:20: note: Assuming that condition 'spacegroup==NULL' is not redundant spglib-2.6.0/src/magnetic_spacegroup.c:580:30: note: Null pointer dereference spglib-2.6.0/src/magnetic_spacegroup.c:697:29: style:inconclusive: Function 'get_changed_magnetic_symmetry' argument 3 names different: declaration 'representative' definition 'representatives'. [funcArgNamesDifferent] spglib-2.6.0/src/magnetic_spacegroup.c:40:29: note: Function 'get_changed_magnetic_symmetry' argument 3 names different: declaration 'representative' definition 'representatives'. spglib-2.6.0/src/magnetic_spacegroup.c:697:29: note: Function 'get_changed_magnetic_symmetry' argument 3 names different: declaration 'representative' definition 'representatives'. spglib-2.6.0/src/magnetic_spacegroup.c:143:18: style: Local variable 'i' shadows outer variable [shadowVariable] spglib-2.6.0/src/magnetic_spacegroup.c:64:9: note: Shadowed declaration spglib-2.6.0/src/magnetic_spacegroup.c:143:18: note: Shadow variable spglib-2.6.0/src/niggli.c:221:5: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] spglib-2.6.0/src/niggli.c:511:48: style:inconclusive: Function 'multiply_matrices' argument 1 names different: declaration 'A' definition 'L'. [funcArgNamesDifferent] spglib-2.6.0/src/niggli.c:46:48: note: Function 'multiply_matrices' argument 1 names different: declaration 'A' definition 'L'. spglib-2.6.0/src/niggli.c:511:48: note: Function 'multiply_matrices' argument 1 names different: declaration 'A' definition 'L'. spglib-2.6.0/src/niggli.c:511:65: style:inconclusive: Function 'multiply_matrices' argument 2 names different: declaration 'B' definition 'R'. [funcArgNamesDifferent] spglib-2.6.0/src/niggli.c:46:65: note: Function 'multiply_matrices' argument 2 names different: declaration 'B' definition 'R'. spglib-2.6.0/src/niggli.c:511:65: note: Function 'multiply_matrices' argument 2 names different: declaration 'B' definition 'R'. spglib-2.6.0/src/niggli.c:313:42: style: Parameter 'p' can be declared as pointer to const. However it seems that 'step2_for_layer' is a callback function, if 'p' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spglib-2.6.0/src/niggli.c:109:20: note: You might need to cast the function pointer here spglib-2.6.0/src/niggli.c:313:42: note: Parameter 'p' can be declared as pointer to const spglib-2.6.0/src/niggli.c:105:35: error: Uninitialized variable: p [uninitvar] spglib-2.6.0/src/overlap.c:502:30: portability: Casting between char * and double * which have an incompatible binary data representation. [invalidPointerCast] spglib-2.6.0/src/pointgroup.c:926:40: style:inconclusive: Function 'get_rotation_axis' argument 1 names different: declaration 'rot' definition 'proper_rot'. [funcArgNamesDifferent] spglib-2.6.0/src/pointgroup.c:328:40: note: Function 'get_rotation_axis' argument 1 names different: declaration 'rot' definition 'proper_rot'. spglib-2.6.0/src/pointgroup.c:926:40: note: Function 'get_rotation_axis' argument 1 names different: declaration 'rot' definition 'proper_rot'. spglib-2.6.0/src/pointgroup.c:378:12: warning: Uninitialized variables: pointgroup.holohedry, pointgroup.laue [uninitvar] spglib-2.6.0/src/pointgroup.c:367:20: note: Assuming condition is false spglib-2.6.0/src/pointgroup.c:378:12: note: Uninitialized variables: pointgroup.holohedry, pointgroup.laue spglib-2.6.0/src/primitive.c:613:54: style:inconclusive: Function 'get_primitive_in_translation_space' argument 1 names different: declaration 't_mat' definition 't_mat_inv'. [funcArgNamesDifferent] spglib-2.6.0/src/primitive.c:37:54: note: Function 'get_primitive_in_translation_space' argument 1 names different: declaration 't_mat' definition 't_mat_inv'. spglib-2.6.0/src/primitive.c:613:54: note: Function 'get_primitive_in_translation_space' argument 1 names different: declaration 't_mat' definition 't_mat_inv'. spglib-2.6.0/src/site_symmetry.c:342:9: warning: If memory allocation fails, then there is a possible null pointer dereference: nums_equiv_atoms [nullPointerOutOfMemory] spglib-2.6.0/src/site_symmetry.c:340:37: note: Assuming allocation function fails spglib-2.6.0/src/site_symmetry.c:340:24: note: Assignment 'nums_equiv_atoms=(int*)malloc(sizeof(int)*conv_prim->size)', assigned value is 0 spglib-2.6.0/src/site_symmetry.c:342:9: note: Null pointer dereference spglib-2.6.0/src/site_symmetry.c:346:9: warning: If memory allocation fails, then there is a possible null pointer dereference: nums_equiv_atoms [nullPointerOutOfMemory] spglib-2.6.0/src/site_symmetry.c:340:37: note: Assuming allocation function fails spglib-2.6.0/src/site_symmetry.c:340:24: note: Assignment 'nums_equiv_atoms=(int*)malloc(sizeof(int)*conv_prim->size)', assigned value is 0 spglib-2.6.0/src/site_symmetry.c:346:9: note: Null pointer dereference spglib-2.6.0/src/site_symmetry.c:61:45: style:inconclusive: Function 'ssm_get_exact_positions' argument 4 names different: declaration 'bravais' definition 'conv_prim'. [funcArgNamesDifferent] spglib-2.6.0/src/site_symmetry.h:14:45: note: Function 'ssm_get_exact_positions' argument 4 names different: declaration 'bravais' definition 'conv_prim'. spglib-2.6.0/src/site_symmetry.c:61:45: note: Function 'ssm_get_exact_positions' argument 4 names different: declaration 'bravais' definition 'conv_prim'. spglib-2.6.0/src/sitesym_database.c:1628:38: warning: Either the condition 'index>0' is redundant or the array 'position_wyckoff[532]' is accessed at index 532, which is out of bounds. [arrayIndexOutOfBoundsCond] spglib-2.6.0/src/sitesym_database.c:1627:15: note: Assuming that condition 'index>0' is not redundant spglib-2.6.0/src/sitesym_database.c:1628:38: note: Array index out of bounds spglib-2.6.0/src/sitesym_database.c:1629:68: warning: Either the condition 'index>0' is redundant or the array 'position_wyckoff[532]' is accessed at index 532, which is out of bounds. [arrayIndexOutOfBoundsCond] spglib-2.6.0/src/sitesym_database.c:1627:15: note: Assuming that condition 'index>0' is not redundant spglib-2.6.0/src/sitesym_database.c:1629:68: note: Array index out of bounds spglib-2.6.0/src/spacegroup.c:1219:55: error: Array 'all_origin_shifts[36][3]' accessed at index -1, which is out of bounds. [negativeIndex] spglib-2.6.0/src/spacegroup.c:1203:19: note: Assignment 'i_shortest=-1', assigned value is -1 spglib-2.6.0/src/spacegroup.c:1204:19: note: Assuming condition is false spglib-2.6.0/src/spacegroup.c:1219:55: note: Negative array index spglib-2.6.0/src/spacegroup.c:1220:55: error: Array 'all_conv_lattices[36][3][3]' accessed at index -1, which is out of bounds. [negativeIndex] spglib-2.6.0/src/spacegroup.c:1203:19: note: Assignment 'i_shortest=-1', assigned value is -1 spglib-2.6.0/src/spacegroup.c:1204:19: note: Assuming condition is false spglib-2.6.0/src/spacegroup.c:1220:55: note: Negative array index spglib-2.6.0/src/spacegroup.c:472:9: style: The if condition is the same as the previous if condition [duplicateCondition] spglib-2.6.0/src/spacegroup.c:468:21: note: First condition spglib-2.6.0/src/spacegroup.c:472:9: note: Second condition spglib-2.6.0/src/spacegroup.c:1326:48: style:inconclusive: Function 'match_hall_symbol_db_ortho' argument 6 names different: declaration 'symmetry' definition 'conv_symmetry'. [funcArgNamesDifferent] spglib-2.6.0/src/spacegroup.c:402:48: note: Function 'match_hall_symbol_db_ortho' argument 6 names different: declaration 'symmetry' definition 'conv_symmetry'. spglib-2.6.0/src/spacegroup.c:1326:48: note: Function 'match_hall_symbol_db_ortho' argument 6 names different: declaration 'symmetry' definition 'conv_symmetry'. spglib-2.6.0/src/spacegroup.c:1371:36: style:inconclusive: Function 'match_hall_symbol_db_ortho_in_loop' argument 2 names different: declaration 'lattice' definition 'conv_lattice'. [funcArgNamesDifferent] spglib-2.6.0/src/spacegroup.c:405:36: note: Function 'match_hall_symbol_db_ortho_in_loop' argument 2 names different: declaration 'lattice' definition 'conv_lattice'. spglib-2.6.0/src/spacegroup.c:1371:36: note: Function 'match_hall_symbol_db_ortho_in_loop' argument 2 names different: declaration 'lattice' definition 'conv_lattice'. spglib-2.6.0/src/spacegroup.c:1944:63: style:inconclusive: Function 'is_equivalent_lattice' argument 2 names different: declaration 'allow_flip' definition 'mode'. [funcArgNamesDifferent] spglib-2.6.0/src/spacegroup.c:445:63: note: Function 'is_equivalent_lattice' argument 2 names different: declaration 'allow_flip' definition 'mode'. spglib-2.6.0/src/spacegroup.c:1944:63: note: Function 'is_equivalent_lattice' argument 2 names different: declaration 'allow_flip' definition 'mode'. spglib-2.6.0/src/spacegroup.c:1735:11: style: Variable 'multi' is assigned a value that is never used. [unreadVariable] spglib-2.6.0/src/spacegroup.c:1835:25: style: Variable 'centering' is assigned a value that is never used. [unreadVariable] spglib-2.6.0/src/spglib.c:177:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPGLIB_SUCCESS [valueFlowBailoutIncompleteVar] spglib-2.6.0/src/spglib.c:182:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPGLIB_SUCCESS [valueFlowBailoutIncompleteVar] spglib-2.6.0/src/spglib.c:187:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPGLIB_SUCCESS [valueFlowBailoutIncompleteVar] spglib-2.6.0/src/spglib.c:192:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPGLIB_SUCCESS [valueFlowBailoutIncompleteVar] spglib-2.6.0/src/spglib.c:197:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPGLIB_SUCCESS [valueFlowBailoutIncompleteVar] spglib-2.6.0/src/spglib.c:202:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPGLIB_SUCCESS [valueFlowBailoutIncompleteVar] spglib-2.6.0/src/spglib.c:218:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPGERR_NONE [valueFlowBailoutIncompleteVar] spglib-2.6.0/src/spglib.c:494:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] spglib-2.6.0/src/spglib.c:535:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPGLIB_SUCCESS [valueFlowBailoutIncompleteVar] spglib-2.6.0/src/spglib.c:555:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPGLIB_SUCCESS [valueFlowBailoutIncompleteVar] spglib-2.6.0/src/spglib.c:679:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPGERR_POINTGROUP_NOT_FOUND [valueFlowBailoutIncompleteVar] spglib-2.6.0/src/spglib.c:711:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPGLIB_SUCCESS [valueFlowBailoutIncompleteVar] spglib-2.6.0/src/spglib.c:732:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPGERR_SPACEGROUP_SEARCH_FAILED [valueFlowBailoutIncompleteVar] spglib-2.6.0/src/spglib.c:755:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPGLIB_SUCCESS [valueFlowBailoutIncompleteVar] spglib-2.6.0/src/spglib.c:785:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPGLIB_SUCCESS [valueFlowBailoutIncompleteVar] spglib-2.6.0/src/spglib.c:869:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPGLIB_SUCCESS [valueFlowBailoutIncompleteVar] spglib-2.6.0/src/spglib.c:1001:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPGLIB_SUCCESS [valueFlowBailoutIncompleteVar] spglib-2.6.0/src/spglib.c:1069:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPGERR_SPACEGROUP_SEARCH_FAILED [valueFlowBailoutIncompleteVar] spglib-2.6.0/src/spglib.c:1154:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPGERR_SPACEGROUP_SEARCH_FAILED [valueFlowBailoutIncompleteVar] spglib-2.6.0/src/spglib.c:1195:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPGERR_SPACEGROUP_SEARCH_FAILED [valueFlowBailoutIncompleteVar] spglib-2.6.0/src/spglib.c:1312:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SpglibDataset [valueFlowBailoutIncompleteVar] spglib-2.6.0/src/spglib.c:1356:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SpglibMagneticDataset [valueFlowBailoutIncompleteVar] spglib-2.6.0/src/spglib.c:1701:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] spglib-2.6.0/src/spglib.c:1785:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPGLIB_SUCCESS [valueFlowBailoutIncompleteVar] spglib-2.6.0/src/spglib.c:1900:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPGERR_CELL_STANDARDIZATION_FAILED [valueFlowBailoutIncompleteVar] spglib-2.6.0/src/spglib.c:1938:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPGERR_CELL_STANDARDIZATION_FAILED [valueFlowBailoutIncompleteVar] spglib-2.6.0/src/spglib.c:2058:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPGERR_CELL_STANDARDIZATION_FAILED [valueFlowBailoutIncompleteVar] spglib-2.6.0/src/spglib.c:2111:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPGLIB_SUCCESS [valueFlowBailoutIncompleteVar] spglib-2.6.0/src/spglib.c:2146:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPGLIB_SUCCESS [valueFlowBailoutIncompleteVar] spglib-2.6.0/src/spglib.c:364:5: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] spglib-2.6.0/src/spglib.c:218:48: error: Array 'spglib_error_message[10]' accessed at index 99, which is out of bounds. [arrayIndexOutOfBounds] spglib-2.6.0/src/spglib.c:217:19: note: Assuming that condition 'i<100' is not redundant spglib-2.6.0/src/spglib.c:218:48: note: Array index out of bounds spglib-2.6.0/src/spglib.c:2233:32: style:inconclusive: Function 'get_stabilized_reciprocal_mesh' argument 2 names different: declaration 'ir_mapping_table' definition 'map'. [funcArgNamesDifferent] spglib-2.6.0/src/spglib.c:161:32: note: Function 'get_stabilized_reciprocal_mesh' argument 2 names different: declaration 'ir_mapping_table' definition 'map'. spglib-2.6.0/src/spglib.c:2233:32: note: Function 'get_stabilized_reciprocal_mesh' argument 2 names different: declaration 'ir_mapping_table' definition 'map'. spglib-2.6.0/src/spin.c:182:9: error: Memory leak: inv_perm [memleak] spglib-2.6.0/src/spin.c:190:9: error: Memory leak: inv_perm [memleak] spglib-2.6.0/src/spin.c:63:18: style:inconclusive: Function 'spn_get_operations_with_site_tensors' argument 10 names different: declaration 'mag_symprec' definition 'mag_symprec_'. [funcArgNamesDifferent] spglib-2.6.0/src/spin.h:33:18: note: Function 'spn_get_operations_with_site_tensors' argument 10 names different: declaration 'mag_symprec' definition 'mag_symprec_'. spglib-2.6.0/src/spin.c:63:18: note: Function 'spn_get_operations_with_site_tensors' argument 10 names different: declaration 'mag_symprec' definition 'mag_symprec_'. spglib-2.6.0/src/symmetry.c:527:9: warning: If memory allocation fails, then there is a possible null pointer dereference: copy_atoms_found [nullPointerOutOfMemory] spglib-2.6.0/src/symmetry.c:525:37: note: Assuming allocation function fails spglib-2.6.0/src/symmetry.c:525:24: note: Assignment 'copy_atoms_found=(int*)malloc(sizeof(int)*cell->size)', assigned value is 0 spglib-2.6.0/src/symmetry.c:527:9: note: Null pointer dereference spglib-2.6.0/src/symmetry.c:531:14: warning: If memory allocation fails, then there is a possible null pointer dereference: copy_atoms_found [nullPointerOutOfMemory] spglib-2.6.0/src/symmetry.c:525:37: note: Assuming allocation function fails spglib-2.6.0/src/symmetry.c:525:24: note: Assignment 'copy_atoms_found=(int*)malloc(sizeof(int)*cell->size)', assigned value is 0 spglib-2.6.0/src/symmetry.c:531:14: note: Null pointer dereference spglib-2.6.0/src/symmetry.c:770:9: warning: If memory allocation fails, then there is a possible null pointer dereference: copy_atoms_found [nullPointerOutOfMemory] spglib-2.6.0/src/symmetry.c:768:37: note: Assuming allocation function fails spglib-2.6.0/src/symmetry.c:768:24: note: Assignment 'copy_atoms_found=(int*)malloc(sizeof(int)*cell->size)', assigned value is 0 spglib-2.6.0/src/symmetry.c:770:9: note: Null pointer dereference spglib-2.6.0/src/symmetry.c:774:14: warning: If memory allocation fails, then there is a possible null pointer dereference: copy_atoms_found [nullPointerOutOfMemory] spglib-2.6.0/src/symmetry.c:768:37: note: Assuming allocation function fails spglib-2.6.0/src/symmetry.c:768:24: note: Assignment 'copy_atoms_found=(int*)malloc(sizeof(int)*cell->size)', assigned value is 0 spglib-2.6.0/src/symmetry.c:774:14: note: Null pointer dereference spglib-2.6.0/src/symmetry.c:570:46: style:inconclusive: Function 'is_overlap_all_atoms' argument 1 names different: declaration 'test_trans' definition 'trans'. [funcArgNamesDifferent] spglib-2.6.0/src/symmetry.c:53:46: note: Function 'is_overlap_all_atoms' argument 1 names different: declaration 'test_trans' definition 'trans'. spglib-2.6.0/src/symmetry.c:570:46: note: Function 'is_overlap_all_atoms' argument 1 names different: declaration 'test_trans' definition 'trans'. spglib-2.6.0/src/symmetry.c:1062:26: style:inconclusive: Function 'transform_pointsymmetry' argument 1 names different: declaration 'point_sym_prim' definition 'lat_sym_orig'. [funcArgNamesDifferent] spglib-2.6.0/src/symmetry.c:57:26: note: Function 'transform_pointsymmetry' argument 1 names different: declaration 'point_sym_prim' definition 'lat_sym_orig'. spglib-2.6.0/src/symmetry.c:1062:26: note: Function 'transform_pointsymmetry' argument 1 names different: declaration 'point_sym_prim' definition 'lat_sym_orig'. spglib-2.6.0/src/symmetry.c:174:20: warning: Size of pointer 'timerev' used instead of size of its data. [pointerSize] spglib-2.6.0/test/example/c_api/example_full.c:699:9: warning: If memory allocation fails, then there is a possible null pointer dereference: pos [nullPointerOutOfMemory] spglib-2.6.0/test/example/c_api/example_full.c:689:31: note: Assuming allocation function fails spglib-2.6.0/test/example/c_api/example_full.c:689:11: note: Assignment 'pos=(double(*)[3])malloc(sizeof(double[3])*4*num_atom)', assigned value is 0 spglib-2.6.0/test/example/c_api/example_full.c:699:9: note: Null pointer dereference spglib-2.6.0/test/example/c_api/example_full.c:700:9: warning: If memory allocation fails, then there is a possible null pointer dereference: pos [nullPointerOutOfMemory] spglib-2.6.0/test/example/c_api/example_full.c:689:31: note: Assuming allocation function fails spglib-2.6.0/test/example/c_api/example_full.c:689:11: note: Assignment 'pos=(double(*)[3])malloc(sizeof(double[3])*4*num_atom)', assigned value is 0 spglib-2.6.0/test/example/c_api/example_full.c:700:9: note: Null pointer dereference spglib-2.6.0/test/example/c_api/example_full.c:701:9: warning: If memory allocation fails, then there is a possible null pointer dereference: pos [nullPointerOutOfMemory] spglib-2.6.0/test/example/c_api/example_full.c:689:31: note: Assuming allocation function fails spglib-2.6.0/test/example/c_api/example_full.c:689:11: note: Assignment 'pos=(double(*)[3])malloc(sizeof(double[3])*4*num_atom)', assigned value is 0 spglib-2.6.0/test/example/c_api/example_full.c:701:9: note: Null pointer dereference spglib-2.6.0/test/example/c_api/example_full.c:702:9: warning: If memory allocation fails, then there is a possible null pointer dereference: typ [nullPointerOutOfMemory] spglib-2.6.0/test/example/c_api/example_full.c:690:24: note: Assuming allocation function fails spglib-2.6.0/test/example/c_api/example_full.c:690:11: note: Assignment 'typ=(int*)malloc(sizeof(int)*4*num_atom)', assigned value is 0 spglib-2.6.0/test/example/c_api/example_full.c:702:9: note: Null pointer dereference spglib-2.6.0/test/example/c_api/example_full.c:43:26: style: Parameter 'argv' can be declared as const array [constParameter] spglib-2.6.0/test/example/c_api/example_full.c:369:12: style: Variable 'origin_shift' can be declared as const array [constVariable] spglib-2.6.0/test/example/c_api/example_full.c:682:42: style: Parameter 'types' can be declared as const array [constParameter] spglib-2.6.0/test/example/c_api/example_full.c:736:30: style: Parameter 'lattice' can be declared as const array [constParameter] spglib-2.6.0/test/example/c_api/example_full.c:736:52: style: Parameter 'position' can be declared as const array [constParameter] spglib-2.6.0/test/functional/c/test_error.cpp:27:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPGLIB_SUCCESS [valueFlowBailoutIncompleteVar] spglib-2.6.0/test/functional/c/test_kpoints.cpp:91:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable grid_address [valueFlowBailoutIncompleteVar] spglib-2.6.0/test/functional/c/test_kpoints.cpp:141:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable grid_address [valueFlowBailoutIncompleteVar] spglib-2.6.0/test/functional/c/test_kpoints.cpp:68:5: error: Memory leak: grid_address [memleak] spglib-2.6.0/test/functional/c/test_kpoints.cpp:68:5: error: Memory leak: grid_mapping_table [memleak] spglib-2.6.0/test/functional/c/test_kpoints.cpp:115:5: error: Memory leak: bz_grid_address [memleak] spglib-2.6.0/test/functional/c/test_kpoints.cpp:115:5: error: Memory leak: bz_map [memleak] spglib-2.6.0/test/functional/c/test_kpoints.cpp:165:5: error: Memory leak: bz_grid_address [memleak] spglib-2.6.0/test/functional/c/test_kpoints.cpp:165:5: error: Memory leak: bz_map [memleak] spglib-2.6.0/test/functional/c/test_kpoints.cpp:26:26: style: C-style pointer casting [cstyleCast] spglib-2.6.0/test/functional/c/test_kpoints.cpp:65:26: style: C-style pointer casting [cstyleCast] spglib-2.6.0/test/functional/c/test_kpoints.cpp:108:14: style: C-style pointer casting [cstyleCast] spglib-2.6.0/test/functional/c/test_kpoints.cpp:110:26: style: C-style pointer casting [cstyleCast] spglib-2.6.0/test/functional/c/test_kpoints.cpp:158:14: style: C-style pointer casting [cstyleCast] spglib-2.6.0/test/functional/c/test_kpoints.cpp:160:26: style: C-style pointer casting [cstyleCast] spglib-2.6.0/test/functional/c/test_magnetic_dataset.cpp:41:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPGLIB_SUCCESS [valueFlowBailoutIncompleteVar] spglib-2.6.0/test/functional/c/test_magnetic_dataset.cpp:120:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPGLIB_SUCCESS [valueFlowBailoutIncompleteVar] spglib-2.6.0/test/functional/c/test_magnetic_dataset.cpp:146:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPGERR_ATOMS_TOO_CLOSE [valueFlowBailoutIncompleteVar] spglib-2.6.0/test/functional/c/test_magnetic_dataset.cpp:228:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPGLIB_SUCCESS [valueFlowBailoutIncompleteVar] spglib-2.6.0/test/functional/c/test_magnetic_dataset.cpp:328:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPGLIB_SUCCESS [valueFlowBailoutIncompleteVar] spglib-2.6.0/test/functional/c/test_magnetic_dataset.cpp:359:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPGERR_SPACEGROUP_SEARCH_FAILED [valueFlowBailoutIncompleteVar] spglib-2.6.0/test/functional/c/test_magnetic_dataset.cpp:402:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPGLIB_SUCCESS [valueFlowBailoutIncompleteVar] spglib-2.6.0/test/functional/c/test_magnetic_dataset.cpp:198:5: error: Memory leak: time_reversals [memleak] spglib-2.6.0/test/functional/c/test_magnetic_dataset.cpp:205:5: error: Memory leak: time_reversals [memleak] spglib-2.6.0/test/functional/c/test_magnetic_dataset.cpp:284:9: warning: If memory allocation fails, then there is a possible null pointer dereference: time_reversals [nullPointerOutOfMemory] spglib-2.6.0/test/functional/c/test_magnetic_dataset.cpp:269:35: note: Assuming allocation function fails spglib-2.6.0/test/functional/c/test_magnetic_dataset.cpp:269:22: note: Assignment 'time_reversals=(int*)malloc(sizeof(int*)*max_size)', assigned value is 0 spglib-2.6.0/test/functional/c/test_magnetic_dataset.cpp:284:9: note: Null pointer dereference spglib-2.6.0/test/functional/c/test_magnetic_dataset.cpp:284:34: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: spin_flips [nullPointerOutOfMemory] spglib-2.6.0/test/functional/c/test_magnetic_dataset.cpp:268:31: note: Assuming allocation function fails spglib-2.6.0/test/functional/c/test_magnetic_dataset.cpp:268:18: note: Assignment 'spin_flips=(int*)malloc(sizeof(int*)*max_size)', assigned value is 0 spglib-2.6.0/test/functional/c/test_magnetic_dataset.cpp:284:34: note: Null pointer dereference spglib-2.6.0/test/functional/c/test_magnetic_dataset.cpp:188:18: style: C-style pointer casting [cstyleCast] spglib-2.6.0/test/functional/c/test_magnetic_dataset.cpp:189:22: style: C-style pointer casting [cstyleCast] spglib-2.6.0/test/functional/c/test_magnetic_dataset.cpp:268:18: style: C-style pointer casting [cstyleCast] spglib-2.6.0/test/functional/c/test_magnetic_dataset.cpp:269:22: style: C-style pointer casting [cstyleCast] spglib-2.6.0/test/functional/c/test_magnetic_dataset.cpp:200:28: style: Variable 'dataset' can be declared as pointer to const [constVariablePointer] spglib-2.6.0/test/functional/c/test_magnetic_dataset.cpp:293:28: style: Variable 'dataset' can be declared as pointer to const [constVariablePointer] spglib-2.6.0/test/functional/c/test_magnetic_dataset.cpp:188:5: warning: Size of pointer 'spin_flips' used instead of size of its data. [pointerSize] spglib-2.6.0/test/functional/c/test_magnetic_dataset.cpp:189:5: warning: Size of pointer 'time_reversals' used instead of size of its data. [pointerSize] spglib-2.6.0/test/functional/c/test_magnetic_dataset.cpp:268:5: warning: Size of pointer 'spin_flips' used instead of size of its data. [pointerSize] spglib-2.6.0/test/functional/c/test_magnetic_dataset.cpp:269:5: warning: Size of pointer 'time_reversals' used instead of size of its data. [pointerSize] spglib-2.6.0/test/functional/c/test_magnetic_dataset.cpp:189:36: style: Variable 'time_reversals' is allocated memory that is never used. [unusedAllocatedMemory] spglib-2.6.0/test/functional/c/test_magnetic_symmetry.cpp:226:5: error: Memory leak: spin_flips [memleak] spglib-2.6.0/test/functional/c/test_magnetic_symmetry.cpp:226:5: error: Memory leak: time_reversals [memleak] spglib-2.6.0/test/functional/c/test_magnetic_symmetry.cpp:234:5: error: Memory leak: time_reversals [memleak] spglib-2.6.0/test/functional/c/test_magnetic_symmetry.cpp:278:5: error: Memory leak: time_reversals [memleak] spglib-2.6.0/test/functional/c/test_magnetic_symmetry.cpp:161:9: warning: If memory allocation fails, then there is a possible null pointer dereference: time_reversals [nullPointerOutOfMemory] spglib-2.6.0/test/functional/c/test_magnetic_symmetry.cpp:159:35: note: Assuming allocation function fails spglib-2.6.0/test/functional/c/test_magnetic_symmetry.cpp:159:22: note: Assignment 'time_reversals=(int*)malloc(sizeof(int*)*size)', assigned value is 0 spglib-2.6.0/test/functional/c/test_magnetic_symmetry.cpp:161:9: note: Null pointer dereference spglib-2.6.0/test/functional/c/test_magnetic_symmetry.cpp:148:18: style: C-style pointer casting [cstyleCast] spglib-2.6.0/test/functional/c/test_magnetic_symmetry.cpp:159:22: style: C-style pointer casting [cstyleCast] spglib-2.6.0/test/functional/c/test_magnetic_symmetry.cpp:221:18: style: C-style pointer casting [cstyleCast] spglib-2.6.0/test/functional/c/test_magnetic_symmetry.cpp:222:22: style: C-style pointer casting [cstyleCast] spglib-2.6.0/test/functional/c/test_magnetic_symmetry.cpp:270:18: style: C-style pointer casting [cstyleCast] spglib-2.6.0/test/functional/c/test_magnetic_symmetry.cpp:271:22: style: C-style pointer casting [cstyleCast] spglib-2.6.0/test/functional/c/test_magnetic_symmetry.cpp:148:5: warning: Size of pointer 'spin_flips' used instead of size of its data. [pointerSize] spglib-2.6.0/test/functional/c/test_magnetic_symmetry.cpp:159:5: warning: Size of pointer 'time_reversals' used instead of size of its data. [pointerSize] spglib-2.6.0/test/functional/c/test_magnetic_symmetry.cpp:221:5: warning: Size of pointer 'spin_flips' used instead of size of its data. [pointerSize] spglib-2.6.0/test/functional/c/test_magnetic_symmetry.cpp:222:5: warning: Size of pointer 'time_reversals' used instead of size of its data. [pointerSize] spglib-2.6.0/test/functional/c/test_magnetic_symmetry.cpp:270:5: warning: Size of pointer 'spin_flips' used instead of size of its data. [pointerSize] spglib-2.6.0/test/functional/c/test_magnetic_symmetry.cpp:271:5: warning: Size of pointer 'time_reversals' used instead of size of its data. [pointerSize] spglib-2.6.0/test/functional/c/test_magnetic_symmetry.cpp:271:36: style: Variable 'time_reversals' is allocated memory that is never used. [unusedAllocatedMemory] spglib-2.6.0/test/functional/c/test_spacegroup_type_search.cpp:17:10: style: Variable 'symbol_expect' can be declared as const array [constVariable] spglib-2.6.0/test/functional/c/test_spacegroup_type_search.cpp:35:10: style: Variable 'symbol_expect' can be declared as const array [constVariable] spglib-2.6.0/test/functional/c/test_symmetry_search.cpp:17:12: style: Variable 'origin_shift' can be declared as const array [constVariable] spglib-2.6.0/test/package/src/main.c:5:26: style: Parameter 'argv' can be declared as const array [constParameter] spglib-2.6.0/test/unit/test_dataset_access.cpp:11:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPGLIB_SUCCESS [valueFlowBailoutIncompleteVar] spglib-2.6.0/test/unit/test_error.cpp:19:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPGLIB_SUCCESS [valueFlowBailoutIncompleteVar] spglib-2.6.0/test/unit/test_niggli.cpp:28:35: style: C-style pointer casting [cstyleCast] spglib-2.6.0/test/unit/test_niggli.cpp:36:31: style: C-style pointer casting [cstyleCast] spglib-2.6.0/test/unit/test_symmetry.cpp:27:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NOSPIN [valueFlowBailoutIncompleteVar] spglib-2.6.0/test/utils.c:156:9: warning: If memory allocation fails, then there is a possible null pointer dereference: pos [nullPointerOutOfMemory] spglib-2.6.0/test/utils.c:146:31: note: Assuming allocation function fails spglib-2.6.0/test/utils.c:146:11: note: Assignment 'pos=(double(*)[3])malloc(sizeof(double[3])*num_atom)', assigned value is 0 spglib-2.6.0/test/utils.c:156:9: note: Null pointer dereference spglib-2.6.0/test/utils.c:157:9: warning: If memory allocation fails, then there is a possible null pointer dereference: pos [nullPointerOutOfMemory] spglib-2.6.0/test/utils.c:146:31: note: Assuming allocation function fails spglib-2.6.0/test/utils.c:146:11: note: Assignment 'pos=(double(*)[3])malloc(sizeof(double[3])*num_atom)', assigned value is 0 spglib-2.6.0/test/utils.c:157:9: note: Null pointer dereference spglib-2.6.0/test/utils.c:158:9: warning: If memory allocation fails, then there is a possible null pointer dereference: pos [nullPointerOutOfMemory] spglib-2.6.0/test/utils.c:146:31: note: Assuming allocation function fails spglib-2.6.0/test/utils.c:146:11: note: Assignment 'pos=(double(*)[3])malloc(sizeof(double[3])*num_atom)', assigned value is 0 spglib-2.6.0/test/utils.c:158:9: note: Null pointer dereference spglib-2.6.0/test/utils.c:159:9: warning: If memory allocation fails, then there is a possible null pointer dereference: typ [nullPointerOutOfMemory] spglib-2.6.0/test/utils.c:147:24: note: Assuming allocation function fails spglib-2.6.0/test/utils.c:147:11: note: Assignment 'typ=(int*)malloc(sizeof(int)*num_atom)', assigned value is 0 spglib-2.6.0/test/utils.c:159:9: note: Null pointer dereference spglib-2.6.0/test/utils.c:138:34: style: Parameter 'types' can be declared as const array [constParameter] diff: DONE