2025-05-05 20:53 ftp://ftp.de.debian.org/debian/pool/main/libp/libpst/libpst_0.6.76.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=boost --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-59-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.17.0 head-info: 581f101 (2025-05-05 21:13:30 +0200) count: 243 239 elapsed-time: 17.3 16.4 head-timing-info: old-timing-info: head results: libpst-0.6.76/python/python-libpst.cpp:257:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dwLowDateTime [valueFlowBailoutIncompleteVar] libpst-0.6.76/python/python-libpst.cpp:64:23: performance: Function parameter 'filename' should be passed by const reference. [passedByValue] libpst-0.6.76/python/python-libpst.cpp:64:46: performance: Function parameter 'charset' should be passed by const reference. [passedByValue] libpst-0.6.76/python/python-libpst.cpp:165:43: performance: Function parameter 'filename' should be passed by const reference. However it seems that 'ppst_open_file' is a callback function. [passedByValueCallback] libpst-0.6.76/python/python-libpst.cpp:617:55: note: Function pointer used here. libpst-0.6.76/python/python-libpst.cpp:165:43: note: Function parameter 'filename' should be passed by const reference. However it seems that 'ppst_open_file' is a callback function. libpst-0.6.76/python/python-libpst.cpp:165:60: performance: Function parameter 'mode' should be passed by const reference. However it seems that 'ppst_open_file' is a callback function. [passedByValueCallback] libpst-0.6.76/python/python-libpst.cpp:617:55: note: Function pointer used here. libpst-0.6.76/python/python-libpst.cpp:165:60: note: Function parameter 'mode' should be passed by const reference. However it seems that 'ppst_open_file' is a callback function. libpst-0.6.76/src/XGetopt.c:158:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/XGetopt.c:139:47: style: Parameter 'optstring' can be declared as pointer to const [constParameterPointer] libpst-0.6.76/src/XGetopt.c:142:12: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] libpst-0.6.76/src/debug.c:53:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/debug.c:79:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/debug.c:129:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/debug.c:172:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/debug.c:182:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/debug.c:89:11: style: Variable 'func' can be declared as pointer to const [constVariablePointer] libpst-0.6.76/src/deltasearch.cpp:49:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/deltasearch.cpp:51:15: style: Variable 'search' is assigned a value that is never used. [unreadVariable] libpst-0.6.76/src/dumpblocks.c:59:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/dumpblocks.c:57:16: style: Local variable 'c' shadows outer variable [shadowVariable] libpst-0.6.76/src/dumpblocks.c:11:9: note: Shadowed declaration libpst-0.6.76/src/dumpblocks.c:57:16: note: Shadow variable libpst-0.6.76/src/dumpblocks.c:9:11: style: Variable 'outdir' can be declared as pointer to const [constVariablePointer] libpst-0.6.76/src/dumpblocks.c:9:27: style: Variable 'file' can be declared as pointer to const [constVariablePointer] libpst-0.6.76/src/dumpblocks.c:56:23: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] libpst-0.6.76/src/getidblock.c:28:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/getidblock.c:71:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/getidblock.c:121:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/getidblock.c:43:9: style: Condition 'buf' is always true [knownConditionTrueFalse] libpst-0.6.76/src/getidblock.c:30:66: style: Checking if unsigned expression 'readSize=pst_ff_getIDblock_dec(&pstfile,i_id,&buf)' is less than zero. [unsignedLessThanZero] libpst-0.6.76/src/getidblock.c:86:11: style: Variable 'fname' can be declared as pointer to const [constVariablePointer] libpst-0.6.76/src/getidblock.c:86:19: style: Variable 'sid' can be declared as pointer to const [constVariablePointer] libpst-0.6.76/src/libpst.c:308:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/libpst.c:323:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/libpst.c:481:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/libpst.c:560:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx32 [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/libpst.c:771:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx32 [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/libpst.c:1038:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/libpst.c:1149:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/libpst.c:1280:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/libpst.c:1505:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/libpst.c:2295:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIi32 [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/libpst.c:3309:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/libpst.c:3693:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/libpst.c:3707:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/libpst.c:3754:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/libpst.c:3769:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/libpst.c:3789:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/libpst.c:3815:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/libpst.c:3989:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/libpst.c:4014:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/libpst.c:4033:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/libpst.c:4061:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/libpst.c:400:10: error: Return value of allocation function 'freopen' is not stored. [leakReturnValNotUsed] libpst-0.6.76/src/libpst.c:1073:42: warning: Either the condition 'buf' is redundant or there is possible null pointer dereference: buf. [nullPointerRedundantCheck] libpst-0.6.76/src/libpst.c:1088:21: note: Assuming that condition 'buf' is not redundant libpst-0.6.76/src/libpst.c:1073:42: note: Null pointer dereference libpst-0.6.76/src/libpst.c:1075:9: warning: Either the condition 'buf' is redundant or there is possible null pointer dereference: buf. [nullPointerRedundantCheck] libpst-0.6.76/src/libpst.c:1088:21: note: Assuming that condition 'buf' is not redundant libpst-0.6.76/src/libpst.c:1075:9: note: Null pointer dereference libpst-0.6.76/src/libpst.c:1177:46: warning: Either the condition 'buf' is redundant or there is possible null pointer dereference: buf. [nullPointerRedundantCheck] libpst-0.6.76/src/libpst.c:1183:17: note: Assuming that condition 'buf' is not redundant libpst-0.6.76/src/libpst.c:1177:46: note: Null pointer dereference libpst-0.6.76/src/libpst.c:1178:9: warning: Either the condition 'buf' is redundant or there is possible null pointer dereference: buf. [nullPointerRedundantCheck] libpst-0.6.76/src/libpst.c:1183:17: note: Assuming that condition 'buf' is not redundant libpst-0.6.76/src/libpst.c:1178:9: note: Null pointer dereference libpst-0.6.76/src/libpst.c:1545:37: warning: If memory allocation fails, then there is a possible null pointer dereference: subblocks.subs [nullPointerOutOfMemory] libpst-0.6.76/src/libpst.c:1529:32: note: Assuming allocation function fails libpst-0.6.76/src/libpst.c:1529:32: note: Assignment 'subblocks.subs=malloc(sizeof(struct pst_subblock)*subblocks.subblock_count)', assigned value is 0 libpst-0.6.76/src/libpst.c:1530:20: note: Assuming condition is false libpst-0.6.76/src/libpst.c:1545:37: note: Null pointer dereference libpst-0.6.76/src/libpst.c:3316:25: warning: Either the condition 'buf' is redundant or there is possible null pointer dereference: buf. [nullPointerRedundantCheck] libpst-0.6.76/src/libpst.c:3322:13: note: Assuming that condition 'buf' is not redundant libpst-0.6.76/src/libpst.c:3316:25: note: Null pointer dereference libpst-0.6.76/src/libpst.c:1066:36: warning: Either the condition 'buf' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck] libpst-0.6.76/src/libpst.c:1069:13: note: Assuming that condition 'buf' is not redundant libpst-0.6.76/src/libpst.c:1066:36: note: Null pointer addition libpst-0.6.76/src/libpst.c:1170:41: warning: Either the condition 'buf' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck] libpst-0.6.76/src/libpst.c:1173:13: note: Assuming that condition 'buf' is not redundant libpst-0.6.76/src/libpst.c:1170:41: note: Null pointer addition libpst-0.6.76/src/libpst.c:3330:17: warning: Either the condition 'buf' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck] libpst-0.6.76/src/libpst.c:3359:9: note: Assuming that condition 'buf' is not redundant libpst-0.6.76/src/libpst.c:3330:17: note: Null pointer addition libpst-0.6.76/src/libpst.c:3702:47: style:inconclusive: Function 'pst_getID2' argument 1 names different: declaration 'ptr' definition 'head'. [funcArgNamesDifferent] libpst-0.6.76/src/libpst.c:288:51: note: Function 'pst_getID2' argument 1 names different: declaration 'ptr' definition 'head'. libpst-0.6.76/src/libpst.c:3702:47: note: Function 'pst_getID2' argument 1 names different: declaration 'ptr' definition 'head'. libpst-0.6.76/src/libpst.c:3702:62: style:inconclusive: Function 'pst_getID2' argument 2 names different: declaration 'id' definition 'id2'. [funcArgNamesDifferent] libpst-0.6.76/src/libpst.c:288:65: note: Function 'pst_getID2' argument 2 names different: declaration 'id' definition 'id2'. libpst-0.6.76/src/libpst.c:3702:62: note: Function 'pst_getID2' argument 2 names different: declaration 'id' definition 'id2'. libpst-0.6.76/src/libpst.c:4293:44: style:inconclusive: Function 'pst_rfc2426_escape' argument 2 names different: declaration 'result' definition 'buf'. [funcArgNamesDifferent] libpst-0.6.76/src/libpst.h:1078:54: note: Function 'pst_rfc2426_escape' argument 2 names different: declaration 'result' definition 'buf'. libpst-0.6.76/src/libpst.c:4293:44: note: Function 'pst_rfc2426_escape' argument 2 names different: declaration 'result' definition 'buf'. libpst-0.6.76/src/libpst.c:4293:57: style:inconclusive: Function 'pst_rfc2426_escape' argument 3 names different: declaration 'resultlen' definition 'buflen'. [funcArgNamesDifferent] libpst-0.6.76/src/libpst.h:1078:70: note: Function 'pst_rfc2426_escape' argument 3 names different: declaration 'resultlen' definition 'buflen'. libpst-0.6.76/src/libpst.c:4293:57: note: Function 'pst_rfc2426_escape' argument 3 names different: declaration 'resultlen' definition 'buflen'. libpst-0.6.76/src/libpst.c:703:25: style: Variable 'headerbuffer' can be declared as pointer to const [constVariablePointer] libpst-0.6.76/src/libpst.c:858:41: style: Parameter 'pf' can be declared as pointer to const [constParameterPointer] libpst-0.6.76/src/libpst.c:892:42: style: Parameter 'pf' can be declared as pointer to const [constParameterPointer] libpst-0.6.76/src/libpst.c:921:42: style: Parameter 'pf' can be declared as pointer to const [constParameterPointer] libpst-0.6.76/src/libpst.c:973:42: style: Parameter 'pf' can be declared as pointer to const [constParameterPointer] libpst-0.6.76/src/libpst.c:1001:42: style: Parameter 'pf' can be declared as pointer to const [constParameterPointer] libpst-0.6.76/src/libpst.c:1462:14: style: Variable 'to_ptr' can be declared as pointer to const [constVariablePointer] libpst-0.6.76/src/libpst.c:1697:19: style: Variable 'value_pointer' can be declared as pointer to const [constVariablePointer] libpst-0.6.76/src/libpst.c:3681:35: style: Parameter 'pf' can be declared as pointer to const [constParameterPointer] libpst-0.6.76/src/libpst.c:3902:40: style: Parameter 'pf' can be declared as pointer to const [constParameterPointer] libpst-0.6.76/src/libpst.c:3902:50: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] libpst-0.6.76/src/libpst.c:4231:23: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] libpst-0.6.76/src/libpst.c:4231:32: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] libpst-0.6.76/src/libpst.c:4244:31: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] libpst-0.6.76/src/libpst.c:4244:40: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] libpst-0.6.76/src/libpst.c:4296:17: style: Variable 'a' can be declared as pointer to const [constVariablePointer] libpst-0.6.76/src/libpst.c:4347:32: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] libpst-0.6.76/src/libpst.c:4589:9: style: Variable 'm' can be declared as const array [constVariable] libpst-0.6.76/src/libpst.c:1500:18: style: struct member 'Anonymous2::slot' is never used. [unusedStructMember] libpst-0.6.76/src/libpst.c:3855:14: style: Variable 'x' is assigned a value that is never used. [unreadVariable] libpst-0.6.76/src/libpst.c:4297:14: style: Variable 'x' is assigned a value that is never used. [unreadVariable] libpst-0.6.76/src/libstrfunc.c:40:20: style: Variable 'dte' can be declared as pointer to const [constVariablePointer] libpst-0.6.76/src/lspst.c:67:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/lspst.c:198:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/lspst.c:260:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/lspst.c:182:18: style: Parameter 'prog_name' can be declared as pointer to const [constParameterPointer] libpst-0.6.76/src/lspst.c:213:11: style: Variable 'temp' can be declared as pointer to const [constVariablePointer] libpst-0.6.76/src/lspst.c:215:11: style: Variable 'd_log' can be declared as pointer to const [constVariablePointer] libpst-0.6.76/src/lzfu.c:38:33: style: Parameter 'rtfcomp' can be declared as pointer to const [constParameterPointer] libpst-0.6.76/src/msg.cpp:49:9: style: C-style pointer casting [cstyleCast] libpst-0.6.76/src/msg.cpp:81:34: style: C-style pointer casting [cstyleCast] libpst-0.6.76/src/msg.cpp:84:38: style: C-style pointer casting [cstyleCast] libpst-0.6.76/src/msg.cpp:112:35: style: C-style pointer casting [cstyleCast] libpst-0.6.76/src/msg.cpp:163:50: style: C-style pointer casting [cstyleCast] libpst-0.6.76/src/msg.cpp:313:51: style: C-style pointer casting [cstyleCast] libpst-0.6.76/src/msg.cpp:332:51: style: C-style pointer casting [cstyleCast] libpst-0.6.76/src/msg.cpp:351:51: style: C-style pointer casting [cstyleCast] libpst-0.6.76/src/msg.cpp:399:55: style: C-style pointer casting [cstyleCast] libpst-0.6.76/src/msg.cpp:411:39: style: C-style pointer casting [cstyleCast] libpst-0.6.76/src/msg.cpp:299:25: style: Local variable 'output' shadows outer variable [shadowVariable] libpst-0.6.76/src/msg.cpp:215:17: note: Shadowed declaration libpst-0.6.76/src/msg.cpp:299:25: note: Shadow variable libpst-0.6.76/src/msg.cpp:302:31: style: Local variable 'prop_list' shadows outer variable [shadowVariable] libpst-0.6.76/src/msg.cpp:244:19: note: Shadowed declaration libpst-0.6.76/src/msg.cpp:302:31: note: Shadow variable libpst-0.6.76/src/msg.cpp:305:29: style: Local variable 'out' shadows outer variable [shadowVariable] libpst-0.6.76/src/msg.cpp:256:17: note: Shadowed declaration libpst-0.6.76/src/msg.cpp:305:29: note: Shadow variable libpst-0.6.76/src/msg.cpp:322:25: style: Local variable 'output' shadows outer variable [shadowVariable] libpst-0.6.76/src/msg.cpp:215:17: note: Shadowed declaration libpst-0.6.76/src/msg.cpp:322:25: note: Shadow variable libpst-0.6.76/src/msg.cpp:325:31: style: Local variable 'prop_list' shadows outer variable [shadowVariable] libpst-0.6.76/src/msg.cpp:244:19: note: Shadowed declaration libpst-0.6.76/src/msg.cpp:325:31: note: Shadow variable libpst-0.6.76/src/msg.cpp:328:29: style: Local variable 'out' shadows outer variable [shadowVariable] libpst-0.6.76/src/msg.cpp:256:17: note: Shadowed declaration libpst-0.6.76/src/msg.cpp:328:29: note: Shadow variable libpst-0.6.76/src/msg.cpp:341:25: style: Local variable 'output' shadows outer variable [shadowVariable] libpst-0.6.76/src/msg.cpp:215:17: note: Shadowed declaration libpst-0.6.76/src/msg.cpp:341:25: note: Shadow variable libpst-0.6.76/src/msg.cpp:344:31: style: Local variable 'prop_list' shadows outer variable [shadowVariable] libpst-0.6.76/src/msg.cpp:244:19: note: Shadowed declaration libpst-0.6.76/src/msg.cpp:344:31: note: Shadow variable libpst-0.6.76/src/msg.cpp:347:29: style: Local variable 'out' shadows outer variable [shadowVariable] libpst-0.6.76/src/msg.cpp:256:17: note: Shadowed declaration libpst-0.6.76/src/msg.cpp:347:29: note: Shadow variable libpst-0.6.76/src/msg.cpp:368:25: style: Local variable 'output' shadows outer variable [shadowVariable] libpst-0.6.76/src/msg.cpp:215:17: note: Shadowed declaration libpst-0.6.76/src/msg.cpp:368:25: note: Shadow variable libpst-0.6.76/src/msg.cpp:374:35: style: Local variable 'prop_list' shadows outer variable [shadowVariable] libpst-0.6.76/src/msg.cpp:244:19: note: Shadowed declaration libpst-0.6.76/src/msg.cpp:374:35: note: Shadow variable libpst-0.6.76/src/msg.cpp:382:33: style: Local variable 'out' shadows outer variable [shadowVariable] libpst-0.6.76/src/msg.cpp:256:17: note: Shadowed declaration libpst-0.6.76/src/msg.cpp:382:33: note: Shadow variable libpst-0.6.76/src/msg.cpp:395:37: style: Local variable 'n' shadows outer variable [shadowVariable] libpst-0.6.76/src/msg.cpp:366:26: note: Shadowed declaration libpst-0.6.76/src/msg.cpp:395:37: note: Shadow variable libpst-0.6.76/src/msg.cpp:414:21: style: Local variable 'output' shadows outer variable [shadowVariable] libpst-0.6.76/src/msg.cpp:215:17: note: Shadowed declaration libpst-0.6.76/src/msg.cpp:414:21: note: Shadow variable libpst-0.6.76/src/msg.cpp:416:25: style: Local variable 'out' shadows outer variable [shadowVariable] libpst-0.6.76/src/msg.cpp:256:17: note: Shadowed declaration libpst-0.6.76/src/msg.cpp:416:25: note: Shadow variable libpst-0.6.76/src/msg.cpp:152:93: style: Parameter 'contents' can be declared as reference to const [constParameterReference] libpst-0.6.76/src/msg.cpp:182:92: style: Parameter 'value' can be declared as pointer to const [constParameterPointer] libpst-0.6.76/src/msg.cpp:227:19: style: struct member 'top_property_header::reserved1' is never used. [unusedStructMember] libpst-0.6.76/src/msg.cpp:228:19: style: struct member 'top_property_header::reserved2' is never used. [unusedStructMember] libpst-0.6.76/src/msg.cpp:233:19: style: struct member 'top_property_header::reserved3' is never used. [unusedStructMember] libpst-0.6.76/src/msg.cpp:234:19: style: struct member 'top_property_header::reserved4' is never used. [unusedStructMember] libpst-0.6.76/src/msg.cpp:161:65: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] libpst-0.6.76/src/nick2ldif.cpp:61:9: style: Variable 'm' can be declared as pointer to const [constVariablePointer] libpst-0.6.76/src/pst2dii.cpp:83:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/pst2dii.cpp:197:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/pst2dii.cpp:223:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdFTEX_RESOLUTION [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/pst2dii.cpp:319:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdFTEX_RESOLUTION [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/pst2dii.cpp:616:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/pst2dii.cpp:703:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/pst2dii.cpp:207:15: warning: Either the condition 'temp' is redundant or there is possible null pointer dereference: temp. [nullPointerRedundantCheck] libpst-0.6.76/src/pst2dii.cpp:208:9: note: Assuming that condition 'temp' is not redundant libpst-0.6.76/src/pst2dii.cpp:207:15: note: Null pointer dereference libpst-0.6.76/src/pst2dii.cpp:425:22: warning: Possible null pointer dereference: headers [nullPointer] libpst-0.6.76/src/pst2dii.cpp:446:17: note: Assignment 'soh=NULL', assigned value is 0 libpst-0.6.76/src/pst2dii.cpp:447:28: note: Assuming condition is false libpst-0.6.76/src/pst2dii.cpp:469:36: note: Calling function 'extract_header', 1st argument 'soh' value is 0 libpst-0.6.76/src/pst2dii.cpp:425:22: note: Null pointer dereference libpst-0.6.76/src/pst2dii.cpp:500:27: warning: Either the condition 'item' is redundant or there is possible null pointer dereference: item. [nullPointerRedundantCheck] libpst-0.6.76/src/pst2dii.cpp:506:9: note: Assuming that condition 'item' is not redundant libpst-0.6.76/src/pst2dii.cpp:500:27: note: Null pointer dereference libpst-0.6.76/src/pst2dii.cpp:184:16: style: C-style pointer casting [cstyleCast] libpst-0.6.76/src/pst2dii.cpp:188:16: style: C-style pointer casting [cstyleCast] libpst-0.6.76/src/pst2dii.cpp:239:102: style: C-style pointer casting [cstyleCast] libpst-0.6.76/src/pst2dii.cpp:326:99: style: C-style pointer casting [cstyleCast] libpst-0.6.76/src/pst2dii.cpp:348:20: style: C-style pointer casting [cstyleCast] libpst-0.6.76/src/pst2dii.cpp:373:16: style: C-style pointer casting [cstyleCast] libpst-0.6.76/src/pst2dii.cpp:655:47: style: C-style pointer casting [cstyleCast] libpst-0.6.76/src/pst2dii.cpp:709:14: style: C-style pointer casting [cstyleCast] libpst-0.6.76/src/pst2dii.cpp:170:9: style: The scope of the variable 'x' can be reduced. [variableScope] libpst-0.6.76/src/pst2dii.cpp:402:50: performance: Function parameter 'value' should be passed by const reference. [passedByValue] libpst-0.6.76/src/pst2dii.cpp:443:41: style: Parameter 'f' can be declared as reference to const [constParameterReference] libpst-0.6.76/src/pst2dii.cpp:597:38: style: Parameter 'f' can be declared as reference to const [constParameterReference] libpst-0.6.76/src/pst2dii.cpp:235:15: style: Variable 'err' can be declared as pointer to const [constVariablePointer] libpst-0.6.76/src/pst2dii.cpp:243:11: style: Variable 'err' can be declared as pointer to const [constVariablePointer] libpst-0.6.76/src/pst2dii.cpp:283:34: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] libpst-0.6.76/src/pst2dii.cpp:326:15: style: Variable 'err' can be declared as pointer to const [constVariablePointer] libpst-0.6.76/src/pst2dii.cpp:587:51: style: Parameter 'parent' can be declared as pointer to const [constParameterPointer] libpst-0.6.76/src/pst2dii.cpp:640:11: style: Variable 'fname' can be declared as pointer to const [constVariablePointer] libpst-0.6.76/src/pst2dii.cpp:642:11: style: Variable 'd_log' can be declared as pointer to const [constVariablePointer] libpst-0.6.76/src/pst2dii.cpp:386:76: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] libpst-0.6.76/src/pst2ldif.cpp:121:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/pst2ldif.cpp:634:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/pst2ldif.cpp:696:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/pst2ldif.cpp:656:29: warning: If memory allocation fails, then there is a possible null pointer dereference: ldap_org [nullPointerOutOfMemory] libpst-0.6.76/src/pst2ldif.cpp:655:32: note: Assuming allocation function fails libpst-0.6.76/src/pst2ldif.cpp:655:32: note: Assignment 'ldap_org=strdup(ldap_base+2)', assigned value is 0 libpst-0.6.76/src/pst2ldif.cpp:656:29: note: Null pointer dereference libpst-0.6.76/src/pst2ldif.cpp:178:39: style: C-style pointer casting [cstyleCast] libpst-0.6.76/src/pst2ldif.cpp:466:30: style: C-style pointer casting [cstyleCast] libpst-0.6.76/src/pst2ldif.cpp:640:14: style: C-style pointer casting [cstyleCast] libpst-0.6.76/src/pst2ldif.cpp:104:30: style: Local variable 'i' shadows outer variable [shadowVariable] libpst-0.6.76/src/pst2ldif.cpp:99:26: note: Shadowed declaration libpst-0.6.76/src/pst2ldif.cpp:104:30: note: Shadow variable libpst-0.6.76/src/pst2ldif.cpp:495:11: style: Variable 'valuestr' can be declared as pointer to const [constVariablePointer] libpst-0.6.76/src/pst2ldif.cpp:583:11: style: Variable 'fname' can be declared as pointer to const [constVariablePointer] libpst-0.6.76/src/pst2ldif.cpp:585:11: style: Variable 'd_log' can be declared as pointer to const [constVariablePointer] libpst-0.6.76/src/pst2ldif.cpp:64:56: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] libpst-0.6.76/src/readpst.c:255:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/readpst.c:424:92: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_ICASE [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/readpst.c:752:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/readpst.c:774:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/readpst.c:799:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/readpst.c:859:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/readpst.c:876:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/readpst.c:899:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/readpst.c:945:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/readpst.c:957:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/readpst.c:1071:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/readpst.c:1220:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/readpst.c:1424:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rm_so [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/readpst.c:1537:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/readpst.c:2130:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/readpst.c:2306:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/readpst.c:2337:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/readpst.c:923:30: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] libpst-0.6.76/src/readpst.c:283:27: style: Condition 'child==0' is always true [knownConditionTrueFalse] libpst-0.6.76/src/readpst.c:282:39: note: Calling function 'try_fork' returns 0 libpst-0.6.76/src/readpst.c:282:39: note: Assignment 'child=try_fork(item->file_as.str)', assigned value is 0 libpst-0.6.76/src/readpst.c:283:27: note: Condition 'child==0' is always true libpst-0.6.76/src/readpst.c:336:31: style: Condition 'child==0' is always true [knownConditionTrueFalse] libpst-0.6.76/src/readpst.c:335:43: note: Calling function 'try_fork' returns 0 libpst-0.6.76/src/readpst.c:335:43: note: Assignment 'child=try_fork(item->file_as.str)', assigned value is 0 libpst-0.6.76/src/readpst.c:336:31: note: Condition 'child==0' is always true libpst-0.6.76/src/readpst.c:2167:37: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libpst-0.6.76/src/readpst.c:2168:37: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libpst-0.6.76/src/readpst.c:2169:37: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libpst-0.6.76/src/readpst.c:2266:21: warning: If resource allocation fails, then there is a possible null pointer dereference: type_file [nullPointerOutOfResources] libpst-0.6.76/src/readpst.c:2265:36: note: Assuming allocation function fails libpst-0.6.76/src/readpst.c:2265:36: note: Assignment 'type_file=fopen(".type","w")', assigned value is 0 libpst-0.6.76/src/readpst.c:2266:21: note: Null pointer dereference libpst-0.6.76/src/readpst.c:2267:20: warning: If resource allocation fails, then there is a possible null pointer dereference: type_file [nullPointerOutOfResources] libpst-0.6.76/src/readpst.c:2265:36: note: Assuming allocation function fails libpst-0.6.76/src/readpst.c:2265:36: note: Assignment 'type_file=fopen(".type","w")', assigned value is 0 libpst-0.6.76/src/readpst.c:2267:20: note: Null pointer dereference libpst-0.6.76/src/readpst.c:2364:21: warning: If resource allocation fails, then there is a possible null pointer dereference: type_file [nullPointerOutOfResources] libpst-0.6.76/src/readpst.c:2363:36: note: Assuming allocation function fails libpst-0.6.76/src/readpst.c:2363:36: note: Assignment 'type_file=fopen(".size","w")', assigned value is 0 libpst-0.6.76/src/readpst.c:2364:21: note: Null pointer dereference libpst-0.6.76/src/readpst.c:2365:20: warning: If resource allocation fails, then there is a possible null pointer dereference: type_file [nullPointerOutOfResources] libpst-0.6.76/src/readpst.c:2363:36: note: Assuming allocation function fails libpst-0.6.76/src/readpst.c:2363:36: note: Assignment 'type_file=fopen(".size","w")', assigned value is 0 libpst-0.6.76/src/readpst.c:2365:20: note: Null pointer dereference libpst-0.6.76/src/readpst.c:1762:14: style: Local variable 'c_time' shadows outer variable [shadowVariable] libpst-0.6.76/src/readpst.c:1587:11: note: Shadowed declaration libpst-0.6.76/src/readpst.c:1762:14: note: Shadow variable libpst-0.6.76/src/readpst.c:203:22: style: Parameter 'folder' can be declared as pointer to const [constParameterPointer] libpst-0.6.76/src/readpst.c:416:11: style: Variable 'd_log' can be declared as pointer to const [constVariablePointer] libpst-0.6.76/src/readpst.c:418:11: style: Variable 'temp' can be declared as pointer to const [constVariablePointer] libpst-0.6.76/src/readpst.c:687:19: style: Variable 'p' can be declared as pointer to const [constVariablePointer] libpst-0.6.76/src/readpst.c:764:25: style: Parameter 'fname' can be declared as pointer to const [constParameterPointer] libpst-0.6.76/src/readpst.c:953:59: style: Parameter 'extension' can be declared as pointer to const [constParameterPointer] libpst-0.6.76/src/readpst.c:991:24: style: Variable 'y' can be declared as pointer to const [constVariablePointer] libpst-0.6.76/src/readpst.c:1075:23: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] libpst-0.6.76/src/readpst.c:1114:76: style: Parameter 'boundary' can be declared as pointer to const [constParameterPointer] libpst-0.6.76/src/readpst.c:1161:11: style: Variable 'curr' can be declared as pointer to const [constVariablePointer] libpst-0.6.76/src/readpst.c:1170:11: style: Variable 'curr_in' can be declared as pointer to const [constVariablePointer] libpst-0.6.76/src/readpst.c:1217:77: style: Parameter 'boundary' can be declared as pointer to const [constParameterPointer] libpst-0.6.76/src/readpst.c:1224:23: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] libpst-0.6.76/src/readpst.c:1273:38: style: Parameter 'field' can be declared as pointer to const [constParameterPointer] libpst-0.6.76/src/readpst.c:1277:15: style: Variable 'crlftab' can be declared as pointer to const [constVariablePointer] libpst-0.6.76/src/readpst.c:1365:30: style: Parameter 'field' can be declared as pointer to const [constParameterPointer] libpst-0.6.76/src/readpst.c:1379:15: style: Variable 'e' can be declared as pointer to const [constVariablePointer] libpst-0.6.76/src/readpst.c:1459:23: style: Variable 'e' can be declared as pointer to const [constVariablePointer] libpst-0.6.76/src/readpst.c:1479:89: style: Parameter 'boundary' can be declared as pointer to const [constParameterPointer] libpst-0.6.76/src/readpst.c:1666:23: style: Variable 'n' can be declared as pointer to const [constVariablePointer] libpst-0.6.76/src/readpst.c:1667:23: style: Variable 's' can be declared as pointer to const [constVariablePointer] libpst-0.6.76/src/readpst.c:1700:15: style: Variable 'quo' can be declared as pointer to const [constVariablePointer] libpst-0.6.76/src/readpst.c:2095:23: style: Variable 'journal' can be declared as pointer to const [constVariablePointer] libpst-0.6.76/src/readpst.c:281:30: style: Variable 'parent' is assigned a value that is never used. [unreadVariable] libpst-0.6.76/src/readpst.c:285:30: style: Variable 'me' is assigned a value that is never used. [unreadVariable] libpst-0.6.76/src/readpst.c:334:34: style: Variable 'parent' is assigned a value that is never used. [unreadVariable] libpst-0.6.76/src/readpst.c:338:34: style: Variable 'me' is assigned a value that is never used. [unreadVariable] libpst-0.6.76/src/readpst.c:281:23: style: Variable 'parent' is assigned a value that is never used. [unreadVariable] libpst-0.6.76/src/readpst.c:285:27: style: Variable 'me' is assigned a value that is never used. [unreadVariable] libpst-0.6.76/src/readpst.c:334:27: style: Variable 'parent' is assigned a value that is never used. [unreadVariable] libpst-0.6.76/src/readpst.c:338:31: style: Variable 'me' is assigned a value that is never used. [unreadVariable] libpst-0.6.76/src/readpst.c:887:11: style: Variable 'x' is assigned a value that is never used. [unreadVariable] libpst-0.6.76/src/timeconv.c:8:12: style: Obsolescent function 'ctime_r' called. It is recommended to use 'strftime' instead. [prohibitedctime_rCalled] libpst-0.6.76/src/timeconv.c:14:59: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] libpst-0.6.76/src/vbuf.c:52:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iconv_t [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/vbuf.c:81:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/vbuf.c:139:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/vbuf.c:160:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/vbuf.c:206:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iconv_t [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/vbuf.c:232:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libpst-0.6.76/src/vbuf.c:172:11: style: Variable 'vb->b' is reassigned a value before the old one has been used. [redundantAssignment] libpst-0.6.76/src/vbuf.c:166:15: note: vb->b is assigned libpst-0.6.76/src/vbuf.c:172:11: note: vb->b is overwritten libpst-0.6.76/src/vbuf.c:180:37: style:inconclusive: Function 'pst_vbset' argument 2 names different: declaration 'data' definition 'b'. [funcArgNamesDifferent] libpst-0.6.76/src/vbuf.h:21:42: note: Function 'pst_vbset' argument 2 names different: declaration 'data' definition 'b'. libpst-0.6.76/src/vbuf.c:180:37: note: Function 'pst_vbset' argument 2 names different: declaration 'data' definition 'b'. libpst-0.6.76/src/vbuf.c:190:39: style:inconclusive: Function 'pst_vbappend' argument 2 names different: declaration 'data' definition 'b'. [funcArgNamesDifferent] libpst-0.6.76/src/vbuf.h:22:45: note: Function 'pst_vbappend' argument 2 names different: declaration 'data' definition 'b'. libpst-0.6.76/src/vbuf.c:190:39: note: Function 'pst_vbappend' argument 2 names different: declaration 'data' definition 'b'. libpst-0.6.76/src/vbuf.c:190:49: style:inconclusive: Function 'pst_vbappend' argument 3 names different: declaration 'length' definition 'len'. [funcArgNamesDifferent] libpst-0.6.76/src/vbuf.h:22:58: note: Function 'pst_vbappend' argument 3 names different: declaration 'length' definition 'len'. libpst-0.6.76/src/vbuf.c:190:49: note: Function 'pst_vbappend' argument 3 names different: declaration 'length' definition 'len'. libpst-0.6.76/src/vbuf.c:35:38: style: Parameter 'vb' can be declared as pointer to const [constParameterPointer] libpst-0.6.76/src/vbuf.c:180:37: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] libpst-0.6.76/src/vbuf.c:70:25: style: Variable 'outbytesleft' is assigned a value that is never used. [unreadVariable] libpst-0.6.76/src/vbuf.c:217:25: style: Variable 'outbytesleft' is assigned a value that is never used. [unreadVariable] libpst-0.6.76/src/pst2dii.cpp:425:22: error: Null pointer dereference: headers [ctunullpointer] libpst-0.6.76/src/pst2dii.cpp:446:17: note: Assignment 'soh=NULL', assigned value is 0 libpst-0.6.76/src/pst2dii.cpp:447:28: note: Assuming condition is false libpst-0.6.76/src/pst2dii.cpp:469:35: note: Calling function extract_header, 1st argument is null libpst-0.6.76/src/pst2dii.cpp:425:22: note: Dereferencing argument headers that is null diff: head libpst-0.6.76/src/readpst.c:281:23: style: Variable 'parent' is assigned a value that is never used. [unreadVariable] head libpst-0.6.76/src/readpst.c:285:27: style: Variable 'me' is assigned a value that is never used. [unreadVariable] head libpst-0.6.76/src/readpst.c:334:27: style: Variable 'parent' is assigned a value that is never used. [unreadVariable] head libpst-0.6.76/src/readpst.c:338:31: style: Variable 'me' is assigned a value that is never used. [unreadVariable] DONE