Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler. Number of rules (primarily dangerous function names) in C/C++ ruleset: 223 Examining data/r-cran-randomfields-3.3.8/src/shape.cc Examining data/r-cran-randomfields-3.3.8/src/QMath.cc Examining data/r-cran-randomfields-3.3.8/src/empvario.cc Examining data/r-cran-randomfields-3.3.8/src/zzz.c Examining data/r-cran-randomfields-3.3.8/src/PoissonPolygon.h Examining data/r-cran-randomfields-3.3.8/src/cubicsolver.h Examining data/r-cran-randomfields-3.3.8/src/init.cov.cc Examining data/r-cran-randomfields-3.3.8/src/init.others.cc Examining data/r-cran-randomfields-3.3.8/src/D.H.cc Examining data/r-cran-randomfields-3.3.8/src/avltr_modified.cc Examining data/r-cran-randomfields-3.3.8/src/primitive.others.cc Examining data/r-cran-randomfields-3.3.8/src/QMath.h Examining data/r-cran-randomfields-3.3.8/src/trend.cc Examining data/r-cran-randomfields-3.3.8/src/def.h Examining data/r-cran-randomfields-3.3.8/src/KeyInfo.cc Examining data/r-cran-randomfields-3.3.8/src/shape.h Examining data/r-cran-randomfields-3.3.8/src/InternalCov.noncritical.cc Examining data/r-cran-randomfields-3.3.8/src/variogramAndCo.cc Examining data/r-cran-randomfields-3.3.8/src/kleinkram.h Examining data/r-cran-randomfields-3.3.8/src/Error.cc Examining data/r-cran-randomfields-3.3.8/src/Machine.h Examining data/r-cran-randomfields-3.3.8/src/getNset.cc Examining data/r-cran-randomfields-3.3.8/src/MachineDebugging.h Examining data/r-cran-randomfields-3.3.8/src/convhull2D.cc Examining data/r-cran-randomfields-3.3.8/src/bigdata.cc Examining data/r-cran-randomfields-3.3.8/src/AutoRandomFields.h Examining data/r-cran-randomfields-3.3.8/src/userinterfaces.cc Examining data/r-cran-randomfields-3.3.8/src/Brown.cc Examining data/r-cran-randomfields-3.3.8/src/sequential.cc Examining data/r-cran-randomfields-3.3.8/src/fft.cc Examining data/r-cran-randomfields-3.3.8/src/primitive.gauss.mix.cc Examining data/r-cran-randomfields-3.3.8/src/kleinkram.cc Examining data/r-cran-randomfields-3.3.8/src/plusmal.cc Examining data/r-cran-randomfields-3.3.8/src/y.cc Examining data/r-cran-randomfields-3.3.8/src/nugget.cc Examining data/r-cran-randomfields-3.3.8/src/rf_interfaces.cc Examining data/r-cran-randomfields-3.3.8/src/InternalCov.cc Examining data/r-cran-randomfields-3.3.8/src/families.cc Examining data/r-cran-randomfields-3.3.8/src/startGetNset.cc Examining data/r-cran-randomfields-3.3.8/src/auxiliary2.h Examining data/r-cran-randomfields-3.3.8/src/extremes.cc Examining data/r-cran-randomfields-3.3.8/src/Processes.h Examining data/r-cran-randomfields-3.3.8/src/operator.gaussmethod.cc Examining data/r-cran-randomfields-3.3.8/src/operator.cc Examining data/r-cran-randomfields-3.3.8/src/Huetchen.cc Examining data/r-cran-randomfields-3.3.8/src/NULL.cc Examining data/r-cran-randomfields-3.3.8/src/Gneiting.cc Examining data/r-cran-randomfields-3.3.8/src/spectral.cc Examining data/r-cran-randomfields-3.3.8/src/cubicsolver.cc Examining data/r-cran-randomfields-3.3.8/src/init.h Examining data/r-cran-randomfields-3.3.8/src/families.h Examining data/r-cran-randomfields-3.3.8/src/direct.cc Examining data/r-cran-randomfields-3.3.8/src/intrinsics.h Examining data/r-cran-randomfields-3.3.8/src/RF.h Examining data/r-cran-randomfields-3.3.8/src/circulant.cc Examining data/r-cran-randomfields-3.3.8/src/Coordinate_systems.cc Examining data/r-cran-randomfields-3.3.8/src/basic.h Examining data/r-cran-randomfields-3.3.8/src/MachineSchlather.cc Examining data/r-cran-randomfields-3.3.8/src/startGetNset.h Examining data/r-cran-randomfields-3.3.8/src/variogramAndCo.h Examining data/r-cran-randomfields-3.3.8/src/convhull2D.h Examining data/r-cran-randomfields-3.3.8/src/Coordinate_systems.h Examining data/r-cran-randomfields-3.3.8/src/Error.h Examining data/r-cran-randomfields-3.3.8/src/MachineOthers.h Examining data/r-cran-randomfields-3.3.8/src/gausslikeli.cc Examining data/r-cran-randomfields-3.3.8/src/Options.h Examining data/r-cran-randomfields-3.3.8/src/tbm.cc Examining data/r-cran-randomfields-3.3.8/src/fftVario.cc Examining data/r-cran-randomfields-3.3.8/src/operator.h Examining data/r-cran-randomfields-3.3.8/src/primitive.matern.cc Examining data/r-cran-randomfields-3.3.8/src/xport_import.cc Examining data/r-cran-randomfields-3.3.8/src/questions.cc Examining data/r-cran-randomfields-3.3.8/src/operator.extremes.cc Examining data/r-cran-randomfields-3.3.8/src/AutoRandomFields.cc Examining data/r-cran-randomfields-3.3.8/src/primitive.h Examining data/r-cran-randomfields-3.3.8/src/init.general.cc Examining data/r-cran-randomfields-3.3.8/src/xport_import.h Examining data/r-cran-randomfields-3.3.8/src/PoissonPolygon.cc Examining data/r-cran-randomfields-3.3.8/src/primitive.others.h Examining data/r-cran-randomfields-3.3.8/src/RMS.cc Examining data/r-cran-randomfields-3.3.8/src/Specific.cc Examining data/r-cran-randomfields-3.3.8/src/gauss.cc Examining data/r-cran-randomfields-3.3.8/src/brownresnick.cc Examining data/r-cran-randomfields-3.3.8/src/Options.cc Examining data/r-cran-randomfields-3.3.8/src/questions.h Examining data/r-cran-randomfields-3.3.8/src/MLE.cc Examining data/r-cran-randomfields-3.3.8/src/RandomFields.h Examining data/r-cran-randomfields-3.3.8/src/MachineSchlather.h Examining data/r-cran-randomfields-3.3.8/src/primitive.cov.cc Examining data/r-cran-randomfields-3.3.8/src/avltr.h Examining data/r-cran-randomfields-3.3.8/src/auxiliary.h Examining data/r-cran-randomfields-3.3.8/src/avltr_modified.h Examining data/r-cran-randomfields-3.3.8/src/rf_interfaces.h Examining data/r-cran-randomfields-3.3.8/src/metropolis.cc Examining data/r-cran-randomfields-3.3.8/src/auxiliary.cc Examining data/r-cran-randomfields-3.3.8/src/hyperplan.cc FINAL RESULTS: data/r-cran-randomfields-3.3.8/src/RF.h:369:50: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. typedef void (*draw_random) (model *cov, double *random); data/r-cran-randomfields-3.3.8/src/RF.h:456:58: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. covfct cov, D, D2, D3, D4, tbm2, inverse, nabla, hess, random, logD; //Vtlgen data/r-cran-randomfields-3.3.8/src/RF.h:755:37: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. int sets, fixedtrends, dettrends, random, max_total_data, *data_nas, maxbeta, data/r-cran-randomfields-3.3.8/src/RF.h:1552:48: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. ASSERT_CHECKED(Cov); DefList[MODELNR(Cov)].random(X, Cov, V);} /* dito */ data/r-cran-randomfields-3.3.8/src/avltr_modified.cc:1493:7: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand (seed++); data/r-cran-randomfields-3.3.8/src/families.cc:2211:19: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. sel = CeilIndex(random, TMP_WEIGHT, TMP); data/r-cran-randomfields-3.3.8/src/gausslikeli.cc:796:12: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if (L->random > 0) BUG; // to do data/r-cran-randomfields-3.3.8/src/gausslikeli.cc:998:12: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if (L->random > 0) BUG; // to do data/r-cran-randomfields-3.3.8/src/gausslikeli.cc:1558:11: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. 0 == L->random); data/r-cran-randomfields-3.3.8/src/gausslikeli.cc:1589:12: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if (L->random) data/r-cran-randomfields-3.3.8/src/gausslikeli.cc:1718:22: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. for (i=0; i<L->random; i++) { data/r-cran-randomfields-3.3.8/src/primitive.gauss.mix.cc:105:61: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. void DrawMixCauchy(model VARIABLE_IS_NOT_USED *cov, double *random) { //better GR 3.381.4 ?? !!!! data/r-cran-randomfields-3.3.8/src/primitive.gauss.mix.cc:490:58: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. void DrawMixExp(model VARIABLE_IS_NOT_USED *cov, double *random) { data/r-cran-randomfields-3.3.8/src/primitive.gauss.mix.cc:655:81: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. void DrawMixGauss(model VARIABLE_IS_NOT_USED *cov, double VARIABLE_IS_NOT_USED *random) { data/r-cran-randomfields-3.3.8/src/primitive.h:60:40: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. void DrawMixCauchy(model *cov, double *random); data/r-cran-randomfields-3.3.8/src/primitive.h:154:37: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. void DrawMixExp(model *cov, double *random); data/r-cran-randomfields-3.3.8/src/primitive.h:219:39: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. void DrawMixGauss(model *cov, double *random); data/r-cran-randomfields-3.3.8/src/primitive.h:512:36: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. void DrawMixWM(model *cov, double *random); data/r-cran-randomfields-3.3.8/src/primitive.matern.cc:688:57: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. void DrawMixWM(model VARIABLE_IS_NOT_USED *cov, double *random) { // inv scale data/r-cran-randomfields-3.3.8/src/startGetNset.cc:534:7: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if (random) SERR("'initOK' not programmed yet for 'random'"); data/r-cran-randomfields-3.3.8/src/AutoRandomFields.h:410:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern const char *ISO_NAMES[LAST_ISO + 1], data/r-cran-randomfields-3.3.8/src/Coordinate_systems.cc:526:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char CS[2][30] = {"coordinate system", "new coordinate system"}; data/r-cran-randomfields-3.3.8/src/Error.cc:35:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ERRMSG[LENERRMSG], MSG[LENERRMSG], MSG2[LENERRMSG]; data/r-cran-randomfields-3.3.8/src/Error.cc:42:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char m[LENERRMSG]; data/r-cran-randomfields-3.3.8/src/Error.cc:135:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char restrictive[100], info[500]; data/r-cran-randomfields-3.3.8/src/Error.cc:307:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char m2[LENERRMSG]; data/r-cran-randomfields-3.3.8/src/Error.cc:349:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char m[MAXERRORSTRING]; data/r-cran-randomfields-3.3.8/src/Error.cc:356:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char m[MAXERRORSTRING]; data/r-cran-randomfields-3.3.8/src/Error.cc:363:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char m[MAXERRORSTRING]; data/r-cran-randomfields-3.3.8/src/Error.h:33:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. #define LOCAL_MSG char MSG[LENERRMSG] data/r-cran-randomfields-3.3.8/src/Error.h:36:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char ERRMSG[LENERRMSG],MSG[LENERRMSG], MSG2[LENERRMSG]; data/r-cran-randomfields-3.3.8/src/Gneiting.cc:110:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dim_info[2][4] = {"d", "d-1"}; data/r-cran-randomfields-3.3.8/src/InternalCov.cc:83:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char kurz_[ShortList][ShortN + 1] = {""}; data/r-cran-randomfields-3.3.8/src/InternalCov.cc:1545:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char param_name[PARAMMAXCHAR]; // used in PERR data/r-cran-randomfields-3.3.8/src/InternalCov.cc:1655:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char info[255], info2[255]; data/r-cran-randomfields-3.3.8/src/InternalCov.cc:1717:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char Msg[255]; data/r-cran-randomfields-3.3.8/src/KeyInfo.cc:51:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *FTshort[4] = {"-", "-", "F", "T"}; data/r-cran-randomfields-3.3.8/src/KeyInfo.cc:189:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *info[nlocinfo] = data/r-cran-randomfields-3.3.8/src/KeyInfo.cc:256:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *info[1] = {"R list"}; data/r-cran-randomfields-3.3.8/src/KeyInfo.cc:301:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *info[nsimuinfo] = data/r-cran-randomfields-3.3.8/src/KeyInfo.cc:800:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char format[255]; data/r-cran-randomfields-3.3.8/src/KeyInfo.cc:925:22: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. void pmi(model *cov, char all_subs, int level, int maxlevel, data/r-cran-randomfields-3.3.8/src/KeyInfo.cc:930:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char MN[Forbidden + 1][MNlength], name[100]; data/r-cran-randomfields-3.3.8/src/KeyInfo.cc:1783:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *nl1[2] = {" ", "\n"}; data/r-cran-randomfields-3.3.8/src/KeyInfo.cc:1784:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *nl2[2] = {"\n ", " "}; data/r-cran-randomfields-3.3.8/src/MLE.cc:93:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char shortname[255], shortD[255]; data/r-cran-randomfields-3.3.8/src/MLE.cc:109:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dummy[255]; data/r-cran-randomfields-3.3.8/src/MLE.cc:202:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dummy[255]; data/r-cran-randomfields-3.3.8/src/MLE.cc:268:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char kappashort[255]; data/r-cran-randomfields-3.3.8/src/MLE.cc:1066:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *colnames[MINMAX_ENTRIES] = data/r-cran-randomfields-3.3.8/src/Options.cc:45:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char * OPTIM_VAR_NAMES[nOptimVar] = data/r-cran-randomfields-3.3.8/src/Options.cc:76:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pch[nr_modes] = {'\0', '\0', '\0', '.', '.', '.', '.'} data/r-cran-randomfields-3.3.8/src/Options.cc:114:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *f_opt[nr_modes] = {"optim", "optim", "optim", "optim", "optim", "optim", "optim"}; // to do optimx data/r-cran-randomfields-3.3.8/src/Options.cc:218:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dummy[10]; data/r-cran-randomfields-3.3.8/src/Options.cc:245:24: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. void getUnits(SEXP el, char VARIABLE_IS_NOT_USED *name, data/r-cran-randomfields-3.3.8/src/Options.cc:246:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char units[MAXCOOORDNAMES][MAXUNITSCHAR], data/r-cran-randomfields-3.3.8/src/Options.cc:247:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char units2[MAXCOOORDNAMES][MAXUNITSCHAR]) { data/r-cran-randomfields-3.3.8/src/Options.cc:261:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. SEXP UNITS(char units[MAXCOOORDNAMES][MAXUNITSCHAR]) { data/r-cran-randomfields-3.3.8/src/Options.cc:322:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char * prefixlist[prefixN] = data/r-cran-randomfields-3.3.8/src/Options.cc:335:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *general[generalN] = data/r-cran-randomfields-3.3.8/src/Options.cc:346:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *gauss[gaussN]= {"paired", "stationary_only", "approx_zero", data/r-cran-randomfields-3.3.8/src/Options.cc:349:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *krige[krigeN] = { "return_variance", "locmaxn", data/r-cran-randomfields-3.3.8/src/Options.cc:352:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *CE[CEN] = {"force", "mmin", "strategy", "maxGB", data/r-cran-randomfields-3.3.8/src/Options.cc:357:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *direct[directN] = {//"root_method", "svdtolerance", data/r-cran-randomfields-3.3.8/src/Options.cc:360:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char * pnugget[pnuggetN] ={"tol"}; data/r-cran-randomfields-3.3.8/src/Options.cc:362:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char * sequ[sequN] ={"back_steps", "initial"}; data/r-cran-randomfields-3.3.8/src/Options.cc:364:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char * spectral[spectralN] = {"sp_lines", "sp_grid", data/r-cran-randomfields-3.3.8/src/Options.cc:367:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char * pTBM[pTBMN] = {"reduceddim", "fulldim", "center", data/r-cran-randomfields-3.3.8/src/Options.cc:371:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char * mpp[mppN] = {"n_estim_E", // n to determine E by simulation data/r-cran-randomfields-3.3.8/src/Options.cc:381:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char * hyper[hyperN] = {"superpos", "maxlines", "mar_distr", data/r-cran-randomfields-3.3.8/src/Options.cc:384:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char * extreme[extremeN] = data/r-cran-randomfields-3.3.8/src/Options.cc:390:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char * br[brN] = data/r-cran-randomfields-3.3.8/src/Options.cc:395:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char * distr[distrN] = data/r-cran-randomfields-3.3.8/src/Options.cc:400:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char * fit[fitN] = data/r-cran-randomfields-3.3.8/src/Options.cc:419:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char * empvario[empvarioN] = data/r-cran-randomfields-3.3.8/src/Options.cc:423:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char * gui[guiN] = data/r-cran-randomfields-3.3.8/src/Options.cc:428:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *graphics[graphicsN]= data/r-cran-randomfields-3.3.8/src/Options.cc:434:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *registers[registersN] = data/r-cran-randomfields-3.3.8/src/Options.cc:437:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char * internals[internalN] = { data/r-cran-randomfields-3.3.8/src/Options.cc:451:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *coords[coordsN] = data/r-cran-randomfields-3.3.8/src/Options.cc:457:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char * special[specialN] = {"multicopies"}; data/r-cran-randomfields-3.3.8/src/Options.cc:459:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char * obsolete[obsoleteN] = data/r-cran-randomfields-3.3.8/src/Options.cc:468:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char **all[prefixN] = {general, gauss, krige, CE, direct, data/r-cran-randomfields-3.3.8/src/Options.cc:490:42: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. void setparameter(int i, int j, SEXP el, char name[200], bool isList, data/r-cran-randomfields-3.3.8/src/Options.cc:977:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char old[100]; data/r-cran-randomfields-3.3.8/src/Options.cc:1214:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char x[2]=" "; data/r-cran-randomfields-3.3.8/src/Options.h:32:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern const char *general[generalN]; data/r-cran-randomfields-3.3.8/src/Options.h:129:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern const char *gauss[gaussN]; data/r-cran-randomfields-3.3.8/src/Options.h:151:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern const char *krige[krigeN]; data/r-cran-randomfields-3.3.8/src/Options.h:169:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern const char *CE[CEN]; data/r-cran-randomfields-3.3.8/src/Options.h:187:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern const char * spectral[spectralN]; data/r-cran-randomfields-3.3.8/src/Options.h:198:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern const char * pTBM[pTBMN]; data/r-cran-randomfields-3.3.8/src/Options.h:219:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern const char *direct[directN]; data/r-cran-randomfields-3.3.8/src/Options.h:227:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern const char * sequ[sequN]; data/r-cran-randomfields-3.3.8/src/Options.h:241:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern const char * pnugget[pnuggetN]; data/r-cran-randomfields-3.3.8/src/Options.h:249:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern const char * mpp[mppN]; data/r-cran-randomfields-3.3.8/src/Options.h:274:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern const char * hyper[hyperN]; data/r-cran-randomfields-3.3.8/src/Options.h:283:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern const char * extreme[extremeN]; data/r-cran-randomfields-3.3.8/src/Options.h:300:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern const char * br[brN]; data/r-cran-randomfields-3.3.8/src/Options.h:311:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern const char * distr[distrN]; data/r-cran-randomfields-3.3.8/src/Options.h:331:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern const char * fit[fitN]; data/r-cran-randomfields-3.3.8/src/Options.h:376:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern const char * empvario[empvarioN]; data/r-cran-randomfields-3.3.8/src/Options.h:384:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern const char * gui[guiN]; data/r-cran-randomfields-3.3.8/src/Options.h:393:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern const char *graphics[graphicsN]; data/r-cran-randomfields-3.3.8/src/Options.h:400:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char filename[100]; data/r-cran-randomfields-3.3.8/src/Options.h:409:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern const char *registers[registersN]; data/r-cran-randomfields-3.3.8/src/Options.h:417:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern const char * internals[internalN]; data/r-cran-randomfields-3.3.8/src/Options.h:458:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern const char *coords[coordsN]; data/r-cran-randomfields-3.3.8/src/Options.h:464:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char newunits[MAXCOOORDNAMES][MAXUNITSCHAR], // 2; only to read data/r-cran-randomfields-3.3.8/src/Options.h:488:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern const char * special[specialN]; data/r-cran-randomfields-3.3.8/src/Options.h:496:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern const char * obsolete[obsoleteN]; data/r-cran-randomfields-3.3.8/src/Options.h:531:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern const char * prefixlist[prefixN], **all[prefixN]; data/r-cran-randomfields-3.3.8/src/Options.h:533:42: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. void setparameter(int i, int j, SEXP el, char name[200], bool isList, data/r-cran-randomfields-3.3.8/src/RF.h:417:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[MAXCHAR], nick[MAXCHAR], data/r-cran-randomfields-3.3.8/src/RF.h:440:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char **kappaParamTypeNames[MAXPARAM]; data/r-cran-randomfields-3.3.8/src/RF.h:739:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef char NAname_type[MAX_NA][255]; data/r-cran-randomfields-3.3.8/src/RF.h:762:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *betanames[MAX_LIN_COMP]; data/r-cran-randomfields-3.3.8/src/RF.h:935:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char PREF_FAILURE[90 * Nothing]; data/r-cran-randomfields-3.3.8/src/RMS.cc:1800:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char info[nPOISSON_SCATTER - 1][LENERRMSG]; data/r-cran-randomfields-3.3.8/src/avltr_modified.cc:134:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ab[AVL_MAX_HEIGHT]; /* Stack A: bits. */ data/r-cran-randomfields-3.3.8/src/avltr_modified.cc:360:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ab[AVL_MAX_HEIGHT]; /* Stack A: bits. */ data/r-cran-randomfields-3.3.8/src/avltr_modified.cc:817:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char a[AVL_MAX_HEIGHT]; /* Stack P: Bits. */ data/r-cran-randomfields-3.3.8/src/avltr_modified.cc:1327:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char nodes[(TREE_SIZE + 7) / 8]; data/r-cran-randomfields-3.3.8/src/avltr_modified.cc:1328:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char threads[(TREE_SIZE + 7) / 8]; data/r-cran-randomfields-3.3.8/src/avltr_modified.cc:1479:12: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). seed = atoi (argv[1]); data/r-cran-randomfields-3.3.8/src/def.h:65:26: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. #define LOCAL_ERRLOC_MSG char ERRMSG[LENERRMSG]; data/r-cran-randomfields-3.3.8/src/extremes.cc:1237:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char info[nPOISSON_SCATTER - 1][LENERRMSG]; data/r-cran-randomfields-3.3.8/src/gauss.cc:511:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dummy[100 * (int) Nothing]; data/r-cran-randomfields-3.3.8/src/gauss.cc:517:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char FailureMsg[MAXFAILMSG][80] = {"unknown reason", data/r-cran-randomfields-3.3.8/src/gauss.cc:647:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char info[LENERRMSG]; errorMSG(err, info); data/r-cran-randomfields-3.3.8/src/gauss.cc:654:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char info[LENERRMSG]; errorMSG(err,info); data/r-cran-randomfields-3.3.8/src/gauss.cc:671:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char lpd[255], pd[255], names[NMAX]; data/r-cran-randomfields-3.3.8/src/gausslikeli.cc:193:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *names[ll] = {"Y", "X", "vdim"}; data/r-cran-randomfields-3.3.8/src/gausslikeli.cc:1214:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *names[nn] = data/r-cran-randomfields-3.3.8/src/gausslikeli.cc:1364:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char abbr[LENMSG]; data/r-cran-randomfields-3.3.8/src/getNset.cc:2099:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str1[30], str2[30]; data/r-cran-randomfields-3.3.8/src/init.general.cc:53:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char CovNames[MAXNRCOVFCTS][MAXCHAR], CovNickNames[MAXNRCOVFCTS][MAXCHAR], data/r-cran-randomfields-3.3.8/src/init.general.cc:82:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *METHOD_NAMES[Forbidden+1]={"circulant", //0 data/r-cran-randomfields-3.3.8/src/init.general.cc:138:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char data/r-cran-randomfields-3.3.8/src/init.general.cc:289:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *typefcts[ntypefcts] = data/r-cran-randomfields-3.3.8/src/init.h:101:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern const char *METHOD_NAMES[Forbidden+1], data/r-cran-randomfields-3.3.8/src/kleinkram.cc:409:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *tooLarge[nTooLarge] = {"size", "msg"}; data/r-cran-randomfields-3.3.8/src/kleinkram.cc:1007:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dummy[1000]; data/r-cran-randomfields-3.3.8/src/kleinkram.cc:1036:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char info[1000]; data/r-cran-randomfields-3.3.8/src/rf_interfaces.cc:294:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char data/r-cran-randomfields-3.3.8/src/startGetNset.cc:618:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dummy[MAXCHAR]; data/r-cran-randomfields-3.3.8/src/startGetNset.cc:639:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dummy[MAXCHAR]; data/r-cran-randomfields-3.3.8/src/userinterfaces.cc:374:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char EM2[LENERRMSG] = ""; data/r-cran-randomfields-3.3.8/src/userinterfaces.cc:575:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char EM[LENERRMSG]; data/r-cran-randomfields-3.3.8/src/userinterfaces.cc:916:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char coded[6][2]={"-", "X", "+", "N", "H", "S"}; data/r-cran-randomfields-3.3.8/src/userinterfaces.cc:918:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char specialnames[4][2]={".", "n", "f", "?"}; data/r-cran-randomfields-3.3.8/src/userinterfaces.cc:919:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char firstcolumn[20], name[MAXCHAR]; data/r-cran-randomfields-3.3.8/src/userinterfaces.cc:1170:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char leer[NLEER], name[MAXCHAR], param_name[PARAMMAXCHAR]; data/r-cran-randomfields-3.3.8/src/userinterfaces.cc:1321:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char info[200]; data/r-cran-randomfields-3.3.8/src/kleinkram.cc:35:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(dest, src, n); ANALYSIS SUMMARY: Hits = 155 Lines analyzed = 77576 in approximately 1.88 seconds (41160 lines/second) Physical Source Lines of Code (SLOC) = 54821 Hits@level = [0] 6 [1] 1 [2] 134 [3] 20 [4] 0 [5] 0 Hits@level+ = [0+] 161 [1+] 155 [2+] 154 [3+] 20 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 2.93683 [1+] 2.82738 [2+] 2.80914 [3+] 0.364824 [4+] 0 [5+] 0 Dot directories skipped = 1 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.