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/lice5-5.3.0/extra/sscan.c

FINAL RESULTS:

data/lice5-5.3.0/extra/sscan.c:56:2:  [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).
	strcpy(sockip, argv[2]);
data/lice5-5.3.0/extra/sscan.c:63:17:  [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).
	if (argc >= 4) strcpy(a, argv[3]);
data/lice5-5.3.0/extra/sscan.c:64:17:  [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).
	if (argc >= 5) strcpy(b, argv[4]);
data/lice5-5.3.0/extra/sscan.c:65:17:  [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).
	if (argc >= 6) strcpy(c, argv[5]);
data/lice5-5.3.0/extra/sscan.c:66:17:  [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).
	if (argc >= 7) strcpy(d, argv[6]);
data/lice5-5.3.0/extra/sscan.c:143:4:  [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(hexstr, buf);
data/lice5-5.3.0/extra/sscan.c:36:8:  [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.
static char sockip[1024],a[1024],b[1024],c[1024],d[1024];
data/lice5-5.3.0/extra/sscan.c:89:2:  [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 hexstr[20];
data/lice5-5.3.0/extra/sscan.c:90:2:  [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 tmpstr2[20] = "\0\0\0\0\0\0";
data/lice5-5.3.0/extra/sscan.c:91:2:  [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 buf[20];
data/lice5-5.3.0/extra/sscan.c:109:3:  [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(&sin.sin_addr, he->h_addr, he->h_length);
data/lice5-5.3.0/extra/sscan.c:141:4:  [2] (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). Risk is low because the source is a constant string.
			strcpy(hexstr, "HEX:");
data/lice5-5.3.0/extra/sscan.c:142:4:  [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.
			sprintf(buf, "%d ", tmpstr2[i]);
data/lice5-5.3.0/extra/sscan.c:174:2:  [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 buf[1024];
data/lice5-5.3.0/extra/sscan.c:192:3:  [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(&sin.sin_addr, he->h_addr, he->h_length);
data/lice5-5.3.0/extra/sscan.c:58:3:  [1] (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). Risk is low because the source is a constant character.
		strcpy(a, "");
data/lice5-5.3.0/extra/sscan.c:59:3:  [1] (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). Risk is low because the source is a constant character.
		strcpy(b, "");
data/lice5-5.3.0/extra/sscan.c:60:3:  [1] (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). Risk is low because the source is a constant character.
		strcpy(c, "");
data/lice5-5.3.0/extra/sscan.c:61:3:  [1] (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). Risk is low because the source is a constant character.
		strcpy(d, "");
data/lice5-5.3.0/extra/sscan.c:68:14:  [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).
	if ((sockip[strlen(sockip)-2] == 103) && (sockip[strlen(sockip)-1] == 114) ) {
data/lice5-5.3.0/extra/sscan.c:68:51:  [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).
	if ((sockip[strlen(sockip)-2] == 103) && (sockip[strlen(sockip)-1] == 114) ) {
data/lice5-5.3.0/extra/sscan.c:140:4:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			read(sockfd2, tmpstr2, 10);
data/lice5-5.3.0/extra/sscan.c:216:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		numbytes = read(sockfd, buf, sizeof(buf));
data/lice5-5.3.0/extra/sscan.c:219:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			numbytes = read(sockfd, buf, sizeof(buf));

ANALYSIS SUMMARY:

Hits = 24
Lines analyzed = 231 in approximately 0.26 seconds (901 lines/second)
Physical Source Lines of Code (SLOC) = 211
Hits@level = [0]  15 [1]   9 [2]   9 [3]   0 [4]   6 [5]   0
Hits@level+ = [0+]  39 [1+]  24 [2+]  15 [3+]   6 [4+]   6 [5+]   0
Hits/KSLOC@level+ = [0+] 184.834 [1+] 113.744 [2+] 71.09 [3+] 28.436 [4+] 28.436 [5+]   0
Symlinks skipped = 12 (--allowlink overrides but see doc for security issue)
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.