2025-09-17 09:09 ftp://ftp.de.debian.org/debian/pool/main/x/xmlto/xmlto_0.0.29.orig.tar.bz2 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.43+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: 3e169d6 (2025-09-15 13:38:15 +0200) count: 23 23 elapsed-time: 0.2 1.0 head-timing-info: old-timing-info: head results: xmlif/xmlif.l:108:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xmlif/xmlif.c:1486:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] xmlif/xmlif.c:1872:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] xmlif/xmlif.c:2200:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] xmlif/xmlif.c:2438:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xmlif/xmlif.l:261:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] xmlif/xmlif.l:66:5: warning: If memory allocation fails, then there is a possible null pointer dereference: newelt [nullPointerOutOfMemory] xmlif/xmlif.l:65:38: note: Assuming allocation function fails xmlif/xmlif.l:65:14: note: Assignment 'newelt=(struct stack_t*)malloc(sizeof(struct stack_t))', assigned value is 0 xmlif/xmlif.l:66:5: note: Null pointer dereference xmlif/xmlif.l:69:5: warning: If memory allocation fails, then there is a possible null pointer dereference: end [nullPointerOutOfMemory] xmlif/xmlif.l:65:38: note: Assuming allocation function fails xmlif/xmlif.l:65:14: note: Assignment 'newelt=(struct stack_t*)malloc(sizeof(struct stack_t))', assigned value is 0 xmlif/xmlif.l:67:11: note: Assignment 'end=newelt', assigned value is 0 xmlif/xmlif.l:69:5: note: Null pointer dereference xmlif/xmlif.l:70:5: warning: If memory allocation fails, then there is a possible null pointer dereference: end [nullPointerOutOfMemory] xmlif/xmlif.l:65:38: note: Assuming allocation function fails xmlif/xmlif.l:65:14: note: Assignment 'newelt=(struct stack_t*)malloc(sizeof(struct stack_t))', assigned value is 0 xmlif/xmlif.l:67:11: note: Assignment 'end=newelt', assigned value is 0 xmlif/xmlif.l:70:5: note: Null pointer dereference xmlif/xmlif.l:70:23: warning: If memory allocation fails, then there is a possible null pointer dereference: end [nullPointerOutOfMemory] xmlif/xmlif.l:65:38: note: Assuming allocation function fails xmlif/xmlif.l:65:14: note: Assignment 'newelt=(struct stack_t*)malloc(sizeof(struct stack_t))', assigned value is 0 xmlif/xmlif.l:67:11: note: Assignment 'end=newelt', assigned value is 0 xmlif/xmlif.l:70:23: note: Null pointer dereference xmlif/xmlif.c:2204:2: warning: Possible null pointer dereference: b [nullPointer] xmlif/xmlif.c:2097:18: note: Calling function 'yy_init_buffer', 1st argument '(yy_buffer_stack)?(yy_buffer_stack)[yy_buffer_stack_top]:NULL' value is 0 xmlif/xmlif.c:2204:2: note: Null pointer dereference xmlif/xmlif.c:2205:2: warning: Possible null pointer dereference: b [nullPointer] xmlif/xmlif.c:2097:18: note: Calling function 'yy_init_buffer', 1st argument '(yy_buffer_stack)?(yy_buffer_stack)[yy_buffer_stack_top]:NULL' value is 0 xmlif/xmlif.c:2205:2: note: Null pointer dereference xmlif/xmlif.l:274:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] xmlif/xmlif.c:1944:59: style:inconclusive: Function 'yy_try_NUL_trans' argument 1 names different: declaration 'current_state' definition 'yy_current_state'. [funcArgNamesDifferent] xmlif/xmlif.c:341:55: note: Function 'yy_try_NUL_trans' argument 1 names different: declaration 'current_state' definition 'yy_current_state'. xmlif/xmlif.c:1944:59: note: Function 'yy_try_NUL_trans' argument 1 names different: declaration 'current_state' definition 'yy_current_state'. xmlif/xmlif.c:1970:40: style:inconclusive: Function 'yyunput' argument 2 names different: declaration 'buf_ptr' definition 'yy_bp'. [funcArgNamesDifferent] xmlif/xmlif.c:1361:40: note: Function 'yyunput' argument 2 names different: declaration 'buf_ptr' definition 'yy_bp'. xmlif/xmlif.c:1970:40: note: Function 'yyunput' argument 2 names different: declaration 'buf_ptr' definition 'yy_bp'. xmlif/xmlif.c:2389:46: style:inconclusive: Function 'yy_scan_string' argument 1 names different: declaration 'yy_str' definition 'yystr'. [funcArgNamesDifferent] xmlif/xmlif.c:296:46: note: Function 'yy_scan_string' argument 1 names different: declaration 'yy_str' definition 'yystr'. xmlif/xmlif.c:2389:46: note: Function 'yy_scan_string' argument 1 names different: declaration 'yy_str' definition 'yystr'. xmlif/xmlif.c:2402:46: style:inconclusive: Function 'yy_scan_bytes' argument 1 names different: declaration 'bytes' definition 'yybytes'. [funcArgNamesDifferent] xmlif/xmlif.c:297:45: note: Function 'yy_scan_bytes' argument 1 names different: declaration 'bytes' definition 'yybytes'. xmlif/xmlif.c:2402:46: note: Function 'yy_scan_bytes' argument 1 names different: declaration 'bytes' definition 'yybytes'. xmlif/xmlif.c:2402:60: style:inconclusive: Function 'yy_scan_bytes' argument 2 names different: declaration 'len' definition '_yybytes_len'. [funcArgNamesDifferent] xmlif/xmlif.c:297:56: note: Function 'yy_scan_bytes' argument 2 names different: declaration 'len' definition '_yybytes_len'. xmlif/xmlif.c:2402:60: note: Function 'yy_scan_bytes' argument 2 names different: declaration 'len' definition '_yybytes_len'. xmlif/xmlif.c:2534:24: style:inconclusive: Function 'yyset_debug' argument 1 names different: declaration 'debug_flag' definition '_bdebug'. [funcArgNamesDifferent] xmlif/xmlif.c:1325:24: note: Function 'yyset_debug' argument 1 names different: declaration 'debug_flag' definition '_bdebug'. xmlif/xmlif.c:2534:24: note: Function 'yyset_debug' argument 1 names different: declaration 'debug_flag' definition '_bdebug'. xmlif/xmlif.c:1784:8: style: Variable 'source' can be declared as pointer to const [constVariablePointer] xmlif/xmlif.c:1985:9: style: Variable 'source' can be declared as pointer to const [constVariablePointer] xmlif/xmlif.l:88:35: style: Parameter 'attr' can be declared as pointer to const [constParameterPointer] xmlif/xmlif.l:153:27: style: Parameter 'attr' can be declared as pointer to const [constParameterPointer] diff: DONE