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/kcalc-20.08.0/kcalc_core.h
Examining data/kcalc-20.08.0/kcalcdisplay.cpp
Examining data/kcalc-20.08.0/kcalc_button.cpp
Examining data/kcalc-20.08.0/kcalcdisplay.h
Examining data/kcalc-20.08.0/kcalc_const_button.cpp
Examining data/kcalc-20.08.0/bitbutton.cpp
Examining data/kcalc-20.08.0/kcalc_const_menu.h
Examining data/kcalc-20.08.0/stats.cpp
Examining data/kcalc-20.08.0/kcalc_statusbar.cpp
Examining data/kcalc-20.08.0/kcalc_core.cpp
Examining data/kcalc-20.08.0/bitbutton.h
Examining data/kcalc-20.08.0/stats.h
Examining data/kcalc-20.08.0/kcalc_bitset.h
Examining data/kcalc-20.08.0/kcalc_statusbar.h
Examining data/kcalc-20.08.0/kcalc_bitset.cpp
Examining data/kcalc-20.08.0/kcalc_const_button.h
Examining data/kcalc-20.08.0/kcalc.h
Examining data/kcalc-20.08.0/knumber/tests/knumbertest.cpp
Examining data/kcalc-20.08.0/knumber/knumber_float.cpp
Examining data/kcalc-20.08.0/knumber/knumber_fraction.cpp
Examining data/kcalc-20.08.0/knumber/knumber.cpp
Examining data/kcalc-20.08.0/knumber/knumber_fraction.h
Examining data/kcalc-20.08.0/knumber/knumber_error.h
Examining data/kcalc-20.08.0/knumber/knumber_integer.cpp
Examining data/kcalc-20.08.0/knumber/knumber_integer.h
Examining data/kcalc-20.08.0/knumber/knumber_error.cpp
Examining data/kcalc-20.08.0/knumber/knumber_base.h
Examining data/kcalc-20.08.0/knumber/knumber.h
Examining data/kcalc-20.08.0/knumber/knumber_operators.h
Examining data/kcalc-20.08.0/knumber/knumber_float.h
Examining data/kcalc-20.08.0/knumber/knumber_operators.cpp
Examining data/kcalc-20.08.0/kcalc.cpp
Examining data/kcalc-20.08.0/kcalc_const_menu.cpp
Examining data/kcalc-20.08.0/kcalc_button.h

FINAL RESULTS:

data/kcalc-20.08.0/kcalc_const_menu.cpp:66: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).
    if (!file.open(QIODevice::ReadOnly)) {

ANALYSIS SUMMARY:

Hits = 1
Lines analyzed = 12750 in approximately 0.34 seconds (37693 lines/second)
Physical Source Lines of Code (SLOC) = 7974
Hits@level = [0]   0 [1]   0 [2]   1 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]   1 [1+]   1 [2+]   1 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 0.125408 [1+] 0.125408 [2+] 0.125408 [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.