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/qtkeychain-0.10.0/gnomekeyring_p.h
Examining data/qtkeychain-0.10.0/libsecret_p.h
Examining data/qtkeychain-0.10.0/keychain_p.h
Examining data/qtkeychain-0.10.0/keychain_unix.cpp
Examining data/qtkeychain-0.10.0/keychain_mac.cpp
Examining data/qtkeychain-0.10.0/keychain_win.cpp
Examining data/qtkeychain-0.10.0/keychain.h
Examining data/qtkeychain-0.10.0/plaintextstore.cpp
Examining data/qtkeychain-0.10.0/testclient.cpp
Examining data/qtkeychain-0.10.0/gnomekeyring.cpp
Examining data/qtkeychain-0.10.0/libsecret.cpp
Examining data/qtkeychain-0.10.0/plaintextstore_p.h
Examining data/qtkeychain-0.10.0/keychain.cpp

FINAL RESULTS:

data/qtkeychain-0.10.0/keychain_unix.cpp:213:56:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    const QDBusPendingReply<int> pendingReply = iface->open( reply.value(), 0, q->service() );
data/qtkeychain-0.10.0/keychain_mac.cpp:33:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            .arg( QString::fromUtf8( buf, strlen( buf ) ) ).arg( os );
data/qtkeychain-0.10.0/plaintextstore.cpp:39:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return read(dataKey(key)).toByteArray();
data/qtkeychain-0.10.0/plaintextstore.cpp:46:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return JobPrivate::stringToMode(read(typeKey(key)).toString());
data/qtkeychain-0.10.0/plaintextstore.cpp:99:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
QVariant PlainTextStore::read(const QString &key)
data/qtkeychain-0.10.0/plaintextstore_p.h:37:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    QVariant read(const QString &key);

ANALYSIS SUMMARY:

Hits = 6
Lines analyzed = 2437 in approximately 0.10 seconds (25191 lines/second)
Physical Source Lines of Code (SLOC) = 1820
Hits@level = [0]   0 [1]   5 [2]   1 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]   6 [1+]   6 [2+]   1 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 3.2967 [1+] 3.2967 [2+] 0.549451 [3+]   0 [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.