2025-05-05 11:42 ftp://ftp.de.debian.org/debian/pool/main/l/lightspeed/lightspeed_1.2a.debian.1.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=opengl --library=gtk --library=zlib --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.8.0-59-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.17.0 head-info: fcc0493 (2025-05-05 13:08:11 +0200) count: 352 350 elapsed-time: 17.0 17.1 head-timing-info: old-timing-info: head results: lightspeed-1.2a.debian.1/intl/bindtextdom.c:226:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable domainname [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/intl/bindtextdom.c:252:12: style: Local variable 'len' shadows outer variable [shadowVariable] lightspeed-1.2a.debian.1/intl/bindtextdom.c:224:14: note: Shadowed declaration lightspeed-1.2a.debian.1/intl/bindtextdom.c:252:12: note: Shadow variable lightspeed-1.2a.debian.1/intl/bindtextdom.c:283:15: style: Local variable 'len' shadows outer variable [shadowVariable] lightspeed-1.2a.debian.1/intl/bindtextdom.c:224:14: note: Shadowed declaration lightspeed-1.2a.debian.1/intl/bindtextdom.c:283:15: note: Shadow variable lightspeed-1.2a.debian.1/intl/eval-plural.h:52:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lor [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/intl/dcigettext.c:545:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERANGE [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/intl/dcigettext.c:544:10: style: Obsolescent function 'getwd' called. It is recommended to use 'getcwd' instead. [prohibitedgetwdCalled] lightspeed-1.2a.debian.1/intl/dcigettext.c:583:39: style: Redundant condition: The condition 'categoryvalue[0] != '\0'' is redundant since 'categoryvalue[0] == ':'' is sufficient. [redundantCondition] lightspeed-1.2a.debian.1/intl/dcigettext.c:427:25: style:inconclusive: Function 'libintl_dcigettext' argument 1 names different: declaration '__domainname' definition 'domainname'. [funcArgNamesDifferent] lightspeed-1.2a.debian.1/intl/gettextP.h:210:46: note: Function 'libintl_dcigettext' argument 1 names different: declaration '__domainname' definition 'domainname'. lightspeed-1.2a.debian.1/intl/dcigettext.c:427:25: note: Function 'libintl_dcigettext' argument 1 names different: declaration '__domainname' definition 'domainname'. lightspeed-1.2a.debian.1/intl/dcigettext.c:427:49: style:inconclusive: Function 'libintl_dcigettext' argument 2 names different: declaration '__msgid1' definition 'msgid1'. [funcArgNamesDifferent] lightspeed-1.2a.debian.1/intl/gettextP.h:211:18: note: Function 'libintl_dcigettext' argument 2 names different: declaration '__msgid1' definition 'msgid1'. lightspeed-1.2a.debian.1/intl/dcigettext.c:427:49: note: Function 'libintl_dcigettext' argument 2 names different: declaration '__msgid1' definition 'msgid1'. lightspeed-1.2a.debian.1/intl/dcigettext.c:427:69: style:inconclusive: Function 'libintl_dcigettext' argument 3 names different: declaration '__msgid2' definition 'msgid2'. [funcArgNamesDifferent] lightspeed-1.2a.debian.1/intl/gettextP.h:211:40: note: Function 'libintl_dcigettext' argument 3 names different: declaration '__msgid2' definition 'msgid2'. lightspeed-1.2a.debian.1/intl/dcigettext.c:427:69: note: Function 'libintl_dcigettext' argument 3 names different: declaration '__msgid2' definition 'msgid2'. lightspeed-1.2a.debian.1/intl/dcigettext.c:428:10: style:inconclusive: Function 'libintl_dcigettext' argument 4 names different: declaration '__plural' definition 'plural'. [funcArgNamesDifferent] lightspeed-1.2a.debian.1/intl/gettextP.h:212:10: note: Function 'libintl_dcigettext' argument 4 names different: declaration '__plural' definition 'plural'. lightspeed-1.2a.debian.1/intl/dcigettext.c:428:10: note: Function 'libintl_dcigettext' argument 4 names different: declaration '__plural' definition 'plural'. lightspeed-1.2a.debian.1/intl/dcigettext.c:428:36: style:inconclusive: Function 'libintl_dcigettext' argument 5 names different: declaration '__n' definition 'n'. [funcArgNamesDifferent] lightspeed-1.2a.debian.1/intl/gettextP.h:212:38: note: Function 'libintl_dcigettext' argument 5 names different: declaration '__n' definition 'n'. lightspeed-1.2a.debian.1/intl/dcigettext.c:428:36: note: Function 'libintl_dcigettext' argument 5 names different: declaration '__n' definition 'n'. lightspeed-1.2a.debian.1/intl/dcigettext.c:428:43: style:inconclusive: Function 'libintl_dcigettext' argument 6 names different: declaration '__category' definition 'category'. [funcArgNamesDifferent] lightspeed-1.2a.debian.1/intl/gettextP.h:213:10: note: Function 'libintl_dcigettext' argument 6 names different: declaration '__category' definition 'category'. lightspeed-1.2a.debian.1/intl/dcigettext.c:428:43: note: Function 'libintl_dcigettext' argument 6 names different: declaration '__category' definition 'category'. lightspeed-1.2a.debian.1/intl/dcigettext.c:533:13: style: Variable 'ret' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/intl/dcigettext.c:224:9: style: struct member 'known_translation_t::domainname' is never used. [unusedStructMember] lightspeed-1.2a.debian.1/intl/dcigettext.c:227:7: style: struct member 'known_translation_t::category' is never used. [unusedStructMember] lightspeed-1.2a.debian.1/intl/dcigettext.c:230:7: style: struct member 'known_translation_t::counter' is never used. [unusedStructMember] lightspeed-1.2a.debian.1/intl/dcigettext.c:233:27: style: struct member 'known_translation_t::domain' is never used. [unusedStructMember] lightspeed-1.2a.debian.1/intl/dcigettext.c:236:15: style: struct member 'known_translation_t::translation' is never used. [unusedStructMember] lightspeed-1.2a.debian.1/intl/dcigettext.c:237:10: style: struct member 'known_translation_t::translation_length' is never used. [unusedStructMember] lightspeed-1.2a.debian.1/intl/dcigettext.c:240:8: style: struct member 'known_translation_t::msgid' is never used. [unusedStructMember] lightspeed-1.2a.debian.1/intl/dgettext.c:52:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_MESSAGES [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/intl/dngettext.c:53:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_MESSAGES [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/intl/finddomain.c:50:30: style:inconclusive: Function '_nl_find_domain' argument 1 names different: declaration '__dirname' definition 'dirname'. [funcArgNamesDifferent] lightspeed-1.2a.debian.1/intl/gettextP.h:160:54: note: Function '_nl_find_domain' argument 1 names different: declaration '__dirname' definition 'dirname'. lightspeed-1.2a.debian.1/intl/finddomain.c:50:30: note: Function '_nl_find_domain' argument 1 names different: declaration '__dirname' definition 'dirname'. lightspeed-1.2a.debian.1/intl/finddomain.c:50:45: style:inconclusive: Function '_nl_find_domain' argument 2 names different: declaration '__locale' definition 'locale'. [funcArgNamesDifferent] lightspeed-1.2a.debian.1/intl/gettextP.h:160:71: note: Function '_nl_find_domain' argument 2 names different: declaration '__locale' definition 'locale'. lightspeed-1.2a.debian.1/intl/finddomain.c:50:45: note: Function '_nl_find_domain' argument 2 names different: declaration '__locale' definition 'locale'. lightspeed-1.2a.debian.1/intl/finddomain.c:51:16: style:inconclusive: Function '_nl_find_domain' argument 3 names different: declaration '__domainname' definition 'domainname'. [funcArgNamesDifferent] lightspeed-1.2a.debian.1/intl/gettextP.h:161:19: note: Function '_nl_find_domain' argument 3 names different: declaration '__domainname' definition 'domainname'. lightspeed-1.2a.debian.1/intl/finddomain.c:51:16: note: Function '_nl_find_domain' argument 3 names different: declaration '__domainname' definition 'domainname'. lightspeed-1.2a.debian.1/intl/finddomain.c:51:44: style:inconclusive: Function '_nl_find_domain' argument 4 names different: declaration '__domainbinding' definition 'domainbinding'. [funcArgNamesDifferent] lightspeed-1.2a.debian.1/intl/gettextP.h:162:23: note: Function '_nl_find_domain' argument 4 names different: declaration '__domainbinding' definition 'domainbinding'. lightspeed-1.2a.debian.1/intl/finddomain.c:51:44: note: Function '_nl_find_domain' argument 4 names different: declaration '__domainbinding' definition 'domainbinding'. lightspeed-1.2a.debian.1/intl/gettext.c:57:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_MESSAGES [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/intl/l10nflist.c:341:12: style: Variable 'dir' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/intl/loadmsgcat.c:940:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/intl/loadmsgcat.c:982:2: error: Resource leak: fd [resourceLeak] lightspeed-1.2a.debian.1/intl/loadmsgcat.c:975:12: style: The comparison 'data == (struct mo_file_header*)-1' is always true because 'data' and '(struct mo_file_header*)-1' represent the same value. [knownConditionTrueFalse] lightspeed-1.2a.debian.1/intl/loadmsgcat.c:919:33: note: 'data' is assigned value '(struct mo_file_header*)-1' here. lightspeed-1.2a.debian.1/intl/loadmsgcat.c:975:12: note: The comparison 'data == (struct mo_file_header*)-1' is always true because 'data' and '(struct mo_file_header*)-1' represent the same value. lightspeed-1.2a.debian.1/intl/loadmsgcat.c:771:47: style:inconclusive: Function '_nl_init_domain_conv' argument 1 names different: declaration '__domain_file' definition 'domain_file'. [funcArgNamesDifferent] lightspeed-1.2a.debian.1/intl/gettextP.h:169:59: note: Function '_nl_init_domain_conv' argument 1 names different: declaration '__domain_file' definition 'domain_file'. lightspeed-1.2a.debian.1/intl/loadmsgcat.c:771:47: note: Function '_nl_init_domain_conv' argument 1 names different: declaration '__domain_file' definition 'domain_file'. lightspeed-1.2a.debian.1/intl/loadmsgcat.c:772:31: style:inconclusive: Function '_nl_init_domain_conv' argument 2 names different: declaration '__domain' definition 'domain'. [funcArgNamesDifferent] lightspeed-1.2a.debian.1/intl/gettextP.h:170:29: note: Function '_nl_init_domain_conv' argument 2 names different: declaration '__domain' definition 'domain'. lightspeed-1.2a.debian.1/intl/loadmsgcat.c:772:31: note: Function '_nl_init_domain_conv' argument 2 names different: declaration '__domain' definition 'domain'. lightspeed-1.2a.debian.1/intl/loadmsgcat.c:773:25: style:inconclusive: Function '_nl_init_domain_conv' argument 3 names different: declaration '__domainbinding' definition 'domainbinding'. [funcArgNamesDifferent] lightspeed-1.2a.debian.1/intl/gettextP.h:171:23: note: Function '_nl_init_domain_conv' argument 3 names different: declaration '__domainbinding' definition 'domainbinding'. lightspeed-1.2a.debian.1/intl/loadmsgcat.c:773:25: note: Function '_nl_init_domain_conv' argument 3 names different: declaration '__domainbinding' definition 'domainbinding'. lightspeed-1.2a.debian.1/intl/loadmsgcat.c:889:45: style:inconclusive: Function '_nl_free_domain_conv' argument 1 names different: declaration '__domain' definition 'domain'. [funcArgNamesDifferent] lightspeed-1.2a.debian.1/intl/gettextP.h:173:50: note: Function '_nl_free_domain_conv' argument 1 names different: declaration '__domain' definition 'domain'. lightspeed-1.2a.debian.1/intl/loadmsgcat.c:889:45: note: Function '_nl_free_domain_conv' argument 1 names different: declaration '__domain' definition 'domain'. lightspeed-1.2a.debian.1/intl/loadmsgcat.c:909:42: style:inconclusive: Function '_nl_load_domain' argument 1 names different: declaration '__domain' definition 'domain_file'. [funcArgNamesDifferent] lightspeed-1.2a.debian.1/intl/gettextP.h:164:47: note: Function '_nl_load_domain' argument 1 names different: declaration '__domain' definition 'domain_file'. lightspeed-1.2a.debian.1/intl/loadmsgcat.c:909:42: note: Function '_nl_load_domain' argument 1 names different: declaration '__domain' definition 'domain_file'. lightspeed-1.2a.debian.1/intl/loadmsgcat.c:910:20: style:inconclusive: Function '_nl_load_domain' argument 2 names different: declaration '__domainbinding' definition 'domainbinding'. [funcArgNamesDifferent] lightspeed-1.2a.debian.1/intl/gettextP.h:165:25: note: Function '_nl_load_domain' argument 2 names different: declaration '__domainbinding' definition 'domainbinding'. lightspeed-1.2a.debian.1/intl/loadmsgcat.c:910:20: note: Function '_nl_load_domain' argument 2 names different: declaration '__domainbinding' definition 'domainbinding'. lightspeed-1.2a.debian.1/intl/localcharset.c:127:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBDIR [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/intl/localcharset.c:306:14: style: Condition 'locale==NULL' is always true [knownConditionTrueFalse] lightspeed-1.2a.debian.1/intl/localcharset.c:297:24: note: Assignment 'locale=NULL', assigned value is 0 lightspeed-1.2a.debian.1/intl/localcharset.c:306:14: note: Condition 'locale==NULL' is always true lightspeed-1.2a.debian.1/intl/localealias.c:163:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOCALE_ALIAS_PATH [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/intl/localealias.c:154:21: style: Variable 'retval' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/intl/localealias.c:254:13: style: Variable 'alias' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/intl/localealias.c:255:13: style: Variable 'value' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/intl/localealias.c:172:41: error: Uninitialized variable: &item.value [uninitvar] lightspeed-1.2a.debian.1/intl/ngettext.c:59:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_MESSAGES [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/intl/os2compat.c:60:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBDIR [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/intl/os2compat.c:61:19: warning: If memory allocation fails, then there is a possible null pointer dereference: _nlos2_libdir [nullPointerOutOfMemory] lightspeed-1.2a.debian.1/intl/os2compat.c:60:43: note: Assuming allocation function fails lightspeed-1.2a.debian.1/intl/os2compat.c:60:27: note: Assignment '_nlos2_libdir=(char*)malloc(sl+strlen(LIBDIR)+1)', assigned value is 0 lightspeed-1.2a.debian.1/intl/os2compat.c:61:19: note: Null pointer dereference lightspeed-1.2a.debian.1/intl/os2compat.c:75:19: warning: If memory allocation fails, then there is a possible null pointer dereference: _nlos2_localealiaspath [nullPointerOutOfMemory] lightspeed-1.2a.debian.1/intl/os2compat.c:74:52: note: Assuming allocation function fails lightspeed-1.2a.debian.1/intl/os2compat.c:74:36: note: Assignment '_nlos2_localealiaspath=(char*)malloc(sl+strlen(LOCALE_ALIAS_PATH)+1)', assigned value is 0 lightspeed-1.2a.debian.1/intl/os2compat.c:75:19: note: Null pointer dereference lightspeed-1.2a.debian.1/intl/os2compat.c:89:19: warning: If memory allocation fails, then there is a possible null pointer dereference: _nlos2_localedir [nullPointerOutOfMemory] lightspeed-1.2a.debian.1/intl/os2compat.c:88:46: note: Assuming allocation function fails lightspeed-1.2a.debian.1/intl/os2compat.c:88:30: note: Assignment '_nlos2_localedir=(char*)malloc(sl+strlen(LOCALEDIR)+1)', assigned value is 0 lightspeed-1.2a.debian.1/intl/os2compat.c:89:19: note: Null pointer dereference lightspeed-1.2a.debian.1/intl/os2compat.c:96:15: warning: If memory allocation fails, then there is a possible null pointer dereference: _nlos2_localedir [nullPointerOutOfMemory] lightspeed-1.2a.debian.1/intl/os2compat.c:88:46: note: Assuming allocation function fails lightspeed-1.2a.debian.1/intl/os2compat.c:88:30: note: Assignment '_nlos2_localedir=(char*)malloc(sl+strlen(LOCALEDIR)+1)', assigned value is 0 lightspeed-1.2a.debian.1/intl/os2compat.c:96:15: note: Null pointer dereference lightspeed-1.2a.debian.1/intl/os2compat.c:62:33: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] lightspeed-1.2a.debian.1/intl/os2compat.c:60:43: note: Assuming allocation function fails lightspeed-1.2a.debian.1/intl/os2compat.c:60:27: note: Assignment '_nlos2_libdir=(char*)malloc(sl+strlen(LIBDIR)+1)', assigned value is 0 lightspeed-1.2a.debian.1/intl/os2compat.c:62:33: note: Null pointer addition lightspeed-1.2a.debian.1/intl/os2compat.c:76:42: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] lightspeed-1.2a.debian.1/intl/os2compat.c:74:52: note: Assuming allocation function fails lightspeed-1.2a.debian.1/intl/os2compat.c:74:36: note: Assignment '_nlos2_localealiaspath=(char*)malloc(sl+strlen(LOCALE_ALIAS_PATH)+1)', assigned value is 0 lightspeed-1.2a.debian.1/intl/os2compat.c:76:42: note: Null pointer addition lightspeed-1.2a.debian.1/intl/os2compat.c:90:36: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] lightspeed-1.2a.debian.1/intl/os2compat.c:88:46: note: Assuming allocation function fails lightspeed-1.2a.debian.1/intl/os2compat.c:88:30: note: Assignment '_nlos2_localedir=(char*)malloc(sl+strlen(LOCALEDIR)+1)', assigned value is 0 lightspeed-1.2a.debian.1/intl/os2compat.c:90:36: note: Null pointer addition lightspeed-1.2a.debian.1/intl/os2compat.c:51:9: style: Variable 'root' can be declared as pointer to const [constVariablePointer] plural.y:160:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable qmop [valueFlowBailoutIncompleteVar] plural.y:276:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable equal [valueFlowBailoutIncompleteVar] /home/haible/gnu/arch/linuxlibc6/share/bison/bison.simple:517:36: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] /home/haible/gnu/arch/linuxlibc6/share/bison/bison.simple:515:9: style: Variable 'yyss1' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/intl/xsize.h:60:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/intl/printf-parse.c:146:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/intl/vasnprintf.c:122:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/intl/printf.c:116:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/intl/vasnprintf.c:748:12: style: Variable 'arg' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/animation.c:257:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/src/animation.c:279:2: warning: If memory allocation fails, then there is a possible null pointer dereference: tvar [nullPointerOutOfMemory] lightspeed-1.2a.debian.1/src/animation.c:278:16: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/animation.c:278:16: note: Assignment 'tvar=xmalloc(sizeof(struct trans_var))', assigned value is 0 lightspeed-1.2a.debian.1/src/animation.c:279:2: note: Null pointer dereference lightspeed-1.2a.debian.1/src/animation.c:280:2: warning: If memory allocation fails, then there is a possible null pointer dereference: tvar [nullPointerOutOfMemory] lightspeed-1.2a.debian.1/src/animation.c:278:16: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/animation.c:278:16: note: Assignment 'tvar=xmalloc(sizeof(struct trans_var))', assigned value is 0 lightspeed-1.2a.debian.1/src/animation.c:280:2: note: Null pointer dereference lightspeed-1.2a.debian.1/src/animation.c:281:2: warning: If memory allocation fails, then there is a possible null pointer dereference: tvar [nullPointerOutOfMemory] lightspeed-1.2a.debian.1/src/animation.c:278:16: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/animation.c:278:16: note: Assignment 'tvar=xmalloc(sizeof(struct trans_var))', assigned value is 0 lightspeed-1.2a.debian.1/src/animation.c:281:2: note: Null pointer dereference lightspeed-1.2a.debian.1/src/animation.c:282:2: warning: If memory allocation fails, then there is a possible null pointer dereference: tvar [nullPointerOutOfMemory] lightspeed-1.2a.debian.1/src/animation.c:278:16: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/animation.c:278:16: note: Assignment 'tvar=xmalloc(sizeof(struct trans_var))', assigned value is 0 lightspeed-1.2a.debian.1/src/animation.c:282:2: note: Null pointer dereference lightspeed-1.2a.debian.1/src/animation.c:283:2: warning: If memory allocation fails, then there is a possible null pointer dereference: tvar [nullPointerOutOfMemory] lightspeed-1.2a.debian.1/src/animation.c:278:16: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/animation.c:278:16: note: Assignment 'tvar=xmalloc(sizeof(struct trans_var))', assigned value is 0 lightspeed-1.2a.debian.1/src/animation.c:283:2: note: Null pointer dereference lightspeed-1.2a.debian.1/src/animation.c:284:2: warning: If memory allocation fails, then there is a possible null pointer dereference: tvar [nullPointerOutOfMemory] lightspeed-1.2a.debian.1/src/animation.c:278:16: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/animation.c:278:16: note: Assignment 'tvar=xmalloc(sizeof(struct trans_var))', assigned value is 0 lightspeed-1.2a.debian.1/src/animation.c:284:2: note: Null pointer dereference lightspeed-1.2a.debian.1/src/animation.c:285:2: warning: If memory allocation fails, then there is a possible null pointer dereference: tvar [nullPointerOutOfMemory] lightspeed-1.2a.debian.1/src/animation.c:278:16: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/animation.c:278:16: note: Assignment 'tvar=xmalloc(sizeof(struct trans_var))', assigned value is 0 lightspeed-1.2a.debian.1/src/animation.c:285:2: note: Null pointer dereference lightspeed-1.2a.debian.1/src/animation.c:290:2: warning: If memory allocation fails, then there is a possible null pointer dereference: tvar [nullPointerOutOfMemory] lightspeed-1.2a.debian.1/src/animation.c:278:16: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/animation.c:278:16: note: Assignment 'tvar=xmalloc(sizeof(struct trans_var))', assigned value is 0 lightspeed-1.2a.debian.1/src/animation.c:290:2: note: Null pointer dereference lightspeed-1.2a.debian.1/src/animation.c:306:2: warning: If memory allocation fails, then there is a possible null pointer dereference: tvar [nullPointerOutOfMemory] lightspeed-1.2a.debian.1/src/animation.c:305:16: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/animation.c:305:16: note: Assignment 'tvar=xmalloc(sizeof(struct trans_var))', assigned value is 0 lightspeed-1.2a.debian.1/src/animation.c:306:2: note: Null pointer dereference lightspeed-1.2a.debian.1/src/animation.c:307:2: warning: If memory allocation fails, then there is a possible null pointer dereference: tvar [nullPointerOutOfMemory] lightspeed-1.2a.debian.1/src/animation.c:305:16: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/animation.c:305:16: note: Assignment 'tvar=xmalloc(sizeof(struct trans_var))', assigned value is 0 lightspeed-1.2a.debian.1/src/animation.c:307:2: note: Null pointer dereference lightspeed-1.2a.debian.1/src/animation.c:308:2: warning: If memory allocation fails, then there is a possible null pointer dereference: tvar [nullPointerOutOfMemory] lightspeed-1.2a.debian.1/src/animation.c:305:16: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/animation.c:305:16: note: Assignment 'tvar=xmalloc(sizeof(struct trans_var))', assigned value is 0 lightspeed-1.2a.debian.1/src/animation.c:308:2: note: Null pointer dereference lightspeed-1.2a.debian.1/src/animation.c:309:2: warning: If memory allocation fails, then there is a possible null pointer dereference: tvar [nullPointerOutOfMemory] lightspeed-1.2a.debian.1/src/animation.c:305:16: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/animation.c:305:16: note: Assignment 'tvar=xmalloc(sizeof(struct trans_var))', assigned value is 0 lightspeed-1.2a.debian.1/src/animation.c:309:2: note: Null pointer dereference lightspeed-1.2a.debian.1/src/animation.c:315:2: warning: If memory allocation fails, then there is a possible null pointer dereference: tvar [nullPointerOutOfMemory] lightspeed-1.2a.debian.1/src/animation.c:305:16: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/animation.c:305:16: note: Assignment 'tvar=xmalloc(sizeof(struct trans_var))', assigned value is 0 lightspeed-1.2a.debian.1/src/animation.c:315:2: note: Null pointer dereference lightspeed-1.2a.debian.1/src/animation.c:316:2: warning: If memory allocation fails, then there is a possible null pointer dereference: tvar [nullPointerOutOfMemory] lightspeed-1.2a.debian.1/src/animation.c:305:16: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/animation.c:305:16: note: Assignment 'tvar=xmalloc(sizeof(struct trans_var))', assigned value is 0 lightspeed-1.2a.debian.1/src/animation.c:316:2: note: Null pointer dereference lightspeed-1.2a.debian.1/src/animation.c:316:16: warning: If memory allocation fails, then there is a possible null pointer dereference: tvar [nullPointerOutOfMemory] lightspeed-1.2a.debian.1/src/animation.c:305:16: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/animation.c:305:16: note: Assignment 'tvar=xmalloc(sizeof(struct trans_var))', assigned value is 0 lightspeed-1.2a.debian.1/src/animation.c:316:16: note: Null pointer dereference lightspeed-1.2a.debian.1/src/animation.c:317:2: warning: If memory allocation fails, then there is a possible null pointer dereference: tvar [nullPointerOutOfMemory] lightspeed-1.2a.debian.1/src/animation.c:305:16: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/animation.c:305:16: note: Assignment 'tvar=xmalloc(sizeof(struct trans_var))', assigned value is 0 lightspeed-1.2a.debian.1/src/animation.c:317:2: note: Null pointer dereference lightspeed-1.2a.debian.1/src/animation.c:318:2: warning: If memory allocation fails, then there is a possible null pointer dereference: tvar [nullPointerOutOfMemory] lightspeed-1.2a.debian.1/src/animation.c:305:16: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/animation.c:305:16: note: Assignment 'tvar=xmalloc(sizeof(struct trans_var))', assigned value is 0 lightspeed-1.2a.debian.1/src/animation.c:318:2: note: Null pointer dereference lightspeed-1.2a.debian.1/src/animation.c:319:2: warning: If memory allocation fails, then there is a possible null pointer dereference: tvar [nullPointerOutOfMemory] lightspeed-1.2a.debian.1/src/animation.c:305:16: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/animation.c:305:16: note: Assignment 'tvar=xmalloc(sizeof(struct trans_var))', assigned value is 0 lightspeed-1.2a.debian.1/src/animation.c:319:2: note: Null pointer dereference lightspeed-1.2a.debian.1/src/auxobjects.c:86:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_LIGHTING [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/src/auxobjects.c:159:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_POINTS [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/src/auxobjects.c:298:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_BLEND [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/src/auxobjects.c:327:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_LINES [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/src/auxobjects.c:398:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_LINES [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/src/auxobjects.c:102:40: style: Parameter 'cam_pos' can be declared as pointer to const [constParameterPointer] lightspeed-1.2a.debian.1/src/auxobjects.c:364:13: style: Variable 'b' can be declared as const array [constVariable] lightspeed-1.2a.debian.1/src/auxobjects.c:365:11: style: Variable 'exts' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/camera.c:249:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SHIFT_MASK [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/src/camera.c:103:21: style: Parameter 'widget' can be declared as pointer to const [constParameterPointer] lightspeed-1.2a.debian.1/src/camera.c:105:10: style: Variable 'cam' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/camera.c:229:18: style: Variable 'ev_button' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/camera.c:230:18: style: Variable 'ev_motion' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/geometry.c:305:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/src/geometry.c:37:2: warning: If memory allocation fails, then there is a possible null pointer dereference: new_obj [nullPointerOutOfMemory] lightspeed-1.2a.debian.1/src/geometry.c:36:19: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/geometry.c:36:19: note: Assignment 'new_obj=xmalloc(sizeof(struct ogl_object))', assigned value is 0 lightspeed-1.2a.debian.1/src/geometry.c:37:2: note: Null pointer dereference lightspeed-1.2a.debian.1/src/geometry.c:38:2: warning: If memory allocation fails, then there is a possible null pointer dereference: new_obj [nullPointerOutOfMemory] lightspeed-1.2a.debian.1/src/geometry.c:36:19: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/geometry.c:36:19: note: Assignment 'new_obj=xmalloc(sizeof(struct ogl_object))', assigned value is 0 lightspeed-1.2a.debian.1/src/geometry.c:38:2: note: Null pointer dereference lightspeed-1.2a.debian.1/src/geometry.c:39:2: warning: If memory allocation fails, then there is a possible null pointer dereference: new_obj [nullPointerOutOfMemory] lightspeed-1.2a.debian.1/src/geometry.c:36:19: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/geometry.c:36:19: note: Assignment 'new_obj=xmalloc(sizeof(struct ogl_object))', assigned value is 0 lightspeed-1.2a.debian.1/src/geometry.c:39:2: note: Null pointer dereference lightspeed-1.2a.debian.1/src/geometry.c:40:2: warning: If memory allocation fails, then there is a possible null pointer dereference: new_obj [nullPointerOutOfMemory] lightspeed-1.2a.debian.1/src/geometry.c:36:19: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/geometry.c:36:19: note: Assignment 'new_obj=xmalloc(sizeof(struct ogl_object))', assigned value is 0 lightspeed-1.2a.debian.1/src/geometry.c:40:2: note: Null pointer dereference lightspeed-1.2a.debian.1/src/geometry.c:43:3: warning: If memory allocation fails, then there is a possible null pointer dereference: new_obj [nullPointerOutOfMemory] lightspeed-1.2a.debian.1/src/geometry.c:36:19: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/geometry.c:36:19: note: Assignment 'new_obj=xmalloc(sizeof(struct ogl_object))', assigned value is 0 lightspeed-1.2a.debian.1/src/geometry.c:43:3: note: Null pointer dereference lightspeed-1.2a.debian.1/src/geometry.c:44:2: warning: If memory allocation fails, then there is a possible null pointer dereference: new_obj [nullPointerOutOfMemory] lightspeed-1.2a.debian.1/src/geometry.c:36:19: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/geometry.c:36:19: note: Assignment 'new_obj=xmalloc(sizeof(struct ogl_object))', assigned value is 0 lightspeed-1.2a.debian.1/src/geometry.c:44:2: note: Null pointer dereference lightspeed-1.2a.debian.1/src/geometry.c:45:2: warning: If memory allocation fails, then there is a possible null pointer dereference: new_obj [nullPointerOutOfMemory] lightspeed-1.2a.debian.1/src/geometry.c:36:19: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/geometry.c:36:19: note: Assignment 'new_obj=xmalloc(sizeof(struct ogl_object))', assigned value is 0 lightspeed-1.2a.debian.1/src/geometry.c:45:2: note: Null pointer dereference lightspeed-1.2a.debian.1/src/geometry.c:46:2: warning: If memory allocation fails, then there is a possible null pointer dereference: new_obj [nullPointerOutOfMemory] lightspeed-1.2a.debian.1/src/geometry.c:36:19: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/geometry.c:36:19: note: Assignment 'new_obj=xmalloc(sizeof(struct ogl_object))', assigned value is 0 lightspeed-1.2a.debian.1/src/geometry.c:46:2: note: Null pointer dereference lightspeed-1.2a.debian.1/src/geometry.c:47:2: warning: If memory allocation fails, then there is a possible null pointer dereference: new_obj [nullPointerOutOfMemory] lightspeed-1.2a.debian.1/src/geometry.c:36:19: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/geometry.c:36:19: note: Assignment 'new_obj=xmalloc(sizeof(struct ogl_object))', assigned value is 0 lightspeed-1.2a.debian.1/src/geometry.c:47:2: note: Null pointer dereference lightspeed-1.2a.debian.1/src/geometry.c:333:11: warning: If resource allocation fails, then there is a possible null pointer dereference: srs [nullPointerOutOfResources] lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assignment 'srs=fopen(filename,"w")', assigned value is 0 lightspeed-1.2a.debian.1/src/geometry.c:333:11: note: Null pointer dereference lightspeed-1.2a.debian.1/src/geometry.c:334:11: warning: If resource allocation fails, then there is a possible null pointer dereference: srs [nullPointerOutOfResources] lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assignment 'srs=fopen(filename,"w")', assigned value is 0 lightspeed-1.2a.debian.1/src/geometry.c:334:11: note: Null pointer dereference lightspeed-1.2a.debian.1/src/geometry.c:335:11: warning: If resource allocation fails, then there is a possible null pointer dereference: srs [nullPointerOutOfResources] lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assignment 'srs=fopen(filename,"w")', assigned value is 0 lightspeed-1.2a.debian.1/src/geometry.c:335:11: note: Null pointer dereference lightspeed-1.2a.debian.1/src/geometry.c:336:11: warning: If resource allocation fails, then there is a possible null pointer dereference: srs [nullPointerOutOfResources] lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assignment 'srs=fopen(filename,"w")', assigned value is 0 lightspeed-1.2a.debian.1/src/geometry.c:336:11: note: Null pointer dereference lightspeed-1.2a.debian.1/src/geometry.c:337:11: warning: If resource allocation fails, then there is a possible null pointer dereference: srs [nullPointerOutOfResources] lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assignment 'srs=fopen(filename,"w")', assigned value is 0 lightspeed-1.2a.debian.1/src/geometry.c:337:11: note: Null pointer dereference lightspeed-1.2a.debian.1/src/geometry.c:338:11: warning: If resource allocation fails, then there is a possible null pointer dereference: srs [nullPointerOutOfResources] lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assignment 'srs=fopen(filename,"w")', assigned value is 0 lightspeed-1.2a.debian.1/src/geometry.c:338:11: note: Null pointer dereference lightspeed-1.2a.debian.1/src/geometry.c:342:11: warning: If resource allocation fails, then there is a possible null pointer dereference: srs [nullPointerOutOfResources] lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assignment 'srs=fopen(filename,"w")', assigned value is 0 lightspeed-1.2a.debian.1/src/geometry.c:342:11: note: Null pointer dereference lightspeed-1.2a.debian.1/src/geometry.c:346:11: warning: If resource allocation fails, then there is a possible null pointer dereference: srs [nullPointerOutOfResources] lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assignment 'srs=fopen(filename,"w")', assigned value is 0 lightspeed-1.2a.debian.1/src/geometry.c:346:11: note: Null pointer dereference lightspeed-1.2a.debian.1/src/geometry.c:347:11: warning: If resource allocation fails, then there is a possible null pointer dereference: srs [nullPointerOutOfResources] lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assignment 'srs=fopen(filename,"w")', assigned value is 0 lightspeed-1.2a.debian.1/src/geometry.c:347:11: note: Null pointer dereference lightspeed-1.2a.debian.1/src/geometry.c:350:11: warning: If resource allocation fails, then there is a possible null pointer dereference: srs [nullPointerOutOfResources] lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assignment 'srs=fopen(filename,"w")', assigned value is 0 lightspeed-1.2a.debian.1/src/geometry.c:350:11: note: Null pointer dereference lightspeed-1.2a.debian.1/src/geometry.c:352:11: warning: If resource allocation fails, then there is a possible null pointer dereference: srs [nullPointerOutOfResources] lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assignment 'srs=fopen(filename,"w")', assigned value is 0 lightspeed-1.2a.debian.1/src/geometry.c:352:11: note: Null pointer dereference lightspeed-1.2a.debian.1/src/geometry.c:355:11: warning: If resource allocation fails, then there is a possible null pointer dereference: srs [nullPointerOutOfResources] lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assignment 'srs=fopen(filename,"w")', assigned value is 0 lightspeed-1.2a.debian.1/src/geometry.c:355:11: note: Null pointer dereference lightspeed-1.2a.debian.1/src/geometry.c:356:11: warning: If resource allocation fails, then there is a possible null pointer dereference: srs [nullPointerOutOfResources] lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assignment 'srs=fopen(filename,"w")', assigned value is 0 lightspeed-1.2a.debian.1/src/geometry.c:356:11: note: Null pointer dereference lightspeed-1.2a.debian.1/src/geometry.c:385:11: warning: If resource allocation fails, then there is a possible null pointer dereference: srs [nullPointerOutOfResources] lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assignment 'srs=fopen(filename,"w")', assigned value is 0 lightspeed-1.2a.debian.1/src/geometry.c:385:11: note: Null pointer dereference lightspeed-1.2a.debian.1/src/geometry.c:387:11: warning: If resource allocation fails, then there is a possible null pointer dereference: srs [nullPointerOutOfResources] lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assignment 'srs=fopen(filename,"w")', assigned value is 0 lightspeed-1.2a.debian.1/src/geometry.c:387:11: note: Null pointer dereference lightspeed-1.2a.debian.1/src/geometry.c:388:11: warning: If resource allocation fails, then there is a possible null pointer dereference: srs [nullPointerOutOfResources] lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assignment 'srs=fopen(filename,"w")', assigned value is 0 lightspeed-1.2a.debian.1/src/geometry.c:388:11: note: Null pointer dereference lightspeed-1.2a.debian.1/src/geometry.c:389:11: warning: If resource allocation fails, then there is a possible null pointer dereference: srs [nullPointerOutOfResources] lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assignment 'srs=fopen(filename,"w")', assigned value is 0 lightspeed-1.2a.debian.1/src/geometry.c:389:11: note: Null pointer dereference lightspeed-1.2a.debian.1/src/geometry.c:390:11: warning: If resource allocation fails, then there is a possible null pointer dereference: srs [nullPointerOutOfResources] lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assignment 'srs=fopen(filename,"w")', assigned value is 0 lightspeed-1.2a.debian.1/src/geometry.c:390:11: note: Null pointer dereference lightspeed-1.2a.debian.1/src/geometry.c:391:11: warning: If resource allocation fails, then there is a possible null pointer dereference: srs [nullPointerOutOfResources] lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assignment 'srs=fopen(filename,"w")', assigned value is 0 lightspeed-1.2a.debian.1/src/geometry.c:391:11: note: Null pointer dereference lightspeed-1.2a.debian.1/src/geometry.c:394:11: warning: If resource allocation fails, then there is a possible null pointer dereference: srs [nullPointerOutOfResources] lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assignment 'srs=fopen(filename,"w")', assigned value is 0 lightspeed-1.2a.debian.1/src/geometry.c:394:11: note: Null pointer dereference lightspeed-1.2a.debian.1/src/geometry.c:395:11: warning: If resource allocation fails, then there is a possible null pointer dereference: srs [nullPointerOutOfResources] lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assignment 'srs=fopen(filename,"w")', assigned value is 0 lightspeed-1.2a.debian.1/src/geometry.c:395:11: note: Null pointer dereference lightspeed-1.2a.debian.1/src/geometry.c:396:11: warning: If resource allocation fails, then there is a possible null pointer dereference: srs [nullPointerOutOfResources] lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assignment 'srs=fopen(filename,"w")', assigned value is 0 lightspeed-1.2a.debian.1/src/geometry.c:396:11: note: Null pointer dereference lightspeed-1.2a.debian.1/src/geometry.c:397:11: warning: If resource allocation fails, then there is a possible null pointer dereference: srs [nullPointerOutOfResources] lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assignment 'srs=fopen(filename,"w")', assigned value is 0 lightspeed-1.2a.debian.1/src/geometry.c:397:11: note: Null pointer dereference lightspeed-1.2a.debian.1/src/geometry.c:398:11: warning: If resource allocation fails, then there is a possible null pointer dereference: srs [nullPointerOutOfResources] lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assignment 'srs=fopen(filename,"w")', assigned value is 0 lightspeed-1.2a.debian.1/src/geometry.c:398:11: note: Null pointer dereference lightspeed-1.2a.debian.1/src/geometry.c:401:11: warning: If resource allocation fails, then there is a possible null pointer dereference: srs [nullPointerOutOfResources] lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assignment 'srs=fopen(filename,"w")', assigned value is 0 lightspeed-1.2a.debian.1/src/geometry.c:401:11: note: Null pointer dereference lightspeed-1.2a.debian.1/src/geometry.c:406:11: warning: If resource allocation fails, then there is a possible null pointer dereference: srs [nullPointerOutOfResources] lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assignment 'srs=fopen(filename,"w")', assigned value is 0 lightspeed-1.2a.debian.1/src/geometry.c:406:11: note: Null pointer dereference lightspeed-1.2a.debian.1/src/geometry.c:408:11: warning: If resource allocation fails, then there is a possible null pointer dereference: srs [nullPointerOutOfResources] lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assignment 'srs=fopen(filename,"w")', assigned value is 0 lightspeed-1.2a.debian.1/src/geometry.c:408:11: note: Null pointer dereference lightspeed-1.2a.debian.1/src/geometry.c:409:10: warning: If resource allocation fails, then there is a possible null pointer dereference: srs [nullPointerOutOfResources] lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/geometry.c:325:13: note: Assignment 'srs=fopen(filename,"w")', assigned value is 0 lightspeed-1.2a.debian.1/src/geometry.c:409:10: note: Null pointer dereference lightspeed-1.2a.debian.1/src/geometry.c:203:25: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] lightspeed-1.2a.debian.1/src/geometry.c:203:35: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] lightspeed-1.2a.debian.1/src/geometry.c:203:45: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] lightspeed-1.2a.debian.1/src/geometry.c:236:27: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] lightspeed-1.2a.debian.1/src/geometry.c:236:37: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] lightspeed-1.2a.debian.1/src/geometry.c:236:47: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] lightspeed-1.2a.debian.1/src/geometry.c:250:23: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] lightspeed-1.2a.debian.1/src/geometry.c:250:33: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] lightspeed-1.2a.debian.1/src/geometry.c:250:43: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] lightspeed-1.2a.debian.1/src/geometry.c:319:13: style: Variable 'bg' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/geometry.c:421:9: style: Variable 'vert_a' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/geometry.c:421:18: style: Variable 'vert_b' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/geometry.c:423:16: style: Variable 'cent' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/geometry.c:586:37: style: Parameter 'center' can be declared as pointer to const [constParameterPointer] lightspeed-1.2a.debian.1/src/geometry.c:596:39: style: Parameter 'p1' can be declared as pointer to const [constParameterPointer] lightspeed-1.2a.debian.1/src/geometry.c:596:50: style: Parameter 'p2' can be declared as pointer to const [constParameterPointer] lightspeed-1.2a.debian.1/src/geometry.c:628:42: style: Parameter 'color' can be declared as pointer to const [constParameterPointer] lightspeed-1.2a.debian.1/src/geometry.c:645:41: style: Parameter 'p_ls' can be declared as pointer to const [constParameterPointer] lightspeed-1.2a.debian.1/src/gtkwidgets.c:39:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_EXPOSURE_MASK [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/src/gtkwidgets.c:69:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/src/gtkwidgets.c:95:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WIN_POS_MOUSE [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/src/gtkwidgets.c:128:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WIN_POS_MOUSE [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/src/gtkwidgets.c:382:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_CONTROL_MASK [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/src/gtkwidgets.c:599:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable text_length [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/src/gtkwidgets.c:721:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_STATE_NORMAL [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/src/gtkwidgets.c:742:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_STATE_NORMAL [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/src/gtkwidgets.c:44:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] lightspeed-1.2a.debian.1/src/gtkwidgets.c:46:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] lightspeed-1.2a.debian.1/src/gtkwidgets.c:48:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] lightspeed-1.2a.debian.1/src/gtkwidgets.c:50:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] lightspeed-1.2a.debian.1/src/gtkwidgets.c:52:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] lightspeed-1.2a.debian.1/src/gtkwidgets.c:54:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] lightspeed-1.2a.debian.1/src/gtkwidgets.c:75:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] lightspeed-1.2a.debian.1/src/gtkwidgets.c:96:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] lightspeed-1.2a.debian.1/src/gtkwidgets.c:129:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] lightspeed-1.2a.debian.1/src/gtkwidgets.c:143:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] lightspeed-1.2a.debian.1/src/gtkwidgets.c:157:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] lightspeed-1.2a.debian.1/src/gtkwidgets.c:180:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] lightspeed-1.2a.debian.1/src/gtkwidgets.c:182:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] lightspeed-1.2a.debian.1/src/gtkwidgets.c:184:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] lightspeed-1.2a.debian.1/src/gtkwidgets.c:221:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] lightspeed-1.2a.debian.1/src/gtkwidgets.c:240:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] lightspeed-1.2a.debian.1/src/gtkwidgets.c:273:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] lightspeed-1.2a.debian.1/src/gtkwidgets.c:299:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] lightspeed-1.2a.debian.1/src/gtkwidgets.c:412:11: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] lightspeed-1.2a.debian.1/src/gtkwidgets.c:430:11: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] lightspeed-1.2a.debian.1/src/gtkwidgets.c:529:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] lightspeed-1.2a.debian.1/src/gtkwidgets.c:551:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] lightspeed-1.2a.debian.1/src/gtkwidgets.c:615:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] lightspeed-1.2a.debian.1/src/gtkwidgets.c:655:11: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] lightspeed-1.2a.debian.1/src/gtkwidgets.c:357:35: style: Parameter 'keys' can be declared as pointer to const [constParameterPointer] lightspeed-1.2a.debian.1/src/gtkwidgets.c:563:12: style: Variable 'style' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/gtkwidgets.c:570:24: style: Variable 'font_desc' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/gtkwidgets.c:570:33: style: Variable 'font_desc' is assigned a value that is never used. [unreadVariable] lightspeed-1.2a.debian.1/src/gtkwidgets.c:570:24: style: Variable 'font_desc' is assigned a value that is never used. [unreadVariable] lightspeed-1.2a.debian.1/src/gtkwidgets.c:652:13: style: Unused variable: vscrollbar_w [unusedVariable] lightspeed-1.2a.debian.1/src/importobjs.c:204:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_TRIANGLES [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/src/importobjs.c:553:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable edgei_list [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/src/importobjs.c:172:14: warning: If memory allocation fails, then there is a possible null pointer dereference: scene [nullPointerOutOfMemory] lightspeed-1.2a.debian.1/src/importobjs.c:438:17: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/importobjs.c:438:17: note: Assignment 'scene=xmalloc(sizeof(struct r3ds_scene))', assigned value is 0 lightspeed-1.2a.debian.1/src/importobjs.c:441:14: note: Calling function 'import_3ds', 1st argument 'scene' value is 0 lightspeed-1.2a.debian.1/src/importobjs.c:172:14: note: Null pointer dereference lightspeed-1.2a.debian.1/src/importobjs.c:173:18: warning: If memory allocation fails, then there is a possible null pointer dereference: scene [nullPointerOutOfMemory] lightspeed-1.2a.debian.1/src/importobjs.c:438:17: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/importobjs.c:438:17: note: Assignment 'scene=xmalloc(sizeof(struct r3ds_scene))', assigned value is 0 lightspeed-1.2a.debian.1/src/importobjs.c:441:14: note: Calling function 'import_3ds', 1st argument 'scene' value is 0 lightspeed-1.2a.debian.1/src/importobjs.c:173:18: note: Null pointer dereference lightspeed-1.2a.debian.1/src/importobjs.c:177:17: warning: If memory allocation fails, then there is a possible null pointer dereference: scene [nullPointerOutOfMemory] lightspeed-1.2a.debian.1/src/importobjs.c:438:17: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/importobjs.c:438:17: note: Assignment 'scene=xmalloc(sizeof(struct r3ds_scene))', assigned value is 0 lightspeed-1.2a.debian.1/src/importobjs.c:441:14: note: Calling function 'import_3ds', 1st argument 'scene' value is 0 lightspeed-1.2a.debian.1/src/importobjs.c:177:17: note: Null pointer dereference lightspeed-1.2a.debian.1/src/importobjs.c:59:8: style: Variable 'file_ext' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/importobjs.c:144:9: style: Variable 'tri_cent' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/importobjs.c:146:16: style: Variable 'mat_color24' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/importobjs.c:334:17: style: Variable 'tri' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/importobjs.c:457:9: style: Variable 'normal' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/importobjs.c:556:9: style: Variable 'vert_a' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/importobjs.c:556:18: style: Variable 'vert_b' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/importobjs.c:799:9: style: Variable 'vert_a' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/importobjs.c:799:18: style: Variable 'vert_b' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/importobjs.c:800:9: style: Variable 'norm_a' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/importobjs.c:800:18: style: Variable 'norm_b' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/importobjs.c:899:67: style: Parameter 'indices' can be declared as pointer to const [constParameterPointer] lightspeed-1.2a.debian.1/src/infodisp.c:88:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_DEPTH_TEST [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/src/lattice.c:81:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_QUAD_STRIP [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/src/lattice.c:233:2: warning: If memory allocation fails, then there is a possible null pointer dereference: vehicle_objs [nullPointerOutOfMemory] lightspeed-1.2a.debian.1/src/lattice.c:232:24: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/lattice.c:232:24: note: Assignment 'vehicle_objs=xmalloc(2*sizeof(struct ogl_object*))', assigned value is 0 lightspeed-1.2a.debian.1/src/lattice.c:233:2: note: Null pointer dereference lightspeed-1.2a.debian.1/src/lattice.c:234:2: warning: If memory allocation fails, then there is a possible null pointer dereference: vehicle_objs [nullPointerOutOfMemory] lightspeed-1.2a.debian.1/src/lattice.c:232:24: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/lattice.c:232:24: note: Assignment 'vehicle_objs=xmalloc(2*sizeof(struct ogl_object*))', assigned value is 0 lightspeed-1.2a.debian.1/src/lattice.c:234:2: note: Null pointer dereference lightspeed-1.2a.debian.1/src/lattice.c:449:62: style:inconclusive: Function 'add_point' argument 5 names different: declaration 'normal_x' definition 'norm_x'. [funcArgNamesDifferent] lightspeed-1.2a.debian.1/src/lattice.c:32:73: note: Function 'add_point' argument 5 names different: declaration 'normal_x' definition 'norm_x'. lightspeed-1.2a.debian.1/src/lattice.c:449:62: note: Function 'add_point' argument 5 names different: declaration 'normal_x' definition 'norm_x'. lightspeed-1.2a.debian.1/src/lattice.c:449:76: style:inconclusive: Function 'add_point' argument 6 names different: declaration 'normal_y' definition 'norm_y'. [funcArgNamesDifferent] lightspeed-1.2a.debian.1/src/lattice.c:32:89: note: Function 'add_point' argument 6 names different: declaration 'normal_y' definition 'norm_y'. lightspeed-1.2a.debian.1/src/lattice.c:449:76: note: Function 'add_point' argument 6 names different: declaration 'normal_y' definition 'norm_y'. lightspeed-1.2a.debian.1/src/lattice.c:449:90: style:inconclusive: Function 'add_point' argument 7 names different: declaration 'normal_z' definition 'norm_z'. [funcArgNamesDifferent] lightspeed-1.2a.debian.1/src/lattice.c:32:105: note: Function 'add_point' argument 7 names different: declaration 'normal_z' definition 'norm_z'. lightspeed-1.2a.debian.1/src/lattice.c:449:90: note: Function 'add_point' argument 7 names different: declaration 'normal_z' definition 'norm_z'. lightspeed-1.2a.debian.1/src/lightspeed.c:52:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/src/lightspeed.c:135:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optind [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/src/lightspeed.c:49:13: style: Variable 'lopt' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/lightspeed.c:49:20: style: Variable 'desc' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/lightspeed.c:86:8: style: Variable 'init_obj_file' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/mainwindow.c:44:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/src/mainwindow.c:48:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] lightspeed-1.2a.debian.1/src/mainwindow.c:56:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] lightspeed-1.2a.debian.1/src/mainwindow.c:139:11: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] lightspeed-1.2a.debian.1/src/mainwindow.c:191:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] lightspeed-1.2a.debian.1/src/menu_cbs.c:152:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/src/menu_cbs.c:222:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/src/menu_cbs.c:587:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable active [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/src/menu_cbs.c:727:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/src/menu_cbs.c:919:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WIN_POS_MOUSE [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/src/menu_cbs.c:1161:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WIN_POS_MOUSE [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/src/menu_cbs.c:1344:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/src/menu_cbs.c:1431:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WIN_POS_CENTER [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/src/menu_cbs.c:1482:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WIN_POS_CENTER [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/src/menu_cbs.c:1534:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WIN_POS_CENTER [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/src/menu_cbs.c:119:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] lightspeed-1.2a.debian.1/src/menu_cbs.c:176:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] lightspeed-1.2a.debian.1/src/menu_cbs.c:638:11: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] lightspeed-1.2a.debian.1/src/menu_cbs.c:646:11: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] lightspeed-1.2a.debian.1/src/menu_cbs.c:797:12: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] lightspeed-1.2a.debian.1/src/menu_cbs.c:1178:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] lightspeed-1.2a.debian.1/src/menu_cbs.c:1185:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] lightspeed-1.2a.debian.1/src/menu_cbs.c:1192:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] lightspeed-1.2a.debian.1/src/menu_cbs.c:1207:12: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] lightspeed-1.2a.debian.1/src/menu_cbs.c:1212:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] lightspeed-1.2a.debian.1/src/menu_cbs.c:1216:12: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] lightspeed-1.2a.debian.1/src/menu_cbs.c:1221:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] lightspeed-1.2a.debian.1/src/menu_cbs.c:1225:18: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] lightspeed-1.2a.debian.1/src/menu_cbs.c:1230:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] lightspeed-1.2a.debian.1/src/menu_cbs.c:1348:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] lightspeed-1.2a.debian.1/src/menu_cbs.c:1350:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] lightspeed-1.2a.debian.1/src/menu_cbs.c:1356:16: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] lightspeed-1.2a.debian.1/src/menu_cbs.c:43:8: style: Variable 'init_str' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/menu_cbs.c:45:8: style: Variable 'fixed_str' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/menu_cbs.c:333:8: style: Variable 'filename' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/menu_cbs.c:552:8: style: Variable 'filename' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/menu_cbs.c:553:8: style: Variable 'input_str' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/menu_cbs.c:695:8: style: Variable 'x_span_str' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/menu_cbs.c:696:8: style: Variable 'input_str' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/menu_cbs.c:858:8: style: Variable 'input_str' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/menu_cbs.c:996:8: style: Variable 'xyz_span_str' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/menu_cbs.c:997:8: style: Variable 'phi_theta_span_str' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/menu_cbs.c:999:8: style: Variable 'input_str' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/menu_cbs.c:1254:35: style: Parameter 'widget' can be declared as pointer to const [constParameterPointer] lightspeed-1.2a.debian.1/src/menu_cbs.c:1400:47: style: Parameter 'message' can be declared as pointer to const. However it seems that 'dialog_Help_Overview' is a callback function, if 'message' is declared with const you might also need to cast function pointer(s). [constParameterCallback] lightspeed-1.2a.debian.1/src/menu_cbs.c:1442:49: note: You might need to cast the function pointer here lightspeed-1.2a.debian.1/src/menu_cbs.c:1400:47: note: Parameter 'message' can be declared as pointer to const lightspeed-1.2a.debian.1/src/menu_cbs.c:1451:47: style: Parameter 'message' can be declared as pointer to const. However it seems that 'dialog_Help_Controls' is a callback function, if 'message' is declared with const you might also need to cast function pointer(s). [constParameterCallback] lightspeed-1.2a.debian.1/src/menu_cbs.c:1493:49: note: You might need to cast the function pointer here lightspeed-1.2a.debian.1/src/menu_cbs.c:1451:47: note: Parameter 'message' can be declared as pointer to const lightspeed-1.2a.debian.1/src/menu_cbs.c:1502:44: style: Parameter 'message' can be declared as pointer to const. However it seems that 'dialog_Help_About' is a callback function, if 'message' is declared with const you might also need to cast function pointer(s). [constParameterCallback] lightspeed-1.2a.debian.1/src/menu_cbs.c:1560:54: note: You might need to cast the function pointer here lightspeed-1.2a.debian.1/src/menu_cbs.c:1502:44: note: Parameter 'message' can be declared as pointer to const lightspeed-1.2a.debian.1/src/menu_cbs.c:93:13: style: Variable 'fixed_str' is assigned a value that is never used. [unreadVariable] lightspeed-1.2a.debian.1/src/misc.c:191:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable window [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/src/misc.c:345:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/src/misc.c:376:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_COLOR_BUFFER_BIT [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/src/misc.c:343:14: style: Parameter 'error_mesg' can be declared as pointer to const [constParameterPointer] lightspeed-1.2a.debian.1/src/ogl-ftgl.cc:96:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/src/ogl-ftgl.cc:109:12: style: C-style pointer casting [cstyleCast] lightspeed-1.2a.debian.1/src/ogl-ftgl.cc:112:18: style: C-style pointer casting [cstyleCast] lightspeed-1.2a.debian.1/src/ogl-ftgl.cc:81:18: style: Variable 'cam' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/ogl-gtk1.c:65:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/src/ogl-gtk1.c:45:10: style: Variable 'cam' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/ogl-gtk1.c:53:8: style: Variable 'next_disp_str' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/ogl-gtk1.c:59:3: warning: Size of pointer 'font_dlist_bases' used instead of size of its data. [pointerSize] lightspeed-1.2a.debian.1/src/ogl-gtk1.c:60:3: warning: Size of pointer 'font_heights' used instead of size of its data. [pointerSize] lightspeed-1.2a.debian.1/src/ogl-gtk2-ft.c:34:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable size [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/src/ogl-gtk2-ft.c:145:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PANGO_SCALE [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/src/ogl-gtk2-ft.c:154:3: style:inconclusive: Statements following 'return' will never be executed. [unreachableCode] lightspeed-1.2a.debian.1/src/ogl-gtk2-ft.c:31:17: style: Variable 'row_end' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/ogl-gtk2-ft.c:196:18: style: Variable 'cam' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/ogl-gtk2-ft.c:204:11: style: Variable 'text' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/ogl-gtk2.c:81:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PANGO_SCALE [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/src/ogl-gtk2.c:59:10: style: Variable 'cam' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/ogl-gtk2.c:67:8: style: Variable 'next_disp_str' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/ogl-gtk2.c:73:3: warning: Size of pointer 'font_dlist_bases' used instead of size of its data. [pointerSize] lightspeed-1.2a.debian.1/src/ogl-gtk2.c:74:3: warning: Size of pointer 'font_heights' used instead of size of its data. [pointerSize] lightspeed-1.2a.debian.1/src/ogl.c:47:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_LIGHTING [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/src/ogl.c:198:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_COLOR_BUFFER_BIT [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/src/ogl.c:327:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_COLOR_BUFFER_BIT [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/src/ogl.c:388:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_GL_RGBA_TYPE [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/src/ogl.c:361:13: style: Variable 'primary_ogl_w' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/ogl.c:158:4: style: Variable 'i' is assigned a value that is never used. [unreadVariable] lightspeed-1.2a.debian.1/src/ogl.c:159:4: style: Variable 'v' is assigned a value that is never used. [unreadVariable] lightspeed-1.2a.debian.1/src/ogl.c:373:16: style: Variable 'primary_ogl_w' is assigned a value that is never used. [unreadVariable] lightspeed-1.2a.debian.1/src/read3ds.c:632:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/src/read3ds.c:1452:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/src/read3ds.c:217:3: warning: If memory allocation fails, then there is a possible null pointer dereference: obj [nullPointerOutOfMemory] lightspeed-1.2a.debian.1/src/read3ds.c:216:16: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/read3ds.c:216:16: note: Assignment 'obj=xmalloc(sizeof(struct r3ds_object))', assigned value is 0 lightspeed-1.2a.debian.1/src/read3ds.c:217:3: note: Null pointer dereference lightspeed-1.2a.debian.1/src/read3ds.c:817:3: warning: If memory allocation fails, then there is a possible null pointer dereference: tri_counts [nullPointerOutOfMemory] lightspeed-1.2a.debian.1/src/read3ds.c:811:22: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/read3ds.c:811:22: note: Assignment 'tri_counts=xmalloc(num_groups*sizeof(int))', assigned value is 0 lightspeed-1.2a.debian.1/src/read3ds.c:817:3: note: Null pointer dereference lightspeed-1.2a.debian.1/src/read3ds.c:828:5: warning: If memory allocation fails, then there is a possible null pointer dereference: tri_counts [nullPointerOutOfMemory] lightspeed-1.2a.debian.1/src/read3ds.c:811:22: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/read3ds.c:811:22: note: Assignment 'tri_counts=xmalloc(num_groups*sizeof(int))', assigned value is 0 lightspeed-1.2a.debian.1/src/read3ds.c:828:5: note: Null pointer dereference lightspeed-1.2a.debian.1/src/read3ds.c:833:7: warning: If memory allocation fails, then there is a possible null pointer dereference: tri_counts [nullPointerOutOfMemory] lightspeed-1.2a.debian.1/src/read3ds.c:811:22: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/read3ds.c:811:22: note: Assignment 'tri_counts=xmalloc(num_groups*sizeof(int))', assigned value is 0 lightspeed-1.2a.debian.1/src/read3ds.c:833:7: note: Null pointer dereference lightspeed-1.2a.debian.1/src/read3ds.c:852:3: warning: If memory allocation fails, then there is a possible null pointer dereference: tmesh [nullPointerOutOfMemory] lightspeed-1.2a.debian.1/src/read3ds.c:842:18: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/read3ds.c:842:18: note: Assignment 'tmesh=xmalloc(sizeof(struct r3ds_trimesh))', assigned value is 0 lightspeed-1.2a.debian.1/src/read3ds.c:852:3: note: Null pointer dereference lightspeed-1.2a.debian.1/src/read3ds.c:853:11: warning: If memory allocation fails, then there is a possible null pointer dereference: tmesh [nullPointerOutOfMemory] lightspeed-1.2a.debian.1/src/read3ds.c:842:18: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/read3ds.c:842:18: note: Assignment 'tmesh=xmalloc(sizeof(struct r3ds_trimesh))', assigned value is 0 lightspeed-1.2a.debian.1/src/read3ds.c:853:11: note: Null pointer dereference lightspeed-1.2a.debian.1/src/read3ds.c:854:11: warning: If memory allocation fails, then there is a possible null pointer dereference: tmesh [nullPointerOutOfMemory] lightspeed-1.2a.debian.1/src/read3ds.c:842:18: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/read3ds.c:842:18: note: Assignment 'tmesh=xmalloc(sizeof(struct r3ds_trimesh))', assigned value is 0 lightspeed-1.2a.debian.1/src/read3ds.c:854:11: note: Null pointer dereference lightspeed-1.2a.debian.1/src/read3ds.c:855:3: warning: If memory allocation fails, then there is a possible null pointer dereference: tmesh [nullPointerOutOfMemory] lightspeed-1.2a.debian.1/src/read3ds.c:842:18: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/read3ds.c:842:18: note: Assignment 'tmesh=xmalloc(sizeof(struct r3ds_trimesh))', assigned value is 0 lightspeed-1.2a.debian.1/src/read3ds.c:855:3: note: Null pointer dereference lightspeed-1.2a.debian.1/src/read3ds.c:856:3: warning: If memory allocation fails, then there is a possible null pointer dereference: tmesh [nullPointerOutOfMemory] lightspeed-1.2a.debian.1/src/read3ds.c:842:18: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/read3ds.c:842:18: note: Assignment 'tmesh=xmalloc(sizeof(struct r3ds_trimesh))', assigned value is 0 lightspeed-1.2a.debian.1/src/read3ds.c:856:3: note: Null pointer dereference lightspeed-1.2a.debian.1/src/read3ds.c:857:3: warning: If memory allocation fails, then there is a possible null pointer dereference: tmesh [nullPointerOutOfMemory] lightspeed-1.2a.debian.1/src/read3ds.c:842:18: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/read3ds.c:842:18: note: Assignment 'tmesh=xmalloc(sizeof(struct r3ds_trimesh))', assigned value is 0 lightspeed-1.2a.debian.1/src/read3ds.c:857:3: note: Null pointer dereference lightspeed-1.2a.debian.1/src/read3ds.c:992:3: warning: If memory allocation fails, then there is a possible null pointer dereference: tmeshes [nullPointerOutOfMemory] lightspeed-1.2a.debian.1/src/read3ds.c:991:20: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/read3ds.c:991:20: note: Assignment 'tmeshes=xmalloc(sizeof(struct r3ds_trimesh*))', assigned value is 0 lightspeed-1.2a.debian.1/src/read3ds.c:992:3: note: Null pointer dereference lightspeed-1.2a.debian.1/src/read3ds.c:78:15: portability: Casting between unsigned int * and float * which have an incompatible binary data representation. [invalidPointerCast] lightspeed-1.2a.debian.1/src/read3ds.c:182:10: style: Variable 'dwordp' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/read3ds.c:183:9: style: Variable 'floatp' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/read3ds.c:186:8: style: Variable 'name' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/read3ds.c:547:30: style: Parameter 'light' can be declared as pointer to const [constParameterPointer] lightspeed-1.2a.debian.1/src/read3ds.c:555:32: style: Parameter 'cam' can be declared as pointer to const [constParameterPointer] lightspeed-1.2a.debian.1/src/read3ds.c:568:14: style: Variable 'vert' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/read3ds.c:569:17: style: Variable 'tri' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/read3ds.c:753:40: style: Parameter 'tri' can be declared as pointer to const [constParameterPointer] lightspeed-1.2a.debian.1/src/read3ds.c:1341:31: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] lightspeed-1.2a.debian.1/src/read3ds.c:1486:8: style: Variable 'name' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/read3ds.c:1564:8: style: Variable 'mat_name' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/read3ds.c:1687:8: style: Variable 'matname' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/read3ds.c:608:7: error: Shifting 32-bit value by 4294967295 bits is undefined behaviour [shiftTooManyBits] lightspeed-1.2a.debian.1/src/read3ds.c:608:7: error: Signed integer overflow for expression '0-1'. [integerOverflow] lightspeed-1.2a.debian.1/src/read3ds.c:608:7: warning: Expression '0-1' can have a negative value. That is converted to an unsigned value and used in an unsigned calculation. [signConversion] lightspeed-1.2a.debian.1/src/read3ds.c:2053:6: style: Variable 'ind' is assigned a value that is never used. [unreadVariable] lightspeed-1.2a.debian.1/src/readlwo.c:49:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/src/readlwo.c:293:9: warning: If memory allocation fails, then there is a possible null pointer dereference: lw_object [nullPointerOutOfMemory] lightspeed-1.2a.debian.1/src/readlwo.c:292:21: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/readlwo.c:292:21: note: Assignment 'lw_object=xmalloc(n)', assigned value is 0 lightspeed-1.2a.debian.1/src/readlwo.c:293:9: note: Null pointer dereference lightspeed-1.2a.debian.1/src/readlwo.c:78:10: portability: Casting between signed int * and float * which have an incompatible binary data representation. [invalidPointerCast] lightspeed-1.2a.debian.1/src/snapshot.c:85:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable window [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/src/snapshot.c:175:6: style: Condition 'err' is always true [knownConditionTrueFalse] lightspeed-1.2a.debian.1/src/snapshot.c:170:8: note: Assignment 'err=0', assigned value is 0 lightspeed-1.2a.debian.1/src/snapshot.c:171:12: note: Assignment 'err=err||write_image(format,IMAGE_WIDTH,&width)', assigned value is 1 lightspeed-1.2a.debian.1/src/snapshot.c:172:12: note: Assignment 'err=err||write_image(format,IMAGE_HEIGHT,&height)', assigned value is 1 lightspeed-1.2a.debian.1/src/snapshot.c:173:12: note: Assignment 'err=err||write_image(format,IMAGE_COMMENTS,comments)', assigned value is 1 lightspeed-1.2a.debian.1/src/snapshot.c:174:12: note: Assignment 'err=err||write_image(format,IMAGE_FILENAME,filename)', assigned value is 1 lightspeed-1.2a.debian.1/src/snapshot.c:175:6: note: Condition 'err' is always true lightspeed-1.2a.debian.1/src/snapshot.c:200:7: style: Condition 'err' is always true [knownConditionTrueFalse] lightspeed-1.2a.debian.1/src/snapshot.c:199:20: note: Calling function 'write_image' returns -1 lightspeed-1.2a.debian.1/src/snapshot.c:199:20: note: Assignment 'err=write_image(format,IMAGE_PIXELROW,scanline)', assigned value is -1 lightspeed-1.2a.debian.1/src/snapshot.c:200:7: note: Condition 'err' is always true lightspeed-1.2a.debian.1/src/snapshot.c:85:2: warning: Either the condition 'usr_cams[0]' is redundant or there is possible null pointer dereference: usr_cams[0]. [nullPointerRedundantCheck] lightspeed-1.2a.debian.1/src/snapshot.c:85:2: note: Assuming that condition 'usr_cams[0]' is not redundant lightspeed-1.2a.debian.1/src/snapshot.c:85:2: note: Null pointer dereference lightspeed-1.2a.debian.1/src/snapshot.c:85:2: warning: Either the condition 'usr_cams[0]->ogl_w' is redundant or there is possible null pointer dereference: usr_cams[0]->ogl_w. [nullPointerRedundantCheck] lightspeed-1.2a.debian.1/src/snapshot.c:85:2: note: Assuming that condition 'usr_cams[0]->ogl_w' is not redundant lightspeed-1.2a.debian.1/src/snapshot.c:85:2: note: Null pointer dereference lightspeed-1.2a.debian.1/src/trackmem.c:148:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] lightspeed-1.2a.debian.1/src/trackmem.c:148:16: portability: %d in format string (no. 2) requires 'int' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] lightspeed-1.2a.debian.1/src/trackmem.c:165:17: portability: %d in format string (no. 1) requires 'int' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] lightspeed-1.2a.debian.1/src/trackmem.c:171:5: portability: %d in format string (no. 1) requires 'int' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] lightspeed-1.2a.debian.1/src/trackmem.c:176:18: portability: %d in format string (no. 1) requires 'int' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] lightspeed-1.2a.debian.1/src/trackmem.c:186:16: portability: %d in format string (no. 2) requires 'int' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] lightspeed-1.2a.debian.1/src/trackmem.c:153:3: error: Common realloc mistake: 'allblocks' nulled but not freed upon failure [memleakOnRealloc] lightspeed-1.2a.debian.1/src/trackmem.c:155:3: error: Common realloc mistake: 'allsizes' nulled but not freed upon failure [memleakOnRealloc] lightspeed-1.2a.debian.1/src/trackmem.c:211:4: error: Common realloc mistake: 'allblocks' nulled but not freed upon failure [memleakOnRealloc] lightspeed-1.2a.debian.1/src/trackmem.c:212:4: error: Common realloc mistake: 'allsizes' nulled but not freed upon failure [memleakOnRealloc] lightspeed-1.2a.debian.1/src/trackmem.c:245:34: style: Parameter 'block' can be declared as pointer to const [constParameterPointer] lightspeed-1.2a.debian.1/src/warp.c:503:8: style: Variable 'color->r' is assigned an expression that holds the same value. [redundantAssignment] lightspeed-1.2a.debian.1/src/warp.c:488:5: note: r0 is assigned 'color->r' here. lightspeed-1.2a.debian.1/src/warp.c:503:8: note: Variable 'color->r' is assigned an expression that holds the same value. lightspeed-1.2a.debian.1/src/warp.c:53:9: style: Variable 'cam_pos' can be declared as pointer to const [constVariablePointer] lightspeed-1.2a.debian.1/src/warp.c:369:50: style: Parameter 'cam_pos' can be declared as pointer to const [constParameterPointer] lightspeed-1.2a.debian.1/src/read3ds.c:990:18: warning: Null pointer dereference: scene [ctunullpointer] lightspeed-1.2a.debian.1/src/importobjs.c:438:17: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/importobjs.c:438:17: note: Assignment 'scene=xmalloc(sizeof(struct r3ds_scene))', assigned value is 0 lightspeed-1.2a.debian.1/src/importobjs.c:441:12: note: Calling function import_3ds, 1st argument is null lightspeed-1.2a.debian.1/src/importobjs.c:166:2: note: Calling function r3ds_split_scene_trimeshes, 1st argument is null lightspeed-1.2a.debian.1/src/read3ds.c:990:18: note: Dereferencing argument scene that is null diff: 2.17.0 lightspeed-1.2a.debian.1/intl/os2compat.c:62:33: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] lightspeed-1.2a.debian.1/intl/os2compat.c:60:43: note: Assuming allocation function fails lightspeed-1.2a.debian.1/intl/os2compat.c:60:27: note: Assignment '_nlos2_libdir=(char*)malloc(sl+strlen(LIBDIR)+1)', assigned value is 0 lightspeed-1.2a.debian.1/intl/os2compat.c:62:33: note: Null pointer addition head lightspeed-1.2a.debian.1/intl/os2compat.c:62:33: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] lightspeed-1.2a.debian.1/intl/os2compat.c:60:43: note: Assuming allocation function fails lightspeed-1.2a.debian.1/intl/os2compat.c:60:27: note: Assignment '_nlos2_libdir=(char*)malloc(sl+strlen(LIBDIR)+1)', assigned value is 0 lightspeed-1.2a.debian.1/intl/os2compat.c:62:33: note: Null pointer addition 2.17.0 lightspeed-1.2a.debian.1/intl/os2compat.c:76:42: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] lightspeed-1.2a.debian.1/intl/os2compat.c:74:52: note: Assuming allocation function fails lightspeed-1.2a.debian.1/intl/os2compat.c:74:36: note: Assignment '_nlos2_localealiaspath=(char*)malloc(sl+strlen(LOCALE_ALIAS_PATH)+1)', assigned value is 0 lightspeed-1.2a.debian.1/intl/os2compat.c:76:42: note: Null pointer addition head lightspeed-1.2a.debian.1/intl/os2compat.c:76:42: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] lightspeed-1.2a.debian.1/intl/os2compat.c:74:52: note: Assuming allocation function fails lightspeed-1.2a.debian.1/intl/os2compat.c:74:36: note: Assignment '_nlos2_localealiaspath=(char*)malloc(sl+strlen(LOCALE_ALIAS_PATH)+1)', assigned value is 0 lightspeed-1.2a.debian.1/intl/os2compat.c:76:42: note: Null pointer addition 2.17.0 lightspeed-1.2a.debian.1/intl/os2compat.c:90:36: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] lightspeed-1.2a.debian.1/intl/os2compat.c:88:46: note: Assuming allocation function fails lightspeed-1.2a.debian.1/intl/os2compat.c:88:30: note: Assignment '_nlos2_localedir=(char*)malloc(sl+strlen(LOCALEDIR)+1)', assigned value is 0 lightspeed-1.2a.debian.1/intl/os2compat.c:90:36: note: Null pointer addition head lightspeed-1.2a.debian.1/intl/os2compat.c:90:36: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] lightspeed-1.2a.debian.1/intl/os2compat.c:88:46: note: Assuming allocation function fails lightspeed-1.2a.debian.1/intl/os2compat.c:88:30: note: Assignment '_nlos2_localedir=(char*)malloc(sl+strlen(LOCALEDIR)+1)', assigned value is 0 lightspeed-1.2a.debian.1/intl/os2compat.c:90:36: note: Null pointer addition head lightspeed-1.2a.debian.1/src/animation.c:316:16: warning: If memory allocation fails, then there is a possible null pointer dereference: tvar [nullPointerOutOfMemory] lightspeed-1.2a.debian.1/src/animation.c:305:16: note: Assuming allocation function fails lightspeed-1.2a.debian.1/src/animation.c:305:16: note: Assignment 'tvar=xmalloc(sizeof(struct trans_var))', assigned value is 0 lightspeed-1.2a.debian.1/src/animation.c:316:16: note: Null pointer dereference head lightspeed-1.2a.debian.1/src/gtkwidgets.c:570:24: style: Variable 'font_desc' is assigned a value that is never used. [unreadVariable] DONE