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/libmatio-1.5.19/src/mat.c
Examining data/libmatio-1.5.19/src/mat73.c
Examining data/libmatio-1.5.19/src/read_data_impl.h
Examining data/libmatio-1.5.19/src/inflate.c
Examining data/libmatio-1.5.19/src/io.c
Examining data/libmatio-1.5.19/src/safe-math.h
Examining data/libmatio-1.5.19/src/matvar_cell.c
Examining data/libmatio-1.5.19/src/snprintf.c
Examining data/libmatio-1.5.19/src/read_data.c
Examining data/libmatio-1.5.19/src/matio_private.h
Examining data/libmatio-1.5.19/src/matvar_struct.c
Examining data/libmatio-1.5.19/src/mat5.c
Examining data/libmatio-1.5.19/src/endian.c
Examining data/libmatio-1.5.19/src/mat4.h
Examining data/libmatio-1.5.19/src/mat4.c
Examining data/libmatio-1.5.19/src/mat5.h
Examining data/libmatio-1.5.19/src/matio.h
Examining data/libmatio-1.5.19/src/mat73.h
Examining data/libmatio-1.5.19/test/test_snprintf.c
Examining data/libmatio-1.5.19/test/test_mat.c
Examining data/libmatio-1.5.19/tools/matdump.c
Examining data/libmatio-1.5.19/getopt/getopt.h
Examining data/libmatio-1.5.19/getopt/getopt_long.c
Examining data/libmatio-1.5.19/visual_studio/stdint_msvc.h
Examining data/libmatio-1.5.19/visual_studio/matio_pubconf.h
Examining data/libmatio-1.5.19/visual_studio/matioConfig.h

FINAL RESULTS:

data/libmatio-1.5.19/getopt/getopt_long.c:64:18:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#   define warnx printf
data/libmatio-1.5.19/src/mat.c:80:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(path_buf, MAT_MKTEMP_TPL);
data/libmatio-1.5.19/src/mat.c:88:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(dir_buf, MAT_MKTEMP_DIR MAT_MKTEMP_TPL);
data/libmatio-1.5.19/src/mat.c:90:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(path_buf, dir_buf);
data/libmatio-1.5.19/src/mat.c:91:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(path_buf, MAT_MKTEMP_FILE);
data/libmatio-1.5.19/src/mat.c:128:13:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            printf("%" PRIi64,*(mat_int64_t*)data);
data/libmatio-1.5.19/src/mat.c:141:13:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            printf("%" PRIu64,*(mat_uint64_t*)data);
data/libmatio-1.5.19/src/mat.c:2085:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf("Dimensions: %" SIZE_T_FMTSTR,matvar->dims[0]);
data/libmatio-1.5.19/src/mat.c:2089:17:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                printf(" x %" SIZE_T_FMTSTR,matvar->dims[k]);
data/libmatio-1.5.19/src/matio_private.h:107:23:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define mat_vsnprintf vsnprintf
data/libmatio-1.5.19/src/matio_private.h:113:22:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define mat_snprintf snprintf
data/libmatio-1.5.19/src/snprintf.c:1387:11:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    len = vsnprintf(NULL, 0, format, aq);
data/libmatio-1.5.19/src/snprintf.c:1395:12:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    return vsnprintf(*ret, size, format, ap);
data/libmatio-1.5.19/src/snprintf.c:1424:11:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    len = vsnprintf(str, size, format, ap);
data/libmatio-1.5.19/test/test_snprintf.c:11:22:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define mat_snprintf snprintf
data/libmatio-1.5.19/test/test_snprintf.c:77:25:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                        sprintf (buf2, fp_fmt[x], fp_nums[y]);
data/libmatio-1.5.19/test/test_snprintf.c:95:25:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                        sprintf (buf2, int_fmt[x], int_nums[y]);
data/libmatio-1.5.19/test/test_snprintf.c:113:25:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                        sprintf (buf2, str_fmt[x], str_vals[y]);
data/libmatio-1.5.19/tools/matdump.c:545:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf("%8" SIZE_T_FMTSTR, matvar->dims[0]);
data/libmatio-1.5.19/tools/matdump.c:548:24:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                cnt += sprintf(size+cnt,"x%" SIZE_T_FMTSTR, matvar->dims[i]);
data/libmatio-1.5.19/tools/matdump.c:565:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf("  %10" SIZE_T_FMTSTR,nbytes);
data/libmatio-1.5.19/tools/matdump.c:597:13:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            printf("%" PRIi64,*(mat_int64_t*)data);
data/libmatio-1.5.19/tools/matdump.c:608:13:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            printf("%" PRIu64,*(mat_uint64_t*)data);
data/libmatio-1.5.19/getopt/getopt.h:69:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int  getopt_long(int, char * const *, const char *,
data/libmatio-1.5.19/getopt/getopt.h:75:6:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
int  getopt(int, char * const [], const char *);
data/libmatio-1.5.19/getopt/getopt_long.c:373:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    posixly_correct = (getenv("POSIXLY_CORRECT") != NULL);
data/libmatio-1.5.19/getopt/getopt_long.c:581:1:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
getopt(int nargc, char * const *nargv, const char *options)
data/libmatio-1.5.19/getopt/getopt_long.c:601:1:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
getopt_long(int nargc, char * const *nargv, const char *options,
data/libmatio-1.5.19/test/test_mat.c:3780:18:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ( (c = getopt_long(argc,argv,optstring,options,NULL)) != EOF ) {
data/libmatio-1.5.19/tools/matdump.c:852:17:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((c = getopt_long(argc,argv,optstring,options,NULL)) != EOF) {
data/libmatio-1.5.19/getopt/getopt_long.c:181:15:  [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 **) nargv)[pos] = nargv[cstart];
data/libmatio-1.5.19/getopt/getopt_long.c:183:15:  [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 **)nargv)[cstart] = swap;
data/libmatio-1.5.19/src/endian.c:196: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.
        char  i1[4];
data/libmatio-1.5.19/src/endian.c:222: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.
        char   a[SIZEOF_DOUBLE];
data/libmatio-1.5.19/src/io.c:44:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#   define va_copy(d,s) memcpy(&(d),&(s),sizeof(va_list))
data/libmatio-1.5.19/src/io.c:90:22:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
            int rc = MultiByteToWideChar(CP_UTF8, 0, src, srcLen, 0, 0);
data/libmatio-1.5.19/src/io.c:95:26:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
                    rc = MultiByteToWideChar(CP_UTF8, 0, src, srcLen, w, rc);
data/libmatio-1.5.19/src/io.c:200: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 maj[MSG_SIZE];
data/libmatio-1.5.19/src/io.c:201: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 min[MSG_SIZE];
data/libmatio-1.5.19/src/io.c:202: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 cls[MSG_SIZE];
data/libmatio-1.5.19/src/mat.c:425:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fp = fopen(matname, "rb");
data/libmatio-1.5.19/src/mat.c:437:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fp = fopen(matname, "r+b");
data/libmatio-1.5.19/src/mat.c:1110:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(sparse_data->ir,sparse_data_in->ir,
data/libmatio-1.5.19/src/mat.c:1114:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(sparse_data->jc,sparse_data_in->jc,
data/libmatio-1.5.19/src/mat.c:1125:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(complex_data->Re,complex_data_in->Re,
data/libmatio-1.5.19/src/mat.c:1128:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(complex_data->Im,complex_data_in->Im,
data/libmatio-1.5.19/src/mat.c:1134:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(sparse_data->data,sparse_data_in->data,
data/libmatio-1.5.19/src/mat.c:1149:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(complex_data->Re,complex_data_in->Re,matvar->nbytes);
data/libmatio-1.5.19/src/mat.c:1151:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(complex_data->Im,complex_data_in->Im,matvar->nbytes);
data/libmatio-1.5.19/src/mat.c:1156:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(matvar->data,data,matvar->nbytes);
data/libmatio-1.5.19/src/mat.c:1174: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 buf[BUFSIZ] = {'\0'};
data/libmatio-1.5.19/src/mat.c:1187:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    in = fopen(src, "rb");
data/libmatio-1.5.19/src/mat.c:1203:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    out = fopen(dst, "wb");
data/libmatio-1.5.19/src/mat.c:1235: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 path_buf[MAT_MKTEMP_BUF_SIZE];
data/libmatio-1.5.19/src/mat.c:1236: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 dir_buf[MAT_MKTEMP_BUF_SIZE];
data/libmatio-1.5.19/src/mat.c:1341:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(mat,tmp,sizeof(mat_t));
data/libmatio-1.5.19/src/mat.c:1406:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(out->name,in->name,len);
data/libmatio-1.5.19/src/mat.c:1411:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(out->dims,in->dims,in->rank*sizeof(*out->dims));
data/libmatio-1.5.19/src/mat.c:1460:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(out_sparse->ir, in_sparse->ir, in_sparse->nir*sizeof(*out_sparse->ir));
data/libmatio-1.5.19/src/mat.c:1464:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(out_sparse->jc, in_sparse->jc, in_sparse->njc*sizeof(*out_sparse->jc));
data/libmatio-1.5.19/src/mat.c:1474:33:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                                memcpy(out_data->Re,in_data->Re,
data/libmatio-1.5.19/src/mat.c:1479:33:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                                memcpy(out_data->Im,in_data->Im,
data/libmatio-1.5.19/src/mat.c:1485:29:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                            memcpy(out_sparse->data, in_sparse->data,
data/libmatio-1.5.19/src/mat.c:1496:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(out_data->Re,in_data->Re,out->nbytes);
data/libmatio-1.5.19/src/mat.c:1499:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(out_data->Im,in_data->Im,out->nbytes);
data/libmatio-1.5.19/src/mat.c:1502:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(out->internal->data, in->internal->data, in->nbytes);
data/libmatio-1.5.19/src/mat.c:1542:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(out_sparse->ir, in_sparse->ir, in_sparse->nir*sizeof(*out_sparse->ir));
data/libmatio-1.5.19/src/mat.c:1546:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(out_sparse->jc, in_sparse->jc, in_sparse->njc*sizeof(*out_sparse->jc));
data/libmatio-1.5.19/src/mat.c:1555:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(out_data->Re,in_data->Re,in_sparse->ndata*Mat_SizeOf(in->data_type));
data/libmatio-1.5.19/src/mat.c:1558:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(out_data->Im,in_data->Im,in_sparse->ndata*Mat_SizeOf(in->data_type));
data/libmatio-1.5.19/src/mat.c:1563:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(out_sparse->data, in_sparse->data, in_sparse->ndata*Mat_SizeOf(in->data_type));
data/libmatio-1.5.19/src/mat.c:1576:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(out_data->Re,in_data->Re,out->nbytes);
data/libmatio-1.5.19/src/mat.c:1579:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(out_data->Im,in_data->Im,out->nbytes);
data/libmatio-1.5.19/src/mat.c:1584:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(out->data,in->data,in->nbytes);
data/libmatio-1.5.19/src/mat.c:2066:11:  [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 *class_type_desc[18] = {"Undefined","Cell Array","Structure",
data/libmatio-1.5.19/src/mat.c:2101:15:  [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 *data_type_desc[25] = {"Unknown","8-bit, signed integer",
data/libmatio-1.5.19/src/mat4.c:68:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen(matname, "w+b");
data/libmatio-1.5.19/src/mat5.c:473:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(matvar->internal->fieldnames[i], buf+i*fieldname_length, fieldname_length);
data/libmatio-1.5.19/src/mat5.c:650:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen(matname, "w+b");
data/libmatio-1.5.19/src/mat5.c:1177:33:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                                memcpy(cells[i]->name,uncomp_buf+1,len);
data/libmatio-1.5.19/src/mat5.c:2431:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(padzero,matvar->internal->fieldnames[i],len);
data/libmatio-1.5.19/src/mat5.c:2820:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(uncomp_buf+1,name,array_name_len);
data/libmatio-1.5.19/src/mat5.c:2840:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(uncomp_buf+2,name,array_name_len);
data/libmatio-1.5.19/src/mat5.c:4189:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(data_out, data_in, nbytes);
data/libmatio-1.5.19/src/mat5.c:4355:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(ptr, ptr_in, (size_t)edge*data_size); \
data/libmatio-1.5.19/src/mat5.c:4359:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(ptr++, ptr_in+i*stride, data_size); \
data/libmatio-1.5.19/src/mat5.c:5065:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(uncomp_buf+1,matvar->name,array_name_len);
data/libmatio-1.5.19/src/mat5.c:5085:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(uncomp_buf+2,matvar->name,array_name_len);
data/libmatio-1.5.19/src/mat5.c:5351:29:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                            memcpy(matvar->name,uncomp_buf+1,len);
data/libmatio-1.5.19/src/mat5.c:5468:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(matvar->name, buf+1, len);
data/libmatio-1.5.19/src/mat73.c:634:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(matvar->internal->fieldnames[i],fieldnames_vl[i].p,
data/libmatio-1.5.19/src/mat73.c:1223: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 obj_name[64];
data/libmatio-1.5.19/src/mat73.c:1227:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(obj_name,"%llu", group_info.nlinks);
data/libmatio-1.5.19/src/mat73.c:1231:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(obj_name, "/#refs#/%llu", group_info.nlinks);
data/libmatio-1.5.19/src/mat73.c:2353:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen(matname, "r+b");
data/libmatio-1.5.19/src/snprintf.c:858: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 iconvert[MAX_CONVERT_LENGTH];
data/libmatio-1.5.19/src/snprintf.c:963: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 iconvert[MAX_CONVERT_LENGTH];
data/libmatio-1.5.19/src/snprintf.c:964: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 fconvert[MAX_CONVERT_LENGTH];
data/libmatio-1.5.19/src/snprintf.c:965: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 econvert[4];   /* "e-12" (without nul-termination). */
data/libmatio-1.5.19/test/test_mat.c:1480:15:  [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 *fieldnames[2] = {"field1", "field2"};
data/libmatio-1.5.19/test/test_mat.c:1936:15:  [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 *fieldnames[3] = {"field1", "field2", "field3"};
data/libmatio-1.5.19/test/test_mat.c:2422:11:  [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 *fieldnames[2] = {"field1","field2"};
data/libmatio-1.5.19/test/test_mat.c:2451:11:  [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 *fieldnames[2] = {"field1","field2"};
data/libmatio-1.5.19/test/test_mat.c:2495:11:  [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 *fieldnames[4] = {"field1","field2","field3","field4"};
data/libmatio-1.5.19/test/test_mat.c:2583:11:  [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 *fieldnames[3] = {"r","c","z"};
data/libmatio-1.5.19/test/test_mat.c:2633:11:  [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 *fieldnames[3] = {"r","c"};
data/libmatio-1.5.19/test/test_mat.c:2852:29:  [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).
                    index = atoi(fieldname);
data/libmatio-1.5.19/test/test_snprintf.c:16: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.
        char buf1[1024];
data/libmatio-1.5.19/test/test_snprintf.c:17: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.
        char buf2[1024];
data/libmatio-1.5.19/test/test_snprintf.c:136:26:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                         sprintf(buf2,                "%1.1f", r);
data/libmatio-1.5.19/tools/matdump.c:72: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.
static const char *mxclass[18] = { "mxUNKNOWN_CLASS",
data/libmatio-1.5.19/tools/matdump.c:112:21:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
slab_get_rank(char *open,char *close)
data/libmatio-1.5.19/tools/matdump.c:124:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
slab_get_select(char *open, char *close, int rank, int *start, int *stride,
data/libmatio-1.5.19/tools/matdump.c:130:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    ptr = open;
data/libmatio-1.5.19/tools/matdump.c:142:26:  [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).
                     i = atoi(valptr);
data/libmatio-1.5.19/tools/matdump.c:150:26:  [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).
                     i = atoi(valptr);
data/libmatio-1.5.19/tools/matdump.c:159:26:  [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).
                     i = atoi(valptr);
data/libmatio-1.5.19/tools/matdump.c:179:21:  [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).
                i = atoi(valptr);
data/libmatio-1.5.19/tools/matdump.c:204:21:  [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).
                i = atoi(valptr);
data/libmatio-1.5.19/tools/matdump.c:344:36:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            rank   = slab_get_rank(open,close);
data/libmatio-1.5.19/tools/matdump.c:354:29:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            slab_get_select(open,close,rank,start,stride,edge);
data/libmatio-1.5.19/tools/matdump.c:475:36:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            rank   = slab_get_rank(open,close);
data/libmatio-1.5.19/tools/matdump.c:485:29:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            slab_get_select(open,close,rank,start,stride,edge);
data/libmatio-1.5.19/tools/matdump.c:536: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 size[32] = {'\0',};
data/libmatio-1.5.19/getopt/getopt_long.c:232:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        current_argv_len = strlen(current_argv);
data/libmatio-1.5.19/getopt/getopt_long.c:240:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(long_options[i].name) == current_argv_len) {
data/libmatio-1.5.19/src/io.c:88:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        int srcLen = (int)strlen(src);
data/libmatio-1.5.19/src/mat.c:1403:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t len = strlen(in->name) + 1;
data/libmatio-1.5.19/src/mat4.c:172:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    x.namelen = (mat_int32_t)strlen(matvar->name) + 1;
data/libmatio-1.5.19/src/mat5.c:144:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if ( NULL != fieldname && strlen(fieldname) > maxlen )
data/libmatio-1.5.19/src/mat5.c:145:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    maxlen = strlen(fieldname);
data/libmatio-1.5.19/src/mat5.c:420:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(name);
data/libmatio-1.5.19/src/mat5.c:587:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(matvar->name);
data/libmatio-1.5.19/src/mat5.c:2042:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                size_t len = strlen(matvar->internal->fieldnames[i]);
data/libmatio-1.5.19/src/mat5.c:2058:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                size_t len = strlen(matvar->internal->fieldnames[i]);
data/libmatio-1.5.19/src/mat5.c:2177:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    } else if ( strlen(matvar->name) <= 4 ) {
data/libmatio-1.5.19/src/mat5.c:2179:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        const mat_uint32_t array_name_len = (mat_uint32_t)strlen(matvar->name);
data/libmatio-1.5.19/src/mat5.c:2187:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        const mat_uint32_t array_name_len = (mat_uint32_t)strlen(matvar->name);
data/libmatio-1.5.19/src/mat5.c:2405:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                size_t len = strlen(matvar->internal->fieldnames[i]);
data/libmatio-1.5.19/src/mat5.c:2429:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                size_t len = strlen(matvar->internal->fieldnames[i]);
data/libmatio-1.5.19/src/mat5.c:2700:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        mat_int32_t array_name_len = (mat_int32_t)strlen(name);
data/libmatio-1.5.19/src/mat5.c:2814:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    } else if ( strlen(name) <= 4 ) {
data/libmatio-1.5.19/src/mat5.c:2815:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        mat_uint32_t array_name_len = (mat_uint32_t)strlen(name);
data/libmatio-1.5.19/src/mat5.c:2834:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        mat_uint32_t array_name_len = (mat_uint32_t)strlen(name);
data/libmatio-1.5.19/src/mat5.c:4944:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ( strlen(matvar->name) <= 4 ) {
data/libmatio-1.5.19/src/mat5.c:4946:63:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            const mat_uint32_t array_name_len = (mat_uint32_t)strlen(matvar->name);
data/libmatio-1.5.19/src/mat5.c:4955:63:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            const mat_uint32_t array_name_len = (mat_uint32_t)strlen(matvar->name);
data/libmatio-1.5.19/src/mat5.c:5059:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ( strlen(matvar->name) <= 4 ) {
data/libmatio-1.5.19/src/mat5.c:5060:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            mat_uint32_t array_name_len = (mat_uint32_t)strlen(matvar->name);
data/libmatio-1.5.19/src/mat5.c:5079:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            mat_uint32_t array_name_len = (mat_uint32_t)strlen(matvar->name);
data/libmatio-1.5.19/src/mat73.c:1249:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    H5Tset_size(attr_type_id, strlen(class_name));
data/libmatio-1.5.19/src/mat73.c:1272:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            strlen(matvar->internal->fieldnames[k]);
data/libmatio-1.5.19/src/mat73.c:1463:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        H5Tset_size(attr_type_id, strlen(ClassNames[matvar->class_type]));
data/libmatio-1.5.19/src/mat73.c:1695:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        H5Tset_size(attr_type_id, strlen(ClassNames[matvar->class_type]));
data/libmatio-1.5.19/src/mat73.c:1808:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    matvar->isLogical ? 7 : strlen(ClassNames[class_type]));
data/libmatio-1.5.19/src/mat73.c:1948:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            strlen(matvar->internal->fieldnames[k]);
data/libmatio-1.5.19/test/test_mat.c:3746:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if ( NULL != header && strlen(header) > 128 ) {

ANALYSIS SUMMARY:

Hits = 157
Lines analyzed = 26197 in approximately 0.79 seconds (33161 lines/second)
Physical Source Lines of Code (SLOC) = 21205
Hits@level = [0] 237 [1]  33 [2]  94 [3]   7 [4]  23 [5]   0
Hits@level+ = [0+] 394 [1+] 157 [2+] 124 [3+]  30 [4+]  23 [5+]   0
Hits/KSLOC@level+ = [0+] 18.5805 [1+] 7.40391 [2+] 5.84768 [3+] 1.41476 [4+] 1.08465 [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.