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/akonadi-calendar-tools-20.08.2/calendarjanitor/calendarjanitor.h
Examining data/akonadi-calendar-tools-20.08.2/calendarjanitor/calendarjanitor.cpp
Examining data/akonadi-calendar-tools-20.08.2/calendarjanitor/backuper.h
Examining data/akonadi-calendar-tools-20.08.2/calendarjanitor/options.cpp
Examining data/akonadi-calendar-tools-20.08.2/calendarjanitor/main.cpp
Examining data/akonadi-calendar-tools-20.08.2/calendarjanitor/backuper.cpp
Examining data/akonadi-calendar-tools-20.08.2/calendarjanitor/options.h
Examining data/akonadi-calendar-tools-20.08.2/calendarjanitor/collectionloader.h
Examining data/akonadi-calendar-tools-20.08.2/calendarjanitor/collectionloader.cpp
Examining data/akonadi-calendar-tools-20.08.2/konsolekalendar/konsolekalendaradd.h
Examining data/akonadi-calendar-tools-20.08.2/konsolekalendar/konsolekalendarvariables.cpp
Examining data/akonadi-calendar-tools-20.08.2/konsolekalendar/konsolekalendarvariables.h
Examining data/akonadi-calendar-tools-20.08.2/konsolekalendar/konsolekalendar.h
Examining data/akonadi-calendar-tools-20.08.2/konsolekalendar/konsolekalendarepoch.cpp
Examining data/akonadi-calendar-tools-20.08.2/konsolekalendar/konsolekalendar.cpp
Examining data/akonadi-calendar-tools-20.08.2/konsolekalendar/konsolekalendarexports.cpp
Examining data/akonadi-calendar-tools-20.08.2/konsolekalendar/konsolekalendarchange.h
Examining data/akonadi-calendar-tools-20.08.2/konsolekalendar/main.cpp
Examining data/akonadi-calendar-tools-20.08.2/konsolekalendar/konsolekalendarexports.h
Examining data/akonadi-calendar-tools-20.08.2/konsolekalendar/konsolekalendardelete.cpp
Examining data/akonadi-calendar-tools-20.08.2/konsolekalendar/konsolekalendaradd.cpp
Examining data/akonadi-calendar-tools-20.08.2/konsolekalendar/konsolekalendarepoch.h
Examining data/akonadi-calendar-tools-20.08.2/konsolekalendar/konsolekalendardelete.h
Examining data/akonadi-calendar-tools-20.08.2/konsolekalendar/konsolekalendarchange.cpp

FINAL RESULTS:

data/akonadi-calendar-tools-20.08.2/calendarjanitor/main.cpp:70:20:  [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).
        int fd = ::open("/dev/null", O_WRONLY);
data/akonadi-calendar-tools-20.08.2/konsolekalendar/konsolekalendar.cpp:211:20:  [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 (!f.open(QIODevice::WriteOnly)) {
data/akonadi-calendar-tools-20.08.2/konsolekalendar/konsolekalendar.cpp:218: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).
            f.open(stdout, QIODevice::WriteOnly);

ANALYSIS SUMMARY:

Hits = 3
Lines analyzed = 5095 in approximately 0.18 seconds (28867 lines/second)
Physical Source Lines of Code (SLOC) = 3080
Hits@level = [0]   0 [1]   0 [2]   3 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]   3 [1+]   3 [2+]   3 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 0.974026 [1+] 0.974026 [2+] 0.974026 [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.