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/liblxi-1.13/src/avahi.c
Examining data/liblxi-1.13/src/include/avahi.h
Examining data/liblxi-1.13/src/include/error.h
Examining data/liblxi-1.13/src/include/lxi.h
Examining data/liblxi-1.13/src/include/mdns.h
Examining data/liblxi-1.13/src/include/session.h
Examining data/liblxi-1.13/src/include/tcp.h
Examining data/liblxi-1.13/src/include/vxi11.h
Examining data/liblxi-1.13/src/lxi.c
Examining data/liblxi-1.13/src/mdns.c
Examining data/liblxi-1.13/src/tcp.c
Examining data/liblxi-1.13/src/vxi11.c
Examining data/liblxi-1.13/test/scpi.c
Examining data/liblxi-1.13/test/search.c

FINAL RESULTS:

data/liblxi-1.13/src/include/error.h:35:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, "Error: " format, ## args)
data/liblxi-1.13/src/vxi11.c:293:9:  [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(id, (char *) value);
data/liblxi-1.13/src/vxi11.c:298:9:  [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(id, (char *) value);
data/liblxi-1.13/src/vxi11.c:303:9:  [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(id, (char *) value);
data/liblxi-1.13/src/vxi11.c:308:9:  [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(id, (char *) value);
data/liblxi-1.13/src/avahi.c:78:17:  [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 a[AVAHI_ADDRESS_STR_MAX] = "Unknown";
data/liblxi-1.13/src/vxi11.c:264: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 response[4096];
data/liblxi-1.13/src/vxi11.c:337:5:  [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 buffer[ID_LENGTH_MAX];
data/liblxi-1.13/src/vxi11.c:338:5:  [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 id[ID_LENGTH_MAX];
data/liblxi-1.13/test/scpi.c:9:5:  [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 response[65536];
data/liblxi-1.13/src/vxi11.c:238:45:  [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).
    length = vxi11_send(&data, ID_REQ_SCPI, strlen(ID_REQ_SCPI), timeout);
data/liblxi-1.13/src/vxi11.c:275: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).
        tcp_send(&tcp_data, request, strlen(request), timeout);
data/liblxi-1.13/src/vxi11.c:285: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).
        doc = xmlRecoverMemory(response_xml, strlen(response_xml));
data/liblxi-1.13/src/vxi11.c:294:9:  [1] (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 character.
        strcat(id, ",");
data/liblxi-1.13/src/vxi11.c:299:9:  [1] (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 character.
        strcat(id, ",");
data/liblxi-1.13/src/vxi11.c:304:9:  [1] (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 character.
        strcat(id, ",");
data/liblxi-1.13/test/scpi.c:20: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).
    lxi_send(device, command, strlen(command), timeout);

ANALYSIS SUMMARY:

Hits = 17
Lines analyzed = 1529 in approximately 0.10 seconds (15798 lines/second)
Physical Source Lines of Code (SLOC) = 875
Hits@level = [0]   6 [1]   7 [2]   5 [3]   0 [4]   5 [5]   0
Hits@level+ = [0+]  23 [1+]  17 [2+]  10 [3+]   5 [4+]   5 [5+]   0
Hits/KSLOC@level+ = [0+] 26.2857 [1+] 19.4286 [2+] 11.4286 [3+] 5.71429 [4+] 5.71429 [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.