2026-04-13 13:45 ftp://ftp.de.debian.org/debian/pool/main/b/bam/bam_0.5.1.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --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 -j1 platform: Linux-6.8.0-107-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: 7e36471 (2026-04-13 13:02:39 +0200) count: 102 371 elapsed-time: 2.3 8.1 head-timing-info: old-timing-info: head results: bam-0.5.1/src/cache.c:499:3: error: Resource leak: fp [resourceLeak] bam-0.5.1/src/cache.c:593:3: error: Memory leak: cache [memleak] bam-0.5.1/src/cache.c:466:3: warning: If memory allocation fails, then there is a possible null pointer dereference: output [nullPointerOutOfMemory] bam-0.5.1/src/cache.c:534:17: note: Assuming allocation function fails bam-0.5.1/src/cache.c:534:17: note: Assignment 'final=malloc(sizeof(struct CACHEINFO_OUTPUT)*(num_outputs+oldcache->count))', assigned value is 0 bam-0.5.1/src/cache.c:535:88: note: Calling function 'outputcache_merge', 5th argument 'final' value is 0 bam-0.5.1/src/cache.c:466:3: note: Null pointer dereference bam-0.5.1/src/cache.c:469:3: warning: If memory allocation fails, then there is a possible null pointer dereference: output [nullPointerOutOfMemory] bam-0.5.1/src/cache.c:534:17: note: Assuming allocation function fails bam-0.5.1/src/cache.c:534:17: note: Assignment 'final=malloc(sizeof(struct CACHEINFO_OUTPUT)*(num_outputs+oldcache->count))', assigned value is 0 bam-0.5.1/src/cache.c:535:88: note: Calling function 'outputcache_merge', 5th argument 'final' value is 0 bam-0.5.1/src/cache.c:469:3: note: Null pointer dereference bam-0.5.1/src/cache.c:510:9: warning: If memory allocation fails, then there is a possible null pointer dereference: output [nullPointerOutOfMemory] bam-0.5.1/src/cache.c:509:17: note: Assuming allocation function fails bam-0.5.1/src/cache.c:509:17: note: Assignment 'output=malloc(output_size)', assigned value is 0 bam-0.5.1/src/cache.c:510:9: note: Null pointer dereference bam-0.5.1/src/cache.c:529:8: warning: If memory allocation fails, then there is a possible null pointer dereference: output [nullPointerOutOfMemory] bam-0.5.1/src/cache.c:509:17: note: Assuming allocation function fails bam-0.5.1/src/cache.c:509:17: note: Assignment 'output=malloc(output_size)', assigned value is 0 bam-0.5.1/src/cache.c:529:8: note: Null pointer dereference bam-0.5.1/src/cache.c:586:2: warning: If memory allocation fails, then there is a possible null pointer dereference: cache [nullPointerOutOfMemory] bam-0.5.1/src/cache.c:585:37: note: Assuming allocation function fails bam-0.5.1/src/cache.c:585:10: note: Assignment 'cache=(struct OUTPUTCACHE*)malloc(sizeof(struct OUTPUTCACHE))', assigned value is 0 bam-0.5.1/src/cache.c:586:2: note: Null pointer dereference bam-0.5.1/src/cache.c:587:2: warning: If memory allocation fails, then there is a possible null pointer dereference: cache [nullPointerOutOfMemory] bam-0.5.1/src/cache.c:585:37: note: Assuming allocation function fails bam-0.5.1/src/cache.c:585:10: note: Assignment 'cache=(struct OUTPUTCACHE*)malloc(sizeof(struct OUTPUTCACHE))', assigned value is 0 bam-0.5.1/src/cache.c:587:2: note: Null pointer dereference bam-0.5.1/src/cache.c:589:26: warning: If memory allocation fails, then there is a possible null pointer dereference: cache [nullPointerOutOfMemory] bam-0.5.1/src/cache.c:585:37: note: Assuming allocation function fails bam-0.5.1/src/cache.c:585:10: note: Assignment 'cache=(struct OUTPUTCACHE*)malloc(sizeof(struct OUTPUTCACHE))', assigned value is 0 bam-0.5.1/src/cache.c:589:26: note: Null pointer dereference bam-0.5.1/src/cache.c:589:39: warning: If memory allocation fails, then there is a possible null pointer dereference: cache [nullPointerOutOfMemory] bam-0.5.1/src/cache.c:585:37: note: Assuming allocation function fails bam-0.5.1/src/cache.c:585:10: note: Assignment 'cache=(struct OUTPUTCACHE*)malloc(sizeof(struct OUTPUTCACHE))', assigned value is 0 bam-0.5.1/src/cache.c:589:39: note: Null pointer dereference bam-0.5.1/src/cache.c:605:18: warning: Either the condition '!outputcache' is redundant or there is possible null pointer dereference: outputcache. [nullPointerRedundantCheck] bam-0.5.1/src/cache.c:608:5: note: Assuming that condition '!outputcache' is not redundant bam-0.5.1/src/cache.c:605:18: note: Null pointer dereference bam-0.5.1/src/cache.c:352:63: style:inconclusive: Function 'depcache_find_byindex' argument 1 names different: declaration 'cache' definition 'depcache'. [funcArgNamesDifferent] bam-0.5.1/src/cache.h:22:63: note: Function 'depcache_find_byindex' argument 1 names different: declaration 'cache' definition 'depcache'. bam-0.5.1/src/cache.c:352:63: note: Function 'depcache_find_byindex' argument 1 names different: declaration 'cache' definition 'depcache'. bam-0.5.1/src/cache.c:357:62: style:inconclusive: Function 'depcache_find_byhash' argument 1 names different: declaration 'cache' definition 'depcache'. [funcArgNamesDifferent] bam-0.5.1/src/cache.h:21:62: note: Function 'depcache_find_byhash' argument 1 names different: declaration 'cache' definition 'depcache'. bam-0.5.1/src/cache.c:357:62: note: Function 'depcache_find_byhash' argument 1 names different: declaration 'cache' definition 'depcache'. bam-0.5.1/src/cache.c:139:54: style: Parameter 'a' can be declared as pointer to const. However it seems that 'cacheinfo_deps_cmp' is a callback function, if 'a' is declared with const you might also need to cast function pointer(s). [constParameterCallback] bam-0.5.1/src/cache.c:147:1: note: You might need to cast the function pointer here bam-0.5.1/src/cache.c:139:54: note: Parameter 'a' can be declared as pointer to const bam-0.5.1/src/cache.c:139:80: style: Parameter 'b' can be declared as pointer to const. However it seems that 'cacheinfo_deps_cmp' is a callback function, if 'b' is declared with const you might also need to cast function pointer(s). [constParameterCallback] bam-0.5.1/src/cache.c:147:1: note: You might need to cast the function pointer here bam-0.5.1/src/cache.c:139:80: note: Parameter 'b' can be declared as pointer to const bam-0.5.1/src/cache.c:224:20: style: Variable 'dep' can be declared as pointer to const [constVariablePointer] bam-0.5.1/src/cache.c:372:25: style: Variable 'cacheinfo' can be declared as pointer to const [constVariablePointer] bam-0.5.1/src/cache.c:440:27: style: Parameter 'old' can be declared as pointer to const [constParameterPointer] bam-0.5.1/src/cache.c:441:27: style: Parameter 'new' can be declared as pointer to const [constParameterPointer] bam-0.5.1/src/context.c:40:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_REGISTRYINDEX [valueFlowBailoutIncompleteVar] bam-0.5.1/src/context.c:159:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] bam-0.5.1/src/context.c:180:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] bam-0.5.1/src/context.c:300:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] bam-0.5.1/src/context.c:475:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] bam-0.5.1/src/context.c:695:9: warning: Identical condition and return expression 'error_code', return value is always 0 [identicalConditionAfterEarlyExit] bam-0.5.1/src/context.c:689:5: note: If condition 'error_code' is true, the function will return/exit bam-0.5.1/src/context.c:695:9: note: Returning identical expression 'error_code' bam-0.5.1/src/context.c:709:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] bam-0.5.1/src/context.c:57:46: style: Parameter 'context' can be declared as pointer to const [constParameterPointer] bam-0.5.1/src/context.c:98:19: style: Variable 'link' can be declared as pointer to const [constVariablePointer] bam-0.5.1/src/context.c:115:70: style: Parameter 'job' can be declared as pointer to const [constParameterPointer] bam-0.5.1/src/context.c:164:19: style: Variable 'link' can be declared as pointer to const [constVariablePointer] bam-0.5.1/src/context.c:192:44: style: Parameter 'context' can be declared as pointer to const [constParameterPointer] bam-0.5.1/src/context.c:231:19: style: Variable 'link' can be declared as pointer to const [constVariablePointer] bam-0.5.1/src/context.c:314:19: style: Variable 'link' can be declared as pointer to const [constVariablePointer] bam-0.5.1/src/context.c:490:19: style: Variable 'link' can be declared as pointer to const [constVariablePointer] bam-0.5.1/src/context.c:491:21: style: Variable 'strlink' can be declared as pointer to const [constVariablePointer] bam-0.5.1/src/context.c:518:27: style: Variable 'outputcacheinfo' can be declared as pointer to const [constVariablePointer] bam-0.5.1/src/context.c:522:23: style: Variable 'path' can be declared as pointer to const [constVariablePointer] bam-0.5.1/src/context.c:526:19: style: Variable 'oldjobdep' can be declared as pointer to const [constVariablePointer] bam-0.5.1/src/context.c:702:20: style: Variable 'link' can be declared as pointer to const [constVariablePointer] bam-0.5.1/src/dep_cpp.c:361:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_TTABLE [valueFlowBailoutIncompleteVar] bam-0.5.1/src/dep_cpp.c:121:10: style: Local variable 'timestamp' shadows outer function [shadowFunction] bam-0.5.1/src/support.h:54:8: note: Shadowed declaration bam-0.5.1/src/dep_cpp.c:121:10: note: Shadow variable bam-0.5.1/src/dep_cpp.c:264:9: style: Local variable 'timestamp' shadows outer function [shadowFunction] bam-0.5.1/src/support.h:54:8: note: Shadowed declaration bam-0.5.1/src/dep_cpp.c:264:9: note: Shadow variable bam-0.5.1/src/dep_cpp.c:108:73: style: Parameter 'cacheinfo' can be declared as pointer to const. However it seems that 'cachehit_callback' is a callback function, if 'cacheinfo' is declared with const you might also need to cast function pointer(s). [constParameterCallback] bam-0.5.1/src/dep_cpp.c:170:43: note: You might need to cast the function pointer here bam-0.5.1/src/dep_cpp.c:108:73: note: Parameter 'cacheinfo' can be declared as pointer to const bam-0.5.1/src/dep_cpp.c:301:23: style: Variable 'cur' can be declared as pointer to const [constVariablePointer] bam-0.5.1/src/dep_search.c:96:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_TSTRING [valueFlowBailoutIncompleteVar] bam-0.5.1/src/dep_search.c:53:21: style: Variable 'dep' can be declared as pointer to const [constVariablePointer] bam-0.5.1/src/dep_search.c:54:21: style: Variable 'path' can be declared as pointer to const [constVariablePointer] bam-0.5.1/src/lua/lua.h:89:9: error: syntax error [syntaxError] bam-0.5.1/src/luafuncs.c:65:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_TNIL [valueFlowBailoutIncompleteVar] bam-0.5.1/src/luafuncs.c:101:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_TSTRING [valueFlowBailoutIncompleteVar] bam-0.5.1/src/luafuncs.c:129:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_TSTRING [valueFlowBailoutIncompleteVar] bam-0.5.1/src/luafuncs.c:425:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_TNIL [valueFlowBailoutIncompleteVar] bam-0.5.1/src/luafuncs.c:546:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_TTABLE [valueFlowBailoutIncompleteVar] bam-0.5.1/src/luafuncs.c:555:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_TSTRING [valueFlowBailoutIncompleteVar] bam-0.5.1/src/luafuncs.c:599:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_TTABLE [valueFlowBailoutIncompleteVar] bam-0.5.1/src/luafuncs.c:643:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_TTABLE [valueFlowBailoutIncompleteVar] bam-0.5.1/src/luafuncs.c:705:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_TTABLE [valueFlowBailoutIncompleteVar] bam-0.5.1/src/luafuncs.c:721:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_TSTRING [valueFlowBailoutIncompleteVar] bam-0.5.1/src/luafuncs.c:746:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_TTABLE [valueFlowBailoutIncompleteVar] bam-0.5.1/src/luafuncs.c:771:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_TTABLE [valueFlowBailoutIncompleteVar] bam-0.5.1/src/luafuncs.c:1140:2: warning:inconclusive: The buffer 'buffer' may not be null-terminated after the call to strncpy(). [terminateStrncpy] bam-0.5.1/src/luafuncs.c:510:3: error: Null pointer dereference: (volatile int*)0 [nullPointer] bam-0.5.1/src/luafuncs.c:331:15: style: Variable 'node' can be declared as pointer to const [constVariablePointer] bam-0.5.1/src/luafuncs.c:344:15: style: Variable 'node' can be declared as pointer to const [constVariablePointer] bam-0.5.1/src/luafuncs.c:507:29: style: Parameter 'L' can be declared as pointer to const [constParameterPointer] bam-0.5.1/src/main.c:906:62: error: There is an unknown macro here somewhere. Configuration is required. If LUA_RELEASE is a macro then please configure it. [unknownMacro] bam-0.5.1/src/node.c:433:2: error: Address of local auto-variable assigned to a function parameter. [autoVariables] bam-0.5.1/src/node.c:618:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] bam-0.5.1/src/node.c:620:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] bam-0.5.1/src/node.c:620:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] bam-0.5.1/src/node.c:643:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] bam-0.5.1/src/node.c:645:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] bam-0.5.1/src/node.c:645:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] bam-0.5.1/src/node.c:683:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] bam-0.5.1/src/node.c:129:31: style:inconclusive: Function 'node_create' argument 1 names different: declaration 'node' definition 'nodeptr'. [funcArgNamesDifferent] bam-0.5.1/src/node.h:213:31: note: Function 'node_create' argument 1 names different: declaration 'node' definition 'nodeptr'. bam-0.5.1/src/node.c:129:31: note: Function 'node_create' argument 1 names different: declaration 'node' definition 'nodeptr'. bam-0.5.1/src/node.c:233:23: style: Variable 'link' can be declared as pointer to const [constVariablePointer] bam-0.5.1/src/node.c:393:42: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] bam-0.5.1/src/node.c:571:19: style: Variable 'link' can be declared as pointer to const [constVariablePointer] bam-0.5.1/src/node.c:585:19: style: Variable 'link' can be declared as pointer to const [constVariablePointer] bam-0.5.1/src/node.c:612:19: style: Variable 'link' can be declared as pointer to const [constVariablePointer] bam-0.5.1/src/node.c:636:15: style: Variable 'node' can be declared as pointer to const [constVariablePointer] bam-0.5.1/src/node.c:637:19: style: Variable 'link' can be declared as pointer to const [constVariablePointer] bam-0.5.1/src/node.c:674:19: style: Variable 'link' can be declared as pointer to const [constVariablePointer] bam-0.5.1/src/node.c:675:21: style: Variable 'strlink' can be declared as pointer to const [constVariablePointer] bam-0.5.1/src/path.c:163:3: error: #error path_isabs(const char *path) not implemented on this platform [preprocessorErrorDirective] bam-0.5.1/src/support.c:429:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _SC_NPROCESSORS_ONLN [valueFlowBailoutIncompleteVar] bam-0.5.1/src/support.c:495:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] bam-0.5.1/src/support.c:680:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] bam-0.5.1/src/support.c:398:3: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] bam-0.5.1/src/support.c:528:2: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] bam-0.5.1/src/support.c:470:32: style:inconclusive: Function 'file_isregular' argument 1 names different: declaration 'path' definition 'filename'. [funcArgNamesDifferent] bam-0.5.1/src/support.h:56:32: note: Function 'file_isregular' argument 1 names different: declaration 'path' definition 'filename'. bam-0.5.1/src/support.c:470:32: note: Function 'file_isregular' argument 1 names different: declaration 'path' definition 'filename'. bam-0.5.1/src/support.c:756:31: style:inconclusive: Function 'string_hash_add' argument 1 names different: declaration 'base' definition 'h'. [funcArgNamesDifferent] bam-0.5.1/src/support.h:64:31: note: Function 'string_hash_add' argument 1 names different: declaration 'base' definition 'h'. bam-0.5.1/src/support.c:756:31: note: Function 'string_hash_add' argument 1 names different: declaration 'base' definition 'h'. bam-0.5.1/src/support.c:756:46: style:inconclusive: Function 'string_hash_add' argument 2 names different: declaration 'str_in' definition 'str'. [funcArgNamesDifferent] bam-0.5.1/src/support.h:64:49: note: Function 'string_hash_add' argument 2 names different: declaration 'str_in' definition 'str'. bam-0.5.1/src/support.c:756:46: note: Function 'string_hash_add' argument 2 names different: declaration 'str_in' definition 'str'. bam-0.5.1/src/support.c:308:18: style: Variable 'entry' can be declared as pointer to const [constVariablePointer] bam-0.5.1/src/support.c:386:26: style: Parameter 'thread' can be declared as pointer to const [constParameterPointer] bam-0.5.1/src/tools/txt2c.c:27:14: warning: If resource allocation fails, then there is a possible null pointer dereference: input [nullPointerOutOfResources] bam-0.5.1/src/tools/txt2c.c:23:16: note: Assuming allocation function fails bam-0.5.1/src/tools/txt2c.c:23:16: note: Assignment 'input=fopen(argv[f],"r")', assigned value is 0 bam-0.5.1/src/tools/txt2c.c:27:14: note: Null pointer dereference bam-0.5.1/tests/collect_recurse/collect_recurse.cpp:9:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] bam-0.5.1/tests/collect_wrong/collect_wrong.cpp:7:35: error: There is an unknown macro here somewhere. Configuration is required. If endl is a macro then please configure it. [unknownMacro] bam-0.5.1/tests/dot.in.dir/dot_in_dir.cpp:7:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] bam-0.5.1/tests/locked/locked.cpp:7:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] bam-0.5.1/tests/retval/retval.cpp:7:35: error: There is an unknown macro here somewhere. Configuration is required. If endl is a macro then please configure it. [unknownMacro] bam-0.5.1/tests/sharedlib/sharedlib.cpp:7:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] diff: 2.20.0 bam-0.5.1/src/lua/lapi.c:1000:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value_ [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lapi.c:1017:11: style: Variable 'o' can be declared as pointer to const [constVariablePointer] 2.20.0 bam-0.5.1/src/lua/lapi.c:1022:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable l [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lapi.c:1030:36: style: Parameter 'L' can be declared as pointer to const. However it seems that 'lua_status' is a callback function, if 'L' is declared with const you might also need to cast function pointer(s). [constParameterCallback] bam-0.5.1/src/lua/lua.h:292:15: note: You might need to cast the function pointer here bam-0.5.1/src/lua/lapi.c:1030:36: note: Parameter 'L' can be declared as pointer to const 2.20.0 bam-0.5.1/src/lua/lapi.c:1128:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable h [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lapi.c:1146:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gc [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lapi.c:1183:53: style:inconclusive: Function 'lua_newuserdata' argument 2 names different: declaration 'sz' definition 'size'. [funcArgNamesDifferent] bam-0.5.1/src/lua/lua.h:250:55: note: Function 'lua_newuserdata' argument 2 names different: declaration 'sz' definition 'size'. bam-0.5.1/src/lua/lapi.c:1183:53: note: Function 'lua_newuserdata' argument 2 names different: declaration 'sz' definition 'size'. 2.20.0 bam-0.5.1/src/lua/lapi.c:1187:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gc [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lapi.c:1200:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable c [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lapi.c:1248:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gc [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lapi.c:1260:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable l [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lapi.c:1274:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable c [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lapi.c:178:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tt_ [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lapi.c:230:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable c [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lapi.c:257:53: style:inconclusive: Function 'lua_typename' argument 2 names different: declaration 'tp' definition 't'. [funcArgNamesDifferent] bam-0.5.1/src/lua/lua.h:179:59: note: Function 'lua_typename' argument 2 names different: declaration 'tp' definition 't'. bam-0.5.1/src/lua/lapi.c:257:53: note: Function 'lua_typename' argument 2 names different: declaration 'tp' definition 't'. 2.20.0 bam-0.5.1/src/lua/lapi.c:387:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ts [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lapi.c:395:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ts [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lapi.c:408:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable c [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lapi.c:416:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable u [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lapi.c:425:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable th [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lapi.c:432:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable h [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lapi.c:483:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gc [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lapi.c:498:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gc [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lapi.c:548:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gc [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lapi.c:574:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gc [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lapi.c:590:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable h [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lapi.c:605:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable h [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lapi.c:615:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable h [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lapi.c:632:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable h [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lapi.c:651:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable h [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lapi.c:662:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable h [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lapi.c:676:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable h [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lapi.c:687:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gc [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lapi.c:704:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable h [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lapi.c:728:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable u [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lapi.c:746:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable h [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lapi.c:759:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable h [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lapi.c:770:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable h [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lapi.c:788:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable h [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lapi.c:807:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable h [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lapi.c:80:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable c [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lapi.c:822:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable h [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lapi.c:837:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable h [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lapi.c:851:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tt_ [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lapi.c:891:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable u [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lauxlib.c:1012:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lauxlib.c:236:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lauxlib.c:391:74: style:inconclusive: Function 'luaL_checklstring' argument 3 names different: declaration 'l' definition 'len'. [funcArgNamesDifferent] bam-0.5.1/src/lua/lauxlib.h:40:67: note: Function 'luaL_checklstring' argument 3 names different: declaration 'l' definition 'len'. bam-0.5.1/src/lua/lauxlib.c:391:74: note: Function 'luaL_checklstring' argument 3 names different: declaration 'l' definition 'len'. 2.20.0 bam-0.5.1/src/lua/lauxlib.c:399:66: style:inconclusive: Function 'luaL_optlstring' argument 4 names different: declaration 'l' definition 'len'. [funcArgNamesDifferent] bam-0.5.1/src/lua/lauxlib.h:42:68: note: Function 'luaL_optlstring' argument 4 names different: declaration 'l' definition 'len'. bam-0.5.1/src/lua/lauxlib.c:399:66: note: Function 'luaL_optlstring' argument 4 names different: declaration 'l' definition 'len'. 2.20.0 bam-0.5.1/src/lua/lauxlib.c:662:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lauxlib.c:676:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lauxlib.c:712:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lbaselib.c:37:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lcode.c:1062:53: style:inconclusive: Function 'luaK_prefix' argument 3 names different: declaration 'v' definition 'e'. [funcArgNamesDifferent] bam-0.5.1/src/lua/lcode.h:81:63: note: Function 'luaK_prefix' argument 3 names different: declaration 'v' definition 'e'. bam-0.5.1/src/lua/lcode.c:1062:53: note: Function 'luaK_prefix' argument 3 names different: declaration 'v' definition 'e'. 2.20.0 bam-0.5.1/src/lua/lcode.c:1121:28: style:inconclusive: Function 'luaK_posfix' argument 3 names different: declaration 'v1' definition 'e1'. [funcArgNamesDifferent] bam-0.5.1/src/lua/lcode.h:83:64: note: Function 'luaK_posfix' argument 3 names different: declaration 'v1' definition 'e1'. bam-0.5.1/src/lua/lcode.c:1121:28: note: Function 'luaK_posfix' argument 3 names different: declaration 'v1' definition 'e1'. 2.20.0 bam-0.5.1/src/lua/lcode.c:1121:41: style:inconclusive: Function 'luaK_posfix' argument 4 names different: declaration 'v2' definition 'e2'. [funcArgNamesDifferent] bam-0.5.1/src/lua/lcode.h:84:38: note: Function 'luaK_posfix' argument 4 names different: declaration 'v2' definition 'e2'. bam-0.5.1/src/lua/lcode.c:1121:41: note: Function 'luaK_posfix' argument 4 names different: declaration 'v2' definition 'e2'. 2.20.0 bam-0.5.1/src/lua/lcode.c:312:48: style:inconclusive: Function 'luaK_codeABC' argument 3 names different: declaration 'A' definition 'a'. [funcArgNamesDifferent] bam-0.5.1/src/lua/lcode.h:53:58: note: Function 'luaK_codeABC' argument 3 names different: declaration 'A' definition 'a'. bam-0.5.1/src/lua/lcode.c:312:48: note: Function 'luaK_codeABC' argument 3 names different: declaration 'A' definition 'a'. 2.20.0 bam-0.5.1/src/lua/lcode.c:312:55: style:inconclusive: Function 'luaK_codeABC' argument 4 names different: declaration 'B' definition 'b'. [funcArgNamesDifferent] bam-0.5.1/src/lua/lcode.h:53:65: note: Function 'luaK_codeABC' argument 4 names different: declaration 'B' definition 'b'. bam-0.5.1/src/lua/lcode.c:312:55: note: Function 'luaK_codeABC' argument 4 names different: declaration 'B' definition 'b'. 2.20.0 bam-0.5.1/src/lua/lcode.c:312:62: style:inconclusive: Function 'luaK_codeABC' argument 5 names different: declaration 'C' definition 'c'. [funcArgNamesDifferent] bam-0.5.1/src/lua/lcode.h:53:72: note: Function 'luaK_codeABC' argument 5 names different: declaration 'C' definition 'c'. bam-0.5.1/src/lua/lcode.c:312:62: note: Function 'luaK_codeABC' argument 5 names different: declaration 'C' definition 'c'. 2.20.0 bam-0.5.1/src/lua/lcode.c:324:48: style:inconclusive: Function 'luaK_codeABx' argument 3 names different: declaration 'A' definition 'a'. [funcArgNamesDifferent] bam-0.5.1/src/lua/lcode.h:52:58: note: Function 'luaK_codeABx' argument 3 names different: declaration 'A' definition 'a'. bam-0.5.1/src/lua/lcode.c:324:48: note: Function 'luaK_codeABx' argument 3 names different: declaration 'A' definition 'a'. 2.20.0 bam-0.5.1/src/lua/lcode.c:324:64: style:inconclusive: Function 'luaK_codeABx' argument 4 names different: declaration 'Bx' definition 'bc'. [funcArgNamesDifferent] bam-0.5.1/src/lua/lcode.h:52:74: note: Function 'luaK_codeABx' argument 4 names different: declaration 'Bx' definition 'bc'. bam-0.5.1/src/lua/lcode.c:324:64: note: Function 'luaK_codeABx' argument 4 names different: declaration 'Bx' definition 'bc'. 2.20.0 bam-0.5.1/src/lua/lcode.c:397:46: style: Parameter 'e' can be declared as pointer to const [constParameterPointer] 2.20.0 bam-0.5.1/src/lua/lcode.c:428:41: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] 2.20.0 bam-0.5.1/src/lua/lcode.c:436:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tt_ [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lcode.c:460:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gc [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lcode.c:505:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gc [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lcode.c:782:59: style:inconclusive: Function 'luaK_storevar' argument 3 names different: declaration 'e' definition 'ex'. [funcArgNamesDifferent] bam-0.5.1/src/lua/lcode.h:71:69: note: Function 'luaK_storevar' argument 3 names different: declaration 'e' definition 'ex'. bam-0.5.1/src/lua/lcode.c:782:59: note: Function 'luaK_storevar' argument 3 names different: declaration 'e' definition 'ex'. 2.20.0 bam-0.5.1/src/lua/lcode.c:825:54: style: Parameter 'e' can be declared as pointer to const [constParameterPointer] 2.20.0 bam-0.5.1/src/lua/ldblib.c:305:45: style: Parameter 'ar' can be declared as pointer to const. However it seems that 'hookf' is a callback function, if 'ar' is declared with const you might also need to cast function pointer(s). [constParameterCallback] bam-0.5.1/src/lua/ldblib.c:387:20: note: You might need to cast the function pointer here bam-0.5.1/src/lua/ldblib.c:305:45: note: Parameter 'ar' can be declared as pointer to const 2.20.0 bam-0.5.1/src/lua/ldblib.c:405:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/ldebug.c:104:42: style: Parameter 'L' can be declared as pointer to const. However it seems that 'lua_gethookcount' is a callback function, if 'L' is declared with const you might also need to cast function pointer(s). [constParameterCallback] bam-0.5.1/src/lua/lua.h:438:14: note: You might need to cast the function pointer here bam-0.5.1/src/lua/ldebug.c:104:42: note: Parameter 'L' can be declared as pointer to const 2.20.0 bam-0.5.1/src/lua/ldebug.c:134:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable l [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/ldebug.c:153:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable l [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/ldebug.c:175:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tt_ [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/ldebug.c:236:10: style: Variable 'lineinfo' can be declared as pointer to const [constVariablePointer] 2.20.0 bam-0.5.1/src/lua/ldebug.c:238:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gc [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/ldebug.c:317:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cl [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/ldebug.c:348:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ts [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/ldebug.c:456:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tt_ [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/ldebug.c:46:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable l [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/ldebug.c:476:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable l [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/ldebug.c:51:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable l [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/ldebug.c:540:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable l [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/ldebug.c:559:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable l [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/ldebug.c:566:68: style:inconclusive: Function 'luaG_typeerror' argument 3 names different: declaration 'opname' definition 'op'. [funcArgNamesDifferent] bam-0.5.1/src/lua/ldebug.h:22:61: note: Function 'luaG_typeerror' argument 3 names different: declaration 'opname' definition 'op'. bam-0.5.1/src/lua/ldebug.c:566:68: note: Function 'luaG_typeerror' argument 3 names different: declaration 'opname' definition 'op'. 2.20.0 bam-0.5.1/src/lua/ldebug.c:641:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable l [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/ldebug.c:661:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable l [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/ldebug.c:94:42: style: Parameter 'L' can be declared as pointer to const [constParameterPointer] 2.20.0 bam-0.5.1/src/lua/ldebug.c:99:41: style: Parameter 'L' can be declared as pointer to const. However it seems that 'lua_gethookmask' is a callback function, if 'L' is declared with const you might also need to cast function pointer(s). [constParameterCallback] bam-0.5.1/src/lua/lua.h:437:14: note: You might need to cast the function pointer here bam-0.5.1/src/lua/ldebug.c:99:41: note: Parameter 'L' can be declared as pointer to const 2.20.0 bam-0.5.1/src/lua/ldo.c:158:49: style: Parameter 'oldstack' can be declared as pointer to const [constParameterPointer] 2.20.0 bam-0.5.1/src/lua/ldo.c:270:13: style: Variable 'ci->top' is reassigned a value before the old one has been used. [redundantAssignment] bam-0.5.1/src/lua/ldo.c:261:13: note: ci->top is assigned bam-0.5.1/src/lua/ldo.c:270:13: note: ci->top is overwritten 2.20.0 bam-0.5.1/src/lua/ldo.c:290:51: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] 2.20.0 bam-0.5.1/src/lua/ldo.c:302:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tt_ [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/ldo.c:349:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable c [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/ldo.c:604:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gc [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/ldo.c:654:50: style: Parameter 'from' can be declared as pointer to const. However it seems that 'lua_resume' is a callback function, if 'from' is declared with const you might also need to cast function pointer(s). [constParameterCallback] bam-0.5.1/src/lua/lua.h:291:15: note: You might need to cast the function pointer here bam-0.5.1/src/lua/ldo.c:654:50: note: Parameter 'from' can be declared as pointer to const 2.20.0 bam-0.5.1/src/lua/ldo.c:685:41: style: Parameter 'L' can be declared as pointer to const. However it seems that 'lua_isyieldable' is a callback function, if 'L' is declared with const you might also need to cast function pointer(s). [constParameterCallback] bam-0.5.1/src/lua/lua.h:293:14: note: You might need to cast the function pointer here bam-0.5.1/src/lua/ldo.c:685:41: note: Parameter 'L' can be declared as pointer to const 2.20.0 bam-0.5.1/src/lua/ldo.c:720:27: style:inconclusive: Function 'luaD_pcall' argument 4 names different: declaration 'oldtop' definition 'old_top'. [funcArgNamesDifferent] bam-0.5.1/src/lua/ldo.h:46:51: note: Function 'luaD_pcall' argument 4 names different: declaration 'oldtop' definition 'old_top'. bam-0.5.1/src/lua/ldo.c:720:27: note: Function 'luaD_pcall' argument 4 names different: declaration 'oldtop' definition 'old_top'. 2.20.0 bam-0.5.1/src/lua/ldo.c:94:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gc [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/ldump.c:119:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ts [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/ldump.c:166:52: style: Parameter 'psource' can be declared as pointer to const [constParameterPointer] 2.20.0 bam-0.5.1/src/lua/ldump.c:54:3: warning: The address of variable 'x' might be accessed at non-zero index. [objectIndex] bam-0.5.1/src/lua/ldump.c:54:3: note: Address of variable taken here. bam-0.5.1/src/lua/ldump.c:54:3: note: The address of variable 'x' might be accessed at non-zero index. 2.20.0 bam-0.5.1/src/lua/ldump.c:59:3: warning: The address of variable 'x' might be accessed at non-zero index. [objectIndex] bam-0.5.1/src/lua/ldump.c:59:3: note: Address of variable taken here. bam-0.5.1/src/lua/ldump.c:59:3: note: The address of variable 'x' might be accessed at non-zero index. 2.20.0 bam-0.5.1/src/lua/ldump.c:64:3: warning: The address of variable 'x' might be accessed at non-zero index. [objectIndex] bam-0.5.1/src/lua/ldump.c:64:3: note: Address of variable taken here. bam-0.5.1/src/lua/ldump.c:64:3: note: The address of variable 'x' might be accessed at non-zero index. 2.20.0 bam-0.5.1/src/lua/ldump.c:69:3: warning: The address of variable 'x' might be accessed at non-zero index. [objectIndex] bam-0.5.1/src/lua/ldump.c:69:3: note: Address of variable taken here. bam-0.5.1/src/lua/ldump.c:69:3: note: The address of variable 'x' might be accessed at non-zero index. 2.20.0 bam-0.5.1/src/lua/ldump.c:83:7: warning: The address of variable 'size' might be accessed at non-zero index. [objectIndex] bam-0.5.1/src/lua/ldump.c:83:7: note: Address of variable taken here. bam-0.5.1/src/lua/ldump.c:83:7: note: The address of variable 'size' might be accessed at non-zero index. 2.20.0 bam-0.5.1/src/lua/lfunc.c:101:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable p [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lfunc.c:140:45: style:inconclusive: Function 'luaF_getlocalname' argument 1 names different: declaration 'func' definition 'f'. [funcArgNamesDifferent] bam-0.5.1/src/lua/lfunc.h:57:55: note: Function 'luaF_getlocalname' argument 1 names different: declaration 'func' definition 'f'. bam-0.5.1/src/lua/lfunc.c:140:45: note: Function 'luaF_getlocalname' argument 1 names different: declaration 'func' definition 'f'. 2.20.0 bam-0.5.1/src/lua/lfunc.c:25:47: style:inconclusive: Function 'luaF_newCclosure' argument 2 names different: declaration 'nelems' definition 'n'. [funcArgNamesDifferent] bam-0.5.1/src/lua/lfunc.h:51:57: note: Function 'luaF_newCclosure' argument 2 names different: declaration 'nelems' definition 'n'. bam-0.5.1/src/lua/lfunc.c:25:47: note: Function 'luaF_newCclosure' argument 2 names different: declaration 'nelems' definition 'n'. 2.20.0 bam-0.5.1/src/lua/lfunc.c:27:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable c [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lfunc.c:33:47: style:inconclusive: Function 'luaF_newLclosure' argument 2 names different: declaration 'nelems' definition 'n'. [funcArgNamesDifferent] bam-0.5.1/src/lua/lfunc.h:52:57: note: Function 'luaF_newLclosure' argument 2 names different: declaration 'nelems' definition 'n'. bam-0.5.1/src/lua/lfunc.c:33:47: note: Function 'luaF_newLclosure' argument 2 names different: declaration 'nelems' definition 'n'. 2.20.0 bam-0.5.1/src/lua/lfunc.c:35:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable l [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lgc.c:1102:17: style: Variable 'g' can be declared as pointer to const [constVariablePointer] 2.20.0 bam-0.5.1/src/lua/lgc.c:1112:37: style: Parameter 'g' can be declared as pointer to const [constParameterPointer] 2.20.0 bam-0.5.1/src/lua/lgc.c:127:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tt_ [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lgc.c:142:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ts [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lgc.c:171:46: style:inconclusive: Function 'luaC_barrierback_' argument 2 names different: declaration 'o' definition 't'. [funcArgNamesDifferent] bam-0.5.1/src/lua/lgc.h:141:56: note: Function 'luaC_barrierback_' argument 2 names different: declaration 'o' definition 't'. bam-0.5.1/src/lua/lgc.c:171:46: note: Function 'luaC_barrierback_' argument 2 names different: declaration 'o' definition 't'. 2.20.0 bam-0.5.1/src/lua/lgc.c:175:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gc [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lgc.c:190:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gc [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lgc.c:241:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ts [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lgc.c:292:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gc [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lgc.c:302:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gc [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lgc.c:340:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gc [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lgc.c:362:13: style: Variable 'limit' can be declared as pointer to const [constVariablePointer] 2.20.0 bam-0.5.1/src/lua/lgc.c:372:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tt_ [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lgc.c:398:13: style: Variable 'limit' can be declared as pointer to const [constVariablePointer] 2.20.0 bam-0.5.1/src/lua/lgc.c:402:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tt_ [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lgc.c:434:13: style: Variable 'limit' can be declared as pointer to const [constVariablePointer] 2.20.0 bam-0.5.1/src/lua/lgc.c:437:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tt_ [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lgc.c:454:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gc [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lgc.c:483:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gc [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lgc.c:504:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tt_ [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lgc.c:516:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gc [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lgc.c:566:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable h [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lgc.c:616:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable h [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lgc.c:639:64: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] 2.20.0 bam-0.5.1/src/lua/lgc.c:640:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable h [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lgc.c:642:15: style: Variable 'limit' can be declared as pointer to const [constVariablePointer] 2.20.0 bam-0.5.1/src/lua/lgc.c:657:66: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] 2.20.0 bam-0.5.1/src/lua/lgc.c:658:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable h [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lgc.c:660:15: style: Variable 'limit' can be declared as pointer to const [constVariablePointer] 2.20.0 bam-0.5.1/src/lua/lgc.c:698:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable p [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lgc.c:735:17: style: Variable 'g' can be declared as pointer to const [constVariablePointer] 2.20.0 bam-0.5.1/src/lua/lgc.c:826:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tt_ [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lgc.c:857:17: style: Variable 'g' can be declared as pointer to const [constVariablePointer] 2.20.0 bam-0.5.1/src/lua/lgc.c:988:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gc [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/liolib.c:150:12: style: Variable 'p' can be declared as pointer to const [constVariablePointer] 2.20.0 bam-0.5.1/src/lua/liolib.c:174:12: style: Variable 'p' can be declared as pointer to const [constVariablePointer] 2.20.0 bam-0.5.1/src/lua/liolib.c:217:12: style: Variable 'p' can be declared as pointer to const [constVariablePointer] 2.20.0 bam-0.5.1/src/lua/liolib.c:246:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/liolib.c:288:12: style: Variable 'p' can be declared as pointer to const [constVariablePointer] 2.20.0 bam-0.5.1/src/lua/liolib.c:440:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable decimal_point [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/liolib.c:472:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/liolib.c:763:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/llex.c:117:53: style:inconclusive: Function 'luaX_syntaxerror' argument 2 names different: declaration 's' definition 'msg'. [funcArgNamesDifferent] bam-0.5.1/src/lua/llex.h:81:63: note: Function 'luaX_syntaxerror' argument 2 names different: declaration 's' definition 'msg'. bam-0.5.1/src/lua/llex.c:117:53: note: Function 'luaX_syntaxerror' argument 2 names different: declaration 's' definition 'msg'. 2.20.0 bam-0.5.1/src/lua/llex.c:131:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gc [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/llex.c:276:9: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] 2.20.0 bam-0.5.1/src/lua/llex.c:73:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gc [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lmathlib.c:246:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lmathlib.c:399:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HUGE_VAL [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lmem.c:48:67: style:inconclusive: Function 'luaM_growaux_' argument 4 names different: declaration 'size_elem' definition 'size_elems'. [funcArgNamesDifferent] bam-0.5.1/src/lua/lmem.h:65:39: note: Function 'luaM_growaux_' argument 4 names different: declaration 'size_elem' definition 'size_elems'. bam-0.5.1/src/lua/lmem.c:48:67: note: Function 'luaM_growaux_' argument 4 names different: declaration 'size_elem' definition 'size_elems'. 2.20.0 bam-0.5.1/src/lua/lmem.c:77:56: style:inconclusive: Function 'luaM_realloc_' argument 3 names different: declaration 'oldsize' definition 'osize'. [funcArgNamesDifferent] bam-0.5.1/src/lua/lmem.h:62:66: note: Function 'luaM_realloc_' argument 3 names different: declaration 'oldsize' definition 'osize'. bam-0.5.1/src/lua/lmem.c:77:56: note: Function 'luaM_realloc_' argument 3 names different: declaration 'oldsize' definition 'osize'. 2.20.0 bam-0.5.1/src/lua/lmem.c:77:70: style:inconclusive: Function 'luaM_realloc_' argument 4 names different: declaration 'size' definition 'nsize'. [funcArgNamesDifferent] bam-0.5.1/src/lua/lmem.h:63:66: note: Function 'luaM_realloc_' argument 4 names different: declaration 'size' definition 'nsize'. bam-0.5.1/src/lua/lmem.c:77:70: note: Function 'luaM_realloc_' argument 4 names different: declaration 'size' definition 'nsize'. 2.20.0 bam-0.5.1/src/lua/loadlib.c:337:13: style: Condition 'reg==NULL' is always true [knownConditionTrueFalse] bam-0.5.1/src/lua/loadlib.c:335:11: note: Assuming that condition 'reg==NULL' is not redundant bam-0.5.1/src/lua/loadlib.c:337:13: note: Condition 'reg==NULL' is always true 2.20.0 bam-0.5.1/src/lua/loadlib.c:346:11: style: Condition 'f==NULL' is always true [knownConditionTrueFalse] bam-0.5.1/src/lua/loadlib.c:345:31: note: Calling function 'lsys_sym' returns 0 bam-0.5.1/src/lua/loadlib.c:345:31: note: Assignment 'f=lsys_sym(L,reg,sym)', assigned value is 0 bam-0.5.1/src/lua/loadlib.c:346:11: note: Condition 'f==NULL' is always true 2.20.0 bam-0.5.1/src/lua/lobject.c:283:11: style: Variable 'pdot' can be declared as pointer to const [constVariablePointer] 2.20.0 bam-0.5.1/src/lua/lobject.c:287:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable decimal_point [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lobject.c:381:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable decimal_point [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lobject.c:391:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gc [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lobject.c:463:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value_ [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lobject.c:486:58: style:inconclusive: Function 'luaO_chunkid' argument 3 names different: declaration 'len' definition 'bufflen'. [funcArgNamesDifferent] bam-0.5.1/src/lua/lobject.h:545:68: note: Function 'luaO_chunkid' argument 3 names different: declaration 'len' definition 'bufflen'. bam-0.5.1/src/lua/lobject.c:486:58: note: Function 'luaO_chunkid' argument 3 names different: declaration 'len' definition 'bufflen'. 2.20.0 bam-0.5.1/src/lua/loslib.c:167:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable L_tmpnam [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/loslib.c:169:3: style: Obsolescent function 'tmpnam' called. It is recommended to use 'tmpfile', 'mkstemp' or 'mkdtemp' instead. [prohibitedtmpnamCalled] 2.20.0 bam-0.5.1/src/lua/loslib.c:184:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCKS_PER_SEC [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/loslib.c:213:52: style: Parameter 'stm' can be declared as pointer to const [constParameterPointer] 2.20.0 bam-0.5.1/src/lua/loslib.c:285:13: style: Variable 'tmr' is not assigned a value. [unassignedVariable] 2.20.0 bam-0.5.1/src/lua/loslib.c:287:11: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] 2.20.0 bam-0.5.1/src/lua/loslib.c:291:11: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] 2.20.0 bam-0.5.1/src/lua/lparser.c:1118:75: style: Parameter 'v' can be declared as pointer to const [constParameterPointer] 2.20.0 bam-0.5.1/src/lua/lparser.c:1633:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gc [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lparser.c:170:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gc [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lparser.c:218:51: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] 2.20.0 bam-0.5.1/src/lua/lparser.c:220:14: style: Variable 'up' can be declared as pointer to const [constVariablePointer] 2.20.0 bam-0.5.1/src/lua/lparser.c:239:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gc [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lparser.c:244:47: style: Parameter 'n' can be declared as pointer to const [constParameterPointer] 2.20.0 bam-0.5.1/src/lua/lparser.c:339:56: style: Parameter 'label' can be declared as pointer to const [constParameterPointer] 2.20.0 bam-0.5.1/src/lua/lparser.c:365:13: style: Variable 'bl' can be declared as pointer to const [constVariablePointer] 2.20.0 bam-0.5.1/src/lua/lparser.c:367:14: style: Variable 'gt' can be declared as pointer to const [constVariablePointer] 2.20.0 bam-0.5.1/src/lua/lparser.c:402:14: style: Variable 'gl' can be declared as pointer to const [constVariablePointer] 2.20.0 bam-0.5.1/src/lua/lparser.c:419:52: style: Parameter 'bl' can be declared as pointer to const [constParameterPointer] 2.20.0 bam-0.5.1/src/lua/lparser.c:509:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gc [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lparser.c:585:36: style: Parameter 'ls' can be declared as pointer to const [constParameterPointer] 2.20.0 bam-0.5.1/src/lua/lstate.c:154:15: warning:inconclusive: Found calculation inside sizeof(). [sizeofCalculation] 2.20.0 bam-0.5.1/src/lua/lstate.c:165:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tt_ [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lstate.c:188:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gc [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lstate.c:261:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable l [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lstate.c:81:42: style: Parameter 'L' can be declared as pointer to const [constParameterPointer] 2.20.0 bam-0.5.1/src/lua/lstring.c:107:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable marked [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lstring.c:122:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gc [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lstring.c:139:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ts [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lstring.c:154:42: style: Parameter 'ts' can be declared as pointer to const [constParameterPointer] 2.20.0 bam-0.5.1/src/lua/lstring.c:242:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable u [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lstrlib.c:1030:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_MAX_10_EXP [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lstrlib.c:1123:7: style: union member 'Anonymous1::dummy' is never used. [unusedStructMember] 2.20.0 bam-0.5.1/src/lua/lstrlib.c:1130:8: style: struct member 'cD::c' is never used. [unusedStructMember] 2.20.0 bam-0.5.1/src/lua/lstrlib.c:1131:18: style: union member 'Anonymous2::d' is never used. [unusedStructMember] 2.20.0 bam-0.5.1/src/lua/lstrlib.c:1131:27: style: union member 'Anonymous2::p' is never used. [unusedStructMember] 2.20.0 bam-0.5.1/src/lua/lstrlib.c:1131:42: style: union member 'Anonymous2::i' is never used. [unusedStructMember] 2.20.0 bam-0.5.1/src/lua/lstrlib.c:1131:56: style: union member 'Anonymous2::n' is never used. [unusedStructMember] 2.20.0 bam-0.5.1/src/lua/lstrlib.c:325:37: style: Parameter 'ms' can be declared as pointer to const [constParameterPointer] 2.20.0 bam-0.5.1/src/lua/lstrlib.c:65:29: style: Condition '0u-(unsigned long)pos>len' is always false [knownConditionTrueFalse] 2.20.0 bam-0.5.1/src/lua/lstrlib.c:935:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable decimal_point [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lstrlib.c:951:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_MAX_10_EXP [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/ltable.c:126:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ts [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/ltable.c:173:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tt_ [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/ltable.c:191:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tt_ [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/ltable.c:221:48: style: Parameter 'nums' can be declared as const array [constParameter] 2.20.0 bam-0.5.1/src/lua/ltable.c:275:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tt_ [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/ltable.c:305:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tt_ [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/ltable.c:350:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tt_ [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/ltable.c:406:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable h [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/ltable.c:427:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tt_ [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/ltable.c:504:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tt_ [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/ltable.c:520:52: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] 2.20.0 bam-0.5.1/src/lua/ltable.c:525:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ts [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/ltable.c:541:41: style: Parameter 't' can be declared as pointer to const [constParameterPointer] 2.20.0 bam-0.5.1/src/lua/ltable.c:561:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gc [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/ltable.c:572:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ts [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/ltable.c:599:68: style: Parameter 'value' can be declared as pointer to const [constParameterPointer] 2.20.0 bam-0.5.1/src/lua/ltable.c:617:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tt_ [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/ltable.c:643:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tt_ [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/ltm.c:50:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gc [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/ltm.c:74:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable h [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/ltm.c:92:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable h [valueFlowBailoutIncompleteVar] head bam-0.5.1/src/lua/lua.h:89:9: error: syntax error [syntaxError] 2.20.0 bam-0.5.1/src/lua/lundump.c:124:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tt_ [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lundump.c:271:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gc [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lundump.c:62:3: warning: The address of variable 'x' might be accessed at non-zero index. [objectIndex] bam-0.5.1/src/lua/lundump.c:62:3: note: Address of variable taken here. bam-0.5.1/src/lua/lundump.c:62:3: note: The address of variable 'x' might be accessed at non-zero index. 2.20.0 bam-0.5.1/src/lua/lundump.c:69:3: warning: The address of variable 'x' might be accessed at non-zero index. [objectIndex] bam-0.5.1/src/lua/lundump.c:69:3: note: Address of variable taken here. bam-0.5.1/src/lua/lundump.c:69:3: note: The address of variable 'x' might be accessed at non-zero index. 2.20.0 bam-0.5.1/src/lua/lundump.c:76:3: warning: The address of variable 'x' might be accessed at non-zero index. [objectIndex] bam-0.5.1/src/lua/lundump.c:76:3: note: Address of variable taken here. bam-0.5.1/src/lua/lundump.c:76:3: note: The address of variable 'x' might be accessed at non-zero index. 2.20.0 bam-0.5.1/src/lua/lundump.c:83:3: warning: The address of variable 'x' might be accessed at non-zero index. [objectIndex] bam-0.5.1/src/lua/lundump.c:83:3: note: Address of variable taken here. bam-0.5.1/src/lua/lundump.c:83:3: note: The address of variable 'x' might be accessed at non-zero index. 2.20.0 bam-0.5.1/src/lua/lundump.c:91:5: warning: The address of variable 'size' might be accessed at non-zero index. [objectIndex] bam-0.5.1/src/lua/lundump.c:91:5: note: Address of variable taken here. bam-0.5.1/src/lua/lundump.c:91:5: note: The address of variable 'size' might be accessed at non-zero index. 2.20.0 bam-0.5.1/src/lua/lutf8lib.c:32:29: style: Condition '0u-(unsigned long)pos>len' is always false [knownConditionTrueFalse] 2.20.0 bam-0.5.1/src/lua/lvm.c:1077:16: style: Variable 'L->top' is reassigned a value before the old one has been used. [redundantAssignment] bam-0.5.1/src/lua/lvm.c:1076:9: note: L->top is assigned bam-0.5.1/src/lua/lvm.c:1077:16: note: L->top is overwritten 2.20.0 bam-0.5.1/src/lua/lvm.c:1085:17: style: Variable 'rb' can be declared as pointer to const [constVariablePointer] 2.20.0 bam-0.5.1/src/lua/lvm.c:1086:17: style: Variable 'rc' can be declared as pointer to const [constVariablePointer] 2.20.0 bam-0.5.1/src/lua/lvm.c:1121:17: style: Variable 'rb' can be declared as pointer to const [constVariablePointer] 2.20.0 bam-0.5.1/src/lua/lvm.c:112:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ts [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lvm.c:160:61: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] 2.20.0 bam-0.5.1/src/lua/lvm.c:174:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable h [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lvm.c:203:61: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] 2.20.0 bam-0.5.1/src/lua/lvm.c:209:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable h [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lvm.c:283:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_MANT_DIG [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lvm.c:302:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_MANT_DIG [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lvm.c:369:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ts [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lvm.c:389:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ts [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lvm.c:425:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ts [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lvm.c:463:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ts [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lvm.c:479:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tt_ [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lvm.c:521:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable h [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lvm.c:552:49: style:inconclusive: Function 'luaV_div' argument 2 names different: declaration 'x' definition 'm'. [funcArgNamesDifferent] bam-0.5.1/src/lua/lvm.h:108:59: note: Function 'luaV_div' argument 2 names different: declaration 'x' definition 'm'. bam-0.5.1/src/lua/lvm.c:552:49: note: Function 'luaV_div' argument 2 names different: declaration 'x' definition 'm'. 2.20.0 bam-0.5.1/src/lua/lvm.c:552:64: style:inconclusive: Function 'luaV_div' argument 3 names different: declaration 'y' definition 'n'. [funcArgNamesDifferent] bam-0.5.1/src/lua/lvm.h:108:74: note: Function 'luaV_div' argument 3 names different: declaration 'y' definition 'n'. bam-0.5.1/src/lua/lvm.c:552:64: note: Function 'luaV_div' argument 3 names different: declaration 'y' definition 'n'. 2.20.0 bam-0.5.1/src/lua/lvm.c:572:49: style:inconclusive: Function 'luaV_mod' argument 2 names different: declaration 'x' definition 'm'. [funcArgNamesDifferent] bam-0.5.1/src/lua/lvm.h:109:59: note: Function 'luaV_mod' argument 2 names different: declaration 'x' definition 'm'. bam-0.5.1/src/lua/lvm.c:572:49: note: Function 'luaV_mod' argument 2 names different: declaration 'x' definition 'm'. 2.20.0 bam-0.5.1/src/lua/lvm.c:572:64: style:inconclusive: Function 'luaV_mod' argument 3 names different: declaration 'y' definition 'n'. [funcArgNamesDifferent] bam-0.5.1/src/lua/lvm.h:109:74: note: Function 'luaV_mod' argument 3 names different: declaration 'y' definition 'n'. bam-0.5.1/src/lua/lvm.c:572:64: note: Function 'luaV_mod' argument 3 names different: declaration 'y' definition 'n'. 2.20.0 bam-0.5.1/src/lua/lvm.c:617:15: style: Variable 'v' can be declared as pointer to const [constVariablePointer] 2.20.0 bam-0.5.1/src/lua/lvm.c:639:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gc [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lvm.c:671:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tt_ [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lvm.c:794:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable l [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lvm.c:79:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ts [valueFlowBailoutIncompleteVar] 2.20.0 bam-0.5.1/src/lua/lvm.c:808:17: style: Variable 'rb' can be declared as pointer to const [constVariablePointer] 2.20.0 bam-0.5.1/src/lua/lvm.c:813:17: style: Variable 'rb' can be declared as pointer to const [constVariablePointer] head bam-0.5.1/src/luafuncs.c:507:29: style: Parameter 'L' can be declared as pointer to const [constParameterPointer] 2.20.0 bam-0.5.1/src/tools/txt2c.c:28:12: warning: If resource allocation fails, then there is a possible null pointer dereference: input [nullPointerOutOfResources] bam-0.5.1/src/tools/txt2c.c:23:16: note: Assuming allocation function fails bam-0.5.1/src/tools/txt2c.c:23:16: note: Assignment 'input=fopen(argv[f],"r")', assigned value is 0 bam-0.5.1/src/tools/txt2c.c:28:12: note: Null pointer dereference DONE