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/libgctp-2.0.0/test/test_proj/testproj.c
Examining data/libgctp-2.0.0/source/wviiinv.c
Examining data/libgctp-2.0.0/source/goodinv.c
Examining data/libgctp-2.0.0/source/lamazfor.c
Examining data/libgctp-2.0.0/source/alconfor.c
Examining data/libgctp-2.0.0/source/gctp.c
Examining data/libgctp-2.0.0/source/molwinv.c
Examining data/libgctp-2.0.0/source/somfor.c
Examining data/libgctp-2.0.0/source/wivinv.c
Examining data/libgctp-2.0.0/source/sphdz.c
Examining data/libgctp-2.0.0/source/obleqinv.c
Examining data/libgctp-2.0.0/source/millinv.c
Examining data/libgctp-2.0.0/source/omerfor.c
Examining data/libgctp-2.0.0/source/orthinv.c
Examining data/libgctp-2.0.0/source/aziminv.c
Examining data/libgctp-2.0.0/source/inv_init.c
Examining data/libgctp-2.0.0/source/untfz.c
Examining data/libgctp-2.0.0/source/equiinv.c
Examining data/libgctp-2.0.0/source/stplninv.c
Examining data/libgctp-2.0.0/source/polyfor.c
Examining data/libgctp-2.0.0/source/paksz.c
Examining data/libgctp-2.0.0/source/robfor.c
Examining data/libgctp-2.0.0/source/alconinv.c
Examining data/libgctp-2.0.0/source/haminv.c
Examining data/libgctp-2.0.0/source/sininv.c
Examining data/libgctp-2.0.0/source/sinfor.c
Examining data/libgctp-2.0.0/source/tmfor.c
Examining data/libgctp-2.0.0/source/merinv.c
Examining data/libgctp-2.0.0/source/azimfor.c
Examining data/libgctp-2.0.0/source/polyinv.c
Examining data/libgctp-2.0.0/source/eqconfor.c
Examining data/libgctp-2.0.0/source/for_init.c
Examining data/libgctp-2.0.0/source/gvnspfor.c
Examining data/libgctp-2.0.0/source/alberinv.c
Examining data/libgctp-2.0.0/source/goodfor.c
Examining data/libgctp-2.0.0/source/stplnfor.c
Examining data/libgctp-2.0.0/source/molwfor.c
Examining data/libgctp-2.0.0/source/wviifor.c
Examining data/libgctp-2.0.0/source/tminv.c
Examining data/libgctp-2.0.0/source/gnominv.c
Examining data/libgctp-2.0.0/source/imolwinv.c
Examining data/libgctp-2.0.0/source/lamccinv.c
Examining data/libgctp-2.0.0/source/millfor.c
Examining data/libgctp-2.0.0/source/hamfor.c
Examining data/libgctp-2.0.0/source/eqconinv.c
Examining data/libgctp-2.0.0/source/proj.h
Examining data/libgctp-2.0.0/source/br_gctp.c
Examining data/libgctp-2.0.0/source/psinv.c
Examining data/libgctp-2.0.0/source/sterinv.c
Examining data/libgctp-2.0.0/source/merfor.c
Examining data/libgctp-2.0.0/source/vandgfor.c
Examining data/libgctp-2.0.0/source/lamccfor.c
Examining data/libgctp-2.0.0/source/cproj.c
Examining data/libgctp-2.0.0/source/robinv.c
Examining data/libgctp-2.0.0/source/alberfor.c
Examining data/libgctp-2.0.0/source/psfor.c
Examining data/libgctp-2.0.0/source/sominv.c
Examining data/libgctp-2.0.0/source/equifor.c
Examining data/libgctp-2.0.0/source/utmfor.c
Examining data/libgctp-2.0.0/source/imolwfor.c
Examining data/libgctp-2.0.0/source/gnomfor.c
Examining data/libgctp-2.0.0/source/orthfor.c
Examining data/libgctp-2.0.0/source/lamazinv.c
Examining data/libgctp-2.0.0/source/sterfor.c
Examining data/libgctp-2.0.0/source/report.c
Examining data/libgctp-2.0.0/source/vandginv.c
Examining data/libgctp-2.0.0/source/omerinv.c
Examining data/libgctp-2.0.0/source/utminv.c
Examining data/libgctp-2.0.0/source/obleqfor.c
Examining data/libgctp-2.0.0/source/gvnspinv.c
Examining data/libgctp-2.0.0/source/cproj.h
Examining data/libgctp-2.0.0/source/wivfor.c

FINAL RESULTS:

data/libgctp-2.0.0/source/report.c:71:4:  [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(err_file,efile);
data/libgctp-2.0.0/source/report.c:84:4:  [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(err_file,efile);
data/libgctp-2.0.0/source/report.c:105:4:  [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(parm_file,pfile);
data/libgctp-2.0.0/source/report.c:118:4:  [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(parm_file,pfile);
data/libgctp-2.0.0/test/test_proj/testproj.c:177:1:  [4] (buffer) scanf:
  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.
scanf("%s",file1);
data/libgctp-2.0.0/test/test_proj/testproj.c:182:1:  [4] (buffer) scanf:
  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.
scanf("%s",fflag);
data/libgctp-2.0.0/test/test_proj/testproj.c:188:4:  [4] (buffer) scanf:
  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.
   scanf("%s",file2);
data/libgctp-2.0.0/test/test_proj/testproj.c:197:4:  [4] (buffer) scanf:
  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.
   scanf("%s",file3);
data/libgctp-2.0.0/test/test_proj/testproj.c:231:8:  [4] (buffer) sscanf:
  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.
       sscanf(buf2,"%s",temp2);
data/libgctp-2.0.0/test/test_proj/testproj.c:267:4:  [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(libgctp,ptr);
data/libgctp-2.0.0/test/test_proj/testproj.c:268:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(file27,"%s/nad27sp", libgctp);
data/libgctp-2.0.0/test/test_proj/testproj.c:269:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(file83,"%s/nad83sp", libgctp);
data/libgctp-2.0.0/test/test_proj/testproj.c:266:18:  [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.
   ptr = (char *)getenv("SRCGCTP");
data/libgctp-2.0.0/source/azimfor.c:86: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 mess[80];		/* error message buffer				*/
data/libgctp-2.0.0/source/azimfor.c:100:6:  [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(mess,"Point projects into a circle of radius = %12.2lf",con);
data/libgctp-2.0.0/source/lamazfor.c:85: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 mess[60];
data/libgctp-2.0.0/source/lamazfor.c:95:4:  [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(mess, "Point projects to a circle of radius = %lf\n", 2.0 * R);
data/libgctp-2.0.0/source/report.c:44: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.
static char parm_file[256];
data/libgctp-2.0.0/source/report.c:45: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.
static char err_file[256];
data/libgctp-2.0.0/source/report.c:137:29:  [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).
           fptr_p = (FILE *)fopen(parm_file,"a");
data/libgctp-2.0.0/source/report.c:150:27:  [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).
         fptr_p = (FILE *)fopen(parm_file,"a");
data/libgctp-2.0.0/source/report.c:166:27:  [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).
         fptr_p = (FILE *)fopen(parm_file,"a");
data/libgctp-2.0.0/source/report.c:180:25:  [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).
       fptr_p = (FILE *)fopen(parm_file,"a");
data/libgctp-2.0.0/source/report.c:193:23:  [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).
     fptr_p = (FILE *)fopen(parm_file,"a");
data/libgctp-2.0.0/source/report.c:206:24:  [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).
      fptr_p = (FILE *)fopen(parm_file,"a");
data/libgctp-2.0.0/source/report.c:219:24:  [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).
      fptr_p = (FILE *)fopen(parm_file,"a");
data/libgctp-2.0.0/source/report.c:234:24:  [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).
      fptr_p = (FILE *)fopen(parm_file,"a");
data/libgctp-2.0.0/source/report.c:250:24:  [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).
      fptr_p = (FILE *)fopen(parm_file,"a");
data/libgctp-2.0.0/source/report.c:266:24:  [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).
      fptr_p = (FILE *)fopen(parm_file,"a");
data/libgctp-2.0.0/source/report.c:280:24:  [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).
      fptr_p = (FILE *)fopen(parm_file,"a");
data/libgctp-2.0.0/source/report.c:292:24:  [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).
      fptr_p = (FILE *)fopen(parm_file,"a");
data/libgctp-2.0.0/source/report.c:303:24:  [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).
      fptr_p = (FILE *)fopen(parm_file,"a");
data/libgctp-2.0.0/source/report.c:319:24:  [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).
      fptr_e = (FILE *)fopen(err_file,"a");
data/libgctp-2.0.0/source/somfor.c:169: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   errorbuf[80];
data/libgctp-2.0.0/source/somfor.c:219:8:  [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.
L260:  sprintf(errorbuf,"50 iterations without conv\n");
data/libgctp-2.0.0/source/stplnfor.c:75: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 pname[32];		/* projection name */
data/libgctp-2.0.0/source/stplnfor.c: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 buf[100];		/* buffer for error messages */
data/libgctp-2.0.0/source/stplnfor.c:115:7:  [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(buf,"Illegal spheroid #%4d",sphere);
data/libgctp-2.0.0/source/stplnfor.c:122:4:  [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(buf,"Illegal zone #%4d  for spheroid #%4d",zone,sphere);
data/libgctp-2.0.0/source/stplnfor.c:130: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).
   ptr = fopen(fn27,"r");
data/libgctp-2.0.0/source/stplnfor.c:132: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).
   ptr = fopen(fn83,"r");
data/libgctp-2.0.0/source/stplnfor.c:146:6:  [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(buf,"Illegal zone #%4d  for spheroid #%4d",zone,sphere);
data/libgctp-2.0.0/source/stplninv.c:77: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 pname[33];		/* projection name */
data/libgctp-2.0.0/source/stplninv.c:78: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 buf[100];		/* buffer for error messages */
data/libgctp-2.0.0/source/stplninv.c:118:7:  [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(buf,"Illegal spheroid #%4d",sphere);
data/libgctp-2.0.0/source/stplninv.c:125:4:  [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(buf,"Illegal zone #%4d  for spheroid #%4d",zone,sphere);
data/libgctp-2.0.0/source/stplninv.c:133: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).
   ptr = fopen(fn27,"r");
data/libgctp-2.0.0/source/stplninv.c:135: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).
   ptr = fopen(fn83,"r");
data/libgctp-2.0.0/source/stplninv.c:150:4:  [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(buf,"Illegal zone #%4d  for spheroid #%4d",zone,sphere);
data/libgctp-2.0.0/test/test_proj/testproj.c:46: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 file27[CMLEN];
data/libgctp-2.0.0/test/test_proj/testproj.c:47: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 file83[CMLEN];
data/libgctp-2.0.0/test/test_proj/testproj.c:49: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 libgctp[CMLEN];
data/libgctp-2.0.0/test/test_proj/testproj.c:86: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 buf2[82];		/* buffer for file2 information			*/
data/libgctp-2.0.0/test/test_proj/testproj.c:87: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 temp2[82];		/* temporary buffer for header strings		*/
data/libgctp-2.0.0/test/test_proj/testproj.c:88: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 fflag[2];		/* flag for saving converted values to a file	*/
data/libgctp-2.0.0/test/test_proj/testproj.c:89: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 file1[CMLEN];	/* name of new data file     			*/
data/libgctp-2.0.0/test/test_proj/testproj.c:90: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 file2[CMLEN];	/* name of existing file			*/
data/libgctp-2.0.0/test/test_proj/testproj.c:91: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 file3[CMLEN];	/* name of Comparison file			*/
data/libgctp-2.0.0/test/test_proj/testproj.c:92: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 efile[CMLEN];	/* name of error file				*/
data/libgctp-2.0.0/test/test_proj/testproj.c:98:1:  [2] (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). Risk is low because the source is a constant string.
strcpy (efile,"error_file.txt");
data/libgctp-2.0.0/test/test_proj/testproj.c:198:12:  [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).
   fptr3 = fopen(file3,"w");
data/libgctp-2.0.0/test/test_proj/testproj.c:202:12:  [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).
   fptr2 = fopen(argv[1],"r");
data/libgctp-2.0.0/test/test_proj/testproj.c:249:13:  [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).
if((fptr1 = fopen(file1,"w")) == NULL)
data/libgctp-2.0.0/test/test_proj/testproj.c:302:21:  [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).
        if((fptr1 = fopen(file1,"a")) == NULL)
data/libgctp-2.0.0/test/test_proj/testproj.c:326:17:  [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).
    if((fptr1 = fopen(file1,"a")) == NULL)
data/libgctp-2.0.0/source/report.c:66:8:  [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(efile) == 0)
data/libgctp-2.0.0/source/report.c:77:8:  [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(efile) == 0)
data/libgctp-2.0.0/source/report.c:100:8:  [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(pfile) == 0)
data/libgctp-2.0.0/source/report.c:111:8:  [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(pfile) == 0)
data/libgctp-2.0.0/test/test_proj/testproj.c:99:1:  [1] (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). Risk is low because the source is a constant character.
strcpy (file27,"");
data/libgctp-2.0.0/test/test_proj/testproj.c:100:1:  [1] (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). Risk is low because the source is a constant character.
strcpy (file83,"");
data/libgctp-2.0.0/test/test_proj/testproj.c:101:1:  [1] (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). Risk is low because the source is a constant character.
strcpy (libgctp,"");
data/libgctp-2.0.0/test/test_proj/testproj.c:207:7:  [1] (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). Risk is low because the source is a constant character.
      strcpy(fflag,"N");
data/libgctp-2.0.0/test/test_proj/testproj.c:223:3:  [1] (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). Risk is low because the source is a constant character.
	 strcpy(fflag,"N");
data/libgctp-2.0.0/test/test_proj/testproj.c:238:3:  [1] (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). Risk is low because the source is a constant character.
	 strcpy(fflag,"N");
data/libgctp-2.0.0/test/test_proj/testproj.c:345:3:  [1] (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). Risk is low because the source is a constant character.
	 strcpy(fflag,"N");
data/libgctp-2.0.0/test/test_proj/testproj.c:358:5:  [1] (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). Risk is low because the source is a constant character.
	   strcpy(fflag,"N");

ANALYSIS SUMMARY:

Hits = 77
Lines analyzed = 11812 in approximately 0.62 seconds (18993 lines/second)
Physical Source Lines of Code (SLOC) = 7924
Hits@level = [0] 120 [1]  12 [2]  52 [3]   1 [4]  12 [5]   0
Hits@level+ = [0+] 197 [1+]  77 [2+]  65 [3+]  13 [4+]  12 [5+]   0
Hits/KSLOC@level+ = [0+] 24.8612 [1+] 9.71731 [2+] 8.20293 [3+] 1.64059 [4+] 1.51439 [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.