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/ruby-redcloth-4.3.2/ext/redcloth_scan/redcloth.h FINAL RESULTS: data/ruby-redcloth-4.3.2/ext/redcloth_scan/redcloth.h:173:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(listm, "%s_open", list_type); \ data/ruby-redcloth-4.3.2/ext/redcloth_scan/redcloth.h:214:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(listm, "%s_close", RSTRING_PTR(end_list)); \ data/ruby-redcloth-4.3.2/ext/redcloth_scan/redcloth.h:18: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). #define STR_NEW2(p) rb_enc_str_new((p),strlen(p),rb_enc_from_index(ENCODING_GET(self))) ANALYSIS SUMMARY: Hits = 3 Lines analyzed = 220 in approximately 0.02 seconds (9785 lines/second) Physical Source Lines of Code (SLOC) = 201 Hits@level = [0] 0 [1] 1 [2] 0 [3] 0 [4] 2 [5] 0 Hits@level+ = [0+] 3 [1+] 3 [2+] 2 [3+] 2 [4+] 2 [5+] 0 Hits/KSLOC@level+ = [0+] 14.9254 [1+] 14.9254 [2+] 9.95025 [3+] 9.95025 [4+] 9.95025 [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.