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/xdotool-3.20160805.1/cmd_behave.c
Examining data/xdotool-3.20160805.1/cmd_behave_screen_edge.c
Examining data/xdotool-3.20160805.1/cmd_click.c
Examining data/xdotool-3.20160805.1/cmd_exec.c
Examining data/xdotool-3.20160805.1/cmd_get_desktop.c
Examining data/xdotool-3.20160805.1/cmd_get_desktop_for_window.c
Examining data/xdotool-3.20160805.1/cmd_get_desktop_viewport.c
Examining data/xdotool-3.20160805.1/cmd_get_display_geometry.c
Examining data/xdotool-3.20160805.1/cmd_get_num_desktops.c
Examining data/xdotool-3.20160805.1/cmd_getactivewindow.c
Examining data/xdotool-3.20160805.1/cmd_getmouselocation.c
Examining data/xdotool-3.20160805.1/cmd_getwindowfocus.c
Examining data/xdotool-3.20160805.1/cmd_getwindowgeometry.c
Examining data/xdotool-3.20160805.1/cmd_getwindowname.c
Examining data/xdotool-3.20160805.1/cmd_getwindowpid.c
Examining data/xdotool-3.20160805.1/cmd_key.c
Examining data/xdotool-3.20160805.1/cmd_mousedown.c
Examining data/xdotool-3.20160805.1/cmd_mousemove.c
Examining data/xdotool-3.20160805.1/cmd_mousemove_relative.c
Examining data/xdotool-3.20160805.1/cmd_mouseup.c
Examining data/xdotool-3.20160805.1/cmd_search.c
Examining data/xdotool-3.20160805.1/cmd_set_desktop.c
Examining data/xdotool-3.20160805.1/cmd_set_desktop_for_window.c
Examining data/xdotool-3.20160805.1/cmd_set_desktop_viewport.c
Examining data/xdotool-3.20160805.1/cmd_set_num_desktops.c
Examining data/xdotool-3.20160805.1/cmd_set_window.c
Examining data/xdotool-3.20160805.1/cmd_sleep.c
Examining data/xdotool-3.20160805.1/cmd_type.c
Examining data/xdotool-3.20160805.1/cmd_window_select.c
Examining data/xdotool-3.20160805.1/cmd_windowactivate.c
Examining data/xdotool-3.20160805.1/cmd_windowclose.c
Examining data/xdotool-3.20160805.1/cmd_windowfocus.c
Examining data/xdotool-3.20160805.1/cmd_windowkill.c
Examining data/xdotool-3.20160805.1/cmd_windowmap.c
Examining data/xdotool-3.20160805.1/cmd_windowminimize.c
Examining data/xdotool-3.20160805.1/cmd_windowmove.c
Examining data/xdotool-3.20160805.1/cmd_windowraise.c
Examining data/xdotool-3.20160805.1/cmd_windowreparent.c
Examining data/xdotool-3.20160805.1/cmd_windowsize.c
Examining data/xdotool-3.20160805.1/cmd_windowunmap.c
Examining data/xdotool-3.20160805.1/patch_clock_gettime.h
Examining data/xdotool-3.20160805.1/t/showmodifiers.c
Examining data/xdotool-3.20160805.1/xdo.c
Examining data/xdotool-3.20160805.1/xdo_cmd.h
Examining data/xdotool-3.20160805.1/xdo_search.c
Examining data/xdotool-3.20160805.1/xdo_util.h
Examining data/xdotool-3.20160805.1/xdotool.c
Examining data/xdotool-3.20160805.1/xdotool.h
Examining data/xdotool-3.20160805.1/xdo.h

FINAL RESULTS:

data/xdotool-3.20160805.1/cmd_behave.c:49:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(usage, cmd);
data/xdotool-3.20160805.1/cmd_behave.c:54:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_behave.c:63:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_behave_screen_edge.c:81:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(usage, cmd);
data/xdotool-3.20160805.1/cmd_behave_screen_edge.c:96:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_behave_screen_edge.c:105:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_behave_screen_edge.c:146:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_click.c:46:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(usage, cmd);
data/xdotool-3.20160805.1/cmd_click.c:68:11:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_click.c:73:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_click.c:81:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_exec.c:47:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(usage, cmd);
data/xdotool-3.20160805.1/cmd_exec.c:61:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_exec.c:70:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_exec.c:107:5:  [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(command[0], command);
data/xdotool-3.20160805.1/cmd_get_desktop.c:20:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(usage, cmd);
data/xdotool-3.20160805.1/cmd_get_desktop.c:25:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_get_desktop_for_window.c:22:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(usage, cmd);
data/xdotool-3.20160805.1/cmd_get_desktop_for_window.c:27:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_get_desktop_for_window.c:36:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_get_desktop_viewport.c:21:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(usage, cmd);
data/xdotool-3.20160805.1/cmd_get_desktop_viewport.c:29:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_get_display_geometry.c:28:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(usage, cmd);
data/xdotool-3.20160805.1/cmd_get_display_geometry.c:39:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_get_num_desktops.c:20:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(usage, cmd);
data/xdotool-3.20160805.1/cmd_get_num_desktops.c:25:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_getactivewindow.c:20:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(usage, cmd);
data/xdotool-3.20160805.1/cmd_getactivewindow.c:25:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_getmouselocation.c:28:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(usage, cmd);
data/xdotool-3.20160805.1/cmd_getmouselocation.c:40:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_getwindowfocus.c:27:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(usage, cmd);
data/xdotool-3.20160805.1/cmd_getwindowfocus.c:35:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_getwindowgeometry.c:30:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(usage, cmd);
data/xdotool-3.20160805.1/cmd_getwindowgeometry.c:42:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_getwindowgeometry.c:51:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_getwindowname.c:20:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(usage, cmd);
data/xdotool-3.20160805.1/cmd_getwindowname.c:25:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_getwindowname.c:34:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_getwindowpid.c:21:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(usage, cmd);
data/xdotool-3.20160805.1/cmd_getwindowpid.c:26:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_getwindowpid.c:35:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_key.c:65:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(usage, cmd);
data/xdotool-3.20160805.1/cmd_key.c:85:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_key.c:94:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_mousedown.c:33:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(usage, cmd);
data/xdotool-3.20160805.1/cmd_mousedown.c:41:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_mousedown.c:49:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_mousemove.c:68:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(usage, cmd);
data/xdotool-3.20160805.1/cmd_mousemove.c:95:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_mousemove.c:104:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_mousemove_relative.c:47:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(usage, cmd, cmd, cmd);
data/xdotool-3.20160805.1/cmd_mousemove_relative.c:63:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, usage, cmd, cmd, cmd);
data/xdotool-3.20160805.1/cmd_mousemove_relative.c:71:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, usage, cmd, cmd, cmd);
data/xdotool-3.20160805.1/cmd_mouseup.c:30:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(usage, cmd);
data/xdotool-3.20160805.1/cmd_mouseup.c:41:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_mouseup.c:49:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_search.c:81:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(usage, cmd);
data/xdotool-3.20160805.1/cmd_search.c:137:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_search.c:146:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_set_desktop.c:28:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(usage, cmd);
data/xdotool-3.20160805.1/cmd_set_desktop.c:36:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_set_desktop.c:44:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_set_desktop_for_window.c:23:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(usage, cmd);
data/xdotool-3.20160805.1/cmd_set_desktop_for_window.c:28:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_set_desktop_for_window.c:36:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_set_desktop_viewport.c:19:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(usage, cmd);
data/xdotool-3.20160805.1/cmd_set_desktop_viewport.c:24:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_set_desktop_viewport.c:34:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_set_num_desktops.c:19:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(usage, cmd);
data/xdotool-3.20160805.1/cmd_set_num_desktops.c:24:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_set_num_desktops.c:32:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_set_window.c:68:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(usage, cmd);
data/xdotool-3.20160805.1/cmd_set_window.c:72:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_set_window.c:81:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_sleep.c:30:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(usage, cmd);
data/xdotool-3.20160805.1/cmd_sleep.c:35:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_sleep.c:44:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_type.c:79:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(usage, cmd);
data/xdotool-3.20160805.1/cmd_type.c:93:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_type.c:102:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_window_select.c:20:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(usage, cmd);
data/xdotool-3.20160805.1/cmd_window_select.c:25:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_windowactivate.c:29:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(usage, cmd);
data/xdotool-3.20160805.1/cmd_windowactivate.c:37:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_windowactivate.c:45:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_windowclose.c:22:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(usage, cmd);
data/xdotool-3.20160805.1/cmd_windowclose.c:27:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_windowclose.c:35:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_windowfocus.c:27:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(usage, cmd);
data/xdotool-3.20160805.1/cmd_windowfocus.c:35:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_windowfocus.c:44:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_windowkill.c:22:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(usage, cmd);
data/xdotool-3.20160805.1/cmd_windowkill.c:27:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_windowkill.c:35:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_windowmap.c:29:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(usage, cmd);
data/xdotool-3.20160805.1/cmd_windowmap.c:37:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_windowmap.c:45:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_windowminimize.c:30:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(usage, cmd);
data/xdotool-3.20160805.1/cmd_windowminimize.c:38:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_windowminimize.c:46:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_windowmove.c:57:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(usage, cmd);
data/xdotool-3.20160805.1/cmd_windowmove.c:68:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_windowmove.c:78:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_windowraise.c:22:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(usage, cmd);
data/xdotool-3.20160805.1/cmd_windowraise.c:27:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_windowraise.c:35:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_windowreparent.c:23:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(usage, cmd);
data/xdotool-3.20160805.1/cmd_windowreparent.c:28:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_windowreparent.c:36:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_windowsize.c:37:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(usage, cmd);
data/xdotool-3.20160805.1/cmd_windowsize.c:48:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_windowsize.c:60:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_windowunmap.c:29:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(usage, cmd);
data/xdotool-3.20160805.1/cmd_windowunmap.c:37:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/cmd_windowunmap.c:45:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, usage, cmd);
data/xdotool-3.20160805.1/xdo.c:1901:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, format, args);
data/xdotool-3.20160805.1/xdo.c:1915:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(stderr, format, args);
data/xdotool-3.20160805.1/xdotool.c:519:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, usage, argv[0]);
data/xdotool-3.20160805.1/xdotool.c:537:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, usage, argv[0]);
data/xdotool-3.20160805.1/xdotool.c:628:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, format, args);
data/xdotool-3.20160805.1/xdotool.c:638:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(stdout, format, args);
data/xdotool-3.20160805.1/xdo.c:93:20:  [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.
    display_name = getenv("DISPLAY");
data/xdotool-3.20160805.1/xdo.c:120:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (getenv("XDO_QUIET")) {
data/xdotool-3.20160805.1/xdotool.c:351:20:  [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.
  context.debug = (getenv("DEBUG") != NULL);
data/xdotool-3.20160805.1/xdotool.c:423:19:  [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.
          token = getenv(line);
data/xdotool-3.20160805.1/xdotool.c:551:20:  [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.
  context.debug = (getenv("DEBUG") != NULL);
data/xdotool-3.20160805.1/cmd_behave_screen_edge.c:87:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        delay = atoi(optarg) * 1000; /* convert ms to usec */
data/xdotool-3.20160805.1/cmd_behave_screen_edge.c:92:19:  [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).
        quiesce = atoi(optarg) * 1000; /* convert ms to usec */
data/xdotool-3.20160805.1/cmd_behave_screen_edge.c:200:7:  [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(tmpcontext, context, sizeof(context_t));
data/xdotool-3.20160805.1/cmd_behave_screen_edge.c:232:15:  [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(&sleeptime, &delaytime, sizeof(struct timeval));
data/xdotool-3.20160805.1/cmd_click.c:65:18:  [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).
        repeat = atoi(optarg);
data/xdotool-3.20160805.1/cmd_click.c:86: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).
  button = atoi(context->argv[0]);
data/xdotool-3.20160805.1/cmd_exec.c:55:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        arity = atoi(optarg);
data/xdotool-3.20160805.1/cmd_get_display_geometry.c:33:18:  [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).
        screen = atoi(optarg);
data/xdotool-3.20160805.1/cmd_getmouselocation.c:22: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 out_prefix[17] = {'\0'};
data/xdotool-3.20160805.1/cmd_getwindowgeometry.c:10: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 out_prefix[17] = {'\0'};
data/xdotool-3.20160805.1/cmd_key.c:74:18:  [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).
        repeat = atoi(optarg);
data/xdotool-3.20160805.1/cmd_mousedown.c:54: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).
  button = atoi(context->argv[0]);
data/xdotool-3.20160805.1/cmd_mousemove.c:73:28:  [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).
        mousemove.screen = atoi(optarg);
data/xdotool-3.20160805.1/cmd_mousemove.c:84:26:  [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).
        mousemove.step = atoi(optarg);
data/xdotool-3.20160805.1/cmd_mousemove.c:120:19:  [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).
    mousemove.x = atoi(context->argv[0]);
data/xdotool-3.20160805.1/cmd_mousemove.c:121:19:  [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).
    mousemove.y = atoi(context->argv[1]);
data/xdotool-3.20160805.1/cmd_mousemove_relative.c:76:7:  [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).
  x = atoi(context->argv[0]);
data/xdotool-3.20160805.1/cmd_mousemove_relative.c:77:7:  [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).
  y = atoi(context->argv[1]);
data/xdotool-3.20160805.1/cmd_mouseup.c:54: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).
  button = atoi(context->argv[0]);
data/xdotool-3.20160805.1/cmd_search.c:15: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 out_prefix[17] = {'\0'};
data/xdotool-3.20160805.1/cmd_search.c:88:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        search.pid = atoi(optarg);
data/xdotool-3.20160805.1/cmd_search.c:130: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).
        search.limit = atoi(optarg);
data/xdotool-3.20160805.1/cmd_set_desktop_viewport.c:38:7:  [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).
  x = atoi(context->argv[0]);
data/xdotool-3.20160805.1/cmd_set_desktop_viewport.c:39:7:  [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).
  y = atoi(context->argv[1]);
data/xdotool-3.20160805.1/cmd_set_window.c:62:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        override_redirect = (atoi(optarg) > 0);
data/xdotool-3.20160805.1/cmd_set_window.c:65:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        urgency = (atoi(optarg) > 0);
data/xdotool-3.20160805.1/cmd_type.c:84:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        arity = atoi(optarg);
data/xdotool-3.20160805.1/cmd_type.c:124: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).
      input = fopen(file, "r");
data/xdotool-3.20160805.1/xdo.c:371: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 netwm_property[256] = "_NET_";
data/xdotool-3.20160805.1/xdo.c:1383:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        key = (unsigned int) atoi(tok);
data/xdotool-3.20160805.1/xdo.c:1609: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 keymap[32]; /* keycode map: 256 bits */
data/xdotool-3.20160805.1/xdotool.c:94:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  int window_index = atoi(window_arg + 1);
data/xdotool-3.20160805.1/xdotool.c:177:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      int window_index = atoi(window_arg + 1);
data/xdotool-3.20160805.1/xdotool.c:328: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 buffer[4096];
data/xdotool-3.20160805.1/xdotool.c:338:13:  [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).
    input = fopen(path, "r");
data/xdotool-3.20160805.1/xdotool.c:409:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
          pos = atoi(line) + 1; /* $1 is actually index 2 in the argv array */
data/xdotool-3.20160805.1/cmd_behave.c:124:9:  [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(100000); /* 100ms */
data/xdotool-3.20160805.1/cmd_getmouselocation.c:36:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(out_prefix, optarg, sizeof(out_prefix)-1);
data/xdotool-3.20160805.1/cmd_getwindowgeometry.c:38:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(out_prefix, optarg, sizeof(out_prefix)-1);
data/xdotool-3.20160805.1/cmd_key.c:140:9:  [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(repeat_delay);
data/xdotool-3.20160805.1/cmd_search.c:122:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(out_prefix, optarg, sizeof(out_prefix)-1);
data/xdotool-3.20160805.1/cmd_search.c:198:7:  [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(500000);
data/xdotool-3.20160805.1/cmd_sleep.c:49: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(duration_usec);
data/xdotool-3.20160805.1/cmd_type.c:141: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).
        bytes_read = (marker - buffer) + strlen(marker);
data/xdotool-3.20160805.1/cmd_windowmove.c:192:9:  [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(30000);
data/xdotool-3.20160805.1/xdo.c:162: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(30000); /* TODO(sissel): Use exponential backoff up to 1 second */
data/xdotool-3.20160805.1/xdo.c:373:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
  strncat(netwm_property, property, strlen(property));
data/xdotool-3.20160805.1/xdo.c:373: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).
  strncat(netwm_property, property, strlen(property));
data/xdotool-3.20160805.1/xdo.c:379:65:  [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).
                        PropModeReplace, (unsigned char*)value, strlen(value));
data/xdotool-3.20160805.1/xdo.c:388:65:  [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).
                        PropModeReplace, (unsigned char*)value, strlen(value));
data/xdotool-3.20160805.1/xdo.c:432: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(30000);
data/xdotool-3.20160805.1/xdo.c:452: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(30000);
data/xdotool-3.20160805.1/xdo.c:934: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(DEFAULT_DELAY);
data/xdotool-3.20160805.1/xdo.c:952: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(delay);
data/xdotool-3.20160805.1/xdo.c:1159: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(30000); /* TODO(sissel): Use exponential backoff up to 1 second */
data/xdotool-3.20160805.1/xdo.c:1358: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).
  if (strcspn(keyseq, " \t\n.-[]{}\\|") != strlen(keyseq)) {
data/xdotool-3.20160805.1/xdo.c:1555: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(delay);
data/xdotool-3.20160805.1/xdo.c:1749: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(30000);
data/xdotool-3.20160805.1/xdo.c:1764: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(30000);
data/xdotool-3.20160805.1/xdotool.c:157: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).
    if (strlen(window_arg) < 2) {
data/xdotool-3.20160805.1/xdotool.c:377:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (line[strlen(line)-1] == '\n') 
data/xdotool-3.20160805.1/xdotool.c:378: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).
      line[strlen(line)-1] = '\0'; 
data/xdotool-3.20160805.1/xdotool.c:381: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).
    while (strlen(line)) {
data/xdotool-3.20160805.1/xdotool.c:451:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        script_argv[script_argc] = (char *) calloc(strlen(token) + 1, sizeof(char));
data/xdotool-3.20160805.1/xdotool.c:454:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(script_argv[script_argc], token, strlen(token)+1);      
data/xdotool-3.20160805.1/xdotool.c:454: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).
        strncpy(script_argv[script_argc], token, strlen(token)+1);      
data/xdotool-3.20160805.1/xdotool.c:459:15:  [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).
      line += strlen(line) + 1;

ANALYSIS SUMMARY:

Hits = 193
Lines analyzed = 7778 in approximately 0.24 seconds (33094 lines/second)
Physical Source Lines of Code (SLOC) = 5587
Hits@level = [0] 131 [1]  31 [2]  36 [3]   5 [4] 121 [5]   0
Hits@level+ = [0+] 324 [1+] 193 [2+] 162 [3+] 126 [4+] 121 [5+]   0
Hits/KSLOC@level+ = [0+] 57.9918 [1+] 34.5445 [2+] 28.9959 [3+] 22.5524 [4+] 21.6574 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.