2025-05-05 20:51 ftp://ftp.de.debian.org/debian/pool/main/libp/libppd/libppd_0.10.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --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: 581f101 (2025-05-05 21:13:30 +0200) count: 91 92 elapsed-time: 48.0 49.9 head-timing-info: old-timing-info: head results: libppd-0.10/src/emit.c:68:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __PRETTY_FUNCTION__ [valueFlowBailoutIncompleteVar] libppd-0.10/src/emit.c:159:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __PRETTY_FUNCTION__ [valueFlowBailoutIncompleteVar] libppd-0.10/src/emit.c:211:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __PRETTY_FUNCTION__ [valueFlowBailoutIncompleteVar] libppd-0.10/src/emit.c:248:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] libppd-0.10/src/emit.c:86:11: style: g_strcasecmp has been deprecated since version 2.2 and should not be used in newly-written code. [prohibitedg_strcasecmpCalled] libppd-0.10/src/emit.c:87:12: style: g_strcasecmp has been deprecated since version 2.2 and should not be used in newly-written code. [prohibitedg_strcasecmpCalled] libppd-0.10/src/emit.c:58:12: style: Variable 'size' can be declared as pointer to const [constVariablePointer] libppd-0.10/src/emit.c:59:18: style: Variable 'otmp' can be declared as pointer to const [constVariablePointer] libppd-0.10/src/emit.c:208:14: style: Variable 'o1' can be declared as pointer to const [constVariablePointer] libppd-0.10/src/emit.c:208:19: style: Variable 'o2' can be declared as pointer to const [constVariablePointer] libppd-0.10/src/emit.c:239:13: style: Variable 'sg' can be declared as pointer to const [constVariablePointer] libppd-0.10/src/emit.c:62:14: style: Variable 'count' is assigned a value that is never used. [unreadVariable] libppd-0.10/src/emit.c:153:14: style: Variable 'count' is assigned a value that is never used. [unreadVariable] libppd-0.10/src/init.c:56:57: style:inconclusive: Function 'ppd_option_new' argument 2 names different: declaration 'name' definition 'keyword'. [funcArgNamesDifferent] libppd-0.10/src/ppd.h:213:59: note: Function 'ppd_option_new' argument 2 names different: declaration 'name' definition 'keyword'. libppd-0.10/src/init.c:56:57: note: Function 'ppd_option_new' argument 2 names different: declaration 'name' definition 'keyword'. libppd-0.10/src/mark.c:92:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __PRETTY_FUNCTION__ [valueFlowBailoutIncompleteVar] libppd-0.10/src/mark.c:236:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __PRETTY_FUNCTION__ [valueFlowBailoutIncompleteVar] libppd-0.10/src/mark.c:265:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __PRETTY_FUNCTION__ [valueFlowBailoutIncompleteVar] libppd-0.10/src/mark.c:287:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] libppd-0.10/src/mark.c:340:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __PRETTY_FUNCTION__ [valueFlowBailoutIncompleteVar] libppd-0.10/src/mark.c:392:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __PRETTY_FUNCTION__ [valueFlowBailoutIncompleteVar] libppd-0.10/src/mark.c:504:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __PRETTY_FUNCTION__ [valueFlowBailoutIncompleteVar] libppd-0.10/src/mark.c:159:28: style: g_strcasecmp has been deprecated since version 2.2 and should not be used in newly-written code. [prohibitedg_strcasecmpCalled] libppd-0.10/src/mark.c:197:28: style: g_strcasecmp has been deprecated since version 2.2 and should not be used in newly-written code. [prohibitedg_strcasecmpCalled] libppd-0.10/src/mark.c:237:9: style: g_strcasecmp has been deprecated since version 2.2 and should not be used in newly-written code. [prohibitedg_strcasecmpCalled] libppd-0.10/src/mark.c:295:24: style: g_strcasecmp has been deprecated since version 2.2 and should not be used in newly-written code. [prohibitedg_strcasecmpCalled] libppd-0.10/src/mark.c:304:6: style: g_strcasecmp has been deprecated since version 2.2 and should not be used in newly-written code. [prohibitedg_strcasecmpCalled] libppd-0.10/src/mark.c:375:7: style: g_strcasecmp has been deprecated since version 2.2 and should not be used in newly-written code. [prohibitedg_strcasecmpCalled] libppd-0.10/src/mark.c:376:10: style: g_strncasecmp has been deprecated since version 2.2 and should not be used in newly-written code. [prohibitedg_strncasecmpCalled] libppd-0.10/src/mark.c:394:6: style: g_strcasecmp has been deprecated since version 2.2 and should not be used in newly-written code. [prohibitedg_strcasecmpCalled] libppd-0.10/src/mark.c:424:10: style: g_strcasecmp has been deprecated since version 2.2 and should not be used in newly-written code. [prohibitedg_strcasecmpCalled] libppd-0.10/src/mark.c:430:9: style: g_strcasecmp has been deprecated since version 2.2 and should not be used in newly-written code. [prohibitedg_strcasecmpCalled] libppd-0.10/src/mark.c:431:5: style: g_strcasecmp has been deprecated since version 2.2 and should not be used in newly-written code. [prohibitedg_strcasecmpCalled] libppd-0.10/src/mark.c:440:8: style: g_strcasecmp has been deprecated since version 2.2 and should not be used in newly-written code. [prohibitedg_strcasecmpCalled] libppd-0.10/src/mark.c:454:11: style: g_strcasecmp has been deprecated since version 2.2 and should not be used in newly-written code. [prohibitedg_strcasecmpCalled] libppd-0.10/src/mark.c:507:6: style: g_strcasecmp has been deprecated since version 2.2 and should not be used in newly-written code. [prohibitedg_strcasecmpCalled] libppd-0.10/src/mark.c:225:15: style:inconclusive: Function 'ppd_find_choice' argument 2 names different: declaration 'option' definition 'choice'. [funcArgNamesDifferent] libppd-0.10/src/ppd.h:199:57: note: Function 'ppd_find_choice' argument 2 names different: declaration 'option' definition 'choice'. libppd-0.10/src/mark.c:225:15: note: Function 'ppd_find_choice' argument 2 names different: declaration 'option' definition 'choice'. libppd-0.10/src/mark.c:254:22: style:inconclusive: Function 'ppd_find_marked_choice' argument 2 names different: declaration 'keyword' definition 'option'. [funcArgNamesDifferent] libppd-0.10/src/ppd.h:200:64: note: Function 'ppd_find_marked_choice' argument 2 names different: declaration 'keyword' definition 'option'. libppd-0.10/src/mark.c:254:22: note: Function 'ppd_find_marked_choice' argument 2 names different: declaration 'keyword' definition 'option'. libppd-0.10/src/mark.c:279:66: style:inconclusive: Function 'ppd_find_option_by_keyword' argument 2 names different: declaration 'keyword' definition 'option'. [funcArgNamesDifferent] libppd-0.10/src/ppd.h:202:68: note: Function 'ppd_find_option_by_keyword' argument 2 names different: declaration 'keyword' definition 'option'. libppd-0.10/src/mark.c:279:66: note: Function 'ppd_find_option_by_keyword' argument 2 names different: declaration 'keyword' definition 'option'. libppd-0.10/src/mark.c:317:47: warning: Function 'ppd_check_option_is_marked' argument order different: declaration 'ppd, keyword, option' definition 'ppd, option, choice' [funcArgOrderDifferent] libppd-0.10/src/ppd.h:194:49: note: Function 'ppd_check_option_is_marked' argument order different: declaration 'ppd, keyword, option' definition 'ppd, option, choice' libppd-0.10/src/mark.c:317:47: note: Function 'ppd_check_option_is_marked' argument order different: declaration 'ppd, keyword, option' definition 'ppd, option, choice' libppd-0.10/src/mark.c:356:61: warning: Function 'ppd_mark_option' argument order different: declaration 'ppd, keyword, option' definition 'ppd, option, choice' [funcArgOrderDifferent] libppd-0.10/src/ppd.h:197:34: note: Function 'ppd_mark_option' argument order different: declaration 'ppd, keyword, option' definition 'ppd, option, choice' libppd-0.10/src/mark.c:356:61: note: Function 'ppd_mark_option' argument order different: declaration 'ppd, keyword, option' definition 'ppd, option, choice' libppd-0.10/src/mark.c:71:18: style: Variable 'c' can be declared as pointer to const [constVariablePointer] libppd-0.10/src/mark.c:74:14: style: Variable 'c1' can be declared as pointer to const [constVariablePointer] libppd-0.10/src/mark.c:74:19: style: Variable 'c2' can be declared as pointer to const [constVariablePointer] libppd-0.10/src/mark.c:492:14: style: Variable 'o' can be declared as pointer to const [constVariablePointer] libppd-0.10/src/options.c:53:9: style: g_strcasecmp has been deprecated since version 2.2 and should not be used in newly-written code. [prohibitedg_strcasecmpCalled] libppd-0.10/src/options.c:110:9: style: g_strcasecmp has been deprecated since version 2.2 and should not be used in newly-written code. [prohibitedg_strcasecmpCalled] libppd-0.10/src/options.c:211:9: style: g_strcasecmp has been deprecated since version 2.2 and should not be used in newly-written code. [prohibitedg_strcasecmpCalled] libppd-0.10/src/options.c:234:6: style: g_strcasecmp has been deprecated since version 2.2 and should not be used in newly-written code. [prohibitedg_strcasecmpCalled] libppd-0.10/src/options.c:238:16: style: g_strcasecmp has been deprecated since version 2.2 and should not be used in newly-written code. [prohibitedg_strcasecmpCalled] libppd-0.10/src/options.c:239:11: style: g_strcasecmp has been deprecated since version 2.2 and should not be used in newly-written code. [prohibitedg_strcasecmpCalled] libppd-0.10/src/options.c:246:18: style: g_strcasecmp has been deprecated since version 2.2 and should not be used in newly-written code. [prohibitedg_strcasecmpCalled] libppd-0.10/src/options.c:257:18: style: g_strcasecmp has been deprecated since version 2.2 and should not be used in newly-written code. [prohibitedg_strcasecmpCalled] libppd-0.10/src/options.c:265:16: style: g_strcasecmp has been deprecated since version 2.2 and should not be used in newly-written code. [prohibitedg_strcasecmpCalled] libppd-0.10/src/options.c:122:5: style: Variable 'name' can be declared as pointer to const [constVariablePointer] libppd-0.10/src/options.c:123:5: style: Variable 'value' can be declared as pointer to const [constVariablePointer] libppd-0.10/src/page.c:71:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __PRETTY_FUNCTION__ [valueFlowBailoutIncompleteVar] libppd-0.10/src/page.c:81:13: style: Variable 'found' is assigned a value that is never used. [unreadVariable] libppd-0.10/src/ppd.c:146:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __PRETTY_FUNCTION__ [valueFlowBailoutIncompleteVar] libppd-0.10/src/ppd.c:255:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __PRETTY_FUNCTION__ [valueFlowBailoutIncompleteVar] libppd-0.10/src/ppd.c:295:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __PRETTY_FUNCTION__ [valueFlowBailoutIncompleteVar] libppd-0.10/src/ppd.c:330:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __PRETTY_FUNCTION__ [valueFlowBailoutIncompleteVar] libppd-0.10/src/ppd.c:360:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] libppd-0.10/src/ppd.c:439:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libppd-0.10/src/ppd.c:1183:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] libppd-0.10/src/ppd.c:1482:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __PRETTY_FUNCTION__ [valueFlowBailoutIncompleteVar] libppd-0.10/src/ppd.c:1483:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libppd-0.10/src/ppd.c:1496:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libppd-0.10/src/ppd.c:1573:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libppd-0.10/src/ppd.c:1400:5: error: Return value of allocation function 'g_string_new' is not stored. [leakReturnValNotUsed] libppd-0.10/src/ppd.c:1402:11: warning: Either the condition 'gs==NULL' is redundant or there is possible null pointer dereference: gs. [nullPointerRedundantCheck] libppd-0.10/src/ppd.c:1399:10: note: Assuming that condition 'gs==NULL' is not redundant libppd-0.10/src/ppd.c:1402:11: note: Null pointer dereference libppd-0.10/src/ppd.c:420:5: style: Variable 'nameptr' can be declared as pointer to const [constVariablePointer] libppd-0.10/src/ppd.c:1354:24: style: Variable 'lut' can be declared as const array [constVariable] libppd-0.10/src/ppd.c:1410:16: style: Variable 'emul' can be declared as pointer to const [constVariablePointer] libppd-0.10/src/ppd.c:1413:14: style: Variable 'choice' can be declared as pointer to const [constVariablePointer] libppd-0.10/src/ppd.c:1414:12: style: Variable 'size' can be declared as pointer to const [constVariablePointer] libppd-0.10/src/ppd.c:1415:18: style: Variable 'cons' can be declared as pointer to const [constVariablePointer] libppd-0.10/src/ppd.c:1416:15: style: Variable 'profile' can be declared as pointer to const [constVariablePointer] libppd-0.10/src/ppdfilt.c:311:72: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libppd-0.10/src/ppdfilt.c:903:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] libppd-0.10/src/ppdfilt.c:950:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] libppd-0.10/src/ppdfilt.c:307:23: style: Obsolete function 'g_basename' called. It is recommended to use 'g_path_get_basename' instead. [prohibitedg_basenameCalled] libppd-0.10/src/ppdfilt.c:388:29: style: Obsolete function 'g_basename' called. It is recommended to use 'g_path_get_basename' instead. [prohibitedg_basenameCalled] libppd-0.10/src/ppdfilt.c:427:6: style: Obsolete function 'g_basename' called. It is recommended to use 'g_path_get_basename' instead. [prohibitedg_basenameCalled] libppd-0.10/src/ppdfilt.c:247:30: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] libppd-0.10/src/ppdfilt.c:1127:11: style: Condition 'ppd!=NULL' is always true [knownConditionTrueFalse] libppd-0.10/src/ppdfilt.c:831:63: style:inconclusive: Function 'check_range' argument 3 names different: declaration 'pageSet' definition 'PageSet'. [funcArgNamesDifferent] libppd-0.10/src/ppdfilt.c:64:63: note: Function 'check_range' argument 3 names different: declaration 'pageSet' definition 'PageSet'. libppd-0.10/src/ppdfilt.c:831:63: note: Function 'check_range' argument 3 names different: declaration 'pageSet' definition 'PageSet'. libppd-0.10/src/ppdfilt.c:331:26: style: Variable 'long_options' can be declared as const array [constVariable] libppd-0.10/src/ppdfilt.c:1103:12: style: Variable 'pagesize' can be declared as pointer to const [constVariablePointer] libppd-0.10/src/ppdfilt.c:975:7: warning: Uninitialized variable: ch [uninitvar] libppd-0.10/src/ppdfilt.c:949:35: note: Assuming condition is false libppd-0.10/src/ppdfilt.c:975:7: note: Uninitialized variable: ch libppd-0.10/src/ppdfilt.c:157:3: warning: Uninitialized variable: *flags [uninitvar] libppd-0.10/src/ppdfilt.c:301:19: note: Calling function 'clear_pageorder', 1st argument '&flags' value is libppd-0.10/src/ppdfilt.c:157:3: note: Uninitialized variable: *flags libppd-0.10/src/testmacros.c:51:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __PRETTY_FUNCTION__ [valueFlowBailoutIncompleteVar] diff: 2.17.0 libppd-0.10/src/options.c:133:11: warning: If memory allocation fails, then there is a possible null pointer dereference: ptr [nullPointerOutOfMemory] libppd-0.10/src/options.c:130:21: note: Assuming allocation function fails libppd-0.10/src/options.c:130:21: note: Assignment 'copyarg=g_strdup(arg)', assigned value is 0 libppd-0.10/src/options.c:131:9: note: Assignment 'ptr=copyarg', assigned value is 0 libppd-0.10/src/options.c:133:11: note: Null pointer dereference DONE