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/cl-clx-sbcl-0.7.4.20160323/socket.c
Examining data/cl-clx-sbcl-0.7.4.20160323/excldep.c

FINAL RESULTS:

data/cl-clx-sbcl-0.7.4.20160323/socket.c:66:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	(void) strcpy(unaddr.sun_path, X_UNIX_PATH);
data/cl-clx-sbcl-0.7.4.20160323/socket.c:76:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	      (void) sprintf(unaddr.sun_path, "%s%d", OLD_UNIX_PATH, display);
data/cl-clx-sbcl-0.7.4.20160323/socket.c:58:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  extern char *getenv();
data/cl-clx-sbcl-0.7.4.20160323/socket.c:39:6:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
void bcopy();
data/cl-clx-sbcl-0.7.4.20160323/socket.c:67:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	(void) sprintf(&unaddr.sun_path[strlen(unaddr.sun_path)], "%d", display);
data/cl-clx-sbcl-0.7.4.20160323/socket.c:106:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  (void) memcpy((char *)&inaddr.sin_addr, 
data/cl-clx-sbcl-0.7.4.20160323/socket.c:110:11:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  (void) bcopy((char *)host_ptr->h_addr, 
data/cl-clx-sbcl-0.7.4.20160323/socket.c:67:34:  [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).
	(void) sprintf(&unaddr.sun_path[strlen(unaddr.sun_path)], "%d", display);
data/cl-clx-sbcl-0.7.4.20160323/socket.c:69:12:  [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).
	addrlen = strlen(unaddr.sun_path) + 2;
data/cl-clx-sbcl-0.7.4.20160323/socket.c:77:25:  [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).
              addrlen = strlen(unaddr.sun_path) + 2;

ANALYSIS SUMMARY:

Hits = 10
Lines analyzed = 226 in approximately 0.04 seconds (5107 lines/second)
Physical Source Lines of Code (SLOC) = 156
Hits@level = [0]   1 [1]   3 [2]   4 [3]   1 [4]   2 [5]   0
Hits@level+ = [0+]  11 [1+]  10 [2+]   7 [3+]   3 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 70.5128 [1+] 64.1026 [2+] 44.8718 [3+] 19.2308 [4+] 12.8205 [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.