2025-11-22 14:15 ftp://ftp.de.debian.org/debian/pool/main/libx/libxml-bare-perl/libxml-bare-perl_0.53.orig.tar.gz 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: 28 28 elapsed-time: 0.1 0.1 head-timing-info: old-timing-info: head results: XML-Bare-0.53/bench/src/ezxml_main.c:14:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] XML-Bare-0.53/bench/src/xmlio_testread.cpp:37:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable END [valueFlowBailoutIncompleteVar] XML-Bare-0.53/bench/src/barexml.c:12:10: warning: If resource allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfResources] XML-Bare-0.53/bench/src/barexml.c:11:15: note: Assuming allocation function fails XML-Bare-0.53/bench/src/barexml.c:11:15: note: Assignment 'file=fopen(argv[1],"r")', assigned value is 0 XML-Bare-0.53/bench/src/barexml.c:12:10: note: Null pointer dereference XML-Bare-0.53/bench/src/barexml.c:13:10: warning: If resource allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfResources] XML-Bare-0.53/bench/src/barexml.c:11:15: note: Assuming allocation function fails XML-Bare-0.53/bench/src/barexml.c:11:15: note: Assignment 'file=fopen(argv[1],"r")', assigned value is 0 XML-Bare-0.53/bench/src/barexml.c:13:10: note: Null pointer dereference XML-Bare-0.53/bench/src/barexml.c:14:16: warning: If resource allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfResources] XML-Bare-0.53/bench/src/barexml.c:11:15: note: Assuming allocation function fails XML-Bare-0.53/bench/src/barexml.c:11:15: note: Assignment 'file=fopen(argv[1],"r")', assigned value is 0 XML-Bare-0.53/bench/src/barexml.c:14:16: note: Null pointer dereference XML-Bare-0.53/bench/src/barexml.c:16:10: warning: If memory allocation fails, then there is a possible null pointer dereference: text [nullPointerOutOfMemory] XML-Bare-0.53/bench/src/barexml.c:15:25: note: Assuming allocation function fails XML-Bare-0.53/bench/src/barexml.c:15:10: note: Assignment 'text=(char*)malloc(pos)', assigned value is 0 XML-Bare-0.53/bench/src/barexml.c:16:10: note: Null pointer dereference XML-Bare-0.53/bench/src/barexml.c:16:24: warning: If resource allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfResources] XML-Bare-0.53/bench/src/barexml.c:11:15: note: Assuming allocation function fails XML-Bare-0.53/bench/src/barexml.c:11:15: note: Assignment 'file=fopen(argv[1],"r")', assigned value is 0 XML-Bare-0.53/bench/src/barexml.c:16:24: note: Null pointer dereference XML-Bare-0.53/bench/src/barexml.c:17:11: warning: If resource allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfResources] XML-Bare-0.53/bench/src/barexml.c:11:15: note: Assuming allocation function fails XML-Bare-0.53/bench/src/barexml.c:11:15: note: Assignment 'file=fopen(argv[1],"r")', assigned value is 0 XML-Bare-0.53/bench/src/barexml.c:17:11: note: Null pointer dereference XML-Bare-0.53/bench/src/barexml.c:4:27: style: Parameter 'argv' can be declared as const array [constParameter] XML-Bare-0.53/bench/src/barexml.c:6:17: style: Variable 'root' can be declared as pointer to const [constVariablePointer] XML-Bare-0.53/bench/src/barexml.c:19:8: style: Variable 'root' is assigned a value that is never used. [unreadVariable] XML-Bare-0.53/bench/src/xmlio_testread.cpp:24:21: style: Variable 'obj' is assigned a value that is never used. [unreadVariable] XML-Bare-0.53/bench/src/xmlio_testread.cpp:24:17: style: Variable 'obj' is assigned a value that is never used. [unreadVariable] XML-Bare-0.53/parser.c:29:3: warning: If memory allocation fails, then there is a possible null pointer dereference: self [nullPointerOutOfMemory] XML-Bare-0.53/parser.c:27:47: note: Assuming allocation function fails XML-Bare-0.53/parser.c:27:24: note: Assignment 'self=(struct nodec*)malloc(size)', assigned value is 0 XML-Bare-0.53/parser.c:29:3: note: Null pointer dereference XML-Bare-0.53/parser.c:30:3: warning: If memory allocation fails, then there is a possible null pointer dereference: self [nullPointerOutOfMemory] XML-Bare-0.53/parser.c:27:47: note: Assuming allocation function fails XML-Bare-0.53/parser.c:27:24: note: Assignment 'self=(struct nodec*)malloc(size)', assigned value is 0 XML-Bare-0.53/parser.c:30:3: note: Null pointer dereference XML-Bare-0.53/parser.c:66:3: warning: If memory allocation fails, then there is a possible null pointer dereference: self [nullPointerOutOfMemory] XML-Bare-0.53/parser.c:64:45: note: Assuming allocation function fails XML-Bare-0.53/parser.c:64:23: note: Assignment 'self=(struct attc*)malloc(size)', assigned value is 0 XML-Bare-0.53/parser.c:66:3: note: Null pointer dereference XML-Bare-0.53/parser.c:811:5: style: Label 'u_att_name1' is not used. [unusedLabel] XML-Bare-0.53/parser.c:97:48: style:inconclusive: Function 'parserc_parse' argument 2 names different: declaration 'newbuf' definition 'xmlin'. [funcArgNamesDifferent] XML-Bare-0.53/parser.h:66:48: note: Function 'parserc_parse' argument 2 names different: declaration 'newbuf' definition 'xmlin'. XML-Bare-0.53/parser.c:97:48: note: Function 'parserc_parse' argument 2 names different: declaration 'newbuf' definition 'xmlin'. XML-Bare-0.53/parser.c:671:57: style:inconclusive: Function 'parserc_parse_unsafely' argument 2 names different: declaration 'newbuf' definition 'xmlin'. [funcArgNamesDifferent] XML-Bare-0.53/parser.h:67:57: note: Function 'parserc_parse_unsafely' argument 2 names different: declaration 'newbuf' definition 'xmlin'. XML-Bare-0.53/parser.c:671:57: note: Function 'parserc_parse_unsafely' argument 2 names different: declaration 'newbuf' definition 'xmlin'. XML-Bare-0.53/parser.c:15:21: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] XML-Bare-0.53/parser.c:15:29: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] XML-Bare-0.53/parser.c:673:19: style: Variable 'root' can be declared as pointer to const [constVariablePointer] XML-Bare-0.53/parser.c:684:19: style: Variable 'temp' can be declared as pointer to const [constVariablePointer] XML-Bare-0.53/parser.c:996:8: style: struct member 'utfchar::high' is never used. [unusedStructMember] XML-Bare-0.53/parser.c:997:8: style: struct member 'utfchar::low' is never used. [unusedStructMember] XML-Bare-0.53/parser.c:113:12: style: Unused variable: dent [unusedVariable] XML-Bare-0.53/parser.c:686:12: style: Variable 'res' is assigned a value that is never used. [unreadVariable] XML-Bare-0.53/parser.c:687:12: style: Unused variable: dent [unusedVariable] diff: DONE