2026-05-03 05:42 ftp://ftp.de.debian.org/debian/pool/main/libo/libomxvideosrc/libomxvideosrc_0.1.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.8.0-111-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04.1) 14.2.0 cppcheck: head 2.20.0 head-info: e5c4a73 (2026-05-01 11:10:43 +0200) count: 59 59 elapsed-time: 0.3 0.2 head-timing-info: old-timing-info: head results: libomxvideosrc-0.1/src/library_entry_point.c:53:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEB_LEV_FUNCTION_NAME [valueFlowBailoutIncompleteVar] libomxvideosrc-0.1/src/omx_videosrc_component.c:56:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEB_LEV_ERR [valueFlowBailoutIncompleteVar] libomxvideosrc-0.1/src/omx_videosrc_component.c:65:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OMX_ErrorNone [valueFlowBailoutIncompleteVar] libomxvideosrc-0.1/src/omx_videosrc_component.c:163:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OMX_ErrorNone [valueFlowBailoutIncompleteVar] libomxvideosrc-0.1/src/omx_videosrc_component.c:202:101: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OMX_BASE_SOURCE_OUTPUTPORT_INDEX [valueFlowBailoutIncompleteVar] libomxvideosrc-0.1/src/omx_videosrc_component.c:287:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEB_LEV_FUNCTION_NAME [valueFlowBailoutIncompleteVar] libomxvideosrc-0.1/src/omx_videosrc_component.c:311:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEB_LEV_FUNCTION_NAME [valueFlowBailoutIncompleteVar] libomxvideosrc-0.1/src/omx_videosrc_component.c:365:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OMX_ErrorNone [valueFlowBailoutIncompleteVar] libomxvideosrc-0.1/src/omx_videosrc_component.c:441:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OMX_ErrorNone [valueFlowBailoutIncompleteVar] libomxvideosrc-0.1/src/omx_videosrc_component.c:490:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OMX_ErrorNone [valueFlowBailoutIncompleteVar] libomxvideosrc-0.1/src/omx_videosrc_component.c:525:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEB_LEV_FUNCTION_NAME [valueFlowBailoutIncompleteVar] libomxvideosrc-0.1/src/omx_videosrc_component.c:596:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEB_LEV_FUNCTION_NAME [valueFlowBailoutIncompleteVar] libomxvideosrc-0.1/src/omx_videosrc_component.c:662:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OMX_ErrorNone [valueFlowBailoutIncompleteVar] libomxvideosrc-0.1/src/omx_videosrc_component.c:767:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OMX_ErrorNone [valueFlowBailoutIncompleteVar] libomxvideosrc-0.1/src/omx_videosrc_component.c:839:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINTR [valueFlowBailoutIncompleteVar] libomxvideosrc-0.1/src/omx_videosrc_component.c:847:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VIDIOC_QUERYCAP [valueFlowBailoutIncompleteVar] libomxvideosrc-0.1/src/omx_videosrc_component.c:903:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable V4L2_BUF_TYPE_VIDEO_CAPTURE [valueFlowBailoutIncompleteVar] libomxvideosrc-0.1/src/omx_videosrc_component.c:923:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable V4L2_BUF_TYPE_VIDEO_CAPTURE [valueFlowBailoutIncompleteVar] libomxvideosrc-0.1/src/omx_videosrc_component.c:937:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable start [valueFlowBailoutIncompleteVar] libomxvideosrc-0.1/src/omx_videosrc_component.c:955:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable V4L2_BUF_TYPE_VIDEO_CAPTURE [valueFlowBailoutIncompleteVar] libomxvideosrc-0.1/src/omx_videosrc_component.c:732:13: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] libomxvideosrc-0.1/src/omx_videosrc_component.c:808:13: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] libomxvideosrc-0.1/src/omx_videosrc_component.c:152:7: style: Variable 'err' is reassigned a value before the old one has been used. [redundantAssignment] libomxvideosrc-0.1/src/omx_videosrc_component.c:83:7: note: err is assigned libomxvideosrc-0.1/src/omx_videosrc_component.c:152:7: note: err is overwritten libomxvideosrc-0.1/src/omx_videosrc_component.c:154:7: style: Variable 'err' is reassigned a value before the old one has been used. [redundantAssignment] libomxvideosrc-0.1/src/omx_videosrc_component.c:152:7: note: err is assigned libomxvideosrc-0.1/src/omx_videosrc_component.c:154:7: note: err is overwritten libomxvideosrc-0.1/src/omx_videosrc_component.c:217:48: style: Variable 'omx_videosrc_component_Private->iFrameSize' is reassigned a value before the old one has been used. [redundantAssignment] libomxvideosrc-0.1/src/omx_videosrc_component.c:215:48: note: omx_videosrc_component_Private->iFrameSize is assigned libomxvideosrc-0.1/src/omx_videosrc_component.c:217:48: note: omx_videosrc_component_Private->iFrameSize is overwritten libomxvideosrc-0.1/src/omx_videosrc_component.c:199:62: style: Parameter 'openmaxStandComp' can be declared as pointer to const [constParameterPointer] libomxvideosrc-0.1/src/omx_videosrc_component.c:283:64: style: Parameter 'openmaxStandComp' can be declared as pointer to const [constParameterPointer] libomxvideosrc-0.1/src/omx_videosrc_component.c:304:67: style: Parameter 'openmaxStandComp' can be declared as pointer to const. However it seems that 'omx_videosrc_component_BufferMgmtCallback' is a callback function, if 'openmaxStandComp' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libomxvideosrc-0.1/src/omx_videosrc_component.c:120:56: note: You might need to cast the function pointer here libomxvideosrc-0.1/src/omx_videosrc_component.c:304:67: note: Parameter 'openmaxStandComp' can be declared as pointer to const libomxvideosrc-0.1/src/omx_videosrc_component.c:371:22: style: Variable 'openmaxStandComp' can be declared as pointer to const [constVariablePointer] libomxvideosrc-0.1/src/omx_videosrc_component.c:444:22: style: Variable 'openmaxStandComp' can be declared as pointer to const [constVariablePointer] libomxvideosrc-0.1/src/omx_videosrc_component.c:446:28: style: Variable 'pPort' can be declared as pointer to const [constVariablePointer] libomxvideosrc-0.1/src/omx_videosrc_component.c:489:39: style: Variable 'omx_videosrc_component_Private' can be declared as pointer to const [constVariablePointer] libomxvideosrc-0.1/src/omx_videosrc_component.c:892:64: style: Parameter 'omx_videosrc_component_Private' can be declared as pointer to const [constParameterPointer] libomxvideosrc-0.1/src/omx_videosrc_component.c:919:63: style: Parameter 'omx_videosrc_component_Private' can be declared as pointer to const [constParameterPointer] libomxvideosrc-0.1/src/omx_videosrc_component.c:172:7: style: Variable 'err' is assigned a value that is never used. [unreadVariable] libomxvideosrc-0.1/src/omx_videosrc_component.c:662:23: style: Variable 'eError' is assigned a value that is never used. [unreadVariable] libomxvideosrc-0.1/src/omx_videosrc_component.c:767:23: style: Variable 'eError' is assigned a value that is never used. [unreadVariable] libomxvideosrc-0.1/test/omxvideocapturetest.c:74:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OMX_ErrorNone [valueFlowBailoutIncompleteVar] libomxvideosrc-0.1/test/omxvideocapturetest.c:137:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEB_LEV_ERR [valueFlowBailoutIncompleteVar] libomxvideosrc-0.1/test/omxvideocapturetest.c:262:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OMX_ErrorNone [valueFlowBailoutIncompleteVar] libomxvideosrc-0.1/test/omxvideocapturetest.c:321:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OMX_BUFFERFLAG_EOS [valueFlowBailoutIncompleteVar] libomxvideosrc-0.1/test/omxvideocapturetest.c:117:20: warning: If memory allocation fails, then there is a possible null pointer dereference: output_file [nullPointerOutOfMemory] libomxvideosrc-0.1/test/omxvideocapturetest.c:116:33: note: Assuming allocation function fails libomxvideosrc-0.1/test/omxvideocapturetest.c:116:33: note: Assignment 'output_file=malloc(strlen(argv[argn_dec])*sizeof(char)+5)', assigned value is 0 libomxvideosrc-0.1/test/omxvideocapturetest.c:117:20: note: Null pointer dereference libomxvideosrc-0.1/test/omxvideocapturetest.c:118:20: warning: If memory allocation fails, then there is a possible null pointer dereference: output_file [nullPointerOutOfMemory] libomxvideosrc-0.1/test/omxvideocapturetest.c:116:33: note: Assuming allocation function fails libomxvideosrc-0.1/test/omxvideocapturetest.c:116:33: note: Assignment 'output_file=malloc(strlen(argv[argn_dec])*sizeof(char)+5)', assigned value is 0 libomxvideosrc-0.1/test/omxvideocapturetest.c:118:20: note: Null pointer dereference libomxvideosrc-0.1/test/omxvideocapturetest.c:121:20: warning: If memory allocation fails, then there is a possible null pointer dereference: output_file [nullPointerOutOfMemory] libomxvideosrc-0.1/test/omxvideocapturetest.c:120:33: note: Assuming allocation function fails libomxvideosrc-0.1/test/omxvideocapturetest.c:120:33: note: Assignment 'output_file=malloc(strlen(argv[argn_dec])*sizeof(char)+1)', assigned value is 0 libomxvideosrc-0.1/test/omxvideocapturetest.c:121:20: note: Null pointer dereference libomxvideosrc-0.1/test/omxvideocapturetest.c:132:12: warning: If memory allocation fails, then there is a possible null pointer dereference: output_file [nullPointerOutOfMemory] libomxvideosrc-0.1/test/omxvideocapturetest.c:131:25: note: Assuming allocation function fails libomxvideosrc-0.1/test/omxvideocapturetest.c:131:25: note: Assignment 'output_file=malloc(30)', assigned value is 0 libomxvideosrc-0.1/test/omxvideocapturetest.c:132:12: note: Null pointer dereference libomxvideosrc-0.1/test/omxvideocapturetest.c:135:19: warning: If memory allocation fails, then there is a possible null pointer dereference: output_file [nullPointerOutOfMemory] libomxvideosrc-0.1/test/omxvideocapturetest.c:131:25: note: Assuming allocation function fails libomxvideosrc-0.1/test/omxvideocapturetest.c:131:25: note: Assignment 'output_file=malloc(30)', assigned value is 0 libomxvideosrc-0.1/test/omxvideocapturetest.c:135:19: note: Null pointer dereference libomxvideosrc-0.1/test/omxvideocapturetest.c:147:3: warning: If memory allocation fails, then there is a possible null pointer dereference: appPriv [nullPointerOutOfMemory] libomxvideosrc-0.1/test/omxvideocapturetest.c:146:19: note: Assuming allocation function fails libomxvideosrc-0.1/test/omxvideocapturetest.c:146:19: note: Assignment 'appPriv=malloc(sizeof(struct appPrivateType))', assigned value is 0 libomxvideosrc-0.1/test/omxvideocapturetest.c:147:3: note: Null pointer dereference libomxvideosrc-0.1/test/omxvideocapturetest.c:148:3: warning: If memory allocation fails, then there is a possible null pointer dereference: appPriv [nullPointerOutOfMemory] libomxvideosrc-0.1/test/omxvideocapturetest.c:146:19: note: Assuming allocation function fails libomxvideosrc-0.1/test/omxvideocapturetest.c:146:19: note: Assignment 'appPriv=malloc(sizeof(struct appPrivateType))', assigned value is 0 libomxvideosrc-0.1/test/omxvideocapturetest.c:148:3: note: Null pointer dereference libomxvideosrc-0.1/test/omxvideocapturetest.c:188:7: style: Variable 'err' is reassigned a value before the old one has been used. [redundantAssignment] libomxvideosrc-0.1/test/omxvideocapturetest.c:185:7: note: err is assigned libomxvideosrc-0.1/test/omxvideocapturetest.c:188:7: note: err is overwritten libomxvideosrc-0.1/test/omxvideocapturetest.c:189:7: style: Variable 'err' is reassigned a value before the old one has been used. [redundantAssignment] libomxvideosrc-0.1/test/omxvideocapturetest.c:188:7: note: err is assigned libomxvideosrc-0.1/test/omxvideocapturetest.c:189:7: note: err is overwritten libomxvideosrc-0.1/test/omxvideocapturetest.c:197:7: style: Variable 'err' is reassigned a value before the old one has been used. [redundantAssignment] libomxvideosrc-0.1/test/omxvideocapturetest.c:189:7: note: err is assigned libomxvideosrc-0.1/test/omxvideocapturetest.c:197:7: note: err is overwritten libomxvideosrc-0.1/test/omxvideocapturetest.c:200:7: style: Variable 'err' is reassigned a value before the old one has been used. [redundantAssignment] libomxvideosrc-0.1/test/omxvideocapturetest.c:197:7: note: err is assigned libomxvideosrc-0.1/test/omxvideocapturetest.c:200:7: note: err is overwritten libomxvideosrc-0.1/test/omxvideocapturetest.c:201:7: style: Variable 'err' is reassigned a value before the old one has been used. [redundantAssignment] libomxvideosrc-0.1/test/omxvideocapturetest.c:200:7: note: err is assigned libomxvideosrc-0.1/test/omxvideocapturetest.c:201:7: note: err is overwritten libomxvideosrc-0.1/test/omxvideocapturetest.c:215:7: style: Variable 'err' is reassigned a value before the old one has been used. [redundantAssignment] libomxvideosrc-0.1/test/omxvideocapturetest.c:201:7: note: err is assigned libomxvideosrc-0.1/test/omxvideocapturetest.c:215:7: note: err is overwritten libomxvideosrc-0.1/test/omxvideocapturetest.c:223:7: style: Variable 'err' is reassigned a value before the old one has been used. [redundantAssignment] libomxvideosrc-0.1/test/omxvideocapturetest.c:215:7: note: err is assigned libomxvideosrc-0.1/test/omxvideocapturetest.c:223:7: note: err is overwritten libomxvideosrc-0.1/test/omxvideocapturetest.c:228:7: style: Variable 'err' is reassigned a value before the old one has been used. [redundantAssignment] libomxvideosrc-0.1/test/omxvideocapturetest.c:223:7: note: err is assigned libomxvideosrc-0.1/test/omxvideocapturetest.c:228:7: note: err is overwritten libomxvideosrc-0.1/test/omxvideocapturetest.c:229:7: style: Variable 'err' is reassigned a value before the old one has been used. [redundantAssignment] libomxvideosrc-0.1/test/omxvideocapturetest.c:228:7: note: err is assigned libomxvideosrc-0.1/test/omxvideocapturetest.c:229:7: note: err is overwritten libomxvideosrc-0.1/test/omxvideocapturetest.c:229:7: style: Variable 'err' is assigned a value that is never used. [unreadVariable] libomxvideosrc-0.1/test/omxvideocapturetest.c:326:13: style: Variable 'err' is assigned a value that is never used. [unreadVariable] diff: DONE