2025-09-16 21:34 ftp://ftp.de.debian.org/debian/pool/main/u/unifont/unifont_16.0.04.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 -j4 platform: Linux-6.12.43+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.67 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.18.0 head-info: 3e169d6 (2025-09-15 13:38:15 +0200) count: 129 129 elapsed-time: 2.5 2.6 head-timing-info: old-timing-info: head results: unifont-16.0.04/src/johab2syllables.c:51:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] unifont-16.0.04/src/unibdf2hex.c:58:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] unifont-16.0.04/src/johab2syllables.c:58:13: style: Local variable 'hangul_read_base8' shadows outer function [shadowFunction] unifont-16.0.04/src/hangul.h:167:10: note: Shadowed declaration unifont-16.0.04/src/johab2syllables.c:58:13: note: Shadow variable unifont-16.0.04/src/johab2syllables.c:42:23: style: Parameter 'argv' can be declared as const array [constParameter] unifont-16.0.04/src/unibmpbump.c:159:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unifont-16.0.04/src/unibmp2hex.c:208:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unifont-16.0.04/src/hex2otf.c:115:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unifont-16.0.04/src/hex2otf.c:247:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] unifont-16.0.04/src/hex2otf.c:933:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] unifont-16.0.04/src/hex2otf.c:1005:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIXFAST32 [valueFlowBailoutIncompleteVar] unifont-16.0.04/src/hex2otf.c:1083:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIXFAST32 [valueFlowBailoutIncompleteVar] unifont-16.0.04/src/hex2otf.c:1128:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIXFAST32 [valueFlowBailoutIncompleteVar] unifont-16.0.04/src/hex2otf.c:1511:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable end [valueFlowBailoutIncompleteVar] unifont-16.0.04/src/hex2otf.c:1627:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable end [valueFlowBailoutIncompleteVar] unifont-16.0.04/src/unicoverage.c:91:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable coverstring [valueFlowBailoutIncompleteVar] unifont-16.0.04/src/unicoverage.c:208:13: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] unifont-16.0.04/src/unicoverage.c:208:13: warning: %x in format string (no. 2) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] unifont-16.0.04/src/unicoverage.c:80:10: style: Variable 'infile' can be declared as pointer to const [constVariablePointer] unifont-16.0.04/src/unicoverage.c:80:22: style: Variable 'outfile' can be declared as pointer to const [constVariablePointer] unifont-16.0.04/src/unicoverage.c:234:50: style: Parameter 'coverstring' can be declared as pointer to const [constParameterPointer] unifont-16.0.04/src/unicoverage.c:88:25: error: Uninitialized variable: coveragefp [uninitvar] unifont-16.0.04/src/unicoverage.c:88:42: error: Uninitialized variable: cstart [uninitvar] unifont-16.0.04/src/unicoverage.c:88:55: error: Uninitialized variable: cend [uninitvar] unifont-16.0.04/src/unicoverage.c:88:67: error: Uninitialized variable: coverstring [legacyUninitvar] unifont-16.0.04/src/unidup.c:59:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unifont-16.0.04/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-16.0.04/src/unidup.c:53:10: style: Variable 'infile' can be declared as pointer to const [constVariablePointer] unifont-16.0.04/src/unifont-support.c:103:52: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] unifont-16.0.04/src/unifont-support.c:114:52: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] unifont-16.0.04/src/unifont-support.c:151:24: style: Parameter 'glyphbits' can be declared as const array [constParameter] unifont-16.0.04/src/unifont-support.c:222:29: style: Parameter 'glyph' can be declared as const array [constParameter] unifont-16.0.04/src/unifont-support.c:268:30: style: Parameter 'transpose' can be declared as const array [constParameter] unifont-16.0.04/src/unibmpbump.c:241:7: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] unifont-16.0.04/src/unibmpbump.c:245:7: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] unifont-16.0.04/src/unifont1per.c:122:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] unifont-16.0.04/src/unibmpbump.c:110:10: style: Variable 'compression_type' can be declared as const array [constVariable] unifont-16.0.04/src/unibmpbump.c:125:13: style: Variable 'standard_header' can be declared as const array [constVariable] unifont-16.0.04/src/unibmpbump.c:139:10: style: Variable 'infile' can be declared as pointer to const [constVariablePointer] unifont-16.0.04/src/unibmpbump.c:139:22: style: Variable 'outfile' can be declared as pointer to const [constVariablePointer] unifont-16.0.04/src/unibmpbump.c:521:9: style: Variable 'zero_pattern' can be declared as const array [constVariable] unifont-16.0.04/src/unibmpbump.c:527:13: style: Variable 'hgrid' can be declared as const array [constVariable] unifont-16.0.04/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-16.0.04/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-16.0.04/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-16.0.04/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-16.0.04/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-16.0.04/src/unifont1per.c:124:7: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] unifont-16.0.04/src/unigen-hangul.c:90:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable argv [valueFlowBailoutIncompleteVar] unifont-16.0.04/src/unigen-hangul.c:166:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable end [valueFlowBailoutIncompleteVar] unifont-16.0.04/src/unibmp2hex.c:187:10: style: Variable 'infile' can be declared as pointer to const [constVariablePointer] unifont-16.0.04/src/unibmp2hex.c:187:22: style: Variable 'outfile' can be declared as pointer to const [constVariablePointer] unifont-16.0.04/src/unibmp2hex.c:389:20: style: Variable 'header[i]' is assigned a value that is never used. [unreadVariable] unifont-16.0.04/src/unifontpic.c:109:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable plane_array [valueFlowBailoutIncompleteVar] unifont-16.0.04/src/unigencircles.c:105:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unifont-16.0.04/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-16.0.04/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-16.0.04/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-16.0.04/src/unigencircles.c:168:9: style: Variable 'circle' can be declared as const array [constVariable] unifont-16.0.04/src/unigencircles.c:265:10: style: Variable 'circle' can be declared as pointer to const [constVariablePointer] unifont-16.0.04/src/unigenwidth.c:78:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unifont-16.0.04/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-16.0.04/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-16.0.04/src/unigenwidth.c:70:10: style: Variable 'gstart' can be declared as pointer to const [constVariablePointer] unifont-16.0.04/src/unihangul-support.c:301:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable jongseong [valueFlowBailoutIncompleteVar] unifont-16.0.04/src/unihangul-support.c:798:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable jongseong [valueFlowBailoutIncompleteVar] unifont-16.0.04/src/hex2otf.c:711:23: style: Parameter 'font' can be declared as pointer to const [constParameterPointer] unifont-16.0.04/src/hex2otf.c:786:18: style: Parameter 'font' can be declared as pointer to const [constParameterPointer] unifont-16.0.04/src/hex2otf.c:873:19: style: Variable 'end' can be declared as pointer to const [constVariablePointer] unifont-16.0.04/src/hex2otf.c:1061:23: style: Parameter 'font' can be declared as pointer to const [constParameterPointer] unifont-16.0.04/src/hex2otf.c:1119:19: style: Parameter 'font' can be declared as pointer to const [constParameterPointer] unifont-16.0.04/src/hex2otf.c:1277:13: style: Variable 'p' can be declared as pointer to const [constVariablePointer] unifont-16.0.04/src/unihex2bmp.c:123:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bitmap [valueFlowBailoutIncompleteVar] unifont-16.0.04/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-16.0.04/src/unihangul-support.c:731:36: note: Assuming that condition 'jamo<=0xD7FF' is not redundant unifont-16.0.04/src/unihangul-support.c:732:35: note: Assignment 'glyph_index=jamo-0x1100+0x0620', assigned value is 52511 unifont-16.0.04/src/unihangul-support.c:739:36: note: Array index out of bounds unifont-16.0.04/src/unihangul-support.c:894:18: style: Variable 'jung_index' is reassigned a value before the old one has been used. [redundantAssignment] unifont-16.0.04/src/unihangul-support.c:881:21: note: jung_index is assigned unifont-16.0.04/src/unihangul-support.c:894:18: note: jung_index is overwritten unifont-16.0.04/src/unihangul-support.c:252:8: style: Local variable 'cho_variation' shadows outer function [shadowFunction] unifont-16.0.04/src/hangul.h:179:6: note: Shadowed declaration unifont-16.0.04/src/unihangul-support.c:252:8: note: Shadow variable unifont-16.0.04/src/unihangul-support.c:252:23: style: Local variable 'jung_variation' shadows outer function [shadowFunction] unifont-16.0.04/src/hangul.h:180:5: note: Shadowed declaration unifont-16.0.04/src/unihangul-support.c:252:23: note: Shadow variable unifont-16.0.04/src/unihangul-support.c:252:39: style: Local variable 'jong_variation' shadows outer function [shadowFunction] unifont-16.0.04/src/hangul.h:181:5: note: Shadowed declaration unifont-16.0.04/src/unihangul-support.c:252:39: note: Shadow variable unifont-16.0.04/src/unihangul-support.c:359:15: style: Variable 'choseong_var' can be declared as const array [constVariable] unifont-16.0.04/src/unihangul-support.c:437:15: style: Variable 'wide_vowel' can be declared as const array [constVariable] unifont-16.0.04/src/unihangul-support.c:613:26: style: Parameter 'glyph1' can be declared as pointer to const [constParameterPointer] unifont-16.0.04/src/unihangul-support.c:613:44: style: Parameter 'glyph2' can be declared as pointer to const [constParameterPointer] unifont-16.0.04/src/unihangul-support.c:637:27: style: Parameter 'glyph1' can be declared as pointer to const [constParameterPointer] unifont-16.0.04/src/unihangul-support.c:637:45: style: Parameter 'glyph2' can be declared as pointer to const [constParameterPointer] unifont-16.0.04/src/unihangul-support.c:656:55: style: Parameter 'this_glyph' can be declared as pointer to const [constParameterPointer] unifont-16.0.04/src/unihangul-support.c:692:55: style: Parameter 'this_glyph' can be declared as pointer to const [constParameterPointer] unifont-16.0.04/src/unihangul-support.c:840:29: style: Variable 'cho_group' is assigned a value that is never used. [unreadVariable] unifont-16.0.04/src/unihangul-support.c:844:20: style: Variable 'cho_group' is assigned a value that is never used. [unreadVariable] unifont-16.0.04/src/unihangul-support.c:902:31: style: Variable 'jong_group' is assigned a value that is never used. [unreadVariable] unifont-16.0.04/src/unihangul-support.c:906:21: style: Variable 'jong_group' is assigned a value that is never used. [unreadVariable] unifont-16.0.04/src/unifontpic.c:239:4: warning: %X in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] unifont-16.0.04/src/unifontpic.c:256:24: warning: %X in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] unifont-16.0.04/src/unifontpic.c:260:24: warning: %X in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] unifont-16.0.04/src/unifontpic.c:264:24: warning: %X in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] unifont-16.0.04/src/unifontpic.c:268:24: warning: %X in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] unifont-16.0.04/src/unifontpic.c:303:17: style: Parameter 'plane_array' can be declared as const array [constParameter] unifont-16.0.04/src/unifontpic.c:590:17: style: Parameter 'plane_array' can be declared as const array [constParameter] unifont-16.0.04/src/unifontpic.c:454:10: style: Variable 'd1' is assigned a value that is never used. [unreadVariable] unifont-16.0.04/src/unifontpic.c:455:10: style: Variable 'd2' is assigned a value that is never used. [unreadVariable] unifont-16.0.04/src/unifontpic.c:456:10: style: Variable 'd3' is assigned a value that is never used. [unreadVariable] unifont-16.0.04/src/unihexgen.c:120:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unifont-16.0.04/src/unihexpose.c:58:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable glyph [valueFlowBailoutIncompleteVar] unifont-16.0.04/src/unihexpose.c:96:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unifont-16.0.04/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-16.0.04/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-16.0.04/src/unihexgen.c:112:23: style: Parameter 'argv' can be declared as const array [constParameter] unifont-16.0.04/src/unipagecount.c:85:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pagecount [valueFlowBailoutIncompleteVar] unifont-16.0.04/src/unigen-hangul.c:92:13: style: Local variable 'hangul_read_base16' shadows outer function [shadowFunction] unifont-16.0.04/src/hangul.h:168:10: note: Shadowed declaration unifont-16.0.04/src/unigen-hangul.c:92:13: note: Shadow variable unifont-16.0.04/src/unigen-hangul.c:354:22: style: Parameter 'instring' can be declared as pointer to const [constParameterPointer] unifont-16.0.04/src/unigen-hangul.c:97:47: error: Uninitialized variable: jung [uninitvar] unifont-16.0.04/src/unigen-hangul.c:97:62: error: Uninitialized variable: jong [uninitvar] unifont-16.0.04/src/unigen-hangul.c:74:13: style: Unused variable: glyph [unusedVariable] unifont-16.0.04/src/unigen-hangul.c:76:8: style: Unused variable: cho [unusedVariable] unifont-16.0.04/src/unijohab2html.c:117:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable argv [valueFlowBailoutIncompleteVar] unifont-16.0.04/src/unijohab2html.c:612:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable n [valueFlowBailoutIncompleteVar] unifont-16.0.04/src/unipagecount.c:94:16: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] unifont-16.0.04/src/unipagecount.c:200:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] unifont-16.0.04/src/unipagecount.c:70:23: style: Parameter 'argv' can be declared as const array [constParameter] unifont-16.0.04/src/unipagecount.c:190:31: style: Parameter 'pagecount' can be declared as const array [constParameter] unifont-16.0.04/src/unihex2bmp.c:227:52: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] unifont-16.0.04/src/unihex2bmp.c:478:36: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] unifont-16.0.04/src/unihex2bmp.c:119:10: style: Variable 'infile' can be declared as pointer to const [constVariablePointer] unifont-16.0.04/src/unihex2bmp.c:119:22: style: Variable 'outfile' can be declared as pointer to const [constVariablePointer] unifont-16.0.04/src/unihex2bmp.c:367:16: style: Parameter 'instring' can be declared as pointer to const [constParameterPointer] unifont-16.0.04/src/unihex2bmp.c:468:16: style: Variable 'toppixelrow' is assigned a value that is never used. [unreadVariable] unifont-16.0.04/src/unijohab2html.c:0:0: debug: ValueFlow maximum iterations exceeded [valueFlowMaxIterations] unifont-16.0.04/src/unijohab2html.c:120:13: style: Local variable 'hangul_read_base16' shadows outer function [shadowFunction] unifont-16.0.04/src/hangul.h:168:10: note: Shadowed declaration unifont-16.0.04/src/unijohab2html.c:120:13: note: Shadow variable unifont-16.0.04/src/unijohab2html.c:120:39: error: Uninitialized variable: infp [uninitvar] unifont-16.0.04/src/unijohab2html.c:359:22: style: Variable 'glyphs_overlap' is assigned a value that is never used. [unreadVariable] unifont-16.0.04/src/unijohab2html.c:367:58: style: Variable 'glyphs_overlap' is assigned a value that is never used. [unreadVariable] diff: DONE