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/pinot-1.10/Tokenize/FilterUtils.h
Examining data/pinot-1.10/Tokenize/FilterUtils.cpp
Examining data/pinot-1.10/Tokenize/filters/ExternalFilter.cc
Examining data/pinot-1.10/Tokenize/filters/FilterFactory.cc
Examining data/pinot-1.10/Tokenize/filters/TextFilter.cc
Examining data/pinot-1.10/Tokenize/filters/ChmFilter.h
Examining data/pinot-1.10/Tokenize/filters/Exiv2ImageFilter.h
Examining data/pinot-1.10/Tokenize/filters/ArchiveFilter.h
Examining data/pinot-1.10/Tokenize/filters/TagLibMusicFilter.cc
Examining data/pinot-1.10/Tokenize/filters/ExifImageFilter.h
Examining data/pinot-1.10/Tokenize/filters/Filter.h
Examining data/pinot-1.10/Tokenize/filters/GMimeMboxFilter.cc
Examining data/pinot-1.10/Tokenize/filters/XmlFilter.h
Examining data/pinot-1.10/Tokenize/filters/Filter.cc
Examining data/pinot-1.10/Tokenize/filters/FileOutputFilter.h
Examining data/pinot-1.10/Tokenize/filters/FilterFactory.h
Examining data/pinot-1.10/Tokenize/filters/HtmlParser.h
Examining data/pinot-1.10/Tokenize/filters/Exiv2ImageFilter.cc
Examining data/pinot-1.10/Tokenize/filters/HtmlParser.cc
Examining data/pinot-1.10/Tokenize/filters/ArchiveFilter.cc
Examining data/pinot-1.10/Tokenize/filters/GMimeMboxFilter.h
Examining data/pinot-1.10/Tokenize/filters/TextFilter.h
Examining data/pinot-1.10/Tokenize/filters/TagLibMusicFilter.h
Examining data/pinot-1.10/Tokenize/filters/HtmlFilter.h
Examining data/pinot-1.10/Tokenize/filters/XmlFilter.cc
Examining data/pinot-1.10/Tokenize/filters/FileOutputFilter.cc
Examining data/pinot-1.10/Tokenize/filters/HtmlFilter.cc
Examining data/pinot-1.10/Tokenize/filters/ChmFilter.cc
Examining data/pinot-1.10/Tokenize/filters/ExternalFilter.h
Examining data/pinot-1.10/Tokenize/TextConverter.cpp
Examining data/pinot-1.10/Tokenize/TextConverter.h
Examining data/pinot-1.10/Monitor/INotifyMonitor.h
Examining data/pinot-1.10/Monitor/MonitorInterface.h
Examining data/pinot-1.10/Monitor/INotifyMonitor.cpp
Examining data/pinot-1.10/Monitor/MonitorEvent.cpp
Examining data/pinot-1.10/Monitor/MonitorEvent.h
Examining data/pinot-1.10/Monitor/MonitorHandler.h
Examining data/pinot-1.10/Monitor/MonitorHandler.cpp
Examining data/pinot-1.10/Monitor/MonitorFactory.h
Examining data/pinot-1.10/Monitor/MonitorFactory.cpp
Examining data/pinot-1.10/Core/pinot-dbus-daemon.cpp
Examining data/pinot-1.10/Core/UniqueApplication.cpp
Examining data/pinot-1.10/Core/DaemonState.cpp
Examining data/pinot-1.10/Core/OnDiskHandler.h
Examining data/pinot-1.10/Core/pinot-index.cpp
Examining data/pinot-1.10/Core/WorkerThread.h
Examining data/pinot-1.10/Core/PinotSettings.cpp
Examining data/pinot-1.10/Core/OnDiskHandler.cpp
Examining data/pinot-1.10/Core/ServerThreads.cpp
Examining data/pinot-1.10/Core/UniqueApplication.h
Examining data/pinot-1.10/Core/DaemonState.h
Examining data/pinot-1.10/Core/WorkerThread.cpp
Examining data/pinot-1.10/Core/PinotSettings.h
Examining data/pinot-1.10/Core/WorkerThreads.h
Examining data/pinot-1.10/Core/pinot-search.cpp
Examining data/pinot-1.10/Core/WorkerThreads.cpp
Examining data/pinot-1.10/Core/ServerThreads.h
Examining data/pinot-1.10/IndexSearch/Xapian/LanguageDetector.cpp
Examining data/pinot-1.10/IndexSearch/Xapian/XapianIndex.h
Examining data/pinot-1.10/IndexSearch/Xapian/XapianDatabase.cpp
Examining data/pinot-1.10/IndexSearch/Xapian/XapianEngine.h
Examining data/pinot-1.10/IndexSearch/Xapian/ModuleExports.cpp
Examining data/pinot-1.10/IndexSearch/Xapian/XapianDatabaseFactory.cpp
Examining data/pinot-1.10/IndexSearch/Xapian/XapianDatabase.h
Examining data/pinot-1.10/IndexSearch/Xapian/AbstractGenerator.cpp
Examining data/pinot-1.10/IndexSearch/Xapian/XapianEngine.cpp
Examining data/pinot-1.10/IndexSearch/Xapian/AbstractGenerator.h
Examining data/pinot-1.10/IndexSearch/Xapian/XapianDatabaseFactory.h
Examining data/pinot-1.10/IndexSearch/Xapian/XapianIndex.cpp
Examining data/pinot-1.10/IndexSearch/Xapian/LanguageDetector.h
Examining data/pinot-1.10/IndexSearch/ModuleFactory.cpp
Examining data/pinot-1.10/IndexSearch/SherlockParser.cpp
Examining data/pinot-1.10/IndexSearch/SherlockParser.h
Examining data/pinot-1.10/IndexSearch/WebEngine.h
Examining data/pinot-1.10/IndexSearch/ModuleFactory.h
Examining data/pinot-1.10/IndexSearch/OpenSearchParser.cpp
Examining data/pinot-1.10/IndexSearch/DBusIndex.h
Examining data/pinot-1.10/IndexSearch/SearchEngineInterface.cpp
Examining data/pinot-1.10/IndexSearch/DBusIndex.cpp
Examining data/pinot-1.10/IndexSearch/ResultsExporter.cpp
Examining data/pinot-1.10/IndexSearch/OpenSearchParser.h
Examining data/pinot-1.10/IndexSearch/FieldMapperInterface.h
Examining data/pinot-1.10/IndexSearch/cjkv/CJKVTokenizer.cc
Examining data/pinot-1.10/IndexSearch/cjkv/CJKVTokenizer.h
Examining data/pinot-1.10/IndexSearch/PluginWebEngine.h
Examining data/pinot-1.10/IndexSearch/PluginWebEngine.cpp
Examining data/pinot-1.10/IndexSearch/FilterWrapper.cpp
Examining data/pinot-1.10/IndexSearch/ModuleProperties.h
Examining data/pinot-1.10/IndexSearch/SearchPluginProperties.h
Examining data/pinot-1.10/IndexSearch/SearchPluginProperties.cpp
Examining data/pinot-1.10/IndexSearch/FilterWrapper.h
Examining data/pinot-1.10/IndexSearch/IndexInterface.h
Examining data/pinot-1.10/IndexSearch/pinot-label.cpp
Examining data/pinot-1.10/IndexSearch/SearchEngineInterface.h
Examining data/pinot-1.10/IndexSearch/WebEngine.cpp
Examining data/pinot-1.10/IndexSearch/ResultsExporter.h
Examining data/pinot-1.10/IndexSearch/QueryProperties.h
Examining data/pinot-1.10/IndexSearch/PluginParsers.h
Examining data/pinot-1.10/IndexSearch/QueryProperties.cpp
Examining data/pinot-1.10/Utils/NLS.h
Examining data/pinot-1.10/Utils/Document.cpp
Examining data/pinot-1.10/Utils/DocumentInfo.h
Examining data/pinot-1.10/Utils/Languages.cpp
Examining data/pinot-1.10/Utils/Languages.h
Examining data/pinot-1.10/Utils/CommandLine.cpp
Examining data/pinot-1.10/Utils/Timer.cpp
Examining data/pinot-1.10/Utils/xdgmime/xdgmime.h
Examining data/pinot-1.10/Utils/xdgmime/xdgmimeglob.h
Examining data/pinot-1.10/Utils/xdgmime/xdgmimealias.h
Examining data/pinot-1.10/Utils/xdgmime/xdgmimemagic.c
Examining data/pinot-1.10/Utils/xdgmime/xdgmimealias.c
Examining data/pinot-1.10/Utils/xdgmime/xdgmimeint.c
Examining data/pinot-1.10/Utils/xdgmime/xdgmimecache.h
Examining data/pinot-1.10/Utils/xdgmime/xdgmimecache.c
Examining data/pinot-1.10/Utils/xdgmime/xdgmimeglob.c
Examining data/pinot-1.10/Utils/xdgmime/xdgmimeint.h
Examining data/pinot-1.10/Utils/xdgmime/xdgmimemagic.h
Examining data/pinot-1.10/Utils/xdgmime/xdgmime.c
Examining data/pinot-1.10/Utils/xdgmime/xdgmimeparent.h
Examining data/pinot-1.10/Utils/xdgmime/xdgmimeparent.c
Examining data/pinot-1.10/Utils/MIMEScanner.h
Examining data/pinot-1.10/Utils/TimeConverter.h
Examining data/pinot-1.10/Utils/Document.h
Examining data/pinot-1.10/Utils/Memory.cpp
Examining data/pinot-1.10/Utils/StringManip.h
Examining data/pinot-1.10/Utils/StringManip.cpp
Examining data/pinot-1.10/Utils/DocumentInfo.cpp
Examining data/pinot-1.10/Utils/CommandLine.h
Examining data/pinot-1.10/Utils/Memory.h
Examining data/pinot-1.10/Utils/Visibility.h
Examining data/pinot-1.10/Utils/TimeConverter.cpp
Examining data/pinot-1.10/Utils/Timer.h
Examining data/pinot-1.10/Utils/MIMEScanner.cpp
Examining data/pinot-1.10/Utils/Url.h
Examining data/pinot-1.10/Utils/Url.cpp
Examining data/pinot-1.10/UI/GTK2/src/launcherDialog_glade.cc
Examining data/pinot-1.10/UI/GTK2/src/mainWindow.cc
Examining data/pinot-1.10/UI/GTK2/src/UIThreads.cc
Examining data/pinot-1.10/UI/GTK2/src/statisticsDialog_glade.cc
Examining data/pinot-1.10/UI/GTK2/src/pinot.cc
Examining data/pinot-1.10/UI/GTK2/src/launcherDialog.cc
Examining data/pinot-1.10/UI/GTK2/src/EnginesTree.cc
Examining data/pinot-1.10/UI/GTK2/src/indexDialog_glade.cc
Examining data/pinot-1.10/UI/GTK2/src/queryDialog_glade.cc
Examining data/pinot-1.10/UI/GTK2/src/importDialog.cc
Examining data/pinot-1.10/UI/GTK2/src/importDialog_glade.cc
Examining data/pinot-1.10/UI/GTK2/src/mainWindow_glade.cc
Examining data/pinot-1.10/UI/GTK2/src/prefsWindow_glade.cc
Examining data/pinot-1.10/UI/GTK2/src/PinotUtils.cc
Examining data/pinot-1.10/UI/GTK2/src/Notebook.cc
Examining data/pinot-1.10/UI/GTK2/src/IndexPage.cc
Examining data/pinot-1.10/UI/GTK2/src/prefsWindow.cc
Examining data/pinot-1.10/UI/GTK2/src/ModelColumns.cc
Examining data/pinot-1.10/UI/GTK2/src/propertiesDialog_glade.cc
Examining data/pinot-1.10/UI/GTK2/src/propertiesDialog.cc
Examining data/pinot-1.10/UI/GTK2/src/ResultsTree.cc
Examining data/pinot-1.10/UI/GTK2/src/indexDialog.cc
Examining data/pinot-1.10/UI/GTK2/src/statisticsDialog.cc
Examining data/pinot-1.10/UI/GTK2/src/queryDialog.cc
Examining data/pinot-1.10/SQL/CrawlHistory.cpp
Examining data/pinot-1.10/SQL/SQLiteBase.h
Examining data/pinot-1.10/SQL/MetaDataBackup.cpp
Examining data/pinot-1.10/SQL/ViewHistory.cpp
Examining data/pinot-1.10/SQL/MetaDataBackup.h
Examining data/pinot-1.10/SQL/QueryHistory.h
Examining data/pinot-1.10/SQL/ActionQueue.h
Examining data/pinot-1.10/SQL/SQLDB.cpp
Examining data/pinot-1.10/SQL/SQLDB.h
Examining data/pinot-1.10/SQL/QueryHistory.cpp
Examining data/pinot-1.10/SQL/ActionQueue.cpp
Examining data/pinot-1.10/SQL/SQLiteBase.cpp
Examining data/pinot-1.10/SQL/CrawlHistory.h
Examining data/pinot-1.10/SQL/ViewHistory.h
Examining data/pinot-1.10/Collect/FileCollector.h
Examining data/pinot-1.10/Collect/DownloaderInterface.cpp
Examining data/pinot-1.10/Collect/DownloaderFactory.h
Examining data/pinot-1.10/Collect/DownloaderInterface.h
Examining data/pinot-1.10/Collect/DownloaderFactory.cpp
Examining data/pinot-1.10/Collect/NeonDownloader.h
Examining data/pinot-1.10/Collect/FileCollector.cpp
Examining data/pinot-1.10/Collect/CurlDownloader.cpp
Examining data/pinot-1.10/Collect/CurlDownloader.h

FINAL RESULTS:

data/pinot-1.10/Monitor/INotifyMonitor.cpp:129:6:  [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.
	if (access(location.c_str(), F_OK) != 0)
data/pinot-1.10/Tokenize/FilterUtils.cpp:250:19:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
		char *pInFile = mktemp(inTemplate);
data/pinot-1.10/Tokenize/filters/ExternalFilter.cc:416:3:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execl("/bin/sh", "/bin/sh", "-c", commandLine.c_str(), (void*)NULL);
data/pinot-1.10/UI/GTK2/src/mainWindow.cc:1753:21:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
				char *pInFile = mktemp(inTemplate);
data/pinot-1.10/Utils/CommandLine.cpp:199:3:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execl("/bin/sh", "/bin/sh", "-c", commandLine.c_str(), (void*)NULL);
data/pinot-1.10/Utils/MIMEScanner.cpp:330:11:  [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.
	else if (access(desktopFile.c_str(), F_OK) == 0)
data/pinot-1.10/Utils/xdgmime/xdgmime.c:139: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 (file_name, directory); strcat (file_name, "/mime/mime.cache");
data/pinot-1.10/Utils/xdgmime/xdgmime.c:159: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 (file_name, directory); strcat (file_name, "/mime/globs");
data/pinot-1.10/Utils/xdgmime/xdgmime.c:171: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 (file_name, directory); strcat (file_name, "/mime/magic");
data/pinot-1.10/Utils/xdgmime/xdgmime.c:183: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 (file_name, directory); strcat (file_name, "/mime/aliases");
data/pinot-1.10/Utils/xdgmime/xdgmime.c:188: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 (file_name, directory); strcat (file_name, "/mime/subclasses");
data/pinot-1.10/Utils/xdgmime/xdgmime.c:221:4:  [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 (guessed_xdg_home, home);
data/pinot-1.10/Utils/xdgmime/xdgmime.c:323: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 (file_name, directory); strcat (file_name, "/mime/mime.cache");
data/pinot-1.10/Utils/xdgmime/xdgmime.c:338: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 (file_name, directory); strcat (file_name, "/mime/globs");
data/pinot-1.10/Utils/xdgmime/xdgmime.c:349: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 (file_name, directory); strcat (file_name, "/mime/magic");
data/pinot-1.10/Core/PinotSettings.cpp:156:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char *pEnvVar = getenv("PINOT_MINIMUM_DISK_SPACE");
data/pinot-1.10/Core/PinotSettings.cpp:196:19:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		char *homeDir = getenv("HOME");
data/pinot-1.10/Core/WorkerThread.cpp:278:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char *pEnvVar = getenv("PINOT_MAXIMUM_INDEX_THREADS");
data/pinot-1.10/Core/pinot-dbus-daemon.cpp:378:19:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	int optionChar = getopt_long(argc, argv, "hip:rv", g_longOptions, &longOptionIndex);
data/pinot-1.10/Core/pinot-dbus-daemon.cpp:427:16:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		optionChar = getopt_long(argc, argv, "hip:rv", g_longOptions, &longOptionIndex);
data/pinot-1.10/Core/pinot-index.cpp:215:19:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	int optionChar = getopt_long(argc, argv, "b:cd:hio:sv", g_longOptions, &longOptionIndex);
data/pinot-1.10/Core/pinot-index.cpp:270:16:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		optionChar = getopt_long(argc, argv, "b:cd:hio:sv", g_longOptions, &longOptionIndex);
data/pinot-1.10/Core/pinot-search.cpp:98:19:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	int optionChar = getopt_long(argc, argv, "c:dhlm:rs:vx:", g_longOptions, &longOptionIndex);
data/pinot-1.10/Core/pinot-search.cpp:152:16:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		optionChar = getopt_long(argc, argv, "c:dhlm:rs:vx:", g_longOptions, &longOptionIndex);
data/pinot-1.10/IndexSearch/Xapian/XapianDatabase.cpp:156:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char *pEnvVar = getenv("PINOT_SPELLING_DB");
data/pinot-1.10/IndexSearch/pinot-label.cpp:91:19:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	int optionChar = getopt_long(argc, argv, "ghls:v", g_longOptions, &longOptionIndex);
data/pinot-1.10/IndexSearch/pinot-label.cpp:126:16:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		optionChar = getopt_long(argc, argv, "ghls:v", g_longOptions, &longOptionIndex);
data/pinot-1.10/Tokenize/FilterUtils.cpp:88:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char *pEnvVar = getenv("PINOT_MAXIMUM_NESTED_SIZE");
data/pinot-1.10/UI/GTK2/src/mainWindow.cc:149:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char *pEnvVar = getenv("PINOT_MAXIMUM_QUERY_RESULTS");
data/pinot-1.10/UI/GTK2/src/pinot.cc:161:19:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	int optionChar = getopt_long(argc, argv, "hpv", g_longOptions, &longOptionIndex);
data/pinot-1.10/UI/GTK2/src/pinot.cc:190:16:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		optionChar = getopt_long(argc, argv, "hpv", g_longOptions, &longOptionIndex);
data/pinot-1.10/Utils/xdgmime/xdgmime.c:204:19:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  xdg_data_home = getenv ("XDG_DATA_HOME");
data/pinot-1.10/Utils/xdgmime/xdgmime.c:214:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      home = getenv ("HOME");
data/pinot-1.10/Utils/xdgmime/xdgmime.c:231:19:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  xdg_data_dirs = getenv ("XDG_DATA_DIRS");
data/pinot-1.10/Collect/CurlDownloader.cpp:84:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(pInfo->m_pContent + pInfo->m_contentLen, pData, totalSize);
data/pinot-1.10/Collect/CurlDownloader.cpp:244:2:  [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 pBuffer[1024];
data/pinot-1.10/Collect/CurlDownloader.cpp:407:2:  [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 pBuffer[1024];
data/pinot-1.10/Collect/CurlDownloader.cpp:417:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *pFile = fopen(fileLocation.c_str(), "r");
data/pinot-1.10/Collect/DownloaderInterface.cpp:151:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		m_proxyPort = (unsigned int )atoi(value.c_str());
data/pinot-1.10/Collect/DownloaderInterface.cpp:159:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		m_timeout = (unsigned int)atoi(value.c_str());
data/pinot-1.10/Core/DaemonState.cpp:279:4:  [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 docIdStr[64];
data/pinot-1.10/Core/PinotSettings.cpp:752:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			m_xPos = atoi(nodeContent.c_str());
data/pinot-1.10/Core/PinotSettings.cpp:756:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			m_yPos = atoi(nodeContent.c_str());
data/pinot-1.10/Core/PinotSettings.cpp:760:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			m_width = atoi(nodeContent.c_str());
data/pinot-1.10/Core/PinotSettings.cpp:764:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			m_height = atoi(nodeContent.c_str());
data/pinot-1.10/Core/PinotSettings.cpp:768:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			m_panePos = atoi(nodeContent.c_str());
data/pinot-1.10/Core/PinotSettings.cpp:1026:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			int count = atoi(nodeContent.c_str());
data/pinot-1.10/Core/PinotSettings.cpp:1183:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		gushort value = (gushort)atoi(nodeContent.c_str());
data/pinot-1.10/Core/PinotSettings.cpp:1233:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			m_proxyPort = (unsigned int)atoi(nodeContent.c_str());
data/pinot-1.10/Core/PinotSettings.cpp:1472:2:  [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 numStr[64];
data/pinot-1.10/Core/ServerThreads.cpp:89: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).
	xmlFile.open(xmlFileName.c_str());
data/pinot-1.10/Core/ServerThreads.cpp:829:33:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				docIds.insert((unsigned int)atoi(ppDocIds[idIndex]));
data/pinot-1.10/Core/UniqueApplication.cpp:82: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).
	pidFile.open(pidFileName.c_str(), std::ios::in);
data/pinot-1.10/Core/UniqueApplication.cpp:121:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			cmdLineFile.open(cmdLineFileName.str().c_str(), std::ios::in);
data/pinot-1.10/Core/UniqueApplication.cpp:168: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).
	pidFile.open(pidFileName.c_str(), std::ios::out);
data/pinot-1.10/Core/WorkerThread.cpp:282:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		int threadsNum = atoi(pEnvVar);
data/pinot-1.10/Core/WorkerThreads.cpp:613:4:  [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 portStr[64];
data/pinot-1.10/Core/WorkerThreads.cpp:766:4:  [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 portStr[64];
data/pinot-1.10/Core/pinot-dbus-daemon.cpp:405:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					int newPriority = atoi(optarg);
data/pinot-1.10/Core/pinot-dbus-daemon.cpp:517:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		g_outputFile.open(fileName.c_str());
data/pinot-1.10/Core/pinot-search.cpp:122:39:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					maxResultsCount = (unsigned int )atoi(optarg);
data/pinot-1.10/Core/pinot-search.cpp:267:4:  [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 portStr[64];
data/pinot-1.10/IndexSearch/DBusIndex.cpp:192:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			docInfo.setSize((off_t )atoi(pValue));
data/pinot-1.10/IndexSearch/OpenSearchParser.cpp:204:39:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					totalResults = min((unsigned int)atoi(nodeContent.c_str()), totalResults);
data/pinot-1.10/IndexSearch/OpenSearchParser.cpp:215:39:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					firstResultIndex = (unsigned int)atoi(nodeContent.c_str());
data/pinot-1.10/IndexSearch/PluginWebEngine.cpp:232:2:  [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 countStr[64];
data/pinot-1.10/IndexSearch/ResultsExporter.cpp:103:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	m_outputFile.open(m_fileName.c_str());
data/pinot-1.10/IndexSearch/ResultsExporter.cpp:193:2:  [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 numStr[64];
data/pinot-1.10/IndexSearch/SherlockParser.cpp:680:48:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				properties.m_nextIncrement = (unsigned int)atoi(nextFactor.c_str());
data/pinot-1.10/IndexSearch/SherlockParser.cpp:692:43:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				properties.m_nextBase = (unsigned int)atoi(nextValue.c_str());
data/pinot-1.10/IndexSearch/Xapian/LanguageDetector.cpp:122:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char *catResults[10];
data/pinot-1.10/IndexSearch/Xapian/XapianDatabase.cpp:208:38:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			unsigned int port = (unsigned int)atoi(portStr.c_str());
data/pinot-1.10/IndexSearch/Xapian/XapianDatabase.cpp:229:56:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
					Xapian::Database remoteDatabase = Xapian::Remote::open("ssh", args);
data/pinot-1.10/IndexSearch/Xapian/XapianDatabase.cpp:238:56:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
					Xapian::Database remoteDatabase = Xapian::Remote::open(hostName, port);
data/pinot-1.10/IndexSearch/Xapian/XapianDatabase.cpp:668:27:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		time_t timeT = (time_t )atol(modTime.c_str());
data/pinot-1.10/IndexSearch/Xapian/XapianDatabase.cpp:674:24:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		pDoc->setSize((off_t)atol(bytesSize.c_str()));
data/pinot-1.10/IndexSearch/Xapian/XapianEngine.cpp:331:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				inputFile.open(fileName.c_str());
data/pinot-1.10/IndexSearch/cjkv/CJKVTokenizer.cc:406:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char p[sizeof(gunichar) + 1];
data/pinot-1.10/IndexSearch/cjkv/CJKVTokenizer.cc:470: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.
			unsigned char p[sizeof(gunichar) + 1];
data/pinot-1.10/Monitor/INotifyMonitor.cpp:53: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 errBuffer[1024];
data/pinot-1.10/Monitor/INotifyMonitor.cpp:61:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	inputFile.open("/proc/sys/fs/inotify/max_user_watches");
data/pinot-1.10/Monitor/INotifyMonitor.cpp:212:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[1024];
data/pinot-1.10/SQL/CrawlHistory.cpp:253:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			sources[(unsigned int)atoi(row->getColumn(0).c_str())] = Url::unescapeUrl(row->getColumn(1));
data/pinot-1.10/SQL/CrawlHistory.cpp:330:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			date = (time_t)atoi(row->getColumn(1).c_str());
data/pinot-1.10/SQL/CrawlHistory.cpp:459:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			errNum = atoi(row->getColumn(0).c_str());
data/pinot-1.10/SQL/CrawlHistory.cpp:460:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			date = (time_t)atoi(row->getColumn(1).c_str());
data/pinot-1.10/SQL/QueryHistory.cpp:198:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			int runDate = atoi(row->getColumn(4).c_str());
data/pinot-1.10/SQL/QueryHistory.cpp:308:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			int runDate = atoi(row->getColumn(0).c_str());
data/pinot-1.10/SQL/SQLDB.cpp:88:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		totalCount = atoi(row->getColumn(0).c_str());
data/pinot-1.10/SQL/SQLiteBase.cpp:316:3:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		open();
data/pinot-1.10/SQL/SQLiteBase.cpp:347: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).
void SQLiteBase::open(void)
data/pinot-1.10/SQL/SQLiteBase.cpp:478:2:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	open();
data/pinot-1.10/SQL/SQLiteBase.cpp:635:3:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		open();
data/pinot-1.10/SQL/SQLiteBase.cpp:669:3:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		open();
data/pinot-1.10/SQL/SQLiteBase.h:132: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).
		void open(void);
data/pinot-1.10/Tokenize/FilterUtils.cpp:244: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 inTemplate[18] = "/tmp/filterXXXXXX";
data/pinot-1.10/Tokenize/FilterUtils.cpp:247:14:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
		int inFd = mkstemp(inTemplate);
data/pinot-1.10/Tokenize/FilterUtils.cpp:253:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			inFd = open(pInFile, O_RDONLY);
data/pinot-1.10/Tokenize/TextConverter.cpp:49:2:  [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 outputBuffer[8192];
data/pinot-1.10/Tokenize/filters/ArchiveFilter.cc:147:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(pVoidMem, static_cast<const void*>(data_ptr), data_length);
data/pinot-1.10/Tokenize/filters/ArchiveFilter.cc:189: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).
		m_fd = open(file_path.c_str(), openFlags|O_NOATIME);
data/pinot-1.10/Tokenize/filters/ArchiveFilter.cc:191: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).
		m_fd = open(file_path.c_str(), openFlags);
data/pinot-1.10/Tokenize/filters/ArchiveFilter.cc:198:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			m_fd = open(file_path.c_str(), openFlags);
data/pinot-1.10/Tokenize/filters/ChmFilter.cc:117:23:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		m_maxSize = (size_t)atol(prop_value.c_str());
data/pinot-1.10/Tokenize/filters/ChmFilter.cc:295:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((void*)pCopy, pUnitInfo, sizeof(struct chmUnitInfo));
data/pinot-1.10/Tokenize/filters/Exiv2ImageFilter.cc:103:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	timeTm.tm_year = atoi(ccyymmdd.substr(2, 4).c_str());
data/pinot-1.10/Tokenize/filters/Exiv2ImageFilter.cc:104:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	timeTm.tm_mon = atoi(ccyymmdd.substr(6, 2).c_str());
data/pinot-1.10/Tokenize/filters/Exiv2ImageFilter.cc:105:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	timeTm.tm_mday = atoi(ccyymmdd.substr(8, 2).c_str());
data/pinot-1.10/Tokenize/filters/Exiv2ImageFilter.cc:106:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	timeTm.tm_hour = atoi(hhmmss.substr(0, 2).c_str());
data/pinot-1.10/Tokenize/filters/Exiv2ImageFilter.cc:107:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	timeTm.tm_min = atoi(hhmmss.substr(2, 2).c_str());
data/pinot-1.10/Tokenize/filters/Exiv2ImageFilter.cc:108:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	timeTm.tm_sec = atoi(hhmmss.substr(4, 2).c_str());
data/pinot-1.10/Tokenize/filters/Exiv2ImageFilter.cc:113: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 timeStr[64];
data/pinot-1.10/Tokenize/filters/Exiv2ImageFilter.cc:138:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	timeTm.tm_year = atoi(value.substr(0, 4).c_str());
data/pinot-1.10/Tokenize/filters/Exiv2ImageFilter.cc:139:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	timeTm.tm_mon = atoi(value.substr(5, 2).c_str());
data/pinot-1.10/Tokenize/filters/Exiv2ImageFilter.cc:140:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	timeTm.tm_mday = atoi(value.substr(8, 2).c_str());
data/pinot-1.10/Tokenize/filters/Exiv2ImageFilter.cc:141:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	timeTm.tm_hour = atoi(value.substr(11, 2).c_str());
data/pinot-1.10/Tokenize/filters/Exiv2ImageFilter.cc:142:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	timeTm.tm_min = atoi(value.substr(14, 2).c_str());
data/pinot-1.10/Tokenize/filters/Exiv2ImageFilter.cc:143:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	timeTm.tm_sec = atoi(value.substr(17, 2).c_str());
data/pinot-1.10/Tokenize/filters/Exiv2ImageFilter.cc:148: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 timeStr[64];
data/pinot-1.10/Tokenize/filters/Exiv2ImageFilter.cc:239:54:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(m_filePath);
data/pinot-1.10/Tokenize/filters/FileOutputFilter.cc:63: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 readBuffer[4096];
data/pinot-1.10/Tokenize/filters/GMimeMboxFilter.cc:371:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int fd = open(filePath.c_str(), openFlags|O_NOATIME);
data/pinot-1.10/Tokenize/filters/GMimeMboxFilter.cc:373:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int fd = open(filePath.c_str(), openFlags);
data/pinot-1.10/Tokenize/filters/GMimeMboxFilter.cc:380:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = open(filePath.c_str(), openFlags);
data/pinot-1.10/Tokenize/filters/GMimeMboxFilter.cc:542:2:  [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 readBuffer[4096];
data/pinot-1.10/Tokenize/filters/GMimeMboxFilter.cc:1084:2:  [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 posStr[128];
data/pinot-1.10/Tokenize/filters/HtmlParser.cc:411:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		val = atoi(s.substr(p - s.begin(), end - p).c_str());
data/pinot-1.10/Tokenize/filters/HtmlParser.cc:427: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 seq[4];
data/pinot-1.10/Tokenize/filters/TagLibMusicFilter.cc:140: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 yearStr[64];
data/pinot-1.10/UI/GTK2/src/indexDialog.cc:89:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			port = (unsigned int)atoi(hostName.substr(colonPos + 1).c_str());
data/pinot-1.10/UI/GTK2/src/indexDialog.cc:232: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 portStr[64];
data/pinot-1.10/UI/GTK2/src/mainWindow.cc:153:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		int threadsNum = atoi(pEnvVar);
data/pinot-1.10/UI/GTK2/src/mainWindow.cc:1418: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 docsCountStr[64];
data/pinot-1.10/UI/GTK2/src/mainWindow.cc:1748: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 inTemplate[21] = "/tmp/pinottempXXXXXX";
data/pinot-1.10/UI/GTK2/src/mainWindow.cc:1750:16:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
				int inFd = mkstemp(inTemplate);
data/pinot-1.10/UI/GTK2/src/mainWindow.cc:1756:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
					inFd = open(pInFile, O_RDONLY);
data/pinot-1.10/UI/GTK2/src/mainWindow.cc:1794: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 docIdStr[64];
data/pinot-1.10/UI/GTK2/src/mainWindow.cc:1910: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 docIdStr[64];
data/pinot-1.10/UI/GTK2/src/mainWindow.cc:3911: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 threadsCountStr[64];
data/pinot-1.10/UI/GTK2/src/pinot.cc:288:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		g_outputFile.open(logFileName.c_str());
data/pinot-1.10/UI/GTK2/src/propertiesDialog.cc:51:2:  [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 numStr[128];
data/pinot-1.10/UI/GTK2/src/propertiesDialog.cc:383:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			termsFile.open(location.c_str());
data/pinot-1.10/UI/GTK2/src/statisticsDialog.cc:210:2:  [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 countStr[64];
data/pinot-1.10/UI/GTK2/src/statisticsDialog.cc:230:2:  [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 countStr[64];
data/pinot-1.10/UI/GTK2/src/statisticsDialog.cc:272: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).
	pidFile.open(pidFileName.c_str());
data/pinot-1.10/Utils/CommandLine.cpp:82: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 readBuffer[4096];
data/pinot-1.10/Utils/CommandLine.cpp:142:2:  [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 inTemplate[20] = "/tmp/command_XXXXXX";
data/pinot-1.10/Utils/CommandLine.cpp:158:10:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
		inFd = mkstemp(inTemplate);
data/pinot-1.10/Utils/Document.cpp:149: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(m_pData, data, length);
data/pinot-1.10/Utils/Document.cpp:195:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int fd = open(fileName.c_str(), openFlags|O_NOATIME);
data/pinot-1.10/Utils/Document.cpp:197:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int fd = open(fileName.c_str(), openFlags);
data/pinot-1.10/Utils/Document.cpp:204:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = open(fileName.c_str(), openFlags);
data/pinot-1.10/Utils/DocumentInfo.cpp:112:2:  [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 numStr[64];
data/pinot-1.10/Utils/DocumentInfo.cpp:203:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		m_indexId = (unsigned int)atoi(StringManip::extractField(unescapedInfo, "indexid=", "\n").c_str());
data/pinot-1.10/Utils/DocumentInfo.cpp:204:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		m_docId = (unsigned int)atoi(StringManip::extractField(unescapedInfo, "docid=", "\n").c_str());
data/pinot-1.10/Utils/TimeConverter.cpp:148: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 timeStr[64];
data/pinot-1.10/Utils/TimeConverter.cpp:199:2:  [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 dateStr[64];
data/pinot-1.10/Utils/TimeConverter.cpp:247:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	timeTm.tm_year = atoi(yyyymmdd.substr(0, 4).c_str());
data/pinot-1.10/Utils/TimeConverter.cpp:248:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	timeTm.tm_mon = atoi(yyyymmdd.substr(4, 2).c_str());
data/pinot-1.10/Utils/TimeConverter.cpp:249:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	timeTm.tm_mday = atoi(yyyymmdd.substr(6, 2).c_str());
data/pinot-1.10/Utils/TimeConverter.cpp:269:2:  [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 timeStr[64];
data/pinot-1.10/Utils/TimeConverter.cpp:317:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	timeTm.tm_hour = atoi(hhmmss.substr(0, 2).c_str());
data/pinot-1.10/Utils/TimeConverter.cpp:318:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	timeTm.tm_min = atoi(hhmmss.substr(2, 2).c_str());
data/pinot-1.10/Utils/TimeConverter.cpp:319:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	timeTm.tm_sec = atoi(hhmmss.substr(4, 2).c_str());
data/pinot-1.10/Utils/TimeConverter.cpp:348: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 timeStr[64];
data/pinot-1.10/Utils/Url.cpp:439:4:  [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 encodedStr[4];
data/pinot-1.10/Utils/Url.cpp:468:4:  [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 numberStr[3];
data/pinot-1.10/Utils/xdgmime/xdgmime.c:139:34:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcpy (file_name, directory); strcat (file_name, "/mime/mime.cache");
data/pinot-1.10/Utils/xdgmime/xdgmime.c:159:34:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcpy (file_name, directory); strcat (file_name, "/mime/globs");
data/pinot-1.10/Utils/xdgmime/xdgmime.c:171:34:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcpy (file_name, directory); strcat (file_name, "/mime/magic");
data/pinot-1.10/Utils/xdgmime/xdgmime.c:183:34:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcpy (file_name, directory); strcat (file_name, "/mime/aliases");
data/pinot-1.10/Utils/xdgmime/xdgmime.c:188:34:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcpy (file_name, directory); strcat (file_name, "/mime/subclasses");
data/pinot-1.10/Utils/xdgmime/xdgmime.c:222:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	  strcat (guessed_xdg_home, "/.local/share/");
data/pinot-1.10/Utils/xdgmime/xdgmime.c:323:34:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcpy (file_name, directory); strcat (file_name, "/mime/mime.cache");
data/pinot-1.10/Utils/xdgmime/xdgmime.c:338:34:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcpy (file_name, directory); strcat (file_name, "/mime/globs");
data/pinot-1.10/Utils/xdgmime/xdgmime.c:349:34:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcpy (file_name, directory); strcat (file_name, "/mime/magic");
data/pinot-1.10/Utils/xdgmime/xdgmime.c:462:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  const char *mime_types[5];
data/pinot-1.10/Utils/xdgmime/xdgmime.c:506:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  file = fopen (file_name, "r");
data/pinot-1.10/Utils/xdgmime/xdgmime.c:779: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 (result, parents, n);
data/pinot-1.10/Utils/xdgmime/xdgmimealias.c:124:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char line[255];
data/pinot-1.10/Utils/xdgmime/xdgmimealias.c:127:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  file = fopen (file_name, "r");
data/pinot-1.10/Utils/xdgmime/xdgmimecache.c:118:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fd = open (file_name, O_RDONLY|_O_BINARY, 0);
data/pinot-1.10/Utils/xdgmime/xdgmimecache.c:180:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		  ((((unsigned char *) data)[j + i]) & ((unsigned char *)cache->buffer)[mask_offset + j]))
data/pinot-1.10/Utils/xdgmime/xdgmimecache.c:191:76:  [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.
	      if (((unsigned char *)cache->buffer)[data_offset + j] != ((unsigned char *) data)[j + i])
data/pinot-1.10/Utils/xdgmime/xdgmimecache.c:573: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 stopchars[128];
data/pinot-1.10/Utils/xdgmime/xdgmimecache.c:680:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  const char *mime_types[2];
data/pinot-1.10/Utils/xdgmime/xdgmimecache.c:720:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  file = fopen (file_name, "r");
data/pinot-1.10/Utils/xdgmime/xdgmimecache.c:869: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 *all_parents[128]; /* we'll stop at 128 */ 
data/pinot-1.10/Utils/xdgmime/xdgmimecache.c:916: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 (result, all_parents, p * sizeof (char *));
data/pinot-1.10/Utils/xdgmime/xdgmimeglob.c:344: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 stopchars[128];
data/pinot-1.10/Utils/xdgmime/xdgmimeglob.c:523:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char line[255];
data/pinot-1.10/Utils/xdgmime/xdgmimeglob.c:525:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  glob_file = fopen (file_name, "r");
data/pinot-1.10/Utils/xdgmime/xdgmimeint.c:44:14:  [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 _xdg_utf8_skip_data[256] = {
data/pinot-1.10/Utils/xdgmime/xdgmimemagic.c:204: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 number_string[MAX_NUMBER_SIZE + 1];
data/pinot-1.10/Utils/xdgmime/xdgmimemagic.c:537:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		  ((((unsigned char *) data)[j + i]) & matchlet->mask[j]))
data/pinot-1.10/Utils/xdgmime/xdgmimemagic.c:548:45:  [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.
	      if (matchlet->value[j] != ((unsigned char *) data)[j + i])
data/pinot-1.10/Utils/xdgmime/xdgmimemagic.c:799: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 header[12];
data/pinot-1.10/Utils/xdgmime/xdgmimemagic.c:801:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  magic_file = fopen (file_name, "r");
data/pinot-1.10/Utils/xdgmime/xdgmimeparent.c:129:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char line[255];
data/pinot-1.10/Utils/xdgmime/xdgmimeparent.c:133:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  file = fopen (file_name, "r");
data/pinot-1.10/Collect/CurlDownloader.cpp:88: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).
	if (totalSize < strlen((const char*)pData))
data/pinot-1.10/Core/PinotSettings.cpp:158:4:  [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(pEnvVar) > 0))
data/pinot-1.10/Core/PinotSettings.cpp:455:6:  [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(pPasswd->pw_gecos) > 0))
data/pinot-1.10/Core/ServerThreads.cpp:97:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		xmlFile.read(pXmlBuffer, length);
data/pinot-1.10/Core/ServerThreads.cpp:982:36:  [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 (((pEngineType == NULL) || (strlen(pEngineType) == 0)) &&
data/pinot-1.10/Core/ServerThreads.cpp:983:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					((pEngineOption == NULL) || (strlen(pEngineOption) == 0)))
data/pinot-1.10/Core/WorkerThread.cpp:280:4:  [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(pEnvVar) > 0))
data/pinot-1.10/IndexSearch/Xapian/XapianDatabase.cpp:158:4:  [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(pEnvVar) > 0) &&
data/pinot-1.10/IndexSearch/cjkv/CJKVTokenizer.cc:201:36:  [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).
	string normalized_str(normalized, strlen(normalized));
data/pinot-1.10/IndexSearch/cjkv/CJKVTokenizer.cc:223: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).
	while (input_pos < strlen(stripped))
data/pinot-1.10/Monitor/INotifyMonitor.cpp:250:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int bytesRead = read(m_monitorFd, buffer, 1024);
data/pinot-1.10/SQL/SQLiteBase.cpp:41:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep(100000);
data/pinot-1.10/SQL/SQLiteBase.cpp:191:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
			usleep(150000);
data/pinot-1.10/SQL/SQLiteBase.cpp:578:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(150000);
data/pinot-1.10/SQL/SQLiteBase.cpp:615:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(150000);
data/pinot-1.10/Tokenize/FilterUtils.cpp:90:4:  [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(pEnvVar) > 0))
data/pinot-1.10/Tokenize/filters/FileOutputFilter.cc:64:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		bytesRead = read(fd, readBuffer, 4096);
data/pinot-1.10/UI/GTK2/src/mainWindow.cc:151:4:  [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(pEnvVar) > 0))
data/pinot-1.10/Utils/CommandLine.cpp:83:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		bytesRead = read(fd, readBuffer, 4096);
data/pinot-1.10/Utils/Document.cpp:250:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(fd, (void*)m_pData, fileStat.st_size) == fileStat.st_size)
data/pinot-1.10/Utils/Languages.cpp:93:28:  [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).
				min(language.length(), strlen(Languages::m_names[langNum]))) == 0)
data/pinot-1.10/Utils/Languages.cpp:112:28:  [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).
				min(language.length(), strlen(Languages::m_names[langNum]))) == 0)
data/pinot-1.10/Utils/MIMEScanner.cpp:616: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).
	if (strncasecmp(pType, xdg_mime_type_unknown, strlen(pType)) == 0)
data/pinot-1.10/Utils/MIMEScanner.cpp:627:58:  [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).
		(strncasecmp(pType, "application/x-mozilla-bookmarks", strlen(pType)) == 0))
data/pinot-1.10/Utils/xdgmime/xdgmime.c:138: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).
  file_name = malloc (strlen (directory) + strlen ("/mime/mime.cache") + 1);
data/pinot-1.10/Utils/xdgmime/xdgmime.c:138:44:  [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).
  file_name = malloc (strlen (directory) + strlen ("/mime/mime.cache") + 1);
data/pinot-1.10/Utils/xdgmime/xdgmime.c:158: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).
  file_name = malloc (strlen (directory) + strlen ("/mime/globs") + 1);
data/pinot-1.10/Utils/xdgmime/xdgmime.c:158:44:  [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).
  file_name = malloc (strlen (directory) + strlen ("/mime/globs") + 1);
data/pinot-1.10/Utils/xdgmime/xdgmime.c:170: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).
  file_name = malloc (strlen (directory) + strlen ("/mime/magic") + 1);
data/pinot-1.10/Utils/xdgmime/xdgmime.c:170:44:  [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).
  file_name = malloc (strlen (directory) + strlen ("/mime/magic") + 1);
data/pinot-1.10/Utils/xdgmime/xdgmime.c:182: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).
  file_name = malloc (strlen (directory) + strlen ("/mime/aliases") + 1);
data/pinot-1.10/Utils/xdgmime/xdgmime.c:182:44:  [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).
  file_name = malloc (strlen (directory) + strlen ("/mime/aliases") + 1);
data/pinot-1.10/Utils/xdgmime/xdgmime.c:187: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).
  file_name = malloc (strlen (directory) + strlen ("/mime/subclasses") + 1);
data/pinot-1.10/Utils/xdgmime/xdgmime.c:187:44:  [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).
  file_name = malloc (strlen (directory) + strlen ("/mime/subclasses") + 1);
data/pinot-1.10/Utils/xdgmime/xdgmime.c:220:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  guessed_xdg_home = malloc (strlen (home) + strlen ("/.local/share/") + 1);
data/pinot-1.10/Utils/xdgmime/xdgmime.c:220:47:  [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).
	  guessed_xdg_home = malloc (strlen (home) + strlen ("/.local/share/") + 1);
data/pinot-1.10/Utils/xdgmime/xdgmime.c:259:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy (dir, ptr, len);
data/pinot-1.10/Utils/xdgmime/xdgmime.c:322: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).
  file_name = malloc (strlen (directory) + strlen ("/mime/mime.cache") + 1);
data/pinot-1.10/Utils/xdgmime/xdgmime.c:322:44:  [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).
  file_name = malloc (strlen (directory) + strlen ("/mime/mime.cache") + 1);
data/pinot-1.10/Utils/xdgmime/xdgmime.c:337: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).
  file_name = malloc (strlen (directory) + strlen ("/mime/globs") + 1);
data/pinot-1.10/Utils/xdgmime/xdgmime.c:337:44:  [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).
  file_name = malloc (strlen (directory) + strlen ("/mime/globs") + 1);
data/pinot-1.10/Utils/xdgmime/xdgmime.c:348: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).
  file_name = malloc (strlen (directory) + strlen ("/mime/magic") + 1);
data/pinot-1.10/Utils/xdgmime/xdgmime.c:348:44:  [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).
  file_name = malloc (strlen (directory) + strlen ("/mime/magic") + 1);
data/pinot-1.10/Utils/xdgmime/xdgmime.c:700:12:  [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).
  length = strlen (mime);
data/pinot-1.10/Utils/xdgmime/xdgmimealias.c:146:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      sep[strlen (sep) -1] = '\000';
data/pinot-1.10/Utils/xdgmime/xdgmimecache.c:770:12:  [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).
  length = strlen (mime);
data/pinot-1.10/Utils/xdgmime/xdgmimeglob.c:542:13:  [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).
      colon[strlen (colon) -1] = '\000';
data/pinot-1.10/Utils/xdgmime/xdgmimemagic.c:51:28:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
# define getc_unlocked(fp) getc (fp)
data/pinot-1.10/Utils/xdgmime/xdgmimeparent.c:152:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      sep[strlen (sep) -1] = '\000';

ANALYSIS SUMMARY:

Hits = 249
Lines analyzed = 59819 in approximately 1.21 seconds (49638 lines/second)
Physical Source Lines of Code (SLOC) = 44194
Hits@level = [0]  71 [1]  49 [2] 166 [3]  19 [4]  15 [5]   0
Hits@level+ = [0+] 320 [1+] 249 [2+] 200 [3+]  34 [4+]  15 [5+]   0
Hits/KSLOC@level+ = [0+] 7.2408 [1+] 5.63425 [2+] 4.5255 [3+] 0.769335 [4+] 0.339413 [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.