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/zeitgeist-1.0.2/examples/vala/insert-events.c
Examining data/zeitgeist-1.0.2/examples/vala/data-source-stuff.c
Examining data/zeitgeist-1.0.2/examples/vala/get-events-with-id.c
Examining data/zeitgeist-1.0.2/examples/vala/most-recent-events.c
Examining data/zeitgeist-1.0.2/examples/vala/monitor-events.c
Examining data/zeitgeist-1.0.2/examples/c/find-events.c
Examining data/zeitgeist-1.0.2/examples/c/monitor-events.c
Examining data/zeitgeist-1.0.2/examples/c/search-events.c
Examining data/zeitgeist-1.0.2/test/c/test-timerange.c
Examining data/zeitgeist-1.0.2/test/c/test-monitor.c
Examining data/zeitgeist-1.0.2/test/c/test-symbols.c
Examining data/zeitgeist-1.0.2/test/c/test-timestamp.c
Examining data/zeitgeist-1.0.2/test/c/test-mimetypes.c
Examining data/zeitgeist-1.0.2/test/c/test-log.c
Examining data/zeitgeist-1.0.2/test/c/test-datasource.c
Examining data/zeitgeist-1.0.2/test/c/test-event.c
Examining data/zeitgeist-1.0.2/test/direct/query-operators-test.c
Examining data/zeitgeist-1.0.2/test/direct/tests.h
Examining data/zeitgeist-1.0.2/test/direct/table-lookup-test.c
Examining data/zeitgeist-1.0.2/test/direct/symbol-test.c
Examining data/zeitgeist-1.0.2/test/direct/where-clause-test.c
Examining data/zeitgeist-1.0.2/test/direct/log-test.c
Examining data/zeitgeist-1.0.2/test/direct/marshalling-test.c
Examining data/zeitgeist-1.0.2/test/direct/event-test.c
Examining data/zeitgeist-1.0.2/test/direct/monitor-test.c
Examining data/zeitgeist-1.0.2/test/direct/datasource-test.c
Examining data/zeitgeist-1.0.2/test/direct/datamodel-test.c
Examining data/zeitgeist-1.0.2/test/direct/mimetype-test.c
Examining data/zeitgeist-1.0.2/doc/libzeitgeist/docs_c/ccomments/timestamp.c
Examining data/zeitgeist-1.0.2/doc/libzeitgeist/docs_c/ccomments/timerange.c
Examining data/zeitgeist-1.0.2/doc/libzeitgeist/docs_c/ccomments/errors.c
Examining data/zeitgeist-1.0.2/doc/libzeitgeist/docs_c/ccomments/log.c
Examining data/zeitgeist-1.0.2/doc/libzeitgeist/docs_c/ccomments/ontology.c
Examining data/zeitgeist-1.0.2/doc/libzeitgeist/docs_c/ccomments/index.c
Examining data/zeitgeist-1.0.2/doc/libzeitgeist/docs_c/ccomments/ontology-uris.c
Examining data/zeitgeist-1.0.2/doc/libzeitgeist/docs_c/ccomments/queued-proxy-wrapper.c
Examining data/zeitgeist-1.0.2/doc/libzeitgeist/docs_c/ccomments/result-set.c
Examining data/zeitgeist-1.0.2/doc/libzeitgeist/docs_c/ccomments/event.c
Examining data/zeitgeist-1.0.2/doc/libzeitgeist/docs_c/ccomments/data-source.c
Examining data/zeitgeist-1.0.2/doc/libzeitgeist/docs_c/ccomments/monitor.c
Examining data/zeitgeist-1.0.2/doc/libzeitgeist/docs_c/ccomments/simple-result-set.c
Examining data/zeitgeist-1.0.2/doc/libzeitgeist/docs_c/ccomments/utils.c
Examining data/zeitgeist-1.0.2/doc/libzeitgeist/docs_c/ccomments/data-source-registry.c
Examining data/zeitgeist-1.0.2/doc/libzeitgeist/docs_c/ccomments/subject.c
Examining data/zeitgeist-1.0.2/doc/libzeitgeist/docs_c/ccomments/remote.c
Examining data/zeitgeist-1.0.2/doc/libzeitgeist/docs_c/ccomments/mimetype.c
Examining data/zeitgeist-1.0.2/doc/libzeitgeist/docs_c/ccomments/enumerations.c
Examining data/zeitgeist-1.0.2/extensions/ds-registry.c
Examining data/zeitgeist-1.0.2/extensions/storage-monitor.c
Examining data/zeitgeist-1.0.2/extensions/benchmark.c
Examining data/zeitgeist-1.0.2/extensions/fts.c
Examining data/zeitgeist-1.0.2/extensions/blacklist.c
Examining data/zeitgeist-1.0.2/extensions/fts++/fts.h
Examining data/zeitgeist-1.0.2/extensions/fts++/stringutils.h
Examining data/zeitgeist-1.0.2/extensions/fts++/test/test-stringutils.cpp
Examining data/zeitgeist-1.0.2/extensions/fts++/test/test-indexer.cpp
Examining data/zeitgeist-1.0.2/extensions/fts++/test/test-fts.c
Examining data/zeitgeist-1.0.2/extensions/fts++/fts.cpp
Examining data/zeitgeist-1.0.2/extensions/fts++/task.h
Examining data/zeitgeist-1.0.2/extensions/fts++/indexer.h
Examining data/zeitgeist-1.0.2/extensions/fts++/stringutils.cpp
Examining data/zeitgeist-1.0.2/extensions/fts++/controller.cpp
Examining data/zeitgeist-1.0.2/extensions/fts++/task.cpp
Examining data/zeitgeist-1.0.2/extensions/fts++/indexer.cpp
Examining data/zeitgeist-1.0.2/extensions/fts++/controller.h
Examining data/zeitgeist-1.0.2/extensions/histogram.c

FINAL RESULTS:

data/zeitgeist-1.0.2/extensions/fts++/indexer.h:49: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.
    const gchar *home_dir = g_get_home_dir ();
data/zeitgeist-1.0.2/extensions/fts++/indexer.cpp:64:49:  [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).
      this->db->add_database (Xapian::InMemory::open ());
data/zeitgeist-1.0.2/extensions/fts++/indexer.cpp:219:49:  [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).
      this->db->add_database (Xapian::InMemory::open ());
data/zeitgeist-1.0.2/extensions/fts++/test/test-indexer.cpp:856:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
  usleep (50000);
data/zeitgeist-1.0.2/extensions/fts++/test/test-indexer.cpp:858:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
  usleep (50000);

ANALYSIS SUMMARY:

Hits = 5
Lines analyzed = 27603 in approximately 0.81 seconds (34276 lines/second)
Physical Source Lines of Code (SLOC) = 21336
Hits@level = [0]  12 [1]   2 [2]   2 [3]   1 [4]   0 [5]   0
Hits@level+ = [0+]  17 [1+]   5 [2+]   3 [3+]   1 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 0.796775 [1+] 0.234346 [2+] 0.140607 [3+] 0.0468691 [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.