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/plymouth-0.9.5/src/client/ply-boot-client.h
Examining data/plymouth-0.9.5/src/client/ply-boot-client.c
Examining data/plymouth-0.9.5/src/client/plymouth.c
Examining data/plymouth-0.9.5/src/ply-boot-protocol.h
Examining data/plymouth-0.9.5/src/libply/ply-utils.h
Examining data/plymouth-0.9.5/src/libply/ply-array.h
Examining data/plymouth-0.9.5/src/libply/ply-key-file.h
Examining data/plymouth-0.9.5/src/libply/ply-rectangle.h
Examining data/plymouth-0.9.5/src/libply/ply-list.c
Examining data/plymouth-0.9.5/src/libply/ply-bitarray.c
Examining data/plymouth-0.9.5/src/libply/ply-key-file.c
Examining data/plymouth-0.9.5/src/libply/ply-utils.c
Examining data/plymouth-0.9.5/src/libply/ply-trigger.c
Examining data/plymouth-0.9.5/src/libply/ply-trigger.h
Examining data/plymouth-0.9.5/src/libply/ply-logger.h
Examining data/plymouth-0.9.5/src/libply/ply-logger.c
Examining data/plymouth-0.9.5/src/libply/ply-terminal-session.h
Examining data/plymouth-0.9.5/src/libply/ply-progress.c
Examining data/plymouth-0.9.5/src/libply/ply-bitarray.h
Examining data/plymouth-0.9.5/src/libply/ply-i18n.h
Examining data/plymouth-0.9.5/src/libply/ply-hashtable.c
Examining data/plymouth-0.9.5/src/libply/ply-buffer.h
Examining data/plymouth-0.9.5/src/libply/ply-array.c
Examining data/plymouth-0.9.5/src/libply/ply-event-loop.c
Examining data/plymouth-0.9.5/src/libply/ply-region.c
Examining data/plymouth-0.9.5/src/libply/ply-event-loop.h
Examining data/plymouth-0.9.5/src/libply/ply-command-parser.c
Examining data/plymouth-0.9.5/src/libply/ply-progress.h
Examining data/plymouth-0.9.5/src/libply/ply-list.h
Examining data/plymouth-0.9.5/src/libply/ply-rectangle.c
Examining data/plymouth-0.9.5/src/libply/ply-hashtable.h
Examining data/plymouth-0.9.5/src/libply/ply-terminal-session.c
Examining data/plymouth-0.9.5/src/libply/ply-buffer.c
Examining data/plymouth-0.9.5/src/libply/ply-region.h
Examining data/plymouth-0.9.5/src/libply/ply-command-parser.h
Examining data/plymouth-0.9.5/src/libply-splash-graphics/ply-throbber.h
Examining data/plymouth-0.9.5/src/libply-splash-graphics/ply-progress-animation.c
Examining data/plymouth-0.9.5/src/libply-splash-graphics/ply-label.h
Examining data/plymouth-0.9.5/src/libply-splash-graphics/ply-label.c
Examining data/plymouth-0.9.5/src/libply-splash-graphics/ply-animation.c
Examining data/plymouth-0.9.5/src/libply-splash-graphics/ply-progress-bar.c
Examining data/plymouth-0.9.5/src/libply-splash-graphics/ply-animation.h
Examining data/plymouth-0.9.5/src/libply-splash-graphics/ply-entry.c
Examining data/plymouth-0.9.5/src/libply-splash-graphics/ply-entry.h
Examining data/plymouth-0.9.5/src/libply-splash-graphics/ply-image.h
Examining data/plymouth-0.9.5/src/libply-splash-graphics/ply-image.c
Examining data/plymouth-0.9.5/src/libply-splash-graphics/ply-keymap-icon.h
Examining data/plymouth-0.9.5/src/libply-splash-graphics/ply-keymap-metadata.h
Examining data/plymouth-0.9.5/src/libply-splash-graphics/ply-capslock-icon.c
Examining data/plymouth-0.9.5/src/libply-splash-graphics/ply-throbber.c
Examining data/plymouth-0.9.5/src/libply-splash-graphics/ply-progress-bar.h
Examining data/plymouth-0.9.5/src/libply-splash-graphics/ply-capslock-icon.h
Examining data/plymouth-0.9.5/src/libply-splash-graphics/ply-label-plugin.h
Examining data/plymouth-0.9.5/src/libply-splash-graphics/ply-progress-animation.h
Examining data/plymouth-0.9.5/src/libply-splash-graphics/ply-keymap-icon.c
Examining data/plymouth-0.9.5/src/ply-boot-server.c
Examining data/plymouth-0.9.5/src/libply-splash-core/ply-terminal.h
Examining data/plymouth-0.9.5/src/libply-splash-core/ply-text-progress-bar.c
Examining data/plymouth-0.9.5/src/libply-splash-core/ply-text-step-bar.h
Examining data/plymouth-0.9.5/src/libply-splash-core/ply-pixel-display.h
Examining data/plymouth-0.9.5/src/libply-splash-core/ply-renderer-plugin.h
Examining data/plymouth-0.9.5/src/libply-splash-core/ply-text-display.c
Examining data/plymouth-0.9.5/src/libply-splash-core/ply-text-progress-bar.h
Examining data/plymouth-0.9.5/src/libply-splash-core/ply-device-manager.h
Examining data/plymouth-0.9.5/src/libply-splash-core/ply-pixel-buffer.c
Examining data/plymouth-0.9.5/src/libply-splash-core/ply-terminal.c
Examining data/plymouth-0.9.5/src/libply-splash-core/ply-pixel-display.c
Examining data/plymouth-0.9.5/src/libply-splash-core/ply-device-manager.c
Examining data/plymouth-0.9.5/src/libply-splash-core/ply-renderer.c
Examining data/plymouth-0.9.5/src/libply-splash-core/ply-boot-splash.h
Examining data/plymouth-0.9.5/src/libply-splash-core/ply-text-step-bar.c
Examining data/plymouth-0.9.5/src/libply-splash-core/ply-keyboard.h
Examining data/plymouth-0.9.5/src/libply-splash-core/ply-text-display.h
Examining data/plymouth-0.9.5/src/libply-splash-core/ply-renderer.h
Examining data/plymouth-0.9.5/src/libply-splash-core/ply-keyboard.c
Examining data/plymouth-0.9.5/src/libply-splash-core/ply-pixel-buffer.h
Examining data/plymouth-0.9.5/src/libply-splash-core/ply-boot-splash-plugin.h
Examining data/plymouth-0.9.5/src/libply-splash-core/ply-boot-splash.c
Examining data/plymouth-0.9.5/src/ply-boot-server.h
Examining data/plymouth-0.9.5/src/upstart-bridge/plymouth-upstart-bridge.c
Examining data/plymouth-0.9.5/src/upstart-bridge/ply-upstart-monitor.h
Examining data/plymouth-0.9.5/src/upstart-bridge/ply-upstart-monitor.c
Examining data/plymouth-0.9.5/src/plugins/renderers/drm/plugin.c
Examining data/plymouth-0.9.5/src/plugins/renderers/x11/plugin.c
Examining data/plymouth-0.9.5/src/plugins/renderers/frame-buffer/plugin.c
Examining data/plymouth-0.9.5/src/plugins/controls/label/plugin.c
Examining data/plymouth-0.9.5/src/plugins/splash/text/plugin.c
Examining data/plymouth-0.9.5/src/plugins/splash/two-step/plugin.c
Examining data/plymouth-0.9.5/src/plugins/splash/tribar/plugin.c
Examining data/plymouth-0.9.5/src/plugins/splash/fade-throbber/plugin.c
Examining data/plymouth-0.9.5/src/plugins/splash/space-flares/plugin.c
Examining data/plymouth-0.9.5/src/plugins/splash/details/plugin.c
Examining data/plymouth-0.9.5/src/plugins/splash/script/script.h
Examining data/plymouth-0.9.5/src/plugins/splash/script/script-lib-sprite.h
Examining data/plymouth-0.9.5/src/plugins/splash/script/script-parse.c
Examining data/plymouth-0.9.5/src/plugins/splash/script/script-object.h
Examining data/plymouth-0.9.5/src/plugins/splash/script/script-lib-math.h
Examining data/plymouth-0.9.5/src/plugins/splash/script/script-lib-plymouth.h
Examining data/plymouth-0.9.5/src/plugins/splash/script/script-scan.c
Examining data/plymouth-0.9.5/src/plugins/splash/script/script-execute.c
Examining data/plymouth-0.9.5/src/plugins/splash/script/script-debug.h
Examining data/plymouth-0.9.5/src/plugins/splash/script/script.c
Examining data/plymouth-0.9.5/src/plugins/splash/script/script-lib-image.c
Examining data/plymouth-0.9.5/src/plugins/splash/script/script-lib-sprite.c
Examining data/plymouth-0.9.5/src/plugins/splash/script/script-scan.h
Examining data/plymouth-0.9.5/src/plugins/splash/script/script-lib-math.c
Examining data/plymouth-0.9.5/src/plugins/splash/script/script-parse.h
Examining data/plymouth-0.9.5/src/plugins/splash/script/script-object.c
Examining data/plymouth-0.9.5/src/plugins/splash/script/script-debug.c
Examining data/plymouth-0.9.5/src/plugins/splash/script/plugin.h
Examining data/plymouth-0.9.5/src/plugins/splash/script/script-lib-string.h
Examining data/plymouth-0.9.5/src/plugins/splash/script/script-execute.h
Examining data/plymouth-0.9.5/src/plugins/splash/script/script-lib-plymouth.c
Examining data/plymouth-0.9.5/src/plugins/splash/script/plugin.c
Examining data/plymouth-0.9.5/src/plugins/splash/script/script-lib-image.h
Examining data/plymouth-0.9.5/src/plugins/splash/script/script-lib-string.c
Examining data/plymouth-0.9.5/src/main.c

FINAL RESULTS:

data/plymouth-0.9.5/src/client/plymouth.c:155:17:  [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 (args[0], args);
data/plymouth-0.9.5/src/libply/ply-buffer.c:163:23:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        string_size = vsnprintf (write_buffer, 0, format, args) + 1;
data/plymouth-0.9.5/src/libply/ply-buffer.c:170:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        vsnprintf (write_buffer, PLY_BUFFER_MAX_APPEND_SIZE,
data/plymouth-0.9.5/src/libply/ply-logger.c:476:23:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        string_size = vsnprintf (write_buffer, 0, format, args) + 1;
data/plymouth-0.9.5/src/libply/ply-logger.c:485:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        vsnprintf (write_buffer, PLY_LOGGER_MAX_INJECTION_SIZE,
data/plymouth-0.9.5/src/libply/ply-logger.h:96:25:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
                        snprintf (buf, sizeof(buf),                                            \
data/plymouth-0.9.5/src/main.c:1948:51:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                if (getenv ("DISPLAY") != NULL && access (PLYMOUTH_PLUGIN_PATH "renderers/x11.so", F_OK) == 0)
data/plymouth-0.9.5/src/libply/ply-utils.c:870:35:  [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 ((force_device_scale = getenv ("PLYMOUTH_FORCE_SCALE")))
data/plymouth-0.9.5/src/main.c:657:9:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
        chroot (".");
data/plymouth-0.9.5/src/main.c:1948:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
                if (getenv ("DISPLAY") != NULL && access (PLYMOUTH_PLUGIN_PATH "renderers/x11.so", F_OK) == 0)
data/plymouth-0.9.5/src/main.c:2263:14:  [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.
            (getenv ("DISPLAY") != NULL))
data/plymouth-0.9.5/src/plugins/renderers/frame-buffer/plugin.c:251:18:  [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.
        else if (getenv ("FRAMEBUFFER") != NULL)
data/plymouth-0.9.5/src/plugins/renderers/frame-buffer/plugin.c:252:48:  [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.
                backend->device_name = strdup (getenv ("FRAMEBUFFER"));
data/plymouth-0.9.5/src/plugins/renderers/x11/plugin.c:260:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
                if (getenv ("PLY_CREATE_FAKE_MULTI_HEAD_SETUP") != NULL)
data/plymouth-0.9.5/src/plugins/splash/fade-throbber/plugin.c:171:9:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        srand ((int) ply_get_timestamp ());
data/plymouth-0.9.5/src/plugins/splash/script/script-lib-math.c:63:31:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        double reply_double = random () / ((double) RAND_MAX + 1);
data/plymouth-0.9.5/src/plugins/splash/script/script-lib-math.c:72:9:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        srand ((int) ply_get_timestamp ());
data/plymouth-0.9.5/src/plugins/splash/space-flares/plugin.c:496:9:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        srand ((int) ply_get_timestamp ());
data/plymouth-0.9.5/src/plugins/splash/two-step/plugin.c:1024:9:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        srand ((int) ply_get_timestamp ());
data/plymouth-0.9.5/src/client/ply-boot-client.c:722: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 arg[2] = "";
data/plymouth-0.9.5/src/libply-splash-core/ply-device-manager.c:639: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 contents[512] = "";
data/plymouth-0.9.5/src/libply-splash-core/ply-device-manager.c:645:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fd = open (path, O_RDONLY);
data/plymouth-0.9.5/src/libply-splash-core/ply-pixel-buffer.c:569:41:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                                        memcpy (ptr, (void *) shaded_set, UNROLLED_PIXEL_COUNT * sizeof(uint32_t));
data/plymouth-0.9.5/src/libply-splash-core/ply-pixel-buffer.c:573:33:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                                memcpy (ptr, (void *) shaded_set, x * sizeof(uint32_t));
data/plymouth-0.9.5/src/libply-splash-core/ply-pixel-buffer.c:836:17:  [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 (canvas->bytes + (cropped_area->y + row - y) * canvas->area.width + cropped_area->x,
data/plymouth-0.9.5/src/libply-splash-core/ply-terminal.c:204:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (terminal->original_color_palette, terminal->color_palette,
data/plymouth-0.9.5/src/libply-splash-core/ply-terminal.c:214:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (terminal->color_palette, terminal->original_color_palette,
data/plymouth-0.9.5/src/libply-splash-core/ply-terminal.c:589:24:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        terminal->fd = open (terminal->name, O_RDWR | O_NOCTTY | O_NONBLOCK);
data/plymouth-0.9.5/src/libply-splash-core/ply-text-progress-bar.c:107:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fd = open (RELEASE_FILE, O_RDONLY | O_CLOEXEC);
data/plymouth-0.9.5/src/libply-splash-graphics/ply-image.c:134:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy (data + i, &pixel_value, sizeof(uint32_t));
data/plymouth-0.9.5/src/libply-splash-graphics/ply-image.c:285:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fp = fopen (image->filename, "re");
data/plymouth-0.9.5/src/libply/ply-buffer.c:155: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 write_buffer[PLY_BUFFER_MAX_APPEND_SIZE] = "";
data/plymouth-0.9.5/src/libply/ply-buffer.c:200:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (buffer->data + buffer->size,
data/plymouth-0.9.5/src/libply/ply-buffer.c:211: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 bytes[PLY_BUFFER_MAX_APPEND_SIZE] = "";
data/plymouth-0.9.5/src/libply/ply-key-file.c:81:24:  [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).
        key_file->fp = fopen (key_file->filename, "re");
data/plymouth-0.9.5/src/libply/ply-logger.c:216:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (logger->buffer + logger->buffer_size,
data/plymouth-0.9.5/src/libply/ply-logger.c:316: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 header[80];
data/plymouth-0.9.5/src/libply/ply-logger.c:324:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fd = open (filename, PLY_LOGGER_OPEN_FLAGS, 0600);
data/plymouth-0.9.5/src/libply/ply-logger.c:463: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 write_buffer[PLY_LOGGER_MAX_INJECTION_SIZE] = "";
data/plymouth-0.9.5/src/libply/ply-logger.h:93:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char buf[128];                                                         \
data/plymouth-0.9.5/src/libply/ply-progress.c:168:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fp = fopen (filename, "r");
data/plymouth-0.9.5/src/libply/ply-progress.c:216:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fp = fopen (filename, "w");
data/plymouth-0.9.5/src/libply/ply-terminal-session.c:132:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fd = open (terminal_name, O_RDWR | O_NOCTTY);
data/plymouth-0.9.5/src/libply/ply-terminal-session.c:157:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fd = open ("/dev/console", O_RDWR | O_NOCTTY);
data/plymouth-0.9.5/src/libply/ply-utils.c:85: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 kernel_command_line[PLY_MAX_COMMAND_LINE_SIZE];
data/plymouth-0.9.5/src/libply/ply-utils.c:779:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fd = open (path, O_RDONLY);
data/plymouth-0.9.5/src/libply/ply-utils.c:820:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fp = fopen (path, "re");
data/plymouth-0.9.5/src/libply/ply-utils.c:911:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fd = open ("/proc/cmdline", O_RDONLY);
data/plymouth-0.9.5/src/main.c:1842:30:  [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 (stream, O_RDWR | O_NOCTTY | O_CREAT, 0600);
data/plymouth-0.9.5/src/main.c:1862:30:  [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 (file, O_RDWR | O_APPEND);
data/plymouth-0.9.5/src/main.c:1908:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fd = open ("/dev/null", O_RDWR | O_APPEND);
data/plymouth-0.9.5/src/main.c:2003:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fd = open (debug_buffer_path,
data/plymouth-0.9.5/src/main.c:2024:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fd = open ("/dev/tty1", O_RDWR | O_NOCTTY);
data/plymouth-0.9.5/src/main.c:2025:26:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if (fd < 0) fd = open ("/dev/hvc0", O_RDWR | O_NOCTTY);
data/plymouth-0.9.5/src/main.c:2061:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fp = fopen (filename, "w");
data/plymouth-0.9.5/src/plugins/renderers/drm/plugin.c:834:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy (dst, src, area_to_flush->width * area_to_flush->height * 4);
data/plymouth-0.9.5/src/plugins/renderers/drm/plugin.c:839:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy (dst, src, area_to_flush->width * 4);
data/plymouth-0.9.5/src/plugins/renderers/drm/plugin.c:976:21:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        device_fd = open (backend->device_name, O_RDWR);
data/plymouth-0.9.5/src/plugins/renderers/drm/plugin.c:1294:17:  [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 (new_outputs, outputs, outputs_len * sizeof(ply_output_t));
data/plymouth-0.9.5/src/plugins/renderers/frame-buffer/plugin.c:199:25:  [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 (row_backend + column * backend->bytes_per_pixel,
data/plymouth-0.9.5/src/plugins/renderers/frame-buffer/plugin.c:204:17:  [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 (head->map_address + offset, row_backend + x1 * backend->bytes_per_pixel,
data/plymouth-0.9.5/src/plugins/renderers/frame-buffer/plugin.c:230:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy (dst, src, area_to_flush->width * area_to_flush->height * 4);
data/plymouth-0.9.5/src/plugins/renderers/frame-buffer/plugin.c:235:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy (dst, src, area_to_flush->width * 4);
data/plymouth-0.9.5/src/plugins/renderers/frame-buffer/plugin.c:339:30:  [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).
        backend->device_fd = open (backend->device_name, O_RDWR);
data/plymouth-0.9.5/src/plugins/renderers/frame-buffer/plugin.c:410:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf (unknown, "invalid visual: %d", visual);
data/plymouth-0.9.5/src/plugins/splash/script/plugin.c:365: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 keyboard_string[character_size + 1];
data/plymouth-0.9.5/src/plugins/splash/script/plugin.c:367:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (keyboard_string, keyboard_input, character_size);
data/plymouth-0.9.5/src/plugins/splash/script/script-lib-string.c:45: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 charstring [2];
data/plymouth-0.9.5/src/plugins/splash/script/script-scan.c:71:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        int fd = open (filename, O_RDONLY | O_CLOEXEC);
data/plymouth-0.9.5/src/plugins/splash/two-step/plugin.c:328: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[64];
data/plymouth-0.9.5/src/plugins/splash/two-step/plugin.c:332: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).
        f = fopen("/sys/firmware/acpi/bgrt/status", "r");
data/plymouth-0.9.5/src/plugins/splash/two-step/plugin.c:359: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).
        f = fopen("/sys/firmware/acpi/bgrt/xoffset", "r");
data/plymouth-0.9.5/src/plugins/splash/two-step/plugin.c:371: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).
        f = fopen("/sys/firmware/acpi/bgrt/yoffset", "r");
data/plymouth-0.9.5/src/plugins/splash/two-step/plugin.c:1714: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[64];
data/plymouth-0.9.5/src/client/ply-boot-client.c:378:33:  [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).
                *request_size = strlen (request_string) + 1;
data/plymouth-0.9.5/src/client/ply-boot-client.c:382: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).
        assert (strlen (request->argument) <= UCHAR_MAX);
data/plymouth-0.9.5/src/client/ply-boot-client.c:386: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).
                  (char) (strlen (request->argument) + 1), request->argument);
data/plymouth-0.9.5/src/client/ply-boot-client.c:387: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).
        *request_size = strlen (request_string) + 1;
data/plymouth-0.9.5/src/client/ply-boot-client.c:465: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).
        assert (request_argument == NULL || strlen (request_argument) <= UCHAR_MAX);
data/plymouth-0.9.5/src/client/plymouth.c:163: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).
                if (write (command_input_sender_fd, answer, strlen (answer)) < 0)
data/plymouth-0.9.5/src/client/plymouth.c:263:55:  [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).
                        write (STDOUT_FILENO, answer, strlen (answer));
data/plymouth-0.9.5/src/client/plymouth.c:301:55:  [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).
                        write (STDOUT_FILENO, answer, strlen (answer));
data/plymouth-0.9.5/src/client/plymouth.c:347: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).
                write (STDOUT_FILENO, answer, strlen (answer));
data/plymouth-0.9.5/src/libply-splash-core/ply-device-manager.c:524: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 (strncmp (device_name, "/dev/", strlen ("/dev/")) == 0)
data/plymouth-0.9.5/src/libply-splash-core/ply-device-manager.c:653:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        contents_length = read (fd, contents, sizeof(contents) - 1);
data/plymouth-0.9.5/src/libply-splash-core/ply-terminal.c:140: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).
        if (keymap && keymap[0] == '"' && keymap[strlen (keymap) - 1] == '"') {
data/plymouth-0.9.5/src/libply-splash-core/ply-terminal.c:142: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).
                keymap = strndup(keymap + 1, strlen (keymap) - 2);
data/plymouth-0.9.5/src/libply-splash-core/ply-terminal.c:162: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 (strncmp (device_name, "/dev/", strlen ("/dev/")) == 0)
data/plymouth-0.9.5/src/libply-splash-core/ply-text-display.c:250: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).
        write (fd, string, strlen (string));
data/plymouth-0.9.5/src/libply-splash-core/ply-text-progress-bar.c:117:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        read (fd, buf, sbuf.st_size);
data/plymouth-0.9.5/src/libply-splash-core/ply-text-progress-bar.c:131: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).
                        pos += strlen (key);
data/plymouth-0.9.5/src/libply-splash-core/ply-text-progress-bar.c:137: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).
                                pos2 = pos + strlen (pos) - 1;
data/plymouth-0.9.5/src/libply-splash-core/ply-text-progress-bar.c:162:16:  [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 (" release ");
data/plymouth-0.9.5/src/libply-splash-core/ply-text-progress-bar.c:183:55:  [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).
        width = progress_bar->number_of_columns - 2 - strlen (os_string);
data/plymouth-0.9.5/src/libply-splash-graphics/ply-animation.c:244:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                             strlen (animation->frames_prefix)) == 0
data/plymouth-0.9.5/src/libply-splash-graphics/ply-animation.c:245: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).
                    && (strlen (entries[i]->d_name) > 4)
data/plymouth-0.9.5/src/libply-splash-graphics/ply-animation.c:246:53:  [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).
                    && strcmp (entries[i]->d_name + strlen (entries[i]->d_name) - 4, ".png") == 0) {
data/plymouth-0.9.5/src/libply-splash-graphics/ply-keymap-icon.c:67:62:  [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 (keymap_with_variant, prefix[i], strlen (prefix[i])) == 0) {
data/plymouth-0.9.5/src/libply-splash-graphics/ply-progress-animation.c:352:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                             strlen (progress_animation->frames_prefix)) == 0
data/plymouth-0.9.5/src/libply-splash-graphics/ply-progress-animation.c:353: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).
                    && (strlen (entries[i]->d_name) > 4)
data/plymouth-0.9.5/src/libply-splash-graphics/ply-progress-animation.c:354:53:  [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).
                    && strcmp (entries[i]->d_name + strlen (entries[i]->d_name) - 4, ".png") == 0) {
data/plymouth-0.9.5/src/libply-splash-graphics/ply-throbber.c:254:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                             strlen (throbber->frames_prefix)) == 0
data/plymouth-0.9.5/src/libply-splash-graphics/ply-throbber.c:255: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).
                    && (strlen (entries[i]->d_name) > 4)
data/plymouth-0.9.5/src/libply-splash-graphics/ply-throbber.c:256:53:  [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).
                    && strcmp (entries[i]->d_name + strlen (entries[i]->d_name) - 4, ".png") == 0) {
data/plymouth-0.9.5/src/libply/ply-buffer.c:220:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bytes_read = read (fd, bytes, sizeof(bytes));
data/plymouth-0.9.5/src/libply/ply-command-parser.c:210:33:  [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 (option->name) + strlen (option_type_string));
data/plymouth-0.9.5/src/libply/ply-command-parser.c:210:57:  [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 (option->name) + strlen (option_type_string));
data/plymouth-0.9.5/src/libply/ply-command-parser.c:251: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).
                longest_subcommand = MAX (longest_subcommand, (int) strlen (command->name));
data/plymouth-0.9.5/src/libply/ply-command-parser.c:263:68:  [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) (longest_subcommand + 2 - strlen (command->name)),
data/plymouth-0.9.5/src/libply/ply-command-parser.c:306: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).
                                              strlen (name)
data/plymouth-0.9.5/src/libply/ply-command-parser.c:308:49:  [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 (get_type_string (type)));
data/plymouth-0.9.5/src/libply/ply-command-parser.c:441:79:  [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).
        parser->longest_command_length = MAX (parser->longest_command_length, strlen (name));
data/plymouth-0.9.5/src/libply/ply-command-parser.c:799: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).
        option_name = strdup (argument + strlen ("--"));
data/plymouth-0.9.5/src/libply/ply-command-parser.c:807:49:  [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 ("=") + 1),
data/plymouth-0.9.5/src/libply/ply-key-file.c:187:38:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        first_byte = fgetc (key_file->fp);
data/plymouth-0.9.5/src/libply/ply-key-file.c:241:30:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                first_byte = fgetc (key_file->fp);
data/plymouth-0.9.5/src/libply/ply-logger.c:341: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).
                ply_logger_write (logger, header, strlen(header), true);
data/plymouth-0.9.5/src/libply/ply-terminal-session.c:313:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bytes_read = read (session_fd, buffer, sizeof(buffer));
data/plymouth-0.9.5/src/libply/ply-utils.c:136: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).
        assert (strlen (path) < sizeof(address->sun_path));
data/plymouth-0.9.5/src/libply/ply-utils.c:148:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy (address->sun_path, path, sizeof(address->sun_path) - 1);
data/plymouth-0.9.5/src/libply/ply-utils.c:150:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy (address->sun_path + 1, path, sizeof(address->sun_path) - 1);
data/plymouth-0.9.5/src/libply/ply-utils.c:161:33:  [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 (address->sun_path + 1) /* path */;
data/plymouth-0.9.5/src/libply/ply-utils.c:336:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                bytes_read = read (fd,
data/plymouth-0.9.5/src/libply/ply-utils.c:787:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bytes_read = read (fd, command_line, PLY_MAX_COMMAND_LINE_SIZE - 1);
data/plymouth-0.9.5/src/libply/ply-utils.c:919:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (read (fd, kernel_command_line, sizeof(kernel_command_line) - 1) < 0) {
data/plymouth-0.9.5/src/libply/ply-utils.c:932: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).
                colon = key + strlen ("plymouth");
data/plymouth-0.9.5/src/libply/ply-utils.c:961:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                return argument + strlen (prefix);
data/plymouth-0.9.5/src/libply/ply-utils.c:997:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy (kernel_command_line, command_line, sizeof(kernel_command_line));
data/plymouth-0.9.5/src/main.c:850: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).
                length = strlen (init_string);
data/plymouth-0.9.5/src/main.c:1857:55:  [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 (device, "/dev/", strlen ("/dev/")) == 0)
data/plymouth-0.9.5/src/plugins/splash/details/plugin.c:345: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).
                write_on_views (plugin, "\n", strlen ("\n"));
data/plymouth-0.9.5/src/plugins/splash/details/plugin.c:357: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).
                write_on_views (plugin, message, strlen (message));
data/plymouth-0.9.5/src/plugins/splash/details/plugin.c:358: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).
                write_on_views (plugin, "\n", strlen ("\n"));
data/plymouth-0.9.5/src/plugins/splash/details/plugin.c:373: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).
                write_on_views (plugin, "\n", strlen ("\n"));
data/plymouth-0.9.5/src/plugins/splash/details/plugin.c:377:33:  [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 (CLEAR_LINE_SEQUENCE));
data/plymouth-0.9.5/src/plugins/splash/details/plugin.c:383:33:  [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 (prompt));
data/plymouth-0.9.5/src/plugins/splash/details/plugin.c:387:33:  [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 ("Password"));
data/plymouth-0.9.5/src/plugins/splash/details/plugin.c:389: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).
        write_on_views (plugin, ":", strlen (":"));
data/plymouth-0.9.5/src/plugins/splash/details/plugin.c:392: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).
                write_on_views (plugin, "*", strlen ("*"));
data/plymouth-0.9.5/src/plugins/splash/details/plugin.c:402: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).
                write_on_views (plugin, "\n", strlen ("\n"));
data/plymouth-0.9.5/src/plugins/splash/details/plugin.c:406:33:  [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 (CLEAR_LINE_SEQUENCE));
data/plymouth-0.9.5/src/plugins/splash/details/plugin.c:410:49:  [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).
                write_on_views (plugin, prompt, strlen (prompt));
data/plymouth-0.9.5/src/plugins/splash/details/plugin.c:412: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).
        write_on_views (plugin, ":", strlen (":"));
data/plymouth-0.9.5/src/plugins/splash/details/plugin.c:413: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).
        write_on_views (plugin, entry_text, strlen (entry_text));
data/plymouth-0.9.5/src/plugins/splash/details/plugin.c:421: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).
                write_on_views (plugin, message, strlen (message));
data/plymouth-0.9.5/src/plugins/splash/details/plugin.c:422: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).
                write_on_views (plugin, "\n", strlen ("\n"));
data/plymouth-0.9.5/src/plugins/splash/script/script-scan.c:144:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                int got = read (scan->source.fd, &scan->cur_char, 1);
data/plymouth-0.9.5/src/plugins/splash/text/plugin.c:126:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                               strlen (plugin->message)) / 2,
data/plymouth-0.9.5/src/plugins/splash/text/plugin.c:152:68:  [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).
                                              display_width / 2 - (strlen (prompt)),
data/plymouth-0.9.5/src/plugins/splash/tribar/plugin.c:129:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                               strlen (plugin->message)) / 2,
data/plymouth-0.9.5/src/plugins/splash/tribar/plugin.c:155:68:  [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).
                                              display_width / 2 - (strlen (prompt)),
data/plymouth-0.9.5/src/ply-boot-server.c:273:33:  [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 (PLY_BOOT_PROTOCOL_RESPONSE_TYPE_NO_ANSWER)))
data/plymouth-0.9.5/src/ply-boot-server.c:276: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).
                size = strlen (answer);
data/plymouth-0.9.5/src/ply-boot-server.c:280:33:  [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 (PLY_BOOT_PROTOCOL_RESPONSE_TYPE_ANSWER)) ||
data/plymouth-0.9.5/src/ply-boot-server.c:307: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).
                        strlen (PLY_BOOT_PROTOCOL_RESPONSE_TYPE_ACK)))
data/plymouth-0.9.5/src/ply-boot-server.c:317: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).
                        strlen (PLY_BOOT_PROTOCOL_RESPONSE_TYPE_ACK)))
data/plymouth-0.9.5/src/ply-boot-server.c:386:33:  [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 (PLY_BOOT_PROTOCOL_RESPONSE_TYPE_NAK)))
data/plymouth-0.9.5/src/ply-boot-server.c:397:33:  [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 (PLY_BOOT_PROTOCOL_RESPONSE_TYPE_ACK)) &&
data/plymouth-0.9.5/src/ply-boot-server.c:410:33:  [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 (PLY_BOOT_PROTOCOL_RESPONSE_TYPE_ACK)))
data/plymouth-0.9.5/src/ply-boot-server.c:432:33:  [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 (PLY_BOOT_PROTOCOL_RESPONSE_TYPE_ACK)))
data/plymouth-0.9.5/src/ply-boot-server.c:554: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).
                                                 strlen (password) + 1);
data/plymouth-0.9.5/src/ply-boot-server.c:567: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).
                                        strlen (PLY_BOOT_PROTOCOL_RESPONSE_TYPE_NO_ANSWER)))
data/plymouth-0.9.5/src/ply-boot-server.c:576: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).
                                        strlen (PLY_BOOT_PROTOCOL_RESPONSE_TYPE_MULTIPLE_ANSWERS)) ||
data/plymouth-0.9.5/src/ply-boot-server.c:673: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).
                                        strlen (PLY_BOOT_PROTOCOL_RESPONSE_TYPE_NAK)))
data/plymouth-0.9.5/src/ply-boot-server.c:685:33:  [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 (PLY_BOOT_PROTOCOL_RESPONSE_TYPE_NAK)))
data/plymouth-0.9.5/src/ply-boot-server.c:695: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).
                        strlen (PLY_BOOT_PROTOCOL_RESPONSE_TYPE_ACK)))
data/plymouth-0.9.5/src/upstart-bridge/plymouth-upstart-bridge.c:161: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 (number_of_columns < (int) strlen ("[fail]"))
data/plymouth-0.9.5/src/upstart-bridge/plymouth-upstart-bridge.c:164: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).
                column = number_of_columns - strlen ("[fail]") - 1;

ANALYSIS SUMMARY:

Hits = 168
Lines analyzed = 43318 in approximately 0.87 seconds (49883 lines/second)
Physical Source Lines of Code (SLOC) = 32655
Hits@level = [0]  22 [1]  94 [2]  55 [3]  12 [4]   7 [5]   0
Hits@level+ = [0+] 190 [1+] 168 [2+]  74 [3+]  19 [4+]   7 [5+]   0
Hits/KSLOC@level+ = [0+] 5.8184 [1+] 5.14469 [2+] 2.26612 [3+] 0.58184 [4+] 0.214362 [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.