2025-11-22 17:46 ftp://ftp.de.debian.org/debian/pool/main/m/moreutils/moreutils_0.69.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 -j4 platform: Linux-6.12.57+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.67 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.18.0 head-info: cb76e52 (2025-11-22 14:47:37 +0100) count: 71 71 elapsed-time: 0.7 0.7 head-timing-info: old-timing-info: head results: moreutils-0.69/errno.c:115:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] moreutils-0.69/errno.c:161:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] moreutils-0.69/ifne.c:33:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] moreutils-0.69/ifne.c:51:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] moreutils-0.69/ifdata.c:124:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFNAMSIZ [valueFlowBailoutIncompleteVar] moreutils-0.69/ifdata.c:150:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIOCGIFFLAGS [valueFlowBailoutIncompleteVar] moreutils-0.69/ifdata.c:216:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EADDRNOTAVAIL [valueFlowBailoutIncompleteVar] moreutils-0.69/ifdata.c:224:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIOCGIFADDR [valueFlowBailoutIncompleteVar] moreutils-0.69/ifdata.c:228:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIOCGIFNETMASK [valueFlowBailoutIncompleteVar] moreutils-0.69/ifdata.c:232:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIOCGIFBRDADDR [valueFlowBailoutIncompleteVar] moreutils-0.69/ifdata.c:255:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIOCGIFMTU [valueFlowBailoutIncompleteVar] moreutils-0.69/ifdata.c:367:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] moreutils-0.69/ifdata.c:382:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] moreutils-0.69/ifdata.c:402:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] moreutils-0.69/is_utf8/main.c:178:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] moreutils-0.69/is_utf8/main.c:231:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable no_argument [valueFlowBailoutIncompleteVar] moreutils-0.69/ifdata.c:82:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] moreutils-0.69/ifdata.c:82:2: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] moreutils-0.69/ifdata.c:82:2: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] moreutils-0.69/ifdata.c:82:2: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] moreutils-0.69/ifdata.c:89:32: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] moreutils-0.69/ifdata.c:390:30: style: Parameter 'todo' can be declared as pointer to const [constParameterPointer] moreutils-0.69/ifdata.c:533:8: style: Variable 'ifname' can be declared as pointer to const [constVariablePointer] moreutils-0.69/ifdata.c:73:21: style: struct member 'if_stat::in_packets' is never used. [unusedStructMember] moreutils-0.69/ifdata.c:73:33: style: struct member 'if_stat::in_bytes' is never used. [unusedStructMember] moreutils-0.69/ifdata.c:73:43: style: struct member 'if_stat::in_errors' is never used. [unusedStructMember] moreutils-0.69/ifdata.c:73:54: style: struct member 'if_stat::in_drops' is never used. [unusedStructMember] moreutils-0.69/ifdata.c:74:21: style: struct member 'if_stat::in_fifo' is never used. [unusedStructMember] moreutils-0.69/lckdo.c:39:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] moreutils-0.69/lckdo.c:53:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EX_TEMPFAIL [valueFlowBailoutIncompleteVar] moreutils-0.69/lckdo.c:61:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] moreutils-0.69/ifdata.c:74:30: style: struct member 'if_stat::in_frame' is never used. [unusedStructMember] moreutils-0.69/ifdata.c:74:40: style: struct member 'if_stat::in_compress' is never used. [unusedStructMember] moreutils-0.69/ifdata.c:74:53: style: struct member 'if_stat::in_multicast' is never used. [unusedStructMember] moreutils-0.69/ifdata.c:75:21: style: struct member 'if_stat::out_bytes' is never used. [unusedStructMember] moreutils-0.69/ifdata.c:75:32: style: struct member 'if_stat::out_packets' is never used. [unusedStructMember] moreutils-0.69/ifdata.c:75:45: style: struct member 'if_stat::out_errors' is never used. [unusedStructMember] moreutils-0.69/ifdata.c:75:57: style: struct member 'if_stat::out_drops' is never used. [unusedStructMember] moreutils-0.69/ifdata.c:76:21: style: struct member 'if_stat::out_fifo' is never used. [unusedStructMember] moreutils-0.69/ifdata.c:76:31: style: struct member 'if_stat::out_colls' is never used. [unusedStructMember] moreutils-0.69/ifdata.c:76:42: style: struct member 'if_stat::out_carrier' is never used. [unusedStructMember] moreutils-0.69/ifdata.c:76:55: style: struct member 'if_stat::out_multicast' is never used. [unusedStructMember] moreutils-0.69/ifdata.c:127:11: style: Variable 'res' is assigned a value that is never used. [unreadVariable] moreutils-0.69/mispipe.c:58:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] moreutils-0.69/mispipe.c:68:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] moreutils-0.69/mispipe.c:77:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] moreutils-0.69/is_utf8/main.c:128:50: warning: If resource allocation fails, then there is a possible null pointer dereference: stream [nullPointerOutOfResources] moreutils-0.69/is_utf8/main.c:188:38: note: Assuming allocation function fails moreutils-0.69/is_utf8/main.c:188:38: note: Calling function 'is_utf8_readline', 1st argument 'fopen(file_path,"r")' value is 0 moreutils-0.69/is_utf8/main.c:128:50: note: Null pointer dereference moreutils-0.69/is_utf8/main.c:199:12: warning: If memory allocation fails, then there is a possible null pointer dereference: addr [nullPointerOutOfMemory] moreutils-0.69/is_utf8/main.c:183:16: note: Assuming allocation function fails moreutils-0.69/is_utf8/main.c:183:16: note: Assignment 'addr=mmap(NULL,sb.st_size,PROT_READ,MAP_PRIVATE,fd,0)', assigned value is 0 moreutils-0.69/is_utf8/main.c:199:12: note: Null pointer dereference moreutils-0.69/is_utf8/main.c:229:19: style: Variable 'options' can be declared as const array [constVariable] moreutils-0.69/is_utf8/main.c:124:13: style: Variable 'pos' is assigned a value that is never used. [unreadVariable] moreutils-0.69/pee.c:40:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] moreutils-0.69/parallel.c:61:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] moreutils-0.69/parallel.c:176:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable P_ALL [valueFlowBailoutIncompleteVar] moreutils-0.69/parallel.c:201:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] moreutils-0.69/parallel.c:221:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] moreutils-0.69/parallel.c:288:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optind [valueFlowBailoutIncompleteVar] moreutils-0.69/sponge.c:65:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_BLOCK [valueFlowBailoutIncompleteVar] moreutils-0.69/sponge.c:73:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_SETMASK [valueFlowBailoutIncompleteVar] moreutils-0.69/sponge.c:90:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SA_NOCLDSTOP [valueFlowBailoutIncompleteVar] moreutils-0.69/sponge.c:113:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] moreutils-0.69/sponge.c:180:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] moreutils-0.69/sponge.c:299:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optind [valueFlowBailoutIncompleteVar] moreutils-0.69/parallel.c:98:4: warning: If memory allocation fails, then there is a possible null pointer dereference: argv [nullPointerOutOfMemory] moreutils-0.69/parallel.c:89:16: note: Assuming allocation function fails moreutils-0.69/parallel.c:89:16: note: Assignment 'argv=calloc(sizeof(char*),argc+nargs)', assigned value is 0 moreutils-0.69/parallel.c:98:4: note: Null pointer dereference moreutils-0.69/sponge.c:214:26: warning: If resource allocation fails, then there is a possible null pointer dereference: infile [nullPointerOutOfResources] moreutils-0.69/sponge.c:344:19: note: Assuming allocation function fails moreutils-0.69/sponge.c:344:19: note: Assignment 'outfile=fopen(outname,"r")', assigned value is 0 moreutils-0.69/sponge.c:345:14: note: Calling function 'copy_file', 1st argument 'outfile' value is 0 moreutils-0.69/sponge.c:214:26: note: Null pointer dereference moreutils-0.69/sponge.c:346:11: warning: If resource allocation fails, then there is a possible null pointer dereference: outfile [nullPointerOutOfResources] moreutils-0.69/sponge.c:344:19: note: Assuming allocation function fails moreutils-0.69/sponge.c:344:19: note: Assignment 'outfile=fopen(outname,"r")', assigned value is 0 moreutils-0.69/sponge.c:346:11: note: Null pointer dereference moreutils-0.69/sponge.c:187:34: style: Parameter 'buff' can be declared as pointer to const [constParameterPointer] moreutils-0.69/sponge.c:204:35: style: Parameter 'buff' can be declared as pointer to const [constParameterPointer] moreutils-0.69/sponge.c:246:8: style: Variable 'tmpdir' can be declared as pointer to const [constVariablePointer] moreutils-0.69/sponge.c:280:25: style: Variable 'outname' can be declared as pointer to const [constVariablePointer] moreutils-0.69/is_utf8/is_utf8.c:288:5: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] moreutils-0.69/is_utf8/is_utf8.c:57:28: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] diff: DONE