2022-06-23 00:29 ftp://ftp.de.debian.org/debian/pool/main/libc/libctl/libctl_4.5.1.orig.tar.gz cppcheck-options: --library=posix --library=gnu --showtime=top5 --check-library --inconclusive --enable=style,information --inline-suppr --template=daca2 -D__GNUC__ --platform=unix64 -rp=temp -j4 platform: Linux-5.10.0-15-amd64-x86_64-with-glibc2.31 python: 3.9.2 client-version: 1.3.25 compiler: g++ (Debian 10.2.1-6) 10.2.1 20210110 cppcheck: head 2.8 head-info: f1212e6 (2022-06-22 21:22:04 +0200) count: 63 63 elapsed-time: 1.7 2.5 head-timing-info: Overall time: 0s old-timing-info: Overall time: 0s head results: libctl-4.5.1/src/integrator.c:128:10: error: Uninitialized variable: R.ee [uninitvar] libctl-4.5.1/src/subplex.c:84:35: style: Parameter 'n' can be declared as pointer to const [constParameter] libctl-4.5.1/src/subplex.c:84:63: style: Parameter 'incx' can be declared as pointer to const [constParameter] libctl-4.5.1/src/subplex.c:153:28: style: Parameter 'n' can be declared as pointer to const [constParameter] libctl-4.5.1/src/subplex.c:153:43: style: Parameter 'da' can be declared as pointer to const [constParameter] libctl-4.5.1/src/subplex.c:153:72: style: Parameter 'incx' can be declared as pointer to const [constParameter] libctl-4.5.1/src/subplex.c:154:28: style: Parameter 'incy' can be declared as pointer to const [constParameter] libctl-4.5.1/src/subplex.c:221:28: style: Parameter 'n' can be declared as pointer to const [constParameter] libctl-4.5.1/src/subplex.c:221:56: style: Parameter 'incx' can be declared as pointer to const [constParameter] libctl-4.5.1/src/subplex.c:221:87: style: Parameter 'incy' can be declared as pointer to const [constParameter] libctl-4.5.1/src/subplex.c:290:28: style: Parameter 'n' can be declared as pointer to const [constParameter] libctl-4.5.1/src/subplex.c:290:72: style: Parameter 'incx' can be declared as pointer to const [constParameter] libctl-4.5.1/src/subplex.c:290:43: style: Parameter 'da' can be declared as pointer to const [constParameter] libctl-4.5.1/src/subplex.c:353:34: style: Parameter 'n' can be declared as pointer to const [constParameter] libctl-4.5.1/src/subplex.c:433:56: style: Parameter 'ih' can be declared as pointer to const [constParameter] libctl-4.5.1/src/subplex.c:433:69: style: Parameter 'inew' can be declared as pointer to const [constParameter] libctl-4.5.1/src/subplex.c:512:28: style: Parameter 'npts' can be declared as pointer to const [constParameter] libctl-4.5.1/src/subplex.c:603:28: style: Parameter 'n' can be declared as pointer to const [constParameter] libctl-4.5.1/src/subplex.c:707:28: style: Parameter 'n' can be declared as pointer to const [constParameter] libctl-4.5.1/src/subplex.c:787:28: style: Parameter 'ns' can be declared as pointer to const [constParameter] libctl-4.5.1/src/subplex.c:787:44: style: Parameter 'coef' can be declared as pointer to const [constParameter] libctl-4.5.1/src/subplex.c:975:45: style: Parameter 'ifxwt' can be declared as pointer to const [constParameter] libctl-4.5.1/src/subplex.c:1060:49: style: Parameter 'ns' can be declared as pointer to const [constParameter] libctl-4.5.1/src/subplex.c:1166:29: style: Parameter 'maxnfe' can be declared as pointer to const [constParameter] libctl-4.5.1/src/subplex.c:1568:29: style: Parameter 'nsubs' can be declared as pointer to const [constParameter] libctl-4.5.1/src/subplex.c:1650:96: style: Parameter 'mode' can be declared as pointer to const [constParameter] libctl-4.5.1/src/subplex.c:1650:65: style: Parameter 'tol' can be declared as pointer to const [constParameter] libctl-4.5.1/src/subplex.c:1655:21: style: Variable 'bnsfac' can be declared as const array [constVariable] libctl-4.5.1/utils/geom.c:2214:5: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] libctl-4.5.1/utils/geom.c:1264:9: style: Condition '!empty_x' is always false [knownConditionTrueFalse] libctl-4.5.1/utils/geom.c:1285:9: style: Condition '!empty_x' is always false [knownConditionTrueFalse] libctl-4.5.1/utils/geom.c:1292:9: style: Condition '!empty_y' is always false [knownConditionTrueFalse] libctl-4.5.1/utils/geom.c:2584:5: error: Common realloc mistake: 'vertices' nulled but not freed upon failure [memleakOnRealloc] libctl-4.5.1/utils/geom.c:869:40: style:inconclusive: Function 'square_basis' argument 1 names different: declaration 'lattice_basis' definition 'basis'. [funcArgNamesDifferent] libctl-4.5.1/utils/ctlgeom.h:92:41: note: Function 'square_basis' argument 1 names different: declaration 'lattice_basis' definition 'basis'. libctl-4.5.1/utils/geom.c:869:40: note: Function 'square_basis' argument 1 names different: declaration 'lattice_basis' definition 'basis'. libctl-4.5.1/utils/geom.c:2098:32: style:inconclusive: Function 'node_in_polygon' argument 1 names different: declaration 'qx' definition 'q0x'. [funcArgNamesDifferent] libctl-4.5.1/utils/geom.c:75:39: note: Function 'node_in_polygon' argument 1 names different: declaration 'qx' definition 'q0x'. libctl-4.5.1/utils/geom.c:2098:32: note: Function 'node_in_polygon' argument 1 names different: declaration 'qx' definition 'q0x'. libctl-4.5.1/utils/geom.c:2098:44: style:inconclusive: Function 'node_in_polygon' argument 2 names different: declaration 'qy' definition 'q0y'. [funcArgNamesDifferent] libctl-4.5.1/utils/geom.c:75:50: note: Function 'node_in_polygon' argument 2 names different: declaration 'qy' definition 'q0y'. libctl-4.5.1/utils/geom.c:2098:44: note: Function 'node_in_polygon' argument 2 names different: declaration 'qy' definition 'q0y'. libctl-4.5.1/utils/geom.c:1154:55: style: Parameter 'x' can be declared as pointer to const [constParameter] libctl-4.5.1/utils/geom.c:1156:10: style: Unused variable: s [unusedVariable] libctl-4.5.1/utils/geom.c:2110:17: style: Variable 'height' is assigned a value that is never used. [unreadVariable] libctl-4.5.1/utils/geom.c:2214:11: style: Variable 'slist' is assigned a value that is never used. [unreadVariable] libctl-4.5.1/utils/geom.c:2357:17: style: Variable 'axisp' is assigned a value that is never used. [unreadVariable] libctl-4.5.1/utils/geom.c:2548:17: style: Variable 'nvnorm' is assigned a value that is never used. [unreadVariable] libctl-4.5.1/utils/geom.c:2641:14: style: Variable 'centroid' is assigned a value that is never used. [unreadVariable] libctl-4.5.1/utils/test-prism.c:1262:5: error: Common realloc mistake: 'vertices' nulled but not freed upon failure [memleakOnRealloc] libctl-4.5.1/utils/test-prism.c:227:1: error: Memory leak: vertices.items [memleak] libctl-4.5.1/utils/test-prism.c:227:1: error: Memory leak: vertices_top.items [memleak] libctl-4.5.1/utils/test-prism.c:1085:3: error: Memory leak: point_in_prism_test_points_normal_sidewall.items [memleak] libctl-4.5.1/utils/test-prism.c:1085:3: error: Memory leak: point_in_prism_test_points_tapered_sidewall.items [memleak] libctl-4.5.1/utils/test-prism.c:1085:3: error: Memory leak: normal_to_prism_test_points_normal_sidewall.items [memleak] libctl-4.5.1/utils/test-prism.c:1085:3: error: Memory leak: normal_to_prism_test_points_tapered_sidewall.items [memleak] libctl-4.5.1/utils/test-prism.c:1085:3: error: Memory leak: intersect_line_with_prism_test_points_normal_sidewall.items [memleak] libctl-4.5.1/utils/test-prism.c:1085:3: error: Memory leak: intersect_line_with_prism_test_points_tapered_sidewall.items [memleak] libctl-4.5.1/utils/test-prism.c:1159:37: warning: Either the condition '!msg' is redundant or there is possible null pointer dereference: msg. [nullPointerRedundantCheck] libctl-4.5.1/utils/test-prism.c:1159:7: note: Assuming that condition '!msg' is not redundant libctl-4.5.1/utils/test-prism.c:1159:37: note: Null pointer dereference libctl-4.5.1/utils/test-prism.c:1159:37: error: Null pointer dereference [nullPointer] libctl-4.5.1/utils/test-prism.c:193:22: style: Variable 'vertices.num_items' is assigned a value that is never used. [unreadVariable] libctl-4.5.1/utils/test-prism.c:197:26: style: Variable 'vertices_top.num_items' is assigned a value that is never used. [unreadVariable] libctl-4.5.1/utils/test-prism.c:237:16: style: Variable 'axis' is assigned a value that is never used. [unreadVariable] libctl-4.5.1/utils/test-prism.c:481:26: style: Variable 'normal_sidewall' is assigned a value that is never used. [unreadVariable] libctl-4.5.1/utils/test-prism.c:525:26: style: Variable 'normal_sidewall' is assigned a value that is never used. [unreadVariable] libctl-4.5.1/utils/test-prism.c:576:26: style: Variable 'normal_sidewall' is assigned a value that is never used. [unreadVariable] libctl-4.5.1/utils/test-prism.c:578:42: style: Variable 'octagon_c_normal_sidewall_prism' is assigned a value that is never used. [unreadVariable] libctl-4.5.1/utils/test-prism.c:582:51: style: Variable 'octagon_c_two_half_degree_sidewall_prism' is assigned a value that is never used. [unreadVariable] libctl-4.5.1/utils/test-prism.c:1253:7: style: Variable 'LineNum' is assigned a value that is never used. [unreadVariable] diff: head libctl-4.5.1/src/subplex.c:1060:49: style: Parameter 'ns' can be declared as pointer to const [constParameter] 2.8 libctl-4.5.1/src/subplex.c:1060:49: style: Parameter 'ns' can be declared with const [constParameter] head libctl-4.5.1/src/subplex.c:1166:29: style: Parameter 'maxnfe' can be declared as pointer to const [constParameter] 2.8 libctl-4.5.1/src/subplex.c:1166:29: style: Parameter 'maxnfe' can be declared with const [constParameter] head libctl-4.5.1/src/subplex.c:153:28: style: Parameter 'n' can be declared as pointer to const [constParameter] 2.8 libctl-4.5.1/src/subplex.c:153:28: style: Parameter 'n' can be declared with const [constParameter] head libctl-4.5.1/src/subplex.c:153:43: style: Parameter 'da' can be declared as pointer to const [constParameter] 2.8 libctl-4.5.1/src/subplex.c:153:43: style: Parameter 'da' can be declared with const [constParameter] head libctl-4.5.1/src/subplex.c:153:72: style: Parameter 'incx' can be declared as pointer to const [constParameter] 2.8 libctl-4.5.1/src/subplex.c:153:72: style: Parameter 'incx' can be declared with const [constParameter] head libctl-4.5.1/src/subplex.c:154:28: style: Parameter 'incy' can be declared as pointer to const [constParameter] 2.8 libctl-4.5.1/src/subplex.c:154:28: style: Parameter 'incy' can be declared with const [constParameter] head libctl-4.5.1/src/subplex.c:1568:29: style: Parameter 'nsubs' can be declared as pointer to const [constParameter] 2.8 libctl-4.5.1/src/subplex.c:1568:29: style: Parameter 'nsubs' can be declared with const [constParameter] head libctl-4.5.1/src/subplex.c:1650:65: style: Parameter 'tol' can be declared as pointer to const [constParameter] 2.8 libctl-4.5.1/src/subplex.c:1650:65: style: Parameter 'tol' can be declared with const [constParameter] head libctl-4.5.1/src/subplex.c:1650:96: style: Parameter 'mode' can be declared as pointer to const [constParameter] 2.8 libctl-4.5.1/src/subplex.c:1650:96: style: Parameter 'mode' can be declared with const [constParameter] head libctl-4.5.1/src/subplex.c:1655:21: style: Variable 'bnsfac' can be declared as const array [constVariable] 2.8 libctl-4.5.1/src/subplex.c:1655:21: style: Variable 'bnsfac' can be declared with const [constVariable] head libctl-4.5.1/src/subplex.c:221:28: style: Parameter 'n' can be declared as pointer to const [constParameter] 2.8 libctl-4.5.1/src/subplex.c:221:28: style: Parameter 'n' can be declared with const [constParameter] head libctl-4.5.1/src/subplex.c:221:56: style: Parameter 'incx' can be declared as pointer to const [constParameter] 2.8 libctl-4.5.1/src/subplex.c:221:56: style: Parameter 'incx' can be declared with const [constParameter] head libctl-4.5.1/src/subplex.c:221:87: style: Parameter 'incy' can be declared as pointer to const [constParameter] 2.8 libctl-4.5.1/src/subplex.c:221:87: style: Parameter 'incy' can be declared with const [constParameter] head libctl-4.5.1/src/subplex.c:290:28: style: Parameter 'n' can be declared as pointer to const [constParameter] 2.8 libctl-4.5.1/src/subplex.c:290:28: style: Parameter 'n' can be declared with const [constParameter] head libctl-4.5.1/src/subplex.c:290:43: style: Parameter 'da' can be declared as pointer to const [constParameter] 2.8 libctl-4.5.1/src/subplex.c:290:43: style: Parameter 'da' can be declared with const [constParameter] head libctl-4.5.1/src/subplex.c:290:72: style: Parameter 'incx' can be declared as pointer to const [constParameter] 2.8 libctl-4.5.1/src/subplex.c:290:72: style: Parameter 'incx' can be declared with const [constParameter] head libctl-4.5.1/src/subplex.c:353:34: style: Parameter 'n' can be declared as pointer to const [constParameter] 2.8 libctl-4.5.1/src/subplex.c:353:34: style: Parameter 'n' can be declared with const [constParameter] head libctl-4.5.1/src/subplex.c:433:56: style: Parameter 'ih' can be declared as pointer to const [constParameter] 2.8 libctl-4.5.1/src/subplex.c:433:56: style: Parameter 'ih' can be declared with const [constParameter] head libctl-4.5.1/src/subplex.c:433:69: style: Parameter 'inew' can be declared as pointer to const [constParameter] 2.8 libctl-4.5.1/src/subplex.c:433:69: style: Parameter 'inew' can be declared with const [constParameter] head libctl-4.5.1/src/subplex.c:512:28: style: Parameter 'npts' can be declared as pointer to const [constParameter] 2.8 libctl-4.5.1/src/subplex.c:512:28: style: Parameter 'npts' can be declared with const [constParameter] head libctl-4.5.1/src/subplex.c:603:28: style: Parameter 'n' can be declared as pointer to const [constParameter] 2.8 libctl-4.5.1/src/subplex.c:603:28: style: Parameter 'n' can be declared with const [constParameter] head libctl-4.5.1/src/subplex.c:707:28: style: Parameter 'n' can be declared as pointer to const [constParameter] 2.8 libctl-4.5.1/src/subplex.c:707:28: style: Parameter 'n' can be declared with const [constParameter] head libctl-4.5.1/src/subplex.c:787:28: style: Parameter 'ns' can be declared as pointer to const [constParameter] 2.8 libctl-4.5.1/src/subplex.c:787:28: style: Parameter 'ns' can be declared with const [constParameter] head libctl-4.5.1/src/subplex.c:787:44: style: Parameter 'coef' can be declared as pointer to const [constParameter] 2.8 libctl-4.5.1/src/subplex.c:787:44: style: Parameter 'coef' can be declared with const [constParameter] head libctl-4.5.1/src/subplex.c:84:35: style: Parameter 'n' can be declared as pointer to const [constParameter] 2.8 libctl-4.5.1/src/subplex.c:84:35: style: Parameter 'n' can be declared with const [constParameter] head libctl-4.5.1/src/subplex.c:84:63: style: Parameter 'incx' can be declared as pointer to const [constParameter] 2.8 libctl-4.5.1/src/subplex.c:84:63: style: Parameter 'incx' can be declared with const [constParameter] head libctl-4.5.1/src/subplex.c:975:45: style: Parameter 'ifxwt' can be declared as pointer to const [constParameter] 2.8 libctl-4.5.1/src/subplex.c:975:45: style: Parameter 'ifxwt' can be declared with const [constParameter] head libctl-4.5.1/utils/geom.c:1154:55: style: Parameter 'x' can be declared as pointer to const [constParameter] 2.8 libctl-4.5.1/utils/geom.c:1154:55: style: Parameter 'x' can be declared with const [constParameter] DONE