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/aoflagger-3.0.0/algorithms/antennaselector.cpp
Examining data/aoflagger-3.0.0/algorithms/antennaselector.h
Examining data/aoflagger-3.0.0/algorithms/applybandpass.h
Examining data/aoflagger-3.0.0/algorithms/bandpassfile.h
Examining data/aoflagger-3.0.0/algorithms/baselineselector.cpp
Examining data/aoflagger-3.0.0/algorithms/baselineselector.h
Examining data/aoflagger-3.0.0/algorithms/baselinetimeplaneimager.cpp
Examining data/aoflagger-3.0.0/algorithms/baselinetimeplaneimager.h
Examining data/aoflagger-3.0.0/algorithms/combinatorialthresholder.cpp
Examining data/aoflagger-3.0.0/algorithms/combinatorialthresholder.h
Examining data/aoflagger-3.0.0/algorithms/convolutions.h
Examining data/aoflagger-3.0.0/algorithms/fringestoppingfitter.cpp
Examining data/aoflagger-3.0.0/algorithms/fringestoppingfitter.h
Examining data/aoflagger-3.0.0/algorithms/fringetestcreater.cpp
Examining data/aoflagger-3.0.0/algorithms/fringetestcreater.h
Examining data/aoflagger-3.0.0/algorithms/highpassfilter.h
Examining data/aoflagger-3.0.0/algorithms/localfitmethod.cpp
Examining data/aoflagger-3.0.0/algorithms/localfitmethod.h
Examining data/aoflagger-3.0.0/algorithms/medianwindow.h
Examining data/aoflagger-3.0.0/algorithms/morphologicalflagger.cpp
Examining data/aoflagger-3.0.0/algorithms/morphologicalflagger.h
Examining data/aoflagger-3.0.0/algorithms/morphology.cpp
Examining data/aoflagger-3.0.0/algorithms/morphology.h
Examining data/aoflagger-3.0.0/algorithms/noisestatistics.h
Examining data/aoflagger-3.0.0/algorithms/normalizepassband.h
Examining data/aoflagger-3.0.0/algorithms/polarizationstatistics.h
Examining data/aoflagger-3.0.0/algorithms/polfitmethod.cpp
Examining data/aoflagger-3.0.0/algorithms/polfitmethod.h
Examining data/aoflagger-3.0.0/algorithms/restorechannelrange.h
Examining data/aoflagger-3.0.0/algorithms/sinusfitter.cpp
Examining data/aoflagger-3.0.0/algorithms/sinusfitter.h
Examining data/aoflagger-3.0.0/algorithms/siroperator.h
Examining data/aoflagger-3.0.0/algorithms/sumthreshold.cpp
Examining data/aoflagger-3.0.0/algorithms/sumthreshold.h
Examining data/aoflagger-3.0.0/algorithms/sumthresholdmissing.cpp
Examining data/aoflagger-3.0.0/algorithms/sumthresholdmissing.h
Examining data/aoflagger-3.0.0/algorithms/surfacefitmethod.h
Examining data/aoflagger-3.0.0/algorithms/svdmitigater.cpp
Examining data/aoflagger-3.0.0/algorithms/svdmitigater.h
Examining data/aoflagger-3.0.0/algorithms/testsetgenerator.cpp
Examining data/aoflagger-3.0.0/algorithms/testsetgenerator.h
Examining data/aoflagger-3.0.0/algorithms/thresholdconfig.cpp
Examining data/aoflagger-3.0.0/algorithms/thresholdconfig.h
Examining data/aoflagger-3.0.0/algorithms/thresholdtools.cpp
Examining data/aoflagger-3.0.0/algorithms/thresholdtools.h
Examining data/aoflagger-3.0.0/algorithms/timefrequencystatistics.cpp
Examining data/aoflagger-3.0.0/algorithms/timefrequencystatistics.h
Examining data/aoflagger-3.0.0/algorithms/types.h
Examining data/aoflagger-3.0.0/algorithms/highpassfilter.cpp
Examining data/aoflagger-3.0.0/aocommon/include/aocommon/banddata.h
Examining data/aoflagger-3.0.0/aocommon/include/aocommon/barrier.h
Examining data/aoflagger-3.0.0/aocommon/include/aocommon/cloned_ptr.h
Examining data/aoflagger-3.0.0/aocommon/include/aocommon/imagecoordinates.h
Examining data/aoflagger-3.0.0/aocommon/include/aocommon/lane.h
Examining data/aoflagger-3.0.0/aocommon/include/aocommon/matrix2x2.h
Examining data/aoflagger-3.0.0/aocommon/include/aocommon/matrix4x4.h
Examining data/aoflagger-3.0.0/aocommon/include/aocommon/parallelfor.h
Examining data/aoflagger-3.0.0/aocommon/include/aocommon/polarization.h
Examining data/aoflagger-3.0.0/aocommon/include/aocommon/staticfor.h
Examining data/aoflagger-3.0.0/aocommon/include/aocommon/threadpool.h
Examining data/aoflagger-3.0.0/aocommon/include/aocommon/uvector.h
Examining data/aoflagger-3.0.0/aocommon/tests/runtests.cpp
Examining data/aoflagger-3.0.0/aocommon/tests/tparallelfor.cpp
Examining data/aoflagger-3.0.0/aocommon/tests/tthreadpool.cpp
Examining data/aoflagger-3.0.0/aocommon/tests/tuvector.cpp
Examining data/aoflagger-3.0.0/aoluarunner/baselineiterator.cpp
Examining data/aoflagger-3.0.0/aoluarunner/baselineiterator.h
Examining data/aoflagger-3.0.0/aoluarunner/options.cpp
Examining data/aoflagger-3.0.0/aoluarunner/options.h
Examining data/aoflagger-3.0.0/aoluarunner/runner.cpp
Examining data/aoflagger-3.0.0/aoluarunner/runner.h
Examining data/aoflagger-3.0.0/aoluarunner/writethread.cpp
Examining data/aoflagger-3.0.0/aoluarunner/writethread.h
Examining data/aoflagger-3.0.0/aoqplot/aoqplotwindow.cpp
Examining data/aoflagger-3.0.0/aoqplot/aoqplotwindow.h
Examining data/aoflagger-3.0.0/aoqplot/baselineplotpage.cpp
Examining data/aoflagger-3.0.0/aoqplot/baselineplotpage.h
Examining data/aoflagger-3.0.0/aoqplot/blengthplotpage.h
Examining data/aoflagger-3.0.0/aoqplot/controllers/antennapagecontroller.h
Examining data/aoflagger-3.0.0/aoqplot/controllers/aoqpagecontroller.h
Examining data/aoflagger-3.0.0/aoqplot/controllers/aoqplotcontroller.cpp
Examining data/aoflagger-3.0.0/aoqplot/controllers/aoqplotcontroller.h
Examining data/aoflagger-3.0.0/aoqplot/controllers/aoqplotpagecontroller.cpp
Examining data/aoflagger-3.0.0/aoqplot/controllers/aoqplotpagecontroller.h
Examining data/aoflagger-3.0.0/aoqplot/controllers/baselinepagecontroller.cpp
Examining data/aoflagger-3.0.0/aoqplot/controllers/baselinepagecontroller.h
Examining data/aoflagger-3.0.0/aoqplot/controllers/blengthpagecontroller.h
Examining data/aoflagger-3.0.0/aoqplot/controllers/frequencypagecontroller.h
Examining data/aoflagger-3.0.0/aoqplot/controllers/heatmappagecontroller.cpp
Examining data/aoflagger-3.0.0/aoqplot/controllers/heatmappagecontroller.h
Examining data/aoflagger-3.0.0/aoqplot/controllers/histogrampagecontroller.cpp
Examining data/aoflagger-3.0.0/aoqplot/controllers/histogrampagecontroller.h
Examining data/aoflagger-3.0.0/aoqplot/controllers/polbuttonsetcontroller.h
Examining data/aoflagger-3.0.0/aoqplot/controllers/tfpagecontroller.cpp
Examining data/aoflagger-3.0.0/aoqplot/controllers/tfpagecontroller.h
Examining data/aoflagger-3.0.0/aoqplot/controllers/timepagecontroller.h
Examining data/aoflagger-3.0.0/aoqplot/datawindow.cpp
Examining data/aoflagger-3.0.0/aoqplot/datawindow.h
Examining data/aoflagger-3.0.0/aoqplot/frequencyplotpage.h
Examining data/aoflagger-3.0.0/aoqplot/grayscaleplotpage.cpp
Examining data/aoflagger-3.0.0/aoqplot/grayscaleplotpage.h
Examining data/aoflagger-3.0.0/aoqplot/histogrampage.cpp
Examining data/aoflagger-3.0.0/aoqplot/histogrampage.h
Examining data/aoflagger-3.0.0/aoqplot/openoptionswindow.h
Examining data/aoflagger-3.0.0/aoqplot/plotsheet.h
Examining data/aoflagger-3.0.0/aoqplot/summarypage.h
Examining data/aoflagger-3.0.0/aoqplot/timefrequencyplotpage.cpp
Examining data/aoflagger-3.0.0/aoqplot/timefrequencyplotpage.h
Examining data/aoflagger-3.0.0/aoqplot/twodimensionalplotpage.cpp
Examining data/aoflagger-3.0.0/aoqplot/twodimensionalplotpage.h
Examining data/aoflagger-3.0.0/applications/aoflagger.cpp
Examining data/aoflagger-3.0.0/applications/aoqplot.cpp
Examining data/aoflagger-3.0.0/applications/aoquality.cpp
Examining data/aoflagger-3.0.0/applications/badstations.cpp
Examining data/aoflagger-3.0.0/applications/rfigui.cpp
Examining data/aoflagger-3.0.0/imagesets/bhfitsimageset.cpp
Examining data/aoflagger-3.0.0/imagesets/bhfitsimageset.h
Examining data/aoflagger-3.0.0/imagesets/coaddedimageset.h
Examining data/aoflagger-3.0.0/imagesets/filterbankset.cpp
Examining data/aoflagger-3.0.0/imagesets/filterbankset.h
Examining data/aoflagger-3.0.0/imagesets/fitsimageset.cpp
Examining data/aoflagger-3.0.0/imagesets/fitsimageset.h
Examining data/aoflagger-3.0.0/imagesets/imageset.cpp
Examining data/aoflagger-3.0.0/imagesets/imageset.h
Examining data/aoflagger-3.0.0/imagesets/imagesetindex.h
Examining data/aoflagger-3.0.0/imagesets/indexableset.h
Examining data/aoflagger-3.0.0/imagesets/joinedspwset.h
Examining data/aoflagger-3.0.0/imagesets/msimageset.cpp
Examining data/aoflagger-3.0.0/imagesets/msimageset.h
Examining data/aoflagger-3.0.0/imagesets/msoptions.h
Examining data/aoflagger-3.0.0/imagesets/msstatset.h
Examining data/aoflagger-3.0.0/imagesets/parmimageset.cpp
Examining data/aoflagger-3.0.0/imagesets/parmimageset.h
Examining data/aoflagger-3.0.0/imagesets/pngreader.cpp
Examining data/aoflagger-3.0.0/imagesets/pngreader.h
Examining data/aoflagger-3.0.0/imagesets/qualitystatimageset.h
Examining data/aoflagger-3.0.0/imagesets/rfibaselineset.cpp
Examining data/aoflagger-3.0.0/imagesets/rfibaselineset.h
Examining data/aoflagger-3.0.0/imagesets/singleimageset.h
Examining data/aoflagger-3.0.0/imaging/defaultmodels.h
Examining data/aoflagger-3.0.0/imaging/model.cpp
Examining data/aoflagger-3.0.0/imaging/model.h
Examining data/aoflagger-3.0.0/imaging/observatorium.h
Examining data/aoflagger-3.0.0/imaging/uvimager.cpp
Examining data/aoflagger-3.0.0/imaging/uvimager.h
Examining data/aoflagger-3.0.0/interface/aoflagger.cpp
Examining data/aoflagger-3.0.0/interface/aoflagger.h
Examining data/aoflagger-3.0.0/interface/flagmask.cpp
Examining data/aoflagger-3.0.0/interface/imageset.cpp
Examining data/aoflagger-3.0.0/interface/qualitystatistics.cpp
Examining data/aoflagger-3.0.0/interface/strategy.cpp
Examining data/aoflagger-3.0.0/interface/structures.h
Examining data/aoflagger-3.0.0/lua/data.h
Examining data/aoflagger-3.0.0/lua/datawrapper.cpp
Examining data/aoflagger-3.0.0/lua/datawrapper.h
Examining data/aoflagger-3.0.0/lua/default-strategy.cpp
Examining data/aoflagger-3.0.0/lua/default-strategy.h
Examining data/aoflagger-3.0.0/lua/functions.cpp
Examining data/aoflagger-3.0.0/lua/functions.h
Examining data/aoflagger-3.0.0/lua/functionswrapper.cpp
Examining data/aoflagger-3.0.0/lua/functionswrapper.h
Examining data/aoflagger-3.0.0/lua/luastrategy.cpp
Examining data/aoflagger-3.0.0/lua/luastrategy.h
Examining data/aoflagger-3.0.0/lua/luathreadgroup.h
Examining data/aoflagger-3.0.0/lua/optionsfunction.cpp
Examining data/aoflagger-3.0.0/lua/optionsfunction.h
Examining data/aoflagger-3.0.0/lua/scriptdata.cpp
Examining data/aoflagger-3.0.0/lua/scriptdata.h
Examining data/aoflagger-3.0.0/lua/telescopefile.cpp
Examining data/aoflagger-3.0.0/lua/telescopefile.h
Examining data/aoflagger-3.0.0/lua/tools.h
Examining data/aoflagger-3.0.0/msio/banddata.h
Examining data/aoflagger-3.0.0/msio/baselinematrixloader.cpp
Examining data/aoflagger-3.0.0/msio/baselinematrixloader.h
Examining data/aoflagger-3.0.0/msio/baselinereader.cpp
Examining data/aoflagger-3.0.0/msio/baselinereader.h
Examining data/aoflagger-3.0.0/msio/directbaselinereader.cpp
Examining data/aoflagger-3.0.0/msio/directbaselinereader.h
Examining data/aoflagger-3.0.0/msio/fitsfile.cpp
Examining data/aoflagger-3.0.0/msio/fitsfile.h
Examining data/aoflagger-3.0.0/msio/indirectbaselinereader.cpp
Examining data/aoflagger-3.0.0/msio/indirectbaselinereader.h
Examining data/aoflagger-3.0.0/msio/memorybaselinereader.cpp
Examining data/aoflagger-3.0.0/msio/memorybaselinereader.h
Examining data/aoflagger-3.0.0/msio/msselection.h
Examining data/aoflagger-3.0.0/msio/msstatreader.cpp
Examining data/aoflagger-3.0.0/msio/msstatreader.h
Examining data/aoflagger-3.0.0/msio/multibanddata.cpp
Examining data/aoflagger-3.0.0/msio/multibanddata.h
Examining data/aoflagger-3.0.0/msio/parmtable.h
Examining data/aoflagger-3.0.0/msio/pngfile.cpp
Examining data/aoflagger-3.0.0/msio/pngfile.h
Examining data/aoflagger-3.0.0/msio/rawdescfile.h
Examining data/aoflagger-3.0.0/msio/reorderedfilebuffer.h
Examining data/aoflagger-3.0.0/msio/rspreader.cpp
Examining data/aoflagger-3.0.0/msio/rspreader.h
Examining data/aoflagger-3.0.0/msio/singlebaselinefile.cpp
Examining data/aoflagger-3.0.0/msio/singlebaselinefile.h
Examining data/aoflagger-3.0.0/msio/spatialtimeloader.cpp
Examining data/aoflagger-3.0.0/msio/spatialtimeloader.h
Examining data/aoflagger-3.0.0/plot/colorscale.cpp
Examining data/aoflagger-3.0.0/plot/colorscale.h
Examining data/aoflagger-3.0.0/plot/dimension.h
Examining data/aoflagger-3.0.0/plot/heatmapplot.cpp
Examining data/aoflagger-3.0.0/plot/heatmapplot.h
Examining data/aoflagger-3.0.0/plot/horizontalplotscale.cpp
Examining data/aoflagger-3.0.0/plot/horizontalplotscale.h
Examining data/aoflagger-3.0.0/plot/legend.cpp
Examining data/aoflagger-3.0.0/plot/legend.h
Examining data/aoflagger-3.0.0/plot/plot2d.cpp
Examining data/aoflagger-3.0.0/plot/plot2d.h
Examining data/aoflagger-3.0.0/plot/plot2dpointset.h
Examining data/aoflagger-3.0.0/plot/plotable.h
Examining data/aoflagger-3.0.0/plot/plotmanager.h
Examining data/aoflagger-3.0.0/plot/plotpropertieswindow.cpp
Examining data/aoflagger-3.0.0/plot/plotpropertieswindow.h
Examining data/aoflagger-3.0.0/plot/plotwidget.h
Examining data/aoflagger-3.0.0/plot/system.h
Examining data/aoflagger-3.0.0/plot/tickset.h
Examining data/aoflagger-3.0.0/plot/title.cpp
Examining data/aoflagger-3.0.0/plot/title.h
Examining data/aoflagger-3.0.0/plot/verticalplotscale.cpp
Examining data/aoflagger-3.0.0/plot/verticalplotscale.h
Examining data/aoflagger-3.0.0/python/pyfunctions.cpp
Examining data/aoflagger-3.0.0/python/pyfunctions.h
Examining data/aoflagger-3.0.0/python/pyinterface.cpp
Examining data/aoflagger-3.0.0/python/pythonstrategy.cpp
Examining data/aoflagger-3.0.0/python/pythonstrategy.h
Examining data/aoflagger-3.0.0/quality/baselinestatisticsmap.h
Examining data/aoflagger-3.0.0/quality/collector.cpp
Examining data/aoflagger-3.0.0/quality/collector.h
Examining data/aoflagger-3.0.0/quality/defaultstatistics.h
Examining data/aoflagger-3.0.0/quality/histogramcollection.cpp
Examining data/aoflagger-3.0.0/quality/histogramcollection.h
Examining data/aoflagger-3.0.0/quality/histogramtablesformatter.cpp
Examining data/aoflagger-3.0.0/quality/histogramtablesformatter.h
Examining data/aoflagger-3.0.0/quality/loghistogram.h
Examining data/aoflagger-3.0.0/quality/qualitytablesformatter.cpp
Examining data/aoflagger-3.0.0/quality/qualitytablesformatter.h
Examining data/aoflagger-3.0.0/quality/rayleighfitter.cpp
Examining data/aoflagger-3.0.0/quality/rayleighfitter.h
Examining data/aoflagger-3.0.0/quality/statisticalvalue.h
Examining data/aoflagger-3.0.0/quality/statisticscollection.cpp
Examining data/aoflagger-3.0.0/quality/statisticscollection.h
Examining data/aoflagger-3.0.0/quality/statisticsderivator.h
Examining data/aoflagger-3.0.0/ref/reffile.h
Examining data/aoflagger-3.0.0/ref/reffileentry.h
Examining data/aoflagger-3.0.0/ref/reffileexception.h
Examining data/aoflagger-3.0.0/rfigui/complexplaneplotwindow.cpp
Examining data/aoflagger-3.0.0/rfigui/complexplaneplotwindow.h
Examining data/aoflagger-3.0.0/rfigui/controllers/imagecomparisoncontroller.cpp
Examining data/aoflagger-3.0.0/rfigui/controllers/imagecomparisoncontroller.h
Examining data/aoflagger-3.0.0/rfigui/controllers/rfiguicontroller.cpp
Examining data/aoflagger-3.0.0/rfigui/controllers/rfiguicontroller.h
Examining data/aoflagger-3.0.0/rfigui/gotowindow.cpp
Examining data/aoflagger-3.0.0/rfigui/gotowindow.h
Examining data/aoflagger-3.0.0/rfigui/heatmapwidget.cpp
Examining data/aoflagger-3.0.0/rfigui/heatmapwidget.h
Examining data/aoflagger-3.0.0/rfigui/histogramwindow.h
Examining data/aoflagger-3.0.0/rfigui/imagepropertieswindow.cpp
Examining data/aoflagger-3.0.0/rfigui/imagepropertieswindow.h
Examining data/aoflagger-3.0.0/rfigui/interfaces.h
Examining data/aoflagger-3.0.0/rfigui/msoptionwindow.cpp
Examining data/aoflagger-3.0.0/rfigui/msoptionwindow.h
Examining data/aoflagger-3.0.0/rfigui/numinputdialog.h
Examining data/aoflagger-3.0.0/rfigui/plotframe.cpp
Examining data/aoflagger-3.0.0/rfigui/plotframe.h
Examining data/aoflagger-3.0.0/rfigui/plotwindow.cpp
Examining data/aoflagger-3.0.0/rfigui/plotwindow.h
Examining data/aoflagger-3.0.0/rfigui/progresswindow.cpp
Examining data/aoflagger-3.0.0/rfigui/progresswindow.h
Examining data/aoflagger-3.0.0/rfigui/rfiguimenu.cpp
Examining data/aoflagger-3.0.0/rfigui/rfiguimenu.h
Examining data/aoflagger-3.0.0/rfigui/rfiguiwindow.cpp
Examining data/aoflagger-3.0.0/rfigui/rfiguiwindow.h
Examining data/aoflagger-3.0.0/rfigui/settings.cpp
Examining data/aoflagger-3.0.0/rfigui/settings.h
Examining data/aoflagger-3.0.0/rfigui/strategyeditor.cpp
Examining data/aoflagger-3.0.0/rfigui/strategyeditor.h
Examining data/aoflagger-3.0.0/structures/antennainfo.h
Examining data/aoflagger-3.0.0/structures/colormap.cpp
Examining data/aoflagger-3.0.0/structures/colormap.h
Examining data/aoflagger-3.0.0/structures/date.h
Examining data/aoflagger-3.0.0/structures/image2d.cpp
Examining data/aoflagger-3.0.0/structures/image2d.h
Examining data/aoflagger-3.0.0/structures/mask2d.cpp
Examining data/aoflagger-3.0.0/structures/mask2d.h
Examining data/aoflagger-3.0.0/structures/msiterator.cpp
Examining data/aoflagger-3.0.0/structures/msiterator.h
Examining data/aoflagger-3.0.0/structures/msmetadata.cpp
Examining data/aoflagger-3.0.0/structures/msmetadata.h
Examining data/aoflagger-3.0.0/structures/msrowdata.h
Examining data/aoflagger-3.0.0/structures/msrowdataext.h
Examining data/aoflagger-3.0.0/structures/polarization.h
Examining data/aoflagger-3.0.0/structures/samplerow.cpp
Examining data/aoflagger-3.0.0/structures/samplerow.h
Examining data/aoflagger-3.0.0/structures/segmentedimage.h
Examining data/aoflagger-3.0.0/structures/spatialmatrixmetadata.h
Examining data/aoflagger-3.0.0/structures/stokesimager.cpp
Examining data/aoflagger-3.0.0/structures/stokesimager.h
Examining data/aoflagger-3.0.0/structures/system.h
Examining data/aoflagger-3.0.0/structures/timefrequencydata.cpp
Examining data/aoflagger-3.0.0/structures/timefrequencydata.h
Examining data/aoflagger-3.0.0/structures/timefrequencymetadata.h
Examining data/aoflagger-3.0.0/structures/types.h
Examining data/aoflagger-3.0.0/structures/xyswappedmask2d.h
Examining data/aoflagger-3.0.0/test/algorithms/convolutionstest.cpp
Examining data/aoflagger-3.0.0/test/algorithms/dilationtest.cpp
Examining data/aoflagger-3.0.0/test/algorithms/highpassfiltertest.cpp
Examining data/aoflagger-3.0.0/test/algorithms/noisestatisticstest.cpp
Examining data/aoflagger-3.0.0/test/algorithms/siroperatortest.cpp
Examining data/aoflagger-3.0.0/test/algorithms/sumthresholdmissingtest.cpp
Examining data/aoflagger-3.0.0/test/algorithms/sumthresholdtest.cpp
Examining data/aoflagger-3.0.0/test/algorithms/thresholdtoolstest.cpp
Examining data/aoflagger-3.0.0/test/experiments/defaultstrategyspeedtest.cpp
Examining data/aoflagger-3.0.0/test/experiments/highpassfilterexperiment.cpp
Examining data/aoflagger-3.0.0/test/interface/interfacetest.cpp
Examining data/aoflagger-3.0.0/test/lua/defaultstrategytest.cpp
Examining data/aoflagger-3.0.0/test/lua/optionsfunctiontest.cpp
Examining data/aoflagger-3.0.0/test/lua/telescopefiletest.cpp
Examining data/aoflagger-3.0.0/test/quality/qualitytablesformattertest.cpp
Examining data/aoflagger-3.0.0/test/quality/statisticscollectiontest.cpp
Examining data/aoflagger-3.0.0/test/quality/statisticsderivatortest.cpp
Examining data/aoflagger-3.0.0/test/runtests.cpp
Examining data/aoflagger-3.0.0/test/structures/image2dtest.cpp
Examining data/aoflagger-3.0.0/test/structures/timefrequencydatatest.cpp
Examining data/aoflagger-3.0.0/test/testingtools/imageasserter.h
Examining data/aoflagger-3.0.0/test/testingtools/maskasserter.h
Examining data/aoflagger-3.0.0/test/util/numberparsertest.cpp
Examining data/aoflagger-3.0.0/util/baseexception.h
Examining data/aoflagger-3.0.0/util/blaswrap.h
Examining data/aoflagger-3.0.0/util/f2c.h
Examining data/aoflagger-3.0.0/util/ffttools.cpp
Examining data/aoflagger-3.0.0/util/ffttools.h
Examining data/aoflagger-3.0.0/util/gtkmm-compat.h
Examining data/aoflagger-3.0.0/util/integerdomain.cpp
Examining data/aoflagger-3.0.0/util/integerdomain.h
Examining data/aoflagger-3.0.0/util/logger.cpp
Examining data/aoflagger-3.0.0/util/logger.h
Examining data/aoflagger-3.0.0/util/multiplot.cpp
Examining data/aoflagger-3.0.0/util/multiplot.h
Examining data/aoflagger-3.0.0/util/numberlist.h
Examining data/aoflagger-3.0.0/util/numberparser.h
Examining data/aoflagger-3.0.0/util/plot.cpp
Examining data/aoflagger-3.0.0/util/plot.h
Examining data/aoflagger-3.0.0/util/process.h
Examining data/aoflagger-3.0.0/util/progresslistener.h
Examining data/aoflagger-3.0.0/util/rfiplots.cpp
Examining data/aoflagger-3.0.0/util/rfiplots.h
Examining data/aoflagger-3.0.0/util/rng.cpp
Examining data/aoflagger-3.0.0/util/rng.h
Examining data/aoflagger-3.0.0/util/serializable.h
Examining data/aoflagger-3.0.0/util/stopwatch.cpp
Examining data/aoflagger-3.0.0/util/stopwatch.h
Examining data/aoflagger-3.0.0/util/types.h
Examining data/aoflagger-3.0.0/util/xmlwriter.h

FINAL RESULTS:

data/aoflagger-3.0.0/rfigui/controllers/rfiguicontroller.cpp:315:10:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		boost::system::error_code ec;
data/aoflagger-3.0.0/rfigui/controllers/rfiguicontroller.cpp:336:11:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			boost::system::error_code ec;
data/aoflagger-3.0.0/rfigui/controllers/rfiguicontroller.cpp:590:9:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	boost::system::error_code ec;
data/aoflagger-3.0.0/util/plot.cpp:277:5:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if(system(cmd.c_str()) != 0)
data/aoflagger-3.0.0/util/process.h:18:5:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
				execl("/bin/sh", "sh", "-c", cmdLine.c_str(), NULL);
data/aoflagger-3.0.0/imaging/model.h:102:4:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			srand(1);
data/aoflagger-3.0.0/aoqplot/openoptionswindow.h:70:21:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			size_t timeRes = atol(_timeDownsampleEntry.get_text().c_str());
data/aoflagger-3.0.0/aoqplot/openoptionswindow.h:71:21:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			size_t freqRes = atol(_freqDownsampleEntry.get_text().c_str());
data/aoflagger-3.0.0/applications/aoflagger.cpp:117:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			options.threadCount = atoi(argv[parameterIndex]);
data/aoflagger-3.0.0/applications/aoflagger.cpp:183:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			options.startTimestep = atoi(argv[parameterIndex+1]);
data/aoflagger-3.0.0/applications/aoflagger.cpp:184:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			options.endTimestep = atoi(argv[parameterIndex+2]);
data/aoflagger-3.0.0/applications/aoflagger.cpp:190:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			options.chunkSize = atoi(argv[parameterIndex]);
data/aoflagger-3.0.0/applications/aoquality.cpp:662:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
						intervalStart = atoi(argv[argi+1]);
data/aoflagger-3.0.0/applications/aoquality.cpp:663:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
						intervalEnd = atoi(argv[argi+2]);
data/aoflagger-3.0.0/applications/aoquality.cpp:674:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					flaggedTimesteps = atoi(argv[argi]);
data/aoflagger-3.0.0/applications/aoquality.cpp:677:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
						flaggedAntennae.insert(atoi(argv[argi]));
data/aoflagger-3.0.0/applications/rfigui.cpp:92:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				sb.a1Index = atoi(argv[argi+2]);
data/aoflagger-3.0.0/applications/rfigui.cpp:93:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				sb.a2Index = atoi(argv[argi+3]);
data/aoflagger-3.0.0/applications/rfigui.cpp:94:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				sb.bandIndex = atoi(argv[argi+4]);
data/aoflagger-3.0.0/applications/rfigui.cpp:95:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				sb.sequenceIndex = atoi(argv[argi+5]);
data/aoflagger-3.0.0/imagesets/bhfitsimageset.cpp:203:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		value.first = atoi(rangeStr.substr(0, partA).c_str());
data/aoflagger-3.0.0/imagesets/bhfitsimageset.cpp:207:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		value.second = atoi(rangeStr.substr(partB+1).c_str());
data/aoflagger-3.0.0/imagesets/fitsimageset.cpp:335:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char name[9];
data/aoflagger-3.0.0/imagesets/pngreader.cpp:7:13:  [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).
	FILE *fp = fopen(_path.c_str(), "rb");
data/aoflagger-3.0.0/lua/optionsfunction.cpp:184:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				major = std::atoi(minVersion.substr(0, dot).c_str()),
data/aoflagger-3.0.0/lua/optionsfunction.cpp:185:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				minor = std::atoi(minVersion.substr(dot+1).c_str());
data/aoflagger-3.0.0/msio/fitsfile.cpp:26:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char err_text[31];
data/aoflagger-3.0.0/msio/fitsfile.cpp:28:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char err_msg[81];
data/aoflagger-3.0.0/msio/fitsfile.cpp:256:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char keyName[FLEN_KEYWORD], keyValue[FLEN_VALUE];
data/aoflagger-3.0.0/msio/fitsfile.cpp:265:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char keyName[FLEN_KEYWORD], keyValue[FLEN_VALUE];
data/aoflagger-3.0.0/msio/fitsfile.cpp:280:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char keyValue[FLEN_VALUE];
data/aoflagger-3.0.0/msio/fitsfile.cpp:298:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char keyValue[FLEN_VALUE];
data/aoflagger-3.0.0/msio/fitsfile.cpp:313:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char keyName[FLEN_KEYWORD], keyValue[FLEN_VALUE], keyComment[FLEN_COMMENT];
data/aoflagger-3.0.0/msio/fitsfile.cpp:341:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	return atoi(GetKeyword(keywordNumber).c_str());
data/aoflagger-3.0.0/msio/fitsfile.cpp:346:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	return atoi(GetKeywordValue(keywordName).c_str());
data/aoflagger-3.0.0/msio/fitsfile.cpp:603:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char valueStr[256], commentStr[256];
data/aoflagger-3.0.0/msio/indirectbaselinereader.cpp:186:11:  [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).
	int fd = open(filename, O_WRONLY | O_TRUNC | O_CREAT, S_IWUSR | S_IRUSR);
data/aoflagger-3.0.0/msio/parmtable.h:253:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				entry.x = atoi(line.substr(d1+1, d2-d1-1).c_str());
data/aoflagger-3.0.0/msio/parmtable.h:254:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				entry.y = atoi(line.substr(d2+1, d3-d2-1).c_str());
data/aoflagger-3.0.0/msio/pngfile.cpp:18:8:  [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).
	_fp = fopen(_filename.c_str(), "wb");
data/aoflagger-3.0.0/msio/rawdescfile.h:72:28:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			_beamCount = (unsigned) atol(l.c_str());
data/aoflagger-3.0.0/msio/rawdescfile.h:74:31:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			_subbandCount = (unsigned) atol(l.c_str());
data/aoflagger-3.0.0/msio/rawdescfile.h:76:42:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			_channelsPerSubbandCount = (unsigned) atol(l.c_str());
data/aoflagger-3.0.0/msio/rawdescfile.h:78:41:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			_timestepsPerBlockCount = (unsigned) atol(l.c_str());
data/aoflagger-3.0.0/msio/rawdescfile.h:81:34:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			_blockHeaderSize = (unsigned) atol(l.c_str());
data/aoflagger-3.0.0/msio/rawdescfile.h:83:34:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			_blockFooterSize = (unsigned) atol(l.c_str());
data/aoflagger-3.0.0/msio/rawdescfile.h:86:31:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			_selectedBeam = (unsigned) atol(l.c_str());
data/aoflagger-3.0.0/msio/rspreader.h:33:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		static const unsigned char BitReverseTable256[256];
data/aoflagger-3.0.0/msio/rspreader.h:102:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				unsigned char buffer[16];
data/aoflagger-3.0.0/msio/rspreader.h:135:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				unsigned char buffer[8];
data/aoflagger-3.0.0/msio/singlebaselinefile.cpp:15:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char magic[9];
data/aoflagger-3.0.0/ref/reffileentry.h:79:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				_size = atoi(sizeString.c_str());
data/aoflagger-3.0.0/rfigui/controllers/rfiguicontroller.cpp:247:24:  [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).
void RFIGuiController::open(std::unique_ptr<rfiStrategy::ImageSet> imageSet)
data/aoflagger-3.0.0/rfigui/controllers/rfiguicontroller.cpp:271:2:  [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).
	open(std::move(imageSet));
data/aoflagger-3.0.0/rfigui/controllers/rfiguicontroller.cpp:297:2:  [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).
	open(std::move(imageSet));
data/aoflagger-3.0.0/rfigui/controllers/rfiguicontroller.h:200:8:  [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).
		void open(std::unique_ptr<rfiStrategy::ImageSet> imageSet);
data/aoflagger-3.0.0/rfigui/msoptionwindow.cpp:153:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		options.intervalStart = atoi(_intervalStartEntry.get_text().c_str());
data/aoflagger-3.0.0/rfigui/msoptionwindow.cpp:156:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			options.intervalEnd = atoi(_intervalEndEntry.get_text().c_str());
data/aoflagger-3.0.0/rfigui/rfiguiwindow.cpp:509:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		size_t lineNr = std::atoi(error.substr(colon+1).c_str());
data/aoflagger-3.0.0/structures/mask2d.cpp:17:2:  [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(_valuesConsecutive, source._valuesConsecutive, _stride * _height * sizeof(bool));
data/aoflagger-3.0.0/util/numberlist.h:21:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			IntType num = atoi(idStr.c_str());
data/aoflagger-3.0.0/util/numberlist.h:25:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		IntType num = atoi(temp.c_str());
data/aoflagger-3.0.0/util/numberlist.h:38:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			IntType num = atoi(idStr.c_str());
data/aoflagger-3.0.0/util/numberlist.h:42:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		IntType num = atoi(temp.c_str());
data/aoflagger-3.0.0/util/plot.cpp:41:12:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
		int fd = mkstemp(tmpPlotFile);
data/aoflagger-3.0.0/util/plot.cpp:170:15:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
	_curLineFd = mkstemp(tmpLineFile);
data/aoflagger-3.0.0/util/plot.cpp:186:15:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
	_curLineFd = mkstemp(tmpLineFile);
data/aoflagger-3.0.0/util/plot.cpp:203:15:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
	_curLineFd = mkstemp(tmpLineFile);
data/aoflagger-3.0.0/util/plot.cpp:219:15:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
	_curLineFd = mkstemp(tmpLineFile);
data/aoflagger-3.0.0/util/plot.h:95:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char _tmpPlotFile[16];
data/aoflagger-3.0.0/util/process.h:13:10:  [2] (race) vfork:
  On some old systems, vfork() permits race conditions, and it's very
  difficult to use correctly (CWE-362). Use fork() instead.
		_pid = vfork();
data/aoflagger-3.0.0/aocommon/include/aocommon/lane.h:287:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  bool read(value_type &destination) {
data/aoflagger-3.0.0/aocommon/include/aocommon/lane.h:305:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  size_t read(value_type *destinations, size_t n) {
data/aoflagger-3.0.0/aocommon/include/aocommon/uvector.h:1123:15:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
         std::equal(lhs.begin(), lhs.end(), rhs.begin());
data/aoflagger-3.0.0/imagesets/filterbankset.cpp:112:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		file.read(reinterpret_cast<char*>(&buffer[0]), _channelCount*sizeof(float));
data/aoflagger-3.0.0/imagesets/filterbankset.cpp:174:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		file.read(reinterpret_cast<char*>(&buffer[0]), _channelCount*sizeof(float));
data/aoflagger-3.0.0/imagesets/filterbankset.h:79:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				str.read(reinterpret_cast<char*>(&val), sizeof(int32_t));
data/aoflagger-3.0.0/imagesets/filterbankset.h:86:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				str.read(reinterpret_cast<char*>(&val), sizeof(double));
data/aoflagger-3.0.0/imagesets/filterbankset.h:96:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				str.read(&data[0], length);
data/aoflagger-3.0.0/msio/indirectbaselinereader.cpp:94:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			dataFile.read((char *) &dataBuffer[0], bufferSize * sizeof(float) * 2);
data/aoflagger-3.0.0/msio/indirectbaselinereader.cpp:96:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			flagFile.read((char *) &flagBuffer[0], bufferSize * sizeof(bool));
data/aoflagger-3.0.0/msio/indirectbaselinereader.cpp:487:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			dataFile.read(reinterpret_cast<char*>(&*data.cbegin()), sampleCount * 2 * sizeof(float));
data/aoflagger-3.0.0/msio/indirectbaselinereader.cpp:499:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			flagFile.read(reinterpret_cast<char*>(&*flagArray.cbegin()), sampleCount * sizeof(bool));
data/aoflagger-3.0.0/msio/rspreader.h:103:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				stream.read(reinterpret_cast<char*>(buffer), 16);
data/aoflagger-3.0.0/msio/rspreader.h:136:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				stream.read(reinterpret_cast<char*>(buffer), 8);
data/aoflagger-3.0.0/msio/singlebaselinefile.cpp:16:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	stream.read(magic, 8);
data/aoflagger-3.0.0/msio/singlebaselinefile.cpp:157:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			stream.read(&val, 1);
data/aoflagger-3.0.0/python/pythonstrategy.cpp:24:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		file.read(data.data(), size);
data/aoflagger-3.0.0/quality/collector.cpp:164:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while(workLane->read(work))
data/aoflagger-3.0.0/ref/reffile.h:33:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				while(entry.read(file))
data/aoflagger-3.0.0/ref/reffileentry.h:50:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			bool read(std::istream &stream)
data/aoflagger-3.0.0/util/serializable.h:92:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			stream.read(str, size);
data/aoflagger-3.0.0/util/serializable.h:104:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				stream.read(str, size);
data/aoflagger-3.0.0/util/serializable.h:115:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			stream.read(reinterpret_cast<char *>(&val), sizeof(val));

ANALYSIS SUMMARY:

Hits = 94
Lines analyzed = 63737 in approximately 1.57 seconds (40646 lines/second)
Physical Source Lines of Code (SLOC) = 51869
Hits@level = [0]   0 [1]  23 [2]  65 [3]   1 [4]   5 [5]   0
Hits@level+ = [0+]  94 [1+]  94 [2+]  71 [3+]   6 [4+]   5 [5+]   0
Hits/KSLOC@level+ = [0+] 1.81226 [1+] 1.81226 [2+] 1.36883 [3+] 0.115676 [4+] 0.0963967 [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.