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/mecab-0.996/swig/version.h
Examining data/mecab-0.996/src/nbest_generator.cpp
Examining data/mecab-0.996/src/libmecab.cpp
Examining data/mecab-0.996/src/dictionary_compiler.cpp
Examining data/mecab-0.996/src/param.cpp
Examining data/mecab-0.996/src/string_buffer.cpp
Examining data/mecab-0.996/src/tokenizer.cpp
Examining data/mecab-0.996/src/ucstable.h
Examining data/mecab-0.996/src/eval.cpp
Examining data/mecab-0.996/src/ucs.h
Examining data/mecab-0.996/src/dictionary.h
Examining data/mecab-0.996/src/learner_tagger.cpp
Examining data/mecab-0.996/src/dictionary_rewriter.h
Examining data/mecab-0.996/src/utils.h
Examining data/mecab-0.996/src/mecab.h
Examining data/mecab-0.996/src/learner_node.h
Examining data/mecab-0.996/src/scoped_ptr.h
Examining data/mecab-0.996/src/feature_index.h
Examining data/mecab-0.996/src/common.h
Examining data/mecab-0.996/src/viterbi.h
Examining data/mecab-0.996/src/mecab-test-gen.cpp
Examining data/mecab-0.996/src/mecab-dict-index.cpp
Examining data/mecab-0.996/src/connector.cpp
Examining data/mecab-0.996/src/darts.h
Examining data/mecab-0.996/src/winmain.h
Examining data/mecab-0.996/src/char_property.cpp
Examining data/mecab-0.996/src/viterbi.cpp
Examining data/mecab-0.996/src/mecab-dict-gen.cpp
Examining data/mecab-0.996/src/mmap.h
Examining data/mecab-0.996/src/char_property.h
Examining data/mecab-0.996/src/writer.h
Examining data/mecab-0.996/src/utils.cpp
Examining data/mecab-0.996/src/iconv_utils.cpp
Examining data/mecab-0.996/src/feature_index.cpp
Examining data/mecab-0.996/src/context_id.cpp
Examining data/mecab-0.996/src/context_id.h
Examining data/mecab-0.996/src/freelist.h
Examining data/mecab-0.996/src/learner_tagger.h
Examining data/mecab-0.996/src/connector.h
Examining data/mecab-0.996/src/lbfgs.cpp
Examining data/mecab-0.996/src/mecab-cost-train.cpp
Examining data/mecab-0.996/src/lbfgs.h
Examining data/mecab-0.996/src/nbest_generator.h
Examining data/mecab-0.996/src/mecab.cpp
Examining data/mecab-0.996/src/dictionary_rewriter.cpp
Examining data/mecab-0.996/src/iconv_utils.h
Examining data/mecab-0.996/src/param.h
Examining data/mecab-0.996/src/mecab-system-eval.cpp
Examining data/mecab-0.996/src/dictionary_generator.cpp
Examining data/mecab-0.996/src/string_buffer.h
Examining data/mecab-0.996/src/stream_wrapper.h
Examining data/mecab-0.996/src/tokenizer.h
Examining data/mecab-0.996/src/learner.cpp
Examining data/mecab-0.996/src/thread.h
Examining data/mecab-0.996/src/dictionary.cpp
Examining data/mecab-0.996/src/writer.cpp
Examining data/mecab-0.996/src/tagger.cpp
Examining data/mecab-0.996/example/example_lattice.cpp
Examining data/mecab-0.996/example/thread_test.cpp
Examining data/mecab-0.996/example/example_lattice.c
Examining data/mecab-0.996/example/example.c
Examining data/mecab-0.996/example/example.cpp

FINAL RESULTS:

data/mecab-0.996/src/common.h:28:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/mecab-0.996/src/common.h:28:18:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/mecab-0.996/src/scoped_ptr.h:84:10:  [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).
    std::strcpy(p, str.c_str());
data/mecab-0.996/src/scoped_ptr.h:90:10:  [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).
    std::strcpy(p, str);
data/mecab-0.996/src/utils.cpp:297: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.
    const char *homedir = getenv("HOME");
data/mecab-0.996/src/utils.cpp:309:25:  [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 *rcenv = getenv("MECABRC");
data/mecab-0.996/src/char_property.cpp:74:20:  [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).
bool CharProperty::open(const Param &param) {
data/mecab-0.996/src/char_property.cpp:77:10:  [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).
  return open(filename.c_str());
data/mecab-0.996/src/char_property.cpp:80:20:  [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).
bool CharProperty::open(const char *filename) {
data/mecab-0.996/src/char_property.cpp:82:23:  [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).
  CHECK_FALSE(cmmap_->open(filename, "r"));
data/mecab-0.996/src/char_property.cpp:195:24:  [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).
      c.invoke  = std::atoi(col[1]);
data/mecab-0.996/src/char_property.cpp:196:24:  [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).
      c.group   = std::atoi(col[2]);
data/mecab-0.996/src/char_property.cpp:197:24:  [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).
      c.length  = std::atoi(col[3]);
data/mecab-0.996/src/char_property.cpp:267:7:  [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[32];
data/mecab-0.996/src/char_property.h:28: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).
  bool open(const Param &);
data/mecab-0.996/src/char_property.h:29: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).
  bool open(const char*);
data/mecab-0.996/src/connector.cpp:16: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).
bool Connector::open(const Param &param) {
data/mecab-0.996/src/connector.cpp:19:10:  [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).
  return open(filename.c_str());
data/mecab-0.996/src/connector.cpp:22: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).
bool Connector::open(const char* filename,
data/mecab-0.996/src/connector.cpp:24:23:  [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).
  CHECK_FALSE(cmmap_->open(filename, mode))
data/mecab-0.996/src/connector.cpp:54: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 *column[2];
data/mecab-0.996/src/connector.cpp:59: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).
  lsize_ = std::atoi(column[0]);
data/mecab-0.996/src/connector.cpp:60: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).
  rsize_ = std::atoi(column[1]);
data/mecab-0.996/src/connector.cpp:76: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 *column[4];
data/mecab-0.996/src/connector.cpp:84:37:  [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 unsigned short lsize = std::atoi(column[0]);
data/mecab-0.996/src/connector.cpp:85:37:  [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 unsigned short rsize = std::atoi(column[1]);
data/mecab-0.996/src/connector.cpp:95:27:  [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 l = std::atoi(column[0]);
data/mecab-0.996/src/connector.cpp:96:27:  [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 r = std::atoi(column[1]);
data/mecab-0.996/src/connector.cpp:97:27:  [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    c = std::atoi(column[2]);
data/mecab-0.996/src/connector.h:27: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).
  bool open(const Param &param);
data/mecab-0.996/src/connector.h:53: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).
  bool open(const char *filename, const char *mode = "r");
data/mecab-0.996/src/context_id.cpp:21: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 *col[2];
data/mecab-0.996/src/context_id.cpp:32: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).
                 (pos, std::atoi(col[0])));
data/mecab-0.996/src/context_id.cpp:83: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).
bool ContextID::open(const char *lfile,
data/mecab-0.996/src/context_id.h:32: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).
  bool open(const char *lfile,
data/mecab-0.996/src/darts.h:303:7:  [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).
  int open(const char *file,
data/mecab-0.996/src/darts.h:307: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).
    std::FILE *fp = std::fopen(file, mode);
data/mecab-0.996/src/darts.h:333: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).
    std::FILE *fp = std::fopen(file, mode);
data/mecab-0.996/src/darts.h:347: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).
    std::FILE *fp  = std::fopen(file, mode);
data/mecab-0.996/src/darts.h:354: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 buf[8];
data/mecab-0.996/src/dictionary.cpp:31:15:  [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 std::atoi(str);
data/mecab-0.996/src/dictionary.cpp:76: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).
bool Dictionary::open(const char *file, const char *mode) {
data/mecab-0.996/src/dictionary.cpp:79:23:  [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).
  CHECK_FALSE(dmmap_->open(file, mode))
data/mecab-0.996/src/dictionary.cpp:165:26:  [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).
  CHECK_DIE(config_iconv.open(config_charset.c_str(), from.c_str()))
data/mecab-0.996/src/dictionary.cpp:168:12:  [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).
  rewriter.open(rewrite_file.c_str(), &config_iconv);
data/mecab-0.996/src/dictionary.cpp:169: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).
  CHECK_DIE(fi.open(param)) << "cannot open feature index";
data/mecab-0.996/src/dictionary.cpp:171: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).
  CHECK_DIE(property.open(param));
data/mecab-0.996/src/dictionary.cpp:175:15:  [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).
      !matrix.open(matrix_bin_file.c_str())) {
data/mecab-0.996/src/dictionary.cpp:180:7:  [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).
  cid.open(left_id_file.c_str(),
data/mecab-0.996/src/dictionary.cpp:200:7:  [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 *col[8];
data/mecab-0.996/src/dictionary.cpp:270: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).
  CHECK_DIE(iconv.open(from.c_str(), to.c_str()))
data/mecab-0.996/src/dictionary.cpp:274:26:  [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).
  CHECK_DIE(config_iconv.open(config_charset.c_str(), from.c_str()))
data/mecab-0.996/src/dictionary.cpp:285:15:  [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).
      !matrix.open(matrix_bin_file.c_str())) {
data/mecab-0.996/src/dictionary.cpp:291:10:  [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).
  posid->open(pos_id_file.c_str(), &config_iconv);
data/mecab-0.996/src/dictionary.cpp:314:7:  [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 *col[8];
data/mecab-0.996/src/dictionary.cpp:330:20:  [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).
          rewrite->open(rewrite_file.c_str(), &config_iconv);
data/mecab-0.996/src/dictionary.cpp:332:25:  [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).
          CHECK_DIE(fi->open(param)) << "cannot open feature index";
data/mecab-0.996/src/dictionary.cpp:334:31:  [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).
          CHECK_DIE(property->open(param));
data/mecab-0.996/src/dictionary.cpp:344:20:  [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).
          rewrite->open(rewrite_file.c_str(), &config_iconv);
data/mecab-0.996/src/dictionary.cpp:353: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).
          cid->open(left_id_file.c_str(),
data/mecab-0.996/src/dictionary.cpp:494: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 charset[32];
data/mecab-0.996/src/dictionary.h:31: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).
  bool open(const char *filename, const char *mode = "r");
data/mecab-0.996/src/dictionary_compiler.cpp:58: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 (!param.open(argc, argv, long_options)) {
data/mecab-0.996/src/dictionary_generator.cpp:27: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).
  CHECK_DIE(mmap.open(src)) << mmap.what();
data/mecab-0.996/src/dictionary_generator.cpp:53: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 *col[8];
data/mecab-0.996/src/dictionary_generator.cpp:136: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 *col[8];
data/mecab-0.996/src/dictionary_generator.cpp:193: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 (!param.open(argc, argv, long_options)) {
data/mecab-0.996/src/dictionary_generator.cpp:218: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).
      CHECK_DIE(dic.open(DCONF(SYS_DIC_FILE), "r"));
data/mecab-0.996/src/dictionary_generator.cpp:224:24:  [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).
    CHECK_DIE(property.open(param));
data/mecab-0.996/src/dictionary_generator.cpp:239:20:  [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).
      CHECK_DIE(fi.open(param)) << "cannot open feature index";
data/mecab-0.996/src/dictionary_generator.cpp:243:25:  [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).
      CHECK_DIE(rewrite.open(DCONF(REWRITE_FILE)));
data/mecab-0.996/src/dictionary_rewriter.cpp:23: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 *col[3];
data/mecab-0.996/src/dictionary_rewriter.cpp:133:26:  [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).
bool DictionaryRewriter::open(const char *filename,
data/mecab-0.996/src/dictionary_rewriter.cpp:202: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).
bool POSIDGenerator::open(const char *filename,
data/mecab-0.996/src/dictionary_rewriter.cpp:214: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 *col[2];
data/mecab-0.996/src/dictionary_rewriter.cpp:240:15:  [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 std::atoi(tmp.c_str());
data/mecab-0.996/src/dictionary_rewriter.h:51: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).
  bool open(const char *filename,
data/mecab-0.996/src/dictionary_rewriter.h:69: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).
  bool open(const char *filename,
data/mecab-0.996/src/eval.cpp:29: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 *col[2];
data/mecab-0.996/src/eval.cpp:67: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).
      level->push_back(std::atoi(col[i]));
data/mecab-0.996/src/eval.cpp:77: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(buf.get(), "%4.4f(%d/%d) %4.4f(%d/%d) %4.4f\n",
data/mecab-0.996/src/eval.cpp:99:11:  [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).
    param.open(argc, argv, long_options);
data/mecab-0.996/src/eval.cpp:101: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 (!param.open(argc, argv, long_options)) {
data/mecab-0.996/src/eval.cpp:215:11:  [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).
    param.open(argc, argv, long_options);
data/mecab-0.996/src/eval.cpp:217: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 (!param.open(argc, argv, long_options)) {
data/mecab-0.996/src/eval.cpp:239: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 *col[2];
data/mecab-0.996/src/feature_index.cpp:84: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 *column[4];
data/mecab-0.996/src/feature_index.cpp:108:12:  [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).
  rewrite_.open(filename.c_str());
data/mecab-0.996/src/feature_index.cpp:113:27:  [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).
bool EncoderFeatureIndex::open(const Param &param) {
data/mecab-0.996/src/feature_index.cpp:117:27:  [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).
bool DecoderFeatureIndex::open(const Param &param) {
data/mecab-0.996/src/feature_index.cpp:158: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).
  CHECK_DIE(mmap_.open(modelfile.c_str())) << mmap_.what();
data/mecab-0.996/src/feature_index.cpp:543: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 *column[4];
data/mecab-0.996/src/feature_index.cpp:576: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).
  CHECK_DIE(iconv.open(from.c_str(), to.c_str()))
data/mecab-0.996/src/feature_index.cpp:594: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 charset_buf[32];
data/mecab-0.996/src/feature_index.cpp:627: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 *column[8];
data/mecab-0.996/src/feature_index.cpp:648: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).
  CHECK_DIE(iconv.open(model_charset.c_str(), dic_charset))
data/mecab-0.996/src/feature_index.h:26: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).
  virtual bool open(const Param &param) = 0;
data/mecab-0.996/src/feature_index.h:71: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).
  bool open(const Param &param);
data/mecab-0.996/src/feature_index.h:94: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).
  bool open(const Param &param);
data/mecab-0.996/src/iconv_utils.cpp:80:13:  [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).
bool Iconv::open(const char* from, const char* to) {
data/mecab-0.996/src/iconv_utils.cpp:141:29:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
  const size_t wide_len = ::MultiByteToWideChar(from_cp_, 0,
data/mecab-0.996/src/iconv_utils.cpp:154:9:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
  if (::MultiByteToWideChar(from_cp_, 0, str->c_str(), -1,
data/mecab-0.996/src/iconv_utils.cpp:161:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(const_cast<char *>(str->data()),
data/mecab-0.996/src/iconv_utils.h:35: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).
  bool open(const char *from, const char *to);
data/mecab-0.996/src/learner.cpp:76:25:  [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).
    CHECK_DIE(tokenizer.open(*param)) << "cannot open tokenizer";
data/mecab-0.996/src/learner.cpp:77:29:  [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).
    CHECK_DIE(feature_index.open(*param)) << "cannot open feature index";
data/mecab-0.996/src/learner.cpp:117:25:  [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).
      CHECK_DIE(tagger->open(&tokenizer,
data/mecab-0.996/src/learner.cpp:302: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 (!param.open(argc, argv, long_options)) {
data/mecab-0.996/src/learner_tagger.cpp:30:28:  [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).
bool EncoderLearnerTagger::open(Tokenizer<LearnerNode, LearnerPath> *tokenizer,
data/mecab-0.996/src/learner_tagger.cpp:44:28:  [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).
bool DecoderLearnerTagger::open(const Param &param) {
data/mecab-0.996/src/learner_tagger.cpp:53:25:  [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).
  CHECK_DIE(tokenizer_->open(param)) << tokenizer_->what();
data/mecab-0.996/src/learner_tagger.cpp:54:29:  [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).
  CHECK_DIE(feature_index_->open(param));
data/mecab-0.996/src/learner_tagger.cpp:62: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 *column[8];
data/mecab-0.996/src/learner_tagger.h:51: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).
  bool open(Tokenizer<LearnerNode, LearnerPath> *tokenzier,
data/mecab-0.996/src/learner_tagger.h:69: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).
  bool open(const Param &);
data/mecab-0.996/src/libmecab.cpp:85:10:  [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.
__thread char kErrorBuffer[kErrorBufferSize];
data/mecab-0.996/src/libmecab.cpp:87:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char kErrorBuffer[kErrorBufferSize];
data/mecab-0.996/src/mmap.h:90: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).
  bool open(const char *filename, const char *mode = "r") {
data/mecab-0.996/src/mmap.h:140: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).
  bool open(const char *filename, const char *mode = "r") {
data/mecab-0.996/src/mmap.h:152:25:  [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).
    CHECK_FALSE((fd = ::open(filename, flag | O_BINARY)) >= 0)
data/mecab-0.996/src/mmap.h:194: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).
        if ((fd2 = ::open(fileName.c_str(), O_RDWR)) >= 0) {
data/mecab-0.996/src/param.cpp:90:13:  [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).
bool Param::open(int argc, char **argv, const Option *opts) {
data/mecab-0.996/src/param.cpp:192:13:  [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).
bool Param::open(const char *arg, const Option *opts) {
data/mecab-0.996/src/param.cpp:207:10:  [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).
  return open(size, ptr, opts);
data/mecab-0.996/src/param.h:55: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).
  bool open(int argc,  char **argv, const Option *opt);
data/mecab-0.996/src/param.h:56: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).
  bool open(const char *arg,  const Option *opt);
data/mecab-0.996/src/string_buffer.cpp:31:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(new_ptr, ptr_, size_);
data/mecab-0.996/src/string_buffer.cpp:60:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(ptr_ + size_ , str, length);
data/mecab-0.996/src/string_buffer.h:15:24:  [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.
#define _ITOA(n)  do { char fbuf[64]; itoa(n, fbuf); return this->write(fbuf); } while (0)
data/mecab-0.996/src/string_buffer.h:16:24:  [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.
#define _UITOA(n) do { char fbuf[64]; uitoa(n, fbuf); return this->write(fbuf);} while (0)
data/mecab-0.996/src/string_buffer.h:17:24:  [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.
#define _DTOA(n)  do { char fbuf[64]; dtoa(n, fbuf); return this->write(fbuf); } while (0)
data/mecab-0.996/src/tagger.cpp:84: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).
  bool open(int argc, char **argv);
data/mecab-0.996/src/tagger.cpp:85: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).
  bool open(const char *arg);
data/mecab-0.996/src/tagger.cpp:86: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).
  bool open(const Param &param);
data/mecab-0.996/src/tagger.cpp:157:25:  [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).
  bool                  open(int argc, char **argv);
data/mecab-0.996/src/tagger.cpp:158:25:  [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).
  bool                  open(const char *arg);
data/mecab-0.996/src/tagger.cpp:159:25:  [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).
  bool                  open(const ModelImpl &model);
data/mecab-0.996/src/tagger.cpp:348: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).
bool ModelImpl::open(int argc, char **argv) {
data/mecab-0.996/src/tagger.cpp:350: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).
  if (!param.open(argc, argv, long_options) ||
data/mecab-0.996/src/tagger.cpp:355:10:  [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).
  return open(param);
data/mecab-0.996/src/tagger.cpp:358: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).
bool ModelImpl::open(const char *arg) {
data/mecab-0.996/src/tagger.cpp:360: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).
  if (!param.open(arg, long_options) ||
data/mecab-0.996/src/tagger.cpp:365:10:  [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).
  return open(param);
data/mecab-0.996/src/tagger.cpp:368: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).
bool ModelImpl::open(const Param &param) {
data/mecab-0.996/src/tagger.cpp:369: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 (!writer_->open(param) || !viterbi_->open(param)) {
data/mecab-0.996/src/tagger.cpp:369:43:  [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 (!writer_->open(param) || !viterbi_->open(param)) {
data/mecab-0.996/src/tagger.cpp:427: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 (!tagger->open(*this)) {
data/mecab-0.996/src/tagger.cpp:455: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).
bool TaggerImpl::open(int argc, char **argv) {
data/mecab-0.996/src/tagger.cpp:457: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 (!model_->open(argc, argv)) {
data/mecab-0.996/src/tagger.cpp:467: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).
bool TaggerImpl::open(const char *arg) {
data/mecab-0.996/src/tagger.cpp:469: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 (!model_->open(arg)) {
data/mecab-0.996/src/tagger.cpp:479: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).
bool TaggerImpl::open(const ModelImpl &model) {
data/mecab-0.996/src/tagger.cpp:812: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 *cols[2];
data/mecab-0.996/src/tagger.cpp:1051: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 (!tagger->open(argc, argv)) {
data/mecab-0.996/src/tagger.cpp:1061: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 (!tagger->open(argv)) {
data/mecab-0.996/src/tagger.cpp:1083:15:  [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 (!model->open(argc, argv)) {
data/mecab-0.996/src/tagger.cpp:1092:15:  [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 (!model->open(arg)) {
data/mecab-0.996/src/tagger.cpp:1140: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).
  if (!param.open(argc, argv, MeCab::long_options)) {
data/mecab-0.996/src/tagger.cpp:1166:15:  [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 (!model->open(param)) {
data/mecab-0.996/src/tokenizer.cpp:58:38:  [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).
template bool Tokenizer<Node, Path>::open(const Param &);
data/mecab-0.996/src/tokenizer.cpp:71:52:  [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).
template bool Tokenizer<LearnerNode, LearnerPath>::open(const Param &);
data/mecab-0.996/src/tokenizer.cpp:97:23:  [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).
bool Tokenizer<N, P>::open(const Param &param) {
data/mecab-0.996/src/tokenizer.cpp:102:23:  [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).
  CHECK_FALSE(unkdic_.open(create_filename
data/mecab-0.996/src/tokenizer.cpp:105:25:  [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).
  CHECK_FALSE(property_.open(param)) << property_.what();
data/mecab-0.996/src/tokenizer.cpp:109:23:  [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).
  CHECK_FALSE(sysdic->open
data/mecab-0.996/src/tokenizer.cpp:127: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).
      CHECK_FALSE(d->open(dicfile[i])) << d->what();
data/mecab-0.996/src/tokenizer.h:123: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).
  bool open(const Param &param);
data/mecab-0.996/src/utils.cpp:43:25:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
  int output_length = ::MultiByteToWideChar(CP_UTF8, 0,
data/mecab-0.996/src/utils.cpp:50:24:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
  const int result = ::MultiByteToWideChar(CP_UTF8, 0, input.c_str(), -1,
data/mecab-0.996/src/utils.cpp:537: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.
  std::memcpy(out, reinterpret_cast<char *>(&h1), 4);
data/mecab-0.996/src/utils.cpp:538: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.
  std::memcpy(out + 4, reinterpret_cast<char *>(&h2), 4);
data/mecab-0.996/src/utils.cpp:539: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.
  std::memcpy(out + 8, reinterpret_cast<char *>(&h3), 4);
data/mecab-0.996/src/utils.cpp:540: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.
  std::memcpy(out+ 12, reinterpret_cast<char *>(&h4), 4);
data/mecab-0.996/src/utils.h:47:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  std::sprintf(s, "%-16f", val);
data/mecab-0.996/src/utils.h:104: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(&value, r, sizeof(T));
data/mecab-0.996/src/viterbi.cpp:48:15:  [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).
bool Viterbi::open(const Param &param) {
data/mecab-0.996/src/viterbi.cpp:50:27:  [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).
  CHECK_FALSE(tokenizer_->open(param)) << tokenizer_->what();
data/mecab-0.996/src/viterbi.cpp:54:27:  [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).
  CHECK_FALSE(connector_->open(param)) << connector_->what();
data/mecab-0.996/src/viterbi.h:22: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).
  bool open(const Param &param);
data/mecab-0.996/src/winmain.h:14: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.
    argv_ = new char * [argc_];
data/mecab-0.996/src/winmain.h:18:9:  [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(argv_[i], arg.data(), arg.size());
data/mecab-0.996/src/writer.cpp:25: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).
bool Writer::open(const Param &param) {
data/mecab-0.996/src/writer.h:24: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).
  bool open(const Param &param);
data/mecab-0.996/src/char_property.cpp:29:18:  [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).
  CHECK_DIE(std::strlen(s) >= 3
data/mecab-0.996/src/char_property.cpp:149: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).
    if (std::strlen(line.get()) == 0 || line[0] == '#') {
data/mecab-0.996/src/char_property.cpp:269:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      std::strncpy(buf, it->c_str(), sizeof(buf) - 1);
data/mecab-0.996/src/darts.h:44:17:  [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).
  { return std::strlen(key); }
data/mecab-0.996/src/dictionary.cpp:28:20:  [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 (!str || std::strlen(str) == 0) {
data/mecab-0.996/src/dictionary.cpp:496:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  std::strncpy(charset, to.c_str(), 31);
data/mecab-0.996/src/dictionary_rewriter.cpp: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).
  size_t len = std::strlen(pat);
data/mecab-0.996/src/dictionary_rewriter.cpp:47:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    std::strncpy(buf.get(), pat + 1, buf.size());
data/mecab-0.996/src/dictionary_rewriter.cpp:67:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  std::strncpy(buf.get(), src, buf.size());
data/mecab-0.996/src/dictionary_rewriter.cpp:70:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  std::strncpy(buf.get(), dst, buf.size());
data/mecab-0.996/src/dictionary_rewriter.cpp:169:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  std::strncpy(buf.get(), feature.c_str(), buf.size() - 1);
data/mecab-0.996/src/dictionary_rewriter.cpp:232:18:  [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).
  CHECK_DIE(std::strlen(feature) < buf.size() - 1) << "too long feature";
data/mecab-0.996/src/dictionary_rewriter.cpp:233:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  std::strncpy(buf.get(), feature, buf.size() - 1);
data/mecab-0.996/src/eval.cpp:22:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  static bool read(std::istream *is,
data/mecab-0.996/src/eval.cpp:63:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    std::strncpy(buf.get(), level_str, buf.size());
data/mecab-0.996/src/eval.cpp:146:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if (!read(&ifs1, &r1, level) || !read(&ifs2, &r2, level))
data/mecab-0.996/src/eval.cpp:146:40:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if (!read(&ifs1, &r1, level) || !read(&ifs2, &r2, level))
data/mecab-0.996/src/feature_index.cpp:220: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 len = std::strlen(p);
data/mecab-0.996/src/feature_index.cpp:222:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  std::strncpy(q, p, len + 1);
data/mecab-0.996/src/feature_index.cpp:337:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  std::strncpy(ubuf.get(), ufeature, ubuf.size());
data/mecab-0.996/src/feature_index.cpp:389:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  std::strncpy(lbuf.get(),  rfeature, lbuf.size());
data/mecab-0.996/src/feature_index.cpp:390:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  std::strncpy(rbuf.get(),  lfeature, rbuf.size());
data/mecab-0.996/src/feature_index.cpp:438:45:  [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 uint64_t fp = fingerprint(key, std::strlen(key));
data/mecab-0.996/src/feature_index.cpp:548: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).
    if (std::strlen(buf.get()) == 0) {
data/mecab-0.996/src/feature_index.cpp:596:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  std::strncpy(charset_buf, to.c_str(), 31);
data/mecab-0.996/src/feature_index.cpp:632: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).
    if (std::strlen(buf.get()) == 0) {
data/mecab-0.996/src/learner.cpp:123:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      CHECK_DIE(tagger->read(&ifs, &observed));
data/mecab-0.996/src/learner_node.h:79:51:  [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 char *r1 = repeat_find_if(p1, p1 + std::strlen(p1), ',', size);
data/mecab-0.996/src/learner_node.h:80:51:  [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 char *r2 = repeat_find_if(p2, p2 + std::strlen(p2), ',', size);
data/mecab-0.996/src/learner_tagger.cpp:19: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 l = std::strlen(str);
data/mecab-0.996/src/learner_tagger.cpp:21:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  std::strncpy(r, str, l+1);
data/mecab-0.996/src/learner_tagger.cpp:59:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool EncoderLearnerTagger::read(std::istream *is,
data/mecab-0.996/src/learner_tagger.cpp:88:38:  [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).
      m->length  = m->rlength = std::strlen(column[0]);
data/mecab-0.996/src/learner_tagger.cpp:123:45:  [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).
      node->length   = node->rlength = std::strlen(corpus[i]->surface);
data/mecab-0.996/src/learner_tagger.cpp:185:17:  [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).
    pos += std::strlen(corpus[i]->surface);
data/mecab-0.996/src/learner_tagger.cpp:318:15:  [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).
  len_ = std::strlen(begin_);
data/mecab-0.996/src/learner_tagger.h:55:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  bool read(std::istream *, std::vector<double> *);
data/mecab-0.996/src/libmecab.cpp:38:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(data, str, kErrorBufferSize - 1);
data/mecab-0.996/src/libmecab.cpp:96:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(kErrorBuffer, str, kErrorBufferSize - 1);
data/mecab-0.996/src/mmap.h:172:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    CHECK_FALSE(::read(fd, text, length) >= 0)
data/mecab-0.996/src/param.cpp:30: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).
    size_t l = 1 + std::strlen(opts[i].name);
data/mecab-0.996/src/param.cpp:32: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).
      l += (1 + std::strlen(opts[i].arg_description));
data/mecab-0.996/src/param.cpp:37: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 l = std::strlen(opts[i].name);
data/mecab-0.996/src/param.cpp:39: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).
      l += (1 + std::strlen(opts[i].arg_description));
data/mecab-0.996/src/param.cpp:124: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).
          size_t nlen = std::strlen(opts[i].name);
data/mecab-0.996/src/param.cpp:194:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  std::strncpy(str.get(), arg, str.size());
data/mecab-0.996/src/scoped_ptr.h:89:29:  [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 *p = new char[std::strlen(str) + 1];
data/mecab-0.996/src/string_buffer.cpp:55:32:  [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).
  return this->write(str, std::strlen(str));
data/mecab-0.996/src/tagger.cpp:562:26:  [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).
  return parse(str, std::strlen(str));
data/mecab-0.996/src/tagger.cpp:599:32:  [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).
  return parseToNode(str, std::strlen(str));
data/mecab-0.996/src/tagger.cpp:614:35:  [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).
  return parseNBestInit(str, std::strlen(str));
data/mecab-0.996/src/tagger.cpp:667:34:  [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).
  return parseNBest(N, str, std::strlen(str));
data/mecab-0.996/src/tagger.cpp:761: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).
  return set_sentence(sentence, strlen(sentence));
data/mecab-0.996/src/tagger.cpp:799:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  char *str = allocator()->strdup(result, std::strlen(result));
data/mecab-0.996/src/tagger.cpp:803:38:  [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).
                                std::strlen(result));
data/mecab-0.996/src/tagger.cpp:1255:14:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        std::strncpy(ibuf, sentence.c_str(), ibufsize);
data/mecab-0.996/src/tokenizer.cpp:123:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    std::strncpy(buf.get(), userdic.c_str(), buf.size());
data/mecab-0.996/src/tokenizer.cpp:193:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  std::strncpy(buf1.get(), f1, buf1.size());
data/mecab-0.996/src/tokenizer.cpp:194:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  std::strncpy(buf2.get(), f2, buf2.size());
data/mecab-0.996/src/tokenizer.h:51:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    std::strncpy(n, str, size + 1);
data/mecab-0.996/src/utils.h:133:26:  [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 *eos = str + std::strlen(str);
data/mecab-0.996/src/utils.h:170:27:  [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 *stre = str + std::strlen(str);
data/mecab-0.996/src/utils.h:171: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 char *dele = del + std::strlen(del);
data/mecab-0.996/src/utils.h:190:27:  [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 *stre = str + std::strlen(str);
data/mecab-0.996/src/utils.h:191: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 char *dele = del + std::strlen(del);
data/mecab-0.996/src/viterbi.cpp:261:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(str, lattice->sentence(), lattice->size() + 1);
data/mecab-0.996/src/viterbi.cpp:280:29:  [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 len = std::strlen(column[0]);
data/mecab-0.996/src/viterbi.cpp:298:29:  [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 len = std::strlen(surface);
data/mecab-0.996/src/writer.cpp:352:20:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
              std::strncpy(buf.get(), node->feature, buf.size());

ANALYSIS SUMMARY:

Hits = 252
Lines analyzed = 168728 in approximately 3.97 seconds (42504 lines/second)
Physical Source Lines of Code (SLOC) = 165382
Hits@level = [0]  38 [1]  69 [2] 177 [3]   2 [4]   4 [5]   0
Hits@level+ = [0+] 290 [1+] 252 [2+] 183 [3+]   6 [4+]   4 [5+]   0
Hits/KSLOC@level+ = [0+] 1.75352 [1+] 1.52375 [2+] 1.10653 [3+] 0.0362796 [4+] 0.0241864 [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.