2026-05-05 05:09 ftp://ftp.de.debian.org/debian/pool/main/s/supercat/supercat_0.5.8.orig.tar.gz 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 -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: 519958a (2026-05-04 15:03:10 +0200) count: 46 48 elapsed-time: 0.9 0.8 head-timing-info: old-timing-info: head results: supercat-0.5.8/src/spc.c:117:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] supercat-0.5.8/src/spc.c:132:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SYSTEM_DIRECTORY [valueFlowBailoutIncompleteVar] supercat-0.5.8/src/spc.c:139:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] supercat-0.5.8/src/spc.c:167:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] supercat-0.5.8/src/spc.c:568:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SYSTEM_DIRECTORY [valueFlowBailoutIncompleteVar] supercat-0.5.8/src/spc.c:822:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_NOTBOL [valueFlowBailoutIncompleteVar] supercat-0.5.8/src/spc.c:1160:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_EXTENDED [valueFlowBailoutIncompleteVar] supercat-0.5.8/src/spc.c:1229:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] supercat-0.5.8/src/spc.c:1246:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] supercat-0.5.8/src/spc.c:852:22: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] supercat-0.5.8/src/spc.c:873:22: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] supercat-0.5.8/src/spc.c:895:22: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] supercat-0.5.8/src/spc.c:916:22: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] supercat-0.5.8/src/spc.c:190:17: warning: If memory allocation fails, then there is a possible null pointer dereference: q [nullPointerOutOfMemory] supercat-0.5.8/src/spc.c:189:20: note: Assuming allocation function fails supercat-0.5.8/src/spc.c:189:20: note: Assignment 'q=malloc(strlen(s)+3)', assigned value is 0 supercat-0.5.8/src/spc.c:190:17: note: Null pointer dereference supercat-0.5.8/src/spc.c:191:17: warning: If memory allocation fails, then there is a possible null pointer dereference: q [nullPointerOutOfMemory] supercat-0.5.8/src/spc.c:189:20: note: Assuming allocation function fails supercat-0.5.8/src/spc.c:189:20: note: Assignment 'q=malloc(strlen(s)+3)', assigned value is 0 supercat-0.5.8/src/spc.c:191:17: note: Null pointer dereference supercat-0.5.8/src/spc.c:362:21: warning: If memory allocation fails, then there is a possible null pointer dereference: opt_config [nullPointerOutOfMemory] supercat-0.5.8/src/spc.c:361:33: note: Assuming allocation function fails supercat-0.5.8/src/spc.c:361:33: note: Assignment 'opt_config=malloc(strlen(av[i])+1)', assigned value is 0 supercat-0.5.8/src/spc.c:362:21: note: Null pointer dereference supercat-0.5.8/src/spc.c:368:21: warning: If memory allocation fails, then there is a possible null pointer dereference: opt_directory [nullPointerOutOfMemory] supercat-0.5.8/src/spc.c:367:36: note: Assuming allocation function fails supercat-0.5.8/src/spc.c:367:36: note: Assignment 'opt_directory=malloc(strlen(av[i])+1)', assigned value is 0 supercat-0.5.8/src/spc.c:368:21: note: Null pointer dereference supercat-0.5.8/src/spc.c:421:21: warning: If memory allocation fails, then there is a possible null pointer dereference: opt_directory [nullPointerOutOfMemory] supercat-0.5.8/src/spc.c:420:36: note: Assuming allocation function fails supercat-0.5.8/src/spc.c:420:36: note: Assignment 'opt_directory=malloc(strlen(p)+1)', assigned value is 0 supercat-0.5.8/src/spc.c:421:21: note: Null pointer dereference supercat-0.5.8/src/spc.c:441:21: warning: If memory allocation fails, then there is a possible null pointer dereference: opt_config [nullPointerOutOfMemory] supercat-0.5.8/src/spc.c:440:33: note: Assuming allocation function fails supercat-0.5.8/src/spc.c:440:33: note: Assignment 'opt_config=malloc(strlen(p)+1)', assigned value is 0 supercat-0.5.8/src/spc.c:441:21: note: Null pointer dereference supercat-0.5.8/src/spc.c:448:21: warning: If memory allocation fails, then there is a possible null pointer dereference: opt_type [nullPointerOutOfMemory] supercat-0.5.8/src/spc.c:447:31: note: Assuming allocation function fails supercat-0.5.8/src/spc.c:447:31: note: Assignment 'opt_type=malloc(strlen(av[i])+1)', assigned value is 0 supercat-0.5.8/src/spc.c:448:21: note: Null pointer dereference supercat-0.5.8/src/spc.c:462:21: warning: If memory allocation fails, then there is a possible null pointer dereference: opt_type [nullPointerOutOfMemory] supercat-0.5.8/src/spc.c:461:31: note: Assuming allocation function fails supercat-0.5.8/src/spc.c:461:31: note: Assignment 'opt_type=malloc(strlen(p)+1)', assigned value is 0 supercat-0.5.8/src/spc.c:462:21: note: Null pointer dereference supercat-0.5.8/src/spc.c:474:21: warning: If memory allocation fails, then there is a possible null pointer dereference: inp_file [nullPointerOutOfMemory] supercat-0.5.8/src/spc.c:473:31: note: Assuming allocation function fails supercat-0.5.8/src/spc.c:473:31: note: Assignment 'inp_file=malloc(strlen(av[i])+1)', assigned value is 0 supercat-0.5.8/src/spc.c:474:21: note: Null pointer dereference supercat-0.5.8/src/spc.c:494:13: warning: If memory allocation fails, then there is a possible null pointer dereference: typ_suffix [nullPointerOutOfMemory] supercat-0.5.8/src/spc.c:493:25: note: Assuming allocation function fails supercat-0.5.8/src/spc.c:493:25: note: Assignment 'typ_suffix=malloc(strlen(inp_file)+1)', assigned value is 0 supercat-0.5.8/src/spc.c:494:13: note: Null pointer dereference supercat-0.5.8/src/spc.c:502:30: warning: If memory allocation fails, then there is a possible null pointer dereference: typ_suffix [nullPointerOutOfMemory] supercat-0.5.8/src/spc.c:493:25: note: Assuming allocation function fails supercat-0.5.8/src/spc.c:493:25: note: Assignment 'typ_suffix=malloc(strlen(inp_file)+1)', assigned value is 0 supercat-0.5.8/src/spc.c:502:30: note: Null pointer dereference supercat-0.5.8/src/spc.c:521:13: warning: If memory allocation fails, then there is a possible null pointer dereference: typ_suffix [nullPointerOutOfMemory] supercat-0.5.8/src/spc.c:493:25: note: Assuming allocation function fails supercat-0.5.8/src/spc.c:493:25: note: Assignment 'typ_suffix=malloc(strlen(inp_file)+1)', assigned value is 0 supercat-0.5.8/src/spc.c:521:13: note: Null pointer dereference supercat-0.5.8/src/spc.c:595:21: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] supercat-0.5.8/src/spc.c:594:27: note: Assuming allocation function fails supercat-0.5.8/src/spc.c:594:27: note: Assignment 'temp=malloc(strlen(home)+strlen(opt_config)+1)', assigned value is 0 supercat-0.5.8/src/spc.c:595:21: note: Null pointer dereference supercat-0.5.8/src/spc.c:596:21: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] supercat-0.5.8/src/spc.c:594:27: note: Assuming allocation function fails supercat-0.5.8/src/spc.c:594:27: note: Assignment 'temp=malloc(strlen(home)+strlen(opt_config)+1)', assigned value is 0 supercat-0.5.8/src/spc.c:596:21: note: Null pointer dereference supercat-0.5.8/src/spc.c:174:28: style: Parameter 'cmd' can be declared as pointer to const [constParameterPointer] supercat-0.5.8/src/spc.c:176:11: style: Variable 's' can be declared as pointer to const [constVariablePointer] supercat-0.5.8/src/spc.c:210:28: style: Parameter 'cmd' can be declared as pointer to const [constParameterPointer] supercat-0.5.8/src/spc.c:542:22: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] supercat-0.5.8/src/spc.c:545:13: style: Variable 'home' can be declared as pointer to const [constVariablePointer] supercat-0.5.8/src/spc.c:583:14: style: Variable 'home' can be declared as pointer to const [constVariablePointer] supercat-0.5.8/src/spc.c:647:22: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] supercat-0.5.8/src/spc.c:746:20: style: Parameter 'spc' can be declared as pointer to const [constParameterPointer] supercat-0.5.8/src/spc.c:773:20: style: Parameter 'spc' can be declared as pointer to const [constParameterPointer] supercat-0.5.8/src/spc.c:773:31: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] supercat-0.5.8/src/spc.c:797:20: style: Parameter 'spc' can be declared as pointer to const [constParameterPointer] supercat-0.5.8/src/spc.c:800:35: style: Variable 'm' can be declared as pointer to const [constVariablePointer] supercat-0.5.8/src/spc.c:951:17: style: Variable 'p' can be declared as pointer to const [constVariablePointer] supercat-0.5.8/src/spc.c:997:35: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] supercat-0.5.8/src/spc.c:1017:12: style: Variable 'spc' can be declared as pointer to const [constVariablePointer] supercat-0.5.8/src/spc.c:1052:12: style: Variable 'p' can be declared as pointer to const [constVariablePointer] supercat-0.5.8/src/spc.c:1055:12: style: Variable 'spc' can be declared as pointer to const [constVariablePointer] supercat-0.5.8/src/spc.c:345:15: style: Unused variable: q [unusedVariable] supercat-0.5.8/src/spc.c:1182:14: style: Variable 'n' is assigned a value that is never used. [unreadVariable] diff: 2.20.0 supercat-0.5.8/src/spc.c:192:17: warning: If memory allocation fails, then there is a possible null pointer dereference: q [nullPointerOutOfMemory] supercat-0.5.8/src/spc.c:189:20: note: Assuming allocation function fails supercat-0.5.8/src/spc.c:189:20: note: Assignment 'q=malloc(strlen(s)+3)', assigned value is 0 supercat-0.5.8/src/spc.c:192:17: note: Null pointer dereference 2.20.0 supercat-0.5.8/src/spc.c:568:49: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfMemory] supercat-0.5.8/src/spc.c:610:29: note: Assuming allocation function fails supercat-0.5.8/src/spc.c:610:29: note: Assignment 'opt_config=malloc(strlen(opt_type)+7)', assigned value is 0 supercat-0.5.8/src/spc.c:612:33: note: Calling function 'config_search', 1st argument 'opt_config' value is 0 supercat-0.5.8/src/spc.c:568:49: note: Null pointer dereference DONE