2026-05-04 10:57 ftp://ftp.de.debian.org/debian/pool/main/p/pyml/pyml_20250807.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --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-111-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04.1) 14.2.0 cppcheck: head 2.20.0 head-info: e5c4a73 (2026-05-01 11:10:43 +0200) count: 71 70 elapsed-time: 0.4 0.3 head-timing-info: old-timing-info: head results: pyml-20250807/numpy_stubs.c:104:20: debug: Scope::checkVariable found variable 'PyArray_SubType' with varid 0. [varid0] pyml-20250807/numpy_stubs.c:47:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAML_BA_KIND_MASK [valueFlowBailoutIncompleteVar] pyml-20250807/numpy_stubs.c:125:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable intnat [valueFlowBailoutIncompleteVar] pyml-20250807/numpy_stubs.c:43:9: warning: If memory allocation fails, then there is a possible null pointer dereference: dims [nullPointerOutOfMemory] pyml-20250807/numpy_stubs.c:40:28: note: Assuming allocation function fails pyml-20250807/numpy_stubs.c:40:28: note: Assignment 'dims=malloc(nd*sizeof(intptr_t))', assigned value is 0 pyml-20250807/numpy_stubs.c:43:9: note: Null pointer dereference pyml-20250807/numpy_stubs.c:128:9: warning: If memory allocation fails, then there is a possible null pointer dereference: dims [nullPointerOutOfMemory] pyml-20250807/numpy_stubs.c:125:26: note: Assuming allocation function fails pyml-20250807/numpy_stubs.c:125:26: note: Assignment 'dims=malloc(nd*sizeof(intnat))', assigned value is 0 pyml-20250807/numpy_stubs.c:128:9: note: Null pointer dereference pyml-20250807/numpy_stubs.c:194:5: warning: If memory allocation fails, then there is a possible null pointer dereference: newops [nullPointerOutOfMemory] pyml-20250807/numpy_stubs.c:193:15: note: Assuming allocation function fails pyml-20250807/numpy_stubs.c:192:46: note: Assignment 'newops=(struct numpy_custom_operations*)malloc(sizeof(struct numpy_custom_operations))', assigned value is 0 pyml-20250807/numpy_stubs.c:194:5: note: Null pointer dereference pyml-20250807/numpy_stubs.c:195:5: warning: If memory allocation fails, then there is a possible null pointer dereference: newops [nullPointerOutOfMemory] pyml-20250807/numpy_stubs.c:193:15: note: Assuming allocation function fails pyml-20250807/numpy_stubs.c:192:46: note: Assignment 'newops=(struct numpy_custom_operations*)malloc(sizeof(struct numpy_custom_operations))', assigned value is 0 pyml-20250807/numpy_stubs.c:195:5: note: Null pointer dereference pyml-20250807/numpy_stubs.c:196:5: warning: If memory allocation fails, then there is a possible null pointer dereference: newops [nullPointerOutOfMemory] pyml-20250807/numpy_stubs.c:193:15: note: Assuming allocation function fails pyml-20250807/numpy_stubs.c:192:46: note: Assignment 'newops=(struct numpy_custom_operations*)malloc(sizeof(struct numpy_custom_operations))', assigned value is 0 pyml-20250807/numpy_stubs.c:196:5: note: Null pointer dereference pyml-20250807/numpy_stubs.c:197:5: warning: If memory allocation fails, then there is a possible null pointer dereference: newops [nullPointerOutOfMemory] pyml-20250807/numpy_stubs.c:193:15: note: Assuming allocation function fails pyml-20250807/numpy_stubs.c:192:46: note: Assignment 'newops=(struct numpy_custom_operations*)malloc(sizeof(struct numpy_custom_operations))', assigned value is 0 pyml-20250807/numpy_stubs.c:197:5: note: Null pointer dereference pyml-20250807/numpy_stubs.c:198:5: warning: If memory allocation fails, then there is a possible null pointer dereference: newops [nullPointerOutOfMemory] pyml-20250807/numpy_stubs.c:193:15: note: Assuming allocation function fails pyml-20250807/numpy_stubs.c:192:46: note: Assignment 'newops=(struct numpy_custom_operations*)malloc(sizeof(struct numpy_custom_operations))', assigned value is 0 pyml-20250807/numpy_stubs.c:198:5: note: Null pointer dereference pyml-20250807/numpy_stubs.c:199:5: warning: If memory allocation fails, then there is a possible null pointer dereference: newops [nullPointerOutOfMemory] pyml-20250807/numpy_stubs.c:193:15: note: Assuming allocation function fails pyml-20250807/numpy_stubs.c:192:46: note: Assignment 'newops=(struct numpy_custom_operations*)malloc(sizeof(struct numpy_custom_operations))', assigned value is 0 pyml-20250807/numpy_stubs.c:199:5: note: Null pointer dereference pyml-20250807/numpy_stubs.c:200:5: warning: If memory allocation fails, then there is a possible null pointer dereference: newops [nullPointerOutOfMemory] pyml-20250807/numpy_stubs.c:193:15: note: Assuming allocation function fails pyml-20250807/numpy_stubs.c:192:46: note: Assignment 'newops=(struct numpy_custom_operations*)malloc(sizeof(struct numpy_custom_operations))', assigned value is 0 pyml-20250807/numpy_stubs.c:200:5: note: Null pointer dereference pyml-20250807/numpy_stubs.c:201:5: warning: If memory allocation fails, then there is a possible null pointer dereference: newops [nullPointerOutOfMemory] pyml-20250807/numpy_stubs.c:193:15: note: Assuming allocation function fails pyml-20250807/numpy_stubs.c:192:46: note: Assignment 'newops=(struct numpy_custom_operations*)malloc(sizeof(struct numpy_custom_operations))', assigned value is 0 pyml-20250807/numpy_stubs.c:201:5: note: Null pointer dereference pyml-20250807/numpy_stubs.c:124:15: style: Variable 'shape' can be declared as pointer to const [constVariablePointer] pyml-20250807/pyml_arch.ml.c:9:4: error: #error "Unknown platform" [preprocessorErrorDirective] pyml-20250807/pyml_stubs.c:1489:20: debug: Scope::checkVariable found variable 'PyArray_SubType' with varid 0. [varid0] pyml-20250807/pyml_stubs.c:112:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] pyml-20250807/pyml_stubs.c:120:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RTLD_DEFAULT [valueFlowBailoutIncompleteVar] pyml-20250807/pyml_stubs.c:410:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable v [valueFlowBailoutIncompleteVar] pyml-20250807/pyml_stubs.c:446:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Python__Py_NoneStruct [valueFlowBailoutIncompleteVar] pyml-20250807/pyml_stubs.c:545:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Python__Py_NoneStruct [valueFlowBailoutIncompleteVar] pyml-20250807/pyml_stubs.c:564:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Python__Py_NoneStruct [valueFlowBailoutIncompleteVar] pyml-20250807/pyml_stubs.c:593:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] pyml-20250807/pyml_stubs.c:604:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] pyml-20250807/pyml_stubs.c:756:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Python__Py_NoneStruct [valueFlowBailoutIncompleteVar] pyml-20250807/pyml_stubs.c:789:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Python_Py_GetVersion [valueFlowBailoutIncompleteVar] pyml-20250807/pyml_stubs.c:893:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Val_unit [valueFlowBailoutIncompleteVar] pyml-20250807/pyml_stubs.c:902:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] pyml-20250807/pyml_stubs.c:996:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Python_PyBool_Type [valueFlowBailoutIncompleteVar] pyml-20250807/pyml_stubs.c:1111:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] pyml-20250807/pyml_stubs.c:1175:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] pyml-20250807/pyml_stubs.c:1191:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Python_PyCapsule_Type [valueFlowBailoutIncompleteVar] pyml-20250807/pyml_stubs.c:1208:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable v [valueFlowBailoutIncompleteVar] pyml-20250807/pyml_stubs.c:1224:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable result [valueFlowBailoutIncompleteVar] pyml-20250807/pyml_stubs.c:1246:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ob_refcnt [valueFlowBailoutIncompleteVar] pyml-20250807/pyml_stubs.c:1260:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable result [valueFlowBailoutIncompleteVar] pyml-20250807/pyml_stubs.c:1281:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable result [valueFlowBailoutIncompleteVar] pyml-20250807/pyml_stubs.c:1299:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] pyml-20250807/pyml_stubs.c:1354:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable array [valueFlowBailoutIncompleteVar] pyml-20250807/pyml_stubs.c:1377:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable array [valueFlowBailoutIncompleteVar] pyml-20250807/pyml_stubs.c:1410:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable string [valueFlowBailoutIncompleteVar] pyml-20250807/pyml_stubs.c:1411:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable string [valueFlowBailoutIncompleteVar] pyml-20250807/pyml_stubs.c:1412:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable string [valueFlowBailoutIncompleteVar] pyml-20250807/pyml_stubs.c:1413:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable string [valueFlowBailoutIncompleteVar] pyml-20250807/pyml_stubs.c:1447:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAMLreturn0 [valueFlowBailoutIncompleteVar] pyml-20250807/pyml_stubs.c:1489:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyArray_SubType [valueFlowBailoutIncompleteVar] pyml-20250807/pyml_stubs.c:1506:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Val_unit [valueFlowBailoutIncompleteVar] pyml-20250807/pyml_stubs.c:1513:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable result [valueFlowBailoutIncompleteVar] pyml-20250807/pyml_stubs.c:657:11: error: Memory leak: msg [memleak] pyml-20250807/pyml_stubs.c:394:18: warning: If memory allocation fails, then there is a possible null pointer dereference: msg [nullPointerOutOfMemory] pyml-20250807/pyml_stubs.c:393:28: note: Assuming allocation function fails pyml-20250807/pyml_stubs.c:393:28: note: Assignment 'msg=xmalloc(size+1)', assigned value is 0 pyml-20250807/pyml_stubs.c:394:18: note: Null pointer dereference pyml-20250807/pyml_stubs.c:483:9: warning: If memory allocation fails, then there is a possible null pointer dereference: flags [nullPointerOutOfMemory] pyml-20250807/pyml_stubs.c:482:40: note: Assuming allocation function fails pyml-20250807/pyml_stubs.c:482:40: note: Assignment 'flags=malloc(sizeof(struct PyCompilerFlags))', assigned value is 0 pyml-20250807/pyml_stubs.c:483:9: note: Null pointer dereference pyml-20250807/pyml_stubs.c:486:9: warning: If memory allocation fails, then there is a possible null pointer dereference: flags [nullPointerOutOfMemory] pyml-20250807/pyml_stubs.c:482:40: note: Assuming allocation function fails pyml-20250807/pyml_stubs.c:482:40: note: Assignment 'flags=malloc(sizeof(struct PyCompilerFlags))', assigned value is 0 pyml-20250807/pyml_stubs.c:486:9: note: Null pointer dereference pyml-20250807/pyml_stubs.c:594:6: warning: If memory allocation fails, then there is a possible null pointer dereference: v [nullPointerOutOfMemory] pyml-20250807/pyml_stubs.c:593:32: note: Assuming allocation function fails pyml-20250807/pyml_stubs.c:593:16: note: Assignment 'v=(value*)malloc(sizeof(value)+size)', assigned value is 0 pyml-20250807/pyml_stubs.c:594:6: note: Null pointer dereference pyml-20250807/pyml_stubs.c:595:39: warning: Possible null pointer dereference: aux_str [nullPointer] pyml-20250807/pyml_stubs.c:1200:44: note: Calling function 'camlwrap_capsule', 2nd argument 'NULL' value is 0 pyml-20250807/pyml_stubs.c:595:39: note: Null pointer dereference pyml-20250807/pyml_stubs.c:654:25: warning: If memory allocation fails, then there is a possible null pointer dereference: msg [nullPointerOutOfMemory] pyml-20250807/pyml_stubs.c:653:28: note: Assuming allocation function fails pyml-20250807/pyml_stubs.c:653:28: note: Assignment 'msg=xmalloc(size+1)', assigned value is 0 pyml-20250807/pyml_stubs.c:654:25: note: Null pointer dereference pyml-20250807/pyml_stubs.c:715:5: warning: If memory allocation fails, then there is a possible null pointer dereference: v [nullPointerOutOfMemory] pyml-20250807/pyml_stubs.c:714:36: note: Assuming allocation function fails pyml-20250807/pyml_stubs.c:714:36: note: Assignment 'v=malloc(sizeof(struct pyml_closure))', assigned value is 0 pyml-20250807/pyml_stubs.c:715:5: note: Null pointer dereference pyml-20250807/pyml_stubs.c:716:5: warning: If memory allocation fails, then there is a possible null pointer dereference: v [nullPointerOutOfMemory] pyml-20250807/pyml_stubs.c:714:36: note: Assuming allocation function fails pyml-20250807/pyml_stubs.c:714:36: note: Assignment 'v=malloc(sizeof(struct pyml_closure))', assigned value is 0 pyml-20250807/pyml_stubs.c:716:5: note: Null pointer dereference pyml-20250807/pyml_stubs.c:1323:9: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] pyml-20250807/pyml_stubs.c:1320:30: note: Assuming allocation function fails pyml-20250807/pyml_stubs.c:1320:30: note: Assignment 'result=xmalloc(len*sizeof(int16_t))', assigned value is 0 pyml-20250807/pyml_stubs.c:1323:9: note: Null pointer dereference pyml-20250807/pyml_stubs.c:1336:9: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] pyml-20250807/pyml_stubs.c:1333:30: note: Assuming allocation function fails pyml-20250807/pyml_stubs.c:1333:30: note: Assignment 'result=xmalloc(len*sizeof(int32_t))', assigned value is 0 pyml-20250807/pyml_stubs.c:1336:9: note: Null pointer dereference pyml-20250807/pyml_stubs.c:1351:12: warning: Either the condition 'buffer==NULL' is redundant or there is possible null pointer dereference: buffer. [nullPointerRedundantCheck] pyml-20250807/pyml_stubs.c:1347:16: note: Assuming that condition 'buffer==NULL' is not redundant pyml-20250807/pyml_stubs.c:1351:12: note: Null pointer dereference pyml-20250807/pyml_stubs.c:1374:12: warning: Either the condition 'buffer==NULL' is redundant or there is possible null pointer dereference: buffer. [nullPointerRedundantCheck] pyml-20250807/pyml_stubs.c:1370:16: note: Assuming that condition 'buffer==NULL' is not redundant pyml-20250807/pyml_stubs.c:1374:12: note: Null pointer dereference pyml-20250807/pyml_stubs.c:595:22: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] pyml-20250807/pyml_stubs.c:593:32: note: Assuming allocation function fails pyml-20250807/pyml_stubs.c:593:16: note: Assignment 'v=(value*)malloc(sizeof(value)+size)', assigned value is 0 pyml-20250807/pyml_stubs.c:595:22: note: Null pointer addition pyml-20250807/pyml_stubs.c:391:15: style: Variable 'fmt' can be declared as pointer to const [constVariablePointer] pyml-20250807/pyml_stubs.c:591:35: style: Parameter 'aux_str' can be declared as pointer to const [constParameterPointer] pyml-20250807/pyml_stubs.c:644:35: style: Parameter 'symbol' can be declared as pointer to const [constParameterPointer] pyml-20250807/pyml_stubs.c:644:49: style: Parameter 'symbol_name' can be declared as pointer to const [constParameterPointer] pyml-20250807/pyml_stubs.c:647:15: style: Variable 'fmt' can be declared as pointer to const [constVariablePointer] pyml-20250807/pyml_stubs.c:993:25: style: Variable 'typeobj' can be declared as pointer to const [constVariablePointer] pyml-20250807/pyml_stubs.c:1190:15: style: Variable 'ob_type' can be declared as pointer to const [constVariablePointer] pyml-20250807/pyml_stubs.c:1278:32: style: Parameter 'ws' can be declared as pointer to const [constParameterPointer] pyml-20250807/pyml_stubs.c:595:39: error: Null pointer dereference: aux_str [ctunullpointer] pyml-20250807/pyml_stubs.c:1200:40: note: Calling function camlwrap_capsule, 2nd argument is null pyml-20250807/pyml_stubs.c:595:39: note: Dereferencing argument aux_str that is null diff: head pyml-20250807/numpy_stubs.c:124:15: style: Variable 'shape' can be declared as pointer to const [constVariablePointer] DONE