2025-05-05 11:25 ftp://ftp.de.debian.org/debian/pool/main/l/lcmaps-plugins-voms/lcmaps-plugins-voms_1.7.1.orig.tar.gz 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 -j1 platform: Linux-6.8.0-59-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.17.0 head-info: fcc0493 (2025-05-05 13:08:11 +0200) count: 66 66 elapsed-time: 2.8 3.4 head-timing-info: old-timing-info: head results: lcmaps-plugins-voms-1.7.1/src/utils/lcmaps_gridmapdir.c:188:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] lcmaps-plugins-voms-1.7.1/src/utils/lcmaps_gridmapdir.c:319:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] lcmaps-plugins-voms-1.7.1/src/utils/lcmaps_gridmapdir.c:401:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] lcmaps-plugins-voms-1.7.1/src/utils/lcmaps_gridmapdir.c:442:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] lcmaps-plugins-voms-1.7.1/src/utils/lcmaps_gridmapdir.c:496:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] lcmaps-plugins-voms-1.7.1/src/utils/lcmaps_gridmapdir.c:665:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] lcmaps-plugins-voms-1.7.1/src/utils/lcmaps_gridmapdir.c:847:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] lcmaps-plugins-voms-1.7.1/src/utils/lcmaps_gridmapdir.c:885:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] lcmaps-plugins-voms-1.7.1/src/utils/lcmaps_gridmapdir.c:969:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] lcmaps-plugins-voms-1.7.1/src/utils/lcmaps_gridmapdir.c:548:4: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] lcmaps-plugins-voms-1.7.1/src/utils/lcmaps_gridmapdir.c:711:11: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] lcmaps-plugins-voms-1.7.1/src/utils/lcmaps_gridmapdir.c:761:24: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] lcmaps-plugins-voms-1.7.1/src/utils/lcmaps_gridmapdir.c:891:24: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] lcmaps-plugins-voms-1.7.1/src/utils/lcmaps_gridmapdir.c:1028:21: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] lcmaps-plugins-voms-1.7.1/src/utils/lcmaps_gridmapfile.c:136:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] lcmaps-plugins-voms-1.7.1/src/utils/lcmaps_gridmapfile.c:288:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] lcmaps-plugins-voms-1.7.1/src/utils/lcmaps_gridmapfile.c:366:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] lcmaps-plugins-voms-1.7.1/src/utils/lcmaps_gridmapfile.c:391:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] lcmaps-plugins-voms-1.7.1/src/utils/lcmaps_gridmapfile.c:467:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] lcmaps-plugins-voms-1.7.1/src/utils/lcmaps_gridmapfile.c:549:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] lcmaps-plugins-voms-1.7.1/src/utils/lcmaps_gridmapfile.c:584:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] lcmaps-plugins-voms-1.7.1/src/utils/lcmaps_gridmapfile.c:704:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] lcmaps-plugins-voms-1.7.1/src/utils/lcmaps_gridmapfile.c:497:12: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] lcmaps-plugins-voms-1.7.1/src/utils/lcmaps_gridmapfile.c:553:14: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] lcmaps-plugins-voms-1.7.1/src/utils/lcmaps_gridmapfile.c:361:59: style: Variable 'rc' is reassigned a value before the old one has been used. [redundantAssignment] lcmaps-plugins-voms-1.7.1/src/utils/lcmaps_gridmapfile.c:360:7: note: rc is assigned lcmaps-plugins-voms-1.7.1/src/utils/lcmaps_gridmapfile.c:361:59: note: rc is overwritten lcmaps-plugins-voms-1.7.1/src/utils/lcmaps_gridmapfile.c:459:11: style: Variable 'char_p' can be declared as pointer to const [constVariablePointer] lcmaps-plugins-voms-1.7.1/src/utils/lcmaps_gridmapfile.c:463:20: style: Variable 'pw' can be declared as pointer to const [constVariablePointer] lcmaps-plugins-voms-1.7.1/src/utils/lcmaps_gridmapfile.c:545:20: style: Variable 'pw' can be declared as pointer to const [constVariablePointer] lcmaps-plugins-voms-1.7.1/src/utils/lcmaps_gridmapfile.c:361:31: style: Variable 'uid' is assigned a value that is never used. [unreadVariable] lcmaps-plugins-voms-1.7.1/src/voms/lcmaps_ban_fqan.c:139:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] lcmaps-plugins-voms-1.7.1/src/voms/lcmaps_ban_fqan.c:233:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] lcmaps-plugins-voms-1.7.1/src/voms/lcmaps_ban_fqan.c:292:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] lcmaps-plugins-voms-1.7.1/src/voms/lcmaps_ban_fqan.c:326:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] lcmaps-plugins-voms-1.7.1/src/voms/lcmaps_voms.c:166:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_WARNING [valueFlowBailoutIncompleteVar] lcmaps-plugins-voms-1.7.1/src/voms/lcmaps_voms.c:190:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] lcmaps-plugins-voms-1.7.1/src/voms/lcmaps_voms.c:249:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] lcmaps-plugins-voms-1.7.1/src/voms/lcmaps_voms.c:273:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] lcmaps-plugins-voms-1.7.1/src/voms/lcmaps_voms_localaccount.c:216:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] lcmaps-plugins-voms-1.7.1/src/voms/lcmaps_voms_localaccount.c:435:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] lcmaps-plugins-voms-1.7.1/src/voms/lcmaps_voms_localaccount.c:507:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] lcmaps-plugins-voms-1.7.1/src/voms/lcmaps_voms_localaccount.c:552:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] lcmaps-plugins-voms-1.7.1/src/voms/lcmaps_voms_localaccount.c:619:17: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] lcmaps-plugins-voms-1.7.1/src/voms/lcmaps_voms_localaccount.c:700:23: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] lcmaps-plugins-voms-1.7.1/src/voms/lcmaps_voms_localaccount.c:536:25: style: Variable 'pw' can be declared as pointer to const [constVariablePointer] lcmaps-plugins-voms-1.7.1/src/voms/lcmaps_voms_localgroup.c:216:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] lcmaps-plugins-voms-1.7.1/src/voms/lcmaps_voms_localgroup.c:333:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] lcmaps-plugins-voms-1.7.1/src/voms/lcmaps_voms_localgroup.c:392:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] lcmaps-plugins-voms-1.7.1/src/voms/lcmaps_voms_localgroup.c:429:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] lcmaps-plugins-voms-1.7.1/src/voms/lcmaps_voms_localgroup.c:513:21: portability: Non reentrant function 'getgrnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrnam_r'. [prohibitedgetgrnamCalled] lcmaps-plugins-voms-1.7.1/src/voms/lcmaps_voms_poolaccount.c:303:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] lcmaps-plugins-voms-1.7.1/src/voms/lcmaps_voms_poolaccount.c:654:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] lcmaps-plugins-voms-1.7.1/src/voms/lcmaps_voms_poolaccount.c:729:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] lcmaps-plugins-voms-1.7.1/src/voms/lcmaps_voms_poolaccount.c:788:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] lcmaps-plugins-voms-1.7.1/src/voms/lcmaps_voms_poolaccount.c:1197:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_WARNING [valueFlowBailoutIncompleteVar] lcmaps-plugins-voms-1.7.1/src/voms/lcmaps_voms_poolaccount.c:891:17: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] lcmaps-plugins-voms-1.7.1/src/voms/lcmaps_voms_poolaccount.c:1100:23: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] lcmaps-plugins-voms-1.7.1/src/voms/lcmaps_voms_poolaccount.c:1195:15: portability: Non reentrant function 'getgrgid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrgid_r'. [prohibitedgetgrgidCalled] lcmaps-plugins-voms-1.7.1/src/voms/lcmaps_voms_poolaccount.c:353:22: style: Condition 'argv[i+1][0]=='/'' is always true [knownConditionTrueFalse] lcmaps-plugins-voms-1.7.1/src/voms/lcmaps_voms_poolaccount.c:343:48: note: Assuming that condition 'argv[i+1][0]!='/'' is not redundant lcmaps-plugins-voms-1.7.1/src/voms/lcmaps_voms_poolaccount.c:353:22: note: Condition 'argv[i+1][0]=='/'' is always true lcmaps-plugins-voms-1.7.1/src/voms/lcmaps_voms_poolaccount.c:764:25: style: Variable 'pw' can be declared as pointer to const [constVariablePointer] lcmaps-plugins-voms-1.7.1/src/voms/lcmaps_voms_poolaccount.c:1191:19: style: Variable 'group_info' can be declared as pointer to const [constVariablePointer] lcmaps-plugins-voms-1.7.1/src/voms/lcmaps_voms_poolgroup.c:268:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] lcmaps-plugins-voms-1.7.1/src/voms/lcmaps_voms_poolgroup.c:453:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] lcmaps-plugins-voms-1.7.1/src/voms/lcmaps_voms_poolgroup.c:515:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] lcmaps-plugins-voms-1.7.1/src/voms/lcmaps_voms_poolgroup.c:556:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] lcmaps-plugins-voms-1.7.1/src/voms/lcmaps_voms_poolgroup.c:689:21: portability: Non reentrant function 'getgrnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrnam_r'. [prohibitedgetgrnamCalled] lcmaps-plugins-voms-1.7.1/src/voms/lcmaps_voms_poolgroup.c:318:22: style: Condition 'argv[i+1][0]=='/'' is always true [knownConditionTrueFalse] lcmaps-plugins-voms-1.7.1/src/voms/lcmaps_voms_poolgroup.c:308:48: note: Assuming that condition 'argv[i+1][0]!='/'' is not redundant lcmaps-plugins-voms-1.7.1/src/voms/lcmaps_voms_poolgroup.c:318:22: note: Condition 'argv[i+1][0]=='/'' is always true diff: DONE