2022-06-25 12:29 ftp://ftp.de.debian.org/debian/pool/main/t/tdigest/tdigest_1.4.0.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: 63e567e (2022-06-25 08:38:17 +0200) count: 8 8 elapsed-time: 0.3 0.3 head-timing-info: Overall time: 0s old-timing-info: Overall time: 0s head results: tdigest-1.4.0/tdigest.c:692:27: style: Array index 'j' is used before limits check. [arrayIndexThenCheck] tdigest-1.4.0/tdigest.c:684:16: warning: Possible null pointer dereference: c [nullPointer] tdigest-1.4.0/tdigest.c:667:19: note: Assignment 'c=NULL', assigned value is 0 tdigest-1.4.0/tdigest.c:673:17: note: Assuming condition is false tdigest-1.4.0/tdigest.c:684:16: note: Null pointer dereference tdigest-1.4.0/tdigest.c:901:24: portability: Casting between char * and double * which have an incompatible binary data representation. [invalidPointerCast] tdigest-1.4.0/tdigest.c:907:19: portability: Casting between char * and double * which have an incompatible binary data representation. [invalidPointerCast] tdigest-1.4.0/tdigest.c:1231:9: style: Local variable 'i' shadows outer variable [shadowVariable] tdigest-1.4.0/tdigest.c:1154:11: note: Shadowed declaration tdigest-1.4.0/tdigest.c:1231:9: note: Shadow variable tdigest-1.4.0/tdigest.c:1413:9: style: Local variable 'i' shadows outer variable [shadowVariable] tdigest-1.4.0/tdigest.c:1336:11: note: Shadowed declaration tdigest-1.4.0/tdigest.c:1413:9: note: Shadow variable tdigest-1.4.0/tdigest.c:2662:11: style: Local variable 'mean' shadows outer variable [shadowVariable] tdigest-1.4.0/tdigest.c:2642:10: note: Shadowed declaration tdigest-1.4.0/tdigest.c:2662:11: note: Shadow variable tdigest-1.4.0/tdigest.c:3061:9: style: Local variable 'i' shadows outer variable [shadowVariable] tdigest-1.4.0/tdigest.c:2995:7: note: Shadowed declaration tdigest-1.4.0/tdigest.c:3061:9: note: Shadow variable diff: DONE