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/classified-ads-0.13/FrontWidget.cpp
Examining data/classified-ads-0.13/FrontWidget.h
Examining data/classified-ads-0.13/call/audiodecoder.cpp
Examining data/classified-ads-0.13/call/audiodecoder.h
Examining data/classified-ads-0.13/call/audioencoder.cpp
Examining data/classified-ads-0.13/call/audioencoder.h
Examining data/classified-ads-0.13/call/audiomixer.cpp
Examining data/classified-ads-0.13/call/audiomixer.h
Examining data/classified-ads-0.13/call/audioplayer.cpp
Examining data/classified-ads-0.13/call/audioplayer.h
Examining data/classified-ads-0.13/call/audiosource.cpp
Examining data/classified-ads-0.13/call/audiosource.h
Examining data/classified-ads-0.13/call/callbuttondelegate.cpp
Examining data/classified-ads-0.13/call/ringtoneplayer.cpp
Examining data/classified-ads-0.13/call/ringtoneplayer.h
Examining data/classified-ads-0.13/controller.cpp
Examining data/classified-ads-0.13/controller.h
Examining data/classified-ads-0.13/datamodel/binaryfile.cpp
Examining data/classified-ads-0.13/datamodel/binaryfile.h
Examining data/classified-ads-0.13/datamodel/binaryfilelistingmodel.cpp
Examining data/classified-ads-0.13/datamodel/binaryfilelistingmodel.h
Examining data/classified-ads-0.13/datamodel/binaryfilemodel.cpp
Examining data/classified-ads-0.13/datamodel/binaryfilemodel.h
Examining data/classified-ads-0.13/datamodel/ca.cpp
Examining data/classified-ads-0.13/datamodel/ca.h
Examining data/classified-ads-0.13/datamodel/cadbrecord.cpp
Examining data/classified-ads-0.13/datamodel/cadbrecord.h
Examining data/classified-ads-0.13/datamodel/cadbrecordmodel.cpp
Examining data/classified-ads-0.13/datamodel/cadbrecordmodel.h
Examining data/classified-ads-0.13/datamodel/calistingmodel.cpp
Examining data/classified-ads-0.13/datamodel/calistingmodel.h
Examining data/classified-ads-0.13/datamodel/camodel.cpp
Examining data/classified-ads-0.13/datamodel/camodel.h
Examining data/classified-ads-0.13/datamodel/connectionlistingmodel.cpp
Examining data/classified-ads-0.13/datamodel/connectionlistingmodel.h
Examining data/classified-ads-0.13/datamodel/const.h
Examining data/classified-ads-0.13/datamodel/contact.cpp
Examining data/classified-ads-0.13/datamodel/contact.h
Examining data/classified-ads-0.13/datamodel/contactlistingmodel.cpp
Examining data/classified-ads-0.13/datamodel/contactlistingmodel.h
Examining data/classified-ads-0.13/datamodel/contentencryptionmodel.cpp
Examining data/classified-ads-0.13/datamodel/contentencryptionmodel.h
Examining data/classified-ads-0.13/datamodel/datamodelbase.cpp
Examining data/classified-ads-0.13/datamodel/datamodelbase.h
Examining data/classified-ads-0.13/datamodel/mmodelprotocolinterface.h
Examining data/classified-ads-0.13/datamodel/mnodemodelprotocolinterface.h
Examining data/classified-ads-0.13/datamodel/model.cpp
Examining data/classified-ads-0.13/datamodel/model.h
Examining data/classified-ads-0.13/datamodel/netrequestexecutor.cpp
Examining data/classified-ads-0.13/datamodel/netrequestexecutor.h
Examining data/classified-ads-0.13/datamodel/nodemodel.cpp
Examining data/classified-ads-0.13/datamodel/nodemodel.h
Examining data/classified-ads-0.13/datamodel/privmsg.cpp
Examining data/classified-ads-0.13/datamodel/privmsg.h
Examining data/classified-ads-0.13/datamodel/privmsgmodel.cpp
Examining data/classified-ads-0.13/datamodel/privmsgmodel.h
Examining data/classified-ads-0.13/datamodel/privmsgsearchmodel.cpp
Examining data/classified-ads-0.13/datamodel/privmsgsearchmodel.h
Examining data/classified-ads-0.13/datamodel/profile.cpp
Examining data/classified-ads-0.13/datamodel/profile.h
Examining data/classified-ads-0.13/datamodel/profilecomment.cpp
Examining data/classified-ads-0.13/datamodel/profilecomment.h
Examining data/classified-ads-0.13/datamodel/profilecommentlistingmodel.cpp
Examining data/classified-ads-0.13/datamodel/profilecommentlistingmodel.h
Examining data/classified-ads-0.13/datamodel/profilecommentmodel.cpp
Examining data/classified-ads-0.13/datamodel/profilecommentmodel.h
Examining data/classified-ads-0.13/datamodel/profilemodel.cpp
Examining data/classified-ads-0.13/datamodel/profilemodel.h
Examining data/classified-ads-0.13/datamodel/profilereaderslistingmodel.cpp
Examining data/classified-ads-0.13/datamodel/profilereaderslistingmodel.h
Examining data/classified-ads-0.13/datamodel/profilesearchmodel.cpp
Examining data/classified-ads-0.13/datamodel/profilesearchmodel.h
Examining data/classified-ads-0.13/datamodel/searchmodel.cpp
Examining data/classified-ads-0.13/datamodel/searchmodel.h
Examining data/classified-ads-0.13/datamodel/tclmodel.cpp
Examining data/classified-ads-0.13/datamodel/tclmodel.h
Examining data/classified-ads-0.13/datamodel/tclprogram.cpp
Examining data/classified-ads-0.13/datamodel/tclprogram.h
Examining data/classified-ads-0.13/datamodel/trusttreemodel.cpp
Examining data/classified-ads-0.13/datamodel/trusttreemodel.h
Examining data/classified-ads-0.13/datamodel/voicecall.cpp
Examining data/classified-ads-0.13/datamodel/voicecall.h
Examining data/classified-ads-0.13/log.h
Examining data/classified-ads-0.13/main.cpp
Examining data/classified-ads-0.13/mcontroller.h
Examining data/classified-ads-0.13/net/connection.cpp
Examining data/classified-ads-0.13/net/connection.h
Examining data/classified-ads-0.13/net/dbretrievalengine.cpp
Examining data/classified-ads-0.13/net/dbretrievalengine.h
Examining data/classified-ads-0.13/net/mvoicecallengine.h
Examining data/classified-ads-0.13/net/networkconnectorengine.cpp
Examining data/classified-ads-0.13/net/networkconnectorengine.h
Examining data/classified-ads-0.13/net/networklistener.cpp
Examining data/classified-ads-0.13/net/networklistener.h
Examining data/classified-ads-0.13/net/node.cpp
Examining data/classified-ads-0.13/net/node.h
Examining data/classified-ads-0.13/net/protocol.h
Examining data/classified-ads-0.13/net/protocol_message_formatter.cpp
Examining data/classified-ads-0.13/net/protocol_message_formatter.h
Examining data/classified-ads-0.13/net/protocol_message_parser.cpp
Examining data/classified-ads-0.13/net/protocol_message_parser.h
Examining data/classified-ads-0.13/net/publishingengine.cpp
Examining data/classified-ads-0.13/net/publishingengine.h
Examining data/classified-ads-0.13/net/retrievalengine.cpp
Examining data/classified-ads-0.13/net/retrievalengine.h
Examining data/classified-ads-0.13/net/voicecallengine.cpp
Examining data/classified-ads-0.13/net/voicecallengine.h
Examining data/classified-ads-0.13/tcl/tclCallbacks.cpp
Examining data/classified-ads-0.13/tcl/tclCallbacks.h
Examining data/classified-ads-0.13/tcl/tclUtil.cpp
Examining data/classified-ads-0.13/tcl/tclUtil.h
Examining data/classified-ads-0.13/tcl/tclWrapper.cpp
Examining data/classified-ads-0.13/tcl/tclWrapper.h
Examining data/classified-ads-0.13/testca/mockup_controller.cpp
Examining data/classified-ads-0.13/testca/mockup_controller.h
Examining data/classified-ads-0.13/testca/mockup_model.cpp
Examining data/classified-ads-0.13/testca/mockup_model.h
Examining data/classified-ads-0.13/testca/mockup_nodemodel.cpp
Examining data/classified-ads-0.13/testca/mockup_nodemodel.h
Examining data/classified-ads-0.13/testca/mockup_voicecallengine.cpp
Examining data/classified-ads-0.13/testca/mockup_voicecallengine.h
Examining data/classified-ads-0.13/testca/testca.cpp
Examining data/classified-ads-0.13/textedit/textedit.cpp
Examining data/classified-ads-0.13/textedit/textedit.h
Examining data/classified-ads-0.13/ui/aboutdialog.cpp
Examining data/classified-ads-0.13/ui/aboutdialog.h
Examining data/classified-ads-0.13/ui/attachmentlistdialog.cpp
Examining data/classified-ads-0.13/ui/attachmentlistdialog.h
Examining data/classified-ads-0.13/ui/callbuttondelegate.cpp
Examining data/classified-ads-0.13/ui/callbuttondelegate.h
Examining data/classified-ads-0.13/ui/callstatus.cpp
Examining data/classified-ads-0.13/ui/callstatus.h
Examining data/classified-ads-0.13/ui/dialogbase.cpp
Examining data/classified-ads-0.13/ui/dialogbase.h
Examining data/classified-ads-0.13/ui/editcontact.cpp
Examining data/classified-ads-0.13/ui/editcontact.h
Examining data/classified-ads-0.13/ui/insertlinkdialog.cpp
Examining data/classified-ads-0.13/ui/insertlinkdialog.h
Examining data/classified-ads-0.13/ui/manualconnection.cpp
Examining data/classified-ads-0.13/ui/manualconnection.h
Examining data/classified-ads-0.13/ui/metadataQuery.cpp
Examining data/classified-ads-0.13/ui/metadataQuery.h
Examining data/classified-ads-0.13/ui/newclassifiedaddialog.cpp
Examining data/classified-ads-0.13/ui/newclassifiedaddialog.h
Examining data/classified-ads-0.13/ui/newprivmsgdialog.cpp
Examining data/classified-ads-0.13/ui/newprivmsgdialog.h
Examining data/classified-ads-0.13/ui/newprofilecommentdialog.cpp
Examining data/classified-ads-0.13/ui/newprofilecommentdialog.h
Examining data/classified-ads-0.13/ui/newtextdocument.cpp
Examining data/classified-ads-0.13/ui/newtextdocument.h
Examining data/classified-ads-0.13/ui/passwd_dialog.cpp
Examining data/classified-ads-0.13/ui/passwd_dialog.h
Examining data/classified-ads-0.13/ui/profilecommentdisplay.cpp
Examining data/classified-ads-0.13/ui/profilecommentdisplay.h
Examining data/classified-ads-0.13/ui/profilecommentitemdelegate.cpp
Examining data/classified-ads-0.13/ui/profilecommentitemdelegate.h
Examining data/classified-ads-0.13/ui/profilereadersdialog.cpp
Examining data/classified-ads-0.13/ui/profilereadersdialog.h
Examining data/classified-ads-0.13/ui/searchdisplay.cpp
Examining data/classified-ads-0.13/ui/searchdisplay.h
Examining data/classified-ads-0.13/ui/settings.cpp
Examining data/classified-ads-0.13/ui/settings.h
Examining data/classified-ads-0.13/ui/status.cpp
Examining data/classified-ads-0.13/ui/status.h
Examining data/classified-ads-0.13/ui/tclConsole.cpp
Examining data/classified-ads-0.13/ui/tclConsole.h
Examining data/classified-ads-0.13/ui/tclPrograms.cpp
Examining data/classified-ads-0.13/ui/tclPrograms.h
Examining data/classified-ads-0.13/util/catranslator.cpp
Examining data/classified-ads-0.13/util/catranslator.h
Examining data/classified-ads-0.13/util/hash.cpp
Examining data/classified-ads-0.13/util/hash.h
Examining data/classified-ads-0.13/util/jsonwrapper.cpp
Examining data/classified-ads-0.13/util/jsonwrapper.h
Examining data/classified-ads-0.13/util/ungzip.cpp
Examining data/classified-ads-0.13/util/ungzip.h

FINAL RESULTS:

data/classified-ads-0.13/controller.cpp:342: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((char *)(iSharedMemory->data()),
data/classified-ads-0.13/log.h:28:108:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
#define LOG_STR2(a,b) { QString str ; qDebug() << QDateTime::currentDateTime().toString("hh:mm:ss") << str.sprintf(a,b) ; }
data/classified-ads-0.13/main.cpp:149:46:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if ( caTranslator.load( "qt_" + QLocale::system().name()) == false )  {
data/classified-ads-0.13/main.cpp:151:49:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        if ( caTranslator.load("qt_" + QLocale::system().name(),
data/classified-ads-0.13/main.cpp:157:111:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
            if ( caTranslator.load(QLibraryInfo::location(QLibraryInfo::TranslationsPath) + "/qt_" + QLocale::system().name())  ) {
data/classified-ads-0.13/tcl/tclWrapper.cpp:507:33:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                       QLocale::system().name().toUtf8().constData(),
data/classified-ads-0.13/util/catranslator.cpp:50:38:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    QLocale systemLocale (  QLocale::system() ) ;
data/classified-ads-0.13/util/catranslator.cpp:85: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(contextAndSourceText, aContext) ;
data/classified-ads-0.13/util/catranslator.cpp:86:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(contextAndSourceText, KGetTextContextGlue) ;
data/classified-ads-0.13/util/catranslator.cpp:87:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(contextAndSourceText, aSourceText) ;
data/classified-ads-0.13/datamodel/model.cpp:841:17:  [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(*pointer1intothemiddle) ;
data/classified-ads-0.13/datamodel/model.cpp:864:9:  [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(seed) ;
data/classified-ads-0.13/datamodel/model.cpp:889: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(*pointer1intothemiddle) ;
data/classified-ads-0.13/main.cpp:101:25:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    bool have_display ( getenv("DISPLAY") != NULL  ) ;
data/classified-ads-0.13/main.cpp:102:25:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    bool have_wayland ( getenv("WAYLAND_DISPLAY") != NULL ) ;
data/classified-ads-0.13/main.cpp:121:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ( getenv("TCL_LIBRARY") == NULL  ) {
data/classified-ads-0.13/main.cpp:130:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ( getenv("TCLLIBPATH") != NULL  ) {
data/classified-ads-0.13/main.cpp:131:30:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      char *tclLibEnvValue ( getenv("TCLLIBPATH") ) ; 
data/classified-ads-0.13/FrontWidget.cpp:891: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).
            if ( f.open(QIODevice::ReadOnly) ) {
data/classified-ads-0.13/FrontWidget.cpp:1197: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).
                if ( f.open(QIODevice::WriteOnly) ) {
data/classified-ads-0.13/call/audioplayer.cpp:79:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        open(QIODevice::ReadOnly) ;
data/classified-ads-0.13/call/audioplayer.cpp:173:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(data, iAudioBuffer.constData(), bytesToWrite) ;
data/classified-ads-0.13/call/audioplayer.cpp:181: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).
bool AudioPlayer::open ( OpenMode mode ) {
data/classified-ads-0.13/call/audioplayer.cpp:183:27:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        return QIODevice::open(mode) ; 
data/classified-ads-0.13/call/audioplayer.h:95:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    virtual bool open ( OpenMode mode ) ;
data/classified-ads-0.13/call/audiosource.cpp:81:16:  [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 ( this->open(QIODevice::WriteOnly) ) {
data/classified-ads-0.13/call/audiosource.cpp:178: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).
bool AudioSource::open ( OpenMode mode ) {
data/classified-ads-0.13/call/audiosource.cpp:180:27:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        return QIODevice::open(mode) ; 
data/classified-ads-0.13/call/audiosource.h:79:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    virtual bool open ( OpenMode mode ) ;
data/classified-ads-0.13/call/ringtoneplayer.cpp:91: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(QIODevice::ReadOnly) ;
data/classified-ads-0.13/call/ringtoneplayer.cpp:179:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(data, iAudioBuffer.constData(), bytesToWrite) ;
data/classified-ads-0.13/call/ringtoneplayer.cpp:190:22:  [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 RingtonePlayer::open ( OpenMode mode ) {
data/classified-ads-0.13/call/ringtoneplayer.cpp:192:27:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        return QIODevice::open(mode) ; 
data/classified-ads-0.13/call/ringtoneplayer.cpp:275:46:  [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 ( iRingtoneFile && iRingtoneFile->open(QIODevice::ReadOnly) ) {
data/classified-ads-0.13/call/ringtoneplayer.h:99:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    virtual bool open ( OpenMode mode ) ;
data/classified-ads-0.13/controller.cpp:1071: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).
        f.open(QIODevice::ReadOnly) ;
data/classified-ads-0.13/controller.cpp:1079: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).
        f.open(QIODevice::WriteOnly) ;
data/classified-ads-0.13/datamodel/binaryfilemodel.cpp:660: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 timebuf[40] ;
data/classified-ads-0.13/datamodel/cadbrecord.cpp:112:46:  [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.
        iRecordId.fromString((const unsigned char *)result[KCaDbRecordJSonRecordId].toByteArray().constData()) ;
data/classified-ads-0.13/datamodel/cadbrecord.cpp:117:50:  [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.
        iCollectionId.fromString((const unsigned char *)result[KCaDbRecordJSonCollectionId].toByteArray().constData()) ;
data/classified-ads-0.13/datamodel/cadbrecordmodel.cpp:607: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 formatted_mutual [100] = {0} ;
data/classified-ads-0.13/datamodel/cadbrecordmodel.cpp:608: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 formatted_found [100]  = {0} ;
data/classified-ads-0.13/datamodel/contentencryptionmodel.cpp:136: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 randomName [11] = { 0 };
data/classified-ads-0.13/datamodel/contentencryptionmodel.cpp:141: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 domainName [20] = { 0 } ;
data/classified-ads-0.13/datamodel/contentencryptionmodel.cpp:145:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat (domainName, ".com") ;
data/classified-ads-0.13/datamodel/contentencryptionmodel.cpp:176: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         md[EVP_MAX_MD_SIZE];
data/classified-ads-0.13/datamodel/contentencryptionmodel.cpp:320: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 sig_buf [4096];
data/classified-ads-0.13/datamodel/contentencryptionmodel.cpp:466:43:  [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.
                        ek[k] = (unsigned char *)malloc(EVP_PKEY_size(pubk[k])) ;
data/classified-ads-0.13/datamodel/contentencryptionmodel.cpp:502: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 buffer_out[FOUR_KBYTES + EVP_MAX_IV_LENGTH];
data/classified-ads-0.13/datamodel/contentencryptionmodel.cpp:905: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         md[EVP_MAX_MD_SIZE];
data/classified-ads-0.13/datamodel/model.cpp:860:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[30] ;
data/classified-ads-0.13/datamodel/model.cpp:861: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(buf,"%.8s",eight_letters.toUtf8().constData()) ;
data/classified-ads-0.13/datamodel/model.cpp:872: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 ( randomFile.open(QIODevice::ReadOnly) ) {
data/classified-ads-0.13/datamodel/model.cpp:1626:24:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    bool isDbOpen = db.open() ;
data/classified-ads-0.13/datamodel/nodemodel.cpp:169: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 randomName [11] = { 0 };
data/classified-ads-0.13/datamodel/nodemodel.cpp:174: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 domainName [20] = { 0 } ;
data/classified-ads-0.13/datamodel/nodemodel.cpp:178:9:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
        strcat (domainName, ".com") ;
data/classified-ads-0.13/datamodel/nodemodel.cpp:208: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         md[EVP_MAX_MD_SIZE];
data/classified-ads-0.13/datamodel/privmsgmodel.cpp:479: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 formatted_mutual [100] = {0} ;
data/classified-ads-0.13/datamodel/privmsgmodel.cpp:480: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 formatted_found [100]  = {0} ;
data/classified-ads-0.13/datamodel/profile.cpp:157:16:  [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).
        buffer.open(QIODevice::WriteOnly);
data/classified-ads-0.13/datamodel/profilecomment.cpp:101:56:  [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.
        iProfileFingerPrint.fromString((const unsigned char *)aJSonAsQVariant[KCommentJSonProfileFPElement].toByteArray().constData()) ;
data/classified-ads-0.13/datamodel/profilecomment.cpp:134:48:  [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.
        iReferences.fromString((const unsigned char *)aJSonAsQVariant[KCommentJSonReferences].toByteArray().constData()) ;
data/classified-ads-0.13/datamodel/profilecommentmodel.cpp:523: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 formatted_mutual [100] = {0} ;
data/classified-ads-0.13/datamodel/profilecommentmodel.cpp:524: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 formatted_found [100]  = {0} ;
data/classified-ads-0.13/datamodel/profilemodel.cpp:442: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 formatted_mutual [100] = {0} ;
data/classified-ads-0.13/datamodel/profilemodel.cpp:443: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 formatted_found [100]  = {0} ;
data/classified-ads-0.13/datamodel/tclmodel.cpp:309:29:  [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 (exampleFile.open(QIODevice::ReadOnly)) {
data/classified-ads-0.13/net/networklistener.cpp:77:22:  [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).
    iNetworkSession->open();
data/classified-ads-0.13/net/networklistener.cpp:291: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 lan_address[64];
data/classified-ads-0.13/net/networklistener.cpp:299: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 wan_address[64] = { 0 } ;
data/classified-ads-0.13/net/networklistener.cpp:308: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 port_number_str[30] = { 0 } ;
data/classified-ads-0.13/net/networklistener.cpp:309:29:  [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(port_number_str, "%d", iModel->nodeModel().listenPortOfThisNode()) ;
data/classified-ads-0.13/net/networklistener.cpp:329:33:  [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 map_wan_port           [200] = "";
data/classified-ads-0.13/net/networklistener.cpp:330:33:  [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 map_lan_address        [200] = "";
data/classified-ads-0.13/net/networklistener.cpp:331:33:  [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 map_lan_port           [200] = "";
data/classified-ads-0.13/net/networklistener.cpp:332:33:  [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 map_protocol           [200] = "";
data/classified-ads-0.13/net/networklistener.cpp:333:33:  [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 map_description        [200] = "";
data/classified-ads-0.13/net/networklistener.cpp:334:33:  [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 map_mapping_enabled    [200] = "";
data/classified-ads-0.13/net/networklistener.cpp:335:33:  [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 map_remote_host        [200] = "";
data/classified-ads-0.13/net/networklistener.cpp:336:33:  [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 map_lease_duration     [200] = ""; // original time, not remaining time :(
data/classified-ads-0.13/net/networklistener.cpp:337:33:  [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 index_str[200] = { 0 } ;
data/classified-ads-0.13/net/networklistener.cpp:338:33:  [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(index_str, "%d", index) ;
data/classified-ads-0.13/net/node.cpp:312:24:  [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.
        const unsigned char *fpStr ( (const unsigned char *) qPrintable(aJSonAsQVariant[KNodeJSonFPElement].toString())) ;
data/classified-ads-0.13/net/node.cpp:312:54:  [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.
        const unsigned char *fpStr ( (const unsigned char *) qPrintable(aJSonAsQVariant[KNodeJSonFPElement].toString())) ;
data/classified-ads-0.13/net/protocol_message_formatter.cpp:350: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 timeBuf[40] ;
data/classified-ads-0.13/net/protocol_message_formatter.cpp:428: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 timebuf[40] ;
data/classified-ads-0.13/net/protocol_message_formatter.cpp:477: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 timebuf[40] ;
data/classified-ads-0.13/net/protocol_message_parser.cpp:264: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 timebuf[40] ;
data/classified-ads-0.13/net/protocol_message_parser.cpp:508: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 timebuf[40] ;
data/classified-ads-0.13/net/protocol_message_parser.cpp:996: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 timebuf[40] ;
data/classified-ads-0.13/net/protocol_message_parser.cpp:1115: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 timebuf[40] ;
data/classified-ads-0.13/net/protocol_message_parser.cpp:1396: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 subtype ( aQueryBytes[pos] ) ;
data/classified-ads-0.13/net/protocol_message_parser.cpp:1469:20:  [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.
    const unsigned char recordType ( aBytes[pos] ) ; 
data/classified-ads-0.13/tcl/tclCallbacks.cpp:139: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 *argumentStr(Tcl_GetStringFromObj(aObjv[1], &argumentStrLen)) ;
data/classified-ads-0.13/tcl/tclCallbacks.cpp:275:38:  [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).
                        memoryBuffer.open(QBuffer::WriteOnly) ;
data/classified-ads-0.13/tcl/tclCallbacks.cpp:1659: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).
            if ( f.open(QIODevice::WriteOnly) ) {
data/classified-ads-0.13/tcl/tclCallbacks.cpp:1699:16:  [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/classified-ads-0.13/testca/mockup_controller.cpp:184: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 fileNameBuffer[L_tmpnam+1] ; // buffer for file name, macro
data/classified-ads-0.13/testca/mockup_model.cpp:56:16:  [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).
    randomFile.open(QIODevice::ReadOnly) ; 
data/classified-ads-0.13/testca/mockup_model.cpp:83:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    iDb.open() ;
data/classified-ads-0.13/testca/testca.cpp:198: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 hash[ hash_length ];
data/classified-ads-0.13/testca/testca.cpp:199: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 hash2[ hash_length ];
data/classified-ads-0.13/testca/testca.cpp:212: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 tuloste[100] = { 0 } ;
data/classified-ads-0.13/testca/testca.cpp:247: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 hash[ hash_length ];
data/classified-ads-0.13/testca/testca.cpp:248: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 hash2[ hash_length ];
data/classified-ads-0.13/testca/testca.cpp:261: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 tuloste[100] = { 0 } ;
data/classified-ads-0.13/textedit/textedit.cpp:419:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!file.open(QFile::ReadOnly))
data/classified-ads-0.13/textedit/textedit.cpp:584: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 fileNameCStyle[1024]  ;
data/classified-ads-0.13/textedit/textedit.cpp:619: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).
            if ( f.open(QIODevice::ReadOnly) ) {
data/classified-ads-0.13/ui/attachmentlistdialog.cpp:177: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).
                if ( f.open(QIODevice::WriteOnly) ) {
data/classified-ads-0.13/ui/dialogbase.cpp:46: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).
    if ( f.open(QIODevice::ReadOnly) ) {
data/classified-ads-0.13/ui/dialogbase.cpp:100:16:  [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/classified-ads-0.13/ui/metadataQuery.cpp:83: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 fileNameCStyle[1024]  ;
data/classified-ads-0.13/util/hash.cpp:56:27:  [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.
Hash::Hash(const unsigned char aDigest[KNumberOfIntsInHash*4]) {
data/classified-ads-0.13/util/hash.cpp:65: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 single_number[9] ;
data/classified-ads-0.13/util/hash.cpp:99: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 str1[9] = {0} ;
data/classified-ads-0.13/util/hash.cpp:101: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 str2[9] = {0} ;
data/classified-ads-0.13/util/hash.cpp:103: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 str3[9] = {0} ;
data/classified-ads-0.13/util/hash.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 str4[9] = {0} ;
data/classified-ads-0.13/util/hash.cpp:107: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 str5[9] = {0} ;
data/classified-ads-0.13/util/hash.cpp:127: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 cStyle  [KNumberOfIntsInHash*8+1] ;
data/classified-ads-0.13/util/hash.cpp:128: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(cStyle, "%.8X%.8X%.8X%.8X%.8X",
data/classified-ads-0.13/util/hash.cpp:162: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 hashbytearray[KNumberOfIntsInHash*4] ;
data/classified-ads-0.13/util/hash.cpp:168:44:  [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.
void Hash::setFromCharArray(const unsigned char aDigest[KNumberOfIntsInHash*4]) {
data/classified-ads-0.13/util/hash.h:79: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.
    Hash(const unsigned char aDigest[KNumberOfIntsInHash * 4]) ;
data/classified-ads-0.13/util/hash.h:184:42:  [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.
    void setFromCharArray(const unsigned char aDigest[KNumberOfIntsInHash * 4]) ;
data/classified-ads-0.13/util/ungzip.cpp:49: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 uncompressedBlock[KZLibBlockSize] ; 
data/classified-ads-0.13/util/ungzip.cpp:107: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 uncompressedBlock[KZLibBlockSize] ; 
data/classified-ads-0.13/FrontWidget.cpp:895:44:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    QByteArray content ( f.read(f.size() ) ) ;
data/classified-ads-0.13/call/ringtoneplayer.cpp:214:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                if ( iRingtoneFile->read((char *)&bytesToReadNetworkBo,
data/classified-ads-0.13/call/ringtoneplayer.cpp:217:61:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    audioCompressed.append ( iRingtoneFile->read(bytesToRead) ) ;
data/classified-ads-0.13/controller.cpp:346:38:  [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).
                     QString::number(strlen((char *)(iSharedMemory->data()))) ) ;
data/classified-ads-0.13/datamodel/model.cpp:874:49:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            QByteArray randomBytes = randomFile.read(1024) ;
data/classified-ads-0.13/net/connection.cpp:409:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if ( iSocket->read((char *)&bytesExpectedNetworkByteOrder,
data/classified-ads-0.13/net/connection.cpp:438:53:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            QByteArray bytesReadThisTime ( iSocket->read(bytesAvail) ) ;
data/classified-ads-0.13/tcl/tclCallbacks.cpp:157:36:  [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 resultStrLen = strlen(resultItem.iDisplayName.toUtf8().constData()) ;
data/classified-ads-0.13/tcl/tclCallbacks.cpp:158: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).
                int hashLen = strlen(resultItem.iItemHash.toString().toUtf8().constData()) ;
data/classified-ads-0.13/tcl/tclCallbacks.cpp:809:36:  [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).
                                   strlen(KTCLCommandPublishFile)) == 0 ) {
data/classified-ads-0.13/tcl/tclCallbacks.cpp:814: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).
                            strlen(KTCLCommandPublishProfileComment)) == 0 )  {
data/classified-ads-0.13/tcl/tclCallbacks.cpp:819: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).
                            strlen(KTCLCommandPublishProfile)) == 0 )  {
data/classified-ads-0.13/tcl/tclCallbacks.cpp:824: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).
                            strlen(KTCLCommandPublishClassifiedAd)) == 0 )  {
data/classified-ads-0.13/tcl/tclCallbacks.cpp:829: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).
                            strlen(KTCLCommandPublishDbRecord)) == 0 )  {
data/classified-ads-0.13/tcl/tclCallbacks.cpp:1700:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            fileContent->append(f.read(f.size())) ;
data/classified-ads-0.13/testca/mockup_model.cpp:57:41:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    QByteArray randomBytes = randomFile.read(1024) ;
data/classified-ads-0.13/testca/testca.cpp:195:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int msg_length = strlen( val );
data/classified-ads-0.13/testca/testca.cpp:196: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 msg_length2 = strlen( val2 );
data/classified-ads-0.13/testca/testca.cpp:244:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int msg_length = strlen( val );
data/classified-ads-0.13/testca/testca.cpp:245: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 msg_length2 = strlen( val2 );
data/classified-ads-0.13/textedit/textedit.cpp:585:14:  [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 ( strlen(fileNameCStyleHeap) < 1024 ) {
data/classified-ads-0.13/textedit/textedit.cpp:586:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(fileNameCStyle, fileNameCStyleHeap, 1023) ;
data/classified-ads-0.13/textedit/textedit.cpp:623:44:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    QByteArray content ( f.read(f.size() ) ) ;
data/classified-ads-0.13/ui/dialogbase.cpp:50:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            QByteArray content ( f.read(f.size() ) ) ;
data/classified-ads-0.13/ui/dialogbase.cpp:104:40:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                QByteArray content ( f.read(f.size() ) ) ;
data/classified-ads-0.13/ui/metadataQuery.cpp:84:14:  [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 ( strlen(fileNameCStyleHeap) < 1024 ) {
data/classified-ads-0.13/ui/metadataQuery.cpp:85:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(fileNameCStyle, fileNameCStyleHeap, 1023) ;
data/classified-ads-0.13/util/catranslator.cpp:78:48:  [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).
    char *contextAndSourceText ((char *)malloc(strlen(aContext) +
data/classified-ads-0.13/util/catranslator.cpp:79:48:  [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).
                                               strlen(aSourceText) +
data/classified-ads-0.13/util/hash.cpp:70:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(single_number, &(aHexString[0]), 8 ) ;
data/classified-ads-0.13/util/hash.cpp:73:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(single_number, &(aHexString[8]), 8 ) ;
data/classified-ads-0.13/util/hash.cpp:76:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(single_number, &(aHexString[16]), 8 ) ;
data/classified-ads-0.13/util/hash.cpp:79:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(single_number, &(aHexString[24]), 8 ) ;
data/classified-ads-0.13/util/hash.cpp:82:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(single_number, &(aHexString[32]), 8 ) ;
data/classified-ads-0.13/util/hash.cpp:97:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ( aBuf && strlen((const char*)aBuf) == 8*5) {
data/classified-ads-0.13/util/hash.cpp:100:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(str1,(const char*)&(aBuf[8*0]), 8) ;
data/classified-ads-0.13/util/hash.cpp:102:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(str2,(const char*)&(aBuf[8*1]), 8) ;
data/classified-ads-0.13/util/hash.cpp:104:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(str3,(const char*)&(aBuf[8*2]), 8) ;
data/classified-ads-0.13/util/hash.cpp:106:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(str4,(const char*)&(aBuf[8*3]), 8) ;
data/classified-ads-0.13/util/hash.cpp:108:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(str5,(const char*)&(aBuf[8*4]), 8) ;

ANALYSIS SUMMARY:

Hits = 169
Lines analyzed = 49854 in approximately 1.52 seconds (32810 lines/second)
Physical Source Lines of Code (SLOC) = 34291
Hits@level = [0]  28 [1]  40 [2] 111 [3]   8 [4]  10 [5]   0
Hits@level+ = [0+] 197 [1+] 169 [2+] 129 [3+]  18 [4+]  10 [5+]   0
Hits/KSLOC@level+ = [0+] 5.74495 [1+] 4.92841 [2+] 3.76192 [3+] 0.524919 [4+] 0.291622 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.