2026-05-03 21:25 ftp://ftp.de.debian.org/debian/pool/main/n/nrg2iso/nrg2iso_0.4.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 -j1 platform: Linux-6.8.0-111-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04.1) 14.2.0 cppcheck: head 2.20.0 head-info: e5c4a73 (2026-05-01 11:10:43 +0200) count: 11 14 elapsed-time: 0.2 0.1 head-timing-info: old-timing-info: head results: nrg2iso-0.4/nrg2iso.c:126:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] nrg2iso-0.4/nrg2iso.c:97:21: style: Condition 'argc==2' is always false [knownConditionTrueFalse] nrg2iso-0.4/nrg2iso.c:97:10: note: Assuming that condition 'argc!=3' is not redundant nrg2iso-0.4/nrg2iso.c:97:21: note: Condition 'argc==2' is always false nrg2iso-0.4/nrg2iso.c:138:7: portability: %lu in format string (no. 2) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] nrg2iso-0.4/nrg2iso.c:109:14: warning: If resource allocation fails, then there is a possible null pointer dereference: nrgFile [nullPointerOutOfResources] nrg2iso-0.4/nrg2iso.c:108:20: note: Assuming allocation function fails nrg2iso-0.4/nrg2iso.c:108:20: note: Assignment 'nrgFile=fopen(argv[1],"rb")', assigned value is 0 nrg2iso-0.4/nrg2iso.c:109:14: note: Null pointer dereference nrg2iso-0.4/nrg2iso.c:137:14: warning: If resource allocation fails, then there is a possible null pointer dereference: isoFile [nullPointerOutOfResources] nrg2iso-0.4/nrg2iso.c:111:20: note: Assuming allocation function fails nrg2iso-0.4/nrg2iso.c:111:20: note: Assignment 'isoFile=fopen(argv[2],"wb+")', assigned value is 0 nrg2iso-0.4/nrg2iso.c:113:62: note: Assuming condition is false nrg2iso-0.4/nrg2iso.c:137:14: note: Null pointer dereference nrg2iso-0.4/nrg2iso.c:42:20: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] nrg2iso-0.4/nrg2iso.c:84:11: style: Variable 'i' is assigned a value that is never used. [unreadVariable] nrg2iso-0.4/nrg2iso.c:84:15: style: Variable 'j' is assigned a value that is never used. [unreadVariable] nrg2iso-0.4/nrg2iso.c:85:18: style: Variable 'k' is assigned a value that is never used. [unreadVariable] nrg2iso-0.4/nrg2iso.c:86:17: style: Variable 'nrgSize' is assigned a value that is never used. [unreadVariable] nrg2iso-0.4/nrg2iso.c:87:15: style: Variable 'percent' is assigned a value that is never used. [unreadVariable] diff: 2.20.0 nrg2iso-0.4/nrg2iso.c:113:52: warning: If resource allocation fails, then there is a possible null pointer dereference: nrgFile [nullPointerOutOfResources] nrg2iso-0.4/nrg2iso.c:108:20: note: Assuming allocation function fails nrg2iso-0.4/nrg2iso.c:108:20: note: Assignment 'nrgFile=fopen(argv[1],"rb")', assigned value is 0 nrg2iso-0.4/nrg2iso.c:113:52: note: Null pointer dereference 2.20.0 nrg2iso-0.4/nrg2iso.c:114:20: warning: If resource allocation fails, then there is a possible null pointer dereference: isoFile [nullPointerOutOfResources] nrg2iso-0.4/nrg2iso.c:111:20: note: Assuming allocation function fails nrg2iso-0.4/nrg2iso.c:111:20: note: Assignment 'isoFile=fopen(argv[2],"wb+")', assigned value is 0 nrg2iso-0.4/nrg2iso.c:114:20: note: Null pointer dereference 2.20.0 nrg2iso-0.4/nrg2iso.c:136:14: warning: If resource allocation fails, then there is a possible null pointer dereference: nrgFile [nullPointerOutOfResources] nrg2iso-0.4/nrg2iso.c:108:20: note: Assuming allocation function fails nrg2iso-0.4/nrg2iso.c:108:20: note: Assignment 'nrgFile=fopen(argv[1],"rb")', assigned value is 0 nrg2iso-0.4/nrg2iso.c:136:14: note: Null pointer dereference head nrg2iso-0.4/nrg2iso.c:137:14: warning: If resource allocation fails, then there is a possible null pointer dereference: isoFile [nullPointerOutOfResources] nrg2iso-0.4/nrg2iso.c:111:20: note: Assuming allocation function fails nrg2iso-0.4/nrg2iso.c:111:20: note: Assignment 'isoFile=fopen(argv[2],"wb+")', assigned value is 0 nrg2iso-0.4/nrg2iso.c:113:62: note: Assuming condition is false nrg2iso-0.4/nrg2iso.c:137:14: note: Null pointer dereference 2.20.0 nrg2iso-0.4/nrg2iso.c:137:14: warning: If resource allocation fails, then there is a possible null pointer dereference: isoFile [nullPointerOutOfResources] nrg2iso-0.4/nrg2iso.c:111:20: note: Assuming allocation function fails nrg2iso-0.4/nrg2iso.c:111:20: note: Assignment 'isoFile=fopen(argv[2],"wb+")', assigned value is 0 nrg2iso-0.4/nrg2iso.c:137:14: note: Null pointer dereference DONE