2025-05-06 16:58 ftp://ftp.de.debian.org/debian/pool/main/o/odt2txt/odt2txt_0.5.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: 56be00d (2025-05-06 17:27:07 +0200) count: 60 58 elapsed-time: 0.1 0.1 head-timing-info: old-timing-info: head results: odt2txt-0.5/kunzip/zipfile.c:36:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Z_NULL [valueFlowBailoutIncompleteVar] odt2txt-0.5/kunzip/zipfile.c:172:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Z_DEFLATED [valueFlowBailoutIncompleteVar] odt2txt-0.5/regex.c:25:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] odt2txt-0.5/regex.c:44:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_EXTENDED [valueFlowBailoutIncompleteVar] odt2txt-0.5/regex.c:139:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rm_eo [valueFlowBailoutIncompleteVar] odt2txt-0.5/regex.c:170:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rm_eo [valueFlowBailoutIncompleteVar] odt2txt-0.5/odt2txt.c:229:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iconv_t [valueFlowBailoutIncompleteVar] odt2txt-0.5/odt2txt.c:249:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] odt2txt-0.5/odt2txt.c:279:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] odt2txt-0.5/odt2txt.c:344:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] odt2txt-0.5/odt2txt.c:368:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODESET [valueFlowBailoutIncompleteVar] odt2txt-0.5/odt2txt.c:409:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] odt2txt-0.5/odt2txt.c:477:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] odt2txt-0.5/odt2txt.c:603:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] odt2txt-0.5/regex.c:25:26: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] odt2txt-0.5/regex.c:22:14: note: Assuming allocation function fails odt2txt-0.5/regex.c:22:14: note: Assignment 'buf=malloc(4096)', assigned value is 0 odt2txt-0.5/regex.c:25:26: note: Null pointer dereference odt2txt-0.5/regex.c:112:3: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] odt2txt-0.5/regex.c:111:9: note: Assuming allocation function fails odt2txt-0.5/regex.c:111:9: note: Assignment 'tmp=malloc(1)', assigned value is 0 odt2txt-0.5/regex.c:112:3: note: Null pointer dereference odt2txt-0.5/regex.c:122:3: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] odt2txt-0.5/regex.c:120:8: note: Assuming allocation function fails odt2txt-0.5/regex.c:120:8: note: Assignment 'tmp=malloc(charlen)', assigned value is 0 odt2txt-0.5/regex.c:122:3: note: Null pointer dereference odt2txt-0.5/regex.c:142:9: warning: If memory allocation fails, then there is a possible null pointer dereference: match [nullPointerOutOfMemory] odt2txt-0.5/regex.c:140:10: note: Assuming allocation function fails odt2txt-0.5/regex.c:140:10: note: Assignment 'match=malloc(len+1)', assigned value is 0 odt2txt-0.5/regex.c:142:9: note: Null pointer dereference odt2txt-0.5/regex.c:143:2: warning: If memory allocation fails, then there is a possible null pointer dereference: match [nullPointerOutOfMemory] odt2txt-0.5/regex.c:140:10: note: Assuming allocation function fails odt2txt-0.5/regex.c:140:10: note: Assignment 'match=malloc(len+1)', assigned value is 0 odt2txt-0.5/regex.c:143:2: note: Null pointer dereference odt2txt-0.5/regex.c:174:9: warning: If memory allocation fails, then there is a possible null pointer dereference: match [nullPointerOutOfMemory] odt2txt-0.5/regex.c:173:10: note: Assuming allocation function fails odt2txt-0.5/regex.c:173:10: note: Assignment 'match=malloc(pr_len+len+po_len+1)', assigned value is 0 odt2txt-0.5/regex.c:174:9: note: Null pointer dereference odt2txt-0.5/regex.c:177:2: warning: If memory allocation fails, then there is a possible null pointer dereference: match [nullPointerOutOfMemory] odt2txt-0.5/regex.c:173:10: note: Assuming allocation function fails odt2txt-0.5/regex.c:173:10: note: Assignment 'match=malloc(pr_len+len+po_len+1)', assigned value is 0 odt2txt-0.5/regex.c:177:2: note: Null pointer dereference odt2txt-0.5/regex.c:175:15: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] odt2txt-0.5/regex.c:173:10: note: Assuming allocation function fails odt2txt-0.5/regex.c:173:10: note: Assignment 'match=malloc(pr_len+len+po_len+1)', assigned value is 0 odt2txt-0.5/regex.c:175:15: note: Null pointer addition odt2txt-0.5/regex.c:176:15: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] odt2txt-0.5/regex.c:173:10: note: Assuming allocation function fails odt2txt-0.5/regex.c:173:10: note: Assignment 'match=malloc(pr_len+len+po_len+1)', assigned value is 0 odt2txt-0.5/regex.c:176:15: note: Null pointer addition odt2txt-0.5/kunzip/zipfile.c:182:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] odt2txt-0.5/kunzip/zipfile.c:266:4: warning: If memory allocation fails, then there is a possible null pointer dereference: name [nullPointerOutOfMemory] odt2txt-0.5/kunzip/zipfile.c:261:12: note: Assuming allocation function fails odt2txt-0.5/kunzip/zipfile.c:261:12: note: Assignment 'name=malloc(name_size)', assigned value is 0 odt2txt-0.5/kunzip/zipfile.c:266:4: note: Null pointer dereference odt2txt-0.5/kunzip/zipfile.c:202:33: style: Parameter 'zip_filename' can be declared as pointer to const [constParameterPointer] odt2txt-0.5/kunzip/zipfile.c:228:37: style: Parameter 'zip_filename' can be declared as pointer to const [constParameterPointer] odt2txt-0.5/kunzip/zipfile.c:228:57: style: Parameter 'compressed_filename' can be declared as pointer to const [constParameterPointer] odt2txt-0.5/strbuf.c:174:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Z_NULL [valueFlowBailoutIncompleteVar] odt2txt-0.5/strbuf.c:291:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Z_NULL [valueFlowBailoutIncompleteVar] odt2txt-0.5/t/test-regex.c:14:8: style: Variable 'test1' can be declared as pointer to const [constVariablePointer] odt2txt-0.5/t/test-regex.c:15:8: style: Variable 'test2' can be declared as pointer to const [constVariablePointer] odt2txt-0.5/t/test-regex.c:16:8: style: Variable 'test3' can be declared as pointer to const [constVariablePointer] odt2txt-0.5/t/test-regex.c:14:14: style: Variable 'test1' is assigned a value that is never used. [unreadVariable] odt2txt-0.5/t/test-regex.c:14:8: style: Variable 'test1' is assigned a value that is never used. [unreadVariable] odt2txt-0.5/strbuf.c:51:2: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] odt2txt-0.5/strbuf.c:49:16: note: Assuming allocation function fails odt2txt-0.5/strbuf.c:49:16: note: Assignment 'buf=malloc(sizeof(struct STRBUF))', assigned value is 0 odt2txt-0.5/strbuf.c:51:2: note: Null pointer dereference odt2txt-0.5/strbuf.c:52:2: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] odt2txt-0.5/strbuf.c:49:16: note: Assuming allocation function fails odt2txt-0.5/strbuf.c:49:16: note: Assignment 'buf=malloc(sizeof(struct STRBUF))', assigned value is 0 odt2txt-0.5/strbuf.c:52:2: note: Null pointer dereference odt2txt-0.5/strbuf.c:54:2: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] odt2txt-0.5/strbuf.c:49:16: note: Assuming allocation function fails odt2txt-0.5/strbuf.c:49:16: note: Assignment 'buf=malloc(sizeof(struct STRBUF))', assigned value is 0 odt2txt-0.5/strbuf.c:54:2: note: Null pointer dereference odt2txt-0.5/strbuf.c:55:2: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] odt2txt-0.5/strbuf.c:49:16: note: Assuming allocation function fails odt2txt-0.5/strbuf.c:49:16: note: Assignment 'buf=malloc(sizeof(struct STRBUF))', assigned value is 0 odt2txt-0.5/strbuf.c:55:2: note: Null pointer dereference odt2txt-0.5/strbuf.c:57:2: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] odt2txt-0.5/strbuf.c:49:16: note: Assuming allocation function fails odt2txt-0.5/strbuf.c:49:16: note: Assignment 'buf=malloc(sizeof(struct STRBUF))', assigned value is 0 odt2txt-0.5/strbuf.c:57:2: note: Null pointer dereference odt2txt-0.5/strbuf.c:266:2: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] odt2txt-0.5/strbuf.c:265:16: note: Assuming allocation function fails odt2txt-0.5/strbuf.c:265:16: note: Assignment 'buf=malloc(sizeof(struct STRBUF))', assigned value is 0 odt2txt-0.5/strbuf.c:266:2: note: Null pointer dereference odt2txt-0.5/strbuf.c:267:2: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] odt2txt-0.5/strbuf.c:265:16: note: Assuming allocation function fails odt2txt-0.5/strbuf.c:265:16: note: Assignment 'buf=malloc(sizeof(struct STRBUF))', assigned value is 0 odt2txt-0.5/strbuf.c:267:2: note: Null pointer dereference odt2txt-0.5/strbuf.c:268:2: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] odt2txt-0.5/strbuf.c:265:16: note: Assuming allocation function fails odt2txt-0.5/strbuf.c:265:16: note: Assignment 'buf=malloc(sizeof(struct STRBUF))', assigned value is 0 odt2txt-0.5/strbuf.c:268:2: note: Null pointer dereference odt2txt-0.5/strbuf.c:268:14: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] odt2txt-0.5/strbuf.c:265:16: note: Assuming allocation function fails odt2txt-0.5/strbuf.c:265:16: note: Assignment 'buf=malloc(sizeof(struct STRBUF))', assigned value is 0 odt2txt-0.5/strbuf.c:268:14: note: Null pointer dereference odt2txt-0.5/strbuf.c:269:4: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] odt2txt-0.5/strbuf.c:265:16: note: Assuming allocation function fails odt2txt-0.5/strbuf.c:265:16: note: Assignment 'buf=malloc(sizeof(struct STRBUF))', assigned value is 0 odt2txt-0.5/strbuf.c:269:4: note: Null pointer dereference odt2txt-0.5/strbuf.c:271:2: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] odt2txt-0.5/strbuf.c:265:16: note: Assuming allocation function fails odt2txt-0.5/strbuf.c:265:16: note: Assignment 'buf=malloc(sizeof(struct STRBUF))', assigned value is 0 odt2txt-0.5/strbuf.c:271:2: note: Null pointer dereference odt2txt-0.5/strbuf.c:104:32: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] odt2txt-0.5/strbuf.c:110:27: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] odt2txt-0.5/t/test-strbuf.c:76:9: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] odt2txt-0.5/t/test-strbuf.c:75:6: note: Assuming allocation function fails odt2txt-0.5/t/test-strbuf.c:75:6: note: Assignment 'c=malloc(strlen(test2)+1)', assigned value is 0 odt2txt-0.5/t/test-strbuf.c:76:9: note: Null pointer dereference odt2txt-0.5/t/test-strbuf.c:13:8: style: Variable 'test1' can be declared as pointer to const [constVariablePointer] odt2txt-0.5/t/test-strbuf.c:14:8: style: Variable 'test2' can be declared as pointer to const [constVariablePointer] odt2txt-0.5/t/test-strbuf.c:15:8: style: Variable 'test3' can be declared as pointer to const [constVariablePointer] odt2txt-0.5/odt2txt.c:369:2: warning:inconclusive: The buffer 'enc' may not be null-terminated after the call to strncpy(). [terminateStrncpy] odt2txt-0.5/odt2txt.c:369:10: warning: If memory allocation fails, then there is a possible null pointer dereference: enc [nullPointerOutOfMemory] odt2txt-0.5/odt2txt.c:364:8: note: Assuming allocation function fails odt2txt-0.5/odt2txt.c:364:8: note: Assignment 'enc=malloc(20)', assigned value is 0 odt2txt-0.5/odt2txt.c:369:10: note: Null pointer dereference odt2txt-0.5/odt2txt.c:374:11: warning: Either the condition '!enc' is redundant or there is possible null pointer dereference: enc. [nullPointerRedundantCheck] odt2txt-0.5/odt2txt.c:371:5: note: Assuming that condition '!enc' is not redundant odt2txt-0.5/odt2txt.c:374:11: note: Null pointer dereference odt2txt-0.5/odt2txt.c:491:11: warning: If memory allocation fails, then there is a possible null pointer dereference: opt_encoding [nullPointerOutOfMemory] odt2txt-0.5/odt2txt.c:490:19: note: Assuming allocation function fails odt2txt-0.5/odt2txt.c:490:19: note: Assignment 'opt_encoding=malloc(arglen)', assigned value is 0 odt2txt-0.5/odt2txt.c:491:11: note: Null pointer dereference odt2txt-0.5/odt2txt.c:508:12: warning: If memory allocation fails, then there is a possible null pointer dereference: opt_output [nullPointerOutOfMemory] odt2txt-0.5/odt2txt.c:507:18: note: Assuming allocation function fails odt2txt-0.5/odt2txt.c:507:18: note: Assignment 'opt_output=malloc(arglen)', assigned value is 0 odt2txt-0.5/odt2txt.c:508:12: note: Null pointer dereference odt2txt-0.5/odt2txt.c:374:11: error: Null pointer dereference [nullPointer] odt2txt-0.5/odt2txt.c:270:10: style: Variable 'outleft' is reassigned a value before the old one has been used. [redundantAssignment] odt2txt-0.5/odt2txt.c:267:31: note: outleft is assigned odt2txt-0.5/odt2txt.c:270:10: note: outleft is overwritten odt2txt-0.5/odt2txt.c:362:8: style: Variable 'tmp' can be declared as pointer to const [constVariablePointer] diff: 2.17.0 odt2txt-0.5/regex.c:175:15: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] odt2txt-0.5/regex.c:173:10: note: Assuming allocation function fails odt2txt-0.5/regex.c:173:10: note: Assignment 'match=malloc(pr_len+len+po_len+1)', assigned value is 0 odt2txt-0.5/regex.c:175:15: note: Null pointer addition head odt2txt-0.5/regex.c:175:15: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] odt2txt-0.5/regex.c:173:10: note: Assuming allocation function fails odt2txt-0.5/regex.c:173:10: note: Assignment 'match=malloc(pr_len+len+po_len+1)', assigned value is 0 odt2txt-0.5/regex.c:175:15: note: Null pointer addition 2.17.0 odt2txt-0.5/regex.c:176:15: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] odt2txt-0.5/regex.c:173:10: note: Assuming allocation function fails odt2txt-0.5/regex.c:173:10: note: Assignment 'match=malloc(pr_len+len+po_len+1)', assigned value is 0 odt2txt-0.5/regex.c:176:15: note: Null pointer addition head odt2txt-0.5/regex.c:176:15: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] odt2txt-0.5/regex.c:173:10: note: Assuming allocation function fails odt2txt-0.5/regex.c:173:10: note: Assignment 'match=malloc(pr_len+len+po_len+1)', assigned value is 0 odt2txt-0.5/regex.c:176:15: note: Null pointer addition head odt2txt-0.5/strbuf.c:268:14: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] odt2txt-0.5/strbuf.c:265:16: note: Assuming allocation function fails odt2txt-0.5/strbuf.c:265:16: note: Assignment 'buf=malloc(sizeof(struct STRBUF))', assigned value is 0 odt2txt-0.5/strbuf.c:268:14: note: Null pointer dereference head odt2txt-0.5/t/test-regex.c:14:8: style: Variable 'test1' is assigned a value that is never used. [unreadVariable] DONE