2026-05-01 14:29 ftp://ftp.de.debian.org/debian/pool/main/d/daa2iso/daa2iso_0.1.7e.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 -j6 platform: Linux-7.0.3+deb14-amd64-x86_64-with-glibc2.42 python: 3.13.12 client-version: 1.4.0 compiler: g++ (Debian 15.2.0-17) 15.2.0 cppcheck: head 2.20.0 head-info: e5c4a734 (2026-05-01 11:10:43 +0200) count: 27 28 elapsed-time: 0.7 0.6 head-timing-info: old-timing-info: head results: daa2iso-0.1.7e/src/daa2iso.c:191:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] daa2iso-0.1.7e/src/daa2iso.c:195:8: style: Condition '*(char*)&endian' is always true [knownConditionTrueFalse] daa2iso-0.1.7e/src/daa2iso.c:194:14: note: Assignment 'endian=1', assigned value is 1 daa2iso-0.1.7e/src/daa2iso.c:195:8: note: Condition '*(char*)&endian' is always true daa2iso-0.1.7e/src/daa2iso.c:421:17: portability: %d in format string (no. 1) requires 'int' but the argument type is 'u32 {aka unsigned int}'. [invalidPrintfArgType_sint] daa2iso-0.1.7e/src/daa2iso.c:478:9: portability: %d in format string (no. 1) requires 'int' but the argument type is 'u32 {aka unsigned int}'. [invalidPrintfArgType_sint] daa2iso-0.1.7e/src/daa2iso.c:453:16: warning: If memory allocation fails, then there is a possible null pointer dereference: multi_filename [nullPointerOutOfMemory] daa2iso-0.1.7e/src/daa2iso.c:452:32: note: Assuming allocation function fails daa2iso-0.1.7e/src/daa2iso.c:452:32: note: Assignment 'multi_filename=malloc(len+16)', assigned value is 0 daa2iso-0.1.7e/src/daa2iso.c:453:16: note: Null pointer dereference daa2iso-0.1.7e/src/daa2iso.c:454:9: warning: If memory allocation fails, then there is a possible null pointer dereference: multi_filename [nullPointerOutOfMemory] daa2iso-0.1.7e/src/daa2iso.c:452:32: note: Assuming allocation function fails daa2iso-0.1.7e/src/daa2iso.c:452:32: note: Assignment 'multi_filename=malloc(len+16)', assigned value is 0 daa2iso-0.1.7e/src/daa2iso.c:454:9: note: Null pointer dereference daa2iso-0.1.7e/src/daa2iso.c:130:28: style: Parameter 'p' can be declared as pointer to const. However it seems that 'SzAlloc' is a callback function, if 'p' is declared with const you might also need to cast function pointer(s). [constParameterCallback] daa2iso-0.1.7e/src/daa2iso.c:132:29: note: You might need to cast the function pointer here daa2iso-0.1.7e/src/daa2iso.c:130:28: note: Parameter 'p' can be declared as pointer to const daa2iso-0.1.7e/src/daa2iso.c:182:14: style: Variable 'p' can be declared as pointer to const [constVariablePointer] daa2iso-0.1.7e/src/daa2iso.c:549:66: style: Parameter 'in' can be declared as pointer to const [constParameterPointer] daa2iso-0.1.7e/src/daa2iso.c:727:29: style: Parameter 'ext' can be declared as pointer to const [constParameterPointer] daa2iso-0.1.7e/src/daa2iso.c:748:14: style: Variable 'fmt' can be declared as pointer to const [constVariablePointer] daa2iso-0.1.7e/src/daa2iso.c:803:27: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] daa2iso-0.1.7e/src/daa2iso.c:811:32: style: Parameter 'in' can be declared as pointer to const [constParameterPointer] daa2iso-0.1.7e/src/daa2iso.c:829:15: style: Parameter 'in' can be declared as pointer to const [constParameterPointer] daa2iso-0.1.7e/src/daa2iso.c:966:14: style: Variable 'limit' can be declared as pointer to const [constVariablePointer] daa2iso-0.1.7e/src/daa_crypt.h:27:24: style: Parameter 'pass' can be declared as pointer to const [constParameterPointer] daa2iso-0.1.7e/src/daa_crypt.h:115:35: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] daa2iso-0.1.7e/src/daa_crypt.h:119:14: style: Variable 'tab' can be declared as pointer to const [constVariablePointer] daa2iso-0.1.7e/src/daa2iso.c:798:19: portability: 'data' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] daa2iso-0.1.7e/src/daa2iso.c:559:29: warning: Shifting signed 32-bit value by 31 bits is undefined behaviour. See condition at line 559. [shiftTooManyBitsSigned] daa2iso-0.1.7e/src/daa2iso.c:559:13: note: Assuming that condition 'bits<32' is not redundant daa2iso-0.1.7e/src/daa2iso.c:559:29: note: Shift daa2iso-0.1.7e/src/LzmaDec.c:900:29: style:inconclusive: Function 'LzmaDec_Free' argument 1 names different: declaration 'state' definition 'p'. [funcArgNamesDifferent] daa2iso-0.1.7e/src/LzmaDec.h:138:29: note: Function 'LzmaDec_Free' argument 1 names different: declaration 'state' definition 'p'. daa2iso-0.1.7e/src/LzmaDec.c:900:29: note: Function 'LzmaDec_Free' argument 1 names different: declaration 'state' definition 'p'. daa2iso-0.1.7e/src/LzmaDec.c:955:33: style:inconclusive: Function 'LzmaDec_Allocate' argument 1 names different: declaration 'state' definition 'p'. [funcArgNamesDifferent] daa2iso-0.1.7e/src/LzmaDec.h:137:33: note: Function 'LzmaDec_Allocate' argument 1 names different: declaration 'state' definition 'p'. daa2iso-0.1.7e/src/LzmaDec.c:955:33: note: Function 'LzmaDec_Allocate' argument 1 names different: declaration 'state' definition 'p'. daa2iso-0.1.7e/src/LzmaDec.c:955:48: style:inconclusive: Function 'LzmaDec_Allocate' argument 2 names different: declaration 'prop' definition 'props'. [funcArgNamesDifferent] daa2iso-0.1.7e/src/LzmaDec.h:137:52: note: Function 'LzmaDec_Allocate' argument 2 names different: declaration 'prop' definition 'props'. daa2iso-0.1.7e/src/LzmaDec.c:955:48: note: Function 'LzmaDec_Allocate' argument 2 names different: declaration 'prop' definition 'props'. daa2iso-0.1.7e/src/LzmaDec.c:269:18: style: Local variable 'limit' shadows outer argument [shadowArgument] daa2iso-0.1.7e/src/LzmaDec.c:137:63: note: Shadowed declaration daa2iso-0.1.7e/src/LzmaDec.c:269:18: note: Shadow variable daa2iso-0.1.7e/src/LzmaDec.c:537:22: style: Variable 'probLit' can be declared as pointer to const [constVariablePointer] daa2iso-0.1.7e/src/LzmaDec.c:607:20: style: Variable 'probLen' can be declared as pointer to const [constVariablePointer] daa2iso-0.1.7e/src/LzmaDec.c:359:15: style: Variable 'i' is assigned a value that is never used. [unreadVariable] diff: 2.20.0 daa2iso-0.1.7e/src/daa2iso.c:790:32: warning: Either the condition '!fd' is redundant or there is possible null pointer dereference: fd. [nullPointerRedundantCheck] daa2iso-0.1.7e/src/daa2iso.c:762:8: note: Assuming that condition '!fd' is not redundant daa2iso-0.1.7e/src/daa2iso.c:764:10: note: Calling function 'myfr', 1st argument 'fd' value is 0 daa2iso-0.1.7e/src/daa2iso.c:790:32: note: Null pointer dereference DONE