2025-05-08 03:56 ftp://ftp.de.debian.org/debian/pool/main/s/ssocr/ssocr_2.25.0.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=motif --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-59-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.17.0 head-info: ebc80c0 (2025-05-07 18:59:31 +0200) count: 57 57 elapsed-time: 9.6 10.4 head-timing-info: old-timing-info: head results: ssocr-2.25.0/charset.c:181:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ssocr-2.25.0/charset.c:31:31: style: Parameter 'keyword' can be declared as pointer to const [constParameterPointer] ssocr-2.25.0/help.c:103:24: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] ssocr-2.25.0/help.c:111:18: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] ssocr-2.25.0/imgproc.c:74:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ssocr-2.25.0/imgproc.c:136:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ssocr-2.25.0/imgproc.c:331:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ssocr-2.25.0/imgproc.c:474:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ssocr-2.25.0/imgproc.c:588:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ssocr-2.25.0/imgproc.c:935:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ssocr-2.25.0/imgproc.c:1024:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ssocr-2.25.0/imgproc.c:1072:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ssocr-2.25.0/imgproc.c:647:57: style:inconclusive: Function 'white_border' argument 2 names different: declaration 'width' definition 'bdwidth'. [funcArgNamesDifferent] ssocr-2.25.0/imgproc.h:107:57: note: Function 'white_border' argument 2 names different: declaration 'width' definition 'bdwidth'. ssocr-2.25.0/imgproc.c:647:57: note: Function 'white_border' argument 2 names different: declaration 'width' definition 'bdwidth'. ssocr-2.25.0/imgproc.c:942:30: style: Parameter 'color' can be declared as pointer to const [constParameterPointer] ssocr-2.25.0/imgproc.c:948:30: style: Parameter 'color' can be declared as pointer to const [constParameterPointer] ssocr-2.25.0/imgproc.c:954:30: style: Parameter 'color' can be declared as pointer to const [constParameterPointer] ssocr-2.25.0/imgproc.c:976:30: style: Parameter 'color' can be declared as pointer to const [constParameterPointer] ssocr-2.25.0/imgproc.c:982:32: style: Parameter 'color' can be declared as pointer to const [constParameterPointer] ssocr-2.25.0/imgproc.c:988:31: style: Parameter 'color' can be declared as pointer to const [constParameterPointer] ssocr-2.25.0/imgproc.c:1043:29: style: Parameter 'keyword' can be declared as pointer to const [constParameterPointer] ssocr-2.25.0/imgproc.c:618:11: style: Variable 'lum' is assigned a value that is never used. [unreadVariable] ssocr-2.25.0/imgproc.c:819:10: style: Variable 'lum' is assigned a value that is never used. [unreadVariable] ssocr-2.25.0/ssocr.c:60:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] ssocr-2.25.0/ssocr.c:168:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ssocr-2.25.0/ssocr.c:213:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ssocr-2.25.0/ssocr.c:301:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ssocr-2.25.0/ssocr.c:361:11: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ssocr-2.25.0/ssocr.c:529:11: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ssocr-2.25.0/ssocr.c:535:11: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ssocr-2.25.0/ssocr.c:552:11: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ssocr-2.25.0/ssocr.c:559:11: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ssocr-2.25.0/ssocr.c:566:11: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ssocr-2.25.0/ssocr.c:603:11: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ssocr-2.25.0/ssocr.c:623:11: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ssocr-2.25.0/ssocr.c:630:11: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ssocr-2.25.0/ssocr.c:655:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ssocr-2.25.0/ssocr.c:656:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ssocr-2.25.0/ssocr.c:656:5: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ssocr-2.25.0/ssocr.c:658:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ssocr-2.25.0/ssocr.c:659:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ssocr-2.25.0/ssocr.c:661:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ssocr-2.25.0/ssocr.c:662:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ssocr-2.25.0/ssocr.c:663:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ssocr-2.25.0/ssocr.c:664:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ssocr-2.25.0/ssocr.c:666:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ssocr-2.25.0/ssocr.c:667:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ssocr-2.25.0/ssocr.c:668:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ssocr-2.25.0/ssocr.c:669:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ssocr-2.25.0/ssocr.c:670:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ssocr-2.25.0/ssocr.c:1231:12: error: Common realloc mistake: 'digits' nulled but not freed upon failure [memleakOnRealloc] ssocr-2.25.0/ssocr.c:56:9: style: Variable 'dir' can be declared as pointer to const [constVariablePointer] ssocr-2.25.0/ssocr.c:164:9: style: Variable 'height_string' can be declared as pointer to const [constVariablePointer] ssocr-2.25.0/ssocr.c:210:9: style: Variable 'upper' can be declared as pointer to const [constVariablePointer] ssocr-2.25.0/ssocr.c:273:9: style: Variable 'output_file' can be declared as pointer to const [constVariablePointer] ssocr-2.25.0/ssocr.c:274:9: style: Variable 'output_fmt' can be declared as pointer to const [constVariablePointer] ssocr-2.25.0/ssocr.c:275:9: style: Variable 'debug_image_file' can be declared as pointer to const [constVariablePointer] ssocr-2.25.0/ssocr.c:309:26: style: Variable 'long_options' can be declared as const array [constVariable] diff: DONE