2026-05-28 04:24 ftp://ftp.de.debian.org/debian/pool/main/n/nodau/nodau_0.3.14.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=openssl --library=sqlite3 --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 -j8 platform: Linux-6.17.0-29-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.4.0 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0 cppcheck: head 2.20.0 head-info: 6e46c6b (2026-05-27 18:39:55 +0200) count: 79 79 elapsed-time: 0.0 0.1 head-timing-info: old-timing-info: head results: nodau-0.3.14/src/lib.c:64:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] nodau-0.3.14/src/lib.c:95:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRWXU [valueFlowBailoutIncompleteVar] nodau-0.3.14/src/nodau.c:82:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] nodau-0.3.14/src/nodau.c:112:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] nodau-0.3.14/src/config.c:121:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] nodau-0.3.14/src/edit.c:52:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_BOLD [valueFlowBailoutIncompleteVar] nodau-0.3.14/src/edit.c:119:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KEY_BACKSPACE [valueFlowBailoutIncompleteVar] nodau-0.3.14/src/edit.c:177:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] nodau-0.3.14/src/crypto.c:48:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EVP_MD_CTX [valueFlowBailoutIncompleteVar] nodau-0.3.14/src/crypto.c:64:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EVP_MAX_MD_SIZE [valueFlowBailoutIncompleteVar] nodau-0.3.14/src/crypto.c:96:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] nodau-0.3.14/src/crypto.c:133:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BIO_FLAGS_BASE64_NO_NL [valueFlowBailoutIncompleteVar] nodau-0.3.14/src/crypto.c:160:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BIO_FLAGS_BASE64_NO_NL [valueFlowBailoutIncompleteVar] nodau-0.3.14/src/crypto.c:200:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DES_ENCRYPT [valueFlowBailoutIncompleteVar] nodau-0.3.14/src/crypto.c:248:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DES_DECRYPT [valueFlowBailoutIncompleteVar] nodau-0.3.14/src/lib.c:65:4: error: Memory leak: dmfn [memleak] nodau-0.3.14/src/lib.c:40:8: style: Variable 'home' can be declared as pointer to const [constVariablePointer] nodau-0.3.14/src/lib.c:92:22: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] nodau-0.3.14/src/lib.c:96:19: style: Variable 'r' can be declared as pointer to const [constVariablePointer] nodau-0.3.14/src/db.c:76:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] nodau-0.3.14/src/db.c:91:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] nodau-0.3.14/src/db.c:207:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COL_NAME [valueFlowBailoutIncompleteVar] nodau-0.3.14/src/db.c:243:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sql_result [valueFlowBailoutIncompleteVar] nodau-0.3.14/src/db.c:286:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable crypt_key [valueFlowBailoutIncompleteVar] nodau-0.3.14/src/db.c:371:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COL_NAME [valueFlowBailoutIncompleteVar] nodau-0.3.14/src/db.c:405:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COL_DATE [valueFlowBailoutIncompleteVar] nodau-0.3.14/src/db.c:446:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COL_DATE [valueFlowBailoutIncompleteVar] nodau-0.3.14/src/db.c:487:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COL_DATE [valueFlowBailoutIncompleteVar] nodau-0.3.14/src/db.c:636:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COL_NAME [valueFlowBailoutIncompleteVar] nodau-0.3.14/src/db.c:680:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COL_TEXT [valueFlowBailoutIncompleteVar] nodau-0.3.14/src/crypto.c:182:6: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] nodau-0.3.14/src/crypto.c:185:6: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] nodau-0.3.14/src/crypto.c:235:6: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] nodau-0.3.14/src/crypto.c:141:9: warning: If memory allocation fails, then there is a possible null pointer dereference: buff [nullPointerOutOfMemory] nodau-0.3.14/src/crypto.c:140:15: note: Assuming allocation function fails nodau-0.3.14/src/crypto.c:140:15: note: Assignment 'buff=malloc(bptr->length+1)', assigned value is 0 nodau-0.3.14/src/crypto.c:141:9: note: Null pointer dereference nodau-0.3.14/src/crypto.c:142:2: warning: If memory allocation fails, then there is a possible null pointer dereference: buff [nullPointerOutOfMemory] nodau-0.3.14/src/crypto.c:140:15: note: Assuming allocation function fails nodau-0.3.14/src/crypto.c:140:15: note: Assignment 'buff=malloc(bptr->length+1)', assigned value is 0 nodau-0.3.14/src/crypto.c:142:2: note: Null pointer dereference nodau-0.3.14/src/crypto.c:157:9: warning: If memory allocation fails, then there is a possible null pointer dereference: buff [nullPointerOutOfMemory] nodau-0.3.14/src/crypto.c:156:15: note: Assuming allocation function fails nodau-0.3.14/src/crypto.c:156:15: note: Assignment 'buff=malloc(l)', assigned value is 0 nodau-0.3.14/src/crypto.c:157:9: note: Null pointer dereference nodau-0.3.14/src/crypto.c:114:8: style: Checking if unsigned expression 'i' is less than zero. [unsignedLessThanZero] nodau-0.3.14/src/crypto.c:172:38: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] nodau-0.3.14/src/crypto.c:176:8: style: Variable 'm' can be declared as pointer to const [constVariablePointer] nodau-0.3.14/src/crypto.c:214:38: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] nodau-0.3.14/src/crypto.c:219:8: style: Variable 'c' can be declared as pointer to const [constVariablePointer] nodau-0.3.14/src/config.c:92:6: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] nodau-0.3.14/src/config.c:119:7: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] nodau-0.3.14/src/config.c:55:2: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] nodau-0.3.14/src/config.c:54:12: note: Assuming allocation function fails nodau-0.3.14/src/config.c:54:12: note: Assignment 'c=malloc(sizeof(struct config_t))', assigned value is 0 nodau-0.3.14/src/config.c:55:2: note: Null pointer dereference nodau-0.3.14/src/config.c:56:2: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] nodau-0.3.14/src/config.c:54:12: note: Assuming allocation function fails nodau-0.3.14/src/config.c:54:12: note: Assignment 'c=malloc(sizeof(struct config_t))', assigned value is 0 nodau-0.3.14/src/config.c:56:2: note: Null pointer dereference nodau-0.3.14/src/config.c:57:2: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] nodau-0.3.14/src/config.c:54:12: note: Assuming allocation function fails nodau-0.3.14/src/config.c:54:12: note: Assignment 'c=malloc(sizeof(struct config_t))', assigned value is 0 nodau-0.3.14/src/config.c:57:2: note: Null pointer dereference nodau-0.3.14/src/config.c:43:35: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] nodau-0.3.14/src/config.c:69:32: style: Parameter 'mode' can be declared as pointer to const [constParameterPointer] nodau-0.3.14/src/config.c:72:8: style: Variable 'xch' can be declared as pointer to const [constVariablePointer] nodau-0.3.14/src/config.c:173:12: style: Variable 'c' can be declared as pointer to const [constVariablePointer] nodau-0.3.14/src/config.c:204:12: style: Variable 'c' can be declared as pointer to const [constVariablePointer] nodau-0.3.14/src/config.c:215:38: style: Parameter 'value' can be declared as pointer to const [constParameterPointer] nodau-0.3.14/src/db.c:51:24: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] nodau-0.3.14/src/db.c:52:14: style: Obsolete function 'asctime' called. It is recommended to use 'strftime' instead. [prohibitedasctimeCalled] nodau-0.3.14/src/db.c:370:14: warning: Either the condition 'res' is redundant or there is possible null pointer dereference: res. [nullPointerRedundantCheck] nodau-0.3.14/src/db.c:375:6: note: Assuming that condition 'res' is not redundant nodau-0.3.14/src/db.c:370:14: note: Null pointer dereference nodau-0.3.14/src/db.c:301:3: style: Variable 'r' is reassigned a value before the old one has been used. [redundantAssignment] nodau-0.3.14/src/db.c:300:3: note: r is assigned nodau-0.3.14/src/db.c:301:3: note: r is overwritten nodau-0.3.14/src/db.c:48:31: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] nodau-0.3.14/src/db.c:51:13: style: Variable 'timeinfo' can be declared as pointer to const [constVariablePointer] nodau-0.3.14/src/db.c:133:28: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] nodau-0.3.14/src/db.c:133:40: style: Parameter 'value' can be declared as pointer to const [constParameterPointer] nodau-0.3.14/src/db.c:152:8: style: Variable 'f' can be declared as pointer to const [constVariablePointer] nodau-0.3.14/src/db.c:280:21: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] nodau-0.3.14/src/db.c:326:8: style: Variable 'pref' can be declared as pointer to const [constVariablePointer] nodau-0.3.14/src/db.c:471:8: style: Variable 'date' can be declared as pointer to const [constVariablePointer] nodau-0.3.14/src/db.c:472:8: style: Variable 'name' can be declared as pointer to const [constVariablePointer] nodau-0.3.14/src/db.c:626:8: style: Variable 'crypt' can be declared as pointer to const [constVariablePointer] nodau-0.3.14/src/db.c:552:20: style: Variable 'date' is assigned a value that is never used. [unreadVariable] nodau-0.3.14/src/db.c:642:10: style: Variable 'crypt' is assigned a value that is never used. [unreadVariable] nodau-0.3.14/src/edit.c:184:9: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] nodau-0.3.14/src/edit.c:209:6: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] nodau-0.3.14/src/edit.c:323:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] nodau-0.3.14/src/edit.c:325:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] nodau-0.3.14/src/edit.c:172:3: error: Resource leak: fd [resourceLeak] nodau-0.3.14/src/edit.c:186:6: error: Resource leak: fd [resourceLeak] nodau-0.3.14/src/edit.c:153:53: style: Parameter 'date' can be declared as pointer to const [constParameterPointer] nodau-0.3.14/src/edit.c:153:65: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] nodau-0.3.14/src/edit.c:235:46: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] nodau-0.3.14/src/edit.c:298:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] nodau-0.3.14/src/edit.c:69:11: style: Variable 'plch' is assigned a value that is never used. [unreadVariable] diff: DONE