2026-05-04 17:24 ftp://ftp.de.debian.org/debian/pool/main/r/r-cran-adegenet/r-cran-adegenet_2.1.11.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.8.0-1047-aws-aarch64-with-glibc2.35 python: 3.10.12 client-version: 1.4.0 compiler: g++ (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0 cppcheck: head 2.20.0 head-info: 519958a (2026-05-04 15:03:10 +0200) count: 61 61 elapsed-time: 0.6 0.5 head-timing-info: old-timing-info: head results: adegenet/src/GLfunctions.c:23:172: style: Parameter 'freq' can be declared as pointer to const [constParameterPointer] adegenet/src/adesub.c:454:18: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] adegenet/src/adesub.c:456:10: portability:inconclusive: Casting from double * * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] adegenet/src/adesub.c:464:10: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] adegenet/src/adesub.c:971:17: style: Statements following 'return' will never be executed. [unreachableCode] adegenet/src/adesub.c:480:10: style: Local variable 'alea' shadows outer function [shadowFunction] adegenet/src/adesub.h:8:8: note: Shadowed declaration adegenet/src/adesub.c:480:10: note: Shadow variable adegenet/src/adesub.c:9:53: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] adegenet/src/adesub.c:9:64: style: Parameter 'q' can be declared as pointer to const [constParameterPointer] adegenet/src/adesub.c:101:38: style: Parameter 'pl' can be declared as pointer to const [constParameterPointer] adegenet/src/adesub.c:507:52: style: Parameter 'typ' can be declared as pointer to const [constParameterPointer] adegenet/src/adesub.c:533:40: style: Parameter 'poili' can be declared as pointer to const [constParameterPointer] adegenet/src/adesub.c:575:40: style: Parameter 'poili' can be declared as pointer to const [constParameterPointer] adegenet/src/adesub.c:635:40: style: Parameter 'poili' can be declared as pointer to const [constParameterPointer] adegenet/src/adesub.c:683:40: style: Parameter 'poili' can be declared as pointer to const [constParameterPointer] adegenet/src/adesub.c:722:40: style: Parameter 'poili' can be declared as pointer to const [constParameterPointer] adegenet/src/adesub.c:775:34: style: Parameter 'num' can be declared as pointer to const [constParameterPointer] adegenet/src/adesub.c:877:24: style: Parameter 'vec' can be declared as pointer to const [constParameterPointer] adegenet/src/adesub.c:916:65: style: Parameter 'permut' can be declared as pointer to const [constParameterPointer] adegenet/src/adesub.c:1127:25: style: Parameter 'A' can be declared as pointer to const [constParameterPointer] adegenet/src/adesub.c:1127:33: style: Parameter 'num' can be declared as pointer to const [constParameterPointer] adegenet/src/init.c:31:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] adegenet/src/monmonier-utils.c:81:23: style: Parameter 'nrow' can be declared as pointer to const [constParameterPointer] adegenet/src/monmonier-utils.c:81:34: style: Parameter 'ncol' can be declared as pointer to const [constParameterPointer] adegenet/src/monmonier-utils.c:81:48: style: Parameter 'tab' can be declared as pointer to const [constParameterPointer] adegenet/src/monmonier-utils.c:196:11: style: Variable 'p[1]' is assigned a value that is never used. [unreadVariable] adegenet/src/sharedAll.c:25:21: style: Parameter 'matAll' can be declared as pointer to const [constParameterPointer] adegenet/src/sharedAll.c:25:34: style: Parameter 'nRow' can be declared as pointer to const [constParameterPointer] adegenet/src/sharedAll.c:25:45: style: Parameter 'nCol' can be declared as pointer to const [constParameterPointer] adegenet/src/sharedAll.c:128:25: style: Parameter 'in' can be declared as pointer to const [constParameterPointer] adegenet/src/sharedAll.c:128:44: style: Parameter 'nind' can be declared as pointer to const [constParameterPointer] adegenet/src/sharedAll.c:128:55: style: Parameter 'ncol' can be declared as pointer to const [constParameterPointer] adegenet/src/snpbin.c:102:2: warning: If memory allocation fails, then there is a possible null pointer dereference: out [nullPointerOutOfMemory] adegenet/src/snpbin.c:185:26: note: Assuming allocation function fails adegenet/src/snpbin.c:185:12: note: Assignment 'temp=(int*)calloc(8,sizeof(int))', assigned value is 0 adegenet/src/snpbin.c:196:54: note: Calling function 'byteToBinInt', 2nd argument 'temp' value is 0 adegenet/src/snpbin.c:102:2: note: Null pointer dereference adegenet/src/snpbin.c:125:2: warning: If memory allocation fails, then there is a possible null pointer dereference: out [nullPointerOutOfMemory] adegenet/src/snpbin.c:214:29: note: Assuming allocation function fails adegenet/src/snpbin.c:214:12: note: Assignment 'temp=(double*)calloc(8,sizeof(double))', assigned value is 0 adegenet/src/snpbin.c:224:57: note: Calling function 'byteToBinDouble', 2nd argument 'temp' value is 0 adegenet/src/snpbin.c:125:2: note: Null pointer dereference adegenet/src/snpbin.c:151:31: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] adegenet/src/snpbin.c:146:26: note: Assuming allocation function fails adegenet/src/snpbin.c:146:12: note: Assignment 'temp=(int*)calloc(8,sizeof(int))', assigned value is 0 adegenet/src/snpbin.c:151:31: note: Null pointer dereference adegenet/src/snpbin.c:318:6: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] adegenet/src/snpbin.c:317:25: note: Assuming allocation function fails adegenet/src/snpbin.c:317:11: note: Assignment 'temp=(int*)calloc(1,sizeof(int))', assigned value is 0 adegenet/src/snpbin.c:318:6: note: Null pointer dereference adegenet/src/snpbin.c:333:6: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] adegenet/src/snpbin.c:332:25: note: Assuming allocation function fails adegenet/src/snpbin.c:332:11: note: Assignment 'temp=(int*)calloc(1,sizeof(int))', assigned value is 0 adegenet/src/snpbin.c:333:6: note: Null pointer dereference adegenet/src/snpbin.c:338:2: warning: If memory allocation fails, then there is a possible null pointer dereference: out [nullPointerOutOfMemory] adegenet/src/snpbin.c:445:29: note: Assuming allocation function fails adegenet/src/snpbin.c:445:12: note: Assignment 'vecx=(double*)calloc(P,sizeof(double))', assigned value is 0 adegenet/src/snpbin.c:449:20: note: Calling function 'snpbin2freq', 2nd argument 'vecx' value is 0 adegenet/src/snpbin.c:338:2: note: Null pointer dereference adegenet/src/snpbin.c:338:11: warning: If memory allocation fails, then there is a possible null pointer dereference: out [nullPointerOutOfMemory] adegenet/src/snpbin.c:445:29: note: Assuming allocation function fails adegenet/src/snpbin.c:445:12: note: Assignment 'vecx=(double*)calloc(P,sizeof(double))', assigned value is 0 adegenet/src/snpbin.c:449:20: note: Calling function 'snpbin2freq', 2nd argument 'vecx' value is 0 adegenet/src/snpbin.c:338:11: note: Null pointer dereference adegenet/src/snpbin.c:361:17: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] adegenet/src/snpbin.c:351:26: note: Assuming allocation function fails adegenet/src/snpbin.c:351:12: note: Assignment 'temp=(int*)calloc(nLoc(x),sizeof(int))', assigned value is 0 adegenet/src/snpbin.c:361:17: note: Null pointer dereference adegenet/src/snpbin.c:143:35: style: Parameter 'vecbytes' can be declared as pointer to const [constParameterPointer] adegenet/src/snpbin.c:143:50: style: Parameter 'vecsize' can be declared as pointer to const [constParameterPointer] adegenet/src/snpbin.c:182:32: style: Parameter 'vecbytes' can be declared as pointer to const [constParameterPointer] adegenet/src/snpbin.c:182:47: style: Parameter 'veclength' can be declared as pointer to const [constParameterPointer] adegenet/src/snpbin.c:182:63: style: Parameter 'nbvec' can be declared as pointer to const [constParameterPointer] adegenet/src/snpbin.c:182:88: style: Parameter 'reslength' can be declared as pointer to const [constParameterPointer] adegenet/src/snpbin.c:211:35: style: Parameter 'vecbytes' can be declared as pointer to const [constParameterPointer] adegenet/src/snpbin.c:211:50: style: Parameter 'veclength' can be declared as pointer to const [constParameterPointer] adegenet/src/snpbin.c:211:66: style: Parameter 'nbvec' can be declared as pointer to const [constParameterPointer] adegenet/src/snpbin.c:211:94: style: Parameter 'reslength' can be declared as pointer to const [constParameterPointer] adegenet/src/snpbin.c:246:25: style: Parameter 'vecsnp' can be declared as pointer to const [constParameterPointer] adegenet/src/snpbin.c:246:38: style: Parameter 'vecsize' can be declared as pointer to const [constParameterPointer] adegenet/src/snpbin.c:246:75: style: Parameter 'ressize' can be declared as pointer to const [constParameterPointer] adegenet/src/snpbin.c:395:71: style: Parameter 'mean' can be declared as pointer to const [constParameterPointer] adegenet/src/snpbin.c:395:85: style: Parameter 'sd' can be declared as pointer to const [constParameterPointer] adegenet/src/snpbin.c:440:72: style: Parameter 'mean' can be declared as pointer to const [constParameterPointer] adegenet/src/snpbin.c:440:86: style: Parameter 'sd' can be declared as pointer to const [constParameterPointer] adegenet/src/snpbin.c:526:37: style: Parameter 'n' can be declared as pointer to const [constParameterPointer] adegenet/src/snpbin.c:183:23: style: Variable 'idres' is assigned a value that is never used. [unreadVariable] adegenet/src/snpbin.c:212:23: style: Variable 'idres' is assigned a value that is never used. [unreadVariable] adegenet/src/snpbin.c:188:19: warning: If memory allocation fails, then there is a possible null pointer dereference: reslength [ctunullpointerOutOfMemory] adegenet/src/snpbin.c:317:25: note: Assuming allocation function fails adegenet/src/snpbin.c:317:11: note: Assignment 'temp=(int*)calloc(1,sizeof(int))', assigned value is 0 adegenet/src/snpbin.c:319:15: note: Calling function bytesToInt, 5th argument is null adegenet/src/snpbin.c:188:19: note: Dereferencing argument reslength that is null adegenet/src/snpbin.c:217:19: warning: If memory allocation fails, then there is a possible null pointer dereference: reslength [ctunullpointerOutOfMemory] adegenet/src/snpbin.c:332:25: note: Assuming allocation function fails adegenet/src/snpbin.c:332:11: note: Assignment 'temp=(int*)calloc(1,sizeof(int))', assigned value is 0 adegenet/src/snpbin.c:334:18: note: Calling function bytesToDouble, 5th argument is null adegenet/src/snpbin.c:217:19: note: Dereferencing argument reslength that is null diff: DONE