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/appstream-glib-0.7.17/client/as-builder.c
Examining data/appstream-glib-0.7.17/client/as-compose.c
Examining data/appstream-glib-0.7.17/client/as-util.c
Examining data/appstream-glib-0.7.17/data/tests/kdeapp.cpp
Examining data/appstream-glib-0.7.17/data/tests/rpmbuild/app.c
Examining data/appstream-glib-0.7.17/libappstream-builder/appstream-builder.h
Examining data/appstream-glib-0.7.17/libappstream-builder/asb-app.c
Examining data/appstream-glib-0.7.17/libappstream-builder/asb-app.h
Examining data/appstream-glib-0.7.17/libappstream-builder/asb-context-private.h
Examining data/appstream-glib-0.7.17/libappstream-builder/asb-context.c
Examining data/appstream-glib-0.7.17/libappstream-builder/asb-context.h
Examining data/appstream-glib-0.7.17/libappstream-builder/asb-package-alpm.c
Examining data/appstream-glib-0.7.17/libappstream-builder/asb-package-alpm.h
Examining data/appstream-glib-0.7.17/libappstream-builder/asb-package-cab.c
Examining data/appstream-glib-0.7.17/libappstream-builder/asb-package-cab.h
Examining data/appstream-glib-0.7.17/libappstream-builder/asb-package-deb.c
Examining data/appstream-glib-0.7.17/libappstream-builder/asb-package-deb.h
Examining data/appstream-glib-0.7.17/libappstream-builder/asb-package-rpm.c
Examining data/appstream-glib-0.7.17/libappstream-builder/asb-package-rpm.h
Examining data/appstream-glib-0.7.17/libappstream-builder/asb-package.c
Examining data/appstream-glib-0.7.17/libappstream-builder/asb-package.h
Examining data/appstream-glib-0.7.17/libappstream-builder/asb-plugin-loader.c
Examining data/appstream-glib-0.7.17/libappstream-builder/asb-plugin-loader.h
Examining data/appstream-glib-0.7.17/libappstream-builder/asb-plugin.c
Examining data/appstream-glib-0.7.17/libappstream-builder/asb-plugin.h
Examining data/appstream-glib-0.7.17/libappstream-builder/asb-self-test.c
Examining data/appstream-glib-0.7.17/libappstream-builder/asb-task.c
Examining data/appstream-glib-0.7.17/libappstream-builder/asb-task.h
Examining data/appstream-glib-0.7.17/libappstream-builder/asb-utils.c
Examining data/appstream-glib-0.7.17/libappstream-builder/asb-utils.h
Examining data/appstream-glib-0.7.17/libappstream-builder/plugins/asb-plugin-appdata.c
Examining data/appstream-glib-0.7.17/libappstream-builder/plugins/asb-plugin-desktop.c
Examining data/appstream-glib-0.7.17/libappstream-builder/plugins/asb-plugin-font.c
Examining data/appstream-glib-0.7.17/libappstream-builder/plugins/asb-plugin-gettext.c
Examining data/appstream-glib-0.7.17/libappstream-builder/plugins/asb-plugin-hardcoded.c
Examining data/appstream-glib-0.7.17/libappstream-builder/plugins/asb-plugin-icon.c
Examining data/appstream-glib-0.7.17/libappstream-builder/plugins/asb-plugin-shell-extension.c
Examining data/appstream-glib-0.7.17/libappstream-glib/appstream-glib.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-agreement-private.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-agreement-section-private.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-agreement-section.c
Examining data/appstream-glib-0.7.17/libappstream-glib/as-agreement-section.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-agreement.c
Examining data/appstream-glib-0.7.17/libappstream-glib/as-agreement.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-app-builder.c
Examining data/appstream-glib-0.7.17/libappstream-glib/as-app-builder.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-app-desktop.c
Examining data/appstream-glib-0.7.17/libappstream-glib/as-app-inf.c
Examining data/appstream-glib-0.7.17/libappstream-glib/as-app-private.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-app-validate.c
Examining data/appstream-glib-0.7.17/libappstream-glib/as-app.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-bundle-private.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-bundle.c
Examining data/appstream-glib-0.7.17/libappstream-glib/as-bundle.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-checksum-private.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-checksum.c
Examining data/appstream-glib-0.7.17/libappstream-glib/as-checksum.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-content-rating-private.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-content-rating.c
Examining data/appstream-glib-0.7.17/libappstream-glib/as-content-rating.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-enums.c
Examining data/appstream-glib-0.7.17/libappstream-glib/as-enums.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-format.c
Examining data/appstream-glib-0.7.17/libappstream-glib/as-format.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-icon-private.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-icon.c
Examining data/appstream-glib-0.7.17/libappstream-glib/as-icon.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-image-private.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-image.c
Examining data/appstream-glib-0.7.17/libappstream-glib/as-image.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-inf.c
Examining data/appstream-glib-0.7.17/libappstream-glib/as-inf.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-launchable-private.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-launchable.c
Examining data/appstream-glib-0.7.17/libappstream-glib/as-launchable.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-markup.c
Examining data/appstream-glib-0.7.17/libappstream-glib/as-markup.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-monitor.c
Examining data/appstream-glib-0.7.17/libappstream-glib/as-monitor.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-node-private.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-node.c
Examining data/appstream-glib-0.7.17/libappstream-glib/as-node.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-problem.c
Examining data/appstream-glib-0.7.17/libappstream-glib/as-problem.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-profile.c
Examining data/appstream-glib-0.7.17/libappstream-glib/as-profile.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-provide-private.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-provide.c
Examining data/appstream-glib-0.7.17/libappstream-glib/as-provide.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-ref-string.c
Examining data/appstream-glib-0.7.17/libappstream-glib/as-ref-string.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-release-private.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-release.c
Examining data/appstream-glib-0.7.17/libappstream-glib/as-release.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-require-private.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-require.c
Examining data/appstream-glib-0.7.17/libappstream-glib/as-require.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-review-private.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-review.c
Examining data/appstream-glib-0.7.17/libappstream-glib/as-review.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-screenshot-private.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-screenshot.c
Examining data/appstream-glib-0.7.17/libappstream-glib/as-screenshot.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-self-test.c
Examining data/appstream-glib-0.7.17/libappstream-glib/as-stemmer.c
Examining data/appstream-glib-0.7.17/libappstream-glib/as-stemmer.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-store-cab.c
Examining data/appstream-glib-0.7.17/libappstream-glib/as-store-cab.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-store.c
Examining data/appstream-glib-0.7.17/libappstream-glib/as-store.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-suggest-private.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-suggest.c
Examining data/appstream-glib-0.7.17/libappstream-glib/as-suggest.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-tag.c
Examining data/appstream-glib-0.7.17/libappstream-glib/as-tag.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-translation-private.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-translation.c
Examining data/appstream-glib-0.7.17/libappstream-glib/as-translation.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-utils-private.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-utils.c
Examining data/appstream-glib-0.7.17/libappstream-glib/as-utils.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-version.c
Examining data/appstream-glib-0.7.17/libappstream-glib/as-yaml.c
Examining data/appstream-glib-0.7.17/libappstream-glib/as-yaml.h
Examining data/appstream-glib-0.7.17/libappstream-glib/as-app.c

FINAL RESULTS:

data/appstream-glib-0.7.17/libappstream-builder/asb-context.c:74:9:  [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.
	temp = realpath (path, NULL);
data/appstream-glib-0.7.17/libappstream-builder/asb-self-test.c:38:9:  [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.
	return realpath (path, NULL);
data/appstream-glib-0.7.17/libappstream-glib/as-self-test.c:104:9:  [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.
	return realpath (path, NULL);
data/appstream-glib-0.7.17/client/as-util.c:847:30:  [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).
	dt = g_date_time_new_local (atoi (release_split[0]),
data/appstream-glib-0.7.17/client/as-util.c:848: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).
				    atoi (release_split[1]),
data/appstream-glib-0.7.17/client/as-util.c:849: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).
				    atoi (release_split[2]),
data/appstream-glib-0.7.17/libappstream-builder/asb-package.c:914:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (klass->open != NULL)
data/appstream-glib-0.7.17/libappstream-builder/asb-package.c:915:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		return klass->open (pkg, filename, error);
data/appstream-glib-0.7.17/libappstream-builder/asb-package.h:34:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	gboolean		 (*open)	(AsbPackage	*pkg,
data/appstream-glib-0.7.17/libappstream-glib/as-app-builder.c:108: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 (&h, data, sizeof (AsAppBuilderGettextHeader));
data/appstream-glib-0.7.17/libappstream-glib/as-app-builder.c:229: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 (&tmp, data + *offset, 4);
data/appstream-glib-0.7.17/libappstream-glib/as-app-builder.c:485: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 (&version_number, data + 0, 4);
data/appstream-glib-0.7.17/libappstream-glib/as-app-builder.c:497: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 (&nr_resources, data + 4, 4);
data/appstream-glib-0.7.17/libappstream-glib/as-node.c:220: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 (tmp + 1,
data/appstream-glib-0.7.17/libappstream-glib/as-ref-string.c:141: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 (rstr_new, str, len);
data/appstream-glib-0.7.17/libappstream-glib/as-self-test.c:96: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 full_path[PATH_MAX];
data/appstream-glib-0.7.17/libappstream-glib/as-self-test.c:166:12:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	g_unlink (tmpfile);
data/appstream-glib-0.7.17/libappstream-glib/as-self-test.c:186:43:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	cmd_touch = g_strdup_printf ("touch %s", tmpfile);
data/appstream-glib-0.7.17/libappstream-glib/as-self-test.c:209:12:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	g_unlink (tmpfile);
data/appstream-glib-0.7.17/libappstream-glib/as-self-test.c:218:29:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	ret = g_file_set_contents (tmpfile, "foo", -1, &error);
data/appstream-glib-0.7.17/libappstream-glib/as-self-test.c:229:29:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	ret = g_file_set_contents (tmpfile, "bar", -1, &error);
data/appstream-glib-0.7.17/libappstream-glib/as-self-test.c:240:29:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	g_assert_cmpint (g_rename (tmpfile, tmpfile_new), ==, 0);
data/appstream-glib-0.7.17/libappstream-glib/as-self-test.c:247:12:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	g_unlink (tmpfile);
data/appstream-glib-0.7.17/libappstream-glib/as-self-test.c:264:12:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	g_unlink (tmpfile);
data/appstream-glib-0.7.17/libappstream-glib/as-self-test.c:276:34:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	ret = as_monitor_add_file (mon, tmpfile, NULL, &error);
data/appstream-glib-0.7.17/libappstream-glib/as-self-test.c:282:43:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	cmd_touch = g_strdup_printf ("touch %s", tmpfile);
data/appstream-glib-0.7.17/libappstream-glib/as-self-test.c:305:12:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	g_unlink (tmpfile);
data/appstream-glib-0.7.17/libappstream-glib/as-self-test.c:314:29:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	ret = g_file_set_contents (tmpfile, "foo", -1, &error);
data/appstream-glib-0.7.17/libappstream-glib/as-self-test.c:325:29:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	ret = g_file_set_contents (tmpfile, "bar", -1, &error);
data/appstream-glib-0.7.17/libappstream-glib/as-utils.c:1571: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 (uu_new, hash, 16);
data/appstream-glib-0.7.17/libappstream-glib/as-utils.c:1797: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 (tmp, replace, replace_len);
data/appstream-glib-0.7.17/libappstream-glib/as-utils.c:1805: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 (string->str + search_idx, replace, replace_len);
data/appstream-glib-0.7.17/libappstream-glib/as-utils.c:1808: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 (tmp, replace, replace_len);
data/appstream-glib-0.7.17/client/as-compose.c:34: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).
	for (i = strlen (id) + 2; i < 35; i++)
data/appstream-glib-0.7.17/client/as-util.c:118: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 (item->name) + 2;
data/appstream-glib-0.7.17/client/as-util.c:122: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 (item->arguments) + 1;
data/appstream-glib-0.7.17/client/as-util.c:2721: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).
		for (j = strlen (tmp); j < 20; j++)
data/appstream-glib-0.7.17/client/as-util.c:3130: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).
	for (i = strlen (id) + 2; i < 35; i++)
data/appstream-glib-0.7.17/client/as-util.c:3735: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).
	for (i = strlen (id); i < align; i++)
data/appstream-glib-0.7.17/libappstream-builder/asb-utils.c:533: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).
	path_orig_len = (guint) strlen (path_orig);
data/appstream-glib-0.7.17/libappstream-builder/plugins/asb-plugin-font.c:546: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).
			gsize len = strlen (tmp);
data/appstream-glib-0.7.17/libappstream-builder/plugins/asb-plugin-font.c:547: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).
			tmp[len - strlen (suffixes[i])] = '\0';
data/appstream-glib-0.7.17/libappstream-builder/plugins/asb-plugin-font.c:555: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).
			ptr += strlen (prefixes[i]);
data/appstream-glib-0.7.17/libappstream-builder/plugins/asb-plugin-icon.c:94:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	pixbuf = asb_app_load_icon (plugin, fn, fn + strlen (tmpdir),
data/appstream-glib-0.7.17/libappstream-builder/plugins/asb-plugin-icon.c:130: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).
					  fn_hidpi + strlen (tmpdir),
data/appstream-glib-0.7.17/libappstream-glib/as-app-builder.c:377: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).
			locale = g_strdup (filename + strlen (as_translation_get_id (t)) + 1);
data/appstream-glib-0.7.17/libappstream-glib/as-app-validate.c:85: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).
	str_len = (guint) strlen (tmp);
data/appstream-glib-0.7.17/libappstream-glib/as-app-validate.c:175: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).
	str_len = (guint) strlen (text);
data/appstream-glib-0.7.17/libappstream-glib/as-app-validate.c:242: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).
	str_len = (guint) strlen (text);
data/appstream-glib-0.7.17/libappstream-glib/as-app-validate.c:603: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 (url == NULL || (guint) strlen (url) == 0) {
data/appstream-glib-0.7.17/libappstream-glib/as-app-validate.c:656: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).
		str_len = (guint) strlen (tmp);
data/appstream-glib-0.7.17/libappstream-glib/as-app-validate.c:1457: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 (update_contact != NULL && strlen (update_contact) < 6) {
data/appstream-glib-0.7.17/libappstream-glib/as-app-validate.c:1602: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).
		str_len = (guint) strlen (name);
data/appstream-glib-0.7.17/libappstream-glib/as-app-validate.c:1643: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).
		str_len = (guint) strlen (summary);
data/appstream-glib-0.7.17/libappstream-glib/as-app-validate.c:1683:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    strlen (summary) < strlen (name)) {
data/appstream-glib-0.7.17/libappstream-glib/as-app-validate.c:1683: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).
	    strlen (summary) < strlen (name)) {
data/appstream-glib-0.7.17/libappstream-glib/as-app-validate.c:1736: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).
		str_len = (guint) strlen (name);
data/appstream-glib-0.7.17/libappstream-glib/as-app.c:2659: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).
	len = (guint) strlen (priv->update_contact);
data/appstream-glib-0.7.17/libappstream-glib/as-app.c:2668: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).
					   tmp + strlen (replacements[i].search),
data/appstream-glib-0.7.17/libappstream-glib/as-markup.c:181:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	gssize start_len = (gssize) strlen (start);
data/appstream-glib-0.7.17/libappstream-glib/as-markup.c:182: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).
	gssize end_len = (gssize) strlen (end);
data/appstream-glib-0.7.17/libappstream-glib/as-markup.c:350:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (curline->len + strlen (tokens[i]) < line_len) {
data/appstream-glib-0.7.17/libappstream-glib/as-node.c:217: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).
		len = (guint) strlen (tmp);
data/appstream-glib-0.7.17/libappstream-glib/as-node.c:219: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).
			len_escaped = (guint) strlen (search);
data/appstream-glib-0.7.17/libappstream-glib/as-node.c:515: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).
		len = text_len >= 0 ? (gsize) text_len : strlen (text);
data/appstream-glib-0.7.17/libappstream-glib/as-node.c:1512:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	new_len = (gssize) (strlen (text) * (break_len + 1) / break_len);
data/appstream-glib-0.7.17/libappstream-glib/as-ref-string.c:115: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).
	return as_ref_string_new_with_length (str, strlen (str));
data/appstream-glib-0.7.17/libappstream-glib/as-ref-string.c:169: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).
	return as_ref_string_new_with_length (str, strlen (str));
data/appstream-glib-0.7.17/libappstream-glib/as-self-test.c:5666: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).
	blob = g_bytes_new (data, strlen (data));
data/appstream-glib-0.7.17/libappstream-glib/as-stemmer.c:62: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).
	value_len = strlen (value_casefold);
data/appstream-glib-0.7.17/libappstream-glib/as-tag.c:69: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).
	ky = _as_tag_from_gperf (tag, strlen (tag));
data/appstream-glib-0.7.17/libappstream-glib/as-utils.c:342:50:  [1] (buffer) strlen:
  Does not handle 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_autofree gchar *license_id = g_strndup (tmp, strlen (tmp) - 1);
data/appstream-glib-0.7.17/libappstream-glib/as-utils.c:641: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).
	license_len = (guint) strlen (license);
data/appstream-glib-0.7.17/libappstream-glib/as-utils.c:645: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).
			guint old_len = (guint) strlen (convert[j].old);
data/appstream-glib-0.7.17/libappstream-glib/as-utils.c:1637: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).
					(const guint8 *) str, strlen (str), NULL);
data/appstream-glib-0.7.17/libappstream-glib/as-utils.c:1727:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    strlen (version) == 8)
data/appstream-glib-0.7.17/libappstream-glib/as-utils.c:1781: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).
	search_len = strlen (search);
data/appstream-glib-0.7.17/libappstream-glib/as-utils.c:1782: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).
	replace_len = strlen (replace);
data/appstream-glib-0.7.17/libappstream-glib/as-yaml.c:439: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).
		data_len = (gssize) strlen (data);

ANALYSIS SUMMARY:

Hits = 79
Lines analyzed = 55465 in approximately 1.25 seconds (44213 lines/second)
Physical Source Lines of Code (SLOC) = 37896
Hits@level = [0]   1 [1]  46 [2]  30 [3]   3 [4]   0 [5]   0
Hits@level+ = [0+]  80 [1+]  79 [2+]  33 [3+]   3 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 2.11104 [1+] 2.08465 [2+] 0.870804 [3+] 0.079164 [4+]   0 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.