2025-11-24 04:38 ftp://ftp.de.debian.org/debian/pool/main/s/sudo/sudo_1.9.17p2.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=openssl --library=bsd --library=python --library=zlib --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j4 platform: Linux-5.4.0-216-generic-x86_64-with-glibc2.29 python: 3.8.10 client-version: 1.3.69 compiler: g++ (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0 cppcheck: head 2.18.0 head-info: cb76e52 (2025-11-22 14:47:37 +0100) count: 2112 2098 elapsed-time: 31.3 38.4 head-timing-info: old-timing-info: head results: sudo-1.9.17p2/lib/eventlog/eventlog_conf.c:93:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_WARN [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/eventlog/eventlog_conf.c:102:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_WARN [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/eventlog/eventlog_free.c:85:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/eventlog/logwrap.c:45:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EVENTLOG_INDENT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/eventlog/regress/eventlog_store/store_json_test.c:41:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/eventlog/regress/eventlog_store/store_json_test.c:73:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/eventlog/regress/eventlog_store/store_json_test.c:106:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optind [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/eventlog/regress/eventlog_store/store_sudo_test.c:40:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/eventlog/regress/eventlog_store/store_sudo_test.c:64:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/eventlog/regress/eventlog_store/store_sudo_test.c:105:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optind [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/eventlog/parse_json.c:64:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/eventlog/parse_json.c:104:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/eventlog/parse_json.c:143:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/eventlog/parse_json.c:172:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/eventlog/parse_json.c:397:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/eventlog/parse_json.c:563:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALLTHROUGH [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/eventlog/parse_json.c:593:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/eventlog/parse_json.c:628:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/eventlog/parse_json.c:644:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JSON_OBJECT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/eventlog/parse_json.c:714:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JSON_BOOL [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/eventlog/parse_json.c:728:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JSON_NULL [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/eventlog/parse_json.c:742:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JSON_NUMBER [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/eventlog/parse_json.c:757:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JSON_STRING [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/eventlog/parse_json.c:788:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/eventlog/parse_json.c:868:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JSON_OBJECT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/eventlog/regress/logwrap/check_wrap.c:40:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/eventlog/regress/parse_json/check_parse_json.c:45:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/eventlog/regress/logwrap/check_wrap.c:65:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optind [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/eventlog/regress/parse_json/check_parse_json.c:109:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JSON_OBJECT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/eventlog/regress/parse_json/check_parse_json.c:127:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/eventlog/regress/parse_json/check_parse_json.c:159:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/eventlog/regress/parse_json/check_parse_json.c:191:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optind [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/eventlog/eventlog.c:92:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EVLOG_RAW [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/eventlog/eventlog.c:246:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EVLOG_CWD [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/eventlog/eventlog.c:261:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_DEBUG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/eventlog/eventlog.c:305:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/eventlog/eventlog.c:388:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_BLOCK [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/eventlog/eventlog.c:571:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JSON_NUMBER [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/eventlog/eventlog.c:644:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JSON_STRING [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/eventlog/eventlog.c:806:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/eventlog/eventlog.c:1090:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EVLOG_SUDO [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/eventlog/eventlog.c:1161:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EVLOG_FILE [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/eventlog/eventlog.c:1214:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EVLOG_JSON_COMPACT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/eventlog/eventlog.c:1284:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EVLOG_SUDO [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/eventlog/eventlog.c:1334:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EVLOG_SYSLOG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/eventlog/eventlog.c:1362:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EVLOG_SYSLOG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/eventlog/eventlog.c:1389:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EVLOG_SYSLOG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/eventlog/eventlog.c:1417:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EVLOG_ALERT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/eventlog/eventlog.c:1462:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EVLOG_SYSLOG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/eventlog/regress/logwrap/check_wrap.c:83:62: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] sudo-1.9.17p2/lib/eventlog/regress/logwrap/check_wrap.c:72:15: note: Assuming allocation function fails sudo-1.9.17p2/lib/eventlog/regress/logwrap/check_wrap.c:72:15: note: Assignment 'fp=fopen(infile,"r")', assigned value is 0 sudo-1.9.17p2/lib/eventlog/regress/logwrap/check_wrap.c:83:62: note: Null pointer dereference sudo-1.9.17p2/lib/fuzzstub/fuzzstub.c:76:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/iolog/host_port.c:60:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/fuzzstub/fuzzstub.c:56:22: style: Parameter 'argv' can be declared as const array [constParameter] sudo-1.9.17p2/lib/iolog/iolog_clearerr.c:44:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/iolog/iolog_close.c:76:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/iolog/iolog_conf.c:57:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SESSID_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/iolog/iolog_conf.c:76:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SESSID_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/iolog/iolog_conf.c:95:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/iolog/iolog_conf.c:109:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/iolog/iolog_conf.c:121:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/iolog/iolog_conf.c:144:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/iolog/iolog_conf.c:155:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/iolog/iolog_filter.c:86:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/iolog/iolog_filter.c:111:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/iolog/iolog_filter.c:138:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/iolog/iolog_flush.c:60:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/iolog/iolog_filter.c:162:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/iolog/iolog_filter.c:209:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/iolog/iolog_gets.c:53:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/iolog/iolog_filter.c:205:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: copy [nullPointerOutOfMemory] sudo-1.9.17p2/lib/iolog/iolog_filter.c:200:15: note: Assuming allocation function fails sudo-1.9.17p2/lib/iolog/iolog_filter.c:200:15: note: Assignment 'copy=malloc(len+1)', assigned value is 0 sudo-1.9.17p2/lib/iolog/iolog_filter.c:205:9: note: Null pointer dereference sudo-1.9.17p2/lib/iolog/iolog_filter.c:206:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: copy [nullPointerOutOfMemory] sudo-1.9.17p2/lib/iolog/iolog_filter.c:200:15: note: Assuming allocation function fails sudo-1.9.17p2/lib/iolog/iolog_filter.c:200:15: note: Assignment 'copy=malloc(len+1)', assigned value is 0 sudo-1.9.17p2/lib/iolog/iolog_filter.c:206:2: note: Null pointer dereference sudo-1.9.17p2/lib/iolog/iolog_filter.c:210:32: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: copy [nullPointerOutOfMemory] sudo-1.9.17p2/lib/iolog/iolog_filter.c:200:15: note: Assuming allocation function fails sudo-1.9.17p2/lib/iolog/iolog_filter.c:200:15: note: Assignment 'copy=malloc(len+1)', assigned value is 0 sudo-1.9.17p2/lib/iolog/iolog_filter.c:210:32: note: Null pointer dereference sudo-1.9.17p2/lib/iolog/iolog_filter.c:236:10: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: copy [nullPointerOutOfMemory] sudo-1.9.17p2/lib/iolog/iolog_filter.c:230:16: note: Assuming allocation function fails sudo-1.9.17p2/lib/iolog/iolog_filter.c:230:16: note: Assignment 'copy=malloc(len)', assigned value is 0 sudo-1.9.17p2/lib/iolog/iolog_filter.c:236:10: note: Null pointer dereference sudo-1.9.17p2/lib/iolog/iolog_filter.c:163:19: error: Uninitialized variable: filt->pattern [uninitvar] sudo-1.9.17p2/lib/iolog/iolog_legacy.c:88:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIME_T_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:57:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:111:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:170:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JSON_NUMBER [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:119:16: warning: Either the condition 'fd!=-1' is redundant or fchown() argument nr 1 can have invalid value. The value is -1 but the valid values are '0:'. [invalidFunctionArg] sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:115:9: note: Assuming that condition 'fd!=-1' is not redundant sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:119:16: note: Invalid argument sudo-1.9.17p2/lib/iolog/iolog_mkdtemp.c:62:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACCESSPERMS [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/iolog/iolog_mkdirs.c:61:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/iolog/iolog_mkpath.c:62:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_INFO [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/iolog/iolog_nextid.c:61:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/iolog/iolog_open.c:60:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/iolog/iolog_openat.c:54:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRWXG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/iolog/iolog_read.c:51:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SSIZE_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/iolog/iolog_path.c:52:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/iolog/iolog_seek.c:68:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/iolog/iolog_timing.c:73:39: error: syntax error [syntaxError] sudo-1.9.17p2/lib/iolog/iolog_path.c:52:17: style: Variable 'pathend' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/lib/iolog/iolog_util.c:69:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/iolog/iolog_write.c:51:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SSIZE_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/iolog/regress/fuzz/fuzz_iolog_json.c:118:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/iolog/regress/fuzz/fuzz_iolog_legacy.c:116:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/iolog/regress/fuzz/fuzz_iolog_timing.c:89:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/iolog/regress/fuzz/fuzz_iolog_json.c:67:28: style: Parameter 'replies' can be declared as const array. However it seems that 'fuzz_conversation' is a callback function, if 'replies' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/lib/iolog/regress/fuzz/fuzz_iolog_json.c:99:29: note: You might need to cast the function pointer here sudo-1.9.17p2/lib/iolog/regress/fuzz/fuzz_iolog_json.c:67:28: note: Parameter 'replies' can be declared as const array sudo-1.9.17p2/lib/iolog/regress/fuzz/fuzz_iolog_json.c:67:66: style: Parameter 'callback' can be declared as pointer to const. However it seems that 'fuzz_conversation' is a callback function, if 'callback' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/lib/iolog/regress/fuzz/fuzz_iolog_json.c:99:29: note: You might need to cast the function pointer here sudo-1.9.17p2/lib/iolog/regress/fuzz/fuzz_iolog_json.c:67:66: note: Parameter 'callback' can be declared as pointer to const sudo-1.9.17p2/lib/iolog/regress/fuzz/fuzz_iolog_legacy.c:67:28: style: Parameter 'replies' can be declared as const array. However it seems that 'fuzz_conversation' is a callback function, if 'replies' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/lib/iolog/regress/fuzz/fuzz_iolog_legacy.c:99:29: note: You might need to cast the function pointer here sudo-1.9.17p2/lib/iolog/regress/fuzz/fuzz_iolog_legacy.c:67:28: note: Parameter 'replies' can be declared as const array sudo-1.9.17p2/lib/iolog/regress/fuzz/fuzz_iolog_legacy.c:67:66: style: Parameter 'callback' can be declared as pointer to const. However it seems that 'fuzz_conversation' is a callback function, if 'callback' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/lib/iolog/regress/fuzz/fuzz_iolog_legacy.c:99:29: note: You might need to cast the function pointer here sudo-1.9.17p2/lib/iolog/regress/fuzz/fuzz_iolog_legacy.c:67:66: note: Parameter 'callback' can be declared as pointer to const sudo-1.9.17p2/lib/iolog/regress/fuzz/fuzz_iolog_timing.c:48:28: style: Parameter 'replies' can be declared as const array. However it seems that 'fuzz_conversation' is a callback function, if 'replies' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/lib/iolog/regress/fuzz/fuzz_iolog_timing.c:82:29: note: You might need to cast the function pointer here sudo-1.9.17p2/lib/iolog/regress/fuzz/fuzz_iolog_timing.c:48:28: note: Parameter 'replies' can be declared as const array sudo-1.9.17p2/lib/iolog/regress/fuzz/fuzz_iolog_timing.c:48:66: style: Parameter 'callback' can be declared as pointer to const. However it seems that 'fuzz_conversation' is a callback function, if 'callback' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/lib/iolog/regress/fuzz/fuzz_iolog_timing.c:82:29: note: You might need to cast the function pointer here sudo-1.9.17p2/lib/iolog/regress/fuzz/fuzz_iolog_timing.c:48:66: note: Parameter 'callback' can be declared as pointer to const sudo-1.9.17p2/lib/iolog/regress/host_port/host_port_test.c:93:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/iolog/regress/iolog_filter/check_iolog_filter.c:52:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/iolog/regress/iolog_mkpath/check_iolog_mkpath.c:80:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/iolog/regress/iolog_mkpath/check_iolog_mkpath.c:84:5: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] sudo-1.9.17p2/lib/iolog/regress/iolog_mkpath/check_iolog_mkpath.c:85:5: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] sudo-1.9.17p2/lib/iolog/regress/iolog_filter/check_iolog_filter.c:189:10: style: Variable 'dfd' is assigned a value that is never used. [unreadVariable] sudo-1.9.17p2/lib/eventlog/eventlog.c:1037:3: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] sudo-1.9.17p2/lib/eventlog/eventlog.c:783:53: style: Parameter 'v' can be declared as pointer to const. However it seems that 'default_json_cb' is a callback function, if 'v' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/lib/eventlog/eventlog.c:801:12: note: You might need to cast the function pointer here sudo-1.9.17p2/lib/eventlog/eventlog.c:783:53: note: Parameter 'v' can be declared as pointer to const sudo-1.9.17p2/lib/eventlog/eventlog.c:1152:38: style: Variable 'timestr' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/lib/eventlog/eventlog.c:1377:22: style: Parameter 'alert_time' can be declared as pointer to const. However it seems that 'eventlog_alert' is a callback function, if 'alert_time' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/lib/eventlog/eventlog.c:1383:16: note: You might need to cast the function pointer here sudo-1.9.17p2/lib/eventlog/eventlog.c:1377:22: note: Parameter 'alert_time' can be declared as pointer to const sudo-1.9.17p2/lib/eventlog/eventlog.c:1404:22: style: Parameter 'event_time' can be declared as pointer to const. However it seems that 'eventlog_mail' is a callback function, if 'event_time' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/lib/eventlog/eventlog.c:1410:16: note: You might need to cast the function pointer here sudo-1.9.17p2/lib/eventlog/eventlog.c:1404:22: note: Parameter 'event_time' can be declared as pointer to const sudo-1.9.17p2/lib/iolog/regress/iolog_timing/check_iolog_timing.c:120:57: error: syntax error [syntaxError] sudo-1.9.17p2/lib/iolog/regress/iolog_path/check_iolog_path.c:50:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/iolog/regress/iolog_path/check_iolog_path.c:131:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/iolog/regress/iolog_path/check_iolog_path.c:193:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/iolog/regress/iolog_path/check_iolog_path.c:222:38: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] sudo-1.9.17p2/lib/iolog/regress/iolog_path/check_iolog_path.c:203:15: note: Assuming allocation function fails sudo-1.9.17p2/lib/iolog/regress/iolog_path/check_iolog_path.c:203:15: note: Assignment 'fp=fopen(argv[0],"r")', assigned value is 0 sudo-1.9.17p2/lib/iolog/regress/iolog_path/check_iolog_path.c:222:38: note: Null pointer dereference sudo-1.9.17p2/lib/iolog/regress/iolog_path/check_iolog_path.c:129:45: style: Parameter 'tdir_out' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/lib/iolog/regress/iolog_path/check_iolog_path.c:129:61: style: Parameter 'tfile_out' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/lib/util/arc4random_buf.c:55:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALLTHROUGH [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:13:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLIENT_MESSAGE__INIT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:19:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable client_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:26:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable client_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:33:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable client_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:43:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable client_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:52:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable client_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:58:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIME_SPEC__INIT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:64:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable time_spec__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:71:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable time_spec__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:78:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable time_spec__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:88:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable time_spec__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:97:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable time_spec__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:103:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IO_BUFFER__INIT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:109:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable io_buffer__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:116:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable io_buffer__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:123:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable io_buffer__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:133:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable io_buffer__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:142:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable io_buffer__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:148:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INFO_MESSAGE__STRING_LIST__INIT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:154:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INFO_MESSAGE__NUMBER_LIST__INIT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:160:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INFO_MESSAGE__INIT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:166:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable info_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:173:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable info_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:180:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable info_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:190:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable info_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:199:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable info_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:205:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACCEPT_MESSAGE__INIT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:211:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable accept_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:218:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable accept_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:225:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable accept_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:235:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable accept_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:244:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable accept_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:250:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REJECT_MESSAGE__INIT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:256:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable reject_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:263:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable reject_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:270:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable reject_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:280:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable reject_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:289:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable reject_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:295:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXIT_MESSAGE__INIT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:301:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable exit_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:308:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable exit_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:315:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable exit_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:325:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable exit_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:334:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable exit_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:340:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ALERT_MESSAGE__INIT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:346:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable alert_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:353:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable alert_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:360:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable alert_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:370:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable alert_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:379:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable alert_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:385:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RESTART_MESSAGE__INIT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:391:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable restart_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:398:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable restart_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:405:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable restart_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:415:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable restart_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:424:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable restart_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:430:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CHANGE_WINDOW_SIZE__INIT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:436:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable change_window_size__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:443:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable change_window_size__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:450:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable change_window_size__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:460:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable change_window_size__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:469:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable change_window_size__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:475:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COMMAND_SUSPEND__INIT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/arc4random_uniform.c:59:21: style: Opposite expression on both sides of '%'. [oppositeExpression] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:481:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable command_suspend__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:488:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable command_suspend__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:495:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable command_suspend__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:505:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable command_suspend__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:514:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable command_suspend__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:520:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLIENT_HELLO__INIT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:526:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable client_hello__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:533:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable client_hello__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:540:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable client_hello__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:550:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable client_hello__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:559:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable client_hello__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:565:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SERVER_MESSAGE__INIT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:571:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable server_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:578:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable server_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:585:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable server_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:595:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable server_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:604:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable server_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:610:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SERVER_HELLO__INIT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:616:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable server_hello__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:623:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable server_hello__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:630:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable server_hello__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:640:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable server_hello__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:649:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable server_hello__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:663:7: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:675:7: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:687:7: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:699:7: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:711:7: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:723:7: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:735:7: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:747:7: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:759:7: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:771:7: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:783:7: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:795:7: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:807:7: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:997:7: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:1047:7: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:1059:7: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:1071:7: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:1083:7: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:1611:7: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:1623:7: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:1635:7: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:1647:7: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] sudo-1.9.17p2/lib/logsrv/log_server.pb-c.c:1659:7: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] sudo-1.9.17p2/lib/util/cfmakeraw.c:51:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IGNBRK [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/closefrom.c:77:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _SC_OPEN_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/digest.c:101:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/digest.c:120:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/digest.c:130:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/digest.c:161:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/digest.c:171:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/digest_gcrypt.c:55:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GCRY_MD_SHA224 [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/digest_gcrypt.c:77:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/digest_gcrypt.c:115:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/digest_gcrypt.c:125:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/digest_gcrypt.c:155:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/digest_gcrypt.c:166:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/digest_openssl.c:63:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/digest_openssl.c:106:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/dup3.c:40:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/digest_openssl.c:118:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/digest_openssl.c:148:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/digest_openssl.c:158:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/event.c:537:58: error: syntax error: <) [syntaxError] sudo-1.9.17p2/lib/util/event_poll.c:53:74: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pollfd [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/event_poll.c:72:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/event_poll.c:84:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RLIMIT_NOFILE [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/event_poll.c:151:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fd [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/event_poll.c:195:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_EVLOOP_NONBLOCK [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/event_select.c:49:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NFDBITS [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/event_select.c:73:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/event_select.c:83:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NFDBITS [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/event_select.c:142:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_EV_READ [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/event_select.c:203:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_EVLOOP_NONBLOCK [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/event_poll.c:146:67: style: Parameter 'ev' can be declared as pointer to const. However it seems that 'sudo_ev_del_impl' is a callback function, if 'ev' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/lib/util/event_poll.c:148:16: note: You might need to cast the function pointer here sudo-1.9.17p2/lib/util/event_poll.c:146:67: note: Parameter 'ev' can be declared as pointer to const sudo-1.9.17p2/lib/util/event_poll.c:183:31: style: Variable 'timeout' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/lib/util/event_select.c:190:31: style: Variable 'timeout' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/lib/util/fchmodat.c:40:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AT_SYMLINK_NOFOLLOW [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/fatal.c:69:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/fatal.c:81:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/fatal.c:102:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/fatal.c:121:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/fatal.c:137:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/fatal.c:186:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/fatal.c:266:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/fatal.c:290:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:154:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PROTOBUF_C_VERSION [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/fchownat.c:37:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AT_FDCWD [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:160:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PROTOBUF_C_VERSION_NUMBER [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:500:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PROTOBUF_C_TYPE_MESSAGE [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:529:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PROTOBUF_C_TYPE_MESSAGE [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:637:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PROTOBUF_C_FIELD_FLAG_PACKED [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:728:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:1112:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PROTOBUF_C_WIRE_TYPE_VARINT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:1178:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PROTOBUF_C_TYPE_MESSAGE [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:1207:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PROTOBUF_C_TYPE_MESSAGE [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:1271:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable protobuf_c_boolean [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:1340:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PROTOBUF_C_TYPE_SFIXED32 [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:1377:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PROTOBUF_C_FIELD_FLAG_PACKED [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:1492:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:1571:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PROTOBUF_C_WIRE_TYPE_VARINT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:1682:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PROTOBUF_C_TYPE_MESSAGE [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:1711:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PROTOBUF_C_TYPE_MESSAGE [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:1930:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PROTOBUF_C_FIELD_FLAG_PACKED [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:1979:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:2049:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable start_value [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:2197:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable label [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:2523:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PROTOBUF_C_WIRE_TYPE_VARINT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:2896:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PROTOBUF_C_TYPE_MESSAGE [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:2927:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PROTOBUF_C_FIELD_FLAG_ONEOF [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:2968:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable default_value [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:3073:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:3350:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:3441:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:3557:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PROTOBUF_C__SERVICE_DESCRIPTOR_MAGIC [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:3585:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:3670:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/fnmatch.c:137:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cclasses [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/fnmatch.c:162:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FNM_CASEFOLD [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/fnmatch.c:298:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FNM_NOESCAPE [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/fatal.c:292:15: style: Condition 'prev==NULL' is always true [knownConditionTrueFalse] sudo-1.9.17p2/lib/util/fatal.c:287:45: note: Assignment 'prev=NULL', assigned value is 0 sudo-1.9.17p2/lib/util/fatal.c:292:15: note: Condition 'prev==NULL' is always true sudo-1.9.17p2/lib/util/fatal.c:267:18: error: Uninitialized variable: cb->func [uninitvar] sudo-1.9.17p2/lib/util/fatal.c:291:10: error: Uninitialized variable: cb->func [uninitvar] sudo-1.9.17p2/lib/util/fstatat.c:39:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AT_FDCWD [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/getaddrinfo.c:191:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_in [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/getaddrinfo.c:239:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/getaddrinfo.c:287:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/getaddrinfo.c:360:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EAI_BADFLAGS [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/getaddrinfo.c:254:19: portability: Non reentrant function 'getservbyname' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getservbyname_r'. [prohibitedgetservbynameCalled] sudo-1.9.17p2/lib/util/getaddrinfo.c:297:16: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] sudo-1.9.17p2/lib/util/getaddrinfo.c:202:13: error: Mismatching allocation and deallocation: ai [mismatchAllocDealloc] sudo-1.9.17p2/lib/util/getaddrinfo.c:188:10: note: Mismatching allocation and deallocation: ai sudo-1.9.17p2/lib/util/getaddrinfo.c:202:13: note: Mismatching allocation and deallocation: ai sudo-1.9.17p2/lib/util/getaddrinfo.c:202:13: error: Memory leak: ai.ai_addr [memleak] sudo-1.9.17p2/lib/util/getaddrinfo.c:231:21: style: Variable 'servent' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/lib/util/getdelim.c:43:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINE_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/getdelim.c:39:16: style: Variable 'ep' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/lib/util/getentropy.c:126:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/getentropy.c:140:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/getentropy.c:226:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/getentropy.c:336:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/getentropy.c:369:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/getentropy.c:416:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/getentropy.c:145:10: style: Condition 'ret!=-1' is always false [knownConditionTrueFalse] sudo-1.9.17p2/lib/util/getentropy.c:144:28: note: Calling function 'getentropy_getrandom' returns -1 sudo-1.9.17p2/lib/util/getentropy.c:144:28: note: Assignment 'ret=getentropy_getrandom(buf,len)', assigned value is -1 sudo-1.9.17p2/lib/util/getentropy.c:145:10: note: Condition 'ret!=-1' is always false sudo-1.9.17p2/lib/util/getentropy.c:154:10: style: Condition 'ret!=-1' is always false [knownConditionTrueFalse] sudo-1.9.17p2/lib/util/getentropy.c:153:25: note: Calling function 'getentropy_sysctl' returns -1 sudo-1.9.17p2/lib/util/getentropy.c:153:25: note: Assignment 'ret=getentropy_sysctl(buf,len)', assigned value is -1 sudo-1.9.17p2/lib/util/getentropy.c:154:10: note: Condition 'ret!=-1' is always false sudo-1.9.17p2/lib/util/getentropy.c:208:15: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/lib/util/getentropy.c:334:25: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/lib/util/getentropy.c:367:28: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/lib/util/getentropy.c:429:12: style: Unused variable: ii [unusedVariable] sudo-1.9.17p2/lib/util/getgrouplist.c:467:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _SC_NGROUPS_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/getgrouplist.c:484:19: portability: Non reentrant function 'getgrent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrent_r'. [prohibitedgetgrentCalled] sudo-1.9.17p2/lib/util/getgrouplist.c:462:19: style: Variable 'grp' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/lib/util/getopt_long.c:240:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/getusershell.c:69:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PARSELN_CONT_IGN [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/getusershell.c:106:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/getusershell.c:124:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/getusershell.c:91:2: error: Used file that is not opened. [useClosedFile] sudo-1.9.17p2/lib/util/gidlist.c:64:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GETGROUPS_T [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/getopt_long.c:368:8: style: Variable 'oli' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/lib/util/gmtime_r.c:43:15: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] sudo-1.9.17p2/lib/util/gmtime_r.c:41:16: style: Variable 'tm' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/lib/util/inet_ntop.c:80:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/inet_ntop.c:223:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/glob.c:171:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/inet_pton.c:246:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/glob.c:251:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/glob.c:357:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GLOB_TILDE [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/glob.c:429:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cclasses [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/glob.c:456:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/glob.c:557:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/glob.c:588:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GLOB_LIMIT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/glob.c:648:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/glob.c:734:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SSIZE_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/glob.c:830:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NCCLASSES [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/glob.c:882:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/glob.c:898:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/glob.c:908:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:0:0: debug: ValueFlow maximum iterations exceeded [valueFlowMaxIterations] sudo-1.9.17p2/lib/util/inet_pton.c:113:14: error: Uninitialized variable: tmp [uninitvar] sudo-1.9.17p2/lib/util/inet_pton.c:110:13: note: Assuming condition is false sudo-1.9.17p2/lib/util/inet_pton.c:113:14: note: Uninitialized variable: tmp sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:2574:14: style: Condition '*pstr!=NULL' is always true [knownConditionTrueFalse] sudo-1.9.17p2/lib/util/json.c:58:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/json.c:200:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/json.c:225:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:2303:14: style: Variable 'e_data' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:2305:14: style: Variable 'l_data' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:2320:11: style: Variable 'e_str' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:2321:11: style: Variable 'l_str' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:2759:45: style: Parameter 'scanned_member' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:3460:12: style: Variable 'quantity' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:3481:26: style: Variable 'bd' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:3492:23: style: Variable 'submessage' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:3498:11: style: Variable 'string' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:3502:25: style: Variable 'has' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:3503:26: style: Variable 'bd' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/lib/util/json.c:416:45: style: Parameter 'jsonc' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/lib/util/json.c:422:45: style: Parameter 'jsonc' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:1906:7: style: Variable 'rv' is assigned a value that is never used. [unreadVariable] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:2783:28: style: Variable '((uint32_t*)array)[i]' is assigned a value that is never used. [unreadVariable] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:2796:28: style: Variable '((uint64_t*)array)[i]' is assigned a value that is never used. [unreadVariable] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:2809:33: style: Variable '((int32_t*)array)[count++]' is assigned a value that is never used. [unreadVariable] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:2821:33: style: Variable '((int32_t*)array)[count++]' is assigned a value that is never used. [unreadVariable] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:2833:34: style: Variable '((uint32_t*)array)[count++]' is assigned a value that is never used. [unreadVariable] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:2846:33: style: Variable '((int64_t*)array)[count++]' is assigned a value that is never used. [unreadVariable] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:2859:33: style: Variable '((int64_t*)array)[count++]' is assigned a value that is never used. [unreadVariable] sudo-1.9.17p2/lib/protobuf-c/protobuf-c.c:2871:44: style: Variable '((protobuf_c_boolean*)array)[count++]' is assigned a value that is never used. [unreadVariable] sudo-1.9.17p2/lib/util/localtime_r.c:43:15: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] sudo-1.9.17p2/lib/util/localtime_r.c:41:16: style: Variable 'tm' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/lib/util/locking.c:113:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_INFO [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/lbuf.c:55:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/lbuf.c:69:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/lbuf.c:78:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/lbuf.c:127:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALLTHROUGH [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/lbuf.c:171:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LBUF_ESC_CNTRL [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/lbuf.c:308:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/lbuf.c:433:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/lbuf.c:480:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/glob.c:374:15: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] sudo-1.9.17p2/lib/util/glob.c:383:14: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] sudo-1.9.17p2/lib/util/glob.c:255:3: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] sudo-1.9.17p2/lib/util/glob.c:264:5: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] sudo-1.9.17p2/lib/util/glob.c:289:5: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] sudo-1.9.17p2/lib/util/glob.c:315:6: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] sudo-1.9.17p2/lib/util/glob.c:322:6: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] sudo-1.9.17p2/lib/util/glob.c:364:3: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] sudo-1.9.17p2/lib/util/glob.c:391:3: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] sudo-1.9.17p2/lib/util/glob.c:395:3: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] sudo-1.9.17p2/lib/util/glob.c:689:4: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] sudo-1.9.17p2/lib/util/glob.c:762:3: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] sudo-1.9.17p2/lib/util/glob.c:350:103: style: Parameter 'pglob' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/lib/util/glob.c:352:17: style: Variable 'pwd' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/lib/util/glob.c:422:17: style: Variable 'cc' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/lib/util/glob.c:671:18: style: Variable 'sc' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/lib/util/glob.c:796:36: style: Parameter 'patend' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/lib/util/glob.c:880:17: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/lib/util/glob.c:896:25: style: Parameter 'fn' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/lib/util/glob.c:906:24: style: Parameter 'fn' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/lib/util/glob.c:737:17: warning:inconclusive: Division of result of sizeof() on pointer type. [divideSizeof] sudo-1.9.17p2/lib/util/mkdir_parents.c:87:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/mkdirat.c:38:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AT_FDCWD [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/mksiglist.c:53:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sudo_sys_siglist [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/mksiglist.c:41:22: style: Parameter 'argv' can be declared as const array [constParameter] sudo-1.9.17p2/lib/util/mksigname.c:54:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sudo_sys_signame [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/mksigname.c:42:22: style: Parameter 'argv' can be declared as const array [constParameter] sudo-1.9.17p2/lib/util/mktemp.c:70:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/mktemp.c:126:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AT_FDCWD [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/mmap_alloc.c:69:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/mktemp.c:156:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AT_FDCWD [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/mmap_alloc.c:98:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/mktemp.c:170:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AT_FDCWD [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/mmap_alloc.c:114:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/mmap_alloc.c:137:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PROT_READ [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/mmap_alloc.c:155:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/mmap_alloc.c:85:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ulp [nullPointerOutOfMemory] sudo-1.9.17p2/lib/util/mmap_alloc.c:72:15: note: Assuming allocation function fails sudo-1.9.17p2/lib/util/mmap_alloc.c:72:15: note: Assignment 'ptr=mmap(NULL,size,PROT_READ|PROT_WRITE,MAP_PRIVATE,fd,0)', assigned value is 0 sudo-1.9.17p2/lib/util/mmap_alloc.c:84:9: note: ulp is assigned '(unsigned long*)ptr' here. sudo-1.9.17p2/lib/util/mmap_alloc.c:85:5: note: Null pointer dereference sudo-1.9.17p2/lib/util/mmap_alloc.c:153:17: style: Variable 'ulp' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/lib/util/multiarch.c:99:75: style: Parameter 'sb' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/lib/util/lbuf.c:484:38: style: Parameter 'lbuf' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/lib/util/openat.c:37:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AT_FDCWD [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/nanosleep.c:63:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/pipe2.c:39:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CLOEXEC [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/parseln.c:72:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PARSELN_COMM_BOL [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/rcstr.c:102:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/rcstr.c:52:13: style: Condition 'dst!=NULL' is always false [knownConditionTrueFalse] sudo-1.9.17p2/lib/util/rcstr.c:51:27: note: Calling function 'sudo_rcstr_alloc' returns 0 sudo-1.9.17p2/lib/util/rcstr.c:51:27: note: Assignment 'dst=sudo_rcstr_alloc(len)', assigned value is 0 sudo-1.9.17p2/lib/util/rcstr.c:52:13: note: Condition 'dst!=NULL' is always false sudo-1.9.17p2/lib/util/reallocarray.c:50:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/realpath.c:61:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/regress/closefrom/closefrom_test.c:52:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/regex.c:100:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_BADRPT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/regex.c:151:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_EXTENDED [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/realpath.c:140:6: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] sudo-1.9.17p2/lib/util/regress/fnmatch/fnm_test.c:27:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/regress/digest/digest_test.c:1164:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/regress/fnmatch/fnm_test.c:60:9: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] sudo-1.9.17p2/lib/util/regex.c:85:21: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: cp++ [nullPointerOutOfMemory] sudo-1.9.17p2/lib/util/regex.c:171:15: note: Assuming allocation function fails sudo-1.9.17p2/lib/util/regex.c:171:15: note: Assignment 'copy=strdup(pattern+4)', assigned value is 0 sudo-1.9.17p2/lib/util/regex.c:178:12: note: Assignment 'pattern=copy', assigned value is 0 sudo-1.9.17p2/lib/util/regex.c:181:29: note: Calling function 'check_pattern', 1st argument 'pattern' value is 0 sudo-1.9.17p2/lib/util/regex.c:81:22: note: Assignment 'cp=pattern', assigned value is 0 sudo-1.9.17p2/lib/util/regex.c:85:21: note: Null pointer dereference sudo-1.9.17p2/lib/util/regex.c:85:21: error:inconclusive: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] sudo-1.9.17p2/lib/util/regex.c:171:15: note: Assuming allocation function fails sudo-1.9.17p2/lib/util/regex.c:171:15: note: Assignment 'copy=strdup(pattern+4)', assigned value is 0 sudo-1.9.17p2/lib/util/regex.c:178:12: note: Assignment 'pattern=copy', assigned value is 0 sudo-1.9.17p2/lib/util/regex.c:181:29: note: Calling function 'check_pattern', 1st argument 'pattern' value is 0 sudo-1.9.17p2/lib/util/regex.c:81:22: note: Assignment 'cp=pattern', assigned value is 0 sudo-1.9.17p2/lib/util/regex.c:85:21: note: Null pointer addition sudo-1.9.17p2/lib/util/regress/fuzz/fuzz_sudo_conf.c:96:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_CONF_ALL [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/regress/getdelim/getdelim_test.c:170:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/regress/getgrouplist/getgids.c:62:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/regress/getdelim/getdelim_test.c:174:5: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] sudo-1.9.17p2/lib/util/regress/getdelim/getdelim_test.c:175:5: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] sudo-1.9.17p2/lib/util/regress/fuzz/fuzz_sudo_conf.c:121:13: style: Redundant initialization for 'plugins'. The initialized value is overwritten before it is read. [redundantInitialization] sudo-1.9.17p2/lib/util/regress/fuzz/fuzz_sudo_conf.c:69:38: note: plugins is initialized sudo-1.9.17p2/lib/util/regress/fuzz/fuzz_sudo_conf.c:121:13: note: plugins is overwritten sudo-1.9.17p2/lib/util/regress/fuzz/fuzz_sudo_conf.c:128:16: style: Redundant initialization for 'debug_list'. The initialized value is overwritten before it is read. [redundantInitialization] sudo-1.9.17p2/lib/util/regress/fuzz/fuzz_sudo_conf.c:70:45: note: debug_list is initialized sudo-1.9.17p2/lib/util/regress/fuzz/fuzz_sudo_conf.c:128:16: note: debug_list is overwritten sudo-1.9.17p2/lib/util/regress/fuzz/fuzz_sudo_conf.c:42:28: style: Parameter 'replies' can be declared as const array. However it seems that 'fuzz_conversation' is a callback function, if 'replies' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/lib/util/regress/fuzz/fuzz_sudo_conf.c:81:29: note: You might need to cast the function pointer here sudo-1.9.17p2/lib/util/regress/fuzz/fuzz_sudo_conf.c:42:28: note: Parameter 'replies' can be declared as const array sudo-1.9.17p2/lib/util/regress/fuzz/fuzz_sudo_conf.c:42:66: style: Parameter 'callback' can be declared as pointer to const. However it seems that 'fuzz_conversation' is a callback function, if 'callback' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/lib/util/regress/fuzz/fuzz_sudo_conf.c:81:29: note: You might need to cast the function pointer here sudo-1.9.17p2/lib/util/regress/fuzz/fuzz_sudo_conf.c:42:66: note: Parameter 'callback' can be declared as pointer to const sudo-1.9.17p2/lib/util/regress/getgrouplist/getgids.c:73:12: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] sudo-1.9.17p2/lib/util/regress/getgrouplist/getgids.c:76:12: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] sudo-1.9.17p2/lib/util/regress/getgrouplist/getgids.c:79:15: warning: Either the condition '(pw=getpwuid(getuid()))==NULL' is redundant or there is possible null pointer dereference: pw. [nullPointerRedundantCheck] sudo-1.9.17p2/lib/util/regress/getgrouplist/getgids.c:76:32: note: Assuming that condition '(pw=getpwuid(getuid()))==NULL' is not redundant sudo-1.9.17p2/lib/util/regress/getgrouplist/getgids.c:79:15: note: Null pointer dereference sudo-1.9.17p2/lib/util/regress/getgrouplist/getgids.c:80:28: warning: Either the condition '(pw=getpwuid(getuid()))==NULL' is redundant or there is possible null pointer dereference: pw. [nullPointerRedundantCheck] sudo-1.9.17p2/lib/util/regress/getgrouplist/getgids.c:76:32: note: Assuming that condition '(pw=getpwuid(getuid()))==NULL' is not redundant sudo-1.9.17p2/lib/util/regress/getgrouplist/getgids.c:80:28: note: Null pointer dereference sudo-1.9.17p2/lib/util/regress/getgrouplist/getgrouplist_test.c:64:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:71:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/regress/getgrouplist/getgrouplist_test.c:71:15: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] sudo-1.9.17p2/lib/util/regress/getgrouplist/getgrouplist_test.c:84:13: portability: Non reentrant function 'getgrgid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrgid_r'. [prohibitedgetgrgidCalled] sudo-1.9.17p2/lib/util/regress/glob/globtest.c:38:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/regress/glob/globtest.c:194:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/regress/json/json_test.c:71:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:76:16: style: Condition 'ntests!=0' is always true [knownConditionTrueFalse] sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:48:24: note: Assignment 'ntests=256+256+3', assigned value is 515 sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:76:16: note: Condition 'ntests!=0' is always true sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:52:2: warning: If memory allocation fails, then there is a possible null pointer dereference: test_data [nullPointerOutOfMemory] sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:49:23: note: Assuming allocation function fails sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:49:23: note: Assignment 'test_data=calloc((unsigned long)ntests,sizeof(*test_data))', assigned value is 0 sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:52:2: note: Null pointer dereference sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:53:2: warning: If memory allocation fails, then there is a possible null pointer dereference: test_data [nullPointerOutOfMemory] sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:49:23: note: Assuming allocation function fails sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:49:23: note: Assignment 'test_data=calloc((unsigned long)ntests,sizeof(*test_data))', assigned value is 0 sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:53:2: note: Null pointer dereference sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:54:2: warning: If memory allocation fails, then there is a possible null pointer dereference: test_data [nullPointerOutOfMemory] sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:49:23: note: Assuming allocation function fails sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:49:23: note: Assignment 'test_data=calloc((unsigned long)ntests,sizeof(*test_data))', assigned value is 0 sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:54:2: note: Null pointer dereference sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:56:2: warning: If memory allocation fails, then there is a possible null pointer dereference: test_data [nullPointerOutOfMemory] sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:49:23: note: Assuming allocation function fails sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:49:23: note: Assignment 'test_data=calloc((unsigned long)ntests,sizeof(*test_data))', assigned value is 0 sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:56:2: note: Null pointer dereference sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:57:2: warning: If memory allocation fails, then there is a possible null pointer dereference: test_data [nullPointerOutOfMemory] sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:49:23: note: Assuming allocation function fails sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:49:23: note: Assignment 'test_data=calloc((unsigned long)ntests,sizeof(*test_data))', assigned value is 0 sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:57:2: note: Null pointer dereference sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:58:2: warning: If memory allocation fails, then there is a possible null pointer dereference: test_data [nullPointerOutOfMemory] sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:49:23: note: Assuming allocation function fails sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:49:23: note: Assignment 'test_data=calloc((unsigned long)ntests,sizeof(*test_data))', assigned value is 0 sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:58:2: note: Null pointer dereference sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:61:5: warning: If memory allocation fails, then there is a possible null pointer dereference: test_data [nullPointerOutOfMemory] sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:49:23: note: Assuming allocation function fails sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:49:23: note: Assignment 'test_data=calloc((unsigned long)ntests,sizeof(*test_data))', assigned value is 0 sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:61:5: note: Null pointer dereference sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:62:5: warning: If memory allocation fails, then there is a possible null pointer dereference: test_data [nullPointerOutOfMemory] sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:49:23: note: Assuming allocation function fails sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:49:23: note: Assignment 'test_data=calloc((unsigned long)ntests,sizeof(*test_data))', assigned value is 0 sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:62:5: note: Null pointer dereference sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:63:13: warning: If memory allocation fails, then there is a possible null pointer dereference: test_data [nullPointerOutOfMemory] sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:49:23: note: Assuming allocation function fails sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:49:23: note: Assignment 'test_data=calloc((unsigned long)ntests,sizeof(*test_data))', assigned value is 0 sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:63:13: note: Null pointer dereference sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:64:5: warning: If memory allocation fails, then there is a possible null pointer dereference: test_data [nullPointerOutOfMemory] sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:49:23: note: Assuming allocation function fails sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:49:23: note: Assignment 'test_data=calloc((unsigned long)ntests,sizeof(*test_data))', assigned value is 0 sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:64:5: note: Null pointer dereference sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:65:13: warning: If memory allocation fails, then there is a possible null pointer dereference: test_data [nullPointerOutOfMemory] sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:49:23: note: Assuming allocation function fails sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:49:23: note: Assignment 'test_data=calloc((unsigned long)ntests,sizeof(*test_data))', assigned value is 0 sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:65:13: note: Null pointer dereference sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:66:5: warning: If memory allocation fails, then there is a possible null pointer dereference: test_data [nullPointerOutOfMemory] sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:49:23: note: Assuming allocation function fails sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:49:23: note: Assignment 'test_data=calloc((unsigned long)ntests,sizeof(*test_data))', assigned value is 0 sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:66:5: note: Null pointer dereference sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:69:24: warning: If memory allocation fails, then there is a possible null pointer dereference: test_data [nullPointerOutOfMemory] sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:49:23: note: Assuming allocation function fails sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:49:23: note: Assignment 'test_data=calloc((unsigned long)ntests,sizeof(*test_data))', assigned value is 0 sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:69:24: note: Null pointer dereference sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:70:16: warning: If memory allocation fails, then there is a possible null pointer dereference: test_data [nullPointerOutOfMemory] sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:49:23: note: Assuming allocation function fails sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:49:23: note: Assignment 'test_data=calloc((unsigned long)ntests,sizeof(*test_data))', assigned value is 0 sudo-1.9.17p2/lib/util/regress/hexchar/hexchar_test.c:70:16: note: Null pointer dereference sudo-1.9.17p2/lib/util/regress/mktemp/mktemp_test.c:63:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/regress/mktemp/mktemp_test.c:132:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/regress/multiarch/multiarch_test.c:141:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/regress/multiarch/multiarch_test.c:145:5: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] sudo-1.9.17p2/lib/util/regress/multiarch/multiarch_test.c:146:5: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] sudo-1.9.17p2/lib/util/regress/open_parent_dir/open_parent_dir_test.c:41:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/regress/open_parent_dir/open_parent_dir_test.c:111:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/regress/open_parent_dir/open_parent_dir_test.c:115:5: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] sudo-1.9.17p2/lib/util/regress/open_parent_dir/open_parent_dir_test.c:116:5: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] sudo-1.9.17p2/lib/util/regress/open_parent_dir/open_parent_dir_test.c:142:9: style: Variable 'dfd' is reassigned a value before the old one has been used. [redundantAssignment] sudo-1.9.17p2/lib/util/regress/open_parent_dir/open_parent_dir_test.c:138:6: note: dfd is assigned sudo-1.9.17p2/lib/util/regress/open_parent_dir/open_parent_dir_test.c:142:9: note: dfd is overwritten sudo-1.9.17p2/lib/util/regress/parse_gids/parse_gids_test.c:61:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/regress/parse_gids/parse_gids_test.c:84:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/regress/progname/progname_test.c:52:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/regress/progname/progname_test.c:56:5: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] sudo-1.9.17p2/lib/util/regress/progname/progname_test.c:57:5: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] sudo-1.9.17p2/lib/util/regress/regex/regex_test.c:104:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/regress/strsig/strsig_test.c:189:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG2STR_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/regress/strsig/strsig_test.c:302:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/regress/strsig/strsig_test.c:306:5: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] sudo-1.9.17p2/lib/util/regress/strsig/strsig_test.c:307:5: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] sudo-1.9.17p2/lib/util/regress/strsplit/strsplit_test.c:77:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/regress/strtofoo/strtoid_test.c:74:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/regress/strtofoo/strtobool_test.c:76:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/regress/strtofoo/strtomode_test.c:62:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/regress/strtofoo/strtonum_test.c:95:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/regress/sudo_conf/conf_test.c:44:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/regress/sudo_conf/conf_test.c:70:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optind [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/regress/sudo_conf/conf_test.c:96:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GROUP_SOURCE_ADAPTIVE [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/regress/sudo_parseln/parseln_test.c:53:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/regress/uuid/uuid_test.c:69:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/regress/uuid/uuid_test.c:100:16: style: Condition 'ntests!=0' is always true [knownConditionTrueFalse] sudo-1.9.17p2/lib/util/regress/uuid/uuid_test.c:77:29: note: Assuming that condition 'ntests<16' is not redundant sudo-1.9.17p2/lib/util/regress/uuid/uuid_test.c:100:16: note: Condition 'ntests!=0' is always true sudo-1.9.17p2/lib/util/regress/uuid/uuid_test.c:44:14: style: struct member 'uuid::time_low' is never used. [unusedStructMember] sudo-1.9.17p2/lib/util/regress/uuid/uuid_test.c:45:14: style: struct member 'uuid::time_mid' is never used. [unusedStructMember] sudo-1.9.17p2/lib/util/regress/uuid/uuid_test.c:48:13: style: struct member 'uuid::clock_seq_low' is never used. [unusedStructMember] sudo-1.9.17p2/lib/util/regress/uuid/uuid_test.c:49:13: style: struct member 'uuid::node' is never used. [unusedStructMember] sudo-1.9.17p2/lib/util/regress/tailq/hltq_test.c:65:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/secure_path.c:42:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_PATH_SECURE [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/setgroups.c:48:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/secure_path.c:66:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_PATH_MISSING [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/secure_path.c:105:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_PATH_MISSING [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/regress/tailq/hltq_test.c:69:5: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] sudo-1.9.17p2/lib/util/secure_path.c:129:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/regress/tailq/hltq_test.c:70:5: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] sudo-1.9.17p2/lib/util/secure_path.c:187:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/secure_path.c:142:2: error: Resource handle 'fd' freed twice. [doubleFree] sudo-1.9.17p2/lib/util/secure_path.c:132:6: note: Resource handle 'fd' freed twice. sudo-1.9.17p2/lib/util/secure_path.c:142:2: note: Resource handle 'fd' freed twice. sudo-1.9.17p2/lib/util/sig2str.c:84:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NSIG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/str2sig.c:97:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NSIG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/str2sig.c:91:22: style: Variable 'alias' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/lib/util/strlcpy.c:59:4: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] sudo-1.9.17p2/lib/util/arc4random.c:86:25: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/lib/util/arc4random.c:129:26: style: Parameter 'dat' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/lib/util/strnlen.c:40:3: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] sudo-1.9.17p2/lib/util/strtobool.c:73:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/strtoid.c:85:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/strtomode.c:48:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/strtonum.c:71:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALLTHROUGH [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/strtonum.c:185:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/sudo_conf.c:178:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/sudo_conf.c:227:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_INFO [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/sudo_conf.c:273:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/sudo_conf.c:377:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/sudo_conf.c:418:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GROUP_SOURCE_ADAPTIVE [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/sudo_conf.c:539:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/sudo_conf.c:607:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_CONF_PATHS [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/sudo_conf.c:663:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/snprintf.c:502:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALLTHROUGH [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/snprintf.c:1241:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALLTHROUGH [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/snprintf.c:1490:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/snprintf.c:1506:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/sudo_debug.c:172:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/sudo_debug.c:280:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sudo_debug_register [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/sudo_debug.c:396:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sudo_debug_deregister [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/sudo_debug.c:458:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/sudo_debug.c:481:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_INSTANCE_INITIALIZER [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/sudo_debug.c:625:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iov_base [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/sudo_debug.c:712:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/sudo_debug.c:727:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/sudo_debug.c:829:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/sudo_debug.c:982:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/sudo_conf.c:396:38: style:inconclusive: Function 'set_var_disable_coredump' argument 1 names different: declaration 'entry' definition 'strval'. [funcArgNamesDifferent] sudo-1.9.17p2/lib/util/sudo_conf.c:99:49: note: Function 'set_var_disable_coredump' argument 1 names different: declaration 'entry' definition 'strval'. sudo-1.9.17p2/lib/util/sudo_conf.c:396:38: note: Function 'set_var_disable_coredump' argument 1 names different: declaration 'entry' definition 'strval'. sudo-1.9.17p2/lib/util/sudo_conf.c:412:34: style:inconclusive: Function 'set_var_group_source' argument 1 names different: declaration 'entry' definition 'strval'. [funcArgNamesDifferent] sudo-1.9.17p2/lib/util/sudo_conf.c:100:45: note: Function 'set_var_group_source' argument 1 names different: declaration 'entry' definition 'strval'. sudo-1.9.17p2/lib/util/sudo_conf.c:412:34: note: Function 'set_var_group_source' argument 1 names different: declaration 'entry' definition 'strval'. sudo-1.9.17p2/lib/util/sudo_conf.c:432:32: style:inconclusive: Function 'set_var_max_groups' argument 1 names different: declaration 'entry' definition 'strval'. [funcArgNamesDifferent] sudo-1.9.17p2/lib/util/sudo_conf.c:101:43: note: Function 'set_var_max_groups' argument 1 names different: declaration 'entry' definition 'strval'. sudo-1.9.17p2/lib/util/sudo_conf.c:432:32: note: Function 'set_var_max_groups' argument 1 names different: declaration 'entry' definition 'strval'. sudo-1.9.17p2/lib/util/sudo_conf.c:449:38: style:inconclusive: Function 'set_var_probe_interfaces' argument 1 names different: declaration 'entry' definition 'strval'. [funcArgNamesDifferent] sudo-1.9.17p2/lib/util/sudo_conf.c:102:49: note: Function 'set_var_probe_interfaces' argument 1 names different: declaration 'entry' definition 'strval'. sudo-1.9.17p2/lib/util/sudo_conf.c:449:38: note: Function 'set_var_probe_interfaces' argument 1 names different: declaration 'entry' definition 'strval'. sudo-1.9.17p2/lib/util/sha2.c:148:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHA224_DIGEST_LENGTH [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/sha2.c:255:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHA256_BLOCK_LENGTH [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/sha2.c:292:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHA256_DIGEST_LENGTH [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/sha2.c:341:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHA384_DIGEST_LENGTH [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/sha2.c:466:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHA512_BLOCK_LENGTH [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/sha2.c:506:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHA512_DIGEST_LENGTH [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/sudo_dso.c:423:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/sudo_dso.c:430:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/sudo_dso.c:394:26: style: Parameter 'handle' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/lib/util/sudo_dso.c:396:32: style: Variable 'pt' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/lib/util/sudo_dso.c:408:27: style: Parameter 'handle' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/lib/util/sudo_dso.c:410:32: style: Variable 'pt' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/lib/util/term.c:137:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/term.c:150:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TCSAFLUSH [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/term.c:235:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_LOCK [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/term.c:269:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VMIN [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/term.c:293:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_LOCK [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/term.c:317:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_LOCK [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/term.c:363:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TCSAFLUSH [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/term.c:425:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_LOCK [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/term.c:489:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/term.c:119:51: style: Parameter 'tp' can be declared as pointer to const. However it seems that 'tcsetattr_nobg' is a callback function, if 'tp' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/lib/util/term.c:123:16: note: You might need to cast the function pointer here sudo-1.9.17p2/lib/util/term.c:119:51: note: Parameter 'tp' can be declared as pointer to const sudo-1.9.17p2/lib/util/timegm.c:54:20: style: Parameter 'when' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/lib/util/ttyname_dev.c:118:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/ttyname_dev.c:231:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_INFO [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/ttyname_dev.c:256:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/ttysize.c:43:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIOCGWINSZ [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/ttysize.c:79:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/unlinkat.c:37:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AT_FDCWD [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/sudo_debug.c:146:29: style: Parameter 'debug_file' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/lib/util/sudo_debug.c:148:29: style: Variable 'subsys' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/lib/util/sudo_debug.c:417:16: error: Uninitialized variable: output->fd [uninitvar] sudo-1.9.17p2/lib/util/sudo_debug.c:983:15: error: Uninitialized variable: output->fd [uninitvar] sudo-1.9.17p2/lib/util/utimens.c:74:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tv_nsec [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/utimens.c:147:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/utimens.c:182:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AT_FDCWD [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/utimens.c:196:12: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] sudo-1.9.17p2/lib/util/utimens.c:180:26: style: Variable 'times' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/lib/zlib/compress.c:46:37: style: Condition 'left>(uLong)max' is always true [knownConditionTrueFalse] sudo-1.9.17p2/lib/zlib/compress.c:50:41: style: Condition 'sourceLen>(uLong)max' is always true [knownConditionTrueFalse] sudo-1.9.17p2/lib/zlib/deflate.c:426:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_MEM_LEVEL [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/zlib/gzlib.c:222:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/util/snprintf.c:452:4: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] sudo-1.9.17p2/lib/util/snprintf.c:1156:4: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] sudo-1.9.17p2/lib/util/snprintf.c:283:8: style: Variable 'estr' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/lib/util/snprintf.c:1426:17: style: Variable 'oldtable' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/lib/util/snprintf.c:91:16: style: union member 'arg::pschararg' is never used. [unusedStructMember] sudo-1.9.17p2/lib/zlib/gzread.c:28:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/zlib/gzwrite.c:36:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_WBITS [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/zlib/gzwrite.c:80:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/zlib/infback.c:467:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZFALLTHROUGH [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/zlib/gzread.c:399:43: warning: Either the condition 'size' is redundant or there is division by zero at line 399. [zerodivcond] sudo-1.9.17p2/lib/zlib/gzread.c:393:9: note: Assuming that condition 'size' is not redundant sudo-1.9.17p2/lib/zlib/gzread.c:399:43: note: Division by zero sudo-1.9.17p2/lib/zlib/gzread.c:484:24: style: Variable 'src' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/lib/zlib/gzread.c:502:20: style: Variable 'eol' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/lib/zlib/gzread.c:430:46: error: Uninitialized variable: buf [uninitvar] sudo-1.9.17p2/lib/zlib/gzwrite.c:283:44: warning: Either the condition 'size' is redundant or there is division by zero at line 283. [zerodivcond] sudo-1.9.17p2/lib/zlib/gzwrite.c:277:9: note: Assuming that condition 'size' is not redundant sudo-1.9.17p2/lib/zlib/gzwrite.c:283:44: note: Division by zero sudo-1.9.17p2/lib/zlib/inflate.c:220:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_WBITS [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/zlib/inflate.c:690:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZFALLTHROUGH [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/zlib/inftrees.c:279:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable op [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/zlib/trees.c:352:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable len [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/zlib/trees.c:557:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable len [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/zlib/trees.c:640:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable freq [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/zlib/trees.c:888:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable len [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/zlib/uncompr.c:59:37: style: Condition 'left>(uLong)max' is always true [knownConditionTrueFalse] sudo-1.9.17p2/lib/zlib/uncompr.c:63:35: style: Condition 'len>(uLong)max' is always true [knownConditionTrueFalse] sudo-1.9.17p2/logsrvd/iolog_writer.c:808:53: error: syntax error [syntaxError] sudo-1.9.17p2/logsrvd/logsrv_util.c:177:43: error: syntax error [syntaxError] sudo-1.9.17p2/lib/zlib/deflate.c:1796:20: style: Condition 'len==left' is always false [knownConditionTrueFalse] sudo-1.9.17p2/lib/zlib/deflate.c:1794:13: note: len is assigned '(left)>(have)?(have):(left)' here. sudo-1.9.17p2/lib/zlib/deflate.c:1796:20: note: Condition 'len==left' is always false sudo-1.9.17p2/lib/zlib/deflate.c:866:20: style: Variable 'str' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/lib/zlib/deflate.c:2021:9: style: Variable 'bflush' is assigned a value that is never used. [unreadVariable] sudo-1.9.17p2/logsrvd/logsrvd.c:108:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHUTDOWN [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd.c:188:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cms_relay [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd.c:246:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd.c:299:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd.c:338:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MESSAGE_SIZE_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd.c:369:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SERVER_MESSAGE__INIT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd.c:385:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SERVER_MESSAGE__INIT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd.c:397:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SERVER_MESSAGE__INIT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd.c:417:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd.c:454:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXITED [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd.c:491:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXITED [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd.c:523:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RUNNING [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd.c:577:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INITIAL [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd.c:624:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_INFO [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd.c:637:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_EVQ_INSERTED [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd.c:656:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RUNNING [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd.c:692:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RUNNING [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd.c:728:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RUNNING [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd.c:764:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INITIAL [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd.c:812:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IOFD_TTYIN [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd.c:854:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd.c:870:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd.c:924:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd.c:1028:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd.c:1177:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SERVER_MESSAGE__INIT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd.c:1209:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIME_SPEC__INIT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd.c:1439:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd.c:1517:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCK_STREAM [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd.c:1580:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd.c:1609:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_EV_READ [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd.c:1633:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd.c:1659:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_INFO [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd.c:1689:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_INFO [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd.c:1787:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd.c:1802:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd.c:1826:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd.c:1864:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RLIMIT_NOFILE [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd.c:1924:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_GETFL [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd.c:1949:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd.c:1957:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd.c:2001:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_conf.c:471:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SESSID_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_journal.c:383:53: error: syntax error [syntaxError] sudo-1.9.17p2/logsrvd/logsrvd_conf.c:544:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNSPEC [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_conf.c:591:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIME_T_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_conf.c:797:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIME_T_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_conf.c:813:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIME_T_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_conf.c:846:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIME_T_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_conf.c:888:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EVLOG_NONE [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_conf.c:906:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EVLOG_JSON_PRETTY [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1084:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1277:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_APPEND [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1301:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EVLOG_JSON_PRETTY [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1339:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1355:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1370:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1422:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable msg [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1500:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1541:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1607:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEFAULT_SOCKET_TIMEOUT_SEC [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1719:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PASSPROMPT_REGEX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1866:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1916:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_local.c:80:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_local.c:102:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JSON_NUMBER [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_local.c:320:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_local.c:414:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_INFO [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_local.c:484:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AT_FDCWD [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_local.c:579:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable enabled [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_local.c:649:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IO_EVENT_WINSIZE [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_local.c:684:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IO_EVENT_SUSPEND [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_queue.c:92:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_queue.c:183:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_queue.c:210:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_queue.c:281:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_conf.c:421:15: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] sudo-1.9.17p2/logsrvd/logsrvd_conf.c:438:15: portability: Non reentrant function 'getgrnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrnam_r'. [prohibitedgetgrnamCalled] sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1545:10: warning:inconclusive: Possible null pointer dereference: config [nullPointer] sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1897:11: note: Assignment 'config=NULL', assigned value is 0 sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1902:23: note: Calling function 'logsrvd_conf_free', 1st argument 'config' value is 0 sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1545:10: note: Null pointer dereference sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1546:10: warning:inconclusive: Possible null pointer dereference: config [nullPointer] sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1897:11: note: Assignment 'config=NULL', assigned value is 0 sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1902:23: note: Calling function 'logsrvd_conf_free', 1st argument 'config' value is 0 sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1546:10: note: Null pointer dereference sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1547:9: warning:inconclusive: Possible null pointer dereference: config [nullPointer] sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1897:11: note: Assignment 'config=NULL', assigned value is 0 sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1902:23: note: Calling function 'logsrvd_conf_free', 1st argument 'config' value is 0 sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1547:9: note: Null pointer dereference sudo-1.9.17p2/logsrvd/logsrvd.c:1607:5: warning: Either the condition '(l=malloc(sizeof(*l)))==NULL' is redundant or there is possible null pointer dereference: l. [nullPointerRedundantCheck] sudo-1.9.17p2/logsrvd/logsrvd.c:1605:34: note: Assuming that condition '(l=malloc(sizeof(*l)))==NULL' is not redundant sudo-1.9.17p2/logsrvd/logsrvd.c:1607:5: note: Null pointer dereference sudo-1.9.17p2/logsrvd/logsrvd.c:1608:5: warning: Either the condition '(l=malloc(sizeof(*l)))==NULL' is redundant or there is possible null pointer dereference: l. [nullPointerRedundantCheck] sudo-1.9.17p2/logsrvd/logsrvd.c:1605:34: note: Assuming that condition '(l=malloc(sizeof(*l)))==NULL' is not redundant sudo-1.9.17p2/logsrvd/logsrvd.c:1608:5: note: Null pointer dereference sudo-1.9.17p2/logsrvd/logsrvd.c:1609:5: warning:inconclusive: Either the condition '(l=malloc(sizeof(*l)))==NULL' is redundant or there is possible null pointer dereference: l. [nullPointerRedundantCheck] sudo-1.9.17p2/logsrvd/logsrvd.c:1605:34: note: Assuming that condition '(l=malloc(sizeof(*l)))==NULL' is not redundant sudo-1.9.17p2/logsrvd/logsrvd.c:1609:5: note: Null pointer dereference sudo-1.9.17p2/logsrvd/logsrvd.c:1610:9: warning:inconclusive: Either the condition '(l=malloc(sizeof(*l)))==NULL' is redundant or there is possible null pointer dereference: l. [nullPointerRedundantCheck] sudo-1.9.17p2/logsrvd/logsrvd.c:1605:34: note: Assuming that condition '(l=malloc(sizeof(*l)))==NULL' is not redundant sudo-1.9.17p2/logsrvd/logsrvd.c:1610:9: note: Null pointer dereference sudo-1.9.17p2/logsrvd/logsrvd_conf.c:418:20: style: Variable 'pw' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/logsrvd/logsrvd_conf.c:435:19: style: Variable 'gr' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1199:12: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1295:46: style: Parameter 'config' can be declared as pointer to const. However it seems that 'logsrvd_open_eventlog' is a callback function, if 'config' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1298:16: note: You might need to cast the function pointer here sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1295:46: note: Parameter 'config' can be declared as pointer to const sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1317:40: style: Parameter 'fp' can be declared as pointer to const. However it seems that 'logsrvd_stub_close_log' is a callback function, if 'fp' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1337:28: note: You might need to cast the function pointer here sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1317:40: note: Parameter 'fp' can be declared as pointer to const sudo-1.9.17p2/logsrvd/logsrvd.c:1206:22: style:inconclusive: Function 'server_commit_cb' argument 1 names different: declaration 'fd' definition 'unused'. [funcArgNamesDifferent] sudo-1.9.17p2/logsrvd/logsrvd.c:94:34: note: Function 'server_commit_cb' argument 1 names different: declaration 'fd' definition 'unused'. sudo-1.9.17p2/logsrvd/logsrvd.c:1206:22: note: Function 'server_commit_cb' argument 1 names different: declaration 'fd' definition 'unused'. sudo-1.9.17p2/logsrvd/logsrvd_queue.c:237:28: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: dirp [nullPointerOutOfResources] sudo-1.9.17p2/logsrvd/logsrvd_queue.c:231:19: note: Assuming allocation function fails sudo-1.9.17p2/logsrvd/logsrvd_queue.c:231:19: note: Assignment 'dirp=opendir(path)', assigned value is 0 sudo-1.9.17p2/logsrvd/logsrvd_queue.c:237:28: note: Null pointer dereference sudo-1.9.17p2/logsrvd/logsrvd.c:1696:24: style: Variable 'sa_un' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/logsrvd/regress/fuzz/fuzz_logsrvd_conf.c:222:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/regress/logsrvd_conf/logsrvd_conf_test.c:44:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/regress/logsrvd_conf/logsrvd_conf_test.c:70:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optind [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/regress/fuzz/fuzz_logsrvd_conf.c:156:28: style: Parameter 'replies' can be declared as const array. However it seems that 'fuzz_conversation' is a callback function, if 'replies' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/logsrvd/regress/fuzz/fuzz_logsrvd_conf.c:189:29: note: You might need to cast the function pointer here sudo-1.9.17p2/logsrvd/regress/fuzz/fuzz_logsrvd_conf.c:156:28: note: Parameter 'replies' can be declared as const array sudo-1.9.17p2/logsrvd/regress/fuzz/fuzz_logsrvd_conf.c:156:66: style: Parameter 'callback' can be declared as pointer to const. However it seems that 'fuzz_conversation' is a callback function, if 'callback' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/logsrvd/regress/fuzz/fuzz_logsrvd_conf.c:189:29: note: You might need to cast the function pointer here sudo-1.9.17p2/logsrvd/regress/fuzz/fuzz_logsrvd_conf.c:156:66: note: Parameter 'callback' can be declared as pointer to const sudo-1.9.17p2/logsrvd/logsrvd_relay.c:98:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_relay.c:159:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_INFO [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_relay.c:204:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MESSAGE_SIZE_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_relay.c:236:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLIENT_MESSAGE__INIT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_relay.c:314:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_relay.c:425:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_EV_TIMEOUT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_relay.c:487:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_relay.c:511:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INITIAL [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_relay.c:544:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RUNNING [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_relay.c:567:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_INFO [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_relay.c:604:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_relay.c:629:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_relay.c:651:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_INFO [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_relay.c:706:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_relay.c:914:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_relay.c:1044:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_EV_READ [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_relay.c:1067:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_INFO [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_relay.c:1086:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_INFO [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_relay.c:1105:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_INFO [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_relay.c:1124:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLIENT_MESSAGE__INIT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_relay.c:1170:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_INFO [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_relay.c:1192:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_INFO [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_relay.c:1214:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_INFO [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_relay.c:1236:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_INFO [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/sendlog.h:24:0: error: #error protobuf-c version 1.30 or higher required [preprocessorErrorDirective] sudo-1.9.17p2/plugins/group_file/getgrent.c:111:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINE_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/lib/zlib/trees.c:507:50: style: Parameter 'tree' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/lib/zlib/trees.c:964:43: style: Parameter 's' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/plugins/group_file/group_file.c:66:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GROUP_API_VERSION_MAJOR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/audit_json/audit_json.c:126:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_INSTANCE_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/audit_json/audit_json.c:202:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/audit_json/audit_json.c:273:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JSON_STRING [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/audit_json/audit_json.c:355:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JSON_NUMBER [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/audit_json/audit_json.c:396:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_LOCK [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/audit_json/audit_json.c:453:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JSON_STRING [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/audit_json/audit_json.c:537:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JSON_STRING [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/audit_json/audit_json.c:654:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_FRONT_END [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/audit_json/audit_json.c:710:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/audit_json/audit_json.c:727:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_CONV_INFO_MSG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/group_file/group_file.c:110:19: style: Variable 'grp' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/plugins/group_file/plugin_test.c:55:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/group_file/plugin_test.c:80:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/group_file/plugin_test.c:175:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/group_file/plugin_test.c:191:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/group_file/plugin_test.c:214:8: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] sudo-1.9.17p2/plugins/group_file/plugin_test.c:185:11: style: Variable 'user' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/plugins/group_file/plugin_test.c:186:20: style: Variable 'pwd' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/plugins/python/pyhelpers.c:33:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/pyhelpers.c:132:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_CONV_ERROR_MSG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/pyhelpers.c:200:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_ValueError [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/pyhelpers.c:244:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_ValueError [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/pyhelpers.c:267:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/pyhelpers.c:328:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_DIAG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/pyhelpers.c:379:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_INFO [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/pyhelpers.c:403:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_CONV_ERROR_MSG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/pyhelpers.c:417:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/pyhelpers.c:489:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SA_RESTART [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/python_baseplugin.c:50:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/logsrvd/logsrvd_relay.c:147:30: style: Parameter 'msgbuf' can be declared as pointer to const. However it seems that 'relay_enqueue_write' is a callback function, if 'msgbuf' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/logsrvd/logsrvd_relay.c:154:16: note: You might need to cast the function pointer here sudo-1.9.17p2/logsrvd/logsrvd_relay.c:147:30: note: Parameter 'msgbuf' can be declared as pointer to const sudo-1.9.17p2/logsrvd/logsrvd_relay.c:309:11: style: Variable 'addr' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/logsrvd/logsrvd_relay.c:478:27: style: Variable 'relay_closure' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/logsrvd/logsrvd_relay.c:1117:31: style: Parameter 'msg' can be declared as pointer to const. However it seems that 'relay_restart' is a callback function, if 'msg' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/logsrvd/logsrvd_relay.c:1268:5: note: You might need to cast the function pointer here sudo-1.9.17p2/logsrvd/logsrvd_relay.c:1117:31: note: Parameter 'msg' can be declared as pointer to const sudo-1.9.17p2/plugins/python/python_convmessage.c:45:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_TRACE [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/python_convmessage.c:141:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sudo_conv_message [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/python_loghandler.c:53:39: debug: Function::addArguments found argument 'py_self' with varid 0. [varid0] sudo-1.9.17p2/plugins/python/python_loghandler.c:35:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_INFO [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/python_loghandler.c:58:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_DEBUG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/python_loghandler.c:73:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_CRIT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/python_loghandler.c:117:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/pyhelpers.c:234:45: style:inconclusive: Function 'py_tuple_get' argument 2 names different: declaration 'index' definition 'idx'. [funcArgNamesDifferent] sudo-1.9.17p2/plugins/python/pyhelpers.h:85:55: note: Function 'py_tuple_get' argument 2 names different: declaration 'index' definition 'idx'. sudo-1.9.17p2/plugins/python/pyhelpers.c:234:45: note: Function 'py_tuple_get' argument 2 names different: declaration 'index' definition 'idx'. sudo-1.9.17p2/plugins/python/pyhelpers.c:399:34: style:inconclusive: Function 'py_debug_python_result' argument 3 names different: declaration 'py_args' definition 'py_result'. [funcArgNamesDifferent] sudo-1.9.17p2/plugins/python/pyhelpers.h:100:39: note: Function 'py_debug_python_result' argument 3 names different: declaration 'py_args' definition 'py_result'. sudo-1.9.17p2/plugins/python/pyhelpers.c:399:34: note: Function 'py_debug_python_result' argument 3 names different: declaration 'py_args' definition 'py_result'. sudo-1.9.17p2/plugins/python/python_plugin_approval.c:103:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/python_plugin_approval.c:191:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_CONV_ERROR_MSG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/python_plugin_audit.c:125:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/python_plugin_audit.c:277:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_CONV_ERROR_MSG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/audit_json/audit_json.c:340:62: style: Parameter 'ts' can be declared as pointer to const. However it seems that 'add_timestamp' is a callback function, if 'ts' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/plugins/audit_json/audit_json.c:347:16: note: You might need to cast the function pointer here sudo-1.9.17p2/plugins/audit_json/audit_json.c:340:62: note: Parameter 'ts' can be declared as pointer to const sudo-1.9.17p2/plugins/python/python_plugin_group.c:45:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_CONV_ERROR_MSG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/python_plugin_common.c:73:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_DIAG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/python_plugin_common.c:98:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_DIAG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/python_plugin_common.c:146:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_Exception [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/python_plugin_common.c:166:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyImport_Inittab [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/python_plugin_common.c:186:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyImport_Inittab [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/python_plugin_common.c:207:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/python_plugin_common.c:397:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_IgnoreEnvironmentFlag [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/python_plugin_common.c:427:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_CONV_ERROR_MSG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/python_plugin_common.c:493:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_CONV_ERROR_MSG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/python_plugin_common.c:553:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_DEBUG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/python_plugin_common.c:580:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_DIAG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/python_plugin_common.c:608:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_CONV_ERROR_MSG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/python_plugin_common.c:647:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/python_plugin_common.c:671:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_CONV_INFO_MSG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/python_plugin_common.c:699:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_INFO [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/python_plugin_common.c:728:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_INFO [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/python_plugin_common.c:744:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tp_name [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/python_plugin_common.c:758:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_NOTICE [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/python_plugin_io.c:88:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_CONV_ERROR_MSG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/python_plugin_io.c:133:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/python_plugin_io.c:141:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable py_interpreter [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/python_plugin_io.c:272:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_CONV_ERROR_MSG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/python_plugin_policy.c:55:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_CONV_ERROR_MSG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/python_plugin_policy.c:91:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/python_plugin_policy.c:112:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/python_plugin_policy.c:181:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/python_plugin_policy.c:222:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/python_plugin_policy.c:250:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyLong_Type [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/python_plugin_policy.c:226:50: style: Parameter 'pwd' can be declared as pointer to const. However it seems that 'python_plugin_policy_init_session' is a callback function, if 'pwd' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/plugins/python/python_plugin_policy.c:285:5: note: You might need to cast the function pointer here sudo-1.9.17p2/plugins/python/python_plugin_policy.c:226:50: note: Parameter 'pwd' can be declared as pointer to const sudo-1.9.17p2/plugins/python/regress/testhelpers.c:75:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/regress/testhelpers.c:148:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/regress/testhelpers.c:175:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable reply [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/regress/testhelpers.c:224:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/python_plugin_common.c:666:32: style:inconclusive: Function 'python_plugin_show_version' argument 3 names different: declaration 'isVerbose' definition 'is_verbose'. [funcArgNamesDifferent] sudo-1.9.17p2/plugins/python/python_plugin_common.h:54:70: note: Function 'python_plugin_show_version' argument 3 names different: declaration 'isVerbose' definition 'is_verbose'. sudo-1.9.17p2/plugins/python/python_plugin_common.c:666:32: note: Function 'python_plugin_show_version' argument 3 names different: declaration 'isVerbose' definition 'is_verbose'. sudo-1.9.17p2/plugins/python/python_plugin_common.c:46:28: style: Parameter 'keyvalues' can be declared as const array. However it seems that '_lookup_value' is a callback function, if 'keyvalues' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/plugins/python/python_plugin_common.c:48:16: note: You might need to cast the function pointer here sudo-1.9.17p2/plugins/python/python_plugin_common.c:46:28: note: Parameter 'keyvalues' can be declared as const array sudo-1.9.17p2/plugins/python/sudo_python_debug.c:65:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_INSTANCE_INITIALIZER [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/sudo_python_debug.c:89:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/sudo_python_debug.c:123:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/regress/iohelpers.c:143:26: style:inconclusive: Function 'str_replaced' argument 1 names different: declaration 'string' definition 'source'. [funcArgNamesDifferent] sudo-1.9.17p2/plugins/python/regress/iohelpers.h:47:32: note: Function 'str_replaced' argument 1 names different: declaration 'string' definition 'source'. sudo-1.9.17p2/plugins/python/regress/iohelpers.c:143:26: note: Function 'str_replaced' argument 1 names different: declaration 'string' definition 'source'. sudo-1.9.17p2/plugins/python/regress/iohelpers.c:143:41: style:inconclusive: Function 'str_replaced' argument 2 names different: declaration 'dest_length' definition 'dest_len'. [funcArgNamesDifferent] sudo-1.9.17p2/plugins/python/regress/iohelpers.h:47:47: note: Function 'str_replaced' argument 2 names different: declaration 'dest_length' definition 'dest_len'. sudo-1.9.17p2/plugins/python/regress/iohelpers.c:143:41: note: Function 'str_replaced' argument 2 names different: declaration 'dest_length' definition 'dest_len'. sudo-1.9.17p2/plugins/python/sudo_python_module.c:312:46: debug: Function::addArguments found argument 'self' with varid 0. [varid0] sudo-1.9.17p2/plugins/python/sudo_python_module.c:106:51: debug: Function::addArguments found argument 'py_self' with varid 0. [varid0] sudo-1.9.17p2/plugins/python/sudo_python_module.c:212:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyDict_Type [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sample/sample_plugin.c:91:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_API_VERSION_MAJOR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/sudo_python_module.c:245:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_CONV_INFO_MSG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sample/sample_plugin.c:149:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/sudo_python_module.c:251:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_CONV_ERROR_MSG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sample/sample_plugin.c:186:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_CONV_PROMPT_ECHO_OFF [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/sudo_python_module.c:261:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_ValueError [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sample/sample_plugin.c:260:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _PATH_VI [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/sudo_python_module.c:280:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sample/sample_plugin.c:321:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_CONV_ERROR_MSG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/sudo_python_module.c:326:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_CONV_CALLBACK_VERSION [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sample/sample_plugin.c:373:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_CONV_INFO_MSG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/sudo_python_module.c:460:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyType_Type [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sample/sample_plugin.c:380:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_CONV_INFO_MSG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/sudo_python_module.c:488:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sample/sample_plugin.c:393:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_CONV_ERROR_MSG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/sudo_python_module.c:556:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_CONV_PROMPT_ECHO_OFF [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sample/sample_plugin.c:413:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/sudo_python_module.c:630:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sample/sample_plugin.c:448:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_CONV_INFO_MSG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sample/sample_plugin.c:121:12: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] sudo-1.9.17p2/plugins/sample/sample_plugin.c:128:12: portability: Non reentrant function 'getgrnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrnam_r'. [prohibitedgetgrnamCalled] sudo-1.9.17p2/plugins/python/regress/testhelpers.c:36:16: style: Variable 'ep' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/plugins/python/regress/testhelpers.c:306:19: style: Variable 'actual_item' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/plugins/sample/sample_plugin.c:162:19: warning: If memory allocation fails, then there is a possible null pointer dereference: path [nullPointerOutOfMemory] sudo-1.9.17p2/plugins/sample/sample_plugin.c:160:26: note: Assuming allocation function fails sudo-1.9.17p2/plugins/sample/sample_plugin.c:160:18: note: Assignment 'path=path0=strdup(path?path:_PATH_DEFPATH)', assigned value is 0 sudo-1.9.17p2/plugins/sample/sample_plugin.c:162:19: note: Null pointer dereference sudo-1.9.17p2/plugins/sample/sample_plugin.c:164:47: warning: If memory allocation fails, then there is a possible null pointer dereference: path [nullPointerOutOfMemory] sudo-1.9.17p2/plugins/sample/sample_plugin.c:160:26: note: Assuming allocation function fails sudo-1.9.17p2/plugins/sample/sample_plugin.c:160:18: note: Assignment 'path=path0=strdup(path?path:_PATH_DEFPATH)', assigned value is 0 sudo-1.9.17p2/plugins/sample/sample_plugin.c:164:47: note: Null pointer dereference sudo-1.9.17p2/plugins/python/sudo_python_module.c:312:46: style:inconclusive: Function 'python_sudo_conversation' argument 1 names different: declaration 'py_self' definition 'self'. [funcArgNamesDifferent] sudo-1.9.17p2/plugins/python/sudo_python_module.c:41:53: note: Function 'python_sudo_conversation' argument 1 names different: declaration 'py_self' definition 'self'. sudo-1.9.17p2/plugins/python/sudo_python_module.c:312:46: note: Function 'python_sudo_conversation' argument 1 names different: declaration 'py_self' definition 'self'. sudo-1.9.17p2/plugins/sample/sample_plugin.c:81:20: style: Variable 'pw' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/plugins/sample/sample_plugin.c:83:19: style: Variable 'gr' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/plugins/sample/sample_plugin.c:149:30: style: Variable 'qualified' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/plugins/sample_approval/sample_approval.c:81:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_INSTANCE_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sample_approval/sample_approval.c:113:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sample_approval/sample_approval.c:145:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_CONV_ERROR_MSG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sample_approval/sample_approval.c:156:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_CONV_INFO_MSG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/alias.c:90:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/alias.c:108:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/alias.c:139:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/alias.c:193:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable inorder [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/alias.c:227:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/alias.c:247:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/alias.c:271:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HOSTALIAS [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/alias.c:292:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/alias.c:313:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/alias.c:339:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/audit.c:115:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDOERS_LOCALE_SUDOERS [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/audit.c:162:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sudo_conv [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/audit.c:247:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/audit.c:353:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_FRONT_END [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/audit.c:413:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable def_log_denied [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/audit.c:445:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable def_ignore_audit_errors [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/audit.c:470:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_CONV_INFO_MSG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/alias.c:134:5: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] sudo-1.9.17p2/plugins/sudoers/alias.c:129:15: note: Assuming allocation function fails sudo-1.9.17p2/plugins/sudoers/alias.c:129:15: note: Assignment 'a=calloc(1,sizeof(*a))', assigned value is 0 sudo-1.9.17p2/plugins/sudoers/alias.c:134:5: note: Null pointer dereference sudo-1.9.17p2/plugins/sudoers/alias.c:135:5: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] sudo-1.9.17p2/plugins/sudoers/alias.c:129:15: note: Assuming allocation function fails sudo-1.9.17p2/plugins/sudoers/alias.c:129:15: note: Assignment 'a=calloc(1,sizeof(*a))', assigned value is 0 sudo-1.9.17p2/plugins/sudoers/alias.c:135:5: note: Null pointer dereference sudo-1.9.17p2/plugins/sudoers/alias.c:283:69: style: Parameter 'name' can be declared as pointer to const. However it seems that 'alias_remove_recursive' is a callback function, if 'name' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/plugins/sudoers/alias.c:289:16: note: You might need to cast the function pointer here sudo-1.9.17p2/plugins/sudoers/alias.c:283:69: note: Parameter 'name' can be declared as pointer to const sudo-1.9.17p2/plugins/sudoers/audit.c:380:9: style: Condition '!log_server_accept(ctx,&evlog)' is always false [knownConditionTrueFalse] sudo-1.9.17p2/plugins/sudoers/audit.c:380:27: note: Calling function 'log_server_accept' returns 1 sudo-1.9.17p2/plugins/sudoers/audit.c:380:9: note: Condition '!log_server_accept(ctx,&evlog)' is always false sudo-1.9.17p2/plugins/sudoers/audit.c:56:62: style: Parameter 'argv' can be declared as const array. However it seems that 'audit_success' is a callback function, if 'argv' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/plugins/sudoers/audit.c:59:16: note: You might need to cast the function pointer here sudo-1.9.17p2/plugins/sudoers/audit.c:56:62: note: Parameter 'argv' can be declared as const array sudo-1.9.17p2/plugins/sudoers/audit.c:328:71: style: Parameter 'evlog' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/plugins/sudoers/auth/passwd.c:51:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AUTH_SUCCESS [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/auth/passwd.c:141:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AUTH_SUCCESS [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/auth/passwd.c:162:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AUTH_SUCCESS [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/auth/passwd.c:132:34: style: Parameter 'auth' can be declared as pointer to const. However it seems that 'sudo_passwd_verify' is a callback function, if 'auth' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/plugins/sudoers/auth/passwd.c:137:16: note: You might need to cast the function pointer here sudo-1.9.17p2/plugins/sudoers/auth/passwd.c:132:34: note: Parameter 'auth' can be declared as pointer to const sudo-1.9.17p2/plugins/sudoers/auth/sudo_auth.c:109:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AUTH_SUCCESS [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/auth/sudo_auth.c:184:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AUTH_SUCCESS [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/auth/sudo_auth.c:217:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AUTH_SUCCESS [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/auth/sudo_auth.c:229:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable def_badpass_message [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/auth/sudo_auth.c:288:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AUTH_FAILURE [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/auth/sudo_auth.c:516:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_CONV_PROMPT_ECHO_OFF [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/auth/sudo_auth.c:553:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_CONV_INFO_MSG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/b64_decode.c:59:20: style: Variable 'out_end' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/plugins/sudoers/canon_path.c:79:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/canon_path.c:92:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/check.c:56:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODE_CHECK [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/canon_path.c:110:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/check.c:114:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TS_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/canon_path.c:121:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/check.c:244:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/check.c:322:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable def_exempt_group [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/canon_path.c:166:5: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: item [nullPointerOutOfMemory] sudo-1.9.17p2/plugins/sudoers/canon_path.c:159:18: note: Assuming allocation function fails sudo-1.9.17p2/plugins/sudoers/canon_path.c:159:18: note: Assignment 'item=malloc(item_size)', assigned value is 0 sudo-1.9.17p2/plugins/sudoers/canon_path.c:166:5: note: Null pointer dereference sudo-1.9.17p2/plugins/sudoers/canon_path.c:167:5: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: item [nullPointerOutOfMemory] sudo-1.9.17p2/plugins/sudoers/canon_path.c:159:18: note: Assuming allocation function fails sudo-1.9.17p2/plugins/sudoers/canon_path.c:159:18: note: Assignment 'item=malloc(item_size)', assigned value is 0 sudo-1.9.17p2/plugins/sudoers/canon_path.c:167:5: note: Null pointer dereference sudo-1.9.17p2/plugins/sudoers/canon_path.c:167:22: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: item [nullPointerOutOfMemory] sudo-1.9.17p2/plugins/sudoers/canon_path.c:159:18: note: Assuming allocation function fails sudo-1.9.17p2/plugins/sudoers/canon_path.c:159:18: note: Assignment 'item=malloc(item_size)', assigned value is 0 sudo-1.9.17p2/plugins/sudoers/canon_path.c:167:22: note: Null pointer dereference sudo-1.9.17p2/plugins/sudoers/canon_path.c:168:12: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: item [nullPointerOutOfMemory] sudo-1.9.17p2/plugins/sudoers/canon_path.c:159:18: note: Assuming allocation function fails sudo-1.9.17p2/plugins/sudoers/canon_path.c:159:18: note: Assignment 'item=malloc(item_size)', assigned value is 0 sudo-1.9.17p2/plugins/sudoers/canon_path.c:168:12: note: Null pointer dereference sudo-1.9.17p2/plugins/sudoers/canon_path.c:169:5: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: item [nullPointerOutOfMemory] sudo-1.9.17p2/plugins/sudoers/canon_path.c:159:18: note: Assuming allocation function fails sudo-1.9.17p2/plugins/sudoers/canon_path.c:159:18: note: Assignment 'item=malloc(item_size)', assigned value is 0 sudo-1.9.17p2/plugins/sudoers/canon_path.c:169:5: note: Null pointer dereference sudo-1.9.17p2/plugins/sudoers/canon_path.c:170:5: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: item [nullPointerOutOfMemory] sudo-1.9.17p2/plugins/sudoers/canon_path.c:159:18: note: Assuming allocation function fails sudo-1.9.17p2/plugins/sudoers/canon_path.c:159:18: note: Assignment 'item=malloc(item_size)', assigned value is 0 sudo-1.9.17p2/plugins/sudoers/canon_path.c:170:5: note: Null pointer dereference sudo-1.9.17p2/plugins/sudoers/check_util.c:46:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_INFO [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/check_util.c:74:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_INFO [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/check_aliases.c:47:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/check_aliases.c:64:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/check_aliases.c:82:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/check_aliases.c:133:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/check.c:239:44: style: Parameter 'callback' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/plugins/sudoers/check_aliases.c:42:54: style: Parameter 'name' can be declared as pointer to const. However it seems that 'alias_warned' is a callback function, if 'name' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/plugins/sudoers/check_aliases.c:45:16: note: You might need to cast the function pointer here sudo-1.9.17p2/plugins/sudoers/check_aliases.c:42:54: note: Parameter 'name' can be declared as pointer to const sudo-1.9.17p2/plugins/sudoers/check_aliases.c:56:58: style: Parameter 'name' can be declared as pointer to const. However it seems that 'alias_warned_add' is a callback function, if 'name' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/plugins/sudoers/check_aliases.c:59:16: note: You might need to cast the function pointer here sudo-1.9.17p2/plugins/sudoers/check_aliases.c:56:58: note: Parameter 'name' can be declared as pointer to const sudo-1.9.17p2/plugins/sudoers/check_aliases.c:48:16: error: Uninitialized variable: w->name [uninitvar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:50:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:96:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CMNDALIAS [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:127:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:174:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:227:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALLTHROUGH [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:284:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable member_list [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:312:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEFAULTS [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:345:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:479:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UNSPEC [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:659:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:699:77: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:717:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:109:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDOERS_CONTEXT_INITIALIZER [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:561:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:80:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JSON_STRING [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:634:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:195:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UNSPEC [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:646:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CVT_DEFAULTS_ALL [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:409:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:675:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUPPRESS_DEFAULTS [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:435:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:730:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:462:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JSON_STRING [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:751:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:518:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sudo_defs_table [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:777:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sudoersin [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:544:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:823:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ALLOW [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:653:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USERALIAS [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:886:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:707:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:962:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:942:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:1002:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:1007:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:1044:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:1029:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:1062:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:1104:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:1152:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:1184:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:1264:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:1288:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CVT_DEFAULTS_ALL [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:1403:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:1454:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:1525:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:1533:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:56:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:72:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:92:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:350:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EPERM [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:470:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:499:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_CONF_ALL [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:537:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_CONF_ALL [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:648:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_API_VERSION [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:794:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:907:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_CONF_ALL [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:1102:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_POLICY_PLUGIN [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:1132:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_IO_PLUGIN [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:1162:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_AUDIT_PLUGIN [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:1226:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_POLICY_PLUGIN [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:1265:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_PLUGIN_SUDO_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:1294:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_PLUGIN_NO_STATUS [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:1311:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_PLUGIN_NO_STATUS [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:1466:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DSO_LAZY [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:1518:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:486:6: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:492:6: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:388:45: style: Parameter 'parse_tree' can be declared as pointer to const. However it seems that 'print_alias_json' is a callback function, if 'parse_tree' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:626:63: note: You might need to cast the function pointer here sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:388:45: note: Parameter 'parse_tree' can be declared as pointer to const sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:513:36: style: Parameter 'def' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:60:2: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:165:22: style: Variable 'cmnd' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:399:44: style: Parameter 'parse_tree' can be declared as pointer to const. However it seems that 'print_alias_csv' is a callback function, if 'parse_tree' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:435:63: note: You might need to cast the function pointer here sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:399:44: note: Parameter 'parse_tree' can be declared as pointer to const sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:598:17: style: Variable 'need_comma' is assigned a value that is never used. [unreadVariable] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:164:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:199:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:252:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:308:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALLTHROUGH [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:363:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:628:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:659:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:728:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:743:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:381:15: warning: If memory allocation fails, then there is a possible null pointer dereference: lhost [nullPointerOutOfMemory] sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:377:18: note: Assuming allocation function fails sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:377:18: note: Assignment 'lhost=strndup(input_file,(unsigned long)(cp-input_file))', assigned value is 0 sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:381:15: note: Null pointer dereference sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:911:6: style: Variable 'lhost' is assigned an expression that holds the same value. [redundantAssignment] sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:894:8: note: lhost is assigned 's->str' here. sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:911:6: note: Variable 'lhost' is assigned an expression that holds the same value. sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:559:34: style:inconclusive: Function 'cvtsudoers_conf_read' argument 1 names different: declaration 'conf_file' definition 'path'. [funcArgNamesDifferent] sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:94:67: note: Function 'cvtsudoers_conf_read' argument 1 names different: declaration 'conf_file' definition 'path'. sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:559:34: note: Function 'cvtsudoers_conf_read' argument 1 names different: declaration 'conf_file' definition 'path'. sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:588:18: style: Variable 'value' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:790:67: style: Parameter 'keepopen' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:797:58: style: Parameter 'conf' can be declared as pointer to const. However it seems that 'userlist_matches_filter' is a callback function, if 'conf' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:802:16: note: You might need to cast the function pointer here sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:797:58: note: Parameter 'conf' can be declared as pointer to const sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:872:61: style: Parameter 'conf' can be declared as pointer to const. However it seems that 'hostlist_matches_filter' is a callback function, if 'conf' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:880:16: note: You might need to cast the function pointer here sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:872:61: note: Parameter 'conf' can be declared as pointer to const sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:954:49: style: Parameter 'conf' can be declared as pointer to const. However it seems that 'cmnd_matches_filter' is a callback function, if 'conf' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:959:16: note: You might need to cast the function pointer here sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:954:49: note: Parameter 'conf' can be declared as pointer to const sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:45:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable member [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:80:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:101:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COMMAND [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:146:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ALL [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:229:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:288:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:367:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:401:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:424:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:472:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ALIAS [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:493:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:510:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:582:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:623:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:684:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:720:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEFAULTS_HOST [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:790:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:818:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:894:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:1059:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:1094:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable privilege_list [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:1156:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:1186:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:1267:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:114:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:220:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:320:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GETGROUPS_T [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:422:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:120:33: error: Dereferencing 'encoded' after it is deallocated / released [deallocuse] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:121:2: error: Memory pointed to by 'encoded' is freed twice. [doubleFree] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:117:6: note: Memory pointed to by 'encoded' is freed twice. sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:121:2: note: Memory pointed to by 'encoded' is freed twice. sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:243:22: style: Variable 'cmnd' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:351:73: style: Parameter 'options' can be declared as pointer to const. However it seems that 'print_cmndspec_ldif' is a callback function, if 'options' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:359:16: note: You might need to cast the function pointer here sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:351:73: note: Parameter 'options' can be declared as pointer to const sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:564:20: style: Variable 'node' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:90:27: warning:inconclusive: Possible null pointer dereference: s [nullPointer] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:84:32: note: Assignment 's=NULL', assigned value is 0 sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:90:27: note: Null pointer dereference sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:100:10: warning:inconclusive: Possible null pointer dereference: s [nullPointer] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:84:32: note: Assignment 's=NULL', assigned value is 0 sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:100:10: note: Null pointer dereference sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:103:32: warning:inconclusive: Possible null pointer dereference: s [nullPointer] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:84:32: note: Assignment 's=NULL', assigned value is 0 sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:100:20: note: Assuming condition is false sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:103:32: note: Null pointer dereference sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:196:27: warning:inconclusive: Possible null pointer dereference: s [nullPointer] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:190:32: note: Assignment 's=NULL', assigned value is 0 sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:196:27: note: Null pointer dereference sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:206:10: warning:inconclusive: Possible null pointer dereference: s [nullPointer] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:190:32: note: Assignment 's=NULL', assigned value is 0 sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:206:10: note: Null pointer dereference sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:209:32: warning:inconclusive: Possible null pointer dereference: s [nullPointer] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:190:32: note: Assignment 's=NULL', assigned value is 0 sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:206:20: note: Assuming condition is false sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:209:32: note: Null pointer dereference sudo-1.9.17p2/plugins/sudoers/defaults.c:95:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sudo_defs_table [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/defaults.c:203:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sudo_defs_table [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/defaults.c:229:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_INFO [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/defaults.c:341:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sudo_defs_table [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/defaults.c:369:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_INFO [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/defaults.c:397:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sudo_defs_table [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/defaults.c:424:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sudo_defs_table [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/defaults.c:435:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_MASK [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/defaults.c:454:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list_member [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/defaults.c:478:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sudo_defs_table [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/defaults.c:707:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SETDEF_GENERIC [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/defaults.c:744:74: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ALLOW [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/defaults.c:777:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_INFO [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/defaults.c:845:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/defaults.c:875:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/defaults.c:896:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/defaults.c:916:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/defaults.c:983:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIME_T_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/defaults.c:1078:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable freeall [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/defaults.c:1103:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable add [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/defaults.c:1150:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACCESSPERMS [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/defaults.c:1173:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/defaults.c:1189:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/defaults.c:1219:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable freeall [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/defaults.c:1269:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEFAULTS [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/defaults.c:1302:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:207:6: style: Condition '!overridden' is always true [knownConditionTrueFalse] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:200:20: note: Assignment 'overridden=false', assigned value is 0 sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:202:27: note: Assuming condition is false sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:207:6: note: Condition '!overridden' is always true sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:1273:36: warning:inconclusive: Either the condition 'parse_tree==NULL' is redundant or there is possible null pointer dereference: parse_tree. [nullPointerRedundantCheck] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:1271:20: note: Assuming that condition 'parse_tree==NULL' is not redundant sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:1273:36: note: Null pointer dereference sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:393:34: style: Variable 'closure' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:744:39: style: Parameter 'd1' can be declared as pointer to const. However it seems that 'defaults_val_matches' is a callback function, if 'd1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:746:16: note: You might need to cast the function pointer here sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:744:39: note: Parameter 'd1' can be declared as pointer to const sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:744:60: style: Parameter 'd2' can be declared as pointer to const. However it seems that 'defaults_val_matches' is a callback function, if 'd2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:746:16: note: You might need to cast the function pointer here sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:744:60: note: Parameter 'd2' can be declared as pointer to const sudo-1.9.17p2/plugins/sudoers/display.c:46:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/display.c:162:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/display.c:267:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/display.c:292:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/display.c:323:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/display.c:364:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HOSTALIAS [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/display.c:419:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEFAULTS_RUNAS [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/display.c:438:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_CONV_INFO_MSG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/display.c:475:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/display.c:549:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UNSPEC [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/display.c:615:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UNSPEC [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/editor.c:104:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GC_PTR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/editor.c:151:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FOUND [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/editor.c:247:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/editor.c:239:8: style: Variable 'editor' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/plugins/sudoers/defaults.c:326:12: warning: Comparison of a boolean expression with an integer other than 0 or 1. [compareBoolExpressionWithInt] sudo-1.9.17p2/plugins/sudoers/defaults.c:331:26: warning: Comparison of a boolean expression with an integer other than 0 or 1. [compareBoolExpressionWithInt] sudo-1.9.17p2/plugins/sudoers/defaults.c:1229:27: warning:inconclusive: Possible null pointer dereference: str [nullPointer] sudo-1.9.17p2/plugins/sudoers/defaults.c:1108:16: note: Calling function 'list_op', 1st argument 'NULL' value is 0 sudo-1.9.17p2/plugins/sudoers/defaults.c:1229:27: note: Null pointer dereference sudo-1.9.17p2/plugins/sudoers/defaults.c:1293:45: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'cb_passprompt_regex' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/plugins/sudoers/defaults.c:1298:16: note: You might need to cast the function pointer here sudo-1.9.17p2/plugins/sudoers/defaults.c:1293:45: note: Parameter 'ctx' can be declared as pointer to const sudo-1.9.17p2/plugins/sudoers/env.c:238:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GC_PTR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/env.c:257:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GC_PTR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/file.c:46:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sudoersin [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/env.c:340:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/file.c:64:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable def_ignore_local_sudoers [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/env.c:436:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_INFO [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/file.c:105:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/env.c:465:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/env.c:507:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/env.c:536:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_INFO [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/env.c:576:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_INFO [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/env.c:614:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/env.c:642:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable def_env_delete [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/env.c:687:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/env.c:705:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable def_env_check [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/env.c:730:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODE_SHELL [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/env.c:753:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_INFO [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/env.c:781:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_INFO [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/env.c:887:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GC_PTR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/env.c:1192:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable def_secure_path [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/env.c:1234:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/env.c:1255:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/env.c:1281:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PARSELN_CONT_IGN [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/env.c:1366:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable def_env_file [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/env.c:1413:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list_member [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/filedigest.c:55:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_INFO [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/find_path.c:93:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/filedigest.c:89:2: error: Used file that is not opened. [useClosedFile] sudo-1.9.17p2/plugins/sudoers/filedigest.c:62:2: error: Resource handle 'fd2' freed twice. [doubleFree] sudo-1.9.17p2/plugins/sudoers/filedigest.c:59:15: note: Resource handle 'fd2' freed twice. sudo-1.9.17p2/plugins/sudoers/filedigest.c:62:2: note: Resource handle 'fd2' freed twice. sudo-1.9.17p2/plugins/sudoers/fmtsudoers_cvt.c:52:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/fmtsudoers_cvt.c:112:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/fmtsudoers_cvt.c:148:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/fmtsudoers_cvt.c:178:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UNSPEC [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/fmtsudoers.c:64:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALLTHROUGH [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/fmtsudoers.c:200:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/fmtsudoers.c:256:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UNSPEC [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/fmtsudoers.c:311:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDOERS_QUOTED [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/fmtsudoers_cvt.c:63:14: style: Condition 'prev_cs==NULL' is always true [knownConditionTrueFalse] sudo-1.9.17p2/plugins/sudoers/fmtsudoers_cvt.c:61:15: note: Assignment 'prev_cs=NULL', assigned value is 0 sudo-1.9.17p2/plugins/sudoers/fmtsudoers_cvt.c:63:14: note: Condition 'prev_cs==NULL' is always true sudo-1.9.17p2/plugins/sudoers/gc.c:46:50: style: Parameter 'v' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/plugins/sudoers/gc.c:81:53: style: Parameter 'v' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/plugins/sudoers/gc.c:37:7: style: struct member 'sudoers_gc_entry::u' is never used. [unusedStructMember] sudo-1.9.17p2/plugins/sudoers/gc.c:35:9: style: union member 'Anonymous0::vec' is never used. [unusedStructMember] sudo-1.9.17p2/plugins/sudoers/gc.c:36:8: style: union member 'Anonymous0::ptr' is never used. [unusedStructMember] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:415:14: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] sudo-1.9.17p2/plugins/sudoers/gentime.c:67:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:66:71: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:124:39: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:125:40: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:126:43: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:128:42: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:129:39: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:197:58: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:200:77: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:256:58: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:259:77: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:277:52: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:280:81: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:340:49: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:343:84: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:386:41: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:403:35: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:545:92: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:584:74: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:592:92: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:613:98: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:628:98: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:641:57: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:670:57: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:724:67: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:727:79: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:734:90: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/sudoers/getspwuid.c:124:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:743:5: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/sudoers/getspwuid.c:138:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:744:5: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:746:5: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:752:5: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:776:63: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:814:57: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:871:74: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:882:57: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:967:41: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:982:35: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:988:48: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:1083:80: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:1086:69: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:1089:69: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:1097:63: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:1100:58: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:1122:60: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:1125:62: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:1152:70: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:1160:63: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:1196:80: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:1199:69: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:1202:68: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:1221:63: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:1224:58: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:1252:62: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:1255:56: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:1399:84: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:1402:79: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:1405:72: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:1408:77: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:1429:81: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/python/regress/check_python_examples.c:1432:62: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] sudo-1.9.17p2/plugins/sudoers/getspwuid.c:110:29: style: Condition 'epw' is always false [knownConditionTrueFalse] sudo-1.9.17p2/plugins/sudoers/getspwuid.c:65:17: note: Assignment 'epw=NULL', assigned value is 0 sudo-1.9.17p2/plugins/sudoers/getspwuid.c:110:29: note: Condition 'epw' is always false sudo-1.9.17p2/plugins/sudoers/getspwuid.c:65:11: style: Variable 'epw' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/plugins/sudoers/goodpath.c:48:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/group_plugin.c:285:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/group_plugin.c:302:41: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'cb_group_plugin' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/plugins/sudoers/group_plugin.c:306:16: note: You might need to cast the function pointer here sudo-1.9.17p2/plugins/sudoers/group_plugin.c:302:41: note: Parameter 'ctx' can be declared as pointer to const sudo-1.9.17p2/plugins/sudoers/interfaces.c:91:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/interfaces.c:129:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_CONV_INFO_MSG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/env.c:271:6: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] sudo-1.9.17p2/plugins/sudoers/env.c:1301:6: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] sudo-1.9.17p2/plugins/sudoers/env.c:1188:8: style: Variable 'eq' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/plugins/sudoers/iolog_path_escapes.c:91:29: style: Variable 'ctx' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/plugins/sudoers/iolog_path_escapes.c:116:29: style: Variable 'ctx' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/plugins/sudoers/iolog_path_escapes.c:146:29: style: Variable 'ctx' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/plugins/sudoers/iolog_path_escapes.c:154:29: style: Variable 'ctx' can be declared as pointer to const [constVariablePointer] gram.y:224:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LEAK_PTR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/iolog.c:92:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SESSID_MAX [valueFlowBailoutIncompleteVar] gram.y:1167:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable toke_start [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/iolog.c:145:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROOT_GID [valueFlowBailoutIncompleteVar] gram.y:1235:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sudoers_errstr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/iolog.c:215:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] gram.y:1253:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EEXIST [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/iolog.c:244:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] gram.y:1280:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable defaults [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/iolog.c:315:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROOT_UID [valueFlowBailoutIncompleteVar] gram.y:1305:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable member [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/iolog.c:700:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _PATH_SUDO_IO_LOGDIR [valueFlowBailoutIncompleteVar] gram.y:1325:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/iolog.c:786:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sudo_conv [valueFlowBailoutIncompleteVar] gram.y:1345:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/iolog.c:876:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IOFD_MAX [valueFlowBailoutIncompleteVar] gram.y:1376:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/iolog.c:944:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_CONV_INFO_MSG [valueFlowBailoutIncompleteVar] gram.y:1399:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/iolog.c:965:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IOFD_MAX [valueFlowBailoutIncompleteVar] gram.y:1438:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/iolog.c:1071:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_ERROR [valueFlowBailoutIncompleteVar] gram.y:1470:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/iolog.c:1111:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IO_EVENT_STDIN [valueFlowBailoutIncompleteVar] gram.y:1491:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/iolog.c:1117:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IO_EVENT_STDOUT [valueFlowBailoutIncompleteVar] gram.y:1505:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/iolog.c:1123:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IO_EVENT_STDERR [valueFlowBailoutIncompleteVar] gram.y:1523:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/iolog.c:1129:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IO_EVENT_TTYIN [valueFlowBailoutIncompleteVar] gram.y:1533:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/iolog.c:1135:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IO_EVENT_TTYOUT [valueFlowBailoutIncompleteVar] gram.y:1601:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/iolog.c:1148:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IO_EVENT_WINSIZE [valueFlowBailoutIncompleteVar] gram.y:1663:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/iolog.c:1200:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_ERROR [valueFlowBailoutIncompleteVar] gram.y:1678:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/iolog.c:1248:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IO_EVENT_SUSPEND [valueFlowBailoutIncompleteVar] gram.y:1694:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/iolog.c:1294:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG2STR_MAX [valueFlowBailoutIncompleteVar] gram.y:1731:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/iolog.c:1369:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] gram.y:1775:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDOERS_PARSER_CONFIG_INITIALIZER [valueFlowBailoutIncompleteVar] gram.y:1815:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UNSPEC [valueFlowBailoutIncompleteVar] gram.y:1852:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UNSPEC [valueFlowBailoutIncompleteVar] getdate.c:1018:5: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] getdate.c:1103:3: style: The comparison '0 <= yystate' is always true. [knownConditionTrueFalse] getdate.c:1045:31: note: 'yystate' is assigned value '0' here. getdate.c:1103:3: note: The comparison '0 <= yystate' is always true. getdate.y:810:19: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] getdate.y:810:33: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] getdate.c:1018:11: style: Variable 'yymsg' is assigned a value that is never used. [unreadVariable] sudo-1.9.17p2/plugins/sudoers/ldap.c:263:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LDAP_LOCAL_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/ldap.c:286:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LDAP_OPT_RESULT_CODE [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/ldap.c:317:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LDAP_NO_MEMORY [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/ldap.c:385:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LDAP_OPT_RESULT_CODE [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/ldap.c:416:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LDAP_NO_MEMORY [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/ldap.c:511:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/ldap.c:531:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable search_filter [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/ldap.c:563:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable netgroup_search_filter [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/ldap.c:654:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable timeout [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/ldap.c:821:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable timed [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/ldap.c:1029:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable def_use_netgroups [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/ldap.c:1120:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LDAP_NO_MEMORY [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/ldap.c:1191:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/ldap.c:1403:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/ldap.c:1427:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/ldap.c:1516:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bindpw [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/ldap.c:1568:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/ldap.c:1674:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/ldap.c:1765:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LDAP_NO_MEMORY [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/ldap.c:1851:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable timeout [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/ldap.c:1923:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/ldap.c:1975:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/iolog.c:852:13: warning: Comparison of a boolean expression with an integer other than 0 or 1. [compareBoolExpressionWithInt] sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:235:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINE_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:379:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:460:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:572:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PARSELN_COMM_BOL [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:846:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LDAP_OPT_SUCCESS [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:959:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LDAP_SUCCESS [valueFlowBailoutIncompleteVar] gram.c:1382:5: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] sudo-1.9.17p2/plugins/sudoers/iolog.c:182:2: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] sudo-1.9.17p2/plugins/sudoers/iolog.c:1140:22: style: Parameter 'delay' can be declared as pointer to const. However it seems that 'sudoers_io_change_winsize_local' is a callback function, if 'delay' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/plugins/sudoers/iolog.c:1365:33: note: You might need to cast the function pointer here sudo-1.9.17p2/plugins/sudoers/iolog.c:1140:22: note: Parameter 'delay' can be declared as pointer to const sudo-1.9.17p2/plugins/sudoers/iolog.c:1238:64: style: Parameter 'delay' can be declared as pointer to const. However it seems that 'sudoers_io_suspend_local' is a callback function, if 'delay' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/plugins/sudoers/iolog.c:1366:26: note: You might need to cast the function pointer here sudo-1.9.17p2/plugins/sudoers/iolog.c:1238:64: note: Parameter 'delay' can be declared as pointer to const gram.c:1467:3: style: The comparison '0 <= yystate' is always true. [knownConditionTrueFalse] gram.c:1409:31: note: 'yystate' is assigned value '0' here. gram.c:1467:3: note: The comparison '0 <= yystate' is always true. gram.c:2520:5: style:inconclusive: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] gram.y:1529:22: style: Variable 'prev' can be declared as pointer to const [constVariablePointer] gram.y:1529:29: style: Variable 'next' can be declared as pointer to const [constVariablePointer] gram.y:1593:11: style: Variable 'runcwd' can be declared as pointer to const [constVariablePointer] gram.y:1593:27: style: Variable 'runchroot' can be declared as pointer to const [constVariablePointer] gram.y:1594:11: style: Variable 'role' can be declared as pointer to const [constVariablePointer] gram.y:1594:25: style: Variable 'type' can be declared as pointer to const [constVariablePointer] gram.y:1595:11: style: Variable 'apparmor_profile' can be declared as pointer to const [constVariablePointer] gram.y:1596:11: style: Variable 'privs' can be declared as pointer to const [constVariablePointer] gram.y:1596:26: style: Variable 'limitprivs' can be declared as pointer to const [constVariablePointer] gram.y:1917:52: style: Parameter 'v' can be declared as pointer to const [constParameterPointer] gram.y:1967:55: style: Parameter 'v' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:309:1: style: Label 'overflow' is not used. [unusedLabel] gram.c:1382:11: style: Variable 'yymsg' is assigned a value that is never used. [unreadVariable] sudo-1.9.17p2/plugins/sudoers/ldap_innetgr.c:67:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_DEBUG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/ldap_innetgr.c:104:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/ldap_innetgr.c:169:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable netgroup_search_filter [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/ldap_innetgr.c:243:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable netgroup_base [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/locale.c:72:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_INFO [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/locale.c:93:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDOERS_LOCALE_USER [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/locale.c:138:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDOERS_LOCALE_USER [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/locale.c:151:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/ldap_util.c:142:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MYSELF [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/ldap_util.c:194:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/ldap_util.c:218:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NETGROUP [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/ldap_util.c:256:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DIGEST_INVALID [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/ldap_util.c:382:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/ldap_util.c:633:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ALL [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/ldap.c:960:17: style: The if condition is the same as the previous if condition [duplicateCondition] sudo-1.9.17p2/plugins/sudoers/ldap.c:944:17: note: First condition sudo-1.9.17p2/plugins/sudoers/ldap.c:960:17: note: Second condition sudo-1.9.17p2/plugins/sudoers/ldap.c:1076:2: error: Memory leak: filt [memleak] sudo-1.9.17p2/plugins/sudoers/ldap_innetgr.c:195:9: style: Variable 'val' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/plugins/sudoers/ldap.c:628:1: style: Label 'overflow' is not used. [unusedLabel] sudo-1.9.17p2/plugins/sudoers/ldap.c:1002:1: style: Label 'overflow' is not used. [unusedLabel] sudo-1.9.17p2/plugins/sudoers/lookup.c:46:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable def_runas_default [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/lookup.c:68:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UNSPEC [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/lookup.c:242:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ALLOW [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/lookup.c:335:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable def_role [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/lookup.c:510:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLAG_NO_USER [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/logging.c:261:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODE_POLICY_INTERCEPTED [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/logging.c:294:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLAG_NO_USER [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/logging.c:386:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLAG_NO_USER [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/logging.c:418:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable def_authfail_message [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/logging.c:518:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VALIDATE_SUCCESS [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/logging.c:596:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VALIDATE_SUCCESS [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/logging.c:624:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG2STR_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/logging.c:697:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/logging.c:718:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SLOG_AUDIT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/logging.c:851:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SLOG_GAI_ERRNO [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/logging.c:864:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EVLOG_RAW [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/logging.c:921:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SLOG_RAW_MSG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/logging.c:974:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable def_mailto [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/logging.c:1005:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable def_runchroot [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/logging.c:1073:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable def_syslog_pid [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/logging.c:1122:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/logging.c:1148:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable def_syslog [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/match.c:72:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UNSPEC [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/match.c:122:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UNSPEC [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/match.c:139:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable def_preserve_groups [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/match.c:162:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UNSPEC [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/match.c:234:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UNSPEC [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/match.c:311:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UNSPEC [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/match.c:348:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UNSPEC [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/match.c:384:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UNSPEC [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/match.c:447:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UNSPEC [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/match.c:460:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UNSPEC [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/match.c:499:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UNSPEC [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/match.c:539:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DENY [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/match.c:558:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DENY [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/match.c:591:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DENY [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/match.c:624:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DENY [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/match.c:750:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DENY [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/match_addr.c:63:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/match_addr.c:116:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/match_addr.c:205:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_DEBUG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/logging.c:272:9: style: Condition '!log_server_reject(ctx,&evlog,message)' is always false [knownConditionTrueFalse] sudo-1.9.17p2/plugins/sudoers/logging.c:272:27: note: Calling function 'log_server_reject' returns 1 sudo-1.9.17p2/plugins/sudoers/logging.c:272:9: note: Condition '!log_server_reject(ctx,&evlog,message)' is always false sudo-1.9.17p2/plugins/sudoers/logging.c:764:6: style: Condition '!log_server_alert(ctx,&evlog,message,errstr)' is always false [knownConditionTrueFalse] sudo-1.9.17p2/plugins/sudoers/logging.c:764:23: note: Calling function 'log_server_alert' returns 1 sudo-1.9.17p2/plugins/sudoers/logging.c:764:6: note: Condition '!log_server_alert(ctx,&evlog,message,errstr)' is always false sudo-1.9.17p2/plugins/sudoers/match_command.c:69:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/match_command.c:97:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ALLOW [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/match_command.c:127:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/logging.c:696:5: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: pe [nullPointerOutOfMemory] sudo-1.9.17p2/plugins/sudoers/logging.c:693:16: note: Assuming allocation function fails sudo-1.9.17p2/plugins/sudoers/logging.c:693:16: note: Assignment 'pe=malloc(sizeof(*pe))', assigned value is 0 sudo-1.9.17p2/plugins/sudoers/logging.c:696:5: note: Null pointer dereference sudo-1.9.17p2/plugins/sudoers/match_command.c:177:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/match_command.c:222:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable def_fdexec [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/match_command.c:263:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/match_command.c:390:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ALLOW [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/match_command.c:408:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/match_digest.c:46:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DIGEST_INVALID [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/match_command.c:467:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/match_command.c:527:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/match_command.c:707:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DENY [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/match_command.c:833:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DENY [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/logging.c:234:71: style: Parameter 'evlog' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/plugins/sudoers/logging.c:241:70: style: Parameter 'evlog' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/plugins/sudoers/logging.c:413:17: style: Variable 'dst_end' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/plugins/sudoers/parser_warnx.c:39:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sudoers_error_hook [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:73:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:187:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:221:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:249:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:286:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:337:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable userspec_list [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:488:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:629:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/policy.c:100:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODE_UPDATE_TICKET [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/policy.c:682:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GC_VECTOR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/policy.c:1143:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable log_parse_error [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/policy.c:1165:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/policy.c:1210:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable audit_msg [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/policy.c:1224:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODE_ASKPASS [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/policy.c:1269:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODE_NONINTERACTIVE [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/policy.c:1291:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODE_NONINTERACTIVE [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/policy.c:1309:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODE_NONINTERACTIVE [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/policy.c:1334:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_VERSION [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/prompt.c:169:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:256:2: warning: Either the condition '(d=calloc(1,sizeof(*d)))==NULL' is redundant or there is possible null pointer dereference: d. [nullPointerRedundantCheck] sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:250:34: note: Assuming that condition '(d=calloc(1,sizeof(*d)))==NULL' is not redundant sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:256:2: note: Null pointer dereference sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:257:2: warning: Either the condition '(d=calloc(1,sizeof(*d)))==NULL' is redundant or there is possible null pointer dereference: d. [nullPointerRedundantCheck] sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:250:34: note: Assuming that condition '(d=calloc(1,sizeof(*d)))==NULL' is not redundant sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:257:2: note: Null pointer dereference sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:258:2: warning: Either the condition '(d=calloc(1,sizeof(*d)))==NULL' is redundant or there is possible null pointer dereference: d. [nullPointerRedundantCheck] sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:250:34: note: Assuming that condition '(d=calloc(1,sizeof(*d)))==NULL' is not redundant sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:258:2: note: Null pointer dereference sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:259:7: warning: Either the condition '(d=calloc(1,sizeof(*d)))==NULL' is redundant or there is possible null pointer dereference: d. [nullPointerRedundantCheck] sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:250:34: note: Assuming that condition '(d=calloc(1,sizeof(*d)))==NULL' is not redundant sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:259:7: note: Null pointer dereference sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:355:6: warning: Either the condition '(m=calloc(1,sizeof(*m)))==NULL' is redundant or there is possible null pointer dereference: m. [nullPointerRedundantCheck] sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:351:38: note: Assuming that condition '(m=calloc(1,sizeof(*m)))==NULL' is not redundant sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:355:6: note: Null pointer dereference sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:393:19: warning:inconclusive: Possible null pointer dereference: comment [nullPointer] sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:389:36: note: Assignment 'comment=NULL', assigned value is 0 sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:393:19: note: Null pointer dereference sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:652:17: warning: Either the condition '(tmp=realloc(savedline,linesize))==NULL' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck] sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:648:47: note: Assuming that condition '(tmp=realloc(savedline,linesize))==NULL' is not redundant sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:652:17: note: Null pointer addition sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:501:20: style: Variable 'prev_role' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/plugins/sudoers/policy.c:950:6: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] sudo-1.9.17p2/plugins/sudoers/ldap_util.c:455:31: style: Condition 'cmndspec->runasuserlist==NULL' is always true [knownConditionTrueFalse] sudo-1.9.17p2/plugins/sudoers/ldap_util.c:454:27: note: Calling function 'array_to_member_list' returns 0 sudo-1.9.17p2/plugins/sudoers/ldap_util.c:454:27: note: Assignment 'cmndspec->runasuserlist=array_to_member_list(runasusers,iter)', assigned value is 0 sudo-1.9.17p2/plugins/sudoers/ldap_util.c:455:31: note: Condition 'cmndspec->runasuserlist==NULL' is always true sudo-1.9.17p2/plugins/sudoers/ldap_util.c:463:32: style: Condition 'cmndspec->runasgrouplist==NULL' is always true [knownConditionTrueFalse] sudo-1.9.17p2/plugins/sudoers/ldap_util.c:462:27: note: Calling function 'array_to_member_list' returns 0 sudo-1.9.17p2/plugins/sudoers/ldap_util.c:462:27: note: Assignment 'cmndspec->runasgrouplist=array_to_member_list(runasgroups,iter)', assigned value is 0 sudo-1.9.17p2/plugins/sudoers/ldap_util.c:463:32: note: Condition 'cmndspec->runasgrouplist==NULL' is always true sudo-1.9.17p2/plugins/sudoers/ldap_util.c:183:18: style: Parameter 'host' can be declared as pointer to const. However it seems that 'is_address' is a callback function, if 'host' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/plugins/sudoers/ldap_util.c:188:16: note: You might need to cast the function pointer here sudo-1.9.17p2/plugins/sudoers/ldap_util.c:183:18: note: Parameter 'host' can be declared as pointer to const sudo-1.9.17p2/plugins/sudoers/ldap_util.c:362:22: style: Variable 'prev_cmndspec' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/plugins/sudoers/policy.c:99:31: style: Variable 'info' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/plugins/sudoers/policy.c:1086:45: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'sudoers_tty_present' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/plugins/sudoers/policy.c:1088:16: note: You might need to cast the function pointer here sudo-1.9.17p2/plugins/sudoers/policy.c:1086:45: note: Parameter 'ctx' can be declared as pointer to const sudo-1.9.17p2/plugins/sudoers/pwutil_impl.c:100:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/pwutil_impl.c:181:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/pwutil_impl.c:256:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENTRY_TYPE_QUERIED [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/pwutil_impl.c:368:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENTRY_TYPE_ANY [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/pwutil_impl.c:449:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_INFO [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/pwutil.c:108:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/redblack.c:93:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/pwutil.c:169:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENTRY_TYPE_ANY [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/redblack.c:142:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/pwutil.c:183:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/redblack.c:168:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/pwutil.c:195:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/redblack.c:197:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/pwutil.c:203:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/redblack.c:305:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable preorder [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/pwutil.c:241:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/redblack.c:358:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/pwutil.c:313:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/redblack.c:371:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/pwutil.c:376:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _PATH_BSHELL [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/redblack.c:397:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable black [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/pwutil.c:461:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_DIAG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/redblack.c:428:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable red [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/pwutil.c:482:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/pwutil.c:506:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/pwutil.c:518:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/pwutil.c:526:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/pwutil.c:558:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/pwutil.c:624:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/pwutil.c:775:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_DIAG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/pwutil.c:788:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/pwutil.c:800:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/pwutil.c:808:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/pwutil.c:816:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/pwutil.c:828:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/pwutil.c:836:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/pwutil.c:861:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/pwutil.c:871:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_DEBUG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/pwutil.c:932:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/pwutil.c:962:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_DEBUG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/pwutil.c:1012:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_DEBUG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/pwutil.c:1073:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_DEBUG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/pwutil.c:1135:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_DIAG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/pwutil.c:1220:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable def_runas_check_shell [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/regress/check_symbols/check_symbols.c:37:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/regress/check_symbols/check_symbols.c:47:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINE_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/regress/check_symbols/check_symbols.c:82:38: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] sudo-1.9.17p2/plugins/sudoers/regress/check_symbols/check_symbols.c:78:15: note: Assuming allocation function fails sudo-1.9.17p2/plugins/sudoers/regress/check_symbols/check_symbols.c:78:15: note: Assignment 'fp=fopen(symbols_file,"r")', assigned value is 0 sudo-1.9.17p2/plugins/sudoers/regress/check_symbols/check_symbols.c:82:38: note: Null pointer dereference sudo-1.9.17p2/plugins/sudoers/regress/editor/check_editor.c:93:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NOT_FOUND_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/regress/editor/check_editor.c:111:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/pwutil_impl.c:98:17: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] sudo-1.9.17p2/plugins/sudoers/pwutil_impl.c:98:40: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] sudo-1.9.17p2/plugins/sudoers/pwutil_impl.c:179:17: portability: Non reentrant function 'getgrnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrnam_r'. [prohibitedgetgrnamCalled] sudo-1.9.17p2/plugins/sudoers/pwutil_impl.c:179:40: portability: Non reentrant function 'getgrgid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrgid_r'. [prohibitedgetgrgidCalled] sudo-1.9.17p2/plugins/sudoers/redblack.c:201:5: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: node [nullPointerOutOfMemory] sudo-1.9.17p2/plugins/sudoers/redblack.c:195:18: note: Assuming allocation function fails sudo-1.9.17p2/plugins/sudoers/redblack.c:195:18: note: Assignment 'node=malloc(sizeof(*node))', assigned value is 0 sudo-1.9.17p2/plugins/sudoers/redblack.c:201:5: note: Null pointer dereference sudo-1.9.17p2/plugins/sudoers/redblack.c:202:5: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: node [nullPointerOutOfMemory] sudo-1.9.17p2/plugins/sudoers/redblack.c:195:18: note: Assuming allocation function fails sudo-1.9.17p2/plugins/sudoers/redblack.c:195:18: note: Assignment 'node=malloc(sizeof(*node))', assigned value is 0 sudo-1.9.17p2/plugins/sudoers/redblack.c:202:5: note: Null pointer dereference sudo-1.9.17p2/plugins/sudoers/redblack.c:202:18: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: node [nullPointerOutOfMemory] sudo-1.9.17p2/plugins/sudoers/redblack.c:195:18: note: Assuming allocation function fails sudo-1.9.17p2/plugins/sudoers/redblack.c:195:18: note: Assignment 'node=malloc(sizeof(*node))', assigned value is 0 sudo-1.9.17p2/plugins/sudoers/redblack.c:202:18: note: Null pointer dereference sudo-1.9.17p2/plugins/sudoers/redblack.c:203:5: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: node [nullPointerOutOfMemory] sudo-1.9.17p2/plugins/sudoers/redblack.c:195:18: note: Assuming allocation function fails sudo-1.9.17p2/plugins/sudoers/redblack.c:195:18: note: Assignment 'node=malloc(sizeof(*node))', assigned value is 0 sudo-1.9.17p2/plugins/sudoers/redblack.c:203:5: note: Null pointer dereference sudo-1.9.17p2/plugins/sudoers/redblack.c:208:5: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: node [nullPointerOutOfMemory] sudo-1.9.17p2/plugins/sudoers/redblack.c:195:18: note: Assuming allocation function fails sudo-1.9.17p2/plugins/sudoers/redblack.c:195:18: note: Assignment 'node=malloc(sizeof(*node))', assigned value is 0 sudo-1.9.17p2/plugins/sudoers/redblack.c:208:5: note: Null pointer dereference sudo-1.9.17p2/plugins/sudoers/redblack.c:233:12: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: node [nullPointerOutOfMemory] sudo-1.9.17p2/plugins/sudoers/redblack.c:195:18: note: Assuming allocation function fails sudo-1.9.17p2/plugins/sudoers/redblack.c:195:18: note: Assignment 'node=malloc(sizeof(*node))', assigned value is 0 sudo-1.9.17p2/plugins/sudoers/redblack.c:233:12: note: Null pointer dereference sudo-1.9.17p2/plugins/sudoers/pwutil_impl.c:175:19: style: Variable 'gr' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/plugins/sudoers/redblack.c:326:49: style: Parameter 'node' can be declared as pointer to const. However it seems that 'rbsuccessor' is a callback function, if 'node' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/plugins/sudoers/redblack.c:329:16: note: You might need to cast the function pointer here sudo-1.9.17p2/plugins/sudoers/redblack.c:326:49: note: Parameter 'node' can be declared as pointer to const sudo-1.9.17p2/plugins/sudoers/regress/editor/check_editor.c:139:13: warning: Either the condition 'env_editor' is redundant or there is possible null pointer dereference: env_editor. [nullPointerRedundantCheck] sudo-1.9.17p2/plugins/sudoers/regress/editor/check_editor.c:141:15: note: Assuming that condition 'env_editor' is not redundant sudo-1.9.17p2/plugins/sudoers/regress/editor/check_editor.c:139:13: note: Null pointer dereference sudo-1.9.17p2/plugins/sudoers/regress/env_match/check_env_pattern.c:32:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/regress/exptilde/check_exptilde.c:68:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/regress/env_match/check_env_pattern.c:39:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/regress/env_match/check_env_pattern.c:74:8: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_stubs.c:50:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable interfaces [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_sudoers.c:110:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NOT_FOUND_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_sudoers.c:225:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_sudoers_ldif.c:64:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NOT_FOUND [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_sudoers_ldif.c:148:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:532:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:704:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:714:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AUTH_SUCCESS [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:813:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VALIDATE_SUCCESS [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:840:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NOT_FOUND [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_sudoers_ldif.c:38:67: style: Parameter 'keepopen' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_sudoers_ldif.c:61:39: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_sudoers_ldif.c:95:28: style: Parameter 'replies' can be declared as const array. However it seems that 'fuzz_conversation' is a callback function, if 'replies' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_sudoers_ldif.c:137:29: note: You might need to cast the function pointer here sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_sudoers_ldif.c:95:28: note: Parameter 'replies' can be declared as const array sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_sudoers_ldif.c:95:66: style: Parameter 'callback' can be declared as pointer to const. However it seems that 'fuzz_conversation' is a callback function, if 'callback' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_sudoers_ldif.c:137:29: note: You might need to cast the function pointer here sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_sudoers_ldif.c:95:66: note: Parameter 'callback' can be declared as pointer to const sudo-1.9.17p2/plugins/sudoers/regress/iolog_plugin/check_iolog_plugin.c:50:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/regress/iolog_plugin/check_iolog_plugin.c:63:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/regress/iolog_plugin/check_iolog_plugin.c:162:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINE_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/regress/iolog_plugin/check_iolog_plugin.c:215:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/regress/iolog_plugin/check_iolog_plugin.c:378:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optind [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_sudoers.c:56:67: style: Parameter 'keepopen' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_sudoers.c:74:28: style: Parameter 'replies' can be declared as const array. However it seems that 'fuzz_conversation' is a callback function, if 'replies' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_sudoers.c:222:29: note: You might need to cast the function pointer here sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_sudoers.c:74:28: note: Parameter 'replies' can be declared as const array sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_sudoers.c:74:66: style: Parameter 'callback' can be declared as pointer to const. However it seems that 'fuzz_conversation' is a callback function, if 'callback' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_sudoers.c:222:29: note: You might need to cast the function pointer here sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_sudoers.c:74:66: note: Parameter 'callback' can be declared as pointer to const sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_sudoers.c:132:41: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'sudo_fuzz_query' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_sudoers.c:314:27: note: You might need to cast the function pointer here sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_sudoers.c:132:41: note: Parameter 'ctx' can be declared as pointer to const sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_sudoers.c:133:20: style: Parameter 'pw' can be declared as pointer to const. However it seems that 'sudo_fuzz_query' is a callback function, if 'pw' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_sudoers.c:314:27: note: You might need to cast the function pointer here sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_sudoers.c:133:20: note: Parameter 'pw' can be declared as pointer to const sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_sudoers.c:139:38: style: Parameter 'parse_tree' can be declared as pointer to const. However it seems that 'cb_unused' is a callback function, if 'parse_tree' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_sudoers.c:403:42: note: You might need to cast the function pointer here sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_sudoers.c:139:38: note: Parameter 'parse_tree' can be declared as pointer to const sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_sudoers.c:139:64: style: Parameter 'a' can be declared as pointer to const. However it seems that 'cb_unused' is a callback function, if 'a' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_sudoers.c:403:42: note: You might need to cast the function pointer here sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_sudoers.c:139:64: note: Parameter 'a' can be declared as pointer to const sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_sudoers.c:139:73: style: Parameter 'v' can be declared as pointer to const. However it seems that 'cb_unused' is a callback function, if 'v' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_sudoers.c:403:42: note: You might need to cast the function pointer here sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_sudoers.c:139:73: note: Parameter 'v' can be declared as pointer to const sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_sudoers.c:145:38: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_sudoers.c:152:39: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/plugins/sudoers/regress/parser/check_addr.c:60:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ALLOW [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/regress/parser/check_addr.c:71:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/regress/parser/check_addr.c:95:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optind [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:138:28: style: Parameter 'replies' can be declared as const array. However it seems that 'fuzz_conversation' is a callback function, if 'replies' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:419:46: note: You might need to cast the function pointer here sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:138:28: note: Parameter 'replies' can be declared as const array sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:138:66: style: Parameter 'callback' can be declared as pointer to const. However it seems that 'fuzz_conversation' is a callback function, if 'callback' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:419:46: note: You might need to cast the function pointer here sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:138:66: note: Parameter 'callback' can be declared as pointer to const sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:169:34: style: Parameter 'hook' can be declared as pointer to const. However it seems that 'fuzz_hook_stub' is a callback function, if 'hook' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:522:55: note: You might need to cast the function pointer here sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:169:34: note: Parameter 'hook' can be declared as pointer to const sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:567:75: style: Parameter 'pw' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:603:40: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'sudo_file_open' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:691:5: note: You might need to cast the function pointer here sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:603:40: note: Parameter 'ctx' can be declared as pointer to const sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:603:62: style: Parameter 'nss' can be declared as pointer to const. However it seems that 'sudo_file_open' is a callback function, if 'nss' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:691:5: note: You might need to cast the function pointer here sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:603:62: note: Parameter 'nss' can be declared as pointer to const sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:610:41: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'sudo_file_close' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:692:5: note: You might need to cast the function pointer here sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:610:41: note: Parameter 'ctx' can be declared as pointer to const sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:610:63: style: Parameter 'nss' can be declared as pointer to const. However it seems that 'sudo_file_close' is a callback function, if 'nss' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:692:5: note: You might need to cast the function pointer here sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:610:63: note: Parameter 'nss' can be declared as pointer to const sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:617:41: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'sudo_file_parse' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:693:5: note: You might need to cast the function pointer here sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:617:41: note: Parameter 'ctx' can be declared as pointer to const sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:626:41: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'sudo_file_query' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:694:5: note: You might need to cast the function pointer here sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:626:41: note: Parameter 'ctx' can be declared as pointer to const sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:627:20: style: Parameter 'pw' can be declared as pointer to const. However it seems that 'sudo_file_query' is a callback function, if 'pw' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:694:5: note: You might need to cast the function pointer here sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:627:20: note: Parameter 'pw' can be declared as pointer to const sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:711:36: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:801:62: style: Parameter 'argv' can be declared as const array [constParameter] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:809:38: style: Parameter 'snl' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:809:67: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:810:62: style: Parameter 'cb_data' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:811:10: style: Parameter 'cmnd_status' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:818:38: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:819:20: style: Parameter 'pw' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:826:39: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:827:20: style: Parameter 'pw' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:882:35: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:890:39: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:898:40: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:906:39: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:914:41: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/plugins/sudoers/regress/fuzz/fuzz_policy.c:922:43: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/plugins/sudoers/regress/parser/check_addr.c:120:38: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] sudo-1.9.17p2/plugins/sudoers/regress/parser/check_addr.c:101:15: note: Assuming allocation function fails sudo-1.9.17p2/plugins/sudoers/regress/parser/check_addr.c:101:15: note: Assignment 'fp=fopen(argv[0],"r")', assigned value is 0 sudo-1.9.17p2/plugins/sudoers/regress/parser/check_addr.c:120:38: note: Null pointer dereference sudo-1.9.17p2/plugins/sudoers/regress/parser/check_base64.c:84:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/regress/parser/check_digest.c:101:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/regress/parser/check_fill.c:147:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/regress/parser/check_fill.c:179:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/regress/parser/check_gentime.c:73:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/regress/iolog_plugin/check_iolog_plugin.c:386:16: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] sudo-1.9.17p2/plugins/sudoers/regress/parser/check_fill.c:183:5: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] sudo-1.9.17p2/plugins/sudoers/regress/iolog_plugin/check_iolog_plugin.c:387:13: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] sudo-1.9.17p2/plugins/sudoers/regress/parser/check_fill.c:184:5: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] sudo-1.9.17p2/plugins/sudoers/regress/iolog_plugin/check_iolog_plugin.c:393:16: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] sudo-1.9.17p2/plugins/sudoers/regress/iolog_plugin/check_iolog_plugin.c:350:2: error: Resource leak: fp [resourceLeak] sudo-1.9.17p2/plugins/sudoers/regress/iolog_plugin/check_iolog_plugin.c:355:2: error: Resource leak: fp [resourceLeak] sudo-1.9.17p2/plugins/sudoers/regress/iolog_plugin/check_iolog_plugin.c:357:1: error: Resource leak: fp [resourceLeak] sudo-1.9.17p2/plugins/sudoers/regress/parser/check_fill.c:215:52: style: Parameter 'v' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/plugins/sudoers/regress/parser/check_fill.c:222:55: style: Parameter 'v' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/plugins/sudoers/regress/serialize_list/check_serialize_list.c:44:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/regress/serialize_list/check_serialize_list.c:81:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/regress/starttime/check_starttime.c:148:22: style: Parameter 'argv' can be declared as const array [constParameter] sudo-1.9.17p2/plugins/sudoers/regress/serialize_list/check_serialize_list.c:85:5: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] sudo-1.9.17p2/plugins/sudoers/regress/serialize_list/check_serialize_list.c:86:5: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] sudo-1.9.17p2/plugins/sudoers/pwutil.c:669:16: style: Variable 'mem' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/plugins/sudoers/pwutil.c:868:20: style: Variable 'node' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/plugins/sudoers/pwutil.c:1009:20: style: Variable 'node' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/plugins/sudoers/resolve_cmnd.c:39:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NOT_FOUND_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/serialize_list.c:45:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/regress/unescape/check_unesc.c:152:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable strlcpy_unescape [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/regress/unescape/check_unesc.c:180:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/sethost.c:53:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/serialize_list.c:41:11: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/plugins/sudoers/set_perms.c:1491:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/set_perms.c:1600:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_INFO [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/sethost.c:42:11: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/plugins/sudoers/regress/unescape/check_unesc.c:184:5: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] sudo-1.9.17p2/plugins/sudoers/regress/unescape/check_unesc.c:185:5: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] sudo-1.9.17p2/plugins/sudoers/starttime.c:338:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_WARN [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/set_perms.c:62:11: style: struct member 'perm_state::euid' is never used. [unusedStructMember] sudo-1.9.17p2/plugins/sudoers/set_perms.c:67:11: style: struct member 'perm_state::egid' is never used. [unusedStructMember] sudo-1.9.17p2/plugins/sudoers/strvec_join.c:58:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sudo_strlcpy [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/strlist.c:85:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/stubs.c:79:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable interfaces [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/stubs.c:88:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NOT_FOUND [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/sudo_nss.c:241:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/sudo_nss.c:256:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UNSPEC [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/stubs.c:85:39: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/plugins/sudoers/sudo_printf.c:40:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/sudoers_cb.c:70:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PF_UNSPEC [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/sudoers_cb.c:119:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SLOG_PARSE_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/sudoers_cb.c:176:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable def_timestamp_type [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/sudoers_cb.c:189:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACCESSPERMS [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/sudoers_cb.c:200:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_INFO [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/sudoers_cb.c:216:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable def_syslog [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/sudoers_cb.c:238:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable def_logfile [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/sudoers_cb.c:378:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dso [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/sudoers_cb.c:397:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USER_INTERCEPT_SETID [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/sudoers_cb.c:409:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable def_log_stdin [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/sudoers_cb.c:421:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable def_log_stdout [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/sudoers_cb.c:439:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sudo_defs_table [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/sudoers_ctx_free.c:87:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/sudoers_debug.c:71:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_INSTANCE_INITIALIZER [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/sudoers_hooks.c:51:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/sudoers_debug.c:95:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/sudoers_hooks.c:93:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_HOOK_RET_NEXT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/sudoers_debug.c:129:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/sudoers_hooks.c:121:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_HOOK_RET_NEXT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/sudoers_hooks.c:135:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_HOOK_RET_NEXT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/sudoers_hooks.c:149:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_HOOK_RET_NEXT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/sudoers_hooks.c:60:2: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] sudo-1.9.17p2/plugins/sudoers/sudoers_hooks.c:130:79: style: Parameter 'closure' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/plugins/sudoers/sudoers_hooks.c:144:47: style: Parameter 'closure' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/plugins/sudoers/sudoers.c:147:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sudoers_error_hook [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/sudoers.c:195:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOCALEDIR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/sudoers.c:288:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/sudoers.c:329:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UNSPEC [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/sudoers.c:354:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODE_LIST [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/sudoers.c:640:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACCESSPERMS [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/sudoers.c:897:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sudoers_warn_setlocale [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/sudoers.c:946:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sudoers_warn_setlocale [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/sudoers.c:1013:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable def_sudoers_locale [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/sudoers.c:1101:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODE_CHECK [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/sudoers.c:1154:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FOUND [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/sudoers.c:1255:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/sudoers.c:1283:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/sudoers.c:1512:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/sudoers.c:1566:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EVLOG_JSON_COMPACT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/testsudoers.c:676:5: error: There is an unknown macro here somewhere. Configuration is required. If TAILQ_FOREACH_SAFE is a macro then please configure it. [unknownMacro] sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:787:58: error: syntax error [syntaxError] sudo-1.9.17p2/plugins/sudoers/sudoers_cb.c:83:6: error: Memory pointed to by 'res0' is freed twice. [doubleFree] sudo-1.9.17p2/plugins/sudoers/sudoers_cb.c:76:2: note: Memory pointed to by 'res0' is freed twice. sudo-1.9.17p2/plugins/sudoers/sudoers_cb.c:83:6: note: Memory pointed to by 'res0' is freed twice. sudo-1.9.17p2/plugins/sudoers/sudoers_cb.c:89:5: error: Memory pointed to by 'res0' is freed twice. [doubleFree] sudo-1.9.17p2/plugins/sudoers/sudoers_cb.c:76:2: note: Memory pointed to by 'res0' is freed twice. sudo-1.9.17p2/plugins/sudoers/sudoers_cb.c:89:5: note: Memory pointed to by 'res0' is freed twice. sudo-1.9.17p2/plugins/sudoers/sudoers_cb.c:65:11: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/plugins/sudoers/timeout.c:57:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/timestamp.c:118:59: error: syntax error [syntaxError] sudo-1.9.17p2/plugins/sudoers/toke_util.c:68:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/toke_util.c:84:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LEAK_PTR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/toke_util.c:99:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable string [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/toke_util.c:133:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cmnd [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/toke_util.c:202:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable args [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/tsgetgrpw.c:118:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINE_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/tsgetgrpw.c:261:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINE_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/tsgetgrpw.c:360:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _SC_NGROUPS_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/tsdump.c:86:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOCALEDIR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/tsdump.c:178:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable timestamp_entry_v1 [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/tsdump.c:227:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TS_DISABLED [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/tsdump.c:255:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TS_VERSION [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/tsdump.c:304:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TS_TTY [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/tsdump.c:326:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/sudoers.c:940:37: style: Parameter 'argv' can be declared as const array. However it seems that 'sudoers_list' is a callback function, if 'argv' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/plugins/sudoers/sudoers.c:944:16: note: You might need to cast the function pointer here sudo-1.9.17p2/plugins/sudoers/sudoers.c:940:37: note: Parameter 'argv' can be declared as const array sudo-1.9.17p2/plugins/sudoers/sudoers.c:1411:40: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/plugins/sudoers/tsdump.c:129:26: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] sudo-1.9.17p2/plugins/sudoers/tsdump.c:228:26: style: Condition 'first' is always true [knownConditionTrueFalse] sudo-1.9.17p2/plugins/sudoers/tsdump.c:223:18: note: Assignment 'first=true', assigned value is 1 sudo-1.9.17p2/plugins/sudoers/tsdump.c:228:26: note: Condition 'first' is always true sudo-1.9.17p2/plugins/sudoers/tsdump.c:129:21: style: Variable 'pw' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/plugins/sudoers/unesc_str.c:37:11: style: Variable 'ep' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/plugins/sudoers/visudo_cb.c:47:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sudo_defs_table [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/plugins/sudoers/tsgetgrpw.c:356:19: style: Variable 'grp' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/plugins/sudoers/visudo.c:588:68: error: syntax error [syntaxError] sudo-1.9.17p2/plugins/system_group/system_group.c:64:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GROUP_API_VERSION_MAJOR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/conversation.c:52:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sudo_debug_instance [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/conversation.c:165:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/copy_file.c:47:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/copy_file.c:92:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/copy_file.c:165:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ALLPERMS [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/env_hooks.c:87:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/env_hooks.c:142:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DSO_NEXT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/env_hooks.c:171:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/env_hooks.c:216:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DSO_NEXT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/env_hooks.c:244:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/env_hooks.c:275:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DSO_NEXT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/env_hooks.c:180:2: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] sudo-1.9.17p2/src/exec.c:67:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec.c:165:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CD_SET_GROUPS [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec.c:290:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_SETMASK [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec.c:322:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NSIG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec.c:368:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CD_USE_PTY [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec.c:411:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CD_RBAC_ENABLED [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec.c:456:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CD_BACKGROUND [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec.c:527:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec.c:582:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_common.c:102:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_INFO [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_common.c:125:6: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] sudo-1.9.17p2/src/exec.c:262:54: style: Parameter 'mask' can be declared as pointer to const. However it seems that 'exec_cmnd' is a callback function, if 'mask' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/src/exec.c:265:16: note: You might need to cast the function pointer here sudo-1.9.17p2/src/exec.c:262:54: note: Parameter 'mask' can be declared as pointer to const sudo-1.9.17p2/src/exec_intercept.c:1107:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_iolog.c:56:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_iolog.c:89:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SFD_USERTTY [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_iolog.c:113:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_GETFL [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_iolog.c:154:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_iolog.c:192:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_iolog.c:288:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_iolog.c:309:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_BLOCK [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_iolog.c:349:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_BLOCK [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_iolog.c:389:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_BLOCK [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_iolog.c:440:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_BLOCK [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_iolog.c:491:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_BLOCK [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_iolog.c:542:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_BLOCK [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_iolog.c:577:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_BLOCK [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_monitor.c:79:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_monitor.c:139:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CMD_INVALID [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_monitor.c:161:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG2STR_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_monitor.c:256:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_monitor.c:283:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_monitor.c:324:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MSG_WAITALL [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_monitor.c:363:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable io_fds [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_monitor.c:426:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_monitor.c:445:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_EV_READ [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_monitor.c:530:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable io_fds [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_monitor.c:564:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable io_fds [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_nopty.c:61:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIOCGWINSZ [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_nopty.c:89:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_nopty.c:124:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG2STR_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_nopty.c:222:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_nopty.c:239:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_EV_READ [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_nopty.c:360:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_nopty.c:418:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_nopty.c:512:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_INFO [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_nopty.c:573:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CLOEXEC [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_nopty.c:745:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG2STR_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_iolog.c:123:5: warning: Either the condition '(iob=malloc(sizeof(*iob)))==NULL' is redundant or there is possible null pointer dereference: iob. [nullPointerRedundantCheck] sudo-1.9.17p2/src/exec_iolog.c:121:38: note: Assuming that condition '(iob=malloc(sizeof(*iob)))==NULL' is not redundant sudo-1.9.17p2/src/exec_iolog.c:123:5: note: Null pointer dereference sudo-1.9.17p2/src/exec_iolog.c:124:5: warning:inconclusive: Either the condition '(iob=malloc(sizeof(*iob)))==NULL' is redundant or there is possible null pointer dereference: iob. [nullPointerRedundantCheck] sudo-1.9.17p2/src/exec_iolog.c:121:38: note: Assuming that condition '(iob=malloc(sizeof(*iob)))==NULL' is not redundant sudo-1.9.17p2/src/exec_iolog.c:124:5: note: Null pointer dereference sudo-1.9.17p2/src/exec_iolog.c:126:5: warning:inconclusive: Either the condition '(iob=malloc(sizeof(*iob)))==NULL' is redundant or there is possible null pointer dereference: iob. [nullPointerRedundantCheck] sudo-1.9.17p2/src/exec_iolog.c:121:38: note: Assuming that condition '(iob=malloc(sizeof(*iob)))==NULL' is not redundant sudo-1.9.17p2/src/exec_iolog.c:126:5: note: Null pointer dereference sudo-1.9.17p2/src/exec_iolog.c:128:5: warning:inconclusive: Either the condition '(iob=malloc(sizeof(*iob)))==NULL' is redundant or there is possible null pointer dereference: iob. [nullPointerRedundantCheck] sudo-1.9.17p2/src/exec_iolog.c:121:38: note: Assuming that condition '(iob=malloc(sizeof(*iob)))==NULL' is not redundant sudo-1.9.17p2/src/exec_iolog.c:128:5: note: Null pointer dereference sudo-1.9.17p2/src/exec_iolog.c:129:5: warning:inconclusive: Either the condition '(iob=malloc(sizeof(*iob)))==NULL' is redundant or there is possible null pointer dereference: iob. [nullPointerRedundantCheck] sudo-1.9.17p2/src/exec_iolog.c:121:38: note: Assuming that condition '(iob=malloc(sizeof(*iob)))==NULL' is not redundant sudo-1.9.17p2/src/exec_iolog.c:129:5: note: Null pointer dereference sudo-1.9.17p2/src/exec_iolog.c:130:5: warning:inconclusive: Either the condition '(iob=malloc(sizeof(*iob)))==NULL' is redundant or there is possible null pointer dereference: iob. [nullPointerRedundantCheck] sudo-1.9.17p2/src/exec_iolog.c:121:38: note: Assuming that condition '(iob=malloc(sizeof(*iob)))==NULL' is not redundant sudo-1.9.17p2/src/exec_iolog.c:130:5: note: Null pointer dereference sudo-1.9.17p2/src/exec_iolog.c:131:5: warning:inconclusive: Either the condition '(iob=malloc(sizeof(*iob)))==NULL' is redundant or there is possible null pointer dereference: iob. [nullPointerRedundantCheck] sudo-1.9.17p2/src/exec_iolog.c:121:38: note: Assuming that condition '(iob=malloc(sizeof(*iob)))==NULL' is not redundant sudo-1.9.17p2/src/exec_iolog.c:131:5: note: Null pointer dereference sudo-1.9.17p2/src/exec_iolog.c:132:9: warning:inconclusive: Either the condition '(iob=malloc(sizeof(*iob)))==NULL' is redundant or there is possible null pointer dereference: iob. [nullPointerRedundantCheck] sudo-1.9.17p2/src/exec_iolog.c:121:38: note: Assuming that condition '(iob=malloc(sizeof(*iob)))==NULL' is not redundant sudo-1.9.17p2/src/exec_iolog.c:132:9: note: Null pointer dereference sudo-1.9.17p2/src/exec_ptrace.c:2130:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CD_USE_PTRACE [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_ptrace.c:2133:10: style: Condition '!exec_ptrace_intercept_supported()' is always true [knownConditionTrueFalse] sudo-1.9.17p2/src/exec_ptrace.c:2133:42: note: Calling function 'exec_ptrace_intercept_supported' returns 0 sudo-1.9.17p2/src/exec_ptrace.c:2133:10: note: Condition '!exec_ptrace_intercept_supported()' is always true sudo-1.9.17p2/src/exec_ptrace.c:2136:10: style: Condition '!exec_ptrace_subcmds_supported()' is always true [knownConditionTrueFalse] sudo-1.9.17p2/src/exec_ptrace.c:2136:40: note: Calling function 'exec_ptrace_subcmds_supported' returns 0 sudo-1.9.17p2/src/exec_ptrace.c:2136:10: note: Condition '!exec_ptrace_subcmds_supported()' is always true sudo-1.9.17p2/src/exec_ptrace.c:2095:50: style: Parameter 'intercept' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/src/get_pty.c:163:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _PATH_DEV [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/get_pty.c:159:15: portability: Non reentrant function 'getgrnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrnam_r'. [prohibitedgetgrnamCalled] sudo-1.9.17p2/src/get_pty.c:153:11: style: Variable 'bank' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/src/get_pty.c:153:18: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/src/get_pty.c:154:19: style: Variable 'gr' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/src/hooks.c:63:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_HOOK_RET_NEXT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/hooks.c:79:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_HOOK_RET_NEXT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/hooks.c:96:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_HOOK_RET_NEXT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/hooks.c:114:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_HOOK_RET_NEXT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/hooks.c:134:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/hooks.c:152:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_HOOK_VERSION_MAJOR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/hooks.c:193:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/hooks.c:216:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_HOOK_VERSION_MAJOR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/hooks.c:196:15: style: Condition 'prev==NULL' is always true [knownConditionTrueFalse] sudo-1.9.17p2/src/hooks.c:190:43: note: Assignment 'prev=NULL', assigned value is 0 sudo-1.9.17p2/src/hooks.c:196:15: note: Condition 'prev==NULL' is always true sudo-1.9.17p2/src/hooks.c:188:35: style: Parameter 'closure' can be declared as pointer to const. However it seems that 'deregister_hook_internal' is a callback function, if 'closure' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/src/hooks.c:191:16: note: You might need to cast the function pointer here sudo-1.9.17p2/src/hooks.c:188:35: note: Parameter 'closure' can be declared as pointer to const sudo-1.9.17p2/src/intercept.pb-c.c:13:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INTERCEPT_REQUEST__INIT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/intercept.pb-c.c:19:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable intercept_request__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/intercept.pb-c.c:26:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable intercept_request__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/intercept.pb-c.c:33:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable intercept_request__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/intercept.pb-c.c:43:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable intercept_request__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/intercept.pb-c.c:52:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable intercept_request__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/intercept.pb-c.c:58:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INTERCEPT_HELLO__INIT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/intercept.pb-c.c:64:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable intercept_hello__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/intercept.pb-c.c:71:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable intercept_hello__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/intercept.pb-c.c:78:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable intercept_hello__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/intercept.pb-c.c:88:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable intercept_hello__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/intercept.pb-c.c:97:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable intercept_hello__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/intercept.pb-c.c:103:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HELLO_RESPONSE__INIT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/intercept.pb-c.c:109:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable hello_response__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/intercept.pb-c.c:116:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable hello_response__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/intercept.pb-c.c:123:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable hello_response__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/intercept.pb-c.c:133:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable hello_response__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/intercept.pb-c.c:142:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable hello_response__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/intercept.pb-c.c:148:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POLICY_CHECK_REQUEST__INIT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/intercept.pb-c.c:154:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable policy_check_request__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/intercept.pb-c.c:161:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable policy_check_request__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/intercept.pb-c.c:168:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable policy_check_request__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/intercept.pb-c.c:178:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable policy_check_request__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/intercept.pb-c.c:187:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable policy_check_request__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/intercept.pb-c.c:193:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POLICY_ACCEPT_MESSAGE__INIT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/intercept.pb-c.c:199:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable policy_accept_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/intercept.pb-c.c:206:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable policy_accept_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/intercept.pb-c.c:213:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable policy_accept_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/intercept.pb-c.c:223:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable policy_accept_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/intercept.pb-c.c:232:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable policy_accept_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/intercept.pb-c.c:238:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POLICY_REJECT_MESSAGE__INIT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/intercept.pb-c.c:244:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable policy_reject_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/intercept.pb-c.c:251:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable policy_reject_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/intercept.pb-c.c:258:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable policy_reject_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/intercept.pb-c.c:268:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable policy_reject_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/intercept.pb-c.c:277:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable policy_reject_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/intercept.pb-c.c:283:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POLICY_ERROR_MESSAGE__INIT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/intercept.pb-c.c:289:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable policy_error_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/intercept.pb-c.c:296:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable policy_error_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/intercept.pb-c.c:303:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable policy_error_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/intercept.pb-c.c:313:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable policy_error_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/intercept.pb-c.c:322:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable policy_error_message__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/intercept.pb-c.c:328:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INTERCEPT_RESPONSE__INIT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/intercept.pb-c.c:334:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable intercept_response__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/intercept.pb-c.c:341:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable intercept_response__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_pty.c:77:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable io_fds [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/intercept.pb-c.c:348:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable intercept_response__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_pty.c:112:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable io_fds [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/intercept.pb-c.c:358:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable intercept_response__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_pty.c:156:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable io_fds [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/intercept.pb-c.c:367:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable intercept_response__descriptor [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_pty.c:178:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable io_fds [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_pty.c:209:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG2STR_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_pty.c:354:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_NOTICE [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_pty.c:392:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_pty.c:491:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_pty.c:580:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable io_fds [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_pty.c:609:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_pty.c:629:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_pty.c:658:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_pty.c:677:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MSG_WAITALL [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_pty.c:785:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __WALL [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_pty.c:853:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_pty.c:925:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_INFO [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_pty.c:985:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_pty.c:1003:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_EV_READ [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_pty.c:1142:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CD_INTERCEPT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_pty.c:1496:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable io_fds [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/intercept.pb-c.c:381:7: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] sudo-1.9.17p2/src/intercept.pb-c.c:393:7: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] sudo-1.9.17p2/src/intercept.pb-c.c:777:7: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] sudo-1.9.17p2/src/intercept.pb-c.c:789:7: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] sudo-1.9.17p2/src/intercept.pb-c.c:801:7: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] sudo-1.9.17p2/src/intercept.pb-c.c:813:7: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] toke.c:3558:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/limits.c:220:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RLIMIT_CORE [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/load_plugins.c:106:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_INSTANCE_INITIALIZER [valueFlowBailoutIncompleteVar] toke.c:5222:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/limits.c:269:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RLIMIT_CORE [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/load_plugins.c:143:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] toke.c:5460:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/limits.c:351:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_INFO [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/load_plugins.c:187:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _PATH_SUDO_CONF [valueFlowBailoutIncompleteVar] toke.l:939:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/limits.c:428:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/load_plugins.c:208:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] toke.l:1042:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/limits.c:473:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/load_plugins.c:327:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable version [valueFlowBailoutIncompleteVar] toke.l:1071:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/limits.c:540:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/load_plugins.c:365:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable version [valueFlowBailoutIncompleteVar] toke.l:1258:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/limits.c:645:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_INFO [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/load_plugins.c:398:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _PATH_SUDOERS_PLUGIN [valueFlowBailoutIncompleteVar] toke.l:1292:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/limits.c:693:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RLIM_INFINITY [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/load_plugins.c:425:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] toke.l:1438:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable yy_input_file [valueFlowBailoutIncompleteVar] toke.l:1489:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_DEBUG [valueFlowBailoutIncompleteVar] toke.l:1525:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/net_ifs.c:92:20: style:inconclusive: Function 'get_net_ifs' argument 1 names different: declaration 'addrinfo' definition 'addrinfo_out'. [funcArgNamesDifferent] sudo-1.9.17p2/src/sudo.h:316:24: note: Function 'get_net_ifs' argument 1 names different: declaration 'addrinfo' definition 'addrinfo_out'. sudo-1.9.17p2/src/net_ifs.c:92:20: note: Function 'get_net_ifs' argument 1 names different: declaration 'addrinfo' definition 'addrinfo_out'. sudo-1.9.17p2/src/preserve_fds.c:49:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_GETFD [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/preserve_fds.c:99:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/preserve_fds.c:199:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/preserve_fds.c:47:5: warning: If memory allocation fails, then there is a possible null pointer dereference: pfd_new [nullPointerOutOfMemory] sudo-1.9.17p2/src/preserve_fds.c:44:21: note: Assuming allocation function fails sudo-1.9.17p2/src/preserve_fds.c:44:21: note: Assignment 'pfd_new=malloc(sizeof(*pfd))', assigned value is 0 sudo-1.9.17p2/src/preserve_fds.c:47:5: note: Null pointer dereference sudo-1.9.17p2/src/preserve_fds.c:48:5: warning: If memory allocation fails, then there is a possible null pointer dereference: pfd_new [nullPointerOutOfMemory] sudo-1.9.17p2/src/preserve_fds.c:44:21: note: Assuming allocation function fails sudo-1.9.17p2/src/preserve_fds.c:44:21: note: Assignment 'pfd_new=malloc(sizeof(*pfd))', assigned value is 0 sudo-1.9.17p2/src/preserve_fds.c:48:5: note: Null pointer dereference sudo-1.9.17p2/src/preserve_fds.c:49:5: warning: If memory allocation fails, then there is a possible null pointer dereference: pfd_new [nullPointerOutOfMemory] sudo-1.9.17p2/src/preserve_fds.c:44:21: note: Assuming allocation function fails sudo-1.9.17p2/src/preserve_fds.c:44:21: note: Assignment 'pfd_new=malloc(sizeof(*pfd))', assigned value is 0 sudo-1.9.17p2/src/preserve_fds.c:49:5: note: Null pointer dereference sudo-1.9.17p2/src/preserve_fds.c:50:9: warning: If memory allocation fails, then there is a possible null pointer dereference: pfd_new [nullPointerOutOfMemory] sudo-1.9.17p2/src/preserve_fds.c:44:21: note: Assuming allocation function fails sudo-1.9.17p2/src/preserve_fds.c:44:21: note: Assignment 'pfd_new=malloc(sizeof(*pfd))', assigned value is 0 sudo-1.9.17p2/src/preserve_fds.c:50:9: note: Null pointer dereference sudo-1.9.17p2/src/parse_args.c:178:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/parse_args.c:197:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/parse_args.c:219:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/parse_args.c:238:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODE_BACKGROUND [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/parse_args.c:706:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sudo_usage [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/parse_args.c:733:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/parse_args.c:766:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/parse_args.c:784:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/regress/intercept/test_ptrace.c:64:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_DIAG [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/regress/intercept/test_ptrace.c:84:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/regress/intercept/test_ptrace.c:112:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _PATH_SUDO_BSHELL [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/regress/net_ifs/check_net_ifs.c:57:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/regress/intercept/test_ptrace.c:102:45: style: Parameter 'sa' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/src/exec_pty.c:607:5: warning: Either the condition '(msg=calloc(1,sizeof(*msg)))==NULL' is redundant or there is possible null pointer dereference: msg. [nullPointerRedundantCheck] sudo-1.9.17p2/src/exec_pty.c:605:41: note: Assuming that condition '(msg=calloc(1,sizeof(*msg)))==NULL' is not redundant sudo-1.9.17p2/src/exec_pty.c:607:5: note: Null pointer dereference sudo-1.9.17p2/src/exec_pty.c:608:5: warning: Either the condition '(msg=calloc(1,sizeof(*msg)))==NULL' is redundant or there is possible null pointer dereference: msg. [nullPointerRedundantCheck] sudo-1.9.17p2/src/exec_pty.c:605:41: note: Assuming that condition '(msg=calloc(1,sizeof(*msg)))==NULL' is not redundant sudo-1.9.17p2/src/exec_pty.c:608:5: note: Null pointer dereference sudo-1.9.17p2/src/regress/noexec/check_noexec.c:101:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/regress/noexec/check_noexec.c:185:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/regress/noexec/check_noexec.c:207:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optind [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/exec_pty.c:349:33: style: Parameter 'ec' can be declared as pointer to const. However it seems that 'revoke_pty' is a callback function, if 'ec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/src/exec_pty.c:352:16: note: You might need to cast the function pointer here sudo-1.9.17p2/src/exec_pty.c:349:33: note: Parameter 'ec' can be declared as pointer to const sudo-1.9.17p2/src/exec_pty.c:574:60: style: Parameter 'cstat' can be declared as pointer to const. However it seems that 'pty_finish' is a callback function, if 'cstat' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/src/exec_pty.c:577:16: note: You might need to cast the function pointer here sudo-1.9.17p2/src/exec_pty.c:574:60: note: Parameter 'cstat' can be declared as pointer to const sudo-1.9.17p2/src/regress/ttyname/check_ttyname.c:70:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/sesh.c:77:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/sesh.c:98:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CD_SUDOEDIT_FOLLOW [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/sesh.c:290:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IWUSR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/sesh.c:360:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SESH_SUCCESS [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/sesh.c:446:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SESH_ERR_FAILURE [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/regress/ttyname/check_ttyname.c:135:36: style: Condition 'tty_libc' is always true [knownConditionTrueFalse] sudo-1.9.17p2/src/signal.c:82:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/signal.c:96:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_INFO [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/signal.c:125:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SA_RESTART [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/signal.c:185:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/sesh.c:308:13: style: The if condition is the same as the previous if condition [duplicateCondition] sudo-1.9.17p2/src/sesh.c:291:13: note: First condition sudo-1.9.17p2/src/sesh.c:308:13: note: Second condition sudo-1.9.17p2/src/solaris.c:45:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DSO_LAZY [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/signal.c:176:45: style: Parameter 'sa' can be declared as pointer to const. However it seems that 'sudo_sigaction' is a callback function, if 'sa' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/src/signal.c:180:16: note: You might need to cast the function pointer here sudo-1.9.17p2/src/signal.c:176:45: note: Parameter 'sa' can be declared as pointer to const sudo-1.9.17p2/src/sudo_intercept.c:86:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/sudo_intercept.c:124:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/sudo_intercept.c:189:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/sudo_intercept.c:306:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/sudo_intercept.c:335:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _PATH_SUDO_BSHELL [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/parse_args.c:233:20: style: Variable 'long_opts' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/src/parse_args.c:620:12: style: Variable 'src' can be declared as pointer to const [constVariablePointer] sudo-1.9.17p2/src/sudo_intercept_common.c:84:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/sudo_intercept_common.c:98:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INTERCEPT_REQUEST__INIT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/sudo_intercept_common.c:154:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_ERROR [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/sudo_intercept_common.c:230:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/sudo_intercept_common.c:304:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INTERCEPT_REQUEST__INIT [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/sudo_intercept_common.c:377:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] sudo-1.9.17p2/src/sudo_intercept_common.c:415:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUDO_DEBUG_INFO [valueFlowBailoutIncompleteVar] toke.c:5226:2: warning: Possible null pointer dereference: b [nullPointer] toke.c:5119:18: note: Calling function 'sudoers_init_buffer', 1st argument '(yy_buffer_stack)?(yy_buffer_stack)[yy_buffer_stack_top]:NULL' value is 0 toke.c:5226:2: note: Null pointer dereference toke.c:5227:2: warning: Possible null pointer dereference: b [nullPointer] toke.c:5119:18: note: Calling function 'sudoers_init_buffer', 1st argument '(yy_buffer_stack)?(yy_buffer_stack)[yy_buffer_stack_top]:NULL' value is 0 toke.c:5227:2: note: Null pointer dereference sudo-1.9.17p2/src/sudo_intercept.c:145:13: style: Condition 'dirlen==0' is always false [knownConditionTrueFalse] sudo-1.9.17p2/src/sudo_intercept.c:142:15: note: Assuming that condition 'cpcred.groups)' is always false [knownConditionTrueFalse] sudo-1.9.17p2/src/sudo.c:606:16: note: Calling function 'gc_add' returns 1 sudo-1.9.17p2/src/sudo.c:606:9: note: Condition '!gc_add(GC_PTR,ud->cred.groups)' is always false sudo-1.9.17p2/src/sudo.c:658:9: style: Condition '!gc_add(GC_VECTOR,info)' is always false [knownConditionTrueFalse] sudo-1.9.17p2/src/sudo.c:658:16: note: Calling function 'gc_add' returns 1 sudo-1.9.17p2/src/sudo.c:658:9: note: Condition '!gc_add(GC_VECTOR,info)' is always false sudo-1.9.17p2/src/sudo.c:820:11: style: Condition '!gc_add(GC_PTR,details->cred.groups)' is always false [knownConditionTrueFalse] sudo-1.9.17p2/src/sudo.c:820:18: note: Calling function 'gc_add' returns 1 sudo-1.9.17p2/src/sudo.c:820:11: note: Condition '!gc_add(GC_PTR,details->cred.groups)' is always false sudo-1.9.17p2/src/sudo.c:925:9: style: Condition '!gc_add(GC_PTR,details->pw)' is always false [knownConditionTrueFalse] sudo-1.9.17p2/src/sudo.c:925:16: note: Calling function 'gc_add' returns 1 sudo-1.9.17p2/src/sudo.c:925:9: note: Condition '!gc_add(GC_PTR,details->pw)' is always false sudo-1.9.17p2/src/sudo.c:1152:9: style: Condition '!gc_add(GC_VECTOR,plugin_settings)' is always false [knownConditionTrueFalse] sudo-1.9.17p2/src/sudo.c:1152:16: note: Calling function 'gc_add' returns 1 sudo-1.9.17p2/src/sudo.c:1152:9: note: Condition '!gc_add(GC_VECTOR,plugin_settings)' is always false sudo-1.9.17p2/src/sudo.c:268:3: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] sudo-1.9.17p2/src/sudo.c:947:29: style:inconclusive: Function 'sudo_check_suid' argument 1 names different: declaration 'path' definition 'sudo'. [funcArgNamesDifferent] sudo-1.9.17p2/src/sudo.c:98:41: note: Function 'sudo_check_suid' argument 1 names different: declaration 'path' definition 'sudo'. sudo-1.9.17p2/src/sudo.c:947:29: note: Function 'sudo_check_suid' argument 1 names different: declaration 'path' definition 'sudo'. sudo-1.9.17p2/src/sudo.c:1208:53: style:inconclusive: Function 'policy_close' argument 3 names different: declaration 'error' definition 'error_code'. [funcArgNamesDifferent] sudo-1.9.17p2/src/sudo.c:106:65: note: Function 'policy_close' argument 3 names different: declaration 'error' definition 'error_code'. sudo-1.9.17p2/src/sudo.c:1208:53: note: Function 'policy_close' argument 3 names different: declaration 'error' definition 'error_code'. sudo-1.9.17p2/src/sudo.c:1498:45: style:inconclusive: Function 'iolog_open' argument 2 names different: declaration 'run_argc' definition 'argc'. [funcArgNamesDifferent] sudo-1.9.17p2/src/sudo.c:116:57: note: Function 'iolog_open' argument 2 names different: declaration 'run_argc' definition 'argc'. sudo-1.9.17p2/src/sudo.c:1498:45: note: Function 'iolog_open' argument 2 names different: declaration 'run_argc' definition 'argc'. sudo-1.9.17p2/src/sudo.c:1498:64: style:inconclusive: Function 'iolog_open' argument 3 names different: declaration 'run_argv' definition 'argv'. [funcArgNamesDifferent] sudo-1.9.17p2/src/sudo.c:117:18: note: Function 'iolog_open' argument 3 names different: declaration 'run_argv' definition 'argv'. sudo-1.9.17p2/src/sudo.c:1498:64: note: Function 'iolog_open' argument 3 names different: declaration 'run_argv' definition 'argv'. sudo-1.9.17p2/src/sudo.c:1532:34: style:inconclusive: Function 'iolog_close' argument 2 names different: declaration 'error' definition 'error_code'. [funcArgNamesDifferent] sudo-1.9.17p2/src/sudo.c:118:46: note: Function 'iolog_close' argument 2 names different: declaration 'error' definition 'error_code'. sudo-1.9.17p2/src/sudo.c:1532:34: note: Function 'iolog_close' argument 2 names different: declaration 'error' definition 'error_code'. sudo-1.9.17p2/src/sudo.c:1680:17: style:inconclusive: Function 'audit_close' argument 1 names different: declaration 'exit_status' definition 'status_type'. [funcArgNamesDifferent] sudo-1.9.17p2/src/sudo.c:126:29: note: Function 'audit_close' argument 1 names different: declaration 'exit_status' definition 'status_type'. sudo-1.9.17p2/src/sudo.c:1680:17: note: Function 'audit_close' argument 1 names different: declaration 'exit_status' definition 'status_type'. sudo-1.9.17p2/src/sudo.c:1680:34: style:inconclusive: Function 'audit_close' argument 2 names different: declaration 'error' definition 'status'. [funcArgNamesDifferent] sudo-1.9.17p2/src/sudo.c:126:46: note: Function 'audit_close' argument 2 names different: declaration 'error' definition 'status'. sudo-1.9.17p2/src/sudo.c:1680:34: note: Function 'audit_close' argument 2 names different: declaration 'error' definition 'status'. sudo-1.9.17p2/src/sudo.c:345:32: style: Parameter 'argv' can be declared as const array [constParameter] sudo-1.9.17p2/src/sudo.c:345:46: style: Parameter 'envp' can be declared as const array [constParameter] sudo-1.9.17p2/src/sudo.c:1721:39: style: Parameter 'source' can be declared as pointer to const. However it seems that 'audit_error2' is a callback function, if 'source' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/src/sudo.c:1728:16: note: You might need to cast the function pointer here sudo-1.9.17p2/src/sudo.c:1721:39: note: Parameter 'source' can be declared as pointer to const sudo-1.9.17p2/src/sudo.c:2183:39: style: Parameter 'v' can be declared as pointer to const [constParameterPointer] sudo-1.9.17p2/src/sudo.c:85:9: style: union member 'Anonymous0::vec' is never used. [unusedStructMember] sudo-1.9.17p2/src/sudo.c:86:8: style: union member 'Anonymous0::ptr' is never used. [unusedStructMember] diff: head sudo-1.9.17p2/lib/eventlog/eventlog.c:1377:22: style: Parameter 'alert_time' can be declared as pointer to const. However it seems that 'eventlog_alert' is a callback function, if 'alert_time' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/lib/eventlog/eventlog.c:1383:16: note: You might need to cast the function pointer here sudo-1.9.17p2/lib/eventlog/eventlog.c:1377:22: note: Parameter 'alert_time' can be declared as pointer to const head sudo-1.9.17p2/lib/eventlog/eventlog.c:1404:22: style: Parameter 'event_time' can be declared as pointer to const. However it seems that 'eventlog_mail' is a callback function, if 'event_time' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/lib/eventlog/eventlog.c:1410:16: note: You might need to cast the function pointer here sudo-1.9.17p2/lib/eventlog/eventlog.c:1404:22: note: Parameter 'event_time' can be declared as pointer to const head sudo-1.9.17p2/lib/util/glob.c:422:17: style: Variable 'cc' can be declared as pointer to const [constVariablePointer] head sudo-1.9.17p2/lib/util/str2sig.c:91:22: style: Variable 'alias' can be declared as pointer to const [constVariablePointer] head sudo-1.9.17p2/lib/util/sudo_dso.c:396:32: style: Variable 'pt' can be declared as pointer to const [constVariablePointer] head sudo-1.9.17p2/lib/util/sudo_dso.c:410:32: style: Variable 'pt' can be declared as pointer to const [constVariablePointer] head sudo-1.9.17p2/lib/zlib/gzread.c:399:43: warning: Either the condition 'size' is redundant or there is division by zero at line 399. [zerodivcond] sudo-1.9.17p2/lib/zlib/gzread.c:393:9: note: Assuming that condition 'size' is not redundant sudo-1.9.17p2/lib/zlib/gzread.c:399:43: note: Division by zero head sudo-1.9.17p2/lib/zlib/gzwrite.c:283:44: warning: Either the condition 'size' is redundant or there is division by zero at line 283. [zerodivcond] sudo-1.9.17p2/lib/zlib/gzwrite.c:277:9: note: Assuming that condition 'size' is not redundant sudo-1.9.17p2/lib/zlib/gzwrite.c:283:44: note: Division by zero head sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1199:12: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] 2.18.0 sudo-1.9.17p2/logsrvd/sendlog.h:24:3: error: #error protobuf-c version 1.30 or higher required [preprocessorErrorDirective] head sudo-1.9.17p2/plugins/python/python_plugin_common.c:46:28: style: Parameter 'keyvalues' can be declared as const array. However it seems that '_lookup_value' is a callback function, if 'keyvalues' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/plugins/python/python_plugin_common.c:48:16: note: You might need to cast the function pointer here sudo-1.9.17p2/plugins/python/python_plugin_common.c:46:28: note: Parameter 'keyvalues' can be declared as const array head sudo-1.9.17p2/plugins/sudoers/check_aliases.c:56:58: style: Parameter 'name' can be declared as pointer to const. However it seems that 'alias_warned_add' is a callback function, if 'name' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sudo-1.9.17p2/plugins/sudoers/check_aliases.c:59:16: note: You might need to cast the function pointer here sudo-1.9.17p2/plugins/sudoers/check_aliases.c:56:58: note: Parameter 'name' can be declared as pointer to const head sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:911:6: style: Variable 'lhost' is assigned an expression that holds the same value. [redundantAssignment] sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:894:8: note: lhost is assigned 's->str' here. sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:911:6: note: Variable 'lhost' is assigned an expression that holds the same value. head sudo-1.9.17p2/plugins/sudoers/editor.c:239:8: style: Variable 'editor' can be declared as pointer to const [constVariablePointer] head sudo-1.9.17p2/plugins/sudoers/serialize_list.c:41:11: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] head sudo-1.9.17p2/plugins/sudoers/sudoers_hooks.c:130:79: style: Parameter 'closure' can be declared as pointer to const [constParameterPointer] head sudo-1.9.17p2/plugins/sudoers/sudoers_hooks.c:144:47: style: Parameter 'closure' can be declared as pointer to const [constParameterPointer] head sudo-1.9.17p2/src/get_pty.c:153:11: style: Variable 'bank' can be declared as pointer to const [constVariablePointer] head sudo-1.9.17p2/src/get_pty.c:153:18: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] head sudo-1.9.17p2/src/parse_args.c:620:12: style: Variable 'src' can be declared as pointer to const [constVariablePointer] 2.18.0 sudo-1.9.17p2/src/utmp.c:147:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] 2.18.0 sudo-1.9.17p2/src/utmp.c:176:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_return [valueFlowBailoutIncompleteVar] 2.18.0 sudo-1.9.17p2/src/utmp.c:312:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _PATH_DEV [valueFlowBailoutIncompleteVar] 2.18.0 sudo-1.9.17p2/src/utmp.c:317:14: style: Condition 'slot<=0' is always true [knownConditionTrueFalse] sudo-1.9.17p2/src/utmp.c:316:21: note: Calling function 'utmp_slot' returns -1 sudo-1.9.17p2/src/utmp.c:316:21: note: Assignment 'slot=utmp_slot(to_line,ttyfd)', assigned value is -1 sudo-1.9.17p2/src/utmp.c:317:14: note: Condition 'slot<=0' is always true 2.18.0 sudo-1.9.17p2/src/utmp.c:359:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _PATH_UTMP [valueFlowBailoutIncompleteVar] head sudo-1.9.17p2/src/utmp.c:51:0: error: failed to evaluate #if condition, undefined function-like macro invocation: __GNUC_PREREQ__( ... ) [syntaxError] DONE