2025-05-05 16:20 ftp://ftp.de.debian.org/debian/pool/main/libc/libconvert-uulib-perl/libconvert-uulib-perl_1.8+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 -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: 89 89 elapsed-time: 9.4 9.7 head-timing-info: old-timing-info: head results: Convert-UUlib-1.8/uulib/ecb.h:933:25: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] Convert-UUlib-1.8/uulib/ecb.h:859:24: style: Local variable 's' shadows outer variable [shadowVariable] Convert-UUlib-1.8/uulib/ecb.h:844:16: note: Shadowed declaration Convert-UUlib-1.8/uulib/ecb.h:859:24: note: Shadow variable Convert-UUlib-1.8/uulib/ecb.h:912:19: error: Signed integer overflow for expression '14-24'. [integerOverflow] Convert-UUlib-1.8/uulib/fptools.c:476:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] Convert-UUlib-1.8/uulib/fptools.c:86:18: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] Convert-UUlib-1.8/uulib/fptools.c:107:31: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] Convert-UUlib-1.8/uulib/fptools.c:228:30: style: Parameter 'str2' can be declared as pointer to const [constParameterPointer] Convert-UUlib-1.8/uulib/fptools.c:370:9: style: Variable 'p1' can be declared as pointer to const [constVariablePointer] Convert-UUlib-1.8/uulib/fptools.c:370:23: style: Variable 'p2' can be declared as pointer to const [constVariablePointer] Convert-UUlib-1.8/uulib/fptools.c:449:9: style: Variable 'end' can be declared as pointer to const [constVariablePointer] Convert-UUlib-1.8/uulib/safealloc.c:59:18: style: Parameter 'mem' can be declared as pointer to const [constParameterPointer] Convert-UUlib-1.8/uulib/uucheck.c:124:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable uu_ignreply [valueFlowBailoutIncompleteVar] Convert-UUlib-1.8/uulib/uucheck.c:400:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable uu_ignreply [valueFlowBailoutIncompleteVar] Convert-UUlib-1.8/uulib/uucheck.c:716:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable uufile [valueFlowBailoutIncompleteVar] Convert-UUlib-1.8/uulib/uucheck.c:995:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UUGlobalFileList [valueFlowBailoutIncompleteVar] Convert-UUlib-1.8/uulib/uucheck.c:1283:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UUGlobalFileList [valueFlowBailoutIncompleteVar] Convert-UUlib-1.8/uulib/uucheck.c:155:7: style: Redundant initialization for 'ptr'. The initialized value is overwritten before it is read. [redundantInitialization] Convert-UUlib-1.8/uulib/uucheck.c:108:13: note: ptr is initialized Convert-UUlib-1.8/uulib/uucheck.c:155:7: note: ptr is overwritten Convert-UUlib-1.8/uulib/uucheck.c:106:37: style: Parameter 'ptonum' can be declared as pointer to const [constParameterPointer] Convert-UUlib-1.8/uulib/uuencode.c:257:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable YENC_ENCODED [valueFlowBailoutIncompleteVar] Convert-UUlib-1.8/uulib/uuencode.c:637:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable YENC_ENCODED [valueFlowBailoutIncompleteVar] Convert-UUlib-1.8/uulib/uuencode.c:807:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable YENC_ENCODED [valueFlowBailoutIncompleteVar] Convert-UUlib-1.8/uulib/uuencode.c:1066:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable YENC_ENCODED [valueFlowBailoutIncompleteVar] Convert-UUlib-1.8/uulib/uuencode.c:1197:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable YENC_ENCODED [valueFlowBailoutIncompleteVar] Convert-UUlib-1.8/uulib/uuencode.c:1521:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable YENC_ENCODED [valueFlowBailoutIncompleteVar] Convert-UUlib-1.8/uulib/uuencode.c:1633:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable YENC_ENCODED [valueFlowBailoutIncompleteVar] Convert-UUlib-1.8/uulib/uuencode.c:250:25: style: Variable 'table' can be declared as pointer to const [constVariablePointer] Convert-UUlib-1.8/uulib/uuencode.c:250:33: style: Variable 'tptr' can be declared as pointer to const [constVariablePointer] Convert-UUlib-1.8/uulib/uulib.c:383:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mssdepth [valueFlowBailoutIncompleteVar] Convert-UUlib-1.8/uulib/uulib.c:485:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable uuprogress [valueFlowBailoutIncompleteVar] Convert-UUlib-1.8/uulib/uulib.c:601:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UURET_ILLVAL [valueFlowBailoutIncompleteVar] Convert-UUlib-1.8/uulib/uulib.c:609:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable uuretcodes [valueFlowBailoutIncompleteVar] Convert-UUlib-1.8/uulib/uulib.c:623:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UURET_OK [valueFlowBailoutIncompleteVar] Convert-UUlib-1.8/uulib/uulib.c:635:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UURET_OK [valueFlowBailoutIncompleteVar] Convert-UUlib-1.8/uulib/uulib.c:645:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UURET_OK [valueFlowBailoutIncompleteVar] Convert-UUlib-1.8/uulib/uulib.c:655:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UURET_OK [valueFlowBailoutIncompleteVar] Convert-UUlib-1.8/uulib/uulib.c:665:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UURET_OK [valueFlowBailoutIncompleteVar] Convert-UUlib-1.8/uulib/uulib.c:730:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_NOT_OPEN_SOURCE [valueFlowBailoutIncompleteVar] Convert-UUlib-1.8/uulib/uulib.c:953:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UURET_ILLVAL [valueFlowBailoutIncompleteVar] Convert-UUlib-1.8/uulib/uulib.c:1175:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UURET_OK [valueFlowBailoutIncompleteVar] Convert-UUlib-1.8/uulib/uulib.c:1256:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UURET_ILLVAL [valueFlowBailoutIncompleteVar] Convert-UUlib-1.8/uulib/uulib.c:1275:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UURET_ILLVAL [valueFlowBailoutIncompleteVar] Convert-UUlib-1.8/uulib/uulib.c:1306:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_TMP_NOT_REMOVED [valueFlowBailoutIncompleteVar] Convert-UUlib-1.8/uulib/uulib.c:1295:11: style: Variable 'liter' can be declared as pointer to const [constVariablePointer] Convert-UUlib-1.8/uulib/uulib.c:1296:11: style: Variable 'fiter' can be declared as pointer to const [constVariablePointer] Convert-UUlib-1.8/uulib/uulib.c:355:23: warning: Uninitialized variable: now [uninitvar] Convert-UUlib-1.8/uulib/uulib.c:346:23: note: Assuming condition is true Convert-UUlib-1.8/uulib/uulib.c:355:23: note: Uninitialized variable: now Convert-UUlib-1.8/uulib/uulib.c:1031:14: style: Variable 'mask' is assigned a value that is never used. [unreadVariable] Convert-UUlib-1.8/uulib/uunconc.c:174:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable B64EncodeTable [valueFlowBailoutIncompleteVar] Convert-UUlib-1.8/uulib/uunconc.c:303:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable YENC_ENCODED [valueFlowBailoutIncompleteVar] Convert-UUlib-1.8/uulib/uunconc.c:573:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UU_ENCODED [valueFlowBailoutIncompleteVar] Convert-UUlib-1.8/uulib/uunconc.c:606:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable YENC_ENCODED [valueFlowBailoutIncompleteVar] Convert-UUlib-1.8/uulib/uunconc.c:734:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable uugen_inbuffer [valueFlowBailoutIncompleteVar] Convert-UUlib-1.8/uulib/uunconc.c:835:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable uugen_inbuffer [valueFlowBailoutIncompleteVar] Convert-UUlib-1.8/uulib/uunconc.c:900:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable B64ENCODED [valueFlowBailoutIncompleteVar] Convert-UUlib-1.8/uulib/uunconc.c:960:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CRC32_INIT [valueFlowBailoutIncompleteVar] Convert-UUlib-1.8/uulib/uunconc.c:1326:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UURET_ILLVAL [valueFlowBailoutIncompleteVar] Convert-UUlib-1.8/uulib/uunconc.c:1741:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable headers [valueFlowBailoutIncompleteVar] Convert-UUlib-1.8/uulib/uunconc.c:1354:24: style: Obsolescent function 'tmpnam' called. It is recommended to use 'tmpfile', 'mkstemp' or 'mkdtemp' instead. [prohibitedtmpnamCalled] Convert-UUlib-1.8/uulib/uunconc.c:206:10: style: Condition 'len<3' is always false [knownConditionTrueFalse] Convert-UUlib-1.8/uulib/uunconc.c:196:43: note: Assuming that condition '(len=strlen(string))<3' is not redundant Convert-UUlib-1.8/uulib/uunconc.c:206:10: note: Condition 'len<3' is always false Convert-UUlib-1.8/uulib/uunconc.c:248:11: style: Variable 'res' is reassigned a value before the old one has been used. [redundantAssignment] Convert-UUlib-1.8/uulib/uunconc.c:244:74: note: res is assigned Convert-UUlib-1.8/uulib/uunconc.c:248:11: note: res is overwritten Convert-UUlib-1.8/uulib/uunconc.c:248:11: style: Variable 'res' is reassigned a value before the old one has been used. [redundantAssignment] Convert-UUlib-1.8/uulib/uunconc.c:245:74: note: res is assigned Convert-UUlib-1.8/uulib/uunconc.c:248:11: note: res is overwritten Convert-UUlib-1.8/uulib/uunconc.c:248:11: style: Variable 'res' is reassigned a value before the old one has been used. [redundantAssignment] Convert-UUlib-1.8/uulib/uunconc.c:246:74: note: res is assigned Convert-UUlib-1.8/uulib/uunconc.c:248:11: note: res is overwritten Convert-UUlib-1.8/uulib/uunconc.c:789:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] Convert-UUlib-1.8/uulib/uunconc.c:590:8: style: Variable 'table' can be declared as pointer to const [constVariablePointer] Convert-UUlib-1.8/uulib/uunconc.c:732:12: style: Parameter 'boundary' can be declared as pointer to const [constParameterPointer] Convert-UUlib-1.8/uulib/uunconc.c:833:12: style: Parameter 'boundary' can be declared as pointer to const [constParameterPointer] Convert-UUlib-1.8/uulib/uunconc.c:912:21: warning: Uninitialized variable: z2 [uninitvar] Convert-UUlib-1.8/uulib/uunconc.c:901:38: note: Assuming condition is false Convert-UUlib-1.8/uulib/uunconc.c:912:21: note: Uninitialized variable: z2 Convert-UUlib-1.8/uulib/uunconc.c:604:6: style: Variable 'z1' is assigned a value that is never used. [unreadVariable] Convert-UUlib-1.8/uulib/uunconc.c:604:21: style: Variable 'z4' is assigned a value that is never used. [unreadVariable] Convert-UUlib-1.8/uulib/uunconc.c:914:8: style: Variable 's' is assigned a value that is never used. [unreadVariable] Convert-UUlib-1.8/uulib/uunconc.c:919:8: style: Variable 's' is assigned a value that is never used. [unreadVariable] Convert-UUlib-1.8/uulib/uuscan.c:211:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] Convert-UUlib-1.8/uulib/uuscan.c:612:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UURET_OK [valueFlowBailoutIncompleteVar] Convert-UUlib-1.8/uulib/uuscan.c:1475:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UURET_OK [valueFlowBailoutIncompleteVar] Convert-UUlib-1.8/uulib/uuscan.c:516:5: style: Condition '*value' is always true [knownConditionTrueFalse] Convert-UUlib-1.8/uulib/uuscan.c:515:54: style: Same expression '*value' found multiple times in chain of '&&' operators. [duplicateExpression] Convert-UUlib-1.8/uulib/uuscan.c:202:7: style: Redundant initialization for 'ptr'. The initialized value is overwritten before it is read. [redundantInitialization] Convert-UUlib-1.8/uulib/uuscan.c:184:12: note: ptr is initialized Convert-UUlib-1.8/uulib/uuscan.c:202:7: note: ptr is overwritten Convert-UUlib-1.8/uulib/uuscan.c:923:12: style: Local variable 'oldposition' shadows outer variable [shadowVariable] Convert-UUlib-1.8/uulib/uuscan.c:608:22: note: Shadowed declaration Convert-UUlib-1.8/uulib/uuscan.c:923:12: note: Shadow variable Convert-UUlib-1.8/uulib/uuscan.c:163:21: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] Convert-UUlib-1.8/uulib/uuscan.c:328:19: style: Parameter 'attribute' can be declared as pointer to const [constParameterPointer] Convert-UUlib-1.8/uulib/uuscan.c:405:9: style: Variable 'value' can be declared as pointer to const [constVariablePointer] Convert-UUlib-1.8/uulib/uuscan.c:597:10: style: Parameter 'boundary' can be declared as pointer to const [constParameterPointer] Convert-UUlib-1.8/uulib/uuscan.c:601:27: style: Variable 'p3' can be declared as pointer to const [constVariablePointer] Convert-UUlib-1.8/uulib/uuscan.c:1382:17: style: Variable 'oldposition' is assigned a value that is never used. [unreadVariable] Convert-UUlib-1.8/uulib/uustring.c:164:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UUMSG_ERROR [valueFlowBailoutIncompleteVar] Convert-UUlib-1.8/uulib/uuutil.c:130:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_TMP_NOT_REMOVED [valueFlowBailoutIncompleteVar] Convert-UUlib-1.8/uulib/uuutil.c:166:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable headers [valueFlowBailoutIncompleteVar] Convert-UUlib-1.8/uulib/uuutil.c:323:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UUGlobalFileList [valueFlowBailoutIncompleteVar] Convert-UUlib-1.8/uulib/uuutil.c:435:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UUGlobalFileList [valueFlowBailoutIncompleteVar] Convert-UUlib-1.8/uulib/uuutil.c:218:19: style: Parameter 'in' can be declared as pointer to const [constParameterPointer] diff: DONE