2026-05-05 15:39 ftp://ftp.de.debian.org/debian/pool/main/v/varmon/varmon_1.2.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-111-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04.1) 14.2.0 cppcheck: head 2.20.0 head-info: 6278f6b (2026-05-05 15:01:04 +0200) count: 52 55 elapsed-time: 4.6 3.5 head-timing-info: old-timing-info: head results: varmon-1.2.1/varmon.c:91:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DAC960_V1_DCDB_Timeout_10_seconds [valueFlowBailoutIncompleteVar] varmon-1.2.1/varmon.c:146:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] varmon-1.2.1/varmon.c:368:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DAC960_V1_DCDB_DataTransferDeviceToSystem [valueFlowBailoutIncompleteVar] varmon-1.2.1/varmon.c:402:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DAC960_V1_DCDB_NoDataTransfer [valueFlowBailoutIncompleteVar] varmon-1.2.1/varmon.c:434:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] varmon-1.2.1/varmon.c:528:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KEY_RIGHT [valueFlowBailoutIncompleteVar] varmon-1.2.1/varmon.c:759:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] varmon-1.2.1/varmon.c:875:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_BOLD [valueFlowBailoutIncompleteVar] varmon-1.2.1/varmon.c:1840:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_BOLD [valueFlowBailoutIncompleteVar] varmon-1.2.1/varmon.c:2569:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACS_ULCORNER [valueFlowBailoutIncompleteVar] varmon-1.2.1/varmon.c:2662:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINES [valueFlowBailoutIncompleteVar] varmon-1.2.1/varmon.c:3452:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] varmon-1.2.1/varmon.c:539:22: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] varmon-1.2.1/varmon.c:612:15: style: Obsolescent function 'rindex' called. It is recommended to use 'strrchr' instead. [prohibitedrindexCalled] varmon-1.2.1/varmon.c:718:7: style: Obsolescent function 'rindex' called. It is recommended to use 'strrchr' instead. [prohibitedrindexCalled] varmon-1.2.1/varmon.c:1439:15: style: Obsolescent function 'rindex' called. It is recommended to use 'strrchr' instead. [prohibitedrindexCalled] varmon-1.2.1/varmon.c:2270:12: style: Obsolescent function 'rindex' called. It is recommended to use 'strrchr' instead. [prohibitedrindexCalled] varmon-1.2.1/varmon.c:2319:11: style: Obsolescent function 'rindex' called. It is recommended to use 'strrchr' instead. [prohibitedrindexCalled] varmon-1.2.1/varmon.c:2349:11: style: Obsolescent function 'rindex' called. It is recommended to use 'strrchr' instead. [prohibitedrindexCalled] varmon-1.2.1/varmon.c:3209:14: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] varmon-1.2.1/varmon.c:3218:14: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] varmon-1.2.1/varmon.c:3232:14: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] varmon-1.2.1/varmon.c:3242:14: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] varmon-1.2.1/varmon.c:2656:5: style: Condition '!(init_card_pool(card_pool,tab_pool,no_cards))' is always false [knownConditionTrueFalse] varmon-1.2.1/varmon.c:2656:21: note: Calling function 'init_card_pool' returns 1 varmon-1.2.1/varmon.c:2656:5: note: Condition '!(init_card_pool(card_pool,tab_pool,no_cards))' is always false varmon-1.2.1/varmon.c:698:20: warning: Either the condition '!target' is redundant or there is possible null pointer dereference: target. [nullPointerRedundantCheck] varmon-1.2.1/varmon.c:699:7: note: Assuming that condition '!target' is not redundant varmon-1.2.1/varmon.c:698:20: note: Null pointer dereference varmon-1.2.1/varmon.c:706:27: warning: If resource allocation fails, then there is a possible null pointer dereference: targeth [nullPointerOutOfResources] varmon-1.2.1/varmon.c:698:19: note: Assuming allocation function fails varmon-1.2.1/varmon.c:698:19: note: Assignment 'targeth=fopen(target,"r+")', assigned value is 0 varmon-1.2.1/varmon.c:699:7: note: Assuming condition is false varmon-1.2.1/varmon.c:706:27: note: Null pointer dereference varmon-1.2.1/varmon.c:51:18: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] varmon-1.2.1/varmon.c:80:58: style: Parameter 'cdb' can be declared as pointer to const [constParameterPointer] varmon-1.2.1/varmon.c:138:7: style: Variable 'bus_n' can be declared as const array [constVariable] varmon-1.2.1/varmon.c:139:7: style: Variable 'bus_n_devfs' can be declared as const array [constVariable] varmon-1.2.1/varmon.c:521:7: style: Variable 'msg1' can be declared as const array [constVariable] varmon-1.2.1/varmon.c:679:19: style: Parameter 'target' can be declared as pointer to const [constParameterPointer] varmon-1.2.1/varmon.c:867:39: style: Parameter 'card_pool' can be declared as pointer to const [constParameterPointer] varmon-1.2.1/varmon.c:867:55: style: Parameter 'tab_pool' can be declared as pointer to const [constParameterPointer] varmon-1.2.1/varmon.c:2807:8: style: Variable 'h' can be declared as pointer to const [constVariablePointer] varmon-1.2.1/varmon.c:3279:8: style: Variable 'offset' can be declared as pointer to const [constVariablePointer] varmon-1.2.1/varmon.c:165:15: style: Variable 'status' is assigned a value that is never used. [unreadVariable] varmon-1.2.1/varmon.c:191:15: style: Variable 'status' is assigned a value that is never used. [unreadVariable] varmon-1.2.1/varmon.c:205:15: style: Variable 'status' is assigned a value that is never used. [unreadVariable] varmon-1.2.1/varmon.c:231:15: style: Variable 'status' is assigned a value that is never used. [unreadVariable] varmon-1.2.1/varmon.c:492:13: style: Variable 'status' is assigned a value that is never used. [unreadVariable] varmon-1.2.1/varmon.c:690:12: style: Variable 'run_cmd' is assigned a value that is never used. [unreadVariable] varmon-1.2.1/varmon.c:695:12: style: Variable 'run_cmd' is assigned a value that is never used. [unreadVariable] varmon-1.2.1/varmon.c:700:13: style: Variable 'run_cmd' is assigned a value that is never used. [unreadVariable] varmon-1.2.1/varmon.c:719:14: style: Variable 'run_cmd' is assigned a value that is never used. [unreadVariable] varmon-1.2.1/varmon.c:724:14: style: Variable 'run_cmd' is assigned a value that is never used. [unreadVariable] varmon-1.2.1/varmon.c:2451:10: style: Variable 'dummy' is assigned a value that is never used. [unreadVariable] varmon-1.2.1/varmon.c:2810:9: style: Variable 'h' is assigned a value that is never used. [unreadVariable] varmon-1.2.1/varmon.c:2812:14: style: Variable 'h' is assigned a value that is never used. [unreadVariable] varmon-1.2.1/varmon.c:2814:14: style: Variable 'h' is assigned a value that is never used. [unreadVariable] varmon-1.2.1/varmon.c:3228:21: style: Variable 'offset' is assigned a value that is never used. [unreadVariable] varmon-1.2.1/varmon.c:3362:16: style: Variable 'offset' is assigned a value that is never used. [unreadVariable] diff: 2.20.0 varmon-1.2.1/varmon.c:708:11: warning: If resource allocation fails, then there is a possible null pointer dereference: targeth [nullPointerOutOfResources] varmon-1.2.1/varmon.c:698:19: note: Assuming allocation function fails varmon-1.2.1/varmon.c:698:19: note: Assignment 'targeth=fopen(target,"r+")', assigned value is 0 varmon-1.2.1/varmon.c:699:7: note: Assuming condition is false varmon-1.2.1/varmon.c:708:11: note: Null pointer dereference 2.20.0 varmon-1.2.1/varmon.c:709:27: warning: If resource allocation fails, then there is a possible null pointer dereference: targeth [nullPointerOutOfResources] varmon-1.2.1/varmon.c:698:19: note: Assuming allocation function fails varmon-1.2.1/varmon.c:698:19: note: Assignment 'targeth=fopen(target,"r+")', assigned value is 0 varmon-1.2.1/varmon.c:699:7: note: Assuming condition is false varmon-1.2.1/varmon.c:709:27: note: Null pointer dereference 2.20.0 varmon-1.2.1/varmon.c:710:11: warning: If resource allocation fails, then there is a possible null pointer dereference: targeth [nullPointerOutOfResources] varmon-1.2.1/varmon.c:698:19: note: Assuming allocation function fails varmon-1.2.1/varmon.c:698:19: note: Assignment 'targeth=fopen(target,"r+")', assigned value is 0 varmon-1.2.1/varmon.c:699:7: note: Assuming condition is false varmon-1.2.1/varmon.c:710:11: note: Null pointer dereference 2.20.0 varmon-1.2.1/varmon.c:711:15: warning: If resource allocation fails, then there is a possible null pointer dereference: targeth [nullPointerOutOfResources] varmon-1.2.1/varmon.c:698:19: note: Assuming allocation function fails varmon-1.2.1/varmon.c:698:19: note: Assignment 'targeth=fopen(target,"r+")', assigned value is 0 varmon-1.2.1/varmon.c:699:7: note: Assuming condition is false varmon-1.2.1/varmon.c:711:15: note: Null pointer dereference 2.20.0 varmon-1.2.1/varmon.c:712:11: warning: If resource allocation fails, then there is a possible null pointer dereference: targeth [nullPointerOutOfResources] varmon-1.2.1/varmon.c:698:19: note: Assuming allocation function fails varmon-1.2.1/varmon.c:698:19: note: Assignment 'targeth=fopen(target,"r+")', assigned value is 0 varmon-1.2.1/varmon.c:699:7: note: Assuming condition is false varmon-1.2.1/varmon.c:712:11: note: Null pointer dereference head varmon-1.2.1/varmon.c:867:39: style: Parameter 'card_pool' can be declared as pointer to const [constParameterPointer] head varmon-1.2.1/varmon.c:867:55: style: Parameter 'tab_pool' can be declared as pointer to const [constParameterPointer] DONE