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/deepin-voice-recorder-5.0.0/src/expand_animation_button.cpp Examining data/deepin-voice-recorder-5.0.0/src/expand_animation_button.h Examining data/deepin-voice-recorder-5.0.0/src/file_item.cpp Examining data/deepin-voice-recorder-5.0.0/src/file_item.h Examining data/deepin-voice-recorder-5.0.0/src/file_view.cpp Examining data/deepin-voice-recorder-5.0.0/src/file_view.h Examining data/deepin-voice-recorder-5.0.0/src/home_page.cpp Examining data/deepin-voice-recorder-5.0.0/src/home_page.h Examining data/deepin-voice-recorder-5.0.0/src/label.cpp Examining data/deepin-voice-recorder-5.0.0/src/label.h Examining data/deepin-voice-recorder-5.0.0/src/line_edit.cpp Examining data/deepin-voice-recorder-5.0.0/src/line_edit.h Examining data/deepin-voice-recorder-5.0.0/src/list_page.cpp Examining data/deepin-voice-recorder-5.0.0/src/list_page.h Examining data/deepin-voice-recorder-5.0.0/src/main.cpp Examining data/deepin-voice-recorder-5.0.0/src/main_window.cpp Examining data/deepin-voice-recorder-5.0.0/src/main_window.h Examining data/deepin-voice-recorder-5.0.0/src/record_page.cpp Examining data/deepin-voice-recorder-5.0.0/src/record_page.h Examining data/deepin-voice-recorder-5.0.0/src/recording_button.cpp Examining data/deepin-voice-recorder-5.0.0/src/recording_button.h Examining data/deepin-voice-recorder-5.0.0/src/shrank_animation_button.cpp Examining data/deepin-voice-recorder-5.0.0/src/shrank_animation_button.h Examining data/deepin-voice-recorder-5.0.0/src/toolbar.cpp Examining data/deepin-voice-recorder-5.0.0/src/toolbar.h Examining data/deepin-voice-recorder-5.0.0/src/utils.cpp Examining data/deepin-voice-recorder-5.0.0/src/utils.h Examining data/deepin-voice-recorder-5.0.0/src/waveform.cpp Examining data/deepin-voice-recorder-5.0.0/src/waveform.h FINAL RESULTS: data/deepin-voice-recorder-5.0.0/src/utils.cpp:59: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). file.open(QFile::ReadOnly); ANALYSIS SUMMARY: Hits = 1 Lines analyzed = 2982 in approximately 0.15 seconds (19441 lines/second) Physical Source Lines of Code (SLOC) = 1823 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.548546 [1+] 0.548546 [2+] 0.548546 [3+] 0 [4+] 0 [5+] 0 Dot directories skipped = 2 (--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.