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/gtg-trace-0.2-2+dfsg/exm/gtg_color.c
Examining data/gtg-trace-0.2-2+dfsg/exm/otf_example.c
Examining data/gtg-trace-0.2-2+dfsg/exm/paje_example.c
Examining data/gtg-trace-0.2-2+dfsg/exm/paje_example2.c
Examining data/gtg-trace-0.2-2+dfsg/exm/vite_example.c
Examining data/gtg-trace-0.2-2+dfsg/inc/GTG.h
Examining data/gtg-trace-0.2-2+dfsg/inc/GTGBasic.h
Examining data/gtg-trace-0.2-2+dfsg/inc/GTGColor.h
Examining data/gtg-trace-0.2-2+dfsg/inc/GTGCompress.h
Examining data/gtg-trace-0.2-2+dfsg/inc/GTGList.h
Examining data/gtg-trace-0.2-2+dfsg/inc/GTGMemory.h
Examining data/gtg-trace-0.2-2+dfsg/inc/GTGOTF.h
Examining data/gtg-trace-0.2-2+dfsg/inc/GTGOTF_Basic.h
Examining data/gtg-trace-0.2-2+dfsg/inc/GTGOTF_Structs.h
Examining data/gtg-trace-0.2-2+dfsg/inc/GTGPaje.h
Examining data/gtg-trace-0.2-2+dfsg/inc/GTGPaje_Basic.h
Examining data/gtg-trace-0.2-2+dfsg/inc/GTGReplay.h
Examining data/gtg-trace-0.2-2+dfsg/inc/GTGStack.h
Examining data/gtg-trace-0.2-2+dfsg/inc/GTGTypes.h
Examining data/gtg-trace-0.2-2+dfsg/src/C/GTGBasic1_c.c
Examining data/gtg-trace-0.2-2+dfsg/src/C/GTGColor.c
Examining data/gtg-trace-0.2-2+dfsg/src/C/GTGMemory.c
Examining data/gtg-trace-0.2-2+dfsg/src/C/GTGReplay.c
Examining data/gtg-trace-0.2-2+dfsg/src/C/OTF_GTGBasic1_c.c
Examining data/gtg-trace-0.2-2+dfsg/src/C/gtg_compress.c
Examining data/gtg-trace-0.2-2+dfsg/src/C/gtg_compress_core.c
Examining data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c
Examining data/gtg-trace-0.2-2+dfsg/src/C/paje_header.c
Examining data/gtg-trace-0.2-2+dfsg/src/C/paje_GTGBasic1_c.c
Examining data/gtg-trace-0.2-2+dfsg/src/C/gtg_decompress.c

FINAL RESULTS:

data/gtg-trace-0.2-2+dfsg/inc/GTGOTF_Structs.h:228:3:  [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((ptr)->name, _name_);						\
data/gtg-trace-0.2-2+dfsg/inc/GTGOTF_Structs.h:230:3:  [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((ptr)->alias, _alias_);					\
data/gtg-trace-0.2-2+dfsg/src/C/OTF_GTGBasic1_c.c:154:3:  [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 (filename, filenam);
data/gtg-trace-0.2-2+dfsg/src/C/paje_GTGBasic1_c.c:96:9:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        vfprintf(file, format, args);
data/gtg-trace-0.2-2+dfsg/src/C/paje_GTGBasic1_c.c:111:20:  [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 paje_print fprintf
data/gtg-trace-0.2-2+dfsg/src/C/paje_GTGBasic1_c.c:167:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (f, "%s_proc%d.ept", file, rk);
data/gtg-trace-0.2-2+dfsg/src/C/paje_GTGBasic1_c.c:242:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (cmd, "rm -f %s_root.ept %s_proc*.ept", filename,filename);
data/gtg-trace-0.2-2+dfsg/src/C/paje_GTGBasic1_c.c:243:11:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    ret = system(cmd);
data/gtg-trace-0.2-2+dfsg/src/C/paje_GTGBasic1_c.c:264:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (tmp, "%s.trace.z", filename);
data/gtg-trace-0.2-2+dfsg/src/C/paje_GTGBasic1_c.c:267:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (tmp, "%s.trace", filename);
data/gtg-trace-0.2-2+dfsg/src/C/paje_GTGBasic1_c.c:270:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (tmp2, "%s_root.ept", filename);
data/gtg-trace-0.2-2+dfsg/src/C/paje_GTGBasic1_c.c:340:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (nameTmp, "%s_proc%d.ept", filename, procNb);
data/gtg-trace-0.2-2+dfsg/src/C/paje_GTGBasic1_c.c:356:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf (f, "%s_proc%d.ept", filename, rk);
data/gtg-trace-0.2-2+dfsg/src/C/paje_GTGBasic1_c.c:382: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 (filename, filenam);
data/gtg-trace-0.2-2+dfsg/src/C/paje_GTGBasic1_c.c:389:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (file, "%s_root.ept", filename);
data/gtg-trace-0.2-2+dfsg/src/C/GTGBasic1_c.c:46:11:  [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.
    res = getenv("GTG_VERBOSE");
data/gtg-trace-0.2-2+dfsg/exm/otf_example.c:30: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   txt [TXTSIZE];
data/gtg-trace-0.2-2+dfsg/exm/otf_example.c:31: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   proc[TXTSIZE];
data/gtg-trace-0.2-2+dfsg/exm/otf_example.c:32: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   name[TXTSIZE];
data/gtg-trace-0.2-2+dfsg/exm/otf_example.c:33: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   src [TXTSIZE];
data/gtg-trace-0.2-2+dfsg/exm/otf_example.c:34: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   dest[TXTSIZE];
data/gtg-trace-0.2-2+dfsg/exm/otf_example.c:35: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   key [TXTSIZE];
data/gtg-trace-0.2-2+dfsg/exm/otf_example.c:74:13:  [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 (txt , "ST_NodeState");
data/gtg-trace-0.2-2+dfsg/exm/otf_example.c:75:13:  [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 (proc, "C_N%d", (i%20)?0:1);
data/gtg-trace-0.2-2+dfsg/exm/otf_example.c:76:13:  [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 (name, "SN_%d", i%3);
data/gtg-trace-0.2-2+dfsg/exm/otf_example.c:79:13:  [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 (txt , "ST_ProcState");
data/gtg-trace-0.2-2+dfsg/exm/otf_example.c:80:13:  [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 (proc, "C_P%d", i%6);
data/gtg-trace-0.2-2+dfsg/exm/otf_example.c:81:13:  [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 (name, "SP_%d", i%5+3);
data/gtg-trace-0.2-2+dfsg/exm/otf_example.c:87:9:  [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 (name, "L_%d", i%2);
data/gtg-trace-0.2-2+dfsg/exm/otf_example.c:88:9:  [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 (txt , "C_Net0");
data/gtg-trace-0.2-2+dfsg/exm/otf_example.c:89:9:  [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 (src , "C_P%d", (i+2)%6);
data/gtg-trace-0.2-2+dfsg/exm/otf_example.c:90:9:  [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 (dest, "C_P%d", (i+5)%6);
data/gtg-trace-0.2-2+dfsg/exm/otf_example.c:91:9:  [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 (proc, "%d", i);
data/gtg-trace-0.2-2+dfsg/exm/otf_example.c:92:9:  [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 (key , "%d", i);
data/gtg-trace-0.2-2+dfsg/exm/otf_example.c:99:9:  [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 (txt, "C_N%d", i%2);
data/gtg-trace-0.2-2+dfsg/exm/otf_example.c:131:9:  [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 (name, "E_%d", i%2);
data/gtg-trace-0.2-2+dfsg/exm/otf_example.c:132:9:  [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 (proc, "C_P%d", i%6);
data/gtg-trace-0.2-2+dfsg/exm/otf_example.c:133:9:  [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 (key , "%d", i%13);
data/gtg-trace-0.2-2+dfsg/exm/paje_example2.c:33: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   txt [TXTSIZE];
data/gtg-trace-0.2-2+dfsg/exm/paje_example2.c:34: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   proc[TXTSIZE];
data/gtg-trace-0.2-2+dfsg/exm/paje_example2.c:35: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   name[TXTSIZE];
data/gtg-trace-0.2-2+dfsg/exm/paje_example2.c:36: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   src [TXTSIZE];
data/gtg-trace-0.2-2+dfsg/exm/paje_example2.c:37: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   dest[TXTSIZE];
data/gtg-trace-0.2-2+dfsg/exm/paje_example2.c:38: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   key [TXTSIZE];
data/gtg-trace-0.2-2+dfsg/exm/paje_example2.c:77:9:  [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 (txt, "C_N%d", i%2);
data/gtg-trace-0.2-2+dfsg/exm/paje_example2.c:86:13:  [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 (txt , "ST_NodeState");
data/gtg-trace-0.2-2+dfsg/exm/paje_example2.c:87:13:  [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 (proc, "C_N%d", (i%20)?0:1);
data/gtg-trace-0.2-2+dfsg/exm/paje_example2.c:88:13:  [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 (name, "SN_%d", i%3);
data/gtg-trace-0.2-2+dfsg/exm/paje_example2.c:91:13:  [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 (txt , "ST_ProcState");
data/gtg-trace-0.2-2+dfsg/exm/paje_example2.c:92:13:  [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 (proc, "C_P%d", i%6);
data/gtg-trace-0.2-2+dfsg/exm/paje_example2.c:93:13:  [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 (name, "SP_%d", i%5+3);
data/gtg-trace-0.2-2+dfsg/exm/paje_example2.c:105:9:  [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 (name, "L_%d", i%2);
data/gtg-trace-0.2-2+dfsg/exm/paje_example2.c:106:9:  [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 (txt , "C_Net0");
data/gtg-trace-0.2-2+dfsg/exm/paje_example2.c:107:9:  [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 (src , "C_P%d", (i+2)%6);
data/gtg-trace-0.2-2+dfsg/exm/paje_example2.c:108:9:  [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 (dest, "C_P%d", (i+5)%6);
data/gtg-trace-0.2-2+dfsg/exm/paje_example2.c:109:9:  [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 (proc, "%d", i);
data/gtg-trace-0.2-2+dfsg/exm/paje_example2.c:110:9:  [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 (key , "%d", i);
data/gtg-trace-0.2-2+dfsg/exm/paje_example2.c:125:9:  [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 (name, "E_%d", i%2);
data/gtg-trace-0.2-2+dfsg/exm/paje_example2.c:126:9:  [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 (proc, "C_P%d", i%6);
data/gtg-trace-0.2-2+dfsg/exm/paje_example2.c:127:9:  [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 (key , "%d", i%13);
data/gtg-trace-0.2-2+dfsg/src/C/gtg_compress.c:60: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).
  FILE *fin=fopen(input_filename, "r");
data/gtg-trace-0.2-2+dfsg/src/C/gtg_compress.c:61: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).
  FILE *fout=fopen(output_filename, "w");
data/gtg-trace-0.2-2+dfsg/src/C/gtg_decompress.c:59: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).
  FILE *fin=fopen(input_filename, "r");
data/gtg-trace-0.2-2+dfsg/src/C/gtg_decompress.c:60: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).
  FILE *fout=fopen(output_filename, "w");
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:26: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 (filename, f, *len);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:38: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 (a, alias, *s1);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:40: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 (c, contType, *s2);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:42: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 (n, name, *s3);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:56: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 (a, alias, *s1);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:58: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 (c, contType, *s2);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:60: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 (n, name, *s3);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:72: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 (a, alias, *s1);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.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 (c, contType, *s2);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:76: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 (n, name, *s3);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:92: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 (a, alias, *s1);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:94: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 (c, contType, *s2);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:96: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 (n, name, *s3);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:98: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 (s, src, *s4);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:100: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 (d, dest, *s5);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:112: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 (a, alias, *s1);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:114: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 (c, contType, *s2);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:116: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 (n, name, *s3);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:130: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 (a, alias, *s1);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:132: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 (c, entType, *s2);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:134: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 (n, name, *s3);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:151: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 (a, alias, *s1);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:153: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 (t, type, *s2);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:155: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 (c, container, *s3);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:157: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 (n, name, *s4);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:159: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 (f, filename, *s5);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:170: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 (t, type, *s2);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:172: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 (n, name, *s1);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:185: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 (t, type, *s2);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:187: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 (c, cont, *s1);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:189: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, val, *s3);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:202: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 (t, type, *s2);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:204: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 (c, cont, *s1);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:206: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, val, *s3);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:218: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 (t, type, *s2);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:220: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 (c, cont, *s1);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:233: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 (t, type, *s2);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:235: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 (c, cont, *s1);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:237: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, val, *s3);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:256: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 (t, type, *s2);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:258: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 (c, cont, *s1);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:260: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, val, *s5);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:262: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 (s, src, *s3);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:264: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 (d, dest, *s4);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:266: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 (k, key, *s6);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:285: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 (t, type, *s2);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:287: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 (c, cont, *s1);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:289: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, val, *s5);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:291: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 (s, src, *s3);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:293: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 (d, dest, *s4);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:295: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 (k, key, *s6);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:306: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 (t, type, *s2);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:308: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 (c, cont, *s1);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:319: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 (t, type, *s2);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:321: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 (c, cont, *s1);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:332: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 (t, type, *s2);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:334: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 (c, cont, *s1);
data/gtg-trace-0.2-2+dfsg/src/C/interfaceCFortranBasic1.c:343: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 (t, comm, *s2);
data/gtg-trace-0.2-2+dfsg/src/C/paje_GTGBasic1_c.c:165: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 f[BUFFSIZE];
data/gtg-trace-0.2-2+dfsg/src/C/paje_GTGBasic1_c.c:168: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).
    li->current.file = fopen (f, "a+");
data/gtg-trace-0.2-2+dfsg/src/C/paje_GTGBasic1_c.c:241: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 cmd[BUFFSIZE];
data/gtg-trace-0.2-2+dfsg/src/C/paje_GTGBasic1_c.c:256: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              tmp[BUFFSIZE];
data/gtg-trace-0.2-2+dfsg/src/C/paje_GTGBasic1_c.c:257: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              tmp2[BUFFSIZE];
data/gtg-trace-0.2-2+dfsg/src/C/paje_GTGBasic1_c.c:269: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).
    res = fopen (tmp, "w+");
data/gtg-trace-0.2-2+dfsg/src/C/paje_GTGBasic1_c.c:271: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).
    oldF = fopen (tmp2,"a+");
data/gtg-trace-0.2-2+dfsg/src/C/paje_GTGBasic1_c.c:350: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 f[BUFFSIZE];
data/gtg-trace-0.2-2+dfsg/src/C/paje_GTGBasic1_c.c:357: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).
            procFile = fopen (f, "w");
data/gtg-trace-0.2-2+dfsg/src/C/paje_GTGBasic1_c.c:376: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 file[BUFFSIZE];
data/gtg-trace-0.2-2+dfsg/src/C/paje_GTGBasic1_c.c:390:20:  [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).
        headFile = fopen (file, "w");
data/gtg-trace-0.2-2+dfsg/src/C/paje_header.c:39: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 *FieldType[GTG_PAJE_FIELDTYPE_NBR] = {
data/gtg-trace-0.2-2+dfsg/inc/GTGOTF_Structs.h:227:46:  [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).
  (ptr)->name = (char *)malloc(sizeof(char)*(strlen(_name_)+1));	\
data/gtg-trace-0.2-2+dfsg/inc/GTGOTF_Structs.h:229:47:  [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).
  (ptr)->alias = (char *)malloc(sizeof(char)*(strlen(_alias_)+1));	\
data/gtg-trace-0.2-2+dfsg/src/C/GTGColor.c:177:39:  [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).
	p_color->color_name = (char*)malloc((strlen(name)+1)*sizeof(char));
data/gtg-trace-0.2-2+dfsg/src/C/GTGColor.c:178:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(p_color->color_name, name, strlen(name)+1);
data/gtg-trace-0.2-2+dfsg/src/C/GTGColor.c:178:37:  [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).
	strncpy(p_color->color_name, name, strlen(name)+1);
data/gtg-trace-0.2-2+dfsg/src/C/OTF_GTGBasic1_c.c:153:46:  [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).
  filename = (char *)malloc (sizeof (char)* (strlen (filenam)+1));
data/gtg-trace-0.2-2+dfsg/src/C/paje_GTGBasic1_c.c:213:19:  [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).
        nb_char = strlen(*buf);
data/gtg-trace-0.2-2+dfsg/src/C/paje_GTGBasic1_c.c:381:48:  [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).
    filename = (char *)malloc (sizeof (char)* (strlen (filenam)+1));

ANALYSIS SUMMARY:

Hits = 142
Lines analyzed = 6862 in approximately 0.28 seconds (24137 lines/second)
Physical Source Lines of Code (SLOC) = 4186
Hits@level = [0] 104 [1]   8 [2] 118 [3]   1 [4]  15 [5]   0
Hits@level+ = [0+] 246 [1+] 142 [2+] 134 [3+]  16 [4+]  15 [5+]   0
Hits/KSLOC@level+ = [0+] 58.7673 [1+] 33.9226 [2+] 32.0115 [3+] 3.82226 [4+] 3.58337 [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.