2025-07-09 17:07 ftp://ftp.de.debian.org/debian/pool/main/libs/libshairport/libshairport_1.2.1~git20120510.cbed0c1.orig.tar.gz cppcheck-options: --library=posix --library=gnu --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: 8f3d36a (2025-07-08 11:07:56 +0200) count: 95 95 elapsed-time: 1.4 1.4 head-timing-info: old-timing-info: head results: libshairport-1.2.1~git20120510.cbed0c1/src/alac.c:499:28: style: The if condition is the same as the previous if condition [duplicateCondition] libshairport-1.2.1~git20120510.cbed0c1/src/alac.c:465:28: note: First condition libshairport-1.2.1~git20120510.cbed0c1/src/alac.c:499:28: note: Second condition libshairport-1.2.1~git20120510.cbed0c1/src/alac.c:1125:5: warning: If memory allocation fails, then there is a possible null pointer dereference: newfile [nullPointerOutOfMemory] libshairport-1.2.1~git20120510.cbed0c1/src/alac.c:1123:32: note: Assuming allocation function fails libshairport-1.2.1~git20120510.cbed0c1/src/alac.c:1123:32: note: Assignment 'newfile=malloc(sizeof(struct alac_file))', assigned value is 0 libshairport-1.2.1~git20120510.cbed0c1/src/alac.c:1125:5: note: Null pointer dereference libshairport-1.2.1~git20120510.cbed0c1/src/alac.c:1126:5: warning: If memory allocation fails, then there is a possible null pointer dereference: newfile [nullPointerOutOfMemory] libshairport-1.2.1~git20120510.cbed0c1/src/alac.c:1123:32: note: Assuming allocation function fails libshairport-1.2.1~git20120510.cbed0c1/src/alac.c:1123:32: note: Assignment 'newfile=malloc(sizeof(struct alac_file))', assigned value is 0 libshairport-1.2.1~git20120510.cbed0c1/src/alac.c:1126:5: note: Null pointer dereference libshairport-1.2.1~git20120510.cbed0c1/src/alac.c:1127:5: warning: If memory allocation fails, then there is a possible null pointer dereference: newfile [nullPointerOutOfMemory] libshairport-1.2.1~git20120510.cbed0c1/src/alac.c:1123:32: note: Assuming allocation function fails libshairport-1.2.1~git20120510.cbed0c1/src/alac.c:1123:32: note: Assignment 'newfile=malloc(sizeof(struct alac_file))', assigned value is 0 libshairport-1.2.1~git20120510.cbed0c1/src/alac.c:1127:5: note: Null pointer dereference libshairport-1.2.1~git20120510.cbed0c1/src/alac.c:467:13: style: Local variable 'i' shadows outer variable [shadowVariable] libshairport-1.2.1~git20120510.cbed0c1/src/alac.c:435:9: note: Shadowed declaration libshairport-1.2.1~git20120510.cbed0c1/src/alac.c:467:13: note: Shadow variable libshairport-1.2.1~git20120510.cbed0c1/src/alac.c:780:21: style: Local variable 'i' shadows outer variable [shadowVariable] libshairport-1.2.1~git20120510.cbed0c1/src/alac.c:759:17: note: Shadowed declaration libshairport-1.2.1~git20120510.cbed0c1/src/alac.c:780:21: note: Shadow variable libshairport-1.2.1~git20120510.cbed0c1/src/alac.c:978:21: style: Local variable 'i' shadows outer variable [shadowVariable] libshairport-1.2.1~git20120510.cbed0c1/src/alac.c:944:17: note: Shadowed declaration libshairport-1.2.1~git20120510.cbed0c1/src/alac.c:978:21: note: Shadow variable libshairport-1.2.1~git20120510.cbed0c1/src/alac.c:427:53: style: Parameter 'error_buffer' can be declared as pointer to const [constParameterPointer] libshairport-1.2.1~git20120510.cbed0c1/src/alac.c:567:37: style: Parameter 'buffer_a' can be declared as pointer to const [constParameterPointer] libshairport-1.2.1~git20120510.cbed0c1/src/alac.c:567:56: style: Parameter 'buffer_b' can be declared as pointer to const [constParameterPointer] libshairport-1.2.1~git20120510.cbed0c1/src/alac.c:626:37: style: Parameter 'buffer_a' can be declared as pointer to const [constParameterPointer] libshairport-1.2.1~git20120510.cbed0c1/src/alac.c:626:56: style: Parameter 'buffer_b' can be declared as pointer to const [constParameterPointer] libshairport-1.2.1~git20120510.cbed0c1/src/alac.c:628:30: style: Parameter 'uncompressed_bytes_buffer_a' can be declared as pointer to const [constParameterPointer] libshairport-1.2.1~git20120510.cbed0c1/src/alac.c:628:68: style: Parameter 'uncompressed_bytes_buffer_b' can be declared as pointer to const [constParameterPointer] libshairport-1.2.1~git20120510.cbed0c1/src/alac.c:125:7: style: Variable 'ptr' is assigned a value that is never used. [unreadVariable] libshairport-1.2.1~git20120510.cbed0c1/src/hairtunes.c:228:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] libshairport-1.2.1~git20120510.cbed0c1/src/hairtunes.c:405:74: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AES_DECRYPT [valueFlowBailoutIncompleteVar] libshairport-1.2.1~git20120510.cbed0c1/src/hairtunes.c:555:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] libshairport-1.2.1~git20120510.cbed0c1/src/hairtunes.c:778:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] libshairport-1.2.1~git20120510.cbed0c1/src/hairtunes.c:888:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] libshairport-1.2.1~git20120510.cbed0c1/src/hairtunes.c:949:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AO_FMT_NATIVE [valueFlowBailoutIncompleteVar] libshairport-1.2.1~git20120510.cbed0c1/src/hairtunes.c:849:21: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] libshairport-1.2.1~git20120510.cbed0c1/src/hairtunes.c:609:26: warning: Either the condition 'csock==-1' is redundant or bind() argument nr 1 can have invalid value. The value is -1 but the valid values are '0:'. [invalidFunctionArg] libshairport-1.2.1~git20120510.cbed0c1/src/hairtunes.c:603:18: note: Assuming that condition 'csock==-1' is not redundant libshairport-1.2.1~git20120510.cbed0c1/src/hairtunes.c:609:26: note: Invalid argument libshairport-1.2.1~git20120510.cbed0c1/src/hairtunes.c:178:67: style:inconclusive: Function '__shairport_hairtunes_init' argument 3 names different: declaration 'pFmtpstr' definition 'fmtpstr'. [funcArgNamesDifferent] libshairport-1.2.1~git20120510.cbed0c1/src/hairtunes.h:4:67: note: Function '__shairport_hairtunes_init' argument 3 names different: declaration 'pFmtpstr' definition 'fmtpstr'. libshairport-1.2.1~git20120510.cbed0c1/src/hairtunes.c:178:67: note: Function '__shairport_hairtunes_init' argument 3 names different: declaration 'pFmtpstr' definition 'fmtpstr'. libshairport-1.2.1~git20120510.cbed0c1/src/hairtunes.c:262:44: style:inconclusive: Function '__shairport_hairtunes_setvolume' argument 1 names different: declaration 'vol' definition 'f'. [funcArgNamesDifferent] libshairport-1.2.1~git20120510.cbed0c1/src/hairtunes.h:6:44: note: Function '__shairport_hairtunes_setvolume' argument 1 names different: declaration 'vol' definition 'f'. libshairport-1.2.1~git20120510.cbed0c1/src/hairtunes.c:262:44: note: Function '__shairport_hairtunes_setvolume' argument 1 names different: declaration 'vol' definition 'f'. libshairport-1.2.1~git20120510.cbed0c1/src/hairtunes.c:813:13: style: Local variable 'dev' shadows outer variable [shadowVariable] libshairport-1.2.1~git20120510.cbed0c1/src/hairtunes.c:922:19: note: Shadowed declaration libshairport-1.2.1~git20120510.cbed0c1/src/hairtunes.c:813:13: note: Shadow variable libshairport-1.2.1~git20120510.cbed0c1/src/hairtunes.c:841:17: style: Local variable 'buf_fill' shadows outer variable [shadowVariable] libshairport-1.2.1~git20120510.cbed0c1/src/hairtunes.c:817:18: note: Shadowed declaration libshairport-1.2.1~git20120510.cbed0c1/src/hairtunes.c:841:17: note: Shadow variable libshairport-1.2.1~git20120510.cbed0c1/src/hairtunes.c:178:38: style: Parameter 'pAeskey' can be declared as pointer to const [constParameterPointer] libshairport-1.2.1~git20120510.cbed0c1/src/hairtunes.c:178:53: style: Parameter 'pAesiv' can be declared as pointer to const [constParameterPointer] libshairport-1.2.1~git20120510.cbed0c1/src/hairtunes.c:221:11: style: Variable 'arg' can be declared as pointer to const [constVariablePointer] libshairport-1.2.1~git20120510.cbed0c1/src/hairtunes.c:556:19: style: Variable 'si_p' can be declared as pointer to const [constVariablePointer] libshairport-1.2.1~git20120510.cbed0c1/src/hairtunes.c:657:46: style: Parameter 'a' can be declared as const array [constParameter] libshairport-1.2.1~git20120510.cbed0c1/src/hairtunes.c:657:58: style: Parameter 'b' can be declared as const array [constParameter] libshairport-1.2.1~git20120510.cbed0c1/src/hairtunes.c:770:54: style: Parameter 'inptr' can be declared as pointer to const [constParameterPointer] libshairport-1.2.1~git20120510.cbed0c1/src/hairtunes.c:915:29: style: Parameter 'pipe' can be declared as pointer to const [constParameterPointer] libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:261:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:348:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:457:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:582:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:720:73: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RSA_PKCS1_PADDING [valueFlowBailoutIncompleteVar] libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:841:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RSA_PKCS1_OAEP_PADDING [valueFlowBailoutIncompleteVar] libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:262:7: warning: Return value of function dup() is not used. [ignoredReturnValue] libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:263:7: warning: Return value of function dup() is not used. [ignoredReturnValue] libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:277:12: style: Condition '!tUseKnownHWID' is always true [knownConditionTrueFalse] libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:268:7: note: Assuming that condition '!tUseKnownHWID' is not redundant libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:277:12: note: Condition '!tUseKnownHWID' is always true libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:1025:16: warning: If memory allocation fails, then there is a possible null pointer dereference: buffer [nullPointerOutOfMemory] libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:1024:32: note: Assuming allocation function fails libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:1024:18: note: Assignment 'buffer=(char*)malloc(iContentSize*sizeof(char))', assigned value is 0 libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:1025:16: note: Null pointer dereference libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:1205:5: warning: If memory allocation fails, then there is a possible null pointer dereference: tTmpBuf [nullPointerOutOfMemory] libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:1203:27: note: Assuming allocation function fails libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:1203:27: note: Assignment 'tTmpBuf=malloc(tNewSize)', assigned value is 0 libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:1205:5: note: Null pointer dereference libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:1206:12: warning: If memory allocation fails, then there is a possible null pointer dereference: tTmpBuf [nullPointerOutOfMemory] libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:1203:27: note: Assuming allocation function fails libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:1203:27: note: Assignment 'tTmpBuf=malloc(tNewSize)', assigned value is 0 libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:1206:12: note: Null pointer dereference libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:1207:12: warning: If memory allocation fails, then there is a possible null pointer dereference: tTmpBuf [nullPointerOutOfMemory] libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:1203:27: note: Assuming allocation function fails libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:1203:27: note: Assignment 'tTmpBuf=malloc(tNewSize)', assigned value is 0 libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:1207:12: note: Null pointer dereference libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:645:30: error: Overflow in pointer arithmetic, NULL pointer is subtracted. [nullPointerArithmetic] libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:633:23: note: Assignment 'tShortest=NULL', assigned value is 0 libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:635:18: note: Assuming condition is false libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:645:30: note: Null pointer subtraction libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:144:49: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:869:48: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:677:110: style:inconclusive: Function 'buildAppleResponse' argument 4 names different: declaration 'pHwAddr' definition 'pHWID'. [funcArgNamesDifferent] libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:98:110: note: Function 'buildAppleResponse' argument 4 names different: declaration 'pHwAddr' definition 'pHWID'. libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:677:110: note: Function 'buildAppleResponse' argument 4 names different: declaration 'pHwAddr' definition 'pHWID'. libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:746:104: style:inconclusive: Function 'parseMessage' argument 4 names different: declaration 'pHWADDR' definition 'pHWID'. [funcArgNamesDifferent] libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:89:105: note: Function 'parseMessage' argument 4 names different: declaration 'pHWADDR' definition 'pHWID'. libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:746:104: note: Function 'parseMessage' argument 4 names different: declaration 'pHWADDR' definition 'pHWID'. libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:1087:47: style:inconclusive: Function 'cleanupBuffers' argument 1 names different: declaration 'pConnection' definition 'pConn'. [funcArgNamesDifferent] libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:76:47: note: Function 'cleanupBuffers' argument 1 names different: declaration 'pConnection' definition 'pConn'. libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:1087:47: note: Function 'cleanupBuffers' argument 1 names different: declaration 'pConnection' definition 'pConn'. libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:1101:40: style:inconclusive: Function 'cleanup' argument 1 names different: declaration 'pConnection' definition 'pConn'. [funcArgNamesDifferent] libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:77:40: note: Function 'cleanup' argument 1 names different: declaration 'pConnection' definition 'pConn'. libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:1101:40: note: Function 'cleanup' argument 1 names different: declaration 'pConnection' definition 'pConn'. libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:489:9: style: Local variable 'addr' shadows outer variable [shadowVariable] libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:460:27: note: Shadowed declaration libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:489:9: note: Shadow variable libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:810:11: style: Local variable 'tContent' shadows outer variable [shadowVariable] libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:754:9: note: Shadowed declaration libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:810:11: note: Shadow variable libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:1005:11: style: Local variable 'tContent' shadows outer variable [shadowVariable] libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:754:9: note: Shadowed declaration libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:1005:11: note: Shadow variable libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:127:43: style: Parameter 'ao' can be declared as pointer to const [constParameterPointer] libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:132:45: style: Parameter 'funcPtr' can be declared as pointer to const [constParameterPointer] libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:157:9: style: Variable 'arg' can be declared as pointer to const [constVariablePointer] libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:416:26: style: Parameter 'tReadBuf' can be declared as pointer to const [constParameterPointer] libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:476:27: style: Variable 's' can be declared as pointer to const [constVariablePointer] libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:482:28: style: Variable 's' can be declared as pointer to const [constVariablePointer] libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:623:110: style: Parameter 'pDelims' can be declared as pointer to const [constParameterPointer] libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:633:11: style: Variable 'tShortest' can be declared as pointer to const [constVariablePointer] libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:677:72: style: Parameter 'pIpBin' can be declared as pointer to const [constParameterPointer] libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:677:110: style: Parameter 'pHWID' can be declared as pointer to const [constParameterPointer] libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:1004:11: style: Variable 'contentType' can be declared as pointer to const [constVariablePointer] libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:1005:11: style: Variable 'tContent' can be declared as pointer to const [constVariablePointer] libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:1187:46: style: Parameter 'pBuf' can be declared as pointer to const [constParameterPointer] libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:1197:63: style: Parameter 'pNewBuf' can be declared as pointer to const [constParameterPointer] libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:1233:31: style: Parameter 'pChar' can be declared as pointer to const [constParameterPointer] libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:510:23: style: Variable 'tMoreDataNeeded' is assigned a value that is never used. [unreadVariable] libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:523:16: style: Variable 'tError' is assigned a value that is never used. [unreadVariable] libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:627:13: style: Variable 'tSize' is assigned a value that is never used. [unreadVariable] libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.c:101:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AI_PASSIVE [valueFlowBailoutIncompleteVar] libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.c:161:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.c:237:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BIO_FLAGS_BASE64_NO_NL [valueFlowBailoutIncompleteVar] libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.c:263:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BIO_FLAGS_BASE64_NO_NL [valueFlowBailoutIncompleteVar] libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.c:228:12: warning: If memory allocation fails, then there is a possible null pointer dereference: input [nullPointerOutOfMemory] libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.c:227:19: note: Assuming allocation function fails libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.c:227:19: note: Assignment 'input=malloc(length*sizeof(unsigned char))', assigned value is 0 libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.c:228:12: note: Null pointer dereference libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.c:229:12: warning: If memory allocation fails, then there is a possible null pointer dereference: input [nullPointerOutOfMemory] libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.c:227:19: note: Assuming allocation function fails libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.c:227:19: note: Assignment 'input=malloc(length*sizeof(unsigned char))', assigned value is 0 libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.c:229:12: note: Null pointer dereference libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.c:234:10: warning: If memory allocation fails, then there is a possible null pointer dereference: buffer [nullPointerOutOfMemory] libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.c:233:32: note: Assuming allocation function fails libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.c:233:18: note: Assignment 'buffer=(char*)malloc(length)', assigned value is 0 libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.c:234:10: note: Null pointer dereference libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.c:273:10: warning: If memory allocation fails, then there is a possible null pointer dereference: buff [nullPointerOutOfMemory] libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.c:272:30: note: Assuming allocation function fails libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.c:272:16: note: Assignment 'buff=(char*)malloc(bptr->length)', assigned value is 0 libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.c:273:10: note: Null pointer dereference libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.c:274:3: warning: If memory allocation fails, then there is a possible null pointer dereference: buff [nullPointerOutOfMemory] libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.c:272:30: note: Assuming allocation function fails libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.c:272:16: note: Assignment 'buff=(char*)malloc(bptr->length)', assigned value is 0 libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.c:274:3: note: Null pointer dereference libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.c:230:17: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.c:227:19: note: Assuming allocation function fails libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.c:227:19: note: Assignment 'input=malloc(length*sizeof(unsigned char))', assigned value is 0 libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.c:230:17: note: Null pointer addition libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.c:61:47: style:inconclusive: Function '__shairport_setup_client' argument 1 names different: declaration 'server_info' definition 'server_host'. [funcArgNamesDifferent] libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.h:26:47: note: Function '__shairport_setup_client' argument 1 names different: declaration 'server_info' definition 'server_host'. libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.c:61:47: note: Function '__shairport_setup_client' argument 1 names different: declaration 'server_info' definition 'server_host'. libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.c:112:47: style:inconclusive: Function '__shairport_setup_server' argument 1 names different: declaration 'server_address' definition 'server_addr'. [funcArgNamesDifferent] libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.h:27:47: note: Function '__shairport_setup_server' argument 1 names different: declaration 'server_address' definition 'server_addr'. libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.c:112:47: note: Function '__shairport_setup_server' argument 1 names different: declaration 'server_address' definition 'server_addr'. libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.c:219:48: style:inconclusive: Function '__shairport_decode_base64' argument 1 names different: declaration 'input' definition 'pInput'. [funcArgNamesDifferent] libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.h:34:48: note: Function '__shairport_decode_base64' argument 1 names different: declaration 'input' definition 'pInput'. libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.c:219:48: note: Function '__shairport_decode_base64' argument 1 names different: declaration 'input' definition 'pInput'. libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.c:219:60: style:inconclusive: Function '__shairport_decode_base64' argument 2 names different: declaration 'length' definition 'pLength'. [funcArgNamesDifferent] libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.h:34:59: note: Function '__shairport_decode_base64' argument 2 names different: declaration 'length' definition 'pLength'. libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.c:219:60: note: Function '__shairport_decode_base64' argument 2 names different: declaration 'length' definition 'pLength'. libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.c:219:74: style:inconclusive: Function '__shairport_decode_base64' argument 3 names different: declaration 'tActualLength' definition 'pActualLength'. [funcArgNamesDifferent] libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.h:34:72: note: Function '__shairport_decode_base64' argument 3 names different: declaration 'tActualLength' definition 'pActualLength'. libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.c:219:74: note: Function '__shairport_decode_base64' argument 3 names different: declaration 'tActualLength' definition 'pActualLength'. libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.c:91:31: style: Parameter 'pHostname' can be declared as pointer to const [constParameterPointer] libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.c:91:48: style: Parameter 'pService' can be declared as pointer to const [constParameterPointer] libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.c:63:17: style: Variable 'tSockDesc' is assigned a value that is never used. [unreadVariable] libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:1245:10: warning: If memory allocation fails, then there is a possible null pointer dereference: pTrimDest [ctunullpointerOutOfMemory] libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:1228:27: note: Assuming allocation function fails libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:1228:27: note: Assignment 'tTrimDest=malloc(sizeof(char)*(pSize+tAdditionalSize))', assigned value is 0 libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:1229:20: note: Calling function getTrimmed, 5th argument is null libshairport-1.2.1~git20120510.cbed0c1/src/shairport.c:1245:10: note: Dereferencing argument pTrimDest that is null diff: 2.17.0 libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.c:230:17: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.c:227:19: note: Assuming allocation function fails libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.c:227:19: note: Assignment 'input=malloc(length*sizeof(unsigned char))', assigned value is 0 libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.c:230:17: note: Null pointer addition head libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.c:230:17: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.c:227:19: note: Assuming allocation function fails libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.c:227:19: note: Assignment 'input=malloc(length*sizeof(unsigned char))', assigned value is 0 libshairport-1.2.1~git20120510.cbed0c1/src/socketlib.c:230:17: note: Null pointer addition DONE