2024-04-25 17:10 ftp://ftp.de.debian.org/debian/pool/main/l/lsmbox/lsmbox_2.1.3.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j4 platform: Linux-6.1.0-20-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.57 compiler: g++ (Debian 12.2.0-14) 12.2.0 cppcheck: head 2.14.0 head-info: da380ea (2024-04-25 10:28:43 +0200) count: 152 152 elapsed-time: 5.2 4.8 head-timing-info: old-timing-info: head results: lsmbox-2.1.3.orig/intl/dgettext.c:50:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_MESSAGES [valueFlowBailoutIncompleteVar] lsmbox-2.1.3.orig/intl/dngettext.c:51:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_MESSAGES [valueFlowBailoutIncompleteVar] lsmbox-2.1.3.orig/intl/finddomain.c:59:30: style:inconclusive: Function '_nl_find_domain' argument 1 names different: declaration '__dirname' definition 'dirname'. [funcArgNamesDifferent] lsmbox-2.1.3.orig/intl/gettextP.h:255:54: note: Function '_nl_find_domain' argument 1 names different: declaration '__dirname' definition 'dirname'. lsmbox-2.1.3.orig/intl/finddomain.c:59:30: note: Function '_nl_find_domain' argument 1 names different: declaration '__dirname' definition 'dirname'. lsmbox-2.1.3.orig/intl/finddomain.c:59:45: style:inconclusive: Function '_nl_find_domain' argument 2 names different: declaration '__locale' definition 'locale'. [funcArgNamesDifferent] lsmbox-2.1.3.orig/intl/gettextP.h:255:71: note: Function '_nl_find_domain' argument 2 names different: declaration '__locale' definition 'locale'. lsmbox-2.1.3.orig/intl/finddomain.c:59:45: note: Function '_nl_find_domain' argument 2 names different: declaration '__locale' definition 'locale'. lsmbox-2.1.3.orig/intl/finddomain.c:60:16: style:inconclusive: Function '_nl_find_domain' argument 3 names different: declaration '__domainname' definition 'domainname'. [funcArgNamesDifferent] lsmbox-2.1.3.orig/intl/gettextP.h:256:19: note: Function '_nl_find_domain' argument 3 names different: declaration '__domainname' definition 'domainname'. lsmbox-2.1.3.orig/intl/finddomain.c:60:16: note: Function '_nl_find_domain' argument 3 names different: declaration '__domainname' definition 'domainname'. lsmbox-2.1.3.orig/intl/finddomain.c:60:44: style:inconclusive: Function '_nl_find_domain' argument 4 names different: declaration '__domainbinding' definition 'domainbinding'. [funcArgNamesDifferent] lsmbox-2.1.3.orig/intl/gettextP.h:257:23: note: Function '_nl_find_domain' argument 4 names different: declaration '__domainbinding' definition 'domainbinding'. lsmbox-2.1.3.orig/intl/finddomain.c:60:44: note: Function '_nl_find_domain' argument 4 names different: declaration '__domainbinding' definition 'domainbinding'. lsmbox-2.1.3.orig/intl/gettext.c:55:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_MESSAGES [valueFlowBailoutIncompleteVar] lsmbox-2.1.3.orig/intl/bindtextdom.c:204:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable domainname [valueFlowBailoutIncompleteVar] lsmbox-2.1.3.orig/intl/loadmsgcat.c:784:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fd [valueFlowBailoutIncompleteVar] lsmbox-2.1.3.orig/intl/l10nflist.c:319:12: style: Variable 'dir' can be declared as pointer to const [constVariablePointer] lsmbox-2.1.3.orig/intl/localcharset.c:139:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBDIR [valueFlowBailoutIncompleteVar] lsmbox-2.1.3.orig/intl/localcharset.c:442:14: style: Condition 'locale==NULL' is always true [knownConditionTrueFalse] lsmbox-2.1.3.orig/intl/localcharset.c:433:24: note: Assignment 'locale=NULL', assigned value is 0 lsmbox-2.1.3.orig/intl/localcharset.c:442:14: note: Condition 'locale==NULL' is always true lsmbox-2.1.3.orig/intl/localcharset.c:183:19: error: Resource handle 'fd' freed twice. [doubleFree] lsmbox-2.1.3.orig/intl/localcharset.c:179:20: note: Resource handle 'fd' freed twice. lsmbox-2.1.3.orig/intl/localcharset.c:183:19: note: Resource handle 'fd' freed twice. lsmbox-2.1.3.orig/intl/bindtextdom.c:230:12: style: Local variable 'len' shadows outer variable [shadowVariable] lsmbox-2.1.3.orig/intl/bindtextdom.c:202:14: note: Shadowed declaration lsmbox-2.1.3.orig/intl/bindtextdom.c:230:12: note: Shadow variable lsmbox-2.1.3.orig/intl/bindtextdom.c:259:15: style: Local variable 'len' shadows outer variable [shadowVariable] lsmbox-2.1.3.orig/intl/bindtextdom.c:202:14: note: Shadowed declaration lsmbox-2.1.3.orig/intl/bindtextdom.c:259:15: note: Shadow variable lsmbox-2.1.3.orig/intl/localename.c:2850:14: style: Condition 'retval!=NULL' is always false [knownConditionTrueFalse] lsmbox-2.1.3.orig/intl/localename.c:2849:34: note: Calling function 'gl_locale_name_thread' returns 0 lsmbox-2.1.3.orig/intl/localename.c:2849:34: note: Assignment 'retval=gl_locale_name_thread(category,categoryname)', assigned value is 0 lsmbox-2.1.3.orig/intl/localename.c:2850:14: note: Condition 'retval!=NULL' is always false lsmbox-2.1.3.orig/intl/localealias.c:161:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lock [valueFlowBailoutIncompleteVar] lsmbox-2.1.3.orig/intl/log.c:123:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lock [valueFlowBailoutIncompleteVar] lsmbox-2.1.3.orig/intl/ngettext.c:57:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_MESSAGES [valueFlowBailoutIncompleteVar] lsmbox-2.1.3.orig/intl/dcigettext.c:641:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERANGE [valueFlowBailoutIncompleteVar] lsmbox-2.1.3.orig/intl/os2compat.c:58:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBDIR [valueFlowBailoutIncompleteVar] lsmbox-2.1.3.orig/intl/os2compat.c:49:9: style: Variable 'root' can be declared as pointer to const [constVariablePointer] lsmbox-2.1.3.orig/intl/localealias.c:157:21: style: Variable 'retval' can be declared as pointer to const [constVariablePointer] lsmbox-2.1.3.orig/intl/localealias.c:259:13: style: Variable 'alias' can be declared as pointer to const [constVariablePointer] lsmbox-2.1.3.orig/intl/localealias.c:260:13: style: Variable 'value' can be declared as pointer to const [constVariablePointer] lsmbox-2.1.3.orig/intl/localealias.c:173:41: error: Uninitialized variable: &item.value [uninitvar] plural.y:164:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable qmop [valueFlowBailoutIncompleteVar] plural.y:280:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable equal [valueFlowBailoutIncompleteVar] plural.c:1160:5: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] plural.c:1416:15: style: Condition 'yyn==0' is always true [knownConditionTrueFalse] plural.c:1413:16: note: Assignment 'yyn=yytable[yyn]', assigned value is greater than -1 plural.c:1414:11: note: Assuming that condition 'yyn<=0' is not redundant plural.c:1416:15: note: Condition 'yyn==0' is always true plural.y:156:21: style: Same expression on both sides of '-'. [duplicateExpression] plural.y:158:52: style: Same expression on both sides of '-'. [duplicateExpression] plural.y:164:96: style: Same expression on both sides of '-'. [duplicateExpression] plural.y:172:71: style: Same expression on both sides of '-'. [duplicateExpression] plural.y:180:72: style: Same expression on both sides of '-'. [duplicateExpression] plural.y:188:89: style: Same expression on both sides of '-'. [duplicateExpression] plural.y:196:89: style: Same expression on both sides of '-'. [duplicateExpression] plural.y:204:89: style: Same expression on both sides of '-'. [duplicateExpression] plural.y:212:89: style: Same expression on both sides of '-'. [duplicateExpression] plural.y:220:48: style: Same expression on both sides of '-'. [duplicateExpression] plural.y:237:42: style: Same expression on both sides of '-'. [duplicateExpression] lsmbox-2.1.3.orig/intl/xsize.h:63:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] lsmbox-2.1.3.orig/intl/printf-parse.c:165:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] lsmbox-2.1.3.orig/intl/loadmsgcat.c:861: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] lsmbox-2.1.3.orig/intl/loadmsgcat.c:791:33: note: 'data' is assigned value '(struct mo_file_header*)-1' here. lsmbox-2.1.3.orig/intl/loadmsgcat.c:861: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. lsmbox-2.1.3.orig/intl/loadmsgcat.c:780:42: style:inconclusive: Function '_nl_load_domain' argument 1 names different: declaration '__domain' definition 'domain_file'. [funcArgNamesDifferent] lsmbox-2.1.3.orig/intl/gettextP.h:259:47: note: Function '_nl_load_domain' argument 1 names different: declaration '__domain' definition 'domain_file'. lsmbox-2.1.3.orig/intl/loadmsgcat.c:780:42: note: Function '_nl_load_domain' argument 1 names different: declaration '__domain' definition 'domain_file'. lsmbox-2.1.3.orig/intl/loadmsgcat.c:781:20: style:inconclusive: Function '_nl_load_domain' argument 2 names different: declaration '__domainbinding' definition 'domainbinding'. [funcArgNamesDifferent] lsmbox-2.1.3.orig/intl/gettextP.h:260:25: note: Function '_nl_load_domain' argument 2 names different: declaration '__domainbinding' definition 'domainbinding'. lsmbox-2.1.3.orig/intl/loadmsgcat.c:781:20: note: Function '_nl_load_domain' argument 2 names different: declaration '__domainbinding' definition 'domainbinding'. lsmbox-2.1.3.orig/intl/vasnprintf.c:1631:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LDBL_MAX_EXP [valueFlowBailoutIncompleteVar] lsmbox-2.1.3.orig/intl/vasnprintf.c:1792:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] lsmbox-2.1.3.orig/intl/printf.c:111:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] lsmbox-2.1.3.orig/intl/printf.c:137:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] lsmbox-2.1.3.orig/intl/printf.c:170:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] lsmbox-2.1.3.orig/intl/tsearch.c:621:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable leaf [valueFlowBailoutIncompleteVar] lsmbox-2.1.3.orig/intl/dcigettext.c:640:14: style: Obsolescent function 'getwd' called. It is recommended to use 'getcwd' instead. [prohibitedgetwdCalled] lsmbox-2.1.3.orig/intl/dcigettext.c:689:39: style: Redundant condition: The condition 'categoryvalue[0] != '\0'' is redundant since 'categoryvalue[0] == ':'' is sufficient. [redundantCondition] lsmbox-2.1.3.orig/intl/dcigettext.c:485:25: style:inconclusive: Function 'libintl_dcigettext' argument 1 names different: declaration '__domainname' definition 'domainname'. [funcArgNamesDifferent] lsmbox-2.1.3.orig/intl/gettextP.h:78:46: note: Function 'libintl_dcigettext' argument 1 names different: declaration '__domainname' definition 'domainname'. lsmbox-2.1.3.orig/intl/dcigettext.c:485:25: note: Function 'libintl_dcigettext' argument 1 names different: declaration '__domainname' definition 'domainname'. lsmbox-2.1.3.orig/intl/dcigettext.c:485:49: style:inconclusive: Function 'libintl_dcigettext' argument 2 names different: declaration '__msgid1' definition 'msgid1'. [funcArgNamesDifferent] lsmbox-2.1.3.orig/intl/gettextP.h:79:18: note: Function 'libintl_dcigettext' argument 2 names different: declaration '__msgid1' definition 'msgid1'. lsmbox-2.1.3.orig/intl/dcigettext.c:485:49: note: Function 'libintl_dcigettext' argument 2 names different: declaration '__msgid1' definition 'msgid1'. lsmbox-2.1.3.orig/intl/dcigettext.c:485:69: style:inconclusive: Function 'libintl_dcigettext' argument 3 names different: declaration '__msgid2' definition 'msgid2'. [funcArgNamesDifferent] lsmbox-2.1.3.orig/intl/gettextP.h:79:40: note: Function 'libintl_dcigettext' argument 3 names different: declaration '__msgid2' definition 'msgid2'. lsmbox-2.1.3.orig/intl/dcigettext.c:485:69: note: Function 'libintl_dcigettext' argument 3 names different: declaration '__msgid2' definition 'msgid2'. lsmbox-2.1.3.orig/intl/dcigettext.c:486:10: style:inconclusive: Function 'libintl_dcigettext' argument 4 names different: declaration '__plural' definition 'plural'. [funcArgNamesDifferent] lsmbox-2.1.3.orig/intl/gettextP.h:80:10: note: Function 'libintl_dcigettext' argument 4 names different: declaration '__plural' definition 'plural'. lsmbox-2.1.3.orig/intl/dcigettext.c:486:10: note: Function 'libintl_dcigettext' argument 4 names different: declaration '__plural' definition 'plural'. lsmbox-2.1.3.orig/intl/dcigettext.c:486:36: style:inconclusive: Function 'libintl_dcigettext' argument 5 names different: declaration '__n' definition 'n'. [funcArgNamesDifferent] lsmbox-2.1.3.orig/intl/gettextP.h:80:38: note: Function 'libintl_dcigettext' argument 5 names different: declaration '__n' definition 'n'. lsmbox-2.1.3.orig/intl/dcigettext.c:486:36: note: Function 'libintl_dcigettext' argument 5 names different: declaration '__n' definition 'n'. lsmbox-2.1.3.orig/intl/dcigettext.c:486:43: style:inconclusive: Function 'libintl_dcigettext' argument 6 names different: declaration '__category' definition 'category'. [funcArgNamesDifferent] lsmbox-2.1.3.orig/intl/gettextP.h:81:10: note: Function 'libintl_dcigettext' argument 6 names different: declaration '__category' definition 'category'. lsmbox-2.1.3.orig/intl/dcigettext.c:486:43: note: Function 'libintl_dcigettext' argument 6 names different: declaration '__category' definition 'category'. lsmbox-2.1.3.orig/intl/tsearch.c:182:8: style: Local variable 'root' shadows outer variable [shadowVariable] lsmbox-2.1.3.orig/intl/dcigettext.c:275:14: note: Shadowed declaration lsmbox-2.1.3.orig/intl/tsearch.c:182:8: note: Shadow variable lsmbox-2.1.3.orig/intl/tsearch.c:282:12: style: Local variable 'root' shadows outer variable [shadowVariable] lsmbox-2.1.3.orig/intl/dcigettext.c:275:14: note: Shadowed declaration lsmbox-2.1.3.orig/intl/tsearch.c:282:12: note: Shadow variable lsmbox-2.1.3.orig/intl/tsearch.c:343:12: style: Local variable 'root' shadows outer variable [shadowVariable] lsmbox-2.1.3.orig/intl/dcigettext.c:275:14: note: Shadowed declaration lsmbox-2.1.3.orig/intl/tsearch.c:343:12: note: Shadow variable lsmbox-2.1.3.orig/intl/tsearch.c:368:8: style: Local variable 'root' shadows outer variable [shadowVariable] lsmbox-2.1.3.orig/intl/dcigettext.c:275:14: note: Shadowed declaration lsmbox-2.1.3.orig/intl/tsearch.c:368:8: note: Shadow variable lsmbox-2.1.3.orig/intl/tsearch.c:618:14: style: Local variable 'root' shadows outer variable [shadowVariable] lsmbox-2.1.3.orig/intl/dcigettext.c:275:14: note: Shadowed declaration lsmbox-2.1.3.orig/intl/tsearch.c:618:14: note: Shadow variable lsmbox-2.1.3.orig/intl/tsearch.c:641:14: style: Local variable 'root' shadows outer variable [shadowVariable] lsmbox-2.1.3.orig/intl/dcigettext.c:275:14: note: Shadowed declaration lsmbox-2.1.3.orig/intl/tsearch.c:641:14: note: Shadow variable lsmbox-2.1.3.orig/intl/dcigettext.c:629:10: style: Variable 'ret' can be declared as pointer to const [constVariablePointer] lsmbox-2.1.3.orig/intl/dcigettext.c:1406:25: style: Variable 'domaindata' can be declared as pointer to const [constVariablePointer] lsmbox-2.1.3.orig/src/getopt.c:711:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] lsmbox-2.1.3.orig/src/lsmbox.c:75:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] lsmbox-2.1.3.orig/src/lsmbox.c:423:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] lsmbox-2.1.3.orig/src/lsmbox.c:749:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] lsmbox-2.1.3.orig/src/lsmbox.c:972:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] lsmbox-2.1.3.orig/src/lsmbox.c:1101:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] lsmbox-2.1.3.orig/src/lsmbox.c:1327:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] lsmbox-2.1.3.orig/src/lsmbox.c:1419:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] lsmbox-2.1.3.orig/src/lsmbox.c:1714:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] lsmbox-2.1.3.orig/src/lsmbox.c:1736:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] lsmbox-2.1.3.orig/src/getopt.c:891:11: style: Variable 'temp' can be declared as pointer to const [constVariablePointer] lsmbox-2.1.3.orig/src/lsmbox.c:504:14: warning: Assert statement modifies 'str'. [assignmentInAssert] lsmbox-2.1.3.orig/src/lsmbox.c:556:14: warning: Assert statement modifies 'new'. [assignmentInAssert] lsmbox-2.1.3.orig/src/lsmbox.c:561:16: warning: Assert statement modifies 'array'. [assignmentInAssert] lsmbox-2.1.3.orig/src/lsmbox.c:569:15: warning: Assert statement modifies 'array'. [assignmentInAssert] lsmbox-2.1.3.orig/src/lsmbox.c:664:13: warning: Assert statement modifies 'pw'. [assignmentInAssert] lsmbox-2.1.3.orig/src/lsmbox.c:712:15: warning: Assert statement modifies 'pw'. [assignmentInAssert] lsmbox-2.1.3.orig/src/lsmbox.c:718:15: warning: Assert statement modifies 'pw'. [assignmentInAssert] lsmbox-2.1.3.orig/src/lsmbox.c:1892:16: warning: Assert statement modifies 'mboxes'. [assignmentInAssert] lsmbox-2.1.3.orig/src/lsmbox.c:327:14: style: Obsolescent function 'rindex' called. It is recommended to use 'strrchr' instead. [prohibitedrindexCalled] lsmbox-2.1.3.orig/src/lsmbox.c:664:15: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] lsmbox-2.1.3.orig/src/lsmbox.c:703:11: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] lsmbox-2.1.3.orig/src/lsmbox.c:712:17: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] lsmbox-2.1.3.orig/src/lsmbox.c:716:10: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] lsmbox-2.1.3.orig/src/lsmbox.c:718:17: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] lsmbox-2.1.3.orig/src/lsmbox.c:722:10: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] lsmbox-2.1.3.orig/src/lsmbox.c:819:17: style: Obsolescent function 'rindex' called. It is recommended to use 'strrchr' instead. [prohibitedrindexCalled] lsmbox-2.1.3.orig/src/lsmbox.c:822:17: style: Obsolescent function 'rindex' called. It is recommended to use 'strrchr' instead. [prohibitedrindexCalled] lsmbox-2.1.3.orig/src/lsmbox.c:838:17: style: Obsolescent function 'rindex' called. It is recommended to use 'strrchr' instead. [prohibitedrindexCalled] lsmbox-2.1.3.orig/src/lsmbox.c:841:17: style: Obsolescent function 'rindex' called. It is recommended to use 'strrchr' instead. [prohibitedrindexCalled] lsmbox-2.1.3.orig/src/lsmbox.c:979:15: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] lsmbox-2.1.3.orig/src/lsmbox.c:1007:44: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] lsmbox-2.1.3.orig/src/lsmbox.c:1030:15: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] lsmbox-2.1.3.orig/src/lsmbox.c:1179:6: style: Obsolescent function 'bcopy' called. It is recommended to use 'memcpy' or 'memmove' instead. [prohibitedbcopyCalled] lsmbox-2.1.3.orig/src/lsmbox.c:1203:15: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] lsmbox-2.1.3.orig/src/lsmbox.c:1269:11: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] lsmbox-2.1.3.orig/src/lsmbox.c:1352:8: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] lsmbox-2.1.3.orig/src/lsmbox.c:1354:13: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] lsmbox-2.1.3.orig/src/lsmbox.c:1139:13: style: Redundant condition: The condition '*seq' is redundant since '*seq == ':'' is sufficient. [redundantCondition] lsmbox-2.1.3.orig/src/lsmbox.c:1152:14: style: Redundant condition: The condition '!*seq' is redundant since '*seq != '-'' is sufficient. [redundantCondition] lsmbox-2.1.3.orig/src/lsmbox.c:1010:17: style: Condition 'eventcheck()' is always false [knownConditionTrueFalse] lsmbox-2.1.3.orig/src/lsmbox.c:365:15: note: Assignment 'retval=0', assigned value is 0 lsmbox-2.1.3.orig/src/lsmbox.c:1010:17: note: Calling function 'eventcheck' returns 0 lsmbox-2.1.3.orig/src/lsmbox.c:1010:17: note: Condition 'eventcheck()' is always false lsmbox-2.1.3.orig/src/lsmbox.c:1010:23: style: Condition 'quit' is always false [knownConditionTrueFalse] lsmbox-2.1.3.orig/src/lsmbox.c:1286:17: style: Condition 'eventcheck()' is always false [knownConditionTrueFalse] lsmbox-2.1.3.orig/src/lsmbox.c:365:15: note: Assignment 'retval=0', assigned value is 0 lsmbox-2.1.3.orig/src/lsmbox.c:1286:17: note: Calling function 'eventcheck' returns 0 lsmbox-2.1.3.orig/src/lsmbox.c:1286:17: note: Condition 'eventcheck()' is always false lsmbox-2.1.3.orig/src/lsmbox.c:1286:23: style: Condition 'quit' is always false [knownConditionTrueFalse] lsmbox-2.1.3.orig/src/lsmbox.c:1376:18: style: Condition 'eventcheck()' is always false [knownConditionTrueFalse] lsmbox-2.1.3.orig/src/lsmbox.c:365:15: note: Assignment 'retval=0', assigned value is 0 lsmbox-2.1.3.orig/src/lsmbox.c:1376:18: note: Calling function 'eventcheck' returns 0 lsmbox-2.1.3.orig/src/lsmbox.c:1376:18: note: Condition 'eventcheck()' is always false lsmbox-2.1.3.orig/src/lsmbox.c:1376:24: style: Condition 'quit' is always false [knownConditionTrueFalse] lsmbox-2.1.3.orig/src/lsmbox.c:1410:17: style: Condition 'eventcheck()' is always false [knownConditionTrueFalse] lsmbox-2.1.3.orig/src/lsmbox.c:365:15: note: Assignment 'retval=0', assigned value is 0 lsmbox-2.1.3.orig/src/lsmbox.c:1410:17: note: Calling function 'eventcheck' returns 0 lsmbox-2.1.3.orig/src/lsmbox.c:1410:17: note: Condition 'eventcheck()' is always false lsmbox-2.1.3.orig/src/lsmbox.c:1410:23: style: Condition 'quit' is always false [knownConditionTrueFalse] lsmbox-2.1.3.orig/src/lsmbox.c:1558:17: style: Condition 'quit' is always false [knownConditionTrueFalse] lsmbox-2.1.3.orig/src/lsmbox.c:1739:18: style: Condition 'init_locales(PACKAGE_NAME)' is always false [knownConditionTrueFalse] lsmbox-2.1.3.orig/src/lsmbox.c:183:15: note: Assignment 'status=0', assigned value is 0 lsmbox-2.1.3.orig/src/lsmbox.c:1739:18: note: Calling function 'init_locales' returns 0 lsmbox-2.1.3.orig/src/lsmbox.c:1739:18: note: Condition 'init_locales(PACKAGE_NAME)' is always false lsmbox-2.1.3.orig/src/lsmbox.c:1860:7: style: Condition '!init_curses()' is always false [knownConditionTrueFalse] lsmbox-2.1.3.orig/src/lsmbox.c:1860:19: note: Calling function 'init_curses' returns 1 lsmbox-2.1.3.orig/src/lsmbox.c:1860:7: note: Condition '!init_curses()' is always false lsmbox-2.1.3.orig/src/lsmbox.c:1928:18: style: Condition 'eventcheck()' is always false [knownConditionTrueFalse] lsmbox-2.1.3.orig/src/lsmbox.c:365:15: note: Assignment 'retval=0', assigned value is 0 lsmbox-2.1.3.orig/src/lsmbox.c:1928:18: note: Calling function 'eventcheck' returns 0 lsmbox-2.1.3.orig/src/lsmbox.c:1928:18: note: Condition 'eventcheck()' is always false lsmbox-2.1.3.orig/src/lsmbox.c:1928:24: style: Condition '!quit' is always true [knownConditionTrueFalse] lsmbox-2.1.3.orig/src/lsmbox.c:1940:7: style: Condition '!quit' is always true [knownConditionTrueFalse] lsmbox-2.1.3.orig/src/lsmbox.c:1945:35: style: Condition '!quit' is always true [knownConditionTrueFalse] lsmbox-2.1.3.orig/src/lsmbox.c:561:10: error: Common realloc mistake: 'array' nulled but not freed upon failure [memleakOnRealloc] lsmbox-2.1.3.orig/src/lsmbox.c:569:9: error: Common realloc mistake: 'array' nulled but not freed upon failure [memleakOnRealloc] lsmbox-2.1.3.orig/src/lsmbox.c:702:45: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] lsmbox-2.1.3.orig/src/lsmbox.c:706:41: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] lsmbox-2.1.3.orig/src/lsmbox.c:723:39: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] lsmbox-2.1.3.orig/src/lsmbox.c:905:32: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] lsmbox-2.1.3.orig/src/lsmbox.c:969:38: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] lsmbox-2.1.3.orig/src/lsmbox.c:987:39: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] lsmbox-2.1.3.orig/src/lsmbox.c:1019:38: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] lsmbox-2.1.3.orig/src/lsmbox.c:1037:39: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] lsmbox-2.1.3.orig/src/lsmbox.c:1096:50: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] lsmbox-2.1.3.orig/src/lsmbox.c:1210:46: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] lsmbox-2.1.3.orig/src/lsmbox.c:1237:47: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] lsmbox-2.1.3.orig/src/lsmbox.c:1455:44: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] lsmbox-2.1.3.orig/src/lsmbox.c:1471:40: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] lsmbox-2.1.3.orig/src/lsmbox.c:1490:35: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] lsmbox-2.1.3.orig/src/lsmbox.c:1506:35: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] lsmbox-2.1.3.orig/src/lsmbox.c:1522:35: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] lsmbox-2.1.3.orig/src/lsmbox.c:1746:52: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] lsmbox-2.1.3.orig/src/lsmbox.c:1825:22: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] lsmbox-2.1.3.orig/src/lsmbox.c:1832:27: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] lsmbox-2.1.3.orig/src/lsmbox.c:1713:1: style: Label 'EXIT' is not used. [unusedLabel] lsmbox-2.1.3.orig/src/lsmbox.c:486:8: style: Variable 'tmp' can be declared as pointer to const [constVariablePointer] lsmbox-2.1.3.orig/src/lsmbox.c:662:17: style: Variable 'pw' can be declared as pointer to const [constVariablePointer] lsmbox-2.1.3.orig/src/lsmbox.c:982:9: style: Variable 'p' can be declared as pointer to const [constVariablePointer] lsmbox-2.1.3.orig/src/lsmbox.c:1266:13: style: Variable 'tmp' can be declared as pointer to const [constVariablePointer] lsmbox-2.1.3.orig/src/lsmbox.c:1350:10: style: Variable 'tmp' can be declared as pointer to const [constVariablePointer] lsmbox-2.1.3.orig/src/lsmbox.c:1616:9: style: Variable 'tmp' can be declared as pointer to const [constVariablePointer] lsmbox-2.1.3.orig/intl/vasnprintf.c:5102:33: style: Variable 'arg' can be declared as pointer to const [constVariablePointer] diff: DONE