2025-07-25 03:52 ftp://ftp.de.debian.org/debian/pool/main/a/aufs-tools/aufs-tools_4.14+20190211.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=libcurl --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.18.0 head-info: 55e2dc6 (2025-07-24 17:37:42 +0200) count: 213 213 elapsed-time: 0.3 0.3 head-timing-info: old-timing-info: head results: c2sh.c:30:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AUFS_VERSION [valueFlowBailoutIncompleteVar] auplink.c:28:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] auplink.c:53:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] auibusy.c:30:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] auibusy.c:38:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] auibusy.c:65:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] c2sh.c:25:22: style: Parameter 'argv' can be declared as const array [constParameter] br.c:36:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] c2tmac.c:31:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AUFS_VERSION [valueFlowBailoutIncompleteVar] au_util.h:148:35: style: Parameter 'cwd' can be declared as pointer to const [constParameterPointer] c2tmac.c:26:22: style: Parameter 'argv' can be declared as const array [constParameter] extlib/glibc/au_nftw.c:33:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable p [valueFlowBailoutIncompleteVar] extlib/glibc/au_nftw.c:45:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AUFS_WH_PLINKDIR [valueFlowBailoutIncompleteVar] extlib/glibc/au_nftw.c:61:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AUFS_WH_PLINKDIR [valueFlowBailoutIncompleteVar] aumvdown.c:64:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] aumvdown.c:86:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] aumvdown.c:133:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] auplink.c:26:25: style: Parameter 'me' can be declared as pointer to const [constParameterPointer] auibusy.c:28:25: style: Parameter 'me' can be declared as pointer to const [constParameterPointer] auibusy.c:33:27: style: Parameter 'inum' can be declared as pointer to const [constParameterPointer] auibusy.c:62:7: style: Variable 'dp' can be declared as pointer to const [constVariablePointer] extlib/glibc/au_nftw.c:30:9: style: Variable 'p' can be declared as pointer to const [constVariablePointer] extlib/glibc/au_nftw.c:43:19: style: Parameter 'ftw' can be declared as pointer to const [constParameterPointer] extlib/glibc/au_nftw.c:57:19: style: Parameter 'ftw' can be declared as pointer to const [constParameterPointer] extlib/non-glibc/au_nftw.c:52:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRWXG [valueFlowBailoutIncompleteVar] extlib/non-glibc/error_at_line.c:34:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] extlib/non-glibc/error_at_line.c:34:2: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] extlib/non-glibc/au_decode_mntpnt.c:24:30: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] extlib/non-glibc/au_nftw.c:64:17: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] extlib/non-glibc/au_nftw.c:57:13: note: Assuming allocation function fails extlib/non-glibc/au_nftw.c:57:13: note: Assignment 'fp=fdopen(fd,"r+")', assigned value is 0 extlib/non-glibc/au_nftw.c:64:17: note: Null pointer dereference extlib/non-glibc/au_nftw.c:29:19: style: Parameter 'ftw' can be declared as pointer to const [constParameterPointer] extlib/non-glibc/au_nftw.c:36:19: style: Parameter 'ftw' can be declared as pointer to const. However it seems that 'ftw_cpup' is a callback function, if 'ftw' is declared with const you might also need to cast function pointer(s). [constParameterCallback] extlib/non-glibc/au_nftw.c:76:12: note: You might need to cast the function pointer here extlib/non-glibc/au_nftw.c:36:19: note: Parameter 'ftw' can be declared as pointer to const extlib/non-glibc/au_nftw.c:49:9: style: Variable 'p' can be declared as pointer to const [constVariablePointer] extlib/non-glibc/au_nftw.c:50:8: style: Variable 'action' can be declared as pointer to const [constVariablePointer] aumvdown.c:82:47: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] aumvdown.c:94:63: style: Parameter 'stbr' can be declared as pointer to const [constParameterPointer] aumvdown.c:119:26: style: Parameter 'argv' can be declared as const array [constParameter] aumvdown.c:209:10: style: Variable 'u' can be declared as pointer to const [constVariablePointer] aumvdown.c:209:19: style: Variable 'l' can be declared as pointer to const [constVariablePointer] fhsm/fhsm.c:62:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fhsm/fhsm.c:98:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fhsm/fhsm.c:148:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable perm [valueFlowBailoutIncompleteVar] fhsm/fhsm.c:172:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable id [valueFlowBailoutIncompleteVar] fhsm/fhsm.c:192:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable perm [valueFlowBailoutIncompleteVar] fhsm/fhsm.c:241:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fhsm/fhsm.c:265:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fhsm/fhsm.c:334:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fhsm/fhsm.c:364:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable id [valueFlowBailoutIncompleteVar] fhsm/aufhsmd.c:39:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fhsm/aufhsmd.c:76:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] fhsm/aufhsmd.c:128:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] fhsm/aufhsmd.c:145:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_NONBLOCK [valueFlowBailoutIncompleteVar] fhsm/aufhsmd.c:162:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optind [valueFlowBailoutIncompleteVar] fhsm/event.c:50:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fhsm/event.c:89:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fhsm/event.c:140:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fhsm/event.c:196:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fhsm/event.c:239:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fhsm/event.c:295:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_BLOCK [valueFlowBailoutIncompleteVar] fhsm/event.c:311:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fd [valueFlowBailoutIncompleteVar] fhsm/event.c:329:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EPOLL_CLOEXEC [valueFlowBailoutIncompleteVar] fhsm/event.c:367:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fhsm/aufhsm.c:39:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fhsm/aufhsm.c:98:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] fhsm/aufhsm.c:161:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fhsm/aufhsm.c:191:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fhsm/aufhsm.c:218:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AUFHSMD_CMD [valueFlowBailoutIncompleteVar] fhsm/aufhsm.c:268:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fhsm/list.c:46:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fhsm/list.c:90:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] fhsm/list.c:126:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fhsm/list.c:215:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AUFHSM_LIST_CMD [valueFlowBailoutIncompleteVar] fhsm/list.c:268:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fhsm/list.c:355:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fhsm/list.c:379:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fhsm/msg.c:43:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AUFS_CTL_FHSM_FD [valueFlowBailoutIncompleteVar] fhsm/msg.c:65:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fhsm/msg.c:57:23: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] fhsm/msg.c:61:15: style: Variable 'dir' can be declared as pointer to const [constVariablePointer] fhsm/comm.h:119:17: style: Variable 'p' can be declared as pointer to const [constVariablePointer] fhsm/comm.h:162:65: style: Parameter 'fhsm' can be declared as pointer to const [constParameterPointer] fhsm/aufhsmd.c:62:33: style: Parameter 'argv' can be declared as const array [constParameter] fhsm/daemon.h:111:9: warning:inconclusive: Multiplying sizeof() with sizeof() indicates a logic error. [multiplySizeof] fhsm/fhsm.c:32:65: style: Parameter 'brinfo' can be declared as pointer to const [constParameterPointer] fhsm/fhsm.c:187:28: style: Variable 'prev' can be declared as pointer to const [constVariablePointer] fhsm/fhsm.c:356:25: style: Parameter 'mntpnt' can be declared as pointer to const [constParameterPointer] fhsm/fhsm.c:356:73: style: Parameter 'brinfo' can be declared as pointer to const [constParameterPointer] fhsm/fhsm.c:360:23: style: Variable 'wm' can be declared as pointer to const [constVariablePointer] fhsm/list.c:383:33: warning: Either the condition 'ssz>0' is redundant or lseek() argument nr 3 can have invalid value. The value is -1 but the valid values are '0:2'. [invalidFunctionArg] fhsm/list.c:381:10: note: Assuming that condition 'ssz>0' is not redundant fhsm/list.c:383:33: note: Invalid argument fhsm/aufhsm.c:81:33: style: Parameter 'argv' can be declared as const array [constParameter] libau/libau.c:34:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RTLD_NEXT [valueFlowBailoutIncompleteVar] fhsm/aufhsm.c:253:9: error: Uninitialized variable: err [legacyUninitvar] libau/libau.c:33:2: warning: Return value of function dlerror() is not used. [ignoredReturnValue] libau/libau.c:26:33: style: Parameter 'sym' can be declared as pointer to const [constParameterPointer] libau/libau.c:28:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] libau/libau.c:42:27: style: Parameter 'sym' can be declared as pointer to const [constParameterPointer] fhsm/shm.c:43:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fhsm/shm.c:78:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fhsm/shm.c:125:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_RDLCK [valueFlowBailoutIncompleteVar] fhsm/shm.c:173:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] fhsm/shm.c:209:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IWUSR [valueFlowBailoutIncompleteVar] fhsm/list.c:122:12: style: Variable 'src' can be declared as pointer to const [constVariablePointer] fhsm/list.c:122:30: style: Variable 'succeeded' can be declared as pointer to const [constVariablePointer] fhsm/list.c:342:8: style: Variable 'end' can be declared as pointer to const [constVariablePointer] libau/pathconf.c:48:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libau/pathconf.c:63:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] libau/pathconf.c:144:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AUFS_SUPER_MAGIC [valueFlowBailoutIncompleteVar] libau/pathconf.c:167:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _PC_LINK_MAX [valueFlowBailoutIncompleteVar] libau/pathconf.c:188:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AUFS_SUPER_MAGIC [valueFlowBailoutIncompleteVar] libau/pathconf.c:202:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _PC_LINK_MAX [valueFlowBailoutIncompleteVar] libau/rdu.c:54:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fhsm/mvdown.c:54:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] fhsm/mvdown.c:201:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AUFS_MVDOWN_FHSM_LOWER [valueFlowBailoutIncompleteVar] fhsm/mvdown.c:252:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CLOEXEC [valueFlowBailoutIncompleteVar] fhsm/mvdown.c:308:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libau/rdu.h:138:48: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] libau/rdu.h:143:46: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] libau/rdu.h:148:47: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] libau/rdu.h:153:43: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] libau/rdu.h:158:48: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] mng_fhsm.c:52:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AUFHSM_CMD [valueFlowBailoutIncompleteVar] fhsm/event.c:274:7: style: Variable 'err' is reassigned a value before the old one has been used. 'break;' missing? [redundantAssignInSwitch] fhsm/event.c:268:8: note: $symbol is assigned fhsm/event.c:274:7: note: $symbol is overwritten libau/rdu_lib.c:49:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AUFS_CTL_RDU [valueFlowBailoutIncompleteVar] libau/rdu_lib.c:129:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] libau/rdu_lib.c:222:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AUFS_WH_PFX_LEN [valueFlowBailoutIncompleteVar] libau/rdu_lib.c:237:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AUFS_WH_PFX_LEN [valueFlowBailoutIncompleteVar] libau/rdu_lib.c:312:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AUFS_WH_PFX_LEN [valueFlowBailoutIncompleteVar] libau/rdu_lib.c:359:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AufsCtlRduV_SZ [valueFlowBailoutIncompleteVar] libau/rdu_lib.c:456:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] mng_fhsm.c:66:8: style: Variable 'err' is assigned a value that is never used. [unreadVariable] mng_fhsm.c:71:8: style: Variable 'err' is assigned a value that is never used. [unreadVariable] perror.c:51:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EAU_Last [valueFlowBailoutIncompleteVar] mtab.c:58:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] mtab.c:67:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] mtab.c:78:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] mtab.c:96:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] mtab.c:145:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_WRLCK [valueFlowBailoutIncompleteVar] proc_mnt.c:53:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] proc_mnt.c:75:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] mount.aufs.c:86:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] mount.aufs.c:136:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] mount.aufs.c:178:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] mount.aufs.c:240:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AUFS_NAME [valueFlowBailoutIncompleteVar] mount.aufs.c:279:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] proc_mnt.c:31:57: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] plink.c:58:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] plink.c:78:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] plink.c:104:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] plink.c:150:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] plink.c:180:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] plink.c:203:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] plink.c:276:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sample/logrow/logrow.c:62:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sample/logrow/logrow.c:77:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] sample/logrow/logrow.c:143:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] mtab.c:170:6: style: Variable 'err' is reassigned a value before the old one has been used. [redundantAssignment] mtab.c:154:6: note: err is assigned mtab.c:170:6: note: err is overwritten mtab.c:39:34: style: Parameter 'ent' can be declared as pointer to const [constParameterPointer] mtab.c:47:29: style: Parameter 'pid_file' can be declared as pointer to const [constParameterPointer] fhsm/mvdown.c:334:18: style: Condition 'pid<0' is always true [knownConditionTrueFalse] fhsm/mvdown.c:328:7: note: Assuming that condition '!pid' is not redundant fhsm/mvdown.c:334:18: note: Condition 'pid<0' is always true fhsm/mvdown.c:323:3: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: in_ope [nullPointerOutOfMemory] fhsm/mvdown.c:318:18: note: Assuming allocation function fails fhsm/mvdown.c:318:18: note: Assignment 'in_ope=malloc(sizeof(*in_ope))', assigned value is 0 fhsm/mvdown.c:323:3: note: Null pointer dereference fhsm/mvdown.c:324:3: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: in_ope [nullPointerOutOfMemory] fhsm/mvdown.c:318:18: note: Assuming allocation function fails fhsm/mvdown.c:318:18: note: Assignment 'in_ope=malloc(sizeof(*in_ope))', assigned value is 0 fhsm/mvdown.c:324:3: note: Null pointer dereference fhsm/mvdown.c:181:70: style: Parameter 'stbr' can be declared as pointer to const [constParameterPointer] sample/logrow/logrow.c:60:21: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] sample/uloop/drivers/block/uloop.c:594:35: error: There is an unknown macro here somewhere. Configuration is required. If ULOOP_VERSION is a macro then please configure it. [unknownMacro] libau/rdu_lib.c:278:29: style: Parameter 'node' can be declared as pointer to const. However it seems that 'rdu_tfree' is a callback function, if 'node' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libau/rdu_lib.c:320:18: note: You might need to cast the function pointer here libau/rdu_lib.c:278:29: note: Parameter 'node' can be declared as pointer to const libau/rdu_lib.c:355:8: style: Variable 't' can be declared as pointer to const [constVariablePointer] sample/uloop/ulobdev.c:50:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cache_size [valueFlowBailoutIncompleteVar] sample/uloop/ulobdev.c:87:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] sample/uloop/ulobdev.c:122:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sample/uloop/ulobdev.c:139:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ULO_BITMAP [valueFlowBailoutIncompleteVar] sample/uloop/ulobdev.c:180:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] sample/uloop/libuloop.c:57:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_BLOCK [valueFlowBailoutIncompleteVar] sample/uloop/libuloop.c:94:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] sample/uloop/libuloop.c:121:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ULO_DEV [valueFlowBailoutIncompleteVar] sample/uloop/libuloop.c:173:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _SC_PAGESIZE [valueFlowBailoutIncompleteVar] sample/uloop/ulobdev.c:113:10: style: Condition 'err!=-1' is always true [knownConditionTrueFalse] sample/uloop/ulobdev.c:111:29: note: Assignment 'init_args->size=init_size()', assigned value is greater than -1 sample/uloop/ulobdev.c:112:6: note: err is assigned 'init_args->size' here. sample/uloop/ulobdev.c:113:10: note: Condition 'err!=-1' is always true sample/uloop/ulobdev.c:65:9: warning: If memory allocation fails, then there is a possible null pointer dereference: dst [nullPointerOutOfMemory] sample/uloop/ulobdev.c:62:12: note: Assuming allocation function fails sample/uloop/ulobdev.c:62:12: note: Assignment 'dst=mmap(NULL,size,PROT_WRITE,MAP_SHARED,ulo_cache_fd,start)', assigned value is 0 sample/uloop/ulobdev.c:65:9: note: Null pointer dereference sample/uloop/ulobdev.c:71:15: warning: If memory allocation fails, then there is a possible null pointer dereference: dst [nullPointerOutOfMemory] sample/uloop/ulobdev.c:62:12: note: Assuming allocation function fails sample/uloop/ulobdev.c:62:12: note: Assignment 'dst=mmap(NULL,size,PROT_WRITE,MAP_SHARED,ulo_cache_fd,start)', assigned value is 0 sample/uloop/ulobdev.c:71:15: note: Null pointer dereference sample/uloop/ulobdev.c:47:8: style: Variable 'src' can be declared as pointer to const [constVariablePointer] sample/uloop/ulohttp.c:54:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sample/uloop/ulohttp.c:92:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cache_size [valueFlowBailoutIncompleteVar] sample/uloop/ulohttp.c:143:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CURLOPT_RANGE [valueFlowBailoutIncompleteVar] sample/uloop/ulohttp.c:192:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sample/uloop/ulohttp.c:250:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sample/uloop/ulohttp.c:269:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ULO_BITMAP [valueFlowBailoutIncompleteVar] sample/uloop/ulohttp.c:318:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] umount.aufs.c:37:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] ver.c:40:34: error: There is an unknown macro here somewhere. Configuration is required. If AUFS_VERSION is a macro then please configure it. [unknownMacro] plink.c:286:3: warning:inconclusive: The buffer 'si' may not be null-terminated after the call to strncpy(). [terminateStrncpy] plink.c:116:7: style: Condition 'err' is always false [knownConditionTrueFalse] plink.c:115:18: note: Calling function 'na_append' returns 0 plink.c:115:18: note: Assignment 'err=na_append(plink_dir,de->d_name)', assigned value is 0 plink.c:116:7: note: Condition 'err' is always false plink.c:127:11: style: Condition 'ino==-1' is always false [knownConditionTrueFalse] plink.c:130:7: style: Condition 'err' is always false [knownConditionTrueFalse] plink.c:129:18: note: Calling function 'ia_append' returns 0 plink.c:129:18: note: Assignment 'err=ia_append(ino)', assigned value is 0 plink.c:130:7: note: Condition 'err' is always false plink.c:48:28: style: Parameter 'plink_dir' can be declared as pointer to const [constParameterPointer] plink.c:48:45: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] plink.c:143:34: style: Parameter 'si' can be declared as pointer to const [constParameterPointer] plink.c:184:27: style: Parameter 'cwd' can be declared as pointer to const [constParameterPointer] sample/uloop/libuloop.c:99:3: error: Resource leak: fd [resourceLeak] sample/uloop/libuloop.c:105:3: error: Resource leak: fd [resourceLeak] sample/uloop/libuloop.c:108:3: error: Resource leak: fd [resourceLeak] sample/uloop/libuloop.c:85:34: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] sample/uloop/libuloop.c:112:32: style: Parameter 'dev_path' can be declared as pointer to const [constParameterPointer] sample/uloop/libuloop.c:112:63: style: Parameter 'cache_path' can be declared as pointer to const [constParameterPointer] sample/uloop/ulohttp.c:155:18: style: Condition 'arg_for_curl.err' is always false [knownConditionTrueFalse] sample/uloop/ulohttp.c:138:21: note: Assignment 'arg_for_curl.err=0', assigned value is 0 sample/uloop/ulohttp.c:151:12: note: Assuming condition is false sample/uloop/ulohttp.c:155:18: note: Condition 'arg_for_curl.err' is always false sample/uloop/ulohttp.c:243:10: style: Condition 'err!=-1' is always true [knownConditionTrueFalse] sample/uloop/ulohttp.c:241:38: note: Assignment 'init_args->size=init_curl_and_size()', assigned value is greater than -1 sample/uloop/ulohttp.c:242:6: note: err is assigned 'init_args->size' here. sample/uloop/ulohttp.c:243:10: note: Condition 'err!=-1' is always true sample/uloop/ulohttp.c:112:15: warning: If memory allocation fails, then there is a possible null pointer dereference: o [nullPointerOutOfMemory] sample/uloop/ulohttp.c:100:10: note: Assuming allocation function fails sample/uloop/ulohttp.c:100:10: note: Assignment 'o=mmap(NULL,arg_for_curl.size,PROT_WRITE,MAP_SHARED,ulo_cache_fd,start)', assigned value is 0 sample/uloop/ulohttp.c:112:15: note: Null pointer dereference sample/uloop/ulohttp.c:85:8: style: Local variable 'ezcurl' shadows outer variable [shadowVariable] sample/uloop/ulohttp.c:36:14: note: Shadowed declaration sample/uloop/ulohttp.c:85:8: note: Shadow variable sample/uloop/ulohttp.c:60:37: style: Parameter 'got' can be declared as pointer to const. However it seems that 'store_from_curl' is a callback function, if 'got' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sample/uloop/ulohttp.c:219:6: note: You might need to cast the function pointer here sample/uloop/ulohttp.c:60:37: note: Parameter 'got' can be declared as pointer to const sample/uloop/ulohttp.c:128:17: style: Variable 'p' can be declared as pointer to const [constVariablePointer] mount.aufs.c:189:9: warning: If memory allocation fails, then there is a possible null pointer dereference: o [nullPointerOutOfMemory] mount.aufs.c:187:12: note: Assuming allocation function fails mount.aufs.c:187:12: note: Assignment 'o=malloc(l)', assigned value is 0 mount.aufs.c:189:9: note: Null pointer dereference mount.aufs.c:190:8: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] mount.aufs.c:187:12: note: Assuming allocation function fails mount.aufs.c:187:12: note: Assignment 'o=malloc(l)', assigned value is 0 mount.aufs.c:190:8: note: Null pointer addition mount.aufs.c:367:6: style: Variable 'err' is reassigned a value before the old one has been used. [redundantAssignment] mount.aufs.c:355:7: note: err is assigned mount.aufs.c:367:6: note: err is overwritten mount.aufs.c:124:28: style: Parameter 'opts' can be declared as const array [constParameter] mount.aufs.c:173:22: style: Variable 'str' can be declared as pointer to const [constVariablePointer] mount.aufs.c:223:22: style: Parameter 'flags' can be declared as const array [constParameter] diff: DONE