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/wiredtiger-3.2.1/bench/workgen/workgen.cxx
Examining data/wiredtiger-3.2.1/bench/workgen/workgen.h
Examining data/wiredtiger-3.2.1/bench/workgen/workgen_func.c
Examining data/wiredtiger-3.2.1/bench/workgen/workgen_func.h
Examining data/wiredtiger-3.2.1/bench/workgen/workgen_int.h
Examining data/wiredtiger-3.2.1/bench/workgen/workgen_time.h
Examining data/wiredtiger-3.2.1/bench/wtperf/config.c
Examining data/wiredtiger-3.2.1/bench/wtperf/config_opt.h
Examining data/wiredtiger-3.2.1/bench/wtperf/idle_table_cycle.c
Examining data/wiredtiger-3.2.1/bench/wtperf/misc.c
Examining data/wiredtiger-3.2.1/bench/wtperf/track.c
Examining data/wiredtiger-3.2.1/bench/wtperf/wtperf.c
Examining data/wiredtiger-3.2.1/bench/wtperf/wtperf.h
Examining data/wiredtiger-3.2.1/bench/wtperf/wtperf_throttle.c
Examining data/wiredtiger-3.2.1/bench/wtperf/wtperf_truncate.c
Examining data/wiredtiger-3.2.1/build_win/wiredtiger_config.h
Examining data/wiredtiger-3.2.1/examples/c/ex_access.c
Examining data/wiredtiger-3.2.1/examples/c/ex_all.c
Examining data/wiredtiger-3.2.1/examples/c/ex_async.c
Examining data/wiredtiger-3.2.1/examples/c/ex_backup.c
Examining data/wiredtiger-3.2.1/examples/c/ex_call_center.c
Examining data/wiredtiger-3.2.1/examples/c/ex_config_parse.c
Examining data/wiredtiger-3.2.1/examples/c/ex_cursor.c
Examining data/wiredtiger-3.2.1/examples/c/ex_data_source.c
Examining data/wiredtiger-3.2.1/examples/c/ex_encrypt.c
Examining data/wiredtiger-3.2.1/examples/c/ex_event_handler.c
Examining data/wiredtiger-3.2.1/examples/c/ex_extending.c
Examining data/wiredtiger-3.2.1/examples/c/ex_extractor.c
Examining data/wiredtiger-3.2.1/examples/c/ex_file_system.c
Examining data/wiredtiger-3.2.1/examples/c/ex_hello.c
Examining data/wiredtiger-3.2.1/examples/c/ex_log.c
Examining data/wiredtiger-3.2.1/examples/c/ex_pack.c
Examining data/wiredtiger-3.2.1/examples/c/ex_process.c
Examining data/wiredtiger-3.2.1/examples/c/ex_schema.c
Examining data/wiredtiger-3.2.1/examples/c/ex_smoke.c
Examining data/wiredtiger-3.2.1/examples/c/ex_stat.c
Examining data/wiredtiger-3.2.1/examples/c/ex_sync.c
Examining data/wiredtiger-3.2.1/examples/c/ex_thread.c
Examining data/wiredtiger-3.2.1/ext/collators/reverse/reverse_collator.c
Examining data/wiredtiger-3.2.1/ext/collators/revint/revint_collator.c
Examining data/wiredtiger-3.2.1/ext/compressors/lz4/lz4_compress.c
Examining data/wiredtiger-3.2.1/ext/compressors/nop/nop_compress.c
Examining data/wiredtiger-3.2.1/ext/compressors/snappy/snappy_compress.c
Examining data/wiredtiger-3.2.1/ext/compressors/zlib/zlib_compress.c
Examining data/wiredtiger-3.2.1/ext/compressors/zstd/zstd_compress.c
Examining data/wiredtiger-3.2.1/ext/encryptors/nop/nop_encrypt.c
Examining data/wiredtiger-3.2.1/ext/encryptors/rotn/rotn_encrypt.c
Examining data/wiredtiger-3.2.1/ext/extractors/csv/csv_extractor.c
Examining data/wiredtiger-3.2.1/ext/test/fail_fs/fail_fs.c
Examining data/wiredtiger-3.2.1/lang/java/wiredtiger_wrap.c
Examining data/wiredtiger-3.2.1/lang/python/wiredtiger_wrap.c
Examining data/wiredtiger-3.2.1/src/async/async_api.c
Examining data/wiredtiger-3.2.1/src/async/async_op.c
Examining data/wiredtiger-3.2.1/src/async/async_worker.c
Examining data/wiredtiger-3.2.1/src/block/block_addr.c
Examining data/wiredtiger-3.2.1/src/block/block_ckpt.c
Examining data/wiredtiger-3.2.1/src/block/block_ckpt_scan.c
Examining data/wiredtiger-3.2.1/src/block/block_compact.c
Examining data/wiredtiger-3.2.1/src/block/block_ext.c
Examining data/wiredtiger-3.2.1/src/block/block_map.c
Examining data/wiredtiger-3.2.1/src/block/block_mgr.c
Examining data/wiredtiger-3.2.1/src/block/block_open.c
Examining data/wiredtiger-3.2.1/src/block/block_read.c
Examining data/wiredtiger-3.2.1/src/block/block_session.c
Examining data/wiredtiger-3.2.1/src/block/block_slvg.c
Examining data/wiredtiger-3.2.1/src/block/block_vrfy.c
Examining data/wiredtiger-3.2.1/src/block/block_write.c
Examining data/wiredtiger-3.2.1/src/bloom/bloom.c
Examining data/wiredtiger-3.2.1/src/btree/bt_compact.c
Examining data/wiredtiger-3.2.1/src/btree/bt_curnext.c
Examining data/wiredtiger-3.2.1/src/btree/bt_curprev.c
Examining data/wiredtiger-3.2.1/src/btree/bt_cursor.c
Examining data/wiredtiger-3.2.1/src/btree/bt_debug.c
Examining data/wiredtiger-3.2.1/src/btree/bt_delete.c
Examining data/wiredtiger-3.2.1/src/btree/bt_discard.c
Examining data/wiredtiger-3.2.1/src/btree/bt_handle.c
Examining data/wiredtiger-3.2.1/src/btree/bt_huffman.c
Examining data/wiredtiger-3.2.1/src/btree/bt_import.c
Examining data/wiredtiger-3.2.1/src/btree/bt_io.c
Examining data/wiredtiger-3.2.1/src/btree/bt_misc.c
Examining data/wiredtiger-3.2.1/src/btree/bt_ovfl.c
Examining data/wiredtiger-3.2.1/src/btree/bt_page.c
Examining data/wiredtiger-3.2.1/src/btree/bt_random.c
Examining data/wiredtiger-3.2.1/src/btree/bt_read.c
Examining data/wiredtiger-3.2.1/src/btree/bt_rebalance.c
Examining data/wiredtiger-3.2.1/src/btree/bt_ret.c
Examining data/wiredtiger-3.2.1/src/btree/bt_slvg.c
Examining data/wiredtiger-3.2.1/src/btree/bt_split.c
Examining data/wiredtiger-3.2.1/src/btree/bt_stat.c
Examining data/wiredtiger-3.2.1/src/btree/bt_sync.c
Examining data/wiredtiger-3.2.1/src/btree/bt_upgrade.c
Examining data/wiredtiger-3.2.1/src/btree/bt_vrfy.c
Examining data/wiredtiger-3.2.1/src/btree/bt_vrfy_dsk.c
Examining data/wiredtiger-3.2.1/src/btree/bt_walk.c
Examining data/wiredtiger-3.2.1/src/btree/col_modify.c
Examining data/wiredtiger-3.2.1/src/btree/col_srch.c
Examining data/wiredtiger-3.2.1/src/btree/row_key.c
Examining data/wiredtiger-3.2.1/src/btree/row_modify.c
Examining data/wiredtiger-3.2.1/src/btree/row_srch.c
Examining data/wiredtiger-3.2.1/src/cache/cache_las.c
Examining data/wiredtiger-3.2.1/src/checksum/arm64/crc32-arm64.c
Examining data/wiredtiger-3.2.1/src/checksum/power8/crc32_constants.h
Examining data/wiredtiger-3.2.1/src/checksum/power8/crc32_wrapper.c
Examining data/wiredtiger-3.2.1/src/checksum/power8/ppc-opcode.h
Examining data/wiredtiger-3.2.1/src/checksum/software/checksum.c
Examining data/wiredtiger-3.2.1/src/checksum/x86/crc32-x86-alt.c
Examining data/wiredtiger-3.2.1/src/checksum/x86/crc32-x86.c
Examining data/wiredtiger-3.2.1/src/checksum/zseries/crc32-s390x.c
Examining data/wiredtiger-3.2.1/src/checksum/zseries/crc32-s390x.h
Examining data/wiredtiger-3.2.1/src/checksum/zseries/slicing-consts.h
Examining data/wiredtiger-3.2.1/src/checksum/zseries/vx-insn.h
Examining data/wiredtiger-3.2.1/src/config/config.c
Examining data/wiredtiger-3.2.1/src/config/config_api.c
Examining data/wiredtiger-3.2.1/src/config/config_check.c
Examining data/wiredtiger-3.2.1/src/config/config_collapse.c
Examining data/wiredtiger-3.2.1/src/config/config_def.c
Examining data/wiredtiger-3.2.1/src/config/config_ext.c
Examining data/wiredtiger-3.2.1/src/config/config_upgrade.c
Examining data/wiredtiger-3.2.1/src/conn/api_calc_modify.c
Examining data/wiredtiger-3.2.1/src/conn/api_strerror.c
Examining data/wiredtiger-3.2.1/src/conn/api_version.c
Examining data/wiredtiger-3.2.1/src/conn/conn_api.c
Examining data/wiredtiger-3.2.1/src/conn/conn_cache.c
Examining data/wiredtiger-3.2.1/src/conn/conn_cache_pool.c
Examining data/wiredtiger-3.2.1/src/conn/conn_capacity.c
Examining data/wiredtiger-3.2.1/src/conn/conn_ckpt.c
Examining data/wiredtiger-3.2.1/src/conn/conn_dhandle.c
Examining data/wiredtiger-3.2.1/src/conn/conn_handle.c
Examining data/wiredtiger-3.2.1/src/conn/conn_log.c
Examining data/wiredtiger-3.2.1/src/conn/conn_open.c
Examining data/wiredtiger-3.2.1/src/conn/conn_reconfig.c
Examining data/wiredtiger-3.2.1/src/conn/conn_stat.c
Examining data/wiredtiger-3.2.1/src/conn/conn_sweep.c
Examining data/wiredtiger-3.2.1/src/cursor/cur_backup.c
Examining data/wiredtiger-3.2.1/src/cursor/cur_bulk.c
Examining data/wiredtiger-3.2.1/src/cursor/cur_config.c
Examining data/wiredtiger-3.2.1/src/cursor/cur_ds.c
Examining data/wiredtiger-3.2.1/src/cursor/cur_dump.c
Examining data/wiredtiger-3.2.1/src/cursor/cur_file.c
Examining data/wiredtiger-3.2.1/src/cursor/cur_index.c
Examining data/wiredtiger-3.2.1/src/cursor/cur_join.c
Examining data/wiredtiger-3.2.1/src/cursor/cur_json.c
Examining data/wiredtiger-3.2.1/src/cursor/cur_log.c
Examining data/wiredtiger-3.2.1/src/cursor/cur_metadata.c
Examining data/wiredtiger-3.2.1/src/cursor/cur_stat.c
Examining data/wiredtiger-3.2.1/src/cursor/cur_std.c
Examining data/wiredtiger-3.2.1/src/cursor/cur_table.c
Examining data/wiredtiger-3.2.1/src/evict/evict_file.c
Examining data/wiredtiger-3.2.1/src/evict/evict_lru.c
Examining data/wiredtiger-3.2.1/src/evict/evict_page.c
Examining data/wiredtiger-3.2.1/src/evict/evict_stat.c
Examining data/wiredtiger-3.2.1/src/include/api.h
Examining data/wiredtiger-3.2.1/src/include/async.h
Examining data/wiredtiger-3.2.1/src/include/block.h
Examining data/wiredtiger-3.2.1/src/include/bloom.h
Examining data/wiredtiger-3.2.1/src/include/btmem.h
Examining data/wiredtiger-3.2.1/src/include/btree.h
Examining data/wiredtiger-3.2.1/src/include/cache.h
Examining data/wiredtiger-3.2.1/src/include/capacity.h
Examining data/wiredtiger-3.2.1/src/include/cell.h
Examining data/wiredtiger-3.2.1/src/include/compact.h
Examining data/wiredtiger-3.2.1/src/include/config.h
Examining data/wiredtiger-3.2.1/src/include/connection.h
Examining data/wiredtiger-3.2.1/src/include/cursor.h
Examining data/wiredtiger-3.2.1/src/include/dhandle.h
Examining data/wiredtiger-3.2.1/src/include/dlh.h
Examining data/wiredtiger-3.2.1/src/include/error.h
Examining data/wiredtiger-3.2.1/src/include/extern.h
Examining data/wiredtiger-3.2.1/src/include/extern_posix.h
Examining data/wiredtiger-3.2.1/src/include/extern_win.h
Examining data/wiredtiger-3.2.1/src/include/gcc.h
Examining data/wiredtiger-3.2.1/src/include/hardware.h
Examining data/wiredtiger-3.2.1/src/include/lint.h
Examining data/wiredtiger-3.2.1/src/include/log.h
Examining data/wiredtiger-3.2.1/src/include/lsm.h
Examining data/wiredtiger-3.2.1/src/include/meta.h
Examining data/wiredtiger-3.2.1/src/include/misc.h
Examining data/wiredtiger-3.2.1/src/include/msvc.h
Examining data/wiredtiger-3.2.1/src/include/mutex.h
Examining data/wiredtiger-3.2.1/src/include/optrack.h
Examining data/wiredtiger-3.2.1/src/include/os.h
Examining data/wiredtiger-3.2.1/src/include/os_windows.h
Examining data/wiredtiger-3.2.1/src/include/posix.h
Examining data/wiredtiger-3.2.1/src/include/queue.h
Examining data/wiredtiger-3.2.1/src/include/reconcile.h
Examining data/wiredtiger-3.2.1/src/include/schema.h
Examining data/wiredtiger-3.2.1/src/include/session.h
Examining data/wiredtiger-3.2.1/src/include/stat.h
Examining data/wiredtiger-3.2.1/src/include/swap.h
Examining data/wiredtiger-3.2.1/src/include/thread_group.h
Examining data/wiredtiger-3.2.1/src/include/txn.h
Examining data/wiredtiger-3.2.1/src/include/verify_build.h
Examining data/wiredtiger-3.2.1/src/include/wiredtiger_ext.h
Examining data/wiredtiger-3.2.1/src/include/wt_internal.h
Examining data/wiredtiger-3.2.1/src/log/log.c
Examining data/wiredtiger-3.2.1/src/log/log_auto.c
Examining data/wiredtiger-3.2.1/src/log/log_slot.c
Examining data/wiredtiger-3.2.1/src/log/log_sys.c
Examining data/wiredtiger-3.2.1/src/lsm/lsm_cursor.c
Examining data/wiredtiger-3.2.1/src/lsm/lsm_cursor_bulk.c
Examining data/wiredtiger-3.2.1/src/lsm/lsm_manager.c
Examining data/wiredtiger-3.2.1/src/lsm/lsm_merge.c
Examining data/wiredtiger-3.2.1/src/lsm/lsm_meta.c
Examining data/wiredtiger-3.2.1/src/lsm/lsm_stat.c
Examining data/wiredtiger-3.2.1/src/lsm/lsm_tree.c
Examining data/wiredtiger-3.2.1/src/lsm/lsm_work_unit.c
Examining data/wiredtiger-3.2.1/src/lsm/lsm_worker.c
Examining data/wiredtiger-3.2.1/src/meta/meta_apply.c
Examining data/wiredtiger-3.2.1/src/meta/meta_ckpt.c
Examining data/wiredtiger-3.2.1/src/meta/meta_ext.c
Examining data/wiredtiger-3.2.1/src/meta/meta_table.c
Examining data/wiredtiger-3.2.1/src/meta/meta_track.c
Examining data/wiredtiger-3.2.1/src/meta/meta_turtle.c
Examining data/wiredtiger-3.2.1/src/optrack/optrack.c
Examining data/wiredtiger-3.2.1/src/os_common/filename.c
Examining data/wiredtiger-3.2.1/src/os_common/os_abort.c
Examining data/wiredtiger-3.2.1/src/os_common/os_alloc.c
Examining data/wiredtiger-3.2.1/src/os_common/os_errno.c
Examining data/wiredtiger-3.2.1/src/os_common/os_fhandle.c
Examining data/wiredtiger-3.2.1/src/os_common/os_fs_inmemory.c
Examining data/wiredtiger-3.2.1/src/os_common/os_fstream.c
Examining data/wiredtiger-3.2.1/src/os_common/os_fstream_stdio.c
Examining data/wiredtiger-3.2.1/src/os_common/os_getopt.c
Examining data/wiredtiger-3.2.1/src/os_common/os_strtouq.c
Examining data/wiredtiger-3.2.1/src/os_posix/os_dir.c
Examining data/wiredtiger-3.2.1/src/os_posix/os_dlopen.c
Examining data/wiredtiger-3.2.1/src/os_posix/os_fallocate.c
Examining data/wiredtiger-3.2.1/src/os_posix/os_fs.c
Examining data/wiredtiger-3.2.1/src/os_posix/os_getenv.c
Examining data/wiredtiger-3.2.1/src/os_posix/os_map.c
Examining data/wiredtiger-3.2.1/src/os_posix/os_mtx_cond.c
Examining data/wiredtiger-3.2.1/src/os_posix/os_once.c
Examining data/wiredtiger-3.2.1/src/os_posix/os_pagesize.c
Examining data/wiredtiger-3.2.1/src/os_posix/os_path.c
Examining data/wiredtiger-3.2.1/src/os_posix/os_priv.c
Examining data/wiredtiger-3.2.1/src/os_posix/os_setvbuf.c
Examining data/wiredtiger-3.2.1/src/os_posix/os_sleep.c
Examining data/wiredtiger-3.2.1/src/os_posix/os_snprintf.c
Examining data/wiredtiger-3.2.1/src/os_posix/os_thread.c
Examining data/wiredtiger-3.2.1/src/os_posix/os_time.c
Examining data/wiredtiger-3.2.1/src/os_posix/os_yield.c
Examining data/wiredtiger-3.2.1/src/os_win/os_dir.c
Examining data/wiredtiger-3.2.1/src/os_win/os_dlopen.c
Examining data/wiredtiger-3.2.1/src/os_win/os_fs.c
Examining data/wiredtiger-3.2.1/src/os_win/os_getenv.c
Examining data/wiredtiger-3.2.1/src/os_win/os_map.c
Examining data/wiredtiger-3.2.1/src/os_win/os_mtx_cond.c
Examining data/wiredtiger-3.2.1/src/os_win/os_once.c
Examining data/wiredtiger-3.2.1/src/os_win/os_pagesize.c
Examining data/wiredtiger-3.2.1/src/os_win/os_path.c
Examining data/wiredtiger-3.2.1/src/os_win/os_priv.c
Examining data/wiredtiger-3.2.1/src/os_win/os_setvbuf.c
Examining data/wiredtiger-3.2.1/src/os_win/os_sleep.c
Examining data/wiredtiger-3.2.1/src/os_win/os_snprintf.c
Examining data/wiredtiger-3.2.1/src/os_win/os_thread.c
Examining data/wiredtiger-3.2.1/src/os_win/os_time.c
Examining data/wiredtiger-3.2.1/src/os_win/os_utf8.c
Examining data/wiredtiger-3.2.1/src/os_win/os_winerr.c
Examining data/wiredtiger-3.2.1/src/os_win/os_yield.c
Examining data/wiredtiger-3.2.1/src/packing/pack_api.c
Examining data/wiredtiger-3.2.1/src/packing/pack_impl.c
Examining data/wiredtiger-3.2.1/src/packing/pack_stream.c
Examining data/wiredtiger-3.2.1/src/reconcile/rec_child.c
Examining data/wiredtiger-3.2.1/src/reconcile/rec_col.c
Examining data/wiredtiger-3.2.1/src/reconcile/rec_dictionary.c
Examining data/wiredtiger-3.2.1/src/reconcile/rec_row.c
Examining data/wiredtiger-3.2.1/src/reconcile/rec_track.c
Examining data/wiredtiger-3.2.1/src/reconcile/rec_visibility.c
Examining data/wiredtiger-3.2.1/src/reconcile/rec_write.c
Examining data/wiredtiger-3.2.1/src/schema/schema_alter.c
Examining data/wiredtiger-3.2.1/src/schema/schema_create.c
Examining data/wiredtiger-3.2.1/src/schema/schema_drop.c
Examining data/wiredtiger-3.2.1/src/schema/schema_list.c
Examining data/wiredtiger-3.2.1/src/schema/schema_open.c
Examining data/wiredtiger-3.2.1/src/schema/schema_plan.c
Examining data/wiredtiger-3.2.1/src/schema/schema_project.c
Examining data/wiredtiger-3.2.1/src/schema/schema_rename.c
Examining data/wiredtiger-3.2.1/src/schema/schema_stat.c
Examining data/wiredtiger-3.2.1/src/schema/schema_truncate.c
Examining data/wiredtiger-3.2.1/src/schema/schema_util.c
Examining data/wiredtiger-3.2.1/src/schema/schema_worker.c
Examining data/wiredtiger-3.2.1/src/session/session_api.c
Examining data/wiredtiger-3.2.1/src/session/session_compact.c
Examining data/wiredtiger-3.2.1/src/session/session_dhandle.c
Examining data/wiredtiger-3.2.1/src/support/cond_auto.c
Examining data/wiredtiger-3.2.1/src/support/crypto.c
Examining data/wiredtiger-3.2.1/src/support/err.c
Examining data/wiredtiger-3.2.1/src/support/generation.c
Examining data/wiredtiger-3.2.1/src/support/global.c
Examining data/wiredtiger-3.2.1/src/support/hash_city.c
Examining data/wiredtiger-3.2.1/src/support/hash_fnv.c
Examining data/wiredtiger-3.2.1/src/support/hazard.c
Examining data/wiredtiger-3.2.1/src/support/hex.c
Examining data/wiredtiger-3.2.1/src/support/huffman.c
Examining data/wiredtiger-3.2.1/src/support/modify.c
Examining data/wiredtiger-3.2.1/src/support/mtx_rw.c
Examining data/wiredtiger-3.2.1/src/support/pow.c
Examining data/wiredtiger-3.2.1/src/support/rand.c
Examining data/wiredtiger-3.2.1/src/support/scratch.c
Examining data/wiredtiger-3.2.1/src/support/stat.c
Examining data/wiredtiger-3.2.1/src/support/thread_group.c
Examining data/wiredtiger-3.2.1/src/support/time.c
Examining data/wiredtiger-3.2.1/src/txn/txn.c
Examining data/wiredtiger-3.2.1/src/txn/txn_ckpt.c
Examining data/wiredtiger-3.2.1/src/txn/txn_ext.c
Examining data/wiredtiger-3.2.1/src/txn/txn_log.c
Examining data/wiredtiger-3.2.1/src/txn/txn_nsnap.c
Examining data/wiredtiger-3.2.1/src/txn/txn_recover.c
Examining data/wiredtiger-3.2.1/src/txn/txn_rollback_to_stable.c
Examining data/wiredtiger-3.2.1/src/txn/txn_timestamp.c
Examining data/wiredtiger-3.2.1/src/utilities/util.h
Examining data/wiredtiger-3.2.1/src/utilities/util_alter.c
Examining data/wiredtiger-3.2.1/src/utilities/util_backup.c
Examining data/wiredtiger-3.2.1/src/utilities/util_compact.c
Examining data/wiredtiger-3.2.1/src/utilities/util_cpyright.c
Examining data/wiredtiger-3.2.1/src/utilities/util_create.c
Examining data/wiredtiger-3.2.1/src/utilities/util_downgrade.c
Examining data/wiredtiger-3.2.1/src/utilities/util_drop.c
Examining data/wiredtiger-3.2.1/src/utilities/util_dump.c
Examining data/wiredtiger-3.2.1/src/utilities/util_dump.h
Examining data/wiredtiger-3.2.1/src/utilities/util_import.c
Examining data/wiredtiger-3.2.1/src/utilities/util_list.c
Examining data/wiredtiger-3.2.1/src/utilities/util_load.c
Examining data/wiredtiger-3.2.1/src/utilities/util_load.h
Examining data/wiredtiger-3.2.1/src/utilities/util_load_json.c
Examining data/wiredtiger-3.2.1/src/utilities/util_loadtext.c
Examining data/wiredtiger-3.2.1/src/utilities/util_main.c
Examining data/wiredtiger-3.2.1/src/utilities/util_misc.c
Examining data/wiredtiger-3.2.1/src/utilities/util_printlog.c
Examining data/wiredtiger-3.2.1/src/utilities/util_read.c
Examining data/wiredtiger-3.2.1/src/utilities/util_rebalance.c
Examining data/wiredtiger-3.2.1/src/utilities/util_rename.c
Examining data/wiredtiger-3.2.1/src/utilities/util_salvage.c
Examining data/wiredtiger-3.2.1/src/utilities/util_stat.c
Examining data/wiredtiger-3.2.1/src/utilities/util_truncate.c
Examining data/wiredtiger-3.2.1/src/utilities/util_upgrade.c
Examining data/wiredtiger-3.2.1/src/utilities/util_verbose.c
Examining data/wiredtiger-3.2.1/src/utilities/util_verify.c
Examining data/wiredtiger-3.2.1/src/utilities/util_write.c
Examining data/wiredtiger-3.2.1/test/bloom/test_bloom.c
Examining data/wiredtiger-3.2.1/test/checkpoint/checkpointer.c
Examining data/wiredtiger-3.2.1/test/checkpoint/test_checkpoint.c
Examining data/wiredtiger-3.2.1/test/checkpoint/test_checkpoint.h
Examining data/wiredtiger-3.2.1/test/checkpoint/workers.c
Examining data/wiredtiger-3.2.1/test/csuite/random_abort/main.c
Examining data/wiredtiger-3.2.1/test/csuite/random_directio/main.c
Examining data/wiredtiger-3.2.1/test/csuite/random_directio/util.c
Examining data/wiredtiger-3.2.1/test/csuite/random_directio/util.h
Examining data/wiredtiger-3.2.1/test/csuite/rwlock/main.c
Examining data/wiredtiger-3.2.1/test/csuite/schema_abort/main.c
Examining data/wiredtiger-3.2.1/test/csuite/scope/main.c
Examining data/wiredtiger-3.2.1/test/csuite/timestamp_abort/main.c
Examining data/wiredtiger-3.2.1/test/csuite/truncated_log/main.c
Examining data/wiredtiger-3.2.1/test/csuite/wt1965_col_efficiency/main.c
Examining data/wiredtiger-3.2.1/test/csuite/wt2246_col_append/main.c
Examining data/wiredtiger-3.2.1/test/csuite/wt2323_join_visibility/main.c
Examining data/wiredtiger-3.2.1/test/csuite/wt2403_lsm_workload/main.c
Examining data/wiredtiger-3.2.1/test/csuite/wt2447_join_main_table/main.c
Examining data/wiredtiger-3.2.1/test/csuite/wt2535_insert_race/main.c
Examining data/wiredtiger-3.2.1/test/csuite/wt2592_join_schema/main.c
Examining data/wiredtiger-3.2.1/test/csuite/wt2695_checksum/main.c
Examining data/wiredtiger-3.2.1/test/csuite/wt2719_reconfig/main.c
Examining data/wiredtiger-3.2.1/test/csuite/wt2834_join_bloom_fix/main.c
Examining data/wiredtiger-3.2.1/test/csuite/wt2853_perf/main.c
Examining data/wiredtiger-3.2.1/test/csuite/wt2909_checkpoint_integrity/main.c
Examining data/wiredtiger-3.2.1/test/csuite/wt2999_join_extractor/main.c
Examining data/wiredtiger-3.2.1/test/csuite/wt3120_filesys/main.c
Examining data/wiredtiger-3.2.1/test/csuite/wt3135_search_near_collator/main.c
Examining data/wiredtiger-3.2.1/test/csuite/wt3184_dup_index_collator/main.c
Examining data/wiredtiger-3.2.1/test/csuite/wt3338_partial_update/main.c
Examining data/wiredtiger-3.2.1/test/csuite/wt3363_checkpoint_op_races/main.c
Examining data/wiredtiger-3.2.1/test/csuite/wt3874_pad_byte_collator/main.c
Examining data/wiredtiger-3.2.1/test/csuite/wt4105_large_doc_small_upd/main.c
Examining data/wiredtiger-3.2.1/test/csuite/wt4117_checksum/main.c
Examining data/wiredtiger-3.2.1/test/csuite/wt4156_metadata_salvage/main.c
Examining data/wiredtiger-3.2.1/test/csuite/wt4333_handle_locks/main.c
Examining data/wiredtiger-3.2.1/test/csuite/wt4699_json/main.c
Examining data/wiredtiger-3.2.1/test/csuite/wt4803_cache_overflow_abort/main.c
Examining data/wiredtiger-3.2.1/test/csuite/wt4891_meta_ckptlist_get_alloc/main.c
Examining data/wiredtiger-3.2.1/test/cursor_order/cursor_order.c
Examining data/wiredtiger-3.2.1/test/cursor_order/cursor_order.h
Examining data/wiredtiger-3.2.1/test/cursor_order/cursor_order_file.c
Examining data/wiredtiger-3.2.1/test/cursor_order/cursor_order_ops.c
Examining data/wiredtiger-3.2.1/test/fops/file.c
Examining data/wiredtiger-3.2.1/test/fops/fops.c
Examining data/wiredtiger-3.2.1/test/fops/t.c
Examining data/wiredtiger-3.2.1/test/fops/thread.h
Examining data/wiredtiger-3.2.1/test/huge/huge.c
Examining data/wiredtiger-3.2.1/test/manydbs/manydbs.c
Examining data/wiredtiger-3.2.1/test/readonly/readonly.c
Examining data/wiredtiger-3.2.1/test/syscall/wt2336_base/main.c
Examining data/wiredtiger-3.2.1/test/utility/misc.c
Examining data/wiredtiger-3.2.1/test/utility/parse_opts.c
Examining data/wiredtiger-3.2.1/test/utility/test_util.h
Examining data/wiredtiger-3.2.1/test/utility/thread.c
Examining data/wiredtiger-3.2.1/test/windows/windows_shim.c
Examining data/wiredtiger-3.2.1/test/windows/windows_shim.h

FINAL RESULTS:

data/wiredtiger-3.2.1/bench/wtperf/config.c:812:17:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                fprintf(stderr,
data/wiredtiger-3.2.1/bench/wtperf/config.c:870:21:  [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(concat_str, conf_line->string);
data/wiredtiger-3.2.1/bench/wtperf/config.c:872:21:  [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(concat_str, val_pointer);
data/wiredtiger-3.2.1/bench/wtperf/misc.c:75:9:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        vfprintf(wtperf->logf, fmt, ap);
data/wiredtiger-3.2.1/bench/wtperf/misc.c:81:13:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            vprintf(fmt, ap);
data/wiredtiger-3.2.1/bench/wtperf/misc.c:91:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, fmt, ap);
data/wiredtiger-3.2.1/bench/wtperf/misc.c:96:9:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        vfprintf(wtperf->logf, fmt, ap);
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:2565:17:  [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(user_cconfig, __wt_optarg);
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:2587:17:  [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(user_tconfig, __wt_optarg);
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:2888:23:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    testutil_checkfmt(system(buf), "system: %s", buf);
data/wiredtiger-3.2.1/bench/wtperf/wtperf.h:294:25:  [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.
  __attribute__((format(printf, 4, 5)))
data/wiredtiger-3.2.1/bench/wtperf/wtperf.h:307:11:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
    (void)sscanf(key_buf, "%" SCNu64, keynop);
data/wiredtiger-3.2.1/examples/c/ex_all.c:1119:21:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        error_check(system(buf));
data/wiredtiger-3.2.1/examples/c/ex_backup.c:67:17:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    error_check(system(buf));
data/wiredtiger-3.2.1/examples/c/ex_backup.c:73:17:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    error_check(system(buf));
data/wiredtiger-3.2.1/examples/c/ex_backup.c:79:11:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    ret = system(buf);
data/wiredtiger-3.2.1/examples/c/ex_backup.c:95:21:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        error_check(system(buf));
data/wiredtiger-3.2.1/examples/c/ex_backup.c:117:21:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        error_check(system(buf));
data/wiredtiger-3.2.1/examples/c/ex_backup.c:124:21:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        error_check(system(buf));
data/wiredtiger-3.2.1/examples/c/ex_backup.c:177:29:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                error_check(system(buf));
data/wiredtiger-3.2.1/examples/c/ex_backup.c:182:25:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
            error_check(system(buf));
data/wiredtiger-3.2.1/examples/c/ex_backup.c:207:21:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        error_check(system(buf));
data/wiredtiger-3.2.1/examples/c/ex_backup.c:211:25:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
            error_check(system(buf));
data/wiredtiger-3.2.1/examples/c/ex_backup.c:236:17:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    error_check(system(cmd_buf));
data/wiredtiger-3.2.1/examples/c/ex_file_system.c:842:15:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        ret = system("rm -rf WT_HOME && mkdir WT_HOME");
data/wiredtiger-3.2.1/examples/c/ex_log.c:89:5:  [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("LSN [%" PRIu32 "][%" PRIu32 "].%" PRIu32 ": record type %" PRIu32 " optype %" PRIu32
data/wiredtiger-3.2.1/examples/c/ex_log.c:261:17:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    error_check(system(cmd_buf));
data/wiredtiger-3.2.1/examples/c/ex_schema.c:131:9:  [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("ID %" PRIu64, recno);
data/wiredtiger-3.2.1/examples/c/ex_schema.c:146:9:  [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("ID %" PRIu64, recno);
data/wiredtiger-3.2.1/examples/c/ex_schema.c:303:9:  [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("ID %" PRIu64, recno);
data/wiredtiger-3.2.1/examples/c/ex_schema.c:356:9:  [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("ID %" PRIu64, recno);
data/wiredtiger-3.2.1/examples/c/ex_smoke.c:48:16:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if ((ret = system("rm -rf WT_HOME && mkdir WT_HOME")) != 0) {
data/wiredtiger-3.2.1/ext/test/fail_fs/fail_fs.c:509:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    *existp = (access(name, F_OK) == 0);
data/wiredtiger-3.2.1/lang/python/wiredtiger_wrap.c:678:3:  [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(r,name);
data/wiredtiger-3.2.1/lang/python/wiredtiger_wrap.c:818:25:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#  define PyOS_snprintf _snprintf
data/wiredtiger-3.2.1/lang/python/wiredtiger_wrap.c:820:25:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#  define PyOS_snprintf snprintf
data/wiredtiger-3.2.1/lang/python/wiredtiger_wrap.c:837:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  res = vsnprintf(buf, sizeof(buf), fmt, ap);
data/wiredtiger-3.2.1/lang/python/wiredtiger_wrap.c:3820: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(msg, message);
data/wiredtiger-3.2.1/src/btree/bt_debug.c:27:42:  [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.
      WT_GCC_FUNC_DECL_ATTRIBUTE((format(printf, 2, 3)));
data/wiredtiger-3.2.1/src/btree/bt_debug.c:229:11:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    ret = vfprintf(ds->fp, fmt, ap) < 0 ? EIO : 0;
data/wiredtiger-3.2.1/src/btree/bt_huffman.c:325:13:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
        n = sscanf(tmp->data, "%" SCNi64 " %" SCNi64, &symbol, &frequency);
data/wiredtiger-3.2.1/src/btree/bt_vrfy.c:94:27:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
        if (v.len != 0 || sscanf(k.str, "%" SCNu64, &offset) != 1)
data/wiredtiger-3.2.1/src/conn/conn_reconfig.c:26:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
    if (sscanf(cvalp->str, "%" SCNu16 ".%" SCNu16, majorp, minorp) != 2 &&
data/wiredtiger-3.2.1/src/conn/conn_reconfig.c:28:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
      sscanf(cvalp->str, "%" SCNu16 ".%" SCNu16 ".%" SCNu16, majorp, minorp, &unused_patch) != 3)
data/wiredtiger-3.2.1/src/include/extern.h:301:38:  [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.
  WT_GCC_FUNC_DECL_ATTRIBUTE((format(printf, 3, 4)))
data/wiredtiger-3.2.1/src/include/extern.h:305:38:  [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.
  WT_GCC_FUNC_DECL_ATTRIBUTE((format(printf, 3, 4)))
data/wiredtiger-3.2.1/src/include/extern.h:647:43:  [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.
  ...) WT_GCC_FUNC_DECL_ATTRIBUTE((format(printf, 3, 4)))
data/wiredtiger-3.2.1/src/include/extern.h:660:43:  [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.
  ...) WT_GCC_FUNC_DECL_ATTRIBUTE((format(printf, 3, 4)))
data/wiredtiger-3.2.1/src/include/extern.h:1067:73:  [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.
  WT_GCC_FUNC_DECL_ATTRIBUTE((cold)) WT_GCC_FUNC_DECL_ATTRIBUTE((format(printf, 2, 3)))
data/wiredtiger-3.2.1/src/include/extern.h:1616:73:  [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.
  WT_GCC_FUNC_DECL_ATTRIBUTE((cold)) WT_GCC_FUNC_DECL_ATTRIBUTE((format(printf, 5, 6)))
data/wiredtiger-3.2.1/src/include/extern.h:1619:78:  [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.
  ...) WT_GCC_FUNC_DECL_ATTRIBUTE((cold)) WT_GCC_FUNC_DECL_ATTRIBUTE((format(printf, 4, 5)))
data/wiredtiger-3.2.1/src/include/extern.h:1738:38:  [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.
  WT_GCC_FUNC_DECL_ATTRIBUTE((format(printf, 2, 3))) WT_GCC_FUNC_DECL_ATTRIBUTE((cold));
data/wiredtiger-3.2.1/src/include/extern.h:1867:38:  [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.
  WT_GCC_FUNC_DECL_ATTRIBUTE((format(printf, 3, 4)))
data/wiredtiger-3.2.1/src/include/extern.h:1931:38:  [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.
  WT_GCC_FUNC_DECL_ATTRIBUTE((format(printf, 3, 4)))
data/wiredtiger-3.2.1/src/include/extern.h:1934:43:  [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.
  ...) WT_GCC_FUNC_DECL_ATTRIBUTE((format(printf, 4, 5)))
data/wiredtiger-3.2.1/src/include/extern.h:1937:43:  [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.
  ...) WT_GCC_FUNC_DECL_ATTRIBUTE((format(printf, 4, 5)))
data/wiredtiger-3.2.1/src/log/log.c:556:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
      sscanf(++p, "%" SCNu32, id) != 1)
data/wiredtiger-3.2.1/src/meta/meta_ckpt.c:433:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
    if (sscanf(timebuf, "%" SCNu64, &ckpt->sec) != 1)
data/wiredtiger-3.2.1/src/os_common/os_fstream_stdio.c:51:9:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    if (vfprintf(fs->fp, fmt, ap) >= 0)
data/wiredtiger-3.2.1/src/os_posix/os_snprintf.c:21:16:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    if ((ret = vsnprintf(buf, size, fmt, ap)) >= 0) {
data/wiredtiger-3.2.1/src/session/session_api.c:819:33:  [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.
  WT_GCC_FUNC_ATTRIBUTE((format(printf, 2, 3)))
data/wiredtiger-3.2.1/src/session/session_api.c:842:33:  [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.
  WT_GCC_FUNC_ATTRIBUTE((format(printf, 2, 3)))
data/wiredtiger-3.2.1/src/support/err.c:287:13:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        if (vfprintf(stderr, fmt, ap) < 0)
data/wiredtiger-3.2.1/src/support/err.c:304:63:  [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.
  WT_GCC_FUNC_ATTRIBUTE((cold)) WT_GCC_FUNC_ATTRIBUTE((format(printf, 5, 6)))
data/wiredtiger-3.2.1/src/support/err.c:324:63:  [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.
  WT_GCC_FUNC_ATTRIBUTE((cold)) WT_GCC_FUNC_ATTRIBUTE((format(printf, 4, 5)))
data/wiredtiger-3.2.1/src/support/err.c:355:33:  [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.
  WT_GCC_FUNC_ATTRIBUTE((format(printf, 3, 4)))
data/wiredtiger-3.2.1/src/support/err.c:376:33:  [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.
  WT_GCC_FUNC_ATTRIBUTE((format(printf, 2, 3))) WT_GCC_FUNC_ATTRIBUTE((cold))
data/wiredtiger-3.2.1/src/support/err.c:391:33:  [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.
  WT_GCC_FUNC_ATTRIBUTE((format(printf, 2, 3)))
data/wiredtiger-3.2.1/src/support/err.c:417:33:  [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.
  WT_GCC_FUNC_ATTRIBUTE((format(printf, 3, 4)))
data/wiredtiger-3.2.1/src/support/scratch.c:68:33:  [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.
  WT_GCC_FUNC_ATTRIBUTE((format(printf, 3, 4))) WT_GCC_FUNC_ATTRIBUTE((visibility("default")))
data/wiredtiger-3.2.1/src/support/scratch.c:81:33:  [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.
  WT_GCC_FUNC_ATTRIBUTE((format(printf, 3, 4))) WT_GCC_FUNC_ATTRIBUTE((visibility("default")))
data/wiredtiger-3.2.1/src/utilities/util.h:39:38:  [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.
  WT_GCC_FUNC_DECL_ATTRIBUTE((format(printf, 3, 4)));
data/wiredtiger-3.2.1/src/utilities/util_dump.c:251:33:  [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.
  WT_GCC_FUNC_ATTRIBUTE((format(printf, 4, 5)))
data/wiredtiger-3.2.1/src/utilities/util_load.c:550:13:  [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("\r\t%s: %" PRIu64, name, insert_count);
data/wiredtiger-3.2.1/src/utilities/util_loadtext.c:143:13:  [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("\r\t%s: %" PRIu64, name, insert_count);
data/wiredtiger-3.2.1/src/utilities/util_misc.c:29:15:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        (void)vfprintf(stderr, fmt, ap);
data/wiredtiger-3.2.1/src/utilities/util_verbose.c:50:13:  [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.
    return (printf("\r\t%s %-20" PRIu64, operation, progress) < 0 ? EIO : 0);
data/wiredtiger-3.2.1/test/bloom/test_bloom.c:108:20:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    testutil_check(system("rm -f WiredTiger* *.bf"));
data/wiredtiger-3.2.1/test/csuite/random_abort/main.c:168:9:  [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(envconf, ENV_CONFIG_DEF);
data/wiredtiger-3.2.1/test/csuite/random_abort/main.c:170:9:  [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(envconf, ENV_CONFIG_TXNSYNC);
data/wiredtiger-3.2.1/test/csuite/random_abort/main.c:172:9:  [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(envconf, ENV_CONFIG_COMPAT);
data/wiredtiger-3.2.1/test/csuite/random_abort/main.c:359:19:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if ((status = system(buf)) < 0)
data/wiredtiger-3.2.1/test/csuite/random_directio/main.c:1142:23:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        if ((status = system(buf)) < 0)
data/wiredtiger-3.2.1/test/csuite/schema_abort/main.c:793:9:  [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(envconf, ENV_CONFIG_DEF);
data/wiredtiger-3.2.1/test/csuite/schema_abort/main.c:795:9:  [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(envconf, ENV_CONFIG_TXNSYNC);
data/wiredtiger-3.2.1/test/csuite/schema_abort/main.c:797:9:  [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(envconf, ENV_CONFIG_COMPAT);
data/wiredtiger-3.2.1/test/csuite/schema_abort/main.c:1051:19:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if ((status = system(buf)) < 0)
data/wiredtiger-3.2.1/test/csuite/schema_abort/main.c:1073:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
        sscanf(buf, "%" SCNx64, &stable_val);
data/wiredtiger-3.2.1/test/csuite/scope/main.c:129:13:  [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(keybuf, KEY);
data/wiredtiger-3.2.1/test/csuite/scope/main.c:132:9:  [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(valuebuf, VALUE);
data/wiredtiger-3.2.1/test/csuite/scope/main.c:280: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).
                strcpy(keybuf, KEY);
data/wiredtiger-3.2.1/test/csuite/scope/main.c:283:13:  [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(valuebuf, VALUE);
data/wiredtiger-3.2.1/test/csuite/timestamp_abort/main.c:195:25:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
        testutil_assert(sscanf(ts_string, "%" SCNx64, &stable) == 1);
data/wiredtiger-3.2.1/test/csuite/timestamp_abort/main.c:410:9:  [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(envconf, ENV_CONFIG_COMPAT);
data/wiredtiger-3.2.1/test/csuite/timestamp_abort/main.c:673:19:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if ((status = system(buf)) < 0)
data/wiredtiger-3.2.1/test/csuite/timestamp_abort/main.c:700:25:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
        testutil_assert(sscanf(ts_string, "%" SCNx64, &stable_val) == 1);
data/wiredtiger-3.2.1/test/csuite/wt1965_col_efficiency/main.c:156:9:  [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("(%" PRIu64 ",%llu)\t\t%" PRIu64, (r >> 40), r & ((1ULL << 40) - 1), ts);
data/wiredtiger-3.2.1/test/csuite/wt1965_col_efficiency/main.c:159:13:  [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("\t%" PRIu64, f[i]);
data/wiredtiger-3.2.1/test/csuite/wt2592_join_schema/main.c:118:9:  [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("ID %" PRIu64, recno);
data/wiredtiger-3.2.1/test/csuite/wt2592_join_schema/main.c:164:9:  [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("ID %" PRIu64, recno);
data/wiredtiger-3.2.1/test/csuite/wt2719_reconfig/main.c:201:9:  [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(config, p);
data/wiredtiger-3.2.1/test/csuite/wt2719_reconfig/main.c:214:13:  [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(config, p);
data/wiredtiger-3.2.1/test/csuite/wt2909_checkpoint_integrity/main.c:452:15:  [4] (shell) execv:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        (void)execv(prog, argv);
data/wiredtiger-3.2.1/test/csuite/wt3184_dup_index_collator/main.c:66:9:  [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("%s%" PRId32, str, *(int32_t *)item->data);
data/wiredtiger-3.2.1/test/csuite/wt4156_metadata_salvage/main.c:138:5:  [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(valuebuf, VALUE);
data/wiredtiger-3.2.1/test/csuite/wt4156_metadata_salvage/main.c:319:16:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if ((ret = system(buf)) < 0)
data/wiredtiger-3.2.1/test/csuite/wt4156_metadata_salvage/main.c:328:16:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if ((ret = system(buf)) < 0)
data/wiredtiger-3.2.1/test/csuite/wt4156_metadata_salvage/main.c:332:16:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if ((ret = system(buf)) < 0)
data/wiredtiger-3.2.1/test/csuite/wt4156_metadata_salvage/main.c:499:16:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if ((ret = system(buf)) < 0)
data/wiredtiger-3.2.1/test/csuite/wt4156_metadata_salvage/main.c:511:16:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if ((ret = system(buf)) < 0)
data/wiredtiger-3.2.1/test/csuite/wt4156_metadata_salvage/main.c:527:16:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if ((ret = system(buf)) < 0)
data/wiredtiger-3.2.1/test/csuite/wt4699_json/main.c:66:5:  [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(projection, opts->uri);
data/wiredtiger-3.2.1/test/csuite/wt4699_json/main.c:71:5:  [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(projection, opts->uri);
data/wiredtiger-3.2.1/test/huge/huge.c:87:5:  [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(SIZET_FMT "%s%s: %s %s big %s\n",
data/wiredtiger-3.2.1/test/readonly/readonly.c:247:19:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if ((status = system(cmd)) < 0)
data/wiredtiger-3.2.1/test/readonly/readonly.c:252:19:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if ((status = system(cmd)) < 0)
data/wiredtiger-3.2.1/test/readonly/readonly.c:259:19:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if ((status = system(cmd)) < 0)
data/wiredtiger-3.2.1/test/readonly/readonly.c:303:19:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if ((status = system(cmd)) < 0)
data/wiredtiger-3.2.1/test/readonly/readonly.c:312:19:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if ((status = system(cmd)) < 0)
data/wiredtiger-3.2.1/test/readonly/readonly.c:330:19:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if ((status = system(cmd)) < 0)
data/wiredtiger-3.2.1/test/readonly/readonly.c:339:19:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if ((status = system(cmd)) < 0)
data/wiredtiger-3.2.1/test/readonly/readonly.c:355:19:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if ((status = system(cmd)) < 0)
data/wiredtiger-3.2.1/test/readonly/readonly.c:358:19:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if ((status = system(cmd)) < 0)
data/wiredtiger-3.2.1/test/syscall/wt2336_base/main.c:55:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, SEPARATOR "wiredtiger_open\n");
data/wiredtiger-3.2.1/test/syscall/wt2336_base/main.c:61:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, SEPARATOR "open_session\n");
data/wiredtiger-3.2.1/test/syscall/wt2336_base/main.c:69:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, SEPARATOR "create\n");
data/wiredtiger-3.2.1/test/syscall/wt2336_base/main.c:76:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, SEPARATOR "rename\n");
data/wiredtiger-3.2.1/test/syscall/wt2336_base/main.c:82:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, SEPARATOR "drop\n");
data/wiredtiger-3.2.1/test/syscall/wt2336_base/main.c:88:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, SEPARATOR "WT_CONNECTION::close\n");
data/wiredtiger-3.2.1/test/utility/misc.c:58:9:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        vfprintf(stderr, fmt, ap);
data/wiredtiger-3.2.1/test/utility/misc.c:98:5:  [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(buffer, dir);
data/wiredtiger-3.2.1/test/utility/misc.c:128:16:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if ((ret = system(buf)) != 0 && ret != ENOENT)
data/wiredtiger-3.2.1/test/utility/misc.c:152:20:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    testutil_check(system(buf));
data/wiredtiger-3.2.1/test/windows/windows_shim.h:38:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf __wt_snprintf
data/wiredtiger-3.2.1/examples/c/ex_extractor.c:122:5:  [3] (random) srand:
  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.
    srand((unsigned int)getpid());
data/wiredtiger-3.2.1/examples/c/ex_file_system.c:840:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv("WIREDTIGER_HOME") == NULL) {
data/wiredtiger-3.2.1/ext/test/fail_fs/fail_fs.c:486:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((value = getenv(name)) != NULL) {
data/wiredtiger-3.2.1/src/os_posix/os_getenv.c:23:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (((temp = getenv(variable)) != NULL) && strlen(temp) > 0)
data/wiredtiger-3.2.1/src/os_win/os_mtx_cond.c:22:5:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
    InitializeCriticalSection(&cond->mtx);
data/wiredtiger-3.2.1/src/os_win/os_mtx_cond.c:58:5:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
    EnterCriticalSection(&cond->mtx);
data/wiredtiger-3.2.1/src/os_win/os_mtx_cond.c:151:5:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
    EnterCriticalSection(&cond->mtx);
data/wiredtiger-3.2.1/test/csuite/wt2909_checkpoint_integrity/main.c:518:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((p = getenv("top_builddir")) == NULL)
data/wiredtiger-3.2.1/test/csuite/wt3120_filesys/main.c:55:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((p = getenv("top_builddir")) == NULL)
data/wiredtiger-3.2.1/test/csuite/wt3874_pad_byte_collator/main.c:67:5:  [3] (random) srand:
  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.
    srand(123);
data/wiredtiger-3.2.1/test/utility/misc.c:355:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((home = getenv("WIREDTIGER_HOME")) == NULL)
data/wiredtiger-3.2.1/bench/workgen/workgen.cxx:278: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 time_buf[64], version[100];
data/wiredtiger-3.2.1/bench/workgen/workgen.cxx:1470:9:  [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(us, other.us, sizeof(uint32_t) * LATENCY_US_BUCKETS);
data/wiredtiger-3.2.1/bench/workgen/workgen.cxx:1471:9:  [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(ms, other.ms, sizeof(uint32_t) * LATENCY_MS_BUCKETS);
data/wiredtiger-3.2.1/bench/workgen/workgen.cxx:1472:9:  [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(sec, other.sec, sizeof(uint32_t) * LATENCY_SEC_BUCKETS);
data/wiredtiger-3.2.1/bench/workgen/workgen.cxx:1529:9:  [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(us, other.us, sizeof(uint32_t) * LATENCY_US_BUCKETS);
data/wiredtiger-3.2.1/bench/workgen/workgen.cxx:1530:9:  [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(ms, other.ms, sizeof(uint32_t) * LATENCY_MS_BUCKETS);
data/wiredtiger-3.2.1/bench/workgen/workgen.cxx:1531:9:  [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(sec, other.sec, sizeof(uint32_t) * LATENCY_SEC_BUCKETS);
data/wiredtiger-3.2.1/bench/workgen/workgen.cxx:1968:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    of.open(sstm.str().c_str(), std::fstream::app);
data/wiredtiger-3.2.1/bench/wtperf/config.c:514: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 line[4 * 1024], option[4 * 1024];
data/wiredtiger-3.2.1/bench/wtperf/config.c:519:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fp = fopen(filename, "r")) == NULL) {
data/wiredtiger-3.2.1/bench/wtperf/config.c:596:9:  [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(&option[optionpos], ltrim, linelen);
data/wiredtiger-3.2.1/bench/wtperf/config.c:898:30:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    testutil_checkfmt(((fp = fopen(path, "w")) == NULL), "%s", path);
data/wiredtiger-3.2.1/bench/wtperf/idle_table_cycle.c:66: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 uri[512];
data/wiredtiger-3.2.1/bench/wtperf/misc.c:49:25:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((wtperf->logf = fopen(fname, "w")) == NULL) {
data/wiredtiger-3.2.1/bench/wtperf/track.c:336: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 path[1024];
data/wiredtiger-3.2.1/bench/wtperf/track.c:339:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fp = fopen(path, "w")) == NULL) {
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:437: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[512];
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:520: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[512];
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:1309: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[64], *path;
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:1327:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fp = fopen(path, "w")) == NULL) {
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:1332:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((jfp = fopen(path, "w")) == NULL) {
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:2038:34:  [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).
        table_icount = (uint32_t)atoi(key);
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:2098: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[512];
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:2193:9:  [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(dest->workload, src->workload, src->workload_cnt * sizeof(WORKLOAD));
data/wiredtiger-3.2.1/examples/c/ex_all.c:907:9:  [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 timestamp_buf[2 * sizeof(uint64_t) + 1];
data/wiredtiger-3.2.1/examples/c/ex_all.c:1083:9:  [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[100];
data/wiredtiger-3.2.1/examples/c/ex_all.c:1101: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[1024];
data/wiredtiger-3.2.1/examples/c/ex_async.c:108: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 k[MAX_KEYS][16], v[MAX_KEYS][16];
data/wiredtiger-3.2.1/examples/c/ex_backup.c:50: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[1024], msg[32];
data/wiredtiger-3.2.1/examples/c/ex_backup.c:109: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[1024];
data/wiredtiger-3.2.1/examples/c/ex_backup.c:133: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 k[32], v[32];
data/wiredtiger-3.2.1/examples/c/ex_backup.c:154: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[1024], h[256];
data/wiredtiger-3.2.1/examples/c/ex_backup.c:194: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[1024], h[256];
data/wiredtiger-3.2.1/examples/c/ex_backup.c:230: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 cmd_buf[256];
data/wiredtiger-3.2.1/examples/c/ex_encrypt.c:154:5:  [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(&dst[0], &src[i], mylen);
data/wiredtiger-3.2.1/examples/c/ex_encrypt.c:191:5:  [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(&dst[i], &src[0], src_len);
data/wiredtiger-3.2.1/examples/c/ex_encrypt.c:414: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 keybuf[32], valbuf[32];
data/wiredtiger-3.2.1/examples/c/ex_file_system.c:636:9:  [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(buf, (uint8_t *)demo_fh->buf + off, len);
data/wiredtiger-3.2.1/examples/c/ex_file_system.c:759:9:  [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((uint8_t *)demo_fh->buf + off, buf, len);
data/wiredtiger-3.2.1/examples/c/ex_file_system.c:834: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 kbuf[64];
data/wiredtiger-3.2.1/examples/c/ex_log.c:252: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 cmd_buf[256], k[32], v[32];
data/wiredtiger-3.2.1/examples/c/ex_pack.c:53:9:  [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[50];
data/wiredtiger-3.2.1/examples/c/ex_schema.c:39: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 country[5];
data/wiredtiger-3.2.1/examples/c/ex_sync.c:46: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 k[32], v[32];
data/wiredtiger-3.2.1/ext/compressors/lz4/lz4_compress.c:151:9:  [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(dst, &prefix, sizeof(LZ4_PREFIX));
data/wiredtiger-3.2.1/ext/compressors/lz4/lz4_compress.c:181:5:  [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(&prefix, src, sizeof(LZ4_PREFIX));
data/wiredtiger-3.2.1/ext/compressors/lz4/lz4_compress.c:216:13:  [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(dst, dst_tmp, dst_len);
data/wiredtiger-3.2.1/ext/compressors/nop/nop_compress.c:69:5:  [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(dst, src, src_len);
data/wiredtiger-3.2.1/ext/compressors/nop/nop_compress.c:95:5:  [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(dst, src, dst_len);
data/wiredtiger-3.2.1/ext/encryptors/nop/nop_encrypt.c:81:5:  [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(dst, src, src_len);
data/wiredtiger-3.2.1/ext/encryptors/nop/nop_encrypt.c:107:5:  [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(dst, src, dst_len);
data/wiredtiger-3.2.1/ext/encryptors/rotn/rotn_encrypt.c:196:5:  [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(&dst[i], &src[0], src_len);
data/wiredtiger-3.2.1/ext/encryptors/rotn/rotn_encrypt.c:252:5:  [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(&dst[0], &src[i], mylen);
data/wiredtiger-3.2.1/ext/encryptors/rotn/rotn_encrypt.c:321:26:  [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).
        if ((keyid_val = atoi(keyid.str)) < 0) {
data/wiredtiger-3.2.1/ext/extractors/csv/csv_extractor.c:113:24:  [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).
            if ((val = atoi(copy)) < 0) {
data/wiredtiger-3.2.1/ext/test/fail_fs/fail_fs.c:559:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    else if ((fd = open(name, open_flags, 0666)) < 0) {
data/wiredtiger-3.2.1/lang/python/wiredtiger_wrap.c:629:16:  [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 const char hex[17] = "0123456789abcdef";
data/wiredtiger-3.2.1/lang/python/wiredtiger_wrap.c:790: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(newstr, cstr, len+1);
data/wiredtiger-3.2.1/lang/python/wiredtiger_wrap.c:834: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 buf[SWIG_PYBUFFER_SIZE * 2];
data/wiredtiger-3.2.1/lang/python/wiredtiger_wrap.c:2024: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 result[SWIG_BUFFER_SIZE];
data/wiredtiger-3.2.1/lang/python/wiredtiger_wrap.c:2038: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 result[SWIG_BUFFER_SIZE];
data/wiredtiger-3.2.1/lang/python/wiredtiger_wrap.c:2049: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 result[SWIG_BUFFER_SIZE];
data/wiredtiger-3.2.1/lang/python/wiredtiger_wrap.c:2191:7:  [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(pack, ptr, size);
data/wiredtiger-3.2.1/lang/python/wiredtiger_wrap.c:2209:5:  [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(ptr, sobj->pack, size);
data/wiredtiger-3.2.1/lang/python/wiredtiger_wrap.c:2846: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 mesg[256];
data/wiredtiger-3.2.1/lang/python/wiredtiger_wrap.c:3221:20:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  *cptr = (char *)memcpy(malloc((len + 1)*sizeof(char)), cstr, sizeof(char)*(len + 1));
data/wiredtiger-3.2.1/lang/python/wiredtiger_wrap.c:3259:27:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          *cptr = (char *)memcpy(malloc((len + 1)*sizeof(char)), cstr, sizeof(char)*(len + 1));
data/wiredtiger-3.2.1/lang/python/wiredtiger_wrap.c:5396:7:  [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(modarray2[i2].data.data, datadata, datasize);
data/wiredtiger-3.2.1/lang/python/wiredtiger_wrap.c:8036: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 tsbuf3[WT_TS_HEX_STRING_SIZE] ;
data/wiredtiger-3.2.1/lang/python/wiredtiger_wrap.c:9271: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 tsbuf3[WT_TS_HEX_STRING_SIZE] ;
data/wiredtiger-3.2.1/lang/python/wiredtiger_wrap.c:10018:7:  [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(modarray5[i5].data.data, datadata, datasize);
data/wiredtiger-3.2.1/src/block/block_ckpt_scan.c:111:5:  [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(p, ckpt->block_metadata, len);
data/wiredtiger-3.2.1/src/block/block_ckpt_scan.c:126:5:  [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(p, ckpt->block_checkpoint, len);
data/wiredtiger-3.2.1/src/block/block_ckpt_scan.c:146:5:  [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(p, ckpt->raw.data, len);
data/wiredtiger-3.2.1/src/bloom/bloom.c:117: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.
    const char *cfg[3];
data/wiredtiger-3.2.1/src/btree/bt_debug.c:64: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[256];
data/wiredtiger-3.2.1/src/btree/bt_debug.c:65: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.
    const char *cfg[2] = {NULL, NULL};
data/wiredtiger-3.2.1/src/btree/bt_debug.c:130:44:  [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.
    if (WT_STREQ(ds->key_format, "S") && ((char *)data_arg)[size - 1] != '\0') {
data/wiredtiger-3.2.1/src/btree/bt_debug.c:156:46:  [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.
    if (WT_STREQ(ds->value_format, "S") && ((char *)data_arg)[size - 1] != '\0') {
data/wiredtiger-3.2.1/src/btree/bt_debug.c:260:23:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if ((ds->fp = fopen(ofile, "w")) == NULL)
data/wiredtiger-3.2.1/src/btree/bt_debug.c:561: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/wiredtiger-3.2.1/src/btree/bt_debug.c:966: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 tag[64];
data/wiredtiger-3.2.1/src/btree/bt_debug.c:1115:5:  [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(&nentries, p++, sizeof(size_t));
data/wiredtiger-3.2.1/src/btree/bt_debug.c:1120:9:  [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(&data_size, p++, sizeof(size_t));
data/wiredtiger-3.2.1/src/btree/bt_debug.c:1121:9:  [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(&offset, p++, sizeof(size_t));
data/wiredtiger-3.2.1/src/btree/bt_debug.c:1122:9:  [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(&size, p++, sizeof(size_t));
data/wiredtiger-3.2.1/src/btree/bt_debug.c:1139: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 ts_string[WT_TS_INT_STRING_SIZE];
data/wiredtiger-3.2.1/src/btree/bt_debug.c:1266: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 ts_string[3][WT_TS_INT_STRING_SIZE];
data/wiredtiger-3.2.1/src/btree/bt_huffman.c:234:9:  [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(copy, __wt_huffman_nytenglish, sizeof(__wt_huffman_nytenglish));
data/wiredtiger-3.2.1/src/btree/bt_huffman.c:263:9:  [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(copy, __wt_huffman_nytenglish, sizeof(__wt_huffman_nytenglish));
data/wiredtiger-3.2.1/src/btree/bt_import.c:26: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 *checkpoint_list, *fileconf, *metadata, fileid[64];
data/wiredtiger-3.2.1/src/btree/bt_io.c:94:9:  [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(buf->mem, ip->data, WT_BLOCK_COMPRESS_SKIP);
data/wiredtiger-3.2.1/src/btree/bt_io.c:199:9:  [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(ctmp->mem, buf->data, WT_BLOCK_COMPRESS_SKIP);
data/wiredtiger-3.2.1/src/btree/bt_io.c:277:13:  [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(ctmp->mem, buf->mem, WT_BLOCK_COMPRESS_SKIP);
data/wiredtiger-3.2.1/src/btree/bt_ret.c:185:21:  [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(listp, list, sizeof(list));
data/wiredtiger-3.2.1/src/btree/bt_vrfy.c:312: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 ts_string[2][WT_TS_INT_STRING_SIZE];
data/wiredtiger-3.2.1/src/btree/bt_vrfy.c:702: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 ts_string[2][WT_TS_INT_STRING_SIZE];
data/wiredtiger-3.2.1/src/btree/bt_vrfy.c:775: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 ts_string[2][WT_TS_INT_STRING_SIZE];
data/wiredtiger-3.2.1/src/btree/bt_vrfy_dsk.c:199: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 ts_string[2][WT_TS_INT_STRING_SIZE];
data/wiredtiger-3.2.1/src/btree/bt_vrfy_dsk.c:264: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 ts_string[2][WT_TS_INT_STRING_SIZE];
data/wiredtiger-3.2.1/src/btree/bt_vrfy_dsk.c:545:17:  [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(current->mem, last->data, prefix);
data/wiredtiger-3.2.1/src/btree/bt_vrfy_dsk.c:557:17:  [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(current->mem, last->data, prefix);
data/wiredtiger-3.2.1/src/btree/bt_vrfy_dsk.c:558:13:  [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((uint8_t *)current->mem + prefix, unpack->data, unpack->size);
data/wiredtiger-3.2.1/src/btree/row_key.c:393:13:  [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((uint8_t *)keyb->data + keyb->size, p, size);
data/wiredtiger-3.2.1/src/btree/row_key.c:466:5:  [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(WT_IKEY_DATA(ikey), key, size);
data/wiredtiger-3.2.1/src/btree/row_modify.c:240:5:  [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(WT_INSERT_KEY(ins), key->data, key->size);
data/wiredtiger-3.2.1/src/btree/row_modify.c:276:13:  [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(upd->data, value->data, value->size);
data/wiredtiger-3.2.1/src/cache/cache_las.c:562: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 ts_string[2][WT_TS_INT_STRING_SIZE];
data/wiredtiger-3.2.1/src/config/config_api.c:80:5:  [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(&config_parser->config_item, &config_item, sizeof(config_item));
data/wiredtiger-3.2.1/src/conn/api_calc_modify.c:103:5:  [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(&h, p, WT_CM_BLOCKSIZE);
data/wiredtiger-3.2.1/src/conn/api_strerror.c:70:12:  [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 buf[128];
data/wiredtiger-3.2.1/src/conn/conn_api.c:846: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.
    const char *ext_cfg[2];
data/wiredtiger-3.2.1/src/conn/conn_api.c:1587: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[256];
data/wiredtiger-3.2.1/src/conn/conn_api.c:2286: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 version[64];
data/wiredtiger-3.2.1/src/cursor/cur_dump.c:372: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.
    const char *cfg[2];
data/wiredtiger-3.2.1/src/cursor/cur_metadata.c:77: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.
    const char *_cfg[5] = {NULL, NULL, NULL, value, NULL};
data/wiredtiger-3.2.1/src/cursor/cur_stat.c:521:5:  [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(&cst->u.session_stats, &session->stats, sizeof(WT_SESSION_STATS));
data/wiredtiger-3.2.1/src/cursor/cur_table.c:62:5:  [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((uint8_t *)key->mem, ikey.data, ikey.size);
data/wiredtiger-3.2.1/src/cursor/cur_table.c:63:5:  [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((uint8_t *)key->mem + ikey.size, pkey.data, pkey.size);
data/wiredtiger-3.2.1/src/include/hardware.h:79: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 __padding[WT_CACHE_LINE_ALIGNMENT]; \
data/wiredtiger-3.2.1/src/include/misc.h:235:14:  [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.
    (((const char *)(str))[0] == ((const char *)(pfx))[0] && strncmp(str, pfx, strlen(pfx)) == 0)
data/wiredtiger-3.2.1/src/include/misc.h:235:42:  [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.
    (((const char *)(str))[0] == ((const char *)(pfx))[0] && strncmp(str, pfx, strlen(pfx)) == 0)
data/wiredtiger-3.2.1/src/include/misc.h:258:14:  [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.
    (((const char *)(str))[0] == ((const char *)(bytes))[0] && strncmp(str, bytes, len) == 0 && \
data/wiredtiger-3.2.1/src/include/misc.h:258:42:  [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.
    (((const char *)(str))[0] == ((const char *)(bytes))[0] && strncmp(str, bytes, len) == 0 && \
data/wiredtiger-3.2.1/src/log/log.c:678:5:  [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(out->mem, in->mem, skip);
data/wiredtiger-3.2.1/src/log/log.c:729:9:  [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((char *)myslot->slot->slot_buf.mem + myslot->offset, record->mem, record->size);
data/wiredtiger-3.2.1/src/log/log.c:2529:13:  [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(citem->mem, record->mem, WT_LOG_COMPRESS_SKIP);
data/wiredtiger-3.2.1/src/lsm/lsm_cursor.c:180:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            goto open;
data/wiredtiger-3.2.1/src/lsm/lsm_cursor.c:197:22:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                goto open;
data/wiredtiger-3.2.1/src/lsm/lsm_cursor.c:243:1:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
open:
data/wiredtiger-3.2.1/src/lsm/lsm_cursor.c:317:9:  [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(tmp->mem, value->data, value->size);
data/wiredtiger-3.2.1/src/lsm/lsm_cursor.c:318:9:  [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((uint8_t *)tmp->mem + value->size, __tombstone.data, 1);
data/wiredtiger-3.2.1/src/lsm/lsm_cursor.c:434: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.
    const char *checkpoint, *ckpt_cfg[3];
data/wiredtiger-3.2.1/src/lsm/lsm_merge.c:338: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.
    const char *cfg[3];
data/wiredtiger-3.2.1/src/lsm/lsm_stat.c:26: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 config[64];
data/wiredtiger-3.2.1/src/lsm/lsm_work_unit.c:48:9:  [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(cookie->chunk_array, old_chunks ? lsm_tree->old_chunks : lsm_tree->chunk,
data/wiredtiger-3.2.1/src/meta/meta_ckpt.c:112: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.
    const char *cfg[3];
data/wiredtiger-3.2.1/src/meta/meta_ckpt.c:407: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 timebuf[64];
data/wiredtiger-3.2.1/src/meta/meta_ckpt.c:430:5:  [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(timebuf, a.str, a.len);
data/wiredtiger-3.2.1/src/meta/meta_ckpt.c:660: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 hex_timestamp[2 * sizeof(wt_timestamp_t) + 2];
data/wiredtiger-3.2.1/src/os_common/os_alloc.c:207:13:  [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(newp, p, bytes_allocated);
data/wiredtiger-3.2.1/src/os_common/os_alloc.c:242:5:  [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(p, str, len);
data/wiredtiger-3.2.1/src/os_common/os_alloc.c:267:5:  [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(p, str, len);
data/wiredtiger-3.2.1/src/os_common/os_fs_inmemory.c:339:9:  [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(buf, (uint8_t *)im_fh->buf.mem + off, len);
data/wiredtiger-3.2.1/src/os_common/os_fs_inmemory.c:411:5:  [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((uint8_t *)im_fh->buf.data + off, buf, len);
data/wiredtiger-3.2.1/src/os_posix/os_fs.c:133:29:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    WT_SYSCALL_RETRY(((fd = open(dir, O_RDONLY | O_CLOEXEC, 0444)) == -1 ? -1 : 0), ret);
data/wiredtiger-3.2.1/src/os_posix/os_fs.c:611:38:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        WT_SYSCALL_RETRY(((pfh->fd = open(name, f, 0444)) == -1 ? -1 : 0), ret);
data/wiredtiger-3.2.1/src/os_posix/os_fs.c:663:34:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    WT_SYSCALL_RETRY(((pfh->fd = open(name, f, mode)) == -1 ? -1 : 0), ret);
data/wiredtiger-3.2.1/src/os_win/os_utf8.c:22:18:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    bufferSize = MultiByteToWideChar(CP_UTF8, 0, utf8, -1, NULL, 0);
data/wiredtiger-3.2.1/src/os_win/os_utf8.c:33:18:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    bufferSize = MultiByteToWideChar(CP_UTF8, 0, utf8, -1, (*outbuf)->mem, bufferSize);
data/wiredtiger-3.2.1/src/reconcile/rec_col.c:98:9:  [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(r->first_free + offset, data, page_size);
data/wiredtiger-3.2.1/src/reconcile/rec_col.c:341:5:  [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(r->first_free, page->pg_fix_bitf, __bitstr_size((size_t)page->entries * btree->bitcnt));
data/wiredtiger-3.2.1/src/reconcile/rec_row.c:944:17:  [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((uint8_t *)tmpkey->mem + tmpkey->size, kpack->data, kpack->size);
data/wiredtiger-3.2.1/src/reconcile/rec_track.c:481:5:  [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(p, addr, addr_size);
data/wiredtiger-3.2.1/src/reconcile/rec_track.c:485:5:  [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(p, value, value_size);
data/wiredtiger-3.2.1/src/reconcile/rec_write.c:1450:9:  [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((uint8_t *)r->prev_ptr->image.mem + prev_ptr->image.size,
data/wiredtiger-3.2.1/src/reconcile/rec_write.c:1484:9:  [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(
data/wiredtiger-3.2.1/src/reconcile/rec_write.c:2552:9:  [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(WT_PAGE_HEADER_BYTE(btree, dsk), kv->buf.data, kv->buf.size);
data/wiredtiger-3.2.1/src/schema/schema_alter.c:22: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.
    const char *cfg[4];
data/wiredtiger-3.2.1/src/schema/schema_create.c:169: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.
    const char **cfgp, *cfg[4] = {WT_CONFIG_BASE(session, colgroup_meta), config, NULL, NULL};
data/wiredtiger-3.2.1/src/schema/schema_create.c:351: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.
    const char *cfg[4] = {WT_CONFIG_BASE(session, index_meta), NULL, NULL, NULL};
data/wiredtiger-3.2.1/src/schema/schema_create.c:540: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.
    const char *cfg[4] = {WT_CONFIG_BASE(session, table_meta), config, NULL, NULL};
data/wiredtiger-3.2.1/src/schema/schema_truncate.c:48: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.
    const char *cfg[2];
data/wiredtiger-3.2.1/src/support/crypto.c:53:5:  [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(out->mem, in->data, skip);
data/wiredtiger-3.2.1/src/support/crypto.c:111:5:  [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(out->mem, in->mem, skip);
data/wiredtiger-3.2.1/src/support/err.c:96: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 s[256];
data/wiredtiger-3.2.1/src/support/err.c:177: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 *p, tid[128];
data/wiredtiger-3.2.1/src/support/err.c:188: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 s[4 * 1024];
data/wiredtiger-3.2.1/src/support/hazard.c:32:5:  [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(nhazard, session->hazard, size * sizeof(WT_HAZARD));
data/wiredtiger-3.2.1/src/support/huffman.c:646:5:  [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(to_buf->mem, tmp->mem, outlen);
data/wiredtiger-3.2.1/src/support/huffman.c:763:5:  [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(to_buf->mem, tmp->mem, outlen);
data/wiredtiger-3.2.1/src/support/modify.c:17:13:  [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(&(mod).data.size, __p++, sizeof(size_t));                   \
data/wiredtiger-3.2.1/src/support/modify.c:18:13:  [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(&(mod).offset, __p++, sizeof(size_t));                      \
data/wiredtiger-3.2.1/src/support/modify.c:19:13:  [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(&(mod).size, __p++, sizeof(size_t));                        \
data/wiredtiger-3.2.1/src/support/modify.c:31:13:  [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(&(mod).size, --__p, sizeof(size_t));               \
data/wiredtiger-3.2.1/src/support/modify.c:32:13:  [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(&(mod).offset, --__p, sizeof(size_t));             \
data/wiredtiger-3.2.1/src/support/modify.c:33:13:  [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(&(mod).data.size, --__p, sizeof(size_t));          \
data/wiredtiger-3.2.1/src/support/modify.c:78:9:  [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(data, entries[i].data.data, entries[i].data.size);
data/wiredtiger-3.2.1/src/support/modify.c:135:9:  [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((uint8_t *)value->data + offset, data, data_size);
data/wiredtiger-3.2.1/src/support/modify.c:146:9:  [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((uint8_t *)value->data + offset, data, data_size);
data/wiredtiger-3.2.1/src/support/modify.c:162:9:  [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((uint8_t *)value->data + offset, data, data_size);
data/wiredtiger-3.2.1/src/support/modify.c:180:9:  [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((uint8_t *)value->data + offset, data, data_size);
data/wiredtiger-3.2.1/src/support/modify.c:238:13:  [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((uint8_t *)value->data + current.offset, current.data.data, current.data.size);
data/wiredtiger-3.2.1/src/support/modify.c:317:9:  [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(to, current.data.data, current.data.size);
data/wiredtiger-3.2.1/src/support/modify.c:347:5:  [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(&tmp, p++, sizeof(size_t));
data/wiredtiger-3.2.1/src/support/scratch.c:55:13:  [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(buf->mem, buf->data, buf->size);
data/wiredtiger-3.2.1/src/txn/txn.c:1527: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 ts_string[5][WT_TS_INT_STRING_SIZE];
data/wiredtiger-3.2.1/src/txn/txn.c:1577: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 ts_string[WT_TS_INT_STRING_SIZE];
data/wiredtiger-3.2.1/src/txn/txn_nsnap.c:188:9:  [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(nsnap->snapshot, txn->snapshot, txn->snapshot_count * sizeof(*nsnap->snapshot));
data/wiredtiger-3.2.1/src/txn/txn_nsnap.c:304:17:  [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(
data/wiredtiger-3.2.1/src/txn/txn_recover.c:364: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 ts_string[WT_TS_INT_STRING_SIZE], *sys_config;
data/wiredtiger-3.2.1/src/txn/txn_timestamp.c:39:15:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        (void)memcpy(hex_timestamp, WT_TS_MAX_HEX_STRING, strlen(WT_TS_MAX_HEX_STRING) + 1);
data/wiredtiger-3.2.1/src/txn/txn_timestamp.c:62: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 ts_string[WT_TS_INT_STRING_SIZE];
data/wiredtiger-3.2.1/src/txn/txn_timestamp.c:432: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 ts_string[2][WT_TS_INT_STRING_SIZE];
data/wiredtiger-3.2.1/src/txn/txn_timestamp.c:603: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 ts_string[2][WT_TS_INT_STRING_SIZE];
data/wiredtiger-3.2.1/src/txn/txn_timestamp.c:655: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 ts_string[2][WT_TS_INT_STRING_SIZE];
data/wiredtiger-3.2.1/src/txn/txn_timestamp.c:761: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 ts_string[2][WT_TS_INT_STRING_SIZE];
data/wiredtiger-3.2.1/src/txn/txn_timestamp.c:824: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 ts_string[2][WT_TS_INT_STRING_SIZE];
data/wiredtiger-3.2.1/src/txn/txn_timestamp.c:883: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 ts_string[2][WT_TS_INT_STRING_SIZE];
data/wiredtiger-3.2.1/src/utilities/util_downgrade.c:19: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 config_str[128], *release;
data/wiredtiger-3.2.1/src/utilities/util_dump.c:85:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    else if ((fp = fopen(ofile, "w")) == NULL)
data/wiredtiger-3.2.1/src/utilities/util_load.c:95: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 **list, **tlist, *uri, config[64];
data/wiredtiger-3.2.1/src/utilities/util_load_json.c:218: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 config[64], *endp, *uri;
data/wiredtiger-3.2.1/src/utilities/util_write.c:20: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 *uri, config[100];
data/wiredtiger-3.2.1/test/bloom/test_bloom.c:75:32:  [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).
            g.c_cache = (u_int)atoi(__wt_optarg);
data/wiredtiger-3.2.1/test/bloom/test_bloom.c:78:33:  [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).
            g.c_factor = (u_int)atoi(__wt_optarg);
data/wiredtiger-3.2.1/test/bloom/test_bloom.c:81:28:  [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).
            g.c_k = (u_int)atoi(__wt_optarg);
data/wiredtiger-3.2.1/test/bloom/test_bloom.c:84:30:  [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).
            g.c_ops = (u_int)atoi(__wt_optarg);
data/wiredtiger-3.2.1/test/bloom/test_bloom.c:106: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 config[512];
data/wiredtiger-3.2.1/test/checkpoint/checkpointer.c:77: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/wiredtiger-3.2.1/test/checkpoint/checkpointer.c: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 tid[128];
data/wiredtiger-3.2.1/test/checkpoint/checkpointer.c:142: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], *checkpoint_config;
data/wiredtiger-3.2.1/test/checkpoint/checkpointer.c:206: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 ckpt_buf[128], next_uri[128];
data/wiredtiger-3.2.1/test/checkpoint/checkpointer.c:309: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], *val1, *val2;
data/wiredtiger-3.2.1/test/checkpoint/checkpointer.c:350: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 ckpt[128], next_uri[128];
data/wiredtiger-3.2.1/test/checkpoint/test_checkpoint.c:83:30:  [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).
            g.nkeys = (u_int)atoi(__wt_optarg);
data/wiredtiger-3.2.1/test/checkpoint/test_checkpoint.c:86:28:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            if ((g.logfp = fopen(__wt_optarg, "w")) == NULL) {
data/wiredtiger-3.2.1/test/checkpoint/test_checkpoint.c:92:29:  [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).
            g.nops = (u_int)atoi(__wt_optarg);
data/wiredtiger-3.2.1/test/checkpoint/test_checkpoint.c:95:20:  [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).
            runs = atoi(__wt_optarg);
data/wiredtiger-3.2.1/test/checkpoint/test_checkpoint.c:119:25:  [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).
            g.ntables = atoi(__wt_optarg);
data/wiredtiger-3.2.1/test/checkpoint/test_checkpoint.c:122:26:  [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).
            g.nworkers = atoi(__wt_optarg);
data/wiredtiger-3.2.1/test/checkpoint/test_checkpoint.c:196: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 config[512];
data/wiredtiger-3.2.1/test/checkpoint/test_checkpoint.h:51: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 uri[128];
data/wiredtiger-3.2.1/test/checkpoint/workers.c:42: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 config[256];
data/wiredtiger-3.2.1/test/checkpoint/workers.c:133: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 valuebuf[64];
data/wiredtiger-3.2.1/test/checkpoint/workers.c:198: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 tid[128];
data/wiredtiger-3.2.1/test/checkpoint/workers.c:221: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/wiredtiger-3.2.1/test/csuite/random_abort/main.c:34: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 home[1024]; /* Program working dir */
data/wiredtiger-3.2.1/test/csuite/random_abort/main.c:83: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[MAX_VAL], kname[64], lgbuf[8];
data/wiredtiger-3.2.1/test/csuite/random_abort/main.c:84: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 large[128 * 1024];
data/wiredtiger-3.2.1/test/csuite/random_abort/main.c:108:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fp = fopen(buf, "w")) == NULL)
data/wiredtiger-3.2.1/test/csuite/random_abort/main.c:161: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 envconf[512];
data/wiredtiger-3.2.1/test/csuite/random_abort/main.c:231: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[1024], fname[64], kname[64];
data/wiredtiger-3.2.1/test/csuite/random_abort/main.c:257:29:  [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).
            nth = (uint32_t)atoi(__wt_optarg);
data/wiredtiger-3.2.1/test/csuite/random_abort/main.c:261:33:  [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).
            timeout = (uint32_t)atoi(__wt_optarg);
data/wiredtiger-3.2.1/test/csuite/random_abort/main.c:372:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if ((fp = fopen(fname, "r")) == NULL)
data/wiredtiger-3.2.1/test/csuite/random_directio/main.c:76: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 home[1024]; /* Program working dir */
data/wiredtiger-3.2.1/test/csuite/random_directio/main.c:258: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 lgbuf[1024 + 20];
data/wiredtiger-3.2.1/test/csuite/random_directio/main.c:301: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 keyid[64];
data/wiredtiger-3.2.1/test/csuite/random_directio/main.c:342: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 uri1[50], uri2[50];
data/wiredtiger-3.2.1/test/csuite/random_directio/main.c:440: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 large[LARGE_WRITE_SIZE];
data/wiredtiger-3.2.1/test/csuite/random_directio/main.c:547: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 envconf[512];
data/wiredtiger-3.2.1/test/csuite/random_directio/main.c:577: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 envconf[512];
data/wiredtiger-3.2.1/test/csuite/random_directio/main.c:702: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 uri[50], uri2[50];
data/wiredtiger-3.2.1/test/csuite/random_directio/main.c:768: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 checkdir[4096], savedir[4096];
data/wiredtiger-3.2.1/test/csuite/random_directio/main.c:1011: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 args[1024], buf[1024];
data/wiredtiger-3.2.1/test/csuite/random_directio/main.c:1044:34:  [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).
            datasize = (uint32_t)atoi(__wt_optarg);
data/wiredtiger-3.2.1/test/csuite/random_directio/main.c:1054:34:  [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).
            interval = (uint32_t)atoi(__wt_optarg);
data/wiredtiger-3.2.1/test/csuite/random_directio/main.c:1065:33:  [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).
            ncycles = (uint32_t)atoi(__wt_optarg);
data/wiredtiger-3.2.1/test/csuite/random_directio/main.c:1101:29:  [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).
            nth = (uint32_t)atoi(__wt_optarg);
data/wiredtiger-3.2.1/test/csuite/random_directio/main.c:1105:33:  [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).
            timeout = (uint32_t)atoi(__wt_optarg);
data/wiredtiger-3.2.1/test/csuite/random_directio/util.c:57: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 fromfile[4096], tofile[4096];
data/wiredtiger-3.2.1/test/csuite/random_directio/util.c:97:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        rfd = open(fromfile, O_RDONLY | openflags, 0);
data/wiredtiger-3.2.1/test/csuite/random_directio/util.c:99:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        wfd = open(tofile, O_WRONLY | O_CREAT, 0666);
data/wiredtiger-3.2.1/test/csuite/schema_abort/main.c:34: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 home[1024]; /* Program working dir */
data/wiredtiger-3.2.1/test/csuite/schema_abort/main.c:230: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 new_uri[64];
data/wiredtiger-3.2.1/test/csuite/schema_abort/main.c:322: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 new_uri[64];
data/wiredtiger-3.2.1/test/csuite/schema_abort/main.c:449: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 tscfg[64];
data/wiredtiger-3.2.1/test/csuite/schema_abort/main.c:566:37:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            testutil_checksys((fp = fopen(ckpt_file, "w")) == NULL);
data/wiredtiger-3.2.1/test/csuite/schema_abort/main.c:588: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 cbuf[MAX_VAL], lbuf[MAX_VAL], obuf[MAX_VAL];
data/wiredtiger-3.2.1/test/csuite/schema_abort/main.c:589: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 kname[64], tscfg[64];
data/wiredtiger-3.2.1/test/csuite/schema_abort/main.c:604:29:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    testutil_checksys((fp = fopen(cbuf, "w")) == NULL);
data/wiredtiger-3.2.1/test/csuite/schema_abort/main.c:785: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 envconf[512];
data/wiredtiger-3.2.1/test/csuite/schema_abort/main.c:912: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[512], statname[1024];
data/wiredtiger-3.2.1/test/csuite/schema_abort/main.c:913: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 fname[64], kname[64];
data/wiredtiger-3.2.1/test/csuite/schema_abort/main.c:945:29:  [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).
            nth = (uint32_t)atoi(__wt_optarg);
data/wiredtiger-3.2.1/test/csuite/schema_abort/main.c:949:33:  [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).
            timeout = (uint32_t)atoi(__wt_optarg);
data/wiredtiger-3.2.1/test/csuite/schema_abort/main.c:1085:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if ((fp = fopen(fname, "r")) == NULL)
data/wiredtiger-3.2.1/test/csuite/scope/main.c:95: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 keybuf[100], valuebuf[100];
data/wiredtiger-3.2.1/test/csuite/timestamp_abort/main.c:34: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 home[1024]; /* Program working dir */
data/wiredtiger-3.2.1/test/csuite/timestamp_abort/main.c: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 tscfg[64], ts_string[WT_TS_HEX_STRING_SIZE];
data/wiredtiger-3.2.1/test/csuite/timestamp_abort/main.c:176: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 ts_string[WT_TS_HEX_STRING_SIZE];
data/wiredtiger-3.2.1/test/csuite/timestamp_abort/main.c:203:37:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            testutil_checksys((fp = fopen(ckpt_file, "w")) == NULL);
data/wiredtiger-3.2.1/test/csuite/timestamp_abort/main.c:225: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 cbuf[MAX_VAL], lbuf[MAX_VAL], obuf[MAX_VAL];
data/wiredtiger-3.2.1/test/csuite/timestamp_abort/main.c:226: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 kname[64], tscfg[64], uri[128];
data/wiredtiger-3.2.1/test/csuite/timestamp_abort/main.c:242:29:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    testutil_checksys((fp = fopen(cbuf, "w")) == NULL);
data/wiredtiger-3.2.1/test/csuite/timestamp_abort/main.c:399: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 envconf[512], uri[128];
data/wiredtiger-3.2.1/test/csuite/timestamp_abort/main.c:531: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[512], fname[64], kname[64], statname[1024];
data/wiredtiger-3.2.1/test/csuite/timestamp_abort/main.c:532: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 ts_string[WT_TS_HEX_STRING_SIZE];
data/wiredtiger-3.2.1/test/csuite/timestamp_abort/main.c:561:29:  [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).
            nth = (uint32_t)atoi(__wt_optarg);
data/wiredtiger-3.2.1/test/csuite/timestamp_abort/main.c:572:33:  [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).
            timeout = (uint32_t)atoi(__wt_optarg);
data/wiredtiger-3.2.1/test/csuite/timestamp_abort/main.c:712:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if ((fp = fopen(fname, "r")) == NULL)
data/wiredtiger-3.2.1/test/csuite/truncated_log/main.c:33: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 home[1024]; /* Program working dir */
data/wiredtiger-3.2.1/test/csuite/truncated_log/main.c:131: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 k[K_SIZE], v[V_SIZE];
data/wiredtiger-3.2.1/test/csuite/truncated_log/main.c:148:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fp = fopen(RECORDS_FILE, "w")) == NULL)
data/wiredtiger-3.2.1/test/csuite/truncated_log/main.c:275:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fp = fopen(RECORDS_FILE, "r")) == NULL)
data/wiredtiger-3.2.1/test/csuite/wt1965_col_efficiency/main.c:109: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 table_format[256];
data/wiredtiger-3.2.1/test/csuite/wt2246_col_append/main.c:53: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[64];
data/wiredtiger-3.2.1/test/csuite/wt2246_col_append/main.c:95: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[100];
data/wiredtiger-3.2.1/test/csuite/wt2323_join_visibility/main.c:63: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 posturi[256];
data/wiredtiger-3.2.1/test/csuite/wt2323_join_visibility/main.c:64: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 baluri[256];
data/wiredtiger-3.2.1/test/csuite/wt2323_join_visibility/main.c:65: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 flaguri[256];
data/wiredtiger-3.2.1/test/csuite/wt2323_join_visibility/main.c:66: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 joinuri[256];
data/wiredtiger-3.2.1/test/csuite/wt2323_join_visibility/main.c:304: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 cfg[128];
data/wiredtiger-3.2.1/test/csuite/wt2447_join_main_table/main.c:91: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 bloom_cfg[128], index1uri[256], index2uri[256], joinuri[256];
data/wiredtiger-3.2.1/test/csuite/wt2592_join_schema/main.c:39: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 country[5];
data/wiredtiger-3.2.1/test/csuite/wt2592_join_schema/main.c:58: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 countryuri[256], joinuri[256], yearuri[256];
data/wiredtiger-3.2.1/test/csuite/wt2695_checksum/main.c:92:5:  [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(data, "123456789", len);
data/wiredtiger-3.2.1/test/csuite/wt2695_checksum/main.c:99:5:  [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(data, "The quick brown fox jumps over the lazy dog", len);
data/wiredtiger-3.2.1/test/csuite/wt2834_join_bloom_fix/main.c:55: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 balanceuri[256];
data/wiredtiger-3.2.1/test/csuite/wt2834_join_bloom_fix/main.c:56: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 cfg[128];
data/wiredtiger-3.2.1/test/csuite/wt2834_join_bloom_fix/main.c:57: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 flaguri[256];
data/wiredtiger-3.2.1/test/csuite/wt2834_join_bloom_fix/main.c:58: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 joinuri[256];
data/wiredtiger-3.2.1/test/csuite/wt2834_join_bloom_fix/main.c:59: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 posturi[256];
data/wiredtiger-3.2.1/test/csuite/wt2853_perf/main.c:58: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 posturi[256];
data/wiredtiger-3.2.1/test/csuite/wt2853_perf/main.c:59: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 baluri[256];
data/wiredtiger-3.2.1/test/csuite/wt2853_perf/main.c:60: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 flaguri[256];
data/wiredtiger-3.2.1/test/csuite/wt2909_checkpoint_integrity/main.c:254: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 value[100];
data/wiredtiger-3.2.1/test/csuite/wt2909_checkpoint_integrity/main.c:295: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 rarg[20], sarg[20], *subtest_args[MAX_ARGS];
data/wiredtiger-3.2.1/test/csuite/wt2909_checkpoint_integrity/main.c:495: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 config[1024], filename[1024];
data/wiredtiger-3.2.1/test/csuite/wt3120_filesys/main.c:42: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 *kstr, *vstr, buf[1024];
data/wiredtiger-3.2.1/test/csuite/wt3135_search_near_collator/main.c:41:15:  [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.
typedef const char *TEST_SET[TEST_ENTRY_COUNT];
data/wiredtiger-3.2.1/test/csuite/wt3338_partial_update/main.c:48: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 modify_repl[MAX_REPL_BYTES * 2]; /* Replacement bytes */
data/wiredtiger-3.2.1/test/csuite/wt3338_partial_update/main.c:108:42:  [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.
          i, (int)entries[i].data.size, (char *)entries[i].data.data, entries[i].data.size,
data/wiredtiger-3.2.1/test/csuite/wt3338_partial_update/main.c:155:13:  [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(tb->mem, ta->mem, ta->size);
data/wiredtiger-3.2.1/test/csuite/wt3338_partial_update/main.c:159:13:  [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(tb->mem, ta->mem, entries[i].offset);
data/wiredtiger-3.2.1/test/csuite/wt3338_partial_update/main.c:164:13:  [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((uint8_t *)tb->mem + tb->size, entries[i].data.data, entries[i].data.size);
data/wiredtiger-3.2.1/test/csuite/wt3338_partial_update/main.c:171:13:  [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((uint8_t *)tb->mem + tb->size, (uint8_t *)ta->mem + len, ta->size - len);
data/wiredtiger-3.2.1/test/csuite/wt3874_pad_byte_collator/main.c:63: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[KEY_SIZE];
data/wiredtiger-3.2.1/test/csuite/wt4117_checksum/main.c:75:5:  [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(data, "123456789", len);
data/wiredtiger-3.2.1/test/csuite/wt4117_checksum/main.c:80:5:  [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(data, "The quick brown fox jumps over the lazy dog", len);
data/wiredtiger-3.2.1/test/csuite/wt4156_metadata_salvage/main.c:123: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 keybuf[100], valuebuf[100];
data/wiredtiger-3.2.1/test/csuite/wt4156_metadata_salvage/main.c:153: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[APP_BUF_SIZE], cfg[APP_MD_SIZE];
data/wiredtiger-3.2.1/test/csuite/wt4156_metadata_salvage/main.c:183: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 path[256];
data/wiredtiger-3.2.1/test/csuite/wt4156_metadata_salvage/main.c:191:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fp = fopen(path, "r+")) == NULL)
data/wiredtiger-3.2.1/test/csuite/wt4156_metadata_salvage/main.c:312: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[1024];
data/wiredtiger-3.2.1/test/csuite/wt4156_metadata_salvage/main.c:346: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[1024];
data/wiredtiger-3.2.1/test/csuite/wt4156_metadata_salvage/main.c:391: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[1024];
data/wiredtiger-3.2.1/test/csuite/wt4156_metadata_salvage/main.c:423: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[1024];
data/wiredtiger-3.2.1/test/csuite/wt4156_metadata_salvage/main.c:464: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[1024];
data/wiredtiger-3.2.1/test/csuite/wt4333_handle_locks/main.c:40: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 *uri_list[750];
data/wiredtiger-3.2.1/test/csuite/wt4333_handle_locks/main.c:48: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/wiredtiger-3.2.1/test/csuite/wt4333_handle_locks/main.c:95: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/wiredtiger-3.2.1/test/csuite/wt4333_handle_locks/main.c:247: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[256], home[256];
data/wiredtiger-3.2.1/test/csuite/wt4699_json/main.c:43: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 projection[1000];
data/wiredtiger-3.2.1/test/csuite/wt4699_json/main.c:67:5:  [2] (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). Risk is low because the
  source is a constant string.
    strcat(projection, "(v1,v0,k)");
data/wiredtiger-3.2.1/test/csuite/wt4699_json/main.c:72:5:  [2] (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). Risk is low because the
  source is a constant string.
    strcat(projection, "(aaa,bbb)");
data/wiredtiger-3.2.1/test/csuite/wt4803_cache_overflow_abort/main.c:83: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[WT_MEGABYTE], open_config[128];
data/wiredtiger-3.2.1/test/cursor_order/cursor_order.c:31: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 home[512]; /* Program working dir */
data/wiredtiger-3.2.1/test/cursor_order/cursor_order.c:85:36:  [2] (integer) atol:
  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).
            cfg->nkeys = (uint64_t)atol(__wt_optarg);
data/wiredtiger-3.2.1/test/cursor_order/cursor_order.c:88:26:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            if ((logfp = fopen(__wt_optarg, "w")) == NULL) {
data/wiredtiger-3.2.1/test/cursor_order/cursor_order.c:94:39:  [2] (integer) atol:
  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).
            cfg->max_nops = (uint64_t)atol(__wt_optarg);
data/wiredtiger-3.2.1/test/cursor_order/cursor_order.c:97:47:  [2] (integer) atol:
  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).
            cfg->reverse_scanners = (uint64_t)atol(__wt_optarg);
data/wiredtiger-3.2.1/test/cursor_order/cursor_order.c:100:20:  [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).
            runs = atoi(__wt_optarg);
data/wiredtiger-3.2.1/test/cursor_order/cursor_order.c:121:47:  [2] (integer) atol:
  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).
            cfg->reverse_scan_ops = (uint64_t)atol(__wt_optarg);
data/wiredtiger-3.2.1/test/cursor_order/cursor_order.c:124:47:  [2] (integer) atol:
  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).
            cfg->append_inserters = (uint64_t)atol(__wt_optarg);
data/wiredtiger-3.2.1/test/cursor_order/cursor_order.c:170: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 config[512];
data/wiredtiger-3.2.1/test/cursor_order/cursor_order_file.c:37: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 config[128];
data/wiredtiger-3.2.1/test/cursor_order/cursor_order_file.c:68: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 keybuf[64], valuebuf[64];
data/wiredtiger-3.2.1/test/cursor_order/cursor_order_ops.c:175:34:  [2] (integer) atol:
  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).
            this_key = (uint64_t)atol(strkey);
data/wiredtiger-3.2.1/test/cursor_order/cursor_order_ops.c:203: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 tid[128];
data/wiredtiger-3.2.1/test/cursor_order/cursor_order_ops.c:239: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 keybuf[64], valuebuf[64];
data/wiredtiger-3.2.1/test/cursor_order/cursor_order_ops.c:278: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 tid[128];
data/wiredtiger-3.2.1/test/fops/file.c:78: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 new_uri[64];
data/wiredtiger-3.2.1/test/fops/file.c:156: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 new_uri[64];
data/wiredtiger-3.2.1/test/fops/t.c:40: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 home[512];
data/wiredtiger-3.2.1/test/fops/t.c:87:26:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            if ((logfp = fopen(__wt_optarg, "w")) == NULL) {
data/wiredtiger-3.2.1/test/fops/t.c:93:27:  [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).
            nops = (u_int)atoi(__wt_optarg);
data/wiredtiger-3.2.1/test/fops/t.c:96:20:  [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).
            runs = atoi(__wt_optarg);
data/wiredtiger-3.2.1/test/fops/t.c:99:31:  [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).
            nthreads = (u_int)atoi(__wt_optarg);
data/wiredtiger-3.2.1/test/fops/t.c:148: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 config_buf[128];
data/wiredtiger-3.2.1/test/huge/huge.c:31: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 home[512]; /* Program working dir */
data/wiredtiger-3.2.1/test/manydbs/manydbs.c:33: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 home[HOME_SIZE];    /* Base home directory */
data/wiredtiger-3.2.1/test/manydbs/manydbs.c:34: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 hometmp[HOME_SIZE]; /* Each conn home directory */
data/wiredtiger-3.2.1/test/manydbs/manydbs.c:124: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 cmd[128];
data/wiredtiger-3.2.1/test/manydbs/manydbs.c:136:19:  [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).
            dbs = atoi(__wt_optarg);
data/wiredtiger-3.2.1/test/readonly/readonly.c:34: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 home[HOME_SIZE];       /* Program working dir lock file */
data/wiredtiger-3.2.1/test/readonly/readonly.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 home_wr[HOME_SIZE + sizeof(HOME_WR_SUFFIX)];
data/wiredtiger-3.2.1/test/readonly/readonly.c:38: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 home_rd[HOME_SIZE + sizeof(HOME_RD_SUFFIX)];
data/wiredtiger-3.2.1/test/readonly/readonly.c:40: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 home_rd2[HOME_SIZE + sizeof(HOME_RD2_SUFFIX)];
data/wiredtiger-3.2.1/test/readonly/readonly.c:159: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 cmd[512];
data/wiredtiger-3.2.1/test/utility/misc.c:167:48:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        testutil_checksys((opts->progress_fp = fopen(opts->progress_file_name, "w")) == NULL);
data/wiredtiger-3.2.1/test/utility/misc.c:334:5:  [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(p, str, len);
data/wiredtiger-3.2.1/test/utility/test_util.h:178:18:  [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 const char hundred_lookup[201] =
data/wiredtiger-3.2.1/test/utility/thread.c:44: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[64];
data/wiredtiger-3.2.1/test/utility/thread.c:166: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 new_uri[64];
data/wiredtiger-3.2.1/test/utility/thread.c:278: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 new_uri[64];
data/wiredtiger-3.2.1/bench/workgen/workgen.cxx:191:13:  [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(p) <= 70)
data/wiredtiger-3.2.1/bench/workgen/workgen.cxx:328:13:  [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(waitusecs);
data/wiredtiger-3.2.1/bench/workgen/workgen.cxx:344:50:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        uint64_t cur_reads = (uint64_t)(interval.read.ops / interval_secs);
data/wiredtiger-3.2.1/bench/workgen/workgen.cxx:357:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                << "," << interval.read.average_latency()
data/wiredtiger-3.2.1/bench/workgen/workgen.cxx:358:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                << "," << interval.read.min_latency
data/wiredtiger-3.2.1/bench/workgen/workgen.cxx:359:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                << "," << interval.read.max_latency
data/wiredtiger-3.2.1/bench/workgen/workgen.cxx:402:49:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            TRACK_JSON(*_json, "read", interval.read, percentiles, "");
data/wiredtiger-3.2.1/bench/workgen/workgen.cxx:413:38:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        uint64_t read_max = interval.read.max_latency;
data/wiredtiger-3.2.1/bench/workgen/workgen.cxx:414:40:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        uint64_t insert_max = interval.read.max_latency;
data/wiredtiger-3.2.1/bench/workgen/workgen.cxx:415:40:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        uint64_t update_max = interval.read.max_latency;
data/wiredtiger-3.2.1/bench/workgen/workgen.cxx:772:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        track = &_stats.read;
data/wiredtiger-3.2.1/bench/workgen/workgen.cxx:985:17:  [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((useconds_t)ms_to_us(sleep_ms));
data/wiredtiger-3.2.1/bench/workgen/workgen.cxx:1240:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            stats.read.ops += multiplier;
data/wiredtiger-3.2.1/bench/workgen/workgen.cxx:1432:13:  [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(sleep_us);
data/wiredtiger-3.2.1/bench/workgen/workgen.cxx:1703:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    not_found(latency), read(latency), remove(latency), update(latency),
data/wiredtiger-3.2.1/bench/workgen/workgen.cxx:1708:55:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    insert(other.insert), not_found(other.not_found), read(other.read),
data/wiredtiger-3.2.1/bench/workgen/workgen.cxx:1708:66:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    insert(other.insert), not_found(other.not_found), read(other.read),
data/wiredtiger-3.2.1/bench/workgen/workgen.cxx:1718:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read.add(other.read, reset);
data/wiredtiger-3.2.1/bench/workgen/workgen.cxx:1718:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read.add(other.read, reset);
data/wiredtiger-3.2.1/bench/workgen/workgen.cxx:1728:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read.assign(other.read);
data/wiredtiger-3.2.1/bench/workgen/workgen.cxx:1728:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read.assign(other.read);
data/wiredtiger-3.2.1/bench/workgen/workgen.cxx:1738:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read.clear();
data/wiredtiger-3.2.1/bench/workgen/workgen.cxx:1745:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    os << "Stats: reads " << read.ops;
data/wiredtiger-3.2.1/bench/workgen/workgen.cxx:1759:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ops += read.ops;
data/wiredtiger-3.2.1/bench/workgen/workgen.cxx:1771:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    FINAL_OUTPUT(os, read.ops, read, ops, totalsecs);
data/wiredtiger-3.2.1/bench/workgen/workgen.cxx:1771:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    FINAL_OUTPUT(os, read.ops, read, ops, totalsecs);
data/wiredtiger-3.2.1/bench/workgen/workgen.cxx:1781:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    os << read.ops << " reads";
data/wiredtiger-3.2.1/bench/workgen/workgen.cxx:1796:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read.subtract(other.read);
data/wiredtiger-3.2.1/bench/workgen/workgen.cxx:1796:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read.subtract(other.read);
data/wiredtiger-3.2.1/bench/workgen/workgen.cxx:1806:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read.track_latency(latency);
data/wiredtiger-3.2.1/bench/workgen/workgen.cxx:2119:13:  [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((useconds_t)((sleep_amt.tv_nsec + 999)/ 1000));
data/wiredtiger-3.2.1/bench/workgen/workgen.h:133:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    Track read;
data/wiredtiger-3.2.1/bench/workgen/workgen_func.c:97: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).
    prefix_len = strlen(WORKGEN_VERSION_PREFIX);
data/wiredtiger-3.2.1/bench/workgen/workgen_func.c:98:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    (void)strncpy(buf, WORKGEN_VERSION_PREFIX, len);
data/wiredtiger-3.2.1/bench/workgen/workgen_func.c:100:15:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        (void)strncpy(&buf[prefix_len], WIREDTIGER_VERSION_STRING, len - prefix_len);
data/wiredtiger-3.2.1/bench/wtperf/config.c:344:61:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          (workp->insert > 0 || workp->modify > 0 || workp->read > 0 || workp->update > 0))
data/wiredtiger-3.2.1/bench/wtperf/config.c:385:13:  [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(config_opts_desc[i].name) == k->len &&
data/wiredtiger-3.2.1/bench/wtperf/config.c:461:22:  [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).
            newlen = strlen(*strp) + v->len + strlen(",") + 1;
data/wiredtiger-3.2.1/bench/wtperf/config.c:461:47:  [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).
            newlen = strlen(*strp) + v->len + strlen(",") + 1;
data/wiredtiger-3.2.1/bench/wtperf/config.c:639:11:  [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).
    len = strlen(optstr);
data/wiredtiger-3.2.1/bench/wtperf/config.c:673:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(config_line->string + pos, k.str, k.len);
data/wiredtiger-3.2.1/bench/wtperf/config.c:685:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(config_line->string + pos, v.str, v.len);
data/wiredtiger-3.2.1/bench/wtperf/config.c:714:11:  [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).
    len = strlen(name) + strlen(value) + 4;
data/wiredtiger-3.2.1/bench/wtperf/config.c:714:26:  [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).
    len = strlen(name) + strlen(value) + 4;
data/wiredtiger-3.2.1/bench/wtperf/config.c:869:42:  [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).
                    concat_str = dmalloc(strlen(conf_line->string) + strlen(val_pointer) + 1);
data/wiredtiger-3.2.1/bench/wtperf/config.c:869:70:  [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).
                    concat_str = dmalloc(strlen(conf_line->string) + strlen(val_pointer) + 1);
data/wiredtiger-3.2.1/bench/wtperf/config.c:871:32:  [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).
                    concat_str[strlen(concat_str) - 1] = ',';
data/wiredtiger-3.2.1/bench/wtperf/config.c:966:53:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
              workp->threads, workp->insert, workp->read, workp->update, workp->truncate);
data/wiredtiger-3.2.1/bench/wtperf/config.c:1002:13:  [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(p) <= 70)
data/wiredtiger-3.2.1/bench/wtperf/misc.c:46:11:  [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).
    len = strlen(wtperf->monitor_dir) + strlen(opts->table_name) + strlen(".stat") + 2;
data/wiredtiger-3.2.1/bench/wtperf/misc.c:46:41:  [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).
    len = strlen(wtperf->monitor_dir) + strlen(opts->table_name) + strlen(".stat") + 2;
data/wiredtiger-3.2.1/bench/wtperf/misc.c:46:68:  [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).
    len = strlen(wtperf->monitor_dir) + strlen(opts->table_name) + strlen(".stat") + 2;
data/wiredtiger-3.2.1/bench/wtperf/track.c:128:53:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return (sum_ops(wtperf, offsetof(WTPERF_THREAD, read)));
data/wiredtiger-3.2.1/bench/wtperf/track.c:239:48:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    latency_op(wtperf, offsetof(WTPERF_THREAD, read), avgp, minp, maxp);
data/wiredtiger-3.2.1/bench/wtperf/track.c:322:49:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    sum_latency(wtperf, offsetof(WTPERF_THREAD, read), total);
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:152: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).
    len = (int64_t)strlen(value);
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:209:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        trk = &thread->read;
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:374:19:  [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.
            (void)usleep(10000);
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:620:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                trk = &thread->read;
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:706:23:  [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.
                (void)usleep(1000);
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:720:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(value_buf, value, opts->value_sz_max - 1);
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:753:29:  [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).
                value_len = strlen(value);
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:794:29:  [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).
                newv.size = strlen(value_buf);
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:990:64:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (workp->insert != 0 || workp->modify != 0 || workp->read != 0 || workp->update != 0) {
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:1240:19:  [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.
            (void)usleep(10000);
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:1324:11:  [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).
    len = strlen(wtperf->monitor_dir) + 100;
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:1714:15:  [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.
        (void)usleep(10000);
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:1781:23:  [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.
                (void)usleep(10000);
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:1910:71:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          i + 1, workp->threads, workp->insert, workp->modify, workp->read, workp->truncate,
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:2072:11:  [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).
    len = strlen("table:") + strlen(opts->table_name) + 20;
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:2072:30:  [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).
    len = strlen("table:") + strlen(opts->table_name) + 20;
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:2084:11:  [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).
    len = strlen("table:") + strlen(opts->table_name) + strlen("_log_table") + 1;
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:2084:30:  [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).
    len = strlen("table:") + strlen(opts->table_name) + strlen("_log_table") + 1;
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:2084:57:  [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).
    len = strlen("table:") + strlen(opts->table_name) + strlen("_log_table") + 1;
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:2133:77:  [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).
              __wt_snprintf(buf, 512, "index:%s:val_idx", wtperf->uris[i] + strlen("table:")));
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:2314:15:  [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).
        len = strlen(wtperf->home) + 5;
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:2320:15:  [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).
        len = strlen(wtperf->monitor_dir) + 5;
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:2563:42:  [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).
                  drealloc(user_cconfig, strlen(user_cconfig) + strlen(__wt_optarg) + 2);
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:2563:65:  [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).
                  drealloc(user_cconfig, strlen(user_cconfig) + strlen(__wt_optarg) + 2);
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:2564:17:  [1] (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). Risk is low because the
  source is a constant character.
                strcat(user_cconfig, ",");
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:2585:42:  [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).
                  drealloc(user_tconfig, strlen(user_tconfig) + strlen(__wt_optarg) + 2);
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:2585:65:  [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).
                  drealloc(user_tconfig, strlen(user_tconfig) + strlen(__wt_optarg) + 2);
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:2586:17:  [1] (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). Risk is low because the
  source is a constant character.
                strcat(user_tconfig, ",");
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:2644:19:  [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).
        req_len = strlen(",async=(enabled=true,threads=)") + 4;
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:2671: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).
        req_len += wtperf->async_config != NULL ? strlen(wtperf->async_config) : 0;
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:2672: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).
        req_len += wtperf->compress_ext != NULL ? strlen(wtperf->compress_ext) : 0;
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:2674:24:  [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).
            sreq_len = strlen("session_max=") + 6;
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:2680:38:  [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).
        req_len += opts->in_memory ? strlen("in_memory=true") : 0;
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:2681:43:  [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).
        req_len += user_cconfig != NULL ? strlen(user_cconfig) : 0;
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:2686:45:  [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 (wtperf->async_config != NULL && strlen(wtperf->async_config) != 0) {
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:2691:45:  [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 (wtperf->compress_ext != NULL && strlen(wtperf->compress_ext) != 0) {
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:2701:33:  [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 (sess_cfg != NULL && strlen(sess_cfg) != 0) {
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:2706:37:  [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 (user_cconfig != NULL && strlen(user_cconfig) != 0) {
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:2711:13:  [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(cc_buf) != 0 &&
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:2717:53:  [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).
        req_len += wtperf->compress_table != NULL ? strlen(wtperf->compress_table) : 0;
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:2718:34:  [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).
        req_len += opts->index ? strlen(INDEX_COL_NAMES) : 0;
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:2719:43:  [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).
        req_len += user_tconfig != NULL ? strlen(user_tconfig) : 0;
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:2724:47:  [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 (wtperf->compress_table != NULL && strlen(wtperf->compress_table) != 0) {
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:2734:37:  [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 (user_tconfig != NULL && strlen(user_tconfig) != 0) {
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:2739:13:  [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(tc_buf) != 0 &&
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:2744:19:  [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).
        req_len = strlen(opts->table_config) + strlen(LOG_PARTIAL_CONFIG) + 1;
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:2744:48:  [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).
        req_len = strlen(opts->table_config) + strlen(LOG_PARTIAL_CONFIG) + 1;
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:2754:19:  [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).
        req_len = strlen(opts->conn_config) + strlen(READONLY_CONFIG) + 1;
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:2754:47:  [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).
        req_len = strlen(opts->conn_config) + strlen(READONLY_CONFIG) + 1;
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:2756:19:  [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).
        req_len = strlen(opts->conn_config) + 1;
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:2773:15:  [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).
    req_len = strlen(wtperf->home) + strlen("/CONFIG.wtperf") + 1;
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:2773:38:  [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).
    req_len = strlen(wtperf->home) + strlen("/CONFIG.wtperf") + 1;
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:2844:48:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          thread->modify.min_latency = thread->read.min_latency = thread->update.min_latency =
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:2847:48:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          thread->modify.max_latency = thread->read.max_latency = thread->update.max_latency = 0;
data/wiredtiger-3.2.1/bench/wtperf/wtperf.c:2885:11:  [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).
    len = strlen(name) * 2 + 100;
data/wiredtiger-3.2.1/bench/wtperf/wtperf.h:64:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int64_t read;      /* Read ratio */
data/wiredtiger-3.2.1/bench/wtperf/wtperf.h:254:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    TRACK read;           /* Read operations */
data/wiredtiger-3.2.1/bench/wtperf/wtperf_throttle.c:94:15:  [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.
        (void)usleep((useconds_t)(throttle_cfg->usecs_increment - usecs_delta));
data/wiredtiger-3.2.1/examples/c/ex_all.c:199:22:  [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).
        value.size = strlen("another value");
data/wiredtiger-3.2.1/examples/c/ex_all.c:238:17:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
            int equal;
data/wiredtiger-3.2.1/examples/c/ex_all.c:239:56:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
            error_check(cursor->equals(cursor, other, &equal));
data/wiredtiger-3.2.1/examples/c/ex_all.c:240:17:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
            if (equal) {
data/wiredtiger-3.2.1/examples/c/ex_all.c:313:22:  [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).
        value.size = strlen(value.data);
data/wiredtiger-3.2.1/examples/c/ex_all.c:332:32:  [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).
        entries[0].data.size = strlen(entries[0].data.data);
data/wiredtiger-3.2.1/examples/c/ex_all.c:338:32:  [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).
        entries[1].data.size = strlen(entries[1].data.data);
data/wiredtiger-3.2.1/examples/c/ex_all.c:344:32:  [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).
        entries[2].data.size = strlen(entries[2].data.data);
data/wiredtiger-3.2.1/examples/c/ex_all.c:1308:21:  [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).
        prev.size = strlen(prev.data);
data/wiredtiger-3.2.1/examples/c/ex_all.c:1315:21:  [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).
        newv.size = strlen(newv.data);
data/wiredtiger-3.2.1/examples/c/ex_all.c:1322:22:  [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).
        size_t len = strlen(buffer);
data/wiredtiger-3.2.1/examples/c/ex_config_parse.c:50:62:  [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).
          wiredtiger_config_parser_open(NULL, config_string, strlen(config_string), &parser));
data/wiredtiger-3.2.1/examples/c/ex_config_parse.c:55:62:  [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).
          wiredtiger_config_parser_open(NULL, config_string, strlen(config_string), &parser));
data/wiredtiger-3.2.1/examples/c/ex_config_parse.c:73:66:  [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).
              wiredtiger_config_parser_open(NULL, config_string, strlen(config_string), &parser));
data/wiredtiger-3.2.1/examples/c/ex_config_parse.c:91:62:  [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).
          wiredtiger_config_parser_open(NULL, config_string, strlen(config_string), &parser));
data/wiredtiger-3.2.1/examples/c/ex_config_parse.c:105:62:  [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).
          wiredtiger_config_parser_open(NULL, config_string, strlen(config_string), &parser));
data/wiredtiger-3.2.1/examples/c/ex_encrypt.c:50:6:  [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).
    (strlen(s) == (config_item).len && strncmp((config_item).str, s, (config_item).len) == 0)
data/wiredtiger-3.2.1/examples/c/ex_encrypt.c:258:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(my_crypto->keyid, keyid.str, keyid.len + 1);
data/wiredtiger-3.2.1/examples/c/ex_encrypt.c:268:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(my_crypto->password, secret.str, secret.len + 1);
data/wiredtiger-3.2.1/examples/c/ex_file_system.c:384:11:  [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).
    len = strlen(directory);
data/wiredtiger-3.2.1/examples/c/ex_file_system.c:385:39:  [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).
    prefix_len = prefix == NULL ? 0 : strlen(prefix);
data/wiredtiger-3.2.1/ext/encryptors/rotn/rotn_encrypt.c:329:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(rotn_encryptor->keyid, keyid.str, keyid.len + 1);
data/wiredtiger-3.2.1/ext/encryptors/rotn/rotn_encrypt.c:360:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(rotn_encryptor->secretkey, secret.str, secret.len + 1);
data/wiredtiger-3.2.1/ext/extractors/csv/csv_extractor.c:102:24:  [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).
            pend = p + strlen(p);
data/wiredtiger-3.2.1/ext/extractors/csv/csv_extractor.c:110:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(copy, p, len);
data/wiredtiger-3.2.1/ext/test/fail_fs/fail_fs.c:413:11:  [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).
    len = strlen(directory);
data/wiredtiger-3.2.1/ext/test/fail_fs/fail_fs.c:414:39:  [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).
    prefix_len = prefix == NULL ? 0 : strlen(prefix);
data/wiredtiger-3.2.1/lang/python/wiredtiger_wrap.c:393:25:  [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).
  const char* te = tb + strlen(tb);
data/wiredtiger-3.2.1/lang/python/wiredtiger_wrap.c:677:7:  [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(name) + 1 > (bsz - (r - buff))) return 0;
data/wiredtiger-3.2.1/lang/python/wiredtiger_wrap.c:698:26:  [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).
  size_t lname = (name ? strlen(name) : 0);
data/wiredtiger-3.2.1/lang/python/wiredtiger_wrap.c:703:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(r,name,lname+1);
data/wiredtiger-3.2.1/lang/python/wiredtiger_wrap.c:867:91:  [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).
#  define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
data/wiredtiger-3.2.1/lang/python/wiredtiger_wrap.c:3170:48:  [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).
  return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
data/wiredtiger-3.2.1/lang/python/wiredtiger_wrap.c:3277:30:  [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 (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0;
data/wiredtiger-3.2.1/lang/python/wiredtiger_wrap.c:3488:13:  [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).
			*sizep = strlen(k);
data/wiredtiger-3.2.1/lang/python/wiredtiger_wrap.c:3514:13:  [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).
			*sizep = strlen(k);
data/wiredtiger-3.2.1/lang/python/wiredtiger_wrap.c:3793:13:  [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).
			*sizep = strlen((char *)data) + 1;
data/wiredtiger-3.2.1/lang/python/wiredtiger_wrap.c:3818:11:  [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).
	msglen = strlen(message);
data/wiredtiger-3.2.1/lang/python/wiredtiger_wrap.c:3821:2:  [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(&msg[msglen], "\n");
data/wiredtiger-3.2.1/lang/python/wiredtiger_wrap.c:10779:21:  [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).
      size_t size = strlen(name)+1;
data/wiredtiger-3.2.1/lang/python/wiredtiger_wrap.c:10782:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(gv->name,name,size);
data/wiredtiger-3.2.1/lang/python/wiredtiger_wrap.c:10846:15:  [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).
              strlen(const_table[j].name)) == 0) {
data/wiredtiger-3.2.1/lang/python/wiredtiger_wrap.c:10857:27:  [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).
            size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
data/wiredtiger-3.2.1/lang/python/wiredtiger_wrap.c:10861:15:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
              strncpy(buff, methods[i].ml_doc, ldoc);
data/wiredtiger-3.2.1/lang/python/wiredtiger_wrap.c:10863:15:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
              strncpy(buff, "swig_ptr: ", 10);
data/wiredtiger-3.2.1/src/async/async_api.c:32:42:  [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).
        uri_hash = __wt_hash_city64(uri, strlen(uri));
data/wiredtiger-3.2.1/src/async/async_api.c:36:45:  [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).
        cfg_hash = __wt_hash_city64(config, strlen(config));
data/wiredtiger-3.2.1/src/block/block_ckpt_scan.c:100:11:  [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).
    len = strlen(ckpt->block_metadata);
data/wiredtiger-3.2.1/src/block/block_ckpt_scan.c:115:11:  [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).
    len = strlen(ckpt->block_checkpoint);
data/wiredtiger-3.2.1/src/block/block_ext.c:1286:27:  [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).
      (name == NULL ? 0 : strlen(name)) + strlen(".") + (extname == NULL ? 0 : strlen(extname) + 1);
data/wiredtiger-3.2.1/src/block/block_ext.c:1286:43:  [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).
      (name == NULL ? 0 : strlen(name)) + strlen(".") + (extname == NULL ? 0 : strlen(extname) + 1);
data/wiredtiger-3.2.1/src/block/block_ext.c:1286:80:  [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).
      (name == NULL ? 0 : strlen(name)) + strlen(".") + (extname == NULL ? 0 : strlen(extname) + 1);
data/wiredtiger-3.2.1/src/block/block_open.c:150:39:  [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).
    hash = __wt_hash_city64(filename, strlen(filename));
data/wiredtiger-3.2.1/src/bloom/bloom.c:34:11:  [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).
    len = strlen(WT_BLOOM_TABLE_CONFIG) + 2;
data/wiredtiger-3.2.1/src/bloom/bloom.c:36:16:  [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).
        len += strlen(config);
data/wiredtiger-3.2.1/src/btree/bt_debug.c:343:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    WT_ERR(bm->read(bm, session, buf, addr, addr_size));
data/wiredtiger-3.2.1/src/btree/bt_debug.c:1364:50:  [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).
        return (__debug_item(ds, tag, "deleted", strlen("deleted")));
data/wiredtiger-3.2.1/src/btree/bt_debug.c:1381:42:  [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).
        return (__debug_item(ds, tag, p, strlen(p)));
data/wiredtiger-3.2.1/src/btree/bt_huffman.c:150:15:  [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).
        len = strlen("utf8");
data/wiredtiger-3.2.1/src/btree/bt_huffman.c:152:15:  [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).
        len = strlen("utf16");
data/wiredtiger-3.2.1/src/btree/bt_io.c:38:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        WT_RET(bm->read(bm, session, buf, addr, addr_size));
data/wiredtiger-3.2.1/src/btree/bt_io.c:43:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        WT_ERR(bm->read(bm, session, tmp, addr, addr_size));
data/wiredtiger-3.2.1/src/btree/bt_misc.c:100:21:  [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).
        buf->size = strlen("[Root]");
data/wiredtiger-3.2.1/src/btree/bt_misc.c:122:21:  [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).
        buf->size = strlen("[NoAddr]");
data/wiredtiger-3.2.1/src/btree/bt_misc.c:126:21:  [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).
        buf->size = strlen("[Error]");
data/wiredtiger-3.2.1/src/btree/bt_read.c:616:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            goto read;
data/wiredtiger-3.2.1/src/btree/bt_read.c:630:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            goto read;
data/wiredtiger-3.2.1/src/btree/bt_read.c:635:1:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
read:
data/wiredtiger-3.2.1/src/btree/bt_read.c:713:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                goto read;
data/wiredtiger-3.2.1/src/config/config.c:46:31:  [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).
    len = (str == NULL) ? 0 : strlen(str);
data/wiredtiger-3.2.1/src/config/config.c:596:37:  [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).
    WT_CONFIG_ITEM key_item = {key, strlen(key), 0, WT_CONFIG_ITEM_STRING};
data/wiredtiger-3.2.1/src/config/config.c:639:37:  [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).
    WT_CONFIG_ITEM key_item = {key, strlen(key), 0, WT_CONFIG_ITEM_STRING};
data/wiredtiger-3.2.1/src/config/config.c:727:37:  [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).
    WT_CONFIG_ITEM key_item = {key, strlen(key), 0, WT_CONFIG_ITEM_STRING};
data/wiredtiger-3.2.1/src/config/config_api.c:263:11:  [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).
    len = strlen((*epp)->base) + strlen(",") + strlen(config) + 1;
data/wiredtiger-3.2.1/src/config/config_api.c:263:34:  [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).
    len = strlen((*epp)->base) + strlen(",") + strlen(config) + 1;
data/wiredtiger-3.2.1/src/config/config_api.c:263:48:  [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).
    len = strlen((*epp)->base) + strlen(",") + strlen(config) + 1;
data/wiredtiger-3.2.1/src/config/config_check.c:105:23:  [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).
              k.str + strlen(checks[i].name) + 1, v.len);
data/wiredtiger-3.2.1/src/config/config_collapse.c:127:39:  [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 (vtmp.len == 0 && v.len == strlen("none") && WT_STRING_MATCH("none", v.str, v.len))
data/wiredtiger-3.2.1/src/config/config_collapse.c:304:16:  [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).
        len1 = strlen(ep->k);
data/wiredtiger-3.2.1/src/config/config_collapse.c:310: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).
            len2 = strlen((ep + 1)->k);
data/wiredtiger-3.2.1/src/config/config_ext.c:84:15:  [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).
        len = strlen(p);
data/wiredtiger-3.2.1/src/conn/conn_api.c:1697:29:  [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 ((size_t)size != strlen(WT_SINGLETHREAD_STRING))
data/wiredtiger-3.2.1/src/conn/conn_api.c:1698:68:  [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).
            WT_ERR(__wt_write(session, conn->lock_fh, (wt_off_t)0, strlen(WT_SINGLETHREAD_STRING),
data/wiredtiger-3.2.1/src/conn/conn_capacity.c:313:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        capacity = cap->read;
data/wiredtiger-3.2.1/src/conn/conn_capacity.c:373:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            steal_capacity = cap->read;
data/wiredtiger-3.2.1/src/conn/conn_dhandle.c:151:48:  [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).
    dhandle->name_hash = __wt_hash_city64(uri, strlen(uri));
data/wiredtiger-3.2.1/src/conn/conn_dhandle.c:198:36:  [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).
    bucket = __wt_hash_city64(uri, strlen(uri)) % WT_HASH_ARRAY_SIZE;
data/wiredtiger-3.2.1/src/conn/conn_dhandle.c:533:40:  [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).
        bucket = __wt_hash_city64(uri, strlen(uri)) % WT_HASH_ARRAY_SIZE;
data/wiredtiger-3.2.1/src/conn/conn_dhandle.c:632:36:  [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).
    bucket = __wt_hash_city64(uri, strlen(uri)) % WT_HASH_ARRAY_SIZE;
data/wiredtiger-3.2.1/src/conn/conn_stat.c:549:36:  [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).
    WT_RET(__wt_scr_alloc(session, strlen(conn->stat_path) + 128, &tmp));
data/wiredtiger-3.2.1/src/conn/conn_stat.c:593:42:  [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).
    WT_ERR(__wt_buf_init(session, &path, strlen(conn->stat_path) + 128));
data/wiredtiger-3.2.1/src/conn/conn_stat.c:595:41:  [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).
    WT_ERR(__wt_buf_init(session, &tmp, strlen(conn->stat_path) + 128));
data/wiredtiger-3.2.1/src/cursor/cur_backup.c:38:26:  [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).
    cb->iface.key.size = strlen(cb->list[cb->next]) + 1;
data/wiredtiger-3.2.1/src/cursor/cur_backup.c:565:17:  [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).
        name += strlen("file:");
data/wiredtiger-3.2.1/src/cursor/cur_index.c:471: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).
        namesize = strlen(idxname);
data/wiredtiger-3.2.1/src/cursor/cur_index.c:507:62:  [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).
        WT_ERR(__wt_struct_reformat(session, table, columns, strlen(columns), NULL, false, tmp));
data/wiredtiger-3.2.1/src/cursor/cur_index.c:511:58:  [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).
        WT_ERR(__wt_struct_plan(session, table, columns, strlen(columns), false, tmp));
data/wiredtiger-3.2.1/src/cursor/cur_join.c:181:16:  [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).
        size = strlen(to_dup->internal_uri) + 3;
data/wiredtiger-3.2.1/src/cursor/cur_join.c:756:16:  [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).
        size = strlen(cjoin->table->iface.name) + 3;
data/wiredtiger-3.2.1/src/cursor/cur_join.c:895:16:  [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).
        size = strlen(urimain) + strlen(proj) + 1;
data/wiredtiger-3.2.1/src/cursor/cur_join.c:895:34:  [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).
        size = strlen(urimain) + strlen(proj) + 1;
data/wiredtiger-3.2.1/src/cursor/cur_join.c:1084:15:  [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).
    newsize = strlen(cjoin->table->iface.name) + idx->colconf.len + 1;
data/wiredtiger-3.2.1/src/cursor/cur_join.c:1095:15:  [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).
        len = strlen(entry->main->value_format) + 3;
data/wiredtiger-3.2.1/src/cursor/cur_join.c:1246:16:  [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).
        size = strlen(tablename);
data/wiredtiger-3.2.1/src/cursor/cur_join.c:1263:62:  [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).
        WT_ERR(__wt_struct_reformat(session, table, columns, strlen(columns), NULL, false, tmp));
data/wiredtiger-3.2.1/src/cursor/cur_join.c:1434:19:  [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).
            len = strlen(cindex->iface.key_format) + 3;
data/wiredtiger-3.2.1/src/cursor/cur_json.c:238:13:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
            strncat((char *)jbuf, ",\n", jbufsize);
data/wiredtiger-3.2.1/src/cursor/cur_json.c:403:15:  [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).
        len = strlen(lparen) - 1;
data/wiredtiger-3.2.1/src/cursor/cur_json.c:424:25:  [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).
        size_t _kwlen = strlen(keyword);                                                    \
data/wiredtiger-3.2.1/src/cursor/cur_metadata.c:151:56:  [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).
        WT_ERR(__wt_buf_set(session, &c->value, value, strlen(value) + 1));
data/wiredtiger-3.2.1/src/cursor/cur_stat.c:476:11:  [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).
    len = strlen("join: ") + strlen(sgrp->desc_prefix) + strlen(static_desc) + 1;
data/wiredtiger-3.2.1/src/cursor/cur_stat.c:476:30:  [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).
    len = strlen("join: ") + strlen(sgrp->desc_prefix) + strlen(static_desc) + 1;
data/wiredtiger-3.2.1/src/cursor/cur_stat.c:476:58:  [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).
    len = strlen("join: ") + strlen(sgrp->desc_prefix) + strlen(static_desc) + 1;
data/wiredtiger-3.2.1/src/cursor/cur_stat.c:546:22:  [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).
    dsrc_uri = uri + strlen("statistics:");
data/wiredtiger-3.2.1/src/cursor/cur_std.c:144:41:  [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 (cursor->value_format != NULL && strlen(cursor->value_format) != 0) {
data/wiredtiger-3.2.1/src/cursor/cur_std.c:421: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).
            sz = strlen(str) + 1;
data/wiredtiger-3.2.1/src/cursor/cur_std.c:557: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).
        sz = strlen(str) + 1;
data/wiredtiger-3.2.1/src/cursor/cur_std.c:624:58:  [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).
        cursor->uri_hash = __wt_hash_city64(cursor->uri, strlen(cursor->uri));
data/wiredtiger-3.2.1/src/cursor/cur_std.c:774:44:  [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).
        hash_value = __wt_hash_city64(uri, strlen(uri));
data/wiredtiger-3.2.1/src/cursor/cur_table.c:997:62:  [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).
        WT_ERR(__wt_struct_reformat(session, table, columns, strlen(columns), NULL, false, tmp));
data/wiredtiger-3.2.1/src/cursor/cur_table.c:1001:58:  [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).
        WT_ERR(__wt_struct_plan(session, table, columns, strlen(columns), false, tmp));
data/wiredtiger-3.2.1/src/include/block.h:190:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int (*read)(WT_BM *, WT_SESSION_IMPL *, WT_ITEM *, const uint8_t *, size_t);
data/wiredtiger-3.2.1/src/include/capacity.h:50:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    uint64_t read;      /* Bytes/sec read capacity */
data/wiredtiger-3.2.1/src/include/misc.h:235:80:  [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).
    (((const char *)(str))[0] == ((const char *)(pfx))[0] && strncmp(str, pfx, strlen(pfx)) == 0)
data/wiredtiger-3.2.1/src/include/misc.h:238:73:  [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).
#define WT_PREFIX_SKIP(str, pfx) (WT_PREFIX_MATCH(str, pfx) ? ((str) += strlen(pfx), 1) : 0)
data/wiredtiger-3.2.1/src/include/misc.h:244: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).
        (str) += strlen(pfx);                          \
data/wiredtiger-3.2.1/src/lsm/lsm_meta.c:345:43:  [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 (lsm_tree->bloom_config != NULL && strlen(lsm_tree->bloom_config) > 0)
data/wiredtiger-3.2.1/src/lsm/lsm_tree.c:173:43:  [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).
    lsm_tree->filename = lsm_tree->name + strlen("lsm:");
data/wiredtiger-3.2.1/src/lsm/lsm_tree.c:272:45:  [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).
        WT_RET(__wt_fs_exist(session, uri + strlen("file:"), &exists));
data/wiredtiger-3.2.1/src/lsm/lsm_work_unit.c:640:45:  [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).
        ret = __wt_fs_remove(session, uri + strlen("file:"), false);
data/wiredtiger-3.2.1/src/meta/meta_ckpt.c:204:21:  [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 (k.len < strlen(WT_CHECKPOINT) ||
data/wiredtiger-3.2.1/src/meta/meta_ckpt.c:205:41:  [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).
          strncmp(k.str, WT_CHECKPOINT, strlen(WT_CHECKPOINT)) != 0)
data/wiredtiger-3.2.1/src/meta/meta_ckpt.c:268:24:  [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).
        metadata_len = strlen(min_config);
data/wiredtiger-3.2.1/src/meta/meta_ckpt.c:270:53:  [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).
        WT_ERR(__wt_buf_set(session, a, min_config, strlen(min_config)));
data/wiredtiger-3.2.1/src/meta/meta_track.c:196:32:  [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).
             session, trk->b + strlen("file:"), trk->a + strlen("file:"), true)) != 0)
data/wiredtiger-3.2.1/src/meta/meta_track.c:196:58:  [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).
             session, trk->b + strlen("file:"), trk->a + strlen("file:"), true)) != 0)
data/wiredtiger-3.2.1/src/meta/meta_track.c:199:71:  [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 (trk->a == NULL && (ret = __wt_fs_remove(session, trk->b + strlen("file:"), false)) != 0)
data/wiredtiger-3.2.1/src/optrack/optrack.c:28:36:  [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).
    WT_ERR(__wt_scr_alloc(session, strlen(func) + 32, &tmp));
data/wiredtiger-3.2.1/src/os_common/filename.c:18:43:  [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).
    return (__wt_nfilename(session, name, strlen(name), path));
data/wiredtiger-3.2.1/src/os_common/filename.c:42:11:  [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).
    len = strlen(S2C(session)->home) + 1 + namelen + 1;
data/wiredtiger-3.2.1/src/os_common/os_fhandle.c:60:35:  [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).
    hash = __wt_hash_city64(name, strlen(name));
data/wiredtiger-3.2.1/src/os_common/os_fhandle.c:94:35:  [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).
    hash = __wt_hash_city64(name, strlen(name));
data/wiredtiger-3.2.1/src/os_common/os_fs_inmemory.c:38:35:  [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).
    hash = __wt_hash_city64(name, strlen(name));
data/wiredtiger-3.2.1/src/os_common/os_fs_inmemory.c:105:11:  [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).
    len = strlen(directory);
data/wiredtiger-3.2.1/src/os_common/os_fs_inmemory.c:241:49:  [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).
        im_fh->name_hash = __wt_hash_city64(to, strlen(to));
data/wiredtiger-3.2.1/src/os_common/os_fs_inmemory.c:477:35:  [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).
    hash = __wt_hash_city64(name, strlen(name));
data/wiredtiger-3.2.1/src/os_posix/os_getenv.c:23:48:  [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 (((temp = getenv(variable)) != NULL) && strlen(temp) > 0)
data/wiredtiger-3.2.1/src/os_win/os_dir.c:42:15:  [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).
    pathlen = strlen(dir_copy);
data/wiredtiger-3.2.1/src/os_win/os_dir.c:50:22:  [1] (buffer) wcslen:
  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).
    prefix_widelen = wcslen(prefix_wide->data);
data/wiredtiger-3.2.1/src/os_win/os_path.c:44: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(path) >= 3 && __wt_isalpha(path[0]) && path[1] == ':')
data/wiredtiger-3.2.1/src/reconcile/rec_col.c:820:38:  [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).
                size = WT_STORE_SIZE(strlen("ovfl-unused"));
data/wiredtiger-3.2.1/src/reconcile/rec_row.c:822:75:  [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).
                WT_ERR(__wt_rec_cell_build_val(session, r, "ovfl-unused", strlen("ovfl-unused"),
data/wiredtiger-3.2.1/src/schema/schema_create.c:134:37:  [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).
    tablename = table->iface.name + strlen("table:");
data/wiredtiger-3.2.1/src/schema/schema_create.c:142:15:  [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).
        len = strlen(prefix);
data/wiredtiger-3.2.1/src/schema/schema_create.c:188:16:  [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).
        tlen = strlen(tablename);
data/wiredtiger-3.2.1/src/schema/schema_create.c:276:37:  [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).
    tablename = table->iface.name + strlen("table:");
data/wiredtiger-3.2.1/src/schema/schema_create.c:284:15:  [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).
        len = strlen(prefix);
data/wiredtiger-3.2.1/src/schema/schema_create.c:507:64:  [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).
        WT_ERR(__wt_schema_open_index(session, table, idxname, strlen(idxname), &idx));
data/wiredtiger-3.2.1/src/schema/schema_create.c:569: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).
        cgsize = strlen("colgroup:") + strlen(tablename) + 1;
data/wiredtiger-3.2.1/src/schema/schema_create.c:569:40:  [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).
        cgsize = strlen("colgroup:") + strlen(tablename) + 1;
data/wiredtiger-3.2.1/src/schema/schema_open.c:476:28:  [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).
        tend = tablename + strlen(tablename);
data/wiredtiger-3.2.1/src/schema/schema_open.c:532:61:  [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).
    WT_ERR(__wt_schema_open_index(session, table, tend + 1, strlen(tend + 1), indexp));
data/wiredtiger-3.2.1/src/schema/schema_rename.c:216:52:  [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).
    WT_RET(__wt_schema_get_table(session, oldname, strlen(oldname), false, 0, &table));
data/wiredtiger-3.2.1/src/schema/schema_stat.c:91:59:  [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).
    WT_ERR(__wt_buf_fmt(session, &namebuf, "%s.wt", uri + strlen("table:")));
data/wiredtiger-3.2.1/src/schema/schema_stat.c:145: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).
    name = uri + strlen("table:");
data/wiredtiger-3.2.1/src/schema/schema_stat.c:146:49:  [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).
    WT_RET(__wt_schema_get_table(session, name, strlen(name), false, 0, &table));
data/wiredtiger-3.2.1/src/schema/schema_truncate.c:22:48:  [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).
    WT_RET(__wt_schema_get_table(session, uri, strlen(uri), false, 0, &table));
data/wiredtiger-3.2.1/src/session/session_dhandle.c:64:36:  [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).
    bucket = __wt_hash_city64(uri, strlen(uri)) % WT_HASH_ARRAY_SIZE;
data/wiredtiger-3.2.1/src/support/err.c:241:15:  [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).
        len = strlen(err);
data/wiredtiger-3.2.1/src/support/hex.c:262:45:  [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).
    return (__wt_nhex_to_raw(session, from, strlen(from), to));
data/wiredtiger-3.2.1/src/support/hex.c:298:39:  [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).
    WT_RET(__wt_buf_init(session, to, strlen(from)));
data/wiredtiger-3.2.1/src/support/scratch.c:104:21:  [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).
        buf->size = strlen("[Error]");
data/wiredtiger-3.2.1/src/support/scratch.c:218:21:  [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).
        buf->size = strlen("[Error]");
data/wiredtiger-3.2.1/src/txn/txn_ckpt.c:31:15:  [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 (len < strlen(WT_CHECKPOINT))
data/wiredtiger-3.2.1/src/txn/txn_ckpt.c:1370:28:  [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).
    __drop(ckptbase, name, strlen(name));
data/wiredtiger-3.2.1/src/txn/txn_log.c:386:53:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    wt_timestamp_t commit, durable, first, prepare, read;
data/wiredtiger-3.2.1/src/txn/txn_log.c:423:40:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      commit, durable, first, prepare, read));
data/wiredtiger-3.2.1/src/txn/txn_recover.c:115:53:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    wt_timestamp_t commit, durable, first, prepare, read;
data/wiredtiger-3.2.1/src/txn/txn_recover.c:272:84:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          session, pp, end, &t_sec, &t_nsec, &commit, &durable, &first, &prepare, &read));
data/wiredtiger-3.2.1/src/txn/txn_timestamp.c:39:59:  [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).
        (void)memcpy(hex_timestamp, WT_TS_MAX_HEX_STRING, strlen(WT_TS_MAX_HEX_STRING) + 1);
data/wiredtiger-3.2.1/src/utilities/util_backup.c:90:11:  [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).
    len = strlen(directory) + strlen(name) + 2;
data/wiredtiger-3.2.1/src/utilities/util_backup.c:90:31:  [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).
    len = strlen(directory) + strlen(name) + 2;
data/wiredtiger-3.2.1/src/utilities/util_dump.c:283:11:  [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).
    len = strlen(config) + strlen(cursor->value_format) + strlen(cursor->uri) + 20;
data/wiredtiger-3.2.1/src/utilities/util_dump.c:283:28:  [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).
    len = strlen(config) + strlen(cursor->value_format) + strlen(cursor->uri) + 20;
data/wiredtiger-3.2.1/src/utilities/util_dump.c:283:59:  [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).
    len = strlen(config) + strlen(cursor->value_format) + strlen(cursor->uri) + 20;
data/wiredtiger-3.2.1/src/utilities/util_dump.c:288:68:  [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 ((ret = wt_api->config_parser_open(wt_api, session, config, strlen(config), &parser)) != 0)
data/wiredtiger-3.2.1/src/utilities/util_dump.c:318:22:  [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).
            assert(p[strlen(p) - 1] == ')');
data/wiredtiger-3.2.1/src/utilities/util_dump.c:322:79:  [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).
            WT_RET(dump_add_config(session, &newconfig, &len, "%.*s),", (int)(strlen(p) - 1), p));
data/wiredtiger-3.2.1/src/utilities/util_dump.c:414:11:  [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).
    len = strlen(entry) + strlen(name) + 1;
data/wiredtiger-3.2.1/src/utilities/util_dump.c:414:27:  [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).
    len = strlen(entry) + strlen(name) + 1;
data/wiredtiger-3.2.1/src/utilities/util_dump.c:448:68:  [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 (!WT_PREFIX_MATCH(key, entry) || !WT_PREFIX_MATCH(key + strlen(entry), name))
data/wiredtiger-3.2.1/src/utilities/util_list.c:80:68:  [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 ((ret = wt_api->config_parser_open(wt_api, session, config, strlen(config), &parser)) != 0)
data/wiredtiger-3.2.1/src/utilities/util_list.c:219:13:  [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(ckpt->name) > len)
data/wiredtiger-3.2.1/src/utilities/util_list.c:220:19:  [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).
            len = strlen(ckpt->name);
data/wiredtiger-3.2.1/src/utilities/util_load.c:236:27:  [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 (strncmp(l.mem, s, strlen(s)) != 0) {
data/wiredtiger-3.2.1/src/utilities/util_load.c:407:45:  [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 (strncmp(*configp, listp[0], strlen(*configp)) == 0)
data/wiredtiger-3.2.1/src/utilities/util_load.c:446:45:  [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 (strncmp(*configp, listp[0], strlen(*configp)) == 0)
data/wiredtiger-3.2.1/src/utilities/util_load.c:475:11:  [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).
    len = strlen(*urip) + strlen(name) + 10;
data/wiredtiger-3.2.1/src/utilities/util_load.c:475:27:  [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).
    len = strlen(*urip) + strlen(name) + 10;
data/wiredtiger-3.2.1/src/utilities/util_load_json.c:53:27:  [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).
    ((ins)->toklen - 2 == strlen(match) && \
data/wiredtiger-3.2.1/src/utilities/util_load_json.c:149: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).
        needsize = strlen(ins->kvraw) + len + 2;
data/wiredtiger-3.2.1/src/utilities/util_load_json.c:288:29:  [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).
                keystrlen = strlen(ins->kvraw);
data/wiredtiger-3.2.1/src/utilities/util_load_json.c:474:23:  [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).
                      strlen(ins->line.mem) - ins->kvrawstart)) {
data/wiredtiger-3.2.1/src/utilities/util_main.c:157:36:  [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).
            memset(__wt_optarg, 0, strlen(__wt_optarg));
data/wiredtiger-3.2.1/src/utilities/util_main.c:295:12:  [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).
    len += strlen("error_prefix=wt");
data/wiredtiger-3.2.1/src/utilities/util_main.c:297:16:  [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).
        len += strlen(config);
data/wiredtiger-3.2.1/src/utilities/util_main.c:299:16:  [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).
        len += strlen(cmd_config);
data/wiredtiger-3.2.1/src/utilities/util_main.c:301:16:  [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).
        len += strlen(secretkey) + 30;
data/wiredtiger-3.2.1/src/utilities/util_main.c:306:12:  [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).
    len += strlen(rec_config);
data/wiredtiger-3.2.1/src/utilities/util_main.c:364:11:  [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).
    len = strlen(type) + strlen(s) + 2;
data/wiredtiger-3.2.1/src/utilities/util_main.c:364:26:  [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).
    len = strlen(type) + strlen(s) + 2;
data/wiredtiger-3.2.1/src/utilities/util_misc.c:61:19:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if ((ch = getchar()) == EOF) {
data/wiredtiger-3.2.1/src/utilities/util_misc.c:136:11:  [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).
    len = strlen(uri) + 100;
data/wiredtiger-3.2.1/src/utilities/util_stat.c:64: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).
    urilen = strlen("statistics:") + strlen(objname) + 1;
data/wiredtiger-3.2.1/src/utilities/util_stat.c:64:38:  [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).
    urilen = strlen("statistics:") + strlen(objname) + 1;
data/wiredtiger-3.2.1/src/utilities/util_verify.c:41:46:  [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).
                dump_offsets = __wt_optarg + strlen("dump_offsets=");
data/wiredtiger-3.2.1/src/utilities/util_verify.c:62:16:  [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).
        size = strlen("dump_address,") + strlen("dump_blocks,") + strlen("dump_layout,") +
data/wiredtiger-3.2.1/src/utilities/util_verify.c:62:42:  [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).
        size = strlen("dump_address,") + strlen("dump_blocks,") + strlen("dump_layout,") +
data/wiredtiger-3.2.1/src/utilities/util_verify.c:62:67:  [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).
        size = strlen("dump_address,") + strlen("dump_blocks,") + strlen("dump_layout,") +
data/wiredtiger-3.2.1/src/utilities/util_verify.c:63:11:  [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).
          strlen("dump_pages,") + strlen("dump_offsets[],") +
data/wiredtiger-3.2.1/src/utilities/util_verify.c:63:35:  [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).
          strlen("dump_pages,") + strlen("dump_offsets[],") +
data/wiredtiger-3.2.1/src/utilities/util_verify.c:64:39:  [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).
          (dump_offsets == NULL ? 0 : strlen(dump_offsets)) + 20;
data/wiredtiger-3.2.1/test/checkpoint/checkpointer.c:326: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).
    else if (strlen(val1) != strlen(val2) || strcmp(val1, val2) != 0)
data/wiredtiger-3.2.1/test/checkpoint/checkpointer.c:326:30:  [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).
    else if (strlen(val1) != strlen(val2) || strcmp(val1, val2) != 0)
data/wiredtiger-3.2.1/test/csuite/random_abort/main.c:102:31:  [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).
    for (i = 0; i < 128; i += strlen(lgbuf))
data/wiredtiger-3.2.1/test/csuite/random_directio/main.c:267:11:  [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).
    len = strlen(lgbuf);
data/wiredtiger-3.2.1/test/csuite/random_directio/main.c:285:11:  [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).
    len = strlen(s);
data/wiredtiger-3.2.1/test/csuite/random_directio/main.c:304: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).
    keyid_size = strlen(keyid);
data/wiredtiger-3.2.1/test/csuite/random_directio/util.c:136:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            ioret = read(rfd, buf, readbytes);
data/wiredtiger-3.2.1/test/csuite/scope/main.c:136:23:  [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).
            vu.size = strlen(vu.data = valuebuf);
data/wiredtiger-3.2.1/test/csuite/scope/main.c:267:44:  [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).
                testutil_assert(vu.size == strlen(VALUE));
data/wiredtiger-3.2.1/test/csuite/scope/main.c:268:56:  [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).
                testutil_assert(memcmp(vu.data, VALUE, strlen(VALUE)) == 0);
data/wiredtiger-3.2.1/test/csuite/scope/main.c:287:27:  [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).
                vu.size = strlen(vu.data = valuebuf);
data/wiredtiger-3.2.1/test/csuite/truncated_log/main.c:172:68:  [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).
          __wt_snprintf(v, sizeof(v), "value%0*d", (int)(V_SIZE - (strlen("value") + 1)), (int)i));
data/wiredtiger-3.2.1/test/csuite/wt1965_col_efficiency/main.c:90:19:  [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.
            (void)usleep(1000000ULL * NR_THREADS / 5000);
data/wiredtiger-3.2.1/test/csuite/wt1965_col_efficiency/main.c:126:9:  [1] (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). Risk is low because the
  source is a constant character.
        strcat(table_format, "Q");
data/wiredtiger-3.2.1/test/csuite/wt2403_lsm_workload/main.c:40: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).
    y = strlen(str);
data/wiredtiger-3.2.1/test/csuite/wt2695_checksum/main.c:91:11:  [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).
    len = strlen("123456789");
data/wiredtiger-3.2.1/test/csuite/wt2695_checksum/main.c:98:11:  [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).
    len = strlen("The quick brown fox jumps over the lazy dog");
data/wiredtiger-3.2.1/test/csuite/wt2909_checkpoint_integrity/main.c:211:11:  [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).
    mod = strlen(BIG_CONTENTS);
data/wiredtiger-3.2.1/test/csuite/wt3135_search_near_collator/main.c:49:27:  [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).
    return (item->size == strlen(str) + 1 && strncmp((char *)item->data, str, item->size) == 0);
data/wiredtiger-3.2.1/test/csuite/wt3135_search_near_collator/main.c:199:15:  [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).
    testlen = strlen(test_str) + 1;
data/wiredtiger-3.2.1/test/csuite/wt3135_search_near_collator/main.c:284:17:  [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).
    item.size = strlen(set[1]) + 1;
data/wiredtiger-3.2.1/test/csuite/wt3135_search_near_collator/main.c:290:17:  [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).
    item.size = strlen(set[3]) + 1;
data/wiredtiger-3.2.1/test/csuite/wt4105_large_doc_small_upd/main.c:132:38:  [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).
            modify_entry.data.size = strlen(modify_entry.data.data);
data/wiredtiger-3.2.1/test/csuite/wt4117_checksum/main.c:74:11:  [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).
    len = strlen("123456789");
data/wiredtiger-3.2.1/test/csuite/wt4117_checksum/main.c:79:11:  [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).
    len = strlen("The quick brown fox jumps over the lazy dog");
data/wiredtiger-3.2.1/test/csuite/wt4156_metadata_salvage/main.c:91:12:  [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).
    slen = strlen(str);
data/wiredtiger-3.2.1/test/csuite/wt4156_metadata_salvage/main.c:162:11:  [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).
    len = strlen(APP_STR);
data/wiredtiger-3.2.1/test/syscall/wt2336_base/main.c:59:5:  [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(100);
data/wiredtiger-3.2.1/test/syscall/wt2336_base/main.c:67:5:  [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(100);
data/wiredtiger-3.2.1/test/syscall/wt2336_base/main.c:75:5:  [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(100);
data/wiredtiger-3.2.1/test/utility/misc.c:95:15:  [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 (len < strlen(dir) + 1)
data/wiredtiger-3.2.1/test/utility/misc.c:114:15:  [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).
    len = 2 * strlen(dir) + strlen(RM_COMMAND) + strlen(DIR_EXISTS_COMMAND) + 4;
data/wiredtiger-3.2.1/test/utility/misc.c:114:29:  [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).
    len = 2 * strlen(dir) + strlen(RM_COMMAND) + strlen(DIR_EXISTS_COMMAND) + 4;
data/wiredtiger-3.2.1/test/utility/misc.c:114:50:  [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).
    len = 2 * strlen(dir) + strlen(RM_COMMAND) + strlen(DIR_EXISTS_COMMAND) + 4;
data/wiredtiger-3.2.1/test/utility/misc.c:121:11:  [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).
    len = strlen(dir) + strlen(RM_COMMAND) + 1;
data/wiredtiger-3.2.1/test/utility/misc.c:121:25:  [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).
    len = strlen(dir) + strlen(RM_COMMAND) + 1;
data/wiredtiger-3.2.1/test/utility/misc.c:146:11:  [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).
    len = strlen(dir) + strlen(MKDIR_COMMAND) + 1;
data/wiredtiger-3.2.1/test/utility/misc.c:146:25:  [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).
    len = strlen(dir) + strlen(MKDIR_COMMAND) + 1;
data/wiredtiger-3.2.1/test/utility/parse_opts.c:124:15:  [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).
        len = strlen("WT_TEST.") + strlen(opts->progname) + 10;
data/wiredtiger-3.2.1/test/utility/parse_opts.c:124:36:  [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).
        len = strlen("WT_TEST.") + strlen(opts->progname) + 10;
data/wiredtiger-3.2.1/test/utility/parse_opts.c:132:11:  [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).
    len = strlen(opts->home) + 20;
data/wiredtiger-3.2.1/test/utility/parse_opts.c:137:11:  [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).
    len = strlen("table:") + strlen(opts->progname) + 10;
data/wiredtiger-3.2.1/test/utility/parse_opts.c:137:30:  [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).
    len = strlen("table:") + strlen(opts->progname) + 10;
data/wiredtiger-3.2.1/test/windows/windows_shim.c:39:1:  [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(useconds_t useconds)
data/wiredtiger-3.2.1/test/windows/windows_shim.h:64:5:  [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.
int usleep(useconds_t useconds);

ANALYSIS SUMMARY:

Hits = 902
Lines analyzed = 173333 in approximately 4.86 seconds (35675 lines/second)
Physical Source Lines of Code (SLOC) = 108719
Hits@level = [0] 698 [1] 380 [2] 377 [3]  11 [4] 134 [5]   0
Hits@level+ = [0+] 1600 [1+] 902 [2+] 522 [3+] 145 [4+] 134 [5+]   0
Hits/KSLOC@level+ = [0+] 14.7168 [1+] 8.29662 [2+] 4.80137 [3+] 1.33371 [4+] 1.23254 [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.