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/xapian-bindings-1.4.15/tcl8/xapian_wrap.cc
Examining data/xapian-bindings-1.4.15/perl/xapian_wrap.cc
Examining data/xapian-bindings-1.4.15/php7/php7/xapian_wrap.cc
Examining data/xapian-bindings-1.4.15/php7/php7/xapian_wrap.h
Examining data/xapian-bindings-1.4.15/php7/php7/php_xapian.h
Examining data/xapian-bindings-1.4.15/python/xapian_wrap.cc
Examining data/xapian-bindings-1.4.15/python/xapian_wrap.h
Examining data/xapian-bindings-1.4.15/ruby/xapian_wrap.cc
Examining data/xapian-bindings-1.4.15/ruby/xapian_wrap.h
Examining data/xapian-bindings-1.4.15/python3/xapian_wrap.cc
Examining data/xapian-bindings-1.4.15/python3/xapian_wrap.h
Examining data/xapian-bindings-1.4.15/csharp/xapian_wrap.cc
Examining data/xapian-bindings-1.4.15/csharp/xapian_wrap.h
Examining data/xapian-bindings-1.4.15/java/xapian_wrap.cc
Examining data/xapian-bindings-1.4.15/java/xapian_wrap.h
Examining data/xapian-bindings-1.4.15/lua/xapian_wrap.cc
Examining data/xapian-bindings-1.4.15/php/php5/xapian_wrap.cc
Examining data/xapian-bindings-1.4.15/php/php5/xapian_wrap.h
Examining data/xapian-bindings-1.4.15/php/php5/php_xapian.h

FINAL RESULTS:

data/xapian-bindings-1.4.15/lua/xapian_wrap.cc:691:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(r,name);
data/xapian-bindings-1.4.15/perl/xapian_wrap.cc:715:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(r,name);
data/xapian-bindings-1.4.15/perl/xapian_wrap.cc:1302:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(r,SWIG_Perl_TypeProxyName(type));
data/xapian-bindings-1.4.15/perl/xapian_wrap.cc:1530:8:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
#ifdef access
data/xapian-bindings-1.4.15/perl/xapian_wrap.cc:1531:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  #undef access
data/xapian-bindings-1.4.15/perl/xapian_wrap.cc:2691:10:  [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.
# ifndef snprintf
data/xapian-bindings-1.4.15/perl/xapian_wrap.cc:2692:11:  [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/xapian-bindings-1.4.15/perl/xapian_wrap.cc:2692:20:  [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/xapian-bindings-1.4.15/php/php5/xapian_wrap.cc:691:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(r,name);
data/xapian-bindings-1.4.15/php/php5/xapian_wrap.cc:886:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(classname, SWIG_PREFIX);
data/xapian-bindings-1.4.15/php/php5/xapian_wrap.cc:887:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(classname + SWIG_PREFIX_LEN, type_name);
data/xapian-bindings-1.4.15/php7/php7/xapian_wrap.cc:694:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(r,name);
data/xapian-bindings-1.4.15/python/xapian_wrap.cc:825:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(r,name);
data/xapian-bindings-1.4.15/python/xapian_wrap.cc:965:25:  [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 PyOS_snprintf _snprintf
data/xapian-bindings-1.4.15/python/xapian_wrap.cc:967:25:  [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 PyOS_snprintf snprintf
data/xapian-bindings-1.4.15/python/xapian_wrap.cc:984:9:  [4] (format) vsnprintf:
  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.
  res = vsnprintf(buf, sizeof(buf), fmt, ap);
data/xapian-bindings-1.4.15/python3/xapian_wrap.cc:826:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(r,name);
data/xapian-bindings-1.4.15/python3/xapian_wrap.cc:966:25:  [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 PyOS_snprintf _snprintf
data/xapian-bindings-1.4.15/python3/xapian_wrap.cc:968:25:  [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 PyOS_snprintf snprintf
data/xapian-bindings-1.4.15/python3/xapian_wrap.cc:985:9:  [4] (format) vsnprintf:
  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.
  res = vsnprintf(buf, sizeof(buf), fmt, ap);
data/xapian-bindings-1.4.15/ruby/xapian_wrap.cc:837:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(r,name);
data/xapian-bindings-1.4.15/ruby/xapian_wrap.cc:1544:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(klass_name, "TYPE%s", type->name);
data/xapian-bindings-1.4.15/ruby/xapian_wrap.cc:1600:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(klass_name, "TYPE%s", type->name);
data/xapian-bindings-1.4.15/ruby/xapian_wrap.cc:1750:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(r, type->name);
data/xapian-bindings-1.4.15/tcl8/xapian_wrap.cc:696:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(r,name);
data/xapian-bindings-1.4.15/tcl8/xapian_wrap.cc:1179:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(c,ty->name);
data/xapian-bindings-1.4.15/tcl8/xapian_wrap.cc:1202:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(r,type->name);
data/xapian-bindings-1.4.15/tcl8/xapian_wrap.cc:2086:10:  [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.
# ifndef snprintf
data/xapian-bindings-1.4.15/tcl8/xapian_wrap.cc:2087:11:  [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/xapian-bindings-1.4.15/tcl8/xapian_wrap.cc:2087:20:  [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/xapian-bindings-1.4.15/ruby/xapian_wrap.cc:2116:30:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
#  define pthread_mutex_lock EnterCriticalSection
data/xapian-bindings-1.4.15/csharp/xapian_wrap.cc:443: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).
	static Database open(const string &) {
data/xapian-bindings-1.4.15/csharp/xapian_wrap.cc:446: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).
	static WritableDatabase open(const string &, int, int = 0) {
data/xapian-bindings-1.4.15/csharp/xapian_wrap.cc:454: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).
	static WritableDatabase open() {
data/xapian-bindings-1.4.15/csharp/xapian_wrap.cc:465: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).
	static Database open(const string &, unsigned int, useconds_t = 0, useconds_t = 0) {
data/xapian-bindings-1.4.15/csharp/xapian_wrap.cc:473: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).
	static Database open(const string &, const string &, useconds_t = 0) {
data/xapian-bindings-1.4.15/csharp/xapian_wrap.cc:20847: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).
      result = Xapian::Chert::open((std::string const &)*arg1);
data/xapian-bindings-1.4.15/csharp/xapian_wrap.cc:20878: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).
      result = Xapian::Chert::open((std::string const &)*arg1,arg2,arg3);
data/xapian-bindings-1.4.15/csharp/xapian_wrap.cc:20907: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).
      result = Xapian::Chert::open((std::string const &)*arg1,arg2);
data/xapian-bindings-1.4.15/csharp/xapian_wrap.cc:20927:34:  [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).
      result = Xapian::InMemory::open();
data/xapian-bindings-1.4.15/csharp/xapian_wrap.cc:20960:32:  [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).
      result = Xapian::Remote::open((std::string const &)*arg1,arg2,arg3,arg4);
data/xapian-bindings-1.4.15/csharp/xapian_wrap.cc:20991:32:  [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).
      result = Xapian::Remote::open((std::string const &)*arg1,arg2,arg3);
data/xapian-bindings-1.4.15/csharp/xapian_wrap.cc:21020:32:  [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).
      result = Xapian::Remote::open((std::string const &)*arg1,arg2);
data/xapian-bindings-1.4.15/csharp/xapian_wrap.cc:21149:32:  [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).
      result = Xapian::Remote::open((std::string const &)*arg1,(std::string const &)*arg2,arg3);
data/xapian-bindings-1.4.15/csharp/xapian_wrap.cc:21183:32:  [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).
      result = Xapian::Remote::open((std::string const &)*arg1,(std::string const &)*arg2);
data/xapian-bindings-1.4.15/java/xapian_wrap.cc:748: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).
	static Database open(const string &) {
data/xapian-bindings-1.4.15/java/xapian_wrap.cc:751: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).
	static WritableDatabase open(const string &, int, int = 0) {
data/xapian-bindings-1.4.15/java/xapian_wrap.cc:759: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).
	static WritableDatabase open() {
data/xapian-bindings-1.4.15/java/xapian_wrap.cc:770: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).
	static Database open(const string &, unsigned int, useconds_t = 0, useconds_t = 0) {
data/xapian-bindings-1.4.15/java/xapian_wrap.cc:778: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).
	static Database open(const string &, const string &, useconds_t = 0) {
data/xapian-bindings-1.4.15/java/xapian_wrap.cc:26583: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).
      result = Xapian::Chert::open((std::string const &)*arg1);
data/xapian-bindings-1.4.15/java/xapian_wrap.cc:26619: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).
      result = Xapian::Chert::open((std::string const &)*arg1,arg2,arg3);
data/xapian-bindings-1.4.15/java/xapian_wrap.cc:26653: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).
      result = Xapian::Chert::open((std::string const &)*arg1,arg2);
data/xapian-bindings-1.4.15/java/xapian_wrap.cc:26675:34:  [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).
      result = Xapian::InMemory::open();
data/xapian-bindings-1.4.15/java/xapian_wrap.cc:26713:32:  [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).
      result = Xapian::Remote::open((std::string const &)*arg1,arg2,arg3,arg4);
data/xapian-bindings-1.4.15/java/xapian_wrap.cc:26749:32:  [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).
      result = Xapian::Remote::open((std::string const &)*arg1,arg2,arg3);
data/xapian-bindings-1.4.15/java/xapian_wrap.cc:26783:32:  [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).
      result = Xapian::Remote::open((std::string const &)*arg1,arg2);
data/xapian-bindings-1.4.15/java/xapian_wrap.cc:26935:32:  [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).
      result = Xapian::Remote::open((std::string const &)*arg1,(std::string const &)*arg2,arg3);
data/xapian-bindings-1.4.15/java/xapian_wrap.cc:26977:32:  [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).
      result = Xapian::Remote::open((std::string const &)*arg1,(std::string const &)*arg2);
data/xapian-bindings-1.4.15/lua/xapian_wrap.cc:642:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static const char hex[17] = "0123456789abcdef";
data/xapian-bindings-1.4.15/lua/xapian_wrap.cc:1031: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 data[1];       /* arbitary amount of data */    
data/xapian-bindings-1.4.15/lua/xapian_wrap.cc:2550: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(raw->data,ptr,size); /* copy the data */
data/xapian-bindings-1.4.15/lua/xapian_wrap.cc:2562:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(ptr,raw->data,size); /* copy it */
data/xapian-bindings-1.4.15/lua/xapian_wrap.cc:2620:25:  [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.
      lua_pushstring(L,(char *) constants[i].pvalue);
data/xapian-bindings-1.4.15/lua/xapian_wrap.cc:2881: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).
	static Database open(const string &) {
data/xapian-bindings-1.4.15/lua/xapian_wrap.cc:2884: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).
	static WritableDatabase open(const string &, int, int = 0) {
data/xapian-bindings-1.4.15/lua/xapian_wrap.cc:2892: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).
	static WritableDatabase open() {
data/xapian-bindings-1.4.15/lua/xapian_wrap.cc:2903: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).
	static Database open(const string &, unsigned int, useconds_t = 0, useconds_t = 0) {
data/xapian-bindings-1.4.15/lua/xapian_wrap.cc:2911: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).
	static Database open(const string &, const string &, useconds_t = 0) {
data/xapian-bindings-1.4.15/lua/xapian_wrap.cc:46093:34:  [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).
      result = Xapian::InMemory::open();
data/xapian-bindings-1.4.15/lua/xapian_wrap.cc:46124: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).
      result = Xapian::Chert::open((std::string const &)*arg1);
data/xapian-bindings-1.4.15/lua/xapian_wrap.cc:46161: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).
      result = Xapian::Chert::open((std::string const &)*arg1,arg2,arg3);
data/xapian-bindings-1.4.15/lua/xapian_wrap.cc:46195: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).
      result = Xapian::Chert::open((std::string const &)*arg1,arg2);
data/xapian-bindings-1.4.15/lua/xapian_wrap.cc:46297:32:  [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).
      result = Xapian::Remote::open((std::string const &)*arg1,arg2,arg3,arg4);
data/xapian-bindings-1.4.15/lua/xapian_wrap.cc:46336:32:  [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).
      result = Xapian::Remote::open((std::string const &)*arg1,arg2,arg3);
data/xapian-bindings-1.4.15/lua/xapian_wrap.cc:46371:32:  [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).
      result = Xapian::Remote::open((std::string const &)*arg1,arg2);
data/xapian-bindings-1.4.15/lua/xapian_wrap.cc:46573:32:  [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).
      result = Xapian::Remote::open((std::string const &)*arg1,(std::string const &)*arg2,arg3);
data/xapian-bindings-1.4.15/lua/xapian_wrap.cc:46608:32:  [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).
      result = Xapian::Remote::open((std::string const &)*arg1,(std::string const &)*arg2);
data/xapian-bindings-1.4.15/perl/xapian_wrap.cc:666:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static const char hex[17] = "0123456789abcdef";
data/xapian-bindings-1.4.15/perl/xapian_wrap.cc:1297: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 result[1024];
data/xapian-bindings-1.4.15/perl/xapian_wrap.cc:1521: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).
#ifdef open
data/xapian-bindings-1.4.15/perl/xapian_wrap.cc:1522: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).
  #undef open
data/xapian-bindings-1.4.15/perl/xapian_wrap.cc:1769: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).
	static Database open(const string &, unsigned int, useconds_t = 0, useconds_t = 0) {
data/xapian-bindings-1.4.15/perl/xapian_wrap.cc:1777: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).
	static Database open(const string &, const string &, useconds_t = 0) {
data/xapian-bindings-1.4.15/perl/xapian_wrap.cc:2152:38:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  *cptr = reinterpret_cast< char* >(memcpy(new char[size], cstr, sizeof(char)*(size)));
data/xapian-bindings-1.4.15/perl/xapian_wrap.cc:2706: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/xapian-bindings-1.4.15/perl/xapian_wrap.cc:2707: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(temp, "%llu", value);
data/xapian-bindings-1.4.15/perl/xapian_wrap.cc:59205:34:  [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).
        result = Xapian::Remote::open((std::string const &)*arg1,arg2,arg3,arg4);
data/xapian-bindings-1.4.15/perl/xapian_wrap.cc:59267:34:  [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).
        result = Xapian::Remote::open((std::string const &)*arg1,arg2,arg3);
data/xapian-bindings-1.4.15/perl/xapian_wrap.cc:59319:34:  [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).
        result = Xapian::Remote::open((std::string const &)*arg1,arg2);
data/xapian-bindings-1.4.15/perl/xapian_wrap.cc:59642:34:  [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).
        result = Xapian::Remote::open((std::string const &)*arg1,(std::string const &)*arg2,arg3);
data/xapian-bindings-1.4.15/perl/xapian_wrap.cc:59699:34:  [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).
        result = Xapian::Remote::open((std::string const &)*arg1,(std::string const &)*arg2);
data/xapian-bindings-1.4.15/perl/xapian_wrap.cc:62192:27:  [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.
      sv_setpv(sv, (const char *) swig_constants[i].pvalue);
data/xapian-bindings-1.4.15/php/php5/xapian_wrap.cc:642:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static const char hex[17] = "0123456789abcdef";
data/xapian-bindings-1.4.15/php/php5/xapian_wrap.cc:1455: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).
	static Database open(const string &) {
data/xapian-bindings-1.4.15/php/php5/xapian_wrap.cc:1458: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).
	static WritableDatabase open(const string &, int, int = 0) {
data/xapian-bindings-1.4.15/php/php5/xapian_wrap.cc:1466: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).
	static WritableDatabase open() {
data/xapian-bindings-1.4.15/php/php5/xapian_wrap.cc:1477: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).
	static Database open(const string &, unsigned int, useconds_t = 0, useconds_t = 0) {
data/xapian-bindings-1.4.15/php/php5/xapian_wrap.cc:1485: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).
	static Database open(const string &, const string &, useconds_t = 0) {
data/xapian-bindings-1.4.15/php/php5/xapian_wrap.cc:32957: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.
    arg3 = (char *) Z_STRVAL_PP(args[2]);
data/xapian-bindings-1.4.15/php/php5/xapian_wrap.cc:39393:34:  [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).
      result = Xapian::InMemory::open();
data/xapian-bindings-1.4.15/php/php5/xapian_wrap.cc:39428: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).
      result = Xapian::Chert::open((std::string const &)*arg1);
data/xapian-bindings-1.4.15/php/php5/xapian_wrap.cc:39478: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).
      result = Xapian::Chert::open((std::string const &)*arg1,arg2,arg3);
data/xapian-bindings-1.4.15/php/php5/xapian_wrap.cc:39521: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).
      result = Xapian::Chert::open((std::string const &)*arg1,arg2);
data/xapian-bindings-1.4.15/php/php5/xapian_wrap.cc:39627:32:  [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).
      result = Xapian::Remote::open((std::string const &)*arg1,arg2,arg3,arg4);
data/xapian-bindings-1.4.15/php/php5/xapian_wrap.cc:39677:32:  [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).
      result = Xapian::Remote::open((std::string const &)*arg1,arg2,arg3);
data/xapian-bindings-1.4.15/php/php5/xapian_wrap.cc:39720:32:  [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).
      result = Xapian::Remote::open((std::string const &)*arg1,arg2);
data/xapian-bindings-1.4.15/php/php5/xapian_wrap.cc:39984:32:  [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).
      result = Xapian::Remote::open((std::string const &)*arg1,(std::string const &)*arg2,arg3);
data/xapian-bindings-1.4.15/php/php5/xapian_wrap.cc:40028:32:  [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).
      result = Xapian::Remote::open((std::string const &)*arg1,(std::string const &)*arg2);
data/xapian-bindings-1.4.15/php7/php7/xapian_wrap.cc:645:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static const char hex[17] = "0123456789abcdef";
data/xapian-bindings-1.4.15/php7/php7/xapian_wrap.cc:848: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(classname->val, SWIG_PREFIX, SWIG_PREFIX_LEN);
data/xapian-bindings-1.4.15/php7/php7/xapian_wrap.cc:849: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(classname->val + SWIG_PREFIX_LEN, type_name, type_name_len);
data/xapian-bindings-1.4.15/php7/php7/xapian_wrap.cc:1409: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).
	static Database open(const string &) {
data/xapian-bindings-1.4.15/php7/php7/xapian_wrap.cc:1412: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).
	static WritableDatabase open(const string &, int, int = 0) {
data/xapian-bindings-1.4.15/php7/php7/xapian_wrap.cc:1420: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).
	static WritableDatabase open() {
data/xapian-bindings-1.4.15/php7/php7/xapian_wrap.cc:1431: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).
	static Database open(const string &, unsigned int, useconds_t = 0, useconds_t = 0) {
data/xapian-bindings-1.4.15/php7/php7/xapian_wrap.cc:1439: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).
	static Database open(const string &, const string &, useconds_t = 0) {
data/xapian-bindings-1.4.15/php7/php7/xapian_wrap.cc:32239: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.
    arg3 = (char *) Z_STRVAL(args[2]);
data/xapian-bindings-1.4.15/php7/php7/xapian_wrap.cc:38594:34:  [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).
      result = Xapian::InMemory::open();
data/xapian-bindings-1.4.15/php7/php7/xapian_wrap.cc:38629: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).
      result = Xapian::Chert::open((std::string const &)*arg1);
data/xapian-bindings-1.4.15/php7/php7/xapian_wrap.cc:38677: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).
      result = Xapian::Chert::open((std::string const &)*arg1,arg2,arg3);
data/xapian-bindings-1.4.15/php7/php7/xapian_wrap.cc:38719: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).
      result = Xapian::Chert::open((std::string const &)*arg1,arg2);
data/xapian-bindings-1.4.15/php7/php7/xapian_wrap.cc:38822:32:  [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).
      result = Xapian::Remote::open((std::string const &)*arg1,arg2,arg3,arg4);
data/xapian-bindings-1.4.15/php7/php7/xapian_wrap.cc:38870:32:  [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).
      result = Xapian::Remote::open((std::string const &)*arg1,arg2,arg3);
data/xapian-bindings-1.4.15/php7/php7/xapian_wrap.cc:38912:32:  [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).
      result = Xapian::Remote::open((std::string const &)*arg1,arg2);
data/xapian-bindings-1.4.15/php7/php7/xapian_wrap.cc:39165:32:  [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).
      result = Xapian::Remote::open((std::string const &)*arg1,(std::string const &)*arg2,arg3);
data/xapian-bindings-1.4.15/php7/php7/xapian_wrap.cc:39209:32:  [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).
      result = Xapian::Remote::open((std::string const &)*arg1,(std::string const &)*arg2);
data/xapian-bindings-1.4.15/python/xapian_wrap.cc:776:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static const char hex[17] = "0123456789abcdef";
data/xapian-bindings-1.4.15/python/xapian_wrap.cc:937: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(newstr, cstr, len+1);
data/xapian-bindings-1.4.15/python/xapian_wrap.cc:981: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 buf[SWIG_PYBUFFER_SIZE * 2];
data/xapian-bindings-1.4.15/python/xapian_wrap.cc:2171: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 result[SWIG_BUFFER_SIZE];
data/xapian-bindings-1.4.15/python/xapian_wrap.cc:2185: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 result[SWIG_BUFFER_SIZE];
data/xapian-bindings-1.4.15/python/xapian_wrap.cc:2196: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 result[SWIG_BUFFER_SIZE];
data/xapian-bindings-1.4.15/python/xapian_wrap.cc:2338:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(pack, ptr, size);
data/xapian-bindings-1.4.15/python/xapian_wrap.cc:2356:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(ptr, sobj->pack, size);
data/xapian-bindings-1.4.15/python/xapian_wrap.cc:2990: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 mesg[256];
data/xapian-bindings-1.4.15/python/xapian_wrap.cc:3889: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).
	static Database open(const string &) {
data/xapian-bindings-1.4.15/python/xapian_wrap.cc:3892: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).
	static WritableDatabase open(const string &, int, int = 0) {
data/xapian-bindings-1.4.15/python/xapian_wrap.cc:3900: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).
	static WritableDatabase open() {
data/xapian-bindings-1.4.15/python/xapian_wrap.cc:3911: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).
	static Database open(const string &, unsigned int, useconds_t = 0, useconds_t = 0) {
data/xapian-bindings-1.4.15/python/xapian_wrap.cc:3919: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).
	static Database open(const string &, const string &, useconds_t = 0) {
data/xapian-bindings-1.4.15/python/xapian_wrap.cc:4787:38:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  *cptr = reinterpret_cast< char* >(memcpy(new char[len + 1], cstr, sizeof(char)*(len + 1)));
data/xapian-bindings-1.4.15/python/xapian_wrap.cc:4825:45:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          *cptr = reinterpret_cast< char* >(memcpy(new char[len + 1], cstr, sizeof(char)*(len + 1)));
data/xapian-bindings-1.4.15/python/xapian_wrap.cc:49231:36:  [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).
        result = Xapian::InMemory::open();
data/xapian-bindings-1.4.15/python/xapian_wrap.cc:49268:33:  [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).
        result = Xapian::Chert::open((std::string const &)*arg1);
data/xapian-bindings-1.4.15/python/xapian_wrap.cc:49323:33:  [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).
        result = Xapian::Chert::open((std::string const &)*arg1,arg2,arg3);
data/xapian-bindings-1.4.15/python/xapian_wrap.cc:49370:33:  [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).
        result = Xapian::Chert::open((std::string const &)*arg1,arg2);
data/xapian-bindings-1.4.15/python/xapian_wrap.cc:49461:34:  [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).
        result = Xapian::Remote::open((std::string const &)*arg1,arg2,arg3,arg4);
data/xapian-bindings-1.4.15/python/xapian_wrap.cc:49516:34:  [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).
        result = Xapian::Remote::open((std::string const &)*arg1,arg2,arg3);
data/xapian-bindings-1.4.15/python/xapian_wrap.cc:49563:34:  [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).
        result = Xapian::Remote::open((std::string const &)*arg1,arg2);
data/xapian-bindings-1.4.15/python/xapian_wrap.cc:49859:34:  [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).
        result = Xapian::Remote::open((std::string const &)*arg1,(std::string const &)*arg2,arg3);
data/xapian-bindings-1.4.15/python/xapian_wrap.cc:49913:34:  [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).
        result = Xapian::Remote::open((std::string const &)*arg1,(std::string const &)*arg2);
data/xapian-bindings-1.4.15/python/xapian_wrap.cc:58018:15:  [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(buff, methods[i].ml_doc, ldoc);
data/xapian-bindings-1.4.15/python/xapian_wrap.cc:58020:15:  [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(buff, "swig_ptr: ", 10);
data/xapian-bindings-1.4.15/python3/xapian_wrap.cc:777:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static const char hex[17] = "0123456789abcdef";
data/xapian-bindings-1.4.15/python3/xapian_wrap.cc:938: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(newstr, cstr, len+1);
data/xapian-bindings-1.4.15/python3/xapian_wrap.cc:982: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 buf[SWIG_PYBUFFER_SIZE * 2];
data/xapian-bindings-1.4.15/python3/xapian_wrap.cc:2172: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 result[SWIG_BUFFER_SIZE];
data/xapian-bindings-1.4.15/python3/xapian_wrap.cc:2186: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 result[SWIG_BUFFER_SIZE];
data/xapian-bindings-1.4.15/python3/xapian_wrap.cc:2197: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 result[SWIG_BUFFER_SIZE];
data/xapian-bindings-1.4.15/python3/xapian_wrap.cc:2339:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(pack, ptr, size);
data/xapian-bindings-1.4.15/python3/xapian_wrap.cc:2357:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(ptr, sobj->pack, size);
data/xapian-bindings-1.4.15/python3/xapian_wrap.cc:2991: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 mesg[256];
data/xapian-bindings-1.4.15/python3/xapian_wrap.cc:3890: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).
	static Database open(const string &, unsigned int, useconds_t = 0, useconds_t = 0) {
data/xapian-bindings-1.4.15/python3/xapian_wrap.cc:3898: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).
	static Database open(const string &, const string &, useconds_t = 0) {
data/xapian-bindings-1.4.15/python3/xapian_wrap.cc:4682:38:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  *cptr = reinterpret_cast< char* >(memcpy(new char[len + 1], cstr, sizeof(char)*(len + 1)));
data/xapian-bindings-1.4.15/python3/xapian_wrap.cc:4720:45:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          *cptr = reinterpret_cast< char* >(memcpy(new char[len + 1], cstr, sizeof(char)*(len + 1)));
data/xapian-bindings-1.4.15/python3/xapian_wrap.cc:49423:34:  [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).
        result = Xapian::Remote::open((std::string const &)*arg1,arg2,arg3,arg4);
data/xapian-bindings-1.4.15/python3/xapian_wrap.cc:49479:34:  [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).
        result = Xapian::Remote::open((std::string const &)*arg1,arg2,arg3);
data/xapian-bindings-1.4.15/python3/xapian_wrap.cc:49527:34:  [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).
        result = Xapian::Remote::open((std::string const &)*arg1,arg2);
data/xapian-bindings-1.4.15/python3/xapian_wrap.cc:49829:34:  [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).
        result = Xapian::Remote::open((std::string const &)*arg1,(std::string const &)*arg2,arg3);
data/xapian-bindings-1.4.15/python3/xapian_wrap.cc:49885:34:  [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).
        result = Xapian::Remote::open((std::string const &)*arg1,(std::string const &)*arg2);
data/xapian-bindings-1.4.15/python3/xapian_wrap.cc:57924:15:  [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(buff, methods[i].ml_doc, ldoc);
data/xapian-bindings-1.4.15/python3/xapian_wrap.cc:57926:15:  [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(buff, "swig_ptr: ", 10);
data/xapian-bindings-1.4.15/ruby/xapian_wrap.cc:788:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static const char hex[17] = "0123456789abcdef";
data/xapian-bindings-1.4.15/ruby/xapian_wrap.cc:1161: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 buf[128];
data/xapian-bindings-1.4.15/ruby/xapian_wrap.cc:1174:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf( buf, "%d of type ", argn-1 );
data/xapian-bindings-1.4.15/ruby/xapian_wrap.cc:1745: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 result[1024];
data/xapian-bindings-1.4.15/ruby/xapian_wrap.cc:2404: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).
	static Database open(const string &) {
data/xapian-bindings-1.4.15/ruby/xapian_wrap.cc:2407: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).
	static WritableDatabase open(const string &, int, int = 0) {
data/xapian-bindings-1.4.15/ruby/xapian_wrap.cc:2415: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).
	static WritableDatabase open() {
data/xapian-bindings-1.4.15/ruby/xapian_wrap.cc:2426: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).
	static Database open(const string &, unsigned int, useconds_t = 0, useconds_t = 0) {
data/xapian-bindings-1.4.15/ruby/xapian_wrap.cc:2434: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).
	static Database open(const string &, const string &, useconds_t = 0) {
data/xapian-bindings-1.4.15/ruby/xapian_wrap.cc:3477:38:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  *cptr = reinterpret_cast< char* >(memcpy(new char[size], cstr, sizeof(char)*(size)));
data/xapian-bindings-1.4.15/ruby/xapian_wrap.cc:44829:34:  [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).
      result = Xapian::InMemory::open();
data/xapian-bindings-1.4.15/ruby/xapian_wrap.cc:44866: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).
      result = Xapian::Chert::open((std::string const &)*arg1);
data/xapian-bindings-1.4.15/ruby/xapian_wrap.cc:44921: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).
      result = Xapian::Chert::open((std::string const &)*arg1,arg2,arg3);
data/xapian-bindings-1.4.15/ruby/xapian_wrap.cc:44968: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).
      result = Xapian::Chert::open((std::string const &)*arg1,arg2);
data/xapian-bindings-1.4.15/ruby/xapian_wrap.cc:45094:32:  [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).
      result = Xapian::Remote::open((std::string const &)*arg1,arg2,arg3,arg4);
data/xapian-bindings-1.4.15/ruby/xapian_wrap.cc:45149:32:  [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).
      result = Xapian::Remote::open((std::string const &)*arg1,arg2,arg3);
data/xapian-bindings-1.4.15/ruby/xapian_wrap.cc:45196:32:  [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).
      result = Xapian::Remote::open((std::string const &)*arg1,arg2);
data/xapian-bindings-1.4.15/ruby/xapian_wrap.cc:45492:32:  [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).
      result = Xapian::Remote::open((std::string const &)*arg1,(std::string const &)*arg2,arg3);
data/xapian-bindings-1.4.15/ruby/xapian_wrap.cc:45546:32:  [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).
      result = Xapian::Remote::open((std::string const &)*arg1,(std::string const &)*arg2);
data/xapian-bindings-1.4.15/tcl8/xapian_wrap.cc:647:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static const char hex[17] = "0123456789abcdef";
data/xapian-bindings-1.4.15/tcl8/xapian_wrap.cc:1181:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(c,"NULL");
data/xapian-bindings-1.4.15/tcl8/xapian_wrap.cc:1189: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 result[SWIG_BUFFER_SIZE];
data/xapian-bindings-1.4.15/tcl8/xapian_wrap.cc:1197: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 result[1024];
data/xapian-bindings-1.4.15/tcl8/xapian_wrap.cc:1226: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 buf[SWIG_BUFFER_SIZE];
data/xapian-bindings-1.4.15/tcl8/xapian_wrap.cc:1624: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[32];
data/xapian-bindings-1.4.15/tcl8/xapian_wrap.cc:1625: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(temp,"%d", argno+1);
data/xapian-bindings-1.4.15/tcl8/xapian_wrap.cc:1846: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).
	static Database open(const string &) {
data/xapian-bindings-1.4.15/tcl8/xapian_wrap.cc:1849: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).
	static WritableDatabase open(const string &, int, int = 0) {
data/xapian-bindings-1.4.15/tcl8/xapian_wrap.cc:1857: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).
	static WritableDatabase open() {
data/xapian-bindings-1.4.15/tcl8/xapian_wrap.cc:1868: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).
	static Database open(const string &, unsigned int, useconds_t = 0, useconds_t = 0) {
data/xapian-bindings-1.4.15/tcl8/xapian_wrap.cc:1876: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).
	static Database open(const string &, const string &, useconds_t = 0) {
data/xapian-bindings-1.4.15/tcl8/xapian_wrap.cc:2098: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/xapian-bindings-1.4.15/tcl8/xapian_wrap.cc:2099: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(temp, "%lu", value);
data/xapian-bindings-1.4.15/tcl8/xapian_wrap.cc:2287: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/xapian-bindings-1.4.15/tcl8/xapian_wrap.cc:2288: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(temp, "%lld", value);
data/xapian-bindings-1.4.15/tcl8/xapian_wrap.cc:2302: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/xapian-bindings-1.4.15/tcl8/xapian_wrap.cc:2303: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(temp, "%llu", value);
data/xapian-bindings-1.4.15/tcl8/xapian_wrap.cc:38925:34:  [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).
      result = Xapian::InMemory::open();
data/xapian-bindings-1.4.15/tcl8/xapian_wrap.cc:38959: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).
      result = Xapian::Chert::open((std::string const &)*arg1);
data/xapian-bindings-1.4.15/tcl8/xapian_wrap.cc:39019:32:  [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).
      result = Xapian::Remote::open((std::string const &)*arg1,arg2,arg3,arg4);
data/xapian-bindings-1.4.15/tcl8/xapian_wrap.cc:39071:32:  [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).
      result = Xapian::Remote::open((std::string const &)*arg1,arg2,arg3);
data/xapian-bindings-1.4.15/tcl8/xapian_wrap.cc:39115:32:  [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).
      result = Xapian::Remote::open((std::string const &)*arg1,arg2);
data/xapian-bindings-1.4.15/tcl8/xapian_wrap.cc:39396:32:  [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).
      result = Xapian::Remote::open((std::string const &)*arg1,(std::string const &)*arg2,arg3);
data/xapian-bindings-1.4.15/tcl8/xapian_wrap.cc:39447:32:  [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).
      result = Xapian::Remote::open((std::string const &)*arg1,(std::string const &)*arg2);
data/xapian-bindings-1.4.15/tcl8/xapian_wrap.cc:41436:35:  [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.
    Tcl_CreateObjCommand(interp, (char *) swig_commands[i].name, (swig_wrapper_func) swig_commands[i].wrapper,
data/xapian-bindings-1.4.15/tcl8/xapian_wrap.cc:41440:25:  [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.
    Tcl_SetVar(interp, (char *) swig_variables[i].name, (char *) "", TCL_GLOBAL_ONLY);
data/xapian-bindings-1.4.15/tcl8/xapian_wrap.cc:41441:27:  [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.
    Tcl_TraceVar(interp, (char *) swig_variables[i].name, TCL_TRACE_READS | TCL_GLOBAL_ONLY, 
data/xapian-bindings-1.4.15/tcl8/xapian_wrap.cc:41443:27:  [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.
    Tcl_TraceVar(interp, (char *) swig_variables[i].name, TCL_TRACE_WRITES | TCL_GLOBAL_ONLY, 
data/xapian-bindings-1.4.15/java/xapian_wrap.cc:636: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).
	size_t msglen = strlen(srcmsg) + 1;
data/xapian-bindings-1.4.15/java/xapian_wrap.cc:638:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(target, srcmsg, msglen);
data/xapian-bindings-1.4.15/lua/xapian_wrap.cc:406: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 char* te = tb + strlen(tb);
data/xapian-bindings-1.4.15/lua/xapian_wrap.cc:690:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
data/xapian-bindings-1.4.15/lua/xapian_wrap.cc:711: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).
  size_t lname = (name ? strlen(name) : 0);
data/xapian-bindings-1.4.15/lua/xapian_wrap.cc:716:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(r,name,lname+1);
data/xapian-bindings-1.4.15/perl/xapian_wrap.cc:430: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 char* te = tb + strlen(tb);
data/xapian-bindings-1.4.15/perl/xapian_wrap.cc:714:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
data/xapian-bindings-1.4.15/perl/xapian_wrap.cc:735: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).
  size_t lname = (name ? strlen(name) : 0);
data/xapian-bindings-1.4.15/perl/xapian_wrap.cc:740:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(r,name,lname+1);
data/xapian-bindings-1.4.15/perl/xapian_wrap.cc:1299:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if ((2*sz + 1 + strlen(SWIG_Perl_TypeProxyName(type))) > 1000) return;
data/xapian-bindings-1.4.15/perl/xapian_wrap.cc:1391: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).
  sv_magic(sv,sv,'U',name,strlen(name));
data/xapian-bindings-1.4.15/perl/xapian_wrap.cc:1488:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#ifdef read
data/xapian-bindings-1.4.15/perl/xapian_wrap.cc:1489:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  #undef read
data/xapian-bindings-1.4.15/perl/xapian_wrap.cc:2113: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).
  return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
data/xapian-bindings-1.4.15/perl/xapian_wrap.cc:2167: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).
	if (psize) *psize = vptr ? (strlen(vptr) + 1) : 0;
data/xapian-bindings-1.4.15/php/php5/xapian_wrap.cc:406: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 char* te = tb + strlen(tb);
data/xapian-bindings-1.4.15/php/php5/xapian_wrap.cc:690:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
data/xapian-bindings-1.4.15/php/php5/xapian_wrap.cc:711: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).
  size_t lname = (name ? strlen(name) : 0);
data/xapian-bindings-1.4.15/php/php5/xapian_wrap.cc:716:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(r,name,lname+1);
data/xapian-bindings-1.4.15/php/php5/xapian_wrap.cc:786:102:  [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).
#define SWIG_STRING_CONSTANT(N, V) zend_register_stringl_constant((char*)#N, sizeof(#N), (char*)(V), strlen(V), CONST_CS | CONST_PERSISTENT, module_number TSRMLS_CC)
data/xapian-bindings-1.4.15/php/php5/xapian_wrap.cc:880:23:  [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).
      type_name_len = strlen(type_name);
data/xapian-bindings-1.4.15/php/php5/xapian_wrap.cc:1315: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).
        if (zend_lookup_class(cname, strlen(cname), &ce TSRMLS_CC) != SUCCESS) {
data/xapian-bindings-1.4.15/php/php5/xapian_wrap.cc:1318:62:  [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 (zend_hash_find(&(*ce)->function_table, lc_fname, strlen(lc_fname) + 1, (void **) &mptr) != SUCCESS) {
data/xapian-bindings-1.4.15/php7/php7/xapian_wrap.cc:409: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 char* te = tb + strlen(tb);
data/xapian-bindings-1.4.15/php7/php7/xapian_wrap.cc:693:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
data/xapian-bindings-1.4.15/php7/php7/xapian_wrap.cc:714: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).
  size_t lname = (name ? strlen(name) : 0);
data/xapian-bindings-1.4.15/php7/php7/xapian_wrap.cc:719:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(r,name,lname+1);
data/xapian-bindings-1.4.15/php7/php7/xapian_wrap.cc:843:23:  [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).
      type_name_len = strlen(type_name);
data/xapian-bindings-1.4.15/php7/php7/xapian_wrap.cc:1264:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        zend_string * cname_str = zend_string_init(cname, strlen(cname), 0);
data/xapian-bindings-1.4.15/php7/php7/xapian_wrap.cc:1267:75:  [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).
          zval * mptr = zend_hash_str_find(&ce->function_table, lc_fname, strlen(lc_fname));
data/xapian-bindings-1.4.15/python/xapian_wrap.cc:540: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 char* te = tb + strlen(tb);
data/xapian-bindings-1.4.15/python/xapian_wrap.cc:824:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
data/xapian-bindings-1.4.15/python/xapian_wrap.cc:845: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).
  size_t lname = (name ? strlen(name) : 0);
data/xapian-bindings-1.4.15/python/xapian_wrap.cc:850:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(r,name,lname+1);
data/xapian-bindings-1.4.15/python/xapian_wrap.cc:1014:91:  [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).
#  define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
data/xapian-bindings-1.4.15/python/xapian_wrap.cc:3992:18:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    virtual bool equal (const SwigPyIterator &/*x*/) const
data/xapian-bindings-1.4.15/python/xapian_wrap.cc:4031:14:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
      return equal(x);
data/xapian-bindings-1.4.15/python/xapian_wrap.cc:4715: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).
  return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
data/xapian-bindings-1.4.15/python/xapian_wrap.cc:4843: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).
	if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0;
data/xapian-bindings-1.4.15/python/xapian_wrap.cc:7999:60:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
      result = (bool)((swig::SwigPyIterator const *)arg1)->equal((swig::SwigPyIterator const &)*arg2);
data/xapian-bindings-1.4.15/python/xapian_wrap.cc:57936: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 size = strlen(name)+1;
data/xapian-bindings-1.4.15/python/xapian_wrap.cc:57939:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(gv->name,name,size);
data/xapian-bindings-1.4.15/python/xapian_wrap.cc:58003: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).
              strlen(const_table[j].name)) == 0) {
data/xapian-bindings-1.4.15/python/xapian_wrap.cc:58014: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).
            size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
data/xapian-bindings-1.4.15/python3/xapian_wrap.cc:541: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 char* te = tb + strlen(tb);
data/xapian-bindings-1.4.15/python3/xapian_wrap.cc:825:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
data/xapian-bindings-1.4.15/python3/xapian_wrap.cc:846: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).
  size_t lname = (name ? strlen(name) : 0);
data/xapian-bindings-1.4.15/python3/xapian_wrap.cc:851:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(r,name,lname+1);
data/xapian-bindings-1.4.15/python3/xapian_wrap.cc:1015:91:  [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).
#  define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
data/xapian-bindings-1.4.15/python3/xapian_wrap.cc:3971:18:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    virtual bool equal (const SwigPyIterator &/*x*/) const
data/xapian-bindings-1.4.15/python3/xapian_wrap.cc:4010:14:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
      return equal(x);
data/xapian-bindings-1.4.15/python3/xapian_wrap.cc:4738: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).
	if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0;
data/xapian-bindings-1.4.15/python3/xapian_wrap.cc:7912:60:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
      result = (bool)((swig::SwigPyIterator const *)arg1)->equal((swig::SwigPyIterator const &)*arg2);
data/xapian-bindings-1.4.15/python3/xapian_wrap.cc:57842: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 size = strlen(name)+1;
data/xapian-bindings-1.4.15/python3/xapian_wrap.cc:57845:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(gv->name,name,size);
data/xapian-bindings-1.4.15/python3/xapian_wrap.cc:57909: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).
              strlen(const_table[j].name)) == 0) {
data/xapian-bindings-1.4.15/python3/xapian_wrap.cc:57920: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).
            size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
data/xapian-bindings-1.4.15/ruby/xapian_wrap.cc:552: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 char* te = tb + strlen(tb);
data/xapian-bindings-1.4.15/ruby/xapian_wrap.cc:836:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
data/xapian-bindings-1.4.15/ruby/xapian_wrap.cc:857: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).
  size_t lname = (name ? strlen(name) : 0);
data/xapian-bindings-1.4.15/ruby/xapian_wrap.cc:862:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(r,name,lname+1);
data/xapian-bindings-1.4.15/ruby/xapian_wrap.cc:919:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#ifdef read
data/xapian-bindings-1.4.15/ruby/xapian_wrap.cc:920:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
# undef read
data/xapian-bindings-1.4.15/ruby/xapian_wrap.cc:1543:42:  [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 *klass_name = (char *) malloc(4 + strlen(type->name) + 1);
data/xapian-bindings-1.4.15/ruby/xapian_wrap.cc:1599: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).
    klass_name = (char *) malloc(4 + strlen(type->name) + 1);
data/xapian-bindings-1.4.15/ruby/xapian_wrap.cc:1747:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if ((2*sz + 1 + strlen(type->name)) > 1000) return 0;
data/xapian-bindings-1.4.15/ruby/xapian_wrap.cc:2767:18:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    virtual bool equal (const ConstIterator &x) const
data/xapian-bindings-1.4.15/ruby/xapian_wrap.cc:2840:14:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
      return equal(x);
data/xapian-bindings-1.4.15/ruby/xapian_wrap.cc:2961:14:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
      return equal(x);
data/xapian-bindings-1.4.15/ruby/xapian_wrap.cc:3414: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).
  return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
data/xapian-bindings-1.4.15/ruby/xapian_wrap.cc:3492: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).
	if (psize) *psize = vptr ? (strlen((char*)vptr) + 1) : 0;
data/xapian-bindings-1.4.15/tcl8/xapian_wrap.cc:411: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 char* te = tb + strlen(tb);
data/xapian-bindings-1.4.15/tcl8/xapian_wrap.cc:695:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
data/xapian-bindings-1.4.15/tcl8/xapian_wrap.cc:716: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).
  size_t lname = (name ? strlen(name) : 0);
data/xapian-bindings-1.4.15/tcl8/xapian_wrap.cc:721:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(r,name,lname+1);
data/xapian-bindings-1.4.15/tcl8/xapian_wrap.cc:1199:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if ((2*sz + 1 + strlen(type->name)) > 1000) return 0;
data/xapian-bindings-1.4.15/tcl8/xapian_wrap.cc:1410: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 meth_len = strlen(meth->name);
data/xapian-bindings-1.4.15/tcl8/xapian_wrap.cc:2062: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).
  return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));

ANALYSIS SUMMARY:

Hits = 301
Lines analyzed = 452910 in approximately 10.81 seconds (41897 lines/second)
Physical Source Lines of Code (SLOC) = 393723
Hits@level = [0] 120 [1]  79 [2] 191 [3]   1 [4]  30 [5]   0
Hits@level+ = [0+] 421 [1+] 301 [2+] 222 [3+]  31 [4+]  30 [5+]   0
Hits/KSLOC@level+ = [0+] 1.06928 [1+] 0.764497 [2+] 0.563848 [3+] 0.0787356 [4+] 0.0761957 [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.