2026-05-31 21:22 ftp://ftp.de.debian.org/debian/pool/main/b/bchunk/bchunk_1.2.2+git20220715+ds.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.12.88+deb13-amd64-x86_64-with-glibc2.41 python: 3.12.13 client-version: 1.4.0 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.20.0 head-info: 8c14fc7 (2026-05-31 09:56:45 +0200) count: 22 17 elapsed-time: 0.1 0.1 head-timing-info: old-timing-info: head results: bchunk-1.2.2+git20220715+ds/bchunk.c:151:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] bchunk-1.2.2+git20220715+ds/bchunk.c:210:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optind [valueFlowBailoutIncompleteVar] bchunk-1.2.2+git20220715+ds/bchunk.c:274:74: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] bchunk-1.2.2+git20220715+ds/bchunk.c:388:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] bchunk-1.2.2+git20220715+ds/bchunk.c:559:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] bchunk-1.2.2+git20220715+ds/bchunk.c:170:16: error: Returning pointer to local variable 'dst' that will be invalid when returning. [returnDanglingLifetime] bchunk-1.2.2+git20220715+ds/bchunk.c:170:17: note: Passed to 'strncpy'. bchunk-1.2.2+git20220715+ds/bchunk.c:164:8: note: Variable created here. bchunk-1.2.2+git20220715+ds/bchunk.c:170:16: note: Returning pointer to local variable 'dst' that will be invalid when returning. bchunk-1.2.2+git20220715+ds/bchunk.c:619:17: style: Variable 'track->bsize' is reassigned a value before the old one has been used. [redundantAssignment] bchunk-1.2.2+git20220715+ds/bchunk.c:618:17: note: track->bsize is assigned bchunk-1.2.2+git20220715+ds/bchunk.c:619:17: note: track->bsize is overwritten bchunk-1.2.2+git20220715+ds/bchunk.c:260:33: style: Argument 'track' shadows outer variable [shadowVariable] bchunk-1.2.2+git20220715+ds/bchunk.c:124:17: note: Shadowed variable bchunk-1.2.2+git20220715+ds/bchunk.c:260:33: note: Shadow argument bchunk-1.2.2+git20220715+ds/bchunk.c:269:51: style: Argument 'track' shadows outer variable [shadowVariable] bchunk-1.2.2+git20220715+ds/bchunk.c:124:17: note: Shadowed variable bchunk-1.2.2+git20220715+ds/bchunk.c:269:51: note: Shadow argument bchunk-1.2.2+git20220715+ds/bchunk.c:298:35: style: Argument 'track' shadows outer variable [shadowVariable] bchunk-1.2.2+git20220715+ds/bchunk.c:124:17: note: Shadowed variable bchunk-1.2.2+git20220715+ds/bchunk.c:298:35: note: Shadow argument bchunk-1.2.2+git20220715+ds/bchunk.c:377:42: style: Argument 'track' shadows outer variable [shadowVariable] bchunk-1.2.2+git20220715+ds/bchunk.c:124:17: note: Shadowed variable bchunk-1.2.2+git20220715+ds/bchunk.c:377:42: note: Shadow argument bchunk-1.2.2+git20220715+ds/bchunk.c:491:32: style: Argument 'track' shadows outer variable [shadowVariable] bchunk-1.2.2+git20220715+ds/bchunk.c:124:17: note: Shadowed variable bchunk-1.2.2+git20220715+ds/bchunk.c:491:32: note: Shadow argument bchunk-1.2.2+git20220715+ds/bchunk.c:491:45: style: Argument 'binfile' shadows outer variable [shadowVariable] bchunk-1.2.2+git20220715+ds/bchunk.c:111:7: note: Shadowed variable bchunk-1.2.2+git20220715+ds/bchunk.c:491:45: note: Shadow argument bchunk-1.2.2+git20220715+ds/bchunk.c:491:60: style: Argument 'basefile' shadows outer variable [shadowVariable] bchunk-1.2.2+git20220715+ds/bchunk.c:110:7: note: Shadowed variable bchunk-1.2.2+git20220715+ds/bchunk.c:491:60: note: Shadow argument bchunk-1.2.2+git20220715+ds/bchunk.c:491:74: style: Argument 'trackadd' shadows outer variable [shadowVariable] bchunk-1.2.2+git20220715+ds/bchunk.c:121:5: note: Shadowed variable bchunk-1.2.2+git20220715+ds/bchunk.c:491:74: note: Shadow argument bchunk-1.2.2+git20220715+ds/bchunk.c:165:8: style: Variable 'e' can be declared as pointer to const [constVariablePointer] bchunk-1.2.2+git20220715+ds/bchunk.c:260:33: style: Parameter 'track' can be declared as pointer to const [constParameterPointer] bchunk-1.2.2+git20220715+ds/bchunk.c:261:14: style: Variable 'ext_wav' can be declared as const array [constVariable] bchunk-1.2.2+git20220715+ds/bchunk.c:298:48: style: Parameter 'modes' can be declared as pointer to const [constParameterPointer] bchunk-1.2.2+git20220715+ds/bchunk.c:382:20: style: Variable 'ep' can be declared as pointer to const [constVariablePointer] bchunk-1.2.2+git20220715+ds/bchunk.c:492:8: style: Variable 'e' can be declared as pointer to const [constVariablePointer] bchunk-1.2.2+git20220715+ds/bchunk.c:550:28: style: Variable 'u' can be declared as pointer to const [constVariablePointer] diff: 2.20.0 bchunk-1.2.2+git20220715+ds/bchunk.c:162:23: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] 2.20.0 bchunk-1.2.2+git20220715+ds/bchunk.c:234:24: style: Parameter 's' can be declared as pointer to const [constParameterPointer] head bchunk-1.2.2+git20220715+ds/bchunk.c:260:33: style: Argument 'track' shadows outer variable [shadowVariable] bchunk-1.2.2+git20220715+ds/bchunk.c:124:17: note: Shadowed variable bchunk-1.2.2+git20220715+ds/bchunk.c:260:33: note: Shadow argument head bchunk-1.2.2+git20220715+ds/bchunk.c:269:51: style: Argument 'track' shadows outer variable [shadowVariable] bchunk-1.2.2+git20220715+ds/bchunk.c:124:17: note: Shadowed variable bchunk-1.2.2+git20220715+ds/bchunk.c:269:51: note: Shadow argument head bchunk-1.2.2+git20220715+ds/bchunk.c:298:35: style: Argument 'track' shadows outer variable [shadowVariable] bchunk-1.2.2+git20220715+ds/bchunk.c:124:17: note: Shadowed variable bchunk-1.2.2+git20220715+ds/bchunk.c:298:35: note: Shadow argument head bchunk-1.2.2+git20220715+ds/bchunk.c:377:42: style: Argument 'track' shadows outer variable [shadowVariable] bchunk-1.2.2+git20220715+ds/bchunk.c:124:17: note: Shadowed variable bchunk-1.2.2+git20220715+ds/bchunk.c:377:42: note: Shadow argument head bchunk-1.2.2+git20220715+ds/bchunk.c:491:32: style: Argument 'track' shadows outer variable [shadowVariable] bchunk-1.2.2+git20220715+ds/bchunk.c:124:17: note: Shadowed variable bchunk-1.2.2+git20220715+ds/bchunk.c:491:32: note: Shadow argument head bchunk-1.2.2+git20220715+ds/bchunk.c:491:45: style: Argument 'binfile' shadows outer variable [shadowVariable] bchunk-1.2.2+git20220715+ds/bchunk.c:111:7: note: Shadowed variable bchunk-1.2.2+git20220715+ds/bchunk.c:491:45: note: Shadow argument head bchunk-1.2.2+git20220715+ds/bchunk.c:491:60: style: Argument 'basefile' shadows outer variable [shadowVariable] bchunk-1.2.2+git20220715+ds/bchunk.c:110:7: note: Shadowed variable bchunk-1.2.2+git20220715+ds/bchunk.c:491:60: note: Shadow argument head bchunk-1.2.2+git20220715+ds/bchunk.c:491:74: style: Argument 'trackadd' shadows outer variable [shadowVariable] bchunk-1.2.2+git20220715+ds/bchunk.c:121:5: note: Shadowed variable bchunk-1.2.2+git20220715+ds/bchunk.c:491:74: note: Shadow argument 2.20.0 bchunk-1.2.2+git20220715+ds/bchunk.c:550:8: style: Variable 'b' can be declared as pointer to const [constVariablePointer] DONE