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/mate-panel-1.24.1/applets/clock/calendar-window.c Examining data/mate-panel-1.24.1/applets/clock/calendar-window.h Examining data/mate-panel-1.24.1/applets/clock/clock-face.c Examining data/mate-panel-1.24.1/applets/clock/clock-face.h Examining data/mate-panel-1.24.1/applets/clock/clock-location-tile.c Examining data/mate-panel-1.24.1/applets/clock/clock-location-tile.h Examining data/mate-panel-1.24.1/applets/clock/clock-location.c Examining data/mate-panel-1.24.1/applets/clock/clock-location.h Examining data/mate-panel-1.24.1/applets/clock/clock-map.c Examining data/mate-panel-1.24.1/applets/clock/clock-map.h Examining data/mate-panel-1.24.1/applets/clock/clock-sunpos.c Examining data/mate-panel-1.24.1/applets/clock/clock-sunpos.h Examining data/mate-panel-1.24.1/applets/clock/clock-utils.c Examining data/mate-panel-1.24.1/applets/clock/clock-utils.h Examining data/mate-panel-1.24.1/applets/clock/clock.c Examining data/mate-panel-1.24.1/applets/clock/clock.h Examining data/mate-panel-1.24.1/applets/clock/set-timezone.c Examining data/mate-panel-1.24.1/applets/clock/set-timezone.h Examining data/mate-panel-1.24.1/applets/clock/system-timezone.c Examining data/mate-panel-1.24.1/applets/clock/system-timezone.h Examining data/mate-panel-1.24.1/applets/clock/test-system-timezone.c Examining data/mate-panel-1.24.1/applets/fish/fish.c Examining data/mate-panel-1.24.1/applets/notification_area/libstatus-notifier-watcher/gf-sn-watcher-v0.c Examining data/mate-panel-1.24.1/applets/notification_area/libstatus-notifier-watcher/gf-sn-watcher-v0.h Examining data/mate-panel-1.24.1/applets/notification_area/libstatus-notifier-watcher/gf-status-notifier-watcher.c Examining data/mate-panel-1.24.1/applets/notification_area/libstatus-notifier-watcher/gf-status-notifier-watcher.h Examining data/mate-panel-1.24.1/applets/notification_area/main.c Examining data/mate-panel-1.24.1/applets/notification_area/main.h Examining data/mate-panel-1.24.1/applets/notification_area/na-grid.c Examining data/mate-panel-1.24.1/applets/notification_area/na-grid.h Examining data/mate-panel-1.24.1/applets/notification_area/na-host.c Examining data/mate-panel-1.24.1/applets/notification_area/na-host.h Examining data/mate-panel-1.24.1/applets/notification_area/na-item.c Examining data/mate-panel-1.24.1/applets/notification_area/na-item.h Examining data/mate-panel-1.24.1/applets/notification_area/status-notifier/sn-dbus-menu-item.c Examining data/mate-panel-1.24.1/applets/notification_area/status-notifier/sn-dbus-menu-item.h Examining data/mate-panel-1.24.1/applets/notification_area/status-notifier/sn-dbus-menu.c Examining data/mate-panel-1.24.1/applets/notification_area/status-notifier/sn-dbus-menu.h Examining data/mate-panel-1.24.1/applets/notification_area/status-notifier/sn-flat-button.c Examining data/mate-panel-1.24.1/applets/notification_area/status-notifier/sn-flat-button.h Examining data/mate-panel-1.24.1/applets/notification_area/status-notifier/sn-host-v0.c Examining data/mate-panel-1.24.1/applets/notification_area/status-notifier/sn-host-v0.h Examining data/mate-panel-1.24.1/applets/notification_area/status-notifier/sn-item-v0.c Examining data/mate-panel-1.24.1/applets/notification_area/status-notifier/sn-item-v0.h Examining data/mate-panel-1.24.1/applets/notification_area/status-notifier/sn-item.c Examining data/mate-panel-1.24.1/applets/notification_area/status-notifier/sn-item.h Examining data/mate-panel-1.24.1/applets/notification_area/system-tray/fixedtip.c Examining data/mate-panel-1.24.1/applets/notification_area/system-tray/fixedtip.h Examining data/mate-panel-1.24.1/applets/notification_area/system-tray/na-tray-child.c Examining data/mate-panel-1.24.1/applets/notification_area/system-tray/na-tray-child.h Examining data/mate-panel-1.24.1/applets/notification_area/system-tray/na-tray-manager.c Examining data/mate-panel-1.24.1/applets/notification_area/system-tray/na-tray-manager.h Examining data/mate-panel-1.24.1/applets/notification_area/system-tray/na-tray.c Examining data/mate-panel-1.24.1/applets/notification_area/system-tray/na-tray.h Examining data/mate-panel-1.24.1/applets/notification_area/testtray.c Examining data/mate-panel-1.24.1/applets/wncklet/showdesktop.c Examining data/mate-panel-1.24.1/applets/wncklet/showdesktop.h Examining data/mate-panel-1.24.1/applets/wncklet/window-list.c Examining data/mate-panel-1.24.1/applets/wncklet/window-list.h Examining data/mate-panel-1.24.1/applets/wncklet/window-menu.c Examining data/mate-panel-1.24.1/applets/wncklet/window-menu.h Examining data/mate-panel-1.24.1/applets/wncklet/wncklet.c Examining data/mate-panel-1.24.1/applets/wncklet/wncklet.h Examining data/mate-panel-1.24.1/applets/wncklet/workspace-switcher.c Examining data/mate-panel-1.24.1/applets/wncklet/workspace-switcher.h Examining data/mate-panel-1.24.1/libmate-panel-applet/mate-panel-applet-factory.c Examining data/mate-panel-1.24.1/libmate-panel-applet/mate-panel-applet-factory.h Examining data/mate-panel-1.24.1/libmate-panel-applet/mate-panel-applet-gsettings.c Examining data/mate-panel-1.24.1/libmate-panel-applet/mate-panel-applet-gsettings.h Examining data/mate-panel-1.24.1/libmate-panel-applet/mate-panel-applet.c Examining data/mate-panel-1.24.1/libmate-panel-applet/mate-panel-applet.h Examining data/mate-panel-1.24.1/libmate-panel-applet/panel-applet-private.h Examining data/mate-panel-1.24.1/libmate-panel-applet/panel-plug-private.h Examining data/mate-panel-1.24.1/libmate-panel-applet/panel-plug.c Examining data/mate-panel-1.24.1/libmate-panel-applet/test-dbus-applet.c Examining data/mate-panel-1.24.1/mate-panel/applet.c Examining data/mate-panel-1.24.1/mate-panel/applet.h Examining data/mate-panel-1.24.1/mate-panel/button-widget.c Examining data/mate-panel-1.24.1/mate-panel/button-widget.h Examining data/mate-panel-1.24.1/mate-panel/drawer-private.h Examining data/mate-panel-1.24.1/mate-panel/drawer.c Examining data/mate-panel-1.24.1/mate-panel/drawer.h Examining data/mate-panel-1.24.1/mate-panel/launcher.c Examining data/mate-panel-1.24.1/mate-panel/launcher.h Examining data/mate-panel-1.24.1/mate-panel/libegg/eggdesktopfile.c Examining data/mate-panel-1.24.1/mate-panel/libegg/eggdesktopfile.h Examining data/mate-panel-1.24.1/mate-panel/libegg/eggsmclient-private.h Examining data/mate-panel-1.24.1/mate-panel/libegg/eggsmclient-xsmp.c Examining data/mate-panel-1.24.1/mate-panel/libegg/eggsmclient.c Examining data/mate-panel-1.24.1/mate-panel/libegg/eggsmclient.h Examining data/mate-panel-1.24.1/mate-panel/libmate-panel-applet-private/panel-applet-container.c Examining data/mate-panel-1.24.1/mate-panel/libmate-panel-applet-private/panel-applet-container.h Examining data/mate-panel-1.24.1/mate-panel/libmate-panel-applet-private/panel-applet-frame-dbus.c Examining data/mate-panel-1.24.1/mate-panel/libmate-panel-applet-private/panel-applet-frame-dbus.h Examining data/mate-panel-1.24.1/mate-panel/libmate-panel-applet-private/panel-applet-mini.c Examining data/mate-panel-1.24.1/mate-panel/libmate-panel-applet-private/panel-applets-manager-dbus.c Examining data/mate-panel-1.24.1/mate-panel/libmate-panel-applet-private/panel-applets-manager-dbus.h Examining data/mate-panel-1.24.1/mate-panel/libpanel-util/panel-cleanup.c Examining data/mate-panel-1.24.1/mate-panel/libpanel-util/panel-cleanup.h Examining data/mate-panel-1.24.1/mate-panel/libpanel-util/panel-color.c Examining data/mate-panel-1.24.1/mate-panel/libpanel-util/panel-color.h Examining data/mate-panel-1.24.1/mate-panel/libpanel-util/panel-error.c Examining data/mate-panel-1.24.1/mate-panel/libpanel-util/panel-error.h Examining data/mate-panel-1.24.1/mate-panel/libpanel-util/panel-glib.c Examining data/mate-panel-1.24.1/mate-panel/libpanel-util/panel-glib.h Examining data/mate-panel-1.24.1/mate-panel/libpanel-util/panel-gtk.c Examining data/mate-panel-1.24.1/mate-panel/libpanel-util/panel-gtk.h Examining data/mate-panel-1.24.1/mate-panel/libpanel-util/panel-icon-chooser.c Examining data/mate-panel-1.24.1/mate-panel/libpanel-util/panel-icon-chooser.h Examining data/mate-panel-1.24.1/mate-panel/libpanel-util/panel-keyfile.c Examining data/mate-panel-1.24.1/mate-panel/libpanel-util/panel-keyfile.h Examining data/mate-panel-1.24.1/mate-panel/libpanel-util/panel-launch.c Examining data/mate-panel-1.24.1/mate-panel/libpanel-util/panel-launch.h Examining data/mate-panel-1.24.1/mate-panel/libpanel-util/panel-list.c Examining data/mate-panel-1.24.1/mate-panel/libpanel-util/panel-list.h Examining data/mate-panel-1.24.1/mate-panel/libpanel-util/panel-session-manager.c Examining data/mate-panel-1.24.1/mate-panel/libpanel-util/panel-session-manager.h Examining data/mate-panel-1.24.1/mate-panel/libpanel-util/panel-show.c Examining data/mate-panel-1.24.1/mate-panel/libpanel-util/panel-show.h Examining data/mate-panel-1.24.1/mate-panel/libpanel-util/panel-xdg.c Examining data/mate-panel-1.24.1/mate-panel/libpanel-util/panel-xdg.h Examining data/mate-panel-1.24.1/mate-panel/main.c Examining data/mate-panel-1.24.1/mate-panel/mate-desktop-item-edit.c Examining data/mate-panel-1.24.1/mate-panel/menu.c Examining data/mate-panel-1.24.1/mate-panel/menu.h Examining data/mate-panel-1.24.1/mate-panel/panel-a11y.c Examining data/mate-panel-1.24.1/mate-panel/panel-a11y.h Examining data/mate-panel-1.24.1/mate-panel/panel-action-button.h Examining data/mate-panel-1.24.1/mate-panel/panel-action-protocol.c Examining data/mate-panel-1.24.1/mate-panel/panel-action-protocol.h Examining data/mate-panel-1.24.1/mate-panel/panel-addto.c Examining data/mate-panel-1.24.1/mate-panel/panel-addto.h Examining data/mate-panel-1.24.1/mate-panel/panel-applet-frame.c Examining data/mate-panel-1.24.1/mate-panel/panel-applet-frame.h Examining data/mate-panel-1.24.1/mate-panel/panel-applet-info.c Examining data/mate-panel-1.24.1/mate-panel/panel-applet-info.h Examining data/mate-panel-1.24.1/mate-panel/panel-applets-manager.c Examining data/mate-panel-1.24.1/mate-panel/panel-applets-manager.h Examining data/mate-panel-1.24.1/mate-panel/panel-background-monitor.c Examining data/mate-panel-1.24.1/mate-panel/panel-background-monitor.h Examining data/mate-panel-1.24.1/mate-panel/panel-background.c Examining data/mate-panel-1.24.1/mate-panel/panel-background.h Examining data/mate-panel-1.24.1/mate-panel/panel-bindings.c Examining data/mate-panel-1.24.1/mate-panel/panel-bindings.h Examining data/mate-panel-1.24.1/mate-panel/panel-config-global.c Examining data/mate-panel-1.24.1/mate-panel/panel-config-global.h Examining data/mate-panel-1.24.1/mate-panel/panel-context-menu.c Examining data/mate-panel-1.24.1/mate-panel/panel-context-menu.h Examining data/mate-panel-1.24.1/mate-panel/panel-ditem-editor.c Examining data/mate-panel-1.24.1/mate-panel/panel-ditem-editor.h Examining data/mate-panel-1.24.1/mate-panel/panel-enums.h Examining data/mate-panel-1.24.1/mate-panel/panel-force-quit.c Examining data/mate-panel-1.24.1/mate-panel/panel-force-quit.h Examining data/mate-panel-1.24.1/mate-panel/panel-frame.c Examining data/mate-panel-1.24.1/mate-panel/panel-frame.h Examining data/mate-panel-1.24.1/mate-panel/panel-globals.h Examining data/mate-panel-1.24.1/mate-panel/panel-layout.c Examining data/mate-panel-1.24.1/mate-panel/panel-layout.h Examining data/mate-panel-1.24.1/mate-panel/panel-lockdown.c Examining data/mate-panel-1.24.1/mate-panel/panel-lockdown.h Examining data/mate-panel-1.24.1/mate-panel/panel-menu-bar.c Examining data/mate-panel-1.24.1/mate-panel/panel-menu-bar.h Examining data/mate-panel-1.24.1/mate-panel/panel-menu-button.c Examining data/mate-panel-1.24.1/mate-panel/panel-menu-button.h Examining data/mate-panel-1.24.1/mate-panel/panel-menu-items.h Examining data/mate-panel-1.24.1/mate-panel/panel-modules.c Examining data/mate-panel-1.24.1/mate-panel/panel-modules.h Examining data/mate-panel-1.24.1/mate-panel/panel-multimonitor.c Examining data/mate-panel-1.24.1/mate-panel/panel-multimonitor.h Examining data/mate-panel-1.24.1/mate-panel/panel-profile.c Examining data/mate-panel-1.24.1/mate-panel/panel-profile.h Examining data/mate-panel-1.24.1/mate-panel/panel-properties-dialog.c Examining data/mate-panel-1.24.1/mate-panel/panel-properties-dialog.h Examining data/mate-panel-1.24.1/mate-panel/panel-recent.c Examining data/mate-panel-1.24.1/mate-panel/panel-recent.h Examining data/mate-panel-1.24.1/mate-panel/panel-reset.c Examining data/mate-panel-1.24.1/mate-panel/panel-reset.h Examining data/mate-panel-1.24.1/mate-panel/panel-run-dialog.c Examining data/mate-panel-1.24.1/mate-panel/panel-run-dialog.h Examining data/mate-panel-1.24.1/mate-panel/panel-schemas.h Examining data/mate-panel-1.24.1/mate-panel/panel-separator.c Examining data/mate-panel-1.24.1/mate-panel/panel-separator.h Examining data/mate-panel-1.24.1/mate-panel/panel-session.c Examining data/mate-panel-1.24.1/mate-panel/panel-session.h Examining data/mate-panel-1.24.1/mate-panel/panel-shell.c Examining data/mate-panel-1.24.1/mate-panel/panel-shell.h Examining data/mate-panel-1.24.1/mate-panel/panel-stock-icons.c Examining data/mate-panel-1.24.1/mate-panel/panel-stock-icons.h Examining data/mate-panel-1.24.1/mate-panel/panel-struts.c Examining data/mate-panel-1.24.1/mate-panel/panel-struts.h Examining data/mate-panel-1.24.1/mate-panel/panel-test-applets.c Examining data/mate-panel-1.24.1/mate-panel/panel-toplevel.c Examining data/mate-panel-1.24.1/mate-panel/panel-toplevel.h Examining data/mate-panel-1.24.1/mate-panel/panel-types.h Examining data/mate-panel-1.24.1/mate-panel/panel-util.c Examining data/mate-panel-1.24.1/mate-panel/panel-util.h Examining data/mate-panel-1.24.1/mate-panel/panel-widget.c Examining data/mate-panel-1.24.1/mate-panel/panel-widget.h Examining data/mate-panel-1.24.1/mate-panel/panel-xutils.c Examining data/mate-panel-1.24.1/mate-panel/panel-xutils.h Examining data/mate-panel-1.24.1/mate-panel/panel.c Examining data/mate-panel-1.24.1/mate-panel/panel.h Examining data/mate-panel-1.24.1/mate-panel/wayland-backend.c Examining data/mate-panel-1.24.1/mate-panel/wayland-backend.h Examining data/mate-panel-1.24.1/mate-panel/xstuff.c Examining data/mate-panel-1.24.1/mate-panel/xstuff.h Examining data/mate-panel-1.24.1/mate-panel/panel-action-button.c Examining data/mate-panel-1.24.1/mate-panel/panel-enums-gsettings.h Examining data/mate-panel-1.24.1/mate-panel/panel-icon-names.h Examining data/mate-panel-1.24.1/mate-panel/panel-menu-items.c FINAL RESULTS: data/mate-panel-1.24.1/applets/clock/clock-location-tile.c:624:24: [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. sys_timezone = getenv ("TZ"); data/mate-panel-1.24.1/mate-panel/menu.c:230:34: [3] (buffer) g_get_home_dir: This function is synonymous with 'getenv("HOME")';it returns untrustable input if the environment can beset by an attacker. It 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. target_dir = g_build_filename (g_get_home_dir (), NULL); data/mate-panel-1.24.1/mate-panel/panel-menu-items.c:129:27: [3] (buffer) g_get_home_dir: This function is synonymous with 'getenv("HOME")';it returns untrustable input if the environment can beset by an attacker. It 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. activate_path (menuitem, g_get_home_dir ()); data/mate-panel-1.24.1/mate-panel/panel-menu-items.c:1034:30: [3] (buffer) g_get_home_dir: This function is synonymous with 'getenv("HOME")';it returns untrustable input if the environment can beset by an attacker. It 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. file = g_file_new_for_path (g_get_home_dir ()); data/mate-panel-1.24.1/mate-panel/panel-run-dialog.c:1277:11: [3] (buffer) g_get_home_dir: This function is synonymous with 'getenv("HOME")';it returns untrustable input if the environment can beset by an attacker. It 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. g_get_home_dir ()); data/mate-panel-1.24.1/mate-panel/panel-run-dialog.c:1472:31: [3] (buffer) g_get_home_dir: This function is synonymous with 'getenv("HOME")';it returns untrustable input if the environment can beset by an attacker. It 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. dirname = g_build_filename (g_get_home_dir (), dirprefix, NULL); data/mate-panel-1.24.1/mate-panel/panel-run-dialog.c:1857:44: [3] (buffer) g_get_tmp_dir: This function is synonymous with 'getenv("TMP")';it returns untrustable input if the environment can beset by an attacker. It 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. save_uri = panel_make_unique_desktop_uri (g_get_tmp_dir (), name); data/mate-panel-1.24.1/mate-panel/panel-session.c:64:31: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (do_not_restart || getenv ("MATE_PANEL_DEBUG")) data/mate-panel-1.24.1/mate-panel/panel-util.c:861:33: [3] (buffer) g_get_home_dir: This function is synonymous with 'getenv("HOME")';it returns untrustable input if the environment can beset by an attacker. It 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. compare = g_file_new_for_path (g_get_home_dir ()); data/mate-panel-1.24.1/mate-panel/panel-util.c:1003:25: [3] (buffer) g_get_home_dir: This function is synonymous with 'getenv("HOME")';it returns untrustable input if the environment can beset by an attacker. It 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. else if (strcmp (path, g_get_home_dir ()) == 0) data/mate-panel-1.24.1/mate-panel/panel-util.c:1240:27: [3] (buffer) g_get_home_dir: This function is synonymous with 'getenv("HOME")';it returns untrustable input if the environment can beset by an attacker. It 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. path = g_build_filename (g_get_home_dir (), location, NULL); data/mate-panel-1.24.1/applets/clock/clock-location-tile.c:420:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[256]; data/mate-panel-1.24.1/applets/clock/clock-location-tile.c:467:17: [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 (buf, "???"); data/mate-panel-1.24.1/applets/clock/clock-map.c:27: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 *marker_files[MARKER_NB] = { data/mate-panel-1.24.1/applets/clock/clock.c:544: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 hour[256]; data/mate-panel-1.24.1/applets/clock/clock.c:570:25: [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 (hour, "???"); data/mate-panel-1.24.1/applets/clock/clock.c:572:25: [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 (hour, "???"); data/mate-panel-1.24.1/applets/clock/clock.c:578:25: [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 (hour, "???"); data/mate-panel-1.24.1/applets/clock/clock.c:649: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 date[256]; data/mate-panel-1.24.1/applets/clock/clock.c:665:25: [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 (date, "???"); data/mate-panel-1.24.1/applets/clock/clock.c:667:25: [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 (date, "???"); data/mate-panel-1.24.1/applets/clock/clock.c:1560: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 string[256]; data/mate-panel-1.24.1/applets/clock/clock.c:1615:25: [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 (string, "???"); data/mate-panel-1.24.1/applets/clock/clock.c:1617:25: [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 (string, "???"); data/mate-panel-1.24.1/applets/clock/clock.c:1634: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 string[256]; data/mate-panel-1.24.1/applets/clock/clock.c:1644:17: [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 (string, "???"); data/mate-panel-1.24.1/applets/clock/clock.c:1646:17: [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 (string, "???"); data/mate-panel-1.24.1/applets/clock/system-timezone.c:69: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 *files_to_check[CHECK_NB] = { data/mate-panel-1.24.1/applets/clock/system-timezone.c:884:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[strlen (TZ_MAGIC)]; data/mate-panel-1.24.1/applets/fish/fish.c:731: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 output[4096]; data/mate-panel-1.24.1/applets/fish/fish.c:1102: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 location [256]; data/mate-panel-1.24.1/applets/fish/fish.c:1108:9: [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). zone = fopen("/etc/timezone", "r"); data/mate-panel-1.24.1/applets/fish/fish.c:1133: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 (location, &buffer [i + 2], len - i - 2); data/mate-panel-1.24.1/applets/notification_area/system-tray/na-tray-manager.c:351:4: [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->str + msg->len - msg->remaining_len), data/mate-panel-1.24.1/applets/notification_area/testtray.c:58:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char text[64]; data/mate-panel-1.24.1/mate-panel/launcher.c:387:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *uri[2]; data/mate-panel-1.24.1/mate-panel/libegg/eggsmclient-xsmp.c:212:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pid_str[64]; data/mate-panel-1.24.1/mate-panel/libegg/eggsmclient-xsmp.c:323:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char error_string_ret[256]; data/mate-panel-1.24.1/mate-panel/libegg/eggsmclient-xsmp.c:876:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open (state_file_path, O_WRONLY | O_CREAT | O_EXCL, 0644); data/mate-panel-1.24.1/mate-panel/libmate-panel-applet-private/panel-applet-frame-dbus.c:135:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (size_hints, sz, n_elements * sizeof (gint32)); data/mate-panel-1.24.1/mate-panel/libmate-panel-applet-private/panel-applet-frame-dbus.c:288:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (size_hints, sz, n_elements * sizeof (gint32)); data/mate-panel-1.24.1/mate-panel/libpanel-util/panel-icon-chooser.c:285:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *names[2]; data/mate-panel-1.24.1/mate-panel/libpanel-util/panel-launch.c:245: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 *argv[2] = { (char *) fallback_exec, NULL }; data/mate-panel-1.24.1/mate-panel/panel-util.c:624: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 filename[NAME_MAX]; data/mate-panel-1.24.1/applets/clock/clock.c:2267:61: [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). g_markup_parse_context_parse (context, str, strlen (str), NULL); data/mate-panel-1.24.1/applets/clock/clock.c:2425:71: [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). g_markup_parse_context_parse (context, values[i], strlen(values[i]), NULL); data/mate-panel-1.24.1/applets/clock/system-timezone.c:336:13: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = fgetc (etc_timezone); data/mate-panel-1.24.1/applets/clock/system-timezone.c:340:21: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = fgetc (etc_timezone); data/mate-panel-1.24.1/applets/clock/system-timezone.c:409:40: [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). value = line + strlen (key_eq); data/mate-panel-1.24.1/applets/clock/system-timezone.c:412: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). len = strlen (value); data/mate-panel-1.24.1/applets/clock/system-timezone.c:426:59: [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). retval = g_strdup (line + strlen (key_eq)); data/mate-panel-1.24.1/applets/clock/system-timezone.c:481:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). old_value = lines[n] + strlen (key_eq); data/mate-panel-1.24.1/applets/clock/system-timezone.c:621:24: [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). skip = strlen (SYSTEM_ZONEINFODIR"/posix/"); data/mate-panel-1.24.1/applets/clock/system-timezone.c:623:24: [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). skip = strlen (SYSTEM_ZONEINFODIR"/right/"); data/mate-panel-1.24.1/applets/clock/system-timezone.c:625:24: [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). skip = strlen (SYSTEM_ZONEINFODIR"/"); data/mate-panel-1.24.1/applets/clock/system-timezone.c:884:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char buffer[strlen (TZ_MAGIC)]; data/mate-panel-1.24.1/applets/clock/system-timezone.c:885:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). gsize read; data/mate-panel-1.24.1/applets/clock/system-timezone.c:911:50: [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). buffer, strlen (TZ_MAGIC), data/mate-panel-1.24.1/applets/clock/system-timezone.c:912:43: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). &read, &our_error); data/mate-panel-1.24.1/applets/clock/system-timezone.c:925:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read != strlen (TZ_MAGIC) || strncmp (buffer, TZ_MAGIC, strlen (TZ_MAGIC)) != 0) { data/mate-panel-1.24.1/applets/clock/system-timezone.c:925:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (read != strlen (TZ_MAGIC) || strncmp (buffer, TZ_MAGIC, strlen (TZ_MAGIC)) != 0) { data/mate-panel-1.24.1/applets/clock/system-timezone.c:925:69: [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 (read != strlen (TZ_MAGIC) || strncmp (buffer, TZ_MAGIC, strlen (TZ_MAGIC)) != 0) { data/mate-panel-1.24.1/applets/clock/system-timezone.c:1028: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). tz = zone_file + strlen (SYSTEM_ZONEINFODIR"/"); data/mate-panel-1.24.1/applets/fish/fish.c:234:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!strncmp (path, FISH_ICONDIR, strlen (FISH_ICONDIR))) { data/mate-panel-1.24.1/applets/fish/fish.c:235:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). image = path + strlen (FISH_ICONDIR); data/mate-panel-1.24.1/applets/fish/fish.c:1110:11: [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. count = fscanf (zone, "%255s", location); data/mate-panel-1.24.1/applets/fish/fish.c:1123:8: [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 (buffer); data/mate-panel-1.24.1/mate-panel/applet.c:452: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). if(p==(n + strlen(n) - 1)) { data/mate-panel-1.24.1/mate-panel/drawer.c:172:112: [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). gtk_selection_data_set (selection_data, gtk_selection_data_get_target (selection_data), 8, (guchar *) foo, strlen (foo)); data/mate-panel-1.24.1/mate-panel/launcher.c:399:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen (location)); data/mate-panel-1.24.1/mate-panel/launcher.c:1077:47: [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 (!g_ascii_strncasecmp (location, "file:", strlen ("file:"))) data/mate-panel-1.24.1/mate-panel/libegg/eggsmclient-xsmp.c:1154: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). pv.length = strlen (value); data/mate-panel-1.24.1/mate-panel/libegg/eggsmclient-xsmp.c:1188: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). pv.length = strlen (values->pdata[i]); data/mate-panel-1.24.1/mate-panel/libegg/eggsmclient-xsmp.c:1217: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). prop->vals[0].length = strlen (value); data/mate-panel-1.24.1/mate-panel/libmate-panel-applet-private/panel-applet-container.c:526: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). factory_id = g_strndup (iid, strlen (iid) - strlen (applet_id)); data/mate-panel-1.24.1/mate-panel/libmate-panel-applet-private/panel-applet-container.c:526:46: [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). factory_id = g_strndup (iid, strlen (iid) - strlen (applet_id)); data/mate-panel-1.24.1/mate-panel/libmate-panel-applet-private/panel-applets-manager-dbus.c:207: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 location_len = strlen (lib_prefix) + strlen (info->location) + 1; data/mate-panel-1.24.1/mate-panel/libmate-panel-applet-private/panel-applets-manager-dbus.c:207:45: [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 location_len = strlen (lib_prefix) + strlen (info->location) + 1; data/mate-panel-1.24.1/mate-panel/libmate-panel-applet-private/panel-applets-manager-dbus.c:437: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). factory_id = g_strndup (iid, strlen (iid) - strlen (sp)); data/mate-panel-1.24.1/mate-panel/libmate-panel-applet-private/panel-applets-manager-dbus.c:437:46: [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). factory_id = g_strndup (iid, strlen (iid) - strlen (sp)); data/mate-panel-1.24.1/mate-panel/libpanel-util/panel-glib.c:125:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (needle) == 0) return haystack; data/mate-panel-1.24.1/mate-panel/libpanel-util/panel-glib.c:126:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (haystack) == 0) return NULL; data/mate-panel-1.24.1/mate-panel/libpanel-util/panel-glib.c:128:39: [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). nuni = g_alloca (sizeof (gunichar) * strlen (needle)); data/mate-panel-1.24.1/mate-panel/libpanel-util/panel-keyfile.c:128:25: [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). new_length = length + strlen (KEYFILE_TRUSTED_SHEBANG); data/mate-panel-1.24.1/mate-panel/libpanel-util/panel-keyfile.c:324:12: [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). key_len = strlen (key); data/mate-panel-1.24.1/mate-panel/libpanel-util/panel-keyfile.c:332: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). len = strlen (keys[i]); data/mate-panel-1.24.1/mate-panel/menu.c:676:5: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen (uri_list)); data/mate-panel-1.24.1/mate-panel/menu.c:690:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). escaped_text = g_string_sized_new (strlen (text) + 1); data/mate-panel-1.24.1/mate-panel/menu.c:789:5: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(string)); data/mate-panel-1.24.1/mate-panel/panel-action-button.c:624:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). 8, (guchar *) drag_data, strlen (drag_data)); data/mate-panel-1.24.1/mate-panel/panel-action-button.c:891:39: [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 (drag_string, "ACTION:", strlen ("ACTION:"))) data/mate-panel-1.24.1/mate-panel/panel-addto.c:297:24: [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). (guchar *) string, strlen (string)); data/mate-panel-1.24.1/mate-panel/panel-layout.c:155:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). id = group + strlen (group_prefix); data/mate-panel-1.24.1/mate-panel/panel-menu-button.c:150:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen (root_items [i].filename))) { data/mate-panel-1.24.1/mate-panel/panel-menu-button.c:174:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen (root_items [i].scheme))) { data/mate-panel-1.24.1/mate-panel/panel-menu-button.c:363:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). 8, (guchar *) drag_data, strlen (drag_data)); data/mate-panel-1.24.1/mate-panel/panel-multimonitor.c:90: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). return (g_ascii_strncasecmp (info->name, "LVDS", strlen ("LVDS")) == 0); data/mate-panel-1.24.1/mate-panel/panel-run-dialog.c:1534:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tmp == strlen (gtk_entry_get_text (GTK_ENTRY (entry)))) { data/mate-panel-1.24.1/mate-panel/panel-run-dialog.c:1547:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tmp == strlen (gtk_entry_get_text (GTK_ENTRY (entry)))) { data/mate-panel-1.24.1/mate-panel/panel-run-dialog.c:1552:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tmp == strlen (gtk_entry_get_text (GTK_ENTRY (entry)))) { data/mate-panel-1.24.1/mate-panel/panel-run-dialog.c:1573: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). pos = strlen (prefix); data/mate-panel-1.24.1/mate-panel/panel-run-dialog.c:1595:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). prefix, strlen (prefix), data/mate-panel-1.24.1/mate-panel/panel-run-dialog.c:1891:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (unsigned char *) uri, strlen (uri)); data/mate-panel-1.24.1/mate-panel/panel-util.c:62: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). str = g_string_new_len (NULL, strlen (exec)); data/mate-panel-1.24.1/mate-panel/panel-util.c:525:47: [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 (!g_ascii_strncasecmp (location, "file:", strlen ("file:"))) data/mate-panel-1.24.1/mate-panel/panel-util.c:544:47: [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 (!g_ascii_strncasecmp (location, "file:", strlen ("file:"))) data/mate-panel-1.24.1/mate-panel/panel-util.c:567:46: [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). g_ascii_strncasecmp (location, "file:", strlen ("file:"))) data/mate-panel-1.24.1/mate-panel/panel-util.c:631:27: [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). sizeof (filename) - strlen (".desktop") - LENGTH_FOR_TMPFILE_EXT, data/mate-panel-1.24.1/mate-panel/panel-util.c:644:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sizeof (filename) - strlen (buf) - LENGTH_FOR_TMPFILE_EXT, data/mate-panel-1.24.1/mate-panel/panel-util.c:685:25: [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). memmove (name, p + 1, strlen (p + 1) + 1); data/mate-panel-1.24.1/mate-panel/panel-util.c:997:8: [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 (path); data/mate-panel-1.24.1/mate-panel/panel.c:576:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen ("x-caja-desktop:///")) != 0) data/mate-panel-1.24.1/mate-panel/panel.c:581: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). basename = uri + strlen ("x-caja-desktop:///"); data/mate-panel-1.24.1/mate-panel/panel.c:583: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). if (strncmp (basename, "trash", strlen ("trash")) == 0) data/mate-panel-1.24.1/mate-panel/panel.c:586: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). else if (strncmp (basename, "home", strlen ("home")) == 0) data/mate-panel-1.24.1/mate-panel/panel.c:589:42: [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). else if (strncmp (basename, "computer", strlen ("computer")) == 0) data/mate-panel-1.24.1/mate-panel/panel.c:592:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else if (strncmp (basename, "network", strlen ("network")) == 0) data/mate-panel-1.24.1/mate-panel/panel.c:620:42: [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 (g_ascii_strncasecmp (uri, "http:", strlen ("http:")) == 0 || data/mate-panel-1.24.1/mate-panel/panel.c:621: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). g_ascii_strncasecmp (uri, "https:", strlen ("https:")) == 0 || data/mate-panel-1.24.1/mate-panel/panel.c:622:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_ascii_strncasecmp (uri, "ftp:", strlen ("ftp:")) == 0 || data/mate-panel-1.24.1/mate-panel/panel.c:623:44: [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). g_ascii_strncasecmp (uri, "gopher:", strlen ("gopher:")) == 0 || data/mate-panel-1.24.1/mate-panel/panel.c:624: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). g_ascii_strncasecmp (uri, "ghelp:", strlen ("ghelp:")) == 0 || data/mate-panel-1.24.1/mate-panel/panel.c:625:42: [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). g_ascii_strncasecmp (uri, "help:", strlen ("help:")) == 0 || data/mate-panel-1.24.1/mate-panel/panel.c:626:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_ascii_strncasecmp (uri, "man:", strlen ("man:")) == 0 || data/mate-panel-1.24.1/mate-panel/panel.c:627:42: [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). g_ascii_strncasecmp (uri, "info:", strlen ("info:")) == 0) { data/mate-panel-1.24.1/mate-panel/panel.c:637:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen ("x-caja-desktop:")) == 0) { data/mate-panel-1.24.1/mate-panel/panel.c:789:44: [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). } else if (strncmp (applet_type, "MENU:", strlen ("MENU:")) == 0) { data/mate-panel-1.24.1/mate-panel/panel.c:793: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). menu = &applet_type[strlen ("MENU:")]; data/mate-panel-1.24.1/mate-panel/panel.c:797: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). if (strncmp (menu, "MAIN", strlen ("MAIN")) == 0) data/mate-panel-1.24.1/mate-panel/panel.c:819:47: [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). } else if (!strncmp (applet_type, "ACTION:", strlen ("ACTION:"))) { data/mate-panel-1.24.1/mate-panel/xstuff.c:288:3: [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(MINIATURIZE_ANIMATION_DELAY_Z); data/mate-panel-1.24.1/mate-panel/xstuff.c:290:3: [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(10); data/mate-panel-1.24.1/mate-panel/xstuff.c:326:2: [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(MINIATURIZE_ANIMATION_DELAY_Z); data/mate-panel-1.24.1/mate-panel/xstuff.c:328:2: [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(10); ANALYSIS SUMMARY: Hits = 134 Lines analyzed = 79033 in approximately 1.52 seconds (51849 lines/second) Physical Source Lines of Code (SLOC) = 57656 Hits@level = [0] 6 [1] 90 [2] 33 [3] 11 [4] 0 [5] 0 Hits@level+ = [0+] 140 [1+] 134 [2+] 44 [3+] 11 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 2.42819 [1+] 2.32413 [2+] 0.763147 [3+] 0.190787 [4+] 0 [5+] 0 Dot directories skipped = 3 (--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.