2025-07-03 19:53 ftp://ftp.de.debian.org/debian/pool/main/i/istgt/istgt_0.4~20111008.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=bsd --library=openssl --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-63-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.17.0 head-info: a214e76 (2025-07-03 20:23:32 +0200) count: 593 592 elapsed-time: 44.8 47.5 head-timing-info: old-timing-info: head results: istgt-20111008/src/istgt.h:280:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt.h:289:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_proto.h:197:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_proto.h:206:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt.c:94:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt.c:164:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt.c:208:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt.c:274:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt.c:328:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt.c:387:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt.c:442:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt.c:527:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt.c:567:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt.c:591:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt.c:669:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEFAULT_LOG_FACILITY [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt.c:710:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt.c:1271:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt.c:1498:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUILD_ETC_ISTGT [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt.c:1515:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUILD_ETC_ISTGT [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt.c:974:22: style: Assignment 'ErrorRecoveryLevel=0' is redundant with condition 'ErrorRecoveryLevel==0'. [duplicateConditionalAssign] istgt-20111008/src/istgt.c:973:32: note: Condition 'ErrorRecoveryLevel==0' istgt-20111008/src/istgt.c:974:22: note: Assignment 'ErrorRecoveryLevel=0' is redundant istgt-20111008/src/istgt.c:1061:9: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] istgt-20111008/src/istgt.c:1064:4: note: Found duplicate branches for 'if' and 'else'. istgt-20111008/src/istgt.c:1061:9: note: Found duplicate branches for 'if' and 'else'. istgt-20111008/src/istgt.c:1093:2: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] istgt-20111008/src/istgt.c:1096:4: note: Found duplicate branches for 'if' and 'else'. istgt-20111008/src/istgt.c:1093:2: note: Found duplicate branches for 'if' and 'else'. istgt-20111008/src/istgt.c:157:8: style: Variable 'label' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgt.c:157:16: style: Variable 'portal' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgt.c:432:8: style: Variable 'label' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgt.c:432:16: style: Variable 'portal' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgt.c:621:12: style: Variable 'vp' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgt_conf.c:331:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_conf.c:428:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_conf.c:54:9: warning: If memory allocation fails, then there is a possible null pointer dereference: cp [nullPointerOutOfMemory] istgt-20111008/src/istgt_conf.c:53:14: note: Assuming allocation function fails istgt-20111008/src/istgt_conf.c:53:14: note: Assignment 'cp=xmalloc(sizeof(*cp))', assigned value is 0 istgt-20111008/src/istgt_conf.c:54:9: note: Null pointer dereference istgt-20111008/src/istgt_conf.c:55:2: warning: If memory allocation fails, then there is a possible null pointer dereference: cp [nullPointerOutOfMemory] istgt-20111008/src/istgt_conf.c:53:14: note: Assuming allocation function fails istgt-20111008/src/istgt_conf.c:53:14: note: Assignment 'cp=xmalloc(sizeof(*cp))', assigned value is 0 istgt-20111008/src/istgt_conf.c:55:2: note: Null pointer dereference istgt-20111008/src/istgt_conf.c:56:2: warning: If memory allocation fails, then there is a possible null pointer dereference: cp [nullPointerOutOfMemory] istgt-20111008/src/istgt_conf.c:53:14: note: Assuming allocation function fails istgt-20111008/src/istgt_conf.c:53:14: note: Assignment 'cp=xmalloc(sizeof(*cp))', assigned value is 0 istgt-20111008/src/istgt_conf.c:56:2: note: Null pointer dereference istgt-20111008/src/istgt_conf.c:79:9: warning: If memory allocation fails, then there is a possible null pointer dereference: sp [nullPointerOutOfMemory] istgt-20111008/src/istgt_conf.c:78:14: note: Assuming allocation function fails istgt-20111008/src/istgt_conf.c:78:14: note: Assignment 'sp=xmalloc(sizeof(*sp))', assigned value is 0 istgt-20111008/src/istgt_conf.c:79:9: note: Null pointer dereference istgt-20111008/src/istgt_conf.c:80:2: warning: If memory allocation fails, then there is a possible null pointer dereference: sp [nullPointerOutOfMemory] istgt-20111008/src/istgt_conf.c:78:14: note: Assuming allocation function fails istgt-20111008/src/istgt_conf.c:78:14: note: Assignment 'sp=xmalloc(sizeof(*sp))', assigned value is 0 istgt-20111008/src/istgt_conf.c:80:2: note: Null pointer dereference istgt-20111008/src/istgt_conf.c:81:2: warning: If memory allocation fails, then there is a possible null pointer dereference: sp [nullPointerOutOfMemory] istgt-20111008/src/istgt_conf.c:78:14: note: Assuming allocation function fails istgt-20111008/src/istgt_conf.c:78:14: note: Assignment 'sp=xmalloc(sizeof(*sp))', assigned value is 0 istgt-20111008/src/istgt_conf.c:81:2: note: Null pointer dereference istgt-20111008/src/istgt_conf.c:118:9: warning: If memory allocation fails, then there is a possible null pointer dereference: ip [nullPointerOutOfMemory] istgt-20111008/src/istgt_conf.c:117:14: note: Assuming allocation function fails istgt-20111008/src/istgt_conf.c:117:14: note: Assignment 'ip=xmalloc(sizeof(*ip))', assigned value is 0 istgt-20111008/src/istgt_conf.c:118:9: note: Null pointer dereference istgt-20111008/src/istgt_conf.c:119:2: warning: If memory allocation fails, then there is a possible null pointer dereference: ip [nullPointerOutOfMemory] istgt-20111008/src/istgt_conf.c:117:14: note: Assuming allocation function fails istgt-20111008/src/istgt_conf.c:117:14: note: Assignment 'ip=xmalloc(sizeof(*ip))', assigned value is 0 istgt-20111008/src/istgt_conf.c:119:2: note: Null pointer dereference istgt-20111008/src/istgt_conf.c:120:2: warning: If memory allocation fails, then there is a possible null pointer dereference: ip [nullPointerOutOfMemory] istgt-20111008/src/istgt_conf.c:117:14: note: Assuming allocation function fails istgt-20111008/src/istgt_conf.c:117:14: note: Assignment 'ip=xmalloc(sizeof(*ip))', assigned value is 0 istgt-20111008/src/istgt_conf.c:120:2: note: Null pointer dereference istgt-20111008/src/istgt_conf.c:121:2: warning: If memory allocation fails, then there is a possible null pointer dereference: ip [nullPointerOutOfMemory] istgt-20111008/src/istgt_conf.c:117:14: note: Assuming allocation function fails istgt-20111008/src/istgt_conf.c:117:14: note: Assignment 'ip=xmalloc(sizeof(*ip))', assigned value is 0 istgt-20111008/src/istgt_conf.c:121:2: note: Null pointer dereference istgt-20111008/src/istgt_conf.c:158:9: warning: If memory allocation fails, then there is a possible null pointer dereference: vp [nullPointerOutOfMemory] istgt-20111008/src/istgt_conf.c:157:14: note: Assuming allocation function fails istgt-20111008/src/istgt_conf.c:157:14: note: Assignment 'vp=xmalloc(sizeof(*vp))', assigned value is 0 istgt-20111008/src/istgt_conf.c:158:9: note: Null pointer dereference istgt-20111008/src/istgt_conf.c:159:2: warning: If memory allocation fails, then there is a possible null pointer dereference: vp [nullPointerOutOfMemory] istgt-20111008/src/istgt_conf.c:157:14: note: Assuming allocation function fails istgt-20111008/src/istgt_conf.c:157:14: note: Assignment 'vp=xmalloc(sizeof(*vp))', assigned value is 0 istgt-20111008/src/istgt_conf.c:159:2: note: Null pointer dereference istgt-20111008/src/istgt_conf.c:160:2: warning: If memory allocation fails, then there is a possible null pointer dereference: vp [nullPointerOutOfMemory] istgt-20111008/src/istgt_conf.c:157:14: note: Assuming allocation function fails istgt-20111008/src/istgt_conf.c:157:14: note: Assignment 'vp=xmalloc(sizeof(*vp))', assigned value is 0 istgt-20111008/src/istgt_conf.c:160:2: note: Null pointer dereference istgt-20111008/src/istgt_conf.c:390:2: warning: If memory allocation fails, then there is a possible null pointer dereference: dst [nullPointerOutOfMemory] istgt-20111008/src/istgt_conf.c:389:19: note: Assuming allocation function fails istgt-20111008/src/istgt_conf.c:389:10: note: Assignment 'dst=p=xmalloc(1024)', assigned value is 0 istgt-20111008/src/istgt_conf.c:390:2: note: Null pointer dereference istgt-20111008/src/istgt_conf.c:444:19: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] istgt-20111008/src/istgt_conf.c:451:15: note: Assuming allocation function fails istgt-20111008/src/istgt_conf.c:451:15: note: Assignment 'q=xmalloc(n+n2+1)', assigned value is 0 istgt-20111008/src/istgt_conf.c:457:0: note: Assignment 'p=q', assigned value is 0 istgt-20111008/src/istgt_conf.c:444:19: note: Null pointer dereference istgt-20111008/src/istgt_conf.c:444:39: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] istgt-20111008/src/istgt_conf.c:451:15: note: Assuming allocation function fails istgt-20111008/src/istgt_conf.c:451:15: note: Assignment 'q=xmalloc(n+n2+1)', assigned value is 0 istgt-20111008/src/istgt_conf.c:457:0: note: Assignment 'p=q', assigned value is 0 istgt-20111008/src/istgt_conf.c:444:39: note: Null pointer dereference istgt-20111008/src/istgt_conf.c:452:11: warning: If memory allocation fails, then there is a possible null pointer dereference: q [nullPointerOutOfMemory] istgt-20111008/src/istgt_conf.c:451:15: note: Assuming allocation function fails istgt-20111008/src/istgt_conf.c:451:15: note: Assignment 'q=xmalloc(n+n2+1)', assigned value is 0 istgt-20111008/src/istgt_conf.c:452:11: note: Null pointer dereference istgt-20111008/src/istgt_conf.c:454:4: warning: If memory allocation fails, then there is a possible null pointer dereference: q [nullPointerOutOfMemory] istgt-20111008/src/istgt_conf.c:451:15: note: Assuming allocation function fails istgt-20111008/src/istgt_conf.c:451:15: note: Assignment 'q=xmalloc(n+n2+1)', assigned value is 0 istgt-20111008/src/istgt_conf.c:454:4: note: Null pointer dereference istgt-20111008/src/istgt_conf.c:453:13: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] istgt-20111008/src/istgt_conf.c:451:15: note: Assuming allocation function fails istgt-20111008/src/istgt_conf.c:451:15: note: Assignment 'q=xmalloc(n+n2+1)', assigned value is 0 istgt-20111008/src/istgt_conf.c:453:13: note: Null pointer addition istgt-20111008/src/istgt_conf.c:321:8: style: Variable 'val' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgt_crc32c.c:185:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iov_len [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_iscsi.c:436:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_iscsi.c:699:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_iscsi.c:776:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_iscsi.c:981:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_iscsi.c:1077:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_iscsi.c:1365:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_iscsi.c:1419:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_iscsi.c:1476:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_iscsi.c:1523:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_iscsi.c:1751:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_iscsi.c:1850:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_iscsi.c:1888:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_iscsi.c:1993:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_iscsi.c:2644:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_iscsi.c:2838:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_iscsi.c:3004:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_iscsi.c:3116:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_iscsi.c:3447:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_iscsi.c:3544:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_iscsi.c:3717:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_iscsi.c:3863:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_iscsi.c:3901:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_iscsi.c:3965:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_iscsi.c:3995:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_iscsi.c:4023:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_iscsi.c:4059:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_iscsi.c:4162:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_iscsi.c:4228:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_iscsi.c:4557:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_iscsi.c:4621:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_iscsi.c:4722:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fd [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_iscsi.c:4846:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_iscsi.c:4936:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_iscsi.c:5069:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fd [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_iscsi.c:5523:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_iscsi.c:5808:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_iscsi.c:6029:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_iscsi.c:6140:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_iscsi.c:6193:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_iscsi.c:6277:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_iscsi.c:6350:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_iscsi.c:6356:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_iscsi.c:6380:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_iscsi.c:6410:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_iscsi.c:6439:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_iscsi.c:6477:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_iscsi.c:4777:26: style: Redundant condition: The condition 'rc == 0' is redundant since 'rc != 1' is sufficient. [redundantCondition] istgt-20111008/src/istgt_iscsi.c:5337:26: style: Redundant condition: The condition 'rc == 0' is redundant since 'rc != 1' is sufficient. [redundantCondition] istgt-20111008/src/istgt_iscsi.c:3202:12: style: The if condition is the same as the previous if condition [duplicateCondition] istgt-20111008/src/istgt_iscsi.c:3154:12: note: First condition istgt-20111008/src/istgt_iscsi.c:3202:12: note: Second condition istgt-20111008/src/istgt_iscsi.c:820:21: style: Condition 'total_ahs_len==0' is always true [knownConditionTrueFalse] istgt-20111008/src/istgt_iscsi.c:803:20: note: Assuming that condition 'total_ahs_len!=0' is not redundant istgt-20111008/src/istgt_iscsi.c:820:21: note: Condition 'total_ahs_len==0' is always true istgt-20111008/src/istgt_iscsi.c:871:53: style: Condition 'data_len!=0' is always false [knownConditionTrueFalse] istgt-20111008/src/istgt_iscsi.c:854:15: note: Assuming that condition 'data_len!=0' is not redundant istgt-20111008/src/istgt_iscsi.c:871:53: note: Condition 'data_len!=0' is always false istgt-20111008/src/istgt_iscsi.c:4406:12: style: Condition 'rc<0' is always false [knownConditionTrueFalse] istgt-20111008/src/istgt_iscsi.c:4405:30: note: Calling function 'istgt_iscsi_copy_pdu' returns 0 istgt-20111008/src/istgt_iscsi.c:4405:30: note: Assignment 'rc=istgt_iscsi_copy_pdu(save_pdu,&data_pdu)', assigned value is 0 istgt-20111008/src/istgt_iscsi.c:4406:12: note: Condition 'rc<0' is always false istgt-20111008/src/istgt_iscsi.c:658:10: warning: If memory allocation fails, then there is a possible null pointer dereference: lu_task [nullPointerOutOfMemory] istgt-20111008/src/istgt_iscsi.c:657:20: note: Assuming allocation function fails istgt-20111008/src/istgt_iscsi.c:657:20: note: Assignment 'lu_task=xmalloc(alloc_len)', assigned value is 0 istgt-20111008/src/istgt_iscsi.c:658:10: note: Null pointer dereference istgt-20111008/src/istgt_iscsi.c:659:3: warning: If memory allocation fails, then there is a possible null pointer dereference: lu_task [nullPointerOutOfMemory] istgt-20111008/src/istgt_iscsi.c:657:20: note: Assuming allocation function fails istgt-20111008/src/istgt_iscsi.c:657:20: note: Assignment 'lu_task=xmalloc(alloc_len)', assigned value is 0 istgt-20111008/src/istgt_iscsi.c:659:3: note: Null pointer dereference istgt-20111008/src/istgt_iscsi.c:661:3: warning: If memory allocation fails, then there is a possible null pointer dereference: lu_task [nullPointerOutOfMemory] istgt-20111008/src/istgt_iscsi.c:657:20: note: Assuming allocation function fails istgt-20111008/src/istgt_iscsi.c:657:20: note: Assignment 'lu_task=xmalloc(alloc_len)', assigned value is 0 istgt-20111008/src/istgt_iscsi.c:661:3: note: Null pointer dereference istgt-20111008/src/istgt_iscsi.c:661:56: warning: If memory allocation fails, then there is a possible null pointer dereference: lu_task [nullPointerOutOfMemory] istgt-20111008/src/istgt_iscsi.c:657:20: note: Assuming allocation function fails istgt-20111008/src/istgt_iscsi.c:657:20: note: Assignment 'lu_task=xmalloc(alloc_len)', assigned value is 0 istgt-20111008/src/istgt_iscsi.c:661:56: note: Null pointer dereference istgt-20111008/src/istgt_iscsi.c:663:3: warning: If memory allocation fails, then there is a possible null pointer dereference: lu_task [nullPointerOutOfMemory] istgt-20111008/src/istgt_iscsi.c:657:20: note: Assuming allocation function fails istgt-20111008/src/istgt_iscsi.c:657:20: note: Assignment 'lu_task=xmalloc(alloc_len)', assigned value is 0 istgt-20111008/src/istgt_iscsi.c:663:3: note: Null pointer dereference istgt-20111008/src/istgt_iscsi.c:663:42: warning: If memory allocation fails, then there is a possible null pointer dereference: lu_task [nullPointerOutOfMemory] istgt-20111008/src/istgt_iscsi.c:657:20: note: Assuming allocation function fails istgt-20111008/src/istgt_iscsi.c:657:20: note: Assignment 'lu_task=xmalloc(alloc_len)', assigned value is 0 istgt-20111008/src/istgt_iscsi.c:663:42: note: Null pointer dereference istgt-20111008/src/istgt_iscsi.c:667:3: warning: If memory allocation fails, then there is a possible null pointer dereference: lu_task [nullPointerOutOfMemory] istgt-20111008/src/istgt_iscsi.c:657:20: note: Assuming allocation function fails istgt-20111008/src/istgt_iscsi.c:657:20: note: Assignment 'lu_task=xmalloc(alloc_len)', assigned value is 0 istgt-20111008/src/istgt_iscsi.c:667:3: note: Null pointer dereference istgt-20111008/src/istgt_iscsi.c:668:3: warning: If memory allocation fails, then there is a possible null pointer dereference: lu_task [nullPointerOutOfMemory] istgt-20111008/src/istgt_iscsi.c:657:20: note: Assuming allocation function fails istgt-20111008/src/istgt_iscsi.c:657:20: note: Assignment 'lu_task=xmalloc(alloc_len)', assigned value is 0 istgt-20111008/src/istgt_iscsi.c:668:3: note: Null pointer dereference istgt-20111008/src/istgt_iscsi.c:672:13: warning: If memory allocation fails, then there is a possible null pointer dereference: lu_task [nullPointerOutOfMemory] istgt-20111008/src/istgt_iscsi.c:657:20: note: Assuming allocation function fails istgt-20111008/src/istgt_iscsi.c:657:20: note: Assignment 'lu_task=xmalloc(alloc_len)', assigned value is 0 istgt-20111008/src/istgt_iscsi.c:672:13: note: Null pointer dereference istgt-20111008/src/istgt_iscsi.c:900:2: warning: If memory allocation fails, then there is a possible null pointer dereference: dst_pdu [nullPointerOutOfMemory] istgt-20111008/src/istgt_iscsi.c:4403:23: note: Assuming allocation function fails istgt-20111008/src/istgt_iscsi.c:4403:23: note: Assignment 'save_pdu=xmalloc(sizeof(*save_pdu))', assigned value is 0 istgt-20111008/src/istgt_iscsi.c:4405:31: note: Calling function 'istgt_iscsi_copy_pdu', 1st argument 'save_pdu' value is 0 istgt-20111008/src/istgt_iscsi.c:900:2: note: Null pointer dereference istgt-20111008/src/istgt_iscsi.c:901:9: warning: If memory allocation fails, then there is a possible null pointer dereference: dst_pdu [nullPointerOutOfMemory] istgt-20111008/src/istgt_iscsi.c:4403:23: note: Assuming allocation function fails istgt-20111008/src/istgt_iscsi.c:4403:23: note: Assignment 'save_pdu=xmalloc(sizeof(*save_pdu))', assigned value is 0 istgt-20111008/src/istgt_iscsi.c:4405:31: note: Calling function 'istgt_iscsi_copy_pdu', 1st argument 'save_pdu' value is 0 istgt-20111008/src/istgt_iscsi.c:901:9: note: Null pointer dereference istgt-20111008/src/istgt_iscsi.c:910:9: warning: If memory allocation fails, then there is a possible null pointer dereference: dst_pdu [nullPointerOutOfMemory] istgt-20111008/src/istgt_iscsi.c:4403:23: note: Assuming allocation function fails istgt-20111008/src/istgt_iscsi.c:4403:23: note: Assignment 'save_pdu=xmalloc(sizeof(*save_pdu))', assigned value is 0 istgt-20111008/src/istgt_iscsi.c:4405:31: note: Calling function 'istgt_iscsi_copy_pdu', 1st argument 'save_pdu' value is 0 istgt-20111008/src/istgt_iscsi.c:910:9: note: Null pointer dereference istgt-20111008/src/istgt_iscsi.c:911:2: warning: If memory allocation fails, then there is a possible null pointer dereference: dst_pdu [nullPointerOutOfMemory] istgt-20111008/src/istgt_iscsi.c:4403:23: note: Assuming allocation function fails istgt-20111008/src/istgt_iscsi.c:4403:23: note: Assignment 'save_pdu=xmalloc(sizeof(*save_pdu))', assigned value is 0 istgt-20111008/src/istgt_iscsi.c:4405:31: note: Calling function 'istgt_iscsi_copy_pdu', 1st argument 'save_pdu' value is 0 istgt-20111008/src/istgt_iscsi.c:911:2: note: Null pointer dereference istgt-20111008/src/istgt_iscsi.c:912:2: warning: If memory allocation fails, then there is a possible null pointer dereference: dst_pdu [nullPointerOutOfMemory] istgt-20111008/src/istgt_iscsi.c:4403:23: note: Assuming allocation function fails istgt-20111008/src/istgt_iscsi.c:4403:23: note: Assignment 'save_pdu=xmalloc(sizeof(*save_pdu))', assigned value is 0 istgt-20111008/src/istgt_iscsi.c:4405:31: note: Calling function 'istgt_iscsi_copy_pdu', 1st argument 'save_pdu' value is 0 istgt-20111008/src/istgt_iscsi.c:912:2: note: Null pointer dereference istgt-20111008/src/istgt_iscsi.c:913:2: warning: If memory allocation fails, then there is a possible null pointer dereference: dst_pdu [nullPointerOutOfMemory] istgt-20111008/src/istgt_iscsi.c:4403:23: note: Assuming allocation function fails istgt-20111008/src/istgt_iscsi.c:4403:23: note: Assignment 'save_pdu=xmalloc(sizeof(*save_pdu))', assigned value is 0 istgt-20111008/src/istgt_iscsi.c:4405:31: note: Calling function 'istgt_iscsi_copy_pdu', 1st argument 'save_pdu' value is 0 istgt-20111008/src/istgt_iscsi.c:913:2: note: Null pointer dereference istgt-20111008/src/istgt_iscsi.c:1745:9: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] istgt-20111008/src/istgt_iscsi.c:1744:16: note: Assuming allocation function fails istgt-20111008/src/istgt_iscsi.c:1744:16: note: Assignment 'data=xmalloc(alloc_len)', assigned value is 0 istgt-20111008/src/istgt_iscsi.c:1745:9: note: Null pointer dereference istgt-20111008/src/istgt_iscsi.c:1763:9: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] istgt-20111008/src/istgt_iscsi.c:1744:16: note: Assuming allocation function fails istgt-20111008/src/istgt_iscsi.c:1744:16: note: Assignment 'data=xmalloc(alloc_len)', assigned value is 0 istgt-20111008/src/istgt_iscsi.c:1763:9: note: Null pointer dereference istgt-20111008/src/istgt_iscsi.c:3841:9: warning: If memory allocation fails, then there is a possible null pointer dereference: r2t_task [nullPointerOutOfMemory] istgt-20111008/src/istgt_iscsi.c:3840:20: note: Assuming allocation function fails istgt-20111008/src/istgt_iscsi.c:3840:20: note: Assignment 'r2t_task=xmalloc(sizeof(*r2t_task))', assigned value is 0 istgt-20111008/src/istgt_iscsi.c:3841:9: note: Null pointer dereference istgt-20111008/src/istgt_iscsi.c:3842:2: warning: If memory allocation fails, then there is a possible null pointer dereference: r2t_task [nullPointerOutOfMemory] istgt-20111008/src/istgt_iscsi.c:3840:20: note: Assuming allocation function fails istgt-20111008/src/istgt_iscsi.c:3840:20: note: Assignment 'r2t_task=xmalloc(sizeof(*r2t_task))', assigned value is 0 istgt-20111008/src/istgt_iscsi.c:3842:2: note: Null pointer dereference istgt-20111008/src/istgt_iscsi.c:3843:2: warning: If memory allocation fails, then there is a possible null pointer dereference: r2t_task [nullPointerOutOfMemory] istgt-20111008/src/istgt_iscsi.c:3840:20: note: Assuming allocation function fails istgt-20111008/src/istgt_iscsi.c:3840:20: note: Assignment 'r2t_task=xmalloc(sizeof(*r2t_task))', assigned value is 0 istgt-20111008/src/istgt_iscsi.c:3843:2: note: Null pointer dereference istgt-20111008/src/istgt_iscsi.c:3844:2: warning: If memory allocation fails, then there is a possible null pointer dereference: r2t_task [nullPointerOutOfMemory] istgt-20111008/src/istgt_iscsi.c:3840:20: note: Assuming allocation function fails istgt-20111008/src/istgt_iscsi.c:3840:20: note: Assignment 'r2t_task=xmalloc(sizeof(*r2t_task))', assigned value is 0 istgt-20111008/src/istgt_iscsi.c:3844:2: note: Null pointer dereference istgt-20111008/src/istgt_iscsi.c:4404:12: warning: If memory allocation fails, then there is a possible null pointer dereference: save_pdu [nullPointerOutOfMemory] istgt-20111008/src/istgt_iscsi.c:4403:23: note: Assuming allocation function fails istgt-20111008/src/istgt_iscsi.c:4403:23: note: Assignment 'save_pdu=xmalloc(sizeof(*save_pdu))', assigned value is 0 istgt-20111008/src/istgt_iscsi.c:4404:12: note: Null pointer dereference istgt-20111008/src/istgt_iscsi.c:5520:9: warning: If memory allocation fails, then there is a possible null pointer dereference: conn [nullPointerOutOfMemory] istgt-20111008/src/istgt_iscsi.c:5519:16: note: Assuming allocation function fails istgt-20111008/src/istgt_iscsi.c:5519:16: note: Assignment 'conn=xmalloc(sizeof(*conn))', assigned value is 0 istgt-20111008/src/istgt_iscsi.c:5520:9: note: Null pointer dereference istgt-20111008/src/istgt_iscsi.c:5522:2: warning: If memory allocation fails, then there is a possible null pointer dereference: conn [nullPointerOutOfMemory] istgt-20111008/src/istgt_iscsi.c:5519:16: note: Assuming allocation function fails istgt-20111008/src/istgt_iscsi.c:5519:16: note: Assignment 'conn=xmalloc(sizeof(*conn))', assigned value is 0 istgt-20111008/src/istgt_iscsi.c:5522:2: note: Null pointer dereference istgt-20111008/src/istgt_iscsi.c:5805:9: warning: If memory allocation fails, then there is a possible null pointer dereference: sess [nullPointerOutOfMemory] istgt-20111008/src/istgt_iscsi.c:5804:16: note: Assuming allocation function fails istgt-20111008/src/istgt_iscsi.c:5804:16: note: Assignment 'sess=xmalloc(sizeof(*sess))', assigned value is 0 istgt-20111008/src/istgt_iscsi.c:5805:9: note: Null pointer dereference istgt-20111008/src/istgt_iscsi.c:6458:3: warning: If memory allocation fails, then there is a possible null pointer dereference: g_conns [nullPointerOutOfMemory] istgt-20111008/src/istgt_iscsi.c:6456:19: note: Assuming allocation function fails istgt-20111008/src/istgt_iscsi.c:6456:19: note: Assignment 'g_conns=xmalloc(sizeof(*g_conns)*g_nconns)', assigned value is 0 istgt-20111008/src/istgt_iscsi.c:6458:3: note: Null pointer dereference istgt-20111008/src/istgt_iscsi.c:660:7: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] istgt-20111008/src/istgt_iscsi.c:657:20: note: Assuming allocation function fails istgt-20111008/src/istgt_iscsi.c:657:20: note: Assignment 'lu_task=xmalloc(alloc_len)', assigned value is 0 istgt-20111008/src/istgt_iscsi.c:660:7: note: Null pointer addition istgt-20111008/src/istgt_iscsi.c:5229:6: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] istgt-20111008/src/istgt_iscsi.c:5233:8: note: Found duplicate branches for 'if' and 'else'. istgt-20111008/src/istgt_iscsi.c:5229:6: note: Found duplicate branches for 'if' and 'else'. istgt-20111008/src/istgt_iscsi.c:2517:10: style: Variable 'tsih' is reassigned a value before the old one has been used. [redundantAssignment] istgt-20111008/src/istgt_iscsi.c:2515:10: note: tsih is assigned istgt-20111008/src/istgt_iscsi.c:2517:10: note: tsih is overwritten istgt-20111008/src/istgt_iscsi.c:3800:15: style: Variable 'transfer_tag' is reassigned a value before the old one has been used. [redundantAssignment] istgt-20111008/src/istgt_iscsi.c:3732:15: note: transfer_tag is assigned istgt-20111008/src/istgt_iscsi.c:3800:15: note: transfer_tag is overwritten istgt-20111008/src/istgt_iscsi.c:972:75: style: Parameter 'table' can be declared as pointer to const [constParameterPointer] istgt-20111008/src/istgt_iscsi.c:1004:15: style: Variable 'param' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgt_iscsi.c:1015:15: style: Variable 'param' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgt_iscsi.c:1043:15: style: Variable 'cur_param' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgt_iscsi.c:1048:8: style: Variable 'valid_val' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgt_iscsi.c:1049:8: style: Variable 'min_val' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgt_iscsi.c:1049:18: style: Variable 'max_val' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgt_iscsi.c:1378:15: style: Variable 'param' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgt_iscsi.c:1509:8: style: Variable 'new_val' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgt_iscsi.c:5512:82: style: Parameter 'sa' can be declared as pointer to const [constParameterPointer] istgt-20111008/src/istgt_iscsi.c:6432:14: style: Variable 'sp' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgt_iscsi.c:2660:15: style: Variable 'transfer_tag' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_iscsi.c:2727:8: style: Variable 'iiqn' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_iscsi.c:2827:9: style: Variable 'reason' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_iscsi.c:2830:6: style: Variable 'cid' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_iscsi.c:3432:8: style: Variable 'CmdSN' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_iscsi.c:4097:14: style: Variable 'current_lun' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_iscsi.c:4991:8: style: Variable 'rc' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_iscsi.c:5344:7: style: Variable 'rc' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_iscsi_param.c:201:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_iscsi_param.c:116:9: warning: If memory allocation fails, then there is a possible null pointer dereference: param [nullPointerOutOfMemory] istgt-20111008/src/istgt_iscsi_param.c:115:17: note: Assuming allocation function fails istgt-20111008/src/istgt_iscsi_param.c:115:17: note: Assignment 'param=xmalloc(sizeof(*param))', assigned value is 0 istgt-20111008/src/istgt_iscsi_param.c:116:9: note: Null pointer dereference istgt-20111008/src/istgt_iscsi_param.c:117:2: warning: If memory allocation fails, then there is a possible null pointer dereference: param [nullPointerOutOfMemory] istgt-20111008/src/istgt_iscsi_param.c:115:17: note: Assuming allocation function fails istgt-20111008/src/istgt_iscsi_param.c:115:17: note: Assignment 'param=xmalloc(sizeof(*param))', assigned value is 0 istgt-20111008/src/istgt_iscsi_param.c:117:2: note: Null pointer dereference istgt-20111008/src/istgt_iscsi_param.c:118:2: warning: If memory allocation fails, then there is a possible null pointer dereference: param [nullPointerOutOfMemory] istgt-20111008/src/istgt_iscsi_param.c:115:17: note: Assuming allocation function fails istgt-20111008/src/istgt_iscsi_param.c:115:17: note: Assignment 'param=xmalloc(sizeof(*param))', assigned value is 0 istgt-20111008/src/istgt_iscsi_param.c:118:2: note: Null pointer dereference istgt-20111008/src/istgt_iscsi_param.c:119:2: warning: If memory allocation fails, then there is a possible null pointer dereference: param [nullPointerOutOfMemory] istgt-20111008/src/istgt_iscsi_param.c:115:17: note: Assuming allocation function fails istgt-20111008/src/istgt_iscsi_param.c:115:17: note: Assignment 'param=xmalloc(sizeof(*param))', assigned value is 0 istgt-20111008/src/istgt_iscsi_param.c:119:2: note: Null pointer dereference istgt-20111008/src/istgt_iscsi_param.c:120:2: warning: If memory allocation fails, then there is a possible null pointer dereference: param [nullPointerOutOfMemory] istgt-20111008/src/istgt_iscsi_param.c:115:17: note: Assuming allocation function fails istgt-20111008/src/istgt_iscsi_param.c:115:17: note: Assignment 'param=xmalloc(sizeof(*param))', assigned value is 0 istgt-20111008/src/istgt_iscsi_param.c:120:2: note: Null pointer dereference istgt-20111008/src/istgt_iscsi_param.c:121:2: warning: If memory allocation fails, then there is a possible null pointer dereference: param [nullPointerOutOfMemory] istgt-20111008/src/istgt_iscsi_param.c:115:17: note: Assuming allocation function fails istgt-20111008/src/istgt_iscsi_param.c:115:17: note: Assignment 'param=xmalloc(sizeof(*param))', assigned value is 0 istgt-20111008/src/istgt_iscsi_param.c:121:2: note: Null pointer dereference istgt-20111008/src/istgt_log.c:51:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DAEMON [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_log.c:81:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_EMERG [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_log.c:113:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_log.c:136:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_log.c:159:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_log.c:178:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_log.c:196:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_log.c:210:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_PID [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_log.c:236:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu.c:116:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu.c:172:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu.c:230:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu.c:301:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu.c:351:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu.c:464:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu.c:483:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu.c:554:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu.c:615:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu.c:705:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu.c:806:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu.c:845:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu.c:910:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu.c:929:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MD5_DIGEST_LENGTH [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu.c:1002:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu.c:1228:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu.c:1901:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu.c:1957:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu.c:2096:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu.c:2135:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu.c:2276:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu.c:2356:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu.c:2562:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu.c:2613:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu.c:2650:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu.c:2687:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu.c:2721:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu.c:2758:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_UNBLOCK [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu.c:1175:27: style: Assignment 'lu->ErrorRecoveryLevel=0' is redundant with condition 'lu->ErrorRecoveryLevel==0'. [duplicateConditionalAssign] istgt-20111008/src/istgt_lu.c:1174:37: note: Condition 'lu->ErrorRecoveryLevel==0' istgt-20111008/src/istgt_lu.c:1175:27: note: Assignment 'lu->ErrorRecoveryLevel=0' is redundant istgt-20111008/src/istgt_lu.c:2173:10: style: Condition 'rc<0' is always false [knownConditionTrueFalse] istgt-20111008/src/istgt_lu.c:2172:25: note: Calling function 'istgt_lu_del_unit' returns 0 istgt-20111008/src/istgt_lu.c:2172:25: note: Assignment 'rc=istgt_lu_del_unit(istgt,lu)', assigned value is 0 istgt-20111008/src/istgt_lu.c:2173:10: note: Condition 'rc<0' is always false istgt-20111008/src/istgt_lu.c:2536:38: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] istgt-20111008/src/istgt_lu.c:2535:25: note: Assuming allocation function fails istgt-20111008/src/istgt_lu.c:2535:25: note: Assignment 'lu_task->data=xmalloc(alloc_len)', assigned value is 0 istgt-20111008/src/istgt_lu.c:2536:38: note: Null pointer addition istgt-20111008/src/istgt_lu.c:1383:9: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] istgt-20111008/src/istgt_lu.c:1385:4: note: Found duplicate branches for 'if' and 'else'. istgt-20111008/src/istgt_lu.c:1383:9: note: Found duplicate branches for 'if' and 'else'. istgt-20111008/src/istgt_lu.c:1412:2: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] istgt-20111008/src/istgt_lu.c:1414:4: note: Found duplicate branches for 'if' and 'else'. istgt-20111008/src/istgt_lu.c:1412:2: note: Found duplicate branches for 'if' and 'else'. istgt-20111008/src/istgt_lu.c:1438:2: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] istgt-20111008/src/istgt_lu.c:1440:4: note: Found duplicate branches for 'if' and 'else'. istgt-20111008/src/istgt_lu.c:1438:2: note: Found duplicate branches for 'if' and 'else'. istgt-20111008/src/istgt_lu.c:2526:28: style: Variable 'lu_task->lu_cmd.iobufsize' is reassigned a value before the old one has been used. [redundantAssignment] istgt-20111008/src/istgt_lu.c:2515:28: note: lu_task->lu_cmd.iobufsize is assigned istgt-20111008/src/istgt_lu.c:2526:28: note: lu_task->lu_cmd.iobufsize is overwritten istgt-20111008/src/istgt_lu.c:2768:3: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] istgt-20111008/src/istgt_lu.c:209:19: style: Variable 'igp' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgt_lu.c:277:19: style: Variable 'igp' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgt_lu.c:329:8: style: Variable 'host' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgt_lu.c:542:58: style: Parameter 'initiator_port' can be declared as pointer to const [constParameterPointer] istgt-20111008/src/istgt_lu_ctl.c:161:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_ctl.c:183:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_ctl.c:208:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_ctl.c:289:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MD5_DIGEST_LENGTH [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_ctl.c:499:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_ctl.c:671:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_ctl.c:759:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_ctl.c:864:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_ctl.c:1017:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_ctl.c:1087:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_ctl.c:1264:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_ctl.c:1331:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_ctl.c:1483:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_ctl.c:835:10: style: Condition 'lun==NULL' is always false [knownConditionTrueFalse] istgt-20111008/src/istgt_lu_ctl.c:1328:9: warning: If memory allocation fails, then there is a possible null pointer dereference: uctl [nullPointerOutOfMemory] istgt-20111008/src/istgt_lu_ctl.c:1327:16: note: Assuming allocation function fails istgt-20111008/src/istgt_lu_ctl.c:1327:16: note: Assignment 'uctl=xmalloc(sizeof(*uctl))', assigned value is 0 istgt-20111008/src/istgt_lu_ctl.c:1328:9: note: Null pointer dereference istgt-20111008/src/istgt_lu_ctl.c:1330:2: warning: If memory allocation fails, then there is a possible null pointer dereference: uctl [nullPointerOutOfMemory] istgt-20111008/src/istgt_lu_ctl.c:1327:16: note: Assuming allocation function fails istgt-20111008/src/istgt_lu_ctl.c:1327:16: note: Assignment 'uctl=xmalloc(sizeof(*uctl))', assigned value is 0 istgt-20111008/src/istgt_lu_ctl.c:1330:2: note: Null pointer dereference istgt-20111008/src/istgt_lu_ctl.c:1540:9: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] istgt-20111008/src/istgt_lu_ctl.c:1542:4: note: Found duplicate branches for 'if' and 'else'. istgt-20111008/src/istgt_lu_ctl.c:1540:9: note: Found duplicate branches for 'if' and 'else'. istgt-20111008/src/istgt_lu_ctl.c:1569:2: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] istgt-20111008/src/istgt_lu_ctl.c:1571:4: note: Found duplicate branches for 'if' and 'else'. istgt-20111008/src/istgt_lu_ctl.c:1569:2: note: Found duplicate branches for 'if' and 'else'. istgt-20111008/src/istgt_lu_ctl.c:227:8: style: Variable 'label' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgt_lu_ctl.c:228:8: style: Variable 'chap_a' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgt_lu_ctl.c:229:8: style: Variable 'chap_i' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgt_lu_ctl.c:230:8: style: Variable 'chap_c' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgt_lu_ctl.c:232:8: style: Variable 'chap_r' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgt_lu_ctl.c:470:8: style: Variable 'iqn' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgt_lu_ctl.c:471:8: style: Variable 'lun' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgt_lu_ctl.c:626:8: style: Variable 'lun' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgt_lu_ctl.c:714:8: style: Variable 'lun' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgt_lu_ctl.c:804:8: style: Variable 'lun' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgt_lu_ctl.c:976:8: style: Variable 'lun' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgt_lu_ctl.c:1069:8: style: Variable 'iqn' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgt_lu_ctl.c:1320:82: style: Parameter 'sa' can be declared as pointer to const [constParameterPointer] istgt-20111008/src/istgt_lu_ctl.c:561:13: style: Variable 'worksize' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_ctl.c:562:10: style: Variable 'workp' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_ctl.c:577:13: style: Variable 'worksize' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_ctl.c:578:10: style: Variable 'workp' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:387:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_disk.c:457:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_GETFL [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_disk.c:509:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_disk.c:749:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_disk.c:911:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MD5_DIGEST_LENGTH [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_disk.c:1655:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_disk.c:1860:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_GETFL [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_disk.c:2164:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_disk.c:2235:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_GETFL [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_disk.c:2375:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_disk.c:2523:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_disk.c:2733:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_disk.c:2912:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_disk.c:2964:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_disk.c:3935:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_disk.c:3993:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_disk.c:4053:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_disk.c:4177:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_disk.c:4286:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_disk.c:4468:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_disk.c:4521:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_disk.c:4634:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_disk.c:4721:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_disk.c:4815:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_disk.c:4955:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_disk.c:5008:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_disk.c:5390:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_disk.c:248:37: style: Expression is always true because 'else if' condition is opposite to previous condition at line 238. [multiCondition] istgt-20111008/src/istgt_lu_disk.c:238:30: note: first condition istgt-20111008/src/istgt_lu_disk.c:248:37: note: else if condition is opposite to first condition istgt-20111008/src/istgt_lu_disk.c:5074:15: style: Redundant condition: The condition 'rc < 0' is redundant since 'rc != 1' is sufficient. [redundantCondition] istgt-20111008/src/istgt_lu_disk.c:5156:14: style: Redundant condition: The condition 'rc < 0' is redundant since 'rc != 1' is sufficient. [redundantCondition] istgt-20111008/src/istgt_lu_disk.c:5251:15: style: Redundant condition: The condition 'rc < 0' is redundant since 'rc != 1' is sufficient. [redundantCondition] istgt-20111008/src/istgt_lu_disk.c:5316:14: style: Redundant condition: The condition 'rc < 0' is redundant since 'rc != 1' is sufficient. [redundantCondition] istgt-20111008/src/istgt_lu_disk.c:5906:21: style: Redundant condition: The condition 'data_len < 0' is redundant since 'data_len < 2' is sufficient. [redundantCondition] istgt-20111008/src/istgt_lu_disk.c:584:8: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] istgt-20111008/src/istgt_lu_disk.c:321:37: style: Condition 'spec->foffset+nbytes>spec->fsize' is always true [knownConditionTrueFalse] istgt-20111008/src/istgt_lu_disk.c:294:30: note: Assuming that condition 'spec->foffset+nbytes<=spec->fsize' is not redundant istgt-20111008/src/istgt_lu_disk.c:321:37: note: Condition 'spec->foffset+nbytes>spec->fsize' is always true istgt-20111008/src/istgt_lu_disk.c:660:10: style: Condition 'rc<0' is always false [knownConditionTrueFalse] istgt-20111008/src/istgt_lu_disk.c:659:30: note: Calling function 'istgt_lu_disk_setcache' returns 0 istgt-20111008/src/istgt_lu_disk.c:659:30: note: Assignment 'rc=istgt_lu_disk_setcache(spec)', assigned value is 0 istgt-20111008/src/istgt_lu_disk.c:660:10: note: Condition 'rc<0' is always false istgt-20111008/src/istgt_lu_disk.c:1597:10: style: Condition '1||spec->thin_provisioning' is always true [knownConditionTrueFalse] istgt-20111008/src/istgt_lu_disk.c:2067:7: style: Condition 'llbaa' is always false [knownConditionTrueFalse] istgt-20111008/src/istgt_lu_disk.c:2052:14: note: Assignment 'llbaa=0', assigned value is 0 istgt-20111008/src/istgt_lu_disk.c:2067:7: note: Condition 'llbaa' is always false istgt-20111008/src/istgt_lu_disk.c:2579:13: style: Condition 'prkey==NULL' is always false [knownConditionTrueFalse] istgt-20111008/src/istgt_lu_disk.c:2625:13: style: Condition 'prkey==NULL' is always false [knownConditionTrueFalse] istgt-20111008/src/istgt_lu_disk.c:2678:13: style: Condition 'prkey==NULL' is always false [knownConditionTrueFalse] istgt-20111008/src/istgt_lu_disk.c:3002:11: style: Condition 'rc<0' is always false [knownConditionTrueFalse] istgt-20111008/src/istgt_lu_disk.c:3000:36: note: Calling function 'istgt_lu_disk_remove_pr_key' returns 0 istgt-20111008/src/istgt_lu_disk.c:3000:36: note: Assignment 'rc=istgt_lu_disk_remove_pr_key(spec,conn,conn->initiator_port,conn->target_port,rkey)', assigned value is 0 istgt-20111008/src/istgt_lu_disk.c:3002:11: note: Condition 'rc<0' is always false istgt-20111008/src/istgt_lu_disk.c:3207:11: style: Condition 'rc<0' is always false [knownConditionTrueFalse] istgt-20111008/src/istgt_lu_disk.c:3205:36: note: Calling function 'istgt_lu_disk_remove_pr_key' returns 0 istgt-20111008/src/istgt_lu_disk.c:3205:36: note: Assignment 'rc=istgt_lu_disk_remove_pr_key(spec,conn,NULL,NULL,sarkey)', assigned value is 0 istgt-20111008/src/istgt_lu_disk.c:3207:11: note: Condition 'rc<0' is always false istgt-20111008/src/istgt_lu_disk.c:3230:12: style: Condition 'rc<0' is always false [knownConditionTrueFalse] istgt-20111008/src/istgt_lu_disk.c:3228:37: note: Calling function 'istgt_lu_disk_remove_pr_key' returns 0 istgt-20111008/src/istgt_lu_disk.c:3228:37: note: Assignment 'rc=istgt_lu_disk_remove_pr_key(spec,conn,NULL,NULL,sarkey)', assigned value is 0 istgt-20111008/src/istgt_lu_disk.c:3230:12: note: Condition 'rc<0' is always false istgt-20111008/src/istgt_lu_disk.c:3249:12: style: Condition 'rc<0' is always false [knownConditionTrueFalse] istgt-20111008/src/istgt_lu_disk.c:3245:43: note: Calling function 'istgt_lu_disk_remove_other_pr_key' returns 0 istgt-20111008/src/istgt_lu_disk.c:3245:43: note: Assignment 'rc=istgt_lu_disk_remove_other_pr_key(spec,conn,conn->initiator_port,conn->target_port,rkey)', assigned value is 0 istgt-20111008/src/istgt_lu_disk.c:3249:12: note: Condition 'rc<0' is always false istgt-20111008/src/istgt_lu_disk.c:3341:12: style: Condition 'rc<0' is always false [knownConditionTrueFalse] istgt-20111008/src/istgt_lu_disk.c:3339:37: note: Calling function 'istgt_lu_disk_remove_pr_key' returns 0 istgt-20111008/src/istgt_lu_disk.c:3339:37: note: Assignment 'rc=istgt_lu_disk_remove_pr_key(spec,conn,NULL,NULL,sarkey)', assigned value is 0 istgt-20111008/src/istgt_lu_disk.c:3341:12: note: Condition 'rc<0' is always false istgt-20111008/src/istgt_lu_disk.c:3361:10: style: Condition 'rc<0' is always false [knownConditionTrueFalse] istgt-20111008/src/istgt_lu_disk.c:3359:35: note: Calling function 'istgt_lu_disk_remove_pr_key' returns 0 istgt-20111008/src/istgt_lu_disk.c:3359:35: note: Assignment 'rc=istgt_lu_disk_remove_pr_key(spec,conn,NULL,NULL,sarkey)', assigned value is 0 istgt-20111008/src/istgt_lu_disk.c:3361:10: note: Condition 'rc<0' is always false istgt-20111008/src/istgt_lu_disk.c:3478:10: style: Condition 'rc<0' is always false [knownConditionTrueFalse] istgt-20111008/src/istgt_lu_disk.c:3475:35: note: Calling function 'istgt_lu_disk_remove_pr_key' returns 0 istgt-20111008/src/istgt_lu_disk.c:3475:35: note: Assignment 'rc=istgt_lu_disk_remove_pr_key(spec,conn,conn->initiator_port,conn->target_port,0)', assigned value is 0 istgt-20111008/src/istgt_lu_disk.c:3478:10: note: Condition 'rc<0' is always false istgt-20111008/src/istgt_lu_disk.c:4362:9: style: Condition 'rc<0' is always false [knownConditionTrueFalse] istgt-20111008/src/istgt_lu_disk.c:4311:9: note: Assignment 'hlen=2', assigned value is 2 istgt-20111008/src/istgt_lu_disk.c:4348:21: note: Assignment 'total=hlen+len+plen', assigned value is 20 istgt-20111008/src/istgt_lu_disk.c:4361:37: note: Calling function 'istgt_lu_scsi_build_sense_data' returns 20 istgt-20111008/src/istgt_lu_disk.c:4361:37: note: Assignment 'rc=istgt_lu_scsi_build_sense_data(data,sk,asc,ascq)', assigned value is 20 istgt-20111008/src/istgt_lu_disk.c:4362:9: note: Condition 'rc<0' is always false istgt-20111008/src/istgt_lu_disk.c:4431:9: style: Condition 'rc<0' is always false [knownConditionTrueFalse] istgt-20111008/src/istgt_lu_disk.c:4380:9: note: Assignment 'hlen=2', assigned value is 2 istgt-20111008/src/istgt_lu_disk.c:4417:21: note: Assignment 'total=hlen+len+plen', assigned value is 20 istgt-20111008/src/istgt_lu_disk.c:4430:38: note: Calling function 'istgt_lu_scsi_build_sense_data2' returns 20 istgt-20111008/src/istgt_lu_disk.c:4430:38: note: Assignment 'rc=istgt_lu_scsi_build_sense_data2(data,sk,asc,ascq)', assigned value is 20 istgt-20111008/src/istgt_lu_disk.c:4431:9: note: Condition 'rc<0' is always false istgt-20111008/src/istgt_lu_disk.c:375:9: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] istgt-20111008/src/istgt_lu_disk.c:374:16: note: Assuming allocation function fails istgt-20111008/src/istgt_lu_disk.c:374:16: note: Assignment 'data=xmalloc(nbytes)', assigned value is 0 istgt-20111008/src/istgt_lu_disk.c:375:9: note: Null pointer dereference istgt-20111008/src/istgt_lu_disk.c:516:10: warning: If memory allocation fails, then there is a possible null pointer dereference: spec [nullPointerOutOfMemory] istgt-20111008/src/istgt_lu_disk.c:515:17: note: Assuming allocation function fails istgt-20111008/src/istgt_lu_disk.c:515:17: note: Assignment 'spec=xmalloc(sizeof(*spec))', assigned value is 0 istgt-20111008/src/istgt_lu_disk.c:516:10: note: Null pointer dereference istgt-20111008/src/istgt_lu_disk.c:517:3: warning: If memory allocation fails, then there is a possible null pointer dereference: spec [nullPointerOutOfMemory] istgt-20111008/src/istgt_lu_disk.c:515:17: note: Assuming allocation function fails istgt-20111008/src/istgt_lu_disk.c:515:17: note: Assignment 'spec=xmalloc(sizeof(*spec))', assigned value is 0 istgt-20111008/src/istgt_lu_disk.c:517:3: note: Null pointer dereference istgt-20111008/src/istgt_lu_disk.c:518:3: warning: If memory allocation fails, then there is a possible null pointer dereference: spec [nullPointerOutOfMemory] istgt-20111008/src/istgt_lu_disk.c:515:17: note: Assuming allocation function fails istgt-20111008/src/istgt_lu_disk.c:515:17: note: Assignment 'spec=xmalloc(sizeof(*spec))', assigned value is 0 istgt-20111008/src/istgt_lu_disk.c:518:3: note: Null pointer dereference istgt-20111008/src/istgt_lu_disk.c:519:3: warning: If memory allocation fails, then there is a possible null pointer dereference: spec [nullPointerOutOfMemory] istgt-20111008/src/istgt_lu_disk.c:515:17: note: Assuming allocation function fails istgt-20111008/src/istgt_lu_disk.c:515:17: note: Assignment 'spec=xmalloc(sizeof(*spec))', assigned value is 0 istgt-20111008/src/istgt_lu_disk.c:519:3: note: Null pointer dereference istgt-20111008/src/istgt_lu_disk.c:520:3: warning: If memory allocation fails, then there is a possible null pointer dereference: spec [nullPointerOutOfMemory] istgt-20111008/src/istgt_lu_disk.c:515:17: note: Assuming allocation function fails istgt-20111008/src/istgt_lu_disk.c:515:17: note: Assignment 'spec=xmalloc(sizeof(*spec))', assigned value is 0 istgt-20111008/src/istgt_lu_disk.c:520:3: note: Null pointer dereference istgt-20111008/src/istgt_lu_disk.c:521:7: warning: If memory allocation fails, then there is a possible null pointer dereference: spec [nullPointerOutOfMemory] istgt-20111008/src/istgt_lu_disk.c:515:17: note: Assuming allocation function fails istgt-20111008/src/istgt_lu_disk.c:515:17: note: Assignment 'spec=xmalloc(sizeof(*spec))', assigned value is 0 istgt-20111008/src/istgt_lu_disk.c:521:7: note: Null pointer dereference istgt-20111008/src/istgt_lu_disk.c:526:7: warning: If memory allocation fails, then there is a possible null pointer dereference: spec [nullPointerOutOfMemory] istgt-20111008/src/istgt_lu_disk.c:515:17: note: Assuming allocation function fails istgt-20111008/src/istgt_lu_disk.c:515:17: note: Assignment 'spec=xmalloc(sizeof(*spec))', assigned value is 0 istgt-20111008/src/istgt_lu_disk.c:526:7: note: Null pointer dereference istgt-20111008/src/istgt_lu_disk.c:531:7: warning: If memory allocation fails, then there is a possible null pointer dereference: spec [nullPointerOutOfMemory] istgt-20111008/src/istgt_lu_disk.c:515:17: note: Assuming allocation function fails istgt-20111008/src/istgt_lu_disk.c:515:17: note: Assignment 'spec=xmalloc(sizeof(*spec))', assigned value is 0 istgt-20111008/src/istgt_lu_disk.c:531:7: note: Null pointer dereference istgt-20111008/src/istgt_lu_disk.c:539:3: warning: If memory allocation fails, then there is a possible null pointer dereference: spec [nullPointerOutOfMemory] istgt-20111008/src/istgt_lu_disk.c:515:17: note: Assuming allocation function fails istgt-20111008/src/istgt_lu_disk.c:515:17: note: Assignment 'spec=xmalloc(sizeof(*spec))', assigned value is 0 istgt-20111008/src/istgt_lu_disk.c:539:3: note: Null pointer dereference istgt-20111008/src/istgt_lu_disk.c:540:3: warning: If memory allocation fails, then there is a possible null pointer dereference: spec [nullPointerOutOfMemory] istgt-20111008/src/istgt_lu_disk.c:515:17: note: Assuming allocation function fails istgt-20111008/src/istgt_lu_disk.c:515:17: note: Assignment 'spec=xmalloc(sizeof(*spec))', assigned value is 0 istgt-20111008/src/istgt_lu_disk.c:540:3: note: Null pointer dereference istgt-20111008/src/istgt_lu_disk.c:541:3: warning: If memory allocation fails, then there is a possible null pointer dereference: spec [nullPointerOutOfMemory] istgt-20111008/src/istgt_lu_disk.c:515:17: note: Assuming allocation function fails istgt-20111008/src/istgt_lu_disk.c:515:17: note: Assignment 'spec=xmalloc(sizeof(*spec))', assigned value is 0 istgt-20111008/src/istgt_lu_disk.c:541:3: note: Null pointer dereference istgt-20111008/src/istgt_lu_disk.c:542:3: warning: If memory allocation fails, then there is a possible null pointer dereference: spec [nullPointerOutOfMemory] istgt-20111008/src/istgt_lu_disk.c:515:17: note: Assuming allocation function fails istgt-20111008/src/istgt_lu_disk.c:515:17: note: Assignment 'spec=xmalloc(sizeof(*spec))', assigned value is 0 istgt-20111008/src/istgt_lu_disk.c:542:3: note: Null pointer dereference istgt-20111008/src/istgt_lu_disk.c:543:3: warning: If memory allocation fails, then there is a possible null pointer dereference: spec [nullPointerOutOfMemory] istgt-20111008/src/istgt_lu_disk.c:515:17: note: Assuming allocation function fails istgt-20111008/src/istgt_lu_disk.c:515:17: note: Assignment 'spec=xmalloc(sizeof(*spec))', assigned value is 0 istgt-20111008/src/istgt_lu_disk.c:543:3: note: Null pointer dereference istgt-20111008/src/istgt_lu_disk.c:551:3: warning: If memory allocation fails, then there is a possible null pointer dereference: spec [nullPointerOutOfMemory] istgt-20111008/src/istgt_lu_disk.c:515:17: note: Assuming allocation function fails istgt-20111008/src/istgt_lu_disk.c:515:17: note: Assignment 'spec=xmalloc(sizeof(*spec))', assigned value is 0 istgt-20111008/src/istgt_lu_disk.c:546:10: note: Assuming condition is false istgt-20111008/src/istgt_lu_disk.c:551:3: note: Null pointer dereference istgt-20111008/src/istgt_lu_disk.c:3521:12: warning: If memory allocation fails, then there is a possible null pointer dereference: initiator_ports [nullPointerOutOfMemory] istgt-20111008/src/istgt_lu_disk.c:3520:30: note: Assuming allocation function fails istgt-20111008/src/istgt_lu_disk.c:3520:30: note: Assignment 'initiator_ports=xmalloc(sizeof(char*)*maxports)', assigned value is 0 istgt-20111008/src/istgt_lu_disk.c:3521:12: note: Null pointer dereference istgt-20111008/src/istgt_lu_disk.c:4851:9: warning: If memory allocation fails, then there is a possible null pointer dereference: lu_task [nullPointerOutOfMemory] istgt-20111008/src/istgt_lu_disk.c:4850:19: note: Assuming allocation function fails istgt-20111008/src/istgt_lu_disk.c:4850:19: note: Assignment 'lu_task=xmalloc(sizeof(*lu_task))', assigned value is 0 istgt-20111008/src/istgt_lu_disk.c:4851:9: note: Null pointer dereference istgt-20111008/src/istgt_lu_disk.c:3326:3: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] istgt-20111008/src/istgt_lu_disk.c:3329:5: note: Found duplicate branches for 'if' and 'else'. istgt-20111008/src/istgt_lu_disk.c:3326:3: note: Found duplicate branches for 'if' and 'else'. istgt-20111008/src/istgt_lu_disk.c:4510:2: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] istgt-20111008/src/istgt_lu_disk.c:4513:4: note: Found duplicate branches for 'if' and 'else'. istgt-20111008/src/istgt_lu_disk.c:4510:2: note: Found duplicate branches for 'if' and 'else'. istgt-20111008/src/istgt_lu_disk.c:3640:17: style: Variable 'lu_cmd->status' is reassigned a value before the old one has been used. [redundantAssignment] istgt-20111008/src/istgt_lu_disk.c:3218:19: note: lu_cmd->status is assigned istgt-20111008/src/istgt_lu_disk.c:3640:17: note: lu_cmd->status is overwritten istgt-20111008/src/istgt_lu_disk.c:3640:17: style: Variable 'lu_cmd->status' is reassigned a value before the old one has been used. [redundantAssignment] istgt-20111008/src/istgt_lu_disk.c:3241:20: note: lu_cmd->status is assigned istgt-20111008/src/istgt_lu_disk.c:3640:17: note: lu_cmd->status is overwritten istgt-20111008/src/istgt_lu_disk.c:3640:17: style: Variable 'lu_cmd->status' is reassigned a value before the old one has been used. [redundantAssignment] istgt-20111008/src/istgt_lu_disk.c:3318:20: note: lu_cmd->status is assigned istgt-20111008/src/istgt_lu_disk.c:3640:17: note: lu_cmd->status is overwritten istgt-20111008/src/istgt_lu_disk.c:3640:17: style: Variable 'lu_cmd->status' is reassigned a value before the old one has been used. [redundantAssignment] istgt-20111008/src/istgt_lu_disk.c:3348:20: note: lu_cmd->status is assigned istgt-20111008/src/istgt_lu_disk.c:3640:17: note: lu_cmd->status is overwritten istgt-20111008/src/istgt_lu_disk.c:3640:17: style: Variable 'lu_cmd->status' is reassigned a value before the old one has been used. [redundantAssignment] istgt-20111008/src/istgt_lu_disk.c:3430:18: note: lu_cmd->status is assigned istgt-20111008/src/istgt_lu_disk.c:3640:17: note: lu_cmd->status is overwritten istgt-20111008/src/istgt_lu_disk.c:802:30: style: Parameter 'cdb' can be declared as pointer to const [constParameterPointer] istgt-20111008/src/istgt_lu_disk.c:2768:19: style: Variable 'prkey' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgt_lu_disk.c:3647:19: style: Variable 'prkey' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgt_lu_disk.c:3969:11: style: Variable 'data' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgt_lu_disk.c:4039:11: style: Variable 'data' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgt_lu_disk.c:4147:11: style: Variable 'data' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgt_lu_disk.c:4618:17: style: Variable 'spec' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgt_lu_disk.c:2091:5: style: Variable 'cp' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:2149:5: style: Variable 'cp' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:5550:9: style: Variable 'loej' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:5667:10: style: Variable 'mdlen' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:5668:7: style: Variable 'mt' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:5669:8: style: Variable 'dsp' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:5731:10: style: Variable 'mdlen' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:5732:7: style: Variable 'mt' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:5733:8: style: Variable 'dsp' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:5973:8: style: Variable 'dpo' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:5974:8: style: Variable 'fua' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:5975:11: style: Variable 'fua_nv' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:6009:8: style: Variable 'dpo' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:6010:8: style: Variable 'fua' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:6011:11: style: Variable 'fua_nv' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:6045:8: style: Variable 'dpo' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:6046:8: style: Variable 'fua' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:6047:11: style: Variable 'fua_nv' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:6116:8: style: Variable 'dpo' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:6117:8: style: Variable 'fua' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:6118:11: style: Variable 'fua_nv' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:6153:8: style: Variable 'dpo' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:6154:8: style: Variable 'fua' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:6155:11: style: Variable 'fua_nv' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:6190:8: style: Variable 'dpo' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:6191:8: style: Variable 'fua' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:6192:11: style: Variable 'fua_nv' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:6220:8: style: Variable 'dpo' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:6221:11: style: Variable 'bytchk' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:6222:8: style: Variable 'lba' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:6223:8: style: Variable 'len' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:6244:8: style: Variable 'dpo' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:6245:11: style: Variable 'bytchk' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:6246:8: style: Variable 'lba' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:6247:8: style: Variable 'len' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:6268:8: style: Variable 'dpo' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:6269:11: style: Variable 'bytchk' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:6270:8: style: Variable 'lba' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:6271:8: style: Variable 'len' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:6298:13: style: Variable 'wprotect' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:6303:13: style: Variable 'group_no' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:6347:13: style: Variable 'wprotect' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:6349:10: style: Variable 'unmap' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:6354:13: style: Variable 'group_no' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:6411:13: style: Variable 'wprotect' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:6412:8: style: Variable 'dpo' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:6413:8: style: Variable 'fua' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:6414:11: style: Variable 'fua_nv' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:6417:13: style: Variable 'group_no' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:6456:12: style: Variable 'sync_nv' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:6457:10: style: Variable 'immed' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:6490:12: style: Variable 'sync_nv' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_disk.c:6491:10: style: Variable 'immed' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_dvd.c:231:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_dvd.c:331:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_dvd.c:369:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_dvd.c:434:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_dvd.c:489:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_dvd.c:587:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_dvd.c:1129:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_dvd.c:1569:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_dvd.c:2332:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_dvd.c:2443:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_dvd.c:2535:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_dvd.c:2597:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_dvd.c:2632:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_dvd.c:2851:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_dvd.c:2926:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_dvd.c:0:0: debug: ValueFlow maximum iterations exceeded [valueFlowMaxIterations] istgt-20111008/src/istgt_lu_dvd.c:3430:21: style: Redundant condition: The condition 'data_len < 0' is redundant since 'data_len < 2' is sufficient. [redundantCondition] istgt-20111008/src/istgt_lu_dvd.c:1435:7: style: Condition 'llbaa' is always false [knownConditionTrueFalse] istgt-20111008/src/istgt_lu_dvd.c:1414:14: note: Assignment 'llbaa=0', assigned value is 0 istgt-20111008/src/istgt_lu_dvd.c:1435:7: note: Condition 'llbaa' is always false istgt-20111008/src/istgt_lu_dvd.c:3575:17: style: Condition 'data_len<0' is always false [knownConditionTrueFalse] istgt-20111008/src/istgt_lu_dvd.c:2067:9: note: Assignment 'hlen=8', assigned value is 8 istgt-20111008/src/istgt_lu_dvd.c:3574:49: note: Calling function 'istgt_lu_dvd_scsi_mechanism_status' returns 12 istgt-20111008/src/istgt_lu_dvd.c:3574:49: note: Assignment 'data_len=istgt_lu_dvd_scsi_mechanism_status(spec,conn,cdb,data)', assigned value is 12 istgt-20111008/src/istgt_lu_dvd.c:3575:17: note: Condition 'data_len<0' is always false istgt-20111008/src/istgt_lu_dvd.c:387:3: error: Memory leak: mfile [memleak] istgt-20111008/src/istgt_lu_dvd.c:195:6: warning: If memory allocation fails, then there is a possible null pointer dereference: spec [nullPointerOutOfMemory] istgt-20111008/src/istgt_lu_dvd.c:495:17: note: Assuming allocation function fails istgt-20111008/src/istgt_lu_dvd.c:495:17: note: Assignment 'spec=xmalloc(sizeof(*spec))', assigned value is 0 istgt-20111008/src/istgt_lu_dvd.c:516:32: note: Calling function 'istgt_lu_dvd_load_media', 1st argument 'spec' value is 0 istgt-20111008/src/istgt_lu_dvd.c:220:33: note: Calling function 'istgt_lu_dvd_media_present', 1st argument 'spec' value is 0 istgt-20111008/src/istgt_lu_dvd.c:195:6: note: Null pointer dereference istgt-20111008/src/istgt_lu_dvd.c:224:6: warning: If memory allocation fails, then there is a possible null pointer dereference: spec [nullPointerOutOfMemory] istgt-20111008/src/istgt_lu_dvd.c:495:17: note: Assuming allocation function fails istgt-20111008/src/istgt_lu_dvd.c:495:17: note: Assignment 'spec=xmalloc(sizeof(*spec))', assigned value is 0 istgt-20111008/src/istgt_lu_dvd.c:516:32: note: Calling function 'istgt_lu_dvd_load_media', 1st argument 'spec' value is 0 istgt-20111008/src/istgt_lu_dvd.c:220:32: note: Assuming condition is false istgt-20111008/src/istgt_lu_dvd.c:224:6: note: Null pointer dereference istgt-20111008/src/istgt_lu_dvd.c:423:9: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] istgt-20111008/src/istgt_lu_dvd.c:422:16: note: Assuming allocation function fails istgt-20111008/src/istgt_lu_dvd.c:422:16: note: Assignment 'data=xmalloc(nbytes)', assigned value is 0 istgt-20111008/src/istgt_lu_dvd.c:423:9: note: Null pointer dereference istgt-20111008/src/istgt_lu_dvd.c:496:10: warning: If memory allocation fails, then there is a possible null pointer dereference: spec [nullPointerOutOfMemory] istgt-20111008/src/istgt_lu_dvd.c:495:17: note: Assuming allocation function fails istgt-20111008/src/istgt_lu_dvd.c:495:17: note: Assignment 'spec=xmalloc(sizeof(*spec))', assigned value is 0 istgt-20111008/src/istgt_lu_dvd.c:496:10: note: Null pointer dereference istgt-20111008/src/istgt_lu_dvd.c:497:3: warning: If memory allocation fails, then there is a possible null pointer dereference: spec [nullPointerOutOfMemory] istgt-20111008/src/istgt_lu_dvd.c:495:17: note: Assuming allocation function fails istgt-20111008/src/istgt_lu_dvd.c:495:17: note: Assignment 'spec=xmalloc(sizeof(*spec))', assigned value is 0 istgt-20111008/src/istgt_lu_dvd.c:497:3: note: Null pointer dereference istgt-20111008/src/istgt_lu_dvd.c:498:3: warning: If memory allocation fails, then there is a possible null pointer dereference: spec [nullPointerOutOfMemory] istgt-20111008/src/istgt_lu_dvd.c:495:17: note: Assuming allocation function fails istgt-20111008/src/istgt_lu_dvd.c:495:17: note: Assignment 'spec=xmalloc(sizeof(*spec))', assigned value is 0 istgt-20111008/src/istgt_lu_dvd.c:498:3: note: Null pointer dereference istgt-20111008/src/istgt_lu_dvd.c:499:3: warning: If memory allocation fails, then there is a possible null pointer dereference: spec [nullPointerOutOfMemory] istgt-20111008/src/istgt_lu_dvd.c:495:17: note: Assuming allocation function fails istgt-20111008/src/istgt_lu_dvd.c:495:17: note: Assignment 'spec=xmalloc(sizeof(*spec))', assigned value is 0 istgt-20111008/src/istgt_lu_dvd.c:499:3: note: Null pointer dereference istgt-20111008/src/istgt_lu_dvd.c:500:3: warning: If memory allocation fails, then there is a possible null pointer dereference: spec [nullPointerOutOfMemory] istgt-20111008/src/istgt_lu_dvd.c:495:17: note: Assuming allocation function fails istgt-20111008/src/istgt_lu_dvd.c:495:17: note: Assignment 'spec=xmalloc(sizeof(*spec))', assigned value is 0 istgt-20111008/src/istgt_lu_dvd.c:500:3: note: Null pointer dereference istgt-20111008/src/istgt_lu_dvd.c:501:3: warning: If memory allocation fails, then there is a possible null pointer dereference: spec [nullPointerOutOfMemory] istgt-20111008/src/istgt_lu_dvd.c:495:17: note: Assuming allocation function fails istgt-20111008/src/istgt_lu_dvd.c:495:17: note: Assignment 'spec=xmalloc(sizeof(*spec))', assigned value is 0 istgt-20111008/src/istgt_lu_dvd.c:501:3: note: Null pointer dereference istgt-20111008/src/istgt_lu_dvd.c:502:3: warning: If memory allocation fails, then there is a possible null pointer dereference: spec [nullPointerOutOfMemory] istgt-20111008/src/istgt_lu_dvd.c:495:17: note: Assuming allocation function fails istgt-20111008/src/istgt_lu_dvd.c:495:17: note: Assignment 'spec=xmalloc(sizeof(*spec))', assigned value is 0 istgt-20111008/src/istgt_lu_dvd.c:502:3: note: Null pointer dereference istgt-20111008/src/istgt_lu_dvd.c:513:3: warning: If memory allocation fails, then there is a possible null pointer dereference: spec [nullPointerOutOfMemory] istgt-20111008/src/istgt_lu_dvd.c:495:17: note: Assuming allocation function fails istgt-20111008/src/istgt_lu_dvd.c:495:17: note: Assignment 'spec=xmalloc(sizeof(*spec))', assigned value is 0 istgt-20111008/src/istgt_lu_dvd.c:513:3: note: Null pointer dereference istgt-20111008/src/istgt_lu_dvd.c:514:3: warning: If memory allocation fails, then there is a possible null pointer dereference: spec [nullPointerOutOfMemory] istgt-20111008/src/istgt_lu_dvd.c:495:17: note: Assuming allocation function fails istgt-20111008/src/istgt_lu_dvd.c:495:17: note: Assignment 'spec=xmalloc(sizeof(*spec))', assigned value is 0 istgt-20111008/src/istgt_lu_dvd.c:514:3: note: Null pointer dereference istgt-20111008/src/istgt_lu_dvd.c:515:3: warning: If memory allocation fails, then there is a possible null pointer dereference: spec [nullPointerOutOfMemory] istgt-20111008/src/istgt_lu_dvd.c:495:17: note: Assuming allocation function fails istgt-20111008/src/istgt_lu_dvd.c:495:17: note: Assignment 'spec=xmalloc(sizeof(*spec))', assigned value is 0 istgt-20111008/src/istgt_lu_dvd.c:515:3: note: Null pointer dereference istgt-20111008/src/istgt_lu_dvd.c:523:7: warning: If memory allocation fails, then there is a possible null pointer dereference: spec [nullPointerOutOfMemory] istgt-20111008/src/istgt_lu_dvd.c:495:17: note: Assuming allocation function fails istgt-20111008/src/istgt_lu_dvd.c:495:17: note: Assignment 'spec=xmalloc(sizeof(*spec))', assigned value is 0 istgt-20111008/src/istgt_lu_dvd.c:517:10: note: Assuming condition is false istgt-20111008/src/istgt_lu_dvd.c:523:7: note: Null pointer dereference istgt-20111008/src/istgt_lu_dvd.c:145:33: style: Parameter 'spec' can be declared as pointer to const [constParameterPointer] istgt-20111008/src/istgt_lu_dvd.c:157:33: style: Parameter 'spec' can be declared as pointer to const [constParameterPointer] istgt-20111008/src/istgt_lu_dvd.c:169:34: style: Parameter 'spec' can be declared as pointer to const [constParameterPointer] istgt-20111008/src/istgt_lu_dvd.c:181:33: style: Parameter 'spec' can be declared as pointer to const [constParameterPointer] istgt-20111008/src/istgt_lu_dvd.c:193:42: style: Parameter 'spec' can be declared as pointer to const [constParameterPointer] istgt-20111008/src/istgt_lu_dvd.c:202:39: style: Parameter 'spec' can be declared as pointer to const [constParameterPointer] istgt-20111008/src/istgt_lu_dvd.c:355:53: style: Parameter 'type' can be declared as pointer to const [constParameterPointer] istgt-20111008/src/istgt_lu_dvd.c:355:65: style: Parameter 'flags' can be declared as pointer to const [constParameterPointer] istgt-20111008/src/istgt_lu_dvd.c:355:78: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] istgt-20111008/src/istgt_lu_dvd.c:355:90: style: Parameter 'size' can be declared as pointer to const [constParameterPointer] istgt-20111008/src/istgt_lu_dvd.c:1673:51: style: Parameter 'spec' can be declared as pointer to const [constParameterPointer] istgt-20111008/src/istgt_lu_dvd.c:2047:50: style: Parameter 'spec' can be declared as pointer to const [constParameterPointer] istgt-20111008/src/istgt_lu_dvd.c:2109:42: style: Parameter 'spec' can be declared as pointer to const [constParameterPointer] istgt-20111008/src/istgt_lu_dvd.c:2451:53: style: Parameter 'spec' can be declared as pointer to const [constParameterPointer] istgt-20111008/src/istgt_lu_dvd.c:1475:5: style: Variable 'cp' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_dvd.c:1555:5: style: Variable 'cp' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_dvd.c:3070:7: style: Variable 'pc' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_dvd.c:3071:7: style: Variable 'fl' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_dvd.c:3214:10: style: Variable 'mdlen' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_dvd.c:3215:7: style: Variable 'mt' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_dvd.c:3216:8: style: Variable 'dsp' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_dvd.c:3256:10: style: Variable 'mdlen' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_dvd.c:3257:7: style: Variable 'mt' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_dvd.c:3258:8: style: Variable 'dsp' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_dvd.c:3545:7: style: Variable 'dt' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_dvd.c:3546:8: style: Variable 'lba' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_dvd.c:3547:8: style: Variable 'mnd' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_dvd.c:3548:9: style: Variable 'type' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_dvd.c:3806:8: style: Variable 'dpo' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_dvd.c:3807:8: style: Variable 'fua' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_dvd.c:3840:8: style: Variable 'dpo' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_dvd.c:3841:8: style: Variable 'fua' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_tape.c:401:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_tape.c:424:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_tape.c:447:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_tape.c:476:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_tape.c:567:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_tape.c:629:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_tape.c:813:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_tape.c:911:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_tape.c:1013:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_tape.c:1146:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_tape.c:1214:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_tape.c:1279:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_tape.c:1324:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_tape.c:1455:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_tape.c:2228:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_tape.c:2729:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_tape.c:2894:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_tape.c:2982:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_tape.c:3155:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_tape.c:3727:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_tape.c:3859:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_tape.c:4016:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_tape.c:4144:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_tape.c:4272:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_tape.c:4346:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_lu_tape.c:3050:4: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] istgt-20111008/src/istgt_lu_tape.c:3059:4: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] istgt-20111008/src/istgt_lu_tape.c:3065:3: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] istgt-20111008/src/istgt_lu_tape.c:4897:21: style: Redundant condition: The condition 'data_len < 0' is redundant since 'data_len < 2' is sufficient. [redundantCondition] istgt-20111008/src/istgt_lu_tape.c:1463:10: style: Condition 'rc<0' is always false [knownConditionTrueFalse] istgt-20111008/src/istgt_lu_tape.c:1462:40: note: Calling function 'istgt_lu_tape_write_pending_data' returns 0 istgt-20111008/src/istgt_lu_tape.c:1462:40: note: Assignment 'rc=istgt_lu_tape_write_pending_data(spec,NULL,&lu_cmd)', assigned value is 0 istgt-20111008/src/istgt_lu_tape.c:1463:10: note: Condition 'rc<0' is always false istgt-20111008/src/istgt_lu_tape.c:2592:7: style: Condition 'llbaa' is always false [knownConditionTrueFalse] istgt-20111008/src/istgt_lu_tape.c:2568:14: note: Assignment 'llbaa=0', assigned value is 0 istgt-20111008/src/istgt_lu_tape.c:2592:7: note: Condition 'llbaa' is always false istgt-20111008/src/istgt_lu_tape.c:3267:30: style: Condition 'offset==0' is always false [knownConditionTrueFalse] istgt-20111008/src/istgt_lu_tape.c:3250:46: note: Assuming that condition 'spec->ctlblock->marks[index_i+1].prev!=0ULL' is not redundant istgt-20111008/src/istgt_lu_tape.c:3252:46: note: Assignment 'offset=spec->ctlblock->marks[index_i+1].prev', assigned value is greater than 0 istgt-20111008/src/istgt_lu_tape.c:3267:30: note: Condition 'offset==0' is always false istgt-20111008/src/istgt_lu_tape.c:4394:61: style: Condition 'istgt_lu_tape_write_pending_data(spec,conn,lu_cmd)<0' is always false [knownConditionTrueFalse] istgt-20111008/src/istgt_lu_tape.c:4394:40: note: Calling function 'istgt_lu_tape_write_pending_data' returns 0 istgt-20111008/src/istgt_lu_tape.c:4394:61: note: Condition 'istgt_lu_tape_write_pending_data(spec,conn,lu_cmd)<0' is always false istgt-20111008/src/istgt_lu_tape.c:1232:3: error: Memory leak: mfile [memleak] istgt-20111008/src/istgt_lu_tape.c:979:6: warning: If memory allocation fails, then there is a possible null pointer dereference: spec [nullPointerOutOfMemory] istgt-20111008/src/istgt_lu_tape.c:1346:17: note: Assuming allocation function fails istgt-20111008/src/istgt_lu_tape.c:1346:17: note: Assignment 'spec=xmalloc(sizeof(*spec))', assigned value is 0 istgt-20111008/src/istgt_lu_tape.c:1368:33: note: Calling function 'istgt_lu_tape_load_media', 1st argument 'spec' value is 0 istgt-20111008/src/istgt_lu_tape.c:1002:34: note: Calling function 'istgt_lu_tape_media_present', 1st argument 'spec' value is 0 istgt-20111008/src/istgt_lu_tape.c:979:6: note: Null pointer dereference istgt-20111008/src/istgt_lu_tape.c:1006:6: warning: If memory allocation fails, then there is a possible null pointer dereference: spec [nullPointerOutOfMemory] istgt-20111008/src/istgt_lu_tape.c:1346:17: note: Assuming allocation function fails istgt-20111008/src/istgt_lu_tape.c:1346:17: note: Assignment 'spec=xmalloc(sizeof(*spec))', assigned value is 0 istgt-20111008/src/istgt_lu_tape.c:1368:33: note: Calling function 'istgt_lu_tape_load_media', 1st argument 'spec' value is 0 istgt-20111008/src/istgt_lu_tape.c:1002:33: note: Assuming condition is false istgt-20111008/src/istgt_lu_tape.c:1006:6: note: Null pointer dereference istgt-20111008/src/istgt_lu_tape.c:1268:9: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] istgt-20111008/src/istgt_lu_tape.c:1267:16: note: Assuming allocation function fails istgt-20111008/src/istgt_lu_tape.c:1267:16: note: Assignment 'data=xmalloc(nbytes)', assigned value is 0 istgt-20111008/src/istgt_lu_tape.c:1268:9: note: Null pointer dereference istgt-20111008/src/istgt_lu_tape.c:1347:10: warning: If memory allocation fails, then there is a possible null pointer dereference: spec [nullPointerOutOfMemory] istgt-20111008/src/istgt_lu_tape.c:1346:17: note: Assuming allocation function fails istgt-20111008/src/istgt_lu_tape.c:1346:17: note: Assignment 'spec=xmalloc(sizeof(*spec))', assigned value is 0 istgt-20111008/src/istgt_lu_tape.c:1347:10: note: Null pointer dereference istgt-20111008/src/istgt_lu_tape.c:1348:3: warning: If memory allocation fails, then there is a possible null pointer dereference: spec [nullPointerOutOfMemory] istgt-20111008/src/istgt_lu_tape.c:1346:17: note: Assuming allocation function fails istgt-20111008/src/istgt_lu_tape.c:1346:17: note: Assignment 'spec=xmalloc(sizeof(*spec))', assigned value is 0 istgt-20111008/src/istgt_lu_tape.c:1348:3: note: Null pointer dereference istgt-20111008/src/istgt_lu_tape.c:1349:3: warning: If memory allocation fails, then there is a possible null pointer dereference: spec [nullPointerOutOfMemory] istgt-20111008/src/istgt_lu_tape.c:1346:17: note: Assuming allocation function fails istgt-20111008/src/istgt_lu_tape.c:1346:17: note: Assignment 'spec=xmalloc(sizeof(*spec))', assigned value is 0 istgt-20111008/src/istgt_lu_tape.c:1349:3: note: Null pointer dereference istgt-20111008/src/istgt_lu_tape.c:1350:3: warning: If memory allocation fails, then there is a possible null pointer dereference: spec [nullPointerOutOfMemory] istgt-20111008/src/istgt_lu_tape.c:1346:17: note: Assuming allocation function fails istgt-20111008/src/istgt_lu_tape.c:1346:17: note: Assignment 'spec=xmalloc(sizeof(*spec))', assigned value is 0 istgt-20111008/src/istgt_lu_tape.c:1350:3: note: Null pointer dereference istgt-20111008/src/istgt_lu_tape.c:1351:3: warning: If memory allocation fails, then there is a possible null pointer dereference: spec [nullPointerOutOfMemory] istgt-20111008/src/istgt_lu_tape.c:1346:17: note: Assuming allocation function fails istgt-20111008/src/istgt_lu_tape.c:1346:17: note: Assignment 'spec=xmalloc(sizeof(*spec))', assigned value is 0 istgt-20111008/src/istgt_lu_tape.c:1351:3: note: Null pointer dereference istgt-20111008/src/istgt_lu_tape.c:1362:3: warning: If memory allocation fails, then there is a possible null pointer dereference: spec [nullPointerOutOfMemory] istgt-20111008/src/istgt_lu_tape.c:1346:17: note: Assuming allocation function fails istgt-20111008/src/istgt_lu_tape.c:1346:17: note: Assignment 'spec=xmalloc(sizeof(*spec))', assigned value is 0 istgt-20111008/src/istgt_lu_tape.c:1362:3: note: Null pointer dereference istgt-20111008/src/istgt_lu_tape.c:1363:3: warning: If memory allocation fails, then there is a possible null pointer dereference: spec [nullPointerOutOfMemory] istgt-20111008/src/istgt_lu_tape.c:1346:17: note: Assuming allocation function fails istgt-20111008/src/istgt_lu_tape.c:1346:17: note: Assignment 'spec=xmalloc(sizeof(*spec))', assigned value is 0 istgt-20111008/src/istgt_lu_tape.c:1363:3: note: Null pointer dereference istgt-20111008/src/istgt_lu_tape.c:1365:3: warning: If memory allocation fails, then there is a possible null pointer dereference: spec [nullPointerOutOfMemory] istgt-20111008/src/istgt_lu_tape.c:1346:17: note: Assuming allocation function fails istgt-20111008/src/istgt_lu_tape.c:1346:17: note: Assignment 'spec=xmalloc(sizeof(*spec))', assigned value is 0 istgt-20111008/src/istgt_lu_tape.c:1365:3: note: Null pointer dereference istgt-20111008/src/istgt_lu_tape.c:1366:3: warning: If memory allocation fails, then there is a possible null pointer dereference: spec [nullPointerOutOfMemory] istgt-20111008/src/istgt_lu_tape.c:1346:17: note: Assuming allocation function fails istgt-20111008/src/istgt_lu_tape.c:1346:17: note: Assignment 'spec=xmalloc(sizeof(*spec))', assigned value is 0 istgt-20111008/src/istgt_lu_tape.c:1366:3: note: Null pointer dereference istgt-20111008/src/istgt_lu_tape.c:1367:3: warning: If memory allocation fails, then there is a possible null pointer dereference: spec [nullPointerOutOfMemory] istgt-20111008/src/istgt_lu_tape.c:1346:17: note: Assuming allocation function fails istgt-20111008/src/istgt_lu_tape.c:1346:17: note: Assignment 'spec=xmalloc(sizeof(*spec))', assigned value is 0 istgt-20111008/src/istgt_lu_tape.c:1367:3: note: Null pointer dereference istgt-20111008/src/istgt_lu_tape.c:1377:7: warning: If memory allocation fails, then there is a possible null pointer dereference: spec [nullPointerOutOfMemory] istgt-20111008/src/istgt_lu_tape.c:1346:17: note: Assuming allocation function fails istgt-20111008/src/istgt_lu_tape.c:1346:17: note: Assignment 'spec=xmalloc(sizeof(*spec))', assigned value is 0 istgt-20111008/src/istgt_lu_tape.c:1369:10: note: Assuming condition is false istgt-20111008/src/istgt_lu_tape.c:1377:7: note: Null pointer dereference istgt-20111008/src/istgt_lu_tape.c:2269:3: style: Variable '*((uint8_t*)(&data[36]))' is reassigned a value before the old one has been used. [redundantAssignment] istgt-20111008/src/istgt_lu_tape.c:2268:3: note: *((uint8_t*)(&data[36])) is assigned istgt-20111008/src/istgt_lu_tape.c:2269:3: note: *((uint8_t*)(&data[36])) is overwritten istgt-20111008/src/istgt_lu_tape.c:5255:16: style: Variable 'spec->prev' is reassigned a value before the old one has been used. [redundantAssignment] istgt-20111008/src/istgt_lu_tape.c:5252:16: note: spec->prev is assigned istgt-20111008/src/istgt_lu_tape.c:5255:16: note: spec->prev is overwritten istgt-20111008/src/istgt_lu_tape.c:314:35: style: Parameter 'spec' can be declared as pointer to const [constParameterPointer] istgt-20111008/src/istgt_lu_tape.c:326:35: style: Parameter 'spec' can be declared as pointer to const [constParameterPointer] istgt-20111008/src/istgt_lu_tape.c:338:36: style: Parameter 'spec' can be declared as pointer to const [constParameterPointer] istgt-20111008/src/istgt_lu_tape.c:350:35: style: Parameter 'spec' can be declared as pointer to const [constParameterPointer] istgt-20111008/src/istgt_lu_tape.c:415:72: style: Parameter 'mbp' can be declared as pointer to const [constParameterPointer] istgt-20111008/src/istgt_lu_tape.c:977:44: style: Parameter 'spec' can be declared as pointer to const [constParameterPointer] istgt-20111008/src/istgt_lu_tape.c:986:41: style: Parameter 'spec' can be declared as pointer to const [constParameterPointer] istgt-20111008/src/istgt_lu_tape.c:1200:55: style: Parameter 'type' can be declared as pointer to const [constParameterPointer] istgt-20111008/src/istgt_lu_tape.c:1200:67: style: Parameter 'flags' can be declared as pointer to const [constParameterPointer] istgt-20111008/src/istgt_lu_tape.c:1200:80: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] istgt-20111008/src/istgt_lu_tape.c:1200:92: style: Parameter 'size' can be declared as pointer to const [constParameterPointer] istgt-20111008/src/istgt_lu_tape.c:3079:50: style: Parameter 'mbp' can be declared as pointer to const [constParameterPointer] istgt-20111008/src/istgt_lu_tape.c:3608:47: style: Parameter 'spec' can be declared as pointer to const [constParameterPointer] istgt-20111008/src/istgt_lu_tape.c:149:11: style: struct member 'tape_markpos_t::junk1' is never used. [unusedStructMember] istgt-20111008/src/istgt_lu_tape.c:485:10: style: Variable 'version' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_tape.c:550:10: style: Variable 'version' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_tape.c:611:10: style: Variable 'index_i' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_tape.c:612:10: style: Variable 'version' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_tape.c:2632:5: style: Variable 'cp' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_tape.c:2715:5: style: Variable 'cp' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_tape.c:2889:12: style: Variable 'mediasize' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_tape.c:2891:10: style: Variable 'marklen' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_tape.c:3233:7: style: Variable 'prev' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_tape.c:3291:16: style: Variable 'found_bot' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_tape.c:3354:16: style: Variable 'found_bot' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_tape.c:3811:3: style: Variable 'u' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_tape.c:3996:12: style: Variable 'mediasize' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_tape.c:4124:12: style: Variable 'mediasize' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_tape.c:4504:8: style: Variable 'eot' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_tape.c:4505:10: style: Variable 'reten' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_tape.c:4650:10: style: Variable 'mdlen' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_tape.c:4651:7: style: Variable 'mt' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_tape.c:4652:8: style: Variable 'dsp' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_tape.c:4698:10: style: Variable 'mdlen' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_tape.c:4699:7: style: Variable 'mt' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_tape.c:4700:8: style: Variable 'dsp' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_tape.c:5147:7: style: Variable 'bt' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_tape.c:5150:14: style: Variable 'partition' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_tape.c:5193:9: style: Variable 'sili' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_md5.c:70:26: style: Checking if unsigned expression 'len' is less than zero. [unsignedLessThanZero] istgt-20111008/src/istgt_misc.c:62:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_misc.c:434:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_misc.c:601:2: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] istgt-20111008/src/istgt_misc.c:269:5: error: Memory is allocated but not initialized: q [uninitdata] istgt-20111008/src/istgt_misc.c:464:8: style: Variable 'total' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_queue.c:92:9: warning: If memory allocation fails, then there is a possible null pointer dereference: qp [nullPointerOutOfMemory] istgt-20111008/src/istgt_queue.c:91:14: note: Assuming allocation function fails istgt-20111008/src/istgt_queue.c:91:14: note: Assignment 'qp=xmalloc(sizeof(*qp))', assigned value is 0 istgt-20111008/src/istgt_queue.c:92:9: note: Null pointer dereference istgt-20111008/src/istgt_queue.c:94:2: warning: If memory allocation fails, then there is a possible null pointer dereference: qp [nullPointerOutOfMemory] istgt-20111008/src/istgt_queue.c:91:14: note: Assuming allocation function fails istgt-20111008/src/istgt_queue.c:91:14: note: Assignment 'qp=xmalloc(sizeof(*qp))', assigned value is 0 istgt-20111008/src/istgt_queue.c:94:2: note: Null pointer dereference istgt-20111008/src/istgt_queue.c:147:9: warning: If memory allocation fails, then there is a possible null pointer dereference: qp [nullPointerOutOfMemory] istgt-20111008/src/istgt_queue.c:146:14: note: Assuming allocation function fails istgt-20111008/src/istgt_queue.c:146:14: note: Assignment 'qp=xmalloc(sizeof(*qp))', assigned value is 0 istgt-20111008/src/istgt_queue.c:147:9: note: Null pointer dereference istgt-20111008/src/istgt_queue.c:149:2: warning: If memory allocation fails, then there is a possible null pointer dereference: qp [nullPointerOutOfMemory] istgt-20111008/src/istgt_queue.c:146:14: note: Assuming allocation function fails istgt-20111008/src/istgt_queue.c:146:14: note: Assignment 'qp=xmalloc(sizeof(*qp))', assigned value is 0 istgt-20111008/src/istgt_queue.c:149:2: note: Null pointer dereference istgt-20111008/src/istgt_sock.c:71:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NI_NUMERICHOST [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_sock.c:122:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PF_UNSPEC [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_sock.c:212:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PF_UNSPEC [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_sock.c:377:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_sock.c:424:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgt_sock.c:435:22: style: Variable 'utp' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgt_sock.c:627:6: style: Variable 'up' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_sock.c:629:7: style: Variable 'idx' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgtcontrol.c:127:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgtcontrol.c:258:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgtcontrol.c:290:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgtcontrol.c:332:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgtcontrol.c:368:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgtcontrol.c:404:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgtcontrol.c:451:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgtcontrol.c:490:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgtcontrol.c:526:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgtcontrol.c:571:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgtcontrol.c:602:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MD5_DIGEST_LENGTH [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgtcontrol.c:894:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgtcontrol.c:1034:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUILD_ETC_ISTGT [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgtcontrol.c:1064:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUILD_ETC_ISTGT [valueFlowBailoutIncompleteVar] istgt-20111008/src/istgtcontrol.c:926:7: style: Assignment 'val=NULL' is redundant with condition 'val==NULL'. [duplicateConditionalAssign] istgt-20111008/src/istgtcontrol.c:925:10: note: Condition 'val==NULL' istgt-20111008/src/istgtcontrol.c:926:7: note: Assignment 'val=NULL' is redundant istgt-20111008/src/istgtcontrol.c:928:22: warning: Possible null pointer dereference: val [nullPointer] istgt-20111008/src/istgtcontrol.c:926:9: note: Assignment 'val=NULL', assigned value is 0 istgt-20111008/src/istgtcontrol.c:928:22: note: Null pointer dereference istgt-20111008/src/istgtcontrol.c:1016:28: warning: Possible null pointer dereference: user [nullPointer] istgt-20111008/src/istgtcontrol.c:1009:17: note: Assignment 'user=secret=muser=msecret=NULL', assigned value is 0 istgt-20111008/src/istgtcontrol.c:1016:28: note: Null pointer dereference istgt-20111008/src/istgtcontrol.c:562:3: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] istgt-20111008/src/istgtcontrol.c:564:5: note: Found duplicate branches for 'if' and 'else'. istgt-20111008/src/istgtcontrol.c:562:3: note: Found duplicate branches for 'if' and 'else'. istgt-20111008/src/istgtcontrol.c:1160:11: style: Variable 'secret' is reassigned a value before the old one has been used. [redundantAssignment] istgt-20111008/src/istgtcontrol.c:1158:11: note: secret is assigned istgt-20111008/src/istgtcontrol.c:1160:11: note: secret is overwritten istgt-20111008/src/istgtcontrol.c:1170:12: style: Variable 'msecret' is reassigned a value before the old one has been used. [redundantAssignment] istgt-20111008/src/istgtcontrol.c:1168:12: note: msecret is assigned istgt-20111008/src/istgtcontrol.c:1170:12: note: msecret is overwritten istgt-20111008/src/istgtcontrol.c:207:38: style: Parameter 's' can be declared as pointer to const [constParameterPointer] istgt-20111008/src/istgtcontrol.c:220:38: style: Parameter 's' can be declared as pointer to const [constParameterPointer] istgt-20111008/src/istgtcontrol.c:302:8: style: Variable 'version' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgtcontrol.c:303:8: style: Variable 'extver' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgtcontrol.c:416:8: style: Variable 'target' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgtcontrol.c:608:8: style: Variable 'label' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgtcontrol.c:609:8: style: Variable 'chap_i' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgtcontrol.c:610:8: style: Variable 'chap_c' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgtcontrol.c:611:8: style: Variable 'chap_n' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgtcontrol.c:612:8: style: Variable 'chap_r' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgtcontrol.c:844:12: style: Variable 'vp' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgtcontrol.c:1076:8: style: Variable 'target' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgtcontrol.c:1077:8: style: Variable 'user' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgtcontrol.c:1078:8: style: Variable 'secret' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgtcontrol.c:1079:8: style: Variable 'muser' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgtcontrol.c:1080:8: style: Variable 'msecret' can be declared as pointer to const [constVariablePointer] istgt-20111008/src/istgtcontrol.c:94:6: style: struct member 'istgt_uctl_t::family' is never used. [unusedStructMember] istgt-20111008/src/istgtcontrol.c:95:7: style: struct member 'istgt_uctl_t::caddr' is never used. [unusedStructMember] istgt-20111008/src/istgtcontrol.c:96:7: style: struct member 'istgt_uctl_t::saddr' is never used. [unusedStructMember] istgt-20111008/src/istgtcontrol.c:116:8: style: struct member 'istgt_uctl_t::arg' is never used. [unusedStructMember] istgt-20111008/src/istgtcontrol.c:713:12: style: Variable 'worksize' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgtcontrol.c:714:9: style: Variable 'workp' is assigned a value that is never used. [unreadVariable] istgt-20111008/src/istgt_lu_dvd.c:195:6: warning: Null pointer dereference: spec [ctunullpointer] istgt-20111008/src/istgt_lu_dvd.c:495:17: note: Assuming allocation function fails istgt-20111008/src/istgt_lu_dvd.c:495:17: note: Assignment 'spec=xmalloc(sizeof(*spec))', assigned value is 0 istgt-20111008/src/istgt_lu_dvd.c:516:31: note: Calling function istgt_lu_dvd_load_media, 1st argument is null istgt-20111008/src/istgt_lu_dvd.c:220:6: note: Calling function istgt_lu_dvd_media_present, 1st argument is null istgt-20111008/src/istgt_lu_dvd.c:195:6: note: Dereferencing argument spec that is null istgt-20111008/src/istgt_lu_tape.c:979:6: warning: Null pointer dereference: spec [ctunullpointer] istgt-20111008/src/istgt_lu_tape.c:1346:17: note: Assuming allocation function fails istgt-20111008/src/istgt_lu_tape.c:1346:17: note: Assignment 'spec=xmalloc(sizeof(*spec))', assigned value is 0 istgt-20111008/src/istgt_lu_tape.c:1368:32: note: Calling function istgt_lu_tape_load_media, 1st argument is null istgt-20111008/src/istgt_lu_tape.c:1002:6: note: Calling function istgt_lu_tape_media_present, 1st argument is null istgt-20111008/src/istgt_lu_tape.c:979:6: note: Dereferencing argument spec that is null diff: head istgt-20111008/src/istgt_conf.c:444:39: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] istgt-20111008/src/istgt_conf.c:451:15: note: Assuming allocation function fails istgt-20111008/src/istgt_conf.c:451:15: note: Assignment 'q=xmalloc(n+n2+1)', assigned value is 0 istgt-20111008/src/istgt_conf.c:457:0: note: Assignment 'p=q', assigned value is 0 istgt-20111008/src/istgt_conf.c:444:39: note: Null pointer dereference 2.17.0 istgt-20111008/src/istgt_conf.c:453:13: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] istgt-20111008/src/istgt_conf.c:451:15: note: Assuming allocation function fails istgt-20111008/src/istgt_conf.c:451:15: note: Assignment 'q=xmalloc(n+n2+1)', assigned value is 0 istgt-20111008/src/istgt_conf.c:453:13: note: Null pointer addition head istgt-20111008/src/istgt_conf.c:453:13: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] istgt-20111008/src/istgt_conf.c:451:15: note: Assuming allocation function fails istgt-20111008/src/istgt_conf.c:451:15: note: Assignment 'q=xmalloc(n+n2+1)', assigned value is 0 istgt-20111008/src/istgt_conf.c:453:13: note: Null pointer addition 2.17.0 istgt-20111008/src/istgt_iscsi.c:660:7: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] istgt-20111008/src/istgt_iscsi.c:657:20: note: Assuming allocation function fails istgt-20111008/src/istgt_iscsi.c:657:20: note: Assignment 'lu_task=xmalloc(alloc_len)', assigned value is 0 istgt-20111008/src/istgt_iscsi.c:660:7: note: Null pointer addition head istgt-20111008/src/istgt_iscsi.c:660:7: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] istgt-20111008/src/istgt_iscsi.c:657:20: note: Assuming allocation function fails istgt-20111008/src/istgt_iscsi.c:657:20: note: Assignment 'lu_task=xmalloc(alloc_len)', assigned value is 0 istgt-20111008/src/istgt_iscsi.c:660:7: note: Null pointer addition head istgt-20111008/src/istgt_iscsi.c:661:56: warning: If memory allocation fails, then there is a possible null pointer dereference: lu_task [nullPointerOutOfMemory] istgt-20111008/src/istgt_iscsi.c:657:20: note: Assuming allocation function fails istgt-20111008/src/istgt_iscsi.c:657:20: note: Assignment 'lu_task=xmalloc(alloc_len)', assigned value is 0 istgt-20111008/src/istgt_iscsi.c:661:56: note: Null pointer dereference head istgt-20111008/src/istgt_iscsi.c:663:42: warning: If memory allocation fails, then there is a possible null pointer dereference: lu_task [nullPointerOutOfMemory] istgt-20111008/src/istgt_iscsi.c:657:20: note: Assuming allocation function fails istgt-20111008/src/istgt_iscsi.c:657:20: note: Assignment 'lu_task=xmalloc(alloc_len)', assigned value is 0 istgt-20111008/src/istgt_iscsi.c:663:42: note: Null pointer dereference 2.17.0 istgt-20111008/src/istgt_lu.c:2536:38: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] istgt-20111008/src/istgt_lu.c:2535:25: note: Assuming allocation function fails istgt-20111008/src/istgt_lu.c:2535:25: note: Assignment 'lu_task->data=xmalloc(alloc_len)', assigned value is 0 istgt-20111008/src/istgt_lu.c:2536:38: note: Null pointer addition head istgt-20111008/src/istgt_lu.c:2536:38: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] istgt-20111008/src/istgt_lu.c:2535:25: note: Assuming allocation function fails istgt-20111008/src/istgt_lu.c:2535:25: note: Assignment 'lu_task->data=xmalloc(alloc_len)', assigned value is 0 istgt-20111008/src/istgt_lu.c:2536:38: note: Null pointer addition 2.17.0 istgt-20111008/src/istgt_misc.c:114:9: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] istgt-20111008/src/istgt_misc.c:113:13: note: Assuming allocation function fails istgt-20111008/src/istgt_misc.c:113:13: note: Assignment 'p=xmalloc(size)', assigned value is 0 istgt-20111008/src/istgt_misc.c:114:9: note: Null pointer dereference 2.17.0 istgt-20111008/src/istgt_misc.c:115:2: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] istgt-20111008/src/istgt_misc.c:113:13: note: Assuming allocation function fails istgt-20111008/src/istgt_misc.c:113:13: note: Assignment 'p=xmalloc(size)', assigned value is 0 istgt-20111008/src/istgt_misc.c:115:2: note: Null pointer dereference DONE