2026-05-27 23:11 ftp://ftp.de.debian.org/debian/pool/main/m/makedepf90/makedepf90_3.0.1.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --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 -j6 platform: Linux-7.0.7+deb14-amd64-x86_64-with-glibc2.42 python: 3.13.12 client-version: 1.4.0 compiler: g++ (Debian 15.2.0-17) 15.2.0 cppcheck: head 2.20.0 head-info: 6e46c6ba (2026-05-27 18:39:55 +0200) count: 40 45 elapsed-time: 1.7 3.7 head-timing-info: old-timing-info: head results: makedepf90-3.0.1/errormesg.c:44:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] makedepf90-3.0.1/errormesg.c:38:11: style: Variable 's' can be declared as pointer to const [constVariablePointer] makedepf90-3.0.1/macro.c:33:5: warning: If memory allocation fails, then there is a possible null pointer dereference: m [nullPointerOutOfMemory] makedepf90-3.0.1/macro.c:32:27: note: Assuming allocation function fails makedepf90-3.0.1/macro.c:32:9: note: Assignment 'm=(struct Macro*)xmalloc(sizeof(struct Macro))', assigned value is 0 makedepf90-3.0.1/macro.c:33:5: note: Null pointer dereference makedepf90-3.0.1/macro.c:57:27: style:inconclusive: Function 'macrocmp' argument 1 names different: declaration 'd1' definition 'm1'. [funcArgNamesDifferent] makedepf90-3.0.1/macro.h:35:27: note: Function 'macrocmp' argument 1 names different: declaration 'd1' definition 'm1'. makedepf90-3.0.1/macro.c:57:27: note: Function 'macrocmp' argument 1 names different: declaration 'd1' definition 'm1'. makedepf90-3.0.1/macro.c:57:43: style:inconclusive: Function 'macrocmp' argument 2 names different: declaration 'd2' definition 'm2'. [funcArgNamesDifferent] makedepf90-3.0.1/macro.h:35:43: note: Function 'macrocmp' argument 2 names different: declaration 'd2' definition 'm2'. makedepf90-3.0.1/macro.c:57:43: note: Function 'macrocmp' argument 2 names different: declaration 'd2' definition 'm2'. makedepf90-3.0.1/list.c:55:5: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] makedepf90-3.0.1/list.c:54:27: note: Assuming allocation function fails makedepf90-3.0.1/list.c:54:11: note: Assignment 'new=(struct List*)xmalloc(sizeof(struct List))', assigned value is 0 makedepf90-3.0.1/list.c:55:5: note: Null pointer dereference makedepf90-3.0.1/list.c:56:5: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] makedepf90-3.0.1/list.c:54:27: note: Assuming allocation function fails makedepf90-3.0.1/list.c:54:11: note: Assignment 'new=(struct List*)xmalloc(sizeof(struct List))', assigned value is 0 makedepf90-3.0.1/list.c:56:5: note: Null pointer dereference makedepf90-3.0.1/list.c:70:5: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] makedepf90-3.0.1/list.c:69:27: note: Assuming allocation function fails makedepf90-3.0.1/list.c:69:11: note: Assignment 'new=(struct List*)xmalloc(sizeof(struct List))', assigned value is 0 makedepf90-3.0.1/list.c:70:5: note: Null pointer dereference makedepf90-3.0.1/list.c:71:5: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] makedepf90-3.0.1/list.c:69:27: note: Assuming allocation function fails makedepf90-3.0.1/list.c:69:11: note: Assignment 'new=(struct List*)xmalloc(sizeof(struct List))', assigned value is 0 makedepf90-3.0.1/list.c:71:5: note: Null pointer dereference makedepf90-3.0.1/list.c:27:39: style:inconclusive: Function 'list_find' argument 2 names different: declaration 's' definition 'data'. [funcArgNamesDifferent] makedepf90-3.0.1/list.h:37:39: note: Function 'list_find' argument 2 names different: declaration 's' definition 'data'. makedepf90-3.0.1/list.c:27:39: note: Function 'list_find' argument 2 names different: declaration 's' definition 'data'. makedepf90-3.0.1/list.c:47:36: style:inconclusive: Function 'list_prepend' argument 2 names different: declaration 's' definition 'data'. [funcArgNamesDifferent] makedepf90-3.0.1/list.h:35:36: note: Function 'list_prepend' argument 2 names different: declaration 's' definition 'data'. makedepf90-3.0.1/list.c:47:36: note: Function 'list_prepend' argument 2 names different: declaration 's' definition 'data'. makedepf90-3.0.1/list.c:61:35: style:inconclusive: Function 'list_append' argument 2 names different: declaration 's' definition 'data'. [funcArgNamesDifferent] makedepf90-3.0.1/list.h:36:35: note: Function 'list_append' argument 2 names different: declaration 's' definition 'data'. makedepf90-3.0.1/list.c:61:35: note: Function 'list_append' argument 2 names different: declaration 's' definition 'data'. makedepf90-3.0.1/modfile_name.c:94:5: warning: If memory allocation fails, then there is a possible null pointer dereference: modfile [nullPointerOutOfMemory] makedepf90-3.0.1/modfile_name.c:45:31: note: Assuming allocation function fails makedepf90-3.0.1/modfile_name.c:45:15: note: Assignment 'modfile=(char*)xmalloc(sizeof(char)*256)', assigned value is 0 makedepf90-3.0.1/modfile_name.c:94:5: note: Null pointer dereference makedepf90-3.0.1/xmalloc.c:54:12: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] makedepf90-3.0.1/xmalloc.c:53:28: note: Assuming allocation function fails makedepf90-3.0.1/xmalloc.c:53:11: note: Assignment 'new=(char*)xmalloc((strlen(str)+1)*sizeof(char))', assigned value is 0 makedepf90-3.0.1/xmalloc.c:54:12: note: Null pointer dereference makedepf90-3.0.1/xmalloc.c:67:14: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] makedepf90-3.0.1/xmalloc.c:66:28: note: Assuming allocation function fails makedepf90-3.0.1/xmalloc.c:66:11: note: Assignment 'new=(char*)xmalloc((maxl+1)*sizeof(char))', assigned value is 0 makedepf90-3.0.1/xmalloc.c:67:14: note: Null pointer dereference makedepf90-3.0.1/xmalloc.c:64:18: style: Unsigned expression 'maxl' can't be negative so it is unnecessary to test it. [unsignedPositive] makedepf90-3.0.1/utils.c:60:16: warning: If memory allocation fails, then there is a possible null pointer dereference: rs [nullPointerOutOfMemory] makedepf90-3.0.1/utils.c:59:30: note: Assuming allocation function fails makedepf90-3.0.1/utils.c:59:14: note: Assignment 'rs=(char*)xmalloc((fl+sl+2)*sizeof(char))', assigned value is 0 makedepf90-3.0.1/utils.c:60:16: note: Null pointer dereference makedepf90-3.0.1/utils.c:61:16: warning: If memory allocation fails, then there is a possible null pointer dereference: rs [nullPointerOutOfMemory] makedepf90-3.0.1/utils.c:59:30: note: Assuming allocation function fails makedepf90-3.0.1/utils.c:59:14: note: Assignment 'rs=(char*)xmalloc((fl+sl+2)*sizeof(char))', assigned value is 0 makedepf90-3.0.1/utils.c:61:16: note: Null pointer dereference makedepf90-3.0.1/utils.c:64:17: warning: If memory allocation fails, then there is a possible null pointer dereference: rs [nullPointerOutOfMemory] makedepf90-3.0.1/utils.c:63:30: note: Assuming allocation function fails makedepf90-3.0.1/utils.c:63:14: note: Assignment 'rs=(char*)xmalloc((n+sl+2)*sizeof(char))', assigned value is 0 makedepf90-3.0.1/utils.c:64:17: note: Null pointer dereference makedepf90-3.0.1/utils.c:96:16: warning: If memory allocation fails, then there is a possible null pointer dereference: rs [nullPointerOutOfMemory] makedepf90-3.0.1/utils.c:95:29: note: Assuming allocation function fails makedepf90-3.0.1/utils.c:95:14: note: Assignment 'rs=(char*)xmalloc((fl+pl+2)*sizeof(char))', assigned value is 0 makedepf90-3.0.1/utils.c:96:16: note: Null pointer dereference makedepf90-3.0.1/utils.c:97:16: warning: If memory allocation fails, then there is a possible null pointer dereference: rs [nullPointerOutOfMemory] makedepf90-3.0.1/utils.c:95:29: note: Assuming allocation function fails makedepf90-3.0.1/utils.c:95:14: note: Assignment 'rs=(char*)xmalloc((fl+pl+2)*sizeof(char))', assigned value is 0 makedepf90-3.0.1/utils.c:97:16: note: Null pointer dereference makedepf90-3.0.1/utils.c:100:16: warning: If memory allocation fails, then there is a possible null pointer dereference: rs [nullPointerOutOfMemory] makedepf90-3.0.1/utils.c:99:29: note: Assuming allocation function fails makedepf90-3.0.1/utils.c:99:14: note: Assignment 'rs=(char*)xmalloc((nl+pl+2)*sizeof(char))', assigned value is 0 makedepf90-3.0.1/utils.c:100:16: note: Null pointer dereference makedepf90-3.0.1/utils.c:101:16: warning: If memory allocation fails, then there is a possible null pointer dereference: rs [nullPointerOutOfMemory] makedepf90-3.0.1/utils.c:99:29: note: Assuming allocation function fails makedepf90-3.0.1/utils.c:99:14: note: Assignment 'rs=(char*)xmalloc((nl+pl+2)*sizeof(char))', assigned value is 0 makedepf90-3.0.1/utils.c:101:16: note: Null pointer dereference makedepf90-3.0.1/utils.c:118:5: warning: If memory allocation fails, then there is a possible null pointer dereference: d [nullPointerOutOfMemory] makedepf90-3.0.1/utils.c:115:24: note: Assuming allocation function fails makedepf90-3.0.1/utils.c:115:9: note: Assignment 'd=(char*)xmalloc((strlen(s)+1)*sizeof(char))', assigned value is 0 makedepf90-3.0.1/utils.c:118:5: note: Null pointer dereference makedepf90-3.0.1/utils.c:138:5: warning: If memory allocation fails, then there is a possible null pointer dereference: rule [nullPointerOutOfMemory] makedepf90-3.0.1/utils.c:129:27: note: Assuming allocation function fails makedepf90-3.0.1/utils.c:129:12: note: Assignment 'rule=(char*)xmalloc(1024*sizeof(char))', assigned value is 0 makedepf90-3.0.1/utils.c:138:5: note: Null pointer dereference makedepf90-3.0.1/utils.c:158:5: warning: If memory allocation fails, then there is a possible null pointer dereference: rule [nullPointerOutOfMemory] makedepf90-3.0.1/utils.c:129:27: note: Assuming allocation function fails makedepf90-3.0.1/utils.c:129:12: note: Assignment 'rule=(char*)xmalloc(1024*sizeof(char))', assigned value is 0 makedepf90-3.0.1/utils.c:158:5: note: Null pointer dereference makedepf90-3.0.1/utils.c:178:20: warning: If memory allocation fails, then there is a possible null pointer dereference: fn [nullPointerOutOfMemory] makedepf90-3.0.1/utils.c:177:25: note: Assuming allocation function fails makedepf90-3.0.1/utils.c:177:25: note: Assignment 'fn=xmalloc(strlen(h->data)+strlen(fname)+2)', assigned value is 0 makedepf90-3.0.1/utils.c:178:20: note: Null pointer dereference makedepf90-3.0.1/utils.c:179:20: warning: If memory allocation fails, then there is a possible null pointer dereference: fn [nullPointerOutOfMemory] makedepf90-3.0.1/utils.c:177:25: note: Assuming allocation function fails makedepf90-3.0.1/utils.c:177:25: note: Assignment 'fn=xmalloc(strlen(h->data)+strlen(fname)+2)', assigned value is 0 makedepf90-3.0.1/utils.c:179:20: note: Null pointer dereference makedepf90-3.0.1/main.c:51:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FNM_PATHNAME [valueFlowBailoutIncompleteVar] makedepf90-3.0.1/main.c:261:13: warning: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] makedepf90-3.0.1/main.c:253:32: note: Assuming allocation function fails makedepf90-3.0.1/main.c:253:17: note: Assignment 'h=(struct Fsr*)xmalloc(sizeof(struct Fsr))', assigned value is 0 makedepf90-3.0.1/main.c:261:13: note: Null pointer dereference makedepf90-3.0.1/main.c:360:24: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] makedepf90-3.0.1/main.c:353:28: note: Assuming allocation function fails makedepf90-3.0.1/main.c:353:28: note: Assignment 's=xstrdup(argv[++i])', assigned value is 0 makedepf90-3.0.1/main.c:360:24: note: Null pointer dereference makedepf90-3.0.1/main.c:286:19: style: Local variable 's' shadows outer variable [shadowVariable] makedepf90-3.0.1/main.c:134:11: note: Shadowed variable makedepf90-3.0.1/main.c:286:19: note: Shadow local variable makedepf90-3.0.1/main.c:292:23: style: Local variable 'eq' shadows outer variable [shadowVariable] makedepf90-3.0.1/main.c:285:19: note: Shadowed variable makedepf90-3.0.1/main.c:292:23: note: Shadow local variable makedepf90-3.0.1/main.c:293:23: style: Local variable 's' shadows outer variable [shadowVariable] makedepf90-3.0.1/main.c:286:19: note: Shadowed variable makedepf90-3.0.1/main.c:293:23: note: Shadow local variable makedepf90-3.0.1/main.c:143:13: style: Variable 'mod' can be declared as pointer to const [constVariablePointer] makedepf90-3.0.1/main.c:285:19: style: Variable 'eq' can be declared as pointer to const [constVariablePointer] makedepf90-3.0.1/main.c:286:19: style: Variable 's' can be declared as pointer to const [constVariablePointer] makedepf90-3.0.1/main.c:292:23: style: Variable 'eq' can be declared as pointer to const [constVariablePointer] makedepf90-3.0.1/main.c:293:23: style: Variable 's' can be declared as pointer to const [constVariablePointer] makedepf90-3.0.1/main.c:500:18: style: Variable 'h' can be declared as pointer to const [constVariablePointer] diff: 2.20.0 makedepf90-3.0.1/main.c:286:19: style: Local variable 's' shadows outer variable [shadowVariable] makedepf90-3.0.1/main.c:134:11: note: Shadowed declaration makedepf90-3.0.1/main.c:286:19: note: Shadow variable head makedepf90-3.0.1/main.c:286:19: style: Local variable 's' shadows outer variable [shadowVariable] makedepf90-3.0.1/main.c:134:11: note: Shadowed variable makedepf90-3.0.1/main.c:286:19: note: Shadow local variable 2.20.0 makedepf90-3.0.1/main.c:292:23: style: Local variable 'eq' shadows outer variable [shadowVariable] makedepf90-3.0.1/main.c:285:19: note: Shadowed declaration makedepf90-3.0.1/main.c:292:23: note: Shadow variable head makedepf90-3.0.1/main.c:292:23: style: Local variable 'eq' shadows outer variable [shadowVariable] makedepf90-3.0.1/main.c:285:19: note: Shadowed variable makedepf90-3.0.1/main.c:292:23: note: Shadow local variable 2.20.0 makedepf90-3.0.1/main.c:293:23: style: Local variable 's' shadows outer variable [shadowVariable] makedepf90-3.0.1/main.c:286:19: note: Shadowed declaration makedepf90-3.0.1/main.c:293:23: note: Shadow variable head makedepf90-3.0.1/main.c:293:23: style: Local variable 's' shadows outer variable [shadowVariable] makedepf90-3.0.1/main.c:286:19: note: Shadowed variable makedepf90-3.0.1/main.c:293:23: note: Shadow local variable 2.20.0 makedepf90-3.0.1/utils.c:180:20: warning: If memory allocation fails, then there is a possible null pointer dereference: fn [nullPointerOutOfMemory] makedepf90-3.0.1/utils.c:177:25: note: Assuming allocation function fails makedepf90-3.0.1/utils.c:177:25: note: Assignment 'fn=xmalloc(strlen(h->data)+strlen(fname)+2)', assigned value is 0 makedepf90-3.0.1/utils.c:180:20: note: Null pointer dereference 2.20.0 makedepf90-3.0.1/utils.c:181:24: warning: If memory allocation fails, then there is a possible null pointer dereference: fn [nullPointerOutOfMemory] makedepf90-3.0.1/utils.c:177:25: note: Assuming allocation function fails makedepf90-3.0.1/utils.c:177:25: note: Assignment 'fn=xmalloc(strlen(h->data)+strlen(fname)+2)', assigned value is 0 makedepf90-3.0.1/utils.c:181:24: note: Null pointer dereference 2.20.0 makedepf90-3.0.1/utils.c:65:9: warning: If memory allocation fails, then there is a possible null pointer dereference: rs [nullPointerOutOfMemory] makedepf90-3.0.1/utils.c:63:30: note: Assuming allocation function fails makedepf90-3.0.1/utils.c:63:14: note: Assignment 'rs=(char*)xmalloc((n+sl+2)*sizeof(char))', assigned value is 0 makedepf90-3.0.1/utils.c:65:9: note: Null pointer dereference 2.20.0 makedepf90-3.0.1/utils.c:66:16: warning: If memory allocation fails, then there is a possible null pointer dereference: rs [nullPointerOutOfMemory] makedepf90-3.0.1/utils.c:63:30: note: Assuming allocation function fails makedepf90-3.0.1/utils.c:63:14: note: Assignment 'rs=(char*)xmalloc((n+sl+2)*sizeof(char))', assigned value is 0 makedepf90-3.0.1/utils.c:66:16: note: Null pointer dereference 2.20.0 makedepf90-3.0.1/xmalloc.c:68:5: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] makedepf90-3.0.1/xmalloc.c:66:28: note: Assuming allocation function fails makedepf90-3.0.1/xmalloc.c:66:11: note: Assignment 'new=(char*)xmalloc((maxl+1)*sizeof(char))', assigned value is 0 makedepf90-3.0.1/xmalloc.c:68:5: note: Null pointer dereference DONE