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/kdnssd-kf5-5.74.0/src/domainbrowser.h
Examining data/kdnssd-kf5-5.74.0/src/avahi_serviceresolver_interface.h
Examining data/kdnssd-kf5-5.74.0/src/servicebase_p.h
Examining data/kdnssd-kf5-5.74.0/src/avahi_server_interface.h
Examining data/kdnssd-kf5-5.74.0/src/avahi-servicebrowser.cpp
Examining data/kdnssd-kf5-5.74.0/src/dummy-domainbrowser.cpp
Examining data/kdnssd-kf5-5.74.0/src/avahi-servicebrowser_p.h
Examining data/kdnssd-kf5-5.74.0/src/avahi_listener_p.h
Examining data/kdnssd-kf5-5.74.0/src/avahi-servicetypebrowser.cpp
Examining data/kdnssd-kf5-5.74.0/src/mdnsd-publicservice.cpp
Examining data/kdnssd-kf5-5.74.0/src/mdnsd-sdevent.h
Examining data/kdnssd-kf5-5.74.0/src/avahi_listener.cpp
Examining data/kdnssd-kf5-5.74.0/src/mdnsd-domainbrowser_p.h
Examining data/kdnssd-kf5-5.74.0/src/servicemodel.cpp
Examining data/kdnssd-kf5-5.74.0/src/avahi-publicservice.cpp
Examining data/kdnssd-kf5-5.74.0/src/avahi-servicetypebrowser_p.h
Examining data/kdnssd-kf5-5.74.0/src/mdnsd-remoteservice.cpp
Examining data/kdnssd-kf5-5.74.0/src/mdnsd-servicebrowser_p.h
Examining data/kdnssd-kf5-5.74.0/src/avahi_entrygroup_interface.h
Examining data/kdnssd-kf5-5.74.0/src/mdnsd-domainbrowser.cpp
Examining data/kdnssd-kf5-5.74.0/src/domainmodel.cpp
Examining data/kdnssd-kf5-5.74.0/src/mdnsd-servicetypebrowser_p.h
Examining data/kdnssd-kf5-5.74.0/src/avahi-publicservice_p.h
Examining data/kdnssd-kf5-5.74.0/src/servicebase.h
Examining data/kdnssd-kf5-5.74.0/src/servicebrowser.h
Examining data/kdnssd-kf5-5.74.0/src/avahi-domainbrowser_p.h
Examining data/kdnssd-kf5-5.74.0/src/avahi-remoteservice_p.h
Examining data/kdnssd-kf5-5.74.0/src/mdnsd-servicebrowser.cpp
Examining data/kdnssd-kf5-5.74.0/src/servicemodel.h
Examining data/kdnssd-kf5-5.74.0/src/dummy-publicservice.cpp
Examining data/kdnssd-kf5-5.74.0/src/avahi-remoteservice.cpp
Examining data/kdnssd-kf5-5.74.0/src/dummy-servicebrowser.cpp
Examining data/kdnssd-kf5-5.74.0/src/avahi_serviceresolver_interface.cpp
Examining data/kdnssd-kf5-5.74.0/src/mdnsd-servicetypebrowser.cpp
Examining data/kdnssd-kf5-5.74.0/src/domainmodel.h
Examining data/kdnssd-kf5-5.74.0/src/remoteservice.h
Examining data/kdnssd-kf5-5.74.0/src/avahi_server_interface.cpp
Examining data/kdnssd-kf5-5.74.0/src/dummy-remoteservice.cpp
Examining data/kdnssd-kf5-5.74.0/src/servicebase.cpp
Examining data/kdnssd-kf5-5.74.0/src/mdnsd-responder.h
Examining data/kdnssd-kf5-5.74.0/src/publicservice.h
Examining data/kdnssd-kf5-5.74.0/src/avahi_entrygroup_interface.cpp
Examining data/kdnssd-kf5-5.74.0/src/dummy-servicetypebrowser.cpp
Examining data/kdnssd-kf5-5.74.0/src/mdnsd-responder.cpp
Examining data/kdnssd-kf5-5.74.0/src/avahi-domainbrowser.cpp
Examining data/kdnssd-kf5-5.74.0/src/servicetypebrowser.h

FINAL RESULTS:

data/kdnssd-kf5-5.74.0/src/avahi-domainbrowser.cpp:100:25:  [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 (domains_cfg.open(QIODevice::ReadOnly | QIODevice::Text))
data/kdnssd-kf5-5.74.0/src/mdnsd-remoteservice.cpp:129:5:  [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 key[256];

ANALYSIS SUMMARY:

Hits = 2
Lines analyzed = 4955 in approximately 0.21 seconds (23537 lines/second)
Physical Source Lines of Code (SLOC) = 3005
Hits@level = [0]   0 [1]   0 [2]   2 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]   2 [1+]   2 [2+]   2 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 0.665557 [1+] 0.665557 [2+] 0.665557 [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.