2025-11-23 08:51 ftp://ftp.de.debian.org/debian/pool/main/p/pmars/pmars_0.9.4.orig.tar.xz 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-88-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.69 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.18.0 head-info: cb76e52 (2025-11-22 14:47:37 +0100) count: 107 101 elapsed-time: 14.8 16.4 head-timing-info: old-timing-info: head results: pmars-0.9.4/src/alldisp.c:31:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable displayMode [valueFlowBailoutIncompleteVar] pmars-0.9.4/src/alldisp.c:40:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable displayLevel [valueFlowBailoutIncompleteVar] pmars-0.9.4/src/alldisp.c:101:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable displayMode [valueFlowBailoutIncompleteVar] pmars-0.9.4/src/asm.c:659:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] pmars-0.9.4/src/asm.c:830:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] pmars-0.9.4/src/asm.c:971:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] pmars-0.9.4/src/asm.c:2158:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] pmars-0.9.4/src/asm.c:314:3: error: Returning/dereferencing 'symgrp' after it is deallocated / released [deallocret] pmars-0.9.4/src/asm.c:310:7: note: Returning/dereferencing 'symgrp' after it is deallocated / released pmars-0.9.4/src/asm.c:314:3: note: Returning/dereferencing 'symgrp' after it is deallocated / released pmars-0.9.4/src/asm.c:2158:7: error: Resource leak: infp [resourceLeak] pmars-0.9.4/src/asm.c:658:3: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] pmars-0.9.4/src/asm.c:684:3: note: Found duplicate branches for 'if' and 'else'. pmars-0.9.4/src/asm.c:658:3: note: Found duplicate branches for 'if' and 'else'. pmars-0.9.4/src/asm.c:325:12: style: Local variable 'aline' shadows outer variable [shadowVariable] pmars-0.9.4/src/asm.c:944:17: note: Shadowed declaration pmars-0.9.4/src/asm.c:325:12: note: Shadow variable pmars-0.9.4/src/asm.c:479:12: style: Local variable 'aline' shadows outer variable [shadowVariable] pmars-0.9.4/src/asm.c:944:17: note: Shadowed declaration pmars-0.9.4/src/asm.c:479:12: note: Shadow variable pmars-0.9.4/src/asm.c:530:12: style: Local variable 'aline' shadows outer variable [shadowVariable] pmars-0.9.4/src/asm.c:944:17: note: Shadowed declaration pmars-0.9.4/src/asm.c:530:12: note: Shadow variable pmars-0.9.4/src/asm.c:2048:13: style: Local variable 'tmp' shadows outer variable [shadowVariable] pmars-0.9.4/src/asm.c:1984:14: note: Shadowed declaration pmars-0.9.4/src/asm.c:2048:13: note: Shadow variable pmars-0.9.4/src/asm.c:267:11: style: Parameter 'symn' can be declared as pointer to const [constParameterPointer] pmars-0.9.4/src/asm.c:270:11: style: Variable 'symtable' can be declared as pointer to const [constVariablePointer] pmars-0.9.4/src/asm.c:444:18: style: Parameter 'btbl' can be declared as pointer to const [constParameterPointer] pmars-0.9.4/src/asm.c:530:12: style: Variable 'aline' can be declared as pointer to const [constVariablePointer] pmars-0.9.4/src/asm.c:653:11: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] pmars-0.9.4/src/asm.c:700:11: style: Parameter 'arg' can be declared as pointer to const [constParameterPointer] pmars-0.9.4/src/asm.c:1838:22: style: Variable 'wdecl' is assigned a value that is never used. [unreadVariable] pmars-0.9.4/src/asm.c:2102:9: style: Variable 'lines' is assigned a value that is never used. [unreadVariable] pmars-0.9.4/src/cdb.c:685:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] pmars-0.9.4/src/cdb.c:1143:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] pmars-0.9.4/src/cdb.c:1368:76: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] pmars-0.9.4/src/cdb.c:2157:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] pmars-0.9.4/src/cdb.c:1253:32: warning: Either the condition 'loopNesting<120' is redundant or the array 'loopStack[120]' is accessed at index 120, which is out of bounds. [arrayIndexOutOfBoundsCond] pmars-0.9.4/src/cdb.c:1252:25: note: Assuming that condition 'loopNesting<120' is not redundant pmars-0.9.4/src/cdb.c:1253:32: note: Array index out of bounds pmars-0.9.4/src/cdb.c:617:7: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] pmars-0.9.4/src/cdb.c:1563:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'signed long'. [invalidPrintfArgType_sint] pmars-0.9.4/src/cdb.c:2052:14: style: Variable 'result' is reassigned a value before the old one has been used. [redundantAssignment] pmars-0.9.4/src/cdb.c:2048:16: note: result is assigned pmars-0.9.4/src/cdb.c:2052:14: note: result is overwritten pmars-0.9.4/src/cdb.c:1218:18: style: Local variable 'i' shadows outer variable [shadowVariable] pmars-0.9.4/src/cdb.c:1040:48: note: Shadowed declaration pmars-0.9.4/src/cdb.c:1218:18: note: Shadow variable pmars-0.9.4/src/cdb.c:2471:11: style: Local variable 'outs' shadows outer variable [shadowVariable] pmars-0.9.4/src/cdb.c:327:9: note: Shadowed declaration pmars-0.9.4/src/cdb.c:2471:11: note: Shadow variable pmars-0.9.4/src/cdb.c:1041:11: style: Variable 'rv' can be declared as pointer to const [constVariablePointer] pmars-0.9.4/src/cdb.c:1365:11: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] pmars-0.9.4/src/cdb.c:1444:11: style: Parameter 'argStr' can be declared as pointer to const [constParameterPointer] pmars-0.9.4/src/cdb.c:1502:11: style: Parameter 'inpStr' can be declared as pointer to const [constParameterPointer] pmars-0.9.4/src/cdb.c:1506:51: style: Variable 'pos' can be declared as pointer to const [constVariablePointer] pmars-0.9.4/src/cdb.c:1987:21: style: Variable 'TW' can be declared as pointer to const [constVariablePointer] pmars-0.9.4/src/cdb.c:2152:11: style: Variable 'rv' can be declared as pointer to const [constVariablePointer] pmars-0.9.4/src/cdb.c:2278:11: style: Parameter 'match' can be declared as pointer to const [constParameterPointer] pmars-0.9.4/src/cdb.c:2446:18: style: Parameter 'scrV' can be declared as pointer to const [constParameterPointer] pmars-0.9.4/src/cdb.c:1507:29: style: Unused variable: tmp [unusedVariable] pmars-0.9.4/src/cdb.c:2471:11: style: Unused variable: outs [unusedVariable] pmars-0.9.4/src/clparse.c:182:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] pmars-0.9.4/src/clparse.c:295:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] pmars-0.9.4/src/clparse.c:575:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] pmars-0.9.4/src/clparse.c:231:5: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] pmars-0.9.4/src/clparse.c:238:9: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] pmars-0.9.4/src/clparse.c:243:7: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] pmars-0.9.4/src/clparse.c:176:14: style: Variable 'clip' can be declared as pointer to const [constVariablePointer] pmars-0.9.4/src/clparse.c:346:25: style: Variable 'idx' can be declared as pointer to const [constVariablePointer] pmars-0.9.4/src/clparse.c:270:8: style: Variable 'code' is assigned a value that is never used. [unreadVariable] pmars-0.9.4/src/clparse.c:367:14: style: Variable 'code' is assigned a value that is never used. [unreadVariable] pmars-0.9.4/src/disasm.c:108:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] pmars-0.9.4/src/eval.c:283:9: warning: Either the condition 'bufptr<20' is redundant or the array 'buffer[20]' is accessed at index 20, which is out of bounds. [arrayIndexOutOfBoundsCond] pmars-0.9.4/src/eval.c:279:37: note: Assuming that condition 'bufptr<20' is not redundant pmars-0.9.4/src/eval.c:283:9: note: Array index out of bounds pmars-0.9.4/src/xgraphio.c:173:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GrWRITE [valueFlowBailoutIncompleteVar] pmars-0.9.4/src/xgraphio.c:228:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable inputRedirection [valueFlowBailoutIncompleteVar] pmars-0.9.4/src/xgraphio.c:300:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable printAttr [valueFlowBailoutIncompleteVar] pmars-0.9.4/src/grxdisp.c:108:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable W [valueFlowBailoutIncompleteVar] pmars-0.9.4/src/grxdisp.c:168:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable coreSize [valueFlowBailoutIncompleteVar] pmars-0.9.4/src/grxdisp.c:176:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable warriors [valueFlowBailoutIncompleteVar] pmars-0.9.4/src/grxdisp.c:190:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WAIT [valueFlowBailoutIncompleteVar] pmars-0.9.4/src/grxdisp.c:218:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable M_BUTTON_DOWN [valueFlowBailoutIncompleteVar] pmars-0.9.4/src/grxdisp.c:256:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable coreSize [valueFlowBailoutIncompleteVar] pmars-0.9.4/src/grxdisp.c:300:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable warriors [valueFlowBailoutIncompleteVar] pmars-0.9.4/src/grxdisp.c:320:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable displayMode [valueFlowBailoutIncompleteVar] pmars-0.9.4/src/xgraphio.c:69:36: style: Condition 'newcurPanel!=0' is always true [knownConditionTrueFalse] pmars-0.9.4/src/grxdisp.c:217:17: style: Same expression on both sides of '=='. [duplicateExpression] pmars-0.9.4/src/grxdisp.c:212:11: style: Local variable 'x' shadows outer variable [shadowVariable] pmars-0.9.4/src/grxdisp.c:77:9: note: Shadowed declaration pmars-0.9.4/src/grxdisp.c:212:11: note: Shadow variable pmars-0.9.4/src/grxdisp.c:212:14: style: Local variable 'y' shadows outer variable [shadowVariable] pmars-0.9.4/src/grxdisp.c:77:12: note: Shadowed declaration pmars-0.9.4/src/grxdisp.c:212:14: note: Shadow variable pmars-0.9.4/src/grxdisp.c:252:11: style: Local variable 'y' shadows outer variable [shadowVariable] pmars-0.9.4/src/grxdisp.c:77:12: note: Shadowed declaration pmars-0.9.4/src/grxdisp.c:252:11: note: Shadow variable pmars-0.9.4/src/grxdisp.c:253:11: style: Local variable 'i' shadows outer variable [shadowVariable] pmars-0.9.4/src/grxdisp.c:73:9: note: Shadowed declaration pmars-0.9.4/src/grxdisp.c:253:11: note: Shadow variable pmars-0.9.4/src/grxdisp.c:313:11: style: Local variable 'i' shadows outer variable [shadowVariable] pmars-0.9.4/src/grxdisp.c:73:9: note: Shadowed declaration pmars-0.9.4/src/grxdisp.c:313:11: note: Shadow variable pmars-0.9.4/src/xgraphio.c:298:14: style: Parameter 'sss' can be declared as pointer to const [constParameterPointer] pmars-0.9.4/src/xgraphio.c:165:14: style: Unused variable: regs [unusedVariable] pmars-0.9.4/src/grxdisp.c:212:17: style: Unused variable: hi [unusedVariable] pmars-0.9.4/src/grxdisp.c:212:21: style: Unused variable: lo [unusedVariable] pmars-0.9.4/src/gtdisp.c:130:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CORE_PAGE [valueFlowBailoutIncompleteVar] pmars-0.9.4/src/gtdisp.c:167:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CORE_PAGE [valueFlowBailoutIncompleteVar] pmars-0.9.4/src/gtdisp.c:189:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CORE_PAGE [valueFlowBailoutIncompleteVar] pmars-0.9.4/src/gtdisp.c:277:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CDB_PAGE [valueFlowBailoutIncompleteVar] pmars-0.9.4/src/gtdisp.c:300:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CDB_PAGE [valueFlowBailoutIncompleteVar] pmars-0.9.4/src/gtdisp.c:319:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable inputRedirection [valueFlowBailoutIncompleteVar] pmars-0.9.4/src/gtdisp.c:406:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CDB_PAGE [valueFlowBailoutIncompleteVar] pmars-0.9.4/src/gtdisp.c:428:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CDB_PAGE [valueFlowBailoutIncompleteVar] pmars-0.9.4/src/gtdisp.c:247:17: style:inconclusive: Function 'switch_page' argument 1 names different: declaration 'page' definition 'num'. [funcArgNamesDifferent] pmars-0.9.4/src/gtdisp.c:51:25: note: Function 'switch_page' argument 1 names different: declaration 'page' definition 'num'. pmars-0.9.4/src/gtdisp.c:247:17: note: Function 'switch_page' argument 1 names different: declaration 'page' definition 'num'. pmars-0.9.4/src/gtdisp.c:254:28: style:inconclusive: Function 'SetCursor' argument 2 names different: declaration 'stop' definition 'end'. [funcArgNamesDifferent] pmars-0.9.4/src/gtdisp.c:52:36: note: Function 'SetCursor' argument 2 names different: declaration 'stop' definition 'end'. pmars-0.9.4/src/gtdisp.c:254:28: note: Function 'SetCursor' argument 2 names different: declaration 'stop' definition 'end'. pmars-0.9.4/src/gtdisp.c:271:14: style:inconclusive: Function 'aputs5' argument 1 names different: declaration 'str' definition 'text'. [funcArgNamesDifferent] pmars-0.9.4/src/gtdisp.c:54:22: note: Function 'aputs5' argument 1 names different: declaration 'str' definition 'text'. pmars-0.9.4/src/gtdisp.c:271:14: note: Function 'aputs5' argument 1 names different: declaration 'str' definition 'text'. pmars-0.9.4/src/gtdisp.c:317:14: style:inconclusive: Function 'agets5' argument 1 names different: declaration 'str' definition 'buf'. [funcArgNamesDifferent] pmars-0.9.4/src/gtdisp.c:56:22: note: Function 'agets5' argument 1 names different: declaration 'str' definition 'buf'. pmars-0.9.4/src/gtdisp.c:317:14: note: Function 'agets5' argument 1 names different: declaration 'str' definition 'buf'. pmars-0.9.4/src/gtdisp.c:271:14: style: Parameter 'text' can be declared as pointer to const [constParameterPointer] pmars-0.9.4/src/gtdisp.c:323:13: style: Unused variable: idx [unusedVariable] pmars-0.9.4/src/pmars.c:190:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] pmars-0.9.4/src/pos.c:141:12: style: Unused variable: j [unusedVariable] pmars-0.9.4/src/sim.c:303:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] pmars-0.9.4/src/sim.c:635:14: style: Variable 'addrB' is reassigned a value before the old one has been used. [redundantAssignment] pmars-0.9.4/src/sim.c:634:13: note: addrB is assigned pmars-0.9.4/src/sim.c:635:14: note: addrB is overwritten pmars-0.9.4/src/sim.c:196:15: style: Variable 'last' can be declared as pointer to const [constVariablePointer] pmars-0.9.4/src/sim.c:430:10: style: Unused variable: waddrA [unusedVariable] pmars-0.9.4/src/token.c:83:16: style: Parameter 's2' can be declared as pointer to const [constParameterPointer] pmars-0.9.4/src/token.c:102:11: style: Parameter 's' can be declared as pointer to const [constParameterPointer] pmars-0.9.4/src/token.c:120:11: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] pmars-0.9.4/src/token.c:120:17: style: Parameter 's' can be declared as const array [constParameter] pmars-0.9.4/src/token.c:132:11: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] pmars-0.9.4/src/uidisp.c:47:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable loopDelay [valueFlowBailoutIncompleteVar] pmars-0.9.4/src/uidisp.c:193:16: style: Variable 'altCode' can be declared as pointer to const [constVariablePointer] pmars-0.9.4/src/xgraphio.c:132:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable graphdriver [valueFlowBailoutIncompleteVar] pmars-0.9.4/src/xgraphio.c:170:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable graphdriver [valueFlowBailoutIncompleteVar] pmars-0.9.4/src/xgraphio.c:212:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BLACK [valueFlowBailoutIncompleteVar] diff: head pmars-0.9.4/src/asm.c:270:11: style: Variable 'symtable' can be declared as pointer to const [constVariablePointer] head pmars-0.9.4/src/asm.c:530:12: style: Variable 'aline' can be declared as pointer to const [constVariablePointer] head pmars-0.9.4/src/cdb.c:1506:51: style: Variable 'pos' can be declared as pointer to const [constVariablePointer] head pmars-0.9.4/src/cdb.c:1987:21: style: Variable 'TW' can be declared as pointer to const [constVariablePointer] head pmars-0.9.4/src/clparse.c:176:14: style: Variable 'clip' can be declared as pointer to const [constVariablePointer] head pmars-0.9.4/src/clparse.c:346:25: style: Variable 'idx' can be declared as pointer to const [constVariablePointer] DONE