Files
mongo/test/utility
Keith Bostic 5c70c81687 Wt 2661 coverity (#2746)
* WT-2661: Coverity failures: 1356050-1356053

CID 1356050: (NULL_RETURNS)
Dereferencing a pointer that might be null "opts->home" when calling "snprintf".
CID 1356050: (NULL_RETURNS)
Dereferencing a pointer that might be null "opts->uri" when calling "snprintf".

* Assigning address of auto variable '_opts' to static (it's an auto
variable in main(), so it's safe, but make lint happy).

* Coverity appears to be confused by argv handling and eventually passing
NULL to snprintf.
	2. var_assign_alias: Assigning: opts->progname = argv[0]. Both
	are now tainted.

	47. vararg_transitive: Call to snprintf with tainted argument
	opts->progname taints NULL.

	48. tainted_data_sink_lv_call: Passing tainted variable 0UL to
	tainted data sink snprintf.

NULL is tainted? I'm hoping that using a strlen() call to figure out the
string length instead of snprintf() will make this one go away.

* test_wt2246_col_append wasn't actually doing any work, set nrecords to
a 20 million default.

* KNF

* Don't use "inline" in example programs, it requires Windows #ifdef's.
2016-05-25 12:25:13 -04:00
..
2016-05-25 12:25:13 -04:00
2016-05-25 12:25:13 -04:00