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/tracker-miners-2.3.5/src/libtracker-extract/tracker-data.h
Examining data/tracker-miners-2.3.5/src/libtracker-extract/tracker-encoding-enca.c
Examining data/tracker-miners-2.3.5/src/libtracker-extract/tracker-encoding-enca.h
Examining data/tracker-miners-2.3.5/src/libtracker-extract/tracker-encoding-libicu.c
Examining data/tracker-miners-2.3.5/src/libtracker-extract/tracker-encoding-libicu.h
Examining data/tracker-miners-2.3.5/src/libtracker-extract/tracker-encoding.c
Examining data/tracker-miners-2.3.5/src/libtracker-extract/tracker-encoding.h
Examining data/tracker-miners-2.3.5/src/libtracker-extract/tracker-exif.c
Examining data/tracker-miners-2.3.5/src/libtracker-extract/tracker-exif.h
Examining data/tracker-miners-2.3.5/src/libtracker-extract/tracker-extract-info.c
Examining data/tracker-miners-2.3.5/src/libtracker-extract/tracker-extract-info.h
Examining data/tracker-miners-2.3.5/src/libtracker-extract/tracker-extract.h
Examining data/tracker-miners-2.3.5/src/libtracker-extract/tracker-guarantee.c
Examining data/tracker-miners-2.3.5/src/libtracker-extract/tracker-guarantee.h
Examining data/tracker-miners-2.3.5/src/libtracker-extract/tracker-iptc.c
Examining data/tracker-miners-2.3.5/src/libtracker-extract/tracker-iptc.h
Examining data/tracker-miners-2.3.5/src/libtracker-extract/tracker-module-manager.c
Examining data/tracker-miners-2.3.5/src/libtracker-extract/tracker-module-manager.h
Examining data/tracker-miners-2.3.5/src/libtracker-extract/tracker-resource-helpers.c
Examining data/tracker-miners-2.3.5/src/libtracker-extract/tracker-resource-helpers.h
Examining data/tracker-miners-2.3.5/src/libtracker-extract/tracker-utils.c
Examining data/tracker-miners-2.3.5/src/libtracker-extract/tracker-utils.h
Examining data/tracker-miners-2.3.5/src/libtracker-extract/tracker-xmp.c
Examining data/tracker-miners-2.3.5/src/libtracker-extract/tracker-xmp.h
Examining data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-common.h
Examining data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-date-time.c
Examining data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-date-time.h
Examining data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-dbus.c
Examining data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-dbus.h
Examining data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-domain-ontology.c
Examining data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-domain-ontology.h
Examining data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-enums.h
Examining data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-file-utils.c
Examining data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-file-utils.h
Examining data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-ioprio.c
Examining data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-ioprio.h
Examining data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-locale.c
Examining data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-locale.h
Examining data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-log.c
Examining data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-log.h
Examining data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-miners-common.h
Examining data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-sched.c
Examining data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-sched.h
Examining data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-seccomp.c
Examining data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-seccomp.h
Examining data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-type-utils.c
Examining data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-type-utils.h
Examining data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-utils.c
Examining data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-utils.h
Examining data/tracker-miners-2.3.5/src/miners/fs/tracker-config.c
Examining data/tracker-miners-2.3.5/src/miners/fs/tracker-config.h
Examining data/tracker-miners-2.3.5/src/miners/fs/tracker-extract-watchdog.c
Examining data/tracker-miners-2.3.5/src/miners/fs/tracker-extract-watchdog.h
Examining data/tracker-miners-2.3.5/src/miners/fs/tracker-main.c
Examining data/tracker-miners-2.3.5/src/miners/fs/tracker-miner-files-index.c
Examining data/tracker-miners-2.3.5/src/miners/fs/tracker-miner-files-index.h
Examining data/tracker-miners-2.3.5/src/miners/fs/tracker-miner-files-peer-listener.c
Examining data/tracker-miners-2.3.5/src/miners/fs/tracker-miner-files-peer-listener.h
Examining data/tracker-miners-2.3.5/src/miners/fs/tracker-miner-files.c
Examining data/tracker-miners-2.3.5/src/miners/fs/tracker-miner-files.h
Examining data/tracker-miners-2.3.5/src/miners/fs/tracker-power-hal.c
Examining data/tracker-miners-2.3.5/src/miners/fs/tracker-power-upower.c
Examining data/tracker-miners-2.3.5/src/miners/fs/tracker-power.h
Examining data/tracker-miners-2.3.5/src/miners/fs/tracker-storage.c
Examining data/tracker-miners-2.3.5/src/miners/fs/tracker-storage.h
Examining data/tracker-miners-2.3.5/src/miners/fs/tracker-thumbnailer.c
Examining data/tracker-miners-2.3.5/src/miners/fs/tracker-thumbnailer.h
Examining data/tracker-miners-2.3.5/src/miners/fs/tracker-writeback-dispatcher.c
Examining data/tracker-miners-2.3.5/src/miners/fs/tracker-writeback-dispatcher.h
Examining data/tracker-miners-2.3.5/src/miners/fs/tracker-writeback-listener.c
Examining data/tracker-miners-2.3.5/src/miners/fs/tracker-writeback-listener.h
Examining data/tracker-miners-2.3.5/src/miners/fs/tracker-writeback.c
Examining data/tracker-miners-2.3.5/src/miners/fs/tracker-writeback.h
Examining data/tracker-miners-2.3.5/src/miners/rss/tracker-main.c
Examining data/tracker-miners-2.3.5/src/miners/rss/tracker-miner-rss.c
Examining data/tracker-miners-2.3.5/src/miners/rss/tracker-miner-rss.h
Examining data/tracker-miners-2.3.5/src/tracker-extract/tracker-config.c
Examining data/tracker-miners-2.3.5/src/tracker-extract/tracker-config.h
Examining data/tracker-miners-2.3.5/src/tracker-extract/tracker-cue-sheet.c
Examining data/tracker-miners-2.3.5/src/tracker-extract/tracker-cue-sheet.h
Examining data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-abw.c
Examining data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-bmp.c
Examining data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-controller.c
Examining data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-controller.h
Examining data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-decorator.c
Examining data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-decorator.h
Examining data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-desktop.c
Examining data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-dummy.c
Examining data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-dvi.c
Examining data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-epub.c
Examining data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-flac.c
Examining data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-gif.c
Examining data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-gstreamer.c
Examining data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-html.c
Examining data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-icon.c
Examining data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-iso.c
Examining data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-jpeg.c
Examining data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-libav.c
Examining data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-mp3.c
Examining data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-msoffice-xml.c
Examining data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-msoffice.c
Examining data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-oasis.c
Examining data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-pdf.c
Examining data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-persistence.c
Examining data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-persistence.h
Examining data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-playlist.c
Examining data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-png.c
Examining data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-ps.c
Examining data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-raw.c
Examining data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-text.c
Examining data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-tiff.c
Examining data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-vorbis.c
Examining data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-xmp.c
Examining data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-xps.c
Examining data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract.c
Examining data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract.h
Examining data/tracker-miners-2.3.5/src/tracker-extract/tracker-gsf.c
Examining data/tracker-miners-2.3.5/src/tracker-extract/tracker-gsf.h
Examining data/tracker-miners-2.3.5/src/tracker-extract/tracker-main.c
Examining data/tracker-miners-2.3.5/src/tracker-extract/tracker-main.h
Examining data/tracker-miners-2.3.5/src/tracker-extract/tracker-read.c
Examining data/tracker-miners-2.3.5/src/tracker-extract/tracker-read.h
Examining data/tracker-miners-2.3.5/src/tracker-writeback/tracker-config.c
Examining data/tracker-miners-2.3.5/src/tracker-writeback/tracker-config.h
Examining data/tracker-miners-2.3.5/src/tracker-writeback/tracker-main.c
Examining data/tracker-miners-2.3.5/src/tracker-writeback/tracker-writeback-file.c
Examining data/tracker-miners-2.3.5/src/tracker-writeback/tracker-writeback-file.h
Examining data/tracker-miners-2.3.5/src/tracker-writeback/tracker-writeback-gstreamer.c
Examining data/tracker-miners-2.3.5/src/tracker-writeback/tracker-writeback-module.c
Examining data/tracker-miners-2.3.5/src/tracker-writeback/tracker-writeback-module.h
Examining data/tracker-miners-2.3.5/src/tracker-writeback/tracker-writeback-playlist.c
Examining data/tracker-miners-2.3.5/src/tracker-writeback/tracker-writeback-xmp.c
Examining data/tracker-miners-2.3.5/src/tracker-writeback/tracker-writeback.c
Examining data/tracker-miners-2.3.5/src/tracker-writeback/tracker-writeback.h
Examining data/tracker-miners-2.3.5/tests/common/tracker-test-helpers.c
Examining data/tracker-miners-2.3.5/tests/common/tracker-test-helpers.h
Examining data/tracker-miners-2.3.5/tests/libtracker-extract/tracker-encoding-test.c
Examining data/tracker-miners-2.3.5/tests/libtracker-extract/tracker-exif-test.c
Examining data/tracker-miners-2.3.5/tests/libtracker-extract/tracker-extract-info-test.c
Examining data/tracker-miners-2.3.5/tests/libtracker-extract/tracker-guarantee-test.c
Examining data/tracker-miners-2.3.5/tests/libtracker-extract/tracker-iptc-test.c
Examining data/tracker-miners-2.3.5/tests/libtracker-extract/tracker-module-manager-test.c
Examining data/tracker-miners-2.3.5/tests/libtracker-extract/tracker-utils-test.c
Examining data/tracker-miners-2.3.5/tests/libtracker-extract/tracker-xmp-test.c
Examining data/tracker-miners-2.3.5/tests/libtracker-miners-common/tracker-date-time-test.c
Examining data/tracker-miners-2.3.5/tests/libtracker-miners-common/tracker-dbus-test.c
Examining data/tracker-miners-2.3.5/tests/libtracker-miners-common/tracker-file-utils-test.c
Examining data/tracker-miners-2.3.5/tests/libtracker-miners-common/tracker-sched-test.c
Examining data/tracker-miners-2.3.5/tests/libtracker-miners-common/tracker-type-utils-test.c
Examining data/tracker-miners-2.3.5/tests/libtracker-miners-common/tracker-utils-test.c

FINAL RESULTS:

data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-seccomp.c:104:14:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	ALLOW_RULE (readlink);
data/tracker-miners-2.3.5/tests/libtracker-miners-common/tracker-file-utils-test.c:394:26:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        g_assert_cmpint (chmod (path, S_IRUSR & S_IRGRP), ==, 0);
data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-seccomp.c:101:14:  [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.
	ALLOW_RULE (access);
data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-dvi.c:86: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 (name, R_OK) == 0) {
data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-file-utils.c:549:30:  [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.
	home = g_file_new_for_path (g_get_home_dir ());
data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-file-utils.c:589:11:  [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.
			home = g_get_home_dir ();
data/tracker-miners-2.3.5/src/miners/fs/tracker-miner-files.c:645:37:  [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.
		if (g_str_has_prefix (dirs->data, g_get_tmp_dir ())) {
data/tracker-miners-2.3.5/src/miners/fs/tracker-miner-files.c:700:37:  [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.
		if (g_str_has_prefix (dirs->data, g_get_tmp_dir ())) {
data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-persistence.c:50:31:  [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.
	tmp_path = g_build_filename (g_get_tmp_dir (), dirname, NULL);
data/tracker-miners-2.3.5/src/libtracker-extract/tracker-xmp.c:80:10:  [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).
	value = atoi(mode);
data/tracker-miners-2.3.5/src/libtracker-extract/tracker-xmp.c:108:10:  [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).
	value = atoi (flash);
data/tracker-miners-2.3.5/src/libtracker-extract/tracker-xmp.c:212:7:  [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).
		a = atoi (cpy);
data/tracker-miners-2.3.5/src/libtracker-extract/tracker-xmp.c:213:7:  [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 = atoi (cpy + (ptr - value) + 1);
data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-date-time.c:89:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	tm.tm_year = atoi (match) - 1900;
data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-date-time.c:94:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	tm.tm_mon = atoi (match) - 1;
data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-date-time.c:99:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	tm.tm_mday = atoi (match);
data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-date-time.c:104:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	tm.tm_hour = atoi (match);
data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-date-time.c:109:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	tm.tm_min = atoi (match);
data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-date-time.c:114:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	tm.tm_sec = atoi (match);
data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-date-time.c:146: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).
			offset = atoi (match) * 3600;
data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-date-time.c:150:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			offset += atoi (match) * 60;
data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-date-time.c:186: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 milliseconds[4] = "000\0";
data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-date-time.c:189: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 (milliseconds, match + 1, MIN (3, strlen (match + 1)));
data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-date-time.c:190:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		t += (gdouble) atoi (milliseconds) / 1000;
data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-log.c:181: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).
		this_verbosity = atoi (env_verbosity);
data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-seccomp.c:194:54:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (seccomp_rule_add (ctx, SCMP_ACT_ALLOW, SCMP_SYS(open), 1,
data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-seccomp.c:197:63:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of 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 (seccomp_rule_add (ctx, SCMP_ACT_ERRNO (EACCES), SCMP_SYS(open), 1,
data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-seccomp.c:200:63:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of 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 (seccomp_rule_add (ctx, SCMP_ACT_ERRNO (EACCES), SCMP_SYS(open), 1,
data/tracker-miners-2.3.5/src/tracker-extract/tracker-cue-sheet.c:126:10:  [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).
		year = atoi (text);
data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-bmp.c:35: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 bfType[2] = { 0 };
data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-dvi.c:125:6:  [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).
	p = fopen (filename, "rb");
data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-flac.c:237: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).
		                                                   fd.discno ? atoi(fd.discno) : 1,
data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-gif.c:66: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(&(extBlock->bytes[extBlock->byteCount]), &extData[0], len);
data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-libav.c:137:63:  [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).
			tracker_resource_set_int64 (metadata, "nmm:episodeNumber", atoi(tag->value));
data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-libav.c:141:56:  [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).
			tracker_resource_set_int64 (metadata, "nmm:season", atoi(tag->value));
data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-libav.c:166:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			int track = atoi(tag->value);
data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-libav.c:211: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).
				disc_number = atoi (tag->value);
data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-mp3.c:673: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 (&c, data, 2);
data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-mp3.c:714: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).
			*genre = atoi (result);
data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-mp3.c:726: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).
			*genre = atoi (result);
data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-mp3.c:922:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	if (year && atoi (year) > 0) {
data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-mp3.c:938:23:  [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).
		id3->track_number = atoi (buf);
data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-mp3.c:1648:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			tag->length = atoi (word) / 1000;
data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-mp3.c:1665:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				tag->track_number = atoi (parts[0]);
data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-mp3.c:1667:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					tag->track_count = atoi (parts[1]);
data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-mp3.c:1680:23:  [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).
				tag->set_number = atoi (parts[0]);
data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-mp3.c:1682:23:  [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).
					tag->set_count = atoi (parts[1]);
data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-mp3.c:1691:8:  [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).
			if (atoi (word) > 0) {
data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-mp3.c:1843:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			tag->length = atoi (word) / 1000;
data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-mp3.c:1860:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				tag->track_number = atoi (parts[0]);
data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-mp3.c:1862:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					tag->track_count = atoi (parts[1]);
data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-mp3.c:1875:23:  [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).
				tag->set_number = atoi (parts[0]);
data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-mp3.c:1877:23:  [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).
					tag->set_count = atoi (parts[1]);
data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-mp3.c:1886:8:  [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).
			if (atoi (word) > 0) {
data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-mp3.c:1978:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			tag->length = atoi (word) / 1000;
data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-mp3.c:1995:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				tag->track_number = atoi (parts[0]);
data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-mp3.c:1997:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					tag->track_count = atoi (parts[1]);
data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-mp3.c:2018:8:  [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).
			if (atoi (word) > 0) {
data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-msoffice-xml.c:220: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).
				if (atoi (*v) >= 38) {
data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-msoffice-xml.c:330:7:  [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).
		if (atoi (text) == 0)  {
data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-png.c:150:11:  [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).
	length = atoi (length_str);
data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-vorbis.c:197:71:  [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).
		                                                   vd.disc_number ? atoi(vd.disc_number) : 1,
data/tracker-miners-2.3.5/src/tracker-writeback/tracker-writeback-gstreamer.c:692:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			g_value_set_int (&val, atoi(row[3]));
data/tracker-miners-2.3.5/src/tracker-writeback/tracker-writeback-gstreamer.c:741:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				g_value_set_int (&val, atoi(disc_number));
data/tracker-miners-2.3.5/tests/libtracker-extract/tracker-iptc-test.c:69:13:  [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 (filename, "r");
data/tracker-miners-2.3.5/tests/libtracker-extract/tracker-utils-test.c:269:13:  [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 (TOP_SRCDIR "/tests/libtracker-extract/getline-test.txt", "r");
data/tracker-miners-2.3.5/src/libtracker-extract/tracker-exif.c:151: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 (buf) <= 0) {
data/tracker-miners-2.3.5/src/libtracker-extract/tracker-module-manager.c:255: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 (mimetype);
data/tracker-miners-2.3.5/src/libtracker-extract/tracker-utils.c:389: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).
	len_to_validate = text_len >= 0 ? text_len : strlen (text);
data/tracker-miners-2.3.5/src/libtracker-extract/tracker-utils.c:481: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 (str);
data/tracker-miners-2.3.5/src/libtracker-extract/tracker-utils.c:544: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 (date_string);
data/tracker-miners-2.3.5/src/libtracker-extract/tracker-utils.c:851:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((ch = fgetc (file)) != EOF) {
data/tracker-miners-2.3.5/src/libtracker-extract/tracker-utils.c:938: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 (keywords_d);
data/tracker-miners-2.3.5/src/libtracker-extract/tracker-utils.c:949: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).
		guint len = strlen (p_dup);
data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-date-time.c:118: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).
	timezoned = (match && strlen (match) > 0);
data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-date-time.c:137: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 (match && strlen (match) > 0) {
data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-date-time.c:185: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).
	if (match && strlen (match) > 0) {
data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-date-time.c:189: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).
		memcpy (milliseconds, match + 1, MIN (3, strlen (match + 1)));
data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-file-utils.c:616: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).
			end = start + (strlen (start)) - 1;
data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-file-utils.c:820: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_a = strlen (a);
data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-file-utils.c:822: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_b = strlen (b);
data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-seccomp.c:109:14:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	ALLOW_RULE (umask);
data/tracker-miners-2.3.5/src/libtracker-miners-common/tracker-seccomp.c:143:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ALLOW_RULE (read);
data/tracker-miners-2.3.5/src/miners/fs/tracker-config.c:1021:11:  [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/tracker-miners-2.3.5/src/miners/fs/tracker-config.c:1041:6:  [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/tracker-miners-2.3.5/src/miners/fs/tracker-config.c:1054:11:  [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/tracker-miners-2.3.5/src/miners/fs/tracker-config.c:1074:6:  [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/tracker-miners-2.3.5/src/miners/fs/tracker-config.c:1087:11:  [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/tracker-miners-2.3.5/src/miners/fs/tracker-config.c:1107:6:  [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/tracker-miners-2.3.5/src/miners/fs/tracker-config.c:1123:11:  [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/tracker-miners-2.3.5/src/miners/fs/tracker-config.c:1143:6:  [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/tracker-miners-2.3.5/src/miners/fs/tracker-config.c:1156:11:  [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/tracker-miners-2.3.5/src/miners/fs/tracker-config.c:1176:6:  [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/tracker-miners-2.3.5/src/miners/fs/tracker-miner-files.c:1300: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).
				uuid = urn + strlen (TRACKER_PREFIX_DATASOURCE_URN);
data/tracker-miners-2.3.5/src/miners/fs/tracker-storage.c:503: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).
				name = mount_path + strlen ("/");
data/tracker-miners-2.3.5/src/miners/fs/tracker-storage.c:885: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 (normalized_mount_point);
data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-dvi.c:36:32:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define fgetbyte(p)	((unsigned)getc(p))
data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-dvi.c:80: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 (name);
data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-epub.c:307: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 (data->savedstring);
data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-epub.c:347: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 (text);
data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-gstreamer.c:355: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_memmove (buffer, buffer + 9, strlen ((gchar *) buffer + 9) + 1);
data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-html.c:206: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).
			text_len = strlen (ch);
data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-mp3.c:646:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		rc = read (fd,
data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-msoffice.c:154: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).
	guint length = strlen (str);
data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-msoffice.c:210: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 (s);
data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-msoffice.c:298: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 (keywords);
data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-pdf.c:220: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).
		                                MIN (strlen (text), remaining_bytes),
data/tracker-miners-2.3.5/src/tracker-extract/tracker-extract-pdf.c:402: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).
	    (xd = tracker_xmp_new (xml, strlen (xml), uri)) != NULL) {
data/tracker-miners-2.3.5/tests/libtracker-extract/tracker-utils-test.c:133: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).
		                                     strlen (valid_utf8[i]),
data/tracker-miners-2.3.5/tests/libtracker-extract/tracker-utils-test.c:137: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_assert_cmpuint (utf8_len, ==, strlen (valid_utf8[i]));
data/tracker-miners-2.3.5/tests/libtracker-extract/tracker-utils-test.c:139: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).
		g_assert_cmpuint (s->len, ==, strlen (valid_utf8[i]));
data/tracker-miners-2.3.5/tests/libtracker-extract/tracker-utils-test.c:153: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_assert_cmpuint (utf8_len, ==, strlen (valid_utf8[i]));
data/tracker-miners-2.3.5/tests/libtracker-extract/tracker-utils-test.c:155: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).
		g_assert_cmpuint (s->len, ==, strlen (valid_utf8[i]));
data/tracker-miners-2.3.5/tests/libtracker-extract/tracker-utils-test.c:169: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).
		g_assert_cmpuint (s->len, ==, strlen (valid_utf8[i]));
data/tracker-miners-2.3.5/tests/libtracker-extract/tracker-utils-test.c:182: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_assert_cmpuint (utf8_len, ==, strlen (valid_utf8[i]));
data/tracker-miners-2.3.5/tests/libtracker-extract/tracker-utils-test.c:200: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).
	g_assert_cmpuint (utf8_len, ==, strlen ("abcdefghijk"));
data/tracker-miners-2.3.5/tests/libtracker-extract/tracker-utils-test.c:202: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).
	g_assert_cmpuint (s->len, ==, strlen ("abcdefghijk"));
data/tracker-miners-2.3.5/tests/libtracker-extract/tracker-utils-test.c:215: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).
        g_assert_cmpint (strlen (result), <=, 25);
data/tracker-miners-2.3.5/tests/libtracker-extract/tracker-xmp-test.c:187:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	data = tracker_xmp_new (BROKEN_XMP, strlen (BROKEN_XMP), "test://file");
data/tracker-miners-2.3.5/tests/libtracker-extract/tracker-xmp-test.c:207: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).
	data = tracker_xmp_new (EXAMPLE_XMP, strlen (EXAMPLE_XMP), "test://file");
data/tracker-miners-2.3.5/tests/libtracker-extract/tracker-xmp-test.c:258: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).
		data = tracker_xmp_new (xmp, strlen (xmp), "local://file");
data/tracker-miners-2.3.5/tests/libtracker-extract/tracker-xmp-test.c:276: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).
		data = tracker_xmp_new (xmp, strlen (xmp), "local://file");
data/tracker-miners-2.3.5/tests/libtracker-extract/tracker-xmp-test.c:293: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).
	data = tracker_xmp_new (EXAMPLE_XMP, strlen (EXAMPLE_XMP), "urn:uuid:test");

ANALYSIS SUMMARY:

Hits = 123
Lines analyzed = 48819 in approximately 1.05 seconds (46292 lines/second)
Physical Source Lines of Code (SLOC) = 33551
Hits@level = [0]  10 [1]  57 [2]  57 [3]   5 [4]   2 [5]   2
Hits@level+ = [0+] 133 [1+] 123 [2+]  66 [3+]   9 [4+]   4 [5+]   2
Hits/KSLOC@level+ = [0+] 3.96411 [1+] 3.66606 [2+] 1.96715 [3+] 0.268248 [4+] 0.119221 [5+] 0.0596107
Dot directories skipped = 3 (--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.