2025-05-05 00:14 ftp://ftp.de.debian.org/debian/pool/main/h/httping/httping_4.4.0.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=openssl --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-59-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.17.0 head-info: 88ef81e (2025-05-02 08:42:38 +0200) count: 36 36 elapsed-time: 0.4 0.4 head-timing-info: old-timing-info: head results: HTTPing-4.4.0/cookies.c:9:43: warning: If memory allocation fails, then there is a possible null pointer dereference: in_copy [nullPointerOutOfMemory] HTTPing-4.4.0/cookies.c:9:24: note: Assuming allocation function fails HTTPing-4.4.0/cookies.c:9:24: note: Assignment 'in_copy=strdup(in)', assigned value is 0 HTTPing-4.4.0/cookies.c:9:43: note: Null pointer dereference HTTPing-4.4.0/cookies.c:19:15: warning: If memory allocation fails, then there is a possible null pointer dereference: dummy [nullPointerOutOfMemory] HTTPing-4.4.0/cookies.c:17:23: note: Assuming allocation function fails HTTPing-4.4.0/cookies.c:17:23: note: Assignment 'dummy=strdup((*cookies)[index])', assigned value is 0 HTTPing-4.4.0/cookies.c:19:15: note: Null pointer dereference HTTPing-4.4.0/cookies.c:7:56: style: Parameter 'in' can be declared as pointer to const [constParameterPointer] HTTPing-4.4.0/error.c:18:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] HTTPing-4.4.0/error.c:40:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] HTTPing-4.4.0/gen.c:51:25: style: Parameter 'in' can be declared as pointer to const [constParameterPointer] HTTPing-4.4.0/gen.c:92:28: style: Parameter 'source' can be declared as const array [constParameter] HTTPing-4.4.0/help.c:45:48: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro] HTTPing-4.4.0/http.c:65:4: error: Common realloc mistake: 'buffer' nulled but not freed upon failure [memleakOnRealloc] HTTPing-4.4.0/http.c:113:4: error: Common realloc mistake: 'buffer' nulled but not freed upon failure [memleakOnRealloc] HTTPing-4.4.0/http.c:27:9: warning: If memory allocation fails, then there is a possible null pointer dereference: buffer [nullPointerOutOfMemory] HTTPing-4.4.0/http.c:22:31: note: Assuming allocation function fails HTTPing-4.4.0/http.c:22:17: note: Assignment 'buffer=(char*)malloc(len+1)', assigned value is 0 HTTPing-4.4.0/http.c:27:9: note: Null pointer dereference HTTPing-4.4.0/http.c:20:8: style: Variable 'term' can be declared as pointer to const [constVariablePointer] HTTPing-4.4.0/io.c:37:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] HTTPing-4.4.0/io.c:72:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] HTTPing-4.4.0/io.c:132:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] HTTPing-4.4.0/io.c:173:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] HTTPing-4.4.0/io.c:184:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_SETFL [valueFlowBailoutIncompleteVar] HTTPing-4.4.0/main.c:333:45: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro] HTTPing-4.4.0/mssl.c:364:124: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro] HTTPing-4.4.0/res.c:27:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCK_STREAM [valueFlowBailoutIncompleteVar] HTTPing-4.4.0/res.c:48:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] HTTPing-4.4.0/res.c:70:73: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable h_errno [valueFlowBailoutIncompleteVar] HTTPing-4.4.0/res.c:66:35: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] HTTPing-4.4.0/res.c:57:32: style: Parameter 'ai_use' can be declared as pointer to const [constParameterPointer] HTTPing-4.4.0/socks5.c:76:7: style: Local variable 'io_len' shadows outer variable [shadowVariable] HTTPing-4.4.0/socks5.c:24:6: note: Shadowed declaration HTTPing-4.4.0/socks5.c:76:7: note: Shadow variable HTTPing-4.4.0/tcp.c:30:75: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] HTTPing-4.4.0/tcp.c:41:75: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] HTTPing-4.4.0/tcp.c:56:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] HTTPing-4.4.0/tcp.c:170:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MSG_FASTOPEN [valueFlowBailoutIncompleteVar] HTTPing-4.4.0/tcp.c:186:7: style: Local variable 'rc' shadows outer variable [shadowVariable] HTTPing-4.4.0/tcp.c:146:6: note: Shadowed declaration HTTPing-4.4.0/tcp.c:186:7: note: Shadow variable HTTPing-4.4.0/tcp.c:48:36: style: Parameter 'bind_to' can be declared as pointer to const [constParameterPointer] HTTPing-4.4.0/tcp.c:144:41: style: Parameter 'ai' can be declared as pointer to const [constParameterPointer] HTTPing-4.4.0/tcp.c:144:78: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] HTTPing-4.4.0/utils.c:128:3: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] HTTPing-4.4.0/utils.c:36:23: warning: If memory allocation fails, then there is a possible null pointer dereference: pc [nullPointerOutOfMemory] HTTPing-4.4.0/utils.c:31:21: note: Assuming allocation function fails HTTPing-4.4.0/utils.c:31:21: note: Assignment 'copy=strdup(in)', assigned value is 0 HTTPing-4.4.0/utils.c:31:33: note: Assignment 'pc=copy', assigned value is 0 HTTPing-4.4.0/utils.c:36:23: note: Null pointer dereference HTTPing-4.4.0/utils.c:88:21: style: Variable 'mul' can be declared as pointer to const [constVariablePointer] diff: DONE