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/ghostess-20120105/src/eyecandy.c
Examining data/ghostess-20120105/src/eyecandy.h
Examining data/ghostess-20120105/src/getarg.c
Examining data/ghostess-20120105/src/getarg.h
Examining data/ghostess-20120105/src/ghostess.c
Examining data/ghostess-20120105/src/ghostess.h
Examining data/ghostess-20120105/src/gtkknob.c
Examining data/ghostess-20120105/src/gtkknob.h
Examining data/ghostess-20120105/src/gui_callbacks.c
Parsing failed to find end of parameter list; semicolon terminated it in (buf, maxlen, "%s " VERSION "\n"
#else
    snprintf(buf, maxlen, "%s\n"
#endif
                       "Copyright (C) 2012 by Sean Bolton and others.\n\n"
                       "This is sloppy, hurrie
Examining data/ghostess-20120105/src/gui_callbacks.h
Examining data/ghostess-20120105/src/gui_interface.c
Examining data/ghostess-20120105/src/gui_interface.h
Examining data/ghostess-20120105/src/midi-alsa.c
Examining data/ghostess-20120105/src/midi-coremidi.c
Examining data/ghostess-20120105/src/midi-jack.c
Examining data/ghostess-20120105/src/midi.h
Examining data/ghostess-20120105/src/universal_gui.c
Examining data/ghostess-20120105/src/universal_gui.h

FINAL RESULTS:

data/ghostess-20120105/src/ghostess.c:161:9:  [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/ghostess-20120105/src/ghostess.c:712:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(filePath, "%s/%s", element, dllName);
data/ghostess-20120105/src/ghostess.c:885:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(*p, "'%s'", text);
data/ghostess-20120105/src/ghostess.c:1107:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(subpath, "%s/%s", directory, dllBase);
data/ghostess-20120105/src/ghostess.c:1137:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(filename, "%s/%s", subpath, entry->d_name);
data/ghostess-20120105/src/ghostess.c:1150:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(osc_url, "%sdssi/%s", host_osc_url, instance->friendly_name);
data/ghostess-20120105/src/ghostess.c:1161:25:  [4] (shell) execlp:
  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.
                        execlp(filename, filename, osc_url, dllName, label, tag, NULL);
data/ghostess-20120105/src/ghostess.c:1170:7:  [4] (shell) execlp:
  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.
		    execlp(filename, filename, osc_url, dllName, label, tag, NULL);
data/ghostess-20120105/src/ghostess.c:1211:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(filename, "%s/ghostess_universal_gui", subpath);
data/ghostess-20120105/src/ghostess.c:1223:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(osc_url, "%sdssi/%s", host_osc_url, instance->friendly_name);
data/ghostess-20120105/src/ghostess.c:1234:25:  [4] (shell) execlp:
  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.
                        execlp(filename, filename, osc_url, dllName, label, tag, NULL);
data/ghostess-20120105/src/ghostess.c:1243:7:  [4] (shell) execlp:
  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.
		    execlp(filename, filename, osc_url, dllName, label, tag, NULL);
data/ghostess-20120105/src/ghostess.c:1817:21:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                    strcpy(tmp, strrchr(plugin->dll->name, '/') + 1);
data/ghostess-20120105/src/ghostess.c:1819:21:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                    strcpy(tmp, plugin->dll->name);
data/ghostess-20120105/src/ghostess.c:1827:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(tmp, "/%s/inst%02d", plugin->label, instance->id);
data/ghostess-20120105/src/ghostess.c:2669:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(instance->ui_osc_configure_path, "%s/configure", path);
data/ghostess-20120105/src/ghostess.c:2673:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(instance->ui_osc_control_path, "%s/control", path);
data/ghostess-20120105/src/ghostess.c:2677:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(instance->ui_osc_hide_path, "%s/hide", path);
data/ghostess-20120105/src/ghostess.c:2681:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(instance->ui_osc_program_path, "%s/program", path);
data/ghostess-20120105/src/ghostess.c:2685:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(instance->ui_osc_rate_path, "%s/sample-rate", path);
data/ghostess-20120105/src/ghostess.c:2689:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(instance->ui_osc_show_path, "%s/show", path);
data/ghostess-20120105/src/ghostess.c:2693:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(instance->ui_osc_quit_path, "%s/quit", path);
data/ghostess-20120105/src/gui_callbacks.c:110:5:  [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, maxlen, "%s " VERSION "\n"
data/ghostess-20120105/src/gui_interface.c:263:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(title, "%s - File Selection", tag);
data/ghostess-20120105/src/gui_interface.c:348:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(title, "%s Notice", tag);
data/ghostess-20120105/src/gui_interface.c:533:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(tag, host_name_default);
data/ghostess-20120105/src/gui_interface.c:538:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(tag, host_tag);
data/ghostess-20120105/src/universal_gui.c:991:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(buf, tmp);
data/ghostess-20120105/src/universal_gui.c:1250:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(filePath, "%s/%s", element, soname);
data/ghostess-20120105/src/universal_gui.h:47:60:  [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.
#define GDB_MESSAGE(type, fmt...) { if (DSSP_DEBUG & type) fprintf(stderr, "ghostess uniGUI" fmt); }
data/ghostess-20120105/src/ghostess.c:695:37:  [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 (!dssi_path && !(dssi_path = getenv("DSSI_PATH"))) {
data/ghostess-20120105/src/ghostess.c:1197: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 ((origPath = getenv("PATH"))) {
data/ghostess-20120105/src/universal_gui.c:1233:22:  [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 (!(path = getenv("DSSI_PATH"))) {
data/ghostess-20120105/src/getarg.c:123:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *fh = fopen(filename, "r");
data/ghostess-20120105/src/ghostess.c:619:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buffer, pluginOutputBuffers[i], nframes * sizeof(LADSPA_Data));
data/ghostess-20120105/src/ghostess.c:745:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(inst->initial_value_set, temp->ports.set, sizeof(int) * number_set);
data/ghostess-20120105/src/ghostess.c:746:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(inst->initial_value, temp->ports.value, sizeof(LADSPA_Data) * number_set);
data/ghostess-20120105/src/ghostess.c:921:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fp = fopen(filename, "w")) == NULL) goto error;
data/ghostess-20120105/src/ghostess.c:969:13:  [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[G_ASCII_DTOSTR_BUF_SIZE];
data/ghostess-20120105/src/ghostess.c:1002:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tmp[255];
data/ghostess-20120105/src/ghostess.c:1004:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fp = fopen(filename, "w")) == NULL) goto error;
data/ghostess-20120105/src/ghostess.c:1091:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tag[12];
data/ghostess-20120105/src/ghostess.c:1460:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            debug_flags = atoi(arg0);
data/ghostess-20120105/src/ghostess.c:1987:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char portname[65];
data/ghostess-20120105/src/ghostess.c:2014:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char portname[65];
data/ghostess-20120105/src/gtkknob.c:804:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(data, cl->data + cl->offset, l);
data/ghostess-20120105/src/gtkknob.c:1143:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char knob_c_png[1082] =
data/ghostess-20120105/src/gtkknob.c:1188:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char knob_i_png[819] =
data/ghostess-20120105/src/gui_callbacks.c:106:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1024];
data/ghostess-20120105/src/gui_interface.c:409:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[12];
data/ghostess-20120105/src/gui_interface.c:529:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tag[64];
data/ghostess-20120105/src/universal_gui.c:103:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[256];
data/ghostess-20120105/src/universal_gui.c:347:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char midi[4];
data/ghostess-20120105/src/universal_gui.c:551:13:  [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[16];
data/ghostess-20120105/src/universal_gui.c:625:13:  [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[32];
data/ghostess-20120105/src/universal_gui.c:626:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(buf, "%.5g", plb);
data/ghostess-20120105/src/universal_gui.c:628:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(buf, "%.5g", pub);
data/ghostess-20120105/src/universal_gui.c:653:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[256], *tmp;
data/ghostess-20120105/src/universal_gui.c:1155:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf(buf, "%.5g", plb);
data/ghostess-20120105/src/universal_gui.c:1171:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf(buf, "%.5g", pub);
data/ghostess-20120105/src/universal_gui.c:1192:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tag[60];
data/ghostess-20120105/src/universal_gui.c:1196:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(tag, "ghostess universal DSSI plugin GUI");
data/ghostess-20120105/src/getarg.c:185:13:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        c = fgetc(state->state.file.fh);
data/ghostess-20120105/src/getarg.c:319:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!arg || !strlen(arg)) {
data/ghostess-20120105/src/ghostess.c:711: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).
        filePath = (char *)malloc(strlen(element) + strlen(dllName) + 2);
data/ghostess-20120105/src/ghostess.c:711: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).
        filePath = (char *)malloc(strlen(element) + strlen(dllName) + 2);
data/ghostess-20120105/src/ghostess.c:875: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).
    if (!text || (len = strlen(text)) == 0) {
data/ghostess-20120105/src/ghostess.c:1016:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(tmp, instance->pluginPrograms[i].Name, 254);
data/ghostess-20120105/src/ghostess.c:1097: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(dllBase) > 3 &&
data/ghostess-20120105/src/ghostess.c:1098: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).
        !strcasecmp(dllBase + strlen(dllBase) - 3, ".so")) {
data/ghostess-20120105/src/ghostess.c:1099: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).
        dllBase[strlen(dllBase) - 3] = '\0';
data/ghostess-20120105/src/ghostess.c:1106:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        subpath = (char *)malloc(strlen(directory) + strlen(dllBase) + 2);
data/ghostess-20120105/src/ghostess.c:1106:54:  [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).
        subpath = (char *)malloc(strlen(directory) + strlen(dllBase) + 2);
data/ghostess-20120105/src/ghostess.c:1124:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (strlen(entry->d_name) <= strlen(dllBase) ||
data/ghostess-20120105/src/ghostess.c:1124: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).
                if (strlen(entry->d_name) <= strlen(dllBase) ||
data/ghostess-20120105/src/ghostess.c:1125: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).
                    strncmp(entry->d_name, dllBase, strlen(dllBase)) ||
data/ghostess-20120105/src/ghostess.c:1126: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).
                    entry->d_name[strlen(dllBase)] != '_')
data/ghostess-20120105/src/ghostess.c:1130:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (strlen(entry->d_name) <= strlen(label) ||
data/ghostess-20120105/src/ghostess.c:1130: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).
                if (strlen(entry->d_name) <= strlen(label) ||
data/ghostess-20120105/src/ghostess.c:1131: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).
                    strncmp(entry->d_name, label, strlen(label)) ||
data/ghostess-20120105/src/ghostess.c:1132: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).
                    entry->d_name[strlen(label)] != '_')
data/ghostess-20120105/src/ghostess.c:1136:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            filename = (char *)malloc(strlen(subpath) + strlen(entry->d_name) + 2);
data/ghostess-20120105/src/ghostess.c:1136: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).
            filename = (char *)malloc(strlen(subpath) + strlen(entry->d_name) + 2);
data/ghostess-20120105/src/ghostess.c:1148: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).
                osc_url = (char *)malloc(strlen(host_osc_url) +
data/ghostess-20120105/src/ghostess.c:1149: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).
                                         strlen(instance->friendly_name) + 7);
data/ghostess-20120105/src/ghostess.c:1210:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            filename = (char *)malloc(strlen(subpath) + 24);
data/ghostess-20120105/src/ghostess.c:1221: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).
                osc_url = (char *)malloc(strlen(host_osc_url) +
data/ghostess-20120105/src/ghostess.c:1222: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).
                                         strlen(instance->friendly_name) + 7);
data/ghostess-20120105/src/ghostess.c:1455: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).
            if (!arg0 || !strlen(arg0)) {
data/ghostess-20120105/src/ghostess.c:1467: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).
            if (!arg0 || !strlen(arg0)) {
data/ghostess-20120105/src/ghostess.c:1480: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).
            if (!arg0 || !strlen(arg0)) {
data/ghostess-20120105/src/ghostess.c:1492: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).
            if (!arg0 || !strlen(arg0)) {
data/ghostess-20120105/src/ghostess.c:1513:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (arg0[0] == '-' && strlen(arg0) > 1) {
data/ghostess-20120105/src/ghostess.c:1524: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).
            if (!arg0 || !strlen(arg0)) {
data/ghostess-20120105/src/ghostess.c:1540: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).
            if (!arg0 || !strlen(arg0)) {
data/ghostess-20120105/src/ghostess.c:1561: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).
            if (!arg0 || !strlen(arg0)) {
data/ghostess-20120105/src/ghostess.c:1568: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).
            if (!arg1 || !strlen(arg1)) {
data/ghostess-20120105/src/ghostess.c:1596: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).
            if (!arg0 || !strlen(arg0)) {
data/ghostess-20120105/src/ghostess.c:1603: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).
            if (!arg1 || !strlen(arg1)) {
data/ghostess-20120105/src/ghostess.c:1640:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(dllName, arg0, tmp - arg0);
data/ghostess-20120105/src/ghostess.c:1813: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).
                tmp = (char *)malloc(strlen(plugin->dll->name) +
data/ghostess-20120105/src/ghostess.c:1814: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).
                                     strlen(plugin->label) + 9);
data/ghostess-20120105/src/ghostess.c:1821:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (strlen(tmp) > 3 &&
data/ghostess-20120105/src/ghostess.c:1822:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    !strcasecmp(tmp + strlen(tmp) - 3, ".so")) {
data/ghostess-20120105/src/ghostess.c:1823: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).
                    tmp = tmp + strlen(tmp) - 3;
data/ghostess-20120105/src/ghostess.c:1825: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).
                    tmp = tmp + strlen(tmp);
data/ghostess-20120105/src/ghostess.c:2588: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).
                strlen(DSSI_GLOBAL_CONFIGURE_PREFIX))) { /* single instance */
data/ghostess-20120105/src/ghostess.c:2668:54:  [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).
    instance->ui_osc_configure_path = (char *)malloc(strlen(path) + 11);
data/ghostess-20120105/src/ghostess.c:2672: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).
    instance->ui_osc_control_path = (char *)malloc(strlen(path) + 10);
data/ghostess-20120105/src/ghostess.c:2676: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).
    instance->ui_osc_hide_path = (char *)malloc(strlen(path) + 10);
data/ghostess-20120105/src/ghostess.c:2680: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).
    instance->ui_osc_program_path = (char *)malloc(strlen(path) + 10);
data/ghostess-20120105/src/ghostess.c:2684: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).
    instance->ui_osc_rate_path = (char *)malloc(strlen(path) + 13);
data/ghostess-20120105/src/ghostess.c:2688: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).
    instance->ui_osc_show_path = (char *)malloc(strlen(path) + 10);
data/ghostess-20120105/src/ghostess.c:2692: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).
    instance->ui_osc_quit_path = (char *)malloc(strlen(path) + 10);
data/ghostess-20120105/src/ghostess.c:2723:27:  [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.
        if (i % 50 == 49) usleep(300000);
data/ghostess-20120105/src/ghostess.c:2767: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).
        flen = strlen(instances[i].friendly_name);
data/ghostess-20120105/src/gui_callbacks.c:58: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).
    } else if (project_directory && strlen(project_directory)) {
data/ghostess-20120105/src/gui_callbacks.c:59:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (project_directory[strlen(project_directory) - 1] != '/') {
data/ghostess-20120105/src/gui_callbacks.c:125:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(buf);
data/ghostess-20120105/src/gui_callbacks.c:128:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(buf);
data/ghostess-20120105/src/gui_callbacks.c:133:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(buf);
data/ghostess-20120105/src/gui_callbacks.c:137:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(buf);
data/ghostess-20120105/src/gui_interface.c:262: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).
    title = (char *)malloc(strlen(tag) + 22);
data/ghostess-20120105/src/gui_interface.c:347: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).
    title = (char *)malloc(strlen(tag) + 8);
data/ghostess-20120105/src/gui_interface.c:532: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(host_tag) == 0) {
data/ghostess-20120105/src/gui_interface.c:535:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(host_tag) > 63) {
data/ghostess-20120105/src/gui_interface.c:536: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).
            snprintf(tag, 64, "...%s", host_tag + strlen(host_tag) - 60); /* hope the unique info is at the end */
data/ghostess-20120105/src/gui_interface.c:541:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(host_name_default) + strlen(host_tag) > 62) {
data/ghostess-20120105/src/gui_interface.c:541: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).
        if (strlen(host_name_default) + strlen(host_tag) > 62) {
data/ghostess-20120105/src/gui_interface.c:542:73:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            snprintf(tag, 64, "%s ...%s", host_name_default, host_tag + strlen(host_tag) + strlen(host_name_default) - 59);
data/ghostess-20120105/src/gui_interface.c:542:92:  [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).
            snprintf(tag, 64, "%s ...%s", host_name_default, host_tag + strlen(host_tag) + strlen(host_name_default) - 59);
data/ghostess-20120105/src/midi-alsa.c:103:17:  [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(500);
data/ghostess-20120105/src/universal_gui.c:990:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(tmp) <= 21) {
data/ghostess-20120105/src/universal_gui.c:993: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).
            for (x = 0, y = 0; x <= strlen(tmp) && y < 255; x++, y++) {
data/ghostess-20120105/src/universal_gui.c:1153:21:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
                    sprintf(buf, "?");
data/ghostess-20120105/src/universal_gui.c:1169:21:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
                    sprintf(buf, "?");
data/ghostess-20120105/src/universal_gui.c:1195: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(instance_tag) == 0) {
data/ghostess-20120105/src/universal_gui.c:1198:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(instance_tag) > 43) {
data/ghostess-20120105/src/universal_gui.c:1199:71:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            snprintf(tag, 60, "ghostess uniGUI ...%s", instance_tag + strlen(instance_tag) - 40);
data/ghostess-20120105/src/universal_gui.c:1249:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            filePath = (char *)malloc(strlen(element) + strlen(soname) + 2);
data/ghostess-20120105/src/universal_gui.c:1249: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).
            filePath = (char *)malloc(strlen(element) + strlen(soname) + 2);
data/ghostess-20120105/src/universal_gui.c:1387: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).
    osc_self_url = osc_build_path(tmp_url, (strlen(path) > 1 ? path + 1 : path));

ANALYSIS SUMMARY:

Hits = 142
Lines analyzed = 8030 in approximately 0.26 seconds (30718 lines/second)
Physical Source Lines of Code (SLOC) = 5995
Hits@level = [0]  80 [1]  80 [2]  29 [3]   3 [4]  30 [5]   0
Hits@level+ = [0+] 222 [1+] 142 [2+]  62 [3+]  33 [4+]  30 [5+]   0
Hits/KSLOC@level+ = [0+] 37.0309 [1+] 23.6864 [2+] 10.342 [3+] 5.50459 [4+] 5.00417 [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.