2024-04-23 07:03 ftp://ftp.de.debian.org/debian/pool/main/x/xautomation/xautomation_1.09.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=motif --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning -D__GNUC__ --platform=unix64 -j1 platform: Linux-5.15.0-105-generic-x86_64-with-glibc2.35 python: 3.10.12 client-version: 1.3.56 compiler: g++ (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0 cppcheck: head 2.14.0 head-info: 642cdfd (2024-04-23 07:24:14 +0200) count: 15 15 elapsed-time: 0.4 0.3 head-timing-info: old-timing-info: head results: xautomation-1.09/image.c:163:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sz_XWDheader [valueFlowBailoutIncompleteVar] xautomation-1.09/image.c:258:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PNG_COLOR_TYPE_RGB_ALPHA [valueFlowBailoutIncompleteVar] xautomation-1.09/image.c:71:5: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] xautomation-1.09/image.c:134:9: error: Memory leak: buf [memleak] xautomation-1.09/image.c:214:5: error: Resource leak: f [resourceLeak] xautomation-1.09/image.c:239:9: error: Resource leak: in [resourceLeak] xautomation-1.09/image.c:351:26: style: Parameter 'img' can be declared as pointer to const [constParameterPointer] xautomation-1.09/image.c:266:23: style: Variable 'ok_to_process' is assigned a value that is never used. [unreadVariable] xautomation-1.09/pat2ppm.c:31:29: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro] xautomation-1.09/patextract.c:32:32: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro] xautomation-1.09/png2pat.c:31:29: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro] xautomation-1.09/rgb2pat.c:32:29: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro] xautomation-1.09/visgrep.c:61:33: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro] xautomation-1.09/xmousepos.c:40:39: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro] xautomation-1.09/xte.c:347:29: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro] diff: DONE