2026-05-05 10:48 ftp://ftp.de.debian.org/debian/pool/main/t/tqftpserv/tqftpserv_1.1.1.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --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: 28dfa41 (2026-05-05 12:37:18 +0200) count: 68 66 elapsed-time: 0.5 0.4 head-timing-info: old-timing-info: head results: tqftpserv-1.1.1/tqftpserv.c:90:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] tqftpserv-1.1.1/tqftpserv.c:296:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] tqftpserv-1.1.1/tqftpserv.c:382:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] tqftpserv-1.1.1/tqftpserv.c:458:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tqftpserv-1.1.1/tqftpserv.c:531:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tqftpserv-1.1.1/tqftpserv.c:622:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tqftpserv-1.1.1/tqftpserv.c:140:22: style: Condition '*tsize!=-1' is always true [knownConditionTrueFalse] tqftpserv-1.1.1/tqftpserv.c:88:4: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] tqftpserv-1.1.1/tqftpserv.c:126:7: portability: %zd in format string (no. 1) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] tqftpserv-1.1.1/tqftpserv.c:135:7: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] tqftpserv-1.1.1/tqftpserv.c:144:7: portability: %zd in format string (no. 1) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] tqftpserv-1.1.1/tqftpserv.c:153:7: portability: %zd in format string (no. 1) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] tqftpserv-1.1.1/tqftpserv.c:162:7: portability: %zd in format string (no. 1) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] tqftpserv-1.1.1/tqftpserv.c:280:2: portability: %ld in format string (no. 3) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] tqftpserv-1.1.1/tqftpserv.c:322:3: error: Memory leak: client [memleak] tqftpserv-1.1.1/tqftpserv.c:328:3: error: Memory leak: client [memleak] tqftpserv-1.1.1/tqftpserv.c:418:3: error: Memory leak: client [memleak] tqftpserv-1.1.1/tqftpserv.c:424:3: error: Memory leak: client [memleak] tqftpserv-1.1.1/tqftpserv.c:309:2: warning: If memory allocation fails, then there is a possible null pointer dereference: client [nullPointerOutOfMemory] tqftpserv-1.1.1/tqftpserv.c:308:17: note: Assuming allocation function fails tqftpserv-1.1.1/tqftpserv.c:308:17: note: Assignment 'client=calloc(1,sizeof(*client))', assigned value is 0 tqftpserv-1.1.1/tqftpserv.c:309:2: note: Null pointer dereference tqftpserv-1.1.1/tqftpserv.c:310:2: warning: If memory allocation fails, then there is a possible null pointer dereference: client [nullPointerOutOfMemory] tqftpserv-1.1.1/tqftpserv.c:308:17: note: Assuming allocation function fails tqftpserv-1.1.1/tqftpserv.c:308:17: note: Assignment 'client=calloc(1,sizeof(*client))', assigned value is 0 tqftpserv-1.1.1/tqftpserv.c:310:2: note: Null pointer dereference tqftpserv-1.1.1/tqftpserv.c:311:2: warning: If memory allocation fails, then there is a possible null pointer dereference: client [nullPointerOutOfMemory] tqftpserv-1.1.1/tqftpserv.c:308:17: note: Assuming allocation function fails tqftpserv-1.1.1/tqftpserv.c:308:17: note: Assignment 'client=calloc(1,sizeof(*client))', assigned value is 0 tqftpserv-1.1.1/tqftpserv.c:311:2: note: Null pointer dereference tqftpserv-1.1.1/tqftpserv.c:312:2: warning: If memory allocation fails, then there is a possible null pointer dereference: client [nullPointerOutOfMemory] tqftpserv-1.1.1/tqftpserv.c:308:17: note: Assuming allocation function fails tqftpserv-1.1.1/tqftpserv.c:308:17: note: Assignment 'client=calloc(1,sizeof(*client))', assigned value is 0 tqftpserv-1.1.1/tqftpserv.c:312:2: note: Null pointer dereference tqftpserv-1.1.1/tqftpserv.c:313:2: warning: If memory allocation fails, then there is a possible null pointer dereference: client [nullPointerOutOfMemory] tqftpserv-1.1.1/tqftpserv.c:308:17: note: Assuming allocation function fails tqftpserv-1.1.1/tqftpserv.c:308:17: note: Assignment 'client=calloc(1,sizeof(*client))', assigned value is 0 tqftpserv-1.1.1/tqftpserv.c:313:2: note: Null pointer dereference tqftpserv-1.1.1/tqftpserv.c:314:2: warning: If memory allocation fails, then there is a possible null pointer dereference: client [nullPointerOutOfMemory] tqftpserv-1.1.1/tqftpserv.c:308:17: note: Assuming allocation function fails tqftpserv-1.1.1/tqftpserv.c:308:17: note: Assignment 'client=calloc(1,sizeof(*client))', assigned value is 0 tqftpserv-1.1.1/tqftpserv.c:314:2: note: Null pointer dereference tqftpserv-1.1.1/tqftpserv.c:315:2: warning: If memory allocation fails, then there is a possible null pointer dereference: client [nullPointerOutOfMemory] tqftpserv-1.1.1/tqftpserv.c:308:17: note: Assuming allocation function fails tqftpserv-1.1.1/tqftpserv.c:308:17: note: Assignment 'client=calloc(1,sizeof(*client))', assigned value is 0 tqftpserv-1.1.1/tqftpserv.c:315:2: note: Null pointer dereference tqftpserv-1.1.1/tqftpserv.c:316:2: warning: If memory allocation fails, then there is a possible null pointer dereference: client [nullPointerOutOfMemory] tqftpserv-1.1.1/tqftpserv.c:308:17: note: Assuming allocation function fails tqftpserv-1.1.1/tqftpserv.c:308:17: note: Assignment 'client=calloc(1,sizeof(*client))', assigned value is 0 tqftpserv-1.1.1/tqftpserv.c:316:2: note: Null pointer dereference tqftpserv-1.1.1/tqftpserv.c:317:2: warning: If memory allocation fails, then there is a possible null pointer dereference: client [nullPointerOutOfMemory] tqftpserv-1.1.1/tqftpserv.c:308:17: note: Assuming allocation function fails tqftpserv-1.1.1/tqftpserv.c:308:17: note: Assignment 'client=calloc(1,sizeof(*client))', assigned value is 0 tqftpserv-1.1.1/tqftpserv.c:317:2: note: Null pointer dereference tqftpserv-1.1.1/tqftpserv.c:319:2: warning: If memory allocation fails, then there is a possible null pointer dereference: client [nullPointerOutOfMemory] tqftpserv-1.1.1/tqftpserv.c:308:17: note: Assuming allocation function fails tqftpserv-1.1.1/tqftpserv.c:308:17: note: Assignment 'client=calloc(1,sizeof(*client))', assigned value is 0 tqftpserv-1.1.1/tqftpserv.c:319:2: note: Null pointer dereference tqftpserv-1.1.1/tqftpserv.c:320:7: warning: If memory allocation fails, then there is a possible null pointer dereference: client [nullPointerOutOfMemory] tqftpserv-1.1.1/tqftpserv.c:308:17: note: Assuming allocation function fails tqftpserv-1.1.1/tqftpserv.c:308:17: note: Assignment 'client=calloc(1,sizeof(*client))', assigned value is 0 tqftpserv-1.1.1/tqftpserv.c:320:7: note: Null pointer dereference tqftpserv-1.1.1/tqftpserv.c:325:2: warning: If memory allocation fails, then there is a possible null pointer dereference: client [nullPointerOutOfMemory] tqftpserv-1.1.1/tqftpserv.c:308:17: note: Assuming allocation function fails tqftpserv-1.1.1/tqftpserv.c:308:17: note: Assignment 'client=calloc(1,sizeof(*client))', assigned value is 0 tqftpserv-1.1.1/tqftpserv.c:320:6: note: Assuming condition is false tqftpserv-1.1.1/tqftpserv.c:325:2: note: Null pointer dereference tqftpserv-1.1.1/tqftpserv.c:325:29: warning: If memory allocation fails, then there is a possible null pointer dereference: client [nullPointerOutOfMemory] tqftpserv-1.1.1/tqftpserv.c:308:17: note: Assuming allocation function fails tqftpserv-1.1.1/tqftpserv.c:308:17: note: Assignment 'client=calloc(1,sizeof(*client))', assigned value is 0 tqftpserv-1.1.1/tqftpserv.c:320:6: note: Assuming condition is false tqftpserv-1.1.1/tqftpserv.c:325:29: note: Null pointer dereference tqftpserv-1.1.1/tqftpserv.c:326:7: warning: If memory allocation fails, then there is a possible null pointer dereference: client [nullPointerOutOfMemory] tqftpserv-1.1.1/tqftpserv.c:308:17: note: Assuming allocation function fails tqftpserv-1.1.1/tqftpserv.c:308:17: note: Assignment 'client=calloc(1,sizeof(*client))', assigned value is 0 tqftpserv-1.1.1/tqftpserv.c:320:6: note: Assuming condition is false tqftpserv-1.1.1/tqftpserv.c:326:7: note: Null pointer dereference tqftpserv-1.1.1/tqftpserv.c:404:2: warning: If memory allocation fails, then there is a possible null pointer dereference: client [nullPointerOutOfMemory] tqftpserv-1.1.1/tqftpserv.c:403:17: note: Assuming allocation function fails tqftpserv-1.1.1/tqftpserv.c:403:17: note: Assignment 'client=calloc(1,sizeof(*client))', assigned value is 0 tqftpserv-1.1.1/tqftpserv.c:404:2: note: Null pointer dereference tqftpserv-1.1.1/tqftpserv.c:405:2: warning: If memory allocation fails, then there is a possible null pointer dereference: client [nullPointerOutOfMemory] tqftpserv-1.1.1/tqftpserv.c:403:17: note: Assuming allocation function fails tqftpserv-1.1.1/tqftpserv.c:403:17: note: Assignment 'client=calloc(1,sizeof(*client))', assigned value is 0 tqftpserv-1.1.1/tqftpserv.c:405:2: note: Null pointer dereference tqftpserv-1.1.1/tqftpserv.c:406:2: warning: If memory allocation fails, then there is a possible null pointer dereference: client [nullPointerOutOfMemory] tqftpserv-1.1.1/tqftpserv.c:403:17: note: Assuming allocation function fails tqftpserv-1.1.1/tqftpserv.c:403:17: note: Assignment 'client=calloc(1,sizeof(*client))', assigned value is 0 tqftpserv-1.1.1/tqftpserv.c:406:2: note: Null pointer dereference tqftpserv-1.1.1/tqftpserv.c:407:2: warning: If memory allocation fails, then there is a possible null pointer dereference: client [nullPointerOutOfMemory] tqftpserv-1.1.1/tqftpserv.c:403:17: note: Assuming allocation function fails tqftpserv-1.1.1/tqftpserv.c:403:17: note: Assignment 'client=calloc(1,sizeof(*client))', assigned value is 0 tqftpserv-1.1.1/tqftpserv.c:407:2: note: Null pointer dereference tqftpserv-1.1.1/tqftpserv.c:408:2: warning: If memory allocation fails, then there is a possible null pointer dereference: client [nullPointerOutOfMemory] tqftpserv-1.1.1/tqftpserv.c:403:17: note: Assuming allocation function fails tqftpserv-1.1.1/tqftpserv.c:403:17: note: Assignment 'client=calloc(1,sizeof(*client))', assigned value is 0 tqftpserv-1.1.1/tqftpserv.c:408:2: note: Null pointer dereference tqftpserv-1.1.1/tqftpserv.c:409:2: warning: If memory allocation fails, then there is a possible null pointer dereference: client [nullPointerOutOfMemory] tqftpserv-1.1.1/tqftpserv.c:403:17: note: Assuming allocation function fails tqftpserv-1.1.1/tqftpserv.c:403:17: note: Assignment 'client=calloc(1,sizeof(*client))', assigned value is 0 tqftpserv-1.1.1/tqftpserv.c:409:2: note: Null pointer dereference tqftpserv-1.1.1/tqftpserv.c:410:2: warning: If memory allocation fails, then there is a possible null pointer dereference: client [nullPointerOutOfMemory] tqftpserv-1.1.1/tqftpserv.c:403:17: note: Assuming allocation function fails tqftpserv-1.1.1/tqftpserv.c:403:17: note: Assignment 'client=calloc(1,sizeof(*client))', assigned value is 0 tqftpserv-1.1.1/tqftpserv.c:410:2: note: Null pointer dereference tqftpserv-1.1.1/tqftpserv.c:411:2: warning: If memory allocation fails, then there is a possible null pointer dereference: client [nullPointerOutOfMemory] tqftpserv-1.1.1/tqftpserv.c:403:17: note: Assuming allocation function fails tqftpserv-1.1.1/tqftpserv.c:403:17: note: Assignment 'client=calloc(1,sizeof(*client))', assigned value is 0 tqftpserv-1.1.1/tqftpserv.c:411:2: note: Null pointer dereference tqftpserv-1.1.1/tqftpserv.c:412:2: warning: If memory allocation fails, then there is a possible null pointer dereference: client [nullPointerOutOfMemory] tqftpserv-1.1.1/tqftpserv.c:403:17: note: Assuming allocation function fails tqftpserv-1.1.1/tqftpserv.c:403:17: note: Assignment 'client=calloc(1,sizeof(*client))', assigned value is 0 tqftpserv-1.1.1/tqftpserv.c:412:2: note: Null pointer dereference tqftpserv-1.1.1/tqftpserv.c:413:2: warning: If memory allocation fails, then there is a possible null pointer dereference: client [nullPointerOutOfMemory] tqftpserv-1.1.1/tqftpserv.c:403:17: note: Assuming allocation function fails tqftpserv-1.1.1/tqftpserv.c:403:17: note: Assignment 'client=calloc(1,sizeof(*client))', assigned value is 0 tqftpserv-1.1.1/tqftpserv.c:413:2: note: Null pointer dereference tqftpserv-1.1.1/tqftpserv.c:415:2: warning: If memory allocation fails, then there is a possible null pointer dereference: client [nullPointerOutOfMemory] tqftpserv-1.1.1/tqftpserv.c:403:17: note: Assuming allocation function fails tqftpserv-1.1.1/tqftpserv.c:403:17: note: Assignment 'client=calloc(1,sizeof(*client))', assigned value is 0 tqftpserv-1.1.1/tqftpserv.c:415:2: note: Null pointer dereference tqftpserv-1.1.1/tqftpserv.c:416:7: warning: If memory allocation fails, then there is a possible null pointer dereference: client [nullPointerOutOfMemory] tqftpserv-1.1.1/tqftpserv.c:403:17: note: Assuming allocation function fails tqftpserv-1.1.1/tqftpserv.c:403:17: note: Assignment 'client=calloc(1,sizeof(*client))', assigned value is 0 tqftpserv-1.1.1/tqftpserv.c:416:7: note: Null pointer dereference tqftpserv-1.1.1/tqftpserv.c:421:2: warning: If memory allocation fails, then there is a possible null pointer dereference: client [nullPointerOutOfMemory] tqftpserv-1.1.1/tqftpserv.c:403:17: note: Assuming allocation function fails tqftpserv-1.1.1/tqftpserv.c:403:17: note: Assignment 'client=calloc(1,sizeof(*client))', assigned value is 0 tqftpserv-1.1.1/tqftpserv.c:416:6: note: Assuming condition is false tqftpserv-1.1.1/tqftpserv.c:421:2: note: Null pointer dereference tqftpserv-1.1.1/tqftpserv.c:421:29: warning: If memory allocation fails, then there is a possible null pointer dereference: client [nullPointerOutOfMemory] tqftpserv-1.1.1/tqftpserv.c:403:17: note: Assuming allocation function fails tqftpserv-1.1.1/tqftpserv.c:403:17: note: Assignment 'client=calloc(1,sizeof(*client))', assigned value is 0 tqftpserv-1.1.1/tqftpserv.c:416:6: note: Assuming condition is false tqftpserv-1.1.1/tqftpserv.c:421:29: note: Null pointer dereference tqftpserv-1.1.1/tqftpserv.c:422:7: warning: If memory allocation fails, then there is a possible null pointer dereference: client [nullPointerOutOfMemory] tqftpserv-1.1.1/tqftpserv.c:403:17: note: Assuming allocation function fails tqftpserv-1.1.1/tqftpserv.c:403:17: note: Assignment 'client=calloc(1,sizeof(*client))', assigned value is 0 tqftpserv-1.1.1/tqftpserv.c:416:6: note: Assuming condition is false tqftpserv-1.1.1/tqftpserv.c:422:7: note: Null pointer dereference tqftpserv-1.1.1/tqftpserv.c:111:45: style: Parameter 'blocksize' can be declared as pointer to const [constParameterPointer] tqftpserv-1.1.1/tqftpserv.c:111:64: style: Parameter 'tsize' can be declared as pointer to const [constParameterPointer] tqftpserv-1.1.1/tqftpserv.c:112:14: style: Parameter 'wsize' can be declared as pointer to const [constParameterPointer] tqftpserv-1.1.1/tqftpserv.c:112:35: style: Parameter 'timeoutms' can be declared as pointer to const [constParameterPointer] tqftpserv-1.1.1/tqftpserv.c:112:54: style: Parameter 'rsize' can be declared as pointer to const [constParameterPointer] tqftpserv-1.1.1/tqftpserv.c:113:13: style: Parameter 'seek' can be declared as pointer to const [constParameterPointer] tqftpserv-1.1.1/tqftpserv.c:242:75: style: Parameter 'sq' can be declared as pointer to const [constParameterPointer] tqftpserv-1.1.1/tqftpserv.c:347:75: style: Parameter 'sq' can be declared as pointer to const [constParameterPointer] tqftpserv-1.1.1/list.h:30:49: style: Parameter 'list' can be declared as pointer to const [constParameterPointer] tqftpserv-1.1.1/tqftpserv.c:42:9: style: struct member 'tftp_client::block' is never used. [unusedStructMember] tqftpserv-1.1.1/tqftpserv.c:104:12: style: struct member 'Anonymous2::opcode' is never used. [unusedStructMember] tqftpserv-1.1.1/tqftpserv.c:105:12: style: struct member 'Anonymous2::block' is never used. [unusedStructMember] tqftpserv-1.1.1/tqftpserv.c:451:12: style: Variable 'n' is assigned a value that is never used. [unreadVariable] tqftpserv-1.1.1/zstd-decompress.h:16:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tqftpserv-1.1.1/translate.c:65:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] tqftpserv-1.1.1/translate.c:179:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tqftpserv-1.1.1/translate.c:213:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tqftpserv-1.1.1/translate.c:233:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] tqftpserv-1.1.1/translate.c:67:8: style: Variable 'firmware_path' can be declared as pointer to const [constVariablePointer] tqftpserv-1.1.1/translate.c:71:17: style: Variable 'de' can be declared as pointer to const [constVariablePointer] tqftpserv-1.1.1/zstd-decompress.c:33:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] diff: head tqftpserv-1.1.1/tqftpserv.c:242:75: style: Parameter 'sq' can be declared as pointer to const [constParameterPointer] head tqftpserv-1.1.1/tqftpserv.c:347:75: style: Parameter 'sq' can be declared as pointer to const [constParameterPointer] DONE