2025-05-10 01:14 ftp://ftp.de.debian.org/debian/pool/main/d/ddpt/ddpt_0.97.orig.tar.xz 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 -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: b3c7f00 (2025-05-09 17:59:20 +0200) count: 526 524 elapsed-time: 5.3 5.3 head-timing-info: old-timing-info: head results: ddpt-0.97/lib/sg_cmds_basic.c:221:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_PT_DO_BAD_PARAMS [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_cmds_basic.c:386:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_MALFORMED [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_cmds_basic.c:541:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_cmds_basic.c:583:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_cmds_basic.c:647:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_cmds_basic.c:762:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_cmds_basic.c:853:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_cmds_basic2.c:314:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_MALFORMED [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_cmds_basic2.c:414:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_MALFORMED [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_cmds_basic2.c:724:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_cmds_basic2.c:858:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_MALFORMED [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_cmds_basic2.c:982:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_cmds_extra.c:147:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_cmds_extra.c:206:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_VARIABLE_LENGTH_CMD [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_cmds_extra.c:293:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_cmds_extra.c:357:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_cmds_extra.c:409:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_cmds_extra.c:508:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_cmds_extra.c:609:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_cmds_extra.c:719:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_cmds_extra.c:779:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_cmds_extra.c:842:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_cmds_extra.c:908:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_cmds_extra.c:1001:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_cmds_extra.c:1056:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_cmds_extra.c:1108:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_cmds_extra.c:1177:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_cmds_extra.c:1252:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_cmds_extra.c:1342:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_cmds_extra.c:1433:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_cmds_extra.c:1513:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_cmds_extra.c:1596:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_cmds_extra.c:1674:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_cmds_extra.c:1768:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_VARIABLE_LENGTH_CMD [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_cmds_extra.c:2033:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_cmds_extra.c:2362:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_cmds_extra.c:2431:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_cmds_basic.c:402:9: style: Condition 'resp' is always true [knownConditionTrueFalse] ddpt-0.97/lib/sg_cmds_extra.c:2231:18: style: Condition 'sa>=5' is always true [knownConditionTrueFalse] ddpt-0.97/lib/sg_cmds_extra.c:2229:12: note: Assuming that condition 'sa<=4' is not redundant ddpt-0.97/lib/sg_cmds_extra.c:2231:18: note: Condition 'sa>=5' is always true ddpt-0.97/lib/sg_pt_freebsd.c:150:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_freebsd.c:169:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_freebsd.c:320:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_freebsd.c:360:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENODEV [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_freebsd.c:389:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAM_DIR_NONE [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_freebsd.c:428:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_freebsd.c:448:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_freebsd.c:479:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAM_DIR_NONE [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_freebsd.c:500:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_freebsd.c:596:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAM_DIR_OUT [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_freebsd.c:617:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAM_DIR_IN [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_freebsd.c:693:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_PT_DO_BAD_PARAMS [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_freebsd.c:810:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_PT_RESULT_OS_ERR [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_freebsd.c:836:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAM_DIR_BOTH [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_freebsd.c:857:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAM_DIR_BOTH [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_freebsd.c:1016:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_freebsd.c:2405:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_freebsd.c:2444:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vb [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_linux.c:136:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _SC_PAGESIZE [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_linux.c:194:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_linux.c:268:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_linux.c:348:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_linux.c:360:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_NONBLOCK [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_linux.c:374:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_linux.c:392:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_pt_linux_scsi [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_linux.c:429:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_linux.c:462:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_pt_linux_scsi [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_linux.c:549:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_GET_VERSION_NUM [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_linux.c:977:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_PT_RESULT_OS_ERR [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_linux.c:1042:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_DXFER_NONE [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_linux.c:1102:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_PT_DO_BAD_PARAMS [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_linux.c:1133:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_PT_DO_BAD_PARAMS [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_freebsd.c:752:5: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] ddpt-0.97/lib/sg_pt_freebsd.c:431:14: style: Condition 'ptp=&vp->impl' is always true [knownConditionTrueFalse] ddpt-0.97/lib/sg_pt_freebsd.c:451:14: style: Condition 'ptp=&vp->impl' is always true [knownConditionTrueFalse] ddpt-0.97/lib/sg_pt_freebsd.c:473:14: style: Condition 'NULL==ptp' is always false [knownConditionTrueFalse] ddpt-0.97/lib/sg_pt_freebsd.c:503:14: style: Condition 'ptp=&vp->impl' is always true [knownConditionTrueFalse] ddpt-0.97/lib/sg_pt_freebsd.c:540:12: style: Condition 'ptp' is always true [knownConditionTrueFalse] ddpt-0.97/lib/sg_pt_freebsd.c:827:19: style: Condition 'NULL==ptp' is always false [knownConditionTrueFalse] ddpt-0.97/lib/sg_pt_freebsd.c:881:9: style: Condition 'ptp' is always true [knownConditionTrueFalse] ddpt-0.97/lib/sg_pt_freebsd.c:901:9: style: Condition 'ptp' is always true [knownConditionTrueFalse] ddpt-0.97/lib/sg_pt_freebsd.c:1011:9: style: Condition 'ptp' is always true [knownConditionTrueFalse] ddpt-0.97/lib/sg_pt_freebsd.c:1036:9: style: Condition 'ptp' is always true [knownConditionTrueFalse] ddpt-0.97/lib/sg_pt_freebsd.c:227:20: warning: %d in format string (no. 1) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] ddpt-0.97/lib/sg_pt_freebsd.c:227:20: warning: %d in format string (no. 2) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] ddpt-0.97/lib/sg_pt_freebsd.c:255:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ddpt-0.97/lib/sg_pt_freebsd.c:125:39: style: Parameter 'ptp' can be declared as pointer to const [constParameterPointer] ddpt-0.97/lib/sg_pt_freebsd.c:356:33: style: Variable 'fdc_p' can be declared as pointer to const [constVariablePointer] ddpt-0.97/lib/sg_pt_freebsd.c:639:43: style: Parameter 'vp' can be declared as pointer to const [constParameterPointer] ddpt-0.97/lib/sg_pt_freebsd.c:672:39: style: Parameter 'objp' can be declared as pointer to const [constParameterPointer] ddpt-0.97/lib/sg_pt_freebsd.c:2402:35: style: Parameter 'vp' can be declared as pointer to const [constParameterPointer] ddpt-0.97/lib/sg_pt_freebsd.c:2442:31: style: Parameter 'vp' can be declared as pointer to const [constParameterPointer] ddpt-0.97/lib/sg_pt_freebsd.c:507:13: error: Uninitialized variable: ptp [legacyUninitvar] ddpt-0.97/lib/sg_pt_freebsd.c:513:27: error: Uninitialized variable: ptp [legacyUninitvar] ddpt-0.97/lib/sg_pt_freebsd.c:701:17: style: Variable 'dev_han' is assigned a value that is never used. [unreadVariable] ddpt-0.97/lib/sg_lib.c:73:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_lib.c:86:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_lib.c:155:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_lib.c:207:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_VARIABLE_LENGTH_CMD [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_lib.c:324:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_lib_sense_key_desc [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_lib.c:343:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_lib_asc_ascq_range [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_lib.c:544:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPC_SK_NO_SENSE [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_lib.c:580:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_lib_pdt_strs [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_lib.c:589:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_lib_pdt_decay_arr [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_lib.c:598:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_lib_transport_proto_strs [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_lib.c:700:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_lib.c:987:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_lib.c:1370:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_lib.c:1729:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPC_SK_RECOVERED_ERROR [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_lib.c:1815:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_lib_sense_key_desc [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_lib.c:2006:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_exit_str_arr [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_lib.c:2051:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_OK_FALSE [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_lib.c:2070:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_lib.c:2078:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_lib.c:2089:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_OS_BASE_ERR [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_lib.c:2131:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_scsi_sense_hdr [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_lib.c:2181:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_NO_SENSE [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_lib.c:2254:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_VARIABLE_LENGTH_CMD [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_lib.c:2346:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_VARIABLE_LENGTH_CMD [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_lib.c:2382:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_lib_nvme_nvm_cmd_arr [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_lib.c:2495:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_lib_scsi_feature_sets [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_lib.c:2629:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_lib_nvme_cmd_status_arr [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_lib.c:2660:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_lib_nvme_cmd_status_arr [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_lib.c:2870:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_lib.c:2877:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_lib.c:3337:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCNx64 [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_lib.c:3458:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCNx64 [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_lib.c:3491:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_lib.c:3800:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_lib.c:3857:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_lib.c:3883:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_lib_version_str [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_linux_nvme.c:1912:1: error: Unmatched '{'. Configuration: '__GNUC__=1'. [syntaxError] ddpt-0.97/lib/sg_pt_osf1.c:83:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_osf1.c:97:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_osf1.c:149:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_osf1.c:183:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAM_DIR_NONE [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_osf1.c:217:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAM_DIR_NONE [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_osf1.c:232:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAM_DIR_NONE [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_osf1.c:289:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAM_DIR_IN [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_osf1.c:305:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAM_DIR_OUT [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_osf1.c:361:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XPT_REL_SIMQ [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_osf1.c:383:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ADDL_SENSE_LENGTH [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_osf1.c:486:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_PT_RESULT_OS_ERR [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_osf1.c:651:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_PT_DO_NOT_SUPPORTED [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_linux.c:439:18: error: Deallocation of an auto-variable (.) results in undefined behaviour. [autovarInvalidDeallocation] ddpt-0.97/lib/sg_pt_linux.c:431:41: note: Address of variable taken here. ddpt-0.97/lib/sg_pt_linux.c:439:18: note: Deallocating memory that was not dynamically allocated ddpt-0.97/lib/sg_pt_linux.c:594:21: style: The statement 'if (!sg_duration_set_nano) sg_duration_set_nano=true' is logically equivalent to 'sg_duration_set_nano=true'. [duplicateConditionalAssign] ddpt-0.97/lib/sg_pt_linux.c:595:42: note: Assignment 'sg_duration_set_nano=true' ddpt-0.97/lib/sg_pt_linux.c:594:21: note: Condition '!sg_duration_set_nano' is redundant ddpt-0.97/lib/sg_pt_linux.c:438:13: style: Condition 'ptp' is always true [knownConditionTrueFalse] ddpt-0.97/lib/sg_pt_linux.c:453:9: style: Condition 'ptp' is always true [knownConditionTrueFalse] ddpt-0.97/lib/sg_pt_linux.c:485:14: style: Condition 'NULL==ptp' is always false [knownConditionTrueFalse] ddpt-0.97/lib/sg_pt_linux.c:797:15: style: Condition 'NULL==ptp' is always false [knownConditionTrueFalse] ddpt-0.97/lib/sg_pt_linux.c:854:14: style: Condition 'NULL==ptp' is always false [knownConditionTrueFalse] ddpt-0.97/lib/sg_pt_linux.c:865:14: style: Condition 'NULL==ptp' is always false [knownConditionTrueFalse] ddpt-0.97/lib/sg_pt_linux.c:143:19: warning:inconclusive: Width 126 given in format string (no. 1) is smaller than destination buffer 'a[128]'. [invalidScanfFormatWidth_smaller] ddpt-0.97/lib/sg_pt_linux.c:148:18: warning:inconclusive: Width 126 given in format string (no. 2) is smaller than destination buffer 'a[128]'. [invalidScanfFormatWidth_smaller] ddpt-0.97/lib/sg_pt_linux.c:131:12: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] ddpt-0.97/lib/sg_pt_linux.c:504:16: style: struct member 'sg_extended_info::sei_rd_mask' is never used. [unusedStructMember] ddpt-0.97/lib/sg_pt_linux.c:506:16: style: struct member 'sg_extended_info::ctl_flags_rd_mask' is never used. [unusedStructMember] ddpt-0.97/lib/sg_pt_linux.c:508:16: style: struct member 'sg_extended_info::read_value' is never used. [unusedStructMember] ddpt-0.97/lib/sg_pt_linux.c:510:16: style: struct member 'sg_extended_info::reserved_sz' is never used. [unusedStructMember] ddpt-0.97/lib/sg_pt_linux.c:511:16: style: struct member 'sg_extended_info::tot_fd_thresh' is never used. [unusedStructMember] ddpt-0.97/lib/sg_pt_linux.c:512:16: style: struct member 'sg_extended_info::minor_index' is never used. [unusedStructMember] ddpt-0.97/lib/sg_pt_linux.c:513:16: style: struct member 'sg_extended_info::share_fd' is never used. [unusedStructMember] ddpt-0.97/lib/sg_pt_linux.c:514:16: style: struct member 'sg_extended_info::sgat_elem_sz' is never used. [unusedStructMember] ddpt-0.97/lib/sg_pt_linux.c:515:16: style: struct member 'sg_extended_info::pad_to_96' is never used. [unusedStructMember] ddpt-0.97/lib/sg_pt_solaris.c:59:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_solaris.c:69:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_NONBLOCK [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_solaris.c:91:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_solaris.c:108:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USCSI_ISOLATE [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_solaris.c:145:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USCSI_ISOLATE [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_solaris.c:161:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USCSI_ISOLATE [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_solaris.c:217:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USCSI_READ [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_solaris.c:234:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USCSI_WRITE [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_solaris.c:292:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_warnings_strm [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_solaris.c:347:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_PT_RESULT_OS_ERR [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_solaris.c:530:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_PT_DO_NOT_SUPPORTED [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_solaris.c:128:14: error: Deallocation of an auto-variable (.) results in undefined behaviour. [autovarInvalidDeallocation] ddpt-0.97/lib/sg_pt_solaris.c:125:39: note: Address of variable taken here. ddpt-0.97/lib/sg_pt_solaris.c:128:14: note: Deallocating memory that was not dynamically allocated ddpt-0.97/lib/sg_pt_solaris.c:127:9: style: Condition 'ptp' is always true [knownConditionTrueFalse] ddpt-0.97/lib/sg_pt_solaris.c:138:9: style: Condition 'ptp' is always true [knownConditionTrueFalse] ddpt-0.97/lib/sg_pt_solaris.c:155:9: style: Condition 'ptp' is always true [knownConditionTrueFalse] ddpt-0.97/lib/sg_pt_solaris.c:494:12: style: Condition 'ptp' is always true [knownConditionTrueFalse] ddpt-0.97/lib/sg_pt_solaris.c:72:15: style: Redundant assignment of 'flags_arg' to itself. [selfAssignment] ddpt-0.97/lib/sg_pt_solaris.c:244:8: style: Redundant assignment of 'vp' to itself. [selfAssignment] ddpt-0.97/lib/sg_pt_solaris.c:245:13: style: Redundant assignment of 'pack_id' to itself. [selfAssignment] ddpt-0.97/lib/sg_pt_solaris.c:253:8: style: Redundant assignment of 'vp' to itself. [selfAssignment] ddpt-0.97/lib/sg_pt_solaris.c:254:9: style: Redundant assignment of 'tag' to itself. [selfAssignment] ddpt-0.97/lib/sg_pt_solaris.c:264:14: style: Redundant assignment of 'tmf_code' to itself. [selfAssignment] ddpt-0.97/lib/sg_pt_solaris.c:273:15: style: Redundant assignment of 'attribute' to itself. [selfAssignment] ddpt-0.97/lib/sg_pt_solaris.c:274:14: style: Redundant assignment of 'priority' to itself. [selfAssignment] ddpt-0.97/lib/sg_pt_solaris.c:281:10: style: Redundant assignment of 'objp' to itself. [selfAssignment] ddpt-0.97/lib/sg_pt_solaris.c:282:11: style: Redundant assignment of 'flags' to itself. [selfAssignment] ddpt-0.97/lib/sg_pt_solaris.c:451:8: style: Redundant assignment of 'vp' to itself. [selfAssignment] ddpt-0.97/lib/sg_pt_solaris.c:503:8: style: Redundant assignment of 'vp' to itself. [selfAssignment] ddpt-0.97/lib/sg_pt_solaris.c:473:47: style: Parameter 'vp' can be declared as pointer to const [constParameterPointer] ddpt-0.97/lib/sg_pt_solaris.c:524:31: style: Parameter 'vp' can be declared as pointer to const [constParameterPointer] ddpt-0.97/lib/sg_pt_solaris.c:72:15: style: Variable 'flags_arg' is assigned a value that is never used. [unreadVariable] ddpt-0.97/lib/sg_pt_solaris.c:244:8: style: Variable 'vp' is assigned a value that is never used. [unreadVariable] ddpt-0.97/lib/sg_pt_solaris.c:245:13: style: Variable 'pack_id' is assigned a value that is never used. [unreadVariable] ddpt-0.97/lib/sg_pt_solaris.c:253:8: style: Variable 'vp' is assigned a value that is never used. [unreadVariable] ddpt-0.97/lib/sg_pt_solaris.c:254:9: style: Variable 'tag' is assigned a value that is never used. [unreadVariable] ddpt-0.97/lib/sg_pt_solaris.c:264:14: style: Variable 'tmf_code' is assigned a value that is never used. [unreadVariable] ddpt-0.97/lib/sg_pt_solaris.c:273:15: style: Variable 'attribute' is assigned a value that is never used. [unreadVariable] ddpt-0.97/lib/sg_pt_solaris.c:274:14: style: Variable 'priority' is assigned a value that is never used. [unreadVariable] ddpt-0.97/lib/sg_pt_solaris.c:281:10: style: Variable 'objp' is assigned a value that is never used. [unreadVariable] ddpt-0.97/lib/sg_pt_solaris.c:282:11: style: Variable 'flags' is assigned a value that is never used. [unreadVariable] ddpt-0.97/lib/sg_pt_solaris.c:451:8: style: Variable 'vp' is assigned a value that is never used. [unreadVariable] ddpt-0.97/lib/sg_pt_solaris.c:503:8: style: Variable 'vp' is assigned a value that is never used. [unreadVariable] ddpt-0.97/lib/sg_pt_osf1.c:201:14: error: Deallocation of an auto-variable (.) results in undefined behaviour. [autovarInvalidDeallocation] ddpt-0.97/lib/sg_pt_osf1.c:198:36: note: Address of variable taken here. ddpt-0.97/lib/sg_pt_osf1.c:201:14: note: Deallocating memory that was not dynamically allocated ddpt-0.97/lib/sg_pt_osf1.c:125:9: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] ddpt-0.97/lib/sg_pt_osf1.c:180:9: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] ddpt-0.97/lib/sg_pt_osf1.c:214:9: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] ddpt-0.97/lib/sg_pt_osf1.c:271:13: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] ddpt-0.97/lib/sg_pt_osf1.c:354:5: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] ddpt-0.97/lib/sg_pt_osf1.c:355:5: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] ddpt-0.97/lib/sg_pt_osf1.c:434:5: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] ddpt-0.97/lib/sg_pt_osf1.c:435:5: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] ddpt-0.97/lib/sg_pt_osf1.c:200:9: style: Condition 'ptp' is always true [knownConditionTrueFalse] ddpt-0.97/lib/sg_pt_osf1.c:211:9: style: Condition 'ptp' is always true [knownConditionTrueFalse] ddpt-0.97/lib/sg_pt_osf1.c:226:14: style: Condition 'NULL==ptp' is always false [knownConditionTrueFalse] ddpt-0.97/lib/sg_pt_osf1.c:612:12: style: Condition 'ptp' is always true [knownConditionTrueFalse] ddpt-0.97/lib/sg_pt_osf1.c:342:10: style: Redundant assignment of 'objp' to itself. [selfAssignment] ddpt-0.97/lib/sg_pt_osf1.c:343:11: style: Redundant assignment of 'flags' to itself. [selfAssignment] ddpt-0.97/lib/sg_pt_osf1.c:310:43: style: Parameter 'vp' can be declared as pointer to const [constParameterPointer] ddpt-0.97/lib/sg_pt_osf1.c:348:30: style: Variable 'ptp' can be declared as pointer to const [constVariablePointer] ddpt-0.97/lib/sg_pt_osf1.c:349:30: style: Variable 'fdchan' can be declared as pointer to const [constVariablePointer] ddpt-0.97/lib/sg_pt_osf1.c:379:30: style: Variable 'fdchan' can be declared as pointer to const [constVariablePointer] ddpt-0.97/lib/sg_pt_osf1.c:645:31: style: Parameter 'vp' can be declared as pointer to const [constParameterPointer] ddpt-0.97/lib/sg_pt_osf1.c:342:10: style: Variable 'objp' is assigned a value that is never used. [unreadVariable] ddpt-0.97/lib/sg_pt_osf1.c:343:11: style: Variable 'flags' is assigned a value that is never used. [unreadVariable] ddpt-0.97/lib/sg_pt_osf1.c:348:34: style: Variable 'ptp' is assigned a value that is never used. [unreadVariable] ddpt-0.97/lib/sg_pt_osf1.c:348:30: style: Variable 'ptp' is assigned a value that is never used. [unreadVariable] ddpt-0.97/lib/sg_pt_osf1.c:380:9: style: Unused variable: len [unusedVariable] ddpt-0.97/lib/sg_pt_osf1.c:380:14: style: Unused variable: retval [unusedVariable] ddpt-0.97/lib/sg_pt_win32.c:294:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FORMAT_MESSAGE_ALLOCATE_BUFFER [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_win32.c:328:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EBADF [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_win32.c:374:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FILE_SHARE_READ [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_win32.c:493:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENODEV [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_win32.c:524:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_win32.c:592:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IOCTL_STORAGE_QUERY_PROPERTY [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_win32.c:639:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_win32.c:683:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_win32.c:771:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_win32.c:847:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_IOCTL_DATA_UNSPECIFIED [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_win32.c:878:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_IOCTL_DATA_UNSPECIFIED [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_win32.c:960:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_IOCTL_DATA_IN [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_win32.c:979:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_IOCTL_DATA_OUT [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_win32.c:1055:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_PT_DO_BAD_PARAMS [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_win32.c:1131:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_PT_DO_BAD_PARAMS [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_win32.c:1235:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_win32.c:1288:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_PT_RESULT_TRANSPORT_ERR [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_win32.c:3128:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_win32.c:3143:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_PT_DO_NOT_SUPPORTED [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt.c:136:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_FILE_ERROR [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt.c:231:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_FILE_ERROR [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt.c:362:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt.c:425:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_UNIT_ATTENTION [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt.c:548:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_UNIT_ATTENTION [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt.c:651:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt.c:737:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt.c:750:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt.c:773:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt.c:821:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt.c:852:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt.c:885:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt.c:995:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt.c:1114:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt.c:1234:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt.c:1294:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt.c:1341:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt.c:1380:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt.c:1472:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt.c:1524:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt.c:1549:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt.c:1572:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt.c:1724:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt.c:1893:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt.c:1921:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt.c:2034:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt.c:2195:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt.c:2226:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt.c:2412:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt.c:2491:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_OTHER [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt.c:2606:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt.c:2946:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_OTHER [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt.c:3032:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_SYNTAX_ERROR [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt.c:3332:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt.c:3362:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt.c:3438:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_SYNTAX_ERROR [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt.c:3508:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_pt_win32.c:331:22: portability: Undefined behaviour, when 'index' is 31 the pointer arithmetic 'handle_arr+index' is out of bounds. [pointerOutOfBoundsCond] ddpt-0.97/lib/sg_pt_win32.c:324:31: note: Assuming that condition 'index>=32' is not redundant ddpt-0.97/lib/sg_pt_win32.c:331:22: note: Pointer arithmetic overflow ddpt-0.97/lib/sg_pt_win32.c:1230:37: warning: Either the condition 'vp' is redundant or there is possible null pointer dereference: vp. [nullPointerRedundantCheck] ddpt-0.97/lib/sg_pt_win32.c:1233:12: note: Assuming that condition 'vp' is not redundant ddpt-0.97/lib/sg_pt_win32.c:1230:37: note: Null pointer dereference ddpt-0.97/lib/sg_pt_win32.c:349:30: style: Same value in both branches of ternary operator. [duplicateValueTernary] ddpt-0.97/lib/sg_pt_win32.c:1037:10: style: Redundant assignment of 'objp' to itself. [selfAssignment] ddpt-0.97/lib/sg_pt_win32.c:1038:11: style: Redundant assignment of 'flags' to itself. [selfAssignment] ddpt-0.97/lib/sg_pt_win32.c:1233:24: style: Redundant initialization for 'psp'. The initialized value is overwritten before it is read. [redundantInitialization] ddpt-0.97/lib/sg_pt_win32.c:1230:35: note: psp is initialized ddpt-0.97/lib/sg_pt_win32.c:1233:24: note: psp is overwritten ddpt-0.97/lib/sg_pt_win32.c:1001:43: style: Parameter 'vp' can be declared as pointer to const [constParameterPointer] ddpt-0.97/lib/sg_pt_win32.c:3124:35: style: Parameter 'psp' can be declared as pointer to const [constParameterPointer] ddpt-0.97/lib/sg_pt_win32.c:3124:62: style: Parameter 'shp' can be declared as pointer to const [constParameterPointer] ddpt-0.97/lib/sg_pt_win32.c:3137:31: style: Parameter 'vp' can be declared as pointer to const [constParameterPointer] ddpt-0.97/lib/sg_pt_win32.c:728:9: warning: Size of pointer 'vp' used instead of size of its data. [pointerSize] ddpt-0.97/lib/sg_pt_win32.c:299:19: error: Uninitialized variable: lpMsgBuf [uninitvar] ddpt-0.97/lib/sg_pt_win32.c:115:10: style: union member 'STORAGE_DEVICE_DESCRIPTOR_DATA::raw' is never used. [unusedStructMember] ddpt-0.97/lib/sg_pt_win32.c:120:10: style: union member 'STORAGE_DEVICE_UID_DATA::raw' is never used. [unusedStructMember] ddpt-0.97/lib/sg_pt_win32.c:1037:10: style: Variable 'objp' is assigned a value that is never used. [unreadVariable] ddpt-0.97/lib/sg_pt_win32.c:1038:11: style: Variable 'flags' is assigned a value that is never used. [unreadVariable] ddpt-0.97/src/ddpt_cl.c:396:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_SYNTAX_ERROR [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_cl.c:781:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CONTRADICT [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_cl.c:1063:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_SYNTAX_ERROR [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_cl.c:1205:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CONTRADICT [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt.c:2891:13: style: The statement 'if (first_time) first_time=false' is logically equivalent to 'first_time=false'. [duplicateConditionalAssign] ddpt-0.97/src/ddpt.c:2892:24: note: Assignment 'first_time=false' ddpt-0.97/src/ddpt.c:2891:13: note: Condition 'first_time' is redundant ddpt-0.97/src/ddpt.c:3680:18: style: Condition 'ret=do_falloc(op)' is always false [knownConditionTrueFalse] ddpt-0.97/src/ddpt.c:3680:29: note: Calling function 'do_falloc' returns 0 ddpt-0.97/src/ddpt.c:3680:18: note: Condition 'ret=do_falloc(op)' is always false ddpt-0.97/src/ddpt.c:315:17: error: Resource leak: fd [resourceLeak] ddpt-0.97/src/ddpt.c:164:12: style: Redundant initialization for 'fd'. The initialized value is overwritten before it is read. [redundantInitialization] ddpt-0.97/src/ddpt.c:136:12: note: fd is initialized ddpt-0.97/src/ddpt.c:164:12: note: fd is overwritten ddpt-0.97/src/ddpt.c:255:12: style: Redundant initialization for 'fd'. The initialized value is overwritten before it is read. [redundantInitialization] ddpt-0.97/src/ddpt.c:231:12: note: fd is initialized ddpt-0.97/src/ddpt.c:255:12: note: fd is overwritten ddpt-0.97/src/ddpt.c:2694:29: style: Variable 'csp->cur_in_num' is reassigned a value before the old one has been used. [redundantAssignment] ddpt-0.97/src/ddpt.c:2679:29: note: csp->cur_in_num is assigned ddpt-0.97/src/ddpt.c:2694:29: note: csp->cur_in_num is overwritten ddpt-0.97/src/ddpt.c:2879:27: style: Variable 'csp->prev_out_lba' is reassigned a value before the old one has been used. [redundantAssignment] ddpt-0.97/src/ddpt.c:2827:35: note: csp->prev_out_lba is assigned ddpt-0.97/src/ddpt.c:2879:27: note: csp->prev_out_lba is overwritten ddpt-0.97/src/ddpt.c:140:22: style: Variable 'ifp' can be declared as pointer to const [constVariablePointer] ddpt-0.97/src/ddpt.c:833:15: style: Variable 'bp' can be declared as pointer to const [constVariablePointer] ddpt-0.97/src/ddpt.c:1221:30: style: Parameter 'op' can be declared as pointer to const [constParameterPointer] ddpt-0.97/src/ddpt.c:1282:30: style: Parameter 'op' can be declared as pointer to const [constParameterPointer] ddpt-0.97/src/ddpt.c:1514:15: style: Variable 'bp' can be declared as pointer to const [constVariablePointer] ddpt-0.97/src/ddpt.c:1515:25: style: Variable 'der_dip' can be declared as pointer to const [constVariablePointer] ddpt-0.97/src/ddpt.c:1563:25: style: Variable 'der_dip' can be declared as pointer to const [constVariablePointer] ddpt-0.97/src/ddpt.c:1883:15: style: Variable 'bp' can be declared as pointer to const [constVariablePointer] ddpt-0.97/src/ddpt.c:1884:25: style: Variable 'der_dip' can be declared as pointer to const [constVariablePointer] ddpt-0.97/src/ddpt.c:1915:25: style: Variable 'sglip' can be declared as pointer to const [constVariablePointer] ddpt-0.97/src/ddpt.c:2501:29: style: Parameter 'wPos' can be declared as pointer to const [constParameterPointer] ddpt-0.97/src/ddpt.c:3240:27: style: Parameter 'op' can be declared as pointer to const [constParameterPointer] ddpt-0.97/src/ddpt.c:3430:25: style: Variable 'isglip' can be declared as pointer to const [constVariablePointer] ddpt-0.97/src/ddpt.c:3431:25: style: Variable 'osglip' can be declared as pointer to const [constVariablePointer] ddpt-0.97/src/ddpt.c:3565:37: style: Variable 'hold_sgep' can be declared as pointer to const [constVariablePointer] ddpt-0.97/src/ddpt.c:3583:37: style: Variable 'hold_sgep' can be declared as pointer to const [constVariablePointer] ddpt-0.97/src/ddpt.c:3600:33: style: Variable 'hold_sgep' can be declared as pointer to const [constVariablePointer] ddpt-0.97/src/ddpt_cl.c:358:10: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] ddpt-0.97/src/ddpt_cl.c:361:14: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] ddpt-0.97/src/ddpt.c:2084:25: style: Variable 'res' is assigned a value that is never used. [unreadVariable] ddpt-0.97/src/ddpt.c:2091:25: style: Variable 'res' is assigned a value that is never used. [unreadVariable] ddpt-0.97/src/ddpt.c:2148:17: style: Variable 'res' is assigned a value that is never used. [unreadVariable] ddpt-0.97/src/ddpt.c:2154:17: style: Variable 'res' is assigned a value that is never used. [unreadVariable] ddpt-0.97/src/ddpt_cl.c:370:27: style: Parameter 'op' can be declared as pointer to const [constParameterPointer] ddpt-0.97/src/ddpt_cl.c:1053:12: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] ddpt-0.97/src/ddpt_cl.c:1165:47: style: Parameter 'argv' can be declared as const array [constParameter] ddpt-0.97/src/ddpt_com.c:216:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_com.c:439:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_com.c:640:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_com.c:1073:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_com.c:1083:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_com.c:1249:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_DFL [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_com.c:1351:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_com.c:1457:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_com.c:1541:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_MEDIUM_HARD [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_com.c:1607:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx32 [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_com.c:1717:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable num [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_com.c:1831:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_com.c:1970:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_SYNTAX_ERROR [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_com.c:2149:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_com.c:2288:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_com.c:2424:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_com.c:2492:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_com.c:2526:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_com.c:2635:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lba [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_com.c:2674:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_com.c:2699:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_com.c:2747:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_com.c:2834:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_com.c:2906:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lba [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_com.c:2948:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_com.c:3027:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_com.c:3054:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_com.c:3136:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_pt.c:157:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_EXCL [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_pt.c:217:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_pt.c:542:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_pt.c:722:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_pt.c:943:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_pt.c:1056:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_NOT_READY [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_pt.c:1128:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_pt.c:1186:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_UNIT_ATTENTION [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_pt.c:1306:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_pt.c:1413:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_PT_RESULT_STATUS [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_pt.c:1462:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/lib/sg_lib.c:337:38: style: Variable 'ei2p' can be declared as pointer to const [constVariablePointer] ddpt-0.97/lib/sg_lib.c:3142:12: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] ddpt-0.97/lib/sg_lib.c:3266:12: style: Variable 'commap' can be declared as pointer to const [constVariablePointer] ddpt-0.97/lib/sg_lib.c:3305:12: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] ddpt-0.97/src/ddpt_pt.c:1385:18: style: Condition 'sa>=5' is always true [knownConditionTrueFalse] ddpt-0.97/src/ddpt_pt.c:1383:12: note: Assuming that condition 'sa<=4' is not redundant ddpt-0.97/src/ddpt_pt.c:1385:18: note: Condition 'sa>=5' is always true ddpt-0.97/src/ddpt_pt.c:1271:36: style:inconclusive: Function 'pt_3party_copy_out' argument 9 names different: declaration 'verbose' definition 'vb'. [funcArgNamesDifferent] ddpt-0.97/src/ddpt.h:890:40: note: Function 'pt_3party_copy_out' argument 9 names different: declaration 'verbose' definition 'vb'. ddpt-0.97/src/ddpt_pt.c:1271:36: note: Function 'pt_3party_copy_out' argument 9 names different: declaration 'verbose' definition 'vb'. ddpt-0.97/src/ddpt_pt.c:1366:65: style:inconclusive: Function 'pt_3party_copy_in' argument 8 names different: declaration 'verbose' definition 'vb'. [funcArgNamesDifferent] ddpt-0.97/src/ddpt.h:892:69: note: Function 'pt_3party_copy_in' argument 8 names different: declaration 'verbose' definition 'vb'. ddpt-0.97/src/ddpt_pt.c:1366:65: note: Function 'pt_3party_copy_in' argument 8 names different: declaration 'verbose' definition 'vb'. ddpt-0.97/src/ddpt_pt.c:324:11: style: Variable 'opc_arr' can be declared as pointer to const [constVariablePointer] ddpt-0.97/src/ddpt_pt.c:683:18: style: Variable 'may_coe' is assigned a value that is never used. [unreadVariable] ddpt-0.97/src/ddpt_com.c:2958:28: style:inconclusive: Boolean expression 'extend_last' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] ddpt-0.97/src/ddpt_com.c:2069:25: style: The statement 'if (pre_addr1) pre_addr1=false' is logically equivalent to 'pre_addr1=false'. [duplicateConditionalAssign] ddpt-0.97/src/ddpt_com.c:2070:35: note: Assignment 'pre_addr1=false' ddpt-0.97/src/ddpt_com.c:2069:25: note: Condition 'pre_addr1' is redundant ddpt-0.97/src/ddpt_com.c:645:19: style: Condition 'num_blks>0' is always true [knownConditionTrueFalse] ddpt-0.97/src/ddpt_com.c:639:18: note: Assuming that condition 'num_blks<=0' is not redundant ddpt-0.97/src/ddpt_com.c:645:19: note: Condition 'num_blks>0' is always true ddpt-0.97/src/ddpt_com.c:1507:31: style: Condition 'check_progress(op)' is always false [knownConditionTrueFalse] ddpt-0.97/src/ddpt_com.c:1507:31: note: Calling function 'check_progress' returns 0 ddpt-0.97/src/ddpt_com.c:1507:31: note: Condition 'check_progress(op)' is always false ddpt-0.97/src/ddpt_com.c:2732:21: style: Condition 'extra_blks<0' is always false [knownConditionTrueFalse] ddpt-0.97/src/ddpt_com.c:2721:20: note: Assuming that condition 'extra_blks<=0' is not redundant ddpt-0.97/src/ddpt_com.c:2723:19: note: Assuming condition is false ddpt-0.97/src/ddpt_com.c:2732:21: note: Condition 'extra_blks<0' is always false ddpt-0.97/src/ddpt_com.c:2867:36: warning: Either the condition 'NULL==sglip' is redundant or there is possible null pointer dereference: sglip. [nullPointerRedundantCheck] ddpt-0.97/src/ddpt_com.c:2869:15: note: Assuming that condition 'NULL==sglip' is not redundant ddpt-0.97/src/ddpt_com.c:2867:36: note: Null pointer dereference ddpt-0.97/src/ddpt_com.c:422:40: style:inconclusive: Function 'dd_filetype' argument 2 names different: declaration 'verbose' definition 'vb'. [funcArgNamesDifferent] ddpt-0.97/src/ddpt.h:684:44: note: Function 'dd_filetype' argument 2 names different: declaration 'verbose' definition 'vb'. ddpt-0.97/src/ddpt_com.c:422:40: note: Function 'dd_filetype' argument 2 names different: declaration 'verbose' definition 'vb'. ddpt-0.97/src/ddpt_com.c:1519:47: style:inconclusive: Function 'decode_designation_descriptor' argument 1 names different: declaration 'ucp' definition 'bp'. [funcArgNamesDifferent] ddpt-0.97/src/ddpt.h:706:52: note: Function 'decode_designation_descriptor' argument 1 names different: declaration 'ucp' definition 'bp'. ddpt-0.97/src/ddpt_com.c:1519:47: note: Function 'decode_designation_descriptor' argument 1 names different: declaration 'ucp' definition 'bp'. ddpt-0.97/src/ddpt_com.c:1675:32: style:inconclusive: Function 'count_sgl_blocks_from' argument 3 names different: declaration 'blk_off' definition 'skip_blks'. [funcArgNamesDifferent] ddpt-0.97/src/ddpt.h:749:41: note: Function 'count_sgl_blocks_from' argument 3 names different: declaration 'blk_off' definition 'skip_blks'. ddpt-0.97/src/ddpt_com.c:1675:32: note: Function 'count_sgl_blocks_from' argument 3 names different: declaration 'blk_off' definition 'skip_blks'. ddpt-0.97/src/ddpt_com.c:1816:32: style:inconclusive: Function 'cl2sgl' argument 2 names different: declaration 'arr_elems' definition 'arr_elemsp'. [funcArgNamesDifferent] ddpt-0.97/src/ddpt.h:714:56: note: Function 'cl2sgl' argument 2 names different: declaration 'arr_elems' definition 'arr_elemsp'. ddpt-0.97/src/ddpt_com.c:1816:32: note: Function 'cl2sgl' argument 2 names different: declaration 'arr_elems' definition 'arr_elemsp'. ddpt-0.97/src/ddpt_com.c:2130:16: style:inconclusive: Function 'file2sgl' argument 4 names different: declaration 'arr_elems' definition 'arr_elemsp'. [funcArgNamesDifferent] ddpt-0.97/src/ddpt.h:716:55: note: Function 'file2sgl' argument 4 names different: declaration 'arr_elems' definition 'arr_elemsp'. ddpt-0.97/src/ddpt_com.c:2130:16: note: Function 'file2sgl' argument 4 names different: declaration 'arr_elems' definition 'arr_elemsp'. ddpt-0.97/src/ddpt_com.c:2486:32: style:inconclusive: Function 'sgl_print' argument 5 names different: declaration 'show_sg' definition 'show_sgl'. [funcArgNamesDifferent] ddpt-0.97/src/ddpt.h:734:58: note: Function 'sgl_print' argument 5 names different: declaration 'show_sg' definition 'show_sgl'. ddpt-0.97/src/ddpt_com.c:2486:32: note: Function 'sgl_print' argument 5 names different: declaration 'show_sg' definition 'show_sgl'. ddpt-0.97/src/ddpt_com.c:2545:19: style:inconclusive: Function 'sgl_sum_scan' argument 4 names different: declaration 'b_verbose' definition 'b_vb'. [funcArgNamesDifferent] ddpt-0.97/src/ddpt.h:730:39: note: Function 'sgl_sum_scan' argument 4 names different: declaration 'b_verbose' definition 'b_vb'. ddpt-0.97/src/ddpt_com.c:2545:19: note: Function 'sgl_sum_scan' argument 4 names different: declaration 'b_verbose' definition 'b_vb'. ddpt-0.97/src/ddpt_com.c:2652:52: style:inconclusive: Function 'build_sgl' argument 2 names different: declaration 'count' definition 'blks'. [funcArgNamesDifferent] ddpt-0.97/src/ddpt.h:805:56: note: Function 'build_sgl' argument 2 names different: declaration 'count' definition 'blks'. ddpt-0.97/src/ddpt_com.c:2652:52: note: Function 'build_sgl' argument 2 names different: declaration 'count' definition 'blks'. ddpt-0.97/src/ddpt_com.c:2652:66: style:inconclusive: Function 'build_sgl' argument 3 names different: declaration 'offs' definition 'start_lba'. [funcArgNamesDifferent] ddpt-0.97/src/ddpt.h:805:71: note: Function 'build_sgl' argument 3 names different: declaration 'offs' definition 'start_lba'. ddpt-0.97/src/ddpt_com.c:2652:66: note: Function 'build_sgl' argument 3 names different: declaration 'offs' definition 'start_lba'. ddpt-0.97/src/ddpt_com.c:2934:38: style:inconclusive: Function 'iter_add_process' argument 1 names different: declaration 'iter_p' definition 'ip'. [funcArgNamesDifferent] ddpt-0.97/src/ddpt.h:781:42: note: Function 'iter_add_process' argument 1 names different: declaration 'iter_p' definition 'ip'. ddpt-0.97/src/ddpt_com.c:2934:38: note: Function 'iter_add_process' argument 1 names different: declaration 'iter_p' definition 'ip'. ddpt-0.97/src/ddpt_com.c:2935:73: style:inconclusive: Function 'iter_add_process' argument 7 names different: declaration 'verbose' definition 'vb'. [funcArgNamesDifferent] ddpt-0.97/src/ddpt.h:783:26: note: Function 'iter_add_process' argument 7 names different: declaration 'verbose' definition 'vb'. ddpt-0.97/src/ddpt_com.c:2935:73: note: Function 'iter_add_process' argument 7 names different: declaration 'verbose' definition 'vb'. ddpt-0.97/src/ddpt_com.c:3024:74: style:inconclusive: Function 'output_sge_f' argument 4 names different: declaration 'verbose' definition 'vb'. [funcArgNamesDifferent] ddpt-0.97/src/ddpt.h:850:22: note: Function 'output_sge_f' argument 4 names different: declaration 'verbose' definition 'vb'. ddpt-0.97/src/ddpt_com.c:3024:74: note: Function 'output_sge_f' argument 4 names different: declaration 'verbose' definition 'vb'. ddpt-0.97/src/ddpt_com.c:602:37: style: Parameter 'op' can be declared as pointer to const [constParameterPointer] ddpt-0.97/src/ddpt_com.c:602:66: style: Parameter 'num_blks' can be declared as pointer to const [constParameterPointer] ddpt-0.97/src/ddpt_com.c:603:27: style: Parameter 'blk_sz' can be declared as pointer to const [constParameterPointer] ddpt-0.97/src/ddpt_com.c:705:36: style: Parameter 'op' can be declared as pointer to const [constParameterPointer] ddpt-0.97/src/ddpt_com.c:734:76: style: Parameter 'op' can be declared as pointer to const [constParameterPointer] ddpt-0.97/src/ddpt_com.c:2775:33: style: Variable 'sgep' can be declared as pointer to const [constVariablePointer] ddpt-0.97/src/ddpt_com.c:2819:35: style: Parameter 'sglp' can be declared as pointer to const [constParameterPointer] ddpt-0.97/src/ddpt_com.c:1372:15: style: Variable 'delay' is assigned a value that is never used. [unreadVariable] ddpt-0.97/src/ddpt_com.c:2273:13: style: Variable 'res' is assigned a value that is never used. [unreadVariable] ddpt-0.97/src/ddpt_com.c:2392:23: style: Variable 'b_off' is assigned a value that is never used. [unreadVariable] ddpt-0.97/src/ddpt_com.c:2396:21: style: Variable 'ablocks' is assigned a value that is never used. [unreadVariable] ddpt-0.97/src/ddpt_com.c:2491:40: style: Variable 'sgep' is assigned a value that is never used. [unreadVariable] ddpt-0.97/src/ddptctl.c:268:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx16 [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddptctl.c:381:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_FILE_ERROR [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddptctl.c:536:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddptctl.c:581:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_SYNTAX_ERROR [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddptctl.c:619:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddptctl.c:709:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_sgl.cpp:314:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_sgl.cpp:328:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_sgl.cpp:479:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_sgl.cpp:573:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_sgl.cpp:589:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_sgl.cpp:689:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_sgl.cpp:717:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_sgl.cpp:769:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_sgl.cpp:886:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_sgl.cpp:1060:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_sgl.cpp:1196:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_SYNTAX_ERROR [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_sgl.cpp:1307:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_sgl.cpp:1344:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_sgl.cpp:1460:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_sgl.cpp:1623:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_SYNTAX_ERROR [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_sgl.cpp:1718:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_sgl.cpp:2000:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_xcopy.c:250:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_xcopy.c:284:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_xcopy.c:589:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_ILLEGAL_REQ [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_xcopy.c:709:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_SYNTAX_ERROR [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_xcopy.c:891:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_xcopy.c:1000:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_xcopy.c:1162:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_xcopy.c:1300:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_ILLEGAL_REQ [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_xcopy.c:1370:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_OTHER [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_xcopy.c:1455:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_xcopy.c:1741:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu32 [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_xcopy.c:1840:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_xcopy.c:1971:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_ILLEGAL_REQ [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_xcopy.c:2052:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_CAT_UNIT_ATTENTION [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_xcopy.c:2097:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_LIB_SYNTAX_ERROR [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_xcopy.c:2194:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_xcopy.c:2289:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_xcopy.c:2448:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddpt_xcopy.c:2669:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] ddpt-0.97/src/ddptctl.c:392:9: error: Resource leak: fd [resourceLeak] ddpt-0.97/src/ddptctl.c:400:13: error: Resource leak: fd [resourceLeak] ddpt-0.97/src/ddptctl.c:449:31: style: Parameter 'op' can be declared as pointer to const [constParameterPointer] ddpt-0.97/src/ddptctl.c:550:28: style: Parameter 'op' can be declared as pointer to const [constParameterPointer] ddpt-0.97/src/ddpt_xcopy.c:1434:12: warning: Identical condition and return expression 'res', return value is always 0 [identicalConditionAfterEarlyExit] ddpt-0.97/src/ddpt_xcopy.c:1428:9: note: If condition 'res' is true, the function will return/exit ddpt-0.97/src/ddpt_xcopy.c:1434:12: note: Returning identical expression 'res' ddpt-0.97/src/ddpt_xcopy.c:193:38: style: Parameter 'op' can be declared as pointer to const [constParameterPointer] ddpt-0.97/src/ddpt_xcopy.c:218:47: style: Parameter 'src_desc' can be declared as pointer to const [constParameterPointer] ddpt-0.97/src/ddpt_xcopy.c:219:27: style: Parameter 'dst_desc' can be declared as pointer to const [constParameterPointer] ddpt-0.97/src/ddpt_xcopy.c:571:32: style: Variable 'best' can be declared as pointer to const [constVariablePointer] ddpt-0.97/src/ddpt_xcopy.c:577:22: style: Variable 'flp' can be declared as pointer to const [constVariablePointer] ddpt-0.97/src/ddpt_xcopy.c:1819:38: style: Parameter 'tokp' can be declared as pointer to const [constParameterPointer] ddpt-0.97/src/ddpt_xcopy.c:1829:22: style: Variable 'flp' can be declared as pointer to const [constVariablePointer] ddpt-0.97/src/ddpt_xcopy.c:2048:22: style: Variable 'flagp' can be declared as pointer to const [constVariablePointer] ddpt-0.97/src/ddpt_xcopy.c:1259:17: style: int result is assigned to long variable. If the variable is long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] ddpt-0.97/src/ddpt_xcopy.c:1261:17: style: int result is assigned to long variable. If the variable is long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] ddpt-0.97/src/ddpt_xcopy.c:1273:17: style: int result is assigned to long variable. If the variable is long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] ddpt-0.97/src/ddpt_xcopy.c:1501:13: style: Variable 'sz_bdrd' is assigned a value that is never used. [unreadVariable] ddpt-0.97/src/ddpt_sgl.cpp:498:25: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] ddpt-0.97/src/ddpt_sgl.cpp:604:25: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] ddpt-0.97/src/ddpt_sgl.cpp:2260:33: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] ddpt-0.97/src/ddpt_sgl.cpp:2404:33: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] ddpt-0.97/src/ddpt_sgl.cpp:1882:20: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] ddpt-0.97/src/ddpt_sgl.cpp:1881:16: note: outer condition: optind