2025-05-10 09:42 ftp://ftp.de.debian.org/debian/pool/main/f/fbset/fbset_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 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: 1bbbc28 (2025-05-10 10:33:09 +0200) count: 39 33 elapsed-time: 0.6 0.6 head-timing-info: old-timing-info: head results: fbset-2.1/GetVideoMode.c:71:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DTAG_DISP [valueFlowBailoutIncompleteVar] fbset-2.1/GetVideoMode.c:215:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_ID [valueFlowBailoutIncompleteVar] fbset-2.1/GetVideoMode.c:92:69: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] fbset-2.1/GetVideoMode.c:93:69: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] fbset-2.1/GetVideoMode.c:94:69: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] fbset-2.1/GetVideoMode.c:95:69: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] fbset-2.1/GetVideoMode.c:97:71: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] fbset-2.1/GetVideoMode.c:98:76: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] fbset-2.1/GetVideoMode.c:199:19: style: Variable 'rdargs' can be declared as pointer to const [constVariablePointer] fbset-2.1/GetVideoMode.c:204:12: style: Variable 'ids' can be declared as pointer to const [constVariablePointer] fbset-2.1/GetVideoMode.c:207:17: style: Variable 'rdargs' is assigned a value that is never used. [unreadVariable] fbset-2.1/fbset.c:244:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] fbset-2.1/fbset.c:263:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] fbset-2.1/fbset.c:285:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fbset-2.1/fbset.c:296:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fbset-2.1/fbset.c:307:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fbset-2.1/fbset.c:462:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fbset-2.1/fbset.c:669:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fbset-2.1/fbset.c:669:2: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fbset-2.1/fbset.c:669:2: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fbset-2.1/fbset.c:669:2: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fbset-2.1/fbset.c:674:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fbset-2.1/fbset.c:674:2: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fbset-2.1/fbset.c:674:2: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fbset-2.1/fbset.c:674:2: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fbset-2.1/fbset.c:444:6: warning: If memory allocation fails, then there is a possible null pointer dereference: vmode2 [nullPointerOutOfMemory] fbset-2.1/fbset.c:443:20: note: Assuming allocation function fails fbset-2.1/fbset.c:443:20: note: Assignment 'vmode2=malloc(sizeof(struct VideoMode))', assigned value is 0 fbset-2.1/fbset.c:444:6: note: Null pointer dereference fbset-2.1/fbset.c:803:20: warning: If memory allocation fails, then there is a possible null pointer dereference: vmode [nullPointerOutOfMemory] fbset-2.1/fbset.c:443:20: note: Assuming allocation function fails fbset-2.1/fbset.c:443:20: note: Assignment 'vmode2=malloc(sizeof(struct VideoMode))', assigned value is 0 fbset-2.1/fbset.c:445:24: note: Calling function 'FillScanRates', 1st argument 'vmode2' value is 0 fbset-2.1/fbset.c:803:20: note: Null pointer dereference fbset-2.1/fbset.c:803:32: warning: If memory allocation fails, then there is a possible null pointer dereference: vmode [nullPointerOutOfMemory] fbset-2.1/fbset.c:443:20: note: Assuming allocation function fails fbset-2.1/fbset.c:443:20: note: Assignment 'vmode2=malloc(sizeof(struct VideoMode))', assigned value is 0 fbset-2.1/fbset.c:445:24: note: Calling function 'FillScanRates', 1st argument 'vmode2' value is 0 fbset-2.1/fbset.c:803:32: note: Null pointer dereference fbset-2.1/fbset.c:803:44: warning: If memory allocation fails, then there is a possible null pointer dereference: vmode [nullPointerOutOfMemory] fbset-2.1/fbset.c:443:20: note: Assuming allocation function fails fbset-2.1/fbset.c:443:20: note: Assignment 'vmode2=malloc(sizeof(struct VideoMode))', assigned value is 0 fbset-2.1/fbset.c:445:24: note: Calling function 'FillScanRates', 1st argument 'vmode2' value is 0 fbset-2.1/fbset.c:803:44: note: Null pointer dereference fbset-2.1/fbset.c:803:57: warning: If memory allocation fails, then there is a possible null pointer dereference: vmode [nullPointerOutOfMemory] fbset-2.1/fbset.c:443:20: note: Assuming allocation function fails fbset-2.1/fbset.c:443:20: note: Assignment 'vmode2=malloc(sizeof(struct VideoMode))', assigned value is 0 fbset-2.1/fbset.c:445:24: note: Calling function 'FillScanRates', 1st argument 'vmode2' value is 0 fbset-2.1/fbset.c:803:57: note: Null pointer dereference fbset-2.1/fbset.c:804:20: warning: If memory allocation fails, then there is a possible null pointer dereference: vmode [nullPointerOutOfMemory] fbset-2.1/fbset.c:443:20: note: Assuming allocation function fails fbset-2.1/fbset.c:443:20: note: Assignment 'vmode2=malloc(sizeof(struct VideoMode))', assigned value is 0 fbset-2.1/fbset.c:445:24: note: Calling function 'FillScanRates', 1st argument 'vmode2' value is 0 fbset-2.1/fbset.c:804:20: note: Null pointer dereference fbset-2.1/fbset.c:804:33: warning: If memory allocation fails, then there is a possible null pointer dereference: vmode [nullPointerOutOfMemory] fbset-2.1/fbset.c:443:20: note: Assuming allocation function fails fbset-2.1/fbset.c:443:20: note: Assignment 'vmode2=malloc(sizeof(struct VideoMode))', assigned value is 0 fbset-2.1/fbset.c:445:24: note: Calling function 'FillScanRates', 1st argument 'vmode2' value is 0 fbset-2.1/fbset.c:804:33: note: Null pointer dereference fbset-2.1/fbset.c:804:45: warning: If memory allocation fails, then there is a possible null pointer dereference: vmode [nullPointerOutOfMemory] fbset-2.1/fbset.c:443:20: note: Assuming allocation function fails fbset-2.1/fbset.c:443:20: note: Assignment 'vmode2=malloc(sizeof(struct VideoMode))', assigned value is 0 fbset-2.1/fbset.c:445:24: note: Calling function 'FillScanRates', 1st argument 'vmode2' value is 0 fbset-2.1/fbset.c:804:45: note: Null pointer dereference fbset-2.1/fbset.c:804:58: warning: If memory allocation fails, then there is a possible null pointer dereference: vmode [nullPointerOutOfMemory] fbset-2.1/fbset.c:443:20: note: Assuming allocation function fails fbset-2.1/fbset.c:443:20: note: Assignment 'vmode2=malloc(sizeof(struct VideoMode))', assigned value is 0 fbset-2.1/fbset.c:445:24: note: Calling function 'FillScanRates', 1st argument 'vmode2' value is 0 fbset-2.1/fbset.c:804:58: note: Null pointer dereference fbset-2.1/fbset.c:806:9: warning: If memory allocation fails, then there is a possible null pointer dereference: vmode [nullPointerOutOfMemory] fbset-2.1/fbset.c:443:20: note: Assuming allocation function fails fbset-2.1/fbset.c:443:20: note: Assignment 'vmode2=malloc(sizeof(struct VideoMode))', assigned value is 0 fbset-2.1/fbset.c:445:24: note: Calling function 'FillScanRates', 1st argument 'vmode2' value is 0 fbset-2.1/fbset.c:806:9: note: Null pointer dereference fbset-2.1/fbset.c:814:9: warning: If memory allocation fails, then there is a possible null pointer dereference: vmode [nullPointerOutOfMemory] fbset-2.1/fbset.c:443:20: note: Assuming allocation function fails fbset-2.1/fbset.c:443:20: note: Assignment 'vmode2=malloc(sizeof(struct VideoMode))', assigned value is 0 fbset-2.1/fbset.c:445:24: note: Calling function 'FillScanRates', 1st argument 'vmode2' value is 0 fbset-2.1/fbset.c:811:17: note: Assuming condition is false fbset-2.1/fbset.c:814:9: note: Null pointer dereference fbset-2.1/fbset.c:612:48: style: Parameter 'vmode' can be declared as pointer to const [constParameterPointer] fbset-2.1/fbset.c:707:53: style: Parameter 'fix' can be declared as pointer to const [constParameterPointer] fbset-2.1/fbset.c:899:23: style: Variable 'vmode' can be declared as pointer to const [constVariablePointer] diff: head fbset-2.1/fbset.c:803:32: warning: If memory allocation fails, then there is a possible null pointer dereference: vmode [nullPointerOutOfMemory] fbset-2.1/fbset.c:443:20: note: Assuming allocation function fails fbset-2.1/fbset.c:443:20: note: Assignment 'vmode2=malloc(sizeof(struct VideoMode))', assigned value is 0 fbset-2.1/fbset.c:445:24: note: Calling function 'FillScanRates', 1st argument 'vmode2' value is 0 fbset-2.1/fbset.c:803:32: note: Null pointer dereference head fbset-2.1/fbset.c:803:44: warning: If memory allocation fails, then there is a possible null pointer dereference: vmode [nullPointerOutOfMemory] fbset-2.1/fbset.c:443:20: note: Assuming allocation function fails fbset-2.1/fbset.c:443:20: note: Assignment 'vmode2=malloc(sizeof(struct VideoMode))', assigned value is 0 fbset-2.1/fbset.c:445:24: note: Calling function 'FillScanRates', 1st argument 'vmode2' value is 0 fbset-2.1/fbset.c:803:44: note: Null pointer dereference head fbset-2.1/fbset.c:803:57: warning: If memory allocation fails, then there is a possible null pointer dereference: vmode [nullPointerOutOfMemory] fbset-2.1/fbset.c:443:20: note: Assuming allocation function fails fbset-2.1/fbset.c:443:20: note: Assignment 'vmode2=malloc(sizeof(struct VideoMode))', assigned value is 0 fbset-2.1/fbset.c:445:24: note: Calling function 'FillScanRates', 1st argument 'vmode2' value is 0 fbset-2.1/fbset.c:803:57: note: Null pointer dereference head fbset-2.1/fbset.c:804:33: warning: If memory allocation fails, then there is a possible null pointer dereference: vmode [nullPointerOutOfMemory] fbset-2.1/fbset.c:443:20: note: Assuming allocation function fails fbset-2.1/fbset.c:443:20: note: Assignment 'vmode2=malloc(sizeof(struct VideoMode))', assigned value is 0 fbset-2.1/fbset.c:445:24: note: Calling function 'FillScanRates', 1st argument 'vmode2' value is 0 fbset-2.1/fbset.c:804:33: note: Null pointer dereference head fbset-2.1/fbset.c:804:45: warning: If memory allocation fails, then there is a possible null pointer dereference: vmode [nullPointerOutOfMemory] fbset-2.1/fbset.c:443:20: note: Assuming allocation function fails fbset-2.1/fbset.c:443:20: note: Assignment 'vmode2=malloc(sizeof(struct VideoMode))', assigned value is 0 fbset-2.1/fbset.c:445:24: note: Calling function 'FillScanRates', 1st argument 'vmode2' value is 0 fbset-2.1/fbset.c:804:45: note: Null pointer dereference head fbset-2.1/fbset.c:804:58: warning: If memory allocation fails, then there is a possible null pointer dereference: vmode [nullPointerOutOfMemory] fbset-2.1/fbset.c:443:20: note: Assuming allocation function fails fbset-2.1/fbset.c:443:20: note: Assignment 'vmode2=malloc(sizeof(struct VideoMode))', assigned value is 0 fbset-2.1/fbset.c:445:24: note: Calling function 'FillScanRates', 1st argument 'vmode2' value is 0 fbset-2.1/fbset.c:804:58: note: Null pointer dereference DONE