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/raspell-1.3/ext/raspell.h Examining data/raspell-1.3/ext/raspell.c FINAL RESULTS: data/raspell-1.3/ext/raspell.c:168:5: [4] (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). strcat(result, cword); data/raspell-1.3/ext/raspell.c:167:5: [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. strcat(result, "\\b"); data/raspell-1.3/ext/raspell.c:169:5: [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. strcat(result, "\\b"); data/raspell-1.3/ext/raspell.c:165: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). char *result = malloc((strlen(cword)+5)*sizeof(char)); data/raspell-1.3/ext/raspell.c:170: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). word = rb_reg_new(result, strlen(result), 0); data/raspell-1.3/ext/raspell.c:543:20: [1] (buffer) strlen: Does not handle 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(StringValuePtr(rword)) == 0) continue; data/raspell-1.3/ext/raspell.c:549: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). offset += strlen(StringValuePtr(rword))-strlen(StringValuePtr(word)); data/raspell-1.3/ext/raspell.c:549: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). offset += strlen(StringValuePtr(rword))-strlen(StringValuePtr(word)); ANALYSIS SUMMARY: Hits = 8 Lines analyzed = 741 in approximately 0.03 seconds (24011 lines/second) Physical Source Lines of Code (SLOC) = 439 Hits@level = [0] 1 [1] 5 [2] 2 [3] 0 [4] 1 [5] 0 Hits@level+ = [0+] 9 [1+] 8 [2+] 3 [3+] 1 [4+] 1 [5+] 0 Hits/KSLOC@level+ = [0+] 20.5011 [1+] 18.2232 [2+] 6.83371 [3+] 2.2779 [4+] 2.2779 [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.