2025-05-10 07:16 ftp://ftp.de.debian.org/debian/pool/main/e/esniper/esniper_2.35.0.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=libcurl --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 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: b3c7f00 (2025-05-09 17:59:20 +0200) count: 93 93 elapsed-time: 0.5 0.5 head-timing-info: old-timing-info: head results: esniper-2-35-0/auctionfile.c:56:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] esniper-2-35-0/auctioninfo.c:481:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] esniper-2-35-0/auctioninfo.c:400:11: style: Variable 'increments' can be declared as pointer to const [constVariablePointer] esniper-2-35-0/auction.c:104:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] esniper-2-35-0/auction.c:817:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] esniper-2-35-0/auction.c:867:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] esniper-2-35-0/auction.c:909:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] esniper-2-35-0/auction.c:1058:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] esniper-2-35-0/auction.c:1172:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] esniper-2-35-0/auction.c:1210:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] esniper-2-35-0/auction.c:1253:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] esniper-2-35-0/auctionfile.c:120:10: style: Variable 'auction' can be declared as pointer to const [constVariablePointer] esniper-2-35-0/auctionfile.c:120:20: style: Variable 'bidPriceStr' can be declared as pointer to const [constVariablePointer] esniper-2-35-0/esniper.c:184:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] esniper-2-35-0/esniper.c:205:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_DFL [valueFlowBailoutIncompleteVar] esniper-2-35-0/esniper.c:251:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] esniper-2-35-0/esniper.c:301:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] esniper-2-35-0/esniper.c:325:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] esniper-2-35-0/esniper.c:349:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] esniper-2-35-0/esniper.c:375:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] esniper-2-35-0/esniper.c:396:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] esniper-2-35-0/esniper.c:438:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] esniper-2-35-0/esniper.c:480:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] esniper-2-35-0/esniper.c:489:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] esniper-2-35-0/esniper.c:574:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] esniper-2-35-0/esniper.c:614:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] esniper-2-35-0/history.c:245:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] esniper-2-35-0/history.c:830:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] esniper-2-35-0/esniper.c:435:20: style:inconclusive: Function 'CheckFile' argument 5 names different: declaration 'fileType' definition 'filetype'. [funcArgNamesDifferent] esniper-2-35-0/esniper.c:178:20: note: Function 'CheckFile' argument 5 names different: declaration 'fileType' definition 'filetype'. esniper-2-35-0/esniper.c:435:20: note: Function 'CheckFile' argument 5 names different: declaration 'fileType' definition 'filetype'. esniper-2-35-0/esniper.c:571:11: style:inconclusive: Function 'usage' argument 1 names different: declaration 'helptype' definition 'helplevel'. [funcArgNamesDifferent] esniper-2-35-0/esniper.c:167:22: note: Function 'usage' argument 1 names different: declaration 'helptype' definition 'helplevel'. esniper-2-35-0/esniper.c:571:11: note: Function 'usage' argument 1 names different: declaration 'helptype' definition 'helplevel'. esniper-2-35-0/esniper.c:372:8: style: Variable 'username' can be declared as pointer to const [constVariablePointer] esniper-2-35-0/esniper.c:669:9: style: Variable 'homedir' can be declared as pointer to const [constVariablePointer] esniper-2-35-0/history.c:124:11: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] esniper-2-35-0/history.c:125:11: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] esniper-2-35-0/history.c:129:12: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] esniper-2-35-0/history.c:425:11: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] esniper-2-35-0/history.c:125:9: style: Variable 'token' is reassigned a value before the old one has been used. [redundantAssignment] esniper-2-35-0/history.c:124:9: note: token is assigned esniper-2-35-0/history.c:125:9: note: token is overwritten esniper-2-35-0/history.c:167:8: style: Variable 'line' is reassigned a value before the old one has been used. [redundantAssignment] esniper-2-35-0/history.c:166:8: note: line is assigned esniper-2-35-0/history.c:167:8: note: line is overwritten esniper-2-35-0/history.c:175:22: style: Variable 'line' is reassigned a value before the old one has been used. [redundantAssignment] esniper-2-35-0/history.c:174:22: note: line is assigned esniper-2-35-0/history.c:175:22: note: line is overwritten esniper-2-35-0/history.c:224:22: style: Variable 'line' is reassigned a value before the old one has been used. [redundantAssignment] esniper-2-35-0/history.c:223:22: note: line is assigned esniper-2-35-0/history.c:224:22: note: line is overwritten esniper-2-35-0/history.c:443:8: style: Variable 'line' is reassigned a value before the old one has been used. [redundantAssignment] esniper-2-35-0/history.c:442:8: note: line is assigned esniper-2-35-0/history.c:443:8: note: line is overwritten esniper-2-35-0/history.c:710:31: style: Variable 'line' is reassigned a value before the old one has been used. [redundantAssignment] esniper-2-35-0/history.c:709:31: note: line is assigned esniper-2-35-0/history.c:710:31: note: line is overwritten esniper-2-35-0/history.c:92:37: style: Parameter 'pp' can be declared as pointer to const [constParameterPointer] esniper-2-35-0/history.c:114:9: style: Variable 'token' can be declared as pointer to const [constVariablePointer] esniper-2-35-0/history.c:420:14: style: Variable 'tmPtr' can be declared as pointer to const [constVariablePointer] esniper-2-35-0/history.c:533:10: style: Variable 'rawHeader' can be declared as pointer to const [constVariablePointer] esniper-2-35-0/history.c:763:14: style: Variable 'ended' can be declared as const array [constVariable] esniper-2-35-0/html.c:57:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] esniper-2-35-0/html.c:166:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] esniper-2-35-0/http.c:129:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] esniper-2-35-0/http.c:161:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CURLOPT_FILE [valueFlowBailoutIncompleteVar] esniper-2-35-0/http.c:208:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CURL_GLOBAL_ALL [valueFlowBailoutIncompleteVar] esniper-2-35-0/http.c:93:38: style:inconclusive: Function 'strToMemBuf' argument 2 names different: declaration 'buf' definition 'mp'. [funcArgNamesDifferent] esniper-2-35-0/http.h:57:55: note: Function 'strToMemBuf' argument 2 names different: declaration 'buf' definition 'mp'. esniper-2-35-0/http.c:93:38: note: Function 'strToMemBuf' argument 2 names different: declaration 'buf' definition 'mp'. esniper-2-35-0/http.c:287:27: style: Parameter 'ptr' can be declared as pointer to const. However it seems that 'WriteMemoryCallback' is a callback function, if 'ptr' is declared with const you might also need to cast function pointer(s). [constParameterCallback] esniper-2-35-0/http.c:240:68: note: You might need to cast the function pointer here esniper-2-35-0/http.c:287:27: note: Parameter 'ptr' can be declared as pointer to const esniper-2-35-0/http.c:304:18: style: Parameter 'mp' can be declared as pointer to const [constParameterPointer] esniper-2-35-0/http.c:460:30: style: Parameter 'mp' can be declared as pointer to const [constParameterPointer] esniper-2-35-0/html.c:193:11: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] esniper-2-35-0/html.c:380:22: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] esniper-2-35-0/options.c:78:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] esniper-2-35-0/options.c:208:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] esniper-2-35-0/options.c:236:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] esniper-2-35-0/options.c:292:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] esniper-2-35-0/options.c:314:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] esniper-2-35-0/util.c:70:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] esniper-2-35-0/util.c:82:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] esniper-2-35-0/util.c:217:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] esniper-2-35-0/util.c:359:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] esniper-2-35-0/util.c:451:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] esniper-2-35-0/util.c:468:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] esniper-2-35-0/util.c:554:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] esniper-2-35-0/options.c:93:24: style: Variable 'value' can be declared as pointer to const [constVariablePointer] esniper-2-35-0/util.c:197:11: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] esniper-2-35-0/util.c:201:11: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] esniper-2-35-0/util.c:249:66: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] esniper-2-35-0/util.c:513:20: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] esniper-2-35-0/util.c:727:27: style: Obsolete function 'curl_escape' called. It is recommended to use 'curl_easy_escape' instead. [prohibitedcurl_escapeCalled] esniper-2-35-0/util.c:738:20: style: Obsolete function 'curl_escape' called. It is recommended to use 'curl_easy_escape' instead. [prohibitedcurl_escapeCalled] esniper-2-35-0/util.c:747:23: warning: If memory allocation fails, then there is a possible null pointer dereference: password [nullPointerOutOfMemory] esniper-2-35-0/util.c:738:31: note: Assuming allocation function fails esniper-2-35-0/util.c:738:31: note: Assignment 'escapedPassword=curl_escape(password,(int)len)', assigned value is 0 esniper-2-35-0/util.c:742:11: note: password is assigned 'escapedPassword' here. esniper-2-35-0/util.c:747:23: note: Null pointer dereference esniper-2-35-0/util.c:766:3: warning: If memory allocation fails, then there is a possible null pointer dereference: password [nullPointerOutOfMemory] esniper-2-35-0/util.c:738:31: note: Assuming allocation function fails esniper-2-35-0/util.c:738:31: note: Assignment 'escapedPassword=curl_escape(password,(int)len)', assigned value is 0 esniper-2-35-0/util.c:742:11: note: password is assigned 'escapedPassword' here. esniper-2-35-0/util.c:755:16: note: Calling function 'cryptPassword', 1st argument 'password' value is 0 esniper-2-35-0/util.c:766:3: note: Null pointer dereference esniper-2-35-0/util.c:326:8: style: Local variable 'i' shadows outer variable [shadowVariable] esniper-2-35-0/util.c:303:7: note: Shadowed declaration esniper-2-35-0/util.c:326:8: note: Shadow variable esniper-2-35-0/util.c:189:20: style: Variable 'pw' can be declared as pointer to const [constVariablePointer] esniper-2-35-0/util.c:513:14: style: Variable 'tmp' can be declared as pointer to const [constVariablePointer] esniper-2-35-0/auction.c:697:14: warning: Either the condition '!pagename' is redundant or there is possible null pointer dereference: pagename. [nullPointerRedundantCheck] esniper-2-35-0/auction.c:700:6: note: Assuming that condition '!pagename' is not redundant esniper-2-35-0/auction.c:697:14: note: Null pointer dereference esniper-2-35-0/auction.c:193:8: style: Local variable 'id' shadows outer variable [shadowVariable] esniper-2-35-0/auction.c:411:20: note: Shadowed declaration esniper-2-35-0/auction.c:193:8: note: Shadow variable esniper-2-35-0/auction.c:339:25: style: Variable 'end' can be declared as pointer to const [constVariablePointer] esniper-2-35-0/auction.c:358:25: style: Variable 'end' can be declared as pointer to const [constVariablePointer] esniper-2-35-0/auction.c:377:25: style: Variable 'end' can be declared as pointer to const [constVariablePointer] esniper-2-35-0/auction.c:440:8: style: Variable 'end' can be declared as pointer to const [constVariablePointer] esniper-2-35-0/auction.c:1259:9: style: Variable 'line' can be declared as pointer to const [constVariablePointer] esniper-2-35-0/auction.c:1299:9: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] esniper-2-35-0/auction.c:174:5: style: Variable 'needPageName' is assigned a value that is never used. [unreadVariable] esniper-2-35-0/auction.c:893:25: style: Variable 'sleepTime' is assigned a value that is never used. [unreadVariable] esniper-2-35-0/auction.c:1153:13: style: Variable 'item_nr' is assigned a value that is never used. [unreadVariable] diff: DONE