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/sqlsmith-1.2.1/gitrev.h
Examining data/sqlsmith-1.2.1/log.cc
Examining data/sqlsmith-1.2.1/relmodel.cc
Examining data/sqlsmith-1.2.1/random.cc
Examining data/sqlsmith-1.2.1/schema.cc
Examining data/sqlsmith-1.2.1/sqlsmith.cc
Examining data/sqlsmith-1.2.1/monetdb.cc
Examining data/sqlsmith-1.2.1/impedance.cc
Examining data/sqlsmith-1.2.1/grammar.cc
Examining data/sqlsmith-1.2.1/postgres.cc
Examining data/sqlsmith-1.2.1/prod.cc
Examining data/sqlsmith-1.2.1/dump.cc
Examining data/sqlsmith-1.2.1/sqlite.cc
Examining data/sqlsmith-1.2.1/expr.cc

FINAL RESULTS:

data/sqlsmith-1.2.1/sqlite.cc:190:8:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  FUNC(random, INTEGER);
data/sqlsmith-1.2.1/log.cc:143:3:  [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 hostname[1024];
data/sqlsmith-1.2.1/monetdb.cc:74:134:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		tables.push_back(table(mapi_fetch_field(hdl,0),mapi_fetch_field(hdl,1),strcmp(mapi_fetch_field(hdl,2),"false")==0 ? true : false , atoi(mapi_fetch_field(hdl,3))==0 ? false : true));
data/sqlsmith-1.2.1/postgres.cc:305: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).
    if (strlen(errmsg))
data/sqlsmith-1.2.1/postgres.cc:333:18:  [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 (!errmsg || !strlen(errmsg))
data/sqlsmith-1.2.1/postgres.cc:337:20:  [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 (!sqlstate || !strlen(sqlstate))

ANALYSIS SUMMARY:

Hits = 6
Lines analyzed = 2722 in approximately 0.09 seconds (29431 lines/second)
Physical Source Lines of Code (SLOC) = 2242
Hits@level = [0]   3 [1]   3 [2]   2 [3]   1 [4]   0 [5]   0
Hits@level+ = [0+]   9 [1+]   6 [2+]   3 [3+]   1 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 4.01427 [1+] 2.67618 [2+] 1.33809 [3+] 0.44603 [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.