2025-05-04 19:44 ftp://ftp.de.debian.org/debian/pool/main/g/grep/grep_3.11.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: 88ef81e (2025-05-02 08:42:38 +0200) count: 855 792 elapsed-time: 52.1 57.2 head-timing-info: old-timing-info: head results: grep-3.11/gnulib-tests/inttostr.h:22:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/gnulib-tests/inttostr.h:22:3: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/gnulib-tests/w32sock.h:47:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/accept.c:36:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_SOCKET [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/vasnprintf.h:22:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/gnulib-tests/vasnprintf.h:22:3: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/gnulib-tests/bind.c:36:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_SOCKET [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/connect.c:36:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_SOCKET [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/fdopen.c:59:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/str-two-way.h:136:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/str-two-way.h:302:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/str-two-way.h:434:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/gettimeofday.c:143:0: error: #error "Only 1-second nominal clock resolution found. Is that intended?" \ [preprocessorErrorDirective] grep-3.11/gnulib-tests/gettimeofday.c:143:5: error: #error "Only 1-second nominal clock resolution found. Is that intended?" \ [preprocessorErrorDirective] grep-3.11/gnulib-tests/hash-pjw.h:19:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/gnulib-tests/hash-pjw.h:19:3: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/gnulib-tests/inet_pton.c:95:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/ioctl.c:68:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_HANDLE_VALUE [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/ioctl.c:62:43: style: Parameter 'arg' can be declared as pointer to const [constParameterPointer] grep-3.11/gnulib-tests/listen.c:36:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_SOCKET [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/locale.c:54:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/inet_pton.c:152:16: error: Uninitialized variable: tmp [uninitvar] grep-3.11/gnulib-tests/inet_pton.c:150:14: note: Assuming condition is false grep-3.11/gnulib-tests/inet_pton.c:152:16: note: Uninitialized variable: tmp grep-3.11/gnulib-tests/localename.h:22:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/gnulib-tests/localename.h:22:3: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/gnulib-tests/perror.c:35:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STACKBUF_LEN [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/xsize.h:23:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/gnulib-tests/xsize.h:23:3: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/gnulib-tests/pselect.c:48:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FD_SETSIZE [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/pthread-thread.c:37:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PTHREAD_CREATE_JOINABLE [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/pthread-thread.c:44:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PTHREAD_CREATE_JOINABLE [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/pthread-thread.c:51:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PTHREAD_CREATE_JOINABLE [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/pthread-thread.c:142:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EAGAIN [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/pthread-thread.c:161:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/pthread-thread.c:168:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/pthread-thread.c:60:50: style: Parameter 'attr' can be declared as pointer to const [constParameterPointer] grep-3.11/gnulib-tests/pthread-thread.c:138:28: style: Parameter 'threadp' can be declared as pointer to const [constParameterPointer] grep-3.11/gnulib-tests/pthread-thread.c:139:57: style: Parameter 'arg' can be declared as pointer to const [constParameterPointer] grep-3.11/gnulib-tests/pthread-thread.c:172:21: style: Parameter 'value' can be declared as pointer to const [constParameterPointer] grep-3.11/gnulib-tests/putenv.c:77:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/putenv.c:173:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable environ [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/select.c:576:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FD_SETSIZE [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/setenv.c:125:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable environ [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/setenv.c:295:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/setenv.c:310:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable environ [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/setsockopt.c:40:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_SOCKET [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/sigprocmask.c:116:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NSIG [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/sigprocmask.c:139:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NSIG [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/sigprocmask.c:159:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NSIG [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/sigprocmask.c:180:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NSIG [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/sigprocmask.c:200:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NSIG [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/sigprocmask.c:210:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NSIG [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/sigprocmask.c:245:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/sigprocmask.c:300:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_ERR [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/sleep.c:72:0: error: #error "Please port gnulib sleep.c to your platform, possibly using usleep() or select(), then report this to bug-gnulib." [preprocessorErrorDirective] grep-3.11/gnulib-tests/sleep.c:72:3: error: #error "Please port gnulib sleep.c to your platform, possibly using usleep() or select(), then report this to bug-gnulib." [preprocessorErrorDirective] grep-3.11/gnulib-tests/sockets.h:25:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/gnulib-tests/sockets.h:25:3: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/gnulib-tests/strerror_r.c:132:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERANGE [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/strerror_r.c:146:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERANGE [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/symlink.c:53:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/strerror_r.c:315:13: style: Variable 'errmsg' can be declared as pointer to const [constVariablePointer] grep-3.11/gnulib-tests/test-alignasof.c:84:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-alignof.c:27:23: style: struct member 'struct1::a' is never used. [unusedStructMember] grep-3.11/gnulib-tests/test-alignof.c:28:23: style: struct member 'struct2::a' is never used. [unusedStructMember] grep-3.11/gnulib-tests/test-alignof.c:29:23: style: struct member 'struct3::a' is never used. [unusedStructMember] grep-3.11/gnulib-tests/test-alignof.c:30:23: style: struct member 'struct4::a' is never used. [unusedStructMember] grep-3.11/gnulib-tests/test-argmatch.c:71:1: error: There is an unknown macro here somewhere. Configuration is required. If ARGMATCH_DEFINE_GROUP is a macro then please configure it. [unknownMacro] grep-3.11/gnulib-tests/test-assert.c:30:8: error: Syntax Error: AST broken, 'assert' doesn't have two operands. [internalAstError] grep-3.11/gnulib-tests/test-binary-io.c:38:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-binary-io.c:33:23: style: Parameter 'argv' can be declared as const array [constParameter] grep-3.11/gnulib-tests/test-btowc.c:37:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/c-strcasestr.c:41:27: style:inconclusive: Function 'c_strcasestr' argument 1 names different: declaration 'haystack' definition 'haystack_start'. [funcArgNamesDifferent] grep-3.11/gnulib-tests/c-strcasestr.h:28:40: note: Function 'c_strcasestr' argument 1 names different: declaration 'haystack' definition 'haystack_start'. grep-3.11/gnulib-tests/c-strcasestr.c:41:27: note: Function 'c_strcasestr' argument 1 names different: declaration 'haystack' definition 'haystack_start'. grep-3.11/gnulib-tests/c-strcasestr.c:41:55: style:inconclusive: Function 'c_strcasestr' argument 2 names different: declaration 'needle' definition 'needle_start'. [funcArgNamesDifferent] grep-3.11/gnulib-tests/c-strcasestr.h:28:62: note: Function 'c_strcasestr' argument 2 names different: declaration 'needle' definition 'needle_start'. grep-3.11/gnulib-tests/c-strcasestr.c:41:55: note: Function 'c_strcasestr' argument 2 names different: declaration 'needle' definition 'needle_start'. grep-3.11/gnulib-tests/test-c-ctype.c:36:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-c-ctype.c:67:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-c-ctype.c:221:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-btowc.c:0:0: debug: ValueFlow maximum iterations exceeded [valueFlowMaxIterations] grep-3.11/gnulib-tests/test-btowc.c:32:23: style: Parameter 'argv' can be declared as const array [constParameter] grep-3.11/gnulib-tests/test-c-stack.c:65:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable exit_failure [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-c-ctype.c:65:16: style: Condition '0<=c' is always true [knownConditionTrueFalse] grep-3.11/gnulib-tests/test-c-strcasecmp.c:35:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-c-strcasestr.c:34:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-bitrotate.c:28:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-c-strncasecmp.c:35:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-calloc-gnu.c:50:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-calloc-gnu.c:38:5: style: Opposite expression on both sides of '&='. [oppositeExpression] grep-3.11/gnulib-tests/test-calloc-gnu.c:62:24: style: Variable 'p' can be declared as pointer to const [constVariablePointer] grep-3.11/gnulib-tests/test-chdir.c:30:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-cloexec.c:57:0: error: #error Please port fcntl to your platform [preprocessorErrorDirective] grep-3.11/gnulib-tests/test-cloexec.c:57:4: error: #error Please port fcntl to your platform [preprocessorErrorDirective] grep-3.11/gnulib-tests/test-close.c:33:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-close.c:34:5: error: Invalid close() argument nr 1. The value is -1 but the valid values are '0:'. [invalidFunctionArg] grep-3.11/gnulib-tests/test-dfa-match-aux.c:62:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_BINARY [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-dup-safer.c:69:0: error: #error Please port fcntl to your platform [preprocessorErrorDirective] grep-3.11/gnulib-tests/test-dup-safer.c:69:4: error: #error Please port fcntl to your platform [preprocessorErrorDirective] grep-3.11/gnulib-tests/test-dfa-match-aux.c:78:5: portability: %zd in format string (no. 1) requires 'ssize_t' but the argument type is 'ptrdiff_t {aka signed int}'. [invalidPrintfArgType_sint] grep-3.11/gnulib-tests/test-dfa-match-aux.c:52:21: style: Variable 'p' can be declared as pointer to const [constVariablePointer] grep-3.11/gnulib-tests/test-dup2.c:70:0: error: #error Please port fcntl to your platform [preprocessorErrorDirective] grep-3.11/gnulib-tests/test-dup2.c:70:4: error: #error Please port fcntl to your platform [preprocessorErrorDirective] grep-3.11/gnulib-tests/test-dup.c:33:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-dup.c:34:5: error: Invalid dup() argument nr 1. The value is -1 but the valid values are '0:'. [invalidFunctionArg] grep-3.11/gnulib-tests/test-dynarray.c:47:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-environ.c:33:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable environ [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-environ.c:34:9: style: Variable 'string' can be declared as pointer to const [constVariablePointer] grep-3.11/gnulib-tests/test-errno.c:112:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-error.c:39:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-exclude.c:113:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable add_exclude [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-fcntl-h.c:52:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-fchdir.c:42:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-fcntl.c:69:0: error: #error Please port fcntl to your platform [preprocessorErrorDirective] grep-3.11/gnulib-tests/test-fcntl.c:69:4: error: #error Please port fcntl to your platform [preprocessorErrorDirective] grep-3.11/gnulib-tests/test-open.h:52:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-fdopen.c:45:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-fdopen.c:46:13: error: Return value of allocation function 'fdopen' is not stored. [leakReturnValNotUsed] grep-3.11/gnulib-tests/test-fdopendir.c:39:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-fdopendir.c:50:5: error: Invalid fdopendir() argument nr 1. The value is -1 but the valid values are '0:'. [invalidFunctionArg] grep-3.11/gnulib-tests/test-fdopendir.c:42:3: error: Return value of allocation function 'fdopendir' is not stored. [leakReturnValNotUsed] grep-3.11/gnulib-tests/test-fdopendir.c:50:5: error: Return value of allocation function 'fdopendir' is not stored. [leakReturnValNotUsed] grep-3.11/gnulib-tests/test-fdopendir.c:56:5: error: Return value of allocation function 'fdopendir' is not stored. [leakReturnValNotUsed] grep-3.11/gnulib-tests/test-fgetc.c:49:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-float.c:388:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-fgetc.c:73:25: error: Invalid fdopen() argument nr 1. The value is -1 but the valid values are '0:'. [invalidFunctionArg] grep-3.11/gnulib-tests/test-fnmatch.c:31:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-fopen-gnu.c:49:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-fopen.h:41:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-fpending.c:32:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-fopen.h:42:3: error: Return value of allocation function 'fopen' is not stored. [leakReturnValNotUsed] grep-3.11/gnulib-tests/test-fopen.h:52:3: error: Return value of allocation function 'fopen' is not stored. [leakReturnValNotUsed] grep-3.11/gnulib-tests/test-fopen.h:56:3: error: Return value of allocation function 'fopen' is not stored. [leakReturnValNotUsed] grep-3.11/gnulib-tests/test-fopen.h:61:3: error: Return value of allocation function 'fopen' is not stored. [leakReturnValNotUsed] grep-3.11/gnulib-tests/test-fopen.h:67:3: error: Return value of allocation function 'fopen' is not stored. [leakReturnValNotUsed] grep-3.11/gnulib-tests/test-fopen.h:71:3: error: Return value of allocation function 'fopen' is not stored. [leakReturnValNotUsed] grep-3.11/gnulib-tests/test-fopen.h:75:3: error: Return value of allocation function 'fopen' is not stored. [leakReturnValNotUsed] grep-3.11/gnulib-tests/test-fopen.h:79:3: error: Return value of allocation function 'fopen' is not stored. [leakReturnValNotUsed] grep-3.11/gnulib-tests/test-fputc.c:51:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-fread.c:49:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-fputc.c:65:25: error: Invalid fdopen() argument nr 1. The value is -1 but the valid values are '0:'. [invalidFunctionArg] grep-3.11/gnulib-tests/test-fread.c:74:25: error: Invalid fdopen() argument nr 1. The value is -1 but the valid values are '0:'. [invalidFunctionArg] grep-3.11/gnulib-tests/test-fstat.c:36:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-fstat.c:37:5: error: Invalid fstat() argument nr 1. The value is -1 but the valid values are '0:'. [invalidFunctionArg] grep-3.11/gnulib-tests/test-free.c:43:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-free.c:54:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-ftruncate.c:36:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-ftruncate.c:30:23: style: Parameter 'argv' can be declared as const array [constParameter] grep-3.11/gnulib-tests/test-fwrite.c:52:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-fwrite.c:66:25: error: Invalid fdopen() argument nr 1. The value is -1 but the valid values are '0:'. [invalidFunctionArg] grep-3.11/gnulib-tests/test-getcwd-lgpl.c:44:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-getdtablesize.c:36:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-lstat.h:32:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-stat.h:32:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-fstatat.c:64:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AT_SYMLINK_NOFOLLOW [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-fstatat.c:80:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-fstatat.c:81:5: error: Invalid fstatat() argument nr 1. The value is -1 but the valid values are '0:'. [invalidFunctionArg] grep-3.11/gnulib-tests/test-getprogname.c:55:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXEEXT [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-gettimeofday.c:47:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-gettimeofday.c:60:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-gettimeofday.c:42:8: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] grep-3.11/gnulib-tests/test-gettimeofday.c:39:14: style: Variable 'lt' can be declared as pointer to const [constVariablePointer] grep-3.11/gnulib-tests/test-hard-locale.c:34:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-hard-locale.c:97:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_CTYPE [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-getopt.h:40:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-getopt.h:113:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optind [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-getopt-main.h:51:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-i-ring.c:32:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-getopt_long.h:55:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable opterr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-getopt_long.h:126:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optind [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-getopt_long.h:1845:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optind [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-getopt_long.h:1952:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optind [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-ignore-value.c:28:16: style: struct member 's::i' is never used. [unusedStructMember] grep-3.11/gnulib-tests/test-intprops.c:75:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-intprops.c:268:3: style: Comparing expression of type 'signed int' against value -9223372036854775808. Condition is always false. [compareValueOutOfTypeRangeError] grep-3.11/gnulib-tests/test-intprops.c:275:3: style: Comparing expression of type 'signed int' against value 9223372036854775807. Condition is always false. [compareValueOutOfTypeRangeError] grep-3.11/gnulib-tests/test-intprops.c:277:3: style: Comparing expression of type 'signed int' against value 4294967295. Condition is always false. [compareValueOutOfTypeRangeError] grep-3.11/gnulib-tests/test-intprops.c:285:3: style: Comparing expression of type 'signed int' against value 9223372036854775807. Condition is always false. [compareValueOutOfTypeRangeError] grep-3.11/gnulib-tests/test-intprops.c:296:5: style: Comparing expression of type 'signed int' against value 9223372036854775807. Condition is always false. [compareValueOutOfTypeRangeError] grep-3.11/gnulib-tests/test-intprops.c:297:5: style: Comparing expression of type 'signed int' against value -9223372036854775808. Condition is always false. [compareValueOutOfTypeRangeError] grep-3.11/gnulib-tests/test-intprops.c:311:3: style: Comparing expression of type 'signed int' against value 4294967295. Condition is always false. [compareValueOutOfTypeRangeError] grep-3.11/gnulib-tests/test-intprops.c:329:5: style: Comparing expression of type 'signed int' against value 9223372036854775807. Condition is always false. [compareValueOutOfTypeRangeError] grep-3.11/gnulib-tests/test-intprops.c:330:5: style: Comparing expression of type 'signed int' against value 9223372036854775807. Condition is always false. [compareValueOutOfTypeRangeError] grep-3.11/gnulib-tests/test-intprops.c:376:3: style: Comparing expression of type 'signed int' against value 4294967295. Condition is always false. [compareValueOutOfTypeRangeError] grep-3.11/gnulib-tests/test-intprops.c:393:5: style: Comparing expression of type 'signed int' against value 4294967298. Condition is always false. [compareValueOutOfTypeRangeError] grep-3.11/gnulib-tests/test-intprops.c:421:3: style: Comparing expression of type 'signed int' against value -9223372036854775808. Condition is always false. [compareValueOutOfTypeRangeError] grep-3.11/gnulib-tests/test-intprops.c:434:3: style: Comparing expression of type 'signed int' against value -9223372036854775808. Condition is always false. [compareValueOutOfTypeRangeError] grep-3.11/gnulib-tests/test-intprops.c:202:3: style: Same value in both branches of ternary operator. [duplicateValueTernary] grep-3.11/gnulib-tests/test-intprops.c:203:3: style: Same value in both branches of ternary operator. [duplicateValueTernary] grep-3.11/gnulib-tests/test-intprops.c:208:3: style: Same value in both branches of ternary operator. [duplicateValueTernary] grep-3.11/gnulib-tests/test-intprops.c:211:3: style: Same value in both branches of ternary operator. [duplicateValueTernary] grep-3.11/gnulib-tests/test-intprops.c:229:3: style: Same value in both branches of ternary operator. [duplicateValueTernary] grep-3.11/gnulib-tests/test-intprops.c:201:3: error: Signed integer overflow for expression '2147483647+1'. [integerOverflow] grep-3.11/gnulib-tests/test-intprops.c:204:3: error: Signed integer underflow for expression '(-2147483647-1)-1'. [integerOverflow] grep-3.11/gnulib-tests/test-intprops.c:209:3: error: Signed integer overflow for expression '2147483647+1'. [integerOverflow] grep-3.11/gnulib-tests/test-intprops.c:210:3: error: Signed integer underflow for expression '(-2147483647-1)-1'. [integerOverflow] grep-3.11/gnulib-tests/test-intprops.c:222:3: error: Signed integer overflow for expression '2147483647*2147483647'. [integerOverflow] grep-3.11/gnulib-tests/test-intprops.c:223:3: error: Signed integer underflow for expression '2147483647*(-2147483647-1)'. [integerOverflow] grep-3.11/gnulib-tests/test-intprops.c:224:3: error: Signed integer underflow for expression '(-2147483647-1)*2147483647'. [integerOverflow] grep-3.11/gnulib-tests/test-intprops.c:225:3: error: Signed integer overflow for expression '(-2147483647-1)*(-2147483647-1)'. [integerOverflow] grep-3.11/gnulib-tests/test-intprops.c:226:3: error: Signed integer overflow for expression '-1*(-2147483647-1)'. [integerOverflow] grep-3.11/gnulib-tests/test-intprops.c:278:3: error: Signed integer overflow for expression '-2147483647-1'. [integerOverflow] grep-3.11/gnulib-tests/test-intprops.c:320:3: error: Signed integer overflow for expression '0-(-2147483647-1)'. [integerOverflow] grep-3.11/gnulib-tests/test-intprops.c:326:3: error: Signed integer overflow for expression '-2147483647-1'. [integerOverflow] grep-3.11/gnulib-tests/test-intprops.c:354:3: error: Signed integer overflow for expression '-1*(-2147483647-1)'. [integerOverflow] grep-3.11/gnulib-tests/test-intprops.c:354:3: error: Signed integer overflow for expression '(-2147483647-1)*-1'. [integerOverflow] grep-3.11/gnulib-tests/test-intprops.c:387:3: warning: Expression '-1' has a negative value. That is converted to an unsigned value and used in an unsigned calculation. [signConversion] grep-3.11/gnulib-tests/test-intprops.c:388:3: warning: Expression '-1' has a negative value. That is converted to an unsigned value and used in an unsigned calculation. [signConversion] grep-3.11/gnulib-tests/test-intprops.c:440:3: warning: Expression '-2147483647-1' can have a negative value. That is converted to an unsigned value and used in an unsigned calculation. [signConversion] grep-3.11/gnulib-tests/test-isatty.c:45:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-isatty.c:46:5: error: Invalid isatty() argument nr 1. The value is -1 but the valid values are '0:'. [invalidFunctionArg] grep-3.11/gnulib-tests/test-getopt.h:91:11: style: Redundant initialization for 'posixly'. The initialized value is overwritten before it is read. [redundantInitialization] grep-3.11/gnulib-tests/test-getopt.h:85:16: note: posixly is initialized grep-3.11/gnulib-tests/test-getopt.h:91:11: note: posixly is overwritten grep-3.11/gnulib-tests/test-isblank.c:46:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-iswblank.c:32:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-iswdigit.c:55:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-iswxdigit.c:55:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-iswdigit.c:49:23: style: Parameter 'argv' can be declared as const array [constParameter] grep-3.11/gnulib-tests/test-iswxdigit.c:49:23: style: Parameter 'argv' can be declared as const array [constParameter] grep-3.11/gnulib-tests/test-localcharset.c:35:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-localeconv.c:38:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-localeconv.c:36:19: style: Variable 'l' can be declared as pointer to const [constVariablePointer] grep-3.11/gnulib-tests/test-lseek.c:41:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-lseek.c:95:7: error: Invalid lseek() argument nr 1. The value is -1 but the valid values are '0:'. [invalidFunctionArg] grep-3.11/gnulib-tests/test-malloc-gnu.c:32:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-mbrlen-w32.c:561:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-mbscasecmp.c:31:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-mbsinit.c:35:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-mbrlen.c:40:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-mbsrtowcs.c:41:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-mbrlen.c:34:23: style: Parameter 'argv' can be declared as const array [constParameter] grep-3.11/gnulib-tests/test-mbsstr1.c:35:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-mbsrtowcs.c:34:23: style: Parameter 'argv' can be declared as const array [constParameter] grep-3.11/gnulib-tests/test-mbsstr2.c:32:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-mbsstr3.c:31:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-memchr.c:39:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-memchr2.c:37:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-memchr2.c:52:7: style: Condition 'page_boundary' is always false [knownConditionTrueFalse] grep-3.11/gnulib-tests/test-memchr2.c:51:38: note: Calling function 'zerosize_ptr' returns 0 grep-3.11/gnulib-tests/test-memchr2.c:51:38: note: Assignment 'page_boundary=zerosize_ptr()', assigned value is 0 grep-3.11/gnulib-tests/test-memchr2.c:52:7: note: Condition 'page_boundary' is always false grep-3.11/gnulib-tests/test-memchr.c:55:9: style: Condition 'page_boundary' is always false [knownConditionTrueFalse] grep-3.11/gnulib-tests/test-memchr.c:54:40: note: Calling function 'zerosize_ptr' returns 0 grep-3.11/gnulib-tests/test-memchr.c:54:40: note: Assignment 'page_boundary=zerosize_ptr()', assigned value is 0 grep-3.11/gnulib-tests/test-memchr.c:55:9: note: Condition 'page_boundary' is always false grep-3.11/gnulib-tests/test-memchr.c:106:23: style: Condition 'page_boundary!=NULL' is always false [knownConditionTrueFalse] grep-3.11/gnulib-tests/test-memchr.c:101:49: note: Calling function 'zerosize_ptr' returns 0 grep-3.11/gnulib-tests/test-memchr.c:101:27: note: Assignment 'page_boundary=(char*)zerosize_ptr()', assigned value is 0 grep-3.11/gnulib-tests/test-memchr.c:106:23: note: Condition 'page_boundary!=NULL' is always false grep-3.11/gnulib-tests/test-memrchr.c:44:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-nanosleep.c:49:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-memrchr.c:58:7: style: Condition 'page_boundary' is always false [knownConditionTrueFalse] grep-3.11/gnulib-tests/test-memrchr.c:57:38: note: Calling function 'zerosize_ptr' returns 0 grep-3.11/gnulib-tests/test-memrchr.c:57:38: note: Assignment 'page_boundary=zerosize_ptr()', assigned value is 0 grep-3.11/gnulib-tests/test-memrchr.c:58:7: note: Condition 'page_boundary' is always false grep-3.11/gnulib-tests/test-memrchr.c:57:9: style: Variable 'page_boundary' can be declared as pointer to const [constVariablePointer] grep-3.11/gnulib-tests/test-nl_langinfo-mt.c:249:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-nl_langinfo2.c:133:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-nl_langinfo1.c:50:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-nl_langinfo1.c:61:3: style: Unsigned expression 'strlen(nl_langinfo(THOUSEP))' can't be negative so it is unnecessary to test it. [unsignedPositive] grep-3.11/gnulib-tests/test-nl_langinfo1.c:133:3: style: Unsigned expression 'strlen(nl_langinfo(ERA))' can't be negative so it is unnecessary to test it. [unsignedPositive] grep-3.11/gnulib-tests/test-nl_langinfo1.c:134:3: style: Unsigned expression 'strlen(nl_langinfo(ERA_D_FMT))' can't be negative so it is unnecessary to test it. [unsignedPositive] grep-3.11/gnulib-tests/test-nl_langinfo1.c:135:3: style: Unsigned expression 'strlen(nl_langinfo(ERA_D_T_FMT))' can't be negative so it is unnecessary to test it. [unsignedPositive] grep-3.11/gnulib-tests/test-nl_langinfo1.c:136:3: style: Unsigned expression 'strlen(nl_langinfo(ERA_T_FMT))' can't be negative so it is unnecessary to test it. [unsignedPositive] grep-3.11/gnulib-tests/test-nl_langinfo1.c:141:5: style: Unsigned expression 'strlen(currency)' can't be negative so it is unnecessary to test it. [unsignedPositive] grep-3.11/gnulib-tests/test-nl_langinfo1.c:41:23: style: Parameter 'argv' can be declared as const array [constParameter] grep-3.11/gnulib-tests/test-getopt_long.h:1586:9: warning: Opposite inner 'if' condition leads to a dead code block. [oppositeInnerCondition] grep-3.11/gnulib-tests/test-getopt_long.h:1583:29: note: outer condition: non_options_count==2 grep-3.11/gnulib-tests/test-getopt_long.h:1586:9: note: opposite inner condition: !(non_options_count==2) grep-3.11/gnulib-tests/test-openat-safer.c:55:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AT_FDCWD [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-openat.c:43:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-openat.c:66:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-openat-safer.c:81:11: error: Return value of allocation function 'openat' is not stored. [leakReturnValNotUsed] grep-3.11/gnulib-tests/test-openat-safer.c:84:11: error: Return value of allocation function 'openat' is not stored. [leakReturnValNotUsed] grep-3.11/gnulib-tests/test-openat-safer.c:87:11: error: Return value of allocation function 'openat' is not stored. [leakReturnValNotUsed] grep-3.11/gnulib-tests/test-openat-safer.c:92:11: error: Return value of allocation function 'openat' is not stored. [leakReturnValNotUsed] grep-3.11/gnulib-tests/test-openat-safer.c:97:11: error: Return value of allocation function 'openat' is not stored. [leakReturnValNotUsed] grep-3.11/gnulib-tests/test-openat-safer.c:108:11: error: Return value of allocation function 'openat' is not stored. [leakReturnValNotUsed] grep-3.11/gnulib-tests/test-openat.c:67:5: error: Return value of allocation function 'openat' is not stored. [leakReturnValNotUsed] grep-3.11/gnulib-tests/test-openat.c:73:5: error: Return value of allocation function 'openat' is not stored. [leakReturnValNotUsed] grep-3.11/gnulib-tests/test-openat.c:88:3: error: Return value of allocation function 'openat' is not stored. [leakReturnValNotUsed] grep-3.11/gnulib-tests/test-openat.c:94:5: error: Return value of allocation function 'openat' is not stored. [leakReturnValNotUsed] grep-3.11/gnulib-tests/test-perror.c:31:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-pipe.c:52:0: error: #error Please port fcntl to your platform [preprocessorErrorDirective] grep-3.11/gnulib-tests/test-pipe.c:52:4: error: #error Please port fcntl to your platform [preprocessorErrorDirective] grep-3.11/gnulib-tests/test-perror2.c:49:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-getopt_long.h:108:56: warning: Possible null pointer dereference: longopts [nullPointer] grep-3.11/gnulib-tests/test-getopt_long.h:331:43: note: Calling function 'do_getopt_long', 4th argument 'NULL' value is 0 grep-3.11/gnulib-tests/test-getopt_long.h:108:56: note: Null pointer dereference grep-3.11/gnulib-tests/test-select.h:65:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-select.h:89:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-select.h:116:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-select.h:234:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-select.h:241:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-select.h:269:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-select.h:303:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FD_SETSIZE [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-select.h:340:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-select.h:366:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-select.h:402:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-select.h:424:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-select.h:440:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-pthread-thread.c:54:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-pthread-thread.c:36:27: style: Parameter 'arg' can be declared as pointer to const. However it seems that 'worker_thread_func' is a callback function, if 'arg' is declared with const you might also need to cast function pointer(s). [constParameterCallback] grep-3.11/gnulib-tests/test-pthread-thread.c:47:45: note: You might need to cast the function pointer here grep-3.11/gnulib-tests/test-pthread-thread.c:36:27: note: Parameter 'arg' can be declared as pointer to const grep-3.11/gnulib-tests/test-select.h:68:7: style: Condition '!failures' is always true [knownConditionTrueFalse] grep-3.11/gnulib-tests/test-select.h:63:14: note: Assignment 'failures=0', assigned value is 0 grep-3.11/gnulib-tests/test-select.h:68:7: note: Condition '!failures' is always true grep-3.11/gnulib-tests/test-pselect.c:32:28: style: Parameter 'timeout' can be declared as pointer to const. However it seems that 'my_select' is a callback function, if 'timeout' is declared with const you might also need to cast function pointer(s). [constParameterCallback] grep-3.11/gnulib-tests/test-pselect.c:48:25: note: You might need to cast the function pointer here grep-3.11/gnulib-tests/test-pselect.c:32:28: note: Parameter 'timeout' can be declared as pointer to const grep-3.11/gnulib-tests/test-pselect.c:35:20: style: Variable 'pts' can be declared as pointer to const [constVariablePointer] grep-3.11/gnulib-tests/test-pthread_sigmask1.c:53:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-pthread_sigmask2.c:101:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-raise.c:42:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-raise.c:50:3: style:inconclusive: Statements following noreturn function 'raise()' will never be executed. [unreachableCode] grep-3.11/gnulib-tests/test-quotearg.h:59:25: debug: Function::addArguments found argument 'func' with varid 0. [varid0] grep-3.11/gnulib-tests/test-quotearg.h:53:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-quotearg.h:73:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-quotearg.h:109:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-quotearg.h:116:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-quotearg.h:124:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-quotearg-simple.c:250:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-quotearg-simple.c:260:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MB_CUR_MAX [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-rawmemchr.c:39:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-quotearg-simple.c:335:9: style: Condition 'z' is always false [knownConditionTrueFalse] grep-3.11/gnulib-tests/test-quotearg-simple.c:333:28: note: Calling function 'zerosize_ptr' returns 0 grep-3.11/gnulib-tests/test-quotearg-simple.c:333:28: note: Assignment 'z=zerosize_ptr()', assigned value is 0 grep-3.11/gnulib-tests/test-quotearg-simple.c:335:9: note: Condition 'z' is always false grep-3.11/gnulib-tests/test-rawmemchr.c:80:9: style: Condition '!page_boundary' is always true [knownConditionTrueFalse] grep-3.11/gnulib-tests/test-rawmemchr.c:77:49: note: Calling function 'zerosize_ptr' returns 0 grep-3.11/gnulib-tests/test-rawmemchr.c:77:27: note: Assignment 'page_boundary=(char*)zerosize_ptr()', assigned value is 0 grep-3.11/gnulib-tests/test-rawmemchr.c:80:9: note: Condition '!page_boundary' is always true grep-3.11/gnulib-tests/test-quotearg.h:63:9: style: Variable 'p' can be declared as pointer to const [constVariablePointer] grep-3.11/gnulib-tests/test-realloc-gnu.c:32:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-realloc-gnu.c:39:7: error: Common realloc mistake: 'p' nulled but not freed upon failure [memleakOnRealloc] grep-3.11/gnulib-tests/test-read.c:37:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-read.c:58:5: error: Invalid read() argument nr 1. The value is -1 but the valid values are '0:'. [invalidFunctionArg] grep-3.11/gnulib-tests/test-getopt.h:97:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] grep-3.11/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration grep-3.11/gnulib-tests/test-getopt.h:97:11: note: Shadow variable grep-3.11/gnulib-tests/test-getopt.h:98:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] grep-3.11/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration grep-3.11/gnulib-tests/test-getopt.h:98:11: note: Shadow variable grep-3.11/gnulib-tests/test-getopt.h:129:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] grep-3.11/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration grep-3.11/gnulib-tests/test-getopt.h:129:11: note: Shadow variable grep-3.11/gnulib-tests/test-getopt.h:130:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] grep-3.11/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration grep-3.11/gnulib-tests/test-getopt.h:130:11: note: Shadow variable grep-3.11/gnulib-tests/test-getopt.h:162:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] grep-3.11/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration grep-3.11/gnulib-tests/test-getopt.h:162:11: note: Shadow variable grep-3.11/gnulib-tests/test-reallocarray.c:39:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PTRDIFF_MAX [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-getopt.h:163:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] grep-3.11/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration grep-3.11/gnulib-tests/test-getopt.h:163:11: note: Shadow variable grep-3.11/gnulib-tests/test-getopt.h:194:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] grep-3.11/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration grep-3.11/gnulib-tests/test-getopt.h:194:11: note: Shadow variable grep-3.11/gnulib-tests/test-getopt.h:195:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] grep-3.11/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration grep-3.11/gnulib-tests/test-getopt.h:195:11: note: Shadow variable grep-3.11/gnulib-tests/test-getopt.h:229:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] grep-3.11/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration grep-3.11/gnulib-tests/test-getopt.h:229:11: note: Shadow variable grep-3.11/gnulib-tests/test-getopt.h:230:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] grep-3.11/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration grep-3.11/gnulib-tests/test-getopt.h:230:11: note: Shadow variable grep-3.11/gnulib-tests/test-getopt.h:260:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] grep-3.11/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration grep-3.11/gnulib-tests/test-getopt.h:260:11: note: Shadow variable grep-3.11/gnulib-tests/test-getopt.h:261:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] grep-3.11/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration grep-3.11/gnulib-tests/test-getopt.h:261:11: note: Shadow variable grep-3.11/gnulib-tests/test-getopt.h:292:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] grep-3.11/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration grep-3.11/gnulib-tests/test-getopt.h:292:11: note: Shadow variable grep-3.11/gnulib-tests/test-getopt.h:293:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] grep-3.11/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration grep-3.11/gnulib-tests/test-getopt.h:293:11: note: Shadow variable grep-3.11/gnulib-tests/test-getopt.h:428:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] grep-3.11/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration grep-3.11/gnulib-tests/test-getopt.h:428:11: note: Shadow variable grep-3.11/gnulib-tests/test-getopt.h:429:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] grep-3.11/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration grep-3.11/gnulib-tests/test-getopt.h:429:11: note: Shadow variable grep-3.11/gnulib-tests/test-getopt.h:462:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] grep-3.11/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration grep-3.11/gnulib-tests/test-getopt.h:462:11: note: Shadow variable grep-3.11/gnulib-tests/test-getopt.h:463:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] grep-3.11/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration grep-3.11/gnulib-tests/test-getopt.h:463:11: note: Shadow variable grep-3.11/gnulib-tests/test-getopt.h:496:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] grep-3.11/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration grep-3.11/gnulib-tests/test-getopt.h:496:11: note: Shadow variable grep-3.11/gnulib-tests/test-getopt.h:497:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] grep-3.11/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration grep-3.11/gnulib-tests/test-getopt.h:497:11: note: Shadow variable grep-3.11/gnulib-tests/test-getopt.h:530:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] grep-3.11/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration grep-3.11/gnulib-tests/test-getopt.h:530:11: note: Shadow variable grep-3.11/gnulib-tests/test-getopt.h:531:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] grep-3.11/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration grep-3.11/gnulib-tests/test-getopt.h:531:11: note: Shadow variable grep-3.11/gnulib-tests/test-getopt.h:564:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] grep-3.11/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration grep-3.11/gnulib-tests/test-getopt.h:564:11: note: Shadow variable grep-3.11/gnulib-tests/test-getopt.h:565:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] grep-3.11/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration grep-3.11/gnulib-tests/test-getopt.h:565:11: note: Shadow variable grep-3.11/gnulib-tests/test-getopt.h:598:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] grep-3.11/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration grep-3.11/gnulib-tests/test-getopt.h:598:11: note: Shadow variable grep-3.11/gnulib-tests/test-getopt.h:599:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] grep-3.11/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration grep-3.11/gnulib-tests/test-getopt.h:599:11: note: Shadow variable grep-3.11/gnulib-tests/test-getopt.h:634:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] grep-3.11/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration grep-3.11/gnulib-tests/test-getopt.h:634:11: note: Shadow variable grep-3.11/gnulib-tests/test-getopt.h:635:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] grep-3.11/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration grep-3.11/gnulib-tests/test-getopt.h:635:11: note: Shadow variable grep-3.11/gnulib-tests/test-getopt.h:664:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] grep-3.11/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration grep-3.11/gnulib-tests/test-getopt.h:664:11: note: Shadow variable grep-3.11/gnulib-tests/test-getopt.h:665:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] grep-3.11/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration grep-3.11/gnulib-tests/test-getopt.h:665:11: note: Shadow variable grep-3.11/gnulib-tests/test-getopt.h:694:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] grep-3.11/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration grep-3.11/gnulib-tests/test-getopt.h:694:11: note: Shadow variable grep-3.11/gnulib-tests/test-getopt.h:695:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] grep-3.11/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration grep-3.11/gnulib-tests/test-getopt.h:695:11: note: Shadow variable grep-3.11/gnulib-tests/test-getopt.h:726:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] grep-3.11/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration grep-3.11/gnulib-tests/test-getopt.h:726:11: note: Shadow variable grep-3.11/gnulib-tests/test-getopt.h:727:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] grep-3.11/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration grep-3.11/gnulib-tests/test-getopt.h:727:11: note: Shadow variable grep-3.11/gnulib-tests/test-getopt.h:793:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] grep-3.11/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration grep-3.11/gnulib-tests/test-getopt.h:793:11: note: Shadow variable grep-3.11/gnulib-tests/test-getopt.h:794:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] grep-3.11/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration grep-3.11/gnulib-tests/test-getopt.h:794:11: note: Shadow variable grep-3.11/gnulib-tests/test-getopt.h:1197:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] grep-3.11/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration grep-3.11/gnulib-tests/test-getopt.h:1197:11: note: Shadow variable grep-3.11/gnulib-tests/test-getopt.h:1198:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] grep-3.11/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration grep-3.11/gnulib-tests/test-getopt.h:1198:11: note: Shadow variable grep-3.11/gnulib-tests/test-reallocarray.c:41:11: error: Common reallocarray mistake: 'p' nulled but not freed upon failure [memleakOnRealloc] grep-3.11/gnulib-tests/test-reallocarray.c:46:7: error: Common reallocarray mistake: 'p' nulled but not freed upon failure [memleakOnRealloc] grep-3.11/gnulib-tests/test-reallocarray.c:52:7: error: Common reallocarray mistake: 'p' nulled but not freed upon failure [memleakOnRealloc] grep-3.11/gnulib-tests/test-reallocarray.c:53:7: error: Common reallocarray mistake: 'p' nulled but not freed upon failure [memleakOnRealloc] grep-3.11/gnulib-tests/test-regex.c:42:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-regex.c:152:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rm_so [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-regex.c:186:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-select-fd.c:61:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-regex.c:263:45: style: Condition 'towupper(L'i')==0x0130' is always false [knownConditionTrueFalse] grep-3.11/gnulib-tests/test-select-stdin.c:61:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-setenv.c:36:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-setlocale1.c:38:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-setlocale1.c:45:5: error: Memory leak: name1 [memleak] grep-3.11/gnulib-tests/test-setlocale1.c:51:5: error: Memory leak: name1 [memleak] grep-3.11/gnulib-tests/test-setlocale2.c:30:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-setlocale_null-mt-all.c:148:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-setlocale_null-mt-one.c:148:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-setlocale_null.c:31:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-sigprocmask.c:53:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-sleep.c:42:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-snprintf.c:38:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/nap.h:51:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/nap.h:72:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/nap.h:96:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/nap.h:110:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/nap.h:131:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-stat-time.c:83:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-stat-time.c:98:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-stat-time.c:104:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-stat-time.c:118:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-stat-time.c:141:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable st_mtime [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-stat-time.c:182:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable st_mtime [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-stat-time.c:204:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tv_nsec [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-snprintf.c:53:20: style: The if condition is the same as the previous if condition [duplicateCondition] grep-3.11/gnulib-tests/test-snprintf.c:47:20: note: First condition grep-3.11/gnulib-tests/test-snprintf.c:53:20: note: Second condition grep-3.11/gnulib-tests/test-stat-time.c:135:59: style: Parameter 'modtimes' can be declared as pointer to const [constParameterPointer] grep-3.11/gnulib-tests/test-stdint.c:372:1: error: syntax error: -) [syntaxError] grep-3.11/gnulib-tests/test-stdlib.c:55:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MB_CUR_MAX [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-strerror.c:35:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-strerror_r.c:36:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-strnlen.c:38:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-strnlen.c:35:7: style: Condition '!page_boundary' is always true [knownConditionTrueFalse] grep-3.11/gnulib-tests/test-strnlen.c:34:47: note: Calling function 'zerosize_ptr' returns 0 grep-3.11/gnulib-tests/test-strnlen.c:34:25: note: Assignment 'page_boundary=(char*)zerosize_ptr()', assigned value is 0 grep-3.11/gnulib-tests/test-strnlen.c:35:7: note: Condition '!page_boundary' is always true grep-3.11/gnulib-tests/test-strstr.c:48:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-strtoimax.c:38:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-intprops.c:201:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-strstr.c:67:19: style: Condition 'page_boundary' is always false [knownConditionTrueFalse] grep-3.11/gnulib-tests/test-strstr.c:65:49: note: Calling function 'zerosize_ptr' returns 0 grep-3.11/gnulib-tests/test-strstr.c:65:27: note: Assignment 'page_boundary=(char*)zerosize_ptr()', assigned value is 0 grep-3.11/gnulib-tests/test-strstr.c:67:19: note: Condition 'page_boundary' is always false grep-3.11/gnulib-tests/test-strstr.c:70:13: warning: If memory allocation fails, then there is a possible null pointer dereference: input [nullPointerOutOfMemory] grep-3.11/gnulib-tests/test-strstr.c:67:64: note: Assuming allocation function fails grep-3.11/gnulib-tests/test-strstr.c:67:33: note: Assignment 'input=page_boundary?page_boundary-len:malloc(len)', assigned value is 0 grep-3.11/gnulib-tests/test-strstr.c:70:13: note: Null pointer dereference grep-3.11/gnulib-tests/test-strstr.c:71:22: warning: If memory allocation fails, then there is a possible null pointer dereference: input [nullPointerOutOfMemory] grep-3.11/gnulib-tests/test-strstr.c:67:64: note: Assuming allocation function fails grep-3.11/gnulib-tests/test-strstr.c:67:33: note: Assignment 'input=page_boundary?page_boundary-len:malloc(len)', assigned value is 0 grep-3.11/gnulib-tests/test-strstr.c:71:22: note: Null pointer dereference grep-3.11/gnulib-tests/test-strstr.c:65:11: style: Variable 'page_boundary' can be declared as pointer to const [constVariablePointer] grep-3.11/gnulib-tests/test-strtoll.c:38:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-strtoull.c:38:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-strtoumax.c:38:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-symlink.h:32:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-sys_socket.c:50:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOTSOCK [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/glthread/thread.h:75:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/gnulib-tests/glthread/thread.h:75:3: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/gnulib-tests/test-time.c:39:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-unsetenv.c:39:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-trim.c:36:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-trim.c:111:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-verify.c:53:13: style: The comparison 'C == 2' is always true. [knownConditionTrueFalse] grep-3.11/gnulib-tests/test-verify.c:57:13: style: Same expression on both sides of '=='. [duplicateExpression] grep-3.11/gnulib-tests/test-verify.c:57:30: style: Same expression on both sides of '=='. [duplicateExpression] grep-3.11/gnulib-tests/test-verify.c:60:35: style: Same expression on both sides of '=='. [duplicateExpression] grep-3.11/gnulib-tests/test-verify.c:60:60: style: Same expression on both sides of '=='. [duplicateExpression] grep-3.11/gnulib-tests/test-version-etc.c:28:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-trim.c:108:23: style: Parameter 'argv' can be declared as const array [constParameter] grep-3.11/gnulib-tests/test-verify.c:75:31: style: struct member 'state::context' is never used. [unusedStructMember] grep-3.11/gnulib-tests/test-wcrtomb-w32.c:333:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-wcrtomb.c:43:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-wcrtomb.c:61:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-wctype-h.c:53:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-wcwidth.c:47:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/test-wcrtomb.c:55:23: style: Parameter 'argv' can be declared as const array [constParameter] grep-3.11/gnulib-tests/xstrtol-error.h:24:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/gnulib-tests/xstrtol-error.h:24:4: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/gnulib-tests/unsetenv.c:64:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/uniwidth/test-uc_width2.c:72:13: style: Condition 'w1==1' is always false [knownConditionTrueFalse] grep-3.11/gnulib-tests/uniwidth/test-uc_width2.c:73:24: style: Condition 'w2==2' is always false [knownConditionTrueFalse] grep-3.11/gnulib-tests/windows-thread.h:25:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/gnulib-tests/windows-thread.h:25:3: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/gnulib-tests/windows-tls.c:40:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/windows-tls.c:88:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/windows-tls.c:220:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] grep-3.11/gnulib-tests/windows-tls.c:337:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] grep-3.11/lib/openat.h:25:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/openat.h:25:3: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/argmatch.h:27:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/argmatch.h:27:4: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/basename-lgpl.h:24:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/basename-lgpl.h:24:3: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/binary-io.h:22:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/binary-io.h:22:3: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/bitrotate.h:24:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/bitrotate.h:24:3: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/btowc.c:30:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] grep-3.11/lib/c-ctype.h:28:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/c-ctype.h:28:3: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/c-stack.h:20:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/c-stack.h:20:3: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/c-strcase.h:23:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/c-strcase.h:23:3: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/calloc.c:41:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PTRDIFF_MAX [valueFlowBailoutIncompleteVar] grep-3.11/lib/pathmax.h:44:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/pathmax.h:44:4: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/cloexec.c:62:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/lib/cloexec.c:82:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_DUPFD_CLOEXEC [valueFlowBailoutIncompleteVar] grep-3.11/lib/fpending.h:24:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/fpending.h:24:3: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/closedir.c:64:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_HANDLE_VALUE [valueFlowBailoutIncompleteVar] grep-3.11/lib/quotearg.h:26:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/quotearg.h:26:4: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/colorize-posix.c:57:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] grep-3.11/lib/colorize-w32.c:42:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STD_OUTPUT_HANDLE [valueFlowBailoutIncompleteVar] grep-3.11/lib/colorize-w32.c:82:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FOREGROUND_GREEN [valueFlowBailoutIncompleteVar] grep-3.11/lib/colorize-w32.c:164:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_HANDLE_VALUE [valueFlowBailoutIncompleteVar] grep-3.11/lib/colorize-w32.c:201:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_HANDLE_VALUE [valueFlowBailoutIncompleteVar] grep-3.11/lib/dirfd.c:94:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/lib/dirname.h:25:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/dirname.h:25:3: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/dup-safer-flag.c:36:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CLOEXEC [valueFlowBailoutIncompleteVar] grep-3.11/lib/dfa.h:27:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/dfa.h:27:3: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/dup-safer.c:33:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_DUPFD [valueFlowBailoutIncompleteVar] grep-3.11/lib/dup2.c:182:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/lib/error.c:140:0: error: #error Please port fcntl to your platform [preprocessorErrorDirective] grep-3.11/lib/error.c:140:5: error: #error Please port fcntl to your platform [preprocessorErrorDirective] grep-3.11/lib/exclude.h:25:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/exclude.h:25:3: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/filenamecat.h:23:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/filenamecat.h:23:3: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/fcntl.c:437:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/lib/fcntl.c:492:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CLOEXEC [valueFlowBailoutIncompleteVar] grep-3.11/lib/fd-safer-flag.c:45:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/lib/fd-safer.c:42:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/lib/attribute.h:55:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/attribute.h:55:3: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/fopen.c:80:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] grep-3.11/lib/free.c:41:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/lib/stat-time.h:26:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/stat-time.h:26:3: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/hash.h:31:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/hash.h:31:3: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/fts_.h:54:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/fts_.h:54:4: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/getcwd-lgpl.c:56:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/lib/getdtablesize.c:114:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RLIMIT_NOFILE [valueFlowBailoutIncompleteVar] grep-3.11/lib/getopt1.c:36:21: style:inconclusive: Function '_getopt_long_r' argument 1 names different: declaration '___argc' definition 'argc'. [funcArgNamesDifferent] grep-3.11/lib/getopt_int.h:107:32: note: Function '_getopt_long_r' argument 1 names different: declaration '___argc' definition 'argc'. grep-3.11/lib/getopt1.c:36:21: note: Function '_getopt_long_r' argument 1 names different: declaration '___argc' definition 'argc'. grep-3.11/lib/getopt1.c:36:34: style:inconclusive: Function '_getopt_long_r' argument 2 names different: declaration '___argv' definition 'argv'. [funcArgNamesDifferent] grep-3.11/lib/getopt_int.h:107:48: note: Function '_getopt_long_r' argument 2 names different: declaration '___argv' definition 'argv'. grep-3.11/lib/getopt1.c:36:34: note: Function '_getopt_long_r' argument 2 names different: declaration '___argv' definition 'argv'. grep-3.11/lib/getopt1.c:36:52: style:inconclusive: Function '_getopt_long_r' argument 3 names different: declaration '__shortopts' definition 'options'. [funcArgNamesDifferent] grep-3.11/lib/getopt_int.h:108:19: note: Function '_getopt_long_r' argument 3 names different: declaration '__shortopts' definition 'options'. grep-3.11/lib/getopt1.c:36:52: note: Function '_getopt_long_r' argument 3 names different: declaration '__shortopts' definition 'options'. grep-3.11/lib/getopt1.c:37:24: style:inconclusive: Function '_getopt_long_r' argument 4 names different: declaration '__longopts' definition 'long_options'. [funcArgNamesDifferent] grep-3.11/lib/getopt_int.h:109:28: note: Function '_getopt_long_r' argument 4 names different: declaration '__longopts' definition 'long_options'. grep-3.11/lib/getopt1.c:37:24: note: Function '_getopt_long_r' argument 4 names different: declaration '__longopts' definition 'long_options'. grep-3.11/lib/getopt1.c:37:43: style:inconclusive: Function '_getopt_long_r' argument 5 names different: declaration '__longind' definition 'opt_index'. [funcArgNamesDifferent] grep-3.11/lib/getopt_int.h:109:45: note: Function '_getopt_long_r' argument 5 names different: declaration '__longind' definition 'opt_index'. grep-3.11/lib/getopt1.c:37:43: note: Function '_getopt_long_r' argument 5 names different: declaration '__longind' definition 'opt_index'. grep-3.11/lib/getopt1.c:38:24: style:inconclusive: Function '_getopt_long_r' argument 6 names different: declaration '__data' definition 'd'. [funcArgNamesDifferent] grep-3.11/lib/getopt_int.h:110:28: note: Function '_getopt_long_r' argument 6 names different: declaration '__data' definition 'd'. grep-3.11/lib/getopt1.c:38:24: note: Function '_getopt_long_r' argument 6 names different: declaration '__data' definition 'd'. grep-3.11/lib/getopt1.c:59:26: style:inconclusive: Function '_getopt_long_only_r' argument 1 names different: declaration '___argc' definition 'argc'. [funcArgNamesDifferent] grep-3.11/lib/getopt_int.h:112:37: note: Function '_getopt_long_only_r' argument 1 names different: declaration '___argc' definition 'argc'. grep-3.11/lib/getopt1.c:59:26: note: Function '_getopt_long_only_r' argument 1 names different: declaration '___argc' definition 'argc'. grep-3.11/lib/getopt1.c:59:39: style:inconclusive: Function '_getopt_long_only_r' argument 2 names different: declaration '___argv' definition 'argv'. [funcArgNamesDifferent] grep-3.11/lib/getopt_int.h:112:53: note: Function '_getopt_long_only_r' argument 2 names different: declaration '___argv' definition 'argv'. grep-3.11/lib/getopt1.c:59:39: note: Function '_getopt_long_only_r' argument 2 names different: declaration '___argv' definition 'argv'. grep-3.11/lib/getopt1.c:59:57: style:inconclusive: Function '_getopt_long_only_r' argument 3 names different: declaration '__shortopts' definition 'options'. [funcArgNamesDifferent] grep-3.11/lib/getopt_int.h:113:17: note: Function '_getopt_long_only_r' argument 3 names different: declaration '__shortopts' definition 'options'. grep-3.11/lib/getopt1.c:59:57: note: Function '_getopt_long_only_r' argument 3 names different: declaration '__shortopts' definition 'options'. grep-3.11/lib/getopt1.c:60:29: style:inconclusive: Function '_getopt_long_only_r' argument 4 names different: declaration '__longopts' definition 'long_options'. [funcArgNamesDifferent] grep-3.11/lib/getopt_int.h:114:26: note: Function '_getopt_long_only_r' argument 4 names different: declaration '__longopts' definition 'long_options'. grep-3.11/lib/getopt1.c:60:29: note: Function '_getopt_long_only_r' argument 4 names different: declaration '__longopts' definition 'long_options'. grep-3.11/lib/getopt1.c:60:48: style:inconclusive: Function '_getopt_long_only_r' argument 5 names different: declaration '__longind' definition 'opt_index'. [funcArgNamesDifferent] grep-3.11/lib/getopt_int.h:115:10: note: Function '_getopt_long_only_r' argument 5 names different: declaration '__longind' definition 'opt_index'. grep-3.11/lib/getopt1.c:60:48: note: Function '_getopt_long_only_r' argument 5 names different: declaration '__longind' definition 'opt_index'. grep-3.11/lib/getopt1.c:61:29: style:inconclusive: Function '_getopt_long_only_r' argument 6 names different: declaration '__data' definition 'd'. [funcArgNamesDifferent] grep-3.11/lib/getopt_int.h:116:26: note: Function '_getopt_long_only_r' argument 6 names different: declaration '__data' definition 'd'. grep-3.11/lib/getopt1.c:61:29: note: Function '_getopt_long_only_r' argument 6 names different: declaration '__data' definition 'd'. grep-3.11/lib/fnmatch_loop.c:63:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FNM_EXTMATCH [valueFlowBailoutIncompleteVar] grep-3.11/lib/fnmatch_loop.c:945:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable posixly_correct [valueFlowBailoutIncompleteVar] grep-3.11/lib/fnmatch_loop.c:1007:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable posixly_correct [valueFlowBailoutIncompleteVar] grep-3.11/lib/getopt.c:278:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/lib/getopt.c:621:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grep-3.11/lib/hard-locale.c:30:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SETLOCALE_NULL_MAX [valueFlowBailoutIncompleteVar] grep-3.11/lib/i-ring.h:20:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/i-ring.h:20:3: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/ialloc.h:24:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/ialloc.h:24:3: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/isatty.c:99:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] grep-3.11/lib/isatty.c:171:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_HANDLE_VALUE [valueFlowBailoutIncompleteVar] grep-3.11/lib/gettext.h:247:16: error: Returning pointer to local variable 'msg_ctxt_id' that will be invalid when returning. [returnDanglingLifetime] grep-3.11/lib/gettext.h:239:15: note: Array decayed to pointer here. grep-3.11/lib/gettext.h:226:8: note: Variable created here. grep-3.11/lib/gettext.h:247:16: note: Returning pointer to local variable 'msg_ctxt_id' that will be invalid when returning. grep-3.11/lib/getopt.c:471:25: style:inconclusive: Function '_getopt_internal_r' argument 1 names different: declaration '___argc' definition 'argc'. [funcArgNamesDifferent] grep-3.11/lib/getopt_int.h:101:36: note: Function '_getopt_internal_r' argument 1 names different: declaration '___argc' definition 'argc'. grep-3.11/lib/getopt.c:471:25: note: Function '_getopt_internal_r' argument 1 names different: declaration '___argc' definition 'argc'. grep-3.11/lib/getopt.c:471:38: style:inconclusive: Function '_getopt_internal_r' argument 2 names different: declaration '___argv' definition 'argv'. [funcArgNamesDifferent] grep-3.11/lib/getopt_int.h:101:52: note: Function '_getopt_internal_r' argument 2 names different: declaration '___argv' definition 'argv'. grep-3.11/lib/getopt.c:471:38: note: Function '_getopt_internal_r' argument 2 names different: declaration '___argv' definition 'argv'. grep-3.11/lib/getopt.c:471:56: style:inconclusive: Function '_getopt_internal_r' argument 3 names different: declaration '__shortopts' definition 'optstring'. [funcArgNamesDifferent] grep-3.11/lib/getopt_int.h:102:23: note: Function '_getopt_internal_r' argument 3 names different: declaration '__shortopts' definition 'optstring'. grep-3.11/lib/getopt.c:471:56: note: Function '_getopt_internal_r' argument 3 names different: declaration '__shortopts' definition 'optstring'. grep-3.11/lib/getopt.c:472:28: style:inconclusive: Function '_getopt_internal_r' argument 4 names different: declaration '__longopts' definition 'longopts'. [funcArgNamesDifferent] grep-3.11/lib/getopt_int.h:103:32: note: Function '_getopt_internal_r' argument 4 names different: declaration '__longopts' definition 'longopts'. grep-3.11/lib/getopt.c:472:28: note: Function '_getopt_internal_r' argument 4 names different: declaration '__longopts' definition 'longopts'. grep-3.11/lib/getopt.c:472:43: style:inconclusive: Function '_getopt_internal_r' argument 5 names different: declaration '__longind' definition 'longind'. [funcArgNamesDifferent] grep-3.11/lib/getopt_int.h:103:49: note: Function '_getopt_internal_r' argument 5 names different: declaration '__longind' definition 'longind'. grep-3.11/lib/getopt.c:472:43: note: Function '_getopt_internal_r' argument 5 names different: declaration '__longind' definition 'longind'. grep-3.11/lib/getopt.c:473:11: style:inconclusive: Function '_getopt_internal_r' argument 6 names different: declaration '__long_only' definition 'long_only'. [funcArgNamesDifferent] grep-3.11/lib/getopt_int.h:104:15: note: Function '_getopt_internal_r' argument 6 names different: declaration '__long_only' definition 'long_only'. grep-3.11/lib/getopt.c:473:11: note: Function '_getopt_internal_r' argument 6 names different: declaration '__long_only' definition 'long_only'. grep-3.11/lib/getopt.c:473:43: style:inconclusive: Function '_getopt_internal_r' argument 7 names different: declaration '__data' definition 'd'. [funcArgNamesDifferent] grep-3.11/lib/getopt_int.h:104:49: note: Function '_getopt_internal_r' argument 7 names different: declaration '__data' definition 'd'. grep-3.11/lib/getopt.c:473:43: note: Function '_getopt_internal_r' argument 7 names different: declaration '__data' definition 'd'. grep-3.11/lib/getopt.c:473:50: style:inconclusive: Function '_getopt_internal_r' argument 8 names different: declaration '__posixly_correct' definition 'posixly_correct'. [funcArgNamesDifferent] grep-3.11/lib/getopt_int.h:105:15: note: Function '_getopt_internal_r' argument 8 names different: declaration '__posixly_correct' definition 'posixly_correct'. grep-3.11/lib/getopt.c:473:50: note: Function '_getopt_internal_r' argument 8 names different: declaration '__posixly_correct' definition 'posixly_correct'. grep-3.11/lib/getopt.c:703:23: style:inconclusive: Function '_getopt_internal' argument 1 names different: declaration '___argc' definition 'argc'. [funcArgNamesDifferent] grep-3.11/lib/getopt_int.h:25:34: note: Function '_getopt_internal' argument 1 names different: declaration '___argc' definition 'argc'. grep-3.11/lib/getopt.c:703:23: note: Function '_getopt_internal' argument 1 names different: declaration '___argc' definition 'argc'. grep-3.11/lib/getopt.c:703:36: style:inconclusive: Function '_getopt_internal' argument 2 names different: declaration '___argv' definition 'argv'. [funcArgNamesDifferent] grep-3.11/lib/getopt_int.h:25:50: note: Function '_getopt_internal' argument 2 names different: declaration '___argv' definition 'argv'. grep-3.11/lib/getopt.c:703:36: note: Function '_getopt_internal' argument 2 names different: declaration '___argv' definition 'argv'. grep-3.11/lib/getopt.c:703:54: style:inconclusive: Function '_getopt_internal' argument 3 names different: declaration '__shortopts' definition 'optstring'. [funcArgNamesDifferent] grep-3.11/lib/getopt_int.h:26:21: note: Function '_getopt_internal' argument 3 names different: declaration '__shortopts' definition 'optstring'. grep-3.11/lib/getopt.c:703:54: note: Function '_getopt_internal' argument 3 names different: declaration '__shortopts' definition 'optstring'. grep-3.11/lib/getopt.c:704:26: style:inconclusive: Function '_getopt_internal' argument 4 names different: declaration '__longopts' definition 'longopts'. [funcArgNamesDifferent] grep-3.11/lib/getopt_int.h:27:30: note: Function '_getopt_internal' argument 4 names different: declaration '__longopts' definition 'longopts'. grep-3.11/lib/getopt.c:704:26: note: Function '_getopt_internal' argument 4 names different: declaration '__longopts' definition 'longopts'. grep-3.11/lib/getopt.c:704:41: style:inconclusive: Function '_getopt_internal' argument 5 names different: declaration '__longind' definition 'longind'. [funcArgNamesDifferent] grep-3.11/lib/getopt_int.h:27:47: note: Function '_getopt_internal' argument 5 names different: declaration '__longind' definition 'longind'. grep-3.11/lib/getopt.c:704:41: note: Function '_getopt_internal' argument 5 names different: declaration '__longind' definition 'longind'. grep-3.11/lib/getopt.c:704:54: style:inconclusive: Function '_getopt_internal' argument 6 names different: declaration '__long_only' definition 'long_only'. [funcArgNamesDifferent] grep-3.11/lib/getopt_int.h:28:13: note: Function '_getopt_internal' argument 6 names different: declaration '__long_only' definition 'long_only'. grep-3.11/lib/getopt.c:704:54: note: Function '_getopt_internal' argument 6 names different: declaration '__long_only' definition 'long_only'. grep-3.11/lib/getopt.c:705:9: style:inconclusive: Function '_getopt_internal' argument 7 names different: declaration '__posixly_correct' definition 'posixly_correct'. [funcArgNamesDifferent] grep-3.11/lib/getopt_int.h:28:30: note: Function '_getopt_internal' argument 7 names different: declaration '__posixly_correct' definition 'posixly_correct'. grep-3.11/lib/getopt.c:705:9: note: Function '_getopt_internal' argument 7 names different: declaration '__posixly_correct' definition 'posixly_correct'. grep-3.11/lib/localcharset.c:1088:14: style: Condition 'locale==NULL' is always true [knownConditionTrueFalse] grep-3.11/lib/localcharset.c:1079:24: note: Assignment 'locale=NULL', assigned value is 0 grep-3.11/lib/localcharset.c:1088:14: note: Condition 'locale==NULL' is always true grep-3.11/lib/localcharset.c:579:14: style: struct member 'table_entry::locale' is never used. [unusedStructMember] grep-3.11/lib/localcharset.c:580:14: style: struct member 'table_entry::canonical' is never used. [unusedStructMember] grep-3.11/lib/localcharset.c:1097:22: style: Variable 'locale' is assigned a value that is never used. [unreadVariable] grep-3.11/lib/fnmatch_loop.c:925:38: style: Condition 'n!=string_end' is always true [knownConditionTrueFalse] grep-3.11/lib/fnmatch_loop.c:1109:36: style: Condition 'rs==string' is always false [knownConditionTrueFalse] grep-3.11/lib/lseek.c:80:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/lib/localeinfo.c:89:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MB_CUR_MAX [valueFlowBailoutIncompleteVar] grep-3.11/lib/fnmatch_loop.c:934:18: style:inconclusive: Function 'END' argument 1 names different: declaration 'patternp' definition 'pattern'. [funcArgNamesDifferent] grep-3.11/lib/fnmatch_loop.c:37:37: note: Function 'END' argument 1 names different: declaration 'patternp' definition 'pattern'. grep-3.11/lib/fnmatch_loop.c:934:18: note: Function 'END' argument 1 names different: declaration 'patternp' definition 'pattern'. grep-3.11/lib/fnmatch_loop.c:1096:44: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] grep-3.11/lib/fnmatch_loop.c:1105:26: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] grep-3.11/lib/fnmatch_loop.c:1113:33: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] grep-3.11/lib/fnmatch_loop.c:1137:40: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] grep-3.11/lib/fnmatch_loop.c:1154:44: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] grep-3.11/lib/fnmatch_loop.c:1164:46: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] grep-3.11/lib/malloc.c:37:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PTRDIFF_MAX [valueFlowBailoutIncompleteVar] grep-3.11/lib/malloc/dynarray-skeleton.c:95:0: error: #error "DYNARRAY_STRUCT must be defined" [preprocessorErrorDirective] grep-3.11/lib/malloc/dynarray-skeleton.c:95:3: error: #error "DYNARRAY_STRUCT must be defined" [preprocessorErrorDirective] grep-3.11/lib/malloc/dynarray_emplace_enlarge.c:53:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] grep-3.11/lib/malloc/dynarray_finalize.c:59:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable array [valueFlowBailoutIncompleteVar] grep-3.11/lib/malloc/dynarray_resize.c:48:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] grep-3.11/lib/malloc/dynarray_finalize.c:29:33: style: Parameter 'scratch' can be declared as pointer to const. However it seems that '__libc_dynarray_finalize' is a callback function, if 'scratch' is declared with const you might also need to cast function pointer(s). [constParameterCallback] grep-3.11/lib/malloc/dynarray_finalize.c:66:18: note: You might need to cast the function pointer here grep-3.11/lib/malloc/dynarray_finalize.c:29:33: note: Parameter 'scratch' can be declared as pointer to const grep-3.11/lib/malloc/dynarray_resize.c:31:31: style: Parameter 'scratch' can be declared as pointer to const. However it seems that '__libc_dynarray_resize' is a callback function, if 'scratch' is declared with const you might also need to cast function pointer(s). [constParameterCallback] grep-3.11/lib/malloc/dynarray_resize.c:68:18: note: You might need to cast the function pointer here grep-3.11/lib/malloc/dynarray_resize.c:31:31: note: Parameter 'scratch' can be declared as pointer to const grep-3.11/lib/malloca.h:24:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/malloca.h:24:3: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/malloc/dynarray_emplace_enlarge.c:31:40: style: Parameter 'scratch' can be declared as pointer to const. However it seems that '__libc_dynarray_emplace_enlarge' is a callback function, if 'scratch' is declared with const you might also need to cast function pointer(s). [constParameterCallback] grep-3.11/lib/malloc/dynarray_emplace_enlarge.c:77:18: note: You might need to cast the function pointer here grep-3.11/lib/malloc/dynarray_emplace_enlarge.c:31:40: note: Parameter 'scratch' can be declared as pointer to const grep-3.11/lib/mbchar.h:149:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/mbchar.h:149:3: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/mbiter.h:87:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/mbiter.h:87:3: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/mbuiter.h:94:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/mbuiter.h:94:3: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/strnlen1.h:22:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/strnlen1.h:22:3: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/mbtowc-impl.h:37:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/lib/memchr2.h:19:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/memchr2.h:19:3: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/msvc-inval.h:57:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/msvc-inval.h:57:3: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/msvc-nothrow.h:30:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/msvc-nothrow.h:30:3: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/obstack.h:108:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/obstack.h:108:3: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/open-safer.c:33:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] grep-3.11/lib/open.c:72:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] grep-3.11/lib/nl_langinfo.c:77:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SETLOCALE_NULL_MAX [valueFlowBailoutIncompleteVar] grep-3.11/lib/nl_langinfo.c:377:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable decimal_point [valueFlowBailoutIncompleteVar] grep-3.11/lib/openat-safer.c:33:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] grep-3.11/lib/openat-proc.c:82:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_SEARCH [valueFlowBailoutIncompleteVar] grep-3.11/lib/opendir.c:115:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PATH [valueFlowBailoutIncompleteVar] grep-3.11/lib/nl_langinfo.c:451:5: style: Statements following 'return' will never be executed. [unreachableCode] grep-3.11/lib/opendirat.c:38:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] grep-3.11/lib/pipe.c:48:0: error: #error "This platform lacks a pipe function, and Gnulib doesn't provide a replacement. This is a bug in Gnulib." [preprocessorErrorDirective] grep-3.11/lib/pipe.c:48:3: error: #error "This platform lacks a pipe function, and Gnulib doesn't provide a replacement. This is a bug in Gnulib." [preprocessorErrorDirective] grep-3.11/lib/pipe-safer.c:41:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/lib/trim.h:21:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/trim.h:21:3: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/rawmemchr.c:37:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UINTPTR_WIDTH [valueFlowBailoutIncompleteVar] grep-3.11/lib/readdir.c:68:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/lib/rawmemchr.c:109:16: style: Variable 's' is reassigned a value before the old one has been used. [redundantAssignment] grep-3.11/lib/rawmemchr.c:50:36: note: s is assigned grep-3.11/lib/rawmemchr.c:109:16: note: s is overwritten grep-3.11/lib/realloc.c:49:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PTRDIFF_MAX [valueFlowBailoutIncompleteVar] grep-3.11/lib/rawmemchr.c:109:16: style: Variable 's' is assigned a value that is never used. [unreadVariable] grep-3.11/lib/reallocarray.c:32:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/lib/regcomp.c:125:5: error: There is an unknown macro here somewhere. Configuration is required. If gettext_noop is a macro then please configure it. [unknownMacro] grep-3.11/lib/safe-read.c:66:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/lib/regex_internal.c:60:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_NOERROR [valueFlowBailoutIncompleteVar] grep-3.11/lib/regex_internal.c:79:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable re_string_t [valueFlowBailoutIncompleteVar] grep-3.11/lib/regex_internal.c:141:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Idx [valueFlowBailoutIncompleteVar] grep-3.11/lib/regex_internal.c:261:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WEOF [valueFlowBailoutIncompleteVar] grep-3.11/lib/regex_internal.c:337:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WEOF [valueFlowBailoutIncompleteVar] grep-3.11/lib/regex_internal.c:494:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WEOF [valueFlowBailoutIncompleteVar] grep-3.11/lib/regex_internal.c:586:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_NOTBOL [valueFlowBailoutIncompleteVar] grep-3.11/lib/regex_internal.c:902:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_NOTEOL [valueFlowBailoutIncompleteVar] grep-3.11/lib/regex_internal.c:939:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Idx [valueFlowBailoutIncompleteVar] grep-3.11/lib/regex_internal.c:952:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Idx [valueFlowBailoutIncompleteVar] grep-3.11/lib/regex_internal.c:967:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Idx [valueFlowBailoutIncompleteVar] grep-3.11/lib/regex_internal.c:1000:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Idx [valueFlowBailoutIncompleteVar] grep-3.11/lib/regex_internal.c:1024:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_NOERROR [valueFlowBailoutIncompleteVar] grep-3.11/lib/regex_internal.c:1117:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Idx [valueFlowBailoutIncompleteVar] grep-3.11/lib/regex_internal.c:1167:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_NOERROR [valueFlowBailoutIncompleteVar] grep-3.11/lib/regex_internal.c:1255:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_NOERROR [valueFlowBailoutIncompleteVar] grep-3.11/lib/regex_internal.c:1312:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Idx [valueFlowBailoutIncompleteVar] grep-3.11/lib/regex_internal.c:1388:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable re_token_t [valueFlowBailoutIncompleteVar] grep-3.11/lib/regex_internal.c:1461:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_NOERROR [valueFlowBailoutIncompleteVar] grep-3.11/lib/regex_internal.c:1509:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_NOERROR [valueFlowBailoutIncompleteVar] grep-3.11/lib/regex_internal.c:1546:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_NOERROR [valueFlowBailoutIncompleteVar] grep-3.11/lib/regex_internal.c:1599:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable re_dfastate_t [valueFlowBailoutIncompleteVar] grep-3.11/lib/regex_internal.c:1647:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable re_dfastate_t [valueFlowBailoutIncompleteVar] grep-3.11/lib/setlocale_null.c:150:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] grep-3.11/lib/setlocale_null.c:317:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] grep-3.11/lib/sigsegv.c:1354:38: style: Parameter 'extra_stack' can be declared as pointer to const [constParameterPointer] grep-3.11/lib/stackvma.c:2375:56: style: Parameter 'vma' can be declared as pointer to const [constParameterPointer] grep-3.11/lib/strerror-override.h:23:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/strerror-override.h:23:4: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/striconv.h:23:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/striconv.h:23:3: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/regexec.c:194:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_NOTBOL [valueFlowBailoutIncompleteVar] grep-3.11/lib/regexec.c:413:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable regmatch_t [valueFlowBailoutIncompleteVar] grep-3.11/lib/regexec.c:457:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REGS_REALLOCATE [valueFlowBailoutIncompleteVar] grep-3.11/lib/regexec.c:537:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REGS_REALLOCATE [valueFlowBailoutIncompleteVar] grep-3.11/lib/regexec.c:609:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_NOMATCH [valueFlowBailoutIncompleteVar] grep-3.11/lib/regexec.c:909:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_ESPACE [valueFlowBailoutIncompleteVar] grep-3.11/lib/regexec.c:1042:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_NOERROR [valueFlowBailoutIncompleteVar] grep-3.11/lib/regexec.c:1164:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] grep-3.11/lib/regexec.c:1205:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] grep-3.11/lib/regexec.c:1315:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable re_fail_stack_ent_t [valueFlowBailoutIncompleteVar] grep-3.11/lib/regexec.c:1342:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable idx [valueFlowBailoutIncompleteVar] grep-3.11/lib/regexec.c:1381:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable re_fail_stack_ent_t [valueFlowBailoutIncompleteVar] grep-3.11/lib/regexec.c:1465:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable eps_via_nodes [valueFlowBailoutIncompleteVar] grep-3.11/lib/regexec.c:1477:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] grep-3.11/lib/regexec.c:1557:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_NOERROR [valueFlowBailoutIncompleteVar] grep-3.11/lib/regexec.c:1605:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable non_eps_nodes [valueFlowBailoutIncompleteVar] grep-3.11/lib/regexec.c:1668:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_NOERROR [valueFlowBailoutIncompleteVar] grep-3.11/lib/regexec.c:1695:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nodes [valueFlowBailoutIncompleteVar] grep-3.11/lib/regexec.c:1714:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_NOERROR [valueFlowBailoutIncompleteVar] grep-3.11/lib/regexec.c:1760:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_NOERROR [valueFlowBailoutIncompleteVar] grep-3.11/lib/regexec.c:1798:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] grep-3.11/lib/regexec.c:1846:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable idx [valueFlowBailoutIncompleteVar] grep-3.11/lib/regexec.c:1880:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] grep-3.11/lib/regexec.c:1994:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable idx [valueFlowBailoutIncompleteVar] grep-3.11/lib/regexec.c:2076:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_NOERROR [valueFlowBailoutIncompleteVar] grep-3.11/lib/regexec.c:2172:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nodes [valueFlowBailoutIncompleteVar] grep-3.11/lib/regexec.c:2203:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_NOERROR [valueFlowBailoutIncompleteVar] grep-3.11/lib/regexec.c:2279:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_NOERROR [valueFlowBailoutIncompleteVar] grep-3.11/lib/regexec.c:2371:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] grep-3.11/lib/regexec.c:2442:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable accept_mb [valueFlowBailoutIncompleteVar] grep-3.11/lib/regexec.c:2511:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OP_BACK_REF [valueFlowBailoutIncompleteVar] grep-3.11/lib/regexec.c:2620:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_NOERROR [valueFlowBailoutIncompleteVar] grep-3.11/lib/regexec.c:2768:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OP_OPEN_SUBEXP [valueFlowBailoutIncompleteVar] grep-3.11/lib/regexec.c:2815:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_NOERROR [valueFlowBailoutIncompleteVar] grep-3.11/lib/regexec.c:2982:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_NOERROR [valueFlowBailoutIncompleteVar] grep-3.11/lib/regexec.c:3059:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_NOERROR [valueFlowBailoutIncompleteVar] grep-3.11/lib/regexec.c:3110:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] grep-3.11/lib/regexec.c:3156:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_NOERROR [valueFlowBailoutIncompleteVar] grep-3.11/lib/regexec.c:3244:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SBC_MAX [valueFlowBailoutIncompleteVar] grep-3.11/lib/regexec.c:3444:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CHARACTER [valueFlowBailoutIncompleteVar] grep-3.11/lib/regexec.c:3619:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OP_UTF8_PERIOD [valueFlowBailoutIncompleteVar] grep-3.11/lib/regexec.c:3918:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ASCII_CHARS [valueFlowBailoutIncompleteVar] grep-3.11/lib/regexec.c:3956:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_ESPACE [valueFlowBailoutIncompleteVar] grep-3.11/lib/regexec.c:4018:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable re_backref_cache_entry [valueFlowBailoutIncompleteVar] grep-3.11/lib/regexec.c:4094:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable re_backref_cache_entry [valueFlowBailoutIncompleteVar] grep-3.11/lib/regexec.c:4143:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable str_idx [valueFlowBailoutIncompleteVar] grep-3.11/lib/regexec.c:4170:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_ESPACE [valueFlowBailoutIncompleteVar] grep-3.11/lib/regexec.c:4201:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable re_sub_match_last_t [valueFlowBailoutIncompleteVar] grep-3.11/lib/str-two-way.h:136:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] grep-3.11/lib/str-two-way.h:302:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] grep-3.11/lib/str-two-way.h:434:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] grep-3.11/lib/regex_internal.c:1612:19: style: Variable 'node' can be declared as pointer to const [constVariablePointer] grep-3.11/lib/regex_internal.c:1662:19: style: Variable 'node' can be declared as pointer to const [constVariablePointer] grep-3.11/lib/strtol.c:257:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/lib/strtol.c:329:13: warning: Either the condition 's==end' is redundant or there is possible null pointer dereference: s. [nullPointerRedundantCheck] grep-3.11/lib/strtol.c:322:11: note: Assignment 'end=NULL', assigned value is 0 grep-3.11/lib/strtol.c:331:13: note: Assuming that condition 's==end' is not redundant grep-3.11/lib/strtol.c:303:10: note: Assignment 'save=s', assigned value is 0 grep-3.11/lib/strtol.c:303:8: note: save is assigned 's' here. grep-3.11/lib/strtol.c:329:13: note: Null pointer dereference grep-3.11/lib/unistr/u8-uctomb-aux.c:53:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALLTHROUGH [valueFlowBailoutIncompleteVar] grep-3.11/lib/unistr/u8-uctomb.c:67:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALLTHROUGH [valueFlowBailoutIncompleteVar] grep-3.11/lib/uniwidth/width.c:61:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nonspacing_table_ind [valueFlowBailoutIncompleteVar] grep-3.11/lib/version-etc.h:24:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/version-etc.h:24:4: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/wcrtomb.c:35:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/lib/wctob.c:31:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MB_CUR_MAX [valueFlowBailoutIncompleteVar] grep-3.11/lib/wcrtomb.c:28:42: style: Parameter 'ps' can be declared as pointer to const [constParameterPointer] grep-3.11/lib/windows-mutex.c:70:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EBUSY [valueFlowBailoutIncompleteVar] grep-3.11/lib/windows-mutex.c:82:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] grep-3.11/lib/windows-mutex.c:91:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] grep-3.11/lib/windows-recmutex.c:64:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EAGAIN [valueFlowBailoutIncompleteVar] grep-3.11/lib/windows-recmutex.c:84:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EBUSY [valueFlowBailoutIncompleteVar] grep-3.11/lib/windows-recmutex.c:108:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EPERM [valueFlowBailoutIncompleteVar] grep-3.11/lib/windows-recmutex.c:123:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EBUSY [valueFlowBailoutIncompleteVar] grep-3.11/lib/xalloc.h:25:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/xalloc.h:25:3: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/windows-rwlock.c:56:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HANDLE [valueFlowBailoutIncompleteVar] grep-3.11/lib/windows-rwlock.c:161:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_HANDLE_VALUE [valueFlowBailoutIncompleteVar] grep-3.11/lib/windows-rwlock.c:218:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_HANDLE_VALUE [valueFlowBailoutIncompleteVar] grep-3.11/lib/windows-rwlock.c:279:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EBUSY [valueFlowBailoutIncompleteVar] grep-3.11/lib/windows-rwlock.c:312:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EBUSY [valueFlowBailoutIncompleteVar] grep-3.11/lib/windows-rwlock.c:323:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] grep-3.11/lib/windows-rwlock.c:367:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] grep-3.11/lib/xbinary-io.h:22:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/xbinary-io.h:22:3: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/xstriconv.h:23:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/xstriconv.h:23:3: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.11/lib/regexec.c:1950:27: style:inconclusive: Function 'check_dst_limits_calc_pos' argument 4 names different: declaration 'node' definition 'from_node'. [funcArgNamesDifferent] grep-3.11/lib/regexec.c:94:15: note: Function 'check_dst_limits_calc_pos' argument 4 names different: declaration 'node' definition 'from_node'. grep-3.11/lib/regexec.c:1950:27: note: Function 'check_dst_limits_calc_pos' argument 4 names different: declaration 'node' definition 'from_node'. grep-3.11/lib/regexec.c:3425:21: style:inconclusive: Function 'group_nodes_into_DFAstates' argument 3 names different: declaration 'states_node' definition 'dests_node'. [funcArgNamesDifferent] grep-3.11/lib/regexec.c:163:25: note: Function 'group_nodes_into_DFAstates' argument 3 names different: declaration 'states_node' definition 'dests_node'. grep-3.11/lib/regexec.c:3425:21: note: Function 'group_nodes_into_DFAstates' argument 3 names different: declaration 'states_node' definition 'dests_node'. grep-3.11/lib/regexec.c:3425:43: style:inconclusive: Function 'group_nodes_into_DFAstates' argument 4 names different: declaration 'states_ch' definition 'dests_ch'. [funcArgNamesDifferent] grep-3.11/lib/regexec.c:164:22: note: Function 'group_nodes_into_DFAstates' argument 4 names different: declaration 'states_ch' definition 'dests_ch'. grep-3.11/lib/regexec.c:3425:43: note: Function 'group_nodes_into_DFAstates' argument 4 names different: declaration 'states_ch' definition 'dests_ch'. grep-3.11/lib/regexec.c:3613:35: style:inconclusive: Function 'check_node_accept_bytes' argument 4 names different: declaration 'idx' definition 'str_idx'. [funcArgNamesDifferent] grep-3.11/lib/regexec.c:156:39: note: Function 'check_node_accept_bytes' argument 4 names different: declaration 'idx' definition 'str_idx'. grep-3.11/lib/regexec.c:3613:35: note: Function 'check_node_accept_bytes' argument 4 names different: declaration 'idx' definition 'str_idx'. grep-3.11/lib/regexec.c:4010:37: style:inconclusive: Function 'match_ctx_init' argument 1 names different: declaration 'cache' definition 'mctx'. [funcArgNamesDifferent] grep-3.11/lib/regexec.c:20:58: note: Function 'match_ctx_init' argument 1 names different: declaration 'cache' definition 'mctx'. grep-3.11/lib/regexec.c:4010:37: note: Function 'match_ctx_init' argument 1 names different: declaration 'cache' definition 'mctx'. grep-3.11/lib/regexec.c:4073:37: style:inconclusive: Function 'match_ctx_free' argument 1 names different: declaration 'cache' definition 'mctx'. [funcArgNamesDifferent] grep-3.11/lib/regexec.c:23:49: note: Function 'match_ctx_free' argument 1 names different: declaration 'cache' definition 'mctx'. grep-3.11/lib/regexec.c:4073:37: note: Function 'match_ctx_free' argument 1 names different: declaration 'cache' definition 'mctx'. grep-3.11/lib/regexec.c:4088:42: style:inconclusive: Function 'match_ctx_add_entry' argument 1 names different: declaration 'cache' definition 'mctx'. [funcArgNamesDifferent] grep-3.11/lib/regexec.c:24:63: note: Function 'match_ctx_add_entry' argument 1 names different: declaration 'cache' definition 'mctx'. grep-3.11/lib/regexec.c:4088:42: note: Function 'match_ctx_add_entry' argument 1 names different: declaration 'cache' definition 'mctx'. grep-3.11/lib/regexec.c:798:20: style: Variable 'pstate' can be declared as pointer to const [constVariablePointer] grep-3.11/lib/regexec.c:1307:27: style: Parameter 'regs' can be declared as pointer to const [constParameterPointer] grep-3.11/lib/regexec.c:1307:45: style: Parameter 'prevregs' can be declared as pointer to const [constParameterPointer] grep-3.11/lib/regexec.c:1844:38: style: Variable 'ent' can be declared as pointer to const [constVariablePointer] grep-3.11/lib/regexec.c:1953:34: style: Variable 'lim' can be declared as pointer to const [constVariablePointer] grep-3.11/lib/regexec.c:1988:38: style: Variable 'ent' can be declared as pointer to const [constVariablePointer] grep-3.11/lib/regexec.c:2084:38: style: Variable 'entry' can be declared as pointer to const [constVariablePointer] grep-3.11/lib/regexec.c:2536:35: style: Variable 'bkref_ent' can be declared as pointer to const [constVariablePointer] grep-3.11/lib/xstrtol.c:89:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/lib/xstrtol.c:54:7: style: Comparing expression of type 'signed int' against value -9223372036854775808. Condition is always true. [compareValueOutOfTypeRangeError] grep-3.11/lib/xstrtol.c:54:7: style: Comparing expression of type 'signed int' against value -2147483648. Condition is always false. [compareValueOutOfTypeRangeError] grep-3.11/lib/xstrtol.c:54:7: style: Comparing expression of type 'signed int' against value -9223372036854775808. Condition is always false. [compareValueOutOfTypeRangeError] grep-3.11/lib/xstrtol.c:54:7: style: Comparing expression of type 'signed int' against value 9223372036854775807. Condition is always false. [compareValueOutOfTypeRangeError] grep-3.11/lib/xstrtol.c:54:7: style: Checking if unsigned expression '(1?0:((1?0:18446744073709551615UL)+(scale_factor)))-1' is less than zero. [unsignedLessThanZero] grep-3.11/lib/xstrtol.c:54:7: style: Checking if unsigned expression '(1?0:((1?0:18446744073709551615ULL)+(scale_factor)))-1' is less than zero. [unsignedLessThanZero] grep-3.11/lib/xstrtol.c:54:7: warning:inconclusive: Found calculation inside sizeof(). [sizeofCalculation] grep-3.11/lib/xstrtol.c:54:7: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] grep-3.11/src/search.h:85:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MB_LEN_MAX [valueFlowBailoutIncompleteVar] grep-3.11/src/dfasearch.c:152:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IDX_MAX [valueFlowBailoutIncompleteVar] grep-3.11/src/dfasearch.c:206:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RE_ICASE [valueFlowBailoutIncompleteVar] grep-3.11/src/dfasearch.c:492:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable regoff_t [valueFlowBailoutIncompleteVar] grep-3.11/src/grep.c:137:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] grep-3.11/src/grep.c:196:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lineno [valueFlowBailoutIncompleteVar] grep-3.11/src/grep.c:448:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/src/grep.c:454:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] grep-3.11/src/grep.c:471:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] grep-3.11/src/grep.c:478:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] grep-3.11/src/grep.c:800:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_BINARY [valueFlowBailoutIncompleteVar] grep-3.11/src/grep.c:846:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXCLUDE_WILDCARDS [valueFlowBailoutIncompleteVar] grep-3.11/src/grep.c:932:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/src/grep.c:1015:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SAFE_READ_ERROR [valueFlowBailoutIncompleteVar] grep-3.11/src/grep.c:1145:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIdMAX [valueFlowBailoutIncompleteVar] grep-3.11/src/grep.c:1537:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/src/grep.c:1659:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FTS_ROOTLEVEL [valueFlowBailoutIncompleteVar] grep-3.11/src/grep.c:1742:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ELOOP [valueFlowBailoutIncompleteVar] grep-3.11/src/grep.c:1754:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] grep-3.11/src/grep.c:1791:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SAFE_READ_ERROR [valueFlowBailoutIncompleteVar] grep-3.11/src/grep.c:1810:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/src/grep.c:1833:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grep-3.11/src/grep.c:1955:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_BINARY [valueFlowBailoutIncompleteVar] grep-3.11/src/grep.c:2131:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optind [valueFlowBailoutIncompleteVar] grep-3.11/src/grep.c:2260:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WEOF [valueFlowBailoutIncompleteVar] grep-3.11/src/grep.c:2291:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WEOF [valueFlowBailoutIncompleteVar] grep-3.11/src/grep.c:2471:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable exit_failure [valueFlowBailoutIncompleteVar] grep-3.11/src/dfasearch.c:154:30: style:inconclusive: Boolean expression 'syntax_only' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] grep-3.11/src/dfasearch.c:212:40: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] grep-3.11/src/dfasearch.c:423:45: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] grep-3.11/src/dfasearch.c:203:3: warning: If memory allocation fails, then there is a possible null pointer dereference: dc [nullPointerOutOfMemory] grep-3.11/src/dfasearch.c:201:33: note: Assuming allocation function fails grep-3.11/src/dfasearch.c:201:33: note: Assignment 'dc=xcalloc(1,sizeof(*dc))', assigned value is 0 grep-3.11/src/dfasearch.c:203:3: note: Null pointer dereference grep-3.11/src/dfasearch.c:211:14: warning: If memory allocation fails, then there is a possible null pointer dereference: dc [nullPointerOutOfMemory] grep-3.11/src/dfasearch.c:201:33: note: Assuming allocation function fails grep-3.11/src/dfasearch.c:201:33: note: Assignment 'dc=xcalloc(1,sizeof(*dc))', assigned value is 0 grep-3.11/src/dfasearch.c:211:14: note: Null pointer dereference grep-3.11/src/dfasearch.c:222:3: warning: If memory allocation fails, then there is a possible null pointer dereference: dc [nullPointerOutOfMemory] grep-3.11/src/dfasearch.c:201:33: note: Assuming allocation function fails grep-3.11/src/dfasearch.c:201:33: note: Assignment 'dc=xcalloc(1,sizeof(*dc))', assigned value is 0 grep-3.11/src/dfasearch.c:222:3: note: Null pointer dereference grep-3.11/src/dfasearch.c:223:3: warning: If memory allocation fails, then there is a possible null pointer dereference: dc [nullPointerOutOfMemory] grep-3.11/src/dfasearch.c:201:33: note: Assuming allocation function fails grep-3.11/src/dfasearch.c:201:33: note: Assignment 'dc=xcalloc(1,sizeof(*dc))', assigned value is 0 grep-3.11/src/dfasearch.c:223:3: note: Null pointer dereference grep-3.11/src/dfasearch.c:224:3: warning: If memory allocation fails, then there is a possible null pointer dereference: dc [nullPointerOutOfMemory] grep-3.11/src/dfasearch.c:201:33: note: Assuming allocation function fails grep-3.11/src/dfasearch.c:201:33: note: Assignment 'dc=xcalloc(1,sizeof(*dc))', assigned value is 0 grep-3.11/src/dfasearch.c:224:3: note: Null pointer dereference grep-3.11/src/dfasearch.c:256:28: warning: If memory allocation fails, then there is a possible null pointer dereference: dc [nullPointerOutOfMemory] grep-3.11/src/dfasearch.c:201:33: note: Assuming allocation function fails grep-3.11/src/dfasearch.c:201:33: note: Assignment 'dc=xcalloc(1,sizeof(*dc))', assigned value is 0 grep-3.11/src/dfasearch.c:256:28: note: Null pointer dereference grep-3.11/src/dfasearch.c:259:11: warning: If memory allocation fails, then there is a possible null pointer dereference: dc [nullPointerOutOfMemory] grep-3.11/src/dfasearch.c:201:33: note: Assuming allocation function fails grep-3.11/src/dfasearch.c:201:33: note: Assignment 'dc=xcalloc(1,sizeof(*dc))', assigned value is 0 grep-3.11/src/dfasearch.c:259:11: note: Null pointer dereference grep-3.11/src/dfasearch.c:259:35: warning: If memory allocation fails, then there is a possible null pointer dereference: dc [nullPointerOutOfMemory] grep-3.11/src/dfasearch.c:201:33: note: Assuming allocation function fails grep-3.11/src/dfasearch.c:201:33: note: Assignment 'dc=xcalloc(1,sizeof(*dc))', assigned value is 0 grep-3.11/src/dfasearch.c:259:35: note: Null pointer dereference grep-3.11/src/dfasearch.c:261:11: warning: If memory allocation fails, then there is a possible null pointer dereference: dc [nullPointerOutOfMemory] grep-3.11/src/dfasearch.c:201:33: note: Assuming allocation function fails grep-3.11/src/dfasearch.c:201:33: note: Assignment 'dc=xcalloc(1,sizeof(*dc))', assigned value is 0 grep-3.11/src/dfasearch.c:261:11: note: Null pointer dereference grep-3.11/src/dfasearch.c:264:39: warning: If memory allocation fails, then there is a possible null pointer dereference: dc [nullPointerOutOfMemory] grep-3.11/src/dfasearch.c:201:33: note: Assuming allocation function fails grep-3.11/src/dfasearch.c:201:33: note: Assignment 'dc=xcalloc(1,sizeof(*dc))', assigned value is 0 grep-3.11/src/dfasearch.c:264:39: note: Null pointer dereference grep-3.11/src/dfasearch.c:209:56: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] grep-3.11/src/grep.c:621:54: style:inconclusive: Boolean expression 'devices==READ_COMMAND_LINE_DEVICES' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] grep-3.11/src/grep.c:720:37: style:inconclusive: Boolean expression 'localeinfo.sbclen[i]!=1' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] grep-3.11/src/grep.c:1022:28: style:inconclusive: Boolean expression 'fillsize==0' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] grep-3.11/src/grep.c:1201:42: style:inconclusive: Boolean expression 'out_byte' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] grep-3.11/src/grep.c:2895:21: style:inconclusive: Boolean expression 'exit_on_match' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] grep-3.11/src/grep.c:2897:22: style:inconclusive: Boolean expression 'exit_on_match' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] grep-3.11/src/grep.c:2902:29: style:inconclusive: Boolean expression 'count_matches' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] grep-3.11/src/grep.c:808:42: error: Invalid lseek() argument nr 3. The value is 4 but the valid values are '0:2'. [invalidFunctionArg] grep-3.11/src/grep.c:1029:57: error: Invalid lseek() argument nr 3. The value is 3 but the valid values are '0:2'. [invalidFunctionArg] grep-3.11/src/grep.c:621:54: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] grep-3.11/src/grep.c:720:37: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] grep-3.11/src/grep.c:1022:28: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] grep-3.11/src/grep.c:771:16: style: Condition 'clen<0' is always false [knownConditionTrueFalse] grep-3.11/src/grep.c:770:22: note: Calling function 'imbrlen' returns !<=-1 grep-3.11/src/grep.c:771:16: note: Condition 'clen<0' is always false grep-3.11/src/grep.c:2198:10: warning: If memory allocation fails, then there is a possible null pointer dereference: q [nullPointerOutOfMemory] grep-3.11/src/grep.c:2192:15: note: Assuming allocation function fails grep-3.11/src/grep.c:2192:15: note: Assignment 'q=xstrdup(p)', assigned value is 0 grep-3.11/src/grep.c:2198:10: note: Null pointer dereference grep-3.11/src/grep.c:1868:38: error: Null pointer dereference [nullPointer] grep-3.11/src/kwsearch.c:191:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RE_SYNTAX_GREP [valueFlowBailoutIncompleteVar] grep-3.11/src/grep.c:749:5: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] grep-3.11/src/grep.c:751:5: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] grep-3.11/src/grep.c:1702:24: style: Variable 'st' can be declared as pointer to const [constVariablePointer] grep-3.11/src/kwsearch.c:117:28: style:inconclusive: Boolean expression 'mb_check' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] grep-3.11/src/kwsearch.c:117:57: style:inconclusive: Boolean expression '!match_lines' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] grep-3.11/src/kwsearch.c:150:23: style:inconclusive: Boolean expression '!!start_ptr' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] grep-3.11/src/kwsearch.c:116:40: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] grep-3.11/src/kwsearch.c:116:65: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] grep-3.11/src/kwsearch.c:117:28: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] grep-3.11/src/kwsearch.c:117:57: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] grep-3.11/src/kwsearch.c:150:23: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] grep-3.11/src/kwsearch.c:95:3: warning: If memory allocation fails, then there is a possible null pointer dereference: kwsearch [nullPointerOutOfMemory] grep-3.11/src/kwsearch.c:94:39: note: Assuming allocation function fails grep-3.11/src/kwsearch.c:94:39: note: Assignment 'kwsearch=xmalloc(sizeof(*kwsearch))', assigned value is 0 grep-3.11/src/kwsearch.c:95:3: note: Null pointer dereference grep-3.11/src/kwsearch.c:96:3: warning: If memory allocation fails, then there is a possible null pointer dereference: kwsearch [nullPointerOutOfMemory] grep-3.11/src/kwsearch.c:94:39: note: Assuming allocation function fails grep-3.11/src/kwsearch.c:94:39: note: Assignment 'kwsearch=xmalloc(sizeof(*kwsearch))', assigned value is 0 grep-3.11/src/kwsearch.c:96:3: note: Null pointer dereference grep-3.11/src/kwsearch.c:97:3: warning: If memory allocation fails, then there is a possible null pointer dereference: kwsearch [nullPointerOutOfMemory] grep-3.11/src/kwsearch.c:94:39: note: Assuming allocation function fails grep-3.11/src/kwsearch.c:94:39: note: Assignment 'kwsearch=xmalloc(sizeof(*kwsearch))', assigned value is 0 grep-3.11/src/kwsearch.c:97:3: note: Null pointer dereference grep-3.11/src/kwsearch.c:98:3: warning: If memory allocation fails, then there is a possible null pointer dereference: kwsearch [nullPointerOutOfMemory] grep-3.11/src/kwsearch.c:94:39: note: Assuming allocation function fails grep-3.11/src/kwsearch.c:94:39: note: Assignment 'kwsearch=xmalloc(sizeof(*kwsearch))', assigned value is 0 grep-3.11/src/kwsearch.c:98:3: note: Null pointer dereference grep-3.11/src/kwsearch.c:99:3: warning: If memory allocation fails, then there is a possible null pointer dereference: kwsearch [nullPointerOutOfMemory] grep-3.11/src/kwsearch.c:94:39: note: Assuming allocation function fails grep-3.11/src/kwsearch.c:94:39: note: Assignment 'kwsearch=xmalloc(sizeof(*kwsearch))', assigned value is 0 grep-3.11/src/kwsearch.c:99:3: note: Null pointer dereference grep-3.11/src/pcresearch.c:76:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IDX_MAX [valueFlowBailoutIncompleteVar] grep-3.11/src/pcresearch.c:90:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCRE2_CONFIG_VERSION [valueFlowBailoutIncompleteVar] grep-3.11/src/pcresearch.c:127:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCRE2_ERROR_RECURSIONLIMIT [valueFlowBailoutIncompleteVar] grep-3.11/src/pcresearch.c:146:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCRE2_ERROR_UTF8_ERR21 [valueFlowBailoutIncompleteVar] grep-3.11/src/pcresearch.c:157:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCRE2_DOLLAR_ENDONLY [valueFlowBailoutIncompleteVar] grep-3.11/src/pcresearch.c:272:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCRE2_ERROR_NOMATCH [valueFlowBailoutIncompleteVar] grep-3.11/src/pcresearch.c:158:9: style: Variable 'patlim' can be declared as pointer to const [constVariablePointer] grep-3.11/src/kwset.c:145:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IDX_MAX [valueFlowBailoutIncompleteVar] grep-3.11/src/searchutils.c:48:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MB_CUR_MAX [valueFlowBailoutIncompleteVar] grep-3.11/src/searchutils.c:118:25: style: Condition '0<=clen' is always true [knownConditionTrueFalse] grep-3.11/src/searchutils.c:117:44: note: Calling function 'imbrlen' returns !<=-1 grep-3.11/src/searchutils.c:118:25: note: Condition '0<=clen' is always true grep-3.11/tests/get-mb-cur-max.c:27:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] grep-3.11/src/kwset.c:136:3: warning: If memory allocation fails, then there is a possible null pointer dereference: kwset [nullPointerOutOfMemory] grep-3.11/src/kwset.c:133:33: note: Assuming allocation function fails grep-3.11/src/kwset.c:133:33: note: Assignment 'kwset=xmalloc(sizeof(*kwset))', assigned value is 0 grep-3.11/src/kwset.c:136:3: note: Null pointer dereference grep-3.11/src/kwset.c:137:3: warning: If memory allocation fails, then there is a possible null pointer dereference: kwset [nullPointerOutOfMemory] grep-3.11/src/kwset.c:133:33: note: Assuming allocation function fails grep-3.11/src/kwset.c:133:33: note: Assignment 'kwset=xmalloc(sizeof(*kwset))', assigned value is 0 grep-3.11/src/kwset.c:137:3: note: Null pointer dereference grep-3.11/src/kwset.c:138:3: warning: If memory allocation fails, then there is a possible null pointer dereference: kwset [nullPointerOutOfMemory] grep-3.11/src/kwset.c:133:33: note: Assuming allocation function fails grep-3.11/src/kwset.c:133:33: note: Assignment 'kwset=xmalloc(sizeof(*kwset))', assigned value is 0 grep-3.11/src/kwset.c:138:3: note: Null pointer dereference grep-3.11/src/kwset.c:139:3: warning: If memory allocation fails, then there is a possible null pointer dereference: kwset [nullPointerOutOfMemory] grep-3.11/src/kwset.c:133:33: note: Assuming allocation function fails grep-3.11/src/kwset.c:133:33: note: Assignment 'kwset=xmalloc(sizeof(*kwset))', assigned value is 0 grep-3.11/src/kwset.c:139:3: note: Null pointer dereference grep-3.11/src/kwset.c:140:3: warning: If memory allocation fails, then there is a possible null pointer dereference: kwset [nullPointerOutOfMemory] grep-3.11/src/kwset.c:133:33: note: Assuming allocation function fails grep-3.11/src/kwset.c:133:33: note: Assignment 'kwset=xmalloc(sizeof(*kwset))', assigned value is 0 grep-3.11/src/kwset.c:140:3: note: Null pointer dereference grep-3.11/src/kwset.c:141:3: warning: If memory allocation fails, then there is a possible null pointer dereference: kwset [nullPointerOutOfMemory] grep-3.11/src/kwset.c:133:33: note: Assuming allocation function fails grep-3.11/src/kwset.c:133:33: note: Assignment 'kwset=xmalloc(sizeof(*kwset))', assigned value is 0 grep-3.11/src/kwset.c:141:3: note: Null pointer dereference grep-3.11/src/kwset.c:142:3: warning: If memory allocation fails, then there is a possible null pointer dereference: kwset [nullPointerOutOfMemory] grep-3.11/src/kwset.c:133:33: note: Assuming allocation function fails grep-3.11/src/kwset.c:133:33: note: Assignment 'kwset=xmalloc(sizeof(*kwset))', assigned value is 0 grep-3.11/src/kwset.c:142:3: note: Null pointer dereference grep-3.11/src/kwset.c:143:3: warning: If memory allocation fails, then there is a possible null pointer dereference: kwset [nullPointerOutOfMemory] grep-3.11/src/kwset.c:133:33: note: Assuming allocation function fails grep-3.11/src/kwset.c:133:33: note: Assignment 'kwset=xmalloc(sizeof(*kwset))', assigned value is 0 grep-3.11/src/kwset.c:143:3: note: Null pointer dereference grep-3.11/src/kwset.c:144:3: warning: If memory allocation fails, then there is a possible null pointer dereference: kwset [nullPointerOutOfMemory] grep-3.11/src/kwset.c:133:33: note: Assuming allocation function fails grep-3.11/src/kwset.c:133:33: note: Assignment 'kwset=xmalloc(sizeof(*kwset))', assigned value is 0 grep-3.11/src/kwset.c:144:3: note: Null pointer dereference grep-3.11/src/kwset.c:145:3: warning: If memory allocation fails, then there is a possible null pointer dereference: kwset [nullPointerOutOfMemory] grep-3.11/src/kwset.c:133:33: note: Assuming allocation function fails grep-3.11/src/kwset.c:133:33: note: Assignment 'kwset=xmalloc(sizeof(*kwset))', assigned value is 0 grep-3.11/src/kwset.c:145:3: note: Null pointer dereference grep-3.11/src/kwset.c:146:3: warning: If memory allocation fails, then there is a possible null pointer dereference: kwset [nullPointerOutOfMemory] grep-3.11/src/kwset.c:133:33: note: Assuming allocation function fails grep-3.11/src/kwset.c:133:33: note: Assignment 'kwset=xmalloc(sizeof(*kwset))', assigned value is 0 grep-3.11/src/kwset.c:146:3: note: Null pointer dereference grep-3.11/src/kwset.c:147:3: warning: If memory allocation fails, then there is a possible null pointer dereference: kwset [nullPointerOutOfMemory] grep-3.11/src/kwset.c:133:33: note: Assuming allocation function fails grep-3.11/src/kwset.c:133:33: note: Assignment 'kwset=xmalloc(sizeof(*kwset))', assigned value is 0 grep-3.11/src/kwset.c:147:3: note: Null pointer dereference grep-3.11/src/kwset.c:148:3: warning: If memory allocation fails, then there is a possible null pointer dereference: kwset [nullPointerOutOfMemory] grep-3.11/src/kwset.c:133:33: note: Assuming allocation function fails grep-3.11/src/kwset.c:133:33: note: Assignment 'kwset=xmalloc(sizeof(*kwset))', assigned value is 0 grep-3.11/src/kwset.c:148:3: note: Null pointer dereference grep-3.11/src/kwset.c:801:45: warning: Either the condition '!tree' is redundant or there is possible null pointer dereference: tree. [nullPointerRedundantCheck] grep-3.11/src/kwset.c:804:23: note: Assuming that condition '!tree' is not redundant grep-3.11/src/kwset.c:801:45: note: Null pointer dereference grep-3.11/src/kwset.c:742:20: style: Same expression in both branches of ternary operator. [duplicateExpressionTernary] grep-3.11/src/kwset.c:887:11: style: Same expression in both branches of ternary operator. [duplicateExpressionTernary] grep-3.11/lib/xstrtol.c:54:7: style: Checking if unsigned expression '*x' is less than zero. [unsignedLessThanZero] grep-3.11/lib/xstrtol.c:54:7: style: Checking if unsigned expression '(1?0:(*x))-1' is less than zero. [unsignedLessThanZero] grep-3.11/lib/xstrtol.c:54:7: style: Checking if unsigned expression '(1?0:((1?0:(*x))-128))-1' is less than zero. [unsignedLessThanZero] grep-3.11/lib/xstrtol.c:54:7: style: Checking if unsigned expression '(((1?0:((1?0:(*x))-128))-1)<0)?~(((((1?0:((1?0:(*x))-128))+1)<<((sizeof((1?0:(*x))-128)*8)-2))-1)*2+1):((1?0:((1?0:(*x))-128))+0)' is less than zero. [unsignedLessThanZero] grep-3.11/lib/xstrtol.c:54:7: style: Checking if unsigned expression '(1?0:((1?0:(*x))+0))-1' is less than zero. [unsignedLessThanZero] grep-3.11/lib/xstrtol.c:54:7: style: Checking if unsigned expression '(((1?0:((1?0:(*x))+0))-1)<0)?~(((((1?0:((1?0:(*x))+0))+1)<<((sizeof((1?0:(*x))+0)*8)-2))-1)*2+1):((1?0:((1?0:(*x))+0))+0)' is less than zero. [unsignedLessThanZero] grep-3.11/lib/xstrtol.c:54:7: style: Checking if unsigned expression '*(&scaled)=((char)((unsigned int)(*x)*(unsigned int)(scale_factor)))' is less than zero. [unsignedLessThanZero] grep-3.11/lib/xstrtol.c:54:7: style: Unsigned expression '*(&scaled)=((char)((unsigned int)(*x)*(unsigned int)(scale_factor)))' can't be negative so it is unnecessary to test it. [unsignedPositive] grep-3.11/lib/xstrtol.c:54:7: style: Checking if unsigned expression '(1?0:((1?0:(*x))-32768))-1' is less than zero. [unsignedLessThanZero] grep-3.11/lib/xstrtol.c:54:7: style: Checking if unsigned expression '(((1?0:((1?0:(*x))-32768))-1)<0)?~(((((1?0:((1?0:(*x))-32768))+1)<<((sizeof((1?0:(*x))-32768)*8)-2))-1)*2+1):((1?0:((1?0:(*x))-32768))+0)' is less than zero. [unsignedLessThanZero] grep-3.11/lib/xstrtol.c:54:7: style: Checking if unsigned expression '*(&scaled)=((short)((unsigned int)(*x)*(unsigned int)(scale_factor)))' is less than zero. [unsignedLessThanZero] grep-3.11/lib/xstrtol.c:54:7: style: Unsigned expression '*(&scaled)=((short)((unsigned int)(*x)*(unsigned int)(scale_factor)))' can't be negative so it is unnecessary to test it. [unsignedPositive] grep-3.11/lib/xstrtol.c:54:7: style: Checking if unsigned expression '(1?0:(*(&scaled)))-1' is less than zero. [unsignedLessThanZero] grep-3.11/lib/xstrtol.c:54:7: style: Checking if unsigned expression '(1?0:((1?0:(*x))+(-2147483647-1)))-1' is less than zero. [unsignedLessThanZero] grep-3.11/lib/xstrtol.c:54:7: style: Checking if unsigned expression '(((1?0:((1?0:(*x))+(-2147483647-1)))-1)<0)?~(((((1?0:((1?0:(*x))+(-2147483647-1)))+1)<<((sizeof((1?0:(*x))+(-2147483647-1))*8)-2))-1)*2+1):((1?0:((1?0:(*x))+(-2147483647-1)))+0)' is less than zero. [unsignedLessThanZero] grep-3.11/lib/xstrtol.c:54:7: style: Checking if unsigned expression '(1?0:((1?0:(*x))+(-9223372036854775807L-1L)))-1' is less than zero. [unsignedLessThanZero] grep-3.11/lib/xstrtol.c:54:7: style: Checking if unsigned expression '(((1?0:((1?0:(*x))+(-9223372036854775807L-1L)))-1)<0)?~(((((1?0:((1?0:(*x))+(-9223372036854775807L-1L)))+1)<<((sizeof((1?0:(*x))+(-9223372036854775807L-1L))*8)-2))-1)*2+1):((1?0:((1?0:(*x))+(-9223372036854775807L-1L)))+0)' is less than zero. [unsignedLessThanZero] grep-3.11/lib/xstrtol.c:56:15: style: Checking if unsigned expression '*x' is less than zero. [unsignedLessThanZero] grep-3.11/lib/xstrtol.c:54:7: warning: Expression '-128' has a negative value. That is converted to an unsigned value and used in an unsigned calculation. [signConversion] grep-3.11/lib/xstrtol.c:54:7: warning: Expression '-32768' has a negative value. That is converted to an unsigned value and used in an unsigned calculation. [signConversion] grep-3.11/lib/xstrtol.c:54:7: warning: Expression '-2147483647-1' can have a negative value. That is converted to an unsigned value and used in an unsigned calculation. [signConversion] grep-3.11/lib/xstrtol.c:54:7: warning: Expression '-9223372036854775807L-1L' can have a negative value. That is converted to an unsigned value and used in an unsigned calculation. [signConversion] diff: head grep-3.11/gnulib-tests/gettimeofday.c:143:5: error: #error "Only 1-second nominal clock resolution found. Is that intended?" \ [preprocessorErrorDirective] head grep-3.11/gnulib-tests/glthread/thread.h:75:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head grep-3.11/gnulib-tests/hash-pjw.h:19:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head grep-3.11/gnulib-tests/inttostr.h:22:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head grep-3.11/gnulib-tests/localename.h:22:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head grep-3.11/gnulib-tests/sleep.c:72:3: error: #error "Please port gnulib sleep.c to your platform, possibly using usleep() or select(), then report this to bug-gnulib." [preprocessorErrorDirective] head grep-3.11/gnulib-tests/sockets.h:25:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head grep-3.11/gnulib-tests/test-cloexec.c:57:4: error: #error Please port fcntl to your platform [preprocessorErrorDirective] head grep-3.11/gnulib-tests/test-dup-safer.c:69:4: error: #error Please port fcntl to your platform [preprocessorErrorDirective] head grep-3.11/gnulib-tests/test-dup2.c:70:4: error: #error Please port fcntl to your platform [preprocessorErrorDirective] head grep-3.11/gnulib-tests/test-fcntl.c:69:4: error: #error Please port fcntl to your platform [preprocessorErrorDirective] head grep-3.11/gnulib-tests/test-pipe.c:52:4: error: #error Please port fcntl to your platform [preprocessorErrorDirective] head grep-3.11/gnulib-tests/test-verify.c:57:30: style: Same expression on both sides of '=='. [duplicateExpression] head grep-3.11/gnulib-tests/test-verify.c:60:60: style: Same expression on both sides of '=='. [duplicateExpression] head grep-3.11/gnulib-tests/vasnprintf.h:22:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head grep-3.11/gnulib-tests/windows-thread.h:25:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head grep-3.11/gnulib-tests/xsize.h:23:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head grep-3.11/gnulib-tests/xstrtol-error.h:24:4: error: #error "Please include config.h first." [preprocessorErrorDirective] head grep-3.11/lib/argmatch.h:27:4: error: #error "Please include config.h first." [preprocessorErrorDirective] head grep-3.11/lib/attribute.h:55:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head grep-3.11/lib/basename-lgpl.h:24:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head grep-3.11/lib/binary-io.h:22:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head grep-3.11/lib/bitrotate.h:24:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head grep-3.11/lib/c-ctype.h:28:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head grep-3.11/lib/c-stack.h:20:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head grep-3.11/lib/c-strcase.h:23:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head grep-3.11/lib/dfa.h:27:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head grep-3.11/lib/dirname.h:25:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head grep-3.11/lib/error.c:140:5: error: #error Please port fcntl to your platform [preprocessorErrorDirective] head grep-3.11/lib/exclude.h:25:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head grep-3.11/lib/filenamecat.h:23:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head grep-3.11/lib/fpending.h:24:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head grep-3.11/lib/fts_.h:54:4: error: #error "Please include config.h first." [preprocessorErrorDirective] head grep-3.11/lib/hash.h:31:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head grep-3.11/lib/i-ring.h:20:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head grep-3.11/lib/ialloc.h:24:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head grep-3.11/lib/malloc/dynarray-skeleton.c:95:3: error: #error "DYNARRAY_STRUCT must be defined" [preprocessorErrorDirective] head grep-3.11/lib/malloca.h:24:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head grep-3.11/lib/mbchar.h:149:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head grep-3.11/lib/mbiter.h:87:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head grep-3.11/lib/mbuiter.h:94:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head grep-3.11/lib/memchr2.h:19:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head grep-3.11/lib/msvc-inval.h:57:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head grep-3.11/lib/msvc-nothrow.h:30:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head grep-3.11/lib/obstack.h:108:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head grep-3.11/lib/openat.h:25:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head grep-3.11/lib/pathmax.h:44:4: error: #error "Please include config.h first." [preprocessorErrorDirective] head grep-3.11/lib/pipe.c:48:3: error: #error "This platform lacks a pipe function, and Gnulib doesn't provide a replacement. This is a bug in Gnulib." [preprocessorErrorDirective] head grep-3.11/lib/quotearg.h:26:4: error: #error "Please include config.h first." [preprocessorErrorDirective] head grep-3.11/lib/stat-time.h:26:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head grep-3.11/lib/strerror-override.h:23:4: error: #error "Please include config.h first." [preprocessorErrorDirective] head grep-3.11/lib/striconv.h:23:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head grep-3.11/lib/strnlen1.h:22:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head grep-3.11/lib/trim.h:21:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head grep-3.11/lib/version-etc.h:24:4: error: #error "Please include config.h first." [preprocessorErrorDirective] head grep-3.11/lib/xalloc.h:25:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head grep-3.11/lib/xbinary-io.h:22:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head grep-3.11/lib/xstriconv.h:23:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head grep-3.11/src/dfasearch.c:259:35: warning: If memory allocation fails, then there is a possible null pointer dereference: dc [nullPointerOutOfMemory] grep-3.11/src/dfasearch.c:201:33: note: Assuming allocation function fails grep-3.11/src/dfasearch.c:201:33: note: Assignment 'dc=xcalloc(1,sizeof(*dc))', assigned value is 0 grep-3.11/src/dfasearch.c:259:35: note: Null pointer dereference head grep-3.11/src/grep.c:771:16: style: Condition 'clen<0' is always false [knownConditionTrueFalse] grep-3.11/src/grep.c:770:22: note: Calling function 'imbrlen' returns !<=-1 grep-3.11/src/grep.c:771:16: note: Condition 'clen<0' is always false head grep-3.11/src/kwsearch.c:116:65: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] head grep-3.11/src/kwsearch.c:117:57: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] head grep-3.11/src/searchutils.c:118:25: style: Condition '0<=clen' is always true [knownConditionTrueFalse] grep-3.11/src/searchutils.c:117:44: note: Calling function 'imbrlen' returns !<=-1 grep-3.11/src/searchutils.c:118:25: note: Condition '0<=clen' is always true DONE