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/kalgebra-20.08.0/plasmoids/calculator/kalgebraplasma.h Examining data/kalgebra-20.08.0/plasmoids/calculator/kalgebraplasma.cpp Examining data/kalgebra-20.08.0/mobile/kalgebramobile.cpp Examining data/kalgebra-20.08.0/mobile/clipboard.h Examining data/kalgebra-20.08.0/mobile/pluginsmodel.h Examining data/kalgebra-20.08.0/mobile/clipboard.cpp Examining data/kalgebra-20.08.0/mobile/kalgebramobile.h Examining data/kalgebra-20.08.0/mobile/main.cpp Examining data/kalgebra-20.08.0/mobile/pluginsmodel.cpp Examining data/kalgebra-20.08.0/utils/main.cpp Examining data/kalgebra-20.08.0/calgebra/main.cpp Examining data/kalgebra-20.08.0/src/variablesdelegate.cpp Examining data/kalgebra-20.08.0/src/variablesdelegate.h Examining data/kalgebra-20.08.0/src/viewportwidget.h Examining data/kalgebra-20.08.0/src/kalgebra.cpp Examining data/kalgebra-20.08.0/src/dictionary.cpp Examining data/kalgebra-20.08.0/src/functionedit.cpp Examining data/kalgebra-20.08.0/src/consolemodel.cpp Examining data/kalgebra-20.08.0/src/viewportwidget.cpp Examining data/kalgebra-20.08.0/src/kalgebra.h Examining data/kalgebra-20.08.0/src/varedit.h Examining data/kalgebra-20.08.0/src/main.cpp Examining data/kalgebra-20.08.0/src/askname.h Examining data/kalgebra-20.08.0/src/consolehtml.cpp Examining data/kalgebra-20.08.0/src/functionedit.h Examining data/kalgebra-20.08.0/src/varedit.cpp Examining data/kalgebra-20.08.0/src/consolehtml.h Examining data/kalgebra-20.08.0/src/consolemodel.h Examining data/kalgebra-20.08.0/src/dictionary.h FINAL RESULTS: data/kalgebra-20.08.0/calgebra/main.cpp:97:19: [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::ReadOnly)) { data/kalgebra-20.08.0/src/consolehtml.cpp:42:10: [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). temp.open(); data/kalgebra-20.08.0/src/consolemodel.cpp:102:13: [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 | QIODevice::Text)) { data/kalgebra-20.08.0/src/consolemodel.cpp:122:23: [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). bool correct=file.open(QIODevice::WriteOnly | QIODevice::Text); data/kalgebra-20.08.0/src/consolemodel.cpp:158: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). bool correct = file.open(QIODevice::WriteOnly | QIODevice::Text); data/kalgebra-20.08.0/utils/main.cpp:31: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). bool fileopened = f.open(QFile::WriteOnly); ANALYSIS SUMMARY: Hits = 6 Lines analyzed = 3634 in approximately 0.14 seconds (26322 lines/second) Physical Source Lines of Code (SLOC) = 2457 Hits@level = [0] 0 [1] 0 [2] 6 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 6 [1+] 6 [2+] 6 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 2.442 [1+] 2.442 [2+] 2.442 [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.