2025-05-07 18:41 ftp://ftp.de.debian.org/debian/pool/main/r/ree/ree_1.4.1.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 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: ebc80c0 (2025-05-07 18:59:31 +0200) count: 25 25 elapsed-time: 0.1 0.1 head-timing-info: old-timing-info: head results: ree-1.4.1/ree.c:69:2: warning: %x in format string (no. 1) requires 'unsigned int' but the argument type is 'signed long'. [invalidPrintfArgType_uint] ree-1.4.1/ree.c:74:10: warning: %x in format string (no. 1) requires 'unsigned int' but the argument type is 'signed long'. [invalidPrintfArgType_uint] ree-1.4.1/ree.c:75:6: warning: %x in format string (no. 1) requires 'unsigned int' but the argument type is 'signed long'. [invalidPrintfArgType_uint] ree-1.4.1/ree.c:38:26: warning: If resource allocation fails, then there is a possible null pointer dereference: out [nullPointerOutOfResources] ree-1.4.1/ree.c:37:14: note: Assuming allocation function fails ree-1.4.1/ree.c:37:14: note: Assignment 'out=fopen(filename,"w")', assigned value is 0 ree-1.4.1/ree.c:38:26: note: Null pointer dereference ree-1.4.1/ree.c:39:12: warning: If resource allocation fails, then there is a possible null pointer dereference: out [nullPointerOutOfResources] ree-1.4.1/ree.c:37:14: note: Assuming allocation function fails ree-1.4.1/ree.c:37:14: note: Assignment 'out=fopen(filename,"w")', assigned value is 0 ree-1.4.1/ree.c:39:12: note: Null pointer dereference ree-1.4.1/ree.c:34:17: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] ree-1.4.1/ree.c:52:30: style: Unused variable: count [unusedVariable] ree-1.4.1/ree.c:53:11: style: Unused variable: b [unusedVariable] ree-1.4.1/ree.c:53:13: style: Unused variable: s [unusedVariable] ree-1.4.1/fontdump.c:103:6: style: Obsolescent function 'bcmp' called. It is recommended to use 'memcmp' instead. [prohibitedbcmpCalled] ree-1.4.1/fontdump.c:104:10: style: Obsolescent function 'bcmp' called. It is recommended to use 'memcmp' instead. [prohibitedbcmpCalled] ree-1.4.1/fontdump.c:117:6: style: Obsolescent function 'bcmp' called. It is recommended to use 'memcmp' instead. [prohibitedbcmpCalled] ree-1.4.1/fontdump.c:118:10: style: Obsolescent function 'bcmp' called. It is recommended to use 'memcmp' instead. [prohibitedbcmpCalled] ree-1.4.1/fontdump.c:132:6: style: Obsolescent function 'bcmp' called. It is recommended to use 'memcmp' instead. [prohibitedbcmpCalled] ree-1.4.1/fontdump.c:133:10: style: Obsolescent function 'bcmp' called. It is recommended to use 'memcmp' instead. [prohibitedbcmpCalled] ree-1.4.1/fontdump.c:95:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'signed long'. [invalidPrintfArgType_sint] ree-1.4.1/fontdump.c:47:33: warning: If resource allocation fails, then there is a possible null pointer dereference: out [nullPointerOutOfResources] ree-1.4.1/fontdump.c:46:14: note: Assuming allocation function fails ree-1.4.1/fontdump.c:46:14: note: Assignment 'out=fopen(filename,"w")', assigned value is 0 ree-1.4.1/fontdump.c:47:33: note: Null pointer dereference ree-1.4.1/fontdump.c:48:12: warning: If resource allocation fails, then there is a possible null pointer dereference: out [nullPointerOutOfResources] ree-1.4.1/fontdump.c:46:14: note: Assuming allocation function fails ree-1.4.1/fontdump.c:46:14: note: Assignment 'out=fopen(filename,"w")', assigned value is 0 ree-1.4.1/fontdump.c:48:12: note: Null pointer dereference ree-1.4.1/fontdump.c:43:17: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] ree-1.4.1/fontdump.c:54:9: style: Variable 'bittab' can be declared as const array [constVariable] ree-1.4.1/fontdump.c:77:26: style: Parameter 'argv' can be declared as const array [constParameter] ree-1.4.1/fontdump.c:79:30: style: Unused variable: count [unusedVariable] ree-1.4.1/fontdump.c:80:11: style: Unused variable: b [unusedVariable] ree-1.4.1/fontdump.c:80:13: style: Unused variable: s [unusedVariable] ree-1.4.1/fontdump.c:80:15: style: Unused variable: size [unusedVariable] diff: DONE