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/dssi-1.1.1~dfsg0/message_buffer/message_buffer.h Examining data/dssi-1.1.1~dfsg0/message_buffer/message_buffer.c Examining data/dssi-1.1.1~dfsg0/dssi/dssi.h Examining data/dssi-1.1.1~dfsg0/examples/less_trivial_synth.c Examining data/dssi-1.1.1~dfsg0/examples/dssi_list_plugins.c Examining data/dssi-1.1.1~dfsg0/examples/trivial_sampler.h Examining data/dssi-1.1.1~dfsg0/examples/less_trivial_synth_qt_gui.cpp Examining data/dssi-1.1.1~dfsg0/examples/saw.h Examining data/dssi-1.1.1~dfsg0/examples/less_trivial_synth_qt_gui.h Examining data/dssi-1.1.1~dfsg0/examples/dssi_osc_update.c Examining data/dssi-1.1.1~dfsg0/examples/trivial_sampler_qt_gui.h Examining data/dssi-1.1.1~dfsg0/examples/dssi_osc_send.c Examining data/dssi-1.1.1~dfsg0/examples/trivial_sampler_qt_gui.cpp Examining data/dssi-1.1.1~dfsg0/examples/trivial_synth.c Examining data/dssi-1.1.1~dfsg0/examples/dssi_analyse_plugin.c Examining data/dssi-1.1.1~dfsg0/examples/karplong.cpp Examining data/dssi-1.1.1~dfsg0/examples/trivial_sampler.c Examining data/dssi-1.1.1~dfsg0/tests/controller.c Examining data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.h Examining data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c FINAL RESULTS: data/dssi-1.1.1~dfsg0/examples/dssi_analyse_plugin.c:305:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(ui_dir, "%s/%s", so_directory, so_base); data/dssi-1.1.1~dfsg0/examples/dssi_analyse_plugin.c:317:21: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(ui_path, "%s/%s", ui_dir, dirent->d_name); data/dssi-1.1.1~dfsg0/examples/dssi_analyse_plugin.c:423:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(so_path, "%s/%s", element, so_name); data/dssi-1.1.1~dfsg0/examples/dssi_list_plugins.c:123:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(filename, "%s/%s", directory, dirent->d_name); data/dssi-1.1.1~dfsg0/examples/trivial_sampler.c:347:5: [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(buffer, 256, fmt, args); data/dssi-1.1.1~dfsg0/examples/trivial_sampler.c:373:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(revisedPath, "%s/%s", plugin_data->projectDir, filename); data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:507:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(defaultDssiPath, DEFAULT_DSSI_PATH ":%s/.dssi", home); data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:540:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(filePath, "%s/%s", element, dllName); data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:605:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(subpath, "%s/%s", directory, dllBase); data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:643:6: [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/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:660: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, oscUrl, dllName, label, instanceTag, NULL); data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:779:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(dllName, "%s.so", basename); data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:1024:17: [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/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:1031:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tmp, "/%s/chan%02d", plugin->label, instance->channel); data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:1234:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "%s%s", tmp, osc_path_tmp + 1); data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:1793: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/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:1797: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/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:1801: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/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:1805: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/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:1809: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/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:1813: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/dssi-1.1.1~dfsg0/message_buffer/message_buffer.h:12:2: [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(_m, 255, fmt); \ data/dssi-1.1.1~dfsg0/examples/dssi_analyse_plugin.c:407:27: [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. char *dssi_path = getenv("DSSI_PATH"); data/dssi-1.1.1~dfsg0/examples/dssi_list_plugins.c:201:12: [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. path = getenv("DSSI_PATH"); data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:481:28: [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. const char *dssiPath = getenv("DSSI_PATH"); data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:504:25: [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. const char *home = getenv("HOME"); data/dssi-1.1.1~dfsg0/examples/dssi_analyse_plugin.c:38: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(t, s, n); data/dssi-1.1.1~dfsg0/examples/dssi_osc_send.c:47: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 full_path[256]; data/dssi-1.1.1~dfsg0/examples/dssi_osc_send.c:51: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/dssi-1.1.1~dfsg0/examples/dssi_osc_send.c:83:23: [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). ladspa_port = atoi(argv[2]); data/dssi-1.1.1~dfsg0/examples/dssi_osc_send.c:93:23: [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). ladspa_port = atoi(argv[3]); data/dssi-1.1.1~dfsg0/examples/dssi_osc_send.c:103:16: [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). int0 = atoi(argv[3]); data/dssi-1.1.1~dfsg0/examples/dssi_osc_send.c:104:16: [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). int1 = atoi(argv[4]); data/dssi-1.1.1~dfsg0/examples/dssi_osc_send.c:113:19: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). midi[0] = atoi(argv[3]); /* "port id", according to OSC spec */ data/dssi-1.1.1~dfsg0/examples/dssi_osc_send.c:114:19: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). midi[1] = atoi(argv[4]); /* status byte */ data/dssi-1.1.1~dfsg0/examples/dssi_osc_send.c:115:30: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). midi[2] = argc > 5 ? atoi(argv[5]) : 0; /* data byte 1 */ data/dssi-1.1.1~dfsg0/examples/dssi_osc_send.c:116:30: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). midi[3] = argc > 6 ? atoi(argv[6]) : 0; /* data byte 2 */ data/dssi-1.1.1~dfsg0/examples/dssi_osc_update.c:46: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 update_path[256], *tmp_url, my_url[256]; data/dssi-1.1.1~dfsg0/examples/karplong.cpp:58:18: [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 const char *const portNames[PortCount]; data/dssi-1.1.1~dfsg0/examples/less_trivial_synth_qt_gui.cpp:30: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 errstr[256]; data/dssi-1.1.1~dfsg0/examples/less_trivial_synth_qt_gui.cpp:252: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 noteon[4] = { 0x00, 0x90, 0x3C, 0x40 }; data/dssi-1.1.1~dfsg0/examples/less_trivial_synth_qt_gui.cpp:268: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 noteoff[4] = { 0x00, 0x90, 0x3C, 0x00 }; data/dssi-1.1.1~dfsg0/examples/trivial_sampler.c:52: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 velocities[Sampler_NOTES]; data/dssi-1.1.1~dfsg0/examples/trivial_sampler.c:157: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(&plugin_data->mutex, &m, sizeof(pthread_mutex_t)); data/dssi-1.1.1~dfsg0/examples/trivial_sampler.c:344: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/dssi-1.1.1~dfsg0/examples/trivial_sampler_qt_gui.cpp:42: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 errstr[256]; data/dssi-1.1.1~dfsg0/examples/trivial_sampler_qt_gui.cpp:443: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 noteon[4] = { 0x00, 0x90, 0x3C, 60 }; data/dssi-1.1.1~dfsg0/examples/trivial_sampler_qt_gui.cpp:459: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 noteoff[4] = { 0x00, 0x90, 0x3C, 0x00 }; data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:101: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 osc_path_tmp[1024]; data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:412: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(pluginInputBuffers[inCount], buffer, nframes * sizeof(LADSPA_Data)); data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:467: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[outCount], nframes * sizeof(LADSPA_Data)); data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:750: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 clientName[33]; data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:863:20: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). reps = atoi(&argv[i][1]); data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:1091:26: [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. if (instance_count > 1) strcpy(clientName, "jack-dssi-host"); data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:1154:6: [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[40]; data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:1160:3: [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(portName, "in_%d", in); data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:1165:7: [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(portName + strlen(portName), " %d in_%d", reps, j + 1); data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:1168:7: [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(portName + strlen(portName), " in_%d", j + 1); data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:1179:6: [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[40]; data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:1185:3: [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(portName, "out_%d", out); data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:1190:7: [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(portName + strlen(portName), " %d out_%d", reps, j + 1); data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:1193:7: [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(portName + strlen(portName), " out_%d", j + 1); data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:1407: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 tag[12]; data/dssi-1.1.1~dfsg0/message_buffer/message_buffer.c:16: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 buffer[BUFFERS][BUFFER_SIZE]; data/dssi-1.1.1~dfsg0/message_buffer/message_buffer.h:11:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char _m[256]; \ data/dssi-1.1.1~dfsg0/examples/dssi_analyse_plugin.c:297: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). so_len = strlen(so_name); data/dssi-1.1.1~dfsg0/examples/dssi_analyse_plugin.c:304: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). ui_dir = malloc(strlen(so_directory) + strlen(so_base) + 2); data/dssi-1.1.1~dfsg0/examples/dssi_analyse_plugin.c:304: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). ui_dir = malloc(strlen(so_directory) + strlen(so_base) + 2); data/dssi-1.1.1~dfsg0/examples/dssi_analyse_plugin.c:307: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). label_len = strlen(label); data/dssi-1.1.1~dfsg0/examples/dssi_analyse_plugin.c:315: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). char *ui_path = malloc(strlen(ui_dir) + strlen(dirent->d_name) + 2); data/dssi-1.1.1~dfsg0/examples/dssi_analyse_plugin.c:315: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). char *ui_path = malloc(strlen(ui_dir) + strlen(dirent->d_name) + 2); data/dssi-1.1.1~dfsg0/examples/dssi_analyse_plugin.c:422: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). so_path = malloc(strlen(element) + strlen(so_name) + 2); data/dssi-1.1.1~dfsg0/examples/dssi_analyse_plugin.c:422: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). so_path = malloc(strlen(element) + strlen(so_name) + 2); data/dssi-1.1.1~dfsg0/examples/dssi_list_plugins.c:94: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). int directory_length = strlen(directory); data/dssi-1.1.1~dfsg0/examples/dssi_list_plugins.c:122: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). filename = malloc(directory_length + strlen(dirent->d_name) + 2); data/dssi-1.1.1~dfsg0/examples/dssi_list_plugins.c:160:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = strlen(dirent->d_name); data/dssi-1.1.1~dfsg0/examples/dssi_osc_update.c:62: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). snprintf(my_url, 255, "%s%s", tmp_url, (strlen(path) > 1 ? path + 1 : path)); data/dssi-1.1.1~dfsg0/examples/trivial_sampler.c:371: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). revisedPath = (char *)malloc(strlen(filename) + data/dssi-1.1.1~dfsg0/examples/trivial_sampler.c:372:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(plugin_data->projectDir) + 2); data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:506: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). defaultDssiPath = malloc(strlen(home) + strlen(DEFAULT_DSSI_PATH) + 8); data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:506:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). defaultDssiPath = malloc(strlen(home) + strlen(DEFAULT_DSSI_PATH) + 8); data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:539: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). filePath = (char *)malloc(strlen(element) + strlen(dllName) + 2); data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:539: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). filePath = (char *)malloc(strlen(element) + strlen(dllName) + 2); data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:595: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/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:596: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/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:597:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). dllBase[strlen(dllBase) - 3] = '\0'; data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:604: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). subpath = (char *)malloc(strlen(directory) + strlen(dllBase) + 2); data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:604: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). subpath = (char *)malloc(strlen(directory) + strlen(dllBase) + 2); data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:628: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/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:628: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/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:629: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/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:630: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/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:636: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/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:636: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/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:637: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/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:638: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/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:642: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). filename = (char *)malloc(strlen(subpath) + strlen(entry->d_name) + 2); data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:642: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). filename = (char *)malloc(strlen(subpath) + strlen(entry->d_name) + 2); data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:778:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). dllName = malloc(strlen(basename) + 4); data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:846:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(clientName, argv[++i], clientLen); data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:875:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(dllName, argv[i], tmp - argv[i]); data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:1021: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/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:1022: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/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:1025: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/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:1026: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/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:1027: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/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:1029: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/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:1093:6: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(clientName, instances[0].plugin->descriptor->LADSPA_Plugin->Name, clientLen); data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:1104:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(clientName, jack_get_client_name(jackClient), clientLen); data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:1162:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(portName, instances[i].plugin->descriptor->LADSPA_Plugin->Name, 30); data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:1165: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). sprintf(portName + strlen(portName), " %d in_%d", reps, j + 1); data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:1168: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). sprintf(portName + strlen(portName), " in_%d", j + 1); data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:1187:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(portName, instances[i].plugin->descriptor->LADSPA_Plugin->Name, 30); data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:1190: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). sprintf(portName + strlen(portName), " %d out_%d", reps, j + 1); data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:1193: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). sprintf(portName + strlen(portName), " out_%d", j + 1); data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:1233: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). url = (char *)malloc(strlen(tmp) + strlen(osc_path_tmp)); data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:1233:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). url = (char *)malloc(strlen(tmp) + strlen(osc_path_tmp)); data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:1724:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(DSSI_RESERVED_CONFIGURE_PREFIX))) { data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:1731:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(DSSI_GLOBAL_CONFIGURE_PREFIX))) { data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:1792: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/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:1796: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) + 12); data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:1800: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/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:1804: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/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:1808: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/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:1812: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/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:1849:23: [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+1) % 50 == 0) usleep(300000); data/dssi-1.1.1~dfsg0/jack-dssi-host/jack-dssi-host.c:1940: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). flen = strlen(instances[i].friendly_name); data/dssi-1.1.1~dfsg0/message_buffer/message_buffer.c:27:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buffer[in_buffer], msg, BUFFER_SIZE - 1); data/dssi-1.1.1~dfsg0/message_buffer/message_buffer.c:50:2: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(1000); ANALYSIS SUMMARY: Hits = 129 Lines analyzed = 7110 in approximately 0.24 seconds (29361 lines/second) Physical Source Lines of Code (SLOC) = 5251 Hits@level = [0] 223 [1] 64 [2] 39 [3] 4 [4] 22 [5] 0 Hits@level+ = [0+] 352 [1+] 129 [2+] 65 [3+] 26 [4+] 22 [5+] 0 Hits/KSLOC@level+ = [0+] 67.0349 [1+] 24.5667 [2+] 12.3786 [3+] 4.95144 [4+] 4.18968 [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.