2026-08-21 07:04 ftp://ftp.de.debian.org/debian/pool/main/r/rtmpdump/rtmpdump_2.6.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=openssl --library=zlib --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j96 platform: Linux-6.8.0-137-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.4.0 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0 cppcheck: head 2.21.0 head-info: 2e19539 (2026-08-18 17:04:48 +0200) count: 142 141 elapsed-time: 0.7 0.6 head-timing-info: old-timing-info: head results: rtmpdump-2.6/thread.c:49:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PTHREAD_CREATE_DETACHED [valueFlowBailoutIncompleteVar] rtmpdump-2.6/rtmpgw.c:341:59: error: There is an unknown macro here somewhere. Configuration is required. If RTMPDUMP_VERSION is a macro then please configure it. [unknownMacro] rtmpdump-2.6/librtmp/log.c:58:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rtmpdump-2.6/librtmp/log.c:194:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rtmpdump-2.6/librtmp/log.c:219:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rtmpdump-2.6/librtmp/handshake.h:70:2: error: #error Your OpenSSL is too old, need 0.9.8 or newer with SHA256 [preprocessorErrorDirective] rtmpdump-2.6/librtmp/log.c:77:37: style:inconclusive: Function 'RTMP_LogSetLevel' argument 1 names different: declaration 'lvl' definition 'level'. [funcArgNamesDifferent] rtmpdump-2.6/librtmp/log.h:62:37: note: Function 'RTMP_LogSetLevel' argument 1 names different: declaration 'lvl' definition 'level'. rtmpdump-2.6/librtmp/log.c:77:37: note: Function 'RTMP_LogSetLevel' argument 1 names different: declaration 'lvl' definition 'level'. rtmpdump-2.6/librtmp/log.c:82:44: style:inconclusive: Function 'RTMP_LogSetCallback' argument 1 names different: declaration 'cb' definition 'cbp'. [funcArgNamesDifferent] rtmpdump-2.6/librtmp/log.h:49:44: note: Function 'RTMP_LogSetCallback' argument 1 names different: declaration 'cb' definition 'cbp'. rtmpdump-2.6/librtmp/log.c:82:44: note: Function 'RTMP_LogSetCallback' argument 1 names different: declaration 'cb' definition 'cbp'. rtmpdump-2.6/librtmp/log.c:169:7: style: Variable 'off' is assigned a value that is never used. [unreadVariable] rtmpdump-2.6/librtmp/amf.c:415:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] rtmpdump-2.6/librtmp/amf.c:480:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] rtmpdump-2.6/librtmp/amf.c:609:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] rtmpdump-2.6/librtmp/amf.c:630:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] rtmpdump-2.6/librtmp/amf.c:1104:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] rtmpdump-2.6/librtmp/amf.c:1261:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable av_len [valueFlowBailoutIncompleteVar] rtmpdump-2.6/librtmp/hashswf.c:106:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_in [valueFlowBailoutIncompleteVar] rtmpdump-2.6/librtmp/hashswf.c:620:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] rtmpdump-2.6/rtmpsrv.c:476:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] rtmpdump-2.6/rtmpsrv.c:768:75: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] rtmpdump-2.6/rtmpsrv.c:888:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable timeval [valueFlowBailoutIncompleteVar] rtmpdump-2.6/rtmpsrv.c:957:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_in [valueFlowBailoutIncompleteVar] rtmpdump-2.6/rtmpsrv.c:998:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] rtmpdump-2.6/rtmpsrv.c:1065:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_DFL [valueFlowBailoutIncompleteVar] rtmpdump-2.6/rtmpsrv.c:1081:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RTMPDUMP_VERSION [valueFlowBailoutIncompleteVar] rtmpdump-2.6/rtmpdump.c:98:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] rtmpdump-2.6/rtmpdump.c:230:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] rtmpdump-2.6/rtmpdump.c:524:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] rtmpdump-2.6/rtmpdump.c:806:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RTMPDUMP_VERSION [valueFlowBailoutIncompleteVar] rtmpdump-2.6/rtmpsuck.c:169:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] rtmpdump-2.6/rtmpsuck.c:459:74: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] rtmpdump-2.6/rtmpsuck.c:749:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable timeval [valueFlowBailoutIncompleteVar] rtmpdump-2.6/rtmpsuck.c:1021:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_in [valueFlowBailoutIncompleteVar] rtmpdump-2.6/rtmpsuck.c:1065:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] rtmpdump-2.6/rtmpsuck.c:1134:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_DFL [valueFlowBailoutIncompleteVar] rtmpdump-2.6/rtmpsuck.c:1148:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RTMPDUMP_VERSION [valueFlowBailoutIncompleteVar] rtmpdump-2.6/librtmp/amf.c:91:8: portability:inconclusive: Casting from double * to unsigned char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] rtmpdump-2.6/librtmp/amf.c:212:10: portability:inconclusive: Casting from double * to unsigned char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] rtmpdump-2.6/librtmp/amf.c:702:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] rtmpdump-2.6/librtmp/amf.c:713:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] rtmpdump-2.6/librtmp/amf.c:729:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] rtmpdump-2.6/librtmp/amf.c:772:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] rtmpdump-2.6/librtmp/amf.c:778:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] rtmpdump-2.6/librtmp/amf.c:68:42: style:inconclusive: Function 'AMF_DecodeString' argument 2 names different: declaration 'str' definition 'bv'. [funcArgNamesDifferent] rtmpdump-2.6/librtmp/amf.h:101:50: note: Function 'AMF_DecodeString' argument 2 names different: declaration 'str' definition 'bv'. rtmpdump-2.6/librtmp/amf.c:68:42: note: Function 'AMF_DecodeString' argument 2 names different: declaration 'str' definition 'bv'. rtmpdump-2.6/librtmp/amf.c:75:46: style:inconclusive: Function 'AMF_DecodeLongString' argument 2 names different: declaration 'str' definition 'bv'. [funcArgNamesDifferent] rtmpdump-2.6/librtmp/amf.h:102:54: note: Function 'AMF_DecodeLongString' argument 2 names different: declaration 'str' definition 'bv'. rtmpdump-2.6/librtmp/amf.c:75:46: note: Function 'AMF_DecodeLongString' argument 2 names different: declaration 'str' definition 'bv'. rtmpdump-2.6/librtmp/amf.c:174:58: style:inconclusive: Function 'AMF_EncodeString' argument 3 names different: declaration 'str' definition 'bv'. [funcArgNamesDifferent] rtmpdump-2.6/librtmp/amf.h:86:67: note: Function 'AMF_EncodeString' argument 3 names different: declaration 'str' definition 'bv'. rtmpdump-2.6/librtmp/amf.c:174:58: note: Function 'AMF_EncodeString' argument 3 names different: declaration 'str' definition 'bv'. rtmpdump-2.6/librtmp/amf.c:273:63: style:inconclusive: Function 'AMF_EncodeNamedString' argument 3 names different: declaration 'name' definition 'strName'. [funcArgNamesDifferent] rtmpdump-2.6/librtmp/amf.h:94:72: note: Function 'AMF_EncodeNamedString' argument 3 names different: declaration 'name' definition 'strName'. rtmpdump-2.6/librtmp/amf.c:273:63: note: Function 'AMF_EncodeNamedString' argument 3 names different: declaration 'name' definition 'strName'. rtmpdump-2.6/librtmp/amf.c:273:84: style:inconclusive: Function 'AMF_EncodeNamedString' argument 4 names different: declaration 'value' definition 'strValue'. [funcArgNamesDifferent] rtmpdump-2.6/librtmp/amf.h:94:91: note: Function 'AMF_EncodeNamedString' argument 4 names different: declaration 'value' definition 'strValue'. rtmpdump-2.6/librtmp/amf.c:273:84: note: Function 'AMF_EncodeNamedString' argument 4 names different: declaration 'value' definition 'strValue'. rtmpdump-2.6/librtmp/amf.c:286:63: style:inconclusive: Function 'AMF_EncodeNamedNumber' argument 3 names different: declaration 'name' definition 'strName'. [funcArgNamesDifferent] rtmpdump-2.6/librtmp/amf.h:95:72: note: Function 'AMF_EncodeNamedNumber' argument 3 names different: declaration 'name' definition 'strName'. rtmpdump-2.6/librtmp/amf.c:286:63: note: Function 'AMF_EncodeNamedNumber' argument 3 names different: declaration 'name' definition 'strName'. rtmpdump-2.6/librtmp/amf.c:299:64: style:inconclusive: Function 'AMF_EncodeNamedBoolean' argument 3 names different: declaration 'name' definition 'strName'. [funcArgNamesDifferent] rtmpdump-2.6/librtmp/amf.h:96:73: note: Function 'AMF_EncodeNamedBoolean' argument 3 names different: declaration 'name' definition 'strName'. rtmpdump-2.6/librtmp/amf.c:299:64: note: Function 'AMF_EncodeNamedBoolean' argument 3 names different: declaration 'name' definition 'strName'. rtmpdump-2.6/librtmp/amf.c:1033:65: style:inconclusive: Function 'AMF3_Decode' argument 4 names different: declaration 'bDecodeName' definition 'bAMFData'. [funcArgNamesDifferent] rtmpdump-2.6/librtmp/amf.h:115:9: note: Function 'AMF3_Decode' argument 4 names different: declaration 'bDecodeName' definition 'bAMFData'. rtmpdump-2.6/librtmp/amf.c:1033:65: note: Function 'AMF3_Decode' argument 4 names different: declaration 'bDecodeName' definition 'bAMFData'. rtmpdump-2.6/librtmp/amf.c:1306:38: style:inconclusive: Function 'AMF3CD_GetProp' argument 2 names different: declaration 'idx' definition 'nIndex'. [funcArgNamesDifferent] rtmpdump-2.6/librtmp/amf.h:158:47: note: Function 'AMF3CD_GetProp' argument 2 names different: declaration 'idx' definition 'nIndex'. rtmpdump-2.6/librtmp/amf.c:1306:38: note: Function 'AMF3CD_GetProp' argument 2 names different: declaration 'idx' definition 'nIndex'. rtmpdump-2.6/librtmp/amf.c:692:6: style: Local variable 'nRes' shadows outer variable [shadowVariable] rtmpdump-2.6/librtmp/amf.c:623:7: note: Shadowed variable rtmpdump-2.6/librtmp/amf.c:692:6: note: Shadow local variable rtmpdump-2.6/librtmp/amf.c:782:6: style: Local variable 'nRes' shadows outer variable [shadowVariable] rtmpdump-2.6/librtmp/amf.c:623:7: note: Shadowed variable rtmpdump-2.6/librtmp/amf.c:782:6: note: Shadow local variable rtmpdump-2.6/librtmp/amf.c:1157:12: style: Local variable 'len' shadows outer variable [shadowVariable] rtmpdump-2.6/librtmp/amf.c:1037:7: note: Shadowed variable rtmpdump-2.6/librtmp/amf.c:1157:12: note: Shadow local variable rtmpdump-2.6/librtmp/amf.c:43:18: style: Variable 'c' can be declared as pointer to const [constVariablePointer] rtmpdump-2.6/librtmp/amf.c:52:18: style: Variable 'c' can be declared as pointer to const [constVariablePointer] rtmpdump-2.6/librtmp/amf.c:61:18: style: Variable 'c' can be declared as pointer to const [constVariablePointer] rtmpdump-2.6/librtmp/amf.c:89:18: style: Variable 'ci' can be declared as pointer to const [constVariablePointer] rtmpdump-2.6/librtmp/amf.c:138:37: style: Parameter 'outend' can be declared as pointer to const [constParameterPointer] rtmpdump-2.6/librtmp/amf.c:149:37: style: Parameter 'outend' can be declared as pointer to const [constParameterPointer] rtmpdump-2.6/librtmp/amf.c:161:37: style: Parameter 'outend' can be declared as pointer to const [constParameterPointer] rtmpdump-2.6/librtmp/amf.c:199:38: style: Parameter 'outend' can be declared as pointer to const [constParameterPointer] rtmpdump-2.6/librtmp/amf.c:211:20: style: Variable 'ci' can be declared as pointer to const [constVariablePointer] rtmpdump-2.6/librtmp/amf.c:260:39: style: Parameter 'outend' can be declared as pointer to const [constParameterPointer] rtmpdump-2.6/librtmp/amf.c:312:36: style: Parameter 'prop' can be declared as pointer to const [constParameterPointer] rtmpdump-2.6/librtmp/amf.c:318:48: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] rtmpdump-2.6/librtmp/amf.c:324:36: style: Parameter 'prop' can be declared as pointer to const [constParameterPointer] rtmpdump-2.6/librtmp/amf.c:360:36: style: Parameter 'prop' can be declared as pointer to const [constParameterPointer] rtmpdump-2.6/librtmp/amf.c:1243:26: style: Parameter 'obj' can be declared as pointer to const [constParameterPointer] rtmpdump-2.6/librtmp/amf.c:1298:40: style: Parameter 'prop' can be declared as pointer to const [constParameterPointer] rtmpdump-2.6/librtmp/amf.c:1131:16: style: Variable 'pBuffer' is assigned a value that is never used. [unreadVariable] rtmpdump-2.6/librtmp/parseurl.c:36:12: style: Variable 'end' can be declared as pointer to const [constVariablePointer] rtmpdump-2.6/librtmp/parseurl.c:36:18: style: Variable 'col' can be declared as pointer to const [constVariablePointer] rtmpdump-2.6/librtmp/parseurl.c:36:24: style: Variable 'ques' can be declared as pointer to const [constVariablePointer] rtmpdump-2.6/librtmp/parseurl.c:140:33: style: Variable 'slash4' can be declared as pointer to const [constVariablePointer] rtmpdump-2.6/librtmp/parseurl.c:201:31: style: Parameter 'in' can be declared as pointer to const [constParameterPointer] rtmpdump-2.6/librtmp/hashswf.c:347:4: warning: Return value of function inflate() is not used. [ignoredReturnValue] rtmpdump-2.6/librtmp/hashswf.c:605:3: warning: Return value of function inflateInit() is not used. [ignoredReturnValue] rtmpdump-2.6/librtmp/hashswf.c:145:28: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] rtmpdump-2.6/librtmp/hashswf.c:440:12: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] rtmpdump-2.6/librtmp/hashswf.c:461:8: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] rtmpdump-2.6/librtmp/hashswf.c:566:33: style: Local variable 'in' shadows outer variable [shadowVariable] rtmpdump-2.6/librtmp/hashswf.c:479:15: note: Shadowed variable rtmpdump-2.6/librtmp/hashswf.c:566:33: note: Shadow local variable rtmpdump-2.6/librtmp/hashswf.c:89:16: style: Variable 'path' can be declared as pointer to const [constVariablePointer] rtmpdump-2.6/librtmp/hashswf.c:438:18: style: Variable 'tc' can be declared as pointer to const [constVariablePointer] rtmpdump-2.6/librtmp/hashswf.c:457:18: style: Parameter 't' can be declared as pointer to const [constParameterPointer] rtmpdump-2.6/librtmp/hashswf.c:459:14: style: Variable 'tm' can be declared as pointer to const [constVariablePointer] rtmpdump-2.6/librtmp/hashswf.c:566:33: style: Variable 'in' can be declared as pointer to const [constVariablePointer] rtmpdump-2.6/librtmp/hashswf.c:633:10: style: Variable 'q' can be declared as pointer to const [constVariablePointer] rtmpdump-2.6/rtmpdump.c:810:7: style: Condition '!InitSockets()' is always false [knownConditionTrueFalse] rtmpdump-2.6/rtmpdump.c:810:19: note: Calling function 'InitSockets' returns 1 rtmpdump-2.6/rtmpdump.c:810:7: note: Condition '!InitSockets()' is always false rtmpdump-2.6/rtmpdump.c:335:23: style: Checking if unsigned expression 'prevTagSize' is less than zero. [unsignedLessThanZero] rtmpdump-2.6/rtmpdump.c:398:14: style: Checking if unsigned expression '*dSeek' is less than zero. [unsignedLessThanZero] rtmpdump-2.6/rtmpdump.c:135:17: style: Argument 'file' shadows outer variable [shadowVariable] rtmpdump-2.6/rtmpdump.c:90:7: note: Shadowed variable rtmpdump-2.6/rtmpdump.c:135:17: note: Shadow argument rtmpdump-2.6/rtmpdump.c:274:24: style: Argument 'file' shadows outer variable [shadowVariable] rtmpdump-2.6/rtmpdump.c:90:7: note: Shadowed variable rtmpdump-2.6/rtmpdump.c:274:24: note: Shadow argument rtmpdump-2.6/rtmpdump.c:444:10: style: Argument 'file' shadows outer variable [shadowVariable] rtmpdump-2.6/rtmpdump.c:90:7: note: Shadowed variable rtmpdump-2.6/rtmpdump.c:444:10: note: Shadow argument rtmpdump-2.6/rtmpdump.c:108:19: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] rtmpdump-2.6/rtmpdump.c:822:17: style: Variable 'longopts' can be declared as const array [constVariable] rtmpdump-2.6/rtmpsuck.c:1018:24: style: Condition 'server->state==STREAMING_ACCEPTING' is always true [knownConditionTrueFalse] rtmpdump-2.6/rtmpsuck.c:1016:19: note: Assignment 'server->state=STREAMING_ACCEPTING', assigned value is 0 rtmpdump-2.6/rtmpsuck.c:1018:24: note: Condition 'server->state==STREAMING_ACCEPTING' is always true rtmpdump-2.6/rtmpsuck.c:1114:25: style: Condition 'server->state!=STREAMING_STOPPED' is always true [knownConditionTrueFalse] rtmpdump-2.6/rtmpsuck.c:1111:20: note: Assignment 'server->state=STREAMING_STOPPING', assigned value is 2 rtmpdump-2.6/rtmpsuck.c:1114:25: note: Condition 'server->state!=STREAMING_STOPPED' is always true rtmpdump-2.6/rtmpsuck.c:1115:6: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] rtmpdump-2.6/rtmpsuck.c:1082:7: error: Resource leak: sockfd [resourceLeak] rtmpdump-2.6/rtmpsuck.c:244:31: warning: Possible null pointer dereference: r1 [nullPointer] rtmpdump-2.6/rtmpsuck.c:225:26: note: Assignment 'r1=NULL', assigned value is 0 rtmpdump-2.6/rtmpsuck.c:231:50: note: Assuming condition is true rtmpdump-2.6/rtmpsuck.c:234:38: note: Assuming condition is false rtmpdump-2.6/rtmpsuck.c:239:59: note: Assuming condition is false rtmpdump-2.6/rtmpsuck.c:244:31: note: Null pointer dereference rtmpdump-2.6/rtmpsuck.c:250:26: warning: If memory allocation fails, then there is a possible null pointer dereference: r2 [nullPointerOutOfMemory] rtmpdump-2.6/rtmpsuck.c:249:30: note: Assuming allocation function fails rtmpdump-2.6/rtmpsuck.c:249:30: note: Assignment 'r2=malloc(len+1)', assigned value is 0 rtmpdump-2.6/rtmpsuck.c:250:26: note: Null pointer dereference rtmpdump-2.6/rtmpsuck.c:251:19: warning: If memory allocation fails, then there is a possible null pointer dereference: r2 [nullPointerOutOfMemory] rtmpdump-2.6/rtmpsuck.c:249:30: note: Assuming allocation function fails rtmpdump-2.6/rtmpsuck.c:249:30: note: Assignment 'r2=malloc(len+1)', assigned value is 0 rtmpdump-2.6/rtmpsuck.c:251:19: note: Null pointer dereference rtmpdump-2.6/rtmpsuck.c:253:32: warning: If memory allocation fails, then there is a possible null pointer dereference: r2 [nullPointerOutOfMemory] rtmpdump-2.6/rtmpsuck.c:249:30: note: Assuming allocation function fails rtmpdump-2.6/rtmpsuck.c:249:30: note: Assignment 'r2=malloc(len+1)', assigned value is 0 rtmpdump-2.6/rtmpsuck.c:253:32: note: Null pointer dereference rtmpdump-2.6/rtmpsuck.c:367:14: warning: If memory allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfMemory] rtmpdump-2.6/rtmpsuck.c:365:20: note: Assuming allocation function fails rtmpdump-2.6/rtmpsuck.c:365:20: note: Assignment 'file=malloc(flen+1)', assigned value is 0 rtmpdump-2.6/rtmpsuck.c:367:14: note: Null pointer dereference rtmpdump-2.6/rtmpsuck.c:371:9: warning: If memory allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfMemory] rtmpdump-2.6/rtmpsuck.c:365:20: note: Assuming allocation function fails rtmpdump-2.6/rtmpsuck.c:365:20: note: Assignment 'file=malloc(flen+1)', assigned value is 0 rtmpdump-2.6/rtmpsuck.c:368:11: note: Assuming condition is false rtmpdump-2.6/rtmpsuck.c:371:9: note: Null pointer dereference rtmpdump-2.6/rtmpsuck.c:372:21: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] rtmpdump-2.6/rtmpsuck.c:365:20: note: Assuming allocation function fails rtmpdump-2.6/rtmpsuck.c:365:20: note: Assignment 'file=malloc(flen+1)', assigned value is 0 rtmpdump-2.6/rtmpsuck.c:368:11: note: Assuming condition is false rtmpdump-2.6/rtmpsuck.c:372:14: note: Assignment 'p=file', assigned value is 0 rtmpdump-2.6/rtmpsuck.c:372:21: note: Null pointer dereference rtmpdump-2.6/rtmpsuck.c:387:11: warning: If memory allocation fails, then there is a possible null pointer dereference: fl [nullPointerOutOfMemory] rtmpdump-2.6/rtmpsuck.c:386:22: note: Assuming allocation function fails rtmpdump-2.6/rtmpsuck.c:386:22: note: Assignment 'fl=malloc(sizeof(struct Flist)+av.av_len+1)', assigned value is 0 rtmpdump-2.6/rtmpsuck.c:387:11: note: Null pointer dereference rtmpdump-2.6/rtmpsuck.c:388:11: warning: If memory allocation fails, then there is a possible null pointer dereference: fl [nullPointerOutOfMemory] rtmpdump-2.6/rtmpsuck.c:386:22: note: Assuming allocation function fails rtmpdump-2.6/rtmpsuck.c:386:22: note: Assignment 'fl=malloc(sizeof(struct Flist)+av.av_len+1)', assigned value is 0 rtmpdump-2.6/rtmpsuck.c:388:11: note: Null pointer dereference rtmpdump-2.6/rtmpsuck.c:389:11: warning: If memory allocation fails, then there is a possible null pointer dereference: fl [nullPointerOutOfMemory] rtmpdump-2.6/rtmpsuck.c:386:22: note: Assuming allocation function fails rtmpdump-2.6/rtmpsuck.c:386:22: note: Assignment 'fl=malloc(sizeof(struct Flist)+av.av_len+1)', assigned value is 0 rtmpdump-2.6/rtmpsuck.c:389:11: note: Null pointer dereference rtmpdump-2.6/rtmpsuck.c:390:18: warning: If memory allocation fails, then there is a possible null pointer dereference: fl [nullPointerOutOfMemory] rtmpdump-2.6/rtmpsuck.c:386:22: note: Assuming allocation function fails rtmpdump-2.6/rtmpsuck.c:386:22: note: Assignment 'fl=malloc(sizeof(struct Flist)+av.av_len+1)', assigned value is 0 rtmpdump-2.6/rtmpsuck.c:390:18: note: Null pointer dereference rtmpdump-2.6/rtmpsuck.c:391:11: warning: If memory allocation fails, then there is a possible null pointer dereference: fl [nullPointerOutOfMemory] rtmpdump-2.6/rtmpsuck.c:386:22: note: Assuming allocation function fails rtmpdump-2.6/rtmpsuck.c:386:22: note: Assignment 'fl=malloc(sizeof(struct Flist)+av.av_len+1)', assigned value is 0 rtmpdump-2.6/rtmpsuck.c:391:11: note: Null pointer dereference rtmpdump-2.6/rtmpsuck.c:392:11: warning: If memory allocation fails, then there is a possible null pointer dereference: fl [nullPointerOutOfMemory] rtmpdump-2.6/rtmpsuck.c:386:22: note: Assuming allocation function fails rtmpdump-2.6/rtmpsuck.c:386:22: note: Assignment 'fl=malloc(sizeof(struct Flist)+av.av_len+1)', assigned value is 0 rtmpdump-2.6/rtmpsuck.c:392:11: note: Null pointer dereference rtmpdump-2.6/rtmpsuck.c:1093:3: warning: If memory allocation fails, then there is a possible null pointer dereference: server [nullPointerOutOfMemory] rtmpdump-2.6/rtmpsuck.c:1092:39: note: Assuming allocation function fails rtmpdump-2.6/rtmpsuck.c:1092:12: note: Assignment 'server=(struct STREAMING_SERVER*)calloc(1,sizeof(struct STREAMING_SERVER))', assigned value is 0 rtmpdump-2.6/rtmpsuck.c:1093:3: note: Null pointer dereference rtmpdump-2.6/rtmpsuck.c:389:42: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] rtmpdump-2.6/rtmpsuck.c:386:22: note: Assuming allocation function fails rtmpdump-2.6/rtmpsuck.c:386:22: note: Assignment 'fl=malloc(sizeof(struct Flist)+av.av_len+1)', assigned value is 0 rtmpdump-2.6/rtmpsuck.c:389:42: note: Null pointer addition rtmpdump-2.6/rtmpsuck.c:701:11: style: Variable 'ret' is reassigned a value before the old one has been used. [redundantAssignment] rtmpdump-2.6/rtmpsuck.c:654:13: note: ret is assigned rtmpdump-2.6/rtmpsuck.c:701:11: note: ret is overwritten rtmpdump-2.6/rtmpsuck.c:628:20: style: Local variable 'len' shadows outer variable [shadowVariable] rtmpdump-2.6/rtmpsuck.c:546:17: note: Shadowed variable rtmpdump-2.6/rtmpsuck.c:628:20: note: Shadow local variable rtmpdump-2.6/rtmpsuck.c:312:24: style: Variable 'q' can be declared as pointer to const [constVariablePointer] rtmpdump-2.6/rtmpsuck.c:83:17: style: struct member 'Plist::p_next' is never used. [unusedStructMember] rtmpdump-2.6/rtmpsuck.c:84:14: style: struct member 'Plist::p_pkt' is never used. [unusedStructMember] rtmpdump-2.6/rtmpsrv.c:1045:25: style: Condition 'server->state!=STREAMING_STOPPED' is always true [knownConditionTrueFalse] rtmpdump-2.6/rtmpsrv.c:1042:20: note: Assignment 'server->state=STREAMING_STOPPING', assigned value is 2 rtmpdump-2.6/rtmpsrv.c:1045:25: note: Condition 'server->state!=STREAMING_STOPPED' is always true rtmpdump-2.6/rtmpsrv.c:1046:6: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] rtmpdump-2.6/rtmpsrv.c:1015:7: error: Resource leak: sockfd [resourceLeak] rtmpdump-2.6/rtmpsrv.c:355:7: warning: If memory allocation fails, then there is a possible null pointer dereference: argv [nullPointerOutOfMemory] rtmpdump-2.6/rtmpsrv.c:351:25: note: Assuming allocation function fails rtmpdump-2.6/rtmpsrv.c:351:25: note: Assignment 'argv=malloc((argc+1)*sizeof(char*))', assigned value is 0 rtmpdump-2.6/rtmpsrv.c:355:7: note: Null pointer dereference rtmpdump-2.6/rtmpsrv.c:356:7: warning: If memory allocation fails, then there is a possible null pointer dereference: argv [nullPointerOutOfMemory] rtmpdump-2.6/rtmpsrv.c:351:25: note: Assuming allocation function fails rtmpdump-2.6/rtmpsrv.c:351:25: note: Assignment 'argv=malloc((argc+1)*sizeof(char*))', assigned value is 0 rtmpdump-2.6/rtmpsrv.c:356:7: note: Null pointer dereference rtmpdump-2.6/rtmpsrv.c:358:5: warning: If memory allocation fails, then there is a possible null pointer dereference: argv [nullPointerOutOfMemory] rtmpdump-2.6/rtmpsrv.c:351:25: note: Assuming allocation function fails rtmpdump-2.6/rtmpsrv.c:351:25: note: Assignment 'argv=malloc((argc+1)*sizeof(char*))', assigned value is 0 rtmpdump-2.6/rtmpsrv.c:358:5: note: Null pointer dereference rtmpdump-2.6/rtmpsrv.c:359:21: warning: If memory allocation fails, then there is a possible null pointer dereference: argv [nullPointerOutOfMemory] rtmpdump-2.6/rtmpsrv.c:351:25: note: Assuming allocation function fails rtmpdump-2.6/rtmpsrv.c:351:25: note: Assignment 'argv=malloc((argc+1)*sizeof(char*))', assigned value is 0 rtmpdump-2.6/rtmpsrv.c:359:21: note: Null pointer dereference rtmpdump-2.6/rtmpsrv.c:711:11: warning: If memory allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfMemory] rtmpdump-2.6/rtmpsrv.c:709:17: note: Assuming allocation function fails rtmpdump-2.6/rtmpsrv.c:709:17: note: Assignment 'file=malloc(av.av_len+5)', assigned value is 0 rtmpdump-2.6/rtmpsrv.c:711:11: note: Null pointer dereference rtmpdump-2.6/rtmpsrv.c:712:4: warning: If memory allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfMemory] rtmpdump-2.6/rtmpsrv.c:709:17: note: Assuming allocation function fails rtmpdump-2.6/rtmpsrv.c:709:17: note: Assignment 'file=malloc(av.av_len+5)', assigned value is 0 rtmpdump-2.6/rtmpsrv.c:712:4: note: Null pointer dereference rtmpdump-2.6/rtmpsrv.c:713:18: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] rtmpdump-2.6/rtmpsrv.c:709:17: note: Assuming allocation function fails rtmpdump-2.6/rtmpsrv.c:709:17: note: Assignment 'file=malloc(av.av_len+5)', assigned value is 0 rtmpdump-2.6/rtmpsrv.c:713:11: note: Assignment 'p=file', assigned value is 0 rtmpdump-2.6/rtmpsrv.c:713:18: note: Null pointer dereference rtmpdump-2.6/rtmpsrv.c:714:11: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] rtmpdump-2.6/rtmpsrv.c:709:17: note: Assuming allocation function fails rtmpdump-2.6/rtmpsrv.c:709:17: note: Assignment 'file=malloc(av.av_len+5)', assigned value is 0 rtmpdump-2.6/rtmpsrv.c:713:11: note: Assignment 'p=file', assigned value is 0 rtmpdump-2.6/rtmpsrv.c:714:11: note: Null pointer dereference rtmpdump-2.6/rtmpsrv.c:718:8: warning: If memory allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfMemory] rtmpdump-2.6/rtmpsrv.c:709:17: note: Assuming allocation function fails rtmpdump-2.6/rtmpsrv.c:709:17: note: Assignment 'file=malloc(av.av_len+5)', assigned value is 0 rtmpdump-2.6/rtmpsrv.c:718:8: note: Null pointer dereference rtmpdump-2.6/rtmpsrv.c:1026:3: warning: If memory allocation fails, then there is a possible null pointer dereference: server [nullPointerOutOfMemory] rtmpdump-2.6/rtmpsrv.c:1025:39: note: Assuming allocation function fails rtmpdump-2.6/rtmpsrv.c:1025:12: note: Assignment 'server=(struct STREAMING_SERVER*)calloc(1,sizeof(struct STREAMING_SERVER))', assigned value is 0 rtmpdump-2.6/rtmpsrv.c:1026:3: note: Null pointer dereference rtmpdump-2.6/rtmpsrv.c:1188:10: warning: If memory allocation fails, then there is a possible null pointer dereference: dptr [nullPointerOutOfMemory] rtmpdump-2.6/rtmpsrv.c:1173:16: note: Assuming allocation function fails rtmpdump-2.6/rtmpsrv.c:1173:16: note: Assignment 'dest=malloc(src->av_len+1+(repl->av_len-orig->av_len)*n)', assigned value is 0 rtmpdump-2.6/rtmpsrv.c:1176:10: note: Assignment 'dptr=dest', assigned value is 0 rtmpdump-2.6/rtmpsrv.c:1177:24: note: Assuming condition is false rtmpdump-2.6/rtmpsrv.c:1188:10: note: Null pointer dereference rtmpdump-2.6/rtmpsrv.c:613:24: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] rtmpdump-2.6/rtmpsrv.c:611:16: note: Assuming allocation function fails rtmpdump-2.6/rtmpsrv.c:611:16: note: Assignment 'cmd=malloc(len+server->argc*sizeof(struct AVal))', assigned value is 0 rtmpdump-2.6/rtmpsrv.c:613:24: note: Null pointer addition rtmpdump-2.6/rtmpsrv.c:723:19: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] rtmpdump-2.6/rtmpsrv.c:709:17: note: Assuming allocation function fails rtmpdump-2.6/rtmpsrv.c:709:17: note: Assignment 'file=malloc(av.av_len+5)', assigned value is 0 rtmpdump-2.6/rtmpsrv.c:723:19: note: Null pointer addition rtmpdump-2.6/rtmpsrv.c:564:8: style: Local variable 'i' shadows outer variable [shadowVariable] rtmpdump-2.6/rtmpsrv.c:498:11: note: Shadowed variable rtmpdump-2.6/rtmpsrv.c:564:8: note: Shadow local variable rtmpdump-2.6/rtmpsrv.c:592:24: style: Variable 'q' can be declared as pointer to const [constVariablePointer] rtmpdump-2.6/rtmpsrv.c:1079:9: style: Variable 'cert' can be declared as pointer to const [constVariablePointer] rtmpdump-2.6/rtmpsrv.c:1079:23: style: Variable 'key' can be declared as pointer to const [constVariablePointer] rtmpdump-2.6/rtmpsrv.c:1159:9: style: Variable 'srcend' can be declared as pointer to const [constVariablePointer] rtmpdump-2.6/rtmpsrv.c:731:8: style: Variable 'ptr' is assigned a value that is never used. [unreadVariable] diff: head rtmpdump-2.6/rtmpsuck.c:244:31: warning: Possible null pointer dereference: r1 [nullPointer] rtmpdump-2.6/rtmpsuck.c:225:26: note: Assignment 'r1=NULL', assigned value is 0 rtmpdump-2.6/rtmpsuck.c:231:50: note: Assuming condition is true rtmpdump-2.6/rtmpsuck.c:234:38: note: Assuming condition is false rtmpdump-2.6/rtmpsuck.c:239:59: note: Assuming condition is false rtmpdump-2.6/rtmpsuck.c:244:31: note: Null pointer dereference head rtmpdump-2.6/rtmpsuck.c:371:9: warning: If memory allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfMemory] rtmpdump-2.6/rtmpsuck.c:365:20: note: Assuming allocation function fails rtmpdump-2.6/rtmpsuck.c:365:20: note: Assignment 'file=malloc(flen+1)', assigned value is 0 rtmpdump-2.6/rtmpsuck.c:368:11: note: Assuming condition is false rtmpdump-2.6/rtmpsuck.c:371:9: note: Null pointer dereference 2.21.0 rtmpdump-2.6/thread.c:42:38: style:inconclusive: Function 'ThreadCreate' argument 2 names different: declaration '' definition 'args'. [funcArgNamesDifferentUnnamed] DONE