2026-05-04 17:49 ftp://ftp.de.debian.org/debian/pool/main/r/r-cran-mnp/r-cran-mnp_3.1-5.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-111-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04.1) 14.2.0 cppcheck: head 2.20.0 head-info: 519958a (2026-05-04 15:03:10 +0200) count: 43 43 elapsed-time: 1.2 1.0 head-timing-info: old-timing-info: head results: MNP/src/MNP.c:528:10: style: Redundant initialization for 'itempQ'. The initialized value is overwritten before it is read. [redundantInitialization] MNP/src/MNP.c:496:14: note: itempQ is initialized MNP/src/MNP.c:528:10: note: itempQ is overwritten MNP/src/MNP.c:18:21: style: Parameter 'piNDim' can be declared as pointer to const [constParameterPointer] MNP/src/MNP.c:18:34: style: Parameter 'piNCov' can be declared as pointer to const [constParameterPointer] MNP/src/MNP.c:18:47: style: Parameter 'piNSamp' can be declared as pointer to const [constParameterPointer] MNP/src/MNP.c:18:61: style: Parameter 'piNGen' can be declared as pointer to const [constParameterPointer] MNP/src/MNP.c:19:17: style: Parameter 'b0' can be declared as pointer to const [constParameterPointer] MNP/src/MNP.c:20:17: style: Parameter 'pdA0' can be declared as pointer to const [constParameterPointer] MNP/src/MNP.c:20:28: style: Parameter 'piNu0' can be declared as pointer to const [constParameterPointer] MNP/src/MNP.c:20:43: style: Parameter 'pdS' can be declared as pointer to const [constParameterPointer] MNP/src/MNP.c:20:56: style: Parameter 'pdX' can be declared as pointer to const [constParameterPointer] MNP/src/MNP.c:21:14: style: Parameter 'y' can be declared as pointer to const [constParameterPointer] MNP/src/MNP.c:22:17: style: Parameter 'pdbeta' can be declared as pointer to const [constParameterPointer] MNP/src/MNP.c:22:33: style: Parameter 'pdSigma' can be declared as pointer to const [constParameterPointer] MNP/src/MNP.c:22:47: style: Parameter 'piImp' can be declared as pointer to const [constParameterPointer] MNP/src/MNP.c:23:14: style: Parameter 'invcdf' can be declared as pointer to const [constParameterPointer] MNP/src/MNP.c:24:14: style: Parameter 'piBurnin' can be declared as pointer to const [constParameterPointer] MNP/src/MNP.c:25:14: style: Parameter 'piKeep' can be declared as pointer to const [constParameterPointer] MNP/src/MNP.c:26:14: style: Parameter 'itrace' can be declared as pointer to const [constParameterPointer] MNP/src/MNP.c:27:14: style: Parameter 'verbose' can be declared as pointer to const [constParameterPointer] MNP/src/MNP.c:28:14: style: Parameter 'piMoP' can be declared as pointer to const [constParameterPointer] MNP/src/MNP.c:29:14: style: Parameter 'latent' can be declared as pointer to const [constParameterPointer] MNP/src/MNP.c:465:23: style: Parameter 'dX' can be declared as pointer to const [constParameterPointer] MNP/src/MNP.c:466:12: style: Parameter 'nobs' can be declared as pointer to const [constParameterPointer] MNP/src/MNP.c:467:15: style: Parameter 'dcoef' can be declared as pointer to const [constParameterPointer] MNP/src/MNP.c:468:15: style: Parameter 'dSigma' can be declared as pointer to const [constParameterPointer] MNP/src/MNP.c:469:12: style: Parameter 'ndims' can be declared as pointer to const [constParameterPointer] MNP/src/MNP.c:470:12: style: Parameter 'ncovs' can be declared as pointer to const [constParameterPointer] MNP/src/MNP.c:471:12: style: Parameter 'ndraws' can be declared as pointer to const [constParameterPointer] MNP/src/MNP.c:472:12: style: Parameter 'moredraws' can be declared as pointer to const [constParameterPointer] MNP/src/MNP.c:473:12: style: Parameter 'verbose' can be declared as pointer to const [constParameterPointer] MNP/src/init.c:21:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] MNP/src/rand.c:113:13: style:inconclusive: Function 'rMVN' argument 3 names different: declaration 'inv_Var' definition 'Var'. [funcArgNamesDifferent] MNP/src/rand.h:3:50: note: Function 'rMVN' argument 3 names different: declaration 'inv_Var' definition 'Var'. MNP/src/rand.c:113:13: note: Function 'rMVN' argument 3 names different: declaration 'inv_Var' definition 'Var'. MNP/src/rand.c:112:12: style: Parameter 'mean' can be declared as pointer to const [constParameterPointer] MNP/src/subroutines.c:49:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dpptrf [valueFlowBailoutIncompleteVar] MNP/src/subroutines.c:82:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dpptrf [valueFlowBailoutIncompleteVar] MNP/src/subroutines.c:52:9: style: Condition 'errorM' is always false [knownConditionTrueFalse] MNP/src/subroutines.c:50:7: note: Assuming that condition '!errorM' is not redundant MNP/src/subroutines.c:52:9: note: Condition 'errorM' is always false MNP/src/subroutines.c:49:40: error: Uninitialized variable: errorM [uninitvar] MNP/src/subroutines.c:82:41: error: Uninitialized variable: errorM [uninitvar] MNP/src/vector.c:27:5: warning: If memory allocation fails, then there is a possible null pointer dereference: iMatrix [nullPointerOutOfMemory] MNP/src/vector.c:23:33: note: Assuming allocation function fails MNP/src/vector.c:23:19: note: Assignment 'iMatrix=(int**)malloc(row*sizeof(int*))', assigned value is 0 MNP/src/vector.c:27:5: note: Null pointer dereference MNP/src/vector.c:28:10: warning: If memory allocation fails, then there is a possible null pointer dereference: iMatrix [nullPointerOutOfMemory] MNP/src/vector.c:23:33: note: Assuming allocation function fails MNP/src/vector.c:23:19: note: Assignment 'iMatrix=(int**)malloc(row*sizeof(int*))', assigned value is 0 MNP/src/vector.c:28:10: note: Null pointer dereference MNP/src/vector.c:63:5: warning: If memory allocation fails, then there is a possible null pointer dereference: dMatrix [nullPointerOutOfMemory] MNP/src/vector.c:59:39: note: Assuming allocation function fails MNP/src/vector.c:59:22: note: Assignment 'dMatrix=(double**)malloc((unsigned long)(row*sizeof(double*)))', assigned value is 0 MNP/src/vector.c:63:5: note: Null pointer dereference MNP/src/vector.c:64:10: warning: If memory allocation fails, then there is a possible null pointer dereference: dMatrix [nullPointerOutOfMemory] MNP/src/vector.c:59:39: note: Assuming allocation function fails MNP/src/vector.c:59:22: note: Assignment 'dMatrix=(double**)malloc((unsigned long)(row*sizeof(double*)))', assigned value is 0 MNP/src/vector.c:64:10: note: Null pointer dereference MNP/src/vector.c:85:5: warning: If memory allocation fails, then there is a possible null pointer dereference: dM3 [nullPointerOutOfMemory] MNP/src/vector.c:81:37: note: Assuming allocation function fails MNP/src/vector.c:81:19: note: Assignment 'dM3=(double***)malloc(x*sizeof(double**))', assigned value is 0 MNP/src/vector.c:85:5: note: Null pointer dereference diff: DONE