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/sffview-0.5.0/sffview.h Examining data/sffview-0.5.0/sffapp.cpp Examining data/sffview-0.5.0/codes.h Examining data/sffview-0.5.0/sffdoc.h Examining data/sffview-0.5.0/sfffile.h Examining data/sffview-0.5.0/sfffile.cpp Examining data/sffview-0.5.0/sffapp.h Examining data/sffview-0.5.0/codes.cpp Examining data/sffview-0.5.0/decoder.h Examining data/sffview-0.5.0/decoder.cpp Examining data/sffview-0.5.0/common.h Examining data/sffview-0.5.0/sfftypes.h Examining data/sffview-0.5.0/sffview.cpp Examining data/sffview-0.5.0/common.cpp Examining data/sffview-0.5.0/sffdoc.cpp FINAL RESULTS: data/sffview-0.5.0/common.cpp:130:35: [2] (misc) fopen: 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 (( m_hFile ) || !( m_hFile = fopen(strPath.c_str(), pszMode))) data/sffview-0.5.0/sffapp.cpp:280:32: [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). toolBarBitmaps[0] = wxBITMAP(open); data/sffview-0.5.0/sffdoc.cpp:93:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(m_pBitmap+(m_WidthInBytes*m_Scanline), m_abBuffer, m_WidthInBytes); data/sffview-0.5.0/common.cpp:166:12: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return ::fgetc(m_hFile); ANALYSIS SUMMARY: Hits = 4 Lines analyzed = 2984 in approximately 0.07 seconds (42652 lines/second) Physical Source Lines of Code (SLOC) = 1975 Hits@level = [0] 1 [1] 1 [2] 3 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 5 [1+] 4 [2+] 3 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 2.53165 [1+] 2.02532 [2+] 1.51899 [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.