2025-08-29 09:25 ftp://ftp.de.debian.org/debian/pool/main/t/trurl/trurl_0.16.1.orig.tar.gz 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 -j4 platform: Linux-6.12.41+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.67 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.18.0 head-info: 327ef3c (2025-08-29 11:03:21 +0200) count: 2 47 elapsed-time: 0.0 4.8 head-timing-info: old-timing-info: head results: trurl-0.16.1/trurl.c:52:0: error: failed to evaluate #if condition, undefined function-like macro invocation: CURL_AT_LEAST_VERSION( ... ) [preprocessorErrorDirective] trurl-0.16.1/trurl.c:52:2: error: failed to evaluate #if condition, undefined function-like macro invocation: CURL_AT_LEAST_VERSION( ... ) [preprocessorErrorDirective] diff: 2.18.0 trurl-0.16.1/trurl.c:1032:8: style: Condition 'vlen' is always true [knownConditionTrueFalse] trurl-0.16.1/trurl.c:1027:18: note: Assuming that condition 'ptr>setline' is not redundant trurl-0.16.1/trurl.c:1028:23: note: Assignment 'vlen=ptr-setline', assigned value is greater than 0 trurl-0.16.1/trurl.c:1032:8: note: Condition 'vlen' is always true 2.18.0 trurl-0.16.1/trurl.c:1052:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CURLUE_OK [valueFlowBailoutIncompleteVar] 2.18.0 trurl-0.16.1/trurl.c:1091:11: style: Variable 'setline' can be declared as pointer to const [constVariablePointer] 2.18.0 trurl-0.16.1/trurl.c:1153:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CURLUPART_URL [valueFlowBailoutIncompleteVar] 2.18.0 trurl-0.16.1/trurl.c:1244:11: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] 2.18.0 trurl-0.16.1/trurl.c:1273:15: style: Variable 'q' can be declared as pointer to const [constVariablePointer] 2.18.0 trurl-0.16.1/trurl.c:1274:15: style: Variable 'sep' can be declared as pointer to const [constVariablePointer] 2.18.0 trurl-0.16.1/trurl.c:1325:32: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] 2.18.0 trurl-0.16.1/trurl.c:1423:16: style: These functions will be removed from the public libcurl API in the future. Do not use them in any new programs or projects. [prohibitedcurl_maprintfCalled] 2.18.0 trurl-0.16.1/trurl.c:1452:9: style: Variable 'sep' can be declared as pointer to const [constVariablePointer] 2.18.0 trurl-0.16.1/trurl.c:1540:53: style: Parameter 'o' can be declared as pointer to const [constParameterPointer] 2.18.0 trurl-0.16.1/trurl.c:1547:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CURLUPART_QUERY [valueFlowBailoutIncompleteVar] 2.18.0 trurl-0.16.1/trurl.c:1574:10: style: These functions will be removed from the public libcurl API in the future. Do not use them in any new programs or projects. [prohibitedcurl_maprintfCalled] 2.18.0 trurl-0.16.1/trurl.c:1580:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CURLUPART_QUERY [valueFlowBailoutIncompleteVar] 2.18.0 trurl-0.16.1/trurl.c:158:3: style: Obsolete function 'curl_msnprintf' called. It is recommended to use 'snprintf' instead. [prohibitedcurl_msnprintfCalled] 2.18.0 trurl-0.16.1/trurl.c:158:3: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] 2.18.0 trurl-0.16.1/trurl.c:1604:38: style: Parameter 'o' can be declared as pointer to const [constParameterPointer] 2.18.0 trurl-0.16.1/trurl.c:1636:13: style: Variable 'q' can be declared as pointer to const [constVariablePointer] 2.18.0 trurl-0.16.1/trurl.c:1674:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CURLUPART_URL [valueFlowBailoutIncompleteVar] 2.18.0 trurl-0.16.1/trurl.c:1710:15: style: These functions will be removed from the public libcurl API in the future. Do not use them in any new programs or projects. [prohibitedcurl_maprintfCalled] 2.18.0 trurl-0.16.1/trurl.c:1715:15: style: These functions will be removed from the public libcurl API in the future. Do not use them in any new programs or projects. [prohibitedcurl_maprintfCalled] 2.18.0 trurl-0.16.1/trurl.c:1865:13: style: Obsolete function 'curl_msnprintf' called. It is recommended to use 'snprintf' instead. [prohibitedcurl_msnprintfCalled] 2.18.0 trurl-0.16.1/trurl.c:1884:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CURLUPART_PATH [valueFlowBailoutIncompleteVar] 2.18.0 trurl-0.16.1/trurl.c:1889:15: style: Variable 'apath' can be declared as pointer to const [constVariablePointer] 2.18.0 trurl-0.16.1/trurl.c:1895:23: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: opath [nullPointerOutOfMemory] trurl-0.16.1/trurl.c:1898:30: note: Assuming allocation function fails trurl-0.16.1/trurl.c:1898:30: note: Assignment 'npath=curl_maprintf("%s%s%s",opath,opath[olen-1]=='/'?"":"/",apath)', assigned value is 0 trurl-0.16.1/trurl.c:1902:17: note: Assignment 'opath=npath', assigned value is 0 trurl-0.16.1/trurl.c:1895:23: note: Null pointer dereference 2.18.0 trurl-0.16.1/trurl.c:1898:17: style: These functions will be removed from the public libcurl API in the future. Do not use them in any new programs or projects. [prohibitedcurl_maprintfCalled] 2.18.0 trurl-0.16.1/trurl.c:1898:41: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: opath [nullPointerOutOfMemory] trurl-0.16.1/trurl.c:1898:30: note: Assuming allocation function fails trurl-0.16.1/trurl.c:1898:30: note: Assignment 'npath=curl_maprintf("%s%s%s",opath,opath[olen-1]=='/'?"":"/",apath)', assigned value is 0 trurl-0.16.1/trurl.c:1902:17: note: Assignment 'opath=npath', assigned value is 0 trurl-0.16.1/trurl.c:1898:41: note: Null pointer dereference 2.18.0 trurl-0.16.1/trurl.c:1899:31: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: opath [nullPointerOutOfMemory] trurl-0.16.1/trurl.c:1898:30: note: Assuming allocation function fails trurl-0.16.1/trurl.c:1898:30: note: Assignment 'npath=curl_maprintf("%s%s%s",opath,opath[olen-1]=='/'?"":"/",apath)', assigned value is 0 trurl-0.16.1/trurl.c:1902:17: note: Assignment 'opath=npath', assigned value is 0 trurl-0.16.1/trurl.c:1899:31: note: Null pointer dereference 2.18.0 trurl-0.16.1/trurl.c:2026:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] 2.18.0 trurl-0.16.1/trurl.c:211:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 trurl-0.16.1/trurl.c:260:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] 2.18.0 trurl-0.16.1/trurl.c:271:27: style: Variable 'data' can be declared as pointer to const [constVariablePointer] 2.18.0 trurl-0.16.1/trurl.c:271:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CURLVERSION_NOW [valueFlowBailoutIncompleteVar] 2.18.0 trurl-0.16.1/trurl.c:364:40: style: Parameter 'o' can be declared as pointer to const [constParameterPointer] 2.18.0 trurl-0.16.1/trurl.c:369:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 trurl-0.16.1/trurl.c:431:21: error: va_list 'ap' used before va_start() was called. [va_list_usedBeforeStarted] 2.18.0 trurl-0.16.1/trurl.c:432:5: error: va_list 'ap' used before va_start() was called. [va_list_usedBeforeStarted] 2.18.0 trurl-0.16.1/trurl.c:467:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] 2.18.0 trurl-0.16.1/trurl.c:486:9: style: Variable 'p' can be declared as pointer to const [constVariablePointer] 2.18.0 trurl-0.16.1/trurl.c:492:12: style: These functions will be removed from the public libcurl API in the future. Do not use them in any new programs or projects. [prohibitedcurl_maprintfCalled] 2.18.0 trurl-0.16.1/trurl.c:492:35: warning: If memory allocation fails, then there is a possible null pointer dereference: f1 [nullPointerOutOfMemory] trurl-0.16.1/trurl.c:490:32: note: Assuming allocation function fails trurl-0.16.1/trurl.c:490:32: note: Assignment 'f1=curl_easy_escape(NULL,query,(int)(p-query))', assigned value is 0 trurl-0.16.1/trurl.c:492:35: note: Null pointer dereference 2.18.0 trurl-0.16.1/trurl.c:492:39: warning: If memory allocation fails, then there is a possible null pointer dereference: f2 [nullPointerOutOfMemory] trurl-0.16.1/trurl.c:491:32: note: Assuming allocation function fails trurl-0.16.1/trurl.c:491:32: note: Assignment 'f2=curl_easy_escape(NULL,p+1,0)', assigned value is 0 trurl-0.16.1/trurl.c:492:39: note: Null pointer dereference head trurl-0.16.1/trurl.c:52:0: error: failed to evaluate #if condition, undefined function-like macro invocation: CURL_AT_LEAST_VERSION( ... ) [preprocessorErrorDirective] head trurl-0.16.1/trurl.c:52:2: error: failed to evaluate #if condition, undefined function-like macro invocation: CURL_AT_LEAST_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 trurl-0.16.1/trurl.c:734:18: style: Variable 'qp' can be declared as pointer to const [constVariablePointer] 2.18.0 trurl-0.16.1/trurl.c:768:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CURLUPART_URL [valueFlowBailoutIncompleteVar] 2.18.0 trurl-0.16.1/trurl.c:829:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CURLUPART_URL [valueFlowBailoutIncompleteVar] 2.18.0 trurl-0.16.1/trurl.c:841:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] 2.18.0 trurl-0.16.1/trurl.c:957:25: warning: If memory allocation fails, then there is a possible null pointer dereference: dec [nullPointerOutOfMemory] trurl-0.16.1/trurl.c:955:45: note: Assuming allocation function fails trurl-0.16.1/trurl.c:955:45: note: Assignment 'dec=curl_easy_unescape(NULL,nurl,0,&olen)', assigned value is 0 trurl-0.16.1/trurl.c:957:25: note: Null pointer dereference DONE