2026-05-31 21:32 ftp://ftp.de.debian.org/debian/pool/main/b/bdfresize/bdfresize_1.5.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.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: 34 25 elapsed-time: 0.2 0.1 head-timing-info: old-timing-info: head results: bdfresize-1.5/bdfresize.c:56:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] bdfresize-1.5/bdfresize.c:220:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] bdfresize-1.5/bdfresize.c:292:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] bdfresize-1.5/bdfresize.c:425:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] bdfresize-1.5/bdfresize.c:454:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] bdfresize-1.5/bdfresize.c:461:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] bdfresize-1.5/bdfresize.c:473:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] bdfresize-1.5/bdfresize.c:211:7: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] bdfresize-1.5/bdfresize.c:161:15: style: Parameter 'prop' can be declared as pointer to const [constParameterPointer] bdfresize-1.5/bdfresize.c:175:15: style: Parameter 'prop' can be declared as pointer to const [constParameterPointer] bdfresize-1.5/bdfresize.c:189:15: style: Parameter 'prop' can be declared as pointer to const [constParameterPointer] bdfresize-1.5/bdfresize.c:344:13: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] bdfresize-1.5/bdfresize.c:444:17: style: Parameter 'l' can be declared as pointer to const [constParameterPointer] bdfresize-1.5/bdfresize.c:444:26: style: Parameter 's' can be declared as pointer to const [constParameterPointer] bdfresize-1.5/bdfresize.c:449:18: style: Parameter 'fmt' can be declared as pointer to const [constParameterPointer] bdfresize-1.5/bdfresize.c:452:10: error: Uninitialized variable: buf [uninitvar] bdfresize-1.5/charresize.c:62:10: warning: If memory allocation fails, then there is a possible null pointer dereference: srcimage [nullPointerOutOfMemory] bdfresize-1.5/charresize.c:61:27: note: Assuming allocation function fails bdfresize-1.5/charresize.c:61:14: note: Assignment 'srcimage=(char*)malloc(bbw*bbh*sizeof(char))', assigned value is 0 bdfresize-1.5/charresize.c:62:10: note: Null pointer dereference bdfresize-1.5/charresize.c:64:10: warning: If memory allocation fails, then there is a possible null pointer dereference: dstgray [nullPointerOutOfMemory] bdfresize-1.5/charresize.c:63:25: note: Assuming allocation function fails bdfresize-1.5/charresize.c:63:13: note: Assignment 'dstgray=(int*)malloc(newbbw*newbbh*sizeof(int))', assigned value is 0 bdfresize-1.5/charresize.c:64:10: note: Null pointer dereference bdfresize-1.5/charresize.c:230:11: warning: If memory allocation fails, then there is a possible null pointer dereference: srcimage [nullPointerOutOfMemory] bdfresize-1.5/charresize.c:61:27: note: Assuming allocation function fails bdfresize-1.5/charresize.c:61:14: note: Assignment 'srcimage=(char*)malloc(bbw*bbh*sizeof(char))', assigned value is 0 bdfresize-1.5/charresize.c:67:11: note: Calling function 'magnify', 1st argument 'srcimage' value is 0 bdfresize-1.5/charresize.c:230:11: note: Null pointer dereference bdfresize-1.5/charresize.c:269:33: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] bdfresize-1.5/charresize.c:63:25: note: Assuming allocation function fails bdfresize-1.5/charresize.c:63:13: note: Assignment 'dstgray=(int*)malloc(newbbw*newbbh*sizeof(int))', assigned value is 0 bdfresize-1.5/charresize.c:68:15: note: Calling function 'write_image', 1st argument 'dstgray' value is 0 bdfresize-1.5/charresize.c:269:33: note: Null pointer addition bdfresize-1.5/charresize.c:207:16: style: Parameter 'cp' can be declared as pointer to const [constParameterPointer] bdfresize-1.5/charresize.c:224:24: style: Parameter 'srcimage' can be declared as pointer to const [constParameterPointer] bdfresize-1.5/charresize.c:269:19: style: Variable 'row' can be declared as pointer to const [constVariablePointer] bdfresize-1.5/getopt.c:682:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] bdfresize-1.5/getopt.c:518:10: style:inconclusive: Function '_getopt_internal' argument 1 names different: declaration '' definition 'argc'. [funcArgNamesDifferentUnnamed] bdfresize-1.5/getopt.c:519:19: style:inconclusive: Function '_getopt_internal' argument 2 names different: declaration '' definition 'argv'. [funcArgNamesDifferentUnnamed] bdfresize-1.5/getopt.c:520:18: style:inconclusive: Function '_getopt_internal' argument 3 names different: declaration '' definition 'optstring'. [funcArgNamesDifferentUnnamed] bdfresize-1.5/getopt.c:521:27: style:inconclusive: Function '_getopt_internal' argument 4 names different: declaration '' definition 'longopts'. [funcArgNamesDifferentUnnamed] bdfresize-1.5/getopt.c:522:11: style:inconclusive: Function '_getopt_internal' argument 5 names different: declaration '' definition 'longind'. [funcArgNamesDifferentUnnamed] bdfresize-1.5/getopt.c:523:10: style:inconclusive: Function '_getopt_internal' argument 6 names different: declaration '' definition 'long_only'. [funcArgNamesDifferentUnnamed] bdfresize-1.5/getopt.c:974:10: style:inconclusive: Function 'getopt' argument 1 names different: declaration '' definition 'argc'. [funcArgNamesDifferentUnnamed] bdfresize-1.5/getopt.c:975:19: style:inconclusive: Function 'getopt' argument 2 names different: declaration '' definition 'argv'. [funcArgNamesDifferentUnnamed] bdfresize-1.5/getopt.c:976:18: style:inconclusive: Function 'getopt' argument 3 names different: declaration '' definition 'optstring'. [funcArgNamesDifferentUnnamed] bdfresize-1.5/getopt.c:777:11: style: Variable 'temp' can be declared as pointer to const [constVariablePointer] diff: head bdfresize-1.5/getopt.c:518:10: style:inconclusive: Function '_getopt_internal' argument 1 names different: declaration '' definition 'argc'. [funcArgNamesDifferentUnnamed] head bdfresize-1.5/getopt.c:519:19: style:inconclusive: Function '_getopt_internal' argument 2 names different: declaration '' definition 'argv'. [funcArgNamesDifferentUnnamed] head bdfresize-1.5/getopt.c:520:18: style:inconclusive: Function '_getopt_internal' argument 3 names different: declaration '' definition 'optstring'. [funcArgNamesDifferentUnnamed] head bdfresize-1.5/getopt.c:521:27: style:inconclusive: Function '_getopt_internal' argument 4 names different: declaration '' definition 'longopts'. [funcArgNamesDifferentUnnamed] head bdfresize-1.5/getopt.c:522:11: style:inconclusive: Function '_getopt_internal' argument 5 names different: declaration '' definition 'longind'. [funcArgNamesDifferentUnnamed] head bdfresize-1.5/getopt.c:523:10: style:inconclusive: Function '_getopt_internal' argument 6 names different: declaration '' definition 'long_only'. [funcArgNamesDifferentUnnamed] head bdfresize-1.5/getopt.c:974:10: style:inconclusive: Function 'getopt' argument 1 names different: declaration '' definition 'argc'. [funcArgNamesDifferentUnnamed] head bdfresize-1.5/getopt.c:975:19: style:inconclusive: Function 'getopt' argument 2 names different: declaration '' definition 'argv'. [funcArgNamesDifferentUnnamed] head bdfresize-1.5/getopt.c:976:18: style:inconclusive: Function 'getopt' argument 3 names different: declaration '' definition 'optstring'. [funcArgNamesDifferentUnnamed] DONE