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/mp3diags-1.5.01/src/AboutDlgImpl.cpp
Examining data/mp3diags-1.5.01/src/AboutDlgImpl.h
Examining data/mp3diags-1.5.01/src/AlbumInfoDownloaderDlgImpl.cpp
Examining data/mp3diags-1.5.01/src/AlbumInfoDownloaderDlgImpl.h
Examining data/mp3diags-1.5.01/src/ApeStream.cpp
Examining data/mp3diags-1.5.01/src/ApeStream.h
Examining data/mp3diags-1.5.01/src/CbException.cpp
Examining data/mp3diags-1.5.01/src/CbException.h
Examining data/mp3diags-1.5.01/src/CheckedDir.cpp
Examining data/mp3diags-1.5.01/src/CheckedDir.h
Examining data/mp3diags-1.5.01/src/ColumnResizer.cpp
Examining data/mp3diags-1.5.01/src/ColumnResizer.h
Examining data/mp3diags-1.5.01/src/CommonData.cpp
Examining data/mp3diags-1.5.01/src/CommonData.h
Examining data/mp3diags-1.5.01/src/CommonTypes.cpp
Examining data/mp3diags-1.5.01/src/CommonTypes.h
Examining data/mp3diags-1.5.01/src/ConfigDlgImpl.cpp
Examining data/mp3diags-1.5.01/src/ConfigDlgImpl.h
Examining data/mp3diags-1.5.01/src/DataStream.cpp
Examining data/mp3diags-1.5.01/src/DataStream.h
Examining data/mp3diags-1.5.01/src/DebugDlgImpl.cpp
Examining data/mp3diags-1.5.01/src/DebugDlgImpl.h
Examining data/mp3diags-1.5.01/src/DirFilterDlgImpl.cpp
Examining data/mp3diags-1.5.01/src/DirFilterDlgImpl.h
Examining data/mp3diags-1.5.01/src/DiscogsDownloader.cpp
Examining data/mp3diags-1.5.01/src/DiscogsDownloader.h
Examining data/mp3diags-1.5.01/src/DoubleList.cpp
Examining data/mp3diags-1.5.01/src/DoubleList.h
Examining data/mp3diags-1.5.01/src/ExportDlgImpl.cpp
Examining data/mp3diags-1.5.01/src/ExportDlgImpl.h
Examining data/mp3diags-1.5.01/src/ExternalToolDlgImpl.cpp
Examining data/mp3diags-1.5.01/src/ExternalToolDlgImpl.h
Examining data/mp3diags-1.5.01/src/FileEnum.cpp
Examining data/mp3diags-1.5.01/src/FileEnum.h
Examining data/mp3diags-1.5.01/src/FileRenamerDlgImpl.cpp
Examining data/mp3diags-1.5.01/src/FileRenamerDlgImpl.h
Examining data/mp3diags-1.5.01/src/FilesModel.cpp
Examining data/mp3diags-1.5.01/src/FilesModel.h
Examining data/mp3diags-1.5.01/src/FullSizeImgDlg.cpp
Examining data/mp3diags-1.5.01/src/FullSizeImgDlg.h
Examining data/mp3diags-1.5.01/src/Helpers.cpp
Examining data/mp3diags-1.5.01/src/Helpers.h
Examining data/mp3diags-1.5.01/src/Id3Transf.cpp
Examining data/mp3diags-1.5.01/src/Id3Transf.h
Examining data/mp3diags-1.5.01/src/Id3V230Stream.cpp
Examining data/mp3diags-1.5.01/src/Id3V230Stream.h
Examining data/mp3diags-1.5.01/src/Id3V240Stream.cpp
Examining data/mp3diags-1.5.01/src/Id3V240Stream.h
Examining data/mp3diags-1.5.01/src/Id3V2Stream.cpp
Examining data/mp3diags-1.5.01/src/Id3V2Stream.h
Examining data/mp3diags-1.5.01/src/ImageInfoPanelWdgImpl.cpp
Examining data/mp3diags-1.5.01/src/ImageInfoPanelWdgImpl.h
Examining data/mp3diags-1.5.01/src/LogModel.cpp
Examining data/mp3diags-1.5.01/src/LogModel.h
Examining data/mp3diags-1.5.01/src/LyricsStream.cpp
Examining data/mp3diags-1.5.01/src/LyricsStream.h
Examining data/mp3diags-1.5.01/src/MainFormDlgImpl.cpp
Examining data/mp3diags-1.5.01/src/MainFormDlgImpl.h
Examining data/mp3diags-1.5.01/src/Mp3Manip.cpp
Examining data/mp3diags-1.5.01/src/Mp3Manip.h
Examining data/mp3diags-1.5.01/src/Mp3TransformThread.h
Examining data/mp3diags-1.5.01/src/MpegFrame.cpp
Examining data/mp3diags-1.5.01/src/MpegFrame.h
Examining data/mp3diags-1.5.01/src/MpegStream.cpp
Examining data/mp3diags-1.5.01/src/MpegStream.h
Examining data/mp3diags-1.5.01/src/MultiLineTvDelegate.cpp
Examining data/mp3diags-1.5.01/src/MultiLineTvDelegate.h
Examining data/mp3diags-1.5.01/src/MusicBrainzDownloader.cpp
Examining data/mp3diags-1.5.01/src/MusicBrainzDownloader.h
Examining data/mp3diags-1.5.01/src/NoteFilterDlgImpl.cpp
Examining data/mp3diags-1.5.01/src/NoteFilterDlgImpl.h
Examining data/mp3diags-1.5.01/src/Notes.cpp
Examining data/mp3diags-1.5.01/src/Notes.h
Examining data/mp3diags-1.5.01/src/NotesModel.cpp
Examining data/mp3diags-1.5.01/src/NotesModel.h
Examining data/mp3diags-1.5.01/src/OsFile.cpp
Examining data/mp3diags-1.5.01/src/OsFile.h
Examining data/mp3diags-1.5.01/src/PaletteDlgImpl.cpp
Examining data/mp3diags-1.5.01/src/PaletteDlgImpl.h
Examining data/mp3diags-1.5.01/src/RenamerPatternsDlgImpl.cpp
Examining data/mp3diags-1.5.01/src/RenamerPatternsDlgImpl.h
Examining data/mp3diags-1.5.01/src/ScanDlgImpl.cpp
Examining data/mp3diags-1.5.01/src/ScanDlgImpl.h
Examining data/mp3diags-1.5.01/src/SerSupport.cpp
Examining data/mp3diags-1.5.01/src/SerSupport.h
Examining data/mp3diags-1.5.01/src/SessionEditorDlgImpl.cpp
Examining data/mp3diags-1.5.01/src/SessionEditorDlgImpl.h
Examining data/mp3diags-1.5.01/src/SessionsDlgImpl.cpp
Examining data/mp3diags-1.5.01/src/SessionsDlgImpl.h
Examining data/mp3diags-1.5.01/src/SimpleSaxHandler.h
Examining data/mp3diags-1.5.01/src/SongInfoParser.cpp
Examining data/mp3diags-1.5.01/src/SongInfoParser.h
Examining data/mp3diags-1.5.01/src/StoredSettings.cpp
Examining data/mp3diags-1.5.01/src/StoredSettings.h
Examining data/mp3diags-1.5.01/src/StreamsModel.cpp
Examining data/mp3diags-1.5.01/src/StreamsModel.h
Examining data/mp3diags-1.5.01/src/StructuralTransformation.cpp
Examining data/mp3diags-1.5.01/src/StructuralTransformation.h
Examining data/mp3diags-1.5.01/src/TagEditorDlgImpl.cpp
Examining data/mp3diags-1.5.01/src/TagEditorDlgImpl.h
Examining data/mp3diags-1.5.01/src/TagEdtPatternsDlgImpl.cpp
Examining data/mp3diags-1.5.01/src/TagEdtPatternsDlgImpl.h
Examining data/mp3diags-1.5.01/src/TagReadPanel.cpp
Examining data/mp3diags-1.5.01/src/TagReadPanel.h
Examining data/mp3diags-1.5.01/src/TagWriter.cpp
Examining data/mp3diags-1.5.01/src/TagWriter.h
Examining data/mp3diags-1.5.01/src/ThreadRunnerDlgImpl.cpp
Examining data/mp3diags-1.5.01/src/ThreadRunnerDlgImpl.h
Examining data/mp3diags-1.5.01/src/Transformation.cpp
Examining data/mp3diags-1.5.01/src/Transformation.h
Examining data/mp3diags-1.5.01/src/Translation.cpp
Examining data/mp3diags-1.5.01/src/Translation.h
Examining data/mp3diags-1.5.01/src/UniqueNotesModel.cpp
Examining data/mp3diags-1.5.01/src/UniqueNotesModel.h
Examining data/mp3diags-1.5.01/src/Version.cpp
Examining data/mp3diags-1.5.01/src/Version.h
Examining data/mp3diags-1.5.01/src/Widgets.cpp
Examining data/mp3diags-1.5.01/src/Widgets.h
Examining data/mp3diags-1.5.01/src/fstream_unicode.cpp
Examining data/mp3diags-1.5.01/src/fstream_unicode.h
Examining data/mp3diags-1.5.01/src/main.cpp
Examining data/mp3diags-1.5.01/src/translations/autoTransl/MixedCase.cpp
Examining data/mp3diags-1.5.01/src/Mp3TransformThread.cpp

FINAL RESULTS:

data/mp3diags-1.5.01/src/Helpers.cpp:777:24:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
                int k (readlink((strCmdLineName + "/exe").c_str(), szBfr, sizeof(szBfr)));
data/mp3diags-1.5.01/src/Helpers.cpp:1346:20:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
            int k (readlink("/proc/self/exe", szBfr, sizeof(szBfr)));
data/mp3diags-1.5.01/src/AlbumInfoDownloaderDlgImpl.cpp:693:5:  [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(a, ctime(&t)); //ttt2 try to get rid of ctime
data/mp3diags-1.5.01/src/ApeStream.h:59:40:  [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.
    friend class boost::serialization::access;
data/mp3diags-1.5.01/src/ApeStream.h:133:40:  [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.
    friend class boost::serialization::access;
data/mp3diags-1.5.01/src/CbException.cpp:12:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(&a[0], "%s [%s/%d]", strMsg.c_str(), szFile, nLine);
data/mp3diags-1.5.01/src/CbException.cpp:18:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(&a[0], "%s [%s/%d] / Caused by: %s", cause.m_strMsg.c_str(), szFile, nLine, cause.what());
data/mp3diags-1.5.01/src/CommonData.h:190:40:  [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.
    friend class boost::serialization::access;
data/mp3diags-1.5.01/src/CommonData.h:571:40:  [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.
    friend class boost::serialization::access;
data/mp3diags-1.5.01/src/CommonTypes.cpp:189:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    s.sprintf("%dx%d", getWidth(), getHeight());
data/mp3diags-1.5.01/src/DataStream.cpp:308:5:  [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(m_szVal, s.c_str());
data/mp3diags-1.5.01/src/DataStream.cpp:311:9:  [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(m_szYear, s.substr(0, 4).c_str());
data/mp3diags-1.5.01/src/DataStream.cpp:314: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(m_szDayMonth, ((n > 7 ? s.substr(8, 2) : "01") + s.substr(5, 2)).c_str());
data/mp3diags-1.5.01/src/DataStream.h:103:40:  [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.
    friend class boost::serialization::access;
data/mp3diags-1.5.01/src/DataStream.h:132:40:  [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.
    friend class boost::serialization::access;
data/mp3diags-1.5.01/src/DataStream.h:165:40:  [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.
    friend class boost::serialization::access;
data/mp3diags-1.5.01/src/DataStream.h:187:40:  [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.
    friend class boost::serialization::access;
data/mp3diags-1.5.01/src/DataStream.h:214:40:  [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.
    friend class boost::serialization::access;
data/mp3diags-1.5.01/src/DataStream.h:246:40:  [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.
    friend class boost::serialization::access;
data/mp3diags-1.5.01/src/DataStream.h:287:40:  [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.
    friend class boost::serialization::access;
data/mp3diags-1.5.01/src/DataStream.h:321:40:  [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.
    friend class boost::serialization::access;
data/mp3diags-1.5.01/src/DataStream.h:353:40:  [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.
    friend class boost::serialization::access;
data/mp3diags-1.5.01/src/DebugDlgImpl.cpp:617:40:  [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.
    friend class boost::serialization::access;
data/mp3diags-1.5.01/src/DebugDlgImpl.cpp:639:40:  [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.
    friend class boost::serialization::access;
data/mp3diags-1.5.01/src/DebugDlgImpl.cpp:694:40:  [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.
    friend class boost::serialization::access;
data/mp3diags-1.5.01/src/DebugDlgImpl.cpp:896:40:  [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.
    friend class boost::serialization::access;
data/mp3diags-1.5.01/src/DiscogsDownloader.cpp:357:33:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                                sprintf(a, szFmt, i);
data/mp3diags-1.5.01/src/FullSizeImgDlg.cpp:48:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    s.sprintf("%dx%d / %dkB\n", imageInfo.getWidth(), imageInfo.getHeight(), imageInfo.getSize()/1024);
data/mp3diags-1.5.01/src/Id3V230Stream.cpp:175:5:  [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(m_szName, strName.c_str());
data/mp3diags-1.5.01/src/Id3V230Stream.h:46:40:  [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.
    friend class boost::serialization::access;
data/mp3diags-1.5.01/src/Id3V230Stream.h:76:40:  [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.
    friend class boost::serialization::access;
data/mp3diags-1.5.01/src/Id3V240Stream.h:49:40:  [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.
    friend class boost::serialization::access;
data/mp3diags-1.5.01/src/Id3V240Stream.h:79:40:  [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.
    friend class boost::serialization::access;
data/mp3diags-1.5.01/src/Id3V2Stream.h:111:40:  [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.
    friend class boost::serialization::access;
data/mp3diags-1.5.01/src/Id3V2Stream.h:275:40:  [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.
    friend class boost::serialization::access;
data/mp3diags-1.5.01/src/LyricsStream.h:68:40:  [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.
    friend class boost::serialization::access;
data/mp3diags-1.5.01/src/MainFormDlgImpl.cpp:3502:15:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            s.sprintf("step %d", i);
data/mp3diags-1.5.01/src/Mp3Manip.h:162:40:  [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.
    friend class boost::serialization::access;
data/mp3diags-1.5.01/src/MpegFrame.h:106:40:  [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.
    friend class boost::serialization::access;
data/mp3diags-1.5.01/src/MpegStream.h:59:40:  [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.
    friend class boost::serialization::access;
data/mp3diags-1.5.01/src/MpegStream.h:127:40:  [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.
    friend class boost::serialization::access;
data/mp3diags-1.5.01/src/MpegStream.h:183:40:  [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.
    friend class boost::serialization::access;
data/mp3diags-1.5.01/src/MpegStream.h:206:40:  [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.
    friend class boost::serialization::access;
data/mp3diags-1.5.01/src/MpegStream.h:231:40:  [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.
    friend class boost::serialization::access;
data/mp3diags-1.5.01/src/MpegStream.h:257:40:  [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.
    friend class boost::serialization::access;
data/mp3diags-1.5.01/src/MpegStream.h:318:40:  [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.
    friend class boost::serialization::access;
data/mp3diags-1.5.01/src/Notes.h:99:44:  [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.
        friend class boost::serialization::access;
data/mp3diags-1.5.01/src/Notes.h:141:40:  [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.
    friend class boost::serialization::access;
data/mp3diags-1.5.01/src/Notes.h:415:40:  [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.
    friend class boost::serialization::access;
data/mp3diags-1.5.01/src/Notes.h:526:40:  [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.
    friend class boost::serialization::access;
data/mp3diags-1.5.01/src/SerSupport.cpp:202:40:  [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.
    friend class boost::serialization::access;
data/mp3diags-1.5.01/src/TagEditorDlgImpl.cpp:1531:9:  [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(q, szEncoding);
data/mp3diags-1.5.01/src/TagReadPanel.cpp:176:46:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                    pItem->setText(QString().sprintf("%1.1f", d));
data/mp3diags-1.5.01/src/TagWriter.cpp:524:25:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                        sprintf(a, g_szImageFmt, k + 1);
data/mp3diags-1.5.01/src/TagWriter.cpp:681:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(a, g_szImageFmt, j + 1);
data/mp3diags-1.5.01/src/TagWriter.cpp:1607:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(a, g_szImageFmt, nPos + 1);
data/mp3diags-1.5.01/src/ThreadRunnerDlgImpl.cpp:250:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    q.sprintf("%d:%02d:%02d", h, m, n);
data/mp3diags-1.5.01/src/ColumnResizer.cpp:715:13:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
            srand(11); //ttt2 not such a good idea, as it interferes with other uses of rand(); OTOH, it's better to use it, because then we always get the same results for the same data, even if the selection process is random; seems better to use a separate generator;
data/mp3diags-1.5.01/src/fstream_unicode.h:270:17:  [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/mp3diags-1.5.01/src/fstream_unicode.h:287:17:  [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/mp3diags-1.5.01/src/fstream_unicode.h:403:17:  [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/mp3diags-1.5.01/src/fstream_unicode.h:420: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_base::failbit);
data/mp3diags-1.5.01/src/fstream_unicode.h:535:17:  [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/mp3diags-1.5.01/src/fstream_unicode.h:552:17:  [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/mp3diags-1.5.01/src/fstream_unicode.h:617:17:  [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.
                setstate(ios_base::failbit);
data/mp3diags-1.5.01/src/fstream_unicode.h:646:17:  [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.
                setstate(ios_base::failbit);
data/mp3diags-1.5.01/src/fstream_unicode.h:675:17:  [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.
                setstate(ios_base::failbit);
data/mp3diags-1.5.01/src/AboutDlgImpl.cpp:101: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).
    f.open(QIODevice::ReadOnly);
data/mp3diags-1.5.01/src/AlbumInfoDownloaderDlgImpl.cpp:109:21:  [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 a [10];
data/mp3diags-1.5.01/src/AlbumInfoDownloaderDlgImpl.cpp:112:25:  [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(a, "%02d", i + 1);
data/mp3diags-1.5.01/src/AlbumInfoDownloaderDlgImpl.cpp:689: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 a [50];
data/mp3diags-1.5.01/src/AlbumInfoDownloaderDlgImpl.cpp:703:5:  [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(a, ".%03d", m_nLastCount);
data/mp3diags-1.5.01/src/AlbumInfoDownloaderDlgImpl.cpp:823: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 a [15];
data/mp3diags-1.5.01/src/AlbumInfoDownloaderDlgImpl.cpp:824: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(a, "%02d:%02d:%02d.%03d ", t.hour(), t.minute(), t.second(), t.msec());
data/mp3diags-1.5.01/src/AlbumInfoDownloaderDlgImpl.cpp:939: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 c (s[i]);
data/mp3diags-1.5.01/src/ApeStream.cpp:102: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 bfr [BFR_SIZE];
data/mp3diags-1.5.01/src/ApeStream.cpp:181: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 bfr [32];
data/mp3diags-1.5.01/src/ApeStream.cpp:199: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 bfr2 [32];
data/mp3diags-1.5.01/src/CheckedDir.cpp:112: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 szLabel [MAX_PATH + 1];
data/mp3diags-1.5.01/src/CheckedDir.cpp:113: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 szFsType [MAX_PATH + 1];
data/mp3diags-1.5.01/src/CommonData.cpp:253: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 a [20];
data/mp3diags-1.5.01/src/CommonData.cpp:254:13:  [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(a, "%d %d %d", c.red(), c.green(), c.blue());
data/mp3diags-1.5.01/src/CommonData.cpp:265: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 a [20];
data/mp3diags-1.5.01/src/CommonData.cpp:266:13:  [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(a, "%d %d %d", c.red(), c.green(), c.blue());
data/mp3diags-1.5.01/src/CommonData.cpp:1606: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 a [20];
data/mp3diags-1.5.01/src/CommonData.cpp:1607: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(a, "point size %d", i);
data/mp3diags-1.5.01/src/CommonData.cpp:1618: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 a [20];
data/mp3diags-1.5.01/src/CommonData.cpp:1619: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(a, "pixel size %d", i);
data/mp3diags-1.5.01/src/CommonData.cpp:1643: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 a [50];
data/mp3diags-1.5.01/src/CommonData.cpp:1644: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(a, "B&H LucidaTypewriter12c point size %d", i);
data/mp3diags-1.5.01/src/CommonTypes.cpp:452:37:  [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).
    m_eLaunchOption = (LaunchOption)atoi(s.c_str());
data/mp3diags-1.5.01/src/CommonTypes.cpp:455:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    m_bConfirmLaunch = (bool)atoi(s.c_str());
data/mp3diags-1.5.01/src/ConfigDlgImpl.cpp:390:38:  [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 c (v[i][j]);
data/mp3diags-1.5.01/src/DataStream.cpp:159: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 bfr [BFR_SIZE];
data/mp3diags-1.5.01/src/DataStream.cpp:188: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 bfr [BFR_SIZE];
data/mp3diags-1.5.01/src/DataStream.cpp:295: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 c (szPatt[i]);
data/mp3diags-1.5.01/src/DataStream.cpp:373: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 a [10];
data/mp3diags-1.5.01/src/DataStream.cpp:374:17:  [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(a, "%0.1f", r);
data/mp3diags-1.5.01/src/DataStream.h:152: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 m_begin [BEGIN_SIZE];
data/mp3diags-1.5.01/src/DataStream.h:447: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 m_szVal [20];
data/mp3diags-1.5.01/src/DataStream.h:448: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 m_szYear [5]; // either a 4-digit string or empty
data/mp3diags-1.5.01/src/DataStream.h:449: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 m_szDayMonth [5]; // either a 4-digit string or empty; if m_strYear is empty, m_strDayMonth is empty too
data/mp3diags-1.5.01/src/DebugDlgImpl.cpp:265: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 a [100];
data/mp3diags-1.5.01/src/DebugDlgImpl.cpp:268:13:  [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(a, "%d                 //Mp3Handler* pMp3Handler (new Mp3Handler(fs.getName())); Mp3Handler", i);
data/mp3diags-1.5.01/src/DiscogsDownloader.cpp:253: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 c (s[i]);
data/mp3diags-1.5.01/src/DiscogsDownloader.cpp:351:37:  [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).
                            int n1 (atoi(s1.c_str()));
data/mp3diags-1.5.01/src/DiscogsDownloader.cpp:352:37:  [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).
                            int n2 (atoi(s2.c_str()));
data/mp3diags-1.5.01/src/DiscogsDownloader.cpp:353:29:  [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 a [10];
data/mp3diags-1.5.01/src/DiscogsDownloader.cpp:639: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 a [20];
data/mp3diags-1.5.01/src/DiscogsDownloader.cpp:640:5:  [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(a, "&page=%d", m_nLastLoadedPage + 1);
data/mp3diags-1.5.01/src/FileRenamerDlgImpl.cpp:996:16:  [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).
        int n (atoi(s.c_str()));
data/mp3diags-1.5.01/src/FileRenamerDlgImpl.cpp:998: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 a [20];
data/mp3diags-1.5.01/src/FileRenamerDlgImpl.cpp:999: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(a, "%02d", n);
data/mp3diags-1.5.01/src/Helpers.cpp:105: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 c (p[i]);
data/mp3diags-1.5.01/src/Helpers.cpp:117:18:  [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 c (p[i]);
data/mp3diags-1.5.01/src/Helpers.cpp:152:18:  [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 c (strSrc[i]);
data/mp3diags-1.5.01/src/Helpers.cpp:161:18:  [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 c (strSrc[i]);
data/mp3diags-1.5.01/src/Helpers.cpp:185:18:  [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 c (s[i]);
data/mp3diags-1.5.01/src/Helpers.cpp:205:18:  [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 c (s[i]);
data/mp3diags-1.5.01/src/Helpers.cpp:276: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 c (p[i]);
data/mp3diags-1.5.01/src/Helpers.cpp:283:18:  [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 c (p[i]);
data/mp3diags-1.5.01/src/Helpers.cpp:299: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 a [30];
data/mp3diags-1.5.01/src/Helpers.cpp:300:5:  [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 (a, "/proc/%d/status", n); // ttt2 linux-specific; not sure how version-specific this is;
data/mp3diags-1.5.01/src/Helpers.cpp:308:20:  [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(s.c_str() + 7);
data/mp3diags-1.5.01/src/Helpers.cpp:332: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 a [500];
data/mp3diags-1.5.01/src/Helpers.cpp:616: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 bfr [4];
data/mp3diags-1.5.01/src/Helpers.cpp:774: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 szBfr[5000] = "mP3DiAgS";
data/mp3diags-1.5.01/src/Helpers.cpp:994:19:  [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 (f.open(QIODevice::ReadOnly))
data/mp3diags-1.5.01/src/Helpers.cpp:1004:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (f.open(QIODevice::ReadOnly))
data/mp3diags-1.5.01/src/Helpers.cpp:1161: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 wszModule [200];
data/mp3diags-1.5.01/src/Helpers.cpp:1314: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 c (s[i]);
data/mp3diags-1.5.01/src/Helpers.cpp:1344: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 szBfr [5000] = "mP3DiAgS";
data/mp3diags-1.5.01/src/Helpers.cpp:1826: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 a [25];
data/mp3diags-1.5.01/src/Helpers.cpp:1829:5:  [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(a, "%ld", nTime);//ttt00 warning in Ubuntu 9.04 due to type mismatch
data/mp3diags-1.5.01/src/Helpers.cpp:1846: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 a[40];
data/mp3diags-1.5.01/src/Helpers.cpp:1847:5:  [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(a, "%d:%02d:%02d.%03d", hrs, min, sec, msec);
data/mp3diags-1.5.01/src/Id3V230Stream.cpp:53: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 bfr [ID3_FRAME_HDR_SIZE];
data/mp3diags-1.5.01/src/Id3V230Stream.cpp:74: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 c (m_szName[0]);
data/mp3diags-1.5.01/src/Id3V230Stream.cpp:78: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 c (m_szName[i]);
data/mp3diags-1.5.01/src/Id3V230Stream.cpp:222:22:  [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 c (pData[i]);
data/mp3diags-1.5.01/src/Id3V230Stream.cpp:274: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 bfr [ID3_HDR_SIZE];
data/mp3diags-1.5.01/src/Id3V230Stream.cpp:567:18:  [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 c (strVal[i]);
data/mp3diags-1.5.01/src/Id3V230Stream.cpp:759: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 bfr [Id3V230Stream::ID3_HDR_SIZE] = "ID3\3\0\0"; // no unsynch, no extended header, no experimental
data/mp3diags-1.5.01/src/Id3V240Stream.cpp:50: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 bfr [ID3_FRAME_HDR_SIZE];
data/mp3diags-1.5.01/src/Id3V240Stream.cpp:66: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 c (bfr[i]);
data/mp3diags-1.5.01/src/Id3V240Stream.cpp:176: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 bfr [ID3_FRAME_HDR_SIZE];
data/mp3diags-1.5.01/src/Id3V240Stream.cpp:195: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 c (m_szName[0]);
data/mp3diags-1.5.01/src/Id3V240Stream.cpp:199: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 c (m_szName[i]);
data/mp3diags-1.5.01/src/Id3V240Stream.cpp:363:22:  [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 c (pData[i]);
data/mp3diags-1.5.01/src/Id3V240Stream.cpp:447: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 bfr [ID3_HDR_SIZE];
data/mp3diags-1.5.01/src/Id3V2Stream.cpp:112: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 bfr [BFR_SIZE];
data/mp3diags-1.5.01/src/Id3V2Stream.cpp:193: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 a [32];
data/mp3diags-1.5.01/src/Id3V2Stream.cpp:194:5:  [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(a, "0x%02x 0x%02x 0x%02x 0x%02x",
data/mp3diags-1.5.01/src/Id3V2Stream.cpp:441: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 c (pData[k]);
data/mp3diags-1.5.01/src/Id3V2Stream.cpp:496:26:  [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 c (s[i]);
data/mp3diags-1.5.01/src/Id3V2Stream.cpp:531:22:  [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 c (s[i]);
data/mp3diags-1.5.01/src/Id3V2Stream.cpp:790:33:  [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).
        strRes += getId3V1Genre(atoi(q + 1));
data/mp3diags-1.5.01/src/Id3V2Stream.h: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 m_szName[5];
data/mp3diags-1.5.01/src/LyricsStream.cpp:83: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 c (vcBfr[6]);
data/mp3diags-1.5.01/src/LyricsStream.cpp:285:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (f.open(QIODevice::ReadOnly))
data/mp3diags-1.5.01/src/MainFormDlgImpl.cpp:118: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).
        bool open(const string& strFileName) // doesn't truncate the file
data/mp3diags-1.5.01/src/MainFormDlgImpl.cpp:172: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).
        bool open(const string& strFileName)
data/mp3diags-1.5.01/src/MainFormDlgImpl.cpp:263: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 a [15];
data/mp3diags-1.5.01/src/MainFormDlgImpl.cpp:264: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(a, "%02d:%02d:%02d.%03d", t.hour(), t.minute(), t.second(), t.msec());
data/mp3diags-1.5.01/src/MainFormDlgImpl.cpp:288: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 a [15];
data/mp3diags-1.5.01/src/MainFormDlgImpl.cpp:323: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).
            m_stepFile.open(m_vstrStepFile[m_nStepFile]);
data/mp3diags-1.5.01/src/MainFormDlgImpl.cpp:387: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).
        m_stepFile.open(m_vstrStepFile[0]);
data/mp3diags-1.5.01/src/MainFormDlgImpl.cpp:388:21:  [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).
        m_traceFile.open(m_strTraceFile);
data/mp3diags-1.5.01/src/MainFormDlgImpl.cpp:1852: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 bfr [50];
data/mp3diags-1.5.01/src/MainFormDlgImpl.cpp:1853:5:  [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(bfr, "customTransf/set%04d", k);
data/mp3diags-1.5.01/src/MainFormDlgImpl.cpp:1862: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 bfr [50];
data/mp3diags-1.5.01/src/MainFormDlgImpl.cpp:1863:5:  [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(bfr, "customTransf/set%04d", k);
data/mp3diags-1.5.01/src/Mp3Manip.cpp:213: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 a [READ_SIZE];
data/mp3diags-1.5.01/src/Mp3Manip.cpp:234: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).
        in.open(m_pFileName->s.c_str(), ios::binary);
data/mp3diags-1.5.01/src/Mp3Manip.cpp:1057: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 bfr [BFR_SIZE];
data/mp3diags-1.5.01/src/Mp3TransformThread.cpp:165: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 a [20];
data/mp3diags-1.5.01/src/Mp3TransformThread.cpp:169:13:  [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(a, ".QQREN%03dREN", i);
data/mp3diags-1.5.01/src/MpegFrame.cpp:46: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 bfr [BFR_SIZE];
data/mp3diags-1.5.01/src/MpegFrame.cpp:76:5:  [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_header, bfr, 4);
data/mp3diags-1.5.01/src/MpegFrame.cpp:253: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 bfr [1];
data/mp3diags-1.5.01/src/MpegFrame.h:54: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 m_header[4];
data/mp3diags-1.5.01/src/MpegStream.cpp:173: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 bfr [4];
data/mp3diags-1.5.01/src/MpegStream.cpp:241: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 a [15];
data/mp3diags-1.5.01/src/MpegStream.cpp:242:5:  [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(a, "%d:%02d", nMin, nSec);
data/mp3diags-1.5.01/src/MpegStream.cpp:307: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 bfr [4];
data/mp3diags-1.5.01/src/MpegStream.cpp:330: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 bfr [4];
data/mp3diags-1.5.01/src/MpegStream.cpp:747: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 bfr [4];
data/mp3diags-1.5.01/src/MpegStream.cpp:793: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 bfr [4];
data/mp3diags-1.5.01/src/MpegStream.cpp:813: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 aNewHeader [BFR_SIZE];
data/mp3diags-1.5.01/src/MpegStream.cpp:843: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 bfr [BFR_SIZE];
data/mp3diags-1.5.01/src/MpegStream.cpp:991: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 bfr [200]; // MSVC wants size to be a compile-time constant, so just use something bigger
data/mp3diags-1.5.01/src/MpegStream.cpp:1027: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 bfr [BFR_SIZE];
data/mp3diags-1.5.01/src/MpegStream.cpp:1083:18:  [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 c ((unsigned char)m_data[127]);
data/mp3diags-1.5.01/src/MpegStream.cpp:1213:18:  [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 c ((unsigned char)(m_data[nAddr + nSize]));
data/mp3diags-1.5.01/src/MpegStream.cpp:1241: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 a [10];
data/mp3diags-1.5.01/src/MpegStream.cpp:1242:5:  [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(a, "%02d", (int)(unsigned char)(m_data[126]));
data/mp3diags-1.5.01/src/MpegStream.h:156: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 m_toc [100];
data/mp3diags-1.5.01/src/MpegStream.h:274: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 m_data [128];
data/mp3diags-1.5.01/src/MusicBrainzDownloader.cpp:155: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 a [10];
data/mp3diags-1.5.01/src/MusicBrainzDownloader.cpp:156: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(a, "%d", cSize(m_albumInfo.m_vTracks));
data/mp3diags-1.5.01/src/OsFile.cpp:232:5:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    MultiByteToWideChar(CP_UTF8, 0, s.c_str(), -1, &w[0], w.size());
data/mp3diags-1.5.01/src/OsFile.cpp:491: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 (tmp.open()
data/mp3diags-1.5.01/src/OsFile.cpp:503:25:  [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).
        CB_ASSERT (tmp1.open()); //ttt2 if it gets to this on W7 (and perhaps others) the file attributes are wrong, probably allowing only the current user to see it; ttt2 perhaps only use the dir, instead of the full file name in such case; //ttt2 doc
data/mp3diags-1.5.01/src/SongInfoParser.cpp:214: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 q [5];
data/mp3diags-1.5.01/src/SongInfoParser.cpp:216:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        int nYear (atoi(q));
data/mp3diags-1.5.01/src/StoredSettings.cpp:372: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 bfr [50];
data/mp3diags-1.5.01/src/StoredSettings.cpp:380: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(bfr, "/val%04d", i);
data/mp3diags-1.5.01/src/StoredSettings.cpp:395: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 bfr [50];
data/mp3diags-1.5.01/src/StoredSettings.cpp:399: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(bfr, "/val%04d", i);
data/mp3diags-1.5.01/src/StructuralTransformation.cpp:134: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.
                        char bfr [4];
data/mp3diags-1.5.01/src/TagEditorDlgImpl.cpp:883:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            int nPos (atoi(vstrPositions[i].c_str()));
data/mp3diags-1.5.01/src/TagEditorDlgImpl.cpp:952:37:  [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).
            snActivePatterns.insert(atoi(vstrActivePatterns[i].c_str()));
data/mp3diags-1.5.01/src/TagEditorDlgImpl.cpp:972: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 a [15];
data/mp3diags-1.5.01/src/TagEditorDlgImpl.cpp:976:13:  [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(a, "%d", v[i].m_nPos);
data/mp3diags-1.5.01/src/TagEditorDlgImpl.cpp:994: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 a [15];
data/mp3diags-1.5.01/src/TagEditorDlgImpl.cpp:998:13:  [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(a, "%d", *it);
data/mp3diags-1.5.01/src/TagEditorDlgImpl.cpp:1535: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(q, pImgData, nImgSize);
data/mp3diags-1.5.01/src/TagWriter.cpp:199: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 c (s[0]);
data/mp3diags-1.5.01/src/TagWriter.cpp:523: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.
                        char a [10];
data/mp3diags-1.5.01/src/TagWriter.cpp:614: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 a [15];
data/mp3diags-1.5.01/src/TagWriter.cpp:615:17:  [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(a, "%0.1f", d);
data/mp3diags-1.5.01/src/TagWriter.cpp:680: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 a [10];
data/mp3diags-1.5.01/src/TagWriter.cpp:691: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 a [15];
data/mp3diags-1.5.01/src/TagWriter.cpp:695:13:  [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(a, "%0.1f", d);
data/mp3diags-1.5.01/src/TagWriter.cpp:716:32:  [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).
    int nPic (s.empty() ? -1 : atoi(s.c_str() + PIC_FMT_HDR) - 1); // "-1" because on screen numbering starts from 1, not 0
data/mp3diags-1.5.01/src/TagWriter.cpp:919:22:  [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).
                d += atoi(pLast)/100000.0; // this sort of takes care of tracks in the format <total>/<track>
data/mp3diags-1.5.01/src/TagWriter.cpp:1606: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 a [10];
data/mp3diags-1.5.01/src/TagWriter.cpp:1779:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (f.open(QIODevice::ReadOnly))
data/mp3diags-1.5.01/src/fstream_unicode.cpp:124:9:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
        MultiByteToWideChar(CP_UTF8, 0, s.c_str(), -1, &w[0], w.size());
data/mp3diags-1.5.01/src/fstream_unicode.cpp:158: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).
        int nFd (open(ba.data(), nAcc, S_IREAD | S_IWRITE));
data/mp3diags-1.5.01/src/fstream_unicode.cpp:176: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).
        int nFd (open(szUtf8Name, nAcc, S_IREAD | S_IWRITE));
data/mp3diags-1.5.01/src/fstream_unicode.h:120:21:  [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).
    __filebuf_type* open(int __fd, std::ios_base::openmode __mode)
data/mp3diags-1.5.01/src/fstream_unicode.h:217:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        this->open(x, __mode);
data/mp3diags-1.5.01/src/fstream_unicode.h:267: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).
      open(const T& x, std::ios_base::openmode __mode = std::ios_base::in)
data/mp3diags-1.5.01/src/fstream_unicode.h:269:25:  [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 (!_M_filebuf.open(unicodeOpenHlp(x, __mode | std::ios_base::in), __mode | std::ios_base::in))
data/mp3diags-1.5.01/src/fstream_unicode.h:349:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        this->open(x, __mode);
data/mp3diags-1.5.01/src/fstream_unicode.h:399: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).
      open(const T& x,
data/mp3diags-1.5.01/src/fstream_unicode.h:402:25:  [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 (!_M_filebuf.open(unicodeOpenHlp(x, __mode | std::ios_base::out), __mode | std::ios_base::out))
data/mp3diags-1.5.01/src/fstream_unicode.h:481:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        this->open(x, __mode);
data/mp3diags-1.5.01/src/fstream_unicode.h:531: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).
      open(const T& x,
data/mp3diags-1.5.01/src/fstream_unicode.h:534:25:  [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 (!_M_filebuf.open(unicodeOpenHlp(x, __mode), __mode))
data/mp3diags-1.5.01/src/fstream_unicode.h:604: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(_Filename,_Mode,_Prot);
data/mp3diags-1.5.01/src/fstream_unicode.h:607: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* _Filename,ios_base::openmode _Mode=ios_base::in,int _Prot=(int)ios_base::_Openprot)
data/mp3diags-1.5.01/src/fstream_unicode.h:609:24:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
            int length=MultiByteToWideChar(CP_UTF8,0,_Filename,-1,NULL,0);
data/mp3diags-1.5.01/src/fstream_unicode.h:612:17:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
                MultiByteToWideChar(CP_UTF8,0,_Filename,-1,buffer,length);
data/mp3diags-1.5.01/src/fstream_unicode.h:613:32:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                std::ifstream::open(buffer,_Mode,_Prot);
data/mp3diags-1.5.01/src/fstream_unicode.h:621: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* _Filename,ios_base::open_mode _Mode)
data/mp3diags-1.5.01/src/fstream_unicode.h:623: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(_Filename,_Mode);
data/mp3diags-1.5.01/src/fstream_unicode.h:633: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(_Filename,_Mode,_Prot);
data/mp3diags-1.5.01/src/fstream_unicode.h:636: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* _Filename,ios_base::openmode _Mode=ios_base::out,int _Prot=(int)ios_base::_Openprot)
data/mp3diags-1.5.01/src/fstream_unicode.h:638:24:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
            int length=MultiByteToWideChar(CP_UTF8,0,_Filename,-1,NULL,0);
data/mp3diags-1.5.01/src/fstream_unicode.h:641:17:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
                MultiByteToWideChar(CP_UTF8,0,_Filename,-1,buffer,length);
data/mp3diags-1.5.01/src/fstream_unicode.h:642:32:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                std::ofstream::open(buffer,_Mode,_Prot);
data/mp3diags-1.5.01/src/fstream_unicode.h:650: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* _Filename,ios_base::open_mode _Mode)
data/mp3diags-1.5.01/src/fstream_unicode.h:652: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(_Filename,_Mode);
data/mp3diags-1.5.01/src/fstream_unicode.h:662: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(_Filename,_Mode,_Prot);
data/mp3diags-1.5.01/src/fstream_unicode.h:665: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* _Filename,ios_base::openmode _Mode=ios_base::in|ios_base::out,int _Prot=(int)ios_base::_Openprot)
data/mp3diags-1.5.01/src/fstream_unicode.h:667:24:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
            int length=MultiByteToWideChar(CP_UTF8,0,_Filename,-1,NULL,0);
data/mp3diags-1.5.01/src/fstream_unicode.h:670:17:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
                MultiByteToWideChar(CP_UTF8,0,_Filename,-1,buffer,length);
data/mp3diags-1.5.01/src/fstream_unicode.h:671:31:  [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).
                std::fstream::open(buffer,_Mode,_Prot);
data/mp3diags-1.5.01/src/fstream_unicode.h:679: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* _Filename,ios_base::open_mode _Mode)
data/mp3diags-1.5.01/src/fstream_unicode.h:681: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(_Filename,_Mode);
data/mp3diags-1.5.01/src/main.cpp:109: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 a [50];
data/mp3diags-1.5.01/src/main.cpp:112: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(a, "main/sessions/val%04d", i);
data/mp3diags-1.5.01/src/main.cpp:129: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 a [50];
data/mp3diags-1.5.01/src/main.cpp:132: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(a, "main/sessions/val%04d", i);
data/mp3diags-1.5.01/src/main.cpp:789: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 bfr [50];
data/mp3diags-1.5.01/src/main.cpp:790: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(bfr, "customTransf/set%04d", nTransfList);
data/mp3diags-1.5.01/src/translations/autoTransl/MixedCase.cpp:35: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 a [10000];
data/mp3diags-1.5.01/src/ApeStream.cpp:103:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    streamsize nRead (read(in, bfr, BFR_SIZE));
data/mp3diags-1.5.01/src/ApeStream.cpp:132:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    MP3_CHECK (nDataSize == read(in, &m_vcValue[0], nDataSize), pos, apeItemTooShort, CB_EXCP(ApeStream::NotApeStream));
data/mp3diags-1.5.01/src/ApeStream.cpp:183:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    streamsize nRead (read(in, bfr, 32));
data/mp3diags-1.5.01/src/ApeStream.cpp:200:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    nRead = read(in, bfr2, 32);
data/mp3diags-1.5.01/src/CbException.cpp:11: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).
    vector<char> a (strMsg.size() + strlen(szFile) + 20);
data/mp3diags-1.5.01/src/CbException.cpp:17: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).
    vector<char> a (strMsg.size() + strlen(szFile) + cause.m_strMsg.length() + 40);
data/mp3diags-1.5.01/src/DataStream.cpp:59:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(in, m_begin, nBfrSize);
data/mp3diags-1.5.01/src/DataStream.cpp:67:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    MP3_CHECK (1 == read(in, &c, 1), m_pos, unknTooShort, CB_EXCP(BadUnknownStream));
data/mp3diags-1.5.01/src/DataStream.cpp:163:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        streamsize nRead (read(in, bfr, BFR_SIZE));
data/mp3diags-1.5.01/src/ExportDlgImpl.cpp:265:21:  [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).
    CB_ASSERT (3 == strlen(szExt));
data/mp3diags-1.5.01/src/Helpers.cpp:80:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        CB_CHECK (nCrtRead == read(in, pBfr, nCrtRead), EndOfFile);
data/mp3diags-1.5.01/src/Helpers.cpp:996:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                QByteArray b (f.read(1000));
data/mp3diags-1.5.01/src/Helpers.cpp:1006:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        QByteArray b (f.read(1000));
data/mp3diags-1.5.01/src/Helpers.cpp:1548:95:  [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).
    if (ERROR_SUCCESS != RegSetValueExA(subkey.m_hKey, NULL, 0, REG_SZ, (const BYTE*)szDescr, strlen(szDescr) + 1)) { return false; }
data/mp3diags-1.5.01/src/Helpers.cpp:1552:101:  [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).
    if (ERROR_SUCCESS != RegSetValueExA(commandKey.m_hKey, NULL, 0, REG_SZ, (const BYTE*)szCommand, strlen(szCommand) + 1)) { return false; }
data/mp3diags-1.5.01/src/Helpers.cpp:1830: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).
    int n ((int)strlen(a));
data/mp3diags-1.5.01/src/Helpers.h:67:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
inline std::streamsize read(std::istream& in, char* bfr, std::streamsize nCount)
data/mp3diags-1.5.01/src/Helpers.h:69:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    in.read(bfr, nCount);
data/mp3diags-1.5.01/src/Id3V230Stream.cpp:67:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(m_szName, bfr, 4);
data/mp3diags-1.5.01/src/Id3V230Stream.cpp:131:76:  [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).
                    m_vcData.insert(m_vcData.end(), szInvalid, szInvalid + strlen(szInvalid)); // description
data/mp3diags-1.5.01/src/Id3V230Stream.cpp:133:76:  [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).
                    m_vcData.insert(m_vcData.end(), szInvalid, szInvalid + strlen(szInvalid)); // value
data/mp3diags-1.5.01/src/Id3V230Stream.cpp:275:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    MP3_CHECK_T (ID3_HDR_SIZE == read(in, bfr, ID3_HDR_SIZE), pos, "Invalid ID3V2.3.0 tag. File too small.", CB_EXCP(NotId3V2));
data/mp3diags-1.5.01/src/Id3V230Stream.cpp:354:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        MP3_CHECK (1 == read(in, &c, 1), m_pos, id3v230CantReadFrame, CB_EXCP(NotId3V2));
data/mp3diags-1.5.01/src/Id3V240Stream.cpp:110:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int nRead (read(in, &v[0], m_nDiskDataSize));
data/mp3diags-1.5.01/src/Id3V240Stream.cpp:191:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(m_szName, bfr, 4);
data/mp3diags-1.5.01/src/Id3V240Stream.cpp:307:76:  [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).
                    m_vcData.insert(m_vcData.end(), szInvalid, szInvalid + strlen(szInvalid)); // description
data/mp3diags-1.5.01/src/Id3V240Stream.cpp:309:76:  [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).
                    m_vcData.insert(m_vcData.end(), szInvalid, szInvalid + strlen(szInvalid)); // value
data/mp3diags-1.5.01/src/Id3V240Stream.cpp:448:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    MP3_CHECK_T (ID3_HDR_SIZE == read(in, bfr, ID3_HDR_SIZE), pos, "Invalid ID3V2.4.0 tag. File too small.", CB_EXCP(NotId3V2));
data/mp3diags-1.5.01/src/Id3V240Stream.cpp:552:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        MP3_CHECK (1 == read(in, &c, 1), m_pos, id3v240CantReadFrame, CB_EXCP(NotId3V2));
data/mp3diags-1.5.01/src/Id3V2Stream.cpp:108:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        return read(in, pDest, nCount);
data/mp3diags-1.5.01/src/Id3V2Stream.cpp:118:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        streamsize nRead (read(in, bfr, nTarget));
data/mp3diags-1.5.01/src/LyricsStream.cpp:40:31:  [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).
    const int LYR_BEGIN_SIZE (strlen(LYR_BEGIN));
data/mp3diags-1.5.01/src/LyricsStream.cpp:42: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).
    const int LYR_END_SIZE (strlen(LYR_END));
data/mp3diags-1.5.01/src/LyricsStream.cpp:61:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    streamoff nRead (read(in, &vcBfr[0], LYR_BEGIN_SIZE + LYR_END_SIZE));
data/mp3diags-1.5.01/src/LyricsStream.cpp:72:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        streamoff nRead (read(in, &vcBfr[0], 8));
data/mp3diags-1.5.01/src/LyricsStream.cpp:81:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            nRead = read(in, &vcBfr[8], 6 + LYR_END_SIZE - 8);
data/mp3diags-1.5.01/src/LyricsStream.cpp:103:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        nRead = read(in, &vcBfr[0], nSize);
data/mp3diags-1.5.01/src/LyricsStream.cpp:290:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        QByteArray comprImg (f.read(nSize));
data/mp3diags-1.5.01/src/Mp3Manip.cpp:217:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            streamsize nCrtRead (read(in, a, READ_SIZE));
data/mp3diags-1.5.01/src/Mp3Manip.cpp:1060:76:  [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).
    static const char* ID3V2_HDR ("ID3"); static const int ID3V2_HDR_SIZE (strlen(ID3V2_HDR));
data/mp3diags-1.5.01/src/Mp3Manip.cpp:1061:76:  [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).
    static const char* ID3V1_HDR ("TAG"); static const int ID3V1_HDR_SIZE (strlen(ID3V1_HDR));
data/mp3diags-1.5.01/src/Mp3Manip.cpp:1062:77:  [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).
    static const char* APE_HDR ("APETAGEX"); static const int APE_HDR_SIZE (strlen(APE_HDR));
data/mp3diags-1.5.01/src/Mp3Manip.cpp:1063:86:  [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).
    static const char* LYRICS_HDR ("LYRICSBEGIN"); static const int LYRICS_HDR_SIZE (strlen(LYRICS_HDR));
data/mp3diags-1.5.01/src/Mp3Manip.cpp:1073:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        int nRead (read(in, bfr, BFR_SIZE));
data/mp3diags-1.5.01/src/MpegFrame.cpp:47:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    MP3_CHECK_T (BFR_SIZE == read(in, bfr, BFR_SIZE), m_pos, "Not an MPEG frame. File too short.", CB_EXCP(NotMpegFrame));
data/mp3diags-1.5.01/src/MpegFrame.cpp:254:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (1 != read(in, bfr, 1))
data/mp3diags-1.5.01/src/MpegStream.cpp:175:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (4 == read(in, bfr, 4)) // normally this should work, because to get here at least a full frame needs to be read
data/mp3diags-1.5.01/src/MpegStream.cpp:416:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        streamsize nRead (read(in, (char*)(&bfr[0]), HDR_SIZE));
data/mp3diags-1.5.01/src/MpegStream.cpp:420:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        nRead = read(in, (char*)(&bfr[HDR_SIZE]), frameSize - HDR_SIZE);
data/mp3diags-1.5.01/src/MpegStream.cpp:461:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        streamsize nRead (read(in, (char*)(&m_vcMp3Bfr[nMp3BfrFirstFree]), nToRead));
data/mp3diags-1.5.01/src/MpegStream.cpp:851:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    streamsize nRead (read(in, bfr, nBfrSize));
data/mp3diags-1.5.01/src/MpegStream.cpp:858:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    MP3_CHECK_T (4 == read(in, bfr, 4) && 0 == bfr[0] && 0 == bfr[1] && 0 == bfr[2], m_pos, "Not a Xing stream. Header not found.", CB_EXCP(NotXingStream));
data/mp3diags-1.5.01/src/MpegStream.cpp:863:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        MP3_CHECK_T (4 == read(in, bfr, 4), m_pos, "Not a Xing stream. File too short.", CB_EXCP(NotXingStream));
data/mp3diags-1.5.01/src/MpegStream.cpp:869:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        MP3_CHECK_T (4 == read(in, bfr, 4), m_pos, "Not a Xing stream. File too short.", CB_EXCP(NotXingStream));
data/mp3diags-1.5.01/src/MpegStream.cpp:875:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        MP3_CHECK_T (100 == read(in, m_toc, 100), m_pos, "Not a Xing stream. File too short.", CB_EXCP(NotXingStream));
data/mp3diags-1.5.01/src/MpegStream.cpp:880:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        MP3_CHECK_T (4 == read(in, bfr, 4), m_pos, "Not a Xing stream. File too short.", CB_EXCP(NotXingStream));
data/mp3diags-1.5.01/src/MpegStream.cpp:995:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    streamsize nRead (read(in, bfr, BFR_SIZE));
data/mp3diags-1.5.01/src/MpegStream.cpp:1031:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    streamsize nRead (read(in, bfr, BFR_SIZE));
data/mp3diags-1.5.01/src/MpegStream.cpp:1070:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    streamsize nRead (read(in, m_data, BFR_SIZE));
data/mp3diags-1.5.01/src/SessionEditorDlgImpl.cpp:440:52:  [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).
/*static*/ int SessionEditorDlgImpl::SESS_EXT_LEN (strlen(SessionEditorDlgImpl::SESS_EXT));
data/mp3diags-1.5.01/src/SongInfoParser.cpp:215:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(q, pcStart, 4); q[4] = 0;
data/mp3diags-1.5.01/src/TagEditorDlgImpl.cpp:1526:23:  [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).
        int nEncSize (strlen(szEncoding));
data/mp3diags-1.5.01/src/TagWriter.cpp:1784:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        QByteArray comprImg (f.read(nSize));
data/mp3diags-1.5.01/src/ThreadRunnerDlgImpl.h:109:20:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    using QThread::usleep;
data/mp3diags-1.5.01/src/Translation.cpp:209:34:  [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).
            strFileName.erase(0, strlen("mp3diags_"));

ANALYSIS SUMMARY:

Hits = 334
Lines analyzed = 54484 in approximately 1.33 seconds (40919 lines/second)
Physical Source Lines of Code (SLOC) = 34506
Hits@level = [0]   1 [1]  65 [2] 202 [3]  10 [4]  55 [5]   2
Hits@level+ = [0+] 335 [1+] 334 [2+] 269 [3+]  67 [4+]  57 [5+]   2
Hits/KSLOC@level+ = [0+] 9.70846 [1+] 9.67948 [2+] 7.79575 [3+] 1.94169 [4+] 1.65189 [5+] 0.0579609
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.