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/prank-0.0.170427+dfsg/src/boolmatrix.cpp
Examining data/prank-0.0.170427+dfsg/src/translatesequences.cpp
Examining data/prank-0.0.170427+dfsg/src/readalignment.h
Examining data/prank-0.0.170427+dfsg/src/sequence.h
Examining data/prank-0.0.170427+dfsg/src/ancestralsequence.h
Examining data/prank-0.0.170427+dfsg/src/guidetree.h
Examining data/prank-0.0.170427+dfsg/src/terminalsequence.h
Examining data/prank-0.0.170427+dfsg/src/site.cpp
Examining data/prank-0.0.170427+dfsg/src/hmmodel.cpp
Examining data/prank-0.0.170427+dfsg/src/eigen.h
Examining data/prank-0.0.170427+dfsg/src/ancestralsequence.cpp
Examining data/prank-0.0.170427+dfsg/src/prank.cpp
Examining data/prank-0.0.170427+dfsg/src/prank.h
Examining data/prank-0.0.170427+dfsg/src/readalignment.cpp
Examining data/prank-0.0.170427+dfsg/src/ancestralnode.cpp
Examining data/prank-0.0.170427+dfsg/src/sequence.cpp
Examining data/prank-0.0.170427+dfsg/src/phylomatchscore.cpp
Examining data/prank-0.0.170427+dfsg/src/progressivealignment.h
Examining data/prank-0.0.170427+dfsg/src/postprobability.cpp
Examining data/prank-0.0.170427+dfsg/src/exonerate_reads.h
Examining data/prank-0.0.170427+dfsg/src/mafft_alignment.h
Examining data/prank-0.0.170427+dfsg/src/translatesequences.h
Examining data/prank-0.0.170427+dfsg/src/treenode.h
Examining data/prank-0.0.170427+dfsg/src/bppancestors.h
Examining data/prank-0.0.170427+dfsg/src/pwhirschberg.cpp
Examining data/prank-0.0.170427+dfsg/src/hmmodel.h
Examining data/prank-0.0.170427+dfsg/src/exonerate_reads.cpp
Examining data/prank-0.0.170427+dfsg/src/flmatrix.h
Examining data/prank-0.0.170427+dfsg/src/site.h
Examining data/prank-0.0.170427+dfsg/src/phylomatchscore.h
Examining data/prank-0.0.170427+dfsg/src/fullprobability.cpp
Examining data/prank-0.0.170427+dfsg/src/pwsite.h
Examining data/prank-0.0.170427+dfsg/src/ancestralnode.h
Examining data/prank-0.0.170427+dfsg/src/terminalsequence.cpp
Examining data/prank-0.0.170427+dfsg/src/intmatrix.h
Examining data/prank-0.0.170427+dfsg/src/flmatrix.cpp
Examining data/prank-0.0.170427+dfsg/src/progressivealignment.cpp
Examining data/prank-0.0.170427+dfsg/src/readfile.h
Examining data/prank-0.0.170427+dfsg/src/boolmatrix.h
Examining data/prank-0.0.170427+dfsg/src/readfile.cpp
Examining data/prank-0.0.170427+dfsg/src/writefile.h
Examining data/prank-0.0.170427+dfsg/src/node.h
Examining data/prank-0.0.170427+dfsg/src/bppancestors.cpp
Examining data/prank-0.0.170427+dfsg/src/hirschberg.h
Examining data/prank-0.0.170427+dfsg/src/readnewick.h
Examining data/prank-0.0.170427+dfsg/src/node.cpp
Examining data/prank-0.0.170427+dfsg/src/check_version.cpp
Examining data/prank-0.0.170427+dfsg/src/fullprobability.h
Examining data/prank-0.0.170427+dfsg/src/eigen.cpp
Examining data/prank-0.0.170427+dfsg/src/dbmatrix.cpp
Examining data/prank-0.0.170427+dfsg/src/check_version.h
Examining data/prank-0.0.170427+dfsg/src/treenode.cpp
Examining data/prank-0.0.170427+dfsg/src/terminalnode.cpp
Examining data/prank-0.0.170427+dfsg/src/postprobability.h
Examining data/prank-0.0.170427+dfsg/src/pwhirschberg.h
Examining data/prank-0.0.170427+dfsg/src/mafft_alignment.cpp
Examining data/prank-0.0.170427+dfsg/src/config.h
Examining data/prank-0.0.170427+dfsg/src/readnewick.cpp
Examining data/prank-0.0.170427+dfsg/src/characterprobability.cpp
Examining data/prank-0.0.170427+dfsg/src/terminalnode.h
Examining data/prank-0.0.170427+dfsg/src/writefile.cpp
Examining data/prank-0.0.170427+dfsg/src/characterprobability.h
Examining data/prank-0.0.170427+dfsg/src/intmatrix.cpp
Examining data/prank-0.0.170427+dfsg/src/pwsite.cpp
Examining data/prank-0.0.170427+dfsg/src/dbmatrix.h
Examining data/prank-0.0.170427+dfsg/src/hirschberg.cpp
Examining data/prank-0.0.170427+dfsg/src/guidetree.cpp

FINAL RESULTS:

data/prank-0.0.170427+dfsg/src/bppancestors.cpp:48:18:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
    int length = readlink("/proc/self/exe",path,200-1);
data/prank-0.0.170427+dfsg/src/bppancestors.cpp:73:18:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
    int length = readlink("/proc/self/exe",path,200-1);
data/prank-0.0.170427+dfsg/src/exonerate_reads.cpp:32:18:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
    int length = readlink("/proc/self/exe",path,200-1);
data/prank-0.0.170427+dfsg/src/exonerate_reads.cpp:57:22:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
        int length = readlink("/proc/self/exe",path,200-1);
data/prank-0.0.170427+dfsg/src/mafft_alignment.cpp:24:18:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
    int length = readlink("/proc/self/exe",path,200-1);
data/prank-0.0.170427+dfsg/src/mafft_alignment.cpp:48:18:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
    int length = readlink("/proc/self/exe",path,200-1);
data/prank-0.0.170427+dfsg/src/bppancestors.cpp:55:18:  [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.
    int status = system(epath.c_str());
data/prank-0.0.170427+dfsg/src/bppancestors.cpp:82:18:  [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.
    int status = system(epath.c_str());
data/prank-0.0.170427+dfsg/src/bppancestors.cpp:88:14:  [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.
    status = system("bppancestor >/dev/null 2>/dev/null");
data/prank-0.0.170427+dfsg/src/bppancestors.cpp:235:27:  [4] (shell) popen:
  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.
    if ( !(fpipe = (FILE*)popen(command.str().c_str(),"r")) )
data/prank-0.0.170427+dfsg/src/exonerate_reads.cpp:39:14:  [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.
    status = system(epath.c_str());
data/prank-0.0.170427+dfsg/src/exonerate_reads.cpp:67:18:  [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.
        status = system(epath.c_str());
data/prank-0.0.170427+dfsg/src/exonerate_reads.cpp:78:14:  [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.
    status = system("`exonerate  >/dev/null 2>/dev/null`");
data/prank-0.0.170427+dfsg/src/exonerate_reads.cpp:206:27:  [4] (shell) popen:
  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.
    if ( !(fpipe = (FILE*)popen(command.str().c_str(),"r")) )
data/prank-0.0.170427+dfsg/src/mafft_alignment.cpp:31:18:  [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.
    int status = system(epath.c_str());
data/prank-0.0.170427+dfsg/src/mafft_alignment.cpp:57:18:  [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.
    int status = system(epath.c_str());
data/prank-0.0.170427+dfsg/src/mafft_alignment.cpp:63:14:  [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.
    status = system("mafft -h >/dev/null 2>/dev/null");
data/prank-0.0.170427+dfsg/src/mafft_alignment.cpp:116:27:  [4] (shell) popen:
  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.
    if ( !(fpipe = (FILE*)popen(command.str().c_str(),"r")) )
data/prank-0.0.170427+dfsg/src/mafft_alignment.cpp:177:17:  [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.
        int i = system(command.str().c_str());
data/prank-0.0.170427+dfsg/src/prank.cpp:67:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       sprintf(tmp_dir, "%s", mktemplate);
data/prank-0.0.170427+dfsg/src/prank.cpp:71:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       sprintf(tmp_dir, "%s/%s", tmpPath, mktemplate); 
data/prank-0.0.170427+dfsg/src/hirschberg.cpp:3808:9:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        srand(random_seed);
data/prank-0.0.170427+dfsg/src/hirschberg.cpp:3820:9:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        srand(random_seed);
data/prank-0.0.170427+dfsg/src/hirschberg.h:248:49:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    void setRandomSeed(int i) {random_seed = i; srand(random_seed);}
data/prank-0.0.170427+dfsg/src/prank.cpp:53:21:  [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.
     if( (tmpPath = getenv("TMPDIR")) == NULL)
data/prank-0.0.170427+dfsg/src/prank.cpp:55:23:  [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.
       if( (tmpPath = getenv("TMP")) == NULL)
data/prank-0.0.170427+dfsg/src/prank.cpp:57:27:  [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.
           if( (tmpPath = getenv("TEMPDIR")) == NULL)
data/prank-0.0.170427+dfsg/src/prank.cpp:59:26:  [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.
               tmpPath = getenv("TEMP");
data/prank-0.0.170427+dfsg/src/prank.cpp:804:9:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        srand(rnd_seed);
data/prank-0.0.170427+dfsg/src/prank.cpp:806:9:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        srand(time(0));
data/prank-0.0.170427+dfsg/src/readalignment.cpp:1201:9:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        srand(random_seed);
data/prank-0.0.170427+dfsg/src/readalignment.cpp:1213:9:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        srand(random_seed);
data/prank-0.0.170427+dfsg/src/readalignment.h:116:49:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    void setRandomSeed(int i) {random_seed = i; srand(random_seed);}
data/prank-0.0.170427+dfsg/src/ancestralnode.cpp:278: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 prop[20];
data/prank-0.0.170427+dfsg/src/ancestralnode.cpp:279: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(prop,"(%i/%i)",alignedNodes,totalNodes-1);
data/prank-0.0.170427+dfsg/src/ancestralnode.cpp:659: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 prop[20];
data/prank-0.0.170427+dfsg/src/ancestralnode.cpp:660: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(prop,"(%i/%i)",alignedNodes,totalNodes-1);
data/prank-0.0.170427+dfsg/src/ancestralnode.cpp:1125: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 str[10];
data/prank-0.0.170427+dfsg/src/ancestralnode.cpp:1126: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(str,":%.5f",branchLength);
data/prank-0.0.170427+dfsg/src/ancestralnode.cpp:1142: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 str[10];
data/prank-0.0.170427+dfsg/src/ancestralnode.cpp:1143: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(str,":%.5f",branchLength);
data/prank-0.0.170427+dfsg/src/ancestralnode.cpp:1159: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 str[10];
data/prank-0.0.170427+dfsg/src/ancestralnode.cpp:1160: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(str,":%.5f",branchLength);
data/prank-0.0.170427+dfsg/src/ancestralnode.cpp:1176: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 str[10];
data/prank-0.0.170427+dfsg/src/ancestralnode.cpp:1177: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(str,":%.5f",branchLength);
data/prank-0.0.170427+dfsg/src/ancestralnode.cpp:1207: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 str[10];
data/prank-0.0.170427+dfsg/src/ancestralnode.cpp:1208: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(str,":%.5f",branchLength);
data/prank-0.0.170427+dfsg/src/ancestralnode.cpp:1234: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 str[10];
data/prank-0.0.170427+dfsg/src/ancestralnode.cpp:1235: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(str,":%.5f",branchLength);
data/prank-0.0.170427+dfsg/src/ancestralnode.cpp:1273: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 str[10];
data/prank-0.0.170427+dfsg/src/ancestralnode.cpp:1274: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(str,":%.5f",branchLength);
data/prank-0.0.170427+dfsg/src/ancestralsequence.cpp:596: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 str[10];
data/prank-0.0.170427+dfsg/src/ancestralsequence.cpp:604:17:  [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(str,"%.4f ",exp(logseqmat->g(j,i) ) );
data/prank-0.0.170427+dfsg/src/ancestralsequence.cpp:612:17:  [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(str,"%.4f ",seqmat->g(j,i) );
data/prank-0.0.170427+dfsg/src/bppancestors.cpp:47:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char path[200] = "";
data/prank-0.0.170427+dfsg/src/bppancestors.cpp:61:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char path[200] = "";
data/prank-0.0.170427+dfsg/src/bppancestors.cpp:122:19:  [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).
            f_tmp.open(f_name.str().c_str(), (ios::out) );
data/prank-0.0.170427+dfsg/src/bppancestors.cpp:124:19:  [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).
            t_tmp.open(t_name.str().c_str(), (ios::out) );
data/prank-0.0.170427+dfsg/src/bppancestors.cpp:126:19:  [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).
            o_tmp.open(o_name.str().c_str(), (ios::out) );
data/prank-0.0.170427+dfsg/src/bppancestors.cpp:171:14:  [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).
    f_output.open( f_name.str().c_str(), (ios::out) );
data/prank-0.0.170427+dfsg/src/bppancestors.cpp:210:14:  [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).
    t_output.open( t_name.str().c_str(), (ios::out) );
data/prank-0.0.170427+dfsg/src/bppancestors.cpp:233: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 line[256];
data/prank-0.0.170427+dfsg/src/check_version.cpp:23:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[BUFSIZ+1];
data/prank-0.0.170427+dfsg/src/config.h:185: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.
extern char tmp_dir[1000];
data/prank-0.0.170427+dfsg/src/exonerate_reads.cpp: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 path[200] = "";
data/prank-0.0.170427+dfsg/src/exonerate_reads.cpp:45:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char path[200] = "";
data/prank-0.0.170427+dfsg/src/exonerate_reads.cpp:135:22:  [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).
            q_output.open( q_name.str().c_str(), (ios::out) );
data/prank-0.0.170427+dfsg/src/exonerate_reads.cpp:136:22:  [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).
            t_output.open( t_name.str().c_str(), (ios::out) );
data/prank-0.0.170427+dfsg/src/exonerate_reads.cpp:214: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 line[256];
data/prank-0.0.170427+dfsg/src/guidetree.cpp:161:17:  [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 prop[20];
data/prank-0.0.170427+dfsg/src/guidetree.cpp:162:17:  [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(prop,"%i to %i",i,j);
data/prank-0.0.170427+dfsg/src/guidetree.cpp:165:17:  [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(prop,"%i",done*100/total);
data/prank-0.0.170427+dfsg/src/guidetree.cpp:430:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char dist[10];
data/prank-0.0.170427+dfsg/src/guidetree.cpp:431: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(dist,"%.5f",abs(distance->g(0,0)+distance->g(0,1)) );
data/prank-0.0.170427+dfsg/src/guidetree.cpp:436:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char dist[10];
data/prank-0.0.170427+dfsg/src/guidetree.cpp:437: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(dist,"%.5f",abs(distance->g(0,0)+distance->g(0,1))/2 );
data/prank-0.0.170427+dfsg/src/guidetree.cpp:547:13:  [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 l1[10];
data/prank-0.0.170427+dfsg/src/guidetree.cpp:548: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(l1,"%.5f",abs(brl1));
data/prank-0.0.170427+dfsg/src/guidetree.cpp:549:13:  [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 l2[10];
data/prank-0.0.170427+dfsg/src/guidetree.cpp:550: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(l2,"%.5f",abs(brl2));
data/prank-0.0.170427+dfsg/src/hirschberg.cpp:441:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char prop[10];
data/prank-0.0.170427+dfsg/src/hirschberg.cpp:442: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(prop,": %i",countSites*100/totalSites);
data/prank-0.0.170427+dfsg/src/hirschberg.cpp:870:13:  [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 prop[10];
data/prank-0.0.170427+dfsg/src/hirschberg.cpp:871: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(prop,": %i",countSites*100/totalSites);
data/prank-0.0.170427+dfsg/src/hmmodel.cpp:338: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(str,"state%i",l);
data/prank-0.0.170427+dfsg/src/hmmodel.cpp:1881:12:  [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).
    return atoi(row.substr(tmp,end).c_str());
data/prank-0.0.170427+dfsg/src/mafft_alignment.cpp:23:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char path[200] = "";
data/prank-0.0.170427+dfsg/src/mafft_alignment.cpp: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 path[200] = "";
data/prank-0.0.170427+dfsg/src/mafft_alignment.cpp:84:22:  [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).
            m_output.open( m_name.str().c_str(), (ios::out) );
data/prank-0.0.170427+dfsg/src/mafft_alignment.cpp:127: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 temp[256];
data/prank-0.0.170427+dfsg/src/node.cpp:109: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 num[10];
data/prank-0.0.170427+dfsg/src/node.cpp:110: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(num,"%.5f",tot);
data/prank-0.0.170427+dfsg/src/node.cpp:160:16:  [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).
    if (comma!=open || comma!=end)
data/prank-0.0.170427+dfsg/src/node.cpp:203:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char num0[10];
data/prank-0.0.170427+dfsg/src/node.cpp:204: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(num0,"%.5f",subDistances[0]);
data/prank-0.0.170427+dfsg/src/node.cpp:205:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char num1[10];
data/prank-0.0.170427+dfsg/src/node.cpp:206: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(num1,"%.5f",subDistances[1]);
data/prank-0.0.170427+dfsg/src/node.cpp:242:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char num0[10];
data/prank-0.0.170427+dfsg/src/node.cpp:243: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(num0,"%.5f",b0);
data/prank-0.0.170427+dfsg/src/node.cpp:244:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char num1[10];
data/prank-0.0.170427+dfsg/src/node.cpp:245: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(num1,"%.5f",b1);
data/prank-0.0.170427+dfsg/src/node.cpp:270:17:  [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 num0[10];
data/prank-0.0.170427+dfsg/src/node.cpp:271:17:  [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(num0,"%.5f",b0);
data/prank-0.0.170427+dfsg/src/node.cpp:272:17:  [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 num1[10];
data/prank-0.0.170427+dfsg/src/node.cpp:273:17:  [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(num1,"%.5f",b1);
data/prank-0.0.170427+dfsg/src/node.cpp:275:17:  [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 num[10];
data/prank-0.0.170427+dfsg/src/node.cpp:276:17:  [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(num,"%.5f",subDistances[1]);
data/prank-0.0.170427+dfsg/src/node.cpp:289:17:  [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 num0[10];
data/prank-0.0.170427+dfsg/src/node.cpp:290:17:  [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(num0,"%.5f",b0);
data/prank-0.0.170427+dfsg/src/node.cpp:291:17:  [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 num1[10];
data/prank-0.0.170427+dfsg/src/node.cpp:292:17:  [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(num1,"%.5f",b1);
data/prank-0.0.170427+dfsg/src/node.cpp:294:17:  [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 num[10];
data/prank-0.0.170427+dfsg/src/node.cpp:295:17:  [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(num,"%.5f",subDistances[0]);
data/prank-0.0.170427+dfsg/src/node.cpp:314:17:  [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 num0[10];
data/prank-0.0.170427+dfsg/src/node.cpp:315:17:  [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(num0,"%.5f",b0);
data/prank-0.0.170427+dfsg/src/node.cpp:316:17:  [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 num1[10];
data/prank-0.0.170427+dfsg/src/node.cpp:317:17:  [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(num1,"%.5f",b1);
data/prank-0.0.170427+dfsg/src/node.cpp:319:17:  [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 num[10];
data/prank-0.0.170427+dfsg/src/node.cpp:320:17:  [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(num,"%.5f",subDistances[1]);
data/prank-0.0.170427+dfsg/src/node.cpp:334:17:  [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 num0[10];
data/prank-0.0.170427+dfsg/src/node.cpp:335:17:  [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(num0,"%.5f",b0);
data/prank-0.0.170427+dfsg/src/node.cpp:336:17:  [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 num1[10];
data/prank-0.0.170427+dfsg/src/node.cpp:337:17:  [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(num1,"%.5f",b1);
data/prank-0.0.170427+dfsg/src/node.cpp:339:17:  [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 num[10];
data/prank-0.0.170427+dfsg/src/node.cpp:340:17:  [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(num,"%.5f",subDistances[0]);
data/prank-0.0.170427+dfsg/src/node.cpp:447:17:  [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).
            if (open<=0)
data/prank-0.0.170427+dfsg/src/prank.cpp:35: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 tmp_dir[1000] = "";
data/prank-0.0.170427+dfsg/src/prank.cpp:118:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            NOISE = atoi(string(argv[i]).substr(7).c_str());
data/prank-0.0.170427+dfsg/src/prank.cpp:145: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).
                NOISE = atoi(string(argv[i]).substr(7).c_str());
data/prank-0.0.170427+dfsg/src/prank.cpp:336: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).
                reportLimit = atoi(string(argv[i]).substr(4).c_str());
data/prank-0.0.170427+dfsg/src/prank.cpp:521:30:  [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).
                iterations = atoi(s.substr(9).c_str());
data/prank-0.0.170427+dfsg/src/prank.cpp:551: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).
                rnd_seed = atoi(string(argv[i]).substr(6).c_str());
data/prank-0.0.170427+dfsg/src/prank.cpp:684: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).
                HBW = atoi(string(argv[i]).substr(5).c_str());
data/prank-0.0.170427+dfsg/src/prank.cpp:690: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).
                FBW = atoi(string(argv[i]).substr(5).c_str());
data/prank-0.0.170427+dfsg/src/prank.cpp:710: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).
                anchSkipDist = atoi(string(argv[i]).substr(12).c_str());
data/prank-0.0.170427+dfsg/src/prank.cpp:716: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).
                minAnchDist = atoi(string(argv[i]).substr(6).c_str());
data/prank-0.0.170427+dfsg/src/prank.cpp:722: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).
                anchSkipDist = atoi(string(argv[i]).substr(7).c_str());
data/prank-0.0.170427+dfsg/src/prank.cpp:728: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).
                anchDropDist = atoi(string(argv[i]).substr(7).c_str());
data/prank-0.0.170427+dfsg/src/prank.cpp:746: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).
                missingLimit = atoi(string(argv[i]).substr(11).c_str());
data/prank-0.0.170427+dfsg/src/readalignment.cpp:194:13:  [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 prop[10];
data/prank-0.0.170427+dfsg/src/readalignment.cpp:195: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(prop,": %i",countSites*100/totalSites);
data/prank-0.0.170427+dfsg/src/readalignment.cpp:1124:13:  [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 prop[10];
data/prank-0.0.170427+dfsg/src/readalignment.cpp:1125: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(prop,": %i",countSites*100/totalSites);
data/prank-0.0.170427+dfsg/src/readnewick.cpp:84:9:  [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).
    if (open!=end)
data/prank-0.0.170427+dfsg/src/readnewick.cpp:86:42:  [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).
        cout<<"brackets do not match: "<<open<<" opening and "<<end<<" closing!"<<endl;
data/prank-0.0.170427+dfsg/src/readnewick.cpp:121:21:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    else if (comma==open && comma==end)
data/prank-0.0.170427+dfsg/src/readnewick.cpp:127:56:  [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).
        cout<<"Problem with the guidetee: brackets ("<<open<<","<<end<<") and commas ("<<comma<<") don't match)"<<endl<<endl;
data/prank-0.0.170427+dfsg/src/terminalnode.cpp:114:17:  [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).
    int index = atoi(nodeName.c_str());
data/prank-0.0.170427+dfsg/src/terminalnode.cpp:175: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 str[25];
data/prank-0.0.170427+dfsg/src/terminalnode.cpp:176: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(str,"seq%i:%.5f",*sInd,branchLength);
data/prank-0.0.170427+dfsg/src/terminalnode.cpp:186: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 str[10];
data/prank-0.0.170427+dfsg/src/terminalnode.cpp:187: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(str,":%.5f",branchLength);
data/prank-0.0.170427+dfsg/src/terminalnode.cpp:196: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 str[10];
data/prank-0.0.170427+dfsg/src/terminalnode.cpp:197: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(str,":%.5f",branchLength);
data/prank-0.0.170427+dfsg/src/check_version.cpp:53: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).
    while (sent < (int)strlen(get))
data/prank-0.0.170427+dfsg/src/check_version.cpp:55: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).
        tmpres = send(sock, get+sent, strlen(get)-sent, 0);

ANALYSIS SUMMARY:

Hits = 156
Lines analyzed = 31664 in approximately 0.70 seconds (45263 lines/second)
Physical Source Lines of Code (SLOC) = 24023
Hits@level = [0]   4 [1]   2 [2] 121 [3]  12 [4]  15 [5]   6
Hits@level+ = [0+] 160 [1+] 156 [2+] 154 [3+]  33 [4+]  21 [5+]   6
Hits/KSLOC@level+ = [0+] 6.66028 [1+] 6.49378 [2+] 6.41052 [3+] 1.37368 [4+] 0.874162 [5+] 0.249761
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.