2025-07-06 09:40 ftp://ftp.de.debian.org/debian/pool/main/u/unifont/unifont_15.1.01.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 -j6 platform: Linux-6.1.0-37-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.67 compiler: g++ (Debian 12.2.0-14+deb12u1) 12.2.0 cppcheck: head 2.17.0 head-info: 9b11b6b (2025-07-04 16:03:30 +0200) count: 125 125 elapsed-time: 2.3 2.3 head-timing-info: old-timing-info: head results: unifont-15.1.01/src/johab2syllables.c:51:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] unifont-15.1.01/src/unicoverage.c:86:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable coverstring [valueFlowBailoutIncompleteVar] unifont-15.1.01/src/unibdf2hex.c:58:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] unifont-15.1.01/src/unibmpbump.c:159:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unifont-15.1.01/src/johab2syllables.c:58:13: style: Local variable 'hangul_read_base8' shadows outer function [shadowFunction] unifont-15.1.01/src/hangul.h:167:10: note: Shadowed declaration unifont-15.1.01/src/johab2syllables.c:58:13: note: Shadow variable unifont-15.1.01/src/johab2syllables.c:42:23: style: Parameter 'argv' can be declared as const array [constParameter] unifont-15.1.01/src/unicoverage.c:203:13: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] unifont-15.1.01/src/unicoverage.c:203:13: warning: %x in format string (no. 2) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] unifont-15.1.01/src/unicoverage.c:77:10: style: Variable 'infile' can be declared as pointer to const [constVariablePointer] unifont-15.1.01/src/unicoverage.c:77:22: style: Variable 'outfile' can be declared as pointer to const [constVariablePointer] unifont-15.1.01/src/unicoverage.c:229:50: style: Parameter 'coverstring' can be declared as pointer to const [constParameterPointer] unifont-15.1.01/src/unidup.c:59:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unifont-15.1.01/src/unidup.c:70:7: warning: %X in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] unifont-15.1.01/src/unidup.c:53:10: style: Variable 'infile' can be declared as pointer to const [constVariablePointer] unifont-15.1.01/src/unibmp2hex.c:196:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unifont-15.1.01/src/unifont1per.c:122:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] unifont-15.1.01/src/unifont-support.c:103:52: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] unifont-15.1.01/src/unifont-support.c:114:52: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] unifont-15.1.01/src/unifont-support.c:151:24: style: Parameter 'glyphbits' can be declared as const array [constParameter] unifont-15.1.01/src/unifont-support.c:222:29: style: Parameter 'glyph' can be declared as const array [constParameter] unifont-15.1.01/src/unifont-support.c:268:30: style: Parameter 'transpose' can be declared as const array [constParameter] unifont-15.1.01/src/unigen-hangul.c:90:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable argv [valueFlowBailoutIncompleteVar] unifont-15.1.01/src/unigen-hangul.c:166:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable end [valueFlowBailoutIncompleteVar] unifont-15.1.01/src/unifont1per.c:124:7: warning: %X in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] unifont-15.1.01/src/unifont1per.c:141:13: warning: %X in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] unifont-15.1.01/src/unifont1per.c:148:16: warning: %X in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] unifont-15.1.01/src/unifont1per.c:155:19: warning: %X in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] unifont-15.1.01/src/unifont1per.c:162:22: warning: %X in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] unifont-15.1.01/src/unifont1per.c:124:7: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] unifont-15.1.01/src/unigencircles.c:105:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unifont-15.1.01/src/hex2otf.c:115:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unifont-15.1.01/src/hex2otf.c:247:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] unifont-15.1.01/src/hex2otf.c:933:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] unifont-15.1.01/src/hex2otf.c:1005:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIXFAST32 [valueFlowBailoutIncompleteVar] unifont-15.1.01/src/hex2otf.c:1083:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIXFAST32 [valueFlowBailoutIncompleteVar] unifont-15.1.01/src/hex2otf.c:1128:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIXFAST32 [valueFlowBailoutIncompleteVar] unifont-15.1.01/src/hex2otf.c:1511:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable end [valueFlowBailoutIncompleteVar] unifont-15.1.01/src/hex2otf.c:1627:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable end [valueFlowBailoutIncompleteVar] unifont-15.1.01/src/unigencircles.c:111:11: warning: %X in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] unifont-15.1.01/src/unigencircles.c:133:11: warning: %X in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] unifont-15.1.01/src/unigencircles.c:142:7: warning: %X in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] unifont-15.1.01/src/unigencircles.c:168:9: style: Variable 'circle' can be declared as const array [constVariable] unifont-15.1.01/src/unigencircles.c:265:10: style: Variable 'circle' can be declared as pointer to const [constVariablePointer] unifont-15.1.01/src/unifontpic.c:122:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unifont-15.1.01/src/unigenwidth.c:78:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unifont-15.1.01/src/unigenwidth.c:96:7: warning: %X in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] unifont-15.1.01/src/unigenwidth.c:122:7: warning: %X in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] unifont-15.1.01/src/unigenwidth.c:70:10: style: Variable 'gstart' can be declared as pointer to const [constVariablePointer] unifont-15.1.01/src/unihangul-support.c:301:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable jongseong [valueFlowBailoutIncompleteVar] unifont-15.1.01/src/unihangul-support.c:798:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable jongseong [valueFlowBailoutIncompleteVar] unifont-15.1.01/src/unibmp2hex.c:175:10: style: Variable 'infile' can be declared as pointer to const [constVariablePointer] unifont-15.1.01/src/unibmp2hex.c:175:22: style: Variable 'outfile' can be declared as pointer to const [constVariablePointer] unifont-15.1.01/src/unibmp2hex.c:370:20: style: Variable 'header[i]' is assigned a value that is never used. [unreadVariable] unifont-15.1.01/src/unibmpbump.c:241:7: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] unifont-15.1.01/src/unibmpbump.c:245:7: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] unifont-15.1.01/src/unibmpbump.c:110:10: style: Variable 'compression_type' can be declared as const array [constVariable] unifont-15.1.01/src/unibmpbump.c:125:13: style: Variable 'standard_header' can be declared as const array [constVariable] unifont-15.1.01/src/unibmpbump.c:139:10: style: Variable 'infile' can be declared as pointer to const [constVariablePointer] unifont-15.1.01/src/unibmpbump.c:139:22: style: Variable 'outfile' can be declared as pointer to const [constVariablePointer] unifont-15.1.01/src/unibmpbump.c:521:9: style: Variable 'zero_pattern' can be declared as const array [constVariable] unifont-15.1.01/src/unibmpbump.c:527:13: style: Variable 'hgrid' can be declared as const array [constVariable] unifont-15.1.01/src/unihexgen.c:120:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unifont-15.1.01/src/unifontpic.c:230:4: warning: %X in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] unifont-15.1.01/src/unifontpic.c:247:24: warning: %X in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] unifont-15.1.01/src/unifontpic.c:251:24: warning: %X in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] unifont-15.1.01/src/unifontpic.c:255:24: warning: %X in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] unifont-15.1.01/src/unifontpic.c:259:24: warning: %X in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] unifont-15.1.01/src/unifontpic.c:294:17: style: Parameter 'plane_array' can be declared as const array [constParameter] unifont-15.1.01/src/unifontpic.c:581:17: style: Parameter 'plane_array' can be declared as const array [constParameter] unifont-15.1.01/src/unifontpic.c:445:10: style: Variable 'd1' is assigned a value that is never used. [unreadVariable] unifont-15.1.01/src/unifontpic.c:446:10: style: Variable 'd2' is assigned a value that is never used. [unreadVariable] unifont-15.1.01/src/unifontpic.c:447:10: style: Variable 'd3' is assigned a value that is never used. [unreadVariable] unifont-15.1.01/src/unihexgen.c:130:4: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] unifont-15.1.01/src/unihexgen.c:131:4: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] unifont-15.1.01/src/unihexgen.c:112:23: style: Parameter 'argv' can be declared as const array [constParameter] unifont-15.1.01/src/unihexpose.c:58:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable glyph [valueFlowBailoutIncompleteVar] unifont-15.1.01/src/unihexpose.c:96:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unifont-15.1.01/src/unipagecount.c:123:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] unifont-15.1.01/src/unihex2bmp.c:144:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unifont-15.1.01/src/unihangul-support.c:739:36: warning: Either the condition 'jamo<=0xD7FF' is redundant or the array 'glyph_table[2304][16]' is accessed at index glyph_table[52511][*], which is out of bounds. [arrayIndexOutOfBoundsCond] unifont-15.1.01/src/unihangul-support.c:731:36: note: Assuming that condition 'jamo<=0xD7FF' is not redundant unifont-15.1.01/src/unihangul-support.c:732:35: note: Assignment 'glyph_index=jamo-0x1100+0x0620', assigned value is 52511 unifont-15.1.01/src/unihangul-support.c:739:36: note: Array index out of bounds unifont-15.1.01/src/unihangul-support.c:894:18: style: Variable 'jung_index' is reassigned a value before the old one has been used. [redundantAssignment] unifont-15.1.01/src/unihangul-support.c:881:21: note: jung_index is assigned unifont-15.1.01/src/unihangul-support.c:894:18: note: jung_index is overwritten unifont-15.1.01/src/unihangul-support.c:252:8: style: Local variable 'cho_variation' shadows outer function [shadowFunction] unifont-15.1.01/src/hangul.h:179:6: note: Shadowed declaration unifont-15.1.01/src/unihangul-support.c:252:8: note: Shadow variable unifont-15.1.01/src/unihangul-support.c:252:23: style: Local variable 'jung_variation' shadows outer function [shadowFunction] unifont-15.1.01/src/hangul.h:180:5: note: Shadowed declaration unifont-15.1.01/src/unihangul-support.c:252:23: note: Shadow variable unifont-15.1.01/src/unihangul-support.c:252:39: style: Local variable 'jong_variation' shadows outer function [shadowFunction] unifont-15.1.01/src/hangul.h:181:5: note: Shadowed declaration unifont-15.1.01/src/unihangul-support.c:252:39: note: Shadow variable unifont-15.1.01/src/unihangul-support.c:359:15: style: Variable 'choseong_var' can be declared as const array [constVariable] unifont-15.1.01/src/unihangul-support.c:437:15: style: Variable 'wide_vowel' can be declared as const array [constVariable] unifont-15.1.01/src/unihangul-support.c:613:26: style: Parameter 'glyph1' can be declared as pointer to const [constParameterPointer] unifont-15.1.01/src/unihangul-support.c:613:44: style: Parameter 'glyph2' can be declared as pointer to const [constParameterPointer] unifont-15.1.01/src/unihangul-support.c:637:27: style: Parameter 'glyph1' can be declared as pointer to const [constParameterPointer] unifont-15.1.01/src/unihangul-support.c:637:45: style: Parameter 'glyph2' can be declared as pointer to const [constParameterPointer] unifont-15.1.01/src/unihangul-support.c:656:55: style: Parameter 'this_glyph' can be declared as pointer to const [constParameterPointer] unifont-15.1.01/src/unihangul-support.c:692:55: style: Parameter 'this_glyph' can be declared as pointer to const [constParameterPointer] unifont-15.1.01/src/unihangul-support.c:840:29: style: Variable 'cho_group' is assigned a value that is never used. [unreadVariable] unifont-15.1.01/src/unihangul-support.c:844:20: style: Variable 'cho_group' is assigned a value that is never used. [unreadVariable] unifont-15.1.01/src/unihangul-support.c:902:31: style: Variable 'jong_group' is assigned a value that is never used. [unreadVariable] unifont-15.1.01/src/unihangul-support.c:906:21: style: Variable 'jong_group' is assigned a value that is never used. [unreadVariable] unifont-15.1.01/src/unijohab2html.c:117:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable argv [valueFlowBailoutIncompleteVar] unifont-15.1.01/src/unijohab2html.c:612:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable n [valueFlowBailoutIncompleteVar] unifont-15.1.01/src/hex2otf.c:711:23: style: Parameter 'font' can be declared as pointer to const [constParameterPointer] unifont-15.1.01/src/hex2otf.c:786:18: style: Parameter 'font' can be declared as pointer to const [constParameterPointer] unifont-15.1.01/src/hex2otf.c:873:19: style: Variable 'end' can be declared as pointer to const [constVariablePointer] unifont-15.1.01/src/hex2otf.c:1061:23: style: Parameter 'font' can be declared as pointer to const [constParameterPointer] unifont-15.1.01/src/hex2otf.c:1119:19: style: Parameter 'font' can be declared as pointer to const [constParameterPointer] unifont-15.1.01/src/hex2otf.c:1277:13: style: Variable 'p' can be declared as pointer to const [constVariablePointer] unifont-15.1.01/src/unipagecount.c:89:16: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] unifont-15.1.01/src/unipagecount.c:195:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] unifont-15.1.01/src/unipagecount.c:67:23: style: Parameter 'argv' can be declared as const array [constParameter] unifont-15.1.01/src/unipagecount.c:185:31: style: Parameter 'pagecount' can be declared as const array [constParameter] unifont-15.1.01/src/unigen-hangul.c:92:13: style: Local variable 'hangul_read_base16' shadows outer function [shadowFunction] unifont-15.1.01/src/hangul.h:168:10: note: Shadowed declaration unifont-15.1.01/src/unigen-hangul.c:92:13: note: Shadow variable unifont-15.1.01/src/unigen-hangul.c:354:22: style: Parameter 'instring' can be declared as pointer to const [constParameterPointer] unifont-15.1.01/src/unigen-hangul.c:97:47: error: Uninitialized variable: jung [uninitvar] unifont-15.1.01/src/unigen-hangul.c:97:62: error: Uninitialized variable: jong [uninitvar] unifont-15.1.01/src/unigen-hangul.c:74:13: style: Unused variable: glyph [unusedVariable] unifont-15.1.01/src/unigen-hangul.c:76:8: style: Unused variable: cho [unusedVariable] unifont-15.1.01/src/unihex2bmp.c:221:52: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] unifont-15.1.01/src/unihex2bmp.c:472:36: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] unifont-15.1.01/src/unihex2bmp.c:116:10: style: Variable 'infile' can be declared as pointer to const [constVariablePointer] unifont-15.1.01/src/unihex2bmp.c:116:22: style: Variable 'outfile' can be declared as pointer to const [constVariablePointer] unifont-15.1.01/src/unihex2bmp.c:361:16: style: Parameter 'instring' can be declared as pointer to const [constParameterPointer] unifont-15.1.01/src/unihex2bmp.c:462:16: style: Variable 'toppixelrow' is assigned a value that is never used. [unreadVariable] unifont-15.1.01/src/unijohab2html.c:0:0: debug: ValueFlow maximum iterations exceeded [valueFlowMaxIterations] unifont-15.1.01/src/unijohab2html.c:120:13: style: Local variable 'hangul_read_base16' shadows outer function [shadowFunction] unifont-15.1.01/src/hangul.h:168:10: note: Shadowed declaration unifont-15.1.01/src/unijohab2html.c:120:13: note: Shadow variable unifont-15.1.01/src/unijohab2html.c:120:39: error: Uninitialized variable: infp [uninitvar] unifont-15.1.01/src/unijohab2html.c:359:22: style: Variable 'glyphs_overlap' is assigned a value that is never used. [unreadVariable] unifont-15.1.01/src/unijohab2html.c:367:58: style: Variable 'glyphs_overlap' is assigned a value that is never used. [unreadVariable] diff: DONE