2025-05-10 01:33 ftp://ftp.de.debian.org/debian/pool/main/d/dhcpd-pools/dhcpd-pools_3.2.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --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: b3c7f00 (2025-05-09 17:59:20 +0200) count: 242 231 elapsed-time: 1.2 1.2 head-timing-info: old-timing-info: head results: dhcpd-pools-3.2/lib/c-ctype.h:29:0: error: #error "Please include config.h first." [preprocessorErrorDirective] dhcpd-pools-3.2/lib/c-ctype.h:29:3: error: #error "Please include config.h first." [preprocessorErrorDirective] dhcpd-pools-3.2/lib/basename-lgpl.c:60:5: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] dhcpd-pools-3.2/lib/calloc.c:41:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PTRDIFF_MAX [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/lib/cloexec.c:62:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/lib/cloexec.c:82:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_DUPFD_CLOEXEC [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/lib/close-stream.c:70:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/lib/dup2.c:182:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/lib/error.c:142:0: error: #error Please port fcntl to your platform [preprocessorErrorDirective] dhcpd-pools-3.2/lib/error.c:142:5: error: #error Please port fcntl to your platform [preprocessorErrorDirective] dhcpd-pools-3.2/lib/closeout.c:119:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/lib/fclose.c:74:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/lib/fcntl.c:437:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/lib/fcntl.c:492:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CLOEXEC [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/lib/gettext.h:247:16: error: Returning pointer to local variable 'msg_ctxt_id' that will be invalid when returning. [returnDanglingLifetime] dhcpd-pools-3.2/lib/gettext.h:239:15: note: Array decayed to pointer here. dhcpd-pools-3.2/lib/gettext.h:226:8: note: Variable created here. dhcpd-pools-3.2/lib/gettext.h:247:16: note: Returning pointer to local variable 'msg_ctxt_id' that will be invalid when returning. dhcpd-pools-3.2/lib/fdopen.c:59:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/lib/fflush.c:189:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/lib/fflush.c:97:53: style: Parameter 'fp' can be declared as pointer to const [constParameterPointer] dhcpd-pools-3.2/lib/fopen.c:81:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/lib/fpending.c:60:0: error: #error "Please port gnulib fpending.c to your platform!" [preprocessorErrorDirective] dhcpd-pools-3.2/lib/fpending.c:60:3: error: #error "Please port gnulib fpending.c to your platform!" [preprocessorErrorDirective] dhcpd-pools-3.2/lib/fpurge.c:146:0: error: #error "Please port gnulib fpurge.c to your platform! Look at the definitions of fflush, setvbuf and ungetc on your system, then report this to bug-gnulib." [preprocessorErrorDirective] dhcpd-pools-3.2/lib/fpurge.c:146:4: error: #error "Please port gnulib fpurge.c to your platform! Look at the definitions of fflush, setvbuf and ungetc on your system, then report this to bug-gnulib." [preprocessorErrorDirective] dhcpd-pools-3.2/lib/free.c:41:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/lib/freading.c:72:0: error: #error "Please port gnulib freading.c to your platform!" [preprocessorErrorDirective] dhcpd-pools-3.2/lib/freading.c:72:4: error: #error "Please port gnulib freading.c to your platform!" [preprocessorErrorDirective] dhcpd-pools-3.2/lib/fseeko.c:111:0: error: #error "Please port gnulib fseeko.c to your platform! Look at the code in fseeko.c, then report this to bug-gnulib." [preprocessorErrorDirective] dhcpd-pools-3.2/lib/fseeko.c:111:4: error: #error "Please port gnulib fseeko.c to your platform! Look at the code in fseeko.c, then report this to bug-gnulib." [preprocessorErrorDirective] dhcpd-pools-3.2/lib/ftell.c:34:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/lib/stat-time.h:31:0: error: #error "Please include config.h first." [preprocessorErrorDirective] dhcpd-pools-3.2/lib/stat-time.h:31:3: error: #error "Please include config.h first." [preprocessorErrorDirective] dhcpd-pools-3.2/lib/getdtablesize.c:114:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RLIMIT_NOFILE [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/lib/getopt1.c:36:21: style:inconclusive: Function '_getopt_long_r' argument 1 names different: declaration '___argc' definition 'argc'. [funcArgNamesDifferent] dhcpd-pools-3.2/lib/getopt_int.h:107:32: note: Function '_getopt_long_r' argument 1 names different: declaration '___argc' definition 'argc'. dhcpd-pools-3.2/lib/getopt1.c:36:21: note: Function '_getopt_long_r' argument 1 names different: declaration '___argc' definition 'argc'. dhcpd-pools-3.2/lib/getopt1.c:36:34: style:inconclusive: Function '_getopt_long_r' argument 2 names different: declaration '___argv' definition 'argv'. [funcArgNamesDifferent] dhcpd-pools-3.2/lib/getopt_int.h:107:48: note: Function '_getopt_long_r' argument 2 names different: declaration '___argv' definition 'argv'. dhcpd-pools-3.2/lib/getopt1.c:36:34: note: Function '_getopt_long_r' argument 2 names different: declaration '___argv' definition 'argv'. dhcpd-pools-3.2/lib/getopt1.c:36:52: style:inconclusive: Function '_getopt_long_r' argument 3 names different: declaration '__shortopts' definition 'options'. [funcArgNamesDifferent] dhcpd-pools-3.2/lib/getopt_int.h:108:19: note: Function '_getopt_long_r' argument 3 names different: declaration '__shortopts' definition 'options'. dhcpd-pools-3.2/lib/getopt1.c:36:52: note: Function '_getopt_long_r' argument 3 names different: declaration '__shortopts' definition 'options'. dhcpd-pools-3.2/lib/getopt1.c:37:24: style:inconclusive: Function '_getopt_long_r' argument 4 names different: declaration '__longopts' definition 'long_options'. [funcArgNamesDifferent] dhcpd-pools-3.2/lib/getopt_int.h:109:28: note: Function '_getopt_long_r' argument 4 names different: declaration '__longopts' definition 'long_options'. dhcpd-pools-3.2/lib/getopt1.c:37:24: note: Function '_getopt_long_r' argument 4 names different: declaration '__longopts' definition 'long_options'. dhcpd-pools-3.2/lib/getopt1.c:37:43: style:inconclusive: Function '_getopt_long_r' argument 5 names different: declaration '__longind' definition 'opt_index'. [funcArgNamesDifferent] dhcpd-pools-3.2/lib/getopt_int.h:109:45: note: Function '_getopt_long_r' argument 5 names different: declaration '__longind' definition 'opt_index'. dhcpd-pools-3.2/lib/getopt1.c:37:43: note: Function '_getopt_long_r' argument 5 names different: declaration '__longind' definition 'opt_index'. dhcpd-pools-3.2/lib/getopt1.c:38:24: style:inconclusive: Function '_getopt_long_r' argument 6 names different: declaration '__data' definition 'd'. [funcArgNamesDifferent] dhcpd-pools-3.2/lib/getopt_int.h:110:28: note: Function '_getopt_long_r' argument 6 names different: declaration '__data' definition 'd'. dhcpd-pools-3.2/lib/getopt1.c:38:24: note: Function '_getopt_long_r' argument 6 names different: declaration '__data' definition 'd'. dhcpd-pools-3.2/lib/getopt1.c:59:26: style:inconclusive: Function '_getopt_long_only_r' argument 1 names different: declaration '___argc' definition 'argc'. [funcArgNamesDifferent] dhcpd-pools-3.2/lib/getopt_int.h:112:37: note: Function '_getopt_long_only_r' argument 1 names different: declaration '___argc' definition 'argc'. dhcpd-pools-3.2/lib/getopt1.c:59:26: note: Function '_getopt_long_only_r' argument 1 names different: declaration '___argc' definition 'argc'. dhcpd-pools-3.2/lib/getopt1.c:59:39: style:inconclusive: Function '_getopt_long_only_r' argument 2 names different: declaration '___argv' definition 'argv'. [funcArgNamesDifferent] dhcpd-pools-3.2/lib/getopt_int.h:112:53: note: Function '_getopt_long_only_r' argument 2 names different: declaration '___argv' definition 'argv'. dhcpd-pools-3.2/lib/getopt1.c:59:39: note: Function '_getopt_long_only_r' argument 2 names different: declaration '___argv' definition 'argv'. dhcpd-pools-3.2/lib/getopt1.c:59:57: style:inconclusive: Function '_getopt_long_only_r' argument 3 names different: declaration '__shortopts' definition 'options'. [funcArgNamesDifferent] dhcpd-pools-3.2/lib/getopt_int.h:113:17: note: Function '_getopt_long_only_r' argument 3 names different: declaration '__shortopts' definition 'options'. dhcpd-pools-3.2/lib/getopt1.c:59:57: note: Function '_getopt_long_only_r' argument 3 names different: declaration '__shortopts' definition 'options'. dhcpd-pools-3.2/lib/getopt1.c:60:29: style:inconclusive: Function '_getopt_long_only_r' argument 4 names different: declaration '__longopts' definition 'long_options'. [funcArgNamesDifferent] dhcpd-pools-3.2/lib/getopt_int.h:114:26: note: Function '_getopt_long_only_r' argument 4 names different: declaration '__longopts' definition 'long_options'. dhcpd-pools-3.2/lib/getopt1.c:60:29: note: Function '_getopt_long_only_r' argument 4 names different: declaration '__longopts' definition 'long_options'. dhcpd-pools-3.2/lib/getopt1.c:60:48: style:inconclusive: Function '_getopt_long_only_r' argument 5 names different: declaration '__longind' definition 'opt_index'. [funcArgNamesDifferent] dhcpd-pools-3.2/lib/getopt_int.h:115:10: note: Function '_getopt_long_only_r' argument 5 names different: declaration '__longind' definition 'opt_index'. dhcpd-pools-3.2/lib/getopt1.c:60:48: note: Function '_getopt_long_only_r' argument 5 names different: declaration '__longind' definition 'opt_index'. dhcpd-pools-3.2/lib/getopt1.c:61:29: style:inconclusive: Function '_getopt_long_only_r' argument 6 names different: declaration '__data' definition 'd'. [funcArgNamesDifferent] dhcpd-pools-3.2/lib/getopt_int.h:116:26: note: Function '_getopt_long_only_r' argument 6 names different: declaration '__data' definition 'd'. dhcpd-pools-3.2/lib/getopt1.c:61:29: note: Function '_getopt_long_only_r' argument 6 names different: declaration '__data' definition 'd'. dhcpd-pools-3.2/lib/getprogname.c:291:0: error: #error "getprogname module not ported to this OS" [preprocessorErrorDirective] dhcpd-pools-3.2/lib/getprogname.c:291:4: error: #error "getprogname module not ported to this OS" [preprocessorErrorDirective] dhcpd-pools-3.2/lib/hard-locale.c:29:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SETLOCALE_NULL_MAX [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/lib/ialloc.h:28:0: error: #error "Please include config.h first." [preprocessorErrorDirective] dhcpd-pools-3.2/lib/ialloc.h:28:3: error: #error "Please include config.h first." [preprocessorErrorDirective] dhcpd-pools-3.2/lib/getopt.c:278:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/lib/getopt.c:621:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/lib/inet_pton.c:95:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/lib/isnan.c:80:24: style: union member 'memory_double::value' is never used. [unusedStructMember] dhcpd-pools-3.2/lib/isnan.c:80:44: style: union member 'memory_double::word' is never used. [unusedStructMember] dhcpd-pools-3.2/lib/inet_pton.c:152:16: error: Uninitialized variable: tmp [uninitvar] dhcpd-pools-3.2/lib/inet_pton.c:150:14: note: Assuming condition is false dhcpd-pools-3.2/lib/inet_pton.c:152:16: note: Uninitialized variable: tmp dhcpd-pools-3.2/lib/localcharset.c:1088:14: style: Condition 'locale==NULL' is always true [knownConditionTrueFalse] dhcpd-pools-3.2/lib/localcharset.c:1079:24: note: Assignment 'locale=NULL', assigned value is 0 dhcpd-pools-3.2/lib/localcharset.c:1088:14: note: Condition 'locale==NULL' is always true dhcpd-pools-3.2/lib/lseek.c:80:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/lib/localcharset.c:579:14: style: struct member 'table_entry::locale' is never used. [unusedStructMember] dhcpd-pools-3.2/lib/localcharset.c:580:14: style: struct member 'table_entry::canonical' is never used. [unusedStructMember] dhcpd-pools-3.2/lib/localcharset.c:1097:22: style: Variable 'locale' is assigned a value that is never used. [unreadVariable] dhcpd-pools-3.2/lib/malloc.c:37:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PTRDIFF_MAX [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/lib/mktime.c:576:1: error: There is an unknown macro here somewhere. Configuration is required. If weak_alias is a macro then please configure it. [unknownMacro] dhcpd-pools-3.2/lib/open.c:72:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/lib/getopt.c:471:25: style:inconclusive: Function '_getopt_internal_r' argument 1 names different: declaration '___argc' definition 'argc'. [funcArgNamesDifferent] dhcpd-pools-3.2/lib/getopt_int.h:101:36: note: Function '_getopt_internal_r' argument 1 names different: declaration '___argc' definition 'argc'. dhcpd-pools-3.2/lib/getopt.c:471:25: note: Function '_getopt_internal_r' argument 1 names different: declaration '___argc' definition 'argc'. dhcpd-pools-3.2/lib/getopt.c:471:38: style:inconclusive: Function '_getopt_internal_r' argument 2 names different: declaration '___argv' definition 'argv'. [funcArgNamesDifferent] dhcpd-pools-3.2/lib/getopt_int.h:101:52: note: Function '_getopt_internal_r' argument 2 names different: declaration '___argv' definition 'argv'. dhcpd-pools-3.2/lib/getopt.c:471:38: note: Function '_getopt_internal_r' argument 2 names different: declaration '___argv' definition 'argv'. dhcpd-pools-3.2/lib/getopt.c:471:56: style:inconclusive: Function '_getopt_internal_r' argument 3 names different: declaration '__shortopts' definition 'optstring'. [funcArgNamesDifferent] dhcpd-pools-3.2/lib/getopt_int.h:102:23: note: Function '_getopt_internal_r' argument 3 names different: declaration '__shortopts' definition 'optstring'. dhcpd-pools-3.2/lib/getopt.c:471:56: note: Function '_getopt_internal_r' argument 3 names different: declaration '__shortopts' definition 'optstring'. dhcpd-pools-3.2/lib/getopt.c:472:28: style:inconclusive: Function '_getopt_internal_r' argument 4 names different: declaration '__longopts' definition 'longopts'. [funcArgNamesDifferent] dhcpd-pools-3.2/lib/getopt_int.h:103:32: note: Function '_getopt_internal_r' argument 4 names different: declaration '__longopts' definition 'longopts'. dhcpd-pools-3.2/lib/getopt.c:472:28: note: Function '_getopt_internal_r' argument 4 names different: declaration '__longopts' definition 'longopts'. dhcpd-pools-3.2/lib/getopt.c:472:43: style:inconclusive: Function '_getopt_internal_r' argument 5 names different: declaration '__longind' definition 'longind'. [funcArgNamesDifferent] dhcpd-pools-3.2/lib/getopt_int.h:103:49: note: Function '_getopt_internal_r' argument 5 names different: declaration '__longind' definition 'longind'. dhcpd-pools-3.2/lib/getopt.c:472:43: note: Function '_getopt_internal_r' argument 5 names different: declaration '__longind' definition 'longind'. dhcpd-pools-3.2/lib/getopt.c:473:11: style:inconclusive: Function '_getopt_internal_r' argument 6 names different: declaration '__long_only' definition 'long_only'. [funcArgNamesDifferent] dhcpd-pools-3.2/lib/getopt_int.h:104:15: note: Function '_getopt_internal_r' argument 6 names different: declaration '__long_only' definition 'long_only'. dhcpd-pools-3.2/lib/getopt.c:473:11: note: Function '_getopt_internal_r' argument 6 names different: declaration '__long_only' definition 'long_only'. dhcpd-pools-3.2/lib/getopt.c:473:43: style:inconclusive: Function '_getopt_internal_r' argument 7 names different: declaration '__data' definition 'd'. [funcArgNamesDifferent] dhcpd-pools-3.2/lib/getopt_int.h:104:49: note: Function '_getopt_internal_r' argument 7 names different: declaration '__data' definition 'd'. dhcpd-pools-3.2/lib/getopt.c:473:43: note: Function '_getopt_internal_r' argument 7 names different: declaration '__data' definition 'd'. dhcpd-pools-3.2/lib/getopt.c:473:50: style:inconclusive: Function '_getopt_internal_r' argument 8 names different: declaration '__posixly_correct' definition 'posixly_correct'. [funcArgNamesDifferent] dhcpd-pools-3.2/lib/getopt_int.h:105:15: note: Function '_getopt_internal_r' argument 8 names different: declaration '__posixly_correct' definition 'posixly_correct'. dhcpd-pools-3.2/lib/getopt.c:473:50: note: Function '_getopt_internal_r' argument 8 names different: declaration '__posixly_correct' definition 'posixly_correct'. dhcpd-pools-3.2/lib/getopt.c:703:23: style:inconclusive: Function '_getopt_internal' argument 1 names different: declaration '___argc' definition 'argc'. [funcArgNamesDifferent] dhcpd-pools-3.2/lib/getopt_int.h:25:34: note: Function '_getopt_internal' argument 1 names different: declaration '___argc' definition 'argc'. dhcpd-pools-3.2/lib/getopt.c:703:23: note: Function '_getopt_internal' argument 1 names different: declaration '___argc' definition 'argc'. dhcpd-pools-3.2/lib/getopt.c:703:36: style:inconclusive: Function '_getopt_internal' argument 2 names different: declaration '___argv' definition 'argv'. [funcArgNamesDifferent] dhcpd-pools-3.2/lib/getopt_int.h:25:50: note: Function '_getopt_internal' argument 2 names different: declaration '___argv' definition 'argv'. dhcpd-pools-3.2/lib/getopt.c:703:36: note: Function '_getopt_internal' argument 2 names different: declaration '___argv' definition 'argv'. dhcpd-pools-3.2/lib/getopt.c:703:54: style:inconclusive: Function '_getopt_internal' argument 3 names different: declaration '__shortopts' definition 'optstring'. [funcArgNamesDifferent] dhcpd-pools-3.2/lib/getopt_int.h:26:21: note: Function '_getopt_internal' argument 3 names different: declaration '__shortopts' definition 'optstring'. dhcpd-pools-3.2/lib/getopt.c:703:54: note: Function '_getopt_internal' argument 3 names different: declaration '__shortopts' definition 'optstring'. dhcpd-pools-3.2/lib/getopt.c:704:26: style:inconclusive: Function '_getopt_internal' argument 4 names different: declaration '__longopts' definition 'longopts'. [funcArgNamesDifferent] dhcpd-pools-3.2/lib/getopt_int.h:27:30: note: Function '_getopt_internal' argument 4 names different: declaration '__longopts' definition 'longopts'. dhcpd-pools-3.2/lib/getopt.c:704:26: note: Function '_getopt_internal' argument 4 names different: declaration '__longopts' definition 'longopts'. dhcpd-pools-3.2/lib/getopt.c:704:41: style:inconclusive: Function '_getopt_internal' argument 5 names different: declaration '__longind' definition 'longind'. [funcArgNamesDifferent] dhcpd-pools-3.2/lib/getopt_int.h:27:47: note: Function '_getopt_internal' argument 5 names different: declaration '__longind' definition 'longind'. dhcpd-pools-3.2/lib/getopt.c:704:41: note: Function '_getopt_internal' argument 5 names different: declaration '__longind' definition 'longind'. dhcpd-pools-3.2/lib/getopt.c:704:54: style:inconclusive: Function '_getopt_internal' argument 6 names different: declaration '__long_only' definition 'long_only'. [funcArgNamesDifferent] dhcpd-pools-3.2/lib/getopt_int.h:28:13: note: Function '_getopt_internal' argument 6 names different: declaration '__long_only' definition 'long_only'. dhcpd-pools-3.2/lib/getopt.c:704:54: note: Function '_getopt_internal' argument 6 names different: declaration '__long_only' definition 'long_only'. dhcpd-pools-3.2/lib/getopt.c:705:9: style:inconclusive: Function '_getopt_internal' argument 7 names different: declaration '__posixly_correct' definition 'posixly_correct'. [funcArgNamesDifferent] dhcpd-pools-3.2/lib/getopt_int.h:28:30: note: Function '_getopt_internal' argument 7 names different: declaration '__posixly_correct' definition 'posixly_correct'. dhcpd-pools-3.2/lib/getopt.c:705:9: note: Function '_getopt_internal' argument 7 names different: declaration '__posixly_correct' definition 'posixly_correct'. dhcpd-pools-3.2/lib/progname.c:55:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/lib/xalloc.h:31:0: error: #error "Please include config.h first." [preprocessorErrorDirective] dhcpd-pools-3.2/lib/xalloc.h:31:3: error: #error "Please include config.h first." [preprocessorErrorDirective] dhcpd-pools-3.2/lib/realloc.c:49:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PTRDIFF_MAX [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/lib/setenv.c:125:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable environ [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/lib/setenv.c:295:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/lib/setenv.c:310:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable environ [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/lib/setlocale_null.c:150:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/lib/setlocale_null.c:317:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/lib/strerror.c:60:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/lib/strerror.c:45:7: style: Condition 'msg' is always false [knownConditionTrueFalse] dhcpd-pools-3.2/lib/strerror.c:44:21: note: Assignment 'msg=NULL', assigned value is 0 dhcpd-pools-3.2/lib/strerror.c:45:7: note: Condition 'msg' is always false dhcpd-pools-3.2/lib/reallocarray.c:33:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/lib/time_r.c:37:30: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] dhcpd-pools-3.2/lib/time_r.c:43:30: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] dhcpd-pools-3.2/lib/str-two-way.h:136:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/lib/str-two-way.h:302:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/lib/str-two-way.h:434:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/lib/time_rz.c:221:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/lib/time_rz.c:240:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/lib/time_rz.c:90:38: style: Parameter 'tm' can be declared as pointer to const [constParameterPointer] dhcpd-pools-3.2/lib/time_rz.c:209:9: style: Variable 'env_tz' can be declared as pointer to const [constVariablePointer] dhcpd-pools-3.2/lib/unsetenv.c:64:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/src/dhcpd-pools.c:76:74: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/src/dhcpd-pools.c:181:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/src/dhcpd-pools.c:339:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ALARM_WARN [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/src/dhcpd-pools.c:87:7: warning: If memory allocation fails, then there is a possible null pointer dereference: state->shared_net_root [nullPointerOutOfMemory] dhcpd-pools-3.2/src/dhcpd-pools.c:86:34: note: Assuming allocation function fails dhcpd-pools-3.2/src/dhcpd-pools.c:86:34: note: Assignment 'state->shared_net_root=xcalloc(sizeof(struct shared_network_t),1)', assigned value is 0 dhcpd-pools-3.2/src/dhcpd-pools.c:87:7: note: Null pointer dereference dhcpd-pools-3.2/src/dhcpd-pools.c:213:6: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] dhcpd-pools-3.2/src/dhcpd-pools.c:207:18: note: Assuming allocation function fails dhcpd-pools-3.2/src/dhcpd-pools.c:207:18: note: Assignment 'state->sorts=xcalloc(1,sizeof(struct output_sort))', assigned value is 0 dhcpd-pools-3.2/src/dhcpd-pools.c:208:16: note: Assignment 'p=state->sorts', assigned value is 0 dhcpd-pools-3.2/src/dhcpd-pools.c:213:6: note: Null pointer dereference dhcpd-pools-3.2/src/dhcpd-pools.c:200:11: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] dhcpd-pools-3.2/src/getdata.c:92:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/src/getdata.c:215:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/src/getdata.c:100:2: warning: If memory allocation fails, then there is a possible null pointer dereference: line [nullPointerOutOfMemory] dhcpd-pools-3.2/src/getdata.c:99:16: note: Assuming allocation function fails dhcpd-pools-3.2/src/getdata.c:99:16: note: Assignment 'line=xmalloc(sizeof(char)*MAXLEN)', assigned value is 0 dhcpd-pools-3.2/src/getdata.c:100:2: note: Null pointer dereference dhcpd-pools-3.2/src/getdata.c:102:2: warning: If memory allocation fails, then there is a possible null pointer dereference: ipstring [nullPointerOutOfMemory] dhcpd-pools-3.2/src/getdata.c:101:20: note: Assuming allocation function fails dhcpd-pools-3.2/src/getdata.c:101:20: note: Assignment 'ipstring=xmalloc(sizeof(char)*MAXLEN)', assigned value is 0 dhcpd-pools-3.2/src/getdata.c:102:2: note: Null pointer dereference dhcpd-pools-3.2/src/getdata.c:103:15: warning: If resource allocation fails, then there is a possible null pointer dereference: dhcpd_leases [nullPointerOutOfResources] dhcpd-pools-3.2/src/getdata.c:90:22: note: Assuming allocation function fails dhcpd-pools-3.2/src/getdata.c:90:22: note: Assignment 'dhcpd_leases=fopen(state->dhcpdlease_file,"r")', assigned value is 0 dhcpd-pools-3.2/src/getdata.c:103:15: note: Null pointer dereference dhcpd-pools-3.2/src/getdata.c:223:9: warning: If resource allocation fails, then there is a possible null pointer dereference: dhcpd_config [nullPointerOutOfResources] dhcpd-pools-3.2/src/getdata.c:213:22: note: Assuming allocation function fails dhcpd-pools-3.2/src/getdata.c:213:22: note: Assignment 'dhcpd_config=fopen(config_file,"r")', assigned value is 0 dhcpd-pools-3.2/src/getdata.c:223:9: note: Null pointer dereference dhcpd-pools-3.2/src/getdata.c:276:5: warning: Either the condition '!range_p' is redundant or there is possible null pointer dereference: range_p. [nullPointerRedundantCheck] dhcpd-pools-3.2/src/getdata.c:271:9: note: Assuming that condition '!range_p' is not redundant dhcpd-pools-3.2/src/getdata.c:276:5: note: Null pointer dereference dhcpd-pools-3.2/src/getdata.c:276:24: warning: Either the condition '!range_p' is redundant or there is possible null pointer dereference: range_p. [nullPointerRedundantCheck] dhcpd-pools-3.2/src/getdata.c:271:9: note: Assuming that condition '!range_p' is not redundant dhcpd-pools-3.2/src/getdata.c:276:24: note: Null pointer dereference dhcpd-pools-3.2/src/getdata.c:402:5: warning: If memory allocation fails, then there is a possible null pointer dereference: shared_p [nullPointerOutOfMemory] dhcpd-pools-3.2/src/getdata.c:399:43: note: Assuming allocation function fails dhcpd-pools-3.2/src/getdata.c:399:43: note: Assignment 'state->shared_net_head->next=xcalloc(sizeof(struct shared_network_t),1)', assigned value is 0 dhcpd-pools-3.2/src/getdata.c:400:52: note: Assignment 'state->shared_net_head=state->shared_net_head->next', assigned value is 0 dhcpd-pools-3.2/src/getdata.c:401:14: note: shared_p is assigned 'state->shared_net_head' here. dhcpd-pools-3.2/src/getdata.c:402:5: note: Null pointer dereference dhcpd-pools-3.2/src/getdata.c:403:5: warning: If memory allocation fails, then there is a possible null pointer dereference: shared_p [nullPointerOutOfMemory] dhcpd-pools-3.2/src/getdata.c:399:43: note: Assuming allocation function fails dhcpd-pools-3.2/src/getdata.c:399:43: note: Assignment 'state->shared_net_head->next=xcalloc(sizeof(struct shared_network_t),1)', assigned value is 0 dhcpd-pools-3.2/src/getdata.c:400:52: note: Assignment 'state->shared_net_head=state->shared_net_head->next', assigned value is 0 dhcpd-pools-3.2/src/getdata.c:401:14: note: shared_p is assigned 'state->shared_net_head' here. dhcpd-pools-3.2/src/getdata.c:403:5: note: Null pointer dereference dhcpd-pools-3.2/src/getdata.c:162:56: style: Parameter 'state' can be declared as pointer to const [constParameterPointer] dhcpd-pools-3.2/src/hash.c:67:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable v4 [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/src/hash.c:78:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable hh [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/src/hash.c:104:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable hh [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/src/hash.c:66:2: warning: If memory allocation fails, then there is a possible null pointer dereference: l [nullPointerOutOfMemory] dhcpd-pools-3.2/src/hash.c:64:13: note: Assuming allocation function fails dhcpd-pools-3.2/src/hash.c:64:13: note: Assignment 'l=xmalloc(sizeof(struct leases_t))', assigned value is 0 dhcpd-pools-3.2/src/hash.c:66:2: note: Null pointer dereference dhcpd-pools-3.2/src/hash.c:68:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: l [nullPointerOutOfMemory] dhcpd-pools-3.2/src/hash.c:64:13: note: Assuming allocation function fails dhcpd-pools-3.2/src/hash.c:64:13: note: Assignment 'l=xmalloc(sizeof(struct leases_t))', assigned value is 0 dhcpd-pools-3.2/src/hash.c:68:2: note: Null pointer dereference dhcpd-pools-3.2/src/hash.c:77:2: warning: If memory allocation fails, then there is a possible null pointer dereference: l [nullPointerOutOfMemory] dhcpd-pools-3.2/src/hash.c:75:13: note: Assuming allocation function fails dhcpd-pools-3.2/src/hash.c:75:13: note: Assignment 'l=xmalloc(sizeof(struct leases_t))', assigned value is 0 dhcpd-pools-3.2/src/hash.c:77:2: note: Null pointer dereference dhcpd-pools-3.2/src/hash.c:79:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: l [nullPointerOutOfMemory] dhcpd-pools-3.2/src/hash.c:75:13: note: Assuming allocation function fails dhcpd-pools-3.2/src/hash.c:75:13: note: Assignment 'l=xmalloc(sizeof(struct leases_t))', assigned value is 0 dhcpd-pools-3.2/src/hash.c:79:2: note: Null pointer dereference dhcpd-pools-3.2/src/hash.c:55:36: style: Parameter 'state' can be declared as pointer to const [constParameterPointer] dhcpd-pools-3.2/src/hash.c:55:84: style: Parameter 'addr' can be declared as pointer to const [constParameterPointer] dhcpd-pools-3.2/src/hash.c:86:49: style: Parameter 'state' can be declared as pointer to const [constParameterPointer] dhcpd-pools-3.2/src/hash.c:86:97: style: Parameter 'addr' can be declared as pointer to const [constParameterPointer] dhcpd-pools-3.2/src/mustach.c:294:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/src/mustach-dhcpd-pools.c:126:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_VERSION [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/src/mustach-dhcpd-pools.c:448:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/src/mustach-dhcpd-pools.c:473:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/src/mustach-dhcpd-pools.c:451:8: warning: Either the condition '(f=open(filename,O_RDONLY))<0' is redundant or fstat() argument nr 1 can have invalid value. The value is -1 but the valid values are '0:'. [invalidFunctionArg] dhcpd-pools-3.2/src/mustach-dhcpd-pools.c:448:37: note: Assuming that condition '(f=open(filename,O_RDONLY))<0' is not redundant dhcpd-pools-3.2/src/mustach-dhcpd-pools.c:451:8: note: Invalid argument dhcpd-pools-3.2/src/mustach-dhcpd-pools.c:453:11: warning: Either the condition '(f=open(filename,O_RDONLY))<0' is redundant or read() argument nr 1 can have invalid value. The value is -1 but the valid values are '0:'. [invalidFunctionArg] dhcpd-pools-3.2/src/mustach-dhcpd-pools.c:448:37: note: Assuming that condition '(f=open(filename,O_RDONLY))<0' is not redundant dhcpd-pools-3.2/src/mustach-dhcpd-pools.c:453:11: note: Invalid argument dhcpd-pools-3.2/src/mustach-dhcpd-pools.c:448:16: warning: Either the condition 'filename==NULL' is redundant or there is possible null pointer dereference: filename. [nullPointerRedundantCheck] dhcpd-pools-3.2/src/mustach-dhcpd-pools.c:446:15: note: Assuming that condition 'filename==NULL' is not redundant dhcpd-pools-3.2/src/mustach-dhcpd-pools.c:448:16: note: Null pointer dereference dhcpd-pools-3.2/src/mustach-dhcpd-pools.c:293:15: style: Variable 'e' can be declared as pointer to const [constVariablePointer] dhcpd-pools-3.2/src/mustach-dhcpd-pools.c:66:11: style: struct member 'expl::pad' is never used. [unusedStructMember] dhcpd-pools-3.2/src/mustach.c:206:10: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] dhcpd-pools-3.2/src/mustach.c:214:10: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] dhcpd-pools-3.2/lib/reallocarray.c:31:7: style: Comparing expression of type 'signed int' against value -9223372036854775808. Condition is always true. [compareValueOutOfTypeRangeError] dhcpd-pools-3.2/lib/reallocarray.c:31:7: style: Comparing expression of type 'signed int' against value -9223372036854775808. Condition is always false. [compareValueOutOfTypeRangeError] dhcpd-pools-3.2/lib/reallocarray.c:31:7: style: Checking if unsigned expression 'size' is less than zero. [unsignedLessThanZero] dhcpd-pools-3.2/lib/reallocarray.c:31:7: style: Checking if unsigned expression 'nmemb' is less than zero. [unsignedLessThanZero] dhcpd-pools-3.2/lib/reallocarray.c:31:7: style: Checking if unsigned expression '(1?0:((1?0:127)+(size)))-1' is less than zero. [unsignedLessThanZero] dhcpd-pools-3.2/lib/reallocarray.c:31:7: style: Checking if unsigned expression '(1?0:(size))-1' is less than zero. [unsignedLessThanZero] dhcpd-pools-3.2/lib/reallocarray.c:31:7: style: Checking if unsigned expression '(((1?0:(size))-1)<0)?~(((((1?0:(size))+1)<<((sizeof(size)*8)-2))-1)*2+1):((1?0:(size))+0)' is less than zero. [unsignedLessThanZero] dhcpd-pools-3.2/lib/reallocarray.c:31:7: style: Checking if unsigned expression '(1?0:((1?0:(size))-128))-1' is less than zero. [unsignedLessThanZero] dhcpd-pools-3.2/lib/reallocarray.c:31:7: style: Checking if unsigned expression '(((1?0:((1?0:(size))-128))-1)<0)?~(((((1?0:((1?0:(size))-128))+1)<<((sizeof((1?0:(size))-128)*8)-2))-1)*2+1):((1?0:((1?0:(size))-128))+0)' is less than zero. [unsignedLessThanZero] dhcpd-pools-3.2/lib/reallocarray.c:31:7: style: Checking if unsigned expression '(1?0:(nmemb))-1' is less than zero. [unsignedLessThanZero] dhcpd-pools-3.2/lib/reallocarray.c:31:7: style: Checking if unsigned expression '(1?0:((1?0:(nmemb))-128))-1' is less than zero. [unsignedLessThanZero] dhcpd-pools-3.2/lib/reallocarray.c:31:7: style: Checking if unsigned expression '(((1?0:((1?0:(nmemb))-128))-1)<0)?~(((((1?0:((1?0:(nmemb))-128))+1)<<((sizeof((1?0:(nmemb))-128)*8)-2))-1)*2+1):((1?0:((1?0:(nmemb))-128))+0)' is less than zero. [unsignedLessThanZero] dhcpd-pools-3.2/lib/reallocarray.c:31:7: style: Checking if unsigned expression '(1?0:((1?0:255)+(size)))-1' is less than zero. [unsignedLessThanZero] dhcpd-pools-3.2/lib/reallocarray.c:31:7: style: Checking if unsigned expression '(1?0:((1?0:(size))+0))-1' is less than zero. [unsignedLessThanZero] dhcpd-pools-3.2/lib/reallocarray.c:31:7: style: Checking if unsigned expression '(((1?0:((1?0:(size))+0))-1)<0)?~(((((1?0:((1?0:(size))+0))+1)<<((sizeof((1?0:(size))+0)*8)-2))-1)*2+1):((1?0:((1?0:(size))+0))+0)' is less than zero. [unsignedLessThanZero] dhcpd-pools-3.2/lib/reallocarray.c:31:7: style: Checking if unsigned expression '(1?0:((1?0:(nmemb))+0))-1' is less than zero. [unsignedLessThanZero] dhcpd-pools-3.2/lib/reallocarray.c:31:7: style: Checking if unsigned expression '(((1?0:((1?0:(nmemb))+0))-1)<0)?~(((((1?0:((1?0:(nmemb))+0))+1)<<((sizeof((1?0:(nmemb))+0)*8)-2))-1)*2+1):((1?0:((1?0:(nmemb))+0))+0)' is less than zero. [unsignedLessThanZero] dhcpd-pools-3.2/lib/reallocarray.c:31:7: style: Checking if unsigned expression '*(&nbytes)=((char)((unsigned int)(nmemb)*(unsigned int)(size)))' is less than zero. [unsignedLessThanZero] dhcpd-pools-3.2/lib/reallocarray.c:31:7: style: Unsigned expression '*(&nbytes)=((char)((unsigned int)(nmemb)*(unsigned int)(size)))' can't be negative so it is unnecessary to test it. [unsignedPositive] dhcpd-pools-3.2/lib/reallocarray.c:31:7: style: Checking if unsigned expression '(1?0:((1?0:32767)+(size)))-1' is less than zero. [unsignedLessThanZero] dhcpd-pools-3.2/lib/reallocarray.c:31:7: style: Checking if unsigned expression '(1?0:((1?0:(size))-32768))-1' is less than zero. [unsignedLessThanZero] dhcpd-pools-3.2/lib/reallocarray.c:31:7: style: Checking if unsigned expression '(((1?0:((1?0:(size))-32768))-1)<0)?~(((((1?0:((1?0:(size))-32768))+1)<<((sizeof((1?0:(size))-32768)*8)-2))-1)*2+1):((1?0:((1?0:(size))-32768))+0)' is less than zero. [unsignedLessThanZero] dhcpd-pools-3.2/lib/reallocarray.c:31:7: style: Checking if unsigned expression '(1?0:((1?0:(nmemb))-32768))-1' is less than zero. [unsignedLessThanZero] dhcpd-pools-3.2/lib/reallocarray.c:31:7: style: Checking if unsigned expression '(((1?0:((1?0:(nmemb))-32768))-1)<0)?~(((((1?0:((1?0:(nmemb))-32768))+1)<<((sizeof((1?0:(nmemb))-32768)*8)-2))-1)*2+1):((1?0:((1?0:(nmemb))-32768))+0)' is less than zero. [unsignedLessThanZero] dhcpd-pools-3.2/lib/reallocarray.c:31:7: style: Checking if unsigned expression '(1?0:((1?0:65535)+(size)))-1' is less than zero. [unsignedLessThanZero] dhcpd-pools-3.2/lib/reallocarray.c:31:7: style: Checking if unsigned expression '*(&nbytes)=((short)((unsigned int)(nmemb)*(unsigned int)(size)))' is less than zero. [unsignedLessThanZero] dhcpd-pools-3.2/lib/reallocarray.c:31:7: style: Unsigned expression '*(&nbytes)=((short)((unsigned int)(nmemb)*(unsigned int)(size)))' can't be negative so it is unnecessary to test it. [unsignedPositive] dhcpd-pools-3.2/lib/reallocarray.c:31:7: style: Checking if unsigned expression '(1?0:(*(&nbytes)))-1' is less than zero. [unsignedLessThanZero] dhcpd-pools-3.2/lib/reallocarray.c:31:7: style: Checking if unsigned expression '(1?0:((1?0:2147483647)+(size)))-1' is less than zero. [unsignedLessThanZero] dhcpd-pools-3.2/lib/reallocarray.c:31:7: style: Checking if unsigned expression '(1?0:((1?0:(size))+(-2147483647-1)))-1' is less than zero. [unsignedLessThanZero] dhcpd-pools-3.2/lib/reallocarray.c:31:7: style: Checking if unsigned expression '(((1?0:((1?0:(size))+(-2147483647-1)))-1)<0)?~(((((1?0:((1?0:(size))+(-2147483647-1)))+1)<<((sizeof((1?0:(size))+(-2147483647-1))*8)-2))-1)*2+1):((1?0:((1?0:(size))+(-2147483647-1)))+0)' is less than zero. [unsignedLessThanZero] dhcpd-pools-3.2/lib/reallocarray.c:31:7: style: Checking if unsigned expression '(1?0:((1?0:(nmemb))+(-2147483647-1)))-1' is less than zero. [unsignedLessThanZero] dhcpd-pools-3.2/lib/reallocarray.c:31:7: style: Checking if unsigned expression '(((1?0:((1?0:(nmemb))+(-2147483647-1)))-1)<0)?~(((((1?0:((1?0:(nmemb))+(-2147483647-1)))+1)<<((sizeof((1?0:(nmemb))+(-2147483647-1))*8)-2))-1)*2+1):((1?0:((1?0:(nmemb))+(-2147483647-1)))+0)' is less than zero. [unsignedLessThanZero] dhcpd-pools-3.2/lib/reallocarray.c:31:7: style: Checking if unsigned expression '(1?0:((1?0:4294967295)+(size)))-1' is less than zero. [unsignedLessThanZero] dhcpd-pools-3.2/lib/reallocarray.c:31:7: style: Checking if unsigned expression '(1?0:((1?0:9223372036854775807L)+(size)))-1' is less than zero. [unsignedLessThanZero] dhcpd-pools-3.2/lib/reallocarray.c:31:7: style: Checking if unsigned expression '(1?0:((1?0:(size))+(-9223372036854775807L-1L)))-1' is less than zero. [unsignedLessThanZero] dhcpd-pools-3.2/lib/reallocarray.c:31:7: style: Checking if unsigned expression '(((1?0:((1?0:(size))+(-9223372036854775807L-1L)))-1)<0)?~(((((1?0:((1?0:(size))+(-9223372036854775807L-1L)))+1)<<((sizeof((1?0:(size))+(-9223372036854775807L-1L))*8)-2))-1)*2+1):((1?0:((1?0:(size))+(-9223372036854775807L-1L)))+0)' is less than zero. [unsignedLessThanZero] dhcpd-pools-3.2/lib/reallocarray.c:31:7: style: Checking if unsigned expression '(1?0:((1?0:(nmemb))+(-9223372036854775807L-1L)))-1' is less than zero. [unsignedLessThanZero] dhcpd-pools-3.2/lib/reallocarray.c:31:7: style: Checking if unsigned expression '(((1?0:((1?0:(nmemb))+(-9223372036854775807L-1L)))-1)<0)?~(((((1?0:((1?0:(nmemb))+(-9223372036854775807L-1L)))+1)<<((sizeof((1?0:(nmemb))+(-9223372036854775807L-1L))*8)-2))-1)*2+1):((1?0:((1?0:(nmemb))+(-9223372036854775807L-1L)))+0)' is less than zero. [unsignedLessThanZero] dhcpd-pools-3.2/lib/reallocarray.c:31:7: style: Checking if unsigned expression '(1?0:((1?0:18446744073709551615UL)+(size)))-1' is less than zero. [unsignedLessThanZero] dhcpd-pools-3.2/lib/reallocarray.c:31:7: style: Checking if unsigned expression '(1?0:((1?0:18446744073709551615ULL)+(size)))-1' is less than zero. [unsignedLessThanZero] dhcpd-pools-3.2/src/other.c:133:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/src/other.c:159:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/src/other.c:173:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/src/other.c:226:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/src/other.c:301:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INET_ADDRSTRLEN [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/src/other.c:310:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INET6_ADDRSTRLEN [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/src/other.c:507:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/src/other.c:539:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/src/other.c:561:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_REALTIME [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/src/other.c:580:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/src/other.c:597:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/lib/reallocarray.c:31:7: warning:inconclusive: Found calculation inside sizeof(). [sizeofCalculation] dhcpd-pools-3.2/lib/reallocarray.c:31:7: error: Shifting signed 64-bit value by 63 bits is undefined behaviour [shiftTooManyBitsSigned] dhcpd-pools-3.2/lib/reallocarray.c:31:7: warning: Expression '-128' has a negative value. That is converted to an unsigned value and used in an unsigned calculation. [signConversion] dhcpd-pools-3.2/lib/reallocarray.c:31:7: warning: Expression '-32768' has a negative value. That is converted to an unsigned value and used in an unsigned calculation. [signConversion] dhcpd-pools-3.2/lib/reallocarray.c:31:7: warning: Expression '-2147483647-1' can have a negative value. That is converted to an unsigned value and used in an unsigned calculation. [signConversion] dhcpd-pools-3.2/lib/reallocarray.c:31:7: warning: Expression '-9223372036854775807L-1L' can have a negative value. That is converted to an unsigned value and used in an unsigned calculation. [signConversion] dhcpd-pools-3.2/src/other.c:527:24: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp_ranges [nullPointerOutOfMemory] dhcpd-pools-3.2/src/other.c:524:22: note: Assuming allocation function fails dhcpd-pools-3.2/src/other.c:524:22: note: Assignment 'tmp_ranges=xmalloc(sizeof(struct range_t)*state->num_ranges)', assigned value is 0 dhcpd-pools-3.2/src/other.c:527:24: note: Null pointer dereference dhcpd-pools-3.2/src/other.c:526:16: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] dhcpd-pools-3.2/src/other.c:524:22: note: Assuming allocation function fails dhcpd-pools-3.2/src/other.c:524:22: note: Assignment 'tmp_ranges=xmalloc(sizeof(struct range_t)*state->num_ranges)', assigned value is 0 dhcpd-pools-3.2/src/other.c:526:16: note: Null pointer addition dhcpd-pools-3.2/src/other.c:191:52: style: Parameter 'addr' can be declared as pointer to const. However it seems that 'cidr_last_v4' is a callback function, if 'addr' is declared with const you might also need to cast function pointer(s). [constParameterCallback] dhcpd-pools-3.2/src/other.c:82:15: note: You might need to cast the function pointer here dhcpd-pools-3.2/src/other.c:191:52: note: Parameter 'addr' can be declared as pointer to const dhcpd-pools-3.2/src/other.c:269:48: style: Parameter 'dst' can be declared as pointer to const. However it seems that 'copy_ipaddr_init' is a callback function, if 'dst' is declared with const you might also need to cast function pointer(s). [constParameterCallback] dhcpd-pools-3.2/src/other.c:103:17: note: You might need to cast the function pointer here dhcpd-pools-3.2/src/other.c:269:48: note: Parameter 'dst' can be declared as pointer to const dhcpd-pools-3.2/src/other.c:378:31: style: Parameter 'state' can be declared as pointer to const. However it seems that 'xstrstr_v4' is a callback function, if 'state' is declared with const you might also need to cast function pointer(s). [constParameterCallback] dhcpd-pools-3.2/src/other.c:83:13: note: You might need to cast the function pointer here dhcpd-pools-3.2/src/other.c:378:31: note: Parameter 'state' can be declared as pointer to const dhcpd-pools-3.2/src/other.c:433:31: style: Parameter 'state' can be declared as pointer to const. However it seems that 'xstrstr_v6' is a callback function, if 'state' is declared with const you might also need to cast function pointer(s). [constParameterCallback] dhcpd-pools-3.2/src/other.c:97:13: note: You might need to cast the function pointer here dhcpd-pools-3.2/src/other.c:433:31: note: Parameter 'state' can be declared as pointer to const dhcpd-pools-3.2/src/other.c:314:29: error: Uninitialized variable: &addr [uninitvar] dhcpd-pools-3.2/src/output.c:142:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/src/output.c:198:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/src/output.c:210:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/src/output.c:601:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_VERSION [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/src/output.c:652:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_STRING [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/src/output.c:1113:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable program_name [valueFlowBailoutIncompleteVar] dhcpd-pools-3.2/src/sort.c:152:30: style: Parameter 'r1' can be declared as pointer to const. However it seems that 'comp_cur' is a callback function, if 'r1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] dhcpd-pools-3.2/src/sort.c:237:10: note: You might need to cast the function pointer here dhcpd-pools-3.2/src/sort.c:152:30: note: Parameter 'r1' can be declared as pointer to const dhcpd-pools-3.2/src/sort.c:152:50: style: Parameter 'r2' can be declared as pointer to const. However it seems that 'comp_cur' is a callback function, if 'r2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] dhcpd-pools-3.2/src/sort.c:237:10: note: You might need to cast the function pointer here dhcpd-pools-3.2/src/sort.c:152:50: note: Parameter 'r2' can be declared as pointer to const dhcpd-pools-3.2/src/sort.c:161:34: style: Parameter 'r1' can be declared as pointer to const. However it seems that 'comp_percent' is a callback function, if 'r1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] dhcpd-pools-3.2/src/sort.c:239:10: note: You might need to cast the function pointer here dhcpd-pools-3.2/src/sort.c:161:34: note: Parameter 'r1' can be declared as pointer to const dhcpd-pools-3.2/src/sort.c:161:54: style: Parameter 'r2' can be declared as pointer to const. However it seems that 'comp_percent' is a callback function, if 'r2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] dhcpd-pools-3.2/src/sort.c:239:10: note: You might need to cast the function pointer here dhcpd-pools-3.2/src/sort.c:161:54: note: Parameter 'r2' can be declared as pointer to const dhcpd-pools-3.2/src/sort.c:170:34: style: Parameter 'r1' can be declared as pointer to const. However it seems that 'comp_touched' is a callback function, if 'r1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] dhcpd-pools-3.2/src/sort.c:241:10: note: You might need to cast the function pointer here dhcpd-pools-3.2/src/sort.c:170:34: note: Parameter 'r1' can be declared as pointer to const dhcpd-pools-3.2/src/sort.c:170:54: style: Parameter 'r2' can be declared as pointer to const. However it seems that 'comp_touched' is a callback function, if 'r2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] dhcpd-pools-3.2/src/sort.c:241:10: note: You might need to cast the function pointer here dhcpd-pools-3.2/src/sort.c:170:54: note: Parameter 'r2' can be declared as pointer to const dhcpd-pools-3.2/src/sort.c:179:29: style: Parameter 'r1' can be declared as pointer to const. However it seems that 'comp_tc' is a callback function, if 'r1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] dhcpd-pools-3.2/src/sort.c:243:10: note: You might need to cast the function pointer here dhcpd-pools-3.2/src/sort.c:179:29: note: Parameter 'r1' can be declared as pointer to const dhcpd-pools-3.2/src/sort.c:179:49: style: Parameter 'r2' can be declared as pointer to const. However it seems that 'comp_tc' is a callback function, if 'r2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] dhcpd-pools-3.2/src/sort.c:243:10: note: You might need to cast the function pointer here dhcpd-pools-3.2/src/sort.c:179:49: note: Parameter 'r2' can be declared as pointer to const dhcpd-pools-3.2/src/sort.c:188:33: style: Parameter 'r1' can be declared as pointer to const. However it seems that 'comp_tcperc' is a callback function, if 'r1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] dhcpd-pools-3.2/src/sort.c:245:10: note: You might need to cast the function pointer here dhcpd-pools-3.2/src/sort.c:188:33: note: Parameter 'r1' can be declared as pointer to const dhcpd-pools-3.2/src/sort.c:188:53: style: Parameter 'r2' can be declared as pointer to const. However it seems that 'comp_tcperc' is a callback function, if 'r2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] dhcpd-pools-3.2/src/sort.c:245:10: note: You might need to cast the function pointer here dhcpd-pools-3.2/src/sort.c:188:53: note: Parameter 'r2' can be declared as pointer to const dhcpd-pools-3.2/src/output.c:1128:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dhcpd-pools-3.2/src/output.c:1128:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dhcpd-pools-3.2/src/output.c:1128:3: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dhcpd-pools-3.2/src/output.c:1130:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dhcpd-pools-3.2/src/output.c:1132:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dhcpd-pools-3.2/src/output.c:1132:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dhcpd-pools-3.2/src/output.c:1132:3: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dhcpd-pools-3.2/src/output.c:1134:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dhcpd-pools-3.2/src/output.c:1167:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dhcpd-pools-3.2/src/output.c:1167:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dhcpd-pools-3.2/src/output.c:1167:3: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dhcpd-pools-3.2/src/output.c:1169:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dhcpd-pools-3.2/src/output.c:1171:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dhcpd-pools-3.2/src/output.c:1171:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dhcpd-pools-3.2/src/output.c:1171:3: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dhcpd-pools-3.2/src/output.c:1173:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dhcpd-pools-3.2/src/output.c:98:40: style: Parameter 'state' can be declared as pointer to const [constParameterPointer] dhcpd-pools-3.2/src/output.c:136:40: style: Parameter 'state' can be declared as pointer to const [constParameterPointer] dhcpd-pools-3.2/src/output.c:137:29: style: Parameter 'shared_p' can be declared as pointer to const [constParameterPointer] dhcpd-pools-3.2/src/output.c:180:39: style: Parameter 'state' can be declared as pointer to const [constParameterPointer] dhcpd-pools-3.2/src/output.c:180:70: style: Parameter 'oh' can be declared as pointer to const [constParameterPointer] dhcpd-pools-3.2/src/output.c:622:40: style: Parameter 'state' can be declared as pointer to const [constParameterPointer] diff: head dhcpd-pools-3.2/lib/c-ctype.h:29:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head dhcpd-pools-3.2/lib/error.c:142:5: error: #error Please port fcntl to your platform [preprocessorErrorDirective] head dhcpd-pools-3.2/lib/fpending.c:60:3: error: #error "Please port gnulib fpending.c to your platform!" [preprocessorErrorDirective] head dhcpd-pools-3.2/lib/fpurge.c:146:4: error: #error "Please port gnulib fpurge.c to your platform! Look at the definitions of fflush, setvbuf and ungetc on your system, then report this to bug-gnulib." [preprocessorErrorDirective] head dhcpd-pools-3.2/lib/freading.c:72:4: error: #error "Please port gnulib freading.c to your platform!" [preprocessorErrorDirective] head dhcpd-pools-3.2/lib/fseeko.c:111:4: error: #error "Please port gnulib fseeko.c to your platform! Look at the code in fseeko.c, then report this to bug-gnulib." [preprocessorErrorDirective] head dhcpd-pools-3.2/lib/getprogname.c:291:4: error: #error "getprogname module not ported to this OS" [preprocessorErrorDirective] head dhcpd-pools-3.2/lib/ialloc.h:28:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head dhcpd-pools-3.2/lib/stat-time.h:31:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head dhcpd-pools-3.2/lib/xalloc.h:31:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head dhcpd-pools-3.2/src/getdata.c:276:24: warning: Either the condition '!range_p' is redundant or there is possible null pointer dereference: range_p. [nullPointerRedundantCheck] dhcpd-pools-3.2/src/getdata.c:271:9: note: Assuming that condition '!range_p' is not redundant dhcpd-pools-3.2/src/getdata.c:276:24: note: Null pointer dereference 2.17.0 dhcpd-pools-3.2/src/other.c:526:16: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] dhcpd-pools-3.2/src/other.c:524:22: note: Assuming allocation function fails dhcpd-pools-3.2/src/other.c:524:22: note: Assignment 'tmp_ranges=xmalloc(sizeof(struct range_t)*state->num_ranges)', assigned value is 0 dhcpd-pools-3.2/src/other.c:526:16: note: Null pointer addition head dhcpd-pools-3.2/src/other.c:526:16: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] dhcpd-pools-3.2/src/other.c:524:22: note: Assuming allocation function fails dhcpd-pools-3.2/src/other.c:524:22: note: Assignment 'tmp_ranges=xmalloc(sizeof(struct range_t)*state->num_ranges)', assigned value is 0 dhcpd-pools-3.2/src/other.c:526:16: note: Null pointer addition DONE