2025-11-27 05:08 ftp://ftp.de.debian.org/debian/pool/main/i/info-beamer/info-beamer_1.0~pre3+dfsg.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=opengl --library=lua --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 -j4 platform: Linux-6.12.57+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.67 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.18.0 head-info: 9486fde (2025-11-26 08:20:02 +0100) count: 67 67 elapsed-time: 0.1 0.1 head-timing-info: old-timing-info: head results: info-beamer-1.0~pre4/bin2c.c:22:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] info-beamer-1.0~pre4/bin2c.c:12:26: style: Parameter 'argv' can be declared as const array [constParameter] info-beamer-1.0~pre4/font.c:37:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_TNUMBER [valueFlowBailoutIncompleteVar] info-beamer-1.0~pre4/font.c:88:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ft_encoding_unicode [valueFlowBailoutIncompleteVar] info-beamer-1.0~pre4/font.c:98:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] info-beamer-1.0~pre4/font.c:102:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_TUSERDATA [valueFlowBailoutIncompleteVar] info-beamer-1.0~pre4/framebuffer.c:41:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_FRAMEBUFFER [valueFlowBailoutIncompleteVar] info-beamer-1.0~pre4/framebuffer.c:79:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] info-beamer-1.0~pre4/framebuffer.c:67:5: warning: If memory allocation fails, then there is a possible null pointer dereference: framebuffer [nullPointerOutOfMemory] info-beamer-1.0~pre4/framebuffer.c:66:41: note: Assuming allocation function fails info-beamer-1.0~pre4/framebuffer.c:66:41: note: Assignment 'framebuffer=xmalloc(sizeof(struct framebuffer_t))', assigned value is 0 info-beamer-1.0~pre4/framebuffer.c:67:5: note: Null pointer dereference info-beamer-1.0~pre4/framebuffer.c:68:5: warning: If memory allocation fails, then there is a possible null pointer dereference: framebuffer [nullPointerOutOfMemory] info-beamer-1.0~pre4/framebuffer.c:66:41: note: Assuming allocation function fails info-beamer-1.0~pre4/framebuffer.c:66:41: note: Assignment 'framebuffer=xmalloc(sizeof(struct framebuffer_t))', assigned value is 0 info-beamer-1.0~pre4/framebuffer.c:68:5: note: Null pointer dereference info-beamer-1.0~pre4/framebuffer.c:69:5: warning: If memory allocation fails, then there is a possible null pointer dereference: framebuffer [nullPointerOutOfMemory] info-beamer-1.0~pre4/framebuffer.c:66:41: note: Assuming allocation function fails info-beamer-1.0~pre4/framebuffer.c:66:41: note: Assignment 'framebuffer=xmalloc(sizeof(struct framebuffer_t))', assigned value is 0 info-beamer-1.0~pre4/framebuffer.c:69:5: note: Null pointer dereference info-beamer-1.0~pre4/framebuffer.c:70:5: warning: If memory allocation fails, then there is a possible null pointer dereference: framebuffer [nullPointerOutOfMemory] info-beamer-1.0~pre4/framebuffer.c:66:41: note: Assuming allocation function fails info-beamer-1.0~pre4/framebuffer.c:66:41: note: Assignment 'framebuffer=xmalloc(sizeof(struct framebuffer_t))', assigned value is 0 info-beamer-1.0~pre4/framebuffer.c:70:5: note: Null pointer dereference info-beamer-1.0~pre4/image.c:52:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_TEXTURE_2D [valueFlowBailoutIncompleteVar] info-beamer-1.0~pre4/image.c:98:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_TEXTURE_2D [valueFlowBailoutIncompleteVar] info-beamer-1.0~pre4/image.c:117:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_TEXTURE_2D [valueFlowBailoutIncompleteVar] info-beamer-1.0~pre4/image.c:145:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IL_ORIGIN_UPPER_LEFT [valueFlowBailoutIncompleteVar] info-beamer-1.0~pre4/image.c:187:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_TUSERDATA [valueFlowBailoutIncompleteVar] info-beamer-1.0~pre4/shader.c:125:17: error: There is an unknown macro here somewhere. Configuration is required. If lua_setglobal is a macro then please configure it. [unknownMacro] info-beamer-1.0~pre4/image.c:30:14: style: Variable 'image' can be declared as pointer to const [constVariablePointer] info-beamer-1.0~pre4/image.c:38:14: style: Variable 'image' can be declared as pointer to const [constVariablePointer] info-beamer-1.0~pre4/image.c:45:14: style: Variable 'image' can be declared as pointer to const [constVariablePointer] info-beamer-1.0~pre4/image.c:66:14: style: Variable 'image' can be declared as pointer to const [constVariablePointer] info-beamer-1.0~pre4/image.c:71:37: style: Parameter 'L' can be declared as pointer to const. However it seems that 'image_dispose' is a callback function, if 'L' is declared with const you might also need to cast function pointer(s). [constParameterCallback] info-beamer-1.0~pre4/image.c:80:17: note: You might need to cast the function pointer here info-beamer-1.0~pre4/image.c:71:37: note: Parameter 'L' can be declared as pointer to const info-beamer-1.0~pre4/misc.c:21:35: style: Parameter 'before' can be declared as pointer to const [constParameterPointer] info-beamer-1.0~pre4/misc.c:21:59: style: Parameter 'after' can be declared as pointer to const [constParameterPointer] info-beamer-1.0~pre4/misc.c:68:27: warning: Uninitialized variable: *codep [uninitvar] info-beamer-1.0~pre4/misc.c:78:29: note: Calling function 'decode_utf8', 2nd argument '&codepoint' value is info-beamer-1.0~pre4/misc.c:68:27: note: Uninitialized variable: *codep info-beamer-1.0~pre4/video.c:81:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PIX_FMT_RGB24 [valueFlowBailoutIncompleteVar] info-beamer-1.0~pre4/video.c:204:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] info-beamer-1.0~pre4/video.c:281:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_TEXTURE_2D [valueFlowBailoutIncompleteVar] info-beamer-1.0~pre4/video.c:326:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_TEXTURE_2D [valueFlowBailoutIncompleteVar] info-beamer-1.0~pre4/video.c:369:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_TEXTURE_2D [valueFlowBailoutIncompleteVar] info-beamer-1.0~pre4/video.c:391:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] info-beamer-1.0~pre4/video.c:397:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_TUSERDATA [valueFlowBailoutIncompleteVar] info-beamer-1.0~pre4/struct.c:195:22: portability:inconclusive: Casting from float * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] info-beamer-1.0~pre4/struct.c:196:29: portability:inconclusive: Casting from float * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] info-beamer-1.0~pre4/struct.c:201:22: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] info-beamer-1.0~pre4/struct.c:202:29: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] info-beamer-1.0~pre4/struct.c:277:22: portability:inconclusive: Casting from float * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] info-beamer-1.0~pre4/struct.c:284:22: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] info-beamer-1.0~pre4/struct.c:111:44: style: Parameter 'h' can be declared as pointer to const [constParameterPointer] info-beamer-1.0~pre4/struct.c:59:7: style: union member 'Anonymous0::dummy' is never used. [unusedStructMember] info-beamer-1.0~pre4/vnc.c:83:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_TEXTURE_2D [valueFlowBailoutIncompleteVar] info-beamer-1.0~pre4/vnc.c:124:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] info-beamer-1.0~pre4/vnc.c:155:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BEV_EVENT_CONNECTED [valueFlowBailoutIncompleteVar] info-beamer-1.0~pre4/vnc.c:206:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_TEXTURE_2D [valueFlowBailoutIncompleteVar] info-beamer-1.0~pre4/vnc.c:420:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_TEXTURE_2D [valueFlowBailoutIncompleteVar] info-beamer-1.0~pre4/vnc.c:483:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BEV_OPT_CLOSE_ON_FREE [valueFlowBailoutIncompleteVar] info-beamer-1.0~pre4/vnc.c:499:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_TUSERDATA [valueFlowBailoutIncompleteVar] info-beamer-1.0~pre4/video.c:391:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] info-beamer-1.0~pre4/video.c:232:9: style: Variable 'heights' can be declared as const array [constVariable] info-beamer-1.0~pre4/video.c:261:14: style: Variable 'video' can be declared as pointer to const [constVariablePointer] info-beamer-1.0~pre4/video.c:268:14: style: Variable 'video' can be declared as pointer to const [constVariablePointer] info-beamer-1.0~pre4/video.c:319:14: style: Variable 'video' can be declared as pointer to const [constVariablePointer] info-beamer-1.0~pre4/video.c:339:14: style: Variable 'video' can be declared as pointer to const [constVariablePointer] info-beamer-1.0~pre4/video.c:344:37: style: Parameter 'L' can be declared as pointer to const. However it seems that 'video_dispose' is a callback function, if 'L' is declared with const you might also need to cast function pointer(s). [constParameterCallback] info-beamer-1.0~pre4/video.c:355:17: note: You might need to cast the function pointer here info-beamer-1.0~pre4/video.c:344:37: note: Parameter 'L' can be declared as pointer to const info-beamer-1.0~pre4/vnc.c:311:9: style: Condition '!vnc_decode(vnc,pixels)' is always false [knownConditionTrueFalse] info-beamer-1.0~pre4/vnc.c:311:20: note: Calling function 'vnc_decode' returns 1 info-beamer-1.0~pre4/vnc.c:311:9: note: Condition '!vnc_decode(vnc,pixels)' is always false info-beamer-1.0~pre4/vnc.c:186:48: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] info-beamer-1.0~pre4/vnc.c:179:38: note: Assuming allocation function fails info-beamer-1.0~pre4/vnc.c:179:38: note: Assignment 'converted=malloc(vnc->rect_w*vnc->rect_h*4)', assigned value is 0 info-beamer-1.0~pre4/vnc.c:186:48: note: Null pointer addition info-beamer-1.0~pre4/main.c:1363:26: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro] info-beamer-1.0~pre4/vnc.c:69:12: style: Variable 'vnc' can be declared as pointer to const [constVariablePointer] info-beamer-1.0~pre4/vnc.c:76:12: style: Variable 'vnc' can be declared as pointer to const [constVariablePointer] info-beamer-1.0~pre4/vnc.c:97:12: style: Variable 'vnc' can be declared as pointer to const [constVariablePointer] info-beamer-1.0~pre4/vnc.c:103:12: style: Variable 'vnc' can be declared as pointer to const [constVariablePointer] info-beamer-1.0~pre4/vnc.c:118:31: style: Parameter 'vnc' can be declared as pointer to const [constParameterPointer] info-beamer-1.0~pre4/vnc.c:310:20: style: Variable 'pixels' can be declared as pointer to const [constVariablePointer] info-beamer-1.0~pre4/vnc.c:29:13: style: struct member 'pixelformat_t::depth' is never used. [unusedStructMember] info-beamer-1.0~pre4/vnc.c:31:13: style: struct member 'pixelformat_t::truecolor' is never used. [unusedStructMember] info-beamer-1.0~pre4/vnc.c:38:13: style: struct member 'pixelformat_t::padding' is never used. [unusedStructMember] diff: DONE