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/smtpping-1.1.3/resolver.cpp
Examining data/smtpping-1.1.3/resolver.hpp
Examining data/smtpping-1.1.3/smtpping.cpp

FINAL RESULTS:

data/smtpping-1.1.3/smtpping.cpp:750:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(#x " min/avg/max = %.2lf/%.2lf/%.2lf ms\n", \
data/smtpping-1.1.3/resolver.cpp:45:15:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
	m_hDnsInst = LoadLibrary("DNSAPI.DLL");
data/smtpping-1.1.3/smtpping.cpp:233:15:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt_long(argc, argv, "H:S:s:hw:c:P:p:df:rqJ46", longopts, NULL)) != -1)
data/smtpping-1.1.3/resolver.cpp:119: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 buf[128];
data/smtpping-1.1.3/resolver.cpp:132: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 buf[128];
data/smtpping-1.1.3/resolver.cpp:144:11:  [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 response[64 * 1024];
data/smtpping-1.1.3/resolver.cpp:194: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[MAXDNAME + 1];
data/smtpping-1.1.3/resolver.cpp:223:7:  [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[INET_ADDRSTRLEN];
data/smtpping-1.1.3/resolver.cpp:232:7:  [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[INET6_ADDRSTRLEN];
data/smtpping-1.1.3/resolver.cpp:241:7:  [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[MAXDNAME + 1];
data/smtpping-1.1.3/smtpping.cpp:82: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[1];
data/smtpping-1.1.3/smtpping.cpp:531:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
			usleep(smtp_probe_wait * 1000);

ANALYSIS SUMMARY:

Hits = 12
Lines analyzed = 1115 in approximately 0.04 seconds (30582 lines/second)
Physical Source Lines of Code (SLOC) = 862
Hits@level = [0]  39 [1]   1 [2]   8 [3]   2 [4]   1 [5]   0
Hits@level+ = [0+]  51 [1+]  12 [2+]  11 [3+]   3 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 59.1647 [1+] 13.9211 [2+] 12.761 [3+] 3.48028 [4+] 1.16009 [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.