2026-05-04 08:27 ftp://ftp.de.debian.org/debian/pool/main/p/png23d/png23d_1.10.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 -j1 platform: Linux-6.12.85+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.70 compiler: g++ (20250906) 15.2.0 cppcheck: head 2.20.0 head-info: e5c4a73 (2026-05-01 11:10:43 +0200) count: 106 106 elapsed-time: 0.7 0.6 head-timing-info: old-timing-info: head results: bitmap.c:100:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PNG_COLOR_TYPE_PALETTE [valueFlowBailoutIncompleteVar] mesh.c:54:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] mesh.c:54:5: portability: %d in format string (no. 2) requires 'int' but the argument type is 'idxvtx {aka unsigned int}'. [invalidPrintfArgType_sint] mesh_math.h:17:19: style: Parameter 'p0' can be declared as pointer to const [constParameterPointer] mesh_math.h:17:35: style: Parameter 'p1' can be declared as pointer to const [constParameterPointer] mesh_math.h:30:19: style: Parameter 'p0' can be declared as pointer to const [constParameterPointer] mesh_math.h:30:35: style: Parameter 'p1' can be declared as pointer to const [constParameterPointer] mesh_math.h:42:18: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] mesh_math.h:42:26: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] mesh_math.h:48:28: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] mesh_math.h:48:36: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] mesh_math.h:60:25: style: Parameter 'v0' can be declared as pointer to const [constParameterPointer] mesh_math.h:60:34: style: Parameter 'v1' can be declared as pointer to const [constParameterPointer] mesh_math.h:60:43: style: Parameter 'v2' can be declared as pointer to const [constParameterPointer] mesh_gen.c:710:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mesh_gen.c:698:31: style: Assigned value 'mesh_gen_surface(mesh,bm,struct options)' is always true [knownConditionTrueFalse] mesh_gen.c:698:31: note: Calling function 'mesh_gen_surface' returns 1 mesh_gen.c:698:31: note: Assigned value 'mesh_gen_surface(mesh,bm,struct options)' is always true mesh_gen.c:702:31: style: Assigned value 'mesh_gen_squares(mesh,bm,struct options)' is always true [knownConditionTrueFalse] mesh_gen.c:702:31: note: Calling function 'mesh_gen_squares' returns 1 mesh_gen.c:702:31: note: Assigned value 'mesh_gen_squares(mesh,bm,struct options)' is always true mesh_gen.c:706:29: style: Assigned value 'mesh_gen_cubes(mesh,bm,struct options)' is always true [knownConditionTrueFalse] mesh_gen.c:706:29: note: Calling function 'mesh_gen_cubes' returns 1 mesh_gen.c:706:29: note: Assigned value 'mesh_gen_cubes(mesh,bm,struct options)' is always true mesh_gen.c:693:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] mesh_gen.c:693:5: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] mesh_gen.c:693:5: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] mesh_gen.c:43:35: style: Parameter 'options' can be declared as pointer to const [constParameterPointer] mesh_gen.c:516:70: style: Parameter 'options' can be declared as pointer to const [constParameterPointer] mesh_gen.c:552:68: style: Parameter 'options' can be declared as pointer to const [constParameterPointer] mesh_gen.c:577:27: style: Parameter 'options' can be declared as pointer to const [constParameterPointer] mesh_gen.c:610:36: style: Parameter 'points' can be declared as const array [constParameter] mesh_gen.c:686:58: style: Parameter 'options' can be declared as pointer to const [constParameterPointer] mesh_index.c:337:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mesh_index.c:119:20: style: Variable 'be' can be declared as pointer to const [constVariablePointer] mesh_index.c:231:41: style: Parameter 'pnt' can be declared as pointer to const [constParameterPointer] mesh_index.c:234:20: style: Variable 'vertex' can be declared as pointer to const [constVariablePointer] mesh_index.c:320:40: style: Parameter 'facet' can be declared as pointer to const [constParameterPointer] mesh_index.c:349:19: style: Variable 'fend' can be declared as pointer to const [constVariablePointer] mesh_simplify.c:139:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mesh_simplify.c:190:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mesh_simplify.c:283:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mesh_simplify.c:38:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] mesh_simplify.c:38:5: portability: %d in format string (no. 2) requires 'int' but the argument type is 'idxvtx {aka unsigned int}'. [invalidPrintfArgType_sint] mesh_simplify.c:283:9: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'ptrdiff_t {aka signed int}'. [invalidPrintfArgType_sint] mesh_simplify.c:53:20: style: Variable 'v1' can be declared as pointer to const [constVariablePointer] mesh_simplify.c:257:20: style: Variable 'tvtx' can be declared as pointer to const [constVariablePointer] mesh_simplify.c:293:50: style: Parameter 'facet' can be declared as pointer to const [constParameterPointer] mesh_simplify.c:297:20: style: Variable 'vertex' can be declared as pointer to const [constVariablePointer] mesh_simplify.c:365:20: style: Variable 'cvtx' can be declared as pointer to const [constVariablePointer] mesh_simplify.c:163:21: style: Variable 'degenerate' is assigned a value that is never used. [unreadVariable] option.c:53:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] option.c:173:5: error: Memory leak: options.infile [memleak] option.c:173:5: error: Memory leak: options.outfile [memleak] out_pgm.c:38:17: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] out_pgm.c:33:13: warning: If resource allocation fails, then there is a possible null pointer dereference: outf [nullPointerOutOfResources] out_pgm.c:29:18: note: Assuming allocation function fails out_pgm.c:29:18: note: Assignment 'outf=fdopen(dup(fd),"w")', assigned value is 0 out_pgm.c:33:13: note: Null pointer dereference out_pgm.c:44:17: warning: If resource allocation fails, then there is a possible null pointer dereference: outf [nullPointerOutOfResources] out_pgm.c:29:18: note: Assuming allocation function fails out_pgm.c:29:18: note: Assignment 'outf=fdopen(dup(fd),"w")', assigned value is 0 out_pgm.c:44:17: note: Null pointer dereference out_pgm.c:47:12: warning: If resource allocation fails, then there is a possible null pointer dereference: outf [nullPointerOutOfResources] out_pgm.c:29:18: note: Assuming allocation function fails out_pgm.c:29:18: note: Assignment 'outf=fdopen(dup(fd),"w")', assigned value is 0 out_pgm.c:47:12: note: Null pointer dereference out_pgm.c:21:46: style: Parameter 'options' can be declared as pointer to const [constParameterPointer] out_pscad.c:45:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] out_pscad.c:58:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] out_pscad.c:61:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] out_pscad.c:61:5: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] out_pscad.c:64:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] out_pscad.c:64:5: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] out_pscad.c:67:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] out_pscad.c:67:5: warning: %zd in format string (no. 2) requires 'ssize_t' but the argument type is 'signed long'. [invalidPrintfArgType_sint] out_pscad.c:72:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] out_pscad.c:72:9: portability: %d in format string (no. 2) requires 'int' but the argument type is 'idxvtx {aka unsigned int}'. [invalidPrintfArgType_sint] out_pscad.c:77:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] out_pscad.c:77:9: portability: %d in format string (no. 2) requires 'int' but the argument type is 'idxvtx {aka unsigned int}'. [invalidPrintfArgType_sint] out_pscad.c:111:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] out_pscad.c:112:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] out_pscad.c:46:9: error: Resource leak: outf [resourceLeak] out_pscad.c:53:9: error: Resource leak: outf [resourceLeak] out_pscad.c:30:63: style: Parameter 'options' can be declared as pointer to const [constParameterPointer] out_pscad.c:39:20: style: Variable 'vertex' can be declared as pointer to const [constVariablePointer] out_rscad.c:97:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] out_rscad.c:98:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] out_rscad.c:49:13: warning: If resource allocation fails, then there is a possible null pointer dereference: outf [nullPointerOutOfResources] out_rscad.c:44:18: note: Assuming allocation function fails out_rscad.c:44:18: note: Assignment 'outf=fdopen(dup(fd),"w")', assigned value is 0 out_rscad.c:49:13: note: Null pointer dereference out_rscad.c:51:13: warning: If resource allocation fails, then there is a possible null pointer dereference: outf [nullPointerOutOfResources] out_rscad.c:44:18: note: Assuming allocation function fails out_rscad.c:44:18: note: Assignment 'outf=fdopen(dup(fd),"w")', assigned value is 0 out_rscad.c:51:13: note: Null pointer dereference out_rscad.c:52:13: warning: If resource allocation fails, then there is a possible null pointer dereference: outf [nullPointerOutOfResources] out_rscad.c:44:18: note: Assuming allocation function fails out_rscad.c:44:18: note: Assignment 'outf=fdopen(dup(fd),"w")', assigned value is 0 out_rscad.c:52:13: note: Null pointer dereference out_rscad.c:54:13: warning: If resource allocation fails, then there is a possible null pointer dereference: outf [nullPointerOutOfResources] out_rscad.c:44:18: note: Assuming allocation function fails out_rscad.c:44:18: note: Assignment 'outf=fdopen(dup(fd),"w")', assigned value is 0 out_rscad.c:54:13: note: Null pointer dereference out_rscad.c:96:13: warning: If resource allocation fails, then there is a possible null pointer dereference: outf [nullPointerOutOfResources] out_rscad.c:44:18: note: Assuming allocation function fails out_rscad.c:44:18: note: Assignment 'outf=fdopen(dup(fd),"w")', assigned value is 0 out_rscad.c:96:13: note: Null pointer dereference out_rscad.c:97:13: warning: If resource allocation fails, then there is a possible null pointer dereference: outf [nullPointerOutOfResources] out_rscad.c:44:18: note: Assuming allocation function fails out_rscad.c:44:18: note: Assignment 'outf=fdopen(dup(fd),"w")', assigned value is 0 out_rscad.c:97:13: note: Null pointer dereference out_rscad.c:98:13: warning: If resource allocation fails, then there is a possible null pointer dereference: outf [nullPointerOutOfResources] out_rscad.c:44:18: note: Assuming allocation function fails out_rscad.c:44:18: note: Assignment 'outf=fdopen(dup(fd),"w")', assigned value is 0 out_rscad.c:98:13: note: Null pointer dereference out_rscad.c:100:13: warning: If resource allocation fails, then there is a possible null pointer dereference: outf [nullPointerOutOfResources] out_rscad.c:44:18: note: Assuming allocation function fails out_rscad.c:44:18: note: Assignment 'outf=fdopen(dup(fd),"w")', assigned value is 0 out_rscad.c:100:13: note: Null pointer dereference out_rscad.c:31:37: style: Parameter 'bm' can be declared as pointer to const [constParameterPointer] out_rscad.c:31:58: style: Parameter 'options' can be declared as pointer to const [constParameterPointer] out_stl.c:35:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] out_stl.c:50:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] out_stl.c:53:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] out_stl.c:53:9: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] out_stl.c:58:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] out_stl.c:58:9: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] out_stl.c:62:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] out_stl.c:62:9: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] out_stl.c:66:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] out_stl.c:66:9: warning: %zd in format string (no. 2) requires 'ssize_t' but the argument type is 'signed long'. [invalidPrintfArgType_sint] out_stl.c:70:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] out_stl.c:70:9: portability: %d in format string (no. 2) requires 'int' but the argument type is 'idxvtx {aka unsigned int}'. [invalidPrintfArgType_sint] out_stl.c:74:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] out_stl.c:77:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] out_stl.c:166:13: warning: If resource allocation fails, then there is a possible null pointer dereference: outf [nullPointerOutOfResources] out_stl.c:193:18: note: Assuming allocation function fails out_stl.c:193:18: note: Assignment 'outf=fdopen(dup(fd),"w")', assigned value is 0 out_stl.c:198:24: note: Calling function 'output_stl_tri', 1st argument 'outf' value is 0 out_stl.c:166:13: note: Null pointer dereference out_stl.c:195:13: warning: If resource allocation fails, then there is a possible null pointer dereference: outf [nullPointerOutOfResources] out_stl.c:193:18: note: Assuming allocation function fails out_stl.c:193:18: note: Assignment 'outf=fdopen(dup(fd),"w")', assigned value is 0 out_stl.c:195:13: note: Null pointer dereference out_stl.c:204:13: warning: If resource allocation fails, then there is a possible null pointer dereference: outf [nullPointerOutOfResources] out_stl.c:193:18: note: Assuming allocation function fails out_stl.c:193:18: note: Assignment 'outf=fdopen(dup(fd),"w")', assigned value is 0 out_stl.c:204:13: note: Null pointer dereference out_stl.c:208:12: warning: If resource allocation fails, then there is a possible null pointer dereference: outf [nullPointerOutOfResources] out_stl.c:193:18: note: Assuming allocation function fails out_stl.c:193:18: note: Assignment 'outf=fdopen(dup(fd),"w")', assigned value is 0 out_stl.c:208:12: note: Null pointer dereference out_stl.c:29:59: style: Parameter 'options' can be declared as pointer to const [constParameterPointer] out_stl.c:98:51: style: Parameter 'options' can be declared as pointer to const [constParameterPointer] out_stl.c:181:52: style: Parameter 'options' can be declared as pointer to const [constParameterPointer] png23d.c:47:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] out_stl.c:166:13: warning: If resource allocation fails, then there is a possible null pointer dereference: outf [ctunullpointerOutOfResources] out_stl.c:193:18: note: Assuming allocation function fails out_stl.c:193:18: note: Assignment 'outf=fdopen(dup(fd),"w")', assigned value is 0 out_stl.c:198:23: note: Calling function output_stl_tri, 1st argument is null out_stl.c:166:13: note: Dereferencing argument outf that is null diff: DONE