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/btag-1.1.3/src/TitleLocalizationHandler.h
Examining data/btag-1.1.3/src/SimpleCapitalizationFilter.h
Examining data/btag-1.1.3/src/SimpleCapitalizationFilter.cpp
Examining data/btag-1.1.3/src/RenamingFilter.h
Examining data/btag-1.1.3/src/InteractiveTagger.cpp
Examining data/btag-1.1.3/src/BasicStringFilter.cpp
Examining data/btag-1.1.3/src/TitleLocalizationHandler.cpp
Examining data/btag-1.1.3/src/ConservativeRenamingFilter.h
Examining data/btag-1.1.3/src/wide_string_cast.h
Examining data/btag-1.1.3/src/StandardConsole.cpp
Examining data/btag-1.1.3/src/validators.h
Examining data/btag-1.1.3/src/InteractiveTagger.h
Examining data/btag-1.1.3/src/CapitalizationFilter.h
Examining data/btag-1.1.3/src/EnglishTitleLocalizationHandler.cpp
Examining data/btag-1.1.3/src/InteractiveTerminal.h
Examining data/btag-1.1.3/src/ConfirmationHandler.h
Examining data/btag-1.1.3/src/ConfirmationHandler.cpp
Examining data/btag-1.1.3/src/SpanishTitleLocalizationHandler.h
Examining data/btag-1.1.3/src/EnglishTitleLocalizationHandler.h
Examining data/btag-1.1.3/src/RenamingFilter.cpp
Examining data/btag-1.1.3/src/StandardConsole.h
Examining data/btag-1.1.3/src/SpanishTitleLocalizationHandler.cpp
Examining data/btag-1.1.3/src/TitleCapitalizationFilter.cpp
Examining data/btag-1.1.3/src/BasicStringFilter.h
Examining data/btag-1.1.3/src/UnixRenamingFilter.h
Examining data/btag-1.1.3/src/main.cpp
Examining data/btag-1.1.3/src/TitleCapitalizationFilter.h
Examining data/btag-1.1.3/tests/english_titles.cpp
Examining data/btag-1.1.3/tests/titles_base.h
Examining data/btag-1.1.3/tests/spanish_titles.cpp
Examining data/btag-1.1.3/tests/titles_base.cpp

FINAL RESULTS:

data/btag-1.1.3/src/InteractiveTagger.cpp:53:27:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
        char *real_path = realpath(paths[i], NULL);
data/btag-1.1.3/src/InteractiveTagger.cpp:288:27:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
        char *real_path = realpath(it->path().c_str(), NULL);
data/btag-1.1.3/src/main.cpp:77:31:  [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 *locale_name = getenv("LANG");
data/btag-1.1.3/src/main.cpp:110: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.
    while ((opt = getopt_long(argc, argv, "Dd:i:f:o:hn:r:t:", long_options, NULL)) != -1) {

ANALYSIS SUMMARY:

Hits = 4
Lines analyzed = 1946 in approximately 0.07 seconds (26333 lines/second)
Physical Source Lines of Code (SLOC) = 1353
Hits@level = [0]   0 [1]   0 [2]   0 [3]   4 [4]   0 [5]   0
Hits@level+ = [0+]   4 [1+]   4 [2+]   4 [3+]   4 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 2.95639 [1+] 2.95639 [2+] 2.95639 [3+] 2.95639 [4+]   0 [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.