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/libemail-address-xs-perl-1.04/dovecot-parser.h Examining data/libemail-address-xs-perl-1.04/dovecot-parser.c FINAL RESULTS: data/libemail-address-xs-perl-1.04/dovecot-parser.c:119: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(copy, str->buf, str->len); data/libemail-address-xs-perl-1.04/dovecot-parser.c:151: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(str->buf + str->len, data, len); data/libemail-address-xs-perl-1.04/dovecot-parser.c:201: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. unsigned char rfc822_atext_chars[256] = { data/libemail-address-xs-perl-1.04/dovecot-parser.c:596: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(addr, &ctx->addr, sizeof(ctx->addr)); data/libemail-address-xs-perl-1.04/dovecot-parser.c:896: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(ctx->addr.original, start, len); data/libemail-address-xs-perl-1.04/dovecot-parser.c:1005: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(ctx->addr.original, start, len); data/libemail-address-xs-perl-1.04/dovecot-parser.c:1028: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(copy, mem, len); data/libemail-address-xs-perl-1.04/dovecot-parser.c:158: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). str_append_data(str, cstr, strlen(cstr)); ANALYSIS SUMMARY: Hits = 8 Lines analyzed = 1368 in approximately 0.07 seconds (18742 lines/second) Physical Source Lines of Code (SLOC) = 964 Hits@level = [0] 0 [1] 1 [2] 7 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 8 [1+] 8 [2+] 7 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 8.29876 [1+] 8.29876 [2+] 7.26141 [3+] 0 [4+] 0 [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.