2025-01-26 17:03 ftp://ftp.de.debian.org/debian/pool/main/3/3d-ascii-viewer-c/3d-ascii-viewer-c_1.4.0+git20240503+ds.orig.tar.xz 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 -j3 platform: Linux-6.8.0-1016-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.59 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.16.0 head-info: 0eb54ba (2025-01-25 21:24:33 +0100) count: 44 42 elapsed-time: 3.4 1.2 head-timing-info: old-timing-info: head results: 3d-ascii-viewer-1.4.0+git20240503+ds/src/surface.c:69:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 3d-ascii-viewer-1.4.0+git20240503+ds/src/surface.c:97:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INFINITY [valueFlowBailoutIncompleteVar] 3d-ascii-viewer-1.4.0+git20240503+ds/src/surface.c:215:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COLOR_PAIRS [valueFlowBailoutIncompleteVar] 3d-ascii-viewer-1.4.0+git20240503+ds/src/surface.c:246:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COLOR_PAIRS [valueFlowBailoutIncompleteVar] 3d-ascii-viewer-1.4.0+git20240503+ds/src/triangularization.c:124:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 3d-ascii-viewer-1.4.0+git20240503+ds/src/triangularization.c:195:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:19:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:50:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:63:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:83:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:99:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:115:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:327:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:384:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:404:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:566:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 3d-ascii-viewer-1.4.0+git20240503+ds/src/triangularization.c:63:18: warning: Uninitialized variable: v1.y [uninitvar] 3d-ascii-viewer-1.4.0+git20240503+ds/src/triangularization.c:43:23: note: Assuming condition is false 3d-ascii-viewer-1.4.0+git20240503+ds/src/triangularization.c:63:18: note: Uninitialized variable: v1.y 3d-ascii-viewer-1.4.0+git20240503+ds/src/triangularization.c:63:25: warning: Uninitialized variable: v3.y [uninitvar] 3d-ascii-viewer-1.4.0+git20240503+ds/src/triangularization.c:43:23: note: Assuming condition is false 3d-ascii-viewer-1.4.0+git20240503+ds/src/triangularization.c:63:25: note: Uninitialized variable: v3.y 3d-ascii-viewer-1.4.0+git20240503+ds/src/viewer.c:115:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 3d-ascii-viewer-1.4.0+git20240503+ds/src/viewer.c:366:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COLORS [valueFlowBailoutIncompleteVar] 3d-ascii-viewer-1.4.0+git20240503+ds/src/viewer.c:486:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdscr [valueFlowBailoutIncompleteVar] 3d-ascii-viewer-1.4.0+git20240503+ds/src/viewer.c:579:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:83:17: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:465:21: error: Common realloc mistake: 'idxs' nulled but not freed upon failure [memleakOnRealloc] 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:16:5: warning: If memory allocation fails, then there is a possible null pointer dereference: model [nullPointerOutOfMemory] 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:14:33: note: Assuming allocation function fails 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:14:33: note: Assignment 'model=malloc(sizeof(*model))', assigned value is 0 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:16:5: note: Null pointer dereference 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:17:11: warning: If memory allocation fails, then there is a possible null pointer dereference: model [nullPointerOutOfMemory] 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:14:33: note: Assuming allocation function fails 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:14:33: note: Assignment 'model=malloc(sizeof(*model))', assigned value is 0 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:17:11: note: Null pointer dereference 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:594:15: style: Local variable 'bufferp' shadows outer variable [shadowVariable] 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:586:11: note: Shadowed declaration 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:594:15: note: Shadow variable 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:595:15: style: Local variable 'instr' shadows outer variable [shadowVariable] 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:587:11: note: Shadowed declaration 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:595:15: note: Shadow variable 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:609:19: style: Local variable 'bufferp' shadows outer variable [shadowVariable] 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:586:11: note: Shadowed declaration 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:609:19: note: Shadow variable 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:610:19: style: Local variable 'instr' shadows outer variable [shadowVariable] 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:587:11: note: Shadowed declaration 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:610:19: note: Shadow variable 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:655:14: style: Local variable 'buffer' shadows outer variable [shadowVariable] 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:574:10: note: Shadowed declaration 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:655:14: note: Shadow variable 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:137:42: style: Parameter 'model' can be declared as pointer to const [constParameterPointer] 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:243:41: style: Parameter 'delim' can be declared as pointer to const [constParameterPointer] 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:293:11: style: Variable 'f_str' can be declared as pointer to const [constVariablePointer] 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:303:11: style: Variable 'i_str' can be declared as pointer to const [constVariablePointer] 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:339:15: style: Variable 'instr' can be declared as pointer to const [constVariablePointer] 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:428:15: style: Variable 'instr' can be declared as pointer to const [constVariablePointer] 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:587:11: style: Variable 'instr' can be declared as pointer to const [constVariablePointer] 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:595:15: style: Variable 'instr' can be declared as pointer to const [constVariablePointer] 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:610:19: style: Variable 'instr' can be declared as pointer to const [constVariablePointer] 3d-ascii-viewer-1.4.0+git20240503+ds/src/viewer.c:329:9: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] 3d-ascii-viewer-1.4.0+git20240503+ds/src/viewer.c:26:42: style: Parameter 'argv' can be declared as const array [constParameter] 3d-ascii-viewer-1.4.0+git20240503+ds/src/viewer.c:66:48: style: Parameter 'argv' can be declared as const array [constParameter] 3d-ascii-viewer-1.4.0+git20240503+ds/src/viewer.c:98:9: style: struct member 'arguments::arg_num' is never used. [unusedStructMember] diff: 2.16.0 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:115:17: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:115:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:16:5: warning: If memory allocation fails, then there is a possible null pointer dereference: model [nullPointerOutOfMemory] 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:14:33: note: Assuming allocation function fails 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:14:33: note: Assignment 'model=malloc(sizeof(*model))', assigned value is 0 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:16:5: note: Null pointer dereference head 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:17:11: warning: If memory allocation fails, then there is a possible null pointer dereference: model [nullPointerOutOfMemory] 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:14:33: note: Assuming allocation function fails 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:14:33: note: Assignment 'model=malloc(sizeof(*model))', assigned value is 0 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:17:11: note: Null pointer dereference 2.16.0 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:19:17: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:19:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.16.0 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:327:17: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:327:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.16.0 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:384:21: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:384:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.16.0 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:404:17: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:404:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.16.0 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:50:21: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:50:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.16.0 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:566:17: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:566:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.16.0 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:63:17: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:63:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.16.0 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:83:25: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:83:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.16.0 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:99:21: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head 3d-ascii-viewer-1.4.0+git20240503+ds/src/model.c:99:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.16.0 3d-ascii-viewer-1.4.0+git20240503+ds/src/surface.c:215:56: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable COLOR_PAIRS [valueFlowBailoutIncompleteVar] head 3d-ascii-viewer-1.4.0+git20240503+ds/src/surface.c:215:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COLOR_PAIRS [valueFlowBailoutIncompleteVar] 2.16.0 3d-ascii-viewer-1.4.0+git20240503+ds/src/surface.c:246:56: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable COLOR_PAIRS [valueFlowBailoutIncompleteVar] head 3d-ascii-viewer-1.4.0+git20240503+ds/src/surface.c:246:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COLOR_PAIRS [valueFlowBailoutIncompleteVar] 2.16.0 3d-ascii-viewer-1.4.0+git20240503+ds/src/surface.c:69:17: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head 3d-ascii-viewer-1.4.0+git20240503+ds/src/surface.c:69:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.16.0 3d-ascii-viewer-1.4.0+git20240503+ds/src/surface.c:97:32: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable INFINITY [valueFlowBailoutIncompleteVar] head 3d-ascii-viewer-1.4.0+git20240503+ds/src/surface.c:97:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INFINITY [valueFlowBailoutIncompleteVar] 2.16.0 3d-ascii-viewer-1.4.0+git20240503+ds/src/triangularization.c:124:21: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head 3d-ascii-viewer-1.4.0+git20240503+ds/src/triangularization.c:124:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.16.0 3d-ascii-viewer-1.4.0+git20240503+ds/src/triangularization.c:195:17: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head 3d-ascii-viewer-1.4.0+git20240503+ds/src/triangularization.c:195:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.16.0 3d-ascii-viewer-1.4.0+git20240503+ds/src/viewer.c:115:17: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head 3d-ascii-viewer-1.4.0+git20240503+ds/src/viewer.c:115:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.16.0 3d-ascii-viewer-1.4.0+git20240503+ds/src/viewer.c:366:22: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable COLORS [valueFlowBailoutIncompleteVar] head 3d-ascii-viewer-1.4.0+git20240503+ds/src/viewer.c:366:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COLORS [valueFlowBailoutIncompleteVar] 2.16.0 3d-ascii-viewer-1.4.0+git20240503+ds/src/viewer.c:486:14: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stdscr [valueFlowBailoutIncompleteVar] head 3d-ascii-viewer-1.4.0+git20240503+ds/src/viewer.c:486:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdscr [valueFlowBailoutIncompleteVar] 2.16.0 3d-ascii-viewer-1.4.0+git20240503+ds/src/viewer.c:579:17: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head 3d-ascii-viewer-1.4.0+git20240503+ds/src/viewer.c:579:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] DONE