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/ctfutils-10.3~svn297264/cddl/compat/opensolaris/include/assert.h
Examining data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/include/devid.h
Examining data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/include/dtrace.h
Examining data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/include/fcntl.h
Examining data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/include/fsshare.h
Examining data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/include/libintl.h
Examining data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/include/libproc.h
Examining data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/include/libshare.h
Examining data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/include/priv.h
Examining data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/include/sha2.h
Examining data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/include/solaris.h
Examining data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/include/stdlib.h
Examining data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/include/strings.h
Examining data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/include/thread_pool.h
Examining data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/include/unistd.h
Examining data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/include/zone.h
Examining data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/include/stdio.h
Examining data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/include/alloca.h
Examining data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/include/mnttab.h
Examining data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/lib/libumem/umem.c
Examining data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/lib/libumem/umem.h
Examining data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/misc/deviceid.c
Examining data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/misc/mkdirp.c
Examining data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/misc/mnttab.c
Examining data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/misc/thread_pool.c
Examining data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/misc/thread_pool_impl.h
Examining data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/misc/zmount.c
Examining data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/misc/zone.c
Examining data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/misc/fsshare.c
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_create.c
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_decl.c
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_error.c
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_hash.c
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_impl.h
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_labels.c
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_lookup.c
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_open.c
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_types.c
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_util.c
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/lib/libctf/common/ctf_lib.c
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/lib/libctf/common/ctf_subr.c
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/lib/libctf/common/libctf.h
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/lib/libgen/common/gmatch.c
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/common/ctf_headers.h
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/common/list.c
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/common/list.h
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/common/memory.c
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/common/memory.h
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/common/symbol.c
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/common/symbol.h
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/common/utils.c
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/common/utils.h
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/alist.c
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/alist.h
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/barrier.c
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/barrier.h
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/compare.c
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/ctfconvert.c
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/ctfmerge.c
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/ctfmerge.h
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/ctftools.h
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/dwarf.c
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/fifo.c
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/fifo.h
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/fixup_tdescs.c
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/hash.c
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/hash.h
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/iidesc.c
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/input.c
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/merge.c
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/output.c
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/st_parse.c
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/stabs.c
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/stack.c
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/stack.h
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/strtab.c
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/strtab.h
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/tdata.c
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/traverse.c
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/traverse.h
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/util.c
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/ctf.c
Examining data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/dump/dump.c
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/kern/opensolaris.c
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/kern/opensolaris_acl.c
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/kern/opensolaris_atomic.c
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/kern/opensolaris_cmn_err.c
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/kern/opensolaris_dtrace.c
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/kern/opensolaris_kmem.c
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/kern/opensolaris_kobj.c
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/kern/opensolaris_kstat.c
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/kern/opensolaris_lookup.c
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/kern/opensolaris_misc.c
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/kern/opensolaris_policy.c
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/kern/opensolaris_string.c
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/kern/opensolaris_sunddi.c
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/kern/opensolaris_sysevent.c
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/kern/opensolaris_taskq.c
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/kern/opensolaris_uio.c
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/kern/opensolaris_vfs.c
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/kern/opensolaris_vm.c
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/kern/opensolaris_zone.c
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/rpc/xdr.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/acl.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/assfail.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/atomic.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/bitmap.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/byteorder.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/cmn_err.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/cpupart.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/cpuvar.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/cpuvar_defs.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/cred.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/debug.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/debug_compat.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/disp.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/dkio.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/dnlc.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/elf.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/feature_tests.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/file.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/freebsd_rwlock.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/kcondvar.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/kidmap.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/kmem.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/kobj.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/kstat.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/lock.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/mman.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/mntent.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/mnttab.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/modctl.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/mount.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/mutex.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/nvpair.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/objfs.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/pathname.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/pcpu.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/policy.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/proc.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/random.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/refstr.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/rwlock.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/sdt.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/sema.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/sid.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/sig.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/string.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/sunddi.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/systeminfo.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/systm.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/time.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/types.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/uio.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/varargs.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/vfs.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/vm.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/zone.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/param.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/misc.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/vnode.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/stat.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/dirent.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/ctf/ctf_mod.c
Examining data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/ctf/ctf_subr.c
Examining data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/acl.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/acl_impl.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/asm_linkage.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/avl.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/avl_impl.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/bitmap.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/callb.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/ccompile.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/cmn_err.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/compress.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/cpupart.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/cpuvar.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/cred.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/ctf.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/ctf_api.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/debug.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/dtrace.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/dtrace_impl.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/errorq.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/extdirent.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/fasttrap.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/fasttrap_impl.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/feature_tests.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/fm/fs/zfs.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/fm/protocol.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/fm/util.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/fs/zfs.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/fs/zut.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/gfs.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/idmap.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/list.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/list_impl.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/note.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/nvpair.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/nvpair_impl.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/processor.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/procset.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/synch.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/sysevent/dev.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/sysevent/eventdefs.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/sysevent.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/taskq.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/u8_textprep.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/u8_textprep_data.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/vnode.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/zmod.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/sysmacros.h
Examining data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/isa_defs.h

FINAL RESULTS:

data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/misc/mkdirp.c:88:7:  [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.
		if (access(str, F_OK) == 0)
data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/misc/mnttab.c:76: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).
	(void) strcpy(opts, mnt->mnt_mntopts);
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_decl.c:179:6:  [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.
	n = vsnprintf(cd->cd_ptr, len, format, ap);
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_util.c:126:10:  [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).
		(void) strcpy(s2, s1);
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/lib/libctf/common/ctf_lib.c:96:6:  [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.
	if (access(_libctf_zlib, R_OK) == -1)
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/lib/libctf/common/ctf_subr.c:80:10:  [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, format, alist);
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/common/utils.c:71: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.
	(void) vfprintf(stderr, format, alist);
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/ctf.c:87:2:  [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.
	vsnprintf(msgbuf, sizeof (msgbuf), fmt, ap);
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/ctfconvert.c:210:6:  [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.
	if (access(infile, R_OK) != 0)
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/ctfmerge.c:855:18:  [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.
	if (uniqfile && access(uniqfile, R_OK) != 0) {
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/ctfmerge.c:860:18:  [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.
	if (withfile && access(withfile, R_OK) != 0) {
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/ctfmerge.c:865:17:  [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.
	if (outfile && access(outfile, R_OK|W_OK) != 0)
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/output.c:610:4:  [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((caddr_t)ddata->d_buf + shdr.sh_size,
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/st_parse.c:100: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(buf, fmt);
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/stabs.c:262: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(curpath, str);
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/util.c:124:2:  [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, format, ap);
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/util.c:203: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.
	(void) vfprintf(DEBUG_STREAM, format, ap);
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/util.c:227: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).
	(void) strcpy(newname, origname);
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/util.c:228: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).
	(void) strcat(newname, suffix);
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/util.c:240:2:  [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.
	vsnprintf(msgbuf, sizeof (msgbuf), fmt, ap);
data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/kern/opensolaris_cmn_err.c:57:3:  [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.
		vsnprintf(buf, sizeof(buf), fmt, adx);
data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/kern/opensolaris_cmn_err.c:62:3:  [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, adx);
data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/kern/opensolaris_string.c:89: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.
	size = vsnprintf(NULL, 0, fmt, adx) + 1;
data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/kern/opensolaris_string.c:95: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.
	(void) vsnprintf(buf, size, fmt, adx);
data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/kern/opensolaris_zone.c:100: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(zd->zd_dataset, dataset);
data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/sid.h:48: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(kd->kd_name, domain);
data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/ctf/ctf_subr.c:93:10:  [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.
		(void) vprintf(format, alist);
data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/ccompile.h:57:29:  [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, __n, (__n)+1)))
data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/ccompile.h:59:29:  [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, __n, 0)))
data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/cmn_err.h:75: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.
extern void printf(const char *, ...)
data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/cmn_err.h:77:23:  [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.
#pragma	rarely_called(printf)
data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/cmn_err.h:88: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.
extern void vprintf(const char *, __va_list)
data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/cmn_err.h:90:23:  [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.
#pragma	rarely_called(vprintf)
data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/cmn_err.h:102:15:  [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.
extern size_t snprintf(char *, size_t, const char *, ...)
data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/cmn_err.h:104:15:  [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.
extern size_t vsnprintf(char *, size_t, const char *, __va_list)
data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/cmn_err.h:107:14:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
extern char *sprintf(char *, const char *, ...)
data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/cmn_err.h:109:14:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
extern char *vsprintf(char *, const char *, __va_list)
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/lib/libctf/common/ctf_lib.c:70: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.
	const char *p = getenv("LIBCTF_DECOMPRESSOR");
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/lib/libctf/common/ctf_lib.c:76: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.
	_libctf_debug = getenv("LIBCTF_DEBUG") != NULL;
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/ctfconvert.c:166:6:  [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("CTFCONVERT_DEBUG_LEVEL"))
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/ctfconvert.c:167:22:  [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.
		debug_level = atoi(getenv("CTFCONVERT_DEBUG_LEVEL"));
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/ctfconvert.c:168:6:  [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("CTFCONVERT_DEBUG_PARSE"))
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/ctfconvert.c:169:22:  [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.
		debug_parse = atoi(getenv("CTFCONVERT_DEBUG_PARSE"));
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/ctfconvert.c:171:14:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt(argc, argv, ":l:L:o:givs")) != EOF) {
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/ctfconvert.c:177: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 ((label = getenv(optarg)) == NULL)
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/ctfconvert.c:201:6:  [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("STRIPSTABS_KEEP_STABS") != NULL)
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/ctfmerge.c:598: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.
	int dounlink = getenv("CTFMERGE_TERMINATE_NO_UNLINK") ? 0 : 1;
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/ctfmerge.c:637:6:  [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("CTFMERGE_MAX_SLOTS"))
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/ctfmerge.c:638: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.
		nslots = atoi(getenv("CTFMERGE_MAX_SLOTS"));
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/ctfmerge.c:642:6:  [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("CTFMERGE_PHASE1_BATCH_SIZE"))
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/ctfmerge.c:643:28:  [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.
		wq->wq_maxbatchsz = atoi(getenv("CTFMERGE_PHASE1_BATCH_SIZE"));
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/ctfmerge.c:655:6:  [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("CTFMERGE_INPUT_THROTTLE"))
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/ctfmerge.c:656:19:  [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.
		throttle = atoi(getenv("CTFMERGE_INPUT_THROTTLE"));
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/ctfmerge.c:767:6:  [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("CTFMERGE_DEBUG_LEVEL"))
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/ctfmerge.c:768:22:  [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.
		debug_level = atoi(getenv("CTFMERGE_DEBUG_LEVEL"));
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/ctfmerge.c:771:14:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt(argc, argv, ":cd:D:fgl:L:o:tvw:s")) != EOF) {
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/ctfmerge.c:796: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 ((label = getenv(optarg)) == NULL)
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/ctfmerge.c:852:6:  [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("STRIPSTABS_KEEP_STABS") != NULL)
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/fixup_tdescs.c:248:6:  [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.
	    getenv("CTFCONVERT_PERMISSIVE") == NULL) {
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/util.c:149:6:  [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("CTF_ABORT_ON_TERMINATE") != NULL)
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/dump/dump.c:821:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		while ((c = getopt(argc, argv, "dfhlsStu:")) != (int)EOF) {
data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/random.h:32:20:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#include_next <sys/random.h>
data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/include/devid.h:37:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char devid[DISK_IDENT_SIZE];
data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/include/devid.h:41:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char devname[MAXPATHLEN];
data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/include/fcntl.h:35:21:  [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).
#define open64(...)	open(__VA_ARGS__)
data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/misc/deviceid.c:57:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[MAXPATHLEN];
data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/misc/fsshare.c:77: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.
	static char line[MAXLINESIZE];
data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/misc/fsshare.c:126: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.
	static char newopts[OPTSSIZE];
data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/misc/fsshare.c:127:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char oldopts[OPTSSIZE];
data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/misc/fsshare.c:156:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmpfile[PATH_MAX];
data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/misc/fsshare.c:156:7:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	char tmpfile[PATH_MAX];
data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/misc/fsshare.c:168:14:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	if (strlcpy(tmpfile, file, sizeof(tmpfile)) >= sizeof(tmpfile))
data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/misc/fsshare.c:168:36:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	if (strlcpy(tmpfile, file, sizeof(tmpfile)) >= sizeof(tmpfile))
data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/misc/fsshare.c:168:56:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	if (strlcpy(tmpfile, file, sizeof(tmpfile)) >= sizeof(tmpfile))
data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/misc/fsshare.c:170:14:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	if (strlcat(tmpfile, ".XXXXXXXX", sizeof(tmpfile)) >= sizeof(tmpfile))
data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/misc/fsshare.c:170:43:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	if (strlcat(tmpfile, ".XXXXXXXX", sizeof(tmpfile)) >= sizeof(tmpfile))
data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/misc/fsshare.c:170:63:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	if (strlcat(tmpfile, ".XXXXXXXX", sizeof(tmpfile)) >= sizeof(tmpfile))
data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/misc/fsshare.c:172:7:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
	fd = mkstemp(tmpfile);
data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/misc/fsshare.c:172:15:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	fd = mkstemp(tmpfile);
data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/misc/fsshare.c:184:10:  [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).
	oldfd = fopen(file, "r");
data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/misc/fsshare.c:223:10:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
		unlink(tmpfile);
data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/misc/fsshare.c:225:14:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
		if (rename(tmpfile, file) == -1) {
data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/misc/fsshare.c:227:11:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
			unlink(tmpfile);
data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/misc/mnttab.c:71:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmpopts[MNT_LINE_MAX];
data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/misc/mnttab.c:97: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.
	static char mntopts[MNTMAXSTR];
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_create.c:164:3:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		bcopy(dmd->dmd_name, s, len);
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_create.c:318:2:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	bcopy(&hdr, buf, sizeof (ctf_header_t));
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_create.c:342:4:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			bcopy(dtd->dtd_name, s, len);
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_create.c:352:3:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		bcopy(&dtd->dtd_data, t, len);
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_create.c:449:2:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	bcopy(fp, &ofp, sizeof (ctf_file_t));
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_create.c:450:2:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	bcopy(nfp, fp, sizeof (ctf_file_t));
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_create.c:451:2:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	bcopy(&ofp, nfp, sizeof (ctf_file_t));
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_create.c:832:2:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	bcopy(argv, vdat, sizeof (ctf_id_t) * ctc->ctc_argc);
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_labels.c:126:4:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			bcopy(linfo, ((linfo_cb_arg_t *)arg)->lca_info,
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_open.c:588:3:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		bcopy(ctfsect->cts_data, &hp, sizeof (hp));
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_open.c:645:3:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		bcopy(ctfsect->cts_data, base, hdrsz);
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_open.c:683:2:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	bcopy(ctfsect, &fp->ctf_data, sizeof (ctf_sect_t));
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_open.c:686:3:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		bcopy(symsect, &fp->ctf_symtab, sizeof (ctf_sect_t));
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_open.c:687:3:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		bcopy(strsect, &fp->ctf_strtab, sizeof (ctf_sect_t));
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_open.c:812:2:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	bcopy(&ofp->ctf_data, &ctfsect, sizeof (ctf_sect_t));
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_open.c:819:2:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	bcopy(ctfsect.cts_data, cbuf, ctfsect.cts_size);
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_open.c:826:3:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		bcopy(&ofp->ctf_symtab, &symsect, sizeof (ctf_sect_t));
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_open.c:832:3:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		bcopy(symsect.cts_data, symbuf, symsect.cts_size);
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_open.c:842:3:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		bcopy(&ofp->ctf_strtab, &strsect, sizeof (ctf_sect_t));
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_open.c:848:3:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		bcopy(strsect.cts_data, strbuf, strsect.cts_size);
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/lib/libctf/common/ctf_lib.c:143:2:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	bcopy(src->e_ident, dst->e_ident, EI_NIDENT);
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/ctf.c:83: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.
	static char msgbuf[1024]; /* sigh */
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/ctf.c:139:3:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		bcopy(p, b->ctb_ptr, len);
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/ctf.c:635: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.
	static const char pad[8] = { 0 };
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/ctf.c:647:2:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	bcopy(buf, *posp, n);
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/ctf.c:682:2:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	bcopy(h, resbuf.rb_base, sizeof (ctf_header_t));
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/ctfconvert.c:95:12:  [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).
	if ((fd = open(filename, O_RDONLY)) < 0)
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/ctfconvert.c:167:17:  [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).
		debug_level = atoi(getenv("CTFCONVERT_DEBUG_LEVEL"));
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/ctfconvert.c:169:17:  [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).
		debug_parse = atoi(getenv("CTFCONVERT_DEBUG_PARSE"));
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/ctfmerge.c:638:12:  [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).
		nslots = atoi(getenv("CTFMERGE_MAX_SLOTS"));
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/ctfmerge.c:643:23:  [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).
		wq->wq_maxbatchsz = atoi(getenv("CTFMERGE_PHASE1_BATCH_SIZE"));
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/ctfmerge.c:656:14:  [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).
		throttle = atoi(getenv("CTFMERGE_INPUT_THROTTLE"));
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/ctfmerge.c:768:17:  [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).
		debug_level = atoi(getenv("CTFMERGE_DEBUG_LEVEL"));
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/ctfmerge.c:993:4:  [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 uniqname[MAXPATHLEN];
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/dwarf.c:629:2:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	bcopy(old->t_intr, new->t_intr, sizeof (intr_t));
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/dwarf.c:1283:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[100];
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/fixup_tdescs.c:55: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.
	const char *strs[2] = { "as", "fdbuffer" };
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/fixup_tdescs.c:56: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.
	const char *mems[2] = { "a_objectdir", "fd_shadow" };
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/fixup_tdescs.c:57: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.
	const char *acts[2] = { "vnode", "page" };
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/fixup_tdescs.c:58: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.
	const char *tgts[2] = { "vnode_t", "page_t" };
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/fixup_tdescs.c:109: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.
	const char *strs[2] = { "vmem", "id_space" };
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/fixup_tdescs.c:110: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.
	const char *mems[2] = { NULL, "is_vmem" };
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/iidesc.c:100:3:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		bcopy(old, &tmp, sizeof (tmp));
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/iidesc.c:101:3:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		bcopy(new, old, sizeof (*old));
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/iidesc.c:102:3:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		bcopy(&tmp, new, sizeof (*new));
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/iidesc.c:128:2:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	bcopy(src, tgt, sizeof (iidesc_t));
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/iidesc.c:135:3:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		bcopy(src->ii_args, tgt->ii_args,
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/input.c:196:12:  [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).
	if ((fd = open(file, O_RDONLY)) < 0)
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/input.c:290:13:  [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).
		if ((fd = open(file, O_RDONLY)) < 0) {
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/merge.c:739:2:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	bcopy(old->t_intr, new->t_intr, sizeof (intr_t));
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/output.c:480:2:  [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(&dehdr, &sehdr, sizeof (GElf_Ehdr));
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/output.c:589:3:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		bcopy(sdata, ddata, sizeof (Elf_Data));
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/output.c:609:4:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			bcopy(sdata->d_buf, ddata->d_buf, shdr.sh_size);
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/output.c:626:4:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			bcopy(sdata->d_buf, ddata->d_buf, shdr.sh_size);
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/output.c:651:4:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			bcopy(sdata->d_buf, ddata->d_buf, shdr.sh_size);
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/output.c:743:12:  [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).
	if ((fd = open(curname, O_RDONLY)) < 0 || fstat(fd, &st) < 0)
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/output.c:748:13:  [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).
	if ((tfd = open(newname, O_RDWR | O_CREAT | O_TRUNC, st.st_mode)) < 0)
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/st_parse.c:83:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/st_parse.c:84:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp[32];
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/st_parse.c:842:2:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	bcopy(template->t_intr, newtdp->t_intr, sizeof (intr_t));
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/stabs.c:185:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char curpath[MAXPATHLEN];
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/strtab.c:146:3:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		bcopy(str, sp->str_ptr, n);
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/util.c:236: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.
	static char msgbuf[BUFSIZ];
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/dump/dump.c:134: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.
	static char buf[32];
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/dump/dump.c:142:11:  [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.
			(void) strcat(buf, " SIGNED");
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/dump/dump.c:144:11:  [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.
			(void) strcat(buf, " CHAR");
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/dump/dump.c:146:11:  [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.
			(void) strcat(buf, " BOOL");
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/dump/dump.c:148:11:  [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.
			(void) strcat(buf, " VARARGS");
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/dump/dump.c:163: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.
	static char buf[16];
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/dump/dump.c:868:12:  [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).
	if ((fd = open(filename, O_RDONLY)) == -1)
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/dump/dump.c:1010:3:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		bcopy(hp, &h, sizeof (h));
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/dump/dump.c:1013:14:  [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).
		if ((ufd = open(ufile, O_WRONLY|O_CREAT|O_TRUNC, 0666)) < 0 ||
data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/kern/opensolaris_cmn_err.c:34:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[256];
data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/kern/opensolaris_kobj.c:200:2:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	bcopy(ptr + off, buf, size);
data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/kern/opensolaris_misc.c:38:1:  [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 hw_serial[11] = "0";
data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/kern/opensolaris_sysevent.c:44:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		 se_class[128];
data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/kern/opensolaris_sysevent.c:45:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		 se_subclass[128];
data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/kern/opensolaris_sysevent.c:46:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		 se_pub[128];
data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/kern/opensolaris_sysevent.c:168:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char typestr[128];
data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/kern/opensolaris_uio.c:76:5:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				bcopy(p, iov->iov_base, cnt);
data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/kern/opensolaris_uio.c:78:5:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				bcopy(iov->iov_base, p, cnt);
data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/kern/opensolaris_vfs.c:81:3:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		bcopy(arg, opt->value, opt->len);
data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/kern/opensolaris_zone.c:51:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	zd_dataset[0];
data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/kmem.h:55:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		kc_name[32];
data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/kstat.h:54:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	name[KSTAT_STRLEN];
data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/kstat.h:62:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	desc[KSTAT_DESCLEN];
data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/misc.h:57:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	version[32];
data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/misc.h:61: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.
extern char hw_serial[11];
data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/dtrace.h:915:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dtpd_provider[DTRACE_PROVNAMELEN]; /* probe provider name */
data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/dtrace.h:916:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dtpd_mod[DTRACE_MODNAMELEN];	/* probe module name */
data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/dtrace.h:917:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dtpd_func[DTRACE_FUNCNAMELEN];	/* probe function name */
data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/dtrace.h:918:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dtpd_name[DTRACE_NAMELEN];		/* probe name */
data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/dtrace.h:1143:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dtst_pad[6];			/* pad out to 64-bit align */
data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/dtrace.h:1203:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dtargd_native[DTRACE_ARGTYPELEN];	/* native type name */
data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/dtrace.h:1204:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dtargd_xlate[DTRACE_ARGTYPELEN];	/* translated type name */
data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/dtrace.h:1268:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dtvd_name[DTRACE_PROVNAMELEN];	/* provider name */
data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/dtrace.h:1423:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dofhp_mod[DTRACE_MODNAMELEN];	/* executable or library name */
data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/extdirent.h:51:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		ed_name[1];	/* name of file */
data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/fasttrap.h:62:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char			ftps_func[DTRACE_FUNCNAMELEN];
data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/fasttrap.h:63:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char			ftps_mod[DTRACE_MODNAMELEN];
data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/fasttrap_impl.h:111:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ftp_name[DTRACE_PROVNAMELEN];	/* prov name (w/o the pid) */
data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/fs/zfs.h:167: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.
extern const char *zfs_userquota_prop_prefixes[ZFS_NUM_USERQUOTA_PROPS];
data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/fs/zut.h:62:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	zl_dir[MAXPATHLEN];
data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/fs/zut.h:63:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	zl_file[MAXNAMELEN];
data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/fs/zut.h:64:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	zl_xfile[MAXNAMELEN];
data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/fs/zut.h:65:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	zl_real[MAXPATHLEN];	/* output */
data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/fs/zut.h:73:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	zr_dir[MAXPATHLEN];
data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/fs/zut.h:74:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	zr_file[MAXNAMELEN];
data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/processor.h:97:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	pi_processor_type[PI_TYPELEN];	/* ASCII CPU type */
data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/processor.h:98:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	pi_fputypes[PI_FPUTYPE];	/* ASCII FPU types */
data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/sysmacros.h:73:17:  [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.
extern unsigned char byte_to_bcd[256];
data/ctfutils-10.3~svn297264/sys/cddl/contrib/opensolaris/uts/common/sys/sysmacros.h:74:17:  [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.
extern unsigned char bcd_to_byte[256];
data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/misc/fsshare.c:82: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).
		skiplen = strlen(skip);
data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/misc/fsshare.c:90: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).
		len = strlen(line);
data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/misc/fsshare.c:139:10:  [1] (buffer) strlen:
  Does not handle 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(known_opts[i]);
data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/misc/mkdirp.c:170: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).
	mbPathlen = strlen(mbPath);
data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/misc/mnttab.c:79: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).
		if (strncmp(opt, f, strlen(opt)) == 0)
data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/misc/zmount.c:59: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).
	(*iov)[i].iov_len = strlen(name) + 1;
data/ctfutils-10.3~svn297264/cddl/compat/opensolaris/misc/zmount.c:64:10:  [1] (buffer) strlen:
  Does not handle 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(val) + 1;
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_create.c:98: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).
			soff += strlen(dmd->dmd_name) + 1;
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_create.c:121: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).
			soff += strlen(dmd->dmd_name) + 1;
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_create.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).
		soff += strlen(dmd->dmd_name) + 1;
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_create.c:163: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).
		len = strlen(dmd->dmd_name) + 1;
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_create.c:341:10:  [1] (buffer) strlen:
  Does not handle 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(dtd->dtd_name) + 1;
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_create.c:506: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(dmd->dmd_name) + 1;
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_create.c:540: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).
		len = strlen(dtd->dtd_name) + 1;
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_create.c:631: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).
		fp->ctf_dtstrlen += strlen(s) + 1;
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_create.c:849: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).
		hep = ctf_hash_lookup(hp, fp, name, strlen(name));
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_create.c:871: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).
		hep = ctf_hash_lookup(hp, fp, name, strlen(name));
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_create.c:893: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).
		hep = ctf_hash_lookup(hp, fp, name, strlen(name));
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_create.c:933: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).
	    fp, name, strlen(name))) != NULL)
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_create.c:1035: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).
	fp->ctf_dtstrlen += strlen(s) + 1;
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_create.c:1135: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).
		fp->ctf_dtstrlen += strlen(s) + 1;
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_create.c:1237: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).
		ctb->ctb_file->ctf_dtstrlen += strlen(s) + 1;
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_create.c:1306: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).
	    (hep = ctf_hash_lookup(hp, dst_fp, name, strlen(name))) != NULL) {
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_hash.c:119: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).
	h = ctf_hash_compute(str, strlen(str)) % hp->h_nbuckets;
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_hash.c:135: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).
	ctf_helem_t *hep = ctf_hash_lookup(hp, fp, str, strlen(str));
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_lookup.c:92: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).
	for (p = name, end = name + strlen(name); *p != '\0'; p = q) {
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_open.c:369: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).
			    name, strlen(name))) == NULL) {
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_open.c:467: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).
			    name, strlen(name)) == NULL) {
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_open.c:759: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).
	fp->ctf_lookups[0].ctl_len = strlen(fp->ctf_lookups[0].ctl_prefix);
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_open.c:762: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).
	fp->ctf_lookups[1].ctl_len = strlen(fp->ctf_lookups[1].ctl_prefix);
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_open.c:765: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).
	fp->ctf_lookups[2].ctl_len = strlen(fp->ctf_lookups[2].ctl_prefix);
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_open.c:768: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).
	fp->ctf_lookups[3].ctl_len = strlen(fp->ctf_lookups[3].ctl_prefix);
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_open.c:923: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).
		    strlen(fp->ctf_data.cts_name) + 1);
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_open.c:929: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).
		    strlen(fp->ctf_symtab.cts_name) + 1);
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_open.c:935: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).
		    strlen(fp->ctf_strtab.cts_name) + 1);
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/common/ctf/ctf_util.c:123: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).
	char *s2 = ctf_alloc(strlen(s1) + 1);
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/common/memory.c:88:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(newstr, str, len);
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/ctfmerge.c:231: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).
	    progname, progname, (int)strlen(progname), " ",
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/ctfmerge.c:1000:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(uniqname, reffile, sizeof (uniqname));
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/dwarf.c:1080: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 newsz = 7 + strlen(old) + 1;
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/dwarf.c:1291: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).
	if (strlen(name) > sizeof (buf) - 1)
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/dwarf.c:1294:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, name, sizeof (buf));
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/input.c:60: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_t len = strlen(name);
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/input.c:148: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).
			size_t memlen = strlen(file) + 1 +
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/input.c:149:8:  [1] (buffer) strlen:
  Does not handle 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(arh->ar_name) + 1 + 1;
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/output.c:534: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).
			curnmoff += strlen(sname) + 1;
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/output.c:605: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).
			char seclen = strlen(CTF_ELF_SCN_NAME);
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/st_parse.c:101:3:  [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(buf, "\n");
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/stabs.c:127: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).
	int savelen = strlen(s2) - s2strip;
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/stabs.c:128: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).
	int newlen = (s1 ? strlen(s1) : 0) + savelen + 1;
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/stabs.c:133:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(out + strlen(out), s2, savelen);
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/stabs.c:133: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).
		strncpy(out + strlen(out), s2, savelen);
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/stabs.c:135:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(out, s2, savelen);
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/stabs.c:261: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).
			if (str[strlen(str) - 1] != '/') {
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/stabs.c:274: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).
		if (str[strlen(str) - 1] == '\\') {
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/stabs.c:283: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).
			if (str[strlen(str) - 2] == '\\')
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/util.c:126: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 (format[strlen(format) - 1] != '\n')
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/util.c:226: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).
	newname = xmalloc(strlen(origname) + strlen(suffix) + 1);
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/cvt/util.c:226: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).
	newname = xmalloc(strlen(origname) + strlen(suffix) + 1);
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/dump/dump.c:178: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).
	(void) printf("\n%s%.*s\n\n", s, (int)(78 - strlen(s)), line);
data/ctfutils-10.3~svn297264/cddl/contrib/opensolaris/tools/ctf/dump/dump.c:652: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).
		n = strlen(s) + 1;
data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/kern/opensolaris_string.c:105: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).
	kmem_free(str, strlen(str) + 1);
data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/kern/opensolaris_sysevent.c:92: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).
	if (strlen(name) >= MAX_ATTR_NAME)
data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/kern/opensolaris_sysevent.c:108: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(se_value->value.sv_string) >= MAX_STRING_SZ)
data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/kern/opensolaris_vfs.c:70: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).
	namesize = strlen(name) + 1;
data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/kern/opensolaris_vfs.c:79: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).
		opt->len = strlen(arg) + 1;
data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/kern/opensolaris_vfs.c:129: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).
	if (strlen(fstype) >= MFSNAMELEN || strlen(fspath) >= MNAMELEN)
data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/kern/opensolaris_vfs.c:129: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).
	if (strlen(fstype) >= MFSNAMELEN || strlen(fspath) >= MNAMELEN)
data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/kern/opensolaris_zone.c:70: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).
	zd = malloc(sizeof(*zd) + strlen(dataset) + 1, M_ZONES, M_WAITOK);
data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/kern/opensolaris_zone.c:181: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).
		len = strlen(zd->zd_dataset);
data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/kern/opensolaris_zone.c:182: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(dataset) >= len &&
data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/kern/opensolaris_zone.c:201: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).
		len = strlen(dataset);
data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/kern/opensolaris_zone.c:204: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 (len < strlen(zd->zd_dataset) &&
data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/sid.h:44:8:  [1] (buffer) strlen:
  Does not handle 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(domain) + 1;
data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/vnode.h:165:46:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    vnode_t **vpp, enum create crwhy, mode_t umask, struct vnode *startvp,
data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/vnode.h:214:46:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    vnode_t **vpp, enum create crwhy, mode_t umask)
data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/vnode.h:218:6:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	    umask, NULL, -1));
data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/vnode.h:220:64:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
#define	vn_open(pnamep, seg, filemode, createmode, vpp, crwhy, umask)	\
data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/vnode.h:221:74:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	zfs_vn_open((pnamep), (seg), (filemode), (createmode), (vpp), (crwhy), (umask))
data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/vnode.h:226:56:  [1] (obsolete) ulimit:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name, which is NOT obsolete) (CWE-676). Use getrlimit(2),
  setrlimit(2), and sysconf(3) instead.
    offset_t offset, enum uio_seg seg, int ioflag, int ulimit, cred_t *cr,
data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/vnode.h:247:57:  [1] (obsolete) ulimit:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name, which is NOT obsolete) (CWE-676). Use getrlimit(2),
  setrlimit(2), and sysconf(3) instead.
#define	vn_rdwr(rw, vp, base, len, offset, seg, ioflag, ulimit, cr, residp) \
data/ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/vnode.h:248:69:  [1] (obsolete) ulimit:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name, which is NOT obsolete) (CWE-676). Use getrlimit(2),
  setrlimit(2), and sysconf(3) instead.
	zfs_vn_rdwr((rw), (vp), (base), (len), (offset), (seg), (ioflag), (ulimit), (cr), (residp))

ANALYSIS SUMMARY:

Hits = 279
Lines analyzed = 79385 in approximately 3.05 seconds (26000 lines/second)
Physical Source Lines of Code (SLOC) = 60375
Hits@level = [0] 135 [1]  82 [2] 135 [3]  25 [4]  37 [5]   0
Hits@level+ = [0+] 414 [1+] 279 [2+] 197 [3+]  62 [4+]  37 [5+]   0
Hits/KSLOC@level+ = [0+] 6.85714 [1+] 4.62112 [2+] 3.26294 [3+] 1.02692 [4+] 0.612836 [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.