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/dlt-viewer-2.19.0+dfsg/examples/dlt-speed-app/dlt-speed-app.c
Examining data/dlt-viewer-2.19.0+dfsg/examples/dlt-speed-plugin/form.cpp
Examining data/dlt-viewer-2.19.0+dfsg/examples/dlt-speed-plugin/form.h
Examining data/dlt-viewer-2.19.0+dfsg/examples/dlt-speed-plugin/speedplugin.cpp
Examining data/dlt-viewer-2.19.0+dfsg/examples/dlt-speed-plugin/speedplugin.h
Examining data/dlt-viewer-2.19.0+dfsg/parser/examples/example_1/mapp.c
Examining data/dlt-viewer-2.19.0+dfsg/parser/examples/example_2/mapp.c
Examining data/dlt-viewer-2.19.0+dfsg/parser/examples/example_3/capp.c
Examining data/dlt-viewer-2.19.0+dfsg/parser/examples/example_4/capp/capp.c
Examining data/dlt-viewer-2.19.0+dfsg/parser/examples/example_4/capp/dlt_id_CAPP.h
Examining data/dlt-viewer-2.19.0+dfsg/parser/examples/example_4/mapp/dlt_id_MAPP.h
Examining data/dlt-viewer-2.19.0+dfsg/parser/examples/example_4/mapp/mapp.c
Examining data/dlt-viewer-2.19.0+dfsg/parser/examples/example_5/dlt.c
Examining data/dlt-viewer-2.19.0+dfsg/parser/examples/example_5/dlt.h
Examining data/dlt-viewer-2.19.0+dfsg/parser/examples/example_5/dlt_common_api.h
Examining data/dlt-viewer-2.19.0+dfsg/parser/examples/example_5/dlt_config.h
Examining data/dlt-viewer-2.19.0+dfsg/parser/examples/example_5/dlt_protocol.h
Examining data/dlt-viewer-2.19.0+dfsg/parser/examples/example_5/example5.cpp
Examining data/dlt-viewer-2.19.0+dfsg/parser/examples/example_5/example5.h
Examining data/dlt-viewer-2.19.0+dfsg/parser/examples/example_5/main.cpp
Examining data/dlt-viewer-2.19.0+dfsg/parser/examples/example_5/mainwindow.cpp
Examining data/dlt-viewer-2.19.0+dfsg/parser/examples/example_5/mainwindow.h
Examining data/dlt-viewer-2.19.0+dfsg/parser/examples/example_6/capp.c
Examining data/dlt-viewer-2.19.0+dfsg/parser/main.cpp
Examining data/dlt-viewer-2.19.0+dfsg/parser/mainwindow.cpp
Examining data/dlt-viewer-2.19.0+dfsg/parser/mainwindow.h
Examining data/dlt-viewer-2.19.0+dfsg/parser/qdltparser.cpp
Examining data/dlt-viewer-2.19.0+dfsg/parser/qdltparser.h
Examining data/dlt-viewer-2.19.0+dfsg/parser/version.h
Examining data/dlt-viewer-2.19.0+dfsg/plugin/dltdbusplugin/dbus.cpp
Examining data/dlt-viewer-2.19.0+dfsg/plugin/dltdbusplugin/dbus.h
Examining data/dlt-viewer-2.19.0+dfsg/plugin/dltdbusplugin/dltdbusplugin.cpp
Examining data/dlt-viewer-2.19.0+dfsg/plugin/dltdbusplugin/dltdbusplugin.h
Examining data/dlt-viewer-2.19.0+dfsg/plugin/dltdbusplugin/form.cpp
Examining data/dlt-viewer-2.19.0+dfsg/plugin/dltdbusplugin/form.h
Examining data/dlt-viewer-2.19.0+dfsg/plugin/dltlogstorageplugin/dltlogstorageconfigcreatorplugin.cpp
Examining data/dlt-viewer-2.19.0+dfsg/plugin/dltlogstorageplugin/dltlogstorageconfigcreatorplugin.h
Examining data/dlt-viewer-2.19.0+dfsg/plugin/dltlogstorageplugin/logstorageconfigcreatorform.cpp
Examining data/dlt-viewer-2.19.0+dfsg/plugin/dltlogstorageplugin/logstorageconfigcreatorform.h
Examining data/dlt-viewer-2.19.0+dfsg/plugin/dltlogstorageplugin/logstoragefilter.cpp
Examining data/dlt-viewer-2.19.0+dfsg/plugin/dltlogstorageplugin/logstoragefilter.h
Examining data/dlt-viewer-2.19.0+dfsg/plugin/dltsystemviewerplugin/dltsystemviewerplugin.cpp
Examining data/dlt-viewer-2.19.0+dfsg/plugin/dltsystemviewerplugin/dltsystemviewerplugin.h
Examining data/dlt-viewer-2.19.0+dfsg/plugin/dltsystemviewerplugin/form.cpp
Examining data/dlt-viewer-2.19.0+dfsg/plugin/dltsystemviewerplugin/form.h
Examining data/dlt-viewer-2.19.0+dfsg/plugin/dltviewerplugin/dltviewerplugin.cpp
Examining data/dlt-viewer-2.19.0+dfsg/plugin/dltviewerplugin/dltviewerplugin.h
Examining data/dlt-viewer-2.19.0+dfsg/plugin/dltviewerplugin/form.cpp
Examining data/dlt-viewer-2.19.0+dfsg/plugin/dltviewerplugin/form.h
Examining data/dlt-viewer-2.19.0+dfsg/plugin/dummycommandplugin/dummycommandplugin.cpp
Examining data/dlt-viewer-2.19.0+dfsg/plugin/dummycommandplugin/dummycommandplugin.h
Examining data/dlt-viewer-2.19.0+dfsg/plugin/dummycontrolplugin/dummycontrolplugin.cpp
Examining data/dlt-viewer-2.19.0+dfsg/plugin/dummycontrolplugin/dummycontrolplugin.h
Examining data/dlt-viewer-2.19.0+dfsg/plugin/dummycontrolplugin/form.cpp
Examining data/dlt-viewer-2.19.0+dfsg/plugin/dummycontrolplugin/form.h
Examining data/dlt-viewer-2.19.0+dfsg/plugin/dummydecoderplugin/dummydecoderplugin.cpp
Examining data/dlt-viewer-2.19.0+dfsg/plugin/dummydecoderplugin/dummydecoderplugin.h
Examining data/dlt-viewer-2.19.0+dfsg/plugin/dummyviewerplugin/dummyviewerplugin.cpp
Examining data/dlt-viewer-2.19.0+dfsg/plugin/dummyviewerplugin/dummyviewerplugin.h
Examining data/dlt-viewer-2.19.0+dfsg/plugin/dummyviewerplugin/form.cpp
Examining data/dlt-viewer-2.19.0+dfsg/plugin/dummyviewerplugin/form.h
Examining data/dlt-viewer-2.19.0+dfsg/plugin/filetransferplugin/configuration.cpp
Examining data/dlt-viewer-2.19.0+dfsg/plugin/filetransferplugin/configuration.h
Examining data/dlt-viewer-2.19.0+dfsg/plugin/filetransferplugin/file.cpp
Examining data/dlt-viewer-2.19.0+dfsg/plugin/filetransferplugin/file.h
Examining data/dlt-viewer-2.19.0+dfsg/plugin/filetransferplugin/filetransferplugin.cpp
Examining data/dlt-viewer-2.19.0+dfsg/plugin/filetransferplugin/filetransferplugin.h
Examining data/dlt-viewer-2.19.0+dfsg/plugin/filetransferplugin/form.cpp
Examining data/dlt-viewer-2.19.0+dfsg/plugin/filetransferplugin/form.h
Examining data/dlt-viewer-2.19.0+dfsg/plugin/filetransferplugin/globals.h
Examining data/dlt-viewer-2.19.0+dfsg/plugin/filetransferplugin/imagepreviewdialog.cpp
Examining data/dlt-viewer-2.19.0+dfsg/plugin/filetransferplugin/imagepreviewdialog.h
Examining data/dlt-viewer-2.19.0+dfsg/plugin/filetransferplugin/textviewdialog.cpp
Examining data/dlt-viewer-2.19.0+dfsg/plugin/filetransferplugin/textviewdialog.h
Examining data/dlt-viewer-2.19.0+dfsg/plugin/nonverboseplugin/nonverboseplugin.cpp
Examining data/dlt-viewer-2.19.0+dfsg/plugin/nonverboseplugin/nonverboseplugin.h
Examining data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c
Examining data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.h
Examining data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common_cfg.h
Examining data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_protocol.h
Examining data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_types.h
Examining data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_user.h
Examining data/dlt-viewer-2.19.0+dfsg/qdlt/export_rules.h
Examining data/dlt-viewer-2.19.0+dfsg/qdlt/plugininterface.h
Examining data/dlt-viewer-2.19.0+dfsg/qdlt/qdlt.h
Examining data/dlt-viewer-2.19.0+dfsg/qdlt/qdltargument.cpp
Examining data/dlt-viewer-2.19.0+dfsg/qdlt/qdltargument.h
Examining data/dlt-viewer-2.19.0+dfsg/qdlt/qdltbase.cpp
Examining data/dlt-viewer-2.19.0+dfsg/qdlt/qdltbase.h
Examining data/dlt-viewer-2.19.0+dfsg/qdlt/qdltconnection.cpp
Examining data/dlt-viewer-2.19.0+dfsg/qdlt/qdltconnection.h
Examining data/dlt-viewer-2.19.0+dfsg/qdlt/qdltcontrol.cpp
Examining data/dlt-viewer-2.19.0+dfsg/qdlt/qdltcontrol.h
Examining data/dlt-viewer-2.19.0+dfsg/qdlt/qdltdefaultfilter.cpp
Examining data/dlt-viewer-2.19.0+dfsg/qdlt/qdltdefaultfilter.h
Examining data/dlt-viewer-2.19.0+dfsg/qdlt/qdltfile.cpp
Examining data/dlt-viewer-2.19.0+dfsg/qdlt/qdltfile.h
Examining data/dlt-viewer-2.19.0+dfsg/qdlt/qdltfilter.cpp
Examining data/dlt-viewer-2.19.0+dfsg/qdlt/qdltfilter.h
Examining data/dlt-viewer-2.19.0+dfsg/qdlt/qdltfilterindex.cpp
Examining data/dlt-viewer-2.19.0+dfsg/qdlt/qdltfilterindex.h
Examining data/dlt-viewer-2.19.0+dfsg/qdlt/qdltfilterlist.cpp
Examining data/dlt-viewer-2.19.0+dfsg/qdlt/qdltfilterlist.h
Examining data/dlt-viewer-2.19.0+dfsg/qdlt/qdltipconnection.cpp
Examining data/dlt-viewer-2.19.0+dfsg/qdlt/qdltipconnection.h
Examining data/dlt-viewer-2.19.0+dfsg/qdlt/qdltmsg.cpp
Examining data/dlt-viewer-2.19.0+dfsg/qdlt/qdltmsg.h
Examining data/dlt-viewer-2.19.0+dfsg/qdlt/qdltplugin.cpp
Examining data/dlt-viewer-2.19.0+dfsg/qdlt/qdltplugin.h
Examining data/dlt-viewer-2.19.0+dfsg/qdlt/qdltpluginmanager.cpp
Examining data/dlt-viewer-2.19.0+dfsg/qdlt/qdltpluginmanager.h
Examining data/dlt-viewer-2.19.0+dfsg/qdlt/qdltsegmentedmsg.cpp
Examining data/dlt-viewer-2.19.0+dfsg/qdlt/qdltsegmentedmsg.h
Examining data/dlt-viewer-2.19.0+dfsg/qdlt/qdltserialconnection.cpp
Examining data/dlt-viewer-2.19.0+dfsg/qdlt/qdltserialconnection.h
Examining data/dlt-viewer-2.19.0+dfsg/qdlt/qdlttcpconnection.cpp
Examining data/dlt-viewer-2.19.0+dfsg/qdlt/qdlttcpconnection.h
Examining data/dlt-viewer-2.19.0+dfsg/qdlt/qdltudpconnection.cpp
Examining data/dlt-viewer-2.19.0+dfsg/qdlt/qdltudpconnection.h
Examining data/dlt-viewer-2.19.0+dfsg/sdk/mainpage.h
Examining data/dlt-viewer-2.19.0+dfsg/src/applicationdialog.cpp
Examining data/dlt-viewer-2.19.0+dfsg/src/applicationdialog.h
Examining data/dlt-viewer-2.19.0+dfsg/src/contextdialog.cpp
Examining data/dlt-viewer-2.19.0+dfsg/src/contextdialog.h
Examining data/dlt-viewer-2.19.0+dfsg/src/dltexporter.cpp
Examining data/dlt-viewer-2.19.0+dfsg/src/dltexporter.h
Examining data/dlt-viewer-2.19.0+dfsg/src/dltfileindexer.cpp
Examining data/dlt-viewer-2.19.0+dfsg/src/dltfileindexer.h
Examining data/dlt-viewer-2.19.0+dfsg/src/dltfileindexerdefaultfilterthread.cpp
Examining data/dlt-viewer-2.19.0+dfsg/src/dltfileindexerdefaultfilterthread.h
Examining data/dlt-viewer-2.19.0+dfsg/src/dltfileindexerthread.cpp
Examining data/dlt-viewer-2.19.0+dfsg/src/dltfileindexerthread.h
Examining data/dlt-viewer-2.19.0+dfsg/src/dltfileutils.cpp
Examining data/dlt-viewer-2.19.0+dfsg/src/dltfileutils.h
Examining data/dlt-viewer-2.19.0+dfsg/src/dltmsgqueue.cpp
Examining data/dlt-viewer-2.19.0+dfsg/src/dltmsgqueue.h
Examining data/dlt-viewer-2.19.0+dfsg/src/dltsettingsmanager.cpp
Examining data/dlt-viewer-2.19.0+dfsg/src/dltsettingsmanager.h
Examining data/dlt-viewer-2.19.0+dfsg/src/dlttableview.cpp
Examining data/dlt-viewer-2.19.0+dfsg/src/dlttableview.h
Examining data/dlt-viewer-2.19.0+dfsg/src/dltuiutils.cpp
Examining data/dlt-viewer-2.19.0+dfsg/src/dltuiutils.h
Examining data/dlt-viewer-2.19.0+dfsg/src/ecudialog.cpp
Examining data/dlt-viewer-2.19.0+dfsg/src/ecudialog.h
Examining data/dlt-viewer-2.19.0+dfsg/src/exporterdialog.cpp
Examining data/dlt-viewer-2.19.0+dfsg/src/exporterdialog.h
Examining data/dlt-viewer-2.19.0+dfsg/src/fieldnames.cpp
Examining data/dlt-viewer-2.19.0+dfsg/src/fieldnames.h
Examining data/dlt-viewer-2.19.0+dfsg/src/filterdialog.cpp
Examining data/dlt-viewer-2.19.0+dfsg/src/filterdialog.h
Examining data/dlt-viewer-2.19.0+dfsg/src/filtertreewidget.cpp
Examining data/dlt-viewer-2.19.0+dfsg/src/filtertreewidget.h
Examining data/dlt-viewer-2.19.0+dfsg/src/injectiondialog.cpp
Examining data/dlt-viewer-2.19.0+dfsg/src/injectiondialog.h
Examining data/dlt-viewer-2.19.0+dfsg/src/jumptodialog.cpp
Examining data/dlt-viewer-2.19.0+dfsg/src/jumptodialog.h
Examining data/dlt-viewer-2.19.0+dfsg/src/main.cpp
Examining data/dlt-viewer-2.19.0+dfsg/src/mainwindow.cpp
Examining data/dlt-viewer-2.19.0+dfsg/src/mainwindow.h
Examining data/dlt-viewer-2.19.0+dfsg/src/mcudpsocket.cpp
Examining data/dlt-viewer-2.19.0+dfsg/src/mcudpsocket.h
Examining data/dlt-viewer-2.19.0+dfsg/src/multiplecontextdialog.cpp
Examining data/dlt-viewer-2.19.0+dfsg/src/multiplecontextdialog.h
Examining data/dlt-viewer-2.19.0+dfsg/src/optmanager.cpp
Examining data/dlt-viewer-2.19.0+dfsg/src/optmanager.h
Examining data/dlt-viewer-2.19.0+dfsg/src/plugindialog.cpp
Examining data/dlt-viewer-2.19.0+dfsg/src/plugindialog.h
Examining data/dlt-viewer-2.19.0+dfsg/src/plugintreewidget.cpp
Examining data/dlt-viewer-2.19.0+dfsg/src/plugintreewidget.h
Examining data/dlt-viewer-2.19.0+dfsg/src/project.cpp
Examining data/dlt-viewer-2.19.0+dfsg/src/project.h
Examining data/dlt-viewer-2.19.0+dfsg/src/pulsebutton.cpp
Examining data/dlt-viewer-2.19.0+dfsg/src/pulsebutton.h
Examining data/dlt-viewer-2.19.0+dfsg/src/searchdialog.cpp
Examining data/dlt-viewer-2.19.0+dfsg/src/searchdialog.h
Examining data/dlt-viewer-2.19.0+dfsg/src/searchtablemodel.cpp
Examining data/dlt-viewer-2.19.0+dfsg/src/searchtablemodel.h
Examining data/dlt-viewer-2.19.0+dfsg/src/settingsdialog.cpp
Examining data/dlt-viewer-2.19.0+dfsg/src/settingsdialog.h
Examining data/dlt-viewer-2.19.0+dfsg/src/tablemodel.cpp
Examining data/dlt-viewer-2.19.0+dfsg/src/tablemodel.h
Examining data/dlt-viewer-2.19.0+dfsg/src/version.h
Examining data/dlt-viewer-2.19.0+dfsg/src/workingdirectory.cpp
Examining data/dlt-viewer-2.19.0+dfsg/src/workingdirectory.h

FINAL RESULTS:

data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:449:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(str,"Filter file %s cannot be opened!\n",filename);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:533:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(str,"Filter file %s cannot be opened!\n",filename);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:758:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(text,"%s.%.6d ",buffer,msg->storageheader->microseconds);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:829:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(text+strlen(text),"%s",message_type[DLT_GET_MSIN_MSTP(msg->extendedheader->msin)]);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:837:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(text+strlen(text),"%s",log_info[DLT_GET_MSIN_MTIN(msg->extendedheader->msin)]);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:842:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(text+strlen(text),"%s",trace_type[DLT_GET_MSIN_MTIN(msg->extendedheader->msin)]);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:847:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(text+strlen(text),"%s",nw_trace_type[DLT_GET_MSIN_MTIN(msg->extendedheader->msin)]);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:852:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(text+strlen(text),"%s",control_type[DLT_GET_MSIN_MTIN(msg->extendedheader->msin)]);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:983:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(text+strlen(text),"%s",service_id[id]); /* service id */
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1011:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(text+strlen(text),"%s",return_type[retval]);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1643:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(str,"File %s cannot be opened!\n",filename);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1668:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(str,"%s: Message %d:\n",__func__, file->counter_total);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1783:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(str,"%s: Message %d:\n",__func__, file->counter_total);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:2021:9:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
        syslog(prio, logfmtstring, s);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:2027:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(logfmtstring, s);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:2942:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf,"DLT Package Version: %s %s, Package Revision: %s, build on %s %s\n",
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:3270:6:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
					sprintf(text+strlen(text),"%" PRId64,value64i);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:3284:6:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
					sprintf(text+strlen(text),"%" PRIu64,value64u);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.h:205:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(_strbuf, "%s()\n",__func__); \
data/dlt-viewer-2.19.0+dfsg/examples/dlt-speed-app/dlt-speed-app.c:148:17:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((c = getopt (argc, argv, "hgad:f:n:")) != -1)
data/dlt-viewer-2.19.0+dfsg/examples/dlt-speed-app/dlt-speed-app.c:120: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 version[255];
data/dlt-viewer-2.19.0+dfsg/examples/dlt-speed-app/dlt-speed-app.c:261: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).
    if (nvalue && (atoi(nvalue)>0) )
data/dlt-viewer-2.19.0+dfsg/examples/dlt-speed-app/dlt-speed-app.c:263:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        maxMessageCount = atoi(nvalue);
data/dlt-viewer-2.19.0+dfsg/examples/dlt-speed-app/dlt-speed-app.c:272: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).
    if (dvalue && (atoi(dvalue)>0) )
data/dlt-viewer-2.19.0+dfsg/examples/dlt-speed-app/dlt-speed-app.c:274:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        delay = atoi(dvalue) * 1000;
data/dlt-viewer-2.19.0+dfsg/examples/dlt-speed-app/dlt-speed-app.c:289: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 text[1024];
data/dlt-viewer-2.19.0+dfsg/examples/dlt-speed-app/dlt-speed-app.c:294:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	int par = atoi ( (char *) data);
data/dlt-viewer-2.19.0+dfsg/parser/examples/example_5/dlt.c:32:10:  [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 DLT_BUFFER[DLT_BUFFER_SIZE];
data/dlt-viewer-2.19.0+dfsg/parser/examples/example_5/dlt.c:348:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dltuser.buf_write,&(messageid),sizeof(uint32));
data/dlt-viewer-2.19.0+dfsg/parser/examples/example_5/dlt.c:477: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(dltuser.buf_write,&lengthvalue,sizeof(uint16));
data/dlt-viewer-2.19.0+dfsg/parser/examples/example_5/dlt.c:483:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dltuser.buf_write,data,length);
data/dlt-viewer-2.19.0+dfsg/parser/examples/example_5/dlt_protocol.h:102:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char dltSerialHeader[DLT_ID_SIZE];
data/dlt-viewer-2.19.0+dfsg/parser/examples/example_5/dlt_protocol.h:137:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ecu[DLT_ID_SIZE];       /**< ECU id */
data/dlt-viewer-2.19.0+dfsg/parser/examples/example_5/dlt_protocol.h:158:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char apid[DLT_ID_SIZE];          /**< application id */
data/dlt-viewer-2.19.0+dfsg/parser/examples/example_5/dlt_protocol.h:159:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ctid[DLT_ID_SIZE];          /**< context id */
data/dlt-viewer-2.19.0+dfsg/parser/examples/example_5/dlt_protocol.h:290:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char pattern[DLT_ID_SIZE];		/**< This pattern should be DLT0x01 */
data/dlt-viewer-2.19.0+dfsg/parser/examples/example_5/dlt_protocol.h:293:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ecu[DLT_ID_SIZE];			/**< The ECU id is added, if it is not already in the DLT message itself */
data/dlt-viewer-2.19.0+dfsg/parser/examples/example_5/mainwindow.cpp:92:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[100];
data/dlt-viewer-2.19.0+dfsg/parser/examples/example_5/mainwindow.cpp:106:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file.open(QIODevice::ReadOnly);
data/dlt-viewer-2.19.0+dfsg/parser/qdltparser.cpp:55: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).
    if(!file.open(QFile::ReadOnly))
data/dlt-viewer-2.19.0+dfsg/parser/qdltparser.cpp:122: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(!fileWrite.open(QFile::WriteOnly))
data/dlt-viewer-2.19.0+dfsg/parser/qdltparser.cpp:129: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).
    if(!file.open(QFile::ReadOnly))
data/dlt-viewer-2.19.0+dfsg/parser/qdltparser.cpp:698:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!file.open(QFile::WriteOnly | QFile::Truncate | QFile::Text))
data/dlt-viewer-2.19.0+dfsg/parser/qdltparser.cpp:896:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!file.open(QFile::WriteOnly | QFile::Truncate | QFile::Text))
data/dlt-viewer-2.19.0+dfsg/parser/qdltparser.cpp:980: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 (!file.open(QFile::WriteOnly | QFile::Truncate | QFile::Text))
data/dlt-viewer-2.19.0+dfsg/parser/qdltparser.cpp:1005:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            if (!file.open(QFile::WriteOnly | QFile::Truncate | QFile::Text))
data/dlt-viewer-2.19.0+dfsg/parser/qdltparser.cpp:1146: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).
   if (!file.open(QFile::ReadOnly | QFile::Text))
data/dlt-viewer-2.19.0+dfsg/parser/qdltparser.cpp:1572: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(QIODevice::ReadOnly | QIODevice::Text))
data/dlt-viewer-2.19.0+dfsg/plugin/dltdbusplugin/dltdbusplugin.cpp:120: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 (!file.open(QFile::ReadOnly | QFile::Text))
data/dlt-viewer-2.19.0+dfsg/plugin/dltlogstorageplugin/logstorageconfigcreatorform.cpp:210:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!file.open(QFile::WriteOnly | QFile::Text))
data/dlt-viewer-2.19.0+dfsg/plugin/dltlogstorageplugin/logstorageconfigcreatorform.cpp:250:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!file.open(QFile::ReadOnly | QFile::Text))
data/dlt-viewer-2.19.0+dfsg/plugin/dummycommandplugin/dummycommandplugin.cpp:78:17:  [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(!dst.open(QIODevice::WriteOnly|QIODevice::Append))
data/dlt-viewer-2.19.0+dfsg/plugin/dummycommandplugin/dummycommandplugin.cpp:85:17:  [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(!dst.open(QIODevice::WriteOnly|QIODevice::Truncate))
data/dlt-viewer-2.19.0+dfsg/plugin/filetransferplugin/file.cpp:182: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(QIODevice::WriteOnly)){
data/dlt-viewer-2.19.0+dfsg/plugin/filetransferplugin/filetransferplugin.cpp:79:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!file.open(QFile::ReadOnly | QFile::Text))
data/dlt-viewer-2.19.0+dfsg/plugin/filetransferplugin/form.cpp:181:15:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        File *tmpfile;
data/dlt-viewer-2.19.0+dfsg/plugin/filetransferplugin/form.cpp:280:15:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        File *tmpfile;
data/dlt-viewer-2.19.0+dfsg/plugin/filetransferplugin/form.cpp:293:13:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        if (tmpfile != NULL && tmpfile->isComplete() )
data/dlt-viewer-2.19.0+dfsg/plugin/nonverboseplugin/nonverboseplugin.cpp:112:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!file.open(QFile::ReadOnly | QFile::Text))
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:103:8:  [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 str[DLT_COMMON_BUFFER_LENGTH];
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:166: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(text,"%.2x",((uint8_t*)ptr)[num]);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:201: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(str, "String does not fit mixed data (available=%d, required=%d) !\n", textlength, required_size);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:210: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(text,"%.6x: ",lines * DLT_COMMON_HEX_CHARS);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:234: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(text,"<BR>");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:245: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(text,"%.6x: ", (size / DLT_COMMON_HEX_CHARS) * DLT_COMMON_HEX_CHARS);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:256: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(text," xx");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:303: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(*text,"%c",((char *)ptr)[num]);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:303: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.
                sprintf(*text,"%c",((char *)ptr)[num]);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:436: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 str1[DLT_COMMON_BUFFER_LENGTH];
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:437: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 apid[DLT_ID_SIZE],ctid[DLT_ID_SIZE];
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:446:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    handle = fopen(filename,"r");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:505: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(str, "Maximum number (%d) of allowed filters reached!\n", DLT_FILTER_MAX);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:521:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[DLT_COMMON_BUFFER_LENGTH];
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:530:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    handle = fopen(filename,"w");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:734:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer [DLT_COMMON_BUFFER_LENGTH];
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:767: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(text+strlen(text),"%10u ",msg->headerextra.tmsp);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:771: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(text+strlen(text),"---------- ");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:778: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(text+strlen(text),"%.3d ",msg->standardheader->mcnt);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:804: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(text+strlen(text),"----");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:818: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(text+strlen(text),"----");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:876: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(text+strlen(text),"%d", msg->extendedheader->noar);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:884: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(text+strlen(text),"--- ");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:889: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(text+strlen(text),"--- ");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:894: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(text+strlen(text),"N ");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:989:21:  [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(text+strlen(text),"service(%u)",id); /* service id */
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:995: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(text+strlen(text),", ");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1000: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(text+strlen(text),"%u, ",id); /* message id */
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1015:21:  [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(text+strlen(text),"%.2x",retval);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1020:21:  [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(text+strlen(text),", ");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1032: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(text+strlen(text)," ...");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1172: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(msg->headerbuffer+sizeof(DltStorageHeader),buffer,sizeof(DltStandardHeader));
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1185: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(str,"Buffer length: %d\n",length);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1190: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(str,"Header Size: %d\n",msg->headersize);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1195: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(str,"Data Size: %d\n",msg->datasize);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1202: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(str,"Plausibility check failed. Complete message size too short (%d)!\n",msg->datasize);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1215: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(msg->headerbuffer+sizeof(DltStorageHeader)+sizeof(DltStandardHeader),buffer+sizeof(DltStandardHeader),extra_size);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1248: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(str,"Cannot allocate memory for payload buffer of size %d!\n",msg->datasize);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1254: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(msg->databuffer,buffer+(msg->headersize-sizeof(DltStorageHeader)),msg->datasize);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1270: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(msg->headerextra.ecu,msg->headerbuffer + sizeof(DltStorageHeader) + sizeof(DltStandardHeader),DLT_ID_SIZE);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1275: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(&(msg->headerextra.seid),msg->headerbuffer + sizeof(DltStorageHeader) + sizeof(DltStandardHeader)
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1282: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(&(msg->headerextra.tmsp),msg->headerbuffer + sizeof(DltStorageHeader) + sizeof(DltStandardHeader)
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1302: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(msg->headerbuffer + sizeof(DltStorageHeader) + sizeof(DltStandardHeader),msg->headerextra.ecu,DLT_ID_SIZE);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1308: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(msg->headerbuffer + sizeof(DltStorageHeader) + sizeof(DltStandardHeader)
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1315: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(msg->headerbuffer + sizeof(DltStorageHeader) + sizeof(DltStandardHeader)
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1400: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(str,"Header Size: %d\n",file->msg.headersize);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1405: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(str,"Data Size: %d\n",file->msg.datasize);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1412: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(str,"Plausibility check failed. Complete message size too short! (%d)\n", file->msg.datasize);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1422: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 dltSerialHeaderBuffer[DLT_ID_SIZE];
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1506: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(str,"Header Size: %d\n",file->msg.headersize);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1511: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(str,"Data Size: %d\n",file->msg.datasize);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1518: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(str,"Plausibility check failed. Complete message size too short! (%d)\n", file->msg.datasize);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1598: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(str,"Cannot allocate memory for payload buffer of size %d!\n",file->msg.datasize);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1608: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(str,"Cannot read payload data from file of size %d!\n",file->msg.datasize);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1640:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file->handle = fopen(filename,"rb");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1655: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(str,"File is %lu bytes long\n",file->file_length);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1689:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(ptr,file->index,file->counter * sizeof(long));
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1701: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(str,"Position in file: %ld\n",file->file_position);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1740: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(str,"Seek failed to skip payload data of size %d!\n",file->msg.datasize);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1753: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(str,"Seek failed to skip extra header and payload data from file of size %zu!\n",
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1802:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(ptr,file->index,file->counter * sizeof(long));
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1814: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(str,"Position in file: %ld\n",file->file_position);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1888: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(str,"Message %d out of range!\r\n",index);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1896: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(str,"Seek to message %d to position %ld failed!\r\n",index,file->index[index]);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1961: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 logfmtstring[DLT_COMMON_BUFFER_LENGTH];
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1972:13:  [2] (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). Risk is low because the source is a constant string.
            strcpy(logfmtstring,"DLT| EMERGENCY: %s");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1977:13:  [2] (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). Risk is low because the source is a constant string.
            strcpy(logfmtstring,"DLT| ALERT:     %s");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1982:13:  [2] (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). Risk is low because the source is a constant string.
            strcpy(logfmtstring,"DLT| CRITICAL:  %s");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1987:13:  [2] (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). Risk is low because the source is a constant string.
            strcpy(logfmtstring,"DLT| ERROR:     %s");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1992:13:  [2] (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). Risk is low because the source is a constant string.
            strcpy(logfmtstring,"DLT| WARNING:   %s");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1997:13:  [2] (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). Risk is low because the source is a constant string.
            strcpy(logfmtstring,"DLT| NOTICE:    %s");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:2002:13:  [2] (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). Risk is low because the source is a constant string.
            strcpy(logfmtstring,"DLT| INFO:      %s");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:2007:13:  [2] (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). Risk is low because the source is a constant string.
            strcpy(logfmtstring,"DLT| DEBUG:     %s");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:2012:13:  [2] (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). Risk is low because the source is a constant string.
            strcpy(logfmtstring,"DLT|            %s");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:2323: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(&(dltbuf->buffer[dltbuf->pos_write]), &size, sui);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:2338: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(dltbuf->buffer + dltbuf->pos_write, data, part1);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:2339: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(dltbuf->buffer, ((char*)data) + part1, part2);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:2346: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(&(dltbuf->buffer[dltbuf->pos_write]), data, size);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:2395: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(&(dltbuf->buffer[dltbuf->pos_write]), &total_size, sui);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:2411: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(dltbuf->buffer + dltbuf->pos_write, data1, part1);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:2412: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(dltbuf->buffer, ((char*)data1) + part1, part2);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:2419: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(&(dltbuf->buffer[dltbuf->pos_write]), data1, size1);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:2436: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(dltbuf->buffer + dltbuf->pos_write, data2, part1);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:2437: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(dltbuf->buffer, ((char*)data2) + part1, part2);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:2444: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(&(dltbuf->buffer[dltbuf->pos_write]), data2, size2);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:2461: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(dltbuf->buffer + dltbuf->pos_write, data3, part1);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:2462: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(dltbuf->buffer, ((char*)data3) + part1, part2);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:2469: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(dltbuf->buffer + dltbuf->pos_write, data3, size3);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:2514: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(&tmpsize,&(dltbuf->buffer[dltbuf->pos_read]), sui);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:2531:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(data, dltbuf->buffer + dltbuf->pos_read, part1);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:2532:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(((char*)data)+part1, dltbuf->buffer, part2);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:2539:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(data, &(dltbuf->buffer[dltbuf->pos_read]), tmpsize);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:2589: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(&tmpsize,&(dltbuf->buffer[dltbuf->pos_read]), sui);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:3124: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(text+strlen(text),"%d",value8u);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:3197:21:  [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(text+strlen(text),"%d",value8i);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:3205:21:  [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(text+strlen(text),"%d",value8u);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:3219:6:  [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(text+strlen(text),"%hd",value16i);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:3229:6:  [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(text+strlen(text),"%hu",value16u);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:3243:6:  [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(text+strlen(text),"%d",value32i);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:3253:6:  [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(text+strlen(text),"%u",value32u);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:3268:6:  [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(text+strlen(text),"%I64d",value64i);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:3282:6:  [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(text+strlen(text),"%I64u",value64u);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:3360:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(&value32f_tmp_int32i,&value32f_tmp,sizeof(float32_t));
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:3362:6:  [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(&value32f,&value32f_tmp_int32i_swaped,sizeof(float32_t));
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:3363:6:  [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(text+strlen(text),"%g",value32f);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:3383:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(&value64f_tmp_int64i,&value64f_tmp,sizeof(float64_t));
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:3385:6:  [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(&value64f,&value64f_tmp_int64i_swaped,sizeof(float64_t));
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:3386:6:  [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(text+strlen(text),"%g",value64f);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.h:201: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.
	static char _strbuf[255]; \
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.h:270:11:  [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(dst,src,DLT_ID_SIZE);src+=DLT_ID_SIZE;length-=DLT_ID_SIZE; } \
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.h:278:11:  [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(dst,src,length);dlt_clean_string(dst,length);dst[length]=0; \
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.h:309:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
QDLT_C_EXPORT extern const char dltSerialHeader[DLT_ID_SIZE];
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.h:317: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.
QDLT_C_EXPORT extern char dltSerialHeaderChar[DLT_ID_SIZE];
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.h:323: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.
typedef char ID4[DLT_ID_SIZE];
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.h: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 pattern[DLT_ID_SIZE];		/**< This pattern should be DLT0x01 */
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.h:333: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 ecu[DLT_ID_SIZE];			/**< The ECU id is added, if it is not already in the DLT message itself */
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.h:351: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 ecu[DLT_ID_SIZE];       /**< ECU id */
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.h:363: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 apid[DLT_ID_SIZE];          /**< application id */
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.h:364: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 ctid[DLT_ID_SIZE];          /**< context id */
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.h:402: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 apid[DLT_ID_SIZE];                   /**< application id */
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.h:403: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 ctid[DLT_ID_SIZE];                   /**< context id */
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.h:404: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 com[DLT_ID_SIZE];                    /**< communication interface */
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.h:413: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 apid[DLT_ID_SIZE];                   /**< application id */
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.h:414: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 ctid[DLT_ID_SIZE];                   /**< context id */
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.h:416: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 com[DLT_ID_SIZE];                    /**< communication interface */
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.h:426: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 com[DLT_ID_SIZE];                    /**< communication interface */
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.h:444: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 com[DLT_ID_SIZE];                    /**< communication interface */
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.h:454: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 com[DLT_ID_SIZE];                    /**< communication interface */
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.h:498: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 apid[DLT_ID_SIZE];         /**< application id */
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.h:499: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 ctid[DLT_ID_SIZE];         /**< context id */
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.h:500: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 comid[DLT_ID_SIZE];        /**< communication interface */
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.h:511: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 comid[DLT_ID_SIZE];        /**< communication interface */
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.h:541: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 apid[DLT_FILTER_MAX][DLT_ID_SIZE]; /**< application id */
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.h:542: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 ctid[DLT_FILTER_MAX][DLT_ID_SIZE]; /**< context id */
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_user.h:154:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char contextID[4];                            /**< context id */
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_user.h:164:11:  [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[DLT_USER_BUF_MAX_SIZE];  /**< buffer for building log message*/
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_user.h: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 contextID[DLT_ID_SIZE];      /**< Context ID */
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_user.h:197: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 ecuID[DLT_ID_SIZE];             /**< ECU ID */
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_user.h:198: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 appID[DLT_ID_SIZE];             /**< Application ID */
data/dlt-viewer-2.19.0+dfsg/qdlt/qdltbase.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.
    static const char hexmap[16] = {'0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'};
data/dlt-viewer-2.19.0+dfsg/qdlt/qdltfile.cpp:101: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).
bool QDltFile::open(QString _filename, bool append)
data/dlt-viewer-2.19.0+dfsg/qdlt/qdltfile.cpp:117: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).
    if(item->infile.open(QIODevice::ReadOnly)==false)
data/dlt-viewer-2.19.0+dfsg/qdlt/qdltfile.h:97:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    bool open(QString _filename,bool append = false);
data/dlt-viewer-2.19.0+dfsg/qdlt/qdltfilterlist.cpp:174:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!file.open(QFile::WriteOnly | QFile::Truncate | QFile::Text))
data/dlt-viewer-2.19.0+dfsg/qdlt/qdltfilterlist.cpp:240:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!file.open(QFile::ReadOnly | QFile::Text))
data/dlt-viewer-2.19.0+dfsg/qdlt/qdltmsg.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 strtime[256];
data/dlt-viewer-2.19.0+dfsg/qdlt/qdltmsg.cpp:211:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(headerextra.ecu,buf.constData() + sizeStorageHeader + sizeof(DltStandardHeader),DLT_ID_SIZE);
data/dlt-viewer-2.19.0+dfsg/qdlt/qdltmsg.cpp:216:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&(headerextra.seid),buf.constData() + sizeStorageHeader + sizeof(DltStandardHeader)
data/dlt-viewer-2.19.0+dfsg/qdlt/qdltmsg.cpp:223:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&(headerextra.tmsp),buf.constData() + sizeStorageHeader + sizeof(DltStandardHeader)
data/dlt-viewer-2.19.0+dfsg/src/dltexporter.cpp:91:17:  [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(!to->open(QIODevice::WriteOnly | QIODevice::Text))
data/dlt-viewer-2.19.0+dfsg/src/dltexporter.cpp:105:17:  [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(!to->open(QIODevice::WriteOnly))
data/dlt-viewer-2.19.0+dfsg/src/dltfileindexer.cpp:92: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/dlt-viewer-2.19.0+dfsg/src/dltfileindexer.cpp:713: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).
    if(!file.open(QFile::WriteOnly))
data/dlt-viewer-2.19.0+dfsg/src/dltfileindexer.cpp:746: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).
    if(!file.open(QFile::ReadOnly))
data/dlt-viewer-2.19.0+dfsg/src/dltfileutils.cpp:48:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if( false == file.open(QIODevice::ReadWrite) )
data/dlt-viewer-2.19.0+dfsg/src/mainwindow.cpp:578:35:  [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(true == outputfile.open(QIODevice::WriteOnly|QIODevice::Truncate))
data/dlt-viewer-2.19.0+dfsg/src/mainwindow.cpp:889: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).
    if(true == outputfile.open(QIODevice::WriteOnly|QIODevice::Truncate))
data/dlt-viewer-2.19.0+dfsg/src/mainwindow.cpp:1005: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).
    if(true == outputfile.open(QIODevice::WriteOnly|QIODevice::Append))
data/dlt-viewer-2.19.0+dfsg/src/mainwindow.cpp:1026:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if(outputfile.open(QIODevice::ReadOnly))
data/dlt-viewer-2.19.0+dfsg/src/mainwindow.cpp:1484: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(outputfile.open(QIODevice::WriteOnly|QIODevice::Append))
data/dlt-viewer-2.19.0+dfsg/src/mainwindow.cpp:1548: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).
    if(true == outputfile.open(QIODevice::WriteOnly|QIODevice::Truncate))
data/dlt-viewer-2.19.0+dfsg/src/mainwindow.cpp:1807: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).
            bool back = qfile.open(openFileNames[num],num!=0);
data/dlt-viewer-2.19.0+dfsg/src/mainwindow.cpp:3195:36:  [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).
            ecuitem->m_serialport->open(QIODevice::ReadWrite);
data/dlt-viewer-2.19.0+dfsg/src/mainwindow.cpp:3668: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).
    if(true == outputfile.open(QIODevice::WriteOnly|QIODevice::Truncate))
data/dlt-viewer-2.19.0+dfsg/src/mainwindow.cpp:3894: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 apid[DLT_ID_SIZE+1];
data/dlt-viewer-2.19.0+dfsg/src/mainwindow.cpp:3906: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 ctid[DLT_ID_SIZE+1];
data/dlt-viewer-2.19.0+dfsg/src/mainwindow.cpp:3951: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 com_interface[DLT_ID_SIZE];
data/dlt-viewer-2.19.0+dfsg/src/mainwindow.cpp:4573: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(msg.databuffer,&sid,sizeof(sid));
data/dlt-viewer-2.19.0+dfsg/src/mainwindow.cpp:4643: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(msg.databuffer  , &serviceID,sizeof(serviceID));
data/dlt-viewer-2.19.0+dfsg/src/mainwindow.cpp:4644: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(msg.databuffer+4, &size, sizeof(size));
data/dlt-viewer-2.19.0+dfsg/src/mainwindow.cpp:4648:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(msg.databuffer+8,hexData.data(),hexData.size());
data/dlt-viewer-2.19.0+dfsg/src/mainwindow.cpp:4652:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(msg.databuffer+8, injectionData.toUtf8(), size);
data/dlt-viewer-2.19.0+dfsg/src/mainwindow.cpp:4807:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(msg.databuffer  , &serviceID,sizeof(serviceID));
data/dlt-viewer-2.19.0+dfsg/src/mainwindow.cpp:4808:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(msg.databuffer+4, &size, sizeof(size));
data/dlt-viewer-2.19.0+dfsg/src/mainwindow.cpp:4809:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(msg.databuffer+8, data.constData(), data.size());
data/dlt-viewer-2.19.0+dfsg/src/mainwindow.cpp:5547: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).
    searchDlg->open();
data/dlt-viewer-2.19.0+dfsg/src/mcudpsocket.h: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 mcast[17];
data/dlt-viewer-2.19.0+dfsg/src/mcudpsocket.h:36: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 eth[17];
data/dlt-viewer-2.19.0+dfsg/src/project.cpp:647:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!file.open(QFile::ReadOnly | QFile::Text))
data/dlt-viewer-2.19.0+dfsg/src/project.cpp:1064:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!file.open(QFile::WriteOnly | QFile::Truncate | QFile::Text))
data/dlt-viewer-2.19.0+dfsg/src/settingsdialog.cpp:183: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(!fh.open(QIODevice::ReadWrite))
data/dlt-viewer-2.19.0+dfsg/src/tablemodel.cpp:33:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char buffer[DLT_VIEWER_LIST_BUFFER_SIZE];
data/dlt-viewer-2.19.0+dfsg/examples/dlt-speed-app/dlt-speed-app.c:392:13:  [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.
            usleep(delay);
data/dlt-viewer-2.19.0+dfsg/parser/examples/example_5/dlt.c:566:9:  [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).
	length=strlen(text)+1;
data/dlt-viewer-2.19.0+dfsg/parser/examples/example_5/mainwindow.cpp:116:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            length = file.read(buffer,1);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:162:13:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
            sprintf(text," ");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:219:9:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
        sprintf(text," ");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:229:13:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
            sprintf(text,"\n");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:260:9:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
        sprintf(text," ");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:296:13:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
            sprintf(*text,".");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:307:17:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
                sprintf(*text,".");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:333:13:  [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).
    len = ((strlen(id)<=DLT_ID_SIZE)?strlen(id):DLT_ID_SIZE);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:333: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).
    len = ((strlen(id)<=DLT_ID_SIZE)?strlen(id):DLT_ID_SIZE);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:461:13:  [1] (buffer) fscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
        if (fscanf(handle,"%254s",str1)!=1)
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:481:13:  [1] (buffer) fscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
        if (fscanf(handle,"%254s",str1)!=1)
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:767:26:  [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).
            sprintf(text+strlen(text),"%10u ",msg->headerextra.tmsp);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:771:26:  [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).
            sprintf(text+strlen(text),"---------- ");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:778: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).
        sprintf(text+strlen(text),"%.3d ",msg->standardheader->mcnt);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:786: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).
            dlt_print_id(text+strlen(text),msg->headerextra.ecu);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:790: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).
            dlt_print_id(text+strlen(text),msg->storageheader->ecu);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:797:9:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
        sprintf(text+strlen(text)," ");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:797: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).
        sprintf(text+strlen(text)," ");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:800: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).
            dlt_print_id(text+strlen(text),msg->extendedheader->apid);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:804:26:  [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).
            sprintf(text+strlen(text),"----");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:807:9:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
        sprintf(text+strlen(text)," ");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:807: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).
        sprintf(text+strlen(text)," ");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:814: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).
            dlt_print_id(text+strlen(text),msg->extendedheader->ctid);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:818:26:  [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).
            sprintf(text+strlen(text),"----");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:821:9:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
        sprintf(text+strlen(text)," ");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:821: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).
        sprintf(text+strlen(text)," ");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:829:26:  [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).
            sprintf(text+strlen(text),"%s",message_type[DLT_GET_MSIN_MSTP(msg->extendedheader->msin)]);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:830:13:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
            sprintf(text+strlen(text)," ");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:830:26:  [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).
            sprintf(text+strlen(text)," ");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:837:30:  [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).
                sprintf(text+strlen(text),"%s",log_info[DLT_GET_MSIN_MTIN(msg->extendedheader->msin)]);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:842:30:  [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).
                sprintf(text+strlen(text),"%s",trace_type[DLT_GET_MSIN_MTIN(msg->extendedheader->msin)]);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:847:30:  [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).
                sprintf(text+strlen(text),"%s",nw_trace_type[DLT_GET_MSIN_MTIN(msg->extendedheader->msin)]);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:852:30:  [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).
                sprintf(text+strlen(text),"%s",control_type[DLT_GET_MSIN_MTIN(msg->extendedheader->msin)]);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:855:13:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
            sprintf(text+strlen(text)," ");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:855:26:  [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).
            sprintf(text+strlen(text)," ");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:863:17:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
                sprintf(text+strlen(text),"V");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:863:30:  [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).
                sprintf(text+strlen(text),"V");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:867:17:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
                sprintf(text+strlen(text),"N");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:867:30:  [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).
                sprintf(text+strlen(text),"N");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:870:13:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
            sprintf(text+strlen(text)," ");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:870:26:  [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).
            sprintf(text+strlen(text)," ");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:876:26:  [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).
            sprintf(text+strlen(text),"%d", msg->extendedheader->noar);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:884:26:  [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).
            sprintf(text+strlen(text),"--- ");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:889:26:  [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).
            sprintf(text+strlen(text),"--- ");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:894:26:  [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).
            sprintf(text+strlen(text),"N ");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:899:13:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
            sprintf(text+strlen(text),"-");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:899:26:  [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).
            sprintf(text+strlen(text),"-");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:983:30:  [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).
                sprintf(text+strlen(text),"%s",service_id[id]); /* service id */
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:989: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).
                    sprintf(text+strlen(text),"service(%u)",id); /* service id */
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:995:30:  [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).
                sprintf(text+strlen(text),", ");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1000:26:  [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).
            sprintf(text+strlen(text),"%u, ",id); /* message id */
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1011: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).
                    sprintf(text+strlen(text),"%s",return_type[retval]);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1015: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).
                    sprintf(text+strlen(text),"%.2x",retval);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1020: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).
                    sprintf(text+strlen(text),", ");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1027:43:  [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).
            ret=dlt_print_hex_string(text+strlen(text),(int)(textlength-strlen(text)),ptr,
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1027:73:  [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).
            ret=dlt_print_hex_string(text+strlen(text),(int)(textlength-strlen(text)),ptr,
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1030: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).
                    ((textlength-strlen(text))>4))
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1032:30:  [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).
                sprintf(text+strlen(text)," ...");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1037:43:  [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).
            ret=dlt_print_hex_string(text+strlen(text),(int)(textlength-strlen(text)),ptr,datalength);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1037:73:  [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).
            ret=dlt_print_hex_string(text+strlen(text),(int)(textlength-strlen(text)),ptr,datalength);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1053:13:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
            sprintf(text+strlen(text)," ");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:1053:26:  [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).
            sprintf(text+strlen(text)," ");
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:2126:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if ((receiver->bytesRcvd = read(receiver->fd, receiver->buf + receiver->lastBytesRcvd, receiver->buffersize - receiver->lastBytesRcvd)) <= 0)
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:3101:35:  [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).
        DLT_MSG_READ_STRING((text+strlen(text)),*ptr,*datalength,length);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:3124: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).
        sprintf(text+strlen(text),"%d",value8u);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:3197: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).
                    sprintf(text+strlen(text),"%d",value8i);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:3205: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).
                    sprintf(text+strlen(text),"%d",value8u);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:3219:19:  [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).
					sprintf(text+strlen(text),"%hd",value16i);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:3229:19:  [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).
					sprintf(text+strlen(text),"%hu",value16u);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:3243:19:  [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).
					sprintf(text+strlen(text),"%d",value32i);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:3253:19:  [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).
					sprintf(text+strlen(text),"%u",value32u);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:3268:19:  [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).
					sprintf(text+strlen(text),"%I64d",value64i);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:3270:19:  [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).
					sprintf(text+strlen(text),"%" PRId64,value64i);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:3282:19:  [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).
					sprintf(text+strlen(text),"%I64u",value64u);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:3284:19:  [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).
					sprintf(text+strlen(text),"%" PRIu64,value64u);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:3292:32:  [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).
					dlt_print_hex_string(text+strlen(text),textlength,*ptr,16);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:3332:32:  [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).
					dlt_print_hex_string(text+strlen(text),textlength,*ptr,1);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:3342:32:  [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).
					dlt_print_hex_string(text+strlen(text),textlength,*ptr,2);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:3363:19:  [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).
					sprintf(text+strlen(text),"%g",value32f);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:3386:19:  [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).
					sprintf(text+strlen(text),"%g",value64f);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:3398:32:  [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).
					dlt_print_hex_string(text+strlen(text),textlength,*ptr,16);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:3432:35:  [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).
        dlt_print_hex_string(text+strlen(text),textlength,*ptr,length);
data/dlt-viewer-2.19.0+dfsg/qdlt/dlt_common.c:3443:35:  [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).
        DLT_MSG_READ_STRING((text+strlen(text)),*ptr,*datalength,length);
data/dlt-viewer-2.19.0+dfsg/qdlt/qdltfile.cpp:201:42:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            buf = files[numFile]->infile.read(READ_BUF_SZ);
data/dlt-viewer-2.19.0+dfsg/qdlt/qdltfile.cpp:438:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         buf = file->infile.read(file->infile.size() - positionForIndex);
data/dlt-viewer-2.19.0+dfsg/qdlt/qdltfile.cpp:447:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         buf = file->infile.read(cal_index);
data/dlt-viewer-2.19.0+dfsg/qdlt/qdltmsg.cpp:387:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(storageheader.ecu,ecuid.toLatin1().constData(),ecuid.size()>3?4:ecuid.size()+1);
data/dlt-viewer-2.19.0+dfsg/qdlt/qdltmsg.cpp:414:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(headerextra.ecu,ecuid.toLatin1().constData(),ecuid.size()>3?4:ecuid.size()+1);
data/dlt-viewer-2.19.0+dfsg/qdlt/qdltmsg.cpp:424:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(extendedheader.apid,apid.toLatin1().constData(),apid.size()>3?4:apid.size()+1);
data/dlt-viewer-2.19.0+dfsg/qdlt/qdltmsg.cpp:425:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(extendedheader.ctid,ctid.toLatin1().constData(),ctid.size()>3?4:ctid.size()+1);
data/dlt-viewer-2.19.0+dfsg/src/dltfileindexer.cpp:126:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        length = f.read(data,DLT_FILE_INDEXER_SEG_SIZE);
data/dlt-viewer-2.19.0+dfsg/src/dltfileindexer.cpp:755:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    length = file.read((char*)&version,sizeof(version));
data/dlt-viewer-2.19.0+dfsg/src/dltfileindexer.cpp:768:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        length = file.read((char*)&value,sizeof(value));
data/dlt-viewer-2.19.0+dfsg/src/dltmsgqueue.cpp:27:39:  [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.
            QThread::currentThread()->usleep(writeSleepTime);
data/dlt-viewer-2.19.0+dfsg/src/dltmsgqueue.cpp:48:39:  [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.
            QThread::currentThread()->usleep(readSleepTime);
data/dlt-viewer-2.19.0+dfsg/src/mainwindow.cpp:3430:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                read(ecuitem);
data/dlt-viewer-2.19.0+dfsg/src/mainwindow.cpp:3445:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void MainWindow::read(EcuItem* ecuitem)
data/dlt-viewer-2.19.0+dfsg/src/mainwindow.h:296:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    void read(EcuItem *ecuitem);

ANALYSIS SUMMARY:

Hits = 341
Lines analyzed = 44371 in approximately 1.09 seconds (40657 lines/second)
Physical Source Lines of Code (SLOC) = 29455
Hits@level = [0]  53 [1] 100 [2] 221 [3]   1 [4]  19 [5]   0
Hits@level+ = [0+] 394 [1+] 341 [2+] 241 [3+]  20 [4+]  19 [5+]   0
Hits/KSLOC@level+ = [0+] 13.3763 [1+] 11.577 [2+] 8.18197 [3+] 0.679002 [4+] 0.645052 [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.