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/mdns-scan-0.5/query.h
Examining data/mdns-scan-0.5/util.h
Examining data/mdns-scan-0.5/util.c
Examining data/mdns-scan-0.5/dns.c
Examining data/mdns-scan-0.5/dns.h
Examining data/mdns-scan-0.5/mdns-scan.c
Examining data/mdns-scan-0.5/query.c

FINAL RESULTS:

data/mdns-scan-0.5/dns.c:73: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(d+1, name, n);
data/mdns-scan-0.5/dns.c:209:13:  [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(ret_name, p->data + index, n);
data/mdns-scan-0.5/dns.c:273: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(ret_data, p->data + p->rindex, l);
data/mdns-scan-0.5/mdns-scan.c:126:9:  [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 pname[256];
data/mdns-scan-0.5/mdns-scan.c:145: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 service[256];
data/mdns-scan-0.5/mdns-scan.c:156: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 service[256];
data/mdns-scan-0.5/util.c:215: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).
    al = strlen(a);
data/mdns-scan-0.5/util.c:216: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).
    bl = strlen(b);
data/mdns-scan-0.5/util.c:233: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).
    k = strlen(a);
data/mdns-scan-0.5/util.c:234: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).
    l = strlen(b);

ANALYSIS SUMMARY:

Hits = 10
Lines analyzed = 1217 in approximately 0.04 seconds (30999 lines/second)
Physical Source Lines of Code (SLOC) = 782
Hits@level = [0]  20 [1]   4 [2]   6 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  30 [1+]  10 [2+]   6 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 38.3632 [1+] 12.7877 [2+] 7.67263 [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.