2026-05-01 18:17 ftp://ftp.de.debian.org/debian/pool/main/e/eperl/eperl_2.2.16.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 -j6 platform: Linux-7.0.3+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: e5c4a734 (2026-05-01 11:10:43 +0200) count: 50 48 elapsed-time: 0.5 0.4 head-timing-info: old-timing-info: head results: ossp-eperl-ePerl_2_2_16/eperl_sys.c:39:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_DUPFD_CLOEXEC [valueFlowBailoutIncompleteVar] ossp-eperl-ePerl_2_2_16/eperl_sys.c:40:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_DUPFD_CLOEXEC [valueFlowBailoutIncompleteVar] ossp-eperl-ePerl_2_2_16/eperl_sys.c:50:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CLOEXEC [valueFlowBailoutIncompleteVar] ossp-eperl-ePerl_2_2_16/eperl_perl5.c:31:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dTHR [valueFlowBailoutIncompleteVar] ossp-eperl-ePerl_2_2_16/eperl_sys.c:97:77: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] ossp-eperl-ePerl_2_2_16/eperl_perl5.c:113:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CLOEXEC [valueFlowBailoutIncompleteVar] ossp-eperl-ePerl_2_2_16/eperl_sys.c:15:5: warning: Return value of function vasprintf() is not used. [ignoredReturnValue] ossp-eperl-ePerl_2_2_16/eperl_sys.c:112:15: style: Variable 'path' can be declared as pointer to const [constVariablePointer] ossp-eperl-ePerl_2_2_16/eperl_parse.c:230:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cpe [valueFlowBailoutIncompleteVar] ossp-eperl-ePerl_2_2_16/eperl_parse.c:258:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] ossp-eperl-ePerl_2_2_16/eperl_http.c:114:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data [valueFlowBailoutIncompleteVar] ossp-eperl-ePerl_2_2_16/eperl_http.c:129:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data [valueFlowBailoutIncompleteVar] ossp-eperl-ePerl_2_2_16/eperl_http.c:197:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EPERL_VERSION_SHORT [valueFlowBailoutIncompleteVar] ossp-eperl-ePerl_2_2_16/eperl_perl5.c:115:107: style: Condition 'stdout_thread=0,true' is always true [knownConditionTrueFalse] ossp-eperl-ePerl_2_2_16/eperl_perl5.c:116:107: style: Condition 'stderr_thread=0,true' is always true [knownConditionTrueFalse] ossp-eperl-ePerl_2_2_16/eperl_perl5.c:53:5: error: Common reallocarray mistake: 'Perl5_RememberedScalars' nulled but not freed upon failure [memleakOnRealloc] ossp-eperl-ePerl_2_2_16/eperl_perl5.c:78:12: warning: If resource allocation fails, then there is a possible null pointer dereference: piperd [nullPointerOutOfResources] ossp-eperl-ePerl_2_2_16/eperl_perl5.c:74:26: note: Assuming allocation function fails ossp-eperl-ePerl_2_2_16/eperl_perl5.c:74:26: note: Assignment 'piperd=fdopen(state->pipe[0],"r")', assigned value is 0 ossp-eperl-ePerl_2_2_16/eperl_perl5.c:78:12: note: Null pointer dereference ossp-eperl-ePerl_2_2_16/eperl_main.c:62:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EPERL_VERSION_SHORT [valueFlowBailoutIncompleteVar] ossp-eperl-ePerl_2_2_16/eperl_main.c:97:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] ossp-eperl-ePerl_2_2_16/eperl_main.c:111:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] ossp-eperl-ePerl_2_2_16/eperl_main.c:127:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] ossp-eperl-ePerl_2_2_16/eperl_main.c:132:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ossp-eperl-ePerl_2_2_16/eperl_main.c:187:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ossp-eperl-ePerl_2_2_16/eperl_main.c:266:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] ossp-eperl-ePerl_2_2_16/eperl_http.c:192:13: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] ossp-eperl-ePerl_2_2_16/eperl_http.c:191:22: note: Assuming allocation function fails ossp-eperl-ePerl_2_2_16/eperl_http.c:191:22: note: Assignment 'fp=fdopen(s,"r+")', assigned value is 0 ossp-eperl-ePerl_2_2_16/eperl_http.c:192:13: note: Null pointer dereference ossp-eperl-ePerl_2_2_16/eperl_http.c:146:36: style:inconclusive: Function 'HTTP_openURLasFP' argument 1 names different: declaration 'url' definition 'url_arg'. [funcArgNamesDifferent] ossp-eperl-ePerl_2_2_16/eperl.h:73:43: note: Function 'HTTP_openURLasFP' argument 1 names different: declaration 'url' definition 'url_arg'. ossp-eperl-ePerl_2_2_16/eperl_http.c:146:36: note: Function 'HTTP_openURLasFP' argument 1 names different: declaration 'url' definition 'url_arg'. ossp-eperl-ePerl_2_2_16/eperl_http.c:17:11: style: Variable 'colon' can be declared as pointer to const [constVariablePointer] ossp-eperl-ePerl_2_2_16/eperl_http.c:111:41: style: Variable 'cpe' can be declared as pointer to const [constVariablePointer] ossp-eperl-ePerl_2_2_16/eperl_http.c:122:41: style: Variable 'cpe' can be declared as pointer to const [constVariablePointer] ossp-eperl-ePerl_2_2_16/eperl_http.c:152:11: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] ossp-eperl-ePerl_2_2_16/eperl_parse.c:195:16: style: Variable 'amp' can be declared as pointer to const [constVariablePointer] ossp-eperl-ePerl_2_2_16/eperl_parse.c:200:15: style: Variable 'semi' can be declared as pointer to const [constVariablePointer] ossp-eperl-ePerl_2_2_16/eperl_parse.c:215:27: style: Variable 'ent' can be declared as pointer to const [constVariablePointer] ossp-eperl-ePerl_2_2_16/eperl_parse.c:230:43: portability: 'buf' is of type 'const void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] ossp-eperl-ePerl_2_2_16/eperl_parse.c:230:47: portability: 'buf+n' is of type 'const void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] ossp-eperl-ePerl_2_2_16/eperl_pp.c:78:82: style: Condition 'cp==NULL' is always true [knownConditionTrueFalse] ossp-eperl-ePerl_2_2_16/eperl_pp.c:76:14: note: Assignment 'cp=NULL', assigned value is 0 ossp-eperl-ePerl_2_2_16/eperl_pp.c:78:82: note: Condition 'cp==NULL' is always true ossp-eperl-ePerl_2_2_16/eperl_pp.c:160:23: style: Variable 'argstart' can be declared as pointer to const [constVariablePointer] ossp-eperl-ePerl_2_2_16/eperl_main.c:592:18: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] ossp-eperl-ePerl_2_2_16/eperl_main.c:607:35: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] ossp-eperl-ePerl_2_2_16/eperl_main.c:609:35: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] ossp-eperl-ePerl_2_2_16/eperl_main.c:627:18: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] ossp-eperl-ePerl_2_2_16/eperl_main.c:639:18: portability: Non reentrant function 'getgrgid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrgid_r'. [prohibitedgetgrgidCalled] ossp-eperl-ePerl_2_2_16/eperl_main.c:656:22: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] ossp-eperl-ePerl_2_2_16/eperl_main.c:780:21: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] ossp-eperl-ePerl_2_2_16/eperl_main.c:784:15: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] ossp-eperl-ePerl_2_2_16/eperl_main.c:167:5: error: Common reallocarray mistake: 'RememberedINC' nulled but not freed upon failure [memleakOnRealloc] ossp-eperl-ePerl_2_2_16/eperl_main.c:231:20: style: Variable 'pw2' can be declared as pointer to const [constVariablePointer] ossp-eperl-ePerl_2_2_16/eperl_main.c:232:19: style: Variable 'gr' can be declared as pointer to const [constVariablePointer] ossp-eperl-ePerl_2_2_16/eperl_main.c:750:101: style: Variable 'cpPath' can be declared as pointer to const [constVariablePointer] ossp-eperl-ePerl_2_2_16/eperl_main.c:791:11: style: Variable 'sourcedir' can be declared as pointer to const [constVariablePointer] diff: 2.20.0 ossp-eperl-ePerl_2_2_16/eperl_http.c:201:33: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] ossp-eperl-ePerl_2_2_16/eperl_http.c:191:22: note: Assuming allocation function fails ossp-eperl-ePerl_2_2_16/eperl_http.c:191:22: note: Assignment 'fp=fdopen(s,"r+")', assigned value is 0 ossp-eperl-ePerl_2_2_16/eperl_http.c:201:33: note: Null pointer dereference head ossp-eperl-ePerl_2_2_16/eperl_main.c:231:20: style: Variable 'pw2' can be declared as pointer to const [constVariablePointer] head ossp-eperl-ePerl_2_2_16/eperl_main.c:232:19: style: Variable 'gr' can be declared as pointer to const [constVariablePointer] head ossp-eperl-ePerl_2_2_16/eperl_main.c:750:101: style: Variable 'cpPath' can be declared as pointer to const [constVariablePointer] DONE