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/pftools-3+dfsg/src/C/prg/testHeuristicMatchDeletion.c
Examining data/pftools-3+dfsg/src/C/prg/testheader.c
Examining data/pftools-3+dfsg/src/C/prg/testXali1.c
Examining data/pftools-3+dfsg/src/C/prg/testHeuristic.c
Examining data/pftools-3+dfsg/src/C/prg/threads.h
Examining data/pftools-3+dfsg/src/C/prg/numa_threads.h
Examining data/pftools-3+dfsg/src/C/prg/pfsearch.c
Examining data/pftools-3+dfsg/src/C/sse2/xalit_sse2.c
Examining data/pftools-3+dfsg/src/C/sse2/xalip_sse2.c
Examining data/pftools-3+dfsg/src/C/sse2/xali1_sse2.c
Examining data/pftools-3+dfsg/src/C/sse2/heuristic_sse2.c
Examining data/pftools-3+dfsg/src/C/sse2/sse2_inline_fcts.h
Examining data/pftools-3+dfsg/src/C/generic/xali1_old.c
Examining data/pftools-3+dfsg/src/C/generic/heuristic.c
Examining data/pftools-3+dfsg/src/C/generic/xalip.c
Examining data/pftools-3+dfsg/src/C/include/sequence.h
Examining data/pftools-3+dfsg/src/C/include/profile.h
Examining data/pftools-3+dfsg/src/C/include/system.h
Examining data/pftools-3+dfsg/src/C/sse41/xalit_sse41.c
Examining data/pftools-3+dfsg/src/C/sse41/xali1_sse41.c
Examining data/pftools-3+dfsg/src/C/sse41/heuristic_sse41.c
Examining data/pftools-3+dfsg/src/C/sse41/xalip_sse41.c
Examining data/pftools-3+dfsg/src/C/utils/Normalization.c
Examining data/pftools-3+dfsg/src/C/utils/output.c
Examining data/pftools-3+dfsg/src/C/utils/io.c
Examining data/pftools-3+dfsg/src/C/utils/ReadSequence.c
Examining data/pftools-3+dfsg/src/Fortran/io.c

FINAL RESULTS:

data/pftools-3+dfsg/src/C/include/sequence.h:101:7:  [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.
  if (fscanf(stream, ">%s",Name) != 1) {
data/pftools-3+dfsg/src/C/include/system.h:217: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(info->Username, text);
data/pftools-3+dfsg/src/C/include/system.h:251: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(info->CPU_Name, NOBrand);
data/pftools-3+dfsg/src/C/include/system.h:844:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  lptr += sprintf(lptr, Title);\
data/pftools-3+dfsg/src/C/prg/pfsearch.c:730:6:  [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(in, "%s\n", buffer);
data/pftools-3+dfsg/src/C/utils/ReadSequence.c:278:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(Buffer, "%s.copy\0", argv[1]);
data/pftools-3+dfsg/src/C/utils/io.c:1069:5:  [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(SPACE "%2lu ", alpha);
data/pftools-3+dfsg/src/C/utils/io.c:1083: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(NLOW_FORMAT " ");
data/pftools-3+dfsg/src/C/utils/io.c:1085: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(INT_FORMAT " ", MatchLine[alpha]);
data/pftools-3+dfsg/src/C/utils/io.c:1112:5:  [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(SPACE "%2lu ", alpha);
data/pftools-3+dfsg/src/C/utils/io.c:1126: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(NLOW_FORMAT " ");
data/pftools-3+dfsg/src/C/utils/io.c:1128: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(INT_FORMAT " ", InsertionLine[alpha]);
data/pftools-3+dfsg/src/C/utils/io.c:1146: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(NLOW_FORMAT " ");
data/pftools-3+dfsg/src/C/utils/io.c:1148: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(INT_FORMAT " ", InsertionLine[alpha]);
data/pftools-3+dfsg/src/C/utils/io.c:1161:5:  [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(NLOW_FORMAT " ");\
data/pftools-3+dfsg/src/C/utils/io.c:1163:5:  [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(MLOW_FORMAT " ");\
data/pftools-3+dfsg/src/C/utils/io.c:1165:5:  [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(INT_FORMAT " ", x);\
data/pftools-3+dfsg/src/C/utils/output.c:44: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(ac,prf->AC_Number);
data/pftools-3+dfsg/src/C/utils/output.c:175: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(id,prf->Identification);
data/pftools-3+dfsg/src/C/utils/output.c:181: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(ac,prf->AC_Number);
data/pftools-3+dfsg/src/C/prg/pfsearch.c:349:19:  [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.
    const int c = getopt_long (argc, argv, opt_to_test, long_options, &option_index);
data/pftools-3+dfsg/src/C/prg/testXali1.c:329:28:  [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.
  const char * const SSE = getenv("SSE");
data/pftools-3+dfsg/src/C/utils/io.c:1036:19:  [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.
    const int c = getopt_long (argc, argv, "h", long_options, &option_index);
data/pftools-3+dfsg/src/C/include/profile.h:114: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 CDIS[KDIS][16];
data/pftools-3+dfsg/src/C/include/profile.h:122: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  CNTX[32];
data/pftools-3+dfsg/src/C/include/profile.h:130: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  CNOR[KNOR][16];
data/pftools-3+dfsg/src/C/include/profile.h:144: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  CCUT[32];
data/pftools-3+dfsg/src/C/include/profile.h:159: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 Identification[64] __attribute__((aligned(16)));
data/pftools-3+dfsg/src/C/include/profile.h:160: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 AC_Number[64] __attribute__((aligned(16)));
data/pftools-3+dfsg/src/C/include/profile.h:161: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 Date[128] __attribute__((aligned(16)));
data/pftools-3+dfsg/src/C/include/profile.h:162: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 Description[256] __attribute__((aligned(16)));
data/pftools-3+dfsg/src/C/include/profile.h:163:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char Alphabet_Mapping[ALPHABET_SIZE+2] __attribute__((aligned(16)));
data/pftools-3+dfsg/src/C/include/profile.h:164: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 CABC[ALPHABET_SIZE+2]; 
data/pftools-3+dfsg/src/C/include/profile.h:583: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(Insertion->Alphabet, Insertion->Alphabet - step, step*sizeof(short int));
data/pftools-3+dfsg/src/C/include/profile.h:584: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(Insertion->Boundaries, Insertion->Boundaries - INSERTION_BOUNDARIES_SIZE, INSERTION_BOUNDARIES_SIZE*sizeof(short int));
data/pftools-3+dfsg/src/C/include/profile.h:585: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(Insertion->Transitions, Insertion->Transitions - 1, sizeof(TransitionScores));
data/pftools-3+dfsg/src/C/include/sequence.h:20:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char FileName[256];
data/pftools-3+dfsg/src/C/include/sequence.h:77: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(Seq->Data.Header, &Array[ArrayOffset], sizeof(char)*Size);
data/pftools-3+dfsg/src/C/include/system.h:57: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 Username[64];
data/pftools-3+dfsg/src/C/include/system.h:58: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 Release[64];
data/pftools-3+dfsg/src/C/include/system.h:59: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 Architecture[64];
data/pftools-3+dfsg/src/C/include/system.h:60: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 Nodename[64];
data/pftools-3+dfsg/src/C/include/system.h:62: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 CPU_Vendor[13];
data/pftools-3+dfsg/src/C/include/system.h:63: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 CPU_Name[48];
data/pftools-3+dfsg/src/C/include/system.h:185: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 username[16] __attribute__((aligned(16)));
data/pftools-3+dfsg/src/C/include/system.h:199: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(info->Release, uts_name.release, 60);
data/pftools-3+dfsg/src/C/include/system.h:224: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(info->Nodename, uts_name.nodename, 60);
data/pftools-3+dfsg/src/C/include/system.h:235: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(info->Architecture, uts_name.machine, 60);
data/pftools-3+dfsg/src/C/include/system.h:831: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 Buffer[80] __attribute__((aligned(16)));
data/pftools-3+dfsg/src/C/include/system.h:832: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 OtherBuffer[80] __attribute__((aligned(16)));
data/pftools-3+dfsg/src/C/include/system.h:833:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  const char Template[80] __attribute__((aligned(16))) = "|                                                                            |\n";
data/pftools-3+dfsg/src/C/include/system.h:842: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(Buffer, Template, Length*sizeof(char));\
data/pftools-3+dfsg/src/C/include/system.h:855:3:  [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(OtherBuffer, "0x%xh", info->Family);
data/pftools-3+dfsg/src/C/include/system.h:857:3:  [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(OtherBuffer, "0x%xh", info->Model);
data/pftools-3+dfsg/src/C/include/system.h:861:46:  [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 (info->Extensions & MM_MMXEXT)   ptr += sprintf(ptr," MMXExt");
data/pftools-3+dfsg/src/C/include/system.h:862:46:  [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 (info->Extensions & MM_SSE)      ptr += sprintf(ptr," SSE");
data/pftools-3+dfsg/src/C/include/system.h:863:46:  [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 (info->Extensions & MM_SSE2)     ptr += sprintf(ptr," SSE2");
data/pftools-3+dfsg/src/C/include/system.h:864:46:  [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 (info->Extensions & MM_SSE3)     ptr += sprintf(ptr," SSE3");
data/pftools-3+dfsg/src/C/include/system.h:865:46:  [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 (info->Extensions & MM_SSSE3)    ptr += sprintf(ptr," SSSE3");
data/pftools-3+dfsg/src/C/include/system.h:866:46:  [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 (info->Extensions & MM_SSE41)    ptr += sprintf(ptr," SSE4.1");
data/pftools-3+dfsg/src/C/include/system.h:867:46:  [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 (info->Extensions & MM_SSE42)    ptr += sprintf(ptr," SSE4.2");
data/pftools-3+dfsg/src/C/include/system.h:868:46:  [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 (info->Extensions & MM_3DNOW)    ptr += sprintf(ptr," 3DNow");
data/pftools-3+dfsg/src/C/include/system.h:869:46:  [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 (info->Extensions & MM_3DNOWEXT) ptr += sprintf(ptr," 3DNowExt");
data/pftools-3+dfsg/src/C/include/system.h:870:46:  [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 (info->Extensions & MM_SSE4A)    ptr += sprintf(ptr," SSE4a");
data/pftools-3+dfsg/src/C/include/system.h:871:46:  [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 (info->Extensions & MM_POPCOUNT) ptr += sprintf(ptr," POPCOUNT");
data/pftools-3+dfsg/src/C/include/system.h:872:46:  [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 (info->Extensions & MM_AVX)      ptr += sprintf(ptr," AVX");
data/pftools-3+dfsg/src/C/include/system.h:889:3:  [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(OtherBuffer,"%u", info->nSockets);
data/pftools-3+dfsg/src/C/include/system.h:892: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(OtherBuffer,"%u", info->nComputeUnit);
data/pftools-3+dfsg/src/C/include/system.h:894: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(OtherBuffer,"%u", info->nCorePerComputeUnit);
data/pftools-3+dfsg/src/C/include/system.h:897:3:  [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(OtherBuffer, "%u", info->nCores);
data/pftools-3+dfsg/src/C/include/system.h:899:3:  [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(OtherBuffer, "%u", info->nOverallCores);
data/pftools-3+dfsg/src/C/include/system.h:904: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(OtherBuffer, "%u", info-<nNodes);
data/pftools-3+dfsg/src/C/include/system.h:924:44:  [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).
    unsigned int SocketId = (unsigned int) atoi(argv[1]);
data/pftools-3+dfsg/src/C/include/system.h:925:42:  [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).
    unsigned int CoreId = (unsigned int) atoi(argv[2]);
data/pftools-3+dfsg/src/C/include/system.h:926:44:  [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).
    unsigned int ThreadId = (unsigned int) atoi(argv[3]);
data/pftools-3+dfsg/src/C/prg/numa_threads.h:129: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).
  FILE * const inSequence = fopen(((struct numa_ThreadData*) _Data)->SequenceFileName, "r");
data/pftools-3+dfsg/src/C/prg/numa_threads.h:397:18:  [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).
  const int fd = open(((struct numa_NodeData*) _Data)->SequenceFileName,
data/pftools-3+dfsg/src/C/prg/pfsearch.c:279: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 buffer[128] __attribute__((aligned(16))); /* buffer to read affinity file mask */
data/pftools-3+dfsg/src/C/prg/pfsearch.c:379:23:  [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).
	  const int method = atoi(optarg);
data/pftools-3+dfsg/src/C/prg/pfsearch.c:397:36:  [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).
	OutputPrintWidth = (unsigned int) atoi(optarg);
data/pftools-3+dfsg/src/C/prg/pfsearch.c:400:9:  [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).
	Mode = atoi(optarg);
data/pftools-3+dfsg/src/C/prg/pfsearch.c:404:10:  [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).
	Level = atoi(optarg);
data/pftools-3+dfsg/src/C/prg/pfsearch.c:414:19:  [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).
	nCPUs = (size_t) atoi(optarg);
data/pftools-3+dfsg/src/C/prg/pfsearch.c:417:28:  [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).
	nCPUsHeuristic = (size_t) atoi(optarg);
data/pftools-3+dfsg/src/C/prg/pfsearch.c:444:20:  [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).
	HeuristicCutOff = atoi(optarg);
data/pftools-3+dfsg/src/C/prg/pfsearch.c:455:22:  [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).
	  nNodes = (size_t) atoi(optarg);
data/pftools-3+dfsg/src/C/prg/pfsearch.c:466:32:  [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).
	  nThreadsPerNodes = (size_t) atoi(optarg);
data/pftools-3+dfsg/src/C/prg/pfsearch.c:634: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).
    FILE* inIndex = fopen(ImportFileName, "rb");
data/pftools-3+dfsg/src/C/prg/pfsearch.c:665:16:  [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 *io = fopen(ExportFileName, "wb");
data/pftools-3+dfsg/src/C/prg/pfsearch.c:714:16:  [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* in = fopen(AffinityMaskFileName, "r");
data/pftools-3+dfsg/src/C/prg/pfsearch.c:800:8:  [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).
  fd = open(DB, O_RDONLY );
data/pftools-3+dfsg/src/C/prg/pfsearch.c:954:26:  [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* inSequence = fopen(DB, "r");
data/pftools-3+dfsg/src/C/prg/pfsearch.c:994:8:  [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(HeuristicScores, YesNoID, FASTA.SequenceCount*sizeof(unsigned int));
data/pftools-3+dfsg/src/C/prg/pfsearch.c:1022:26:  [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* inSequence = fopen(DB, "r");
data/pftools-3+dfsg/src/C/prg/pfsearch.c:1121:26:  [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* inSequence = fopen(DB, "r");
data/pftools-3+dfsg/src/C/prg/pfsearch.c:1186:26:  [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* inSequence = fopen(DB, "r");
data/pftools-3+dfsg/src/C/prg/pfsearch.c:1428:2:  [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(SeqIDptr, YesNoID[i], Shares[i]*sizeof(unsigned int));
data/pftools-3+dfsg/src/C/prg/pfsearch.c:1448:2:  [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(YesNoID[i], SeqIDptr, datasize*sizeof(unsigned int));
data/pftools-3+dfsg/src/C/prg/pfsearch.c:1453: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(YesNoID[nNodes-1], SeqIDptr, (nHeuristicPassed - (nNodes-1)*datasize)*sizeof(unsigned int));
data/pftools-3+dfsg/src/C/prg/pfsearch.c:1490:2:  [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(SeqIDptr, YesNoID[i], Shares[i]*sizeof(unsigned int));
data/pftools-3+dfsg/src/C/prg/pfsearch.c:1510:2:  [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(YesNoID[i], SeqIDptr, datasize*sizeof(unsigned int));
data/pftools-3+dfsg/src/C/prg/pfsearch.c:1515: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(YesNoID[nNodes-1], SeqIDptr, (nFilterPassed - (nNodes-1)*datasize)*sizeof(unsigned int));
data/pftools-3+dfsg/src/C/prg/testHeuristic.c:60:22:  [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* inSequence = fopen(((struct ThreadData*) _Data)->SequenceFileName, "r");
data/pftools-3+dfsg/src/C/prg/testHeuristic.c:123:22:  [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* inSequence = fopen(((struct ThreadData*) _Data)->SequenceFileName, "r");
data/pftools-3+dfsg/src/C/prg/testHeuristic.c:223:22:  [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* inSequence = fopen(argv[2], "r");
data/pftools-3+dfsg/src/C/prg/testHeuristic.c:250:36:  [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).
  const size_t nCPUs = argc == 4 ? atoi(argv[3]) : (size_t) sysconf(_SC_NPROCESSORS_CONF);
data/pftools-3+dfsg/src/C/prg/testHeuristic.c:346:22:  [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* inSequence = fopen(argv[2], "r");
data/pftools-3+dfsg/src/C/prg/testHeuristic.c:347: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 Buffer[256] __attribute__((aligned(16)));
data/pftools-3+dfsg/src/C/prg/testHeuristicMatchDeletion.c:7: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 LINE[256];
data/pftools-3+dfsg/src/C/prg/testHeuristicMatchDeletion.c:55:2:  [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(cptr, "%i,%i ", MatchLine[alpha], Minimum);
data/pftools-3+dfsg/src/C/prg/testXali1.c:64:22:  [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* inSequence = fopen(((struct ThreadData*) _Data)->SequenceFileName, "r");
data/pftools-3+dfsg/src/C/prg/testXali1.c:110:22:  [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* inSequence = fopen(((struct ThreadData*) _Data)->SequenceFileName, "r");
data/pftools-3+dfsg/src/C/prg/testXali1.c:157:22:  [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* inSequence = fopen(((struct ThreadData*) _Data)->SequenceFileName, "r");
data/pftools-3+dfsg/src/C/prg/testXali1.c:205:22:  [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* inSequence = fopen(((struct ThreadData*) _Data)->SequenceFileName, "r");
data/pftools-3+dfsg/src/C/prg/testXali1.c:255:22:  [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* inSequence = fopen(((struct ThreadData*) _Data)->SequenceFileName, "r");
data/pftools-3+dfsg/src/C/prg/testXali1.c:399:22:  [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* inSequence = fopen(argv[2], "r");
data/pftools-3+dfsg/src/C/prg/testXali1.c:488:36:  [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).
  const size_t nCPUs = argc == 5 ? atoi(argv[4]) : (size_t) sysconf(_SC_NPROCESSORS_CONF);
data/pftools-3+dfsg/src/C/prg/testXali1.c:495:25:  [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).
  prf.HeuristicCutOff = atoi(argv[3]);
data/pftools-3+dfsg/src/C/prg/threads.h:31:22:  [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* inSequence = fopen(((struct ThreadData*) _Data)->SequenceFileName, "r");
data/pftools-3+dfsg/src/C/prg/threads.h:91:22:  [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* inSequence = fopen(((struct ThreadData*) _Data)->SequenceFileName, "r");
data/pftools-3+dfsg/src/C/prg/threads.h:151:22:  [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* inSequence = fopen(((struct ThreadData*) _Data)->SequenceFileName, "r");
data/pftools-3+dfsg/src/C/prg/threads.h:238:22:  [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* inSequence = fopen(((struct ThreadData*) _Data)->SequenceFileName, "r");
data/pftools-3+dfsg/src/C/utils/ReadSequence.c:26: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 Buffer[BUFFER_SIZE] __attribute__((aligned(16)));
data/pftools-3+dfsg/src/C/utils/ReadSequence.c:36:30:  [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).
  const int FileDescriptor = open(FileName, O_RDONLY);
data/pftools-3+dfsg/src/C/utils/ReadSequence.c:260: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 Buffer[2048] __attribute__((aligned(16)));
data/pftools-3+dfsg/src/C/utils/ReadSequence.c:276:34:  [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).
      const int index = (size_t) atoi(argv[2]);
data/pftools-3+dfsg/src/C/utils/ReadSequence.c:280: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).
        FILE* const out = fopen(Buffer, "w");
data/pftools-3+dfsg/src/C/utils/ReadSequence.c:281: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).
        FILE* const in  = fopen(argv[1], "r");
data/pftools-3+dfsg/src/C/utils/ReadSequence.c:304:26:  [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* const in = fopen(argv[1], "r");
data/pftools-3+dfsg/src/C/utils/io.c:28: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 * keywords[32];
data/pftools-3+dfsg/src/C/utils/io.c:29: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 * values[32];
data/pftools-3+dfsg/src/C/utils/io.c:34: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 previousSubCommand[SUB_COMMAND_MAX_SIZE];
data/pftools-3+dfsg/src/C/utils/io.c:317: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 currentLine[PROFILE_MAX_LINE_SIZE] __attribute__((aligned(16)));
data/pftools-3+dfsg/src/C/utils/io.c:344: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).
  FILE* prfStream = fopen(FileName,"r");
data/pftools-3+dfsg/src/C/utils/io.c:365:3:  [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(prf->DisjointData.CDIS[0], "UNIQUE\0");
data/pftools-3+dfsg/src/C/utils/io.c:366:3:  [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(prf->DisjointData.CDIS[1], "PROTECT\0");
data/pftools-3+dfsg/src/C/utils/io.c:373:3:  [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(prf->NormalizationData.CNOR[0], "LINEAR\0");
data/pftools-3+dfsg/src/C/utils/io.c:374:3:  [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(prf->NormalizationData.CNOR[1], "GLE_ZSCORE\0");
data/pftools-3+dfsg/src/C/utils/io.c:375:3:  [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(prf->NormalizationData.CNOR[2], "GLE_ZSCAVE\0");
data/pftools-3+dfsg/src/C/utils/io.c:444:31:  [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).
            Length = (size_t) atoi(AnalyzedLine.values[keys]);
data/pftools-3+dfsg/src/C/utils/io.c:452: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(&(prf->Scores), &WorkingScores, sizeof(union Scores));
data/pftools-3+dfsg/src/C/utils/io.c:478:28:  [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).
            djt->NDIP[0] = atoi(AnalyzedLine.values[keys]);
data/pftools-3+dfsg/src/C/utils/io.c:480:28:  [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).
            djt->NDIP[1] = atoi(AnalyzedLine.values[keys]);
data/pftools-3+dfsg/src/C/utils/io.c:506: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).
            nrmItem->NNOR = atoi(AnalyzedLine.values[keys]);
data/pftools-3+dfsg/src/C/utils/io.c:508: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).
            nrmItem->NNPR = atoi(AnalyzedLine.values[keys]);
data/pftools-3+dfsg/src/C/utils/io.c:534:39:  [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).
            register const int itmp = atoi(AnalyzedLine.values[keys]);
data/pftools-3+dfsg/src/C/utils/io.c:538:28:  [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).
            ctItem->ICUT = atoi(AnalyzedLine.values[keys]);
data/pftools-3+dfsg/src/C/utils/io.c:540:43:  [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).
            ctItem->HCUT = (unsigned int) atoi(AnalyzedLine.values[keys]);
data/pftools-3+dfsg/src/C/utils/io.c:642:4:  [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(WorkingScores.Insertion.Alphabet,    DefaultScores.Insertion.Alphabet,    (Alphabet_Length+2)*sizeof(short int));
data/pftools-3+dfsg/src/C/utils/io.c:643:4:  [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(WorkingScores.Insertion.Boundaries,  DefaultScores.Insertion.Boundaries,  (INSERTION_BOUNDARIES_SIZE)*sizeof(short int));
data/pftools-3+dfsg/src/C/utils/io.c:644:4:  [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(WorkingScores.Insertion.Transitions, DefaultScores.Insertion.Transitions, sizeof(TransitionScores));
data/pftools-3+dfsg/src/C/utils/io.c:652:11:  [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(WorkingScores.Match.Alphabet, DefaultScores.Match.Alphabet, (Alphabet_Length+2)*sizeof(short int));
data/pftools-3+dfsg/src/C/utils/io.c:696:4:  [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(WorkingScores.Match.Alphabet, DefaultScores.Match.Alphabet, (Alphabet_Length+2)*sizeof(short int));
data/pftools-3+dfsg/src/C/utils/io.c:704:4:  [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(WorkingScores.Insertion.Alphabet,    DefaultScores.Insertion.Alphabet,    (Alphabet_Length+2)*sizeof(short int));
data/pftools-3+dfsg/src/C/utils/io.c:705:4:  [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(WorkingScores.Insertion.Boundaries,  DefaultScores.Insertion.Boundaries,  (INSERTION_BOUNDARIES_SIZE)*sizeof(short int));
data/pftools-3+dfsg/src/C/utils/io.c:706:4:  [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(WorkingScores.Insertion.Transitions, DefaultScores.Insertion.Transitions, sizeof(TransitionScores));
data/pftools-3+dfsg/src/C/utils/io.c:749: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(WorkingScores.Insertion.Alphabet, DefaultScores.Insertion.Alphabet, (Alphabet_Length+2)*sizeof(short int));
data/pftools-3+dfsg/src/C/utils/io.c:750: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(WorkingScores.Insertion.Boundaries,  DefaultScores.Insertion.Boundaries,  (INSERTION_BOUNDARIES_SIZE)*sizeof(short int));
data/pftools-3+dfsg/src/C/utils/io.c:751: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(WorkingScores.Insertion.Transitions, DefaultScores.Insertion.Transitions, sizeof(TransitionScores));
data/pftools-3+dfsg/src/C/utils/io.c:898: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(WorkingScores.Match.Alphabet, DefaultScores.Match.Alphabet, (Alphabet_Length+2)*sizeof(short int));
data/pftools-3+dfsg/src/C/include/system.h:195:21:  [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 tmp_size = strlen(uts_name.release);
data/pftools-3+dfsg/src/C/include/system.h:197:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(info->Release, uts_name.release, 64);
data/pftools-3+dfsg/src/C/include/system.h:209:11:  [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(pass->pw_gecos) > 0) {
data/pftools-3+dfsg/src/C/include/system.h:210:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(info->Username,pass->pw_gecos,64);
data/pftools-3+dfsg/src/C/include/system.h:212:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(info->Username,pass->pw_name,64);
data/pftools-3+dfsg/src/C/include/system.h:220: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).
  tmp_size = strlen(uts_name.nodename);
data/pftools-3+dfsg/src/C/include/system.h:222:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(info->Nodename, uts_name.nodename, 64);
data/pftools-3+dfsg/src/C/include/system.h:231: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).
  tmp_size = strlen(uts_name.machine);
data/pftools-3+dfsg/src/C/include/system.h:233:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(info->Architecture, uts_name.machine, 64);
data/pftools-3+dfsg/src/C/include/system.h:835:25:  [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 size_t Length = strlen(Template);
data/pftools-3+dfsg/src/C/prg/pfsearch.c:731: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).
	    const size_t tmp_size = strlen(buffer) - 1;
data/pftools-3+dfsg/src/C/prg/testHeuristicMatchDeletion.c:50: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).
    cptr = LINE + strlen(LINE);
data/pftools-3+dfsg/src/C/prg/testHeuristicMatchDeletion.c:56:16:  [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).
	cptr = LINE + strlen(LINE);
data/pftools-3+dfsg/src/C/utils/ReadSequence.c:34:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(Info->FileName, FileName, 256);
data/pftools-3+dfsg/src/C/utils/ReadSequence.c:70:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  size_t length       = read(FileDescriptor, Buffer, BUFFER_SIZE*sizeof(char));
data/pftools-3+dfsg/src/C/utils/ReadSequence.c:146:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      length = read(FileDescriptor, Buffer, BUFFER_SIZE*sizeof(char));
data/pftools-3+dfsg/src/C/utils/ReadSequence.c:219:52:  [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).
  unsigned short FileNameLength = (unsigned short) strlen(Info->FileName);
data/pftools-3+dfsg/src/C/utils/io.c:42:21:  [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 (Destination[strlen(Destination)-1] == '\n') Destination[strlen(Destination)-1] = '\0';
data/pftools-3+dfsg/src/C/utils/io.c:42:65:  [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 (Destination[strlen(Destination)-1] == '\n') Destination[strlen(Destination)-1] = '\0';
data/pftools-3+dfsg/src/C/utils/io.c:169:33:  [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 size_t LineSize       = strlen(currentLine);
data/pftools-3+dfsg/src/C/utils/io.c:414:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
          strncpy(prf->Date, AnalyzedLine.subcommand, 127);
data/pftools-3+dfsg/src/C/utils/io.c:416:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
          strncpy(prf->Description, AnalyzedLine.subcommand, 255);
data/pftools-3+dfsg/src/C/utils/io.c:425: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).
            Alphabet_Length = strlen(AnalyzedLine.values[keys]) - 2;
data/pftools-3+dfsg/src/C/utils/io.c:510:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(nrmItem->CNTX, AnalyzedLine.values[keys], 32);
data/pftools-3+dfsg/src/C/utils/io.c:542:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(ctItem->CCUT, AnalyzedLine.values[keys], 32);
data/pftools-3+dfsg/src/C/utils/io.c:545: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 uintptr_t MaxMemory = (uintptr_t) pos + strlen(pos);
data/pftools-3+dfsg/src/C/utils/io.c:562: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 uintptr_t MaxMemory = (uintptr_t) pos + strlen(pos);
data/pftools-3+dfsg/src/C/utils/io.c:595:61:  [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 uintptr_t MaxMemory = (uintptr_t) pos + strlen(pos);
data/pftools-3+dfsg/src/C/utils/io.c:617:67:  [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 uintptr_t MaxMemory = (uintptr_t) pos + strlen(pos);
data/pftools-3+dfsg/src/C/utils/io.c:669: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 uintptr_t MaxMemory = (uintptr_t) pos + strlen(pos);
data/pftools-3+dfsg/src/C/utils/io.c:721: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 uintptr_t MaxMemory = (uintptr_t) pos + strlen(pos);
data/pftools-3+dfsg/src/C/utils/io.c:1139: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).
  for (size_t i=0; i<strlen(Header)-5; ++i) fputc('-', stdout);
data/pftools-3+dfsg/src/C/utils/io.c:1176: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).
  for (size_t i=0; i<strlen(Header2)-5; ++i) fputc('-', stdout);
data/pftools-3+dfsg/src/C/utils/output.c:43:25:  [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).
    char * ac  = calloc(strlen(prf->AC_Number),sizeof(char));
data/pftools-3+dfsg/src/C/utils/output.c:150: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).
        unsigned int len    = strlen(AlignedSequence[i]);
data/pftools-3+dfsg/src/C/utils/output.c:154:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(buffer,AlignedSequence[i]+offset,OutputPrintWidth);
data/pftools-3+dfsg/src/C/utils/output.c:174:24:  [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).
    char * id = calloc(strlen(prf->AC_Number),sizeof(char));
data/pftools-3+dfsg/src/C/utils/output.c:180:25:  [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).
    char * ac  = calloc(strlen(prf->AC_Number),sizeof(char));
data/pftools-3+dfsg/src/C/utils/output.c:226: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).
        unsigned int len    = strlen(AlignedSequence[i]);
data/pftools-3+dfsg/src/C/utils/output.c:230:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(buffer,AlignedSequence[i]+offset,OutputPrintWidth);
data/pftools-3+dfsg/src/Fortran/io.c:8:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    *ch = getc(stdin);

ANALYSIS SUMMARY:

Hits = 201
Lines analyzed = 13909 in approximately 0.48 seconds (28717 lines/second)
Physical Source Lines of Code (SLOC) = 10086
Hits@level = [0] 344 [1]  41 [2] 137 [3]   3 [4]  20 [5]   0
Hits@level+ = [0+] 545 [1+] 201 [2+] 160 [3+]  23 [4+]  20 [5+]   0
Hits/KSLOC@level+ = [0+] 54.0353 [1+] 19.9286 [2+] 15.8636 [3+] 2.28039 [4+] 1.98295 [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.