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/ukui-panel-3.0.3/plugin-nightmode/nightmode.cpp
Examining data/ukui-panel-3.0.3/plugin-nightmode/nightmode.h
Examining data/ukui-panel-3.0.3/plugin-taskbar/ukuitaskbarconfiguration.cpp
Examining data/ukui-panel-3.0.3/plugin-taskbar/ukuitaskbutton.cpp
Examining data/ukui-panel-3.0.3/plugin-taskbar/ukuitaskbar.h
Examining data/ukui-panel-3.0.3/plugin-taskbar/ukuitaskclosebutton.cpp
Examining data/ukui-panel-3.0.3/plugin-taskbar/ukuitaskbarconfiguration.h
Examining data/ukui-panel-3.0.3/plugin-taskbar/ukuitaskbutton.h
Examining data/ukui-panel-3.0.3/plugin-taskbar/ukuitaskbaricon.h
Examining data/ukui-panel-3.0.3/plugin-taskbar/ukuitaskwidget.cpp
Examining data/ukui-panel-3.0.3/plugin-taskbar/ukuitaskgroup.cpp
Examining data/ukui-panel-3.0.3/plugin-taskbar/ukuitaskbarplugin.cpp
Examining data/ukui-panel-3.0.3/plugin-taskbar/ukuitaskbaricon.cpp
Examining data/ukui-panel-3.0.3/plugin-taskbar/ukuitaskbarplugin.h
Examining data/ukui-panel-3.0.3/plugin-taskbar/ukuitaskwidget.h
Examining data/ukui-panel-3.0.3/plugin-taskbar/ukuigrouppopup.h
Examining data/ukui-panel-3.0.3/plugin-taskbar/ukuigrouppopup.cpp
Examining data/ukui-panel-3.0.3/plugin-taskbar/ukuitaskbar.cpp
Examining data/ukui-panel-3.0.3/plugin-taskbar/ukuitaskgroup.h
Examining data/ukui-panel-3.0.3/plugin-taskbar/ukuitaskclosebutton.h
Examining data/ukui-panel-3.0.3/plugin-taskview/taskview.cpp
Examining data/ukui-panel-3.0.3/plugin-taskview/taskview.h
Examining data/ukui-panel-3.0.3/plugin-quicklaunch/quicklaunchaction.h
Examining data/ukui-panel-3.0.3/plugin-quicklaunch/ukuiquicklaunch.cpp
Examining data/ukui-panel-3.0.3/plugin-quicklaunch/quicklaunchaction.cpp
Examining data/ukui-panel-3.0.3/plugin-quicklaunch/ukuiquicklaunch.h
Examining data/ukui-panel-3.0.3/plugin-quicklaunch/ukuiquicklaunchplugin.cpp
Examining data/ukui-panel-3.0.3/plugin-quicklaunch/quicklaunchbutton.h
Examining data/ukui-panel-3.0.3/plugin-quicklaunch/quicklaunchbutton.cpp
Examining data/ukui-panel-3.0.3/plugin-quicklaunch/ukuiquicklaunchplugin.h
Examining data/ukui-panel-3.0.3/plugin-spacer/spacerconfiguration.h
Examining data/ukui-panel-3.0.3/plugin-spacer/spacer.cpp
Examining data/ukui-panel-3.0.3/plugin-spacer/spacer.h
Examining data/ukui-panel-3.0.3/plugin-spacer/spacerconfiguration.cpp
Examining data/ukui-panel-3.0.3/plugin-calendar/ukuiwebviewdialog.h
Examining data/ukui-panel-3.0.3/plugin-calendar/ukuiwebviewdialog.cpp
Examining data/ukui-panel-3.0.3/plugin-calendar/ukuicalendar.h
Examining data/ukui-panel-3.0.3/plugin-calendar/ukuicalendar.cpp
Examining data/ukui-panel-3.0.3/plugin-showdesktop/showdesktop.cpp
Examining data/ukui-panel-3.0.3/plugin-showdesktop/showdesktop.h
Examining data/ukui-panel-3.0.3/plugin-startmenu/startmenu.cpp
Examining data/ukui-panel-3.0.3/plugin-startmenu/startmenu.h
Examining data/ukui-panel-3.0.3/ukui-flash-disk/qclickwidget.h
Examining data/ukui-panel-3.0.3/ukui-flash-disk/mainwindow.h
Examining data/ukui-panel-3.0.3/ukui-flash-disk/UnionVariable.cpp
Examining data/ukui-panel-3.0.3/ukui-flash-disk/ejectInterface.h
Examining data/ukui-panel-3.0.3/ukui-flash-disk/ui_mainwindow.h
Examining data/ukui-panel-3.0.3/ukui-flash-disk/MacroFile.h
Examining data/ukui-panel-3.0.3/ukui-flash-disk/clickLabel.cpp
Examining data/ukui-panel-3.0.3/ukui-flash-disk/clickLabel.h
Examining data/ukui-panel-3.0.3/ukui-flash-disk/MainController.cpp
Examining data/ukui-panel-3.0.3/ukui-flash-disk/qclickwidget.cpp
Examining data/ukui-panel-3.0.3/ukui-flash-disk/UnionVariable.h
Examining data/ukui-panel-3.0.3/ukui-flash-disk/ejectInterface.cpp
Examining data/ukui-panel-3.0.3/ukui-flash-disk/main.cpp
Examining data/ukui-panel-3.0.3/ukui-flash-disk/mainwindow.cpp
Examining data/ukui-panel-3.0.3/ukui-flash-disk/MainController.h
Examining data/ukui-panel-3.0.3/panel/ukuipanel.cpp
Examining data/ukui-panel-3.0.3/panel/plugin.h
Examining data/ukui-panel-3.0.3/panel/config/configpanelwidget.h
Examining data/ukui-panel-3.0.3/panel/config/configpaneldialog.h
Examining data/ukui-panel-3.0.3/panel/config/configpluginswidget.h
Examining data/ukui-panel-3.0.3/panel/config/addplugindialog.h
Examining data/ukui-panel-3.0.3/panel/config/configpanelwidget.cpp
Examining data/ukui-panel-3.0.3/panel/config/addplugindialog.cpp
Examining data/ukui-panel-3.0.3/panel/config/configpaneldialog.cpp
Examining data/ukui-panel-3.0.3/panel/config/configpluginswidget.cpp
Examining data/ukui-panel-3.0.3/panel/pluginsettings_p.h
Examining data/ukui-panel-3.0.3/panel/windownotifier.h
Examining data/ukui-panel-3.0.3/panel/ukuipanelpluginconfigdialog.cpp
Examining data/ukui-panel-3.0.3/panel/iukuipanelplugin.h
Examining data/ukui-panel-3.0.3/panel/ukuipanelapplication_p.h
Examining data/ukui-panel-3.0.3/panel/ukuipanelpluginconfigdialog.h
Examining data/ukui-panel-3.0.3/panel/pluginmoveprocessor.cpp
Examining data/ukui-panel-3.0.3/panel/panelpluginsmodel.cpp
Examining data/ukui-panel-3.0.3/panel/highlight-effect.cpp
Examining data/ukui-panel-3.0.3/panel/customstyle.cpp
Examining data/ukui-panel-3.0.3/panel/pluginmoveprocessor.h
Examining data/ukui-panel-3.0.3/panel/popupmenu.cpp
Examining data/ukui-panel-3.0.3/panel/ukuipanel.h
Examining data/ukui-panel-3.0.3/panel/ukuicontrolstyle.h
Examining data/ukui-panel-3.0.3/panel/ukuipanellayout.cpp
Examining data/ukui-panel-3.0.3/panel/panelpluginsmodel.h
Examining data/ukui-panel-3.0.3/panel/popupmenu.h
Examining data/ukui-panel-3.0.3/panel/highlight-effect.h
Examining data/ukui-panel-3.0.3/panel/customstyle.h
Examining data/ukui-panel-3.0.3/panel/ukuipanelglobals.h
Examining data/ukui-panel-3.0.3/panel/comm_func.cpp
Examining data/ukui-panel-3.0.3/panel/xdg/util/qtxdg-desktop-file-start.cpp
Examining data/ukui-panel-3.0.3/panel/xdg/util/qtxdg-iconfinder.cpp
Examining data/ukui-panel-3.0.3/panel/xdg/src/xdgiconloader/xdgiconloader_p.h
Examining data/ukui-panel-3.0.3/panel/xdg/src/xdgiconloader/xdgiconloader.cpp
Examining data/ukui-panel-3.0.3/panel/xdg/src/xdgiconloader/plugin/xdgiconengineplugin.cpp
Examining data/ukui-panel-3.0.3/panel/xdg/src/xdgiconloader/plugin/xdgiconengineplugin.h
Examining data/ukui-panel-3.0.3/panel/xdg/src/tools/mat/matcommandinterface.cpp
Examining data/ukui-panel-3.0.3/panel/xdg/src/tools/mat/mimetypematcommand.h
Examining data/ukui-panel-3.0.3/panel/xdg/src/tools/mat/defappmatcommand.cpp
Examining data/ukui-panel-3.0.3/panel/xdg/src/tools/mat/mimetypematcommand.cpp
Examining data/ukui-panel-3.0.3/panel/xdg/src/tools/mat/qtxdg-mat.cpp
Examining data/ukui-panel-3.0.3/panel/xdg/src/tools/mat/matcommandmanager.cpp
Examining data/ukui-panel-3.0.3/panel/xdg/src/tools/mat/defappmatcommand.h
Examining data/ukui-panel-3.0.3/panel/xdg/src/tools/mat/matglobals.h
Examining data/ukui-panel-3.0.3/panel/xdg/src/tools/mat/openmatcommand.cpp
Examining data/ukui-panel-3.0.3/panel/xdg/src/tools/mat/matcommandmanager.h
Examining data/ukui-panel-3.0.3/panel/xdg/src/tools/mat/matcommandinterface.h
Examining data/ukui-panel-3.0.3/panel/xdg/src/tools/mat/openmatcommand.h
Examining data/ukui-panel-3.0.3/panel/xdg/src/qtxdg/xdgmimeappsglibbackend.h
Examining data/ukui-panel-3.0.3/panel/xdg/src/qtxdg/qtxdglogging.cpp
Examining data/ukui-panel-3.0.3/panel/xdg/src/qtxdg/xdgmenurules.h
Examining data/ukui-panel-3.0.3/panel/xdg/src/qtxdg/xdgicon.cpp
Examining data/ukui-panel-3.0.3/panel/xdg/src/qtxdg/xdgmimeapps.cpp
Examining data/ukui-panel-3.0.3/panel/xdg/src/qtxdg/xdgdirs.cpp
Examining data/ukui-panel-3.0.3/panel/xdg/src/qtxdg/xdgmenureader.h
Examining data/ukui-panel-3.0.3/panel/xdg/src/qtxdg/desktopenvironment_p.cpp
Examining data/ukui-panel-3.0.3/panel/xdg/src/qtxdg/xdgmimeappsbackendinterface.h
Examining data/ukui-panel-3.0.3/panel/xdg/src/qtxdg/xmlhelper.cpp
Examining data/ukui-panel-3.0.3/panel/xdg/src/qtxdg/xdgmenu.cpp
Examining data/ukui-panel-3.0.3/panel/xdg/src/qtxdg/xmlhelper.h
Examining data/ukui-panel-3.0.3/panel/xdg/src/qtxdg/xdgmenuwidget.h
Examining data/ukui-panel-3.0.3/panel/xdg/src/qtxdg/qtxdglogging.h
Examining data/ukui-panel-3.0.3/panel/xdg/src/qtxdg/xdgmenureader.cpp
Examining data/ukui-panel-3.0.3/panel/xdg/src/qtxdg/xdgmimetype.cpp
Examining data/ukui-panel-3.0.3/panel/xdg/src/qtxdg/xdgmimeapps.h
Examining data/ukui-panel-3.0.3/panel/xdg/src/qtxdg/xdgmimeapps_p.h
Examining data/ukui-panel-3.0.3/panel/xdg/src/qtxdg/xdgmenu.h
Examining data/ukui-panel-3.0.3/panel/xdg/src/qtxdg/xdgmenulayoutprocessor.cpp
Examining data/ukui-panel-3.0.3/panel/xdg/src/qtxdg/xdgmenuapplinkprocessor.cpp
Examining data/ukui-panel-3.0.3/panel/xdg/src/qtxdg/xdgmenu_p.h
Examining data/ukui-panel-3.0.3/panel/xdg/src/qtxdg/xdgdesktopfile.cpp
Examining data/ukui-panel-3.0.3/panel/xdg/src/qtxdg/xdgaction.cpp
Examining data/ukui-panel-3.0.3/panel/xdg/src/qtxdg/xdgmenuwidget.cpp
Examining data/ukui-panel-3.0.3/panel/xdg/src/qtxdg/xdgmimeappsbackendinterface.cpp
Examining data/ukui-panel-3.0.3/panel/xdg/src/qtxdg/xdgicon.h
Examining data/ukui-panel-3.0.3/panel/xdg/src/qtxdg/xdgmacros.h
Examining data/ukui-panel-3.0.3/panel/xdg/src/qtxdg/xdgautostart.cpp
Examining data/ukui-panel-3.0.3/panel/xdg/src/qtxdg/xdgmimetype.h
Examining data/ukui-panel-3.0.3/panel/xdg/src/qtxdg/xdgdesktopfile_p.h
Examining data/ukui-panel-3.0.3/panel/xdg/src/qtxdg/xdgmenulayoutprocessor.h
Examining data/ukui-panel-3.0.3/panel/xdg/src/qtxdg/xdgaction.h
Examining data/ukui-panel-3.0.3/panel/xdg/src/qtxdg/xdgmimeappsglibbackend.cpp
Examining data/ukui-panel-3.0.3/panel/xdg/src/qtxdg/xdgdirs.h
Examining data/ukui-panel-3.0.3/panel/xdg/src/qtxdg/xdgmenurules.cpp
Examining data/ukui-panel-3.0.3/panel/xdg/src/qtxdg/xdgautostart.h
Examining data/ukui-panel-3.0.3/panel/xdg/src/qtxdg/xdgmenuapplinkprocessor.h
Examining data/ukui-panel-3.0.3/panel/xdg/src/qtxdg/xdgdesktopfile.h
Examining data/ukui-panel-3.0.3/panel/ukuipanellayout.h
Examining data/ukui-panel-3.0.3/panel/main.cpp
Examining data/ukui-panel-3.0.3/panel/ukuipanelapplication.h
Examining data/ukui-panel-3.0.3/panel/ukuicontrolstyle.cpp
Examining data/ukui-panel-3.0.3/panel/plugin.cpp
Examining data/ukui-panel-3.0.3/panel/ukuipanellimits.h
Examining data/ukui-panel-3.0.3/panel/ukuipanelapplication.cpp
Examining data/ukui-panel-3.0.3/panel/common/ukuiautostartentry.h
Examining data/ukui-panel-3.0.3/panel/common/ukuiprogramfinder.h
Examining data/ukui-panel-3.0.3/panel/common/ukuiapplication.cpp
Examining data/ukui-panel-3.0.3/panel/common/ukuisingleapplication.cpp
Examining data/ukui-panel-3.0.3/panel/common/ukuipowermanager.h
Examining data/ukui-panel-3.0.3/panel/common/ukuitranslator.h
Examining data/ukui-panel-3.0.3/panel/common/ukuiconfigdialog.cpp
Examining data/ukui-panel-3.0.3/panel/common/ukuigridlayout.h
Examining data/ukui-panel-3.0.3/panel/common/ukuirotatedwidget.h
Examining data/ukui-panel-3.0.3/panel/common/ukuinotification.h
Examining data/ukui-panel-3.0.3/panel/common/ukuinotification.cpp
Examining data/ukui-panel-3.0.3/panel/common/ukuiscreensaver.h
Examining data/ukui-panel-3.0.3/panel/common/ukuibacklight/virtual_backend.h
Examining data/ukui-panel-3.0.3/panel/common/ukuibacklight/linux_backend/linuxbackend.cpp
Examining data/ukui-panel-3.0.3/panel/common/ukuibacklight/linux_backend/driver/lxqtbacklight_backend.c
Examining data/ukui-panel-3.0.3/panel/common/ukuibacklight/linux_backend/driver/libbacklight_backend.h
Examining data/ukui-panel-3.0.3/panel/common/ukuibacklight/linux_backend/driver/libbacklight_backend.c
Examining data/ukui-panel-3.0.3/panel/common/ukuibacklight/linux_backend/linuxbackend.h
Examining data/ukui-panel-3.0.3/panel/common/ukuibacklight/virtual_backend.cpp
Examining data/ukui-panel-3.0.3/panel/common/ukuisettings.cpp
Examining data/ukui-panel-3.0.3/panel/common/ukuiplugininfo.cpp
Examining data/ukui-panel-3.0.3/panel/common/ukuihtmldelegate.cpp
Examining data/ukui-panel-3.0.3/panel/common/ukuibacklight.h
Examining data/ukui-panel-3.0.3/panel/common/ukuiscreensaver.cpp
Examining data/ukui-panel-3.0.3/panel/common/ukuitranslator.cpp
Examining data/ukui-panel-3.0.3/panel/common/ukuiapplication.h
Examining data/ukui-panel-3.0.3/panel/common/ukuiautostartentry.cpp
Examining data/ukui-panel-3.0.3/panel/common/ukuinotification_p.h
Examining data/ukui-panel-3.0.3/panel/common/ukuisingleapplication.h
Examining data/ukui-panel-3.0.3/panel/common/ukuiplugininfo.h
Examining data/ukui-panel-3.0.3/panel/common/ukuiconfigdialog.h
Examining data/ukui-panel-3.0.3/panel/common/ukuibacklight.cpp
Examining data/ukui-panel-3.0.3/panel/common/ukuipowermanager.cpp
Examining data/ukui-panel-3.0.3/panel/common/ukuisettings.h
Examining data/ukui-panel-3.0.3/panel/common/ukuirotatedwidget.cpp
Examining data/ukui-panel-3.0.3/panel/common/configdialog/ukuipageselectwidget.cpp
Examining data/ukui-panel-3.0.3/panel/common/configdialog/ukuiconfigdialog.cpp
Examining data/ukui-panel-3.0.3/panel/common/configdialog/ukuipageselectwidget.h
Examining data/ukui-panel-3.0.3/panel/common/configdialog/ukuiconfigdialogcmdlineoptions.cpp
Examining data/ukui-panel-3.0.3/panel/common/configdialog/ukuiconfigdialog_p.h
Examining data/ukui-panel-3.0.3/panel/common/configdialog/ukuiconfigdialog.h
Examining data/ukui-panel-3.0.3/panel/common/configdialog/ukuiconfigdialogcmdlineoptions.h
Examining data/ukui-panel-3.0.3/panel/common/ukuiprogramfinder.cpp
Examining data/ukui-panel-3.0.3/panel/common/ukuihtmldelegate.h
Examining data/ukui-panel-3.0.3/panel/common/ukuipower/ukuipower.h
Examining data/ukui-panel-3.0.3/panel/common/ukuipower/ukuipowerproviders.cpp
Examining data/ukui-panel-3.0.3/panel/common/ukuipower/ukuipower.cpp
Examining data/ukui-panel-3.0.3/panel/common/ukuipower/ukuipowerproviders.h
Examining data/ukui-panel-3.0.3/panel/common/ukuiglobals.h
Examining data/ukui-panel-3.0.3/panel/common/ukuigridlayout.cpp
Examining data/ukui-panel-3.0.3/panel/comm_func.h
Examining data/ukui-panel-3.0.3/panel/iukuipanel.h
Examining data/ukui-panel-3.0.3/panel/windownotifier.cpp
Examining data/ukui-panel-3.0.3/panel/pluginsettings.h
Examining data/ukui-panel-3.0.3/panel/pluginsettings.cpp
Examining data/ukui-panel-3.0.3/plugin-segmentation/segmentation.h
Examining data/ukui-panel-3.0.3/plugin-segmentation/segmentation.cpp
Examining data/ukui-panel-3.0.3/plugin-tray/xfitman.h
Examining data/ukui-panel-3.0.3/plugin-tray/ukuitray.cpp
Examining data/ukui-panel-3.0.3/plugin-tray/xfitman.cpp
Examining data/ukui-panel-3.0.3/plugin-tray/ukuitraystrage.cpp
Examining data/ukui-panel-3.0.3/plugin-tray/trayicon.cpp
Examining data/ukui-panel-3.0.3/plugin-tray/ukuitraystrage.h
Examining data/ukui-panel-3.0.3/plugin-tray/ukuitrayplugin.cpp
Examining data/ukui-panel-3.0.3/plugin-tray/trayicon.h
Examining data/ukui-panel-3.0.3/plugin-tray/ukuitrayplugin.h
Examining data/ukui-panel-3.0.3/plugin-tray/ukuitray.h

FINAL RESULTS:

data/ukui-panel-3.0.3/panel/comm_func.cpp:59:19:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if ((stream = popen(command, "r" )) == NULL)
data/ukui-panel-3.0.3/panel/comm_func.cpp:87:13:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
            execvp(app_exe, argv_exec);
data/ukui-panel-3.0.3/panel/comm_func.cpp:131:5:  [4] (buffer) wcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
    wcscpy(anotherVar, someVar);
data/ukui-panel-3.0.3/panel/comm_func.cpp:215:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(buf, "%s_%s", os_buf,platform_buf);
data/ukui-panel-3.0.3/panel/comm_func.cpp:254:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(cmd, "uname -a | grep -i %s", m1);
data/ukui-panel-3.0.3/panel/comm_func.cpp:259:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(cmd, "uname -a | grep -i %s", m2);
data/ukui-panel-3.0.3/panel/comm_func.cpp:268:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(cmd, "lsb_release -a | grep -i %s", m1);
data/ukui-panel-3.0.3/panel/comm_func.cpp:278:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(cmd, "lsb_release -a | grep -i %s", m2);
data/ukui-panel-3.0.3/panel/comm_func.cpp:285:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(cmd, "cat /etc/issue | grep -i %s", m1);
data/ukui-panel-3.0.3/panel/comm_func.cpp:291:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(cmd, "cat /etc/issue | grep -i %s", m2);
data/ukui-panel-3.0.3/panel/comm_func.cpp:297:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(cmd, "cat /etc/os-release | grep -i %s", m1);
data/ukui-panel-3.0.3/panel/comm_func.cpp:303:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(cmd, "cat /etc/os-release | grep -i %s", m2);
data/ukui-panel-3.0.3/panel/comm_func.cpp:312:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(cmd, "dpkg -l | grep \"ii  %s\"", m1);
data/ukui-panel-3.0.3/panel/comm_func.cpp:360:9:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    if (fscanf(in, "%s\n", machine_id) == EOF)
data/ukui-panel-3.0.3/panel/comm_func.cpp:455:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(DirName,   sPathName);
data/ukui-panel-3.0.3/panel/comm_func.cpp:467:17:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
            if( access(DirName,NULL)!=0   )
data/ukui-panel-3.0.3/panel/comm_func.cpp:652:5:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    sscanf(line_buff, "%s %u", p_name, &total_mem);
data/ukui-panel-3.0.3/panel/comm_func.cpp:678:5:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    sscanf(line_buff, "%s %u", p_name, &process_mem);
data/ukui-panel-3.0.3/panel/comm_func.cpp:706:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(str, "%s", pch);
data/ukui-panel-3.0.3/panel/comm_func.cpp:745:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(str, "%s", pch);
data/ukui-panel-3.0.3/panel/common/ukuibacklight/linux_backend/driver/libbacklight_backend.c:102:20:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    FILE *stream = popen("pkexec ukui-backlight_backend --stdin", "w");
data/ukui-panel-3.0.3/panel/common/ukuiplugininfo.cpp:88:37:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    const QString locale = QLocale::system().name();
data/ukui-panel-3.0.3/panel/common/ukuitranslator.cpp:89:37:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    const QString locale = QLocale::system().name();
data/ukui-panel-3.0.3/panel/common/ukuitranslator.cpp:137:37:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    const QString locale = QLocale::system().name();
data/ukui-panel-3.0.3/panel/common/ukuitranslator.cpp:185:37:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    const QString locale = QLocale::system().name();
data/ukui-panel-3.0.3/panel/main.cpp:92:31:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    QString locale = QLocale::system().name();
data/ukui-panel-3.0.3/plugin-calendar/ukuicalendar.cpp:564:57:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        qDebug()<<"QLocale::system().name():"<<QLocale::system().name();
data/ukui-panel-3.0.3/plugin-calendar/ukuicalendar.cpp:565:22:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        if (QLocale::system().name() == "zh_CN")
data/ukui-panel-3.0.3/plugin-calendar/ukuicalendar.cpp:632:22:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        if (QLocale::system().name() != "zh_CN")
data/ukui-panel-3.0.3/plugin-calendar/ukuiwebviewdialog.cpp:72:22:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        if (QLocale::system().name() == "zh_CN")
data/ukui-panel-3.0.3/plugin-startmenu/startmenu.cpp:129:5:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    system("ukui-screensaver-command -l");
data/ukui-panel-3.0.3/plugin-startmenu/startmenu.cpp:138:5:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    system("ukui-session-tools --logout");
data/ukui-panel-3.0.3/plugin-startmenu/startmenu.cpp:143:5:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    system("ukui-session-tools --reboot");
data/ukui-panel-3.0.3/plugin-startmenu/startmenu.cpp:148:5:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    system("ukui-session-tools --shutdown");
data/ukui-panel-3.0.3/plugin-taskbar/ukuitaskbar.cpp:107:5:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    system("cat /proc/cpuinfo >> /tmp/_tmp_cpu_info_cat_");
data/ukui-panel-3.0.3/plugin-taskbar/ukuitaskgroup.cpp:353:13:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
            system(QString("rm -f /tmp/%1.png").arg(window).toLatin1());
data/ukui-panel-3.0.3/plugin-tray/ukuitray.cpp:714:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(prepath,str.c_str());
data/ukui-panel-3.0.3/plugin-tray/ukuitray.cpp:715:26:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        char * allpath = strcat(prepath, path);
data/ukui-panel-3.0.3/plugin-tray/ukuitray.cpp:1022:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(prepath,str.c_str());
data/ukui-panel-3.0.3/plugin-tray/ukuitray.cpp:1023:26:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        char * allpath = strcat(prepath, path);
data/ukui-panel-3.0.3/plugin-tray/ukuitray.cpp:1183:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(prepath,str.c_str());
data/ukui-panel-3.0.3/plugin-tray/ukuitray.cpp:1184:26:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        char * allpath = strcat(prepath, path);
data/ukui-panel-3.0.3/ukui-flash-disk/main.cpp:59:31:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    QString locale = QLocale::system().name();
data/ukui-panel-3.0.3/panel/comm_func.cpp:228:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand(time(NULL));//设置随机数种子。
data/ukui-panel-3.0.3/panel/config/addplugindialog.cpp:53:33:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    desktopFilesDirs << QString(getenv("UKUI_PANEL_PLUGINS_DIR")).split(':', QString::SkipEmptyParts);
data/ukui-panel-3.0.3/panel/ukuipanel.cpp:420:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    dirs << QString(getenv("UKUI_PANEL_PLUGINS_DIR")).split(':', QString::SkipEmptyParts);
data/ukui-panel-3.0.3/panel/comm_func.cpp:113:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(m_buf_tmp, tmp_str.c_str(), len);
data/ukui-panel-3.0.3/panel/comm_func.cpp:147: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 s[100]={0};
data/ukui-panel-3.0.3/panel/comm_func.cpp:161:10:  [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).
    iY = atoi(str_time);
data/ukui-panel-3.0.3/panel/comm_func.cpp:162:10:  [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).
    iM = atoi(str_time+5);
data/ukui-panel-3.0.3/panel/comm_func.cpp:163:10:  [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).
    iD = atoi(str_time+8);
data/ukui-panel-3.0.3/panel/comm_func.cpp:164:10:  [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).
    iH = atoi(str_time+11);
data/ukui-panel-3.0.3/panel/comm_func.cpp:165: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).
    iMin = atoi(str_time+14);
data/ukui-panel-3.0.3/panel/comm_func.cpp:166:10:  [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).
    iS = atoi(str_time+17);
data/ukui-panel-3.0.3/panel/comm_func.cpp:184:19:  [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).
    if ((stream = fopen(file_path, "r" )) == NULL)
data/ukui-panel-3.0.3/panel/comm_func.cpp:200:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buf[BUF_LEN]={0};
data/ukui-panel-3.0.3/panel/comm_func.cpp:201: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 os_buf[BUF_LEN]={0};
data/ukui-panel-3.0.3/panel/comm_func.cpp:202: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 platform_buf[BUF_LEN]={0};
data/ukui-panel-3.0.3/panel/comm_func.cpp:235: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 m1[4];
data/ukui-panel-3.0.3/panel/comm_func.cpp:236: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 m2[6];
data/ukui-panel-3.0.3/panel/comm_func.cpp:250: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[BUF_LEN];
data/ukui-panel-3.0.3/panel/comm_func.cpp:251: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 cmd[BUF_LEN];
data/ukui-panel-3.0.3/panel/comm_func.cpp:322:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(cmd, "ps -e | grep \" cinnamon$\"");
data/ukui-panel-3.0.3/panel/comm_func.cpp:327: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(cmd, "ps -e | grep \" cinnamon \"");
data/ukui-panel-3.0.3/panel/comm_func.cpp:344: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.
       char buf[BUF_LEN]={0};
data/ukui-panel-3.0.3/panel/comm_func.cpp:351:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char machine_id[BUFF_SIZE] = {0};
data/ukui-panel-3.0.3/panel/comm_func.cpp:353:15:  [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).
    if ((in = fopen("/etc/machine-id", "r")) == NULL)
data/ukui-panel-3.0.3/panel/comm_func.cpp:355:19:  [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).
        if ((in = fopen("/var/lib/dbus/machine-id", "r")) == NULL) {
data/ukui-panel-3.0.3/panel/comm_func.cpp: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   DirName[256];
data/ukui-panel-3.0.3/panel/comm_func.cpp:606:22:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if(!procFile.open(QIODevice::ReadOnly | QIODevice::Text)) {
data/ukui-panel-3.0.3/panel/comm_func.cpp:644: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 line_buff[128] = {0};
data/ukui-panel-3.0.3/panel/comm_func.cpp:646: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 p_name[32] = {0};
data/ukui-panel-3.0.3/panel/comm_func.cpp:649: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).
    if((fp = fopen(file, "r")) == NULL)
data/ukui-panel-3.0.3/panel/comm_func.cpp:666: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 file[64] = {0};
data/ukui-panel-3.0.3/panel/comm_func.cpp:668: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 p_name[32] = {0};
data/ukui-panel-3.0.3/panel/comm_func.cpp:669: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 line_buff[128] = {0};
data/ukui-panel-3.0.3/panel/comm_func.cpp:672:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(file, "/proc/%d/status", (unsigned int)pid);
data/ukui-panel-3.0.3/panel/comm_func.cpp:673: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).
    if((fp = fopen(file, "r")) == NULL)
data/ukui-panel-3.0.3/panel/comm_func.cpp:693: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 line_buff[512] = {0};
data/ukui-panel-3.0.3/panel/comm_func.cpp:694: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 str[32] = {0};
data/ukui-panel-3.0.3/panel/comm_func.cpp:699: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).
    if((fp = fopen(file, "r")) == NULL)
data/ukui-panel-3.0.3/panel/comm_func.cpp:708:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            num[i++] = atoi(str);
data/ukui-panel-3.0.3/panel/comm_func.cpp:726: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 file[64] = {0};
data/ukui-panel-3.0.3/panel/comm_func.cpp:728: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 buff[512] = {0};
data/ukui-panel-3.0.3/panel/comm_func.cpp:729: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 str[32] = {0};
data/ukui-panel-3.0.3/panel/comm_func.cpp:734:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(file, "/proc/%d/stat", pid);
data/ukui-panel-3.0.3/panel/comm_func.cpp:735: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).
    if((fp = fopen(file, "r")) == NULL)
data/ukui-panel-3.0.3/panel/comm_func.cpp:746:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            num[i-14] = atoi(str);
data/ukui-panel-3.0.3/panel/comm_func.cpp:768: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 line_buff[128] = {0};
data/ukui-panel-3.0.3/panel/comm_func.cpp:771: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).
    if((fp = fopen(file, "r")) == NULL)
data/ukui-panel-3.0.3/panel/common/ukuiapplication.cpp:91:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *f = fopen(dir.absoluteFilePath(QL1S("debug.log")).toUtf8().constData(), "a+");
data/ukui-panel-3.0.3/panel/common/ukuibacklight/linux_backend/driver/libbacklight_backend.c:134: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 path[PATH_MAX];
data/ukui-panel-3.0.3/panel/common/ukuibacklight/linux_backend/driver/libbacklight_backend.c:144:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *ret = fopen(path, mode);
data/ukui-panel-3.0.3/panel/common/ukuibacklight/linux_backend/driver/libbacklight_backend.c:175: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 *drivers[N_BACKLIGHT];
data/ukui-panel-3.0.3/panel/common/ukuibacklight/linux_backend/driver/libbacklight_backend.c:178: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 type[1024];
data/ukui-panel-3.0.3/panel/common/ukuibacklight/linux_backend/driver/lxqtbacklight_backend.c:198:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            value = atoi(argv[n]);
data/ukui-panel-3.0.3/panel/common/ukuisettings.cpp:541: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 (! f.open(QIODevice::ReadOnly | QIODevice::Text))
data/ukui-panel-3.0.3/panel/main.cpp:67: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).
    outFile.open(QIODevice::WriteOnly | QIODevice::Append);
data/ukui-panel-3.0.3/panel/main.cpp:83: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).
    int fd = open(lockPath.toUtf8().data(), O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR);
data/ukui-panel-3.0.3/panel/xdg/src/qtxdg/xdgdesktopfile.cpp:367: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/ukui-panel-3.0.3/panel/xdg/src/qtxdg/xdgdesktopfile.cpp:715: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 | QIODevice::Text))
data/ukui-panel-3.0.3/panel/xdg/src/qtxdg/xdgdirs.cpp:146: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 (!configFile.open(QIODevice::ReadOnly | QIODevice::Text))
data/ukui-panel-3.0.3/panel/xdg/src/qtxdg/xdgdirs.cpp:194: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 (!configFile.open(QIODevice::ReadWrite | QIODevice::Text))
data/ukui-panel-3.0.3/panel/xdg/src/qtxdg/xdgmenu.cpp:205: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/ukui-panel-3.0.3/panel/xdg/src/qtxdg/xdgmenu.cpp:225: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/ukui-panel-3.0.3/panel/xdg/src/qtxdg/xdgmenureader.cpp:77: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/ukui-panel-3.0.3/panel/xdg/src/xdgiconloader/xdgiconloader.cpp:182: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 (!m_file.open(QFile::ReadOnly))
data/ukui-panel-3.0.3/panel/xdg/src/xdgiconloader/xdgiconloader.cpp:846:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if (device.open(QIODevice::ReadOnly))
data/ukui-panel-3.0.3/plugin-calendar/ukuicalendar.cpp:828: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 color_hex[10];
data/ukui-panel-3.0.3/plugin-calendar/ukuicalendar.cpp:833:9:  [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(color_hex,"#326898");
data/ukui-panel-3.0.3/plugin-calendar/ukuicalendar.cpp:837:9:  [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(color_hex,"#000000");
data/ukui-panel-3.0.3/plugin-taskbar/ukuitaskbar.cpp:109: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)) qDebug() << "Read CpuInfo Failed.";
data/ukui-panel-3.0.3/plugin-tray/trayicon.cpp:56: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 str[1024];
data/ukui-panel-3.0.3/ukui-flash-disk/MainController.cpp:57: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 service_name[SERVICE_NAME_SIZE];
data/ukui-panel-3.0.3/ukui-flash-disk/MainController.cpp:76: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 service_name[SERVICE_NAME_SIZE];
data/ukui-panel-3.0.3/ukui-flash-disk/main.cpp:76:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    bool ok = qss.open(QFile::ReadOnly);
data/ukui-panel-3.0.3/panel/comm_func.cpp:213: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).
        int len = strlen(os_buf);
data/ukui-panel-3.0.3/panel/comm_func.cpp:217: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).
    buf[strlen(buf)-1] = '\0';
data/ukui-panel-3.0.3/panel/comm_func.cpp:218: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).
    for(int i=0;i<strlen(buf);i++)
data/ukui-panel-3.0.3/panel/comm_func.cpp:456:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int   i,len   =   strlen(DirName);
data/ukui-panel-3.0.3/panel/comm_func.cpp:458:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
    strcat(DirName,   "/");
data/ukui-panel-3.0.3/panel/comm_func.cpp:460:11:  [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(DirName);
data/ukui-panel-3.0.3/panel/comm_func.cpp:823:5:  [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(1000000);
data/ukui-panel-3.0.3/panel/common/ukuiapplication.cpp:162:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                int ret = read(mSignalSock[1], &signo, sizeof (int));
data/ukui-panel-3.0.3/panel/common/ukuibacklight/linux_backend/driver/libbacklight_backend.c:198:22:  [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.
            int ok = fscanf(in, "%1023s", type);
data/ukui-panel-3.0.3/panel/xdg/src/qtxdg/xdgdesktopfile.cpp:100:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool read(const QString &prefix);
data/ukui-panel-3.0.3/panel/xdg/src/qtxdg/xdgdesktopfile.cpp:335:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    bool read(const QString &prefix);
data/ukui-panel-3.0.3/panel/xdg/src/qtxdg/xdgdesktopfile.cpp:363:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool XdgDesktopFileData::read(const QString &prefix)
data/ukui-panel-3.0.3/panel/xdg/src/qtxdg/xdgdesktopfile.cpp:681:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    d->read(prefix());
data/ukui-panel-3.0.3/panel/xdg/src/qtxdg/xdgmenu.cpp:142:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool XdgMenu::read(const QString& menuFileName)
data/ukui-panel-3.0.3/panel/xdg/src/qtxdg/xdgmenu.cpp:720:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    q->read(mMenuFileName);
data/ukui-panel-3.0.3/panel/xdg/src/qtxdg/xdgmenu.h:73:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    bool read(const QString& menuFileName);
data/ukui-panel-3.0.3/panel/xdg/src/xdgiconloader/xdgiconloader.cpp:595:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool XdgIconLoaderEngine::read(QDataStream &in) {
data/ukui-panel-3.0.3/panel/xdg/src/xdgiconloader/xdgiconloader_p.h:80:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    bool read(QDataStream &in) Q_DECL_OVERRIDE;
data/ukui-panel-3.0.3/plugin-taskbar/ukuitaskbaricon.cpp:893: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).
            int len=static_cast<int>(strlen(appcategory)-6);
data/ukui-panel-3.0.3/plugin-taskbar/ukuitaskbaricon.cpp:896:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if(strncmp(appcategory+i,category,strlen(category))==0)

ANALYSIS SUMMARY:

Hits = 136
Lines analyzed = 47150 in approximately 1.21 seconds (39078 lines/second)
Physical Source Lines of Code (SLOC) = 29060
Hits@level = [0]  25 [1]  20 [2]  70 [3]   3 [4]  43 [5]   0
Hits@level+ = [0+] 161 [1+] 136 [2+] 116 [3+]  46 [4+]  43 [5+]   0
Hits/KSLOC@level+ = [0+] 5.54026 [1+] 4.67997 [2+] 3.99174 [3+] 1.58293 [4+] 1.4797 [5+]   0
Dot directories skipped = 2 (--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.