2025-11-24 21:07 ftp://ftp.de.debian.org/debian/pool/main/x/xtrace/xtrace_1.4.0.orig.tar.xz 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 -j4 platform: Linux-6.12.57+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: cb76e52 (2025-11-22 14:47:37 +0100) count: 82 79 elapsed-time: 2.0 2.3 head-timing-info: old-timing-info: head results: xtrace-1.4.0/atoms.c:105:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xtrace-1.4.0/copyauth.c:46:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] xtrace-1.4.0/copyauth.c:92:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xtrace-1.4.0/copyauth.c:129:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] xtrace-1.4.0/atoms.c:72:11: style: Checking if unsigned expression 'atom' is less than zero. [unsignedLessThanZero] xtrace-1.4.0/atoms.c:70:40: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] xtrace-1.4.0/main.c:74:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xtrace-1.4.0/main.c:269:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WNOHANG [valueFlowBailoutIncompleteVar] xtrace-1.4.0/main.c:462:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xtrace-1.4.0/main.c:537:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] xtrace-1.4.0/stringlist.c:45:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xtrace-1.4.0/stringlist.c:95:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xtrace-1.4.0/stringlist.c:136:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xtrace-1.4.0/copyauth.c:163:4: style: Variable 'r' is reassigned a value before the old one has been used. [redundantAssignment] xtrace-1.4.0/copyauth.c:142:6: note: r is assigned xtrace-1.4.0/copyauth.c:163:4: note: r is overwritten xtrace-1.4.0/copyauth.c:163:4: style: Variable 'r' is reassigned a value before the old one has been used. [redundantAssignment] xtrace-1.4.0/copyauth.c:144:6: note: r is assigned xtrace-1.4.0/copyauth.c:163:4: note: r is overwritten xtrace-1.4.0/copyauth.c:201:4: style: Variable 'r' is reassigned a value before the old one has been used. [redundantAssignment] xtrace-1.4.0/copyauth.c:191:6: note: r is assigned xtrace-1.4.0/copyauth.c:201:4: note: r is overwritten xtrace-1.4.0/copyauth.c:201:4: style: Variable 'r' is reassigned a value before the old one has been used. [redundantAssignment] xtrace-1.4.0/copyauth.c:193:6: note: r is assigned xtrace-1.4.0/copyauth.c:201:4: note: r is overwritten xtrace-1.4.0/copyauth.c:62:8: style: Variable 'thisname' can be declared as pointer to const [constVariablePointer] xtrace-1.4.0/copyauth.c:63:8: style: Variable 'thisdata' can be declared as pointer to const [constVariablePointer] xtrace-1.4.0/copyauth.c:242:6: style: Variable 'r' is assigned a value that is never used. [unreadVariable] xtrace-1.4.0/copyauth.c:244:6: style: Variable 'r' is assigned a value that is never used. [unreadVariable] xtrace-1.4.0/x11client.c:41:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCK_STREAM [valueFlowBailoutIncompleteVar] xtrace-1.4.0/parse.c:746:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ft_INT32_32 [valueFlowBailoutIncompleteVar] xtrace-1.4.0/parse.c:883:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] xtrace-1.4.0/parse.c:923:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] xtrace-1.4.0/parse.c:953:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable event_xge [valueFlowBailoutIncompleteVar] xtrace-1.4.0/parse.c:1001:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ft_IF8 [valueFlowBailoutIncompleteVar] xtrace-1.4.0/parse.c:1487:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dt_EXTENSION [valueFlowBailoutIncompleteVar] xtrace-1.4.0/parse.c:1511:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dt_ATOM [valueFlowBailoutIncompleteVar] xtrace-1.4.0/parse.c:1525:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dt_CARD32 [valueFlowBailoutIncompleteVar] xtrace-1.4.0/parse.c:1581:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dt_ATOM [valueFlowBailoutIncompleteVar] xtrace-1.4.0/parse.c:1590:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dt_CARD32 [valueFlowBailoutIncompleteVar] xtrace-1.4.0/parse.c:1720:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dt_NONE [valueFlowBailoutIncompleteVar] xtrace-1.4.0/parse.c:1813:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable event_xge [valueFlowBailoutIncompleteVar] xtrace-1.4.0/parse.c:1954:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable c_amlost [valueFlowBailoutIncompleteVar] xtrace-1.4.0/parse.c:2009:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable s_amlost [valueFlowBailoutIncompleteVar] xtrace-1.4.0/x11common.c:98:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] xtrace-1.4.0/x11common.c:112:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNIX [valueFlowBailoutIncompleteVar] xtrace-1.4.0/translate.c:317:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xtrace-1.4.0/translate.c:350:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xtrace-1.4.0/translate.c:439:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xtrace-1.4.0/translate.c:487:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xtrace-1.4.0/translate.c:512:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable searchpath_entry [valueFlowBailoutIncompleteVar] xtrace-1.4.0/translate.c:548:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xtrace-1.4.0/translate.c:583:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] xtrace-1.4.0/translate.c:878:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable unfinished_parameter [valueFlowBailoutIncompleteVar] xtrace-1.4.0/translate.c:938:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] xtrace-1.4.0/translate.c:1489:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable event_xge [valueFlowBailoutIncompleteVar] xtrace-1.4.0/translate.c:1610:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable event_xge [valueFlowBailoutIncompleteVar] xtrace-1.4.0/translate.c:1844:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable request_data [valueFlowBailoutIncompleteVar] xtrace-1.4.0/translate.c:1998:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable unfinished_value [valueFlowBailoutIncompleteVar] xtrace-1.4.0/translate.c:2067:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable event_normal [valueFlowBailoutIncompleteVar] xtrace-1.4.0/translate.c:2148:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable event_normal [valueFlowBailoutIncompleteVar] xtrace-1.4.0/translate.c:2222:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable event_normal [valueFlowBailoutIncompleteVar] xtrace-1.4.0/translate.c:2402:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable parameter_option [valueFlowBailoutIncompleteVar] xtrace-1.4.0/translate.c:2453:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xtrace-1.4.0/translate.c:2495:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] xtrace-1.4.0/translate.c:2540:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xtrace-1.4.0/x11server.c:46:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCK_STREAM [valueFlowBailoutIncompleteVar] xtrace-1.4.0/x11server.c:109:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] xtrace-1.4.0/main.c:373:13: style: Condition 'minservercount' is always false [knownConditionTrueFalse] xtrace-1.4.0/main.c:369:9: note: min is assigned 'c->servercount' here. xtrace-1.4.0/main.c:373:13: note: Condition 'minservercount' is always false xtrace-1.4.0/main.c:442:13: style: Condition 'minclientcount' is always false [knownConditionTrueFalse] xtrace-1.4.0/main.c:438:9: note: min is assigned 'c->clientcount' here. xtrace-1.4.0/main.c:442:13: note: Condition 'minclientcount' is always false xtrace-1.4.0/main.c:152:75: style: Parameter 'fdq' can be declared as pointer to const [constParameterPointer] xtrace-1.4.0/x11server.c:43:19: style: Variable 'address' can be declared as pointer to const [constVariablePointer] xtrace-1.4.0/x11server.c:100:12: error: va_list 'ap' was opened but not closed by va_end(). [va_end_missing] xtrace-1.4.0/parse.c:2080:82: style:inconclusive: Function 'find_event' argument 2 names different: declaration 'buffe' definition 'buffer'. [funcArgNamesDifferent] xtrace-1.4.0/parse.c:944:82: note: Function 'find_event' argument 2 names different: declaration 'buffe' definition 'buffer'. xtrace-1.4.0/parse.c:2080:82: note: Function 'find_event' argument 2 names different: declaration 'buffe' definition 'buffer'. xtrace-1.4.0/parse.c:48:42: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] xtrace-1.4.0/parse.c:859:31: style: Parameter 'stack' can be declared as pointer to const [constParameterPointer] xtrace-1.4.0/parse.c:859:59: style: Parameter 'oldstack' can be declared as pointer to const [constParameterPointer] xtrace-1.4.0/parse.c:1587:113: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] xtrace-1.4.0/translate.c:2622:13: portability: Assigning an integer to a pointer is not portable. [AssignmentIntegerToAddress] xtrace-1.4.0/translate.c:1259:4: warning: If memory allocation fails, then there is a possible null pointer dereference: *last [nullPointerOutOfMemory] xtrace-1.4.0/translate.c:1252:17: note: Assuming allocation function fails xtrace-1.4.0/translate.c:1252:17: note: Assignment '*last=calloc(1,sizeof(struct unfinished_parameter))', assigned value is 0 xtrace-1.4.0/translate.c:1255:13: note: Assuming condition is false xtrace-1.4.0/translate.c:1259:4: note: Null pointer dereference xtrace-1.4.0/translate.c:2005:3: warning: If memory allocation fails, then there is a possible null pointer dereference: nv [nullPointerOutOfMemory] xtrace-1.4.0/translate.c:1998:14: note: Assuming allocation function fails xtrace-1.4.0/translate.c:1998:14: note: Assignment 'nv=malloc(sizeof(struct unfinished_value))', assigned value is 0 xtrace-1.4.0/translate.c:2001:13: note: Assuming condition is false xtrace-1.4.0/translate.c:2005:3: note: Null pointer dereference xtrace-1.4.0/translate.c:2006:3: warning: If memory allocation fails, then there is a possible null pointer dereference: nv [nullPointerOutOfMemory] xtrace-1.4.0/translate.c:1998:14: note: Assuming allocation function fails xtrace-1.4.0/translate.c:1998:14: note: Assignment 'nv=malloc(sizeof(struct unfinished_value))', assigned value is 0 xtrace-1.4.0/translate.c:2001:13: note: Assuming condition is false xtrace-1.4.0/translate.c:2006:3: note: Null pointer dereference xtrace-1.4.0/translate.c:2007:3: warning: If memory allocation fails, then there is a possible null pointer dereference: nv [nullPointerOutOfMemory] xtrace-1.4.0/translate.c:1998:14: note: Assuming allocation function fails xtrace-1.4.0/translate.c:1998:14: note: Assignment 'nv=malloc(sizeof(struct unfinished_value))', assigned value is 0 xtrace-1.4.0/translate.c:2001:13: note: Assuming condition is false xtrace-1.4.0/translate.c:2007:3: note: Null pointer dereference xtrace-1.4.0/translate.c:2008:3: warning: If memory allocation fails, then there is a possible null pointer dereference: nv [nullPointerOutOfMemory] xtrace-1.4.0/translate.c:1998:14: note: Assuming allocation function fails xtrace-1.4.0/translate.c:1998:14: note: Assignment 'nv=malloc(sizeof(struct unfinished_value))', assigned value is 0 xtrace-1.4.0/translate.c:2001:13: note: Assuming condition is false xtrace-1.4.0/translate.c:2008:3: note: Null pointer dereference xtrace-1.4.0/translate.c:263:19: style: Same expression on both sides of '!='. [duplicateExpression] xtrace-1.4.0/translate.c:2413:19: style: Same expression on both sides of '!='. [duplicateExpression] xtrace-1.4.0/translate.c:524:27: style: Variable 'r' can be declared as pointer to const [constVariablePointer] xtrace-1.4.0/translate.c:753:20: style: Variable 'var' can be declared as pointer to const [constVariablePointer] xtrace-1.4.0/translate.c:1856:20: style: Variable 'n' can be declared as pointer to const [constVariablePointer] xtrace-1.4.0/translate.c:1943:20: style: Variable 'n' can be declared as pointer to const [constVariablePointer] diff: head xtrace-1.4.0/copyauth.c:62:8: style: Variable 'thisname' can be declared as pointer to const [constVariablePointer] head xtrace-1.4.0/copyauth.c:63:8: style: Variable 'thisdata' can be declared as pointer to const [constVariablePointer] head xtrace-1.4.0/translate.c:524:27: style: Variable 'r' can be declared as pointer to const [constVariablePointer] DONE