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/libpwizlite-3.0.3/src/boost/enum.hpp Examining data/libpwizlite-3.0.3/src/boost/enum/base.hpp Examining data/libpwizlite-3.0.3/src/boost/enum/bitfield.hpp Examining data/libpwizlite-3.0.3/src/boost/enum/iterator.hpp Examining data/libpwizlite-3.0.3/src/boost/enum/macros.hpp Examining data/libpwizlite-3.0.3/src/boost/foreach_field.hpp Examining data/libpwizlite-3.0.3/src/boost/iostreams/arbitrary_positional_facade.hpp Examining data/libpwizlite-3.0.3/src/boost/iostreams/filter/base64.hpp Examining data/libpwizlite-3.0.3/src/boost/nowide/args.hpp Examining data/libpwizlite-3.0.3/src/boost/nowide/cenv.hpp Examining data/libpwizlite-3.0.3/src/boost/nowide/config.hpp Examining data/libpwizlite-3.0.3/src/boost/nowide/convert.hpp Examining data/libpwizlite-3.0.3/src/boost/nowide/cstdio.hpp Examining data/libpwizlite-3.0.3/src/boost/nowide/cstdlib.hpp Examining data/libpwizlite-3.0.3/src/boost/nowide/filebuf.hpp Examining data/libpwizlite-3.0.3/src/boost/nowide/fstream.hpp Examining data/libpwizlite-3.0.3/src/boost/nowide/iostream.hpp Examining data/libpwizlite-3.0.3/src/boost/nowide/stackstring.hpp Examining data/libpwizlite-3.0.3/src/boost/nowide/system.hpp Examining data/libpwizlite-3.0.3/src/boost/nowide/windows.hpp Examining data/libpwizlite-3.0.3/src/boost/utility/detail/member_dereference.hpp Examining data/libpwizlite-3.0.3/src/boost/utility/detail/restricted.hpp Examining data/libpwizlite-3.0.3/src/boost/utility/detail/singleton_manager.hpp Examining data/libpwizlite-3.0.3/src/boost/utility/mutexed_singleton.hpp Examining data/libpwizlite-3.0.3/src/boost/utility/singleton.hpp Examining data/libpwizlite-3.0.3/src/boost/utility/thread_specific_singleton.hpp Examining data/libpwizlite-3.0.3/src/pwiz/Version.hpp Examining data/libpwizlite-3.0.3/src/pwiz/analysis/demux/DemuxDataProcessingStrings.hpp Examining data/libpwizlite-3.0.3/src/pwiz/analysis/spectrum_processing/SpectrumList_Demux.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/common/BinaryIndexStream.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/common/CVTranslator.cpp Examining data/libpwizlite-3.0.3/src/pwiz/data/common/CVTranslator.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/common/Index.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/common/MemoryIndex.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/common/ParamTypes.cpp Examining data/libpwizlite-3.0.3/src/pwiz/data/common/ParamTypes.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/common/Unimod.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/common/cv.cpp Examining data/libpwizlite-3.0.3/src/pwiz/data/common/cv.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/common/diff_std.cpp Examining data/libpwizlite-3.0.3/src/pwiz/data/common/diff_std.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/common/obo.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/misc/CalibrationParameters.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/misc/FrequencyData.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/misc/FrequencyDataTestData.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/misc/MinimumPepXML.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/misc/PeakData.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/misc/SampleDatum.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/BinaryDataEncoder.cpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/BinaryDataEncoder.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/ChromatogramListBase.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/ChromatogramList_mz5.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/ChromatogramList_mzML.cpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/ChromatogramList_mzML.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/DefaultReaderList.cpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/DefaultReaderList.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/Diff.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.cpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/Index_mzML.cpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/Index_mzML.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/LegacyAdapter.cpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/LegacyAdapter.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/MSData.cpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/MSData.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/MSDataFile.cpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/MSDataFile.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/MSDataMerger.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/MSNumpress.cpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/MSNumpress.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/MemoryMRUCache.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/RAMPAdapter.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/Reader.cpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/Reader.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/References.cpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/References.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/SHA1OutputObserver.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/Serializer_MGF.cpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/Serializer_MGF.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/Serializer_MSn.cpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/Serializer_MSn.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/Serializer_mz5.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/Serializer_mzML.cpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/Serializer_mzML.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/Serializer_mzXML.cpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/Serializer_mzXML.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumInfo.cpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumInfo.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumIterator.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumListBase.cpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumListBase.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumListCache.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumListWrapper.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumList_BTDX.cpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumList_BTDX.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumList_MGF.cpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumList_MGF.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumList_MSn.cpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumList_MSn.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumList_mz5.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumList_mzML.cpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumList_mzML.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumList_mzXML.cpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumList_mzXML.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumWorkerThreads.cpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumWorkerThreads.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/TextWriter.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/Version.cpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/Version.hpp Examining data/libpwizlite-3.0.3/src/pwiz/data/msdata/examples.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/chemistry/Chemistry.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/chemistry/ChemistryData.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/chemistry/Ion.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/chemistry/IsotopeCalculator.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/chemistry/IsotopeEnvelopeEstimator.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/chemistry/IsotopeTable.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/chemistry/MZTolerance.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/chemistry/MzMobilityWindow.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/findmf/base/base/base.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/findmf/base/base/constants.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/findmf/base/base/copyif.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/findmf/base/base/diff.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/findmf/base/base/interpolate.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/findmf/base/base/scale.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/findmf/base/base/utilities/base.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/findmf/base/base/utilities/interpolation.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/findmf/base/filter/filter.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/findmf/base/filter/gaussfilter.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/findmf/base/filter/utilities/gauss.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/findmf/base/filter/utilities/preparedata.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/findmf/base/resample/bin1d.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/findmf/base/resample/breakspec.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/findmf/base/resample/determinebinwidth.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/findmf/base/resample/masscomparefunctors.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/findmf/base/resample/utilities/determinebinwidth.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/math/HouseholderQR.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/math/LinearLeastSquares.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/math/LinearSolver.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/math/MatchedFilter.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/math/MatrixInverse.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/math/OrderedPair.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/math/Parabola.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/math/Stats.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/math/Types.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/math/erf.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/math/qr.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/math/round.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/minimxml/SAXParser.cpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/minimxml/SAXParser.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/minimxml/XMLWriter.cpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/minimxml/XMLWriter.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/misc/Base64.cpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/misc/Base64.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/misc/BinaryData.cpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/misc/BinaryData.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/misc/COMInitializer.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/misc/CharIndexedVector.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/misc/ClickwrapPrompter.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/misc/Container.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/misc/DateTime.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/misc/Environment.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/misc/Exception.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/misc/Export.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/misc/Filesystem.cpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/misc/Filesystem.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/misc/Image.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/misc/IntegerSet.cpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/misc/IntegerSet.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/misc/IterationListener.cpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/misc/IterationListener.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/misc/MSIHandler.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/misc/Once.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/misc/SHA1.cpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/misc/SHA1.h Examining data/libpwizlite-3.0.3/src/pwiz/utility/misc/SHA1Calculator.cpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/misc/SHA1Calculator.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/misc/SHA1_ostream.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/misc/Singleton.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/misc/Std.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/misc/Stream.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/misc/String.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/misc/TabReader.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/misc/Timer.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/misc/VendorReaderTestHarness.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/misc/almost_equal.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/misc/automation_vector.h Examining data/libpwizlite-3.0.3/src/pwiz/utility/misc/cpp_cli_utilities.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/misc/endian.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/misc/mru_list.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/misc/optimized_lexical_cast.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/misc/random_access_compressed_ifstream.cpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/misc/random_access_compressed_ifstream.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/misc/shared_map.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/misc/unit.hpp Examining data/libpwizlite-3.0.3/src/pwiz/utility/misc/virtual_map.hpp FINAL RESULTS: data/libpwizlite-3.0.3/src/pwiz/utility/misc/SHA1.h:132:9: [5] (buffer) _getts: Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead. #define _getts gets data/libpwizlite-3.0.3/src/pwiz/utility/misc/SHA1.h:132:16: [5] (buffer) gets: Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead. #define _getts gets data/libpwizlite-3.0.3/src/boost/nowide/system.hpp:37: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. using ::system; data/libpwizlite-3.0.3/src/boost/nowide/system.hpp:45: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. using ::system; data/libpwizlite-3.0.3/src/boost/nowide/system.hpp:54:12: [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. inline int system(char const *cmd) data/libpwizlite-3.0.3/src/pwiz/data/msdata/Serializer_MSn.cpp:80:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(header.header[0], "CreationDate %s", ctime(&rawtime)); data/libpwizlite-3.0.3/src/pwiz/data/msdata/Serializer_MSn.cpp:82:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(header.header[2], "Extractor version\t%s\n", (msd.softwarePtrs.empty() ? "unknown" : msd.softwarePtrs.at(0)->id.c_str())); data/libpwizlite-3.0.3/src/pwiz/data/msdata/Serializer_MSn.cpp:83:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(header.header[3], "Source file\t%s\n", (msd.fileDescription.sourceFilePtrs.empty() ? "unknown" : msd.fileDescription.sourceFilePtrs.at(0)->name.c_str())); data/libpwizlite-3.0.3/src/pwiz/utility/minimxml/SAXParser.hpp:127:13: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(data()+oldsize,rhs); data/libpwizlite-3.0.3/src/pwiz/utility/minimxml/SAXParser.hpp:529:21: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. access(); // have we actually parsed the attributes text yet? data/libpwizlite-3.0.3/src/pwiz/utility/minimxml/SAXParser.hpp:534:21: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. access(); // have we actually parsed the attributes text yet? data/libpwizlite-3.0.3/src/pwiz/utility/minimxml/SAXParser.hpp:551:18: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. void access() const data/libpwizlite-3.0.3/src/pwiz/utility/minimxml/SAXParser.hpp:564:17: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. access(); // parse the buffer if we haven't already data/libpwizlite-3.0.3/src/pwiz/utility/misc/Filesystem.cpp:531:24: [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( data/libpwizlite-3.0.3/src/pwiz/utility/misc/Filesystem.cpp:532:28: [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::errc::no_such_file_or_directory, data/libpwizlite-3.0.3/src/pwiz/utility/misc/Filesystem.cpp:533:28: [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::system_category())); data/libpwizlite-3.0.3/src/pwiz/utility/misc/Filesystem.cpp:538:28: [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/libpwizlite-3.0.3/src/pwiz/utility/misc/Filesystem.cpp:549:30: [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. ec.assign(boost::system::errc::no_such_file_or_directory, data/libpwizlite-3.0.3/src/pwiz/utility/misc/Filesystem.cpp:550:30: [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::system_category()); data/libpwizlite-3.0.3/src/pwiz/utility/misc/Filesystem.cpp:557:42: [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/libpwizlite-3.0.3/src/pwiz/utility/misc/Filesystem.cpp:561:20: [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(boost::system::errc::not_a_directory, data/libpwizlite-3.0.3/src/pwiz/utility/misc/Filesystem.cpp:561:46: [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(boost::system::errc::not_a_directory, data/libpwizlite-3.0.3/src/pwiz/utility/misc/Filesystem.cpp:562:46: [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::system_category())); data/libpwizlite-3.0.3/src/pwiz/utility/misc/Filesystem.cpp:566:31: [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. ec->assign(boost::system::errc::file_exists, data/libpwizlite-3.0.3/src/pwiz/utility/misc/Filesystem.cpp:567:31: [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::system_category()); data/libpwizlite-3.0.3/src/pwiz/utility/misc/Filesystem.cpp:571:24: [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(boost::system::errc::file_exists, data/libpwizlite-3.0.3/src/pwiz/utility/misc/Filesystem.cpp:571:50: [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(boost::system::errc::file_exists, data/libpwizlite-3.0.3/src/pwiz/utility/misc/Filesystem.cpp:572:50: [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::system_category())); data/libpwizlite-3.0.3/src/pwiz/utility/misc/Filesystem.hpp:98:109: [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. PWIZ_API_DECL void copy_directory(const bfs::path& from, const bfs::path& to, bool recursive = true, boost::system::error_code* ec = 0); data/libpwizlite-3.0.3/src/pwiz/utility/misc/SHA1.cpp:260:3: [4] (buffer) _tcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. _tcscpy(tszReport, tszTemp); data/libpwizlite-3.0.3/src/pwiz/utility/misc/SHA1.cpp:265:4: [4] (format) _sntprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. _sntprintf(tszTemp, 15, lpFmt, m_digest[i]); data/libpwizlite-3.0.3/src/pwiz/utility/misc/SHA1.cpp:266:4: [4] (buffer) _tcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). _tcscat(tszReport, tszTemp); data/libpwizlite-3.0.3/src/pwiz/utility/misc/SHA1.cpp:272:3: [4] (buffer) _tcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. _tcscpy(tszReport, tszTemp); data/libpwizlite-3.0.3/src/pwiz/utility/misc/SHA1.cpp:277:4: [4] (buffer) _tcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). _tcscat(tszReport, tszTemp); data/libpwizlite-3.0.3/src/pwiz/utility/misc/SHA1.h:131:18: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define _tprintf printf data/libpwizlite-3.0.3/src/pwiz/utility/misc/SHA1.h:135:9: [4] (buffer) _tcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. #define _tcscpy strcpy data/libpwizlite-3.0.3/src/pwiz/utility/misc/SHA1.h:135:17: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). #define _tcscpy strcpy data/libpwizlite-3.0.3/src/pwiz/utility/misc/SHA1.h:136:9: [4] (buffer) _tcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). #define _tcscat strcat data/libpwizlite-3.0.3/src/pwiz/utility/misc/SHA1.h:136:17: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). #define _tcscat strcat data/libpwizlite-3.0.3/src/pwiz/utility/misc/SHA1.h:137:9: [4] (format) _sntprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define _sntprintf snprintf data/libpwizlite-3.0.3/src/pwiz/utility/misc/SHA1.h:137:20: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define _sntprintf snprintf data/libpwizlite-3.0.3/src/pwiz/utility/misc/Stream.hpp:60:12: [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. using bnw::system; // unqualified system() calls will be ambiguous, by intention, to force developers to consider UTF-8 compatibility data/libpwizlite-3.0.3/src/boost/enum/base.hpp:123:7: [3] (random) setstate: 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. is.setstate(std::ios::badbit); data/libpwizlite-3.0.3/src/boost/enum/bitfield.hpp:316:11: [3] (random) setstate: 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. is.setstate(std::ios::badbit); data/libpwizlite-3.0.3/src/boost/nowide/cenv.hpp:25:13: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. using ::getenv; data/libpwizlite-3.0.3/src/boost/nowide/cenv.hpp:35:18: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. inline char *getenv(char const *key) data/libpwizlite-3.0.3/src/boost/nowide/fstream.hpp:64:23: [3] (random) setstate: 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. this->setstate(std::ios_base::failbit); data/libpwizlite-3.0.3/src/boost/nowide/fstream.hpp:81:23: [3] (random) setstate: 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. this->setstate(std::ios_base::failbit); data/libpwizlite-3.0.3/src/boost/nowide/fstream.hpp:126:23: [3] (random) setstate: 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. this->setstate(std::ios_base::failbit); data/libpwizlite-3.0.3/src/boost/nowide/fstream.hpp:143:23: [3] (random) setstate: 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. this->setstate(std::ios_base::failbit); data/libpwizlite-3.0.3/src/boost/nowide/fstream.hpp:188:23: [3] (random) setstate: 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. this->setstate(std::ios_base::failbit); data/libpwizlite-3.0.3/src/boost/nowide/fstream.hpp:205:23: [3] (random) setstate: 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. this->setstate(std::ios_base::failbit); data/libpwizlite-3.0.3/src/pwiz/utility/misc/Environment.hpp:40:22: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char* result = ::getenv(name); data/libpwizlite-3.0.3/src/pwiz/utility/misc/random_access_compressed_ifstream.cpp:425:15: [3] (random) setstate: 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. this->setstate(std::ios::failbit); // could not open, set the fail flag data/libpwizlite-3.0.3/src/boost/iostreams/filter/base64.hpp:170:13: [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 buf[4]; data/libpwizlite-3.0.3/src/boost/iostreams/filter/base64.hpp:183:13: [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 src[3] = { 0, 0, 0 }; data/libpwizlite-3.0.3/src/boost/iostreams/filter/base64.hpp:186:13: [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 buf[4]; data/libpwizlite-3.0.3/src/boost/iostreams/filter/base64.hpp:230:9: [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 buf[4]; data/libpwizlite-3.0.3/src/boost/iostreams/filter/base64.hpp:261:13: [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 buf[4]; data/libpwizlite-3.0.3/src/boost/nowide/cenv.hpp:44:9: [2] (buffer) wchar_t: 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. wchar_t buf[buf_size]; data/libpwizlite-3.0.3/src/boost/nowide/cenv.hpp:74:13: [2] (buffer) wchar_t: 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. wchar_t unused[2]; data/libpwizlite-3.0.3/src/boost/nowide/cstdio.hpp:27:16: [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). using std::fopen; data/libpwizlite-3.0.3/src/boost/nowide/cstdio.hpp:53:14: [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). inline FILE *fopen(char const *file_name,char const *mode) data/libpwizlite-3.0.3/src/boost/nowide/filebuf.hpp:76: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). basic_filebuf *open(std::string const &s,std::ios_base::openmode mode) data/libpwizlite-3.0.3/src/boost/nowide/filebuf.hpp:78:20: [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). return open(s.c_str(),mode); data/libpwizlite-3.0.3/src/boost/nowide/filebuf.hpp:83: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). basic_filebuf *open(char const *s,std::ios_base::openmode mode) data/libpwizlite-3.0.3/src/boost/nowide/filebuf.hpp:97:25: [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 *f = ::fopen(s,boost::nowide::convert(smode).c_str()); data/libpwizlite-3.0.3/src/boost/nowide/fstream.hpp:58: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). open(file_name,mode); data/libpwizlite-3.0.3/src/boost/nowide/fstream.hpp:61:14: [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(char const *file_name,std::ios_base::openmode mode = std::ios_base::in) data/libpwizlite-3.0.3/src/boost/nowide/fstream.hpp:63: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). if(!buf_->open(file_name,mode | std::ios_base::in)) { data/libpwizlite-3.0.3/src/boost/nowide/fstream.hpp:121: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). open(file_name,mode); data/libpwizlite-3.0.3/src/boost/nowide/fstream.hpp:123:14: [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(char const *file_name,std::ios_base::openmode mode = std::ios_base::out) data/libpwizlite-3.0.3/src/boost/nowide/fstream.hpp:125: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). if(!buf_->open(file_name,mode | std::ios_base::out)) { data/libpwizlite-3.0.3/src/boost/nowide/fstream.hpp:183: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). open(file_name,mode); data/libpwizlite-3.0.3/src/boost/nowide/fstream.hpp:185:14: [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(char const *file_name,std::ios_base::openmode mode = std::ios_base::out | std::ios_base::out) data/libpwizlite-3.0.3/src/boost/nowide/fstream.hpp:187: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). if(!buf_->open(file_name,mode)) { data/libpwizlite-3.0.3/src/boost/nowide/stackstring.hpp:41:13: [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(mem_buffer_,other.mem_buffer_,sizeof(output_char) * (len+1)); data/libpwizlite-3.0.3/src/boost/nowide/stackstring.hpp:44:13: [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(buffer_,other.buffer_,buffer_size * sizeof(output_char)); data/libpwizlite-3.0.3/src/boost/utility/detail/singleton_manager.hpp:126:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(& of, & uninitialized, sizeof(boost::once_flag)); data/libpwizlite-3.0.3/src/pwiz/data/common/ParamTypes.cpp:100:9: [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 buffer[256]; data/libpwizlite-3.0.3/src/pwiz/data/common/ParamTypes.cpp:318:5: [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 buffer[256]; data/libpwizlite-3.0.3/src/pwiz/data/common/ParamTypes.cpp:329:5: [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 buffer[256]; data/libpwizlite-3.0.3/src/pwiz/data/misc/SampleDatum.hpp:89: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). char open, separator, close; data/libpwizlite-3.0.3/src/pwiz/data/misc/SampleDatum.hpp:92:12: [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). iss >> open >> x >> separator >> y >> close; data/libpwizlite-3.0.3/src/pwiz/data/misc/SampleDatum.hpp:94:9: [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 (open != SampleDatumConstant::open_ || data/libpwizlite-3.0.3/src/pwiz/data/msdata/MSNumpress.cpp:265: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 halfBytes[10]; data/libpwizlite-3.0.3/src/pwiz/data/msdata/MSNumpress.cpp:447: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 halfBytes[10]; data/libpwizlite-3.0.3/src/pwiz/data/msdata/Serializer_MGF.cpp:137:13: [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 buffer[256]; data/libpwizlite-3.0.3/src/pwiz/data/msdata/Serializer_MSn.cpp:81:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(header.header[1], "Extractor\tProteoWizard\n"); data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumList_MSn.hpp:42:5: [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 header[16][128]; data/libpwizlite-3.0.3/src/pwiz/utility/math/OrderedPair.hpp:59:12: [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). is >> open >> p.x >> comma >> p.y >> close; data/libpwizlite-3.0.3/src/pwiz/utility/math/OrderedPair.hpp:61:9: [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 (open!='(' || comma!=',' || close!=')') data/libpwizlite-3.0.3/src/pwiz/utility/minimxml/SAXParser.cpp:605:5: [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 buf[513]; data/libpwizlite-3.0.3/src/pwiz/utility/minimxml/SAXParser.hpp:82:9: [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(data(),rhs.c_str(),rhs.length()); data/libpwizlite-3.0.3/src/pwiz/utility/minimxml/SAXParser.hpp:100:13: [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(data(),rhs.c_str(),length()+1); data/libpwizlite-3.0.3/src/pwiz/utility/minimxml/SAXParser.hpp:108:13: [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(data(),rhs,length()+1); data/libpwizlite-3.0.3/src/pwiz/utility/minimxml/SAXParser.hpp:117:13: [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(data()+oldsize,rhs.c_str(),rhs.length()+1); data/libpwizlite-3.0.3/src/pwiz/utility/minimxml/SAXParser.hpp:241:12: [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(txt); data/libpwizlite-3.0.3/src/pwiz/utility/minimxml/SAXParser.hpp:251:12: [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). return atol(txt); data/libpwizlite-3.0.3/src/pwiz/utility/minimxml/SAXParser.hpp:363:15: [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(textbuff,_source_text,size); data/libpwizlite-3.0.3/src/pwiz/utility/minimxml/SAXParser.hpp:406:13: [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(textbuff,rhs.textbuff,size+1); data/libpwizlite-3.0.3/src/pwiz/utility/minimxml/XMLWriter.cpp:56:5: [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 buffer[256]; data/libpwizlite-3.0.3/src/pwiz/utility/minimxml/XMLWriter.cpp:67:5: [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 buffer[256]; data/libpwizlite-3.0.3/src/pwiz/utility/misc/Base64.cpp:40:1: [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 charTable[64] = data/libpwizlite-3.0.3/src/pwiz/utility/misc/Base64.cpp:52:1: [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 byteTable[256]; data/libpwizlite-3.0.3/src/pwiz/utility/misc/BinaryData.cpp:156:21: [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(&that[0], &pinnedArrayPtr[0], that.size() * sizeof(T)); data/libpwizlite-3.0.3/src/pwiz/utility/misc/BinaryData.cpp:182:13: [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(&pinnedArrayPtr[0], &nativeStorage_[0], nativeStorage_.size() * sizeof(T)); data/libpwizlite-3.0.3/src/pwiz/utility/misc/BinaryData.cpp:221:13: [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(&pinnedArrayPtr[0], &that[0], that.size() * sizeof(T)); data/libpwizlite-3.0.3/src/pwiz/utility/misc/Filesystem.cpp:317:9: [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 messageBuffer[256]; data/libpwizlite-3.0.3/src/pwiz/utility/misc/Filesystem.cpp:394:5: [2] (buffer) wchar_t: 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. wchar_t szPath[260]; data/libpwizlite-3.0.3/src/pwiz/utility/misc/Filesystem.cpp:659:5: [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 buffer[256]; data/libpwizlite-3.0.3/src/pwiz/utility/misc/IntegerSet.cpp:70:12: [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). iss >> open >> a >> comma >> b >> close; data/libpwizlite-3.0.3/src/pwiz/utility/misc/SHA1.cpp:82: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(m_block, pBuffer, 64); data/libpwizlite-3.0.3/src/pwiz/utility/misc/SHA1.cpp:133: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_buffer[j], pbData, i); data/libpwizlite-3.0.3/src/pwiz/utility/misc/SHA1.cpp:144: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_buffer[j], &pbData[i], uLen - i); data/libpwizlite-3.0.3/src/pwiz/utility/misc/SHA1.cpp:198: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 vData[SHA1_MAX_FILE_BUFFER]; data/libpwizlite-3.0.3/src/pwiz/utility/misc/SHA1.cpp:255:2: [2] (buffer) TCHAR: 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. TCHAR tszTemp[16]; data/libpwizlite-3.0.3/src/pwiz/utility/misc/SHA1.cpp:289:2: [2] (buffer) TCHAR: 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. TCHAR tszOut[84]; data/libpwizlite-3.0.3/src/pwiz/utility/misc/SHA1.cpp:300: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(pbDest, m_digest, 20); data/libpwizlite-3.0.3/src/pwiz/utility/misc/SHA1.h:134:17: [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). #define _tfopen fopen data/libpwizlite-3.0.3/src/pwiz/utility/misc/SHA1Calculator.cpp:42:5: [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 buffer[100]; data/libpwizlite-3.0.3/src/pwiz/utility/misc/SHA1Calculator.cpp:142: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[65535]; data/libpwizlite-3.0.3/src/pwiz/utility/misc/TabReader.hpp:46:18: [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). virtual bool open() = 0; data/libpwizlite-3.0.3/src/pwiz/utility/misc/TabReader.hpp:70:18: [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). virtual bool open(); data/libpwizlite-3.0.3/src/pwiz/utility/misc/automation_vector.h:74:12: [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 char size_checker[ data/libpwizlite-3.0.3/src/pwiz/utility/misc/random_access_compressed_ifstream.cpp:190: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). bool open(const char *path); data/libpwizlite-3.0.3/src/pwiz/utility/misc/random_access_compressed_ifstream.cpp:222: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. assert(gptr()>=(char *)inbuf[current_inbuf].filereadbuf); data/libpwizlite-3.0.3/src/pwiz/utility/misc/random_access_compressed_ifstream.cpp:223: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. assert(gptr()<=(char *)inbuf[current_inbuf].filereadbuf+inbuf[current_inbuf].readbuf_len); data/libpwizlite-3.0.3/src/pwiz/utility/misc/random_access_compressed_ifstream.cpp:348:17: [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 *)inbuf[n].filereadbuf<=gptr()) && data/libpwizlite-3.0.3/src/pwiz/utility/misc/random_access_compressed_ifstream.cpp:349:28: [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. (gptr() <= ((char *)inbuf[n].filereadbuf + inbuf[n].readbuf_len))) { data/libpwizlite-3.0.3/src/pwiz/utility/misc/random_access_compressed_ifstream.cpp:407:5: [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(path); data/libpwizlite-3.0.3/src/pwiz/utility/misc/random_access_compressed_ifstream.cpp:411:41: [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 random_access_compressed_ifstream::open(const char *path) { data/libpwizlite-3.0.3/src/pwiz/utility/misc/random_access_compressed_ifstream.cpp:416: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 (fb->open(path)) { data/libpwizlite-3.0.3/src/pwiz/utility/misc/random_access_compressed_ifstream.cpp:1045: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). bool chunky_streambuf::open(const char *path) { data/libpwizlite-3.0.3/src/pwiz/utility/misc/random_access_compressed_ifstream.hpp:86:7: [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(const char *fname); // for ease of use as ifstream replacement data/libpwizlite-3.0.3/src/boost/enum/iterator.hpp:72:8: [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. bool equal(const this_type& rhs) const data/libpwizlite-3.0.3/src/boost/iostreams/arbitrary_positional_facade.hpp:169:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). std::streamsize read(char_type* s, std::streamsize n) data/libpwizlite-3.0.3/src/boost/iostreams/arbitrary_positional_facade.hpp:175:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). std::streamsize read(Source& src, char_type* s, std::streamsize n) data/libpwizlite-3.0.3/src/boost/iostreams/filter/base64.hpp:263:35: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). boost::iostreams::read(src, buf, sizeof(buf)); data/libpwizlite-3.0.3/src/boost/nowide/args.hpp:124:73: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for(wstrings_end = wstrings;*wstrings_end;wstrings_end+=wcslen(wstrings_end)+1) data/libpwizlite-3.0.3/src/boost/nowide/args.hpp:133:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p+=strlen(p)+1; data/libpwizlite-3.0.3/src/boost/nowide/filebuf.hpp:250:27: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int c = ::fgetc(file_); data/libpwizlite-3.0.3/src/pwiz/data/misc/FrequencyData.hpp:71:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(const std::string& filename, IOMode mode=Automatic); data/libpwizlite-3.0.3/src/pwiz/data/misc/FrequencyData.hpp:72:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(std::istream& is, IOMode mode=Binary); data/libpwizlite-3.0.3/src/pwiz/data/misc/MinimumPepXML.hpp:69:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(std::istream& is); data/libpwizlite-3.0.3/src/pwiz/data/misc/MinimumPepXML.hpp:105:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(std::istream& is); data/libpwizlite-3.0.3/src/pwiz/data/misc/MinimumPepXML.hpp:124:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(std::istream& is); data/libpwizlite-3.0.3/src/pwiz/data/misc/MinimumPepXML.hpp:148:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(std::istream& is); data/libpwizlite-3.0.3/src/pwiz/data/misc/MinimumPepXML.hpp:225:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(std::istream& is); data/libpwizlite-3.0.3/src/pwiz/data/misc/MinimumPepXML.hpp:241:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(std::istream& is); data/libpwizlite-3.0.3/src/pwiz/data/misc/MinimumPepXML.hpp:257:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(std::istream& is); data/libpwizlite-3.0.3/src/pwiz/data/misc/MinimumPepXML.hpp:272:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(std::istream& is); data/libpwizlite-3.0.3/src/pwiz/data/misc/MinimumPepXML.hpp:287:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(std::istream& is); data/libpwizlite-3.0.3/src/pwiz/data/misc/MinimumPepXML.hpp:304:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(std::istream& is); data/libpwizlite-3.0.3/src/pwiz/data/misc/MinimumPepXML.hpp:320:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(std::istream& is); data/libpwizlite-3.0.3/src/pwiz/data/misc/MinimumPepXML.hpp:352:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(std::istream& is); data/libpwizlite-3.0.3/src/pwiz/data/misc/MinimumPepXML.hpp:374:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(std::istream& is); data/libpwizlite-3.0.3/src/pwiz/data/misc/MinimumPepXML.hpp:395:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(std::istream& is); data/libpwizlite-3.0.3/src/pwiz/data/misc/MinimumPepXML.hpp:416:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(std::istream& is); data/libpwizlite-3.0.3/src/pwiz/data/misc/MinimumPepXML.hpp:457:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(std::istream& is); data/libpwizlite-3.0.3/src/pwiz/data/misc/MinimumPepXML.hpp:513:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(std::istream& is); data/libpwizlite-3.0.3/src/pwiz/data/misc/MinimumPepXML.hpp:542:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(std::istream& is); data/libpwizlite-3.0.3/src/pwiz/data/misc/MinimumPepXML.hpp:637:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(std::istream& is); data/libpwizlite-3.0.3/src/pwiz/data/misc/MinimumPepXML.hpp:657:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(std::istream& is); data/libpwizlite-3.0.3/src/pwiz/data/misc/MinimumPepXML.hpp:684:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(std::istream& is); data/libpwizlite-3.0.3/src/pwiz/data/misc/PeakData.hpp:85:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(std::istream& is); data/libpwizlite-3.0.3/src/pwiz/data/misc/PeakData.hpp:123:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(std::istream& is); data/libpwizlite-3.0.3/src/pwiz/data/misc/PeakData.hpp:147:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(std::istream& is); data/libpwizlite-3.0.3/src/pwiz/data/misc/PeakData.hpp:173:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(std::istream& is); data/libpwizlite-3.0.3/src/pwiz/data/misc/PeakData.hpp:183:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(std::istream& is); data/libpwizlite-3.0.3/src/pwiz/data/misc/PeakData.hpp:197:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(std::istream& is); data/libpwizlite-3.0.3/src/pwiz/data/misc/PeakData.hpp:235:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(std::istream& is); data/libpwizlite-3.0.3/src/pwiz/data/misc/PeakData.hpp:283:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(std::istream& is); data/libpwizlite-3.0.3/src/pwiz/data/misc/PeakData.hpp:318:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(std::istream& is); data/libpwizlite-3.0.3/src/pwiz/data/msdata/ChromatogramList_mzML.cpp:106:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). IO::read(*is_, *result, binaryDataFlag); data/libpwizlite-3.0.3/src/pwiz/data/msdata/ChromatogramList_mzML.cpp:120:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). IO::read(*is_, *result, binaryDataFlag); data/libpwizlite-3.0.3/src/pwiz/data/msdata/DefaultReaderList.cpp:128:33: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void Reader_mzML::read(const std::string& filename, data/libpwizlite-3.0.3/src/pwiz/data/msdata/DefaultReaderList.cpp:148:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). serializer.read(is, result); data/libpwizlite-3.0.3/src/pwiz/data/msdata/DefaultReaderList.cpp:154:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). serializer.read(is, result); data/libpwizlite-3.0.3/src/pwiz/data/msdata/DefaultReaderList.cpp:167:33: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void Reader_mzML::read(const std::string& filename, data/libpwizlite-3.0.3/src/pwiz/data/msdata/DefaultReaderList.cpp:173:5: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read(filename, head, *results.back(), 0, config); data/libpwizlite-3.0.3/src/pwiz/data/msdata/DefaultReaderList.cpp:211:34: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void Reader_mzXML::read(const std::string& filename, data/libpwizlite-3.0.3/src/pwiz/data/msdata/DefaultReaderList.cpp:228:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). serializer.read(is, result); data/libpwizlite-3.0.3/src/pwiz/data/msdata/DefaultReaderList.cpp:242:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). serializer.read(is, result); data/libpwizlite-3.0.3/src/pwiz/data/msdata/DefaultReaderList.cpp:249:34: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void Reader_mzXML::read(const std::string& filename, data/libpwizlite-3.0.3/src/pwiz/data/msdata/DefaultReaderList.cpp:255:5: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read(filename, head, *results.back(), 0, config); data/libpwizlite-3.0.3/src/pwiz/data/msdata/DefaultReaderList.cpp:268:32: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void Reader_MGF::read(const string& filename, data/libpwizlite-3.0.3/src/pwiz/data/msdata/DefaultReaderList.cpp:282:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). serializer.read(is, result); data/libpwizlite-3.0.3/src/pwiz/data/msdata/DefaultReaderList.cpp:289:32: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void Reader_MGF::read(const std::string& filename, data/libpwizlite-3.0.3/src/pwiz/data/msdata/DefaultReaderList.cpp:295:5: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read(filename, head, *results.back()); data/libpwizlite-3.0.3/src/pwiz/data/msdata/DefaultReaderList.cpp:312:32: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void Reader_MSn::read(const string& filename, data/libpwizlite-3.0.3/src/pwiz/data/msdata/DefaultReaderList.cpp:340:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). serializer.read(is, result); data/libpwizlite-3.0.3/src/pwiz/data/msdata/DefaultReaderList.cpp:346:32: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void Reader_MSn::read(const std::string& filename, data/libpwizlite-3.0.3/src/pwiz/data/msdata/DefaultReaderList.cpp:352:5: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read(filename, head, *results.back()); data/libpwizlite-3.0.3/src/pwiz/data/msdata/DefaultReaderList.cpp:375:33: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void Reader_BTDX::read(const string& filename, data/libpwizlite-3.0.3/src/pwiz/data/msdata/DefaultReaderList.cpp:403:33: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void Reader_BTDX::read(const std::string& filename, data/libpwizlite-3.0.3/src/pwiz/data/msdata/DefaultReaderList.cpp:409:5: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read(filename, head, *results.back()); data/libpwizlite-3.0.3/src/pwiz/data/msdata/DefaultReaderList.cpp:454:32: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void Reader_mz5::read(const string& filename, data/libpwizlite-3.0.3/src/pwiz/data/msdata/DefaultReaderList.cpp:467:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). serializer.read(filename, result); data/libpwizlite-3.0.3/src/pwiz/data/msdata/DefaultReaderList.cpp:477:32: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void Reader_mz5::read(const std::string& filename, data/libpwizlite-3.0.3/src/pwiz/data/msdata/DefaultReaderList.cpp:484:5: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read(filename, head, *results.back()); data/libpwizlite-3.0.3/src/pwiz/data/msdata/DefaultReaderList.hpp:40:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual void read(const std::string& filename, const std::string& head, MSData& result, int runIndex = 0, const Config& config = Config()) const; data/libpwizlite-3.0.3/src/pwiz/data/msdata/DefaultReaderList.hpp:41:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual void read(const std::string& filename, const std::string& head, std::vector<MSDataPtr>& results, const Config& config = Config()) const; data/libpwizlite-3.0.3/src/pwiz/data/msdata/DefaultReaderList.hpp:56:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual void read(const std::string& filename, const std::string& head, MSData& result, int runIndex = 0, const Config& config = Config()) const; data/libpwizlite-3.0.3/src/pwiz/data/msdata/DefaultReaderList.hpp:57:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual void read(const std::string& filename, const std::string& head, std::vector<MSDataPtr>& results, const Config& config = Config()) const; data/libpwizlite-3.0.3/src/pwiz/data/msdata/DefaultReaderList.hpp:68:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual void read(const std::string& filename, const std::string& head, MSData& result, int runIndex = 0, const Config& config = Config()) const; data/libpwizlite-3.0.3/src/pwiz/data/msdata/DefaultReaderList.hpp:69:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual void read(const std::string& filename, const std::string& head, std::vector<MSDataPtr>& results, const Config& config = Config()) const; data/libpwizlite-3.0.3/src/pwiz/data/msdata/DefaultReaderList.hpp:80:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual void read(const std::string& filename, const std::string& head, MSData& result, int runIndex = 0, const Config& config = Config()) const; data/libpwizlite-3.0.3/src/pwiz/data/msdata/DefaultReaderList.hpp:81:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual void read(const std::string& filename, const std::string& head, std::vector<MSDataPtr>& results, const Config& config = Config()) const; data/libpwizlite-3.0.3/src/pwiz/data/msdata/DefaultReaderList.hpp:109:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual void read(const std::string& filename, const std::string& head, MSData& result, int runIndex = 0, const Config& config = Config()) const; data/libpwizlite-3.0.3/src/pwiz/data/msdata/DefaultReaderList.hpp:110:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual void read(const std::string& filename, const std::string& head, std::vector<MSDataPtr>& results, const Config& config = Config()) const; data/libpwizlite-3.0.3/src/pwiz/data/msdata/DefaultReaderList.hpp:121:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual void read(const std::string& filename, const std::string& head, MSData& result, int runIndex = 0, const Config& config = Config()) const; data/libpwizlite-3.0.3/src/pwiz/data/msdata/DefaultReaderList.hpp:122:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual void read(const std::string& filename, const std::string& head, std::vector<MSDataPtr>& results, const Config& config = Config()) const; data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.cpp:95:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, CV& cv) data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.cpp:154:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, UserParam& userParam) data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.cpp:214:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, CVParam& cvParam) data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.cpp:362:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, ParamGroup& paramGroup) data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.cpp:382:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, FileContent& fc) data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.cpp:443:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, SourceFile& sf) data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.cpp:463:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, Contact& c) data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.cpp:543:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, FileDescription& fd) data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.cpp:594:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, Sample& sample) data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.cpp:658:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, Component& component) data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.cpp:730:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, ComponentList& componentList) data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.cpp:791:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, Software& software) data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.cpp:867:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, InstrumentConfiguration& instrumentConfiguration) data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.cpp:929:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, ProcessingMethod& processingMethod) data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.cpp:1001:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, DataProcessing& dataProcessing) data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.cpp:1021:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, Target& t) data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.cpp:1118:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, ScanSettings& scanSettings) data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.cpp:1138:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, IsolationWindow& isolationWindow) data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.cpp:1158:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, SelectedIon& selectedIon) data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.cpp:1178:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, Activation& activation) data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.cpp:1316:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, Precursor& precursor, const map<string,string>* legacyIdRefToNativeId) data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.cpp:1379:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, Product& product) data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.cpp:1399:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, ScanWindow& scanWindow) data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.cpp:1543:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, Scan& scan) data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.cpp:1606:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, ScanList& scanList) data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.cpp:1992:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, std::vector<BinaryDataArrayPtr>& binaryDataArrayPtrs, std::vector<IntegerDataArrayPtr>& integerDataArrayPtrs, const MSData* msd) data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.cpp:2202:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, Spectrum& spectrum, data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.cpp:2331:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, Chromatogram& chromatogram, data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.cpp:2436:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, SpectrumListSimple& spectrumListSimple) data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.cpp:2536:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, ChromatogramListSimple& chromatogramListSimple) data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.cpp:2676:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(std::istream& is, Run& run, data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.cpp:2868:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(std::istream& is, MSData& msd, data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.hpp:66:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, CV& cv); data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.hpp:70:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, UserParam& userParam); data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.hpp:74:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, CVParam& cv); data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.hpp:78:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, ParamGroup& paramGroup); data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.hpp:82:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, FileContent& fc); data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.hpp:86:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, SourceFile& sf); data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.hpp:90:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, Contact& c); data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.hpp:94:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, FileDescription& fd); data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.hpp:98:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, Sample& sf); data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.hpp:102:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, Component& component); data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.hpp:106:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, ComponentList& componentList); data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.hpp:110:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, Software& software); data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.hpp:114:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, InstrumentConfiguration& instrumentConfiguration); data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.hpp:118:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, ProcessingMethod& processingMethod); data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.hpp:122:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, DataProcessing& dataProcessing); data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.hpp:126:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, Target& t); data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.hpp:130:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, ScanSettings& scanSettings); data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.hpp:134:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, IsolationWindow& isolationWindow); data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.hpp:138:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, SelectedIon& selectedIon); data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.hpp:142:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, Activation& activation); data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.hpp:146:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, Precursor& precursor, const std::map<std::string,std::string>* legacyIdRefToNativeId = 0); data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.hpp:150:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, Product& product); data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.hpp:154:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, ScanWindow& selectionWindow); data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.hpp:158:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, Scan& scan); data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.hpp:162:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, ScanList& scanList); data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.hpp:171:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, std::vector<BinaryDataArrayPtr>& binaryDataArrayPtrs, std::vector<IntegerDataArrayPtr>& integerDataArrayPtrs, const MSData* msd = 0); data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.hpp:183:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(std::istream& is, Spectrum& spectrum, data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.hpp:195:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(std::istream& is, Chromatogram& chromatogram, data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.hpp:205:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, SpectrumListSimple& spectrumListSimple); data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.hpp:213:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void read(std::istream& is, ChromatogramListSimple& chromatogramListSimple); data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.hpp:227:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(std::istream& is, Run& run, data/libpwizlite-3.0.3/src/pwiz/data/msdata/IO.hpp:239:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(std::istream& is, MSData& msd, data/libpwizlite-3.0.3/src/pwiz/data/msdata/Index_mzML.cpp:353:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). is_->read(&buffer[0], bufferSize); data/libpwizlite-3.0.3/src/pwiz/data/msdata/MSDataFile.cpp:61:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). reader.read(filename, head, msd); data/libpwizlite-3.0.3/src/pwiz/data/msdata/Reader.cpp:77:5: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read(filename, head, data); data/libpwizlite-3.0.3/src/pwiz/data/msdata/Reader.cpp:103:32: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void ReaderList::read(const string& filename, MSData& result, int sampleIndex /* = 0 */, const Config& config) const data/libpwizlite-3.0.3/src/pwiz/data/msdata/Reader.cpp:105:5: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read(filename, read_file_header(filename, 512), result, sampleIndex, config); data/libpwizlite-3.0.3/src/pwiz/data/msdata/Reader.cpp:109:32: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void ReaderList::read(const string& filename, const string& head, MSData& result, int sampleIndex /* = 0 */, const Config& config) const data/libpwizlite-3.0.3/src/pwiz/data/msdata/Reader.cpp:114:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (*it)->read(filename, head, result, sampleIndex, config); data/libpwizlite-3.0.3/src/pwiz/data/msdata/Reader.cpp:122:32: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void ReaderList::read(const string& filename, vector<MSDataPtr>& results, const Config& config) const data/libpwizlite-3.0.3/src/pwiz/data/msdata/Reader.cpp:124:5: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read(filename, read_file_header(filename, 512), results, config); data/libpwizlite-3.0.3/src/pwiz/data/msdata/Reader.cpp:128:32: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void ReaderList::read(const string& filename, const string& head, vector<MSDataPtr>& results, const Config& config) const data/libpwizlite-3.0.3/src/pwiz/data/msdata/Reader.cpp:133:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (*it)->read(filename, head, results, config); data/libpwizlite-3.0.3/src/pwiz/data/msdata/Reader.hpp:112:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual void read(const std::string& filename, data/libpwizlite-3.0.3/src/pwiz/data/msdata/Reader.hpp:119:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual void read(const std::string& filename, data/libpwizlite-3.0.3/src/pwiz/data/msdata/Reader.hpp:187:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual void read(const std::string& filename, data/libpwizlite-3.0.3/src/pwiz/data/msdata/Reader.hpp:193:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual void read(const std::string& filename, data/libpwizlite-3.0.3/src/pwiz/data/msdata/Reader.hpp:201:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual void read(const std::string& filename, data/libpwizlite-3.0.3/src/pwiz/data/msdata/Reader.hpp:207:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual void read(const std::string& filename, data/libpwizlite-3.0.3/src/pwiz/data/msdata/Serializer_MGF.cpp:52:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(shared_ptr<istream> is, MSData& msd) const; data/libpwizlite-3.0.3/src/pwiz/data/msdata/Serializer_MGF.cpp:162:28: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void Serializer_MGF::Impl::read(shared_ptr<istream> is, MSData& msd) const data/libpwizlite-3.0.3/src/pwiz/data/msdata/Serializer_MGF.cpp:210:36: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void Serializer_MGF::read(shared_ptr<istream> is, MSData& msd) const data/libpwizlite-3.0.3/src/pwiz/data/msdata/Serializer_MGF.cpp:212:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return impl_->read(is, msd); data/libpwizlite-3.0.3/src/pwiz/data/msdata/Serializer_MGF.hpp:53:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(boost::shared_ptr<std::istream> is, MSData& msd) const; data/libpwizlite-3.0.3/src/pwiz/data/msdata/Serializer_MSn.cpp:63:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(shared_ptr<istream> is, MSData& msd) const; data/libpwizlite-3.0.3/src/pwiz/data/msdata/Serializer_MSn.cpp:498:28: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void Serializer_MSn::Impl::read(shared_ptr<istream> is, MSData& msd) const data/libpwizlite-3.0.3/src/pwiz/data/msdata/Serializer_MSn.cpp:531:36: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void Serializer_MSn::read(shared_ptr<istream> is, MSData& msd) const data/libpwizlite-3.0.3/src/pwiz/data/msdata/Serializer_MSn.cpp:533:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return impl_->read(is, msd); data/libpwizlite-3.0.3/src/pwiz/data/msdata/Serializer_MSn.hpp:53:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(boost::shared_ptr<std::istream> is, MSData& msd) const; data/libpwizlite-3.0.3/src/pwiz/data/msdata/Serializer_mz5.hpp:75:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(const std::string& filename, MSData& msd) const; data/libpwizlite-3.0.3/src/pwiz/data/msdata/Serializer_mz5.hpp:78:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(boost::shared_ptr<std::istream> is, MSData& msd) const; data/libpwizlite-3.0.3/src/pwiz/data/msdata/Serializer_mzML.cpp:57:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(shared_ptr<istream> is, MSData& msd) const; data/libpwizlite-3.0.3/src/pwiz/data/msdata/Serializer_mzML.cpp:212:29: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void Serializer_mzML::Impl::read(shared_ptr<istream> is, MSData& msd) const data/libpwizlite-3.0.3/src/pwiz/data/msdata/Serializer_mzML.cpp:225:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). IO::read(*is, msd, IO::IgnoreSpectrumList); data/libpwizlite-3.0.3/src/pwiz/data/msdata/Serializer_mzML.cpp:251:37: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void Serializer_mzML::read(shared_ptr<istream> is, MSData& msd) const data/libpwizlite-3.0.3/src/pwiz/data/msdata/Serializer_mzML.cpp:253:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return impl_->read(is, msd); data/libpwizlite-3.0.3/src/pwiz/data/msdata/Serializer_mzML.hpp:68:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(boost::shared_ptr<std::istream> is, MSData& msd) const; data/libpwizlite-3.0.3/src/pwiz/data/msdata/Serializer_mzXML.cpp:60:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(shared_ptr<istream> is, MSData& msd) const; data/libpwizlite-3.0.3/src/pwiz/data/msdata/Serializer_mzXML.cpp:1351:30: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void Serializer_mzXML::Impl::read(shared_ptr<istream> is, MSData& msd) const data/libpwizlite-3.0.3/src/pwiz/data/msdata/Serializer_mzXML.cpp:1391:38: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PWIZ_API_DECL void Serializer_mzXML::read(shared_ptr<istream> is, MSData& msd) const data/libpwizlite-3.0.3/src/pwiz/data/msdata/Serializer_mzXML.cpp:1393:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return impl_->read(is, msd); data/libpwizlite-3.0.3/src/pwiz/data/msdata/Serializer_mzXML.hpp:68:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(boost::shared_ptr<std::istream> is, MSData& msd) const; data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumListBase.cpp:84:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return boost::hash_range(msg, msg + strlen(msg)); data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumList_MGF.cpp:385:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). start += strlen(startTag); data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumList_MSn.cpp:86:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (*is).read(reinterpret_cast<char *>(&scanNumber), sizeIntMSn); data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumList_MSn.cpp:87:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (*is).read(reinterpret_cast<char *>(&scanNumber), sizeIntMSn); // yes, there are two data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumList_MSn.cpp:88:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (*is).read(reinterpret_cast<char *>(&mz), sizeDoubleMSn); data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumList_MSn.cpp:89:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (*is).read(reinterpret_cast<char *>(&rTime), sizeFloatMSn); data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumList_MSn.cpp:93:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (*is).read(reinterpret_cast<char *>(&basePeakIntensity), sizeFloatMSn); data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumList_MSn.cpp:94:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (*is).read(reinterpret_cast<char *>(&basePeakMz), sizeDoubleMSn); data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumList_MSn.cpp:95:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (*is).read(reinterpret_cast<char *>(&conversionFactorA), sizeDoubleMSn); data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumList_MSn.cpp:96:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (*is).read(reinterpret_cast<char *>(&conversionFactorB), sizeDoubleMSn); data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumList_MSn.cpp:97:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (*is).read(reinterpret_cast<char *>(&TIC), sizeDoubleMSn); data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumList_MSn.cpp:98:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (*is).read(reinterpret_cast<char *>(&ionInjectionTime), sizeFloatMSn); data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumList_MSn.cpp:101:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (*is).read(reinterpret_cast<char *>(&numChargeStates), sizeIntMSn); data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumList_MSn.cpp:105:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (*is).read(reinterpret_cast<char *>(&numEzStates), sizeIntMSn); data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumList_MSn.cpp:107:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (*is).read(reinterpret_cast<char *>(&numPeaks), sizeIntMSn); data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumList_MSn.cpp:498:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (*is_).read(reinterpret_cast<char *>(&charge), sizeIntMSn); data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumList_MSn.cpp:500:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (*is_).read(reinterpret_cast<char *>(&mass), sizeDoubleMSn); data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumList_MSn.cpp:519:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (*is_).read(reinterpret_cast<char *>(&eCharge), sizeIntMSn); data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumList_MSn.cpp:520:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (*is_).read(reinterpret_cast<char *>(&eMass), sizeDoubleMSn); data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumList_MSn.cpp:521:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (*is_).read(reinterpret_cast<char *>(&pRTime), sizeFloatMSn); data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumList_MSn.cpp:522:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (*is_).read(reinterpret_cast<char *>(&pArea), sizeFloatMSn); data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumList_MSn.cpp:546:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (*is_).read(reinterpret_cast<char *>(&iTemp), sizeIntMSn); data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumList_MSn.cpp:550:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (*is_).read(reinterpret_cast<char *>(&iTemp), sizeIntMSn); data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumList_MSn.cpp:560:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (*is_).read(reinterpret_cast<char *>(compressedData), mzLen); data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumList_MSn.cpp:572:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (*is_).read(reinterpret_cast<char *>(compressedData), intensityLen); data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumList_MSn.cpp:602:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (*is_).read(reinterpret_cast<char *>(&mz), sizeDoubleMSn); data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumList_MSn.cpp:603:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (*is_).read(reinterpret_cast<char *>(&intensity), sizeFloatMSn); data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumList_MSn.cpp:682:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (*is_).read(reinterpret_cast<char *>(&intFileType), sizeIntMSn); data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumList_MSn.cpp:683:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (*is_).read(reinterpret_cast<char *>(&version_), sizeIntMSn); data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumList_MSn.cpp:684:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (*is_).read(reinterpret_cast<char *>(&header), sizeof(MSnHeader)); data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumList_MSn.cpp:725:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (*is_).read(reinterpret_cast<char *>(&iTemp), sizeIntMSn); data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumList_MSn.cpp:727:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (*is_).read(reinterpret_cast<char *>(&iTemp), sizeIntMSn); data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumList_mzML.cpp:159:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). IO::read(*is_, *result, binaryDataFlag, schemaVersion_, &index_->legacyIdRefToNativeId(), &msd_, &id); data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumList_mzML.cpp:174:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). IO::read(*is_, *result, binaryDataFlag, schemaVersion_, &index_->legacyIdRefToNativeId(), &msd_, &id); data/libpwizlite-3.0.3/src/pwiz/data/msdata/SpectrumList_mzXML.cpp:809:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). is_->read(&buffer[0], bufferSize); data/libpwizlite-3.0.3/src/pwiz/utility/minimxml/SAXParser.cpp:339:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t end=strlen(str); data/libpwizlite-3.0.3/src/pwiz/utility/minimxml/SAXParser.cpp:393:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(entitystr, entitybegin, entitylen); data/libpwizlite-3.0.3/src/pwiz/utility/minimxml/SAXParser.cpp:606:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). is.read(buf, 512); data/libpwizlite-3.0.3/src/pwiz/utility/minimxml/SAXParser.hpp:89:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). resize(strlen(c_str())); data/libpwizlite-3.0.3/src/pwiz/utility/minimxml/SAXParser.hpp:106:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). init(rhs ? strlen(rhs) : 0); data/libpwizlite-3.0.3/src/pwiz/utility/minimxml/SAXParser.hpp:123:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t rhslen = rhs?strlen(rhs):0; data/libpwizlite-3.0.3/src/pwiz/utility/minimxml/SAXParser.hpp:190:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return !strncmp(c_str(),txt,strlen(txt)); data/libpwizlite-3.0.3/src/pwiz/utility/minimxml/SAXParser.hpp:193:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(txt); data/libpwizlite-3.0.3/src/pwiz/utility/minimxml/XMLWriter.hpp:178:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). std::streamsize read(Source& src, char_type* s, std::streamsize n) data/libpwizlite-3.0.3/src/pwiz/utility/minimxml/XMLWriter.hpp:180:46: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). std::streamsize result = boost::iostreams::read(src, s, n); data/libpwizlite-3.0.3/src/pwiz/utility/misc/Filesystem.cpp:719:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (!is.read(&head[0], (std::streamsize)head.size()) && !is.eof()) data/libpwizlite-3.0.3/src/pwiz/utility/misc/SHA1.cpp:205:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). fpIn.read(vData, uMaxRead); data/libpwizlite-3.0.3/src/pwiz/utility/misc/SHA1.h:133:9: [1] (buffer) _tcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #define _tcslen strlen data/libpwizlite-3.0.3/src/pwiz/utility/misc/SHA1.h:133:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #define _tcslen strlen data/libpwizlite-3.0.3/src/pwiz/utility/misc/SHA1Calculator.cpp:143:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (is && is.read(reinterpret_cast<char*>(buffer), 65535)) data/libpwizlite-3.0.3/src/pwiz/utility/misc/cpp_cli_utilities.hpp:245:27: [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. if (boost::range::equal(*(tokens.rbegin() + 1), *tokens.rbegin())) data/libpwizlite-3.0.3/src/pwiz/utility/misc/random_access_compressed_ifstream.cpp:294:47: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). std::streamsize nread = this->handle->read((char *)this->filereadbuf(inbuf), readlen); data/libpwizlite-3.0.3/src/pwiz/utility/misc/random_access_compressed_ifstream.cpp:532:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). this->infile->read((char *)this->inbuf, Z_BUFSIZE); data/libpwizlite-3.0.3/src/pwiz/utility/misc/random_access_compressed_ifstream.cpp:573:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). this->infile->read((char *)(this->inbuf + len), Z_BUFSIZE >> len); data/libpwizlite-3.0.3/src/pwiz/utility/misc/random_access_compressed_ifstream.cpp:731:35: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). this->infile->read((char *)this->inbuf, CHUNK); data/libpwizlite-3.0.3/src/pwiz/utility/misc/random_access_compressed_ifstream.cpp:785:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). this->infile->read((char *)this->inbuf, Z_BUFSIZE); data/libpwizlite-3.0.3/src/pwiz/utility/misc/random_access_compressed_ifstream.cpp:969:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). this->infile->read((char *)input, CHUNK); ANALYSIS SUMMARY: Hits = 374 Lines analyzed = 82479 in approximately 2.78 seconds (29709 lines/second) Physical Source Lines of Code (SLOC) = 56898 Hits@level = [0] 15 [1] 239 [2] 81 [3] 12 [4] 40 [5] 2 Hits@level+ = [0+] 389 [1+] 374 [2+] 135 [3+] 54 [4+] 42 [5+] 2 Hits/KSLOC@level+ = [0+] 6.8368 [1+] 6.57317 [2+] 2.37267 [3+] 0.949067 [4+] 0.738163 [5+] 0.0351506 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.