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/xvkbd-4.1/findwidget.c Examining data/xvkbd-4.1/XVkbd-common.h Examining data/xvkbd-4.1/resources.h Examining data/xvkbd-4.1/xvkbd.c FINAL RESULTS: data/xvkbd-4.1/findwidget.c:163:15: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(widget_list[i].path, "%s.%s", data/xvkbd-4.1/findwidget.c:171:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(widget_list[i].path, "%s%s", data/xvkbd-4.1/xvkbd.c:1399:3: [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(cur_dict_filename, dict_filename); data/xvkbd-4.1/xvkbd.c:2272:3: [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(argv1[0], argv1); data/xvkbd-4.1/xvkbd.c:2608:25: [4] (shell) system: 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. if (!appres.secure) system(appres.show_manual_command); data/xvkbd-4.1/xvkbd.c:2806:27: [4] (shell) system: 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. if (!appres.secure) system(value + 1); data/xvkbd-4.1/xvkbd.c:2986:33: [4] (shell) system: 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. if (!appres.secure) system("xvidtune -next"); data/xvkbd-4.1/xvkbd.c:2988:33: [4] (shell) system: 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. if (!appres.secure) system("xvidtune -prev"); data/xvkbd-4.1/xvkbd.c:3163:7: [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(name, keypad[row][col]); data/xvkbd-4.1/xvkbd.c:3305: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(name, keys_normal[row][col]); data/xvkbd-4.1/xvkbd.c:3537:11: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. if (sscanf(&str[1], "keyboard %s", key) == 1) { data/xvkbd-4.1/xvkbd.c:3542:18: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. } else if (sscanf(&str[1], "dict_file %s", key) == 1) { data/xvkbd-4.1/xvkbd.c:3544:18: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. } else if (sscanf(&str[1], "private_dict_weight %s", key) == 1) { data/xvkbd-4.1/xvkbd.c:3546:18: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. } else if (sscanf(&str[1], "%s %d", key, &val) == 2) { data/xvkbd-4.1/xvkbd.c:3629:5: [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(key2, key); data/xvkbd-4.1/xvkbd.c:3652:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(sp->value, "%s %s%s", cur_fkey, prefix, fkey_value); data/xvkbd-4.1/xvkbd.c:3675:7: [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(cur_fkey, key2); data/xvkbd-4.1/xvkbd.c:4212:5: [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(old_locale, cur_locale); data/xvkbd-4.1/xvkbd.c:1421:75: [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. snprintf(private_dict_filename, sizeof(private_dict_filename), "%s/%s", getenv("HOME"), PRIVATE_DICT); data/xvkbd-4.1/xvkbd.c:1506:75: [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. snprintf(private_dict_filename, sizeof(private_dict_filename), "%s/%s", getenv("HOME"), PRIVATE_DICT); data/xvkbd-4.1/xvkbd.c:2239:16: [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("XENVIRONMENT") != NULL) { data/xvkbd-4.1/xvkbd.c:3523:10: [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. home = getenv("HOME"); data/xvkbd-4.1/xvkbd.c:3540:24: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. keyboard_layout, getenv("XENVIRONMENT")); data/xvkbd-4.1/xvkbd.c:3541:6: [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("XENVIRONMENT") == NULL) layout_selected = TRUE; data/xvkbd-4.1/xvkbd.c:4214:11: [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. s = getenv("LC_ALL"); data/xvkbd-4.1/xvkbd.c:79: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 *keys_normal[NUM_KEY_ROWS][NUM_KEY_COLS] = { data/xvkbd-4.1/xvkbd.c:88: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 *keys_shift[NUM_KEY_ROWS][NUM_KEY_COLS] = { data/xvkbd-4.1/xvkbd.c:97: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 *keys_altgr[NUM_KEY_ROWS][NUM_KEY_COLS] = { { NULL } }; data/xvkbd-4.1/xvkbd.c:98: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 *keys_shift_altgr[NUM_KEY_ROWS][NUM_KEY_COLS] = { { NULL } }; data/xvkbd-4.1/xvkbd.c:100: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 *key_labels[NUM_KEY_ROWS][NUM_KEY_COLS] = { data/xvkbd-4.1/xvkbd.c:110: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 *normal_key_labels[NUM_KEY_ROWS][NUM_KEY_COLS] = { data/xvkbd-4.1/xvkbd.c:119: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 *shift_key_labels[NUM_KEY_ROWS][NUM_KEY_COLS] = { data/xvkbd-4.1/xvkbd.c:128: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 *altgr_key_labels[NUM_KEY_ROWS][NUM_KEY_COLS] = { { NULL } }; data/xvkbd-4.1/xvkbd.c:129: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 *shift_altgr_key_labels[NUM_KEY_ROWS][NUM_KEY_COLS] = { { NULL } }; data/xvkbd-4.1/xvkbd.c:135: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 *keypad[NUM_KEYPAD_ROWS][NUM_KEYPAD_COLS] = { data/xvkbd-4.1/xvkbd.c:142: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 *keypad_shift[NUM_KEYPAD_ROWS][NUM_KEYPAD_COLS] = { data/xvkbd-4.1/xvkbd.c:149: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 *keypad_label[NUM_KEYPAD_ROWS][NUM_KEYPAD_COLS] = { data/xvkbd-4.1/xvkbd.c:160: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 *sun_fkey[NUM_SUN_FKEY_ROWS][NUM_SUN_FKEY_COLS] = { data/xvkbd-4.1/xvkbd.c:168: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 *sun_fkey_label[NUM_SUN_FKEY_ROWS][NUM_SUN_FKEY_COLS] = { data/xvkbd-4.1/xvkbd.c:469: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 dict_filename[PATH_MAX] = ""; data/xvkbd-4.1/xvkbd.c:470: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 private_dict_weight_value[20] = "1"; data/xvkbd-4.1/xvkbd.c:829:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[200]; data/xvkbd-4.1/xvkbd.c:1355: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 completion_text[100] = ""; data/xvkbd-4.1/xvkbd.c:1389:10: [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 cur_dict_filename[PATH_MAX] = "/"; data/xvkbd-4.1/xvkbd.c:1390:10: [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 private_dict_filename[PATH_MAX] = ""; data/xvkbd-4.1/xvkbd.c:1394:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[50]; data/xvkbd-4.1/xvkbd.c:1426:10: [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(dict_filename_p, "r"); data/xvkbd-4.1/xvkbd.c:1501:10: [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 private_dict_filename[PATH_MAX] = ""; data/xvkbd-4.1/xvkbd.c:1507:8: [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(private_dict_filename, "w"); data/xvkbd-4.1/xvkbd.c:1674:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[100]; data/xvkbd-4.1/xvkbd.c:1733:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char key[50]; data/xvkbd-4.1/xvkbd.c:1872:36: [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 (strcmp(file, "-") != 0) fp = fopen(file, "r"); data/xvkbd-4.1/xvkbd.c:1912:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name1[50]; data/xvkbd-4.1/xvkbd.c:2154:10: [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 geom[50]; data/xvkbd-4.1/xvkbd.c:2217:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[50]; data/xvkbd-4.1/xvkbd.c:2218:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char customization[30] = "", lang[30] = "C"; data/xvkbd-4.1/xvkbd.c:2456:7: [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 s1[15]; data/xvkbd-4.1/xvkbd.c:2478:7: [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 s1[10]; data/xvkbd-4.1/xvkbd.c:2558:10: [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 name[DISPLAY_NAME_LENGTH + 10]; data/xvkbd-4.1/xvkbd.c:2576:36: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. if (strchr(name, ':') == NULL) strcat(name, ":0"); data/xvkbd-4.1/xvkbd.c:2665: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. static char display_name[DISPLAY_NAME_LENGTH] = ""; data/xvkbd-4.1/xvkbd.c:3022:26: [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 void RedefineKeys(char *array[NUM_KEY_ROWS][NUM_KEY_COLS], const char *spec) data/xvkbd-4.1/xvkbd.c:3071:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[50]; data/xvkbd-4.1/xvkbd.c:3140:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[50]; data/xvkbd-4.1/xvkbd.c:3268:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[50], *label; data/xvkbd-4.1/xvkbd.c:3502: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 fkey_filename[PATH_MAX] = ""; data/xvkbd-4.1/xvkbd.c:3512:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[200], key[200]; data/xvkbd-4.1/xvkbd.c:3532:8: [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(fkey_filename, "r"); data/xvkbd-4.1/xvkbd.c:3596: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 fkey_value[100] = ""; data/xvkbd-4.1/xvkbd.c:3597: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 cur_fkey[20] = ""; data/xvkbd-4.1/xvkbd.c:3620:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char key2[20]; data/xvkbd-4.1/xvkbd.c:3694:8: [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(fkey_filename, "w"); data/xvkbd-4.1/xvkbd.c:3725:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char label[20]; data/xvkbd-4.1/xvkbd.c:3794:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char label[50]; data/xvkbd-4.1/xvkbd.c:4009:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(argv1, argv, sizeof(char *) * argc1); data/xvkbd-4.1/xvkbd.c:4206:10: [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 old_locale[100] = "C"; data/xvkbd-4.1/xvkbd.c:4207:10: [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 cur_locale[100] = "C"; data/xvkbd-4.1/findwidget.c:161: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). widget_list[i].path = XtMalloc(strlen(widget_list[j].path) data/xvkbd-4.1/findwidget.c:162: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(widget_list[i].name) + 2); data/xvkbd-4.1/findwidget.c:170: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). widget_list[i].path = XtMalloc(strlen(widget_list[i].name) + 2); data/xvkbd-4.1/findwidget.c:318: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). if (widget_list != NULL && strlen(name) != 0) { data/xvkbd-4.1/findwidget.c:324:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). pattern_len = strlen(pattern); data/xvkbd-4.1/findwidget.c:328: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). inx = strlen(widget_list[i].path) - pattern_len; data/xvkbd-4.1/findwidget.c:345: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). if (strlen(name) != 0) { data/xvkbd-4.1/xvkbd.c:617:4: [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(10000); data/xvkbd-4.1/xvkbd.c:619:4: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(100000); data/xvkbd-4.1/xvkbd.c:660: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). if (appres.list_widgets || strlen(appres.widget) != 0) { data/xvkbd-4.1/xvkbd.c:880:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (first || strlen(appres.text) == 0 || appres.jump_pointer_back) { data/xvkbd-4.1/xvkbd.c:1382:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(dict_filename, appres.dict_file, sizeof(dict_filename) - 1); data/xvkbd-4.1/xvkbd.c:1437:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = strlen(str); data/xvkbd-4.1/xvkbd.c:1538:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(completion_text); data/xvkbd-4.1/xvkbd.c:1563: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). if (MINIMUM_COMPLETION_PREFIX_LENGTH <= strlen(completion_text)) { data/xvkbd-4.1/xvkbd.c:1566: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). if (strlen(completion_text) <= strlen(node_ptr->word) && data/xvkbd-4.1/xvkbd.c:1566: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). if (strlen(completion_text) <= strlen(node_ptr->word) && data/xvkbd-4.1/xvkbd.c:1567: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). strncasecmp(node_ptr->word, completion_text, strlen(completion_text)) == 0) { data/xvkbd-4.1/xvkbd.c:1605: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). if (strlen(str) <= MINIMUM_COMPLETION_PREFIX_LENGTH) return; data/xvkbd-4.1/xvkbd.c:1636:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (i = 0; i < strlen(node_ptr->word); i++) node_ptr->word[i] = tolower(node_ptr->word[i]); data/xvkbd-4.1/xvkbd.c:1658:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (i = strlen(completion_text); word_list[n][i] != '\0'; i++) { data/xvkbd-4.1/xvkbd.c:1664:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(completion_text, word_list[n], sizeof(completion_text) - 1); data/xvkbd-4.1/xvkbd.c:1750:32: [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 (0 < appres.text_delay) usleep(appres.text_delay * 1000); data/xvkbd-4.1/xvkbd.c:1766:11: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(key, cp + 1, len); data/xvkbd-4.1/xvkbd.c:1790:11: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(key, cp + 1, len); data/xvkbd-4.1/xvkbd.c:1813:4: [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((*cp - '0') * 100000); data/xvkbd-4.1/xvkbd.c:1878:16: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((ch = fgetc(fp)) != EOF) { data/xvkbd-4.1/xvkbd.c:1879:32: [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 (0 < appres.text_delay) usleep(appres.text_delay * 1000); data/xvkbd-4.1/xvkbd.c:1881:13: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch2 = fgetc(fp); data/xvkbd-4.1/xvkbd.c:2053: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). if (appres.xtest && strlen(appres.positive_modifiers) != 0) { data/xvkbd-4.1/xvkbd.c:2225:7: [1] (buffer) sscanf: It's unclear if the %s limit in the format string is small enough (CWE-120). Check that the limit is sufficiently small, or use a different input function. sscanf(key, "%29[^/]/%29s", customization, lang); data/xvkbd-4.1/xvkbd.c:2248: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). if (strncmp(argv1[i], "-geom", strlen("-geom")) == 0) { data/xvkbd-4.1/xvkbd.c:2565:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(name, (display_name == NULL) ? "" : display_name, sizeof(name) - 1); data/xvkbd-4.1/xvkbd.c:2569: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). if (strlen(name) == 0) { data/xvkbd-4.1/xvkbd.c:2760:7: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(10000); data/xvkbd-4.1/xvkbd.c:2816:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strncmp(key, "Shift", strlen("Shift")) == 0) { data/xvkbd-4.1/xvkbd.c:2819:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). } else if (strncmp(key, "Control", strlen("Control")) == 0) { data/xvkbd-4.1/xvkbd.c:2822: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). } else if (alt_mask != 0 && strncmp(key, "Alt", strlen("Alt")) == 0) { data/xvkbd-4.1/xvkbd.c:2825: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). } else if (meta_mask != 0 && strncmp(key, "Meta", strlen("Meta")) == 0) { data/xvkbd-4.1/xvkbd.c:2828: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). } else if (super_mask != 0 && strncmp(key, "Super", strlen("Super")) == 0) { data/xvkbd-4.1/xvkbd.c:2919: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(key1) == 1) { data/xvkbd-4.1/xvkbd.c:3075: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). || strncmp(name, "Shift", strlen("Shift")) == 0 data/xvkbd-4.1/xvkbd.c:3076: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). || strncmp(name, "Control", strlen("Control")) == 0 data/xvkbd-4.1/xvkbd.c:3077: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). || strncmp(name, "Alt", strlen("Alt")) == 0 data/xvkbd-4.1/xvkbd.c:3078: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). || strncmp(name, "Meta", strlen("Meta")) == 0 data/xvkbd-4.1/xvkbd.c:3092:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(str, label, sizeof(str) - 1); data/xvkbd-4.1/xvkbd.c:3093:36: [1] (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 character. if (strcmp(str, "space") == 0) strcpy(str, ""); data/xvkbd-4.1/xvkbd.c:3094: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(str); data/xvkbd-4.1/xvkbd.c:3155: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). if (strlen(keypad_label[row][col]) == 1) font = appres.letter_font; data/xvkbd-4.1/xvkbd.c:3323: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). if (strlen(main_menu_items[i]) == 0) { data/xvkbd-4.1/xvkbd.c:3383: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 (!remake && strlen(appres.geometry) == 0) { data/xvkbd-4.1/xvkbd.c:3421: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). if (0 < strlen(appres.geometry)) { data/xvkbd-4.1/xvkbd.c:3525:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && strlen(home) + strlen(appres.key_file) + 1 < sizeof(fkey_filename)) data/xvkbd-4.1/xvkbd.c:3525: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(home) + strlen(appres.key_file) + 1 < sizeof(fkey_filename)) data/xvkbd-4.1/xvkbd.c:3528:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(fkey_filename, appres.key_file, sizeof(fkey_filename) - 1); data/xvkbd-4.1/xvkbd.c:3530:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(dict_filename, appres.dict_file, sizeof(dict_filename) - 1); data/xvkbd-4.1/xvkbd.c:3543:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(dict_filename, key, sizeof(dict_filename) - 1); data/xvkbd-4.1/xvkbd.c:3545:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(private_dict_weight_value, key, sizeof(private_dict_weight_value) - 1); data/xvkbd-4.1/xvkbd.c:3571: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). len = strlen(str); data/xvkbd-4.1/xvkbd.c:3625:5: [1] (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 character. strcpy(key2, ""); data/xvkbd-4.1/xvkbd.c:3626: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). else if (strncmp(key, "Shift-", strlen("Shift-")) == 0) data/xvkbd-4.1/xvkbd.c:3627: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). snprintf(key2, sizeof(key2), "s:%s", &key[strlen("Shift-")]); data/xvkbd-4.1/xvkbd.c:3632: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(cur_fkey) != 0) { data/xvkbd-4.1/xvkbd.c:3633: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). len = strlen(cur_fkey); data/xvkbd-4.1/xvkbd.c:3640: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). if (strlen(fkey_value) != 0) { /* assign new string for the function key */ data/xvkbd-4.1/xvkbd.c:3648: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). sp->value = realloc(sp->value, len + strlen(fkey_value) + 5); data/xvkbd-4.1/xvkbd.c:3672:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(fkey_value, value, sizeof(fkey_value) - 1); data/xvkbd-4.1/xvkbd.c:3818:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(label); data/xvkbd-4.1/xvkbd.c:4054: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). if (strlen(appres.remote_display) != 0) data/xvkbd-4.1/xvkbd.c:4057: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). if (0 < strlen(appres.window)) { data/xvkbd-4.1/xvkbd.c:4074: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). if (strlen(appres.text) != 0 || strlen(appres.file) != 0) { data/xvkbd-4.1/xvkbd.c:4074: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). if (strlen(appres.text) != 0 || strlen(appres.file) != 0) { data/xvkbd-4.1/xvkbd.c:4077: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). (appres.list_widgets || strlen(appres.widget) != 0)) { data/xvkbd-4.1/xvkbd.c:4083: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(appres.text) != 0) data/xvkbd-4.1/xvkbd.c:4091: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 (0 < strlen(appres.keys_normal)) data/xvkbd-4.1/xvkbd.c:4093: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 (0 < strlen(appres.keys_shift)) data/xvkbd-4.1/xvkbd.c:4095: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 (0 < strlen(appres.keys_altgr)) data/xvkbd-4.1/xvkbd.c:4097: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 (0 < strlen(appres.keys_shift_altgr)) data/xvkbd-4.1/xvkbd.c:4100: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 (0 < strlen(appres.key_labels)) data/xvkbd-4.1/xvkbd.c:4102: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 (0 < strlen(appres.normal_key_labels)) data/xvkbd-4.1/xvkbd.c:4104: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 (0 < strlen(appres.shift_key_labels)) data/xvkbd-4.1/xvkbd.c:4106: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 (0 < strlen(appres.altgr_key_labels)) data/xvkbd-4.1/xvkbd.c:4108: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 (0 < strlen(appres.shift_altgr_key_labels)) data/xvkbd-4.1/xvkbd.c:4111: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 (0 < strlen(appres.keypad_normal)) { data/xvkbd-4.1/xvkbd.c:4116: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 (0 < strlen(appres.keypad_shift)) data/xvkbd-4.1/xvkbd.c:4118: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 (0 < strlen(appres.keypad_labels)) data/xvkbd-4.1/xvkbd.c:4124: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). (appres.list_widgets || strlen(appres.widget) != 0)) { data/xvkbd-4.1/xvkbd.c:4130: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). if (strlen(dict_filename) == 0) data/xvkbd-4.1/xvkbd.c:4132: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). if (strlen(appres.customizations) == 0) data/xvkbd-4.1/xvkbd.c:4219:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(cur_locale, s, sizeof(cur_locale) - 1); ANALYSIS SUMMARY: Hits = 167 Lines analyzed = 5041 in approximately 0.18 seconds (28586 lines/second) Physical Source Lines of Code (SLOC) = 4219 Hits@level = [0] 165 [1] 90 [2] 52 [3] 7 [4] 18 [5] 0 Hits@level+ = [0+] 332 [1+] 167 [2+] 77 [3+] 25 [4+] 18 [5+] 0 Hits/KSLOC@level+ = [0+] 78.6916 [1+] 39.5828 [2+] 18.2508 [3+] 5.92557 [4+] 4.26641 [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.