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/yasw-0.6/src/constants.cpp Examining data/yasw-0.6/src/constants.h Examining data/yasw-0.6/src/filter/abstractfilterwidget.cpp Examining data/yasw-0.6/src/filter/abstractfilterwidget.h Examining data/yasw-0.6/src/filter/basefilter.cpp Examining data/yasw-0.6/src/filter/basefilter.h Examining data/yasw-0.6/src/filter/basefiltergraphicsview.cpp Examining data/yasw-0.6/src/filter/basefiltergraphicsview.h Examining data/yasw-0.6/src/filter/basefilterwidget.cpp Examining data/yasw-0.6/src/filter/basefilterwidget.h Examining data/yasw-0.6/src/filter/colorcorrection.cpp Examining data/yasw-0.6/src/filter/colorcorrection.h Examining data/yasw-0.6/src/filter/colorcorrectiongraphicsscene.cpp Examining data/yasw-0.6/src/filter/colorcorrectiongraphicsscene.h Examining data/yasw-0.6/src/filter/colorcorrectiongraphicsview.h Examining data/yasw-0.6/src/filter/colorcorrectionwidget.cpp Examining data/yasw-0.6/src/filter/colorcorrectionwidget.h Examining data/yasw-0.6/src/filter/cropping/cropping.cpp Examining data/yasw-0.6/src/filter/cropping/cropping.h Examining data/yasw-0.6/src/filter/cropping/croppingcorner.cpp Examining data/yasw-0.6/src/filter/cropping/croppingcorner.h Examining data/yasw-0.6/src/filter/cropping/croppinggraphicsview.cpp Examining data/yasw-0.6/src/filter/cropping/croppinggraphicsview.h Examining data/yasw-0.6/src/filter/cropping/croppingwidget.cpp Examining data/yasw-0.6/src/filter/cropping/croppingwidget.h Examining data/yasw-0.6/src/filter/dekeystoning/dekeystoning.cpp Examining data/yasw-0.6/src/filter/dekeystoning/dekeystoning.h Examining data/yasw-0.6/src/filter/dekeystoning/dekeystoningcorner.cpp Examining data/yasw-0.6/src/filter/dekeystoning/dekeystoningcorner.h Examining data/yasw-0.6/src/filter/dekeystoning/dekeystoninggraphicsview.cpp Examining data/yasw-0.6/src/filter/dekeystoning/dekeystoninggraphicsview.h Examining data/yasw-0.6/src/filter/dekeystoning/dekeystoningline.cpp Examining data/yasw-0.6/src/filter/dekeystoning/dekeystoningline.h Examining data/yasw-0.6/src/filter/dekeystoning/dekeystoningwidget.cpp Examining data/yasw-0.6/src/filter/dekeystoning/dekeystoningwidget.h Examining data/yasw-0.6/src/filter/layoutfilter.h Examining data/yasw-0.6/src/filter/layoutwidget.cpp Examining data/yasw-0.6/src/filter/layoutwidget.h Examining data/yasw-0.6/src/filter/rotation/rotation.cpp Examining data/yasw-0.6/src/filter/rotation/rotation.h Examining data/yasw-0.6/src/filter/rotation/rotationwidget.cpp Examining data/yasw-0.6/src/filter/rotation/rotationwidget.h Examining data/yasw-0.6/src/filter/scalefilter.cpp Examining data/yasw-0.6/src/filter/scalefilter.h Examining data/yasw-0.6/src/filter/scalewidget.cpp Examining data/yasw-0.6/src/filter/scalewidget.h Examining data/yasw-0.6/src/filter/colorcorrectiongraphicsview.cpp Examining data/yasw-0.6/src/filter/layoutfilter.cpp Examining data/yasw-0.6/src/filtercontainer.cpp Examining data/yasw-0.6/src/filtercontainer.h Examining data/yasw-0.6/src/imagetablewidget.cpp Examining data/yasw-0.6/src/imagetablewidget.h Examining data/yasw-0.6/src/main.cpp Examining data/yasw-0.6/src/mainwindow.cpp Examining data/yasw-0.6/src/mainwindow.h Examining data/yasw-0.6/src/preferencesdialog.cpp Examining data/yasw-0.6/src/preferencesdialog.h FINAL RESULTS: data/yasw-0.6/src/mainwindow.cpp:121: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(QFile::WriteOnly | QFile::Text)) { data/yasw-0.6/src/mainwindow.cpp:203: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(QFile::ReadOnly | QFile::Text)) { ANALYSIS SUMMARY: Hits = 2 Lines analyzed = 6511 in approximately 0.17 seconds (37656 lines/second) Physical Source Lines of Code (SLOC) = 3953 Hits@level = [0] 0 [1] 0 [2] 2 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 2 [1+] 2 [2+] 2 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 0.505945 [1+] 0.505945 [2+] 0.505945 [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.