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/bluefish-2.2.12/src/snr3.c
Examining data/bluefish-2.2.12/src/bftextview2.c
Examining data/bluefish-2.2.12/src/filebrowser2.h
Examining data/bluefish-2.2.12/src/undo_redo.c
Examining data/bluefish-2.2.12/src/msg_queue.h
Examining data/bluefish-2.2.12/src/plugin_zencoding/zeneditor-interface.h
Examining data/bluefish-2.2.12/src/plugin_zencoding/zencoding.h
Examining data/bluefish-2.2.12/src/plugin_zencoding/zeneditor-interface.c
Examining data/bluefish-2.2.12/src/plugin_zencoding/zencoding.c
Examining data/bluefish-2.2.12/src/plugin_about/about_rev.h
Examining data/bluefish-2.2.12/src/plugin_about/about.h
Examining data/bluefish-2.2.12/src/plugin_about/about.c
Examining data/bluefish-2.2.12/src/doc_comments.c
Examining data/bluefish-2.2.12/src/osxutils.h
Examining data/bluefish-2.2.12/src/plugin_htmlbar/html_table.h
Examining data/bluefish-2.2.12/src/plugin_htmlbar/rpopup.h
Examining data/bluefish-2.2.12/src/plugin_htmlbar/image.h
Examining data/bluefish-2.2.12/src/plugin_htmlbar/html.h
Examining data/bluefish-2.2.12/src/plugin_htmlbar/image_dialog.c
Examining data/bluefish-2.2.12/src/plugin_htmlbar/htmlbar.c
Examining data/bluefish-2.2.12/src/plugin_htmlbar/image.c
Examining data/bluefish-2.2.12/src/plugin_htmlbar/quickstart.h
Examining data/bluefish-2.2.12/src/plugin_htmlbar/wizards.h
Examining data/bluefish-2.2.12/src/plugin_htmlbar/html_diag.c
Examining data/bluefish-2.2.12/src/plugin_htmlbar/html_form.c
Examining data/bluefish-2.2.12/src/plugin_htmlbar/html2.c
Examining data/bluefish-2.2.12/src/plugin_htmlbar/rpopup.c
Examining data/bluefish-2.2.12/src/plugin_htmlbar/htmlbar_uimanager.h
Examining data/bluefish-2.2.12/src/plugin_htmlbar/wizards.c
Examining data/bluefish-2.2.12/src/plugin_htmlbar/cap.h
Examining data/bluefish-2.2.12/src/plugin_htmlbar/image_dialog.h
Examining data/bluefish-2.2.12/src/plugin_htmlbar/cap.c
Examining data/bluefish-2.2.12/src/plugin_htmlbar/prefs.c
Examining data/bluefish-2.2.12/src/plugin_htmlbar/html_diag.h
Examining data/bluefish-2.2.12/src/plugin_htmlbar/quickstart.c
Examining data/bluefish-2.2.12/src/plugin_htmlbar/html2.h
Examining data/bluefish-2.2.12/src/plugin_htmlbar/html_form.h
Examining data/bluefish-2.2.12/src/plugin_htmlbar/html_table.c
Examining data/bluefish-2.2.12/src/plugin_htmlbar/html.c
Examining data/bluefish-2.2.12/src/plugin_htmlbar/prefs.h
Examining data/bluefish-2.2.12/src/plugin_htmlbar/htmlbar_stock_icons.h
Examining data/bluefish-2.2.12/src/plugin_htmlbar/htmlbar_uimanager.c
Examining data/bluefish-2.2.12/src/plugin_htmlbar/htmlbar.h
Examining data/bluefish-2.2.12/src/languages.h
Examining data/bluefish-2.2.12/src/bftextview2_scanner.h
Examining data/bluefish-2.2.12/src/plugin_infbrowser/infb_wizard.c
Examining data/bluefish-2.2.12/src/plugin_infbrowser/infb_html.c
Examining data/bluefish-2.2.12/src/plugin_infbrowser/infb_load.h
Examining data/bluefish-2.2.12/src/plugin_infbrowser/infb_dtd.h
Examining data/bluefish-2.2.12/src/plugin_infbrowser/infb_docbook.h
Examining data/bluefish-2.2.12/src/plugin_infbrowser/infb_dtd.c
Examining data/bluefish-2.2.12/src/plugin_infbrowser/infb_load.c
Examining data/bluefish-2.2.12/src/plugin_infbrowser/infbrowser.c
Examining data/bluefish-2.2.12/src/plugin_infbrowser/infb_html.h
Examining data/bluefish-2.2.12/src/plugin_infbrowser/infb_gui.c
Examining data/bluefish-2.2.12/src/plugin_infbrowser/infb_gui.h
Examining data/bluefish-2.2.12/src/plugin_infbrowser/infb_text.c
Examining data/bluefish-2.2.12/src/plugin_infbrowser/infb_docbook.c
Examining data/bluefish-2.2.12/src/plugin_infbrowser/infbrowser.h
Examining data/bluefish-2.2.12/src/plugin_infbrowser/infb_text.h
Examining data/bluefish-2.2.12/src/plugin_infbrowser/infb_wizard.h
Examining data/bluefish-2.2.12/src/plugins.c
Examining data/bluefish-2.2.12/src/doc_text_tools.h
Examining data/bluefish-2.2.12/src/win32utils.h
Examining data/bluefish-2.2.12/src/doc_extern_tools.c
Examining data/bluefish-2.2.12/src/file_dialogs.h
Examining data/bluefish-2.2.12/src/file_autosave.h
Examining data/bluefish-2.2.12/src/project.c
Examining data/bluefish-2.2.12/src/gtk_easy.c
Examining data/bluefish-2.2.12/src/outputbox.c
Examining data/bluefish-2.2.12/src/snr3_files.c
Examining data/bluefish-2.2.12/src/bf_lib.h
Examining data/bluefish-2.2.12/src/async_queue.h
Examining data/bluefish-2.2.12/src/async_queue.c
Examining data/bluefish-2.2.12/src/document.c
Examining data/bluefish-2.2.12/src/file.h
Examining data/bluefish-2.2.12/src/external_commands.c
Examining data/bluefish-2.2.12/src/rcfile.c
Examining data/bluefish-2.2.12/src/bftextview2_scanner.c
Examining data/bluefish-2.2.12/src/compatibility.c
Examining data/bluefish-2.2.12/src/gtk_easy.h
Examining data/bluefish-2.2.12/src/filefilter.c
Examining data/bluefish-2.2.12/src/external_commands.h
Examining data/bluefish-2.2.12/src/blocksync.c
Examining data/bluefish-2.2.12/src/project.h
Examining data/bluefish-2.2.12/src/outputbox.h
Examining data/bluefish-2.2.12/src/ipc_bf2bf.c
Examining data/bluefish-2.2.12/src/plugin_charmap/charmap.h
Examining data/bluefish-2.2.12/src/plugin_charmap/charmap.c
Examining data/bluefish-2.2.12/src/plugin_charmap/charmap_gui.h
Examining data/bluefish-2.2.12/src/plugin_charmap/charmap_gui.c
Examining data/bluefish-2.2.12/src/file.c
Examining data/bluefish-2.2.12/src/bftextview2_markregion.h
Examining data/bluefish-2.2.12/src/file_dialogs.c
Examining data/bluefish-2.2.12/src/xmlstrings.h
Examining data/bluefish-2.2.12/src/bftextview2_spell.c
Examining data/bluefish-2.2.12/src/bfwin.h
Examining data/bluefish-2.2.12/src/languages.c
Examining data/bluefish-2.2.12/src/file_treemodel.h
Examining data/bluefish-2.2.12/src/xml_entity.c
Examining data/bluefish-2.2.12/src/doc_comments.h
Examining data/bluefish-2.2.12/src/bfwin.c
Examining data/bluefish-2.2.12/src/win32utils.c
Examining data/bluefish-2.2.12/src/bftextview2_identifier.h
Examining data/bluefish-2.2.12/src/print.c
Examining data/bluefish-2.2.12/src/ipc_bf2bf.h
Examining data/bluefish-2.2.12/src/resource.h
Examining data/bluefish-2.2.12/src/plugins.h
Examining data/bluefish-2.2.12/src/bluefish.h
Examining data/bluefish-2.2.12/src/print.h
Examining data/bluefish-2.2.12/src/bftextview2_markregion.c
Examining data/bluefish-2.2.12/src/pixmap.c
Examining data/bluefish-2.2.12/src/bookmark.h
Examining data/bluefish-2.2.12/src/compatibility.h
Examining data/bluefish-2.2.12/src/bftextview2_identifier.c
Examining data/bluefish-2.2.12/src/filefilter.h
Examining data/bluefish-2.2.12/src/bfwin_uimanager.h
Examining data/bluefish-2.2.12/src/bftextview2.h
Examining data/bluefish-2.2.12/src/doc_text_tools.c
Examining data/bluefish-2.2.12/src/bftextview2_langmgr.h
Examining data/bluefish-2.2.12/src/bf_lib.c
Examining data/bluefish-2.2.12/src/bftextview2_spell.h
Examining data/bluefish-2.2.12/src/dialog_utils.c
Examining data/bluefish-2.2.12/src/plugin_snippets/snippets.c
Examining data/bluefish-2.2.12/src/plugin_snippets/snippets_leaf_snr.h
Examining data/bluefish-2.2.12/src/plugin_snippets/snippets_gui.h
Examining data/bluefish-2.2.12/src/plugin_snippets/snippets_wizard.c
Examining data/bluefish-2.2.12/src/plugin_snippets/snippets_leaf_insert.c
Examining data/bluefish-2.2.12/src/plugin_snippets/snippetsmenu.c
Examining data/bluefish-2.2.12/src/plugin_snippets/snippets_wizard.h
Examining data/bluefish-2.2.12/src/plugin_snippets/snippets_leaf_insert.h
Examining data/bluefish-2.2.12/src/plugin_snippets/snippets_leaf_snr.c
Examining data/bluefish-2.2.12/src/plugin_snippets/snippetsmenu.h
Examining data/bluefish-2.2.12/src/plugin_snippets/snippets_gui.c
Examining data/bluefish-2.2.12/src/plugin_snippets/snippets.h
Examining data/bluefish-2.2.12/src/plugin_snippets/snippets_load.h
Examining data/bluefish-2.2.12/src/plugin_snippets/snippets_load.c
Examining data/bluefish-2.2.12/src/stringlist.c
Examining data/bluefish-2.2.12/src/bftextview2_patcompile.h
Examining data/bluefish-2.2.12/src/bftextview2_autocomp.h
Examining data/bluefish-2.2.12/src/undo_redo.h
Examining data/bluefish-2.2.12/src/blocksync.h
Examining data/bluefish-2.2.12/src/osxutils.c
Examining data/bluefish-2.2.12/src/document.h
Examining data/bluefish-2.2.12/src/encodings_dialog.c
Examining data/bluefish-2.2.12/src/rcfile.h
Examining data/bluefish-2.2.12/src/bookmark.c
Examining data/bluefish-2.2.12/src/preferences.h
Examining data/bluefish-2.2.12/src/bftextview2_private.h
Examining data/bluefish-2.2.12/src/pixmap.h
Examining data/bluefish-2.2.12/src/bftextview2_langmgr.c
Examining data/bluefish-2.2.12/src/xml_entity.h
Examining data/bluefish-2.2.12/src/filebrowser2.c
Examining data/bluefish-2.2.12/src/doc_extern_tools.h
Examining data/bluefish-2.2.12/src/msg_queue.c
Examining data/bluefish-2.2.12/src/file_treemodel.c
Examining data/bluefish-2.2.12/src/bftextview2_patcompile.c
Examining data/bluefish-2.2.12/src/stringlist.h
Examining data/bluefish-2.2.12/src/bftextview2_autocomp.c
Examining data/bluefish-2.2.12/src/dialog_utils.h
Examining data/bluefish-2.2.12/src/encodings_dialog.h
Examining data/bluefish-2.2.12/src/preferences.c
Examining data/bluefish-2.2.12/src/plugin_entities/entities.h
Examining data/bluefish-2.2.12/src/plugin_entities/entities.c
Examining data/bluefish-2.2.12/src/file_autosave.c
Examining data/bluefish-2.2.12/src/snr3_files.h
Examining data/bluefish-2.2.12/src/snr3.h
Examining data/bluefish-2.2.12/src/bluefish.c
Examining data/bluefish-2.2.12/src/bfwin_uimanager.c

FINAL RESULTS:

data/bluefish-2.2.12/src/ipc_bf2bf.c:270:2:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	chmod(ibf.path, 0600);
data/bluefish-2.2.12/src/bf_lib.c:994:2:  [4] (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).
	strcat(returnstring, &eff_link_to_filepath[common_lenght+1]);
data/bluefish-2.2.12/src/bf_lib.c:1088:7:  [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(filename, R_OK) == 0) {
data/bluefish-2.2.12/src/bf_lib.c:1210:7:  [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(main_v->securedir, W_OK|X_OK)==0) {
data/bluefish-2.2.12/src/file_dialogs.c:731:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(isotime, "%s%c%02ld%02ld", tmptime, gmtsign, hours, mins);
data/bluefish-2.2.12/src/plugin_about/about.c:47:12:  [4] (shell) ShellExecute:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if ((int) ShellExecute(NULL, "open", url, NULL, NULL, SW_SHOWNORMAL) <= 32) {
data/bluefish-2.2.12/src/plugin_about/about.c:57:2:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	system(string->str);
data/bluefish-2.2.12/src/plugin_htmlbar/html.c:1594: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(finalstring, cap("<OL>"));
data/bluefish-2.2.12/src/plugin_htmlbar/html.c:1596: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(finalstring, cap("<UL>"));
data/bluefish-2.2.12/src/plugin_htmlbar/html.c:1602:4:  [4] (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).
			strcat(finalstring, cap("\n\t<LI></LI>"));
data/bluefish-2.2.12/src/plugin_htmlbar/image.c:76:11:  [4] (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).
	retval = strcat(retval, main_v->props.image_thumbnailstring);
data/bluefish-2.2.12/src/plugin_htmlbar/image.c:78:11:  [4] (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).
	retval = strcat(retval, main_v->props.image_thumbnailtype);
data/bluefish-2.2.12/src/plugin_infbrowser/infb_load.c:182:8:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			if (access(tmparray[1], R_OK) == 0) {
data/bluefish-2.2.12/src/rcfile.c:366:6:  [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((char *) *(void **) tmpitem->pointer, tmpstring);
data/bluefish-2.2.12/src/rcfile.c:372:6:  [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((char *) *(void **) tmpitem->pointer, tmpstring2);
data/bluefish-2.2.12/src/stringlist.c:77:3:  [4] (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).
		strcat(finalstring, escaped1);
data/bluefish-2.2.12/src/bf_lib.c:141:28:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
	gchar *path = g_strconcat(g_get_home_dir(), "/."PACKAGE"/", filename, NULL);
data/bluefish-2.2.12/src/bf_lib.c:1216:53:  [3] (buffer) g_get_tmp_dir:
  This function is synonymous with 'getenv("TMP")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
	DEBUG_MSG("return_securedir,g_get_tmp_dir()=%s\n", g_get_tmp_dir());
data/bluefish-2.2.12/src/bf_lib.c:1221:34:  [3] (buffer) g_get_tmp_dir:
  This function is synonymous with 'getenv("TMP")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
	main_v->securedir = unique_path(g_get_tmp_dir(), "bluefish", NULL);
data/bluefish-2.2.12/src/bf_lib.c:1224:35:  [3] (buffer) g_get_tmp_dir:
  This function is synonymous with 'getenv("TMP")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
		main_v->securedir = unique_path(g_get_tmp_dir(), "bluefish", NULL);
data/bluefish-2.2.12/src/bftextview2_langmgr.c:2505:26:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
	homebfdir = g_strconcat(g_get_home_dir(), "/." PACKAGE "/", NULL);
data/bluefish-2.2.12/src/bluefish.c:155:38:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
				GFile *uri = g_file_new_for_path(g_get_home_dir());
data/bluefish-2.2.12/src/bluefish.c:262:34:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
	gchar *winlogpath = g_strconcat(g_get_home_dir(), "/."PACKAGE"/bluefish.log", NULL);
data/bluefish-2.2.12/src/bluefish.c:293:28:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *szStartPath = getenv("PATH");
data/bluefish-2.2.12/src/file_autosave.c:120:35:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
		gchar *path, *dir = g_strconcat(g_get_home_dir(), "/." PACKAGE "/autosave/", NULL);
data/bluefish-2.2.12/src/file_autosave.c:151:71:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
	gchar *path = g_strdup_printf("%s/." PACKAGE "/autosave_journal.%d", g_get_home_dir(), getpid());
data/bluefish-2.2.12/src/file_autosave.c:382:20:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
	dir = g_strconcat(g_get_home_dir(), "/." PACKAGE "/autosave/", NULL);
data/bluefish-2.2.12/src/file_autosave.c:420:21:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
		dir = g_strconcat(g_get_home_dir(), "/." PACKAGE "/autosave/", NULL);
data/bluefish-2.2.12/src/file_autosave.c:426:21:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
		dir = g_strconcat(g_get_home_dir(), "/." PACKAGE "/", NULL);
data/bluefish-2.2.12/src/file_autosave.c:492:71:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
	gchar *path = g_strdup_printf("%s/." PACKAGE "/autosave_journal.%d", g_get_home_dir(), getpid());
data/bluefish-2.2.12/src/file_treemodel.c:1723:15:  [3] (random) g_random_int:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	ftm->stamp = g_random_int();	/* Random int to check whether an iter belongs to our model */
data/bluefish-2.2.12/src/filebrowser2.c:1989:43:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
			fallback_basedir = g_file_new_for_path(g_get_home_dir()); /*If  basedir is not valid default to home directory */
data/bluefish-2.2.12/src/ipc_bf2bf.c:191:26:  [3] (buffer) g_get_tmp_dir:
  This function is synonymous with 'getenv("TMP")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
	path = g_build_filename(g_get_tmp_dir(), newfile, NULL);
data/bluefish-2.2.12/src/ipc_bf2bf.c:198:26:  [3] (buffer) g_get_tmp_dir:
  This function is synonymous with 'getenv("TMP")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
	path = g_build_filename(g_get_tmp_dir(), newfile, NULL);
data/bluefish-2.2.12/src/osxutils.c:108:6:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
	if (realpath(tmp, tmppath)) {
data/bluefish-2.2.12/src/osxutils.c:178:2:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
	realpath((*argv)[0], tmppath);
data/bluefish-2.2.12/src/osxutils.c:212:7:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
		if (realpath (locale_dir, tmploc) && !stat (tmploc,&sb) && S_ISDIR (sb.st_mode)) {
data/bluefish-2.2.12/src/osxutils.c:258:6:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
	if (realpath (locale_dir, tmploc) && !stat (tmploc,&sb) && S_ISDIR (sb.st_mode)) {
data/bluefish-2.2.12/src/plugin_htmlbar/image_dialog.c:1017:65:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
		gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(dialog), g_get_home_dir());
data/bluefish-2.2.12/src/plugin_infbrowser/infb_gui.c:141:53:  [3] (buffer) g_get_tmp_dir:
  This function is synonymous with 'getenv("TMP")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
							gchar *pstr = g_strdup_printf("%s/bfish_%ld",g_get_tmp_dir(),(long int)time(NULL));
data/bluefish-2.2.12/src/plugin_infbrowser/infb_gui.c:201:58:  [3] (buffer) g_get_tmp_dir:
  This function is synonymous with 'getenv("TMP")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
												gchar *pstr = g_strdup_printf("%s/bfish_%ld",g_get_tmp_dir(),(long int)time(NULL));
data/bluefish-2.2.12/src/plugin_infbrowser/infb_gui.c:310:31:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
	gchar *userdir = g_strconcat(g_get_home_dir(), "/."PACKAGE"/", NULL);
data/bluefish-2.2.12/src/plugin_infbrowser/infb_load.c:160:31:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
	gchar *userdir = g_strconcat(g_get_home_dir(), "/."PACKAGE"/", NULL);
data/bluefish-2.2.12/src/plugin_infbrowser/infb_load.c:211:31:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
	gchar *userdir = g_strconcat(g_get_home_dir(), "/."PACKAGE"/", NULL); 
data/bluefish-2.2.12/src/plugin_infbrowser/infb_load.c:249:31:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
	gchar *userdir = g_strconcat(g_get_home_dir(), "/."PACKAGE"/", NULL);
data/bluefish-2.2.12/src/plugin_infbrowser/infb_wizard.c:70:15:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
		g_strconcat(g_get_home_dir(), "/." PACKAGE "/bflib_",
data/bluefish-2.2.12/src/plugin_snippets/snippets_gui.c:432:46:  [3] (random) g_random_int_range:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			gtk_tooltip_set_text(tooltipwidget, _(arr[g_random_int_range(0, 3)]));
data/bluefish-2.2.12/src/plugins.c:211:21:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
	path = g_strconcat(g_get_home_dir(), "/."PACKAGE"/",NULL);
data/bluefish-2.2.12/src/project.c:243:36:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
		GFile *uri = g_file_new_for_path(g_get_home_dir());
data/bluefish-2.2.12/src/rcfile.c:1101:29:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
	file = g_file_new_for_path(g_get_home_dir());
data/bluefish-2.2.12/src/rcfile.c:1132:21:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
	return g_strconcat(g_get_home_dir(), "/." PACKAGE "/menudump_2", NULL);
data/bluefish-2.2.12/src/win32utils.c:65:7:  [3] (misc) AddAccessAllowedAce:
  This doesn't set the inheritance bits in the access control entry (ACE)
  header (CWE-732). Make sure that you set inheritance by hand if you wish it
  to inherit.
	if (!AddAccessAllowedAce(pACL, ACL_REVISION2, ACCESS_READ | ACCESS_WRITE, psidAdmin))
data/bluefish-2.2.12/src/bf_lib.c:531: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(dest, prev, len);
data/bluefish-2.2.12/src/bf_lib.c:542: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(dest,prev,strlen(prev)+1); /* this will also make sure there is a \0 at the end */
data/bluefish-2.2.12/src/bf_lib.c:991:3:  [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(returnstring, "../");
data/bluefish-2.2.12/src/bf_lib.c:1395:20:  [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.
	return ((strcmp ((char *)arr1[0], (char *)arr2[0]) == 0 )&&
data/bluefish-2.2.12/src/bf_lib.c:1395:37:  [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.
	return ((strcmp ((char *)arr1[0], (char *)arr2[0]) == 0 )&&
data/bluefish-2.2.12/src/bf_lib.c:1396: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.
			(strcmp ((char *)arr1[1], (char *)arr2[1]) == 0) &&
data/bluefish-2.2.12/src/bf_lib.c:1396:31:  [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.
			(strcmp ((char *)arr1[1], (char *)arr2[1]) == 0) &&
data/bluefish-2.2.12/src/bf_lib.c:1397: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.
			(strcmp ((char *)arr1[2], (char *)arr2[2]) == 0));
data/bluefish-2.2.12/src/bf_lib.c:1397:31:  [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.
			(strcmp ((char *)arr1[2], (char *)arr2[2]) == 0));
data/bluefish-2.2.12/src/bftextview2_langmgr.c:124:19:  [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.
	return ((strcmp((char *) arr1[0], (char *) arr2[0]) == 0) &&
data/bluefish-2.2.12/src/bftextview2_langmgr.c:124:37:  [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.
	return ((strcmp((char *) arr1[0], (char *) arr2[0]) == 0) &&
data/bluefish-2.2.12/src/bftextview2_langmgr.c:125: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.
			(strcmp((char *) arr1[1], (char *) arr2[1]) == 0));
data/bluefish-2.2.12/src/bftextview2_langmgr.c:125:31:  [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.
			(strcmp((char *) arr1[1], (char *) arr2[1]) == 0));
data/bluefish-2.2.12/src/bftextview2_patcompile.c:249:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
								memcpy(get_tablerow(st, context, newstate).row,
data/bluefish-2.2.12/src/bftextview2_patcompile.c:278:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
									memcpy(get_tablerow(st, context, newstate).row,
data/bluefish-2.2.12/src/bftextview2_patcompile.c:305:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
							memcpy(get_tablerow(st,context,newstate).row,
data/bluefish-2.2.12/src/bftextview2_patcompile.c:411: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 characters[NUMSCANCHARS];
data/bluefish-2.2.12/src/bftextview2_patcompile.c:690: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(g_array_index(tmptable, Ttablerow, 0).row,
data/bluefish-2.2.12/src/bfwin_uimanager.c:1861: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).
	outputbox(BFWIN(user_data), arr[2], atoi(arr[3]), atoi(arr[4]), atoi(arr[5]), arr[6]);
data/bluefish-2.2.12/src/bfwin_uimanager.c:1861:52:  [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).
	outputbox(BFWIN(user_data), arr[2], atoi(arr[3]), atoi(arr[4]), atoi(arr[5]), arr[6]);
data/bluefish-2.2.12/src/bfwin_uimanager.c:1861:66:  [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).
	outputbox(BFWIN(user_data), arr[2], atoi(arr[3]), atoi(arr[4]), atoi(arr[5]), arr[6]);
data/bluefish-2.2.12/src/bluefish.c:415:59:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
			startup->filenames = g_list_append(startup->filenames, tmpfile);
data/bluefish-2.2.12/src/bookmark.c:1507: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).
			b->offset = atoi(items[3]);
data/bluefish-2.2.12/src/bookmark.c:1509: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).
			b->len = atoi(items[5]);
data/bluefish-2.2.12/src/compatibility.c:37: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 f[3];
data/bluefish-2.2.12/src/filefilter.c:160:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	filter->mode = atoi(mode);
data/bluefish-2.2.12/src/filefilter.c:286: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).
	mode = atoi(strarr[1]);
data/bluefish-2.2.12/src/ipc_bf2bf.c:52: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 sun_path[104];			/* path name (gag) */
data/bluefish-2.2.12/src/msg_queue.c:111: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 mtext[MSQ_QUEUE_SMALL_SIZE];
data/bluefish-2.2.12/src/msg_queue.c:201: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 mtext[MSQ_QUEUE_SIZE];
data/bluefish-2.2.12/src/msg_queue.c:229:6:  [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 mtext[MSQ_QUEUE_SMALL_SIZE];
data/bluefish-2.2.12/src/msg_queue.c:266:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					int otherpid = atoi(msgp.mtext);
data/bluefish-2.2.12/src/msg_queue.c:301: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 mtext[MSQ_QUEUE_SIZE];
data/bluefish-2.2.12/src/msg_queue.c:318: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 mtext[MSQ_QUEUE_SMALL_SIZE];
data/bluefish-2.2.12/src/msg_queue.c:352: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 mtext[MSQ_QUEUE_SIZE];
data/bluefish-2.2.12/src/msg_queue.c:457: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 mtext[MSQ_QUEUE_SMALL_SIZE];
data/bluefish-2.2.12/src/outputbox.c:78: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).
		lineval = atoi(line);
data/bluefish-2.2.12/src/plugin_htmlbar/cap.c:41: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.
	static char *bucket[MAX_BUCKETS] = { 0 };	/* Initialize all to 0. */
data/bluefish-2.2.12/src/plugin_infbrowser/infb_gui.c:354:7:  [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).
		f = fopen(pstr,"w");
data/bluefish-2.2.12/src/plugin_infbrowser/infb_wizard.c:83:7:  [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).
	ff = fopen(fname, "w");
data/bluefish-2.2.12/src/preferences.c:338: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).
	i = (orig && orig[0]!='\0') ? atoi(orig) : defaultvalue;
data/bluefish-2.2.12/src/project.c:113: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(session, main_v->session, 47 * sizeof(gint));
data/bluefish-2.2.12/src/project.c:455:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				cursor_offset = atoi(tmparr[1]);
data/bluefish-2.2.12/src/project.c:457: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).
					goto_offset = atoi(tmparr[2]);
data/bluefish-2.2.12/src/project.c:459: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).
						is_active = atoi(tmparr[3]);
data/bluefish-2.2.12/src/rcfile.c:361: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).
					*(int *) (void *) tmpitem->pointer = atoi(tmpstring);
data/bluefish-2.2.12/src/snr3_files.c:170: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(newbufpos, bufferpos, so-prevpos);
data/bluefish-2.2.12/src/snr3_files.c:194: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(newbufpos, replacestring, replacelen);
data/bluefish-2.2.12/src/snr3_files.c:202: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(newbufpos, buffer+prevpos, buflen-prevpos+1);
data/bluefish-2.2.12/src/snr3_files.c:269:4:  [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(newbufpos, bufferpos, result-bufferpos);
data/bluefish-2.2.12/src/snr3_files.c:274:4:  [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(newbufpos, s3run->replace, replacelen);
data/bluefish-2.2.12/src/snr3_files.c:291: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(newbufpos, bufferpos, strlen(bufferpos)+1);
data/bluefish-2.2.12/src/xml_entity.c:197:4:  [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(outbufloc,prevfound,len);
data/bluefish-2.2.12/src/xml_entity.c:206:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(outbufloc, tmp, len);
data/bluefish-2.2.12/src/xml_entity.c:210:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(outbufloc, found, len);
data/bluefish-2.2.12/src/xml_entity.c:221: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(outbufloc,prevfound,strlen(prevfound)+1);
data/bluefish-2.2.12/src/bf_lib.c:391:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return strncmp(mychar,tablechar,strlen(mychar));
data/bluefish-2.2.12/src/bf_lib.c:507:53:  [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).
	DEBUG_MSG("original='%s', strlen()=%zd\n",original,strlen(original));
data/bluefish-2.2.12/src/bf_lib.c:519:74:  [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).
	DEBUG_MSG("alloc'ing %zd bytes\n", (countchars(original, tosearchfor) + strlen(original) + 1));
data/bluefish-2.2.12/src/bf_lib.c:520:57:  [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).
	retval = g_malloc((countchars(original, tosearchfor) + strlen(original) + 1) * sizeof(gchar));
data/bluefish-2.2.12/src/bf_lib.c:542:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	memcpy(dest,prev,strlen(prev)+1); /* this will also make sure there is a \0 at the end */
data/bluefish-2.2.12/src/bf_lib.c:738:144:  [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).
	DEBUG_MSG("utf8_byteoffset_to_charsoffset_cached, string %p has strlen %zd, looking for byteoffset %ld, starting in cache at i=%d\n", string, strlen(string),byteoffset,i);
data/bluefish-2.2.12/src/bf_lib.c:800:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(string);
data/bluefish-2.2.12/src/bf_lib.c:888:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(filename);
data/bluefish-2.2.12/src/bf_lib.c:942: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).
	current_filename_length = strlen(strrchr(eff_current_filepath, '/'))-1;
data/bluefish-2.2.12/src/bf_lib.c:943: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).
	link_to_filename_length = strlen(strrchr(eff_link_to_filepath, '/'))-1;
data/bluefish-2.2.12/src/bf_lib.c:945:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	current_dirname_length = strlen(eff_current_filepath) - current_filename_length;
data/bluefish-2.2.12/src/bf_lib.c:946:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	link_to_dirname_length = strlen(eff_link_to_filepath) - link_to_filename_length;
data/bluefish-2.2.12/src/bf_lib.c:988: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).
	returnstring = g_malloc0((strlen(link_to_filepath) - common_lenght + 3 * deeper_dirs + 1) * sizeof(gchar *));
data/bluefish-2.2.12/src/bf_lib.c:1009:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		gint len = strlen(input);
data/bluefish-2.2.12/src/bf_lib.c:1029:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (dirname[strlen(dirname)-1] == DIRCHR) {
data/bluefish-2.2.12/src/bf_lib.c:1137: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).
	gint len = strlen(str) * number_of;
data/bluefish-2.2.12/src/bf_lib.c:1141:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat(retstr, str, len);
data/bluefish-2.2.12/src/bf_lib.c:1160:16:  [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).
		gint i,len = strlen(string);
data/bluefish-2.2.12/src/bf_lib.c:1382: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).
		int len = strlen(retstr);
data/bluefish-2.2.12/src/bf_lib.c:1493:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (!ps || (ps && g_pattern_match(ps, strlen(filename), filename, NULL))) {
data/bluefish-2.2.12/src/bftextview2.c:2383:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			len = strlen(string);
data/bluefish-2.2.12/src/bftextview2_autocomp.c:139:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(string);
data/bluefish-2.2.12/src/bftextview2_autocomp.c:146:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				*backward_cursor += strlen(indentstring);
data/bluefish-2.2.12/src/bftextview2_autocomp.c:178:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(tmp);
data/bluefish-2.2.12/src/bftextview2_autocomp.c:248:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				stringlen = strlen(string);
data/bluefish-2.2.12/src/bftextview2_autocomp.c:249: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).
				prefix_len = strlen(ACWIN(btv->autocomp)->prefix);
data/bluefish-2.2.12/src/bftextview2_autocomp.c:277:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			&& strlen(ACWIN(btv->autocomp)->newprefix) > strlen(ACWIN(btv->autocomp)->prefix)) {
data/bluefish-2.2.12/src/bftextview2_autocomp.c:277:49:  [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(ACWIN(btv->autocomp)->newprefix) > strlen(ACWIN(btv->autocomp)->prefix)) {
data/bluefish-2.2.12/src/bftextview2_autocomp.c:280: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).
											 strlen(ACWIN(btv->autocomp)->prefix), -1);
data/bluefish-2.2.12/src/bftextview2_autocomp.c:474:16:  [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).
		longestlen = strlen(longest);
data/bluefish-2.2.12/src/bftextview2_autocomp.c:491:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(tmp);
data/bluefish-2.2.12/src/bftextview2_autocomp.c:749: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).
			plen = strlen(prefix);
data/bluefish-2.2.12/src/bftextview2_autocomp.c:750:16:  [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 (plen == strlen(closetag) || strncmp(closetag, prefix, plen) != 0) {
data/bluefish-2.2.12/src/bftextview2_langmgr.c:1044:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				bfparser->reference_size += strlen(reference);
data/bluefish-2.2.12/src/bftextview2_langmgr.c:1528:77:  [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).
						match_add_autocomp_item(bfparser->st, startinnertagmatch, tmp2, NULL, strlen(tag)+3, 0,id?id:tagpattern,0,3);
data/bluefish-2.2.12/src/bftextview2_langmgr.c:1531:77:  [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).
						match_add_autocomp_item(bfparser->st, startinnertagmatch, tmp2, NULL, strlen(tag)+3, 0,NULL,0,0);
data/bluefish-2.2.12/src/bftextview2_langmgr.c:1533:66:  [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).
					match_add_autocomp_item(bfparser->st, matchnum, NULL, tmp2, strlen(tag)+3, 0,NULL,0,0);
data/bluefish-2.2.12/src/bftextview2_langmgr.c:1594:64:  [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).
				match_add_autocomp_item(bfparser->st, matchnum, NULL, ">", strlen(tag) + 3, 0,NULL,0,0);
data/bluefish-2.2.12/src/bftextview2_langmgr.c:1600:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				bfparser->reference_size += strlen(reference);
data/bluefish-2.2.12/src/bftextview2_patcompile.c:604:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(pattern);
data/bluefish-2.2.12/src/bftextview2_patcompile.c:1013:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(chars);
data/bluefish-2.2.12/src/bftextview2_spell.c:236: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).
	if (strlen(tocheck)==0) {
data/bluefish-2.2.12/src/bftextview2_spell.c:243:88:  [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 (enchant_dict_check((EnchantDict *) BFWIN(DOCUMENT(btv->doc)->bfwin)->ed, tocheck, strlen(tocheck)) !=
data/bluefish-2.2.12/src/bftextview2_spell.c:251: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).
									  strlen(tocheck_conv)) != 0) {
data/bluefish-2.2.12/src/bftextview2_spell.c:695:53:  [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).
		enchant_dict_add((EnchantDict *) bfwin->ed, word, strlen(word));
data/bluefish-2.2.12/src/bftextview2_spell.c:698:53:  [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).
		enchant_dict_add((EnchantDict *) bfwin->ed, word, strlen(word));
data/bluefish-2.2.12/src/bftextview2_spell.c:700:60:  [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).
		enchant_dict_add_to_pwl((EnchantDict *) bfwin->ed, word, strlen(word));
data/bluefish-2.2.12/src/bftextview2_spell.c:704:64:  [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).
		enchant_dict_add_to_session((EnchantDict *) bfwin->ed, word, strlen(word));
data/bluefish-2.2.12/src/bftextview2_spell.c:874:70:  [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).
			enchant_dict_suggest((EnchantDict *) BFWIN(doc->bfwin)->ed, word, strlen(word), &n_suggs);
data/bluefish-2.2.12/src/bfwin.c:1980: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).
	if (main_v->props.max_window_title > 0 && strlen(title) > main_v->props.max_window_title)
data/bluefish-2.2.12/src/bfwin_uimanager.c:1961: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).
	gint len = strlen(str);
data/bluefish-2.2.12/src/blocksync.c:67:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(orig);
data/bluefish-2.2.12/src/bluefish.c:317:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				szNewPath = (char *)malloc((strlen(szStartPath) + strlen(szPythonPath) + 7) * sizeof(char));
data/bluefish-2.2.12/src/bluefish.c:317:55:  [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).
				szNewPath = (char *)malloc((strlen(szStartPath) + strlen(szPythonPath) + 7) * sizeof(char));
data/bluefish-2.2.12/src/bluefish.c:428:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		gchar *cwd = g_malloc0(strlen(path+1));
data/bluefish-2.2.12/src/bluefish.c:429:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(cwd, path, (strrchr(path,'\\')-path));
data/bluefish-2.2.12/src/bookmark.c:158:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (b->name && strlen(b->name) > 0 && bfwin->session->bookmarks_show_mode == BM_SMODE_BOTH) {
data/bluefish-2.2.12/src/bookmark.c:255:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(b->text);
data/bluefish-2.2.12/src/bookmark.c:1622: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).
	if (bandwidth < (5 * strlen(mark->text)))
data/bluefish-2.2.12/src/bookmark.c:1623:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		bandwidth = 5 * strlen(mark->text);
data/bluefish-2.2.12/src/bookmark.c:1659:77:  [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).
	gtk_text_buffer_get_iter_at_offset(mark->doc->buffer, &it2, mark->offset + strlen(mark->text));
data/bluefish-2.2.12/src/compatibility.c:40: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).
	for (l = strcspn(a, f); l != strlen(a); l += strcspn(a + l + 1, f) + 1)
data/bluefish-2.2.12/src/compatibility.c:41:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strncasecmp(a + l, b, strlen(b)) == 0)
data/bluefish-2.2.12/src/doc_comments.c:61:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	commentstring_len=strlen(commentstring);
data/bluefish-2.2.12/src/doc_comments.c:118: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).
	if (n != strlen(so_commentstring)) {
data/bluefish-2.2.12/src/doc_comments.c:124:16:  [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).
	cend = cstart+strlen(so_commentstring);
data/bluefish-2.2.12/src/doc_comments.c:130: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).
	i=strlen(buf)-1;
data/bluefish-2.2.12/src/doc_comments.c:131:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	eo_commentstring_len = strlen(eo_commentstring)-1; 
data/bluefish-2.2.12/src/doc_comments.c:153:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		cend = cstart+strlen(eo_commentstring);
data/bluefish-2.2.12/src/doc_comments.c:174:10:  [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(g_array_index(BLUEFISH_TEXT_VIEW(doc->view)->bflang->st->comments, Tcomment, i).so)
data/bluefish-2.2.12/src/doc_comments.c:215: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).
			extraoffset = strlen(comment->so) + strlen(comment->eo);
data/bluefish-2.2.12/src/doc_comments.c:215:40:  [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).
			extraoffset = strlen(comment->so) + strlen(comment->eo);
data/bluefish-2.2.12/src/doc_text_tools.c:285:16:  [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).
				coffset += strlen(newindent) - (cend - cstart);
data/bluefish-2.2.12/src/document.c:1604:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (after_str && strlen(after_str)) {
data/bluefish-2.2.12/src/document.c:1632:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (after_str && strlen(after_str)) {
data/bluefish-2.2.12/src/document.c:1907:8:  [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(newbuf));
data/bluefish-2.2.12/src/document.c:1992: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(fallback_string), repl);
data/bluefish-2.2.12/src/document.c:2565: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).
				*newbuflen = strlen(buffer);
data/bluefish-2.2.12/src/document.c:2570:16:  [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).
		*newbuflen = strlen(buffer);
data/bluefish-2.2.12/src/document.c:3142: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).
	buflen = strlen(buf);
data/bluefish-2.2.12/src/document.c:4055:56:  [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).
							  BFWIN(doc->bfwin)->session->editor_tab_width, strlen(buf), buf);
data/bluefish-2.2.12/src/document.c:4215:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(retval);
data/bluefish-2.2.12/src/external_commands.c:140:73:  [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).
	DEBUG_MSG("start_command_write_lcb, started, still %zd bytes to go\n", strlen(ep->buffer_out_position));
data/bluefish-2.2.12/src/external_commands.c:152: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).
	if (strlen(ep->buffer_out) <= (ep->buffer_out_position - ep->buffer_out)) {
data/bluefish-2.2.12/src/external_commands.c:403:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	formatstringlen = strlen(formatstring);
data/bluefish-2.2.12/src/external_commands.c:548:8:  [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(ep->bfwin->session->documentroot) > 5
data/bluefish-2.2.12/src/external_commands.c:549:8:  [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(ep->bfwin->session->webroot) > 5
data/bluefish-2.2.12/src/external_commands.c:551:10:  [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(ep->bfwin->session->documentroot)) == 0) {
data/bluefish-2.2.12/src/external_commands.c:553:53:  [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).
					g_strconcat(ep->bfwin->session->webroot, &curi[strlen(ep->bfwin->session->documentroot)],
data/bluefish-2.2.12/src/external_commands.c:588:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		table[cur].my_char = g_strndup(localname, strlen(localname) - strlen(localfilename));
data/bluefish-2.2.12/src/external_commands.c:588:65:  [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).
		table[cur].my_char = g_strndup(localname, strlen(localname) - strlen(localfilename));
data/bluefish-2.2.12/src/external_commands.c:876:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (str_return && strlen(str_return)>0) 
data/bluefish-2.2.12/src/file.c:1731:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(*tmp) > 1) {
data/bluefish-2.2.12/src/file.c:1841:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	remote = g_strconcat(target, lcuri + strlen(base), NULL);
data/bluefish-2.2.12/src/file.c:2027:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				gint namelen = strlen(name);
data/bluefish-2.2.12/src/file_autosave.c:270:62:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		file_checkNsave_uri_async(doc->autosave_uri, NULL, buffer, strlen(buffer->data), FALSE, FALSE,
data/bluefish-2.2.12/src/file_autosave.c:439:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			int tmplen = strlen(tmp);
data/bluefish-2.2.12/src/file_dialogs.c:64: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).
	if (strlen(gtk_entry_get_text(GTK_ENTRY(gtk_bin_get_child(GTK_BIN(tfs->find_pattern))))) > 0) {
data/bluefish-2.2.12/src/file_dialogs.c:92:8:  [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(extension_filter) == 0 ? NULL : extension_filter,
data/bluefish-2.2.12/src/file_dialogs.c:93:8:  [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(content_filter) == 0 ? NULL : content_filter,
data/bluefish-2.2.12/src/file_dialogs.c:375:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (tmplist->data && strlen(tmplist->data) > 5 && strncmp(tmplist->data, "file:", 5) != 0) {
data/bluefish-2.2.12/src/file_dialogs.c:702:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (realname && strlen(realname) > 0) {
data/bluefish-2.2.12/src/file_dialogs.c:832:105:  [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).
	DEBUG_MSG("doc_save_backend, calling file_checkNsave_uri_async with uri %p for %zd bytes\n", dest_uri, strlen(buffer->data));
data/bluefish-2.2.12/src/file_treemodel.c:197: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).
		haystack = curi + strlen(toplevel) - 1;
data/bluefish-2.2.12/src/file_treemodel.c:203:10:  [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).
		nlen = strlen(needle);
data/bluefish-2.2.12/src/filebrowser2.c:412:40:  [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).
		DEBUG_MSG("got pos=%d, len=%d\n",pos,strlen(filename1));
data/bluefish-2.2.12/src/filebrowser2.c:533: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).
				len = strlen(record->name);
data/bluefish-2.2.12/src/filebrowser2.c:596:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(record->name);
data/bluefish-2.2.12/src/filebrowser2.c:1530:13:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
			gboolean equal;
data/bluefish-2.2.12/src/filebrowser2.c:1535:8:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
			if (equal) {
data/bluefish-2.2.12/src/filebrowser2.c:2355:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(key);
data/bluefish-2.2.12/src/filebrowser2.c:2406:147:  [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).
					text = g_strdup_printf(_("<b>%s</b>\nwhich is the equivalent of\n<b>%s%s</b>"), localname?localname:curi, fb2->bfwin->session->webroot, curi+strlen(fb2->bfwin->session->documentroot));
data/bluefish-2.2.12/src/filefilter.c:76:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	guint len = strlen(string);
data/bluefish-2.2.12/src/filefilter.c:143:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(*pattern) > 0) {
data/bluefish-2.2.12/src/gtk_easy.c:1090: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 (!setfile || strlen(setfile) == 0) {
data/bluefish-2.2.12/src/gtk_easy.c:1267: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).
		gint namelen = strlen(filter_info->display_name);
data/bluefish-2.2.12/src/ipc_bf2bf.c:212:43:  [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).
	g_io_channel_write_chars(ibf.chan, data, strlen(data), NULL, NULL);
data/bluefish-2.2.12/src/ipc_bf2bf.c:222:43:  [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).
	g_io_channel_write_chars(ibf.chan, data, strlen(data), NULL, NULL);
data/bluefish-2.2.12/src/ipc_bf2bf.c:263:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(uaddr.sun_path, ibf.path, MIN(strlen(ibf.path) + 1, UNIX_PATH_MAX));
data/bluefish-2.2.12/src/ipc_bf2bf.c:263:40:  [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).
	strncpy(uaddr.sun_path, ibf.path, MIN(strlen(ibf.path) + 1, UNIX_PATH_MAX));
data/bluefish-2.2.12/src/ipc_bf2bf.c:314:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(uaddr.sun_path, ibf.path, MIN(strlen(ibf.path) + 1, UNIX_PATH_MAX));
data/bluefish-2.2.12/src/ipc_bf2bf.c:314:40:  [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).
	strncpy(uaddr.sun_path, ibf.path, MIN(strlen(ibf.path) + 1, UNIX_PATH_MAX));
data/bluefish-2.2.12/src/msg_queue.c:233:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(small_msgp.mtext, msgp.mtext, MSQ_QUEUE_SMALL_SIZE - 1);
data/bluefish-2.2.12/src/msg_queue.c:304:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(curi);
data/bluefish-2.2.12/src/msg_queue.c:308:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(msgp.mtext, curi, MSQ_QUEUE_SIZE - 1);
data/bluefish-2.2.12/src/msg_queue.c:324:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(small_msgp.mtext, pid_string, MSQ_QUEUE_SMALL_SIZE - 1);
data/bluefish-2.2.12/src/msg_queue.c:370:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(curi);
data/bluefish-2.2.12/src/msg_queue.c:383:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(msgp.mtext, curi, MSQ_QUEUE_SIZE - 1);
data/bluefish-2.2.12/src/msg_queue.c:463:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(small_msgp.mtext, pid_string, MSQ_QUEUE_SMALL_SIZE - 1);
data/bluefish-2.2.12/src/osxutils.c:158:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					if (strlen(tmp) > 2) { //Check if we have at least two characters for constructing short locale string
data/bluefish-2.2.12/src/osxutils.c:162:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				else if (strlen((*argv)[i]) ==2) { //If we have exactly two symbols, we try to use them
data/bluefish-2.2.12/src/outputbox.c:77:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (line && strlen(line)) {
data/bluefish-2.2.12/src/outputbox.c:80:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (file && strlen(file)) {
data/bluefish-2.2.12/src/outputbox.c:321: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 (uri || line > 0 || (markup && strlen(markup))) {
data/bluefish-2.2.12/src/plugin_entities/entities.c:176:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			docpos += (strlen(entity) - 1);
data/bluefish-2.2.12/src/plugin_htmlbar/cap.c:58:9:  [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).
	slen = strlen(s);
data/bluefish-2.2.12/src/plugin_htmlbar/html.c:326:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat(return_string, start_ptr, string_size);
data/bluefish-2.2.12/src/plugin_htmlbar/html.c:363:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
			strncat(final_string, insert_string, 31);
data/bluefish-2.2.12/src/plugin_htmlbar/html.c:364:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
			strncat(final_string, " ", 31);
data/bluefish-2.2.12/src/plugin_htmlbar/html.c:459:9:  [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).
			temp[strlen(temp) - 1] = ')';
data/bluefish-2.2.12/src/plugin_htmlbar/html.c:1373: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).
	if (strlen(gtk_entry_get_text(GTK_ENTRY(dg->spin[1])))) {
data/bluefish-2.2.12/src/plugin_htmlbar/html.c:1376:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(sizecombo)) {
data/bluefish-2.2.12/src/plugin_htmlbar/html.c:1501: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).
	if (strlen(gtk_entry_get_text(GTK_ENTRY(dg->entry[2])))) {
data/bluefish-2.2.12/src/plugin_htmlbar/html.c:1507: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).
	if (strlen(gtk_entry_get_text(GTK_ENTRY(dg->entry[3])))) {
data/bluefish-2.2.12/src/plugin_htmlbar/html.c:1517: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).
	if (strlen(gtk_entry_get_text(GTK_ENTRY(dg->entry[4])))) {
data/bluefish-2.2.12/src/plugin_htmlbar/html.c:1528: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).
	if (strlen(gtk_entry_get_text(GTK_ENTRY(dg->entry[5])))) {
data/bluefish-2.2.12/src/plugin_htmlbar/html.c:1587: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).
	if (strlen(gtk_entry_get_text(GTK_ENTRY(dg->spin[1])))) {
data/bluefish-2.2.12/src/plugin_htmlbar/html.c:1604:3:  [1] (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 character.
		strcat(finalstring, "\n");
data/bluefish-2.2.12/src/plugin_htmlbar/html.c:1753:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if(strlen(tmp)) {
data/bluefish-2.2.12/src/plugin_htmlbar/html.c:2415: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).
	if (strlen(gtk_combo_box_text_get_active_text(GTK_COMBO_BOX_TEXT(dg->combo[5])))) {
data/bluefish-2.2.12/src/plugin_htmlbar/html.c:2492: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).
	if (strlen(gtk_combo_box_text_get_active_text(GTK_COMBO_BOX_TEXT(dg->combo[5])))) {
data/bluefish-2.2.12/src/plugin_htmlbar/html2.c:510:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(text[count]) == 0) {
data/bluefish-2.2.12/src/plugin_htmlbar/html2.c:830:16:  [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).
					movelen = strlen(&tmp[count2]);
data/bluefish-2.2.12/src/plugin_htmlbar/html2.c:910:16:  [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).
					movelen = strlen(&tmp[count2]);
data/bluefish-2.2.12/src/plugin_htmlbar/html2.c:1172: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).
			strings[strlen(strings)-1] = '\0';
data/bluefish-2.2.12/src/plugin_htmlbar/html_diag.c:447: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).
	if (strlen(gtk_entry_get_text(GTK_ENTRY(entry)))) {
data/bluefish-2.2.12/src/plugin_htmlbar/html_form.c:51: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).
	if (strlen(tmp)) {
data/bluefish-2.2.12/src/plugin_htmlbar/html_form.c:60:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(tmp3)) {
data/bluefish-2.2.12/src/plugin_htmlbar/image.c:68:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(tmp);
data/bluefish-2.2.12/src/plugin_htmlbar/image.c:71:3:  [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(filename) - len + strlen(main_v->props.image_thumbnailstring) +
data/bluefish-2.2.12/src/plugin_htmlbar/image.c:71: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).
		strlen(filename) - len + strlen(main_v->props.image_thumbnailstring) +
data/bluefish-2.2.12/src/plugin_htmlbar/image.c:72:3:  [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(main_v->props.image_thumbnailtype) + 2;
data/bluefish-2.2.12/src/plugin_htmlbar/image.c:75:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	retval = strncpy(retval, filename, strlen(filename) - len);
data/bluefish-2.2.12/src/plugin_htmlbar/image.c:75:37:  [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).
	retval = strncpy(retval, filename, strlen(filename) - len);
data/bluefish-2.2.12/src/plugin_htmlbar/image.c:77:11:  [1] (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 character.
	retval = strcat(retval, ".");
data/bluefish-2.2.12/src/plugin_htmlbar/image.c:137: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).
	if (strlen(filename)) {
data/bluefish-2.2.12/src/plugin_htmlbar/image_dialog.c:945: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 (filename && strlen(filename)) {
data/bluefish-2.2.12/src/plugin_htmlbar/image_dialog.c:1089: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).
	if (strlen(strvalue)) {
data/bluefish-2.2.12/src/plugin_htmlbar/image_dialog.c:1115: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).
	if (strlen(strvalue))
data/bluefish-2.2.12/src/plugin_htmlbar/image_dialog.c:1122: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).
	if (strlen(strvalue))
data/bluefish-2.2.12/src/plugin_htmlbar/image_dialog.c:1127: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).
	if (strlen(strvalue))
data/bluefish-2.2.12/src/plugin_htmlbar/image_dialog.c:1132: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).
	if (strlen(strvalue))
data/bluefish-2.2.12/src/plugin_htmlbar/image_dialog.c:1137: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).
	if (strlen(strvalue))
data/bluefish-2.2.12/src/plugin_htmlbar/image_dialog.c:1142: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).
	if (strlen(strvalue))
data/bluefish-2.2.12/src/plugin_htmlbar/image_dialog.c:1147: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).
	if (strlen(strvalue))
data/bluefish-2.2.12/src/plugin_htmlbar/quickstart.c:362:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if (strlen(stylemedia) > 0) {
data/bluefish-2.2.12/src/plugin_htmlbar/quickstart.c:363:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					if (strlen(styletitle) > 0) {
data/bluefish-2.2.12/src/plugin_htmlbar/quickstart.c:369:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					if (strlen(styletitle) > 0) {
data/bluefish-2.2.12/src/plugin_htmlbar/quickstart.c:377:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if (strlen(stylemedia) > 0) {
data/bluefish-2.2.12/src/plugin_htmlbar/quickstart.c:399:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(tmpstr2) > 0) {
data/bluefish-2.2.12/src/plugin_htmlbar/rpopup.c:329:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						value = g_strndup(&tmp[1], strlen(tmp)-1);
data/bluefish-2.2.12/src/plugin_infbrowser/infb_load.c:132:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (g_pattern_match(ps, strlen(filename), filename, NULL) ||
data/bluefish-2.2.12/src/plugin_infbrowser/infb_load.c:133: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).
		    g_pattern_match(ps2, strlen(filename), filename, NULL)) {
data/bluefish-2.2.12/src/plugin_infbrowser/infb_load.c:268:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (g_pattern_match(ps, strlen(filename), filename, NULL) ) {
data/bluefish-2.2.12/src/plugin_snippets/snippets_gui.c:458: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).
							   strlen(strpath));
data/bluefish-2.2.12/src/plugin_snippets/snippets_leaf_insert.c:85: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).
			beforelen = before?strlen((gchar *)before):0;
data/bluefish-2.2.12/src/plugin_snippets/snippets_leaf_insert.c:88: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).
			afterlen = after?strlen((gchar *)after):0;
data/bluefish-2.2.12/src/plugin_snippets/snippets_leaf_insert.c:145: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).
			beforelen = before?strlen((gchar *)before):0;
data/bluefish-2.2.12/src/plugin_snippets/snippets_leaf_insert.c:148: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).
			afterlen = after?strlen((gchar *)after):0;
data/bluefish-2.2.12/src/plugin_snippets/snippets_wizard.c:300:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(tmpstr)>0) {
data/bluefish-2.2.12/src/plugin_snippets/snippets_wizard.c:461:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(tmpstr)>0) {
data/bluefish-2.2.12/src/plugin_snippets/snippets_wizard.c:612: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).
	if (strlen(name)) {
data/bluefish-2.2.12/src/plugin_zencoding/zeneditor-interface.c:193:10:  [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).
	phlen = strlen(ph);
data/bluefish-2.2.12/src/plugin_zencoding/zeneditor-interface.c:253:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	result = PyUnicode_Decode(text, strlen(text), "utf-8", NULL);
data/bluefish-2.2.12/src/plugin_zencoding/zeneditor-interface.c:280:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		return PyUnicode_Decode(self->profile, strlen(self->profile), "utf-8", NULL);
data/bluefish-2.2.12/src/plugin_zencoding/zeneditor-interface.c:317:37:  [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).
		result = PyUnicode_Decode(retval, strlen(retval), "utf-8", NULL);
data/bluefish-2.2.12/src/plugins.c:129:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (g_pattern_match(patspec, strlen(tmp), tmp, NULL)) {
data/bluefish-2.2.12/src/preferences.c:705:53:  [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).
					RegSetValueEx(regclass, "", 0, REG_SZ, buffer, strlen(buffer) + 1);
data/bluefish-2.2.12/src/preferences.c:719:54:  [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).
						RegSetValueEx(regclass, "", 0, REG_SZ, buffer, strlen(buffer) + 1);
data/bluefish-2.2.12/src/preferences.c:734:54:  [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).
						RegSetValueEx(regclass, "", 0, REG_SZ, buffer, strlen(buffer) + 1);
data/bluefish-2.2.12/src/preferences.c:749:54:  [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).
						RegSetValueEx(regclass, "", 0, REG_SZ, buffer, strlen(buffer) + 1);
data/bluefish-2.2.12/src/preferences.c:750:69:  [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).
						RegSetValueEx(regclass, "Content Type", 0, REG_SZ, strarr[2], strlen(strarr[2]) + 1);
data/bluefish-2.2.12/src/print.c:365:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	page->byte_o = strlen(bfprint->buffer);
data/bluefish-2.2.12/src/project.c:330: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).
			suflen = strlen(main_v->props.project_suffix);
data/bluefish-2.2.12/src/project.c:331: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).
			filen = strlen(filename);
data/bluefish-2.2.12/src/rcfile.c:355: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).
				tmpstring += strlen(tmpitem->identifier);
data/bluefish-2.2.12/src/rcfile.c:365:62:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						(char *) realloc((char *) *(void **) tmpitem->pointer, strlen(tmpstring) + 1);
data/bluefish-2.2.12/src/rcfile.c:371:62:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						(char *) realloc((char *) *(void **) tmpitem->pointer, strlen(tmpstring2) + 1);
data/bluefish-2.2.12/src/rcfile.c:935:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (main_v->props.config_version && (strlen(main_v->props.config_version)<5 ||main_v->props.config_version[0] < '2' || main_v->props.config_version[2] < '2' || (main_v->props.config_version[4] < '4' && main_v->props.config_version[5] == '\0') )) {
data/bluefish-2.2.12/src/snr3.c:474: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).
	bytelen = strlen(s3run->queryreal);
data/bluefish-2.2.12/src/snr3.c:1164:10:  [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).
		hlen = strlen((gchar *)bfwin->session->searchlist->data);
data/bluefish-2.2.12/src/snr3.c:1165:10:  [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).
		nlen = strlen(string);
data/bluefish-2.2.12/src/snr3_files.c:155: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).
	buflen = strlen(buffer);
data/bluefish-2.2.12/src/snr3_files.c:183:16:  [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).
		replacelen = strlen(replacestring);
data/bluefish-2.2.12/src/snr3_files.c:220: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).
	querylen = strlen(s3run->query);
data/bluefish-2.2.12/src/snr3_files.c:245: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).
	querylen = strlen(s3run->query);
data/bluefish-2.2.12/src/snr3_files.c:246:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	replacelen = strlen(s3run->replace);
data/bluefish-2.2.12/src/snr3_files.c:247: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).
	buflen = strlen(buffer);
data/bluefish-2.2.12/src/snr3_files.c:291: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).
	memcpy(newbufpos, bufferpos, strlen(bufferpos)+1);
data/bluefish-2.2.12/src/snr3_files.c:357:95:  [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).
		DEBUG_MSG("thread %p: calling buffer_find_encoding for %ld bytes\n", g_thread_self(),(glong)strlen(inbuf));
data/bluefish-2.2.12/src/snr3_files.c:429:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(path);
data/bluefish-2.2.12/src/stringlist.c:72:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		newsize += strlen(escaped1)+1;
data/bluefish-2.2.12/src/stringlist.c:83:57:  [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).
	DEBUG_MSG("array_to_string, len(finalstring) = %zd\n", strlen(finalstring));
data/bluefish-2.2.12/src/stringlist.c:524: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).
	g_file_replace_contents(file,buf,strlen(buf)
data/bluefish-2.2.12/src/stringlist.c:536:16:  [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 (string && strlen(string) ) {
data/bluefish-2.2.12/src/stringlist.c:634:16:  [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 (string && strlen(string) ) {
data/bluefish-2.2.12/src/undo_redo.c:154:8:  [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(entry->text), entry->text);
data/bluefish-2.2.12/src/xml_entity.c:182: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).
	outbuf = g_malloc0(strlen(inbuf)+1);
data/bluefish-2.2.12/src/xml_entity.c:204: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).
				len = strlen(tmp);
data/bluefish-2.2.12/src/xml_entity.c:221:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	memcpy(outbufloc,prevfound,strlen(prevfound)+1);
data/bluefish-2.2.12/src/xml_entity.c:230:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	outbuf = g_malloc0(8 * strlen(inbuf)*sizeof(gchar));
data/bluefish-2.2.12/src/xml_entity.c:234:13:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
			outbuf = strncat(outbuf, entity, 8);
data/bluefish-2.2.12/src/xml_entity.c:239:13:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
			outbuf = strncat(outbuf, srcp, (nxt-srcp));

ANALYSIS SUMMARY:

Hits = 341
Lines analyzed = 80077 in approximately 3.03 seconds (26452 lines/second)
Physical Source Lines of Code (SLOC) = 61790
Hits@level = [0]  30 [1] 233 [2]  56 [3]  36 [4]  15 [5]   1
Hits@level+ = [0+] 371 [1+] 341 [2+] 108 [3+]  52 [4+]  16 [5+]   1
Hits/KSLOC@level+ = [0+] 6.00421 [1+] 5.51869 [2+] 1.74786 [3+] 0.84156 [4+] 0.258942 [5+] 0.0161838
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.