2025-05-04 23:21 ftp://ftp.de.debian.org/debian/pool/main/h/hddtemp/hddtemp_0.3-beta15.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 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: 88ef81e (2025-05-02 08:42:38 +0200) count: 114 114 elapsed-time: 3.0 3.0 head-timing-info: old-timing-info: head results: hddtemp-0.3-beta15/contribs/crash.c:44:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_in [valueFlowBailoutIncompleteVar] hddtemp-0.3-beta15/contribs/crash.c:46:8: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] hddtemp-0.3-beta15/contribs/crash.c:38:19: style: Variable 'he' can be declared as pointer to const [constVariablePointer] hddtemp-0.3-beta15/intl/dgettext.c:52:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_MESSAGES [valueFlowBailoutIncompleteVar] hddtemp-0.3-beta15/intl/bindtextdom.c:226:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable domainname [valueFlowBailoutIncompleteVar] hddtemp-0.3-beta15/intl/eval-plural.h:52:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lor [valueFlowBailoutIncompleteVar] hddtemp-0.3-beta15/intl/dcigettext.c:545:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERANGE [valueFlowBailoutIncompleteVar] hddtemp-0.3-beta15/intl/dngettext.c:53:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_MESSAGES [valueFlowBailoutIncompleteVar] hddtemp-0.3-beta15/intl/bindtextdom.c:252:12: style: Local variable 'len' shadows outer variable [shadowVariable] hddtemp-0.3-beta15/intl/bindtextdom.c:224:14: note: Shadowed declaration hddtemp-0.3-beta15/intl/bindtextdom.c:252:12: note: Shadow variable hddtemp-0.3-beta15/intl/bindtextdom.c:283:15: style: Local variable 'len' shadows outer variable [shadowVariable] hddtemp-0.3-beta15/intl/bindtextdom.c:224:14: note: Shadowed declaration hddtemp-0.3-beta15/intl/bindtextdom.c:283:15: note: Shadow variable hddtemp-0.3-beta15/intl/gettext.c:57:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_MESSAGES [valueFlowBailoutIncompleteVar] hddtemp-0.3-beta15/intl/finddomain.c:50:30: style:inconclusive: Function '_nl_find_domain' argument 1 names different: declaration '__dirname' definition 'dirname'. [funcArgNamesDifferent] hddtemp-0.3-beta15/intl/gettextP.h:160:54: note: Function '_nl_find_domain' argument 1 names different: declaration '__dirname' definition 'dirname'. hddtemp-0.3-beta15/intl/finddomain.c:50:30: note: Function '_nl_find_domain' argument 1 names different: declaration '__dirname' definition 'dirname'. hddtemp-0.3-beta15/intl/finddomain.c:50:45: style:inconclusive: Function '_nl_find_domain' argument 2 names different: declaration '__locale' definition 'locale'. [funcArgNamesDifferent] hddtemp-0.3-beta15/intl/gettextP.h:160:71: note: Function '_nl_find_domain' argument 2 names different: declaration '__locale' definition 'locale'. hddtemp-0.3-beta15/intl/finddomain.c:50:45: note: Function '_nl_find_domain' argument 2 names different: declaration '__locale' definition 'locale'. hddtemp-0.3-beta15/intl/finddomain.c:51:16: style:inconclusive: Function '_nl_find_domain' argument 3 names different: declaration '__domainname' definition 'domainname'. [funcArgNamesDifferent] hddtemp-0.3-beta15/intl/gettextP.h:161:19: note: Function '_nl_find_domain' argument 3 names different: declaration '__domainname' definition 'domainname'. hddtemp-0.3-beta15/intl/finddomain.c:51:16: note: Function '_nl_find_domain' argument 3 names different: declaration '__domainname' definition 'domainname'. hddtemp-0.3-beta15/intl/finddomain.c:51:44: style:inconclusive: Function '_nl_find_domain' argument 4 names different: declaration '__domainbinding' definition 'domainbinding'. [funcArgNamesDifferent] hddtemp-0.3-beta15/intl/gettextP.h:162:23: note: Function '_nl_find_domain' argument 4 names different: declaration '__domainbinding' definition 'domainbinding'. hddtemp-0.3-beta15/intl/finddomain.c:51:44: note: Function '_nl_find_domain' argument 4 names different: declaration '__domainbinding' definition 'domainbinding'. hddtemp-0.3-beta15/intl/loadmsgcat.c:940:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] hddtemp-0.3-beta15/intl/dcigettext.c:544:10: style: Obsolescent function 'getwd' called. It is recommended to use 'getcwd' instead. [prohibitedgetwdCalled] hddtemp-0.3-beta15/intl/dcigettext.c:583:39: style: Redundant condition: The condition 'categoryvalue[0] != '\0'' is redundant since 'categoryvalue[0] == ':'' is sufficient. [redundantCondition] hddtemp-0.3-beta15/intl/l10nflist.c:341:12: style: Variable 'dir' can be declared as pointer to const [constVariablePointer] hddtemp-0.3-beta15/intl/dcigettext.c:427:25: style:inconclusive: Function 'libintl_dcigettext' argument 1 names different: declaration '__domainname' definition 'domainname'. [funcArgNamesDifferent] hddtemp-0.3-beta15/intl/gettextP.h:210:46: note: Function 'libintl_dcigettext' argument 1 names different: declaration '__domainname' definition 'domainname'. hddtemp-0.3-beta15/intl/dcigettext.c:427:25: note: Function 'libintl_dcigettext' argument 1 names different: declaration '__domainname' definition 'domainname'. hddtemp-0.3-beta15/intl/dcigettext.c:427:49: style:inconclusive: Function 'libintl_dcigettext' argument 2 names different: declaration '__msgid1' definition 'msgid1'. [funcArgNamesDifferent] hddtemp-0.3-beta15/intl/gettextP.h:211:18: note: Function 'libintl_dcigettext' argument 2 names different: declaration '__msgid1' definition 'msgid1'. hddtemp-0.3-beta15/intl/dcigettext.c:427:49: note: Function 'libintl_dcigettext' argument 2 names different: declaration '__msgid1' definition 'msgid1'. hddtemp-0.3-beta15/intl/dcigettext.c:427:69: style:inconclusive: Function 'libintl_dcigettext' argument 3 names different: declaration '__msgid2' definition 'msgid2'. [funcArgNamesDifferent] hddtemp-0.3-beta15/intl/gettextP.h:211:40: note: Function 'libintl_dcigettext' argument 3 names different: declaration '__msgid2' definition 'msgid2'. hddtemp-0.3-beta15/intl/dcigettext.c:427:69: note: Function 'libintl_dcigettext' argument 3 names different: declaration '__msgid2' definition 'msgid2'. hddtemp-0.3-beta15/intl/dcigettext.c:428:10: style:inconclusive: Function 'libintl_dcigettext' argument 4 names different: declaration '__plural' definition 'plural'. [funcArgNamesDifferent] hddtemp-0.3-beta15/intl/gettextP.h:212:10: note: Function 'libintl_dcigettext' argument 4 names different: declaration '__plural' definition 'plural'. hddtemp-0.3-beta15/intl/dcigettext.c:428:10: note: Function 'libintl_dcigettext' argument 4 names different: declaration '__plural' definition 'plural'. hddtemp-0.3-beta15/intl/dcigettext.c:428:36: style:inconclusive: Function 'libintl_dcigettext' argument 5 names different: declaration '__n' definition 'n'. [funcArgNamesDifferent] hddtemp-0.3-beta15/intl/gettextP.h:212:38: note: Function 'libintl_dcigettext' argument 5 names different: declaration '__n' definition 'n'. hddtemp-0.3-beta15/intl/dcigettext.c:428:36: note: Function 'libintl_dcigettext' argument 5 names different: declaration '__n' definition 'n'. hddtemp-0.3-beta15/intl/dcigettext.c:428:43: style:inconclusive: Function 'libintl_dcigettext' argument 6 names different: declaration '__category' definition 'category'. [funcArgNamesDifferent] hddtemp-0.3-beta15/intl/gettextP.h:213:10: note: Function 'libintl_dcigettext' argument 6 names different: declaration '__category' definition 'category'. hddtemp-0.3-beta15/intl/dcigettext.c:428:43: note: Function 'libintl_dcigettext' argument 6 names different: declaration '__category' definition 'category'. hddtemp-0.3-beta15/intl/dcigettext.c:533:13: style: Variable 'ret' can be declared as pointer to const [constVariablePointer] hddtemp-0.3-beta15/intl/dcigettext.c:224:9: style: struct member 'known_translation_t::domainname' is never used. [unusedStructMember] hddtemp-0.3-beta15/intl/dcigettext.c:227:7: style: struct member 'known_translation_t::category' is never used. [unusedStructMember] hddtemp-0.3-beta15/intl/dcigettext.c:230:7: style: struct member 'known_translation_t::counter' is never used. [unusedStructMember] hddtemp-0.3-beta15/intl/dcigettext.c:233:27: style: struct member 'known_translation_t::domain' is never used. [unusedStructMember] hddtemp-0.3-beta15/intl/dcigettext.c:236:15: style: struct member 'known_translation_t::translation' is never used. [unusedStructMember] hddtemp-0.3-beta15/intl/dcigettext.c:237:10: style: struct member 'known_translation_t::translation_length' is never used. [unusedStructMember] hddtemp-0.3-beta15/intl/dcigettext.c:240:8: style: struct member 'known_translation_t::msgid' is never used. [unusedStructMember] hddtemp-0.3-beta15/intl/localcharset.c:127:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBDIR [valueFlowBailoutIncompleteVar] hddtemp-0.3-beta15/intl/localealias.c:163:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOCALE_ALIAS_PATH [valueFlowBailoutIncompleteVar] hddtemp-0.3-beta15/intl/localcharset.c:306:14: style: Condition 'locale==NULL' is always true [knownConditionTrueFalse] hddtemp-0.3-beta15/intl/localcharset.c:297:24: note: Assignment 'locale=NULL', assigned value is 0 hddtemp-0.3-beta15/intl/localcharset.c:306:14: note: Condition 'locale==NULL' is always true hddtemp-0.3-beta15/intl/localealias.c:154:21: style: Variable 'retval' can be declared as pointer to const [constVariablePointer] hddtemp-0.3-beta15/intl/localealias.c:254:13: style: Variable 'alias' can be declared as pointer to const [constVariablePointer] hddtemp-0.3-beta15/intl/localealias.c:255:13: style: Variable 'value' can be declared as pointer to const [constVariablePointer] hddtemp-0.3-beta15/intl/localealias.c:172:41: error: Uninitialized variable: &item.value [uninitvar] hddtemp-0.3-beta15/intl/ngettext.c:59:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_MESSAGES [valueFlowBailoutIncompleteVar] hddtemp-0.3-beta15/intl/os2compat.c:60:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBDIR [valueFlowBailoutIncompleteVar] hddtemp-0.3-beta15/intl/os2compat.c:61:19: warning: If memory allocation fails, then there is a possible null pointer dereference: _nlos2_libdir [nullPointerOutOfMemory] hddtemp-0.3-beta15/intl/os2compat.c:60:43: note: Assuming allocation function fails hddtemp-0.3-beta15/intl/os2compat.c:60:27: note: Assignment '_nlos2_libdir=(char*)malloc(sl+strlen(LIBDIR)+1)', assigned value is 0 hddtemp-0.3-beta15/intl/os2compat.c:61:19: note: Null pointer dereference hddtemp-0.3-beta15/intl/os2compat.c:75:19: warning: If memory allocation fails, then there is a possible null pointer dereference: _nlos2_localealiaspath [nullPointerOutOfMemory] hddtemp-0.3-beta15/intl/os2compat.c:74:52: note: Assuming allocation function fails hddtemp-0.3-beta15/intl/os2compat.c:74:36: note: Assignment '_nlos2_localealiaspath=(char*)malloc(sl+strlen(LOCALE_ALIAS_PATH)+1)', assigned value is 0 hddtemp-0.3-beta15/intl/os2compat.c:75:19: note: Null pointer dereference hddtemp-0.3-beta15/intl/os2compat.c:89:19: warning: If memory allocation fails, then there is a possible null pointer dereference: _nlos2_localedir [nullPointerOutOfMemory] hddtemp-0.3-beta15/intl/os2compat.c:88:46: note: Assuming allocation function fails hddtemp-0.3-beta15/intl/os2compat.c:88:30: note: Assignment '_nlos2_localedir=(char*)malloc(sl+strlen(LOCALEDIR)+1)', assigned value is 0 hddtemp-0.3-beta15/intl/os2compat.c:89:19: note: Null pointer dereference hddtemp-0.3-beta15/intl/os2compat.c:96:15: warning: If memory allocation fails, then there is a possible null pointer dereference: _nlos2_localedir [nullPointerOutOfMemory] hddtemp-0.3-beta15/intl/os2compat.c:88:46: note: Assuming allocation function fails hddtemp-0.3-beta15/intl/os2compat.c:88:30: note: Assignment '_nlos2_localedir=(char*)malloc(sl+strlen(LOCALEDIR)+1)', assigned value is 0 hddtemp-0.3-beta15/intl/os2compat.c:96:15: note: Null pointer dereference hddtemp-0.3-beta15/intl/os2compat.c:62:33: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] hddtemp-0.3-beta15/intl/os2compat.c:60:43: note: Assuming allocation function fails hddtemp-0.3-beta15/intl/os2compat.c:60:27: note: Assignment '_nlos2_libdir=(char*)malloc(sl+strlen(LIBDIR)+1)', assigned value is 0 hddtemp-0.3-beta15/intl/os2compat.c:62:33: note: Null pointer addition hddtemp-0.3-beta15/intl/os2compat.c:76:42: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] hddtemp-0.3-beta15/intl/os2compat.c:74:52: note: Assuming allocation function fails hddtemp-0.3-beta15/intl/os2compat.c:74:36: note: Assignment '_nlos2_localealiaspath=(char*)malloc(sl+strlen(LOCALE_ALIAS_PATH)+1)', assigned value is 0 hddtemp-0.3-beta15/intl/os2compat.c:76:42: note: Null pointer addition hddtemp-0.3-beta15/intl/os2compat.c:90:36: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] hddtemp-0.3-beta15/intl/os2compat.c:88:46: note: Assuming allocation function fails hddtemp-0.3-beta15/intl/os2compat.c:88:30: note: Assignment '_nlos2_localedir=(char*)malloc(sl+strlen(LOCALEDIR)+1)', assigned value is 0 hddtemp-0.3-beta15/intl/os2compat.c:90:36: note: Null pointer addition hddtemp-0.3-beta15/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] /usr/local/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] /usr/local/share/bison/bison.simple:515:9: style: Variable 'yyss1' can be declared as pointer to const [constVariablePointer] hddtemp-0.3-beta15/intl/xsize.h:60:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] hddtemp-0.3-beta15/intl/printf-parse.c:146:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] hddtemp-0.3-beta15/intl/loadmsgcat.c:982:2: error: Resource leak: fd [resourceLeak] hddtemp-0.3-beta15/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] hddtemp-0.3-beta15/intl/loadmsgcat.c:919:33: note: 'data' is assigned value '(struct mo_file_header*)-1' here. hddtemp-0.3-beta15/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. hddtemp-0.3-beta15/intl/loadmsgcat.c:771:47: style:inconclusive: Function '_nl_init_domain_conv' argument 1 names different: declaration '__domain_file' definition 'domain_file'. [funcArgNamesDifferent] hddtemp-0.3-beta15/intl/gettextP.h:169:59: note: Function '_nl_init_domain_conv' argument 1 names different: declaration '__domain_file' definition 'domain_file'. hddtemp-0.3-beta15/intl/loadmsgcat.c:771:47: note: Function '_nl_init_domain_conv' argument 1 names different: declaration '__domain_file' definition 'domain_file'. hddtemp-0.3-beta15/intl/loadmsgcat.c:772:31: style:inconclusive: Function '_nl_init_domain_conv' argument 2 names different: declaration '__domain' definition 'domain'. [funcArgNamesDifferent] hddtemp-0.3-beta15/intl/gettextP.h:170:29: note: Function '_nl_init_domain_conv' argument 2 names different: declaration '__domain' definition 'domain'. hddtemp-0.3-beta15/intl/loadmsgcat.c:772:31: note: Function '_nl_init_domain_conv' argument 2 names different: declaration '__domain' definition 'domain'. hddtemp-0.3-beta15/intl/loadmsgcat.c:773:25: style:inconclusive: Function '_nl_init_domain_conv' argument 3 names different: declaration '__domainbinding' definition 'domainbinding'. [funcArgNamesDifferent] hddtemp-0.3-beta15/intl/gettextP.h:171:23: note: Function '_nl_init_domain_conv' argument 3 names different: declaration '__domainbinding' definition 'domainbinding'. hddtemp-0.3-beta15/intl/loadmsgcat.c:773:25: note: Function '_nl_init_domain_conv' argument 3 names different: declaration '__domainbinding' definition 'domainbinding'. hddtemp-0.3-beta15/intl/loadmsgcat.c:889:45: style:inconclusive: Function '_nl_free_domain_conv' argument 1 names different: declaration '__domain' definition 'domain'. [funcArgNamesDifferent] hddtemp-0.3-beta15/intl/gettextP.h:173:50: note: Function '_nl_free_domain_conv' argument 1 names different: declaration '__domain' definition 'domain'. hddtemp-0.3-beta15/intl/loadmsgcat.c:889:45: note: Function '_nl_free_domain_conv' argument 1 names different: declaration '__domain' definition 'domain'. hddtemp-0.3-beta15/intl/loadmsgcat.c:909:42: style:inconclusive: Function '_nl_load_domain' argument 1 names different: declaration '__domain' definition 'domain_file'. [funcArgNamesDifferent] hddtemp-0.3-beta15/intl/gettextP.h:164:47: note: Function '_nl_load_domain' argument 1 names different: declaration '__domain' definition 'domain_file'. hddtemp-0.3-beta15/intl/loadmsgcat.c:909:42: note: Function '_nl_load_domain' argument 1 names different: declaration '__domain' definition 'domain_file'. hddtemp-0.3-beta15/intl/loadmsgcat.c:910:20: style:inconclusive: Function '_nl_load_domain' argument 2 names different: declaration '__domainbinding' definition 'domainbinding'. [funcArgNamesDifferent] hddtemp-0.3-beta15/intl/gettextP.h:165:25: note: Function '_nl_load_domain' argument 2 names different: declaration '__domainbinding' definition 'domainbinding'. hddtemp-0.3-beta15/intl/loadmsgcat.c:910:20: note: Function '_nl_load_domain' argument 2 names different: declaration '__domainbinding' definition 'domainbinding'. hddtemp-0.3-beta15/intl/vasnprintf.c:122:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] hddtemp-0.3-beta15/intl/printf.c:116:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] hddtemp-0.3-beta15/src/ata.c:58:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HDIO_GET_IDENTITY [valueFlowBailoutIncompleteVar] hddtemp-0.3-beta15/src/ata.c:65:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HDIO_GET_IDENTITY [valueFlowBailoutIncompleteVar] hddtemp-0.3-beta15/src/ata.c:103:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] hddtemp-0.3-beta15/src/ata.c:74:20: style: Variable 'field' can be declared as pointer to const [constVariablePointer] hddtemp-0.3-beta15/src/atacmds.c:45:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WIN_SMART [valueFlowBailoutIncompleteVar] hddtemp-0.3-beta15/src/atacmds.c:51:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WIN_SMART [valueFlowBailoutIncompleteVar] hddtemp-0.3-beta15/src/atacmds.c:100:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HDIO_DRIVE_CMD [valueFlowBailoutIncompleteVar] hddtemp-0.3-beta15/src/atacmds.c:117:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HDIO_GET_IDENTITY [valueFlowBailoutIncompleteVar] hddtemp-0.3-beta15/src/daemon.c:70:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCK_STREAM [valueFlowBailoutIncompleteVar] hddtemp-0.3-beta15/src/daemon.c:228:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_INFO [valueFlowBailoutIncompleteVar] hddtemp-0.3-beta15/src/daemon.c:311:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _NSIG [valueFlowBailoutIncompleteVar] hddtemp-0.3-beta15/src/daemon.c:330:15: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] hddtemp-0.3-beta15/src/db.c:59:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_EXTENDED [valueFlowBailoutIncompleteVar] hddtemp-0.3-beta15/src/db.c:233:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] hddtemp-0.3-beta15/src/db.c:107:10: warning: If memory allocation fails, then there is a possible null pointer dereference: tabs [nullPointerOutOfMemory] hddtemp-0.3-beta15/src/db.c:106:16: note: Assuming allocation function fails hddtemp-0.3-beta15/src/db.c:106:16: note: Assignment 'tabs=malloc(len+1)', assigned value is 0 hddtemp-0.3-beta15/src/db.c:107:10: note: Null pointer dereference hddtemp-0.3-beta15/src/db.c:108:3: warning: If memory allocation fails, then there is a possible null pointer dereference: tabs [nullPointerOutOfMemory] hddtemp-0.3-beta15/src/db.c:106:16: note: Assuming allocation function fails hddtemp-0.3-beta15/src/db.c:106:16: note: Assignment 'tabs=malloc(len+1)', assigned value is 0 hddtemp-0.3-beta15/src/db.c:108:3: note: Null pointer dereference hddtemp-0.3-beta15/src/db.c:112:10: warning: If memory allocation fails, then there is a possible null pointer dereference: line [nullPointerOutOfMemory] hddtemp-0.3-beta15/src/db.c:111:16: note: Assuming allocation function fails hddtemp-0.3-beta15/src/db.c:111:16: note: Assignment 'line=malloc(len+1)', assigned value is 0 hddtemp-0.3-beta15/src/db.c:112:10: note: Null pointer dereference hddtemp-0.3-beta15/src/db.c:113:3: warning: If memory allocation fails, then there is a possible null pointer dereference: line [nullPointerOutOfMemory] hddtemp-0.3-beta15/src/db.c:111:16: note: Assuming allocation function fails hddtemp-0.3-beta15/src/db.c:111:16: note: Assignment 'line=malloc(len+1)', assigned value is 0 hddtemp-0.3-beta15/src/db.c:113:3: note: Null pointer dereference hddtemp-0.3-beta15/src/db.c:117:41: warning: If memory allocation fails, then there is a possible null pointer dereference: tabs [nullPointerOutOfMemory] hddtemp-0.3-beta15/src/db.c:106:16: note: Assuming allocation function fails hddtemp-0.3-beta15/src/db.c:106:16: note: Assignment 'tabs=malloc(len+1)', assigned value is 0 hddtemp-0.3-beta15/src/db.c:117:41: note: Null pointer dereference hddtemp-0.3-beta15/src/db.c:117:47: warning: If memory allocation fails, then there is a possible null pointer dereference: line [nullPointerOutOfMemory] hddtemp-0.3-beta15/src/db.c:111:16: note: Assuming allocation function fails hddtemp-0.3-beta15/src/db.c:111:16: note: Assignment 'line=malloc(len+1)', assigned value is 0 hddtemp-0.3-beta15/src/db.c:117:47: note: Null pointer dereference hddtemp-0.3-beta15/src/db.c:123:9: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] hddtemp-0.3-beta15/src/db.c:106:16: note: Assuming allocation function fails hddtemp-0.3-beta15/src/db.c:106:16: note: Assignment 'tabs=malloc(len+1)', assigned value is 0 hddtemp-0.3-beta15/src/db.c:123:9: note: Null pointer addition hddtemp-0.3-beta15/src/hddtemp.c:157:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] hddtemp-0.3-beta15/src/hddtemp.c:278:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] hddtemp-0.3-beta15/src/hddtemp.c:94:32: style: Parameter 'dsk' can be declared as pointer to const [constParameterPointer] hddtemp-0.3-beta15/src/hddtemp.c:290:26: style: Variable 'long_options' can be declared as const array [constVariable] hddtemp-0.3-beta15/src/hddtemp.c:510:33: style: Variable 'dbe' can be declared as pointer to const [constVariablePointer] hddtemp-0.3-beta15/src/sata.c:58:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WIN_IDENTIFY [valueFlowBailoutIncompleteVar] hddtemp-0.3-beta15/src/sata.c:84:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WIN_IDENTIFY [valueFlowBailoutIncompleteVar] hddtemp-0.3-beta15/src/sata.c:130:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] hddtemp-0.3-beta15/src/sata.c:117:20: style: Variable 'field' can be declared as pointer to const [constVariablePointer] hddtemp-0.3-beta15/src/satacmds.c:64:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_DXFER_FROM_DEV [valueFlowBailoutIncompleteVar] hddtemp-0.3-beta15/src/satacmds.c:118:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WIN_SMART [valueFlowBailoutIncompleteVar] hddtemp-0.3-beta15/src/satacmds.c:124:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WIN_SMART [valueFlowBailoutIncompleteVar] hddtemp-0.3-beta15/src/satacmds.c:99:10: style: Variable 'p' is reassigned a value before the old one has been used. [redundantAssignment] hddtemp-0.3-beta15/src/satacmds.c:95:5: note: p is assigned hddtemp-0.3-beta15/src/satacmds.c:99:10: note: p is overwritten hddtemp-0.3-beta15/src/satacmds.c:53:47: style: Parameter 'cmd' can be declared as pointer to const [constParameterPointer] hddtemp-0.3-beta15/src/scsi.c:54:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_IOCTL_GET_BUS_NUMBER [valueFlowBailoutIncompleteVar] hddtemp-0.3-beta15/src/scsi.c:101:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] hddtemp-0.3-beta15/src/scsicmds.c:71:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sg_io_hdr [valueFlowBailoutIncompleteVar] hddtemp-0.3-beta15/src/scsicmds.c:109:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_IOCTL_SEND_COMMAND [valueFlowBailoutIncompleteVar] hddtemp-0.3-beta15/src/scsicmds.c:142:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INQUIRY [valueFlowBailoutIncompleteVar] hddtemp-0.3-beta15/src/scsicmds.c:159:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODE_SENSE [valueFlowBailoutIncompleteVar] hddtemp-0.3-beta15/src/scsicmds.c:175:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODE_SELECT [valueFlowBailoutIncompleteVar] hddtemp-0.3-beta15/src/scsicmds.c:191:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_SENSE [valueFlowBailoutIncompleteVar] hddtemp-0.3-beta15/src/scsicmds.c:50:18: style: Variable 'end' can be declared as pointer to const [constVariablePointer] hddtemp-0.3-beta15/src/scsicmds.c:85:50: style: Parameter 'cdb' can be declared as pointer to const [constParameterPointer] hddtemp-0.3-beta15/intl/vasnprintf.c:748:12: style: Variable 'arg' can be declared as pointer to const [constVariablePointer] hddtemp-0.3-beta15/src/utf8.c:53:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] hddtemp-0.3-beta15/src/utf8.c:101:17: style: Variable 'str' can be declared as const array [constVariable] diff: 2.17.0 hddtemp-0.3-beta15/intl/os2compat.c:62:33: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] hddtemp-0.3-beta15/intl/os2compat.c:60:43: note: Assuming allocation function fails hddtemp-0.3-beta15/intl/os2compat.c:60:27: note: Assignment '_nlos2_libdir=(char*)malloc(sl+strlen(LIBDIR)+1)', assigned value is 0 hddtemp-0.3-beta15/intl/os2compat.c:62:33: note: Null pointer addition head hddtemp-0.3-beta15/intl/os2compat.c:62:33: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] hddtemp-0.3-beta15/intl/os2compat.c:60:43: note: Assuming allocation function fails hddtemp-0.3-beta15/intl/os2compat.c:60:27: note: Assignment '_nlos2_libdir=(char*)malloc(sl+strlen(LIBDIR)+1)', assigned value is 0 hddtemp-0.3-beta15/intl/os2compat.c:62:33: note: Null pointer addition 2.17.0 hddtemp-0.3-beta15/intl/os2compat.c:76:42: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] hddtemp-0.3-beta15/intl/os2compat.c:74:52: note: Assuming allocation function fails hddtemp-0.3-beta15/intl/os2compat.c:74:36: note: Assignment '_nlos2_localealiaspath=(char*)malloc(sl+strlen(LOCALE_ALIAS_PATH)+1)', assigned value is 0 hddtemp-0.3-beta15/intl/os2compat.c:76:42: note: Null pointer addition head hddtemp-0.3-beta15/intl/os2compat.c:76:42: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] hddtemp-0.3-beta15/intl/os2compat.c:74:52: note: Assuming allocation function fails hddtemp-0.3-beta15/intl/os2compat.c:74:36: note: Assignment '_nlos2_localealiaspath=(char*)malloc(sl+strlen(LOCALE_ALIAS_PATH)+1)', assigned value is 0 hddtemp-0.3-beta15/intl/os2compat.c:76:42: note: Null pointer addition 2.17.0 hddtemp-0.3-beta15/intl/os2compat.c:90:36: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] hddtemp-0.3-beta15/intl/os2compat.c:88:46: note: Assuming allocation function fails hddtemp-0.3-beta15/intl/os2compat.c:88:30: note: Assignment '_nlos2_localedir=(char*)malloc(sl+strlen(LOCALEDIR)+1)', assigned value is 0 hddtemp-0.3-beta15/intl/os2compat.c:90:36: note: Null pointer addition head hddtemp-0.3-beta15/intl/os2compat.c:90:36: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] hddtemp-0.3-beta15/intl/os2compat.c:88:46: note: Assuming allocation function fails hddtemp-0.3-beta15/intl/os2compat.c:88:30: note: Assignment '_nlos2_localedir=(char*)malloc(sl+strlen(LOCALEDIR)+1)', assigned value is 0 hddtemp-0.3-beta15/intl/os2compat.c:90:36: note: Null pointer addition 2.17.0 hddtemp-0.3-beta15/src/db.c:123:9: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] hddtemp-0.3-beta15/src/db.c:106:16: note: Assuming allocation function fails hddtemp-0.3-beta15/src/db.c:106:16: note: Assignment 'tabs=malloc(len+1)', assigned value is 0 hddtemp-0.3-beta15/src/db.c:123:9: note: Null pointer addition head hddtemp-0.3-beta15/src/db.c:123:9: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] hddtemp-0.3-beta15/src/db.c:106:16: note: Assuming allocation function fails hddtemp-0.3-beta15/src/db.c:106:16: note: Assignment 'tabs=malloc(len+1)', assigned value is 0 hddtemp-0.3-beta15/src/db.c:123:9: note: Null pointer addition DONE