2025-05-05 09:21 ftp://ftp.de.debian.org/debian/pool/main/k/kmscube/kmscube_0.0.0~git20210103.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --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 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: c79862b (2025-05-05 10:59:17 +0200) count: 108 107 elapsed-time: 3.9 4.7 head-timing-info: old-timing-info: head results: kmscube-0.0.0~git20210103/cube-smooth.c:182:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_COLOR_BUFFER_BIT [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/cube-smooth.c:252:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_CULL_FACE [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/common.h:152:37: style: Parameter 'ptr' can be declared as pointer to const [constParameterPointer] kmscube-0.0.0~git20210103/cube-shadertoy.c:273:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_FRAMEBUFFER [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/cube-shadertoy.c:302:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_COLOR_ATTACHMENT0 [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/cube-shadertoy.c:335:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_CULL_FACE [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/cube-shadertoy.c:434:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_CULL_FACE [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/common.c:65:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/common.c:105:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/common.c:171:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EGL_NATIVE_VISUAL_ID [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/common.c:242:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EGL_LINUX_DRM_FOURCC_EXT [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/common.c:306:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EGL_CONTEXT_CLIENT_VERSION [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/common.c:446:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_VERTEX_SHADER [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/common.c:503:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_LINK_STATUS [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/common.c:526:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_MONOTONIC [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/cube-shadertoy.c:451:6: style: Condition 'ret' is always false [knownConditionTrueFalse] kmscube-0.0.0~git20210103/cube-shadertoy.c:423:6: note: Assuming that condition 'ret' is not redundant kmscube-0.0.0~git20210103/cube-shadertoy.c:451:6: note: Condition 'ret' is always false kmscube-0.0.0~git20210103/cube-shadertoy.c:252:2: error: Resource leak: fd [resourceLeak] kmscube-0.0.0~git20210103/cube-shadertoy.c:252:2: error: Memory leak: text [memleak] kmscube-0.0.0~git20210103/cube-shadertoy.c:401:75: style:inconclusive: Function 'init_cube_shadertoy' argument 2 names different: declaration 'shadertoy' definition 'file'. [funcArgNamesDifferent] kmscube-0.0.0~git20210103/common.h:178:75: note: Function 'init_cube_shadertoy' argument 2 names different: declaration 'shadertoy' definition 'file'. kmscube-0.0.0~git20210103/cube-shadertoy.c:401:75: note: Function 'init_cube_shadertoy' argument 2 names different: declaration 'shadertoy' definition 'file'. kmscube-0.0.0~git20210103/cube-shadertoy.c:262:6: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] kmscube-0.0.0~git20210103/cube-tex.c:231:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GBM_BO_TRANSFER_WRITE [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/cube-tex.c:266:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GBM_BO_TRANSFER_WRITE [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/cube-tex.c:301:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GBM_BO_TRANSFER_WRITE [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/cube-tex.c:330:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EGL_WIDTH [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/cube-tex.c:377:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EGL_WIDTH [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/cube-tex.c:459:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EGL_WIDTH [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/cube-tex.c:532:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_COLOR_BUFFER_BIT [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/cube-tex.c:621:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_CULL_FACE [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/common.c:460:17: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: log [nullPointerOutOfMemory] kmscube-0.0.0~git20210103/common.c:458:16: note: Assuming allocation function fails kmscube-0.0.0~git20210103/common.c:458:16: note: Assignment 'log=malloc(ret)', assigned value is 0 kmscube-0.0.0~git20210103/common.c:460:17: note: Null pointer dereference kmscube-0.0.0~git20210103/common.c:482:17: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: log [nullPointerOutOfMemory] kmscube-0.0.0~git20210103/common.c:480:16: note: Assuming allocation function fails kmscube-0.0.0~git20210103/common.c:480:16: note: Assignment 'log=malloc(ret)', assigned value is 0 kmscube-0.0.0~git20210103/common.c:482:17: note: Null pointer dereference kmscube-0.0.0~git20210103/common.c:513:17: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: log [nullPointerOutOfMemory] kmscube-0.0.0~git20210103/common.c:511:16: note: Assuming allocation function fails kmscube-0.0.0~git20210103/common.c:511:16: note: Assignment 'log=malloc(ret)', assigned value is 0 kmscube-0.0.0~git20210103/common.c:513:17: note: Null pointer dereference kmscube-0.0.0~git20210103/cube-video.c:229:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EGL_FOREVER_KHR [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/cube-video.c:373:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_CULL_FACE [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/cube-video.c:320:21: warning: If memory allocation fails, then there is a possible null pointer dereference: fnames [nullPointerOutOfMemory] kmscube-0.0.0~git20210103/cube-video.c:319:17: note: Assuming allocation function fails kmscube-0.0.0~git20210103/cube-video.c:319:17: note: Assignment 'fnames=strdup(filenames)', assigned value is 0 kmscube-0.0.0~git20210103/cube-video.c:320:21: note: Null pointer dereference kmscube-0.0.0~git20210103/drm-atomic.c:49:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/drm-atomic.c:71:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/drm-atomic.c:93:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/drm-atomic.c:117:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DRM_MODE_ATOMIC_ALLOW_MODESET [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/drm-atomic.c:168:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EGL_SYNC_NATIVE_FENCE_FD_ANDROID [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/drm-atomic.c:182:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DRM_MODE_ATOMIC_NONBLOCK [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/drm-atomic.c:346:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/drm-atomic.c:404:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DRM_CLIENT_CAP_ATOMIC [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/cube-tex.c:225:17: style: Variable 'src' can be declared as pointer to const [constVariablePointer] kmscube-0.0.0~git20210103/cube-tex.c:260:17: style: Variable 'src' can be declared as pointer to const [constVariablePointer] kmscube-0.0.0~git20210103/cube-tex.c:295:17: style: Variable 'src' can be declared as pointer to const [constVariablePointer] kmscube-0.0.0~git20210103/drm-common.c:78:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gbm_bo_get_modifier [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/drm-common.c:189:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DRM_NODE_PRIMARY [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/drm-common.c:220:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/drm-legacy.c:65:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/drm-atomic.c:435:2: warning: %i in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] kmscube-0.0.0~git20210103/drm-atomic.c:436:2: warning: %i in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] kmscube-0.0.0~git20210103/drm-atomic.c:437:2: warning: %i in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] kmscube-0.0.0~git20210103/drm-atomic.c:180:17: style: Variable 'fb' can be declared as pointer to const [constVariablePointer] kmscube-0.0.0~git20210103/drm-atomic.c:333:9: warning: Uninitialized variable: ret [uninitvar] kmscube-0.0.0~git20210103/drm-atomic.c:198:11: note: Assuming condition is false kmscube-0.0.0~git20210103/drm-atomic.c:333:9: note: Uninitialized variable: ret kmscube-0.0.0~git20210103/drm-common.c:72:2: warning: If memory allocation fails, then there is a possible null pointer dereference: fb [nullPointerOutOfMemory] kmscube-0.0.0~git20210103/drm-common.c:71:13: note: Assuming allocation function fails kmscube-0.0.0~git20210103/drm-common.c:71:13: note: Assignment 'fb=calloc(1,sizeof(*fb))', assigned value is 0 kmscube-0.0.0~git20210103/drm-common.c:72:2: note: Null pointer dereference kmscube-0.0.0~git20210103/gst-decoder.c:80:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GST_EVENT_CAPS [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/gst-decoder.c:177:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GST_DEBUG_GRAPH_SHOW_ALL [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/gst-decoder.c:247:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GST_QUERY_ALLOCATION [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/gst-decoder.c:294:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GST_MSECOND [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/gst-decoder.c:347:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GBM_BO_TRANSFER_WRITE [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/gst-decoder.c:403:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EGL_NO_IMAGE_KHR [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/gst-decoder.c:530:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GST_STATE_NULL [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/gst-decoder.c:268:2: warning: If memory allocation fails, then there is a possible null pointer dereference: dec [nullPointerOutOfMemory] kmscube-0.0.0~git20210103/gst-decoder.c:267:14: note: Assuming allocation function fails kmscube-0.0.0~git20210103/gst-decoder.c:267:14: note: Assignment 'dec=calloc(1,sizeof(*dec))', assigned value is 0 kmscube-0.0.0~git20210103/gst-decoder.c:268:2: note: Null pointer dereference kmscube-0.0.0~git20210103/gst-decoder.c:269:2: warning: If memory allocation fails, then there is a possible null pointer dereference: dec [nullPointerOutOfMemory] kmscube-0.0.0~git20210103/gst-decoder.c:267:14: note: Assuming allocation function fails kmscube-0.0.0~git20210103/gst-decoder.c:267:14: note: Assignment 'dec=calloc(1,sizeof(*dec))', assigned value is 0 kmscube-0.0.0~git20210103/gst-decoder.c:269:2: note: Null pointer dereference kmscube-0.0.0~git20210103/gst-decoder.c:270:2: warning: If memory allocation fails, then there is a possible null pointer dereference: dec [nullPointerOutOfMemory] kmscube-0.0.0~git20210103/gst-decoder.c:267:14: note: Assuming allocation function fails kmscube-0.0.0~git20210103/gst-decoder.c:267:14: note: Assignment 'dec=calloc(1,sizeof(*dec))', assigned value is 0 kmscube-0.0.0~git20210103/gst-decoder.c:270:2: note: Null pointer dereference kmscube-0.0.0~git20210103/gst-decoder.c:275:2: warning: If memory allocation fails, then there is a possible null pointer dereference: dec [nullPointerOutOfMemory] kmscube-0.0.0~git20210103/gst-decoder.c:267:14: note: Assuming allocation function fails kmscube-0.0.0~git20210103/gst-decoder.c:267:14: note: Assignment 'dec=calloc(1,sizeof(*dec))', assigned value is 0 kmscube-0.0.0~git20210103/gst-decoder.c:275:2: note: Null pointer dereference kmscube-0.0.0~git20210103/gst-decoder.c:277:2: warning: If memory allocation fails, then there is a possible null pointer dereference: dec [nullPointerOutOfMemory] kmscube-0.0.0~git20210103/gst-decoder.c:267:14: note: Assuming allocation function fails kmscube-0.0.0~git20210103/gst-decoder.c:267:14: note: Assignment 'dec=calloc(1,sizeof(*dec))', assigned value is 0 kmscube-0.0.0~git20210103/gst-decoder.c:277:2: note: Null pointer dereference kmscube-0.0.0~git20210103/gst-decoder.c:277:42: warning: If memory allocation fails, then there is a possible null pointer dereference: dec [nullPointerOutOfMemory] kmscube-0.0.0~git20210103/gst-decoder.c:267:14: note: Assuming allocation function fails kmscube-0.0.0~git20210103/gst-decoder.c:267:14: note: Assignment 'dec=calloc(1,sizeof(*dec))', assigned value is 0 kmscube-0.0.0~git20210103/gst-decoder.c:277:42: note: Null pointer dereference kmscube-0.0.0~git20210103/gst-decoder.c:284:35: warning: If memory allocation fails, then there is a possible null pointer dereference: dec [nullPointerOutOfMemory] kmscube-0.0.0~git20210103/gst-decoder.c:267:14: note: Assuming allocation function fails kmscube-0.0.0~git20210103/gst-decoder.c:267:14: note: Assignment 'dec=calloc(1,sizeof(*dec))', assigned value is 0 kmscube-0.0.0~git20210103/gst-decoder.c:284:35: note: Null pointer dereference kmscube-0.0.0~git20210103/gst-decoder.c:289:36: warning: If memory allocation fails, then there is a possible null pointer dereference: dec [nullPointerOutOfMemory] kmscube-0.0.0~git20210103/gst-decoder.c:267:14: note: Assuming allocation function fails kmscube-0.0.0~git20210103/gst-decoder.c:267:14: note: Assignment 'dec=calloc(1,sizeof(*dec))', assigned value is 0 kmscube-0.0.0~git20210103/gst-decoder.c:289:36: note: Null pointer dereference kmscube-0.0.0~git20210103/gst-decoder.c:294:47: warning: If memory allocation fails, then there is a possible null pointer dereference: dec [nullPointerOutOfMemory] kmscube-0.0.0~git20210103/gst-decoder.c:267:14: note: Assuming allocation function fails kmscube-0.0.0~git20210103/gst-decoder.c:267:14: note: Assignment 'dec=calloc(1,sizeof(*dec))', assigned value is 0 kmscube-0.0.0~git20210103/gst-decoder.c:294:47: note: Null pointer dereference kmscube-0.0.0~git20210103/gst-decoder.c:295:46: warning: If memory allocation fails, then there is a possible null pointer dereference: dec [nullPointerOutOfMemory] kmscube-0.0.0~git20210103/gst-decoder.c:267:14: note: Assuming allocation function fails kmscube-0.0.0~git20210103/gst-decoder.c:267:14: note: Assignment 'dec=calloc(1,sizeof(*dec))', assigned value is 0 kmscube-0.0.0~git20210103/gst-decoder.c:295:46: note: Null pointer dereference kmscube-0.0.0~git20210103/gst-decoder.c:300:24: warning: If memory allocation fails, then there is a possible null pointer dereference: dec [nullPointerOutOfMemory] kmscube-0.0.0~git20210103/gst-decoder.c:267:14: note: Assuming allocation function fails kmscube-0.0.0~git20210103/gst-decoder.c:267:14: note: Assignment 'dec=calloc(1,sizeof(*dec))', assigned value is 0 kmscube-0.0.0~git20210103/gst-decoder.c:300:24: note: Null pointer dereference kmscube-0.0.0~git20210103/gst-decoder.c:302:47: warning: If memory allocation fails, then there is a possible null pointer dereference: dec [nullPointerOutOfMemory] kmscube-0.0.0~git20210103/gst-decoder.c:267:14: note: Assuming allocation function fails kmscube-0.0.0~git20210103/gst-decoder.c:267:14: note: Assignment 'dec=calloc(1,sizeof(*dec))', assigned value is 0 kmscube-0.0.0~git20210103/gst-decoder.c:302:47: note: Null pointer dereference kmscube-0.0.0~git20210103/gst-decoder.c:307:42: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: dec [nullPointerOutOfMemory] kmscube-0.0.0~git20210103/gst-decoder.c:267:14: note: Assuming allocation function fails kmscube-0.0.0~git20210103/gst-decoder.c:267:14: note: Assignment 'dec=calloc(1,sizeof(*dec))', assigned value is 0 kmscube-0.0.0~git20210103/gst-decoder.c:307:42: note: Null pointer dereference kmscube-0.0.0~git20210103/gst-decoder.c:312:42: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: dec [nullPointerOutOfMemory] kmscube-0.0.0~git20210103/gst-decoder.c:267:14: note: Assuming allocation function fails kmscube-0.0.0~git20210103/gst-decoder.c:267:14: note: Assignment 'dec=calloc(1,sizeof(*dec))', assigned value is 0 kmscube-0.0.0~git20210103/gst-decoder.c:312:42: note: Null pointer dereference kmscube-0.0.0~git20210103/gst-decoder.c:317:24: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: dec [nullPointerOutOfMemory] kmscube-0.0.0~git20210103/gst-decoder.c:267:14: note: Assuming allocation function fails kmscube-0.0.0~git20210103/gst-decoder.c:267:14: note: Assignment 'dec=calloc(1,sizeof(*dec))', assigned value is 0 kmscube-0.0.0~git20210103/gst-decoder.c:317:24: note: Null pointer dereference kmscube-0.0.0~git20210103/gst-decoder.c:493:16: style: Local variable 'i' shadows outer variable [shadowVariable] kmscube-0.0.0~git20210103/gst-decoder.c:369:8: note: Shadowed declaration kmscube-0.0.0~git20210103/gst-decoder.c:493:16: note: Shadow variable kmscube-0.0.0~git20210103/gst-decoder.c:242:62: style: Parameter 'info' can be declared as pointer to const. However it seems that 'appsink_query_cb' is a callback function, if 'info' is declared with const you might also need to cast function pointer(s). [constParameterCallback] kmscube-0.0.0~git20210103/gst-decoder.c:286:3: note: You might need to cast the function pointer here kmscube-0.0.0~git20210103/gst-decoder.c:242:62: note: Parameter 'info' can be declared as pointer to const kmscube-0.0.0~git20210103/gst-decoder.c:337:50: style: Parameter 'ptr' can be declared as pointer to const [constParameterPointer] kmscube-0.0.0~git20210103/kmscube.c:95:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DRM_DISPLAY_MODE_LEN [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/kmscube.c:96:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] kmscube-0.0.0~git20210103/perfcntrs.c:165:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_COUNTER_TYPE_AMD [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/perfcntrs.c:290:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_TRUE [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/perfcntrs.c:329:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GLint [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/perfcntrs.c:467:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/perfcntrs.c:219:21: warning: If memory allocation fails, then there is a possible null pointer dereference: cnames [nullPointerOutOfMemory] kmscube-0.0.0~git20210103/perfcntrs.c:218:17: note: Assuming allocation function fails kmscube-0.0.0~git20210103/perfcntrs.c:218:17: note: Assignment 'cnames=strdup(perfcntrs)', assigned value is 0 kmscube-0.0.0~git20210103/perfcntrs.c:219:21: note: Null pointer dereference kmscube-0.0.0~git20210103/perfcntrs.c:339:21: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] kmscube-0.0.0~git20210103/perfcntrs.c:331:23: note: Assuming allocation function fails kmscube-0.0.0~git20210103/perfcntrs.c:331:23: note: Assignment 'data=malloc(result_size)', assigned value is 0 kmscube-0.0.0~git20210103/perfcntrs.c:339:21: note: Null pointer dereference kmscube-0.0.0~git20210103/perfcntrs.c:340:23: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] kmscube-0.0.0~git20210103/perfcntrs.c:331:23: note: Assuming allocation function fails kmscube-0.0.0~git20210103/perfcntrs.c:331:23: note: Assignment 'data=malloc(result_size)', assigned value is 0 kmscube-0.0.0~git20210103/perfcntrs.c:340:23: note: Null pointer dereference kmscube-0.0.0~git20210103/perfcntrs.c:180:23: style: Variable 'c' can be declared as pointer to const [constVariablePointer] kmscube-0.0.0~git20210103/perfcntrs.c:220:9: style: Variable 'name' can be declared as pointer to const [constVariablePointer] kmscube-0.0.0~git20210103/perfcntrs.c:280:23: style: Variable 'c' can be declared as pointer to const [constVariablePointer] kmscube-0.0.0~git20210103/perfcntrs.c:445:19: style: Variable 'c' can be declared as pointer to const [constVariablePointer] kmscube-0.0.0~git20210103/perfcntrs.c:455:19: style: Variable 'c' can be declared as pointer to const [constVariablePointer] kmscube-0.0.0~git20210103/texturator.c:109:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_TEXTURE_2D_ARRAY [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/texturator.c:393:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_TEXTURE_2D [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/texturator.c:447:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_TEXTURE_2D [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/texturator.c:465:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_UNPACK_ALIGNMENT [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/texturator.c:524:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_TEXTURE_3D [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/texturator.c:598:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_TRIANGLE_STRIP [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/texturator.c:716:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_COLOR_BUFFER_BIT [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/texturator.c:844:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_TEXTURE_2D [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/texturator.c:861:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DRM_DISPLAY_MODE_LEN [valueFlowBailoutIncompleteVar] kmscube-0.0.0~git20210103/texturator.c:712:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] kmscube-0.0.0~git20210103/texturator.c:712:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] kmscube-0.0.0~git20210103/texturator.c:712:3: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] kmscube-0.0.0~git20210103/texturator.c:601:34: style: Parameter 'rgba' can be declared as pointer to const [constParameterPointer] kmscube-0.0.0~git20210103/texturator.c:862:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] diff: head kmscube-0.0.0~git20210103/gst-decoder.c:277:42: warning: If memory allocation fails, then there is a possible null pointer dereference: dec [nullPointerOutOfMemory] kmscube-0.0.0~git20210103/gst-decoder.c:267:14: note: Assuming allocation function fails kmscube-0.0.0~git20210103/gst-decoder.c:267:14: note: Assignment 'dec=calloc(1,sizeof(*dec))', assigned value is 0 kmscube-0.0.0~git20210103/gst-decoder.c:277:42: note: Null pointer dereference DONE