2025-12-10 20:19 ftp://ftp.de.debian.org/debian/pool/main/d/dcm2niix/dcm2niix_1.0.20250506.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=zlib --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.8.0-88-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.69 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.18.0 head-info: 40cf3c3 (2025-12-10 19:11:39 +0100) count: 1378 1371 elapsed-time: 70.1 83.7 head-timing-info: old-timing-info: head results: rordenlab-dcm2niix-f6d7a00/console/base64.cpp:47:8: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/base64.cpp:125:14: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/base64.cpp:105:51: style: The scope of the variable 'tmp' can be reduced. [variableScope] rordenlab-dcm2niix-f6d7a00/console/cJSON.cpp:200:3: portability: Using memset() on struct which contains a floating point number. [memsetClassFloat] rordenlab-dcm2niix-f6d7a00/console/cJSON.cpp:405:7: style: Condition 'newbuffer' is always true [knownConditionTrueFalse] rordenlab-dcm2niix-f6d7a00/console/cJSON.cpp:663:36: style: Condition '(input_end-input_pointer)<1' is always false [knownConditionTrueFalse] rordenlab-dcm2niix-f6d7a00/console/cJSON.cpp:656:23: note: Assuming that condition 'input_pointer , EncoderStrategy >::DecodeValue' can be static. [functionStatic] rordenlab-dcm2niix-f6d7a00/console/charls/scan.h:168:13: note: The member function 'JlsCodec < DefaultTraits < uint8_t , uint8_t > , EncoderStrategy >::DecodeValue' can be static. rordenlab-dcm2niix-f6d7a00/console/charls/scan.h:329:37: note: The member function 'JlsCodec < DefaultTraits < uint8_t , uint8_t > , EncoderStrategy >::DecodeValue' can be static. rordenlab-dcm2niix-f6d7a00/console/charls/scan.h:329:37: style: The member function 'JlsCodec < DefaultTraits < uint16_t , uint16_t > , EncoderStrategy >::DecodeValue' can be static. [functionStatic] rordenlab-dcm2niix-f6d7a00/console/charls/scan.h:168:13: note: The member function 'JlsCodec < DefaultTraits < uint16_t , uint16_t > , EncoderStrategy >::DecodeValue' can be static. rordenlab-dcm2niix-f6d7a00/console/charls/scan.h:329:37: note: The member function 'JlsCodec < DefaultTraits < uint16_t , uint16_t > , EncoderStrategy >::DecodeValue' can be static. rordenlab-dcm2niix-f6d7a00/console/charls/losslesstraits.h:102:33: warning: The struct 'LosslessTraits < uint16_t , 16 >' defines member function with name 'ComputeErrVal' also defined in its parent struct 'LosslessTraitsImpl < uint16_t , 16 >'. [duplInheritedMember] rordenlab-dcm2niix-f6d7a00/console/charls/losslesstraits.h:29:33: note: Parent function 'LosslessTraitsImpl < uint16_t , 16 >::ComputeErrVal' rordenlab-dcm2niix-f6d7a00/console/charls/losslesstraits.h:102:33: note: Derived function 'LosslessTraits < uint16_t , 16 >::ComputeErrVal' rordenlab-dcm2niix-f6d7a00/console/charls/losslesstraits.h:107:32: warning: The struct 'LosslessTraits < uint16_t , 16 >' defines member function with name 'ComputeReconstructedSample' also defined in its parent struct 'LosslessTraitsImpl < uint16_t , 16 >'. [duplInheritedMember] rordenlab-dcm2niix-f6d7a00/console/charls/losslesstraits.h:48:32: note: Parent function 'LosslessTraitsImpl < uint16_t , 16 >::ComputeReconstructedSample' rordenlab-dcm2niix-f6d7a00/console/charls/losslesstraits.h:107:32: note: Derived function 'LosslessTraits < uint16_t , 16 >::ComputeReconstructedSample' rordenlab-dcm2niix-f6d7a00/console/charls/losslesstraits.h:80:33: warning: The struct 'LosslessTraits < uint8_t , 8 >' defines member function with name 'ComputeErrVal' also defined in its parent struct 'LosslessTraitsImpl < uint8_t , 8 >'. [duplInheritedMember] rordenlab-dcm2niix-f6d7a00/console/charls/losslesstraits.h:29:33: note: Parent function 'LosslessTraitsImpl < uint8_t , 8 >::ComputeErrVal' rordenlab-dcm2niix-f6d7a00/console/charls/losslesstraits.h:80:33: note: Derived function 'LosslessTraits < uint8_t , 8 >::ComputeErrVal' rordenlab-dcm2niix-f6d7a00/console/charls/losslesstraits.h:85:33: warning: The struct 'LosslessTraits < uint8_t , 8 >' defines member function with name 'ComputeReconstructedSample' also defined in its parent struct 'LosslessTraitsImpl < uint8_t , 8 >'. [duplInheritedMember] rordenlab-dcm2niix-f6d7a00/console/charls/losslesstraits.h:48:32: note: Parent function 'LosslessTraitsImpl < uint8_t , 8 >::ComputeReconstructedSample' rordenlab-dcm2niix-f6d7a00/console/charls/losslesstraits.h:85:33: note: Derived function 'LosslessTraits < uint8_t , 8 >::ComputeReconstructedSample' rordenlab-dcm2niix-f6d7a00/console/charls/losslesstraits.h:119:30: warning: The struct 'LosslessTraits < Triplet < uint8_t > , 8 >' defines member function with name 'IsNear' also defined in its parent struct 'LosslessTraitsImpl < Triplet < uint8_t > , 8 >'. [duplInheritedMember] rordenlab-dcm2niix-f6d7a00/console/charls/losslesstraits.h:34:30: note: Parent function 'LosslessTraitsImpl < Triplet < uint8_t > , 8 >::IsNear' rordenlab-dcm2niix-f6d7a00/console/charls/losslesstraits.h:119:30: note: Derived function 'LosslessTraits < Triplet < uint8_t > , 8 >::IsNear' rordenlab-dcm2niix-f6d7a00/console/charls/losslesstraits.h:129:27: warning: The struct 'LosslessTraits < Triplet < uint8_t > , 8 >' defines member function with name 'ComputeReconstructedSample' also defined in its parent struct 'LosslessTraitsImpl < Triplet < uint8_t > , 8 >'. [duplInheritedMember] rordenlab-dcm2niix-f6d7a00/console/charls/losslesstraits.h:48:32: note: Parent function 'LosslessTraitsImpl < Triplet < uint8_t > , 8 >::ComputeReconstructedSample' rordenlab-dcm2niix-f6d7a00/console/charls/losslesstraits.h:129:27: note: Derived function 'LosslessTraits < Triplet < uint8_t > , 8 >::ComputeReconstructedSample' rordenlab-dcm2niix-f6d7a00/console/charls/scan.h:209:10: style: The function 'DecodeScan' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] rordenlab-dcm2niix-f6d7a00/console/charls/decoderstrategy.h:37:18: note: Virtual function in base class rordenlab-dcm2niix-f6d7a00/console/charls/scan.h:209:10: note: Function in derived class rordenlab-dcm2niix-f6d7a00/console/charls/scan.h:208:12: style: The function 'EncodeScan' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] rordenlab-dcm2niix-f6d7a00/console/charls/encoderstrategy.h:38:25: note: Virtual function in base class rordenlab-dcm2niix-f6d7a00/console/charls/scan.h:208:12: note: Function in derived class rordenlab-dcm2niix-f6d7a00/console/charls/scan.h:92:41: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] rordenlab-dcm2niix-f6d7a00/console/charls/processline.h:232:39: performance: Function parameter 'rawStream' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/charls/decoderstrategy.h:39:31: style: Parameter 'compressedStream' can be declared as reference to const [constParameterReference] rordenlab-dcm2niix-f6d7a00/console/charls/encoderstrategy.h:53:31: style: Parameter 'compressedStream' can be declared as reference to const [constParameterReference] rordenlab-dcm2niix-f6d7a00/console/charls/scan.h:86:59: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] rordenlab-dcm2niix-f6d7a00/console/charls/scan.h:86:85: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] rordenlab-dcm2niix-f6d7a00/console/charls/defaulttraits.h:93:23: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] rordenlab-dcm2niix-f6d7a00/console/charls/losslesstraits.h:58:23: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] rordenlab-dcm2niix-f6d7a00/console/charls/processline.h:147:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/charls/processline.h:161:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/charls/jpegstreamreader.cpp:178:93: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable hex [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/charls/jpegstreamreader.cpp:322:24: style: Unused private function: 'JpegStreamReader::ReadJfif' [unusedPrivateFunction] rordenlab-dcm2niix-f6d7a00/console/charls/jpegstreamreader.h:63:10: note: Unused private function: 'JpegStreamReader::ReadJfif' rordenlab-dcm2niix-f6d7a00/console/charls/jpegstreamreader.cpp:322:24: note: Unused private function: 'JpegStreamReader::ReadJfif' rordenlab-dcm2niix-f6d7a00/console/charls/jpegstreamreader.cpp:379:23: style: The member function 'JpegStreamReader::ReadColorSpace' can be static. [functionStatic] rordenlab-dcm2niix-f6d7a00/console/charls/jpegstreamreader.h:66:9: note: The member function 'JpegStreamReader::ReadColorSpace' can be static. rordenlab-dcm2niix-f6d7a00/console/charls/jpegstreamreader.cpp:379:23: note: The member function 'JpegStreamReader::ReadColorSpace' can be static. rordenlab-dcm2niix-f6d7a00/console/charls/jpegstreamreader.cpp:289:12: style: Variable 'length' is assigned a value that is never used. [unreadVariable] rordenlab-dcm2niix-f6d7a00/console/dcm2niix_fswrapper.cpp:288:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tdicomData [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/dcm2niix_fswrapper.cpp:58:2: portability: Using memset() on struct which contains a floating point number. [memsetClassFloat] rordenlab-dcm2niix-f6d7a00/console/dcm2niix_fswrapper.cpp:121:9: warning: If memory allocation fails, then there is a possible null pointer dereference: restOpts [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/dcm2niix_fswrapper.cpp:120:33: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/dcm2niix_fswrapper.cpp:120:19: note: Assignment 'restOpts=(char*)malloc(strlen(dcm2niixopts)+1)', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/dcm2niix_fswrapper.cpp:121:9: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/dcm2niix_fswrapper.cpp:122:9: warning: If memory allocation fails, then there is a possible null pointer dereference: restOpts [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/dcm2niix_fswrapper.cpp:120:33: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/dcm2niix_fswrapper.cpp:120:19: note: Assignment 'restOpts=(char*)malloc(strlen(dcm2niixopts)+1)', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/dcm2niix_fswrapper.cpp:122:9: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/dcm2niix_fswrapper.cpp:295:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fp_dcmLst [nullPointerOutOfResources] rordenlab-dcm2niix-f6d7a00/console/dcm2niix_fswrapper.cpp:293:26: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/dcm2niix_fswrapper.cpp:293:26: note: Assignment 'fp_dcmLst=fopen(dicomflst,"w")', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/dcm2niix_fswrapper.cpp:295:12: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/dcm2niix_fswrapper.cpp:296:10: warning: If resource allocation fails, then there is a possible null pointer dereference: fp_dcmLst [nullPointerOutOfResources] rordenlab-dcm2niix-f6d7a00/console/dcm2niix_fswrapper.cpp:293:26: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/dcm2niix_fswrapper.cpp:293:26: note: Assignment 'fp_dcmLst=fopen(dicomflst,"w")', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/dcm2niix_fswrapper.cpp:296:10: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/dcm2niix_fswrapper.cpp:299:11: warning: If resource allocation fails, then there is a possible null pointer dereference: fpout [nullPointerOutOfResources] rordenlab-dcm2niix-f6d7a00/console/dcm2niix_fswrapper.cpp:283:21: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/dcm2niix_fswrapper.cpp:283:21: note: Assignment 'fpout=fopen(series_info,"w")', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/dcm2niix_fswrapper.cpp:299:11: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/dcm2niix_fswrapper.cpp:311:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fpout [nullPointerOutOfResources] rordenlab-dcm2niix-f6d7a00/console/dcm2niix_fswrapper.cpp:283:21: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/dcm2niix_fswrapper.cpp:283:21: note: Assignment 'fpout=fopen(series_info,"w")', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/dcm2niix_fswrapper.cpp:311:12: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/dcm2niix_fswrapper.cpp:313:11: warning: If resource allocation fails, then there is a possible null pointer dereference: fpout [nullPointerOutOfResources] rordenlab-dcm2niix-f6d7a00/console/dcm2niix_fswrapper.cpp:283:21: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/dcm2niix_fswrapper.cpp:283:21: note: Assignment 'fpout=fopen(series_info,"w")', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/dcm2niix_fswrapper.cpp:313:11: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/dcm2niix_fswrapper.cpp:315:9: warning: If resource allocation fails, then there is a possible null pointer dereference: fpout [nullPointerOutOfResources] rordenlab-dcm2niix-f6d7a00/console/dcm2niix_fswrapper.cpp:283:21: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/dcm2niix_fswrapper.cpp:283:21: note: Assignment 'fpout=fopen(series_info,"w")', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/dcm2niix_fswrapper.cpp:315:9: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/dcm2niix_fswrapper.cpp:130:4: warning: Either the condition 'v!=NULL' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck] rordenlab-dcm2niix-f6d7a00/console/dcm2niix_fswrapper.cpp:128:9: note: Assuming that condition 'v!=NULL' is not redundant rordenlab-dcm2niix-f6d7a00/console/dcm2niix_fswrapper.cpp:130:4: note: Null pointer addition rordenlab-dcm2niix-f6d7a00/console/dcm2niix_fswrapper.cpp:120:19: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/dcm2niix_fswrapper.cpp:124:27: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/dcm2niix_fswrapper.cpp:203:43: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/dcm2niix_fswrapper.cpp:225:44: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/dcm2niix_fswrapper.cpp:237:33: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/dcm2niix_fswrapper.cpp:126:9: style: Variable 'k' can be declared as pointer to const [constVariablePointer] rordenlab-dcm2niix-f6d7a00/console/dcm2niix_fswrapper.cpp:270:15: style: Variable 'mrifsStruct' can be declared as pointer to const [constVariablePointer] rordenlab-dcm2niix-f6d7a00/console/dcm2niix_fswrapper.cpp:281:8: style: Variable 'logdir' can be declared as pointer to const [constVariablePointer] rordenlab-dcm2niix-f6d7a00/console/dcm2niix_fswrapper.cpp:288:22: style: Variable 'tdicomData' can be declared as pointer to const [constVariablePointer] rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:121:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:65:31: warning: Either the condition 'lHufValSSSS<255' is redundant or the array 'l.SSSSszRA[18]' is accessed at index 254, which is out of bounds. [arrayIndexOutOfBoundsCond] rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:64:18: note: Assuming that condition 'lHufValSSSS<255' is not redundant rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:65:31: note: Array index out of bounds rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:116:23: warning: If resource allocation fails, then there is a possible null pointer dereference: reader [nullPointerOutOfResources] rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:115:22: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:115:22: note: Assignment 'reader=fopen(fn,"rb")', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:116:23: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:117:22: warning: If resource allocation fails, then there is a possible null pointer dereference: reader [nullPointerOutOfResources] rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:115:22: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:115:22: note: Assignment 'reader=fopen(fn,"rb")', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:117:22: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:124:19: warning: If resource allocation fails, then there is a possible null pointer dereference: reader [nullPointerOutOfResources] rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:115:22: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:115:22: note: Assignment 'reader=fopen(fn,"rb")', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:120:22: note: Assuming condition is false rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:124:19: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:130:21: warning: If memory allocation fails, then there is a possible null pointer dereference: lRawRA [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:129:49: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:129:26: note: Assignment 'lRawRA=(unsigned char*)malloc(lRawSz)', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:130:21: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:132:33: warning: If memory allocation fails, then there is a possible null pointer dereference: lRawRA [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:129:49: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:129:26: note: Assignment 'lRawRA=(unsigned char*)malloc(lRawSz)', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:132:33: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:132:56: warning: If memory allocation fails, then there is a possible null pointer dereference: lRawRA [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:129:49: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:129:26: note: Assignment 'lRawRA=(unsigned char*)malloc(lRawSz)', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:132:56: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:132:79: warning: If memory allocation fails, then there is a possible null pointer dereference: lRawRA [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:129:49: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:129:26: note: Assignment 'lRawRA=(unsigned char*)malloc(lRawSz)', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:132:79: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:370:4: warning: If memory allocation fails, then there is a possible null pointer dereference: lImgRA16 [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:367:36: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:367:13: note: Assignment 'lImgRA8=(unsigned char*)malloc(lItems*2)', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:368:22: note: lImgRA16 is assigned '(uint16_t*)lImgRA8' here. rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:370:4: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:376:4: warning: If memory allocation fails, then there is a possible null pointer dereference: lImgRA16 [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:367:36: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:367:13: note: Assignment 'lImgRA8=(unsigned char*)malloc(lItems*2)', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:368:22: note: lImgRA16 is assigned '(uint16_t*)lImgRA8' here. rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:376:4: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:380:17: warning: If memory allocation fails, then there is a possible null pointer dereference: lImgRA16 [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:367:36: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:367:13: note: Assignment 'lImgRA8=(unsigned char*)malloc(lItems*2)', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:368:22: note: lImgRA16 is assigned '(uint16_t*)lImgRA8' here. rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:380:17: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:381:4: warning: If memory allocation fails, then there is a possible null pointer dereference: lImgRA16 [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:367:36: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:367:13: note: Assignment 'lImgRA8=(unsigned char*)malloc(lItems*2)', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:368:22: note: lImgRA16 is assigned '(uint16_t*)lImgRA8' here. rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:381:4: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:417:4: warning: If memory allocation fails, then there is a possible null pointer dereference: lImgRA8 [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:410:36: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:410:13: note: Assignment 'lImgRA8=(unsigned char*)malloc(lItems)', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:417:4: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:472:4: warning: If memory allocation fails, then there is a possible null pointer dereference: lImgRA8 [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:468:36: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:468:13: note: Assignment 'lImgRA8=(unsigned char*)malloc(lItems)', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:472:4: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:478:4: warning: If memory allocation fails, then there is a possible null pointer dereference: lImgRA8 [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:468:36: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:468:13: note: Assignment 'lImgRA8=(unsigned char*)malloc(lItems)', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:478:4: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:482:17: warning: If memory allocation fails, then there is a possible null pointer dereference: lImgRA8 [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:468:36: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:468:13: note: Assignment 'lImgRA8=(unsigned char*)malloc(lItems)', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:482:17: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:483:4: warning: If memory allocation fails, then there is a possible null pointer dereference: lImgRA8 [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:468:36: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:468:13: note: Assignment 'lImgRA8=(unsigned char*)malloc(lItems)', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:483:4: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:129:26: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:367:13: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:410:13: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:468:13: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:368:24: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:192:12: style: Redundant initialization for 'DHTnLi'. The initialized value is overwritten before it is read. [redundantInitialization] rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:190:20: note: DHTnLi is initialized rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:192:12: note: DHTnLi is overwritten rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:140:22: style: The scope of the variable 'btS2' can be reduced. [variableScope] rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:140:28: style: The scope of the variable 'SOSse' can be reduced. [variableScope] rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:22:33: error: Shifting by a negative value is undefined behaviour [shiftNegative] rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:306:11: style: Local variable 'lFrameCount' shadows outer variable [shadowVariable] rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:149:6: note: Shadowed declaration rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:306:11: note: Shadow variable rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:313:11: style: Local variable 'lFrameCount' shadows outer variable [shadowVariable] rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:149:6: note: Shadowed declaration rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:313:11: note: Shadow variable rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:315:12: style: Local variable 'lSz' shadows outer variable [shadowVariable] rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:130:9: note: Shadowed declaration rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:315:12: note: Shadow variable rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:336:12: style: Local variable 'lFrameCount' shadows outer variable [shadowVariable] rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:149:6: note: Shadowed declaration rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:336:12: note: Shadow variable rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:60:103: performance: Function parameter 'l' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:9:39: style: Parameter 'lRawRA' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:21:28: style: Parameter 'lRawRA' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:35:29: style: Parameter 'lRawRA' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:140:64: style: Variable 'SOSns' is assigned a value that is never used. [unreadVariable] rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:264:11: style: Variable 'btS1' is assigned a value that is never used. [unreadVariable] rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:266:11: style: Variable 'btS2' is assigned a value that is never used. [unreadVariable] rordenlab-dcm2niix-f6d7a00/console/jpg_0XC3.cpp:271:10: style: Variable 'SOSse' is assigned a value that is never used. [unreadVariable] rordenlab-dcm2niix-f6d7a00/console/main_console.cpp:179:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/main_console.cpp:620:124: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCKS_PER_SEC [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/main_console.cpp:179:21: warning: If resource allocation fails, then there is a possible null pointer dereference: pipe [nullPointerOutOfResources] rordenlab-dcm2niix-f6d7a00/console/main_console.cpp:175:20: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/main_console.cpp:175:20: note: Assignment 'pipe=popen("#!/usr/bin/env bash\n curl --silent \"https://api.github.com/repos/rordenlab/dcm2niix/releases/latest\" | grep '\"tag_name\":' | sed -E 's/.*\"([^\"]+)\".*/\\1/'","r")', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/main_console.cpp:179:21: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/main_console.cpp:187:9: warning: If resource allocation fails, then there is a possible null pointer dereference: pipe [nullPointerOutOfResources] rordenlab-dcm2niix-f6d7a00/console/main_console.cpp:175:20: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/main_console.cpp:175:20: note: Assignment 'pipe=popen("#!/usr/bin/env bash\n curl --silent \"https://api.github.com/repos/rordenlab/dcm2niix/releases/latest\" | grep '\"tag_name\":' | sed -E 's/.*\"([^\"]+)\".*/\\1/'","r")', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/main_console.cpp:187:9: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/main_console.cpp:49:51: performance: Function parameter 'opts' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/main_console_batch.cpp:39:75: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCKS_PER_SEC [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/main_console_batch.cpp:105:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/miniz.c:1543:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_look_up [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3924:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4761:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/miniz.c:0:0: debug: ValueFlow maximum iterations exceeded [valueFlowMaxIterations] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3058:19: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3084:11: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] rordenlab-dcm2niix-f6d7a00/console/miniz.c:1053:49: style: Condition 'tdefl_init(pComp,NULL,NULL,comp_flags)!=TDEFL_STATUS_OKAY' is always false [knownConditionTrueFalse] rordenlab-dcm2niix-f6d7a00/console/miniz.c:1053:17: note: Calling function 'tdefl_init' returns 0 rordenlab-dcm2niix-f6d7a00/console/miniz.c:1053:49: note: Condition 'tdefl_init(pComp,NULL,NULL,comp_flags)!=TDEFL_STATUS_OKAY' is always false rordenlab-dcm2niix-f6d7a00/console/miniz.c:2736:71: style: Condition 'tdefl_init(pComp,pPut_buf_func,pPut_buf_user,flags)==TDEFL_STATUS_OKAY' is always true [knownConditionTrueFalse] rordenlab-dcm2niix-f6d7a00/console/miniz.c:2736:26: note: Calling function 'tdefl_init' returns 0 rordenlab-dcm2niix-f6d7a00/console/miniz.c:2736:71: note: Condition 'tdefl_init(pComp,pPut_buf_func,pPut_buf_user,flags)==TDEFL_STATUS_OKAY' is always true rordenlab-dcm2niix-f6d7a00/console/miniz.c:3939:11: style: Condition 'pZip->m_pState' is always true [knownConditionTrueFalse] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4215:7: style: Condition '!mz_zip_writer_create_central_dir_header(pZip,central_dir_header,filename_size,extra_size,comment_size,uncomp_size,comp_size,uncomp_crc32,method,bit_flags,dos_time,dos_date,local_header_ofs,ext_attributes)' is always false [knownConditionTrueFalse] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4215:47: note: Calling function 'mz_zip_writer_create_central_dir_header' returns 1 rordenlab-dcm2niix-f6d7a00/console/miniz.c:4215:7: note: Condition '!mz_zip_writer_create_central_dir_header(pZip,central_dir_header,filename_size,extra_size,comment_size,uncomp_size,comp_size,uncomp_crc32,method,bit_flags,dos_time,dos_date,local_header_ofs,ext_attributes)' is always false rordenlab-dcm2niix-f6d7a00/console/miniz.c:4384:146: style: Condition 'tdefl_init(pComp,mz_zip_writer_add_put_buf_callback,&state,tdefl_create_comp_flags_from_zip_params(level,-15,MZ_DEFAULT_STRATEGY))!=TDEFL_STATUS_OKAY' is always false [knownConditionTrueFalse] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4384:20: note: Calling function 'tdefl_init' returns 0 rordenlab-dcm2niix-f6d7a00/console/miniz.c:4384:146: note: Condition 'tdefl_init(pComp,mz_zip_writer_add_put_buf_callback,&state,tdefl_create_comp_flags_from_zip_params(level,-15,MZ_DEFAULT_STRATEGY))!=TDEFL_STATUS_OKAY' is always false rordenlab-dcm2niix-f6d7a00/console/miniz.c:4404:7: style: Condition '!mz_zip_writer_create_local_dir_header(pZip,local_dir_header,(unsigned short)archive_name_size,0,uncomp_size,comp_size,uncomp_crc32,method,0,dos_time,dos_date)' is always false [knownConditionTrueFalse] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4404:45: note: Calling function 'mz_zip_writer_create_local_dir_header' returns 1 rordenlab-dcm2niix-f6d7a00/console/miniz.c:4404:7: note: Condition '!mz_zip_writer_create_local_dir_header(pZip,local_dir_header,(unsigned short)archive_name_size,0,uncomp_size,comp_size,uncomp_crc32,method,0,dos_time,dos_date)' is always false rordenlab-dcm2niix-f6d7a00/console/miniz.c:4529:147: style: Condition 'tdefl_init(pComp,mz_zip_writer_add_put_buf_callback,&state,tdefl_create_comp_flags_from_zip_params(level,-15,MZ_DEFAULT_STRATEGY))!=TDEFL_STATUS_OKAY' is always false [knownConditionTrueFalse] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4529:21: note: Calling function 'tdefl_init' returns 0 rordenlab-dcm2niix-f6d7a00/console/miniz.c:4529:147: note: Condition 'tdefl_init(pComp,mz_zip_writer_add_put_buf_callback,&state,tdefl_create_comp_flags_from_zip_params(level,-15,MZ_DEFAULT_STRATEGY))!=TDEFL_STATUS_OKAY' is always false rordenlab-dcm2niix-f6d7a00/console/miniz.c:4582:7: style: Condition '!mz_zip_writer_create_local_dir_header(pZip,local_dir_header,(unsigned short)archive_name_size,0,uncomp_size,comp_size,uncomp_crc32,method,0,dos_time,dos_date)' is always false [knownConditionTrueFalse] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4582:45: note: Calling function 'mz_zip_writer_create_local_dir_header' returns 1 rordenlab-dcm2niix-f6d7a00/console/miniz.c:4582:7: note: Condition '!mz_zip_writer_create_local_dir_header(pZip,local_dir_header,(unsigned short)archive_name_size,0,uncomp_size,comp_size,uncomp_crc32,method,0,dos_time,dos_date)' is always false rordenlab-dcm2niix-f6d7a00/console/miniz.c:4273:36: warning: Either the condition '!pZip' is redundant or there is possible null pointer dereference: pZip. [nullPointerRedundantCheck] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4285:8: note: Assuming that condition '!pZip' is not redundant rordenlab-dcm2niix-f6d7a00/console/miniz.c:4273:36: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/miniz.c:4273:81: warning: Either the condition '!pZip' is redundant or there is possible null pointer dereference: pZip. [nullPointerRedundantCheck] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4285:8: note: Assuming that condition '!pZip' is not redundant rordenlab-dcm2niix-f6d7a00/console/miniz.c:4273:81: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/miniz.c:4424:36: warning: Either the condition '!pZip' is redundant or there is possible null pointer dereference: pZip. [nullPointerRedundantCheck] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4433:8: note: Assuming that condition '!pZip' is not redundant rordenlab-dcm2niix-f6d7a00/console/miniz.c:4424:36: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/miniz.c:4424:81: warning: Either the condition '!pZip' is redundant or there is possible null pointer dereference: pZip. [nullPointerRedundantCheck] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4433:8: note: Assuming that condition '!pZip' is not redundant rordenlab-dcm2niix-f6d7a00/console/miniz.c:4424:81: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/miniz.c:1445:79: error: Pointer addition with NULL pointer. [nullPointerArithmetic] rordenlab-dcm2niix-f6d7a00/console/miniz.c:1715:131: note: Calling function 'tinfl_decompress', 5th argument 'pBuf?(unsigned char*)pBuf+*pOut_len:NULL' value is 0 rordenlab-dcm2niix-f6d7a00/console/miniz.c:1445:79: note: Null pointer addition rordenlab-dcm2niix-f6d7a00/console/miniz.c:4273:13: style:inconclusive: Same expression used in consecutive assignments of 'local_dir_header_ofs' and 'cur_archive_file_ofs'. [duplicateAssignExpression] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4273:58: note: Same expression used in consecutive assignments of 'local_dir_header_ofs' and 'cur_archive_file_ofs'. rordenlab-dcm2niix-f6d7a00/console/miniz.c:4273:13: note: Same expression used in consecutive assignments of 'local_dir_header_ofs' and 'cur_archive_file_ofs'. rordenlab-dcm2niix-f6d7a00/console/miniz.c:4424:13: style:inconclusive: Same expression used in consecutive assignments of 'local_dir_header_ofs' and 'cur_archive_file_ofs'. [duplicateAssignExpression] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4424:58: note: Same expression used in consecutive assignments of 'local_dir_header_ofs' and 'cur_archive_file_ofs'. rordenlab-dcm2niix-f6d7a00/console/miniz.c:4424:13: note: Same expression used in consecutive assignments of 'local_dir_header_ofs' and 'cur_archive_file_ofs'. rordenlab-dcm2niix-f6d7a00/console/miniz.c:2203:5: style: Unsigned expression '(1U<=0' is not redundant rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3752:18: note: Condition 'n<=-1' is always true rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:4195:6: style: Condition 'isReady' is always true [knownConditionTrueFalse] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:4193:6: note: Assuming that condition '!isReady' is not redundant rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:4195:6: note: Condition 'isReady' is always true rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3716:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:5468:4: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:7904:5: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:8142:3: warning: %d in format string (no. 21) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1970:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:2024:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:225:3: error: Resource leak: reader [resourceLeak] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:231:3: error: Memory leak: data [memleak] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:222:8: warning: If resource allocation fails, then there is a possible null pointer dereference: reader [nullPointerOutOfResources] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:221:22: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:221:22: note: Assignment 'reader=fopen(imgname,"rb")', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:222:8: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:223:20: warning: If resource allocation fails, then there is a possible null pointer dereference: reader [nullPointerOutOfResources] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:221:22: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:221:22: note: Assignment 'reader=fopen(imgname,"rb")', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:223:20: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:226:8: warning: If resource allocation fails, then there is a possible null pointer dereference: reader [nullPointerOutOfResources] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:221:22: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:221:22: note: Assignment 'reader=fopen(imgname,"rb")', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:224:11: note: Assuming condition is false rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:226:8: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:228:20: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:227:47: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:227:24: note: Assignment 'data=(unsigned char*)malloc(size)', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:228:20: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:228:35: warning: If resource allocation fails, then there is a possible null pointer dereference: reader [nullPointerOutOfResources] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:221:22: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:221:22: note: Assignment 'reader=fopen(imgname,"rb")', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:224:11: note: Assuming condition is false rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:228:35: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:229:9: warning: If resource allocation fails, then there is a possible null pointer dereference: reader [nullPointerOutOfResources] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:221:22: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:221:22: note: Assignment 'reader=fopen(imgname,"rb")', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:224:11: note: Assuming condition is false rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:229:9: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:234:6: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:227:47: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:227:24: note: Assignment 'data=(unsigned char*)malloc(size)', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:230:9: note: Assuming condition is false rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:234:6: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1059:2: warning: If memory allocation fails, then there is a possible null pointer dereference: cString [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1058:32: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1058:18: note: Assignment 'cString=(char*)malloc(sizeof(char)*(lLength+1))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1059:2: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1060:9: warning: If memory allocation fails, then there is a possible null pointer dereference: cString [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1058:32: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1058:18: note: Assignment 'cString=(char*)malloc(sizeof(char)*(lLength+1))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1060:9: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1116:6: warning: If memory allocation fails, then there is a possible null pointer dereference: cString [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1058:32: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1058:18: note: Assignment 'cString=(char*)malloc(sizeof(char)*(lLength+1))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1116:6: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1119:2: warning: If memory allocation fails, then there is a possible null pointer dereference: cString [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1058:32: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1058:18: note: Assignment 'cString=(char*)malloc(sizeof(char)*(lLength+1))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1119:2: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1128:15: warning: If memory allocation fails, then there is a possible null pointer dereference: cString [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1058:32: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1058:18: note: Assignment 'cString=(char*)malloc(sizeof(char)*(lLength+1))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1128:15: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1256:2: warning: If memory allocation fails, then there is a possible null pointer dereference: cString [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1255:32: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1255:18: note: Assignment 'cString=(char*)malloc(sizeof(char)*(lByteLength+1))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1256:2: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1257:9: warning: If memory allocation fails, then there is a possible null pointer dereference: cString [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1255:32: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1255:18: note: Assignment 'cString=(char*)malloc(sizeof(char)*(lByteLength+1))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1257:9: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1258:17: warning: If memory allocation fails, then there is a possible null pointer dereference: cString [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1255:32: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1255:18: note: Assignment 'cString=(char*)malloc(sizeof(char)*(lByteLength+1))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1258:17: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1272:2: warning: If memory allocation fails, then there is a possible null pointer dereference: cString [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1267:32: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1267:18: note: Assignment 'cString=(char*)malloc(sizeof(char)*(lByteLength+1))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1272:2: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1273:9: warning: If memory allocation fails, then there is a possible null pointer dereference: cString [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1267:32: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1267:18: note: Assignment 'cString=(char*)malloc(sizeof(char)*(lByteLength+1))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1273:9: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1274:15: warning: If memory allocation fails, then there is a possible null pointer dereference: cString [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1267:32: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1267:18: note: Assignment 'cString=(char*)malloc(sizeof(char)*(lByteLength+1))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1274:15: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1274:47: warning: If memory allocation fails, then there is a possible null pointer dereference: cString [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1267:32: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1267:18: note: Assignment 'cString=(char*)malloc(sizeof(char)*(lByteLength+1))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1274:47: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1276:15: warning: If memory allocation fails, then there is a possible null pointer dereference: cString [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1267:32: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1267:18: note: Assignment 'cString=(char*)malloc(sizeof(char)*(lByteLength+1))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1276:15: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1276:47: warning: If memory allocation fails, then there is a possible null pointer dereference: cString [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1267:32: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1267:18: note: Assignment 'cString=(char*)malloc(sizeof(char)*(lByteLength+1))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1276:47: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1278:15: warning: If memory allocation fails, then there is a possible null pointer dereference: cString [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1267:32: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1267:18: note: Assignment 'cString=(char*)malloc(sizeof(char)*(lByteLength+1))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1278:15: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1278:47: warning: If memory allocation fails, then there is a possible null pointer dereference: cString [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1267:32: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1267:18: note: Assignment 'cString=(char*)malloc(sizeof(char)*(lByteLength+1))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1278:47: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1280:15: warning: If memory allocation fails, then there is a possible null pointer dereference: cString [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1267:32: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1267:18: note: Assignment 'cString=(char*)malloc(sizeof(char)*(lByteLength+1))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1280:15: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1280:47: warning: If memory allocation fails, then there is a possible null pointer dereference: cString [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1267:32: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1267:18: note: Assignment 'cString=(char*)malloc(sizeof(char)*(lByteLength+1))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1280:47: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1316:2: warning: If memory allocation fails, then there is a possible null pointer dereference: Floats [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1536:41: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1536:26: note: Assignment 'sliceTimes=(float*)malloc(sizeof(float)*(tagCSA.nitems+1))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1537:48: note: Calling function 'csaMultiFloat', 3rd argument 'sliceTimes' value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1314:13: note: Assuming condition is false rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1316:2: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1326:11: warning: If memory allocation fails, then there is a possible null pointer dereference: cString [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1325:34: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1325:20: note: Assignment 'cString=(char*)malloc(sizeof(char)*itemCSA.xx2_Len)', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1326:11: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1329:29: warning: If memory allocation fails, then there is a possible null pointer dereference: cString [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1325:34: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1325:20: note: Assignment 'cString=(char*)malloc(sizeof(char)*itemCSA.xx2_Len)', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1329:29: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1348:10: warning: If memory allocation fails, then there is a possible null pointer dereference: cString [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1347:33: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1347:19: note: Assignment 'cString=(char*)malloc(sizeof(char)*itemCSA.xx2_Len)', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1348:10: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1350:12: warning: If memory allocation fails, then there is a possible null pointer dereference: cString [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1347:33: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1347:19: note: Assignment 'cString=(char*)malloc(sizeof(char)*itemCSA.xx2_Len)', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1350:12: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1375:11: warning: If memory allocation fails, then there is a possible null pointer dereference: cString [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1374:34: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1374:20: note: Assignment 'cString=(char*)malloc(sizeof(char)*(itemCSA.xx2_Len+1))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1375:11: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1378:15: warning: If memory allocation fails, then there is a possible null pointer dereference: cString [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1374:34: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1374:20: note: Assignment 'cString=(char*)malloc(sizeof(char)*(itemCSA.xx2_Len+1))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1378:15: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1541:29: warning: If memory allocation fails, then there is a possible null pointer dereference: sliceTimes [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1536:41: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1536:26: note: Assignment 'sliceTimes=(float*)malloc(sizeof(float)*(tagCSA.nitems+1))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1541:29: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1589:9: warning: If memory allocation fails, then there is a possible null pointer dereference: cString [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1588:32: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1588:18: note: Assignment 'cString=(char*)malloc(sizeof(char)*(lByteLength+1))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1589:9: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1590:2: warning: If memory allocation fails, then there is a possible null pointer dereference: cString [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1588:32: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1588:18: note: Assignment 'cString=(char*)malloc(sizeof(char)*(lByteLength+1))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1590:2: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1615:9: warning: If memory allocation fails, then there is a possible null pointer dereference: cString [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1614:32: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1614:18: note: Assignment 'cString=(char*)malloc(sizeof(char)*(lByteLength+1))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1615:9: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1616:2: warning: If memory allocation fails, then there is a possible null pointer dereference: cString [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1614:32: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1614:18: note: Assignment 'cString=(char*)malloc(sizeof(char)*(lByteLength+1))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1616:2: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1617:28: warning: If memory allocation fails, then there is a possible null pointer dereference: cString [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1614:32: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1614:18: note: Assignment 'cString=(char*)malloc(sizeof(char)*(lByteLength+1))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1617:28: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1624:9: warning: If memory allocation fails, then there is a possible null pointer dereference: cString [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1623:32: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1623:18: note: Assignment 'cString=(char*)malloc(sizeof(char)*(lByteLength+1))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1624:9: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1625:2: warning: If memory allocation fails, then there is a possible null pointer dereference: cString [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1623:32: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1623:18: note: Assignment 'cString=(char*)malloc(sizeof(char)*(lByteLength+1))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1625:2: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1626:26: warning: If memory allocation fails, then there is a possible null pointer dereference: cString [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1623:32: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1623:18: note: Assignment 'cString=(char*)malloc(sizeof(char)*(lByteLength+1))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1626:26: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1767:2: warning: If memory allocation fails, then there is a possible null pointer dereference: cString [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1766:32: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1766:18: note: Assignment 'cString=(char*)malloc(sizeof(char)*(lLength+1))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1767:2: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1768:9: warning: If memory allocation fails, then there is a possible null pointer dereference: cString [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1766:32: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1766:18: note: Assignment 'cString=(char*)malloc(sizeof(char)*(lLength+1))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1768:9: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1771:7: warning: If memory allocation fails, then there is a possible null pointer dereference: cString [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1766:32: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1766:18: note: Assignment 'cString=(char*)malloc(sizeof(char)*(lLength+1))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1771:7: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1819:8: warning: If memory allocation fails, then there is a possible null pointer dereference: cString [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1766:32: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1766:18: note: Assignment 'cString=(char*)malloc(sizeof(char)*(lLength+1))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1819:8: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1819:28: warning: If memory allocation fails, then there is a possible null pointer dereference: cString [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1766:32: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1766:18: note: Assignment 'cString=(char*)malloc(sizeof(char)*(lLength+1))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1819:28: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1819:51: warning: If memory allocation fails, then there is a possible null pointer dereference: cString [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1766:32: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1766:18: note: Assignment 'cString=(char*)malloc(sizeof(char)*(lLength+1))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1819:51: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1819:74: warning: If memory allocation fails, then there is a possible null pointer dereference: cString [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1766:32: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1766:18: note: Assignment 'cString=(char*)malloc(sizeof(char)*(lLength+1))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1819:74: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1819:97: warning: If memory allocation fails, then there is a possible null pointer dereference: cString [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1766:32: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1766:18: note: Assignment 'cString=(char*)malloc(sizeof(char)*(lLength+1))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1819:97: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1819:121: warning: If memory allocation fails, then there is a possible null pointer dereference: cString [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1766:32: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1766:18: note: Assignment 'cString=(char*)malloc(sizeof(char)*(lLength+1))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1819:121: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1819:144: warning: If memory allocation fails, then there is a possible null pointer dereference: cString [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1766:32: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1766:18: note: Assignment 'cString=(char*)malloc(sizeof(char)*(lLength+1))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1819:144: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1819:167: warning: If memory allocation fails, then there is a possible null pointer dereference: cString [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1766:32: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1766:18: note: Assignment 'cString=(char*)malloc(sizeof(char)*(lLength+1))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1819:167: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1819:188: warning: If memory allocation fails, then there is a possible null pointer dereference: cString [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1766:32: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1766:18: note: Assignment 'cString=(char*)malloc(sizeof(char)*(lLength+1))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1819:188: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1819:210: warning: If memory allocation fails, then there is a possible null pointer dereference: cString [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1766:32: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1766:18: note: Assignment 'cString=(char*)malloc(sizeof(char)*(lLength+1))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1819:210: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1819:232: warning: If memory allocation fails, then there is a possible null pointer dereference: cString [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1766:32: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1766:18: note: Assignment 'cString=(char*)malloc(sizeof(char)*(lLength+1))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1819:232: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:2862:11: warning: If memory allocation fails, then there is a possible null pointer dereference: line [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:2854:47: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:2854:24: note: Assignment 'line=(unsigned char*)malloc(sizeof(unsigned char)*(lineBytes))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:2862:11: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:2864:25: warning: If memory allocation fails, then there is a possible null pointer dereference: line [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:2854:47: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:2854:24: note: Assignment 'line=(unsigned char*)malloc(sizeof(unsigned char)*(lineBytes))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:2864:25: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:2890:11: warning: If memory allocation fails, then there is a possible null pointer dereference: slice [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:2884:48: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:2884:25: note: Assignment 'slice=(unsigned char*)malloc(sizeof(unsigned char)*(sliceBytes))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:2890:11: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:2892:25: warning: If memory allocation fails, then there is a possible null pointer dereference: slice [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:2884:48: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:2884:25: note: Assignment 'slice=(unsigned char*)malloc(sizeof(unsigned char)*(sliceBytes))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:2892:25: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3014:20: warning: If memory allocation fails, then there is a possible null pointer dereference: bImg [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3010:47: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3010:24: note: Assignment 'bImg=(unsigned char*)malloc(imgsz)', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3014:20: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3113:10: warning: If memory allocation fails, then there is a possible null pointer dereference: slice24 [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3109:50: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3109:27: note: Assignment 'slice24=(unsigned char*)malloc(sizeof(unsigned char)*(sliceBytes24))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3113:10: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3119:29: warning: If memory allocation fails, then there is a possible null pointer dereference: slice24 [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3109:50: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3109:27: note: Assignment 'slice24=(unsigned char*)malloc(sizeof(unsigned char)*(sliceBytes24))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3119:29: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3120:29: warning: If memory allocation fails, then there is a possible null pointer dereference: slice24 [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3109:50: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3109:27: note: Assignment 'slice24=(unsigned char*)malloc(sizeof(unsigned char)*(sliceBytes24))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3120:29: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3121:29: warning: If memory allocation fails, then there is a possible null pointer dereference: slice24 [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3109:50: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3109:27: note: Assignment 'slice24=(unsigned char*)malloc(sizeof(unsigned char)*(sliceBytes24))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3121:29: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3395:8: warning: If resource allocation fails, then there is a possible null pointer dereference: reader [nullPointerOutOfResources] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3394:22: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3394:22: note: Assignment 'reader=fopen(fn,"rb")', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3395:8: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3396:22: warning: If resource allocation fails, then there is a possible null pointer dereference: reader [nullPointerOutOfResources] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3394:22: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3394:22: note: Assignment 'reader=fopen(fn,"rb")', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3396:22: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3401:8: warning: If resource allocation fails, then there is a possible null pointer dereference: reader [nullPointerOutOfResources] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3394:22: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3394:22: note: Assignment 'reader=fopen(fn,"rb")', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3397:13: note: Assuming condition is false rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3401:8: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3403:21: warning: If memory allocation fails, then there is a possible null pointer dereference: lRawRA [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3402:49: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3402:26: note: Assignment 'lRawRA=(unsigned char*)malloc(lRawSz)', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3403:21: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3403:40: warning: If resource allocation fails, then there is a possible null pointer dereference: reader [nullPointerOutOfResources] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3394:22: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3394:22: note: Assignment 'reader=fopen(fn,"rb")', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3397:13: note: Assuming condition is false rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3403:40: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3404:9: warning: If resource allocation fails, then there is a possible null pointer dereference: reader [nullPointerOutOfResources] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3394:22: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3394:22: note: Assignment 'reader=fopen(fn,"rb")', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3397:13: note: Assuming condition is false rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3404:9: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3561:8: warning: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3558:17: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3558:17: note: Assignment 'f=fopen(imgname,"rb")', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3561:8: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3562:20: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3560:28: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3560:14: note: Assignment 'buf=(char*)malloc(size)', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3562:20: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3562:34: warning: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3558:17: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3558:17: note: Assignment 'f=fopen(imgname,"rb")', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3562:34: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3563:9: warning: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3558:17: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3558:17: note: Assignment 'f=fopen(imgname,"rb")', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3563:9: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3572:9: warning: If memory allocation fails, then there is a possible null pointer dereference: bImg [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3571:47: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3571:24: note: Assignment 'bImg=(unsigned char*)malloc(njGetImageSize())', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3572:9: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3622:20: warning: If memory allocation fails, then there is a possible null pointer dereference: cImg [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3621:29: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3621:15: note: Assignment 'cImg=(char*)malloc(dcm.imageBytes)', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3622:20: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3661:7: warning: If memory allocation fails, then there is a possible null pointer dereference: tImg [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3634:29: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3634:15: note: Assignment 'tImg=(char*)malloc(imgsz)', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3661:7: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3704:20: warning: If memory allocation fails, then there is a possible null pointer dereference: cImg [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3703:47: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3703:24: note: Assignment 'cImg=(unsigned char*)malloc(dcm.imageBytes)', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3704:20: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3722:3: warning: If memory allocation fails, then there is a possible null pointer dereference: bImg [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3720:47: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3720:24: note: Assignment 'bImg=(unsigned char*)malloc(imgsz)', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3722:3: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:109:23: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:227:24: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1058:18: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1060:18: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1190:15: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1212:15: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1255:18: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1257:18: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1267:18: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1273:18: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1325:20: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1347:19: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1374:20: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1536:26: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1588:18: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1589:18: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1591:15: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1614:18: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1615:18: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1623:18: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1624:18: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1766:18: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1768:18: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1954:16: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:2824:26: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:2854:24: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:2884:25: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3010:24: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3039:27: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3109:27: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3141:17: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3143:20: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3197:26: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3219:13: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3393:21: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3402:26: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3468:25: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3560:14: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3571:24: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3581:18: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3621:15: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3632:24: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3634:15: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3703:24: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3720:24: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3941:24: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3943:33: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:4092:14: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:4094:11: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:4321:20: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:4322:20: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:4332:31: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:4333:31: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:4345:31: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:4346:31: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:4443:26: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:4961:20: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:5508:33: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:6205:27: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:6330:31: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:6334:28: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:6342:27: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:6484:27: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:6556:28: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:6850:26: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:6931:27: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:7028:27: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:7432:27: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:7524:16: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:7538:27: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:7549:38: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:7551:35: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:7611:27: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:7659:27: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:7712:28: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:7717:28: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:7728:27: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:8157:19: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:8215:19: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:8448:31: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:8466:30: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:8474:16: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:8484:23: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:8509:30: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:8595:68: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:8603:27: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:8704:25: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:110:22: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:111:20: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1568:22: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1578:21: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3147:23: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3151:21: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3155:21: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3182:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3585:16: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3586:17: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3659:27: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3182:9: portability:inconclusive: Casting from float * to unsigned char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:2538:17: style: The comparison 'maxBValue <= 0.0f' is always true. [knownConditionTrueFalse] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1925:21: note: 'maxBValue' is assigned value '0.0f' here. rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:2538:17: note: The comparison 'maxBValue <= 0.0f' is always true. rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:6021:37: style: Same expression on both sides of '&&'. [duplicateExpression] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1725:17: style: Variable 'h->intent_code' is reassigned a value before the old one has been used. [redundantAssignment] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1644:18: note: h->intent_code is assigned rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1725:17: note: h->intent_code is overwritten rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:2731:27: style: Variable 'd.locationsInAcquisition' is reassigned a value before the old one has been used. [redundantAssignment] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:2574:27: note: d.locationsInAcquisition is assigned rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:2731:27: note: d.locationsInAcquisition is overwritten rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3744:13: style: The scope of the variable 'v' can be reduced. [variableScope] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:7525:8: style: The scope of the variable 'epi_chk_off' can be reduced. [variableScope] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:5316:98: style: Checking if unsigned expression 'lLength' is less than zero. [unsignedLessThanZero] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3472:19: style: Local variable 'ret' shadows outer variable [shadowVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3453:17: note: Shadowed declaration rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3472:19: note: Shadow variable rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:4981:11: style: Local variable 'sz' shadows outer variable [shadowVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:4450:9: note: Shadowed declaration rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:4981:11: note: Shadow variable rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:212:77: performance: Function parameter 'hdr' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:212:100: performance: Function parameter 'dcm' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:304:40: performance: Function parameter 'd' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:304:61: performance: Function parameter 'd2' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:378:19: performance: Function parameter 'Q44' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:591:63: performance: Function parameter 'd2' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:658:63: performance: Function parameter 'd2' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1744:38: performance: Function parameter 'm' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:2784:45: performance: Function parameter 'hdr' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:2947:62: performance: Function parameter 'hdr' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:2960:63: performance: Function parameter 'hdr' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:2980:69: performance: Function parameter 'hdr' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3437:71: performance: Function parameter 'hdr' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3437:94: performance: Function parameter 'dcm' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3546:67: performance: Function parameter 'dcm' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3594:75: performance: Function parameter 'hdr' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3594:98: performance: Function parameter 'dcm' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3683:68: performance: Function parameter 'hdr' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3683:91: performance: Function parameter 'dcm' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:123:8: style: Variable 'v' can be declared as pointer to const [constVariablePointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:151:34: style: Parameter 'p_user_data' can be declared as pointer to const. However it seems that 'my_stream_free' is a callback function, if 'p_user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:203:45: note: You might need to cast the function pointer here rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:151:34: note: Parameter 'p_user_data' can be declared as pointer to const rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:169:47: style: Parameter 'p_buffer' can be declared as pointer to const. However it seems that 'opj_write_from_buffer' is a callback function, if 'p_buffer' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:206:63: note: You might need to cast the function pointer here rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:169:47: note: Parameter 'p_buffer' can be declared as pointer to const rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:212:46: style: Parameter 'imgname' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1039:35: style: Parameter 'ptr' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1055:40: style: Parameter 'lBuffer' can be declared as const array [constParameter] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1180:47: style: Parameter 'lBuffer' can be declared as const array [constParameter] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1228:49: style: Parameter 'lBuffer' can be declared as const array [constParameter] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1235:43: style: Parameter 'lBuffer' can be declared as const array [constParameter] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1246:40: style: Parameter 'lBuffer' can be declared as const array [constParameter] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1263:61: style: Parameter 'lBuffer' can be declared as const array [constParameter] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1309:35: style: Parameter 'buff' can be declared as const array [constParameter] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1337:30: style: Parameter 'buff' can be declared as const array [constParameter] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1361:34: style: Parameter 'buff' can be declared as const array [constParameter] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1564:52: style: Parameter 'lBuffer' can be declared as const array [constParameter] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1574:51: style: Parameter 'lBuffer' can be declared as const array [constParameter] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1584:42: style: Parameter 'lBuffer' can be declared as const array [constParameter] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1754:22: style: Parameter 'file_name' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:2980:38: style: Parameter 'imgname' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3044:18: style: Variable 'r' can be declared as pointer to const [constVariablePointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3045:18: style: Variable 'g' can be declared as pointer to const [constVariablePointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3046:18: style: Variable 'b' can be declared as pointer to const [constVariablePointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3143:12: style: Variable 'img8i' can be declared as pointer to const [constVariablePointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3147:13: style: Variable 'img16ui' can be declared as pointer to const [constVariablePointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3151:12: style: Variable 'img16i' can be declared as pointer to const [constVariablePointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3155:12: style: Variable 'img32i' can be declared as pointer to const [constVariablePointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3215:72: style: Parameter 'hdr' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3437:40: style: Parameter 'imgname' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3546:40: style: Parameter 'imgname' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3579:43: style: Parameter 'lBuffer' can be declared as const array [constParameter] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3585:8: style: Variable 'inInt' can be declared as pointer to const [constVariablePointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3594:44: style: Parameter 'imgname' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3683:37: style: Parameter 'imgname' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3974:11: style: Variable 'array' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:4088:80: style: Parameter 'inbuf' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:4321:15: style: Variable 'a1' can be declared as pointer to const [constVariablePointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:4322:15: style: Variable 'a2' can be declared as pointer to const [constVariablePointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:4356:61: style: Parameter 'prefs' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:6547:16: style: Variable 'echoStr' can be declared as pointer to const [constVariablePointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:6573:10: style: Variable 'pch' can be declared as pointer to const [constVariablePointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:6906:11: style: Variable 'pPosition' can be declared as pointer to const [constVariablePointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:4788:29: error: Signed integer overflow for expression '0xFFFE+(0xE000<<16)'. [integerOverflow] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:4789:41: error: Signed integer overflow for expression '0xFFFE+(0xE00D<<16)'. [integerOverflow] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:4790:49: error: Signed integer overflow for expression '0xFFFE+(0xE0DD<<16)'. [integerOverflow] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:1349:8: style: Variable 'lPos' is assigned a value that is never used. [unreadVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:2326:13: style: Variable 'volStep' is assigned a value that is never used. [unreadVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:4573:17: style: Variable 'kEffectiveTE' is assigned a value that is never used. [unreadVariable] rordenlab-dcm2niix-f6d7a00/console/tinydir.h:112:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/tinydir.h:181:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/tinydir.h:243:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/tinydir.h:275:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/tinydir.h:359:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/tinydir.h:376:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:327:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLT_EPSILON [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:420:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLT_EPSILON [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:578:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:665:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:866:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1504:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_DEID_CS [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2617:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kMaxSlice2D [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3293:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kMaxDTI4D [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3423:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLT_EPSILON [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3696:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4533:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4647:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:5758:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6611:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kMaxEPI3D [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6768:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kMaxEPI3D [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6809:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kMaxEPI3D [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6948:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kMaxEPI3D [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6994:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:7772:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kMaxEPI3D [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:7799:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kMaxEPI3D [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:7836:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kMaxEPI3D [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:7875:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kMaxEPI3D [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:7978:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kMaxEPI3D [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8030:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8276:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kMaxDTI4D [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8943:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9093:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NUMBER_OF_DIMENSIONS [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9137:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NUMBER_OF_DIMENSIONS [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9390:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9488:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NUMBER_OF_DIMENSIONS [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9509:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NUMBER_OF_DIMENSIONS [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9549:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9713:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9812:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:10170:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:10187:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:10453:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kCompressYes [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:0:0: debug: ValueFlow maximum iterations exceeded [valueFlowMaxIterations] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4316:8: error: Invalid fputc() argument nr 1. The value is -117 but the valid values are '0:'. [invalidFunctionArg] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4324:8: error: Invalid fputc() argument nr 1. The value is -1 but the valid values are '0:'. [invalidFunctionArg] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4471:8: error: Invalid fputc() argument nr 1. The value is -117 but the valid values are '0:'. [invalidFunctionArg] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4479:8: error: Invalid fputc() argument nr 1. The value is -1 but the valid values are '0:'. [invalidFunctionArg] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2130:18: style: The if condition is the same as the previous if condition [duplicateCondition] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2128:18: note: First condition rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2130:18: note: Second condition rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6833:32: style: Condition 'isInterleaved' is always true [knownConditionTrueFalse] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6822:6: note: Assuming that condition '!isInterleaved' is not redundant rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6833:32: note: Condition 'isInterleaved' is always true rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8942:27: style: Condition 'dcmList[indx].xyzDim[4]' is always true [knownConditionTrueFalse] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8940:69: note: Assuming that condition 'dcmList[indx].xyzDim[4]<2' is not redundant rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8942:27: note: Condition 'dcmList[indx].xyzDim[4]' is always true rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9769:21: style: Condition 'newProgressPct!=progressPct' is always true [knownConditionTrueFalse] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:480:2: warning: %d in format string (no. 21) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1112:3: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:10575:9: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1016:3: error: Resource leak: pFile [resourceLeak] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1019:3: error: Resource leak: pFile [resourceLeak] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1019:3: error: Memory leak: pCmp [memleak] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1024:3: error: Resource leak: pFile [resourceLeak] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1024:3: error: Memory leak: pCmp [memleak] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1026:3: error: Resource leak: pFile [resourceLeak] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1026:3: error: Memory leak: pCmp [memleak] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9802:4: error: Memory leak: nameList.str [memleak] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:480:10: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:479:18: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:479:18: note: Assignment 'fp=fopen(txtname,"w")', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:480:10: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:485:9: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:479:18: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:479:18: note: Assignment 'fp=fopen(txtname,"w")', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:485:9: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1076:7: warning: If memory allocation fails, then there is a possible null pointer dereference: pUnCmp [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1051:37: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1051:20: note: Assignment 'pUnCmp=(uint8_t*)malloc((unsigned long)unCmpSz)', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1066:10: note: Assuming condition is false rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1076:7: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2516:2: warning: If memory allocation fails, then there is a possible null pointer dereference: dti4D [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2515:48: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2515:25: note: Assignment 'dti4D=(struct TDTI4D*)malloc(sizeof(struct TDTI4D))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2516:2: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2517:2: warning: If memory allocation fails, then there is a possible null pointer dereference: dti4D [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2515:48: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2515:25: note: Assignment 'dti4D=(struct TDTI4D*)malloc(sizeof(struct TDTI4D))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2517:2: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2518:2: warning: If memory allocation fails, then there is a possible null pointer dereference: dti4D [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2515:48: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2515:25: note: Assignment 'dti4D=(struct TDTI4D*)malloc(sizeof(struct TDTI4D))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2518:2: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2519:2: warning: If memory allocation fails, then there is a possible null pointer dereference: dti4D [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2515:48: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2515:25: note: Assignment 'dti4D=(struct TDTI4D*)malloc(sizeof(struct TDTI4D))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2519:2: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2520:2: warning: If memory allocation fails, then there is a possible null pointer dereference: dti4D [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2515:48: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2515:25: note: Assignment 'dti4D=(struct TDTI4D*)malloc(sizeof(struct TDTI4D))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2520:2: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2521:2: warning: If memory allocation fails, then there is a possible null pointer dereference: dti4D [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2515:48: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2515:25: note: Assignment 'dti4D=(struct TDTI4D*)malloc(sizeof(struct TDTI4D))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2521:2: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2522:2: warning: If memory allocation fails, then there is a possible null pointer dereference: dti4D [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2515:48: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2515:25: note: Assignment 'dti4D=(struct TDTI4D*)malloc(sizeof(struct TDTI4D))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2522:2: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2572:3: warning: If memory allocation fails, then there is a possible null pointer dereference: inPos [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2570:28: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2570:15: note: Assignment 'inPos=(int*)malloc(numVol*sizeof(int))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2572:3: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2575:11: warning: If memory allocation fails, then there is a possible null pointer dereference: inPos [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2570:28: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2570:15: note: Assignment 'inPos=(int*)malloc(numVol*sizeof(int))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2575:11: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2581:3: warning: If memory allocation fails, then there is a possible null pointer dereference: inPos [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2570:28: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2570:15: note: Assignment 'inPos=(int*)malloc(numVol*sizeof(int))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2576:9: note: Assuming condition is false rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2581:3: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2674:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2672:19: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2672:19: note: Assignment 'fp=fopen(txtname,"w")', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2674:12: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2675:11: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2672:19: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2672:19: note: Assignment 'fp=fopen(txtname,"w")', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2675:11: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2676:10: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2672:19: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2672:19: note: Assignment 'fp=fopen(txtname,"w")', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2676:10: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2683:13: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2680:13: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2680:13: note: Assignment 'fp=fopen(txtname,"w")', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2683:13: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2684:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2680:13: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2680:13: note: Assignment 'fp=fopen(txtname,"w")', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2684:12: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2686:10: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2680:13: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2680:13: note: Assignment 'fp=fopen(txtname,"w")', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2686:10: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2699:5: warning: If memory allocation fails, then there is a possible null pointer dereference: vx [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2696:22: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2696:8: note: Assignment 'vx=(TDTI*)malloc(numDti*sizeof(TDTI))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2699:5: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2716:7: warning: If memory allocation fails, then there is a possible null pointer dereference: vx [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2696:22: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2696:8: note: Assignment 'vx=(TDTI*)malloc(numDti*sizeof(TDTI))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2716:7: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2716:21: warning: If memory allocation fails, then there is a possible null pointer dereference: vx [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2696:22: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2696:8: note: Assignment 'vx=(TDTI*)malloc(numDti*sizeof(TDTI))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2716:21: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2719:18: warning: If memory allocation fails, then there is a possible null pointer dereference: vx [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2702:22: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2702:8: note: Assignment 'vx=(TDTI*)malloc(nConvert*sizeof(TDTI))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2719:18: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2858:3: warning: If memory allocation fails, then there is a possible null pointer dereference: volOrderIndex [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2856:36: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2856:23: note: Assignment 'volOrderIndex=(int*)malloc(numDti*sizeof(int))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2858:3: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2874:3: warning: If memory allocation fails, then there is a possible null pointer dereference: vxOrig [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2872:31: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2872:17: note: Assignment 'vxOrig=(TDTI*)malloc(numDti*sizeof(TDTI))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2874:3: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2880:3: warning: If memory allocation fails, then there is a possible null pointer dereference: vx [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2878:21: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2878:7: note: Assignment 'vx=(TDTI*)malloc(numDti*sizeof(TDTI))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2880:3: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2880:11: warning: If memory allocation fails, then there is a possible null pointer dereference: vxOrig [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2872:31: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2872:17: note: Assignment 'vxOrig=(TDTI*)malloc(numDti*sizeof(TDTI))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2880:11: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2880:18: warning: If memory allocation fails, then there is a possible null pointer dereference: volOrderIndex [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2856:36: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2856:23: note: Assignment 'volOrderIndex=(int*)malloc(numDti*sizeof(int))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2880:18: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3384:3: warning: If memory allocation fails, then there is a possible null pointer dereference: dcmSortIn [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3382:42: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3382:24: note: Assignment 'dcmSortIn=(TDCMsort*)malloc(nConvert*sizeof(TDCMsort))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3384:3: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3387:16: warning: If memory allocation fails, then there is a possible null pointer dereference: dcmSortIn [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3382:42: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3382:24: note: Assignment 'dcmSortIn=(TDCMsort*)malloc(nConvert*sizeof(TDCMsort))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3387:16: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3398:3: warning: If memory allocation fails, then there is a possible null pointer dereference: dcmSortIn [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3396:42: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3396:24: note: Assignment 'dcmSortIn=(TDCMsort*)malloc(nConvert*sizeof(TDCMsort))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3398:3: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3404:17: warning: If memory allocation fails, then there is a possible null pointer dereference: dcmSortIn [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3396:42: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3396:24: note: Assignment 'dcmSortIn=(TDCMsort*)malloc(nConvert*sizeof(TDCMsort))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3404:17: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3655:11: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3649:19: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3649:19: note: Assignment 'fp=fopen(fnm,"w")', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3655:11: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3656:11: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3649:19: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3649:19: note: Assignment 'fp=fopen(fnm,"w")', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3656:11: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3657:10: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3649:19: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3649:19: note: Assignment 'fp=fopen(fnm,"w")', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3657:10: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3665:10: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3661:19: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3661:19: note: Assignment 'fp=fopen(descfnm,"w")', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3665:10: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3675:10: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3671:19: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3671:19: note: Assignment 'fp=fopen(taskfnm,"w")', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3675:10: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4283:3: warning: If memory allocation fails, then there is a possible null pointer dereference: pHdr [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4282:33: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4282:10: note: Assignment 'pHdr=(unsigned char*)malloc(hdrPadBytes)', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4283:3: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4284:3: warning: If memory allocation fails, then there is a possible null pointer dereference: pHdr [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4282:33: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4282:10: note: Assignment 'pHdr=(unsigned char*)malloc(hdrPadBytes)', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4284:3: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4285:3: warning: If memory allocation fails, then there is a possible null pointer dereference: pHdr [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4282:33: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4282:10: note: Assignment 'pHdr=(unsigned char*)malloc(hdrPadBytes)', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4285:3: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4286:3: warning: If memory allocation fails, then there is a possible null pointer dereference: pHdr [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4282:33: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4282:10: note: Assignment 'pHdr=(unsigned char*)malloc(hdrPadBytes)', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4286:3: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4287:10: warning: If memory allocation fails, then there is a possible null pointer dereference: pHdr [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4282:33: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4282:10: note: Assignment 'pHdr=(unsigned char*)malloc(hdrPadBytes)', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4287:10: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4617:10: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4616:18: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4616:18: note: Assignment 'fp=fopen(fname,"wb")', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4617:10: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4618:10: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4616:18: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4616:18: note: Assignment 'fp=fopen(fname,"wb")', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4618:10: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4619:10: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4616:18: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4616:18: note: Assignment 'fp=fopen(fname,"wb")', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4619:10: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4620:10: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4616:18: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4616:18: note: Assignment 'fp=fopen(fname,"wb")', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4620:10: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4861:27: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4860:12: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4860:12: note: Assignment 'fp=fopen(fname,"wb")', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4861:27: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4862:9: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4860:12: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4860:12: note: Assignment 'fp=fopen(fname,"wb")', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4862:9: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:5886:3: warning: If memory allocation fails, then there is a possible null pointer dereference: imOut32 [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:5883:48: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:5883:25: note: Assignment 'imOut=(unsigned char*)malloc(nVox*4)', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:5884:17: note: imOut32 is assigned '(float*)imOut' here. rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:5886:3: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6470:12: warning: If memory allocation fails, then there is a possible null pointer dereference: src [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6466:32: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6466:16: note: Assignment 'src=(double*)malloc(sizeof(double)*num)', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6470:12: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6470:34: warning: If memory allocation fails, then there is a possible null pointer dereference: src [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6466:32: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6466:16: note: Assignment 'src=(double*)malloc(sizeof(double)*num)', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6470:34: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6470:56: warning: If memory allocation fails, then there is a possible null pointer dereference: src [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6466:32: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6466:16: note: Assignment 'src=(double*)malloc(sizeof(double)*num)', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6470:56: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6494:3: warning: If memory allocation fails, then there is a possible null pointer dereference: sliceSums [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6491:38: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6491:22: note: Assignment 'sliceSums=(double*)malloc(sizeof(double)*slices)', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6494:3: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6502:7: warning: If memory allocation fails, then there is a possible null pointer dereference: sliceSums [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6491:38: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6491:22: note: Assignment 'sliceSums=(double*)malloc(sizeof(double)*slices)', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6502:7: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6917:2: warning: If memory allocation fails, then there is a possible null pointer dereference: versionString [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6916:38: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6916:24: note: Assignment 'versionString=(char*)malloc(sizeof(char)*len)', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6917:2: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6918:9: warning: If memory allocation fails, then there is a possible null pointer dereference: versionString [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6916:38: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6916:24: note: Assignment 'versionString=(char*)malloc(sizeof(char)*len)', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6918:9: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8041:20: warning: If memory allocation fails, then there is a possible null pointer dereference: bImg [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8040:47: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8040:24: note: Assignment 'bImg=(unsigned char*)malloc(imgszRead)', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8041:20: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8939:18: warning: If memory allocation fails, then there is a possible null pointer dereference: dcmSort [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:10096:41: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:10096:23: note: Assignment 'dcmSort=(TDCMsort*)malloc(nConvert*sizeof(TDCMsort))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:10104:35: note: Calling function 'saveDcm2Nii', 2nd argument 'dcmSort' value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8939:18: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8940:8: warning: If memory allocation fails, then there is a possible null pointer dereference: dcmList [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9393:58: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9393:31: note: Assignment 'dcmList=(struct TDICOMdata*)malloc(sizeof(struct TDICOMdata))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9411:36: note: Calling function 'saveDcm2Nii', 3rd argument 'dcmList' value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8940:8: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8940:45: warning: If memory allocation fails, then there is a possible null pointer dereference: dcmList [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9393:58: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9393:31: note: Assignment 'dcmList=(struct TDICOMdata*)malloc(sizeof(struct TDICOMdata))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9411:36: note: Calling function 'saveDcm2Nii', 3rd argument 'dcmList' value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8940:45: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8942:7: warning: If memory allocation fails, then there is a possible null pointer dereference: dcmList [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9393:58: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9393:31: note: Assignment 'dcmList=(struct TDICOMdata*)malloc(sizeof(struct TDICOMdata))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9411:36: note: Calling function 'saveDcm2Nii', 3rd argument 'dcmList' value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8940:41: note: Assuming condition is false rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8942:7: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8942:36: warning: If memory allocation fails, then there is a possible null pointer dereference: dti4D [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9394:48: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9394:25: note: Assignment 'dti4D=(struct TDTI4D*)malloc(sizeof(struct TDTI4D))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9411:63: note: Calling function 'saveDcm2Nii', 6th argument 'dti4D' value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8940:41: note: Assuming condition is false rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8942:36: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8957:3: warning: If memory allocation fails, then there is a possible null pointer dereference: echoNum [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8954:30: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8954:17: note: Assignment 'echoNum=(int*)malloc(nVol*sizeof(int))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8957:3: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8958:2: warning: If memory allocation fails, then there is a possible null pointer dereference: echoNum [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8954:30: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8954:17: note: Assignment 'echoNum=(int*)malloc(nVol*sizeof(int))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8958:2: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9405:2: warning: If memory allocation fails, then there is a possible null pointer dereference: dcmList [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9393:58: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9393:31: note: Assignment 'dcmList=(struct TDICOMdata*)malloc(sizeof(struct TDICOMdata))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9405:2: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9406:2: warning: If memory allocation fails, then there is a possible null pointer dereference: dcmList [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9393:58: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9393:31: note: Assignment 'dcmList=(struct TDICOMdata*)malloc(sizeof(struct TDICOMdata))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9406:2: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9410:15: warning: If memory allocation fails, then there is a possible null pointer dereference: dcmSort [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9404:40: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9404:22: note: Assignment 'dcmSort=(TDCMsort*)malloc(sizeof(TDCMsort))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9410:15: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9410:30: warning: If memory allocation fails, then there is a possible null pointer dereference: dcmList [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9393:58: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9393:31: note: Assignment 'dcmList=(struct TDICOMdata*)malloc(sizeof(struct TDICOMdata))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9410:30: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9531:2: warning: If memory allocation fails, then there is a possible null pointer dereference: dcmList [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9525:58: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9525:31: note: Assignment 'dcmList=(struct TDICOMdata*)malloc(nameList.numItems*sizeof(struct TDICOMdata))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9531:2: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9534:6: warning: If memory allocation fails, then there is a possible null pointer dereference: dcmList [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9525:58: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9525:31: note: Assignment 'dcmList=(struct TDICOMdata*)malloc(nameList.numItems*sizeof(struct TDICOMdata))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9534:6: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9892:3: warning: If memory allocation fails, then there is a possible null pointer dereference: dcmList [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9870:58: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9870:31: note: Assignment 'dcmList=(struct TDICOMdata*)malloc(nameList.numItems*sizeof(struct TDICOMdata))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9882:40: note: Assuming condition is false rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9892:3: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:10022:16: warning: If memory allocation fails, then there is a possible null pointer dereference: crcSort [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:10020:40: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:10020:22: note: Assignment 'crcSort=(TCRCsort*)malloc(nDcm*sizeof(TCRCsort))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:10022:16: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:10023:8: warning: If memory allocation fails, then there is a possible null pointer dereference: crcSort [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:10020:40: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:10020:22: note: Assignment 'crcSort=(TCRCsort*)malloc(nDcm*sizeof(TCRCsort))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:10023:8: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:10026:12: warning: If memory allocation fails, then there is a possible null pointer dereference: crcSort [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:10020:40: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:10020:22: note: Assignment 'crcSort=(TCRCsort*)malloc(nDcm*sizeof(TCRCsort))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:10026:12: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:10098:17: warning: If memory allocation fails, then there is a possible null pointer dereference: dcmSort [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:10096:41: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:10096:23: note: Assignment 'dcmSort=(TDCMsort*)malloc(nConvert*sizeof(TDCMsort))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:10098:17: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:10099:9: warning: If memory allocation fails, then there is a possible null pointer dereference: dcmSort [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:10096:41: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:10096:23: note: Assignment 'dcmSort=(TDCMsort*)malloc(nConvert*sizeof(TDCMsort))', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:10099:9: note: Null pointer dereference rordenlab-dcm2niix-f6d7a00/console/miniz.c:1047:11: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:1198:13: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:1577:64: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:1590:64: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:1715:53: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:1715:109: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:1715:133: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:1738:38: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:1738:79: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:1738:100: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:1746:21: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:1753:53: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:2174:135: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:2245:40: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:2252:14: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:2625:38: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:2631:12: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:2653:15: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:2685:56: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:2685:95: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:2735:11: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:2750:28: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:2756:16: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:2759:10: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:2776:20: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:2812:29: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:2814:135: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:2819:111: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:2828:84: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3032:10: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3104:33: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3115:25: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3116:25: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3117:19: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3117:75: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3193:11: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3207:8: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3208:31: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3208:91: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3211:19: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3212:21: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3216:20: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3219:14: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3244:9: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3248:52: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3250:100: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3253:19: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3254:21: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3255:14: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3257:20: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3260:23: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3262:65: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3262:113: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3262:158: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3291:26: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3293:16: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3321:26: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3376:16: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3388:18: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3398:19: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3415:30: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3416:29: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3417:23: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3418:21: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3420:40: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3420:84: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3422:20: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3423:24: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3424:26: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3425:28: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3426:28: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3427:31: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3430:7: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3433:7: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3435:65: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3435:113: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3445:7: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3468:25: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3469:19: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3516:28: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3517:29: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3522:32: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3522:101: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3585:7: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3588:50: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3588:110: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3597:85: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3606:17: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3615:17: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3652:42: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3652:94: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3652:112: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3661:78: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3700:15: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3701:17: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3766:7: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3769:50: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3769:110: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3776:17: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3803:54: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3822:56: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3846:36: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3862:46: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3862:104: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3910:43: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4001:33: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4012:26: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4029:10: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4055:26: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4157:37: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4169:3: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4170:3: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4171:3: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4172:3: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4173:3: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4174:3: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4175:3: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4176:3: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4177:3: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4178:3: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4179:3: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4187:3: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4188:3: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4189:3: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4190:3: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4191:3: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4192:3: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4193:3: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4194:3: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4195:3: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4196:3: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4197:3: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4198:3: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4199:3: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4200:3: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4330:26: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4353:55: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4507:58: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4517:33: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4545:58: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4621:22: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4626:7: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4640:7: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4640:67: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4641:30: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4666:15: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4676:31: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4696:3: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4700:7: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4700:73: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4700:136: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4752:3: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4753:3: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4754:3: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4755:3: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4756:3: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/tinydir.h:179:16: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/tinydir.h:395:27: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/tinydir.h:396:27: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:548:17: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:563:17: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:576:17: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:597:17: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:620:17: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:746:17: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:754:48: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:764:17: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:774:21: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:869:20: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:882:22: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:897:16: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:900:17: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1014:18: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1051:20: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1055:15: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1079:36: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1081:33: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1083:31: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1085:31: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1088:27: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1090:39: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1093:25: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1095:25: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1098:33: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1149:24: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1498:17: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1501:25: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2515:25: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2570:15: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2573:27: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2592:12: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2593:12: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2696:8: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2702:8: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2787:10: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2856:23: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2872:17: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2878:7: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3230:26: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3231:26: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3276:26: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3382:24: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3396:24: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4261:24: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4282:10: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4289:18: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4294:17: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4421:24: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4445:17: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:5685:26: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:5830:32: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:5883:25: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6090:25: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6200:25: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6311:9: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6340:9: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6370:9: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6466:16: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6491:22: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6546:8: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6916:24: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8040:24: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8154:24: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8381:21: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8619:26: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8622:10: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8817:27: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8954:17: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8991:19: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9117:32: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9118:32: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9393:31: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9394:25: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9399:17: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9401:36: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9404:22: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9454:41: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9524:17: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9525:31: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9526:20: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9530:25: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9752:32: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9753:32: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9798:18: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9816:39: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9832:19: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9870:31: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9871:25: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:10020:22: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:10024:21: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:10096:23: style: C-style pointer casting [cstyleCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:1051:20: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:1066:14: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:1066:62: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:1081:8: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:1090:34: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:1092:80: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:1201:20: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:1230:12: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3180:65: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3550:133: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3740:133: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] rordenlab-dcm2niix-f6d7a00/console/miniz.c:4603:133: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4441:17: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4449:17: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4454:36: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4456:36: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:5615:20: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:5636:21: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:5860:19: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:5882:26: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:5884:19: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:5909:19: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:5946:20: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:5978:26: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6074:18: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6091:19: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6183:18: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6201:19: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6310:17: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6312:18: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6339:17: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6341:18: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6485:16: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6486:26: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6547:17: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4449:17: portability:inconclusive: Casting from float * to unsigned char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4456:36: portability:inconclusive: Casting from float * to unsigned char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:5884:19: portability: Casting between unsigned char * and float * which have an incompatible binary data representation. [invalidPointerCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6074:18: portability: Casting between unsigned char * and float * which have an incompatible binary data representation. [invalidPointerCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6091:19: portability: Casting between unsigned char * and float * which have an incompatible binary data representation. [invalidPointerCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6310:17: portability: Casting between unsigned char * and float * which have an incompatible binary data representation. [invalidPointerCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6312:18: portability: Casting between unsigned char * and float * which have an incompatible binary data representation. [invalidPointerCast] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1491:87: style: Same expression 'strstr(d.imageTypeText,"_ND")!=NULL' found multiple times in chain of '||' operators. [duplicateExpression] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1492:44: style: Same expression 'strstr(d.imageType,"_ND")!=NULL' found multiple times in chain of '||' operators. [duplicateExpression] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2061:27: style: The comparison 'totalAcquiredPairs > 0' is always false. [knownConditionTrueFalse] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2049:29: note: 'totalAcquiredPairs' is assigned value '0' here. rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2061:27: note: The comparison 'totalAcquiredPairs > 0' is always false. rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2467:65: style: Same expression on both sides of '&&'. [duplicateExpression] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6710:9: style: Same expression on both sides of '-='. [duplicateExpression] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6887:16: style: The comparison 'ismatched == false' is always true because 'ismatched' and 'false' represent the same value. [knownConditionTrueFalse] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6882:19: note: 'ismatched' is assigned value 'false' here. rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6887:16: note: The comparison 'ismatched == false' is always true because 'ismatched' and 'false' represent the same value. rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:7051:48: style: Same expression on both sides of '||'. [duplicateExpression] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8073:11: style:inconclusive: Same expression used in consecutive assignments of 'indx' and 'indx0'. [duplicateAssignExpression] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8074:11: note: Same expression used in consecutive assignments of 'indx' and 'indx0'. rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8073:11: note: Same expression used in consecutive assignments of 'indx' and 'indx0'. rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8184:14: style: The comparison 'nAcq == 1' is always true. [knownConditionTrueFalse] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8174:15: note: 'nAcq' is assigned value '1' here. rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8184:14: note: The comparison 'nAcq == 1' is always true. rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8433:29: style: Variable 'isInconsistenSliceDir' is reassigned a value before the old one has been used. [redundantAssignment] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8417:29: note: isInconsistenSliceDir is assigned rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8433:29: note: isInconsistenSliceDir is overwritten rordenlab-dcm2niix-f6d7a00/console/miniz.c:2309:41: style: The scope of the variable 'p' can be reduced. [variableScope] rordenlab-dcm2niix-f6d7a00/console/miniz.c:2309:45: style: The scope of the variable 'q' can be reduced. [variableScope] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3143:9: style: The scope of the variable 'child' can be reduced. [variableScope] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3159:9: style: The scope of the variable 'child' can be reduced. [variableScope] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3179:19: style: The scope of the variable 'p' can be reduced. [variableScope] rordenlab-dcm2niix-f6d7a00/console/miniz.c:3737:28: style: The scope of the variable 'read_buf_ofs' can be reduced. [variableScope] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1804:7: style: The scope of the variable 'interp' can be reduced. [variableScope] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1819:8: style: The scope of the variable 'delayTimeInTR' can be reduced. [variableScope] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1850:9: style: The scope of the variable 'pf' can be reduced. [variableScope] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2047:7: style: The scope of the variable 'nContrasts' can be reduced. [variableScope] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3143:8: style: The scope of the variable 'degX' can be reduced. [variableScope] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6633:9: style: The scope of the variable 'kMidnightSec' can be reduced. [variableScope] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:7201:6: style: The scope of the variable 'phPos' can be reduced. [variableScope] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:7463:6: style: The scope of the variable 'nVol' can be reduced. [variableScope] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8014:7: style: The scope of the variable 'allSame' can be reduced. [variableScope] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8434:11: style: The scope of the variable 'slicePositionRepeats' can be reduced. [variableScope] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:194:10: style: Checking if unsigned expression 'len' is less than zero. [unsignedLessThanZero] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3777:34: style: Checking if unsigned expression 'strlen(opts.bidsSubject)' is less than zero. [unsignedLessThanZero] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3785:34: style: Checking if unsigned expression 'strlen(opts.bidsSession)' is less than zero. [unsignedLessThanZero] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4303:14: style: Checking if unsigned expression 'cmp_len' is less than zero. [unsignedLessThanZero] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4458:14: style: Checking if unsigned expression 'cmp_len' is less than zero. [unsignedLessThanZero] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:10296:25: style: Checking if unsigned expression 'strlen(searchpath)' is less than zero. [unsignedLessThanZero] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2054:9: style: Local variable 'totalAcquiredPairs' shadows outer variable [shadowVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2049:8: note: Shadowed declaration rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2054:9: note: Shadow variable rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2057:9: style: Local variable 'totalAcquiredPairs' shadows outer variable [shadowVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2049:8: note: Shadowed declaration rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2057:9: note: Shadow variable rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2076:13: style: Local variable 'd' shadows outer argument [shadowArgument] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1249:58: note: Shadowed declaration rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2076:13: note: Shadow variable rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3285:11: style: Local variable 'i' shadows outer variable [shadowVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3259:6: note: Shadowed declaration rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3285:11: note: Shadow variable rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3304:12: style: Local variable 'i' shadows outer variable [shadowVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3259:6: note: Shadowed declaration rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3304:12: note: Shadow variable rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3337:11: style: Local variable 'i' shadows outer variable [shadowVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3259:6: note: Shadowed declaration rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3337:11: note: Shadow variable rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3383:11: style: Local variable 'i' shadows outer variable [shadowVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3259:6: note: Shadowed declaration rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3383:11: note: Shadow variable rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3386:11: style: Local variable 'i' shadows outer variable [shadowVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3259:6: note: Shadowed declaration rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3386:11: note: Shadow variable rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4082:14: style: Local variable 'pos' shadows outer variable [shadowVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3721:9: note: Shadowed declaration rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4082:14: note: Shadow variable rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4094:14: style: Local variable 'pos' shadows outer variable [shadowVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3721:9: note: Shadowed declaration rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4094:14: note: Shadow variable rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4100:11: style: Local variable 'pos' shadows outer variable [shadowVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3721:9: note: Shadowed declaration rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4100:11: note: Shadow variable rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4134:15: style: Local variable 'pos' shadows outer variable [shadowVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3721:9: note: Shadowed declaration rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4134:15: note: Shadow variable rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4668:7: style: Local variable 'n' shadows outer variable [shadowVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4600:6: note: Shadowed declaration rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4668:7: note: Shadow variable rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6108:11: style: Local variable 's' shadows outer variable [shadowVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6077:6: note: Shadowed declaration rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6108:11: note: Shadow variable rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6218:11: style: Local variable 's' shadows outer variable [shadowVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6186:6: note: Shadowed declaration rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6218:11: note: Shadow variable rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8322:10: style: Local variable 'nTR' shadows outer variable [shadowVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8270:9: note: Shadowed declaration rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8322:10: note: Shadow variable rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8340:10: style: Local variable 'nTR' shadows outer variable [shadowVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8270:9: note: Shadowed declaration rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8340:10: note: Shadow variable rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8403:14: style: Local variable 'dx' shadows outer variable [shadowVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8368:10: note: Shadowed declaration rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8403:14: note: Shadow variable rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8434:11: style: Local variable 'slicePositionRepeats' shadows outer variable [shadowVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8397:10: note: Shadowed declaration rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8434:11: note: Shadow variable rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8440:15: style: Local variable 'dx' shadows outer variable [shadowVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8368:10: note: Shadowed declaration rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8440:15: note: Shadow variable rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8821:10: style: Local variable 'indx' shadows outer variable [shadowVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8073:11: note: Shadowed declaration rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8821:10: note: Shadow variable rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8825:11: style: Local variable 'indx' shadows outer variable [shadowVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8073:11: note: Shadowed declaration rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8825:11: note: Shadow variable rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:450:38: performance: Function parameter 'd' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:460:39: performance: Function parameter 'd' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:460:60: performance: Function parameter 'd2' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:472:57: performance: Function parameter 'd' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:472:76: performance: Function parameter 'opts' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2608:124: performance: Function parameter 'opts' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3115:50: performance: Function parameter 'd1' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3115:72: performance: Function parameter 'd2' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3175:44: performance: Function parameter 'd1' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3175:66: performance: Function parameter 'd2' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3201:50: performance: Function parameter 'd1' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3201:72: performance: Function parameter 'd2' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4250:55: performance: Function parameter 'hdr' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4345:44: performance: Function parameter 'opts' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4495:98: performance: Function parameter 'opts' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4495:122: performance: Function parameter 'd' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4599:59: performance: Function parameter 'hdr' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4599:99: performance: Function parameter 'opts' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4599:123: performance: Function parameter 'd' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:5591:62: performance: Function parameter 'hdr' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:5591:102: performance: Function parameter 'opts' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:5591:126: performance: Function parameter 'd' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:5659:98: performance: Function parameter 'opts' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:5659:122: performance: Function parameter 'd' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:5811:60: performance: Function parameter 'hdr' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:5811:100: performance: Function parameter 'opts' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:5811:124: performance: Function parameter 'd' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6045:123: performance: Function parameter 'opts' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6045:147: performance: Function parameter 'd' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6152:116: performance: Function parameter 'opts' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6152:140: performance: Function parameter 'd' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6262:62: performance: Function parameter 'hdr' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6262:102: performance: Function parameter 'opts' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6262:126: performance: Function parameter 'd' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6474:59: performance: Function parameter 'hdr' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6474:99: performance: Function parameter 'opts' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6474:123: performance: Function parameter 'd' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6940:73: performance: Function parameter 'opts' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:7629:80: performance: Function parameter 'opts' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:7976:168: performance: Function parameter 'opts' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8056:137: performance: Function parameter 'opts' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8901:133: performance: Function parameter 'opts' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9518:47: performance: Function parameter 'opts' should be passed by const reference. [passedByValue] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9680:17: style: Variable 'file' can be declared as reference to const [constVariableReference] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:186:9: style: Variable 'ok' can be declared as pointer to const [constVariablePointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:265:34: style: Parameter 'opts' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:382:52: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:472:24: style: Parameter 'pathoutname' can be declared as const array [constParameter] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:472:105: style: Parameter 'h' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:472:114: style: Parameter 'dcmname' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:547:38: style: Parameter 'buffer' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:548:8: style: Variable 'keyPos' can be declared as pointer to const [constVariablePointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:561:36: style: Parameter 'buffer' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:563:8: style: Variable 'keyPos' can be declared as pointer to const [constVariablePointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:575:46: style: Parameter 'buffer' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:576:8: style: Variable 'keyPos' can be declared as pointer to const [constVariablePointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:596:43: style: Parameter 'buffer' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:597:8: style: Variable 'keyPos' can be declared as pointer to const [constVariablePointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:617:43: style: Parameter 'buffer' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:620:8: style: Variable 'keyPos' can be declared as pointer to const [constVariablePointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:647:49: style: Parameter 'buff' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:763:7: style: Variable 'keyStr' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:773:8: style: Variable 'keyStrEnd' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:774:9: style: Variable 'keyPosEnd' can be declared as pointer to const [constVariablePointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:778:8: style: Variable 'keyStrLns' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:780:8: style: Variable 'keyStrUcImg' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:782:8: style: Variable 'keyStrUcMode' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:784:8: style: Variable 'keyStrBase' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:786:8: style: Variable 'keyStrInterp' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:788:8: style: Variable 'keyStrPF' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:790:8: style: Variable 'keyStrES' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:792:8: style: Variable 'keyStrNumInv' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:794:8: style: Variable 'keyStrNumEcho' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:797:8: style: Variable 'keyStrDS' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:800:9: style: Variable 'keyStrROM' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:806:8: style: Variable 'keyStrAF' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:808:8: style: Variable 'keyStrAF3D' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:810:8: style: Variable 'keyStrAFTotal' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:816:8: style: Variable 'keyStrRef' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:818:8: style: Variable 'keyStrCombineMode' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:822:8: style: Variable 'keyStrPATMode' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:824:8: style: Variable 'keyStrucMTC' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:831:8: style: Variable 'keyStrCoil' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:833:8: style: Variable 'keyStrCI' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:838:9: style: Variable 'keyStrCI2' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:843:9: style: Variable 'keyStrCI3' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:848:8: style: Variable 'keyStrCS' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:850:8: style: Variable 'keyStrSeq' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:852:8: style: Variable 'keyStrWipMemBlock' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:854:8: style: Variable 'keyStrPn' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:856:8: style: Variable 'keyStrTE0' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:858:8: style: Variable 'keyStrTE1' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:860:8: style: Variable 'keyStrPLD' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:862:8: style: Variable 'keyStrLD' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:867:8: style: Variable 'keyStrTiFree' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:869:9: style: Variable 'keyPosTi' can be declared as pointer to const [constVariablePointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:880:8: style: Variable 'keyStrAlFree' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:882:9: style: Variable 'keyPosFree' can be declared as pointer to const [constVariablePointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:910:8: style: Variable 'keyStrDThickness' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:913:9: style: Variable 'keyStrUlShape' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:915:9: style: Variable 'keyStrSPositionDTra' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:917:9: style: Variable 'keyStrSNormalDTra' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:921:8: style: Variable 'keyStrDAveragesDouble' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:924:8: style: Variable 'keyStrDelay' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:926:8: style: Variable 'keyStrOver' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:928:8: style: Variable 'keyStrPhase' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:930:8: style: Variable 'keyStrAmp' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:933:8: style: Variable 'keyStrSh0' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:935:8: style: Variable 'keyStrSh1' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:937:8: style: Variable 'keyStrSh2' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:940:8: style: Variable 'keyStrSh0s' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:943:8: style: Variable 'keyStrSh1s' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:946:8: style: Variable 'keyStrSh2s' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:950:8: style: Variable 'keyStrSh3' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:952:8: style: Variable 'keyStrSh4' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:954:8: style: Variable 'keyStrSh5' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:956:8: style: Variable 'keyStrSh6' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:958:8: style: Variable 'keyStrSh7' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:961:8: style: Variable 'keyStrDVIn' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1078:7: style: Variable 'keyStrSO' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1080:7: style: Variable 'keyStrVO' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1082:7: style: Variable 'keyStrMB' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1084:7: style: Variable 'keyStrNS' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1086:7: style: Variable 'keyStrDELACQ' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1089:7: style: Variable 'keyStrGD' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1092:7: style: Variable 'keyStrPSEQ' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1094:7: style: Variable 'keyStrIOPT' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1097:7: style: Variable 'keyStrPHASEDELAYS1' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1123:55: style: Parameter 'sVal' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1149:17: style: Variable 'iVal' can be declared as pointer to const [constVariablePointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1249:25: style: Parameter 'pathoutname' can be declared as const array [constParameter] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1249:146: style: Parameter 'dti4D' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2608:23: style: Parameter 'pathoutname' can be declared as const array [constParameter] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3230:21: style: Variable 'a1' can be declared as pointer to const [constVariablePointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3231:21: style: Variable 'a2' can be declared as pointer to const [constVariablePointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3511:18: style: Parameter 'file_name' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3512:8: style: Variable 'p_extension' can be declared as pointer to const [constVariablePointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3611:19: style: Parameter 'pth' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3636:39: style: Parameter 'pth' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4124:8: style: Variable 'sep' can be declared as pointer to const [constVariablePointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4250:23: style: Parameter 'baseName' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4345:21: style: Parameter 'fname' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4414:23: style: Parameter 'baseName' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4495:23: style: Parameter 'niiFilename' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4599:24: style: Parameter 'niiFilename' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:5811:25: style: Parameter 'niiFilename' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:5882:18: style: Variable 'img16' can be declared as pointer to const [constVariablePointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:5978:18: style: Variable 'img16' can be declared as pointer to const [constVariablePointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6007:80: style: Parameter 'dcmList' can be declared as const array [constParameter] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6045:47: style: Parameter 'niiFilename' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6045:157: style: Parameter 'sliceMMarray' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6074:9: style: Variable 'imIn32' can be declared as pointer to const [constVariablePointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6183:9: style: Variable 'imIn16' can be declared as pointer to const [constVariablePointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6262:27: style: Parameter 'niiFilename' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6262:136: style: Parameter 'sliceMMarray' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6310:10: style: Variable 'im32' can be declared as pointer to const [constVariablePointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6339:10: style: Variable 'im16' can be declared as pointer to const [constVariablePointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6474:24: style: Parameter 'niiFilename' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6485:9: style: Variable 'im16' can be declared as pointer to const [constVariablePointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6486:18: style: Variable 'imu16' can be declared as pointer to const [constVariablePointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6577:53: style: Parameter 'd1' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6577:76: style: Parameter 'd2' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6588:44: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6588:66: style: Parameter 'd1' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6599:132: style: Parameter 'hdr' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6940:54: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:7163:9: style: Variable 'p' can be declared as pointer to const [constVariablePointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:7786:103: style: Parameter 'hdr' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:7869:98: style: Parameter 'hdr' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8025:24: style: Parameter 'imgname' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8045:23: style: Variable 'mask' can be declared as const array [constVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9177:77: style: Parameter 'opts' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9388:46: style: Parameter 'fname' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9429:29: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9497:90: style: Parameter 'nameList' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9518:26: style: Parameter 'fnm' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9544:20: style: Parameter 'src_path' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9544:36: style: Parameter 'dst_path' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9663:32: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:10285:8: style: Variable 'beg' can be declared as pointer to const [constVariablePointer] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:9534:16: error: Memory is allocated but not initialized: dcmList[0].isValid [uninitdata] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1502:25: style: Variable 'd2' is assigned a value that is never used. [unreadVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1804:14: style: Variable 'interp' is assigned a value that is never used. [unreadVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1819:22: style: Variable 'delayTimeInTR' is assigned a value that is never used. [unreadVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2054:28: style: Variable 'totalAcquiredPairs' is assigned a value that is never used. [unreadVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2057:28: style: Variable 'totalAcquiredPairs' is assigned a value that is never used. [unreadVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:1502:22: style: Variable 'd2' is assigned a value that is never used. [unreadVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2054:9: style: Variable 'totalAcquiredPairs' is assigned a value that is never used. [unreadVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2057:9: style: Variable 'totalAcquiredPairs' is assigned a value that is never used. [unreadVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2706:13: style: Variable 'idx' is assigned a value that is never used. [unreadVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:2706:9: style: Variable 'idx' is assigned a value that is never used. [unreadVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3302:7: style: Variable 'lastVol' is assigned a value that is never used. [unreadVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3599:32: style: Variable 'kTempPathSeparator' is assigned a value that is never used. [unreadVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3600:16: style: Variable 'hasCaret' is assigned a value that is never used. [unreadVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3599:13: style: Variable 'kTempPathSeparator' is assigned a value that is never used. [unreadVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3600:7: style: Variable 'hasCaret' is assigned a value that is never used. [unreadVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:6883:16: style: Variable 'substrlen' is assigned a value that is never used. [unreadVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:7000:12: style: Variable 'pf' is assigned a value that is never used. [unreadVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:7000:9: style: Variable 'pf' is assigned a value that is never used. [unreadVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:7286:18: style: Variable 'isDirLabel' is assigned a value that is never used. [unreadVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:7310:14: style: Variable 'isDirLabel' is assigned a value that is never used. [unreadVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:7329:14: style: Variable 'isDirLabel' is assigned a value that is never used. [unreadVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:7463:11: style: Variable 'nVol' is assigned a value that is never used. [unreadVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:7465:8: style: Variable 'nVol' is assigned a value that is never used. [unreadVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:8733:10: style: Unused variable: shearMat [unusedVariable] rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:10124:15: style: Variable 'progressPct' is assigned a value that is never used. [unreadVariable] rordenlab-dcm2niix-f6d7a00/console/nii_foreign.cpp:279:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/nii_foreign.cpp:447:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rordenlab-dcm2niix-f6d7a00/console/nii_foreign.cpp:55:48: style: Condition 'c==char(255)' is always false [knownConditionTrueFalse] rordenlab-dcm2niix-f6d7a00/console/nii_foreign.cpp:55:10: note: Assuming that condition 'cwidthwidthwidthheightheightheight , EncoderStrategy >::DecodeValue' can be static (but you may consider moving to unnamed namespace). [functionStatic] rordenlab-dcm2niix-f6d7a00/console/charls/scan.h:168:13: note: Technically the member function 'JlsCodec < DefaultTraits < uint16_t , uint16_t > , EncoderStrategy >::DecodeValue' can be static (but you may consider moving to unnamed namespace). rordenlab-dcm2niix-f6d7a00/console/charls/scan.h:329:37: note: Technically the member function 'JlsCodec < DefaultTraits < uint16_t , uint16_t > , EncoderStrategy >::DecodeValue' can be static (but you may consider moving to unnamed namespace). 2.18.0 rordenlab-dcm2niix-f6d7a00/console/charls/scan.h:329:37: performance:inconclusive: Technically the member function 'JlsCodec < DefaultTraits < uint8_t , uint8_t > , EncoderStrategy >::DecodeValue' can be static (but you may consider moving to unnamed namespace). [functionStatic] rordenlab-dcm2niix-f6d7a00/console/charls/scan.h:168:13: note: Technically the member function 'JlsCodec < DefaultTraits < uint8_t , uint8_t > , EncoderStrategy >::DecodeValue' can be static (but you may consider moving to unnamed namespace). rordenlab-dcm2niix-f6d7a00/console/charls/scan.h:329:37: note: Technically the member function 'JlsCodec < DefaultTraits < uint8_t , uint8_t > , EncoderStrategy >::DecodeValue' can be static (but you may consider moving to unnamed namespace). head rordenlab-dcm2niix-f6d7a00/console/charls/scan.h:329:37: style: The member function 'JlsCodec < DefaultTraits < uint16_t , uint16_t > , EncoderStrategy >::DecodeValue' can be static. [functionStatic] rordenlab-dcm2niix-f6d7a00/console/charls/scan.h:168:13: note: The member function 'JlsCodec < DefaultTraits < uint16_t , uint16_t > , EncoderStrategy >::DecodeValue' can be static. rordenlab-dcm2niix-f6d7a00/console/charls/scan.h:329:37: note: The member function 'JlsCodec < DefaultTraits < uint16_t , uint16_t > , EncoderStrategy >::DecodeValue' can be static. head rordenlab-dcm2niix-f6d7a00/console/charls/scan.h:329:37: style: The member function 'JlsCodec < DefaultTraits < uint8_t , uint8_t > , EncoderStrategy >::DecodeValue' can be static. [functionStatic] rordenlab-dcm2niix-f6d7a00/console/charls/scan.h:168:13: note: The member function 'JlsCodec < DefaultTraits < uint8_t , uint8_t > , EncoderStrategy >::DecodeValue' can be static. rordenlab-dcm2niix-f6d7a00/console/charls/scan.h:329:37: note: The member function 'JlsCodec < DefaultTraits < uint8_t , uint8_t > , EncoderStrategy >::DecodeValue' can be static. head rordenlab-dcm2niix-f6d7a00/console/nifti1_io_core.cpp:399:11: style: The scope of the variable 'Y' can be reduced. [variableScope] head rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3661:7: warning: If memory allocation fails, then there is a possible null pointer dereference: tImg [nullPointerOutOfMemory] rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3634:29: note: Assuming allocation function fails rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3634:15: note: Assignment 'tImg=(char*)malloc(imgsz)', assigned value is 0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom.cpp:3661:7: note: Null pointer dereference 2.18.0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3291:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _a [valueFlowBailoutIncompleteVar] head rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:3293:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kMaxDTI4D [valueFlowBailoutIncompleteVar] 2.18.0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4523:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _a [valueFlowBailoutIncompleteVar] head rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:4533:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:5620:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _a [valueFlowBailoutIncompleteVar] 2.18.0 rordenlab-dcm2niix-f6d7a00/console/nii_dicom_batch.cpp:7689:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _a [valueFlowBailoutIncompleteVar] DONE