2025-07-10 00:41 ftp://ftp.de.debian.org/debian/pool/main/m/minc-tools/minc-tools_2.3.00+dfsg.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j6 platform: Linux-6.1.0-37-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.67 compiler: g++ (Debian 12.2.0-14+deb12u1) 12.2.0 cppcheck: head 2.17.0 head-info: 8f3d36a (2025-07-08 11:07:56 +0200) count: 2186 1856 elapsed-time: 6.7 7.0 head-timing-info: old-timing-info: head results: minc-tools-2.3.00+dfsg/conversion/Acr_nema/acr_test.c:22:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_test.c:19:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_test.c:17:10: style: Variable 'error_type' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_test.c:17:23: style: Variable 'error_string' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/Acr_nema/acr_test.c:20:10: style: Variable 'error_type' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/Acr_nema/acr_test.c:20:23: style: Variable 'error_string' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/Acr_nema/copy_acr_nema.c:60:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dump_acr_nema.c:190:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/acr_io.c:219:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_LITTLE_ENDIAN [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/acr_io.c:294:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_LITTLE_ENDIAN [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/acr_io.c:517:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_SIZEOF_SHORT [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/acr_io.c:539:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_SIZEOF_LONG [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/acr_io.c:562:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_SIZEOF_FLOAT [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/acr_io.c:585:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_SIZEOF_DOUBLE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/acr_io.c:608:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_SIZEOF_SHORT [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/acr_io.c:630:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_SIZEOF_LONG [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/acr_io.c:652:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_SIZEOF_FLOAT [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/acr_io.c:674:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_SIZEOF_DOUBLE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/acr_io.c:702:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/acr_io.c:749:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/acr_io.c:795:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/acr_io.c:830:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/acr_io.c:873:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_SIZEOF_SHORT [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/acr_io.c:951:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_SIZEOF_SHORT [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/acr_io.c:978:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_SIZEOF_SHORT [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/acr_io.c:1037:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_SIZEOF_SHORT [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/acr_io.c:1143:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_SIZEOF_SHORT [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_client_routines.c:258:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_client_routines.c:307:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_client_routines.c:428:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_client_routines.c:558:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DCM_PDU_Maximum_length [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_client_routines.c:679:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_client_routines.c:796:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DCM_PDU_Type [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_client_routines.c:885:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_client_routines.c:917:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_client_routines.c:991:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_client_routines.c:1077:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_client_routines.c:1104:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_client_routines.c:1177:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_client_routines.c:1241:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_client_routines.c:1348:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_Affected_SOP_class_UID [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_client_routines.c:1475:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_OK [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/copy_acr_nema.c:57:10: style: Variable 'pname' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/Acr_nema/copy_acr_nema.c:58:10: style: Variable 'infile' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/Acr_nema/copy_acr_nema.c:59:10: style: Variable 'outfile' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/Acr_nema/copy_acr_nema.c:67:10: style: Variable 'status_string' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/Acr_nema/copy_acr_nema.c:70:10: style: Variable 'usage' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/Acr_nema/element.c:180:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_EXPLICIT_VR [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/element.c:365:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_EXPLICIT_VR [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/element.c:386:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_LITTLE_ENDIAN [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/element.c:409:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/element.c:467:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_ITEM_GROUP [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/element.c:573:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_IMPLICIT_VR [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/element.c:608:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_BIG_ENDIAN [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/element.c:648:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_SIZEOF_SHORT [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/element.c:820:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_OK [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/element.c:931:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_VARIABLE_LENGTH [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/element.c:1024:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_SIZEOF_SHORT [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/element.c:1097:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_VR_UNKNOWN [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/element.c:1238:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_VR_FD [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/element.c:1277:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_VR_UNKNOWN [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/element.c:1322:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_VR_SQ [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/element.c:1456:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_SIZEOF_SHORT [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/element.c:1501:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_SIZEOF_DOUBLE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/element.c:1543:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/element.c:1586:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/element.c:1652:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/element.c:1756:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _acr_name_proc [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:399:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:491:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_SIZEOF_LONG [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:517:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:537:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_SIZEOF_LONG [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:637:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:693:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_SIZEOF_LONG [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:710:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_SIZEOF_LONG [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:738:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:755:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_SIZEOF_LONG [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:785:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_SIZEOF_LONG [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:804:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_SIZEOF_SHORT [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:893:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_PDU_UID_TOO_LONG [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:922:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_SIZEOF_LONG [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:980:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_OK [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:1022:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_OK [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:1089:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_OK [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:1156:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_OK [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:1234:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_VR_UI [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:1258:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_BIG_ENDIAN [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:1292:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:1418:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DCM_PDU_Type [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:1482:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DCM_PDU_Result [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:1506:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_PDU_REL_RQ [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:1525:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_PDU_REL_RP [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:1545:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DCM_PDU_Source [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:1582:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_SIZEOF_LONG [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:1616:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_PROTOCOL_ERROR [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:1708:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_SIZEOF_SHORT [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:1786:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_SIZEOF_SHORT [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:1874:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_SIZEOF_SHORT [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:1973:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_SIZEOF_SHORT [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:2280:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_NO_WATCHPOINT [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:2370:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_NO_WATCHPOINT [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:2404:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_NO_WATCHPOINT [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:2574:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_NO_WATCHPOINT [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:2611:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:2668:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_SIZEOF_LONG [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:2740:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_SIZEOF_LONG [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/extract_acr_nema.c:93:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/acr_io.c:989:11: style: Variable 'status' is reassigned a value before the old one has been used. [redundantAssignment] minc-tools-2.3.00+dfsg/conversion/Acr_nema/acr_io.c:984:11: note: status is assigned minc-tools-2.3.00+dfsg/conversion/Acr_nema/acr_io.c:989:11: note: status is overwritten minc-tools-2.3.00+dfsg/conversion/Acr_nema/acr_io.c:291:10: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/Acr_nema/acr_io.c:1064:14: style: Variable 'offset' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/Acr_nema/acr_io.c:1070:14: style: Variable 'offset' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/Acr_nema/acr_io.c:1173:14: style: Variable 'offset' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/Acr_nema/acr_io.c:1182:17: style: Variable 'offset' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/Acr_nema/acr_io.c:1189:17: style: Variable 'offset' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dump_acr_nema.c:156:13: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dump_acr_nema.c:167:13: warning: If memory allocation fails, then there is a possible null pointer dereference: tg_ptr [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dump_acr_nema.c:166:28: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/Acr_nema/dump_acr_nema.c:166:28: note: Assignment 'tg_ptr=malloc(sizeof(struct table_group))', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/Acr_nema/dump_acr_nema.c:167:13: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/Acr_nema/dump_acr_nema.c:169:13: warning: If memory allocation fails, then there is a possible null pointer dereference: tg_ptr [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dump_acr_nema.c:166:28: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/Acr_nema/dump_acr_nema.c:166:28: note: Assignment 'tg_ptr=malloc(sizeof(struct table_group))', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/Acr_nema/dump_acr_nema.c:169:13: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/Acr_nema/dump_acr_nema.c:170:13: warning: If memory allocation fails, then there is a possible null pointer dereference: tg_ptr [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dump_acr_nema.c:166:28: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/Acr_nema/dump_acr_nema.c:166:28: note: Assignment 'tg_ptr=malloc(sizeof(struct table_group))', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/Acr_nema/dump_acr_nema.c:170:13: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/Acr_nema/dump_acr_nema.c:174:9: warning: If memory allocation fails, then there is a possible null pointer dereference: te_ptr [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dump_acr_nema.c:173:24: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/Acr_nema/dump_acr_nema.c:173:24: note: Assignment 'te_ptr=malloc(sizeof(struct table_element))', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/Acr_nema/dump_acr_nema.c:174:9: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/Acr_nema/dump_acr_nema.c:175:9: warning: If memory allocation fails, then there is a possible null pointer dereference: te_ptr [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dump_acr_nema.c:173:24: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/Acr_nema/dump_acr_nema.c:173:24: note: Assignment 'te_ptr=malloc(sizeof(struct table_element))', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/Acr_nema/dump_acr_nema.c:175:9: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/Acr_nema/dump_acr_nema.c:175:24: warning: If memory allocation fails, then there is a possible null pointer dereference: tg_ptr [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dump_acr_nema.c:166:28: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/Acr_nema/dump_acr_nema.c:166:28: note: Assignment 'tg_ptr=malloc(sizeof(struct table_group))', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/Acr_nema/dump_acr_nema.c:175:24: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/Acr_nema/dump_acr_nema.c:176:9: warning: If memory allocation fails, then there is a possible null pointer dereference: tg_ptr [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dump_acr_nema.c:166:28: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/Acr_nema/dump_acr_nema.c:166:28: note: Assignment 'tg_ptr=malloc(sizeof(struct table_group))', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/Acr_nema/dump_acr_nema.c:176:9: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/Acr_nema/dump_acr_nema.c:177:17: warning: If memory allocation fails, then there is a possible null pointer dereference: te_ptr [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dump_acr_nema.c:173:24: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/Acr_nema/dump_acr_nema.c:173:24: note: Assignment 'te_ptr=malloc(sizeof(struct table_element))', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/Acr_nema/dump_acr_nema.c:177:17: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/Acr_nema/dump_acr_nema.c:136:24: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dump_acr_nema.c:187:10: style: Variable 'pname' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dump_acr_nema.c:188:10: style: Variable 'file' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dump_acr_nema.c:189:10: style: Variable 'maxidstr' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dump_acr_nema.c:197:10: style: Variable 'status_string' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dump_acr_nema.c:202:10: style: Variable 'usage' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/Acr_nema/file_io.c:477:0: error: #error Must have mkstemp() or tmpnam() available. [preprocessorErrorDirective] minc-tools-2.3.00+dfsg/conversion/Acr_nema/file_io.c:477:2: error: #error Must have mkstemp() or tmpnam() available. [preprocessorErrorDirective] minc-tools-2.3.00+dfsg/conversion/Acr_nema/group.c:180:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_SIZEOF_LONG [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/group.c:347:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_IMPLICIT_VR [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/group.c:423:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_IMPLICIT_VR [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/group.c:464:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/group.c:533:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/group.c:647:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_EID_GRPLEN [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/group.c:735:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_IMPLICIT_VR [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/group.c:808:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_OK [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/group.c:966:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_OK [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/group.c:1017:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_OK [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/group.c:1527:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_OK [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/message.c:216:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_IMPLICIT_VR [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/message.c:305:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_IMPLICIT_VR [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/message.c:383:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_IMPLICIT_VR [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/message.c:440:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_OK [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/message.c:560:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_OK [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/extract_acr_nema.c:89:10: style: Variable 'pname' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/Acr_nema/extract_acr_nema.c:90:10: style: Variable 'filename' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/Acr_nema/extract_acr_nema.c:105:10: style: Variable 'usage' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/Acr_nema/read_acr_nema.c:98:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/message.c:256:25: style: The if condition is the same as the previous if condition [duplicateCondition] minc-tools-2.3.00+dfsg/conversion/Acr_nema/message.c:207:25: note: First condition minc-tools-2.3.00+dfsg/conversion/Acr_nema/message.c:256:25: note: Second condition minc-tools-2.3.00+dfsg/conversion/Acr_nema/read_acr_nema.c:86:10: style: Variable 'pname' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/Acr_nema/read_acr_nema.c:86:18: style: Variable 'filename' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/Acr_nema/message.c:494:26: style: Variable 'get_more_groups' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/Acr_nema/group.c:506:20: style: Variable 'next_element' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/ana2mnc/doc/make_hdr.c:19:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] minc-tools-2.3.00+dfsg/conversion/Acr_nema/sample_dicom_client.c:105:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/sample_dicom_client.c:162:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/value_repr.c:178:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_VR_NUM_TYPES [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/value_repr.c:214:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_VR_NUM_TYPES [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/value_repr.c:249:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_VR_NUM_TYPES [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/value_repr.c:308:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Acr_VR_Type [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/value_repr.c:332:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Acr_VR_Type [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/value_repr.c:464:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_SIZEOF_SHORT [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/value_repr.c:480:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_SIZEOF_LONG [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/value_repr.c:496:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_SIZEOF_FLOAT [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/value_repr.c:512:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_SIZEOF_DOUBLE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/ana2mnc/doc/make_hdr.c:19:22: style: Parameter 'argv' can be declared as const array [constParameter] minc-tools-2.3.00+dfsg/conversion/ana2mnc/doc/make_hdr.c:23:17: style: Variable 'DataTypes' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/ana2mnc/doc/make_hdr.c:27:16: style: Variable 'DataTypeSizes' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/Acr_nema/value_repr.c:179:13: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] minc-tools-2.3.00+dfsg/conversion/Acr_nema/value_repr.c:179:13: portability: %lu in format string (no. 2) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] minc-tools-2.3.00+dfsg/conversion/Acr_nema/value_repr.c:242:39: style: Parameter 'vr_name' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/Acr_nema/value_repr.c:283:18: style: Variable 'entry' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/Acr_nema/value_repr.c:442:41: style: Parameter 'vr_entry' can be declared as pointer to const. However it seems that 'return_zero' is a callback function, if 'vr_entry' is declared with const you might also need to cast function pointer(s). [constParameterCallback] minc-tools-2.3.00+dfsg/conversion/Acr_nema/value_repr.c:357:50: note: You might need to cast the function pointer here minc-tools-2.3.00+dfsg/conversion/Acr_nema/value_repr.c:442:41: note: Parameter 'vr_entry' can be declared as pointer to const minc-tools-2.3.00+dfsg/conversion/Acr_nema/value_repr.c:444:33: style: Parameter 'data' can be declared as pointer to const. However it seems that 'return_zero' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] minc-tools-2.3.00+dfsg/conversion/Acr_nema/value_repr.c:357:50: note: You might need to cast the function pointer here minc-tools-2.3.00+dfsg/conversion/Acr_nema/value_repr.c:444:33: note: Parameter 'data' can be declared as pointer to const minc-tools-2.3.00+dfsg/conversion/Acr_nema/value_repr.c:450:47: style: Parameter 'vr_entry' can be declared as pointer to const. However it seems that 'string_to_numeric' is a callback function, if 'vr_entry' is declared with const you might also need to cast function pointer(s). [constParameterCallback] minc-tools-2.3.00+dfsg/conversion/Acr_nema/value_repr.c:139:29: note: You might need to cast the function pointer here minc-tools-2.3.00+dfsg/conversion/Acr_nema/value_repr.c:450:47: note: Parameter 'vr_entry' can be declared as pointer to const minc-tools-2.3.00+dfsg/conversion/Acr_nema/value_repr.c:452:39: style: Parameter 'data' can be declared as pointer to const. However it seems that 'string_to_numeric' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] minc-tools-2.3.00+dfsg/conversion/Acr_nema/value_repr.c:139:29: note: You might need to cast the function pointer here minc-tools-2.3.00+dfsg/conversion/Acr_nema/value_repr.c:452:39: note: Parameter 'data' can be declared as pointer to const minc-tools-2.3.00+dfsg/conversion/Acr_nema/value_repr.c:589:46: style: Parameter 'vr_entry' can be declared as pointer to const. However it seems that 'return_the_string' is a callback function, if 'vr_entry' is declared with const you might also need to cast function pointer(s). [constParameterCallback] minc-tools-2.3.00+dfsg/conversion/Acr_nema/value_repr.c:140:49: note: You might need to cast the function pointer here minc-tools-2.3.00+dfsg/conversion/Acr_nema/value_repr.c:589:46: note: Parameter 'vr_entry' can be declared as pointer to const minc-tools-2.3.00+dfsg/conversion/ana2mnc/doc/show_hdr.c:13:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] minc-tools-2.3.00+dfsg/conversion/ana2mnc/doc/show_hdr.c:19:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/sample_dicom_client.c:94:10: style: Variable 'pname' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/Acr_nema/sample_dicom_client.c:151:63: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/analyze2minc.c:223:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] minc-tools-2.3.00+dfsg/conversion/ana2mnc/doc/show_hdr.c:33:20: style: Parameter 'fileName' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/analyze2minc.c:276:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dcm2mnc.c:314:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _S_IFMT [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dcm2mnc.c:669:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dcm2mnc.c:726:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dcm2mnc.c:1015:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dcm2mnc.c:1038:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dcm2mnc.c:1067:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_client_routines.c:418:4: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_client_routines.c:424:19: portability: Non reentrant function 'getservbyname' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getservbyname_r'. [prohibitedgetservbynameCalled] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_client_routines.c:441:19: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_client_routines.c:442:7: style: Obsolescent function 'bcopy' called. It is recommended to use 'memcpy' or 'memmove' instead. [prohibitedbcopyCalled] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_client_routines.c:404:32: style: Parameter 'host' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_client_routines.c:404:44: style: Parameter 'port' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_client_routines.c:407:20: style: Variable 'sp' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_client_routines.c:408:20: style: Variable 'hp' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_client_routines.c:881:23: style: Variable 'client_data' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_client_routines.c:913:23: style: Variable 'client_data' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_client_routines.c:1049:23: style: Variable 'client_data' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_client_routines.c:1069:48: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_client_routines.c:1071:10: style: Variable 'error' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_client_routines.c:1252:26: style: Variable 'keep_looping' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/Acr_nema/element.c:1810:20: style: Local variable 'i' shadows outer variable [shadowVariable] minc-tools-2.3.00+dfsg/conversion/Acr_nema/element.c:1728:8: note: Shadowed declaration minc-tools-2.3.00+dfsg/conversion/Acr_nema/element.c:1810:20: note: Shadow variable minc-tools-2.3.00+dfsg/conversion/Acr_nema/element.c:1120:17: style: Variable 'original' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/Acr_nema/element.c:1581:18: style: Variable 'end' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/Acr_nema/element.c:1582:9: style: Variable 'separator_list' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/Acr_nema/element.c:1631:11: style: Variable 'string' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/Acr_nema/element.c:1757:17: style: Variable 'name_ptr' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/Acr_nema/element.c:1634:19: style: Variable 'printable' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/analyze2minc.c:315:22: warning: Either the condition 'datatype==64' is redundant or the array 'DataTypeSizes[32]' is accessed at index 64, which is out of bounds. [arrayIndexOutOfBoundsCond] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/analyze2minc.c:313:13: note: Assuming that condition 'datatype==64' is not redundant minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/analyze2minc.c:315:22: note: Array index out of bounds minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/analyze2minc.c:168:1: warning: %n in format string (no. 1) requires 'int *' but the argument type is 'float'. [invalidPrintfArgType_n] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/analyze2minc.c:343:9: warning: If memory allocation fails, then there is a possible null pointer dereference: buffera [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/analyze2minc.c:317:25: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/analyze2minc.c:317:11: note: Assignment 'buffera=(unsigned char*)malloc(volumes*x_dim_short*y_dim_short*z_dim_short*bytepix)', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/analyze2minc.c:343:9: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/analyze2minc.c:343:69: warning: If resource allocation fails, then there is a possible null pointer dereference: fd [nullPointerOutOfResources] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/analyze2minc.c:342:11: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/analyze2minc.c:342:11: note: Assignment 'fd=fopen(string_a,"r")', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/analyze2minc.c:343:69: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/analyze2minc.c:344:10: warning: If resource allocation fails, then there is a possible null pointer dereference: fd [nullPointerOutOfResources] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/analyze2minc.c:342:11: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/analyze2minc.c:342:11: note: Assignment 'fd=fopen(string_a,"r")', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/analyze2minc.c:344:10: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/analyze2minc.c:362:70: warning: If resource allocation fails, then there is a possible null pointer dereference: fd [nullPointerOutOfResources] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/analyze2minc.c:361:11: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/analyze2minc.c:361:11: note: Assignment 'fd=fopen(data_file,"w")', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/analyze2minc.c:362:70: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/analyze2minc.c:363:10: warning: If resource allocation fails, then there is a possible null pointer dereference: fd [nullPointerOutOfResources] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/analyze2minc.c:361:11: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/analyze2minc.c:361:11: note: Assignment 'fd=fopen(data_file,"w")', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/analyze2minc.c:363:10: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/analyze2minc.c:137:13: style: Parameter 'hdr' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/analyze2minc.c:138:7: style: Parameter 'fileName' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/analyze2minc.c:225:9: style: Parameter 'argv' can be declared as const array [constParameter] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/analyze2minc.c:238:12: style: Variable 'DataTypeSizes' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/analyze2minc.c:231:5: style: Unused variable: int_a [unusedVariable] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/analyze2minc.c:231:12: style: Unused variable: size [unusedVariable] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/analyze2minc.c:232:8: style: Unused variable: cmax [unusedVariable] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/analyze2minc.c:232:14: style: Unused variable: cmin [unusedVariable] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/analyze2minc.c:233:17: style: Unused variable: short_a [unusedVariable] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/analyze2minc.c:234:7: style: Unused variable: uchar_a [unusedVariable] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/analyze2minc.c:235:7: style: Unused variable: float_a [unusedVariable] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/analyze2minc.c:235:16: style: Unused variable: float_array_a [unusedVariable] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/analyze2minc.c:236:56: style: Unused variable: string_array_a [unusedVariable] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_read.c:246:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_Manufacturer [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_read.c:256:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_Number_of_frames [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_read.c:317:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_Image_type [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_read.c:424:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_Images_in_acquisition [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_read.c:586:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPI_Current_slice_number [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_read.c:715:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_Rows [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_read.c:1019:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_Study_date [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_read.c:1095:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_Bits_allocated [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_read.c:1286:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_Image_position_patient [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_read.c:1348:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_Image_orientation_patient [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_read.c:1382:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_MAX [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_read.c:1669:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_Slice_thickness [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_read.c:1946:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_SOP_Class_UID [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_read.c:2224:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_Bits_allocated [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_read.c:2312:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_Echo_train_length [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dcm2mnc.c:378:9: error: Common realloc mistake: 'file_list' nulled but not freed upon failure [memleakOnRealloc] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dcm2mnc.c:396:17: error: Common realloc mistake: 'file_list' nulled but not freed upon failure [memleakOnRealloc] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dcm2mnc.c:180:33: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dcm2mnc.c:182:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dcm2mnc.c:184:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dcm2mnc.c:190:33: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dcm2mnc.c:192:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dcm2mnc.c:196:38: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dcm2mnc.c:198:25: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dcm2mnc.c:221:6: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dcm2mnc.c:227:6: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dcm2mnc.c:233:6: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dcm2mnc.c:239:6: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dcm2mnc.c:245:6: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dcm2mnc.c:251:6: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dcm2mnc.c:681:33: style:inconclusive: Function 'use_the_files' argument 2 names different: declaration 'data_info' definition 'di_ptr'. [funcArgNamesDifferent] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dcm2mnc.c:157:44: note: Function 'use_the_files' argument 2 names different: declaration 'data_info' definition 'di_ptr'. minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dcm2mnc.c:681:33: note: Function 'use_the_files' argument 2 names different: declaration 'data_info' definition 'di_ptr'. minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dcm2mnc.c:1091:50: style: Parameter 'file_list' can be declared as const array [constParameter] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:305:20: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dcm2mnc.c:701:14: style: Unused variable: string [unusedVariable] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dcm2mnc.c:702:11: style: Unused variable: fp [unusedVariable] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/progress.c:37:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:248:38: style: Parameter 'uid2' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:330:40: style: Parameter 'uid' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:1184:35: style: Parameter 'buffer' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:2341:18: style: Variable 'stream_data' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:2488:18: style: Variable 'stream_data' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:2542:18: style: Variable 'stream_data' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:2566:18: style: Variable 'stream_data' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:592:8: warning: Uninitialized variable: have_pres_context_request [uninitvar] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:557:38: note: Assuming condition is false minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:592:8: note: Uninitialized variable: have_pres_context_request minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:2711:11: style: Variable 'status' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/Acr_nema/dicom_network.c:2857:14: style: Variable 'status' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/minc_file.c:291:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MI_MRI [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/minc_file.c:360:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ncopts [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/minc_file.c:512:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/minc_file.c:616:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/minc_file.c:1140:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NC_DOUBLE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/minc_file.c:1166:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/minc_file.c:1444:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MI_ICV_CDFID [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_to_minc.c:340:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_to_minc.c:691:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable acr_stdio_read [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_to_minc.c:722:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_Image_type [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_to_minc.c:789:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_LITTLE_ENDIAN [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_to_minc.c:989:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_Image_type [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_to_minc.c:1198:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPI_Private_creator_0029 [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_to_minc.c:1650:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_VR_LO [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_to_minc.c:1790:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GEMS_Acqu_private_creator_id [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_to_minc.c:1896:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPI_Private_creator [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_to_minc.c:1951:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_Series_instance_UID [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_to_minc.c:1986:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_Manufacturer [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_to_minc.c:2149:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_to_minc.c:2389:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_to_minc.c:2452:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_Software_versions [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_to_minc.c:2500:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXT_Slice_inverted [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_to_minc.c:2899:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_to_minc.c:3027:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_Columns [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_to_minc.c:3191:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/siemens_to_dicom.c:199:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/siemens_to_dicom.c:387:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPI_Image_normal [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/siemens_to_dicom.c:532:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_VR_UNKNOWN [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/siemens_to_dicom.c:560:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/siemens_to_dicom.c:578:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_BIG_ENDIAN [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/siemens_to_dicom.c:588:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_BIG_ENDIAN [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/siemens_to_dicom.c:598:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_BIG_ENDIAN [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/siemens_to_dicom.c:614:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_BIG_ENDIAN [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/siemens_to_dicom.c:644:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_BIG_ENDIAN [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/siemens_to_dicom.c:671:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_BIG_ENDIAN [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/siemens_to_dicom.c:694:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_BIG_ENDIAN [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/siemens_to_dicom.c:742:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_VR_AS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/siemens_to_dicom.c:752:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_BIG_ENDIAN [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/siemens_to_dicom.c:787:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_BIG_ENDIAN [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/siemens_to_dicom.c:806:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_BIG_ENDIAN [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/siemens_to_dicom.c:826:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_BIG_ENDIAN [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/siemens_to_dicom.c:841:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_BIG_ENDIAN [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/siemens_to_dicom.c:863:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_BIG_ENDIAN [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/siemens_to_dicom.c:885:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_BIG_ENDIAN [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/siemens_to_dicom.c:906:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_BIG_ENDIAN [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/siemens_to_dicom.c:958:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_VR_CS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/siemens_to_dicom.c:971:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_BIG_ENDIAN [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/string_to_filename.c:123:31: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/dicomserver/dicomserver.c:145:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver/dicomserver.c:624:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver/dicomserver.c:646:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DCM_PDU_GRPID [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/siemens_to_dicom.c:230:13: error: Memory leak: image [memleak] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/siemens_to_dicom.c:235:13: error: Memory leak: image [memleak] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/siemens_to_dicom.c:541:11: style: Variable 'old' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/siemens_to_dicom.c:714:1: style: Parameter 'data' can be declared as pointer to const. However it seems that 'create_age_element' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/siemens_header_table.h:22:43: note: You might need to cast the function pointer here minc-tools-2.3.00+dfsg/conversion/dcm2mnc/siemens_to_dicom.c:714:1: note: Parameter 'data' can be declared as pointer to const minc-tools-2.3.00+dfsg/conversion/dcm2mnc/siemens_to_dicom.c:935:36: style: Parameter 'src_ptr' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/dicomserver/dicomserver.c:214:18: portability: Non reentrant function 'tempnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'tempnam_r'. [prohibitedtempnamCalled] minc-tools-2.3.00+dfsg/conversion/dicomserver/dicomserver.c:118:10: style: Variable 'pname' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/dicomserver/dicomserver.c:667:48: style: Parameter 'file_list' can be declared as const array [constParameter] minc-tools-2.3.00+dfsg/conversion/dicomserver/dicomserver.c:258:27: style: Variable 'continue_looping' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver/dicomserver.c:259:16: style: Variable 'state' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver/dicomserver.c:521:27: style: Variable 'continue_looping' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver/dicomserver.c:537:16: style: Variable 'state' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver/dicomserver.c:560:17: style: Variable 'num_files' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver/open_connection.c:108:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver/open_connection.c:172:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/minc_file.c:1083:23: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/minc_file.c:1071:35: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/dcm2mnc/minc_file.c:1071:35: note: Assignment 'fp=tmpfile()', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/dcm2mnc/minc_file.c:1083:23: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/dcm2mnc/minc_file.c:1084:40: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/minc_file.c:1071:35: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/dcm2mnc/minc_file.c:1071:35: note: Assignment 'fp=tmpfile()', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/dcm2mnc/minc_file.c:1084:40: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/dcm2mnc/minc_file.c:1086:24: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/minc_file.c:1071:35: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/dcm2mnc/minc_file.c:1071:35: note: Assignment 'fp=tmpfile()', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/dcm2mnc/minc_file.c:1086:24: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/dicomserver/minc_file.c:89:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MRI_NDIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver/minc_file.c:195:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver/minc_file.c:491:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver/minc_file.c:635:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MI_ICV_CDFID [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/minc_file.c:1162:42: style:inconclusive: Function 'save_minc_image' argument 2 names different: declaration 'general_info' definition 'gi_ptr'. [funcArgNamesDifferent] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/minc_file.h:9:54: note: Function 'save_minc_image' argument 2 names different: declaration 'general_info' definition 'gi_ptr'. minc-tools-2.3.00+dfsg/conversion/dcm2mnc/minc_file.c:1162:42: note: Function 'save_minc_image' argument 2 names different: declaration 'general_info' definition 'gi_ptr'. minc-tools-2.3.00+dfsg/conversion/dcm2mnc/minc_file.c:1163:28: style:inconclusive: Function 'save_minc_image' argument 3 names different: declaration 'file_info' definition 'fi_ptr'. [funcArgNamesDifferent] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/minc_file.h:10:40: note: Function 'save_minc_image' argument 3 names different: declaration 'file_info' definition 'fi_ptr'. minc-tools-2.3.00+dfsg/conversion/dcm2mnc/minc_file.c:1163:28: note: Function 'save_minc_image' argument 3 names different: declaration 'file_info' definition 'fi_ptr'. minc-tools-2.3.00+dfsg/conversion/dcm2mnc/minc_file.c:991:13: style: Local variable 'length' shadows outer variable [shadowVariable] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/minc_file.c:624:9: note: Shadowed declaration minc-tools-2.3.00+dfsg/conversion/dcm2mnc/minc_file.c:991:13: note: Shadow variable minc-tools-2.3.00+dfsg/conversion/dcm2mnc/minc_file.c:182:35: style: Parameter 'coordinates' can be declared as const array [constParameter] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/minc_file.c:210:24: style: Parameter 'gi_ptr' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/minc_file.c:216:18: style: Variable 'scan_prefix' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/minc_file.c:1316:16: style: Variable 'ssh_ptr' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/minc_file.c:1327:25: style: Variable 'ush_ptr' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/minc_file.c:1310:14: 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] minc-tools-2.3.00+dfsg/conversion/dicomserver/project_file.c:129:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver/project_file.c:175:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OUTPUT_DEFAULT_FILE_DIR [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver/reply.c:174:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HIGH_LOGGING [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver/reply.c:433:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DCM_PDU_GRPID [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver/reply.c:463:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HIGH_LOGGING [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver/reply.c:494:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HIGH_LOGGING [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver/reply.c:524:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HIGH_LOGGING [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver/reply.c:85:41: style: Parameter 'uid2' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/dicomserver/save_transferred_object.c:82:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPI_Number_of_echoes [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver/save_transferred_object.c:53:65: style: Parameter 'file_prefix' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/dicomserver/save_transferred_object.c:96:37: error: Uninitialized variable: patient_name [legacyUninitvar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_read.c:1753:17: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_read.c:1749:13: note: outer condition: !found_coordinate minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_read.c:1753:17: note: identical inner condition: !found_coordinate minc-tools-2.3.00+dfsg/conversion/dicomserver/project_file.c:131:8: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] minc-tools-2.3.00+dfsg/conversion/dicomserver/project_file.c:69:36: style: Parameter 'project_name' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/dicomserver/project_file.c:165:17: style: Variable 'filler' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_read.c:694:48: style:inconclusive: Function 'get_file_info' argument 2 names different: declaration 'file_info' definition 'fi_ptr'. [funcArgNamesDifferent] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_read.h:3:60: note: Function 'get_file_info' argument 2 names different: declaration 'file_info' definition 'fi_ptr'. minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_read.c:694:48: note: Function 'get_file_info' argument 2 names different: declaration 'file_info' definition 'fi_ptr'. minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_read.c:694:70: style:inconclusive: Function 'get_file_info' argument 3 names different: declaration 'general_info' definition 'gi_ptr'. [funcArgNamesDifferent] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_read.h:4:41: note: Function 'get_file_info' argument 3 names different: declaration 'general_info' definition 'gi_ptr'. minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_read.c:694:70: note: Function 'get_file_info' argument 3 names different: declaration 'general_info' definition 'gi_ptr'. minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_read.c:1087:53: style:inconclusive: Function 'get_intensity_info' argument 2 names different: declaration 'file_info' definition 'fi_ptr'. [funcArgNamesDifferent] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_read.c:216:65: note: Function 'get_intensity_info' argument 2 names different: declaration 'file_info' definition 'fi_ptr'. minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_read.c:1087:53: note: Function 'get_intensity_info' argument 2 names different: declaration 'file_info' definition 'fi_ptr'. minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_read.c:1260:57: style:inconclusive: Function 'dicom_read_position' argument 3 names different: declaration 'position' definition 'coordinate'. [funcArgNamesDifferent] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_read.h:10:68: note: Function 'dicom_read_position' argument 3 names different: declaration 'position' definition 'coordinate'. minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_read.c:1260:57: note: Function 'dicom_read_position' argument 3 names different: declaration 'position' definition 'coordinate'. minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_read.c:1455:32: style:inconclusive: Function 'get_coordinate_info' argument 2 names different: declaration 'file_info' definition 'fi_ptr'. [funcArgNamesDifferent] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_read.c:217:66: note: Function 'get_coordinate_info' argument 2 names different: declaration 'file_info' definition 'fi_ptr'. minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_read.c:1455:32: note: Function 'get_coordinate_info' argument 2 names different: declaration 'file_info' definition 'fi_ptr'. minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_read.c:1905:33: style:inconclusive: Function 'convert_dicom_coordinate' argument 1 names different: declaration 'coord' definition 'coordinate'. [funcArgNamesDifferent] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_read.h:14:45: note: Function 'convert_dicom_coordinate' argument 1 names different: declaration 'coord' definition 'coordinate'. minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_read.c:1905:33: note: Function 'convert_dicom_coordinate' argument 1 names different: declaration 'coord' definition 'coordinate'. minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_read.c:1939:61: style:inconclusive: Function 'get_general_header_info' argument 2 names different: declaration 'general_info' definition 'gi_ptr'. [funcArgNamesDifferent] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_read.c:226:51: note: Function 'get_general_header_info' argument 2 names different: declaration 'general_info' definition 'gi_ptr'. minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_read.c:1939:61: note: Function 'get_general_header_info' argument 2 names different: declaration 'general_info' definition 'gi_ptr'. minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_read.c:1820:15: style: Variable 'str_seq' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_read.c:1821:15: style: Variable 'str_var' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_read.c:1835:19: style: Variable 'dt_str' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_read.c:2236:14: 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] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_read.c:1807:18: style: Variable 'start_time' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver/siemens_dicom_to_minc.c:84:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_ACTUAL_IMAGE_GID [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver/siemens_dicom_to_minc.c:208:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable acr_stdio_read [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver/siemens_dicom_to_minc.c:242:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MRI_NDIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver/siemens_dicom_to_minc.c:321:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MRI_NDIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver/minc_file.c:81:35: style: Parameter 'file_prefix' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/dicomserver/minc_file.c:92:17: style: Variable 'scan_prefix' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver/string_to_filename.c:70:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver/string_to_filename.c:58:38: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/dicomserver/siemens_dicom_read.c:76:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VOL_NDIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver/siemens_dicom_read.c:349:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_Study_date [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver/siemens_dicom_read.c:384:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_Bits_allocated [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver/siemens_dicom_read.c:438:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VOL_NDIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver/siemens_dicom_read.c:595:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XCOORD [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver/siemens_dicom_read.c:618:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Cstring [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver/siemens_dicom_read.c:736:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SECONDS_PER_HOUR [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver/siemens_dicom_read.c:769:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_Bits_allocated [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver/use_the_files.c:100:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dcm2mnc.c:135:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable L_tmpnam [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dcm2mnc.c:864:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver/use_the_files.c:169:23: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] minc-tools-2.3.00+dfsg/conversion/dicomserver/siemens_dicom_to_minc.c:197:43: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/dicomserver/siemens_dicom_to_minc.c:276:39: style: Parameter 'list' can be declared as const array [constParameter] minc-tools-2.3.00+dfsg/conversion/dicomserver/siemens_dicom_to_minc.c:386:18: style: Variable 'value1' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/dicomserver/siemens_dicom_to_minc.c:386:27: style: Variable 'value2' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/dicomserver/siemens_dicom_to_minc.c:136:40: warning: Uninitialized variable: icvid [uninitvar] minc-tools-2.3.00+dfsg/conversion/dicomserver/siemens_dicom_to_minc.c:127:20: note: Assuming condition is false minc-tools-2.3.00+dfsg/conversion/dicomserver/siemens_dicom_to_minc.c:136:40: note: Uninitialized variable: icvid minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dicomreader.c:125:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dicomreader.c:636:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dcm2mnc2.c:188:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dcm2mnc2.c:748:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver/siemens_dicom_read.c:430:37: style: Parameter 'sizes' can be declared as const array [constParameter] minc-tools-2.3.00+dfsg/conversion/dicomserver/siemens_dicom_read.c:444:23: style: Variable 'orientation_list' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:144:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:177:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:187:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:197:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:207:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:217:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:227:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:234:5: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:270:1: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:271:1: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:272:1: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:145:10: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: fd2 [nullPointerOutOfResources] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:143:12: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:143:12: note: Assignment 'fd2=fopen(string_a,"r")', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:145:10: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:191:10: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: fd2 [nullPointerOutOfResources] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:176:12: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:176:12: note: Assignment 'fd2=fopen(string_a,"r")', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:191:10: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/dicomserver/siemens_dicom_read.c:785:13: 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] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:201:10: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: fd2 [nullPointerOutOfResources] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:196:12: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:196:12: note: Assignment 'fd2=fopen(string_a,"r")', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:201:10: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:211:10: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: fd2 [nullPointerOutOfResources] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:206:12: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:206:12: note: Assignment 'fd2=fopen(string_a,"r")', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:211:10: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:221:10: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: fd2 [nullPointerOutOfResources] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:216:12: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:216:12: note: Assignment 'fd2=fopen(string_a,"r")', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:221:10: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:236:12: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: fd2 [nullPointerOutOfResources] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:233:14: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:233:14: note: Assignment 'fd2=fopen(string_a,"r")', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:236:12: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:256:7: warning: If memory allocation fails, then there is a possible null pointer dereference: buffera [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:253:25: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:253:11: note: Assignment 'buffera=(unsigned char*)malloc(volumes*x_dim_short*y_dim_short*z_dim_short*bytepix)', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:256:7: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:256:67: warning: If resource allocation fails, then there is a possible null pointer dereference: fd [nullPointerOutOfResources] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:255:9: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:255:9: note: Assignment 'fd=fopen(string_a,"r")', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:256:67: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:257:8: warning: If resource allocation fails, then there is a possible null pointer dereference: fd [nullPointerOutOfResources] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:255:9: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:255:9: note: Assignment 'fd=fopen(string_a,"r")', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:257:8: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:273:8: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: fd2 [nullPointerOutOfResources] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:269:10: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:269:10: note: Assignment 'fd2=fopen(string_a,"r")', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:273:8: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:439:68: warning: If resource allocation fails, then there is a possible null pointer dereference: fd [nullPointerOutOfResources] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:438:9: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:438:9: note: Assignment 'fd=fopen(string_a,"w")', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:439:68: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:440:8: warning: If resource allocation fails, then there is a possible null pointer dereference: fd [nullPointerOutOfResources] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:438:9: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:438:9: note: Assignment 'fd=fopen(string_a,"w")', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:440:8: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:200:17: style: Variable 'z_origin_float' is reassigned a value before the old one has been used. [redundantAssignment] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:190:17: note: z_origin_float is assigned minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:200:17: note: z_origin_float is overwritten minc-tools-2.3.00+dfsg/conversion/dicomserver/siemens_dicom_read.c:770:16: style: Variable 'bits_stored' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:62:10: style: Parameter 'sinput' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:100:71: style: Variable 'tcp' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/ana2mnc/steve_smith_ana2mnc/minc2analyze.c:103:12: style: Variable 'DataTypeSizes' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dicomserver-nondebug.c:170:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable L_tmpnam [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dicomserver-nondebug.c:842:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dicomserver-nondebug.c:864:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DCM_PDU_GRPID [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dicomserver-nondebug.c:328:16: portability: Non reentrant function 'tempnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'tempnam_r'. [prohibitedtempnamCalled] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dicomserver-nondebug.c:158:10: style: Local variable 'pname' shadows outer variable [shadowVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dicomserver-nondebug.c:155:7: note: Shadowed declaration minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dicomserver-nondebug.c:158:10: note: Shadow variable minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dicomserver-nondebug.c:158:10: style: Variable 'pname' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dicomserver-nondebug.c:885:48: style: Parameter 'file_list' can be declared as const array [constParameter] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dicomserver-nondebug.c:391:27: style: Variable 'continue_looping' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dicomserver-nondebug.c:392:16: style: Variable 'state' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dicomserver-nondebug.c:729:27: style: Variable 'continue_looping' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dicomserver-nondebug.c:745:16: style: Variable 'state' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dicomserver-nondebug.c:776:17: style: Variable 'num_files' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dicomreader.c:607:3: style:inconclusive: Statements following 'return' will never be executed. [unreachableCode] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dicomreader.c:470:48: style: Parameter 'file_list' can be declared as const array [constParameter] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dicomreader.c:598:56: style: Parameter 'info' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dicomreader.c:93:15: style: Variable 'parent_pid' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dicomreader.c:435:25: style: Variable 'last_file_name[0]' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dicomreader.c:443:22: style: Variable 'num_acq_files' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dicomserver-nondebug2.c:173:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable L_tmpnam [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dicomserver-nondebug2.c:996:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dicomserver-nondebug2.c:1018:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DCM_PDU_GRPID [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/modify_group_list.c:21:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VOL_NDIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/modify_group_list.c:127:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_Image [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/minc_file.c:144:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MRI_NDIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/minc_file.c:362:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/minc_file.c:884:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/minc_file.c:1014:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MI_ICV_CDFID [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/modify_group_list.c:5:16: style: Variable 'old' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/modify_group_list.c:8:28: style: Variable 'old_step' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/modify_group_list.c:49:18: 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] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/modify_group_list.c:45:12: error: Uninitialized variable: small_cols [uninitvar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/modify_group_list.c:46:24: error: Uninitialized variable: small_rows [uninitvar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/modify_group_list.c:47:68: error: Uninitialized variable: big_rows [uninitvar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/modify_group_list.c:135:57: error: Uninitialized variable: num_mosaic_cols [uninitvar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/modify_group_list.c:136:54: error: Uninitialized variable: num_mosaic_rows [uninitvar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/modify_group_list.c:47:47: error: Uninitialized variable: small_rows [legacyUninitvar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/modify_group_list.c:100:13: style: Variable 'distance' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/modify_group_list.c:103:16: style: Variable 'distance' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/modify_group_list.c:8:28: style: Variable 'old_step' is not assigned a value. [unassignedVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/modify_group_list.c:15:9: style: Unused variable: new_image_size [unusedVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/modify_group_list.c:17:8: style: Unused variable: big_cols [unusedVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/modify_group_list.c:17:18: style: Variable 'big_rows' is not assigned a value. [unassignedVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/modify_group_list.c:18:20: style: Variable 'small_rows' is not assigned a value. [unassignedVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/modify_group_list.c:19:10: style: Unused variable: data [unusedVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/modify_group_list.c:135:12: style: Variable 'big_cols' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/modify_group_list.c:136:12: style: Variable 'big_rows' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/modify_group_list.c:138:14: style: Variable 'small_cols' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/modify_group_list.c:139:14: style: Variable 'small_rows' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/modify_group_list.c:119:7: style: Variable 'num_mosaic_rows' is not assigned a value. [unassignedVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/modify_group_list.c:120:7: style: Variable 'num_mosaic_cols' is not assigned a value. [unassignedVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/open_connection.c:114:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/open_connection.c:196:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/parse_dicom_groups.c:48:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Cstring [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dcm2mnc.c:317:7: warning: %d in format string (no. 1) requires 'int' but the argument type is 'signed long'. [invalidPrintfArgType_sint] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/minc_file.c:129:35: style: Parameter 'file_prefix' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/minc_file.c:151:17: style: Variable 'scan_prefix' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dcm2mnc.c:136:10: style: Variable 'file_prefix' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dcm2mnc.c:696:48: style: Parameter 'file_list' can be declared as const array [constParameter] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dcm2mnc.c:824:56: style: Parameter 'info' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/parse_dicom_groups.c:101:15: style: Variable 'phase_rows' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/minc_file.c:297:14: error: Uninitialized variable: full_path [legacyUninitvar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/parse_dicom_groups.c:102:15: style: Variable 'phase_cols' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/parse_dicom_groups.c:38:14: style: Unused variable: group [unusedVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/parse_dicom_groups.c:40:9: style: Unused variable: patient_name [unusedVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dcm2mnc.c:384:15: error: Uninitialized variable: out_dir [uninitvar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dcm2mnc.c:421:15: error: Uninitialized variable: temp_name [uninitvar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/minc_file.c:134:9: style: Unused variable: patient_id [unusedVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/minc_file.c:135:9: style: Unused variable: scanner_model [unusedVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/minc_file.c:136:9: style: Unused variable: serial_no [unusedVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/minc_file.c:139:8: style: Unused variable: ix [unusedVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dcm2mnc.c:136:22: style: Variable 'file_prefix' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dcm2mnc.c:141:15: style: Variable 'parent_pid' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dcm2mnc.c:669:25: style: Variable 'last_file_name[0]' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dcm2mnc.c:134:10: style: Unused variable: temp_dir [unusedVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dcm2mnc.c:136:10: style: Variable 'file_prefix' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/progress.c:38:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/project_file.c:134:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/project_file.c:180:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OUTPUT_DEFAULT_FILE_DIR [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/reply.c:185:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HIGH_LOGGING [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/reply.c:485:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DCM_PDU_GRPID [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/reply.c:515:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HIGH_LOGGING [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/reply.c:546:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HIGH_LOGGING [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/reply.c:577:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HIGH_LOGGING [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/progress.c:44:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/save_transferred_object.c:102:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPI_Number_of_echoes [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/reply.c:92:41: style: Parameter 'uid2' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/save_transferred_object.c:67:65: style: Parameter 'file_prefix2' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/save_transferred_object.c:130:37: error: Uninitialized variable: patient_name [legacyUninitvar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dicomserver-nondebug2.c:340:16: portability: Non reentrant function 'tempnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'tempnam_r'. [prohibitedtempnamCalled] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dicomserver-nondebug2.c:161:10: style: Local variable 'pname' shadows outer variable [shadowVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dicomserver-nondebug2.c:158:7: note: Shadowed declaration minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dicomserver-nondebug2.c:161:10: note: Shadow variable minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dicomserver-nondebug2.c:161:10: style: Variable 'pname' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dicomserver-nondebug2.c:1039:48: style: Parameter 'file_list' can be declared as const array [constParameter] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dicomserver-nondebug2.c:818:15: error: Uninitialized variable: temp_name [uninitvar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dicomserver-nondebug2.c:403:27: style: Variable 'continue_looping' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dicomserver-nondebug2.c:404:16: style: Variable 'state' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dicomserver-nondebug2.c:883:27: style: Variable 'continue_looping' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dicomserver-nondebug2.c:899:16: style: Variable 'state' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dicomserver-nondebug2.c:930:17: style: Variable 'num_files' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/project_file.c:136:8: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/project_file.c:74:36: style: Parameter 'project_name' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/project_file.c:170:17: style: Variable 'filler' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:307:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:781:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:874:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:942:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:1014:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:1163:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPI_Sequence_File_Name [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:1332:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_read.c:136:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VOL_NDIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_read.c:434:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_Study_date [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_read.c:506:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_Bits_allocated [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_read.c:579:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VOL_NDIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_read.c:832:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XCOORD [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_read.c:850:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XCOORD [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_read.c:873:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Cstring [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_read.c:1141:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_Bits_allocated [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_to_dicom.c:223:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_to_dicom.c:352:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPI_Image_row [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_to_dicom.c:432:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_VR_UNKNOWN [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_to_dicom.c:467:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_VR_ST [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_to_dicom.c:480:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_BIG_ENDIAN [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_to_dicom.c:496:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_BIG_ENDIAN [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_to_dicom.c:512:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_BIG_ENDIAN [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_to_dicom.c:539:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_BIG_ENDIAN [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_to_dicom.c:578:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_BIG_ENDIAN [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_to_dicom.c:609:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_BIG_ENDIAN [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_to_dicom.c:639:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_BIG_ENDIAN [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_to_dicom.c:672:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_BIG_ENDIAN [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_to_dicom.c:718:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_BIG_ENDIAN [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_to_dicom.c:748:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_BIG_ENDIAN [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_to_dicom.c:779:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACR_BIG_ENDIAN [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_to_minc.c:172:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NONE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_to_minc.c:388:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_to_minc.c:462:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_to_minc.c:747:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MRI_NDIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_to_minc.c:826:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MRI_NDIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_to_minc.c:937:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_to_minc.c:972:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_to_minc.c:1024:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VOL_NDIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_to_minc.c:1208:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IMA [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_to_dicom.c:589:11: warning: %d in format string (no. 1) requires 'int' but the argument type is 'signed long'. [invalidPrintfArgType_sint] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_to_dicom.c:589:11: warning: %d in format string (no. 2) requires 'int' but the argument type is 'signed long'. [invalidPrintfArgType_sint] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_to_dicom.c:589:11: warning: %d in format string (no. 3) requires 'int' but the argument type is 'signed long'. [invalidPrintfArgType_sint] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_to_dicom.c:589:11: warning: %d in format string (no. 4) requires 'int' but the argument type is 'signed long'. [invalidPrintfArgType_sint] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_to_dicom.c:255:10: error: Memory leak: image [memleak] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_to_dicom.c:260:10: error: Memory leak: image [memleak] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_to_dicom.c:257:17: warning: If memory allocation fails, then there is a possible null pointer dereference: image [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_to_dicom.c:249:15: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_to_dicom.c:249:15: note: Assignment 'image=(void*)malloc((unsigned long)pixel_size*image_size)', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_to_dicom.c:252:16: note: Assuming condition is false minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_to_dicom.c:257:17: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_to_dicom.c:464:4: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_to_dicom.c:457:10: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_to_dicom.c:457:10: note: Assignment 'new=(void*)malloc(newsize)', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_to_dicom.c:464:4: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_to_dicom.c:199:41: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_to_dicom.c:443:10: style: Variable 'old' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_to_dicom.c:526:15: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_to_dicom.c:564:15: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_to_dicom.c:705:18: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_to_dicom.c:735:15: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_to_dicom.c:764:22: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_to_dicom.c:247:18: 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] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/string_to_filename.c:86:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/string_to_filename.c:125:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dcm2mnc2.c:580:48: style: Parameter 'file_list' can be declared as const array [constParameter] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dcm2mnc2.c:708:56: style: Parameter 'info' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dcm2mnc2.c:126:15: style: Variable 'parent_pid' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dcm2mnc2.c:553:25: style: Variable 'last_file_name[0]' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/use_the_files.c:132:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/string_to_filename.c:74:38: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/string_to_filename.c:109:38: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_read.c:209:36: style:inconclusive: Boolean expression 'number_of_3D_partitions>1' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_read.c:209:36: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_read.c:209:36: warning: Result of operator '|' is always true if one operand is non-zero. Did you intend to use '&'? [badBitmaskCheck] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_read.c:571:37: style: Parameter 'sizes' can be declared as const array [constParameter] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_read.c:585:23: style: Variable 'orientation_list' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_read.c:870:10: style: Variable 'string' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_read.c:1157:13: 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] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_read.c:870:19: style: Unused variable: ptr [unusedVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_read.c:1142:16: style: Variable 'bits_stored' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/ecattominc/dump_ecat_header.c:73:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/use_the_files.c:264:12: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/use_the_files.c:109:26: style: Parameter 'OutDir' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:1185:60: style: Condition 'multi_image->grid[0]<1' is always false [knownConditionTrueFalse] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:1185:30: note: Assuming that condition 'multi_image->grid[0]<1' is not redundant minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:1185:60: note: Condition 'multi_image->grid[0]<1' is always false minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:954:10: error: Common realloc mistake: 'directory_list' nulled but not freed upon failure [memleakOnRealloc] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:1039:13: error: Common realloc mistake: 'sorting_files' nulled but not freed upon failure [memleakOnRealloc] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:319:7: warning: If memory allocation fails, then there is a possible null pointer dereference: directory_list [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:318:30: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:318:30: note: Assignment 'directory_list=malloc(sizeof(*directory_list)*num_dirs_alloc)', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:319:7: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:812:4: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:811:30: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:811:10: note: Assignment 'new=(struct Mosaic_InfoMosaic_Info)malloc(sizeof(*new))', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:812:4: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:813:4: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:811:30: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:811:10: note: Assignment 'new=(struct Mosaic_InfoMosaic_Info)malloc(sizeof(*new))', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:813:4: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:814:4: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:811:30: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:811:10: note: Assignment 'new=(struct Mosaic_InfoMosaic_Info)malloc(sizeof(*new))', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:814:4: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:815:4: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:811:30: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:811:10: note: Assignment 'new=(struct Mosaic_InfoMosaic_Info)malloc(sizeof(*new))', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:815:4: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:959:4: warning: If memory allocation fails, then there is a possible null pointer dereference: directory_list [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:952:33: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:952:33: note: Assignment 'directory_list=malloc(sizeof(*directory_list)*num_dirs_alloc)', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:959:4: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:1070:5: warning: If memory allocation fails, then there is a possible null pointer dereference: *file_list [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:1067:23: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:1067:23: note: Assignment '*file_list=malloc(sizeof(**file_list)*(num_entries+1))', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:1070:5: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:1071:5: warning: If memory allocation fails, then there is a possible null pointer dereference: *file_dirindex_list [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:1068:32: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:1068:32: note: Assignment '*file_dirindex_list=malloc(sizeof(**file_dirindex_list)*(num_entries+1))', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:1071:5: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:235:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:1185:35: style: Same expression on both sides of '||'. [duplicateExpression] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:770:17: style: Local variable 'mosaic_info_list' shadows outer variable [shadowVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:209:13: note: Shadowed declaration minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:770:17: note: Shadow variable minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:855:8: style: Local variable 'num_dirs' shadows outer variable [shadowVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:212:5: note: Shadowed declaration minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:855:8: note: Shadow variable minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:246:10: style: Variable 'pname' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:768:49: style: Parameter 'key' can be declared as pointer to const. However it seems that 'process_mosaic_args' is a callback function, if 'key' is declared with const you might also need to cast function pointer(s). [constParameterCallback] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:217:39: note: You might need to cast the function pointer here minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:768:49: note: Parameter 'key' can be declared as pointer to const minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:937:43: style: Parameter 'key' can be declared as pointer to const. However it seems that 'get_directory' is a callback function, if 'key' is declared with const you might also need to cast function pointer(s). [constParameterCallback] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:233:39: note: You might need to cast the function pointer here minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:937:43: note: Parameter 'key' can be declared as pointer to const minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:992:19: style: Variable 'dirent' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:993:10: style: Variable 'filename' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:1322:16: style: Variable 'old' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:1215:19: 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] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:1351:18: 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] minc-tools-2.3.00+dfsg/conversion/ecattominc/dump_ecat_header.c:160:22: style: Condition 'field!=ECAT_No_Field' is always true [knownConditionTrueFalse] minc-tools-2.3.00+dfsg/conversion/ecattominc/dump_ecat_header.c:62:10: style: Variable 'pname' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/ecattominc/dump_ecat_header.c:62:29: style: Variable 'fieldname' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/ecattominc/dump_ecat_header.c:65:10: style: Variable 'description' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:262:10: style: Unused variable: log_separator [unusedVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:274:8: style: Unused variable: echo [unusedVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:277:8: style: Unused variable: nimages [unusedVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:291:11: style: Unused variable: frame_hours_oflow [unusedVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:292:11: style: Unused variable: frame_minutes_oflow [unusedVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:293:11: style: Unused variable: frame_seconds_oflow [unusedVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:1235:15: style: Variable 'last_image' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/ecattominc/insertblood.c:43:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIrootvariable [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/image_filters/atob.c:19:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] minc-tools-2.3.00+dfsg/conversion/image_filters/atob.c:26:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/ecattominc/machine_indep.c:234:11: portability:inconclusive: Casting from float * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] minc-tools-2.3.00+dfsg/conversion/image_filters/atof.c:19:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] minc-tools-2.3.00+dfsg/conversion/image_filters/atof.c:24:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/image_filters/atoi.c:19:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] minc-tools-2.3.00+dfsg/conversion/image_filters/atoi.c:24:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/image_filters/atol.c:19:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] minc-tools-2.3.00+dfsg/conversion/image_filters/atol.c:24:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/ecattominc/ecat_file.c:1204:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/ecattominc/ecat_file.c:1228:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/image_filters/atol.c:23:11: warning: %d in format string (no. 1) requires 'int *' but the argument type is 'signed long *'. [invalidScanfArgType_int] minc-tools-2.3.00+dfsg/conversion/image_filters/btoa.c:20:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] minc-tools-2.3.00+dfsg/conversion/image_filters/btoa.c:24:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/image_filters/btof.c:21:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] minc-tools-2.3.00+dfsg/conversion/image_filters/btof.c:28:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/image_filters/byte_swap.c:20:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] minc-tools-2.3.00+dfsg/conversion/image_filters/byte_swap.c:27:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/image_filters/byte_swap4.c:20:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] minc-tools-2.3.00+dfsg/conversion/image_filters/byte_swap4.c:27:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/image_filters/extract.c:32:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] minc-tools-2.3.00+dfsg/conversion/image_filters/extract.c:42:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/image_filters/fmaxmin.c:28:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] minc-tools-2.3.00+dfsg/conversion/image_filters/fmaxmin.c:37:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/image_filters/fmaxmin.c:48:24: error: Buffer is accessed out of bounds: value [bufferAccessOutOfBounds] minc-tools-2.3.00+dfsg/conversion/image_filters/fmaxmin.c:32:10: style: Variable 'pname' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/image_filters/extract.c:34:10: style: Variable 'pname' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/image_filters/extract.c:57:13: style: Variable 'argc' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/image_filters/frange.c:31:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] minc-tools-2.3.00+dfsg/conversion/image_filters/frange.c:40:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/image_filters/fscale.c:29:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] minc-tools-2.3.00+dfsg/conversion/image_filters/fscale.c:38:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/image_filters/fscale.c:47:24: error: Buffer is accessed out of bounds: value [bufferAccessOutOfBounds] minc-tools-2.3.00+dfsg/conversion/image_filters/fscale.c:33:10: style: Variable 'pname' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/image_filters/frange.c:55:24: error: Buffer is accessed out of bounds: value [bufferAccessOutOfBounds] minc-tools-2.3.00+dfsg/conversion/image_filters/frange.c:35:10: style: Variable 'pname' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/image_filters/ftoa.c:20:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] minc-tools-2.3.00+dfsg/conversion/image_filters/ftoa.c:24:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/image_filters/ftob.c:28:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] minc-tools-2.3.00+dfsg/conversion/image_filters/ftob.c:35:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/image_filters/ftoi.c:28:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] minc-tools-2.3.00+dfsg/conversion/image_filters/ftoi.c:35:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/ecattominc/ecattominc.c:242:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ARGV_CONSTANT [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/ecattominc/ecattominc.c:577:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/ecattominc/ecattominc.c:711:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/ecattominc/ecattominc.c:1198:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NC_NAME [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/ecattominc/ecattominc.c:1568:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MI_ICV_VALID_MAX [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/ecattominc/ecattominc.c:1631:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_EPSILON [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/image_filters/ftoui.c:28:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] minc-tools-2.3.00+dfsg/conversion/image_filters/ftoui.c:35:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/ecattominc/ecat_file.c:180:29: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/ecattominc/ecat_file.c:289:37: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/ecattominc/ecat_file.c:294:37: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/ecattominc/ecat_file.c:299:44: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/ecattominc/ecat_file.c:304:36: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/ecattominc/ecat_file.c:650:15: style: Variable 'ecat_type_sizes' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/ecattominc/ecat_file.c:1017:37: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/ecattominc/ecat_file.c:1077:15: 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] minc-tools-2.3.00+dfsg/conversion/ecattominc/ecat_file.c:825:21: warning: Uninitialized variables: &field_description.offset, &field_description.length, &field_description.type, &field_description.description [uninitvar] minc-tools-2.3.00+dfsg/conversion/ecattominc/ecat_file.c:1031:11: warning: Uninitialized variable: value [uninitvar] minc-tools-2.3.00+dfsg/conversion/ecattominc/ecat_file.c:1020:33: note: Assuming condition is true minc-tools-2.3.00+dfsg/conversion/ecattominc/ecat_file.c:1031:11: note: Uninitialized variable: value minc-tools-2.3.00+dfsg/conversion/image_filters/imageinvert.c:28:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] minc-tools-2.3.00+dfsg/conversion/image_filters/imagetranspose.c:25:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] minc-tools-2.3.00+dfsg/conversion/image_filters/imagetranspose.c:35:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/image_filters/imageinvert.c:38:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/image_filters/insert.c:30:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] minc-tools-2.3.00+dfsg/conversion/image_filters/insert.c:40:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/image_filters/imagetranspose.c:29:10: style: Variable 'pname' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/image_filters/insert.c:58:4: warning:inconclusive: Found suspicious operator '*', result is not used. [constStatement] minc-tools-2.3.00+dfsg/conversion/image_filters/insert.c:32:10: style: Variable 'pname' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/image_filters/insert.c:58:9: warning: In expression like '*A++' the result of '*' is unused. Did you intend to write '(*A)++;'? [clarifyStatement] minc-tools-2.3.00+dfsg/conversion/image_filters/insert.c:65:13: style: Variable 'argc' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/image_filters/itoa.c:20:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] minc-tools-2.3.00+dfsg/conversion/image_filters/itoa.c:24:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/image_filters/itof.c:21:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] minc-tools-2.3.00+dfsg/conversion/image_filters/itof.c:28:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/image_filters/ltoa.c:20:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] minc-tools-2.3.00+dfsg/conversion/image_filters/ltoa.c:24:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/image_filters/reecho.c:22:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] minc-tools-2.3.00+dfsg/conversion/image_filters/reecho.c:31:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/image_filters/skipdata.c:25:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_to_minc.c:947:5: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] minc-tools-2.3.00+dfsg/conversion/image_filters/reecho.c:26:10: style: Variable 'pname' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_to_minc.c:1041:35: style: Same expression on both sides of '||'. [duplicateExpression] minc-tools-2.3.00+dfsg/conversion/image_filters/uitof.c:21:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] minc-tools-2.3.00+dfsg/conversion/image_filters/uitof.c:28:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_to_minc.c:377:43: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_to_minc.c:438:41: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_to_minc.c:455:10: style: Variable 'field_ptr' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_to_minc.c:781:39: style: Parameter 'list' can be declared as const array [constParameter] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_to_minc.c:894:18: style: Variable 'value1' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_to_minc.c:894:27: style: Variable 'value2' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_to_minc.c:911:59: style: Parameter 'Field' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_to_minc.c:920:9: style: Variable 'field_ptr' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_to_minc.c:1201:16: style: Variable 'old' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/image_filters/skipdata.c:19:26: style: Parameter 'argv' can be declared as const array [constParameter] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_to_minc.c:281:40: warning: Uninitialized variable: icvid [uninitvar] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_to_minc.c:271:20: note: Assuming condition is false minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_to_minc.c:281:40: note: Uninitialized variable: icvid minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_to_minc.c:155:17: style: Unused variable: general_info_orig [unusedVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_to_minc.c:165:8: style: Unused variable: num_files_expected [unusedVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_to_minc.c:166:8: style: Unused variable: num_avg_nominal [unusedVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_to_minc.c:167:8: style: Unused variable: num_frames_nominal [unusedVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_to_minc.c:168:8: style: Unused variable: idim [unusedVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_to_minc.c:169:8: style: Unused variable: frame [unusedVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_to_minc.c:170:8: style: Unused variable: num_frames [unusedVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_to_minc.c:171:8: style: Unused variable: index [unusedVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_to_minc.c:176:16: style: Unused variable: big_image [unusedVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_to_minc.c:177:16: style: Unused variable: small_image [unusedVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_to_minc.c:688:10: style: Variable 'enc_ix' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_to_minc.c:690:10: style: Variable 'enc_ix' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_to_minc.c:457:8: style: Unused variable: average [unusedVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_to_minc.c:457:17: style: Unused variable: files_per_average [unusedVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_to_minc.c:921:21: style: Variable 'DefaultValue' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_to_minc.c:921:8: style: Variable 'DefaultValue' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_to_minc.c:1021:10: style: Unused variable: protocol [unusedVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_to_minc.c:1022:11: style: Unused variable: normal [unusedVariable] minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_to_minc.c:1203:24: style: Unused variable: distance [unusedVariable] minc-tools-2.3.00+dfsg/conversion/minctoecat/machine_indep.c:397:16: error: Buffer is accessed out of bounds: tmp1.b [bufferAccessOutOfBounds] minc-tools-2.3.00+dfsg/conversion/minctoecat/machine_indep.c:399:8: error: Buffer is accessed out of bounds: (char*)tmp1.b [bufferAccessOutOfBounds] minc-tools-2.3.00+dfsg/conversion/minctoecat/machine_indep.c:399:22: error: Buffer is accessed out of bounds: (char*)tmp.b [bufferAccessOutOfBounds] minc-tools-2.3.00+dfsg/conversion/minctoecat/machine_indep.c:51:10: portability: Casting between unsigned int * and float * which have an incompatible binary data representation. [invalidPointerCast] minc-tools-2.3.00+dfsg/conversion/minctoecat/machine_indep.c:145:5: portability: Casting between char * and float * which have an incompatible binary data representation. [invalidPointerCast] minc-tools-2.3.00+dfsg/conversion/minctoecat/machine_indep.c:229:15: portability: Casting between char * and float * which have an incompatible binary data representation. [invalidPointerCast] minc-tools-2.3.00+dfsg/conversion/minctoecat/machine_indep.c:37:17: style: Parameter 'bufr' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/minctoecat/machine_indep.c:268:7: style: Parameter 's' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/minctoecat/machine_indep.c:340:11: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/minctoecat/machine_indep.c:349:7: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/minctoecat/machine_indep.c:363:7: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/minctoecat/machine_indep.c:378:7: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/minctoecat/machine_indep.c:393:7: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:453:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:486:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:520:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NC_NOCLOBBER [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:688:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ncopts [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:836:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIacquisition [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:852:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NC_BYTE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:954:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NC_DOUBLE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:1134:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIacquisition [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:1166:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIstudy [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:1283:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MItime [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:1292:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MItime_width [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:1302:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIimagemin [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:1312:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIimagemax [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:1455:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIimage [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:1505:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/image_filters/imageinvert.c:32:10: style: Variable 'pname' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/minctoecat/minctoecat.c:90:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/minctoecat/minctoecat.c:301:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_EPSILON [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/minctoecat/minctoecat.c:321:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NC_MAX_NAME [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/minctoecat/minctoecat.c:450:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NC_NOWRITE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/minctoecat/minctoecat.c:496:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NC_NOWRITE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/minctoecat/minctoecat.c:551:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NC_NOWRITE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/minctoecat/minctoecat.c:610:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NC_NOWRITE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/minctoecat/minctoecat.c:640:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NC_NOWRITE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/minctoecat/minctoecat.c:784:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NC_NOWRITE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/minctoecat/minctoecat.c:999:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/mnitominc/mnitominc.c:82:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] minc-tools-2.3.00+dfsg/conversion/mnitominc/mnitominc.c:85:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/mnitominc/mnitominc.c:421:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/mnitominc/mnitominc.c:577:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/mnitominc/mnitominc.c:605:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/mnitominc/mnitominc.c:782:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/minctoecat/minctoecat.c:924:25: style: Variable 'mh->init_bed_position' is reassigned a value before the old one has been used. [redundantAssignment] minc-tools-2.3.00+dfsg/conversion/minctoecat/minctoecat.c:923:25: note: mh->init_bed_position is assigned minc-tools-2.3.00+dfsg/conversion/minctoecat/minctoecat.c:924:25: note: mh->init_bed_position is overwritten minc-tools-2.3.00+dfsg/conversion/minctoecat/minctoecat.c:115:9: style: Variable 'ecat_file_name' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/minctoecat/minctoecat.c:949:63: style: Parameter 'mi' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/minctoecat/minctoecat.c:997:24: style: Parameter 'progname' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/minctoecat/minctoecat.c:542:34: warning: Uninitialized variable: &scan_time [uninitvar] minc-tools-2.3.00+dfsg/conversion/minctoecat/minctoecat.c:506:18: note: Assuming condition is false minc-tools-2.3.00+dfsg/conversion/minctoecat/minctoecat.c:542:34: note: Uninitialized variable: &scan_time minc-tools-2.3.00+dfsg/conversion/minctoecat/minctoecat.c:601:34: warning: Uninitialized variable: &injection_time [uninitvar] minc-tools-2.3.00+dfsg/conversion/minctoecat/minctoecat.c:561:18: note: Assuming condition is false minc-tools-2.3.00+dfsg/conversion/minctoecat/minctoecat.c:601:34: note: Uninitialized variable: &injection_time minc-tools-2.3.00+dfsg/conversion/minctoecat/ecat_write.c:352:3: warning: If memory allocation fails, then there is a possible null pointer dereference: imagesub [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/conversion/minctoecat/ecat_write.c:349:42: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/minctoecat/ecat_write.c:349:16: note: Assignment 'imagesub=(struct Image_subheader*)calloc(1,512)', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/minctoecat/ecat_write.c:352:3: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/minctoecat/ecat_write.c:353:3: warning: If memory allocation fails, then there is a possible null pointer dereference: imagesub [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/conversion/minctoecat/ecat_write.c:349:42: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/minctoecat/ecat_write.c:349:16: note: Assignment 'imagesub=(struct Image_subheader*)calloc(1,512)', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/minctoecat/ecat_write.c:353:3: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/minctoecat/ecat_write.c:354:3: warning: If memory allocation fails, then there is a possible null pointer dereference: imagesub [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/conversion/minctoecat/ecat_write.c:349:42: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/minctoecat/ecat_write.c:349:16: note: Assignment 'imagesub=(struct Image_subheader*)calloc(1,512)', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/minctoecat/ecat_write.c:354:3: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/minctoecat/ecat_write.c:355:3: warning: If memory allocation fails, then there is a possible null pointer dereference: imagesub [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/conversion/minctoecat/ecat_write.c:349:42: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/minctoecat/ecat_write.c:349:16: note: Assignment 'imagesub=(struct Image_subheader*)calloc(1,512)', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/minctoecat/ecat_write.c:355:3: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/minctoecat/ecat_write.c:356:3: warning: If memory allocation fails, then there is a possible null pointer dereference: imagesub [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/conversion/minctoecat/ecat_write.c:349:42: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/minctoecat/ecat_write.c:349:16: note: Assignment 'imagesub=(struct Image_subheader*)calloc(1,512)', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/minctoecat/ecat_write.c:356:3: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/minctoecat/ecat_write.c:357:3: warning: If memory allocation fails, then there is a possible null pointer dereference: imagesub [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/conversion/minctoecat/ecat_write.c:349:42: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/minctoecat/ecat_write.c:349:16: note: Assignment 'imagesub=(struct Image_subheader*)calloc(1,512)', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/minctoecat/ecat_write.c:357:3: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/minctoecat/ecat_write.c:358:3: warning: If memory allocation fails, then there is a possible null pointer dereference: imagesub [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/conversion/minctoecat/ecat_write.c:349:42: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/minctoecat/ecat_write.c:349:16: note: Assignment 'imagesub=(struct Image_subheader*)calloc(1,512)', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/minctoecat/ecat_write.c:358:3: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/minctoecat/ecat_write.c:359:3: warning: If memory allocation fails, then there is a possible null pointer dereference: imagesub [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/conversion/minctoecat/ecat_write.c:349:42: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/minctoecat/ecat_write.c:349:16: note: Assignment 'imagesub=(struct Image_subheader*)calloc(1,512)', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/minctoecat/ecat_write.c:359:3: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/minctoecat/ecat_write.c:360:3: warning: If memory allocation fails, then there is a possible null pointer dereference: imagesub [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/conversion/minctoecat/ecat_write.c:349:42: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/minctoecat/ecat_write.c:349:16: note: Assignment 'imagesub=(struct Image_subheader*)calloc(1,512)', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/minctoecat/ecat_write.c:360:3: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/minctoecat/ecat_write.c:361:3: warning: If memory allocation fails, then there is a possible null pointer dereference: imagesub [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/conversion/minctoecat/ecat_write.c:349:42: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/minctoecat/ecat_write.c:349:16: note: Assignment 'imagesub=(struct Image_subheader*)calloc(1,512)', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/minctoecat/ecat_write.c:361:3: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/minctoecat/ecat_write.c:362:3: warning: If memory allocation fails, then there is a possible null pointer dereference: imagesub [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/conversion/minctoecat/ecat_write.c:349:42: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/minctoecat/ecat_write.c:349:16: note: Assignment 'imagesub=(struct Image_subheader*)calloc(1,512)', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/minctoecat/ecat_write.c:362:3: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/minctoecat/ecat_write.c:124:42: style: Parameter 'fmode' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/minctoecat/ecat_write.c:212:42: style: Parameter 'bufr' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/minctoecat/ecat_write.c:28:7: style: struct member 'matdir::nmats' is never used. [unusedStructMember] minc-tools-2.3.00+dfsg/conversion/minctoecat/ecat_write.c:28:14: style: struct member 'matdir::nmax' is never used. [unusedStructMember] minc-tools-2.3.00+dfsg/conversion/minctoecat/ecat_write.c:29:18: style: struct member 'matdir::entry' is never used. [unusedStructMember] minc-tools-2.3.00+dfsg/conversion/mri_to_minc/ge_uncompress.c:35:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti1_test.c:32:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nifti_1_header [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/nifti1/mnc2nii.c:50:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/nifti1/mnc2nii.c:79:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DT_UNKNOWN [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/nifti1/mnc2nii.c:178:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_to_minc.c:811:9: warning:inconclusive: The buffer 'name' may not be null-terminated after the call to strncpy(). [terminateStrncpy] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_to_minc.c:817:9: warning:inconclusive: The buffer 'vr' may not be null-terminated after the call to strncpy(). [terminateStrncpy] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_to_minc.c:2574:51: style: Condition 'mi_ptr->grid[0]<1' is always false [knownConditionTrueFalse] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_to_minc.c:2574:26: note: Assuming that condition 'mi_ptr->grid[0]<1' is not redundant minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_to_minc.c:2574:51: note: Condition 'mi_ptr->grid[0]<1' is always false minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_to_minc.c:2365:9: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_to_minc.c:417:13: error: Common realloc mistake: 'fi_ptr' nulled but not freed upon failure [memleakOnRealloc] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_to_minc.c:442:17: error: Common realloc mistake: 'fi_ptr' nulled but not freed upon failure [memleakOnRealloc] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_to_minc.c:2574:31: style: Same expression on both sides of '||'. [duplicateExpression] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_to_minc.c:2330:30: style:inconclusive: Function 'prot_find_string' argument 1 names different: declaration 'Protocol' definition 'elem_ptr'. [funcArgNamesDifferent] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_to_minc.c:283:41: note: Function 'prot_find_string' argument 1 names different: declaration 'Protocol' definition 'elem_ptr'. minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_to_minc.c:2330:30: note: Function 'prot_find_string' argument 1 names different: declaration 'Protocol' definition 'elem_ptr'. minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_to_minc.c:2330:52: style:inconclusive: Function 'prot_find_string' argument 2 names different: declaration 'name' definition 'name_str'. [funcArgNamesDifferent] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_to_minc.c:283:63: note: Function 'prot_find_string' argument 2 names different: declaration 'name' definition 'name_str'. minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_to_minc.c:2330:52: note: Function 'prot_find_string' argument 2 names different: declaration 'name' definition 'name_str'. minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_to_minc.c:2380:32: style:inconclusive: Function 'dump_protocol_text' argument 1 names different: declaration 'Protocol' definition 'elem_ptr'. [funcArgNamesDifferent] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_to_minc.c:285:45: note: Function 'dump_protocol_text' argument 1 names different: declaration 'Protocol' definition 'elem_ptr'. minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_to_minc.c:2380:32: note: Function 'dump_protocol_text' argument 1 names different: declaration 'Protocol' definition 'elem_ptr'. minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_to_minc.c:1632:11: style: Variable 'str_ptr' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_to_minc.c:2335:11: style: Variable 'field_ptr' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_to_minc.c:2411:15: style: Variable 'tmp_ptr' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_to_minc.c:2848:11: style: Variable 'old' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_to_minc.c:3177:11: style: Variable 'old_ptr' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_to_minc.c:2820:24: 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] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_to_minc.c:2958:24: 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] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_to_minc.c:518:31: warning: Uninitialized variable: icvid [uninitvar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_to_minc.c:503:11: note: Assuming condition is false minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_to_minc.c:518:31: note: Uninitialized variable: icvid minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_to_minc.c:2407:18: warning: Uninitialized variable: tmp_offset [uninitvar] minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_to_minc.c:2399:37: note: Assuming condition is false minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_to_minc.c:2407:18: note: Uninitialized variable: tmp_offset minc-tools-2.3.00+dfsg/conversion/nifti1/mnc2nii.c:758:9: style: The if condition is the same as the previous if condition [duplicateCondition] minc-tools-2.3.00+dfsg/conversion/nifti1/mnc2nii.c:748:9: note: First condition minc-tools-2.3.00+dfsg/conversion/nifti1/mnc2nii.c:758:9: note: Second condition minc-tools-2.3.00+dfsg/conversion/nifti1/mnc2nii.c:732:13: warning: %ld in format string (no. 2) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] minc-tools-2.3.00+dfsg/conversion/nifti1/mnc2nii.c:216:36: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/nifti1/mnc2nii.c:222:34: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/nifti1/mnc2nii.c:225:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/nifti1/mnc2nii.c:228:33: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/nifti1/mnc2nii.c:239:37: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/nifti1/mnc2nii.c:511:46: style: Floating-point cast causes loss of precision. [suspiciousFloatingPointCast] minc-tools-2.3.00+dfsg/conversion/nifti1/mnc2nii.c:512:46: style: Floating-point cast causes loss of precision. [suspiciousFloatingPointCast] minc-tools-2.3.00+dfsg/conversion/nifti1/mnc2nii.c:664:14: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] minc-tools-2.3.00+dfsg/conversion/nifti1/mnc2nii.c:668:9: note: Found duplicate branches for 'if' and 'else'. minc-tools-2.3.00+dfsg/conversion/nifti1/mnc2nii.c:664:14: note: Found duplicate branches for 'if' and 'else'. minc-tools-2.3.00+dfsg/conversion/nifti1/mnc2nii.c:378:15: style: Variable 'arg_ptr' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/nifti1/mnc2nii.c:532:26: warning: Uninitialized variable: nifti_inter [uninitvar] minc-tools-2.3.00+dfsg/conversion/nifti1/mnc2nii.c:492:30: note: Assuming condition is false minc-tools-2.3.00+dfsg/conversion/nifti1/mnc2nii.c:532:26: note: Uninitialized variable: nifti_inter minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dicom_to_minc.c:938:22: style: Variable 'num_directions' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/scxtominc/insertblood.c:43:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIrootvariable [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/nifti1/nii2mnc.c:42:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/nifti1/nii2mnc.c:53:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_MAX [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/nifti1/nii2mnc.c:110:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/scxtominc/scx_file.c:120:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable scx_file [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/scxtominc/scx_file.c:305:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable scx_mnem_type_size [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/scxtominc/scx_file.c:499:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:517:9: error: Resource leak: ci.hdr_fp [resourceLeak] minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:523:9: error: Resource leak: ci.img_fp [resourceLeak] minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:413:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:415:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:1038:32: style: Same expression on both sides of '-'. [duplicateExpression] minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:472:11: style: Variable 'ctmp' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:782:1: style: Parameter 'ci_ptr' can be declared as pointer to const. However it seems that 'upet_file_type' is a callback function, if 'ci_ptr' is declared with const you might also need to cast function pointer(s). [constParameterCallback] minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:194:34: note: You might need to cast the function pointer here minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:782:1: note: Parameter 'ci_ptr' can be declared as pointer to const minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:842:1: style: Parameter 'ci_ptr' can be declared as pointer to const. However it seems that 'upet_bed_motion' is a callback function, if 'ci_ptr' is declared with const you might also need to cast function pointer(s). [constParameterCallback] minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:198:34: note: You might need to cast the function pointer here minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:842:1: note: Parameter 'ci_ptr' can be declared as pointer to const minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:927:1: style: Parameter 'ci_ptr' can be declared as pointer to const. However it seems that 'upet_data_order' is a callback function, if 'ci_ptr' is declared with const you might also need to cast function pointer(s). [constParameterCallback] minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:254:33: note: You might need to cast the function pointer here minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:927:1: note: Parameter 'ci_ptr' can be declared as pointer to const minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:1010:18: style: Parameter 'str_ptr' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:1257:1: style: Parameter 'ci_ptr' can be declared as pointer to const. However it seems that 'upet_rotation' is a callback function, if 'ci_ptr' is declared with const you might also need to cast function pointer(s). [constParameterCallback] minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:320:34: note: You might need to cast the function pointer here minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:1257:1: note: Parameter 'ci_ptr' can be declared as pointer to const minc-tools-2.3.00+dfsg/conversion/ecattominc/ecattominc.c:854:22: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] minc-tools-2.3.00+dfsg/conversion/ecattominc/ecattominc.c:871:22: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] minc-tools-2.3.00+dfsg/conversion/ecattominc/ecattominc.c:923:22: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] minc-tools-2.3.00+dfsg/conversion/scxtominc/scxmnem.c:85:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/ecattominc/ecattominc.c:492:30: style: Condition 'write_minc_slice(scale,write_byte_data,mincid,icvid,ndims,start,count,image,frame_info[iframe].image_xsize,frame_info[iframe].image_ysize,pixel_max,image_max,frame_info[iframe].scan_time,frame_info[iframe].time_width,frame_info[iframe].zstep*(double)slice_num+frame_info[iframe].zstart)' is always false [knownConditionTrueFalse] minc-tools-2.3.00+dfsg/conversion/ecattominc/ecattominc.c:492:30: note: Calling function 'write_minc_slice' returns 0 minc-tools-2.3.00+dfsg/conversion/ecattominc/ecattominc.c:492:30: note: Condition 'write_minc_slice(scale,write_byte_data,mincid,icvid,ndims,start,count,image,frame_info[iframe].image_xsize,frame_info[iframe].image_ysize,pixel_max,image_max,frame_info[iframe].scan_time,frame_info[iframe].time_width,frame_info[iframe].zstep*(double)slice_num+frame_info[iframe].zstart)' is always false minc-tools-2.3.00+dfsg/conversion/scxtominc/scxmnem.c:65:10: style: Variable 'pname' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/ecattominc/ecattominc.c:242:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/ecattominc/ecattominc.c:246:41: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/ecattominc/ecattominc.c:250:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/ecattominc/ecattominc.c:254:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/ecattominc/ecattominc.c:258:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/ecattominc/ecattominc.c:260:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/ecattominc/ecattominc.c:262:28: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/ecattominc/ecattominc.c:267:38: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/ecattominc/ecattominc.c:269:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/ecattominc/ecattominc.c:575:24: style: Parameter 'progname' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/ecattominc/ecattominc.c:602:44: style: Parameter 'slice_range' can be declared as const array [constParameter] minc-tools-2.3.00+dfsg/conversion/ecattominc/ecattominc.c:606:17: style: Variable 'the_months' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/ecattominc/ecattominc.c:618:15: style: Variable 'tm_ptr' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/ecattominc/ecattominc.c:621:10: style: Variable 'description' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/ecattominc/ecattominc.c:1467:32: style: Parameter 'frame_info' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/ecattominc/ecattominc.c:1481:9: 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] minc-tools-2.3.00+dfsg/conversion/ecattominc/ecattominc.c:1555:9: 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] minc-tools-2.3.00+dfsg/conversion/scxtominc/scx_file.c:123:9: warning: If memory allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/conversion/scxtominc/scx_file.c:120:26: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/scxtominc/scx_file.c:120:11: note: Assignment 'file=(void*)malloc(sizeof(scx_file))', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/scxtominc/scx_file.c:123:9: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/scxtominc/scx_file.c:129:4: warning: If memory allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/conversion/scxtominc/scx_file.c:120:26: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/scxtominc/scx_file.c:120:11: note: Assignment 'file=(void*)malloc(sizeof(scx_file))', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/scxtominc/scx_file.c:123:51: note: Assuming condition is false minc-tools-2.3.00+dfsg/conversion/scxtominc/scx_file.c:129:4: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/scxtominc/scx_file.c:130:14: warning: If memory allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/conversion/scxtominc/scx_file.c:120:26: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/scxtominc/scx_file.c:120:11: note: Assignment 'file=(void*)malloc(sizeof(scx_file))', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/scxtominc/scx_file.c:123:51: note: Assuming condition is false minc-tools-2.3.00+dfsg/conversion/scxtominc/scx_file.c:130:14: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/scxtominc/scx_file.c:131:14: warning: If memory allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/conversion/scxtominc/scx_file.c:120:26: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/scxtominc/scx_file.c:120:11: note: Assignment 'file=(void*)malloc(sizeof(scx_file))', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/scxtominc/scx_file.c:123:51: note: Assuming condition is false minc-tools-2.3.00+dfsg/conversion/scxtominc/scx_file.c:131:14: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/scxtominc/scx_file.c:113:33: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/scxtominc/scx_file.c:213:47: style: Parameter 'mnem' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/scxtominc/scx_file.c:216:20: style: Variable 'block_ptr' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/scxtominc/scx_file.c:489:39: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/scxtominc/scx_file.c:492:20: style: Variable 'block_ptr' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/mnitominc/mnitominc.h:180:33: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/mnitominc/mnitominc.h:182:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/mnitominc/mnitominc.h:186:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/mnitominc/mnitominc.h:188:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/mnitominc/mnitominc.h:192:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/mnitominc/mnitominc.h:198:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/mnitominc/mnitominc.h:204:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/mnitominc/mnitominc.h:206:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/mnitominc/mnitominc.h:208:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/mnitominc/mnitominc.h:210:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/mnitominc/mnitominc.c:575:24: style: Parameter 'progname' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/mnitominc/mnitominc.c:597:26: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/mnitominc/mnitominc.c:778:25: style: Variable 'valid_range' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/ecattominc/ecattominc.c:434:10: style: Variable 'scale' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/progs/Proglib/minc_endian.c:24:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/Proglib/minc_endian.c:106:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/Proglib/minc_endian.c:33:9: style: Variable 'p_last' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/Proglib/minc_endian.c:60:9: style: Variable 'p_last' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/Proglib/minc_endian.c:79:9: style: Variable 'p_last' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/Proglib/vax_conversions.c:157:11: portability:inconclusive: Casting from float * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:154:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable 0.833333333333333e [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:328:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable 0.129418923021993e [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:510:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable 0.833333333333333e [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/coordinates/voxeltoworld.c:100:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/coordinates/voxeltoworld.c:124:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:6102:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable 0.914041914819518e [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:6715:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable 0.129418923021993e [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:6919:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable 0.833333333333333e [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:7384:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable 0.771058495001320e [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:7457:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable 0.771058495001320e [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:7685:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable 0.273076135303957e [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:8117:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable 0.833333333333333e [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:8166:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable 0.577215664901533e [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:8229:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable 0.820756370353826e [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:8497:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable 0.185185185185185e [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:8938:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable 0.895385022981970e [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:9150:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable 0.914041914819518e [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:9182:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable 0.566749439387324e [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:9234:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable 0.566749439387324e [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:9492:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:11074:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NIFTI_FIRST_STATCODE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:11156:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NIFTI_INTENT_ZSCORE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:11208:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NIFTI_FIRST_STATCODE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:263:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ARGV_CONSTANT [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:517:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:653:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MI_ERROR [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:982:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NC_DOUBLE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:1255:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MI_ICV_VALID_MAX [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:1317:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_EPSILON [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/coordinates/voxeltoworld.c:98:28: style: Parameter 'string' can be declared as pointer to const. However it seems that 'print_to_stderr' is a callback function, if 'string' is declared with const you might also need to cast function pointer(s). [constParameterCallback] minc-tools-2.3.00+dfsg/progs/coordinates/voxeltoworld.c:135:23: note: You might need to cast the function pointer here minc-tools-2.3.00+dfsg/progs/coordinates/voxeltoworld.c:98:28: note: Parameter 'string' can be declared as pointer to const minc-tools-2.3.00+dfsg/progs/coordinates/worldtovoxel.c:97:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/coordinates/worldtovoxel.c:119:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/coordinates/worldtovoxel.c:95:28: style: Parameter 'string' can be declared as pointer to const. However it seems that 'print_to_stderr' is a callback function, if 'string' is declared with const you might also need to cast function pointer(s). [constParameterCallback] minc-tools-2.3.00+dfsg/progs/coordinates/worldtovoxel.c:130:23: note: You might need to cast the function pointer here minc-tools-2.3.00+dfsg/progs/coordinates/worldtovoxel.c:95:28: note: Parameter 'string' can be declared as pointer to const minc-tools-2.3.00+dfsg/progs/Proglib/convert_origin_to_start.c:77:37: style: Parameter 'origin' can be declared as const array [constParameter] minc-tools-2.3.00+dfsg/progs/Proglib/convert_origin_to_start.c:159:48: style: Parameter 'vector1' can be declared as const array [constParameter] minc-tools-2.3.00+dfsg/progs/Proglib/convert_origin_to_start.c:160:49: style: Parameter 'vector2' can be declared as const array [constParameter] minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:176:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:456:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/vff2mnc/vff2mnc.c:166:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _S_IFMT [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/vff2mnc/vff2mnc.c:423:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_MAX [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/vff2mnc/vff2mnc.c:467:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/vff2mnc/vff2mnc.c:531:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/vff2mnc/vff2mnc.c:650:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_MAX [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/vff2mnc/vff2mnc.c:757:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/vff2mnc/vff2mnc.c:907:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_MAX [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/vff2mnc/vff2mnc.c:997:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MI_TYPE_INT [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/vff2mnc/vff2mnc.c:1117:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:306:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:681:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:724:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:819:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:901:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:951:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:1017:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/nifti1/nii2mnc.c:154:36: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:449:30: style: Condition 'write_minc_slice(scale,write_byte_data,mincid,icvid,ndims,start,count,image,scx_file_info[ifile].image_size,pixel_max,image_max,scx_file_info[ifile].scan_time,scx_file_info[ifile].time_width,scx_file_info[ifile].zstep*(double)slice_num+scx_file_info[ifile].zstart)' is always false [knownConditionTrueFalse] minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:449:30: note: Calling function 'write_minc_slice' returns 0 minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:449:30: note: Condition 'write_minc_slice(scale,write_byte_data,mincid,icvid,ndims,start,count,image,scx_file_info[ifile].image_size,pixel_max,image_max,scx_file_info[ifile].scan_time,scx_file_info[ifile].time_width,scx_file_info[ifile].zstep*(double)slice_num+scx_file_info[ifile].zstart)' is always false minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:786:19: error: Common realloc mistake: 'att_vector' nulled but not freed upon failure [memleakOnRealloc] minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:808:13: error: Common realloc mistake: 'mnem_list' nulled but not freed upon failure [memleakOnRealloc] minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:751:41: warning: If memory allocation fails, then there is a possible null pointer dereference: mnem_list [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:747:22: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:747:22: note: Assignment 'mnem_list=(void*)malloc((unsigned long)(1)*sizeof(*mnem_list))', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:751:41: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:752:31: warning: If memory allocation fails, then there is a possible null pointer dereference: mnem_list [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:747:22: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:747:22: note: Assignment 'mnem_list=(void*)malloc((unsigned long)(1)*sizeof(*mnem_list))', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:752:31: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:761:18: warning: If memory allocation fails, then there is a possible null pointer dereference: (char*)att_vector [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:760:29: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:760:29: note: Assignment 'att_vector=(void*)malloc((unsigned long)(length)*sizeof(char))', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:761:18: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:875:13: warning: If memory allocation fails, then there is a possible null pointer dereference: slice_ptr [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:874:25: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:874:25: note: Assignment 'slice_ptr=(void*)malloc((unsigned long)(1)*sizeof(*slice_ptr))', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:875:13: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:876:13: warning: If memory allocation fails, then there is a possible null pointer dereference: slice_ptr [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:874:25: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:874:25: note: Assignment 'slice_ptr=(void*)malloc((unsigned long)(1)*sizeof(*slice_ptr))', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:876:13: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:884:10: warning: If memory allocation fails, then there is a possible null pointer dereference: scx_sort [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:855:15: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:855:15: note: Assignment 'scx_sort=(void*)malloc((unsigned long)(num_sort)*sizeof(*scx_sort))', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:884:10: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:263:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:267:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:271:41: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:275:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:279:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:286:38: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:288:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:290:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:515:24: style: Parameter 'progname' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:543:27: style: Parameter 'slice_range' can be declared as const array [constParameter] minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:547:17: style: Variable 'the_months' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:1171:39: style: Parameter 'scx_file_info' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:1182:9: 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] minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:1242:9: 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] minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:394:10: style: Variable 'scale' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:336:34: style: Condition 'attribute_exists' is always true [knownConditionTrueFalse] minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:544:10: error: Common realloc mistake: 'attribute_list' nulled but not freed upon failure [memleakOnRealloc] minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:317:41: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: tmp_value [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:311:32: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:311:32: note: Assignment 'tmp_value=malloc((attribute_length+new_length)*nctypelen(new_type))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:317:41: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:342:19: warning: If memory allocation fails, then there is a possible null pointer dereference: zeros [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:339:30: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:339:30: note: Assignment 'zeros=malloc(total_length)', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:342:19: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:506:13: warning: If memory allocation fails, then there is a possible null pointer dereference: dvalues [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:499:26: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:499:26: note: Assignment 'dvalues=malloc(sizeof(*dvalues)*num_doubles)', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:506:13: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:549:4: warning: If memory allocation fails, then there is a possible null pointer dereference: attribute_list [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:541:19: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:541:19: note: Assignment 'attribute_list=malloc(attribute_list_alloc*sizeof(*attribute_list))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:549:4: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:550:4: warning: If memory allocation fails, then there is a possible null pointer dereference: attribute_list [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:541:19: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:541:19: note: Assignment 'attribute_list=malloc(attribute_list_alloc*sizeof(*attribute_list))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:550:4: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:551:4: warning: If memory allocation fails, then there is a possible null pointer dereference: attribute_list [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:541:19: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:541:19: note: Assignment 'attribute_list=malloc(attribute_list_alloc*sizeof(*attribute_list))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:551:4: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:552:4: warning: If memory allocation fails, then there is a possible null pointer dereference: attribute_list [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:541:19: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:541:19: note: Assignment 'attribute_list=malloc(attribute_list_alloc*sizeof(*attribute_list))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:552:4: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:553:4: warning: If memory allocation fails, then there is a possible null pointer dereference: attribute_list [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:541:19: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:541:19: note: Assignment 'attribute_list=malloc(attribute_list_alloc*sizeof(*attribute_list))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:553:4: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:554:4: warning: If memory allocation fails, then there is a possible null pointer dereference: attribute_list [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:541:19: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:541:19: note: Assignment 'attribute_list=malloc(attribute_list_alloc*sizeof(*attribute_list))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:554:4: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:321:31: error:inconclusive: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:311:32: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:311:32: note: Assignment 'tmp_value=malloc((attribute_length+new_length)*nctypelen(new_type))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:321:31: note: Null pointer addition minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:310:14: style: Variable 'new_type' is assigned an expression that holds the same value. [redundantAssignment] minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:301:27: note: Assuming that condition 'new_type!=attribute_type' is not redundant minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:310:14: note: Variable 'new_type' is assigned an expression that holds the same value. minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:157:10: style: Variable 'pname' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:414:36: style: Parameter 'key' can be declared as pointer to const. However it seems that 'get_attribute' is a callback function, if 'key' is declared with const you might also need to cast function pointer(s). [constParameterCallback] minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:148:37: note: You might need to cast the function pointer here minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:414:36: note: Parameter 'key' can be declared as pointer to const minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:419:10: style: Variable 'format' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/minccalc/eval.c:53:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/minccalc/eval.c:119:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_MAX [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/minccalc/eval.c:488:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/minccalc/eval.c:509:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_MAX [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/minccalc/eval.c:538:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_MAX [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/minccalc/eval.c:565:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_MAX [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/minccalc/eval.c:653:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_MAX [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/minccalc/eval.c:794:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/minccalc/eval.c:853:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] progs/minccalc/gram.c:1054:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] progs/minccalc/gram.c:1088:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] progs/minccalc/gram.c:1368:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] progs/minccalc/gram.c:1482:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincblob/mincblob.c:97:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincblob/mincblob.c:406:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:1056:13: error: Common realloc mistake: 'double_list' nulled but not freed upon failure [memleakOnRealloc] minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:1060:7: warning: If memory allocation fails, then there is a possible null pointer dereference: double_list [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:1053:22: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:1053:22: note: Assignment 'double_list=malloc(num_alloc*sizeof(*double_list))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:1060:7: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:212:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:218:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:222:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:224:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:226:41: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:230:41: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:247:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:251:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:253:34: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:257:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:259:33: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:261:36: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:265:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:267:33: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:269:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:271:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:273:34: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:275:34: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:277:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:279:26: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:284:39: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:286:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:288:41: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:806:48: style: Local variable 'ignore_below' shadows outer variable [shadowVariable] minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:195:15: note: Shadowed declaration minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:806:48: note: Shadow variable minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:806:62: style: Local variable 'ignore_above' shadows outer variable [shadowVariable] minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:196:15: note: Shadowed declaration minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:806:62: note: Shadow variable minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:807:8: style: Local variable 'binarize' shadows outer variable [shadowVariable] minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:192:12: note: Shadowed declaration minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:807:8: note: Shadow variable minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:888:18: style: Variable 'average_data' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:934:18: style: Variable 'average_data' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:1004:45: style: Parameter 'key' can be declared as pointer to const. However it seems that 'get_double_list' is a callback function, if 'key' is declared with const you might also need to cast function pointer(s). [constParameterCallback] minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:281:37: note: You might need to cast the function pointer here minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:1004:45: note: Parameter 'key' can be declared as pointer to const minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:1012:16: style: Variable 'end' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:629:20: style: Variable 'first_mincid' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/progs/minccalc/ident.c:52:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/minccalc/ident.c:28:4: warning: If memory allocation fails, then there is a possible null pointer dereference: i [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/minccalc/ident.c:27:14: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minccalc/ident.c:27:14: note: Assignment 'i=malloc(sizeof(*i))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minccalc/ident.c:28:4: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/minccalc/ident.c:29:4: warning: If memory allocation fails, then there is a possible null pointer dereference: i [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/minccalc/ident.c:27:14: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minccalc/ident.c:27:14: note: Assignment 'i=malloc(sizeof(*i))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minccalc/ident.c:29:4: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/minccalc/ident.c:30:4: warning: If memory allocation fails, then there is a possible null pointer dereference: i [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/minccalc/ident.c:27:14: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minccalc/ident.c:27:14: note: Assignment 'i=malloc(sizeof(*i))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minccalc/ident.c:30:4: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/minccalc/ident.c:31:4: warning: If memory allocation fails, then there is a possible null pointer dereference: i [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/minccalc/ident.c:27:14: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minccalc/ident.c:27:14: note: Assignment 'i=malloc(sizeof(*i))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minccalc/ident.c:31:4: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/minccalc/ident.c:33:11: warning: If memory allocation fails, then there is a possible null pointer dereference: i [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/minccalc/ident.c:27:14: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minccalc/ident.c:27:14: note: Assignment 'i=malloc(sizeof(*i))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minccalc/ident.c:33:11: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/minccalc/ident.c:57:28: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] progs/minccalc/gram.c:1032:47: warning: Either the condition 'yytype<61' is redundant or the array 'yytname[68]' is accessed at index 68, which is out of bounds. [arrayIndexOutOfBoundsCond] progs/minccalc/gram.c:1029:14: note: Assuming that condition 'yytype<61' is not redundant progs/minccalc/gram.c:1032:47: note: Array index out of bounds progs/minccalc/gram.c:1618:15: style: Condition 'yyn==0' is always true [knownConditionTrueFalse] progs/minccalc/gram.c:1615:16: note: Assignment 'yyn=yytable[yyn]', assigned value is greater than -1 progs/minccalc/gram.c:1616:11: note: Assuming that condition 'yyn<=0' is not redundant progs/minccalc/gram.c:1618:15: note: Condition 'yyn==0' is always true gram.y:54:25: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:61:60: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:65:44: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:79:33: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:109:40: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:122:40: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:134:40: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:146:40: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:158:40: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:172:44: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:184:44: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:198:44: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:210:44: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:222:44: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:234:44: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:246:44: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:258:44: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:270:44: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:282:44: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:294:44: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:306:44: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:318:44: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:330:44: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:339:40: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:348:60: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:352:44: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:359:33: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:370:44: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:380:44: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:390:44: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:400:44: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:410:44: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:420:44: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:430:44: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:440:44: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:450:44: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:461:44: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:472:44: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:483:44: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:494:44: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:505:44: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:516:44: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:527:44: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:538:44: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:549:44: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:560:44: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:571:44: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:609:44: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:621:44: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:628:60: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:632:44: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:644:44: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:651:61: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:654:42: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:664:41: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:686:44: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:698:44: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:706:40: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:708:44: style: Same expression on both sides of '-'. [duplicateExpression] gram.y:719:44: style: Same expression on both sides of '-'. [duplicateExpression] progs/minccalc/lex.c:740:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] progs/minccalc/lex.c:1258:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] progs/minccalc/lex.c:1442:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] progs/minccalc/lex.c:1589:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] progs/minccalc/lex.c:1827:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] progs/minccalc/gram.c:1051:19: style: Parameter 'yytop' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:278:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:463:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:552:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:661:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] progs/minccalc/lex.c:1106:16: style: Condition 'yywrap()' is always true [knownConditionTrueFalse] progs/minccalc/lex.c:1106:16: note: Calling function 'yywrap' returns 1 progs/minccalc/lex.c:1106:16: note: Condition 'yywrap()' is always true progs/minccalc/lex.c:1441:17: style: Condition 'yywrap()' is always true [knownConditionTrueFalse] progs/minccalc/lex.c:1441:17: note: Calling function 'yywrap' returns 1 progs/minccalc/lex.c:1441:17: note: Condition 'yywrap()' is always true progs/minccalc/lex.c:1224:27: warning: Possible null pointer dereference: b [nullPointer] progs/minccalc/lex.c:1221:24: note: Assignment 'b=(yy_buffer_stack)?(yy_buffer_stack)[yy_buffer_stack_top]:NULL', assigned value is 0 progs/minccalc/lex.c:1224:27: note: Null pointer dereference progs/minccalc/lex.c:1226:9: warning: Possible null pointer dereference: b [nullPointer] progs/minccalc/lex.c:1221:24: note: Assignment 'b=(yy_buffer_stack)?(yy_buffer_stack)[yy_buffer_stack_top]:NULL', assigned value is 0 progs/minccalc/lex.c:1226:9: note: Null pointer dereference progs/minccalc/lex.c:1593:2: warning: Possible null pointer dereference: b [nullPointer] progs/minccalc/lex.c:1482:17: note: Calling function 'yy_init_buffer', 1st argument '(yy_buffer_stack)?(yy_buffer_stack)[yy_buffer_stack_top]:NULL' value is 0 progs/minccalc/lex.c:1593:2: note: Null pointer dereference progs/minccalc/lex.c:1594:2: warning: Possible null pointer dereference: b [nullPointer] progs/minccalc/lex.c:1482:17: note: Calling function 'yy_init_buffer', 1st argument '(yy_buffer_stack)?(yy_buffer_stack)[yy_buffer_stack_top]:NULL' value is 0 progs/minccalc/lex.c:1594:2: note: Null pointer dereference progs/minccalc/lex.c:1258:3: style: Redundant initialization for 'c'. The initialized value is overwritten before it is read. [redundantInitialization] progs/minccalc/lex.c:1258:3: note: c is initialized progs/minccalc/lex.c:1258:3: note: c is overwritten lex.l:202:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] lex.l:211:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] progs/minccalc/lex.c:1334:59: style:inconclusive: Function 'yy_try_NUL_trans' argument 1 names different: declaration 'current_state' definition 'yy_current_state'. [funcArgNamesDifferent] progs/minccalc/lex.c:357:54: note: Function 'yy_try_NUL_trans' argument 1 names different: declaration 'current_state' definition 'yy_current_state'. progs/minccalc/lex.c:1334:59: note: Function 'yy_try_NUL_trans' argument 1 names different: declaration 'current_state' definition 'yy_current_state'. progs/minccalc/lex.c:1357:49: style:inconclusive: Function 'yyunput' argument 2 names different: declaration 'buf_ptr' definition 'yy_bp'. [funcArgNamesDifferent] progs/minccalc/lex.c:595:38: note: Function 'yyunput' argument 2 names different: declaration 'buf_ptr' definition 'yy_bp'. progs/minccalc/lex.c:1357:49: note: Function 'yyunput' argument 2 names different: declaration 'buf_ptr' definition 'yy_bp'. progs/minccalc/lex.c:1778:48: style:inconclusive: Function 'yy_scan_string' argument 1 names different: declaration 'yy_str' definition 'yystr'. [funcArgNamesDifferent] progs/minccalc/lex.c:310:47: note: Function 'yy_scan_string' argument 1 names different: declaration 'yy_str' definition 'yystr'. progs/minccalc/lex.c:1778:48: note: Function 'yy_scan_string' argument 1 names different: declaration 'yy_str' definition 'yystr'. progs/minccalc/lex.c:1791:48: style:inconclusive: Function 'yy_scan_bytes' argument 1 names different: declaration 'bytes' definition 'yybytes'. [funcArgNamesDifferent] progs/minccalc/lex.c:311:46: note: Function 'yy_scan_bytes' argument 1 names different: declaration 'bytes' definition 'yybytes'. progs/minccalc/lex.c:1791:48: note: Function 'yy_scan_bytes' argument 1 names different: declaration 'bytes' definition 'yybytes'. progs/minccalc/lex.c:1791:62: style:inconclusive: Function 'yy_scan_bytes' argument 2 names different: declaration 'len' definition '_yybytes_len'. [funcArgNamesDifferent] progs/minccalc/lex.c:311:56: note: Function 'yy_scan_bytes' argument 2 names different: declaration 'len' definition '_yybytes_len'. progs/minccalc/lex.c:1791:62: note: Function 'yy_scan_bytes' argument 2 names different: declaration 'len' definition '_yybytes_len'. progs/minccalc/lex.c:1923:24: style:inconclusive: Function 'yyset_debug' argument 1 names different: declaration 'debug_flag' definition 'bdebug'. [funcArgNamesDifferent] progs/minccalc/lex.c:561:23: note: Function 'yyset_debug' argument 1 names different: declaration 'debug_flag' definition 'bdebug'. progs/minccalc/lex.c:1923:24: note: Function 'yyset_debug' argument 1 names different: declaration 'debug_flag' definition 'bdebug'. progs/minccalc/lex.c:1171:17: style: Variable 'source' can be declared as pointer to const [constVariablePointer] progs/minccalc/lex.c:1372:18: style: Variable 'source' can be declared as pointer to const [constVariablePointer] progs/minccalc/lex.c:1791:48: style: Parameter 'yybytes' can be declared as pointer to const [constParameterPointer] progs/minccalc/lex.c:1825:43: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/progs/minccalc/eval.c:393:10: warning: If memory allocation fails, then there is a possible null pointer dereference: isnan_flags [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/minccalc/eval.c:389:27: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minccalc/eval.c:389:27: note: Assignment 'isnan_flags=malloc(sizeof(eval_flags[0])*width)', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minccalc/eval.c:393:10: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/minccalc/eval.c:394:10: warning: If memory allocation fails, then there is a possible null pointer dereference: eval_flags2 [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/minccalc/eval.c:388:27: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minccalc/eval.c:388:27: note: Assignment 'eval_flags2=malloc(sizeof(eval_flags[0])*width)', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minccalc/eval.c:394:10: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/minccalc/eval.c:396:38: warning: If memory allocation fails, then there is a possible null pointer dereference: isnan_flags [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/minccalc/eval.c:389:27: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minccalc/eval.c:389:27: note: Assignment 'isnan_flags=malloc(sizeof(eval_flags[0])*width)', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minccalc/eval.c:396:38: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/minccalc/eval.c:397:14: warning: If memory allocation fails, then there is a possible null pointer dereference: eval_flags2 [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/minccalc/eval.c:388:27: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minccalc/eval.c:388:27: note: Assignment 'eval_flags2=malloc(sizeof(eval_flags[0])*width)', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minccalc/eval.c:397:14: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/minccalc/eval.c:653:10: warning: If memory allocation fails, then there is a possible null pointer dereference: isnan_flags [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/minccalc/eval.c:649:27: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minccalc/eval.c:649:27: note: Assignment 'isnan_flags=malloc(sizeof(eval_flags[0])*width)', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minccalc/eval.c:653:10: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/minccalc/eval.c:654:10: warning: If memory allocation fails, then there is a possible null pointer dereference: eval_flags2 [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/minccalc/eval.c:648:27: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minccalc/eval.c:648:27: note: Assignment 'eval_flags2=malloc(sizeof(eval_flags[0])*width)', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minccalc/eval.c:654:10: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/minccalc/eval.c:656:38: warning: If memory allocation fails, then there is a possible null pointer dereference: isnan_flags [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/minccalc/eval.c:649:27: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minccalc/eval.c:649:27: note: Assignment 'isnan_flags=malloc(sizeof(eval_flags[0])*width)', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minccalc/eval.c:656:38: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/minccalc/eval.c:657:14: warning: If memory allocation fails, then there is a possible null pointer dereference: eval_flags2 [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/minccalc/eval.c:648:27: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minccalc/eval.c:648:27: note: Assignment 'eval_flags2=malloc(sizeof(eval_flags[0])*width)', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minccalc/eval.c:657:14: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/minccalc/eval.c:475:37: style: Parameter 'eval_flags' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/progs/minccalc/eval.c:495:35: style: Parameter 'eval_flags' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/progs/minccalc/eval.c:524:36: style: Parameter 'eval_flags' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/progs/minccalc/eval.c:555:35: style: Parameter 'eval_flags' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/progs/minccalc/node.c:61:4: warning: If memory allocation fails, then there is a possible null pointer dereference: n [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/minccalc/node.c:60:14: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minccalc/node.c:60:14: note: Assignment 'n=malloc(sizeof(*n))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minccalc/node.c:61:4: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/minccalc/node.c:62:4: warning: If memory allocation fails, then there is a possible null pointer dereference: n [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/minccalc/node.c:60:14: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minccalc/node.c:60:14: note: Assignment 'n=malloc(sizeof(*n))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minccalc/node.c:62:4: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/minccalc/node.c:64:7: warning: If memory allocation fails, then there is a possible null pointer dereference: n [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/minccalc/node.c:60:14: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minccalc/node.c:60:14: note: Assignment 'n=malloc(sizeof(*n))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minccalc/node.c:64:7: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/minccalc/eval.c:843:4: warning: Uninitialized variable: length [uninitvar] minc-tools-2.3.00+dfsg/progs/minccalc/eval.c:823:28: note: Assuming condition is false minc-tools-2.3.00+dfsg/progs/minccalc/eval.c:843:4: note: Uninitialized variable: length minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:607:13: error: Common realloc mistake: 'expression' nulled but not freed upon failure [memleakOnRealloc] minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:683:11: error: Common realloc mistake: 'list' nulled but not freed upon failure [memleakOnRealloc] minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:300:17: warning: If memory allocation fails, then there is a possible null pointer dereference: outfiles [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:288:21: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:288:21: note: Assignment 'outfiles=malloc(nout*sizeof(*outfiles))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:300:17: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:615:4: warning: If memory allocation fails, then there is a possible null pointer dereference: expression [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:576:23: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:576:23: note: Assignment 'expression=malloc(size*sizeof(*expression))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:582:27: note: Assuming condition is false minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:615:4: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:185:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:191:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:195:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:197:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:199:36: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:217:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:221:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:223:41: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:226:41: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:234:38: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:236:28: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:242:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:245:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:247:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:251:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:540:10: style: Local variable 'expression' shadows outer variable [shadowVariable] minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:171:7: note: Shadowed declaration minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:540:10: note: Shadow variable minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:267:10: style: Variable 'pname' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:642:45: style: Parameter 'key' can be declared as pointer to const. However it seems that 'get_list_option' is a callback function, if 'key' is declared with const you might also need to cast function pointer(s). [constParameterCallback] minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:249:40: note: You might need to cast the function pointer here minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:642:45: note: Parameter 'key' can be declared as pointer to const minc-tools-2.3.00+dfsg/progs/minccalc/scalar.c:25:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/minccalc/scalar.c:13:4: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/minccalc/scalar.c:12:14: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minccalc/scalar.c:12:14: note: Assignment 's=malloc(sizeof(*s))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minccalc/scalar.c:13:4: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/minccalc/scalar.c:14:4: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/minccalc/scalar.c:12:14: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minccalc/scalar.c:12:14: note: Assignment 's=malloc(sizeof(*s))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minccalc/scalar.c:14:4: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/minccalc/scalar.c:15:4: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/minccalc/scalar.c:12:14: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minccalc/scalar.c:12:14: note: Assignment 's=malloc(sizeof(*s))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minccalc/scalar.c:15:4: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/minccalc/vector.c:37:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/minccalc/vector.c:13:4: warning: If memory allocation fails, then there is a possible null pointer dereference: v [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/minccalc/vector.c:12:14: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minccalc/vector.c:12:14: note: Assignment 'v=malloc(sizeof(*v))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minccalc/vector.c:13:4: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/minccalc/vector.c:14:4: warning: If memory allocation fails, then there is a possible null pointer dereference: v [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/minccalc/vector.c:12:14: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minccalc/vector.c:12:14: note: Assignment 'v=malloc(sizeof(*v))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minccalc/vector.c:14:4: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/minccalc/vector.c:15:4: warning: If memory allocation fails, then there is a possible null pointer dereference: v [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/minccalc/vector.c:12:14: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minccalc/vector.c:12:14: note: Assignment 'v=malloc(sizeof(*v))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minccalc/vector.c:15:4: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/minccalc/vector.c:16:4: warning: If memory allocation fails, then there is a possible null pointer dereference: v [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/minccalc/vector.c:12:14: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minccalc/vector.c:12:14: note: Assignment 'v=malloc(sizeof(*v))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minccalc/vector.c:16:4: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/minccalc/sym.c:93:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/minccalc/sym.c:127:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/minccalc/sym.c:172:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/minccalc/sym.c:187:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/minccalc/sym.c:23:4: warning: If memory allocation fails, then there is a possible null pointer dereference: newsym [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/minccalc/sym.c:22:19: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minccalc/sym.c:22:19: note: Assignment 'newsym=malloc(sizeof(*newsym))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minccalc/sym.c:23:4: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/minccalc/sym.c:24:4: warning: If memory allocation fails, then there is a possible null pointer dereference: newsym [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/minccalc/sym.c:22:19: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minccalc/sym.c:22:19: note: Assignment 'newsym=malloc(sizeof(*newsym))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minccalc/sym.c:24:4: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/minccalc/sym.c:80:37: style: Parameter 'eval_flags' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/progs/minccalc/sym.c:113:37: style: Parameter 'eval_flags' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/progs/mincconvert/mincconvert.c:97:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NC_NOFILL [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincconvert/mincconvert.c:138:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincconvert/mincconvert.c:78:33: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincconvert/mincconvert.c:80:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincconvert/mincconvert.c:82:34: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincconvert/mincconvert.c:84:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincconvert/mincconvert.c:86:26: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/minccmp/minccmp.c:198:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/minccmp/minccmp.c:436:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/minccmp/minccmp.c:545:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/minccmp/minccmp.c:593:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/minccmp/minccmp.c:600:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/minccmp/minccmp.c:609:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/minccopy/minccopy.c:105:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincblob/mincblob.c:359:38: style: Parameter 'sizes' can be declared as const array [constParameter] minc-tools-2.3.00+dfsg/progs/minccopy/minccopy.c:92:37: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincdump/dumplib.c:41:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincdump/dumplib.c:76:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincdump/dumplib.c:111:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ncopts [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincdump/dumplib.c:146:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NC_FLOAT [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincdump/dumplib.c:57:16: style:inconclusive: Function 'set_indent' argument 1 names different: declaration 'indent' definition 'in'. [funcArgNamesDifferent] minc-tools-2.3.00+dfsg/progs/mincdump/dumplib.h:39:30: note: Function 'set_indent' argument 1 names different: declaration 'indent' definition 'in'. minc-tools-2.3.00+dfsg/progs/mincdump/dumplib.c:57:16: note: Function 'set_indent' argument 1 names different: declaration 'indent' definition 'in'. minc-tools-2.3.00+dfsg/progs/mincdump/dumplib.c:71:18: style:inconclusive: Function 'lput' argument 1 names different: declaration 'string' definition 'cp'. [funcArgNamesDifferent] minc-tools-2.3.00+dfsg/progs/mincdump/dumplib.h:45:32: note: Function 'lput' argument 1 names different: declaration 'string' definition 'cp'. minc-tools-2.3.00+dfsg/progs/mincdump/dumplib.c:71:18: note: Function 'lput' argument 1 names different: declaration 'string' definition 'cp'. minc-tools-2.3.00+dfsg/progs/mincdump/dumplib.c:86:17: style:inconclusive: Function 'set_formats' argument 1 names different: declaration 'flt_digs' definition 'float_digits'. [funcArgNamesDifferent] minc-tools-2.3.00+dfsg/progs/mincdump/dumplib.h:48:31: note: Function 'set_formats' argument 1 names different: declaration 'flt_digs' definition 'float_digits'. minc-tools-2.3.00+dfsg/progs/mincdump/dumplib.c:86:17: note: Function 'set_formats' argument 1 names different: declaration 'flt_digs' definition 'float_digits'. minc-tools-2.3.00+dfsg/progs/mincdump/dumplib.c:86:35: style:inconclusive: Function 'set_formats' argument 2 names different: declaration 'dbl_digs' definition 'double_digits'. [funcArgNamesDifferent] minc-tools-2.3.00+dfsg/progs/mincdump/dumplib.h:48:45: note: Function 'set_formats' argument 2 names different: declaration 'dbl_digs' definition 'double_digits'. minc-tools-2.3.00+dfsg/progs/mincdump/dumplib.c:86:35: note: Function 'set_formats' argument 2 names different: declaration 'dbl_digs' definition 'double_digits'. minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:257:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_MAX [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:318:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MI_ORIGINAL_TYPE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:616:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:699:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:772:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:924:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:980:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NC_NAME [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:1158:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:1237:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:1444:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ncopts [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincdump/mincdump.c:39:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincdump/mincdump.c:314:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NC_CHAR [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincdump/mincdump.c:354:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NC_MAX_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincdump/mincdump.c:686:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ARGV_FUNC [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincdump/vardata.c:72:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLT_EPSILON [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincdump/vardata.c:103:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_EPSILON [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincdump/vardata.c:715:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NC_MAX_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincdump/vardata.c:814:3: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] minc-tools-2.3.00+dfsg/progs/mincdump/vardata.c:817:5: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] minc-tools-2.3.00+dfsg/progs/mincdump/vardata.c:820:3: portability:inconclusive: Casting from double * to signed char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] minc-tools-2.3.00+dfsg/progs/mincdump/vardata.c:823:5: portability:inconclusive: Casting from double * to signed char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] minc-tools-2.3.00+dfsg/progs/mincdump/vardata.c:826:3: portability: Casting from double * to signed short * is not portable due to different binary data representations on different platforms. [invalidPointerCast] minc-tools-2.3.00+dfsg/progs/mincdump/vardata.c:829:5: portability: Casting from double * to signed short * is not portable due to different binary data representations on different platforms. [invalidPointerCast] minc-tools-2.3.00+dfsg/progs/mincdump/vardata.c:832:3: portability: Casting from double * to signed int * is not portable due to different binary data representations on different platforms. [invalidPointerCast] minc-tools-2.3.00+dfsg/progs/mincdump/vardata.c:835:5: portability: Casting from double * to signed int * is not portable due to different binary data representations on different platforms. [invalidPointerCast] minc-tools-2.3.00+dfsg/progs/mincdump/vardata.c:838:3: portability: Casting between double * and float * which have an incompatible binary data representation. [invalidPointerCast] minc-tools-2.3.00+dfsg/progs/mincdump/vardata.c:841:5: portability: Casting between double * and float * which have an incompatible binary data representation. [invalidPointerCast] minc-tools-2.3.00+dfsg/progs/minccmp/minccmp.c:134:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/minccmp/minccmp.c:136:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/minccmp/minccmp.c:138:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/minccmp/minccmp.c:140:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/minccmp/minccmp.c:142:41: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/minccmp/minccmp.c:144:41: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/minccmp/minccmp.c:151:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/minccmp/minccmp.c:153:26: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/minccmp/minccmp.c:155:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/minccmp/minccmp.c:158:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/minccmp/minccmp.c:163:28: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/minccmp/minccmp.c:165:28: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/minccmp/minccmp.c:167:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/minccmp/minccmp.c:169:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/minccmp/minccmp.c:171:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/minccmp/minccmp.c:173:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/minccmp/minccmp.c:591:25: style: Parameter 'title' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/progs/minccmp/minccmp.c:598:28: style: Parameter 'title' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/progs/minccmp/minccmp.c:606:29: style: Parameter 'ld' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/progs/mincdump/vardata.c:70:11: style: Local variable 'float_eps' shadows outer variable [shadowVariable] minc-tools-2.3.00+dfsg/progs/mincdump/vardata.c:64:14: note: Shadowed declaration minc-tools-2.3.00+dfsg/progs/mincdump/vardata.c:70:11: note: Shadow variable minc-tools-2.3.00+dfsg/progs/mincdump/vardata.c:101:12: style: Local variable 'double_eps' shadows outer variable [shadowVariable] minc-tools-2.3.00+dfsg/progs/mincdump/vardata.c:65:15: note: Shadowed declaration minc-tools-2.3.00+dfsg/progs/mincdump/vardata.c:101:12: note: Shadow variable minc-tools-2.3.00+dfsg/progs/mincdump/vardata.c:709:11: style: Parameter 'vdims' can be declared as const array [constParameter] minc-tools-2.3.00+dfsg/progs/mincdump/vardata.c:732:11: style: Variable 'fmt' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincexample/mincexample1.c:144:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincexample/mincexample1.c:199:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NC_NOWRITE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincexample/mincexample1.c:235:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MI_ICV_VALID_MIN [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincexample/mincexample1.c:273:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincexample/mincexample1.c:351:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincexample/mincexample1.c:395:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NC_CLOBBER [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincexample/mincexample1.c:447:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincexample/mincexample1.c:538:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MI_ERROR [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincexample/mincexample1.c:582:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ncopts [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincexample/mincexample1.c:619:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincexample/mincexample2.c:141:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincexample/mincexample2.c:212:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NC_NOWRITE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincexample/mincexample2.c:246:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MI_ICV_VALID_MIN [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincexample/mincexample2.c:286:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincexample/mincexample2.c:384:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ncopts [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincexample/mincexample2.c:412:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincexample/mincexample2.c:462:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NC_NOCLOBBER [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincexample/mincexample2.c:502:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MI_ICV_VALID_MIN [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincexample/mincexample2.c:529:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincexample/mincexample2.c:623:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MI_ERROR [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincexample/mincexample2.c:667:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ncopts [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincexample/mincexample2.c:711:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincexample/mincexample1.c:591:4: warning: If memory allocation fails, then there is a possible null pointer dereference: string [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincexample/mincexample1.c:590:19: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincexample/mincexample1.c:590:19: note: Assignment 'string=malloc(att_length)', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincexample/mincexample1.c:591:4: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincexample/mincexample1.c:597:18: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: string [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincexample/mincexample1.c:590:19: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincexample/mincexample1.c:590:19: note: Assignment 'string=malloc(att_length)', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincexample/mincexample1.c:597:18: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincexample/mincexample1.c:269:38: style: Parameter 'infile' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/progs/mincexample/mincexample1.c:575:46: style: Parameter 'arg_string' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/progs/mincexample/mincexample2.c:676:4: warning: If memory allocation fails, then there is a possible null pointer dereference: string [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincexample/mincexample2.c:675:19: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincexample/mincexample2.c:675:19: note: Assignment 'string=malloc(att_length)', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincexample/mincexample2.c:676:4: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincexample/mincexample2.c:682:18: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: string [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincexample/mincexample2.c:675:19: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincexample/mincexample2.c:675:19: note: Assignment 'string=malloc(att_length)', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincexample/mincexample2.c:682:18: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincexpand/mincexpand.c:111:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincexample/mincexample2.c:281:38: style: Parameter 'infile' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/progs/mincexample/mincexample2.c:409:54: style: Parameter 'volume_info' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/progs/mincexample/mincexample2.c:660:46: style: Parameter 'arg_string' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/progs/mincexample/mincexample2.c:706:55: style: Parameter 'volume_info' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/progs/mincexpand/mincexpand.c:131:26: warning: If memory allocation fails, then there is a possible null pointer dereference: newfile [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincexpand/mincexpand.c:128:23: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincexpand/mincexpand.c:128:23: note: Assignment 'newfile=strdup(filename)', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincexpand/mincexpand.c:131:26: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincexpand/mincexpand.c:92:36: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincexpand/mincexpand.c:96:34: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/vff2mnc/vff2mnc.c:1153:5: error: Array 'str[0]' accessed at index 1, which is out of bounds. [arrayIndexOutOfBounds] minc-tools-2.3.00+dfsg/conversion/vff2mnc/vff2mnc.c:1152:19: note: Assuming that condition 'i<2' is not redundant minc-tools-2.3.00+dfsg/conversion/vff2mnc/vff2mnc.c:1153:5: note: Array index out of bounds minc-tools-2.3.00+dfsg/conversion/vff2mnc/vff2mnc.c:1154:2: error: Array 'str[0]' accessed at index 1, which is out of bounds. [arrayIndexOutOfBounds] minc-tools-2.3.00+dfsg/conversion/vff2mnc/vff2mnc.c:1152:19: note: Assuming that condition 'i<2' is not redundant minc-tools-2.3.00+dfsg/conversion/vff2mnc/vff2mnc.c:1154:2: note: Array index out of bounds minc-tools-2.3.00+dfsg/conversion/vff2mnc/vff2mnc.c:244:2: error: Common realloc mistake: 'file_list' nulled but not freed upon failure [memleakOnRealloc] minc-tools-2.3.00+dfsg/conversion/vff2mnc/vff2mnc.c:79:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/vff2mnc/vff2mnc.c:81:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/vff2mnc/vff2mnc.c:109:11: style: Variable 'extension' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/vff2mnc/vff2mnc.c:732:30: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/vff2mnc/vff2mnc.c:895:46: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/vff2mnc/vff2mnc.c:1221:13: style: Parameter 'found_protocol' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/vff2mnc/vff2mnc.c:1221:33: style: Parameter 'found_description' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/vff2mnc/vff2mnc.c:1221:57: style: Parameter 'found_parameters' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/vff2mnc/vff2mnc.c:107:16: style: Variable 'is_list' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/vff2mnc/vff2mnc.c:174:12: style: Variable 'is_list' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/conversion/vff2mnc/vff2mnc.c:1223:9: style: Unused variable: ptr [unusedVariable] minc-tools-2.3.00+dfsg/progs/mincgen/escapes.c:26:15: style: Variable 't' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincextract/mincextract.c:241:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincextract/mincextract.c:472:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincgen/getfill.c:24:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NC_FILL_CHAR [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincdump/mincdump.c:589:15: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] minc-tools-2.3.00+dfsg/progs/mincdump/mincdump.c:591:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] minc-tools-2.3.00+dfsg/progs/mincdump/mincdump.c:75:19: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincdump/mincdump.c:71:26: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincdump/mincdump.c:71:11: note: Assignment 'new=(char*)malloc((unsigned int)(strlen(cp)+1))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincdump/mincdump.c:75:19: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincdump/mincdump.c:76:23: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincdump/mincdump.c:71:26: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincdump/mincdump.c:71:11: note: Assignment 'new=(char*)malloc((unsigned int)(strlen(cp)+1))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincdump/mincdump.c:76:23: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincdump/mincdump.c:624:10: warning: Possible null pointer dereference: ptr1 [nullPointer] minc-tools-2.3.00+dfsg/progs/mincdump/mincdump.c:612:18: note: Assignment 'ptr1=0', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincdump/mincdump.c:617:49: note: Assuming condition is false minc-tools-2.3.00+dfsg/progs/mincdump/mincdump.c:624:10: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincdump/mincdump.c:657:10: warning: Possible null pointer dereference: ptr1 [nullPointer] minc-tools-2.3.00+dfsg/progs/mincdump/mincdump.c:643:18: note: Assignment 'ptr1=0', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincdump/mincdump.c:648:49: note: Assuming condition is false minc-tools-2.3.00+dfsg/progs/mincdump/mincdump.c:657:10: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincdump/mincdump.c:696:26: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincdump/mincdump.c:698:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincdump/mincdump.c:113:16: style: Variable 'ep' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincdump/mincdump.c:572:11: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincgen/main.c:80:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ARGV_CONSTANT [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincextract/mincextract.c:159:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincextract/mincextract.c:161:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincextract/mincextract.c:163:28: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincextract/mincextract.c:165:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincextract/mincextract.c:167:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincextract/mincextract.c:169:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincextract/mincextract.c:171:33: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincextract/mincextract.c:173:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincextract/mincextract.c:177:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincextract/mincextract.c:179:34: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincextract/mincextract.c:187:33: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincextract/mincextract.c:189:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincextract/mincextract.c:191:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:48:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NC_CLOBBER [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:216:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NC_UNLIMITED [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:525:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NC_MAX_NAME [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:777:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:793:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:1335:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NC_UNLIMITED [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:1536:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:1558:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincextract/mincextract.c:462:44: style: Parameter 'key' can be declared as pointer to const. However it seems that 'get_arg_vector' is a callback function, if 'key' is declared with const you might also need to cast function pointer(s). [constParameterCallback] minc-tools-2.3.00+dfsg/progs/mincextract/mincextract.c:195:35: note: You might need to cast the function pointer here minc-tools-2.3.00+dfsg/progs/mincextract/mincextract.c:462:44: note: Parameter 'key' can be declared as pointer to const minc-tools-2.3.00+dfsg/progs/mincextract/mincextract.c:468:16: style: Variable 'end' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincgen/main.c:80:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincgen/main.c:82:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincgen/main.c:84:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincgen/main.c:86:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincgen/load.c:330:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NC_BYTE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincgen/load.c:416:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NC_CHAR [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincgen/load.c:473:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NC_MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincinfo/mincinfo.c:206:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincinfo/mincinfo.c:283:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincinfo/mincinfo.c:477:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincinfo/mincinfo.c:525:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincinfo/mincinfo.c:554:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NC_NAME [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincinfo/mincinfo.c:600:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:311:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:430:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:736:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:762:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:852:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:928:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincgen/load.c:36:16: style: Variable 'ep' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincgen/load.c:67:11: style: Variable 'charvalp' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincgen/load.c:68:12: style: Variable 'shortvalp' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincgen/load.c:69:10: style: Variable 'intvalp' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincgen/load.c:70:12: style: Variable 'floatvalp' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincgen/load.c:71:13: style: Variable 'doublevalp' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincgen/load.c:287:11: style: Parameter 't' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/progs/mincgen/load.c:314:12: style: Variable 'shortvalp' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincgen/load.c:315:10: style: Variable 'intvalp' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincgen/load.c:316:12: style: Variable 'floatvalp' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincgen/load.c:317:13: style: Variable 'doublevalp' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:655:13: error: Common realloc mistake: 'double_list' nulled but not freed upon failure [memleakOnRealloc] minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:244:35: warning: If memory allocation fails, then there is a possible null pointer dereference: concat_info [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:234:24: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:234:24: note: Assignment 'concat_info=malloc(sizeof(*concat_info))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:244:35: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:248:8: warning: If memory allocation fails, then there is a possible null pointer dereference: concat_info [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:234:24: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:234:24: note: Assignment 'concat_info=malloc(sizeof(*concat_info))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:248:8: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:252:32: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: concat_info [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:234:24: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:234:24: note: Assignment 'concat_info=malloc(sizeof(*concat_info))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:252:32: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:254:28: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: concat_info [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:234:24: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:234:24: note: Assignment 'concat_info=malloc(sizeof(*concat_info))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:254:28: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:257:4: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: concat_info [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:234:24: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:234:24: note: Assignment 'concat_info=malloc(sizeof(*concat_info))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:257:4: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:258:4: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: concat_info [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:234:24: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:234:24: note: Assignment 'concat_info=malloc(sizeof(*concat_info))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:258:4: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:265:20: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: concat_info [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:234:24: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:234:24: note: Assignment 'concat_info=malloc(sizeof(*concat_info))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:265:20: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:266:23: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: concat_info [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:234:24: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:234:24: note: Assignment 'concat_info=malloc(sizeof(*concat_info))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:266:23: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:268:8: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: concat_info [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:234:24: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:234:24: note: Assignment 'concat_info=malloc(sizeof(*concat_info))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:268:8: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:281:19: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: concat_info [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:234:24: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:234:24: note: Assignment 'concat_info=malloc(sizeof(*concat_info))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:281:19: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:282:22: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: concat_info [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:234:24: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:234:24: note: Assignment 'concat_info=malloc(sizeof(*concat_info))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:282:22: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:659:7: warning: If memory allocation fails, then there is a possible null pointer dereference: double_list [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:652:22: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:652:22: note: Assignment 'double_list=malloc(num_alloc*sizeof(*double_list))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:659:7: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:1127:10: warning: If memory allocation fails, then there is a possible null pointer dereference: sort_list [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:1123:22: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:1123:22: note: Assignment 'sort_list=malloc(sizeof(struct Sort_Element)*concat_dimension_length)', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:1127:10: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:1128:10: warning: If memory allocation fails, then there is a possible null pointer dereference: sort_list [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:1123:22: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:1123:22: note: Assignment 'sort_list=malloc(sizeof(struct Sort_Element)*concat_dimension_length)', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:1128:10: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:1129:10: warning: If memory allocation fails, then there is a possible null pointer dereference: sort_list [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:1123:22: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:1123:22: note: Assignment 'sort_list=malloc(sizeof(struct Sort_Element)*concat_dimension_length)', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:1129:10: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:1135:10: warning: If memory allocation fails, then there is a possible null pointer dereference: sort_list [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:1123:22: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:1123:22: note: Assignment 'sort_list=malloc(sizeof(struct Sort_Element)*concat_dimension_length)', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:1135:10: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:1453:4: warning: If memory allocation fails, then there is a possible null pointer dereference: string [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:1452:19: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:1452:19: note: Assignment 'string=malloc(att_length)', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:1453:4: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:1459:18: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: string [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:1452:19: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:1452:19: note: Assignment 'string=malloc(att_length)', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:1459:18: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:341:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:345:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:349:43: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:352:34: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:371:34: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:375:36: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:380:42: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:382:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:384:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:386:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:397:44: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:403:37: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:412:38: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:375:48: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:382:42: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:384:41: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:386:42: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:422:10: style: Variable 'pname' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:603:45: style: Parameter 'key' can be declared as pointer to const. However it seems that 'get_double_list' is a callback function, if 'key' is declared with const you might also need to cast function pointer(s). [constParameterCallback] minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:394:43: note: You might need to cast the function pointer here minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:603:45: note: Parameter 'key' can be declared as pointer to const minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:611:16: style: Variable 'end' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:1437:46: style: Parameter 'arg_string' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/progs/mincmakescalar/mincmakescalar.c:203:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincmakescalar/mincmakescalar.c:332:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincmakescalar/mincmakescalar.c:433:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincmakescalar/mincmakescalar.c:512:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincmakevector/mincmakevector.c:165:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincmakevector/mincmakevector.c:240:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincmakevector/mincmakevector.c:275:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincmakevector/mincmakevector.c:115:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincmakevector/mincmakevector.c:119:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincmakevector/mincmakevector.c:123:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincmakevector/mincmakevector.c:139:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincmakevector/mincmakevector.c:143:33: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincmakevector/mincmakevector.c:87:8: style: struct member 'Program_Data::dummy' is never used. [unusedStructMember] minc-tools-2.3.00+dfsg/progs/mincinfo/mincinfo.c:485:29: style:inconclusive: Boolean expression 'code==IMAGE_INFO' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] minc-tools-2.3.00+dfsg/progs/mincinfo/mincinfo.c:469:40: style: Parameter 'key' can be declared as pointer to const. However it seems that 'get_option' is a callback function, if 'key' is declared with const you might also need to cast function pointer(s). [constParameterCallback] minc-tools-2.3.00+dfsg/progs/mincinfo/mincinfo.c:190:42: note: You might need to cast the function pointer here minc-tools-2.3.00+dfsg/progs/mincinfo/mincinfo.c:469:40: note: Parameter 'key' can be declared as pointer to const minc-tools-2.3.00+dfsg/progs/mincinfo/mincinfo.c:554:10: style: Variable 'attname' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincinfo/mincinfo.c:598:35: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/progs/mincinfo/mincinfo.c:603:10: style: Variable 'sign_type' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/progs/mincmakescalar/mincmakescalar.c:472:13: error: Common realloc mistake: 'double_list' nulled but not freed upon failure [memleakOnRealloc] minc-tools-2.3.00+dfsg/progs/mincmakescalar/mincmakescalar.c:476:7: warning: If memory allocation fails, then there is a possible null pointer dereference: double_list [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincmakescalar/mincmakescalar.c:469:22: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincmakescalar/mincmakescalar.c:469:22: note: Assignment 'double_list=malloc(num_alloc*sizeof(*double_list))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincmakescalar/mincmakescalar.c:476:7: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincmakescalar/mincmakescalar.c:133:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincmakescalar/mincmakescalar.c:137:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincmakescalar/mincmakescalar.c:141:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincmakescalar/mincmakescalar.c:157:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincmakescalar/mincmakescalar.c:161:33: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincmakescalar/mincmakescalar.c:321:12: style: Variable 'input_vector' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincmakescalar/mincmakescalar.c:324:18: style: Variable 'grey_coefficients' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/progs/mincmakescalar/mincmakescalar.c:420:45: style: Parameter 'key' can be declared as pointer to const. However it seems that 'get_double_list' is a callback function, if 'key' is declared with const you might also need to cast function pointer(s). [constParameterCallback] minc-tools-2.3.00+dfsg/progs/mincmakescalar/mincmakescalar.c:173:36: note: You might need to cast the function pointer here minc-tools-2.3.00+dfsg/progs/mincmakescalar/mincmakescalar.c:420:45: note: Parameter 'key' can be declared as pointer to const minc-tools-2.3.00+dfsg/progs/mincmakescalar/mincmakescalar.c:428:16: style: Variable 'end' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincmath/mincmath.c:412:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincmath/mincmath.c:580:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincmath/mincmath.c:767:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincmath/mincmath.c:860:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincmath/mincmath.c:914:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincmorph/kernel_io.c:74:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VIO_ERROR [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincmorph/kernel_io.c:181:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincmorph/kernel_io.c:217:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincmorph/kernel_io.c:177:27: style: Parameter 'kernel' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:474:7: error: Common realloc mistake: 'table' nulled but not freed upon failure [memleakOnRealloc] minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:461:7: warning: If memory allocation fails, then there is a possible null pointer dereference: table [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:459:18: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:459:18: note: Assignment 'table=malloc(sizeof(*table)*table_nvalues)', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:461:7: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:498:10: warning: If memory allocation fails, then there is a possible null pointer dereference: sort_table [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:496:26: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:496:26: note: Assignment 'sort_table=malloc(sizeof(*sort_table)*nentries)', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:498:10: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:499:10: warning: If memory allocation fails, then there is a possible null pointer dereference: sort_table [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:496:26: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:496:26: note: Assignment 'sort_table=malloc(sizeof(*sort_table)*nentries)', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:499:10: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:510:23: warning: If memory allocation fails, then there is a possible null pointer dereference: sort_table [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:496:26: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:496:26: note: Assignment 'sort_table=malloc(sizeof(*sort_table)*nentries)', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:510:23: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:512:13: warning: If memory allocation fails, then there is a possible null pointer dereference: new_table [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:507:25: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:507:25: note: Assignment 'new_table=malloc(sizeof(*table)*table_nvalues*nentries)', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:512:13: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:522:4: warning: If memory allocation fails, then there is a possible null pointer dereference: lookup_table [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:521:25: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:521:25: note: Assignment 'lookup_table=malloc(sizeof(*lookup_table))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:522:4: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:523:4: warning: If memory allocation fails, then there is a possible null pointer dereference: lookup_table [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:521:25: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:521:25: note: Assignment 'lookup_table=malloc(sizeof(*lookup_table))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:523:4: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:524:4: warning: If memory allocation fails, then there is a possible null pointer dereference: lookup_table [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:521:25: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:521:25: note: Assignment 'lookup_table=malloc(sizeof(*lookup_table))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:524:4: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:525:4: warning: If memory allocation fails, then there is a possible null pointer dereference: lookup_table [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:521:25: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:521:25: note: Assignment 'lookup_table=malloc(sizeof(*lookup_table))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:525:4: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:693:7: warning: If memory allocation fails, then there is a possible null pointer dereference: array [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:682:30: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:682:30: note: Assignment 'array=malloc(num_alloc*sizeof(*array))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:693:7: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:797:24: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: values [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:794:28: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:794:28: note: Assignment 'values=malloc(num_values*sizeof(*values))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:797:24: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:799:21: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: values [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:794:28: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:794:28: note: Assignment 'values=malloc(num_values*sizeof(*values))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:799:21: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:236:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:240:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:244:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:260:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:264:33: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:274:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:278:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:280:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:282:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:284:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:286:33: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:288:33: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:292:33: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:409:46: style:inconclusive: Function 'read_lookup_table' argument 1 names different: declaration 'lookup_file' definition 'lookup_filename'. [funcArgNamesDifferent] minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:138:46: note: Function 'read_lookup_table' argument 1 names different: declaration 'lookup_file' definition 'lookup_filename'. minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:409:46: note: Function 'read_lookup_table' argument 1 names different: declaration 'lookup_file' definition 'lookup_filename'. minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:722:56: style:inconclusive: Function 'get_null_value' argument 2 names different: declaration 'null_value_string' definition 'string'. [funcArgNamesDifferent] minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:141:56: note: Function 'get_null_value' argument 2 names different: declaration 'null_value_string' definition 'string'. minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:722:56: note: Function 'get_null_value' argument 2 names different: declaration 'null_value_string' definition 'string'. minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:757:47: style:inconclusive: Function 'get_full_range' argument 2 names different: declaration 'lookup_range' definition 'range'. [funcArgNamesDifferent] minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:142:47: note: Function 'get_full_range' argument 2 names different: declaration 'lookup_range' definition 'range'. minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:757:47: note: Function 'get_full_range' argument 2 names different: declaration 'lookup_range' definition 'range'. minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:409:46: style: Parameter 'lookup_filename' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:643:23: style: Variable 'end' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:836:31: style: Parameter 'input_data' can be declared as const array. However it seems that 'do_lookup' is a callback function, if 'input_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:381:15: note: You might need to cast the function pointer here minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:836:31: note: Parameter 'input_data' can be declared as const array minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:922:28: style: Variable 'result' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincmorph/kernel_ops.c:59:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincmorph/kernel_ops.c:94:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincmorph/kernel_ops.c:125:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincmorph/kernel_ops.c:173:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincmorph/kernel_ops.c:220:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincmorph/kernel_ops.c:292:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincmorph/kernel_ops.c:341:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincmorph/kernel_ops.c:384:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincmorph/kernel_ops.c:472:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincmorph/kernel_ops.c:734:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincmorph/mincmorph.c:205:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VIO_MAX_DIMENSIONS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincmorph/mincmorph.c:658:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_MAX [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincmorph/mincmorph.c:711:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VIO_MAX_DIMENSIONS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:328:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MI_ORIGINAL_TYPE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:821:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:938:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:1148:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_MAX [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:1263:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:1349:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:1893:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIvalid_max [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:1979:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:2071:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:2158:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MI_TALAIRACH [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:2213:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:2254:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VIO_Z [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:2296:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_MAX [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincmorph/kernel_ops.c:626:49: style: The statement 'if (equiv[neighbours[c]]!=min_label) equiv[neighbours[c]]=min_label' is logically equivalent to 'equiv[neighbours[c]]=min_label'. [duplicateConditionalAssign] minc-tools-2.3.00+dfsg/progs/mincmorph/kernel_ops.c:627:49: note: Assignment 'equiv[neighbours[c]]=min_label' minc-tools-2.3.00+dfsg/progs/mincmorph/kernel_ops.c:626:49: note: Condition 'equiv[neighbours[c]]!=min_label' is redundant minc-tools-2.3.00+dfsg/progs/mincmorph/kernel_ops.c:687:7: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] minc-tools-2.3.00+dfsg/progs/mincmorph/kernel_ops.c:687:7: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] minc-tools-2.3.00+dfsg/progs/mincmorph/kernel_ops.c:690:10: warning: If memory allocation fails, then there is a possible null pointer dereference: group_data [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincmorph/kernel_ops.c:671:38: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincmorph/kernel_ops.c:671:17: note: Assignment 'group_data=(struct group_info_struct**)malloc(num_groups*sizeof(struct group_info_struct*))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincmorph/kernel_ops.c:690:10: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincmorph/kernel_ops.c:695:7: warning: If memory allocation fails, then there is a possible null pointer dereference: trans [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincmorph/kernel_ops.c:693:34: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincmorph/kernel_ops.c:693:12: note: Assignment 'trans=(unsigned int*)malloc(sizeof(unsigned int)*group_idx)', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincmorph/kernel_ops.c:695:7: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincmorph/kernel_ops.c:695:13: warning: If memory allocation fails, then there is a possible null pointer dereference: group_data [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincmorph/kernel_ops.c:671:38: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincmorph/kernel_ops.c:671:17: note: Assignment 'group_data=(struct group_info_struct**)malloc(num_groups*sizeof(struct group_info_struct*))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincmorph/kernel_ops.c:695:13: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincmorph/kernel_ops.c:122:26: style: Parameter 'K' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/progs/mincmorph/kernel_ops.c:325:19: style: Variable 'value' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:362:7: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:742:7: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:1534:15: style:inconclusive: Function 'check_err' argument 1 names different: declaration 'status' definition 'stat'. [funcArgNamesDifferent] minc-tools-2.3.00+dfsg/progs/mincgen/genlib.h:36:29: note: Function 'check_err' argument 1 names different: declaration 'status' definition 'stat'. minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:1534:15: note: Function 'check_err' argument 1 names different: declaration 'status' definition 'stat'. minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:1628:11: style:inconclusive: Function 'expe2d' argument 1 names different: declaration 'ptr' definition 'cp'. [funcArgNamesDifferent] minc-tools-2.3.00+dfsg/progs/mincgen/genlib.h:40:28: note: Function 'expe2d' argument 1 names different: declaration 'ptr' definition 'cp'. minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:1628:11: note: Function 'expe2d' argument 1 names different: declaration 'ptr' definition 'cp'. minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:1667:10: style:inconclusive: Function 'grow_iarray' argument 1 names different: declaration 'narray' definition 'nar'. [funcArgNamesDifferent] minc-tools-2.3.00+dfsg/progs/mincgen/genlib.h:41:31: note: Function 'grow_iarray' argument 1 names different: declaration 'narray' definition 'nar'. minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:1667:10: note: Function 'grow_iarray' argument 1 names different: declaration 'narray' definition 'nar'. minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:1668:12: style:inconclusive: Function 'grow_iarray' argument 2 names different: declaration 'array' definition 'arpp'. [funcArgNamesDifferent] minc-tools-2.3.00+dfsg/progs/mincgen/genlib.h:41:45: note: Function 'grow_iarray' argument 2 names different: declaration 'array' definition 'arpp'. minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:1668:12: note: Function 'grow_iarray' argument 2 names different: declaration 'array' definition 'arpp'. minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:1693:10: style:inconclusive: Function 'grow_varray' argument 1 names different: declaration 'narray' definition 'nar'. [funcArgNamesDifferent] minc-tools-2.3.00+dfsg/progs/mincgen/genlib.h:42:31: note: Function 'grow_varray' argument 1 names different: declaration 'narray' definition 'nar'. minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:1693:10: note: Function 'grow_varray' argument 1 names different: declaration 'narray' definition 'nar'. minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:1694:20: style:inconclusive: Function 'grow_varray' argument 2 names different: declaration 'array' definition 'arpp'. [funcArgNamesDifferent] minc-tools-2.3.00+dfsg/progs/mincgen/genlib.h:42:53: note: Function 'grow_varray' argument 2 names different: declaration 'array' definition 'arpp'. minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:1694:20: note: Function 'grow_varray' argument 2 names different: declaration 'array' definition 'arpp'. minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:1719:10: style:inconclusive: Function 'grow_darray' argument 1 names different: declaration 'narray' definition 'nar'. [funcArgNamesDifferent] minc-tools-2.3.00+dfsg/progs/mincgen/genlib.h:43:31: note: Function 'grow_darray' argument 1 names different: declaration 'narray' definition 'nar'. minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:1719:10: note: Function 'grow_darray' argument 1 names different: declaration 'narray' definition 'nar'. minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:1720:20: style:inconclusive: Function 'grow_darray' argument 2 names different: declaration 'array' definition 'arpp'. [funcArgNamesDifferent] minc-tools-2.3.00+dfsg/progs/mincgen/genlib.h:43:53: note: Function 'grow_darray' argument 2 names different: declaration 'array' definition 'arpp'. minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:1720:20: note: Function 'grow_darray' argument 2 names different: declaration 'array' definition 'arpp'. minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:1745:10: style:inconclusive: Function 'grow_aarray' argument 1 names different: declaration 'narray' definition 'nar'. [funcArgNamesDifferent] minc-tools-2.3.00+dfsg/progs/mincgen/genlib.h:44:31: note: Function 'grow_aarray' argument 1 names different: declaration 'narray' definition 'nar'. minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:1745:10: note: Function 'grow_aarray' argument 1 names different: declaration 'narray' definition 'nar'. minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:1746:20: style:inconclusive: Function 'grow_aarray' argument 2 names different: declaration 'array' definition 'arpp'. [funcArgNamesDifferent] minc-tools-2.3.00+dfsg/progs/mincgen/genlib.h:44:53: note: Function 'grow_aarray' argument 2 names different: declaration 'array' definition 'arpp'. minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:1746:20: note: Function 'grow_aarray' argument 2 names different: declaration 'array' definition 'arpp'. minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:1379:23: style: Local variable 'sp' shadows outer variable [shadowVariable] minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:1254:10: note: Shadowed declaration minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:1379:23: note: Shadow variable minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:1426:28: style: Local variable 'rec_len' shadows outer variable [shadowVariable] minc-tools-2.3.00+dfsg/progs/mincgen/ncgen.h:26:15: note: Shadowed declaration minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:1426:28: note: Shadow variable minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:96:18: style: Variable 'bytep' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:97:12: style: Variable 'shortp' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:98:10: style: Variable 'intp' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:99:12: style: Variable 'floatp' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:100:13: style: Variable 'doublep' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:118:15: style: Variable 'octs' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:176:12: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:518:12: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:796:17: style: Variable 'cont' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:965:18: style: Variable 'schp' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:966:12: style: Variable 'shortp' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:967:10: style: Variable 'intp' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:968:12: style: Variable 'floatp' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:969:13: style: Variable 'doublep' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:1055:15: style: Variable 'octs' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:1259:15: style: Variable 'v' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:1272:26: style: Variable 'v' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:1297:26: style: Variable 'v' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:1315:19: style: Variable 'v' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:1347:19: style: Variable 'v' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:1354:19: style: Variable 'v' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:1364:19: style: Variable 'v' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:1498:12: style: Parameter 'netcdfname' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/progs/mincgen/genlib.c:1628:11: style: Parameter 'cp' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/progs/mincmath/mincmath.c:254:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincmath/mincmath.c:260:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincmath/mincmath.c:264:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincmath/mincmath.c:266:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincmath/mincmath.c:268:36: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincmath/mincmath.c:286:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincmath/mincmath.c:290:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincmath/mincmath.c:292:41: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincmath/mincmath.c:295:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincmath/mincmath.c:297:41: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincmath/mincmath.c:305:38: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincmath/mincmath.c:307:28: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincmath/mincmath.c:313:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincmath/mincmath.c:318:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincmath/mincmath.c:320:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincmath/mincmath.c:322:28: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincmath/mincmath.c:570:14: style: Local variable 'operation' shadows outer variable [shadowVariable] minc-tools-2.3.00+dfsg/progs/mincmath/mincmath.c:236:18: note: Shadowed declaration minc-tools-2.3.00+dfsg/progs/mincmath/mincmath.c:570:14: note: Shadow variable minc-tools-2.3.00+dfsg/progs/mincmath/mincmath.c:758:14: style: Local variable 'operation' shadows outer variable [shadowVariable] minc-tools-2.3.00+dfsg/progs/mincmath/mincmath.c:236:18: note: Shadowed declaration minc-tools-2.3.00+dfsg/progs/mincmath/mincmath.c:758:14: note: Shadow variable minc-tools-2.3.00+dfsg/progs/mincmath/mincmath.c:759:8: style: Local variable 'propagate_nan' shadows outer variable [shadowVariable] minc-tools-2.3.00+dfsg/progs/mincmath/mincmath.c:237:12: note: Shadowed declaration minc-tools-2.3.00+dfsg/progs/mincmath/mincmath.c:759:8: note: Shadow variable minc-tools-2.3.00+dfsg/progs/mincmath/mincmath.c:401:10: style: Variable 'pname' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincmath/mincmath.c:755:15: style: Variable 'math_data' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincmath/mincmath.c:852:15: style: Variable 'math_data' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincmath/mincmath.c:904:15: style: Variable 'math_data' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:7882:21: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:7967:20: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:7968:20: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:7969:20: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] minc-tools-2.3.00+dfsg/progs/mincreshape/copy_data.c:155:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincreshape/copy_data.c:300:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincreshape/copy_data.c:385:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincreshape/copy_data.c:499:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincreshape/copy_data.c:737:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincreshape/copy_data.c:890:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLT_MAX [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincmorph/mincmorph.c:691:15: warning: If memory allocation fails, then there is a possible null pointer dereference: malloc_string [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincmorph/mincmorph.c:688:37: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincmorph/mincmorph.c:688:23: note: Assignment 'malloc_string=(char*)malloc((offset+1)*sizeof(char))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincmorph/mincmorph.c:691:15: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincmorph/mincmorph.c:692:7: warning: If memory allocation fails, then there is a possible null pointer dereference: malloc_string [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincmorph/mincmorph.c:688:37: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincmorph/mincmorph.c:688:23: note: Assignment 'malloc_string=(char*)malloc((offset+1)*sizeof(char))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincmorph/mincmorph.c:692:7: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincmorph/mincmorph.c:134:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincmorph/mincmorph.c:138:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincmorph/mincmorph.c:140:26: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincmorph/mincmorph.c:142:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincmorph/mincmorph.c:144:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincmorph/mincmorph.c:146:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincmorph/mincmorph.c:179:33: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:1993:21: warning: Logical conjunction always evaluates to false: *(which) < 1 && *(which) > 4. [incorrectLogicOperator] minc-tools-2.3.00+dfsg/progs/mincmorph/mincmorph.c:644:37: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:1993:8: style: Condition '!(*which<1&&*which>4)' is always true [knownConditionTrueFalse] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:1993:17: note: Assuming that condition '*which<1' is not redundant minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:1993:8: note: Condition '!(*which<1&&*which>4)' is always true minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:171:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:310:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:451:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:518:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIstart [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:536:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:590:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ncopts [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:602:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIimage [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:11072:21: warning: If memory allocation fails, then there is a possible null pointer dereference: upt [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:11071:17: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:11071:17: note: Assignment 'unam=strdup(name)', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:11072:13: note: Assignment 'upt=unam', assigned value is 0 minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:11072:21: note: Null pointer dereference minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:5840:17: style: Variable '*result' is reassigned a value before the old one has been used. [redundantAssignment] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:5832:17: note: *result is assigned minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:5840:17: note: *result is overwritten minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:200:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MI_ORIGINAL_TYPE [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:530:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_MAX [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:567:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:652:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIzspace [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:743:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:841:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:915:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIimage [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:1009:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:1081:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:1365:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:1544:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NC_NAME [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:1652:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NC_NAME [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:1693:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:728:22: style:inconclusive: Function 'bgrat' argument 7 names different: declaration 'i' definition 'ierr'. [funcArgNamesDifferent] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:55:71: note: Function 'bgrat' argument 7 names different: declaration 'i' definition 'ierr'. minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:728:22: note: Function 'bgrat' argument 7 names different: declaration 'i' definition 'ierr'. minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:3136:37: style:inconclusive: Function 'cdffnc' argument 8 names different: declaration 's' definition 'status'. [funcArgNamesDifferent] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:69:24: note: Function 'cdffnc' argument 8 names different: declaration 's' definition 'status'. minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:3136:37: note: Function 'cdffnc' argument 8 names different: declaration 's' definition 'status'. minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:140:30: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:140:40: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:207:30: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:321:30: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:352:29: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:352:49: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:352:59: style: Parameter 'eps' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:389:49: style: Parameter 'lambda' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:389:64: style: Parameter 'eps' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:499:29: style: Parameter 'a0' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:499:40: style: Parameter 'b0' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:550:30: style: Parameter 'a0' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:550:41: style: Parameter 'b0' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:658:69: style: Parameter 'lambda' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:659:15: style: Parameter 'eps' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:727:47: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:727:57: style: Parameter 'y' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:811:49: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:811:59: style: Parameter 'eps' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:911:28: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:911:38: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:911:48: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:911:58: style: Parameter 'y' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:1150:58: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:1150:68: style: Parameter 'y' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:1290:50: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:1290:60: style: Parameter 'y' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:1430:64: style: Parameter 'n' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:1430:74: style: Parameter 'eps' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:1509:25: style: Parameter 'which' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:1885:25: style: Parameter 'which' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:2256:25: style: Parameter 'which' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:2542:25: style: Parameter 'which' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:2817:23: style: Parameter 'which' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:3135:25: style: Parameter 'which' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:3461:25: style: Parameter 'which' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:3761:25: style: Parameter 'which' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:4134:25: style: Parameter 'which' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:4340:25: style: Parameter 'which' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:4598:23: style: Parameter 'which' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:4929:28: style: Parameter 's' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:4929:38: style: Parameter 'xn' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:4997:28: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:4997:38: style: Parameter 'df' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:5049:49: style: Parameter 'pnonc' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:5264:26: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:5264:36: style: Parameter 'dfn' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:5264:48: style: Parameter 'dfd' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:5350:62: style: Parameter 'pnonc' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:5583:28: style: Parameter 's' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:5650:28: style: Parameter 'arg' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:5738:15: style: Variable 'a' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:5742:15: style: Variable 'b' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:5746:15: style: Variable 'c' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:5751:15: style: Variable 'd' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:5757:15: style: Variable 'p' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:5762:15: style: Variable 'q' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:5863:28: style: Parameter 's' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:5863:38: style: Parameter 'xlam' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:5916:26: style: Parameter 't' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:5916:36: style: Parameter 'df' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:5980:30: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:5980:40: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:6032:29: style: Parameter 'a' can be declared as const array [constParameter] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:6032:38: style: Parameter 'n' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:6032:48: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:6075:30: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:6127:30: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:6127:40: style: Parameter 'q' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:6226:53: style: Parameter 'zabsst' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:6227:13: style: Parameter 'zabsto' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:6227:28: style: Parameter 'zbig' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:6227:41: style: Parameter 'zrelst' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:6228:13: style: Parameter 'zrelto' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:6228:28: style: Parameter 'zsmall' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:6228:43: style: Parameter 'zstpmu' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:6572:30: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:6633:30: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:6677:30: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:6739:30: style: Parameter 'a0' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:6739:41: style: Parameter 'b0' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:7027:47: style: Parameter 'df' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:7064:15: style: Variable 'denom' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:7096:60: style: Parameter 'fx' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:7098:32: style: Parameter 'zabstl' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:7098:47: style: Parameter 'zreltl' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:7099:13: style: Parameter 'zxhi' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:7099:26: style: Parameter 'zxlo' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:7375:28: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:7383:15: style: Variable 'a' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:7387:15: style: Variable 'b' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:7390:15: style: Variable 'p' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:7395:15: style: Variable 'q' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:7400:15: style: Variable 'r' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:7404:15: style: Variable 's' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:7445:26: style: Parameter 'ind' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:7445:38: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:7456:15: style: Variable 'a' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:7460:15: style: Variable 'b' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:7463:15: style: Variable 'p' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:7468:15: style: Variable 'q' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:7473:15: style: Variable 'r' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:7477:15: style: Variable 's' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:7553:25: style: Parameter 'mu' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:7553:36: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:7584:27: style: Parameter 'l' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:7632:29: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:7632:39: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:7632:49: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:7632:59: style: Parameter 'eps' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:7678:28: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:7687:15: style: Variable 'p' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:7692:15: style: Variable 'q' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:7696:15: style: Variable 'r' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:7740:48: style: Parameter 'x0' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:7740:59: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:7740:69: style: Parameter 'q' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:7807:15: style: Variable 'amin' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:7810:15: style: Variable 'bmin' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:7813:15: style: Variable 'dmin' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:7816:15: style: Variable 'emin' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:7819:15: style: Variable 'eps0' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:8159:30: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:8209:29: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:8234:15: style: Variable 'p' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:8238:15: style: Variable 'q' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:8360:37: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:8360:47: style: Parameter 'r' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:8361:13: style: Parameter 'eps' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:8465:38: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:8465:70: style: Parameter 'ind' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:8507:15: style: Variable 'acc0' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:8510:15: style: Variable 'big' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:8513:15: style: Variable 'd0' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:8520:15: style: Variable 'd1' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:8526:15: style: Variable 'd2' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:8532:15: style: Variable 'd3' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:8537:15: style: Variable 'd4' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:8541:15: style: Variable 'd5' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/progs/mincresample/resample_volumes.c:164:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincresample/resample_volumes.c:335:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincresample/resample_volumes.c:486:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NC_NAME [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincresample/resample_volumes.c:636:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLT_EPSILON [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincresample/resample_volumes.c:1307:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincresample/resample_volumes.c:1387:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:8545:15: style: Variable 'd6' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:8548:15: style: Variable 'e00' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:8551:15: style: Variable 'x00' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:8884:30: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:8884:40: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:8913:27: style: Parameter 'xx' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:8937:15: style: Variable 'p1' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:8942:15: style: Variable 'p2' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:8946:15: style: Variable 'q1' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:8950:15: style: Variable 'q2' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:9108:39: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:9143:28: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:9175:28: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:9227:29: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:9279:27: style: Parameter 'i' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:9347:30: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:9485:27: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:9497:24: style: Parameter 'i' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:11064:30: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:325:23: style: Redundant condition: md->masking. '!A || (A && B)' is equivalent to '!A || B' [redundantCondition] minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:196:7: warning: If memory allocation fails, then there is a possible null pointer dereference: infiles [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:194:29: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:194:14: note: Assignment 'infiles=(char**)malloc(sizeof(char*)*(n_infiles+1))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:196:7: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:207:17: warning: If memory allocation fails, then there is a possible null pointer dereference: infiles [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:194:29: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:194:14: note: Assignment 'infiles=(char**)malloc(sizeof(char*)*(n_infiles+1))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:207:17: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:114:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:116:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:118:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:120:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:122:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:124:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:131:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:133:34: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:138:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:140:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:142:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:148:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:304:15: style: Local variable 'md' shadows outer variable [shadowVariable] minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:102:18: note: Shadowed declaration minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:304:15: note: Shadow variable minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:417:15: style: Local variable 'md' shadows outer variable [shadowVariable] minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:102:18: note: Shadowed declaration minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:417:15: note: Shadow variable minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:301:50: style: Parameter 'input_data' can be declared as const array. However it seems that 'get_points' is a callback function, if 'input_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:290:26: note: You might need to cast the function pointer here minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:301:50: note: Parameter 'input_data' can be declared as const array minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:413:52: style: Parameter 'input_data' can be declared as const array. However it seems that 'count_points' is a callback function, if 'input_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:264:29: note: You might need to cast the function pointer here minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:413:52: note: Parameter 'input_data' can be declared as const array minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:475:29: style: Parameter 'transform' can be declared as const array [constParameter] minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:475:77: style: Parameter 'in_coord' can be declared as const array [constParameter] minc-tools-2.3.00+dfsg/progs/mincsample/mt19937ar.c:74:34: style: Parameter 'init_key' can be declared as const array [constParameter] minc-tools-2.3.00+dfsg/progs/mincsample/mt19937ar.c:103:26: style: Variable 'mag01' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/progs/mincreshape/copy_data.c:642:45: style: Parameter 'output_start' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/progs/mincreshape/copy_data.c:688:45: style: Parameter 'input_start' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/progs/mincreshape/copy_data.c:689:45: style: Parameter 'input_count' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/progs/mincreshape/copy_data.c:745:12: style: union member 'Anonymous0::c' is never used. [unusedStructMember] minc-tools-2.3.00+dfsg/progs/mincreshape/copy_data.c:745:21: style: union member 'Anonymous0::s' is never used. [unusedStructMember] minc-tools-2.3.00+dfsg/progs/mincreshape/copy_data.c:745:29: style: union member 'Anonymous0::l' is never used. [unusedStructMember] minc-tools-2.3.00+dfsg/progs/mincreshape/copy_data.c:745:38: style: union member 'Anonymous0::f' is never used. [unusedStructMember] minc-tools-2.3.00+dfsg/progs/mincreshape/copy_data.c:745:48: style: union member 'Anonymous0::d' is never used. [unusedStructMember] minc-tools-2.3.00+dfsg/conversion/nifti1/nifti_stats.c:11189:21: style: Unused variable: q [unusedVariable] minc-tools-2.3.00+dfsg/progs/minctoraw/minctoraw.c:163:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/minctoraw/minctoraw.c:273:18: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/minctoraw/minctoraw.c:256:17: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minctoraw/minctoraw.c:256:17: note: Assignment 'data=malloc(size)', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minctoraw/minctoraw.c:273:18: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/minctoraw/minctoraw.c:140:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/minctoraw/minctoraw.c:144:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/minctoraw/minctoraw.c:146:34: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:750:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:1291:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:1378:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_MAX [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:1427:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:1436:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:1457:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:1502:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ncopts [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:1514:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIimage [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:1524:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:1592:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIstart [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:1635:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:1717:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:1791:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:1892:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_MAX [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincwindow/mincwindow.c:157:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincwindow/mincwindow.c:234:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincview/invert_raw_image.c:44:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/mincwindow/mincwindow.c:131:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincwindow/mincwindow.c:135:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincwindow/mincwindow.c:225:17: style: Variable 'window_data' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincview/invert_raw_image.c:38:10: style: Variable 'pname' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:552:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:1156:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:1263:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:1299:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:1396:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:1519:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:1648:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:1862:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/xfm/transformtags.c:106:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/xfm/transformtags.c:78:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/xfm/transformtags.c:80:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/xfm/transformtags.c:91:10: style: Variable 'pname' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:1491:4: warning: If memory allocation fails, then there is a possible null pointer dereference: string [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:1490:19: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:1490:19: note: Assignment 'string=malloc(att_length)', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:1491:4: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:1494:18: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: string [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:1490:19: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:1490:19: note: Assignment 'string=malloc(att_length)', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:1494:18: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:231:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:235:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:263:34: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:267:36: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:270:36: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:272:37: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:288:34: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:330:38: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:267:48: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:270:48: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:277:11: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:280:11: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:283:11: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:370:11: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:373:11: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:376:11: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:525:11: portability: Casting between char * and double * which have an incompatible binary data representation. [invalidPointerCast] minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:384:20: style: Variable 'pname' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:519:43: style: Parameter 'key' can be declared as pointer to const. However it seems that 'get_fillvalue' is a callback function, if 'key' is declared with const you might also need to cast function pointer(s). [constParameterCallback] minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:372:37: note: You might need to cast the function pointer here minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:519:43: note: Parameter 'key' can be declared as pointer to const minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:554:41: style: Parameter 'key' can be declared as pointer to const. However it seems that 'get_dimsize' is a callback function, if 'key' is declared with const you might also need to cast function pointer(s). [constParameterCallback] minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:341:40: note: You might need to cast the function pointer here minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:554:41: note: Parameter 'key' can be declared as pointer to const minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:640:44: style: Parameter 'key' can be declared as pointer to const. However it seems that 'get_axis_order' is a callback function, if 'key' is declared with const you might also need to cast function pointer(s). [constParameterCallback] minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:356:41: note: You might need to cast the function pointer here minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:640:44: note: Parameter 'key' can be declared as pointer to const minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:731:44: style: Parameter 'key' can be declared as pointer to const. However it seems that 'get_axis_range' is a callback function, if 'key' is declared with const you might also need to cast function pointer(s). [constParameterCallback] minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:359:41: note: You might need to cast the function pointer here minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:731:44: note: Parameter 'key' can be declared as pointer to const minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:831:44: style: Parameter 'key' can be declared as pointer to const. However it seems that 'get_arg_vector' is a callback function, if 'key' is declared with const you might also need to cast function pointer(s). [constParameterCallback] minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:364:38: note: You might need to cast the function pointer here minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:831:44: note: Parameter 'key' can be declared as pointer to const minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:837:16: style: Variable 'end' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:1077:39: style: Parameter 'hs_start' can be declared as const array [constParameter] minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:1077:56: style: Parameter 'hs_count' can be declared as const array [constParameter] minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:1086:9: style: Variable 'o2i' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:1086:15: style: Variable 'i2o' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:1362:49: style: Parameter 'history' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:1688:54: style: Parameter 'dimname' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/progs/xfm/xfm2def.c:110:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/xfm/xfmconcat.c:127:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/xfm/xfm2def.c:62:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/xfm/xfm2def.c:64:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/xfm/xfm2def.c:66:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/xfm/xfm2def.c:68:28: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/xfm/xfm2def.c:70:28: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/xfm/xfm2def.c:72:28: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/xfm/xfm2def.c:74:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/xfm/xfm2def.c:76:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/xfm/xfm2def.c:78:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/xfm/xfm2def.c:80:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/xfm/xfm2def.c:82:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/xfm/xfm2def.c:84:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:636:10: warning: If memory allocation fails, then there is a possible null pointer dereference: in_vol->volume [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:635:27: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:635:27: note: Assignment 'in_vol->volume=malloc(sizeof(struct Volume_Data))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:636:10: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:738:11: warning: If memory allocation fails, then there is a possible null pointer dereference: out_vol->file [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:737:26: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:737:26: note: Assignment 'out_vol->file=malloc(sizeof(struct File_Info))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:738:11: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:774:11: warning: If memory allocation fails, then there is a possible null pointer dereference: out_vol->slice [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:751:27: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:751:27: note: Assignment 'out_vol->slice=malloc(sizeof(struct Slice_Data))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:769:22: note: Assuming condition is false minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:774:11: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:1399:4: warning: If memory allocation fails, then there is a possible null pointer dereference: string [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:1398:19: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:1398:19: note: Assignment 'string=malloc(att_length)', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:1399:4: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:1403:18: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: string [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:1398:19: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:1398:19: note: Assignment 'string=malloc(att_length)', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:1403:18: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:1671:10: warning: If memory allocation fails, then there is a possible null pointer dereference: irreg_transf_data [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:1665:33: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:1665:33: note: Assignment 'irreg_transf_data=malloc(sizeof(*irreg_transf_data))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:1671:10: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:359:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:365:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:374:49: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:380:46: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:401:33: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:413:28: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:425:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:437:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:449:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:452:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:455:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:458:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:461:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:484:34: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:488:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:490:43: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:520:8: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:426:11: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:429:11: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:432:11: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:435:11: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:438:11: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:441:11: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:444:11: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:447:11: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:450:11: portability:inconclusive: Casting from double * * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:453:11: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:456:11: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:459:11: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:461:43: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:488:42: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:497:11: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:500:11: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:503:11: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:2292:11: portability: Casting between char * and double * which have an incompatible binary data representation. [invalidPointerCast] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:1342:52: style:inconclusive: Function 'create_output_file' argument 2 names different: declaration 'clobber' definition 'cflags'. [funcArgNamesDifferent] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:243:52: note: Function 'create_output_file' argument 2 names different: declaration 'clobber' definition 'cflags'. minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:1342:52: note: Function 'create_output_file' argument 2 names different: declaration 'clobber' definition 'cflags'. minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:878:35: style: Parameter 'coord_ptr' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:1285:34: style: Parameter 'vector' can be declared as const array [constParameter] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:1346:38: style: Parameter 'tm_stamp' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:1889:39: style: Parameter 'what' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:1969:48: style: Parameter 'key' can be declared as pointer to const. However it seems that 'get_transformation' is a callback function, if 'key' is declared with const you might also need to cast function pointer(s). [constParameterCallback] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:371:47: note: You might need to cast the function pointer here minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:1969:48: note: Parameter 'key' can be declared as pointer to const minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:2063:44: style: Parameter 'key' can be declared as pointer to const. However it seems that 'get_model_file' is a callback function, if 'key' is declared with const you might also need to cast function pointer(s). [constParameterCallback] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:386:37: note: You might need to cast the function pointer here minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:2063:44: note: Parameter 'key' can be declared as pointer to const minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:2144:43: style: Parameter 'key' can be declared as pointer to const. However it seems that 'set_spacetype' is a callback function, if 'key' is declared with const you might also need to cast function pointer(s). [constParameterCallback] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:395:42: note: You might need to cast the function pointer here minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:2144:43: note: Parameter 'key' can be declared as pointer to const minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:2148:10: style: Variable 'spacetype' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:2201:39: style: Parameter 'key' can be declared as pointer to const. However it seems that 'set_units' is a callback function, if 'key' is declared with const you might also need to cast function pointer(s). [constParameterCallback] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:398:38: note: You might need to cast the function pointer here minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:2201:39: note: Parameter 'key' can be declared as pointer to const minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:2205:10: style: Variable 'units' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:2244:44: style: Parameter 'key' can be declared as pointer to const. However it seems that 'get_axis_order' is a callback function, if 'key' is declared with const you might also need to cast function pointer(s). [constParameterCallback] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:469:40: note: You might need to cast the function pointer here minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:2244:44: note: Parameter 'key' can be declared as pointer to const minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:2286:43: style: Parameter 'key' can be declared as pointer to const. However it seems that 'get_fillvalue' is a callback function, if 'key' is declared with const you might also need to cast function pointer(s). [constParameterCallback] minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:499:37: note: You might need to cast the function pointer here minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:2286:43: note: Parameter 'key' can be declared as pointer to const minc-tools-2.3.00+dfsg/progs/xfm/xfminvert.c:124:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minc-tools-2.3.00+dfsg/progs/xfm/xfminvert.c:99:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/xfm/xfminvert.c:103:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/xfm/xfminvert.c:114:10: style: Variable 'pname' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/xfm/xfmconcat.c:101:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/xfm/xfmconcat.c:105:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/xfm/xfmconcat.c:119:10: style: Variable 'pname' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincresample/resample_volumes.c:1419:7: warning: If memory allocation fails, then there is a possible null pointer dereference: image_maximum [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincresample/resample_volumes.c:1416:26: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincresample/resample_volumes.c:1416:26: note: Assignment 'image_maximum=malloc(sizeof(double)*ofp->images_per_file)', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincresample/resample_volumes.c:1419:7: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincresample/resample_volumes.c:1420:7: warning: If memory allocation fails, then there is a possible null pointer dereference: image_minimum [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincresample/resample_volumes.c:1417:26: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincresample/resample_volumes.c:1417:26: note: Assignment 'image_minimum=malloc(sizeof(double)*ofp->images_per_file)', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincresample/resample_volumes.c:1420:7: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincresample/resample_volumes.c:1427:13: warning: If memory allocation fails, then there is a possible null pointer dereference: image_maximum [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincresample/resample_volumes.c:1416:26: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincresample/resample_volumes.c:1416:26: note: Assignment 'image_maximum=malloc(sizeof(double)*ofp->images_per_file)', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincresample/resample_volumes.c:1427:13: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincresample/resample_volumes.c:1428:20: warning: If memory allocation fails, then there is a possible null pointer dereference: image_maximum [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincresample/resample_volumes.c:1416:26: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincresample/resample_volumes.c:1416:26: note: Assignment 'image_maximum=malloc(sizeof(double)*ofp->images_per_file)', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincresample/resample_volumes.c:1428:20: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincresample/resample_volumes.c:1429:13: warning: If memory allocation fails, then there is a possible null pointer dereference: image_minimum [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincresample/resample_volumes.c:1417:26: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincresample/resample_volumes.c:1417:26: note: Assignment 'image_minimum=malloc(sizeof(double)*ofp->images_per_file)', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincresample/resample_volumes.c:1429:13: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincresample/resample_volumes.c:1430:20: warning: If memory allocation fails, then there is a possible null pointer dereference: image_minimum [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincresample/resample_volumes.c:1417:26: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincresample/resample_volumes.c:1417:26: note: Assignment 'image_minimum=malloc(sizeof(double)*ofp->images_per_file)', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincresample/resample_volumes.c:1430:20: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincresample/resample_volumes.c:1018:62: style: Parameter 'win_ptr' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/progs/mincresample/resample_volumes.c:1022:13: style: Variable 'pix_ptr' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincresample/resample_volumes.c:1034:62: style: Parameter 'win_ptr' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/progs/mincresample/resample_volumes.c:1038:12: style: Variable 'pix_ptr' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincresample/resample_volumes.c:1050:63: style: Parameter 'win_ptr' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/progs/mincresample/resample_volumes.c:1056:20: style: Variable 'pix_ptr' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincresample/resample_volumes.c:1068:63: style: Parameter 'win_ptr' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/progs/mincresample/resample_volumes.c:1074:11: style: Variable 'pix_ptr' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincresample/resample_volumes.c:1086:63: style: Parameter 'win_ptr' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/progs/mincresample/resample_volumes.c:1092:21: style: Variable 'pix_ptr' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincresample/resample_volumes.c:1104:63: style: Parameter 'win_ptr' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/progs/mincresample/resample_volumes.c:1110:12: style: Variable 'pix_ptr' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincresample/resample_volumes.c:1122:63: style: Parameter 'win_ptr' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/progs/mincresample/resample_volumes.c:1128:19: style: Variable 'pix_ptr' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincresample/resample_volumes.c:1140:63: style: Parameter 'win_ptr' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/progs/mincresample/resample_volumes.c:1146:10: style: Variable 'pix_ptr' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincresample/resample_volumes.c:1383:47: style: Parameter 'program_flags' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/progs/mincresample/resample_volumes.c:1423:53: warning: Uninitialized variable: nslice [uninitvar] minc-tools-2.3.00+dfsg/progs/mincresample/resample_volumes.c:1405:15: note: Assuming condition is false minc-tools-2.3.00+dfsg/progs/mincresample/resample_volumes.c:1423:53: note: Uninitialized variable: nslice minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:1341:10: error: Common realloc mistake: 'attribute_list' nulled but not freed upon failure [memleakOnRealloc] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:1446:13: error: Common realloc mistake: 'time_list' nulled but not freed upon failure [memleakOnRealloc] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:907:19: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: image [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:869:16: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:869:16: note: Assignment 'image=malloc(image_size)', assigned value is 0 minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:907:19: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:1346:4: warning: If memory allocation fails, then there is a possible null pointer dereference: attribute_list [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:1338:19: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:1338:19: note: Assignment 'attribute_list=malloc(attribute_list_alloc*sizeof(*attribute_list))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:1346:4: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:1347:4: warning: If memory allocation fails, then there is a possible null pointer dereference: attribute_list [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:1338:19: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:1338:19: note: Assignment 'attribute_list=malloc(attribute_list_alloc*sizeof(*attribute_list))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:1347:4: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:1348:4: warning: If memory allocation fails, then there is a possible null pointer dereference: attribute_list [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:1338:19: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:1338:19: note: Assignment 'attribute_list=malloc(attribute_list_alloc*sizeof(*attribute_list))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:1348:4: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:1450:7: warning: If memory allocation fails, then there is a possible null pointer dereference: time_list [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:1443:22: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:1443:22: note: Assignment 'time_list=malloc(num_alloc*sizeof(*time_list))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:1450:7: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:404:26: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:408:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:410:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:412:28: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:414:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:416:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:418:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:422:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:424:33: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:430:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:432:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:434:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:438:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:440:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:442:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:444:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:446:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:448:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:454:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:456:34: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:460:28: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:464:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:474:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:480:28: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:484:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:486:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:488:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:490:28: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:492:28: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:494:28: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:496:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:498:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:500:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:502:28: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:1261:31: style:inconclusive: Function 'usage_error' argument 1 names different: declaration 'pname' definition 'progname'. [funcArgNamesDifferent] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:283:31: note: Function 'usage_error' argument 1 names different: declaration 'pname' definition 'progname'. minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:1261:31: note: Function 'usage_error' argument 1 names different: declaration 'pname' definition 'progname'. minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:1858:22: style: Local variable 'volume_def' shadows outer variable [shadowVariable] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:373:26: note: Shadowed declaration minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:1858:22: note: Shadow variable minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:942:34: style: Variable 'img_end' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:971:34: style: Variable 'img_end' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:1261:31: style: Parameter 'progname' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:1287:43: style: Parameter 'key' can be declared as pointer to const. However it seems that 'get_attribute' is a callback function, if 'key' is declared with const you might also need to cast function pointer(s). [constParameterCallback] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:532:39: note: You might need to cast the function pointer here minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:1287:43: note: Parameter 'key' can be declared as pointer to const minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:1383:39: style: Parameter 'key' can be declared as pointer to const. However it seems that 'get_times' is a callback function, if 'key' is declared with const you might also need to cast function pointer(s). [constParameterCallback] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:538:42: note: You might need to cast the function pointer here minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:1383:39: note: Parameter 'key' can be declared as pointer to const minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:1392:16: style: Variable 'end' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:1499:44: style: Parameter 'key' can be declared as pointer to const. However it seems that 'get_axis_order' is a callback function, if 'key' is declared with const you might also need to cast function pointer(s). [constParameterCallback] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:402:38: note: You might need to cast the function pointer here minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:1499:44: note: Parameter 'key' can be declared as pointer to const minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:1855:44: style: Parameter 'key' can be declared as pointer to const. However it seems that 'get_model_file' is a callback function, if 'key' is declared with const you might also need to cast function pointer(s). [constParameterCallback] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:540:35: note: You might need to cast the function pointer here minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:1855:44: note: Parameter 'key' can be declared as pointer to const minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:256:8: style: struct member 'File_Info::using_icv' is never used. [unusedStructMember] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:257:8: style: struct member 'File_Info::icvid' is never used. [unusedStructMember] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:258:9: style: struct member 'File_Info::slices_per_image' is never used. [unusedStructMember] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:260:9: style: struct member 'File_Info::images_per_file' is never used. [unusedStructMember] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:261:8: style: struct member 'File_Info::do_slice_renormalization' is never used. [unusedStructMember] minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:265:8: style: struct member 'File_Info::keep_real_range' is never used. [unusedStructMember] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:536:27: style: Array index 'k_low' is used before limits check. [arrayIndexThenCheck] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:593:21: style: Array index 'T_low' is used before limits check. [arrayIndexThenCheck] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:1754:13: error: Common realloc mistake: 'double_list' nulled but not freed upon failure [memleakOnRealloc] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:684:9: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:673:23: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:673:23: note: Assignment 'p=malloc(sizeof(double)*hist_bins)', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:684:9: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:687:5: warning: If memory allocation fails, then there is a possible null pointer dereference: P [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:674:23: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:674:23: note: Assignment 'P=malloc(sizeof(double)*hist_bins)', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:687:5: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:687:12: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:673:23: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:673:23: note: Assignment 'p=malloc(sizeof(double)*hist_bins)', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:687:12: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:689:9: warning: If memory allocation fails, then there is a possible null pointer dereference: P [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:674:23: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:674:23: note: Assignment 'P=malloc(sizeof(double)*hist_bins)', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:689:9: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:689:16: warning: If memory allocation fails, then there is a possible null pointer dereference: P [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:674:23: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:674:23: note: Assignment 'P=malloc(sizeof(double)*hist_bins)', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:689:16: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:689:27: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:673:23: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:673:23: note: Assignment 'p=malloc(sizeof(double)*hist_bins)', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:689:27: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:1757:7: warning: If memory allocation fails, then there is a possible null pointer dereference: double_list [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:1751:33: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:1751:33: note: Assignment 'double_list=malloc(num_alloc*sizeof(*double_list))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:1757:7: note: Null pointer dereference minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:282:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:284:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:286:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:291:15: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:303:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:313:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:317:33: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:321:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:323:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:325:24: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:327:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:329:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:331:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:333:43: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:335:42: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:337:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:341:28: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:343:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:345:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:347:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:349:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:351:28: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:353:28: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:355:28: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:357:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:359:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:361:33: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:363:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:365:28: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:367:28: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:369:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:371:33: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:373:33: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:377:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:380:20: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:382:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:384:33: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:386:33: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:388:26: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:390:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:392:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:394:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:396:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:398:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:1293:13: style: Local variable 'mask_min' shadows outer variable [shadowVariable] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:257:21: note: Shadowed declaration minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:1293:13: note: Shadow variable minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:1293:23: style: Local variable 'mask_max' shadows outer variable [shadowVariable] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:258:21: note: Shadowed declaration minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:1293:23: note: Shadow variable minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:1438:13: style: Local variable 'nvoxels' shadows outer variable [shadowVariable] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:274:10: note: Shadowed declaration minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:1438:13: note: Shadow variable minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:413:26: style: Parameter 'histogram' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:413:45: style: Parameter 'hist_centre' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:574:27: style: Parameter 'hist_bin' can be declared as const array [constParameter] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:574:46: style: Parameter 'hist_centre' can be declared as const array [constParameter] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:668:24: style: Parameter 'histo' can be declared as const array [constParameter] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:668:40: style: Parameter 'hist_centre' can be declared as const array [constParameter] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:1285:22: style: Parameter 'input_data' can be declared as const array. However it seems that 'do_math' is a callback function, if 'input_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:946:61: note: You might need to cast the function pointer here minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:1285:22: note: Parameter 'input_data' can be declared as const array minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:1372:34: style: Parameter 'index' can be declared as const array [constParameter] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:1424:25: style: Parameter 'title' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:1626:29: style: Parameter 'stats' can be declared as pointer to const [constParameterPointer] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:1628:13: style: Variable 'spatial_codes' can be declared as const array [constVariable] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:1671:29: style: Parameter 'transform' can be declared as const array [constParameter] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:1671:77: style: Parameter 'in_coord' can be declared as const array [constParameter] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:1704:38: style: Parameter 'key' can be declared as pointer to const. However it seems that 'get_double_list' is a callback function, if 'key' is declared with const you might also need to cast function pointer(s). [constParameterCallback] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:311:42: note: You might need to cast the function pointer here minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:1704:38: note: Parameter 'key' can be declared as pointer to const minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:1712:19: style: Variable 'end' can be declared as pointer to const [constVariablePointer] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:602:7: style: Variable 'n' is assigned a value that is never used. [unreadVariable] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:604:11: style: Variable 'n' is assigned a value that is never used. [unreadVariable] diff: head minc-tools-2.3.00+dfsg/conversion/Acr_nema/file_io.c:477:2: error: #error Must have mkstemp() or tmpnam() available. [preprocessorErrorDirective] 2.17.0 minc-tools-2.3.00+dfsg/conversion/Acr_nema/value_repr.c:589:46: style: Parameter 'vr_entry' can be declared as pointer to const [constParameterPointer] head minc-tools-2.3.00+dfsg/conversion/Acr_nema/value_repr.c:589:46: style: Parameter 'vr_entry' can be declared as pointer to const. However it seems that 'return_the_string' is a callback function, if 'vr_entry' is declared with const you might also need to cast function pointer(s). [constParameterCallback] minc-tools-2.3.00+dfsg/conversion/Acr_nema/value_repr.c:140:49: note: You might need to cast the function pointer here minc-tools-2.3.00+dfsg/conversion/Acr_nema/value_repr.c:589:46: note: Parameter 'vr_entry' can be declared as pointer to const head minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dcm2mnc.c:180:33: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dcm2mnc.c:182:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dcm2mnc.c:184:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dcm2mnc.c:190:33: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dcm2mnc.c:192:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dcm2mnc.c:196:38: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dcm2mnc.c:198:25: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dcm2mnc.c:221:6: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dcm2mnc.c:227:6: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dcm2mnc.c:233:6: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dcm2mnc.c:239:6: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dcm2mnc.c:245:6: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/conversion/dcm2mnc/dcm2mnc.c:251:6: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] 2.17.0 minc-tools-2.3.00+dfsg/conversion/dicomserver/project_file.c:180:17: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] head minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/dcm2mnc.c:136:10: style: Variable 'file_prefix' is assigned a value that is never used. [unreadVariable] 2.17.0 minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/project_file.c:185:17: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] 2.17.0 minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:1021:24: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] head minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_send.c:235:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/conversion/dicomserver_sonata/siemens_dicom_to_minc.c:921:8: style: Variable 'DefaultValue' is assigned a value that is never used. [unreadVariable] head minc-tools-2.3.00+dfsg/conversion/ecattominc/ecattominc.c:242:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/conversion/ecattominc/ecattominc.c:246:41: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/conversion/ecattominc/ecattominc.c:250:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/conversion/ecattominc/ecattominc.c:254:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/conversion/ecattominc/ecattominc.c:258:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/conversion/ecattominc/ecattominc.c:260:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/conversion/ecattominc/ecattominc.c:262:28: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/conversion/ecattominc/ecattominc.c:267:38: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/conversion/ecattominc/ecattominc.c:269:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] 2.17.0 minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:1257:1: style: Parameter 'ci_ptr' can be declared as pointer to const [constParameterPointer] head minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:1257:1: style: Parameter 'ci_ptr' can be declared as pointer to const. However it seems that 'upet_rotation' is a callback function, if 'ci_ptr' is declared with const you might also need to cast function pointer(s). [constParameterCallback] minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:320:34: note: You might need to cast the function pointer here minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:1257:1: note: Parameter 'ci_ptr' can be declared as pointer to const head minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:413:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:415:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] 2.17.0 minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:782:1: style: Parameter 'ci_ptr' can be declared as pointer to const [constParameterPointer] head minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:782:1: style: Parameter 'ci_ptr' can be declared as pointer to const. However it seems that 'upet_file_type' is a callback function, if 'ci_ptr' is declared with const you might also need to cast function pointer(s). [constParameterCallback] minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:194:34: note: You might need to cast the function pointer here minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:782:1: note: Parameter 'ci_ptr' can be declared as pointer to const 2.17.0 minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:842:1: style: Parameter 'ci_ptr' can be declared as pointer to const [constParameterPointer] head minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:842:1: style: Parameter 'ci_ptr' can be declared as pointer to const. However it seems that 'upet_bed_motion' is a callback function, if 'ci_ptr' is declared with const you might also need to cast function pointer(s). [constParameterCallback] minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:198:34: note: You might need to cast the function pointer here minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:842:1: note: Parameter 'ci_ptr' can be declared as pointer to const 2.17.0 minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:927:1: style: Parameter 'ci_ptr' can be declared as pointer to const [constParameterPointer] head minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:927:1: style: Parameter 'ci_ptr' can be declared as pointer to const. However it seems that 'upet_data_order' is a callback function, if 'ci_ptr' is declared with const you might also need to cast function pointer(s). [constParameterCallback] minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:254:33: note: You might need to cast the function pointer here minc-tools-2.3.00+dfsg/conversion/micropet/upet2mnc.c:927:1: note: Parameter 'ci_ptr' can be declared as pointer to const head minc-tools-2.3.00+dfsg/conversion/mnitominc/mnitominc.h:180:33: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/conversion/mnitominc/mnitominc.h:182:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/conversion/mnitominc/mnitominc.h:186:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/conversion/mnitominc/mnitominc.h:188:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/conversion/mnitominc/mnitominc.h:192:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/conversion/mnitominc/mnitominc.h:198:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/conversion/mnitominc/mnitominc.h:204:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/conversion/mnitominc/mnitominc.h:206:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/conversion/mnitominc/mnitominc.h:208:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/conversion/mnitominc/mnitominc.h:210:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/conversion/nifti1/mnc2nii.c:216:36: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/conversion/nifti1/mnc2nii.c:222:34: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/conversion/nifti1/mnc2nii.c:225:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/conversion/nifti1/mnc2nii.c:228:33: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/conversion/nifti1/mnc2nii.c:239:37: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/conversion/nifti1/nii2mnc.c:154:36: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:263:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:267:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:271:41: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:275:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:279:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:286:38: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:288:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/conversion/scxtominc/scxtominc.c:290:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/conversion/vff2mnc/vff2mnc.c:79:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/conversion/vff2mnc/vff2mnc.c:81:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] 2.17.0 minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:321:31: error:inconclusive: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:311:32: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:311:32: note: Assignment 'tmp_value=malloc((attribute_length+new_length)*nctypelen(new_type))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:321:31: note: Null pointer addition head minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:321:31: error:inconclusive: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:311:32: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:311:32: note: Assignment 'tmp_value=malloc((attribute_length+new_length)*nctypelen(new_type))', assigned value is 0 minc-tools-2.3.00+dfsg/progs/minc_modify_header/minc_modify_header.c:321:31: note: Null pointer addition head minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:212:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:218:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:222:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:224:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:226:41: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:230:41: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:247:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:251:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:253:34: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:257:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:259:33: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:261:36: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:265:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:267:33: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:269:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:271:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:273:34: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:275:34: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:277:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:279:26: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:284:39: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:286:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincaverage/mincaverage.c:288:41: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:185:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:191:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:195:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:197:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:199:36: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:217:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:221:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:223:41: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:226:41: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:234:38: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:236:28: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:242:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:245:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:247:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/minccalc/minccalc.c:251:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/minccmp/minccmp.c:134:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/minccmp/minccmp.c:136:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/minccmp/minccmp.c:138:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/minccmp/minccmp.c:140:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/minccmp/minccmp.c:142:41: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/minccmp/minccmp.c:144:41: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/minccmp/minccmp.c:151:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/minccmp/minccmp.c:153:26: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/minccmp/minccmp.c:155:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/minccmp/minccmp.c:158:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/minccmp/minccmp.c:163:28: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/minccmp/minccmp.c:165:28: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/minccmp/minccmp.c:167:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/minccmp/minccmp.c:169:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/minccmp/minccmp.c:171:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/minccmp/minccmp.c:173:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:341:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:345:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:349:43: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:352:34: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:371:34: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:375:36: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:380:42: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:382:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:384:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:386:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:397:44: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:403:37: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincconcat/mincconcat.c:412:38: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincconvert/mincconvert.c:78:33: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincconvert/mincconvert.c:80:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincconvert/mincconvert.c:82:34: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincconvert/mincconvert.c:84:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincconvert/mincconvert.c:86:26: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/minccopy/minccopy.c:92:37: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincdump/mincdump.c:696:26: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincdump/mincdump.c:698:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincexpand/mincexpand.c:92:36: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincexpand/mincexpand.c:96:34: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincextract/mincextract.c:159:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincextract/mincextract.c:161:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincextract/mincextract.c:163:28: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincextract/mincextract.c:165:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincextract/mincextract.c:167:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincextract/mincextract.c:169:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincextract/mincextract.c:171:33: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincextract/mincextract.c:173:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincextract/mincextract.c:177:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincextract/mincextract.c:179:34: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincextract/mincextract.c:187:33: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincextract/mincextract.c:189:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincextract/mincextract.c:191:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincgen/main.c:80:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincgen/main.c:82:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincgen/main.c:84:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincgen/main.c:86:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:236:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:240:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:244:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:260:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:264:33: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:274:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:278:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:280:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:282:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:284:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:286:33: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:288:33: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/minclookup/minclookup.c:292:33: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincmakescalar/mincmakescalar.c:133:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincmakescalar/mincmakescalar.c:137:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincmakescalar/mincmakescalar.c:141:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincmakescalar/mincmakescalar.c:157:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincmakescalar/mincmakescalar.c:161:33: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincmakevector/mincmakevector.c:115:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincmakevector/mincmakevector.c:119:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincmakevector/mincmakevector.c:123:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincmakevector/mincmakevector.c:139:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincmakevector/mincmakevector.c:143:33: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincmath/mincmath.c:254:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincmath/mincmath.c:260:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincmath/mincmath.c:264:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincmath/mincmath.c:266:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincmath/mincmath.c:268:36: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincmath/mincmath.c:286:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincmath/mincmath.c:290:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincmath/mincmath.c:292:41: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincmath/mincmath.c:295:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincmath/mincmath.c:297:41: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincmath/mincmath.c:305:38: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincmath/mincmath.c:307:28: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincmath/mincmath.c:313:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincmath/mincmath.c:318:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincmath/mincmath.c:320:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincmath/mincmath.c:322:28: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincmorph/mincmorph.c:134:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincmorph/mincmorph.c:138:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincmorph/mincmorph.c:140:26: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincmorph/mincmorph.c:142:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincmorph/mincmorph.c:144:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincmorph/mincmorph.c:146:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincmorph/mincmorph.c:179:33: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:359:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:365:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:374:49: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:380:46: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:401:33: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:413:28: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:425:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:437:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:449:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:452:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:455:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:458:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:461:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:484:34: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:488:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:490:43: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincresample/mincresample.c:520:8: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:231:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:235:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:263:34: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:267:36: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:270:36: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:272:37: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:288:34: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincreshape/mincreshape.c:330:38: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:114:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:116:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:118:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:120:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:122:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:124:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:131:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:133:34: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:138:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:140:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:142:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincsample/mincsample.c:148:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:282:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:284:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:286:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:291:15: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:303:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:313:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:317:33: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:321:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:323:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:325:24: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:327:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:329:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:331:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:333:43: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:335:42: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:337:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:341:28: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:343:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:345:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:347:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:349:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:351:28: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:353:28: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:355:28: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:357:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:359:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:361:33: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:363:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:365:28: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:367:28: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:369:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:371:33: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:373:33: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:377:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:380:20: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:382:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:384:33: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:386:33: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:388:26: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:390:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:392:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:394:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:396:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:398:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:689:16: warning: If memory allocation fails, then there is a possible null pointer dereference: P [nullPointerOutOfMemory] minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:674:23: note: Assuming allocation function fails minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:674:23: note: Assignment 'P=malloc(sizeof(double)*hist_bins)', assigned value is 0 minc-tools-2.3.00+dfsg/progs/mincstats/mincstats.c:689:16: note: Null pointer dereference head minc-tools-2.3.00+dfsg/progs/minctoraw/minctoraw.c:140:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/minctoraw/minctoraw.c:144:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/minctoraw/minctoraw.c:146:34: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincwindow/mincwindow.c:131:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/mincwindow/mincwindow.c:135:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:404:26: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:408:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:410:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:412:28: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:414:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:416:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:418:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:422:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:424:33: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:430:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:432:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:434:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:438:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:440:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:442:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:444:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:446:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:448:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:454:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:456:34: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:460:28: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:464:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:474:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:480:28: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:484:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:486:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:488:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:490:28: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:492:28: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:494:28: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:496:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:498:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:500:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/rawtominc/rawtominc.c:502:28: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/xfm/transformtags.c:78:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/xfm/transformtags.c:80:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/xfm/xfm2def.c:62:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/xfm/xfm2def.c:64:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/xfm/xfm2def.c:66:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/xfm/xfm2def.c:68:28: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/xfm/xfm2def.c:70:28: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/xfm/xfm2def.c:72:28: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/xfm/xfm2def.c:74:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/xfm/xfm2def.c:76:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/xfm/xfm2def.c:78:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/xfm/xfm2def.c:80:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/xfm/xfm2def.c:82:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/xfm/xfm2def.c:84:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/xfm/xfmconcat.c:101:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/xfm/xfmconcat.c:105:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/xfm/xfminvert.c:103:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head minc-tools-2.3.00+dfsg/progs/xfm/xfminvert.c:99:32: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] DONE