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-bioc-multtest-2.46.0/src/Rpack.c
Examining data/r-bioc-multtest-2.46.0/src/VScount.c
Examining data/r-bioc-multtest-2.46.0/src/block_sampling_fixed.c
Examining data/r-bioc-multtest-2.46.0/src/bootloop.c
Examining data/r-bioc-multtest-2.46.0/src/mt.c
Examining data/r-bioc-multtest-2.46.0/src/mt.h
Examining data/r-bioc-multtest-2.46.0/src/pairt_sampling.c
Examining data/r-bioc-multtest-2.46.0/src/pairt_sampling_fixed.c
Examining data/r-bioc-multtest-2.46.0/src/random.c
Examining data/r-bioc-multtest-2.46.0/src/sampling.c
Examining data/r-bioc-multtest-2.46.0/src/sampling_fixed.c
Examining data/r-bioc-multtest-2.46.0/src/stat_func.c
Examining data/r-bioc-multtest-2.46.0/src/stat_order.c

FINAL RESULTS:

data/r-bioc-multtest-2.46.0/src/mt.h:11:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define fprintf win_print
data/r-bioc-multtest-2.46.0/src/stat_func.c:703:3:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  fscanf(fh, "%s", pdata->name);
data/r-bioc-multtest-2.46.0/src/stat_func.c:710:5:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    fscanf(fh, "%s", pdata->id[i]);
data/r-bioc-multtest-2.46.0/src/Rpack.c:58:18:  [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.
    if(PrintIDX) sprintf(pdata->id[i],"%d",i+1); /*used for the indexes*/
data/r-bioc-multtest-2.46.0/src/Rpack.c:81:16:  [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).
    indexes[i]=atoi(pdata->id[i]);
data/r-bioc-multtest-2.46.0/src/block_sampling_fixed.c:57:5:  [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(l_L,L,sizeof(int)*n);
data/r-bioc-multtest-2.46.0/src/block_sampling_fixed.c:74:5:  [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(L,l_order_block,sizeof(int)*l_n);
data/r-bioc-multtest-2.46.0/src/block_sampling_fixed.c:87:5:  [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(L,l_L,sizeof(int)*l_n);
data/r-bioc-multtest-2.46.0/src/mt.h:53: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[MAX_ID];/*the name of the status*/
data/r-bioc-multtest-2.46.0/src/pairt_sampling_fixed.c:21:3:  [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(l_L,L,sizeof(int)*n);
data/r-bioc-multtest-2.46.0/src/pairt_sampling_fixed.c:35:5:  [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(L,l_L,sizeof(int)*l_n);
data/r-bioc-multtest-2.46.0/src/sampling.c:91:7:  [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(permun,ordern,sizeof(int)*n);
data/r-bioc-multtest-2.46.0/src/sampling_fixed.c:27:3:  [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(l_L,L,sizeof(int)*n);
data/r-bioc-multtest-2.46.0/src/sampling_fixed.c:63:5:  [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(L,l_L,sizeof(int)*l_n);
data/r-bioc-multtest-2.46.0/src/sampling_fixed.c:74:3:  [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(l_permun,l_ordern,sizeof(int)*n);
data/r-bioc-multtest-2.46.0/src/stat_func.c:552:5:  [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(tempV,B,sizeof(int)*(n-k));
data/r-bioc-multtest-2.46.0/src/stat_func.c:553:5:  [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(tempV+(n-k),A,sizeof(int)*k);
data/r-bioc-multtest-2.46.0/src/stat_func.c:555:5:  [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(V,tempV,sizeof(int)*n);
data/r-bioc-multtest-2.46.0/src/stat_func.c:568:3:  [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(tempV,A,sizeof(int)*i);
data/r-bioc-multtest-2.46.0/src/stat_func.c:571:5:  [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(tempV+k,B,sizeof(int)*(j+1));
data/r-bioc-multtest-2.46.0/src/stat_func.c:578:3:  [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(cpyV,B+j+1,sizeof(int)*((n-k)-(j+1)));
data/r-bioc-multtest-2.46.0/src/stat_func.c:580:5:  [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(cpyV+(n-k)-(j+1),A+i+1,sizeof(int)*(k-(i+1)));
data/r-bioc-multtest-2.46.0/src/stat_func.c:581:3:  [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(tempV+i,cpyV,sizeof(int)*(k-i));
data/r-bioc-multtest-2.46.0/src/stat_func.c:584:5:  [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(tempV+k+j+2,cpyV+(k-i),sizeof(int)*((n-k)-(j+2)));
data/r-bioc-multtest-2.46.0/src/stat_func.c:586:3:  [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(V,tempV,sizeof(int)*n);
data/r-bioc-multtest-2.46.0/src/stat_func.c:646:3:  [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(cpyV,V,sizeof(int)*n);
data/r-bioc-multtest-2.46.0/src/stat_func.c:699:6:  [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).
  fh=fopen(filename,"r");
data/r-bioc-multtest-2.46.0/src/Rpack.c:59:10:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
    else sprintf(pdata->id[i],"0");

ANALYSIS SUMMARY:

Hits = 28
Lines analyzed = 2975 in approximately 0.11 seconds (28219 lines/second)
Physical Source Lines of Code (SLOC) = 2181
Hits@level = [0]  34 [1]   1 [2]  24 [3]   0 [4]   3 [5]   0
Hits@level+ = [0+]  62 [1+]  28 [2+]  27 [3+]   3 [4+]   3 [5+]   0
Hits/KSLOC@level+ = [0+] 28.4273 [1+] 12.8381 [2+] 12.3796 [3+] 1.37552 [4+] 1.37552 [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.