summaryrefslogtreecommitdiff
path: root/src/utilities/util_printlog.c
diff options
context:
space:
mode:
authorKeith Bostic <keith.bostic@mongodb.com>2016-05-25 12:25:13 -0400
committersueloverso <sue@mongodb.com>2016-05-25 12:25:13 -0400
commit5c70c8168784381d4d3afaeebcd81fd8b2909a9a (patch)
tree7224e9af1eb4626e00bf245977f4b5d134d38d97 /src/utilities/util_printlog.c
parentc0a04f1d22075b63f8da063226e6871a9ccfd78e (diff)
downloadmongo-5c70c8168784381d4d3afaeebcd81fd8b2909a9a.tar.gz
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.
Diffstat (limited to 'src/utilities/util_printlog.c')
0 files changed, 0 insertions, 0 deletions