2024-04-23 23:40 ftp://ftp.de.debian.org/debian/pool/main/c/chordii/chordii_4.5.3+repack.orig.tar.gz cppcheck-options: --library=posix --library=gnu --check-library --inconclusive --enable=style,information --inline-suppr --disable=missingInclude --suppress=unmatchedSuppression --template=daca2 --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning -D__GNUC__ --platform=unix64 -j2 platform: Linux-6.6.15-amd64-x86_64-with-glibc2.37 python: 3.11.8 client-version: 1.3.53 compiler: g++ (Debian 13.2.0-13) 13.2.0 cppcheck: head 2.14.0 head-info: 7dab204 (2024-04-23 22:20:29 +0200) count: 69 69 elapsed-time: 1.8 1.7 head-timing-info: old-timing-info: head results: chordii-4.5.3+repack/src/a2crd.c:113:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] chordii-4.5.3+repack/src/a2crd.c:137:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] chordii-4.5.3+repack/src/a2crd.c:156:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] chordii-4.5.3+repack/src/a2crd.c:357:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] chordii-4.5.3+repack/src/a2crd.c:79:27: style: Array index 'mini' is used before limits check. [arrayIndexThenCheck] chordii-4.5.3+repack/src/a2crd.c:111:7: style: Parameter 'command' can be declared as pointer to const [constParameterPointer] chordii-4.5.3+repack/src/a2crd.c:127:8: style: Variable 'home' can be declared as pointer to const [constVariablePointer] chordii-4.5.3+repack/src/a2crd.c:95:6: style: Variable 'p_out' is assigned a value that is never used. [unreadVariable] chordii-4.5.3+repack/src/chordii.c:195:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] chordii-4.5.3+repack/src/chordii.c:320:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] chordii-4.5.3+repack/src/chordii.c:485:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] chordii-4.5.3+repack/src/chordii.c:1122:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] chordii-4.5.3+repack/src/chordii.c:1461:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] chordii-4.5.3+repack/src/common.c:66:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] chordii-4.5.3+repack/src/common.c:75:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] chordii-4.5.3+repack/src/common.c:85:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] chordii-4.5.3+repack/src/common.c:92:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] chordii-4.5.3+repack/src/common.c:117:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] chordii-4.5.3+repack/src/common.c:29:7: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] chordii-4.5.3+repack/src/common.c:45:7: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] chordii-4.5.3+repack/src/common.c:62:7: style: Parameter 'err_str' can be declared as pointer to const [constParameterPointer] chordii-4.5.3+repack/src/common.c:72:7: style: Parameter 'err_str' can be declared as pointer to const [constParameterPointer] chordii-4.5.3+repack/src/common.c:80:7: style: Parameter 'dbg_str' can be declared as pointer to const [constParameterPointer] chordii-4.5.3+repack/src/common.c:92:15: style: Variable 'version' can be declared as pointer to const [constVariablePointer] chordii-4.5.3+repack/src/grid.c:452:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] chordii-4.5.3+repack/src/grid.c:491:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] chordii-4.5.3+repack/src/chordii.c:905:23: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] chordii-4.5.3+repack/src/chordii.c:926:41: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] chordii-4.5.3+repack/src/chordii.c:927:31: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] chordii-4.5.3+repack/src/chordii.c:931:42: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] chordii-4.5.3+repack/src/chordii.c:934:17: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] chordii-4.5.3+repack/src/chordii.c:940:12: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] chordii-4.5.3+repack/src/chordii.c:953:12: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] chordii-4.5.3+repack/src/chordii.c:966:13: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] chordii-4.5.3+repack/src/chordii.c:971:13: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] chordii-4.5.3+repack/src/chordii.c:976:13: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] chordii-4.5.3+repack/src/chordii.c:985:12: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] chordii-4.5.3+repack/src/chordii.c:989:15: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] chordii-4.5.3+repack/src/chordii.c:1030:12: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] chordii-4.5.3+repack/src/chordii.c:1048:13: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] chordii-4.5.3+repack/src/chordii.c:1058:28: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] chordii-4.5.3+repack/src/chordii.c:696:12: style: Variable 'text_font' is reassigned a value before the old one has been used. [redundantAssignment] chordii-4.5.3+repack/src/chordii.c:694:12: note: text_font is assigned chordii-4.5.3+repack/src/chordii.c:696:12: note: text_font is overwritten chordii-4.5.3+repack/src/chordii.c:1334:6: style: Local variable 'c' shadows outer variable [shadowVariable] chordii-4.5.3+repack/src/chordii.c:39:2: note: Shadowed declaration chordii-4.5.3+repack/src/chordii.c:1334:6: note: Shadow variable chordii-4.5.3+repack/src/chordii.c:179:7: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] chordii-4.5.3+repack/src/chordii.c:318:7: style: Parameter 'command' can be declared as pointer to const [constParameterPointer] chordii-4.5.3+repack/src/chordii.c:903:9: style: Variable 'command' can be declared as pointer to const [constVariablePointer] chordii-4.5.3+repack/src/chordii.c:1263:8: style: Variable 'env_var' can be declared as pointer to const [constVariablePointer] chordii-4.5.3+repack/src/grid.c:471:19: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] chordii-4.5.3+repack/src/grid.c:480:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] chordii-4.5.3+repack/src/grid.c:529:14: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] chordii-4.5.3+repack/src/grid.c:535:24: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] chordii-4.5.3+repack/src/grid.c:542:12: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] chordii-4.5.3+repack/src/grid.c:550:24: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] chordii-4.5.3+repack/src/grid.c:558:32: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] chordii-4.5.3+repack/src/grid.c:577:12: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] chordii-4.5.3+repack/src/grid.c:371:22: style: Redundant condition: no_easy_grids. '!A || (A && B)' is equivalent to '!A || B' [redundantCondition] chordii-4.5.3+repack/src/grid.c:551:13: warning: Either the condition 'temp_str!=NULL' is redundant or there is possible null pointer dereference: temp_str. [nullPointerRedundantCheck] chordii-4.5.3+repack/src/grid.c:560:15: note: Assuming that condition 'temp_str!=NULL' is not redundant chordii-4.5.3+repack/src/grid.c:551:13: note: Null pointer dereference chordii-4.5.3+repack/src/grid.c:558:10: warning: Either the condition 'temp_str!=NULL' is redundant or there is possible null pointer dereference: temp_str. [nullPointerRedundantCheck] chordii-4.5.3+repack/src/grid.c:560:15: note: Assuming that condition 'temp_str!=NULL' is not redundant chordii-4.5.3+repack/src/grid.c:558:10: note: Null pointer dereference chordii-4.5.3+repack/src/grid.c:191:8: style: Parameter 'chord' can be declared as pointer to const [constParameterPointer] chordii-4.5.3+repack/src/grid.c:456:8: style: Parameter 'temp_str' can be declared as pointer to const [constParameterPointer] chordii-4.5.3+repack/src/grid.c:459:9: style: Variable 'str' can be declared as pointer to const [constVariablePointer] chordii-4.5.3+repack/src/grid.c:999:7: style: Parameter 'chord_name' can be declared as pointer to const [constParameterPointer] chordii-4.5.3+repack/src/iso.c:323:7: style: Parameter 'font' can be declared as pointer to const [constParameterPointer] chordii-4.5.3+repack/src/toc.c:41:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] chordii-4.5.3+repack/src/toc.c:124:21: style: Local variable 'toc_ptr' shadows outer variable [shadowVariable] chordii-4.5.3+repack/src/toc.c:33:20: note: Shadowed declaration chordii-4.5.3+repack/src/toc.c:124:21: note: Shadow variable chordii-4.5.3+repack/src/toc.c:71:7: style: Parameter 'title' can be declared as pointer to const [constParameterPointer] chordii-4.5.3+repack/src/toc.c:103:7: style: Parameter 'sub_title' can be declared as pointer to const [constParameterPointer] chordii-4.5.3+repack/src/xpose.c:42:14: style: Variable 'notes' can be declared as const array [constVariable] chordii-4.5.3+repack/windows/getopt.c:180:8: style: Variable 'current_argv' can be declared as pointer to const [constVariablePointer] diff: DONE