2025-07-01 02:25 ftp://ftp.de.debian.org/debian/pool/main/t/tar/tar_1.35+dfsg.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j6 platform: Linux-6.1.0-37-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.67 compiler: g++ (Debian 12.2.0-14+deb12u1) 12.2.0 cppcheck: head 2.17.0 head-info: dfa16af (2025-06-30 19:43:56 +0200) count: 908 851 elapsed-time: 3.5 3.5 head-timing-info: old-timing-info: head results: tar-1.35+dfsg/gnu/acl-internal.h:22:0: error: #error "Please include config.h first." [preprocessorErrorDirective] tar-1.35+dfsg/gnu/acl-internal.h:22:3: error: #error "Please include config.h first." [preprocessorErrorDirective] tar-1.35+dfsg/gnu/acl.h:25:0: error: #error "Please include config.h first." [preprocessorErrorDirective] tar-1.35+dfsg/gnu/acl.h:25:3: error: #error "Please include config.h first." [preprocessorErrorDirective] tar-1.35+dfsg/gnu/careadlinkat.h:25:0: error: #error "Please include config.h first." [preprocessorErrorDirective] tar-1.35+dfsg/gnu/careadlinkat.h:25:3: error: #error "Please include config.h first." [preprocessorErrorDirective] tar-1.35+dfsg/gnu/inttostr.h:22:0: error: #error "Please include config.h first." [preprocessorErrorDirective] tar-1.35+dfsg/gnu/inttostr.h:22:3: error: #error "Please include config.h first." [preprocessorErrorDirective] tar-1.35+dfsg/gnu/openat.h:25:0: error: #error "Please include config.h first." [preprocessorErrorDirective] tar-1.35+dfsg/gnu/openat.h:25:3: error: #error "Please include config.h first." [preprocessorErrorDirective] tar-1.35+dfsg/gnu/areadlink-with-size.c:79:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/gnu/argp.h:24:0: error: #error "Please include config.h first." [preprocessorErrorDirective] tar-1.35+dfsg/gnu/argp.h:24:3: error: #error "Please include config.h first." [preprocessorErrorDirective] tar-1.35+dfsg/gnu/argp-fmtstream.h:30:0: error: #error "Please include config.h first." [preprocessorErrorDirective] tar-1.35+dfsg/gnu/argp-fmtstream.h:30:3: error: #error "Please include config.h first." [preprocessorErrorDirective] tar-1.35+dfsg/gnu/argmatch.h:27:0: error: #error "Please include config.h first." [preprocessorErrorDirective] tar-1.35+dfsg/gnu/argmatch.h:27:4: error: #error "Please include config.h first." [preprocessorErrorDirective] tar-1.35+dfsg/gnu/argp-version-etc.c:35:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable argp_program_version_hook [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/gnu/vasnprintf.h:22:0: error: #error "Please include config.h first." [preprocessorErrorDirective] tar-1.35+dfsg/gnu/vasnprintf.h:22:3: error: #error "Please include config.h first." [preprocessorErrorDirective] tar-1.35+dfsg/gnu/filenamecat.h:23:0: error: #error "Please include config.h first." [preprocessorErrorDirective] tar-1.35+dfsg/gnu/filenamecat.h:23:3: error: #error "Please include config.h first." [preprocessorErrorDirective] tar-1.35+dfsg/gnu/backupfile.h:24:0: error: #error "Please include config.h first." [preprocessorErrorDirective] tar-1.35+dfsg/gnu/backupfile.h:24:3: error: #error "Please include config.h first." [preprocessorErrorDirective] tar-1.35+dfsg/gnu/basename-lgpl.h:24:0: error: #error "Please include config.h first." [preprocessorErrorDirective] tar-1.35+dfsg/gnu/basename-lgpl.h:24:3: error: #error "Please include config.h first." [preprocessorErrorDirective] tar-1.35+dfsg/gnu/bitrotate.h:24:0: error: #error "Please include config.h first." [preprocessorErrorDirective] tar-1.35+dfsg/gnu/bitrotate.h:24:3: error: #error "Please include config.h first." [preprocessorErrorDirective] tar-1.35+dfsg/gnu/dirname.h:25:0: error: #error "Please include config.h first." [preprocessorErrorDirective] tar-1.35+dfsg/gnu/dirname.h:25:3: error: #error "Please include config.h first." [preprocessorErrorDirective] tar-1.35+dfsg/gnu/btowc.c:30:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/gnu/c-ctype.h:28:0: error: #error "Please include config.h first." [preprocessorErrorDirective] tar-1.35+dfsg/gnu/c-ctype.h:28:3: error: #error "Please include config.h first." [preprocessorErrorDirective] tar-1.35+dfsg/gnu/c-strcase.h:23:0: error: #error "Please include config.h first." [preprocessorErrorDirective] tar-1.35+dfsg/gnu/c-strcase.h:23:3: error: #error "Please include config.h first." [preprocessorErrorDirective] tar-1.35+dfsg/gnu/areadlink-with-size.c:56:39: style: Condition 'symlink_maxzones_seen' is always false [knownConditionTrueFalse] parse-datetime.y:1662:7: style: Condition '!debugging(pc)' is always true [knownConditionTrueFalse] parse-datetime.y:1662:18: note: Calling function 'debugging' returns 0 parse-datetime.y:1662:7: note: Condition '!debugging(pc)' is always true parse-datetime.y:1886:34: style: Condition 'pc.local_time_zone_table[0].name' is always false [knownConditionTrueFalse] parse-datetime.y:1882:38: note: Assignment 'pc.local_time_zone_table[0].name=NULL', assigned value is 0 parse-datetime.y:1886:34: note: Condition 'pc.local_time_zone_table[0].name' is always false parse-datetime.y:1427:17: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] tar-1.35+dfsg/gnu/uniwidth/width.c:61:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nonspacing_table_ind [valueFlowBailoutIncompleteVar] parse-datetime.y:329:27: style: Parameter 'pc' can be declared as pointer to const [constParameterPointer] tar-1.35+dfsg/gnu/unlink.c:66:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] parse-datetime.c:1608:11: style: Variable 'yymsg' is assigned a value that is never used. [unreadVariable] tar-1.35+dfsg/gnu/unsetenv.c:64:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/gnu/version-etc.h:24:0: error: #error "Please include config.h first." [preprocessorErrorDirective] tar-1.35+dfsg/gnu/version-etc.h:24:4: error: #error "Please include config.h first." [preprocessorErrorDirective] tar-1.35+dfsg/gnu/wcrtomb.c:35:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/gnu/wcrtomb.c:28:42: style: Parameter 'ps' can be declared as pointer to const [constParameterPointer] tar-1.35+dfsg/gnu/xvasprintf.h:22:0: error: #error "Please include config.h first." [preprocessorErrorDirective] tar-1.35+dfsg/gnu/xvasprintf.h:22:3: error: #error "Please include config.h first." [preprocessorErrorDirective] tar-1.35+dfsg/gnu/xalloc.h:25:0: error: #error "Please include config.h first." [preprocessorErrorDirective] tar-1.35+dfsg/gnu/xalloc.h:25:3: error: #error "Please include config.h first." [preprocessorErrorDirective] tar-1.35+dfsg/gnu/xgetcwd.h:19:0: error: #error "Please include config.h first." [preprocessorErrorDirective] tar-1.35+dfsg/gnu/xgetcwd.h:19:3: error: #error "Please include config.h first." [preprocessorErrorDirective] tar-1.35+dfsg/lib/paxerror.c:32:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/lib/paxerror.c:55:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/lib/paxerror.c:68:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/lib/paxerror.c:81:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/lib/paxerror.c:92:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/lib/paxerror.c:103:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/lib/paxerror.c:129:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/lib/paxerror.c:180:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/lib/paxerror.c:192:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/lib/paxerror.c:210:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/lib/paxerror.c:258:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/lib/paxerror.c:272:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/lib/paxerror.c:280:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/gnu/xstrtol.c:90:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/lib/paxerror.c:35:9: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] tar-1.35+dfsg/lib/paxerror.c:40:9: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] tar-1.35+dfsg/lib/paxerror.c:45:9: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] tar-1.35+dfsg/lib/paxnames.c:54:15: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] tar-1.35+dfsg/lib/paxnames.c:53:19: note: Assuming allocation function fails tar-1.35+dfsg/lib/paxnames.c:53:19: note: Assignment 's=xmalloc(len+1)', assigned value is 0 tar-1.35+dfsg/lib/paxnames.c:54:15: note: Null pointer dereference tar-1.35+dfsg/lib/paxnames.c:55:7: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] tar-1.35+dfsg/lib/paxnames.c:53:19: note: Assuming allocation function fails tar-1.35+dfsg/lib/paxnames.c:53:19: note: Assignment 's=xmalloc(len+1)', assigned value is 0 tar-1.35+dfsg/lib/paxnames.c:55:7: note: Null pointer dereference tar-1.35+dfsg/lib/paxnames.c:129:2: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] tar-1.35+dfsg/lib/paxnames.c:49:9: style: Variable 'e' can be declared as pointer to const [constVariablePointer] tar-1.35+dfsg/gnu/xstrtol.c:57:15: style: Checking if unsigned expression '*x' is less than zero. [unsignedLessThanZero] tar-1.35+dfsg/lib/rtapelib.c:120:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/lib/rtapelib.c:147:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/lib/rtapelib.c:217:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/lib/rtapelib.c:370:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EPERM [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/lib/rtapelib.c:407:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EMFILE [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/lib/rtapelib.c:616:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SAFE_READ_ERROR [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/lib/rtapelib.c:646:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/lib/rtapelib.c:696:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/rmt/rmt.c:688:44: error: There is an unknown macro here somewhere. Configuration is required. If PACKAGE_NAME is a macro then please configure it. [unknownMacro] tar-1.35+dfsg/lib/rtapelib.c:366:23: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] tar-1.35+dfsg/lib/rtapelib.c:456:7: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] tar-1.35+dfsg/lib/rtapelib.c:119:27: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: buffer [nullPointerOutOfMemory] tar-1.35+dfsg/lib/rtapelib.c:570:36: note: Assuming allocation function fails tar-1.35+dfsg/lib/rtapelib.c:570:36: note: Assignment 'command_buffer=xmalloc(remote_file_len+1000)', assigned value is 0 tar-1.35+dfsg/lib/rtapelib.c:574:41: note: Calling function 'do_command', 2nd argument 'command_buffer' value is 0 tar-1.35+dfsg/lib/rtapelib.c:119:27: note: Null pointer dereference tar-1.35+dfsg/lib/rtapelib.c:421:36: warning: If memory allocation fails, then there is a possible null pointer dereference: cursor [nullPointerOutOfMemory] tar-1.35+dfsg/lib/rtapelib.c:416:30: note: Assuming allocation function fails tar-1.35+dfsg/lib/rtapelib.c:416:30: note: Assignment 'file_name_copy=xstrdup(file_name)', assigned value is 0 tar-1.35+dfsg/lib/rtapelib.c:421:19: note: Assignment 'cursor=file_name_copy', assigned value is 0 tar-1.35+dfsg/lib/rtapelib.c:421:36: note: Null pointer dereference tar-1.35+dfsg/lib/rtapelib.c:573:13: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: command_buffer [nullPointerOutOfMemory] tar-1.35+dfsg/lib/rtapelib.c:570:36: note: Assuming allocation function fails tar-1.35+dfsg/lib/rtapelib.c:570:36: note: Assignment 'command_buffer=xmalloc(remote_file_len+1000)', assigned value is 0 tar-1.35+dfsg/lib/rtapelib.c:573:13: note: Null pointer dereference tar-1.35+dfsg/lib/rtapelib.c:572:34: error:inconclusive: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] tar-1.35+dfsg/lib/rtapelib.c:570:36: note: Assuming allocation function fails tar-1.35+dfsg/lib/rtapelib.c:570:36: note: Assignment 'command_buffer=xmalloc(remote_file_len+1000)', assigned value is 0 tar-1.35+dfsg/lib/rtapelib.c:572:34: note: Null pointer addition tar-1.35+dfsg/lib/rtapelib.c:509:2: style: Variable 'errno' is assigned an expression that holds the same value. [redundantAssignment] tar-1.35+dfsg/lib/rtapelib.c:505:8: note: e is assigned 'errno' here. tar-1.35+dfsg/lib/rtapelib.c:509:2: note: Variable 'errno' is assigned an expression that holds the same value. tar-1.35+dfsg/lib/rtapelib.c:522:2: style: Variable 'errno' is assigned an expression that holds the same value. [redundantAssignment] tar-1.35+dfsg/lib/rtapelib.c:516:8: note: e is assigned 'errno' here. tar-1.35+dfsg/lib/rtapelib.c:522:2: note: Variable 'errno' is assigned an expression that holds the same value. tar-1.35+dfsg/lib/rtapelib.c:240:2: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] tar-1.35+dfsg/lib/rtapelib.c:691:61: style: Parameter 'argument' can be declared as pointer to const [constParameterPointer] tar-1.35+dfsg/src/common.h:669:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INTMAX_MAX [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/checkpoint.c:162:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_BLOCK [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/checkpoint.c:306:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WRDSF_NOVAR [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/checkpoint.c:399:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/buffer.c:435:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/buffer.c:488:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LONGEST_HUMAN_READABLE [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/buffer.c:576:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/buffer.c:687:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/buffer.c:757:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/buffer.c:861:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/buffer.c:903:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/buffer.c:968:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SAFE_READ_ERROR [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/buffer.c:1157:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/buffer.c:1198:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/buffer.c:1301:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TTY_NAME [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/buffer.c:1424:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SAFE_READ_ERROR [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/buffer.c:1710:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/buffer.c:1819:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SAFE_READ_ERROR [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/buffer.c:1885:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SAFE_READ_ERROR [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/buffer.c:1948:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/compare.c:71:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PAXEXIT_DIFFERS [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/compare.c:88:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SAFE_READ_ERROR [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/compare.c:159:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/compare.c:181:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODE_ALL [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/compare.c:201:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODE_ALL [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/compare.c:327:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODE_ALL [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/compare.c:481:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALLTHROUGH [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/gnu/regex_internal.c:1612:19: style: Variable 'node' can be declared as pointer to const [constVariablePointer] tar-1.35+dfsg/gnu/regex_internal.c:1662:19: style: Variable 'node' can be declared as pointer to const [constVariablePointer] tar-1.35+dfsg/src/checkpoint.c:334:8: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] tar-1.35+dfsg/src/checkpoint.c:85:24: warning: If memory allocation fails, then there is a possible null pointer dereference: output [nullPointerOutOfMemory] tar-1.35+dfsg/src/checkpoint.c:84:26: note: Assuming allocation function fails tar-1.35+dfsg/src/checkpoint.c:84:26: note: Assignment 'output=xstrdup(str)', assigned value is 0 tar-1.35+dfsg/src/checkpoint.c:85:24: note: Null pointer dereference tar-1.35+dfsg/src/checkpoint.c:86:9: warning: If memory allocation fails, then there is a possible null pointer dereference: output [nullPointerOutOfMemory] tar-1.35+dfsg/src/checkpoint.c:84:26: note: Assuming allocation function fails tar-1.35+dfsg/src/checkpoint.c:84:26: note: Assignment 'output=xstrdup(str)', assigned value is 0 tar-1.35+dfsg/src/checkpoint.c:86:9: note: Null pointer dereference tar-1.35+dfsg/src/compare.c:58:42: style: Parameter 'st' can be declared as pointer to const [constParameterPointer] tar-1.35+dfsg/src/compare.c:76:60: style: Parameter 'data' can be declared as pointer to const. However it seems that 'process_noop' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] tar-1.35+dfsg/src/compare.c:399:28: note: You might need to cast the function pointer here tar-1.35+dfsg/src/compare.c:76:60: note: Parameter 'data' can be declared as pointer to const tar-1.35+dfsg/src/compare.c:82:38: style: Parameter 'buffer' can be declared as pointer to const. However it seems that 'process_rawdata' is a callback function, if 'buffer' is declared with const you might also need to cast function pointer(s). [constParameterCallback] tar-1.35+dfsg/src/compare.c:452:43: note: You might need to cast the function pointer here tar-1.35+dfsg/src/compare.c:82:38: note: Parameter 'buffer' can be declared as pointer to const tar-1.35+dfsg/src/checkpoint.c:238:9: style: Variable 'cps' can be declared as pointer to const [constVariablePointer] tar-1.35+dfsg/src/delete.c:69:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOVERFLOW [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/delete.c:131:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable buffer [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/delete.c:198:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALLTHROUGH [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/delete.c:113:35: style: Parameter 'h' can be declared as pointer to const [constParameterPointer] tar-1.35+dfsg/src/exclist.c:86:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/exclist.c:209:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXCLUDE_ALLOC [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/exclist.c:244:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXCLUDE_INCLUDE [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/exclist.c:262:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXCLUDE_REGEX [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/exclist.c:282:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXCLUDE_REGEX [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/buffer.c:155:7: warning: If memory allocation fails, then there is a possible null pointer dereference: bp [nullPointerOutOfMemory] tar-1.35+dfsg/src/buffer.c:148:35: note: Assuming allocation function fails tar-1.35+dfsg/src/buffer.c:148:35: note: Assignment 'bp=xmalloc(sizeof(bp[0]))', assigned value is 0 tar-1.35+dfsg/src/buffer.c:155:7: note: Null pointer dereference tar-1.35+dfsg/src/buffer.c:156:7: warning: If memory allocation fails, then there is a possible null pointer dereference: bp [nullPointerOutOfMemory] tar-1.35+dfsg/src/buffer.c:148:35: note: Assuming allocation function fails tar-1.35+dfsg/src/buffer.c:148:35: note: Assignment 'bp=xmalloc(sizeof(bp[0]))', assigned value is 0 tar-1.35+dfsg/src/buffer.c:156:7: note: Null pointer dereference tar-1.35+dfsg/src/buffer.c:157:7: warning: If memory allocation fails, then there is a possible null pointer dereference: bp [nullPointerOutOfMemory] tar-1.35+dfsg/src/buffer.c:148:35: note: Assuming allocation function fails tar-1.35+dfsg/src/buffer.c:148:35: note: Assignment 'bp=xmalloc(sizeof(bp[0]))', assigned value is 0 tar-1.35+dfsg/src/buffer.c:157:7: note: Null pointer dereference tar-1.35+dfsg/src/buffer.c:158:7: warning: If memory allocation fails, then there is a possible null pointer dereference: bp [nullPointerOutOfMemory] tar-1.35+dfsg/src/buffer.c:148:35: note: Assuming allocation function fails tar-1.35+dfsg/src/buffer.c:148:35: note: Assignment 'bp=xmalloc(sizeof(bp[0]))', assigned value is 0 tar-1.35+dfsg/src/buffer.c:158:7: note: Null pointer dereference tar-1.35+dfsg/src/buffer.c:159:7: warning: If memory allocation fails, then there is a possible null pointer dereference: bp [nullPointerOutOfMemory] tar-1.35+dfsg/src/buffer.c:148:35: note: Assuming allocation function fails tar-1.35+dfsg/src/buffer.c:148:35: note: Assignment 'bp=xmalloc(sizeof(bp[0]))', assigned value is 0 tar-1.35+dfsg/src/buffer.c:159:7: note: Null pointer dereference tar-1.35+dfsg/src/buffer.c:160:7: warning: If memory allocation fails, then there is a possible null pointer dereference: bp [nullPointerOutOfMemory] tar-1.35+dfsg/src/buffer.c:148:35: note: Assuming allocation function fails tar-1.35+dfsg/src/buffer.c:148:35: note: Assignment 'bp=xmalloc(sizeof(bp[0]))', assigned value is 0 tar-1.35+dfsg/src/buffer.c:160:7: note: Null pointer dereference tar-1.35+dfsg/src/buffer.c:1589:12: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] tar-1.35+dfsg/src/buffer.c:1588:22: note: Assuming allocation function fails tar-1.35+dfsg/src/buffer.c:1588:22: note: Assignment 's=xmalloc((len=p-label)+1)', assigned value is 0 tar-1.35+dfsg/src/buffer.c:1589:12: note: Null pointer dereference tar-1.35+dfsg/src/buffer.c:1590:4: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] tar-1.35+dfsg/src/buffer.c:1588:22: note: Assuming allocation function fails tar-1.35+dfsg/src/buffer.c:1588:22: note: Assignment 's=xmalloc((len=p-label)+1)', assigned value is 0 tar-1.35+dfsg/src/buffer.c:1590:4: note: Null pointer dereference tar-1.35+dfsg/src/buffer.c:1635:11: warning: Either the condition '!label' is redundant or there is possible null pointer dereference: label. [nullPointerRedundantCheck] tar-1.35+dfsg/src/buffer.c:1632:11: note: Assuming that condition '!label' is not redundant tar-1.35+dfsg/src/buffer.c:1635:11: note: Null pointer dereference tar-1.35+dfsg/src/buffer.c:1713:25: style: Variable 'st.orig_file_name' is reassigned a value before the old one has been used. [redundantAssignment] tar-1.35+dfsg/src/buffer.c:1709:25: note: st.orig_file_name is assigned tar-1.35+dfsg/src/buffer.c:1713:25: note: st.orig_file_name is overwritten tar-1.35+dfsg/src/buffer.c:2020:32: style:inconclusive: Function 'open_archive' argument 1 names different: declaration 'mode' definition 'wanted_access'. [funcArgNamesDifferent] tar-1.35+dfsg/src/common.h:467:37: note: Function 'open_archive' argument 1 names different: declaration 'mode' definition 'wanted_access'. tar-1.35+dfsg/src/buffer.c:2020:32: note: Function 'open_archive' argument 1 names different: declaration 'mode' definition 'wanted_access'. tar-1.35+dfsg/src/buffer.c:178:29: style: Parameter 'mark' can be declared as pointer to const [constParameterPointer] tar-1.35+dfsg/src/buffer.c:217:38: style: Parameter 'st' can be declared as pointer to const [constParameterPointer] tar-1.35+dfsg/src/buffer.c:621:36: style: Parameter 'block' can be declared as pointer to const [constParameterPointer] tar-1.35+dfsg/src/buffer.c:639:37: style: Parameter 'pointer' can be declared as pointer to const [constParameterPointer] tar-1.35+dfsg/src/buffer.c:1692:9: style: Variable 'p' can be declared as pointer to const [constVariablePointer] tar-1.35+dfsg/src/exit.c:30:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PAXEXIT_FAILURE [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/lib/wordsplit.c:86:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WRDSF_SHOWERR [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/lib/wordsplit.c:94:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/lib/wordsplit.c:127:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WRDSF_NOVAR [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/lib/wordsplit.c:173:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WRDSE_USERERR [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/lib/wordsplit.c:187:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WRDSF_REUSE [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/lib/wordsplit.c:211:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WRDSF_ALLOC_DIE [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/lib/wordsplit.c:303:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WRDSF_DOOFFS [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/lib/wordsplit.c:642:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WRDSF_QUOTE [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/lib/wordsplit.c:742:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WRDSF_RETURN_DELIMS [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/lib/wordsplit.c:986:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WRDSF_ENV [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/lib/wordsplit.c:1031:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WRDSF_ENV_KV [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/lib/wordsplit.c:1164:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WRDSE_CBRACE [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/lib/wordsplit.c:1545:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WRDSE_PAREN [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/lib/wordsplit.c:1828:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WRDSO_NULLGLOB [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/lib/wordsplit.c:1927:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WRDSF_RETURN_DELIMS [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/lib/wordsplit.c:1933:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WRDSF_RETURN_DELIMS [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/lib/wordsplit.c:1963:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WRDSE_QUOTE [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/lib/wordsplit.c:1983:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WRDSE_EOF [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/lib/wordsplit.c:2179:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WRDSO_XESC [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/lib/wordsplit.c:2342:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WRDSF_SHOWDBG [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/lib/wordsplit.c:2412:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WRDSF_INCREMENTAL [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/lib/wordsplit.c:2473:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WRDSF_NOCMD [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/lib/wordsplit.c:2490:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WRDSE_USERERR [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/lib/wordsplit.c:2540:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WRDSE_USERERR [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/create.c:389:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_ISUID [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/create.c:485:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODE_R [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/create.c:518:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/create.c:761:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODE_ALL [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/create.c:1079:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SAFE_READ_ERROR [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/create.c:1280:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/create.c:1368:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DIRECTORY_SEPARATOR [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/create.c:1448:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PAXEXIT_FAILURE [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/create.c:1578:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/create.c:1602:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/create.c:1661:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/exclist.c:54:3: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] tar-1.35+dfsg/src/exclist.c:52:31: note: Assuming allocation function fails tar-1.35+dfsg/src/exclist.c:52:31: note: Assignment 'p=xmalloc(FLEXNSIZEOF(struct excfile,name,strlen(name)+1))', assigned value is 0 tar-1.35+dfsg/src/exclist.c:54:3: note: Null pointer dereference tar-1.35+dfsg/src/exclist.c:55:3: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] tar-1.35+dfsg/src/exclist.c:52:31: note: Assuming allocation function fails tar-1.35+dfsg/src/exclist.c:52:31: note: Assignment 'p=xmalloc(FLEXNSIZEOF(struct excfile,name,strlen(name)+1))', assigned value is 0 tar-1.35+dfsg/src/exclist.c:55:3: note: Null pointer dereference tar-1.35+dfsg/src/exclist.c:56:11: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] tar-1.35+dfsg/src/exclist.c:52:31: note: Assuming allocation function fails tar-1.35+dfsg/src/exclist.c:52:31: note: Assignment 'p=xmalloc(FLEXNSIZEOF(struct excfile,name,strlen(name)+1))', assigned value is 0 tar-1.35+dfsg/src/exclist.c:56:11: note: Null pointer dereference tar-1.35+dfsg/src/exclist.c:78:7: warning: Either the condition 'dir' is redundant or there is possible null pointer dereference: dir. [nullPointerRedundantCheck] tar-1.35+dfsg/src/exclist.c:82:22: note: Assuming that condition 'dir' is not redundant tar-1.35+dfsg/src/exclist.c:78:7: note: Null pointer dereference tar-1.35+dfsg/src/exclist.c:119:4: warning: If memory allocation fails, then there is a possible null pointer dereference: ent [nullPointerOutOfMemory] tar-1.35+dfsg/src/exclist.c:118:18: note: Assuming allocation function fails tar-1.35+dfsg/src/exclist.c:118:18: note: Assignment 'ent=xmalloc(sizeof(*ent))', assigned value is 0 tar-1.35+dfsg/src/exclist.c:119:4: note: Null pointer dereference tar-1.35+dfsg/src/exclist.c:120:4: warning: If memory allocation fails, then there is a possible null pointer dereference: ent [nullPointerOutOfMemory] tar-1.35+dfsg/src/exclist.c:118:18: note: Assuming allocation function fails tar-1.35+dfsg/src/exclist.c:118:18: note: Assignment 'ent=xmalloc(sizeof(*ent))', assigned value is 0 tar-1.35+dfsg/src/exclist.c:120:4: note: Null pointer dereference tar-1.35+dfsg/src/exclist.c:122:4: warning: If memory allocation fails, then there is a possible null pointer dereference: ent [nullPointerOutOfMemory] tar-1.35+dfsg/src/exclist.c:118:18: note: Assuming allocation function fails tar-1.35+dfsg/src/exclist.c:118:18: note: Assignment 'ent=xmalloc(sizeof(*ent))', assigned value is 0 tar-1.35+dfsg/src/exclist.c:122:4: note: Null pointer dereference tar-1.35+dfsg/src/exclist.c:123:4: warning: If memory allocation fails, then there is a possible null pointer dereference: ent [nullPointerOutOfMemory] tar-1.35+dfsg/src/exclist.c:118:18: note: Assuming allocation function fails tar-1.35+dfsg/src/exclist.c:118:18: note: Assignment 'ent=xmalloc(sizeof(*ent))', assigned value is 0 tar-1.35+dfsg/src/exclist.c:123:4: note: Null pointer dereference tar-1.35+dfsg/src/exclist.c:296:15: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] tar-1.35+dfsg/src/exclist.c:295:19: note: Assuming allocation function fails tar-1.35+dfsg/src/exclist.c:295:19: note: Assignment 'p=xmalloc(len+1)', assigned value is 0 tar-1.35+dfsg/src/exclist.c:296:15: note: Null pointer dereference tar-1.35+dfsg/src/exclist.c:297:7: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] tar-1.35+dfsg/src/exclist.c:295:19: note: Assuming allocation function fails tar-1.35+dfsg/src/exclist.c:295:19: note: Assignment 'p=xmalloc(len+1)', assigned value is 0 tar-1.35+dfsg/src/exclist.c:297:7: note: Null pointer dereference tar-1.35+dfsg/src/extract.c:66:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOSYS [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/extract.c:221:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROOT_UID [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/extract.c:245:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/extract.c:259:73: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/extract.c:294:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/extract.c:326:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODE_ALL [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/extract.c:402:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tv_nsec [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/extract.c:719:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODE_RWX [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/extract.c:789:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/extract.c:823:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/extract.c:1033:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODE_RWX [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/extract.c:1074:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODE_RWX [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/extract.c:1182:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/extract.c:1258:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODE_RWX [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/extract.c:1382:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AT_SYMLINK_NOFOLLOW [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/extract.c:1408:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/extract.c:1511:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/extract.c:1608:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODE_RWX [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/extract.c:1763:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/extract.c:1835:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/extract.c:1876:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AT_SYMLINK_NOFOLLOW [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/extract.c:1974:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/incremen.c:787:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/incremen.c:1003:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/incremen.c:1171:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/incremen.c:1336:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/incremen.c:1722:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/list.c:220:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALLTHROUGH [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/list.c:928:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable locale_quoting_style [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/list.c:979:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable major_t [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/list.c:987:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable minor_t [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/extract.c:214:31: style:inconclusive: Boolean expression 'da->dev==db->dev' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] tar-1.35+dfsg/src/extract.c:246:18: style: Condition 'result==0' is always false [knownConditionTrueFalse] tar-1.35+dfsg/src/extract.c:245:20: note: Assignment 'result=(errno=ENOSYS,-1)', assigned value is -1 tar-1.35+dfsg/src/extract.c:246:18: note: Condition 'result==0' is always false tar-1.35+dfsg/src/extract.c:295:18: style: Condition 'result==0' is always false [knownConditionTrueFalse] tar-1.35+dfsg/src/extract.c:294:20: note: Assignment 'result=(errno=ENOSYS,-1)', assigned value is -1 tar-1.35+dfsg/src/extract.c:295:18: note: Condition 'result==0' is always false tar-1.35+dfsg/src/extract.c:1283:8: style: Condition '(file_created=set_xattr(file_name,¤t_stat_info,mode|S_IWUSR,typeflag))<0' is always false [knownConditionTrueFalse] tar-1.35+dfsg/src/extract.c:1281:41: note: Calling function 'set_xattr' returns 0 tar-1.35+dfsg/src/extract.c:1283:8: note: Condition '(file_created=set_xattr(file_name,¤t_stat_info,mode|S_IWUSR,typeflag))<0' is always false tar-1.35+dfsg/src/extract.c:540:7: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] tar-1.35+dfsg/src/extract.c:539:22: note: Assuming allocation function fails tar-1.35+dfsg/src/extract.c:539:22: note: Assignment 'data=xmalloc(sizeof(*data))', assigned value is 0 tar-1.35+dfsg/src/extract.c:540:7: note: Null pointer dereference tar-1.35+dfsg/src/extract.c:542:7: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] tar-1.35+dfsg/src/extract.c:539:22: note: Assuming allocation function fails tar-1.35+dfsg/src/extract.c:539:22: note: Assignment 'data=xmalloc(sizeof(*data))', assigned value is 0 tar-1.35+dfsg/src/extract.c:542:7: note: Null pointer dereference tar-1.35+dfsg/src/extract.c:543:7: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] tar-1.35+dfsg/src/extract.c:539:22: note: Assuming allocation function fails tar-1.35+dfsg/src/extract.c:539:22: note: Assignment 'data=xmalloc(sizeof(*data))', assigned value is 0 tar-1.35+dfsg/src/extract.c:543:7: note: Null pointer dereference tar-1.35+dfsg/src/extract.c:544:7: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] tar-1.35+dfsg/src/extract.c:539:22: note: Assuming allocation function fails tar-1.35+dfsg/src/extract.c:539:22: note: Assignment 'data=xmalloc(sizeof(*data))', assigned value is 0 tar-1.35+dfsg/src/extract.c:544:7: note: Null pointer dereference tar-1.35+dfsg/src/extract.c:553:3: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] tar-1.35+dfsg/src/extract.c:539:22: note: Assuming allocation function fails tar-1.35+dfsg/src/extract.c:539:22: note: Assignment 'data=xmalloc(sizeof(*data))', assigned value is 0 tar-1.35+dfsg/src/extract.c:553:3: note: Null pointer dereference tar-1.35+dfsg/src/extract.c:1446:7: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] tar-1.35+dfsg/src/extract.c:1444:10: note: Assuming allocation function fails tar-1.35+dfsg/src/extract.c:1444:10: note: Assignment 'p=xmalloc(FLEXNSIZEOF(struct delayed_link,target,strlen(current_stat_info.link_name)+1))', assigned value is 0 tar-1.35+dfsg/src/extract.c:1446:7: note: Null pointer dereference tar-1.35+dfsg/src/extract.c:1447:7: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] tar-1.35+dfsg/src/extract.c:1444:10: note: Assuming allocation function fails tar-1.35+dfsg/src/extract.c:1444:10: note: Assignment 'p=xmalloc(FLEXNSIZEOF(struct delayed_link,target,strlen(current_stat_info.link_name)+1))', assigned value is 0 tar-1.35+dfsg/src/extract.c:1447:7: note: Null pointer dereference tar-1.35+dfsg/src/extract.c:1448:7: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] tar-1.35+dfsg/src/extract.c:1444:10: note: Assuming allocation function fails tar-1.35+dfsg/src/extract.c:1444:10: note: Assignment 'p=xmalloc(FLEXNSIZEOF(struct delayed_link,target,strlen(current_stat_info.link_name)+1))', assigned value is 0 tar-1.35+dfsg/src/extract.c:1448:7: note: Null pointer dereference tar-1.35+dfsg/src/extract.c:1452:7: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] tar-1.35+dfsg/src/extract.c:1444:10: note: Assuming allocation function fails tar-1.35+dfsg/src/extract.c:1444:10: note: Assignment 'p=xmalloc(FLEXNSIZEOF(struct delayed_link,target,strlen(current_stat_info.link_name)+1))', assigned value is 0 tar-1.35+dfsg/src/extract.c:1452:7: note: Null pointer dereference tar-1.35+dfsg/src/extract.c:1461:7: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] tar-1.35+dfsg/src/extract.c:1444:10: note: Assuming allocation function fails tar-1.35+dfsg/src/extract.c:1444:10: note: Assignment 'p=xmalloc(FLEXNSIZEOF(struct delayed_link,target,strlen(current_stat_info.link_name)+1))', assigned value is 0 tar-1.35+dfsg/src/extract.c:1461:7: note: Null pointer dereference tar-1.35+dfsg/src/extract.c:1462:7: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] tar-1.35+dfsg/src/extract.c:1444:10: note: Assuming allocation function fails tar-1.35+dfsg/src/extract.c:1444:10: note: Assignment 'p=xmalloc(FLEXNSIZEOF(struct delayed_link,target,strlen(current_stat_info.link_name)+1))', assigned value is 0 tar-1.35+dfsg/src/extract.c:1462:7: note: Null pointer dereference tar-1.35+dfsg/src/extract.c:1464:7: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] tar-1.35+dfsg/src/extract.c:1444:10: note: Assuming allocation function fails tar-1.35+dfsg/src/extract.c:1444:10: note: Assignment 'p=xmalloc(FLEXNSIZEOF(struct delayed_link,target,strlen(current_stat_info.link_name)+1))', assigned value is 0 tar-1.35+dfsg/src/extract.c:1464:7: note: Null pointer dereference tar-1.35+dfsg/src/extract.c:1464:8: warning: If memory allocation fails, then there is a possible null pointer dereference: p->sources [nullPointerOutOfMemory] tar-1.35+dfsg/src/extract.c:1462:28: note: Assuming allocation function fails tar-1.35+dfsg/src/extract.c:1462:28: note: Assignment 'p->sources=xmalloc(FLEXNSIZEOF(struct string_list,string,strlen(file_name)+1))', assigned value is 0 tar-1.35+dfsg/src/extract.c:1464:8: note: Null pointer dereference tar-1.35+dfsg/src/extract.c:1465:15: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] tar-1.35+dfsg/src/extract.c:1444:10: note: Assuming allocation function fails tar-1.35+dfsg/src/extract.c:1444:10: note: Assignment 'p=xmalloc(FLEXNSIZEOF(struct delayed_link,target,strlen(current_stat_info.link_name)+1))', assigned value is 0 tar-1.35+dfsg/src/extract.c:1465:15: note: Null pointer dereference tar-1.35+dfsg/src/extract.c:1466:7: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] tar-1.35+dfsg/src/extract.c:1444:10: note: Assuming allocation function fails tar-1.35+dfsg/src/extract.c:1444:10: note: Assignment 'p=xmalloc(FLEXNSIZEOF(struct delayed_link,target,strlen(current_stat_info.link_name)+1))', assigned value is 0 tar-1.35+dfsg/src/extract.c:1466:7: note: Null pointer dereference tar-1.35+dfsg/src/extract.c:1468:7: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] tar-1.35+dfsg/src/extract.c:1444:10: note: Assuming allocation function fails tar-1.35+dfsg/src/extract.c:1444:10: note: Assignment 'p=xmalloc(FLEXNSIZEOF(struct delayed_link,target,strlen(current_stat_info.link_name)+1))', assigned value is 0 tar-1.35+dfsg/src/extract.c:1468:7: note: Null pointer dereference tar-1.35+dfsg/src/extract.c:1469:7: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] tar-1.35+dfsg/src/extract.c:1444:10: note: Assuming allocation function fails tar-1.35+dfsg/src/extract.c:1444:10: note: Assignment 'p=xmalloc(FLEXNSIZEOF(struct delayed_link,target,strlen(current_stat_info.link_name)+1))', assigned value is 0 tar-1.35+dfsg/src/extract.c:1469:7: note: Null pointer dereference tar-1.35+dfsg/src/extract.c:1470:7: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] tar-1.35+dfsg/src/extract.c:1444:10: note: Assuming allocation function fails tar-1.35+dfsg/src/extract.c:1444:10: note: Assignment 'p=xmalloc(FLEXNSIZEOF(struct delayed_link,target,strlen(current_stat_info.link_name)+1))', assigned value is 0 tar-1.35+dfsg/src/extract.c:1470:7: note: Null pointer dereference tar-1.35+dfsg/src/extract.c:1471:7: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] tar-1.35+dfsg/src/extract.c:1444:10: note: Assuming allocation function fails tar-1.35+dfsg/src/extract.c:1444:10: note: Assignment 'p=xmalloc(FLEXNSIZEOF(struct delayed_link,target,strlen(current_stat_info.link_name)+1))', assigned value is 0 tar-1.35+dfsg/src/extract.c:1471:7: note: Null pointer dereference tar-1.35+dfsg/src/extract.c:1474:15: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] tar-1.35+dfsg/src/extract.c:1444:10: note: Assuming allocation function fails tar-1.35+dfsg/src/extract.c:1444:10: note: Assignment 'p=xmalloc(FLEXNSIZEOF(struct delayed_link,target,strlen(current_stat_info.link_name)+1))', assigned value is 0 tar-1.35+dfsg/src/extract.c:1474:15: note: Null pointer dereference tar-1.35+dfsg/src/extract.c:1528:13: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] tar-1.35+dfsg/src/extract.c:1526:17: note: Assuming allocation function fails tar-1.35+dfsg/src/extract.c:1526:17: note: Assignment 'p=xmalloc(FLEXNSIZEOF(struct string_list,string,strlen(file_name)+1))', assigned value is 0 tar-1.35+dfsg/src/extract.c:1528:13: note: Null pointer dereference tar-1.35+dfsg/src/extract.c:1529:5: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] tar-1.35+dfsg/src/extract.c:1526:17: note: Assuming allocation function fails tar-1.35+dfsg/src/extract.c:1526:17: note: Assignment 'p=xmalloc(FLEXNSIZEOF(struct string_list,string,strlen(file_name)+1))', assigned value is 0 tar-1.35+dfsg/src/extract.c:1529:5: note: Null pointer dereference tar-1.35+dfsg/src/extract.c:1868:16: style: Redundant initialization for 'sources'. The initialized value is overwritten before it is read. [redundantInitialization] tar-1.35+dfsg/src/extract.c:1863:31: note: sources is initialized tar-1.35+dfsg/src/extract.c:1868:16: note: sources is overwritten tar-1.35+dfsg/src/extract.c:781:30: style: Parameter 'tar_stat' can be declared as pointer to const [constParameterPointer] tar-1.35+dfsg/src/extract.c:124:12: style: struct member 'delayed_set_stat::xattr_map_size' is never used. [unusedStructMember] tar-1.35+dfsg/gnu/regexec.c:1950:27: style:inconclusive: Function 'check_dst_limits_calc_pos' argument 4 names different: declaration 'node' definition 'from_node'. [funcArgNamesDifferent] tar-1.35+dfsg/gnu/regexec.c:94:15: note: Function 'check_dst_limits_calc_pos' argument 4 names different: declaration 'node' definition 'from_node'. tar-1.35+dfsg/gnu/regexec.c:1950:27: note: Function 'check_dst_limits_calc_pos' argument 4 names different: declaration 'node' definition 'from_node'. tar-1.35+dfsg/gnu/regexec.c:3425:21: style:inconclusive: Function 'group_nodes_into_DFAstates' argument 3 names different: declaration 'states_node' definition 'dests_node'. [funcArgNamesDifferent] tar-1.35+dfsg/gnu/regexec.c:163:25: note: Function 'group_nodes_into_DFAstates' argument 3 names different: declaration 'states_node' definition 'dests_node'. tar-1.35+dfsg/gnu/regexec.c:3425:21: note: Function 'group_nodes_into_DFAstates' argument 3 names different: declaration 'states_node' definition 'dests_node'. tar-1.35+dfsg/gnu/regexec.c:3425:43: style:inconclusive: Function 'group_nodes_into_DFAstates' argument 4 names different: declaration 'states_ch' definition 'dests_ch'. [funcArgNamesDifferent] tar-1.35+dfsg/gnu/regexec.c:164:22: note: Function 'group_nodes_into_DFAstates' argument 4 names different: declaration 'states_ch' definition 'dests_ch'. tar-1.35+dfsg/gnu/regexec.c:3425:43: note: Function 'group_nodes_into_DFAstates' argument 4 names different: declaration 'states_ch' definition 'dests_ch'. tar-1.35+dfsg/gnu/regexec.c:3613:35: style:inconclusive: Function 'check_node_accept_bytes' argument 4 names different: declaration 'idx' definition 'str_idx'. [funcArgNamesDifferent] tar-1.35+dfsg/gnu/regexec.c:156:39: note: Function 'check_node_accept_bytes' argument 4 names different: declaration 'idx' definition 'str_idx'. tar-1.35+dfsg/gnu/regexec.c:3613:35: note: Function 'check_node_accept_bytes' argument 4 names different: declaration 'idx' definition 'str_idx'. tar-1.35+dfsg/gnu/regexec.c:4010:37: style:inconclusive: Function 'match_ctx_init' argument 1 names different: declaration 'cache' definition 'mctx'. [funcArgNamesDifferent] tar-1.35+dfsg/gnu/regexec.c:20:58: note: Function 'match_ctx_init' argument 1 names different: declaration 'cache' definition 'mctx'. tar-1.35+dfsg/gnu/regexec.c:4010:37: note: Function 'match_ctx_init' argument 1 names different: declaration 'cache' definition 'mctx'. tar-1.35+dfsg/gnu/regexec.c:4073:37: style:inconclusive: Function 'match_ctx_free' argument 1 names different: declaration 'cache' definition 'mctx'. [funcArgNamesDifferent] tar-1.35+dfsg/gnu/regexec.c:23:49: note: Function 'match_ctx_free' argument 1 names different: declaration 'cache' definition 'mctx'. tar-1.35+dfsg/gnu/regexec.c:4073:37: note: Function 'match_ctx_free' argument 1 names different: declaration 'cache' definition 'mctx'. tar-1.35+dfsg/gnu/regexec.c:4088:42: style:inconclusive: Function 'match_ctx_add_entry' argument 1 names different: declaration 'cache' definition 'mctx'. [funcArgNamesDifferent] tar-1.35+dfsg/gnu/regexec.c:24:63: note: Function 'match_ctx_add_entry' argument 1 names different: declaration 'cache' definition 'mctx'. tar-1.35+dfsg/gnu/regexec.c:4088:42: note: Function 'match_ctx_add_entry' argument 1 names different: declaration 'cache' definition 'mctx'. tar-1.35+dfsg/gnu/regexec.c:798:20: style: Variable 'pstate' can be declared as pointer to const [constVariablePointer] tar-1.35+dfsg/gnu/regexec.c:1307:27: style: Parameter 'regs' can be declared as pointer to const [constParameterPointer] tar-1.35+dfsg/gnu/regexec.c:1307:45: style: Parameter 'prevregs' can be declared as pointer to const [constParameterPointer] tar-1.35+dfsg/gnu/regexec.c:1844:38: style: Variable 'ent' can be declared as pointer to const [constVariablePointer] tar-1.35+dfsg/gnu/regexec.c:1953:34: style: Variable 'lim' can be declared as pointer to const [constVariablePointer] tar-1.35+dfsg/gnu/regexec.c:1988:38: style: Variable 'ent' can be declared as pointer to const [constVariablePointer] tar-1.35+dfsg/gnu/regexec.c:2084:38: style: Variable 'entry' can be declared as pointer to const [constVariablePointer] tar-1.35+dfsg/gnu/regexec.c:2536:35: style: Variable 'bkref_ent' can be declared as pointer to const [constVariablePointer] tar-1.35+dfsg/lib/wordsplit.c:1738:13: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] tar-1.35+dfsg/lib/wordsplit.c:1741:11: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] tar-1.35+dfsg/src/incremen.c:104:3: warning: If memory allocation fails, then there is a possible null pointer dereference: dump [nullPointerOutOfMemory] tar-1.35+dfsg/src/incremen.c:103:18: note: Assuming allocation function fails tar-1.35+dfsg/src/incremen.c:103:18: note: Assignment 'dump=xmalloc(sizeof(*dump)+ctsize)', assigned value is 0 tar-1.35+dfsg/src/incremen.c:104:3: note: Null pointer dereference tar-1.35+dfsg/src/incremen.c:105:11: warning: If memory allocation fails, then there is a possible null pointer dereference: dump [nullPointerOutOfMemory] tar-1.35+dfsg/src/incremen.c:103:18: note: Assuming allocation function fails tar-1.35+dfsg/src/incremen.c:103:18: note: Assignment 'dump=xmalloc(sizeof(*dump)+ctsize)', assigned value is 0 tar-1.35+dfsg/src/incremen.c:105:11: note: Null pointer dereference tar-1.35+dfsg/src/incremen.c:105:27: warning: If memory allocation fails, then there is a possible null pointer dereference: contents [nullPointerOutOfMemory] tar-1.35+dfsg/src/incremen.c:720:28: note: Assuming allocation function fails tar-1.35+dfsg/src/incremen.c:720:28: note: Assignment 'new_dump=xmalloc(len+2)', assigned value is 0 tar-1.35+dfsg/src/incremen.c:726:38: note: Calling function 'dumpdir_create0', 1st argument 'new_dump' value is 0 tar-1.35+dfsg/src/incremen.c:105:27: note: Null pointer dereference tar-1.35+dfsg/src/incremen.c:106:3: warning: If memory allocation fails, then there is a possible null pointer dereference: dump [nullPointerOutOfMemory] tar-1.35+dfsg/src/incremen.c:103:18: note: Assuming allocation function fails tar-1.35+dfsg/src/incremen.c:103:18: note: Assignment 'dump=xmalloc(sizeof(*dump)+ctsize)', assigned value is 0 tar-1.35+dfsg/src/incremen.c:106:3: note: Null pointer dereference tar-1.35+dfsg/src/incremen.c:107:3: warning: If memory allocation fails, then there is a possible null pointer dereference: dump [nullPointerOutOfMemory] tar-1.35+dfsg/src/incremen.c:103:18: note: Assuming allocation function fails tar-1.35+dfsg/src/incremen.c:103:18: note: Assignment 'dump=xmalloc(sizeof(*dump)+ctsize)', assigned value is 0 tar-1.35+dfsg/src/incremen.c:107:3: note: Null pointer dereference tar-1.35+dfsg/src/incremen.c:108:3: warning: If memory allocation fails, then there is a possible null pointer dereference: dump [nullPointerOutOfMemory] tar-1.35+dfsg/src/incremen.c:103:18: note: Assuming allocation function fails tar-1.35+dfsg/src/incremen.c:103:18: note: Assignment 'dump=xmalloc(sizeof(*dump)+ctsize)', assigned value is 0 tar-1.35+dfsg/src/incremen.c:108:3: note: Null pointer dereference tar-1.35+dfsg/src/incremen.c:110:19: warning: If memory allocation fails, then there is a possible null pointer dereference: dump [nullPointerOutOfMemory] tar-1.35+dfsg/src/incremen.c:103:18: note: Assuming allocation function fails tar-1.35+dfsg/src/incremen.c:103:18: note: Assignment 'dump=xmalloc(sizeof(*dump)+ctsize)', assigned value is 0 tar-1.35+dfsg/src/incremen.c:110:19: note: Null pointer dereference tar-1.35+dfsg/src/incremen.c:164:16: warning: If memory allocation fails, then there is a possible null pointer dereference: itr [nullPointerOutOfMemory] tar-1.35+dfsg/src/incremen.c:186:38: note: Assuming allocation function fails tar-1.35+dfsg/src/incremen.c:186:38: note: Assignment 'itr=xmalloc(sizeof(*itr))', assigned value is 0 tar-1.35+dfsg/src/incremen.c:191:24: note: Calling function 'dumpdir_next', 1st argument 'itr' value is 0 tar-1.35+dfsg/src/incremen.c:164:16: note: Null pointer dereference tar-1.35+dfsg/src/incremen.c:167:7: warning: If memory allocation fails, then there is a possible null pointer dereference: itr [nullPointerOutOfMemory] tar-1.35+dfsg/src/incremen.c:186:38: note: Assuming allocation function fails tar-1.35+dfsg/src/incremen.c:186:38: note: Assignment 'itr=xmalloc(sizeof(*itr))', assigned value is 0 tar-1.35+dfsg/src/incremen.c:191:24: note: Calling function 'dumpdir_next', 1st argument 'itr' value is 0 tar-1.35+dfsg/src/incremen.c:167:7: note: Null pointer dereference tar-1.35+dfsg/src/incremen.c:187:3: warning: If memory allocation fails, then there is a possible null pointer dereference: itr [nullPointerOutOfMemory] tar-1.35+dfsg/src/incremen.c:186:38: note: Assuming allocation function fails tar-1.35+dfsg/src/incremen.c:186:38: note: Assignment 'itr=xmalloc(sizeof(*itr))', assigned value is 0 tar-1.35+dfsg/src/incremen.c:187:3: note: Null pointer dereference tar-1.35+dfsg/src/incremen.c:188:3: warning: If memory allocation fails, then there is a possible null pointer dereference: itr [nullPointerOutOfMemory] tar-1.35+dfsg/src/incremen.c:186:38: note: Assuming allocation function fails tar-1.35+dfsg/src/incremen.c:186:38: note: Assignment 'itr=xmalloc(sizeof(*itr))', assigned value is 0 tar-1.35+dfsg/src/incremen.c:188:3: note: Null pointer dereference tar-1.35+dfsg/src/incremen.c:189:3: warning: If memory allocation fails, then there is a possible null pointer dereference: itr [nullPointerOutOfMemory] tar-1.35+dfsg/src/incremen.c:186:38: note: Assuming allocation function fails tar-1.35+dfsg/src/incremen.c:186:38: note: Assignment 'itr=xmalloc(sizeof(*itr))', assigned value is 0 tar-1.35+dfsg/src/incremen.c:189:3: note: Null pointer dereference tar-1.35+dfsg/src/incremen.c:265:3: warning: If memory allocation fails, then there is a possible null pointer dereference: directory [nullPointerOutOfMemory] tar-1.35+dfsg/src/incremen.c:264:41: note: Assuming allocation function fails tar-1.35+dfsg/src/incremen.c:264:41: note: Assignment 'directory=xmalloc(sizeof(*directory))', assigned value is 0 tar-1.35+dfsg/src/incremen.c:265:3: note: Null pointer dereference tar-1.35+dfsg/src/incremen.c:266:3: warning: If memory allocation fails, then there is a possible null pointer dereference: directory [nullPointerOutOfMemory] tar-1.35+dfsg/src/incremen.c:264:41: note: Assuming allocation function fails tar-1.35+dfsg/src/incremen.c:264:41: note: Assignment 'directory=xmalloc(sizeof(*directory))', assigned value is 0 tar-1.35+dfsg/src/incremen.c:266:3: note: Null pointer dereference tar-1.35+dfsg/src/incremen.c:266:21: warning: If memory allocation fails, then there is a possible null pointer dereference: directory [nullPointerOutOfMemory] tar-1.35+dfsg/src/incremen.c:264:41: note: Assuming allocation function fails tar-1.35+dfsg/src/incremen.c:264:41: note: Assignment 'directory=xmalloc(sizeof(*directory))', assigned value is 0 tar-1.35+dfsg/src/incremen.c:266:21: note: Null pointer dereference tar-1.35+dfsg/src/incremen.c:267:3: warning: If memory allocation fails, then there is a possible null pointer dereference: directory [nullPointerOutOfMemory] tar-1.35+dfsg/src/incremen.c:264:41: note: Assuming allocation function fails tar-1.35+dfsg/src/incremen.c:264:41: note: Assignment 'directory=xmalloc(sizeof(*directory))', assigned value is 0 tar-1.35+dfsg/src/incremen.c:267:3: note: Null pointer dereference tar-1.35+dfsg/src/incremen.c:268:3: warning: If memory allocation fails, then there is a possible null pointer dereference: directory [nullPointerOutOfMemory] tar-1.35+dfsg/src/incremen.c:264:41: note: Assuming allocation function fails tar-1.35+dfsg/src/incremen.c:264:41: note: Assignment 'directory=xmalloc(sizeof(*directory))', assigned value is 0 tar-1.35+dfsg/src/incremen.c:268:3: note: Null pointer dereference tar-1.35+dfsg/src/incremen.c:271:3: warning: If memory allocation fails, then there is a possible null pointer dereference: directory [nullPointerOutOfMemory] tar-1.35+dfsg/src/incremen.c:264:41: note: Assuming allocation function fails tar-1.35+dfsg/src/incremen.c:264:41: note: Assignment 'directory=xmalloc(sizeof(*directory))', assigned value is 0 tar-1.35+dfsg/src/incremen.c:271:3: note: Null pointer dereference tar-1.35+dfsg/src/incremen.c:272:11: warning: If memory allocation fails, then there is a possible null pointer dereference: directory [nullPointerOutOfMemory] tar-1.35+dfsg/src/incremen.c:264:41: note: Assuming allocation function fails tar-1.35+dfsg/src/incremen.c:264:41: note: Assignment 'directory=xmalloc(sizeof(*directory))', assigned value is 0 tar-1.35+dfsg/src/incremen.c:272:11: note: Null pointer dereference tar-1.35+dfsg/src/incremen.c:273:3: warning: If memory allocation fails, then there is a possible null pointer dereference: directory [nullPointerOutOfMemory] tar-1.35+dfsg/src/incremen.c:264:41: note: Assuming allocation function fails tar-1.35+dfsg/src/incremen.c:264:41: note: Assignment 'directory=xmalloc(sizeof(*directory))', assigned value is 0 tar-1.35+dfsg/src/incremen.c:273:3: note: Null pointer dereference tar-1.35+dfsg/src/incremen.c:274:3: warning: If memory allocation fails, then there is a possible null pointer dereference: directory [nullPointerOutOfMemory] tar-1.35+dfsg/src/incremen.c:264:41: note: Assuming allocation function fails tar-1.35+dfsg/src/incremen.c:264:41: note: Assignment 'directory=xmalloc(sizeof(*directory))', assigned value is 0 tar-1.35+dfsg/src/incremen.c:274:3: note: Null pointer dereference tar-1.35+dfsg/src/incremen.c:275:3: warning: If memory allocation fails, then there is a possible null pointer dereference: directory [nullPointerOutOfMemory] tar-1.35+dfsg/src/incremen.c:264:41: note: Assuming allocation function fails tar-1.35+dfsg/src/incremen.c:264:41: note: Assignment 'directory=xmalloc(sizeof(*directory))', assigned value is 0 tar-1.35+dfsg/src/incremen.c:275:3: note: Null pointer dereference tar-1.35+dfsg/src/incremen.c:721:3: warning: If memory allocation fails, then there is a possible null pointer dereference: new_dump [nullPointerOutOfMemory] tar-1.35+dfsg/src/incremen.c:720:28: note: Assuming allocation function fails tar-1.35+dfsg/src/incremen.c:720:28: note: Assignment 'new_dump=xmalloc(len+2)', assigned value is 0 tar-1.35+dfsg/src/incremen.c:721:3: note: Null pointer dereference tar-1.35+dfsg/src/incremen.c:723:3: warning: If memory allocation fails, then there is a possible null pointer dereference: new_dump [nullPointerOutOfMemory] tar-1.35+dfsg/src/incremen.c:720:28: note: Assuming allocation function fails tar-1.35+dfsg/src/incremen.c:720:28: note: Assignment 'new_dump=xmalloc(len+2)', assigned value is 0 tar-1.35+dfsg/src/incremen.c:723:3: note: Null pointer dereference tar-1.35+dfsg/src/incremen.c:997:25: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] tar-1.35+dfsg/src/incremen.c:996:21: note: Assuming allocation function fails tar-1.35+dfsg/src/incremen.c:996:21: note: Assignment 'buf=xstrdup(initbuf)', assigned value is 0 tar-1.35+dfsg/src/incremen.c:997:25: note: Null pointer dereference tar-1.35+dfsg/src/incremen.c:104:33: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] tar-1.35+dfsg/src/incremen.c:103:18: note: Assuming allocation function fails tar-1.35+dfsg/src/incremen.c:103:18: note: Assignment 'dump=xmalloc(sizeof(*dump)+ctsize)', assigned value is 0 tar-1.35+dfsg/src/incremen.c:104:33: note: Null pointer addition tar-1.35+dfsg/src/incremen.c:722:20: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] tar-1.35+dfsg/src/incremen.c:720:28: note: Assuming allocation function fails tar-1.35+dfsg/src/incremen.c:720:28: note: Assignment 'new_dump=xmalloc(len+2)', assigned value is 0 tar-1.35+dfsg/src/incremen.c:722:20: note: Null pointer addition tar-1.35+dfsg/src/map.c:56:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/map.c:91:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WRDSF_COMMENT [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/map.c:193:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UINTMAX_MAX [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/map.c:243:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UINTMAX_MAX [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/incremen.c:405:17: style:inconclusive: Function 'rebase_directory' argument 2 names different: declaration 'samp' definition 'old_prefix'. [funcArgNamesDifferent] tar-1.35+dfsg/src/common.h:565:22: note: Function 'rebase_directory' argument 2 names different: declaration 'samp' definition 'old_prefix'. tar-1.35+dfsg/src/incremen.c:405:17: note: Function 'rebase_directory' argument 2 names different: declaration 'samp' definition 'old_prefix'. tar-1.35+dfsg/src/incremen.c:405:36: style:inconclusive: Function 'rebase_directory' argument 3 names different: declaration 'slen' definition 'old_prefix_len'. [funcArgNamesDifferent] tar-1.35+dfsg/src/common.h:565:35: note: Function 'rebase_directory' argument 3 names different: declaration 'slen' definition 'old_prefix_len'. tar-1.35+dfsg/src/incremen.c:405:36: note: Function 'rebase_directory' argument 3 names different: declaration 'slen' definition 'old_prefix_len'. tar-1.35+dfsg/src/incremen.c:406:17: style:inconclusive: Function 'rebase_directory' argument 4 names different: declaration 'repl' definition 'new_prefix'. [funcArgNamesDifferent] tar-1.35+dfsg/src/common.h:566:22: note: Function 'rebase_directory' argument 4 names different: declaration 'repl' definition 'new_prefix'. tar-1.35+dfsg/src/incremen.c:406:17: note: Function 'rebase_directory' argument 4 names different: declaration 'repl' definition 'new_prefix'. tar-1.35+dfsg/src/incremen.c:406:36: style:inconclusive: Function 'rebase_directory' argument 5 names different: declaration 'rlen' definition 'new_prefix_len'. [funcArgNamesDifferent] tar-1.35+dfsg/src/common.h:566:35: note: Function 'rebase_directory' argument 5 names different: declaration 'rlen' definition 'new_prefix_len'. tar-1.35+dfsg/src/incremen.c:406:36: note: Function 'rebase_directory' argument 5 names different: declaration 'rlen' definition 'new_prefix_len'. tar-1.35+dfsg/src/incremen.c:432:48: style:inconclusive: Function 'update_parent_directory' argument 1 names different: declaration 'st' definition 'parent'. [funcArgNamesDifferent] tar-1.35+dfsg/src/common.h:574:53: note: Function 'update_parent_directory' argument 1 names different: declaration 'st' definition 'parent'. tar-1.35+dfsg/src/incremen.c:432:48: note: Function 'update_parent_directory' argument 1 names different: declaration 'st' definition 'parent'. tar-1.35+dfsg/src/incremen.c:143:33: style: Parameter 'dump' can be declared as pointer to const [constParameterPointer] tar-1.35+dfsg/src/incremen.c:432:48: style: Parameter 'parent' can be declared as pointer to const [constParameterPointer] tar-1.35+dfsg/src/incremen.c:772:14: style: Variable 'full_name' can be declared as pointer to const [constVariablePointer] tar-1.35+dfsg/src/incremen.c:1236:13: style: Variable 'name' can be declared as pointer to const [constVariablePointer] tar-1.35+dfsg/src/incremen.c:1457:9: style: Variable 's' can be declared as pointer to const [constVariablePointer] tar-1.35+dfsg/src/incremen.c:1772:21: style: Parameter 'buffer' can be declared as pointer to const [constParameterPointer] tar-1.35+dfsg/lib/wordsplit.c:1987:3: style: Variable 'start' is assigned an expression that holds the same value. [redundantAssignment] tar-1.35+dfsg/lib/wordsplit.c:1979:12: note: i is assigned 'start' here. tar-1.35+dfsg/lib/wordsplit.c:1981:9: note: Assuming condition is false tar-1.35+dfsg/lib/wordsplit.c:1987:3: note: Variable 'start' is assigned an expression that holds the same value. tar-1.35+dfsg/lib/wordsplit.c:1377:21: style: Local variable 'ws' shadows outer variable [shadowVariable] tar-1.35+dfsg/lib/wordsplit.c:1143:20: note: Shadowed declaration tar-1.35+dfsg/lib/wordsplit.c:1377:21: note: Shadow variable tar-1.35+dfsg/lib/wordsplit.c:1378:8: style: Local variable 'rc' shadows outer variable [shadowVariable] tar-1.35+dfsg/lib/wordsplit.c:1142:7: note: Shadowed declaration tar-1.35+dfsg/lib/wordsplit.c:1378:8: note: Shadow variable tar-1.35+dfsg/lib/wordsplit.c:1607:8: style: Local variable 'rc' shadows outer variable [shadowVariable] tar-1.35+dfsg/lib/wordsplit.c:1535:7: note: Shadowed declaration tar-1.35+dfsg/lib/wordsplit.c:1607:8: note: Shadow variable tar-1.35+dfsg/lib/wordsplit.c:1726:11: style: Local variable 'p' shadows outer variable [shadowVariable] tar-1.35+dfsg/lib/wordsplit.c:1699:26: note: Shadowed declaration tar-1.35+dfsg/lib/wordsplit.c:1726:11: note: Shadow variable tar-1.35+dfsg/lib/wordsplit.c:116:36: style: Parameter 'wsp' can be declared as pointer to const [constParameterPointer] tar-1.35+dfsg/lib/wordsplit.c:398:31: style: Parameter 'wsp' can be declared as pointer to const [constParameterPointer] tar-1.35+dfsg/lib/wordsplit.c:1029:11: style: Parameter 'value' can be declared as pointer to const [constParameterPointer] tar-1.35+dfsg/lib/wordsplit.c:1715:19: style: Variable 'pw' can be declared as pointer to const [constVariablePointer] tar-1.35+dfsg/lib/wordsplit.c:2324:32: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] tar-1.35+dfsg/lib/wordsplit.c:2324:53: style: Parameter 'wsp' can be declared as pointer to const [constParameterPointer] tar-1.35+dfsg/src/misc.c:341:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DIRECTORY_SEPARATOR [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/misc.c:414:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/misc.c:510:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/misc.c:622:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/misc.c:657:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/misc.c:744:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/misc.c:793:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/misc.c:836:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/misc.c:875:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tv_nsec [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/misc.c:940:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AT_FDCWD [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/misc.c:989:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_NOFOLLOW [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/misc.c:1183:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/misc.c:1257:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DIRECTORY_SEPARATOR [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/misc.c:1281:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DIRECTORY_SEPARATOR [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/misc.c:1313:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_DIRECTORY [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/create.c:1578:7: warning: Return value of function strerror() is not used. [ignoredReturnValue] tar-1.35+dfsg/src/create.c:1579:7: warning: Return value of function gettext() is not used. [ignoredReturnValue] tar-1.35+dfsg/src/create.c:230:28: style: Condition 'maxval+1' is always true [knownConditionTrueFalse] tar-1.35+dfsg/src/create.c:59:3: warning: If memory allocation fails, then there is a possible null pointer dereference: tag [nullPointerOutOfMemory] tar-1.35+dfsg/src/create.c:58:39: note: Assuming allocation function fails tar-1.35+dfsg/src/create.c:58:39: note: Assignment 'tag=xmalloc(sizeof(tag[0]))', assigned value is 0 tar-1.35+dfsg/src/create.c:59:3: note: Null pointer dereference tar-1.35+dfsg/src/create.c:60:3: warning: If memory allocation fails, then there is a possible null pointer dereference: tag [nullPointerOutOfMemory] tar-1.35+dfsg/src/create.c:58:39: note: Assuming allocation function fails tar-1.35+dfsg/src/create.c:58:39: note: Assignment 'tag=xmalloc(sizeof(tag[0]))', assigned value is 0 tar-1.35+dfsg/src/create.c:60:3: note: Null pointer dereference tar-1.35+dfsg/src/create.c:61:3: warning: If memory allocation fails, then there is a possible null pointer dereference: tag [nullPointerOutOfMemory] tar-1.35+dfsg/src/create.c:58:39: note: Assuming allocation function fails tar-1.35+dfsg/src/create.c:58:39: note: Assignment 'tag=xmalloc(sizeof(tag[0]))', assigned value is 0 tar-1.35+dfsg/src/create.c:61:3: note: Null pointer dereference tar-1.35+dfsg/src/create.c:62:3: warning: If memory allocation fails, then there is a possible null pointer dereference: tag [nullPointerOutOfMemory] tar-1.35+dfsg/src/create.c:58:39: note: Assuming allocation function fails tar-1.35+dfsg/src/create.c:58:39: note: Assignment 'tag=xmalloc(sizeof(tag[0]))', assigned value is 0 tar-1.35+dfsg/src/create.c:62:3: note: Null pointer dereference tar-1.35+dfsg/src/create.c:63:3: warning: If memory allocation fails, then there is a possible null pointer dereference: tag [nullPointerOutOfMemory] tar-1.35+dfsg/src/create.c:58:39: note: Assuming allocation function fails tar-1.35+dfsg/src/create.c:58:39: note: Assignment 'tag=xmalloc(sizeof(tag[0]))', assigned value is 0 tar-1.35+dfsg/src/create.c:63:3: note: Null pointer dereference tar-1.35+dfsg/src/create.c:1214:37: warning: If memory allocation fails, then there is a possible null pointer dereference: name_buf [nullPointerOutOfMemory] tar-1.35+dfsg/src/create.c:1213:25: note: Assuming allocation function fails tar-1.35+dfsg/src/create.c:1213:25: note: Assignment 'name_buf=xstrdup(st->orig_file_name)', assigned value is 0 tar-1.35+dfsg/src/create.c:1214:37: note: Null pointer dereference tar-1.35+dfsg/src/create.c:1239:12: warning: If memory allocation fails, then there is a possible null pointer dereference: name_buf [nullPointerOutOfMemory] tar-1.35+dfsg/src/create.c:1238:23: note: Assuming allocation function fails tar-1.35+dfsg/src/create.c:1238:23: note: Assignment 'name_buf=xmalloc(name_size)', assigned value is 0 tar-1.35+dfsg/src/create.c:1239:12: note: Null pointer dereference tar-1.35+dfsg/src/create.c:1240:12: warning: If memory allocation fails, then there is a possible null pointer dereference: name_buf [nullPointerOutOfMemory] tar-1.35+dfsg/src/create.c:1238:23: note: Assuming allocation function fails tar-1.35+dfsg/src/create.c:1238:23: note: Assignment 'name_buf=xmalloc(name_size)', assigned value is 0 tar-1.35+dfsg/src/create.c:1240:12: note: Null pointer dereference tar-1.35+dfsg/src/create.c:1523:7: warning: If memory allocation fails, then there is a possible null pointer dereference: lp [nullPointerOutOfMemory] tar-1.35+dfsg/src/create.c:1522:20: note: Assuming allocation function fails tar-1.35+dfsg/src/create.c:1522:20: note: Assignment 'lp=xmalloc(FLEXNSIZEOF(struct link,name,strlen(linkname)+1))', assigned value is 0 tar-1.35+dfsg/src/create.c:1523:7: note: Null pointer dereference tar-1.35+dfsg/src/create.c:1524:7: warning: If memory allocation fails, then there is a possible null pointer dereference: lp [nullPointerOutOfMemory] tar-1.35+dfsg/src/create.c:1522:20: note: Assuming allocation function fails tar-1.35+dfsg/src/create.c:1522:20: note: Assignment 'lp=xmalloc(FLEXNSIZEOF(struct link,name,strlen(linkname)+1))', assigned value is 0 tar-1.35+dfsg/src/create.c:1524:7: note: Null pointer dereference tar-1.35+dfsg/src/create.c:1525:7: warning: If memory allocation fails, then there is a possible null pointer dereference: lp [nullPointerOutOfMemory] tar-1.35+dfsg/src/create.c:1522:20: note: Assuming allocation function fails tar-1.35+dfsg/src/create.c:1522:20: note: Assignment 'lp=xmalloc(FLEXNSIZEOF(struct link,name,strlen(linkname)+1))', assigned value is 0 tar-1.35+dfsg/src/create.c:1525:7: note: Null pointer dereference tar-1.35+dfsg/src/create.c:1526:15: warning: If memory allocation fails, then there is a possible null pointer dereference: lp [nullPointerOutOfMemory] tar-1.35+dfsg/src/create.c:1522:20: note: Assuming allocation function fails tar-1.35+dfsg/src/create.c:1522:20: note: Assignment 'lp=xmalloc(FLEXNSIZEOF(struct link,name,strlen(linkname)+1))', assigned value is 0 tar-1.35+dfsg/src/create.c:1526:15: note: Null pointer dereference tar-1.35+dfsg/src/names.c:210:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PAXEXIT_FAILURE [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/names.c:308:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXCLUDE_WILDCARDS [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/names.c:977:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/names.c:999:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WRDSF_DEFFLAGS [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/names.c:1022:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/names.c:1127:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALLTHROUGH [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/names.c:1159:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXCLUDE_WILDCARDS [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/names.c:1468:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PAXEXIT_DIFFERS [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/names.c:1657:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/names.c:1782:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXCLUDE_WILDCARDS [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/create.c:1584:5: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] tar-1.35+dfsg/src/create.c:420:21: style:inconclusive: Function 'off_to_chars' argument 1 names different: declaration 'off' definition 'v'. [funcArgNamesDifferent] tar-1.35+dfsg/src/common.h:534:26: note: Function 'off_to_chars' argument 1 names different: declaration 'off' definition 'v'. tar-1.35+dfsg/src/create.c:420:21: note: Function 'off_to_chars' argument 1 names different: declaration 'off' definition 'v'. tar-1.35+dfsg/src/create.c:420:30: style:inconclusive: Function 'off_to_chars' argument 2 names different: declaration 'buf' definition 'p'. [funcArgNamesDifferent] tar-1.35+dfsg/src/common.h:534:37: note: Function 'off_to_chars' argument 2 names different: declaration 'buf' definition 'p'. tar-1.35+dfsg/src/create.c:420:30: note: Function 'off_to_chars' argument 2 names different: declaration 'buf' definition 'p'. tar-1.35+dfsg/src/create.c:420:40: style:inconclusive: Function 'off_to_chars' argument 3 names different: declaration 'size' definition 's'. [funcArgNamesDifferent] tar-1.35+dfsg/src/common.h:534:49: note: Function 'off_to_chars' argument 3 names different: declaration 'size' definition 's'. tar-1.35+dfsg/src/create.c:420:40: note: Function 'off_to_chars' argument 3 names different: declaration 'size' definition 's'. tar-1.35+dfsg/src/create.c:426:23: style:inconclusive: Function 'time_to_chars' argument 1 names different: declaration 't' definition 'v'. [funcArgNamesDifferent] tar-1.35+dfsg/src/common.h:535:28: note: Function 'time_to_chars' argument 1 names different: declaration 't' definition 'v'. tar-1.35+dfsg/src/create.c:426:23: note: Function 'time_to_chars' argument 1 names different: declaration 't' definition 'v'. tar-1.35+dfsg/src/create.c:426:32: style:inconclusive: Function 'time_to_chars' argument 2 names different: declaration 'buf' definition 'p'. [funcArgNamesDifferent] tar-1.35+dfsg/src/common.h:535:37: note: Function 'time_to_chars' argument 2 names different: declaration 'buf' definition 'p'. tar-1.35+dfsg/src/create.c:426:32: note: Function 'time_to_chars' argument 2 names different: declaration 'buf' definition 'p'. tar-1.35+dfsg/src/create.c:426:42: style:inconclusive: Function 'time_to_chars' argument 3 names different: declaration 'size' definition 's'. [funcArgNamesDifferent] tar-1.35+dfsg/src/common.h:535:49: note: Function 'time_to_chars' argument 3 names different: declaration 'size' definition 's'. tar-1.35+dfsg/src/create.c:426:42: note: Function 'time_to_chars' argument 3 names different: declaration 'size' definition 's'. tar-1.35+dfsg/src/create.c:403:25: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] tar-1.35+dfsg/src/create.c:404:20: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] tar-1.35+dfsg/src/create.c:405:20: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] tar-1.35+dfsg/src/create.c:406:20: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] tar-1.35+dfsg/src/create.c:407:20: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] tar-1.35+dfsg/src/create.c:408:20: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] tar-1.35+dfsg/src/create.c:409:20: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] tar-1.35+dfsg/src/create.c:410:20: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] tar-1.35+dfsg/src/create.c:411:20: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] tar-1.35+dfsg/src/create.c:412:20: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] tar-1.35+dfsg/src/create.c:413:20: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] tar-1.35+dfsg/src/create.c:414:20: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] tar-1.35+dfsg/src/create.c:530:41: style: Parameter 'st' can be declared as pointer to const [constParameterPointer] tar-1.35+dfsg/src/create.c:978:9: style: Variable 'p' can be declared as pointer to const [constVariablePointer] tar-1.35+dfsg/src/sparse.c:70:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/sparse.c:228:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SAFE_READ_ERROR [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/sparse.c:306:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/sparse.c:362:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALLTHROUGH [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/sparse.c:419:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SAFE_READ_ERROR [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/sparse.c:631:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SAFE_READ_ERROR [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/sparse.c:689:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SAFE_READ_ERROR [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/sparse.c:1257:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/map.c:192:23: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] tar-1.35+dfsg/src/map.c:242:22: portability: Non reentrant function 'getgrnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrnam_r'. [prohibitedgetgrnamCalled] tar-1.35+dfsg/src/map.c:94:40: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] tar-1.35+dfsg/src/map.c:86:14: note: Assuming allocation function fails tar-1.35+dfsg/src/map.c:86:14: note: Assignment 'fp=fopen(file,"r")', assigned value is 0 tar-1.35+dfsg/src/map.c:94:40: note: Null pointer dereference tar-1.35+dfsg/src/map.c:169:7: warning: If memory allocation fails, then there is a possible null pointer dereference: ent [nullPointerOutOfMemory] tar-1.35+dfsg/src/map.c:168:21: note: Assuming allocation function fails tar-1.35+dfsg/src/map.c:168:21: note: Assignment 'ent=xmalloc(sizeof(*ent))', assigned value is 0 tar-1.35+dfsg/src/map.c:169:7: note: Null pointer dereference tar-1.35+dfsg/src/map.c:170:7: warning: If memory allocation fails, then there is a possible null pointer dereference: ent [nullPointerOutOfMemory] tar-1.35+dfsg/src/map.c:168:21: note: Assuming allocation function fails tar-1.35+dfsg/src/map.c:168:21: note: Assignment 'ent=xmalloc(sizeof(*ent))', assigned value is 0 tar-1.35+dfsg/src/map.c:170:7: note: Null pointer dereference tar-1.35+dfsg/src/map.c:171:7: warning: If memory allocation fails, then there is a possible null pointer dereference: ent [nullPointerOutOfMemory] tar-1.35+dfsg/src/map.c:168:21: note: Assuming allocation function fails tar-1.35+dfsg/src/map.c:168:21: note: Assignment 'ent=xmalloc(sizeof(*ent))', assigned value is 0 tar-1.35+dfsg/src/map.c:171:7: note: Null pointer dereference tar-1.35+dfsg/src/map.c:197:29: style:inconclusive: Function 'owner_map_read' argument 1 names different: declaration 'name' definition 'file'. [funcArgNamesDifferent] tar-1.35+dfsg/src/common.h:1033:34: note: Function 'owner_map_read' argument 1 names different: declaration 'name' definition 'file'. tar-1.35+dfsg/src/map.c:197:29: note: Function 'owner_map_read' argument 1 names different: declaration 'name' definition 'file'. tar-1.35+dfsg/src/map.c:98:13: style: Variable 'name' can be declared as pointer to const [constVariablePointer] tar-1.35+dfsg/src/map.c:209:29: style: Variable 'res' can be declared as pointer to const [constVariablePointer] tar-1.35+dfsg/src/map.c:259:29: style: Variable 'res' can be declared as pointer to const [constVariablePointer] tar-1.35+dfsg/src/map.c:169:22: error: Uninitialized variable: orig_id [legacyUninitvar] tar-1.35+dfsg/src/suffix.c:115:15: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] tar-1.35+dfsg/src/suffix.c:114:19: note: Assuming allocation function fails tar-1.35+dfsg/src/suffix.c:114:19: note: Assignment 's=xmalloc(len+1)', assigned value is 0 tar-1.35+dfsg/src/suffix.c:115:15: note: Null pointer dereference tar-1.35+dfsg/src/suffix.c:116:7: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] tar-1.35+dfsg/src/suffix.c:114:19: note: Assuming allocation function fails tar-1.35+dfsg/src/suffix.c:114:19: note: Assignment 's=xmalloc(len+1)', assigned value is 0 tar-1.35+dfsg/src/suffix.c:116:7: note: Null pointer dereference tar-1.35+dfsg/src/suffix.c:58:9: style: Variable 'suf' can be declared as pointer to const [constVariablePointer] tar-1.35+dfsg/src/misc.c:77:15: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] tar-1.35+dfsg/src/misc.c:76:25: note: Assuming allocation function fails tar-1.35+dfsg/src/misc.c:76:25: note: Assignment 'p=xmalloc(l+1)', assigned value is 0 tar-1.35+dfsg/src/misc.c:77:15: note: Null pointer dereference tar-1.35+dfsg/src/misc.c:78:7: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] tar-1.35+dfsg/src/misc.c:76:25: note: Assuming allocation function fails tar-1.35+dfsg/src/misc.c:76:25: note: Assignment 'p=xmalloc(l+1)', assigned value is 0 tar-1.35+dfsg/src/misc.c:78:7: note: Null pointer dereference tar-1.35+dfsg/src/misc.c:340:15: warning: If memory allocation fails, then there is a possible null pointer dereference: copy [nullPointerOutOfMemory] tar-1.35+dfsg/src/misc.c:339:22: note: Assuming allocation function fails tar-1.35+dfsg/src/misc.c:339:22: note: Assignment 'copy=xmalloc(copylen+need_separator+strlen(name)+1)', assigned value is 0 tar-1.35+dfsg/src/misc.c:340:15: note: Null pointer dereference tar-1.35+dfsg/src/misc.c:341:7: warning: If memory allocation fails, then there is a possible null pointer dereference: copy [nullPointerOutOfMemory] tar-1.35+dfsg/src/misc.c:339:22: note: Assuming allocation function fails tar-1.35+dfsg/src/misc.c:339:22: note: Assignment 'copy=xmalloc(copylen+need_separator+strlen(name)+1)', assigned value is 0 tar-1.35+dfsg/src/misc.c:341:7: note: Null pointer dereference tar-1.35+dfsg/src/misc.c:1252:3: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] tar-1.35+dfsg/src/misc.c:1251:27: note: Assuming allocation function fails tar-1.35+dfsg/src/misc.c:1251:27: note: Assignment 'buf=xmalloc(sizeof(*buf))', assigned value is 0 tar-1.35+dfsg/src/misc.c:1252:3: note: Null pointer dereference tar-1.35+dfsg/src/misc.c:1253:3: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] tar-1.35+dfsg/src/misc.c:1251:27: note: Assuming allocation function fails tar-1.35+dfsg/src/misc.c:1251:27: note: Assignment 'buf=xmalloc(sizeof(*buf))', assigned value is 0 tar-1.35+dfsg/src/misc.c:1253:3: note: Null pointer dereference tar-1.35+dfsg/src/misc.c:1253:26: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] tar-1.35+dfsg/src/misc.c:1251:27: note: Assuming allocation function fails tar-1.35+dfsg/src/misc.c:1251:27: note: Assignment 'buf=xmalloc(sizeof(*buf))', assigned value is 0 tar-1.35+dfsg/src/misc.c:1253:26: note: Null pointer dereference tar-1.35+dfsg/src/misc.c:1254:11: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] tar-1.35+dfsg/src/misc.c:1251:27: note: Assuming allocation function fails tar-1.35+dfsg/src/misc.c:1251:27: note: Assignment 'buf=xmalloc(sizeof(*buf))', assigned value is 0 tar-1.35+dfsg/src/misc.c:1254:11: note: Null pointer dereference tar-1.35+dfsg/src/misc.c:1255:3: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] tar-1.35+dfsg/src/misc.c:1251:27: note: Assuming allocation function fails tar-1.35+dfsg/src/misc.c:1251:27: note: Assignment 'buf=xmalloc(sizeof(*buf))', assigned value is 0 tar-1.35+dfsg/src/misc.c:1255:3: note: Null pointer dereference tar-1.35+dfsg/src/misc.c:1255:29: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] tar-1.35+dfsg/src/misc.c:1251:27: note: Assuming allocation function fails tar-1.35+dfsg/src/misc.c:1251:27: note: Assignment 'buf=xmalloc(sizeof(*buf))', assigned value is 0 tar-1.35+dfsg/src/misc.c:1255:29: note: Null pointer dereference tar-1.35+dfsg/src/misc.c:1256:17: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] tar-1.35+dfsg/src/misc.c:1251:27: note: Assuming allocation function fails tar-1.35+dfsg/src/misc.c:1251:27: note: Assignment 'buf=xmalloc(sizeof(*buf))', assigned value is 0 tar-1.35+dfsg/src/misc.c:1256:17: note: Null pointer dereference tar-1.35+dfsg/src/misc.c:1256:29: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] tar-1.35+dfsg/src/misc.c:1251:27: note: Assuming allocation function fails tar-1.35+dfsg/src/misc.c:1251:27: note: Assignment 'buf=xmalloc(sizeof(*buf))', assigned value is 0 tar-1.35+dfsg/src/misc.c:1256:29: note: Null pointer dereference tar-1.35+dfsg/src/misc.c:281:26: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] tar-1.35+dfsg/src/misc.c:346:20: note: Assuming allocation function fails tar-1.35+dfsg/src/misc.c:346:20: note: Assignment 'copy=xstrdup(name)', assigned value is 0 tar-1.35+dfsg/src/misc.c:347:25: note: Calling function 'normalize_filename_x', 1st argument 'copy' value is 0 tar-1.35+dfsg/src/misc.c:281:26: note: Null pointer addition tar-1.35+dfsg/src/misc.c:342:20: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] tar-1.35+dfsg/src/misc.c:339:22: note: Assuming allocation function fails tar-1.35+dfsg/src/misc.c:339:22: note: Assignment 'copy=xmalloc(copylen+need_separator+strlen(name)+1)', assigned value is 0 tar-1.35+dfsg/src/misc.c:342:20: note: Null pointer addition tar-1.35+dfsg/src/misc.c:1221:17: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] tar-1.35+dfsg/src/misc.c:1235:18: note: Assuming allocation function fails tar-1.35+dfsg/src/misc.c:1235:18: note: Assignment '*ptr=xmalloc(size1)', assigned value is 0 tar-1.35+dfsg/src/misc.c:1236:21: note: Calling function 'ptr_align', 1st argument '*ptr' value is 0 tar-1.35+dfsg/src/misc.c:1220:14: note: Assignment 'p0=ptr', assigned value is 0 tar-1.35+dfsg/src/misc.c:1221:17: note: Null pointer addition tar-1.35+dfsg/src/system.c:210:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/system.c:246:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/system.c:290:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/system.c:316:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/system.c:331:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/system.c:354:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/system.c:495:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WRDSF_DEFFLAGS [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/system.c:549:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_DFL [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/system.c:700:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_VERSION [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/system.c:753:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/system.c:782:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/system.c:816:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/system.c:896:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/misc.c:293:7: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] tar-1.35+dfsg/src/misc.c:951:4: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] tar-1.35+dfsg/src/misc.c:154:23: style:inconclusive: Function 'unquote_string' argument 1 names different: declaration 'str' definition 'string'. [funcArgNamesDifferent] tar-1.35+dfsg/src/common.h:645:27: note: Function 'unquote_string' argument 1 names different: declaration 'str' definition 'string'. tar-1.35+dfsg/src/misc.c:154:23: note: Function 'unquote_string' argument 1 names different: declaration 'str' definition 'string'. tar-1.35+dfsg/src/misc.c:279:29: style:inconclusive: Function 'normalize_filename_x' argument 1 names different: declaration 'name' definition 'file_name'. [funcArgNamesDifferent] tar-1.35+dfsg/src/common.h:648:34: note: Function 'normalize_filename_x' argument 1 names different: declaration 'name' definition 'file_name'. tar-1.35+dfsg/src/misc.c:279:29: note: Function 'normalize_filename_x' argument 1 names different: declaration 'name' definition 'file_name'. tar-1.35+dfsg/src/misc.c:476:32: style:inconclusive: Function 'code_timespec' argument 1 names different: declaration 'ts' definition 't'. [funcArgNamesDifferent] tar-1.35+dfsg/src/common.h:689:44: note: Function 'code_timespec' argument 1 names different: declaration 'ts' definition 't'. tar-1.35+dfsg/src/misc.c:476:32: note: Function 'code_timespec' argument 1 names different: declaration 'ts' definition 't'. tar-1.35+dfsg/src/misc.c:977:15: style:inconclusive: Function 'chdir_do' argument 1 names different: declaration 'dir' definition 'i'. [funcArgNamesDifferent] tar-1.35+dfsg/src/common.h:728:20: note: Function 'chdir_do' argument 1 names different: declaration 'dir' definition 'i'. tar-1.35+dfsg/src/misc.c:977:15: note: Function 'chdir_do' argument 1 names different: declaration 'dir' definition 'i'. tar-1.35+dfsg/src/misc.c:1281:15: style: Variable 'dirsep' can be declared as const array [constVariable] tar-1.35+dfsg/src/tar.c:849:15: error: There is an unknown macro here somewhere. Configuration is required. If ATTRIBUTE_FORMAT is a macro then please configure it. [unknownMacro] tar-1.35+dfsg/src/system.c:49:7: style: The statement 'if (mtioseekable_archive) mtioseekable_archive=false' is logically equivalent to 'mtioseekable_archive=false'. [duplicateConditionalAssign] tar-1.35+dfsg/src/system.c:65:28: note: Assignment 'mtioseekable_archive=false' tar-1.35+dfsg/src/system.c:49:7: note: Condition 'mtioseekable_archive' is redundant tar-1.35+dfsg/src/system.c:832:34: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] tar-1.35+dfsg/src/system.c:831:19: note: Assuming allocation function fails tar-1.35+dfsg/src/system.c:831:19: note: Assignment 'fp=fdopen(p[0],"r")', assigned value is 0 tar-1.35+dfsg/src/system.c:832:34: note: Null pointer dereference tar-1.35+dfsg/src/system.c:833:15: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] tar-1.35+dfsg/src/system.c:831:19: note: Assuming allocation function fails tar-1.35+dfsg/src/system.c:831:19: note: Assignment 'fp=fdopen(p[0],"r")', assigned value is 0 tar-1.35+dfsg/src/system.c:833:15: note: Null pointer dereference tar-1.35+dfsg/src/system.c:255:31: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] tar-1.35+dfsg/src/system.c:255:47: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] tar-1.35+dfsg/src/system.c:261:31: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] tar-1.35+dfsg/src/system.c:261:47: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] tar-1.35+dfsg/src/system.c:267:33: style: Parameter 'link_data' can be declared as pointer to const [constParameterPointer] tar-1.35+dfsg/src/system.c:267:57: style: Parameter 'stat_data' can be declared as pointer to const [constParameterPointer] tar-1.35+dfsg/src/system.c:650:9: style: Variable 'numstr' can be declared as pointer to const [constVariablePointer] tar-1.35+dfsg/src/system.c:698:20: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] tar-1.35+dfsg/src/transform.c:241:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_ICASE [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/transform.c:494:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rm_eo [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/unlink.c:120:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AT_REMOVEDIR [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/names.c:486:16: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] tar-1.35+dfsg/src/names.c:516:15: portability: Non reentrant function 'getgrgid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrgid_r'. [prohibitedgetgrgidCalled] tar-1.35+dfsg/src/names.c:546:16: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] tar-1.35+dfsg/src/names.c:576:15: portability: Non reentrant function 'getgrnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrnam_r'. [prohibitedgetgrnamCalled] tar-1.35+dfsg/src/names.c:686:3: warning: If memory allocation fails, then there is a possible null pointer dereference: elt [nullPointerOutOfMemory] tar-1.35+dfsg/src/names.c:683:21: note: Assuming allocation function fails tar-1.35+dfsg/src/names.c:683:21: note: Assignment 'elt=xmalloc(sizeof(*elt))', assigned value is 0 tar-1.35+dfsg/src/names.c:686:3: note: Null pointer dereference tar-1.35+dfsg/src/names.c:689:3: warning: If memory allocation fails, then there is a possible null pointer dereference: elt [nullPointerOutOfMemory] tar-1.35+dfsg/src/names.c:683:21: note: Assuming allocation function fails tar-1.35+dfsg/src/names.c:683:21: note: Assignment 'elt=xmalloc(sizeof(*elt))', assigned value is 0 tar-1.35+dfsg/src/names.c:689:3: note: Null pointer dereference tar-1.35+dfsg/src/names.c:927:3: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] tar-1.35+dfsg/src/names.c:926:15: note: Assuming allocation function fails tar-1.35+dfsg/src/names.c:926:15: note: Assignment 'p=xmalloc(sizeof(*p))', assigned value is 0 tar-1.35+dfsg/src/names.c:927:3: note: Null pointer dereference tar-1.35+dfsg/src/names.c:928:3: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] tar-1.35+dfsg/src/names.c:926:15: note: Assuming allocation function fails tar-1.35+dfsg/src/names.c:926:15: note: Assignment 'p=xmalloc(sizeof(*p))', assigned value is 0 tar-1.35+dfsg/src/names.c:928:3: note: Null pointer dereference tar-1.35+dfsg/src/names.c:929:3: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] tar-1.35+dfsg/src/names.c:926:15: note: Assuming allocation function fails tar-1.35+dfsg/src/names.c:926:15: note: Assignment 'p=xmalloc(sizeof(*p))', assigned value is 0 tar-1.35+dfsg/src/names.c:929:3: note: Null pointer dereference tar-1.35+dfsg/src/names.c:930:3: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] tar-1.35+dfsg/src/names.c:926:15: note: Assuming allocation function fails tar-1.35+dfsg/src/names.c:926:15: note: Assignment 'p=xmalloc(sizeof(*p))', assigned value is 0 tar-1.35+dfsg/src/names.c:930:3: note: Null pointer dereference tar-1.35+dfsg/src/names.c:1624:15: warning: If memory allocation fails, then there is a possible null pointer dereference: namebuf [nullPointerOutOfMemory] tar-1.35+dfsg/src/names.c:1619:31: note: Assuming allocation function fails tar-1.35+dfsg/src/names.c:1619:31: note: Assignment 'namebuf=xmalloc(allocated_length)', assigned value is 0 tar-1.35+dfsg/src/names.c:1624:15: note: Null pointer dereference tar-1.35+dfsg/src/names.c:1625:22: warning: If memory allocation fails, then there is a possible null pointer dereference: namebuf [nullPointerOutOfMemory] tar-1.35+dfsg/src/names.c:1619:31: note: Assuming allocation function fails tar-1.35+dfsg/src/names.c:1619:31: note: Assignment 'namebuf=xmalloc(allocated_length)', assigned value is 0 tar-1.35+dfsg/src/names.c:1625:22: note: Null pointer dereference tar-1.35+dfsg/src/names.c:1723:15: warning: If memory allocation fails, then there is a possible null pointer dereference: newp [nullPointerOutOfMemory] tar-1.35+dfsg/src/names.c:1722:28: note: Assuming allocation function fails tar-1.35+dfsg/src/names.c:1722:28: note: Assignment 'newp=xmalloc(size+1)', assigned value is 0 tar-1.35+dfsg/src/names.c:1723:15: note: Null pointer dereference tar-1.35+dfsg/src/names.c:1724:15: warning: If memory allocation fails, then there is a possible null pointer dereference: newp [nullPointerOutOfMemory] tar-1.35+dfsg/src/names.c:1722:28: note: Assuming allocation function fails tar-1.35+dfsg/src/names.c:1722:28: note: Assignment 'newp=xmalloc(size+1)', assigned value is 0 tar-1.35+dfsg/src/names.c:1724:15: note: Null pointer dereference tar-1.35+dfsg/src/names.c:1956:11: warning: If memory allocation fails, then there is a possible null pointer dereference: buffer [nullPointerOutOfMemory] tar-1.35+dfsg/src/names.c:1955:26: note: Assuming allocation function fails tar-1.35+dfsg/src/names.c:1955:26: note: Assignment 'buffer=xmalloc(dirlen+slash+namelen)', assigned value is 0 tar-1.35+dfsg/src/names.c:1956:11: note: Null pointer dereference tar-1.35+dfsg/src/names.c:1957:3: warning: If memory allocation fails, then there is a possible null pointer dereference: buffer [nullPointerOutOfMemory] tar-1.35+dfsg/src/names.c:1955:26: note: Assuming allocation function fails tar-1.35+dfsg/src/names.c:1955:26: note: Assignment 'buffer=xmalloc(dirlen+slash+namelen)', assigned value is 0 tar-1.35+dfsg/src/names.c:1957:3: note: Null pointer dereference tar-1.35+dfsg/src/names.c:1958:18: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] tar-1.35+dfsg/src/names.c:1955:26: note: Assuming allocation function fails tar-1.35+dfsg/src/names.c:1955:26: note: Assignment 'buffer=xmalloc(dirlen+slash+namelen)', assigned value is 0 tar-1.35+dfsg/src/names.c:1958:18: note: Null pointer addition tar-1.35+dfsg/src/names.c:1537:5: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] tar-1.35+dfsg/src/names.c:534:41: style:inconclusive: Function 'uname_to_uid' argument 2 names different: declaration 'puid' definition 'uidp'. [funcArgNamesDifferent] tar-1.35+dfsg/src/common.h:773:45: note: Function 'uname_to_uid' argument 2 names different: declaration 'puid' definition 'uidp'. tar-1.35+dfsg/src/names.c:534:41: note: Function 'uname_to_uid' argument 2 names different: declaration 'puid' definition 'uidp'. tar-1.35+dfsg/src/names.c:564:41: style:inconclusive: Function 'gname_to_gid' argument 2 names different: declaration 'pgid' definition 'gidp'. [funcArgNamesDifferent] tar-1.35+dfsg/src/common.h:771:45: note: Function 'gname_to_gid' argument 2 names different: declaration 'pgid' definition 'gidp'. tar-1.35+dfsg/src/names.c:564:41: note: Function 'gname_to_gid' argument 2 names different: declaration 'pgid' definition 'gidp'. tar-1.35+dfsg/src/names.c:1319:25: style:inconclusive: Function 'name_match' argument 1 names different: declaration 'name' definition 'file_name'. [funcArgNamesDifferent] tar-1.35+dfsg/src/common.h:784:30: note: Function 'name_match' argument 1 names different: declaration 'name' definition 'file_name'. tar-1.35+dfsg/src/names.c:1319:25: note: Function 'name_match' argument 1 names different: declaration 'name' definition 'file_name'. tar-1.35+dfsg/src/names.c:1383:40: style:inconclusive: Function 'all_names_found' argument 1 names different: declaration 'st' definition 'p'. [funcArgNamesDifferent] tar-1.35+dfsg/src/common.h:793:45: note: Function 'all_names_found' argument 1 names different: declaration 'st' definition 'p'. tar-1.35+dfsg/src/names.c:1383:40: note: Function 'all_names_found' argument 1 names different: declaration 'st' definition 'p'. tar-1.35+dfsg/src/names.c:1888:24: style:inconclusive: Function 'name_scan' argument 1 names different: declaration 'name' definition 'file_name'. [funcArgNamesDifferent] tar-1.35+dfsg/src/common.h:788:37: note: Function 'name_scan' argument 1 names different: declaration 'name' definition 'file_name'. tar-1.35+dfsg/src/names.c:1888:24: note: Function 'name_scan' argument 1 names different: declaration 'name' definition 'file_name'. tar-1.35+dfsg/src/names.c:1950:29: style:inconclusive: Function 'make_file_name' argument 1 names different: declaration 'dir_name' definition 'directory_name'. [funcArgNamesDifferent] tar-1.35+dfsg/src/common.h:791:35: note: Function 'make_file_name' argument 1 names different: declaration 'dir_name' definition 'directory_name'. tar-1.35+dfsg/src/names.c:1950:29: note: Function 'make_file_name' argument 1 names different: declaration 'dir_name' definition 'directory_name'. tar-1.35+dfsg/src/names.c:187:33: style: Parameter 'arg' can be declared as pointer to const. However it seems that 'names_parse_opt' is a callback function, if 'arg' is declared with const you might also need to cast function pointer(s). [constParameterCallback] tar-1.35+dfsg/src/names.c:441:3: note: You might need to cast the function pointer here tar-1.35+dfsg/src/names.c:187:33: note: Parameter 'arg' can be declared as pointer to const tar-1.35+dfsg/src/names.c:187:57: style: Parameter 'state' can be declared as pointer to const. However it seems that 'names_parse_opt' is a callback function, if 'state' is declared with const you might also need to cast function pointer(s). [constParameterCallback] tar-1.35+dfsg/src/names.c:441:3: note: You might need to cast the function pointer here tar-1.35+dfsg/src/names.c:187:57: note: Parameter 'state' can be declared as pointer to const tar-1.35+dfsg/src/names.c:566:17: style: Variable 'group' can be declared as pointer to const [constVariablePointer] tar-1.35+dfsg/src/names.c:1179:20: style: Variable 'ep' can be declared as pointer to const [constVariablePointer] tar-1.35+dfsg/src/names.c:1717:9: style: Variable 'new_prefix' can be declared as pointer to const [constVariablePointer] tar-1.35+dfsg/src/sparse.c:301:40: error: Invalid lseek() argument nr 3. The value is 3 but the valid values are '0:2'. [invalidFunctionArg] tar-1.35+dfsg/src/sparse.c:317:45: error: Invalid lseek() argument nr 3. The value is 4 but the valid values are '0:2'. [invalidFunctionArg] tar-1.35+dfsg/src/update.c:52:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/update.c:194:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALLTHROUGH [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/sparse.c:1311:11: warning: Either the condition '!blk' is redundant or there is possible null pointer dereference: blk. [nullPointerRedundantCheck] tar-1.35+dfsg/src/sparse.c:1309:11: note: Assuming that condition '!blk' is not redundant tar-1.35+dfsg/src/sparse.c:1311:11: note: Null pointer dereference tar-1.35+dfsg/src/sparse.c:1312:7: warning: Either the condition '!blk' is redundant or there is possible null pointer dereference: blk. [nullPointerRedundantCheck] tar-1.35+dfsg/src/sparse.c:1309:11: note: Assuming that condition '!blk' is not redundant tar-1.35+dfsg/src/sparse.c:1312:7: note: Null pointer dereference tar-1.35+dfsg/src/sparse.c:1312:7: warning: Either the condition '!blk' is redundant or there is possible null pointer dereference: blk. [nullPointerRedundantCheck] tar-1.35+dfsg/src/sparse.c:1312:7: note: Assuming that condition '!blk' is not redundant tar-1.35+dfsg/src/sparse.c:1312:7: note: Null pointer dereference tar-1.35+dfsg/src/sparse.c:1327:4: warning: Either the condition '!blk' is redundant or there is possible null pointer dereference: blk. [nullPointerRedundantCheck] tar-1.35+dfsg/src/sparse.c:1327:4: note: Assuming that condition '!blk' is not redundant tar-1.35+dfsg/src/sparse.c:1327:4: note: Null pointer dereference tar-1.35+dfsg/src/sparse.c:1335:4: warning: Either the condition '!blk' is redundant or there is possible null pointer dereference: blk. [nullPointerRedundantCheck] tar-1.35+dfsg/src/sparse.c:1335:4: note: Assuming that condition '!blk' is not redundant tar-1.35+dfsg/src/sparse.c:1335:4: note: Null pointer dereference tar-1.35+dfsg/src/sparse.c:880:24: style: Variable 'blk' is reassigned a value before the old one has been used. [redundantAssignment] tar-1.35+dfsg/src/sparse.c:879:7: note: blk is assigned tar-1.35+dfsg/src/sparse.c:880:24: note: blk is overwritten tar-1.35+dfsg/src/sparse.c:782:62: style: Parameter 'file' can be declared as pointer to const. However it seems that 'oldgnu_sparse_member_p' is a callback function, if 'file' is declared with const you might also need to cast function pointer(s). [constParameterCallback] tar-1.35+dfsg/src/sparse.c:913:3: note: You might need to cast the function pointer here tar-1.35+dfsg/src/sparse.c:782:62: note: Parameter 'file' can be declared as pointer to const tar-1.35+dfsg/src/sparse.c:789:65: style: Parameter 's' can be declared as pointer to const [constParameterPointer] tar-1.35+dfsg/src/sparse.c:859:51: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] tar-1.35+dfsg/src/sparse.c:926:60: style: Parameter 'file' can be declared as pointer to const. However it seems that 'star_sparse_member_p' is a callback function, if 'file' is declared with const you might also need to cast function pointer(s). [constParameterCallback] tar-1.35+dfsg/src/sparse.c:995:3: note: You might need to cast the function pointer here tar-1.35+dfsg/src/sparse.c:926:60: note: Parameter 'file' can be declared as pointer to const tar-1.35+dfsg/src/sparse.c:1222:3: style: Variable 'endp' can be declared as pointer to const [constVariablePointer] tar-1.35+dfsg/src/sparse.c:1223:3: style: Variable 'endp' can be declared as pointer to const [constVariablePointer] tar-1.35+dfsg/src/sparse.c:1227:7: style: Variable 'endp' can be declared as pointer to const [constVariablePointer] tar-1.35+dfsg/src/sparse.c:1228:7: style: Variable 'endp' can be declared as pointer to const [constVariablePointer] tar-1.35+dfsg/src/sparse.c:1230:7: style: Variable 'endp' can be declared as pointer to const [constVariablePointer] tar-1.35+dfsg/src/sparse.c:1231:7: style: Variable 'endp' can be declared as pointer to const [constVariablePointer] tar-1.35+dfsg/src/sparse.c:1275:13: style: Variable 'p' can be declared as pointer to const [constVariablePointer] tar-1.35+dfsg/src/sparse.c:1312:7: style: Variable 'endp' can be declared as pointer to const [constVariablePointer] tar-1.35+dfsg/src/sparse.c:1327:4: style: Variable 'endp' can be declared as pointer to const [constVariablePointer] tar-1.35+dfsg/src/sparse.c:1335:4: style: Variable 'endp' can be declared as pointer to const [constVariablePointer] tar-1.35+dfsg/src/sparse.c:57:9: style: struct member 'tar_sparse_file::closure' is never used. [unusedStructMember] tar-1.35+dfsg/src/transform.c:92:3: warning: If memory allocation fails, then there is a possible null pointer dereference: segm [nullPointerOutOfMemory] tar-1.35+dfsg/src/transform.c:91:39: note: Assuming allocation function fails tar-1.35+dfsg/src/transform.c:91:39: note: Assignment 'segm=xmalloc(sizeof(*segm))', assigned value is 0 tar-1.35+dfsg/src/transform.c:92:3: note: Null pointer dereference tar-1.35+dfsg/src/transform.c:265:11: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] tar-1.35+dfsg/src/transform.c:264:17: note: Assuming allocation function fails tar-1.35+dfsg/src/transform.c:264:17: note: Assignment 'str=xmalloc(i-1)', assigned value is 0 tar-1.35+dfsg/src/transform.c:265:11: note: Null pointer dereference tar-1.35+dfsg/src/transform.c:266:3: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] tar-1.35+dfsg/src/transform.c:264:17: note: Assuming allocation function fails tar-1.35+dfsg/src/transform.c:264:17: note: Assignment 'str=xmalloc(i-1)', assigned value is 0 tar-1.35+dfsg/src/transform.c:266:3: note: Null pointer dereference tar-1.35+dfsg/src/transform.c:277:7: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] tar-1.35+dfsg/src/transform.c:264:17: note: Assuming allocation function fails tar-1.35+dfsg/src/transform.c:264:17: note: Assignment 'str=xmalloc(i-1)', assigned value is 0 tar-1.35+dfsg/src/transform.c:277:7: note: Null pointer dereference tar-1.35+dfsg/src/transform.c:277:34: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] tar-1.35+dfsg/src/transform.c:264:17: note: Assuming allocation function fails tar-1.35+dfsg/src/transform.c:264:17: note: Assignment 'str=xmalloc(i-1)', assigned value is 0 tar-1.35+dfsg/src/transform.c:277:34: note: Null pointer dereference tar-1.35+dfsg/src/transform.c:285:11: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] tar-1.35+dfsg/src/transform.c:284:17: note: Assuming allocation function fails tar-1.35+dfsg/src/transform.c:284:17: note: Assignment 'str=xmalloc(j-i+1)', assigned value is 0 tar-1.35+dfsg/src/transform.c:285:11: note: Null pointer dereference tar-1.35+dfsg/src/transform.c:286:3: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] tar-1.35+dfsg/src/transform.c:284:17: note: Assuming allocation function fails tar-1.35+dfsg/src/transform.c:284:17: note: Assignment 'str=xmalloc(j-i+1)', assigned value is 0 tar-1.35+dfsg/src/transform.c:286:3: note: Null pointer dereference tar-1.35+dfsg/src/transform.c:288:26: warning: If memory allocation fails, then there is a possible null pointer dereference: cur [nullPointerOutOfMemory] tar-1.35+dfsg/src/transform.c:284:17: note: Assuming allocation function fails tar-1.35+dfsg/src/transform.c:284:17: note: Assignment 'str=xmalloc(j-i+1)', assigned value is 0 tar-1.35+dfsg/src/transform.c:288:18: note: Assignment 'cur=beg=str', assigned value is 0 tar-1.35+dfsg/src/transform.c:288:26: note: Null pointer dereference tar-1.35+dfsg/src/transform.c:610:39: style:inconclusive: Function 'transform_name_fp' argument 2 names different: declaration 'type' definition 'flags'. [funcArgNamesDifferent] tar-1.35+dfsg/src/common.h:952:44: note: Function 'transform_name_fp' argument 2 names different: declaration 'type' definition 'flags'. tar-1.35+dfsg/src/transform.c:610:39: note: Function 'transform_name_fp' argument 2 names different: declaration 'type' definition 'flags'. tar-1.35+dfsg/src/transform.c:184:15: style: Variable 'beg' can be declared as pointer to const [constVariablePointer] tar-1.35+dfsg/src/transform.c:422:51: style: Parameter 'ptr' can be declared as pointer to const [constParameterPointer] tar-1.35+dfsg/src/utf8.c:84:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MB_LEN_MAX [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/utf8.c:110:29: style:inconclusive: Function 'string_ascii_p' argument 1 names different: declaration 'str' definition 'p'. [funcArgNamesDifferent] tar-1.35+dfsg/src/common.h:941:34: note: Function 'string_ascii_p' argument 1 names different: declaration 'str' definition 'p'. tar-1.35+dfsg/src/utf8.c:110:29: note: Function 'string_ascii_p' argument 1 names different: declaration 'str' definition 'p'. tar-1.35+dfsg/src/utf8.c:69:21: style: Variable 'ib' can be declared as pointer to const [constVariablePointer] tar-1.35+dfsg/src/utf8.c:86:6: style: Variable 'ib' is assigned a value that is never used. [unreadVariable] tar-1.35+dfsg/tests/checkseekhole.c:61:26: error: Invalid lseek() argument nr 3. The value is 3 but the valid values are '0:2'. [invalidFunctionArg] tar-1.35+dfsg/tests/checkseekhole.c:65:31: error: Invalid lseek() argument nr 3. The value is 4 but the valid values are '0:2'. [invalidFunctionArg] tar-1.35+dfsg/tests/ckmtime.c:65:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/tests/ckmtime.c:56:11: warning: Assert statement calls a function which may have desired side effects: 'fstat'. [assertWithSideEffect] tar-1.35+dfsg/tests/genfile.c:113:48: error: There is an unknown macro here somewhere. Configuration is required. If PACKAGE is a macro then please configure it. [unknownMacro] tar-1.35+dfsg/src/xattrs.c:77:22: warning: If memory allocation fails, then there is a possible null pointer dereference: key [nullPointerOutOfMemory] tar-1.35+dfsg/src/xattrs.c:88:24: note: Assuming allocation function fails tar-1.35+dfsg/src/xattrs.c:88:24: note: Assignment 'xkey=xmalloc((sizeof("SCHILY.xattr.")-1)+klen+1)', assigned value is 0 tar-1.35+dfsg/src/xattrs.c:94:34: note: Calling function 'xattr_map_add', 2nd argument 'xkey' value is 0 tar-1.35+dfsg/src/xattrs.c:77:22: note: Null pointer dereference tar-1.35+dfsg/src/xattrs.c:91:17: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] tar-1.35+dfsg/src/xattrs.c:88:24: note: Assuming allocation function fails tar-1.35+dfsg/src/xattrs.c:88:24: note: Assignment 'xkey=xmalloc((sizeof("SCHILY.xattr.")-1)+klen+1)', assigned value is 0 tar-1.35+dfsg/src/xattrs.c:89:13: note: tmp is assigned 'xkey' here. tar-1.35+dfsg/src/xattrs.c:91:17: note: Null pointer dereference tar-1.35+dfsg/src/xattrs.c:703:62: style: Parameter 'mm' can be declared as pointer to const [constParameterPointer] tar-1.35+dfsg/src/xattrs.c:810:15: style: Variable 'keyword' can be declared as pointer to const [constVariablePointer] tar-1.35+dfsg/src/xattrs.c:853:17: style: Variable 'keyword' can be declared as pointer to const [constVariablePointer] tar-1.35+dfsg/tests/argcv.c:360:7: error: Common realloc mistake: 'buffer' nulled but not freed upon failure [memleakOnRealloc] tar-1.35+dfsg/tests/argcv.c:41:9: style: Variable 'i' is assigned a value that is never used. [unreadVariable] tar-1.35+dfsg/src/xheader.c:785:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/xheader.c:1084:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UINTMAX_MAX [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/xheader.c:1095:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/xheader.c:1375:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/xheader.c:1455:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tar-1.35+dfsg/src/xheader.c:232:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] tar-1.35+dfsg/src/xheader.c:232:53: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] tar-1.35+dfsg/src/xheader.c:974:12: style: Condition 'size!=p' is always false [knownConditionTrueFalse] tar-1.35+dfsg/src/xheader.c:973:8: note: size is assigned 'p' here. tar-1.35+dfsg/src/xheader.c:974:12: note: Condition 'size!=p' is always false tar-1.35+dfsg/src/xheader.c:136:3: warning: If memory allocation fails, then there is a possible null pointer dereference: kp [nullPointerOutOfMemory] tar-1.35+dfsg/src/xheader.c:135:37: note: Assuming allocation function fails tar-1.35+dfsg/src/xheader.c:135:37: note: Assignment 'kp=xmalloc(sizeof(*kp))', assigned value is 0 tar-1.35+dfsg/src/xheader.c:136:3: note: Null pointer dereference tar-1.35+dfsg/src/xheader.c:137:3: warning: If memory allocation fails, then there is a possible null pointer dereference: kp [nullPointerOutOfMemory] tar-1.35+dfsg/src/xheader.c:135:37: note: Assuming allocation function fails tar-1.35+dfsg/src/xheader.c:135:37: note: Assignment 'kp=xmalloc(sizeof(*kp))', assigned value is 0 tar-1.35+dfsg/src/xheader.c:137:3: note: Null pointer dereference tar-1.35+dfsg/src/xheader.c:138:3: warning: If memory allocation fails, then there is a possible null pointer dereference: kp [nullPointerOutOfMemory] tar-1.35+dfsg/src/xheader.c:135:37: note: Assuming allocation function fails tar-1.35+dfsg/src/xheader.c:135:37: note: Assignment 'kp=xmalloc(sizeof(*kp))', assigned value is 0 tar-1.35+dfsg/src/xheader.c:138:3: note: Null pointer dereference tar-1.35+dfsg/src/xheader.c:271:18: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] tar-1.35+dfsg/src/xheader.c:408:33: note: Assuming allocation function fails tar-1.35+dfsg/src/xheader.c:408:33: note: Assignment 'globexthdr_name=xmalloc(len)', assigned value is 0 tar-1.35+dfsg/src/xheader.c:413:37: note: Calling function 'xheader_format_name', 2nd argument 'globexthdr_name' value is 0 tar-1.35+dfsg/src/xheader.c:271:12: note: Assignment 'p=fmt', assigned value is 0 tar-1.35+dfsg/src/xheader.c:271:18: note: Null pointer dereference tar-1.35+dfsg/src/xheader.c:409:14: warning: If memory allocation fails, then there is a possible null pointer dereference: globexthdr_name [nullPointerOutOfMemory] tar-1.35+dfsg/src/xheader.c:408:33: note: Assuming allocation function fails tar-1.35+dfsg/src/xheader.c:408:33: note: Assignment 'globexthdr_name=xmalloc(len)', assigned value is 0 tar-1.35+dfsg/src/xheader.c:409:14: note: Null pointer dereference tar-1.35+dfsg/src/xheader.c:410:14: warning: If memory allocation fails, then there is a possible null pointer dereference: globexthdr_name [nullPointerOutOfMemory] tar-1.35+dfsg/src/xheader.c:408:33: note: Assuming allocation function fails tar-1.35+dfsg/src/xheader.c:408:33: note: Assignment 'globexthdr_name=xmalloc(len)', assigned value is 0 tar-1.35+dfsg/src/xheader.c:410:14: note: Null pointer dereference tar-1.35+dfsg/src/xheader.c:505:12: warning: If memory allocation fails, then there is a possible null pointer dereference: kpr [nullPointerOutOfMemory] tar-1.35+dfsg/src/xheader.c:1656:18: note: Assuming allocation function fails tar-1.35+dfsg/src/xheader.c:1656:18: note: Assignment 'xkey=xstrdup(keyword)', assigned value is 0 tar-1.35+dfsg/src/xheader.c:1658:25: note: Calling function 'xattr_decode_keyword', 1st argument 'xkey' value is 0 tar-1.35+dfsg/src/xheader.c:501:0: note: Assignment 'kpr=keyword', assigned value is 0 tar-1.35+dfsg/src/xheader.c:505:12: note: Null pointer dereference tar-1.35+dfsg/src/xheader.c:803:33: warning: Either the condition '!p' is redundant or there is possible null pointer dereference: p. [nullPointerRedundantCheck] tar-1.35+dfsg/src/xheader.c:800:11: note: Assuming that condition '!p' is not redundant tar-1.35+dfsg/src/xheader.c:803:33: note: Null pointer dereference tar-1.35+dfsg/src/xheader.c:899:50: warning: If memory allocation fails, then there is a possible null pointer dereference: value [nullPointerOutOfMemory] tar-1.35+dfsg/src/xheader.c:1018:24: note: Assuming allocation function fails tar-1.35+dfsg/src/xheader.c:1018:24: note: Assignment 'outstr=xstrdup(string)', assigned value is 0 tar-1.35+dfsg/src/xheader.c:1020:33: note: Calling function 'xheader_print', 3rd argument 'outstr' value is 0 tar-1.35+dfsg/src/xheader.c:899:50: note: Null pointer dereference tar-1.35+dfsg/src/xheader.c:437:27: style: Variable 'header' is reassigned a value before the old one has been used. [redundantAssignment] tar-1.35+dfsg/src/xheader.c:436:10: note: header is assigned tar-1.35+dfsg/src/xheader.c:437:27: note: header is overwritten tar-1.35+dfsg/src/xheader.c:639:5: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] tar-1.35+dfsg/src/xheader.c:709:2: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] tar-1.35+dfsg/src/xheader.c:745:2: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] tar-1.35+dfsg/src/xheader.c:700:39: style:inconclusive: Function 'xheader_decode' argument 1 names different: declaration 'stat' definition 'st'. [funcArgNamesDifferent] tar-1.35+dfsg/src/common.h:875:44: note: Function 'xheader_decode' argument 1 names different: declaration 'stat' definition 'st'. tar-1.35+dfsg/src/xheader.c:700:39: note: Function 'xheader_decode' argument 1 names different: declaration 'stat' definition 'st'. tar-1.35+dfsg/src/xheader.c:778:50: style:inconclusive: Function 'xheader_read' argument 2 names different: declaration 'header' definition 'p'. [funcArgNamesDifferent] tar-1.35+dfsg/src/common.h:879:55: note: Function 'xheader_read' argument 2 names different: declaration 'header' definition 'p'. tar-1.35+dfsg/src/xheader.c:778:50: note: Function 'xheader_read' argument 2 names different: declaration 'header' definition 'p'. tar-1.35+dfsg/src/xheader.c:903:33: style:inconclusive: Function 'xheader_finish' argument 1 names different: declaration 'hdr' definition 'xhdr'. [funcArgNamesDifferent] tar-1.35+dfsg/src/common.h:883:38: note: Function 'xheader_finish' argument 1 names different: declaration 'hdr' definition 'xhdr'. tar-1.35+dfsg/src/xheader.c:903:33: note: Function 'xheader_finish' argument 1 names different: declaration 'hdr' definition 'xhdr'. tar-1.35+dfsg/src/xheader.c:914:34: style:inconclusive: Function 'xheader_destroy' argument 1 names different: declaration 'hdr' definition 'xhdr'. [funcArgNamesDifferent] tar-1.35+dfsg/src/common.h:884:39: note: Function 'xheader_destroy' argument 1 names different: declaration 'hdr' definition 'xhdr'. tar-1.35+dfsg/src/xheader.c:914:34: note: Function 'xheader_destroy' argument 1 names different: declaration 'hdr' definition 'xhdr'. tar-1.35+dfsg/src/xheader.c:263:9: style: Variable 'dir' can be declared as pointer to const [constVariablePointer] tar-1.35+dfsg/src/xheader.c:264:9: style: Variable 'base' can be declared as pointer to const [constVariablePointer] tar-1.35+dfsg/src/xheader.c:417:33: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] tar-1.35+dfsg/src/xheader.c:603:32: style: Parameter 'xhdr' can be declared as pointer to const [constParameterPointer] tar-1.35+dfsg/src/xheader.c:1126:36: style: Parameter 'xhdr' can be declared as pointer to const. However it seems that 'dummy_coder' is a callback function, if 'xhdr' is declared with const you might also need to cast function pointer(s). [constParameterCallback] tar-1.35+dfsg/src/xheader.c:1704:17: note: You might need to cast the function pointer here tar-1.35+dfsg/src/xheader.c:1126:36: note: Parameter 'xhdr' can be declared as pointer to const tar-1.35+dfsg/src/xheader.c:1132:51: style: Parameter 'st' can be declared as pointer to const. However it seems that 'dummy_decoder' is a callback function, if 'st' is declared with const you might also need to cast function pointer(s). [constParameterCallback] tar-1.35+dfsg/src/xheader.c:1704:33: note: You might need to cast the function pointer here tar-1.35+dfsg/src/xheader.c:1132:51: note: Parameter 'st' can be declared as pointer to const tar-1.35+dfsg/src/list.c:871:23: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] tar-1.35+dfsg/src/list.c:1072:21: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] tar-1.35+dfsg/src/list.c:1072:35: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] tar-1.35+dfsg/src/list.c:475:22: style: Condition 'name_size!=info->stat.st_size' is always false [knownConditionTrueFalse] tar-1.35+dfsg/src/list.c:469:25: note: name_size is assigned 'info->stat.st_size' here. tar-1.35+dfsg/src/list.c:475:22: note: Condition 'name_size!=info->stat.st_size' is always false tar-1.35+dfsg/src/list.c:494:9: warning: If memory allocation fails, then there is a possible null pointer dereference: header_copy [nullPointerOutOfMemory] tar-1.35+dfsg/src/list.c:478:30: note: Assuming allocation function fails tar-1.35+dfsg/src/list.c:478:30: note: Assignment 'header_copy=xmalloc(size+1)', assigned value is 0 tar-1.35+dfsg/src/list.c:494:9: note: Null pointer dereference tar-1.35+dfsg/src/list.c:495:13: warning: If memory allocation fails, then there is a possible null pointer dereference: header_copy [nullPointerOutOfMemory] tar-1.35+dfsg/src/list.c:478:30: note: Assuming allocation function fails tar-1.35+dfsg/src/list.c:478:30: note: Assignment 'header_copy=xmalloc(size+1)', assigned value is 0 tar-1.35+dfsg/src/list.c:495:13: note: Null pointer dereference tar-1.35+dfsg/src/list.c:527:16: warning: If memory allocation fails, then there is a possible null pointer dereference: recent_global_header [nullPointerOutOfMemory] tar-1.35+dfsg/src/list.c:526:34: note: Assuming allocation function fails tar-1.35+dfsg/src/list.c:526:34: note: Assignment 'recent_global_header=xmalloc(sizeof(*recent_global_header))', assigned value is 0 tar-1.35+dfsg/src/list.c:527:16: note: Null pointer dereference tar-1.35+dfsg/src/list.c:415:29: style:inconclusive: Function 'read_header' argument 3 names different: declaration 'm' definition 'mode'. [funcArgNamesDifferent] tar-1.35+dfsg/src/common.h:627:32: note: Function 'read_header' argument 3 names different: declaration 'm' definition 'mode'. tar-1.35+dfsg/src/list.c:415:29: note: Function 'read_header' argument 3 names different: declaration 'm' definition 'mode'. tar-1.35+dfsg/src/list.c:968:30: style:inconclusive: Function 'gid_from_header' argument 1 names different: declaration 'buf' definition 'p'. [funcArgNamesDifferent] tar-1.35+dfsg/src/list.c:44:43: note: Function 'gid_from_header' argument 1 names different: declaration 'buf' definition 'p'. tar-1.35+dfsg/src/list.c:968:30: note: Function 'gid_from_header' argument 1 names different: declaration 'buf' definition 'p'. tar-1.35+dfsg/src/list.c:968:40: style:inconclusive: Function 'gid_from_header' argument 2 names different: declaration 'size' definition 's'. [funcArgNamesDifferent] tar-1.35+dfsg/src/list.c:44:55: note: Function 'gid_from_header' argument 2 names different: declaration 'size' definition 's'. tar-1.35+dfsg/src/list.c:968:40: note: Function 'gid_from_header' argument 2 names different: declaration 'size' definition 's'. tar-1.35+dfsg/src/list.c:976:32: style:inconclusive: Function 'major_from_header' argument 1 names different: declaration 'buf' definition 'p'. [funcArgNamesDifferent] tar-1.35+dfsg/src/list.c:45:47: note: Function 'major_from_header' argument 1 names different: declaration 'buf' definition 'p'. tar-1.35+dfsg/src/list.c:976:32: note: Function 'major_from_header' argument 1 names different: declaration 'buf' definition 'p'. tar-1.35+dfsg/src/list.c:976:42: style:inconclusive: Function 'major_from_header' argument 2 names different: declaration 'size' definition 's'. [funcArgNamesDifferent] tar-1.35+dfsg/src/list.c:45:59: note: Function 'major_from_header' argument 2 names different: declaration 'size' definition 's'. tar-1.35+dfsg/src/list.c:976:42: note: Function 'major_from_header' argument 2 names different: declaration 'size' definition 's'. tar-1.35+dfsg/src/list.c:984:32: style:inconclusive: Function 'minor_from_header' argument 1 names different: declaration 'buf' definition 'p'. [funcArgNamesDifferent] tar-1.35+dfsg/src/list.c:46:47: note: Function 'minor_from_header' argument 1 names different: declaration 'buf' definition 'p'. tar-1.35+dfsg/src/list.c:984:32: note: Function 'minor_from_header' argument 1 names different: declaration 'buf' definition 'p'. tar-1.35+dfsg/src/list.c:984:42: style:inconclusive: Function 'minor_from_header' argument 2 names different: declaration 'size' definition 's'. [funcArgNamesDifferent] tar-1.35+dfsg/src/list.c:46:59: note: Function 'minor_from_header' argument 2 names different: declaration 'size' definition 's'. tar-1.35+dfsg/src/list.c:984:42: note: Function 'minor_from_header' argument 2 names different: declaration 'size' definition 's'. tar-1.35+dfsg/src/list.c:994:31: style:inconclusive: Function 'mode_from_header' argument 1 names different: declaration 'buf' definition 'p'. [funcArgNamesDifferent] tar-1.35+dfsg/src/list.c:47:45: note: Function 'mode_from_header' argument 1 names different: declaration 'buf' definition 'p'. tar-1.35+dfsg/src/list.c:994:31: note: Function 'mode_from_header' argument 1 names different: declaration 'buf' definition 'p'. tar-1.35+dfsg/src/list.c:994:41: style:inconclusive: Function 'mode_from_header' argument 2 names different: declaration 'size' definition 's'. [funcArgNamesDifferent] tar-1.35+dfsg/src/list.c:47:57: note: Function 'mode_from_header' argument 2 names different: declaration 'size' definition 's'. tar-1.35+dfsg/src/list.c:994:41: note: Function 'mode_from_header' argument 2 names different: declaration 'size' definition 's'. tar-1.35+dfsg/src/list.c:1016:30: style:inconclusive: Function 'off_from_header' argument 1 names different: declaration 'buf' definition 'p'. [funcArgNamesDifferent] tar-1.35+dfsg/src/common.h:616:36: note: Function 'off_from_header' argument 1 names different: declaration 'buf' definition 'p'. tar-1.35+dfsg/src/list.c:1016:30: note: Function 'off_from_header' argument 1 names different: declaration 'buf' definition 'p'. tar-1.35+dfsg/src/list.c:1016:40: style:inconclusive: Function 'off_from_header' argument 2 names different: declaration 'size' definition 's'. [funcArgNamesDifferent] tar-1.35+dfsg/src/common.h:616:48: note: Function 'off_from_header' argument 2 names different: declaration 'size' definition 's'. tar-1.35+dfsg/src/list.c:1016:40: note: Function 'off_from_header' argument 2 names different: declaration 'size' definition 's'. tar-1.35+dfsg/src/list.c:1026:31: style:inconclusive: Function 'time_from_header' argument 1 names different: declaration 'buf' definition 'p'. [funcArgNamesDifferent] tar-1.35+dfsg/src/list.c:48:45: note: Function 'time_from_header' argument 1 names different: declaration 'buf' definition 'p'. tar-1.35+dfsg/src/list.c:1026:31: note: Function 'time_from_header' argument 1 names different: declaration 'buf' definition 'p'. tar-1.35+dfsg/src/list.c:1026:41: style:inconclusive: Function 'time_from_header' argument 2 names different: declaration 'size' definition 's'. [funcArgNamesDifferent] tar-1.35+dfsg/src/list.c:48:57: note: Function 'time_from_header' argument 2 names different: declaration 'size' definition 's'. tar-1.35+dfsg/src/list.c:1026:41: note: Function 'time_from_header' argument 2 names different: declaration 'size' definition 's'. tar-1.35+dfsg/src/list.c:1034:30: style:inconclusive: Function 'uid_from_header' argument 1 names different: declaration 'buf' definition 'p'. [funcArgNamesDifferent] tar-1.35+dfsg/src/list.c:49:43: note: Function 'uid_from_header' argument 1 names different: declaration 'buf' definition 'p'. tar-1.35+dfsg/src/list.c:1034:30: note: Function 'uid_from_header' argument 1 names different: declaration 'buf' definition 'p'. tar-1.35+dfsg/src/list.c:1034:40: style:inconclusive: Function 'uid_from_header' argument 2 names different: declaration 'size' definition 's'. [funcArgNamesDifferent] tar-1.35+dfsg/src/list.c:49:55: note: Function 'uid_from_header' argument 2 names different: declaration 'size' definition 's'. tar-1.35+dfsg/src/list.c:1034:40: note: Function 'uid_from_header' argument 2 names different: declaration 'size' definition 's'. tar-1.35+dfsg/src/list.c:1042:34: style:inconclusive: Function 'uintmax_from_header' argument 1 names different: declaration 'buf' definition 'p'. [funcArgNamesDifferent] tar-1.35+dfsg/src/common.h:617:44: note: Function 'uintmax_from_header' argument 1 names different: declaration 'buf' definition 'p'. tar-1.35+dfsg/src/list.c:1042:34: note: Function 'uintmax_from_header' argument 1 names different: declaration 'buf' definition 'p'. tar-1.35+dfsg/src/list.c:1042:44: style:inconclusive: Function 'uintmax_from_header' argument 2 names different: declaration 'size' definition 's'. [funcArgNamesDifferent] tar-1.35+dfsg/src/common.h:617:56: note: Function 'uintmax_from_header' argument 2 names different: declaration 'size' definition 's'. tar-1.35+dfsg/src/list.c:1042:44: note: Function 'uintmax_from_header' argument 2 names different: declaration 'size' definition 's'. tar-1.35+dfsg/src/list.c:356:9: style: Variable 'p' can be declared as pointer to const [constVariablePointer] tar-1.35+dfsg/src/list.c:625:29: style: Parameter 'header' can be declared as pointer to const [constParameterPointer] tar-1.35+dfsg/src/list.c:1138:9: style: Variable 'user' can be declared as pointer to const [constVariablePointer] tar-1.35+dfsg/src/list.c:1138:16: style: Variable 'group' can be declared as pointer to const [constVariablePointer] diff: head tar-1.35+dfsg/gnu/acl-internal.h:22:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head tar-1.35+dfsg/gnu/acl.h:25:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head tar-1.35+dfsg/gnu/argmatch.h:27:4: error: #error "Please include config.h first." [preprocessorErrorDirective] head tar-1.35+dfsg/gnu/argp-fmtstream.h:30:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head tar-1.35+dfsg/gnu/argp.h:24:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head tar-1.35+dfsg/gnu/attribute.h:55:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head tar-1.35+dfsg/gnu/backupfile.h:24:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head tar-1.35+dfsg/gnu/basename-lgpl.h:24:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head tar-1.35+dfsg/gnu/bitrotate.h:24:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head tar-1.35+dfsg/gnu/c-ctype.h:28:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head tar-1.35+dfsg/gnu/c-strcase.h:23:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head tar-1.35+dfsg/gnu/careadlinkat.h:25:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head tar-1.35+dfsg/gnu/dirent-safer.h:22:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head tar-1.35+dfsg/gnu/dirname.h:25:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head tar-1.35+dfsg/gnu/error.c:141:5: error: #error Please port fcntl to your platform [preprocessorErrorDirective] head tar-1.35+dfsg/gnu/exclude.h:25:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head tar-1.35+dfsg/gnu/filenamecat.h:23:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head tar-1.35+dfsg/gnu/flexmember.h:25:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head tar-1.35+dfsg/gnu/fpending.h:24:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head tar-1.35+dfsg/gnu/fseeko.c:111:4: error: #error "Please port gnulib fseeko.c to your platform! Look at the code in fseeko.c, then report this to bug-gnulib." [preprocessorErrorDirective] head tar-1.35+dfsg/gnu/gettimeofday.c:142:5: error: #error "Only 1-second nominal clock resolution found. Is that intended?" \ [preprocessorErrorDirective] head tar-1.35+dfsg/gnu/hash.h:31:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head tar-1.35+dfsg/gnu/ialloc.h:24:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head tar-1.35+dfsg/gnu/inttostr.h:22:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head tar-1.35+dfsg/gnu/link.c:174:4: error: #error "This platform lacks a link function, and Gnulib doesn't provide a replacement. This is a bug in Gnulib." [preprocessorErrorDirective] head tar-1.35+dfsg/gnu/malloc/dynarray-skeleton.c:95:3: error: #error "DYNARRAY_STRUCT must be defined" [preprocessorErrorDirective] head tar-1.35+dfsg/gnu/malloca.h:24:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head tar-1.35+dfsg/gnu/mbchar.h:148:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head tar-1.35+dfsg/gnu/mbuiter.h:94:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head tar-1.35+dfsg/gnu/minmax.h:28:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head tar-1.35+dfsg/gnu/modechange.h:24:4: error: #error "Please include config.h first." [preprocessorErrorDirective] head tar-1.35+dfsg/gnu/msvc-inval.h:57:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head tar-1.35+dfsg/gnu/msvc-nothrow.h:30:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head tar-1.35+dfsg/gnu/obstack.h:108:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head tar-1.35+dfsg/gnu/openat.h:25:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head tar-1.35+dfsg/gnu/pathmax.h:44:4: error: #error "Please include config.h first." [preprocessorErrorDirective] head tar-1.35+dfsg/gnu/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 tar-1.35+dfsg/gnu/priv-set.h:23:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head tar-1.35+dfsg/gnu/quotearg.h:26:4: error: #error "Please include config.h first." [preprocessorErrorDirective] head tar-1.35+dfsg/gnu/savedir.h:26:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head tar-1.35+dfsg/gnu/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 tar-1.35+dfsg/gnu/stat-time.h:26:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head tar-1.35+dfsg/gnu/strerror-override.h:23:4: error: #error "Please include config.h first." [preprocessorErrorDirective] head tar-1.35+dfsg/gnu/strnlen1.h:22:3: error: #error "Please include config.h first." [preprocessorErrorDirective] 2.17.0 tar-1.35+dfsg/gnu/tempname.c:141:21: style: Parameter 'tmpl' can be declared as pointer to const [constParameterPointer] head tar-1.35+dfsg/gnu/tempname.c:141:21: style: Parameter 'tmpl' can be declared as pointer to const. However it seems that 'try_nocreate' is a callback function, if 'tmpl' is declared with const you might also need to cast function pointer(s). [constParameterCallback] tar-1.35+dfsg/gnu/tempname.c:179:25: note: You might need to cast the function pointer here tar-1.35+dfsg/gnu/tempname.c:141:21: note: Parameter 'tmpl' can be declared as pointer to const 2.17.0 tar-1.35+dfsg/gnu/tempname.c:179:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable try_nocreate [valueFlowBailoutIncompleteVar] head tar-1.35+dfsg/gnu/timespec.h:25:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head tar-1.35+dfsg/gnu/utimens.h:22:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head tar-1.35+dfsg/gnu/vasnprintf.h:22:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head tar-1.35+dfsg/gnu/version-etc.h:24:4: error: #error "Please include config.h first." [preprocessorErrorDirective] head tar-1.35+dfsg/gnu/xalloc.h:25:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head tar-1.35+dfsg/gnu/xgetcwd.h:19:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head tar-1.35+dfsg/gnu/xsize.h:23:3: error: #error "Please include config.h first." [preprocessorErrorDirective] head tar-1.35+dfsg/gnu/xvasprintf.h:22:3: error: #error "Please include config.h first." [preprocessorErrorDirective] 2.17.0 tar-1.35+dfsg/lib/rtapelib.c:572:34: error:inconclusive: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] tar-1.35+dfsg/lib/rtapelib.c:570:36: note: Assuming allocation function fails tar-1.35+dfsg/lib/rtapelib.c:570:36: note: Assignment 'command_buffer=xmalloc(remote_file_len+1000)', assigned value is 0 tar-1.35+dfsg/lib/rtapelib.c:572:34: note: Null pointer addition head tar-1.35+dfsg/lib/rtapelib.c:572:34: error:inconclusive: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] tar-1.35+dfsg/lib/rtapelib.c:570:36: note: Assuming allocation function fails tar-1.35+dfsg/lib/rtapelib.c:570:36: note: Assignment 'command_buffer=xmalloc(remote_file_len+1000)', assigned value is 0 tar-1.35+dfsg/lib/rtapelib.c:572:34: note: Null pointer addition 2.17.0 tar-1.35+dfsg/src/incremen.c:104:33: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] tar-1.35+dfsg/src/incremen.c:103:18: note: Assuming allocation function fails tar-1.35+dfsg/src/incremen.c:103:18: note: Assignment 'dump=xmalloc(sizeof(*dump)+ctsize)', assigned value is 0 tar-1.35+dfsg/src/incremen.c:104:33: note: Null pointer addition head tar-1.35+dfsg/src/incremen.c:104:33: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] tar-1.35+dfsg/src/incremen.c:103:18: note: Assuming allocation function fails tar-1.35+dfsg/src/incremen.c:103:18: note: Assignment 'dump=xmalloc(sizeof(*dump)+ctsize)', assigned value is 0 tar-1.35+dfsg/src/incremen.c:104:33: note: Null pointer addition head tar-1.35+dfsg/src/incremen.c:266:21: warning: If memory allocation fails, then there is a possible null pointer dereference: directory [nullPointerOutOfMemory] tar-1.35+dfsg/src/incremen.c:264:41: note: Assuming allocation function fails tar-1.35+dfsg/src/incremen.c:264:41: note: Assignment 'directory=xmalloc(sizeof(*directory))', assigned value is 0 tar-1.35+dfsg/src/incremen.c:266:21: note: Null pointer dereference 2.17.0 tar-1.35+dfsg/src/incremen.c:722:20: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] tar-1.35+dfsg/src/incremen.c:720:28: note: Assuming allocation function fails tar-1.35+dfsg/src/incremen.c:720:28: note: Assignment 'new_dump=xmalloc(len+2)', assigned value is 0 tar-1.35+dfsg/src/incremen.c:722:20: note: Null pointer addition head tar-1.35+dfsg/src/incremen.c:722:20: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] tar-1.35+dfsg/src/incremen.c:720:28: note: Assuming allocation function fails tar-1.35+dfsg/src/incremen.c:720:28: note: Assignment 'new_dump=xmalloc(len+2)', assigned value is 0 tar-1.35+dfsg/src/incremen.c:722:20: note: Null pointer addition 2.17.0 tar-1.35+dfsg/src/misc.c:1221:17: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] tar-1.35+dfsg/src/misc.c:1235:18: note: Assuming allocation function fails tar-1.35+dfsg/src/misc.c:1235:18: note: Assignment '*ptr=xmalloc(size1)', assigned value is 0 tar-1.35+dfsg/src/misc.c:1236:21: note: Calling function 'ptr_align', 1st argument '*ptr' value is 0 tar-1.35+dfsg/src/misc.c:1220:14: note: Assignment 'p0=ptr', assigned value is 0 tar-1.35+dfsg/src/misc.c:1221:17: note: Null pointer addition head tar-1.35+dfsg/src/misc.c:1221:17: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] tar-1.35+dfsg/src/misc.c:1235:18: note: Assuming allocation function fails tar-1.35+dfsg/src/misc.c:1235:18: note: Assignment '*ptr=xmalloc(size1)', assigned value is 0 tar-1.35+dfsg/src/misc.c:1236:21: note: Calling function 'ptr_align', 1st argument '*ptr' value is 0 tar-1.35+dfsg/src/misc.c:1220:14: note: Assignment 'p0=ptr', assigned value is 0 tar-1.35+dfsg/src/misc.c:1221:17: note: Null pointer addition head tar-1.35+dfsg/src/misc.c:1253:26: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] tar-1.35+dfsg/src/misc.c:1251:27: note: Assuming allocation function fails tar-1.35+dfsg/src/misc.c:1251:27: note: Assignment 'buf=xmalloc(sizeof(*buf))', assigned value is 0 tar-1.35+dfsg/src/misc.c:1253:26: note: Null pointer dereference head tar-1.35+dfsg/src/misc.c:1255:29: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] tar-1.35+dfsg/src/misc.c:1251:27: note: Assuming allocation function fails tar-1.35+dfsg/src/misc.c:1251:27: note: Assignment 'buf=xmalloc(sizeof(*buf))', assigned value is 0 tar-1.35+dfsg/src/misc.c:1255:29: note: Null pointer dereference head tar-1.35+dfsg/src/misc.c:1256:29: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] tar-1.35+dfsg/src/misc.c:1251:27: note: Assuming allocation function fails tar-1.35+dfsg/src/misc.c:1251:27: note: Assignment 'buf=xmalloc(sizeof(*buf))', assigned value is 0 tar-1.35+dfsg/src/misc.c:1256:29: note: Null pointer dereference 2.17.0 tar-1.35+dfsg/src/misc.c:281:26: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] tar-1.35+dfsg/src/misc.c:346:20: note: Assuming allocation function fails tar-1.35+dfsg/src/misc.c:346:20: note: Assignment 'copy=xstrdup(name)', assigned value is 0 tar-1.35+dfsg/src/misc.c:347:25: note: Calling function 'normalize_filename_x', 1st argument 'copy' value is 0 tar-1.35+dfsg/src/misc.c:281:26: note: Null pointer addition head tar-1.35+dfsg/src/misc.c:281:26: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] tar-1.35+dfsg/src/misc.c:346:20: note: Assuming allocation function fails tar-1.35+dfsg/src/misc.c:346:20: note: Assignment 'copy=xstrdup(name)', assigned value is 0 tar-1.35+dfsg/src/misc.c:347:25: note: Calling function 'normalize_filename_x', 1st argument 'copy' value is 0 tar-1.35+dfsg/src/misc.c:281:26: note: Null pointer addition 2.17.0 tar-1.35+dfsg/src/misc.c:342:20: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] tar-1.35+dfsg/src/misc.c:339:22: note: Assuming allocation function fails tar-1.35+dfsg/src/misc.c:339:22: note: Assignment 'copy=xmalloc(copylen+need_separator+strlen(name)+1)', assigned value is 0 tar-1.35+dfsg/src/misc.c:342:20: note: Null pointer addition head tar-1.35+dfsg/src/misc.c:342:20: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] tar-1.35+dfsg/src/misc.c:339:22: note: Assuming allocation function fails tar-1.35+dfsg/src/misc.c:339:22: note: Assignment 'copy=xmalloc(copylen+need_separator+strlen(name)+1)', assigned value is 0 tar-1.35+dfsg/src/misc.c:342:20: note: Null pointer addition 2.17.0 tar-1.35+dfsg/src/names.c:1958:18: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] tar-1.35+dfsg/src/names.c:1955:26: note: Assuming allocation function fails tar-1.35+dfsg/src/names.c:1955:26: note: Assignment 'buffer=xmalloc(dirlen+slash+namelen)', assigned value is 0 tar-1.35+dfsg/src/names.c:1958:18: note: Null pointer addition head tar-1.35+dfsg/src/names.c:1958:18: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] tar-1.35+dfsg/src/names.c:1955:26: note: Assuming allocation function fails tar-1.35+dfsg/src/names.c:1955:26: note: Assignment 'buffer=xmalloc(dirlen+slash+namelen)', assigned value is 0 tar-1.35+dfsg/src/names.c:1958:18: note: Null pointer addition head tar-1.35+dfsg/src/transform.c:277:34: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] tar-1.35+dfsg/src/transform.c:264:17: note: Assuming allocation function fails tar-1.35+dfsg/src/transform.c:264:17: note: Assignment 'str=xmalloc(i-1)', assigned value is 0 tar-1.35+dfsg/src/transform.c:277:34: note: Null pointer dereference head tar-1.35+dfsg/src/xheader.c:232:53: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] DONE